aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/nuttcp
ModeNameSize
-rw-r--r--Makefile1726logstatsplainblame
-rw-r--r--distinfo363logstatsplainblame
-rw-r--r--pkg-descr598logstatsplainblame
-rw-r--r--pkg-plist225logstatsplainblame
-rw-r--r--Godeps/_workspace/.gitignore2
-rw-r--r--Godeps/_workspace/src/bitbucket.org/kardianos/osext/LICENSE20
-rw-r--r--Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext.go32
-rw-r--r--Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_plan9.go20
-rw-r--r--Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_procfs.go25
-rw-r--r--Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_sysctl.go79
-rw-r--r--Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_test.go79
-rw-r--r--Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_windows.go34
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/LICENSE27
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/dce.go84
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/doc.go8
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/hash.go53
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/node.go101
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/time.go132
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/util.go43
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/uuid.go163
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/uuid_test.go390
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/version1.go41
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/version4.go25
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.crypto/pbkdf2/pbkdf2.go77
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.crypto/pbkdf2/pbkdf2_test.go157
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.crypto/ripemd160/ripemd160.go120
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.crypto/ripemd160/ripemd160_test.go64
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.crypto/ripemd160/ripemd160block.go161
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.crypto/scrypt/scrypt.go243
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.crypto/scrypt/scrypt_test.go160
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.net/websocket/client.go98
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.net/websocket/exampledial_test.go31
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.net/websocket/examplehandler_test.go26
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.net/websocket/hybi.go564
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.net/websocket/hybi_test.go590
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.net/websocket/server.go114
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.net/websocket/websocket.go411
-rw-r--r--Godeps/_workspace/src/code.google.com/p/go.net/websocket/websocket_test.go341
-rw-r--r--Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/decode.go124
-rw-r--r--Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/encode.go174
-rw-r--r--Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/snappy.go38
-rw-r--r--Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/snappy_test.go261
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/.gitignore5
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/.gitmodules3
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/README.md12
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/all.cpp16
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/cpp/api.cpp26
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/cpp/api.h14
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent.go27
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/.gitignore12
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/MANIFEST.in5
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/Makefile55
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/README.md3
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/bignum.cpp112
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/bignum.h41
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/cmdline.cpp132
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/compiler.cpp554
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/compiler.h43
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/example.cpp11
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/collatz.se11
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/counterparty/counterparty.se274
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/counterparty/heap.se69
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/crowdfund.se53
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/futarchy.se136
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/heap.se55
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/market.se117
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/subcurrency.se35
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/test.py39
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/datafeed.se12
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/ecrecover.se40
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/ecrecover_compiled.evm1
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/jacobian_add.se32
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/jacobian_double.se16
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/jacobian_mul.se37
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/modexp.se11
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/substitutes.py78
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/test.py129
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/channel.se45
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/map.se19
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/multiforward.se14
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/shadowchain.se166
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/fixedpoint.se31
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/long_integer_macros.se116
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/mul2.se2
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/mutuala.se187
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/namecoin.se7
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/peano.se43
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/returnten.se4
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/quicksort.se33
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/quicksort_pairs.se46
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/schellingcoin.se94
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/schellingdollar.se171
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellinghelper.se1
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/short_namecoin.se3
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/subcurrency.se11
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/funcs.cpp35
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/funcs.h35
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/functions.cpp203
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/functions.h39
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/lllparser.cpp70
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/lllparser.h13
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/opcodes.cpp154
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/opcodes.h45
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/optimize.cpp98
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/optimize.h19
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/parser.cpp430
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/parser.h13
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/preprocess.cpp299
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/preprocess.h58
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/pyserpent.cpp173
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/pyserpent.py1
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriter.cpp804
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriter.h16
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriteutils.cpp211
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriteutils.h51
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/serpent.py201
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/setup.py46
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/tokenize.cpp115
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/tokenize.h16
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/util.cpp305
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/util.h127
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/serpent-go/tests/main.go21
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/LICENSE23
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/README.md14
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/cmd/example_httpu_serving/example_httpu_serving.go20
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/cmd/example_internetgateway1/example_internetgateway1.go67
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/dcps/internetgateway1/internetgateway1.go3957
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/dcps/internetgateway2/internetgateway2.go5271
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/device.go184
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/example/example.go6
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/example/example_test.go62
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/gotasks/specgen_task.go539
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/goupnp.go109
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/httpu/httpu.go117
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/httpu/serve.go108
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/scpd/scpd.go167
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/service_client.go57
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/soap/soap.go157
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/soap/soap_test.go85
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/soap/types.go508
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/soap/types_test.go481
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/ssdp/registry.go202
-rw-r--r--Godeps/_workspace/src/github.com/fjl/goupnp/ssdp/ssdp.go83
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/.gitignore5
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/AUTHORS28
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/CHANGELOG.md160
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/CONTRIBUTING.md7
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/LICENSE28
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/README.md92
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/example_test.go34
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify.go111
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_bsd.go496
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_linux.go304
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_open_bsd.go11
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_open_darwin.go11
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_symlink_test.go74
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_test.go1010
-rw-r--r--Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_windows.go598
-rw-r--r--Godeps/_workspace/src/github.com/jackpal/go-nat-pmp/LICENSE13
-rw-r--r--Godeps/_workspace/src/github.com/jackpal/go-nat-pmp/README.md48
-rw-r--r--Godeps/_workspace/src/github.com/jackpal/go-nat-pmp/natpmp.go184
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/ecies/.gitignore24
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/ecies/LICENSE28
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/ecies/README94
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/ecies/asn1.go556
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/ecies/ecies.go326
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/ecies/ecies_test.go489
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/ecies/params.go187
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/.gitignore5
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/DESIGN.markdown1
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/LICENSE7
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/Makefile63
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/README.markdown798
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/array_test.go716
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/ast/README.markdown1066
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/ast/node.go496
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/bug_test.go504
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/builtin.go393
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/builtin_array.go672
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/builtin_boolean.go28
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/builtin_date.go616
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/builtin_error.go85
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/builtin_function.go117
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/builtin_json.go285
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/builtin_math.go145
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/builtin_number.go93
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/builtin_object.go289
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/builtin_regexp.go65
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/builtin_string.go504
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/builtin_test.go136
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/clone.go144
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/cmpl_evaluate.go87
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/cmpl_evaluate_expression.go391
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/cmpl_evaluate_statement.go410
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/cmpl_function.go46
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/cmpl_parse.go630
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/cmpl_test.go54
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/console.go51
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/date_test.go478
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/dbg.go9
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/dbg/dbg.go387
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/documentation_test.go95
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/environment.go280
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/error.go152
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/error_test.go62
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/evaluate.go317
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/execution_context.go40
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/file/README.markdown72
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/file/file.go106
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/function_test.go272
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/global.go214
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/global_test.go352
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/inline1066
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/inline.go6463
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/json_test.go183
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/math_test.go303
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/number_test.go167
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/object.go156
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/object_class.go484
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/object_test.go639
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/otto.go561
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/otto/Makefile5
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/otto/main.go43
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/otto_.go178
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/otto_error_test.go48
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/otto_test.go1331
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/panic_test.go40
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser/Makefile4
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser/README.markdown190
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser/dbg.go9
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser/error.go175
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser/expression.go815
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser/lexer.go819
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser/lexer_test.go380
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser/marshal_test.go930
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser/parser.go270
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser/parser_test.go1004
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser/regexp.go358
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser/regexp_test.go149
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser/scope.go44
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser/statement.go662
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/parser_test.go42
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/property.go220
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/reflect_test.go411
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/regexp_test.go287
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/registry/README.markdown51
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/registry/registry.go47
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/result.go30
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/runtime.go394
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/runtime_test.go778
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/script.go122
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/script_test.go76
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/string_test.go365
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/terst/terst.go669
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/test/Makefile26
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/test/tester.go196
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/testing_test.go128
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/token/Makefile2
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/token/README.markdown171
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/token/token.go116
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/token/token_const.go349
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/token/tokenfmt222
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/type_arguments.go106
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/type_array.go108
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/type_boolean.go13
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/type_date.go299
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/type_error.go9
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/type_function.go276
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/type_go_array.go134
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/type_go_map.go87
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/type_go_slice.go118
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/type_go_struct.go150
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/type_number.go5
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/type_reference.go157
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/type_regexp.go146
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/type_string.go112
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/underscore/Makefile11
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/underscore/README.markdown53
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/underscore/source.go3462
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/underscore/testify84
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/underscore/underscore.go49
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/underscore_arrays_test.go344
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/underscore_chaining_test.go95
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/underscore_collections_test.go698
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/underscore_functions_test.go208
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/underscore_objects_test.go822
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/underscore_test.go165
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/underscore_utility_test.go419
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/value.go956
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/value_boolean.go49
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/value_number.go335
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/value_primitive.go23
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/value_string.go101
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/otto/value_test.go281
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/.gitignore5
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/LICENSE185
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/README.md157
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/all.cpp12
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/bridge.go681
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata.go6
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata12.c18
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata14_386.s17
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata14_amd64.s17
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata14_arm.s18
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata_test.go42
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cmd/genqrc/main.go218
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cmd/ubuntu-touch/particle.desktop15
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cmd/ubuntu-touch/setup.sh41
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/capi.cpp882
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/capi.h211
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/connector.cpp46
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/connector.h58
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/govalue.cpp236
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/govalue.h56
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/govaluetype.cpp254
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/govaluetype.h48
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/idletimer.cpp58
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/mmemwin.cpp27
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_all.cpp4
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_connector.cpp211
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_govalue.cpp155
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_idletimer.cpp108
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qmetaobject_p.h2
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qmetaobjectbuilder_p.h2
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qobject_p.h2
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qtheader.h70
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpp/update-moc.sh19
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpptest/cpptest.cpp14
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpptest/cpptest.go30
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpptest/cpptest.h23
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpptest/moc_testtype.cpp202
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpptest/testtype.h45
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/cpptest/update-moc.sh12
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/datatype.go531
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/doc.go199
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/.gitignore5
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/README.md8
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/basiclayouts/basiclayouts.go29
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/basiclayouts/main.qml116
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/AboutDialog.qml48
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/ChildWindow.qml122
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/Controls.qml229
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/ImageViewer.qml58
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/Layouts.qml107
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/ModelView.qml103
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/Styles.qml387
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/gallery.go29
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/bubble.pngbin0 -> 214 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/button-pressed.pngbin0 -> 3094 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/button.pngbin0 -> 3164 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-open.pngbin0 -> 1550 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-open@2x.pngbin0 -> 3355 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-save-as.pngbin0 -> 1837 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-save-as@2x.pngbin0 -> 4500 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/folder_new.pngbin0 -> 1199 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/go-next.pngbin0 -> 1219 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/go-previous.pngbin0 -> 1200 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/preferences-system.pngbin0 -> 2129 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/process-stop.pngbin0 -> 1927 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/progress-background.pngbin0 -> 456 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/progress-fill.pngbin0 -> 507 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/slider-handle.pngbin0 -> 3523 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/tab.pngbin0 -> 9877 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/tab_selected.pngbin0 -> 10184 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/textfield.pngbin0 -> 3023 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/toplevel_window.pngbin0 -> 3690 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/view-refresh.pngbin0 -> 2024 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/window-new.pngbin0 -> 671 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/window-new@2x.pngbin0 -> 1900 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/main.qml266
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/splitview/main.qml82
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/splitview/splitview.go29
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/images/header.pngbin0 -> 356 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/images/selectedrow.pngbin0 -> 303 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/main.qml405
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/tableview.go29
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/AndroidDelegate.qml92
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/ButtonPage.qml176
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/ListPage.qml82
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/ProgressBarPage.qml114
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/SliderPage.qml106
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/TabBarPage.qml102
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/TextInputPage.qml106
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/NOTICE.txt2
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/button_default.pngbin0 -> 1406 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/button_pressed.pngbin0 -> 1694 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/navigation_next_item.pngbin0 -> 1341 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/navigation_previous_item.pngbin0 -> 1343 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/tab_selected.pngbin0 -> 217 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/tabs_standard.pngbin0 -> 1230 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/textinput.pngbin0 -> 4132 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/toolbar.pngbin0 -> 1643 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/main.qml147
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/touch.go29
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/customtype/customtype.go48
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/customtype/customtype.qml5
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.go117
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.qml42
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/mix.qml68
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/README.md10
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/gopher.blendbin0 -> 1370816 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/gopher.mtl65
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/gopher.obj31375
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/wavefront.go280
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/imgprovider/imgprovider.go43
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/imgprovider/imgprovider.qml5
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/imgprovider/ubuntu-gopher.pngbin0 -> 59635 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/modelview/delegate/delegate.go53
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/modelview/delegate/delegate.qml17
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/painting-es2/painting.go115
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/painting-es2/painting.qml66
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/painting/painting.go64
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/painting/painting.qml66
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/particle/main.go84
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/particle/particle.pngbin0 -> 861 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/particle/particle.qml89
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/Cell.qml20
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/qmlscene.go33
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial1.qml17
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial2.qml30
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial3.qml45
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/assets/particle.pngbin0 -> 861 bytes-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/assets/particle.qml89
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/main.go86
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/qrc.go58
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/reparent/base.qml7
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/reparent/rect.qml8
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/reparent/reparent.go37
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/examples/snapweb/snapweb.go70
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.0/funcs.cpp1848
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.0/funcs.h347
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.0/gl.go2528
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.1/funcs.cpp2022
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.1/funcs.h376
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.1/gl.go2789
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.2/funcs.cpp2250
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.2/funcs.h414
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.2/gl.go3152
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.3/funcs.cpp2526
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.3/funcs.h460
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.3/gl.go3571
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.4/funcs.cpp2790
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.4/funcs.h504
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.4/gl.go3892
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.5/funcs.cpp2892
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.5/funcs.h521
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/1.5/gl.go4237
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/2.0/funcs.cpp3444
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/2.0/funcs.h613
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/2.0/gl.go6407
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/2.1/funcs.cpp3480
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/2.1/funcs.h619
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/2.1/gl.go6652
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.0/funcs.cpp3966
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.0/funcs.h700
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.0/gl.go7663
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.1/funcs.cpp1422
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.1/funcs.h276
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.1/gl.go4999
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2compat/funcs.cpp4140
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2compat/funcs.h729
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2compat/gl.go7973
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2core/funcs.cpp1530
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2core/funcs.h294
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2core/gl.go4729
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.3compat/funcs.cpp4488
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.3compat/funcs.h787
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.3compat/gl.go8281
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.3core/funcs.cpp1878
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.3core/funcs.h352
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/3.3core/gl.go5489
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.0compat/funcs.cpp4764
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.0compat/funcs.h833
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.0compat/gl.go8607
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.0core/funcs.cpp2154
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.0core/funcs.h398
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.0core/gl.go5815
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.1compat/funcs.cpp5286
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.1compat/funcs.h920
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.1compat/gl.go9201
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.1core/funcs.cpp2676
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.1core/funcs.h485
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.1core/gl.go6409
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.2compat/funcs.cpp5358
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.2compat/funcs.h932
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.2compat/gl.go9386
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.2core/funcs.cpp2748
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.2core/funcs.h497
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.2core/gl.go6594
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.3compat/funcs.cpp5556
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.3compat/funcs.h965
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.3compat/gl.go9845
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.3core/funcs.cpp2946
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.3core/funcs.h530
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/4.3core/gl.go7052
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/es2/funcs.cpp813
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/es2/funcs.h182
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/es2/gl.go2990
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/gengl/Makefile9
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/gengl/funcs.go1764
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/gengl/gl.xml43891
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/gengl/main.go1283
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/gengl/parseqt.go13904
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/gengl/parseqt.rl184
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/gl/glbase/glbase.go33
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/log.go157
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/qml.go1109
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/qml_test.go1436
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/resources.go375
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/stats.go68
-rw-r--r--Godeps/_workspace/src/github.com/obscuren/qml/testing.go69
-rw-r--r--Godeps/_workspace/src/github.com/rakyll/globalconf/.travis.yml2
-rw-r--r--Godeps/_workspace/src/github.com/rakyll/globalconf/README.md144
-rw-r--r--Godeps/_workspace/src/github.com/rakyll/globalconf/globalconf.go179
-rw-r--r--Godeps/_workspace/src/github.com/rakyll/globalconf/globalconf_test.go267
-rw-r--r--Godeps/_workspace/src/github.com/rakyll/globalconf/testdata/custom.ini2
-rw-r--r--Godeps/_workspace/src/github.com/rakyll/globalconf/testdata/global.ini3
-rw-r--r--Godeps/_workspace/src/github.com/rakyll/globalconf/testdata/globalandcustom.ini6
-rw-r--r--Godeps/_workspace/src/github.com/rakyll/goini/.gitignore8
-rw-r--r--Godeps/_workspace/src/github.com/rakyll/goini/Makefile7
-rw-r--r--Godeps/_workspace/src/github.com/rakyll/goini/empty.ini0
-rw-r--r--Godeps/_workspace/src/github.com/rakyll/goini/example.ini18
-rw-r--r--Godeps/_workspace/src/github.com/rakyll/goini/ini.go241
-rw-r--r--Godeps/_workspace/src/github.com/rakyll/goini/ini_test.go169
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/ast/README.markdown1068
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/ast/node.go498
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/dbg/dbg.go387
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/file/README.markdown110
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/file/file.go135
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/parser/Makefile4
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/parser/README.markdown190
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/parser/dbg.go9
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/parser/error.go175
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/parser/expression.go815
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/parser/lexer.go819
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/parser/lexer_test.go380
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/parser/marshal_test.go930
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/parser/parser.go273
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/parser/parser_test.go1004
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/parser/regexp.go358
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/parser/regexp_test.go149
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/parser/scope.go44
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/parser/statement.go663
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/registry/README.markdown51
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/registry/registry.go47
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/token/Makefile2
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/token/README.markdown171
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/token/token.go116
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/token/token_const.go349
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/token/tokenfmt222
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/batch.go216
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/batch_test.go120
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/bench_test.go461
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/cache/cache.go125
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/cache/cache_test.go236
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/cache/empty_cache.go246
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/cache/lru_cache.go354
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/comparer.go75
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/comparer/bytes_comparer.go51
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/comparer/comparer.go57
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/config.go40
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/corrupt_test.go472
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go755
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go688
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_iter.go310
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_snapshot.go165
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_state.go114
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_test.go1888
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_util.go95
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_write.go279
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/doc.go80
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/error.go38
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/external_test.go58
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/filter.go31
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/filter/bloom.go116
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/filter/bloom_test.go142
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/filter/filter.go60
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/iterator/array_iter.go158
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/iterator/array_iter_test.go30
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/iterator/indexed_iter.go221
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/iterator/indexed_iter_test.go83
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/iterator/iter.go142
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/iterator/iter_suite_test.go17
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/iterator/merged_iter.go307
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/iterator/merged_iter_test.go60
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/journal/journal.go513
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/journal/journal_test.go328
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/key.go139
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/key_test.go123
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/leveldb_suite_test.go20
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/memdb/bench_test.go75
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/memdb/memdb.go450
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/memdb/memdb_suite_test.go17
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/memdb/memdb_test.go135
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/opt/options.go318
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/options.go41
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/session.go403
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/session_record.go308
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/session_record_test.go62
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/session_util.go253
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go534
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/storage/file_storage_plan9.go52
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/storage/file_storage_test.go142
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/storage/file_storage_unix.go63
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/storage/file_storage_windows.go69
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/storage/mem_storage.go203
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/storage/mem_storage_test.go66
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/storage/storage.go127
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/storage_test.go459
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/table.go424
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/table/block_test.go131
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/table/reader.go848
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/table/table.go177
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/table/table_suite_test.go17
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/table/table_test.go119
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/table/writer.go379
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go216
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go327
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go352
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/testutil/kvtest.go136
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go585
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/testutil/util.go157
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/testutil_test.go58
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util.go91
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer.go293
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_test.go369
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/crc32.go30
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/hash.go48
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/range.go16
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/util.go49
-rw-r--r--Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/version.go428
-rw-r--r--Godeps/_workspace/src/golang.org/x/crypto/pbkdf2/pbkdf2.go77
-rw-r--r--Godeps/_workspace/src/golang.org/x/crypto/pbkdf2/pbkdf2_test.go157
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/.gitignore4
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/LICENSE25
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/README.md20
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/TODO2
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/benchmark.go163
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/benchmark_test.go91
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/bootstrap_test.go82
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/check.go945
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/check_test.go207
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/checkers.go458
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/checkers_test.go272
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/export_test.go9
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/fixture_test.go484
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/foundation_test.go335
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/helpers.go231
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/helpers_test.go519
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/printer.go168
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/printer_test.go104
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/run.go175
-rw-r--r--Godeps/_workspace/src/gopkg.in/check.v1/run_test.go419
-rw-r--r--Godeps/_workspace/src/gopkg.in/fatih/set.v0/.travis.yml3
-rw-r--r--Godeps/_workspace/src/gopkg.in/fatih/set.v0/LICENSE.md20
-rw-r--r--Godeps/_workspace/src/gopkg.in/fatih/set.v0/README.md245
-rw-r--r--Godeps/_workspace/src/gopkg.in/fatih/set.v0/set.go121
-rw-r--r--Godeps/_workspace/src/gopkg.in/fatih/set.v0/set_nots.go195
-rw-r--r--Godeps/_workspace/src/gopkg.in/fatih/set.v0/set_nots_test.go282
-rw-r--r--Godeps/_workspace/src/gopkg.in/fatih/set.v0/set_test.go188
-rw-r--r--Godeps/_workspace/src/gopkg.in/fatih/set.v0/set_ts.go200
-rw-r--r--Godeps/_workspace/src/gopkg.in/fatih/set.v0/set_ts_test.go321
-rw-r--r--Godeps/_workspace/src/gopkg.in/qml.v1/cdata/cdata.go6
-rw-r--r--Godeps/_workspace/src/gopkg.in/qml.v1/cdata/cdata12.c18
-rw-r--r--Godeps/_workspace/src/gopkg.in/qml.v1/cdata/cdata14_386.s17
-rw-r--r--Godeps/_workspace/src/gopkg.in/qml.v1/cdata/cdata14_amd64.s17
-rw-r--r--Godeps/_workspace/src/gopkg.in/qml.v1/cdata/cdata14_arm.s18
-rw-r--r--Godeps/_workspace/src/gopkg.in/qml.v1/cdata/cdata_test.go42
-rw-r--r--Godeps/_workspace/src/gopkg.in/qml.v1/gl/glbase/glbase.go33
667 files changed, 435414 insertions, 0 deletions
diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json
new file mode 100644
index 000000000..1ecdce06f
--- /dev/null
+++ b/Godeps/Godeps.json
@@ -0,0 +1,130 @@
+{
+ "ImportPath": "github.com/ethereum/go-ethereum",
+ "GoVersion": "go1.4",
+ "Packages": [
+ "./..."
+ ],
+ "Deps": [
+ {
+ "ImportPath": "bitbucket.org/kardianos/osext",
+ "Comment": "null-13",
+ "Rev": "5d3ddcf53a508cc2f7404eaebf546ef2cb5cdb6e"
+ },
+ {
+ "ImportPath": "code.google.com/p/go-uuid/uuid",
+ "Comment": "null-12",
+ "Rev": "7dda39b2e7d5e265014674c5af696ba4186679e9"
+ },
+ {
+ "ImportPath": "code.google.com/p/go.crypto/pbkdf2",
+ "Comment": "null-236",
+ "Rev": "69e2a90ed92d03812364aeb947b7068dc42e561e"
+ },
+ {
+ "ImportPath": "code.google.com/p/go.crypto/ripemd160",
+ "Comment": "null-236",
+ "Rev": "69e2a90ed92d03812364aeb947b7068dc42e561e"
+ },
+ {
+ "ImportPath": "code.google.com/p/go.crypto/scrypt",
+ "Comment": "null-236",
+ "Rev": "69e2a90ed92d03812364aeb947b7068dc42e561e"
+ },
+ {
+ "ImportPath": "code.google.com/p/go.net/websocket",
+ "Comment": "null-173",
+ "Rev": "4231557d7c726df4cf9a4e8cdd8a417c8c200bdb"
+ },
+ {
+ "ImportPath": "code.google.com/p/snappy-go/snappy",
+ "Comment": "null-15",
+ "Rev": "12e4b4183793ac4b061921e7980845e750679fd0"
+ },
+ {
+ "ImportPath": "github.com/ethereum/serpent-go",
+ "Rev": "5767a0dbd759d313df3f404dadb7f98d7ab51443"
+ },
+ {
+ "ImportPath": "github.com/fjl/goupnp",
+ "Rev": "fa95df6feb61e136b499d01711fcd410ccaf20c1"
+ },
+ {
+ "ImportPath": "github.com/howeyc/fsnotify",
+ "Comment": "v0.9.0-11-g6b1ef89",
+ "Rev": "6b1ef893dc11e0447abda6da20a5203481878dda"
+ },
+ {
+ "ImportPath": "github.com/jackpal/go-nat-pmp",
+ "Rev": "a45aa3d54aef73b504e15eb71bea0e5565b5e6e1"
+ },
+ {
+ "ImportPath": "github.com/obscuren/ecies",
+ "Rev": "d899334bba7bf4a157cab19d8ad836dcb1de0c34"
+ },
+ {
+ "ImportPath": "github.com/obscuren/otto",
+ "Rev": "cf13cc4228c5e5ce0fe27a7aea90bc10091c4f19"
+ },
+ {
+ "ImportPath": "github.com/obscuren/qml",
+ "Rev": "807b51d4104231784fa5e336ccd26d61759a3cb2"
+ },
+ {
+ "ImportPath": "github.com/rakyll/globalconf",
+ "Rev": "415abc325023f1a00cd2d9fa512e0e71745791a2"
+ },
+ {
+ "ImportPath": "github.com/rakyll/goini",
+ "Rev": "907cca0f578a5316fb864ec6992dc3d9730ec58c"
+ },
+ {
+ "ImportPath": "github.com/robertkrimen/otto/ast",
+ "Rev": "dea31a3d392779af358ec41f77a07fcc7e9d04ba"
+ },
+ {
+ "ImportPath": "github.com/robertkrimen/otto/dbg",
+ "Rev": "dea31a3d392779af358ec41f77a07fcc7e9d04ba"
+ },
+ {
+ "ImportPath": "github.com/robertkrimen/otto/file",
+ "Rev": "dea31a3d392779af358ec41f77a07fcc7e9d04ba"
+ },
+ {
+ "ImportPath": "github.com/robertkrimen/otto/parser",
+ "Rev": "dea31a3d392779af358ec41f77a07fcc7e9d04ba"
+ },
+ {
+ "ImportPath": "github.com/robertkrimen/otto/registry",
+ "Rev": "dea31a3d392779af358ec41f77a07fcc7e9d04ba"
+ },
+ {
+ "ImportPath": "github.com/robertkrimen/otto/token",
+ "Rev": "dea31a3d392779af358ec41f77a07fcc7e9d04ba"
+ },
+ {
+ "ImportPath": "github.com/syndtr/goleveldb/leveldb",
+ "Rev": "832fa7ed4d28545eab80f19e1831fc004305cade"
+ },
+ {
+ "ImportPath": "golang.org/x/crypto/pbkdf2",
+ "Rev": "4ed45ec682102c643324fae5dff8dab085b6c300"
+ },
+ {
+ "ImportPath": "gopkg.in/check.v1",
+ "Rev": "64131543e7896d5bcc6bd5a76287eb75ea96c673"
+ },
+ {
+ "ImportPath": "gopkg.in/fatih/set.v0",
+ "Comment": "v0.1.0-3-g27c4092",
+ "Rev": "27c40922c40b43fe04554d8223a402af3ea333f3"
+ },
+ {
+ "ImportPath": "gopkg.in/qml.v1/cdata",
+ "Rev": "1116cb9cd8dee23f8d444ded354eb53122739f99"
+ },
+ {
+ "ImportPath": "gopkg.in/qml.v1/gl/glbase",
+ "Rev": "1116cb9cd8dee23f8d444ded354eb53122739f99"
+ }
+ ]
+}
diff --git a/Godeps/Readme b/Godeps/Readme
new file mode 100644
index 000000000..4cdaa53d5
--- /dev/null
+++ b/Godeps/Readme
@@ -0,0 +1,5 @@
+This directory tree is generated automatically by godep.
+
+Please do not edit.
+
+See https://github.com/tools/godep for more information.
diff --git a/Godeps/_workspace/.gitignore b/Godeps/_workspace/.gitignore
new file mode 100644
index 000000000..f037d684e
--- /dev/null
+++ b/Godeps/_workspace/.gitignore
@@ -0,0 +1,2 @@
+/pkg
+/bin
diff --git a/Godeps/_workspace/src/bitbucket.org/kardianos/osext/LICENSE b/Godeps/_workspace/src/bitbucket.org/kardianos/osext/LICENSE
new file mode 100644
index 000000000..18527a28f
--- /dev/null
+++ b/Godeps/_workspace/src/bitbucket.org/kardianos/osext/LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2012 Daniel Theophanes
+
+This software is provided 'as-is', without any express or implied
+warranty. In no event will the authors be held liable for any damages
+arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+
+ 3. This notice may not be removed or altered from any source
+ distribution.
diff --git a/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext.go b/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext.go
new file mode 100644
index 000000000..37efbb221
--- /dev/null
+++ b/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext.go
@@ -0,0 +1,32 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Extensions to the standard "os" package.
+package osext
+
+import "path/filepath"
+
+// Executable returns an absolute path that can be used to
+// re-invoke the current program.
+// It may not be valid after the current program exits.
+func Executable() (string, error) {
+ p, err := executable()
+ return filepath.Clean(p), err
+}
+
+// Returns same path as Executable, returns just the folder
+// path. Excludes the executable name.
+func ExecutableFolder() (string, error) {
+ p, err := Executable()
+ if err != nil {
+ return "", err
+ }
+ folder, _ := filepath.Split(p)
+ return folder, nil
+}
+
+// Depricated. Same as Executable().
+func GetExePath() (exePath string, err error) {
+ return Executable()
+}
diff --git a/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_plan9.go b/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_plan9.go
new file mode 100644
index 000000000..4468a73a7
--- /dev/null
+++ b/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_plan9.go
@@ -0,0 +1,20 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package osext
+
+import (
+ "syscall"
+ "os"
+ "strconv"
+)
+
+func executable() (string, error) {
+ f, err := os.Open("/proc/" + strconv.Itoa(os.Getpid()) + "/text")
+ if err != nil {
+ return "", err
+ }
+ defer f.Close()
+ return syscall.Fd2path(int(f.Fd()))
+}
diff --git a/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_procfs.go b/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_procfs.go
new file mode 100644
index 000000000..546fec915
--- /dev/null
+++ b/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_procfs.go
@@ -0,0 +1,25 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build linux netbsd openbsd
+
+package osext
+
+import (
+ "errors"
+ "os"
+ "runtime"
+)
+
+func executable() (string, error) {
+ switch runtime.GOOS {
+ case "linux":
+ return os.Readlink("/proc/self/exe")
+ case "netbsd":
+ return os.Readlink("/proc/curproc/exe")
+ case "openbsd":
+ return os.Readlink("/proc/curproc/file")
+ }
+ return "", errors.New("ExecPath not implemented for " + runtime.GOOS)
+}
diff --git a/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_sysctl.go b/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_sysctl.go
new file mode 100644
index 000000000..b66cac878
--- /dev/null
+++ b/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_sysctl.go
@@ -0,0 +1,79 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build darwin freebsd
+
+package osext
+
+import (
+ "os"
+ "path/filepath"
+ "runtime"
+ "syscall"
+ "unsafe"
+)
+
+var initCwd, initCwdErr = os.Getwd()
+
+func executable() (string, error) {
+ var mib [4]int32
+ switch runtime.GOOS {
+ case "freebsd":
+ mib = [4]int32{1 /* CTL_KERN */, 14 /* KERN_PROC */, 12 /* KERN_PROC_PATHNAME */, -1}
+ case "darwin":
+ mib = [4]int32{1 /* CTL_KERN */, 38 /* KERN_PROCARGS */, int32(os.Getpid()), -1}
+ }
+
+ n := uintptr(0)
+ // Get length.
+ _, _, errNum := syscall.Syscall6(syscall.SYS___SYSCTL, uintptr(unsafe.Pointer(&mib[0])), 4, 0, uintptr(unsafe.Pointer(&n)), 0, 0)
+ if errNum != 0 {
+ return "", errNum
+ }
+ if n == 0 { // This shouldn't happen.
+ return "", nil
+ }
+ buf := make([]byte, n)
+ _, _, errNum = syscall.Syscall6(syscall.SYS___SYSCTL, uintptr(unsafe.Pointer(&mib[0])), 4, uintptr(unsafe.Pointer(&buf[0])), uintptr(unsafe.Pointer(&n)), 0, 0)
+ if errNum != 0 {
+ return "", errNum
+ }
+ if n == 0 { // This shouldn't happen.
+ return "", nil
+ }
+ for i, v := range buf {
+ if v == 0 {
+ buf = buf[:i]
+ break
+ }
+ }
+ var err error
+ execPath := string(buf)
+ // execPath will not be empty due to above checks.
+ // Try to get the absolute path if the execPath is not rooted.
+ if execPath[0] != '/' {
+ execPath, err = getAbs(execPath)
+ if err != nil {
+ return execPath, err
+ }
+ }
+ // For darwin KERN_PROCARGS may return the path to a symlink rather than the
+ // actual executable.
+ if runtime.GOOS == "darwin" {
+ if execPath, err = filepath.EvalSymlinks(execPath); err != nil {
+ return execPath, err
+ }
+ }
+ return execPath, nil
+}
+
+func getAbs(execPath string) (string, error) {
+ if initCwdErr != nil {
+ return execPath, initCwdErr
+ }
+ // The execPath may begin with a "../" or a "./" so clean it first.
+ // Join the two paths, trailing and starting slashes undetermined, so use
+ // the generic Join function.
+ return filepath.Join(initCwd, filepath.Clean(execPath)), nil
+}
diff --git a/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_test.go b/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_test.go
new file mode 100644
index 000000000..dc661dbc2
--- /dev/null
+++ b/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_test.go
@@ -0,0 +1,79 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build darwin linux freebsd netbsd windows
+
+package osext
+
+import (
+ "fmt"
+ "os"
+ oexec "os/exec"
+ "path/filepath"
+ "runtime"
+ "testing"
+)
+
+const execPath_EnvVar = "OSTEST_OUTPUT_EXECPATH"
+
+func TestExecPath(t *testing.T) {
+ ep, err := Executable()
+ if err != nil {
+ t.Fatalf("ExecPath failed: %v", err)
+ }
+ // we want fn to be of the form "dir/prog"
+ dir := filepath.Dir(filepath.Dir(ep))
+ fn, err := filepath.Rel(dir, ep)
+ if err != nil {
+ t.Fatalf("filepath.Rel: %v", err)
+ }
+ cmd := &oexec.Cmd{}
+ // make child start with a relative program path
+ cmd.Dir = dir
+ cmd.Path = fn
+ // forge argv[0] for child, so that we can verify we could correctly
+ // get real path of the executable without influenced by argv[0].
+ cmd.Args = []string{"-", "-test.run=XXXX"}
+ cmd.Env = []string{fmt.Sprintf("%s=1", execPath_EnvVar)}
+ out, err := cmd.CombinedOutput()
+ if err != nil {
+ t.Fatalf("exec(self) failed: %v", err)
+ }
+ outs := string(out)
+ if !filepath.IsAbs(outs) {
+ t.Fatalf("Child returned %q, want an absolute path", out)
+ }
+ if !sameFile(outs, ep) {
+ t.Fatalf("Child returned %q, not the same file as %q", out, ep)
+ }
+}
+
+func sameFile(fn1, fn2 string) bool {
+ fi1, err := os.Stat(fn1)
+ if err != nil {
+ return false
+ }
+ fi2, err := os.Stat(fn2)
+ if err != nil {
+ return false
+ }
+ return os.SameFile(fi1, fi2)
+}
+
+func init() {
+ if e := os.Getenv(execPath_EnvVar); e != "" {
+ // first chdir to another path
+ dir := "/"
+ if runtime.GOOS == "windows" {
+ dir = filepath.VolumeName(".")
+ }
+ os.Chdir(dir)
+ if ep, err := Executable(); err != nil {
+ fmt.Fprint(os.Stderr, "ERROR: ", err)
+ } else {
+ fmt.Fprint(os.Stderr, ep)
+ }
+ os.Exit(0)
+ }
+}
diff --git a/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_windows.go b/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_windows.go
new file mode 100644
index 000000000..72d282cf8
--- /dev/null
+++ b/Godeps/_workspace/src/bitbucket.org/kardianos/osext/osext_windows.go
@@ -0,0 +1,34 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package osext
+
+import (
+ "syscall"
+ "unicode/utf16"
+ "unsafe"
+)
+
+var (
+ kernel = syscall.MustLoadDLL("kernel32.dll")
+ getModuleFileNameProc = kernel.MustFindProc("GetModuleFileNameW")
+)
+
+// GetModuleFileName() with hModule = NULL
+func executable() (exePath string, err error) {
+ return getModuleFileName()
+}
+
+func getModuleFileName() (string, error) {
+ var n uint32
+ b := make([]uint16, syscall.MAX_PATH)
+ size := uint32(len(b))
+
+ r0, _, e1 := getModuleFileNameProc.Call(0, uintptr(unsafe.Pointer(&b[0])), uintptr(size))
+ n = uint32(r0)
+ if n == 0 {
+ return "", e1
+ }
+ return string(utf16.Decode(b[0:n])), nil
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/LICENSE b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/LICENSE
new file mode 100644
index 000000000..ab6b011a1
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/LICENSE
@@ -0,0 +1,27 @@
+Copyright (c) 2009 Google Inc. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+copyright notice, this list of conditions and the following disclaimer
+in the documentation and/or other materials provided with the
+distribution.
+ * Neither the name of Google Inc. nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/dce.go b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/dce.go
new file mode 100644
index 000000000..50a0f2d09
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/dce.go
@@ -0,0 +1,84 @@
+// Copyright 2011 Google Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package uuid
+
+import (
+ "encoding/binary"
+ "fmt"
+ "os"
+)
+
+// A Domain represents a Version 2 domain
+type Domain byte
+
+// Domain constants for DCE Security (Version 2) UUIDs.
+const (
+ Person = Domain(0)
+ Group = Domain(1)
+ Org = Domain(2)
+)
+
+// NewDCESecurity returns a DCE Security (Version 2) UUID.
+//
+// The domain should be one of Person, Group or Org.
+// On a POSIX system the id should be the users UID for the Person
+// domain and the users GID for the Group. The meaning of id for
+// the domain Org or on non-POSIX systems is site defined.
+//
+// For a given domain/id pair the same token may be returned for up to
+// 7 minutes and 10 seconds.
+func NewDCESecurity(domain Domain, id uint32) UUID {
+ uuid := NewUUID()
+ if uuid != nil {
+ uuid[6] = (uuid[6] & 0x0f) | 0x20 // Version 2
+ uuid[9] = byte(domain)
+ binary.BigEndian.PutUint32(uuid[0:], id)
+ }
+ return uuid
+}
+
+// NewDCEPerson returns a DCE Security (Version 2) UUID in the person
+// domain with the id returned by os.Getuid.
+//
+// NewDCEPerson(Person, uint32(os.Getuid()))
+func NewDCEPerson() UUID {
+ return NewDCESecurity(Person, uint32(os.Getuid()))
+}
+
+// NewDCEGroup returns a DCE Security (Version 2) UUID in the group
+// domain with the id returned by os.Getgid.
+//
+// NewDCEGroup(Group, uint32(os.Getgid()))
+func NewDCEGroup() UUID {
+ return NewDCESecurity(Group, uint32(os.Getgid()))
+}
+
+// Domain returns the domain for a Version 2 UUID or false.
+func (uuid UUID) Domain() (Domain, bool) {
+ if v, _ := uuid.Version(); v != 2 {
+ return 0, false
+ }
+ return Domain(uuid[9]), true
+}
+
+// Id returns the id for a Version 2 UUID or false.
+func (uuid UUID) Id() (uint32, bool) {
+ if v, _ := uuid.Version(); v != 2 {
+ return 0, false
+ }
+ return binary.BigEndian.Uint32(uuid[0:4]), true
+}
+
+func (d Domain) String() string {
+ switch d {
+ case Person:
+ return "Person"
+ case Group:
+ return "Group"
+ case Org:
+ return "Org"
+ }
+ return fmt.Sprintf("Domain%d", int(d))
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/doc.go b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/doc.go
new file mode 100644
index 000000000..d8bd013e6
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/doc.go
@@ -0,0 +1,8 @@
+// Copyright 2011 Google Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// The uuid package generates and inspects UUIDs.
+//
+// UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security Services.
+package uuid
diff --git a/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/hash.go b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/hash.go
new file mode 100644
index 000000000..cdd4192fd
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/hash.go
@@ -0,0 +1,53 @@
+// Copyright 2011 Google Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package uuid
+
+import (
+ "crypto/md5"
+ "crypto/sha1"
+ "hash"
+)
+
+// Well known Name Space IDs and UUIDs
+var (
+ NameSpace_DNS = Parse("6ba7b810-9dad-11d1-80b4-00c04fd430c8")
+ NameSpace_URL = Parse("6ba7b811-9dad-11d1-80b4-00c04fd430c8")
+ NameSpace_OID = Parse("6ba7b812-9dad-11d1-80b4-00c04fd430c8")
+ NameSpace_X500 = Parse("6ba7b814-9dad-11d1-80b4-00c04fd430c8")
+ NIL = Parse("00000000-0000-0000-0000-000000000000")
+)
+
+// NewHash returns a new UUID dervied from the hash of space concatenated with
+// data generated by h. The hash should be at least 16 byte in length. The
+// first 16 bytes of the hash are used to form the UUID. The version of the
+// UUID will be the lower 4 bits of version. NewHash is used to implement
+// NewMD5 and NewSHA1.
+func NewHash(h hash.Hash, space UUID, data []byte, version int) UUID {
+ h.Reset()
+ h.Write(space)
+ h.Write([]byte(data))
+ s := h.Sum(nil)
+ uuid := make([]byte, 16)
+ copy(uuid, s)
+ uuid[6] = (uuid[6] & 0x0f) | uint8((version&0xf)<<4)
+ uuid[8] = (uuid[8] & 0x3f) | 0x80 // RFC 4122 variant
+ return uuid
+}
+
+// NewMD5 returns a new MD5 (Version 3) UUID based on the
+// supplied name space and data.
+//
+// NewHash(md5.New(), space, data, 3)
+func NewMD5(space UUID, data []byte) UUID {
+ return NewHash(md5.New(), space, data, 3)
+}
+
+// NewSHA1 returns a new SHA1 (Version 5) UUID based on the
+// supplied name space and data.
+//
+// NewHash(sha1.New(), space, data, 5)
+func NewSHA1(space UUID, data []byte) UUID {
+ return NewHash(sha1.New(), space, data, 5)
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/node.go b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/node.go
new file mode 100644
index 000000000..dd0a8ac18
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/node.go
@@ -0,0 +1,101 @@
+// Copyright 2011 Google Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package uuid
+
+import "net"
+
+var (
+ interfaces []net.Interface // cached list of interfaces
+ ifname string // name of interface being used
+ nodeID []byte // hardware for version 1 UUIDs
+)
+
+// NodeInterface returns the name of the interface from which the NodeID was
+// derived. The interface "user" is returned if the NodeID was set by
+// SetNodeID.
+func NodeInterface() string {
+ return ifname
+}
+
+// SetNodeInterface selects the hardware address to be used for Version 1 UUIDs.
+// If name is "" then the first usable interface found will be used or a random
+// Node ID will be generated. If a named interface cannot be found then false
+// is returned.
+//
+// SetNodeInterface never fails when name is "".
+func SetNodeInterface(name string) bool {
+ if interfaces == nil {
+ var err error
+ interfaces, err = net.Interfaces()
+ if err != nil && name != "" {
+ return false
+ }
+ }
+
+ for _, ifs := range interfaces {
+ if len(ifs.HardwareAddr) >= 6 && (name == "" || name == ifs.Name) {
+ if setNodeID(ifs.HardwareAddr) {
+ ifname = ifs.Name
+ return true
+ }
+ }
+ }
+
+ // We found no interfaces with a valid hardware address. If name
+ // does not specify a specific interface generate a random Node ID
+ // (section 4.1.6)
+ if name == "" {
+ if nodeID == nil {
+ nodeID = make([]byte, 6)
+ }
+ randomBits(nodeID)
+ return true
+ }
+ return false
+}
+
+// NodeID returns a slice of a copy of the current Node ID, setting the Node ID
+// if not already set.
+func NodeID() []byte {
+ if nodeID == nil {
+ SetNodeInterface("")
+ }
+ nid := make([]byte, 6)
+ copy(nid, nodeID)
+ return nid
+}
+
+// SetNodeID sets the Node ID to be used for Version 1 UUIDs. The first 6 bytes
+// of id are used. If id is less than 6 bytes then false is returned and the
+// Node ID is not set.
+func SetNodeID(id []byte) bool {
+ if setNodeID(id) {
+ ifname = "user"
+ return true
+ }
+ return false
+}
+
+func setNodeID(id []byte) bool {
+ if len(id) < 6 {
+ return false
+ }
+ if nodeID == nil {
+ nodeID = make([]byte, 6)
+ }
+ copy(nodeID, id)
+ return true
+}
+
+// NodeID returns the 6 byte node id encoded in uuid. It returns nil if uuid is
+// not valid. The NodeID is only well defined for version 1 and 2 UUIDs.
+func (uuid UUID) NodeID() []byte {
+ if len(uuid) != 16 {
+ return nil
+ }
+ node := make([]byte, 6)
+ copy(node, uuid[10:])
+ return node
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/time.go b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/time.go
new file mode 100644
index 000000000..b9369c200
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/time.go
@@ -0,0 +1,132 @@
+// Copyright 2014 Google Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package uuid
+
+import (
+ "encoding/binary"
+ "sync"
+ "time"
+)
+
+// A Time represents a time as the number of 100's of nanoseconds since 15 Oct
+// 1582.
+type Time int64
+
+const (
+ lillian = 2299160 // Julian day of 15 Oct 1582
+ unix = 2440587 // Julian day of 1 Jan 1970
+ epoch = unix - lillian // Days between epochs
+ g1582 = epoch * 86400 // seconds between epochs
+ g1582ns100 = g1582 * 10000000 // 100s of a nanoseconds between epochs
+)
+
+var (
+ mu sync.Mutex
+ lasttime uint64 // last time we returned
+ clock_seq uint16 // clock sequence for this run
+
+ timeNow = time.Now // for testing
+)
+
+// UnixTime converts t the number of seconds and nanoseconds using the Unix
+// epoch of 1 Jan 1970.
+func (t Time) UnixTime() (sec, nsec int64) {
+ sec = int64(t - g1582ns100)
+ nsec = (sec % 10000000) * 100
+ sec /= 10000000
+ return sec, nsec
+}
+
+// GetTime returns the current Time (100s of nanoseconds since 15 Oct 1582) and
+// adjusts the clock sequence as needed. An error is returned if the current
+// time cannot be determined.
+func GetTime() (Time, error) {
+ defer mu.Unlock()
+ mu.Lock()
+ return getTime()
+}
+
+func getTime() (Time, error) {
+ t := timeNow()
+
+ // If we don't have a clock sequence already, set one.
+ if clock_seq == 0 {
+ setClockSequence(-1)
+ }
+ now := uint64(t.UnixNano()/100) + g1582ns100
+
+ // If time has gone backwards with this clock sequence then we
+ // increment the clock sequence
+ if now <= lasttime {
+ clock_seq = ((clock_seq + 1) & 0x3fff) | 0x8000
+ }
+ lasttime = now
+ return Time(now), nil
+}
+
+// ClockSequence returns the current clock sequence, generating one if not
+// already set. The clock sequence is only used for Version 1 UUIDs.
+//
+// The uuid package does not use global static storage for the clock sequence or
+// the last time a UUID was generated. Unless SetClockSequence a new random
+// clock sequence is generated the first time a clock sequence is requested by
+// ClockSequence, GetTime, or NewUUID. (section 4.2.1.1) sequence is generated
+// for
+func ClockSequence() int {
+ defer mu.Unlock()
+ mu.Lock()
+ return clockSequence()
+}
+
+func clockSequence() int {
+ if clock_seq == 0 {
+ setClockSequence(-1)
+ }
+ return int(clock_seq & 0x3fff)
+}
+
+// SetClockSeq sets the clock sequence to the lower 14 bits of seq. Setting to
+// -1 causes a new sequence to be generated.
+func SetClockSequence(seq int) {
+ defer mu.Unlock()
+ mu.Lock()
+ setClockSequence(seq)
+}
+
+func setClockSequence(seq int) {
+ if seq == -1 {
+ var b [2]byte
+ randomBits(b[:]) // clock sequence
+ seq = int(b[0])<<8 | int(b[1])
+ }
+ old_seq := clock_seq
+ clock_seq = uint16(seq&0x3fff) | 0x8000 // Set our variant
+ if old_seq != clock_seq {
+ lasttime = 0
+ }
+}
+
+// Time returns the time in 100s of nanoseconds since 15 Oct 1582 encoded in
+// uuid. It returns false if uuid is not valid. The time is only well defined
+// for version 1 and 2 UUIDs.
+func (uuid UUID) Time() (Time, bool) {
+ if len(uuid) != 16 {
+ return 0, false
+ }
+ time := int64(binary.BigEndian.Uint32(uuid[0:4]))
+ time |= int64(binary.BigEndian.Uint16(uuid[4:6])) << 32
+ time |= int64(binary.BigEndian.Uint16(uuid[6:8])&0xfff) << 48
+ return Time(time), true
+}
+
+// ClockSequence returns the clock sequence encoded in uuid. It returns false
+// if uuid is not valid. The clock sequence is only well defined for version 1
+// and 2 UUIDs.
+func (uuid UUID) ClockSequence() (int, bool) {
+ if len(uuid) != 16 {
+ return 0, false
+ }
+ return int(binary.BigEndian.Uint16(uuid[8:10])) & 0x3fff, true
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/util.go b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/util.go
new file mode 100644
index 000000000..de40b102c
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/util.go
@@ -0,0 +1,43 @@
+// Copyright 2011 Google Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package uuid
+
+import (
+ "io"
+)
+
+// randomBits completely fills slice b with random data.
+func randomBits(b []byte) {
+ if _, err := io.ReadFull(rander, b); err != nil {
+ panic(err.Error()) // rand should never fail
+ }
+}
+
+// xvalues returns the value of a byte as a hexadecimal digit or 255.
+var xvalues = []byte{
+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 255, 255, 255, 255, 255, 255,
+ 255, 10, 11, 12, 13, 14, 15, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 10, 11, 12, 13, 14, 15, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+}
+
+// xtob converts the the first two hex bytes of x into a byte.
+func xtob(x string) (byte, bool) {
+ b1 := xvalues[x[0]]
+ b2 := xvalues[x[1]]
+ return (b1 << 4) | b2, b1 != 255 && b2 != 255
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/uuid.go b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/uuid.go
new file mode 100644
index 000000000..2920fae63
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/uuid.go
@@ -0,0 +1,163 @@
+// Copyright 2011 Google Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package uuid
+
+import (
+ "bytes"
+ "crypto/rand"
+ "fmt"
+ "io"
+ "strings"
+)
+
+// A UUID is a 128 bit (16 byte) Universal Unique IDentifier as defined in RFC
+// 4122.
+type UUID []byte
+
+// A Version represents a UUIDs version.
+type Version byte
+
+// A Variant represents a UUIDs variant.
+type Variant byte
+
+// Constants returned by Variant.
+const (
+ Invalid = Variant(iota) // Invalid UUID
+ RFC4122 // The variant specified in RFC4122
+ Reserved // Reserved, NCS backward compatibility.
+ Microsoft // Reserved, Microsoft Corporation backward compatibility.
+ Future // Reserved for future definition.
+)
+
+var rander = rand.Reader // random function
+
+// New returns a new random (version 4) UUID as a string. It is a convenience
+// function for NewRandom().String().
+func New() string {
+ return NewRandom().String()
+}
+
+// Parse decodes s into a UUID or returns nil. Both the UUID form of
+// xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx and
+// urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx are decoded.
+func Parse(s string) UUID {
+ if len(s) == 36+9 {
+ if strings.ToLower(s[:9]) != "urn:uuid:" {
+ return nil
+ }
+ s = s[9:]
+ } else if len(s) != 36 {
+ return nil
+ }
+ if s[8] != '-' || s[13] != '-' || s[18] != '-' || s[23] != '-' {
+ return nil
+ }
+ uuid := make([]byte, 16)
+ for i, x := range []int{
+ 0, 2, 4, 6,
+ 9, 11,
+ 14, 16,
+ 19, 21,
+ 24, 26, 28, 30, 32, 34} {
+ if v, ok := xtob(s[x:]); !ok {
+ return nil
+ } else {
+ uuid[i] = v
+ }
+ }
+ return uuid
+}
+
+// Equal returns true if uuid1 and uuid2 are equal.
+func Equal(uuid1, uuid2 UUID) bool {
+ return bytes.Equal(uuid1, uuid2)
+}
+
+// String returns the string form of uuid, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+// , or "" if uuid is invalid.
+func (uuid UUID) String() string {
+ if uuid == nil || len(uuid) != 16 {
+ return ""
+ }
+ b := []byte(uuid)
+ return fmt.Sprintf("%08x-%04x-%04x-%04x-%012x",
+ b[:4], b[4:6], b[6:8], b[8:10], b[10:])
+}
+
+// URN returns the RFC 2141 URN form of uuid,
+// urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, or "" if uuid is invalid.
+func (uuid UUID) URN() string {
+ if uuid == nil || len(uuid) != 16 {
+ return ""
+ }
+ b := []byte(uuid)
+ return fmt.Sprintf("urn:uuid:%08x-%04x-%04x-%04x-%012x",
+ b[:4], b[4:6], b[6:8], b[8:10], b[10:])
+}
+
+// Variant returns the variant encoded in uuid. It returns Invalid if
+// uuid is invalid.
+func (uuid UUID) Variant() Variant {
+ if len(uuid) != 16 {
+ return Invalid
+ }
+ switch {
+ case (uuid[8] & 0xc0) == 0x80:
+ return RFC4122
+ case (uuid[8] & 0xe0) == 0xc0:
+ return Microsoft
+ case (uuid[8] & 0xe0) == 0xe0:
+ return Future
+ default:
+ return Reserved
+ }
+ panic("unreachable")
+}
+
+// Version returns the verison of uuid. It returns false if uuid is not
+// valid.
+func (uuid UUID) Version() (Version, bool) {
+ if len(uuid) != 16 {
+ return 0, false
+ }
+ return Version(uuid[6] >> 4), true
+}
+
+func (v Version) String() string {
+ if v > 15 {
+ return fmt.Sprintf("BAD_VERSION_%d", v)
+ }
+ return fmt.Sprintf("VERSION_%d", v)
+}
+
+func (v Variant) String() string {
+ switch v {
+ case RFC4122:
+ return "RFC4122"
+ case Reserved:
+ return "Reserved"
+ case Microsoft:
+ return "Microsoft"
+ case Future:
+ return "Future"
+ case Invalid:
+ return "Invalid"
+ }
+ return fmt.Sprintf("BadVariant%d", int(v))
+}
+
+// SetRand sets the random number generator to r, which implents io.Reader.
+// If r.Read returns an error when the package requests random data then
+// a panic will be issued.
+//
+// Calling SetRand with nil sets the random number generator to the default
+// generator.
+func SetRand(r io.Reader) {
+ if r == nil {
+ rander = rand.Reader
+ return
+ }
+ rander = r
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/uuid_test.go b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/uuid_test.go
new file mode 100644
index 000000000..417ebeb26
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/uuid_test.go
@@ -0,0 +1,390 @@
+// Copyright 2011 Google Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package uuid
+
+import (
+ "bytes"
+ "fmt"
+ "os"
+ "strings"
+ "testing"
+ "time"
+)
+
+type test struct {
+ in string
+ version Version
+ variant Variant
+ isuuid bool
+}
+
+var tests = []test{
+ {"f47ac10b-58cc-0372-8567-0e02b2c3d479", 0, RFC4122, true},
+ {"f47ac10b-58cc-1372-8567-0e02b2c3d479", 1, RFC4122, true},
+ {"f47ac10b-58cc-2372-8567-0e02b2c3d479", 2, RFC4122, true},
+ {"f47ac10b-58cc-3372-8567-0e02b2c3d479", 3, RFC4122, true},
+ {"f47ac10b-58cc-4372-8567-0e02b2c3d479", 4, RFC4122, true},
+ {"f47ac10b-58cc-5372-8567-0e02b2c3d479", 5, RFC4122, true},
+ {"f47ac10b-58cc-6372-8567-0e02b2c3d479", 6, RFC4122, true},
+ {"f47ac10b-58cc-7372-8567-0e02b2c3d479", 7, RFC4122, true},
+ {"f47ac10b-58cc-8372-8567-0e02b2c3d479", 8, RFC4122, true},
+ {"f47ac10b-58cc-9372-8567-0e02b2c3d479", 9, RFC4122, true},
+ {"f47ac10b-58cc-a372-8567-0e02b2c3d479", 10, RFC4122, true},
+ {"f47ac10b-58cc-b372-8567-0e02b2c3d479", 11, RFC4122, true},
+ {"f47ac10b-58cc-c372-8567-0e02b2c3d479", 12, RFC4122, true},
+ {"f47ac10b-58cc-d372-8567-0e02b2c3d479", 13, RFC4122, true},
+ {"f47ac10b-58cc-e372-8567-0e02b2c3d479", 14, RFC4122, true},
+ {"f47ac10b-58cc-f372-8567-0e02b2c3d479", 15, RFC4122, true},
+
+ {"urn:uuid:f47ac10b-58cc-4372-0567-0e02b2c3d479", 4, Reserved, true},
+ {"URN:UUID:f47ac10b-58cc-4372-0567-0e02b2c3d479", 4, Reserved, true},
+ {"f47ac10b-58cc-4372-0567-0e02b2c3d479", 4, Reserved, true},
+ {"f47ac10b-58cc-4372-1567-0e02b2c3d479", 4, Reserved, true},
+ {"f47ac10b-58cc-4372-2567-0e02b2c3d479", 4, Reserved, true},
+ {"f47ac10b-58cc-4372-3567-0e02b2c3d479", 4, Reserved, true},
+ {"f47ac10b-58cc-4372-4567-0e02b2c3d479", 4, Reserved, true},
+ {"f47ac10b-58cc-4372-5567-0e02b2c3d479", 4, Reserved, true},
+ {"f47ac10b-58cc-4372-6567-0e02b2c3d479", 4, Reserved, true},
+ {"f47ac10b-58cc-4372-7567-0e02b2c3d479", 4, Reserved, true},
+ {"f47ac10b-58cc-4372-8567-0e02b2c3d479", 4, RFC4122, true},
+ {"f47ac10b-58cc-4372-9567-0e02b2c3d479", 4, RFC4122, true},
+ {"f47ac10b-58cc-4372-a567-0e02b2c3d479", 4, RFC4122, true},
+ {"f47ac10b-58cc-4372-b567-0e02b2c3d479", 4, RFC4122, true},
+ {"f47ac10b-58cc-4372-c567-0e02b2c3d479", 4, Microsoft, true},
+ {"f47ac10b-58cc-4372-d567-0e02b2c3d479", 4, Microsoft, true},
+ {"f47ac10b-58cc-4372-e567-0e02b2c3d479", 4, Future, true},
+ {"f47ac10b-58cc-4372-f567-0e02b2c3d479", 4, Future, true},
+
+ {"f47ac10b158cc-5372-a567-0e02b2c3d479", 0, Invalid, false},
+ {"f47ac10b-58cc25372-a567-0e02b2c3d479", 0, Invalid, false},
+ {"f47ac10b-58cc-53723a567-0e02b2c3d479", 0, Invalid, false},
+ {"f47ac10b-58cc-5372-a56740e02b2c3d479", 0, Invalid, false},
+ {"f47ac10b-58cc-5372-a567-0e02-2c3d479", 0, Invalid, false},
+ {"g47ac10b-58cc-4372-a567-0e02b2c3d479", 0, Invalid, false},
+}
+
+var constants = []struct {
+ c interface{}
+ name string
+}{
+ {Person, "Person"},
+ {Group, "Group"},
+ {Org, "Org"},
+ {Invalid, "Invalid"},
+ {RFC4122, "RFC4122"},
+ {Reserved, "Reserved"},
+ {Microsoft, "Microsoft"},
+ {Future, "Future"},
+ {Domain(17), "Domain17"},
+ {Variant(42), "BadVariant42"},
+}
+
+func testTest(t *testing.T, in string, tt test) {
+ uuid := Parse(in)
+ if ok := (uuid != nil); ok != tt.isuuid {
+ t.Errorf("Parse(%s) got %v expected %v\b", in, ok, tt.isuuid)
+ }
+ if uuid == nil {
+ return
+ }
+
+ if v := uuid.Variant(); v != tt.variant {
+ t.Errorf("Variant(%s) got %d expected %d\b", in, v, tt.variant)
+ }
+ if v, _ := uuid.Version(); v != tt.version {
+ t.Errorf("Version(%s) got %d expected %d\b", in, v, tt.version)
+ }
+}
+
+func TestUUID(t *testing.T) {
+ for _, tt := range tests {
+ testTest(t, tt.in, tt)
+ testTest(t, strings.ToUpper(tt.in), tt)
+ }
+}
+
+func TestConstants(t *testing.T) {
+ for x, tt := range constants {
+ v, ok := tt.c.(fmt.Stringer)
+ if !ok {
+ t.Errorf("%x: %v: not a stringer", x, v)
+ } else if s := v.String(); s != tt.name {
+ v, _ := tt.c.(int)
+ t.Errorf("%x: Constant %T:%d gives %q, expected %q\n", x, tt.c, v, s, tt.name)
+ }
+ }
+}
+
+func TestRandomUUID(t *testing.T) {
+ m := make(map[string]bool)
+ for x := 1; x < 32; x++ {
+ uuid := NewRandom()
+ s := uuid.String()
+ if m[s] {
+ t.Errorf("NewRandom returned duplicated UUID %s\n", s)
+ }
+ m[s] = true
+ if v, _ := uuid.Version(); v != 4 {
+ t.Errorf("Random UUID of version %s\n", v)
+ }
+ if uuid.Variant() != RFC4122 {
+ t.Errorf("Random UUID is variant %d\n", uuid.Variant())
+ }
+ }
+}
+
+func TestNew(t *testing.T) {
+ m := make(map[string]bool)
+ for x := 1; x < 32; x++ {
+ s := New()
+ if m[s] {
+ t.Errorf("New returned duplicated UUID %s\n", s)
+ }
+ m[s] = true
+ uuid := Parse(s)
+ if uuid == nil {
+ t.Errorf("New returned %q which does not decode\n", s)
+ continue
+ }
+ if v, _ := uuid.Version(); v != 4 {
+ t.Errorf("Random UUID of version %s\n", v)
+ }
+ if uuid.Variant() != RFC4122 {
+ t.Errorf("Random UUID is variant %d\n", uuid.Variant())
+ }
+ }
+}
+
+func clockSeq(t *testing.T, uuid UUID) int {
+ seq, ok := uuid.ClockSequence()
+ if !ok {
+ t.Fatalf("%s: invalid clock sequence\n", uuid)
+ }
+ return seq
+}
+
+func TestClockSeq(t *testing.T) {
+ // Fake time.Now for this test to return a monotonically advancing time; restore it at end.
+ defer func(orig func() time.Time) { timeNow = orig }(timeNow)
+ monTime := time.Now()
+ timeNow = func() time.Time {
+ monTime = monTime.Add(1 * time.Second)
+ return monTime
+ }
+
+ SetClockSequence(-1)
+ uuid1 := NewUUID()
+ uuid2 := NewUUID()
+
+ if clockSeq(t, uuid1) != clockSeq(t, uuid2) {
+ t.Errorf("clock sequence %d != %d\n", clockSeq(t, uuid1), clockSeq(t, uuid2))
+ }
+
+ SetClockSequence(-1)
+ uuid2 = NewUUID()
+
+ // Just on the very off chance we generated the same sequence
+ // two times we try again.
+ if clockSeq(t, uuid1) == clockSeq(t, uuid2) {
+ SetClockSequence(-1)
+ uuid2 = NewUUID()
+ }
+ if clockSeq(t, uuid1) == clockSeq(t, uuid2) {
+ t.Errorf("Duplicate clock sequence %d\n", clockSeq(t, uuid1))
+ }
+
+ SetClockSequence(0x1234)
+ uuid1 = NewUUID()
+ if seq := clockSeq(t, uuid1); seq != 0x1234 {
+ t.Errorf("%s: expected seq 0x1234 got 0x%04x\n", uuid1, seq)
+ }
+}
+
+func TestCoding(t *testing.T) {
+ text := "7d444840-9dc0-11d1-b245-5ffdce74fad2"
+ urn := "urn:uuid:7d444840-9dc0-11d1-b245-5ffdce74fad2"
+ data := UUID{
+ 0x7d, 0x44, 0x48, 0x40,
+ 0x9d, 0xc0,
+ 0x11, 0xd1,
+ 0xb2, 0x45,
+ 0x5f, 0xfd, 0xce, 0x74, 0xfa, 0xd2,
+ }
+ if v := data.String(); v != text {
+ t.Errorf("%x: encoded to %s, expected %s\n", data, v, text)
+ }
+ if v := data.URN(); v != urn {
+ t.Errorf("%x: urn is %s, expected %s\n", data, v, urn)
+ }
+
+ uuid := Parse(text)
+ if !Equal(uuid, data) {
+ t.Errorf("%s: decoded to %s, expected %s\n", text, uuid, data)
+ }
+}
+
+func TestVersion1(t *testing.T) {
+ uuid1 := NewUUID()
+ uuid2 := NewUUID()
+
+ if Equal(uuid1, uuid2) {
+ t.Errorf("%s:duplicate uuid\n", uuid1)
+ }
+ if v, _ := uuid1.Version(); v != 1 {
+ t.Errorf("%s: version %s expected 1\n", uuid1, v)
+ }
+ if v, _ := uuid2.Version(); v != 1 {
+ t.Errorf("%s: version %s expected 1\n", uuid2, v)
+ }
+ n1 := uuid1.NodeID()
+ n2 := uuid2.NodeID()
+ if !bytes.Equal(n1, n2) {
+ t.Errorf("Different nodes %x != %x\n", n1, n2)
+ }
+ t1, ok := uuid1.Time()
+ if !ok {
+ t.Errorf("%s: invalid time\n", uuid1)
+ }
+ t2, ok := uuid2.Time()
+ if !ok {
+ t.Errorf("%s: invalid time\n", uuid2)
+ }
+ q1, ok := uuid1.ClockSequence()
+ if !ok {
+ t.Errorf("%s: invalid clock sequence\n", uuid1)
+ }
+ q2, ok := uuid2.ClockSequence()
+ if !ok {
+ t.Errorf("%s: invalid clock sequence", uuid2)
+ }
+
+ switch {
+ case t1 == t2 && q1 == q2:
+ t.Errorf("time stopped\n")
+ case t1 > t2 && q1 == q2:
+ t.Errorf("time reversed\n")
+ case t1 < t2 && q1 != q2:
+ t.Errorf("clock sequence chaned unexpectedly\n")
+ }
+}
+
+func TestNodeAndTime(t *testing.T) {
+ // Time is February 5, 1998 12:30:23.136364800 AM GMT
+
+ uuid := Parse("7d444840-9dc0-11d1-b245-5ffdce74fad2")
+ node := []byte{0x5f, 0xfd, 0xce, 0x74, 0xfa, 0xd2}
+
+ ts, ok := uuid.Time()
+ if ok {
+ c := time.Unix(ts.UnixTime())
+ want := time.Date(1998, 2, 5, 0, 30, 23, 136364800, time.UTC)
+ if !c.Equal(want) {
+ t.Errorf("Got time %v, want %v", c, want)
+ }
+ } else {
+ t.Errorf("%s: bad time\n", uuid)
+ }
+ if !bytes.Equal(node, uuid.NodeID()) {
+ t.Errorf("Expected node %v got %v\n", node, uuid.NodeID())
+ }
+}
+
+func TestMD5(t *testing.T) {
+ uuid := NewMD5(NameSpace_DNS, []byte("python.org")).String()
+ want := "6fa459ea-ee8a-3ca4-894e-db77e160355e"
+ if uuid != want {
+ t.Errorf("MD5: got %q expected %q\n", uuid, want)
+ }
+}
+
+func TestSHA1(t *testing.T) {
+ uuid := NewSHA1(NameSpace_DNS, []byte("python.org")).String()
+ want := "886313e1-3b8a-5372-9b90-0c9aee199e5d"
+ if uuid != want {
+ t.Errorf("SHA1: got %q expected %q\n", uuid, want)
+ }
+}
+
+func TestNodeID(t *testing.T) {
+ nid := []byte{1, 2, 3, 4, 5, 6}
+ SetNodeInterface("")
+ s := NodeInterface()
+ if s == "" || s == "user" {
+ t.Errorf("NodeInterface %q after SetInteface\n", s)
+ }
+ node1 := NodeID()
+ if node1 == nil {
+ t.Errorf("NodeID nil after SetNodeInterface\n", s)
+ }
+ SetNodeID(nid)
+ s = NodeInterface()
+ if s != "user" {
+ t.Errorf("Expected NodeInterface %q got %q\n", "user", s)
+ }
+ node2 := NodeID()
+ if node2 == nil {
+ t.Errorf("NodeID nil after SetNodeID\n", s)
+ }
+ if bytes.Equal(node1, node2) {
+ t.Errorf("NodeID not changed after SetNodeID\n", s)
+ } else if !bytes.Equal(nid, node2) {
+ t.Errorf("NodeID is %x, expected %x\n", node2, nid)
+ }
+}
+
+func testDCE(t *testing.T, name string, uuid UUID, domain Domain, id uint32) {
+ if uuid == nil {
+ t.Errorf("%s failed\n", name)
+ return
+ }
+ if v, _ := uuid.Version(); v != 2 {
+ t.Errorf("%s: %s: expected version 2, got %s\n", name, uuid, v)
+ return
+ }
+ if v, ok := uuid.Domain(); !ok || v != domain {
+ if !ok {
+ t.Errorf("%s: %d: Domain failed\n", name, uuid)
+ } else {
+ t.Errorf("%s: %s: expected domain %d, got %d\n", name, uuid, domain, v)
+ }
+ }
+ if v, ok := uuid.Id(); !ok || v != id {
+ if !ok {
+ t.Errorf("%s: %d: Id failed\n", name, uuid)
+ } else {
+ t.Errorf("%s: %s: expected id %d, got %d\n", name, uuid, id, v)
+ }
+ }
+}
+
+func TestDCE(t *testing.T) {
+ testDCE(t, "NewDCESecurity", NewDCESecurity(42, 12345678), 42, 12345678)
+ testDCE(t, "NewDCEPerson", NewDCEPerson(), Person, uint32(os.Getuid()))
+ testDCE(t, "NewDCEGroup", NewDCEGroup(), Group, uint32(os.Getgid()))
+}
+
+type badRand struct{}
+
+func (r badRand) Read(buf []byte) (int, error) {
+ for i, _ := range buf {
+ buf[i] = byte(i)
+ }
+ return len(buf), nil
+}
+
+func TestBadRand(t *testing.T) {
+ SetRand(badRand{})
+ uuid1 := New()
+ uuid2 := New()
+ if uuid1 != uuid2 {
+ t.Errorf("execpted duplicates, got %q and %q\n", uuid1, uuid2)
+ }
+ SetRand(nil)
+ uuid1 = New()
+ uuid2 = New()
+ if uuid1 == uuid2 {
+ t.Errorf("unexecpted duplicates, got %q\n", uuid1)
+ }
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/version1.go b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/version1.go
new file mode 100644
index 000000000..63580044b
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/version1.go
@@ -0,0 +1,41 @@
+// Copyright 2011 Google Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package uuid
+
+import (
+ "encoding/binary"
+)
+
+// NewUUID returns a Version 1 UUID based on the current NodeID and clock
+// sequence, and the current time. If the NodeID has not been set by SetNodeID
+// or SetNodeInterface then it will be set automatically. If the NodeID cannot
+// be set NewUUID returns nil. If clock sequence has not been set by
+// SetClockSequence then it will be set automatically. If GetTime fails to
+// return the current NewUUID returns nil.
+func NewUUID() UUID {
+ if nodeID == nil {
+ SetNodeInterface("")
+ }
+
+ now, err := GetTime()
+ if err != nil {
+ return nil
+ }
+
+ uuid := make([]byte, 16)
+
+ time_low := uint32(now & 0xffffffff)
+ time_mid := uint16((now >> 32) & 0xffff)
+ time_hi := uint16((now >> 48) & 0x0fff)
+ time_hi |= 0x1000 // Version 1
+
+ binary.BigEndian.PutUint32(uuid[0:], time_low)
+ binary.BigEndian.PutUint16(uuid[4:], time_mid)
+ binary.BigEndian.PutUint16(uuid[6:], time_hi)
+ binary.BigEndian.PutUint16(uuid[8:], clock_seq)
+ copy(uuid[10:], nodeID)
+
+ return uuid
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/version4.go b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/version4.go
new file mode 100644
index 000000000..b3d4a368d
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid/version4.go
@@ -0,0 +1,25 @@
+// Copyright 2011 Google Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package uuid
+
+// Random returns a Random (Version 4) UUID or panics.
+//
+// The strength of the UUIDs is based on the strength of the crypto/rand
+// package.
+//
+// A note about uniqueness derived from from the UUID Wikipedia entry:
+//
+// Randomly generated UUIDs have 122 random bits. One's annual risk of being
+// hit by a meteorite is estimated to be one chance in 17 billion, that
+// means the probability is about 0.00000000006 (6 × 10−11),
+// equivalent to the odds of creating a few tens of trillions of UUIDs in a
+// year and having one duplicate.
+func NewRandom() UUID {
+ uuid := make([]byte, 16)
+ randomBits([]byte(uuid))
+ uuid[6] = (uuid[6] & 0x0f) | 0x40 // Version 4
+ uuid[8] = (uuid[8] & 0x3f) | 0x80 // Variant is 10
+ return uuid
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.crypto/pbkdf2/pbkdf2.go b/Godeps/_workspace/src/code.google.com/p/go.crypto/pbkdf2/pbkdf2.go
new file mode 100644
index 000000000..c02b4d5a7
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.crypto/pbkdf2/pbkdf2.go
@@ -0,0 +1,77 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+/*
+Package pbkdf2 implements the key derivation function PBKDF2 as defined in RFC
+2898 / PKCS #5 v2.0.
+
+A key derivation function is useful when encrypting data based on a password
+or any other not-fully-random data. It uses a pseudorandom function to derive
+a secure encryption key based on the password.
+
+While v2.0 of the standard defines only one pseudorandom function to use,
+HMAC-SHA1, the drafted v2.1 specification allows use of all five FIPS Approved
+Hash Functions SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512 for HMAC. To
+choose, you can pass the `New` functions from the different SHA packages to
+pbkdf2.Key.
+*/
+package pbkdf2
+
+import (
+ "crypto/hmac"
+ "hash"
+)
+
+// Key derives a key from the password, salt and iteration count, returning a
+// []byte of length keylen that can be used as cryptographic key. The key is
+// derived based on the method described as PBKDF2 with the HMAC variant using
+// the supplied hash function.
+//
+// For example, to use a HMAC-SHA-1 based PBKDF2 key derivation function, you
+// can get a derived key for e.g. AES-256 (which needs a 32-byte key) by
+// doing:
+//
+// dk := pbkdf2.Key([]byte("some password"), salt, 4096, 32, sha1.New)
+//
+// Remember to get a good random salt. At least 8 bytes is recommended by the
+// RFC.
+//
+// Using a higher iteration count will increase the cost of an exhaustive
+// search but will also make derivation proportionally slower.
+func Key(password, salt []byte, iter, keyLen int, h func() hash.Hash) []byte {
+ prf := hmac.New(h, password)
+ hashLen := prf.Size()
+ numBlocks := (keyLen + hashLen - 1) / hashLen
+
+ var buf [4]byte
+ dk := make([]byte, 0, numBlocks*hashLen)
+ U := make([]byte, hashLen)
+ for block := 1; block <= numBlocks; block++ {
+ // N.B.: || means concatenation, ^ means XOR
+ // for each block T_i = U_1 ^ U_2 ^ ... ^ U_iter
+ // U_1 = PRF(password, salt || uint(i))
+ prf.Reset()
+ prf.Write(salt)
+ buf[0] = byte(block >> 24)
+ buf[1] = byte(block >> 16)
+ buf[2] = byte(block >> 8)
+ buf[3] = byte(block)
+ prf.Write(buf[:4])
+ dk = prf.Sum(dk)
+ T := dk[len(dk)-hashLen:]
+ copy(U, T)
+
+ // U_n = PRF(password, U_(n-1))
+ for n := 2; n <= iter; n++ {
+ prf.Reset()
+ prf.Write(U)
+ U = U[:0]
+ U = prf.Sum(U)
+ for x := range U {
+ T[x] ^= U[x]
+ }
+ }
+ }
+ return dk[:keyLen]
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.crypto/pbkdf2/pbkdf2_test.go b/Godeps/_workspace/src/code.google.com/p/go.crypto/pbkdf2/pbkdf2_test.go
new file mode 100644
index 000000000..137924061
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.crypto/pbkdf2/pbkdf2_test.go
@@ -0,0 +1,157 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package pbkdf2
+
+import (
+ "bytes"
+ "crypto/sha1"
+ "crypto/sha256"
+ "hash"
+ "testing"
+)
+
+type testVector struct {
+ password string
+ salt string
+ iter int
+ output []byte
+}
+
+// Test vectors from RFC 6070, http://tools.ietf.org/html/rfc6070
+var sha1TestVectors = []testVector{
+ {
+ "password",
+ "salt",
+ 1,
+ []byte{
+ 0x0c, 0x60, 0xc8, 0x0f, 0x96, 0x1f, 0x0e, 0x71,
+ 0xf3, 0xa9, 0xb5, 0x24, 0xaf, 0x60, 0x12, 0x06,
+ 0x2f, 0xe0, 0x37, 0xa6,
+ },
+ },
+ {
+ "password",
+ "salt",
+ 2,
+ []byte{
+ 0xea, 0x6c, 0x01, 0x4d, 0xc7, 0x2d, 0x6f, 0x8c,
+ 0xcd, 0x1e, 0xd9, 0x2a, 0xce, 0x1d, 0x41, 0xf0,
+ 0xd8, 0xde, 0x89, 0x57,
+ },
+ },
+ {
+ "password",
+ "salt",
+ 4096,
+ []byte{
+ 0x4b, 0x00, 0x79, 0x01, 0xb7, 0x65, 0x48, 0x9a,
+ 0xbe, 0xad, 0x49, 0xd9, 0x26, 0xf7, 0x21, 0xd0,
+ 0x65, 0xa4, 0x29, 0xc1,
+ },
+ },
+ // // This one takes too long
+ // {
+ // "password",
+ // "salt",
+ // 16777216,
+ // []byte{
+ // 0xee, 0xfe, 0x3d, 0x61, 0xcd, 0x4d, 0xa4, 0xe4,
+ // 0xe9, 0x94, 0x5b, 0x3d, 0x6b, 0xa2, 0x15, 0x8c,
+ // 0x26, 0x34, 0xe9, 0x84,
+ // },
+ // },
+ {
+ "passwordPASSWORDpassword",
+ "saltSALTsaltSALTsaltSALTsaltSALTsalt",
+ 4096,
+ []byte{
+ 0x3d, 0x2e, 0xec, 0x4f, 0xe4, 0x1c, 0x84, 0x9b,
+ 0x80, 0xc8, 0xd8, 0x36, 0x62, 0xc0, 0xe4, 0x4a,
+ 0x8b, 0x29, 0x1a, 0x96, 0x4c, 0xf2, 0xf0, 0x70,
+ 0x38,
+ },
+ },
+ {
+ "pass\000word",
+ "sa\000lt",
+ 4096,
+ []byte{
+ 0x56, 0xfa, 0x6a, 0xa7, 0x55, 0x48, 0x09, 0x9d,
+ 0xcc, 0x37, 0xd7, 0xf0, 0x34, 0x25, 0xe0, 0xc3,
+ },
+ },
+}
+
+// Test vectors from
+// http://stackoverflow.com/questions/5130513/pbkdf2-hmac-sha2-test-vectors
+var sha256TestVectors = []testVector{
+ {
+ "password",
+ "salt",
+ 1,
+ []byte{
+ 0x12, 0x0f, 0xb6, 0xcf, 0xfc, 0xf8, 0xb3, 0x2c,
+ 0x43, 0xe7, 0x22, 0x52, 0x56, 0xc4, 0xf8, 0x37,
+ 0xa8, 0x65, 0x48, 0xc9,
+ },
+ },
+ {
+ "password",
+ "salt",
+ 2,
+ []byte{
+ 0xae, 0x4d, 0x0c, 0x95, 0xaf, 0x6b, 0x46, 0xd3,
+ 0x2d, 0x0a, 0xdf, 0xf9, 0x28, 0xf0, 0x6d, 0xd0,
+ 0x2a, 0x30, 0x3f, 0x8e,
+ },
+ },
+ {
+ "password",
+ "salt",
+ 4096,
+ []byte{
+ 0xc5, 0xe4, 0x78, 0xd5, 0x92, 0x88, 0xc8, 0x41,
+ 0xaa, 0x53, 0x0d, 0xb6, 0x84, 0x5c, 0x4c, 0x8d,
+ 0x96, 0x28, 0x93, 0xa0,
+ },
+ },
+ {
+ "passwordPASSWORDpassword",
+ "saltSALTsaltSALTsaltSALTsaltSALTsalt",
+ 4096,
+ []byte{
+ 0x34, 0x8c, 0x89, 0xdb, 0xcb, 0xd3, 0x2b, 0x2f,
+ 0x32, 0xd8, 0x14, 0xb8, 0x11, 0x6e, 0x84, 0xcf,
+ 0x2b, 0x17, 0x34, 0x7e, 0xbc, 0x18, 0x00, 0x18,
+ 0x1c,
+ },
+ },
+ {
+ "pass\000word",
+ "sa\000lt",
+ 4096,
+ []byte{
+ 0x89, 0xb6, 0x9d, 0x05, 0x16, 0xf8, 0x29, 0x89,
+ 0x3c, 0x69, 0x62, 0x26, 0x65, 0x0a, 0x86, 0x87,
+ },
+ },
+}
+
+func testHash(t *testing.T, h func() hash.Hash, hashName string, vectors []testVector) {
+ for i, v := range vectors {
+ o := Key([]byte(v.password), []byte(v.salt), v.iter, len(v.output), h)
+ if !bytes.Equal(o, v.output) {
+ t.Errorf("%s %d: expected %x, got %x", hashName, i, v.output, o)
+ }
+ }
+}
+
+func TestWithHMACSHA1(t *testing.T) {
+ testHash(t, sha1.New, "SHA1", sha1TestVectors)
+}
+
+func TestWithHMACSHA256(t *testing.T) {
+ testHash(t, sha256.New, "SHA256", sha256TestVectors)
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.crypto/ripemd160/ripemd160.go b/Godeps/_workspace/src/code.google.com/p/go.crypto/ripemd160/ripemd160.go
new file mode 100644
index 000000000..da690f0b9
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.crypto/ripemd160/ripemd160.go
@@ -0,0 +1,120 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Package ripemd160 implements the RIPEMD-160 hash algorithm.
+package ripemd160
+
+// RIPEMD-160 is designed by by Hans Dobbertin, Antoon Bosselaers, and Bart
+// Preneel with specifications available at:
+// http://homes.esat.kuleuven.be/~cosicart/pdf/AB-9601/AB-9601.pdf.
+
+import (
+ "crypto"
+ "hash"
+)
+
+func init() {
+ crypto.RegisterHash(crypto.RIPEMD160, New)
+}
+
+// The size of the checksum in bytes.
+const Size = 20
+
+// The block size of the hash algorithm in bytes.
+const BlockSize = 64
+
+const (
+ _s0 = 0x67452301
+ _s1 = 0xefcdab89
+ _s2 = 0x98badcfe
+ _s3 = 0x10325476
+ _s4 = 0xc3d2e1f0
+)
+
+// digest represents the partial evaluation of a checksum.
+type digest struct {
+ s [5]uint32 // running context
+ x [BlockSize]byte // temporary buffer
+ nx int // index into x
+ tc uint64 // total count of bytes processed
+}
+
+func (d *digest) Reset() {
+ d.s[0], d.s[1], d.s[2], d.s[3], d.s[4] = _s0, _s1, _s2, _s3, _s4
+ d.nx = 0
+ d.tc = 0
+}
+
+// New returns a new hash.Hash computing the checksum.
+func New() hash.Hash {
+ result := new(digest)
+ result.Reset()
+ return result
+}
+
+func (d *digest) Size() int { return Size }
+
+func (d *digest) BlockSize() int { return BlockSize }
+
+func (d *digest) Write(p []byte) (nn int, err error) {
+ nn = len(p)
+ d.tc += uint64(nn)
+ if d.nx > 0 {
+ n := len(p)
+ if n > BlockSize-d.nx {
+ n = BlockSize - d.nx
+ }
+ for i := 0; i < n; i++ {
+ d.x[d.nx+i] = p[i]
+ }
+ d.nx += n
+ if d.nx == BlockSize {
+ _Block(d, d.x[0:])
+ d.nx = 0
+ }
+ p = p[n:]
+ }
+ n := _Block(d, p)
+ p = p[n:]
+ if len(p) > 0 {
+ d.nx = copy(d.x[:], p)
+ }
+ return
+}
+
+func (d0 *digest) Sum(in []byte) []byte {
+ // Make a copy of d0 so that caller can keep writing and summing.
+ d := *d0
+
+ // Padding. Add a 1 bit and 0 bits until 56 bytes mod 64.
+ tc := d.tc
+ var tmp [64]byte
+ tmp[0] = 0x80
+ if tc%64 < 56 {
+ d.Write(tmp[0 : 56-tc%64])
+ } else {
+ d.Write(tmp[0 : 64+56-tc%64])
+ }
+
+ // Length in bits.
+ tc <<= 3
+ for i := uint(0); i < 8; i++ {
+ tmp[i] = byte(tc >> (8 * i))
+ }
+ d.Write(tmp[0:8])
+
+ if d.nx != 0 {
+ panic("d.nx != 0")
+ }
+
+ var digest [Size]byte
+ for i, s := range d.s {
+ digest[i*4] = byte(s)
+ digest[i*4+1] = byte(s >> 8)
+ digest[i*4+2] = byte(s >> 16)
+ digest[i*4+3] = byte(s >> 24)
+ }
+
+ return append(in, digest[:]...)
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.crypto/ripemd160/ripemd160_test.go b/Godeps/_workspace/src/code.google.com/p/go.crypto/ripemd160/ripemd160_test.go
new file mode 100644
index 000000000..5df1b2593
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.crypto/ripemd160/ripemd160_test.go
@@ -0,0 +1,64 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package ripemd160
+
+// Test vectors are from:
+// http://homes.esat.kuleuven.be/~bosselae/ripemd160.html
+
+import (
+ "fmt"
+ "io"
+ "testing"
+)
+
+type mdTest struct {
+ out string
+ in string
+}
+
+var vectors = [...]mdTest{
+ {"9c1185a5c5e9fc54612808977ee8f548b2258d31", ""},
+ {"0bdc9d2d256b3ee9daae347be6f4dc835a467ffe", "a"},
+ {"8eb208f7e05d987a9b044a8e98c6b087f15a0bfc", "abc"},
+ {"5d0689ef49d2fae572b881b123a85ffa21595f36", "message digest"},
+ {"f71c27109c692c1b56bbdceb5b9d2865b3708dbc", "abcdefghijklmnopqrstuvwxyz"},
+ {"12a053384a9c0c88e405a06c27dcf49ada62eb2b", "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"},
+ {"b0e20b6e3116640286ed3a87a5713079b21f5189", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"},
+ {"9b752e45573d4b39f4dbd3323cab82bf63326bfb", "12345678901234567890123456789012345678901234567890123456789012345678901234567890"},
+}
+
+func TestVectors(t *testing.T) {
+ for i := 0; i < len(vectors); i++ {
+ tv := vectors[i]
+ md := New()
+ for j := 0; j < 3; j++ {
+ if j < 2 {
+ io.WriteString(md, tv.in)
+ } else {
+ io.WriteString(md, tv.in[0:len(tv.in)/2])
+ md.Sum(nil)
+ io.WriteString(md, tv.in[len(tv.in)/2:])
+ }
+ s := fmt.Sprintf("%x", md.Sum(nil))
+ if s != tv.out {
+ t.Fatalf("RIPEMD-160[%d](%s) = %s, expected %s", j, tv.in, s, tv.out)
+ }
+ md.Reset()
+ }
+ }
+}
+
+func TestMillionA(t *testing.T) {
+ md := New()
+ for i := 0; i < 100000; i++ {
+ io.WriteString(md, "aaaaaaaaaa")
+ }
+ out := "52783243c1697bdbe16d37f97f68f08325dc1528"
+ s := fmt.Sprintf("%x", md.Sum(nil))
+ if s != out {
+ t.Fatalf("RIPEMD-160 (1 million 'a') = %s, expected %s", s, out)
+ }
+ md.Reset()
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.crypto/ripemd160/ripemd160block.go b/Godeps/_workspace/src/code.google.com/p/go.crypto/ripemd160/ripemd160block.go
new file mode 100644
index 000000000..7bc8e6c48
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.crypto/ripemd160/ripemd160block.go
@@ -0,0 +1,161 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// RIPEMD-160 block step.
+// In its own file so that a faster assembly or C version
+// can be substituted easily.
+
+package ripemd160
+
+// work buffer indices and roll amounts for one line
+var _n = [80]uint{
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+ 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,
+ 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,
+ 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,
+ 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13,
+}
+
+var _r = [80]uint{
+ 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,
+ 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,
+ 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,
+ 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,
+ 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6,
+}
+
+// same for the other parallel one
+var n_ = [80]uint{
+ 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,
+ 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,
+ 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,
+ 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,
+ 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11,
+}
+
+var r_ = [80]uint{
+ 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,
+ 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,
+ 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,
+ 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,
+ 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11,
+}
+
+func _Block(md *digest, p []byte) int {
+ n := 0
+ var x [16]uint32
+ var alpha, beta uint32
+ for len(p) >= BlockSize {
+ a, b, c, d, e := md.s[0], md.s[1], md.s[2], md.s[3], md.s[4]
+ aa, bb, cc, dd, ee := a, b, c, d, e
+ j := 0
+ for i := 0; i < 16; i++ {
+ x[i] = uint32(p[j]) | uint32(p[j+1])<<8 | uint32(p[j+2])<<16 | uint32(p[j+3])<<24
+ j += 4
+ }
+
+ // round 1
+ i := 0
+ for i < 16 {
+ alpha = a + (b ^ c ^ d) + x[_n[i]]
+ s := _r[i]
+ alpha = (alpha<<s | alpha>>(32-s)) + e
+ beta = c<<10 | c>>22
+ a, b, c, d, e = e, alpha, b, beta, d
+
+ // parallel line
+ alpha = aa + (bb ^ (cc | ^dd)) + x[n_[i]] + 0x50a28be6
+ s = r_[i]
+ alpha = (alpha<<s | alpha>>(32-s)) + ee
+ beta = cc<<10 | cc>>22
+ aa, bb, cc, dd, ee = ee, alpha, bb, beta, dd
+
+ i++
+ }
+
+ // round 2
+ for i < 32 {
+ alpha = a + (b&c | ^b&d) + x[_n[i]] + 0x5a827999
+ s := _r[i]
+ alpha = (alpha<<s | alpha>>(32-s)) + e
+ beta = c<<10 | c>>22
+ a, b, c, d, e = e, alpha, b, beta, d
+
+ // parallel line
+ alpha = aa + (bb&dd | cc&^dd) + x[n_[i]] + 0x5c4dd124
+ s = r_[i]
+ alpha = (alpha<<s | alpha>>(32-s)) + ee
+ beta = cc<<10 | cc>>22
+ aa, bb, cc, dd, ee = ee, alpha, bb, beta, dd
+
+ i++
+ }
+
+ // round 3
+ for i < 48 {
+ alpha = a + (b | ^c ^ d) + x[_n[i]] + 0x6ed9eba1
+ s := _r[i]
+ alpha = (alpha<<s | alpha>>(32-s)) + e
+ beta = c<<10 | c>>22
+ a, b, c, d, e = e, alpha, b, beta, d
+
+ // parallel line
+ alpha = aa + (bb | ^cc ^ dd) + x[n_[i]] + 0x6d703ef3
+ s = r_[i]
+ alpha = (alpha<<s | alpha>>(32-s)) + ee
+ beta = cc<<10 | cc>>22
+ aa, bb, cc, dd, ee = ee, alpha, bb, beta, dd
+
+ i++
+ }
+
+ // round 4
+ for i < 64 {
+ alpha = a + (b&d | c&^d) + x[_n[i]] + 0x8f1bbcdc
+ s := _r[i]
+ alpha = (alpha<<s | alpha>>(32-s)) + e
+ beta = c<<10 | c>>22
+ a, b, c, d, e = e, alpha, b, beta, d
+
+ // parallel line
+ alpha = aa + (bb&cc | ^bb&dd) + x[n_[i]] + 0x7a6d76e9
+ s = r_[i]
+ alpha = (alpha<<s | alpha>>(32-s)) + ee
+ beta = cc<<10 | cc>>22
+ aa, bb, cc, dd, ee = ee, alpha, bb, beta, dd
+
+ i++
+ }
+
+ // round 5
+ for i < 80 {
+ alpha = a + (b ^ (c | ^d)) + x[_n[i]] + 0xa953fd4e
+ s := _r[i]
+ alpha = (alpha<<s | alpha>>(32-s)) + e
+ beta = c<<10 | c>>22
+ a, b, c, d, e = e, alpha, b, beta, d
+
+ // parallel line
+ alpha = aa + (bb ^ cc ^ dd) + x[n_[i]]
+ s = r_[i]
+ alpha = (alpha<<s | alpha>>(32-s)) + ee
+ beta = cc<<10 | cc>>22
+ aa, bb, cc, dd, ee = ee, alpha, bb, beta, dd
+
+ i++
+ }
+
+ // combine results
+ dd += c + md.s[1]
+ md.s[1] = md.s[2] + d + ee
+ md.s[2] = md.s[3] + e + aa
+ md.s[3] = md.s[4] + a + bb
+ md.s[4] = md.s[0] + b + cc
+ md.s[0] = dd
+
+ p = p[BlockSize:]
+ n += BlockSize
+ }
+ return n
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.crypto/scrypt/scrypt.go b/Godeps/_workspace/src/code.google.com/p/go.crypto/scrypt/scrypt.go
new file mode 100644
index 000000000..30737b0a6
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.crypto/scrypt/scrypt.go
@@ -0,0 +1,243 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Package scrypt implements the scrypt key derivation function as defined in
+// Colin Percival's paper "Stronger Key Derivation via Sequential Memory-Hard
+// Functions" (http://www.tarsnap.com/scrypt/scrypt.pdf).
+package scrypt
+
+import (
+ "crypto/sha256"
+ "errors"
+
+ "golang.org/x/crypto/pbkdf2"
+)
+
+const maxInt = int(^uint(0) >> 1)
+
+// blockCopy copies n numbers from src into dst.
+func blockCopy(dst, src []uint32, n int) {
+ copy(dst, src[:n])
+}
+
+// blockXOR XORs numbers from dst with n numbers from src.
+func blockXOR(dst, src []uint32, n int) {
+ for i, v := range src[:n] {
+ dst[i] ^= v
+ }
+}
+
+// salsaXOR applies Salsa20/8 to the XOR of 16 numbers from tmp and in,
+// and puts the result into both both tmp and out.
+func salsaXOR(tmp *[16]uint32, in, out []uint32) {
+ w0 := tmp[0] ^ in[0]
+ w1 := tmp[1] ^ in[1]
+ w2 := tmp[2] ^ in[2]
+ w3 := tmp[3] ^ in[3]
+ w4 := tmp[4] ^ in[4]
+ w5 := tmp[5] ^ in[5]
+ w6 := tmp[6] ^ in[6]
+ w7 := tmp[7] ^ in[7]
+ w8 := tmp[8] ^ in[8]
+ w9 := tmp[9] ^ in[9]
+ w10 := tmp[10] ^ in[10]
+ w11 := tmp[11] ^ in[11]
+ w12 := tmp[12] ^ in[12]
+ w13 := tmp[13] ^ in[13]
+ w14 := tmp[14] ^ in[14]
+ w15 := tmp[15] ^ in[15]
+
+ x0, x1, x2, x3, x4, x5, x6, x7, x8 := w0, w1, w2, w3, w4, w5, w6, w7, w8
+ x9, x10, x11, x12, x13, x14, x15 := w9, w10, w11, w12, w13, w14, w15
+
+ for i := 0; i < 8; i += 2 {
+ u := x0 + x12
+ x4 ^= u<<7 | u>>(32-7)
+ u = x4 + x0
+ x8 ^= u<<9 | u>>(32-9)
+ u = x8 + x4
+ x12 ^= u<<13 | u>>(32-13)
+ u = x12 + x8
+ x0 ^= u<<18 | u>>(32-18)
+
+ u = x5 + x1
+ x9 ^= u<<7 | u>>(32-7)
+ u = x9 + x5
+ x13 ^= u<<9 | u>>(32-9)
+ u = x13 + x9
+ x1 ^= u<<13 | u>>(32-13)
+ u = x1 + x13
+ x5 ^= u<<18 | u>>(32-18)
+
+ u = x10 + x6
+ x14 ^= u<<7 | u>>(32-7)
+ u = x14 + x10
+ x2 ^= u<<9 | u>>(32-9)
+ u = x2 + x14
+ x6 ^= u<<13 | u>>(32-13)
+ u = x6 + x2
+ x10 ^= u<<18 | u>>(32-18)
+
+ u = x15 + x11
+ x3 ^= u<<7 | u>>(32-7)
+ u = x3 + x15
+ x7 ^= u<<9 | u>>(32-9)
+ u = x7 + x3
+ x11 ^= u<<13 | u>>(32-13)
+ u = x11 + x7
+ x15 ^= u<<18 | u>>(32-18)
+
+ u = x0 + x3
+ x1 ^= u<<7 | u>>(32-7)
+ u = x1 + x0
+ x2 ^= u<<9 | u>>(32-9)
+ u = x2 + x1
+ x3 ^= u<<13 | u>>(32-13)
+ u = x3 + x2
+ x0 ^= u<<18 | u>>(32-18)
+
+ u = x5 + x4
+ x6 ^= u<<7 | u>>(32-7)
+ u = x6 + x5
+ x7 ^= u<<9 | u>>(32-9)
+ u = x7 + x6
+ x4 ^= u<<13 | u>>(32-13)
+ u = x4 + x7
+ x5 ^= u<<18 | u>>(32-18)
+
+ u = x10 + x9
+ x11 ^= u<<7 | u>>(32-7)
+ u = x11 + x10
+ x8 ^= u<<9 | u>>(32-9)
+ u = x8 + x11
+ x9 ^= u<<13 | u>>(32-13)
+ u = x9 + x8
+ x10 ^= u<<18 | u>>(32-18)
+
+ u = x15 + x14
+ x12 ^= u<<7 | u>>(32-7)
+ u = x12 + x15
+ x13 ^= u<<9 | u>>(32-9)
+ u = x13 + x12
+ x14 ^= u<<13 | u>>(32-13)
+ u = x14 + x13
+ x15 ^= u<<18 | u>>(32-18)
+ }
+ x0 += w0
+ x1 += w1
+ x2 += w2
+ x3 += w3
+ x4 += w4
+ x5 += w5
+ x6 += w6
+ x7 += w7
+ x8 += w8
+ x9 += w9
+ x10 += w10
+ x11 += w11
+ x12 += w12
+ x13 += w13
+ x14 += w14
+ x15 += w15
+
+ out[0], tmp[0] = x0, x0
+ out[1], tmp[1] = x1, x1
+ out[2], tmp[2] = x2, x2
+ out[3], tmp[3] = x3, x3
+ out[4], tmp[4] = x4, x4
+ out[5], tmp[5] = x5, x5
+ out[6], tmp[6] = x6, x6
+ out[7], tmp[7] = x7, x7
+ out[8], tmp[8] = x8, x8
+ out[9], tmp[9] = x9, x9
+ out[10], tmp[10] = x10, x10
+ out[11], tmp[11] = x11, x11
+ out[12], tmp[12] = x12, x12
+ out[13], tmp[13] = x13, x13
+ out[14], tmp[14] = x14, x14
+ out[15], tmp[15] = x15, x15
+}
+
+func blockMix(tmp *[16]uint32, in, out []uint32, r int) {
+ blockCopy(tmp[:], in[(2*r-1)*16:], 16)
+ for i := 0; i < 2*r; i += 2 {
+ salsaXOR(tmp, in[i*16:], out[i*8:])
+ salsaXOR(tmp, in[i*16+16:], out[i*8+r*16:])
+ }
+}
+
+func integer(b []uint32, r int) uint64 {
+ j := (2*r - 1) * 16
+ return uint64(b[j]) | uint64(b[j+1])<<32
+}
+
+func smix(b []byte, r, N int, v, xy []uint32) {
+ var tmp [16]uint32
+ x := xy
+ y := xy[32*r:]
+
+ j := 0
+ for i := 0; i < 32*r; i++ {
+ x[i] = uint32(b[j]) | uint32(b[j+1])<<8 | uint32(b[j+2])<<16 | uint32(b[j+3])<<24
+ j += 4
+ }
+ for i := 0; i < N; i += 2 {
+ blockCopy(v[i*(32*r):], x, 32*r)
+ blockMix(&tmp, x, y, r)
+
+ blockCopy(v[(i+1)*(32*r):], y, 32*r)
+ blockMix(&tmp, y, x, r)
+ }
+ for i := 0; i < N; i += 2 {
+ j := int(integer(x, r) & uint64(N-1))
+ blockXOR(x, v[j*(32*r):], 32*r)
+ blockMix(&tmp, x, y, r)
+
+ j = int(integer(y, r) & uint64(N-1))
+ blockXOR(y, v[j*(32*r):], 32*r)
+ blockMix(&tmp, y, x, r)
+ }
+ j = 0
+ for _, v := range x[:32*r] {
+ b[j+0] = byte(v >> 0)
+ b[j+1] = byte(v >> 8)
+ b[j+2] = byte(v >> 16)
+ b[j+3] = byte(v >> 24)
+ j += 4
+ }
+}
+
+// Key derives a key from the password, salt, and cost parameters, returning
+// a byte slice of length keyLen that can be used as cryptographic key.
+//
+// N is a CPU/memory cost parameter, which must be a power of two greater than 1.
+// r and p must satisfy r * p < 2³⁰. If the parameters do not satisfy the
+// limits, the function returns a nil byte slice and an error.
+//
+// For example, you can get a derived key for e.g. AES-256 (which needs a
+// 32-byte key) by doing:
+//
+// dk := scrypt.Key([]byte("some password"), salt, 16384, 8, 1, 32)
+//
+// The recommended parameters for interactive logins as of 2009 are N=16384,
+// r=8, p=1. They should be increased as memory latency and CPU parallelism
+// increases. Remember to get a good random salt.
+func Key(password, salt []byte, N, r, p, keyLen int) ([]byte, error) {
+ if N <= 1 || N&(N-1) != 0 {
+ return nil, errors.New("scrypt: N must be > 1 and a power of 2")
+ }
+ if uint64(r)*uint64(p) >= 1<<30 || r > maxInt/128/p || r > maxInt/256 || N > maxInt/128/r {
+ return nil, errors.New("scrypt: parameters are too large")
+ }
+
+ xy := make([]uint32, 64*r)
+ v := make([]uint32, 32*N*r)
+ b := pbkdf2.Key(password, salt, 1, p*128*r, sha256.New)
+
+ for i := 0; i < p; i++ {
+ smix(b[i*128*r:], r, N, v, xy)
+ }
+
+ return pbkdf2.Key(password, b, 1, keyLen, sha256.New), nil
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.crypto/scrypt/scrypt_test.go b/Godeps/_workspace/src/code.google.com/p/go.crypto/scrypt/scrypt_test.go
new file mode 100644
index 000000000..e096c3a31
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.crypto/scrypt/scrypt_test.go
@@ -0,0 +1,160 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package scrypt
+
+import (
+ "bytes"
+ "testing"
+)
+
+type testVector struct {
+ password string
+ salt string
+ N, r, p int
+ output []byte
+}
+
+var good = []testVector{
+ {
+ "password",
+ "salt",
+ 2, 10, 10,
+ []byte{
+ 0x48, 0x2c, 0x85, 0x8e, 0x22, 0x90, 0x55, 0xe6, 0x2f,
+ 0x41, 0xe0, 0xec, 0x81, 0x9a, 0x5e, 0xe1, 0x8b, 0xdb,
+ 0x87, 0x25, 0x1a, 0x53, 0x4f, 0x75, 0xac, 0xd9, 0x5a,
+ 0xc5, 0xe5, 0xa, 0xa1, 0x5f,
+ },
+ },
+ {
+ "password",
+ "salt",
+ 16, 100, 100,
+ []byte{
+ 0x88, 0xbd, 0x5e, 0xdb, 0x52, 0xd1, 0xdd, 0x0, 0x18,
+ 0x87, 0x72, 0xad, 0x36, 0x17, 0x12, 0x90, 0x22, 0x4e,
+ 0x74, 0x82, 0x95, 0x25, 0xb1, 0x8d, 0x73, 0x23, 0xa5,
+ 0x7f, 0x91, 0x96, 0x3c, 0x37,
+ },
+ },
+ {
+ "this is a long \000 password",
+ "and this is a long \000 salt",
+ 16384, 8, 1,
+ []byte{
+ 0xc3, 0xf1, 0x82, 0xee, 0x2d, 0xec, 0x84, 0x6e, 0x70,
+ 0xa6, 0x94, 0x2f, 0xb5, 0x29, 0x98, 0x5a, 0x3a, 0x09,
+ 0x76, 0x5e, 0xf0, 0x4c, 0x61, 0x29, 0x23, 0xb1, 0x7f,
+ 0x18, 0x55, 0x5a, 0x37, 0x07, 0x6d, 0xeb, 0x2b, 0x98,
+ 0x30, 0xd6, 0x9d, 0xe5, 0x49, 0x26, 0x51, 0xe4, 0x50,
+ 0x6a, 0xe5, 0x77, 0x6d, 0x96, 0xd4, 0x0f, 0x67, 0xaa,
+ 0xee, 0x37, 0xe1, 0x77, 0x7b, 0x8a, 0xd5, 0xc3, 0x11,
+ 0x14, 0x32, 0xbb, 0x3b, 0x6f, 0x7e, 0x12, 0x64, 0x40,
+ 0x18, 0x79, 0xe6, 0x41, 0xae,
+ },
+ },
+ {
+ "p",
+ "s",
+ 2, 1, 1,
+ []byte{
+ 0x48, 0xb0, 0xd2, 0xa8, 0xa3, 0x27, 0x26, 0x11, 0x98,
+ 0x4c, 0x50, 0xeb, 0xd6, 0x30, 0xaf, 0x52,
+ },
+ },
+
+ {
+ "",
+ "",
+ 16, 1, 1,
+ []byte{
+ 0x77, 0xd6, 0x57, 0x62, 0x38, 0x65, 0x7b, 0x20, 0x3b,
+ 0x19, 0xca, 0x42, 0xc1, 0x8a, 0x04, 0x97, 0xf1, 0x6b,
+ 0x48, 0x44, 0xe3, 0x07, 0x4a, 0xe8, 0xdf, 0xdf, 0xfa,
+ 0x3f, 0xed, 0xe2, 0x14, 0x42, 0xfc, 0xd0, 0x06, 0x9d,
+ 0xed, 0x09, 0x48, 0xf8, 0x32, 0x6a, 0x75, 0x3a, 0x0f,
+ 0xc8, 0x1f, 0x17, 0xe8, 0xd3, 0xe0, 0xfb, 0x2e, 0x0d,
+ 0x36, 0x28, 0xcf, 0x35, 0xe2, 0x0c, 0x38, 0xd1, 0x89,
+ 0x06,
+ },
+ },
+ {
+ "password",
+ "NaCl",
+ 1024, 8, 16,
+ []byte{
+ 0xfd, 0xba, 0xbe, 0x1c, 0x9d, 0x34, 0x72, 0x00, 0x78,
+ 0x56, 0xe7, 0x19, 0x0d, 0x01, 0xe9, 0xfe, 0x7c, 0x6a,
+ 0xd7, 0xcb, 0xc8, 0x23, 0x78, 0x30, 0xe7, 0x73, 0x76,
+ 0x63, 0x4b, 0x37, 0x31, 0x62, 0x2e, 0xaf, 0x30, 0xd9,
+ 0x2e, 0x22, 0xa3, 0x88, 0x6f, 0xf1, 0x09, 0x27, 0x9d,
+ 0x98, 0x30, 0xda, 0xc7, 0x27, 0xaf, 0xb9, 0x4a, 0x83,
+ 0xee, 0x6d, 0x83, 0x60, 0xcb, 0xdf, 0xa2, 0xcc, 0x06,
+ 0x40,
+ },
+ },
+ {
+ "pleaseletmein", "SodiumChloride",
+ 16384, 8, 1,
+ []byte{
+ 0x70, 0x23, 0xbd, 0xcb, 0x3a, 0xfd, 0x73, 0x48, 0x46,
+ 0x1c, 0x06, 0xcd, 0x81, 0xfd, 0x38, 0xeb, 0xfd, 0xa8,
+ 0xfb, 0xba, 0x90, 0x4f, 0x8e, 0x3e, 0xa9, 0xb5, 0x43,
+ 0xf6, 0x54, 0x5d, 0xa1, 0xf2, 0xd5, 0x43, 0x29, 0x55,
+ 0x61, 0x3f, 0x0f, 0xcf, 0x62, 0xd4, 0x97, 0x05, 0x24,
+ 0x2a, 0x9a, 0xf9, 0xe6, 0x1e, 0x85, 0xdc, 0x0d, 0x65,
+ 0x1e, 0x40, 0xdf, 0xcf, 0x01, 0x7b, 0x45, 0x57, 0x58,
+ 0x87,
+ },
+ },
+ /*
+ // Disabled: needs 1 GiB RAM and takes too long for a simple test.
+ {
+ "pleaseletmein", "SodiumChloride",
+ 1048576, 8, 1,
+ []byte{
+ 0x21, 0x01, 0xcb, 0x9b, 0x6a, 0x51, 0x1a, 0xae, 0xad,
+ 0xdb, 0xbe, 0x09, 0xcf, 0x70, 0xf8, 0x81, 0xec, 0x56,
+ 0x8d, 0x57, 0x4a, 0x2f, 0xfd, 0x4d, 0xab, 0xe5, 0xee,
+ 0x98, 0x20, 0xad, 0xaa, 0x47, 0x8e, 0x56, 0xfd, 0x8f,
+ 0x4b, 0xa5, 0xd0, 0x9f, 0xfa, 0x1c, 0x6d, 0x92, 0x7c,
+ 0x40, 0xf4, 0xc3, 0x37, 0x30, 0x40, 0x49, 0xe8, 0xa9,
+ 0x52, 0xfb, 0xcb, 0xf4, 0x5c, 0x6f, 0xa7, 0x7a, 0x41,
+ 0xa4,
+ },
+ },
+ */
+}
+
+var bad = []testVector{
+ {"p", "s", 0, 1, 1, nil}, // N == 0
+ {"p", "s", 1, 1, 1, nil}, // N == 1
+ {"p", "s", 7, 8, 1, nil}, // N is not power of 2
+ {"p", "s", 16, maxInt / 2, maxInt / 2, nil}, // p * r too large
+}
+
+func TestKey(t *testing.T) {
+ for i, v := range good {
+ k, err := Key([]byte(v.password), []byte(v.salt), v.N, v.r, v.p, len(v.output))
+ if err != nil {
+ t.Errorf("%d: got unexpected error: %s", i, err)
+ }
+ if !bytes.Equal(k, v.output) {
+ t.Errorf("%d: expected %x, got %x", i, v.output, k)
+ }
+ }
+ for i, v := range bad {
+ _, err := Key([]byte(v.password), []byte(v.salt), v.N, v.r, v.p, 32)
+ if err == nil {
+ t.Errorf("%d: expected error, got nil", i)
+ }
+ }
+}
+
+func BenchmarkKey(b *testing.B) {
+ for i := 0; i < b.N; i++ {
+ Key([]byte("password"), []byte("salt"), 16384, 8, 1, 64)
+ }
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.net/websocket/client.go b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/client.go
new file mode 100644
index 000000000..a861bb92c
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/client.go
@@ -0,0 +1,98 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package websocket
+
+import (
+ "bufio"
+ "crypto/tls"
+ "io"
+ "net"
+ "net/http"
+ "net/url"
+)
+
+// DialError is an error that occurs while dialling a websocket server.
+type DialError struct {
+ *Config
+ Err error
+}
+
+func (e *DialError) Error() string {
+ return "websocket.Dial " + e.Config.Location.String() + ": " + e.Err.Error()
+}
+
+// NewConfig creates a new WebSocket config for client connection.
+func NewConfig(server, origin string) (config *Config, err error) {
+ config = new(Config)
+ config.Version = ProtocolVersionHybi13
+ config.Location, err = url.ParseRequestURI(server)
+ if err != nil {
+ return
+ }
+ config.Origin, err = url.ParseRequestURI(origin)
+ if err != nil {
+ return
+ }
+ config.Header = http.Header(make(map[string][]string))
+ return
+}
+
+// NewClient creates a new WebSocket client connection over rwc.
+func NewClient(config *Config, rwc io.ReadWriteCloser) (ws *Conn, err error) {
+ br := bufio.NewReader(rwc)
+ bw := bufio.NewWriter(rwc)
+ err = hybiClientHandshake(config, br, bw)
+ if err != nil {
+ return
+ }
+ buf := bufio.NewReadWriter(br, bw)
+ ws = newHybiClientConn(config, buf, rwc)
+ return
+}
+
+// Dial opens a new client connection to a WebSocket.
+func Dial(url_, protocol, origin string) (ws *Conn, err error) {
+ config, err := NewConfig(url_, origin)
+ if err != nil {
+ return nil, err
+ }
+ if protocol != "" {
+ config.Protocol = []string{protocol}
+ }
+ return DialConfig(config)
+}
+
+// DialConfig opens a new client connection to a WebSocket with a config.
+func DialConfig(config *Config) (ws *Conn, err error) {
+ var client net.Conn
+ if config.Location == nil {
+ return nil, &DialError{config, ErrBadWebSocketLocation}
+ }
+ if config.Origin == nil {
+ return nil, &DialError{config, ErrBadWebSocketOrigin}
+ }
+ switch config.Location.Scheme {
+ case "ws":
+ client, err = net.Dial("tcp", config.Location.Host)
+
+ case "wss":
+ client, err = tls.Dial("tcp", config.Location.Host, config.TlsConfig)
+
+ default:
+ err = ErrBadScheme
+ }
+ if err != nil {
+ goto Error
+ }
+
+ ws, err = NewClient(config, client)
+ if err != nil {
+ goto Error
+ }
+ return
+
+Error:
+ return nil, &DialError{config, err}
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.net/websocket/exampledial_test.go b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/exampledial_test.go
new file mode 100644
index 000000000..777a66895
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/exampledial_test.go
@@ -0,0 +1,31 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package websocket_test
+
+import (
+ "fmt"
+ "log"
+
+ "code.google.com/p/go.net/websocket"
+)
+
+// This example demonstrates a trivial client.
+func ExampleDial() {
+ origin := "http://localhost/"
+ url := "ws://localhost:12345/ws"
+ ws, err := websocket.Dial(url, "", origin)
+ if err != nil {
+ log.Fatal(err)
+ }
+ if _, err := ws.Write([]byte("hello, world!\n")); err != nil {
+ log.Fatal(err)
+ }
+ var msg = make([]byte, 512)
+ var n int
+ if n, err = ws.Read(msg); err != nil {
+ log.Fatal(err)
+ }
+ fmt.Printf("Received: %s.\n", msg[:n])
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.net/websocket/examplehandler_test.go b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/examplehandler_test.go
new file mode 100644
index 000000000..47b0bb9b5
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/examplehandler_test.go
@@ -0,0 +1,26 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package websocket_test
+
+import (
+ "io"
+ "net/http"
+
+ "code.google.com/p/go.net/websocket"
+)
+
+// Echo the data received on the WebSocket.
+func EchoServer(ws *websocket.Conn) {
+ io.Copy(ws, ws)
+}
+
+// This example demonstrates a trivial echo server.
+func ExampleHandler() {
+ http.Handle("/echo", websocket.Handler(EchoServer))
+ err := http.ListenAndServe(":12345", nil)
+ if err != nil {
+ panic("ListenAndServe: " + err.Error())
+ }
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.net/websocket/hybi.go b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/hybi.go
new file mode 100644
index 000000000..f8c0b2e29
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/hybi.go
@@ -0,0 +1,564 @@
+// Copyright 2011 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package websocket
+
+// This file implements a protocol of hybi draft.
+// http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-17
+
+import (
+ "bufio"
+ "bytes"
+ "crypto/rand"
+ "crypto/sha1"
+ "encoding/base64"
+ "encoding/binary"
+ "fmt"
+ "io"
+ "io/ioutil"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+const (
+ websocketGUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
+
+ closeStatusNormal = 1000
+ closeStatusGoingAway = 1001
+ closeStatusProtocolError = 1002
+ closeStatusUnsupportedData = 1003
+ closeStatusFrameTooLarge = 1004
+ closeStatusNoStatusRcvd = 1005
+ closeStatusAbnormalClosure = 1006
+ closeStatusBadMessageData = 1007
+ closeStatusPolicyViolation = 1008
+ closeStatusTooBigData = 1009
+ closeStatusExtensionMismatch = 1010
+
+ maxControlFramePayloadLength = 125
+)
+
+var (
+ ErrBadMaskingKey = &ProtocolError{"bad masking key"}
+ ErrBadPongMessage = &ProtocolError{"bad pong message"}
+ ErrBadClosingStatus = &ProtocolError{"bad closing status"}
+ ErrUnsupportedExtensions = &ProtocolError{"unsupported extensions"}
+ ErrNotImplemented = &ProtocolError{"not implemented"}
+
+ handshakeHeader = map[string]bool{
+ "Host": true,
+ "Upgrade": true,
+ "Connection": true,
+ "Sec-Websocket-Key": true,
+ "Sec-Websocket-Origin": true,
+ "Sec-Websocket-Version": true,
+ "Sec-Websocket-Protocol": true,
+ "Sec-Websocket-Accept": true,
+ }
+)
+
+// A hybiFrameHeader is a frame header as defined in hybi draft.
+type hybiFrameHeader struct {
+ Fin bool
+ Rsv [3]bool
+ OpCode byte
+ Length int64
+ MaskingKey []byte
+
+ data *bytes.Buffer
+}
+
+// A hybiFrameReader is a reader for hybi frame.
+type hybiFrameReader struct {
+ reader io.Reader
+
+ header hybiFrameHeader
+ pos int64
+ length int
+}
+
+func (frame *hybiFrameReader) Read(msg []byte) (n int, err error) {
+ n, err = frame.reader.Read(msg)
+ if err != nil {
+ return 0, err
+ }
+ if frame.header.MaskingKey != nil {
+ for i := 0; i < n; i++ {
+ msg[i] = msg[i] ^ frame.header.MaskingKey[frame.pos%4]
+ frame.pos++
+ }
+ }
+ return n, err
+}
+
+func (frame *hybiFrameReader) PayloadType() byte { return frame.header.OpCode }
+
+func (frame *hybiFrameReader) HeaderReader() io.Reader {
+ if frame.header.data == nil {
+ return nil
+ }
+ if frame.header.data.Len() == 0 {
+ return nil
+ }
+ return frame.header.data
+}
+
+func (frame *hybiFrameReader) TrailerReader() io.Reader { return nil }
+
+func (frame *hybiFrameReader) Len() (n int) { return frame.length }
+
+// A hybiFrameReaderFactory creates new frame reader based on its frame type.
+type hybiFrameReaderFactory struct {
+ *bufio.Reader
+}
+
+// NewFrameReader reads a frame header from the connection, and creates new reader for the frame.
+// See Section 5.2 Base Framing protocol for detail.
+// http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-17#section-5.2
+func (buf hybiFrameReaderFactory) NewFrameReader() (frame frameReader, err error) {
+ hybiFrame := new(hybiFrameReader)
+ frame = hybiFrame
+ var header []byte
+ var b byte
+ // First byte. FIN/RSV1/RSV2/RSV3/OpCode(4bits)
+ b, err = buf.ReadByte()
+ if err != nil {
+ return
+ }
+ header = append(header, b)
+ hybiFrame.header.Fin = ((header[0] >> 7) & 1) != 0
+ for i := 0; i < 3; i++ {
+ j := uint(6 - i)
+ hybiFrame.header.Rsv[i] = ((header[0] >> j) & 1) != 0
+ }
+ hybiFrame.header.OpCode = header[0] & 0x0f
+
+ // Second byte. Mask/Payload len(7bits)
+ b, err = buf.ReadByte()
+ if err != nil {
+ return
+ }
+ header = append(header, b)
+ mask := (b & 0x80) != 0
+ b &= 0x7f
+ lengthFields := 0
+ switch {
+ case b <= 125: // Payload length 7bits.
+ hybiFrame.header.Length = int64(b)
+ case b == 126: // Payload length 7+16bits
+ lengthFields = 2
+ case b == 127: // Payload length 7+64bits
+ lengthFields = 8
+ }
+ for i := 0; i < lengthFields; i++ {
+ b, err = buf.ReadByte()
+ if err != nil {
+ return
+ }
+ header = append(header, b)
+ hybiFrame.header.Length = hybiFrame.header.Length*256 + int64(b)
+ }
+ if mask {
+ // Masking key. 4 bytes.
+ for i := 0; i < 4; i++ {
+ b, err = buf.ReadByte()
+ if err != nil {
+ return
+ }
+ header = append(header, b)
+ hybiFrame.header.MaskingKey = append(hybiFrame.header.MaskingKey, b)
+ }
+ }
+ hybiFrame.reader = io.LimitReader(buf.Reader, hybiFrame.header.Length)
+ hybiFrame.header.data = bytes.NewBuffer(header)
+ hybiFrame.length = len(header) + int(hybiFrame.header.Length)
+ return
+}
+
+// A HybiFrameWriter is a writer for hybi frame.
+type hybiFrameWriter struct {
+ writer *bufio.Writer
+
+ header *hybiFrameHeader
+}
+
+func (frame *hybiFrameWriter) Write(msg []byte) (n int, err error) {
+ var header []byte
+ var b byte
+ if frame.header.Fin {
+ b |= 0x80
+ }
+ for i := 0; i < 3; i++ {
+ if frame.header.Rsv[i] {
+ j := uint(6 - i)
+ b |= 1 << j
+ }
+ }
+ b |= frame.header.OpCode
+ header = append(header, b)
+ if frame.header.MaskingKey != nil {
+ b = 0x80
+ } else {
+ b = 0
+ }
+ lengthFields := 0
+ length := len(msg)
+ switch {
+ case length <= 125:
+ b |= byte(length)
+ case length < 65536:
+ b |= 126
+ lengthFields = 2
+ default:
+ b |= 127
+ lengthFields = 8
+ }
+ header = append(header, b)
+ for i := 0; i < lengthFields; i++ {
+ j := uint((lengthFields - i - 1) * 8)
+ b = byte((length >> j) & 0xff)
+ header = append(header, b)
+ }
+ if frame.header.MaskingKey != nil {
+ if len(frame.header.MaskingKey) != 4 {
+ return 0, ErrBadMaskingKey
+ }
+ header = append(header, frame.header.MaskingKey...)
+ frame.writer.Write(header)
+ data := make([]byte, length)
+ for i := range data {
+ data[i] = msg[i] ^ frame.header.MaskingKey[i%4]
+ }
+ frame.writer.Write(data)
+ err = frame.writer.Flush()
+ return length, err
+ }
+ frame.writer.Write(header)
+ frame.writer.Write(msg)
+ err = frame.writer.Flush()
+ return length, err
+}
+
+func (frame *hybiFrameWriter) Close() error { return nil }
+
+type hybiFrameWriterFactory struct {
+ *bufio.Writer
+ needMaskingKey bool
+}
+
+func (buf hybiFrameWriterFactory) NewFrameWriter(payloadType byte) (frame frameWriter, err error) {
+ frameHeader := &hybiFrameHeader{Fin: true, OpCode: payloadType}
+ if buf.needMaskingKey {
+ frameHeader.MaskingKey, err = generateMaskingKey()
+ if err != nil {
+ return nil, err
+ }
+ }
+ return &hybiFrameWriter{writer: buf.Writer, header: frameHeader}, nil
+}
+
+type hybiFrameHandler struct {
+ conn *Conn
+ payloadType byte
+}
+
+func (handler *hybiFrameHandler) HandleFrame(frame frameReader) (r frameReader, err error) {
+ if handler.conn.IsServerConn() {
+ // The client MUST mask all frames sent to the server.
+ if frame.(*hybiFrameReader).header.MaskingKey == nil {
+ handler.WriteClose(closeStatusProtocolError)
+ return nil, io.EOF
+ }
+ } else {
+ // The server MUST NOT mask all frames.
+ if frame.(*hybiFrameReader).header.MaskingKey != nil {
+ handler.WriteClose(closeStatusProtocolError)
+ return nil, io.EOF
+ }
+ }
+ if header := frame.HeaderReader(); header != nil {
+ io.Copy(ioutil.Discard, header)
+ }
+ switch frame.PayloadType() {
+ case ContinuationFrame:
+ frame.(*hybiFrameReader).header.OpCode = handler.payloadType
+ case TextFrame, BinaryFrame:
+ handler.payloadType = frame.PayloadType()
+ case CloseFrame:
+ return nil, io.EOF
+ case PingFrame:
+ pingMsg := make([]byte, maxControlFramePayloadLength)
+ n, err := io.ReadFull(frame, pingMsg)
+ if err != nil && err != io.ErrUnexpectedEOF {
+ return nil, err
+ }
+ io.Copy(ioutil.Discard, frame)
+ n, err = handler.WritePong(pingMsg[:n])
+ if err != nil {
+ return nil, err
+ }
+ return nil, nil
+ case PongFrame:
+ return nil, ErrNotImplemented
+ }
+ return frame, nil
+}
+
+func (handler *hybiFrameHandler) WriteClose(status int) (err error) {
+ handler.conn.wio.Lock()
+ defer handler.conn.wio.Unlock()
+ w, err := handler.conn.frameWriterFactory.NewFrameWriter(CloseFrame)
+ if err != nil {
+ return err
+ }
+ msg := make([]byte, 2)
+ binary.BigEndian.PutUint16(msg, uint16(status))
+ _, err = w.Write(msg)
+ w.Close()
+ return err
+}
+
+func (handler *hybiFrameHandler) WritePong(msg []byte) (n int, err error) {
+ handler.conn.wio.Lock()
+ defer handler.conn.wio.Unlock()
+ w, err := handler.conn.frameWriterFactory.NewFrameWriter(PongFrame)
+ if err != nil {
+ return 0, err
+ }
+ n, err = w.Write(msg)
+ w.Close()
+ return n, err
+}
+
+// newHybiConn creates a new WebSocket connection speaking hybi draft protocol.
+func newHybiConn(config *Config, buf *bufio.ReadWriter, rwc io.ReadWriteCloser, request *http.Request) *Conn {
+ if buf == nil {
+ br := bufio.NewReader(rwc)
+ bw := bufio.NewWriter(rwc)
+ buf = bufio.NewReadWriter(br, bw)
+ }
+ ws := &Conn{config: config, request: request, buf: buf, rwc: rwc,
+ frameReaderFactory: hybiFrameReaderFactory{buf.Reader},
+ frameWriterFactory: hybiFrameWriterFactory{
+ buf.Writer, request == nil},
+ PayloadType: TextFrame,
+ defaultCloseStatus: closeStatusNormal}
+ ws.frameHandler = &hybiFrameHandler{conn: ws}
+ return ws
+}
+
+// generateMaskingKey generates a masking key for a frame.
+func generateMaskingKey() (maskingKey []byte, err error) {
+ maskingKey = make([]byte, 4)
+ if _, err = io.ReadFull(rand.Reader, maskingKey); err != nil {
+ return
+ }
+ return
+}
+
+// generateNonce generates a nonce consisting of a randomly selected 16-byte
+// value that has been base64-encoded.
+func generateNonce() (nonce []byte) {
+ key := make([]byte, 16)
+ if _, err := io.ReadFull(rand.Reader, key); err != nil {
+ panic(err)
+ }
+ nonce = make([]byte, 24)
+ base64.StdEncoding.Encode(nonce, key)
+ return
+}
+
+// getNonceAccept computes the base64-encoded SHA-1 of the concatenation of
+// the nonce ("Sec-WebSocket-Key" value) with the websocket GUID string.
+func getNonceAccept(nonce []byte) (expected []byte, err error) {
+ h := sha1.New()
+ if _, err = h.Write(nonce); err != nil {
+ return
+ }
+ if _, err = h.Write([]byte(websocketGUID)); err != nil {
+ return
+ }
+ expected = make([]byte, 28)
+ base64.StdEncoding.Encode(expected, h.Sum(nil))
+ return
+}
+
+// Client handshake described in draft-ietf-hybi-thewebsocket-protocol-17
+func hybiClientHandshake(config *Config, br *bufio.Reader, bw *bufio.Writer) (err error) {
+ bw.WriteString("GET " + config.Location.RequestURI() + " HTTP/1.1\r\n")
+
+ bw.WriteString("Host: " + config.Location.Host + "\r\n")
+ bw.WriteString("Upgrade: websocket\r\n")
+ bw.WriteString("Connection: Upgrade\r\n")
+ nonce := generateNonce()
+ if config.handshakeData != nil {
+ nonce = []byte(config.handshakeData["key"])
+ }
+ bw.WriteString("Sec-WebSocket-Key: " + string(nonce) + "\r\n")
+ bw.WriteString("Origin: " + strings.ToLower(config.Origin.String()) + "\r\n")
+
+ if config.Version != ProtocolVersionHybi13 {
+ return ErrBadProtocolVersion
+ }
+
+ bw.WriteString("Sec-WebSocket-Version: " + fmt.Sprintf("%d", config.Version) + "\r\n")
+ if len(config.Protocol) > 0 {
+ bw.WriteString("Sec-WebSocket-Protocol: " + strings.Join(config.Protocol, ", ") + "\r\n")
+ }
+ // TODO(ukai): send Sec-WebSocket-Extensions.
+ err = config.Header.WriteSubset(bw, handshakeHeader)
+ if err != nil {
+ return err
+ }
+
+ bw.WriteString("\r\n")
+ if err = bw.Flush(); err != nil {
+ return err
+ }
+
+ resp, err := http.ReadResponse(br, &http.Request{Method: "GET"})
+ if err != nil {
+ return err
+ }
+ if resp.StatusCode != 101 {
+ return ErrBadStatus
+ }
+ if strings.ToLower(resp.Header.Get("Upgrade")) != "websocket" ||
+ strings.ToLower(resp.Header.Get("Connection")) != "upgrade" {
+ return ErrBadUpgrade
+ }
+ expectedAccept, err := getNonceAccept(nonce)
+ if err != nil {
+ return err
+ }
+ if resp.Header.Get("Sec-WebSocket-Accept") != string(expectedAccept) {
+ return ErrChallengeResponse
+ }
+ if resp.Header.Get("Sec-WebSocket-Extensions") != "" {
+ return ErrUnsupportedExtensions
+ }
+ offeredProtocol := resp.Header.Get("Sec-WebSocket-Protocol")
+ if offeredProtocol != "" {
+ protocolMatched := false
+ for i := 0; i < len(config.Protocol); i++ {
+ if config.Protocol[i] == offeredProtocol {
+ protocolMatched = true
+ break
+ }
+ }
+ if !protocolMatched {
+ return ErrBadWebSocketProtocol
+ }
+ config.Protocol = []string{offeredProtocol}
+ }
+
+ return nil
+}
+
+// newHybiClientConn creates a client WebSocket connection after handshake.
+func newHybiClientConn(config *Config, buf *bufio.ReadWriter, rwc io.ReadWriteCloser) *Conn {
+ return newHybiConn(config, buf, rwc, nil)
+}
+
+// A HybiServerHandshaker performs a server handshake using hybi draft protocol.
+type hybiServerHandshaker struct {
+ *Config
+ accept []byte
+}
+
+func (c *hybiServerHandshaker) ReadHandshake(buf *bufio.Reader, req *http.Request) (code int, err error) {
+ c.Version = ProtocolVersionHybi13
+ if req.Method != "GET" {
+ return http.StatusMethodNotAllowed, ErrBadRequestMethod
+ }
+ // HTTP version can be safely ignored.
+
+ if strings.ToLower(req.Header.Get("Upgrade")) != "websocket" ||
+ !strings.Contains(strings.ToLower(req.Header.Get("Connection")), "upgrade") {
+ return http.StatusBadRequest, ErrNotWebSocket
+ }
+
+ key := req.Header.Get("Sec-Websocket-Key")
+ if key == "" {
+ return http.StatusBadRequest, ErrChallengeResponse
+ }
+ version := req.Header.Get("Sec-Websocket-Version")
+ switch version {
+ case "13":
+ c.Version = ProtocolVersionHybi13
+ default:
+ return http.StatusBadRequest, ErrBadWebSocketVersion
+ }
+ var scheme string
+ if req.TLS != nil {
+ scheme = "wss"
+ } else {
+ scheme = "ws"
+ }
+ c.Location, err = url.ParseRequestURI(scheme + "://" + req.Host + req.URL.RequestURI())
+ if err != nil {
+ return http.StatusBadRequest, err
+ }
+ protocol := strings.TrimSpace(req.Header.Get("Sec-Websocket-Protocol"))
+ if protocol != "" {
+ protocols := strings.Split(protocol, ",")
+ for i := 0; i < len(protocols); i++ {
+ c.Protocol = append(c.Protocol, strings.TrimSpace(protocols[i]))
+ }
+ }
+ c.accept, err = getNonceAccept([]byte(key))
+ if err != nil {
+ return http.StatusInternalServerError, err
+ }
+ return http.StatusSwitchingProtocols, nil
+}
+
+// Origin parses Origin header in "req".
+// If origin is "null", returns (nil, nil).
+func Origin(config *Config, req *http.Request) (*url.URL, error) {
+ var origin string
+ switch config.Version {
+ case ProtocolVersionHybi13:
+ origin = req.Header.Get("Origin")
+ }
+ if origin == "null" {
+ return nil, nil
+ }
+ return url.ParseRequestURI(origin)
+}
+
+func (c *hybiServerHandshaker) AcceptHandshake(buf *bufio.Writer) (err error) {
+ if len(c.Protocol) > 0 {
+ if len(c.Protocol) != 1 {
+ // You need choose a Protocol in Handshake func in Server.
+ return ErrBadWebSocketProtocol
+ }
+ }
+ buf.WriteString("HTTP/1.1 101 Switching Protocols\r\n")
+ buf.WriteString("Upgrade: websocket\r\n")
+ buf.WriteString("Connection: Upgrade\r\n")
+ buf.WriteString("Sec-WebSocket-Accept: " + string(c.accept) + "\r\n")
+ if len(c.Protocol) > 0 {
+ buf.WriteString("Sec-WebSocket-Protocol: " + c.Protocol[0] + "\r\n")
+ }
+ // TODO(ukai): send Sec-WebSocket-Extensions.
+ if c.Header != nil {
+ err := c.Header.WriteSubset(buf, handshakeHeader)
+ if err != nil {
+ return err
+ }
+ }
+ buf.WriteString("\r\n")
+ return buf.Flush()
+}
+
+func (c *hybiServerHandshaker) NewServerConn(buf *bufio.ReadWriter, rwc io.ReadWriteCloser, request *http.Request) *Conn {
+ return newHybiServerConn(c.Config, buf, rwc, request)
+}
+
+// newHybiServerConn returns a new WebSocket connection speaking hybi draft protocol.
+func newHybiServerConn(config *Config, buf *bufio.ReadWriter, rwc io.ReadWriteCloser, request *http.Request) *Conn {
+ return newHybiConn(config, buf, rwc, request)
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.net/websocket/hybi_test.go b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/hybi_test.go
new file mode 100644
index 000000000..d6a19108a
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/hybi_test.go
@@ -0,0 +1,590 @@
+// Copyright 2011 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package websocket
+
+import (
+ "bufio"
+ "bytes"
+ "fmt"
+ "io"
+ "net/http"
+ "net/url"
+ "strings"
+ "testing"
+)
+
+// Test the getNonceAccept function with values in
+// http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-17
+func TestSecWebSocketAccept(t *testing.T) {
+ nonce := []byte("dGhlIHNhbXBsZSBub25jZQ==")
+ expected := []byte("s3pPLMBiTxaQ9kYGzzhZRbK+xOo=")
+ accept, err := getNonceAccept(nonce)
+ if err != nil {
+ t.Errorf("getNonceAccept: returned error %v", err)
+ return
+ }
+ if !bytes.Equal(expected, accept) {
+ t.Errorf("getNonceAccept: expected %q got %q", expected, accept)
+ }
+}
+
+func TestHybiClientHandshake(t *testing.T) {
+ b := bytes.NewBuffer([]byte{})
+ bw := bufio.NewWriter(b)
+ br := bufio.NewReader(strings.NewReader(`HTTP/1.1 101 Switching Protocols
+Upgrade: websocket
+Connection: Upgrade
+Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
+Sec-WebSocket-Protocol: chat
+
+`))
+ var err error
+ config := new(Config)
+ config.Location, err = url.ParseRequestURI("ws://server.example.com/chat")
+ if err != nil {
+ t.Fatal("location url", err)
+ }
+ config.Origin, err = url.ParseRequestURI("http://example.com")
+ if err != nil {
+ t.Fatal("origin url", err)
+ }
+ config.Protocol = append(config.Protocol, "chat")
+ config.Protocol = append(config.Protocol, "superchat")
+ config.Version = ProtocolVersionHybi13
+
+ config.handshakeData = map[string]string{
+ "key": "dGhlIHNhbXBsZSBub25jZQ==",
+ }
+ err = hybiClientHandshake(config, br, bw)
+ if err != nil {
+ t.Errorf("handshake failed: %v", err)
+ }
+ req, err := http.ReadRequest(bufio.NewReader(b))
+ if err != nil {
+ t.Fatalf("read request: %v", err)
+ }
+ if req.Method != "GET" {
+ t.Errorf("request method expected GET, but got %q", req.Method)
+ }
+ if req.URL.Path != "/chat" {
+ t.Errorf("request path expected /chat, but got %q", req.URL.Path)
+ }
+ if req.Proto != "HTTP/1.1" {
+ t.Errorf("request proto expected HTTP/1.1, but got %q", req.Proto)
+ }
+ if req.Host != "server.example.com" {
+ t.Errorf("request Host expected server.example.com, but got %v", req.Host)
+ }
+ var expectedHeader = map[string]string{
+ "Connection": "Upgrade",
+ "Upgrade": "websocket",
+ "Sec-Websocket-Key": config.handshakeData["key"],
+ "Origin": config.Origin.String(),
+ "Sec-Websocket-Protocol": "chat, superchat",
+ "Sec-Websocket-Version": fmt.Sprintf("%d", ProtocolVersionHybi13),
+ }
+ for k, v := range expectedHeader {
+ if req.Header.Get(k) != v {
+ t.Errorf(fmt.Sprintf("%s expected %q but got %q", k, v, req.Header.Get(k)))
+ }
+ }
+}
+
+func TestHybiClientHandshakeWithHeader(t *testing.T) {
+ b := bytes.NewBuffer([]byte{})
+ bw := bufio.NewWriter(b)
+ br := bufio.NewReader(strings.NewReader(`HTTP/1.1 101 Switching Protocols
+Upgrade: websocket
+Connection: Upgrade
+Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
+Sec-WebSocket-Protocol: chat
+
+`))
+ var err error
+ config := new(Config)
+ config.Location, err = url.ParseRequestURI("ws://server.example.com/chat")
+ if err != nil {
+ t.Fatal("location url", err)
+ }
+ config.Origin, err = url.ParseRequestURI("http://example.com")
+ if err != nil {
+ t.Fatal("origin url", err)
+ }
+ config.Protocol = append(config.Protocol, "chat")
+ config.Protocol = append(config.Protocol, "superchat")
+ config.Version = ProtocolVersionHybi13
+ config.Header = http.Header(make(map[string][]string))
+ config.Header.Add("User-Agent", "test")
+
+ config.handshakeData = map[string]string{
+ "key": "dGhlIHNhbXBsZSBub25jZQ==",
+ }
+ err = hybiClientHandshake(config, br, bw)
+ if err != nil {
+ t.Errorf("handshake failed: %v", err)
+ }
+ req, err := http.ReadRequest(bufio.NewReader(b))
+ if err != nil {
+ t.Fatalf("read request: %v", err)
+ }
+ if req.Method != "GET" {
+ t.Errorf("request method expected GET, but got %q", req.Method)
+ }
+ if req.URL.Path != "/chat" {
+ t.Errorf("request path expected /chat, but got %q", req.URL.Path)
+ }
+ if req.Proto != "HTTP/1.1" {
+ t.Errorf("request proto expected HTTP/1.1, but got %q", req.Proto)
+ }
+ if req.Host != "server.example.com" {
+ t.Errorf("request Host expected server.example.com, but got %v", req.Host)
+ }
+ var expectedHeader = map[string]string{
+ "Connection": "Upgrade",
+ "Upgrade": "websocket",
+ "Sec-Websocket-Key": config.handshakeData["key"],
+ "Origin": config.Origin.String(),
+ "Sec-Websocket-Protocol": "chat, superchat",
+ "Sec-Websocket-Version": fmt.Sprintf("%d", ProtocolVersionHybi13),
+ "User-Agent": "test",
+ }
+ for k, v := range expectedHeader {
+ if req.Header.Get(k) != v {
+ t.Errorf(fmt.Sprintf("%s expected %q but got %q", k, v, req.Header.Get(k)))
+ }
+ }
+}
+
+func TestHybiServerHandshake(t *testing.T) {
+ config := new(Config)
+ handshaker := &hybiServerHandshaker{Config: config}
+ br := bufio.NewReader(strings.NewReader(`GET /chat HTTP/1.1
+Host: server.example.com
+Upgrade: websocket
+Connection: Upgrade
+Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
+Origin: http://example.com
+Sec-WebSocket-Protocol: chat, superchat
+Sec-WebSocket-Version: 13
+
+`))
+ req, err := http.ReadRequest(br)
+ if err != nil {
+ t.Fatal("request", err)
+ }
+ code, err := handshaker.ReadHandshake(br, req)
+ if err != nil {
+ t.Errorf("handshake failed: %v", err)
+ }
+ if code != http.StatusSwitchingProtocols {
+ t.Errorf("status expected %q but got %q", http.StatusSwitchingProtocols, code)
+ }
+ expectedProtocols := []string{"chat", "superchat"}
+ if fmt.Sprintf("%v", config.Protocol) != fmt.Sprintf("%v", expectedProtocols) {
+ t.Errorf("protocol expected %q but got %q", expectedProtocols, config.Protocol)
+ }
+ b := bytes.NewBuffer([]byte{})
+ bw := bufio.NewWriter(b)
+
+ config.Protocol = config.Protocol[:1]
+
+ err = handshaker.AcceptHandshake(bw)
+ if err != nil {
+ t.Errorf("handshake response failed: %v", err)
+ }
+ expectedResponse := strings.Join([]string{
+ "HTTP/1.1 101 Switching Protocols",
+ "Upgrade: websocket",
+ "Connection: Upgrade",
+ "Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=",
+ "Sec-WebSocket-Protocol: chat",
+ "", ""}, "\r\n")
+
+ if b.String() != expectedResponse {
+ t.Errorf("handshake expected %q but got %q", expectedResponse, b.String())
+ }
+}
+
+func TestHybiServerHandshakeNoSubProtocol(t *testing.T) {
+ config := new(Config)
+ handshaker := &hybiServerHandshaker{Config: config}
+ br := bufio.NewReader(strings.NewReader(`GET /chat HTTP/1.1
+Host: server.example.com
+Upgrade: websocket
+Connection: Upgrade
+Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
+Origin: http://example.com
+Sec-WebSocket-Version: 13
+
+`))
+ req, err := http.ReadRequest(br)
+ if err != nil {
+ t.Fatal("request", err)
+ }
+ code, err := handshaker.ReadHandshake(br, req)
+ if err != nil {
+ t.Errorf("handshake failed: %v", err)
+ }
+ if code != http.StatusSwitchingProtocols {
+ t.Errorf("status expected %q but got %q", http.StatusSwitchingProtocols, code)
+ }
+ if len(config.Protocol) != 0 {
+ t.Errorf("len(config.Protocol) expected 0, but got %q", len(config.Protocol))
+ }
+ b := bytes.NewBuffer([]byte{})
+ bw := bufio.NewWriter(b)
+
+ err = handshaker.AcceptHandshake(bw)
+ if err != nil {
+ t.Errorf("handshake response failed: %v", err)
+ }
+ expectedResponse := strings.Join([]string{
+ "HTTP/1.1 101 Switching Protocols",
+ "Upgrade: websocket",
+ "Connection: Upgrade",
+ "Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=",
+ "", ""}, "\r\n")
+
+ if b.String() != expectedResponse {
+ t.Errorf("handshake expected %q but got %q", expectedResponse, b.String())
+ }
+}
+
+func TestHybiServerHandshakeHybiBadVersion(t *testing.T) {
+ config := new(Config)
+ handshaker := &hybiServerHandshaker{Config: config}
+ br := bufio.NewReader(strings.NewReader(`GET /chat HTTP/1.1
+Host: server.example.com
+Upgrade: websocket
+Connection: Upgrade
+Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
+Sec-WebSocket-Origin: http://example.com
+Sec-WebSocket-Protocol: chat, superchat
+Sec-WebSocket-Version: 9
+
+`))
+ req, err := http.ReadRequest(br)
+ if err != nil {
+ t.Fatal("request", err)
+ }
+ code, err := handshaker.ReadHandshake(br, req)
+ if err != ErrBadWebSocketVersion {
+ t.Errorf("handshake expected err %q but got %q", ErrBadWebSocketVersion, err)
+ }
+ if code != http.StatusBadRequest {
+ t.Errorf("status expected %q but got %q", http.StatusBadRequest, code)
+ }
+}
+
+func testHybiFrame(t *testing.T, testHeader, testPayload, testMaskedPayload []byte, frameHeader *hybiFrameHeader) {
+ b := bytes.NewBuffer([]byte{})
+ frameWriterFactory := &hybiFrameWriterFactory{bufio.NewWriter(b), false}
+ w, _ := frameWriterFactory.NewFrameWriter(TextFrame)
+ w.(*hybiFrameWriter).header = frameHeader
+ _, err := w.Write(testPayload)
+ w.Close()
+ if err != nil {
+ t.Errorf("Write error %q", err)
+ }
+ var expectedFrame []byte
+ expectedFrame = append(expectedFrame, testHeader...)
+ expectedFrame = append(expectedFrame, testMaskedPayload...)
+ if !bytes.Equal(expectedFrame, b.Bytes()) {
+ t.Errorf("frame expected %q got %q", expectedFrame, b.Bytes())
+ }
+ frameReaderFactory := &hybiFrameReaderFactory{bufio.NewReader(b)}
+ r, err := frameReaderFactory.NewFrameReader()
+ if err != nil {
+ t.Errorf("Read error %q", err)
+ }
+ if header := r.HeaderReader(); header == nil {
+ t.Errorf("no header")
+ } else {
+ actualHeader := make([]byte, r.Len())
+ n, err := header.Read(actualHeader)
+ if err != nil {
+ t.Errorf("Read header error %q", err)
+ } else {
+ if n < len(testHeader) {
+ t.Errorf("header too short %q got %q", testHeader, actualHeader[:n])
+ }
+ if !bytes.Equal(testHeader, actualHeader[:n]) {
+ t.Errorf("header expected %q got %q", testHeader, actualHeader[:n])
+ }
+ }
+ }
+ if trailer := r.TrailerReader(); trailer != nil {
+ t.Errorf("unexpected trailer %q", trailer)
+ }
+ frame := r.(*hybiFrameReader)
+ if frameHeader.Fin != frame.header.Fin ||
+ frameHeader.OpCode != frame.header.OpCode ||
+ len(testPayload) != int(frame.header.Length) {
+ t.Errorf("mismatch %v (%d) vs %v", frameHeader, len(testPayload), frame)
+ }
+ payload := make([]byte, len(testPayload))
+ _, err = r.Read(payload)
+ if err != nil {
+ t.Errorf("read %v", err)
+ }
+ if !bytes.Equal(testPayload, payload) {
+ t.Errorf("payload %q vs %q", testPayload, payload)
+ }
+}
+
+func TestHybiShortTextFrame(t *testing.T) {
+ frameHeader := &hybiFrameHeader{Fin: true, OpCode: TextFrame}
+ payload := []byte("hello")
+ testHybiFrame(t, []byte{0x81, 0x05}, payload, payload, frameHeader)
+
+ payload = make([]byte, 125)
+ testHybiFrame(t, []byte{0x81, 125}, payload, payload, frameHeader)
+}
+
+func TestHybiShortMaskedTextFrame(t *testing.T) {
+ frameHeader := &hybiFrameHeader{Fin: true, OpCode: TextFrame,
+ MaskingKey: []byte{0xcc, 0x55, 0x80, 0x20}}
+ payload := []byte("hello")
+ maskedPayload := []byte{0xa4, 0x30, 0xec, 0x4c, 0xa3}
+ header := []byte{0x81, 0x85}
+ header = append(header, frameHeader.MaskingKey...)
+ testHybiFrame(t, header, payload, maskedPayload, frameHeader)
+}
+
+func TestHybiShortBinaryFrame(t *testing.T) {
+ frameHeader := &hybiFrameHeader{Fin: true, OpCode: BinaryFrame}
+ payload := []byte("hello")
+ testHybiFrame(t, []byte{0x82, 0x05}, payload, payload, frameHeader)
+
+ payload = make([]byte, 125)
+ testHybiFrame(t, []byte{0x82, 125}, payload, payload, frameHeader)
+}
+
+func TestHybiControlFrame(t *testing.T) {
+ frameHeader := &hybiFrameHeader{Fin: true, OpCode: PingFrame}
+ payload := []byte("hello")
+ testHybiFrame(t, []byte{0x89, 0x05}, payload, payload, frameHeader)
+
+ frameHeader = &hybiFrameHeader{Fin: true, OpCode: PongFrame}
+ testHybiFrame(t, []byte{0x8A, 0x05}, payload, payload, frameHeader)
+
+ frameHeader = &hybiFrameHeader{Fin: true, OpCode: CloseFrame}
+ payload = []byte{0x03, 0xe8} // 1000
+ testHybiFrame(t, []byte{0x88, 0x02}, payload, payload, frameHeader)
+}
+
+func TestHybiLongFrame(t *testing.T) {
+ frameHeader := &hybiFrameHeader{Fin: true, OpCode: TextFrame}
+ payload := make([]byte, 126)
+ testHybiFrame(t, []byte{0x81, 126, 0x00, 126}, payload, payload, frameHeader)
+
+ payload = make([]byte, 65535)
+ testHybiFrame(t, []byte{0x81, 126, 0xff, 0xff}, payload, payload, frameHeader)
+
+ payload = make([]byte, 65536)
+ testHybiFrame(t, []byte{0x81, 127, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00}, payload, payload, frameHeader)
+}
+
+func TestHybiClientRead(t *testing.T) {
+ wireData := []byte{0x81, 0x05, 'h', 'e', 'l', 'l', 'o',
+ 0x89, 0x05, 'h', 'e', 'l', 'l', 'o', // ping
+ 0x81, 0x05, 'w', 'o', 'r', 'l', 'd'}
+ br := bufio.NewReader(bytes.NewBuffer(wireData))
+ bw := bufio.NewWriter(bytes.NewBuffer([]byte{}))
+ conn := newHybiConn(newConfig(t, "/"), bufio.NewReadWriter(br, bw), nil, nil)
+
+ msg := make([]byte, 512)
+ n, err := conn.Read(msg)
+ if err != nil {
+ t.Errorf("read 1st frame, error %q", err)
+ }
+ if n != 5 {
+ t.Errorf("read 1st frame, expect 5, got %d", n)
+ }
+ if !bytes.Equal(wireData[2:7], msg[:n]) {
+ t.Errorf("read 1st frame %v, got %v", wireData[2:7], msg[:n])
+ }
+ n, err = conn.Read(msg)
+ if err != nil {
+ t.Errorf("read 2nd frame, error %q", err)
+ }
+ if n != 5 {
+ t.Errorf("read 2nd frame, expect 5, got %d", n)
+ }
+ if !bytes.Equal(wireData[16:21], msg[:n]) {
+ t.Errorf("read 2nd frame %v, got %v", wireData[16:21], msg[:n])
+ }
+ n, err = conn.Read(msg)
+ if err == nil {
+ t.Errorf("read not EOF")
+ }
+ if n != 0 {
+ t.Errorf("expect read 0, got %d", n)
+ }
+}
+
+func TestHybiShortRead(t *testing.T) {
+ wireData := []byte{0x81, 0x05, 'h', 'e', 'l', 'l', 'o',
+ 0x89, 0x05, 'h', 'e', 'l', 'l', 'o', // ping
+ 0x81, 0x05, 'w', 'o', 'r', 'l', 'd'}
+ br := bufio.NewReader(bytes.NewBuffer(wireData))
+ bw := bufio.NewWriter(bytes.NewBuffer([]byte{}))
+ conn := newHybiConn(newConfig(t, "/"), bufio.NewReadWriter(br, bw), nil, nil)
+
+ step := 0
+ pos := 0
+ expectedPos := []int{2, 5, 16, 19}
+ expectedLen := []int{3, 2, 3, 2}
+ for {
+ msg := make([]byte, 3)
+ n, err := conn.Read(msg)
+ if step >= len(expectedPos) {
+ if err == nil {
+ t.Errorf("read not EOF")
+ }
+ if n != 0 {
+ t.Errorf("expect read 0, got %d", n)
+ }
+ return
+ }
+ pos = expectedPos[step]
+ endPos := pos + expectedLen[step]
+ if err != nil {
+ t.Errorf("read from %d, got error %q", pos, err)
+ return
+ }
+ if n != endPos-pos {
+ t.Errorf("read from %d, expect %d, got %d", pos, endPos-pos, n)
+ }
+ if !bytes.Equal(wireData[pos:endPos], msg[:n]) {
+ t.Errorf("read from %d, frame %v, got %v", pos, wireData[pos:endPos], msg[:n])
+ }
+ step++
+ }
+}
+
+func TestHybiServerRead(t *testing.T) {
+ wireData := []byte{0x81, 0x85, 0xcc, 0x55, 0x80, 0x20,
+ 0xa4, 0x30, 0xec, 0x4c, 0xa3, // hello
+ 0x89, 0x85, 0xcc, 0x55, 0x80, 0x20,
+ 0xa4, 0x30, 0xec, 0x4c, 0xa3, // ping: hello
+ 0x81, 0x85, 0xed, 0x83, 0xb4, 0x24,
+ 0x9a, 0xec, 0xc6, 0x48, 0x89, // world
+ }
+ br := bufio.NewReader(bytes.NewBuffer(wireData))
+ bw := bufio.NewWriter(bytes.NewBuffer([]byte{}))
+ conn := newHybiConn(newConfig(t, "/"), bufio.NewReadWriter(br, bw), nil, new(http.Request))
+
+ expected := [][]byte{[]byte("hello"), []byte("world")}
+
+ msg := make([]byte, 512)
+ n, err := conn.Read(msg)
+ if err != nil {
+ t.Errorf("read 1st frame, error %q", err)
+ }
+ if n != 5 {
+ t.Errorf("read 1st frame, expect 5, got %d", n)
+ }
+ if !bytes.Equal(expected[0], msg[:n]) {
+ t.Errorf("read 1st frame %q, got %q", expected[0], msg[:n])
+ }
+
+ n, err = conn.Read(msg)
+ if err != nil {
+ t.Errorf("read 2nd frame, error %q", err)
+ }
+ if n != 5 {
+ t.Errorf("read 2nd frame, expect 5, got %d", n)
+ }
+ if !bytes.Equal(expected[1], msg[:n]) {
+ t.Errorf("read 2nd frame %q, got %q", expected[1], msg[:n])
+ }
+
+ n, err = conn.Read(msg)
+ if err == nil {
+ t.Errorf("read not EOF")
+ }
+ if n != 0 {
+ t.Errorf("expect read 0, got %d", n)
+ }
+}
+
+func TestHybiServerReadWithoutMasking(t *testing.T) {
+ wireData := []byte{0x81, 0x05, 'h', 'e', 'l', 'l', 'o'}
+ br := bufio.NewReader(bytes.NewBuffer(wireData))
+ bw := bufio.NewWriter(bytes.NewBuffer([]byte{}))
+ conn := newHybiConn(newConfig(t, "/"), bufio.NewReadWriter(br, bw), nil, new(http.Request))
+ // server MUST close the connection upon receiving a non-masked frame.
+ msg := make([]byte, 512)
+ _, err := conn.Read(msg)
+ if err != io.EOF {
+ t.Errorf("read 1st frame, expect %q, but got %q", io.EOF, err)
+ }
+}
+
+func TestHybiClientReadWithMasking(t *testing.T) {
+ wireData := []byte{0x81, 0x85, 0xcc, 0x55, 0x80, 0x20,
+ 0xa4, 0x30, 0xec, 0x4c, 0xa3, // hello
+ }
+ br := bufio.NewReader(bytes.NewBuffer(wireData))
+ bw := bufio.NewWriter(bytes.NewBuffer([]byte{}))
+ conn := newHybiConn(newConfig(t, "/"), bufio.NewReadWriter(br, bw), nil, nil)
+
+ // client MUST close the connection upon receiving a masked frame.
+ msg := make([]byte, 512)
+ _, err := conn.Read(msg)
+ if err != io.EOF {
+ t.Errorf("read 1st frame, expect %q, but got %q", io.EOF, err)
+ }
+}
+
+// Test the hybiServerHandshaker supports firefox implementation and
+// checks Connection request header include (but it's not necessary
+// equal to) "upgrade"
+func TestHybiServerFirefoxHandshake(t *testing.T) {
+ config := new(Config)
+ handshaker := &hybiServerHandshaker{Config: config}
+ br := bufio.NewReader(strings.NewReader(`GET /chat HTTP/1.1
+Host: server.example.com
+Upgrade: websocket
+Connection: keep-alive, upgrade
+Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
+Origin: http://example.com
+Sec-WebSocket-Protocol: chat, superchat
+Sec-WebSocket-Version: 13
+
+`))
+ req, err := http.ReadRequest(br)
+ if err != nil {
+ t.Fatal("request", err)
+ }
+ code, err := handshaker.ReadHandshake(br, req)
+ if err != nil {
+ t.Errorf("handshake failed: %v", err)
+ }
+ if code != http.StatusSwitchingProtocols {
+ t.Errorf("status expected %q but got %q", http.StatusSwitchingProtocols, code)
+ }
+ b := bytes.NewBuffer([]byte{})
+ bw := bufio.NewWriter(b)
+
+ config.Protocol = []string{"chat"}
+
+ err = handshaker.AcceptHandshake(bw)
+ if err != nil {
+ t.Errorf("handshake response failed: %v", err)
+ }
+ expectedResponse := strings.Join([]string{
+ "HTTP/1.1 101 Switching Protocols",
+ "Upgrade: websocket",
+ "Connection: Upgrade",
+ "Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=",
+ "Sec-WebSocket-Protocol: chat",
+ "", ""}, "\r\n")
+
+ if b.String() != expectedResponse {
+ t.Errorf("handshake expected %q but got %q", expectedResponse, b.String())
+ }
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.net/websocket/server.go b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/server.go
new file mode 100644
index 000000000..70322133c
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/server.go
@@ -0,0 +1,114 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package websocket
+
+import (
+ "bufio"
+ "fmt"
+ "io"
+ "net/http"
+)
+
+func newServerConn(rwc io.ReadWriteCloser, buf *bufio.ReadWriter, req *http.Request, config *Config, handshake func(*Config, *http.Request) error) (conn *Conn, err error) {
+ var hs serverHandshaker = &hybiServerHandshaker{Config: config}
+ code, err := hs.ReadHandshake(buf.Reader, req)
+ if err == ErrBadWebSocketVersion {
+ fmt.Fprintf(buf, "HTTP/1.1 %03d %s\r\n", code, http.StatusText(code))
+ fmt.Fprintf(buf, "Sec-WebSocket-Version: %s\r\n", SupportedProtocolVersion)
+ buf.WriteString("\r\n")
+ buf.WriteString(err.Error())
+ buf.Flush()
+ return
+ }
+ if err != nil {
+ fmt.Fprintf(buf, "HTTP/1.1 %03d %s\r\n", code, http.StatusText(code))
+ buf.WriteString("\r\n")
+ buf.WriteString(err.Error())
+ buf.Flush()
+ return
+ }
+ if handshake != nil {
+ err = handshake(config, req)
+ if err != nil {
+ code = http.StatusForbidden
+ fmt.Fprintf(buf, "HTTP/1.1 %03d %s\r\n", code, http.StatusText(code))
+ buf.WriteString("\r\n")
+ buf.Flush()
+ return
+ }
+ }
+ err = hs.AcceptHandshake(buf.Writer)
+ if err != nil {
+ code = http.StatusBadRequest
+ fmt.Fprintf(buf, "HTTP/1.1 %03d %s\r\n", code, http.StatusText(code))
+ buf.WriteString("\r\n")
+ buf.Flush()
+ return
+ }
+ conn = hs.NewServerConn(buf, rwc, req)
+ return
+}
+
+// Server represents a server of a WebSocket.
+type Server struct {
+ // Config is a WebSocket configuration for new WebSocket connection.
+ Config
+
+ // Handshake is an optional function in WebSocket handshake.
+ // For example, you can check, or don't check Origin header.
+ // Another example, you can select config.Protocol.
+ Handshake func(*Config, *http.Request) error
+
+ // Handler handles a WebSocket connection.
+ Handler
+}
+
+// ServeHTTP implements the http.Handler interface for a WebSocket
+func (s Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
+ s.serveWebSocket(w, req)
+}
+
+func (s Server) serveWebSocket(w http.ResponseWriter, req *http.Request) {
+ rwc, buf, err := w.(http.Hijacker).Hijack()
+ if err != nil {
+ panic("Hijack failed: " + err.Error())
+ return
+ }
+ // The server should abort the WebSocket connection if it finds
+ // the client did not send a handshake that matches with protocol
+ // specification.
+ defer rwc.Close()
+ conn, err := newServerConn(rwc, buf, req, &s.Config, s.Handshake)
+ if err != nil {
+ return
+ }
+ if conn == nil {
+ panic("unexpected nil conn")
+ }
+ s.Handler(conn)
+}
+
+// Handler is a simple interface to a WebSocket browser client.
+// It checks if Origin header is valid URL by default.
+// You might want to verify websocket.Conn.Config().Origin in the func.
+// If you use Server instead of Handler, you could call websocket.Origin and
+// check the origin in your Handshake func. So, if you want to accept
+// non-browser client, which doesn't send Origin header, you could use Server
+//. that doesn't check origin in its Handshake.
+type Handler func(*Conn)
+
+func checkOrigin(config *Config, req *http.Request) (err error) {
+ config.Origin, err = Origin(config, req)
+ if err == nil && config.Origin == nil {
+ return fmt.Errorf("null origin")
+ }
+ return err
+}
+
+// ServeHTTP implements the http.Handler interface for a WebSocket
+func (h Handler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
+ s := Server{Handler: h, Handshake: checkOrigin}
+ s.serveWebSocket(w, req)
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.net/websocket/websocket.go b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/websocket.go
new file mode 100644
index 000000000..0f4917bf7
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/websocket.go
@@ -0,0 +1,411 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Package websocket implements a client and server for the WebSocket protocol
+// as specified in RFC 6455.
+package websocket
+
+import (
+ "bufio"
+ "crypto/tls"
+ "encoding/json"
+ "errors"
+ "io"
+ "io/ioutil"
+ "net"
+ "net/http"
+ "net/url"
+ "sync"
+ "time"
+)
+
+const (
+ ProtocolVersionHybi13 = 13
+ ProtocolVersionHybi = ProtocolVersionHybi13
+ SupportedProtocolVersion = "13"
+
+ ContinuationFrame = 0
+ TextFrame = 1
+ BinaryFrame = 2
+ CloseFrame = 8
+ PingFrame = 9
+ PongFrame = 10
+ UnknownFrame = 255
+)
+
+// ProtocolError represents WebSocket protocol errors.
+type ProtocolError struct {
+ ErrorString string
+}
+
+func (err *ProtocolError) Error() string { return err.ErrorString }
+
+var (
+ ErrBadProtocolVersion = &ProtocolError{"bad protocol version"}
+ ErrBadScheme = &ProtocolError{"bad scheme"}
+ ErrBadStatus = &ProtocolError{"bad status"}
+ ErrBadUpgrade = &ProtocolError{"missing or bad upgrade"}
+ ErrBadWebSocketOrigin = &ProtocolError{"missing or bad WebSocket-Origin"}
+ ErrBadWebSocketLocation = &ProtocolError{"missing or bad WebSocket-Location"}
+ ErrBadWebSocketProtocol = &ProtocolError{"missing or bad WebSocket-Protocol"}
+ ErrBadWebSocketVersion = &ProtocolError{"missing or bad WebSocket Version"}
+ ErrChallengeResponse = &ProtocolError{"mismatch challenge/response"}
+ ErrBadFrame = &ProtocolError{"bad frame"}
+ ErrBadFrameBoundary = &ProtocolError{"not on frame boundary"}
+ ErrNotWebSocket = &ProtocolError{"not websocket protocol"}
+ ErrBadRequestMethod = &ProtocolError{"bad method"}
+ ErrNotSupported = &ProtocolError{"not supported"}
+)
+
+// Addr is an implementation of net.Addr for WebSocket.
+type Addr struct {
+ *url.URL
+}
+
+// Network returns the network type for a WebSocket, "websocket".
+func (addr *Addr) Network() string { return "websocket" }
+
+// Config is a WebSocket configuration
+type Config struct {
+ // A WebSocket server address.
+ Location *url.URL
+
+ // A Websocket client origin.
+ Origin *url.URL
+
+ // WebSocket subprotocols.
+ Protocol []string
+
+ // WebSocket protocol version.
+ Version int
+
+ // TLS config for secure WebSocket (wss).
+ TlsConfig *tls.Config
+
+ // Additional header fields to be sent in WebSocket opening handshake.
+ Header http.Header
+
+ handshakeData map[string]string
+}
+
+// serverHandshaker is an interface to handle WebSocket server side handshake.
+type serverHandshaker interface {
+ // ReadHandshake reads handshake request message from client.
+ // Returns http response code and error if any.
+ ReadHandshake(buf *bufio.Reader, req *http.Request) (code int, err error)
+
+ // AcceptHandshake accepts the client handshake request and sends
+ // handshake response back to client.
+ AcceptHandshake(buf *bufio.Writer) (err error)
+
+ // NewServerConn creates a new WebSocket connection.
+ NewServerConn(buf *bufio.ReadWriter, rwc io.ReadWriteCloser, request *http.Request) (conn *Conn)
+}
+
+// frameReader is an interface to read a WebSocket frame.
+type frameReader interface {
+ // Reader is to read payload of the frame.
+ io.Reader
+
+ // PayloadType returns payload type.
+ PayloadType() byte
+
+ // HeaderReader returns a reader to read header of the frame.
+ HeaderReader() io.Reader
+
+ // TrailerReader returns a reader to read trailer of the frame.
+ // If it returns nil, there is no trailer in the frame.
+ TrailerReader() io.Reader
+
+ // Len returns total length of the frame, including header and trailer.
+ Len() int
+}
+
+// frameReaderFactory is an interface to creates new frame reader.
+type frameReaderFactory interface {
+ NewFrameReader() (r frameReader, err error)
+}
+
+// frameWriter is an interface to write a WebSocket frame.
+type frameWriter interface {
+ // Writer is to write payload of the frame.
+ io.WriteCloser
+}
+
+// frameWriterFactory is an interface to create new frame writer.
+type frameWriterFactory interface {
+ NewFrameWriter(payloadType byte) (w frameWriter, err error)
+}
+
+type frameHandler interface {
+ HandleFrame(frame frameReader) (r frameReader, err error)
+ WriteClose(status int) (err error)
+}
+
+// Conn represents a WebSocket connection.
+type Conn struct {
+ config *Config
+ request *http.Request
+
+ buf *bufio.ReadWriter
+ rwc io.ReadWriteCloser
+
+ rio sync.Mutex
+ frameReaderFactory
+ frameReader
+
+ wio sync.Mutex
+ frameWriterFactory
+
+ frameHandler
+ PayloadType byte
+ defaultCloseStatus int
+}
+
+// Read implements the io.Reader interface:
+// it reads data of a frame from the WebSocket connection.
+// if msg is not large enough for the frame data, it fills the msg and next Read
+// will read the rest of the frame data.
+// it reads Text frame or Binary frame.
+func (ws *Conn) Read(msg []byte) (n int, err error) {
+ ws.rio.Lock()
+ defer ws.rio.Unlock()
+again:
+ if ws.frameReader == nil {
+ frame, err := ws.frameReaderFactory.NewFrameReader()
+ if err != nil {
+ return 0, err
+ }
+ ws.frameReader, err = ws.frameHandler.HandleFrame(frame)
+ if err != nil {
+ return 0, err
+ }
+ if ws.frameReader == nil {
+ goto again
+ }
+ }
+ n, err = ws.frameReader.Read(msg)
+ if err == io.EOF {
+ if trailer := ws.frameReader.TrailerReader(); trailer != nil {
+ io.Copy(ioutil.Discard, trailer)
+ }
+ ws.frameReader = nil
+ goto again
+ }
+ return n, err
+}
+
+// Write implements the io.Writer interface:
+// it writes data as a frame to the WebSocket connection.
+func (ws *Conn) Write(msg []byte) (n int, err error) {
+ ws.wio.Lock()
+ defer ws.wio.Unlock()
+ w, err := ws.frameWriterFactory.NewFrameWriter(ws.PayloadType)
+ if err != nil {
+ return 0, err
+ }
+ n, err = w.Write(msg)
+ w.Close()
+ if err != nil {
+ return n, err
+ }
+ return n, err
+}
+
+// Close implements the io.Closer interface.
+func (ws *Conn) Close() error {
+ err := ws.frameHandler.WriteClose(ws.defaultCloseStatus)
+ if err != nil {
+ return err
+ }
+ return ws.rwc.Close()
+}
+
+func (ws *Conn) IsClientConn() bool { return ws.request == nil }
+func (ws *Conn) IsServerConn() bool { return ws.request != nil }
+
+// LocalAddr returns the WebSocket Origin for the connection for client, or
+// the WebSocket location for server.
+func (ws *Conn) LocalAddr() net.Addr {
+ if ws.IsClientConn() {
+ return &Addr{ws.config.Origin}
+ }
+ return &Addr{ws.config.Location}
+}
+
+// RemoteAddr returns the WebSocket location for the connection for client, or
+// the Websocket Origin for server.
+func (ws *Conn) RemoteAddr() net.Addr {
+ if ws.IsClientConn() {
+ return &Addr{ws.config.Location}
+ }
+ return &Addr{ws.config.Origin}
+}
+
+var errSetDeadline = errors.New("websocket: cannot set deadline: not using a net.Conn")
+
+// SetDeadline sets the connection's network read & write deadlines.
+func (ws *Conn) SetDeadline(t time.Time) error {
+ if conn, ok := ws.rwc.(net.Conn); ok {
+ return conn.SetDeadline(t)
+ }
+ return errSetDeadline
+}
+
+// SetReadDeadline sets the connection's network read deadline.
+func (ws *Conn) SetReadDeadline(t time.Time) error {
+ if conn, ok := ws.rwc.(net.Conn); ok {
+ return conn.SetReadDeadline(t)
+ }
+ return errSetDeadline
+}
+
+// SetWriteDeadline sets the connection's network write deadline.
+func (ws *Conn) SetWriteDeadline(t time.Time) error {
+ if conn, ok := ws.rwc.(net.Conn); ok {
+ return conn.SetWriteDeadline(t)
+ }
+ return errSetDeadline
+}
+
+// Config returns the WebSocket config.
+func (ws *Conn) Config() *Config { return ws.config }
+
+// Request returns the http request upgraded to the WebSocket.
+// It is nil for client side.
+func (ws *Conn) Request() *http.Request { return ws.request }
+
+// Codec represents a symmetric pair of functions that implement a codec.
+type Codec struct {
+ Marshal func(v interface{}) (data []byte, payloadType byte, err error)
+ Unmarshal func(data []byte, payloadType byte, v interface{}) (err error)
+}
+
+// Send sends v marshaled by cd.Marshal as single frame to ws.
+func (cd Codec) Send(ws *Conn, v interface{}) (err error) {
+ data, payloadType, err := cd.Marshal(v)
+ if err != nil {
+ return err
+ }
+ ws.wio.Lock()
+ defer ws.wio.Unlock()
+ w, err := ws.frameWriterFactory.NewFrameWriter(payloadType)
+ if err != nil {
+ return err
+ }
+ _, err = w.Write(data)
+ w.Close()
+ return err
+}
+
+// Receive receives single frame from ws, unmarshaled by cd.Unmarshal and stores in v.
+func (cd Codec) Receive(ws *Conn, v interface{}) (err error) {
+ ws.rio.Lock()
+ defer ws.rio.Unlock()
+ if ws.frameReader != nil {
+ _, err = io.Copy(ioutil.Discard, ws.frameReader)
+ if err != nil {
+ return err
+ }
+ ws.frameReader = nil
+ }
+again:
+ frame, err := ws.frameReaderFactory.NewFrameReader()
+ if err != nil {
+ return err
+ }
+ frame, err = ws.frameHandler.HandleFrame(frame)
+ if err != nil {
+ return err
+ }
+ if frame == nil {
+ goto again
+ }
+ payloadType := frame.PayloadType()
+ data, err := ioutil.ReadAll(frame)
+ if err != nil {
+ return err
+ }
+ return cd.Unmarshal(data, payloadType, v)
+}
+
+func marshal(v interface{}) (msg []byte, payloadType byte, err error) {
+ switch data := v.(type) {
+ case string:
+ return []byte(data), TextFrame, nil
+ case []byte:
+ return data, BinaryFrame, nil
+ }
+ return nil, UnknownFrame, ErrNotSupported
+}
+
+func unmarshal(msg []byte, payloadType byte, v interface{}) (err error) {
+ switch data := v.(type) {
+ case *string:
+ *data = string(msg)
+ return nil
+ case *[]byte:
+ *data = msg
+ return nil
+ }
+ return ErrNotSupported
+}
+
+/*
+Message is a codec to send/receive text/binary data in a frame on WebSocket connection.
+To send/receive text frame, use string type.
+To send/receive binary frame, use []byte type.
+
+Trivial usage:
+
+ import "websocket"
+
+ // receive text frame
+ var message string
+ websocket.Message.Receive(ws, &message)
+
+ // send text frame
+ message = "hello"
+ websocket.Message.Send(ws, message)
+
+ // receive binary frame
+ var data []byte
+ websocket.Message.Receive(ws, &data)
+
+ // send binary frame
+ data = []byte{0, 1, 2}
+ websocket.Message.Send(ws, data)
+
+*/
+var Message = Codec{marshal, unmarshal}
+
+func jsonMarshal(v interface{}) (msg []byte, payloadType byte, err error) {
+ msg, err = json.Marshal(v)
+ return msg, TextFrame, err
+}
+
+func jsonUnmarshal(msg []byte, payloadType byte, v interface{}) (err error) {
+ return json.Unmarshal(msg, v)
+}
+
+/*
+JSON is a codec to send/receive JSON data in a frame from a WebSocket connection.
+
+Trivial usage:
+
+ import "websocket"
+
+ type T struct {
+ Msg string
+ Count int
+ }
+
+ // receive JSON type T
+ var data T
+ websocket.JSON.Receive(ws, &data)
+
+ // send JSON type T
+ websocket.JSON.Send(ws, data)
+*/
+var JSON = Codec{jsonMarshal, jsonUnmarshal}
diff --git a/Godeps/_workspace/src/code.google.com/p/go.net/websocket/websocket_test.go b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/websocket_test.go
new file mode 100644
index 000000000..48f14b696
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/go.net/websocket/websocket_test.go
@@ -0,0 +1,341 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package websocket
+
+import (
+ "bytes"
+ "fmt"
+ "io"
+ "log"
+ "net"
+ "net/http"
+ "net/http/httptest"
+ "net/url"
+ "strings"
+ "sync"
+ "testing"
+)
+
+var serverAddr string
+var once sync.Once
+
+func echoServer(ws *Conn) { io.Copy(ws, ws) }
+
+type Count struct {
+ S string
+ N int
+}
+
+func countServer(ws *Conn) {
+ for {
+ var count Count
+ err := JSON.Receive(ws, &count)
+ if err != nil {
+ return
+ }
+ count.N++
+ count.S = strings.Repeat(count.S, count.N)
+ err = JSON.Send(ws, count)
+ if err != nil {
+ return
+ }
+ }
+}
+
+func subProtocolHandshake(config *Config, req *http.Request) error {
+ for _, proto := range config.Protocol {
+ if proto == "chat" {
+ config.Protocol = []string{proto}
+ return nil
+ }
+ }
+ return ErrBadWebSocketProtocol
+}
+
+func subProtoServer(ws *Conn) {
+ for _, proto := range ws.Config().Protocol {
+ io.WriteString(ws, proto)
+ }
+}
+
+func startServer() {
+ http.Handle("/echo", Handler(echoServer))
+ http.Handle("/count", Handler(countServer))
+ subproto := Server{
+ Handshake: subProtocolHandshake,
+ Handler: Handler(subProtoServer),
+ }
+ http.Handle("/subproto", subproto)
+ server := httptest.NewServer(nil)
+ serverAddr = server.Listener.Addr().String()
+ log.Print("Test WebSocket server listening on ", serverAddr)
+}
+
+func newConfig(t *testing.T, path string) *Config {
+ config, _ := NewConfig(fmt.Sprintf("ws://%s%s", serverAddr, path), "http://localhost")
+ return config
+}
+
+func TestEcho(t *testing.T) {
+ once.Do(startServer)
+
+ // websocket.Dial()
+ client, err := net.Dial("tcp", serverAddr)
+ if err != nil {
+ t.Fatal("dialing", err)
+ }
+ conn, err := NewClient(newConfig(t, "/echo"), client)
+ if err != nil {
+ t.Errorf("WebSocket handshake error: %v", err)
+ return
+ }
+
+ msg := []byte("hello, world\n")
+ if _, err := conn.Write(msg); err != nil {
+ t.Errorf("Write: %v", err)
+ }
+ var actual_msg = make([]byte, 512)
+ n, err := conn.Read(actual_msg)
+ if err != nil {
+ t.Errorf("Read: %v", err)
+ }
+ actual_msg = actual_msg[0:n]
+ if !bytes.Equal(msg, actual_msg) {
+ t.Errorf("Echo: expected %q got %q", msg, actual_msg)
+ }
+ conn.Close()
+}
+
+func TestAddr(t *testing.T) {
+ once.Do(startServer)
+
+ // websocket.Dial()
+ client, err := net.Dial("tcp", serverAddr)
+ if err != nil {
+ t.Fatal("dialing", err)
+ }
+ conn, err := NewClient(newConfig(t, "/echo"), client)
+ if err != nil {
+ t.Errorf("WebSocket handshake error: %v", err)
+ return
+ }
+
+ ra := conn.RemoteAddr().String()
+ if !strings.HasPrefix(ra, "ws://") || !strings.HasSuffix(ra, "/echo") {
+ t.Errorf("Bad remote addr: %v", ra)
+ }
+ la := conn.LocalAddr().String()
+ if !strings.HasPrefix(la, "http://") {
+ t.Errorf("Bad local addr: %v", la)
+ }
+ conn.Close()
+}
+
+func TestCount(t *testing.T) {
+ once.Do(startServer)
+
+ // websocket.Dial()
+ client, err := net.Dial("tcp", serverAddr)
+ if err != nil {
+ t.Fatal("dialing", err)
+ }
+ conn, err := NewClient(newConfig(t, "/count"), client)
+ if err != nil {
+ t.Errorf("WebSocket handshake error: %v", err)
+ return
+ }
+
+ var count Count
+ count.S = "hello"
+ if err := JSON.Send(conn, count); err != nil {
+ t.Errorf("Write: %v", err)
+ }
+ if err := JSON.Receive(conn, &count); err != nil {
+ t.Errorf("Read: %v", err)
+ }
+ if count.N != 1 {
+ t.Errorf("count: expected %d got %d", 1, count.N)
+ }
+ if count.S != "hello" {
+ t.Errorf("count: expected %q got %q", "hello", count.S)
+ }
+ if err := JSON.Send(conn, count); err != nil {
+ t.Errorf("Write: %v", err)
+ }
+ if err := JSON.Receive(conn, &count); err != nil {
+ t.Errorf("Read: %v", err)
+ }
+ if count.N != 2 {
+ t.Errorf("count: expected %d got %d", 2, count.N)
+ }
+ if count.S != "hellohello" {
+ t.Errorf("count: expected %q got %q", "hellohello", count.S)
+ }
+ conn.Close()
+}
+
+func TestWithQuery(t *testing.T) {
+ once.Do(startServer)
+
+ client, err := net.Dial("tcp", serverAddr)
+ if err != nil {
+ t.Fatal("dialing", err)
+ }
+
+ config := newConfig(t, "/echo")
+ config.Location, err = url.ParseRequestURI(fmt.Sprintf("ws://%s/echo?q=v", serverAddr))
+ if err != nil {
+ t.Fatal("location url", err)
+ }
+
+ ws, err := NewClient(config, client)
+ if err != nil {
+ t.Errorf("WebSocket handshake: %v", err)
+ return
+ }
+ ws.Close()
+}
+
+func testWithProtocol(t *testing.T, subproto []string) (string, error) {
+ once.Do(startServer)
+
+ client, err := net.Dial("tcp", serverAddr)
+ if err != nil {
+ t.Fatal("dialing", err)
+ }
+
+ config := newConfig(t, "/subproto")
+ config.Protocol = subproto
+
+ ws, err := NewClient(config, client)
+ if err != nil {
+ return "", err
+ }
+ msg := make([]byte, 16)
+ n, err := ws.Read(msg)
+ if err != nil {
+ return "", err
+ }
+ ws.Close()
+ return string(msg[:n]), nil
+}
+
+func TestWithProtocol(t *testing.T) {
+ proto, err := testWithProtocol(t, []string{"chat"})
+ if err != nil {
+ t.Errorf("SubProto: unexpected error: %v", err)
+ }
+ if proto != "chat" {
+ t.Errorf("SubProto: expected %q, got %q", "chat", proto)
+ }
+}
+
+func TestWithTwoProtocol(t *testing.T) {
+ proto, err := testWithProtocol(t, []string{"test", "chat"})
+ if err != nil {
+ t.Errorf("SubProto: unexpected error: %v", err)
+ }
+ if proto != "chat" {
+ t.Errorf("SubProto: expected %q, got %q", "chat", proto)
+ }
+}
+
+func TestWithBadProtocol(t *testing.T) {
+ _, err := testWithProtocol(t, []string{"test"})
+ if err != ErrBadStatus {
+ t.Errorf("SubProto: expected %v, got %v", ErrBadStatus, err)
+ }
+}
+
+func TestHTTP(t *testing.T) {
+ once.Do(startServer)
+
+ // If the client did not send a handshake that matches the protocol
+ // specification, the server MUST return an HTTP response with an
+ // appropriate error code (such as 400 Bad Request)
+ resp, err := http.Get(fmt.Sprintf("http://%s/echo", serverAddr))
+ if err != nil {
+ t.Errorf("Get: error %#v", err)
+ return
+ }
+ if resp == nil {
+ t.Error("Get: resp is null")
+ return
+ }
+ if resp.StatusCode != http.StatusBadRequest {
+ t.Errorf("Get: expected %q got %q", http.StatusBadRequest, resp.StatusCode)
+ }
+}
+
+func TestTrailingSpaces(t *testing.T) {
+ // http://code.google.com/p/go/issues/detail?id=955
+ // The last runs of this create keys with trailing spaces that should not be
+ // generated by the client.
+ once.Do(startServer)
+ config := newConfig(t, "/echo")
+ for i := 0; i < 30; i++ {
+ // body
+ ws, err := DialConfig(config)
+ if err != nil {
+ t.Errorf("Dial #%d failed: %v", i, err)
+ break
+ }
+ ws.Close()
+ }
+}
+
+func TestDialConfigBadVersion(t *testing.T) {
+ once.Do(startServer)
+ config := newConfig(t, "/echo")
+ config.Version = 1234
+
+ _, err := DialConfig(config)
+
+ if dialerr, ok := err.(*DialError); ok {
+ if dialerr.Err != ErrBadProtocolVersion {
+ t.Errorf("dial expected err %q but got %q", ErrBadProtocolVersion, dialerr.Err)
+ }
+ }
+}
+
+func TestSmallBuffer(t *testing.T) {
+ // http://code.google.com/p/go/issues/detail?id=1145
+ // Read should be able to handle reading a fragment of a frame.
+ once.Do(startServer)
+
+ // websocket.Dial()
+ client, err := net.Dial("tcp", serverAddr)
+ if err != nil {
+ t.Fatal("dialing", err)
+ }
+ conn, err := NewClient(newConfig(t, "/echo"), client)
+ if err != nil {
+ t.Errorf("WebSocket handshake error: %v", err)
+ return
+ }
+
+ msg := []byte("hello, world\n")
+ if _, err := conn.Write(msg); err != nil {
+ t.Errorf("Write: %v", err)
+ }
+ var small_msg = make([]byte, 8)
+ n, err := conn.Read(small_msg)
+ if err != nil {
+ t.Errorf("Read: %v", err)
+ }
+ if !bytes.Equal(msg[:len(small_msg)], small_msg) {
+ t.Errorf("Echo: expected %q got %q", msg[:len(small_msg)], small_msg)
+ }
+ var second_msg = make([]byte, len(msg))
+ n, err = conn.Read(second_msg)
+ if err != nil {
+ t.Errorf("Read: %v", err)
+ }
+ second_msg = second_msg[0:n]
+ if !bytes.Equal(msg[len(small_msg):], second_msg) {
+ t.Errorf("Echo: expected %q got %q", msg[len(small_msg):], second_msg)
+ }
+ conn.Close()
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/decode.go b/Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/decode.go
new file mode 100644
index 000000000..d93c1b9db
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/decode.go
@@ -0,0 +1,124 @@
+// Copyright 2011 The Snappy-Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package snappy
+
+import (
+ "encoding/binary"
+ "errors"
+)
+
+// ErrCorrupt reports that the input is invalid.
+var ErrCorrupt = errors.New("snappy: corrupt input")
+
+// DecodedLen returns the length of the decoded block.
+func DecodedLen(src []byte) (int, error) {
+ v, _, err := decodedLen(src)
+ return v, err
+}
+
+// decodedLen returns the length of the decoded block and the number of bytes
+// that the length header occupied.
+func decodedLen(src []byte) (blockLen, headerLen int, err error) {
+ v, n := binary.Uvarint(src)
+ if n == 0 {
+ return 0, 0, ErrCorrupt
+ }
+ if uint64(int(v)) != v {
+ return 0, 0, errors.New("snappy: decoded block is too large")
+ }
+ return int(v), n, nil
+}
+
+// Decode returns the decoded form of src. The returned slice may be a sub-
+// slice of dst if dst was large enough to hold the entire decoded block.
+// Otherwise, a newly allocated slice will be returned.
+// It is valid to pass a nil dst.
+func Decode(dst, src []byte) ([]byte, error) {
+ dLen, s, err := decodedLen(src)
+ if err != nil {
+ return nil, err
+ }
+ if len(dst) < dLen {
+ dst = make([]byte, dLen)
+ }
+
+ var d, offset, length int
+ for s < len(src) {
+ switch src[s] & 0x03 {
+ case tagLiteral:
+ x := uint(src[s] >> 2)
+ switch {
+ case x < 60:
+ s += 1
+ case x == 60:
+ s += 2
+ if s > len(src) {
+ return nil, ErrCorrupt
+ }
+ x = uint(src[s-1])
+ case x == 61:
+ s += 3
+ if s > len(src) {
+ return nil, ErrCorrupt
+ }
+ x = uint(src[s-2]) | uint(src[s-1])<<8
+ case x == 62:
+ s += 4
+ if s > len(src) {
+ return nil, ErrCorrupt
+ }
+ x = uint(src[s-3]) | uint(src[s-2])<<8 | uint(src[s-1])<<16
+ case x == 63:
+ s += 5
+ if s > len(src) {
+ return nil, ErrCorrupt
+ }
+ x = uint(src[s-4]) | uint(src[s-3])<<8 | uint(src[s-2])<<16 | uint(src[s-1])<<24
+ }
+ length = int(x + 1)
+ if length <= 0 {
+ return nil, errors.New("snappy: unsupported literal length")
+ }
+ if length > len(dst)-d || length > len(src)-s {
+ return nil, ErrCorrupt
+ }
+ copy(dst[d:], src[s:s+length])
+ d += length
+ s += length
+ continue
+
+ case tagCopy1:
+ s += 2
+ if s > len(src) {
+ return nil, ErrCorrupt
+ }
+ length = 4 + int(src[s-2])>>2&0x7
+ offset = int(src[s-2])&0xe0<<3 | int(src[s-1])
+
+ case tagCopy2:
+ s += 3
+ if s > len(src) {
+ return nil, ErrCorrupt
+ }
+ length = 1 + int(src[s-3])>>2
+ offset = int(src[s-2]) | int(src[s-1])<<8
+
+ case tagCopy4:
+ return nil, errors.New("snappy: unsupported COPY_4 tag")
+ }
+
+ end := d + length
+ if offset > d || end > len(dst) {
+ return nil, ErrCorrupt
+ }
+ for ; d < end; d++ {
+ dst[d] = dst[d-offset]
+ }
+ }
+ if d != dLen {
+ return nil, ErrCorrupt
+ }
+ return dst[:d], nil
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/encode.go b/Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/encode.go
new file mode 100644
index 000000000..b2371db11
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/encode.go
@@ -0,0 +1,174 @@
+// Copyright 2011 The Snappy-Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package snappy
+
+import (
+ "encoding/binary"
+)
+
+// We limit how far copy back-references can go, the same as the C++ code.
+const maxOffset = 1 << 15
+
+// emitLiteral writes a literal chunk and returns the number of bytes written.
+func emitLiteral(dst, lit []byte) int {
+ i, n := 0, uint(len(lit)-1)
+ switch {
+ case n < 60:
+ dst[0] = uint8(n)<<2 | tagLiteral
+ i = 1
+ case n < 1<<8:
+ dst[0] = 60<<2 | tagLiteral
+ dst[1] = uint8(n)
+ i = 2
+ case n < 1<<16:
+ dst[0] = 61<<2 | tagLiteral
+ dst[1] = uint8(n)
+ dst[2] = uint8(n >> 8)
+ i = 3
+ case n < 1<<24:
+ dst[0] = 62<<2 | tagLiteral
+ dst[1] = uint8(n)
+ dst[2] = uint8(n >> 8)
+ dst[3] = uint8(n >> 16)
+ i = 4
+ case int64(n) < 1<<32:
+ dst[0] = 63<<2 | tagLiteral
+ dst[1] = uint8(n)
+ dst[2] = uint8(n >> 8)
+ dst[3] = uint8(n >> 16)
+ dst[4] = uint8(n >> 24)
+ i = 5
+ default:
+ panic("snappy: source buffer is too long")
+ }
+ if copy(dst[i:], lit) != len(lit) {
+ panic("snappy: destination buffer is too short")
+ }
+ return i + len(lit)
+}
+
+// emitCopy writes a copy chunk and returns the number of bytes written.
+func emitCopy(dst []byte, offset, length int) int {
+ i := 0
+ for length > 0 {
+ x := length - 4
+ if 0 <= x && x < 1<<3 && offset < 1<<11 {
+ dst[i+0] = uint8(offset>>8)&0x07<<5 | uint8(x)<<2 | tagCopy1
+ dst[i+1] = uint8(offset)
+ i += 2
+ break
+ }
+
+ x = length
+ if x > 1<<6 {
+ x = 1 << 6
+ }
+ dst[i+0] = uint8(x-1)<<2 | tagCopy2
+ dst[i+1] = uint8(offset)
+ dst[i+2] = uint8(offset >> 8)
+ i += 3
+ length -= x
+ }
+ return i
+}
+
+// Encode returns the encoded form of src. The returned slice may be a sub-
+// slice of dst if dst was large enough to hold the entire encoded block.
+// Otherwise, a newly allocated slice will be returned.
+// It is valid to pass a nil dst.
+func Encode(dst, src []byte) ([]byte, error) {
+ if n := MaxEncodedLen(len(src)); len(dst) < n {
+ dst = make([]byte, n)
+ }
+
+ // The block starts with the varint-encoded length of the decompressed bytes.
+ d := binary.PutUvarint(dst, uint64(len(src)))
+
+ // Return early if src is short.
+ if len(src) <= 4 {
+ if len(src) != 0 {
+ d += emitLiteral(dst[d:], src)
+ }
+ return dst[:d], nil
+ }
+
+ // Initialize the hash table. Its size ranges from 1<<8 to 1<<14 inclusive.
+ const maxTableSize = 1 << 14
+ shift, tableSize := uint(32-8), 1<<8
+ for tableSize < maxTableSize && tableSize < len(src) {
+ shift--
+ tableSize *= 2
+ }
+ var table [maxTableSize]int
+
+ // Iterate over the source bytes.
+ var (
+ s int // The iterator position.
+ t int // The last position with the same hash as s.
+ lit int // The start position of any pending literal bytes.
+ )
+ for s+3 < len(src) {
+ // Update the hash table.
+ b0, b1, b2, b3 := src[s], src[s+1], src[s+2], src[s+3]
+ h := uint32(b0) | uint32(b1)<<8 | uint32(b2)<<16 | uint32(b3)<<24
+ p := &table[(h*0x1e35a7bd)>>shift]
+ // We need to to store values in [-1, inf) in table. To save
+ // some initialization time, (re)use the table's zero value
+ // and shift the values against this zero: add 1 on writes,
+ // subtract 1 on reads.
+ t, *p = *p-1, s+1
+ // If t is invalid or src[s:s+4] differs from src[t:t+4], accumulate a literal byte.
+ if t < 0 || s-t >= maxOffset || b0 != src[t] || b1 != src[t+1] || b2 != src[t+2] || b3 != src[t+3] {
+ s++
+ continue
+ }
+ // Otherwise, we have a match. First, emit any pending literal bytes.
+ if lit != s {
+ d += emitLiteral(dst[d:], src[lit:s])
+ }
+ // Extend the match to be as long as possible.
+ s0 := s
+ s, t = s+4, t+4
+ for s < len(src) && src[s] == src[t] {
+ s++
+ t++
+ }
+ // Emit the copied bytes.
+ d += emitCopy(dst[d:], s-t, s-s0)
+ lit = s
+ }
+
+ // Emit any final pending literal bytes and return.
+ if lit != len(src) {
+ d += emitLiteral(dst[d:], src[lit:])
+ }
+ return dst[:d], nil
+}
+
+// MaxEncodedLen returns the maximum length of a snappy block, given its
+// uncompressed length.
+func MaxEncodedLen(srcLen int) int {
+ // Compressed data can be defined as:
+ // compressed := item* literal*
+ // item := literal* copy
+ //
+ // The trailing literal sequence has a space blowup of at most 62/60
+ // since a literal of length 60 needs one tag byte + one extra byte
+ // for length information.
+ //
+ // Item blowup is trickier to measure. Suppose the "copy" op copies
+ // 4 bytes of data. Because of a special check in the encoding code,
+ // we produce a 4-byte copy only if the offset is < 65536. Therefore
+ // the copy op takes 3 bytes to encode, and this type of item leads
+ // to at most the 62/60 blowup for representing literals.
+ //
+ // Suppose the "copy" op copies 5 bytes of data. If the offset is big
+ // enough, it will take 5 bytes to encode the copy op. Therefore the
+ // worst case here is a one-byte literal followed by a five-byte copy.
+ // That is, 6 bytes of input turn into 7 bytes of "compressed" data.
+ //
+ // This last factor dominates the blowup, so the final estimate is:
+ return 32 + srcLen + srcLen/6
+}
diff --git a/Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/snappy.go b/Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/snappy.go
new file mode 100644
index 000000000..2f1b790d0
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/snappy.go
@@ -0,0 +1,38 @@
+// Copyright 2011 The Snappy-Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Package snappy implements the snappy block-based compression format.
+// It aims for very high speeds and reasonable compression.
+//
+// The C++ snappy implementation is at http://code.google.com/p/snappy/
+package snappy
+
+/*
+Each encoded block begins with the varint-encoded length of the decoded data,
+followed by a sequence of chunks. Chunks begin and end on byte boundaries. The
+first byte of each chunk is broken into its 2 least and 6 most significant bits
+called l and m: l ranges in [0, 4) and m ranges in [0, 64). l is the chunk tag.
+Zero means a literal tag. All other values mean a copy tag.
+
+For literal tags:
+ - If m < 60, the next 1 + m bytes are literal bytes.
+ - Otherwise, let n be the little-endian unsigned integer denoted by the next
+ m - 59 bytes. The next 1 + n bytes after that are literal bytes.
+
+For copy tags, length bytes are copied from offset bytes ago, in the style of
+Lempel-Ziv compression algorithms. In particular:
+ - For l == 1, the offset ranges in [0, 1<<11) and the length in [4, 12).
+ The length is 4 + the low 3 bits of m. The high 3 bits of m form bits 8-10
+ of the offset. The next byte is bits 0-7 of the offset.
+ - For l == 2, the offset ranges in [0, 1<<16) and the length in [1, 65).
+ The length is 1 + m. The offset is the little-endian unsigned integer
+ denoted by the next 2 bytes.
+ - For l == 3, this tag is a legacy format that is no longer supported.
+*/
+const (
+ tagLiteral = 0x00
+ tagCopy1 = 0x01
+ tagCopy2 = 0x02
+ tagCopy4 = 0x03
+)
diff --git a/Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/snappy_test.go b/Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/snappy_test.go
new file mode 100644
index 000000000..7ba839244
--- /dev/null
+++ b/Godeps/_workspace/src/code.google.com/p/snappy-go/snappy/snappy_test.go
@@ -0,0 +1,261 @@
+// Copyright 2011 The Snappy-Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package snappy
+
+import (
+ "bytes"
+ "flag"
+ "fmt"
+ "io"
+ "io/ioutil"
+ "math/rand"
+ "net/http"
+ "os"
+ "path/filepath"
+ "strings"
+ "testing"
+)
+
+var download = flag.Bool("download", false, "If true, download any missing files before running benchmarks")
+
+func roundtrip(b, ebuf, dbuf []byte) error {
+ e, err := Encode(ebuf, b)
+ if err != nil {
+ return fmt.Errorf("encoding error: %v", err)
+ }
+ d, err := Decode(dbuf, e)
+ if err != nil {
+ return fmt.Errorf("decoding error: %v", err)
+ }
+ if !bytes.Equal(b, d) {
+ return fmt.Errorf("roundtrip mismatch:\n\twant %v\n\tgot %v", b, d)
+ }
+ return nil
+}
+
+func TestEmpty(t *testing.T) {
+ if err := roundtrip(nil, nil, nil); err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestSmallCopy(t *testing.T) {
+ for _, ebuf := range [][]byte{nil, make([]byte, 20), make([]byte, 64)} {
+ for _, dbuf := range [][]byte{nil, make([]byte, 20), make([]byte, 64)} {
+ for i := 0; i < 32; i++ {
+ s := "aaaa" + strings.Repeat("b", i) + "aaaabbbb"
+ if err := roundtrip([]byte(s), ebuf, dbuf); err != nil {
+ t.Errorf("len(ebuf)=%d, len(dbuf)=%d, i=%d: %v", len(ebuf), len(dbuf), i, err)
+ }
+ }
+ }
+ }
+}
+
+func TestSmallRand(t *testing.T) {
+ rand.Seed(27354294)
+ for n := 1; n < 20000; n += 23 {
+ b := make([]byte, n)
+ for i, _ := range b {
+ b[i] = uint8(rand.Uint32())
+ }
+ if err := roundtrip(b, nil, nil); err != nil {
+ t.Fatal(err)
+ }
+ }
+}
+
+func TestSmallRegular(t *testing.T) {
+ for n := 1; n < 20000; n += 23 {
+ b := make([]byte, n)
+ for i, _ := range b {
+ b[i] = uint8(i%10 + 'a')
+ }
+ if err := roundtrip(b, nil, nil); err != nil {
+ t.Fatal(err)
+ }
+ }
+}
+
+func benchDecode(b *testing.B, src []byte) {
+ encoded, err := Encode(nil, src)
+ if err != nil {
+ b.Fatal(err)
+ }
+ // Bandwidth is in amount of uncompressed data.
+ b.SetBytes(int64(len(src)))
+ b.ResetTimer()
+ for i := 0; i < b.N; i++ {
+ Decode(src, encoded)
+ }
+}
+
+func benchEncode(b *testing.B, src []byte) {
+ // Bandwidth is in amount of uncompressed data.
+ b.SetBytes(int64(len(src)))
+ dst := make([]byte, MaxEncodedLen(len(src)))
+ b.ResetTimer()
+ for i := 0; i < b.N; i++ {
+ Encode(dst, src)
+ }
+}
+
+func readFile(b *testing.B, filename string) []byte {
+ src, err := ioutil.ReadFile(filename)
+ if err != nil {
+ b.Fatalf("failed reading %s: %s", filename, err)
+ }
+ if len(src) == 0 {
+ b.Fatalf("%s has zero length", filename)
+ }
+ return src
+}
+
+// expand returns a slice of length n containing repeated copies of src.
+func expand(src []byte, n int) []byte {
+ dst := make([]byte, n)
+ for x := dst; len(x) > 0; {
+ i := copy(x, src)
+ x = x[i:]
+ }
+ return dst
+}
+
+func benchWords(b *testing.B, n int, decode bool) {
+ // Note: the file is OS-language dependent so the resulting values are not
+ // directly comparable for non-US-English OS installations.
+ data := expand(readFile(b, "/usr/share/dict/words"), n)
+ if decode {
+ benchDecode(b, data)
+ } else {
+ benchEncode(b, data)
+ }
+}
+
+func BenchmarkWordsDecode1e3(b *testing.B) { benchWords(b, 1e3, true) }
+func BenchmarkWordsDecode1e4(b *testing.B) { benchWords(b, 1e4, true) }
+func BenchmarkWordsDecode1e5(b *testing.B) { benchWords(b, 1e5, true) }
+func BenchmarkWordsDecode1e6(b *testing.B) { benchWords(b, 1e6, true) }
+func BenchmarkWordsEncode1e3(b *testing.B) { benchWords(b, 1e3, false) }
+func BenchmarkWordsEncode1e4(b *testing.B) { benchWords(b, 1e4, false) }
+func BenchmarkWordsEncode1e5(b *testing.B) { benchWords(b, 1e5, false) }
+func BenchmarkWordsEncode1e6(b *testing.B) { benchWords(b, 1e6, false) }
+
+// testFiles' values are copied directly from
+// https://code.google.com/p/snappy/source/browse/trunk/snappy_unittest.cc.
+// The label field is unused in snappy-go.
+var testFiles = []struct {
+ label string
+ filename string
+}{
+ {"html", "html"},
+ {"urls", "urls.10K"},
+ {"jpg", "house.jpg"},
+ {"pdf", "mapreduce-osdi-1.pdf"},
+ {"html4", "html_x_4"},
+ {"cp", "cp.html"},
+ {"c", "fields.c"},
+ {"lsp", "grammar.lsp"},
+ {"xls", "kennedy.xls"},
+ {"txt1", "alice29.txt"},
+ {"txt2", "asyoulik.txt"},
+ {"txt3", "lcet10.txt"},
+ {"txt4", "plrabn12.txt"},
+ {"bin", "ptt5"},
+ {"sum", "sum"},
+ {"man", "xargs.1"},
+ {"pb", "geo.protodata"},
+ {"gaviota", "kppkn.gtb"},
+}
+
+// The test data files are present at this canonical URL.
+const baseURL = "https://snappy.googlecode.com/svn/trunk/testdata/"
+
+func downloadTestdata(basename string) (errRet error) {
+ filename := filepath.Join("testdata", basename)
+ f, err := os.Create(filename)
+ if err != nil {
+ return fmt.Errorf("failed to create %s: %s", filename, err)
+ }
+ defer f.Close()
+ defer func() {
+ if errRet != nil {
+ os.Remove(filename)
+ }
+ }()
+ resp, err := http.Get(baseURL + basename)
+ if err != nil {
+ return fmt.Errorf("failed to download %s: %s", baseURL+basename, err)
+ }
+ defer resp.Body.Close()
+ _, err = io.Copy(f, resp.Body)
+ if err != nil {
+ return fmt.Errorf("failed to write %s: %s", filename, err)
+ }
+ return nil
+}
+
+func benchFile(b *testing.B, n int, decode bool) {
+ filename := filepath.Join("testdata", testFiles[n].filename)
+ if stat, err := os.Stat(filename); err != nil || stat.Size() == 0 {
+ if !*download {
+ b.Fatal("test data not found; skipping benchmark without the -download flag")
+ }
+ // Download the official snappy C++ implementation reference test data
+ // files for benchmarking.
+ if err := os.Mkdir("testdata", 0777); err != nil && !os.IsExist(err) {
+ b.Fatalf("failed to create testdata: %s", err)
+ }
+ for _, tf := range testFiles {
+ if err := downloadTestdata(tf.filename); err != nil {
+ b.Fatalf("failed to download testdata: %s", err)
+ }
+ }
+ }
+ data := readFile(b, filename)
+ if decode {
+ benchDecode(b, data)
+ } else {
+ benchEncode(b, data)
+ }
+}
+
+// Naming convention is kept similar to what snappy's C++ implementation uses.
+func Benchmark_UFlat0(b *testing.B) { benchFile(b, 0, true) }
+func Benchmark_UFlat1(b *testing.B) { benchFile(b, 1, true) }
+func Benchmark_UFlat2(b *testing.B) { benchFile(b, 2, true) }
+func Benchmark_UFlat3(b *testing.B) { benchFile(b, 3, true) }
+func Benchmark_UFlat4(b *testing.B) { benchFile(b, 4, true) }
+func Benchmark_UFlat5(b *testing.B) { benchFile(b, 5, true) }
+func Benchmark_UFlat6(b *testing.B) { benchFile(b, 6, true) }
+func Benchmark_UFlat7(b *testing.B) { benchFile(b, 7, true) }
+func Benchmark_UFlat8(b *testing.B) { benchFile(b, 8, true) }
+func Benchmark_UFlat9(b *testing.B) { benchFile(b, 9, true) }
+func Benchmark_UFlat10(b *testing.B) { benchFile(b, 10, true) }
+func Benchmark_UFlat11(b *testing.B) { benchFile(b, 11, true) }
+func Benchmark_UFlat12(b *testing.B) { benchFile(b, 12, true) }
+func Benchmark_UFlat13(b *testing.B) { benchFile(b, 13, true) }
+func Benchmark_UFlat14(b *testing.B) { benchFile(b, 14, true) }
+func Benchmark_UFlat15(b *testing.B) { benchFile(b, 15, true) }
+func Benchmark_UFlat16(b *testing.B) { benchFile(b, 16, true) }
+func Benchmark_UFlat17(b *testing.B) { benchFile(b, 17, true) }
+func Benchmark_ZFlat0(b *testing.B) { benchFile(b, 0, false) }
+func Benchmark_ZFlat1(b *testing.B) { benchFile(b, 1, false) }
+func Benchmark_ZFlat2(b *testing.B) { benchFile(b, 2, false) }
+func Benchmark_ZFlat3(b *testing.B) { benchFile(b, 3, false) }
+func Benchmark_ZFlat4(b *testing.B) { benchFile(b, 4, false) }
+func Benchmark_ZFlat5(b *testing.B) { benchFile(b, 5, false) }
+func Benchmark_ZFlat6(b *testing.B) { benchFile(b, 6, false) }
+func Benchmark_ZFlat7(b *testing.B) { benchFile(b, 7, false) }
+func Benchmark_ZFlat8(b *testing.B) { benchFile(b, 8, false) }
+func Benchmark_ZFlat9(b *testing.B) { benchFile(b, 9, false) }
+func Benchmark_ZFlat10(b *testing.B) { benchFile(b, 10, false) }
+func Benchmark_ZFlat11(b *testing.B) { benchFile(b, 11, false) }
+func Benchmark_ZFlat12(b *testing.B) { benchFile(b, 12, false) }
+func Benchmark_ZFlat13(b *testing.B) { benchFile(b, 13, false) }
+func Benchmark_ZFlat14(b *testing.B) { benchFile(b, 14, false) }
+func Benchmark_ZFlat15(b *testing.B) { benchFile(b, 15, false) }
+func Benchmark_ZFlat16(b *testing.B) { benchFile(b, 16, false) }
+func Benchmark_ZFlat17(b *testing.B) { benchFile(b, 17, false) }
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/.gitignore b/Godeps/_workspace/src/github.com/ethereum/serpent-go/.gitignore
new file mode 100644
index 000000000..5d02b54e5
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/.gitignore
@@ -0,0 +1,5 @@
+/tmp
+*/**/*un~
+*un~
+.DS_Store
+*/**/.DS_Store
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/.gitmodules b/Godeps/_workspace/src/github.com/ethereum/serpent-go/.gitmodules
new file mode 100644
index 000000000..054c7d628
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "serp"]
+ path = serpent
+ url = https://github.com/ethereum/serpent.git
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/README.md b/Godeps/_workspace/src/github.com/ethereum/serpent-go/README.md
new file mode 100644
index 000000000..404f1b380
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/README.md
@@ -0,0 +1,12 @@
+[serpent](https://github.com/ethereum/serpent) go bindings.
+
+## Build instructions
+
+```
+go get -d github.com/ethereum/serpent-go
+cd $GOPATH/src/github.com/ethereum/serpent-go
+git submodule init
+git submodule update
+```
+
+You're now ready to go :-)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/all.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/all.cpp
new file mode 100644
index 000000000..80032f900
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/all.cpp
@@ -0,0 +1,16 @@
+#include "serpent/bignum.cpp"
+#include "serpent/util.cpp"
+#include "serpent/tokenize.cpp"
+#include "serpent/parser.cpp"
+#include "serpent/compiler.cpp"
+#include "serpent/funcs.cpp"
+#include "serpent/lllparser.cpp"
+#include "serpent/rewriter.cpp"
+
+#include "serpent/opcodes.cpp"
+#include "serpent/optimize.cpp"
+#include "serpent/functions.cpp"
+#include "serpent/preprocess.cpp"
+#include "serpent/rewriteutils.cpp"
+
+#include "cpp/api.cpp"
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/cpp/api.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/cpp/api.cpp
new file mode 100644
index 000000000..bd2c85c7d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/cpp/api.cpp
@@ -0,0 +1,26 @@
+#include <string>
+
+#include "serpent/lllparser.h"
+#include "serpent/bignum.h"
+#include "serpent/util.h"
+#include "serpent/tokenize.h"
+#include "serpent/parser.h"
+#include "serpent/compiler.h"
+
+#include "cpp/api.h"
+
+const char *compileGo(char *code, int *err)
+{
+ try {
+ std::string c = binToHex(compile(std::string(code)));
+
+ return c.c_str();
+ }
+ catch(std::string &error) {
+ *err = 1;
+ return error.c_str();
+ }
+ catch(...) {
+ return "Unknown error";
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/cpp/api.h b/Godeps/_workspace/src/github.com/ethereum/serpent-go/cpp/api.h
new file mode 100644
index 000000000..235b5eb4a
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/cpp/api.h
@@ -0,0 +1,14 @@
+#ifndef CPP_API_H
+#define CPP_API_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+const char *compileGo(char *code, int *err);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent.go b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent.go
new file mode 100644
index 000000000..39b60eed7
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent.go
@@ -0,0 +1,27 @@
+package serpent
+
+// #cgo CXXFLAGS: -I. -Ilangs/ -std=c++0x -Wall -fno-strict-aliasing
+// #cgo LDFLAGS: -lstdc++
+//
+// #include "cpp/api.h"
+//
+import "C"
+
+import (
+ "encoding/hex"
+ "errors"
+ "unsafe"
+)
+
+func Compile(str string) ([]byte, error) {
+ var err C.int
+ out := C.GoString(C.compileGo(C.CString(str), (*C.int)(unsafe.Pointer(&err))))
+
+ if err == C.int(1) {
+ return nil, errors.New(out)
+ }
+
+ bytes, _ := hex.DecodeString(out)
+
+ return bytes, nil
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/.gitignore b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/.gitignore
new file mode 100644
index 000000000..72b65e446
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/.gitignore
@@ -0,0 +1,12 @@
+[._]*.s[a-w][a-z]
+[._]s[a-w][a-z]
+*.un~
+Session.vim
+.netrwhist
+*~
+*.o
+serpent
+libserpent.a
+pyserpent.so
+dist
+*.egg-info
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/MANIFEST.in b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/MANIFEST.in
new file mode 100644
index 000000000..5f5766ced
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/MANIFEST.in
@@ -0,0 +1,5 @@
+include *.cpp
+include *.h
+include *py
+include README.md
+include Makefile
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/Makefile b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/Makefile
new file mode 100644
index 000000000..28c38728e
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/Makefile
@@ -0,0 +1,55 @@
+PLATFORM_OPTS =
+PYTHON = /usr/include/python2.7
+CXXFLAGS = -fPIC
+# -g3 -O0
+BOOST_INC = /usr/include
+BOOST_LIB = /usr/lib
+TARGET = pyserpent
+COMMON_OBJS = bignum.o util.o tokenize.o lllparser.o parser.o opcodes.o optimize.o functions.o rewriteutils.o preprocess.o rewriter.o compiler.o funcs.o
+HEADERS = bignum.h util.h tokenize.h lllparser.h parser.h opcodes.h functions.h optimize.h rewriteutils.h preprocess.h rewriter.h compiler.h funcs.h
+PYTHON_VERSION = 2.7
+
+serpent : serpentc lib
+
+lib:
+ ar rvs libserpent.a $(COMMON_OBJS)
+ g++ $(CXXFLAGS) -shared $(COMMON_OBJS) -o libserpent.so
+
+serpentc: $(COMMON_OBJS) cmdline.o
+ rm -rf serpent
+ g++ -Wall $(COMMON_OBJS) cmdline.o -o serpent
+
+bignum.o : bignum.cpp bignum.h
+
+opcodes.o : opcodes.cpp opcodes.h
+
+util.o : util.cpp util.h bignum.o
+
+tokenize.o : tokenize.cpp tokenize.h util.o
+
+lllparser.o : lllparser.cpp lllparser.h tokenize.o util.o
+
+parser.o : parser.cpp parser.h tokenize.o util.o
+
+rewriter.o : rewriter.cpp rewriter.h lllparser.o util.o rewriteutils.o preprocess.o opcodes.o functions.o
+
+preprocessor.o: rewriteutils.o functions.o
+
+compiler.o : compiler.cpp compiler.h util.o
+
+funcs.o : funcs.cpp funcs.h
+
+cmdline.o: cmdline.cpp
+
+pyext.o: pyext.cpp
+
+clean:
+ rm -f serpent *\.o libserpent.a libserpent.so
+
+install:
+ cp serpent /usr/local/bin
+ cp libserpent.a /usr/local/lib
+ cp libserpent.so /usr/local/lib
+ rm -rf /usr/local/include/libserpent
+ mkdir -p /usr/local/include/libserpent
+ cp $(HEADERS) /usr/local/include/libserpent
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/README.md b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/README.md
new file mode 100644
index 000000000..03dfcc15f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/README.md
@@ -0,0 +1,3 @@
+Installation:
+
+```make && sudo make install```
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/bignum.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/bignum.cpp
new file mode 100644
index 000000000..108b1eb04
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/bignum.cpp
@@ -0,0 +1,112 @@
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "bignum.h"
+
+//Integer to string conversion
+std::string unsignedToDecimal(unsigned branch) {
+ if (branch < 10) return nums.substr(branch, 1);
+ else return unsignedToDecimal(branch / 10) + nums.substr(branch % 10,1);
+}
+
+//Add two strings representing decimal values
+std::string decimalAdd(std::string a, std::string b) {
+ std::string o = a;
+ while (b.length() < a.length()) b = "0" + b;
+ while (o.length() < b.length()) o = "0" + o;
+ bool carry = false;
+ for (int i = o.length() - 1; i >= 0; i--) {
+ o[i] = o[i] + b[i] - '0';
+ if (carry) o[i]++;
+ if (o[i] > '9') {
+ o[i] -= 10;
+ carry = true;
+ }
+ else carry = false;
+ }
+ if (carry) o = "1" + o;
+ return o;
+}
+
+//Helper function for decimalMul
+std::string decimalDigitMul(std::string a, int dig) {
+ if (dig == 0) return "0";
+ else return decimalAdd(a, decimalDigitMul(a, dig - 1));
+}
+
+//Multiply two strings representing decimal values
+std::string decimalMul(std::string a, std::string b) {
+ std::string o = "0";
+ for (unsigned i = 0; i < b.length(); i++) {
+ std::string n = decimalDigitMul(a, b[i] - '0');
+ if (n != "0") {
+ for (unsigned j = i + 1; j < b.length(); j++) n += "0";
+ }
+ o = decimalAdd(o, n);
+ }
+ return o;
+}
+
+//Modexp
+std::string decimalModExp(std::string b, std::string e, std::string m) {
+ if (e == "0") return "1";
+ else if (e == "1") return b;
+ else if (decimalMod(e, "2") == "0") {
+ std::string o = decimalModExp(b, decimalDiv(e, "2"), m);
+ return decimalMod(decimalMul(o, o), m);
+ }
+ else {
+ std::string o = decimalModExp(b, decimalDiv(e, "2"), m);
+ return decimalMod(decimalMul(decimalMul(o, o), b), m);
+ }
+}
+
+//Is a greater than b? Flag allows equality
+bool decimalGt(std::string a, std::string b, bool eqAllowed) {
+ if (a == b) return eqAllowed;
+ return (a.length() > b.length()) || (a.length() >= b.length() && a > b);
+}
+
+//Subtract the two strings representing decimal values
+std::string decimalSub(std::string a, std::string b) {
+ if (b == "0") return a;
+ if (b == a) return "0";
+ while (b.length() < a.length()) b = "0" + b;
+ std::string c = b;
+ for (unsigned i = 0; i < c.length(); i++) c[i] = '0' + ('9' - c[i]);
+ std::string o = decimalAdd(decimalAdd(a, c).substr(1), "1");
+ while (o.size() > 1 && o[0] == '0') o = o.substr(1);
+ return o;
+}
+
+//Divide the two strings representing decimal values
+std::string decimalDiv(std::string a, std::string b) {
+ std::string c = b;
+ if (decimalGt(c, a)) return "0";
+ int zeroes = -1;
+ while (decimalGt(a, c, true)) {
+ zeroes += 1;
+ c = c + "0";
+ }
+ c = c.substr(0, c.size() - 1);
+ std::string quot = "0";
+ while (decimalGt(a, c, true)) {
+ a = decimalSub(a, c);
+ quot = decimalAdd(quot, "1");
+ }
+ for (int i = 0; i < zeroes; i++) quot += "0";
+ return decimalAdd(quot, decimalDiv(a, b));
+}
+
+//Modulo the two strings representing decimal values
+std::string decimalMod(std::string a, std::string b) {
+ return decimalSub(a, decimalMul(decimalDiv(a, b), b));
+}
+
+//String to int conversion
+unsigned decimalToUnsigned(std::string a) {
+ if (a.size() == 0) return 0;
+ else return (a[a.size() - 1] - '0')
+ + decimalToUnsigned(a.substr(0,a.size()-1)) * 10;
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/bignum.h b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/bignum.h
new file mode 100644
index 000000000..99571acd2
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/bignum.h
@@ -0,0 +1,41 @@
+#ifndef ETHSERP_BIGNUM
+#define ETHSERP_BIGNUM
+
+const std::string nums = "0123456789";
+
+const std::string tt256 =
+"115792089237316195423570985008687907853269984665640564039457584007913129639936"
+;
+
+const std::string tt256m1 =
+"115792089237316195423570985008687907853269984665640564039457584007913129639935"
+;
+
+const std::string tt255 =
+"57896044618658097711785492504343953926634992332820282019728792003956564819968";
+
+const std::string tt176 =
+"95780971304118053647396689196894323976171195136475136";
+
+std::string unsignedToDecimal(unsigned branch);
+
+std::string decimalAdd(std::string a, std::string b);
+
+std::string decimalMul(std::string a, std::string b);
+
+std::string decimalSub(std::string a, std::string b);
+
+std::string decimalDiv(std::string a, std::string b);
+
+std::string decimalMod(std::string a, std::string b);
+
+std::string decimalModExp(std::string b, std::string e, std::string m);
+
+bool decimalGt(std::string a, std::string b, bool eqAllowed=false);
+
+unsigned decimalToUnsigned(std::string a);
+
+#define utd unsignedToDecimal
+#define dtu decimalToUnsigned
+
+#endif
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/cmdline.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/cmdline.cpp
new file mode 100644
index 000000000..fe2560830
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/cmdline.cpp
@@ -0,0 +1,132 @@
+#include <stdio.h>
+#include <string>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "funcs.h"
+
+int main(int argv, char** argc) {
+ if (argv == 1) {
+ std::cerr << "Must provide a command and arguments! Try parse, rewrite, compile, assemble\n";
+ return 0;
+ }
+ if (argv == 2 && std::string(argc[1]) == "--help" || std::string(argc[1]) == "-h" ) {
+ std::cout << argc[1] << "\n";
+
+ std::cout << "serpent command input\n";
+ std::cout << "where input -s for from stdin, a file, or interpreted as serpent code if does not exist as file.";
+ std::cout << "where command: \n";
+ std::cout << " parse: Just parses and returns s-expression code.\n";
+ std::cout << " rewrite: Parse, use rewrite rules print s-expressions of result.\n";
+ std::cout << " compile: Return resulting compiled EVM code in hex.\n";
+ std::cout << " assemble: Return result from step before compilation.\n";
+ return 0;
+ }
+
+ std::string flag = "";
+ std::string command = argc[1];
+ std::string input;
+ std::string secondInput;
+ if (std::string(argc[1]) == "-s") {
+ flag = command.substr(1);
+ command = argc[2];
+ input = "";
+ std::string line;
+ while (std::getline(std::cin, line)) {
+ input += line + "\n";
+ }
+ secondInput = argv == 3 ? "" : argc[3];
+ }
+ else {
+ if (argv == 2) {
+ std::cerr << "Not enough arguments for serpent cmdline\n";
+ throw(0);
+ }
+ input = argc[2];
+ secondInput = argv == 3 ? "" : argc[3];
+ }
+ bool haveSec = secondInput.length() > 0;
+ if (command == "parse" || command == "parse_serpent") {
+ std::cout << printAST(parseSerpent(input), haveSec) << "\n";
+ }
+ else if (command == "rewrite") {
+ std::cout << printAST(rewrite(parseLLL(input, true)), haveSec) << "\n";
+ }
+ else if (command == "compile_to_lll") {
+ std::cout << printAST(compileToLLL(input), haveSec) << "\n";
+ }
+ else if (command == "rewrite_chunk") {
+ std::cout << printAST(rewriteChunk(parseLLL(input, true)), haveSec) << "\n";
+ }
+ else if (command == "compile_chunk_to_lll") {
+ std::cout << printAST(compileChunkToLLL(input), haveSec) << "\n";
+ }
+ else if (command == "build_fragtree") {
+ std::cout << printAST(buildFragmentTree(parseLLL(input, true))) << "\n";
+ }
+ else if (command == "compile_lll") {
+ std::cout << binToHex(compileLLL(parseLLL(input, true))) << "\n";
+ }
+ else if (command == "dereference") {
+ std::cout << printAST(dereference(parseLLL(input, true)), haveSec) <<"\n";
+ }
+ else if (command == "pretty_assemble") {
+ std::cout << printTokens(prettyAssemble(parseLLL(input, true))) <<"\n";
+ }
+ else if (command == "pretty_compile_lll") {
+ std::cout << printTokens(prettyCompileLLL(parseLLL(input, true))) << "\n";
+ }
+ else if (command == "pretty_compile") {
+ std::cout << printTokens(prettyCompile(input)) << "\n";
+ }
+ else if (command == "pretty_compile_chunk") {
+ std::cout << printTokens(prettyCompileChunk(input)) << "\n";
+ }
+ else if (command == "assemble") {
+ std::cout << assemble(parseLLL(input, true)) << "\n";
+ }
+ else if (command == "serialize") {
+ std::cout << binToHex(serialize(tokenize(input, Metadata(), false))) << "\n";
+ }
+ else if (command == "flatten") {
+ std::cout << printTokens(flatten(parseLLL(input, true))) << "\n";
+ }
+ else if (command == "deserialize") {
+ std::cout << printTokens(deserialize(hexToBin(input))) << "\n";
+ }
+ else if (command == "compile") {
+ std::cout << binToHex(compile(input)) << "\n";
+ }
+ else if (command == "compile_chunk") {
+ std::cout << binToHex(compileChunk(input)) << "\n";
+ }
+ else if (command == "encode_datalist") {
+ std::vector<Node> tokens = tokenize(input);
+ std::vector<std::string> o;
+ for (int i = 0; i < (int)tokens.size(); i++) {
+ o.push_back(tokens[i].val);
+ }
+ std::cout << binToHex(encodeDatalist(o)) << "\n";
+ }
+ else if (command == "decode_datalist") {
+ std::vector<std::string> o = decodeDatalist(hexToBin(input));
+ std::vector<Node> tokens;
+ for (int i = 0; i < (int)o.size(); i++)
+ tokens.push_back(token(o[i]));
+ std::cout << printTokens(tokens) << "\n";
+ }
+ else if (command == "tokenize") {
+ std::cout << printTokens(tokenize(input));
+ }
+ else if (command == "biject") {
+ if (argv == 3)
+ std::cerr << "Not enough arguments for biject\n";
+ int pos = decimalToUnsigned(secondInput);
+ std::vector<Node> n = prettyCompile(input);
+ if (pos >= (int)n.size())
+ std::cerr << "Code position too high\n";
+ Metadata m = n[pos].metadata;
+ std::cout << "Opcode: " << n[pos].val << ", file: " << m.file <<
+ ", line: " << m.ln << ", char: " << m.ch << "\n";
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/compiler.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/compiler.cpp
new file mode 100644
index 000000000..b9281dcbc
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/compiler.cpp
@@ -0,0 +1,554 @@
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+#include "bignum.h"
+#include "opcodes.h"
+
+struct programAux {
+ std::map<std::string, std::string> vars;
+ int nextVarMem;
+ bool allocUsed;
+ bool calldataUsed;
+ int step;
+ int labelLength;
+};
+
+struct programVerticalAux {
+ int height;
+ std::string innerScopeName;
+ std::map<std::string, int> dupvars;
+ std::map<std::string, int> funvars;
+ std::vector<mss> scopes;
+};
+
+struct programData {
+ programAux aux;
+ Node code;
+ int outs;
+};
+
+programAux Aux() {
+ programAux o;
+ o.allocUsed = false;
+ o.calldataUsed = false;
+ o.step = 0;
+ o.nextVarMem = 32;
+ return o;
+}
+
+programVerticalAux verticalAux() {
+ programVerticalAux o;
+ o.height = 0;
+ o.dupvars = std::map<std::string, int>();
+ o.funvars = std::map<std::string, int>();
+ o.scopes = std::vector<mss>();
+ return o;
+}
+
+programData pd(programAux aux = Aux(), Node code=token("_"), int outs=0) {
+ programData o;
+ o.aux = aux;
+ o.code = code;
+ o.outs = outs;
+ return o;
+}
+
+Node multiToken(Node nodes[], int len, Metadata met) {
+ std::vector<Node> out;
+ for (int i = 0; i < len; i++) {
+ out.push_back(nodes[i]);
+ }
+ return astnode("_", out, met);
+}
+
+Node finalize(programData c);
+
+Node popwrap(Node node) {
+ Node nodelist[] = {
+ node,
+ token("POP", node.metadata)
+ };
+ return multiToken(nodelist, 2, node.metadata);
+}
+
+// Grabs variables
+mss getVariables(Node node, mss cur=mss()) {
+ Metadata m = node.metadata;
+ // Tokens don't contain any variables
+ if (node.type == TOKEN)
+ return cur;
+ // Don't descend into call fragments
+ else if (node.val == "lll")
+ return getVariables(node.args[1], cur);
+ // At global scope get/set/ref also declare
+ else if (node.val == "get" || node.val == "set" || node.val == "ref") {
+ if (node.args[0].type != TOKEN)
+ err("Variable name must be simple token,"
+ " not complex expression!", m);
+ if (!cur.count(node.args[0].val)) {
+ cur[node.args[0].val] = utd(cur.size() * 32 + 32);
+ //std::cerr << node.args[0].val << " " << cur[node.args[0].val] << "\n";
+ }
+ }
+ // Recursively process children
+ for (unsigned i = 0; i < node.args.size(); i++) {
+ cur = getVariables(node.args[i], cur);
+ }
+ return cur;
+}
+
+// Turns LLL tree into tree of code fragments
+programData opcodeify(Node node,
+ programAux aux=Aux(),
+ programVerticalAux vaux=verticalAux()) {
+ std::string symb = "_"+mkUniqueToken();
+ Metadata m = node.metadata;
+ // Get variables
+ if (!aux.vars.size()) {
+ aux.vars = getVariables(node);
+ aux.nextVarMem = aux.vars.size() * 32 + 32;
+ }
+ // Numbers
+ if (node.type == TOKEN) {
+ return pd(aux, nodeToNumeric(node), 1);
+ }
+ else if (node.val == "ref" || node.val == "get" || node.val == "set") {
+ std::string varname = node.args[0].val;
+ // Determine reference to variable
+ Node varNode = tkn(aux.vars[varname], m);
+ //std::cerr << varname << " " << printSimple(varNode) << "\n";
+ // Set variable
+ if (node.val == "set") {
+ programData sub = opcodeify(node.args[1], aux, vaux);
+ if (!sub.outs)
+ err("Value to set variable must have nonzero arity!", m);
+ // What if we are setting a stack variable?
+ if (vaux.dupvars.count(node.args[0].val)) {
+ int h = vaux.height - vaux.dupvars[node.args[0].val];
+ if (h > 16) err("Too deep for stack variable (max 16)", m);
+ Node nodelist[] = {
+ sub.code,
+ token("SWAP"+unsignedToDecimal(h), m),
+ token("POP", m)
+ };
+ return pd(sub.aux, multiToken(nodelist, 3, m), 0);
+ }
+ // Setting a memory variable
+ else {
+ Node nodelist[] = {
+ sub.code,
+ varNode,
+ token("MSTORE", m),
+ };
+ return pd(sub.aux, multiToken(nodelist, 3, m), 0);
+ }
+ }
+ // Get variable
+ else if (node.val == "get") {
+ // Getting a stack variable
+ if (vaux.dupvars.count(node.args[0].val)) {
+ int h = vaux.height - vaux.dupvars[node.args[0].val];
+ if (h > 16) err("Too deep for stack variable (max 16)", m);
+ return pd(aux, token("DUP"+unsignedToDecimal(h)), 1);
+ }
+ // Getting a memory variable
+ else {
+ Node nodelist[] =
+ { varNode, token("MLOAD", m) };
+ return pd(aux, multiToken(nodelist, 2, m), 1);
+ }
+ }
+ // Refer variable
+ else if (node.val == "ref") {
+ if (vaux.dupvars.count(node.args[0].val))
+ err("Cannot ref stack variable!", m);
+ return pd(aux, varNode, 1);
+ }
+ }
+ // Comments do nothing
+ else if (node.val == "comment") {
+ Node nodelist[] = { };
+ return pd(aux, multiToken(nodelist, 0, m), 0);
+ }
+ // Custom operation sequence
+ // eg. (ops bytez id msize swap1 msize add 0 swap1 mstore) == alloc
+ if (node.val == "ops") {
+ std::vector<Node> subs2;
+ int depth = 0;
+ for (unsigned i = 0; i < node.args.size(); i++) {
+ std::string op = upperCase(node.args[i].val);
+ if (node.args[i].type == ASTNODE || opinputs(op) == -1) {
+ programVerticalAux vaux2 = vaux;
+ vaux2.height = vaux.height - i - 1 + node.args.size();
+ programData sub = opcodeify(node.args[i], aux, vaux2);
+ aux = sub.aux;
+ depth += sub.outs;
+ subs2.push_back(sub.code);
+ }
+ else {
+ subs2.push_back(token(op, m));
+ depth += opoutputs(op) - opinputs(op);
+ }
+ }
+ if (depth < 0 || depth > 1) err("Stack depth mismatch", m);
+ return pd(aux, astnode("_", subs2, m), 0);
+ }
+ // Code blocks
+ if (node.val == "lll" && node.args.size() == 2) {
+ if (node.args[1].val != "0") aux.allocUsed = true;
+ std::vector<Node> o;
+ o.push_back(finalize(opcodeify(node.args[0])));
+ programData sub = opcodeify(node.args[1], aux, vaux);
+ Node code = astnode("____CODE", o, m);
+ Node nodelist[] = {
+ token("$begincode"+symb+".endcode"+symb, m), token("DUP1", m),
+ token("$begincode"+symb, m), sub.code, token("CODECOPY", m),
+ token("$endcode"+symb, m), token("JUMP", m),
+ token("~begincode"+symb, m), code,
+ token("~endcode"+symb, m), token("JUMPDEST", m)
+ };
+ return pd(sub.aux, multiToken(nodelist, 11, m), 1);
+ }
+ // Stack variables
+ if (node.val == "with") {
+ programData initial = opcodeify(node.args[1], aux, vaux);
+ programVerticalAux vaux2 = vaux;
+ vaux2.dupvars[node.args[0].val] = vaux.height;
+ vaux2.height += 1;
+ if (!initial.outs)
+ err("Initial variable value must have nonzero arity!", m);
+ programData sub = opcodeify(node.args[2], initial.aux, vaux2);
+ Node nodelist[] = {
+ initial.code,
+ sub.code
+ };
+ programData o = pd(sub.aux, multiToken(nodelist, 2, m), sub.outs);
+ if (sub.outs)
+ o.code.args.push_back(token("SWAP1", m));
+ o.code.args.push_back(token("POP", m));
+ return o;
+ }
+ // Seq of multiple statements
+ if (node.val == "seq") {
+ std::vector<Node> children;
+ int lastOut = 0;
+ for (unsigned i = 0; i < node.args.size(); i++) {
+ programData sub = opcodeify(node.args[i], aux, vaux);
+ aux = sub.aux;
+ if (sub.outs == 1) {
+ if (i < node.args.size() - 1) sub.code = popwrap(sub.code);
+ else lastOut = 1;
+ }
+ children.push_back(sub.code);
+ }
+ return pd(aux, astnode("_", children, m), lastOut);
+ }
+ // 2-part conditional (if gets rewritten to unless in rewrites)
+ else if (node.val == "unless" && node.args.size() == 2) {
+ programData cond = opcodeify(node.args[0], aux, vaux);
+ programData action = opcodeify(node.args[1], cond.aux, vaux);
+ aux = action.aux;
+ if (!cond.outs) err("Condition of if/unless statement has arity 0", m);
+ if (action.outs) action.code = popwrap(action.code);
+ Node nodelist[] = {
+ cond.code,
+ token("$endif"+symb, m), token("JUMPI", m),
+ action.code,
+ token("~endif"+symb, m), token("JUMPDEST", m)
+ };
+ return pd(aux, multiToken(nodelist, 6, m), 0);
+ }
+ // 3-part conditional
+ else if (node.val == "if" && node.args.size() == 3) {
+ programData ifd = opcodeify(node.args[0], aux, vaux);
+ programData thend = opcodeify(node.args[1], ifd.aux, vaux);
+ programData elsed = opcodeify(node.args[2], thend.aux, vaux);
+ aux = elsed.aux;
+ if (!ifd.outs)
+ err("Condition of if/unless statement has arity 0", m);
+ // Handle cases where one conditional outputs something
+ // and the other does not
+ int outs = (thend.outs && elsed.outs) ? 1 : 0;
+ if (thend.outs > outs) thend.code = popwrap(thend.code);
+ if (elsed.outs > outs) elsed.code = popwrap(elsed.code);
+ Node nodelist[] = {
+ ifd.code,
+ token("ISZERO", m),
+ token("$else"+symb, m), token("JUMPI", m),
+ thend.code,
+ token("$endif"+symb, m), token("JUMP", m),
+ token("~else"+symb, m), token("JUMPDEST", m),
+ elsed.code,
+ token("~endif"+symb, m), token("JUMPDEST", m)
+ };
+ return pd(aux, multiToken(nodelist, 12, m), outs);
+ }
+ // While (rewritten to this in rewrites)
+ else if (node.val == "until") {
+ programData cond = opcodeify(node.args[0], aux, vaux);
+ programData action = opcodeify(node.args[1], cond.aux, vaux);
+ aux = action.aux;
+ if (!cond.outs)
+ err("Condition of while/until loop has arity 0", m);
+ if (action.outs) action.code = popwrap(action.code);
+ Node nodelist[] = {
+ token("~beg"+symb, m), token("JUMPDEST", m),
+ cond.code,
+ token("$end"+symb, m), token("JUMPI", m),
+ action.code,
+ token("$beg"+symb, m), token("JUMP", m),
+ token("~end"+symb, m), token("JUMPDEST", m),
+ };
+ return pd(aux, multiToken(nodelist, 10, m));
+ }
+ // Memory allocations
+ else if (node.val == "alloc") {
+ programData bytez = opcodeify(node.args[0], aux, vaux);
+ aux = bytez.aux;
+ if (!bytez.outs)
+ err("Alloc input has arity 0", m);
+ aux.allocUsed = true;
+ Node nodelist[] = {
+ bytez.code,
+ token("MSIZE", m), token("SWAP1", m), token("MSIZE", m),
+ token("ADD", m),
+ token("0", m), token("SWAP1", m), token("MSTORE", m)
+ };
+ return pd(aux, multiToken(nodelist, 8, m), 1);
+ }
+ // All other functions/operators
+ else {
+ std::vector<Node> subs2;
+ int depth = opinputs(upperCase(node.val));
+ if (depth == -1)
+ err("Not a function or opcode: "+node.val, m);
+ if ((int)node.args.size() != depth)
+ err("Invalid arity for "+node.val, m);
+ for (int i = node.args.size() - 1; i >= 0; i--) {
+ programVerticalAux vaux2 = vaux;
+ vaux2.height = vaux.height - i - 1 + node.args.size();
+ programData sub = opcodeify(node.args[i], aux, vaux2);
+ aux = sub.aux;
+ if (!sub.outs)
+ err("Input "+unsignedToDecimal(i)+" has arity 0", sub.code.metadata);
+ subs2.push_back(sub.code);
+ }
+ subs2.push_back(token(upperCase(node.val), m));
+ int outdepth = opoutputs(upperCase(node.val));
+ return pd(aux, astnode("_", subs2, m), outdepth);
+ }
+}
+
+// Adds necessary wrappers to a program
+Node finalize(programData c) {
+ std::vector<Node> bottom;
+ Metadata m = c.code.metadata;
+ // If we are using both alloc and variables, we need to pre-zfill
+ // some memory
+ if ((c.aux.allocUsed || c.aux.calldataUsed) && c.aux.vars.size() > 0) {
+ Node nodelist[] = {
+ token("0", m),
+ token(unsignedToDecimal(c.aux.nextVarMem - 1)),
+ token("MSTORE8", m)
+ };
+ bottom.push_back(multiToken(nodelist, 3, m));
+ }
+ // The actual code
+ bottom.push_back(c.code);
+ return astnode("_", bottom, m);
+}
+
+//LLL -> code fragment tree
+Node buildFragmentTree(Node node) {
+ return finalize(opcodeify(node));
+}
+
+
+// Builds a dictionary mapping labels to variable names
+programAux buildDict(Node program, programAux aux, int labelLength) {
+ Metadata m = program.metadata;
+ // Token
+ if (program.type == TOKEN) {
+ if (isNumberLike(program)) {
+ aux.step += 1 + toByteArr(program.val, m).size();
+ }
+ else if (program.val[0] == '~') {
+ aux.vars[program.val.substr(1)] = unsignedToDecimal(aux.step);
+ }
+ else if (program.val[0] == '$') {
+ aux.step += labelLength + 1;
+ }
+ else aux.step += 1;
+ }
+ // A sub-program (ie. LLL)
+ else if (program.val == "____CODE") {
+ programAux auks = Aux();
+ for (unsigned i = 0; i < program.args.size(); i++) {
+ auks = buildDict(program.args[i], auks, labelLength);
+ }
+ for (std::map<std::string,std::string>::iterator it=auks.vars.begin();
+ it != auks.vars.end();
+ it++) {
+ aux.vars[(*it).first] = (*it).second;
+ }
+ aux.step += auks.step;
+ }
+ // Normal sub-block
+ else {
+ for (unsigned i = 0; i < program.args.size(); i++) {
+ aux = buildDict(program.args[i], aux, labelLength);
+ }
+ }
+ return aux;
+}
+
+// Applies that dictionary
+Node substDict(Node program, programAux aux, int labelLength) {
+ Metadata m = program.metadata;
+ std::vector<Node> out;
+ std::vector<Node> inner;
+ if (program.type == TOKEN) {
+ if (program.val[0] == '$') {
+ std::string tokStr = "PUSH"+unsignedToDecimal(labelLength);
+ out.push_back(token(tokStr, m));
+ int dotLoc = program.val.find('.');
+ if (dotLoc == -1) {
+ std::string val = aux.vars[program.val.substr(1)];
+ inner = toByteArr(val, m, labelLength);
+ }
+ else {
+ std::string start = aux.vars[program.val.substr(1, dotLoc-1)],
+ end = aux.vars[program.val.substr(dotLoc + 1)],
+ dist = decimalSub(end, start);
+ inner = toByteArr(dist, m, labelLength);
+ }
+ out.push_back(astnode("_", inner, m));
+ }
+ else if (program.val[0] == '~') { }
+ else if (isNumberLike(program)) {
+ inner = toByteArr(program.val, m);
+ out.push_back(token("PUSH"+unsignedToDecimal(inner.size())));
+ out.push_back(astnode("_", inner, m));
+ }
+ else return program;
+ }
+ else {
+ for (unsigned i = 0; i < program.args.size(); i++) {
+ Node n = substDict(program.args[i], aux, labelLength);
+ if (n.type == TOKEN || n.args.size()) out.push_back(n);
+ }
+ }
+ return astnode("_", out, m);
+}
+
+// Compiled fragtree -> compiled fragtree without labels
+Node dereference(Node program) {
+ int sz = treeSize(program) * 4;
+ int labelLength = 1;
+ while (sz >= 256) { labelLength += 1; sz /= 256; }
+ programAux aux = buildDict(program, Aux(), labelLength);
+ return substDict(program, aux, labelLength);
+}
+
+// Dereferenced fragtree -> opcodes
+std::vector<Node> flatten(Node derefed) {
+ std::vector<Node> o;
+ if (derefed.type == TOKEN) {
+ o.push_back(derefed);
+ }
+ else {
+ for (unsigned i = 0; i < derefed.args.size(); i++) {
+ std::vector<Node> oprime = flatten(derefed.args[i]);
+ for (unsigned j = 0; j < oprime.size(); j++) o.push_back(oprime[j]);
+ }
+ }
+ return o;
+}
+
+// Opcodes -> bin
+std::string serialize(std::vector<Node> codons) {
+ std::string o;
+ for (unsigned i = 0; i < codons.size(); i++) {
+ int v;
+ if (isNumberLike(codons[i])) {
+ v = decimalToUnsigned(codons[i].val);
+ }
+ else if (codons[i].val.substr(0,4) == "PUSH") {
+ v = 95 + decimalToUnsigned(codons[i].val.substr(4));
+ }
+ else {
+ v = opcode(codons[i].val);
+ }
+ o += (char)v;
+ }
+ return o;
+}
+
+// Bin -> opcodes
+std::vector<Node> deserialize(std::string ser) {
+ std::vector<Node> o;
+ int backCount = 0;
+ for (unsigned i = 0; i < ser.length(); i++) {
+ unsigned char v = (unsigned char)ser[i];
+ std::string oper = op((int)v);
+ if (oper != "" && backCount <= 0) o.push_back(token(oper));
+ else if (v >= 96 && v < 128 && backCount <= 0) {
+ o.push_back(token("PUSH"+unsignedToDecimal(v - 95)));
+ }
+ else o.push_back(token(unsignedToDecimal(v)));
+ if (v >= 96 && v < 128 && backCount <= 0) {
+ backCount = v - 95;
+ }
+ else backCount--;
+ }
+ return o;
+}
+
+// Fragtree -> bin
+std::string assemble(Node fragTree) {
+ return serialize(flatten(dereference(fragTree)));
+}
+
+// Fragtree -> tokens
+std::vector<Node> prettyAssemble(Node fragTree) {
+ return flatten(dereference(fragTree));
+}
+
+// LLL -> bin
+std::string compileLLL(Node program) {
+ return assemble(buildFragmentTree(program));
+}
+
+// LLL -> tokens
+std::vector<Node> prettyCompileLLL(Node program) {
+ return prettyAssemble(buildFragmentTree(program));
+}
+
+// Converts a list of integer values to binary transaction data
+std::string encodeDatalist(std::vector<std::string> vals) {
+ std::string o;
+ for (unsigned i = 0; i < vals.size(); i++) {
+ std::vector<Node> n = toByteArr(strToNumeric(vals[i]), Metadata(), 32);
+ for (unsigned j = 0; j < n.size(); j++) {
+ int v = decimalToUnsigned(n[j].val);
+ o += (char)v;
+ }
+ }
+ return o;
+}
+
+// Converts binary transaction data into a list of integer values
+std::vector<std::string> decodeDatalist(std::string ser) {
+ std::vector<std::string> out;
+ for (unsigned i = 0; i < ser.length(); i+= 32) {
+ std::string o = "0";
+ for (unsigned j = i; j < i + 32; j++) {
+ int vj = (int)(unsigned char)ser[j];
+ o = decimalAdd(decimalMul(o, "256"), unsignedToDecimal(vj));
+ }
+ out.push_back(o);
+ }
+ return out;
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/compiler.h b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/compiler.h
new file mode 100644
index 000000000..aecaa3718
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/compiler.h
@@ -0,0 +1,43 @@
+#ifndef ETHSERP_COMPILER
+#define ETHSERP_COMPILER
+
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+
+// Compiled fragtree -> compiled fragtree without labels
+Node dereference(Node program);
+
+// LLL -> fragtree
+Node buildFragmentTree(Node program);
+
+// Dereferenced fragtree -> opcodes
+std::vector<Node> flatten(Node derefed);
+
+// opcodes -> bin
+std::string serialize(std::vector<Node> codons);
+
+// Fragtree -> bin
+std::string assemble(Node fragTree);
+
+// Fragtree -> opcodes
+std::vector<Node> prettyAssemble(Node fragTree);
+
+// LLL -> bin
+std::string compileLLL(Node program);
+
+// LLL -> opcodes
+std::vector<Node> prettyCompileLLL(Node program);
+
+// bin -> opcodes
+std::vector<Node> deserialize(std::string ser);
+
+// Converts a list of integer values to binary transaction data
+std::string encodeDatalist(std::vector<std::string> vals);
+
+// Converts binary transaction data into a list of integer values
+std::vector<std::string> decodeDatalist(std::string ser);
+
+#endif
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/example.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/example.cpp
new file mode 100644
index 000000000..1ce2590d0
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/example.cpp
@@ -0,0 +1,11 @@
+#include <libserpent/funcs.h>
+#include <libserpent/bignum.h>
+#include <iostream>
+
+using namespace std;
+
+int main() {
+ cout << printAST(compileToLLL(get_file_contents("examples/namecoin.se"))) << "\n";
+ cout << decimalSub("10234", "10234") << "\n";
+ cout << decimalSub("10234", "10233") << "\n";
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/collatz.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/collatz.se
new file mode 100644
index 000000000..148b47b59
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/collatz.se
@@ -0,0 +1,11 @@
+x = msg.data[0]
+steps = 0
+
+while x > 1:
+ steps += 1
+ if (x % 2) == 0:
+ x /= 2
+ else:
+ x = 3 * x + 1
+
+return(steps)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/counterparty/counterparty.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/counterparty/counterparty.se
new file mode 100644
index 000000000..abec0d102
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/counterparty/counterparty.se
@@ -0,0 +1,274 @@
+# Ethereum forks Counterparty in 340 lines of serpent
+# Not yet tested
+
+# assets[i] = a registered asset, assets[i].holders[j] = former or current i-holder
+data assets[2^50](creator, name, calldate, callprice, dividend_paid, holders[2^50], holdersCount)
+data nextAssetId
+
+# holdersMap: holdersMap[addr][asset] = 1 if addr holds asset
+data holdersMap[2^160][2^50]
+
+# balances[x][y] = how much of y x holds
+data balances[2^160][2^50]
+
+# orders[a][b] = heap of indices to (c, d, e)
+# = c offers to sell d units of a at a price of e units of b per 10^18 units
+# of a
+data orderbooks[2^50][2^50]
+
+# store of general order data
+data orders[2^50](seller, asset_sold, quantity, price)
+data ordersCount
+
+# data feeds
+data feeds[2^50](owner, value)
+data feedCount
+
+# heap
+data heap
+extern heap: [register, push, pop, top, size]
+
+data cfds[2^50](maker, acceptor, feed, asset, strike, leverage, min, max, maturity)
+data cfdCount
+
+data bets[2^50](maker, acceptor, feed, asset, makerstake, acceptorstake, eqtest, maturity)
+data betCount
+
+def init():
+ heap = create('heap.se')
+
+# Add units (internal method)
+def add(to, asset, value):
+ assert msg.sender == self
+ self.balances[to][asset] += value
+ # Add the holder to the holders list
+ if not self.holdersMap[to][asset]:
+ self.holdersMap[to][asset] = 1
+ c = self.assets[asset].holdersCount
+ self.assets[asset].holders[c] = to
+ self.assets[asset].holdersCount = c + 1
+
+# Register a new asset
+def register_asset(q, name, calldate, callprice):
+ newid = self.nextAssetId
+ self.assets[newid].creator = msg.sender
+ self.assets[newid].name = name
+ self.assets[newid].calldate = calldate
+ self.assets[newid].callprice = callprice
+ self.assets[newid].holders[0] = msg.sender
+ self.assets[newid].holdersCount = 1
+ self.balances[msg.sender][newid] = q
+ self.holdersMap[msg.sender][newid] = 1
+
+# Send
+def send(to, asset, value):
+ fromval = self.balances[msg.sender][asset]
+ if fromval >= value:
+ self.balances[msg.sender][asset] -= value
+ self.add(to, asset, value)
+
+# Order
+def mkorder(selling, buying, quantity, price):
+ # Make sure you have enough to pay for the order
+ assert self.balances[msg.sender][selling] >= quantity:
+ # Try to match existing orders
+ o = orderbooks[buying][selling]
+ if not o:
+ o = self.heap.register()
+ orderbooks[selling][buying] = o
+ sz = self.heap.size(o)
+ invprice = 10^36 / price
+ while quantity > 0 and sz > 0:
+ orderid = self.heap.pop()
+ p = self.orders[orderid].price
+ if p > invprice:
+ sz = 0
+ else:
+ q = self.orders[orderid].quantity
+ oq = min(q, quantity)
+ b = self.orders[orderid].seller
+ self.balances[msg.sender][selling] -= oq * p / 10^18
+ self.add(msg.sender, buying, oq)
+ self.add(b, selling, oq * p / 10^18)
+ self.orders[orderid].quantity = q - oq
+ if oq == q:
+ self.orders[orderid].seller = 0
+ self.orders[orderid].price = 0
+ self.orders[orderid].asset_sold = 0
+ quantity -= oq
+ sz -= 1
+ assert quantity > 0
+ # Make the order
+ c = self.ordersCount
+ self.orders[c].seller = msg.sender
+ self.orders[c].asset_sold = selling
+ self.orders[c].quantity = quantity
+ self.orders[c].price = price
+ self.ordersCount += 1
+ # Add it to the heap
+ o = orderbooks[selling][buying]
+ if not o:
+ o = self.heap.register()
+ orderbooks[selling][buying] = o
+ self.balances[msg.sender][selling] -= quantity
+ self.heap.push(o, price, c)
+ return(c)
+
+def cancel_order(id):
+ if self.orders[id].seller == msg.sender:
+ self.orders[id].seller = 0
+ self.orders[id].price = 0
+ self.balances[msg.sender][self.orders[id].asset_sold] += self.orders[id].quantity
+ self.orders[id].quantity = 0
+ self.orders[id].asset_sold = 0
+
+def register_feed():
+ c = self.feedCount
+ self.feeds[c].owner = msg.sender
+ self.feedCount = c + 1
+ return(c)
+
+def set_feed(id, v):
+ if self.feeds[id].owner == msg.sender:
+ self.feeds[id].value = v
+
+def mk_cfd_offer(feed, asset, strike, leverage, min, max, maturity):
+ b = self.balances[msg.sender][asset]
+ req = max((strike - min) * leverage, (strike - max) * leverage)
+ assert b >= req
+ self.balances[msg.sender][asset] = b - req
+ c = self.cfdCount
+ self.cfds[c].maker = msg.sender
+ self.cfds[c].feed = feed
+ self.cfds[c].asset = asset
+ self.cfds[c].strike = strike
+ self.cfds[c].leverage = leverage
+ self.cfds[c].min = min
+ self.cfds[c].max = max
+ self.cfds[c].maturity = maturity
+ self.cfdCount = c + 1
+ return(c)
+
+def accept_cfd_offer(c):
+ assert not self.cfds[c].acceptor and self.cfds[c].maker
+ asset = self.cfds[c].asset
+ strike = self.cfds[c].strike
+ min = self.cfds[c].min
+ max = self.cfds[c].max
+ leverage = self.cfds[c].leverage
+ b = self.balances[msg.sender][asset]
+ req = max((min - strike) * leverage, (max - strike) * leverage)
+ assert b >= req
+ self.balances[msg.sender][asset] = b - req
+ self.cfds[c].acceptor = msg.sender
+ self.cfds[c].maturity += block.timestamp
+
+def claim_cfd_offer(c):
+ asset = self.cfds[c].asset
+ strike = self.cfds[c].strike
+ min = self.cfds[c].min
+ max = self.cfds[c].max
+ leverage = self.cfds[c].leverage
+ v = self.feeds[self.cfds[c].feed].value
+ assert v <= min or v >= max or block.timestamp >= self.cfds[c].maturity
+ maker_req = max((strike - min) * leverage, (strike - max) * leverage)
+ acceptor_req = max((min - strike) * leverage, (max - strike) * leverage)
+ paydelta = (strike - v) * leverage
+ self.add(self.cfds[c].maker, asset, maker_req + paydelta)
+ self.add(self.cfds[c].acceptor, asset, acceptor_req - paydelta)
+ self.cfds[c].maker = 0
+ self.cfds[c].acceptor = 0
+ self.cfds[c].feed = 0
+ self.cfds[c].asset = 0
+ self.cfds[c].strike = 0
+ self.cfds[c].leverage = 0
+ self.cfds[c].min = 0
+ self.cfds[c].max = 0
+ self.cfds[c].maturity = 0
+
+def withdraw_cfd_offer(c):
+ if self.cfds[c].maker == msg.sender and not self.cfds[c].acceptor:
+ asset = self.cfds[c].asset
+ strike = self.cfds[c].strike
+ min = self.cfds[c].min
+ max = self.cfds[c].max
+ leverage = self.cfds[c].leverage
+ maker_req = max((strike - min) * leverage, (strike - max) * leverage)
+ self.balances[self.cfds[c].maker][asset] += maker_req
+ self.cfds[c].maker = 0
+ self.cfds[c].acceptor = 0
+ self.cfds[c].feed = 0
+ self.cfds[c].asset = 0
+ self.cfds[c].strike = 0
+ self.cfds[c].leverage = 0
+ self.cfds[c].min = 0
+ self.cfds[c].max = 0
+ self.cfds[c].maturity = 0
+
+
+def mk_bet_offer(feed, asset, makerstake, acceptorstake, eqtest, maturity):
+ assert self.balances[msg.sender][asset] >= makerstake
+ c = self.betCount
+ self.bets[c].maker = msg.sender
+ self.bets[c].feed = feed
+ self.bets[c].asset = asset
+ self.bets[c].makerstake = makerstake
+ self.bets[c].acceptorstake = acceptorstake
+ self.bets[c].eqtest = eqtest
+ self.bets[c].maturity = maturity
+ self.balances[msg.sender][asset] -= makerstake
+ self.betCount = c + 1
+ return(c)
+
+def accept_bet_offer(c):
+ assert self.bets[c].maker and not self.bets[c].acceptor
+ asset = self.bets[c].asset
+ acceptorstake = self.bets[c].acceptorstake
+ assert self.balances[msg.sender][asset] >= acceptorstake
+ self.balances[msg.sender][asset] -= acceptorstake
+ self.bets[c].acceptor = msg.sender
+
+def claim_bet_offer(c):
+ assert block.timestamp >= self.bets[c].maturity
+ v = self.feeds[self.bets[c].feed].value
+ totalstake = self.bets[c].makerstake + self.bets[c].acceptorstake
+ if v == self.bets[c].eqtest:
+ self.add(self.bets[c].maker, self.bets[c].asset, totalstake)
+ else:
+ self.add(self.bets[c].acceptor, self.bets[c].asset, totalstake)
+ self.bets[c].maker = 0
+ self.bets[c].feed = 0
+ self.bets[c].asset = 0
+ self.bets[c].makerstake = 0
+ self.bets[c].acceptorstake = 0
+ self.bets[c].eqtest = 0
+ self.bets[c].maturity = 0
+
+def cancel_bet(c):
+ assert not self.bets[c].acceptor and msg.sender == self.bets[c].maker
+ self.balances[msg.sender][self.bets[c].asset] += self.bets[c].makerstake
+ self.bets[c].maker = 0
+ self.bets[c].feed = 0
+ self.bets[c].asset = 0
+ self.bets[c].makerstake = 0
+ self.bets[c].acceptorstake = 0
+ self.bets[c].eqtest = 0
+ self.bets[c].maturity = 0
+
+def dividend(holder_asset, divvying_asset, ratio):
+ i = 0
+ sz = self.assets[holder_asset].holdersCount
+ t = 0
+ holders = array(sz)
+ payments = array(sz)
+ while i < sz:
+ holders[i] = self.assets[holder_asset].holders[i]
+ payments[i] = self.balances[holders[i]][holder_asset] * ratio / 10^18
+ t += payments[i]
+ i += 1
+ if self.balances[msg.sender][divvying_asset] >= t:
+ i = 0
+ while i < sz:
+ self.add(holders[i], divvying_asset, payments[i])
+ i += 1
+ self.balances[msg.sender][divvying_asset] -= t
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/counterparty/heap.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/counterparty/heap.se
new file mode 100644
index 000000000..4a43a3974
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/counterparty/heap.se
@@ -0,0 +1,69 @@
+data heaps[2^50](owner, size, nodes[2^50](key, value))
+data heapIndex
+
+def register():
+ i = self.heapIndex
+ self.heaps[i].owner = msg.sender
+ self.heapIndex = i + 1
+ return(i)
+
+def push(heap, key, value):
+ assert msg.sender == self.heaps[heap].owner
+ sz = self.heaps[heap].size
+ self.heaps[heap].nodes[sz].key = key
+ self.heaps[heap].nodes[sz].value = value
+ k = sz + 1
+ while k > 1:
+ bottom = self.heaps[heap].nodes[k].key
+ top = self.heaps[heap].nodes[k/2].key
+ if bottom < top:
+ tvalue = self.heaps[heap].nodes[k/2].value
+ bvalue = self.heaps[heap].nodes[k].value
+ self.heaps[heap].nodes[k].key = top
+ self.heaps[heap].nodes[k].value = tvalue
+ self.heaps[heap].nodes[k/2].key = bottom
+ self.heaps[heap].nodes[k/2].value = bvalue
+ k /= 2
+ else:
+ k = 0
+ self.heaps[heap].size = sz + 1
+
+def pop(heap):
+ sz = self.heaps[heap].size
+ assert sz
+ prevtop = self.heaps[heap].nodes[1].value
+ self.heaps[heap].nodes[1].key = self.heaps[heap].nodes[sz].key
+ self.heaps[heap].nodes[1].value = self.heaps[heap].nodes[sz].value
+ self.heaps[heap].nodes[sz].key = 0
+ self.heaps[heap].nodes[sz].value = 0
+ top = self.heaps[heap].nodes[1].key
+ k = 1
+ while k * 2 < sz:
+ bottom1 = self.heaps[heap].nodes[k * 2].key
+ bottom2 = self.heaps[heap].nodes[k * 2 + 1].key
+ if bottom1 < top and (bottom1 < bottom2 or k * 2 + 1 >= sz):
+ tvalue = self.heaps[heap].nodes[1].value
+ bvalue = self.heaps[heap].nodes[k * 2].value
+ self.heaps[heap].nodes[k].key = bottom1
+ self.heaps[heap].nodes[k].value = bvalue
+ self.heaps[heap].nodes[k * 2].key = top
+ self.heaps[heap].nodes[k * 2].value = tvalue
+ k = k * 2
+ elif bottom2 < top and bottom2 < bottom1 and k * 2 + 1 < sz:
+ tvalue = self.heaps[heap].nodes[1].value
+ bvalue = self.heaps[heap].nodes[k * 2 + 1].value
+ self.heaps[heap].nodes[k].key = bottom2
+ self.heaps[heap].nodes[k].value = bvalue
+ self.heaps[heap].nodes[k * 2 + 1].key = top
+ self.heaps[heap].nodes[k * 2 + 1].value = tvalue
+ k = k * 2 + 1
+ else:
+ k = sz
+ self.heaps[heap].size = sz - 1
+ return(prevtop)
+
+def top(heap):
+ return(self.heaps[heap].nodes[1].value)
+
+def size(heap):
+ return(self.heaps[heap].size)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/crowdfund.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/crowdfund.se
new file mode 100644
index 000000000..9fd1e0643
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/crowdfund.se
@@ -0,0 +1,53 @@
+data campaigns[2^80](recipient, goal, deadline, contrib_total, contrib_count, contribs[2^50](sender, value))
+
+def create_campaign(id, recipient, goal, timelimit):
+ if self.campaigns[id].recipient:
+ return(0)
+ self.campaigns[id].recipient = recipient
+ self.campaigns[id].goal = goal
+ self.campaigns[id].deadline = block.timestamp + timelimit
+
+def contribute(id):
+ # Update contribution total
+ total_contributed = self.campaigns[id].contrib_total + msg.value
+ self.campaigns[id].contrib_total = total_contributed
+
+ # Record new contribution
+ sub_index = self.campaigns[id].contrib_count
+ self.campaigns[id].contribs[sub_index].sender = msg.sender
+ self.campaigns[id].contribs[sub_index].value = msg.value
+ self.campaigns[id].contrib_count = sub_index + 1
+
+ # Enough funding?
+ if total_contributed >= self.campaigns[id].goal:
+ send(self.campaigns[id].recipient, total_contributed)
+ self.clear(id)
+ return(1)
+
+ # Expired?
+ if block.timestamp > self.campaigns[id].deadline:
+ i = 0
+ c = self.campaigns[id].contrib_count
+ while i < c:
+ send(self.campaigns[id].contribs[i].sender, self.campaigns[id].contribs[i].value)
+ i += 1
+ self.clear(id)
+ return(2)
+
+def progress_report(id):
+ return(self.campaigns[id].contrib_total)
+
+# Clearing function for internal use
+def clear(id):
+ if self == msg.sender:
+ self.campaigns[id].recipient = 0
+ self.campaigns[id].goal = 0
+ self.campaigns[id].deadline = 0
+ c = self.campaigns[id].contrib_count
+ self.campaigns[id].contrib_count = 0
+ self.campaigns[id].contrib_total = 0
+ i = 0
+ while i < c:
+ self.campaigns[id].contribs[i].sender = 0
+ self.campaigns[id].contribs[i].value = 0
+ i += 1
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/futarchy.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/futarchy.se
new file mode 100644
index 000000000..0d68622ac
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/futarchy.se
@@ -0,0 +1,136 @@
+# 0: current epoch
+# 1: number of proposals
+# 2: master currency
+# 3: last winning market
+# 4: last txid
+# 5: long-term ema currency units purchased
+# 6: last block when currency units purchased
+# 7: ether allocated to last round
+# 8: last block when currency units claimed
+# 9: ether allocated to current round
+# 1000+: [proposal address, market ID, totprice, totvolume]
+
+init:
+ # We technically have two levels of epoch here. We have
+ # one epoch of 1000, to synchronize with the 1000 epoch
+ # of the market, and then 100 of those epochs make a
+ # meta-epoch (I'll nominate the term "seculum") over
+ # which the futarchy protocol will take place
+ contract.storage[0] = block.number / 1000
+ # The master currency of the futarchy. The futarchy will
+ # assign currency units to whoever the prediction market
+ # thinks will best increase the currency's value
+ master_currency = create('subcurrency.se')
+ contract.storage[2] = master_currency
+code:
+ curepoch = block.number / 1000
+ prevepoch = contract.storage[0]
+ if curepoch > prevepoch:
+ if (curepoch % 100) > 50:
+ # Collect price data
+ # We take an average over 50 subepochs to determine
+ # the price of each asset, weighting by volume to
+ # prevent abuse
+ contract.storage[0] = curepoch
+ i = 0
+ numprop = contract.storage[1]
+ while i < numprop:
+ market = contract.storage[1001 + i * 4]
+ price = call(market, 2)
+ volume = call(market, 3)
+ contract.storage[1002 + i * 4] += price
+ contract.storage[1003 + i * 4] += volume * price
+ i += 1
+ if (curepoch / 100) > (prevepoch / 100):
+ # If we are entering a new seculum, we determine the
+ # market with the highest total average price
+ best = 0
+ bestmarket = 0
+ besti = 0
+ i = 0
+ while i < numprop:
+ curtotprice = contract.storage[1002 + i * 4]
+ curvolume = contract.storage[1002 + i * 4]
+ curavgprice = curtotprice / curvolume
+ if curavgprice > best:
+ best = curavgprice
+ besti = i
+ bestmarket = contract.storage[1003 + i * 4]
+ i += 1
+ # Reset the number of proposals to 0
+ contract.storage[1] = 0
+ # Reward the highest proposal
+ call(contract.storage[2], [best, 10^9, 0], 3)
+ # Record the winning market so we can later appropriately
+ # compensate the participants
+ contract.storage[2] = bestmarket
+ # The amount of ether allocated to the last round
+ contract.storage[7] = contract.storage[9]
+ # The amount of ether allocated to the next round
+ contract.storage[9] = contract.balance / 2
+ # Make a proposal [0, address]
+ if msg.data[0] == 0 and curepoch % 100 < 50:
+ pid = contract.storage[1]
+ market = create('market.se')
+ c1 = create('subcurrency.se')
+ c2 = create('subcurrency.se')
+ call(market, [c1, c2], 2)
+ contract.storage[1000 + pid * 4] = msg.data[1]
+ contract.storage[1001 + pid * 4] = market
+ contract.storage[1] += 1
+ # Claim ether [1, address]
+ # One unit of the first currency in the last round's winning
+ # market entitles you to a quantity of ether that was decided
+ # at the start of that epoch
+ elif msg.data[0] == 1:
+ first_subcurrency = call(contract.storage[2], 3)
+ # We ask the first subcurrency contract what the last transaction was. The
+ # way to make a claim is to send the amount of first currency units that
+ # you wish to claim with, and then immediately call this contract. For security
+ # it makes sense to set up a tx which sends both messages in sequence atomically
+ data = call(first_subcurrency, [], 0, 4)
+ from = data[0]
+ to = data[1]
+ value = data[2]
+ txid = data[3]
+ if txid > contract.storage[4] and to == contract.address:
+ send(to, contract.storage[7] * value / 10^9)
+ contract.storage[4] = txid
+ # Claim second currency [2, address]
+ # One unit of the second currency in the last round's winning
+ # market entitles you to one unit of the futarchy's master
+ # currency
+ elif msg.data[0] == 2:
+ second_subcurrency = call(contract.storage[2], 3)
+ data = call(first_subcurrency, [], 0, 4)
+ from = data[0]
+ to = data[1]
+ value = data[2]
+ txid = data[3]
+ if txid > contract.storage[4] and to == contract.address:
+ call(contract.storage[2], [to, value], 2)
+ contract.storage[4] = txid
+ # Purchase currency for ether (target releasing 10^9 units per seculum)
+ # Price starts off 1 eth for 10^9 units but increases hyperbolically to
+ # limit issuance
+ elif msg.data[0] == 3:
+ pre_ema = contract.storage[5]
+ post_ema = pre_ema + msg.value
+ pre_reserve = 10^18 / (10^9 + pre_ema / 10^9)
+ post_reserve = 10^18 / (10^9 + post_ema / 10^9)
+ call(contract.storage[2], [msg.sender, pre_reserve - post_reserve], 2)
+ last_sold = contract.storage[6]
+ contract.storage[5] = pre_ema * (100000 + last_sold - block.number) + msg.value
+ contract.storage[6] = block.number
+ # Claim all currencies as the ether miner of the current block
+ elif msg.data[0] == 2 and msg.sender == block.coinbase and block.number > contract.storage[8]:
+ i = 0
+ numproposals = contract.storage[1]
+ while i < numproposals:
+ market = contract.storage[1001 + i * 3]
+ fc = call(market, 4)
+ sc = call(market, 5)
+ call(fc, [msg.sender, 1000], 2)
+ call(sc, [msg.sender, 1000], 2)
+ i += 1
+ contract.storage[8] = block.number
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/heap.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/heap.se
new file mode 100644
index 000000000..1bc442e6d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/heap.se
@@ -0,0 +1,55 @@
+# 0: size
+# 1-n: elements
+
+init:
+ contract.storage[1000] = msg.sender
+code:
+ # Only owner of the heap is allowed to modify it
+ if contract.storage[1000] != msg.sender:
+ stop
+ # push
+ if msg.data[0] == 0:
+ sz = contract.storage[0]
+ contract.storage[sz + 1] = msg.data[1]
+ k = sz + 1
+ while k > 1:
+ bottom = contract.storage[k]
+ top = contract.storage[k/2]
+ if bottom < top:
+ contract.storage[k] = top
+ contract.storage[k/2] = bottom
+ k /= 2
+ else:
+ k = 0
+ contract.storage[0] = sz + 1
+ # pop
+ elif msg.data[0] == 1:
+ sz = contract.storage[0]
+ if !sz:
+ return(0)
+ prevtop = contract.storage[1]
+ contract.storage[1] = contract.storage[sz]
+ contract.storage[sz] = 0
+ top = contract.storage[1]
+ k = 1
+ while k * 2 < sz:
+ bottom1 = contract.storage[k * 2]
+ bottom2 = contract.storage[k * 2 + 1]
+ if bottom1 < top and (bottom1 < bottom2 or k * 2 + 1 >= sz):
+ contract.storage[k] = bottom1
+ contract.storage[k * 2] = top
+ k = k * 2
+ elif bottom2 < top and bottom2 < bottom1 and k * 2 + 1 < sz:
+ contract.storage[k] = bottom2
+ contract.storage[k * 2 + 1] = top
+ k = k * 2 + 1
+ else:
+ k = sz
+ contract.storage[0] = sz - 1
+ return(prevtop)
+ # top
+ elif msg.data[0] == 2:
+ return(contract.storage[1])
+ # size
+ elif msg.data[0] == 3:
+ return(contract.storage[0])
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/market.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/market.se
new file mode 100644
index 000000000..2303a0b60
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/market.se
@@ -0,0 +1,117 @@
+# Creates a decentralized market between any two subcurrencies
+
+# Here, the first subcurrency is the base asset and the second
+# subcurrency is the asset priced against the base asset. Hence,
+# "buying" refers to trading the first for the second, and
+# "selling" refers to trading the second for the first
+
+# storage 0: buy orders
+# storage 1: sell orders
+# storage 1000: first subcurrency
+# storage 1001: last first subcurrency txid
+# storage 2000: second subcurrency
+# storage 2001: last second subcurrency txid
+# storage 3000: current epoch
+# storage 4000: price
+# storage 4001: volume
+
+init:
+ # Heap for buy orders
+ contract.storage[0] = create('heap.se')
+ # Heap for sell orders
+ contract.storage[1] = create('heap.se')
+code:
+ # Initialize with [ first_subcurrency, second_subcurrency ]
+ if !contract.storage[1000]:
+ contract.storage[1000] = msg.data[0] # First subcurrency
+ contract.storage[1001] = -1
+ contract.storage[2000] = msg.data[1] # Second subcurrency
+ contract.storage[2001] = -1
+ contract.storage[3000] = block.number / 1000
+ stop
+ first_subcurrency = contract.storage[1000]
+ second_subcurrency = contract.storage[2000]
+ buy_heap = contract.storage[0]
+ sell_heap = contract.storage[1]
+ # This contract operates in "epochs" of 100 blocks
+ # At the end of each epoch, we process all orders
+ # simultaneously, independent of order. This algorithm
+ # prevents front-running, and generates a profit from
+ # the spread. The profit is permanently kept in the
+ # market (ie. destroyed), making both subcurrencies
+ # more valuable
+
+ # Epoch transition code
+ if contract.storage[3000] < block.number / 100:
+ done = 0
+ volume = 0
+ while !done:
+ # Grab the top buy and sell order from each heap
+ topbuy = call(buy_heap, 1)
+ topsell = call(sell_heap, 1)
+ # An order is recorded in the heap as:
+ # Buys: (2^48 - 1 - price) * 2^208 + units of first currency * 2^160 + from
+ # Sells: price * 2^208 + units of second currency * 2^160 + from
+ buyprice = -(topbuy / 2^208)
+ buyfcvalue = (topbuy / 2^160) % 2^48
+ buyer = topbuy % 2^160
+ sellprice = topsell / 2^208
+ sellscvalue = (topsell / 2^160) % 2^48
+ seller = topsell % 2^160
+ # Heap empty, or no more matching orders
+ if not topbuy or not topsell or buyprice < sellprice:
+ done = 1
+ else:
+ # Add to volume counter
+ volume += buyfcvalue
+ # Calculate how much of the second currency the buyer gets, and
+ # how much of the first currency the seller gets
+ sellfcvalue = sellscvalue / buyprice
+ buyscvalue = buyfcvalue * sellprice
+ # Send the currency units along
+ call(second_subcurrency, [buyer, buyscvalue], 2)
+ call(first_subcurrency, [seller, sellfcvalue], 2)
+ if volume:
+ contract.storage[4000] = (buyprice + sellprice) / 2
+ contract.storage[4001] = volume
+ contract.storage[3000] = block.number / 100
+ # Make buy order [0, price]
+ if msg.data[0] == 0:
+ # We ask the first subcurrency contract what the last transaction was. The
+ # way to make a buy order is to send the amount of first currency units that
+ # you wish to buy with, and then immediately call this contract. For security
+ # it makes sense to set up a tx which sends both messages in sequence atomically
+ data = call(first_subcurrency, [], 0, 4)
+ from = data[0]
+ to = data[1]
+ value = data[2]
+ txid = data[3]
+ price = msg.data[1]
+ if txid > contract.storage[1001] and to == contract.address:
+ contract.storage[1001] = txid
+ # Adds the order to the heap
+ call(buy_heap, [0, -price * 2^208 + (value % 2^48) * 2^160 + from], 2)
+ # Make sell order [1, price]
+ elif msg.data[0] == 1:
+ # Same mechanics as buying
+ data = call(second_subcurrency, [], 0, 4)
+ from = data[0]
+ to = data[1]
+ value = data[2]
+ txid = data[3]
+ price = msg.data[1]
+ if txid > contract.storage[2001] and to == contract.address:
+ contract.storage[2001] = txid
+ call(sell_heap, [0, price * 2^208 + (value % 2^48) * 2^160 + from], 2)
+ # Ask for price
+ elif msg.data[0] == 2:
+ return(contract.storage[4000])
+ # Ask for volume
+ elif msg.data[0] == 3:
+ return(contract.storage[1000])
+ # Ask for first currency
+ elif msg.data[0] == 4:
+ return(contract.storage[2000])
+ # Ask for second currency
+ elif msg.data[0] == 5:
+ return(contract.storage[4001])
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/subcurrency.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/subcurrency.se
new file mode 100644
index 000000000..1501beff7
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/subcurrency.se
@@ -0,0 +1,35 @@
+# Initialization
+# Admin can issue and delete at will
+init:
+ contract.storage[0] = msg.sender
+code:
+ # If a message with one item is sent, that's a balance query
+ if msg.datasize == 1:
+ addr = msg.data[0]
+ return(contract.storage[addr])
+ # If a message with two items [to, value] are sent, that's a transfer request
+ elif msg.datasize == 2:
+ from = msg.sender
+ fromvalue = contract.storage[from]
+ to = msg.data[0]
+ value = msg.data[1]
+ if fromvalue >= value and value > 0 and to > 4:
+ contract.storage[from] = fromvalue - value
+ contract.storage[to] += value
+ contract.storage[2] = from
+ contract.storage[3] = to
+ contract.storage[4] = value
+ contract.storage[5] += 1
+ return(1)
+ return(0)
+ elif msg.datasize == 3 and msg.sender == contract.storage[0]:
+ # Admin can issue at will by sending a [to, value, 0] message
+ if msg.data[2] == 0:
+ contract.storage[msg.data[0]] += msg.data[1]
+ # Change admin [ newadmin, 0, 1 ]
+ # Set admin to 0 to disable administration
+ elif msg.data[2] == 1:
+ contract.storage[0] = msg.data[0]
+ # Fetch last transaction
+ else:
+ return([contract.storage[2], contract.storage[3], contract.storage[4], contract.storage[5]], 4)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/test.py b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/test.py
new file mode 100644
index 000000000..301a4a845
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/cyberdyne/test.py
@@ -0,0 +1,39 @@
+from __future__ import print_function
+import pyethereum
+t = pyethereum.tester
+s = t.state()
+# Create currencies
+c1 = s.contract('subcurrency.se')
+print("First currency: %s" % c1)
+c2 = s.contract('subcurrency.se')
+print("First currency: %s" % c2)
+# Allocate units
+s.send(t.k0, c1, 0, [t.a0, 1000, 0])
+s.send(t.k0, c1, 0, [t.a1, 1000, 0])
+s.send(t.k0, c2, 0, [t.a2, 1000000, 0])
+s.send(t.k0, c2, 0, [t.a3, 1000000, 0])
+print("Allocated units")
+# Market
+m = s.contract('market.se')
+s.send(t.k0, m, 0, [c1, c2])
+# Place orders
+s.send(t.k0, c1, 0, [m, 1000])
+s.send(t.k0, m, 0, [0, 1200])
+s.send(t.k1, c1, 0, [m, 1000])
+s.send(t.k1, m, 0, [0, 1400])
+s.send(t.k2, c2, 0, [m, 1000000])
+s.send(t.k2, m, 0, [1, 800])
+s.send(t.k3, c2, 0, [m, 1000000])
+s.send(t.k3, m, 0, [1, 600])
+print("Orders placed")
+# Next epoch and ping
+s.mine(100)
+print("Mined 100")
+s.send(t.k0, m, 0, [])
+print("Updating")
+# Check
+assert s.send(t.k0, c2, 0, [t.a0]) == [800000]
+assert s.send(t.k0, c2, 0, [t.a1]) == [600000]
+assert s.send(t.k0, c1, 0, [t.a2]) == [833]
+assert s.send(t.k0, c1, 0, [t.a3]) == [714]
+print("Balance checks passed")
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/datafeed.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/datafeed.se
new file mode 100644
index 000000000..4c4a56de8
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/datafeed.se
@@ -0,0 +1,12 @@
+# Database updateable only by the original creator
+data creator
+
+def init():
+ self.creator = msg.sender
+
+def update(k, v):
+ if msg.sender == self.creator:
+ self.storage[k] = v
+
+def query(k):
+ return(self.storage[k])
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/ecrecover.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/ecrecover.se
new file mode 100644
index 000000000..ce28f58c2
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/ecrecover.se
@@ -0,0 +1,40 @@
+# So I looked up on Wikipedia what Jacobian form actually is, and noticed that it's
+# actually a rather different and more clever construction than the naive version
+# that I created. It may possible to achieve a further 20-50% savings by applying
+# that version.
+
+extern all: [call]
+
+data JORDANMUL
+data JORDANADD
+data EXP
+
+def init():
+ self.JORDANMUL = create('jacobian_mul.se')
+ self.JORDANADD = create('jacobian_add.se')
+ self.EXP = create('modexp.se')
+
+def call(h, v, r, s):
+ N = -432420386565659656852420866394968145599
+ P = -4294968273
+ h = mod(h, N)
+ r = mod(r, P)
+ s = mod(s, N)
+ Gx = 55066263022277343669578718895168534326250603453777594175500187360389116729240
+ Gy = 32670510020758816978083085130507043184471273380659243275938904335757337482424
+ x = r
+ xcubed = mulmod(mulmod(x, x, P), x, P)
+ beta = self.EXP.call(addmod(xcubed, 7, P), div(P + 1, 4), P)
+
+ # Static-gascost ghetto conditional
+ y_is_positive = mod(v, 2) xor mod(beta, 2)
+ y = beta * y_is_positive + (P - beta) * (1 - y_is_positive)
+
+ GZ = self.JORDANMUL.call(Gx, 1, Gy, 1, N - h, outsz=4)
+ XY = self.JORDANMUL.call(x, 1, y, 1, s, outsz=4)
+ COMB = self.JORDANADD.call(GZ[0], GZ[1], GZ[2], GZ[3], XY[0], XY[1], XY[2], XY[3], 1, outsz=5)
+ COMB[4] = self.EXP.call(r, N - 2, N)
+ Q = self.JORDANMUL.call(data=COMB, datasz=5, outsz=4)
+ ox = mulmod(Q[0], self.EXP.call(Q[1], P - 2, P), P)
+ oy = mulmod(Q[2], self.EXP.call(Q[3], P - 2, P), P)
+ return([ox, oy], 2)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/ecrecover_compiled.evm b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/ecrecover_compiled.evm
new file mode 100644
index 000000000..f575fe70f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/ecrecover_compiled.evm
@@ -0,0 +1 @@
+6000607f535961071c80610013593961072f566000605f535961013d8061001359396101505661012b8061000e60003961013956600061023f5360003560001a6000141561012a5760806001602037602051151561002c576060511561002f565b60005b156100695760806080599059016000905260a052600060a051526001602060a05101526000604060a05101526001606060a051015260a051f25b6401000003d160000380608051826003846020516020510909098182600260605109836040516040510909828283098382830984858660026020510983098603866040518509088560405183098686888985604051098a038a85602051090809878689846040510909888960605183098a038a6080518509088960805183096080608059905901600090526101e052866101e051528560206101e05101528260406101e05101528160606101e05101526101e051f250505050505050505050505b5b6000f25b816000f090506000555961040680610168593961056e566000603f535961013d8061001359396101505661012b8061000e60003961013956600061023f5360003560001a6000141561012a5760806001602037602051151561002c576060511561002f565b60005b156100695760806080599059016000905260a052600060a051526001602060a05101526000604060a05101526001606060a051015260a051f25b6401000003d160000380608051826003846020516020510909098182600260605109836040516040510909828283098382830984858660026020510983098603866040518509088560405183098686888985604051098a038a85602051090809878689846040510909888960605183098a038a6080518509088960805183096080608059905901600090526101e052866101e051528560206101e05101528260406101e05101528160606101e05101526101e051f250505050505050505050505b5b6000f25b816000f0905060005561029a8061016860003961040256600061043f5360003560001a60001415610299576101006001602037602051151561002d5760605115610030565b60005b1561007657608059905901600090526101405260a051610140515260c051602061014051015260e051604061014051015261010051606061014051015261014051610120525b60a05115156100885760e0511561008b565b60005b156100d0576080599059016000905261016052602051610160515260405160206101605101526060516040610160510152608051606061016051015261016051610120525b61012051156100e157608061012051f25b6401000003d16000036000818260a0516040510983038360c051602051090814156101b1576000818260e051608051098303836101005160605109081415610175576080608080599059016000905260006101c0601f01536020516101e052604051610200526060516102205260805161024052818160816101c0601f01600060005460195a03f1508090509050f26101b0565b608060805990590160009052610280526000610280515260016020610280510152600060406102805101526001606061028051015261028051f25b5b808160405160c051098283610100516060510984038460805160e05109080981828360c0516020510984038460405160a051090883608051610100510909828283098382830984856020518309860386604051850908856040518309868760a051830988038860c0518509088760c051830988898a60405185098b038b8460205109088909898a836040510989098a8b60605183098c038c6080518509088b60805183096080608059905901600090526103e052866103e051528560206103e05101528260406103e05101528160606103e05101526103e051f2505050505050505050505050505b5b6000f25b816000f090506001556101928061058660003961071856600061013f5360003560001a600014156101915760a0600160203770014551231950b75fc4402da1732fc9bebf60000360a0510660a05260a05115606051156020511502011561007e5760806080599059016000905260c052600060c051526001602060c05101526000604060c05101526001606060c051015260c051f25b610120599059016000905260e052600060e051526000602060e05101526001604060e05101526000606060e05101526001608060e0510152600060a060e0510152600060c060e0510152600060e060e0510152600061010060e051015260e0517f80000000000000000000000000000000000000000000000000000000000000005b6000811115610187578060a0511615610165576080602083016081601f85016000600054614e20f15060205160a083015260405160c083015260605160e0830152608051610100830152608060208301610101601f85016000600154614e20f161017b565b6080602083016081601f85016000600054614e20f15b50600281049050610100565b608060208301f250505b5b6000f25b816000f0905060005559610406806107475939610b4d566000603f535961013d8061001359396101505661012b8061000e60003961013956600061023f5360003560001a6000141561012a5760806001602037602051151561002c576060511561002f565b60005b156100695760806080599059016000905260a052600060a051526001602060a05101526000604060a05101526001606060a051015260a051f25b6401000003d160000380608051826003846020516020510909098182600260605109836040516040510909828283098382830984858660026020510983098603866040518509088560405183098686888985604051098a038a85602051090809878689846040510909888960605183098a038a6080518509088960805183096080608059905901600090526101e052866101e051528560206101e05101528260406101e05101528160606101e05101526101e051f250505050505050505050505b5b6000f25b816000f0905060005561029a8061016860003961040256600061043f5360003560001a60001415610299576101006001602037602051151561002d5760605115610030565b60005b1561007657608059905901600090526101405260a051610140515260c051602061014051015260e051604061014051015261010051606061014051015261014051610120525b60a05115156100885760e0511561008b565b60005b156100d0576080599059016000905261016052602051610160515260405160206101605101526060516040610160510152608051606061016051015261016051610120525b61012051156100e157608061012051f25b6401000003d16000036000818260a0516040510983038360c051602051090814156101b1576000818260e051608051098303836101005160605109081415610175576080608080599059016000905260006101c0601f01536020516101e052604051610200526060516102205260805161024052818160816101c0601f01600060005460195a03f1508090509050f26101b0565b608060805990590160009052610280526000610280515260016020610280510152600060406102805101526001606061028051015261028051f25b5b808160405160c051098283610100516060510984038460805160e05109080981828360c0516020510984038460405160a051090883608051610100510909828283098382830984856020518309860386604051850908856040518309868760a051830988038860c0518509088760c051830988898a60405185098b038b8460205109088909898a836040510989098a8b60605183098c038c6080518509088b60805183096080608059905901600090526103e052866103e051528560206103e05101528260406103e05101528160606103e05101526103e051f2505050505050505050505050505b5b6000f25b816000f09050600155596100d080610b655939610c35566100be8061000e6000396100cc5660003560001a600014156100bd576060600160203760017f80000000000000000000000000000000000000000000000000000000000000005b60008111156100b157606051816040511615156020510a606051848509099150606051600282046040511615156020510a606051848509099150606051600482046040511615156020510a606051848509099150606051600882046040511615156020510a606051848509099150601081049050610038565b8160c052602060c0f250505b5b6000f25b816000f090506002556103d280610c4d60003961101f56600061095f5360003560001a600014156103d1576080600160203770014551231950b75fc4402da1732fc9bebf60000360a0526401000003d160000360c05260a0516020510660205260c0516060510660605260a051608051066080527f79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f8179860e0527f483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8610100526060516101205260c0516101205160c05161012051610120510909610140526000610180601f015360c051600761014051086101a0526004600160c05101046101c05260c0516101e05260206102006061610180601f01600060025460195a03f1506102005161016052600261016051066002604051061861022052610220516001036101605160c05103026102205161016051020161024052608080599059016000905260006102a0601f015360e0516102c05260016102e052610100516103005260016103205260205160a0510361034052818160a16102a0601f01600060005460195a03f150809050905061026052608080599059016000905260006103c0601f0153610120516103e052600161040052610240516104205260016104405260805161046052818160a16103c0601f01600060005460195a03f15080905090506103805260a080599059016000905260006104e0601f015361026051516105005260206102605101516105205260406102605101516105405260606102605101516105605261038051516105805260206103805101516105a05260406103805101516105c05260606103805101516105e05260016106005281816101216104e0601f01600060015460195a03f15080905090506104a0526000610640601f015360605161066052600260a051036106805260a0516106a05260206106c06061610640601f01600060025460195a03f1506106c05160806104a05101526104a05160208103805160018303608080599059016000905260008353818160a185600060005460195a03f150838552809050905090509050905090506106e05260c05160006107e0601f015360206106e051015161080052600260c051036108205260c05161084052602061086060616107e0601f01600060025460195a03f150610860516106e05151096107c05260c05160006108a0601f015360606106e05101516108c052600260c051036108e05260c05161090052602061092060616108a0601f01600060025460195a03f1506109205160406106e05101510961088052604060405990590160009052610940526107c051610940515261088051602061094051015261094051f25b5b6000f2
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/jacobian_add.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/jacobian_add.se
new file mode 100644
index 000000000..29dc390b2
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/jacobian_add.se
@@ -0,0 +1,32 @@
+extern all: [call]
+data DOUBLE
+
+def init():
+ self.DOUBLE = create('jacobian_double.se')
+
+def call(axn, axd, ayn, ayd, bxn, bxd, byn, byd):
+ if !axn and !ayn:
+ o = [bxn, bxd, byn, byd]
+ if !bxn and !byn:
+ o = [axn, axd, ayn, ayd]
+ if o:
+ return(o, 4)
+ with P = -4294968273:
+ if addmod(mulmod(axn, bxd, P), P - mulmod(axd, bxn, P), P) == 0:
+ if addmod(mulmod(ayn, byd, P), P - mulmod(ayd, byn, P), P) == 0:
+ return(self.DOUBLE.call(axn, axd, ayn, ayd, outsz=4), 4)
+ else:
+ return([0, 1, 0, 1], 4)
+ with mn = mulmod(addmod(mulmod(byn, ayd, P), P - mulmod(ayn, byd, P), P), mulmod(bxd, axd, P), P):
+ with md = mulmod(mulmod(byd, ayd, P), addmod(mulmod(bxn, axd, P), P - mulmod(axn, bxd, P), P), P):
+ with msqn = mulmod(mn, mn, P):
+ with msqd = mulmod(md, md, P):
+ with msqman = addmod(mulmod(msqn, axd, P), P - mulmod(msqd, axn, P), P):
+ with msqmad = mulmod(msqd, axd, P):
+ with xn = addmod(mulmod(msqman, bxd, P), P - mulmod(msqmad, bxn, P), P):
+ with xd = mulmod(msqmad, bxd, P):
+ with mamxn = mulmod(mn, addmod(mulmod(axn, xd, P), P - mulmod(xn, axd, P), P), P):
+ with mamxd = mulmod(md, mulmod(axd, xd, P), P):
+ with yn = addmod(mulmod(mamxn, ayd, P), P - mulmod(mamxd, ayn, P), P):
+ with yd = mulmod(mamxd, ayd, P):
+ return([xn, xd, yn, yd], 4)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/jacobian_double.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/jacobian_double.se
new file mode 100644
index 000000000..b7d8221a6
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/jacobian_double.se
@@ -0,0 +1,16 @@
+def call(axn, axd, ayn, ayd):
+ if !axn and !ayn:
+ return([0, 1, 0, 1], 4)
+ with P = -4294968273:
+ # No need to add (A, 1) because A = 0 for bitcoin
+ with mn = mulmod(mulmod(mulmod(axn, axn, P), 3, P), ayd, P):
+ with md = mulmod(mulmod(axd, axd, P), mulmod(ayn, 2, P), P):
+ with msqn = mulmod(mn, mn, P):
+ with msqd = mulmod(md, md, P):
+ with xn = addmod(mulmod(msqn, axd, P), P - mulmod(msqd, mulmod(axn, 2, P), P), P):
+ with xd = mulmod(msqd, axd, P):
+ with mamxn = mulmod(addmod(mulmod(axn, xd, P), P - mulmod(axd, xn, P), P), mn, P):
+ with mamxd = mulmod(mulmod(axd, xd, P), md, P):
+ with yn = addmod(mulmod(mamxn, ayd, P), P - mulmod(mamxd, ayn, P), P):
+ with yd = mulmod(mamxd, ayd, P):
+ return([xn, xd, yn, yd], 4)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/jacobian_mul.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/jacobian_mul.se
new file mode 100644
index 000000000..bf5b96bb4
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/jacobian_mul.se
@@ -0,0 +1,37 @@
+# Expected gas cost
+#
+# def expect(n, point_at_infinity=False):
+# n = n % (2**256 - 432420386565659656852420866394968145599)
+# if point_at_infinity:
+# return 79
+# if n == 0:
+# return 34479
+# L = int(1 + math.log(n) / math.log(2))
+# H = len([x for x in b.encode(n, 2) if x == '1'])
+# return 34221 + 94 * L + 343 * H
+
+data DOUBLE
+data ADD
+
+def init():
+ self.DOUBLE = create('jacobian_double.se')
+ self.ADD = create('jacobian_add.se')
+
+def call(axn, axd, ayn, ayd, n):
+ n = mod(n, -432420386565659656852420866394968145599)
+ if !axn * !ayn + !n: # Constant-gas version of !axn and !ayn or !n
+ return([0, 1, 0, 1], 4)
+ with o = [0, 0, 1, 0, 1, 0, 0, 0, 0]:
+ with b = 2 ^ 255:
+ while gt(b, 0):
+ if n & b:
+ ~call(20000, self.DOUBLE, 0, o + 31, 129, o + 32, 128)
+ o[5] = axn
+ o[6] = axd
+ o[7] = ayn
+ o[8] = ayd
+ ~call(20000, self.ADD, 0, o + 31, 257, o + 32, 128)
+ else:
+ ~call(20000, self.DOUBLE, 0, o + 31, 129, o + 32, 128)
+ b = div(b, 2)
+ return(o + 32, 4)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/modexp.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/modexp.se
new file mode 100644
index 000000000..687b12a04
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/modexp.se
@@ -0,0 +1,11 @@
+def call(b, e, m):
+ with o = 1:
+ with bit = 2 ^ 255:
+ while gt(bit, 0):
+ # A touch of loop unrolling for 20% efficiency gain
+ o = mulmod(mulmod(o, o, m), b ^ !(!(e & bit)), m)
+ o = mulmod(mulmod(o, o, m), b ^ !(!(e & div(bit, 2))), m)
+ o = mulmod(mulmod(o, o, m), b ^ !(!(e & div(bit, 4))), m)
+ o = mulmod(mulmod(o, o, m), b ^ !(!(e & div(bit, 8))), m)
+ bit = div(bit, 16)
+ return(o)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/substitutes.py b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/substitutes.py
new file mode 100644
index 000000000..0007da0cf
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/substitutes.py
@@ -0,0 +1,78 @@
+import bitcoin as b
+import math
+import sys
+
+
+def signed(o):
+ return map(lambda x: x - 2**256 if x >= 2**255 else x, o)
+
+
+def hamming_weight(n):
+ return len([x for x in b.encode(n, 2) if x == '1'])
+
+
+def binary_length(n):
+ return len(b.encode(n, 2))
+
+
+def jacobian_mul_substitute(A, B, C, D, N):
+ if A == 0 and C == 0 or (N % b.N) == 0:
+ return {"gas": 86, "output": [0, 1, 0, 1]}
+ else:
+ output = b.jordan_multiply(((A, B), (C, D)), N)
+ return {
+ "gas": 35262 + 95 * binary_length(N % b.N) + 355 * hamming_weight(N % b.N),
+ "output": signed(list(output[0]) + list(output[1]))
+ }
+
+
+def jacobian_add_substitute(A, B, C, D, E, F, G, H):
+ if A == 0 or E == 0:
+ gas = 149
+ elif (A * F - B * E) % b.P == 0:
+ if (C * H - D * G) % b.P == 0:
+ gas = 442
+ else:
+ gas = 177
+ else:
+ gas = 301
+ output = b.jordan_add(((A, B), (C, D)), ((E, F), (G, H)))
+ return {
+ "gas": gas,
+ "output": signed(list(output[0]) + list(output[1]))
+ }
+
+
+def modexp_substitute(base, exp, mod):
+ return {
+ "gas": 5150,
+ "output": signed([pow(base, exp, mod) if mod > 0 else 0])
+ }
+
+
+def ecrecover_substitute(z, v, r, s):
+ P, A, B, N, Gx, Gy = b.P, b.A, b.B, b.N, b.Gx, b.Gy
+ x = r
+ beta = pow(x*x*x+A*x+B, (P + 1) / 4, P)
+ BETA_PREMIUM = modexp_substitute(x, (P + 1) / 4, P)["gas"]
+ y = beta if v % 2 ^ beta % 2 else (P - beta)
+ Gz = b.jordan_multiply(((Gx, 1), (Gy, 1)), (N - z) % N)
+ GZ_PREMIUM = jacobian_mul_substitute(Gx, 1, Gy, 1, (N - z) % N)["gas"]
+ XY = b.jordan_multiply(((x, 1), (y, 1)), s)
+ XY_PREMIUM = jacobian_mul_substitute(x, 1, y, 1, s % N)["gas"]
+ Qr = b.jordan_add(Gz, XY)
+ QR_PREMIUM = jacobian_add_substitute(Gz[0][0], Gz[0][1], Gz[1][0], Gz[1][1],
+ XY[0][0], XY[0][1], XY[1][0], XY[1][1]
+ )["gas"]
+ Q = b.jordan_multiply(Qr, pow(r, N - 2, N))
+ Q_PREMIUM = jacobian_mul_substitute(Qr[0][0], Qr[0][1], Qr[1][0], Qr[1][1],
+ pow(r, N - 2, N))["gas"]
+ R_PREMIUM = modexp_substitute(r, N - 2, N)["gas"]
+ OX_PREMIUM = modexp_substitute(Q[0][1], P - 2, P)["gas"]
+ OY_PREMIUM = modexp_substitute(Q[1][1], P - 2, P)["gas"]
+ Q = b.from_jordan(Q)
+ return {
+ "gas": 991 + BETA_PREMIUM + GZ_PREMIUM + XY_PREMIUM + QR_PREMIUM +
+ Q_PREMIUM + R_PREMIUM + OX_PREMIUM + OY_PREMIUM,
+ "output": signed(Q)
+ }
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/test.py b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/test.py
new file mode 100644
index 000000000..48d21e32f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/ecc/test.py
@@ -0,0 +1,129 @@
+import bitcoin as b
+import random
+import sys
+import math
+from pyethereum import tester as t
+import substitutes
+import time
+
+vals = [random.randrange(2**256) for i in range(12)]
+
+test_points = [list(p[0]) + list(p[1]) for p in
+ [b.jordan_multiply(((b.Gx, 1), (b.Gy, 1)), r) for r in vals]]
+
+G = [b.Gx, 1, b.Gy, 1]
+Z = [0, 1, 0, 1]
+
+
+def neg_point(p):
+ return [p[0], b.P - p[1], p[2], b.P - p[3]]
+
+s = t.state()
+s.block.gas_limit = 10000000
+t.gas_limit = 1000000
+
+
+c = s.contract('modexp.se')
+print "Starting modexp tests"
+
+for i in range(0, len(vals) - 2, 3):
+ o1 = substitutes.modexp_substitute(vals[i], vals[i+1], vals[i+2])
+ o2 = s.profile(t.k0, c, 0, funid=0, abi=vals[i:i+3])
+ #assert o1["gas"] == o2["gas"], (o1, o2)
+ assert o1["output"] == o2["output"], (o1, o2)
+
+c = s.contract('jacobian_add.se')
+print "Starting addition tests"
+
+for i in range(2):
+ P = test_points[i * 2]
+ Q = test_points[i * 2 + 1]
+ NP = neg_point(P)
+
+ o1 = substitutes.jacobian_add_substitute(*(P + Q))
+ o2 = s.profile(t.k0, c, 0, funid=0, abi=P + Q)
+ #assert o1["gas"] == o2["gas"], (o1, o2)
+ assert o1["output"] == o2["output"], (o1, o2)
+
+ o1 = substitutes.jacobian_add_substitute(*(P + NP))
+ o2 = s.profile(t.k0, c, 0, funid=0, abi=P + NP)
+ #assert o1["gas"] == o2["gas"], (o1, o2)
+ assert o1["output"] == o2["output"], (o1, o2)
+
+ o1 = substitutes.jacobian_add_substitute(*(P + P))
+ o2 = s.profile(t.k0, c, 0, funid=0, abi=P + P)
+ #assert o1["gas"] == o2["gas"], (o1, o2)
+ assert o1["output"] == o2["output"], (o1, o2)
+
+ o1 = substitutes.jacobian_add_substitute(*(P + Z))
+ o2 = s.profile(t.k0, c, 0, funid=0, abi=P + Z)
+ #assert o1["gas"] == o2["gas"], (o1, o2)
+ assert o1["output"] == o2["output"], (o1, o2)
+
+ o1 = substitutes.jacobian_add_substitute(*(Z + P))
+ o2 = s.profile(t.k0, c, 0, funid=0, abi=Z + P)
+ #assert o1["gas"] == o2["gas"], (o1, o2)
+ assert o1["output"] == o2["output"], (o1, o2)
+
+
+c = s.contract('jacobian_mul.se')
+print "Starting multiplication tests"
+
+
+mul_tests = [
+ Z + [0],
+ Z + [vals[0]],
+ test_points[0] + [0],
+ test_points[1] + [b.N],
+ test_points[2] + [1],
+ test_points[2] + [2],
+ test_points[2] + [3],
+ test_points[2] + [4],
+ test_points[3] + [5],
+ test_points[3] + [6],
+ test_points[4] + [7],
+ test_points[4] + [2**254],
+ test_points[4] + [vals[1]],
+ test_points[4] + [vals[2]],
+ test_points[4] + [vals[3]],
+ test_points[5] + [2**256 - 1],
+]
+
+for i, test in enumerate(mul_tests):
+ print 'trying mul_test %i' % i, test
+ o1 = substitutes.jacobian_mul_substitute(*test)
+ o2 = s.profile(t.k0, c, 0, funid=0, abi=test)
+ # assert o1["gas"] == o2["gas"], (o1, o2, test)
+ assert o1["output"] == o2["output"], (o1, o2, test)
+
+c = s.contract('ecrecover.se')
+print "Starting ecrecover tests"
+
+for i in range(5):
+ print 'trying ecrecover_test', vals[i*2], vals[i*2+1]
+ k = vals[i*2]
+ h = vals[i*2+1]
+ V, R, S = b.ecdsa_raw_sign(b.encode(h, 256, 32), k)
+ aa = time.time()
+ o1 = substitutes.ecrecover_substitute(h, V, R, S)
+ print 'sub', time.time() - aa
+ a = time.time()
+ o2 = s.profile(t.k0, c, 0, funid=0, abi=[h, V, R, S])
+ print time.time() - a
+ # assert o1["gas"] == o2["gas"], (o1, o2, h, V, R, S)
+ assert o1["output"] == o2["output"], (o1, o2, h, V, R, S)
+
+# Explicit tests
+
+data = [[
+ 0xf007a9c78a4b2213220adaaf50c89a49d533fbefe09d52bbf9b0da55b0b90b60,
+ 0x1b,
+ 0x5228fc9e2fabfe470c32f459f4dc17ef6a0a81026e57e4d61abc3bc268fc92b5,
+ 0x697d4221cd7bc5943b482173de95d3114b9f54c5f37cc7f02c6910c6dd8bd107
+]]
+
+for datum in data:
+ o1 = substitutes.ecrecover_substitute(*datum)
+ o2 = s.profile(t.k0, c, 0, funid=0, abi=datum)
+ #assert o1["gas"] == o2["gas"], (o1, o2, datum)
+ assert o1["output"] == o2["output"], (o1, o2, datum)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/channel.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/channel.se
new file mode 100644
index 000000000..733f4a95b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/channel.se
@@ -0,0 +1,45 @@
+if msg.data[0] == 0:
+ new_id = contract.storage[-1]
+ # store [from, to, value, maxvalue, timeout] in contract storage
+ contract.storage[new_id] = msg.sender
+ contract.storage[new_id + 1] = msg.data[1]
+ contract.storage[new_id + 2] = 0
+ contract.storage[new_id + 3] = msg.value
+ contract.storage[new_id + 4] = 2^254
+ # increment next id
+ contract.storage[-1] = new_id + 10
+ # return id of this channel
+ return(new_id)
+
+# Increase payment on channel: [1, id, value, v, r, s]
+elif msg.data[0] == 1:
+ # Ecrecover native extension; will be a different address in testnet and live
+ ecrecover = 0x46a8d0b21b1336d83b06829f568d7450df36883f
+ # Message data parameters
+ id = msg.data[1] % 2^160
+ value = msg.data[2]
+ # Determine sender from signature
+ h = sha3([id, value], 2)
+ sender = call(ecrecover, [h, msg.data[3], msg.data[4], msg.data[5]], 4)
+ # Check sender matches and new value is greater than old
+ if sender == contract.storage[id]:
+ if value > contract.storage[id + 2] and value <= contract.storage[id + 3]:
+ # Update channel, increasing value and setting timeout
+ contract.storage[id + 2] = value
+ contract.storage[id + 4] = block.number + 1000
+
+# Cash out channel: [2, id]
+elif msg.data[0] == 2:
+ id = msg.data[1] % 2^160
+ # Check if timeout has run out
+ if block.number >= contract.storage[id + 3]:
+ # Send funds
+ send(contract.storage[id + 1], contract.storage[id + 2])
+ # Send refund
+ send(contract.storage[id], contract.storage[id + 3] - contract.storage[id + 2])
+ # Clear storage
+ contract.storage[id] = 0
+ contract.storage[id + 1] = 0
+ contract.storage[id + 2] = 0
+ contract.storage[id + 3] = 0
+ contract.storage[id + 4] = 0
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/map.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/map.se
new file mode 100644
index 000000000..768dfb9fc
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/map.se
@@ -0,0 +1,19 @@
+# An implementation of a contract for storing a key/value binding
+init:
+ # Set owner
+ contract.storage[0] = msg.sender
+code:
+ # Check ownership
+ if msg.sender == contract.storage[0]:
+ # Get: returns (found, val)
+ if msg.data[0] == 0:
+ s = sha3(msg.data[1])
+ return([contract.storage[s], contract.storage[s+1]], 2)
+ # Set: sets map[k] = v
+ elif msg.data[0] == 1:
+ s = sha3(msg.data[1])
+ contract.storage[s] = 1
+ contract.storage[s + 1] = msg.data[2]
+ # Suicide
+ elif msg.data[2] == 1:
+ suicide(0)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/multiforward.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/multiforward.se
new file mode 100644
index 000000000..577794d97
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/multiforward.se
@@ -0,0 +1,14 @@
+init:
+ contract.storage[0] = msg.sender
+code:
+ if msg.sender != contract.storage[0]:
+ stop
+ i = 0
+ while i < ~calldatasize():
+ to = ~calldataload(i)
+ value = ~calldataload(i+20) / 256^12
+ datasize = ~calldataload(i+32) / 256^30
+ data = alloc(datasize)
+ ~calldatacopy(data, i+34, datasize)
+ ~call(tx.gas - 25, to, value, data, datasize, 0, 0)
+ i += 34 + datasize
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/shadowchain.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/shadowchain.se
new file mode 100644
index 000000000..1e466a355
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/eth15/shadowchain.se
@@ -0,0 +1,166 @@
+# Exists in state:
+# (i) last committed block
+# (ii) chain of uncommitted blocks (linear only)
+# (iii) transactions, each tx with an associated block number
+#
+# Uncommitted block =
+# [ numtxs, numkvs, tx1 (N words), tx2 (N words) ..., [k1, v1], [k2, v2], [k3, v3] ... ]
+#
+# Block checking process
+#
+# Suppose last committed state is m
+# Last uncommitted state is n
+# Contested block is b
+#
+# 1. Temporarily apply all state transitions from
+# m to b
+# 2. Run code, get list of changes
+# 3. Check is list of changes matches deltas
+# * if yes, do nothing
+# * if no, set last uncommitted state to pre-b
+#
+# Storage variables:
+#
+# Last committed block: 0
+# Last uncommitted block: 1
+# Contract holding code: 2
+# Uncommitted map: 3
+# Transaction length (parameter): 4
+# Block b: 2^160 + b * 2^40:
+# + 1: submission blknum
+# + 2: submitter
+# + 3: data in uncommitted block format above
+# Last committed storage:
+# sha3(k): index k
+
+# Initialize: [0, c, txlength], set address of the code-holding contract and the transaction
+# length
+if not contract.storage[2]:
+ contract.storage[2] = msg.data[1]
+ contract.storage[4] = msg.data[2]
+ stop
+
+# Sequentially commit all uncommitted blocks that are more than 1000 mainchain-blocks old
+last_committed_block = contract.storage[0]
+last_uncommitted_block = contract.storage[1]
+lcb_storage_index = 2^160 + last_committed_block * 2^40
+while contract.storage[lcb_storage_index + 1] < block.number - 1000 and last_committed_block < last_uncommitted_block:
+ kvpairs = contract.storage[lcb_storage_index]
+ i = 0
+ while i < kvpairs:
+ k = contract.storage[lcb_storage_index + 3 + i * 2]
+ v = contract.storage[lcb_storage_index + 4 + i * 2]
+ contract.storage[sha3(k)] = v
+ i += 1
+ last_committed_block += 1
+ lcb_storage_index += 2^40
+contract.storage[0] = last_committed_block
+
+
+# Propose block: [ 0, block number, data in block format above ... ]
+if msg.data[0] == 0:
+ blknumber = msg.data[1]
+ # Block number must be correct
+ if blknumber != contract.storage[1]:
+ stop
+ # Deposit requirement
+ if msg.value < 10^19:
+ stop
+ # Store the proposal in storage as
+ # [ 0, main-chain block number, sender, block data...]
+ start_index = 2^160 + blknumber * 2^40
+ numkvs = (msg.datasize - 2) / 2
+ contract.storage[start_index + 1] = block.number
+ 1ontract.storage[start_index + 2] = msg.sender
+ i = 0
+ while i < msg.datasize - 2:
+ contract.storage[start_index + 3 + i] = msg.data[2 + i]
+ i += 1
+ contract.storage[1] = blknumber + 1
+
+# Challenge block: [ 1, b ]
+elif msg.data[0] == 1:
+ blknumber = msg.data[1]
+ txwidth = contract.storage[4]
+ last_uncommitted_block = contract.storage[1]
+ last_committed_block = contract.storage[0]
+ # Cannot challenge nonexistent or committed blocks
+ if blknumber <= last_uncommitted_block or blknumber > last_committed_block:
+ stop
+ # Create a contract to serve as a map that maintains keys and values
+ # temporarily
+ tempstore = create('map.se')
+ contract.storage[3] = tempstore
+ # Unquestioningly apply the state transitions from the last committed block
+ # up to b
+ b = last_committed_block
+ cur_storage_index = 2^160 + last_committed_block * 2^40
+ while b < blknumber:
+ numtxs = contract.storage[cur_storage_index + 3]
+ numkvs = contract.storage[cur_storage_index + 4]
+ kv0index = cur_storage_index + 5 + numtxs * txwidth
+ i = 0
+ while i < numkvs:
+ k = contract.storage[kv0index + i * 2]
+ v = contract.storage[kx0index + i * 2 + 1]
+ call(tempstore, [1, k, v], 3)
+ i += 1
+ b += 1
+ cur_storage_index += 2^40
+ # Run the actual code, and see what state transitions it outputs
+ # The way that the code is expected to work is to:
+ #
+ # (1) take as input the list of transactions (the contract should
+ # use msg.datasize to determine how many txs there are, and it should
+ # be aware of the value of txwidth)
+ # (2) call this contract with [2, k] to read current state data
+ # (3) call this contract with [3, k, v] to write current state data
+ # (4) return as output a list of all state transitions that it made
+ # in the form [kvcount, k1, v1, k2, v2 ... ]
+ #
+ # The reason for separating (2) from (3) is that sometimes the state
+ # transition may end up changing a given key many times, and we don't
+ # need to inefficiently store that in storage
+ numkvs = contract.storage[cur_storage_index + 3]
+ numtxs = contract.storage[cur_storage_index + 4]
+ # Populate input array
+ inpwidth = numtxs * txwidth
+ inp = array(inpwidth)
+ i = 0
+ while i < inpwidth:
+ inp[i] = contract.storage[cur_storage_index + 5 + i]
+ i += 1
+ out = call(contract.storage[2], inp, inpwidth, numkvs * 2 + 1)
+ # Check that the number of state transitions is the same
+ if out[0] != kvcount:
+ send(msg.sender, 10^19)
+ contract.storage[0] = last_committed_block
+ stop
+ kv0index = cur_storage_index + 5 + numtxs * txwidth
+ i = 0
+ while i < kvcount:
+ # Check that each individual state transition matches
+ k = contract.storage[kv0index + i * 2 + 1]
+ v = contract.storage[kv0index + i * 2 + 2]
+ if k != out[i * 2 + 1] or v != out[i * 2 + 2]:
+ send(msg.sender, 10^19)
+ contract.storage[0] = last_committed_block
+ stop
+ i += 1
+ # Suicide tempstore
+ call(tempstore, 2)
+
+
+# Read data [2, k]
+elif msg.data[0] == 2:
+ tempstore = contract.storage[3]
+ o = call(tempstore, [0, msg.data[1]], 2, 2)
+ if o[0]:
+ return(o[1])
+ else:
+ return contract.storage[sha3(msg.data[1])]
+
+# Write data [3, k, v]
+elif msg.data[0] == 3:
+ tempstore = contract.storage[3]
+ call(tempstore, [1, msg.data[1], msg.data[2]], 3, 2)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/fixedpoint.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/fixedpoint.se
new file mode 100644
index 000000000..a8073c685
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/fixedpoint.se
@@ -0,0 +1,31 @@
+type f: [a, b, c, d, e]
+
+macro f($a) + f($b):
+ f(add($a, $b))
+
+macro f($a) - f($b):
+ f(sub($a, $b))
+
+macro f($a) * f($b):
+ f(mul($a, $b) / 10000)
+
+macro f($a) / f($b):
+ f(sdiv($a * 10000, $b))
+
+macro f($a) % f($b):
+ f(smod($a, $b))
+
+macro f($v) = f($w):
+ $v = $w
+
+macro unfify(f($a)):
+ $a / 10000
+
+macro fify($a):
+ f($a * 10000)
+
+a = fify(5)
+b = fify(2)
+c = a / b
+e = c + (a / b)
+return(unfify(e))
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/long_integer_macros.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/long_integer_macros.se
new file mode 100644
index 000000000..58cdce6ab
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/long_integer_macros.se
@@ -0,0 +1,116 @@
+macro smin($a, $b):
+ with $1 = $a:
+ with $2 = $b:
+ if(slt($1, $2), $1, $2)
+
+macro smax($a, $b):
+ with $1 = $a:
+ with $2 = $b:
+ if(slt($1, $2), $2, $1)
+
+def omul(x, y):
+ o = expose(mklong(x) * mklong(y))
+ return(slice(o, 1), o[0]+1)
+
+def oadd(x, y):
+ o = expose(mklong(x) + mklong(y))
+ return(slice(o, 1), o[0]+1)
+
+def osub(x, y):
+ o = expose(mklong(x) - mklong(y))
+ return(slice(o, 1), o[0]+1)
+
+def odiv(x, y):
+ o = expose(mklong(x) / mklong(y))
+ return(slice(o, 1), o[0]+1)
+
+def comb(a:a, b:a, sign):
+ sz = smax(a[0], b[0])
+ msz = smin(a[0], b[0])
+ c = array(sz + 2)
+ c[0] = sz
+ i = 0
+ carry = 0
+ while i < msz:
+ m = a[i + 1] + sign * b[i + 1] + carry
+ c[i + 1] = mod(m + 2^127, 2^128) - 2^127
+ carry = (div(m + 2^127, 2^128) + 2^127) % 2^128 - 2^127
+ i += 1
+ u = if(a[0] > msz, a, b)
+ s = if(a[0] > msz, 1, sign)
+ while i < sz:
+ m = s * u[i + 1] + carry
+ c[i + 1] = mod(m + 2^127, 2^128) - 2^127
+ carry = (div(m + 2^127, 2^128) + 2^127) % 2^128 - 2^127
+ i += 1
+ if carry:
+ c[0] += 1
+ c[sz + 1] = carry
+ return(c, c[0]+1)
+
+def mul(a:a, b:a):
+ c = array(a[0] + b[0] + 2)
+ c[0] = a[0] + b[0]
+ i = 0
+ while i < a[0]:
+ j = 0
+ carry = 0
+ while j < b[0]:
+ m = c[i + j + 1] + a[i + 1] * b[j + 1] + carry
+ c[i + j + 1] = mod(m + 2^127, 2^128) - 2^127
+ carry = (div(m + 2^127, 2^128) + 2^127) % 2^128 - 2^127
+ j += 1
+ if carry:
+ c[0] = a[0] + b[0] + 1
+ c[i + j + 1] += carry
+ i += 1
+ return(c, c[0]+1)
+
+macro long($a) + long($b):
+ long(self.comb($a:$a[0]+1, $b:$b[0]+1, 1, outsz=$a[0]+$b[0]+2))
+
+macro long($a) - long($b):
+ long(self.comb($a:$a[0]+1, $b:$b[0]+1, -1, outsz=$a[0]+$b[0]+2))
+
+macro long($a) * long($b):
+ long(self.mul($a:$a[0]+1, $b:$b[0]+1, outsz=$a[0]+$b[0]+2))
+
+macro long($a) / long($b):
+ long(self.div($a:$a[0]+1, $b:$b[0]+1, outsz=$a[0]+$b[0]+2))
+
+macro mulexpand(long($a), $k, $m):
+ long:
+ with $c = array($a[0]+k+2):
+ $c[0] = $a[0]+$k
+ with i = 0:
+ while i < $a[0]:
+ v = $a[i+1] * $m + $c[i+$k+1]
+ $c[i+$k+1] = mod(v + 2^127, 2^128) - 2^127
+ $c[i+$k+2] = div(v + 2^127, 2^128)
+ i += 1
+ $c
+
+def div(a:a, b:a):
+ asz = a[0]
+ bsz = b[0]
+ while b[bsz] == 0 and bsz > 0:
+ bsz -= 1
+ c = array(asz+2)
+ c[0] = asz+1
+ while 1:
+ while a[asz] == 0 and asz > 0:
+ asz -= 1
+ if asz < bsz:
+ return(c, c[0]+1)
+ sub = expose(mulexpand(long(b), asz - bsz, a[asz] / b[bsz]))
+ c[asz - bsz+1] = a[asz] / b[bsz]
+ a = expose(long(a) - long(sub))
+ a[asz-1] += 2^128 * a[asz]
+ a[asz] = 0
+
+macro mklong($i):
+ long([2, mod($i + 2^127, 2^128) - 2^127, div($i + 2^127, 2^128)])
+
+macro expose(long($i)):
+ $i
+
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/mul2.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/mul2.se
new file mode 100644
index 000000000..65adff1e6
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/mul2.se
@@ -0,0 +1,2 @@
+def double(v):
+ return(v*2)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/mutuala.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/mutuala.se
new file mode 100644
index 000000000..3efb0edeb
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/mutuala.se
@@ -0,0 +1,187 @@
+# mutuala - subcurrency
+
+# We want to issue a currency that reduces in value as you store it through negative interest.
+# That negative interest would be stored in a commons account. It's like the p2p version of a
+# capital tax
+
+# the same things goes for transactions - you pay as you use the currency. However, the more
+# you pay, the more you get to say about what the tax is used for
+
+# each participant can propose a recipient for a payout to be made out of the commons account,
+# others can vote on it by awarding it tax_credits.
+
+# TODO should proposal have expiration timestamp?, after which the tax_credits are refunded
+# TODO multiple proposals can take more credits that available in the Commons, how to handle this
+# TODO how to handle lost accounts, after which no longer possible to get 2/3 majority
+
+shared:
+ COMMONS = 42
+ ADMIN = 666
+ CAPITAL_TAX_PER_DAY = 7305 # 5% per year
+ PAYMENT_TAX = 20 # 5%
+
+ ACCOUNT_LIST_OFFSET = 2^160
+ ACCOUNT_MAP_OFFSET = 2^161
+ PROPOSAL_LIST_OFFSET = 2^162
+ PROPOSAL_MAP_OFFSET = 2^163
+
+init:
+ contract.storage[ADMIN] = msg.sender
+ contract.storage[ACCOUNT_LIST_OFFSET - 1] = 1
+ contract.storage[ACCOUNT_LIST_OFFSET] = msg.sender
+ contract.storage[ACCOUNT_MAP_OFFSET + msg.sender] = 10^12
+ contract.storage[ACCOUNT_MAP_OFFSET + msg.sender + 1] = block.timestamp
+
+# contract.storage[COMMONS] = balance commons
+
+# contract.storage[ACCOUNT_LIST_OFFSET - 1] = number of accounts
+# contract.storage[ACCOUNT_LIST_OFFSET + n] = account n
+
+# contract.storage[PROPOSAL_LIST_OFFSET - 1] contains the number of proposals
+# contract.storage[PROPOSAL_LIST_OFFSET + n] = proposal n
+
+# per account:
+# contract.storage[ACCOUNT_MAP_OFFSET + account] = balance
+# contract.storage[ACCOUNT_MAP_OFFSET + account+1] = timestamp_last_transaction
+# contract.storage[ACCOUNT_MAP_OFFSET + account+2] = tax_credits
+
+# per proposal:
+# contract.storage[PROPOSAL_MAP_OFFSET + proposal_id] = recipient
+# contract.storage[PROPOSAL_MAP_OFFSET + proposal_id+1] = amount
+# contract.storage[PROPOSAL_MAP_OFFSET + proposal_id+2] = total vote credits
+
+code:
+ if msg.data[0] == "suicide" and msg.sender == contract.storage[ADMIN]:
+ suicide(msg.sender)
+
+ elif msg.data[0] == "balance":
+ addr = msg.data[1]
+ return(contract.storage[ACCOUNT_MAP_OFFSET + addr])
+
+ elif msg.data[0] == "pay":
+ from = msg.sender
+ fromvalue = contract.storage[ACCOUNT_MAP_OFFSET + from]
+ to = msg.data[1]
+ if to == 0 or to >= 2^160:
+ return([0, "invalid address"], 2)
+ value = msg.data[2]
+ tax = value / PAYMENT_TAX
+
+ if fromvalue >= value + tax:
+ contract.storage[ACCOUNT_MAP_OFFSET + from] = fromvalue - (value + tax)
+ contract.storage[ACCOUNT_MAP_OFFSET + to] += value
+ # tax
+ contract.storage[COMMONS] += tax
+ contract.storage[ACCOUNT_MAP_OFFSET + from + 2] += tax
+
+ # check timestamp field to see if target account exists
+ if contract.storage[ACCOUNT_MAP_OFFSET + to + 1] == 0:
+ # register new account
+ nr_accounts = contract.storage[ACCOUNT_LIST_OFFSET - 1]
+ contract.storage[ACCOUNT_LIST_OFFSET + nr_accounts] = to
+ contract.storage[ACCOUNT_LIST_OFFSET - 1] += 1
+ contract.storage[ACCOUNT_MAP_OFFSET + to + 1] = block.timestamp
+
+ return(1)
+ else:
+ return([0, "insufficient balance"], 2)
+
+ elif msg.data[0] == "hash":
+ proposal_id = sha3(msg.data[1])
+ return(proposal_id)
+
+ elif msg.data[0] == "propose":
+ from = msg.sender
+ # check if sender has an account and has tax credits
+ if contract.storage[ACCOUNT_MAP_OFFSET + from + 2] == 0:
+ return([0, "sender has no tax credits"], 2)
+
+ proposal_id = sha3(msg.data[1])
+ # check if proposal doesn't already exist
+ if contract.storage[PROPOSAL_MAP_OFFSET + proposal_id]:
+ return([0, "proposal already exists"])
+
+ to = msg.data[2]
+ # check if recipient is a valid address and has an account (with timestamp)
+ if to == 0 or to >= 2^160:
+ return([0, "invalid address"], 2)
+ if contract.storage[ACCOUNT_MAP_OFFSET + to + 1] == 0:
+ return([0, "invalid to account"], 2)
+
+ value = msg.data[3]
+ # check if there is enough money in the commons account
+ if value > contract.storage[COMMONS]:
+ return([0, "not enough credits in commons"], 2)
+
+ # record proposal in list
+ nr_proposals = contract.storage[PROPOSAL_LIST_OFFSET - 1]
+ contract.storage[PROPOSAL_LIST_OFFSET + nr_proposals] = proposal_id
+ contract.storage[PROPOSAL_LIST_OFFSET - 1] += 1
+
+ # record proposal in map
+ contract.storage[PROPOSAL_MAP_OFFSET + proposal_id] = to
+ contract.storage[PROPOSAL_MAP_OFFSET + proposal_id + 1] = value
+
+ return(proposal_id)
+
+ elif msg.data[0] == "vote":
+ from = msg.sender
+ proposal_id = sha3(msg.data[1])
+ value = msg.data[2]
+ # check if sender has an account and has tax credits
+ if value < contract.storage[ACCOUNT_MAP_OFFSET + from + 2]:
+ return([0, "sender doesn't have enough tax credits"], 2)
+
+ # check if proposal exist
+ if contract.storage[PROPOSAL_MAP_OFFSET + proposal_id] == 0:
+ return([0, "proposal doesn't exist"], 2)
+
+ # increase votes
+ contract.storage[PROPOSAL_MAP_OFFSET + proposal_id + 2] += value
+ # withdraw tax credits
+ contract.storage[ACCOUNT_MAP_OFFSET + from + 2] -= value
+
+ # did we reach 2/3 threshold?
+ if contract.storage[PROPOSAL_MAP_OFFSET + proposal_id + 2] >= contract.storage[COMMONS] * 2 / 3:
+ # got majority
+ to = contract.storage[PROPOSAL_MAP_OFFSET + proposal_id]
+ amount = contract.storage[PROPOSAL_MAP_OFFSET + proposal_id + 1]
+
+ # adjust balances
+ contract.storage[ACCOUNT_MAP_OFFSET + to] += amount
+ contract.storage[COMMONS] -= amount
+
+ # reset proposal
+ contract.storage[PROPOSAL_MAP_OFFSET + proposal_id] = 0
+ contract.storage[PROPOSAL_MAP_OFFSET + proposal_id + 1] = 0
+ contract.storage[PROPOSAL_MAP_OFFSET + proposal_id + 2] = 0
+ return(1)
+
+ return(proposal_id)
+
+ elif msg.data[0] == "tick":
+ nr_accounts = contract.storage[ACCOUNT_LIST_OFFSET - 1]
+ account_idx = 0
+ tax_paid = 0
+ # process all accounts and see if they have to pay their daily capital tax
+ while account_idx < nr_accounts:
+ cur_account = contract.storage[ACCOUNT_LIST_OFFSET + account_idx]
+ last_timestamp = contract.storage[ACCOUNT_MAP_OFFSET + cur_account + 1]
+ time_diff = block.timestamp - last_timestamp
+ if time_diff >= 86400:
+ tax_days = time_diff / 86400
+ balance = contract.storage[ACCOUNT_MAP_OFFSET + cur_account]
+ tax = tax_days * (balance / CAPITAL_TAX_PER_DAY)
+ if tax > 0:
+ # charge capital tax, but give tax credits in return
+ contract.storage[ACCOUNT_MAP_OFFSET + cur_account] -= tax
+ contract.storage[ACCOUNT_MAP_OFFSET + cur_account + 1] += tax_days * 86400
+ contract.storage[ACCOUNT_MAP_OFFSET + cur_account + 2] += tax
+
+ contract.storage[COMMONS] += tax
+ tax_paid += 1
+ account_idx += 1
+ return(tax_paid) # how many accounts did we charge tax on
+
+ else:
+ return([0, "unknown command"], 2)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/namecoin.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/namecoin.se
new file mode 100644
index 000000000..11d6274ae
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/namecoin.se
@@ -0,0 +1,7 @@
+def register(k, v):
+ if !self.storage[k]: # Is the key not yet taken?
+ # Then take it!
+ self.storage[k] = v
+ return(1)
+ else:
+ return(0) // Otherwise do nothing
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/peano.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/peano.se
new file mode 100644
index 000000000..979854444
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/peano.se
@@ -0,0 +1,43 @@
+macro padd($x, psuc($y)):
+ psuc(padd($x, $y))
+
+macro padd($x, z()):
+ $x
+
+macro dec(psuc($x)):
+ dec($x) + 1
+
+macro dec(z()):
+ 0
+
+macro pmul($x, z()):
+ z()
+
+macro pmul($x, psuc($y)):
+ padd(pmul($x, $y), $x)
+
+macro pexp($x, z()):
+ one()
+
+macro pexp($x, psuc($y)):
+ pmul($x, pexp($x, $y))
+
+macro fac(z()):
+ one()
+
+macro fac(psuc($x)):
+ pmul(psuc($x), fac($x))
+
+macro one():
+ psuc(z())
+
+macro two():
+ psuc(psuc(z()))
+
+macro three():
+ psuc(psuc(psuc(z())))
+
+macro five():
+ padd(three(), two())
+
+return([dec(pmul(three(), pmul(three(), three()))), dec(fac(five()))], 2)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/returnten.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/returnten.se
new file mode 100644
index 000000000..7969c9eb8
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/returnten.se
@@ -0,0 +1,4 @@
+extern mul2: [double]
+
+x = create("mul2.se")
+return(x.double(5))
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/quicksort.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/quicksort.se
new file mode 100644
index 000000000..be5d97fc7
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/quicksort.se
@@ -0,0 +1,33 @@
+def kall():
+ argcount = ~calldatasize() / 32
+ if argcount == 1:
+ return(~calldataload(1))
+
+ args = array(argcount)
+ ~calldatacopy(args, 1, argcount * 32)
+ low = array(argcount)
+ lsz = 0
+ high = array(argcount)
+ hsz = 0
+ i = 1
+ while i < argcount:
+ if args[i] < args[0]:
+ low[lsz] = args[i]
+ lsz += 1
+ else:
+ high[hsz] = args[i]
+ hsz += 1
+ i += 1
+ low = self.kall(data=low, datasz=lsz, outsz=lsz)
+ high = self.kall(data=high, datasz=hsz, outsz=hsz)
+ o = array(argcount)
+ i = 0
+ while i < lsz:
+ o[i] = low[i]
+ i += 1
+ o[lsz] = args[0]
+ j = 0
+ while j < hsz:
+ o[lsz + 1 + j] = high[j]
+ j += 1
+ return(o, argcount)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/quicksort_pairs.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/quicksort_pairs.se
new file mode 100644
index 000000000..0e603a238
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/quicksort_pairs.se
@@ -0,0 +1,46 @@
+# Quicksort pairs
+# eg. input of the form [ 30, 1, 90, 2, 70, 3, 50, 4]
+# outputs [ 30, 1, 50, 4, 70, 3, 90, 2 ]
+#
+# Note: this can be used as a generalized sorting algorithm:
+# map every object to [ key, ref ] where `ref` is the index
+# in memory to all of the properties and `key` is the key to
+# sort by
+
+
+def kall():
+ argcount = ~calldatasize() / 64
+ if argcount == 1:
+ return([~calldataload(1), ~calldataload(33)], 2)
+
+ args = array(argcount * 2)
+ ~calldatacopy(args, 1, argcount * 64)
+ low = array(argcount * 2)
+ lsz = 0
+ high = array(argcount * 2)
+ hsz = 0
+ i = 2
+ while i < argcount * 2:
+ if args[i] < args[0]:
+ low[lsz] = args[i]
+ low[lsz + 1] = args[i + 1]
+ lsz += 2
+ else:
+ high[hsz] = args[i]
+ high[hsz + 1] = args[i + 1]
+ hsz += 2
+ i = i + 2
+ low = self.kall(data=low, datasz=lsz, outsz=lsz)
+ high = self.kall(data=high, datasz=hsz, outsz=hsz)
+ o = array(argcount * 2)
+ i = 0
+ while i < lsz:
+ o[i] = low[i]
+ i += 1
+ o[lsz] = args[0]
+ o[lsz + 1] = args[1]
+ j = 0
+ while j < hsz:
+ o[lsz + 2 + j] = high[j]
+ j += 1
+ return(o, argcount * 2)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/schellingcoin.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/schellingcoin.se
new file mode 100644
index 000000000..a7d7da9c5
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/schellingcoin.se
@@ -0,0 +1,94 @@
+# SchellingCoin implementation
+#
+# Epoch length: 100 blocks
+# Target savings depletion rate: 0.1% per epoch
+
+data epoch
+data hashes_submitted
+data output
+data quicksort_pairs
+data accounts[2^160]
+data submissions[2^80](hash, deposit, address, value)
+extern any: [call]
+
+
+def init():
+ self.epoch = block.number / 100
+ self.quicksort_pairs = create('quicksort_pairs.se')
+
+def any():
+ if block.number / 100 > epoch:
+ # Sort all values submitted
+ N = self.hashes_submitted
+ o = array(N * 2)
+ i = 0
+ j = 0
+ while i < N:
+ v = self.submissions[i].value
+ if v:
+ o[j] = v
+ o[j + 1] = i
+ j += 2
+ i += 1
+ values = self.quicksort_pairs.call(data=o, datasz=j, outsz=j)
+
+ # Calculate total deposit, refund non-submitters and
+ # cleanup
+
+ deposits = array(j / 2)
+ addresses = array(j / 2)
+
+ i = 0
+ total_deposit = 0
+ while i < j / 2:
+ base_index = HASHES + values[i * 2 + 1] * 3
+ deposits[i] = self.submissions[i].deposit
+ addresses[i] = self.submissions[i].address
+ if self.submissions[values[i * 2 + 1]].value:
+ total_deposit += deposits[i]
+ else:
+ send(addresses[i], deposits[i] * 999 / 1000)
+ i += 1
+
+ inverse_profit_ratio = total_deposit / (contract.balance / 1000) + 1
+
+ # Reward everyone
+ i = 0
+ running_deposit_sum = 0
+ halfway_passed = 0
+ while i < j / 2:
+ new_deposit_sum = running_deposit_sum + deposits[i]
+ if new_deposit_sum > total_deposit / 4 and running_deposit_sum < total_deposit * 3 / 4:
+ send(addresses[i], deposits[i] + deposits[i] / inverse_profit_ratio * 2)
+ else:
+ send(addresses[i], deposits[i] - deposits[i] / inverse_profit_ratio)
+
+ if not halfway_passed and new_deposit_sum > total_deposit / 2:
+ self.output = self.submissions[i].value
+ halfway_passed = 1
+ self.submissions[i].value = 0
+ running_deposit_sum = new_deposit_sum
+ i += 1
+ self.epoch = block.number / 100
+ self.hashes_submitted = 0
+
+def submit_hash(h):
+ if block.number % 100 < 50:
+ cur = self.hashes_submitted
+ pos = HASHES + cur * 3
+ self.submissions[cur].hash = h
+ self.submissions[cur].deposit = msg.value
+ self.submissions[cur].address = msg.sender
+ self.hashes_submitted = cur + 1
+ return(cur)
+
+def submit_value(index, v):
+ if sha3([msg.sender, v], 2) == self.submissions[index].hash:
+ self.submissions[index].value = v
+ return(1)
+
+def request_balance():
+ return(contract.balance)
+
+def request_output():
+ return(self.output)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/schellingdollar.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/schellingdollar.se
new file mode 100644
index 000000000..a34f42ce2
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellingcoin/schellingdollar.se
@@ -0,0 +1,171 @@
+# Hedged zero-supply dollar implementation
+# Uses SchellingCoin as price-determining backend
+#
+# Stored variables:
+#
+# 0: Schelling coin contract
+# 1: Last epoch
+# 2: Genesis block of contract
+# 3: USD exposure
+# 4: ETH exposure
+# 5: Cached price
+# 6: Last interest rate
+# 2^160 + k: interest rate accumulator at k epochs
+# 2^161 + ADDR * 3: eth-balance of a particular address
+# 2^161 + ADDR * 3 + 1: usd-balance of a particular address
+# 2^161 + ADDR * 3 + 1: last accessed epoch of a particular address
+#
+# Transaction types:
+#
+# [1, to, val]: send ETH
+# [2, to, val]: send USD
+# [3, wei_amount]: convert ETH to USD
+# [4, usd_amount]: converts USD to ETH
+# [5]: deposit
+# [6, amount]: withdraw
+# [7]: my balance query
+# [7, acct]: balance query for any acct
+# [8]: global state query
+# [9]: liquidation test any account
+#
+# The purpose of the contract is to serve as a sort of cryptographic
+# bank account where users can store both ETH and USD. ETH must be
+# stored in zero or positive quantities, but USD balances can be
+# positive or negative. If the USD balance is negative, the invariant
+# usdbal * 10 >= ethbal * 9 must be satisfied; if any account falls
+# below this value, then that account's balances are zeroed. Note
+# that there is a 2% bounty to ping the app if an account does go
+# below zero; one weakness is that if no one does ping then it is
+# quite possible for accounts to go negative-net-worth, then zero
+# themselves out, draining the reserves of the "bank" and potentially
+# bankrupting it. A 0.1% fee on ETH <-> USD trade is charged to
+# minimize this risk. Additionally, the bank itself will inevitably
+# end up with positive or negative USD exposure; to mitigate this,
+# it automatically updates interest rates on USD to keep exposure
+# near zero.
+
+data schelling_coin
+data last_epoch
+data starting_block
+data usd_exposure
+data eth_exposure
+data price
+data last_interest_rate
+data interest_rate_accum[2^50]
+data accounts[2^160](eth, usd, last_epoch)
+
+extern sc: [submit_hash, submit_value, request_balance, request_output]
+
+def init():
+ self.schelling_coin = create('schellingcoin.se')
+ self.price = self.schelling_coin.request_output()
+ self.interest_rate_accum[0] = 10^18
+ self.starting_block = block.number
+
+def any():
+ sender = msg.sender
+ epoch = (block.number - self.starting_block) / 100
+ last_epoch = self.last_epoch
+ usdprice = self.price
+
+ # Update contract epochs
+ if epoch > last_epoch:
+ delta = epoch - last_epoch
+ last_interest_rate = self.last_interest_rate
+ usd_exposure - self.usd_exposure
+ last_accum = self.interest_rate_accum[last_epoch]
+
+ if usd_exposure < 0:
+ self.last_interest_rate = last_interest_rate - 10000 * delta
+ elif usd_exposure > 0:
+ self.last_interest_rate = last_interest_rate + 10000 * delta
+
+ self.interest_rate_accum[epoch] = last_accum + last_accum * last_interest_rate * delta / 10^9
+
+ # Proceeds go to support the SchellingCoin feeding it price data, ultimately providing the depositors
+ # of the SchellingCoin an interest rate
+ bal = max(self.balance - self.eth_exposure, 0) / 10000
+ usdprice = self.schelling_coin.request_output()
+ self.price = usdprice
+ self.last_epoch = epoch
+
+ ethbal = self.accounts[msg.sender].eth
+ usdbal = self.accounts[msg.sender].usd
+
+ # Apply interest rates to sender and liquidation-test self
+ if msg.sender != self:
+ self.ping(self)
+
+def send_eth(to, value):
+ if value > 0 and value <= ethbal and usdbal * usdprice * 2 + (ethbal - value) >= 0:
+ self.accounts[msg.sender].eth = ethbal - value
+ self.ping(to)
+ self.accounts[to].eth += value
+ return(1)
+
+def send_usd(to, value):
+ if value > 0 and value <= usdbal and (usdbal - value) * usdprice * 2 + ethbal >= 0:
+ self.accounts[msg.sender].usd = usdbal - value
+ self.ping(to)
+ self.accounts[to].usd += value
+ return(1)
+
+def convert_to_eth(usdvalue):
+ ethplus = usdvalue * usdprice * 999 / 1000
+ if usdvalue > 0 and (usdbal - usdvalue) * usdprice * 2 + (ethbal + ethplus) >= 0:
+ self.accounts[msg.sender].eth = ethbal + ethplus
+ self.accounts[msg.sender].usd = usdbal - usdvalue
+ self.eth_exposure += ethplus
+ self.usd_exposure -= usdvalue
+ return([ethbal + ethplus, usdbal - usdvalue], 2)
+
+def convert_to_usd(ethvalue):
+ usdplus = ethvalue / usdprice * 999 / 1000
+ if ethvalue > 0 and (usdbal + usdplus) * usdprice * 2 + (ethbal - ethvalue) >= 0:
+ self.accounts[msg.sender].eth = ethbal - ethvalue
+ self.accounts[msg.sender].usd = usdbal + usdplus
+ self.eth_exposure -= ethvalue
+ self.usd_exposure += usdplus
+ return([ethbal - ethvalue, usdbal + usdplus], 2)
+
+def deposit():
+ self.accounts[msg.sender].eth = ethbal + msg.value
+ self.eth_exposure += msg.value
+ return(ethbal + msg.value)
+
+def withdraw(value):
+ if value > 0 and value <= ethbal and usdbal * usdprice * 2 + (ethbal - value) >= 0:
+ self.accounts[msg.sender].eth -= value
+ self.eth_exposure -= value
+ return(ethbal - value)
+
+def balance(acct):
+ self.ping(acct)
+ return([self.accounts[acct].eth, self.accounts[acct].usd], 2)
+
+def global_state_query(acct):
+ interest = self.last_interest_rate
+ usd_exposure = self.usd_exposure
+ eth_exposure = self.eth_exposure
+ eth_balance = self.balance
+ return([epoch, usdprice, interest, usd_exposure, eth_exposure, eth_balance], 6)
+
+def ping(acct):
+ account_last_epoch = self.accounts[acct].last_epoch
+ if account_last_epoch != epoch:
+ cur_usd_balance = self.accounts[acct].usd
+ new_usd_balance = cur_usd_balance * self.interest_rate_accum[epoch] / self.interest_rate_accum[account_last_epoch]
+ self.accounts[acct].usd = new_usd_balance
+ self.accounts[acct].last_epoch = epoch
+ self.usd_exposure += new_usd_balance - cur_usd_balance
+
+ ethbal = self.accounts[acct].eth
+
+ if new_usd_balance * usdval * 10 + ethbal * 9 < 0:
+ self.accounts[acct].eth = 0
+ self.accounts[acct].usd = 0
+ self.accounts[msg.sender].eth += ethbal / 50
+ self.eth_exposure += -ethbal + ethbal / 50
+ self.usd_exposure += new_usd_balance
+ return(1)
+ return(0)
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellinghelper.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellinghelper.se
new file mode 100644
index 000000000..0e522d6e8
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/schellinghelper.se
@@ -0,0 +1 @@
+return(sha3([msg.sender, msg.data[0]], 2))
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/short_namecoin.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/short_namecoin.se
new file mode 100644
index 000000000..db327a77d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/short_namecoin.se
@@ -0,0 +1,3 @@
+def register(k, v):
+ if !self.storage[k]:
+ self.storage[k] = v
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/subcurrency.se b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/subcurrency.se
new file mode 100644
index 000000000..fbda822b6
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/examples/subcurrency.se
@@ -0,0 +1,11 @@
+def init():
+ self.storage[msg.sender] = 1000000
+
+def balance_query(k):
+ return(self.storage[addr])
+
+def send(to, value):
+ fromvalue = self.storage[msg.sender]
+ if fromvalue >= value:
+ self.storage[from] = fromvalue - value
+ self.storage[to] += value
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/funcs.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/funcs.cpp
new file mode 100644
index 000000000..ea9be14a6
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/funcs.cpp
@@ -0,0 +1,35 @@
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include "funcs.h"
+#include "bignum.h"
+#include "util.h"
+#include "parser.h"
+#include "lllparser.h"
+#include "compiler.h"
+#include "rewriter.h"
+#include "tokenize.h"
+
+Node compileToLLL(std::string input) {
+ return rewrite(parseSerpent(input));
+}
+
+Node compileChunkToLLL(std::string input) {
+ return rewriteChunk(parseSerpent(input));
+}
+
+std::string compile(std::string input) {
+ return compileLLL(compileToLLL(input));
+}
+
+std::vector<Node> prettyCompile(std::string input) {
+ return prettyCompileLLL(compileToLLL(input));
+}
+
+std::string compileChunk(std::string input) {
+ return compileLLL(compileChunkToLLL(input));
+}
+
+std::vector<Node> prettyCompileChunk(std::string input) {
+ return prettyCompileLLL(compileChunkToLLL(input));
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/funcs.h b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/funcs.h
new file mode 100644
index 000000000..d9bf44549
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/funcs.h
@@ -0,0 +1,35 @@
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include "bignum.h"
+#include "util.h"
+#include "parser.h"
+#include "lllparser.h"
+#include "compiler.h"
+#include "rewriter.h"
+#include "tokenize.h"
+
+// Function listing:
+//
+// parseSerpent (serpent -> AST) std::string -> Node
+// parseLLL (LLL -> AST) std::string -> Node
+// rewrite (apply rewrite rules) Node -> Node
+// compileToLLL (serpent -> LLL) std::string -> Node
+// compileLLL (LLL -> EVMhex) Node -> std::string
+// prettyCompileLLL (LLL -> EVMasm) Node -> std::vector<Node>
+// prettyCompile (serpent -> EVMasm) std::string -> std::vector>Node>
+// compile (serpent -> EVMhex) std::string -> std::string
+// get_file_contents (filename -> file) std::string -> std::string
+// exists (does file exist?) std::string -> bool
+
+Node compileToLLL(std::string input);
+
+Node compileChunkToLLL(std::string input);
+
+std::string compile(std::string input);
+
+std::vector<Node> prettyCompile(std::string input);
+
+std::string compileChunk(std::string input);
+
+std::vector<Node> prettyCompileChunk(std::string input);
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/functions.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/functions.cpp
new file mode 100644
index 000000000..78e12e84a
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/functions.cpp
@@ -0,0 +1,203 @@
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+#include "lllparser.h"
+#include "bignum.h"
+#include "optimize.h"
+#include "rewriteutils.h"
+#include "preprocess.h"
+#include "functions.h"
+
+std::string getSignature(std::vector<Node> args) {
+ std::string o;
+ for (unsigned i = 0; i < args.size(); i++) {
+ if (args[i].val == ":" && args[i].args[1].val == "s")
+ o += "s";
+ else if (args[i].val == ":" && args[i].args[1].val == "a")
+ o += "a";
+ else
+ o += "i";
+ }
+ return o;
+}
+
+// Convert a list of arguments into a node containing a
+// < datastart, datasz > pair
+
+Node packArguments(std::vector<Node> args, std::string sig,
+ int funId, Metadata m) {
+ // Plain old 32 byte arguments
+ std::vector<Node> nargs;
+ // Variable-sized arguments
+ std::vector<Node> vargs;
+ // Variable sizes
+ std::vector<Node> sizes;
+ // Is a variable an array?
+ std::vector<bool> isArray;
+ // Fill up above three argument lists
+ int argCount = 0;
+ for (unsigned i = 0; i < args.size(); i++) {
+ Metadata m = args[i].metadata;
+ if (args[i].val == "=") {
+ // do nothing
+ }
+ else {
+ // Determine the correct argument type
+ char argType;
+ if (sig.size() > 0) {
+ if (argCount >= (signed)sig.size())
+ err("Too many args", m);
+ argType = sig[argCount];
+ }
+ else argType = 'i';
+ // Integer (also usable for short strings)
+ if (argType == 'i') {
+ if (args[i].val == ":")
+ err("Function asks for int, provided string or array", m);
+ nargs.push_back(args[i]);
+ }
+ // Long string
+ else if (argType == 's') {
+ if (args[i].val != ":")
+ err("Must specify string length", m);
+ vargs.push_back(args[i].args[0]);
+ sizes.push_back(args[i].args[1]);
+ isArray.push_back(false);
+ }
+ // Array
+ else if (argType == 'a') {
+ if (args[i].val != ":")
+ err("Must specify array length", m);
+ vargs.push_back(args[i].args[0]);
+ sizes.push_back(args[i].args[1]);
+ isArray.push_back(true);
+ }
+ else err("Invalid arg type in signature", m);
+ argCount++;
+ }
+ }
+ int static_arg_size = 1 + (vargs.size() + nargs.size()) * 32;
+ // Start off by saving the size variables and calculating the total
+ msn kwargs;
+ kwargs["funid"] = tkn(utd(funId), m);
+ std::string pattern =
+ "(with _sztot "+utd(static_arg_size)+" "
+ " (with _sizes (alloc "+utd(sizes.size() * 32)+") "
+ " (seq ";
+ for (unsigned i = 0; i < sizes.size(); i++) {
+ std::string sizeIncrement =
+ isArray[i] ? "(mul 32 _x)" : "_x";
+ pattern +=
+ "(with _x $sz"+utd(i)+"(seq "
+ " (mstore (add _sizes "+utd(i * 32)+") _x) "
+ " (set _sztot (add _sztot "+sizeIncrement+" )))) ";
+ kwargs["sz"+utd(i)] = sizes[i];
+ }
+ // Allocate memory, and set first data byte
+ pattern +=
+ "(with _datastart (alloc (add _sztot 32)) (seq "
+ " (mstore8 _datastart $funid) ";
+ // Copy over size variables
+ for (unsigned i = 0; i < sizes.size(); i++) {
+ int v = 1 + i * 32;
+ pattern +=
+ " (mstore "
+ " (add _datastart "+utd(v)+") "
+ " (mload (add _sizes "+utd(v-1)+"))) ";
+ }
+ // Store normal arguments
+ for (unsigned i = 0; i < nargs.size(); i++) {
+ int v = 1 + (i + sizes.size()) * 32;
+ pattern +=
+ " (mstore (add _datastart "+utd(v)+") $"+utd(i)+") ";
+ kwargs[utd(i)] = nargs[i];
+ }
+ // Loop through variable-sized arguments, store them
+ pattern +=
+ " (with _pos (add _datastart "+utd(static_arg_size)+") (seq";
+ for (unsigned i = 0; i < vargs.size(); i++) {
+ std::string copySize =
+ isArray[i] ? "(mul 32 (mload (add _sizes "+utd(i * 32)+")))"
+ : "(mload (add _sizes "+utd(i * 32)+"))";
+ pattern +=
+ " (unsafe_mcopy _pos $vl"+utd(i)+" "+copySize+") "
+ " (set _pos (add _pos "+copySize+")) ";
+ kwargs["vl"+utd(i)] = vargs[i];
+ }
+ // Return a 2-item array containing the start and size
+ pattern += " (array_lit _datastart _sztot))))))))";
+ std::string prefix = "_temp_"+mkUniqueToken();
+ // Fill in pattern, return triple
+ return subst(parseLLL(pattern), kwargs, prefix, m);
+}
+
+// Create a node for argument unpacking
+Node unpackArguments(std::vector<Node> vars, Metadata m) {
+ std::vector<std::string> varNames;
+ std::vector<std::string> longVarNames;
+ std::vector<bool> longVarIsArray;
+ // Fill in variable and long variable names, as well as which
+ // long variables are arrays and which are strings
+ for (unsigned i = 0; i < vars.size(); i++) {
+ if (vars[i].val == ":") {
+ if (vars[i].args.size() != 2)
+ err("Malformed def!", m);
+ longVarNames.push_back(vars[i].args[0].val);
+ std::string tag = vars[i].args[1].val;
+ if (tag == "s")
+ longVarIsArray.push_back(false);
+ else if (tag == "a")
+ longVarIsArray.push_back(true);
+ else
+ err("Function value can only be string or array", m);
+ }
+ else {
+ varNames.push_back(vars[i].val);
+ }
+ }
+ std::vector<Node> sub;
+ if (!varNames.size() && !longVarNames.size()) {
+ // do nothing if we have no arguments
+ }
+ else {
+ std::vector<Node> varNodes;
+ for (unsigned i = 0; i < longVarNames.size(); i++)
+ varNodes.push_back(token(longVarNames[i], m));
+ for (unsigned i = 0; i < varNames.size(); i++)
+ varNodes.push_back(token(varNames[i], m));
+ // Copy over variable lengths and short variables
+ for (unsigned i = 0; i < varNodes.size(); i++) {
+ int pos = 1 + i * 32;
+ std::string prefix = (i < longVarNames.size()) ? "_len_" : "";
+ sub.push_back(asn("untyped", asn("set",
+ token(prefix+varNodes[i].val, m),
+ asn("calldataload", tkn(utd(pos), m), m),
+ m)));
+ }
+ // Copy over long variables
+ if (longVarNames.size() > 0) {
+ std::vector<Node> sub2;
+ int pos = varNodes.size() * 32 + 1;
+ Node tot = tkn("_tot", m);
+ for (unsigned i = 0; i < longVarNames.size(); i++) {
+ Node var = tkn(longVarNames[i], m);
+ Node varlen = longVarIsArray[i]
+ ? asn("mul", tkn("32", m), tkn("_len_"+longVarNames[i], m))
+ : tkn("_len_"+longVarNames[i], m);
+ sub2.push_back(asn("untyped",
+ asn("set", var, asn("alloc", varlen))));
+ sub2.push_back(asn("calldatacopy", var, tot, varlen));
+ sub2.push_back(asn("set", tot, asn("add", tot, varlen)));
+ }
+ std::string prefix = "_temp_"+mkUniqueToken();
+ sub.push_back(subst(
+ astnode("with", tot, tkn(utd(pos), m), asn("seq", sub2)),
+ msn(),
+ prefix,
+ m));
+ }
+ }
+ return asn("seq", sub, m);
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/functions.h b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/functions.h
new file mode 100644
index 000000000..68a1c69ce
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/functions.h
@@ -0,0 +1,39 @@
+#ifndef ETHSERP_FUNCTIONS
+#define ETHSERP_FUNCTIONS
+
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+#include "lllparser.h"
+#include "bignum.h"
+#include "optimize.h"
+#include "rewriteutils.h"
+#include "preprocess.h"
+
+
+class argPack {
+ public:
+ argPack(Node a, Node b, Node c) {
+ pre = a;
+ datastart = b;
+ datasz = c;
+ }
+ Node pre;
+ Node datastart;
+ Node datasz;
+};
+
+// Get a signature from a function
+std::string getSignature(std::vector<Node> args);
+
+// Convert a list of arguments into a <pre, mstart, msize> node
+// triple, given the signature of a function
+Node packArguments(std::vector<Node> args, std::string sig,
+ int funId, Metadata m);
+
+// Create a node for argument unpacking
+Node unpackArguments(std::vector<Node> vars, Metadata m);
+
+#endif
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/lllparser.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/lllparser.cpp
new file mode 100644
index 000000000..ad4fbd52d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/lllparser.cpp
@@ -0,0 +1,70 @@
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+#include "lllparser.h"
+#include "tokenize.h"
+
+struct _parseOutput {
+ Node node;
+ int newpos;
+};
+
+// Helper, returns subtree and position of start of next node
+_parseOutput _parse(std::vector<Node> inp, int pos) {
+ Metadata met = inp[pos].metadata;
+ _parseOutput o;
+ // Bracket: keep grabbing tokens until we get to the
+ // corresponding closing bracket
+ if (inp[pos].val == "(" || inp[pos].val == "[") {
+ std::string fun, rbrack;
+ std::vector<Node> args;
+ pos += 1;
+ if (inp[pos].val == "[") {
+ fun = "access";
+ rbrack = "]";
+ }
+ else rbrack = ")";
+ // First argument is the function
+ while (inp[pos].val != ")") {
+ _parseOutput po = _parse(inp, pos);
+ if (fun.length() == 0 && po.node.type == 1) {
+ std::cerr << "Error: first arg must be function\n";
+ fun = po.node.val;
+ }
+ else if (fun.length() == 0) {
+ fun = po.node.val;
+ }
+ else {
+ args.push_back(po.node);
+ }
+ pos = po.newpos;
+ }
+ o.newpos = pos + 1;
+ o.node = astnode(fun, args, met);
+ }
+ // Normal token, return it and advance to next token
+ else {
+ o.newpos = pos + 1;
+ o.node = token(inp[pos].val, met);
+ }
+ return o;
+}
+
+// stream of tokens -> lisp parse tree
+Node parseLLLTokenStream(std::vector<Node> inp) {
+ _parseOutput o = _parse(inp, 0);
+ return o.node;
+}
+
+// Parses LLL
+Node parseLLL(std::string s, bool allowFileRead) {
+ std::string input = s;
+ std::string file = "main";
+ if (exists(s) && allowFileRead) {
+ file = s;
+ input = get_file_contents(s);
+ }
+ return parseLLLTokenStream(tokenize(s, Metadata(file, 0, 0), true));
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/lllparser.h b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/lllparser.h
new file mode 100644
index 000000000..4bfa7b82e
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/lllparser.h
@@ -0,0 +1,13 @@
+#ifndef ETHSERP_LLLPARSER
+#define ETHSERP_LLLPARSER
+
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+
+// LLL text -> parse tree
+Node parseLLL(std::string s, bool allowFileRead=false);
+
+#endif
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/opcodes.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/opcodes.cpp
new file mode 100644
index 000000000..b24144e46
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/opcodes.cpp
@@ -0,0 +1,154 @@
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "opcodes.h"
+#include "util.h"
+#include "bignum.h"
+
+Mapping mapping[] = {
+ Mapping("STOP", 0x00, 0, 0),
+ Mapping("ADD", 0x01, 2, 1),
+ Mapping("MUL", 0x02, 2, 1),
+ Mapping("SUB", 0x03, 2, 1),
+ Mapping("DIV", 0x04, 2, 1),
+ Mapping("SDIV", 0x05, 2, 1),
+ Mapping("MOD", 0x06, 2, 1),
+ Mapping("SMOD", 0x07, 2, 1),
+ Mapping("ADDMOD", 0x08, 3, 1),
+ Mapping("MULMOD", 0x09, 3, 1),
+ Mapping("EXP", 0x0a, 2, 1),
+ Mapping("SIGNEXTEND", 0x0b, 2, 1),
+ Mapping("LT", 0x10, 2, 1),
+ Mapping("GT", 0x11, 2, 1),
+ Mapping("SLT", 0x12, 2, 1),
+ Mapping("SGT", 0x13, 2, 1),
+ Mapping("EQ", 0x14, 2, 1),
+ Mapping("ISZERO", 0x15, 1, 1),
+ Mapping("AND", 0x16, 2, 1),
+ Mapping("OR", 0x17, 2, 1),
+ Mapping("XOR", 0x18, 2, 1),
+ Mapping("NOT", 0x19, 1, 1),
+ Mapping("BYTE", 0x1a, 2, 1),
+ Mapping("SHA3", 0x20, 2, 1),
+ Mapping("ADDRESS", 0x30, 0, 1),
+ Mapping("BALANCE", 0x31, 1, 1),
+ Mapping("ORIGIN", 0x32, 0, 1),
+ Mapping("CALLER", 0x33, 0, 1),
+ Mapping("CALLVALUE", 0x34, 0, 1),
+ Mapping("CALLDATALOAD", 0x35, 1, 1),
+ Mapping("CALLDATASIZE", 0x36, 0, 1),
+ Mapping("CALLDATACOPY", 0x37, 3, 0),
+ Mapping("CODESIZE", 0x38, 0, 1),
+ Mapping("CODECOPY", 0x39, 3, 0),
+ Mapping("GASPRICE", 0x3a, 0, 1),
+ Mapping("EXTCODESIZE", 0x3b, 1, 1),
+ Mapping("EXTCODECOPY", 0x3c, 4, 0),
+ Mapping("PREVHASH", 0x40, 0, 1),
+ Mapping("COINBASE", 0x41, 0, 1),
+ Mapping("TIMESTAMP", 0x42, 0, 1),
+ Mapping("NUMBER", 0x43, 0, 1),
+ Mapping("DIFFICULTY", 0x44, 0, 1),
+ Mapping("GASLIMIT", 0x45, 0, 1),
+ Mapping("POP", 0x50, 1, 0),
+ Mapping("MLOAD", 0x51, 1, 1),
+ Mapping("MSTORE", 0x52, 2, 0),
+ Mapping("MSTORE8", 0x53, 2, 0),
+ Mapping("SLOAD", 0x54, 1, 1),
+ Mapping("SSTORE", 0x55, 2, 0),
+ Mapping("JUMP", 0x56, 1, 0),
+ Mapping("JUMPI", 0x57, 2, 0),
+ Mapping("PC", 0x58, 0, 1),
+ Mapping("MSIZE", 0x59, 0, 1),
+ Mapping("GAS", 0x5a, 0, 1),
+ Mapping("JUMPDEST", 0x5b, 0, 0),
+ Mapping("LOG0", 0xa0, 2, 0),
+ Mapping("LOG1", 0xa1, 3, 0),
+ Mapping("LOG2", 0xa2, 4, 0),
+ Mapping("LOG3", 0xa3, 5, 0),
+ Mapping("LOG4", 0xa4, 6, 0),
+ Mapping("CREATE", 0xf0, 3, 1),
+ Mapping("CALL", 0xf1, 7, 1),
+ Mapping("CALLCODE", 0xf2, 7, 1),
+ Mapping("RETURN", 0xf3, 2, 0),
+ Mapping("SUICIDE", 0xff, 1, 0),
+ Mapping("---END---", 0x00, 0, 0),
+};
+
+std::map<std::string, std::vector<int> > opcodes;
+std::map<int, std::string> reverseOpcodes;
+
+// Fetches everything EXCEPT PUSH1..32
+std::pair<std::string, std::vector<int> > _opdata(std::string ops, int opi) {
+ if (!opcodes.size()) {
+ int i = 0;
+ while (mapping[i].op != "---END---") {
+ Mapping mi = mapping[i];
+ opcodes[mi.op] = triple(mi.opcode, mi.in, mi.out);
+ i++;
+ }
+ for (i = 1; i <= 16; i++) {
+ opcodes["DUP"+unsignedToDecimal(i)] = triple(0x7f + i, i, i+1);
+ opcodes["SWAP"+unsignedToDecimal(i)] = triple(0x8f + i, i+1, i+1);
+ }
+ for (std::map<std::string, std::vector<int> >::iterator it=opcodes.begin();
+ it != opcodes.end();
+ it++) {
+ reverseOpcodes[(*it).second[0]] = (*it).first;
+ }
+ }
+ ops = upperCase(ops);
+ std::string op;
+ std::vector<int> opdata;
+ op = reverseOpcodes.count(opi) ? reverseOpcodes[opi] : "";
+ opdata = opcodes.count(ops) ? opcodes[ops] : triple(-1, -1, -1);
+ return std::pair<std::string, std::vector<int> >(op, opdata);
+}
+
+int opcode(std::string op) {
+ return _opdata(op, -1).second[0];
+}
+
+int opinputs(std::string op) {
+ return _opdata(op, -1).second[1];
+}
+
+int opoutputs(std::string op) {
+ return _opdata(op, -1).second[2];
+}
+
+std::string op(int opcode) {
+ return _opdata("", opcode).first;
+}
+
+std::string lllSpecials[][3] = {
+ { "ref", "1", "1" },
+ { "get", "1", "1" },
+ { "set", "2", "2" },
+ { "with", "3", "3" },
+ { "comment", "0", "2147483647" },
+ { "ops", "0", "2147483647" },
+ { "lll", "2", "2" },
+ { "seq", "0", "2147483647" },
+ { "if", "3", "3" },
+ { "unless", "2", "2" },
+ { "until", "2", "2" },
+ { "alloc", "1", "1" },
+ { "---END---", "0", "0" },
+};
+
+std::map<std::string, std::pair<int, int> > lllMap;
+
+// Is a function name one of the valid functions above?
+bool isValidLLLFunc(std::string f, int argc) {
+ if (lllMap.size() == 0) {
+ for (int i = 0; ; i++) {
+ if (lllSpecials[i][0] == "---END---") break;
+ lllMap[lllSpecials[i][0]] = std::pair<int, int>(
+ dtu(lllSpecials[i][1]), dtu(lllSpecials[i][2]));
+ }
+ }
+ return lllMap.count(f)
+ && argc >= lllMap[f].first
+ && argc <= lllMap[f].second;
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/opcodes.h b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/opcodes.h
new file mode 100644
index 000000000..41423c169
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/opcodes.h
@@ -0,0 +1,45 @@
+#ifndef ETHSERP_OPCODES
+#define ETHSERP_OPCODES
+
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+
+class Mapping {
+ public:
+ Mapping(std::string Op, int Opcode, int In, int Out) {
+ op = Op;
+ opcode = Opcode;
+ in = In;
+ out = Out;
+ }
+ std::string op;
+ int opcode;
+ int in;
+ int out;
+};
+
+extern Mapping mapping[];
+
+extern std::map<std::string, std::vector<int> > opcodes;
+extern std::map<int, std::string> reverseOpcodes;
+
+std::pair<std::string, std::vector<int> > _opdata(std::string ops, int opi);
+
+int opcode(std::string op);
+
+int opinputs(std::string op);
+
+int opoutputs(std::string op);
+
+std::string op(int opcode);
+
+extern std::string lllSpecials[][3];
+
+extern std::map<std::string, std::pair<int, int> > lllMap;
+
+bool isValidLLLFunc(std::string f, int argc);
+
+#endif
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/optimize.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/optimize.cpp
new file mode 100644
index 000000000..e689fcb69
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/optimize.cpp
@@ -0,0 +1,98 @@
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+#include "lllparser.h"
+#include "bignum.h"
+
+// Compile-time arithmetic calculations
+Node optimize(Node inp) {
+ if (inp.type == TOKEN) {
+ Node o = tryNumberize(inp);
+ if (decimalGt(o.val, tt256, true))
+ err("Value too large (exceeds 32 bytes or 2^256)", inp.metadata);
+ return o;
+ }
+ for (unsigned i = 0; i < inp.args.size(); i++) {
+ inp.args[i] = optimize(inp.args[i]);
+ }
+ // Arithmetic-specific transform
+ if (inp.val == "+") inp.val = "add";
+ if (inp.val == "*") inp.val = "mul";
+ if (inp.val == "-") inp.val = "sub";
+ if (inp.val == "/") inp.val = "sdiv";
+ if (inp.val == "^") inp.val = "exp";
+ if (inp.val == "**") inp.val = "exp";
+ if (inp.val == "%") inp.val = "smod";
+ // Degenerate cases for add and mul
+ if (inp.args.size() == 2) {
+ if (inp.val == "add" && inp.args[0].type == TOKEN &&
+ inp.args[0].val == "0") {
+ Node x = inp.args[1];
+ inp = x;
+ }
+ if (inp.val == "add" && inp.args[1].type == TOKEN &&
+ inp.args[1].val == "0") {
+ Node x = inp.args[0];
+ inp = x;
+ }
+ if (inp.val == "mul" && inp.args[0].type == TOKEN &&
+ inp.args[0].val == "1") {
+ Node x = inp.args[1];
+ inp = x;
+ }
+ if (inp.val == "mul" && inp.args[1].type == TOKEN &&
+ inp.args[1].val == "1") {
+ Node x = inp.args[0];
+ inp = x;
+ }
+ }
+ // Arithmetic computation
+ if (inp.args.size() == 2
+ && inp.args[0].type == TOKEN
+ && inp.args[1].type == TOKEN) {
+ std::string o;
+ if (inp.val == "add") {
+ o = decimalMod(decimalAdd(inp.args[0].val, inp.args[1].val), tt256);
+ }
+ else if (inp.val == "sub") {
+ if (decimalGt(inp.args[0].val, inp.args[1].val, true))
+ o = decimalSub(inp.args[0].val, inp.args[1].val);
+ }
+ else if (inp.val == "mul") {
+ o = decimalMod(decimalMul(inp.args[0].val, inp.args[1].val), tt256);
+ }
+ else if (inp.val == "div" && inp.args[1].val != "0") {
+ o = decimalDiv(inp.args[0].val, inp.args[1].val);
+ }
+ else if (inp.val == "sdiv" && inp.args[1].val != "0"
+ && decimalGt(tt255, inp.args[0].val)
+ && decimalGt(tt255, inp.args[1].val)) {
+ o = decimalDiv(inp.args[0].val, inp.args[1].val);
+ }
+ else if (inp.val == "mod" && inp.args[1].val != "0") {
+ o = decimalMod(inp.args[0].val, inp.args[1].val);
+ }
+ else if (inp.val == "smod" && inp.args[1].val != "0"
+ && decimalGt(tt255, inp.args[0].val)
+ && decimalGt(tt255, inp.args[1].val)) {
+ o = decimalMod(inp.args[0].val, inp.args[1].val);
+ }
+ else if (inp.val == "exp") {
+ o = decimalModExp(inp.args[0].val, inp.args[1].val, tt256);
+ }
+ if (o.length()) return token(o, inp.metadata);
+ }
+ return inp;
+}
+
+// Is a node degenerate (ie. trivial to calculate) ?
+bool isDegenerate(Node n) {
+ return optimize(n).type == TOKEN;
+}
+
+// Is a node purely arithmetic?
+bool isPureArithmetic(Node n) {
+ return isNumberLike(optimize(n));
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/optimize.h b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/optimize.h
new file mode 100644
index 000000000..06ea3bba1
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/optimize.h
@@ -0,0 +1,19 @@
+#ifndef ETHSERP_OPTIMIZER
+#define ETHSERP_OPTIMIZER
+
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+
+// Compile-time arithmetic calculations
+Node optimize(Node inp);
+
+// Is a node degenerate (ie. trivial to calculate) ?
+bool isDegenerate(Node n);
+
+// Is a node purely arithmetic?
+bool isPureArithmetic(Node n);
+
+#endif
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/parser.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/parser.cpp
new file mode 100644
index 000000000..5e8c459c3
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/parser.cpp
@@ -0,0 +1,430 @@
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+#include "parser.h"
+#include "tokenize.h"
+
+// Extended BEDMAS precedence order
+int precedence(Node tok) {
+ std::string v = tok.val;
+ if (v == ".") return -1;
+ else if (v == "!" || v == "not") return 1;
+ else if (v=="^" || v == "**") return 2;
+ else if (v=="*" || v=="/" || v=="%") return 3;
+ else if (v=="+" || v=="-") return 4;
+ else if (v=="<" || v==">" || v=="<=" || v==">=") return 5;
+ else if (v=="&" || v=="|" || v=="xor" || v=="==" || v == "!=") return 6;
+ else if (v=="&&" || v=="and") return 7;
+ else if (v=="||" || v=="or") return 8;
+ else if (v=="=") return 10;
+ else if (v=="+=" || v=="-=" || v=="*=" || v=="/=" || v=="%=") return 10;
+ else if (v==":" || v == "::") return 11;
+ else return 0;
+}
+
+// Token classification for shunting-yard purposes
+int toktype(Node tok) {
+ if (tok.type == ASTNODE) return COMPOUND;
+ std::string v = tok.val;
+ if (v == "(" || v == "[" || v == "{") return LPAREN;
+ else if (v == ")" || v == "]" || v == "}") return RPAREN;
+ else if (v == ",") return COMMA;
+ else if (v == "!" || v == "~" || v == "not") return UNARY_OP;
+ else if (precedence(tok) > 0) return BINARY_OP;
+ else if (precedence(tok) < 0) return TOKEN_SPLITTER;
+ if (tok.val[0] != '"' && tok.val[0] != '\'') {
+ for (unsigned i = 0; i < tok.val.length(); i++) {
+ if (chartype(tok.val[i]) == SYMB) {
+ err("Invalid symbol: "+tok.val, tok.metadata);
+ }
+ }
+ }
+ return ALPHANUM;
+}
+
+
+// Converts to reverse polish notation
+std::vector<Node> shuntingYard(std::vector<Node> tokens) {
+ std::vector<Node> iq;
+ for (int i = tokens.size() - 1; i >= 0; i--) {
+ iq.push_back(tokens[i]);
+ }
+ std::vector<Node> oq;
+ std::vector<Node> stack;
+ Node prev, tok;
+ int prevtyp = 0, toktyp = 0;
+
+ while (iq.size()) {
+ prev = tok;
+ prevtyp = toktyp;
+ tok = iq.back();
+ toktyp = toktype(tok);
+ iq.pop_back();
+ // Alphanumerics go straight to output queue
+ if (toktyp == ALPHANUM) {
+ oq.push_back(tok);
+ }
+ // Left parens go on stack and output queue
+ else if (toktyp == LPAREN) {
+ while (stack.size() && toktype(stack.back()) == TOKEN_SPLITTER) {
+ oq.push_back(stack.back());
+ stack.pop_back();
+ }
+ if (prevtyp != ALPHANUM && prevtyp != RPAREN) {
+ oq.push_back(token("id", tok.metadata));
+ }
+ stack.push_back(tok);
+ oq.push_back(tok);
+ }
+ // If rparen, keep moving from stack to output queue until lparen
+ else if (toktyp == RPAREN) {
+ while (stack.size() && toktype(stack.back()) != LPAREN) {
+ oq.push_back(stack.back());
+ stack.pop_back();
+ }
+ if (stack.size()) {
+ stack.pop_back();
+ }
+ oq.push_back(tok);
+ }
+ else if (toktyp == UNARY_OP) {
+ stack.push_back(tok);
+ }
+ // If token splitter, just push it to the stack
+ else if (toktyp == TOKEN_SPLITTER) {
+ while (stack.size() && toktype(stack.back()) == TOKEN_SPLITTER) {
+ oq.push_back(stack.back());
+ stack.pop_back();
+ }
+ stack.push_back(tok);
+ }
+ // If binary op, keep popping from stack while higher bedmas precedence
+ else if (toktyp == BINARY_OP) {
+ if (tok.val == "-" && prevtyp != ALPHANUM && prevtyp != RPAREN) {
+ stack.push_back(tok);
+ oq.push_back(token("0", tok.metadata));
+ }
+ else {
+ int prec = precedence(tok);
+ while (stack.size()
+ && (toktype(stack.back()) == BINARY_OP
+ || toktype(stack.back()) == UNARY_OP
+ || toktype(stack.back()) == TOKEN_SPLITTER)
+ && precedence(stack.back()) <= prec) {
+ oq.push_back(stack.back());
+ stack.pop_back();
+ }
+ stack.push_back(tok);
+ }
+ }
+ // Comma means finish evaluating the argument
+ else if (toktyp == COMMA) {
+ while (stack.size() && toktype(stack.back()) != LPAREN) {
+ oq.push_back(stack.back());
+ stack.pop_back();
+ }
+ }
+ }
+ while (stack.size()) {
+ oq.push_back(stack.back());
+ stack.pop_back();
+ }
+ return oq;
+}
+
+// Converts reverse polish notation into tree
+Node treefy(std::vector<Node> stream) {
+ std::vector<Node> iq;
+ for (int i = stream.size() -1; i >= 0; i--) {
+ iq.push_back(stream[i]);
+ }
+ std::vector<Node> oq;
+ while (iq.size()) {
+ Node tok = iq.back();
+ iq.pop_back();
+ int typ = toktype(tok);
+ // If unary, take node off end of oq and wrap it with the operator
+ // If binary, do the same with two nodes
+ if (typ == UNARY_OP || typ == BINARY_OP || typ == TOKEN_SPLITTER) {
+ std::vector<Node> args;
+ int rounds = (typ == UNARY_OP) ? 1 : 2;
+ for (int i = 0; i < rounds; i++) {
+ if (oq.size() == 0) {
+ err("Line malformed, not enough args for "+tok.val,
+ tok.metadata);
+ }
+ args.push_back(oq.back());
+ oq.pop_back();
+ }
+ std::vector<Node> args2;
+ while (args.size()) {
+ args2.push_back(args.back());
+ args.pop_back();
+ }
+ oq.push_back(astnode(tok.val, args2, tok.metadata));
+ }
+ // If rparen, keep grabbing until we get to an lparen
+ else if (typ == RPAREN) {
+ std::vector<Node> args;
+ while (1) {
+ if (toktype(oq.back()) == LPAREN) break;
+ args.push_back(oq.back());
+ oq.pop_back();
+ if (!oq.size()) err("Bracket without matching", tok.metadata);
+ }
+ oq.pop_back();
+ args.push_back(oq.back());
+ oq.pop_back();
+ // We represent a[b] as (access a b)
+ if (tok.val == "]")
+ args.push_back(token("access", tok.metadata));
+ if (args.back().type == ASTNODE)
+ args.push_back(token("fun", tok.metadata));
+ std::string fun = args.back().val;
+ args.pop_back();
+ // We represent [1,2,3] as (array_lit 1 2 3)
+ if (fun == "access" && args.size() && args.back().val == "id") {
+ fun = "array_lit";
+ args.pop_back();
+ }
+ std::vector<Node> args2;
+ while (args.size()) {
+ args2.push_back(args.back());
+ args.pop_back();
+ }
+ // When evaluating 2 + (3 * 5), the shunting yard algo turns that
+ // into 2 ( id 3 5 * ) +, effectively putting "id" as a dummy
+ // function where the algo was expecting a function to call the
+ // thing inside the brackets. This reverses that step
+ if (fun == "id" && args2.size() == 1) {
+ oq.push_back(args2[0]);
+ }
+ else {
+ oq.push_back(astnode(fun, args2, tok.metadata));
+ }
+ }
+ else oq.push_back(tok);
+ // This is messy, but has to be done. Import/inset other files here
+ std::string v = oq.back().val;
+ if ((v == "inset" || v == "import" || v == "create")
+ && oq.back().args.size() == 1
+ && oq.back().args[0].type == TOKEN) {
+ int lastSlashPos = tok.metadata.file.rfind("/");
+ std::string root;
+ if (lastSlashPos >= 0)
+ root = tok.metadata.file.substr(0, lastSlashPos) + "/";
+ else
+ root = "";
+ std::string filename = oq.back().args[0].val;
+ filename = filename.substr(1, filename.length() - 2);
+ if (!exists(root + filename))
+ err("File does not exist: "+root + filename, tok.metadata);
+ oq.back().args.pop_back();
+ oq.back().args.push_back(parseSerpent(root + filename));
+ }
+ //Useful for debugging
+ //for (int i = 0; i < oq.size(); i++) {
+ // std::cerr << printSimple(oq[i]) << " ";
+ //}
+ //std::cerr << " <-\n";
+ }
+ // Output must have one argument
+ if (oq.size() == 0) {
+ err("Output blank", Metadata());
+ }
+ else if (oq.size() > 1) {
+ return asn("multi", oq, oq[0].metadata);
+ }
+
+ return oq[0];
+}
+
+
+// Parses one line of serpent
+Node parseSerpentTokenStream(std::vector<Node> s) {
+ return treefy(shuntingYard(s));
+}
+
+
+// Count spaces at beginning of line
+int spaceCount(std::string s) {
+ unsigned pos = 0;
+ while (pos < s.length() && (s[pos] == ' ' || s[pos] == '\t'))
+ pos++;
+ return pos;
+}
+
+// Is this a command that takes an argument on the same line?
+bool bodied(std::string tok) {
+ return tok == "if" || tok == "elif" || tok == "while"
+ || tok == "with" || tok == "def" || tok == "extern"
+ || tok == "data" || tok == "assert" || tok == "return"
+ || tok == "fun" || tok == "scope" || tok == "macro"
+ || tok == "type";
+}
+
+// Are the two commands meant to continue each other?
+bool bodiedContinued(std::string prev, std::string tok) {
+ return (prev == "if" && tok == "elif")
+ || (prev == "elif" && tok == "else")
+ || (prev == "elif" && tok == "elif")
+ || (prev == "if" && tok == "else");
+}
+
+// Is a line of code empty?
+bool isLineEmpty(std::string line) {
+ std::vector<Node> tokens = tokenize(line);
+ if (!tokens.size() || tokens[0].val == "#" || tokens[0].val == "//")
+ return true;
+ return false;
+}
+
+// Parse lines of serpent (helper function)
+Node parseLines(std::vector<std::string> lines, Metadata metadata, int sp) {
+ std::vector<Node> o;
+ int origLine = metadata.ln;
+ unsigned i = 0;
+ while (i < lines.size()) {
+ metadata.ln = origLine + i;
+ std::string main = lines[i];
+ if (isLineEmpty(main)) {
+ i += 1;
+ continue;
+ }
+ int spaces = spaceCount(main);
+ if (spaces != sp) {
+ err("Indent mismatch", metadata);
+ }
+ // Tokenize current line
+ std::vector<Node> tokens = tokenize(main.substr(sp), metadata);
+ // Remove comments
+ std::vector<Node> tokens2;
+ for (unsigned j = 0; j < tokens.size(); j++) {
+ if (tokens[j].val == "#" || tokens[j].val == "//") break;
+ tokens2.push_back(tokens[j]);
+ }
+ bool expectingChildBlock = false;
+ if (tokens2.size() > 0 && tokens2.back().val == ":") {
+ tokens2.pop_back();
+ expectingChildBlock = true;
+ }
+ // Parse current line
+ Node out = parseSerpentTokenStream(tokens2);
+ // Parse child block
+ int childIndent = 999999;
+ std::vector<std::string> childBlock;
+ while (1) {
+ i++;
+ if (i >= lines.size())
+ break;
+ bool ile = isLineEmpty(lines[i]);
+ if (!ile) {
+ int spaces = spaceCount(lines[i]);
+ if (spaces <= sp) break;
+ childBlock.push_back(lines[i]);
+ if (spaces < childIndent) childIndent = spaces;
+ }
+ else childBlock.push_back("");
+ }
+ // Child block empty?
+ bool cbe = true;
+ for (unsigned i = 0; i < childBlock.size(); i++) {
+ if (childBlock[i].length() > 0) { cbe = false; break; }
+ }
+ // Add child block to AST
+ if (expectingChildBlock) {
+ if (cbe)
+ err("Expected indented child block!", out.metadata);
+ out.type = ASTNODE;
+ metadata.ln += 1;
+ out.args.push_back(parseLines(childBlock, metadata, childIndent));
+ metadata.ln -= 1;
+ }
+ else if (!cbe)
+ err("Did not expect indented child block!", out.metadata);
+ else if (out.args.size() && out.args[out.args.size() - 1].val == ":") {
+ Node n = out.args[out.args.size() - 1];
+ out.args.pop_back();
+ out.args.push_back(n.args[0]);
+ out.args.push_back(n.args[1]);
+ }
+ // Bring back if / elif into AST
+ if (bodied(tokens[0].val)) {
+ if (out.val != "multi") {
+ // token not being used in bodied form
+ }
+ else if (out.args[0].val == "id")
+ out = astnode(tokens[0].val, out.args[1].args, out.metadata);
+ else if (out.args[0].type == TOKEN) {
+ std::vector<Node> out2;
+ for (unsigned i = 1; i < out.args.size(); i++)
+ out2.push_back(out.args[i]);
+ out = astnode(tokens[0].val, out2, out.metadata);
+ }
+ else
+ out = astnode("fun", out.args, out.metadata);
+ }
+ // Multi not supported
+ if (out.val == "multi")
+ err("Multiple expressions or unclosed bracket", out.metadata);
+ // Convert top-level colon expressions into non-colon expressions;
+ // makes if statements and the like equivalent indented or not
+ //if (out.val == ":" && out.args[0].type == TOKEN)
+ // out = asn(out.args[0].val, out.args[1], out.metadata);
+ //if (bodied(tokens[0].val) && out.args[0].val == ":")
+ // out = asn(tokens[0].val, out.args[0].args);
+ if (o.size() == 0 || o.back().type == TOKEN) {
+ o.push_back(out);
+ continue;
+ }
+ // This is a little complicated. Basically, the idea here is to build
+ // constructions like [if [< x 5] [a] [elif [< x 10] [b] [else [c]]]]
+ std::vector<Node> u;
+ u.push_back(o.back());
+ if (bodiedContinued(o.back().val, out.val)) {
+ while (1) {
+ if (!bodiedContinued(u.back().val, out.val)) {
+ u.pop_back();
+ break;
+ }
+ if (!u.back().args.size()
+ || !bodiedContinued(u.back().val, u.back().args.back().val)) {
+ break;
+ }
+ u.push_back(u.back().args.back());
+ }
+ u.back().args.push_back(out);
+ while (u.size() > 1) {
+ Node v = u.back();
+ u.pop_back();
+ u.back().args.pop_back();
+ u.back().args.push_back(v);
+ }
+ o.pop_back();
+ o.push_back(u[0]);
+ }
+ else o.push_back(out);
+ }
+ if (o.size() == 1)
+ return o[0];
+ else if (o.size())
+ return astnode("seq", o, o[0].metadata);
+ else
+ return astnode("seq", o, Metadata());
+}
+
+// Parses serpent code
+Node parseSerpent(std::string s) {
+ std::string input = s;
+ std::string file = "main";
+ if (exists(s)) {
+ file = s;
+ input = get_file_contents(s);
+ }
+ return parseLines(splitLines(input), Metadata(file, 0, 0), 0);
+}
+
+
+using namespace std;
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/parser.h b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/parser.h
new file mode 100644
index 000000000..e3632220a
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/parser.h
@@ -0,0 +1,13 @@
+#ifndef ETHSERP_PARSER
+#define ETHSERP_PARSER
+
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+
+// Serpent text -> parse tree
+Node parseSerpent(std::string s);
+
+#endif
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/preprocess.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/preprocess.cpp
new file mode 100644
index 000000000..3f08ea8b1
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/preprocess.cpp
@@ -0,0 +1,299 @@
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+#include "lllparser.h"
+#include "bignum.h"
+#include "rewriteutils.h"
+#include "optimize.h"
+#include "preprocess.h"
+#include "functions.h"
+#include "opcodes.h"
+
+// Convert a function of the form (def (f x y z) (do stuff)) into
+// (if (first byte of ABI is correct) (seq (setup x y z) (do stuff)))
+Node convFunction(Node node, int functionCount) {
+ std::string prefix = "_temp"+mkUniqueToken()+"_";
+ Metadata m = node.metadata;
+
+ if (node.args.size() != 2)
+ err("Malformed def!", m);
+ // Collect the list of variable names and variable byte counts
+ Node unpack = unpackArguments(node.args[0].args, m);
+ // And the actual code
+ Node body = node.args[1];
+ // Main LLL-based function body
+ return astnode("if",
+ astnode("eq",
+ astnode("get", token("__funid", m), m),
+ token(unsignedToDecimal(functionCount), m),
+ m),
+ astnode("seq", unpack, body, m));
+}
+
+// Populate an svObj with the arguments needed to determine
+// the storage position of a node
+svObj getStorageVars(svObj pre, Node node, std::string prefix,
+ int index) {
+ Metadata m = node.metadata;
+ if (!pre.globalOffset.size()) pre.globalOffset = "0";
+ std::vector<Node> h;
+ std::vector<std::string> coefficients;
+ // Array accesses or atoms
+ if (node.val == "access" || node.type == TOKEN) {
+ std::string tot = "1";
+ h = listfyStorageAccess(node);
+ coefficients.push_back("1");
+ for (unsigned i = h.size() - 1; i >= 1; i--) {
+ // Array sizes must be constant or at least arithmetically
+ // evaluable at compile time
+ if (!isPureArithmetic(h[i]))
+ err("Array size must be fixed value", m);
+ // Create a list of the coefficient associated with each
+ // array index
+ coefficients.push_back(decimalMul(coefficients.back(), h[i].val));
+ }
+ }
+ // Tuples
+ else {
+ int startc;
+ // Handle the (fun <fun_astnode> args...) case
+ if (node.val == "fun") {
+ startc = 1;
+ h = listfyStorageAccess(node.args[0]);
+ }
+ // Handle the (<fun_name> args...) case, which
+ // the serpent parser produces when the function
+ // is a simple name and not a complex astnode
+ else {
+ startc = 0;
+ h = listfyStorageAccess(token(node.val, m));
+ }
+ svObj sub = pre;
+ sub.globalOffset = "0";
+ // Evaluate tuple elements recursively
+ for (unsigned i = startc; i < node.args.size(); i++) {
+ sub = getStorageVars(sub,
+ node.args[i],
+ prefix+h[0].val.substr(2)+".",
+ i-startc);
+ }
+ coefficients.push_back(sub.globalOffset);
+ for (unsigned i = h.size() - 1; i >= 1; i--) {
+ // Array sizes must be constant or at least arithmetically
+ // evaluable at compile time
+ if (!isPureArithmetic(h[i]))
+ err("Array size must be fixed value", m);
+ // Create a list of the coefficient associated with each
+ // array index
+ coefficients.push_back(decimalMul(coefficients.back(), h[i].val));
+ }
+ pre.offsets = sub.offsets;
+ pre.coefficients = sub.coefficients;
+ pre.nonfinal = sub.nonfinal;
+ pre.nonfinal[prefix+h[0].val.substr(2)] = true;
+ }
+ pre.coefficients[prefix+h[0].val.substr(2)] = coefficients;
+ pre.offsets[prefix+h[0].val.substr(2)] = pre.globalOffset;
+ pre.indices[prefix+h[0].val.substr(2)] = index;
+ if (decimalGt(tt176, coefficients.back()))
+ pre.globalOffset = decimalAdd(pre.globalOffset, coefficients.back());
+ return pre;
+}
+
+// Preprocess input containing functions
+//
+// localExterns is a map of the form, eg,
+//
+// { x: { foo: 0, bar: 1, baz: 2 }, y: { qux: 0, foo: 1 } ... }
+//
+// localExternSigs is a map of the form, eg,
+//
+// { x : { foo: iii, bar: iis, baz: ia }, y: { qux: i, foo: as } ... }
+//
+// Signifying that x.foo = 0, x.baz = 2, y.foo = 1, etc
+// and that x.foo has three integers as arguments, x.bar has two
+// integers and a variable-length string, and baz has an integer
+// and an array
+//
+// globalExterns is a one-level map, eg from above
+//
+// { foo: 1, bar: 1, baz: 2, qux: 0 }
+//
+// globalExternSigs is a one-level map, eg from above
+//
+// { foo: as, bar: iis, baz: ia, qux: i}
+//
+// Note that globalExterns and globalExternSigs may be ambiguous
+// Also, a null signature implies an infinite tail of integers
+preprocessResult preprocessInit(Node inp) {
+ Metadata m = inp.metadata;
+ if (inp.val != "seq")
+ inp = astnode("seq", inp, m);
+ std::vector<Node> empty = std::vector<Node>();
+ Node init = astnode("seq", empty, m);
+ Node shared = astnode("seq", empty, m);
+ std::vector<Node> any;
+ std::vector<Node> functions;
+ preprocessAux out = preprocessAux();
+ out.localExterns["self"] = std::map<std::string, int>();
+ int functionCount = 0;
+ int storageDataCount = 0;
+ for (unsigned i = 0; i < inp.args.size(); i++) {
+ Node obj = inp.args[i];
+ // Functions
+ if (obj.val == "def") {
+ if (obj.args.size() == 0)
+ err("Empty def", m);
+ std::string funName = obj.args[0].val;
+ // Init, shared and any are special functions
+ if (funName == "init" || funName == "shared" || funName == "any") {
+ if (obj.args[0].args.size())
+ err(funName+" cannot have arguments", m);
+ }
+ if (funName == "init") init = obj.args[1];
+ else if (funName == "shared") shared = obj.args[1];
+ else if (funName == "any") any.push_back(obj.args[1]);
+ else {
+ // Other functions
+ functions.push_back(convFunction(obj, functionCount));
+ out.localExterns["self"][obj.args[0].val] = functionCount;
+ out.localExternSigs["self"][obj.args[0].val]
+ = getSignature(obj.args[0].args);
+ functionCount++;
+ }
+ }
+ // Extern declarations
+ else if (obj.val == "extern") {
+ std::string externName = obj.args[0].val;
+ Node al = obj.args[1];
+ if (!out.localExterns.count(externName))
+ out.localExterns[externName] = std::map<std::string, int>();
+ for (unsigned i = 0; i < al.args.size(); i++) {
+ if (al.args[i].val == ":") {
+ std::string v = al.args[i].args[0].val;
+ std::string sig = al.args[i].args[1].val;
+ out.globalExterns[v] = i;
+ out.globalExternSigs[v] = sig;
+ out.localExterns[externName][v] = i;
+ out.localExternSigs[externName][v] = sig;
+ }
+ else {
+ std::string v = al.args[i].val;
+ out.globalExterns[v] = i;
+ out.globalExternSigs[v] = "";
+ out.localExterns[externName][v] = i;
+ out.localExternSigs[externName][v] = "";
+ }
+ }
+ }
+ // Custom macros
+ else if (obj.val == "macro") {
+ // Rules for valid macros:
+ //
+ // There are only four categories of valid macros:
+ //
+ // 1. a macro where the outer function is something
+ // which is NOT an existing valid function/extern/datum
+ // 2. a macro of the form set(c(x), d) where c must NOT
+ // be an existing valid function/extern/datum
+ // 3. something of the form access(c(x)), where c must NOT
+ // be an existing valid function/extern/datum
+ // 4. something of the form set(access(c(x)), d) where c must
+ // NOT be an existing valid function/extern/datum
+ bool valid = false;
+ Node pattern = obj.args[0];
+ Node substitution = obj.args[1];
+ if (opcode(pattern.val) < 0 && !isValidFunctionName(pattern.val))
+ valid = true;
+ if (pattern.val == "set" &&
+ opcode(pattern.args[0].val) < 0 &&
+ !isValidFunctionName(pattern.args[0].val))
+ valid = true;
+ if (pattern.val == "access" &&
+ opcode(pattern.args[0].val) < 0 &&
+ !isValidFunctionName(pattern.args[0].val))
+ if (pattern.val == "set" &&
+ pattern.args[0].val == "access" &&
+ opcode(pattern.args[0].args[0].val) < 0 &&
+ !isValidFunctionName(pattern.args[0].args[0].val))
+ valid = true;
+ if (valid) {
+ out.customMacros.push_back(rewriteRule(pattern, substitution));
+ }
+ }
+ // Variable types
+ else if (obj.val == "type") {
+ std::string typeName = obj.args[0].val;
+ std::vector<Node> vars = obj.args[1].args;
+ for (unsigned i = 0; i < vars.size(); i++)
+ out.types[vars[i].val] = typeName;
+ }
+ // Storage variables/structures
+ else if (obj.val == "data") {
+ out.storageVars = getStorageVars(out.storageVars,
+ obj.args[0],
+ "",
+ storageDataCount);
+ storageDataCount += 1;
+ }
+ else any.push_back(obj);
+ }
+ std::vector<Node> main;
+ if (shared.args.size()) main.push_back(shared);
+ if (init.args.size()) main.push_back(init);
+
+ std::vector<Node> code;
+ if (shared.args.size()) code.push_back(shared);
+ for (unsigned i = 0; i < any.size(); i++)
+ code.push_back(any[i]);
+ for (unsigned i = 0; i < functions.size(); i++)
+ code.push_back(functions[i]);
+ Node codeNode;
+ if (functions.size() > 0) {
+ codeNode = astnode("with",
+ token("__funid", m),
+ astnode("byte",
+ token("0", m),
+ astnode("calldataload", token("0", m), m),
+ m),
+ astnode("seq", code, m),
+ m);
+ }
+ else codeNode = astnode("seq", code, m);
+ main.push_back(astnode("~return",
+ token("0", m),
+ astnode("lll",
+ codeNode,
+ token("0", m),
+ m),
+ m));
+
+
+ Node result;
+ if (main.size() == 1) result = main[0];
+ else result = astnode("seq", main, inp.metadata);
+ return preprocessResult(result, out);
+}
+
+preprocessResult processTypes (preprocessResult pr) {
+ preprocessAux aux = pr.second;
+ Node node = pr.first;
+ if (node.type == TOKEN && aux.types.count(node.val)) {
+ node = asn(aux.types[node.val], node, node.metadata);
+ }
+ else if (node.val == "untyped")
+ return preprocessResult(node.args[0], aux);
+ else {
+ for (unsigned i = 0; i < node.args.size(); i++) {
+ node.args[i] =
+ processTypes(preprocessResult(node.args[i], aux)).first;
+ }
+ }
+ return preprocessResult(node, aux);
+}
+
+preprocessResult preprocess(Node n) {
+ return processTypes(preprocessInit(n));
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/preprocess.h b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/preprocess.h
new file mode 100644
index 000000000..944436aef
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/preprocess.h
@@ -0,0 +1,58 @@
+#ifndef ETHSERP_PREPROCESSOR
+#define ETHSERP_PREPROCESSOR
+
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+
+// Storage variable index storing object
+struct svObj {
+ std::map<std::string, std::string> offsets;
+ std::map<std::string, int> indices;
+ std::map<std::string, std::vector<std::string> > coefficients;
+ std::map<std::string, bool> nonfinal;
+ std::string globalOffset;
+};
+
+class rewriteRule {
+ public:
+ rewriteRule(Node p, Node s) {
+ pattern = p;
+ substitution = s;
+ }
+ Node pattern;
+ Node substitution;
+};
+
+
+// Preprocessing result storing object
+class preprocessAux {
+ public:
+ preprocessAux() {
+ globalExterns = std::map<std::string, int>();
+ localExterns = std::map<std::string, std::map<std::string, int> >();
+ localExterns["self"] = std::map<std::string, int>();
+ }
+ std::map<std::string, int> globalExterns;
+ std::map<std::string, std::string> globalExternSigs;
+ std::map<std::string, std::map<std::string, int> > localExterns;
+ std::map<std::string, std::map<std::string, std::string> > localExternSigs;
+ std::vector<rewriteRule> customMacros;
+ std::map<std::string, std::string> types;
+ svObj storageVars;
+};
+
+#define preprocessResult std::pair<Node, preprocessAux>
+
+// Populate an svObj with the arguments needed to determine
+// the storage position of a node
+svObj getStorageVars(svObj pre, Node node, std::string prefix="",
+ int index=0);
+
+// Preprocess a function (see cpp for details)
+preprocessResult preprocess(Node inp);
+
+
+#endif
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/pyserpent.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/pyserpent.cpp
new file mode 100644
index 000000000..38398aa46
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/pyserpent.cpp
@@ -0,0 +1,173 @@
+#include <Python.h>
+#include "structmember.h"
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <iostream>
+#include "funcs.h"
+
+#define PYMETHOD(name, FROM, method, TO) \
+ static PyObject * name(PyObject *, PyObject *args) { \
+ try { \
+ FROM(med) \
+ return TO(method(med)); \
+ } \
+ catch (std::string e) { \
+ PyErr_SetString(PyExc_Exception, e.c_str()); \
+ return NULL; \
+ } \
+ }
+
+#define FROMSTR(v) \
+ const char *command; \
+ int len; \
+ if (!PyArg_ParseTuple(args, "s#", &command, &len)) \
+ return NULL; \
+ std::string v = std::string(command, len); \
+
+#define FROMNODE(v) \
+ PyObject *node; \
+ if (!PyArg_ParseTuple(args, "O", &node)) \
+ return NULL; \
+ Node v = cppifyNode(node);
+
+#define FROMLIST(v) \
+ PyObject *node; \
+ if (!PyArg_ParseTuple(args, "O", &node)) \
+ return NULL; \
+ std::vector<Node> v = cppifyNodeList(node);
+
+// Convert metadata into python wrapper form [file, ln, ch]
+PyObject* pyifyMetadata(Metadata m) {
+ PyObject* a = PyList_New(0);
+ PyList_Append(a, Py_BuildValue("s#", m.file.c_str(), m.file.length()));
+ PyList_Append(a, Py_BuildValue("i", m.ln));
+ PyList_Append(a, Py_BuildValue("i", m.ch));
+ return a;
+}
+
+// Convert node into python wrapper form
+// [token=0/astnode=1, val, metadata, args]
+PyObject* pyifyNode(Node n) {
+ PyObject* a = PyList_New(0);
+ PyList_Append(a, Py_BuildValue("i", n.type == ASTNODE));
+ PyList_Append(a, Py_BuildValue("s#", n.val.c_str(), n.val.length()));
+ PyList_Append(a, pyifyMetadata(n.metadata));
+ for (unsigned i = 0; i < n.args.size(); i++)
+ PyList_Append(a, pyifyNode(n.args[i]));
+ return a;
+}
+
+// Convert string into python wrapper form
+PyObject* pyifyString(std::string s) {
+ return Py_BuildValue("s#", s.c_str(), s.length());
+}
+
+// Convert list of nodes into python wrapper form
+PyObject* pyifyNodeList(std::vector<Node> n) {
+ PyObject* a = PyList_New(0);
+ for (unsigned i = 0; i < n.size(); i++)
+ PyList_Append(a, pyifyNode(n[i]));
+ return a;
+}
+
+// Convert pyobject int into normal form
+int cppifyInt(PyObject* o) {
+ int out;
+ if (!PyArg_Parse(o, "i", &out))
+ err("Argument should be integer", Metadata());
+ return out;
+}
+
+// Convert pyobject string into normal form
+std::string cppifyString(PyObject* o) {
+ const char *command;
+ if (!PyArg_Parse(o, "s", &command))
+ err("Argument should be string", Metadata());
+ return std::string(command);
+}
+
+// Convert metadata from python wrapper form
+Metadata cppifyMetadata(PyObject* o) {
+ std::string file = cppifyString(PyList_GetItem(o, 0));
+ int ln = cppifyInt(PyList_GetItem(o, 1));
+ int ch = cppifyInt(PyList_GetItem(o, 2));
+ return Metadata(file, ln, ch);
+}
+
+// Convert node from python wrapper form
+Node cppifyNode(PyObject* o) {
+ Node n;
+ int isAstNode = cppifyInt(PyList_GetItem(o, 0));
+ n.type = isAstNode ? ASTNODE : TOKEN;
+ n.val = cppifyString(PyList_GetItem(o, 1));
+ n.metadata = cppifyMetadata(PyList_GetItem(o, 2));
+ std::vector<Node> args;
+ for (int i = 3; i < PyList_Size(o); i++) {
+ args.push_back(cppifyNode(PyList_GetItem(o, i)));
+ }
+ n.args = args;
+ return n;
+}
+
+//Convert list of nodes into normal form
+std::vector<Node> cppifyNodeList(PyObject* o) {
+ std::vector<Node> out;
+ for (int i = 0; i < PyList_Size(o); i++) {
+ out.push_back(cppifyNode(PyList_GetItem(o,i)));
+ }
+ return out;
+}
+
+PYMETHOD(ps_compile, FROMSTR, compile, pyifyString)
+PYMETHOD(ps_compile_chunk, FROMSTR, compileChunk, pyifyString)
+PYMETHOD(ps_compile_to_lll, FROMSTR, compileToLLL, pyifyNode)
+PYMETHOD(ps_compile_chunk_to_lll, FROMSTR, compileChunkToLLL, pyifyNode)
+PYMETHOD(ps_compile_lll, FROMNODE, compileLLL, pyifyString)
+PYMETHOD(ps_parse, FROMSTR, parseSerpent, pyifyNode)
+PYMETHOD(ps_rewrite, FROMNODE, rewrite, pyifyNode)
+PYMETHOD(ps_rewrite_chunk, FROMNODE, rewriteChunk, pyifyNode)
+PYMETHOD(ps_pretty_compile, FROMSTR, prettyCompile, pyifyNodeList)
+PYMETHOD(ps_pretty_compile_chunk, FROMSTR, prettyCompileChunk, pyifyNodeList)
+PYMETHOD(ps_pretty_compile_lll, FROMNODE, prettyCompileLLL, pyifyNodeList)
+PYMETHOD(ps_serialize, FROMLIST, serialize, pyifyString)
+PYMETHOD(ps_deserialize, FROMSTR, deserialize, pyifyNodeList)
+PYMETHOD(ps_parse_lll, FROMSTR, parseLLL, pyifyNode)
+
+
+static PyMethodDef PyextMethods[] = {
+ {"compile", ps_compile, METH_VARARGS,
+ "Compile code."},
+ {"compile_chunk", ps_compile_chunk, METH_VARARGS,
+ "Compile code chunk (no wrappers)."},
+ {"compile_to_lll", ps_compile_to_lll, METH_VARARGS,
+ "Compile code to LLL."},
+ {"compile_chunk_to_lll", ps_compile_chunk_to_lll, METH_VARARGS,
+ "Compile code chunk to LLL (no wrappers)."},
+ {"compile_lll", ps_compile_lll, METH_VARARGS,
+ "Compile LLL to EVM."},
+ {"parse", ps_parse, METH_VARARGS,
+ "Parse serpent"},
+ {"rewrite", ps_rewrite, METH_VARARGS,
+ "Rewrite parsed serpent to LLL"},
+ {"rewrite_chunk", ps_rewrite_chunk, METH_VARARGS,
+ "Rewrite parsed serpent to LLL (no wrappers)"},
+ {"pretty_compile", ps_pretty_compile, METH_VARARGS,
+ "Compile to EVM opcodes"},
+ {"pretty_compile_chunk", ps_pretty_compile_chunk, METH_VARARGS,
+ "Compile chunk to EVM opcodes (no wrappers)"},
+ {"pretty_compile_lll", ps_pretty_compile_lll, METH_VARARGS,
+ "Compile LLL to EVM opcodes"},
+ {"serialize", ps_serialize, METH_VARARGS,
+ "Convert EVM opcodes to bin"},
+ {"deserialize", ps_deserialize, METH_VARARGS,
+ "Convert EVM bin to opcodes"},
+ {"parse_lll", ps_parse_lll, METH_VARARGS,
+ "Parse LLL"},
+ {NULL, NULL, 0, NULL} /* Sentinel */
+};
+
+PyMODINIT_FUNC initserpent_pyext(void)
+{
+ Py_InitModule( "serpent_pyext", PyextMethods );
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/pyserpent.py b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/pyserpent.py
new file mode 100644
index 000000000..2103b48fe
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/pyserpent.py
@@ -0,0 +1 @@
+from serpent import *
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriter.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriter.cpp
new file mode 100644
index 000000000..4cdce4f0a
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriter.cpp
@@ -0,0 +1,804 @@
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+#include "lllparser.h"
+#include "bignum.h"
+#include "optimize.h"
+#include "rewriteutils.h"
+#include "preprocess.h"
+#include "functions.h"
+#include "opcodes.h"
+
+// Rewrite rules
+std::string macros[][2] = {
+ {
+ "(seq $x)",
+ "$x"
+ },
+ {
+ "(seq (seq) $x)",
+ "$x"
+ },
+ {
+ "(+= $a $b)",
+ "(set $a (+ $a $b))"
+ },
+ {
+ "(*= $a $b)",
+ "(set $a (* $a $b))"
+ },
+ {
+ "(-= $a $b)",
+ "(set $a (- $a $b))"
+ },
+ {
+ "(/= $a $b)",
+ "(set $a (/ $a $b))"
+ },
+ {
+ "(%= $a $b)",
+ "(set $a (% $a $b))"
+ },
+ {
+ "(^= $a $b)",
+ "(set $a (^ $a $b))"
+ },
+ {
+ "(!= $a $b)",
+ "(iszero (eq $a $b))"
+ },
+ {
+ "(assert $x)",
+ "(unless $x (stop))"
+ },
+ {
+ "(min $a $b)",
+ "(with $1 $a (with $2 $b (if (lt $1 $2) $1 $2)))"
+ },
+ {
+ "(max $a $b)",
+ "(with $1 $a (with $2 $b (if (lt $1 $2) $2 $1)))"
+ },
+ {
+ "(smin $a $b)",
+ "(with $1 $a (with $2 $b (if (slt $1 $2) $1 $2)))"
+ },
+ {
+ "(smax $a $b)",
+ "(with $1 $a (with $2 $b (if (slt $1 $2) $2 $1)))"
+ },
+ {
+ "(if $cond $do (else $else))",
+ "(if $cond $do $else)"
+ },
+ {
+ "(code $code)",
+ "$code"
+ },
+ {
+ "(slice $arr $pos)",
+ "(add $arr (mul 32 $pos))",
+ },
+ {
+ "(array $len)",
+ "(alloc (mul 32 $len))"
+ },
+ {
+ "(while $cond $do)",
+ "(until (iszero $cond) $do)",
+ },
+ {
+ "(while (iszero $cond) $do)",
+ "(until $cond $do)",
+ },
+ {
+ "(if $cond $do)",
+ "(unless (iszero $cond) $do)",
+ },
+ {
+ "(if (iszero $cond) $do)",
+ "(unless $cond $do)",
+ },
+ {
+ "(access (. self storage) $ind)",
+ "(sload $ind)"
+ },
+ {
+ "(access $var $ind)",
+ "(mload (add $var (mul 32 $ind)))"
+ },
+ {
+ "(set (access (. self storage) $ind) $val)",
+ "(sstore $ind $val)"
+ },
+ {
+ "(set (access $var $ind) $val)",
+ "(mstore (add $var (mul 32 $ind)) $val)"
+ },
+ {
+ "(getch $var $ind)",
+ "(mod (mload (sub (add $var $ind) 31)) 256)"
+ },
+ {
+ "(setch $var $ind $val)",
+ "(mstore8 (add $var $ind) $val)",
+ },
+ {
+ "(send $to $value)",
+ "(~call (sub (gas) 25) $to $value 0 0 0 0)"
+ },
+ {
+ "(send $gas $to $value)",
+ "(~call $gas $to $value 0 0 0 0)"
+ },
+ {
+ "(sha3 $x)",
+ "(seq (set $1 $x) (~sha3 (ref $1) 32))"
+ },
+ {
+ "(sha3 $mstart (= chars $msize))",
+ "(~sha3 $mstart $msize)"
+ },
+ {
+ "(sha3 $mstart $msize)",
+ "(~sha3 $mstart (mul 32 $msize))"
+ },
+ {
+ "(id $0)",
+ "$0"
+ },
+ {
+ "(return $x)",
+ "(seq (set $1 $x) (~return (ref $1) 32))"
+ },
+ {
+ "(return $mstart (= chars $msize))",
+ "(~return $mstart $msize)"
+ },
+ {
+ "(return $start $len)",
+ "(~return $start (mul 32 $len))"
+ },
+ {
+ "(&& $x $y)",
+ "(if $x $y 0)"
+ },
+ {
+ "(|| $x $y)",
+ "(with $1 $x (if $1 $1 $y))"
+ },
+ {
+ "(>= $x $y)",
+ "(iszero (slt $x $y))"
+ },
+ {
+ "(<= $x $y)",
+ "(iszero (sgt $x $y))"
+ },
+ {
+ "(create $code)",
+ "(create 0 $code)"
+ },
+ {
+ "(create $endowment $code)",
+ "(with $1 (msize) (create $endowment (get $1) (lll (outer $code) (msize))))"
+ },
+ {
+ "(sha256 $x)",
+ "(with $1 (alloc 64) (seq (mstore (add (get $1) 32) $x) (pop (~call 101 2 0 (add (get $1) 32) 32 (get $1) 32)) (mload (get $1))))"
+ },
+ {
+ "(sha256 $arr (= chars $sz))",
+ "(with $1 (alloc 32) (seq (pop (~call 101 2 0 $arr $sz (get $1) 32)) (mload (get $1))))"
+ },
+ {
+ "(sha256 $arr $sz)",
+ "(with $1 (alloc 32) (seq (pop (~call 101 2 0 $arr (mul 32 $sz) (get $1) 32)) (mload (get $1))))"
+ },
+ {
+ "(ripemd160 $x)",
+ "(with $1 (alloc 64) (seq (mstore (add (get $1) 32) $x) (pop (~call 101 3 0 (add (get $1) 32) 32 (get $1) 32)) (mload (get $1))))"
+ },
+ {
+ "(ripemd160 $arr (= chars $sz))",
+ "(with $1 (alloc 32) (seq (pop (~call 101 3 0 $arr $sz (mload $1) 32)) (mload (get $1))))"
+ },
+ {
+ "(ripemd160 $arr $sz)",
+ "(with $1 (alloc 32) (seq (pop (~call 101 3 0 $arr (mul 32 $sz) (get $1) 32)) (mload (get $1))))"
+ },
+ {
+ "(ecrecover $h $v $r $s)",
+ "(with $1 (alloc 160) (seq (mstore (get $1) $h) (mstore (add (get $1) 32) $v) (mstore (add (get $1) 64) $r) (mstore (add (get $1) 96) $s) (pop (~call 101 1 0 (get $1) 128 (add (get $1 128)) 32)) (mload (add (get $1) 128))))"
+ },
+ {
+ "(inset $x)",
+ "$x"
+ },
+ {
+ "(create $x)",
+ "(with $1 (msize) (create $val (get $1) (lll $code (get $1))))"
+ },
+ {
+ "(with (= $var $val) $cond)",
+ "(with $var $val $cond)"
+ },
+ {
+ "(log $t1)",
+ "(~log1 0 0 $t1)"
+ },
+ {
+ "(log $t1 $t2)",
+ "(~log2 0 0 $t1 $t2)"
+ },
+ {
+ "(log $t1 $t2 $t3)",
+ "(~log3 0 0 $t1 $t2 $t3)"
+ },
+ {
+ "(log $t1 $t2 $t3 $t4)",
+ "(~log4 0 0 $t1 $t2 $t3 $t4)"
+ },
+ {
+ "(logarr $a $sz)",
+ "(~log0 $a (mul 32 $sz))"
+ },
+ {
+ "(logarr $a $sz $t1)",
+ "(~log1 $a (mul 32 $sz) $t1)"
+ },
+ {
+ "(logarr $a $sz $t1 $t2)",
+ "(~log2 $a (mul 32 $sz) $t1 $t2)"
+ },
+ {
+ "(logarr $a $sz $t1 $t2 $t3)",
+ "(~log3 $a (mul 32 $sz) $t1 $t2 $t3)"
+ },
+ {
+ "(logarr $a $sz $t1 $t2 $t3 $t4)",
+ "(~log4 $a (mul 32 $sz) $t1 $t2 $t3 $t4)"
+ },
+ {
+ "(save $loc $array (= chars $count))",
+ "(with $location (ref $loc) (with $c $count (with $end (div $c 32) (with $i 0 (seq (while (slt $i $end) (seq (sstore (add $i $location) (access $array $i)) (set $i (add $i 1)))) (sstore (add $i $location) (~and (access $array $i) (sub 0 (exp 256 (sub 32 (mod $c 32)))))))))))"
+ },
+ {
+ "(save $loc $array $count)",
+ "(with $location (ref $loc) (with $end $count (with $i 0 (while (slt $i $end) (seq (sstore (add $i $location) (access $array $i)) (set $i (add $i 1)))))))"
+ },
+ {
+ "(load $loc (= chars $count))",
+ "(with $location (ref $loc) (with $c $count (with $a (alloc $c) (with $i 0 (seq (while (slt $i (div $c 32)) (seq (set (access $a $i) (sload (add $location $i))) (set $i (add $i 1)))) (set (access $a $i) (~and (sload (add $location $i)) (sub 0 (exp 256 (sub 32 (mod $c 32)))))) $a)))))"
+ },
+ {
+ "(load $loc $count)",
+ "(with $location (ref $loc) (with $c $count (with $a (alloc $c) (with $i 0 (seq (while (slt $i $c) (seq (set (access $a $i) (sload (add $location $i))) (set $i (add $i 1)))) $a)))))"
+ },
+ {
+ "(unsafe_mcopy $to $from $sz)",
+ "(with _sz $sz (with _from $from (with _to $to (seq (comment STARTING UNSAFE MCOPY) (with _i 0 (while (lt _i _sz) (seq (mstore (add $to _i) (mload (add _from _i))) (set _i (add _i 32)))))))))"
+ },
+ {
+ "(mcopy $to $from $_sz)",
+ "(with _to $to (with _from $from (with _sz $sz (seq (comment STARTING MCOPY (with _i 0 (seq (while (lt (add _i 31) _sz) (seq (mstore (add _to _i) (mload (add _from _i))) (set _i (add _i 32)))) (with _mask (exp 256 (sub 32 (mod _sz 32))) (mstore (add $to _i) (add (mod (mload (add $to _i)) _mask) (and (mload (add $from _i)) (sub 0 _mask))))))))))))"
+ },
+ { "(. msg sender)", "(caller)" },
+ { "(. msg value)", "(callvalue)" },
+ { "(. tx gasprice)", "(gasprice)" },
+ { "(. tx origin)", "(origin)" },
+ { "(. tx gas)", "(gas)" },
+ { "(. $x balance)", "(balance $x)" },
+ { "self", "(address)" },
+ { "(. block prevhash)", "(prevhash)" },
+ { "(. block coinbase)", "(coinbase)" },
+ { "(. block timestamp)", "(timestamp)" },
+ { "(. block number)", "(number)" },
+ { "(. block difficulty)", "(difficulty)" },
+ { "(. block gaslimit)", "(gaslimit)" },
+ { "stop", "(stop)" },
+ { "---END---", "" } //Keep this line at the end of the list
+};
+
+std::vector<rewriteRule> nodeMacros;
+
+// Token synonyms
+std::string synonyms[][2] = {
+ { "or", "||" },
+ { "and", "&&" },
+ { "|", "~or" },
+ { "&", "~and" },
+ { "elif", "if" },
+ { "!", "iszero" },
+ { "~", "~not" },
+ { "not", "iszero" },
+ { "string", "alloc" },
+ { "+", "add" },
+ { "-", "sub" },
+ { "*", "mul" },
+ { "/", "sdiv" },
+ { "^", "exp" },
+ { "**", "exp" },
+ { "%", "smod" },
+ { "<", "slt" },
+ { ">", "sgt" },
+ { "=", "set" },
+ { "==", "eq" },
+ { ":", "kv" },
+ { "---END---", "" } //Keep this line at the end of the list
+};
+
+// Custom setters (need to be registered separately
+// for use with managed storage)
+std::string setters[][2] = {
+ { "+=", "+" },
+ { "-=", "-" },
+ { "*=", "*" },
+ { "/=", "/" },
+ { "%=", "%" },
+ { "^=", "^" },
+ { "---END---", "" } //Keep this line at the end of the list
+};
+
+// Processes mutable array literals
+Node array_lit_transform(Node node) {
+ std::string prefix = "_temp"+mkUniqueToken() + "_";
+ Metadata m = node.metadata;
+ std::map<std::string, Node> d;
+ std::string o = "(seq (set $arr (alloc "+utd(node.args.size()*32)+"))";
+ for (unsigned i = 0; i < node.args.size(); i++) {
+ o += " (mstore (add (get $arr) "+utd(i * 32)+") $"+utd(i)+")";
+ d[utd(i)] = node.args[i];
+ }
+ o += " (get $arr))";
+ return subst(parseLLL(o), d, prefix, m);
+}
+
+
+Node apply_rules(preprocessResult pr);
+
+// Transform "<variable>.<fun>(args...)" into
+// a call
+Node dotTransform(Node node, preprocessAux aux) {
+ Metadata m = node.metadata;
+ // We're gonna make lots of temporary variables,
+ // so set up a unique flag for them
+ std::string prefix = "_temp"+mkUniqueToken()+"_";
+ // Check that the function name is a token
+ if (node.args[0].args[1].type == ASTNODE)
+ err("Function name must be static", m);
+
+ Node dotOwner = node.args[0].args[0];
+ std::string dotMember = node.args[0].args[1].val;
+ // kwargs = map of special arguments
+ std::map<std::string, Node> kwargs;
+ kwargs["value"] = token("0", m);
+ kwargs["gas"] = subst(parseLLL("(- (gas) 25)"), msn(), prefix, m);
+ // Search for as=? and call=code keywords, and isolate the actual
+ // function arguments
+ std::vector<Node> fnargs;
+ std::string as = "";
+ std::string op = "call";
+ for (unsigned i = 1; i < node.args.size(); i++) {
+ fnargs.push_back(node.args[i]);
+ Node arg = fnargs.back();
+ if (arg.val == "=" || arg.val == "set") {
+ if (arg.args[0].val == "as")
+ as = arg.args[1].val;
+ if (arg.args[0].val == "call" && arg.args[1].val == "code")
+ op = "callcode";
+ if (arg.args[0].val == "gas")
+ kwargs["gas"] = arg.args[1];
+ if (arg.args[0].val == "value")
+ kwargs["value"] = arg.args[1];
+ if (arg.args[0].val == "outsz")
+ kwargs["outsz"] = arg.args[1];
+ }
+ }
+ if (dotOwner.val == "self") {
+ if (as.size()) err("Cannot use \"as\" when calling self!", m);
+ as = dotOwner.val;
+ }
+ // Determine the funId and sig assuming the "as" keyword was used
+ int funId = 0;
+ std::string sig;
+ if (as.size() > 0 && aux.localExterns.count(as)) {
+ if (!aux.localExterns[as].count(dotMember))
+ err("Invalid call: "+printSimple(dotOwner)+"."+dotMember, m);
+ funId = aux.localExterns[as][dotMember];
+ sig = aux.localExternSigs[as][dotMember];
+ }
+ // Determine the funId and sig otherwise
+ else if (!as.size()) {
+ if (!aux.globalExterns.count(dotMember))
+ err("Invalid call: "+printSimple(dotOwner)+"."+dotMember, m);
+ std::string key = unsignedToDecimal(aux.globalExterns[dotMember]);
+ funId = aux.globalExterns[dotMember];
+ sig = aux.globalExternSigs[dotMember];
+ }
+ else err("Invalid call: "+printSimple(dotOwner)+"."+dotMember, m);
+ // Pack arguments
+ kwargs["data"] = packArguments(fnargs, sig, funId, m);
+ kwargs["to"] = dotOwner;
+ Node main;
+ // Pack output
+ if (!kwargs.count("outsz")) {
+ main = parseLLL(
+ "(with _data $data (seq "
+ "(pop (~"+op+" $gas $to $value (access _data 0) (access _data 1) (ref $dataout) 32))"
+ "(get $dataout)))");
+ }
+ else {
+ main = parseLLL(
+ "(with _data $data (with _outsz (mul 32 $outsz) (with _out (alloc _outsz) (seq "
+ "(pop (~"+op+" $gas $to $value (access _data 0) (access _data 1) _out _outsz))"
+ "(get _out)))))");
+ }
+ // Set up main call
+
+ Node o = subst(main, kwargs, prefix, m);
+ return o;
+}
+
+// Transform an access of the form self.bob, self.users[5], etc into
+// a storage access
+//
+// There exist two types of objects: finite objects, and infinite
+// objects. Finite objects are packed optimally tightly into storage
+// accesses; for example:
+//
+// data obj[100](a, b[2][4], c)
+//
+// obj[0].a -> 0
+// obj[0].b[0][0] -> 1
+// obj[0].b[1][3] -> 8
+// obj[45].c -> 459
+//
+// Infinite objects are accessed by sha3([v1, v2, v3 ... ]), where
+// the values are a list of array indices and keyword indices, for
+// example:
+// data obj[](a, b[2][4], c)
+// data obj2[](a, b[][], c)
+//
+// obj[0].a -> sha3([0, 0, 0])
+// obj[5].b[1][3] -> sha3([0, 5, 1, 1, 3])
+// obj[45].c -> sha3([0, 45, 2])
+// obj2[0].a -> sha3([1, 0, 0])
+// obj2[5].b[1][3] -> sha3([1, 5, 1, 1, 3])
+// obj2[45].c -> sha3([1, 45, 2])
+Node storageTransform(Node node, preprocessAux aux,
+ bool mapstyle=false, bool ref=false) {
+ Metadata m = node.metadata;
+ // Get a list of all of the "access parameters" used in order
+ // eg. self.users[5].cow[4][m[2]][woof] ->
+ // [--self, --users, 5, --cow, 4, m[2], woof]
+ std::vector<Node> hlist = listfyStorageAccess(node);
+ // For infinite arrays, the terms array will just provide a list
+ // of indices. For finite arrays, it's a list of index*coefficient
+ std::vector<Node> terms;
+ std::string offset = "0";
+ std::string prefix = "";
+ std::string varPrefix = "_temp"+mkUniqueToken()+"_";
+ int c = 0;
+ std::vector<std::string> coefficients;
+ coefficients.push_back("");
+ for (unsigned i = 1; i < hlist.size(); i++) {
+ // We pre-add the -- flag to parameter-like terms. For example,
+ // self.users[m] -> [--self, --users, m]
+ // self.users.m -> [--self, --users, --m]
+ if (hlist[i].val.substr(0, 2) == "--") {
+ prefix += hlist[i].val.substr(2) + ".";
+ std::string tempPrefix = prefix.substr(0, prefix.size()-1);
+ if (!aux.storageVars.offsets.count(tempPrefix))
+ return node;
+ if (c < (signed)coefficients.size() - 1)
+ err("Too few array index lookups", m);
+ if (c > (signed)coefficients.size() - 1)
+ err("Too many array index lookups", m);
+ coefficients = aux.storageVars.coefficients[tempPrefix];
+ // If the size of an object exceeds 2^176, we make it an infinite
+ // array
+ if (decimalGt(coefficients.back(), tt176) && !mapstyle)
+ return storageTransform(node, aux, true, ref);
+ offset = decimalAdd(offset, aux.storageVars.offsets[tempPrefix]);
+ c = 0;
+ if (mapstyle)
+ terms.push_back(token(unsignedToDecimal(
+ aux.storageVars.indices[tempPrefix])));
+ }
+ else if (mapstyle) {
+ terms.push_back(hlist[i]);
+ c += 1;
+ }
+ else {
+ if (c > (signed)coefficients.size() - 2)
+ err("Too many array index lookups", m);
+ terms.push_back(
+ astnode("mul",
+ hlist[i],
+ token(coefficients[coefficients.size() - 2 - c], m),
+ m));
+
+ c += 1;
+ }
+ }
+ if (aux.storageVars.nonfinal.count(prefix.substr(0, prefix.size()-1)))
+ err("Storage variable access not deep enough", m);
+ if (c < (signed)coefficients.size() - 1) {
+ err("Too few array index lookups", m);
+ }
+ if (c > (signed)coefficients.size() - 1) {
+ err("Too many array index lookups", m);
+ }
+ Node o;
+ if (mapstyle) {
+ std::string t = "_temp_"+mkUniqueToken();
+ std::vector<Node> sub;
+ for (unsigned i = 0; i < terms.size(); i++)
+ sub.push_back(asn("mstore",
+ asn("add",
+ tkn(utd(i * 32), m),
+ asn("get", tkn(t+"pos", m), m),
+ m),
+ terms[i],
+ m));
+ sub.push_back(tkn(t+"pos", m));
+ Node main = asn("with",
+ tkn(t+"pos", m),
+ asn("alloc", tkn(utd(terms.size() * 32), m), m),
+ asn("seq", sub, m),
+ m);
+ Node sz = token(utd(terms.size() * 32), m);
+ o = astnode("~sha3",
+ main,
+ sz,
+ m);
+ }
+ else {
+ // We add up all the index*coefficients
+ Node out = token(offset, node.metadata);
+ for (unsigned i = 0; i < terms.size(); i++) {
+ std::vector<Node> temp;
+ temp.push_back(out);
+ temp.push_back(terms[i]);
+ out = astnode("add", temp, node.metadata);
+ }
+ o = out;
+ }
+ if (ref) return o;
+ else return astnode("sload", o, node.metadata);
+}
+
+
+// Recursively applies rewrite rules
+std::pair<Node, bool> apply_rules_iter(preprocessResult pr) {
+ bool changed = false;
+ Node node = pr.first;
+ // If the rewrite rules have not yet been parsed, parse them
+ if (!nodeMacros.size()) {
+ for (int i = 0; i < 9999; i++) {
+ std::vector<Node> o;
+ if (macros[i][0] == "---END---") break;
+ nodeMacros.push_back(rewriteRule(
+ parseLLL(macros[i][0]),
+ parseLLL(macros[i][1])
+ ));
+ }
+ }
+ // Assignment transformations
+ for (int i = 0; i < 9999; i++) {
+ if (setters[i][0] == "---END---") break;
+ if (node.val == setters[i][0]) {
+ node = astnode("=",
+ node.args[0],
+ astnode(setters[i][1],
+ node.args[0],
+ node.args[1],
+ node.metadata),
+ node.metadata);
+ }
+ }
+ // Do nothing to macros
+ if (node.val == "macro") {
+ return std::pair<Node, bool>(node, changed);
+ }
+ // Ignore comments
+ if (node.val == "comment") {
+ return std::pair<Node, bool>(node, changed);
+ }
+ // Special storage transformation
+ if (isNodeStorageVariable(node)) {
+ node = storageTransform(node, pr.second);
+ changed = true;
+ }
+ if (node.val == "ref" && isNodeStorageVariable(node.args[0])) {
+ node = storageTransform(node.args[0], pr.second, false, true);
+ changed = true;
+ }
+ if (node.val == "=" && isNodeStorageVariable(node.args[0])) {
+ Node t = storageTransform(node.args[0], pr.second);
+ if (t.val == "sload") {
+ std::vector<Node> o;
+ o.push_back(t.args[0]);
+ o.push_back(node.args[1]);
+ node = astnode("sstore", o, node.metadata);
+ }
+ changed = true;
+ }
+ // Main code
+ unsigned pos = 0;
+ std::string prefix = "_temp"+mkUniqueToken()+"_";
+ while(1) {
+ if (synonyms[pos][0] == "---END---") {
+ break;
+ }
+ else if (node.type == ASTNODE && node.val == synonyms[pos][0]) {
+ node.val = synonyms[pos][1];
+ changed = true;
+ }
+ pos++;
+ }
+ for (pos = 0; pos < nodeMacros.size() + pr.second.customMacros.size(); pos++) {
+ rewriteRule macro = pos < nodeMacros.size()
+ ? nodeMacros[pos]
+ : pr.second.customMacros[pos - nodeMacros.size()];
+ matchResult mr = match(macro.pattern, node);
+ if (mr.success) {
+ node = subst(macro.substitution, mr.map, prefix, node.metadata);
+ std::pair<Node, bool> o =
+ apply_rules_iter(preprocessResult(node, pr.second));
+ o.second = true;
+ return o;
+ }
+ }
+ // Special transformations
+ if (node.val == "outer") {
+ node = apply_rules(preprocess(node.args[0]));
+ changed = true;
+ }
+ if (node.val == "array_lit") {
+ node = array_lit_transform(node);
+ changed = true;
+ }
+ if (node.val == "fun" && node.args[0].val == ".") {
+ node = dotTransform(node, pr.second);
+ changed = true;
+ }
+ if (node.type == ASTNODE) {
+ unsigned i = 0;
+ if (node.val == "set" || node.val == "ref"
+ || node.val == "get" || node.val == "with") {
+ if (node.args[0].val.size() > 0 && node.args[0].val[0] != '\''
+ && node.args[0].type == TOKEN && node.args[0].val[0] != '$') {
+ node.args[0].val = "'" + node.args[0].val;
+ changed = true;
+ }
+ i = 1;
+ }
+ else if (node.val == "arglen") {
+ node.val = "get";
+ node.args[0].val = "'_len_" + node.args[0].val;
+ i = 1;
+ changed = true;
+ }
+ for (; i < node.args.size(); i++) {
+ std::pair<Node, bool> r =
+ apply_rules_iter(preprocessResult(node.args[i], pr.second));
+ node.args[i] = r.first;
+ changed = changed || r.second;
+ }
+ }
+ else if (node.type == TOKEN && !isNumberLike(node)) {
+ if (node.val.size() >= 2
+ && node.val[0] == '"'
+ && node.val[node.val.size() - 1] == '"') {
+ std::string bin = node.val.substr(1, node.val.size() - 2);
+ unsigned sz = bin.size();
+ std::vector<Node> o;
+ for (unsigned i = 0; i < sz; i += 32) {
+ std::string t = binToNumeric(bin.substr(i, 32));
+ if ((sz - i) < 32 && (sz - i) > 0) {
+ while ((sz - i) < 32) {
+ t = decimalMul(t, "256");
+ i--;
+ }
+ i = sz;
+ }
+ o.push_back(token(t, node.metadata));
+ }
+ node = astnode("array_lit", o, node.metadata);
+ std::pair<Node, bool> r =
+ apply_rules_iter(preprocessResult(node, pr.second));
+ node = r.first;
+ changed = true;
+ }
+ else if (node.val.size() && node.val[0] != '\'' && node.val[0] != '$') {
+ node.val = "'" + node.val;
+ std::vector<Node> args;
+ args.push_back(node);
+ std::string v = node.val.substr(1);
+ node = astnode("get", args, node.metadata);
+ changed = true;
+ }
+ }
+ return std::pair<Node, bool>(node, changed);
+}
+
+Node apply_rules(preprocessResult pr) {
+ for (unsigned i = 0; i < pr.second.customMacros.size(); i++) {
+ pr.second.customMacros[i].pattern =
+ apply_rules(preprocessResult(pr.second.customMacros[i].pattern, preprocessAux()));
+ }
+ while (1) {
+ //std::cerr << printAST(pr.first) <<
+ // " " << pr.second.customMacros.size() << "\n";
+ std::pair<Node, bool> r = apply_rules_iter(pr);
+ if (!r.second) {
+ return r.first;
+ }
+ pr.first = r.first;
+ }
+}
+
+Node validate(Node inp) {
+ Metadata m = inp.metadata;
+ if (inp.type == ASTNODE) {
+ int i = 0;
+ while(validFunctions[i][0] != "---END---") {
+ if (inp.val == validFunctions[i][0]) {
+ std::string sz = unsignedToDecimal(inp.args.size());
+ if (decimalGt(validFunctions[i][1], sz)) {
+ err("Too few arguments for "+inp.val, inp.metadata);
+ }
+ if (decimalGt(sz, validFunctions[i][2])) {
+ err("Too many arguments for "+inp.val, inp.metadata);
+ }
+ }
+ i++;
+ }
+ }
+ for (unsigned i = 0; i < inp.args.size(); i++) validate(inp.args[i]);
+ return inp;
+}
+
+Node postValidate(Node inp) {
+ // This allows people to use ~x as a way of having functions with the same
+ // name and arity as macros; the idea is that ~x is a "final" form, and
+ // should not be remacroed, but it is converted back at the end
+ if (inp.val.size() > 0 && inp.val[0] == '~') {
+ inp.val = inp.val.substr(1);
+ }
+ if (inp.type == ASTNODE) {
+ if (inp.val == ".")
+ err("Invalid object member (ie. a foo.bar not mapped to anything)",
+ inp.metadata);
+ else if (opcode(inp.val) >= 0) {
+ if ((signed)inp.args.size() < opinputs(inp.val))
+ err("Too few arguments for "+inp.val, inp.metadata);
+ if ((signed)inp.args.size() > opinputs(inp.val))
+ err("Too many arguments for "+inp.val, inp.metadata);
+ }
+ else if (isValidLLLFunc(inp.val, inp.args.size())) {
+ // do nothing
+ }
+ else err ("Invalid argument count or LLL function: "+inp.val, inp.metadata);
+ for (unsigned i = 0; i < inp.args.size(); i++) {
+ inp.args[i] = postValidate(inp.args[i]);
+ }
+ }
+ return inp;
+}
+
+Node rewrite(Node inp) {
+ return postValidate(optimize(apply_rules(preprocess(inp))));
+}
+
+Node rewriteChunk(Node inp) {
+ return postValidate(optimize(apply_rules(
+ preprocessResult(
+ validate(inp), preprocessAux()))));
+}
+
+using namespace std;
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriter.h b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriter.h
new file mode 100644
index 000000000..716815cee
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriter.h
@@ -0,0 +1,16 @@
+#ifndef ETHSERP_REWRITER
+#define ETHSERP_REWRITER
+
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+
+// Applies rewrite rules
+Node rewrite(Node inp);
+
+// Applies rewrite rules adding without wrapper
+Node rewriteChunk(Node inp);
+
+#endif
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriteutils.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriteutils.cpp
new file mode 100644
index 000000000..0d810bdbc
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriteutils.cpp
@@ -0,0 +1,211 @@
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+#include "lllparser.h"
+#include "bignum.h"
+#include "rewriteutils.h"
+#include "optimize.h"
+
+// Valid functions and their min and max argument counts
+std::string validFunctions[][3] = {
+ { "if", "2", "3" },
+ { "unless", "2", "2" },
+ { "while", "2", "2" },
+ { "until", "2", "2" },
+ { "alloc", "1", "1" },
+ { "array", "1", "1" },
+ { "call", "2", tt256 },
+ { "callcode", "2", tt256 },
+ { "create", "1", "4" },
+ { "getch", "2", "2" },
+ { "setch", "3", "3" },
+ { "sha3", "1", "2" },
+ { "return", "1", "2" },
+ { "inset", "1", "1" },
+ { "min", "2", "2" },
+ { "max", "2", "2" },
+ { "array_lit", "0", tt256 },
+ { "seq", "0", tt256 },
+ { "log", "1", "6" },
+ { "outer", "1", "1" },
+ { "set", "2", "2" },
+ { "get", "1", "1" },
+ { "ref", "1", "1" },
+ { "declare", "1", tt256 },
+ { "with", "3", "3" },
+ { "outer", "1", "1" },
+ { "mcopy", "3", "3" },
+ { "unsafe_mcopy", "3", "3" },
+ { "save", "3", "3" },
+ { "load", "2", "2" },
+ { "---END---", "", "" } //Keep this line at the end of the list
+};
+
+std::map<std::string, bool> vfMap;
+
+// Is a function name one of the valid functions above?
+bool isValidFunctionName(std::string f) {
+ if (vfMap.size() == 0) {
+ for (int i = 0; ; i++) {
+ if (validFunctions[i][0] == "---END---") break;
+ vfMap[validFunctions[i][0]] = true;
+ }
+ }
+ return vfMap.count(f);
+}
+
+// Cool function for debug purposes (named cerrStringList to make
+// all prints searchable via 'cerr')
+void cerrStringList(std::vector<std::string> s, std::string suffix) {
+ for (unsigned i = 0; i < s.size(); i++) std::cerr << s[i] << " ";
+ std::cerr << suffix << "\n";
+}
+
+// Convert:
+// self.cow -> ["cow"]
+// self.horse[0] -> ["horse", "0"]
+// self.a[6][7][self.storage[3]].chicken[9] ->
+// ["6", "7", (sload 3), "chicken", "9"]
+std::vector<Node> listfyStorageAccess(Node node) {
+ std::vector<Node> out;
+ std::vector<Node> nodez;
+ nodez.push_back(node);
+ while (1) {
+ if (nodez.back().type == TOKEN) {
+ out.push_back(token("--" + nodez.back().val, node.metadata));
+ std::vector<Node> outrev;
+ for (int i = (signed)out.size() - 1; i >= 0; i--) {
+ outrev.push_back(out[i]);
+ }
+ return outrev;
+ }
+ if (nodez.back().val == ".")
+ nodez.back().args[1].val = "--" + nodez.back().args[1].val;
+ if (nodez.back().args.size() == 0)
+ err("Error parsing storage variable statement", node.metadata);
+ if (nodez.back().args.size() == 1)
+ out.push_back(token(tt256m1, node.metadata));
+ else
+ out.push_back(nodez.back().args[1]);
+ nodez.push_back(nodez.back().args[0]);
+ }
+}
+
+// Is the given node something of the form
+// self.cow
+// self.horse[0]
+// self.a[6][7][self.storage[3]].chicken[9]
+bool isNodeStorageVariable(Node node) {
+ std::vector<Node> nodez;
+ nodez.push_back(node);
+ while (1) {
+ if (nodez.back().type == TOKEN) return false;
+ if (nodez.back().args.size() == 0) return false;
+ if (nodez.back().val != "." && nodez.back().val != "access")
+ return false;
+ if (nodez.back().args[0].val == "self") return true;
+ nodez.push_back(nodez.back().args[0]);
+ }
+}
+
+// Main pattern matching routine, for those patterns that can be expressed
+// using our standard mini-language above
+//
+// Returns two values. First, a boolean to determine whether the node matches
+// the pattern, second, if the node does match then a map mapping variables
+// in the pattern to nodes
+matchResult match(Node p, Node n) {
+ matchResult o;
+ o.success = false;
+ if (p.type == TOKEN) {
+ if (p.val == n.val && n.type == TOKEN) o.success = true;
+ else if (p.val[0] == '$' || p.val[0] == '@') {
+ o.success = true;
+ o.map[p.val.substr(1)] = n;
+ }
+ }
+ else if (n.type==TOKEN || p.val!=n.val || p.args.size()!=n.args.size()) {
+ // do nothing
+ }
+ else {
+ for (unsigned i = 0; i < p.args.size(); i++) {
+ matchResult oPrime = match(p.args[i], n.args[i]);
+ if (!oPrime.success) {
+ o.success = false;
+ return o;
+ }
+ for (std::map<std::string, Node>::iterator it = oPrime.map.begin();
+ it != oPrime.map.end();
+ it++) {
+ o.map[(*it).first] = (*it).second;
+ }
+ }
+ o.success = true;
+ }
+ return o;
+}
+
+
+// Fills in the pattern with a dictionary mapping variable names to
+// nodes (these dicts are generated by match). Match and subst together
+// create a full pattern-matching engine.
+Node subst(Node pattern,
+ std::map<std::string, Node> dict,
+ std::string varflag,
+ Metadata m) {
+ // Swap out patterns at the token level
+ if (pattern.metadata.ln == -1)
+ pattern.metadata = m;
+ if (pattern.type == TOKEN &&
+ pattern.val[0] == '$') {
+ if (dict.count(pattern.val.substr(1))) {
+ return dict[pattern.val.substr(1)];
+ }
+ else {
+ return token(varflag + pattern.val.substr(1), m);
+ }
+ }
+ // Other tokens are untouched
+ else if (pattern.type == TOKEN) {
+ return pattern;
+ }
+ // Substitute recursively for ASTs
+ else {
+ std::vector<Node> args;
+ for (unsigned i = 0; i < pattern.args.size(); i++) {
+ args.push_back(subst(pattern.args[i], dict, varflag, m));
+ }
+ return asn(pattern.val, args, m);
+ }
+}
+
+// Transforms a sequence containing two-argument with statements
+// into a statement containing those statements in nested form
+Node withTransform (Node source) {
+ Node o = token("--");
+ Metadata m = source.metadata;
+ std::vector<Node> args;
+ for (int i = source.args.size() - 1; i >= 0; i--) {
+ Node a = source.args[i];
+ if (a.val == "with" && a.args.size() == 2) {
+ std::vector<Node> flipargs;
+ for (int j = args.size() - 1; j >= 0; j--)
+ flipargs.push_back(args[i]);
+ if (o.val != "--")
+ flipargs.push_back(o);
+ o = asn("with", a.args[0], a.args[1], asn("seq", flipargs, m), m);
+ args = std::vector<Node>();
+ }
+ else {
+ args.push_back(a);
+ }
+ }
+ std::vector<Node> flipargs;
+ for (int j = args.size() - 1; j >= 0; j--)
+ flipargs.push_back(args[j]);
+ if (o.val != "--")
+ flipargs.push_back(o);
+ return asn("seq", flipargs, m);
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriteutils.h b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriteutils.h
new file mode 100644
index 000000000..8abf44a9f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/rewriteutils.h
@@ -0,0 +1,51 @@
+#ifndef ETHSERP_REWRITEUTILS
+#define ETHSERP_REWRITEUTILS
+
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+
+// Valid functions and their min and max argument counts
+extern std::string validFunctions[][3];
+
+extern std::map<std::string, bool> vfMap;
+
+bool isValidFunctionName(std::string f);
+
+// Converts deep array access into ordered list of the arguments
+// along the descent
+std::vector<Node> listfyStorageAccess(Node node);
+
+// Cool function for debug purposes (named cerrStringList to make
+// all prints searchable via 'cerr')
+void cerrStringList(std::vector<std::string> s, std::string suffix="");
+
+// Is the given node something of the form
+// self.cow
+// self.horse[0]
+// self.a[6][7][self.storage[3]].chicken[9]
+bool isNodeStorageVariable(Node node);
+
+// Applies rewrite rules adding without wrapper
+Node rewriteChunk(Node inp);
+
+// Match result storing object
+struct matchResult {
+ bool success;
+ std::map<std::string, Node> map;
+};
+
+// Match node to pattern
+matchResult match(Node p, Node n);
+
+// Substitute node using pattern
+Node subst(Node pattern,
+ std::map<std::string, Node> dict,
+ std::string varflag,
+ Metadata m);
+
+Node withTransform(Node source);
+
+#endif
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/serpent.py b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/serpent.py
new file mode 100644
index 000000000..8d6bedfe3
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/serpent.py
@@ -0,0 +1,201 @@
+import serpent_pyext as pyext
+import sys
+import re
+
+VERSION = '1.7.7'
+
+
+class Metadata(object):
+ def __init__(self, li):
+ self.file = li[0]
+ self.ln = li[1]
+ self.ch = li[2]
+
+ def out(self):
+ return [self.file, self.ln, self.ch]
+
+
+class Token(object):
+ def __init__(self, val, metadata):
+ self.val = val
+ self.metadata = Metadata(metadata)
+
+ def out(self):
+ return [0, self.val, self.metadata.out()]
+
+ def __repr__(self):
+ return str(self.val)
+
+
+class Astnode(object):
+ def __init__(self, val, args, metadata):
+ self.val = val
+ self.args = map(node, args)
+ self.metadata = Metadata(metadata)
+
+ def out(self):
+ o = [1, self.val, self.metadata.out()]+[x.out() for x in self.args]
+ return o
+
+ def __repr__(self):
+ o = '(' + self.val
+ subs = map(repr, self.args)
+ k = 0
+ out = " "
+ while k < len(subs) and o != "(seq":
+ if '\n' in subs[k] or len(out + subs[k]) >= 80:
+ break
+ out += subs[k] + " "
+ k += 1
+ if k < len(subs):
+ o += out + "\n "
+ o += '\n '.join('\n'.join(subs[k:]).split('\n'))
+ o += '\n)'
+ else:
+ o += out[:-1] + ')'
+ return o
+
+
+def node(li):
+ if li[0]:
+ return Astnode(li[1], li[3:], li[2])
+ else:
+ return Token(li[1], li[2])
+
+
+def take(x):
+ return pyext.parse_lll(x) if isinstance(x, (str, unicode)) else x.out()
+
+
+def takelist(x):
+ return map(take, parse(x).args if isinstance(x, (str, unicode)) else x)
+
+
+compile = lambda x: pyext.compile(x)
+compile_chunk = lambda x: pyext.compile_chunk(x)
+compile_to_lll = lambda x: node(pyext.compile_to_lll(x))
+compile_chunk_to_lll = lambda x: node(pyext.compile_chunk_to_lll(x))
+compile_lll = lambda x: pyext.compile_lll(take(x))
+parse = lambda x: node(pyext.parse(x))
+rewrite = lambda x: node(pyext.rewrite(take(x)))
+rewrite_chunk = lambda x: node(pyext.rewrite_chunk(take(x)))
+pretty_compile = lambda x: map(node, pyext.pretty_compile(x))
+pretty_compile_chunk = lambda x: map(node, pyext.pretty_compile_chunk(x))
+pretty_compile_lll = lambda x: map(node, pyext.pretty_compile_lll(take(x)))
+serialize = lambda x: pyext.serialize(takelist(x))
+deserialize = lambda x: map(node, pyext.deserialize(x))
+
+is_numeric = lambda x: isinstance(x, (int, long))
+is_string = lambda x: isinstance(x, (str, unicode))
+tobytearr = lambda n, L: [] if L == 0 else tobytearr(n / 256, L - 1)+[n % 256]
+
+
+# A set of methods for detecting raw values (numbers and strings) and
+# converting them to integers
+def frombytes(b):
+ return 0 if len(b) == 0 else ord(b[-1]) + 256 * frombytes(b[:-1])
+
+
+def fromhex(b):
+ hexord = lambda x: '0123456789abcdef'.find(x)
+ return 0 if len(b) == 0 else hexord(b[-1]) + 16 * fromhex(b[:-1])
+
+
+def numberize(b):
+ if is_numeric(b):
+ return b
+ elif b[0] in ["'", '"']:
+ return frombytes(b[1:-1])
+ elif b[:2] == '0x':
+ return fromhex(b[2:])
+ elif re.match('^[0-9]*$', b):
+ return int(b)
+ elif len(b) == 40:
+ return fromhex(b)
+ else:
+ raise Exception("Cannot identify data type: %r" % b)
+
+
+def enc(n):
+ if is_numeric(n):
+ return ''.join(map(chr, tobytearr(n, 32)))
+ elif is_string(n) and len(n) == 40:
+ return '\x00' * 12 + n.decode('hex')
+ elif is_string(n):
+ return '\x00' * (32 - len(n)) + n
+ elif n is True:
+ return 1
+ elif n is False or n is None:
+ return 0
+
+
+def encode_datalist(*args):
+ if isinstance(args, (tuple, list)):
+ return ''.join(map(enc, args))
+ elif not len(args) or args[0] == '':
+ return ''
+ else:
+ # Assume you're getting in numbers or addresses or 0x...
+ return ''.join(map(enc, map(numberize, args)))
+
+
+def decode_datalist(arr):
+ if isinstance(arr, list):
+ arr = ''.join(map(chr, arr))
+ o = []
+ for i in range(0, len(arr), 32):
+ o.append(frombytes(arr[i:i + 32]))
+ return o
+
+
+def encode_abi(funid, *args):
+ len_args = ''
+ normal_args = ''
+ var_args = ''
+ for arg in args:
+ if isinstance(arg, str) and len(arg) and \
+ arg[0] == '"' and arg[-1] == '"':
+ len_args += enc(numberize(len(arg[1:-1])))
+ var_args += arg[1:-1]
+ elif isinstance(arg, list):
+ for a in arg:
+ var_args += enc(numberize(a))
+ len_args += enc(numberize(len(arg)))
+ else:
+ normal_args += enc(numberize(arg))
+ return chr(int(funid)) + len_args + normal_args + var_args
+
+
+def decode_abi(arr, *lens):
+ o = []
+ pos = 1
+ i = 0
+ if len(lens) == 1 and isinstance(lens[0], list):
+ lens = lens[0]
+ while pos < len(arr):
+ bytez = int(lens[i]) if i < len(lens) else 32
+ o.append(frombytes(arr[pos: pos + bytez]))
+ i, pos = i + 1, pos + bytez
+ return o
+
+
+def main():
+ if len(sys.argv) == 1:
+ print "serpent <command> <arg1> <arg2> ..."
+ else:
+ cmd = sys.argv[2] if sys.argv[1] == '-s' else sys.argv[1]
+ if sys.argv[1] == '-s':
+ args = [sys.stdin.read()] + sys.argv[3:]
+ elif sys.argv[1] == '-v':
+ print VERSION
+ sys.exit()
+ else:
+ cmd = sys.argv[1]
+ args = sys.argv[2:]
+ if cmd in ['deserialize', 'decode_datalist', 'decode_abi']:
+ args[0] = args[0].strip().decode('hex')
+ o = globals()[cmd](*args)
+ if isinstance(o, (Token, Astnode, list)):
+ print repr(o)
+ else:
+ print o.encode('hex')
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/setup.py b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/setup.py
new file mode 100644
index 000000000..5fdc1c16a
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/setup.py
@@ -0,0 +1,46 @@
+from setuptools import setup, Extension
+
+import os
+from distutils.sysconfig import get_config_vars
+
+(opt,) = get_config_vars('OPT')
+os.environ['OPT'] = " ".join(
+ flag for flag in opt.split() if flag != '-Wstrict-prototypes'
+)
+
+setup(
+ # Name of this package
+ name="ethereum-serpent",
+
+ # Package version
+ version='1.7.7',
+
+ description='Serpent compiler',
+ maintainer='Vitalik Buterin',
+ maintainer_email='v@buterin.com',
+ license='WTFPL',
+ url='http://www.ethereum.org/',
+
+ # Describes how to build the actual extension module from C source files.
+ ext_modules=[
+ Extension(
+ 'serpent_pyext', # Python name of the module
+ ['bignum.cpp', 'util.cpp', 'tokenize.cpp',
+ 'lllparser.cpp', 'parser.cpp', 'functions.cpp',
+ 'optimize.cpp', 'opcodes.cpp',
+ 'rewriteutils.cpp', 'preprocess.cpp', 'rewriter.cpp',
+ 'compiler.cpp', 'funcs.cpp', 'pyserpent.cpp']
+ )],
+ py_modules=[
+ 'serpent',
+ 'pyserpent'
+ ],
+ scripts=[
+ 'serpent.py'
+ ],
+ entry_points={
+ 'console_scripts': [
+ 'serpent = serpent:main',
+ ],
+ }
+ ),
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/tokenize.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/tokenize.cpp
new file mode 100644
index 000000000..b60cc8a44
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/tokenize.cpp
@@ -0,0 +1,115 @@
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+
+// These appear as independent tokens even if inside a stream of symbols
+const std::string atoms[] = { "#", "//", "(", ")", "[", "]", "{", "}" };
+const int numAtoms = 8;
+
+// Is the char alphanumeric, a space, a bracket, a quote, a symbol?
+int chartype(char c) {
+ if (c >= '0' && c <= '9') return ALPHANUM;
+ else if (c >= 'a' && c <= 'z') return ALPHANUM;
+ else if (c >= 'A' && c <= 'Z') return ALPHANUM;
+ else if (std::string("~_$@").find(c) != std::string::npos) return ALPHANUM;
+ else if (c == '\t' || c == ' ' || c == '\n' || c == '\r') return SPACE;
+ else if (std::string("()[]{}").find(c) != std::string::npos) return BRACK;
+ else if (c == '"') return DQUOTE;
+ else if (c == '\'') return SQUOTE;
+ else return SYMB;
+}
+
+// "y = f(45,124)/3" -> [ "y", "f", "(", "45", ",", "124", ")", "/", "3"]
+std::vector<Node> tokenize(std::string inp, Metadata metadata, bool lispMode) {
+ int curtype = SPACE;
+ unsigned pos = 0;
+ int lastNewline = 0;
+ metadata.ch = 0;
+ std::string cur;
+ std::vector<Node> out;
+
+ inp += " ";
+ while (pos < inp.length()) {
+ int headtype = chartype(inp[pos]);
+ if (lispMode) {
+ if (inp[pos] == '\'') headtype = ALPHANUM;
+ }
+ // Are we inside a quote?
+ if (curtype == SQUOTE || curtype == DQUOTE) {
+ // Close quote
+ if (headtype == curtype) {
+ cur += inp[pos];
+ out.push_back(token(cur, metadata));
+ cur = "";
+ metadata.ch = pos - lastNewline;
+ curtype = SPACE;
+ pos += 1;
+ }
+ // eg. \xc3
+ else if (inp.length() >= pos + 4 && inp.substr(pos, 2) == "\\x") {
+ cur += (std::string("0123456789abcdef").find(inp[pos+2]) * 16
+ + std::string("0123456789abcdef").find(inp[pos+3]));
+ pos += 4;
+ }
+ // Newline
+ else if (inp.substr(pos, 2) == "\\n") {
+ cur += '\n';
+ pos += 2;
+ }
+ // Backslash escape
+ else if (inp.length() >= pos + 2 && inp[pos] == '\\') {
+ cur += inp[pos + 1];
+ pos += 2;
+ }
+ // Normal character
+ else {
+ cur += inp[pos];
+ pos += 1;
+ }
+ }
+ else {
+ // Handle atoms ( '//', '#', brackets )
+ for (int i = 0; i < numAtoms; i++) {
+ int split = cur.length() - atoms[i].length();
+ if (split >= 0 && cur.substr(split) == atoms[i]) {
+ if (split > 0) {
+ out.push_back(token(cur.substr(0, split), metadata));
+ }
+ metadata.ch += split;
+ out.push_back(token(cur.substr(split), metadata));
+ metadata.ch = pos - lastNewline;
+ cur = "";
+ curtype = SPACE;
+ }
+ }
+ // Special case the minus sign
+ if (cur.length() > 1 && (cur.substr(cur.length() - 1) == "-"
+ || cur.substr(cur.length() - 1) == "!")) {
+ out.push_back(token(cur.substr(0, cur.length() - 1), metadata));
+ out.push_back(token(cur.substr(cur.length() - 1), metadata));
+ cur = "";
+ }
+ // Boundary between different char types
+ if (headtype != curtype) {
+ if (curtype != SPACE && cur != "") {
+ out.push_back(token(cur, metadata));
+ }
+ metadata.ch = pos - lastNewline;
+ cur = "";
+ }
+ cur += inp[pos];
+ curtype = headtype;
+ pos += 1;
+ }
+ if (inp[pos] == '\n') {
+ lastNewline = pos;
+ metadata.ch = 0;
+ metadata.ln += 1;
+ }
+ }
+ return out;
+}
+
+
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/tokenize.h b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/tokenize.h
new file mode 100644
index 000000000..04a42f3c6
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/tokenize.h
@@ -0,0 +1,16 @@
+#ifndef ETHSERP_TOKENIZE
+#define ETHSERP_TOKENIZE
+
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+
+int chartype(char c);
+
+std::vector<Node> tokenize(std::string inp,
+ Metadata meta=Metadata(),
+ bool lispMode=false);
+
+#endif
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/util.cpp b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/util.cpp
new file mode 100644
index 000000000..56f642fc8
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/util.cpp
@@ -0,0 +1,305 @@
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include "util.h"
+#include "bignum.h"
+#include <fstream>
+#include <cerrno>
+
+//Token or value node constructor
+Node token(std::string val, Metadata met) {
+ Node o;
+ o.type = 0;
+ o.val = val;
+ o.metadata = met;
+ return o;
+}
+
+//AST node constructor
+Node astnode(std::string val, std::vector<Node> args, Metadata met) {
+ Node o;
+ o.type = 1;
+ o.val = val;
+ o.args = args;
+ o.metadata = met;
+ return o;
+}
+
+//AST node constructors for a specific number of children
+Node astnode(std::string val, Metadata met) {
+ std::vector<Node> args;
+ return astnode(val, args, met);
+}
+
+Node astnode(std::string val, Node a, Metadata met) {
+ std::vector<Node> args;
+ args.push_back(a);
+ return astnode(val, args, met);
+}
+
+Node astnode(std::string val, Node a, Node b, Metadata met) {
+ std::vector<Node> args;
+ args.push_back(a);
+ args.push_back(b);
+ return astnode(val, args, met);
+}
+
+Node astnode(std::string val, Node a, Node b, Node c, Metadata met) {
+ std::vector<Node> args;
+ args.push_back(a);
+ args.push_back(b);
+ args.push_back(c);
+ return astnode(val, args, met);
+}
+
+Node astnode(std::string val, Node a, Node b, Node c, Node d, Metadata met) {
+ std::vector<Node> args;
+ args.push_back(a);
+ args.push_back(b);
+ args.push_back(c);
+ args.push_back(d);
+ return astnode(val, args, met);
+}
+
+
+// Print token list
+std::string printTokens(std::vector<Node> tokens) {
+ std::string s = "";
+ for (unsigned i = 0; i < tokens.size(); i++) {
+ s += tokens[i].val + " ";
+ }
+ return s;
+}
+
+// Prints a lisp AST on one line
+std::string printSimple(Node ast) {
+ if (ast.type == TOKEN) return ast.val;
+ std::string o = "(" + ast.val;
+ std::vector<std::string> subs;
+ for (unsigned i = 0; i < ast.args.size(); i++) {
+ o += " " + printSimple(ast.args[i]);
+ }
+ return o + ")";
+}
+
+// Number of tokens in a tree
+int treeSize(Node prog) {
+ if (prog.type == TOKEN) return 1;
+ int o = 0;
+ for (unsigned i = 0; i < prog.args.size(); i++) o += treeSize(prog.args[i]);
+ return o;
+}
+
+// Pretty-prints a lisp AST
+std::string printAST(Node ast, bool printMetadata) {
+ if (ast.type == TOKEN) return ast.val;
+ std::string o = "(";
+ if (printMetadata) {
+ o += ast.metadata.file + " ";
+ o += unsignedToDecimal(ast.metadata.ln) + " ";
+ o += unsignedToDecimal(ast.metadata.ch) + ": ";
+ }
+ o += ast.val;
+ std::vector<std::string> subs;
+ for (unsigned i = 0; i < ast.args.size(); i++) {
+ subs.push_back(printAST(ast.args[i], printMetadata));
+ }
+ unsigned k = 0;
+ std::string out = " ";
+ // As many arguments as possible go on the same line as the function,
+ // except when seq is used
+ while (k < subs.size() && o != "(seq") {
+ if (subs[k].find("\n") != std::string::npos || (out + subs[k]).length() >= 80) break;
+ out += subs[k] + " ";
+ k += 1;
+ }
+ // All remaining arguments go on their own lines
+ if (k < subs.size()) {
+ o += out + "\n";
+ std::vector<std::string> subsSliceK;
+ for (unsigned i = k; i < subs.size(); i++) subsSliceK.push_back(subs[i]);
+ o += indentLines(joinLines(subsSliceK));
+ o += "\n)";
+ }
+ else {
+ o += out.substr(0, out.size() - 1) + ")";
+ }
+ return o;
+}
+
+// Splits text by line
+std::vector<std::string> splitLines(std::string s) {
+ unsigned pos = 0;
+ int lastNewline = 0;
+ std::vector<std::string> o;
+ while (pos < s.length()) {
+ if (s[pos] == '\n') {
+ o.push_back(s.substr(lastNewline, pos - lastNewline));
+ lastNewline = pos + 1;
+ }
+ pos = pos + 1;
+ }
+ o.push_back(s.substr(lastNewline));
+ return o;
+}
+
+// Inverse of splitLines
+std::string joinLines(std::vector<std::string> lines) {
+ std::string o = "\n";
+ for (unsigned i = 0; i < lines.size(); i++) {
+ o += lines[i] + "\n";
+ }
+ return o.substr(1, o.length() - 2);
+}
+
+// Indent all lines by 4 spaces
+std::string indentLines(std::string inp) {
+ std::vector<std::string> lines = splitLines(inp);
+ for (unsigned i = 0; i < lines.size(); i++) lines[i] = " "+lines[i];
+ return joinLines(lines);
+}
+
+// Binary to hexadecimal
+std::string binToNumeric(std::string inp) {
+ std::string o = "0";
+ for (unsigned i = 0; i < inp.length(); i++) {
+ o = decimalAdd(decimalMul(o,"256"), unsignedToDecimal((unsigned char)inp[i]));
+ }
+ return o;
+}
+
+// Converts string to simple numeric format
+std::string strToNumeric(std::string inp) {
+ std::string o = "0";
+ if (inp == "") {
+ o = "";
+ }
+ else if (inp.substr(0,2) == "0x") {
+ for (unsigned i = 2; i < inp.length(); i++) {
+ int dig = std::string("0123456789abcdef0123456789ABCDEF").find(inp[i]) % 16;
+ if (dig < 0) return "";
+ o = decimalAdd(decimalMul(o,"16"), unsignedToDecimal(dig));
+ }
+ }
+ else {
+ bool isPureNum = true;
+ for (unsigned i = 0; i < inp.length(); i++) {
+ isPureNum = isPureNum && inp[i] >= '0' && inp[i] <= '9';
+ }
+ o = isPureNum ? inp : "";
+ }
+ return o;
+}
+
+// Does the node contain a number (eg. 124, 0xf012c, "george")
+bool isNumberLike(Node node) {
+ if (node.type == ASTNODE) return false;
+ return strToNumeric(node.val) != "";
+}
+
+//Normalizes number representations
+Node nodeToNumeric(Node node) {
+ std::string o = strToNumeric(node.val);
+ return token(o == "" ? node.val : o, node.metadata);
+}
+
+Node tryNumberize(Node node) {
+ if (node.type == TOKEN && isNumberLike(node)) return nodeToNumeric(node);
+ return node;
+}
+
+//Converts a value to an array of byte number nodes
+std::vector<Node> toByteArr(std::string val, Metadata metadata, int minLen) {
+ std::vector<Node> o;
+ int L = 0;
+ while (val != "0" || L < minLen) {
+ o.push_back(token(decimalMod(val, "256"), metadata));
+ val = decimalDiv(val, "256");
+ L++;
+ }
+ std::vector<Node> o2;
+ for (int i = o.size() - 1; i >= 0; i--) o2.push_back(o[i]);
+ return o2;
+}
+
+int counter = 0;
+
+//Makes a unique token
+std::string mkUniqueToken() {
+ counter++;
+ return unsignedToDecimal(counter);
+}
+
+//Does a file exist? http://stackoverflow.com/questions/12774207
+bool exists(std::string fileName) {
+ std::ifstream infile(fileName.c_str());
+ return infile.good();
+}
+
+//Reads a file: http://stackoverflow.com/questions/2602013
+std::string get_file_contents(std::string filename)
+{
+ std::ifstream in(filename.c_str(), std::ios::in | std::ios::binary);
+ if (in)
+ {
+ std::string contents;
+ in.seekg(0, std::ios::end);
+ contents.resize(in.tellg());
+ in.seekg(0, std::ios::beg);
+ in.read(&contents[0], contents.size());
+ in.close();
+ return(contents);
+ }
+ throw(errno);
+}
+
+//Report error
+void err(std::string errtext, Metadata met) {
+ std::string err = "Error (file \"" + met.file + "\", line " +
+ unsignedToDecimal(met.ln + 1) + ", char " + unsignedToDecimal(met.ch) +
+ "): " + errtext;
+ std::cerr << err << "\n";
+ throw(err);
+}
+
+//Bin to hex
+std::string binToHex(std::string inp) {
+ std::string o = "";
+ for (unsigned i = 0; i < inp.length(); i++) {
+ unsigned char v = inp[i];
+ o += std::string("0123456789abcdef").substr(v/16, 1)
+ + std::string("0123456789abcdef").substr(v%16, 1);
+ }
+ return o;
+}
+
+//Hex to bin
+std::string hexToBin(std::string inp) {
+ std::string o = "";
+ for (unsigned i = 0; i+1 < inp.length(); i+=2) {
+ char v = (char)(std::string("0123456789abcdef").find(inp[i]) * 16 +
+ std::string("0123456789abcdef").find(inp[i+1]));
+ o += v;
+ }
+ return o;
+}
+
+//Lower to upper
+std::string upperCase(std::string inp) {
+ std::string o = "";
+ for (unsigned i = 0; i < inp.length(); i++) {
+ if (inp[i] >= 97 && inp[i] <= 122) o += inp[i] - 32;
+ else o += inp[i];
+ }
+ return o;
+}
+
+//Three-int vector
+std::vector<int> triple(int a, int b, int c) {
+ std::vector<int> v;
+ v.push_back(a);
+ v.push_back(b);
+ v.push_back(c);
+ return v;
+}
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/util.h b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/util.h
new file mode 100644
index 000000000..f7d6744f9
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/util.h
@@ -0,0 +1,127 @@
+#ifndef ETHSERP_UTIL
+#define ETHSERP_UTIL
+
+#include <stdio.h>
+#include <iostream>
+#include <vector>
+#include <map>
+#include <fstream>
+#include <cerrno>
+
+const int TOKEN = 0,
+ ASTNODE = 1,
+ SPACE = 2,
+ BRACK = 3,
+ SQUOTE = 4,
+ DQUOTE = 5,
+ SYMB = 6,
+ ALPHANUM = 7,
+ LPAREN = 8,
+ RPAREN = 9,
+ COMMA = 10,
+ COLON = 11,
+ UNARY_OP = 12,
+ BINARY_OP = 13,
+ COMPOUND = 14,
+ TOKEN_SPLITTER = 15;
+
+// Stores metadata about each token
+class Metadata {
+ public:
+ Metadata(std::string File="main", int Ln=-1, int Ch=-1) {
+ file = File;
+ ln = Ln;
+ ch = Ch;
+ fixed = false;
+ }
+ std::string file;
+ int ln;
+ int ch;
+ bool fixed;
+};
+
+std::string mkUniqueToken();
+
+// type can be TOKEN or ASTNODE
+struct Node {
+ int type;
+ std::string val;
+ std::vector<Node> args;
+ Metadata metadata;
+};
+Node token(std::string val, Metadata met=Metadata());
+Node astnode(std::string val, std::vector<Node> args, Metadata met=Metadata());
+Node astnode(std::string val, Metadata met=Metadata());
+Node astnode(std::string val, Node a, Metadata met=Metadata());
+Node astnode(std::string val, Node a, Node b, Metadata met=Metadata());
+Node astnode(std::string val, Node a, Node b, Node c, Metadata met=Metadata());
+Node astnode(std::string val, Node a, Node b,
+ Node c, Node d, Metadata met=Metadata());
+
+// Number of tokens in a tree
+int treeSize(Node prog);
+
+// Print token list
+std::string printTokens(std::vector<Node> tokens);
+
+// Prints a lisp AST on one line
+std::string printSimple(Node ast);
+
+// Pretty-prints a lisp AST
+std::string printAST(Node ast, bool printMetadata=false);
+
+// Splits text by line
+std::vector<std::string> splitLines(std::string s);
+
+// Inverse of splitLines
+std::string joinLines(std::vector<std::string> lines);
+
+// Indent all lines by 4 spaces
+std::string indentLines(std::string inp);
+
+// Converts binary to simple numeric format
+std::string binToNumeric(std::string inp);
+
+// Converts string to simple numeric format
+std::string strToNumeric(std::string inp);
+
+// Does the node contain a number (eg. 124, 0xf012c, "george")
+bool isNumberLike(Node node);
+
+//Normalizes number representations
+Node nodeToNumeric(Node node);
+
+//If a node is numeric, normalize its representation
+Node tryNumberize(Node node);
+
+//Converts a value to an array of byte number nodes
+std::vector<Node> toByteArr(std::string val, Metadata metadata, int minLen=1);
+
+//Reads a file
+std::string get_file_contents(std::string filename);
+
+//Does a file exist?
+bool exists(std::string fileName);
+
+//Report error
+void err(std::string errtext, Metadata met);
+
+//Bin to hex
+std::string binToHex(std::string inp);
+
+//Hex to bin
+std::string hexToBin(std::string inp);
+
+//Lower to upper
+std::string upperCase(std::string inp);
+
+//Three-int vector
+std::vector<int> triple(int a, int b, int c);
+
+#define asn astnode
+#define tkn token
+#define msi std::map<std::string, int>
+#define msn std::map<std::string, Node>
+#define mss std::map<std::string, std::string>
+
+#endif
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/tests/main.go b/Godeps/_workspace/src/github.com/ethereum/serpent-go/tests/main.go
new file mode 100644
index 000000000..2f2d17784
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/tests/main.go
@@ -0,0 +1,21 @@
+package main
+
+import (
+ "fmt"
+
+ "github.com/ethereum/serpent-go"
+)
+
+func main() {
+ out, _ := serpent.Compile(`
+// Namecoin
+if !contract.storage[msg.data[0]]: # Is the key not yet taken?
+ # Then take it!
+ contract.storage[msg.data[0]] = msg.data[1]
+ return(1)
+else:
+ return(0) // Otherwise do nothing
+ `)
+
+ fmt.Printf("%x\n", out)
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/LICENSE b/Godeps/_workspace/src/github.com/fjl/goupnp/LICENSE
new file mode 100644
index 000000000..252e3d639
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/LICENSE
@@ -0,0 +1,23 @@
+Copyright (c) 2013, John Beisley <greatred@gmail.com>
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice, this
+ list of conditions and the following disclaimer in the documentation and/or
+ other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/README.md b/Godeps/_workspace/src/github.com/fjl/goupnp/README.md
new file mode 100644
index 000000000..d464c8288
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/README.md
@@ -0,0 +1,14 @@
+goupnp is a UPnP client library for Go
+
+Installation
+------------
+
+Run `go get -u github.com/fjl/goupnp`.
+
+Regenerating dcps generated source code:
+----------------------------------------
+
+1. Install gotasks: `go get -u github.com/jingweno/gotask`
+2. Change to the gotasks directory: `cd gotasks`
+3. Download UPnP specification data (if not done already): `wget http://upnp.org/resources/upnpresources.zip`
+4. Regenerate source code: `gotask specgen -s upnpresources.zip -o ../dcps`
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/cmd/example_httpu_serving/example_httpu_serving.go b/Godeps/_workspace/src/github.com/fjl/goupnp/cmd/example_httpu_serving/example_httpu_serving.go
new file mode 100644
index 000000000..d56d39572
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/cmd/example_httpu_serving/example_httpu_serving.go
@@ -0,0 +1,20 @@
+package main
+
+import (
+ "log"
+ "net/http"
+
+ "github.com/fjl/goupnp/httpu"
+)
+
+func main() {
+ srv := httpu.Server{
+ Addr: "239.255.255.250:1900",
+ Multicast: true,
+ Handler: httpu.HandlerFunc(func(r *http.Request) {
+ log.Printf("Got %s %s message from %v: %v", r.Method, r.URL.Path, r.RemoteAddr, r.Header)
+ }),
+ }
+ err := srv.ListenAndServe()
+ log.Printf("Serving failed with error: %v", err)
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/cmd/example_internetgateway1/example_internetgateway1.go b/Godeps/_workspace/src/github.com/fjl/goupnp/cmd/example_internetgateway1/example_internetgateway1.go
new file mode 100644
index 000000000..fda612500
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/cmd/example_internetgateway1/example_internetgateway1.go
@@ -0,0 +1,67 @@
+package main
+
+import (
+ "fmt"
+ "log"
+
+ "github.com/fjl/goupnp/dcps/internetgateway1"
+)
+
+func main() {
+ clients, errors, err := internetgateway1.NewWANPPPConnection1Clients()
+ if err != nil {
+ log.Fatal(err)
+ }
+
+ fmt.Printf("Got %d errors finding servers and %d successfully discovered.\n",
+ len(errors), len(clients))
+ for i, e := range errors {
+ fmt.Printf("Error finding server #%d: %v\n", i+1, e)
+ }
+
+ for _, c := range clients {
+ dev := &c.ServiceClient.RootDevice.Device
+ srv := c.ServiceClient.Service
+ fmt.Println(dev.FriendlyName, " :: ", srv.String())
+ scpd, err := srv.RequestSCDP()
+ if err != nil {
+ fmt.Printf(" Error requesting service SCPD: %v\n", err)
+ } else {
+ fmt.Println(" Available actions:")
+ for _, action := range scpd.Actions {
+ fmt.Printf(" * %s\n", action.Name)
+ for _, arg := range action.Arguments {
+ var varDesc string
+ if stateVar := scpd.GetStateVariable(arg.RelatedStateVariable); stateVar != nil {
+ varDesc = fmt.Sprintf(" (%s)", stateVar.DataType.Name)
+ }
+ fmt.Printf(" * [%s] %s%s\n", arg.Direction, arg.Name, varDesc)
+ }
+ }
+ }
+
+ if scpd == nil || scpd.GetAction("GetExternalIPAddress") != nil {
+ ip, err := c.GetExternalIPAddress()
+ fmt.Println("GetExternalIPAddress: ", ip, err)
+ }
+
+ if scpd == nil || scpd.GetAction("GetStatusInfo") != nil {
+ status, lastErr, uptime, err := c.GetStatusInfo()
+ fmt.Println("GetStatusInfo: ", status, lastErr, uptime, err)
+ }
+
+ if scpd == nil || scpd.GetAction("GetIdleDisconnectTime") != nil {
+ idleTime, err := c.GetIdleDisconnectTime()
+ fmt.Println("GetIdleDisconnectTime: ", idleTime, err)
+ }
+
+ if scpd == nil || scpd.GetAction("AddPortMapping") != nil {
+ err := c.AddPortMapping("", 5000, "TCP", 5001, "192.168.1.2", true, "Test port mapping", 0)
+ fmt.Println("AddPortMapping: ", err)
+ }
+ if scpd == nil || scpd.GetAction("DeletePortMapping") != nil {
+ err := c.DeletePortMapping("", 5000, "TCP")
+ fmt.Println("DeletePortMapping: ", err)
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/dcps/internetgateway1/internetgateway1.go b/Godeps/_workspace/src/github.com/fjl/goupnp/dcps/internetgateway1/internetgateway1.go
new file mode 100644
index 000000000..49659722c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/dcps/internetgateway1/internetgateway1.go
@@ -0,0 +1,3957 @@
+// Client for UPnP Device Control Protocol Internet Gateway Device v1.
+//
+// This DCP is documented in detail at: http://upnp.org/specs/gw/UPnP-gw-InternetGatewayDevice-v1-Device.pdf
+//
+// Typically, use one of the New* functions to discover services on the local
+// network.
+package internetgateway1
+
+// Generated file - do not edit by hand. See README.md
+
+import (
+ "time"
+
+ "github.com/fjl/goupnp"
+ "github.com/fjl/goupnp/soap"
+)
+
+// Hack to avoid Go complaining if time isn't used.
+var _ time.Time
+
+// Device URNs:
+const (
+ URN_LANDevice_1 = "urn:schemas-upnp-org:device:LANDevice:1"
+ URN_WANConnectionDevice_1 = "urn:schemas-upnp-org:device:WANConnectionDevice:1"
+ URN_WANDevice_1 = "urn:schemas-upnp-org:device:WANDevice:1"
+)
+
+// Service URNs:
+const (
+ URN_LANHostConfigManagement_1 = "urn:schemas-upnp-org:service:LANHostConfigManagement:1"
+ URN_Layer3Forwarding_1 = "urn:schemas-upnp-org:service:Layer3Forwarding:1"
+ URN_WANCableLinkConfig_1 = "urn:schemas-upnp-org:service:WANCableLinkConfig:1"
+ URN_WANCommonInterfaceConfig_1 = "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1"
+ URN_WANDSLLinkConfig_1 = "urn:schemas-upnp-org:service:WANDSLLinkConfig:1"
+ URN_WANEthernetLinkConfig_1 = "urn:schemas-upnp-org:service:WANEthernetLinkConfig:1"
+ URN_WANIPConnection_1 = "urn:schemas-upnp-org:service:WANIPConnection:1"
+ URN_WANPOTSLinkConfig_1 = "urn:schemas-upnp-org:service:WANPOTSLinkConfig:1"
+ URN_WANPPPConnection_1 = "urn:schemas-upnp-org:service:WANPPPConnection:1"
+)
+
+// LANHostConfigManagement1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:LANHostConfigManagement:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type LANHostConfigManagement1 struct {
+ goupnp.ServiceClient
+}
+
+// NewLANHostConfigManagement1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewLANHostConfigManagement1Clients() (clients []*LANHostConfigManagement1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_LANHostConfigManagement_1); err != nil {
+ return
+ }
+ clients = make([]*LANHostConfigManagement1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &LANHostConfigManagement1{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewDHCPServerConfigurable:
+//
+//
+func (client *LANHostConfigManagement1) SetDHCPServerConfigurable(NewDHCPServerConfigurable bool) (err error) {
+ // Request structure.
+ request := &struct {
+ NewDHCPServerConfigurable string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewDHCPServerConfigurable, err = soap.MarshalBoolean(NewDHCPServerConfigurable); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDHCPServerConfigurable", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDHCPServerConfigurable:
+func (client *LANHostConfigManagement1) GetDHCPServerConfigurable() (NewDHCPServerConfigurable bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDHCPServerConfigurable string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDHCPServerConfigurable", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDHCPServerConfigurable, err = soap.UnmarshalBoolean(response.NewDHCPServerConfigurable); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewDHCPRelay:
+//
+//
+func (client *LANHostConfigManagement1) SetDHCPRelay(NewDHCPRelay bool) (err error) {
+ // Request structure.
+ request := &struct {
+ NewDHCPRelay string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewDHCPRelay, err = soap.MarshalBoolean(NewDHCPRelay); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDHCPRelay", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDHCPRelay:
+func (client *LANHostConfigManagement1) GetDHCPRelay() (NewDHCPRelay bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDHCPRelay string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDHCPRelay", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDHCPRelay, err = soap.UnmarshalBoolean(response.NewDHCPRelay); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewSubnetMask:
+//
+//
+func (client *LANHostConfigManagement1) SetSubnetMask(NewSubnetMask string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewSubnetMask string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewSubnetMask, err = soap.MarshalString(NewSubnetMask); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetSubnetMask", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewSubnetMask:
+func (client *LANHostConfigManagement1) GetSubnetMask() (NewSubnetMask string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewSubnetMask string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetSubnetMask", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewSubnetMask, err = soap.UnmarshalString(response.NewSubnetMask); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewIPRouters:
+//
+//
+func (client *LANHostConfigManagement1) SetIPRouter(NewIPRouters string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewIPRouters string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewIPRouters, err = soap.MarshalString(NewIPRouters); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetIPRouter", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewIPRouters:
+//
+//
+func (client *LANHostConfigManagement1) DeleteIPRouter(NewIPRouters string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewIPRouters string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewIPRouters, err = soap.MarshalString(NewIPRouters); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteIPRouter", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewIPRouters:
+func (client *LANHostConfigManagement1) GetIPRoutersList() (NewIPRouters string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewIPRouters string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetIPRoutersList", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewIPRouters, err = soap.UnmarshalString(response.NewIPRouters); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewDomainName:
+//
+//
+func (client *LANHostConfigManagement1) SetDomainName(NewDomainName string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewDomainName string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewDomainName, err = soap.MarshalString(NewDomainName); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDomainName", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDomainName:
+func (client *LANHostConfigManagement1) GetDomainName() (NewDomainName string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDomainName string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDomainName", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDomainName, err = soap.UnmarshalString(response.NewDomainName); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewMinAddress:
+//
+// * NewMaxAddress:
+//
+//
+func (client *LANHostConfigManagement1) SetAddressRange(NewMinAddress string, NewMaxAddress string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewMinAddress string
+
+ NewMaxAddress string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewMinAddress, err = soap.MarshalString(NewMinAddress); err != nil {
+ return
+ }
+ if request.NewMaxAddress, err = soap.MarshalString(NewMaxAddress); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetAddressRange", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewMinAddress:
+//
+// * NewMaxAddress:
+func (client *LANHostConfigManagement1) GetAddressRange() (NewMinAddress string, NewMaxAddress string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewMinAddress string
+
+ NewMaxAddress string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetAddressRange", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewMinAddress, err = soap.UnmarshalString(response.NewMinAddress); err != nil {
+ return
+ }
+ if NewMaxAddress, err = soap.UnmarshalString(response.NewMaxAddress); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewReservedAddresses:
+//
+//
+func (client *LANHostConfigManagement1) SetReservedAddress(NewReservedAddresses string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewReservedAddresses string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewReservedAddresses, err = soap.MarshalString(NewReservedAddresses); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetReservedAddress", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewReservedAddresses:
+//
+//
+func (client *LANHostConfigManagement1) DeleteReservedAddress(NewReservedAddresses string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewReservedAddresses string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewReservedAddresses, err = soap.MarshalString(NewReservedAddresses); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteReservedAddress", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewReservedAddresses:
+func (client *LANHostConfigManagement1) GetReservedAddresses() (NewReservedAddresses string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewReservedAddresses string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetReservedAddresses", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewReservedAddresses, err = soap.UnmarshalString(response.NewReservedAddresses); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewDNSServers:
+//
+//
+func (client *LANHostConfigManagement1) SetDNSServer(NewDNSServers string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewDNSServers string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewDNSServers, err = soap.MarshalString(NewDNSServers); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDNSServer", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewDNSServers:
+//
+//
+func (client *LANHostConfigManagement1) DeleteDNSServer(NewDNSServers string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewDNSServers string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewDNSServers, err = soap.MarshalString(NewDNSServers); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteDNSServer", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDNSServers:
+func (client *LANHostConfigManagement1) GetDNSServers() (NewDNSServers string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDNSServers string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDNSServers", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDNSServers, err = soap.UnmarshalString(response.NewDNSServers); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Layer3Forwarding1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:Layer3Forwarding:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type Layer3Forwarding1 struct {
+ goupnp.ServiceClient
+}
+
+// NewLayer3Forwarding1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewLayer3Forwarding1Clients() (clients []*Layer3Forwarding1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_Layer3Forwarding_1); err != nil {
+ return
+ }
+ clients = make([]*Layer3Forwarding1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &Layer3Forwarding1{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewDefaultConnectionService:
+//
+//
+func (client *Layer3Forwarding1) SetDefaultConnectionService(NewDefaultConnectionService string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewDefaultConnectionService string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewDefaultConnectionService, err = soap.MarshalString(NewDefaultConnectionService); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_Layer3Forwarding_1, "SetDefaultConnectionService", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDefaultConnectionService:
+func (client *Layer3Forwarding1) GetDefaultConnectionService() (NewDefaultConnectionService string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDefaultConnectionService string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_Layer3Forwarding_1, "GetDefaultConnectionService", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDefaultConnectionService, err = soap.UnmarshalString(response.NewDefaultConnectionService); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANCableLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANCableLinkConfig:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANCableLinkConfig1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANCableLinkConfig1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANCableLinkConfig1Clients() (clients []*WANCableLinkConfig1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANCableLinkConfig_1); err != nil {
+ return
+ }
+ clients = make([]*WANCableLinkConfig1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANCableLinkConfig1{genericClients[i]}
+ }
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewCableLinkConfigState: allowed values: notReady, dsSyncComplete, usParamAcquired, rangingComplete, ipComplete, todEstablished, paramTransferComplete, registrationComplete, operational, accessDenied
+//
+// * NewLinkType: allowed values: Ethernet
+func (client *WANCableLinkConfig1) GetCableLinkConfigInfo() (NewCableLinkConfigState string, NewLinkType string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewCableLinkConfigState string
+
+ NewLinkType string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetCableLinkConfigInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewCableLinkConfigState, err = soap.UnmarshalString(response.NewCableLinkConfigState); err != nil {
+ return
+ }
+ if NewLinkType, err = soap.UnmarshalString(response.NewLinkType); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDownstreamFrequency:
+func (client *WANCableLinkConfig1) GetDownstreamFrequency() (NewDownstreamFrequency uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDownstreamFrequency string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetDownstreamFrequency", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDownstreamFrequency, err = soap.UnmarshalUi4(response.NewDownstreamFrequency); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDownstreamModulation: allowed values: 64QAM, 256QAM
+func (client *WANCableLinkConfig1) GetDownstreamModulation() (NewDownstreamModulation string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDownstreamModulation string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetDownstreamModulation", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDownstreamModulation, err = soap.UnmarshalString(response.NewDownstreamModulation); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewUpstreamFrequency:
+func (client *WANCableLinkConfig1) GetUpstreamFrequency() (NewUpstreamFrequency uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewUpstreamFrequency string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamFrequency", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewUpstreamFrequency, err = soap.UnmarshalUi4(response.NewUpstreamFrequency); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewUpstreamModulation: allowed values: QPSK, 16QAM
+func (client *WANCableLinkConfig1) GetUpstreamModulation() (NewUpstreamModulation string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewUpstreamModulation string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamModulation", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewUpstreamModulation, err = soap.UnmarshalString(response.NewUpstreamModulation); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewUpstreamChannelID:
+func (client *WANCableLinkConfig1) GetUpstreamChannelID() (NewUpstreamChannelID uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewUpstreamChannelID string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamChannelID", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewUpstreamChannelID, err = soap.UnmarshalUi4(response.NewUpstreamChannelID); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewUpstreamPowerLevel:
+func (client *WANCableLinkConfig1) GetUpstreamPowerLevel() (NewUpstreamPowerLevel uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewUpstreamPowerLevel string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamPowerLevel", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewUpstreamPowerLevel, err = soap.UnmarshalUi4(response.NewUpstreamPowerLevel); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewBPIEncryptionEnabled:
+func (client *WANCableLinkConfig1) GetBPIEncryptionEnabled() (NewBPIEncryptionEnabled bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewBPIEncryptionEnabled string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetBPIEncryptionEnabled", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewBPIEncryptionEnabled, err = soap.UnmarshalBoolean(response.NewBPIEncryptionEnabled); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewConfigFile:
+func (client *WANCableLinkConfig1) GetConfigFile() (NewConfigFile string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewConfigFile string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetConfigFile", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewConfigFile, err = soap.UnmarshalString(response.NewConfigFile); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewTFTPServer:
+func (client *WANCableLinkConfig1) GetTFTPServer() (NewTFTPServer string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewTFTPServer string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetTFTPServer", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewTFTPServer, err = soap.UnmarshalString(response.NewTFTPServer); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANCommonInterfaceConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANCommonInterfaceConfig1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANCommonInterfaceConfig1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANCommonInterfaceConfig1Clients() (clients []*WANCommonInterfaceConfig1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANCommonInterfaceConfig_1); err != nil {
+ return
+ }
+ clients = make([]*WANCommonInterfaceConfig1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANCommonInterfaceConfig1{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewEnabledForInternet:
+//
+//
+func (client *WANCommonInterfaceConfig1) SetEnabledForInternet(NewEnabledForInternet bool) (err error) {
+ // Request structure.
+ request := &struct {
+ NewEnabledForInternet string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewEnabledForInternet, err = soap.MarshalBoolean(NewEnabledForInternet); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "SetEnabledForInternet", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewEnabledForInternet:
+func (client *WANCommonInterfaceConfig1) GetEnabledForInternet() (NewEnabledForInternet bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewEnabledForInternet string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetEnabledForInternet", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewEnabledForInternet, err = soap.UnmarshalBoolean(response.NewEnabledForInternet); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewWANAccessType: allowed values: DSL, POTS, Cable, Ethernet
+//
+// * NewLayer1UpstreamMaxBitRate:
+//
+// * NewLayer1DownstreamMaxBitRate:
+//
+// * NewPhysicalLinkStatus: allowed values: Up, Down
+func (client *WANCommonInterfaceConfig1) GetCommonLinkProperties() (NewWANAccessType string, NewLayer1UpstreamMaxBitRate uint32, NewLayer1DownstreamMaxBitRate uint32, NewPhysicalLinkStatus string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewWANAccessType string
+
+ NewLayer1UpstreamMaxBitRate string
+
+ NewLayer1DownstreamMaxBitRate string
+
+ NewPhysicalLinkStatus string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetCommonLinkProperties", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewWANAccessType, err = soap.UnmarshalString(response.NewWANAccessType); err != nil {
+ return
+ }
+ if NewLayer1UpstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewLayer1UpstreamMaxBitRate); err != nil {
+ return
+ }
+ if NewLayer1DownstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewLayer1DownstreamMaxBitRate); err != nil {
+ return
+ }
+ if NewPhysicalLinkStatus, err = soap.UnmarshalString(response.NewPhysicalLinkStatus); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewWANAccessProvider:
+func (client *WANCommonInterfaceConfig1) GetWANAccessProvider() (NewWANAccessProvider string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewWANAccessProvider string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetWANAccessProvider", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewWANAccessProvider, err = soap.UnmarshalString(response.NewWANAccessProvider); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewMaximumActiveConnections: allowed value range: minimum=1, step=1
+func (client *WANCommonInterfaceConfig1) GetMaximumActiveConnections() (NewMaximumActiveConnections uint16, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewMaximumActiveConnections string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetMaximumActiveConnections", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewMaximumActiveConnections, err = soap.UnmarshalUi2(response.NewMaximumActiveConnections); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewTotalBytesSent:
+func (client *WANCommonInterfaceConfig1) GetTotalBytesSent() (NewTotalBytesSent uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewTotalBytesSent string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalBytesSent", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewTotalBytesSent, err = soap.UnmarshalUi4(response.NewTotalBytesSent); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewTotalBytesReceived:
+func (client *WANCommonInterfaceConfig1) GetTotalBytesReceived() (NewTotalBytesReceived uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewTotalBytesReceived string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalBytesReceived", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewTotalBytesReceived, err = soap.UnmarshalUi4(response.NewTotalBytesReceived); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewTotalPacketsSent:
+func (client *WANCommonInterfaceConfig1) GetTotalPacketsSent() (NewTotalPacketsSent uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewTotalPacketsSent string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalPacketsSent", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewTotalPacketsSent, err = soap.UnmarshalUi4(response.NewTotalPacketsSent); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewTotalPacketsReceived:
+func (client *WANCommonInterfaceConfig1) GetTotalPacketsReceived() (NewTotalPacketsReceived uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewTotalPacketsReceived string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalPacketsReceived", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewTotalPacketsReceived, err = soap.UnmarshalUi4(response.NewTotalPacketsReceived); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewActiveConnectionIndex:
+//
+// Return values:
+//
+// * NewActiveConnDeviceContainer:
+//
+// * NewActiveConnectionServiceID:
+func (client *WANCommonInterfaceConfig1) GetActiveConnection(NewActiveConnectionIndex uint16) (NewActiveConnDeviceContainer string, NewActiveConnectionServiceID string, err error) {
+ // Request structure.
+ request := &struct {
+ NewActiveConnectionIndex string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewActiveConnectionIndex, err = soap.MarshalUi2(NewActiveConnectionIndex); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewActiveConnDeviceContainer string
+
+ NewActiveConnectionServiceID string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetActiveConnection", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewActiveConnDeviceContainer, err = soap.UnmarshalString(response.NewActiveConnDeviceContainer); err != nil {
+ return
+ }
+ if NewActiveConnectionServiceID, err = soap.UnmarshalString(response.NewActiveConnectionServiceID); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANDSLLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANDSLLinkConfig:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANDSLLinkConfig1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANDSLLinkConfig1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANDSLLinkConfig1Clients() (clients []*WANDSLLinkConfig1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANDSLLinkConfig_1); err != nil {
+ return
+ }
+ clients = make([]*WANDSLLinkConfig1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANDSLLinkConfig1{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewLinkType:
+//
+//
+func (client *WANDSLLinkConfig1) SetDSLLinkType(NewLinkType string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewLinkType string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewLinkType, err = soap.MarshalString(NewLinkType); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetDSLLinkType", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewLinkType:
+//
+// * NewLinkStatus: allowed values: Up, Down
+func (client *WANDSLLinkConfig1) GetDSLLinkInfo() (NewLinkType string, NewLinkStatus string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewLinkType string
+
+ NewLinkStatus string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetDSLLinkInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewLinkType, err = soap.UnmarshalString(response.NewLinkType); err != nil {
+ return
+ }
+ if NewLinkStatus, err = soap.UnmarshalString(response.NewLinkStatus); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewAutoConfig:
+func (client *WANDSLLinkConfig1) GetAutoConfig() (NewAutoConfig bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewAutoConfig string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetAutoConfig", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewAutoConfig, err = soap.UnmarshalBoolean(response.NewAutoConfig); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewModulationType:
+func (client *WANDSLLinkConfig1) GetModulationType() (NewModulationType string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewModulationType string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetModulationType", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewModulationType, err = soap.UnmarshalString(response.NewModulationType); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewDestinationAddress:
+//
+//
+func (client *WANDSLLinkConfig1) SetDestinationAddress(NewDestinationAddress string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewDestinationAddress string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewDestinationAddress, err = soap.MarshalString(NewDestinationAddress); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetDestinationAddress", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDestinationAddress:
+func (client *WANDSLLinkConfig1) GetDestinationAddress() (NewDestinationAddress string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDestinationAddress string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetDestinationAddress", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDestinationAddress, err = soap.UnmarshalString(response.NewDestinationAddress); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewATMEncapsulation:
+//
+//
+func (client *WANDSLLinkConfig1) SetATMEncapsulation(NewATMEncapsulation string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewATMEncapsulation string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewATMEncapsulation, err = soap.MarshalString(NewATMEncapsulation); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetATMEncapsulation", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewATMEncapsulation:
+func (client *WANDSLLinkConfig1) GetATMEncapsulation() (NewATMEncapsulation string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewATMEncapsulation string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetATMEncapsulation", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewATMEncapsulation, err = soap.UnmarshalString(response.NewATMEncapsulation); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewFCSPreserved:
+//
+//
+func (client *WANDSLLinkConfig1) SetFCSPreserved(NewFCSPreserved bool) (err error) {
+ // Request structure.
+ request := &struct {
+ NewFCSPreserved string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewFCSPreserved, err = soap.MarshalBoolean(NewFCSPreserved); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetFCSPreserved", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewFCSPreserved:
+func (client *WANDSLLinkConfig1) GetFCSPreserved() (NewFCSPreserved bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewFCSPreserved string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetFCSPreserved", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewFCSPreserved, err = soap.UnmarshalBoolean(response.NewFCSPreserved); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANEthernetLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANEthernetLinkConfig:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANEthernetLinkConfig1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANEthernetLinkConfig1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANEthernetLinkConfig1Clients() (clients []*WANEthernetLinkConfig1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANEthernetLinkConfig_1); err != nil {
+ return
+ }
+ clients = make([]*WANEthernetLinkConfig1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANEthernetLinkConfig1{genericClients[i]}
+ }
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewEthernetLinkStatus: allowed values: Up, Down
+func (client *WANEthernetLinkConfig1) GetEthernetLinkStatus() (NewEthernetLinkStatus string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewEthernetLinkStatus string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANEthernetLinkConfig_1, "GetEthernetLinkStatus", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewEthernetLinkStatus, err = soap.UnmarshalString(response.NewEthernetLinkStatus); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANIPConnection1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANIPConnection:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANIPConnection1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANIPConnection1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANIPConnection1Clients() (clients []*WANIPConnection1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANIPConnection_1); err != nil {
+ return
+ }
+ clients = make([]*WANIPConnection1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANIPConnection1{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewConnectionType:
+//
+//
+func (client *WANIPConnection1) SetConnectionType(NewConnectionType string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewConnectionType string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewConnectionType, err = soap.MarshalString(NewConnectionType); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetConnectionType", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewConnectionType:
+//
+// * NewPossibleConnectionTypes: allowed values: Unconfigured, IP_Routed, IP_Bridged
+func (client *WANIPConnection1) GetConnectionTypeInfo() (NewConnectionType string, NewPossibleConnectionTypes string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewConnectionType string
+
+ NewPossibleConnectionTypes string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetConnectionTypeInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewConnectionType, err = soap.UnmarshalString(response.NewConnectionType); err != nil {
+ return
+ }
+ if NewPossibleConnectionTypes, err = soap.UnmarshalString(response.NewPossibleConnectionTypes); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANIPConnection1) RequestConnection() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "RequestConnection", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANIPConnection1) RequestTermination() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "RequestTermination", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANIPConnection1) ForceTermination() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "ForceTermination", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewAutoDisconnectTime:
+//
+//
+func (client *WANIPConnection1) SetAutoDisconnectTime(NewAutoDisconnectTime uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewAutoDisconnectTime string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewAutoDisconnectTime, err = soap.MarshalUi4(NewAutoDisconnectTime); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetAutoDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewIdleDisconnectTime:
+//
+//
+func (client *WANIPConnection1) SetIdleDisconnectTime(NewIdleDisconnectTime uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewIdleDisconnectTime string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewIdleDisconnectTime, err = soap.MarshalUi4(NewIdleDisconnectTime); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetIdleDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewWarnDisconnectDelay:
+//
+//
+func (client *WANIPConnection1) SetWarnDisconnectDelay(NewWarnDisconnectDelay uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewWarnDisconnectDelay string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewWarnDisconnectDelay, err = soap.MarshalUi4(NewWarnDisconnectDelay); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetWarnDisconnectDelay", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected
+//
+// * NewLastConnectionError: allowed values: ERROR_NONE
+//
+// * NewUptime:
+func (client *WANIPConnection1) GetStatusInfo() (NewConnectionStatus string, NewLastConnectionError string, NewUptime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewConnectionStatus string
+
+ NewLastConnectionError string
+
+ NewUptime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetStatusInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewConnectionStatus, err = soap.UnmarshalString(response.NewConnectionStatus); err != nil {
+ return
+ }
+ if NewLastConnectionError, err = soap.UnmarshalString(response.NewLastConnectionError); err != nil {
+ return
+ }
+ if NewUptime, err = soap.UnmarshalUi4(response.NewUptime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewAutoDisconnectTime:
+func (client *WANIPConnection1) GetAutoDisconnectTime() (NewAutoDisconnectTime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewAutoDisconnectTime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetAutoDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewAutoDisconnectTime, err = soap.UnmarshalUi4(response.NewAutoDisconnectTime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewIdleDisconnectTime:
+func (client *WANIPConnection1) GetIdleDisconnectTime() (NewIdleDisconnectTime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewIdleDisconnectTime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetIdleDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewIdleDisconnectTime, err = soap.UnmarshalUi4(response.NewIdleDisconnectTime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewWarnDisconnectDelay:
+func (client *WANIPConnection1) GetWarnDisconnectDelay() (NewWarnDisconnectDelay uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewWarnDisconnectDelay string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetWarnDisconnectDelay", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewWarnDisconnectDelay, err = soap.UnmarshalUi4(response.NewWarnDisconnectDelay); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewRSIPAvailable:
+//
+// * NewNATEnabled:
+func (client *WANIPConnection1) GetNATRSIPStatus() (NewRSIPAvailable bool, NewNATEnabled bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewRSIPAvailable string
+
+ NewNATEnabled string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetNATRSIPStatus", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewRSIPAvailable, err = soap.UnmarshalBoolean(response.NewRSIPAvailable); err != nil {
+ return
+ }
+ if NewNATEnabled, err = soap.UnmarshalBoolean(response.NewNATEnabled); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewPortMappingIndex:
+//
+// Return values:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// * NewInternalPort:
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration:
+func (client *WANIPConnection1) GetGenericPortMappingEntry(NewPortMappingIndex uint16) (NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error) {
+ // Request structure.
+ request := &struct {
+ NewPortMappingIndex string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewPortMappingIndex, err = soap.MarshalUi2(NewPortMappingIndex); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetGenericPortMappingEntry", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewRemoteHost, err = soap.UnmarshalString(response.NewRemoteHost); err != nil {
+ return
+ }
+ if NewExternalPort, err = soap.UnmarshalUi2(response.NewExternalPort); err != nil {
+ return
+ }
+ if NewProtocol, err = soap.UnmarshalString(response.NewProtocol); err != nil {
+ return
+ }
+ if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil {
+ return
+ }
+ if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil {
+ return
+ }
+ if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil {
+ return
+ }
+ if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil {
+ return
+ }
+ if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// Return values:
+//
+// * NewInternalPort:
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration:
+func (client *WANIPConnection1) GetSpecificPortMappingEntry(NewRemoteHost string, NewExternalPort uint16, NewProtocol string) (NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetSpecificPortMappingEntry", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil {
+ return
+ }
+ if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil {
+ return
+ }
+ if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil {
+ return
+ }
+ if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil {
+ return
+ }
+ if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// * NewInternalPort:
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration:
+//
+//
+func (client *WANIPConnection1) AddPortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ if request.NewInternalPort, err = soap.MarshalUi2(NewInternalPort); err != nil {
+ return
+ }
+ if request.NewInternalClient, err = soap.MarshalString(NewInternalClient); err != nil {
+ return
+ }
+ if request.NewEnabled, err = soap.MarshalBoolean(NewEnabled); err != nil {
+ return
+ }
+ if request.NewPortMappingDescription, err = soap.MarshalString(NewPortMappingDescription); err != nil {
+ return
+ }
+ if request.NewLeaseDuration, err = soap.MarshalUi4(NewLeaseDuration); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "AddPortMapping", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+//
+func (client *WANIPConnection1) DeletePortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "DeletePortMapping", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewExternalIPAddress:
+func (client *WANIPConnection1) GetExternalIPAddress() (NewExternalIPAddress string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewExternalIPAddress string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetExternalIPAddress", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewExternalIPAddress, err = soap.UnmarshalString(response.NewExternalIPAddress); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANPOTSLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANPOTSLinkConfig:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANPOTSLinkConfig1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANPOTSLinkConfig1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANPOTSLinkConfig1Clients() (clients []*WANPOTSLinkConfig1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANPOTSLinkConfig_1); err != nil {
+ return
+ }
+ clients = make([]*WANPOTSLinkConfig1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANPOTSLinkConfig1{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewISPPhoneNumber:
+//
+// * NewISPInfo:
+//
+// * NewLinkType: allowed values: PPP_Dialup
+//
+//
+func (client *WANPOTSLinkConfig1) SetISPInfo(NewISPPhoneNumber string, NewISPInfo string, NewLinkType string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewISPPhoneNumber string
+
+ NewISPInfo string
+
+ NewLinkType string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewISPPhoneNumber, err = soap.MarshalString(NewISPPhoneNumber); err != nil {
+ return
+ }
+ if request.NewISPInfo, err = soap.MarshalString(NewISPInfo); err != nil {
+ return
+ }
+ if request.NewLinkType, err = soap.MarshalString(NewLinkType); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "SetISPInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewNumberOfRetries:
+//
+// * NewDelayBetweenRetries:
+//
+//
+func (client *WANPOTSLinkConfig1) SetCallRetryInfo(NewNumberOfRetries uint32, NewDelayBetweenRetries uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewNumberOfRetries string
+
+ NewDelayBetweenRetries string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewNumberOfRetries, err = soap.MarshalUi4(NewNumberOfRetries); err != nil {
+ return
+ }
+ if request.NewDelayBetweenRetries, err = soap.MarshalUi4(NewDelayBetweenRetries); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "SetCallRetryInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewISPPhoneNumber:
+//
+// * NewISPInfo:
+//
+// * NewLinkType: allowed values: PPP_Dialup
+func (client *WANPOTSLinkConfig1) GetISPInfo() (NewISPPhoneNumber string, NewISPInfo string, NewLinkType string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewISPPhoneNumber string
+
+ NewISPInfo string
+
+ NewLinkType string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetISPInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewISPPhoneNumber, err = soap.UnmarshalString(response.NewISPPhoneNumber); err != nil {
+ return
+ }
+ if NewISPInfo, err = soap.UnmarshalString(response.NewISPInfo); err != nil {
+ return
+ }
+ if NewLinkType, err = soap.UnmarshalString(response.NewLinkType); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewNumberOfRetries:
+//
+// * NewDelayBetweenRetries:
+func (client *WANPOTSLinkConfig1) GetCallRetryInfo() (NewNumberOfRetries uint32, NewDelayBetweenRetries uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewNumberOfRetries string
+
+ NewDelayBetweenRetries string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetCallRetryInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewNumberOfRetries, err = soap.UnmarshalUi4(response.NewNumberOfRetries); err != nil {
+ return
+ }
+ if NewDelayBetweenRetries, err = soap.UnmarshalUi4(response.NewDelayBetweenRetries); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewFclass:
+func (client *WANPOTSLinkConfig1) GetFclass() (NewFclass string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewFclass string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetFclass", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewFclass, err = soap.UnmarshalString(response.NewFclass); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDataModulationSupported:
+func (client *WANPOTSLinkConfig1) GetDataModulationSupported() (NewDataModulationSupported string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDataModulationSupported string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataModulationSupported", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDataModulationSupported, err = soap.UnmarshalString(response.NewDataModulationSupported); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDataProtocol:
+func (client *WANPOTSLinkConfig1) GetDataProtocol() (NewDataProtocol string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDataProtocol string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataProtocol", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDataProtocol, err = soap.UnmarshalString(response.NewDataProtocol); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDataCompression:
+func (client *WANPOTSLinkConfig1) GetDataCompression() (NewDataCompression string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDataCompression string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataCompression", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDataCompression, err = soap.UnmarshalString(response.NewDataCompression); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewPlusVTRCommandSupported:
+func (client *WANPOTSLinkConfig1) GetPlusVTRCommandSupported() (NewPlusVTRCommandSupported bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewPlusVTRCommandSupported string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetPlusVTRCommandSupported", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewPlusVTRCommandSupported, err = soap.UnmarshalBoolean(response.NewPlusVTRCommandSupported); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANPPPConnection1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANPPPConnection:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANPPPConnection1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANPPPConnection1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANPPPConnection1Clients() (clients []*WANPPPConnection1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANPPPConnection_1); err != nil {
+ return
+ }
+ clients = make([]*WANPPPConnection1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANPPPConnection1{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewConnectionType:
+//
+//
+func (client *WANPPPConnection1) SetConnectionType(NewConnectionType string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewConnectionType string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewConnectionType, err = soap.MarshalString(NewConnectionType); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetConnectionType", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewConnectionType:
+//
+// * NewPossibleConnectionTypes: allowed values: Unconfigured, IP_Routed, DHCP_Spoofed, PPPoE_Bridged, PPTP_Relay, L2TP_Relay, PPPoE_Relay
+func (client *WANPPPConnection1) GetConnectionTypeInfo() (NewConnectionType string, NewPossibleConnectionTypes string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewConnectionType string
+
+ NewPossibleConnectionTypes string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetConnectionTypeInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewConnectionType, err = soap.UnmarshalString(response.NewConnectionType); err != nil {
+ return
+ }
+ if NewPossibleConnectionTypes, err = soap.UnmarshalString(response.NewPossibleConnectionTypes); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewUserName:
+//
+// * NewPassword:
+//
+//
+func (client *WANPPPConnection1) ConfigureConnection(NewUserName string, NewPassword string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewUserName string
+
+ NewPassword string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewUserName, err = soap.MarshalString(NewUserName); err != nil {
+ return
+ }
+ if request.NewPassword, err = soap.MarshalString(NewPassword); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "ConfigureConnection", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANPPPConnection1) RequestConnection() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "RequestConnection", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANPPPConnection1) RequestTermination() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "RequestTermination", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANPPPConnection1) ForceTermination() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "ForceTermination", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewAutoDisconnectTime:
+//
+//
+func (client *WANPPPConnection1) SetAutoDisconnectTime(NewAutoDisconnectTime uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewAutoDisconnectTime string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewAutoDisconnectTime, err = soap.MarshalUi4(NewAutoDisconnectTime); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetAutoDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewIdleDisconnectTime:
+//
+//
+func (client *WANPPPConnection1) SetIdleDisconnectTime(NewIdleDisconnectTime uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewIdleDisconnectTime string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewIdleDisconnectTime, err = soap.MarshalUi4(NewIdleDisconnectTime); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetIdleDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewWarnDisconnectDelay:
+//
+//
+func (client *WANPPPConnection1) SetWarnDisconnectDelay(NewWarnDisconnectDelay uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewWarnDisconnectDelay string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewWarnDisconnectDelay, err = soap.MarshalUi4(NewWarnDisconnectDelay); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetWarnDisconnectDelay", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected
+//
+// * NewLastConnectionError: allowed values: ERROR_NONE
+//
+// * NewUptime:
+func (client *WANPPPConnection1) GetStatusInfo() (NewConnectionStatus string, NewLastConnectionError string, NewUptime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewConnectionStatus string
+
+ NewLastConnectionError string
+
+ NewUptime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetStatusInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewConnectionStatus, err = soap.UnmarshalString(response.NewConnectionStatus); err != nil {
+ return
+ }
+ if NewLastConnectionError, err = soap.UnmarshalString(response.NewLastConnectionError); err != nil {
+ return
+ }
+ if NewUptime, err = soap.UnmarshalUi4(response.NewUptime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewUpstreamMaxBitRate:
+//
+// * NewDownstreamMaxBitRate:
+func (client *WANPPPConnection1) GetLinkLayerMaxBitRates() (NewUpstreamMaxBitRate uint32, NewDownstreamMaxBitRate uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewUpstreamMaxBitRate string
+
+ NewDownstreamMaxBitRate string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetLinkLayerMaxBitRates", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewUpstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewUpstreamMaxBitRate); err != nil {
+ return
+ }
+ if NewDownstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewDownstreamMaxBitRate); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewPPPEncryptionProtocol:
+func (client *WANPPPConnection1) GetPPPEncryptionProtocol() (NewPPPEncryptionProtocol string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewPPPEncryptionProtocol string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPEncryptionProtocol", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewPPPEncryptionProtocol, err = soap.UnmarshalString(response.NewPPPEncryptionProtocol); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewPPPCompressionProtocol:
+func (client *WANPPPConnection1) GetPPPCompressionProtocol() (NewPPPCompressionProtocol string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewPPPCompressionProtocol string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPCompressionProtocol", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewPPPCompressionProtocol, err = soap.UnmarshalString(response.NewPPPCompressionProtocol); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewPPPAuthenticationProtocol:
+func (client *WANPPPConnection1) GetPPPAuthenticationProtocol() (NewPPPAuthenticationProtocol string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewPPPAuthenticationProtocol string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPAuthenticationProtocol", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewPPPAuthenticationProtocol, err = soap.UnmarshalString(response.NewPPPAuthenticationProtocol); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewUserName:
+func (client *WANPPPConnection1) GetUserName() (NewUserName string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewUserName string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetUserName", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewUserName, err = soap.UnmarshalString(response.NewUserName); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewPassword:
+func (client *WANPPPConnection1) GetPassword() (NewPassword string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewPassword string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPassword", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewPassword, err = soap.UnmarshalString(response.NewPassword); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewAutoDisconnectTime:
+func (client *WANPPPConnection1) GetAutoDisconnectTime() (NewAutoDisconnectTime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewAutoDisconnectTime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetAutoDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewAutoDisconnectTime, err = soap.UnmarshalUi4(response.NewAutoDisconnectTime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewIdleDisconnectTime:
+func (client *WANPPPConnection1) GetIdleDisconnectTime() (NewIdleDisconnectTime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewIdleDisconnectTime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetIdleDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewIdleDisconnectTime, err = soap.UnmarshalUi4(response.NewIdleDisconnectTime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewWarnDisconnectDelay:
+func (client *WANPPPConnection1) GetWarnDisconnectDelay() (NewWarnDisconnectDelay uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewWarnDisconnectDelay string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetWarnDisconnectDelay", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewWarnDisconnectDelay, err = soap.UnmarshalUi4(response.NewWarnDisconnectDelay); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewRSIPAvailable:
+//
+// * NewNATEnabled:
+func (client *WANPPPConnection1) GetNATRSIPStatus() (NewRSIPAvailable bool, NewNATEnabled bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewRSIPAvailable string
+
+ NewNATEnabled string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetNATRSIPStatus", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewRSIPAvailable, err = soap.UnmarshalBoolean(response.NewRSIPAvailable); err != nil {
+ return
+ }
+ if NewNATEnabled, err = soap.UnmarshalBoolean(response.NewNATEnabled); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewPortMappingIndex:
+//
+// Return values:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// * NewInternalPort:
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration:
+func (client *WANPPPConnection1) GetGenericPortMappingEntry(NewPortMappingIndex uint16) (NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error) {
+ // Request structure.
+ request := &struct {
+ NewPortMappingIndex string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewPortMappingIndex, err = soap.MarshalUi2(NewPortMappingIndex); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetGenericPortMappingEntry", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewRemoteHost, err = soap.UnmarshalString(response.NewRemoteHost); err != nil {
+ return
+ }
+ if NewExternalPort, err = soap.UnmarshalUi2(response.NewExternalPort); err != nil {
+ return
+ }
+ if NewProtocol, err = soap.UnmarshalString(response.NewProtocol); err != nil {
+ return
+ }
+ if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil {
+ return
+ }
+ if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil {
+ return
+ }
+ if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil {
+ return
+ }
+ if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil {
+ return
+ }
+ if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// Return values:
+//
+// * NewInternalPort:
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration:
+func (client *WANPPPConnection1) GetSpecificPortMappingEntry(NewRemoteHost string, NewExternalPort uint16, NewProtocol string) (NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetSpecificPortMappingEntry", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil {
+ return
+ }
+ if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil {
+ return
+ }
+ if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil {
+ return
+ }
+ if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil {
+ return
+ }
+ if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// * NewInternalPort:
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration:
+//
+//
+func (client *WANPPPConnection1) AddPortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ if request.NewInternalPort, err = soap.MarshalUi2(NewInternalPort); err != nil {
+ return
+ }
+ if request.NewInternalClient, err = soap.MarshalString(NewInternalClient); err != nil {
+ return
+ }
+ if request.NewEnabled, err = soap.MarshalBoolean(NewEnabled); err != nil {
+ return
+ }
+ if request.NewPortMappingDescription, err = soap.MarshalString(NewPortMappingDescription); err != nil {
+ return
+ }
+ if request.NewLeaseDuration, err = soap.MarshalUi4(NewLeaseDuration); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "AddPortMapping", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+//
+func (client *WANPPPConnection1) DeletePortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "DeletePortMapping", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewExternalIPAddress:
+func (client *WANPPPConnection1) GetExternalIPAddress() (NewExternalIPAddress string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewExternalIPAddress string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetExternalIPAddress", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewExternalIPAddress, err = soap.UnmarshalString(response.NewExternalIPAddress); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/dcps/internetgateway2/internetgateway2.go b/Godeps/_workspace/src/github.com/fjl/goupnp/dcps/internetgateway2/internetgateway2.go
new file mode 100644
index 000000000..cf34c61f0
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/dcps/internetgateway2/internetgateway2.go
@@ -0,0 +1,5271 @@
+// Client for UPnP Device Control Protocol Internet Gateway Device v2.
+//
+// This DCP is documented in detail at: http://upnp.org/specs/gw/UPnP-gw-InternetGatewayDevice-v2-Device.pdf
+//
+// Typically, use one of the New* functions to discover services on the local
+// network.
+package internetgateway2
+
+// Generated file - do not edit by hand. See README.md
+
+import (
+ "time"
+
+ "github.com/fjl/goupnp"
+ "github.com/fjl/goupnp/soap"
+)
+
+// Hack to avoid Go complaining if time isn't used.
+var _ time.Time
+
+// Device URNs:
+const (
+ URN_LANDevice_1 = "urn:schemas-upnp-org:device:LANDevice:1"
+ URN_WANConnectionDevice_1 = "urn:schemas-upnp-org:device:WANConnectionDevice:1"
+ URN_WANConnectionDevice_2 = "urn:schemas-upnp-org:device:WANConnectionDevice:2"
+ URN_WANDevice_1 = "urn:schemas-upnp-org:device:WANDevice:1"
+ URN_WANDevice_2 = "urn:schemas-upnp-org:device:WANDevice:2"
+)
+
+// Service URNs:
+const (
+ URN_LANHostConfigManagement_1 = "urn:schemas-upnp-org:service:LANHostConfigManagement:1"
+ URN_Layer3Forwarding_1 = "urn:schemas-upnp-org:service:Layer3Forwarding:1"
+ URN_WANCableLinkConfig_1 = "urn:schemas-upnp-org:service:WANCableLinkConfig:1"
+ URN_WANCommonInterfaceConfig_1 = "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1"
+ URN_WANDSLLinkConfig_1 = "urn:schemas-upnp-org:service:WANDSLLinkConfig:1"
+ URN_WANEthernetLinkConfig_1 = "urn:schemas-upnp-org:service:WANEthernetLinkConfig:1"
+ URN_WANIPConnection_1 = "urn:schemas-upnp-org:service:WANIPConnection:1"
+ URN_WANIPConnection_2 = "urn:schemas-upnp-org:service:WANIPConnection:2"
+ URN_WANIPv6FirewallControl_1 = "urn:schemas-upnp-org:service:WANIPv6FirewallControl:1"
+ URN_WANPOTSLinkConfig_1 = "urn:schemas-upnp-org:service:WANPOTSLinkConfig:1"
+ URN_WANPPPConnection_1 = "urn:schemas-upnp-org:service:WANPPPConnection:1"
+)
+
+// LANHostConfigManagement1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:LANHostConfigManagement:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type LANHostConfigManagement1 struct {
+ goupnp.ServiceClient
+}
+
+// NewLANHostConfigManagement1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewLANHostConfigManagement1Clients() (clients []*LANHostConfigManagement1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_LANHostConfigManagement_1); err != nil {
+ return
+ }
+ clients = make([]*LANHostConfigManagement1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &LANHostConfigManagement1{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewDHCPServerConfigurable:
+//
+//
+func (client *LANHostConfigManagement1) SetDHCPServerConfigurable(NewDHCPServerConfigurable bool) (err error) {
+ // Request structure.
+ request := &struct {
+ NewDHCPServerConfigurable string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewDHCPServerConfigurable, err = soap.MarshalBoolean(NewDHCPServerConfigurable); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDHCPServerConfigurable", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDHCPServerConfigurable:
+func (client *LANHostConfigManagement1) GetDHCPServerConfigurable() (NewDHCPServerConfigurable bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDHCPServerConfigurable string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDHCPServerConfigurable", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDHCPServerConfigurable, err = soap.UnmarshalBoolean(response.NewDHCPServerConfigurable); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewDHCPRelay:
+//
+//
+func (client *LANHostConfigManagement1) SetDHCPRelay(NewDHCPRelay bool) (err error) {
+ // Request structure.
+ request := &struct {
+ NewDHCPRelay string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewDHCPRelay, err = soap.MarshalBoolean(NewDHCPRelay); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDHCPRelay", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDHCPRelay:
+func (client *LANHostConfigManagement1) GetDHCPRelay() (NewDHCPRelay bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDHCPRelay string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDHCPRelay", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDHCPRelay, err = soap.UnmarshalBoolean(response.NewDHCPRelay); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewSubnetMask:
+//
+//
+func (client *LANHostConfigManagement1) SetSubnetMask(NewSubnetMask string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewSubnetMask string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewSubnetMask, err = soap.MarshalString(NewSubnetMask); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetSubnetMask", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewSubnetMask:
+func (client *LANHostConfigManagement1) GetSubnetMask() (NewSubnetMask string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewSubnetMask string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetSubnetMask", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewSubnetMask, err = soap.UnmarshalString(response.NewSubnetMask); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewIPRouters:
+//
+//
+func (client *LANHostConfigManagement1) SetIPRouter(NewIPRouters string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewIPRouters string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewIPRouters, err = soap.MarshalString(NewIPRouters); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetIPRouter", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewIPRouters:
+//
+//
+func (client *LANHostConfigManagement1) DeleteIPRouter(NewIPRouters string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewIPRouters string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewIPRouters, err = soap.MarshalString(NewIPRouters); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteIPRouter", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewIPRouters:
+func (client *LANHostConfigManagement1) GetIPRoutersList() (NewIPRouters string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewIPRouters string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetIPRoutersList", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewIPRouters, err = soap.UnmarshalString(response.NewIPRouters); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewDomainName:
+//
+//
+func (client *LANHostConfigManagement1) SetDomainName(NewDomainName string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewDomainName string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewDomainName, err = soap.MarshalString(NewDomainName); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDomainName", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDomainName:
+func (client *LANHostConfigManagement1) GetDomainName() (NewDomainName string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDomainName string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDomainName", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDomainName, err = soap.UnmarshalString(response.NewDomainName); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewMinAddress:
+//
+// * NewMaxAddress:
+//
+//
+func (client *LANHostConfigManagement1) SetAddressRange(NewMinAddress string, NewMaxAddress string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewMinAddress string
+
+ NewMaxAddress string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewMinAddress, err = soap.MarshalString(NewMinAddress); err != nil {
+ return
+ }
+ if request.NewMaxAddress, err = soap.MarshalString(NewMaxAddress); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetAddressRange", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewMinAddress:
+//
+// * NewMaxAddress:
+func (client *LANHostConfigManagement1) GetAddressRange() (NewMinAddress string, NewMaxAddress string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewMinAddress string
+
+ NewMaxAddress string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetAddressRange", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewMinAddress, err = soap.UnmarshalString(response.NewMinAddress); err != nil {
+ return
+ }
+ if NewMaxAddress, err = soap.UnmarshalString(response.NewMaxAddress); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewReservedAddresses:
+//
+//
+func (client *LANHostConfigManagement1) SetReservedAddress(NewReservedAddresses string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewReservedAddresses string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewReservedAddresses, err = soap.MarshalString(NewReservedAddresses); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetReservedAddress", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewReservedAddresses:
+//
+//
+func (client *LANHostConfigManagement1) DeleteReservedAddress(NewReservedAddresses string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewReservedAddresses string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewReservedAddresses, err = soap.MarshalString(NewReservedAddresses); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteReservedAddress", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewReservedAddresses:
+func (client *LANHostConfigManagement1) GetReservedAddresses() (NewReservedAddresses string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewReservedAddresses string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetReservedAddresses", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewReservedAddresses, err = soap.UnmarshalString(response.NewReservedAddresses); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewDNSServers:
+//
+//
+func (client *LANHostConfigManagement1) SetDNSServer(NewDNSServers string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewDNSServers string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewDNSServers, err = soap.MarshalString(NewDNSServers); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDNSServer", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewDNSServers:
+//
+//
+func (client *LANHostConfigManagement1) DeleteDNSServer(NewDNSServers string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewDNSServers string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewDNSServers, err = soap.MarshalString(NewDNSServers); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteDNSServer", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDNSServers:
+func (client *LANHostConfigManagement1) GetDNSServers() (NewDNSServers string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDNSServers string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDNSServers", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDNSServers, err = soap.UnmarshalString(response.NewDNSServers); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Layer3Forwarding1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:Layer3Forwarding:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type Layer3Forwarding1 struct {
+ goupnp.ServiceClient
+}
+
+// NewLayer3Forwarding1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewLayer3Forwarding1Clients() (clients []*Layer3Forwarding1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_Layer3Forwarding_1); err != nil {
+ return
+ }
+ clients = make([]*Layer3Forwarding1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &Layer3Forwarding1{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewDefaultConnectionService:
+//
+//
+func (client *Layer3Forwarding1) SetDefaultConnectionService(NewDefaultConnectionService string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewDefaultConnectionService string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewDefaultConnectionService, err = soap.MarshalString(NewDefaultConnectionService); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_Layer3Forwarding_1, "SetDefaultConnectionService", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDefaultConnectionService:
+func (client *Layer3Forwarding1) GetDefaultConnectionService() (NewDefaultConnectionService string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDefaultConnectionService string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_Layer3Forwarding_1, "GetDefaultConnectionService", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDefaultConnectionService, err = soap.UnmarshalString(response.NewDefaultConnectionService); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANCableLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANCableLinkConfig:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANCableLinkConfig1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANCableLinkConfig1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANCableLinkConfig1Clients() (clients []*WANCableLinkConfig1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANCableLinkConfig_1); err != nil {
+ return
+ }
+ clients = make([]*WANCableLinkConfig1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANCableLinkConfig1{genericClients[i]}
+ }
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewCableLinkConfigState: allowed values: notReady, dsSyncComplete, usParamAcquired, rangingComplete, ipComplete, todEstablished, paramTransferComplete, registrationComplete, operational, accessDenied
+//
+// * NewLinkType: allowed values: Ethernet
+func (client *WANCableLinkConfig1) GetCableLinkConfigInfo() (NewCableLinkConfigState string, NewLinkType string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewCableLinkConfigState string
+
+ NewLinkType string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetCableLinkConfigInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewCableLinkConfigState, err = soap.UnmarshalString(response.NewCableLinkConfigState); err != nil {
+ return
+ }
+ if NewLinkType, err = soap.UnmarshalString(response.NewLinkType); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDownstreamFrequency:
+func (client *WANCableLinkConfig1) GetDownstreamFrequency() (NewDownstreamFrequency uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDownstreamFrequency string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetDownstreamFrequency", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDownstreamFrequency, err = soap.UnmarshalUi4(response.NewDownstreamFrequency); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDownstreamModulation: allowed values: 64QAM, 256QAM
+func (client *WANCableLinkConfig1) GetDownstreamModulation() (NewDownstreamModulation string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDownstreamModulation string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetDownstreamModulation", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDownstreamModulation, err = soap.UnmarshalString(response.NewDownstreamModulation); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewUpstreamFrequency:
+func (client *WANCableLinkConfig1) GetUpstreamFrequency() (NewUpstreamFrequency uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewUpstreamFrequency string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamFrequency", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewUpstreamFrequency, err = soap.UnmarshalUi4(response.NewUpstreamFrequency); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewUpstreamModulation: allowed values: QPSK, 16QAM
+func (client *WANCableLinkConfig1) GetUpstreamModulation() (NewUpstreamModulation string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewUpstreamModulation string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamModulation", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewUpstreamModulation, err = soap.UnmarshalString(response.NewUpstreamModulation); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewUpstreamChannelID:
+func (client *WANCableLinkConfig1) GetUpstreamChannelID() (NewUpstreamChannelID uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewUpstreamChannelID string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamChannelID", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewUpstreamChannelID, err = soap.UnmarshalUi4(response.NewUpstreamChannelID); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewUpstreamPowerLevel:
+func (client *WANCableLinkConfig1) GetUpstreamPowerLevel() (NewUpstreamPowerLevel uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewUpstreamPowerLevel string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamPowerLevel", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewUpstreamPowerLevel, err = soap.UnmarshalUi4(response.NewUpstreamPowerLevel); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewBPIEncryptionEnabled:
+func (client *WANCableLinkConfig1) GetBPIEncryptionEnabled() (NewBPIEncryptionEnabled bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewBPIEncryptionEnabled string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetBPIEncryptionEnabled", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewBPIEncryptionEnabled, err = soap.UnmarshalBoolean(response.NewBPIEncryptionEnabled); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewConfigFile:
+func (client *WANCableLinkConfig1) GetConfigFile() (NewConfigFile string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewConfigFile string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetConfigFile", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewConfigFile, err = soap.UnmarshalString(response.NewConfigFile); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewTFTPServer:
+func (client *WANCableLinkConfig1) GetTFTPServer() (NewTFTPServer string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewTFTPServer string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetTFTPServer", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewTFTPServer, err = soap.UnmarshalString(response.NewTFTPServer); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANCommonInterfaceConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANCommonInterfaceConfig1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANCommonInterfaceConfig1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANCommonInterfaceConfig1Clients() (clients []*WANCommonInterfaceConfig1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANCommonInterfaceConfig_1); err != nil {
+ return
+ }
+ clients = make([]*WANCommonInterfaceConfig1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANCommonInterfaceConfig1{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewEnabledForInternet:
+//
+//
+func (client *WANCommonInterfaceConfig1) SetEnabledForInternet(NewEnabledForInternet bool) (err error) {
+ // Request structure.
+ request := &struct {
+ NewEnabledForInternet string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewEnabledForInternet, err = soap.MarshalBoolean(NewEnabledForInternet); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "SetEnabledForInternet", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewEnabledForInternet:
+func (client *WANCommonInterfaceConfig1) GetEnabledForInternet() (NewEnabledForInternet bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewEnabledForInternet string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetEnabledForInternet", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewEnabledForInternet, err = soap.UnmarshalBoolean(response.NewEnabledForInternet); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewWANAccessType: allowed values: DSL, POTS, Cable, Ethernet
+//
+// * NewLayer1UpstreamMaxBitRate:
+//
+// * NewLayer1DownstreamMaxBitRate:
+//
+// * NewPhysicalLinkStatus: allowed values: Up, Down
+func (client *WANCommonInterfaceConfig1) GetCommonLinkProperties() (NewWANAccessType string, NewLayer1UpstreamMaxBitRate uint32, NewLayer1DownstreamMaxBitRate uint32, NewPhysicalLinkStatus string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewWANAccessType string
+
+ NewLayer1UpstreamMaxBitRate string
+
+ NewLayer1DownstreamMaxBitRate string
+
+ NewPhysicalLinkStatus string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetCommonLinkProperties", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewWANAccessType, err = soap.UnmarshalString(response.NewWANAccessType); err != nil {
+ return
+ }
+ if NewLayer1UpstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewLayer1UpstreamMaxBitRate); err != nil {
+ return
+ }
+ if NewLayer1DownstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewLayer1DownstreamMaxBitRate); err != nil {
+ return
+ }
+ if NewPhysicalLinkStatus, err = soap.UnmarshalString(response.NewPhysicalLinkStatus); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewWANAccessProvider:
+func (client *WANCommonInterfaceConfig1) GetWANAccessProvider() (NewWANAccessProvider string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewWANAccessProvider string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetWANAccessProvider", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewWANAccessProvider, err = soap.UnmarshalString(response.NewWANAccessProvider); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewMaximumActiveConnections: allowed value range: minimum=1, step=1
+func (client *WANCommonInterfaceConfig1) GetMaximumActiveConnections() (NewMaximumActiveConnections uint16, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewMaximumActiveConnections string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetMaximumActiveConnections", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewMaximumActiveConnections, err = soap.UnmarshalUi2(response.NewMaximumActiveConnections); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewTotalBytesSent:
+func (client *WANCommonInterfaceConfig1) GetTotalBytesSent() (NewTotalBytesSent uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewTotalBytesSent string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalBytesSent", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewTotalBytesSent, err = soap.UnmarshalUi4(response.NewTotalBytesSent); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewTotalBytesReceived:
+func (client *WANCommonInterfaceConfig1) GetTotalBytesReceived() (NewTotalBytesReceived uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewTotalBytesReceived string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalBytesReceived", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewTotalBytesReceived, err = soap.UnmarshalUi4(response.NewTotalBytesReceived); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewTotalPacketsSent:
+func (client *WANCommonInterfaceConfig1) GetTotalPacketsSent() (NewTotalPacketsSent uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewTotalPacketsSent string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalPacketsSent", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewTotalPacketsSent, err = soap.UnmarshalUi4(response.NewTotalPacketsSent); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewTotalPacketsReceived:
+func (client *WANCommonInterfaceConfig1) GetTotalPacketsReceived() (NewTotalPacketsReceived uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewTotalPacketsReceived string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalPacketsReceived", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewTotalPacketsReceived, err = soap.UnmarshalUi4(response.NewTotalPacketsReceived); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewActiveConnectionIndex:
+//
+// Return values:
+//
+// * NewActiveConnDeviceContainer:
+//
+// * NewActiveConnectionServiceID:
+func (client *WANCommonInterfaceConfig1) GetActiveConnection(NewActiveConnectionIndex uint16) (NewActiveConnDeviceContainer string, NewActiveConnectionServiceID string, err error) {
+ // Request structure.
+ request := &struct {
+ NewActiveConnectionIndex string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewActiveConnectionIndex, err = soap.MarshalUi2(NewActiveConnectionIndex); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewActiveConnDeviceContainer string
+
+ NewActiveConnectionServiceID string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetActiveConnection", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewActiveConnDeviceContainer, err = soap.UnmarshalString(response.NewActiveConnDeviceContainer); err != nil {
+ return
+ }
+ if NewActiveConnectionServiceID, err = soap.UnmarshalString(response.NewActiveConnectionServiceID); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANDSLLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANDSLLinkConfig:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANDSLLinkConfig1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANDSLLinkConfig1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANDSLLinkConfig1Clients() (clients []*WANDSLLinkConfig1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANDSLLinkConfig_1); err != nil {
+ return
+ }
+ clients = make([]*WANDSLLinkConfig1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANDSLLinkConfig1{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewLinkType:
+//
+//
+func (client *WANDSLLinkConfig1) SetDSLLinkType(NewLinkType string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewLinkType string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewLinkType, err = soap.MarshalString(NewLinkType); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetDSLLinkType", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewLinkType:
+//
+// * NewLinkStatus: allowed values: Up, Down
+func (client *WANDSLLinkConfig1) GetDSLLinkInfo() (NewLinkType string, NewLinkStatus string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewLinkType string
+
+ NewLinkStatus string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetDSLLinkInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewLinkType, err = soap.UnmarshalString(response.NewLinkType); err != nil {
+ return
+ }
+ if NewLinkStatus, err = soap.UnmarshalString(response.NewLinkStatus); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewAutoConfig:
+func (client *WANDSLLinkConfig1) GetAutoConfig() (NewAutoConfig bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewAutoConfig string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetAutoConfig", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewAutoConfig, err = soap.UnmarshalBoolean(response.NewAutoConfig); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewModulationType:
+func (client *WANDSLLinkConfig1) GetModulationType() (NewModulationType string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewModulationType string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetModulationType", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewModulationType, err = soap.UnmarshalString(response.NewModulationType); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewDestinationAddress:
+//
+//
+func (client *WANDSLLinkConfig1) SetDestinationAddress(NewDestinationAddress string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewDestinationAddress string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewDestinationAddress, err = soap.MarshalString(NewDestinationAddress); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetDestinationAddress", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDestinationAddress:
+func (client *WANDSLLinkConfig1) GetDestinationAddress() (NewDestinationAddress string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDestinationAddress string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetDestinationAddress", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDestinationAddress, err = soap.UnmarshalString(response.NewDestinationAddress); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewATMEncapsulation:
+//
+//
+func (client *WANDSLLinkConfig1) SetATMEncapsulation(NewATMEncapsulation string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewATMEncapsulation string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewATMEncapsulation, err = soap.MarshalString(NewATMEncapsulation); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetATMEncapsulation", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewATMEncapsulation:
+func (client *WANDSLLinkConfig1) GetATMEncapsulation() (NewATMEncapsulation string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewATMEncapsulation string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetATMEncapsulation", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewATMEncapsulation, err = soap.UnmarshalString(response.NewATMEncapsulation); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewFCSPreserved:
+//
+//
+func (client *WANDSLLinkConfig1) SetFCSPreserved(NewFCSPreserved bool) (err error) {
+ // Request structure.
+ request := &struct {
+ NewFCSPreserved string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewFCSPreserved, err = soap.MarshalBoolean(NewFCSPreserved); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetFCSPreserved", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewFCSPreserved:
+func (client *WANDSLLinkConfig1) GetFCSPreserved() (NewFCSPreserved bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewFCSPreserved string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetFCSPreserved", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewFCSPreserved, err = soap.UnmarshalBoolean(response.NewFCSPreserved); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANEthernetLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANEthernetLinkConfig:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANEthernetLinkConfig1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANEthernetLinkConfig1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANEthernetLinkConfig1Clients() (clients []*WANEthernetLinkConfig1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANEthernetLinkConfig_1); err != nil {
+ return
+ }
+ clients = make([]*WANEthernetLinkConfig1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANEthernetLinkConfig1{genericClients[i]}
+ }
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewEthernetLinkStatus: allowed values: Up, Down
+func (client *WANEthernetLinkConfig1) GetEthernetLinkStatus() (NewEthernetLinkStatus string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewEthernetLinkStatus string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANEthernetLinkConfig_1, "GetEthernetLinkStatus", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewEthernetLinkStatus, err = soap.UnmarshalString(response.NewEthernetLinkStatus); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANIPConnection1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANIPConnection:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANIPConnection1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANIPConnection1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANIPConnection1Clients() (clients []*WANIPConnection1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANIPConnection_1); err != nil {
+ return
+ }
+ clients = make([]*WANIPConnection1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANIPConnection1{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewConnectionType:
+//
+//
+func (client *WANIPConnection1) SetConnectionType(NewConnectionType string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewConnectionType string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewConnectionType, err = soap.MarshalString(NewConnectionType); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetConnectionType", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewConnectionType:
+//
+// * NewPossibleConnectionTypes: allowed values: Unconfigured, IP_Routed, IP_Bridged
+func (client *WANIPConnection1) GetConnectionTypeInfo() (NewConnectionType string, NewPossibleConnectionTypes string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewConnectionType string
+
+ NewPossibleConnectionTypes string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetConnectionTypeInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewConnectionType, err = soap.UnmarshalString(response.NewConnectionType); err != nil {
+ return
+ }
+ if NewPossibleConnectionTypes, err = soap.UnmarshalString(response.NewPossibleConnectionTypes); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANIPConnection1) RequestConnection() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "RequestConnection", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANIPConnection1) RequestTermination() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "RequestTermination", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANIPConnection1) ForceTermination() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "ForceTermination", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewAutoDisconnectTime:
+//
+//
+func (client *WANIPConnection1) SetAutoDisconnectTime(NewAutoDisconnectTime uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewAutoDisconnectTime string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewAutoDisconnectTime, err = soap.MarshalUi4(NewAutoDisconnectTime); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetAutoDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewIdleDisconnectTime:
+//
+//
+func (client *WANIPConnection1) SetIdleDisconnectTime(NewIdleDisconnectTime uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewIdleDisconnectTime string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewIdleDisconnectTime, err = soap.MarshalUi4(NewIdleDisconnectTime); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetIdleDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewWarnDisconnectDelay:
+//
+//
+func (client *WANIPConnection1) SetWarnDisconnectDelay(NewWarnDisconnectDelay uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewWarnDisconnectDelay string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewWarnDisconnectDelay, err = soap.MarshalUi4(NewWarnDisconnectDelay); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetWarnDisconnectDelay", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected
+//
+// * NewLastConnectionError: allowed values: ERROR_NONE
+//
+// * NewUptime:
+func (client *WANIPConnection1) GetStatusInfo() (NewConnectionStatus string, NewLastConnectionError string, NewUptime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewConnectionStatus string
+
+ NewLastConnectionError string
+
+ NewUptime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetStatusInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewConnectionStatus, err = soap.UnmarshalString(response.NewConnectionStatus); err != nil {
+ return
+ }
+ if NewLastConnectionError, err = soap.UnmarshalString(response.NewLastConnectionError); err != nil {
+ return
+ }
+ if NewUptime, err = soap.UnmarshalUi4(response.NewUptime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewAutoDisconnectTime:
+func (client *WANIPConnection1) GetAutoDisconnectTime() (NewAutoDisconnectTime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewAutoDisconnectTime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetAutoDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewAutoDisconnectTime, err = soap.UnmarshalUi4(response.NewAutoDisconnectTime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewIdleDisconnectTime:
+func (client *WANIPConnection1) GetIdleDisconnectTime() (NewIdleDisconnectTime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewIdleDisconnectTime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetIdleDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewIdleDisconnectTime, err = soap.UnmarshalUi4(response.NewIdleDisconnectTime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewWarnDisconnectDelay:
+func (client *WANIPConnection1) GetWarnDisconnectDelay() (NewWarnDisconnectDelay uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewWarnDisconnectDelay string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetWarnDisconnectDelay", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewWarnDisconnectDelay, err = soap.UnmarshalUi4(response.NewWarnDisconnectDelay); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewRSIPAvailable:
+//
+// * NewNATEnabled:
+func (client *WANIPConnection1) GetNATRSIPStatus() (NewRSIPAvailable bool, NewNATEnabled bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewRSIPAvailable string
+
+ NewNATEnabled string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetNATRSIPStatus", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewRSIPAvailable, err = soap.UnmarshalBoolean(response.NewRSIPAvailable); err != nil {
+ return
+ }
+ if NewNATEnabled, err = soap.UnmarshalBoolean(response.NewNATEnabled); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewPortMappingIndex:
+//
+// Return values:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// * NewInternalPort:
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration:
+func (client *WANIPConnection1) GetGenericPortMappingEntry(NewPortMappingIndex uint16) (NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error) {
+ // Request structure.
+ request := &struct {
+ NewPortMappingIndex string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewPortMappingIndex, err = soap.MarshalUi2(NewPortMappingIndex); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetGenericPortMappingEntry", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewRemoteHost, err = soap.UnmarshalString(response.NewRemoteHost); err != nil {
+ return
+ }
+ if NewExternalPort, err = soap.UnmarshalUi2(response.NewExternalPort); err != nil {
+ return
+ }
+ if NewProtocol, err = soap.UnmarshalString(response.NewProtocol); err != nil {
+ return
+ }
+ if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil {
+ return
+ }
+ if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil {
+ return
+ }
+ if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil {
+ return
+ }
+ if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil {
+ return
+ }
+ if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// Return values:
+//
+// * NewInternalPort:
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration:
+func (client *WANIPConnection1) GetSpecificPortMappingEntry(NewRemoteHost string, NewExternalPort uint16, NewProtocol string) (NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetSpecificPortMappingEntry", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil {
+ return
+ }
+ if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil {
+ return
+ }
+ if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil {
+ return
+ }
+ if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil {
+ return
+ }
+ if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// * NewInternalPort:
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration:
+//
+//
+func (client *WANIPConnection1) AddPortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ if request.NewInternalPort, err = soap.MarshalUi2(NewInternalPort); err != nil {
+ return
+ }
+ if request.NewInternalClient, err = soap.MarshalString(NewInternalClient); err != nil {
+ return
+ }
+ if request.NewEnabled, err = soap.MarshalBoolean(NewEnabled); err != nil {
+ return
+ }
+ if request.NewPortMappingDescription, err = soap.MarshalString(NewPortMappingDescription); err != nil {
+ return
+ }
+ if request.NewLeaseDuration, err = soap.MarshalUi4(NewLeaseDuration); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "AddPortMapping", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+//
+func (client *WANIPConnection1) DeletePortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "DeletePortMapping", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewExternalIPAddress:
+func (client *WANIPConnection1) GetExternalIPAddress() (NewExternalIPAddress string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewExternalIPAddress string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetExternalIPAddress", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewExternalIPAddress, err = soap.UnmarshalString(response.NewExternalIPAddress); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANIPConnection2 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANIPConnection:2". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANIPConnection2 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANIPConnection2Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANIPConnection2Clients() (clients []*WANIPConnection2, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANIPConnection_2); err != nil {
+ return
+ }
+ clients = make([]*WANIPConnection2, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANIPConnection2{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewConnectionType: allowed values: Unconfigured, IP_Routed, IP_Bridged
+//
+//
+func (client *WANIPConnection2) SetConnectionType(NewConnectionType string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewConnectionType string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewConnectionType, err = soap.MarshalString(NewConnectionType); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "SetConnectionType", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewConnectionType: allowed values: Unconfigured, IP_Routed, IP_Bridged
+//
+// * NewPossibleConnectionTypes:
+func (client *WANIPConnection2) GetConnectionTypeInfo() (NewConnectionType string, NewPossibleConnectionTypes string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewConnectionType string
+
+ NewPossibleConnectionTypes string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetConnectionTypeInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewConnectionType, err = soap.UnmarshalString(response.NewConnectionType); err != nil {
+ return
+ }
+ if NewPossibleConnectionTypes, err = soap.UnmarshalString(response.NewPossibleConnectionTypes); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANIPConnection2) RequestConnection() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "RequestConnection", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANIPConnection2) RequestTermination() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "RequestTermination", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANIPConnection2) ForceTermination() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "ForceTermination", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewAutoDisconnectTime:
+//
+//
+func (client *WANIPConnection2) SetAutoDisconnectTime(NewAutoDisconnectTime uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewAutoDisconnectTime string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewAutoDisconnectTime, err = soap.MarshalUi4(NewAutoDisconnectTime); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "SetAutoDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewIdleDisconnectTime:
+//
+//
+func (client *WANIPConnection2) SetIdleDisconnectTime(NewIdleDisconnectTime uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewIdleDisconnectTime string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewIdleDisconnectTime, err = soap.MarshalUi4(NewIdleDisconnectTime); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "SetIdleDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewWarnDisconnectDelay:
+//
+//
+func (client *WANIPConnection2) SetWarnDisconnectDelay(NewWarnDisconnectDelay uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewWarnDisconnectDelay string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewWarnDisconnectDelay, err = soap.MarshalUi4(NewWarnDisconnectDelay); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "SetWarnDisconnectDelay", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected
+//
+// * NewLastConnectionError: allowed values: ERROR_NONE
+//
+// * NewUptime:
+func (client *WANIPConnection2) GetStatusInfo() (NewConnectionStatus string, NewLastConnectionError string, NewUptime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewConnectionStatus string
+
+ NewLastConnectionError string
+
+ NewUptime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetStatusInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewConnectionStatus, err = soap.UnmarshalString(response.NewConnectionStatus); err != nil {
+ return
+ }
+ if NewLastConnectionError, err = soap.UnmarshalString(response.NewLastConnectionError); err != nil {
+ return
+ }
+ if NewUptime, err = soap.UnmarshalUi4(response.NewUptime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewAutoDisconnectTime:
+func (client *WANIPConnection2) GetAutoDisconnectTime() (NewAutoDisconnectTime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewAutoDisconnectTime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetAutoDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewAutoDisconnectTime, err = soap.UnmarshalUi4(response.NewAutoDisconnectTime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewIdleDisconnectTime:
+func (client *WANIPConnection2) GetIdleDisconnectTime() (NewIdleDisconnectTime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewIdleDisconnectTime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetIdleDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewIdleDisconnectTime, err = soap.UnmarshalUi4(response.NewIdleDisconnectTime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewWarnDisconnectDelay:
+func (client *WANIPConnection2) GetWarnDisconnectDelay() (NewWarnDisconnectDelay uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewWarnDisconnectDelay string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetWarnDisconnectDelay", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewWarnDisconnectDelay, err = soap.UnmarshalUi4(response.NewWarnDisconnectDelay); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewRSIPAvailable:
+//
+// * NewNATEnabled:
+func (client *WANIPConnection2) GetNATRSIPStatus() (NewRSIPAvailable bool, NewNATEnabled bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewRSIPAvailable string
+
+ NewNATEnabled string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetNATRSIPStatus", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewRSIPAvailable, err = soap.UnmarshalBoolean(response.NewRSIPAvailable); err != nil {
+ return
+ }
+ if NewNATEnabled, err = soap.UnmarshalBoolean(response.NewNATEnabled); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewPortMappingIndex:
+//
+// Return values:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// * NewInternalPort: allowed value range: minimum=1, maximum=65535
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration: allowed value range: minimum=0, maximum=604800
+func (client *WANIPConnection2) GetGenericPortMappingEntry(NewPortMappingIndex uint16) (NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error) {
+ // Request structure.
+ request := &struct {
+ NewPortMappingIndex string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewPortMappingIndex, err = soap.MarshalUi2(NewPortMappingIndex); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetGenericPortMappingEntry", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewRemoteHost, err = soap.UnmarshalString(response.NewRemoteHost); err != nil {
+ return
+ }
+ if NewExternalPort, err = soap.UnmarshalUi2(response.NewExternalPort); err != nil {
+ return
+ }
+ if NewProtocol, err = soap.UnmarshalString(response.NewProtocol); err != nil {
+ return
+ }
+ if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil {
+ return
+ }
+ if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil {
+ return
+ }
+ if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil {
+ return
+ }
+ if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil {
+ return
+ }
+ if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// Return values:
+//
+// * NewInternalPort: allowed value range: minimum=1, maximum=65535
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration: allowed value range: minimum=0, maximum=604800
+func (client *WANIPConnection2) GetSpecificPortMappingEntry(NewRemoteHost string, NewExternalPort uint16, NewProtocol string) (NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetSpecificPortMappingEntry", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil {
+ return
+ }
+ if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil {
+ return
+ }
+ if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil {
+ return
+ }
+ if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil {
+ return
+ }
+ if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// * NewInternalPort: allowed value range: minimum=1, maximum=65535
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration: allowed value range: minimum=0, maximum=604800
+//
+//
+func (client *WANIPConnection2) AddPortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ if request.NewInternalPort, err = soap.MarshalUi2(NewInternalPort); err != nil {
+ return
+ }
+ if request.NewInternalClient, err = soap.MarshalString(NewInternalClient); err != nil {
+ return
+ }
+ if request.NewEnabled, err = soap.MarshalBoolean(NewEnabled); err != nil {
+ return
+ }
+ if request.NewPortMappingDescription, err = soap.MarshalString(NewPortMappingDescription); err != nil {
+ return
+ }
+ if request.NewLeaseDuration, err = soap.MarshalUi4(NewLeaseDuration); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "AddPortMapping", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+//
+func (client *WANIPConnection2) DeletePortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "DeletePortMapping", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewStartPort:
+//
+// * NewEndPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// * NewManage:
+//
+//
+func (client *WANIPConnection2) DeletePortMappingRange(NewStartPort uint16, NewEndPort uint16, NewProtocol string, NewManage bool) (err error) {
+ // Request structure.
+ request := &struct {
+ NewStartPort string
+
+ NewEndPort string
+
+ NewProtocol string
+
+ NewManage string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewStartPort, err = soap.MarshalUi2(NewStartPort); err != nil {
+ return
+ }
+ if request.NewEndPort, err = soap.MarshalUi2(NewEndPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ if request.NewManage, err = soap.MarshalBoolean(NewManage); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "DeletePortMappingRange", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewExternalIPAddress:
+func (client *WANIPConnection2) GetExternalIPAddress() (NewExternalIPAddress string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewExternalIPAddress string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetExternalIPAddress", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewExternalIPAddress, err = soap.UnmarshalString(response.NewExternalIPAddress); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewStartPort:
+//
+// * NewEndPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// * NewManage:
+//
+// * NewNumberOfPorts:
+//
+// Return values:
+//
+// * NewPortListing:
+func (client *WANIPConnection2) GetListOfPortMappings(NewStartPort uint16, NewEndPort uint16, NewProtocol string, NewManage bool, NewNumberOfPorts uint16) (NewPortListing string, err error) {
+ // Request structure.
+ request := &struct {
+ NewStartPort string
+
+ NewEndPort string
+
+ NewProtocol string
+
+ NewManage string
+
+ NewNumberOfPorts string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewStartPort, err = soap.MarshalUi2(NewStartPort); err != nil {
+ return
+ }
+ if request.NewEndPort, err = soap.MarshalUi2(NewEndPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ if request.NewManage, err = soap.MarshalBoolean(NewManage); err != nil {
+ return
+ }
+ if request.NewNumberOfPorts, err = soap.MarshalUi2(NewNumberOfPorts); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewPortListing string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetListOfPortMappings", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewPortListing, err = soap.UnmarshalString(response.NewPortListing); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// * NewInternalPort: allowed value range: minimum=1, maximum=65535
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration: allowed value range: minimum=0, maximum=604800
+//
+// Return values:
+//
+// * NewReservedPort:
+func (client *WANIPConnection2) AddAnyPortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32) (NewReservedPort uint16, err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ if request.NewInternalPort, err = soap.MarshalUi2(NewInternalPort); err != nil {
+ return
+ }
+ if request.NewInternalClient, err = soap.MarshalString(NewInternalClient); err != nil {
+ return
+ }
+ if request.NewEnabled, err = soap.MarshalBoolean(NewEnabled); err != nil {
+ return
+ }
+ if request.NewPortMappingDescription, err = soap.MarshalString(NewPortMappingDescription); err != nil {
+ return
+ }
+ if request.NewLeaseDuration, err = soap.MarshalUi4(NewLeaseDuration); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewReservedPort string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "AddAnyPortMapping", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewReservedPort, err = soap.UnmarshalUi2(response.NewReservedPort); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANIPv6FirewallControl1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANIPv6FirewallControl:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANIPv6FirewallControl1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANIPv6FirewallControl1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANIPv6FirewallControl1Clients() (clients []*WANIPv6FirewallControl1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANIPv6FirewallControl_1); err != nil {
+ return
+ }
+ clients = make([]*WANIPv6FirewallControl1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANIPv6FirewallControl1{genericClients[i]}
+ }
+ return
+}
+
+//
+//
+// Return values:
+//
+// * FirewallEnabled:
+//
+// * InboundPinholeAllowed:
+func (client *WANIPv6FirewallControl1) GetFirewallStatus() (FirewallEnabled bool, InboundPinholeAllowed bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ FirewallEnabled string
+
+ InboundPinholeAllowed string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "GetFirewallStatus", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if FirewallEnabled, err = soap.UnmarshalBoolean(response.FirewallEnabled); err != nil {
+ return
+ }
+ if InboundPinholeAllowed, err = soap.UnmarshalBoolean(response.InboundPinholeAllowed); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * RemoteHost:
+//
+// * RemotePort:
+//
+// * InternalClient:
+//
+// * InternalPort:
+//
+// * Protocol:
+//
+// Return values:
+//
+// * OutboundPinholeTimeout:
+func (client *WANIPv6FirewallControl1) GetOutboundPinholeTimeout(RemoteHost string, RemotePort uint16, InternalClient string, InternalPort uint16, Protocol uint16) (OutboundPinholeTimeout uint32, err error) {
+ // Request structure.
+ request := &struct {
+ RemoteHost string
+
+ RemotePort string
+
+ InternalClient string
+
+ InternalPort string
+
+ Protocol string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.RemoteHost, err = soap.MarshalString(RemoteHost); err != nil {
+ return
+ }
+ if request.RemotePort, err = soap.MarshalUi2(RemotePort); err != nil {
+ return
+ }
+ if request.InternalClient, err = soap.MarshalString(InternalClient); err != nil {
+ return
+ }
+ if request.InternalPort, err = soap.MarshalUi2(InternalPort); err != nil {
+ return
+ }
+ if request.Protocol, err = soap.MarshalUi2(Protocol); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ OutboundPinholeTimeout string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "GetOutboundPinholeTimeout", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if OutboundPinholeTimeout, err = soap.UnmarshalUi4(response.OutboundPinholeTimeout); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * RemoteHost:
+//
+// * RemotePort:
+//
+// * InternalClient:
+//
+// * InternalPort:
+//
+// * Protocol:
+//
+// * LeaseTime: allowed value range: minimum=1, maximum=86400
+//
+// Return values:
+//
+// * UniqueID:
+func (client *WANIPv6FirewallControl1) AddPinhole(RemoteHost string, RemotePort uint16, InternalClient string, InternalPort uint16, Protocol uint16, LeaseTime uint32) (UniqueID uint16, err error) {
+ // Request structure.
+ request := &struct {
+ RemoteHost string
+
+ RemotePort string
+
+ InternalClient string
+
+ InternalPort string
+
+ Protocol string
+
+ LeaseTime string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.RemoteHost, err = soap.MarshalString(RemoteHost); err != nil {
+ return
+ }
+ if request.RemotePort, err = soap.MarshalUi2(RemotePort); err != nil {
+ return
+ }
+ if request.InternalClient, err = soap.MarshalString(InternalClient); err != nil {
+ return
+ }
+ if request.InternalPort, err = soap.MarshalUi2(InternalPort); err != nil {
+ return
+ }
+ if request.Protocol, err = soap.MarshalUi2(Protocol); err != nil {
+ return
+ }
+ if request.LeaseTime, err = soap.MarshalUi4(LeaseTime); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ UniqueID string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "AddPinhole", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if UniqueID, err = soap.UnmarshalUi2(response.UniqueID); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * UniqueID:
+//
+// * NewLeaseTime: allowed value range: minimum=1, maximum=86400
+//
+//
+func (client *WANIPv6FirewallControl1) UpdatePinhole(UniqueID uint16, NewLeaseTime uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ UniqueID string
+
+ NewLeaseTime string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.UniqueID, err = soap.MarshalUi2(UniqueID); err != nil {
+ return
+ }
+ if request.NewLeaseTime, err = soap.MarshalUi4(NewLeaseTime); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "UpdatePinhole", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * UniqueID:
+//
+//
+func (client *WANIPv6FirewallControl1) DeletePinhole(UniqueID uint16) (err error) {
+ // Request structure.
+ request := &struct {
+ UniqueID string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.UniqueID, err = soap.MarshalUi2(UniqueID); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "DeletePinhole", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * UniqueID:
+//
+// Return values:
+//
+// * PinholePackets:
+func (client *WANIPv6FirewallControl1) GetPinholePackets(UniqueID uint16) (PinholePackets uint32, err error) {
+ // Request structure.
+ request := &struct {
+ UniqueID string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.UniqueID, err = soap.MarshalUi2(UniqueID); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ PinholePackets string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "GetPinholePackets", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if PinholePackets, err = soap.UnmarshalUi4(response.PinholePackets); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * UniqueID:
+//
+// Return values:
+//
+// * IsWorking:
+func (client *WANIPv6FirewallControl1) CheckPinholeWorking(UniqueID uint16) (IsWorking bool, err error) {
+ // Request structure.
+ request := &struct {
+ UniqueID string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.UniqueID, err = soap.MarshalUi2(UniqueID); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ IsWorking string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "CheckPinholeWorking", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if IsWorking, err = soap.UnmarshalBoolean(response.IsWorking); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANPOTSLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANPOTSLinkConfig:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANPOTSLinkConfig1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANPOTSLinkConfig1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANPOTSLinkConfig1Clients() (clients []*WANPOTSLinkConfig1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANPOTSLinkConfig_1); err != nil {
+ return
+ }
+ clients = make([]*WANPOTSLinkConfig1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANPOTSLinkConfig1{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewISPPhoneNumber:
+//
+// * NewISPInfo:
+//
+// * NewLinkType: allowed values: PPP_Dialup
+//
+//
+func (client *WANPOTSLinkConfig1) SetISPInfo(NewISPPhoneNumber string, NewISPInfo string, NewLinkType string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewISPPhoneNumber string
+
+ NewISPInfo string
+
+ NewLinkType string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewISPPhoneNumber, err = soap.MarshalString(NewISPPhoneNumber); err != nil {
+ return
+ }
+ if request.NewISPInfo, err = soap.MarshalString(NewISPInfo); err != nil {
+ return
+ }
+ if request.NewLinkType, err = soap.MarshalString(NewLinkType); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "SetISPInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewNumberOfRetries:
+//
+// * NewDelayBetweenRetries:
+//
+//
+func (client *WANPOTSLinkConfig1) SetCallRetryInfo(NewNumberOfRetries uint32, NewDelayBetweenRetries uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewNumberOfRetries string
+
+ NewDelayBetweenRetries string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewNumberOfRetries, err = soap.MarshalUi4(NewNumberOfRetries); err != nil {
+ return
+ }
+ if request.NewDelayBetweenRetries, err = soap.MarshalUi4(NewDelayBetweenRetries); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "SetCallRetryInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewISPPhoneNumber:
+//
+// * NewISPInfo:
+//
+// * NewLinkType: allowed values: PPP_Dialup
+func (client *WANPOTSLinkConfig1) GetISPInfo() (NewISPPhoneNumber string, NewISPInfo string, NewLinkType string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewISPPhoneNumber string
+
+ NewISPInfo string
+
+ NewLinkType string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetISPInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewISPPhoneNumber, err = soap.UnmarshalString(response.NewISPPhoneNumber); err != nil {
+ return
+ }
+ if NewISPInfo, err = soap.UnmarshalString(response.NewISPInfo); err != nil {
+ return
+ }
+ if NewLinkType, err = soap.UnmarshalString(response.NewLinkType); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewNumberOfRetries:
+//
+// * NewDelayBetweenRetries:
+func (client *WANPOTSLinkConfig1) GetCallRetryInfo() (NewNumberOfRetries uint32, NewDelayBetweenRetries uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewNumberOfRetries string
+
+ NewDelayBetweenRetries string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetCallRetryInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewNumberOfRetries, err = soap.UnmarshalUi4(response.NewNumberOfRetries); err != nil {
+ return
+ }
+ if NewDelayBetweenRetries, err = soap.UnmarshalUi4(response.NewDelayBetweenRetries); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewFclass:
+func (client *WANPOTSLinkConfig1) GetFclass() (NewFclass string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewFclass string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetFclass", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewFclass, err = soap.UnmarshalString(response.NewFclass); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDataModulationSupported:
+func (client *WANPOTSLinkConfig1) GetDataModulationSupported() (NewDataModulationSupported string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDataModulationSupported string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataModulationSupported", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDataModulationSupported, err = soap.UnmarshalString(response.NewDataModulationSupported); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDataProtocol:
+func (client *WANPOTSLinkConfig1) GetDataProtocol() (NewDataProtocol string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDataProtocol string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataProtocol", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDataProtocol, err = soap.UnmarshalString(response.NewDataProtocol); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewDataCompression:
+func (client *WANPOTSLinkConfig1) GetDataCompression() (NewDataCompression string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewDataCompression string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataCompression", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewDataCompression, err = soap.UnmarshalString(response.NewDataCompression); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewPlusVTRCommandSupported:
+func (client *WANPOTSLinkConfig1) GetPlusVTRCommandSupported() (NewPlusVTRCommandSupported bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewPlusVTRCommandSupported string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetPlusVTRCommandSupported", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewPlusVTRCommandSupported, err = soap.UnmarshalBoolean(response.NewPlusVTRCommandSupported); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// WANPPPConnection1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANPPPConnection:1". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type WANPPPConnection1 struct {
+ goupnp.ServiceClient
+}
+
+// NewWANPPPConnection1Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func NewWANPPPConnection1Clients() (clients []*WANPPPConnection1, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients(URN_WANPPPConnection_1); err != nil {
+ return
+ }
+ clients = make([]*WANPPPConnection1, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &WANPPPConnection1{genericClients[i]}
+ }
+ return
+}
+
+// Arguments:
+//
+// * NewConnectionType:
+//
+//
+func (client *WANPPPConnection1) SetConnectionType(NewConnectionType string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewConnectionType string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewConnectionType, err = soap.MarshalString(NewConnectionType); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetConnectionType", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewConnectionType:
+//
+// * NewPossibleConnectionTypes: allowed values: Unconfigured, IP_Routed, DHCP_Spoofed, PPPoE_Bridged, PPTP_Relay, L2TP_Relay, PPPoE_Relay
+func (client *WANPPPConnection1) GetConnectionTypeInfo() (NewConnectionType string, NewPossibleConnectionTypes string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewConnectionType string
+
+ NewPossibleConnectionTypes string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetConnectionTypeInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewConnectionType, err = soap.UnmarshalString(response.NewConnectionType); err != nil {
+ return
+ }
+ if NewPossibleConnectionTypes, err = soap.UnmarshalString(response.NewPossibleConnectionTypes); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewUserName:
+//
+// * NewPassword:
+//
+//
+func (client *WANPPPConnection1) ConfigureConnection(NewUserName string, NewPassword string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewUserName string
+
+ NewPassword string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewUserName, err = soap.MarshalString(NewUserName); err != nil {
+ return
+ }
+ if request.NewPassword, err = soap.MarshalString(NewPassword); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "ConfigureConnection", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANPPPConnection1) RequestConnection() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "RequestConnection", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANPPPConnection1) RequestTermination() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "RequestTermination", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+//
+func (client *WANPPPConnection1) ForceTermination() (err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "ForceTermination", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewAutoDisconnectTime:
+//
+//
+func (client *WANPPPConnection1) SetAutoDisconnectTime(NewAutoDisconnectTime uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewAutoDisconnectTime string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewAutoDisconnectTime, err = soap.MarshalUi4(NewAutoDisconnectTime); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetAutoDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewIdleDisconnectTime:
+//
+//
+func (client *WANPPPConnection1) SetIdleDisconnectTime(NewIdleDisconnectTime uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewIdleDisconnectTime string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewIdleDisconnectTime, err = soap.MarshalUi4(NewIdleDisconnectTime); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetIdleDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewWarnDisconnectDelay:
+//
+//
+func (client *WANPPPConnection1) SetWarnDisconnectDelay(NewWarnDisconnectDelay uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewWarnDisconnectDelay string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewWarnDisconnectDelay, err = soap.MarshalUi4(NewWarnDisconnectDelay); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetWarnDisconnectDelay", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected
+//
+// * NewLastConnectionError: allowed values: ERROR_NONE
+//
+// * NewUptime:
+func (client *WANPPPConnection1) GetStatusInfo() (NewConnectionStatus string, NewLastConnectionError string, NewUptime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewConnectionStatus string
+
+ NewLastConnectionError string
+
+ NewUptime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetStatusInfo", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewConnectionStatus, err = soap.UnmarshalString(response.NewConnectionStatus); err != nil {
+ return
+ }
+ if NewLastConnectionError, err = soap.UnmarshalString(response.NewLastConnectionError); err != nil {
+ return
+ }
+ if NewUptime, err = soap.UnmarshalUi4(response.NewUptime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewUpstreamMaxBitRate:
+//
+// * NewDownstreamMaxBitRate:
+func (client *WANPPPConnection1) GetLinkLayerMaxBitRates() (NewUpstreamMaxBitRate uint32, NewDownstreamMaxBitRate uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewUpstreamMaxBitRate string
+
+ NewDownstreamMaxBitRate string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetLinkLayerMaxBitRates", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewUpstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewUpstreamMaxBitRate); err != nil {
+ return
+ }
+ if NewDownstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewDownstreamMaxBitRate); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewPPPEncryptionProtocol:
+func (client *WANPPPConnection1) GetPPPEncryptionProtocol() (NewPPPEncryptionProtocol string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewPPPEncryptionProtocol string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPEncryptionProtocol", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewPPPEncryptionProtocol, err = soap.UnmarshalString(response.NewPPPEncryptionProtocol); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewPPPCompressionProtocol:
+func (client *WANPPPConnection1) GetPPPCompressionProtocol() (NewPPPCompressionProtocol string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewPPPCompressionProtocol string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPCompressionProtocol", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewPPPCompressionProtocol, err = soap.UnmarshalString(response.NewPPPCompressionProtocol); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewPPPAuthenticationProtocol:
+func (client *WANPPPConnection1) GetPPPAuthenticationProtocol() (NewPPPAuthenticationProtocol string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewPPPAuthenticationProtocol string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPAuthenticationProtocol", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewPPPAuthenticationProtocol, err = soap.UnmarshalString(response.NewPPPAuthenticationProtocol); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewUserName:
+func (client *WANPPPConnection1) GetUserName() (NewUserName string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewUserName string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetUserName", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewUserName, err = soap.UnmarshalString(response.NewUserName); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewPassword:
+func (client *WANPPPConnection1) GetPassword() (NewPassword string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewPassword string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPassword", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewPassword, err = soap.UnmarshalString(response.NewPassword); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewAutoDisconnectTime:
+func (client *WANPPPConnection1) GetAutoDisconnectTime() (NewAutoDisconnectTime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewAutoDisconnectTime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetAutoDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewAutoDisconnectTime, err = soap.UnmarshalUi4(response.NewAutoDisconnectTime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewIdleDisconnectTime:
+func (client *WANPPPConnection1) GetIdleDisconnectTime() (NewIdleDisconnectTime uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewIdleDisconnectTime string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetIdleDisconnectTime", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewIdleDisconnectTime, err = soap.UnmarshalUi4(response.NewIdleDisconnectTime); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewWarnDisconnectDelay:
+func (client *WANPPPConnection1) GetWarnDisconnectDelay() (NewWarnDisconnectDelay uint32, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewWarnDisconnectDelay string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetWarnDisconnectDelay", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewWarnDisconnectDelay, err = soap.UnmarshalUi4(response.NewWarnDisconnectDelay); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewRSIPAvailable:
+//
+// * NewNATEnabled:
+func (client *WANPPPConnection1) GetNATRSIPStatus() (NewRSIPAvailable bool, NewNATEnabled bool, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewRSIPAvailable string
+
+ NewNATEnabled string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetNATRSIPStatus", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewRSIPAvailable, err = soap.UnmarshalBoolean(response.NewRSIPAvailable); err != nil {
+ return
+ }
+ if NewNATEnabled, err = soap.UnmarshalBoolean(response.NewNATEnabled); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewPortMappingIndex:
+//
+// Return values:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// * NewInternalPort:
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration:
+func (client *WANPPPConnection1) GetGenericPortMappingEntry(NewPortMappingIndex uint16) (NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error) {
+ // Request structure.
+ request := &struct {
+ NewPortMappingIndex string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewPortMappingIndex, err = soap.MarshalUi2(NewPortMappingIndex); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetGenericPortMappingEntry", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewRemoteHost, err = soap.UnmarshalString(response.NewRemoteHost); err != nil {
+ return
+ }
+ if NewExternalPort, err = soap.UnmarshalUi2(response.NewExternalPort); err != nil {
+ return
+ }
+ if NewProtocol, err = soap.UnmarshalString(response.NewProtocol); err != nil {
+ return
+ }
+ if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil {
+ return
+ }
+ if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil {
+ return
+ }
+ if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil {
+ return
+ }
+ if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil {
+ return
+ }
+ if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// Return values:
+//
+// * NewInternalPort:
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration:
+func (client *WANPPPConnection1) GetSpecificPortMappingEntry(NewRemoteHost string, NewExternalPort uint16, NewProtocol string) (NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetSpecificPortMappingEntry", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil {
+ return
+ }
+ if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil {
+ return
+ }
+ if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil {
+ return
+ }
+ if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil {
+ return
+ }
+ if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+// * NewInternalPort:
+//
+// * NewInternalClient:
+//
+// * NewEnabled:
+//
+// * NewPortMappingDescription:
+//
+// * NewLeaseDuration:
+//
+//
+func (client *WANPPPConnection1) AddPortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32) (err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+
+ NewInternalPort string
+
+ NewInternalClient string
+
+ NewEnabled string
+
+ NewPortMappingDescription string
+
+ NewLeaseDuration string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ if request.NewInternalPort, err = soap.MarshalUi2(NewInternalPort); err != nil {
+ return
+ }
+ if request.NewInternalClient, err = soap.MarshalString(NewInternalClient); err != nil {
+ return
+ }
+ if request.NewEnabled, err = soap.MarshalBoolean(NewEnabled); err != nil {
+ return
+ }
+ if request.NewPortMappingDescription, err = soap.MarshalString(NewPortMappingDescription); err != nil {
+ return
+ }
+ if request.NewLeaseDuration, err = soap.MarshalUi4(NewLeaseDuration); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "AddPortMapping", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+// Arguments:
+//
+// * NewRemoteHost:
+//
+// * NewExternalPort:
+//
+// * NewProtocol: allowed values: TCP, UDP
+//
+//
+func (client *WANPPPConnection1) DeletePortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string) (err error) {
+ // Request structure.
+ request := &struct {
+ NewRemoteHost string
+
+ NewExternalPort string
+
+ NewProtocol string
+ }{}
+ // BEGIN Marshal arguments into request.
+
+ if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil {
+ return
+ }
+ if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil {
+ return
+ }
+ if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil {
+ return
+ }
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := interface{}(nil)
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "DeletePortMapping", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ // END Unmarshal arguments from response.
+ return
+}
+
+//
+//
+// Return values:
+//
+// * NewExternalIPAddress:
+func (client *WANPPPConnection1) GetExternalIPAddress() (NewExternalIPAddress string, err error) {
+ // Request structure.
+ request := interface{}(nil)
+ // BEGIN Marshal arguments into request.
+
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := &struct {
+ NewExternalIPAddress string
+ }{}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetExternalIPAddress", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+
+ if NewExternalIPAddress, err = soap.UnmarshalString(response.NewExternalIPAddress); err != nil {
+ return
+ }
+ // END Unmarshal arguments from response.
+ return
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/device.go b/Godeps/_workspace/src/github.com/fjl/goupnp/device.go
new file mode 100644
index 000000000..2b8e9bb07
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/device.go
@@ -0,0 +1,184 @@
+// This file contains XML structures for communicating with UPnP devices.
+
+package goupnp
+
+import (
+ "encoding/xml"
+ "errors"
+ "fmt"
+ "net/url"
+
+ "github.com/fjl/goupnp/scpd"
+ "github.com/fjl/goupnp/soap"
+)
+
+const (
+ DeviceXMLNamespace = "urn:schemas-upnp-org:device-1-0"
+)
+
+// RootDevice is the device description as described by section 2.3 "Device
+// description" in
+// http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf
+type RootDevice struct {
+ XMLName xml.Name `xml:"root"`
+ SpecVersion SpecVersion `xml:"specVersion"`
+ URLBase url.URL `xml:"-"`
+ URLBaseStr string `xml:"URLBase"`
+ Device Device `xml:"device"`
+}
+
+// SetURLBase sets the URLBase for the RootDevice and its underlying components.
+func (root *RootDevice) SetURLBase(urlBase *url.URL) {
+ root.URLBase = *urlBase
+ root.URLBaseStr = urlBase.String()
+ root.Device.SetURLBase(urlBase)
+}
+
+// SpecVersion is part of a RootDevice, describes the version of the
+// specification that the data adheres to.
+type SpecVersion struct {
+ Major int32 `xml:"major"`
+ Minor int32 `xml:"minor"`
+}
+
+// Device is a UPnP device. It can have child devices.
+type Device struct {
+ DeviceType string `xml:"deviceType"`
+ FriendlyName string `xml:"friendlyName"`
+ Manufacturer string `xml:"manufacturer"`
+ ManufacturerURL URLField `xml:"manufacturerURL"`
+ ModelDescription string `xml:"modelDescription"`
+ ModelName string `xml:"modelName"`
+ ModelNumber string `xml:"modelNumber"`
+ ModelURL URLField `xml:"modelURL"`
+ SerialNumber string `xml:"serialNumber"`
+ UDN string `xml:"UDN"`
+ UPC string `xml:"UPC,omitempty"`
+ Icons []Icon `xml:"iconList>icon,omitempty"`
+ Services []Service `xml:"serviceList>service,omitempty"`
+ Devices []Device `xml:"deviceList>device,omitempty"`
+
+ // Extra observed elements:
+ PresentationURL URLField `xml:"presentationURL"`
+}
+
+// VisitDevices calls visitor for the device, and all its descendent devices.
+func (device *Device) VisitDevices(visitor func(*Device)) {
+ visitor(device)
+ for i := range device.Devices {
+ device.Devices[i].VisitDevices(visitor)
+ }
+}
+
+// VisitServices calls visitor for all Services under the device and all its
+// descendent devices.
+func (device *Device) VisitServices(visitor func(*Service)) {
+ device.VisitDevices(func(d *Device) {
+ for i := range d.Services {
+ visitor(&d.Services[i])
+ }
+ })
+}
+
+// FindService finds all (if any) Services under the device and its descendents
+// that have the given ServiceType.
+func (device *Device) FindService(serviceType string) []*Service {
+ var services []*Service
+ device.VisitServices(func(s *Service) {
+ if s.ServiceType == serviceType {
+ services = append(services, s)
+ }
+ })
+ return services
+}
+
+// SetURLBase sets the URLBase for the Device and its underlying components.
+func (device *Device) SetURLBase(urlBase *url.URL) {
+ device.ManufacturerURL.SetURLBase(urlBase)
+ device.ModelURL.SetURLBase(urlBase)
+ device.PresentationURL.SetURLBase(urlBase)
+ for i := range device.Icons {
+ device.Icons[i].SetURLBase(urlBase)
+ }
+ for i := range device.Services {
+ device.Services[i].SetURLBase(urlBase)
+ }
+ for i := range device.Devices {
+ device.Devices[i].SetURLBase(urlBase)
+ }
+}
+
+func (device *Device) String() string {
+ return fmt.Sprintf("Device ID %s : %s (%s)", device.UDN, device.DeviceType, device.FriendlyName)
+}
+
+// Icon is a representative image that a device might include in its
+// description.
+type Icon struct {
+ Mimetype string `xml:"mimetype"`
+ Width int32 `xml:"width"`
+ Height int32 `xml:"height"`
+ Depth int32 `xml:"depth"`
+ URL URLField `xml:"url"`
+}
+
+// SetURLBase sets the URLBase for the Icon.
+func (icon *Icon) SetURLBase(url *url.URL) {
+ icon.URL.SetURLBase(url)
+}
+
+// Service is a service provided by a UPnP Device.
+type Service struct {
+ ServiceType string `xml:"serviceType"`
+ ServiceId string `xml:"serviceId"`
+ SCPDURL URLField `xml:"SCPDURL"`
+ ControlURL URLField `xml:"controlURL"`
+ EventSubURL URLField `xml:"eventSubURL"`
+}
+
+// SetURLBase sets the URLBase for the Service.
+func (srv *Service) SetURLBase(urlBase *url.URL) {
+ srv.SCPDURL.SetURLBase(urlBase)
+ srv.ControlURL.SetURLBase(urlBase)
+ srv.EventSubURL.SetURLBase(urlBase)
+}
+
+func (srv *Service) String() string {
+ return fmt.Sprintf("Service ID %s : %s", srv.ServiceId, srv.ServiceType)
+}
+
+// RequestSCDP requests the SCPD (soap actions and state variables description)
+// for the service.
+func (srv *Service) RequestSCDP() (*scpd.SCPD, error) {
+ if !srv.SCPDURL.Ok {
+ return nil, errors.New("bad/missing SCPD URL, or no URLBase has been set")
+ }
+ s := new(scpd.SCPD)
+ if err := requestXml(srv.SCPDURL.URL.String(), scpd.SCPDXMLNamespace, s); err != nil {
+ return nil, err
+ }
+ return s, nil
+}
+
+func (srv *Service) NewSOAPClient() *soap.SOAPClient {
+ return soap.NewSOAPClient(srv.ControlURL.URL)
+}
+
+// URLField is a URL that is part of a device description.
+type URLField struct {
+ URL url.URL `xml:"-"`
+ Ok bool `xml:"-"`
+ Str string `xml:",chardata"`
+}
+
+func (uf *URLField) SetURLBase(urlBase *url.URL) {
+ refUrl, err := url.Parse(uf.Str)
+ if err != nil {
+ uf.URL = url.URL{}
+ uf.Ok = false
+ return
+ }
+
+ uf.URL = *urlBase.ResolveReference(refUrl)
+ uf.Ok = true
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/example/example.go b/Godeps/_workspace/src/github.com/fjl/goupnp/example/example.go
new file mode 100644
index 000000000..aae4c28f4
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/example/example.go
@@ -0,0 +1,6 @@
+// Serves as examples of using the goupnp library.
+//
+// To run examples and see the output for your local network, run the following
+// command (specifically including the -v flag):
+// go test -v github.com/fjl/goupnp/example
+package example
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/example/example_test.go b/Godeps/_workspace/src/github.com/fjl/goupnp/example/example_test.go
new file mode 100644
index 000000000..d926a06b0
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/example/example_test.go
@@ -0,0 +1,62 @@
+package example_test
+
+import (
+ "fmt"
+ "os"
+
+ "github.com/fjl/goupnp"
+ "github.com/fjl/goupnp/dcps/internetgateway1"
+)
+
+// Use discovered WANPPPConnection1 services to find external IP addresses.
+func Example_WANPPPConnection1_GetExternalIPAddress() {
+ clients, errors, err := internetgateway1.NewWANPPPConnection1Clients()
+ extIPClients := make([]GetExternalIPAddresser, len(clients))
+ for i, client := range clients {
+ extIPClients[i] = client
+ }
+ DisplayExternalIPResults(extIPClients, errors, err)
+ // Output:
+}
+
+// Use discovered WANIPConnection services to find external IP addresses.
+func Example_WANIPConnection_GetExternalIPAddress() {
+ clients, errors, err := internetgateway1.NewWANIPConnection1Clients()
+ extIPClients := make([]GetExternalIPAddresser, len(clients))
+ for i, client := range clients {
+ extIPClients[i] = client
+ }
+ DisplayExternalIPResults(extIPClients, errors, err)
+ // Output:
+}
+
+type GetExternalIPAddresser interface {
+ GetExternalIPAddress() (NewExternalIPAddress string, err error)
+ GetServiceClient() *goupnp.ServiceClient
+}
+
+func DisplayExternalIPResults(clients []GetExternalIPAddresser, errors []error, err error) {
+ if err != nil {
+ fmt.Fprintln(os.Stderr, "Error discovering service with UPnP: ", err)
+ return
+ }
+
+ if len(errors) > 0 {
+ fmt.Fprintf(os.Stderr, "Error discovering %d services:\n", len(errors))
+ for _, err := range errors {
+ fmt.Println(" ", err)
+ }
+ }
+
+ fmt.Fprintf(os.Stderr, "Successfully discovered %d services:\n", len(clients))
+ for _, client := range clients {
+ device := &client.GetServiceClient().RootDevice.Device
+
+ fmt.Fprintln(os.Stderr, " Device:", device.FriendlyName)
+ if addr, err := client.GetExternalIPAddress(); err != nil {
+ fmt.Fprintf(os.Stderr, " Failed to get external IP address: %v\n", err)
+ } else {
+ fmt.Fprintf(os.Stderr, " External IP address: %v\n", addr)
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/gotasks/specgen_task.go b/Godeps/_workspace/src/github.com/fjl/goupnp/gotasks/specgen_task.go
new file mode 100644
index 000000000..006e8fef3
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/gotasks/specgen_task.go
@@ -0,0 +1,539 @@
+// +build gotask
+
+package gotasks
+
+import (
+ "archive/zip"
+ "bytes"
+ "encoding/xml"
+ "fmt"
+ "io"
+ "io/ioutil"
+ "log"
+ "os"
+ "path"
+ "path/filepath"
+ "regexp"
+ "strings"
+ "text/template"
+
+ "github.com/fjl/goupnp"
+ "github.com/fjl/goupnp/scpd"
+ "github.com/huin/goutil/codegen"
+ "github.com/jingweno/gotask/tasking"
+)
+
+var (
+ deviceURNPrefix = "urn:schemas-upnp-org:device:"
+ serviceURNPrefix = "urn:schemas-upnp-org:service:"
+)
+
+// NAME
+// specgen - generates Go code from the UPnP specification files.
+//
+// DESCRIPTION
+// The specification is available for download from:
+//
+// OPTIONS
+// -s, --spec_filename=<upnpresources.zip>
+// Path to the specification file, available from http://upnp.org/resources/upnpresources.zip
+// -o, --out_dir=<output directory>
+// Path to the output directory. This is is where the DCP source files will be placed. Should normally correspond to the directory for github.com/fjl/goupnp/dcps
+// --nogofmt
+// Disable passing the output through gofmt. Do this if debugging code output problems and needing to see the generated code prior to being passed through gofmt.
+func TaskSpecgen(t *tasking.T) {
+ specFilename := t.Flags.String("spec-filename")
+ if specFilename == "" {
+ specFilename = t.Flags.String("s")
+ }
+ if specFilename == "" {
+ t.Fatal("--spec_filename is required")
+ }
+ outDir := t.Flags.String("out-dir")
+ if outDir == "" {
+ outDir = t.Flags.String("o")
+ }
+ if outDir == "" {
+ log.Fatal("--out_dir is required")
+ }
+ useGofmt := !t.Flags.Bool("nogofmt")
+
+ specArchive, err := openZipfile(specFilename)
+ if err != nil {
+ t.Fatalf("Error opening spec file: %v", err)
+ }
+ defer specArchive.Close()
+
+ dcpCol := newDcpsCollection()
+ for _, f := range globFiles("standardizeddcps/*/*.zip", specArchive.Reader) {
+ dirName := strings.TrimPrefix(f.Name, "standardizeddcps/")
+ slashIndex := strings.Index(dirName, "/")
+ if slashIndex == -1 {
+ // Should not happen.
+ t.Logf("Could not find / in %q", dirName)
+ return
+ }
+ dirName = dirName[:slashIndex]
+
+ dcp := dcpCol.dcpForDir(dirName)
+ if dcp == nil {
+ t.Logf("No alias defined for directory %q: skipping %s\n", dirName, f.Name)
+ continue
+ } else {
+ t.Logf("Alias found for directory %q: processing %s\n", dirName, f.Name)
+ }
+
+ dcp.processZipFile(f)
+ }
+
+ for _, dcp := range dcpCol.dcpByAlias {
+ if err := dcp.writePackage(outDir, useGofmt); err != nil {
+ log.Printf("Error writing package %q: %v", dcp.Metadata.Name, err)
+ }
+ }
+}
+
+// DCP contains extra metadata to use when generating DCP source files.
+type DCPMetadata struct {
+ Name string // What to name the Go DCP package.
+ OfficialName string // Official name for the DCP.
+ DocURL string // Optional - URL for futher documentation about the DCP.
+}
+
+var dcpMetadataByDir = map[string]DCPMetadata{
+ "Internet Gateway_1": {
+ Name: "internetgateway1",
+ OfficialName: "Internet Gateway Device v1",
+ DocURL: "http://upnp.org/specs/gw/UPnP-gw-InternetGatewayDevice-v1-Device.pdf",
+ },
+ "Internet Gateway_2": {
+ Name: "internetgateway2",
+ OfficialName: "Internet Gateway Device v2",
+ DocURL: "http://upnp.org/specs/gw/UPnP-gw-InternetGatewayDevice-v2-Device.pdf",
+ },
+}
+
+type dcpCollection struct {
+ dcpByAlias map[string]*DCP
+}
+
+func newDcpsCollection() *dcpCollection {
+ c := &dcpCollection{
+ dcpByAlias: make(map[string]*DCP),
+ }
+ for _, metadata := range dcpMetadataByDir {
+ c.dcpByAlias[metadata.Name] = newDCP(metadata)
+ }
+ return c
+}
+
+func (c *dcpCollection) dcpForDir(dirName string) *DCP {
+ metadata, ok := dcpMetadataByDir[dirName]
+ if !ok {
+ return nil
+ }
+ return c.dcpByAlias[metadata.Name]
+}
+
+// DCP collects together information about a UPnP Device Control Protocol.
+type DCP struct {
+ Metadata DCPMetadata
+ DeviceTypes map[string]*URNParts
+ ServiceTypes map[string]*URNParts
+ Services []SCPDWithURN
+}
+
+func newDCP(metadata DCPMetadata) *DCP {
+ return &DCP{
+ Metadata: metadata,
+ DeviceTypes: make(map[string]*URNParts),
+ ServiceTypes: make(map[string]*URNParts),
+ }
+}
+
+func (dcp *DCP) processZipFile(file *zip.File) {
+ archive, err := openChildZip(file)
+ if err != nil {
+ log.Println("Error reading child zip file:", err)
+ return
+ }
+ for _, deviceFile := range globFiles("*/device/*.xml", archive) {
+ dcp.processDeviceFile(deviceFile)
+ }
+ for _, scpdFile := range globFiles("*/service/*.xml", archive) {
+ dcp.processSCPDFile(scpdFile)
+ }
+}
+
+func (dcp *DCP) processDeviceFile(file *zip.File) {
+ var device goupnp.Device
+ if err := unmarshalXmlFile(file, &device); err != nil {
+ log.Printf("Error decoding device XML from file %q: %v", file.Name, err)
+ return
+ }
+ device.VisitDevices(func(d *goupnp.Device) {
+ t := strings.TrimSpace(d.DeviceType)
+ if t != "" {
+ u, err := extractURNParts(t, deviceURNPrefix)
+ if err != nil {
+ log.Println(err)
+ return
+ }
+ dcp.DeviceTypes[t] = u
+ }
+ })
+ device.VisitServices(func(s *goupnp.Service) {
+ u, err := extractURNParts(s.ServiceType, serviceURNPrefix)
+ if err != nil {
+ log.Println(err)
+ return
+ }
+ dcp.ServiceTypes[s.ServiceType] = u
+ })
+}
+
+func (dcp *DCP) writePackage(outDir string, useGofmt bool) error {
+ packageDirname := filepath.Join(outDir, dcp.Metadata.Name)
+ err := os.MkdirAll(packageDirname, os.ModePerm)
+ if err != nil && !os.IsExist(err) {
+ return err
+ }
+ packageFilename := filepath.Join(packageDirname, dcp.Metadata.Name+".go")
+ packageFile, err := os.Create(packageFilename)
+ if err != nil {
+ return err
+ }
+ var output io.WriteCloser = packageFile
+ if useGofmt {
+ if output, err = codegen.NewGofmtWriteCloser(output); err != nil {
+ packageFile.Close()
+ return err
+ }
+ }
+ if err = packageTmpl.Execute(output, dcp); err != nil {
+ output.Close()
+ return err
+ }
+ return output.Close()
+}
+
+func (dcp *DCP) processSCPDFile(file *zip.File) {
+ scpd := new(scpd.SCPD)
+ if err := unmarshalXmlFile(file, scpd); err != nil {
+ log.Printf("Error decoding SCPD XML from file %q: %v", file.Name, err)
+ return
+ }
+ scpd.Clean()
+ urnParts, err := urnPartsFromSCPDFilename(file.Name)
+ if err != nil {
+ log.Printf("Could not recognize SCPD filename %q: %v", file.Name, err)
+ return
+ }
+ dcp.Services = append(dcp.Services, SCPDWithURN{
+ URNParts: urnParts,
+ SCPD: scpd,
+ })
+}
+
+type SCPDWithURN struct {
+ *URNParts
+ SCPD *scpd.SCPD
+}
+
+func (s *SCPDWithURN) WrapArgument(arg scpd.Argument) (*argumentWrapper, error) {
+ relVar := s.SCPD.GetStateVariable(arg.RelatedStateVariable)
+ if relVar == nil {
+ return nil, fmt.Errorf("no such state variable: %q, for argument %q", arg.RelatedStateVariable, arg.Name)
+ }
+ cnv, ok := typeConvs[relVar.DataType.Name]
+ if !ok {
+ return nil, fmt.Errorf("unknown data type: %q, for state variable %q, for argument %q", relVar.DataType.Type, arg.RelatedStateVariable, arg.Name)
+ }
+ return &argumentWrapper{
+ Argument: arg,
+ relVar: relVar,
+ conv: cnv,
+ }, nil
+}
+
+type argumentWrapper struct {
+ scpd.Argument
+ relVar *scpd.StateVariable
+ conv conv
+}
+
+func (arg *argumentWrapper) AsParameter() string {
+ return fmt.Sprintf("%s %s", arg.Name, arg.conv.ExtType)
+}
+
+func (arg *argumentWrapper) Document() string {
+ relVar := arg.relVar
+ if rng := relVar.AllowedValueRange; rng != nil {
+ var parts []string
+ if rng.Minimum != "" {
+ parts = append(parts, fmt.Sprintf("minimum=%s", rng.Minimum))
+ }
+ if rng.Maximum != "" {
+ parts = append(parts, fmt.Sprintf("maximum=%s", rng.Maximum))
+ }
+ if rng.Step != "" {
+ parts = append(parts, fmt.Sprintf("step=%s", rng.Step))
+ }
+ return "allowed value range: " + strings.Join(parts, ", ")
+ }
+ if len(relVar.AllowedValues) != 0 {
+ return "allowed values: " + strings.Join(relVar.AllowedValues, ", ")
+ }
+ return ""
+}
+
+func (arg *argumentWrapper) Marshal() string {
+ return fmt.Sprintf("soap.Marshal%s(%s)", arg.conv.FuncSuffix, arg.Name)
+}
+
+func (arg *argumentWrapper) Unmarshal(objVar string) string {
+ return fmt.Sprintf("soap.Unmarshal%s(%s.%s)", arg.conv.FuncSuffix, objVar, arg.Name)
+}
+
+type conv struct {
+ FuncSuffix string
+ ExtType string
+}
+
+// typeConvs maps from a SOAP type (e.g "fixed.14.4") to the function name
+// suffix inside the soap module (e.g "Fixed14_4") and the Go type.
+var typeConvs = map[string]conv{
+ "ui1": conv{"Ui1", "uint8"},
+ "ui2": conv{"Ui2", "uint16"},
+ "ui4": conv{"Ui4", "uint32"},
+ "i1": conv{"I1", "int8"},
+ "i2": conv{"I2", "int16"},
+ "i4": conv{"I4", "int32"},
+ "int": conv{"Int", "int64"},
+ "r4": conv{"R4", "float32"},
+ "r8": conv{"R8", "float64"},
+ "number": conv{"R8", "float64"}, // Alias for r8.
+ "fixed.14.4": conv{"Fixed14_4", "float64"},
+ "float": conv{"R8", "float64"},
+ "char": conv{"Char", "rune"},
+ "string": conv{"String", "string"},
+ "date": conv{"Date", "time.Time"},
+ "dateTime": conv{"DateTime", "time.Time"},
+ "dateTime.tz": conv{"DateTimeTz", "time.Time"},
+ "time": conv{"TimeOfDay", "soap.TimeOfDay"},
+ "time.tz": conv{"TimeOfDayTz", "soap.TimeOfDay"},
+ "boolean": conv{"Boolean", "bool"},
+ "bin.base64": conv{"BinBase64", "[]byte"},
+ "bin.hex": conv{"BinHex", "[]byte"},
+}
+
+type closeableZipReader struct {
+ io.Closer
+ *zip.Reader
+}
+
+func openZipfile(filename string) (*closeableZipReader, error) {
+ file, err := os.Open(filename)
+ if err != nil {
+ return nil, err
+ }
+ fi, err := file.Stat()
+ if err != nil {
+ return nil, err
+ }
+ archive, err := zip.NewReader(file, fi.Size())
+ if err != nil {
+ return nil, err
+ }
+ return &closeableZipReader{
+ Closer: file,
+ Reader: archive,
+ }, nil
+}
+
+// openChildZip opens a zip file within another zip file.
+func openChildZip(file *zip.File) (*zip.Reader, error) {
+ zipFile, err := file.Open()
+ if err != nil {
+ return nil, err
+ }
+ defer zipFile.Close()
+
+ zipBytes, err := ioutil.ReadAll(zipFile)
+ if err != nil {
+ return nil, err
+ }
+
+ return zip.NewReader(bytes.NewReader(zipBytes), int64(len(zipBytes)))
+}
+
+func globFiles(pattern string, archive *zip.Reader) []*zip.File {
+ var files []*zip.File
+ for _, f := range archive.File {
+ if matched, err := path.Match(pattern, f.Name); err != nil {
+ // This shouldn't happen - all patterns are hard-coded, errors in them
+ // are a programming error.
+ panic(err)
+ } else if matched {
+ files = append(files, f)
+ }
+ }
+ return files
+}
+
+func unmarshalXmlFile(file *zip.File, data interface{}) error {
+ r, err := file.Open()
+ if err != nil {
+ return err
+ }
+ decoder := xml.NewDecoder(r)
+ r.Close()
+ return decoder.Decode(data)
+}
+
+type URNParts struct {
+ URN string
+ Name string
+ Version string
+}
+
+func (u *URNParts) Const() string {
+ return fmt.Sprintf("URN_%s_%s", u.Name, u.Version)
+}
+
+// extractURNParts extracts the name and version from a URN string.
+func extractURNParts(urn, expectedPrefix string) (*URNParts, error) {
+ if !strings.HasPrefix(urn, expectedPrefix) {
+ return nil, fmt.Errorf("%q does not have expected prefix %q", urn, expectedPrefix)
+ }
+ parts := strings.SplitN(strings.TrimPrefix(urn, expectedPrefix), ":", 2)
+ if len(parts) != 2 {
+ return nil, fmt.Errorf("%q does not have a name and version", urn)
+ }
+ name, version := parts[0], parts[1]
+ return &URNParts{urn, name, version}, nil
+}
+
+var scpdFilenameRe = regexp.MustCompile(
+ `.*/([a-zA-Z0-9]+)([0-9]+)\.xml`)
+
+func urnPartsFromSCPDFilename(filename string) (*URNParts, error) {
+ parts := scpdFilenameRe.FindStringSubmatch(filename)
+ if len(parts) != 3 {
+ return nil, fmt.Errorf("SCPD filename %q does not have expected number of parts", filename)
+ }
+ name, version := parts[1], parts[2]
+ return &URNParts{
+ URN: serviceURNPrefix + name + ":" + version,
+ Name: name,
+ Version: version,
+ }, nil
+}
+
+var packageTmpl = template.Must(template.New("package").Parse(`{{$name := .Metadata.Name}}
+// Client for UPnP Device Control Protocol {{.Metadata.OfficialName}}.
+// {{if .Metadata.DocURL}}
+// This DCP is documented in detail at: {{.Metadata.DocURL}}{{end}}
+//
+// Typically, use one of the New* functions to discover services on the local
+// network.
+package {{$name}}
+
+// Generated file - do not edit by hand. See README.md
+
+
+import (
+ "time"
+
+ "github.com/fjl/goupnp"
+ "github.com/fjl/goupnp/soap"
+)
+
+// Hack to avoid Go complaining if time isn't used.
+var _ time.Time
+
+// Device URNs:
+const ({{range .DeviceTypes}}
+ {{.Const}} = "{{.URN}}"{{end}}
+)
+
+// Service URNs:
+const ({{range .ServiceTypes}}
+ {{.Const}} = "{{.URN}}"{{end}}
+)
+
+{{range .Services}}
+{{$srv := .}}
+{{$srvIdent := printf "%s%s" .Name .Version}}
+
+// {{$srvIdent}} is a client for UPnP SOAP service with URN "{{.URN}}". See
+// goupnp.ServiceClient, which contains RootDevice and Service attributes which
+// are provided for informational value.
+type {{$srvIdent}} struct {
+ goupnp.ServiceClient
+}
+
+// New{{$srvIdent}}Clients discovers instances of the service on the network,
+// and returns clients to any that are found. errors will contain an error for
+// any devices that replied but which could not be queried, and err will be set
+// if the discovery process failed outright.
+//
+// This is a typical entry calling point into this package.
+func New{{$srvIdent}}Clients() (clients []*{{$srvIdent}}, errors []error, err error) {
+ var genericClients []goupnp.ServiceClient
+ if genericClients, errors, err = goupnp.NewServiceClients({{$srv.Const}}); err != nil {
+ return
+ }
+ clients = make([]*{{$srvIdent}}, len(genericClients))
+ for i := range genericClients {
+ clients[i] = &{{$srvIdent}}{genericClients[i]}
+ }
+ return
+}
+
+{{range .SCPD.Actions}}{{/* loops over *SCPDWithURN values */}}
+
+{{$inargs := .InputArguments}}{{$outargs := .OutputArguments}}
+// {{if $inargs}}Arguments:{{range $inargs}}{{$argWrap := $srv.WrapArgument .}}
+//
+// * {{.Name}}: {{$argWrap.Document}}{{end}}{{end}}
+//
+// {{if $outargs}}Return values:{{range $outargs}}{{$argWrap := $srv.WrapArgument .}}
+//
+// * {{.Name}}: {{$argWrap.Document}}{{end}}{{end}}
+func (client *{{$srvIdent}}) {{.Name}}({{range $inargs}}{{/*
+*/}}{{$argWrap := $srv.WrapArgument .}}{{$argWrap.AsParameter}}, {{end}}{{/*
+*/}}) ({{range $outargs}}{{/*
+*/}}{{$argWrap := $srv.WrapArgument .}}{{$argWrap.AsParameter}}, {{end}} err error) {
+ // Request structure.
+ request := {{if $inargs}}&{{template "argstruct" $inargs}}{{"{}"}}{{else}}{{"interface{}(nil)"}}{{end}}
+ // BEGIN Marshal arguments into request.
+{{range $inargs}}{{$argWrap := $srv.WrapArgument .}}
+ if request.{{.Name}}, err = {{$argWrap.Marshal}}; err != nil {
+ return
+ }{{end}}
+ // END Marshal arguments into request.
+
+ // Response structure.
+ response := {{if $outargs}}&{{template "argstruct" $outargs}}{{"{}"}}{{else}}{{"interface{}(nil)"}}{{end}}
+
+ // Perform the SOAP call.
+ if err = client.SOAPClient.PerformAction({{$srv.URNParts.Const}}, "{{.Name}}", request, response); err != nil {
+ return
+ }
+
+ // BEGIN Unmarshal arguments from response.
+{{range $outargs}}{{$argWrap := $srv.WrapArgument .}}
+ if {{.Name}}, err = {{$argWrap.Unmarshal "response"}}; err != nil {
+ return
+ }{{end}}
+ // END Unmarshal arguments from response.
+ return
+}
+{{end}}{{/* range .SCPD.Actions */}}
+{{end}}{{/* range .Services */}}
+
+{{define "argstruct"}}struct {{"{"}}{{range .}}
+{{.Name}} string
+{{end}}{{"}"}}{{end}}
+`))
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/goupnp.go b/Godeps/_workspace/src/github.com/fjl/goupnp/goupnp.go
new file mode 100644
index 000000000..c962fbc57
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/goupnp.go
@@ -0,0 +1,109 @@
+// goupnp is an implementation of a client for various UPnP services.
+//
+// For most uses, it is recommended to use the code-generated packages under
+// github.com/fjl/goupnp/dcps. Example use is shown at
+// http://godoc.org/github.com/fjl/goupnp/example
+//
+// A commonly used client is internetgateway1.WANPPPConnection1:
+// http://godoc.org/github.com/fjl/goupnp/dcps/internetgateway1#WANPPPConnection1
+//
+// Currently only a couple of schemas have code generated for them from the
+// UPnP example XML specifications. Not all methods will work on these clients,
+// because the generated stubs contain the full set of specified methods from
+// the XML specifications, and the discovered services will likely support a
+// subset of those methods.
+package goupnp
+
+import (
+ "encoding/xml"
+ "fmt"
+ "net/http"
+ "net/url"
+
+ "github.com/fjl/goupnp/httpu"
+ "github.com/fjl/goupnp/ssdp"
+)
+
+// ContextError is an error that wraps an error with some context information.
+type ContextError struct {
+ Context string
+ Err error
+}
+
+func (err ContextError) Error() string {
+ return fmt.Sprintf("%s: %v", err.Context, err.Err)
+}
+
+// MaybeRootDevice contains either a RootDevice or an error.
+type MaybeRootDevice struct {
+ Root *RootDevice
+ Err error
+}
+
+// DiscoverDevices attempts to find targets of the given type. This is
+// typically the entry-point for this package. searchTarget is typically a URN
+// in the form "urn:schemas-upnp-org:device:..." or
+// "urn:schemas-upnp-org:service:...". A single error is returned for errors
+// while attempting to send the query. An error or RootDevice is returned for
+// each discovered RootDevice.
+func DiscoverDevices(searchTarget string) ([]MaybeRootDevice, error) {
+ httpu, err := httpu.NewHTTPUClient()
+ if err != nil {
+ return nil, err
+ }
+ defer httpu.Close()
+ responses, err := ssdp.SSDPRawSearch(httpu, string(searchTarget), 2, 3)
+ if err != nil {
+ return nil, err
+ }
+
+ results := make([]MaybeRootDevice, len(responses))
+ for i, response := range responses {
+ maybe := &results[i]
+ loc, err := response.Location()
+ if err != nil {
+
+ maybe.Err = ContextError{"unexpected bad location from search", err}
+ continue
+ }
+ locStr := loc.String()
+ root := new(RootDevice)
+ if err := requestXml(locStr, DeviceXMLNamespace, root); err != nil {
+ maybe.Err = ContextError{fmt.Sprintf("error requesting root device details from %q", locStr), err}
+ continue
+ }
+ var urlBaseStr string
+ if root.URLBaseStr != "" {
+ urlBaseStr = root.URLBaseStr
+ } else {
+ urlBaseStr = locStr
+ }
+ urlBase, err := url.Parse(urlBaseStr)
+ if err != nil {
+ maybe.Err = ContextError{fmt.Sprintf("error parsing location URL %q", locStr), err}
+ continue
+ }
+ root.SetURLBase(urlBase)
+ maybe.Root = root
+ }
+
+ return results, nil
+}
+
+func requestXml(url string, defaultSpace string, doc interface{}) error {
+ resp, err := http.Get(url)
+ if err != nil {
+ return err
+ }
+ defer resp.Body.Close()
+
+ if resp.StatusCode != 200 {
+ return fmt.Errorf("goupnp: got response status %s from %q",
+ resp.Status, url)
+ }
+
+ decoder := xml.NewDecoder(resp.Body)
+ decoder.DefaultSpace = defaultSpace
+
+ return decoder.Decode(doc)
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/httpu/httpu.go b/Godeps/_workspace/src/github.com/fjl/goupnp/httpu/httpu.go
new file mode 100644
index 000000000..862c3def4
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/httpu/httpu.go
@@ -0,0 +1,117 @@
+package httpu
+
+import (
+ "bufio"
+ "bytes"
+ "fmt"
+ "log"
+ "net"
+ "net/http"
+ "sync"
+ "time"
+)
+
+// HTTPUClient is a client for dealing with HTTPU (HTTP over UDP). Its typical
+// function is for HTTPMU, and particularly SSDP.
+type HTTPUClient struct {
+ connLock sync.Mutex // Protects use of conn.
+ conn net.PacketConn
+}
+
+// NewHTTPUClient creates a new HTTPUClient, opening up a new UDP socket for the
+// purpose.
+func NewHTTPUClient() (*HTTPUClient, error) {
+ conn, err := net.ListenPacket("udp", ":0")
+ if err != nil {
+ return nil, err
+ }
+ return &HTTPUClient{conn: conn}, nil
+}
+
+// Close shuts down the client. The client will no longer be useful following
+// this.
+func (httpu *HTTPUClient) Close() error {
+ httpu.connLock.Lock()
+ defer httpu.connLock.Unlock()
+ return httpu.conn.Close()
+}
+
+// Do performs a request. The timeout is how long to wait for before returning
+// the responses that were received. An error is only returned for failing to
+// send the request. Failures in receipt simply do not add to the resulting
+// responses.
+//
+// Note that at present only one concurrent connection will happen per
+// HTTPUClient.
+func (httpu *HTTPUClient) Do(req *http.Request, timeout time.Duration, numSends int) ([]*http.Response, error) {
+ httpu.connLock.Lock()
+ defer httpu.connLock.Unlock()
+
+ // Create the request. This is a subset of what http.Request.Write does
+ // deliberately to avoid creating extra fields which may confuse some
+ // devices.
+ var requestBuf bytes.Buffer
+ method := req.Method
+ if method == "" {
+ method = "GET"
+ }
+ if _, err := fmt.Fprintf(&requestBuf, "%s %s HTTP/1.1\r\n", method, req.URL.RequestURI()); err != nil {
+ return nil, err
+ }
+ if err := req.Header.Write(&requestBuf); err != nil {
+ return nil, err
+ }
+ if _, err := requestBuf.Write([]byte{'\r', '\n'}); err != nil {
+ return nil, err
+ }
+
+ destAddr, err := net.ResolveUDPAddr("udp", req.Host)
+ if err != nil {
+ return nil, err
+ }
+ if err = httpu.conn.SetDeadline(time.Now().Add(timeout)); err != nil {
+ return nil, err
+ }
+
+ // Send request.
+ for i := 0; i < numSends; i++ {
+ if n, err := httpu.conn.WriteTo(requestBuf.Bytes(), destAddr); err != nil {
+ return nil, err
+ } else if n < len(requestBuf.Bytes()) {
+ return nil, fmt.Errorf("httpu: wrote %d bytes rather than full %d in request",
+ n, len(requestBuf.Bytes()))
+ }
+ time.Sleep(5 * time.Millisecond)
+ }
+
+ // Await responses until timeout.
+ var responses []*http.Response
+ responseBytes := make([]byte, 2048)
+ for {
+ // 2048 bytes should be sufficient for most networks.
+ n, _, err := httpu.conn.ReadFrom(responseBytes)
+ if err != nil {
+ if err, ok := err.(net.Error); ok {
+ if err.Timeout() {
+ break
+ }
+ if err.Temporary() {
+ // Sleep in case this is a persistent error to avoid pegging CPU until deadline.
+ time.Sleep(10 * time.Millisecond)
+ continue
+ }
+ }
+ return nil, err
+ }
+
+ // Parse response.
+ response, err := http.ReadResponse(bufio.NewReader(bytes.NewBuffer(responseBytes[:n])), req)
+ if err != nil {
+ log.Print("httpu: error while parsing response: %v", err)
+ continue
+ }
+
+ responses = append(responses, response)
+ }
+ return responses, err
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/httpu/serve.go b/Godeps/_workspace/src/github.com/fjl/goupnp/httpu/serve.go
new file mode 100644
index 000000000..9f67af85b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/httpu/serve.go
@@ -0,0 +1,108 @@
+package httpu
+
+import (
+ "bufio"
+ "bytes"
+ "log"
+ "net"
+ "net/http"
+ "regexp"
+)
+
+const (
+ DefaultMaxMessageBytes = 2048
+)
+
+var (
+ trailingWhitespaceRx = regexp.MustCompile(" +\r\n")
+ crlf = []byte("\r\n")
+)
+
+// Handler is the interface by which received HTTPU messages are passed to
+// handling code.
+type Handler interface {
+ // ServeMessage is called for each HTTPU message received. peerAddr contains
+ // the address that the message was received from.
+ ServeMessage(r *http.Request)
+}
+
+// HandlerFunc is a function-to-Handler adapter.
+type HandlerFunc func(r *http.Request)
+
+func (f HandlerFunc) ServeMessage(r *http.Request) {
+ f(r)
+}
+
+// A Server defines parameters for running an HTTPU server.
+type Server struct {
+ Addr string // UDP address to listen on
+ Multicast bool // Should listen for multicast?
+ Interface *net.Interface // Network interface to listen on for multicast, nil for default multicast interface
+ Handler Handler // handler to invoke
+ MaxMessageBytes int // maximum number of bytes to read from a packet, DefaultMaxMessageBytes if 0
+}
+
+// ListenAndServe listens on the UDP network address srv.Addr. If srv.Multicast
+// is true, then a multicast UDP listener will be used on srv.Interface (or
+// default interface if nil).
+func (srv *Server) ListenAndServe() error {
+ var err error
+
+ var addr *net.UDPAddr
+ if addr, err = net.ResolveUDPAddr("udp", srv.Addr); err != nil {
+ log.Fatal(err)
+ }
+
+ var conn net.PacketConn
+ if srv.Multicast {
+ if conn, err = net.ListenMulticastUDP("udp", srv.Interface, addr); err != nil {
+ return err
+ }
+ } else {
+ if conn, err = net.ListenUDP("udp", addr); err != nil {
+ return err
+ }
+ }
+
+ return srv.Serve(conn)
+}
+
+// Serve messages received on the given packet listener to the srv.Handler.
+func (srv *Server) Serve(l net.PacketConn) error {
+ maxMessageBytes := DefaultMaxMessageBytes
+ if srv.MaxMessageBytes != 0 {
+ maxMessageBytes = srv.MaxMessageBytes
+ }
+ for {
+ buf := make([]byte, maxMessageBytes)
+ n, peerAddr, err := l.ReadFrom(buf)
+ if err != nil {
+ return err
+ }
+ buf = buf[:n]
+
+ go func(buf []byte, peerAddr net.Addr) {
+ // At least one router's UPnP implementation has added a trailing space
+ // after "HTTP/1.1" - trim it.
+ buf = trailingWhitespaceRx.ReplaceAllLiteral(buf, crlf)
+
+ req, err := http.ReadRequest(bufio.NewReader(bytes.NewBuffer(buf)))
+ if err != nil {
+ log.Printf("httpu: Failed to parse request: %v", err)
+ return
+ }
+ req.RemoteAddr = peerAddr.String()
+ srv.Handler.ServeMessage(req)
+ // No need to call req.Body.Close - underlying reader is bytes.Buffer.
+ }(buf, peerAddr)
+ }
+}
+
+// Serve messages received on the given packet listener to the given handler.
+func Serve(l net.PacketConn, handler Handler) error {
+ srv := Server{
+ Handler: handler,
+ MaxMessageBytes: DefaultMaxMessageBytes,
+ }
+ return srv.Serve(l)
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/scpd/scpd.go b/Godeps/_workspace/src/github.com/fjl/goupnp/scpd/scpd.go
new file mode 100644
index 000000000..c9d2e69e8
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/scpd/scpd.go
@@ -0,0 +1,167 @@
+package scpd
+
+import (
+ "encoding/xml"
+ "strings"
+)
+
+const (
+ SCPDXMLNamespace = "urn:schemas-upnp-org:service-1-0"
+)
+
+func cleanWhitespace(s *string) {
+ *s = strings.TrimSpace(*s)
+}
+
+// SCPD is the service description as described by section 2.5 "Service
+// description" in
+// http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf
+type SCPD struct {
+ XMLName xml.Name `xml:"scpd"`
+ ConfigId string `xml:"configId,attr"`
+ SpecVersion SpecVersion `xml:"specVersion"`
+ Actions []Action `xml:"actionList>action"`
+ StateVariables []StateVariable `xml:"serviceStateTable>stateVariable"`
+}
+
+// Clean attempts to remove stray whitespace etc. in the structure. It seems
+// unfortunately common for stray whitespace to be present in SCPD documents,
+// this method attempts to make it easy to clean them out.
+func (scpd *SCPD) Clean() {
+ cleanWhitespace(&scpd.ConfigId)
+ for i := range scpd.Actions {
+ scpd.Actions[i].clean()
+ }
+ for i := range scpd.StateVariables {
+ scpd.StateVariables[i].clean()
+ }
+}
+
+func (scpd *SCPD) GetStateVariable(variable string) *StateVariable {
+ for i := range scpd.StateVariables {
+ v := &scpd.StateVariables[i]
+ if v.Name == variable {
+ return v
+ }
+ }
+ return nil
+}
+
+func (scpd *SCPD) GetAction(action string) *Action {
+ for i := range scpd.Actions {
+ a := &scpd.Actions[i]
+ if a.Name == action {
+ return a
+ }
+ }
+ return nil
+}
+
+// SpecVersion is part of a SCPD document, describes the version of the
+// specification that the data adheres to.
+type SpecVersion struct {
+ Major int32 `xml:"major"`
+ Minor int32 `xml:"minor"`
+}
+
+type Action struct {
+ Name string `xml:"name"`
+ Arguments []Argument `xml:"argumentList>argument"`
+}
+
+func (action *Action) clean() {
+ cleanWhitespace(&action.Name)
+ for i := range action.Arguments {
+ action.Arguments[i].clean()
+ }
+}
+
+func (action *Action) InputArguments() []*Argument {
+ var result []*Argument
+ for i := range action.Arguments {
+ arg := &action.Arguments[i]
+ if arg.IsInput() {
+ result = append(result, arg)
+ }
+ }
+ return result
+}
+
+func (action *Action) OutputArguments() []*Argument {
+ var result []*Argument
+ for i := range action.Arguments {
+ arg := &action.Arguments[i]
+ if arg.IsOutput() {
+ result = append(result, arg)
+ }
+ }
+ return result
+}
+
+type Argument struct {
+ Name string `xml:"name"`
+ Direction string `xml:"direction"` // in|out
+ RelatedStateVariable string `xml:"relatedStateVariable"` // ?
+ Retval string `xml:"retval"` // ?
+}
+
+func (arg *Argument) clean() {
+ cleanWhitespace(&arg.Name)
+ cleanWhitespace(&arg.Direction)
+ cleanWhitespace(&arg.RelatedStateVariable)
+ cleanWhitespace(&arg.Retval)
+}
+
+func (arg *Argument) IsInput() bool {
+ return arg.Direction == "in"
+}
+
+func (arg *Argument) IsOutput() bool {
+ return arg.Direction == "out"
+}
+
+type StateVariable struct {
+ Name string `xml:"name"`
+ SendEvents string `xml:"sendEvents,attr"` // yes|no
+ Multicast string `xml:"multicast,attr"` // yes|no
+ DataType DataType `xml:"dataType"`
+ DefaultValue string `xml:"defaultValue"`
+ AllowedValueRange *AllowedValueRange `xml:"allowedValueRange"`
+ AllowedValues []string `xml:"allowedValueList>allowedValue"`
+}
+
+func (v *StateVariable) clean() {
+ cleanWhitespace(&v.Name)
+ cleanWhitespace(&v.SendEvents)
+ cleanWhitespace(&v.Multicast)
+ v.DataType.clean()
+ cleanWhitespace(&v.DefaultValue)
+ if v.AllowedValueRange != nil {
+ v.AllowedValueRange.clean()
+ }
+ for i := range v.AllowedValues {
+ cleanWhitespace(&v.AllowedValues[i])
+ }
+}
+
+type AllowedValueRange struct {
+ Minimum string `xml:"minimum"`
+ Maximum string `xml:"maximum"`
+ Step string `xml:"step"`
+}
+
+func (r *AllowedValueRange) clean() {
+ cleanWhitespace(&r.Minimum)
+ cleanWhitespace(&r.Maximum)
+ cleanWhitespace(&r.Step)
+}
+
+type DataType struct {
+ Name string `xml:",chardata"`
+ Type string `xml:"type,attr"`
+}
+
+func (dt *DataType) clean() {
+ cleanWhitespace(&dt.Name)
+ cleanWhitespace(&dt.Type)
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/service_client.go b/Godeps/_workspace/src/github.com/fjl/goupnp/service_client.go
new file mode 100644
index 000000000..258b7593b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/service_client.go
@@ -0,0 +1,57 @@
+package goupnp
+
+import (
+ "fmt"
+
+ "github.com/fjl/goupnp/soap"
+)
+
+// ServiceClient is a SOAP client, root device and the service for the SOAP
+// client rolled into one value. The root device and service are intended to be
+// informational.
+type ServiceClient struct {
+ SOAPClient *soap.SOAPClient
+ RootDevice *RootDevice
+ Service *Service
+}
+
+func NewServiceClients(searchTarget string) (clients []ServiceClient, errors []error, err error) {
+ var maybeRootDevices []MaybeRootDevice
+ if maybeRootDevices, err = DiscoverDevices(searchTarget); err != nil {
+ return
+ }
+
+ clients = make([]ServiceClient, 0, len(maybeRootDevices))
+
+ for _, maybeRootDevice := range maybeRootDevices {
+ if maybeRootDevice.Err != nil {
+ errors = append(errors, maybeRootDevice.Err)
+ continue
+ }
+
+ device := &maybeRootDevice.Root.Device
+ srvs := device.FindService(searchTarget)
+ if len(srvs) == 0 {
+ errors = append(errors, fmt.Errorf("goupnp: service %q not found within device %q (UDN=%q)",
+ searchTarget, device.FriendlyName, device.UDN))
+ continue
+ }
+
+ for _, srv := range srvs {
+ clients = append(clients, ServiceClient{
+ SOAPClient: srv.NewSOAPClient(),
+ RootDevice: maybeRootDevice.Root,
+ Service: srv,
+ })
+ }
+ }
+
+ return
+}
+
+// GetServiceClient returns the ServiceClient itself. This is provided so that the
+// service client attributes can be accessed via an interface method on a
+// wrapping type.
+func (client *ServiceClient) GetServiceClient() *ServiceClient {
+ return client
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/soap/soap.go b/Godeps/_workspace/src/github.com/fjl/goupnp/soap/soap.go
new file mode 100644
index 000000000..815610734
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/soap/soap.go
@@ -0,0 +1,157 @@
+// Definition for the SOAP structure required for UPnP's SOAP usage.
+
+package soap
+
+import (
+ "bytes"
+ "encoding/xml"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+ "net/url"
+ "reflect"
+)
+
+const (
+ soapEncodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"
+ soapPrefix = xml.Header + `<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body>`
+ soapSuffix = `</s:Body></s:Envelope>`
+)
+
+type SOAPClient struct {
+ EndpointURL url.URL
+ HTTPClient http.Client
+}
+
+func NewSOAPClient(endpointURL url.URL) *SOAPClient {
+ return &SOAPClient{
+ EndpointURL: endpointURL,
+ }
+}
+
+// PerformSOAPAction makes a SOAP request, with the given action.
+// inAction and outAction must both be pointers to structs with string fields
+// only.
+func (client *SOAPClient) PerformAction(actionNamespace, actionName string, inAction interface{}, outAction interface{}) error {
+ requestBytes, err := encodeRequestAction(actionNamespace, actionName, inAction)
+ if err != nil {
+ return err
+ }
+
+ response, err := client.HTTPClient.Do(&http.Request{
+ Method: "POST",
+ URL: &client.EndpointURL,
+ Header: http.Header{
+ "SOAPACTION": []string{`"` + actionNamespace + "#" + actionName + `"`},
+ "CONTENT-TYPE": []string{"text/xml; charset=\"utf-8\""},
+ },
+ Body: ioutil.NopCloser(bytes.NewBuffer(requestBytes)),
+ // Set ContentLength to avoid chunked encoding - some servers might not support it.
+ ContentLength: int64(len(requestBytes)),
+ })
+ if err != nil {
+ return fmt.Errorf("goupnp: error performing SOAP HTTP request: %v", err)
+ }
+ defer response.Body.Close()
+ if response.StatusCode != 200 {
+ return fmt.Errorf("goupnp: SOAP request got HTTP %s", response.Status)
+ }
+
+ responseEnv := newSOAPEnvelope()
+ decoder := xml.NewDecoder(response.Body)
+ if err := decoder.Decode(responseEnv); err != nil {
+ return fmt.Errorf("goupnp: error decoding response body: %v", err)
+ }
+
+ if responseEnv.Body.Fault != nil {
+ return responseEnv.Body.Fault
+ }
+
+ if outAction != nil {
+ if err := xml.Unmarshal(responseEnv.Body.RawAction, outAction); err != nil {
+ return fmt.Errorf("goupnp: error unmarshalling out action: %v, %v", err, responseEnv.Body.RawAction)
+ }
+ }
+
+ return nil
+}
+
+// newSOAPAction creates a soapEnvelope with the given action and arguments.
+func newSOAPEnvelope() *soapEnvelope {
+ return &soapEnvelope{
+ EncodingStyle: soapEncodingStyle,
+ }
+}
+
+// encodeRequestAction is a hacky way to create an encoded SOAP envelope
+// containing the given action. Experiments with one router have shown that it
+// 500s for requests where the outer default xmlns is set to the SOAP
+// namespace, and then reassigning the default namespace within that to the
+// service namespace. Hand-coding the outer XML to work-around this.
+func encodeRequestAction(actionNamespace, actionName string, inAction interface{}) ([]byte, error) {
+ requestBuf := new(bytes.Buffer)
+ requestBuf.WriteString(soapPrefix)
+ requestBuf.WriteString(`<u:`)
+ xml.EscapeText(requestBuf, []byte(actionName))
+ requestBuf.WriteString(` xmlns:u="`)
+ xml.EscapeText(requestBuf, []byte(actionNamespace))
+ requestBuf.WriteString(`">`)
+ if inAction != nil {
+ if err := encodeRequestArgs(requestBuf, inAction); err != nil {
+ return nil, err
+ }
+ }
+ requestBuf.WriteString(`</u:`)
+ xml.EscapeText(requestBuf, []byte(actionName))
+ requestBuf.WriteString(`>`)
+ requestBuf.WriteString(soapSuffix)
+ return requestBuf.Bytes(), nil
+}
+
+func encodeRequestArgs(w *bytes.Buffer, inAction interface{}) error {
+ in := reflect.Indirect(reflect.ValueOf(inAction))
+ if in.Kind() != reflect.Struct {
+ return fmt.Errorf("goupnp: SOAP inAction is not a struct but of type %v", in.Type())
+ }
+ enc := xml.NewEncoder(w)
+ nFields := in.NumField()
+ inType := in.Type()
+ for i := 0; i < nFields; i++ {
+ field := inType.Field(i)
+ argName := field.Name
+ if nameOverride := field.Tag.Get("soap"); nameOverride != "" {
+ argName = nameOverride
+ }
+ value := in.Field(i)
+ if value.Kind() != reflect.String {
+ return fmt.Errorf("goupnp: SOAP arg %q is not of type string, but of type %v", argName, value.Type())
+ }
+ if err := enc.EncodeElement(value.Interface(), xml.StartElement{xml.Name{"", argName}, nil}); err != nil {
+ return fmt.Errorf("goupnp: error encoding SOAP arg %q: %v", argName, err)
+ }
+ }
+ enc.Flush()
+ return nil
+}
+
+type soapEnvelope struct {
+ XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"`
+ EncodingStyle string `xml:"http://schemas.xmlsoap.org/soap/envelope/ encodingStyle,attr"`
+ Body soapBody `xml:"http://schemas.xmlsoap.org/soap/envelope/ Body"`
+}
+
+type soapBody struct {
+ Fault *SOAPFaultError `xml:"Fault"`
+ RawAction []byte `xml:",innerxml"`
+}
+
+// SOAPFaultError implements error, and contains SOAP fault information.
+type SOAPFaultError struct {
+ FaultCode string `xml:"faultcode"`
+ FaultString string `xml:"faultstring"`
+ Detail string `xml:"detail"`
+}
+
+func (err *SOAPFaultError) Error() string {
+ return fmt.Sprintf("SOAP fault: %s", err.FaultString)
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/soap/soap_test.go b/Godeps/_workspace/src/github.com/fjl/goupnp/soap/soap_test.go
new file mode 100644
index 000000000..75dbbdbf1
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/soap/soap_test.go
@@ -0,0 +1,85 @@
+package soap
+
+import (
+ "bytes"
+ "io/ioutil"
+ "net/http"
+ "net/url"
+ "reflect"
+ "testing"
+)
+
+type capturingRoundTripper struct {
+ err error
+ resp *http.Response
+ capturedReq *http.Request
+}
+
+func (rt *capturingRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
+ rt.capturedReq = req
+ return rt.resp, rt.err
+}
+
+func TestActionInputs(t *testing.T) {
+ url, err := url.Parse("http://example.com/soap")
+ if err != nil {
+ t.Fatal(err)
+ }
+ rt := &capturingRoundTripper{
+ err: nil,
+ resp: &http.Response{
+ StatusCode: 200,
+ Body: ioutil.NopCloser(bytes.NewBufferString(`
+ <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
+ <s:Body>
+ <u:myactionResponse xmlns:u="mynamespace">
+ <A>valueA</A>
+ <B>valueB</B>
+ </u:myactionResponse>
+ </s:Body>
+ </s:Envelope>
+ `)),
+ },
+ }
+ client := SOAPClient{
+ EndpointURL: *url,
+ HTTPClient: http.Client{
+ Transport: rt,
+ },
+ }
+
+ type In struct {
+ Foo string
+ Bar string `soap:"bar"`
+ }
+ type Out struct {
+ A string
+ B string
+ }
+ in := In{"foo", "bar"}
+ gotOut := Out{}
+ err = client.PerformAction("mynamespace", "myaction", &in, &gotOut)
+ if err != nil {
+ t.Fatal(err)
+ }
+
+ wantBody := (soapPrefix +
+ `<u:myaction xmlns:u="mynamespace">` +
+ `<Foo>foo</Foo>` +
+ `<bar>bar</bar>` +
+ `</u:myaction>` +
+ soapSuffix)
+ body, err := ioutil.ReadAll(rt.capturedReq.Body)
+ if err != nil {
+ t.Fatal(err)
+ }
+ gotBody := string(body)
+ if wantBody != gotBody {
+ t.Errorf("Bad request body\nwant: %q\n got: %q", wantBody, gotBody)
+ }
+
+ wantOut := Out{"valueA", "valueB"}
+ if !reflect.DeepEqual(wantOut, gotOut) {
+ t.Errorf("Bad output\nwant: %+v\n got: %+v", wantOut, gotOut)
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/soap/types.go b/Godeps/_workspace/src/github.com/fjl/goupnp/soap/types.go
new file mode 100644
index 000000000..cd16510e3
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/soap/types.go
@@ -0,0 +1,508 @@
+package soap
+
+import (
+ "encoding/base64"
+ "encoding/hex"
+ "errors"
+ "fmt"
+ "regexp"
+ "strconv"
+ "strings"
+ "time"
+ "unicode/utf8"
+)
+
+var (
+ // localLoc acts like time.Local for this package, but is faked out by the
+ // unit tests to ensure that things stay constant (especially when running
+ // this test in a place where local time is UTC which might mask bugs).
+ localLoc = time.Local
+)
+
+func MarshalUi1(v uint8) (string, error) {
+ return strconv.FormatUint(uint64(v), 10), nil
+}
+
+func UnmarshalUi1(s string) (uint8, error) {
+ v, err := strconv.ParseUint(s, 10, 8)
+ return uint8(v), err
+}
+
+func MarshalUi2(v uint16) (string, error) {
+ return strconv.FormatUint(uint64(v), 10), nil
+}
+
+func UnmarshalUi2(s string) (uint16, error) {
+ v, err := strconv.ParseUint(s, 10, 16)
+ return uint16(v), err
+}
+
+func MarshalUi4(v uint32) (string, error) {
+ return strconv.FormatUint(uint64(v), 10), nil
+}
+
+func UnmarshalUi4(s string) (uint32, error) {
+ v, err := strconv.ParseUint(s, 10, 32)
+ return uint32(v), err
+}
+
+func MarshalI1(v int8) (string, error) {
+ return strconv.FormatInt(int64(v), 10), nil
+}
+
+func UnmarshalI1(s string) (int8, error) {
+ v, err := strconv.ParseInt(s, 10, 8)
+ return int8(v), err
+}
+
+func MarshalI2(v int16) (string, error) {
+ return strconv.FormatInt(int64(v), 10), nil
+}
+
+func UnmarshalI2(s string) (int16, error) {
+ v, err := strconv.ParseInt(s, 10, 16)
+ return int16(v), err
+}
+
+func MarshalI4(v int32) (string, error) {
+ return strconv.FormatInt(int64(v), 10), nil
+}
+
+func UnmarshalI4(s string) (int32, error) {
+ v, err := strconv.ParseInt(s, 10, 32)
+ return int32(v), err
+}
+
+func MarshalInt(v int64) (string, error) {
+ return strconv.FormatInt(v, 10), nil
+}
+
+func UnmarshalInt(s string) (int64, error) {
+ return strconv.ParseInt(s, 10, 64)
+}
+
+func MarshalR4(v float32) (string, error) {
+ return strconv.FormatFloat(float64(v), 'G', -1, 32), nil
+}
+
+func UnmarshalR4(s string) (float32, error) {
+ v, err := strconv.ParseFloat(s, 32)
+ return float32(v), err
+}
+
+func MarshalR8(v float64) (string, error) {
+ return strconv.FormatFloat(v, 'G', -1, 64), nil
+}
+
+func UnmarshalR8(s string) (float64, error) {
+ v, err := strconv.ParseFloat(s, 64)
+ return float64(v), err
+}
+
+// MarshalFixed14_4 marshals float64 to SOAP "fixed.14.4" type.
+func MarshalFixed14_4(v float64) (string, error) {
+ if v >= 1e14 || v <= -1e14 {
+ return "", fmt.Errorf("soap fixed14.4: value %v out of bounds", v)
+ }
+ return strconv.FormatFloat(v, 'f', 4, 64), nil
+}
+
+// UnmarshalFixed14_4 unmarshals float64 from SOAP "fixed.14.4" type.
+func UnmarshalFixed14_4(s string) (float64, error) {
+ v, err := strconv.ParseFloat(s, 64)
+ if err != nil {
+ return 0, err
+ }
+ if v >= 1e14 || v <= -1e14 {
+ return 0, fmt.Errorf("soap fixed14.4: value %q out of bounds", s)
+ }
+ return v, nil
+}
+
+// MarshalChar marshals rune to SOAP "char" type.
+func MarshalChar(v rune) (string, error) {
+ if v == 0 {
+ return "", errors.New("soap char: rune 0 is not allowed")
+ }
+ return string(v), nil
+}
+
+// UnmarshalChar unmarshals rune from SOAP "char" type.
+func UnmarshalChar(s string) (rune, error) {
+ if len(s) == 0 {
+ return 0, errors.New("soap char: got empty string")
+ }
+ r, n := utf8.DecodeRune([]byte(s))
+ if n != len(s) {
+ return 0, fmt.Errorf("soap char: value %q is not a single rune", s)
+ }
+ return r, nil
+}
+
+func MarshalString(v string) (string, error) {
+ return v, nil
+}
+
+func UnmarshalString(v string) (string, error) {
+ return v, nil
+}
+
+func parseInt(s string, err *error) int {
+ v, parseErr := strconv.ParseInt(s, 10, 64)
+ if parseErr != nil {
+ *err = parseErr
+ }
+ return int(v)
+}
+
+var dateRegexps = []*regexp.Regexp{
+ // yyyy[-mm[-dd]]
+ regexp.MustCompile(`^(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?$`),
+ // yyyy[mm[dd]]
+ regexp.MustCompile(`^(\d{4})(?:(\d{2})(?:(\d{2}))?)?$`),
+}
+
+func parseDateParts(s string) (year, month, day int, err error) {
+ var parts []string
+ for _, re := range dateRegexps {
+ parts = re.FindStringSubmatch(s)
+ if parts != nil {
+ break
+ }
+ }
+ if parts == nil {
+ err = fmt.Errorf("soap date: value %q is not in a recognized ISO8601 date format", s)
+ return
+ }
+
+ year = parseInt(parts[1], &err)
+ month = 1
+ day = 1
+ if len(parts[2]) != 0 {
+ month = parseInt(parts[2], &err)
+ if len(parts[3]) != 0 {
+ day = parseInt(parts[3], &err)
+ }
+ }
+
+ if err != nil {
+ err = fmt.Errorf("soap date: %q: %v", s, err)
+ }
+
+ return
+}
+
+var timeRegexps = []*regexp.Regexp{
+ // hh[:mm[:ss]]
+ regexp.MustCompile(`^(\d{2})(?::(\d{2})(?::(\d{2}))?)?$`),
+ // hh[mm[ss]]
+ regexp.MustCompile(`^(\d{2})(?:(\d{2})(?:(\d{2}))?)?$`),
+}
+
+func parseTimeParts(s string) (hour, minute, second int, err error) {
+ var parts []string
+ for _, re := range timeRegexps {
+ parts = re.FindStringSubmatch(s)
+ if parts != nil {
+ break
+ }
+ }
+ if parts == nil {
+ err = fmt.Errorf("soap time: value %q is not in ISO8601 time format", s)
+ return
+ }
+
+ hour = parseInt(parts[1], &err)
+ if len(parts[2]) != 0 {
+ minute = parseInt(parts[2], &err)
+ if len(parts[3]) != 0 {
+ second = parseInt(parts[3], &err)
+ }
+ }
+
+ if err != nil {
+ err = fmt.Errorf("soap time: %q: %v", s, err)
+ }
+
+ return
+}
+
+// (+|-)hh[[:]mm]
+var timezoneRegexp = regexp.MustCompile(`^([+-])(\d{2})(?::?(\d{2}))?$`)
+
+func parseTimezone(s string) (offset int, err error) {
+ if s == "Z" {
+ return 0, nil
+ }
+ parts := timezoneRegexp.FindStringSubmatch(s)
+ if parts == nil {
+ err = fmt.Errorf("soap timezone: value %q is not in ISO8601 timezone format", s)
+ return
+ }
+
+ offset = parseInt(parts[2], &err) * 3600
+ if len(parts[3]) != 0 {
+ offset += parseInt(parts[3], &err) * 60
+ }
+ if parts[1] == "-" {
+ offset = -offset
+ }
+
+ if err != nil {
+ err = fmt.Errorf("soap timezone: %q: %v", s, err)
+ }
+
+ return
+}
+
+var completeDateTimeZoneRegexp = regexp.MustCompile(`^([^T]+)(?:T([^-+Z]+)(.+)?)?$`)
+
+// splitCompleteDateTimeZone splits date, time and timezone apart from an
+// ISO8601 string. It does not ensure that the contents of each part are
+// correct, it merely splits on certain delimiters.
+// e.g "2010-09-08T12:15:10+0700" => "2010-09-08", "12:15:10", "+0700".
+// Timezone can only be present if time is also present.
+func splitCompleteDateTimeZone(s string) (dateStr, timeStr, zoneStr string, err error) {
+ parts := completeDateTimeZoneRegexp.FindStringSubmatch(s)
+ if parts == nil {
+ err = fmt.Errorf("soap date/time/zone: value %q is not in ISO8601 datetime format", s)
+ return
+ }
+ dateStr = parts[1]
+ timeStr = parts[2]
+ zoneStr = parts[3]
+ return
+}
+
+// MarshalDate marshals time.Time to SOAP "date" type. Note that this converts
+// to local time, and discards the time-of-day components.
+func MarshalDate(v time.Time) (string, error) {
+ return v.In(localLoc).Format("2006-01-02"), nil
+}
+
+var dateFmts = []string{"2006-01-02", "20060102"}
+
+// UnmarshalDate unmarshals time.Time from SOAP "date" type. This outputs the
+// date as midnight in the local time zone.
+func UnmarshalDate(s string) (time.Time, error) {
+ year, month, day, err := parseDateParts(s)
+ if err != nil {
+ return time.Time{}, err
+ }
+ return time.Date(year, time.Month(month), day, 0, 0, 0, 0, localLoc), nil
+}
+
+// TimeOfDay is used in cases where SOAP "time" or "time.tz" is used.
+type TimeOfDay struct {
+ // Duration of time since midnight.
+ FromMidnight time.Duration
+
+ // Set to true if Offset is specified. If false, then the timezone is
+ // unspecified (and by ISO8601 - implies some "local" time).
+ HasOffset bool
+
+ // Offset is non-zero only if time.tz is used. It is otherwise ignored. If
+ // non-zero, then it is regarded as a UTC offset in seconds. Note that the
+ // sub-minutes is ignored by the marshal function.
+ Offset int
+}
+
+// MarshalTimeOfDay marshals TimeOfDay to the "time" type.
+func MarshalTimeOfDay(v TimeOfDay) (string, error) {
+ d := int64(v.FromMidnight / time.Second)
+ hour := d / 3600
+ d = d % 3600
+ minute := d / 60
+ second := d % 60
+
+ return fmt.Sprintf("%02d:%02d:%02d", hour, minute, second), nil
+}
+
+// UnmarshalTimeOfDay unmarshals TimeOfDay from the "time" type.
+func UnmarshalTimeOfDay(s string) (TimeOfDay, error) {
+ t, err := UnmarshalTimeOfDayTz(s)
+ if err != nil {
+ return TimeOfDay{}, err
+ } else if t.HasOffset {
+ return TimeOfDay{}, fmt.Errorf("soap time: value %q contains unexpected timezone")
+ }
+ return t, nil
+}
+
+// MarshalTimeOfDayTz marshals TimeOfDay to the "time.tz" type.
+func MarshalTimeOfDayTz(v TimeOfDay) (string, error) {
+ d := int64(v.FromMidnight / time.Second)
+ hour := d / 3600
+ d = d % 3600
+ minute := d / 60
+ second := d % 60
+
+ tz := ""
+ if v.HasOffset {
+ if v.Offset == 0 {
+ tz = "Z"
+ } else {
+ offsetMins := v.Offset / 60
+ sign := '+'
+ if offsetMins < 1 {
+ offsetMins = -offsetMins
+ sign = '-'
+ }
+ tz = fmt.Sprintf("%c%02d:%02d", sign, offsetMins/60, offsetMins%60)
+ }
+ }
+
+ return fmt.Sprintf("%02d:%02d:%02d%s", hour, minute, second, tz), nil
+}
+
+// UnmarshalTimeOfDayTz unmarshals TimeOfDay from the "time.tz" type.
+func UnmarshalTimeOfDayTz(s string) (tod TimeOfDay, err error) {
+ zoneIndex := strings.IndexAny(s, "Z+-")
+ var timePart string
+ var hasOffset bool
+ var offset int
+ if zoneIndex == -1 {
+ hasOffset = false
+ timePart = s
+ } else {
+ hasOffset = true
+ timePart = s[:zoneIndex]
+ if offset, err = parseTimezone(s[zoneIndex:]); err != nil {
+ return
+ }
+ }
+
+ hour, minute, second, err := parseTimeParts(timePart)
+ if err != nil {
+ return
+ }
+
+ fromMidnight := time.Duration(hour*3600+minute*60+second) * time.Second
+
+ // ISO8601 special case - values up to 24:00:00 are allowed, so using
+ // strictly greater-than for the maximum value.
+ if fromMidnight > 24*time.Hour || minute >= 60 || second >= 60 {
+ return TimeOfDay{}, fmt.Errorf("soap time.tz: value %q has value(s) out of range", s)
+ }
+
+ return TimeOfDay{
+ FromMidnight: time.Duration(hour*3600+minute*60+second) * time.Second,
+ HasOffset: hasOffset,
+ Offset: offset,
+ }, nil
+}
+
+// MarshalDateTime marshals time.Time to SOAP "dateTime" type. Note that this
+// converts to local time.
+func MarshalDateTime(v time.Time) (string, error) {
+ return v.In(localLoc).Format("2006-01-02T15:04:05"), nil
+}
+
+// UnmarshalDateTime unmarshals time.Time from the SOAP "dateTime" type. This
+// returns a value in the local timezone.
+func UnmarshalDateTime(s string) (result time.Time, err error) {
+ dateStr, timeStr, zoneStr, err := splitCompleteDateTimeZone(s)
+ if err != nil {
+ return
+ }
+
+ if len(zoneStr) != 0 {
+ err = fmt.Errorf("soap datetime: unexpected timezone in %q", s)
+ return
+ }
+
+ year, month, day, err := parseDateParts(dateStr)
+ if err != nil {
+ return
+ }
+
+ var hour, minute, second int
+ if len(timeStr) != 0 {
+ hour, minute, second, err = parseTimeParts(timeStr)
+ if err != nil {
+ return
+ }
+ }
+
+ result = time.Date(year, time.Month(month), day, hour, minute, second, 0, localLoc)
+ return
+}
+
+// MarshalDateTimeTz marshals time.Time to SOAP "dateTime.tz" type.
+func MarshalDateTimeTz(v time.Time) (string, error) {
+ return v.Format("2006-01-02T15:04:05-07:00"), nil
+}
+
+// UnmarshalDateTimeTz unmarshals time.Time from the SOAP "dateTime.tz" type.
+// This returns a value in the local timezone when the timezone is unspecified.
+func UnmarshalDateTimeTz(s string) (result time.Time, err error) {
+ dateStr, timeStr, zoneStr, err := splitCompleteDateTimeZone(s)
+ if err != nil {
+ return
+ }
+
+ year, month, day, err := parseDateParts(dateStr)
+ if err != nil {
+ return
+ }
+
+ var hour, minute, second int
+ var location *time.Location = localLoc
+ if len(timeStr) != 0 {
+ hour, minute, second, err = parseTimeParts(timeStr)
+ if err != nil {
+ return
+ }
+ if len(zoneStr) != 0 {
+ var offset int
+ offset, err = parseTimezone(zoneStr)
+ if offset == 0 {
+ location = time.UTC
+ } else {
+ location = time.FixedZone("", offset)
+ }
+ }
+ }
+
+ result = time.Date(year, time.Month(month), day, hour, minute, second, 0, location)
+ return
+}
+
+// MarshalBoolean marshals bool to SOAP "boolean" type.
+func MarshalBoolean(v bool) (string, error) {
+ if v {
+ return "1", nil
+ }
+ return "0", nil
+}
+
+// UnmarshalBoolean unmarshals bool from the SOAP "boolean" type.
+func UnmarshalBoolean(s string) (bool, error) {
+ switch s {
+ case "0", "false", "no":
+ return false, nil
+ case "1", "true", "yes":
+ return true, nil
+ }
+ return false, fmt.Errorf("soap boolean: %q is not a valid boolean value", s)
+}
+
+// MarshalBinBase64 marshals []byte to SOAP "bin.base64" type.
+func MarshalBinBase64(v []byte) (string, error) {
+ return base64.StdEncoding.EncodeToString(v), nil
+}
+
+// UnmarshalBinBase64 unmarshals []byte from the SOAP "bin.base64" type.
+func UnmarshalBinBase64(s string) ([]byte, error) {
+ return base64.StdEncoding.DecodeString(s)
+}
+
+// MarshalBinHex marshals []byte to SOAP "bin.hex" type.
+func MarshalBinHex(v []byte) (string, error) {
+ return hex.EncodeToString(v), nil
+}
+
+// UnmarshalBinHex unmarshals []byte from the SOAP "bin.hex" type.
+func UnmarshalBinHex(s string) ([]byte, error) {
+ return hex.DecodeString(s)
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/soap/types_test.go b/Godeps/_workspace/src/github.com/fjl/goupnp/soap/types_test.go
new file mode 100644
index 000000000..da6816190
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/soap/types_test.go
@@ -0,0 +1,481 @@
+package soap
+
+import (
+ "bytes"
+ "math"
+ "testing"
+ "time"
+)
+
+type convTest interface {
+ Marshal() (string, error)
+ Unmarshal(string) (interface{}, error)
+ Equal(result interface{}) bool
+}
+
+// duper is an interface that convTest values may optionally also implement to
+// generate another convTest for a value in an otherwise identical testCase.
+type duper interface {
+ Dupe(tag string) []convTest
+}
+
+type testCase struct {
+ value convTest
+ str string
+ wantMarshalErr bool
+ wantUnmarshalErr bool
+ noMarshal bool
+ noUnMarshal bool
+ tag string
+}
+
+type Ui1Test uint8
+
+func (v Ui1Test) Marshal() (string, error) {
+ return MarshalUi1(uint8(v))
+}
+func (v Ui1Test) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalUi1(s)
+}
+func (v Ui1Test) Equal(result interface{}) bool {
+ return uint8(v) == result.(uint8)
+}
+func (v Ui1Test) Dupe(tag string) []convTest {
+ if tag == "dupe" {
+ return []convTest{
+ Ui2Test(v),
+ Ui4Test(v),
+ }
+ }
+ return nil
+}
+
+type Ui2Test uint16
+
+func (v Ui2Test) Marshal() (string, error) {
+ return MarshalUi2(uint16(v))
+}
+func (v Ui2Test) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalUi2(s)
+}
+func (v Ui2Test) Equal(result interface{}) bool {
+ return uint16(v) == result.(uint16)
+}
+
+type Ui4Test uint32
+
+func (v Ui4Test) Marshal() (string, error) {
+ return MarshalUi4(uint32(v))
+}
+func (v Ui4Test) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalUi4(s)
+}
+func (v Ui4Test) Equal(result interface{}) bool {
+ return uint32(v) == result.(uint32)
+}
+
+type I1Test int8
+
+func (v I1Test) Marshal() (string, error) {
+ return MarshalI1(int8(v))
+}
+func (v I1Test) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalI1(s)
+}
+func (v I1Test) Equal(result interface{}) bool {
+ return int8(v) == result.(int8)
+}
+func (v I1Test) Dupe(tag string) []convTest {
+ if tag == "dupe" {
+ return []convTest{
+ I2Test(v),
+ I4Test(v),
+ }
+ }
+ return nil
+}
+
+type I2Test int16
+
+func (v I2Test) Marshal() (string, error) {
+ return MarshalI2(int16(v))
+}
+func (v I2Test) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalI2(s)
+}
+func (v I2Test) Equal(result interface{}) bool {
+ return int16(v) == result.(int16)
+}
+
+type I4Test int32
+
+func (v I4Test) Marshal() (string, error) {
+ return MarshalI4(int32(v))
+}
+func (v I4Test) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalI4(s)
+}
+func (v I4Test) Equal(result interface{}) bool {
+ return int32(v) == result.(int32)
+}
+
+type IntTest int64
+
+func (v IntTest) Marshal() (string, error) {
+ return MarshalInt(int64(v))
+}
+func (v IntTest) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalInt(s)
+}
+func (v IntTest) Equal(result interface{}) bool {
+ return int64(v) == result.(int64)
+}
+
+type Fixed14_4Test float64
+
+func (v Fixed14_4Test) Marshal() (string, error) {
+ return MarshalFixed14_4(float64(v))
+}
+func (v Fixed14_4Test) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalFixed14_4(s)
+}
+func (v Fixed14_4Test) Equal(result interface{}) bool {
+ return math.Abs(float64(v)-result.(float64)) < 0.001
+}
+
+type CharTest rune
+
+func (v CharTest) Marshal() (string, error) {
+ return MarshalChar(rune(v))
+}
+func (v CharTest) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalChar(s)
+}
+func (v CharTest) Equal(result interface{}) bool {
+ return rune(v) == result.(rune)
+}
+
+type DateTest struct{ time.Time }
+
+func (v DateTest) Marshal() (string, error) {
+ return MarshalDate(time.Time(v.Time))
+}
+func (v DateTest) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalDate(s)
+}
+func (v DateTest) Equal(result interface{}) bool {
+ return v.Time.Equal(result.(time.Time))
+}
+func (v DateTest) Dupe(tag string) []convTest {
+ if tag != "no:dateTime" {
+ return []convTest{DateTimeTest{v.Time}}
+ }
+ return nil
+}
+
+type TimeOfDayTest struct {
+ TimeOfDay
+}
+
+func (v TimeOfDayTest) Marshal() (string, error) {
+ return MarshalTimeOfDay(v.TimeOfDay)
+}
+func (v TimeOfDayTest) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalTimeOfDay(s)
+}
+func (v TimeOfDayTest) Equal(result interface{}) bool {
+ return v.TimeOfDay == result.(TimeOfDay)
+}
+func (v TimeOfDayTest) Dupe(tag string) []convTest {
+ if tag != "no:time.tz" {
+ return []convTest{TimeOfDayTzTest{v.TimeOfDay}}
+ }
+ return nil
+}
+
+type TimeOfDayTzTest struct {
+ TimeOfDay
+}
+
+func (v TimeOfDayTzTest) Marshal() (string, error) {
+ return MarshalTimeOfDayTz(v.TimeOfDay)
+}
+func (v TimeOfDayTzTest) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalTimeOfDayTz(s)
+}
+func (v TimeOfDayTzTest) Equal(result interface{}) bool {
+ return v.TimeOfDay == result.(TimeOfDay)
+}
+
+type DateTimeTest struct{ time.Time }
+
+func (v DateTimeTest) Marshal() (string, error) {
+ return MarshalDateTime(time.Time(v.Time))
+}
+func (v DateTimeTest) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalDateTime(s)
+}
+func (v DateTimeTest) Equal(result interface{}) bool {
+ return v.Time.Equal(result.(time.Time))
+}
+func (v DateTimeTest) Dupe(tag string) []convTest {
+ if tag != "no:dateTime.tz" {
+ return []convTest{DateTimeTzTest{v.Time}}
+ }
+ return nil
+}
+
+type DateTimeTzTest struct{ time.Time }
+
+func (v DateTimeTzTest) Marshal() (string, error) {
+ return MarshalDateTimeTz(time.Time(v.Time))
+}
+func (v DateTimeTzTest) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalDateTimeTz(s)
+}
+func (v DateTimeTzTest) Equal(result interface{}) bool {
+ return v.Time.Equal(result.(time.Time))
+}
+
+type BooleanTest bool
+
+func (v BooleanTest) Marshal() (string, error) {
+ return MarshalBoolean(bool(v))
+}
+func (v BooleanTest) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalBoolean(s)
+}
+func (v BooleanTest) Equal(result interface{}) bool {
+ return bool(v) == result.(bool)
+}
+
+type BinBase64Test []byte
+
+func (v BinBase64Test) Marshal() (string, error) {
+ return MarshalBinBase64([]byte(v))
+}
+func (v BinBase64Test) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalBinBase64(s)
+}
+func (v BinBase64Test) Equal(result interface{}) bool {
+ return bytes.Equal([]byte(v), result.([]byte))
+}
+
+type BinHexTest []byte
+
+func (v BinHexTest) Marshal() (string, error) {
+ return MarshalBinHex([]byte(v))
+}
+func (v BinHexTest) Unmarshal(s string) (interface{}, error) {
+ return UnmarshalBinHex(s)
+}
+func (v BinHexTest) Equal(result interface{}) bool {
+ return bytes.Equal([]byte(v), result.([]byte))
+}
+
+func Test(t *testing.T) {
+ const time010203 time.Duration = (1*3600 + 2*60 + 3) * time.Second
+ const time0102 time.Duration = (1*3600 + 2*60) * time.Second
+ const time01 time.Duration = (1 * 3600) * time.Second
+ const time235959 time.Duration = (23*3600 + 59*60 + 59) * time.Second
+
+ // Fake out the local time for the implementation.
+ localLoc = time.FixedZone("Fake/Local", 6*3600)
+ defer func() {
+ localLoc = time.Local
+ }()
+
+ tests := []testCase{
+ // ui1
+ {str: "", value: Ui1Test(0), wantUnmarshalErr: true, noMarshal: true, tag: "dupe"},
+ {str: " ", value: Ui1Test(0), wantUnmarshalErr: true, noMarshal: true, tag: "dupe"},
+ {str: "abc", value: Ui1Test(0), wantUnmarshalErr: true, noMarshal: true, tag: "dupe"},
+ {str: "-1", value: Ui1Test(0), wantUnmarshalErr: true, noMarshal: true, tag: "dupe"},
+ {str: "0", value: Ui1Test(0), tag: "dupe"},
+ {str: "1", value: Ui1Test(1), tag: "dupe"},
+ {str: "255", value: Ui1Test(255), tag: "dupe"},
+ {str: "256", value: Ui1Test(0), wantUnmarshalErr: true, noMarshal: true},
+
+ // ui2
+ {str: "65535", value: Ui2Test(65535)},
+ {str: "65536", value: Ui2Test(0), wantUnmarshalErr: true, noMarshal: true},
+
+ // ui4
+ {str: "4294967295", value: Ui4Test(4294967295)},
+ {str: "4294967296", value: Ui4Test(0), wantUnmarshalErr: true, noMarshal: true},
+
+ // i1
+ {str: "", value: I1Test(0), wantUnmarshalErr: true, noMarshal: true, tag: "dupe"},
+ {str: " ", value: I1Test(0), wantUnmarshalErr: true, noMarshal: true, tag: "dupe"},
+ {str: "abc", value: I1Test(0), wantUnmarshalErr: true, noMarshal: true, tag: "dupe"},
+ {str: "0", value: I1Test(0), tag: "dupe"},
+ {str: "-1", value: I1Test(-1), tag: "dupe"},
+ {str: "127", value: I1Test(127), tag: "dupe"},
+ {str: "-128", value: I1Test(-128), tag: "dupe"},
+ {str: "128", value: I1Test(0), wantUnmarshalErr: true, noMarshal: true},
+ {str: "-129", value: I1Test(0), wantUnmarshalErr: true, noMarshal: true},
+
+ // i2
+ {str: "32767", value: I2Test(32767)},
+ {str: "-32768", value: I2Test(-32768)},
+ {str: "32768", value: I2Test(0), wantUnmarshalErr: true, noMarshal: true},
+ {str: "-32769", value: I2Test(0), wantUnmarshalErr: true, noMarshal: true},
+
+ // i4
+ {str: "2147483647", value: I4Test(2147483647)},
+ {str: "-2147483648", value: I4Test(-2147483648)},
+ {str: "2147483648", value: I4Test(0), wantUnmarshalErr: true, noMarshal: true},
+ {str: "-2147483649", value: I4Test(0), wantUnmarshalErr: true, noMarshal: true},
+
+ // int
+ {str: "9223372036854775807", value: IntTest(9223372036854775807)},
+ {str: "-9223372036854775808", value: IntTest(-9223372036854775808)},
+ {str: "9223372036854775808", value: IntTest(0), wantUnmarshalErr: true, noMarshal: true},
+ {str: "-9223372036854775809", value: IntTest(0), wantUnmarshalErr: true, noMarshal: true},
+
+ // fixed.14.4
+ {str: "0.0000", value: Fixed14_4Test(0)},
+ {str: "1.0000", value: Fixed14_4Test(1)},
+ {str: "1.2346", value: Fixed14_4Test(1.23456)},
+ {str: "-1.0000", value: Fixed14_4Test(-1)},
+ {str: "-1.2346", value: Fixed14_4Test(-1.23456)},
+ {str: "10000000000000.0000", value: Fixed14_4Test(1e13)},
+ {str: "100000000000000.0000", value: Fixed14_4Test(1e14), wantMarshalErr: true, wantUnmarshalErr: true},
+ {str: "-10000000000000.0000", value: Fixed14_4Test(-1e13)},
+ {str: "-100000000000000.0000", value: Fixed14_4Test(-1e14), wantMarshalErr: true, wantUnmarshalErr: true},
+
+ // char
+ {str: "a", value: CharTest('a')},
+ {str: "z", value: CharTest('z')},
+ {str: "\u1234", value: CharTest(0x1234)},
+ {str: "aa", value: CharTest(0), wantMarshalErr: true, wantUnmarshalErr: true},
+ {str: "", value: CharTest(0), wantMarshalErr: true, wantUnmarshalErr: true},
+
+ // date
+ {str: "2013-10-08", value: DateTest{time.Date(2013, 10, 8, 0, 0, 0, 0, localLoc)}, tag: "no:dateTime"},
+ {str: "20131008", value: DateTest{time.Date(2013, 10, 8, 0, 0, 0, 0, localLoc)}, noMarshal: true, tag: "no:dateTime"},
+ {str: "2013-10-08T10:30:50", value: DateTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:dateTime"},
+ {str: "2013-10-08T10:30:50Z", value: DateTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:dateTime"},
+ {str: "", value: DateTest{}, wantMarshalErr: true, wantUnmarshalErr: true, noMarshal: true},
+ {str: "-1", value: DateTest{}, wantUnmarshalErr: true, noMarshal: true},
+
+ // time
+ {str: "00:00:00", value: TimeOfDayTest{TimeOfDay{FromMidnight: 0}}},
+ {str: "000000", value: TimeOfDayTest{TimeOfDay{FromMidnight: 0}}, noMarshal: true},
+ {str: "24:00:00", value: TimeOfDayTest{TimeOfDay{FromMidnight: 24 * time.Hour}}, noMarshal: true}, // ISO8601 special case
+ {str: "24:01:00", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true},
+ {str: "24:00:01", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true},
+ {str: "25:00:00", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true},
+ {str: "00:60:00", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true},
+ {str: "00:00:60", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true},
+ {str: "01:02:03", value: TimeOfDayTest{TimeOfDay{FromMidnight: time010203}}},
+ {str: "010203", value: TimeOfDayTest{TimeOfDay{FromMidnight: time010203}}, noMarshal: true},
+ {str: "23:59:59", value: TimeOfDayTest{TimeOfDay{FromMidnight: time235959}}},
+ {str: "235959", value: TimeOfDayTest{TimeOfDay{FromMidnight: time235959}}, noMarshal: true},
+ {str: "01:02", value: TimeOfDayTest{TimeOfDay{FromMidnight: time0102}}, noMarshal: true},
+ {str: "0102", value: TimeOfDayTest{TimeOfDay{FromMidnight: time0102}}, noMarshal: true},
+ {str: "01", value: TimeOfDayTest{TimeOfDay{FromMidnight: time01}}, noMarshal: true},
+ {str: "foo 01:02:03", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:time.tz"},
+ {str: "foo\n01:02:03", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:time.tz"},
+ {str: "01:02:03 foo", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:time.tz"},
+ {str: "01:02:03\nfoo", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:time.tz"},
+ {str: "01:02:03Z", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:time.tz"},
+ {str: "01:02:03+01", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:time.tz"},
+ {str: "01:02:03+01:23", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:time.tz"},
+ {str: "01:02:03+0123", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:time.tz"},
+ {str: "01:02:03-01", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:time.tz"},
+ {str: "01:02:03-01:23", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:time.tz"},
+ {str: "01:02:03-0123", value: TimeOfDayTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:time.tz"},
+
+ // time.tz
+ {str: "24:00:01", value: TimeOfDayTzTest{}, wantUnmarshalErr: true, noMarshal: true},
+ {str: "01Z", value: TimeOfDayTzTest{TimeOfDay{time01, true, 0}}, noMarshal: true},
+ {str: "01:02:03Z", value: TimeOfDayTzTest{TimeOfDay{time010203, true, 0}}},
+ {str: "01+01", value: TimeOfDayTzTest{TimeOfDay{time01, true, 3600}}, noMarshal: true},
+ {str: "01:02:03+01", value: TimeOfDayTzTest{TimeOfDay{time010203, true, 3600}}, noMarshal: true},
+ {str: "01:02:03+01:23", value: TimeOfDayTzTest{TimeOfDay{time010203, true, 3600 + 23*60}}},
+ {str: "01:02:03+0123", value: TimeOfDayTzTest{TimeOfDay{time010203, true, 3600 + 23*60}}, noMarshal: true},
+ {str: "01:02:03-01", value: TimeOfDayTzTest{TimeOfDay{time010203, true, -3600}}, noMarshal: true},
+ {str: "01:02:03-01:23", value: TimeOfDayTzTest{TimeOfDay{time010203, true, -(3600 + 23*60)}}},
+ {str: "01:02:03-0123", value: TimeOfDayTzTest{TimeOfDay{time010203, true, -(3600 + 23*60)}}, noMarshal: true},
+
+ // dateTime
+ {str: "2013-10-08T00:00:00", value: DateTimeTest{time.Date(2013, 10, 8, 0, 0, 0, 0, localLoc)}, tag: "no:dateTime.tz"},
+ {str: "20131008", value: DateTimeTest{time.Date(2013, 10, 8, 0, 0, 0, 0, localLoc)}, noMarshal: true},
+ {str: "2013-10-08T10:30:50", value: DateTimeTest{time.Date(2013, 10, 8, 10, 30, 50, 0, localLoc)}, tag: "no:dateTime.tz"},
+ {str: "2013-10-08T10:30:50T", value: DateTimeTest{}, wantUnmarshalErr: true, noMarshal: true},
+ {str: "2013-10-08T10:30:50+01", value: DateTimeTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:dateTime.tz"},
+ {str: "2013-10-08T10:30:50+01:23", value: DateTimeTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:dateTime.tz"},
+ {str: "2013-10-08T10:30:50+0123", value: DateTimeTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:dateTime.tz"},
+ {str: "2013-10-08T10:30:50-01", value: DateTimeTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:dateTime.tz"},
+ {str: "2013-10-08T10:30:50-01:23", value: DateTimeTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:dateTime.tz"},
+ {str: "2013-10-08T10:30:50-0123", value: DateTimeTest{}, wantUnmarshalErr: true, noMarshal: true, tag: "no:dateTime.tz"},
+
+ // dateTime.tz
+ {str: "2013-10-08T10:30:50", value: DateTimeTzTest{time.Date(2013, 10, 8, 10, 30, 50, 0, localLoc)}, noMarshal: true},
+ {str: "2013-10-08T10:30:50+01", value: DateTimeTzTest{time.Date(2013, 10, 8, 10, 30, 50, 0, time.FixedZone("+01:00", 3600))}, noMarshal: true},
+ {str: "2013-10-08T10:30:50+01:23", value: DateTimeTzTest{time.Date(2013, 10, 8, 10, 30, 50, 0, time.FixedZone("+01:23", 3600+23*60))}},
+ {str: "2013-10-08T10:30:50+0123", value: DateTimeTzTest{time.Date(2013, 10, 8, 10, 30, 50, 0, time.FixedZone("+01:23", 3600+23*60))}, noMarshal: true},
+ {str: "2013-10-08T10:30:50-01", value: DateTimeTzTest{time.Date(2013, 10, 8, 10, 30, 50, 0, time.FixedZone("-01:00", -3600))}, noMarshal: true},
+ {str: "2013-10-08T10:30:50-01:23", value: DateTimeTzTest{time.Date(2013, 10, 8, 10, 30, 50, 0, time.FixedZone("-01:23", -(3600+23*60)))}},
+ {str: "2013-10-08T10:30:50-0123", value: DateTimeTzTest{time.Date(2013, 10, 8, 10, 30, 50, 0, time.FixedZone("-01:23", -(3600+23*60)))}, noMarshal: true},
+
+ // boolean
+ {str: "0", value: BooleanTest(false)},
+ {str: "1", value: BooleanTest(true)},
+ {str: "false", value: BooleanTest(false), noMarshal: true},
+ {str: "true", value: BooleanTest(true), noMarshal: true},
+ {str: "no", value: BooleanTest(false), noMarshal: true},
+ {str: "yes", value: BooleanTest(true), noMarshal: true},
+ {str: "", value: BooleanTest(false), noMarshal: true, wantUnmarshalErr: true},
+ {str: "other", value: BooleanTest(false), noMarshal: true, wantUnmarshalErr: true},
+ {str: "2", value: BooleanTest(false), noMarshal: true, wantUnmarshalErr: true},
+ {str: "-1", value: BooleanTest(false), noMarshal: true, wantUnmarshalErr: true},
+
+ // bin.base64
+ {str: "", value: BinBase64Test{}},
+ {str: "YQ==", value: BinBase64Test("a")},
+ {str: "TG9uZ2VyIFN0cmluZy4=", value: BinBase64Test("Longer String.")},
+ {str: "TG9uZ2VyIEFsaWduZWQu", value: BinBase64Test("Longer Aligned.")},
+
+ // bin.hex
+ {str: "", value: BinHexTest{}},
+ {str: "61", value: BinHexTest("a")},
+ {str: "4c6f6e67657220537472696e672e", value: BinHexTest("Longer String.")},
+ {str: "4C6F6E67657220537472696E672E", value: BinHexTest("Longer String."), noMarshal: true},
+ }
+
+ // Generate extra test cases from convTests that implement duper.
+ var extras []testCase
+ for i := range tests {
+ if duper, ok := tests[i].value.(duper); ok {
+ dupes := duper.Dupe(tests[i].tag)
+ for _, duped := range dupes {
+ dupedCase := testCase(tests[i])
+ dupedCase.value = duped
+ extras = append(extras, dupedCase)
+ }
+ }
+ }
+ tests = append(tests, extras...)
+
+ for _, test := range tests {
+ if test.noMarshal {
+ } else if resultStr, err := test.value.Marshal(); err != nil && !test.wantMarshalErr {
+ t.Errorf("For %T marshal %v, want %q, got error: %v", test.value, test.value, test.str, err)
+ } else if err == nil && test.wantMarshalErr {
+ t.Errorf("For %T marshal %v, want error, got %q", test.value, test.value, resultStr)
+ } else if err == nil && resultStr != test.str {
+ t.Errorf("For %T marshal %v, want %q, got %q", test.value, test.value, test.str, resultStr)
+ }
+
+ if test.noUnMarshal {
+ } else if resultValue, err := test.value.Unmarshal(test.str); err != nil && !test.wantUnmarshalErr {
+ t.Errorf("For %T unmarshal %q, want %v, got error: %v", test.value, test.str, test.value, err)
+ } else if err == nil && test.wantUnmarshalErr {
+ t.Errorf("For %T unmarshal %q, want error, got %v", test.value, test.str, resultValue)
+ } else if err == nil && !test.value.Equal(resultValue) {
+ t.Errorf("For %T unmarshal %q, want %v, got %v", test.value, test.str, test.value, resultValue)
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/ssdp/registry.go b/Godeps/_workspace/src/github.com/fjl/goupnp/ssdp/registry.go
new file mode 100644
index 000000000..9e2611b7f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/ssdp/registry.go
@@ -0,0 +1,202 @@
+package ssdp
+
+import (
+ "fmt"
+ "log"
+ "net/http"
+ "net/url"
+ "regexp"
+ "strconv"
+ "sync"
+ "time"
+
+ "github.com/fjl/goupnp/httpu"
+)
+
+const (
+ maxExpiryTimeSeconds = 24 * 60 * 60
+)
+
+var (
+ maxAgeRx = regexp.MustCompile("max-age=([0-9]+)")
+)
+
+type Entry struct {
+ // The address that the entry data was actually received from.
+ RemoteAddr string
+ // Unique Service Name. Identifies a unique instance of a device or service.
+ USN string
+ // Notfication Type. The type of device or service being announced.
+ NT string
+ // Server's self-identifying string.
+ Server string
+ Host string
+ // Location of the UPnP root device description.
+ Location *url.URL
+
+ // Despite BOOTID,CONFIGID being required fields, apparently they are not
+ // always set by devices. Set to -1 if not present.
+
+ BootID int32
+ ConfigID int32
+
+ SearchPort uint16
+
+ // When the last update was received for this entry identified by this USN.
+ LastUpdate time.Time
+ // When the last update's cached values are advised to expire.
+ CacheExpiry time.Time
+}
+
+func newEntryFromRequest(r *http.Request) (*Entry, error) {
+ now := time.Now()
+ expiryDuration, err := parseCacheControlMaxAge(r.Header.Get("CACHE-CONTROL"))
+ if err != nil {
+ return nil, fmt.Errorf("ssdp: error parsing CACHE-CONTROL max age: %v", err)
+ }
+
+ loc, err := url.Parse(r.Header.Get("LOCATION"))
+ if err != nil {
+ return nil, fmt.Errorf("ssdp: error parsing entry Location URL: %v", err)
+ }
+
+ bootID, err := parseUpnpIntHeader(r.Header, "BOOTID.UPNP.ORG", -1)
+ if err != nil {
+ return nil, err
+ }
+ configID, err := parseUpnpIntHeader(r.Header, "CONFIGID.UPNP.ORG", -1)
+ if err != nil {
+ return nil, err
+ }
+ searchPort, err := parseUpnpIntHeader(r.Header, "SEARCHPORT.UPNP.ORG", ssdpSearchPort)
+ if err != nil {
+ return nil, err
+ }
+
+ if searchPort < 1 || searchPort > 65535 {
+ return nil, fmt.Errorf("ssdp: search port %d is out of range", searchPort)
+ }
+
+ return &Entry{
+ RemoteAddr: r.RemoteAddr,
+ USN: r.Header.Get("USN"),
+ NT: r.Header.Get("NT"),
+ Server: r.Header.Get("SERVER"),
+ Host: r.Header.Get("HOST"),
+ Location: loc,
+ BootID: bootID,
+ ConfigID: configID,
+ SearchPort: uint16(searchPort),
+ LastUpdate: now,
+ CacheExpiry: now.Add(expiryDuration),
+ }, nil
+}
+
+func parseCacheControlMaxAge(cc string) (time.Duration, error) {
+ matches := maxAgeRx.FindStringSubmatch(cc)
+ if len(matches) != 2 {
+ return 0, fmt.Errorf("did not find exactly one max-age in cache control header: %q", cc)
+ }
+ expirySeconds, err := strconv.ParseInt(matches[1], 10, 16)
+ if err != nil {
+ return 0, err
+ }
+ if expirySeconds < 1 || expirySeconds > maxExpiryTimeSeconds {
+ return 0, fmt.Errorf("rejecting bad expiry time of %d seconds", expirySeconds)
+ }
+ return time.Duration(expirySeconds) * time.Second, nil
+}
+
+// parseUpnpIntHeader is intended to parse the
+// {BOOT,CONFIGID,SEARCHPORT}.UPNP.ORG header fields. It returns the def if
+// the head is empty or missing.
+func parseUpnpIntHeader(headers http.Header, headerName string, def int32) (int32, error) {
+ s := headers.Get(headerName)
+ if s == "" {
+ return def, nil
+ }
+ v, err := strconv.ParseInt(s, 10, 32)
+ if err != nil {
+ return 0, fmt.Errorf("ssdp: could not parse header %s: %v", headerName, err)
+ }
+ return int32(v), nil
+}
+
+var _ httpu.Handler = new(Registry)
+
+// Registry maintains knowledge of discovered devices and services.
+type Registry struct {
+ lock sync.Mutex
+ byUSN map[string]*Entry
+}
+
+func NewRegistry() *Registry {
+ return &Registry{
+ byUSN: make(map[string]*Entry),
+ }
+}
+
+// ServeMessage implements httpu.Handler, and uses SSDP NOTIFY requests to
+// maintain the registry of devices and services.
+func (reg *Registry) ServeMessage(r *http.Request) {
+ if r.Method != methodNotify {
+ return
+ }
+
+ nts := r.Header.Get("nts")
+
+ var err error
+ switch nts {
+ case ntsAlive:
+ err = reg.handleNTSAlive(r)
+ case ntsUpdate:
+ err = reg.handleNTSUpdate(r)
+ case ntsByebye:
+ err = reg.handleNTSByebye(r)
+ default:
+ err = fmt.Errorf("unknown NTS value: %q", nts)
+ }
+ log.Printf("In %s request from %s: %v", nts, r.RemoteAddr, err)
+}
+
+func (reg *Registry) handleNTSAlive(r *http.Request) error {
+ entry, err := newEntryFromRequest(r)
+ if err != nil {
+ return err
+ }
+
+ reg.lock.Lock()
+ defer reg.lock.Unlock()
+
+ reg.byUSN[entry.USN] = entry
+
+ return nil
+}
+
+func (reg *Registry) handleNTSUpdate(r *http.Request) error {
+ entry, err := newEntryFromRequest(r)
+ if err != nil {
+ return err
+ }
+ nextBootID, err := parseUpnpIntHeader(r.Header, "NEXTBOOTID.UPNP.ORG", -1)
+ if err != nil {
+ return err
+ }
+ entry.BootID = nextBootID
+
+ reg.lock.Lock()
+ defer reg.lock.Unlock()
+
+ reg.byUSN[entry.USN] = entry
+
+ return nil
+}
+
+func (reg *Registry) handleNTSByebye(r *http.Request) error {
+ reg.lock.Lock()
+ defer reg.lock.Unlock()
+
+ delete(reg.byUSN, r.Header.Get("USN"))
+
+ return nil
+}
diff --git a/Godeps/_workspace/src/github.com/fjl/goupnp/ssdp/ssdp.go b/Godeps/_workspace/src/github.com/fjl/goupnp/ssdp/ssdp.go
new file mode 100644
index 000000000..6a186afa5
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/fjl/goupnp/ssdp/ssdp.go
@@ -0,0 +1,83 @@
+package ssdp
+
+import (
+ "errors"
+ "log"
+ "net/http"
+ "net/url"
+ "strconv"
+ "time"
+
+ "github.com/fjl/goupnp/httpu"
+)
+
+const (
+ ssdpDiscover = `"ssdp:discover"`
+ ntsAlive = `ssdp:alive`
+ ntsByebye = `ssdp:byebye`
+ ntsUpdate = `ssdp:update`
+ ssdpUDP4Addr = "239.255.255.250:1900"
+ ssdpSearchPort = 1900
+ methodSearch = "M-SEARCH"
+ methodNotify = "NOTIFY"
+)
+
+// SSDPRawSearch performs a fairly raw SSDP search request, and returns the
+// unique response(s) that it receives. Each response has the requested
+// searchTarget, a USN, and a valid location. maxWaitSeconds states how long to
+// wait for responses in seconds, and must be a minimum of 1 (the
+// implementation waits an additional 100ms for responses to arrive), 2 is a
+// reasonable value for this. numSends is the number of requests to send - 3 is
+// a reasonable value for this.
+func SSDPRawSearch(httpu *httpu.HTTPUClient, searchTarget string, maxWaitSeconds int, numSends int) ([]*http.Response, error) {
+ if maxWaitSeconds < 1 {
+ return nil, errors.New("ssdp: maxWaitSeconds must be >= 1")
+ }
+
+ seenUsns := make(map[string]bool)
+ var responses []*http.Response
+ req := http.Request{
+ Method: methodSearch,
+ // TODO: Support both IPv4 and IPv6.
+ Host: ssdpUDP4Addr,
+ URL: &url.URL{Opaque: "*"},
+ Header: http.Header{
+ // Putting headers in here avoids them being title-cased.
+ // (The UPnP discovery protocol uses case-sensitive headers)
+ "HOST": []string{ssdpUDP4Addr},
+ "MX": []string{strconv.FormatInt(int64(maxWaitSeconds), 10)},
+ "MAN": []string{ssdpDiscover},
+ "ST": []string{searchTarget},
+ },
+ }
+ allResponses, err := httpu.Do(&req, time.Duration(maxWaitSeconds)*time.Second+100*time.Millisecond, numSends)
+ if err != nil {
+ return nil, err
+ }
+ for _, response := range allResponses {
+ if response.StatusCode != 200 {
+ log.Printf("ssdp: got response status code %q in search response", response.Status)
+ continue
+ }
+ if st := response.Header.Get("ST"); st != searchTarget {
+ log.Printf("ssdp: got unexpected search target result %q", st)
+ continue
+ }
+ location, err := response.Location()
+ if err != nil {
+ log.Printf("ssdp: no usable location in search response (discarding): %v", err)
+ continue
+ }
+ usn := response.Header.Get("USN")
+ if usn == "" {
+ log.Printf("ssdp: empty/missing USN in search response (using location instead): %v", err)
+ usn = location.String()
+ }
+ if _, alreadySeen := seenUsns[usn]; !alreadySeen {
+ seenUsns[usn] = true
+ responses = append(responses, response)
+ }
+ }
+
+ return responses, nil
+}
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/.gitignore b/Godeps/_workspace/src/github.com/howeyc/fsnotify/.gitignore
new file mode 100644
index 000000000..e4706a9e9
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/.gitignore
@@ -0,0 +1,5 @@
+# Setup a Global .gitignore for OS and editor generated files:
+# https://help.github.com/articles/ignoring-files
+# git config --global core.excludesfile ~/.gitignore_global
+
+.vagrant
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/AUTHORS b/Godeps/_workspace/src/github.com/howeyc/fsnotify/AUTHORS
new file mode 100644
index 000000000..e52b72f83
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/AUTHORS
@@ -0,0 +1,28 @@
+# Names should be added to this file as
+# Name or Organization <email address>
+# The email address is not required for organizations.
+
+# You can update this list using the following command:
+#
+# $ git shortlog -se | awk '{print $2 " " $3 " " $4}'
+
+# Please keep the list sorted.
+
+Adrien Bustany <adrien@bustany.org>
+Caleb Spare <cespare@gmail.com>
+Case Nelson <case@teammating.com>
+Chris Howey <howeyc@gmail.com> <chris@howey.me>
+Christoffer Buchholz <christoffer.buchholz@gmail.com>
+Dave Cheney <dave@cheney.net>
+Francisco Souza <f@souza.cc>
+John C Barstow
+Kelvin Fo <vmirage@gmail.com>
+Nathan Youngman <git@nathany.com>
+Paul Hammond <paul@paulhammond.org>
+Pursuit92 <JoshChase@techpursuit.net>
+Rob Figueiredo <robfig@gmail.com>
+Travis Cline <travis.cline@gmail.com>
+Tudor Golubenco <tudor.g@gmail.com>
+bronze1man <bronze1man@gmail.com>
+debrando <denis.brandolini@gmail.com>
+henrikedwards <henrik.edwards@gmail.com>
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/CHANGELOG.md b/Godeps/_workspace/src/github.com/howeyc/fsnotify/CHANGELOG.md
new file mode 100644
index 000000000..761686aa9
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/CHANGELOG.md
@@ -0,0 +1,160 @@
+# Changelog
+
+## v0.9.0 / 2014-01-17
+
+* IsAttrib() for events that only concern a file's metadata [#79][] (thanks @abustany)
+* [Fix] kqueue: fix deadlock [#77][] (thanks @cespare)
+* [NOTICE] Development has moved to `code.google.com/p/go.exp/fsnotify` in preparation for inclusion in the Go standard library.
+
+## v0.8.12 / 2013-11-13
+
+* [API] Remove FD_SET and friends from Linux adapter
+
+## v0.8.11 / 2013-11-02
+
+* [Doc] Add Changelog [#72][] (thanks @nathany)
+* [Doc] Spotlight and double modify events on OS X [#62][] (reported by @paulhammond)
+
+## v0.8.10 / 2013-10-19
+
+* [Fix] kqueue: remove file watches when parent directory is removed [#71][] (reported by @mdwhatcott)
+* [Fix] kqueue: race between Close and readEvents [#70][] (reported by @bernerdschaefer)
+* [Doc] specify OS-specific limits in README (thanks @debrando)
+
+## v0.8.9 / 2013-09-08
+
+* [Doc] Contributing (thanks @nathany)
+* [Doc] update package path in example code [#63][] (thanks @paulhammond)
+* [Doc] GoCI badge in README (Linux only) [#60][]
+* [Doc] Cross-platform testing with Vagrant [#59][] (thanks @nathany)
+
+## v0.8.8 / 2013-06-17
+
+* [Fix] Windows: handle `ERROR_MORE_DATA` on Windows [#49][] (thanks @jbowtie)
+
+## v0.8.7 / 2013-06-03
+
+* [API] Make syscall flags internal
+* [Fix] inotify: ignore event changes
+* [Fix] race in symlink test [#45][] (reported by @srid)
+* [Fix] tests on Windows
+* lower case error messages
+
+## v0.8.6 / 2013-05-23
+
+* kqueue: Use EVT_ONLY flag on Darwin
+* [Doc] Update README with full example
+
+## v0.8.5 / 2013-05-09
+
+* [Fix] inotify: allow monitoring of "broken" symlinks (thanks @tsg)
+
+## v0.8.4 / 2013-04-07
+
+* [Fix] kqueue: watch all file events [#40][] (thanks @ChrisBuchholz)
+
+## v0.8.3 / 2013-03-13
+
+* [Fix] inoitfy/kqueue memory leak [#36][] (reported by @nbkolchin)
+* [Fix] kqueue: use fsnFlags for watching a directory [#33][] (reported by @nbkolchin)
+
+## v0.8.2 / 2013-02-07
+
+* [Doc] add Authors
+* [Fix] fix data races for map access [#29][] (thanks @fsouza)
+
+## v0.8.1 / 2013-01-09
+
+* [Fix] Windows path separators
+* [Doc] BSD License
+
+## v0.8.0 / 2012-11-09
+
+* kqueue: directory watching improvements (thanks @vmirage)
+* inotify: add `IN_MOVED_TO` [#25][] (requested by @cpisto)
+* [Fix] kqueue: deleting watched directory [#24][] (reported by @jakerr)
+
+## v0.7.4 / 2012-10-09
+
+* [Fix] inotify: fixes from https://codereview.appspot.com/5418045/ (ugorji)
+* [Fix] kqueue: preserve watch flags when watching for delete [#21][] (reported by @robfig)
+* [Fix] kqueue: watch the directory even if it isn't a new watch (thanks @robfig)
+* [Fix] kqueue: modify after recreation of file
+
+## v0.7.3 / 2012-09-27
+
+* [Fix] kqueue: watch with an existing folder inside the watched folder (thanks @vmirage)
+* [Fix] kqueue: no longer get duplicate CREATE events
+
+## v0.7.2 / 2012-09-01
+
+* kqueue: events for created directories
+
+## v0.7.1 / 2012-07-14
+
+* [Fix] for renaming files
+
+## v0.7.0 / 2012-07-02
+
+* [Feature] FSNotify flags
+* [Fix] inotify: Added file name back to event path
+
+## v0.6.0 / 2012-06-06
+
+* kqueue: watch files after directory created (thanks @tmc)
+
+## v0.5.1 / 2012-05-22
+
+* [Fix] inotify: remove all watches before Close()
+
+## v0.5.0 / 2012-05-03
+
+* [API] kqueue: return errors during watch instead of sending over channel
+* kqueue: match symlink behavior on Linux
+* inotify: add `DELETE_SELF` (requested by @taralx)
+* [Fix] kqueue: handle EINTR (reported by @robfig)
+* [Doc] Godoc example [#1][] (thanks @davecheney)
+
+## v0.4.0 / 2012-03-30
+
+* Go 1 released: build with go tool
+* [Feature] Windows support using winfsnotify
+* Windows does not have attribute change notifications
+* Roll attribute notifications into IsModify
+
+## v0.3.0 / 2012-02-19
+
+* kqueue: add files when watch directory
+
+## v0.2.0 / 2011-12-30
+
+* update to latest Go weekly code
+
+## v0.1.0 / 2011-10-19
+
+* kqueue: add watch on file creation to match inotify
+* kqueue: create file event
+* inotify: ignore `IN_IGNORED` events
+* event String()
+* linux: common FileEvent functions
+* initial commit
+
+[#79]: https://github.com/howeyc/fsnotify/pull/79
+[#77]: https://github.com/howeyc/fsnotify/pull/77
+[#72]: https://github.com/howeyc/fsnotify/issues/72
+[#71]: https://github.com/howeyc/fsnotify/issues/71
+[#70]: https://github.com/howeyc/fsnotify/issues/70
+[#63]: https://github.com/howeyc/fsnotify/issues/63
+[#62]: https://github.com/howeyc/fsnotify/issues/62
+[#60]: https://github.com/howeyc/fsnotify/issues/60
+[#59]: https://github.com/howeyc/fsnotify/issues/59
+[#49]: https://github.com/howeyc/fsnotify/issues/49
+[#45]: https://github.com/howeyc/fsnotify/issues/45
+[#40]: https://github.com/howeyc/fsnotify/issues/40
+[#36]: https://github.com/howeyc/fsnotify/issues/36
+[#33]: https://github.com/howeyc/fsnotify/issues/33
+[#29]: https://github.com/howeyc/fsnotify/issues/29
+[#25]: https://github.com/howeyc/fsnotify/issues/25
+[#24]: https://github.com/howeyc/fsnotify/issues/24
+[#21]: https://github.com/howeyc/fsnotify/issues/21
+[#1]: https://github.com/howeyc/fsnotify/issues/1
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/CONTRIBUTING.md b/Godeps/_workspace/src/github.com/howeyc/fsnotify/CONTRIBUTING.md
new file mode 100644
index 000000000..b2025d72c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/CONTRIBUTING.md
@@ -0,0 +1,7 @@
+# Contributing
+
+## Moving Notice
+
+There is a fork being actively developed with a new API in preparation for the Go Standard Library:
+[github.com/go-fsnotify/fsnotify](https://github.com/go-fsnotify/fsnotify)
+
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/LICENSE b/Godeps/_workspace/src/github.com/howeyc/fsnotify/LICENSE
new file mode 100644
index 000000000..f21e54080
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/LICENSE
@@ -0,0 +1,28 @@
+Copyright (c) 2012 The Go Authors. All rights reserved.
+Copyright (c) 2012 fsnotify Authors. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+copyright notice, this list of conditions and the following disclaimer
+in the documentation and/or other materials provided with the
+distribution.
+ * Neither the name of Google Inc. nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/README.md b/Godeps/_workspace/src/github.com/howeyc/fsnotify/README.md
new file mode 100644
index 000000000..4c7498d38
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/README.md
@@ -0,0 +1,92 @@
+# File system notifications for Go
+
+[![GoDoc](https://godoc.org/github.com/howeyc/fsnotify?status.png)](http://godoc.org/github.com/howeyc/fsnotify)
+
+Cross platform: Windows, Linux, BSD and OS X.
+
+## Moving Notice
+
+There is a fork being actively developed with a new API in preparation for the Go Standard Library:
+[github.com/go-fsnotify/fsnotify](https://github.com/go-fsnotify/fsnotify)
+
+## Example:
+
+```go
+package main
+
+import (
+ "log"
+
+ "github.com/howeyc/fsnotify"
+)
+
+func main() {
+ watcher, err := fsnotify.NewWatcher()
+ if err != nil {
+ log.Fatal(err)
+ }
+
+ done := make(chan bool)
+
+ // Process events
+ go func() {
+ for {
+ select {
+ case ev := <-watcher.Event:
+ log.Println("event:", ev)
+ case err := <-watcher.Error:
+ log.Println("error:", err)
+ }
+ }
+ }()
+
+ err = watcher.Watch("testDir")
+ if err != nil {
+ log.Fatal(err)
+ }
+
+ <-done
+
+ /* ... do stuff ... */
+ watcher.Close()
+}
+```
+
+For each event:
+* Name
+* IsCreate()
+* IsDelete()
+* IsModify()
+* IsRename()
+
+## FAQ
+
+**When a file is moved to another directory is it still being watched?**
+
+No (it shouldn't be, unless you are watching where it was moved to).
+
+**When I watch a directory, are all subdirectories watched as well?**
+
+No, you must add watches for any directory you want to watch (a recursive watcher is in the works [#56][]).
+
+**Do I have to watch the Error and Event channels in a separate goroutine?**
+
+As of now, yes. Looking into making this single-thread friendly (see [#7][])
+
+**Why am I receiving multiple events for the same file on OS X?**
+
+Spotlight indexing on OS X can result in multiple events (see [#62][]). A temporary workaround is to add your folder(s) to the *Spotlight Privacy settings* until we have a native FSEvents implementation (see [#54][]).
+
+**How many files can be watched at once?**
+
+There are OS-specific limits as to how many watches can be created:
+* Linux: /proc/sys/fs/inotify/max_user_watches contains the limit,
+reaching this limit results in a "no space left on device" error.
+* BSD / OSX: sysctl variables "kern.maxfiles" and "kern.maxfilesperproc", reaching these limits results in a "too many open files" error.
+
+
+[#62]: https://github.com/howeyc/fsnotify/issues/62
+[#56]: https://github.com/howeyc/fsnotify/issues/56
+[#54]: https://github.com/howeyc/fsnotify/issues/54
+[#7]: https://github.com/howeyc/fsnotify/issues/7
+
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/example_test.go b/Godeps/_workspace/src/github.com/howeyc/fsnotify/example_test.go
new file mode 100644
index 000000000..d3130e222
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/example_test.go
@@ -0,0 +1,34 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package fsnotify_test
+
+import (
+ "log"
+
+ "github.com/howeyc/fsnotify"
+)
+
+func ExampleNewWatcher() {
+ watcher, err := fsnotify.NewWatcher()
+ if err != nil {
+ log.Fatal(err)
+ }
+
+ go func() {
+ for {
+ select {
+ case ev := <-watcher.Event:
+ log.Println("event:", ev)
+ case err := <-watcher.Error:
+ log.Println("error:", err)
+ }
+ }
+ }()
+
+ err = watcher.Watch("/tmp/foo")
+ if err != nil {
+ log.Fatal(err)
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify.go b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify.go
new file mode 100644
index 000000000..9a48d847d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify.go
@@ -0,0 +1,111 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Package fsnotify implements file system notification.
+package fsnotify
+
+import "fmt"
+
+const (
+ FSN_CREATE = 1
+ FSN_MODIFY = 2
+ FSN_DELETE = 4
+ FSN_RENAME = 8
+
+ FSN_ALL = FSN_MODIFY | FSN_DELETE | FSN_RENAME | FSN_CREATE
+)
+
+// Purge events from interal chan to external chan if passes filter
+func (w *Watcher) purgeEvents() {
+ for ev := range w.internalEvent {
+ sendEvent := false
+ w.fsnmut.Lock()
+ fsnFlags := w.fsnFlags[ev.Name]
+ w.fsnmut.Unlock()
+
+ if (fsnFlags&FSN_CREATE == FSN_CREATE) && ev.IsCreate() {
+ sendEvent = true
+ }
+
+ if (fsnFlags&FSN_MODIFY == FSN_MODIFY) && ev.IsModify() {
+ sendEvent = true
+ }
+
+ if (fsnFlags&FSN_DELETE == FSN_DELETE) && ev.IsDelete() {
+ sendEvent = true
+ }
+
+ if (fsnFlags&FSN_RENAME == FSN_RENAME) && ev.IsRename() {
+ sendEvent = true
+ }
+
+ if sendEvent {
+ w.Event <- ev
+ }
+
+ // If there's no file, then no more events for user
+ // BSD must keep watch for internal use (watches DELETEs to keep track
+ // what files exist for create events)
+ if ev.IsDelete() {
+ w.fsnmut.Lock()
+ delete(w.fsnFlags, ev.Name)
+ w.fsnmut.Unlock()
+ }
+ }
+
+ close(w.Event)
+}
+
+// Watch a given file path
+func (w *Watcher) Watch(path string) error {
+ return w.WatchFlags(path, FSN_ALL)
+}
+
+// Watch a given file path for a particular set of notifications (FSN_MODIFY etc.)
+func (w *Watcher) WatchFlags(path string, flags uint32) error {
+ w.fsnmut.Lock()
+ w.fsnFlags[path] = flags
+ w.fsnmut.Unlock()
+ return w.watch(path)
+}
+
+// Remove a watch on a file
+func (w *Watcher) RemoveWatch(path string) error {
+ w.fsnmut.Lock()
+ delete(w.fsnFlags, path)
+ w.fsnmut.Unlock()
+ return w.removeWatch(path)
+}
+
+// String formats the event e in the form
+// "filename: DELETE|MODIFY|..."
+func (e *FileEvent) String() string {
+ var events string = ""
+
+ if e.IsCreate() {
+ events += "|" + "CREATE"
+ }
+
+ if e.IsDelete() {
+ events += "|" + "DELETE"
+ }
+
+ if e.IsModify() {
+ events += "|" + "MODIFY"
+ }
+
+ if e.IsRename() {
+ events += "|" + "RENAME"
+ }
+
+ if e.IsAttrib() {
+ events += "|" + "ATTRIB"
+ }
+
+ if len(events) > 0 {
+ events = events[1:]
+ }
+
+ return fmt.Sprintf("%q: %s", e.Name, events)
+}
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_bsd.go b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_bsd.go
new file mode 100644
index 000000000..e6ffd7e5b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_bsd.go
@@ -0,0 +1,496 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build freebsd openbsd netbsd darwin
+
+package fsnotify
+
+import (
+ "errors"
+ "fmt"
+ "io/ioutil"
+ "os"
+ "path/filepath"
+ "sync"
+ "syscall"
+)
+
+const (
+ // Flags (from <sys/event.h>)
+ sys_NOTE_DELETE = 0x0001 /* vnode was removed */
+ sys_NOTE_WRITE = 0x0002 /* data contents changed */
+ sys_NOTE_EXTEND = 0x0004 /* size increased */
+ sys_NOTE_ATTRIB = 0x0008 /* attributes changed */
+ sys_NOTE_LINK = 0x0010 /* link count changed */
+ sys_NOTE_RENAME = 0x0020 /* vnode was renamed */
+ sys_NOTE_REVOKE = 0x0040 /* vnode access was revoked */
+
+ // Watch all events
+ sys_NOTE_ALLEVENTS = sys_NOTE_DELETE | sys_NOTE_WRITE | sys_NOTE_ATTRIB | sys_NOTE_RENAME
+
+ // Block for 100 ms on each call to kevent
+ keventWaitTime = 100e6
+)
+
+type FileEvent struct {
+ mask uint32 // Mask of events
+ Name string // File name (optional)
+ create bool // set by fsnotify package if found new file
+}
+
+// IsCreate reports whether the FileEvent was triggered by a creation
+func (e *FileEvent) IsCreate() bool { return e.create }
+
+// IsDelete reports whether the FileEvent was triggered by a delete
+func (e *FileEvent) IsDelete() bool { return (e.mask & sys_NOTE_DELETE) == sys_NOTE_DELETE }
+
+// IsModify reports whether the FileEvent was triggered by a file modification
+func (e *FileEvent) IsModify() bool {
+ return ((e.mask&sys_NOTE_WRITE) == sys_NOTE_WRITE || (e.mask&sys_NOTE_ATTRIB) == sys_NOTE_ATTRIB)
+}
+
+// IsRename reports whether the FileEvent was triggered by a change name
+func (e *FileEvent) IsRename() bool { return (e.mask & sys_NOTE_RENAME) == sys_NOTE_RENAME }
+
+// IsAttrib reports whether the FileEvent was triggered by a change in the file metadata.
+func (e *FileEvent) IsAttrib() bool {
+ return (e.mask & sys_NOTE_ATTRIB) == sys_NOTE_ATTRIB
+}
+
+type Watcher struct {
+ mu sync.Mutex // Mutex for the Watcher itself.
+ kq int // File descriptor (as returned by the kqueue() syscall)
+ watches map[string]int // Map of watched file descriptors (key: path)
+ wmut sync.Mutex // Protects access to watches.
+ fsnFlags map[string]uint32 // Map of watched files to flags used for filter
+ fsnmut sync.Mutex // Protects access to fsnFlags.
+ enFlags map[string]uint32 // Map of watched files to evfilt note flags used in kqueue
+ enmut sync.Mutex // Protects access to enFlags.
+ paths map[int]string // Map of watched paths (key: watch descriptor)
+ finfo map[int]os.FileInfo // Map of file information (isDir, isReg; key: watch descriptor)
+ pmut sync.Mutex // Protects access to paths and finfo.
+ fileExists map[string]bool // Keep track of if we know this file exists (to stop duplicate create events)
+ femut sync.Mutex // Protects access to fileExists.
+ externalWatches map[string]bool // Map of watches added by user of the library.
+ ewmut sync.Mutex // Protects access to externalWatches.
+ Error chan error // Errors are sent on this channel
+ internalEvent chan *FileEvent // Events are queued on this channel
+ Event chan *FileEvent // Events are returned on this channel
+ done chan bool // Channel for sending a "quit message" to the reader goroutine
+ isClosed bool // Set to true when Close() is first called
+}
+
+// NewWatcher creates and returns a new kevent instance using kqueue(2)
+func NewWatcher() (*Watcher, error) {
+ fd, errno := syscall.Kqueue()
+ if fd == -1 {
+ return nil, os.NewSyscallError("kqueue", errno)
+ }
+ w := &Watcher{
+ kq: fd,
+ watches: make(map[string]int),
+ fsnFlags: make(map[string]uint32),
+ enFlags: make(map[string]uint32),
+ paths: make(map[int]string),
+ finfo: make(map[int]os.FileInfo),
+ fileExists: make(map[string]bool),
+ externalWatches: make(map[string]bool),
+ internalEvent: make(chan *FileEvent),
+ Event: make(chan *FileEvent),
+ Error: make(chan error),
+ done: make(chan bool, 1),
+ }
+
+ go w.readEvents()
+ go w.purgeEvents()
+ return w, nil
+}
+
+// Close closes a kevent watcher instance
+// It sends a message to the reader goroutine to quit and removes all watches
+// associated with the kevent instance
+func (w *Watcher) Close() error {
+ w.mu.Lock()
+ if w.isClosed {
+ w.mu.Unlock()
+ return nil
+ }
+ w.isClosed = true
+ w.mu.Unlock()
+
+ // Send "quit" message to the reader goroutine
+ w.done <- true
+ w.wmut.Lock()
+ ws := w.watches
+ w.wmut.Unlock()
+ for path := range ws {
+ w.removeWatch(path)
+ }
+
+ return nil
+}
+
+// AddWatch adds path to the watched file set.
+// The flags are interpreted as described in kevent(2).
+func (w *Watcher) addWatch(path string, flags uint32) error {
+ w.mu.Lock()
+ if w.isClosed {
+ w.mu.Unlock()
+ return errors.New("kevent instance already closed")
+ }
+ w.mu.Unlock()
+
+ watchDir := false
+
+ w.wmut.Lock()
+ watchfd, found := w.watches[path]
+ w.wmut.Unlock()
+ if !found {
+ fi, errstat := os.Lstat(path)
+ if errstat != nil {
+ return errstat
+ }
+
+ // don't watch socket
+ if fi.Mode()&os.ModeSocket == os.ModeSocket {
+ return nil
+ }
+
+ // Follow Symlinks
+ // Unfortunately, Linux can add bogus symlinks to watch list without
+ // issue, and Windows can't do symlinks period (AFAIK). To maintain
+ // consistency, we will act like everything is fine. There will simply
+ // be no file events for broken symlinks.
+ // Hence the returns of nil on errors.
+ if fi.Mode()&os.ModeSymlink == os.ModeSymlink {
+ path, err := filepath.EvalSymlinks(path)
+ if err != nil {
+ return nil
+ }
+
+ fi, errstat = os.Lstat(path)
+ if errstat != nil {
+ return nil
+ }
+ }
+
+ fd, errno := syscall.Open(path, open_FLAGS, 0700)
+ if fd == -1 {
+ return errno
+ }
+ watchfd = fd
+
+ w.wmut.Lock()
+ w.watches[path] = watchfd
+ w.wmut.Unlock()
+
+ w.pmut.Lock()
+ w.paths[watchfd] = path
+ w.finfo[watchfd] = fi
+ w.pmut.Unlock()
+ }
+ // Watch the directory if it has not been watched before.
+ w.pmut.Lock()
+ w.enmut.Lock()
+ if w.finfo[watchfd].IsDir() &&
+ (flags&sys_NOTE_WRITE) == sys_NOTE_WRITE &&
+ (!found || (w.enFlags[path]&sys_NOTE_WRITE) != sys_NOTE_WRITE) {
+ watchDir = true
+ }
+ w.enmut.Unlock()
+ w.pmut.Unlock()
+
+ w.enmut.Lock()
+ w.enFlags[path] = flags
+ w.enmut.Unlock()
+
+ var kbuf [1]syscall.Kevent_t
+ watchEntry := &kbuf[0]
+ watchEntry.Fflags = flags
+ syscall.SetKevent(watchEntry, watchfd, syscall.EVFILT_VNODE, syscall.EV_ADD|syscall.EV_CLEAR)
+ entryFlags := watchEntry.Flags
+ success, errno := syscall.Kevent(w.kq, kbuf[:], nil, nil)
+ if success == -1 {
+ return errno
+ } else if (entryFlags & syscall.EV_ERROR) == syscall.EV_ERROR {
+ return errors.New("kevent add error")
+ }
+
+ if watchDir {
+ errdir := w.watchDirectoryFiles(path)
+ if errdir != nil {
+ return errdir
+ }
+ }
+ return nil
+}
+
+// Watch adds path to the watched file set, watching all events.
+func (w *Watcher) watch(path string) error {
+ w.ewmut.Lock()
+ w.externalWatches[path] = true
+ w.ewmut.Unlock()
+ return w.addWatch(path, sys_NOTE_ALLEVENTS)
+}
+
+// RemoveWatch removes path from the watched file set.
+func (w *Watcher) removeWatch(path string) error {
+ w.wmut.Lock()
+ watchfd, ok := w.watches[path]
+ w.wmut.Unlock()
+ if !ok {
+ return errors.New(fmt.Sprintf("can't remove non-existent kevent watch for: %s", path))
+ }
+ var kbuf [1]syscall.Kevent_t
+ watchEntry := &kbuf[0]
+ syscall.SetKevent(watchEntry, watchfd, syscall.EVFILT_VNODE, syscall.EV_DELETE)
+ entryFlags := watchEntry.Flags
+ success, errno := syscall.Kevent(w.kq, kbuf[:], nil, nil)
+ if success == -1 {
+ return os.NewSyscallError("kevent_rm_watch", errno)
+ } else if (entryFlags & syscall.EV_ERROR) == syscall.EV_ERROR {
+ return errors.New("kevent rm error")
+ }
+ syscall.Close(watchfd)
+ w.wmut.Lock()
+ delete(w.watches, path)
+ w.wmut.Unlock()
+ w.enmut.Lock()
+ delete(w.enFlags, path)
+ w.enmut.Unlock()
+ w.pmut.Lock()
+ delete(w.paths, watchfd)
+ fInfo := w.finfo[watchfd]
+ delete(w.finfo, watchfd)
+ w.pmut.Unlock()
+
+ // Find all watched paths that are in this directory that are not external.
+ if fInfo.IsDir() {
+ var pathsToRemove []string
+ w.pmut.Lock()
+ for _, wpath := range w.paths {
+ wdir, _ := filepath.Split(wpath)
+ if filepath.Clean(wdir) == filepath.Clean(path) {
+ w.ewmut.Lock()
+ if !w.externalWatches[wpath] {
+ pathsToRemove = append(pathsToRemove, wpath)
+ }
+ w.ewmut.Unlock()
+ }
+ }
+ w.pmut.Unlock()
+ for _, p := range pathsToRemove {
+ // Since these are internal, not much sense in propagating error
+ // to the user, as that will just confuse them with an error about
+ // a path they did not explicitly watch themselves.
+ w.removeWatch(p)
+ }
+ }
+
+ return nil
+}
+
+// readEvents reads from the kqueue file descriptor, converts the
+// received events into Event objects and sends them via the Event channel
+func (w *Watcher) readEvents() {
+ var (
+ eventbuf [10]syscall.Kevent_t // Event buffer
+ events []syscall.Kevent_t // Received events
+ twait *syscall.Timespec // Time to block waiting for events
+ n int // Number of events returned from kevent
+ errno error // Syscall errno
+ )
+ events = eventbuf[0:0]
+ twait = new(syscall.Timespec)
+ *twait = syscall.NsecToTimespec(keventWaitTime)
+
+ for {
+ // See if there is a message on the "done" channel
+ var done bool
+ select {
+ case done = <-w.done:
+ default:
+ }
+
+ // If "done" message is received
+ if done {
+ errno := syscall.Close(w.kq)
+ if errno != nil {
+ w.Error <- os.NewSyscallError("close", errno)
+ }
+ close(w.internalEvent)
+ close(w.Error)
+ return
+ }
+
+ // Get new events
+ if len(events) == 0 {
+ n, errno = syscall.Kevent(w.kq, nil, eventbuf[:], twait)
+
+ // EINTR is okay, basically the syscall was interrupted before
+ // timeout expired.
+ if errno != nil && errno != syscall.EINTR {
+ w.Error <- os.NewSyscallError("kevent", errno)
+ continue
+ }
+
+ // Received some events
+ if n > 0 {
+ events = eventbuf[0:n]
+ }
+ }
+
+ // Flush the events we received to the events channel
+ for len(events) > 0 {
+ fileEvent := new(FileEvent)
+ watchEvent := &events[0]
+ fileEvent.mask = uint32(watchEvent.Fflags)
+ w.pmut.Lock()
+ fileEvent.Name = w.paths[int(watchEvent.Ident)]
+ fileInfo := w.finfo[int(watchEvent.Ident)]
+ w.pmut.Unlock()
+ if fileInfo != nil && fileInfo.IsDir() && !fileEvent.IsDelete() {
+ // Double check to make sure the directory exist. This can happen when
+ // we do a rm -fr on a recursively watched folders and we receive a
+ // modification event first but the folder has been deleted and later
+ // receive the delete event
+ if _, err := os.Lstat(fileEvent.Name); os.IsNotExist(err) {
+ // mark is as delete event
+ fileEvent.mask |= sys_NOTE_DELETE
+ }
+ }
+
+ if fileInfo != nil && fileInfo.IsDir() && fileEvent.IsModify() && !fileEvent.IsDelete() {
+ w.sendDirectoryChangeEvents(fileEvent.Name)
+ } else {
+ // Send the event on the events channel
+ w.internalEvent <- fileEvent
+ }
+
+ // Move to next event
+ events = events[1:]
+
+ if fileEvent.IsRename() {
+ w.removeWatch(fileEvent.Name)
+ w.femut.Lock()
+ delete(w.fileExists, fileEvent.Name)
+ w.femut.Unlock()
+ }
+ if fileEvent.IsDelete() {
+ w.removeWatch(fileEvent.Name)
+ w.femut.Lock()
+ delete(w.fileExists, fileEvent.Name)
+ w.femut.Unlock()
+
+ // Look for a file that may have overwritten this
+ // (ie mv f1 f2 will delete f2 then create f2)
+ fileDir, _ := filepath.Split(fileEvent.Name)
+ fileDir = filepath.Clean(fileDir)
+ w.wmut.Lock()
+ _, found := w.watches[fileDir]
+ w.wmut.Unlock()
+ if found {
+ // make sure the directory exist before we watch for changes. When we
+ // do a recursive watch and perform rm -fr, the parent directory might
+ // have gone missing, ignore the missing directory and let the
+ // upcoming delete event remove the watch form the parent folder
+ if _, err := os.Lstat(fileDir); !os.IsNotExist(err) {
+ w.sendDirectoryChangeEvents(fileDir)
+ }
+ }
+ }
+ }
+ }
+}
+
+func (w *Watcher) watchDirectoryFiles(dirPath string) error {
+ // Get all files
+ files, err := ioutil.ReadDir(dirPath)
+ if err != nil {
+ return err
+ }
+
+ // Search for new files
+ for _, fileInfo := range files {
+ filePath := filepath.Join(dirPath, fileInfo.Name())
+
+ // Inherit fsnFlags from parent directory
+ w.fsnmut.Lock()
+ if flags, found := w.fsnFlags[dirPath]; found {
+ w.fsnFlags[filePath] = flags
+ } else {
+ w.fsnFlags[filePath] = FSN_ALL
+ }
+ w.fsnmut.Unlock()
+
+ if fileInfo.IsDir() == false {
+ // Watch file to mimic linux fsnotify
+ e := w.addWatch(filePath, sys_NOTE_ALLEVENTS)
+ if e != nil {
+ return e
+ }
+ } else {
+ // If the user is currently watching directory
+ // we want to preserve the flags used
+ w.enmut.Lock()
+ currFlags, found := w.enFlags[filePath]
+ w.enmut.Unlock()
+ var newFlags uint32 = sys_NOTE_DELETE
+ if found {
+ newFlags |= currFlags
+ }
+
+ // Linux gives deletes if not explicitly watching
+ e := w.addWatch(filePath, newFlags)
+ if e != nil {
+ return e
+ }
+ }
+ w.femut.Lock()
+ w.fileExists[filePath] = true
+ w.femut.Unlock()
+ }
+
+ return nil
+}
+
+// sendDirectoryEvents searches the directory for newly created files
+// and sends them over the event channel. This functionality is to have
+// the BSD version of fsnotify match linux fsnotify which provides a
+// create event for files created in a watched directory.
+func (w *Watcher) sendDirectoryChangeEvents(dirPath string) {
+ // Get all files
+ files, err := ioutil.ReadDir(dirPath)
+ if err != nil {
+ w.Error <- err
+ }
+
+ // Search for new files
+ for _, fileInfo := range files {
+ filePath := filepath.Join(dirPath, fileInfo.Name())
+ w.femut.Lock()
+ _, doesExist := w.fileExists[filePath]
+ w.femut.Unlock()
+ if !doesExist {
+ // Inherit fsnFlags from parent directory
+ w.fsnmut.Lock()
+ if flags, found := w.fsnFlags[dirPath]; found {
+ w.fsnFlags[filePath] = flags
+ } else {
+ w.fsnFlags[filePath] = FSN_ALL
+ }
+ w.fsnmut.Unlock()
+
+ // Send create event
+ fileEvent := new(FileEvent)
+ fileEvent.Name = filePath
+ fileEvent.create = true
+ w.internalEvent <- fileEvent
+ }
+ w.femut.Lock()
+ w.fileExists[filePath] = true
+ w.femut.Unlock()
+ }
+ w.watchDirectoryFiles(dirPath)
+}
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_linux.go b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_linux.go
new file mode 100644
index 000000000..80ade879f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_linux.go
@@ -0,0 +1,304 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build linux
+
+package fsnotify
+
+import (
+ "errors"
+ "fmt"
+ "os"
+ "strings"
+ "sync"
+ "syscall"
+ "unsafe"
+)
+
+const (
+ // Options for inotify_init() are not exported
+ // sys_IN_CLOEXEC uint32 = syscall.IN_CLOEXEC
+ // sys_IN_NONBLOCK uint32 = syscall.IN_NONBLOCK
+
+ // Options for AddWatch
+ sys_IN_DONT_FOLLOW uint32 = syscall.IN_DONT_FOLLOW
+ sys_IN_ONESHOT uint32 = syscall.IN_ONESHOT
+ sys_IN_ONLYDIR uint32 = syscall.IN_ONLYDIR
+
+ // The "sys_IN_MASK_ADD" option is not exported, as AddWatch
+ // adds it automatically, if there is already a watch for the given path
+ // sys_IN_MASK_ADD uint32 = syscall.IN_MASK_ADD
+
+ // Events
+ sys_IN_ACCESS uint32 = syscall.IN_ACCESS
+ sys_IN_ALL_EVENTS uint32 = syscall.IN_ALL_EVENTS
+ sys_IN_ATTRIB uint32 = syscall.IN_ATTRIB
+ sys_IN_CLOSE uint32 = syscall.IN_CLOSE
+ sys_IN_CLOSE_NOWRITE uint32 = syscall.IN_CLOSE_NOWRITE
+ sys_IN_CLOSE_WRITE uint32 = syscall.IN_CLOSE_WRITE
+ sys_IN_CREATE uint32 = syscall.IN_CREATE
+ sys_IN_DELETE uint32 = syscall.IN_DELETE
+ sys_IN_DELETE_SELF uint32 = syscall.IN_DELETE_SELF
+ sys_IN_MODIFY uint32 = syscall.IN_MODIFY
+ sys_IN_MOVE uint32 = syscall.IN_MOVE
+ sys_IN_MOVED_FROM uint32 = syscall.IN_MOVED_FROM
+ sys_IN_MOVED_TO uint32 = syscall.IN_MOVED_TO
+ sys_IN_MOVE_SELF uint32 = syscall.IN_MOVE_SELF
+ sys_IN_OPEN uint32 = syscall.IN_OPEN
+
+ sys_AGNOSTIC_EVENTS = sys_IN_MOVED_TO | sys_IN_MOVED_FROM | sys_IN_CREATE | sys_IN_ATTRIB | sys_IN_MODIFY | sys_IN_MOVE_SELF | sys_IN_DELETE | sys_IN_DELETE_SELF
+
+ // Special events
+ sys_IN_ISDIR uint32 = syscall.IN_ISDIR
+ sys_IN_IGNORED uint32 = syscall.IN_IGNORED
+ sys_IN_Q_OVERFLOW uint32 = syscall.IN_Q_OVERFLOW
+ sys_IN_UNMOUNT uint32 = syscall.IN_UNMOUNT
+)
+
+type FileEvent struct {
+ mask uint32 // Mask of events
+ cookie uint32 // Unique cookie associating related events (for rename(2))
+ Name string // File name (optional)
+}
+
+// IsCreate reports whether the FileEvent was triggered by a creation
+func (e *FileEvent) IsCreate() bool {
+ return (e.mask&sys_IN_CREATE) == sys_IN_CREATE || (e.mask&sys_IN_MOVED_TO) == sys_IN_MOVED_TO
+}
+
+// IsDelete reports whether the FileEvent was triggered by a delete
+func (e *FileEvent) IsDelete() bool {
+ return (e.mask&sys_IN_DELETE_SELF) == sys_IN_DELETE_SELF || (e.mask&sys_IN_DELETE) == sys_IN_DELETE
+}
+
+// IsModify reports whether the FileEvent was triggered by a file modification or attribute change
+func (e *FileEvent) IsModify() bool {
+ return ((e.mask&sys_IN_MODIFY) == sys_IN_MODIFY || (e.mask&sys_IN_ATTRIB) == sys_IN_ATTRIB)
+}
+
+// IsRename reports whether the FileEvent was triggered by a change name
+func (e *FileEvent) IsRename() bool {
+ return ((e.mask&sys_IN_MOVE_SELF) == sys_IN_MOVE_SELF || (e.mask&sys_IN_MOVED_FROM) == sys_IN_MOVED_FROM)
+}
+
+// IsAttrib reports whether the FileEvent was triggered by a change in the file metadata.
+func (e *FileEvent) IsAttrib() bool {
+ return (e.mask & sys_IN_ATTRIB) == sys_IN_ATTRIB
+}
+
+type watch struct {
+ wd uint32 // Watch descriptor (as returned by the inotify_add_watch() syscall)
+ flags uint32 // inotify flags of this watch (see inotify(7) for the list of valid flags)
+}
+
+type Watcher struct {
+ mu sync.Mutex // Map access
+ fd int // File descriptor (as returned by the inotify_init() syscall)
+ watches map[string]*watch // Map of inotify watches (key: path)
+ fsnFlags map[string]uint32 // Map of watched files to flags used for filter
+ fsnmut sync.Mutex // Protects access to fsnFlags.
+ paths map[int]string // Map of watched paths (key: watch descriptor)
+ Error chan error // Errors are sent on this channel
+ internalEvent chan *FileEvent // Events are queued on this channel
+ Event chan *FileEvent // Events are returned on this channel
+ done chan bool // Channel for sending a "quit message" to the reader goroutine
+ isClosed bool // Set to true when Close() is first called
+}
+
+// NewWatcher creates and returns a new inotify instance using inotify_init(2)
+func NewWatcher() (*Watcher, error) {
+ fd, errno := syscall.InotifyInit()
+ if fd == -1 {
+ return nil, os.NewSyscallError("inotify_init", errno)
+ }
+ w := &Watcher{
+ fd: fd,
+ watches: make(map[string]*watch),
+ fsnFlags: make(map[string]uint32),
+ paths: make(map[int]string),
+ internalEvent: make(chan *FileEvent),
+ Event: make(chan *FileEvent),
+ Error: make(chan error),
+ done: make(chan bool, 1),
+ }
+
+ go w.readEvents()
+ go w.purgeEvents()
+ return w, nil
+}
+
+// Close closes an inotify watcher instance
+// It sends a message to the reader goroutine to quit and removes all watches
+// associated with the inotify instance
+func (w *Watcher) Close() error {
+ if w.isClosed {
+ return nil
+ }
+ w.isClosed = true
+
+ // Remove all watches
+ for path := range w.watches {
+ w.RemoveWatch(path)
+ }
+
+ // Send "quit" message to the reader goroutine
+ w.done <- true
+
+ return nil
+}
+
+// AddWatch adds path to the watched file set.
+// The flags are interpreted as described in inotify_add_watch(2).
+func (w *Watcher) addWatch(path string, flags uint32) error {
+ if w.isClosed {
+ return errors.New("inotify instance already closed")
+ }
+
+ w.mu.Lock()
+ watchEntry, found := w.watches[path]
+ w.mu.Unlock()
+ if found {
+ watchEntry.flags |= flags
+ flags |= syscall.IN_MASK_ADD
+ }
+ wd, errno := syscall.InotifyAddWatch(w.fd, path, flags)
+ if wd == -1 {
+ return errno
+ }
+
+ w.mu.Lock()
+ w.watches[path] = &watch{wd: uint32(wd), flags: flags}
+ w.paths[wd] = path
+ w.mu.Unlock()
+
+ return nil
+}
+
+// Watch adds path to the watched file set, watching all events.
+func (w *Watcher) watch(path string) error {
+ return w.addWatch(path, sys_AGNOSTIC_EVENTS)
+}
+
+// RemoveWatch removes path from the watched file set.
+func (w *Watcher) removeWatch(path string) error {
+ w.mu.Lock()
+ defer w.mu.Unlock()
+ watch, ok := w.watches[path]
+ if !ok {
+ return errors.New(fmt.Sprintf("can't remove non-existent inotify watch for: %s", path))
+ }
+ success, errno := syscall.InotifyRmWatch(w.fd, watch.wd)
+ if success == -1 {
+ return os.NewSyscallError("inotify_rm_watch", errno)
+ }
+ delete(w.watches, path)
+ return nil
+}
+
+// readEvents reads from the inotify file descriptor, converts the
+// received events into Event objects and sends them via the Event channel
+func (w *Watcher) readEvents() {
+ var (
+ buf [syscall.SizeofInotifyEvent * 4096]byte // Buffer for a maximum of 4096 raw events
+ n int // Number of bytes read with read()
+ errno error // Syscall errno
+ )
+
+ for {
+ // See if there is a message on the "done" channel
+ select {
+ case <-w.done:
+ syscall.Close(w.fd)
+ close(w.internalEvent)
+ close(w.Error)
+ return
+ default:
+ }
+
+ n, errno = syscall.Read(w.fd, buf[:])
+
+ // If EOF is received
+ if n == 0 {
+ syscall.Close(w.fd)
+ close(w.internalEvent)
+ close(w.Error)
+ return
+ }
+
+ if n < 0 {
+ w.Error <- os.NewSyscallError("read", errno)
+ continue
+ }
+ if n < syscall.SizeofInotifyEvent {
+ w.Error <- errors.New("inotify: short read in readEvents()")
+ continue
+ }
+
+ var offset uint32 = 0
+ // We don't know how many events we just read into the buffer
+ // While the offset points to at least one whole event...
+ for offset <= uint32(n-syscall.SizeofInotifyEvent) {
+ // Point "raw" to the event in the buffer
+ raw := (*syscall.InotifyEvent)(unsafe.Pointer(&buf[offset]))
+ event := new(FileEvent)
+ event.mask = uint32(raw.Mask)
+ event.cookie = uint32(raw.Cookie)
+ nameLen := uint32(raw.Len)
+ // If the event happened to the watched directory or the watched file, the kernel
+ // doesn't append the filename to the event, but we would like to always fill the
+ // the "Name" field with a valid filename. We retrieve the path of the watch from
+ // the "paths" map.
+ w.mu.Lock()
+ event.Name = w.paths[int(raw.Wd)]
+ w.mu.Unlock()
+ watchedName := event.Name
+ if nameLen > 0 {
+ // Point "bytes" at the first byte of the filename
+ bytes := (*[syscall.PathMax]byte)(unsafe.Pointer(&buf[offset+syscall.SizeofInotifyEvent]))
+ // The filename is padded with NUL bytes. TrimRight() gets rid of those.
+ event.Name += "/" + strings.TrimRight(string(bytes[0:nameLen]), "\000")
+ }
+
+ // Send the events that are not ignored on the events channel
+ if !event.ignoreLinux() {
+ // Setup FSNotify flags (inherit from directory watch)
+ w.fsnmut.Lock()
+ if _, fsnFound := w.fsnFlags[event.Name]; !fsnFound {
+ if fsnFlags, watchFound := w.fsnFlags[watchedName]; watchFound {
+ w.fsnFlags[event.Name] = fsnFlags
+ } else {
+ w.fsnFlags[event.Name] = FSN_ALL
+ }
+ }
+ w.fsnmut.Unlock()
+
+ w.internalEvent <- event
+ }
+
+ // Move to the next event in the buffer
+ offset += syscall.SizeofInotifyEvent + nameLen
+ }
+ }
+}
+
+// Certain types of events can be "ignored" and not sent over the Event
+// channel. Such as events marked ignore by the kernel, or MODIFY events
+// against files that do not exist.
+func (e *FileEvent) ignoreLinux() bool {
+ // Ignore anything the inotify API says to ignore
+ if e.mask&sys_IN_IGNORED == sys_IN_IGNORED {
+ return true
+ }
+
+ // If the event is not a DELETE or RENAME, the file must exist.
+ // Otherwise the event is ignored.
+ // *Note*: this was put in place because it was seen that a MODIFY
+ // event was sent after the DELETE. This ignores that MODIFY and
+ // assumes a DELETE will come or has come if the file doesn't exist.
+ if !(e.IsDelete() || e.IsRename()) {
+ _, statErr := os.Lstat(e.Name)
+ return os.IsNotExist(statErr)
+ }
+ return false
+}
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_open_bsd.go b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_open_bsd.go
new file mode 100644
index 000000000..37ea998d0
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_open_bsd.go
@@ -0,0 +1,11 @@
+// Copyright 2013 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build freebsd openbsd netbsd
+
+package fsnotify
+
+import "syscall"
+
+const open_FLAGS = syscall.O_NONBLOCK | syscall.O_RDONLY
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_open_darwin.go b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_open_darwin.go
new file mode 100644
index 000000000..d450318e6
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_open_darwin.go
@@ -0,0 +1,11 @@
+// Copyright 2013 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build darwin
+
+package fsnotify
+
+import "syscall"
+
+const open_FLAGS = syscall.O_EVTONLY
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_symlink_test.go b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_symlink_test.go
new file mode 100644
index 000000000..39061f844
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_symlink_test.go
@@ -0,0 +1,74 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build freebsd openbsd netbsd darwin linux
+
+package fsnotify
+
+import (
+ "os"
+ "path/filepath"
+ "testing"
+ "time"
+)
+
+func TestFsnotifyFakeSymlink(t *testing.T) {
+ watcher := newWatcher(t)
+
+ // Create directory to watch
+ testDir := tempMkdir(t)
+ defer os.RemoveAll(testDir)
+
+ var errorsReceived counter
+ // Receive errors on the error channel on a separate goroutine
+ go func() {
+ for errors := range watcher.Error {
+ t.Logf("Received error: %s", errors)
+ errorsReceived.increment()
+ }
+ }()
+
+ // Count the CREATE events received
+ var createEventsReceived, otherEventsReceived counter
+ go func() {
+ for ev := range watcher.Event {
+ t.Logf("event received: %s", ev)
+ if ev.IsCreate() {
+ createEventsReceived.increment()
+ } else {
+ otherEventsReceived.increment()
+ }
+ }
+ }()
+
+ addWatch(t, watcher, testDir)
+
+ if err := os.Symlink(filepath.Join(testDir, "zzz"), filepath.Join(testDir, "zzznew")); err != nil {
+ t.Fatalf("Failed to create bogus symlink: %s", err)
+ }
+ t.Logf("Created bogus symlink")
+
+ // We expect this event to be received almost immediately, but let's wait 500 ms to be sure
+ time.Sleep(500 * time.Millisecond)
+
+ // Should not be error, just no events for broken links (watching nothing)
+ if errorsReceived.value() > 0 {
+ t.Fatal("fsnotify errors have been received.")
+ }
+ if otherEventsReceived.value() > 0 {
+ t.Fatal("fsnotify other events received on the broken link")
+ }
+
+ // Except for 1 create event (for the link itself)
+ if createEventsReceived.value() == 0 {
+ t.Fatal("fsnotify create events were not received after 500 ms")
+ }
+ if createEventsReceived.value() > 1 {
+ t.Fatal("fsnotify more create events received than expected")
+ }
+
+ // Try closing the fsnotify instance
+ t.Log("calling Close()")
+ watcher.Close()
+}
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_test.go b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_test.go
new file mode 100644
index 000000000..3f5a6487f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_test.go
@@ -0,0 +1,1010 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package fsnotify
+
+import (
+ "io/ioutil"
+ "os"
+ "os/exec"
+ "path/filepath"
+ "runtime"
+ "sync/atomic"
+ "testing"
+ "time"
+)
+
+// An atomic counter
+type counter struct {
+ val int32
+}
+
+func (c *counter) increment() {
+ atomic.AddInt32(&c.val, 1)
+}
+
+func (c *counter) value() int32 {
+ return atomic.LoadInt32(&c.val)
+}
+
+func (c *counter) reset() {
+ atomic.StoreInt32(&c.val, 0)
+}
+
+// tempMkdir makes a temporary directory
+func tempMkdir(t *testing.T) string {
+ dir, err := ioutil.TempDir("", "fsnotify")
+ if err != nil {
+ t.Fatalf("failed to create test directory: %s", err)
+ }
+ return dir
+}
+
+// newWatcher initializes an fsnotify Watcher instance.
+func newWatcher(t *testing.T) *Watcher {
+ watcher, err := NewWatcher()
+ if err != nil {
+ t.Fatalf("NewWatcher() failed: %s", err)
+ }
+ return watcher
+}
+
+// addWatch adds a watch for a directory
+func addWatch(t *testing.T, watcher *Watcher, dir string) {
+ if err := watcher.Watch(dir); err != nil {
+ t.Fatalf("watcher.Watch(%q) failed: %s", dir, err)
+ }
+}
+
+func TestFsnotifyMultipleOperations(t *testing.T) {
+ watcher := newWatcher(t)
+
+ // Receive errors on the error channel on a separate goroutine
+ go func() {
+ for err := range watcher.Error {
+ t.Fatalf("error received: %s", err)
+ }
+ }()
+
+ // Create directory to watch
+ testDir := tempMkdir(t)
+ defer os.RemoveAll(testDir)
+
+ // Create directory that's not watched
+ testDirToMoveFiles := tempMkdir(t)
+ defer os.RemoveAll(testDirToMoveFiles)
+
+ testFile := filepath.Join(testDir, "TestFsnotifySeq.testfile")
+ testFileRenamed := filepath.Join(testDirToMoveFiles, "TestFsnotifySeqRename.testfile")
+
+ addWatch(t, watcher, testDir)
+
+ // Receive events on the event channel on a separate goroutine
+ eventstream := watcher.Event
+ var createReceived, modifyReceived, deleteReceived, renameReceived counter
+ done := make(chan bool)
+ go func() {
+ for event := range eventstream {
+ // Only count relevant events
+ if event.Name == filepath.Clean(testDir) || event.Name == filepath.Clean(testFile) {
+ t.Logf("event received: %s", event)
+ if event.IsDelete() {
+ deleteReceived.increment()
+ }
+ if event.IsModify() {
+ modifyReceived.increment()
+ }
+ if event.IsCreate() {
+ createReceived.increment()
+ }
+ if event.IsRename() {
+ renameReceived.increment()
+ }
+ } else {
+ t.Logf("unexpected event received: %s", event)
+ }
+ }
+ done <- true
+ }()
+
+ // Create a file
+ // This should add at least one event to the fsnotify event queue
+ var f *os.File
+ f, err := os.OpenFile(testFile, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Sync()
+
+ time.Sleep(time.Millisecond)
+ f.WriteString("data")
+ f.Sync()
+ f.Close()
+
+ time.Sleep(50 * time.Millisecond) // give system time to sync write change before delete
+
+ if err := testRename(testFile, testFileRenamed); err != nil {
+ t.Fatalf("rename failed: %s", err)
+ }
+
+ // Modify the file outside of the watched dir
+ f, err = os.Open(testFileRenamed)
+ if err != nil {
+ t.Fatalf("open test renamed file failed: %s", err)
+ }
+ f.WriteString("data")
+ f.Sync()
+ f.Close()
+
+ time.Sleep(50 * time.Millisecond) // give system time to sync write change before delete
+
+ // Recreate the file that was moved
+ f, err = os.OpenFile(testFile, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Close()
+ time.Sleep(50 * time.Millisecond) // give system time to sync write change before delete
+
+ // We expect this event to be received almost immediately, but let's wait 500 ms to be sure
+ time.Sleep(500 * time.Millisecond)
+ cReceived := createReceived.value()
+ if cReceived != 2 {
+ t.Fatalf("incorrect number of create events received after 500 ms (%d vs %d)", cReceived, 2)
+ }
+ mReceived := modifyReceived.value()
+ if mReceived != 1 {
+ t.Fatalf("incorrect number of modify events received after 500 ms (%d vs %d)", mReceived, 1)
+ }
+ dReceived := deleteReceived.value()
+ rReceived := renameReceived.value()
+ if dReceived+rReceived != 1 {
+ t.Fatalf("incorrect number of rename+delete events received after 500 ms (%d vs %d)", rReceived+dReceived, 1)
+ }
+
+ // Try closing the fsnotify instance
+ t.Log("calling Close()")
+ watcher.Close()
+ t.Log("waiting for the event channel to become closed...")
+ select {
+ case <-done:
+ t.Log("event channel closed")
+ case <-time.After(2 * time.Second):
+ t.Fatal("event stream was not closed after 2 seconds")
+ }
+}
+
+func TestFsnotifyMultipleCreates(t *testing.T) {
+ watcher := newWatcher(t)
+
+ // Receive errors on the error channel on a separate goroutine
+ go func() {
+ for err := range watcher.Error {
+ t.Fatalf("error received: %s", err)
+ }
+ }()
+
+ // Create directory to watch
+ testDir := tempMkdir(t)
+ defer os.RemoveAll(testDir)
+
+ testFile := filepath.Join(testDir, "TestFsnotifySeq.testfile")
+
+ addWatch(t, watcher, testDir)
+
+ // Receive events on the event channel on a separate goroutine
+ eventstream := watcher.Event
+ var createReceived, modifyReceived, deleteReceived counter
+ done := make(chan bool)
+ go func() {
+ for event := range eventstream {
+ // Only count relevant events
+ if event.Name == filepath.Clean(testDir) || event.Name == filepath.Clean(testFile) {
+ t.Logf("event received: %s", event)
+ if event.IsDelete() {
+ deleteReceived.increment()
+ }
+ if event.IsCreate() {
+ createReceived.increment()
+ }
+ if event.IsModify() {
+ modifyReceived.increment()
+ }
+ } else {
+ t.Logf("unexpected event received: %s", event)
+ }
+ }
+ done <- true
+ }()
+
+ // Create a file
+ // This should add at least one event to the fsnotify event queue
+ var f *os.File
+ f, err := os.OpenFile(testFile, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Sync()
+
+ time.Sleep(time.Millisecond)
+ f.WriteString("data")
+ f.Sync()
+ f.Close()
+
+ time.Sleep(50 * time.Millisecond) // give system time to sync write change before delete
+
+ os.Remove(testFile)
+
+ time.Sleep(50 * time.Millisecond) // give system time to sync write change before delete
+
+ // Recreate the file
+ f, err = os.OpenFile(testFile, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Close()
+ time.Sleep(50 * time.Millisecond) // give system time to sync write change before delete
+
+ // Modify
+ f, err = os.OpenFile(testFile, os.O_WRONLY, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Sync()
+
+ time.Sleep(time.Millisecond)
+ f.WriteString("data")
+ f.Sync()
+ f.Close()
+
+ time.Sleep(50 * time.Millisecond) // give system time to sync write change before delete
+
+ // Modify
+ f, err = os.OpenFile(testFile, os.O_WRONLY, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Sync()
+
+ time.Sleep(time.Millisecond)
+ f.WriteString("data")
+ f.Sync()
+ f.Close()
+
+ time.Sleep(50 * time.Millisecond) // give system time to sync write change before delete
+
+ // We expect this event to be received almost immediately, but let's wait 500 ms to be sure
+ time.Sleep(500 * time.Millisecond)
+ cReceived := createReceived.value()
+ if cReceived != 2 {
+ t.Fatalf("incorrect number of create events received after 500 ms (%d vs %d)", cReceived, 2)
+ }
+ mReceived := modifyReceived.value()
+ if mReceived < 3 {
+ t.Fatalf("incorrect number of modify events received after 500 ms (%d vs atleast %d)", mReceived, 3)
+ }
+ dReceived := deleteReceived.value()
+ if dReceived != 1 {
+ t.Fatalf("incorrect number of rename+delete events received after 500 ms (%d vs %d)", dReceived, 1)
+ }
+
+ // Try closing the fsnotify instance
+ t.Log("calling Close()")
+ watcher.Close()
+ t.Log("waiting for the event channel to become closed...")
+ select {
+ case <-done:
+ t.Log("event channel closed")
+ case <-time.After(2 * time.Second):
+ t.Fatal("event stream was not closed after 2 seconds")
+ }
+}
+
+func TestFsnotifyDirOnly(t *testing.T) {
+ watcher := newWatcher(t)
+
+ // Create directory to watch
+ testDir := tempMkdir(t)
+ defer os.RemoveAll(testDir)
+
+ // Create a file before watching directory
+ // This should NOT add any events to the fsnotify event queue
+ testFileAlreadyExists := filepath.Join(testDir, "TestFsnotifyEventsExisting.testfile")
+ {
+ var f *os.File
+ f, err := os.OpenFile(testFileAlreadyExists, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Sync()
+ f.Close()
+ }
+
+ addWatch(t, watcher, testDir)
+
+ // Receive errors on the error channel on a separate goroutine
+ go func() {
+ for err := range watcher.Error {
+ t.Fatalf("error received: %s", err)
+ }
+ }()
+
+ testFile := filepath.Join(testDir, "TestFsnotifyDirOnly.testfile")
+
+ // Receive events on the event channel on a separate goroutine
+ eventstream := watcher.Event
+ var createReceived, modifyReceived, deleteReceived counter
+ done := make(chan bool)
+ go func() {
+ for event := range eventstream {
+ // Only count relevant events
+ if event.Name == filepath.Clean(testDir) || event.Name == filepath.Clean(testFile) || event.Name == filepath.Clean(testFileAlreadyExists) {
+ t.Logf("event received: %s", event)
+ if event.IsDelete() {
+ deleteReceived.increment()
+ }
+ if event.IsModify() {
+ modifyReceived.increment()
+ }
+ if event.IsCreate() {
+ createReceived.increment()
+ }
+ } else {
+ t.Logf("unexpected event received: %s", event)
+ }
+ }
+ done <- true
+ }()
+
+ // Create a file
+ // This should add at least one event to the fsnotify event queue
+ var f *os.File
+ f, err := os.OpenFile(testFile, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Sync()
+
+ time.Sleep(time.Millisecond)
+ f.WriteString("data")
+ f.Sync()
+ f.Close()
+
+ time.Sleep(50 * time.Millisecond) // give system time to sync write change before delete
+
+ os.Remove(testFile)
+ os.Remove(testFileAlreadyExists)
+
+ // We expect this event to be received almost immediately, but let's wait 500 ms to be sure
+ time.Sleep(500 * time.Millisecond)
+ cReceived := createReceived.value()
+ if cReceived != 1 {
+ t.Fatalf("incorrect number of create events received after 500 ms (%d vs %d)", cReceived, 1)
+ }
+ mReceived := modifyReceived.value()
+ if mReceived != 1 {
+ t.Fatalf("incorrect number of modify events received after 500 ms (%d vs %d)", mReceived, 1)
+ }
+ dReceived := deleteReceived.value()
+ if dReceived != 2 {
+ t.Fatalf("incorrect number of delete events received after 500 ms (%d vs %d)", dReceived, 2)
+ }
+
+ // Try closing the fsnotify instance
+ t.Log("calling Close()")
+ watcher.Close()
+ t.Log("waiting for the event channel to become closed...")
+ select {
+ case <-done:
+ t.Log("event channel closed")
+ case <-time.After(2 * time.Second):
+ t.Fatal("event stream was not closed after 2 seconds")
+ }
+}
+
+func TestFsnotifyDeleteWatchedDir(t *testing.T) {
+ watcher := newWatcher(t)
+ defer watcher.Close()
+
+ // Create directory to watch
+ testDir := tempMkdir(t)
+ defer os.RemoveAll(testDir)
+
+ // Create a file before watching directory
+ testFileAlreadyExists := filepath.Join(testDir, "TestFsnotifyEventsExisting.testfile")
+ {
+ var f *os.File
+ f, err := os.OpenFile(testFileAlreadyExists, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Sync()
+ f.Close()
+ }
+
+ addWatch(t, watcher, testDir)
+
+ // Add a watch for testFile
+ addWatch(t, watcher, testFileAlreadyExists)
+
+ // Receive errors on the error channel on a separate goroutine
+ go func() {
+ for err := range watcher.Error {
+ t.Fatalf("error received: %s", err)
+ }
+ }()
+
+ // Receive events on the event channel on a separate goroutine
+ eventstream := watcher.Event
+ var deleteReceived counter
+ go func() {
+ for event := range eventstream {
+ // Only count relevant events
+ if event.Name == filepath.Clean(testDir) || event.Name == filepath.Clean(testFileAlreadyExists) {
+ t.Logf("event received: %s", event)
+ if event.IsDelete() {
+ deleteReceived.increment()
+ }
+ } else {
+ t.Logf("unexpected event received: %s", event)
+ }
+ }
+ }()
+
+ os.RemoveAll(testDir)
+
+ // We expect this event to be received almost immediately, but let's wait 500 ms to be sure
+ time.Sleep(500 * time.Millisecond)
+ dReceived := deleteReceived.value()
+ if dReceived < 2 {
+ t.Fatalf("did not receive at least %d delete events, received %d after 500 ms", 2, dReceived)
+ }
+}
+
+func TestFsnotifySubDir(t *testing.T) {
+ watcher := newWatcher(t)
+
+ // Create directory to watch
+ testDir := tempMkdir(t)
+ defer os.RemoveAll(testDir)
+
+ testFile1 := filepath.Join(testDir, "TestFsnotifyFile1.testfile")
+ testSubDir := filepath.Join(testDir, "sub")
+ testSubDirFile := filepath.Join(testDir, "sub/TestFsnotifyFile1.testfile")
+
+ // Receive errors on the error channel on a separate goroutine
+ go func() {
+ for err := range watcher.Error {
+ t.Fatalf("error received: %s", err)
+ }
+ }()
+
+ // Receive events on the event channel on a separate goroutine
+ eventstream := watcher.Event
+ var createReceived, deleteReceived counter
+ done := make(chan bool)
+ go func() {
+ for event := range eventstream {
+ // Only count relevant events
+ if event.Name == filepath.Clean(testDir) || event.Name == filepath.Clean(testSubDir) || event.Name == filepath.Clean(testFile1) {
+ t.Logf("event received: %s", event)
+ if event.IsCreate() {
+ createReceived.increment()
+ }
+ if event.IsDelete() {
+ deleteReceived.increment()
+ }
+ } else {
+ t.Logf("unexpected event received: %s", event)
+ }
+ }
+ done <- true
+ }()
+
+ addWatch(t, watcher, testDir)
+
+ // Create sub-directory
+ if err := os.Mkdir(testSubDir, 0777); err != nil {
+ t.Fatalf("failed to create test sub-directory: %s", err)
+ }
+
+ // Create a file
+ var f *os.File
+ f, err := os.OpenFile(testFile1, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Sync()
+ f.Close()
+
+ // Create a file (Should not see this! we are not watching subdir)
+ var fs *os.File
+ fs, err = os.OpenFile(testSubDirFile, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ fs.Sync()
+ fs.Close()
+
+ time.Sleep(200 * time.Millisecond)
+
+ // Make sure receive deletes for both file and sub-directory
+ os.RemoveAll(testSubDir)
+ os.Remove(testFile1)
+
+ // We expect this event to be received almost immediately, but let's wait 500 ms to be sure
+ time.Sleep(500 * time.Millisecond)
+ cReceived := createReceived.value()
+ if cReceived != 2 {
+ t.Fatalf("incorrect number of create events received after 500 ms (%d vs %d)", cReceived, 2)
+ }
+ dReceived := deleteReceived.value()
+ if dReceived != 2 {
+ t.Fatalf("incorrect number of delete events received after 500 ms (%d vs %d)", dReceived, 2)
+ }
+
+ // Try closing the fsnotify instance
+ t.Log("calling Close()")
+ watcher.Close()
+ t.Log("waiting for the event channel to become closed...")
+ select {
+ case <-done:
+ t.Log("event channel closed")
+ case <-time.After(2 * time.Second):
+ t.Fatal("event stream was not closed after 2 seconds")
+ }
+}
+
+func TestFsnotifyRename(t *testing.T) {
+ watcher := newWatcher(t)
+
+ // Create directory to watch
+ testDir := tempMkdir(t)
+ defer os.RemoveAll(testDir)
+
+ addWatch(t, watcher, testDir)
+
+ // Receive errors on the error channel on a separate goroutine
+ go func() {
+ for err := range watcher.Error {
+ t.Fatalf("error received: %s", err)
+ }
+ }()
+
+ testFile := filepath.Join(testDir, "TestFsnotifyEvents.testfile")
+ testFileRenamed := filepath.Join(testDir, "TestFsnotifyEvents.testfileRenamed")
+
+ // Receive events on the event channel on a separate goroutine
+ eventstream := watcher.Event
+ var renameReceived counter
+ done := make(chan bool)
+ go func() {
+ for event := range eventstream {
+ // Only count relevant events
+ if event.Name == filepath.Clean(testDir) || event.Name == filepath.Clean(testFile) || event.Name == filepath.Clean(testFileRenamed) {
+ if event.IsRename() {
+ renameReceived.increment()
+ }
+ t.Logf("event received: %s", event)
+ } else {
+ t.Logf("unexpected event received: %s", event)
+ }
+ }
+ done <- true
+ }()
+
+ // Create a file
+ // This should add at least one event to the fsnotify event queue
+ var f *os.File
+ f, err := os.OpenFile(testFile, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Sync()
+
+ f.WriteString("data")
+ f.Sync()
+ f.Close()
+
+ // Add a watch for testFile
+ addWatch(t, watcher, testFile)
+
+ if err := testRename(testFile, testFileRenamed); err != nil {
+ t.Fatalf("rename failed: %s", err)
+ }
+
+ // We expect this event to be received almost immediately, but let's wait 500 ms to be sure
+ time.Sleep(500 * time.Millisecond)
+ if renameReceived.value() == 0 {
+ t.Fatal("fsnotify rename events have not been received after 500 ms")
+ }
+
+ // Try closing the fsnotify instance
+ t.Log("calling Close()")
+ watcher.Close()
+ t.Log("waiting for the event channel to become closed...")
+ select {
+ case <-done:
+ t.Log("event channel closed")
+ case <-time.After(2 * time.Second):
+ t.Fatal("event stream was not closed after 2 seconds")
+ }
+
+ os.Remove(testFileRenamed)
+}
+
+func TestFsnotifyRenameToCreate(t *testing.T) {
+ watcher := newWatcher(t)
+
+ // Create directory to watch
+ testDir := tempMkdir(t)
+ defer os.RemoveAll(testDir)
+
+ // Create directory to get file
+ testDirFrom := tempMkdir(t)
+ defer os.RemoveAll(testDirFrom)
+
+ addWatch(t, watcher, testDir)
+
+ // Receive errors on the error channel on a separate goroutine
+ go func() {
+ for err := range watcher.Error {
+ t.Fatalf("error received: %s", err)
+ }
+ }()
+
+ testFile := filepath.Join(testDirFrom, "TestFsnotifyEvents.testfile")
+ testFileRenamed := filepath.Join(testDir, "TestFsnotifyEvents.testfileRenamed")
+
+ // Receive events on the event channel on a separate goroutine
+ eventstream := watcher.Event
+ var createReceived counter
+ done := make(chan bool)
+ go func() {
+ for event := range eventstream {
+ // Only count relevant events
+ if event.Name == filepath.Clean(testDir) || event.Name == filepath.Clean(testFile) || event.Name == filepath.Clean(testFileRenamed) {
+ if event.IsCreate() {
+ createReceived.increment()
+ }
+ t.Logf("event received: %s", event)
+ } else {
+ t.Logf("unexpected event received: %s", event)
+ }
+ }
+ done <- true
+ }()
+
+ // Create a file
+ // This should add at least one event to the fsnotify event queue
+ var f *os.File
+ f, err := os.OpenFile(testFile, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Sync()
+ f.Close()
+
+ if err := testRename(testFile, testFileRenamed); err != nil {
+ t.Fatalf("rename failed: %s", err)
+ }
+
+ // We expect this event to be received almost immediately, but let's wait 500 ms to be sure
+ time.Sleep(500 * time.Millisecond)
+ if createReceived.value() == 0 {
+ t.Fatal("fsnotify create events have not been received after 500 ms")
+ }
+
+ // Try closing the fsnotify instance
+ t.Log("calling Close()")
+ watcher.Close()
+ t.Log("waiting for the event channel to become closed...")
+ select {
+ case <-done:
+ t.Log("event channel closed")
+ case <-time.After(2 * time.Second):
+ t.Fatal("event stream was not closed after 2 seconds")
+ }
+
+ os.Remove(testFileRenamed)
+}
+
+func TestFsnotifyRenameToOverwrite(t *testing.T) {
+ switch runtime.GOOS {
+ case "plan9", "windows":
+ t.Skipf("skipping test on %q (os.Rename over existing file does not create event).", runtime.GOOS)
+ }
+
+ watcher := newWatcher(t)
+
+ // Create directory to watch
+ testDir := tempMkdir(t)
+ defer os.RemoveAll(testDir)
+
+ // Create directory to get file
+ testDirFrom := tempMkdir(t)
+ defer os.RemoveAll(testDirFrom)
+
+ testFile := filepath.Join(testDirFrom, "TestFsnotifyEvents.testfile")
+ testFileRenamed := filepath.Join(testDir, "TestFsnotifyEvents.testfileRenamed")
+
+ // Create a file
+ var fr *os.File
+ fr, err := os.OpenFile(testFileRenamed, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ fr.Sync()
+ fr.Close()
+
+ addWatch(t, watcher, testDir)
+
+ // Receive errors on the error channel on a separate goroutine
+ go func() {
+ for err := range watcher.Error {
+ t.Fatalf("error received: %s", err)
+ }
+ }()
+
+ // Receive events on the event channel on a separate goroutine
+ eventstream := watcher.Event
+ var eventReceived counter
+ done := make(chan bool)
+ go func() {
+ for event := range eventstream {
+ // Only count relevant events
+ if event.Name == filepath.Clean(testFileRenamed) {
+ eventReceived.increment()
+ t.Logf("event received: %s", event)
+ } else {
+ t.Logf("unexpected event received: %s", event)
+ }
+ }
+ done <- true
+ }()
+
+ // Create a file
+ // This should add at least one event to the fsnotify event queue
+ var f *os.File
+ f, err = os.OpenFile(testFile, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Sync()
+ f.Close()
+
+ if err := testRename(testFile, testFileRenamed); err != nil {
+ t.Fatalf("rename failed: %s", err)
+ }
+
+ // We expect this event to be received almost immediately, but let's wait 500 ms to be sure
+ time.Sleep(500 * time.Millisecond)
+ if eventReceived.value() == 0 {
+ t.Fatal("fsnotify events have not been received after 500 ms")
+ }
+
+ // Try closing the fsnotify instance
+ t.Log("calling Close()")
+ watcher.Close()
+ t.Log("waiting for the event channel to become closed...")
+ select {
+ case <-done:
+ t.Log("event channel closed")
+ case <-time.After(2 * time.Second):
+ t.Fatal("event stream was not closed after 2 seconds")
+ }
+
+ os.Remove(testFileRenamed)
+}
+
+func TestRemovalOfWatch(t *testing.T) {
+ // Create directory to watch
+ testDir := tempMkdir(t)
+ defer os.RemoveAll(testDir)
+
+ // Create a file before watching directory
+ testFileAlreadyExists := filepath.Join(testDir, "TestFsnotifyEventsExisting.testfile")
+ {
+ var f *os.File
+ f, err := os.OpenFile(testFileAlreadyExists, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Sync()
+ f.Close()
+ }
+
+ watcher := newWatcher(t)
+ defer watcher.Close()
+
+ addWatch(t, watcher, testDir)
+ if err := watcher.RemoveWatch(testDir); err != nil {
+ t.Fatalf("Could not remove the watch: %v\n", err)
+ }
+
+ go func() {
+ select {
+ case ev := <-watcher.Event:
+ t.Fatalf("We received event: %v\n", ev)
+ case <-time.After(500 * time.Millisecond):
+ t.Log("No event received, as expected.")
+ }
+ }()
+
+ time.Sleep(200 * time.Millisecond)
+ // Modify the file outside of the watched dir
+ f, err := os.Open(testFileAlreadyExists)
+ if err != nil {
+ t.Fatalf("Open test file failed: %s", err)
+ }
+ f.WriteString("data")
+ f.Sync()
+ f.Close()
+ if err := os.Chmod(testFileAlreadyExists, 0700); err != nil {
+ t.Fatalf("chmod failed: %s", err)
+ }
+ time.Sleep(400 * time.Millisecond)
+}
+
+func TestFsnotifyAttrib(t *testing.T) {
+ if runtime.GOOS == "windows" {
+ t.Skip("attributes don't work on Windows.")
+ }
+
+ watcher := newWatcher(t)
+
+ // Create directory to watch
+ testDir := tempMkdir(t)
+ defer os.RemoveAll(testDir)
+
+ // Receive errors on the error channel on a separate goroutine
+ go func() {
+ for err := range watcher.Error {
+ t.Fatalf("error received: %s", err)
+ }
+ }()
+
+ testFile := filepath.Join(testDir, "TestFsnotifyAttrib.testfile")
+
+ // Receive events on the event channel on a separate goroutine
+ eventstream := watcher.Event
+ // The modifyReceived counter counts IsModify events that are not IsAttrib,
+ // and the attribReceived counts IsAttrib events (which are also IsModify as
+ // a consequence).
+ var modifyReceived counter
+ var attribReceived counter
+ done := make(chan bool)
+ go func() {
+ for event := range eventstream {
+ // Only count relevant events
+ if event.Name == filepath.Clean(testDir) || event.Name == filepath.Clean(testFile) {
+ if event.IsModify() {
+ modifyReceived.increment()
+ }
+ if event.IsAttrib() {
+ attribReceived.increment()
+ }
+ t.Logf("event received: %s", event)
+ } else {
+ t.Logf("unexpected event received: %s", event)
+ }
+ }
+ done <- true
+ }()
+
+ // Create a file
+ // This should add at least one event to the fsnotify event queue
+ var f *os.File
+ f, err := os.OpenFile(testFile, os.O_WRONLY|os.O_CREATE, 0666)
+ if err != nil {
+ t.Fatalf("creating test file failed: %s", err)
+ }
+ f.Sync()
+
+ f.WriteString("data")
+ f.Sync()
+ f.Close()
+
+ // Add a watch for testFile
+ addWatch(t, watcher, testFile)
+
+ if err := os.Chmod(testFile, 0700); err != nil {
+ t.Fatalf("chmod failed: %s", err)
+ }
+
+ // We expect this event to be received almost immediately, but let's wait 500 ms to be sure
+ // Creating/writing a file changes also the mtime, so IsAttrib should be set to true here
+ time.Sleep(500 * time.Millisecond)
+ if modifyReceived.value() == 0 {
+ t.Fatal("fsnotify modify events have not received after 500 ms")
+ }
+ if attribReceived.value() == 0 {
+ t.Fatal("fsnotify attribute events have not received after 500 ms")
+ }
+
+ // Modifying the contents of the file does not set the attrib flag (although eg. the mtime
+ // might have been modified).
+ modifyReceived.reset()
+ attribReceived.reset()
+
+ f, err = os.OpenFile(testFile, os.O_WRONLY, 0)
+ if err != nil {
+ t.Fatalf("reopening test file failed: %s", err)
+ }
+
+ f.WriteString("more data")
+ f.Sync()
+ f.Close()
+
+ time.Sleep(500 * time.Millisecond)
+
+ if modifyReceived.value() != 1 {
+ t.Fatal("didn't receive a modify event after changing test file contents")
+ }
+
+ if attribReceived.value() != 0 {
+ t.Fatal("did receive an unexpected attrib event after changing test file contents")
+ }
+
+ modifyReceived.reset()
+ attribReceived.reset()
+
+ // Doing a chmod on the file should trigger an event with the "attrib" flag set (the contents
+ // of the file are not changed though)
+ if err := os.Chmod(testFile, 0600); err != nil {
+ t.Fatalf("chmod failed: %s", err)
+ }
+
+ time.Sleep(500 * time.Millisecond)
+
+ if attribReceived.value() != 1 {
+ t.Fatal("didn't receive an attribute change after 500ms")
+ }
+
+ // Try closing the fsnotify instance
+ t.Log("calling Close()")
+ watcher.Close()
+ t.Log("waiting for the event channel to become closed...")
+ select {
+ case <-done:
+ t.Log("event channel closed")
+ case <-time.After(1e9):
+ t.Fatal("event stream was not closed after 1 second")
+ }
+
+ os.Remove(testFile)
+}
+
+func TestFsnotifyClose(t *testing.T) {
+ watcher := newWatcher(t)
+ watcher.Close()
+
+ var done int32
+ go func() {
+ watcher.Close()
+ atomic.StoreInt32(&done, 1)
+ }()
+
+ time.Sleep(50e6) // 50 ms
+ if atomic.LoadInt32(&done) == 0 {
+ t.Fatal("double Close() test failed: second Close() call didn't return")
+ }
+
+ testDir := tempMkdir(t)
+ defer os.RemoveAll(testDir)
+
+ if err := watcher.Watch(testDir); err == nil {
+ t.Fatal("expected error on Watch() after Close(), got nil")
+ }
+}
+
+func testRename(file1, file2 string) error {
+ switch runtime.GOOS {
+ case "windows", "plan9":
+ return os.Rename(file1, file2)
+ default:
+ cmd := exec.Command("mv", file1, file2)
+ return cmd.Run()
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_windows.go b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_windows.go
new file mode 100644
index 000000000..d88ae6340
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/howeyc/fsnotify/fsnotify_windows.go
@@ -0,0 +1,598 @@
+// Copyright 2011 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build windows
+
+package fsnotify
+
+import (
+ "errors"
+ "fmt"
+ "os"
+ "path/filepath"
+ "runtime"
+ "sync"
+ "syscall"
+ "unsafe"
+)
+
+const (
+ // Options for AddWatch
+ sys_FS_ONESHOT = 0x80000000
+ sys_FS_ONLYDIR = 0x1000000
+
+ // Events
+ sys_FS_ACCESS = 0x1
+ sys_FS_ALL_EVENTS = 0xfff
+ sys_FS_ATTRIB = 0x4
+ sys_FS_CLOSE = 0x18
+ sys_FS_CREATE = 0x100
+ sys_FS_DELETE = 0x200
+ sys_FS_DELETE_SELF = 0x400
+ sys_FS_MODIFY = 0x2
+ sys_FS_MOVE = 0xc0
+ sys_FS_MOVED_FROM = 0x40
+ sys_FS_MOVED_TO = 0x80
+ sys_FS_MOVE_SELF = 0x800
+
+ // Special events
+ sys_FS_IGNORED = 0x8000
+ sys_FS_Q_OVERFLOW = 0x4000
+)
+
+const (
+ // TODO(nj): Use syscall.ERROR_MORE_DATA from ztypes_windows in Go 1.3+
+ sys_ERROR_MORE_DATA syscall.Errno = 234
+)
+
+// Event is the type of the notification messages
+// received on the watcher's Event channel.
+type FileEvent struct {
+ mask uint32 // Mask of events
+ cookie uint32 // Unique cookie associating related events (for rename)
+ Name string // File name (optional)
+}
+
+// IsCreate reports whether the FileEvent was triggered by a creation
+func (e *FileEvent) IsCreate() bool { return (e.mask & sys_FS_CREATE) == sys_FS_CREATE }
+
+// IsDelete reports whether the FileEvent was triggered by a delete
+func (e *FileEvent) IsDelete() bool {
+ return ((e.mask&sys_FS_DELETE) == sys_FS_DELETE || (e.mask&sys_FS_DELETE_SELF) == sys_FS_DELETE_SELF)
+}
+
+// IsModify reports whether the FileEvent was triggered by a file modification or attribute change
+func (e *FileEvent) IsModify() bool {
+ return ((e.mask&sys_FS_MODIFY) == sys_FS_MODIFY || (e.mask&sys_FS_ATTRIB) == sys_FS_ATTRIB)
+}
+
+// IsRename reports whether the FileEvent was triggered by a change name
+func (e *FileEvent) IsRename() bool {
+ return ((e.mask&sys_FS_MOVE) == sys_FS_MOVE || (e.mask&sys_FS_MOVE_SELF) == sys_FS_MOVE_SELF || (e.mask&sys_FS_MOVED_FROM) == sys_FS_MOVED_FROM || (e.mask&sys_FS_MOVED_TO) == sys_FS_MOVED_TO)
+}
+
+// IsAttrib reports whether the FileEvent was triggered by a change in the file metadata.
+func (e *FileEvent) IsAttrib() bool {
+ return (e.mask & sys_FS_ATTRIB) == sys_FS_ATTRIB
+}
+
+const (
+ opAddWatch = iota
+ opRemoveWatch
+)
+
+const (
+ provisional uint64 = 1 << (32 + iota)
+)
+
+type input struct {
+ op int
+ path string
+ flags uint32
+ reply chan error
+}
+
+type inode struct {
+ handle syscall.Handle
+ volume uint32
+ index uint64
+}
+
+type watch struct {
+ ov syscall.Overlapped
+ ino *inode // i-number
+ path string // Directory path
+ mask uint64 // Directory itself is being watched with these notify flags
+ names map[string]uint64 // Map of names being watched and their notify flags
+ rename string // Remembers the old name while renaming a file
+ buf [4096]byte
+}
+
+type indexMap map[uint64]*watch
+type watchMap map[uint32]indexMap
+
+// A Watcher waits for and receives event notifications
+// for a specific set of files and directories.
+type Watcher struct {
+ mu sync.Mutex // Map access
+ port syscall.Handle // Handle to completion port
+ watches watchMap // Map of watches (key: i-number)
+ fsnFlags map[string]uint32 // Map of watched files to flags used for filter
+ fsnmut sync.Mutex // Protects access to fsnFlags.
+ input chan *input // Inputs to the reader are sent on this channel
+ internalEvent chan *FileEvent // Events are queued on this channel
+ Event chan *FileEvent // Events are returned on this channel
+ Error chan error // Errors are sent on this channel
+ isClosed bool // Set to true when Close() is first called
+ quit chan chan<- error
+ cookie uint32
+}
+
+// NewWatcher creates and returns a Watcher.
+func NewWatcher() (*Watcher, error) {
+ port, e := syscall.CreateIoCompletionPort(syscall.InvalidHandle, 0, 0, 0)
+ if e != nil {
+ return nil, os.NewSyscallError("CreateIoCompletionPort", e)
+ }
+ w := &Watcher{
+ port: port,
+ watches: make(watchMap),
+ fsnFlags: make(map[string]uint32),
+ input: make(chan *input, 1),
+ Event: make(chan *FileEvent, 50),
+ internalEvent: make(chan *FileEvent),
+ Error: make(chan error),
+ quit: make(chan chan<- error, 1),
+ }
+ go w.readEvents()
+ go w.purgeEvents()
+ return w, nil
+}
+
+// Close closes a Watcher.
+// It sends a message to the reader goroutine to quit and removes all watches
+// associated with the watcher.
+func (w *Watcher) Close() error {
+ if w.isClosed {
+ return nil
+ }
+ w.isClosed = true
+
+ // Send "quit" message to the reader goroutine
+ ch := make(chan error)
+ w.quit <- ch
+ if err := w.wakeupReader(); err != nil {
+ return err
+ }
+ return <-ch
+}
+
+// AddWatch adds path to the watched file set.
+func (w *Watcher) AddWatch(path string, flags uint32) error {
+ if w.isClosed {
+ return errors.New("watcher already closed")
+ }
+ in := &input{
+ op: opAddWatch,
+ path: filepath.Clean(path),
+ flags: flags,
+ reply: make(chan error),
+ }
+ w.input <- in
+ if err := w.wakeupReader(); err != nil {
+ return err
+ }
+ return <-in.reply
+}
+
+// Watch adds path to the watched file set, watching all events.
+func (w *Watcher) watch(path string) error {
+ return w.AddWatch(path, sys_FS_ALL_EVENTS)
+}
+
+// RemoveWatch removes path from the watched file set.
+func (w *Watcher) removeWatch(path string) error {
+ in := &input{
+ op: opRemoveWatch,
+ path: filepath.Clean(path),
+ reply: make(chan error),
+ }
+ w.input <- in
+ if err := w.wakeupReader(); err != nil {
+ return err
+ }
+ return <-in.reply
+}
+
+func (w *Watcher) wakeupReader() error {
+ e := syscall.PostQueuedCompletionStatus(w.port, 0, 0, nil)
+ if e != nil {
+ return os.NewSyscallError("PostQueuedCompletionStatus", e)
+ }
+ return nil
+}
+
+func getDir(pathname string) (dir string, err error) {
+ attr, e := syscall.GetFileAttributes(syscall.StringToUTF16Ptr(pathname))
+ if e != nil {
+ return "", os.NewSyscallError("GetFileAttributes", e)
+ }
+ if attr&syscall.FILE_ATTRIBUTE_DIRECTORY != 0 {
+ dir = pathname
+ } else {
+ dir, _ = filepath.Split(pathname)
+ dir = filepath.Clean(dir)
+ }
+ return
+}
+
+func getIno(path string) (ino *inode, err error) {
+ h, e := syscall.CreateFile(syscall.StringToUTF16Ptr(path),
+ syscall.FILE_LIST_DIRECTORY,
+ syscall.FILE_SHARE_READ|syscall.FILE_SHARE_WRITE|syscall.FILE_SHARE_DELETE,
+ nil, syscall.OPEN_EXISTING,
+ syscall.FILE_FLAG_BACKUP_SEMANTICS|syscall.FILE_FLAG_OVERLAPPED, 0)
+ if e != nil {
+ return nil, os.NewSyscallError("CreateFile", e)
+ }
+ var fi syscall.ByHandleFileInformation
+ if e = syscall.GetFileInformationByHandle(h, &fi); e != nil {
+ syscall.CloseHandle(h)
+ return nil, os.NewSyscallError("GetFileInformationByHandle", e)
+ }
+ ino = &inode{
+ handle: h,
+ volume: fi.VolumeSerialNumber,
+ index: uint64(fi.FileIndexHigh)<<32 | uint64(fi.FileIndexLow),
+ }
+ return ino, nil
+}
+
+// Must run within the I/O thread.
+func (m watchMap) get(ino *inode) *watch {
+ if i := m[ino.volume]; i != nil {
+ return i[ino.index]
+ }
+ return nil
+}
+
+// Must run within the I/O thread.
+func (m watchMap) set(ino *inode, watch *watch) {
+ i := m[ino.volume]
+ if i == nil {
+ i = make(indexMap)
+ m[ino.volume] = i
+ }
+ i[ino.index] = watch
+}
+
+// Must run within the I/O thread.
+func (w *Watcher) addWatch(pathname string, flags uint64) error {
+ dir, err := getDir(pathname)
+ if err != nil {
+ return err
+ }
+ if flags&sys_FS_ONLYDIR != 0 && pathname != dir {
+ return nil
+ }
+ ino, err := getIno(dir)
+ if err != nil {
+ return err
+ }
+ w.mu.Lock()
+ watchEntry := w.watches.get(ino)
+ w.mu.Unlock()
+ if watchEntry == nil {
+ if _, e := syscall.CreateIoCompletionPort(ino.handle, w.port, 0, 0); e != nil {
+ syscall.CloseHandle(ino.handle)
+ return os.NewSyscallError("CreateIoCompletionPort", e)
+ }
+ watchEntry = &watch{
+ ino: ino,
+ path: dir,
+ names: make(map[string]uint64),
+ }
+ w.mu.Lock()
+ w.watches.set(ino, watchEntry)
+ w.mu.Unlock()
+ flags |= provisional
+ } else {
+ syscall.CloseHandle(ino.handle)
+ }
+ if pathname == dir {
+ watchEntry.mask |= flags
+ } else {
+ watchEntry.names[filepath.Base(pathname)] |= flags
+ }
+ if err = w.startRead(watchEntry); err != nil {
+ return err
+ }
+ if pathname == dir {
+ watchEntry.mask &= ^provisional
+ } else {
+ watchEntry.names[filepath.Base(pathname)] &= ^provisional
+ }
+ return nil
+}
+
+// Must run within the I/O thread.
+func (w *Watcher) remWatch(pathname string) error {
+ dir, err := getDir(pathname)
+ if err != nil {
+ return err
+ }
+ ino, err := getIno(dir)
+ if err != nil {
+ return err
+ }
+ w.mu.Lock()
+ watch := w.watches.get(ino)
+ w.mu.Unlock()
+ if watch == nil {
+ return fmt.Errorf("can't remove non-existent watch for: %s", pathname)
+ }
+ if pathname == dir {
+ w.sendEvent(watch.path, watch.mask&sys_FS_IGNORED)
+ watch.mask = 0
+ } else {
+ name := filepath.Base(pathname)
+ w.sendEvent(watch.path+"\\"+name, watch.names[name]&sys_FS_IGNORED)
+ delete(watch.names, name)
+ }
+ return w.startRead(watch)
+}
+
+// Must run within the I/O thread.
+func (w *Watcher) deleteWatch(watch *watch) {
+ for name, mask := range watch.names {
+ if mask&provisional == 0 {
+ w.sendEvent(watch.path+"\\"+name, mask&sys_FS_IGNORED)
+ }
+ delete(watch.names, name)
+ }
+ if watch.mask != 0 {
+ if watch.mask&provisional == 0 {
+ w.sendEvent(watch.path, watch.mask&sys_FS_IGNORED)
+ }
+ watch.mask = 0
+ }
+}
+
+// Must run within the I/O thread.
+func (w *Watcher) startRead(watch *watch) error {
+ if e := syscall.CancelIo(watch.ino.handle); e != nil {
+ w.Error <- os.NewSyscallError("CancelIo", e)
+ w.deleteWatch(watch)
+ }
+ mask := toWindowsFlags(watch.mask)
+ for _, m := range watch.names {
+ mask |= toWindowsFlags(m)
+ }
+ if mask == 0 {
+ if e := syscall.CloseHandle(watch.ino.handle); e != nil {
+ w.Error <- os.NewSyscallError("CloseHandle", e)
+ }
+ w.mu.Lock()
+ delete(w.watches[watch.ino.volume], watch.ino.index)
+ w.mu.Unlock()
+ return nil
+ }
+ e := syscall.ReadDirectoryChanges(watch.ino.handle, &watch.buf[0],
+ uint32(unsafe.Sizeof(watch.buf)), false, mask, nil, &watch.ov, 0)
+ if e != nil {
+ err := os.NewSyscallError("ReadDirectoryChanges", e)
+ if e == syscall.ERROR_ACCESS_DENIED && watch.mask&provisional == 0 {
+ // Watched directory was probably removed
+ if w.sendEvent(watch.path, watch.mask&sys_FS_DELETE_SELF) {
+ if watch.mask&sys_FS_ONESHOT != 0 {
+ watch.mask = 0
+ }
+ }
+ err = nil
+ }
+ w.deleteWatch(watch)
+ w.startRead(watch)
+ return err
+ }
+ return nil
+}
+
+// readEvents reads from the I/O completion port, converts the
+// received events into Event objects and sends them via the Event channel.
+// Entry point to the I/O thread.
+func (w *Watcher) readEvents() {
+ var (
+ n, key uint32
+ ov *syscall.Overlapped
+ )
+ runtime.LockOSThread()
+
+ for {
+ e := syscall.GetQueuedCompletionStatus(w.port, &n, &key, &ov, syscall.INFINITE)
+ watch := (*watch)(unsafe.Pointer(ov))
+
+ if watch == nil {
+ select {
+ case ch := <-w.quit:
+ w.mu.Lock()
+ var indexes []indexMap
+ for _, index := range w.watches {
+ indexes = append(indexes, index)
+ }
+ w.mu.Unlock()
+ for _, index := range indexes {
+ for _, watch := range index {
+ w.deleteWatch(watch)
+ w.startRead(watch)
+ }
+ }
+ var err error
+ if e := syscall.CloseHandle(w.port); e != nil {
+ err = os.NewSyscallError("CloseHandle", e)
+ }
+ close(w.internalEvent)
+ close(w.Error)
+ ch <- err
+ return
+ case in := <-w.input:
+ switch in.op {
+ case opAddWatch:
+ in.reply <- w.addWatch(in.path, uint64(in.flags))
+ case opRemoveWatch:
+ in.reply <- w.remWatch(in.path)
+ }
+ default:
+ }
+ continue
+ }
+
+ switch e {
+ case sys_ERROR_MORE_DATA:
+ if watch == nil {
+ w.Error <- errors.New("ERROR_MORE_DATA has unexpectedly null lpOverlapped buffer")
+ } else {
+ // The i/o succeeded but the buffer is full.
+ // In theory we should be building up a full packet.
+ // In practice we can get away with just carrying on.
+ n = uint32(unsafe.Sizeof(watch.buf))
+ }
+ case syscall.ERROR_ACCESS_DENIED:
+ // Watched directory was probably removed
+ w.sendEvent(watch.path, watch.mask&sys_FS_DELETE_SELF)
+ w.deleteWatch(watch)
+ w.startRead(watch)
+ continue
+ case syscall.ERROR_OPERATION_ABORTED:
+ // CancelIo was called on this handle
+ continue
+ default:
+ w.Error <- os.NewSyscallError("GetQueuedCompletionPort", e)
+ continue
+ case nil:
+ }
+
+ var offset uint32
+ for {
+ if n == 0 {
+ w.internalEvent <- &FileEvent{mask: sys_FS_Q_OVERFLOW}
+ w.Error <- errors.New("short read in readEvents()")
+ break
+ }
+
+ // Point "raw" to the event in the buffer
+ raw := (*syscall.FileNotifyInformation)(unsafe.Pointer(&watch.buf[offset]))
+ buf := (*[syscall.MAX_PATH]uint16)(unsafe.Pointer(&raw.FileName))
+ name := syscall.UTF16ToString(buf[:raw.FileNameLength/2])
+ fullname := watch.path + "\\" + name
+
+ var mask uint64
+ switch raw.Action {
+ case syscall.FILE_ACTION_REMOVED:
+ mask = sys_FS_DELETE_SELF
+ case syscall.FILE_ACTION_MODIFIED:
+ mask = sys_FS_MODIFY
+ case syscall.FILE_ACTION_RENAMED_OLD_NAME:
+ watch.rename = name
+ case syscall.FILE_ACTION_RENAMED_NEW_NAME:
+ if watch.names[watch.rename] != 0 {
+ watch.names[name] |= watch.names[watch.rename]
+ delete(watch.names, watch.rename)
+ mask = sys_FS_MOVE_SELF
+ }
+ }
+
+ sendNameEvent := func() {
+ if w.sendEvent(fullname, watch.names[name]&mask) {
+ if watch.names[name]&sys_FS_ONESHOT != 0 {
+ delete(watch.names, name)
+ }
+ }
+ }
+ if raw.Action != syscall.FILE_ACTION_RENAMED_NEW_NAME {
+ sendNameEvent()
+ }
+ if raw.Action == syscall.FILE_ACTION_REMOVED {
+ w.sendEvent(fullname, watch.names[name]&sys_FS_IGNORED)
+ delete(watch.names, name)
+ }
+ if w.sendEvent(fullname, watch.mask&toFSnotifyFlags(raw.Action)) {
+ if watch.mask&sys_FS_ONESHOT != 0 {
+ watch.mask = 0
+ }
+ }
+ if raw.Action == syscall.FILE_ACTION_RENAMED_NEW_NAME {
+ fullname = watch.path + "\\" + watch.rename
+ sendNameEvent()
+ }
+
+ // Move to the next event in the buffer
+ if raw.NextEntryOffset == 0 {
+ break
+ }
+ offset += raw.NextEntryOffset
+
+ // Error!
+ if offset >= n {
+ w.Error <- errors.New("Windows system assumed buffer larger than it is, events have likely been missed.")
+ break
+ }
+ }
+
+ if err := w.startRead(watch); err != nil {
+ w.Error <- err
+ }
+ }
+}
+
+func (w *Watcher) sendEvent(name string, mask uint64) bool {
+ if mask == 0 {
+ return false
+ }
+ event := &FileEvent{mask: uint32(mask), Name: name}
+ if mask&sys_FS_MOVE != 0 {
+ if mask&sys_FS_MOVED_FROM != 0 {
+ w.cookie++
+ }
+ event.cookie = w.cookie
+ }
+ select {
+ case ch := <-w.quit:
+ w.quit <- ch
+ case w.Event <- event:
+ }
+ return true
+}
+
+func toWindowsFlags(mask uint64) uint32 {
+ var m uint32
+ if mask&sys_FS_ACCESS != 0 {
+ m |= syscall.FILE_NOTIFY_CHANGE_LAST_ACCESS
+ }
+ if mask&sys_FS_MODIFY != 0 {
+ m |= syscall.FILE_NOTIFY_CHANGE_LAST_WRITE
+ }
+ if mask&sys_FS_ATTRIB != 0 {
+ m |= syscall.FILE_NOTIFY_CHANGE_ATTRIBUTES
+ }
+ if mask&(sys_FS_MOVE|sys_FS_CREATE|sys_FS_DELETE) != 0 {
+ m |= syscall.FILE_NOTIFY_CHANGE_FILE_NAME | syscall.FILE_NOTIFY_CHANGE_DIR_NAME
+ }
+ return m
+}
+
+func toFSnotifyFlags(action uint32) uint64 {
+ switch action {
+ case syscall.FILE_ACTION_ADDED:
+ return sys_FS_CREATE
+ case syscall.FILE_ACTION_REMOVED:
+ return sys_FS_DELETE
+ case syscall.FILE_ACTION_MODIFIED:
+ return sys_FS_MODIFY
+ case syscall.FILE_ACTION_RENAMED_OLD_NAME:
+ return sys_FS_MOVED_FROM
+ case syscall.FILE_ACTION_RENAMED_NEW_NAME:
+ return sys_FS_MOVED_TO
+ }
+ return 0
+}
diff --git a/Godeps/_workspace/src/github.com/jackpal/go-nat-pmp/LICENSE b/Godeps/_workspace/src/github.com/jackpal/go-nat-pmp/LICENSE
new file mode 100644
index 000000000..249514b0f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/jackpal/go-nat-pmp/LICENSE
@@ -0,0 +1,13 @@
+ Copyright 2013 John Howard Palevich
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/Godeps/_workspace/src/github.com/jackpal/go-nat-pmp/README.md b/Godeps/_workspace/src/github.com/jackpal/go-nat-pmp/README.md
new file mode 100644
index 000000000..15f72fd81
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/jackpal/go-nat-pmp/README.md
@@ -0,0 +1,48 @@
+go-nat-pmp
+==========
+
+A Go language client for the NAT-PMP internet protocol for port mapping and discovering the external
+IP address of a firewall.
+
+NAT-PMP is supported by Apple brand routers and open source routers like Tomato and DD-WRT.
+
+See http://tools.ietf.org/html/draft-cheshire-nat-pmp-03
+
+Get the package
+---------------
+
+ go get -u github.com/jackpal/go-nat-pmp
+
+Usage
+-----
+
+ import natpmp "github.com/jackpal/go-nat-pmp"
+
+ client := natpmp.NewClient(gatewayIP)
+ response, err := client.GetExternalAddress()
+ if err != nil {
+ return
+ }
+ print("External IP address:", response.ExternalIPAddress)
+
+Notes
+-----
+
+There doesn't seem to be an easy way to programmatically determine the address of the default gateway.
+(Linux and OSX have a "routes" kernel API that can be examined to get this information, but there is
+no Go package for getting this information.)
+
+Clients
+-------
+
+This library is used in the Taipei Torrent BitTorrent client http://github.com/jackpal/Taipei-Torrent
+
+Complete documentation
+----------------------
+
+ http://godoc.org/github.com/jackpal/go-nat-pmp
+
+License
+-------
+
+This project is licensed under the Apache License 2.0.
diff --git a/Godeps/_workspace/src/github.com/jackpal/go-nat-pmp/natpmp.go b/Godeps/_workspace/src/github.com/jackpal/go-nat-pmp/natpmp.go
new file mode 100644
index 000000000..8ce4e8342
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/jackpal/go-nat-pmp/natpmp.go
@@ -0,0 +1,184 @@
+package natpmp
+
+import (
+ "fmt"
+ "log"
+ "net"
+ "time"
+)
+
+// Implement the NAT-PMP protocol, typically supported by Apple routers and open source
+// routers such as DD-WRT and Tomato.
+//
+// See http://tools.ietf.org/html/draft-cheshire-nat-pmp-03
+//
+// Usage:
+//
+// client := natpmp.NewClient(gatewayIP)
+// response, err := client.GetExternalAddress()
+
+const nAT_PMP_PORT = 5351
+
+const nAT_TRIES = 9
+
+const nAT_INITIAL_MS = 250
+
+// The recommended mapping lifetime for AddPortMapping
+const RECOMMENDED_MAPPING_LIFETIME_SECONDS = 3600
+
+// Client is a NAT-PMP protocol client.
+type Client struct {
+ gateway net.IP
+}
+
+// Create a NAT-PMP client for the NAT-PMP server at the gateway.
+func NewClient(gateway net.IP) (nat *Client) {
+ return &Client{gateway}
+}
+
+// Results of the NAT-PMP GetExternalAddress operation
+type GetExternalAddressResult struct {
+ SecondsSinceStartOfEpoc uint32
+ ExternalIPAddress [4]byte
+}
+
+// Get the external address of the router.
+func (n *Client) GetExternalAddress() (result *GetExternalAddressResult, err error) {
+ msg := make([]byte, 2)
+ msg[0] = 0 // Version 0
+ msg[1] = 0 // OP Code 0
+ response, err := n.rpc(msg, 12)
+ if err != nil {
+ return
+ }
+ result = &GetExternalAddressResult{}
+ result.SecondsSinceStartOfEpoc = readNetworkOrderUint32(response[4:8])
+ copy(result.ExternalIPAddress[:], response[8:12])
+ return
+}
+
+// Results of the NAT-PMP AddPortMapping operation
+type AddPortMappingResult struct {
+ SecondsSinceStartOfEpoc uint32
+ InternalPort uint16
+ MappedExternalPort uint16
+ PortMappingLifetimeInSeconds uint32
+}
+
+// Add (or delete) a port mapping. To delete a mapping, set the requestedExternalPort and lifetime to 0
+func (n *Client) AddPortMapping(protocol string, internalPort, requestedExternalPort int, lifetime int) (result *AddPortMappingResult, err error) {
+ var opcode byte
+ if protocol == "udp" {
+ opcode = 1
+ } else if protocol == "tcp" {
+ opcode = 2
+ } else {
+ err = fmt.Errorf("unknown protocol %v", protocol)
+ return
+ }
+ msg := make([]byte, 12)
+ msg[0] = 0 // Version 0
+ msg[1] = opcode
+ writeNetworkOrderUint16(msg[4:6], uint16(internalPort))
+ writeNetworkOrderUint16(msg[6:8], uint16(requestedExternalPort))
+ writeNetworkOrderUint32(msg[8:12], uint32(lifetime))
+ response, err := n.rpc(msg, 16)
+ if err != nil {
+ return
+ }
+ result = &AddPortMappingResult{}
+ result.SecondsSinceStartOfEpoc = readNetworkOrderUint32(response[4:8])
+ result.InternalPort = readNetworkOrderUint16(response[8:10])
+ result.MappedExternalPort = readNetworkOrderUint16(response[10:12])
+ result.PortMappingLifetimeInSeconds = readNetworkOrderUint32(response[12:16])
+ return
+}
+
+func (n *Client) rpc(msg []byte, resultSize int) (result []byte, err error) {
+ var server net.UDPAddr
+ server.IP = n.gateway
+ server.Port = nAT_PMP_PORT
+ conn, err := net.DialUDP("udp", nil, &server)
+ if err != nil {
+ return
+ }
+ defer conn.Close()
+
+ result = make([]byte, resultSize)
+
+ needNewDeadline := true
+
+ var tries uint
+ for tries = 0; tries < nAT_TRIES; {
+ if needNewDeadline {
+ err = conn.SetDeadline(time.Now().Add((nAT_INITIAL_MS << tries) * time.Millisecond))
+ if err != nil {
+ return
+ }
+ needNewDeadline = false
+ }
+ _, err = conn.Write(msg)
+ if err != nil {
+ return
+ }
+ var bytesRead int
+ var remoteAddr *net.UDPAddr
+ bytesRead, remoteAddr, err = conn.ReadFromUDP(result)
+ if err != nil {
+ if err.(net.Error).Timeout() {
+ tries++
+ needNewDeadline = true
+ continue
+ }
+ return
+ }
+ if !remoteAddr.IP.Equal(n.gateway) {
+ log.Printf("Ignoring packet because IPs differ:", remoteAddr, n.gateway)
+ // Ignore this packet.
+ // Continue without increasing retransmission timeout or deadline.
+ continue
+ }
+ if bytesRead != resultSize {
+ err = fmt.Errorf("unexpected result size %d, expected %d", bytesRead, resultSize)
+ return
+ }
+ if result[0] != 0 {
+ err = fmt.Errorf("unknown protocol version %d", result[0])
+ return
+ }
+ expectedOp := msg[1] | 0x80
+ if result[1] != expectedOp {
+ err = fmt.Errorf("Unexpected opcode %d. Expected %d", result[1], expectedOp)
+ return
+ }
+ resultCode := readNetworkOrderUint16(result[2:4])
+ if resultCode != 0 {
+ err = fmt.Errorf("Non-zero result code %d", resultCode)
+ return
+ }
+ // If we got here the RPC is good.
+ return
+ }
+ err = fmt.Errorf("Timed out trying to contact gateway")
+ return
+}
+
+func writeNetworkOrderUint16(buf []byte, d uint16) {
+ buf[0] = byte(d >> 8)
+ buf[1] = byte(d)
+}
+
+func writeNetworkOrderUint32(buf []byte, d uint32) {
+ buf[0] = byte(d >> 24)
+ buf[1] = byte(d >> 16)
+ buf[2] = byte(d >> 8)
+ buf[3] = byte(d)
+}
+
+func readNetworkOrderUint16(buf []byte) uint16 {
+ return (uint16(buf[0]) << 8) | uint16(buf[1])
+}
+
+func readNetworkOrderUint32(buf []byte) uint32 {
+ return (uint32(buf[0]) << 24) | (uint32(buf[1]) << 16) | (uint32(buf[2]) << 8) | uint32(buf[3])
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/ecies/.gitignore b/Godeps/_workspace/src/github.com/obscuren/ecies/.gitignore
new file mode 100644
index 000000000..802b6744a
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/ecies/.gitignore
@@ -0,0 +1,24 @@
+# Compiled Object files, Static and Dynamic libs (Shared Objects)
+*.o
+*.a
+*.so
+
+# Folders
+_obj
+_test
+
+# Architecture specific extensions/prefixes
+*.[568vq]
+[568vq].out
+
+*.cgo1.go
+*.cgo2.c
+_cgo_defun.c
+_cgo_gotypes.go
+_cgo_export.*
+
+_testmain.go
+
+*.exe
+
+*~
diff --git a/Godeps/_workspace/src/github.com/obscuren/ecies/LICENSE b/Godeps/_workspace/src/github.com/obscuren/ecies/LICENSE
new file mode 100644
index 000000000..e1ed19a27
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/ecies/LICENSE
@@ -0,0 +1,28 @@
+Copyright (c) 2013 Kyle Isom <kyle@tyrfingr.is>
+Copyright (c) 2012 The Go Authors. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+copyright notice, this list of conditions and the following disclaimer
+in the documentation and/or other materials provided with the
+distribution.
+ * Neither the name of Google Inc. nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/Godeps/_workspace/src/github.com/obscuren/ecies/README b/Godeps/_workspace/src/github.com/obscuren/ecies/README
new file mode 100644
index 000000000..2650c7b9f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/ecies/README
@@ -0,0 +1,94 @@
+# NOTE
+
+This implementation is direct fork of Kylom's implementation. I claim no authorship over this code apart from some minor modifications.
+Please be aware this code **has not yet been reviewed**.
+
+ecies implements the Elliptic Curve Integrated Encryption Scheme.
+
+The package is designed to be compliant with the appropriate NIST
+standards, and therefore doesn't support the full SEC 1 algorithm set.
+
+
+STATUS:
+
+ecies should be ready for use. The ASN.1 support is only complete so
+far as to supported the listed algorithms before.
+
+
+CAVEATS
+
+1. CMAC support is currently not present.
+
+
+SUPPORTED ALGORITHMS
+
+ SYMMETRIC CIPHERS HASH FUNCTIONS
+ AES128 SHA-1
+ AES192 SHA-224
+ AES256 SHA-256
+ SHA-384
+ ELLIPTIC CURVE SHA-512
+ P256
+ P384 KEY DERIVATION FUNCTION
+ P521 NIST SP 800-65a Concatenation KDF
+
+Curve P224 isn't supported because it does not provide a minimum security
+level of AES128 with HMAC-SHA1. According to NIST SP 800-57, the security
+level of P224 is 112 bits of security. Symmetric ciphers use CTR-mode;
+message tags are computed using HMAC-<HASH> function.
+
+
+CURVE SELECTION
+
+According to NIST SP 800-57, the following curves should be selected:
+
+ +----------------+-------+
+ | SYMMETRIC SIZE | CURVE |
+ +----------------+-------+
+ | 128-bit | P256 |
+ +----------------+-------+
+ | 192-bit | P384 |
+ +----------------+-------+
+ | 256-bit | P521 |
+ +----------------+-------+
+
+
+TODO
+
+1. Look at serialising the parameters with the SEC 1 ASN.1 module.
+2. Validate ASN.1 formats with SEC 1.
+
+
+TEST VECTORS
+
+The only test vectors I've found so far date from 1993, predating AES
+and including only 163-bit curves. Therefore, there are no published
+test vectors to compare to.
+
+
+LICENSE
+
+ecies is released under the same license as the Go source code. See the
+LICENSE file for details.
+
+
+REFERENCES
+
+* SEC (Standard for Efficient Cryptography) 1, version 2.0: Elliptic
+ Curve Cryptography; Certicom, May 2009.
+ http://www.secg.org/sec1-v2.pdf
+* GEC (Guidelines for Efficient Cryptography) 2, version 0.3: Test
+ Vectors for SEC 1; Certicom, September 1999.
+ http://read.pudn.com/downloads168/doc/772358/TestVectorsforSEC%201-gec2.pdf
+* NIST SP 800-56a: Recommendation for Pair-Wise Key Establishment Schemes
+ Using Discrete Logarithm Cryptography. National Institute of Standards
+ and Technology, May 2007.
+ http://csrc.nist.gov/publications/nistpubs/800-56A/SP800-56A_Revision1_Mar08-2007.pdf
+* Suite B Implementer’s Guide to NIST SP 800-56A. National Security
+ Agency, July 28, 2009.
+ http://www.nsa.gov/ia/_files/SuiteB_Implementer_G-113808.pdf
+* NIST SP 800-57: Recommendation for Key Management – Part 1: General
+ (Revision 3). National Institute of Standards and Technology, July
+ 2012.
+ http://csrc.nist.gov/publications/nistpubs/800-57/sp800-57_part1_rev3_general.pdf
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/ecies/asn1.go b/Godeps/_workspace/src/github.com/obscuren/ecies/asn1.go
new file mode 100644
index 000000000..3ef194ea0
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/ecies/asn1.go
@@ -0,0 +1,556 @@
+package ecies
+
+import (
+ "bytes"
+ "crypto"
+ "crypto/elliptic"
+ "crypto/sha1"
+ "crypto/sha256"
+ "crypto/sha512"
+ "encoding/asn1"
+ "encoding/pem"
+ "fmt"
+ "hash"
+ "math/big"
+)
+
+var (
+ secgScheme = []int{1, 3, 132, 1}
+ shaScheme = []int{2, 16, 840, 1, 101, 3, 4, 2}
+ ansiX962Scheme = []int{1, 2, 840, 10045}
+ x963Scheme = []int{1, 2, 840, 63, 0}
+)
+
+var ErrInvalidPrivateKey = fmt.Errorf("ecies: invalid private key")
+
+func doScheme(base, v []int) asn1.ObjectIdentifier {
+ var oidInts asn1.ObjectIdentifier
+ oidInts = append(oidInts, base...)
+ return append(oidInts, v...)
+}
+
+// curve OID code taken from crypto/x509, including
+// - oidNameCurve*
+// - namedCurveFromOID
+// - oidFromNamedCurve
+// RFC 5480, 2.1.1.1. Named Curve
+//
+// secp224r1 OBJECT IDENTIFIER ::= {
+// iso(1) identified-organization(3) certicom(132) curve(0) 33 }
+//
+// secp256r1 OBJECT IDENTIFIER ::= {
+// iso(1) member-body(2) us(840) ansi-X9-62(10045) curves(3)
+// prime(1) 7 }
+//
+// secp384r1 OBJECT IDENTIFIER ::= {
+// iso(1) identified-organization(3) certicom(132) curve(0) 34 }
+//
+// secp521r1 OBJECT IDENTIFIER ::= {
+// iso(1) identified-organization(3) certicom(132) curve(0) 35 }
+//
+// NB: secp256r1 is equivalent to prime256v1
+type secgNamedCurve asn1.ObjectIdentifier
+
+var (
+ secgNamedCurveP224 = secgNamedCurve{1, 3, 132, 0, 33}
+ secgNamedCurveP256 = secgNamedCurve{1, 2, 840, 10045, 3, 1, 7}
+ secgNamedCurveP384 = secgNamedCurve{1, 3, 132, 0, 34}
+ secgNamedCurveP521 = secgNamedCurve{1, 3, 132, 0, 35}
+ rawCurveP224 = []byte{6, 5, 4, 3, 1, 2, 9, 4, 0, 3, 3}
+ rawCurveP256 = []byte{6, 8, 4, 2, 1, 3, 4, 7, 2, 2, 0, 6, 6, 1, 3, 1, 7}
+ rawCurveP384 = []byte{6, 5, 4, 3, 1, 2, 9, 4, 0, 3, 4}
+ rawCurveP521 = []byte{6, 5, 4, 3, 1, 2, 9, 4, 0, 3, 5}
+)
+
+func rawCurve(curve elliptic.Curve) []byte {
+ switch curve {
+ case elliptic.P224():
+ return rawCurveP224
+ case elliptic.P256():
+ return rawCurveP256
+ case elliptic.P384():
+ return rawCurveP384
+ case elliptic.P521():
+ return rawCurveP521
+ default:
+ return nil
+ }
+}
+
+func (curve secgNamedCurve) Equal(curve2 secgNamedCurve) bool {
+ if len(curve) != len(curve2) {
+ return false
+ }
+ for i, _ := range curve {
+ if curve[i] != curve2[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func namedCurveFromOID(curve secgNamedCurve) elliptic.Curve {
+ switch {
+ case curve.Equal(secgNamedCurveP224):
+ return elliptic.P224()
+ case curve.Equal(secgNamedCurveP256):
+ return elliptic.P256()
+ case curve.Equal(secgNamedCurveP384):
+ return elliptic.P384()
+ case curve.Equal(secgNamedCurveP521):
+ return elliptic.P521()
+ }
+ return nil
+}
+
+func oidFromNamedCurve(curve elliptic.Curve) (secgNamedCurve, bool) {
+ switch curve {
+ case elliptic.P224():
+ return secgNamedCurveP224, true
+ case elliptic.P256():
+ return secgNamedCurveP256, true
+ case elliptic.P384():
+ return secgNamedCurveP384, true
+ case elliptic.P521():
+ return secgNamedCurveP521, true
+ }
+
+ return nil, false
+}
+
+// asnAlgorithmIdentifier represents the ASN.1 structure of the same name. See RFC
+// 5280, section 4.1.1.2.
+type asnAlgorithmIdentifier struct {
+ Algorithm asn1.ObjectIdentifier
+ Parameters asn1.RawValue `asn1:"optional"`
+}
+
+func (a asnAlgorithmIdentifier) Cmp(b asnAlgorithmIdentifier) bool {
+ if len(a.Algorithm) != len(b.Algorithm) {
+ return false
+ }
+ for i, _ := range a.Algorithm {
+ if a.Algorithm[i] != b.Algorithm[i] {
+ return false
+ }
+ }
+ return true
+}
+
+type asnHashFunction asnAlgorithmIdentifier
+
+var (
+ oidSHA1 = asn1.ObjectIdentifier{1, 3, 14, 3, 2, 26}
+ oidSHA224 = doScheme(shaScheme, []int{4})
+ oidSHA256 = doScheme(shaScheme, []int{1})
+ oidSHA384 = doScheme(shaScheme, []int{2})
+ oidSHA512 = doScheme(shaScheme, []int{3})
+)
+
+func hashFromOID(oid asn1.ObjectIdentifier) func() hash.Hash {
+ switch {
+ case oid.Equal(oidSHA1):
+ return sha1.New
+ case oid.Equal(oidSHA224):
+ return sha256.New224
+ case oid.Equal(oidSHA256):
+ return sha256.New
+ case oid.Equal(oidSHA384):
+ return sha512.New384
+ case oid.Equal(oidSHA512):
+ return sha512.New
+ }
+ return nil
+}
+
+func oidFromHash(hash crypto.Hash) (asn1.ObjectIdentifier, bool) {
+ switch hash {
+ case crypto.SHA1:
+ return oidSHA1, true
+ case crypto.SHA224:
+ return oidSHA224, true
+ case crypto.SHA256:
+ return oidSHA256, true
+ case crypto.SHA384:
+ return oidSHA384, true
+ case crypto.SHA512:
+ return oidSHA512, true
+ default:
+ return nil, false
+ }
+}
+
+var (
+ asnAlgoSHA1 = asnHashFunction{
+ Algorithm: oidSHA1,
+ }
+ asnAlgoSHA224 = asnHashFunction{
+ Algorithm: oidSHA224,
+ }
+ asnAlgoSHA256 = asnHashFunction{
+ Algorithm: oidSHA256,
+ }
+ asnAlgoSHA384 = asnHashFunction{
+ Algorithm: oidSHA384,
+ }
+ asnAlgoSHA512 = asnHashFunction{
+ Algorithm: oidSHA512,
+ }
+)
+
+// type ASNasnSubjectPublicKeyInfo struct {
+//
+// }
+//
+
+type asnSubjectPublicKeyInfo struct {
+ Algorithm asn1.ObjectIdentifier
+ PublicKey asn1.BitString
+ Supplements ecpksSupplements `asn1:"optional"`
+}
+
+type asnECPKAlgorithms struct {
+ Type asn1.ObjectIdentifier
+}
+
+var idPublicKeyType = doScheme(ansiX962Scheme, []int{2})
+var idEcPublicKey = doScheme(idPublicKeyType, []int{1})
+var idEcPublicKeySupplemented = doScheme(idPublicKeyType, []int{0})
+
+func curveToRaw(curve elliptic.Curve) (rv asn1.RawValue, ok bool) {
+ switch curve {
+ case elliptic.P224(), elliptic.P256(), elliptic.P384(), elliptic.P521():
+ raw := rawCurve(curve)
+ return asn1.RawValue{
+ Tag: 30,
+ Bytes: raw[2:],
+ FullBytes: raw,
+ }, true
+ default:
+ return rv, false
+ }
+}
+
+func asnECPublicKeyType(curve elliptic.Curve) (algo asnAlgorithmIdentifier, ok bool) {
+ raw, ok := curveToRaw(curve)
+ if !ok {
+ return
+ } else {
+ return asnAlgorithmIdentifier{Algorithm: idEcPublicKey,
+ Parameters: raw}, true
+ }
+}
+
+type asnECPrivKeyVer int
+
+var asnECPrivKeyVer1 asnECPrivKeyVer = 1
+
+type asnPrivateKey struct {
+ Version asnECPrivKeyVer
+ Private []byte
+ Curve secgNamedCurve `asn1:"optional"`
+ Public asn1.BitString
+}
+
+var asnECDH = doScheme(secgScheme, []int{12})
+
+type asnECDHAlgorithm asnAlgorithmIdentifier
+
+var (
+ dhSinglePass_stdDH_sha1kdf = asnECDHAlgorithm{
+ Algorithm: doScheme(x963Scheme, []int{2}),
+ }
+ dhSinglePass_stdDH_sha256kdf = asnECDHAlgorithm{
+ Algorithm: doScheme(secgScheme, []int{11, 1}),
+ }
+ dhSinglePass_stdDH_sha384kdf = asnECDHAlgorithm{
+ Algorithm: doScheme(secgScheme, []int{11, 2}),
+ }
+ dhSinglePass_stdDH_sha224kdf = asnECDHAlgorithm{
+ Algorithm: doScheme(secgScheme, []int{11, 0}),
+ }
+ dhSinglePass_stdDH_sha512kdf = asnECDHAlgorithm{
+ Algorithm: doScheme(secgScheme, []int{11, 3}),
+ }
+)
+
+func (a asnECDHAlgorithm) Cmp(b asnECDHAlgorithm) bool {
+ if len(a.Algorithm) != len(b.Algorithm) {
+ return false
+ }
+ for i, _ := range a.Algorithm {
+ if a.Algorithm[i] != b.Algorithm[i] {
+ return false
+ }
+ }
+ return true
+}
+
+// asnNISTConcatenation is the only supported KDF at this time.
+type asnKeyDerivationFunction asnAlgorithmIdentifier
+
+var asnNISTConcatenationKDF = asnKeyDerivationFunction{
+ Algorithm: doScheme(secgScheme, []int{17, 1}),
+}
+
+func (a asnKeyDerivationFunction) Cmp(b asnKeyDerivationFunction) bool {
+ if len(a.Algorithm) != len(b.Algorithm) {
+ return false
+ }
+ for i, _ := range a.Algorithm {
+ if a.Algorithm[i] != b.Algorithm[i] {
+ return false
+ }
+ }
+ return true
+}
+
+var eciesRecommendedParameters = doScheme(secgScheme, []int{7})
+var eciesSpecifiedParameters = doScheme(secgScheme, []int{8})
+
+type asnECIESParameters struct {
+ KDF asnKeyDerivationFunction `asn1:"optional"`
+ Sym asnSymmetricEncryption `asn1:"optional"`
+ MAC asnMessageAuthenticationCode `asn1:"optional"`
+}
+
+type asnSymmetricEncryption asnAlgorithmIdentifier
+
+var (
+ aes128CTRinECIES = asnSymmetricEncryption{
+ Algorithm: doScheme(secgScheme, []int{21, 0}),
+ }
+ aes192CTRinECIES = asnSymmetricEncryption{
+ Algorithm: doScheme(secgScheme, []int{21, 1}),
+ }
+ aes256CTRinECIES = asnSymmetricEncryption{
+ Algorithm: doScheme(secgScheme, []int{21, 2}),
+ }
+)
+
+func (a asnSymmetricEncryption) Cmp(b asnSymmetricEncryption) bool {
+ if len(a.Algorithm) != len(b.Algorithm) {
+ return false
+ }
+ for i, _ := range a.Algorithm {
+ if a.Algorithm[i] != b.Algorithm[i] {
+ return false
+ }
+ }
+ return true
+}
+
+type asnMessageAuthenticationCode asnAlgorithmIdentifier
+
+var (
+ hmacFull = asnMessageAuthenticationCode{
+ Algorithm: doScheme(secgScheme, []int{22}),
+ }
+)
+
+func (a asnMessageAuthenticationCode) Cmp(b asnMessageAuthenticationCode) bool {
+ if len(a.Algorithm) != len(b.Algorithm) {
+ return false
+ }
+ for i, _ := range a.Algorithm {
+ if a.Algorithm[i] != b.Algorithm[i] {
+ return false
+ }
+ }
+ return true
+}
+
+type ecpksSupplements struct {
+ ECDomain secgNamedCurve
+ ECCAlgorithms eccAlgorithmSet
+}
+
+type eccAlgorithmSet struct {
+ ECDH asnECDHAlgorithm `asn1:"optional"`
+ ECIES asnECIESParameters `asn1:"optional"`
+}
+
+func marshalSubjectPublicKeyInfo(pub *PublicKey) (subj asnSubjectPublicKeyInfo, err error) {
+ subj.Algorithm = idEcPublicKeySupplemented
+ curve, ok := oidFromNamedCurve(pub.Curve)
+ if !ok {
+ err = ErrInvalidPublicKey
+ return
+ }
+ subj.Supplements.ECDomain = curve
+ if pub.Params != nil {
+ subj.Supplements.ECCAlgorithms.ECDH = paramsToASNECDH(pub.Params)
+ subj.Supplements.ECCAlgorithms.ECIES = paramsToASNECIES(pub.Params)
+ }
+ pubkey := elliptic.Marshal(pub.Curve, pub.X, pub.Y)
+ subj.PublicKey = asn1.BitString{
+ BitLength: len(pubkey) * 8,
+ Bytes: pubkey,
+ }
+ return
+}
+
+// Encode a public key to DER format.
+func MarshalPublic(pub *PublicKey) ([]byte, error) {
+ subj, err := marshalSubjectPublicKeyInfo(pub)
+ if err != nil {
+ return nil, err
+ }
+ return asn1.Marshal(subj)
+}
+
+// Decode a DER-encoded public key.
+func UnmarshalPublic(in []byte) (pub *PublicKey, err error) {
+ var subj asnSubjectPublicKeyInfo
+
+ if _, err = asn1.Unmarshal(in, &subj); err != nil {
+ return
+ }
+ if !subj.Algorithm.Equal(idEcPublicKeySupplemented) {
+ err = ErrInvalidPublicKey
+ return
+ }
+ pub = new(PublicKey)
+ pub.Curve = namedCurveFromOID(subj.Supplements.ECDomain)
+ x, y := elliptic.Unmarshal(pub.Curve, subj.PublicKey.Bytes)
+ if x == nil {
+ err = ErrInvalidPublicKey
+ return
+ }
+ pub.X = x
+ pub.Y = y
+ pub.Params = new(ECIESParams)
+ asnECIEStoParams(subj.Supplements.ECCAlgorithms.ECIES, pub.Params)
+ asnECDHtoParams(subj.Supplements.ECCAlgorithms.ECDH, pub.Params)
+ if pub.Params == nil {
+ if pub.Params = ParamsFromCurve(pub.Curve); pub.Params == nil {
+ err = ErrInvalidPublicKey
+ }
+ }
+ return
+}
+
+func marshalPrivateKey(prv *PrivateKey) (ecprv asnPrivateKey, err error) {
+ ecprv.Version = asnECPrivKeyVer1
+ ecprv.Private = prv.D.Bytes()
+
+ var ok bool
+ ecprv.Curve, ok = oidFromNamedCurve(prv.PublicKey.Curve)
+ if !ok {
+ err = ErrInvalidPrivateKey
+ return
+ }
+
+ var pub []byte
+ if pub, err = MarshalPublic(&prv.PublicKey); err != nil {
+ return
+ } else {
+ ecprv.Public = asn1.BitString{
+ BitLength: len(pub) * 8,
+ Bytes: pub,
+ }
+ }
+ return
+}
+
+// Encode a private key to DER format.
+func MarshalPrivate(prv *PrivateKey) ([]byte, error) {
+ ecprv, err := marshalPrivateKey(prv)
+ if err != nil {
+ return nil, err
+ }
+ return asn1.Marshal(ecprv)
+}
+
+// Decode a private key from a DER-encoded format.
+func UnmarshalPrivate(in []byte) (prv *PrivateKey, err error) {
+ var ecprv asnPrivateKey
+
+ if _, err = asn1.Unmarshal(in, &ecprv); err != nil {
+ return
+ } else if ecprv.Version != asnECPrivKeyVer1 {
+ err = ErrInvalidPrivateKey
+ return
+ }
+
+ privateCurve := namedCurveFromOID(ecprv.Curve)
+ if privateCurve == nil {
+ err = ErrInvalidPrivateKey
+ return
+ }
+
+ prv = new(PrivateKey)
+ prv.D = new(big.Int).SetBytes(ecprv.Private)
+
+ if pub, err := UnmarshalPublic(ecprv.Public.Bytes); err != nil {
+ return nil, err
+ } else {
+ prv.PublicKey = *pub
+ }
+
+ return
+}
+
+// Export a public key to PEM format.
+func ExportPublicPEM(pub *PublicKey) (out []byte, err error) {
+ der, err := MarshalPublic(pub)
+ if err != nil {
+ return
+ }
+
+ var block pem.Block
+ block.Type = "ELLIPTIC CURVE PUBLIC KEY"
+ block.Bytes = der
+
+ buf := new(bytes.Buffer)
+ err = pem.Encode(buf, &block)
+ if err != nil {
+ return
+ } else {
+ out = buf.Bytes()
+ }
+ return
+}
+
+// Export a private key to PEM format.
+func ExportPrivatePEM(prv *PrivateKey) (out []byte, err error) {
+ der, err := MarshalPrivate(prv)
+ if err != nil {
+ return
+ }
+
+ var block pem.Block
+ block.Type = "ELLIPTIC CURVE PRIVATE KEY"
+ block.Bytes = der
+
+ buf := new(bytes.Buffer)
+ err = pem.Encode(buf, &block)
+ if err != nil {
+ return
+ } else {
+ out = buf.Bytes()
+ }
+ return
+}
+
+// Import a PEM-encoded public key.
+func ImportPublicPEM(in []byte) (pub *PublicKey, err error) {
+ p, _ := pem.Decode(in)
+ if p == nil || p.Type != "ELLIPTIC CURVE PUBLIC KEY" {
+ return nil, ErrInvalidPublicKey
+ }
+
+ pub, err = UnmarshalPublic(p.Bytes)
+ return
+}
+
+// Import a PEM-encoded private key.
+func ImportPrivatePEM(in []byte) (prv *PrivateKey, err error) {
+ p, _ := pem.Decode(in)
+ if p == nil || p.Type != "ELLIPTIC CURVE PRIVATE KEY" {
+ return nil, ErrInvalidPrivateKey
+ }
+
+ prv, err = UnmarshalPrivate(p.Bytes)
+ return
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/ecies/ecies.go b/Godeps/_workspace/src/github.com/obscuren/ecies/ecies.go
new file mode 100644
index 000000000..0e2403d47
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/ecies/ecies.go
@@ -0,0 +1,326 @@
+package ecies
+
+import (
+ "crypto/cipher"
+ "crypto/ecdsa"
+ "crypto/elliptic"
+ "crypto/hmac"
+ "crypto/subtle"
+ "fmt"
+ "hash"
+ "io"
+ "math/big"
+)
+
+var (
+ ErrImport = fmt.Errorf("ecies: failed to import key")
+ ErrInvalidCurve = fmt.Errorf("ecies: invalid elliptic curve")
+ ErrInvalidParams = fmt.Errorf("ecies: invalid ECIES parameters")
+ ErrInvalidPublicKey = fmt.Errorf("ecies: invalid public key")
+ ErrSharedKeyTooBig = fmt.Errorf("ecies: shared key is too big")
+)
+
+// PublicKey is a representation of an elliptic curve public key.
+type PublicKey struct {
+ X *big.Int
+ Y *big.Int
+ elliptic.Curve
+ Params *ECIESParams
+}
+
+// Export an ECIES public key as an ECDSA public key.
+func (pub *PublicKey) ExportECDSA() *ecdsa.PublicKey {
+ return &ecdsa.PublicKey{pub.Curve, pub.X, pub.Y}
+}
+
+// Import an ECDSA public key as an ECIES public key.
+func ImportECDSAPublic(pub *ecdsa.PublicKey) *PublicKey {
+ return &PublicKey{
+ X: pub.X,
+ Y: pub.Y,
+ Curve: pub.Curve,
+ Params: ParamsFromCurve(pub.Curve),
+ }
+}
+
+// PrivateKey is a representation of an elliptic curve private key.
+type PrivateKey struct {
+ PublicKey
+ D *big.Int
+}
+
+// Export an ECIES private key as an ECDSA private key.
+func (prv *PrivateKey) ExportECDSA() *ecdsa.PrivateKey {
+ pub := &prv.PublicKey
+ pubECDSA := pub.ExportECDSA()
+ return &ecdsa.PrivateKey{*pubECDSA, prv.D}
+}
+
+// Import an ECDSA private key as an ECIES private key.
+func ImportECDSA(prv *ecdsa.PrivateKey) *PrivateKey {
+ pub := ImportECDSAPublic(&prv.PublicKey)
+ return &PrivateKey{*pub, prv.D}
+}
+
+// Generate an elliptic curve public / private keypair. If params is nil,
+// the recommended default paramters for the key will be chosen.
+func GenerateKey(rand io.Reader, curve elliptic.Curve, params *ECIESParams) (prv *PrivateKey, err error) {
+ pb, x, y, err := elliptic.GenerateKey(curve, rand)
+ if err != nil {
+ return
+ }
+ prv = new(PrivateKey)
+ prv.PublicKey.X = x
+ prv.PublicKey.Y = y
+ prv.PublicKey.Curve = curve
+ prv.D = new(big.Int).SetBytes(pb)
+ if params == nil {
+ params = ParamsFromCurve(curve)
+ }
+ prv.PublicKey.Params = params
+ return
+}
+
+// MaxSharedKeyLength returns the maximum length of the shared key the
+// public key can produce.
+func MaxSharedKeyLength(pub *PublicKey) int {
+ return (pub.Curve.Params().BitSize + 7) / 8
+}
+
+// ECDH key agreement method used to establish secret keys for encryption.
+func (prv *PrivateKey) GenerateShared(pub *PublicKey, skLen, macLen int) (sk []byte, err error) {
+ if prv.PublicKey.Curve != pub.Curve {
+ err = ErrInvalidCurve
+ return
+ }
+ x, _ := pub.Curve.ScalarMult(pub.X, pub.Y, prv.D.Bytes())
+ if x == nil || (x.BitLen()+7)/8 < (skLen+macLen) {
+ err = ErrSharedKeyTooBig
+ return
+ }
+ sk = x.Bytes()[:skLen+macLen]
+ return
+}
+
+var (
+ ErrKeyDataTooLong = fmt.Errorf("ecies: can't supply requested key data")
+ ErrSharedTooLong = fmt.Errorf("ecies: shared secret is too long")
+ ErrInvalidMessage = fmt.Errorf("ecies: invalid message")
+)
+
+var (
+ big2To32 = new(big.Int).Exp(big.NewInt(2), big.NewInt(32), nil)
+ big2To32M1 = new(big.Int).Sub(big2To32, big.NewInt(1))
+)
+
+func incCounter(ctr []byte) {
+ if ctr[3]++; ctr[3] != 0 {
+ return
+ } else if ctr[2]++; ctr[2] != 0 {
+ return
+ } else if ctr[1]++; ctr[1] != 0 {
+ return
+ } else if ctr[0]++; ctr[0] != 0 {
+ return
+ }
+ return
+}
+
+// NIST SP 800-56 Concatenation Key Derivation Function (see section 5.8.1).
+func concatKDF(hash hash.Hash, z, s1 []byte, kdLen int) (k []byte, err error) {
+ if s1 == nil {
+ s1 = make([]byte, 0)
+ }
+
+ reps := ((kdLen + 7) * 8) / (hash.BlockSize() * 8)
+ if big.NewInt(int64(reps)).Cmp(big2To32M1) > 0 {
+ fmt.Println(big2To32M1)
+ return nil, ErrKeyDataTooLong
+ }
+
+ counter := []byte{0, 0, 0, 1}
+ k = make([]byte, 0)
+
+ for i := 0; i <= reps; i++ {
+ hash.Write(counter)
+ hash.Write(z)
+ hash.Write(s1)
+ k = append(k, hash.Sum(nil)...)
+ hash.Reset()
+ incCounter(counter)
+ }
+
+ k = k[:kdLen]
+ return
+}
+
+// messageTag computes the MAC of a message (called the tag) as per
+// SEC 1, 3.5.
+func messageTag(hash func() hash.Hash, km, msg, shared []byte) []byte {
+ if shared == nil {
+ shared = make([]byte, 0)
+ }
+ mac := hmac.New(hash, km)
+ mac.Write(msg)
+ tag := mac.Sum(nil)
+ return tag
+}
+
+// Generate an initialisation vector for CTR mode.
+func generateIV(params *ECIESParams, rand io.Reader) (iv []byte, err error) {
+ iv = make([]byte, params.BlockSize)
+ _, err = io.ReadFull(rand, iv)
+ return
+}
+
+// symEncrypt carries out CTR encryption using the block cipher specified in the
+// parameters.
+func symEncrypt(rand io.Reader, params *ECIESParams, key, m []byte) (ct []byte, err error) {
+ c, err := params.Cipher(key)
+ if err != nil {
+ return
+ }
+
+ iv, err := generateIV(params, rand)
+ if err != nil {
+ return
+ }
+ ctr := cipher.NewCTR(c, iv)
+
+ ct = make([]byte, len(m)+params.BlockSize)
+ copy(ct, iv)
+ ctr.XORKeyStream(ct[params.BlockSize:], m)
+ return
+}
+
+// symDecrypt carries out CTR decryption using the block cipher specified in
+// the parameters
+func symDecrypt(rand io.Reader, params *ECIESParams, key, ct []byte) (m []byte, err error) {
+ c, err := params.Cipher(key)
+ if err != nil {
+ return
+ }
+
+ ctr := cipher.NewCTR(c, ct[:params.BlockSize])
+
+ m = make([]byte, len(ct)-params.BlockSize)
+ ctr.XORKeyStream(m, ct[params.BlockSize:])
+ return
+}
+
+// Encrypt encrypts a message using ECIES as specified in SEC 1, 5.1. If
+// the shared information parameters aren't being used, they should be
+// nil.
+func Encrypt(rand io.Reader, pub *PublicKey, m, s1, s2 []byte) (ct []byte, err error) {
+ params := pub.Params
+ if params == nil {
+ if params = ParamsFromCurve(pub.Curve); params == nil {
+ err = ErrUnsupportedECIESParameters
+ return
+ }
+ }
+ R, err := GenerateKey(rand, pub.Curve, params)
+ if err != nil {
+ return
+ }
+
+ hash := params.Hash()
+ z, err := R.GenerateShared(pub, params.KeyLen, params.KeyLen)
+ if err != nil {
+ return
+ }
+ K, err := concatKDF(hash, z, s1, params.KeyLen+params.KeyLen)
+ if err != nil {
+ return
+ }
+ Ke := K[:params.KeyLen]
+ Km := K[params.KeyLen:]
+ hash.Write(Km)
+ Km = hash.Sum(nil)
+ hash.Reset()
+
+ em, err := symEncrypt(rand, params, Ke, m)
+ if err != nil || len(em) <= params.BlockSize {
+ return
+ }
+
+ d := messageTag(params.Hash, Km, em, s2)
+
+ Rb := elliptic.Marshal(pub.Curve, R.PublicKey.X, R.PublicKey.Y)
+ ct = make([]byte, len(Rb)+len(em)+len(d))
+ copy(ct, Rb)
+ copy(ct[len(Rb):], em)
+ copy(ct[len(Rb)+len(em):], d)
+ return
+}
+
+// Decrypt decrypts an ECIES ciphertext.
+func (prv *PrivateKey) Decrypt(rand io.Reader, c, s1, s2 []byte) (m []byte, err error) {
+ if c == nil || len(c) == 0 {
+ err = ErrInvalidMessage
+ return
+ }
+ params := prv.PublicKey.Params
+ if params == nil {
+ if params = ParamsFromCurve(prv.PublicKey.Curve); params == nil {
+ err = ErrUnsupportedECIESParameters
+ return
+ }
+ }
+ hash := params.Hash()
+
+ var (
+ rLen int
+ hLen int = hash.Size()
+ mStart int
+ mEnd int
+ )
+
+ switch c[0] {
+ case 2, 3, 4:
+ rLen = ((prv.PublicKey.Curve.Params().BitSize + 7) / 4)
+ if len(c) < (rLen + hLen + 1) {
+ err = ErrInvalidMessage
+ return
+ }
+ default:
+ err = ErrInvalidPublicKey
+ return
+ }
+
+ mStart = rLen
+ mEnd = len(c) - hLen
+
+ R := new(PublicKey)
+ R.Curve = prv.PublicKey.Curve
+ R.X, R.Y = elliptic.Unmarshal(R.Curve, c[:rLen])
+ if R.X == nil {
+ err = ErrInvalidPublicKey
+ return
+ }
+
+ z, err := prv.GenerateShared(R, params.KeyLen, params.KeyLen)
+ if err != nil {
+ return
+ }
+
+ K, err := concatKDF(hash, z, s1, params.KeyLen+params.KeyLen)
+ if err != nil {
+ return
+ }
+
+ Ke := K[:params.KeyLen]
+ Km := K[params.KeyLen:]
+ hash.Write(Km)
+ Km = hash.Sum(nil)
+ hash.Reset()
+
+ d := messageTag(params.Hash, Km, c[mStart:mEnd], s2)
+ if subtle.ConstantTimeCompare(c[mEnd:], d) != 1 {
+ err = ErrInvalidMessage
+ return
+ }
+
+ m, err = symDecrypt(rand, params, Ke, c[mStart:mEnd])
+ return
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/ecies/ecies_test.go b/Godeps/_workspace/src/github.com/obscuren/ecies/ecies_test.go
new file mode 100644
index 000000000..943e4488e
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/ecies/ecies_test.go
@@ -0,0 +1,489 @@
+package ecies
+
+import (
+ "bytes"
+ "crypto/elliptic"
+ "crypto/rand"
+ "crypto/sha256"
+ "flag"
+ "fmt"
+ "io/ioutil"
+ "testing"
+)
+
+var dumpEnc bool
+
+func init() {
+ flDump := flag.Bool("dump", false, "write encrypted test message to file")
+ flag.Parse()
+ dumpEnc = *flDump
+}
+
+// Ensure the KDF generates appropriately sized keys.
+func TestKDF(t *testing.T) {
+ msg := []byte("Hello, world")
+ h := sha256.New()
+
+ k, err := concatKDF(h, msg, nil, 64)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+ if len(k) != 64 {
+ fmt.Printf("KDF: generated key is the wrong size (%d instead of 64\n",
+ len(k))
+ t.FailNow()
+ }
+}
+
+var skLen int
+var ErrBadSharedKeys = fmt.Errorf("ecies: shared keys don't match")
+
+// cmpParams compares a set of ECIES parameters. We assume, as per the
+// docs, that AES is the only supported symmetric encryption algorithm.
+func cmpParams(p1, p2 *ECIESParams) bool {
+ if p1.hashAlgo != p2.hashAlgo {
+ return false
+ } else if p1.KeyLen != p2.KeyLen {
+ return false
+ } else if p1.BlockSize != p2.BlockSize {
+ return false
+ }
+ return true
+}
+
+// cmpPublic returns true if the two public keys represent the same pojnt.
+func cmpPublic(pub1, pub2 PublicKey) bool {
+ if pub1.X == nil || pub1.Y == nil {
+ fmt.Println(ErrInvalidPublicKey.Error())
+ return false
+ }
+ if pub2.X == nil || pub2.Y == nil {
+ fmt.Println(ErrInvalidPublicKey.Error())
+ return false
+ }
+ pub1Out := elliptic.Marshal(pub1.Curve, pub1.X, pub1.Y)
+ pub2Out := elliptic.Marshal(pub2.Curve, pub2.X, pub2.Y)
+
+ return bytes.Equal(pub1Out, pub2Out)
+}
+
+// cmpPrivate returns true if the two private keys are the same.
+func cmpPrivate(prv1, prv2 *PrivateKey) bool {
+ if prv1 == nil || prv1.D == nil {
+ return false
+ } else if prv2 == nil || prv2.D == nil {
+ return false
+ } else if prv1.D.Cmp(prv2.D) != 0 {
+ return false
+ } else {
+ return cmpPublic(prv1.PublicKey, prv2.PublicKey)
+ }
+}
+
+// Validate the ECDH component.
+func TestSharedKey(t *testing.T) {
+ prv1, err := GenerateKey(rand.Reader, DefaultCurve, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+ skLen = MaxSharedKeyLength(&prv1.PublicKey) / 2
+
+ prv2, err := GenerateKey(rand.Reader, DefaultCurve, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ sk1, err := prv1.GenerateShared(&prv2.PublicKey, skLen, skLen)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ sk2, err := prv2.GenerateShared(&prv1.PublicKey, skLen, skLen)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ if !bytes.Equal(sk1, sk2) {
+ fmt.Println(ErrBadSharedKeys.Error())
+ t.FailNow()
+ }
+}
+
+// Verify that the key generation code fails when too much key data is
+// requested.
+func TestTooBigSharedKey(t *testing.T) {
+ prv1, err := GenerateKey(rand.Reader, DefaultCurve, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ prv2, err := GenerateKey(rand.Reader, DefaultCurve, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ _, err = prv1.GenerateShared(&prv2.PublicKey, skLen*2, skLen*2)
+ if err != ErrSharedKeyTooBig {
+ fmt.Println("ecdh: shared key should be too large for curve")
+ t.FailNow()
+ }
+
+ _, err = prv2.GenerateShared(&prv1.PublicKey, skLen*2, skLen*2)
+ if err != ErrSharedKeyTooBig {
+ fmt.Println("ecdh: shared key should be too large for curve")
+ t.FailNow()
+ }
+}
+
+// Ensure a public key can be successfully marshalled and unmarshalled, and
+// that the decoded key is the same as the original.
+func TestMarshalPublic(t *testing.T) {
+ prv, err := GenerateKey(rand.Reader, DefaultCurve, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ out, err := MarshalPublic(&prv.PublicKey)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ pub, err := UnmarshalPublic(out)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ if !cmpPublic(prv.PublicKey, *pub) {
+ fmt.Println("ecies: failed to unmarshal public key")
+ t.FailNow()
+ }
+}
+
+// Ensure that a private key can be encoded into DER format, and that
+// the resulting key is properly parsed back into a public key.
+func TestMarshalPrivate(t *testing.T) {
+ prv, err := GenerateKey(rand.Reader, DefaultCurve, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ out, err := MarshalPrivate(prv)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ if dumpEnc {
+ ioutil.WriteFile("test.out", out, 0644)
+ }
+
+ prv2, err := UnmarshalPrivate(out)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ if !cmpPrivate(prv, prv2) {
+ fmt.Println("ecdh: private key import failed")
+ t.FailNow()
+ }
+}
+
+// Ensure that a private key can be successfully encoded to PEM format, and
+// the resulting key is properly parsed back in.
+func TestPrivatePEM(t *testing.T) {
+ prv, err := GenerateKey(rand.Reader, DefaultCurve, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ out, err := ExportPrivatePEM(prv)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ if dumpEnc {
+ ioutil.WriteFile("test.key", out, 0644)
+ }
+
+ prv2, err := ImportPrivatePEM(out)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ } else if !cmpPrivate(prv, prv2) {
+ fmt.Println("ecdh: import from PEM failed")
+ t.FailNow()
+ }
+}
+
+// Ensure that a public key can be successfully encoded to PEM format, and
+// the resulting key is properly parsed back in.
+func TestPublicPEM(t *testing.T) {
+ prv, err := GenerateKey(rand.Reader, DefaultCurve, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ out, err := ExportPublicPEM(&prv.PublicKey)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ if dumpEnc {
+ ioutil.WriteFile("test.pem", out, 0644)
+ }
+
+ pub2, err := ImportPublicPEM(out)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ } else if !cmpPublic(prv.PublicKey, *pub2) {
+ fmt.Println("ecdh: import from PEM failed")
+ t.FailNow()
+ }
+}
+
+// Benchmark the generation of P256 keys.
+func BenchmarkGenerateKeyP256(b *testing.B) {
+ for i := 0; i < b.N; i++ {
+ if _, err := GenerateKey(rand.Reader, elliptic.P256(), nil); err != nil {
+ fmt.Println(err.Error())
+ b.FailNow()
+ }
+ }
+}
+
+// Benchmark the generation of P256 shared keys.
+func BenchmarkGenSharedKeyP256(b *testing.B) {
+ prv, err := GenerateKey(rand.Reader, elliptic.P256(), nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ b.FailNow()
+ }
+
+ for i := 0; i < b.N; i++ {
+ _, err := prv.GenerateShared(&prv.PublicKey, skLen, skLen)
+ if err != nil {
+ fmt.Println(err.Error())
+ b.FailNow()
+ }
+ }
+}
+
+// Verify that an encrypted message can be successfully decrypted.
+func TestEncryptDecrypt(t *testing.T) {
+ prv1, err := GenerateKey(rand.Reader, DefaultCurve, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ prv2, err := GenerateKey(rand.Reader, DefaultCurve, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ message := []byte("Hello, world.")
+ ct, err := Encrypt(rand.Reader, &prv2.PublicKey, message, nil, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ pt, err := prv2.Decrypt(rand.Reader, ct, nil, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ if !bytes.Equal(pt, message) {
+ fmt.Println("ecies: plaintext doesn't match message")
+ t.FailNow()
+ }
+
+ _, err = prv1.Decrypt(rand.Reader, ct, nil, nil)
+ if err == nil {
+ fmt.Println("ecies: encryption should not have succeeded")
+ t.FailNow()
+ }
+}
+
+// TestMarshalEncryption validates the encode/decode produces a valid
+// ECIES encryption key.
+func TestMarshalEncryption(t *testing.T) {
+ prv1, err := GenerateKey(rand.Reader, DefaultCurve, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ out, err := MarshalPrivate(prv1)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ prv2, err := UnmarshalPrivate(out)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ message := []byte("Hello, world.")
+ ct, err := Encrypt(rand.Reader, &prv2.PublicKey, message, nil, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ pt, err := prv2.Decrypt(rand.Reader, ct, nil, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ if !bytes.Equal(pt, message) {
+ fmt.Println("ecies: plaintext doesn't match message")
+ t.FailNow()
+ }
+
+ _, err = prv1.Decrypt(rand.Reader, ct, nil, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+}
+
+type testCase struct {
+ Curve elliptic.Curve
+ Name string
+ Expected bool
+}
+
+var testCases = []testCase{
+ testCase{
+ Curve: elliptic.P224(),
+ Name: "P224",
+ Expected: false,
+ },
+ testCase{
+ Curve: elliptic.P256(),
+ Name: "P256",
+ Expected: true,
+ },
+ testCase{
+ Curve: elliptic.P384(),
+ Name: "P384",
+ Expected: true,
+ },
+ testCase{
+ Curve: elliptic.P521(),
+ Name: "P521",
+ Expected: true,
+ },
+}
+
+// Test parameter selection for each curve, and that P224 fails automatic
+// parameter selection (see README for a discussion of P224). Ensures that
+// selecting a set of parameters automatically for the given curve works.
+func TestParamSelection(t *testing.T) {
+ for _, c := range testCases {
+ testParamSelection(t, c)
+ }
+}
+
+func testParamSelection(t *testing.T, c testCase) {
+ params := ParamsFromCurve(c.Curve)
+ if params == nil && c.Expected {
+ fmt.Printf("%s (%s)\n", ErrInvalidParams.Error(), c.Name)
+ t.FailNow()
+ } else if params != nil && !c.Expected {
+ fmt.Printf("ecies: parameters should be invalid (%s)\n",
+ c.Name)
+ t.FailNow()
+ }
+
+ prv1, err := GenerateKey(rand.Reader, DefaultCurve, nil)
+ if err != nil {
+ fmt.Printf("%s (%s)\n", err.Error(), c.Name)
+ t.FailNow()
+ }
+
+ prv2, err := GenerateKey(rand.Reader, DefaultCurve, nil)
+ if err != nil {
+ fmt.Printf("%s (%s)\n", err.Error(), c.Name)
+ t.FailNow()
+ }
+
+ message := []byte("Hello, world.")
+ ct, err := Encrypt(rand.Reader, &prv2.PublicKey, message, nil, nil)
+ if err != nil {
+ fmt.Printf("%s (%s)\n", err.Error(), c.Name)
+ t.FailNow()
+ }
+
+ pt, err := prv2.Decrypt(rand.Reader, ct, nil, nil)
+ if err != nil {
+ fmt.Printf("%s (%s)\n", err.Error(), c.Name)
+ t.FailNow()
+ }
+
+ if !bytes.Equal(pt, message) {
+ fmt.Printf("ecies: plaintext doesn't match message (%s)\n",
+ c.Name)
+ t.FailNow()
+ }
+
+ _, err = prv1.Decrypt(rand.Reader, ct, nil, nil)
+ if err == nil {
+ fmt.Printf("ecies: encryption should not have succeeded (%s)\n",
+ c.Name)
+ t.FailNow()
+ }
+
+}
+
+// Ensure that the basic public key validation in the decryption operation
+// works.
+func TestBasicKeyValidation(t *testing.T) {
+ badBytes := []byte{0, 1, 5, 6, 7, 8, 9}
+
+ prv, err := GenerateKey(rand.Reader, DefaultCurve, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ message := []byte("Hello, world.")
+ ct, err := Encrypt(rand.Reader, &prv.PublicKey, message, nil, nil)
+ if err != nil {
+ fmt.Println(err.Error())
+ t.FailNow()
+ }
+
+ for _, b := range badBytes {
+ ct[0] = b
+ _, err := prv.Decrypt(rand.Reader, ct, nil, nil)
+ if err != ErrInvalidPublicKey {
+ fmt.Println("ecies: validated an invalid key")
+ t.FailNow()
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/ecies/params.go b/Godeps/_workspace/src/github.com/obscuren/ecies/params.go
new file mode 100644
index 000000000..b968c7c17
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/ecies/params.go
@@ -0,0 +1,187 @@
+package ecies
+
+// This file contains parameters for ECIES encryption, specifying the
+// symmetric encryption and HMAC parameters.
+
+import (
+ "crypto"
+ "crypto/aes"
+ "crypto/cipher"
+ "crypto/elliptic"
+ "crypto/sha256"
+ "crypto/sha512"
+ "fmt"
+ "hash"
+)
+
+// The default curve for this package is the NIST P256 curve, which
+// provides security equivalent to AES-128.
+var DefaultCurve = elliptic.P256()
+
+var (
+ ErrUnsupportedECDHAlgorithm = fmt.Errorf("ecies: unsupported ECDH algorithm")
+ ErrUnsupportedECIESParameters = fmt.Errorf("ecies: unsupported ECIES parameters")
+)
+
+type ECIESParams struct {
+ Hash func() hash.Hash // hash function
+ hashAlgo crypto.Hash
+ Cipher func([]byte) (cipher.Block, error) // symmetric cipher
+ BlockSize int // block size of symmetric cipher
+ KeyLen int // length of symmetric key
+}
+
+// Standard ECIES parameters:
+// * ECIES using AES128 and HMAC-SHA-256-16
+// * ECIES using AES256 and HMAC-SHA-256-32
+// * ECIES using AES256 and HMAC-SHA-384-48
+// * ECIES using AES256 and HMAC-SHA-512-64
+var (
+ ECIES_AES128_SHA256 *ECIESParams
+ ECIES_AES256_SHA256 *ECIESParams
+ ECIES_AES256_SHA384 *ECIESParams
+ ECIES_AES256_SHA512 *ECIESParams
+)
+
+func init() {
+ ECIES_AES128_SHA256 = &ECIESParams{
+ Hash: sha256.New,
+ hashAlgo: crypto.SHA256,
+ Cipher: aes.NewCipher,
+ BlockSize: aes.BlockSize,
+ KeyLen: 16,
+ }
+
+ ECIES_AES256_SHA256 = &ECIESParams{
+ Hash: sha256.New,
+ hashAlgo: crypto.SHA256,
+ Cipher: aes.NewCipher,
+ BlockSize: aes.BlockSize,
+ KeyLen: 32,
+ }
+
+ ECIES_AES256_SHA384 = &ECIESParams{
+ Hash: sha512.New384,
+ hashAlgo: crypto.SHA384,
+ Cipher: aes.NewCipher,
+ BlockSize: aes.BlockSize,
+ KeyLen: 32,
+ }
+
+ ECIES_AES256_SHA512 = &ECIESParams{
+ Hash: sha512.New,
+ hashAlgo: crypto.SHA512,
+ Cipher: aes.NewCipher,
+ BlockSize: aes.BlockSize,
+ KeyLen: 32,
+ }
+}
+
+var paramsFromCurve = map[elliptic.Curve]*ECIESParams{
+ elliptic.P256(): ECIES_AES128_SHA256,
+ elliptic.P384(): ECIES_AES256_SHA384,
+ elliptic.P521(): ECIES_AES256_SHA512,
+}
+
+func AddParamsForCurve(curve elliptic.Curve, params *ECIESParams) {
+ paramsFromCurve[curve] = params
+}
+
+// ParamsFromCurve selects parameters optimal for the selected elliptic curve.
+// Only the curves P256, P384, and P512 are supported.
+func ParamsFromCurve(curve elliptic.Curve) (params *ECIESParams) {
+ return paramsFromCurve[curve]
+
+ /*
+ switch curve {
+ case elliptic.P256():
+ return ECIES_AES128_SHA256
+ case elliptic.P384():
+ return ECIES_AES256_SHA384
+ case elliptic.P521():
+ return ECIES_AES256_SHA512
+ default:
+ return nil
+ }
+ */
+}
+
+// ASN.1 encode the ECIES parameters relevant to the encryption operations.
+func paramsToASNECIES(params *ECIESParams) (asnParams asnECIESParameters) {
+ if nil == params {
+ return
+ }
+ asnParams.KDF = asnNISTConcatenationKDF
+ asnParams.MAC = hmacFull
+ switch params.KeyLen {
+ case 16:
+ asnParams.Sym = aes128CTRinECIES
+ case 24:
+ asnParams.Sym = aes192CTRinECIES
+ case 32:
+ asnParams.Sym = aes256CTRinECIES
+ }
+ return
+}
+
+// ASN.1 encode the ECIES parameters relevant to ECDH.
+func paramsToASNECDH(params *ECIESParams) (algo asnECDHAlgorithm) {
+ switch params.hashAlgo {
+ case crypto.SHA224:
+ algo = dhSinglePass_stdDH_sha224kdf
+ case crypto.SHA256:
+ algo = dhSinglePass_stdDH_sha256kdf
+ case crypto.SHA384:
+ algo = dhSinglePass_stdDH_sha384kdf
+ case crypto.SHA512:
+ algo = dhSinglePass_stdDH_sha512kdf
+ }
+ return
+}
+
+// ASN.1 decode the ECIES parameters relevant to the encryption stage.
+func asnECIEStoParams(asnParams asnECIESParameters, params *ECIESParams) {
+ if !asnParams.KDF.Cmp(asnNISTConcatenationKDF) {
+ params = nil
+ return
+ } else if !asnParams.MAC.Cmp(hmacFull) {
+ params = nil
+ return
+ }
+
+ switch {
+ case asnParams.Sym.Cmp(aes128CTRinECIES):
+ params.KeyLen = 16
+ params.BlockSize = 16
+ params.Cipher = aes.NewCipher
+ case asnParams.Sym.Cmp(aes192CTRinECIES):
+ params.KeyLen = 24
+ params.BlockSize = 16
+ params.Cipher = aes.NewCipher
+ case asnParams.Sym.Cmp(aes256CTRinECIES):
+ params.KeyLen = 32
+ params.BlockSize = 16
+ params.Cipher = aes.NewCipher
+ default:
+ params = nil
+ }
+}
+
+// ASN.1 decode the ECIES parameters relevant to ECDH.
+func asnECDHtoParams(asnParams asnECDHAlgorithm, params *ECIESParams) {
+ if asnParams.Cmp(dhSinglePass_stdDH_sha224kdf) {
+ params.hashAlgo = crypto.SHA224
+ params.Hash = sha256.New224
+ } else if asnParams.Cmp(dhSinglePass_stdDH_sha256kdf) {
+ params.hashAlgo = crypto.SHA256
+ params.Hash = sha256.New
+ } else if asnParams.Cmp(dhSinglePass_stdDH_sha384kdf) {
+ params.hashAlgo = crypto.SHA384
+ params.Hash = sha512.New384
+ } else if asnParams.Cmp(dhSinglePass_stdDH_sha512kdf) {
+ params.hashAlgo = crypto.SHA512
+ params.Hash = sha512.New
+ } else {
+ params = nil
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/.gitignore b/Godeps/_workspace/src/github.com/obscuren/otto/.gitignore
new file mode 100644
index 000000000..8c2a16949
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/.gitignore
@@ -0,0 +1,5 @@
+/.test
+/otto/otto
+/otto/otto-*
+/test/test-*.js
+/test/tester
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/DESIGN.markdown b/Godeps/_workspace/src/github.com/obscuren/otto/DESIGN.markdown
new file mode 100644
index 000000000..288752987
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/DESIGN.markdown
@@ -0,0 +1 @@
+* Designate the filename of "anonymous" source code by the hash (md5/sha1, etc.)
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/LICENSE b/Godeps/_workspace/src/github.com/obscuren/otto/LICENSE
new file mode 100644
index 000000000..b6179fe38
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/LICENSE
@@ -0,0 +1,7 @@
+Copyright (c) 2012 Robert Krimen
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/Makefile b/Godeps/_workspace/src/github.com/obscuren/otto/Makefile
new file mode 100644
index 000000000..477723bd0
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/Makefile
@@ -0,0 +1,63 @@
+.PHONY: test test-race test-release release release-check test-262
+.PHONY: parser
+.PHONY: otto assets underscore
+
+TESTS := \
+ ~
+
+TEST := -v --run
+TEST := -v --run Test\($(subst $(eval) ,\|,$(TESTS))\)
+TEST := -v
+TEST := .
+
+test: parser inline.go
+ go test -i
+ go test $(TEST)
+ @echo PASS
+
+parser:
+ $(MAKE) -C parser
+
+inline.go: inline
+ ./$< > $@
+
+#################
+# release, test #
+#################
+
+release: test-race test-release
+ for package in . parser token ast file underscore registry; do (cd $$package && godocdown --signature > README.markdown); done
+ @echo \*\*\* make release-check
+ @echo PASS
+
+release-check: .test
+ $(MAKE) -C test build test
+ $(MAKE) -C .test/test262 build test
+ @echo PASS
+
+test-262: .test
+ $(MAKE) -C .test/test262 build test
+ @echo PASS
+
+test-release:
+ go test -i
+ go test
+
+test-race:
+ go test -race -i
+ go test -race
+
+#################################
+# otto, assets, underscore, ... #
+#################################
+
+otto:
+ $(MAKE) -C otto
+
+assets:
+ mkdir -p .assets
+ for file in underscore/test/*.js; do tr "\`" "_" < $$file > .assets/`basename $$file`; done
+
+underscore:
+ $(MAKE) -C $@
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/README.markdown b/Godeps/_workspace/src/github.com/obscuren/otto/README.markdown
new file mode 100644
index 000000000..77ad0c4ed
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/README.markdown
@@ -0,0 +1,798 @@
+# otto
+--
+ import "github.com/robertkrimen/otto"
+
+Package otto is a JavaScript parser and interpreter written natively in Go.
+
+http://godoc.org/github.com/robertkrimen/otto
+
+ import (
+ "github.com/robertkrimen/otto"
+ )
+
+Run something in the VM
+
+ vm := otto.New()
+ vm.Run(`
+ abc = 2 + 2;
+ console.log("The value of abc is " + abc); // 4
+ `)
+
+Get a value out of the VM
+
+ value, err := vm.Get("abc")
+ value, _ := value.ToInteger()
+ }
+
+Set a number
+
+ vm.Set("def", 11)
+ vm.Run(`
+ console.log("The value of def is " + def);
+ // The value of def is 11
+ `)
+
+Set a string
+
+ vm.Set("xyzzy", "Nothing happens.")
+ vm.Run(`
+ console.log(xyzzy.length); // 16
+ `)
+
+Get the value of an expression
+
+ value, _ = vm.Run("xyzzy.length")
+ {
+ // value is an int64 with a value of 16
+ value, _ := value.ToInteger()
+ }
+
+An error happens
+
+ value, err = vm.Run("abcdefghijlmnopqrstuvwxyz.length")
+ if err != nil {
+ // err = ReferenceError: abcdefghijlmnopqrstuvwxyz is not defined
+ // If there is an error, then value.IsUndefined() is true
+ ...
+ }
+
+Set a Go function
+
+ vm.Set("sayHello", func(call otto.FunctionCall) otto.Value {
+ fmt.Printf("Hello, %s.\n", call.Argument(0).String())
+ return otto.UndefinedValue()
+ })
+
+Set a Go function that returns something useful
+
+ vm.Set("twoPlus", func(call otto.FunctionCall) otto.Value {
+ right, _ := call.Argument(0).ToInteger()
+ result, _ := vm.ToValue(2 + right)
+ return result
+ })
+
+Use the functions in JavaScript
+
+ result, _ = vm.Run(`
+ sayHello("Xyzzy"); // Hello, Xyzzy.
+ sayHello(); // Hello, undefined
+
+ result = twoPlus(2.0); // 4
+ `)
+
+
+### Parser
+
+A separate parser is available in the parser package if you're just interested
+in building an AST.
+
+http://godoc.org/github.com/robertkrimen/otto/parser
+
+Parse and return an AST
+
+ filename := "" // A filename is optional
+ src := `
+ // Sample xyzzy example
+ (function(){
+ if (3.14159 > 0) {
+ console.log("Hello, World.");
+ return;
+ }
+
+ var xyzzy = NaN;
+ console.log("Nothing happens.");
+ return xyzzy;
+ })();
+ `
+
+ // Parse some JavaScript, yielding a *ast.Program and/or an ErrorList
+ program, err := parser.ParseFile(nil, filename, src, 0)
+
+### otto
+
+You can run (Go) JavaScript from the commandline with:
+http://github.com/robertkrimen/otto/tree/master/otto
+
+ $ go get -v github.com/robertkrimen/otto/otto
+
+Run JavaScript by entering some source on stdin or by giving otto a filename:
+
+ $ otto example.js
+
+### underscore
+
+Optionally include the JavaScript utility-belt library, underscore, with this
+import:
+
+ import (
+ "github.com/robertkrimen/otto"
+ _ "github.com/robertkrimen/otto/underscore"
+ )
+
+ // Now every otto runtime will come loaded with underscore
+
+For more information: http://github.com/robertkrimen/otto/tree/master/underscore
+
+
+### Caveat Emptor
+
+The following are some limitations with otto:
+
+ * "use strict" will parse, but does nothing.
+ * Error reporting needs to be improved.
+ * The regular expression engine (re2/regexp) is not fully compatible with the ECMA5 specification.
+
+
+### Regular Expression Incompatibility
+
+Go translates JavaScript-style regular expressions into something that is
+"regexp" compatible via `parser.TransformRegExp`. Unfortunately, RegExp requires
+backtracking for some patterns, and backtracking is not supported by the
+standard Go engine: https://code.google.com/p/re2/wiki/Syntax
+
+Therefore, the following syntax is incompatible:
+
+ (?=) // Lookahead (positive), currently a parsing error
+ (?!) // Lookahead (backhead), currently a parsing error
+ \1 // Backreference (\1, \2, \3, ...), currently a parsing error
+
+A brief discussion of these limitations: "Regexp (?!re)"
+https://groups.google.com/forum/?fromgroups=#%21topic/golang-nuts/7qgSDWPIh_E
+
+More information about re2: https://code.google.com/p/re2/
+
+In addition to the above, re2 (Go) has a different definition for \s: [\t\n\f\r
+]. The JavaScript definition, on the other hand, also includes \v, Unicode
+"Separator, Space", etc.
+
+
+### Halting Problem
+
+If you want to stop long running executions (like third-party code), you can use
+the interrupt channel to do this:
+
+ package main
+
+ import (
+ "errors"
+ "fmt"
+ "os"
+ "time"
+
+ "github.com/robertkrimen/otto"
+ )
+
+ var halt = errors.New("Stahp")
+
+ func main() {
+ runUnsafe(`var abc = [];`)
+ runUnsafe(`
+ while (true) {
+ // Loop forever
+ }`)
+ }
+
+ func runUnsafe(unsafe string) {
+ start := time.Now()
+ defer func() {
+ duration := time.Since(start)
+ if caught := recover(); caught != nil {
+ if caught == halt {
+ fmt.Fprintf(os.Stderr, "Some code took to long! Stopping after: %v\n", duration)
+ return
+ }
+ panic(caught) // Something else happened, repanic!
+ }
+ fmt.Fprintf(os.Stderr, "Ran code successfully: %v\n", duration)
+ }()
+ vm := otto.New()
+ vm.Interrupt = make(chan func())
+ go func() {
+ time.Sleep(2 * time.Second) // Stop after two seconds
+ vm.Interrupt <- func() {
+ panic(halt)
+ }
+ }()
+ vm.Run(unsafe) // Here be dragons (risky code)
+ vm.Interrupt = nil
+ }
+
+Where is setTimeout/setInterval?
+
+These timing functions are not actually part of the ECMA-262 specification.
+Typically, they belong to the `windows` object (in the browser). It would not be
+difficult to provide something like these via Go, but you probably want to wrap
+otto in an event loop in that case.
+
+For an example of how this could be done in Go with otto, see natto:
+
+http://github.com/robertkrimen/natto
+
+Here is some more discussion of the issue:
+
+* http://book.mixu.net/node/ch2.html
+
+* http://en.wikipedia.org/wiki/Reentrancy_%28computing%29
+
+* http://aaroncrane.co.uk/2009/02/perl_safe_signals/
+
+## Usage
+
+```go
+var ErrVersion = errors.New("version mismatch")
+```
+
+#### type FunctionCall
+
+```go
+type FunctionCall struct {
+ This Value
+ ArgumentList []Value
+ Otto *Otto
+}
+```
+
+FunctionCall is an encapsulation of a JavaScript function call.
+
+#### func (FunctionCall) Argument
+
+```go
+func (self FunctionCall) Argument(index int) Value
+```
+Argument will return the value of the argument at the given index.
+
+If no such argument exists, undefined is returned.
+
+#### type Object
+
+```go
+type Object struct {
+}
+```
+
+Object is the representation of a JavaScript object.
+
+#### func (Object) Call
+
+```go
+func (self Object) Call(name string, argumentList ...interface{}) (Value, error)
+```
+Call a method on the object.
+
+It is essentially equivalent to:
+
+ var method, _ := object.Get(name)
+ method.Call(object, argumentList...)
+
+An undefined value and an error will result if:
+
+ 1. There is an error during conversion of the argument list
+ 2. The property is not actually a function
+ 3. An (uncaught) exception is thrown
+
+#### func (Object) Class
+
+```go
+func (self Object) Class() string
+```
+Class will return the class string of the object.
+
+The return value will (generally) be one of:
+
+ Object
+ Function
+ Array
+ String
+ Number
+ Boolean
+ Date
+ RegExp
+
+#### func (Object) Get
+
+```go
+func (self Object) Get(name string) (Value, error)
+```
+Get the value of the property with the given name.
+
+#### func (Object) Keys
+
+```go
+func (self Object) Keys() []string
+```
+Get the keys for the object
+
+Equivalent to calling Object.keys on the object
+
+#### func (Object) Set
+
+```go
+func (self Object) Set(name string, value interface{}) error
+```
+Set the property of the given name to the given value.
+
+An error will result if the setting the property triggers an exception (i.e.
+read-only), or there is an error during conversion of the given value.
+
+#### func (Object) Value
+
+```go
+func (self Object) Value() Value
+```
+Value will return self as a value.
+
+#### type Otto
+
+```go
+type Otto struct {
+ // Interrupt is a channel for interrupting the runtime. You can use this to halt a long running execution, for example.
+ // See "Halting Problem" for more information.
+ Interrupt chan func()
+}
+```
+
+Otto is the representation of the JavaScript runtime. Each instance of Otto has
+a self-contained namespace.
+
+#### func New
+
+```go
+func New() *Otto
+```
+New will allocate a new JavaScript runtime
+
+#### func Run
+
+```go
+func Run(src interface{}) (*Otto, Value, error)
+```
+Run will allocate a new JavaScript runtime, run the given source on the
+allocated runtime, and return the runtime, resulting value, and error (if any).
+
+src may be a string, a byte slice, a bytes.Buffer, or an io.Reader, but it MUST
+always be in UTF-8.
+
+src may also be a Script.
+
+src may also be a Program, but if the AST has been modified, then runtime
+behavior is undefined.
+
+#### func (Otto) Call
+
+```go
+func (self Otto) Call(source string, this interface{}, argumentList ...interface{}) (Value, error)
+```
+Call the given JavaScript with a given this and arguments.
+
+If this is nil, then some special handling takes place to determine the proper
+this value, falling back to a "standard" invocation if necessary (where this is
+undefined).
+
+If source begins with "new " (A lowercase new followed by a space), then Call
+will invoke the function constructor rather than performing a function call. In
+this case, the this argument has no effect.
+
+ // value is a String object
+ value, _ := vm.Call("Object", nil, "Hello, World.")
+
+ // Likewise...
+ value, _ := vm.Call("new Object", nil, "Hello, World.")
+
+ // This will perform a concat on the given array and return the result
+ // value is [ 1, 2, 3, undefined, 4, 5, 6, 7, "abc" ]
+ value, _ := vm.Call(`[ 1, 2, 3, undefined, 4 ].concat`, nil, 5, 6, 7, "abc")
+
+#### func (*Otto) Compile
+
+```go
+func (self *Otto) Compile(filename string, src interface{}) (*Script, error)
+```
+Compile will parse the given source and return a Script value or nil and an
+error if there was a problem during compilation.
+
+ script, err := vm.Compile("", `var abc; if (!abc) abc = 0; abc += 2; abc;`)
+ vm.Run(script)
+
+#### func (*Otto) Copy
+
+```go
+func (self *Otto) Copy() *Otto
+```
+Copy will create a copy/clone of the runtime.
+
+Copy is useful for saving some processing time when creating many similar
+runtimes.
+
+This implementation is alpha-ish, and works by introspecting every part of the
+runtime and reallocating and then relinking everything back together. Please
+report if you notice any inadvertent sharing of data between copies.
+
+#### func (Otto) Get
+
+```go
+func (self Otto) Get(name string) (Value, error)
+```
+Get the value of the top-level binding of the given name.
+
+If there is an error (like the binding does not exist), then the value will be
+undefined.
+
+#### func (Otto) Object
+
+```go
+func (self Otto) Object(source string) (*Object, error)
+```
+Object will run the given source and return the result as an object.
+
+For example, accessing an existing object:
+
+ object, _ := vm.Object(`Number`)
+
+Or, creating a new object:
+
+ object, _ := vm.Object(`({ xyzzy: "Nothing happens." })`)
+
+Or, creating and assigning an object:
+
+ object, _ := vm.Object(`xyzzy = {}`)
+ object.Set("volume", 11)
+
+If there is an error (like the source does not result in an object), then nil
+and an error is returned.
+
+#### func (Otto) Run
+
+```go
+func (self Otto) Run(src interface{}) (Value, error)
+```
+Run will run the given source (parsing it first if necessary), returning the
+resulting value and error (if any)
+
+src may be a string, a byte slice, a bytes.Buffer, or an io.Reader, but it MUST
+always be in UTF-8.
+
+If the runtime is unable to parse source, then this function will return
+undefined and the parse error (nothing will be evaluated in this case).
+
+src may also be a Script.
+
+src may also be a Program, but if the AST has been modified, then runtime
+behavior is undefined.
+
+#### func (Otto) Set
+
+```go
+func (self Otto) Set(name string, value interface{}) error
+```
+Set the top-level binding of the given name to the given value.
+
+Set will automatically apply ToValue to the given value in order to convert it
+to a JavaScript value (type Value).
+
+If there is an error (like the binding is read-only, or the ToValue conversion
+fails), then an error is returned.
+
+If the top-level binding does not exist, it will be created.
+
+#### func (Otto) ToValue
+
+```go
+func (self Otto) ToValue(value interface{}) (Value, error)
+```
+ToValue will convert an interface{} value to a value digestible by
+otto/JavaScript.
+
+#### type Script
+
+```go
+type Script struct {
+}
+```
+
+Script is a handle for some (reusable) JavaScript. Passing a Script value to a
+run method will evaluate the JavaScript.
+
+#### func (*Script) String
+
+```go
+func (self *Script) String() string
+```
+
+#### type Value
+
+```go
+type Value struct {
+}
+```
+
+Value is the representation of a JavaScript value.
+
+#### func FalseValue
+
+```go
+func FalseValue() Value
+```
+FalseValue will return a value representing false.
+
+It is equivalent to:
+
+ ToValue(false)
+
+#### func NaNValue
+
+```go
+func NaNValue() Value
+```
+NaNValue will return a value representing NaN.
+
+It is equivalent to:
+
+ ToValue(math.NaN())
+
+#### func NullValue
+
+```go
+func NullValue() Value
+```
+NullValue will return a Value representing null.
+
+#### func ToValue
+
+```go
+func ToValue(value interface{}) (Value, error)
+```
+ToValue will convert an interface{} value to a value digestible by
+otto/JavaScript This function will not work for advanced types (struct, map,
+slice/array, etc.) and you probably should not use it.
+
+ToValue may be deprecated and removed in the near future.
+
+Try Otto.ToValue for a replacement.
+
+#### func TrueValue
+
+```go
+func TrueValue() Value
+```
+TrueValue will return a value representing true.
+
+It is equivalent to:
+
+ ToValue(true)
+
+#### func UndefinedValue
+
+```go
+func UndefinedValue() Value
+```
+UndefinedValue will return a Value representing undefined.
+
+#### func (Value) Call
+
+```go
+func (value Value) Call(this Value, argumentList ...interface{}) (Value, error)
+```
+Call the value as a function with the given this value and argument list and
+return the result of invocation. It is essentially equivalent to:
+
+ value.apply(thisValue, argumentList)
+
+An undefined value and an error will result if:
+
+ 1. There is an error during conversion of the argument list
+ 2. The value is not actually a function
+ 3. An (uncaught) exception is thrown
+
+#### func (Value) Class
+
+```go
+func (value Value) Class() string
+```
+Class will return the class string of the value or the empty string if value is
+not an object.
+
+The return value will (generally) be one of:
+
+ Object
+ Function
+ Array
+ String
+ Number
+ Boolean
+ Date
+ RegExp
+
+#### func (Value) Export
+
+```go
+func (self Value) Export() (interface{}, error)
+```
+Export will attempt to convert the value to a Go representation and return it
+via an interface{} kind.
+
+WARNING: The interface function will be changing soon to:
+
+ Export() interface{}
+
+If a reasonable conversion is not possible, then the original result is
+returned.
+
+ undefined -> otto.Value (UndefinedValue())
+ null -> interface{}(nil)
+ boolean -> bool
+ number -> A number type (int, float32, uint64, ...)
+ string -> string
+ Array -> []interface{}
+ Object -> map[string]interface{}
+
+#### func (Value) IsBoolean
+
+```go
+func (value Value) IsBoolean() bool
+```
+IsBoolean will return true if value is a boolean (primitive).
+
+#### func (Value) IsDefined
+
+```go
+func (value Value) IsDefined() bool
+```
+IsDefined will return false if the value is undefined, and true otherwise.
+
+#### func (Value) IsFunction
+
+```go
+func (value Value) IsFunction() bool
+```
+IsFunction will return true if value is a function.
+
+#### func (Value) IsNaN
+
+```go
+func (value Value) IsNaN() bool
+```
+IsNaN will return true if value is NaN (or would convert to NaN).
+
+#### func (Value) IsNull
+
+```go
+func (value Value) IsNull() bool
+```
+IsNull will return true if the value is null, and false otherwise.
+
+#### func (Value) IsNumber
+
+```go
+func (value Value) IsNumber() bool
+```
+IsNumber will return true if value is a number (primitive).
+
+#### func (Value) IsObject
+
+```go
+func (value Value) IsObject() bool
+```
+IsObject will return true if value is an object.
+
+#### func (Value) IsPrimitive
+
+```go
+func (value Value) IsPrimitive() bool
+```
+IsPrimitive will return true if value is a primitive (any kind of primitive).
+
+#### func (Value) IsString
+
+```go
+func (value Value) IsString() bool
+```
+IsString will return true if value is a string (primitive).
+
+#### func (Value) IsUndefined
+
+```go
+func (value Value) IsUndefined() bool
+```
+IsUndefined will return true if the value is undefined, and false otherwise.
+
+#### func (Value) Object
+
+```go
+func (value Value) Object() *Object
+```
+Object will return the object of the value, or nil if value is not an object.
+
+This method will not do any implicit conversion. For example, calling this
+method on a string primitive value will not return a String object.
+
+#### func (Value) String
+
+```go
+func (value Value) String() string
+```
+String will return the value as a string.
+
+This method will make return the empty string if there is an error.
+
+#### func (Value) ToBoolean
+
+```go
+func (value Value) ToBoolean() (bool, error)
+```
+ToBoolean will convert the value to a boolean (bool).
+
+ ToValue(0).ToBoolean() => false
+ ToValue("").ToBoolean() => false
+ ToValue(true).ToBoolean() => true
+ ToValue(1).ToBoolean() => true
+ ToValue("Nothing happens").ToBoolean() => true
+
+If there is an error during the conversion process (like an uncaught exception),
+then the result will be false and an error.
+
+#### func (Value) ToFloat
+
+```go
+func (value Value) ToFloat() (float64, error)
+```
+ToFloat will convert the value to a number (float64).
+
+ ToValue(0).ToFloat() => 0.
+ ToValue(1.1).ToFloat() => 1.1
+ ToValue("11").ToFloat() => 11.
+
+If there is an error during the conversion process (like an uncaught exception),
+then the result will be 0 and an error.
+
+#### func (Value) ToInteger
+
+```go
+func (value Value) ToInteger() (int64, error)
+```
+ToInteger will convert the value to a number (int64).
+
+ ToValue(0).ToInteger() => 0
+ ToValue(1.1).ToInteger() => 1
+ ToValue("11").ToInteger() => 11
+
+If there is an error during the conversion process (like an uncaught exception),
+then the result will be 0 and an error.
+
+#### func (Value) ToString
+
+```go
+func (value Value) ToString() (string, error)
+```
+ToString will convert the value to a string (string).
+
+ ToValue(0).ToString() => "0"
+ ToValue(false).ToString() => "false"
+ ToValue(1.1).ToString() => "1.1"
+ ToValue("11").ToString() => "11"
+ ToValue('Nothing happens.').ToString() => "Nothing happens."
+
+If there is an error during the conversion process (like an uncaught exception),
+then the result will be the empty string ("") and an error.
+
+--
+**godocdown** http://github.com/robertkrimen/godocdown
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/array_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/array_test.go
new file mode 100644
index 000000000..06f481bd4
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/array_test.go
@@ -0,0 +1,716 @@
+package otto
+
+import (
+ "testing"
+)
+
+func TestArray(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = [ undefined, "Nothing happens." ];
+ abc.length;
+ `, 2)
+
+ test(`
+ abc = ""+[0, 1, 2, 3];
+ def = [].toString();
+ ghi = [null, 4, "null"].toString();
+ [ abc, def, ghi ];
+ `, "0,1,2,3,,,4,null")
+
+ test(`new Array(0).length`, 0)
+
+ test(`new Array(11).length`, 11)
+
+ test(`new Array(11, 1).length`, 2)
+
+ test(`
+ abc = [0, 1, 2, 3];
+ abc.xyzzy = "Nothing happens.";
+ delete abc[1];
+ var xyzzy = delete abc.xyzzy;
+ [ abc, xyzzy, abc.xyzzy ];
+ `, "0,,2,3,true,")
+
+ test(`
+ var abc = [0, 1, 2, 3, 4];
+ abc.length = 2;
+ abc;
+ `, "0,1")
+
+ test(`raise:
+ [].length = 3.14159;
+ `, "RangeError")
+
+ test(`raise:
+ new Array(3.14159);
+ `, "RangeError")
+
+ test(`
+ Object.defineProperty(Array.prototype, "0", {
+ value: 100,
+ writable: false,
+ configurable: true
+ });
+ abc = [101];
+ abc.hasOwnProperty("0") && abc[0] === 101;
+ `, true)
+
+ test(`
+ abc = [,,undefined];
+ [ abc.hasOwnProperty(0), abc.hasOwnProperty(1), abc.hasOwnProperty(2) ];
+ `, "false,false,true")
+
+ test(`
+ abc = Object.getOwnPropertyDescriptor(Array, "prototype");
+ [ [ typeof Array.prototype ],
+ [ abc.writable, abc.enumerable, abc.configurable ] ];
+ `, "object,false,false,false")
+ })
+}
+
+func TestArray_toString(t *testing.T) {
+ tt(t, func() {
+ {
+ test(`
+ Array.prototype.toString = function() {
+ return "Nothing happens.";
+ }
+ abc = Array.prototype.toString();
+ def = [].toString();
+ ghi = [null, 4, "null"].toString();
+
+ [ abc, def, ghi ].join(",");
+ `, "Nothing happens.,Nothing happens.,Nothing happens.")
+ }
+
+ {
+ test(`
+ Array.prototype.join = undefined
+ abc = Array.prototype.toString()
+ def = [].toString()
+ ghi = [null, 4, "null"].toString()
+
+ abc + "," + def + "," + ghi;
+ `, "[object Array],[object Array],[object Array]")
+ }
+ })
+}
+
+func TestArray_toLocaleString(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`
+ [ 3.14159, "abc", undefined, new Date(0) ].toLocaleString();
+ `, "3.14159,abc,,1970-01-01 00:00:00")
+
+ test(`raise:
+ [ { toLocaleString: undefined } ].toLocaleString();
+ `, "TypeError")
+ })
+}
+
+func TestArray_concat(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = [0, 1, 2];
+ def = [-1, -2, -3];
+ ghi = abc.concat(def);
+ jkl = abc.concat(def, 3, 4, 5);
+ mno = def.concat(-4, -5, abc);
+
+ [ ghi, jkl, mno ].join(";");
+ `, "0,1,2,-1,-2,-3;0,1,2,-1,-2,-3,3,4,5;-1,-2,-3,-4,-5,0,1,2")
+
+ test(`
+ var abc = [,1];
+ var def = abc.concat([], [,]);
+
+ def.getClass = Object.prototype.toString;
+
+ [ def.getClass(), typeof def[0], def[1], typeof def[2], def.length ];
+ `, "[object Array],undefined,1,undefined,3")
+
+ test(`
+ Object.defineProperty(Array.prototype, "0", {
+ value: 100,
+ writable: false,
+ configurable: true
+ });
+
+ var abc = Array.prototype.concat.call(101);
+
+ var hasProperty = abc.hasOwnProperty("0");
+ var instanceOfVerify = typeof abc[0] === "object";
+ var verifyValue = false;
+ verifyValue = abc[0] == 101;
+
+ var verifyEnumerable = false;
+ for (var property in abc) {
+ if (property === "0" && abc.hasOwnProperty("0")) {
+ verifyEnumerable = true;
+ }
+ }
+
+ var verifyWritable = false;
+ abc[0] = 12;
+ verifyWritable = abc[0] === 12;
+
+ var verifyConfigurable = false;
+ delete abc[0];
+ verifyConfigurable = abc.hasOwnProperty("0");
+
+ [ hasProperty, instanceOfVerify, verifyValue, !verifyConfigurable, verifyEnumerable, verifyWritable ];
+ `, "true,true,true,true,true,true")
+ })
+}
+
+func TestArray_splice(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = [0, 1, 2];
+ def = abc.splice(1, 2, 3, 4, 5);
+ ghi = [].concat(abc);
+ jkl = ghi.splice(17, 21, 7, 8, 9);
+ [ abc, def, ghi, jkl ].join(";");
+ `, "0,3,4,5;1,2;0,3,4,5,7,8,9;")
+ })
+}
+
+func TestArray_shift(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = [0, 1, 2];
+ def = abc.shift();
+ ghi = [].concat(abc);
+ jkl = abc.shift();
+ mno = [].concat(abc);
+ pqr = abc.shift();
+ stu = [].concat(abc);
+ vwx = abc.shift();
+
+ [ abc, def, ghi, jkl, mno, pqr, stu, vwx ].join(";");
+ `, ";0;1,2;1;2;2;;")
+ })
+}
+
+func TestArray_push(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = [0];
+ def = abc.push(1);
+ ghi = [].concat(abc);
+ jkl = abc.push(2,3,4);
+
+ [ abc, def, ghi, jkl ].join(";");
+ `, "0,1,2,3,4;2;0,1;5")
+ })
+}
+
+func TestArray_pop(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = [0,1];
+ def = abc.pop();
+ ghi = [].concat(abc);
+ jkl = abc.pop();
+ mno = [].concat(abc);
+ pqr = abc.pop();
+
+ [ abc, def, ghi, jkl, mno, pqr ].join(";");
+ `, ";1;0;0;;")
+ })
+}
+
+func TestArray_slice(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = [0,1,2,3];
+ def = abc.slice();
+ ghi = abc.slice(1);
+ jkl = abc.slice(3,-1);
+ mno = abc.slice(2,-1);
+ pqr = abc.slice(-1, -10);
+
+ [ abc, def, ghi, jkl, mno, pqr ].join(";");
+ `, "0,1,2,3;0,1,2,3;1,2,3;;2;")
+
+ // Array.protoype.slice is generic
+ test(`
+ abc = { 0: 0, 1: 1, 2: 2, 3: 3 };
+ abc.length = 4;
+ def = Array.prototype.slice.call(abc);
+ ghi = Array.prototype.slice.call(abc,1);
+ jkl = Array.prototype.slice.call(abc,3,-1);
+ mno = Array.prototype.slice.call(abc,2,-1);
+ pqr = Array.prototype.slice.call(abc,-1,-10);
+
+ [ abc, def, ghi, jkl, pqr ].join(";");
+ `, "[object Object];0,1,2,3;1,2,3;;")
+ })
+}
+
+func TestArray_sliceArguments(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ (function(){
+ return Array.prototype.slice.call(arguments, 1)
+ })({}, 1, 2, 3);
+ `, "1,2,3")
+ })
+}
+
+func TestArray_unshift(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = [];
+ def = abc.unshift(0);
+ ghi = [].concat(abc);
+ jkl = abc.unshift(1,2,3,4);
+
+ [ abc, def, ghi, jkl ].join(";");
+ `, "1,2,3,4,0;1;0;5")
+ })
+}
+
+func TestArray_reverse(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = [0,1,2,3].reverse();
+ def = [0,1,2].reverse();
+
+ [ abc, def ];
+ `, "3,2,1,0,2,1,0")
+ })
+}
+
+func TestArray_sort(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = [0,1,2,3].sort();
+ def = [3,2,1,0].sort();
+ ghi = [].sort();
+ jkl = [0].sort();
+ mno = [1,0].sort();
+ pqr = [1,5,-10, 100, 8, 72, 401, 0.05].sort();
+ stu = [1,5,-10, 100, 8, 72, 401, 0.05].sort(function(x, y){
+ return x == y ? 0 : x < y ? -1 : 1
+ });
+
+ [ abc, def, ghi, jkl, mno, pqr, stu ].join(";");
+ `, "0,1,2,3;0,1,2,3;;0;0,1;-10,0.05,1,100,401,5,72,8;-10,0.05,1,5,8,72,100,401")
+
+ test(`Array.prototype.sort.length`, 1)
+ })
+}
+
+func TestArray_isArray(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [ Array.isArray.length, Array.isArray(), Array.isArray([]), Array.isArray({}) ];
+ `, "1,false,true,false")
+
+ test(`Array.isArray(Math)`, false)
+ })
+}
+
+func TestArray_indexOf(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`['a', 'b', 'c', 'b'].indexOf('b')`, 1)
+
+ test(`['a', 'b', 'c', 'b'].indexOf('b', 2)`, 3)
+
+ test(`['a', 'b', 'c', 'b'].indexOf('b', -2)`, 3)
+
+ test(`
+ Object.prototype.indexOf = Array.prototype.indexOf;
+ var abc = {0: 'a', 1: 'b', 2: 'c', length: 3};
+ abc.indexOf('c');
+ `, 2)
+
+ test(`[true].indexOf(true, "-Infinity")`, 0)
+
+ test(`
+ var target = {};
+ Math[3] = target;
+ Math.length = 5;
+ Array.prototype.indexOf.call(Math, target) === 3;
+ `, true)
+
+ test(`
+ var _NaN = NaN;
+ var abc = new Array("NaN", undefined, 0, false, null, {toString:function(){return NaN}}, "false", _NaN, NaN);
+ abc.indexOf(NaN);
+ `, -1)
+
+ test(`
+ var abc = {toString:function (){return 0}};
+ var def = 1;
+ var ghi = -(4/3);
+ var jkl = new Array(false, undefined, null, "0", abc, -1.3333333333333, "string", -0, true, +0, def, 1, 0, false, ghi, -(4/3));
+ [ jkl.indexOf(-(4/3)), jkl.indexOf(0), jkl.indexOf(-0), jkl.indexOf(1) ];
+ `, "14,7,7,10")
+ })
+}
+
+func TestArray_lastIndexOf(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`['a', 'b', 'c', 'b'].lastIndexOf('b')`, 3)
+
+ test(`['a', 'b', 'c', 'b'].lastIndexOf('b', 2)`, 1)
+
+ test(`['a', 'b', 'c', 'b'].lastIndexOf('b', -2)`, 1)
+
+ test(`
+ Object.prototype.lastIndexOf = Array.prototype.lastIndexOf;
+ var abc = {0: 'a', 1: 'b', 2: 'c', 3: 'b', length: 4};
+ abc.lastIndexOf('b');
+ `, 3)
+
+ test(`
+ var target = {};
+ Math[3] = target;
+ Math.length = 5;
+ [ Array.prototype.lastIndexOf.call(Math, target) === 3 ];
+ `, "true")
+
+ test(`
+ var _NaN = NaN;
+ var abc = new Array("NaN", undefined, 0, false, null, {toString:function(){return NaN}}, "false", _NaN, NaN);
+ abc.lastIndexOf(NaN);
+ `, -1)
+
+ test(`
+ var abc = {toString:function (){return 0}};
+ var def = 1;
+ var ghi = -(4/3);
+ var jkl = new Array(false, undefined, null, "0", abc, -1.3333333333333, "string", -0, true, +0, def, 1, 0, false, ghi, -(4/3));
+ [ jkl.lastIndexOf(-(4/3)), jkl.indexOf(0), jkl.indexOf(-0), jkl.indexOf(1) ];
+ `, "15,7,7,10")
+ })
+}
+
+func TestArray_every(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise: [].every()`, "TypeError")
+
+ test(`raise: [].every("abc")`, "TypeError")
+
+ test(`[].every(function() { return false })`, true)
+
+ test(`[1,2,3].every(function() { return false })`, false)
+
+ test(`[1,2,3].every(function() { return true })`, true)
+
+ test(`[1,2,3].every(function(_, index) { if (index === 1) return true })`, false)
+
+ test(`
+ var abc = function(value, index, object) {
+ return ('[object Math]' !== Object.prototype.toString.call(object));
+ };
+
+ Math.length = 1;
+ Math[0] = 1;
+ !Array.prototype.every.call(Math, abc);
+ `, true)
+
+ test(`
+ var def = false;
+
+ var abc = function(value, index, object) {
+ def = true;
+ return this === Math;
+ };
+
+ [11].every(abc, Math) && def;
+ `, true)
+
+ test(`
+ var def = false;
+
+ var abc = function(value, index, object) {
+ def = true;
+ return Math;
+ };
+
+ [11].every(abc) && def;
+ `, true)
+ })
+}
+
+func TestArray_some(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise: [].some("abc")`, "TypeError")
+
+ test(`[].some(function() { return true })`, false)
+
+ test(`[1,2,3].some(function() { return false })`, false)
+
+ test(`[1,2,3].some(function() { return true })`, true)
+
+ test(`[1,2,3].some(function(_, index) { if (index === 1) return true })`, true)
+
+ test(`
+ var abc = function(value, index, object) {
+ return ('[object Math]' !== Object.prototype.toString.call(object));
+ };
+
+ Math.length = 1;
+ Math[0] = 1;
+ !Array.prototype.some.call(Math, abc);
+ `, true)
+
+ test(`
+ var abc = function(value, index, object) {
+ return this === Math;
+ };
+
+ [11].some(abc, Math);
+ `, true)
+
+ test(`
+ var abc = function(value, index, object) {
+ return Math;
+ };
+
+ [11].some(abc);
+ `, true)
+ })
+}
+
+func TestArray_forEach(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise: [].forEach("abc")`, "TypeError")
+
+ test(`
+ var abc = 0;
+ [].forEach(function(value) {
+ abc += value;
+ });
+ abc;
+ `, 0)
+
+ test(`
+ abc = 0;
+ var def = [];
+ [1,2,3].forEach(function(value, index) {
+ abc += value;
+ def.push(index);
+ });
+ [ abc, def ];
+ `, "6,0,1,2")
+
+ test(`
+ var def = false;
+ var abc = function(value, index, object) {
+ def = ('[object Math]' === Object.prototype.toString.call(object));
+ };
+
+ Math.length = 1;
+ Math[0] = 1;
+ Array.prototype.forEach.call(Math, abc);
+ def;
+ `, true)
+
+ test(`
+ var def = false;
+ var abc = function(value, index, object) {
+ def = this === Math;
+ };
+
+ [11].forEach(abc, Math);
+ def;
+ `, true)
+ })
+}
+
+func TestArray_indexing(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = new Array(0, 1);
+ var def = abc.length;
+ abc[4294967296] = 10; // 2^32 => 0
+ abc[4294967297] = 11; // 2^32+1 => 1
+ [ def, abc.length, abc[0], abc[1], abc[4294967296] ];
+ `, "2,2,0,1,10")
+
+ test(`
+ abc = new Array(0, 1);
+ def = abc.length;
+ abc[4294967295] = 10;
+ var ghi = abc.length;
+ abc[4294967299] = 12;
+ var jkl = abc.length;
+ abc[4294967294] = 11;
+ [ def, ghi, jkl, abc.length, abc[4294967295], abc[4294967299] ];
+ `, "2,2,2,4294967295,10,12")
+ })
+}
+
+func TestArray_map(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise: [].map("abc")`, "TypeError")
+
+ test(`[].map(function() { return 1 }).length`, 0)
+
+ test(`[1,2,3].map(function(value) { return value * value })`, "1,4,9")
+
+ test(`[1,2,3].map(function(value) { return 1 })`, "1,1,1")
+
+ test(`
+ var abc = function(value, index, object) {
+ return ('[object Math]' === Object.prototype.toString.call(object));
+ };
+
+ Math.length = 1;
+ Math[0] = 1;
+ Array.prototype.map.call(Math, abc)[0];
+ `, true)
+
+ test(`
+ var abc = function(value, index, object) {
+ return this === Math;
+ };
+
+ [11].map(abc, Math)[0];
+ `, true)
+ })
+}
+
+func TestArray_filter(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise: [].filter("abc")`, "TypeError")
+
+ test(`[].filter(function() { return 1 }).length`, 0)
+
+ test(`[1,2,3].filter(function() { return false }).length`, 0)
+
+ test(`[1,2,3].filter(function() { return true })`, "1,2,3")
+ })
+}
+
+func TestArray_reduce(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise: [].reduce("abc")`, "TypeError")
+
+ test(`raise: [].reduce(function() {})`, "TypeError")
+
+ test(`[].reduce(function() {}, 0)`, 0)
+
+ test(`[].reduce(function() {}, undefined)`, "undefined")
+
+ test(`['a','b','c'].reduce(function(result, value) { return result+', '+value })`, "a, b, c")
+
+ test(`[1,2,3].reduce(function(result, value) { return result + value }, 4)`, 10)
+
+ test(`[1,2,3].reduce(function(result, value) { return result + value })`, 6)
+ })
+}
+
+func TestArray_reduceRight(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise: [].reduceRight("abc")`, "TypeError")
+
+ test(`raise: [].reduceRight(function() {})`, "TypeError")
+
+ test(`[].reduceRight(function() {}, 0)`, 0)
+
+ test(`[].reduceRight(function() {}, undefined)`, "undefined")
+
+ test(`['a','b','c'].reduceRight(function(result, value) { return result+', '+value })`, "c, b, a")
+
+ test(`[1,2,3].reduceRight(function(result, value) { return result + value }, 4)`, 10)
+
+ test(`[1,2,3].reduceRight(function(result, value) { return result + value })`, 6)
+ })
+}
+
+func TestArray_defineOwnProperty(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = [];
+ Object.defineProperty(abc, "length", {
+ writable: false
+ });
+ abc.length;
+ `, 0)
+
+ test(`raise:
+ var abc = [];
+ var exception;
+ Object.defineProperty(abc, "length", {
+ writable: false
+ });
+ Object.defineProperty(abc, "length", {
+ writable: true
+ });
+ `, "TypeError")
+ })
+}
+
+func TestArray_new(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = new Array(null);
+ var def = new Array(undefined);
+ [ abc.length, abc[0] === null, def.length, def[0] === undefined ]
+ `, "1,true,1,true")
+
+ test(`
+ var abc = new Array(new Number(0));
+ var def = new Array(new Number(4294967295));
+ [ abc.length, typeof abc[0], abc[0] == 0, def.length, typeof def[0], def[0] == 4294967295 ]
+ `, "1,object,true,1,object,true")
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/ast/README.markdown b/Godeps/_workspace/src/github.com/obscuren/otto/ast/README.markdown
new file mode 100644
index 000000000..a12e048d5
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/ast/README.markdown
@@ -0,0 +1,1066 @@
+# ast
+--
+ import "github.com/robertkrimen/otto/ast"
+
+Package ast declares types representing a JavaScript AST.
+
+
+### Warning
+
+The parser and AST interfaces are still works-in-progress (particularly where
+node types are concerned) and may change in the future.
+
+## Usage
+
+#### type ArrayLiteral
+
+```go
+type ArrayLiteral struct {
+ LeftBracket file.Idx
+ RightBracket file.Idx
+ Value []Expression
+}
+```
+
+
+#### func (*ArrayLiteral) Idx0
+
+```go
+func (self *ArrayLiteral) Idx0() file.Idx
+```
+
+#### func (*ArrayLiteral) Idx1
+
+```go
+func (self *ArrayLiteral) Idx1() file.Idx
+```
+
+#### type AssignExpression
+
+```go
+type AssignExpression struct {
+ Operator token.Token
+ Left Expression
+ Right Expression
+}
+```
+
+
+#### func (*AssignExpression) Idx0
+
+```go
+func (self *AssignExpression) Idx0() file.Idx
+```
+
+#### func (*AssignExpression) Idx1
+
+```go
+func (self *AssignExpression) Idx1() file.Idx
+```
+
+#### type BadExpression
+
+```go
+type BadExpression struct {
+ From file.Idx
+ To file.Idx
+}
+```
+
+
+#### func (*BadExpression) Idx0
+
+```go
+func (self *BadExpression) Idx0() file.Idx
+```
+
+#### func (*BadExpression) Idx1
+
+```go
+func (self *BadExpression) Idx1() file.Idx
+```
+
+#### type BadStatement
+
+```go
+type BadStatement struct {
+ From file.Idx
+ To file.Idx
+}
+```
+
+
+#### func (*BadStatement) Idx0
+
+```go
+func (self *BadStatement) Idx0() file.Idx
+```
+
+#### func (*BadStatement) Idx1
+
+```go
+func (self *BadStatement) Idx1() file.Idx
+```
+
+#### type BinaryExpression
+
+```go
+type BinaryExpression struct {
+ Operator token.Token
+ Left Expression
+ Right Expression
+ Comparison bool
+}
+```
+
+
+#### func (*BinaryExpression) Idx0
+
+```go
+func (self *BinaryExpression) Idx0() file.Idx
+```
+
+#### func (*BinaryExpression) Idx1
+
+```go
+func (self *BinaryExpression) Idx1() file.Idx
+```
+
+#### type BlockStatement
+
+```go
+type BlockStatement struct {
+ LeftBrace file.Idx
+ List []Statement
+ RightBrace file.Idx
+}
+```
+
+
+#### func (*BlockStatement) Idx0
+
+```go
+func (self *BlockStatement) Idx0() file.Idx
+```
+
+#### func (*BlockStatement) Idx1
+
+```go
+func (self *BlockStatement) Idx1() file.Idx
+```
+
+#### type BooleanLiteral
+
+```go
+type BooleanLiteral struct {
+ Idx file.Idx
+ Literal string
+ Value bool
+}
+```
+
+
+#### func (*BooleanLiteral) Idx0
+
+```go
+func (self *BooleanLiteral) Idx0() file.Idx
+```
+
+#### func (*BooleanLiteral) Idx1
+
+```go
+func (self *BooleanLiteral) Idx1() file.Idx
+```
+
+#### type BracketExpression
+
+```go
+type BracketExpression struct {
+ Left Expression
+ Member Expression
+ LeftBracket file.Idx
+ RightBracket file.Idx
+}
+```
+
+
+#### func (*BracketExpression) Idx0
+
+```go
+func (self *BracketExpression) Idx0() file.Idx
+```
+
+#### func (*BracketExpression) Idx1
+
+```go
+func (self *BracketExpression) Idx1() file.Idx
+```
+
+#### type BranchStatement
+
+```go
+type BranchStatement struct {
+ Idx file.Idx
+ Token token.Token
+ Label *Identifier
+}
+```
+
+
+#### func (*BranchStatement) Idx0
+
+```go
+func (self *BranchStatement) Idx0() file.Idx
+```
+
+#### func (*BranchStatement) Idx1
+
+```go
+func (self *BranchStatement) Idx1() file.Idx
+```
+
+#### type CallExpression
+
+```go
+type CallExpression struct {
+ Callee Expression
+ LeftParenthesis file.Idx
+ ArgumentList []Expression
+ RightParenthesis file.Idx
+}
+```
+
+
+#### func (*CallExpression) Idx0
+
+```go
+func (self *CallExpression) Idx0() file.Idx
+```
+
+#### func (*CallExpression) Idx1
+
+```go
+func (self *CallExpression) Idx1() file.Idx
+```
+
+#### type CaseStatement
+
+```go
+type CaseStatement struct {
+ Case file.Idx
+ Test Expression
+ Consequent []Statement
+}
+```
+
+
+#### func (*CaseStatement) Idx0
+
+```go
+func (self *CaseStatement) Idx0() file.Idx
+```
+
+#### func (*CaseStatement) Idx1
+
+```go
+func (self *CaseStatement) Idx1() file.Idx
+```
+
+#### type CatchStatement
+
+```go
+type CatchStatement struct {
+ Catch file.Idx
+ Parameter *Identifier
+ Body Statement
+}
+```
+
+
+#### func (*CatchStatement) Idx0
+
+```go
+func (self *CatchStatement) Idx0() file.Idx
+```
+
+#### func (*CatchStatement) Idx1
+
+```go
+func (self *CatchStatement) Idx1() file.Idx
+```
+
+#### type ConditionalExpression
+
+```go
+type ConditionalExpression struct {
+ Test Expression
+ Consequent Expression
+ Alternate Expression
+}
+```
+
+
+#### func (*ConditionalExpression) Idx0
+
+```go
+func (self *ConditionalExpression) Idx0() file.Idx
+```
+
+#### func (*ConditionalExpression) Idx1
+
+```go
+func (self *ConditionalExpression) Idx1() file.Idx
+```
+
+#### type DebuggerStatement
+
+```go
+type DebuggerStatement struct {
+ Debugger file.Idx
+}
+```
+
+
+#### func (*DebuggerStatement) Idx0
+
+```go
+func (self *DebuggerStatement) Idx0() file.Idx
+```
+
+#### func (*DebuggerStatement) Idx1
+
+```go
+func (self *DebuggerStatement) Idx1() file.Idx
+```
+
+#### type Declaration
+
+```go
+type Declaration interface {
+ // contains filtered or unexported methods
+}
+```
+
+All declaration nodes implement the Declaration interface.
+
+#### type DoWhileStatement
+
+```go
+type DoWhileStatement struct {
+ Do file.Idx
+ Test Expression
+ Body Statement
+}
+```
+
+
+#### func (*DoWhileStatement) Idx0
+
+```go
+func (self *DoWhileStatement) Idx0() file.Idx
+```
+
+#### func (*DoWhileStatement) Idx1
+
+```go
+func (self *DoWhileStatement) Idx1() file.Idx
+```
+
+#### type DotExpression
+
+```go
+type DotExpression struct {
+ Left Expression
+ Identifier Identifier
+}
+```
+
+
+#### func (*DotExpression) Idx0
+
+```go
+func (self *DotExpression) Idx0() file.Idx
+```
+
+#### func (*DotExpression) Idx1
+
+```go
+func (self *DotExpression) Idx1() file.Idx
+```
+
+#### type EmptyStatement
+
+```go
+type EmptyStatement struct {
+ Semicolon file.Idx
+}
+```
+
+
+#### func (*EmptyStatement) Idx0
+
+```go
+func (self *EmptyStatement) Idx0() file.Idx
+```
+
+#### func (*EmptyStatement) Idx1
+
+```go
+func (self *EmptyStatement) Idx1() file.Idx
+```
+
+#### type Expression
+
+```go
+type Expression interface {
+ Node
+ // contains filtered or unexported methods
+}
+```
+
+All expression nodes implement the Expression interface.
+
+#### type ExpressionStatement
+
+```go
+type ExpressionStatement struct {
+ Expression Expression
+}
+```
+
+
+#### func (*ExpressionStatement) Idx0
+
+```go
+func (self *ExpressionStatement) Idx0() file.Idx
+```
+
+#### func (*ExpressionStatement) Idx1
+
+```go
+func (self *ExpressionStatement) Idx1() file.Idx
+```
+
+#### type ForInStatement
+
+```go
+type ForInStatement struct {
+ For file.Idx
+ Into Expression
+ Source Expression
+ Body Statement
+}
+```
+
+
+#### func (*ForInStatement) Idx0
+
+```go
+func (self *ForInStatement) Idx0() file.Idx
+```
+
+#### func (*ForInStatement) Idx1
+
+```go
+func (self *ForInStatement) Idx1() file.Idx
+```
+
+#### type ForStatement
+
+```go
+type ForStatement struct {
+ For file.Idx
+ Initializer Expression
+ Update Expression
+ Test Expression
+ Body Statement
+}
+```
+
+
+#### func (*ForStatement) Idx0
+
+```go
+func (self *ForStatement) Idx0() file.Idx
+```
+
+#### func (*ForStatement) Idx1
+
+```go
+func (self *ForStatement) Idx1() file.Idx
+```
+
+#### type FunctionDeclaration
+
+```go
+type FunctionDeclaration struct {
+ Function *FunctionLiteral
+}
+```
+
+
+#### type FunctionLiteral
+
+```go
+type FunctionLiteral struct {
+ Function file.Idx
+ Name *Identifier
+ ParameterList *ParameterList
+ Body Statement
+ Source string
+
+ DeclarationList []Declaration
+}
+```
+
+
+#### func (*FunctionLiteral) Idx0
+
+```go
+func (self *FunctionLiteral) Idx0() file.Idx
+```
+
+#### func (*FunctionLiteral) Idx1
+
+```go
+func (self *FunctionLiteral) Idx1() file.Idx
+```
+
+#### type Identifier
+
+```go
+type Identifier struct {
+ Name string
+ Idx file.Idx
+}
+```
+
+
+#### func (*Identifier) Idx0
+
+```go
+func (self *Identifier) Idx0() file.Idx
+```
+
+#### func (*Identifier) Idx1
+
+```go
+func (self *Identifier) Idx1() file.Idx
+```
+
+#### type IfStatement
+
+```go
+type IfStatement struct {
+ If file.Idx
+ Test Expression
+ Consequent Statement
+ Alternate Statement
+}
+```
+
+
+#### func (*IfStatement) Idx0
+
+```go
+func (self *IfStatement) Idx0() file.Idx
+```
+
+#### func (*IfStatement) Idx1
+
+```go
+func (self *IfStatement) Idx1() file.Idx
+```
+
+#### type LabelledStatement
+
+```go
+type LabelledStatement struct {
+ Label *Identifier
+ Colon file.Idx
+ Statement Statement
+}
+```
+
+
+#### func (*LabelledStatement) Idx0
+
+```go
+func (self *LabelledStatement) Idx0() file.Idx
+```
+
+#### func (*LabelledStatement) Idx1
+
+```go
+func (self *LabelledStatement) Idx1() file.Idx
+```
+
+#### type NewExpression
+
+```go
+type NewExpression struct {
+ New file.Idx
+ Callee Expression
+ LeftParenthesis file.Idx
+ ArgumentList []Expression
+ RightParenthesis file.Idx
+}
+```
+
+
+#### func (*NewExpression) Idx0
+
+```go
+func (self *NewExpression) Idx0() file.Idx
+```
+
+#### func (*NewExpression) Idx1
+
+```go
+func (self *NewExpression) Idx1() file.Idx
+```
+
+#### type Node
+
+```go
+type Node interface {
+ Idx0() file.Idx // The index of the first character belonging to the node
+ Idx1() file.Idx // The index of the first character immediately after the node
+}
+```
+
+All nodes implement the Node interface.
+
+#### type NullLiteral
+
+```go
+type NullLiteral struct {
+ Idx file.Idx
+ Literal string
+}
+```
+
+
+#### func (*NullLiteral) Idx0
+
+```go
+func (self *NullLiteral) Idx0() file.Idx
+```
+
+#### func (*NullLiteral) Idx1
+
+```go
+func (self *NullLiteral) Idx1() file.Idx
+```
+
+#### type NumberLiteral
+
+```go
+type NumberLiteral struct {
+ Idx file.Idx
+ Literal string
+ Value interface{}
+}
+```
+
+
+#### func (*NumberLiteral) Idx0
+
+```go
+func (self *NumberLiteral) Idx0() file.Idx
+```
+
+#### func (*NumberLiteral) Idx1
+
+```go
+func (self *NumberLiteral) Idx1() file.Idx
+```
+
+#### type ObjectLiteral
+
+```go
+type ObjectLiteral struct {
+ LeftBrace file.Idx
+ RightBrace file.Idx
+ Value []Property
+}
+```
+
+
+#### func (*ObjectLiteral) Idx0
+
+```go
+func (self *ObjectLiteral) Idx0() file.Idx
+```
+
+#### func (*ObjectLiteral) Idx1
+
+```go
+func (self *ObjectLiteral) Idx1() file.Idx
+```
+
+#### type ParameterList
+
+```go
+type ParameterList struct {
+ Opening file.Idx
+ List []*Identifier
+ Closing file.Idx
+}
+```
+
+
+#### type Program
+
+```go
+type Program struct {
+ Body []Statement
+
+ DeclarationList []Declaration
+}
+```
+
+
+#### func (*Program) Idx0
+
+```go
+func (self *Program) Idx0() file.Idx
+```
+
+#### func (*Program) Idx1
+
+```go
+func (self *Program) Idx1() file.Idx
+```
+
+#### type Property
+
+```go
+type Property struct {
+ Key string
+ Kind string
+ Value Expression
+}
+```
+
+
+#### type RegExpLiteral
+
+```go
+type RegExpLiteral struct {
+ Idx file.Idx
+ Literal string
+ Pattern string
+ Flags string
+ Value string
+}
+```
+
+
+#### func (*RegExpLiteral) Idx0
+
+```go
+func (self *RegExpLiteral) Idx0() file.Idx
+```
+
+#### func (*RegExpLiteral) Idx1
+
+```go
+func (self *RegExpLiteral) Idx1() file.Idx
+```
+
+#### type ReturnStatement
+
+```go
+type ReturnStatement struct {
+ Return file.Idx
+ Argument Expression
+}
+```
+
+
+#### func (*ReturnStatement) Idx0
+
+```go
+func (self *ReturnStatement) Idx0() file.Idx
+```
+
+#### func (*ReturnStatement) Idx1
+
+```go
+func (self *ReturnStatement) Idx1() file.Idx
+```
+
+#### type SequenceExpression
+
+```go
+type SequenceExpression struct {
+ Sequence []Expression
+}
+```
+
+
+#### func (*SequenceExpression) Idx0
+
+```go
+func (self *SequenceExpression) Idx0() file.Idx
+```
+
+#### func (*SequenceExpression) Idx1
+
+```go
+func (self *SequenceExpression) Idx1() file.Idx
+```
+
+#### type Statement
+
+```go
+type Statement interface {
+ Node
+ // contains filtered or unexported methods
+}
+```
+
+All statement nodes implement the Statement interface.
+
+#### type StringLiteral
+
+```go
+type StringLiteral struct {
+ Idx file.Idx
+ Literal string
+ Value string
+}
+```
+
+
+#### func (*StringLiteral) Idx0
+
+```go
+func (self *StringLiteral) Idx0() file.Idx
+```
+
+#### func (*StringLiteral) Idx1
+
+```go
+func (self *StringLiteral) Idx1() file.Idx
+```
+
+#### type SwitchStatement
+
+```go
+type SwitchStatement struct {
+ Switch file.Idx
+ Discriminant Expression
+ Default int
+ Body []*CaseStatement
+}
+```
+
+
+#### func (*SwitchStatement) Idx0
+
+```go
+func (self *SwitchStatement) Idx0() file.Idx
+```
+
+#### func (*SwitchStatement) Idx1
+
+```go
+func (self *SwitchStatement) Idx1() file.Idx
+```
+
+#### type ThisExpression
+
+```go
+type ThisExpression struct {
+ Idx file.Idx
+}
+```
+
+
+#### func (*ThisExpression) Idx0
+
+```go
+func (self *ThisExpression) Idx0() file.Idx
+```
+
+#### func (*ThisExpression) Idx1
+
+```go
+func (self *ThisExpression) Idx1() file.Idx
+```
+
+#### type ThrowStatement
+
+```go
+type ThrowStatement struct {
+ Throw file.Idx
+ Argument Expression
+}
+```
+
+
+#### func (*ThrowStatement) Idx0
+
+```go
+func (self *ThrowStatement) Idx0() file.Idx
+```
+
+#### func (*ThrowStatement) Idx1
+
+```go
+func (self *ThrowStatement) Idx1() file.Idx
+```
+
+#### type TryStatement
+
+```go
+type TryStatement struct {
+ Try file.Idx
+ Body Statement
+ Catch *CatchStatement
+ Finally Statement
+}
+```
+
+
+#### func (*TryStatement) Idx0
+
+```go
+func (self *TryStatement) Idx0() file.Idx
+```
+
+#### func (*TryStatement) Idx1
+
+```go
+func (self *TryStatement) Idx1() file.Idx
+```
+
+#### type UnaryExpression
+
+```go
+type UnaryExpression struct {
+ Operator token.Token
+ Idx file.Idx // If a prefix operation
+ Operand Expression
+ Postfix bool
+}
+```
+
+
+#### func (*UnaryExpression) Idx0
+
+```go
+func (self *UnaryExpression) Idx0() file.Idx
+```
+
+#### func (*UnaryExpression) Idx1
+
+```go
+func (self *UnaryExpression) Idx1() file.Idx
+```
+
+#### type VariableDeclaration
+
+```go
+type VariableDeclaration struct {
+ Var file.Idx
+ List []*VariableExpression
+}
+```
+
+
+#### type VariableExpression
+
+```go
+type VariableExpression struct {
+ Name string
+ Idx file.Idx
+ Initializer Expression
+}
+```
+
+
+#### func (*VariableExpression) Idx0
+
+```go
+func (self *VariableExpression) Idx0() file.Idx
+```
+
+#### func (*VariableExpression) Idx1
+
+```go
+func (self *VariableExpression) Idx1() file.Idx
+```
+
+#### type VariableStatement
+
+```go
+type VariableStatement struct {
+ Var file.Idx
+ List []Expression
+}
+```
+
+
+#### func (*VariableStatement) Idx0
+
+```go
+func (self *VariableStatement) Idx0() file.Idx
+```
+
+#### func (*VariableStatement) Idx1
+
+```go
+func (self *VariableStatement) Idx1() file.Idx
+```
+
+#### type WhileStatement
+
+```go
+type WhileStatement struct {
+ While file.Idx
+ Test Expression
+ Body Statement
+}
+```
+
+
+#### func (*WhileStatement) Idx0
+
+```go
+func (self *WhileStatement) Idx0() file.Idx
+```
+
+#### func (*WhileStatement) Idx1
+
+```go
+func (self *WhileStatement) Idx1() file.Idx
+```
+
+#### type WithStatement
+
+```go
+type WithStatement struct {
+ With file.Idx
+ Object Expression
+ Body Statement
+}
+```
+
+
+#### func (*WithStatement) Idx0
+
+```go
+func (self *WithStatement) Idx0() file.Idx
+```
+
+#### func (*WithStatement) Idx1
+
+```go
+func (self *WithStatement) Idx1() file.Idx
+```
+
+--
+**godocdown** http://github.com/robertkrimen/godocdown
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/ast/node.go b/Godeps/_workspace/src/github.com/obscuren/otto/ast/node.go
new file mode 100644
index 000000000..c8b3cb04e
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/ast/node.go
@@ -0,0 +1,496 @@
+/*
+Package ast declares types representing a JavaScript AST.
+
+Warning
+
+The parser and AST interfaces are still works-in-progress (particularly where
+node types are concerned) and may change in the future.
+
+*/
+package ast
+
+import (
+ "github.com/robertkrimen/otto/file"
+ "github.com/robertkrimen/otto/token"
+)
+
+// All nodes implement the Node interface.
+type Node interface {
+ Idx0() file.Idx // The index of the first character belonging to the node
+ Idx1() file.Idx // The index of the first character immediately after the node
+}
+
+// ========== //
+// Expression //
+// ========== //
+
+type (
+ // All expression nodes implement the Expression interface.
+ Expression interface {
+ Node
+ _expressionNode()
+ }
+
+ ArrayLiteral struct {
+ LeftBracket file.Idx
+ RightBracket file.Idx
+ Value []Expression
+ }
+
+ AssignExpression struct {
+ Operator token.Token
+ Left Expression
+ Right Expression
+ }
+
+ BadExpression struct {
+ From file.Idx
+ To file.Idx
+ }
+
+ BinaryExpression struct {
+ Operator token.Token
+ Left Expression
+ Right Expression
+ Comparison bool
+ }
+
+ BooleanLiteral struct {
+ Idx file.Idx
+ Literal string
+ Value bool
+ }
+
+ BracketExpression struct {
+ Left Expression
+ Member Expression
+ LeftBracket file.Idx
+ RightBracket file.Idx
+ }
+
+ CallExpression struct {
+ Callee Expression
+ LeftParenthesis file.Idx
+ ArgumentList []Expression
+ RightParenthesis file.Idx
+ }
+
+ ConditionalExpression struct {
+ Test Expression
+ Consequent Expression
+ Alternate Expression
+ }
+
+ DotExpression struct {
+ Left Expression
+ Identifier Identifier
+ }
+
+ FunctionLiteral struct {
+ Function file.Idx
+ Name *Identifier
+ ParameterList *ParameterList
+ Body Statement
+ Source string
+
+ DeclarationList []Declaration
+ }
+
+ Identifier struct {
+ Name string
+ Idx file.Idx
+ }
+
+ NewExpression struct {
+ New file.Idx
+ Callee Expression
+ LeftParenthesis file.Idx
+ ArgumentList []Expression
+ RightParenthesis file.Idx
+ }
+
+ NullLiteral struct {
+ Idx file.Idx
+ Literal string
+ }
+
+ NumberLiteral struct {
+ Idx file.Idx
+ Literal string
+ Value interface{}
+ }
+
+ ObjectLiteral struct {
+ LeftBrace file.Idx
+ RightBrace file.Idx
+ Value []Property
+ }
+
+ ParameterList struct {
+ Opening file.Idx
+ List []*Identifier
+ Closing file.Idx
+ }
+
+ Property struct {
+ Key string
+ Kind string
+ Value Expression
+ }
+
+ RegExpLiteral struct {
+ Idx file.Idx
+ Literal string
+ Pattern string
+ Flags string
+ Value string
+ }
+
+ SequenceExpression struct {
+ Sequence []Expression
+ }
+
+ StringLiteral struct {
+ Idx file.Idx
+ Literal string
+ Value string
+ }
+
+ ThisExpression struct {
+ Idx file.Idx
+ }
+
+ UnaryExpression struct {
+ Operator token.Token
+ Idx file.Idx // If a prefix operation
+ Operand Expression
+ Postfix bool
+ }
+
+ VariableExpression struct {
+ Name string
+ Idx file.Idx
+ Initializer Expression
+ }
+)
+
+// _expressionNode
+
+func (*ArrayLiteral) _expressionNode() {}
+func (*AssignExpression) _expressionNode() {}
+func (*BadExpression) _expressionNode() {}
+func (*BinaryExpression) _expressionNode() {}
+func (*BooleanLiteral) _expressionNode() {}
+func (*BracketExpression) _expressionNode() {}
+func (*CallExpression) _expressionNode() {}
+func (*ConditionalExpression) _expressionNode() {}
+func (*DotExpression) _expressionNode() {}
+func (*FunctionLiteral) _expressionNode() {}
+func (*Identifier) _expressionNode() {}
+func (*NewExpression) _expressionNode() {}
+func (*NullLiteral) _expressionNode() {}
+func (*NumberLiteral) _expressionNode() {}
+func (*ObjectLiteral) _expressionNode() {}
+func (*RegExpLiteral) _expressionNode() {}
+func (*SequenceExpression) _expressionNode() {}
+func (*StringLiteral) _expressionNode() {}
+func (*ThisExpression) _expressionNode() {}
+func (*UnaryExpression) _expressionNode() {}
+func (*VariableExpression) _expressionNode() {}
+
+// ========= //
+// Statement //
+// ========= //
+
+type (
+ // All statement nodes implement the Statement interface.
+ Statement interface {
+ Node
+ _statementNode()
+ }
+
+ BadStatement struct {
+ From file.Idx
+ To file.Idx
+ }
+
+ BlockStatement struct {
+ LeftBrace file.Idx
+ List []Statement
+ RightBrace file.Idx
+ }
+
+ BranchStatement struct {
+ Idx file.Idx
+ Token token.Token
+ Label *Identifier
+ }
+
+ CaseStatement struct {
+ Case file.Idx
+ Test Expression
+ Consequent []Statement
+ }
+
+ CatchStatement struct {
+ Catch file.Idx
+ Parameter *Identifier
+ Body Statement
+ }
+
+ DebuggerStatement struct {
+ Debugger file.Idx
+ }
+
+ DoWhileStatement struct {
+ Do file.Idx
+ Test Expression
+ Body Statement
+ }
+
+ EmptyStatement struct {
+ Semicolon file.Idx
+ }
+
+ ExpressionStatement struct {
+ Expression Expression
+ }
+
+ ForInStatement struct {
+ For file.Idx
+ Into Expression
+ Source Expression
+ Body Statement
+ }
+
+ ForStatement struct {
+ For file.Idx
+ Initializer Expression
+ Update Expression
+ Test Expression
+ Body Statement
+ }
+
+ IfStatement struct {
+ If file.Idx
+ Test Expression
+ Consequent Statement
+ Alternate Statement
+ }
+
+ LabelledStatement struct {
+ Label *Identifier
+ Colon file.Idx
+ Statement Statement
+ }
+
+ ReturnStatement struct {
+ Return file.Idx
+ Argument Expression
+ }
+
+ SwitchStatement struct {
+ Switch file.Idx
+ Discriminant Expression
+ Default int
+ Body []*CaseStatement
+ }
+
+ ThrowStatement struct {
+ Throw file.Idx
+ Argument Expression
+ }
+
+ TryStatement struct {
+ Try file.Idx
+ Body Statement
+ Catch *CatchStatement
+ Finally Statement
+ }
+
+ VariableStatement struct {
+ Var file.Idx
+ List []Expression
+ }
+
+ WhileStatement struct {
+ While file.Idx
+ Test Expression
+ Body Statement
+ }
+
+ WithStatement struct {
+ With file.Idx
+ Object Expression
+ Body Statement
+ }
+)
+
+// _statementNode
+
+func (*BadStatement) _statementNode() {}
+func (*BlockStatement) _statementNode() {}
+func (*BranchStatement) _statementNode() {}
+func (*CaseStatement) _statementNode() {}
+func (*CatchStatement) _statementNode() {}
+func (*DebuggerStatement) _statementNode() {}
+func (*DoWhileStatement) _statementNode() {}
+func (*EmptyStatement) _statementNode() {}
+func (*ExpressionStatement) _statementNode() {}
+func (*ForInStatement) _statementNode() {}
+func (*ForStatement) _statementNode() {}
+func (*IfStatement) _statementNode() {}
+func (*LabelledStatement) _statementNode() {}
+func (*ReturnStatement) _statementNode() {}
+func (*SwitchStatement) _statementNode() {}
+func (*ThrowStatement) _statementNode() {}
+func (*TryStatement) _statementNode() {}
+func (*VariableStatement) _statementNode() {}
+func (*WhileStatement) _statementNode() {}
+func (*WithStatement) _statementNode() {}
+
+// =========== //
+// Declaration //
+// =========== //
+
+type (
+ // All declaration nodes implement the Declaration interface.
+ Declaration interface {
+ _declarationNode()
+ }
+
+ FunctionDeclaration struct {
+ Function *FunctionLiteral
+ }
+
+ VariableDeclaration struct {
+ Var file.Idx
+ List []*VariableExpression
+ }
+)
+
+// _declarationNode
+
+func (*FunctionDeclaration) _declarationNode() {}
+func (*VariableDeclaration) _declarationNode() {}
+
+// ==== //
+// Node //
+// ==== //
+
+type Program struct {
+ Body []Statement
+
+ DeclarationList []Declaration
+}
+
+// ==== //
+// Idx0 //
+// ==== //
+
+func (self *ArrayLiteral) Idx0() file.Idx { return self.LeftBracket }
+func (self *AssignExpression) Idx0() file.Idx { return self.Left.Idx0() }
+func (self *BadExpression) Idx0() file.Idx { return self.From }
+func (self *BinaryExpression) Idx0() file.Idx { return self.Left.Idx0() }
+func (self *BooleanLiteral) Idx0() file.Idx { return self.Idx }
+func (self *BracketExpression) Idx0() file.Idx { return self.Left.Idx0() }
+func (self *CallExpression) Idx0() file.Idx { return self.Callee.Idx0() }
+func (self *ConditionalExpression) Idx0() file.Idx { return self.Test.Idx0() }
+func (self *DotExpression) Idx0() file.Idx { return self.Left.Idx0() }
+func (self *FunctionLiteral) Idx0() file.Idx { return self.Function }
+func (self *Identifier) Idx0() file.Idx { return self.Idx }
+func (self *NewExpression) Idx0() file.Idx { return self.New }
+func (self *NullLiteral) Idx0() file.Idx { return self.Idx }
+func (self *NumberLiteral) Idx0() file.Idx { return self.Idx }
+func (self *ObjectLiteral) Idx0() file.Idx { return self.LeftBrace }
+func (self *RegExpLiteral) Idx0() file.Idx { return self.Idx }
+func (self *SequenceExpression) Idx0() file.Idx { return self.Sequence[0].Idx0() }
+func (self *StringLiteral) Idx0() file.Idx { return self.Idx }
+func (self *ThisExpression) Idx0() file.Idx { return self.Idx }
+func (self *UnaryExpression) Idx0() file.Idx { return self.Idx }
+func (self *VariableExpression) Idx0() file.Idx { return self.Idx }
+
+func (self *BadStatement) Idx0() file.Idx { return self.From }
+func (self *BlockStatement) Idx0() file.Idx { return self.LeftBrace }
+func (self *BranchStatement) Idx0() file.Idx { return self.Idx }
+func (self *CaseStatement) Idx0() file.Idx { return self.Case }
+func (self *CatchStatement) Idx0() file.Idx { return self.Catch }
+func (self *DebuggerStatement) Idx0() file.Idx { return self.Debugger }
+func (self *DoWhileStatement) Idx0() file.Idx { return self.Do }
+func (self *EmptyStatement) Idx0() file.Idx { return self.Semicolon }
+func (self *ExpressionStatement) Idx0() file.Idx { return self.Expression.Idx0() }
+func (self *ForInStatement) Idx0() file.Idx { return self.For }
+func (self *ForStatement) Idx0() file.Idx { return self.For }
+func (self *IfStatement) Idx0() file.Idx { return self.If }
+func (self *LabelledStatement) Idx0() file.Idx { return self.Label.Idx0() }
+func (self *Program) Idx0() file.Idx { return self.Body[0].Idx0() }
+func (self *ReturnStatement) Idx0() file.Idx { return self.Return }
+func (self *SwitchStatement) Idx0() file.Idx { return self.Switch }
+func (self *ThrowStatement) Idx0() file.Idx { return self.Throw }
+func (self *TryStatement) Idx0() file.Idx { return self.Try }
+func (self *VariableStatement) Idx0() file.Idx { return self.Var }
+func (self *WhileStatement) Idx0() file.Idx { return self.While }
+func (self *WithStatement) Idx0() file.Idx { return self.With }
+
+// ==== //
+// Idx1 //
+// ==== //
+
+func (self *ArrayLiteral) Idx1() file.Idx { return self.RightBracket }
+func (self *AssignExpression) Idx1() file.Idx { return self.Right.Idx1() }
+func (self *BadExpression) Idx1() file.Idx { return self.To }
+func (self *BinaryExpression) Idx1() file.Idx { return self.Right.Idx1() }
+func (self *BooleanLiteral) Idx1() file.Idx { return file.Idx(int(self.Idx) + len(self.Literal)) }
+func (self *BracketExpression) Idx1() file.Idx { return self.RightBracket + 1 }
+func (self *CallExpression) Idx1() file.Idx { return self.RightParenthesis + 1 }
+func (self *ConditionalExpression) Idx1() file.Idx { return self.Test.Idx1() }
+func (self *DotExpression) Idx1() file.Idx { return self.Identifier.Idx1() }
+func (self *FunctionLiteral) Idx1() file.Idx { return self.Body.Idx1() }
+func (self *Identifier) Idx1() file.Idx { return file.Idx(int(self.Idx) + len(self.Name)) }
+func (self *NewExpression) Idx1() file.Idx { return self.RightParenthesis + 1 }
+func (self *NullLiteral) Idx1() file.Idx { return file.Idx(int(self.Idx) + 4) } // "null"
+func (self *NumberLiteral) Idx1() file.Idx { return file.Idx(int(self.Idx) + len(self.Literal)) }
+func (self *ObjectLiteral) Idx1() file.Idx { return self.RightBrace }
+func (self *RegExpLiteral) Idx1() file.Idx { return file.Idx(int(self.Idx) + len(self.Literal)) }
+func (self *SequenceExpression) Idx1() file.Idx { return self.Sequence[0].Idx1() }
+func (self *StringLiteral) Idx1() file.Idx { return file.Idx(int(self.Idx) + len(self.Literal)) }
+func (self *ThisExpression) Idx1() file.Idx { return self.Idx }
+func (self *UnaryExpression) Idx1() file.Idx {
+ if self.Postfix {
+ return self.Operand.Idx1() + 2 // ++ --
+ }
+ return self.Operand.Idx1()
+}
+func (self *VariableExpression) Idx1() file.Idx {
+ if self.Initializer == nil {
+ return file.Idx(int(self.Idx) + len(self.Name) + 1)
+ }
+ return self.Initializer.Idx1()
+}
+
+func (self *BadStatement) Idx1() file.Idx { return self.To }
+func (self *BlockStatement) Idx1() file.Idx { return self.RightBrace + 1 }
+func (self *BranchStatement) Idx1() file.Idx { return self.Idx }
+func (self *CaseStatement) Idx1() file.Idx { return self.Consequent[len(self.Consequent)-1].Idx1() }
+func (self *CatchStatement) Idx1() file.Idx { return self.Body.Idx1() }
+func (self *DebuggerStatement) Idx1() file.Idx { return self.Debugger + 8 }
+func (self *DoWhileStatement) Idx1() file.Idx { return self.Test.Idx1() }
+func (self *EmptyStatement) Idx1() file.Idx { return self.Semicolon + 1 }
+func (self *ExpressionStatement) Idx1() file.Idx { return self.Expression.Idx1() }
+func (self *ForInStatement) Idx1() file.Idx { return self.Body.Idx1() }
+func (self *ForStatement) Idx1() file.Idx { return self.Body.Idx1() }
+func (self *IfStatement) Idx1() file.Idx {
+ if self.Alternate != nil {
+ return self.Alternate.Idx1()
+ }
+ return self.Consequent.Idx1()
+}
+func (self *LabelledStatement) Idx1() file.Idx { return self.Colon + 1 }
+func (self *Program) Idx1() file.Idx { return self.Body[len(self.Body)-1].Idx1() }
+func (self *ReturnStatement) Idx1() file.Idx { return self.Return }
+func (self *SwitchStatement) Idx1() file.Idx { return self.Body[len(self.Body)-1].Idx1() }
+func (self *ThrowStatement) Idx1() file.Idx { return self.Throw }
+func (self *TryStatement) Idx1() file.Idx { return self.Try }
+func (self *VariableStatement) Idx1() file.Idx { return self.List[len(self.List)-1].Idx1() }
+func (self *WhileStatement) Idx1() file.Idx { return self.Body.Idx1() }
+func (self *WithStatement) Idx1() file.Idx { return self.Body.Idx1() }
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/bug_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/bug_test.go
new file mode 100644
index 000000000..0ee484ddd
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/bug_test.go
@@ -0,0 +1,504 @@
+package otto
+
+import (
+ "testing"
+ "time"
+)
+
+func Test_262(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ // 11.13.1-1-1
+ test(`raise:
+ eval("42 = 42;");
+ `, "ReferenceError: Invalid left-hand side in assignment")
+ })
+}
+
+func Test_issue5(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`'abc' === 'def'`, false)
+ test(`'\t' === '\r'`, false)
+ })
+}
+
+func Test_issue13(t *testing.T) {
+ tt(t, func() {
+ test, tester := test()
+ vm := tester.vm
+
+ value, err := vm.ToValue(map[string]interface{}{
+ "string": "Xyzzy",
+ "number": 42,
+ "array": []string{"def", "ghi"},
+ })
+ if err != nil {
+ t.Error(err)
+ t.FailNow()
+ }
+
+ fn, err := vm.Object(`
+ (function(value){
+ return ""+[value.string, value.number, value.array]
+ })
+ `)
+ if err != nil {
+ t.Error(err)
+ t.FailNow()
+ }
+
+ result, err := fn.Value().Call(fn.Value(), value)
+ if err != nil {
+ t.Error(err)
+ t.FailNow()
+ }
+ is(result.toString(), "Xyzzy,42,def,ghi")
+
+ anything := struct {
+ Abc interface{}
+ }{
+ Abc: map[string]interface{}{
+ "def": []interface{}{
+ []interface{}{
+ "a", "b", "c", "", "d", "e",
+ },
+ map[string]interface{}{
+ "jkl": "Nothing happens.",
+ },
+ },
+ "ghi": -1,
+ },
+ }
+
+ vm.Set("anything", anything)
+ test(`
+ [
+ anything,
+ "~",
+ anything.Abc,
+ "~",
+ anything.Abc.def,
+ "~",
+ anything.Abc.def[1].jkl,
+ "~",
+ anything.Abc.ghi,
+ ];
+ `, "[object Object],~,[object Object],~,a,b,c,,d,e,[object Object],~,Nothing happens.,~,-1")
+ })
+}
+
+func Test_issue16(t *testing.T) {
+ tt(t, func() {
+ test, vm := test()
+
+ test(`
+ var def = {
+ "abc": ["abc"],
+ "xyz": ["xyz"]
+ };
+ def.abc.concat(def.xyz);
+ `, "abc,xyz")
+
+ vm.Set("ghi", []string{"jkl", "mno"})
+
+ test(`
+ def.abc.concat(def.xyz).concat(ghi);
+ `, "abc,xyz,jkl,mno")
+
+ test(`
+ ghi.concat(def.abc.concat(def.xyz));
+ `, "jkl,mno,abc,xyz")
+
+ vm.Set("pqr", []interface{}{"jkl", 42, 3.14159, true})
+
+ test(`
+ pqr.concat(ghi, def.abc, def, def.xyz);
+ `, "jkl,42,3.14159,true,jkl,mno,abc,[object Object],xyz")
+
+ test(`
+ pqr.concat(ghi, def.abc, def, def.xyz).length;
+ `, 9)
+ })
+}
+
+func Test_issue21(t *testing.T) {
+ tt(t, func() {
+ vm1 := New()
+ vm1.Run(`
+ abc = {}
+ abc.ghi = "Nothing happens.";
+ var jkl = 0;
+ abc.def = function() {
+ jkl += 1;
+ return 1;
+ }
+ `)
+ abc, err := vm1.Get("abc")
+ is(err, nil)
+
+ vm2 := New()
+ vm2.Set("cba", abc)
+ _, err = vm2.Run(`
+ var pqr = 0;
+ cba.mno = function() {
+ pqr -= 1;
+ return 1;
+ }
+ cba.def();
+ cba.def();
+ cba.def();
+ `)
+ is(err, nil)
+
+ jkl, err := vm1.Get("jkl")
+ is(err, nil)
+ is(jkl, 3)
+
+ _, err = vm1.Run(`
+ abc.mno();
+ abc.mno();
+ abc.mno();
+ `)
+ is(err, nil)
+
+ pqr, err := vm2.Get("pqr")
+ is(err, nil)
+ is(pqr, -3)
+ })
+}
+
+func Test_issue24(t *testing.T) {
+ tt(t, func() {
+ _, vm := test()
+
+ {
+ vm.Set("abc", []string{"abc", "def", "ghi"})
+ value, err := vm.Get("abc")
+ is(err, nil)
+ export, _ := value.Export()
+ {
+ value, valid := export.([]string)
+ is(valid, true)
+
+ is(value[0], "abc")
+ is(value[2], "ghi")
+ }
+ }
+
+ {
+ vm.Set("abc", [...]string{"abc", "def", "ghi"})
+ value, err := vm.Get("abc")
+ is(err, nil)
+ export, _ := value.Export()
+ {
+ value, valid := export.([3]string)
+ is(valid, true)
+
+ is(value[0], "abc")
+ is(value[2], "ghi")
+ }
+ }
+
+ {
+ vm.Set("abc", &[...]string{"abc", "def", "ghi"})
+ value, err := vm.Get("abc")
+ is(err, nil)
+ export, _ := value.Export()
+ {
+ value, valid := export.(*[3]string)
+ is(valid, true)
+
+ is(value[0], "abc")
+ is(value[2], "ghi")
+ }
+ }
+
+ {
+ vm.Set("abc", map[int]string{0: "abc", 1: "def", 2: "ghi"})
+ value, err := vm.Get("abc")
+ is(err, nil)
+ export, _ := value.Export()
+ {
+ value, valid := export.(map[int]string)
+ is(valid, true)
+
+ is(value[0], "abc")
+ is(value[2], "ghi")
+ }
+ }
+
+ {
+ vm.Set("abc", testStruct{Abc: true, Ghi: "Nothing happens."})
+ value, err := vm.Get("abc")
+ is(err, nil)
+ export, _ := value.Export()
+ {
+ value, valid := export.(testStruct)
+ is(valid, true)
+
+ is(value.Abc, true)
+ is(value.Ghi, "Nothing happens.")
+ }
+ }
+
+ {
+ vm.Set("abc", &testStruct{Abc: true, Ghi: "Nothing happens."})
+ value, err := vm.Get("abc")
+ is(err, nil)
+ export, _ := value.Export()
+ {
+ value, valid := export.(*testStruct)
+ is(valid, true)
+
+ is(value.Abc, true)
+ is(value.Ghi, "Nothing happens.")
+ }
+ }
+ })
+}
+
+func Test_issue39(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = 0, def = [], ghi = function() {
+ if (abc < 10) return ++abc;
+ return undefined;
+ }
+ for (var jkl; (jkl = ghi());) def.push(jkl);
+ def;
+ `, "1,2,3,4,5,6,7,8,9,10")
+
+ test(`
+ var abc = ["1", "2", "3", "4"];
+ var def = [];
+ for (var ghi; (ghi = abc.shift());) {
+ def.push(ghi);
+ }
+ def;
+ `, "1,2,3,4")
+ })
+}
+
+func Test_issue64(t *testing.T) {
+ tt(t, func() {
+ test, vm := test()
+
+ defer mockTimeLocal(time.UTC)()
+
+ abc := map[string]interface{}{
+ "time": time.Unix(0, 0),
+ }
+ vm.Set("abc", abc)
+
+ def := struct {
+ Public string
+ private string
+ }{
+ "Public", "private",
+ }
+ vm.Set("def", def)
+
+ test(`"sec" in abc.time`, false)
+
+ test(`
+ [ "Public" in def, "private" in def, def.Public, def.private ];
+ `, "true,false,Public,")
+
+ test(`JSON.stringify(abc)`, `{"time":"1970-01-01T00:00:00Z"}`)
+ })
+}
+
+func Test_7_3_1(t *testing.T) {
+ tt(t, func() {
+ test(`
+
+ eval("var test7_3_1\u2028abc = 66;");
+ [ abc, typeof test7_3_1 ];
+ `, "66,undefined")
+ })
+}
+
+func Test_7_3_3(t *testing.T) {
+ tt(t, func() {
+ test(`raise:
+ eval("//\u2028 =;");
+ `, "SyntaxError: Unexpected token =")
+ })
+}
+
+func Test_S7_3_A2_1_T1(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise:
+ eval("'\u000Astr\u000Aing\u000A'")
+ `, "SyntaxError: Unexpected token ILLEGAL")
+ })
+}
+
+func Test_S7_8_3_A2_1_T1(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [ .0 === 0.0, .0, .1 === 0.1, .1 ]
+ `, "true,0,true,0.1")
+ })
+}
+
+func Test_S7_8_4_A4_2_T3(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ "\a"
+ `, "a")
+ })
+}
+
+func Test_S7_9_A1(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var def;
+ abc: for (var i = 0; i <= 0; i++) {
+ for (var j = 0; j <= 1; j++) {
+ if (j === 0) {
+ continue abc;
+ } else {
+ def = true;
+ }
+ }
+ }
+ [ def, i, j ];
+ `, ",1,0")
+ })
+}
+
+func Test_S7_9_A3(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ (function(){
+ return
+ 1;
+ })()
+ `, "undefined")
+ })
+}
+
+func Test_7_3_10(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ eval("var \u0061\u0062\u0063 = 3.14159;");
+ abc;
+ `, 3.14159)
+
+ test(`
+ abc = undefined;
+ eval("var \\u0061\\u0062\\u0063 = 3.14159;");
+ abc;
+ `, 3.14159)
+ })
+}
+
+func Test_bug(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ // 10.4.2-1-5
+ test(`
+ "abc\
+def"
+ `, "abcdef")
+
+ test(`
+ eval("'abc';\
+ 'def'")
+ `, "def")
+
+ // S12.6.1_A10
+ test(`
+ var abc = 0;
+ do {
+ if(typeof(def) === "function"){
+ abc = -1;
+ break;
+ } else {
+ abc = 1;
+ break;
+ }
+ } while(function def(){});
+ abc;
+ `, 1)
+
+ // S12.7_A7
+ test(`raise:
+ abc:
+ while (true) {
+ eval("continue abc");
+ }
+ `, "SyntaxError: Undefined label 'abc'")
+
+ // S15.1.2.1_A3.3_T3
+ test(`raise:
+ eval("return");
+ `, "SyntaxError: Illegal return statement")
+
+ // 15.2.3.3-2-33
+ test(`
+ var abc = { "AB\n\\cd": 1 };
+ Object.getOwnPropertyDescriptor(abc, "AB\n\\cd").value;
+ `, 1)
+
+ // S15.3_A2_T1
+ test(`raise:
+ Function.call(this, "var x / = 1;");
+ `, "SyntaxError: Unexpected token /")
+
+ // ?
+ test(`
+ (function(){
+ var abc = [];
+ (function(){
+ abc.push(0);
+ abc.push(1);
+ })(undefined);
+ if ((function(){ return true; })()) {
+ (function(){
+ abc.push(2);
+ })();
+ }
+ return abc;
+ })();
+ `, "0,1,2")
+
+ if false {
+ // 15.9.5.43-0-10
+ // Should be an invalid date
+ test(`
+ date = new Date(1970, 0, -99999999, 0, 0, 0, 1);
+ `, "")
+ }
+
+ // S7.8.3_A1.2_T1
+ test(`
+ [ 0e1, 1e1, 2e1, 3e1, 4e1, 5e1, 6e1, 7e1, 8e1, 9e1 ];
+ `, "0,10,20,30,40,50,60,70,80,90")
+
+ // S15.10.2.7_A3_T2
+ test(`
+ var abc = /\s+abc\s+/.exec("\t abc def");
+ [ abc.length, abc.index, abc.input, abc ];
+ `, "1,0,\t abc def,\t abc ")
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/builtin.go b/Godeps/_workspace/src/github.com/obscuren/otto/builtin.go
new file mode 100644
index 000000000..b4cdf9d21
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/builtin.go
@@ -0,0 +1,393 @@
+package otto
+
+import (
+ "encoding/hex"
+ "fmt"
+ "math"
+ "net/url"
+ "regexp"
+ "strconv"
+ "strings"
+ "unicode/utf16"
+ "unicode/utf8"
+)
+
+// Global
+func builtinGlobal_eval(call FunctionCall) Value {
+ src := call.Argument(0)
+ if !src.IsString() {
+ return src
+ }
+ runtime := call.runtime
+ program := runtime.cmpl_parseOrThrow(toString(src))
+ if call.evalHint {
+ runtime.EnterEvalExecutionContext(call)
+ defer runtime.LeaveExecutionContext()
+ }
+ returnValue := runtime.cmpl_evaluate_nodeProgram(program)
+ if returnValue.isEmpty() {
+ return UndefinedValue()
+ }
+ return returnValue
+}
+
+func builtinGlobal_isNaN(call FunctionCall) Value {
+ value := toFloat(call.Argument(0))
+ return toValue_bool(math.IsNaN(value))
+}
+
+func builtinGlobal_isFinite(call FunctionCall) Value {
+ value := toFloat(call.Argument(0))
+ return toValue_bool(!math.IsNaN(value) && !math.IsInf(value, 0))
+}
+
+// radix 3 => 2 (ASCII 50) +47
+// radix 11 => A/a (ASCII 65/97) +54/+86
+var parseInt_alphabetTable = func() []string {
+ table := []string{"", "", "01"}
+ for radix := 3; radix <= 36; radix += 1 {
+ alphabet := table[radix-1]
+ if radix <= 10 {
+ alphabet += string(radix + 47)
+ } else {
+ alphabet += string(radix+54) + string(radix+86)
+ }
+ table = append(table, alphabet)
+ }
+ return table
+}()
+
+func digitValue(chr rune) int {
+ switch {
+ case '0' <= chr && chr <= '9':
+ return int(chr - '0')
+ case 'a' <= chr && chr <= 'z':
+ return int(chr - 'a' + 10)
+ case 'A' <= chr && chr <= 'Z':
+ return int(chr - 'A' + 10)
+ }
+ return 36 // Larger than any legal digit value
+}
+
+func builtinGlobal_parseInt(call FunctionCall) Value {
+ input := strings.TrimSpace(toString(call.Argument(0)))
+ if len(input) == 0 {
+ return NaNValue()
+ }
+
+ radix := int(toInt32(call.Argument(1)))
+
+ negative := false
+ switch input[0] {
+ case '+':
+ input = input[1:]
+ case '-':
+ negative = true
+ input = input[1:]
+ }
+
+ strip := true
+ if radix == 0 {
+ radix = 10
+ } else {
+ if radix < 2 || radix > 36 {
+ return NaNValue()
+ } else if radix != 16 {
+ strip = false
+ }
+ }
+
+ switch len(input) {
+ case 0:
+ return NaNValue()
+ case 1:
+ default:
+ if strip {
+ if input[0] == '0' && (input[1] == 'x' || input[1] == 'X') {
+ input = input[2:]
+ radix = 16
+ }
+ }
+ }
+
+ base := radix
+ index := 0
+ for ; index < len(input); index++ {
+ digit := digitValue(rune(input[index])) // If not ASCII, then an error anyway
+ if digit >= base {
+ break
+ }
+ }
+ input = input[0:index]
+
+ value, err := strconv.ParseInt(input, radix, 64)
+ if err != nil {
+ if err.(*strconv.NumError).Err == strconv.ErrRange {
+ base := float64(base)
+ // Could just be a very large number (e.g. 0x8000000000000000)
+ var value float64
+ for _, chr := range input {
+ digit := float64(digitValue(chr))
+ if digit >= base {
+ goto error
+ }
+ value = value*base + digit
+ }
+ if negative {
+ value *= -1
+ }
+ return toValue_float64(value)
+ }
+ error:
+ return NaNValue()
+ }
+ if negative {
+ value *= -1
+ }
+
+ return toValue_int64(value)
+}
+
+var parseFloat_matchBadSpecial = regexp.MustCompile(`[\+\-]?(?:[Ii]nf$|infinity)`)
+var parseFloat_matchValid = regexp.MustCompile(`[0-9eE\+\-\.]|Infinity`)
+
+func builtinGlobal_parseFloat(call FunctionCall) Value {
+ // Caveat emptor: This implementation does NOT match the specification
+ input := strings.TrimSpace(toString(call.Argument(0)))
+ if parseFloat_matchBadSpecial.MatchString(input) {
+ return NaNValue()
+ }
+ value, err := strconv.ParseFloat(input, 64)
+ if err != nil {
+ for end := len(input); end > 0; end -= 1 {
+ input := input[0:end]
+ if !parseFloat_matchValid.MatchString(input) {
+ return NaNValue()
+ }
+ value, err = strconv.ParseFloat(input, 64)
+ if err == nil {
+ break
+ }
+ }
+ if err != nil {
+ return NaNValue()
+ }
+ }
+ return toValue_float64(value)
+}
+
+// encodeURI/decodeURI
+
+func _builtinGlobal_encodeURI(call FunctionCall, escape *regexp.Regexp) Value {
+ value := call.Argument(0)
+ var input []uint16
+ switch vl := value.value.(type) {
+ case []uint16:
+ input = vl
+ default:
+ input = utf16.Encode([]rune(toString(value)))
+ }
+ if len(input) == 0 {
+ return toValue_string("")
+ }
+ output := []byte{}
+ length := len(input)
+ encode := make([]byte, 4)
+ for index := 0; index < length; {
+ value := input[index]
+ decode := utf16.Decode(input[index : index+1])
+ if value >= 0xDC00 && value <= 0xDFFF {
+ panic(newURIError("URI malformed"))
+ }
+ if value >= 0xD800 && value <= 0xDBFF {
+ index += 1
+ if index >= length {
+ panic(newURIError("URI malformed"))
+ }
+ // input = ..., value, value1, ...
+ value = value
+ value1 := input[index]
+ if value1 < 0xDC00 || value1 > 0xDFFF {
+ panic(newURIError("URI malformed"))
+ }
+ decode = []rune{((rune(value) - 0xD800) * 0x400) + (rune(value1) - 0xDC00) + 0x10000}
+ }
+ index += 1
+ size := utf8.EncodeRune(encode, decode[0])
+ encode := encode[0:size]
+ output = append(output, encode...)
+ }
+ {
+ value := escape.ReplaceAllFunc(output, func(target []byte) []byte {
+ // Probably a better way of doing this
+ if target[0] == ' ' {
+ return []byte("%20")
+ }
+ return []byte(url.QueryEscape(string(target)))
+ })
+ return toValue_string(string(value))
+ }
+}
+
+var encodeURI_Regexp = regexp.MustCompile(`([^~!@#$&*()=:/,;?+'])`)
+
+func builtinGlobal_encodeURI(call FunctionCall) Value {
+ return _builtinGlobal_encodeURI(call, encodeURI_Regexp)
+}
+
+var encodeURIComponent_Regexp = regexp.MustCompile(`([^~!*()'])`)
+
+func builtinGlobal_encodeURIComponent(call FunctionCall) Value {
+ return _builtinGlobal_encodeURI(call, encodeURIComponent_Regexp)
+}
+
+// 3B/2F/3F/3A/40/26/3D/2B/24/2C/23
+var decodeURI_guard = regexp.MustCompile(`(?i)(?:%)(3B|2F|3F|3A|40|26|3D|2B|24|2C|23)`)
+
+func _decodeURI(input string, reserve bool) (string, bool) {
+ if reserve {
+ input = decodeURI_guard.ReplaceAllString(input, "%25$1")
+ }
+ input = strings.Replace(input, "+", "%2B", -1) // Ugly hack to make QueryUnescape work with our use case
+ output, err := url.QueryUnescape(input)
+ if err != nil || !utf8.ValidString(output) {
+ return "", true
+ }
+ return output, false
+}
+
+func builtinGlobal_decodeURI(call FunctionCall) Value {
+ output, err := _decodeURI(toString(call.Argument(0)), true)
+ if err {
+ panic(newURIError("URI malformed"))
+ }
+ return toValue_string(output)
+}
+
+func builtinGlobal_decodeURIComponent(call FunctionCall) Value {
+ output, err := _decodeURI(toString(call.Argument(0)), false)
+ if err {
+ panic(newURIError("URI malformed"))
+ }
+ return toValue_string(output)
+}
+
+// escape/unescape
+
+func builtin_shouldEscape(chr byte) bool {
+ if 'A' <= chr && chr <= 'Z' || 'a' <= chr && chr <= 'z' || '0' <= chr && chr <= '9' {
+ return false
+ }
+ return !strings.ContainsRune("*_+-./", rune(chr))
+}
+
+const escapeBase16 = "0123456789ABCDEF"
+
+func builtin_escape(input string) string {
+ output := make([]byte, 0, len(input))
+ length := len(input)
+ for index := 0; index < length; {
+ if builtin_shouldEscape(input[index]) {
+ chr, width := utf8.DecodeRuneInString(input[index:])
+ chr16 := utf16.Encode([]rune{chr})[0]
+ if 256 > chr16 {
+ output = append(output, '%',
+ escapeBase16[chr16>>4],
+ escapeBase16[chr16&15],
+ )
+ } else {
+ output = append(output, '%', 'u',
+ escapeBase16[chr16>>12],
+ escapeBase16[(chr16>>8)&15],
+ escapeBase16[(chr16>>4)&15],
+ escapeBase16[chr16&15],
+ )
+ }
+ index += width
+
+ } else {
+ output = append(output, input[index])
+ index += 1
+ }
+ }
+ return string(output)
+}
+
+func builtin_unescape(input string) string {
+ output := make([]rune, 0, len(input))
+ length := len(input)
+ for index := 0; index < length; {
+ if input[index] == '%' {
+ if index <= length-6 && input[index+1] == 'u' {
+ byte16, err := hex.DecodeString(input[index+2 : index+6])
+ if err == nil {
+ value := uint16(byte16[0])<<8 + uint16(byte16[1])
+ chr := utf16.Decode([]uint16{value})[0]
+ output = append(output, chr)
+ index += 6
+ continue
+ }
+ }
+ if index <= length-3 {
+ byte8, err := hex.DecodeString(input[index+1 : index+3])
+ if err == nil {
+ value := uint16(byte8[0])
+ chr := utf16.Decode([]uint16{value})[0]
+ output = append(output, chr)
+ index += 3
+ continue
+ }
+ }
+ }
+ output = append(output, rune(input[index]))
+ index += 1
+ }
+ return string(output)
+}
+
+func builtinGlobal_escape(call FunctionCall) Value {
+ return toValue_string(builtin_escape(toString(call.Argument(0))))
+}
+
+func builtinGlobal_unescape(call FunctionCall) Value {
+ return toValue_string(builtin_unescape(toString(call.Argument(0))))
+}
+
+// Error
+
+func builtinError(call FunctionCall) Value {
+ return toValue_object(call.runtime.newError("", call.Argument(0)))
+}
+
+func builtinNewError(self *_object, _ Value, argumentList []Value) Value {
+ return toValue_object(self.runtime.newError("", valueOfArrayIndex(argumentList, 0)))
+}
+
+func builtinError_toString(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ if thisObject == nil {
+ panic(newTypeError())
+ }
+
+ name := "Error"
+ nameValue := thisObject.get("name")
+ if nameValue.IsDefined() {
+ name = toString(nameValue)
+ }
+
+ message := ""
+ messageValue := thisObject.get("message")
+ if messageValue.IsDefined() {
+ message = toString(messageValue)
+ }
+
+ if len(name) == 0 {
+ return toValue_string(message)
+ }
+
+ if len(message) == 0 {
+ return toValue_string(name)
+ }
+
+ return toValue_string(fmt.Sprintf("%s: %s", name, message))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/builtin_array.go b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_array.go
new file mode 100644
index 000000000..aefae1855
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_array.go
@@ -0,0 +1,672 @@
+package otto
+
+import (
+ "strconv"
+ "strings"
+)
+
+// Array
+
+func builtinArray(call FunctionCall) Value {
+ return toValue_object(builtinNewArrayNative(call.runtime, call.ArgumentList))
+}
+
+func builtinNewArray(self *_object, _ Value, argumentList []Value) Value {
+ return toValue_object(builtinNewArrayNative(self.runtime, argumentList))
+}
+
+func builtinNewArrayNative(runtime *_runtime, argumentList []Value) *_object {
+ if len(argumentList) == 1 {
+ firstArgument := argumentList[0]
+ if firstArgument.IsNumber() {
+ return runtime.newArray(arrayUint32(firstArgument))
+ }
+ }
+ return runtime.newArrayOf(argumentList)
+}
+
+func builtinArray_toString(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ join := thisObject.get("join")
+ if join.isCallable() {
+ join := join._object()
+ return join.Call(call.This, call.ArgumentList)
+ }
+ return builtinObject_toString(call)
+}
+
+func builtinArray_toLocaleString(call FunctionCall) Value {
+ separator := ","
+ thisObject := call.thisObject()
+ length := int64(toUint32(thisObject.get("length")))
+ if length == 0 {
+ return toValue_string("")
+ }
+ stringList := make([]string, 0, length)
+ for index := int64(0); index < length; index += 1 {
+ value := thisObject.get(arrayIndexToString(index))
+ stringValue := ""
+ switch value._valueType {
+ case valueEmpty, valueUndefined, valueNull:
+ default:
+ object := call.runtime.toObject(value)
+ toLocaleString := object.get("toLocaleString")
+ if !toLocaleString.isCallable() {
+ panic(newTypeError())
+ }
+ stringValue = toLocaleString.call(toValue_object(object)).toString()
+ }
+ stringList = append(stringList, stringValue)
+ }
+ return toValue_string(strings.Join(stringList, separator))
+}
+
+func builtinArray_concat(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ valueArray := []Value{}
+ source := append([]Value{toValue_object(thisObject)}, call.ArgumentList...)
+ for _, item := range source {
+ switch item._valueType {
+ case valueObject:
+ object := item._object()
+ if isArray(object) {
+ length := toInteger(object.get("length")).value
+ for index := int64(0); index < length; index += 1 {
+ name := strconv.FormatInt(index, 10)
+ if object.hasProperty(name) {
+ valueArray = append(valueArray, object.get(name))
+ } else {
+ valueArray = append(valueArray, Value{})
+ }
+ }
+ continue
+ }
+ fallthrough
+ default:
+ valueArray = append(valueArray, item)
+ }
+ }
+ return toValue_object(call.runtime.newArrayOf(valueArray))
+}
+
+func builtinArray_shift(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ length := int64(toUint32(thisObject.get("length")))
+ if 0 == length {
+ thisObject.put("length", toValue_int64(0), true)
+ return UndefinedValue()
+ }
+ first := thisObject.get("0")
+ for index := int64(1); index < length; index++ {
+ from := arrayIndexToString(index)
+ to := arrayIndexToString(index - 1)
+ if thisObject.hasProperty(from) {
+ thisObject.put(to, thisObject.get(from), true)
+ } else {
+ thisObject.delete(to, true)
+ }
+ }
+ thisObject.delete(arrayIndexToString(length-1), true)
+ thisObject.put("length", toValue_int64(length-1), true)
+ return first
+}
+
+func builtinArray_push(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ itemList := call.ArgumentList
+ index := int64(toUint32(thisObject.get("length")))
+ for len(itemList) > 0 {
+ thisObject.put(arrayIndexToString(index), itemList[0], true)
+ itemList = itemList[1:]
+ index += 1
+ }
+ length := toValue_int64(index)
+ thisObject.put("length", length, true)
+ return length
+}
+
+func builtinArray_pop(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ length := int64(toUint32(thisObject.get("length")))
+ if 0 == length {
+ thisObject.put("length", toValue_uint32(0), true)
+ return UndefinedValue()
+ }
+ last := thisObject.get(arrayIndexToString(length - 1))
+ thisObject.delete(arrayIndexToString(length-1), true)
+ thisObject.put("length", toValue_int64(length-1), true)
+ return last
+}
+
+func builtinArray_join(call FunctionCall) Value {
+ separator := ","
+ {
+ argument := call.Argument(0)
+ if argument.IsDefined() {
+ separator = toString(argument)
+ }
+ }
+ thisObject := call.thisObject()
+ length := int64(toUint32(thisObject.get("length")))
+ if length == 0 {
+ return toValue_string("")
+ }
+ stringList := make([]string, 0, length)
+ for index := int64(0); index < length; index += 1 {
+ value := thisObject.get(arrayIndexToString(index))
+ stringValue := ""
+ switch value._valueType {
+ case valueEmpty, valueUndefined, valueNull:
+ default:
+ stringValue = toString(value)
+ }
+ stringList = append(stringList, stringValue)
+ }
+ return toValue_string(strings.Join(stringList, separator))
+}
+
+func builtinArray_splice(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ length := int64(toUint32(thisObject.get("length")))
+
+ start := valueToRangeIndex(call.Argument(0), length, false)
+ deleteCount := valueToRangeIndex(call.Argument(1), int64(length)-start, true)
+ valueArray := make([]Value, deleteCount)
+
+ for index := int64(0); index < deleteCount; index++ {
+ indexString := arrayIndexToString(int64(start + index))
+ if thisObject.hasProperty(indexString) {
+ valueArray[index] = thisObject.get(indexString)
+ }
+ }
+
+ // 0, <1, 2, 3, 4>, 5, 6, 7
+ // a, b
+ // length 8 - delete 4 @ start 1
+
+ itemList := []Value{}
+ itemCount := int64(len(call.ArgumentList))
+ if itemCount > 2 {
+ itemCount -= 2 // Less the first two arguments
+ itemList = call.ArgumentList[2:]
+ } else {
+ itemCount = 0
+ }
+ if itemCount < deleteCount {
+ // The Object/Array is shrinking
+ stop := int64(length) - deleteCount
+ // The new length of the Object/Array before
+ // appending the itemList remainder
+ // Stopping at the lower bound of the insertion:
+ // Move an item from the after the deleted portion
+ // to a position after the inserted portion
+ for index := start; index < stop; index++ {
+ from := arrayIndexToString(index + deleteCount) // Position just after deletion
+ to := arrayIndexToString(index + itemCount) // Position just after splice (insertion)
+ if thisObject.hasProperty(from) {
+ thisObject.put(to, thisObject.get(from), true)
+ } else {
+ thisObject.delete(to, true)
+ }
+ }
+ // Delete off the end
+ // We don't bother to delete below <stop + itemCount> (if any) since those
+ // will be overwritten anyway
+ for index := int64(length); index > (stop + itemCount); index-- {
+ thisObject.delete(arrayIndexToString(index-1), true)
+ }
+ } else if itemCount > deleteCount {
+ // The Object/Array is growing
+ // The itemCount is greater than the deleteCount, so we do
+ // not have to worry about overwriting what we should be moving
+ // ---
+ // Starting from the upper bound of the deletion:
+ // Move an item from the after the deleted portion
+ // to a position after the inserted portion
+ for index := int64(length) - deleteCount; index > start; index-- {
+ from := arrayIndexToString(index + deleteCount - 1)
+ to := arrayIndexToString(index + itemCount - 1)
+ if thisObject.hasProperty(from) {
+ thisObject.put(to, thisObject.get(from), true)
+ } else {
+ thisObject.delete(to, true)
+ }
+ }
+ }
+
+ for index := int64(0); index < itemCount; index++ {
+ thisObject.put(arrayIndexToString(index+start), itemList[index], true)
+ }
+ thisObject.put("length", toValue_int64(int64(length)+itemCount-deleteCount), true)
+
+ return toValue_object(call.runtime.newArrayOf(valueArray))
+}
+
+func builtinArray_slice(call FunctionCall) Value {
+ thisObject := call.thisObject()
+
+ length := int64(toUint32(thisObject.get("length")))
+ start, end := rangeStartEnd(call.ArgumentList, length, false)
+
+ if start >= end {
+ // Always an empty array
+ return toValue_object(call.runtime.newArray(0))
+ }
+ sliceLength := end - start
+ sliceValueArray := make([]Value, sliceLength)
+
+ for index := int64(0); index < sliceLength; index++ {
+ from := arrayIndexToString(index + start)
+ if thisObject.hasProperty(from) {
+ sliceValueArray[index] = thisObject.get(from)
+ }
+ }
+
+ return toValue_object(call.runtime.newArrayOf(sliceValueArray))
+}
+
+func builtinArray_unshift(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ length := int64(toUint32(thisObject.get("length")))
+ itemList := call.ArgumentList
+ itemCount := int64(len(itemList))
+
+ for index := length; index > 0; index-- {
+ from := arrayIndexToString(index - 1)
+ to := arrayIndexToString(index + itemCount - 1)
+ if thisObject.hasProperty(from) {
+ thisObject.put(to, thisObject.get(from), true)
+ } else {
+ thisObject.delete(to, true)
+ }
+ }
+
+ for index := int64(0); index < itemCount; index++ {
+ thisObject.put(arrayIndexToString(index), itemList[index], true)
+ }
+
+ newLength := toValue_int64(length + itemCount)
+ thisObject.put("length", newLength, true)
+ return newLength
+}
+
+func builtinArray_reverse(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ length := int64(toUint32(thisObject.get("length")))
+
+ lower := struct {
+ name string
+ index int64
+ exists bool
+ }{}
+ upper := lower
+
+ lower.index = 0
+ middle := length / 2 // Division will floor
+
+ for lower.index != middle {
+ lower.name = arrayIndexToString(lower.index)
+ upper.index = length - lower.index - 1
+ upper.name = arrayIndexToString(upper.index)
+
+ lower.exists = thisObject.hasProperty(lower.name)
+ upper.exists = thisObject.hasProperty(upper.name)
+
+ if lower.exists && upper.exists {
+ lowerValue := thisObject.get(lower.name)
+ upperValue := thisObject.get(upper.name)
+ thisObject.put(lower.name, upperValue, true)
+ thisObject.put(upper.name, lowerValue, true)
+ } else if !lower.exists && upper.exists {
+ value := thisObject.get(upper.name)
+ thisObject.delete(upper.name, true)
+ thisObject.put(lower.name, value, true)
+ } else if lower.exists && !upper.exists {
+ value := thisObject.get(lower.name)
+ thisObject.delete(lower.name, true)
+ thisObject.put(upper.name, value, true)
+ } else {
+ // Nothing happens.
+ }
+
+ lower.index += 1
+ }
+
+ return call.This
+}
+
+func sortCompare(thisObject *_object, index0, index1 uint, compare *_object) int {
+ j := struct {
+ name string
+ exists bool
+ defined bool
+ value string
+ }{}
+ k := j
+ j.name = arrayIndexToString(int64(index0))
+ j.exists = thisObject.hasProperty(j.name)
+ k.name = arrayIndexToString(int64(index1))
+ k.exists = thisObject.hasProperty(k.name)
+
+ if !j.exists && !k.exists {
+ return 0
+ } else if !j.exists {
+ return 1
+ } else if !k.exists {
+ return -1
+ }
+
+ x := thisObject.get(j.name)
+ y := thisObject.get(k.name)
+ j.defined = x.IsDefined()
+ k.defined = y.IsDefined()
+
+ if !j.defined && !k.defined {
+ return 0
+ } else if !j.defined {
+ return 1
+ } else if !k.defined {
+ return -1
+ }
+
+ if compare == nil {
+ j.value = toString(x)
+ k.value = toString(y)
+
+ if j.value == k.value {
+ return 0
+ } else if j.value < k.value {
+ return -1
+ }
+
+ return 1
+ }
+
+ return int(toInt32(compare.Call(UndefinedValue(), []Value{x, y})))
+}
+
+func arraySortSwap(thisObject *_object, index0, index1 uint) {
+
+ j := struct {
+ name string
+ exists bool
+ }{}
+ k := j
+
+ j.name = arrayIndexToString(int64(index0))
+ j.exists = thisObject.hasProperty(j.name)
+ k.name = arrayIndexToString(int64(index1))
+ k.exists = thisObject.hasProperty(k.name)
+
+ if j.exists && k.exists {
+ jValue := thisObject.get(j.name)
+ kValue := thisObject.get(k.name)
+ thisObject.put(j.name, kValue, true)
+ thisObject.put(k.name, jValue, true)
+ } else if !j.exists && k.exists {
+ value := thisObject.get(k.name)
+ thisObject.delete(k.name, true)
+ thisObject.put(j.name, value, true)
+ } else if j.exists && !k.exists {
+ value := thisObject.get(j.name)
+ thisObject.delete(j.name, true)
+ thisObject.put(k.name, value, true)
+ } else {
+ // Nothing happens.
+ }
+}
+
+func arraySortQuickPartition(thisObject *_object, left, right, pivot uint, compare *_object) uint {
+ arraySortSwap(thisObject, pivot, right) // Right is now the pivot value
+ cursor := left
+ for index := left; index < right; index++ {
+ if sortCompare(thisObject, index, right, compare) == -1 { // Compare to the pivot value
+ arraySortSwap(thisObject, index, cursor)
+ cursor += 1
+ }
+ }
+ arraySortSwap(thisObject, cursor, right)
+ return cursor
+}
+
+func arraySortQuickSort(thisObject *_object, left, right uint, compare *_object) {
+ if left < right {
+ pivot := left + (right-left)/2
+ pivot = arraySortQuickPartition(thisObject, left, right, pivot, compare)
+ if pivot > 0 {
+ arraySortQuickSort(thisObject, left, pivot-1, compare)
+ }
+ arraySortQuickSort(thisObject, pivot+1, right, compare)
+ }
+}
+
+func builtinArray_sort(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ length := uint(toUint32(thisObject.get("length")))
+ compareValue := call.Argument(0)
+ compare := compareValue._object()
+ if compareValue.IsUndefined() {
+ } else if !compareValue.isCallable() {
+ panic(newTypeError())
+ }
+ if length > 1 {
+ arraySortQuickSort(thisObject, 0, length-1, compare)
+ }
+ return call.This
+}
+
+func builtinArray_isArray(call FunctionCall) Value {
+ return toValue_bool(isArray(call.Argument(0)._object()))
+}
+
+func builtinArray_indexOf(call FunctionCall) Value {
+ thisObject, matchValue := call.thisObject(), call.Argument(0)
+ if length := int64(toUint32(thisObject.get("length"))); length > 0 {
+ index := int64(0)
+ if len(call.ArgumentList) > 1 {
+ index = toInteger(call.Argument(1)).value
+ }
+ if index < 0 {
+ if index += length; index < 0 {
+ index = 0
+ }
+ } else if index >= length {
+ index = -1
+ }
+ for ; index >= 0 && index < length; index++ {
+ name := arrayIndexToString(int64(index))
+ if !thisObject.hasProperty(name) {
+ continue
+ }
+ value := thisObject.get(name)
+ if strictEqualityComparison(matchValue, value) {
+ return toValue_uint32(uint32(index))
+ }
+ }
+ }
+ return toValue_int(-1)
+}
+
+func builtinArray_lastIndexOf(call FunctionCall) Value {
+ thisObject, matchValue := call.thisObject(), call.Argument(0)
+ length := int64(toUint32(thisObject.get("length")))
+ index := length - 1
+ if len(call.ArgumentList) > 1 {
+ index = toInteger(call.Argument(1)).value
+ }
+ if 0 > index {
+ index += length
+ }
+ if index > length {
+ index = length - 1
+ } else if 0 > index {
+ return toValue_int(-1)
+ }
+ for ; index >= 0; index-- {
+ name := arrayIndexToString(int64(index))
+ if !thisObject.hasProperty(name) {
+ continue
+ }
+ value := thisObject.get(name)
+ if strictEqualityComparison(matchValue, value) {
+ return toValue_uint32(uint32(index))
+ }
+ }
+ return toValue_int(-1)
+}
+
+func builtinArray_every(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ this := toValue_object(thisObject)
+ if iterator := call.Argument(0); iterator.isCallable() {
+ length := int64(toUint32(thisObject.get("length")))
+ callThis := call.Argument(1)
+ for index := int64(0); index < length; index++ {
+ if key := arrayIndexToString(index); thisObject.hasProperty(key) {
+ if value := thisObject.get(key); iterator.call(callThis, value, toValue_int64(index), this).isTrue() {
+ continue
+ }
+ return FalseValue()
+ }
+ }
+ return TrueValue()
+ }
+ panic(newTypeError())
+}
+
+func builtinArray_some(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ this := toValue_object(thisObject)
+ if iterator := call.Argument(0); iterator.isCallable() {
+ length := int64(toUint32(thisObject.get("length")))
+ callThis := call.Argument(1)
+ for index := int64(0); index < length; index++ {
+ if key := arrayIndexToString(index); thisObject.hasProperty(key) {
+ if value := thisObject.get(key); iterator.call(callThis, value, toValue_int64(index), this).isTrue() {
+ return TrueValue()
+ }
+ }
+ }
+ return FalseValue()
+ }
+ panic(newTypeError())
+}
+
+func builtinArray_forEach(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ this := toValue_object(thisObject)
+ if iterator := call.Argument(0); iterator.isCallable() {
+ length := int64(toUint32(thisObject.get("length")))
+ callThis := call.Argument(1)
+ for index := int64(0); index < length; index++ {
+ if key := arrayIndexToString(index); thisObject.hasProperty(key) {
+ iterator.call(callThis, thisObject.get(key), toValue_int64(index), this)
+ }
+ }
+ return UndefinedValue()
+ }
+ panic(newTypeError())
+}
+
+func builtinArray_map(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ this := toValue_object(thisObject)
+ if iterator := call.Argument(0); iterator.isCallable() {
+ length := int64(toUint32(thisObject.get("length")))
+ callThis := call.Argument(1)
+ values := make([]Value, length)
+ for index := int64(0); index < length; index++ {
+ if key := arrayIndexToString(index); thisObject.hasProperty(key) {
+ values[index] = iterator.call(callThis, thisObject.get(key), index, this)
+ } else {
+ values[index] = UndefinedValue()
+ }
+ }
+ return toValue_object(call.runtime.newArrayOf(values))
+ }
+ panic(newTypeError())
+}
+
+func builtinArray_filter(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ this := toValue_object(thisObject)
+ if iterator := call.Argument(0); iterator.isCallable() {
+ length := int64(toUint32(thisObject.get("length")))
+ callThis := call.Argument(1)
+ values := make([]Value, 0)
+ for index := int64(0); index < length; index++ {
+ if key := arrayIndexToString(index); thisObject.hasProperty(key) {
+ value := thisObject.get(key)
+ if iterator.call(callThis, value, index, this).isTrue() {
+ values = append(values, value)
+ }
+ }
+ }
+ return toValue_object(call.runtime.newArrayOf(values))
+ }
+ panic(newTypeError())
+}
+
+func builtinArray_reduce(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ this := toValue_object(thisObject)
+ if iterator := call.Argument(0); iterator.isCallable() {
+ initial := len(call.ArgumentList) > 1
+ start := call.Argument(1)
+ length := int64(toUint32(thisObject.get("length")))
+ index := int64(0)
+ if length > 0 || initial {
+ var accumulator Value
+ if !initial {
+ for ; index < length; index++ {
+ if key := arrayIndexToString(index); thisObject.hasProperty(key) {
+ accumulator = thisObject.get(key)
+ index++
+ break
+ }
+ }
+ } else {
+ accumulator = start
+ }
+ for ; index < length; index++ {
+ if key := arrayIndexToString(index); thisObject.hasProperty(key) {
+ accumulator = iterator.call(UndefinedValue(), accumulator, thisObject.get(key), key, this)
+ }
+ }
+ return accumulator
+ }
+ }
+ panic(newTypeError())
+}
+
+func builtinArray_reduceRight(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ this := toValue_object(thisObject)
+ if iterator := call.Argument(0); iterator.isCallable() {
+ initial := len(call.ArgumentList) > 1
+ start := call.Argument(1)
+ length := int64(toUint32(thisObject.get("length")))
+ if length > 0 || initial {
+ index := length - 1
+ var accumulator Value
+ if !initial {
+ for ; index >= 0; index-- {
+ if key := arrayIndexToString(index); thisObject.hasProperty(key) {
+ accumulator = thisObject.get(key)
+ index -= 1
+ break
+ }
+ }
+ } else {
+ accumulator = start
+ }
+ for ; index >= 0; index-- {
+ if key := arrayIndexToString(index); thisObject.hasProperty(key) {
+ accumulator = iterator.call(UndefinedValue(), accumulator, thisObject.get(key), key, this)
+ }
+ }
+ return accumulator
+ }
+ }
+ panic(newTypeError())
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/builtin_boolean.go b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_boolean.go
new file mode 100644
index 000000000..1aec693ce
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_boolean.go
@@ -0,0 +1,28 @@
+package otto
+
+// Boolean
+
+func builtinBoolean(call FunctionCall) Value {
+ return toValue_bool(toBoolean(call.Argument(0)))
+}
+
+func builtinNewBoolean(self *_object, _ Value, argumentList []Value) Value {
+ return toValue_object(self.runtime.newBoolean(valueOfArrayIndex(argumentList, 0)))
+}
+
+func builtinBoolean_toString(call FunctionCall) Value {
+ value := call.This
+ if !value.IsBoolean() {
+ // Will throw a TypeError if ThisObject is not a Boolean
+ value = call.thisClassObject("Boolean").primitiveValue()
+ }
+ return toValue_string(toString(value))
+}
+
+func builtinBoolean_valueOf(call FunctionCall) Value {
+ value := call.This
+ if !value.IsBoolean() {
+ value = call.thisClassObject("Boolean").primitiveValue()
+ }
+ return value
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/builtin_date.go b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_date.go
new file mode 100644
index 000000000..439d367bc
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_date.go
@@ -0,0 +1,616 @@
+package otto
+
+import (
+ "math"
+ Time "time"
+)
+
+// Date
+
+const (
+ // TODO Be like V8?
+ // builtinDate_goDateTimeLayout = "Mon Jan 2 2006 15:04:05 GMT-0700 (MST)"
+ builtinDate_goDateTimeLayout = Time.RFC1123 // "Mon, 02 Jan 2006 15:04:05 MST"
+ builtinDate_goDateLayout = "Mon, 02 Jan 2006"
+ builtinDate_goTimeLayout = "15:04:05 MST"
+)
+
+func builtinDate(call FunctionCall) Value {
+ date := &_dateObject{}
+ date.Set(newDateTime([]Value{}, Time.Local))
+ return toValue_string(date.Time().Format(builtinDate_goDateTimeLayout))
+}
+
+func builtinNewDate(self *_object, _ Value, argumentList []Value) Value {
+ return toValue_object(self.runtime.newDate(newDateTime(argumentList, Time.Local)))
+}
+
+func builtinDate_toString(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return toValue_string("Invalid Date")
+ }
+ return toValue_string(date.Time().Local().Format(builtinDate_goDateTimeLayout))
+}
+
+func builtinDate_toDateString(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return toValue_string("Invalid Date")
+ }
+ return toValue_string(date.Time().Local().Format(builtinDate_goDateLayout))
+}
+
+func builtinDate_toTimeString(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return toValue_string("Invalid Date")
+ }
+ return toValue_string(date.Time().Local().Format(builtinDate_goTimeLayout))
+}
+
+func builtinDate_toUTCString(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return toValue_string("Invalid Date")
+ }
+ return toValue_string(date.Time().Format(builtinDate_goDateTimeLayout))
+}
+
+func builtinDate_toISOString(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return toValue_string("Invalid Date")
+ }
+ return toValue_string(date.Time().Format("2006-01-02T15:04:05.000Z"))
+}
+
+func builtinDate_toJSON(call FunctionCall) Value {
+ object := call.thisObject()
+ value := object.DefaultValue(defaultValueHintNumber) // FIXME object.primitiveNumberValue
+ { // FIXME value.isFinite
+ value := toFloat(value)
+ if math.IsNaN(value) || math.IsInf(value, 0) {
+ return NullValue()
+ }
+ }
+ toISOString := object.get("toISOString")
+ if !toISOString.isCallable() {
+ panic(newTypeError())
+ }
+ return toISOString.call(toValue_object(object), []Value{})
+}
+
+func builtinDate_toGMTString(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return toValue_string("Invalid Date")
+ }
+ return toValue_string(date.Time().Format("Mon, 02 Jan 2006 15:04:05 GMT"))
+}
+
+func builtinDate_getTime(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ // We do this (convert away from a float) so the user
+ // does not get something back in exponential notation
+ return toValue_int64(int64(date.Epoch()))
+}
+
+func builtinDate_setTime(call FunctionCall) Value {
+ object := call.thisObject()
+ date := dateObjectOf(object)
+ date.Set(toFloat(call.Argument(0)))
+ object.value = date
+ return date.Value()
+}
+
+func _builtinDate_beforeSet(call FunctionCall, argumentLimit int, timeLocal bool) (*_object, *_dateObject, *_ecmaTime, []int) {
+ object := call.thisObject()
+ date := dateObjectOf(object)
+ if date.isNaN {
+ return nil, nil, nil, nil
+ }
+
+ if argumentLimit > len(call.ArgumentList) {
+ argumentLimit = len(call.ArgumentList)
+ }
+
+ if argumentLimit == 0 {
+ object.value = invalidDateObject
+ return nil, nil, nil, nil
+ }
+
+ valueList := make([]int, argumentLimit)
+ for index := 0; index < argumentLimit; index++ {
+ value := call.ArgumentList[index]
+ if value.IsNaN() {
+ object.value = invalidDateObject
+ return nil, nil, nil, nil
+ }
+ integer := toInteger(value)
+ if !integer.valid() {
+ object.value = invalidDateObject
+ return nil, nil, nil, nil
+ }
+ valueList[index] = int(integer.value)
+ }
+ baseTime := date.Time()
+ if timeLocal {
+ baseTime = baseTime.Local()
+ }
+ ecmaTime := ecmaTime(baseTime)
+ return object, &date, &ecmaTime, valueList
+}
+
+func builtinDate_parse(call FunctionCall) Value {
+ date := toString(call.Argument(0))
+ return toValue_float64(dateParse(date))
+}
+
+func builtinDate_UTC(call FunctionCall) Value {
+ return toValue_float64(newDateTime(call.ArgumentList, Time.UTC))
+}
+
+func builtinDate_now(call FunctionCall) Value {
+ call.ArgumentList = []Value(nil)
+ return builtinDate_UTC(call)
+}
+
+// This is a placeholder
+func builtinDate_toLocaleString(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return toValue_string("Invalid Date")
+ }
+ return toValue_string(date.Time().Local().Format("2006-01-02 15:04:05"))
+}
+
+// This is a placeholder
+func builtinDate_toLocaleDateString(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return toValue_string("Invalid Date")
+ }
+ return toValue_string(date.Time().Local().Format("2006-01-02"))
+}
+
+// This is a placeholder
+func builtinDate_toLocaleTimeString(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return toValue_string("Invalid Date")
+ }
+ return toValue_string(date.Time().Local().Format("15:04:05"))
+}
+
+func builtinDate_valueOf(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return date.Value()
+}
+
+func builtinDate_getYear(call FunctionCall) Value {
+ // Will throw a TypeError is ThisObject is nil or
+ // does not have Class of "Date"
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(date.Time().Local().Year() - 1900)
+}
+
+func builtinDate_getFullYear(call FunctionCall) Value {
+ // Will throw a TypeError is ThisObject is nil or
+ // does not have Class of "Date"
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(date.Time().Local().Year())
+}
+
+func builtinDate_getUTCFullYear(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(date.Time().Year())
+}
+
+func builtinDate_getMonth(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(dateFromGoMonth(date.Time().Local().Month()))
+}
+
+func builtinDate_getUTCMonth(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(dateFromGoMonth(date.Time().Month()))
+}
+
+func builtinDate_getDate(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(date.Time().Local().Day())
+}
+
+func builtinDate_getUTCDate(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(date.Time().Day())
+}
+
+func builtinDate_getDay(call FunctionCall) Value {
+ // Actually day of the week
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(dateFromGoDay(date.Time().Local().Weekday()))
+}
+
+func builtinDate_getUTCDay(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(dateFromGoDay(date.Time().Weekday()))
+}
+
+func builtinDate_getHours(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(date.Time().Local().Hour())
+}
+
+func builtinDate_getUTCHours(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(date.Time().Hour())
+}
+
+func builtinDate_getMinutes(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(date.Time().Local().Minute())
+}
+
+func builtinDate_getUTCMinutes(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(date.Time().Minute())
+}
+
+func builtinDate_getSeconds(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(date.Time().Local().Second())
+}
+
+func builtinDate_getUTCSeconds(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(date.Time().Second())
+}
+
+func builtinDate_getMilliseconds(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(date.Time().Local().Nanosecond() / (100 * 100 * 100))
+}
+
+func builtinDate_getUTCMilliseconds(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ return toValue_int(date.Time().Nanosecond() / (100 * 100 * 100))
+}
+
+func builtinDate_getTimezoneOffset(call FunctionCall) Value {
+ date := dateObjectOf(call.thisObject())
+ if date.isNaN {
+ return NaNValue()
+ }
+ timeLocal := date.Time().Local()
+ // Is this kosher?
+ timeLocalAsUTC := Time.Date(
+ timeLocal.Year(),
+ timeLocal.Month(),
+ timeLocal.Day(),
+ timeLocal.Hour(),
+ timeLocal.Minute(),
+ timeLocal.Second(),
+ timeLocal.Nanosecond(),
+ Time.UTC,
+ )
+ return toValue_float64(date.Time().Sub(timeLocalAsUTC).Seconds() / 60)
+}
+
+func builtinDate_setMilliseconds(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 1, true)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ ecmaTime.millisecond = value[0]
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+func builtinDate_setUTCMilliseconds(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 1, false)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ ecmaTime.millisecond = value[0]
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+func builtinDate_setSeconds(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 2, true)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ if len(value) > 1 {
+ ecmaTime.millisecond = value[1]
+ }
+ ecmaTime.second = value[0]
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+func builtinDate_setUTCSeconds(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 2, false)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ if len(value) > 1 {
+ ecmaTime.millisecond = value[1]
+ }
+ ecmaTime.second = value[0]
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+func builtinDate_setMinutes(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 3, true)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ if len(value) > 2 {
+ ecmaTime.millisecond = value[2]
+ ecmaTime.second = value[1]
+ } else if len(value) > 1 {
+ ecmaTime.second = value[1]
+ }
+ ecmaTime.minute = value[0]
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+func builtinDate_setUTCMinutes(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 3, false)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ if len(value) > 2 {
+ ecmaTime.millisecond = value[2]
+ ecmaTime.second = value[1]
+ } else if len(value) > 1 {
+ ecmaTime.second = value[1]
+ }
+ ecmaTime.minute = value[0]
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+func builtinDate_setHours(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 4, true)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ if len(value) > 3 {
+ ecmaTime.millisecond = value[3]
+ ecmaTime.second = value[2]
+ ecmaTime.minute = value[1]
+ } else if len(value) > 2 {
+ ecmaTime.second = value[2]
+ ecmaTime.minute = value[1]
+ } else if len(value) > 1 {
+ ecmaTime.minute = value[1]
+ }
+ ecmaTime.hour = value[0]
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+func builtinDate_setUTCHours(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 4, false)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ if len(value) > 3 {
+ ecmaTime.millisecond = value[3]
+ ecmaTime.second = value[2]
+ ecmaTime.minute = value[1]
+ } else if len(value) > 2 {
+ ecmaTime.second = value[2]
+ ecmaTime.minute = value[1]
+ } else if len(value) > 1 {
+ ecmaTime.minute = value[1]
+ }
+ ecmaTime.hour = value[0]
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+func builtinDate_setDate(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 1, true)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ ecmaTime.day = value[0]
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+func builtinDate_setUTCDate(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 1, false)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ ecmaTime.day = value[0]
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+func builtinDate_setMonth(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 2, true)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ if len(value) > 1 {
+ ecmaTime.day = value[1]
+ }
+ ecmaTime.month = value[0]
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+func builtinDate_setUTCMonth(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 2, false)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ if len(value) > 1 {
+ ecmaTime.day = value[1]
+ }
+ ecmaTime.month = value[0]
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+func builtinDate_setYear(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 1, true)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ year := value[0]
+ if 0 <= year && year <= 99 {
+ year += 1900
+ }
+ ecmaTime.year = year
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+func builtinDate_setFullYear(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 3, true)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ if len(value) > 2 {
+ ecmaTime.day = value[2]
+ ecmaTime.month = value[1]
+ } else if len(value) > 1 {
+ ecmaTime.month = value[1]
+ }
+ ecmaTime.year = value[0]
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+func builtinDate_setUTCFullYear(call FunctionCall) Value {
+ object, date, ecmaTime, value := _builtinDate_beforeSet(call, 3, false)
+ if ecmaTime == nil {
+ return NaNValue()
+ }
+
+ if len(value) > 2 {
+ ecmaTime.day = value[2]
+ ecmaTime.month = value[1]
+ } else if len(value) > 1 {
+ ecmaTime.month = value[1]
+ }
+ ecmaTime.year = value[0]
+
+ date.SetTime(ecmaTime.goTime())
+ object.value = *date
+ return date.Value()
+}
+
+// toUTCString
+// toISOString
+// toJSONString
+// toJSON
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/builtin_error.go b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_error.go
new file mode 100644
index 000000000..effd7f698
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_error.go
@@ -0,0 +1,85 @@
+package otto
+
+func (runtime *_runtime) newEvalError(message Value) *_object {
+ self := runtime.newErrorObject(message)
+ self.prototype = runtime.Global.EvalErrorPrototype
+ return self
+}
+
+func builtinEvalError(call FunctionCall) Value {
+ return toValue_object(call.runtime.newEvalError(call.Argument(0)))
+}
+
+func builtinNewEvalError(self *_object, _ Value, argumentList []Value) Value {
+ return toValue_object(self.runtime.newEvalError(valueOfArrayIndex(argumentList, 0)))
+}
+
+func (runtime *_runtime) newTypeError(message Value) *_object {
+ self := runtime.newErrorObject(message)
+ self.prototype = runtime.Global.TypeErrorPrototype
+ return self
+}
+
+func builtinTypeError(call FunctionCall) Value {
+ return toValue_object(call.runtime.newTypeError(call.Argument(0)))
+}
+
+func builtinNewTypeError(self *_object, _ Value, argumentList []Value) Value {
+ return toValue_object(self.runtime.newTypeError(valueOfArrayIndex(argumentList, 0)))
+}
+
+func (runtime *_runtime) newRangeError(message Value) *_object {
+ self := runtime.newErrorObject(message)
+ self.prototype = runtime.Global.RangeErrorPrototype
+ return self
+}
+
+func builtinRangeError(call FunctionCall) Value {
+ return toValue_object(call.runtime.newRangeError(call.Argument(0)))
+}
+
+func builtinNewRangeError(self *_object, _ Value, argumentList []Value) Value {
+ return toValue_object(self.runtime.newRangeError(valueOfArrayIndex(argumentList, 0)))
+}
+
+func (runtime *_runtime) newURIError(message Value) *_object {
+ self := runtime.newErrorObject(message)
+ self.prototype = runtime.Global.URIErrorPrototype
+ return self
+}
+
+func (runtime *_runtime) newReferenceError(message Value) *_object {
+ self := runtime.newErrorObject(message)
+ self.prototype = runtime.Global.ReferenceErrorPrototype
+ return self
+}
+
+func builtinReferenceError(call FunctionCall) Value {
+ return toValue_object(call.runtime.newReferenceError(call.Argument(0)))
+}
+
+func builtinNewReferenceError(self *_object, _ Value, argumentList []Value) Value {
+ return toValue_object(self.runtime.newReferenceError(valueOfArrayIndex(argumentList, 0)))
+}
+
+func (runtime *_runtime) newSyntaxError(message Value) *_object {
+ self := runtime.newErrorObject(message)
+ self.prototype = runtime.Global.SyntaxErrorPrototype
+ return self
+}
+
+func builtinSyntaxError(call FunctionCall) Value {
+ return toValue_object(call.runtime.newSyntaxError(call.Argument(0)))
+}
+
+func builtinNewSyntaxError(self *_object, _ Value, argumentList []Value) Value {
+ return toValue_object(self.runtime.newSyntaxError(valueOfArrayIndex(argumentList, 0)))
+}
+
+func builtinURIError(call FunctionCall) Value {
+ return toValue_object(call.runtime.newURIError(call.Argument(0)))
+}
+
+func builtinNewURIError(self *_object, _ Value, argumentList []Value) Value {
+ return toValue_object(self.runtime.newURIError(valueOfArrayIndex(argumentList, 0)))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/builtin_function.go b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_function.go
new file mode 100644
index 000000000..80442104d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_function.go
@@ -0,0 +1,117 @@
+package otto
+
+import (
+ "regexp"
+ "strings"
+ "unicode"
+
+ "github.com/robertkrimen/otto/parser"
+)
+
+// Function
+
+func builtinFunction(call FunctionCall) Value {
+ return toValue_object(builtinNewFunctionNative(call.runtime, call.ArgumentList))
+}
+
+func builtinNewFunction(self *_object, _ Value, argumentList []Value) Value {
+ return toValue_object(builtinNewFunctionNative(self.runtime, argumentList))
+}
+
+func argumentList2parameterList(argumentList []Value) []string {
+ parameterList := make([]string, 0, len(argumentList))
+ for _, value := range argumentList {
+ tmp := strings.FieldsFunc(toString(value), func(chr rune) bool {
+ return chr == ',' || unicode.IsSpace(chr)
+ })
+ parameterList = append(parameterList, tmp...)
+ }
+ return parameterList
+}
+
+var matchIdentifier = regexp.MustCompile(`^[$_\p{L}][$_\p{L}\d}]*$`)
+
+func builtinNewFunctionNative(runtime *_runtime, argumentList []Value) *_object {
+ var parameterList, body string
+ count := len(argumentList)
+ if count > 0 {
+ tmp := make([]string, 0, count-1)
+ for _, value := range argumentList[0 : count-1] {
+ tmp = append(tmp, toString(value))
+ }
+ parameterList = strings.Join(tmp, ",")
+ body = toString(argumentList[count-1])
+ }
+
+ function, err := parser.ParseFunction(parameterList, body)
+ runtime.parseThrow(err) // Will panic/throw appropriately
+ cmpl_function := parseExpression(function)
+
+ return runtime.newNodeFunction(cmpl_function.(*_nodeFunctionLiteral), runtime.GlobalEnvironment)
+}
+
+func builtinFunction_toString(call FunctionCall) Value {
+ object := call.thisClassObject("Function") // Should throw a TypeError unless Function
+ return toValue_string(object.value.(_functionObject).source(object))
+}
+
+func builtinFunction_apply(call FunctionCall) Value {
+ if !call.This.isCallable() {
+ panic(newTypeError())
+ }
+ this := call.Argument(0)
+ if this.IsUndefined() {
+ // FIXME Not ECMA5
+ this = toValue_object(call.runtime.GlobalObject)
+ }
+ argumentList := call.Argument(1)
+ switch argumentList._valueType {
+ case valueUndefined, valueNull:
+ return call.thisObject().Call(this, []Value{})
+ case valueObject:
+ default:
+ panic(newTypeError())
+ }
+
+ arrayObject := argumentList._object()
+ thisObject := call.thisObject()
+ length := int64(toUint32(arrayObject.get("length")))
+ valueArray := make([]Value, length)
+ for index := int64(0); index < length; index++ {
+ valueArray[index] = arrayObject.get(arrayIndexToString(index))
+ }
+ return thisObject.Call(this, valueArray)
+}
+
+func builtinFunction_call(call FunctionCall) Value {
+ if !call.This.isCallable() {
+ panic(newTypeError())
+ }
+ thisObject := call.thisObject()
+ this := call.Argument(0)
+ if this.IsUndefined() {
+ // FIXME Not ECMA5
+ this = toValue_object(call.runtime.GlobalObject)
+ }
+ if len(call.ArgumentList) >= 1 {
+ return thisObject.Call(this, call.ArgumentList[1:])
+ }
+ return thisObject.Call(this, []Value{})
+}
+
+func builtinFunction_bind(call FunctionCall) Value {
+ target := call.This
+ if !target.isCallable() {
+ panic(newTypeError())
+ }
+ targetObject := target._object()
+
+ this := call.Argument(0)
+ argumentList := call.slice(1)
+ if this.IsUndefined() {
+ // FIXME Do this elsewhere?
+ this = toValue_object(call.runtime.GlobalObject)
+ }
+
+ return toValue_object(call.runtime.newBoundFunction(targetObject, this, argumentList))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/builtin_json.go b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_json.go
new file mode 100644
index 000000000..2501c242e
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_json.go
@@ -0,0 +1,285 @@
+package otto
+
+import (
+ "bytes"
+ "encoding/json"
+ "math"
+ "strings"
+)
+
+type _builtinJSON_parseContext struct {
+ call FunctionCall
+ reviver Value
+}
+
+func builtinJSON_parse(call FunctionCall) Value {
+ ctx := _builtinJSON_parseContext{
+ call: call,
+ }
+ revive := false
+ if reviver := call.Argument(1); reviver.isCallable() {
+ revive = true
+ ctx.reviver = reviver
+ }
+
+ var root interface{}
+ err := json.Unmarshal([]byte(toString(call.Argument(0))), &root)
+ if err != nil {
+ panic(newSyntaxError(err.Error()))
+ }
+ value, exists := builtinJSON_parseWalk(ctx, root)
+ if !exists {
+ value = UndefinedValue()
+ }
+ if revive {
+ root := ctx.call.runtime.newObject()
+ root.put("", value, false)
+ return builtinJSON_reviveWalk(ctx, root, "")
+ }
+ return value
+}
+
+func builtinJSON_reviveWalk(ctx _builtinJSON_parseContext, holder *_object, name string) Value {
+ value := holder.get(name)
+ if object := value._object(); object != nil {
+ if isArray(object) {
+ length := int64(objectLength(object))
+ for index := int64(0); index < length; index += 1 {
+ name := arrayIndexToString(index)
+ value := builtinJSON_reviveWalk(ctx, object, name)
+ if value.IsUndefined() {
+ object.delete(name, false)
+ } else {
+ object.defineProperty(name, value, 0111, false)
+ }
+ }
+ } else {
+ object.enumerate(false, func(name string) bool {
+ value := builtinJSON_reviveWalk(ctx, object, name)
+ if value.IsUndefined() {
+ object.delete(name, false)
+ } else {
+ object.defineProperty(name, value, 0111, false)
+ }
+ return true
+ })
+ }
+ }
+ return ctx.reviver.call(toValue_object(holder), name, value)
+}
+
+func builtinJSON_parseWalk(ctx _builtinJSON_parseContext, rawValue interface{}) (Value, bool) {
+ switch value := rawValue.(type) {
+ case nil:
+ return NullValue(), true
+ case bool:
+ return toValue_bool(value), true
+ case string:
+ return toValue_string(value), true
+ case float64:
+ return toValue_float64(value), true
+ case []interface{}:
+ arrayValue := make([]Value, len(value))
+ for index, rawValue := range value {
+ if value, exists := builtinJSON_parseWalk(ctx, rawValue); exists {
+ arrayValue[index] = value
+ }
+ }
+ return toValue_object(ctx.call.runtime.newArrayOf(arrayValue)), true
+ case map[string]interface{}:
+ object := ctx.call.runtime.newObject()
+ for name, rawValue := range value {
+ if value, exists := builtinJSON_parseWalk(ctx, rawValue); exists {
+ object.put(name, value, false)
+ }
+ }
+ return toValue_object(object), true
+ }
+ return Value{}, false
+}
+
+type _builtinJSON_stringifyContext struct {
+ call FunctionCall
+ stack []*_object
+ propertyList []string
+ replacerFunction *Value
+ gap string
+}
+
+func builtinJSON_stringify(call FunctionCall) Value {
+ ctx := _builtinJSON_stringifyContext{
+ call: call,
+ stack: []*_object{nil},
+ }
+ replacer := call.Argument(1)._object()
+ if replacer != nil {
+ if isArray(replacer) {
+ length := objectLength(replacer)
+ seen := map[string]bool{}
+ propertyList := make([]string, length)
+ length = 0
+ for index, _ := range propertyList {
+ value := replacer.get(arrayIndexToString(int64(index)))
+ switch value._valueType {
+ case valueObject:
+ switch value.value.(*_object).class {
+ case "String":
+ case "Number":
+ default:
+ continue
+ }
+ case valueString:
+ case valueNumber:
+ default:
+ continue
+ }
+ name := toString(value)
+ if seen[name] {
+ continue
+ }
+ seen[name] = true
+ length += 1
+ propertyList[index] = name
+ }
+ ctx.propertyList = propertyList[0:length]
+ } else if replacer.class == "Function" {
+ value := toValue_object(replacer)
+ ctx.replacerFunction = &value
+ }
+ }
+ if spaceValue, exists := call.getArgument(2); exists {
+ if spaceValue._valueType == valueObject {
+ switch spaceValue.value.(*_object).class {
+ case "String":
+ spaceValue = toValue_string(toString(spaceValue))
+ case "Number":
+ spaceValue = toNumber(spaceValue)
+ }
+ }
+ switch spaceValue._valueType {
+ case valueString:
+ value := toString(spaceValue)
+ if len(value) > 10 {
+ ctx.gap = value[0:10]
+ } else {
+ ctx.gap = value
+ }
+ case valueNumber:
+ value := toInteger(spaceValue).value
+ if value > 10 {
+ value = 10
+ } else if value < 0 {
+ value = 0
+ }
+ ctx.gap = strings.Repeat(" ", int(value))
+ }
+ }
+ holder := call.runtime.newObject()
+ holder.put("", call.Argument(0), false)
+ value, exists := builtinJSON_stringifyWalk(ctx, "", holder)
+ if !exists {
+ return UndefinedValue()
+ }
+ valueJSON, err := json.Marshal(value)
+ if err != nil {
+ panic(newTypeError(err.Error()))
+ }
+ if ctx.gap != "" {
+ valueJSON1 := bytes.Buffer{}
+ json.Indent(&valueJSON1, valueJSON, "", ctx.gap)
+ valueJSON = valueJSON1.Bytes()
+ }
+ return toValue_string(string(valueJSON))
+}
+
+func builtinJSON_stringifyWalk(ctx _builtinJSON_stringifyContext, key string, holder *_object) (interface{}, bool) {
+ value := holder.get(key)
+
+ if value.IsObject() {
+ object := value._object()
+ if toJSON := object.get("toJSON"); toJSON.IsFunction() {
+ value = toJSON.call(value, key)
+ } else {
+ // If the object is a GoStruct or something that implements json.Marshaler
+ if object.objectClass.marshalJSON != nil {
+ marshaler := object.objectClass.marshalJSON(object)
+ if marshaler != nil {
+ return marshaler, true
+ }
+ }
+ }
+ }
+
+ if ctx.replacerFunction != nil {
+ value = (*ctx.replacerFunction).call(toValue_object(holder), key, value)
+ }
+
+ if value._valueType == valueObject {
+ switch value.value.(*_object).class {
+ case "Boolean":
+ value = value._object().value.(Value)
+ case "String":
+ value = toValue_string(toString(value))
+ case "Number":
+ value = toNumber(value)
+ }
+ }
+
+ switch value._valueType {
+ case valueBoolean:
+ return toBoolean(value), true
+ case valueString:
+ return toString(value), true
+ case valueNumber:
+ value := toFloat(value)
+ if math.IsNaN(value) || math.IsInf(value, 0) {
+ return nil, true
+ }
+ return value, true
+ case valueNull:
+ return nil, true
+ case valueObject:
+ holder := value._object()
+ if value := value._object(); nil != value {
+ for _, object := range ctx.stack {
+ if holder == object {
+ panic(newTypeError("Converting circular structure to JSON"))
+ }
+ }
+ ctx.stack = append(ctx.stack, value)
+ defer func() { ctx.stack = ctx.stack[:len(ctx.stack)-1] }()
+ }
+ if isArray(holder) {
+ length := holder.get("length").value.(uint32)
+ array := make([]interface{}, length)
+ for index, _ := range array {
+ name := arrayIndexToString(int64(index))
+ value, _ := builtinJSON_stringifyWalk(ctx, name, holder)
+ array[index] = value
+ }
+ return array, true
+ } else if holder.class != "Function" {
+ object := map[string]interface{}{}
+ if ctx.propertyList != nil {
+ for _, name := range ctx.propertyList {
+ value, exists := builtinJSON_stringifyWalk(ctx, name, holder)
+ if exists {
+ object[name] = value
+ }
+ }
+ } else {
+ // Go maps are without order, so this doesn't conform to the ECMA ordering
+ // standard, but oh well...
+ holder.enumerate(false, func(name string) bool {
+ value, exists := builtinJSON_stringifyWalk(ctx, name, holder)
+ if exists {
+ object[name] = value
+ }
+ return true
+ })
+ }
+ return object, true
+ }
+ }
+ return nil, false
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/builtin_math.go b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_math.go
new file mode 100644
index 000000000..37f7d8c85
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_math.go
@@ -0,0 +1,145 @@
+package otto
+
+import (
+ "math"
+ "math/rand"
+)
+
+// Math
+
+func builtinMath_abs(call FunctionCall) Value {
+ number := toFloat(call.Argument(0))
+ return toValue_float64(math.Abs(number))
+}
+
+func builtinMath_acos(call FunctionCall) Value {
+ number := toFloat(call.Argument(0))
+ return toValue_float64(math.Acos(number))
+}
+
+func builtinMath_asin(call FunctionCall) Value {
+ number := toFloat(call.Argument(0))
+ return toValue_float64(math.Asin(number))
+}
+
+func builtinMath_atan(call FunctionCall) Value {
+ number := toFloat(call.Argument(0))
+ return toValue_float64(math.Atan(number))
+}
+
+func builtinMath_atan2(call FunctionCall) Value {
+ y := toFloat(call.Argument(0))
+ if math.IsNaN(y) {
+ return NaNValue()
+ }
+ x := toFloat(call.Argument(1))
+ if math.IsNaN(x) {
+ return NaNValue()
+ }
+ return toValue_float64(math.Atan2(y, x))
+}
+
+func builtinMath_cos(call FunctionCall) Value {
+ number := toFloat(call.Argument(0))
+ return toValue_float64(math.Cos(number))
+}
+
+func builtinMath_ceil(call FunctionCall) Value {
+ number := toFloat(call.Argument(0))
+ return toValue_float64(math.Ceil(number))
+}
+
+func builtinMath_exp(call FunctionCall) Value {
+ number := toFloat(call.Argument(0))
+ return toValue_float64(math.Exp(number))
+}
+
+func builtinMath_floor(call FunctionCall) Value {
+ number := toFloat(call.Argument(0))
+ return toValue_float64(math.Floor(number))
+}
+
+func builtinMath_log(call FunctionCall) Value {
+ number := toFloat(call.Argument(0))
+ return toValue_float64(math.Log(number))
+}
+
+func builtinMath_max(call FunctionCall) Value {
+ switch len(call.ArgumentList) {
+ case 0:
+ return negativeInfinityValue()
+ case 1:
+ return toValue_float64(toFloat(call.ArgumentList[0]))
+ }
+ result := toFloat(call.ArgumentList[0])
+ if math.IsNaN(result) {
+ return NaNValue()
+ }
+ for _, value := range call.ArgumentList[1:] {
+ value := toFloat(value)
+ if math.IsNaN(value) {
+ return NaNValue()
+ }
+ result = math.Max(result, value)
+ }
+ return toValue_float64(result)
+}
+
+func builtinMath_min(call FunctionCall) Value {
+ switch len(call.ArgumentList) {
+ case 0:
+ return positiveInfinityValue()
+ case 1:
+ return toValue_float64(toFloat(call.ArgumentList[0]))
+ }
+ result := toFloat(call.ArgumentList[0])
+ if math.IsNaN(result) {
+ return NaNValue()
+ }
+ for _, value := range call.ArgumentList[1:] {
+ value := toFloat(value)
+ if math.IsNaN(value) {
+ return NaNValue()
+ }
+ result = math.Min(result, value)
+ }
+ return toValue_float64(result)
+}
+
+func builtinMath_pow(call FunctionCall) Value {
+ // TODO Make sure this works according to the specification (15.8.2.13)
+ x := toFloat(call.Argument(0))
+ y := toFloat(call.Argument(1))
+ if math.Abs(x) == 1 && math.IsInf(y, 0) {
+ return NaNValue()
+ }
+ return toValue_float64(math.Pow(x, y))
+}
+
+func builtinMath_random(call FunctionCall) Value {
+ return toValue_float64(rand.Float64())
+}
+
+func builtinMath_round(call FunctionCall) Value {
+ number := toFloat(call.Argument(0))
+ value := math.Floor(number + 0.5)
+ if value == 0 {
+ value = math.Copysign(0, number)
+ }
+ return toValue_float64(value)
+}
+
+func builtinMath_sin(call FunctionCall) Value {
+ number := toFloat(call.Argument(0))
+ return toValue_float64(math.Sin(number))
+}
+
+func builtinMath_sqrt(call FunctionCall) Value {
+ number := toFloat(call.Argument(0))
+ return toValue_float64(math.Sqrt(number))
+}
+
+func builtinMath_tan(call FunctionCall) Value {
+ number := toFloat(call.Argument(0))
+ return toValue_float64(math.Tan(number))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/builtin_number.go b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_number.go
new file mode 100644
index 000000000..3905f5bb4
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_number.go
@@ -0,0 +1,93 @@
+package otto
+
+import (
+ "math"
+ "strconv"
+)
+
+// Number
+
+func numberValueFromNumberArgumentList(argumentList []Value) Value {
+ if len(argumentList) > 0 {
+ return toNumber(argumentList[0])
+ }
+ return toValue_int(0)
+}
+
+func builtinNumber(call FunctionCall) Value {
+ return numberValueFromNumberArgumentList(call.ArgumentList)
+}
+
+func builtinNewNumber(self *_object, _ Value, argumentList []Value) Value {
+ return toValue_object(self.runtime.newNumber(numberValueFromNumberArgumentList(argumentList)))
+}
+
+func builtinNumber_toString(call FunctionCall) Value {
+ // Will throw a TypeError if ThisObject is not a Number
+ value := call.thisClassObject("Number").primitiveValue()
+ radix := 10
+ radixArgument := call.Argument(0)
+ if radixArgument.IsDefined() {
+ integer := toIntegerFloat(radixArgument)
+ if integer < 2 || integer > 36 {
+ panic(newRangeError("RangeError: toString() radix must be between 2 and 36"))
+ }
+ radix = int(integer)
+ }
+ if radix == 10 {
+ return toValue_string(toString(value))
+ }
+ return toValue_string(numberToStringRadix(value, radix))
+}
+
+func builtinNumber_valueOf(call FunctionCall) Value {
+ return call.thisClassObject("Number").primitiveValue()
+}
+
+func builtinNumber_toFixed(call FunctionCall) Value {
+ precision := toIntegerFloat(call.Argument(0))
+ if 20 < precision || 0 > precision {
+ panic(newRangeError("toFixed() precision must be between 0 and 20"))
+ }
+ if call.This.IsNaN() {
+ return toValue_string("NaN")
+ }
+ value := toFloat(call.This)
+ if math.Abs(value) >= 1e21 {
+ return toValue_string(floatToString(value, 64))
+ }
+ return toValue_string(strconv.FormatFloat(toFloat(call.This), 'f', int(precision), 64))
+}
+
+func builtinNumber_toExponential(call FunctionCall) Value {
+ if call.This.IsNaN() {
+ return toValue_string("NaN")
+ }
+ precision := float64(-1)
+ if value := call.Argument(0); value.IsDefined() {
+ precision = toIntegerFloat(value)
+ if 0 > precision {
+ panic(newRangeError("RangeError: toExponential() precision must be greater than 0"))
+ }
+ }
+ return toValue_string(strconv.FormatFloat(toFloat(call.This), 'e', int(precision), 64))
+}
+
+func builtinNumber_toPrecision(call FunctionCall) Value {
+ if call.This.IsNaN() {
+ return toValue_string("NaN")
+ }
+ value := call.Argument(0)
+ if value.IsUndefined() {
+ return toValue_string(toString(call.This))
+ }
+ precision := toIntegerFloat(value)
+ if 1 > precision {
+ panic(newRangeError("RangeError: toPrecision() precision must be greater than 1"))
+ }
+ return toValue_string(strconv.FormatFloat(toFloat(call.This), 'g', int(precision), 64))
+}
+
+func builtinNumber_toLocaleString(call FunctionCall) Value {
+ return builtinNumber_toString(call)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/builtin_object.go b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_object.go
new file mode 100644
index 000000000..2c3648856
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_object.go
@@ -0,0 +1,289 @@
+package otto
+
+import (
+ "fmt"
+)
+
+// Object
+
+func builtinObject(call FunctionCall) Value {
+ value := call.Argument(0)
+ switch value._valueType {
+ case valueUndefined, valueNull:
+ return toValue_object(call.runtime.newObject())
+ }
+
+ return toValue_object(call.runtime.toObject(value))
+}
+
+func builtinNewObject(self *_object, _ Value, argumentList []Value) Value {
+ value := valueOfArrayIndex(argumentList, 0)
+ switch value._valueType {
+ case valueNull, valueUndefined:
+ case valueNumber, valueString, valueBoolean:
+ return toValue_object(self.runtime.toObject(value))
+ case valueObject:
+ return value
+ default:
+ }
+ return toValue_object(self.runtime.newObject())
+}
+
+func builtinObject_valueOf(call FunctionCall) Value {
+ return toValue_object(call.thisObject())
+}
+
+func builtinObject_hasOwnProperty(call FunctionCall) Value {
+ propertyName := toString(call.Argument(0))
+ thisObject := call.thisObject()
+ return toValue_bool(thisObject.hasOwnProperty(propertyName))
+}
+
+func builtinObject_isPrototypeOf(call FunctionCall) Value {
+ value := call.Argument(0)
+ if !value.IsObject() {
+ return FalseValue()
+ }
+ prototype := call.toObject(value).prototype
+ thisObject := call.thisObject()
+ for prototype != nil {
+ if thisObject == prototype {
+ return TrueValue()
+ }
+ prototype = prototype.prototype
+ }
+ return FalseValue()
+}
+
+func builtinObject_propertyIsEnumerable(call FunctionCall) Value {
+ propertyName := toString(call.Argument(0))
+ thisObject := call.thisObject()
+ property := thisObject.getOwnProperty(propertyName)
+ if property != nil && property.enumerable() {
+ return TrueValue()
+ }
+ return FalseValue()
+}
+
+func builtinObject_toString(call FunctionCall) Value {
+ result := ""
+ if call.This.IsUndefined() {
+ result = "[object Undefined]"
+ } else if call.This.IsNull() {
+ result = "[object Null]"
+ } else {
+ result = fmt.Sprintf("[object %s]", call.thisObject().class)
+ }
+ return toValue_string(result)
+}
+
+func builtinObject_toLocaleString(call FunctionCall) Value {
+ toString := call.thisObject().get("toString")
+ if !toString.isCallable() {
+ panic(newTypeError())
+ }
+ return toString.call(call.This)
+}
+
+func builtinObject_getPrototypeOf(call FunctionCall) Value {
+ objectValue := call.Argument(0)
+ object := objectValue._object()
+ if object == nil {
+ panic(newTypeError())
+ }
+
+ if object.prototype == nil {
+ return NullValue()
+ }
+
+ return toValue_object(object.prototype)
+}
+
+func builtinObject_getOwnPropertyDescriptor(call FunctionCall) Value {
+ objectValue := call.Argument(0)
+ object := objectValue._object()
+ if object == nil {
+ panic(newTypeError())
+ }
+
+ name := toString(call.Argument(1))
+ descriptor := object.getOwnProperty(name)
+ if descriptor == nil {
+ return UndefinedValue()
+ }
+ return toValue_object(call.runtime.fromPropertyDescriptor(*descriptor))
+}
+
+func builtinObject_defineProperty(call FunctionCall) Value {
+ objectValue := call.Argument(0)
+ object := objectValue._object()
+ if object == nil {
+ panic(newTypeError())
+ }
+ name := toString(call.Argument(1))
+ descriptor := toPropertyDescriptor(call.Argument(2))
+ object.defineOwnProperty(name, descriptor, true)
+ return objectValue
+}
+
+func builtinObject_defineProperties(call FunctionCall) Value {
+ objectValue := call.Argument(0)
+ object := objectValue._object()
+ if object == nil {
+ panic(newTypeError())
+ }
+
+ properties := call.runtime.toObject(call.Argument(1))
+ properties.enumerate(false, func(name string) bool {
+ descriptor := toPropertyDescriptor(properties.get(name))
+ object.defineOwnProperty(name, descriptor, true)
+ return true
+ })
+
+ return objectValue
+}
+
+func builtinObject_create(call FunctionCall) Value {
+ prototypeValue := call.Argument(0)
+ if !prototypeValue.IsNull() && !prototypeValue.IsObject() {
+ panic(newTypeError())
+ }
+
+ object := call.runtime.newObject()
+ object.prototype = prototypeValue._object()
+
+ propertiesValue := call.Argument(1)
+ if propertiesValue.IsDefined() {
+ properties := call.runtime.toObject(propertiesValue)
+ properties.enumerate(false, func(name string) bool {
+ descriptor := toPropertyDescriptor(properties.get(name))
+ object.defineOwnProperty(name, descriptor, true)
+ return true
+ })
+ }
+
+ return toValue_object(object)
+}
+
+func builtinObject_isExtensible(call FunctionCall) Value {
+ object := call.Argument(0)
+ if object := object._object(); object != nil {
+ return toValue_bool(object.extensible)
+ }
+ panic(newTypeError())
+}
+
+func builtinObject_preventExtensions(call FunctionCall) Value {
+ object := call.Argument(0)
+ if object := object._object(); object != nil {
+ object.extensible = false
+ } else {
+ panic(newTypeError())
+ }
+ return object
+}
+
+func builtinObject_isSealed(call FunctionCall) Value {
+ object := call.Argument(0)
+ if object := object._object(); object != nil {
+ if object.extensible {
+ return toValue_bool(false)
+ }
+ result := true
+ object.enumerate(true, func(name string) bool {
+ property := object.getProperty(name)
+ if property.configurable() {
+ result = false
+ }
+ return true
+ })
+ return toValue_bool(result)
+ }
+ panic(newTypeError())
+}
+
+func builtinObject_seal(call FunctionCall) Value {
+ object := call.Argument(0)
+ if object := object._object(); object != nil {
+ object.enumerate(true, func(name string) bool {
+ if property := object.getOwnProperty(name); nil != property && property.configurable() {
+ property.configureOff()
+ object.defineOwnProperty(name, *property, true)
+ }
+ return true
+ })
+ object.extensible = false
+ } else {
+ panic(newTypeError())
+ }
+ return object
+}
+
+func builtinObject_isFrozen(call FunctionCall) Value {
+ object := call.Argument(0)
+ if object := object._object(); object != nil {
+ if object.extensible {
+ return toValue_bool(false)
+ }
+ result := true
+ object.enumerate(true, func(name string) bool {
+ property := object.getProperty(name)
+ if property.configurable() || property.writable() {
+ result = false
+ }
+ return true
+ })
+ return toValue_bool(result)
+ }
+ panic(newTypeError())
+}
+
+func builtinObject_freeze(call FunctionCall) Value {
+ object := call.Argument(0)
+ if object := object._object(); object != nil {
+ object.enumerate(true, func(name string) bool {
+ if property, update := object.getOwnProperty(name), false; nil != property {
+ if property.isDataDescriptor() && property.writable() {
+ property.writeOff()
+ update = true
+ }
+ if property.configurable() {
+ property.configureOff()
+ update = true
+ }
+ if update {
+ object.defineOwnProperty(name, *property, true)
+ }
+ }
+ return true
+ })
+ object.extensible = false
+ } else {
+ panic(newTypeError())
+ }
+ return object
+}
+
+func builtinObject_keys(call FunctionCall) Value {
+ if object, keys := call.Argument(0)._object(), []Value(nil); nil != object {
+ object.enumerate(false, func(name string) bool {
+ keys = append(keys, toValue_string(name))
+ return true
+ })
+ return toValue_object(call.runtime.newArrayOf(keys))
+ }
+ panic(newTypeError())
+}
+
+func builtinObject_getOwnPropertyNames(call FunctionCall) Value {
+ if object, propertyNames := call.Argument(0)._object(), []Value(nil); nil != object {
+ object.enumerate(true, func(name string) bool {
+ if object.hasOwnProperty(name) {
+ propertyNames = append(propertyNames, toValue_string(name))
+ }
+ return true
+ })
+ return toValue_object(call.runtime.newArrayOf(propertyNames))
+ }
+ panic(newTypeError())
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/builtin_regexp.go b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_regexp.go
new file mode 100644
index 000000000..29d009dc2
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_regexp.go
@@ -0,0 +1,65 @@
+package otto
+
+import (
+ "fmt"
+)
+
+// RegExp
+
+func builtinRegExp(call FunctionCall) Value {
+ pattern := call.Argument(0)
+ flags := call.Argument(1)
+ if object := pattern._object(); object != nil {
+ if object.class == "RegExp" && flags.IsUndefined() {
+ return pattern
+ }
+ }
+ return toValue_object(call.runtime.newRegExp(pattern, flags))
+}
+
+func builtinNewRegExp(self *_object, _ Value, argumentList []Value) Value {
+ return toValue_object(self.runtime.newRegExp(
+ valueOfArrayIndex(argumentList, 0),
+ valueOfArrayIndex(argumentList, 1),
+ ))
+}
+
+func builtinRegExp_toString(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ source := toString(thisObject.get("source"))
+ flags := []byte{}
+ if toBoolean(thisObject.get("global")) {
+ flags = append(flags, 'g')
+ }
+ if toBoolean(thisObject.get("ignoreCase")) {
+ flags = append(flags, 'i')
+ }
+ if toBoolean(thisObject.get("multiline")) {
+ flags = append(flags, 'm')
+ }
+ return toValue_string(fmt.Sprintf("/%s/%s", source, flags))
+}
+
+func builtinRegExp_exec(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ target := toString(call.Argument(0))
+ match, result := execRegExp(thisObject, target)
+ if !match {
+ return NullValue()
+ }
+ return toValue_object(execResultToArray(call.runtime, target, result))
+}
+
+func builtinRegExp_test(call FunctionCall) Value {
+ thisObject := call.thisObject()
+ target := toString(call.Argument(0))
+ match, _ := execRegExp(thisObject, target)
+ return toValue_bool(match)
+}
+
+func builtinRegExp_compile(call FunctionCall) Value {
+ // This (useless) function is deprecated, but is here to provide some
+ // semblance of compatibility.
+ // Caveat emptor: it may not be around for long.
+ return UndefinedValue()
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/builtin_string.go b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_string.go
new file mode 100644
index 000000000..e2c6a620c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_string.go
@@ -0,0 +1,504 @@
+package otto
+
+import (
+ "bytes"
+ "regexp"
+ "strconv"
+ "strings"
+ "unicode/utf8"
+)
+
+// String
+
+func stringValueFromStringArgumentList(argumentList []Value) Value {
+ if len(argumentList) > 0 {
+ return toValue_string(toString(argumentList[0]))
+ }
+ return toValue_string("")
+}
+
+func builtinString(call FunctionCall) Value {
+ return stringValueFromStringArgumentList(call.ArgumentList)
+}
+
+func builtinNewString(self *_object, _ Value, argumentList []Value) Value {
+ return toValue_object(self.runtime.newString(stringValueFromStringArgumentList(argumentList)))
+}
+
+func builtinString_toString(call FunctionCall) Value {
+ return call.thisClassObject("String").primitiveValue()
+}
+func builtinString_valueOf(call FunctionCall) Value {
+ return call.thisClassObject("String").primitiveValue()
+}
+
+func builtinString_fromCharCode(call FunctionCall) Value {
+ chrList := make([]uint16, len(call.ArgumentList))
+ for index, value := range call.ArgumentList {
+ chrList[index] = toUint16(value)
+ }
+ return toValue_string16(chrList)
+}
+
+func builtinString_charAt(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ idx := int(toInteger(call.Argument(0)).value)
+ chr := stringAt(call.This._object().stringValue(), idx)
+ if chr == utf8.RuneError {
+ return toValue_string("")
+ }
+ return toValue_string(string(chr))
+}
+
+func builtinString_charCodeAt(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ idx := int(toInteger(call.Argument(0)).value)
+ chr := stringAt(call.This._object().stringValue(), idx)
+ if chr == utf8.RuneError {
+ return NaNValue()
+ }
+ return toValue_uint16(uint16(chr))
+}
+
+func builtinString_concat(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ var value bytes.Buffer
+ value.WriteString(toString(call.This))
+ for _, item := range call.ArgumentList {
+ value.WriteString(toString(item))
+ }
+ return toValue_string(value.String())
+}
+
+func builtinString_indexOf(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ value := toString(call.This)
+ target := toString(call.Argument(0))
+ if 2 > len(call.ArgumentList) {
+ return toValue_int(strings.Index(value, target))
+ }
+ start := toIntegerFloat(call.Argument(1))
+ if 0 > start {
+ start = 0
+ } else if start >= float64(len(value)) {
+ if target == "" {
+ return toValue_int(len(value))
+ }
+ return toValue_int(-1)
+ }
+ index := strings.Index(value[int(start):], target)
+ if index >= 0 {
+ index += int(start)
+ }
+ return toValue_int(index)
+}
+
+func builtinString_lastIndexOf(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ value := toString(call.This)
+ target := toString(call.Argument(0))
+ if 2 > len(call.ArgumentList) || call.ArgumentList[1].IsUndefined() {
+ return toValue_int(strings.LastIndex(value, target))
+ }
+ length := len(value)
+ if length == 0 {
+ return toValue_int(strings.LastIndex(value, target))
+ }
+ start := toInteger(call.ArgumentList[1])
+ if !start.valid() {
+ // startNumber is infinity, so start is the end of string (start = length)
+ return toValue_int(strings.LastIndex(value, target))
+ }
+ if 0 > start.value {
+ start.value = 0
+ }
+ end := int(start.value) + len(target)
+ if end > length {
+ end = length
+ }
+ return toValue_int(strings.LastIndex(value[:end], target))
+}
+
+func builtinString_match(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ target := toString(call.This)
+ matcherValue := call.Argument(0)
+ matcher := matcherValue._object()
+ if !matcherValue.IsObject() || matcher.class != "RegExp" {
+ matcher = call.runtime.newRegExp(matcherValue, UndefinedValue())
+ }
+ global := toBoolean(matcher.get("global"))
+ if !global {
+ match, result := execRegExp(matcher, target)
+ if !match {
+ return NullValue()
+ }
+ return toValue_object(execResultToArray(call.runtime, target, result))
+ }
+
+ {
+ result := matcher.regExpValue().regularExpression.FindAllStringIndex(target, -1)
+ matchCount := len(result)
+ if result == nil {
+ matcher.put("lastIndex", toValue_int(0), true)
+ return UndefinedValue() // !match
+ }
+ matchCount = len(result)
+ valueArray := make([]Value, matchCount)
+ for index := 0; index < matchCount; index++ {
+ valueArray[index] = toValue_string(target[result[index][0]:result[index][1]])
+ }
+ matcher.put("lastIndex", toValue_int(result[matchCount-1][1]), true)
+ return toValue_object(call.runtime.newArrayOf(valueArray))
+ }
+}
+
+var builtinString_replace_Regexp = regexp.MustCompile("\\$(?:[\\$\\&\\'\\`1-9]|0[1-9]|[1-9][0-9])")
+
+func builtinString_findAndReplaceString(input []byte, lastIndex int, match []int, target []byte, replaceValue []byte) (output []byte) {
+ matchCount := len(match) / 2
+ output = input
+ if match[0] != lastIndex {
+ output = append(output, target[lastIndex:match[0]]...)
+ }
+ replacement := builtinString_replace_Regexp.ReplaceAllFunc(replaceValue, func(part []byte) []byte {
+ // TODO Check if match[0] or match[1] can be -1 in this scenario
+ switch part[1] {
+ case '$':
+ return []byte{'$'}
+ case '&':
+ return target[match[0]:match[1]]
+ case '`':
+ return target[:match[0]]
+ case '\'':
+ return target[match[1]:len(target)]
+ }
+ matchNumberParse, error := strconv.ParseInt(string(part[1:]), 10, 64)
+ matchNumber := int(matchNumberParse)
+ if error != nil || matchNumber >= matchCount {
+ return []byte{}
+ }
+ offset := 2 * matchNumber
+ if match[offset] != -1 {
+ return target[match[offset]:match[offset+1]]
+ }
+ return []byte{} // The empty string
+ })
+ output = append(output, replacement...)
+ return output
+}
+
+func builtinString_replace(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ target := []byte(toString(call.This))
+ searchValue := call.Argument(0)
+ searchObject := searchValue._object()
+
+ // TODO If a capture is -1?
+ var search *regexp.Regexp
+ global := false
+ find := 1
+ if searchValue.IsObject() && searchObject.class == "RegExp" {
+ regExp := searchObject.regExpValue()
+ search = regExp.regularExpression
+ if regExp.global {
+ find = -1
+ }
+ } else {
+ search = regexp.MustCompile(regexp.QuoteMeta(toString(searchValue)))
+ }
+
+ found := search.FindAllSubmatchIndex(target, find)
+ if found == nil {
+ return toValue_string(string(target)) // !match
+ }
+
+ {
+ lastIndex := 0
+ result := []byte{}
+
+ replaceValue := call.Argument(1)
+ if replaceValue.isCallable() {
+ target := string(target)
+ replace := replaceValue._object()
+ for _, match := range found {
+ if match[0] != lastIndex {
+ result = append(result, target[lastIndex:match[0]]...)
+ }
+ matchCount := len(match) / 2
+ argumentList := make([]Value, matchCount+2)
+ for index := 0; index < matchCount; index++ {
+ offset := 2 * index
+ if match[offset] != -1 {
+ argumentList[index] = toValue_string(target[match[offset]:match[offset+1]])
+ } else {
+ argumentList[index] = UndefinedValue()
+ }
+ }
+ argumentList[matchCount+0] = toValue_int(match[0])
+ argumentList[matchCount+1] = toValue_string(target)
+ replacement := toString(replace.Call(UndefinedValue(), argumentList))
+ result = append(result, []byte(replacement)...)
+ lastIndex = match[1]
+ }
+
+ } else {
+ replace := []byte(toString(replaceValue))
+ for _, match := range found {
+ result = builtinString_findAndReplaceString(result, lastIndex, match, target, replace)
+ lastIndex = match[1]
+ }
+ }
+
+ if lastIndex != len(target) {
+ result = append(result, target[lastIndex:]...)
+ }
+
+ if global && searchObject != nil {
+ searchObject.put("lastIndex", toValue_int(lastIndex), true)
+ }
+
+ return toValue_string(string(result))
+ }
+
+ return UndefinedValue()
+}
+
+func builtinString_search(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ target := toString(call.This)
+ searchValue := call.Argument(0)
+ search := searchValue._object()
+ if !searchValue.IsObject() || search.class != "RegExp" {
+ search = call.runtime.newRegExp(searchValue, UndefinedValue())
+ }
+ result := search.regExpValue().regularExpression.FindStringIndex(target)
+ if result == nil {
+ return toValue_int(-1)
+ }
+ return toValue_int(result[0])
+}
+
+func stringSplitMatch(target string, targetLength int64, index uint, search string, searchLength int64) (bool, uint) {
+ if int64(index)+searchLength > searchLength {
+ return false, 0
+ }
+ found := strings.Index(target[index:], search)
+ if 0 > found {
+ return false, 0
+ }
+ return true, uint(found)
+}
+
+func builtinString_split(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ target := toString(call.This)
+
+ separatorValue := call.Argument(0)
+ limitValue := call.Argument(1)
+ limit := -1
+ if limitValue.IsDefined() {
+ limit = int(toUint32(limitValue))
+ }
+
+ if limit == 0 {
+ return toValue_object(call.runtime.newArray(0))
+ }
+
+ if separatorValue.IsUndefined() {
+ return toValue_object(call.runtime.newArrayOf([]Value{toValue_string(target)}))
+ }
+
+ if separatorValue.isRegExp() {
+ targetLength := len(target)
+ search := separatorValue._object().regExpValue().regularExpression
+ valueArray := []Value{}
+ result := search.FindAllStringSubmatchIndex(target, -1)
+ lastIndex := 0
+ found := 0
+
+ for _, match := range result {
+ if match[0] == match[1] {
+ // FIXME Ugh, this is a hack
+ if match[0] == 0 || match[0] == targetLength {
+ continue
+ }
+ }
+
+ if lastIndex != match[0] {
+ valueArray = append(valueArray, toValue_string(target[lastIndex:match[0]]))
+ found++
+ } else if lastIndex == match[0] {
+ if lastIndex != -1 {
+ valueArray = append(valueArray, toValue_string(""))
+ found++
+ }
+ }
+
+ lastIndex = match[1]
+ if found == limit {
+ goto RETURN
+ }
+
+ captureCount := len(match) / 2
+ for index := 1; index < captureCount; index++ {
+ offset := index * 2
+ value := UndefinedValue()
+ if match[offset] != -1 {
+ value = toValue_string(target[match[offset]:match[offset+1]])
+ }
+ valueArray = append(valueArray, value)
+ found++
+ if found == limit {
+ goto RETURN
+ }
+ }
+ }
+
+ if found != limit {
+ if lastIndex != targetLength {
+ valueArray = append(valueArray, toValue_string(target[lastIndex:targetLength]))
+ } else {
+ valueArray = append(valueArray, toValue_string(""))
+ }
+ }
+
+ RETURN:
+ return toValue_object(call.runtime.newArrayOf(valueArray))
+
+ } else {
+ separator := toString(separatorValue)
+
+ splitLimit := limit
+ excess := false
+ if limit > 0 {
+ splitLimit = limit + 1
+ excess = true
+ }
+
+ split := strings.SplitN(target, separator, splitLimit)
+
+ if excess && len(split) > limit {
+ split = split[:limit]
+ }
+
+ valueArray := make([]Value, len(split))
+ for index, value := range split {
+ valueArray[index] = toValue_string(value)
+ }
+
+ return toValue_object(call.runtime.newArrayOf(valueArray))
+ }
+
+ return UndefinedValue()
+}
+
+func builtinString_slice(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ target := toString(call.This)
+
+ length := int64(len(target))
+ start, end := rangeStartEnd(call.ArgumentList, length, false)
+ if end-start <= 0 {
+ return toValue_string("")
+ }
+ return toValue_string(target[start:end])
+}
+
+func builtinString_substring(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ target := toString(call.This)
+
+ length := int64(len(target))
+ start, end := rangeStartEnd(call.ArgumentList, length, true)
+ if start > end {
+ start, end = end, start
+ }
+ return toValue_string(target[start:end])
+}
+
+func builtinString_substr(call FunctionCall) Value {
+ target := toString(call.This)
+
+ size := int64(len(target))
+ start, length := rangeStartLength(call.ArgumentList, size)
+
+ if start >= size {
+ return toValue_string("")
+ }
+
+ if length <= 0 {
+ return toValue_string("")
+ }
+
+ if start+length >= size {
+ // Cap length to be to the end of the string
+ // start = 3, length = 5, size = 4 [0, 1, 2, 3]
+ // 4 - 3 = 1
+ // target[3:4]
+ length = size - start
+ }
+
+ return toValue_string(target[start : start+length])
+}
+
+func builtinString_toLowerCase(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ return toValue_string(strings.ToLower(toString(call.This)))
+}
+
+func builtinString_toUpperCase(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ return toValue_string(strings.ToUpper(toString(call.This)))
+}
+
+// 7.2 Table 2 — Whitespace Characters & 7.3 Table 3 - Line Terminator Characters
+const builtinString_trim_whitespace = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"
+
+func builtinString_trim(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ return toValue(strings.Trim(toString(call.This),
+ builtinString_trim_whitespace))
+}
+
+// Mozilla extension, not ECMAScript 5
+func builtinString_trimLeft(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ return toValue(strings.TrimLeft(toString(call.This),
+ builtinString_trim_whitespace))
+}
+
+// Mozilla extension, not ECMAScript 5
+func builtinString_trimRight(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ return toValue(strings.TrimRight(toString(call.This),
+ builtinString_trim_whitespace))
+}
+
+func builtinString_localeCompare(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ this := toString(call.This)
+ that := toString(call.Argument(0))
+ if this < that {
+ return toValue_int(-1)
+ } else if this == that {
+ return toValue_int(0)
+ }
+ return toValue_int(1)
+}
+
+/*
+An alternate version of String.trim
+func builtinString_trim(call FunctionCall) Value {
+ checkObjectCoercible(call.This)
+ return toValue_string(strings.TrimFunc(toString(call.This), isWhiteSpaceOrLineTerminator))
+}
+*/
+
+func builtinString_toLocaleLowerCase(call FunctionCall) Value {
+ return builtinString_toLowerCase(call)
+}
+
+func builtinString_toLocaleUpperCase(call FunctionCall) Value {
+ return builtinString_toUpperCase(call)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/builtin_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_test.go
new file mode 100644
index 000000000..f5be00ab6
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/builtin_test.go
@@ -0,0 +1,136 @@
+package otto
+
+import (
+ "testing"
+)
+
+func TestString_substr(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [
+ "abc".substr(0,1), // "a"
+ "abc".substr(0,2), // "ab"
+ "abc".substr(0,3), // "abc"
+ "abc".substr(0,4), // "abc"
+ "abc".substr(0,9), // "abc"
+ ];
+ `, "a,ab,abc,abc,abc")
+
+ test(`
+ [
+ "abc".substr(1,1), // "b"
+ "abc".substr(1,2), // "bc"
+ "abc".substr(1,3), // "bc"
+ "abc".substr(1,4), // "bc"
+ "abc".substr(1,9), // "bc"
+ ];
+ `, "b,bc,bc,bc,bc")
+
+ test(`
+ [
+ "abc".substr(2,1), // "c"
+ "abc".substr(2,2), // "c"
+ "abc".substr(2,3), // "c"
+ "abc".substr(2,4), // "c"
+ "abc".substr(2,9), // "c"
+ ];
+ `, "c,c,c,c,c")
+
+ test(`
+ [
+ "abc".substr(3,1), // ""
+ "abc".substr(3,2), // ""
+ "abc".substr(3,3), // ""
+ "abc".substr(3,4), // ""
+ "abc".substr(3,9), // ""
+ ];
+ `, ",,,,")
+
+ test(`
+ [
+ "abc".substr(0), // "abc"
+ "abc".substr(1), // "bc"
+ "abc".substr(2), // "c"
+ "abc".substr(3), // ""
+ "abc".substr(9), // ""
+ ];
+ `, "abc,bc,c,,")
+
+ test(`
+ [
+ "abc".substr(-9), // "abc"
+ "abc".substr(-3), // "abc"
+ "abc".substr(-2), // "bc"
+ "abc".substr(-1), // "c"
+ ];
+ `, "abc,abc,bc,c")
+
+ test(`
+ [
+ "abc".substr(-9, 1), // "a"
+ "abc".substr(-3, 1), // "a"
+ "abc".substr(-2, 1), // "b"
+ "abc".substr(-1, 1), // "c"
+ "abc".substr(-1, 2), // "c"
+ ];
+ `, "a,a,b,c,c")
+
+ test(`"abcd".substr(3, 5)`, "d")
+ })
+}
+
+func Test_builtin_escape(t *testing.T) {
+ tt(t, func() {
+ is(builtin_escape("abc"), "abc")
+
+ is(builtin_escape("="), "%3D")
+
+ is(builtin_escape("abc=%+32"), "abc%3D%25+32")
+
+ is(builtin_escape("世界"), "%u4E16%u754C")
+ })
+}
+
+func Test_builtin_unescape(t *testing.T) {
+ tt(t, func() {
+ is(builtin_unescape("abc"), "abc")
+
+ is(builtin_unescape("=%3D"), "==")
+
+ is(builtin_unescape("abc%3D%25+32"), "abc=%+32")
+
+ is(builtin_unescape("%u4E16%u754C"), "世界")
+ })
+}
+
+func TestGlobal_escape(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [
+ escape("abc"), // "abc"
+ escape("="), // "%3D"
+ escape("abc=%+32"), // "abc%3D%25+32"
+ escape("\u4e16\u754c"), // "%u4E16%u754C"
+ ];
+ `, "abc,%3D,abc%3D%25+32,%u4E16%u754C")
+ })
+}
+
+func TestGlobal_unescape(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [
+ unescape("abc"), // "abc"
+ unescape("=%3D"), // "=="
+ unescape("abc%3D%25+32"), // "abc=%+32"
+ unescape("%u4E16%u754C"), // "世界"
+ ];
+ `, "abc,==,abc=%+32,世界")
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/clone.go b/Godeps/_workspace/src/github.com/obscuren/otto/clone.go
new file mode 100644
index 000000000..fbdde81c2
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/clone.go
@@ -0,0 +1,144 @@
+package otto
+
+import (
+ "fmt"
+)
+
+type _clone struct {
+ runtime *_runtime
+ stash struct {
+ object map[*_object]*_object
+ objectEnvironment map[*_objectEnvironment]*_objectEnvironment
+ declarativeEnvironment map[*_declarativeEnvironment]*_declarativeEnvironment
+ }
+}
+
+func (runtime *_runtime) clone() *_runtime {
+
+ self := &_runtime{}
+ clone := &_clone{
+ runtime: self,
+ }
+ clone.stash.object = make(map[*_object]*_object)
+ clone.stash.objectEnvironment = make(map[*_objectEnvironment]*_objectEnvironment)
+ clone.stash.declarativeEnvironment = make(map[*_declarativeEnvironment]*_declarativeEnvironment)
+
+ globalObject := clone.object(runtime.GlobalObject)
+ self.GlobalEnvironment = self.newObjectEnvironment(globalObject, nil)
+ self.GlobalObject = globalObject
+ self.Global = _global{
+ clone.object(runtime.Global.Object),
+ clone.object(runtime.Global.Function),
+ clone.object(runtime.Global.Array),
+ clone.object(runtime.Global.String),
+ clone.object(runtime.Global.Boolean),
+ clone.object(runtime.Global.Number),
+ clone.object(runtime.Global.Math),
+ clone.object(runtime.Global.Date),
+ clone.object(runtime.Global.RegExp),
+ clone.object(runtime.Global.Error),
+ clone.object(runtime.Global.EvalError),
+ clone.object(runtime.Global.TypeError),
+ clone.object(runtime.Global.RangeError),
+ clone.object(runtime.Global.ReferenceError),
+ clone.object(runtime.Global.SyntaxError),
+ clone.object(runtime.Global.URIError),
+ clone.object(runtime.Global.JSON),
+
+ clone.object(runtime.Global.ObjectPrototype),
+ clone.object(runtime.Global.FunctionPrototype),
+ clone.object(runtime.Global.ArrayPrototype),
+ clone.object(runtime.Global.StringPrototype),
+ clone.object(runtime.Global.BooleanPrototype),
+ clone.object(runtime.Global.NumberPrototype),
+ clone.object(runtime.Global.DatePrototype),
+ clone.object(runtime.Global.RegExpPrototype),
+ clone.object(runtime.Global.ErrorPrototype),
+ clone.object(runtime.Global.EvalErrorPrototype),
+ clone.object(runtime.Global.TypeErrorPrototype),
+ clone.object(runtime.Global.RangeErrorPrototype),
+ clone.object(runtime.Global.ReferenceErrorPrototype),
+ clone.object(runtime.Global.SyntaxErrorPrototype),
+ clone.object(runtime.Global.URIErrorPrototype),
+ }
+
+ self.EnterGlobalExecutionContext()
+
+ self.eval = self.GlobalObject.property["eval"].value.(Value).value.(*_object)
+ self.GlobalObject.prototype = self.Global.ObjectPrototype
+
+ return self
+}
+func (clone *_clone) object(self0 *_object) *_object {
+ if self1, exists := clone.stash.object[self0]; exists {
+ return self1
+ }
+ self1 := &_object{}
+ clone.stash.object[self0] = self1
+ return self0.objectClass.clone(self0, self1, clone)
+}
+
+func (clone *_clone) declarativeEnvironment(self0 *_declarativeEnvironment) (*_declarativeEnvironment, bool) {
+ if self1, exists := clone.stash.declarativeEnvironment[self0]; exists {
+ return self1, true
+ }
+ self1 := &_declarativeEnvironment{}
+ clone.stash.declarativeEnvironment[self0] = self1
+ return self1, false
+}
+
+func (clone *_clone) objectEnvironment(self0 *_objectEnvironment) (*_objectEnvironment, bool) {
+ if self1, exists := clone.stash.objectEnvironment[self0]; exists {
+ return self1, true
+ }
+ self1 := &_objectEnvironment{}
+ clone.stash.objectEnvironment[self0] = self1
+ return self1, false
+}
+
+func (clone *_clone) value(self0 Value) Value {
+ self1 := self0
+ switch value := self0.value.(type) {
+ case *_object:
+ self1.value = clone.object(value)
+ }
+ return self1
+}
+
+func (clone *_clone) valueArray(self0 []Value) []Value {
+ self1 := make([]Value, len(self0))
+ for index, value := range self0 {
+ self1[index] = clone.value(value)
+ }
+ return self1
+}
+
+func (clone *_clone) environment(self0 _environment) _environment {
+ if self0 == nil {
+ return nil
+ }
+ return self0.clone(clone)
+}
+
+func (clone *_clone) property(self0 _property) _property {
+ self1 := self0
+ if value, valid := self0.value.(Value); valid {
+ self1.value = clone.value(value)
+ } else {
+ panic(fmt.Errorf("self0.value.(Value) != true"))
+ }
+ return self1
+}
+
+func (clone *_clone) declarativeProperty(self0 _declarativeProperty) _declarativeProperty {
+ self1 := self0
+ self1.value = clone.value(self0.value)
+ return self1
+}
+
+func (clone *_clone) callFunction(self0 _callFunction) _callFunction {
+ if self0 == nil {
+ return nil
+ }
+ return self0.clone(clone)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_evaluate.go b/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_evaluate.go
new file mode 100644
index 000000000..a5b30f6c0
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_evaluate.go
@@ -0,0 +1,87 @@
+package otto
+
+import (
+ "strconv"
+)
+
+func (self *_runtime) cmpl_evaluate_nodeProgram(node *_nodeProgram) Value {
+ self.cmpl_functionDeclaration(node.functionList)
+ self.cmpl_variableDeclaration(node.varList)
+ return self.cmpl_evaluate_nodeStatementList(node.body)
+}
+
+func (self *_runtime) cmpl_call_nodeFunction(function *_object, environment *_functionEnvironment, node *_nodeFunctionLiteral, this Value, argumentList []Value) Value {
+
+ indexOfParameterName := make([]string, len(argumentList))
+ // function(abc, def, ghi)
+ // indexOfParameterName[0] = "abc"
+ // indexOfParameterName[1] = "def"
+ // indexOfParameterName[2] = "ghi"
+ // ...
+
+ argumentsFound := false
+ for index, name := range node.parameterList {
+ if name == "arguments" {
+ argumentsFound = true
+ }
+ value := UndefinedValue()
+ if index < len(argumentList) {
+ value = argumentList[index]
+ indexOfParameterName[index] = name
+ }
+ self.localSet(name, value)
+ }
+
+ if !argumentsFound {
+ arguments := self.newArgumentsObject(indexOfParameterName, environment, len(argumentList))
+ arguments.defineProperty("callee", toValue_object(function), 0101, false)
+ environment.arguments = arguments
+ self.localSet("arguments", toValue_object(arguments))
+ for index, _ := range argumentList {
+ if index < len(node.parameterList) {
+ continue
+ }
+ indexAsString := strconv.FormatInt(int64(index), 10)
+ arguments.defineProperty(indexAsString, argumentList[index], 0111, false)
+ }
+ }
+
+ self.cmpl_functionDeclaration(node.functionList)
+ self.cmpl_variableDeclaration(node.varList)
+
+ result := self.cmpl_evaluate_nodeStatement(node.body)
+ if result.isResult() {
+ return result
+ }
+
+ return UndefinedValue()
+}
+
+func (self *_runtime) cmpl_functionDeclaration(list []*_nodeFunctionLiteral) {
+ executionContext := self._executionContext(0)
+ eval := executionContext.eval
+ environment := executionContext.VariableEnvironment
+
+ for _, function := range list {
+ name := function.name
+ value := self.cmpl_evaluate_nodeExpression(function)
+ if !environment.HasBinding(name) {
+ environment.CreateMutableBinding(name, eval == true)
+ }
+ // TODO 10.5.5.e
+ environment.SetMutableBinding(name, value, false) // TODO strict
+ }
+}
+
+func (self *_runtime) cmpl_variableDeclaration(list []string) {
+ executionContext := self._executionContext(0)
+ eval := executionContext.eval
+ environment := executionContext.VariableEnvironment
+
+ for _, name := range list {
+ if !environment.HasBinding(name) {
+ environment.CreateMutableBinding(name, eval == true)
+ environment.SetMutableBinding(name, UndefinedValue(), false) // TODO strict
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_evaluate_expression.go b/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_evaluate_expression.go
new file mode 100644
index 000000000..657667b36
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_evaluate_expression.go
@@ -0,0 +1,391 @@
+package otto
+
+import (
+ "fmt"
+ "math"
+ "runtime"
+
+ "github.com/robertkrimen/otto/token"
+)
+
+func (self *_runtime) cmpl_evaluate_nodeExpression(node _nodeExpression) Value {
+ // Allow interpreter interruption
+ // If the Interrupt channel is nil, then
+ // we avoid runtime.Gosched() overhead (if any)
+ // FIXME: Test this
+ if self.Otto.Interrupt != nil {
+ runtime.Gosched()
+ select {
+ case value := <-self.Otto.Interrupt:
+ value()
+ default:
+ }
+ }
+
+ switch node := node.(type) {
+
+ case *_nodeArrayLiteral:
+ return self.cmpl_evaluate_nodeArrayLiteral(node)
+
+ case *_nodeAssignExpression:
+ return self.cmpl_evaluate_nodeAssignExpression(node)
+
+ case *_nodeBinaryExpression:
+ if node.comparison {
+ return self.cmpl_evaluate_nodeBinaryExpression_comparison(node)
+ } else {
+ return self.cmpl_evaluate_nodeBinaryExpression(node)
+ }
+
+ case *_nodeBracketExpression:
+ return self.cmpl_evaluate_nodeBracketExpression(node)
+
+ case *_nodeCallExpression:
+ return self.cmpl_evaluate_nodeCallExpression(node, nil)
+
+ case *_nodeConditionalExpression:
+ return self.cmpl_evaluate_nodeConditionalExpression(node)
+
+ case *_nodeDotExpression:
+ return self.cmpl_evaluate_nodeDotExpression(node)
+
+ case *_nodeFunctionLiteral:
+ var local = self.LexicalEnvironment()
+ if node.name != "" {
+ local = self.newDeclarativeEnvironment(local)
+ }
+
+ value := toValue_object(self.newNodeFunction(node, local))
+ if node.name != "" {
+ local.CreateMutableBinding(node.name, false)
+ local.SetMutableBinding(node.name, value, false)
+ }
+ return value
+
+ case *_nodeIdentifier:
+ name := node.name
+ // TODO Should be true or false (strictness) depending on context
+ // getIdentifierReference should not return nil, but we check anyway and panic
+ // so as not to propagate the nil into something else
+ reference := getIdentifierReference(self.LexicalEnvironment(), name, false)
+ if reference == nil {
+ // Should never get here!
+ panic(hereBeDragons("referenceError == nil: " + name))
+ }
+ return toValue(reference)
+
+ case *_nodeLiteral:
+ return node.value
+
+ case *_nodeNewExpression:
+ return self.cmpl_evaluate_nodeNewExpression(node)
+
+ case *_nodeObjectLiteral:
+ return self.cmpl_evaluate_nodeObjectLiteral(node)
+
+ case *_nodeRegExpLiteral:
+ return toValue_object(self._newRegExp(node.pattern, node.flags))
+
+ case *_nodeSequenceExpression:
+ return self.cmpl_evaluate_nodeSequenceExpression(node)
+
+ case *_nodeThisExpression:
+ return toValue_object(self._executionContext(0).this)
+
+ case *_nodeUnaryExpression:
+ return self.cmpl_evaluate_nodeUnaryExpression(node)
+
+ case *_nodeVariableExpression:
+ return self.cmpl_evaluate_nodeVariableExpression(node)
+ }
+
+ panic(fmt.Errorf("Here be dragons: evaluate_nodeExpression(%T)", node))
+}
+
+func (self *_runtime) cmpl_evaluate_nodeArrayLiteral(node *_nodeArrayLiteral) Value {
+
+ valueArray := []Value{}
+
+ for _, node := range node.value {
+ if node == nil {
+ valueArray = append(valueArray, Value{})
+ } else {
+ valueArray = append(valueArray, self.GetValue(self.cmpl_evaluate_nodeExpression(node)))
+ }
+ }
+
+ result := self.newArrayOf(valueArray)
+
+ return toValue_object(result)
+}
+
+func (self *_runtime) cmpl_evaluate_nodeAssignExpression(node *_nodeAssignExpression) Value {
+
+ left := self.cmpl_evaluate_nodeExpression(node.left)
+ right := self.cmpl_evaluate_nodeExpression(node.right)
+ rightValue := self.GetValue(right)
+
+ result := rightValue
+ if node.operator != token.ASSIGN {
+ result = self.calculateBinaryExpression(node.operator, left, rightValue)
+ }
+
+ self.PutValue(left.reference(), result)
+
+ return result
+}
+
+func (self *_runtime) cmpl_evaluate_nodeBinaryExpression(node *_nodeBinaryExpression) Value {
+
+ left := self.cmpl_evaluate_nodeExpression(node.left)
+ leftValue := self.GetValue(left)
+
+ switch node.operator {
+ // Logical
+ case token.LOGICAL_AND:
+ if !toBoolean(leftValue) {
+ return leftValue
+ }
+ right := self.cmpl_evaluate_nodeExpression(node.right)
+ return self.GetValue(right)
+ case token.LOGICAL_OR:
+ if toBoolean(leftValue) {
+ return leftValue
+ }
+ right := self.cmpl_evaluate_nodeExpression(node.right)
+ return self.GetValue(right)
+ }
+
+ return self.calculateBinaryExpression(node.operator, leftValue, self.cmpl_evaluate_nodeExpression(node.right))
+}
+
+func (self *_runtime) cmpl_evaluate_nodeBinaryExpression_comparison(node *_nodeBinaryExpression) Value {
+
+ left := self.GetValue(self.cmpl_evaluate_nodeExpression(node.left))
+ right := self.GetValue(self.cmpl_evaluate_nodeExpression(node.right))
+
+ return toValue_bool(self.calculateComparison(node.operator, left, right))
+}
+
+func (self *_runtime) cmpl_evaluate_nodeBracketExpression(node *_nodeBracketExpression) Value {
+ target := self.cmpl_evaluate_nodeExpression(node.left)
+ targetValue := self.GetValue(target)
+ member := self.cmpl_evaluate_nodeExpression(node.member)
+ memberValue := self.GetValue(member)
+
+ // TODO Pass in base value as-is, and defer toObject till later?
+ return toValue(newPropertyReference(self.toObject(targetValue), toString(memberValue), false))
+}
+
+func (self *_runtime) cmpl_evaluate_nodeCallExpression(node *_nodeCallExpression, withArgumentList []interface{}) Value {
+ callee := self.cmpl_evaluate_nodeExpression(node.callee)
+ calleeValue := self.GetValue(callee)
+ argumentList := []Value{}
+ if withArgumentList != nil {
+ argumentList = self.toValueArray(withArgumentList...)
+ } else {
+ for _, argumentNode := range node.argumentList {
+ argumentList = append(argumentList, self.GetValue(self.cmpl_evaluate_nodeExpression(argumentNode)))
+ }
+ }
+ this := UndefinedValue()
+ calleeReference := callee.reference()
+ evalHint := false
+ if calleeReference != nil {
+ if calleeReference.IsPropertyReference() {
+ calleeObject := calleeReference.GetBase().(*_object)
+ this = toValue_object(calleeObject)
+ } else {
+ // TODO ImplictThisValue
+ }
+ if calleeReference.GetName() == "eval" {
+ evalHint = true // Possible direct eval
+ }
+ }
+ if !calleeValue.IsFunction() {
+ panic(newTypeError("%v is not a function", calleeValue))
+ }
+ return self.Call(calleeValue._object(), this, argumentList, evalHint)
+}
+
+func (self *_runtime) cmpl_evaluate_nodeConditionalExpression(node *_nodeConditionalExpression) Value {
+ test := self.cmpl_evaluate_nodeExpression(node.test)
+ testValue := self.GetValue(test)
+ if toBoolean(testValue) {
+ return self.cmpl_evaluate_nodeExpression(node.consequent)
+ }
+ return self.cmpl_evaluate_nodeExpression(node.alternate)
+}
+
+func (self *_runtime) cmpl_evaluate_nodeDotExpression(node *_nodeDotExpression) Value {
+ target := self.cmpl_evaluate_nodeExpression(node.left)
+ targetValue := self.GetValue(target)
+ // TODO Pass in base value as-is, and defer toObject till later?
+ object, err := self.objectCoerce(targetValue)
+ if err != nil {
+ panic(newTypeError(fmt.Sprintf("Cannot access member '%s' of %s", node.identifier, err.Error())))
+ }
+ return toValue(newPropertyReference(object, node.identifier, false))
+}
+
+func (self *_runtime) cmpl_evaluate_nodeNewExpression(node *_nodeNewExpression) Value {
+ callee := self.cmpl_evaluate_nodeExpression(node.callee)
+ calleeValue := self.GetValue(callee)
+ argumentList := []Value{}
+ for _, argumentNode := range node.argumentList {
+ argumentList = append(argumentList, self.GetValue(self.cmpl_evaluate_nodeExpression(argumentNode)))
+ }
+ this := UndefinedValue()
+ if !calleeValue.IsFunction() {
+ panic(newTypeError("%v is not a function", calleeValue))
+ }
+ return calleeValue._object().Construct(this, argumentList)
+}
+
+func (self *_runtime) cmpl_evaluate_nodeObjectLiteral(node *_nodeObjectLiteral) Value {
+
+ result := self.newObject()
+
+ for _, property := range node.value {
+ switch property.kind {
+ case "value":
+ result.defineProperty(property.key, self.GetValue(self.cmpl_evaluate_nodeExpression(property.value)), 0111, false)
+ case "get":
+ getter := self.newNodeFunction(property.value.(*_nodeFunctionLiteral), self.LexicalEnvironment())
+ descriptor := _property{}
+ descriptor.mode = 0211
+ descriptor.value = _propertyGetSet{getter, nil}
+ result.defineOwnProperty(property.key, descriptor, false)
+ case "set":
+ setter := self.newNodeFunction(property.value.(*_nodeFunctionLiteral), self.LexicalEnvironment())
+ descriptor := _property{}
+ descriptor.mode = 0211
+ descriptor.value = _propertyGetSet{nil, setter}
+ result.defineOwnProperty(property.key, descriptor, false)
+ default:
+ panic(fmt.Errorf("Here be dragons: evaluate_nodeObjectLiteral: invalid property.Kind: %v", property.kind))
+ }
+ }
+
+ return toValue_object(result)
+}
+
+func (self *_runtime) cmpl_evaluate_nodeSequenceExpression(node *_nodeSequenceExpression) Value {
+ var result Value
+ for _, node := range node.sequence {
+ result = self.cmpl_evaluate_nodeExpression(node)
+ result = self.GetValue(result)
+ }
+ return result
+}
+
+func (self *_runtime) cmpl_evaluate_nodeUnaryExpression(node *_nodeUnaryExpression) Value {
+
+ target := self.cmpl_evaluate_nodeExpression(node.operand)
+ switch node.operator {
+ case token.TYPEOF, token.DELETE:
+ if target._valueType == valueReference && target.reference().IsUnresolvable() {
+ if node.operator == token.TYPEOF {
+ return toValue_string("undefined")
+ }
+ return TrueValue()
+ }
+ }
+
+ switch node.operator {
+ case token.NOT:
+ targetValue := self.GetValue(target)
+ if targetValue.toBoolean() {
+ return FalseValue()
+ }
+ return TrueValue()
+ case token.BITWISE_NOT:
+ targetValue := self.GetValue(target)
+ integerValue := toInt32(targetValue)
+ return toValue_int32(^integerValue)
+ case token.PLUS:
+ targetValue := self.GetValue(target)
+ return toValue_float64(targetValue.toFloat())
+ case token.MINUS:
+ targetValue := self.GetValue(target)
+ value := targetValue.toFloat()
+ // TODO Test this
+ sign := float64(-1)
+ if math.Signbit(value) {
+ sign = 1
+ }
+ return toValue_float64(math.Copysign(value, sign))
+ case token.INCREMENT:
+ targetValue := self.GetValue(target)
+ if node.postfix {
+ // Postfix++
+ oldValue := targetValue.toFloat()
+ newValue := toValue_float64(+1 + oldValue)
+ self.PutValue(target.reference(), newValue)
+ return toValue_float64(oldValue)
+ } else {
+ // ++Prefix
+ newValue := toValue_float64(+1 + targetValue.toFloat())
+ self.PutValue(target.reference(), newValue)
+ return newValue
+ }
+ case token.DECREMENT:
+ targetValue := self.GetValue(target)
+ if node.postfix {
+ // Postfix--
+ oldValue := targetValue.toFloat()
+ newValue := toValue_float64(-1 + oldValue)
+ self.PutValue(target.reference(), newValue)
+ return toValue_float64(oldValue)
+ } else {
+ // --Prefix
+ newValue := toValue_float64(-1 + targetValue.toFloat())
+ self.PutValue(target.reference(), newValue)
+ return newValue
+ }
+ case token.VOID:
+ self.GetValue(target) // FIXME Side effect?
+ return UndefinedValue()
+ case token.DELETE:
+ reference := target.reference()
+ if reference == nil {
+ return TrueValue()
+ }
+ return toValue_bool(target.reference().Delete())
+ case token.TYPEOF:
+ targetValue := self.GetValue(target)
+ switch targetValue._valueType {
+ case valueUndefined:
+ return toValue_string("undefined")
+ case valueNull:
+ return toValue_string("object")
+ case valueBoolean:
+ return toValue_string("boolean")
+ case valueNumber:
+ return toValue_string("number")
+ case valueString:
+ return toValue_string("string")
+ case valueObject:
+ if targetValue._object().functionValue().call != nil {
+ return toValue_string("function")
+ }
+ return toValue_string("object")
+ default:
+ // FIXME ?
+ }
+ }
+
+ panic(hereBeDragons())
+}
+
+func (self *_runtime) cmpl_evaluate_nodeVariableExpression(node *_nodeVariableExpression) Value {
+ if node.initializer != nil {
+ // FIXME If reference is nil
+ left := getIdentifierReference(self.LexicalEnvironment(), node.name, false)
+ right := self.cmpl_evaluate_nodeExpression(node.initializer)
+ rightValue := self.GetValue(right)
+
+ self.PutValue(left, rightValue)
+ }
+ return toValue_string(node.name)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_evaluate_statement.go b/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_evaluate_statement.go
new file mode 100644
index 000000000..6add2baea
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_evaluate_statement.go
@@ -0,0 +1,410 @@
+package otto
+
+import (
+ "fmt"
+ "runtime"
+
+ "github.com/robertkrimen/otto/token"
+)
+
+func (self *_runtime) cmpl_evaluate_nodeStatement(node _nodeStatement) Value {
+ // Allow interpreter interruption
+ // If the Interrupt channel is nil, then
+ // we avoid runtime.Gosched() overhead (if any)
+ // FIXME: Test this
+ if self.Otto.Interrupt != nil {
+ runtime.Gosched()
+ select {
+ case value := <-self.Otto.Interrupt:
+ value()
+ default:
+ }
+ }
+
+ switch node := node.(type) {
+
+ case *_nodeBlockStatement:
+ // FIXME If result is break, then return the empty value?
+ return self.cmpl_evaluate_nodeStatementList(node.list)
+
+ case *_nodeBranchStatement:
+ target := node.label
+ switch node.branch { // FIXME Maybe node.kind? node.operator?
+ case token.BREAK:
+ return toValue(newBreakResult(target))
+ case token.CONTINUE:
+ return toValue(newContinueResult(target))
+ }
+
+ case *_nodeDebuggerStatement:
+ return Value{} // Nothing happens.
+
+ case *_nodeDoWhileStatement:
+ return self.cmpl_evaluate_nodeDoWhileStatement(node)
+
+ case *_nodeEmptyStatement:
+ return Value{}
+
+ case *_nodeExpressionStatement:
+ return self.cmpl_evaluate_nodeExpression(node.expression)
+
+ case *_nodeForInStatement:
+ return self.cmpl_evaluate_nodeForInStatement(node)
+
+ case *_nodeForStatement:
+ return self.cmpl_evaluate_nodeForStatement(node)
+
+ case *_nodeIfStatement:
+ return self.cmpl_evaluate_nodeIfStatement(node)
+
+ case *_nodeLabelledStatement:
+ self.labels = append(self.labels, node.label)
+ defer func() {
+ if len(self.labels) > 0 {
+ self.labels = self.labels[:len(self.labels)-1] // Pop the label
+ } else {
+ self.labels = nil
+ }
+ }()
+ return self.cmpl_evaluate_nodeStatement(node.statement)
+
+ case *_nodeReturnStatement:
+ if node.argument != nil {
+ return toValue(newReturnResult(self.GetValue(self.cmpl_evaluate_nodeExpression(node.argument))))
+ }
+ return toValue(newReturnResult(UndefinedValue()))
+
+ case *_nodeSwitchStatement:
+ return self.cmpl_evaluate_nodeSwitchStatement(node)
+
+ case *_nodeThrowStatement:
+ value := self.GetValue(self.cmpl_evaluate_nodeExpression(node.argument))
+ panic(newException(value))
+
+ case *_nodeTryStatement:
+ return self.cmpl_evaluate_nodeTryStatement(node)
+
+ case *_nodeVariableStatement:
+ // Variables are already defined, this is initialization only
+ for _, variable := range node.list {
+ self.cmpl_evaluate_nodeVariableExpression(variable.(*_nodeVariableExpression))
+ }
+ return Value{}
+
+ case *_nodeWhileStatement:
+ return self.cmpl_evaluate_nodeWhileStatement(node)
+
+ case *_nodeWithStatement:
+ return self.cmpl_evaluate_nodeWithStatement(node)
+
+ }
+
+ panic(fmt.Errorf("Here be dragons: evaluate_nodeStatement(%T)", node))
+}
+
+func (self *_runtime) cmpl_evaluate_nodeStatementList(list []_nodeStatement) Value {
+ var result Value
+ for _, node := range list {
+ value := self.cmpl_evaluate_nodeStatement(node)
+ switch value._valueType {
+ case valueResult:
+ return value
+ case valueEmpty:
+ default:
+ // We have GetValue here to (for example) trigger a
+ // ReferenceError (of the not defined variety)
+ // Not sure if this is the best way to error out early
+ // for such errors or if there is a better way
+ // TODO Do we still need this?
+ result = self.GetValue(value)
+ }
+ }
+ return result
+}
+
+func (self *_runtime) cmpl_evaluate_nodeDoWhileStatement(node *_nodeDoWhileStatement) Value {
+
+ labels := append(self.labels, "")
+ self.labels = nil
+
+ test := node.test
+
+ result := Value{}
+resultBreak:
+ for {
+ for _, node := range node.body {
+ value := self.cmpl_evaluate_nodeStatement(node)
+ switch value._valueType {
+ case valueResult:
+ switch value.evaluateBreakContinue(labels) {
+ case resultReturn:
+ return value
+ case resultBreak:
+ break resultBreak
+ case resultContinue:
+ goto resultContinue
+ }
+ case valueEmpty:
+ default:
+ result = value
+ }
+ }
+ resultContinue:
+ if !self.GetValue(self.cmpl_evaluate_nodeExpression(test)).isTrue() {
+ // Stahp: do ... while (false)
+ break
+ }
+ }
+ return result
+}
+
+func (self *_runtime) cmpl_evaluate_nodeForInStatement(node *_nodeForInStatement) Value {
+
+ labels := append(self.labels, "")
+ self.labels = nil
+
+ source := self.cmpl_evaluate_nodeExpression(node.source)
+ sourceValue := self.GetValue(source)
+
+ switch sourceValue._valueType {
+ case valueUndefined, valueNull:
+ return emptyValue()
+ }
+
+ sourceObject := self.toObject(sourceValue)
+
+ into := node.into
+ body := node.body
+
+ result := Value{}
+ object := sourceObject
+ for object != nil {
+ enumerateValue := Value{}
+ object.enumerate(false, func(name string) bool {
+ into := self.cmpl_evaluate_nodeExpression(into)
+ // In the case of: for (var abc in def) ...
+ if into.reference() == nil {
+ identifier := toString(into)
+ // TODO Should be true or false (strictness) depending on context
+ into = toValue(getIdentifierReference(self.LexicalEnvironment(), identifier, false))
+ }
+ self.PutValue(into.reference(), toValue_string(name))
+ for _, node := range body {
+ value := self.cmpl_evaluate_nodeStatement(node)
+ switch value._valueType {
+ case valueResult:
+ switch value.evaluateBreakContinue(labels) {
+ case resultReturn:
+ enumerateValue = value
+ return false
+ case resultBreak:
+ object = nil
+ return false
+ case resultContinue:
+ return true
+ }
+ case valueEmpty:
+ default:
+ enumerateValue = value
+ }
+ }
+ return true
+ })
+ if object == nil {
+ break
+ }
+ object = object.prototype
+ if !enumerateValue.isEmpty() {
+ result = enumerateValue
+ }
+ }
+ return result
+}
+
+func (self *_runtime) cmpl_evaluate_nodeForStatement(node *_nodeForStatement) Value {
+
+ labels := append(self.labels, "")
+ self.labels = nil
+
+ initializer := node.initializer
+ test := node.test
+ update := node.update
+ body := node.body
+
+ if initializer != nil {
+ initialResult := self.cmpl_evaluate_nodeExpression(initializer)
+ self.GetValue(initialResult) // Side-effect trigger
+ }
+
+ result := Value{}
+resultBreak:
+ for {
+ if test != nil {
+ testResult := self.cmpl_evaluate_nodeExpression(test)
+ testResultValue := self.GetValue(testResult)
+ if toBoolean(testResultValue) == false {
+ break
+ }
+ }
+ for _, node := range body {
+ value := self.cmpl_evaluate_nodeStatement(node)
+ switch value._valueType {
+ case valueResult:
+ switch value.evaluateBreakContinue(labels) {
+ case resultReturn:
+ return value
+ case resultBreak:
+ break resultBreak
+ case resultContinue:
+ goto resultContinue
+ }
+ case valueEmpty:
+ default:
+ result = value
+ }
+ }
+ resultContinue:
+ if update != nil {
+ updateResult := self.cmpl_evaluate_nodeExpression(update)
+ self.GetValue(updateResult) // Side-effect trigger
+ }
+ }
+ return result
+}
+
+func (self *_runtime) cmpl_evaluate_nodeIfStatement(node *_nodeIfStatement) Value {
+ test := self.cmpl_evaluate_nodeExpression(node.test)
+ testValue := self.GetValue(test)
+ if toBoolean(testValue) {
+ return self.cmpl_evaluate_nodeStatement(node.consequent)
+ } else if node.alternate != nil {
+ return self.cmpl_evaluate_nodeStatement(node.alternate)
+ }
+
+ return Value{}
+}
+
+func (self *_runtime) cmpl_evaluate_nodeSwitchStatement(node *_nodeSwitchStatement) Value {
+
+ labels := append(self.labels, "")
+ self.labels = nil
+
+ discriminantResult := self.cmpl_evaluate_nodeExpression(node.discriminant)
+ target := node.default_
+
+ for index, clause := range node.body {
+ test := clause.test
+ if test != nil {
+ if self.calculateComparison(token.STRICT_EQUAL, discriminantResult, self.cmpl_evaluate_nodeExpression(test)) {
+ target = index
+ break
+ }
+ }
+ }
+
+ result := Value{}
+ if target != -1 {
+ for _, clause := range node.body[target:] {
+ for _, statement := range clause.consequent {
+ value := self.cmpl_evaluate_nodeStatement(statement)
+ switch value._valueType {
+ case valueResult:
+ switch value.evaluateBreak(labels) {
+ case resultReturn:
+ return value
+ case resultBreak:
+ return Value{}
+ }
+ case valueEmpty:
+ default:
+ result = value
+ }
+ }
+ }
+ }
+
+ return result
+}
+
+func (self *_runtime) cmpl_evaluate_nodeTryStatement(node *_nodeTryStatement) Value {
+ tryCatchValue, exception := self.tryCatchEvaluate(func() Value {
+ return self.cmpl_evaluate_nodeStatement(node.body)
+ })
+
+ if exception && node.catch != nil {
+
+ lexicalEnvironment := self._executionContext(0).newDeclarativeEnvironment(self)
+ defer func() {
+ self._executionContext(0).LexicalEnvironment = lexicalEnvironment
+ }()
+ // TODO If necessary, convert TypeError<runtime> => TypeError
+ // That, is, such errors can be thrown despite not being JavaScript "native"
+ self.localSet(node.catch.parameter, tryCatchValue)
+
+ // FIXME node.CatchParameter
+ // FIXME node.Catch
+ tryCatchValue, exception = self.tryCatchEvaluate(func() Value {
+ return self.cmpl_evaluate_nodeStatement(node.catch.body)
+ })
+ }
+
+ if node.finally != nil {
+ finallyValue := self.cmpl_evaluate_nodeStatement(node.finally)
+ if finallyValue.isResult() {
+ return finallyValue
+ }
+ }
+
+ if exception {
+ panic(newException(tryCatchValue))
+ }
+
+ return tryCatchValue
+}
+
+func (self *_runtime) cmpl_evaluate_nodeWhileStatement(node *_nodeWhileStatement) Value {
+
+ test := node.test
+ body := node.body
+ labels := append(self.labels, "")
+ self.labels = nil
+
+ result := Value{}
+resultBreakContinue:
+ for {
+ if !self.GetValue(self.cmpl_evaluate_nodeExpression(test)).isTrue() {
+ // Stahp: while (false) ...
+ break
+ }
+ for _, node := range body {
+ value := self.cmpl_evaluate_nodeStatement(node)
+ switch value._valueType {
+ case valueResult:
+ switch value.evaluateBreakContinue(labels) {
+ case resultReturn:
+ return value
+ case resultBreak:
+ break resultBreakContinue
+ case resultContinue:
+ continue resultBreakContinue
+ }
+ case valueEmpty:
+ default:
+ result = value
+ }
+ }
+ }
+ return result
+}
+
+func (self *_runtime) cmpl_evaluate_nodeWithStatement(node *_nodeWithStatement) Value {
+ object := self.cmpl_evaluate_nodeExpression(node.object)
+ objectValue := self.GetValue(object)
+ previousLexicalEnvironment, lexicalEnvironment := self._executionContext(0).newLexicalEnvironment(self.toObject(objectValue))
+ lexicalEnvironment.ProvideThis = true
+ defer func() {
+ self._executionContext(0).LexicalEnvironment = previousLexicalEnvironment
+ }()
+
+ return self.cmpl_evaluate_nodeStatement(node.body)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_function.go b/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_function.go
new file mode 100644
index 000000000..0c8a9df14
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_function.go
@@ -0,0 +1,46 @@
+package otto
+
+// _cmpl_nodeCallFunction
+type _cmpl_nodeCallFunction struct {
+ node *_nodeFunctionLiteral
+ scopeEnvironment _environment // Can be either Lexical or Variable
+}
+
+func new_nodeCallFunction(node *_nodeFunctionLiteral, scopeEnvironment _environment) *_cmpl_nodeCallFunction {
+ self := &_cmpl_nodeCallFunction{
+ node: node,
+ }
+ self.scopeEnvironment = scopeEnvironment
+ return self
+}
+
+func (self _cmpl_nodeCallFunction) Dispatch(function *_object, environment *_functionEnvironment, runtime *_runtime, this Value, argumentList []Value, _ bool) Value {
+ return runtime.cmpl_call_nodeFunction(function, environment, self.node, this, argumentList)
+}
+
+func (self _cmpl_nodeCallFunction) ScopeEnvironment() _environment {
+ return self.scopeEnvironment
+}
+
+func (self _cmpl_nodeCallFunction) Source(object *_object) string {
+ return self.node.source
+}
+
+func (self0 _cmpl_nodeCallFunction) clone(clone *_clone) _callFunction {
+ return _cmpl_nodeCallFunction{
+ node: self0.node,
+ scopeEnvironment: clone.environment(self0.scopeEnvironment),
+ }
+}
+
+// ---
+
+func (runtime *_runtime) newNodeFunctionObject(node *_nodeFunctionLiteral, scopeEnvironment _environment) *_object {
+ self := runtime.newClassObject("Function")
+ self.value = _functionObject{
+ call: new_nodeCallFunction(node, scopeEnvironment),
+ construct: defaultConstructFunction,
+ }
+ self.defineProperty("length", toValue_int(len(node.parameterList)), 0000, false)
+ return self
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_parse.go b/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_parse.go
new file mode 100644
index 000000000..7ce1af57d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_parse.go
@@ -0,0 +1,630 @@
+package otto
+
+import (
+ "fmt"
+ "regexp"
+
+ "github.com/robertkrimen/otto/ast"
+ "github.com/robertkrimen/otto/token"
+)
+
+var trueLiteral = &_nodeLiteral{value: toValue_bool(true)}
+var falseLiteral = &_nodeLiteral{value: toValue_bool(false)}
+var nullLiteral = &_nodeLiteral{value: NullValue()}
+var emptyStatement = &_nodeEmptyStatement{}
+
+func parseExpression(x ast.Expression) _nodeExpression {
+ if x == nil {
+ return nil
+ }
+
+ switch x := x.(type) {
+
+ case *ast.ArrayLiteral:
+ y := &_nodeArrayLiteral{
+ value: make([]_nodeExpression, len(x.Value)),
+ }
+ for i, value := range x.Value {
+ y.value[i] = parseExpression(value)
+ }
+ return y
+
+ case *ast.AssignExpression:
+ return &_nodeAssignExpression{
+ operator: x.Operator,
+ left: parseExpression(x.Left),
+ right: parseExpression(x.Right),
+ }
+
+ case *ast.BinaryExpression:
+ return &_nodeBinaryExpression{
+ operator: x.Operator,
+ left: parseExpression(x.Left),
+ right: parseExpression(x.Right),
+ comparison: x.Comparison,
+ }
+
+ case *ast.BooleanLiteral:
+ if x.Value {
+ return trueLiteral
+ }
+ return falseLiteral
+
+ case *ast.BracketExpression:
+ return &_nodeBracketExpression{
+ left: parseExpression(x.Left),
+ member: parseExpression(x.Member),
+ }
+
+ case *ast.CallExpression:
+ y := &_nodeCallExpression{
+ callee: parseExpression(x.Callee),
+ argumentList: make([]_nodeExpression, len(x.ArgumentList)),
+ }
+ for i, value := range x.ArgumentList {
+ y.argumentList[i] = parseExpression(value)
+ }
+ return y
+
+ case *ast.ConditionalExpression:
+ return &_nodeConditionalExpression{
+ test: parseExpression(x.Test),
+ consequent: parseExpression(x.Consequent),
+ alternate: parseExpression(x.Alternate),
+ }
+
+ case *ast.DotExpression:
+ return &_nodeDotExpression{
+ left: parseExpression(x.Left),
+ identifier: x.Identifier.Name,
+ }
+
+ case *ast.FunctionLiteral:
+ name := ""
+ if x.Name != nil {
+ name = x.Name.Name
+ }
+ y := &_nodeFunctionLiteral{
+ name: name,
+ body: parseStatement(x.Body),
+ source: x.Source,
+ }
+ if x.ParameterList != nil {
+ list := x.ParameterList.List
+ y.parameterList = make([]string, len(list))
+ for i, value := range list {
+ y.parameterList[i] = value.Name
+ }
+ }
+ for _, value := range x.DeclarationList {
+ switch value := value.(type) {
+ case *ast.FunctionDeclaration:
+ y.functionList = append(y.functionList, parseExpression(value.Function).(*_nodeFunctionLiteral))
+ case *ast.VariableDeclaration:
+ for _, value := range value.List {
+ y.varList = append(y.varList, value.Name)
+ }
+ default:
+ panic(fmt.Errorf("Here be dragons: parseProgram.declaration(%T)", value))
+ }
+ }
+ return y
+
+ case *ast.Identifier:
+ return &_nodeIdentifier{
+ name: x.Name,
+ }
+
+ case *ast.NewExpression:
+ y := &_nodeNewExpression{
+ callee: parseExpression(x.Callee),
+ argumentList: make([]_nodeExpression, len(x.ArgumentList)),
+ }
+ for i, value := range x.ArgumentList {
+ y.argumentList[i] = parseExpression(value)
+ }
+ return y
+
+ case *ast.NullLiteral:
+ return nullLiteral
+
+ case *ast.NumberLiteral:
+ return &_nodeLiteral{
+ value: toValue(x.Value),
+ }
+
+ case *ast.ObjectLiteral:
+ y := &_nodeObjectLiteral{
+ value: make([]_nodeProperty, len(x.Value)),
+ }
+ for i, value := range x.Value {
+ y.value[i] = _nodeProperty{
+ key: value.Key,
+ kind: value.Kind,
+ value: parseExpression(value.Value),
+ }
+ }
+ return y
+
+ case *ast.RegExpLiteral:
+ return &_nodeRegExpLiteral{
+ flags: x.Flags,
+ pattern: x.Pattern,
+ }
+
+ case *ast.SequenceExpression:
+ y := &_nodeSequenceExpression{
+ sequence: make([]_nodeExpression, len(x.Sequence)),
+ }
+ for i, value := range x.Sequence {
+ y.sequence[i] = parseExpression(value)
+ }
+ return y
+
+ case *ast.StringLiteral:
+ return &_nodeLiteral{
+ value: toValue_string(x.Value),
+ }
+
+ case *ast.ThisExpression:
+ return &_nodeThisExpression{}
+
+ case *ast.UnaryExpression:
+ return &_nodeUnaryExpression{
+ operator: x.Operator,
+ operand: parseExpression(x.Operand),
+ postfix: x.Postfix,
+ }
+
+ case *ast.VariableExpression:
+ return &_nodeVariableExpression{
+ name: x.Name,
+ initializer: parseExpression(x.Initializer),
+ }
+
+ }
+
+ panic(fmt.Errorf("Here be dragons: parseExpression(%T)", x))
+}
+
+func parseStatement(x ast.Statement) _nodeStatement {
+ if x == nil {
+ return nil
+ }
+
+ switch x := x.(type) {
+
+ case *ast.BlockStatement:
+ y := &_nodeBlockStatement{
+ list: make([]_nodeStatement, len(x.List)),
+ }
+ for i, value := range x.List {
+ y.list[i] = parseStatement(value)
+ }
+ return y
+
+ case *ast.BranchStatement:
+ y := &_nodeBranchStatement{
+ branch: x.Token,
+ }
+ if x.Label != nil {
+ y.label = x.Label.Name
+ }
+ return y
+
+ case *ast.DebuggerStatement:
+ return &_nodeDebuggerStatement{}
+
+ case *ast.DoWhileStatement:
+ y := &_nodeDoWhileStatement{
+ test: parseExpression(x.Test),
+ }
+ body := parseStatement(x.Body)
+ if block, ok := body.(*_nodeBlockStatement); ok {
+ y.body = block.list
+ } else {
+ y.body = append(y.body, body)
+ }
+ return y
+
+ case *ast.EmptyStatement:
+ return emptyStatement
+
+ case *ast.ExpressionStatement:
+ return &_nodeExpressionStatement{
+ expression: parseExpression(x.Expression),
+ }
+
+ case *ast.ForInStatement:
+ y := &_nodeForInStatement{
+ into: parseExpression(x.Into),
+ source: parseExpression(x.Source),
+ }
+ body := parseStatement(x.Body)
+ if block, ok := body.(*_nodeBlockStatement); ok {
+ y.body = block.list
+ } else {
+ y.body = append(y.body, body)
+ }
+ return y
+
+ case *ast.ForStatement:
+ y := &_nodeForStatement{
+ initializer: parseExpression(x.Initializer),
+ update: parseExpression(x.Update),
+ test: parseExpression(x.Test),
+ }
+ body := parseStatement(x.Body)
+ if block, ok := body.(*_nodeBlockStatement); ok {
+ y.body = block.list
+ } else {
+ y.body = append(y.body, body)
+ }
+ return y
+
+ case *ast.IfStatement:
+ return &_nodeIfStatement{
+ test: parseExpression(x.Test),
+ consequent: parseStatement(x.Consequent),
+ alternate: parseStatement(x.Alternate),
+ }
+
+ case *ast.LabelledStatement:
+ return &_nodeLabelledStatement{
+ label: x.Label.Name,
+ statement: parseStatement(x.Statement),
+ }
+
+ case *ast.ReturnStatement:
+ return &_nodeReturnStatement{
+ argument: parseExpression(x.Argument),
+ }
+
+ case *ast.SwitchStatement:
+ y := &_nodeSwitchStatement{
+ discriminant: parseExpression(x.Discriminant),
+ default_: x.Default,
+ body: make([]*_nodeCaseStatement, len(x.Body)),
+ }
+ for i, p := range x.Body {
+ q := &_nodeCaseStatement{
+ test: parseExpression(p.Test),
+ consequent: make([]_nodeStatement, len(p.Consequent)),
+ }
+ for j, value := range p.Consequent {
+ q.consequent[j] = parseStatement(value)
+ }
+ y.body[i] = q
+ }
+ return y
+
+ case *ast.ThrowStatement:
+ return &_nodeThrowStatement{
+ argument: parseExpression(x.Argument),
+ }
+
+ case *ast.TryStatement:
+ y := &_nodeTryStatement{
+ body: parseStatement(x.Body),
+ finally: parseStatement(x.Finally),
+ }
+ if x.Catch != nil {
+ y.catch = &_nodeCatchStatement{
+ parameter: x.Catch.Parameter.Name,
+ body: parseStatement(x.Catch.Body),
+ }
+ }
+ return y
+
+ case *ast.VariableStatement:
+ y := &_nodeVariableStatement{
+ list: make([]_nodeExpression, len(x.List)),
+ }
+ for i, value := range x.List {
+ y.list[i] = parseExpression(value)
+ }
+ return y
+
+ case *ast.WhileStatement:
+ y := &_nodeWhileStatement{
+ test: parseExpression(x.Test),
+ }
+ body := parseStatement(x.Body)
+ if block, ok := body.(*_nodeBlockStatement); ok {
+ y.body = block.list
+ } else {
+ y.body = append(y.body, body)
+ }
+ return y
+
+ case *ast.WithStatement:
+ return &_nodeWithStatement{
+ object: parseExpression(x.Object),
+ body: parseStatement(x.Body),
+ }
+
+ }
+
+ panic(fmt.Errorf("Here be dragons: parseStatement(%T)", x))
+}
+
+func cmpl_parse(x *ast.Program) *_nodeProgram {
+ y := &_nodeProgram{
+ body: make([]_nodeStatement, len(x.Body)),
+ }
+ for i, value := range x.Body {
+ y.body[i] = parseStatement(value)
+ }
+ for _, value := range x.DeclarationList {
+ switch value := value.(type) {
+ case *ast.FunctionDeclaration:
+ y.functionList = append(y.functionList, parseExpression(value.Function).(*_nodeFunctionLiteral))
+ case *ast.VariableDeclaration:
+ for _, value := range value.List {
+ y.varList = append(y.varList, value.Name)
+ }
+ default:
+ panic(fmt.Errorf("Here be dragons: parseProgram.DeclarationList(%T)", value))
+ }
+ }
+ return y
+}
+
+type _nodeProgram struct {
+ body []_nodeStatement
+
+ varList []string
+ functionList []*_nodeFunctionLiteral
+
+ variableList []_nodeDeclaration
+}
+
+type _nodeDeclaration struct {
+ name string
+ definition _node
+}
+
+type _node interface {
+}
+
+type (
+ _nodeExpression interface {
+ _node
+ _expressionNode()
+ }
+
+ _nodeArrayLiteral struct {
+ value []_nodeExpression
+ }
+
+ _nodeAssignExpression struct {
+ operator token.Token
+ left _nodeExpression
+ right _nodeExpression
+ }
+
+ _nodeBinaryExpression struct {
+ operator token.Token
+ left _nodeExpression
+ right _nodeExpression
+ comparison bool
+ }
+
+ _nodeBracketExpression struct {
+ left _nodeExpression
+ member _nodeExpression
+ }
+
+ _nodeCallExpression struct {
+ callee _nodeExpression
+ argumentList []_nodeExpression
+ }
+
+ _nodeConditionalExpression struct {
+ test _nodeExpression
+ consequent _nodeExpression
+ alternate _nodeExpression
+ }
+
+ _nodeDotExpression struct {
+ left _nodeExpression
+ identifier string
+ }
+
+ _nodeFunctionLiteral struct {
+ name string
+ body _nodeStatement
+ source string
+ parameterList []string
+ varList []string
+ functionList []*_nodeFunctionLiteral
+ }
+
+ _nodeIdentifier struct {
+ name string
+ }
+
+ _nodeLiteral struct {
+ value Value
+ }
+
+ _nodeNewExpression struct {
+ callee _nodeExpression
+ argumentList []_nodeExpression
+ }
+
+ _nodeObjectLiteral struct {
+ value []_nodeProperty
+ }
+
+ _nodeProperty struct {
+ key string
+ kind string
+ value _nodeExpression
+ }
+
+ _nodeRegExpLiteral struct {
+ flags string
+ pattern string // Value?
+ regexp *regexp.Regexp
+ }
+
+ _nodeSequenceExpression struct {
+ sequence []_nodeExpression
+ }
+
+ _nodeThisExpression struct {
+ }
+
+ _nodeUnaryExpression struct {
+ operator token.Token
+ operand _nodeExpression
+ postfix bool
+ }
+
+ _nodeVariableExpression struct {
+ name string
+ initializer _nodeExpression
+ }
+)
+
+type (
+ _nodeStatement interface {
+ _node
+ _statementNode()
+ }
+
+ _nodeBlockStatement struct {
+ list []_nodeStatement
+ }
+
+ _nodeBranchStatement struct {
+ branch token.Token
+ label string
+ }
+
+ _nodeCaseStatement struct {
+ test _nodeExpression
+ consequent []_nodeStatement
+ }
+
+ _nodeCatchStatement struct {
+ parameter string
+ body _nodeStatement
+ }
+
+ _nodeDebuggerStatement struct {
+ }
+
+ _nodeDoWhileStatement struct {
+ test _nodeExpression
+ body []_nodeStatement
+ }
+
+ _nodeEmptyStatement struct {
+ }
+
+ _nodeExpressionStatement struct {
+ expression _nodeExpression
+ }
+
+ _nodeForInStatement struct {
+ into _nodeExpression
+ source _nodeExpression
+ body []_nodeStatement
+ }
+
+ _nodeForStatement struct {
+ initializer _nodeExpression
+ update _nodeExpression
+ test _nodeExpression
+ body []_nodeStatement
+ }
+
+ _nodeIfStatement struct {
+ test _nodeExpression
+ consequent _nodeStatement
+ alternate _nodeStatement
+ }
+
+ _nodeLabelledStatement struct {
+ label string
+ statement _nodeStatement
+ }
+
+ _nodeReturnStatement struct {
+ argument _nodeExpression
+ }
+
+ _nodeSwitchStatement struct {
+ discriminant _nodeExpression
+ default_ int
+ body []*_nodeCaseStatement
+ }
+
+ _nodeThrowStatement struct {
+ argument _nodeExpression
+ }
+
+ _nodeTryStatement struct {
+ body _nodeStatement
+ catch *_nodeCatchStatement
+ finally _nodeStatement
+ }
+
+ _nodeVariableStatement struct {
+ list []_nodeExpression
+ }
+
+ _nodeWhileStatement struct {
+ test _nodeExpression
+ body []_nodeStatement
+ }
+
+ _nodeWithStatement struct {
+ object _nodeExpression
+ body _nodeStatement
+ }
+)
+
+// _expressionNode
+
+func (*_nodeArrayLiteral) _expressionNode() {}
+func (*_nodeAssignExpression) _expressionNode() {}
+func (*_nodeBinaryExpression) _expressionNode() {}
+func (*_nodeBracketExpression) _expressionNode() {}
+func (*_nodeCallExpression) _expressionNode() {}
+func (*_nodeConditionalExpression) _expressionNode() {}
+func (*_nodeDotExpression) _expressionNode() {}
+func (*_nodeFunctionLiteral) _expressionNode() {}
+func (*_nodeIdentifier) _expressionNode() {}
+func (*_nodeLiteral) _expressionNode() {}
+func (*_nodeNewExpression) _expressionNode() {}
+func (*_nodeObjectLiteral) _expressionNode() {}
+func (*_nodeRegExpLiteral) _expressionNode() {}
+func (*_nodeSequenceExpression) _expressionNode() {}
+func (*_nodeThisExpression) _expressionNode() {}
+func (*_nodeUnaryExpression) _expressionNode() {}
+func (*_nodeVariableExpression) _expressionNode() {}
+
+// _statementNode
+
+func (*_nodeBlockStatement) _statementNode() {}
+func (*_nodeBranchStatement) _statementNode() {}
+func (*_nodeCaseStatement) _statementNode() {}
+func (*_nodeCatchStatement) _statementNode() {}
+func (*_nodeDebuggerStatement) _statementNode() {}
+func (*_nodeDoWhileStatement) _statementNode() {}
+func (*_nodeEmptyStatement) _statementNode() {}
+func (*_nodeExpressionStatement) _statementNode() {}
+func (*_nodeForInStatement) _statementNode() {}
+func (*_nodeForStatement) _statementNode() {}
+func (*_nodeIfStatement) _statementNode() {}
+func (*_nodeLabelledStatement) _statementNode() {}
+func (*_nodeReturnStatement) _statementNode() {}
+func (*_nodeSwitchStatement) _statementNode() {}
+func (*_nodeThrowStatement) _statementNode() {}
+func (*_nodeTryStatement) _statementNode() {}
+func (*_nodeVariableStatement) _statementNode() {}
+func (*_nodeWhileStatement) _statementNode() {}
+func (*_nodeWithStatement) _statementNode() {}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_test.go
new file mode 100644
index 000000000..01ee86e17
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/cmpl_test.go
@@ -0,0 +1,54 @@
+package otto
+
+import (
+ "testing"
+
+ "github.com/robertkrimen/otto/parser"
+)
+
+func Test_cmpl(t *testing.T) {
+ tt(t, func() {
+ vm := New()
+
+ test := func(src string, expect ...interface{}) {
+ program, err := parser.ParseFile(nil, "", src, 0)
+ is(err, nil)
+ {
+ program := cmpl_parse(program)
+ value := vm.runtime.cmpl_evaluate_nodeProgram(program)
+ if len(expect) > 0 {
+ is(value, expect[0])
+ }
+ }
+ }
+
+ test(``, Value{})
+
+ test(`var abc = 1; abc;`, 1)
+
+ test(`var abc = 1 + 1; abc;`, 2)
+
+ test(`1 + 2;`, 3)
+ })
+}
+
+func TestParse_cmpl(t *testing.T) {
+ tt(t, func() {
+
+ test := func(src string) {
+ program, err := parser.ParseFile(nil, "", src, 0)
+ is(err, nil)
+ is(cmpl_parse(program), "!=", nil)
+ }
+
+ test(``)
+
+ test(`var abc = 1; abc;`)
+
+ test(`
+ function abc() {
+ return;
+ }
+ `)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/console.go b/Godeps/_workspace/src/github.com/obscuren/otto/console.go
new file mode 100644
index 000000000..30333ad08
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/console.go
@@ -0,0 +1,51 @@
+package otto
+
+import (
+ "fmt"
+ "os"
+ "strings"
+)
+
+func formatForConsole(argumentList []Value) string {
+ output := []string{}
+ for _, argument := range argumentList {
+ output = append(output, fmt.Sprintf("%v", argument))
+ }
+ return strings.Join(output, " ")
+}
+
+func builtinConsole_log(call FunctionCall) Value {
+ fmt.Fprintln(os.Stdout, formatForConsole(call.ArgumentList))
+ return UndefinedValue()
+}
+
+func builtinConsole_error(call FunctionCall) Value {
+ fmt.Fprintln(os.Stdout, formatForConsole(call.ArgumentList))
+ return UndefinedValue()
+}
+
+// Nothing happens.
+func builtinConsole_dir(call FunctionCall) Value {
+ return UndefinedValue()
+}
+
+func builtinConsole_time(call FunctionCall) Value {
+ return UndefinedValue()
+}
+
+func builtinConsole_timeEnd(call FunctionCall) Value {
+ return UndefinedValue()
+}
+
+func builtinConsole_trace(call FunctionCall) Value {
+ return UndefinedValue()
+}
+
+func builtinConsole_assert(call FunctionCall) Value {
+ return UndefinedValue()
+}
+
+func (runtime *_runtime) newConsole() *_object {
+
+ return newConsoleObject(runtime)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/date_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/date_test.go
new file mode 100644
index 000000000..18ab528db
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/date_test.go
@@ -0,0 +1,478 @@
+package otto
+
+import (
+ "math"
+ "testing"
+ "time"
+)
+
+func mockTimeLocal(location *time.Location) func() {
+ local := time.Local
+ time.Local = location
+ return func() {
+ time.Local = local
+ }
+}
+
+// Passing or failing should not be dependent on what time zone we're in
+func mockUTC() func() {
+ return mockTimeLocal(time.UTC)
+}
+
+func TestDate(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ time0 := time.Unix(1348616313, 47*1000*1000).Local()
+
+ test(`Date`, "function Date() { [native code] }")
+ test(`new Date(0).toUTCString()`, "Thu, 01 Jan 1970 00:00:00 UTC")
+ test(`new Date(0).toGMTString()`, "Thu, 01 Jan 1970 00:00:00 GMT")
+ if false {
+ // TODO toLocale{Date,Time}String
+ test(`new Date(0).toLocaleString()`, "")
+ test(`new Date(0).toLocaleDateString()`, "")
+ test(`new Date(0).toLocaleTimeString()`, "")
+ }
+ test(`new Date(1348616313).getTime()`, 1348616313)
+ test(`new Date(1348616313).toUTCString()`, "Fri, 16 Jan 1970 14:36:56 UTC")
+ test(`abc = new Date(1348616313047); abc.toUTCString()`, "Tue, 25 Sep 2012 23:38:33 UTC")
+ test(`abc.getYear()`, time0.Year()-1900)
+ test(`abc.getFullYear()`, time0.Year())
+ test(`abc.getUTCFullYear()`, 2012)
+ test(`abc.getMonth()`, int(time0.Month())-1) // Remember, the JavaScript month is 0-based
+ test(`abc.getUTCMonth()`, 8)
+ test(`abc.getDate()`, time0.Day())
+ test(`abc.getUTCDate()`, 25)
+ test(`abc.getDay()`, int(time0.Weekday()))
+ test(`abc.getUTCDay()`, 2)
+ test(`abc.getHours()`, time0.Hour())
+ test(`abc.getUTCHours()`, 23)
+ test(`abc.getMinutes()`, time0.Minute())
+ test(`abc.getUTCMinutes()`, 38)
+ test(`abc.getSeconds()`, time0.Second())
+ test(`abc.getUTCSeconds()`, 33)
+ test(`abc.getMilliseconds()`, time0.Nanosecond()/(1000*1000)) // In honor of the 47%
+ test(`abc.getUTCMilliseconds()`, 47)
+ _, offset := time0.Zone()
+ test(`abc.getTimezoneOffset()`, offset/-60)
+
+ test(`new Date("Xyzzy").getTime()`, math.NaN())
+
+ test(`abc.setFullYear(2011); abc.toUTCString()`, "Sun, 25 Sep 2011 23:38:33 UTC")
+ test(`new Date(12564504e5).toUTCString()`, "Sun, 25 Oct 2009 06:00:00 UTC")
+ test(`new Date(2009, 9, 25).toUTCString()`, "Sun, 25 Oct 2009 00:00:00 UTC")
+ test(`+(new Date(2009, 9, 25))`, 1256428800000)
+
+ format := "Mon, 2 Jan 2006 15:04:05 MST"
+
+ time1 := time.Unix(1256450400, 0)
+ time0 = time.Date(time1.Year(), time1.Month(), time1.Day(), time1.Hour(), time1.Minute(), time1.Second(), time1.Nanosecond(), time1.Location()).UTC()
+
+ time0 = time.Date(time1.Year(), time1.Month(), time1.Day(), time1.Hour(), time1.Minute(), time1.Second(), 2001*1000*1000, time1.Location()).UTC()
+ test(`abc = new Date(12564504e5); abc.setMilliseconds(2001); abc.toUTCString()`, time0.Format(format))
+
+ time0 = time.Date(time1.Year(), time1.Month(), time1.Day(), time1.Hour(), time1.Minute(), 61, time1.Nanosecond(), time1.Location()).UTC()
+ test(`abc = new Date(12564504e5); abc.setSeconds("61"); abc.toUTCString()`, time0.Format(format))
+
+ time0 = time.Date(time1.Year(), time1.Month(), time1.Day(), time1.Hour(), 61, time1.Second(), time1.Nanosecond(), time1.Location()).UTC()
+ test(`abc = new Date(12564504e5); abc.setMinutes("61"); abc.toUTCString()`, time0.Format(format))
+
+ time0 = time.Date(time1.Year(), time1.Month(), time1.Day(), 5, time1.Minute(), time1.Second(), time1.Nanosecond(), time1.Location()).UTC()
+ test(`abc = new Date(12564504e5); abc.setHours("5"); abc.toUTCString()`, time0.Format(format))
+
+ time0 = time.Date(time1.Year(), time1.Month(), 26, time1.Hour(), time1.Minute(), time1.Second(), time1.Nanosecond(), time1.Location()).UTC()
+ test(`abc = new Date(12564504e5); abc.setDate("26"); abc.toUTCString()`, time0.Format(format))
+
+ time0 = time.Date(time1.Year(), 10, time1.Day(), time1.Hour(), time1.Minute(), time1.Second(), time1.Nanosecond(), time1.Location()).UTC()
+ test(`abc = new Date(12564504e5); abc.setMonth(9); abc.toUTCString()`, time0.Format(format))
+ test(`abc = new Date(12564504e5); abc.setMonth("09"); abc.toUTCString()`, time0.Format(format))
+
+ time0 = time.Date(time1.Year(), 11, time1.Day(), time1.Hour(), time1.Minute(), time1.Second(), time1.Nanosecond(), time1.Location()).UTC()
+ test(`abc = new Date(12564504e5); abc.setMonth("10"); abc.toUTCString()`, time0.Format(format))
+
+ time0 = time.Date(2010, time1.Month(), time1.Day(), time1.Hour(), time1.Minute(), time1.Second(), time1.Nanosecond(), time1.Location()).UTC()
+ test(`abc = new Date(12564504e5); abc.setFullYear(2010); abc.toUTCString()`, time0.Format(format))
+
+ test(`new Date("2001-01-01T10:01:02.000").getTime()`, 978343262000)
+
+ // Date()
+ test(`typeof Date()`, "string")
+ test(`typeof Date(2006, 1, 2)`, "string")
+
+ test(`
+ abc = Object.getOwnPropertyDescriptor(Date, "parse");
+ [ abc.value === Date.parse, abc.writable, abc.enumerable, abc.configurable ];
+ `, "true,true,false,true")
+
+ test(`
+ abc = Object.getOwnPropertyDescriptor(Date.prototype, "toTimeString");
+ [ abc.value === Date.prototype.toTimeString, abc.writable, abc.enumerable, abc.configurable ];
+ `, "true,true,false,true")
+
+ test(`
+ var abc = Object.getOwnPropertyDescriptor(Date, "prototype");
+ [ [ typeof Date.prototype ],
+ [ abc.writable, abc.enumerable, abc.configurable ] ];
+ `, "object,false,false,false")
+ })
+}
+
+func TestDate_parse(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`Date.parse("2001-01-01T10:01:02.000")`, 978343262000)
+
+ test(`Date.parse("2006-01-02T15:04:05.000")`, 1136214245000)
+
+ test(`Date.parse("2006")`, 1136073600000)
+
+ test(`Date.parse("1970-01-16T14:36:56+00:00")`, 1348616000)
+
+ test(`Date.parse("1970-01-16T14:36:56.313+00:00")`, 1348616313)
+
+ test(`Date.parse("1970-01-16T14:36:56.000")`, 1348616000)
+
+ test(`Date.parse.length`, 1)
+ })
+}
+
+func TestDate_UTC(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`Date.UTC(2009, 9, 25)`, 1256428800000)
+
+ test(`Date.UTC.length`, 7)
+ })
+}
+
+func TestDate_now(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ // FIXME I think this too risky
+ test(`+(""+Date.now()).substr(0, 10)`, float64(epochToInteger(timeToEpoch(time.Now()))/1000))
+
+ test(`Date.now() - Date.now(1,2,3) < 24 * 60 * 60`, true)
+ })
+}
+
+func TestDate_toISOString(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`new Date(0).toISOString()`, "1970-01-01T00:00:00.000Z")
+ })
+}
+
+func TestDate_toJSON(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`new Date(0).toJSON()`, "1970-01-01T00:00:00.000Z")
+ })
+}
+
+func TestDate_setYear(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`new Date(12564504e5).setYear(96)`, 846223200000)
+
+ test(`new Date(12564504e5).setYear(1996)`, 846223200000)
+
+ test(`new Date(12564504e5).setYear(2000)`, 972453600000)
+ })
+}
+
+func TestDateDefaultValue(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`
+ var date = new Date();
+ date + 0 === date.toString() + "0";
+ `, true)
+ })
+}
+
+func TestDate_April1978(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`
+ var abc = new Date(1978,3);
+ [ abc.getYear(), abc.getMonth(), abc.valueOf() ];
+ `, "78,3,260236800000")
+ })
+}
+
+func TestDate_setMilliseconds(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`
+ abc = new Date();
+ def = abc.setMilliseconds();
+ [ abc, def ];
+ `, "Invalid Date,NaN")
+ })
+}
+
+func TestDate_new(t *testing.T) {
+ // FIXME?
+ // This is probably incorrect, due to differences in Go date/time handling
+ // versus ECMA date/time handling, but we'll leave this here for
+ // future reference
+ return
+
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`
+ [
+ new Date(1899, 11).valueOf(),
+ new Date(1899, 12).valueOf(),
+ new Date(1900, 0).valueOf()
+ ]
+ `, "-2211638400000,-2208960000000,-2208960000000")
+ })
+}
+
+func TestDateComparison(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`
+ var now0 = Date.now();
+ var now1 = (new Date()).toString();
+ [ now0 === now1, Math.abs(now0 - Date.parse(now1)) <= 1000 ];
+ `, "false,true")
+ })
+}
+
+func TestDate_setSeconds(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`
+ abc = new Date(1980, 10);
+ def = new Date(abc);
+
+ abc.setSeconds(10, 12);
+
+ def.setSeconds(10);
+ def.setMilliseconds(12);
+
+ abc.valueOf() === def.valueOf();
+ `, true)
+
+ test(`
+ abc = new Date(1980, 10);
+ def = new Date(abc);
+
+ abc.setUTCSeconds(10, 12);
+
+ def.setUTCSeconds(10);
+ def.setUTCMilliseconds(12);
+
+ abc.valueOf() === def.valueOf();
+ `, true)
+
+ test(`Date.prototype.setSeconds.length`, 2)
+ test(`Date.prototype.setUTCSeconds.length`, 2)
+ })
+}
+
+func TestDate_setMinutes(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`
+ abc = new Date(1980, 10);
+ def = new Date(abc);
+
+ abc.setMinutes(8, 10, 12);
+
+ def.setMinutes(8);
+ def.setSeconds(10);
+ def.setMilliseconds(12);
+
+ abc.valueOf() === def.valueOf();
+ `, true)
+
+ test(`
+ abc = new Date(1980, 10);
+ def = new Date(abc);
+
+ abc.setUTCMinutes(8, 10, 12);
+
+ def.setUTCMinutes(8);
+ def.setUTCSeconds(10);
+ def.setUTCMilliseconds(12);
+
+ abc.valueOf() === def.valueOf();
+ `, true)
+
+ test(`Date.prototype.setMinutes.length`, 3)
+ test(`Date.prototype.setUTCMinutes.length`, 3)
+ })
+}
+
+func TestDate_setHours(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`
+ abc = new Date(1980, 10);
+ def = new Date(abc);
+
+ abc.setHours(6, 8, 10, 12);
+
+ def.setHours(6);
+ def.setMinutes(8);
+ def.setSeconds(10);
+ def.setMilliseconds(12);
+
+ abc.valueOf() === def.valueOf();
+ `, true)
+
+ test(`
+ abc = new Date(1980, 10);
+ def = new Date(abc);
+
+ abc.setUTCHours(6, 8, 10, 12);
+
+ def.setUTCHours(6);
+ def.setUTCMinutes(8);
+ def.setUTCSeconds(10);
+ def.setUTCMilliseconds(12);
+
+ abc.valueOf() === def.valueOf();
+ `, true)
+
+ test(`Date.prototype.setHours.length`, 4)
+ test(`Date.prototype.setUTCHours.length`, 4)
+ })
+}
+
+func TestDate_setMonth(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`
+ abc = new Date(1980, 10);
+ def = new Date(abc);
+
+ abc.setMonth(6, 8);
+
+ def.setMonth(6);
+ def.setDate(8);
+
+ abc.valueOf() === def.valueOf();
+ `, true)
+
+ test(`
+ abc = new Date(1980, 10);
+ def = new Date(abc);
+
+ abc.setUTCMonth(6, 8);
+
+ def.setUTCMonth(6);
+ def.setUTCDate(8);
+
+ abc.valueOf() === def.valueOf();
+ `, true)
+
+ test(`Date.prototype.setMonth.length`, 2)
+ test(`Date.prototype.setUTCMonth.length`, 2)
+ })
+}
+
+func TestDate_setFullYear(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`
+ abc = new Date(1980, 10);
+ def = new Date(abc);
+
+ abc.setFullYear(1981, 6, 8);
+
+ def.setFullYear(1981);
+ def.setMonth(6);
+ def.setDate(8);
+
+ abc.valueOf() === def.valueOf();
+ `, true)
+
+ test(`
+ abc = new Date(1980, 10);
+ def = new Date(abc);
+
+ abc.setUTCFullYear(1981, 6, 8);
+
+ def.setUTCFullYear(1981);
+ def.setUTCMonth(6);
+ def.setUTCDate(8);
+
+ abc.valueOf() === def.valueOf();
+ `, true)
+
+ test(`Date.prototype.setFullYear.length`, 3)
+ test(`Date.prototype.setUTCFullYear.length`, 3)
+ })
+}
+
+func TestDate_setTime(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`
+ var abc = new Date(1999, 6, 1);
+ var def = new Date();
+ def.setTime(abc.getTime());
+ [ def, abc.valueOf() == def.valueOf() ];
+ `, "Thu, 01 Jul 1999 00:00:00 UTC,true")
+
+ test(`Date.prototype.setTime.length`, 1)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/dbg.go b/Godeps/_workspace/src/github.com/obscuren/otto/dbg.go
new file mode 100644
index 000000000..51fbdc206
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/dbg.go
@@ -0,0 +1,9 @@
+// This file was AUTOMATICALLY GENERATED by dbg-import (smuggol) for github.com/robertkrimen/dbg
+
+package otto
+
+import (
+ Dbg "github.com/robertkrimen/otto/dbg"
+)
+
+var dbg, dbgf = Dbg.New()
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/dbg/dbg.go b/Godeps/_workspace/src/github.com/obscuren/otto/dbg/dbg.go
new file mode 100644
index 000000000..83bf6c573
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/dbg/dbg.go
@@ -0,0 +1,387 @@
+// This file was AUTOMATICALLY GENERATED by dbg-import (smuggol) from github.com/robertkrimen/dbg
+
+/*
+Package dbg is a println/printf/log-debugging utility library.
+
+ import (
+ Dbg "github.com/robertkrimen/dbg"
+ )
+
+ dbg, dbgf := Dbg.New()
+
+ dbg("Emit some debug stuff", []byte{120, 121, 122, 122, 121}, math.Pi)
+ # "2013/01/28 16:50:03 Emit some debug stuff [120 121 122 122 121] 3.141592653589793"
+
+ dbgf("With a %s formatting %.2f", "little", math.Pi)
+ # "2013/01/28 16:51:55 With a little formatting (3.14)"
+
+ dbgf("%/fatal//A fatal debug statement: should not be here")
+ # "A fatal debug statement: should not be here"
+ # ...and then, os.Exit(1)
+
+ dbgf("%/panic//Can also panic %s", "this")
+ # "Can also panic this"
+ # ...as a panic, equivalent to: panic("Can also panic this")
+
+ dbgf("Any %s arguments without a corresponding %%", "extra", "are treated like arguments to dbg()")
+ # "2013/01/28 17:14:40 Any extra arguments (without a corresponding %) are treated like arguments to dbg()"
+
+ dbgf("%d %d", 1, 2, 3, 4, 5)
+ # "2013/01/28 17:16:32 Another example: 1 2 3 4 5"
+
+ dbgf("%@: Include the function name for a little context (via %s)", "%@")
+ # "2013... github.com/robertkrimen/dbg.TestSynopsis: Include the function name for a little context (via %@)"
+
+By default, dbg uses log (log.Println, log.Printf, log.Panic, etc.) for output.
+However, you can also provide your own output destination by invoking dbg.New with
+a customization function:
+
+ import (
+ "bytes"
+ Dbg "github.com/robertkrimen/dbg"
+ "os"
+ )
+
+ # dbg to os.Stderr
+ dbg, dbgf := Dbg.New(func(dbgr *Dbgr) {
+ dbgr.SetOutput(os.Stderr)
+ })
+
+ # A slightly contrived example:
+ var buffer bytes.Buffer
+ dbg, dbgf := New(func(dbgr *Dbgr) {
+ dbgr.SetOutput(&buffer)
+ })
+
+*/
+package dbg
+
+import (
+ "bytes"
+ "fmt"
+ "io"
+ "log"
+ "os"
+ "regexp"
+ "runtime"
+ "strings"
+ "unicode"
+)
+
+type _frmt struct {
+ ctl string
+ format string
+ operandCount int
+ panic bool
+ fatal bool
+ check bool
+}
+
+var (
+ ctlTest = regexp.MustCompile(`^\s*%/`)
+ ctlScan = regexp.MustCompile(`%?/(panic|fatal|check)(?:\s|$)`)
+)
+
+func operandCount(format string) int {
+ count := 0
+ end := len(format)
+ for at := 0; at < end; {
+ for at < end && format[at] != '%' {
+ at++
+ }
+ at++
+ if at < end {
+ if format[at] != '%' && format[at] != '@' {
+ count++
+ }
+ at++
+ }
+ }
+ return count
+}
+
+func parseFormat(format string) (frmt _frmt) {
+ if ctlTest.MatchString(format) {
+ format = strings.TrimLeftFunc(format, unicode.IsSpace)
+ index := strings.Index(format, "//")
+ if index != -1 {
+ frmt.ctl = format[0:index]
+ format = format[index+2:] // Skip the second slash via +2 (instead of +1)
+ } else {
+ frmt.ctl = format
+ format = ""
+ }
+ for _, tmp := range ctlScan.FindAllStringSubmatch(frmt.ctl, -1) {
+ for _, value := range tmp[1:] {
+ switch value {
+ case "panic":
+ frmt.panic = true
+ case "fatal":
+ frmt.fatal = true
+ case "check":
+ frmt.check = true
+ }
+ }
+ }
+ }
+ frmt.format = format
+ frmt.operandCount = operandCount(format)
+ return
+}
+
+type Dbgr struct {
+ emit _emit
+}
+
+type DbgFunction func(values ...interface{})
+
+func NewDbgr() *Dbgr {
+ self := &Dbgr{}
+ return self
+}
+
+/*
+New will create and return a pair of debugging functions. You can customize where
+they output to by passing in an (optional) customization function:
+
+ import (
+ Dbg "github.com/robertkrimen/dbg"
+ "os"
+ )
+
+ # dbg to os.Stderr
+ dbg, dbgf := Dbg.New(func(dbgr *Dbgr) {
+ dbgr.SetOutput(os.Stderr)
+ })
+
+*/
+func New(options ...interface{}) (dbg DbgFunction, dbgf DbgFunction) {
+ dbgr := NewDbgr()
+ if len(options) > 0 {
+ if fn, ok := options[0].(func(*Dbgr)); ok {
+ fn(dbgr)
+ }
+ }
+ return dbgr.DbgDbgf()
+}
+
+func (self Dbgr) Dbg(values ...interface{}) {
+ self.getEmit().emit(_frmt{}, "", values...)
+}
+
+func (self Dbgr) Dbgf(values ...interface{}) {
+ self.dbgf(values...)
+}
+
+func (self Dbgr) DbgDbgf() (dbg DbgFunction, dbgf DbgFunction) {
+ dbg = func(vl ...interface{}) {
+ self.Dbg(vl...)
+ }
+ dbgf = func(vl ...interface{}) {
+ self.dbgf(vl...)
+ }
+ return dbg, dbgf // Redundant, but...
+}
+
+func (self Dbgr) dbgf(values ...interface{}) {
+
+ var frmt _frmt
+ if len(values) > 0 {
+ tmp := fmt.Sprint(values[0])
+ frmt = parseFormat(tmp)
+ values = values[1:]
+ }
+
+ buffer_f := bytes.Buffer{}
+ format := frmt.format
+ end := len(format)
+ for at := 0; at < end; {
+ last := at
+ for at < end && format[at] != '%' {
+ at++
+ }
+ if at > last {
+ buffer_f.WriteString(format[last:at])
+ }
+ if at >= end {
+ break
+ }
+ // format[at] == '%'
+ at++
+ // format[at] == ?
+ if format[at] == '@' {
+ depth := 2
+ pc, _, _, _ := runtime.Caller(depth)
+ name := runtime.FuncForPC(pc).Name()
+ buffer_f.WriteString(name)
+ } else {
+ buffer_f.WriteString(format[at-1 : at+1])
+ }
+ at++
+ }
+
+ //values_f := append([]interface{}{}, values[0:frmt.operandCount]...)
+ values_f := values[0:frmt.operandCount]
+ values_dbg := values[frmt.operandCount:]
+ if len(values_dbg) > 0 {
+ // Adjust frmt.format:
+ // (%v instead of %s because: frmt.check)
+ {
+ tmp := format
+ if len(tmp) > 0 {
+ if unicode.IsSpace(rune(tmp[len(tmp)-1])) {
+ buffer_f.WriteString("%v")
+ } else {
+ buffer_f.WriteString(" %v")
+ }
+ } else if frmt.check {
+ // Performing a check, so no output
+ } else {
+ buffer_f.WriteString("%v")
+ }
+ }
+
+ // Adjust values_f:
+ if !frmt.check {
+ tmp := []string{}
+ for _, value := range values_dbg {
+ tmp = append(tmp, fmt.Sprintf("%v", value))
+ }
+ // First, make a copy of values_f, so we avoid overwriting values_dbg when appending
+ values_f = append([]interface{}{}, values_f...)
+ values_f = append(values_f, strings.Join(tmp, " "))
+ }
+ }
+
+ format = buffer_f.String()
+ if frmt.check {
+ // We do not actually emit to the log, but panic if
+ // a non-nil value is detected (e.g. a non-nil error)
+ for _, value := range values_dbg {
+ if value != nil {
+ if format == "" {
+ panic(value)
+ } else {
+ panic(fmt.Sprintf(format, append(values_f, value)...))
+ }
+ }
+ }
+ } else {
+ self.getEmit().emit(frmt, format, values_f...)
+ }
+}
+
+// Idiot-proof &Dbgr{}, etc.
+func (self *Dbgr) getEmit() _emit {
+ if self.emit == nil {
+ self.emit = standardEmit()
+ }
+ return self.emit
+}
+
+// SetOutput will accept the following as a destination for output:
+//
+// *log.Logger Print*/Panic*/Fatal* of the logger
+// io.Writer -
+// nil Reset to the default output (os.Stderr)
+// "log" Print*/Panic*/Fatal* via the "log" package
+//
+func (self *Dbgr) SetOutput(output interface{}) {
+ if output == nil {
+ self.emit = standardEmit()
+ return
+ }
+ switch output := output.(type) {
+ case *log.Logger:
+ self.emit = _emitLogger{
+ logger: output,
+ }
+ return
+ case io.Writer:
+ self.emit = _emitWriter{
+ writer: output,
+ }
+ return
+ case string:
+ if output == "log" {
+ self.emit = _emitLog{}
+ return
+ }
+ }
+ panic(output)
+}
+
+// ======== //
+// = emit = //
+// ======== //
+
+func standardEmit() _emit {
+ return _emitWriter{
+ writer: os.Stderr,
+ }
+}
+
+func ln(tmp string) string {
+ length := len(tmp)
+ if length > 0 && tmp[length-1] != '\n' {
+ return tmp + "\n"
+ }
+ return tmp
+}
+
+type _emit interface {
+ emit(_frmt, string, ...interface{})
+}
+
+type _emitWriter struct {
+ writer io.Writer
+}
+
+func (self _emitWriter) emit(frmt _frmt, format string, values ...interface{}) {
+ if format == "" {
+ fmt.Fprintln(self.writer, values...)
+ } else {
+ if frmt.panic {
+ panic(fmt.Sprintf(format, values...))
+ }
+ fmt.Fprintf(self.writer, ln(format), values...)
+ if frmt.fatal {
+ os.Exit(1)
+ }
+ }
+}
+
+type _emitLogger struct {
+ logger *log.Logger
+}
+
+func (self _emitLogger) emit(frmt _frmt, format string, values ...interface{}) {
+ if format == "" {
+ self.logger.Println(values...)
+ } else {
+ if frmt.panic {
+ self.logger.Panicf(format, values...)
+ } else if frmt.fatal {
+ self.logger.Fatalf(format, values...)
+ } else {
+ self.logger.Printf(format, values...)
+ }
+ }
+}
+
+type _emitLog struct {
+}
+
+func (self _emitLog) emit(frmt _frmt, format string, values ...interface{}) {
+ if format == "" {
+ log.Println(values...)
+ } else {
+ if frmt.panic {
+ log.Panicf(format, values...)
+ } else if frmt.fatal {
+ log.Fatalf(format, values...)
+ } else {
+ log.Printf(format, values...)
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/documentation_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/documentation_test.go
new file mode 100644
index 000000000..dca5093f7
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/documentation_test.go
@@ -0,0 +1,95 @@
+package otto
+
+import (
+ "fmt"
+)
+
+func ExampleSynopsis() {
+
+ vm := New()
+ vm.Run(`
+ abc = 2 + 2;
+ console.log("The value of abc is " + abc); // 4
+ `)
+
+ value, _ := vm.Get("abc")
+ {
+ value, _ := value.ToInteger()
+ fmt.Println(value)
+ }
+
+ vm.Set("def", 11)
+ vm.Run(`
+ console.log("The value of def is " + def);
+ `)
+
+ vm.Set("xyzzy", "Nothing happens.")
+ vm.Run(`
+ console.log(xyzzy.length);
+ `)
+
+ value, _ = vm.Run("xyzzy.length")
+ {
+ value, _ := value.ToInteger()
+ fmt.Println(value)
+ }
+
+ value, err := vm.Run("abcdefghijlmnopqrstuvwxyz.length")
+ fmt.Println(value)
+ fmt.Println(err)
+
+ vm.Set("sayHello", func(call FunctionCall) Value {
+ fmt.Printf("Hello, %s.\n", call.Argument(0).String())
+ return UndefinedValue()
+ })
+
+ vm.Set("twoPlus", func(call FunctionCall) Value {
+ right, _ := call.Argument(0).ToInteger()
+ result, _ := vm.ToValue(2 + right)
+ return result
+ })
+
+ value, _ = vm.Run(`
+ sayHello("Xyzzy");
+ sayHello();
+
+ result = twoPlus(2.0);
+ `)
+ fmt.Println(value)
+
+ // Output:
+ // The value of abc is 4
+ // 4
+ // The value of def is 11
+ // 16
+ // 16
+ // undefined
+ // ReferenceError: abcdefghijlmnopqrstuvwxyz is not defined
+ // Hello, Xyzzy.
+ // Hello, undefined.
+ // 4
+}
+
+func ExampleConsole() {
+
+ vm := New()
+ console := map[string]interface{}{
+ "log": func(call FunctionCall) Value {
+ fmt.Println("console.log:", formatForConsole(call.ArgumentList))
+ return UndefinedValue()
+ },
+ }
+
+ err := vm.Set("console", console)
+
+ value, err := vm.Run(`
+ console.log("Hello, World.");
+ `)
+ fmt.Println(value)
+ fmt.Println(err)
+
+ // Output:
+ // console.log: Hello, World.
+ // undefined
+ // <nil>
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/environment.go b/Godeps/_workspace/src/github.com/obscuren/otto/environment.go
new file mode 100644
index 000000000..891a3c9af
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/environment.go
@@ -0,0 +1,280 @@
+package otto
+
+import (
+ "fmt"
+)
+
+// _environment
+
+type _environment interface {
+ HasBinding(string) bool
+
+ CreateMutableBinding(string, bool)
+ SetMutableBinding(string, Value, bool)
+ // SetMutableBinding with Lazy CreateMutableBinding(..., true)
+ SetValue(string, Value, bool)
+
+ GetBindingValue(string, bool) Value
+ GetValue(string, bool) Value // GetBindingValue
+ DeleteBinding(string) bool
+ ImplicitThisValue() *_object
+
+ Outer() _environment
+
+ newReference(string, bool) _reference
+ clone(clone *_clone) _environment
+ runtimeOf() *_runtime
+}
+
+// _functionEnvironment
+
+type _functionEnvironment struct {
+ _declarativeEnvironment
+ arguments *_object
+ indexOfArgumentName map[string]string
+}
+
+func (runtime *_runtime) newFunctionEnvironment(outer _environment) *_functionEnvironment {
+ return &_functionEnvironment{
+ _declarativeEnvironment: _declarativeEnvironment{
+ runtime: runtime,
+ outer: outer,
+ property: map[string]_declarativeProperty{},
+ },
+ }
+}
+
+func (self0 _functionEnvironment) clone(clone *_clone) _environment {
+ return &_functionEnvironment{
+ *(self0._declarativeEnvironment.clone(clone).(*_declarativeEnvironment)),
+ clone.object(self0.arguments),
+ self0.indexOfArgumentName,
+ }
+}
+
+func (self _functionEnvironment) runtimeOf() *_runtime {
+ return self._declarativeEnvironment.runtimeOf()
+}
+
+// _objectEnvironment
+
+type _objectEnvironment struct {
+ runtime *_runtime
+ outer _environment
+ Object *_object
+ ProvideThis bool
+}
+
+func (self *_objectEnvironment) runtimeOf() *_runtime {
+ return self.runtime
+}
+
+func (runtime *_runtime) newObjectEnvironment(object *_object, outer _environment) *_objectEnvironment {
+ if object == nil {
+ object = runtime.newBaseObject()
+ object.class = "environment"
+ }
+ return &_objectEnvironment{
+ runtime: runtime,
+ outer: outer,
+ Object: object,
+ }
+}
+
+func (self0 *_objectEnvironment) clone(clone *_clone) _environment {
+ self1, exists := clone.objectEnvironment(self0)
+ if exists {
+ return self1
+ }
+ *self1 = _objectEnvironment{
+ clone.runtime,
+ clone.environment(self0.outer),
+ clone.object(self0.Object),
+ self0.ProvideThis,
+ }
+ return self1
+}
+
+func (self *_objectEnvironment) HasBinding(name string) bool {
+ return self.Object.hasProperty(name)
+}
+
+func (self *_objectEnvironment) CreateMutableBinding(name string, deletable bool) {
+ if self.Object.hasProperty(name) {
+ panic(hereBeDragons())
+ }
+ mode := _propertyMode(0111)
+ if !deletable {
+ mode = _propertyMode(0110)
+ }
+ // TODO False?
+ self.Object.defineProperty(name, UndefinedValue(), mode, false)
+}
+
+func (self *_objectEnvironment) SetMutableBinding(name string, value Value, strict bool) {
+ self.Object.put(name, value, strict)
+}
+
+func (self *_objectEnvironment) SetValue(name string, value Value, throw bool) {
+ if !self.HasBinding(name) {
+ self.CreateMutableBinding(name, true) // Configurable by default
+ }
+ self.SetMutableBinding(name, value, throw)
+}
+
+func (self *_objectEnvironment) GetBindingValue(name string, strict bool) Value {
+ if self.Object.hasProperty(name) {
+ return self.Object.get(name)
+ }
+ if strict {
+ panic(newReferenceError("Not Defined", name))
+ }
+ return UndefinedValue()
+}
+
+func (self *_objectEnvironment) GetValue(name string, throw bool) Value {
+ return self.GetBindingValue(name, throw)
+}
+
+func (self *_objectEnvironment) DeleteBinding(name string) bool {
+ return self.Object.delete(name, false)
+}
+
+func (self *_objectEnvironment) ImplicitThisValue() *_object {
+ if self.ProvideThis {
+ return self.Object
+ }
+ return nil
+}
+
+func (self *_objectEnvironment) Outer() _environment {
+ return self.outer
+}
+
+func (self *_objectEnvironment) newReference(name string, strict bool) _reference {
+ return newPropertyReference(self.Object, name, strict)
+}
+
+// _declarativeEnvironment
+
+func (runtime *_runtime) newDeclarativeEnvironment(outer _environment) *_declarativeEnvironment {
+ return &_declarativeEnvironment{
+ runtime: runtime,
+ outer: outer,
+ property: map[string]_declarativeProperty{},
+ }
+}
+
+func (self0 *_declarativeEnvironment) clone(clone *_clone) _environment {
+ self1, exists := clone.declarativeEnvironment(self0)
+ if exists {
+ return self1
+ }
+ property := make(map[string]_declarativeProperty, len(self0.property))
+ for index, value := range self0.property {
+ property[index] = clone.declarativeProperty(value)
+ }
+ *self1 = _declarativeEnvironment{
+ clone.runtime,
+ clone.environment(self0.outer),
+ property,
+ }
+ return self1
+}
+
+type _declarativeProperty struct {
+ value Value
+ mutable bool
+ deletable bool
+ readable bool
+}
+
+type _declarativeEnvironment struct {
+ runtime *_runtime
+ outer _environment
+ property map[string]_declarativeProperty
+}
+
+func (self *_declarativeEnvironment) HasBinding(name string) bool {
+ _, exists := self.property[name]
+ return exists
+}
+
+func (self *_declarativeEnvironment) runtimeOf() *_runtime {
+ return self.runtime
+}
+
+func (self *_declarativeEnvironment) CreateMutableBinding(name string, deletable bool) {
+ _, exists := self.property[name]
+ if exists {
+ panic(fmt.Errorf("CreateMutableBinding: %s: already exists", name))
+ }
+ self.property[name] = _declarativeProperty{
+ value: UndefinedValue(),
+ mutable: true,
+ deletable: deletable,
+ readable: false,
+ }
+}
+
+func (self *_declarativeEnvironment) SetMutableBinding(name string, value Value, strict bool) {
+ property, exists := self.property[name]
+ if !exists {
+ panic(fmt.Errorf("SetMutableBinding: %s: missing", name))
+ }
+ if property.mutable {
+ property.value = value
+ self.property[name] = property
+ } else {
+ typeErrorResult(strict)
+ }
+}
+
+func (self *_declarativeEnvironment) SetValue(name string, value Value, throw bool) {
+ if !self.HasBinding(name) {
+ self.CreateMutableBinding(name, false) // NOT deletable by default
+ }
+ self.SetMutableBinding(name, value, throw)
+}
+
+func (self *_declarativeEnvironment) GetBindingValue(name string, strict bool) Value {
+ property, exists := self.property[name]
+ if !exists {
+ panic(fmt.Errorf("GetBindingValue: %s: missing", name))
+ }
+ if !property.mutable && !property.readable {
+ if strict {
+ panic(newTypeError())
+ }
+ return UndefinedValue()
+ }
+ return property.value
+}
+
+func (self *_declarativeEnvironment) GetValue(name string, throw bool) Value {
+ return self.GetBindingValue(name, throw)
+}
+
+func (self *_declarativeEnvironment) DeleteBinding(name string) bool {
+ property, exists := self.property[name]
+ if !exists {
+ return true
+ }
+ if !property.deletable {
+ return false
+ }
+ delete(self.property, name)
+ return true
+}
+
+func (self *_declarativeEnvironment) ImplicitThisValue() *_object {
+ return nil
+}
+
+func (self *_declarativeEnvironment) Outer() _environment {
+ return self.outer
+}
+
+func (self *_declarativeEnvironment) newReference(name string, strict bool) _reference {
+ return newEnvironmentReference(self, name, strict, nil)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/error.go b/Godeps/_workspace/src/github.com/obscuren/otto/error.go
new file mode 100644
index 000000000..887b954bd
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/error.go
@@ -0,0 +1,152 @@
+package otto
+
+import (
+ "errors"
+ "fmt"
+
+ "github.com/robertkrimen/otto/ast"
+)
+
+type _exception struct {
+ value interface{}
+}
+
+func newException(value interface{}) *_exception {
+ return &_exception{
+ value: value,
+ }
+}
+
+func (self *_exception) eject() interface{} {
+ value := self.value
+ self.value = nil // Prevent Go from holding on to the value, whatever it is
+ return value
+}
+
+type _error struct {
+ Name string
+ Message string
+
+ Line int // Hackish -- line where the error/exception occurred
+}
+
+var messageDetail map[string]string = map[string]string{
+ "notDefined": "%v is not defined",
+}
+
+func messageFromDescription(description string, argumentList ...interface{}) string {
+ message := messageDetail[description]
+ if message == "" {
+ message = description
+ }
+ message = fmt.Sprintf(message, argumentList...)
+ return message
+}
+
+func (self _error) MessageValue() Value {
+ if self.Message == "" {
+ return UndefinedValue()
+ }
+ return toValue_string(self.Message)
+}
+
+func (self _error) String() string {
+ if len(self.Name) == 0 {
+ return self.Message
+ }
+ if len(self.Message) == 0 {
+ return self.Name
+ }
+ return fmt.Sprintf("%s: %s", self.Name, self.Message)
+}
+
+func newError(name string, argumentList ...interface{}) _error {
+ description := ""
+ var node ast.Node = nil
+ length := len(argumentList)
+ if length > 0 {
+ if node, _ = argumentList[length-1].(ast.Node); node != nil || argumentList[length-1] == nil {
+ argumentList = argumentList[0 : length-1]
+ length -= 1
+ }
+ if length > 0 {
+ description, argumentList = argumentList[0].(string), argumentList[1:]
+ }
+ }
+ return _error{
+ Name: name,
+ Message: messageFromDescription(description, argumentList...),
+ Line: -1,
+ }
+ //error := _error{
+ // Name: name,
+ // Message: messageFromDescription(description, argumentList...),
+ // Line: -1,
+ //}
+ //if node != nil {
+ // error.Line = ast.position()
+ //}
+ //return error
+}
+
+func newReferenceError(argumentList ...interface{}) _error {
+ return newError("ReferenceError", argumentList...)
+}
+
+func newTypeError(argumentList ...interface{}) _error {
+ return newError("TypeError", argumentList...)
+}
+
+func newRangeError(argumentList ...interface{}) _error {
+ return newError("RangeError", argumentList...)
+}
+
+func newSyntaxError(argumentList ...interface{}) _error {
+ return newError("SyntaxError", argumentList...)
+}
+
+func newURIError(argumentList ...interface{}) _error {
+ return newError("URIError", argumentList...)
+}
+
+func typeErrorResult(throw bool) bool {
+ if throw {
+ panic(newTypeError())
+ }
+ return false
+}
+
+func catchPanic(function func()) (err error) {
+ // FIXME
+ defer func() {
+ if caught := recover(); caught != nil {
+ if exception, ok := caught.(*_exception); ok {
+ caught = exception.eject()
+ }
+ switch caught := caught.(type) {
+ //case *_syntaxError:
+ // err = errors.New(fmt.Sprintf("%s (line %d)", caught.String(), caught.Line+0))
+ // return
+ case _error:
+ if caught.Line == -1 {
+ err = errors.New(caught.String())
+ } else {
+ // We're 0-based (for now), hence the + 1
+ err = errors.New(fmt.Sprintf("%s (line %d)", caught.String(), caught.Line+1))
+ }
+ return
+ case Value:
+ err = errors.New(toString(caught))
+ return
+ //case string:
+ // if strings.HasPrefix(caught, "SyntaxError:") {
+ // err = errors.New(caught)
+ // return
+ // }
+ }
+ panic(caught)
+ }
+ }()
+ function()
+ return nil
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/error_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/error_test.go
new file mode 100644
index 000000000..d0580c618
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/error_test.go
@@ -0,0 +1,62 @@
+package otto
+
+import (
+ "testing"
+)
+
+func TestError(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [ Error.prototype.name, Error.prototype.message, Error.prototype.hasOwnProperty("message") ];
+ `, "Error,,true")
+ })
+}
+
+func TestError_instanceof(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`(new TypeError()) instanceof Error`, true)
+ })
+}
+
+func TestPanicValue(t *testing.T) {
+ tt(t, func() {
+ test, vm := test()
+
+ vm.Set("abc", func(call FunctionCall) Value {
+ value, err := call.Otto.Run(`({ def: 3.14159 })`)
+ is(err, nil)
+ panic(value)
+ })
+
+ test(`
+ try {
+ abc();
+ }
+ catch (err) {
+ error = err;
+ }
+ [ error instanceof Error, error.message, error.def ];
+ `, "false,,3.14159")
+ })
+}
+
+func Test_catchPanic(t *testing.T) {
+ tt(t, func() {
+ vm := New()
+
+ _, err := vm.Run(`
+ A syntax error that
+ does not define
+ var;
+ abc;
+ `)
+ is(err, "!=", nil)
+
+ _, err = vm.Call(`abc.def`, nil)
+ is(err, "!=", nil)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/evaluate.go b/Godeps/_workspace/src/github.com/obscuren/otto/evaluate.go
new file mode 100644
index 000000000..d8c74c0f6
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/evaluate.go
@@ -0,0 +1,317 @@
+package otto
+
+import (
+ "fmt"
+ "math"
+ "strings"
+
+ "github.com/robertkrimen/otto/token"
+)
+
+func (self *_runtime) evaluateMultiply(left float64, right float64) Value {
+ // TODO 11.5.1
+ return UndefinedValue()
+}
+
+func (self *_runtime) evaluateDivide(left float64, right float64) Value {
+ if math.IsNaN(left) || math.IsNaN(right) {
+ return NaNValue()
+ }
+ if math.IsInf(left, 0) && math.IsInf(right, 0) {
+ return NaNValue()
+ }
+ if left == 0 && right == 0 {
+ return NaNValue()
+ }
+ if math.IsInf(left, 0) {
+ if math.Signbit(left) == math.Signbit(right) {
+ return positiveInfinityValue()
+ } else {
+ return negativeInfinityValue()
+ }
+ }
+ if math.IsInf(right, 0) {
+ if math.Signbit(left) == math.Signbit(right) {
+ return positiveZeroValue()
+ } else {
+ return negativeZeroValue()
+ }
+ }
+ if right == 0 {
+ if math.Signbit(left) == math.Signbit(right) {
+ return positiveInfinityValue()
+ } else {
+ return negativeInfinityValue()
+ }
+ }
+ return toValue_float64(left / right)
+}
+
+func (self *_runtime) evaluateModulo(left float64, right float64) Value {
+ // TODO 11.5.3
+ return UndefinedValue()
+}
+
+func (self *_runtime) calculateBinaryExpression(operator token.Token, left Value, right Value) Value {
+
+ leftValue := self.GetValue(left)
+
+ switch operator {
+
+ // Additive
+ case token.PLUS:
+ leftValue = toPrimitive(leftValue)
+ rightValue := self.GetValue(right)
+ rightValue = toPrimitive(rightValue)
+
+ if leftValue.IsString() || rightValue.IsString() {
+ return toValue_string(strings.Join([]string{leftValue.toString(), rightValue.toString()}, ""))
+ } else {
+ return toValue_float64(leftValue.toFloat() + rightValue.toFloat())
+ }
+ case token.MINUS:
+ rightValue := self.GetValue(right)
+ return toValue_float64(leftValue.toFloat() - rightValue.toFloat())
+
+ // Multiplicative
+ case token.MULTIPLY:
+ rightValue := self.GetValue(right)
+ return toValue_float64(leftValue.toFloat() * rightValue.toFloat())
+ case token.SLASH:
+ rightValue := self.GetValue(right)
+ return self.evaluateDivide(leftValue.toFloat(), rightValue.toFloat())
+ case token.REMAINDER:
+ rightValue := self.GetValue(right)
+ return toValue_float64(math.Mod(leftValue.toFloat(), rightValue.toFloat()))
+
+ // Logical
+ case token.LOGICAL_AND:
+ left := toBoolean(leftValue)
+ if !left {
+ return FalseValue()
+ }
+ return toValue_bool(toBoolean(self.GetValue(right)))
+ case token.LOGICAL_OR:
+ left := toBoolean(leftValue)
+ if left {
+ return TrueValue()
+ }
+ return toValue_bool(toBoolean(self.GetValue(right)))
+
+ // Bitwise
+ case token.AND:
+ rightValue := self.GetValue(right)
+ return toValue_int32(toInt32(leftValue) & toInt32(rightValue))
+ case token.OR:
+ rightValue := self.GetValue(right)
+ return toValue_int32(toInt32(leftValue) | toInt32(rightValue))
+ case token.EXCLUSIVE_OR:
+ rightValue := self.GetValue(right)
+ return toValue_int32(toInt32(leftValue) ^ toInt32(rightValue))
+
+ // Shift
+ // (Masking of 0x1f is to restrict the shift to a maximum of 31 places)
+ case token.SHIFT_LEFT:
+ rightValue := self.GetValue(right)
+ return toValue_int32(toInt32(leftValue) << (toUint32(rightValue) & 0x1f))
+ case token.SHIFT_RIGHT:
+ rightValue := self.GetValue(right)
+ return toValue_int32(toInt32(leftValue) >> (toUint32(rightValue) & 0x1f))
+ case token.UNSIGNED_SHIFT_RIGHT:
+ rightValue := self.GetValue(right)
+ // Shifting an unsigned integer is a logical shift
+ return toValue_uint32(toUint32(leftValue) >> (toUint32(rightValue) & 0x1f))
+
+ case token.INSTANCEOF:
+ rightValue := self.GetValue(right)
+ if !rightValue.IsObject() {
+ panic(newTypeError("Expecting a function in instanceof check, but got: %v", rightValue))
+ }
+ return toValue_bool(rightValue._object().HasInstance(leftValue))
+
+ case token.IN:
+ rightValue := self.GetValue(right)
+ if !rightValue.IsObject() {
+ panic(newTypeError())
+ }
+ return toValue_bool(rightValue._object().hasProperty(toString(leftValue)))
+ }
+
+ panic(hereBeDragons(operator))
+}
+
+func valueKindDispatchKey(left _valueType, right _valueType) int {
+ return (int(left) << 2) + int(right)
+}
+
+var equalDispatch map[int](func(Value, Value) bool) = makeEqualDispatch()
+
+func makeEqualDispatch() map[int](func(Value, Value) bool) {
+ key := valueKindDispatchKey
+ return map[int](func(Value, Value) bool){
+
+ key(valueNumber, valueObject): func(x Value, y Value) bool { return x.toFloat() == y.toFloat() },
+ key(valueString, valueObject): func(x Value, y Value) bool { return x.toFloat() == y.toFloat() },
+ key(valueObject, valueNumber): func(x Value, y Value) bool { return x.toFloat() == y.toFloat() },
+ key(valueObject, valueString): func(x Value, y Value) bool { return x.toFloat() == y.toFloat() },
+ }
+}
+
+type _lessThanResult int
+
+const (
+ lessThanFalse _lessThanResult = iota
+ lessThanTrue
+ lessThanUndefined
+)
+
+func calculateLessThan(left Value, right Value, leftFirst bool) _lessThanResult {
+
+ x := UndefinedValue()
+ y := x
+
+ if leftFirst {
+ x = toNumberPrimitive(left)
+ y = toNumberPrimitive(right)
+ } else {
+ y = toNumberPrimitive(right)
+ x = toNumberPrimitive(left)
+ }
+
+ result := false
+ if x._valueType != valueString || y._valueType != valueString {
+ x, y := x.toFloat(), y.toFloat()
+ if math.IsNaN(x) || math.IsNaN(y) {
+ return lessThanUndefined
+ }
+ result = x < y
+ } else {
+ x, y := x.toString(), y.toString()
+ result = x < y
+ }
+
+ if result {
+ return lessThanTrue
+ }
+
+ return lessThanFalse
+}
+
+var lessThanTable [4](map[_lessThanResult]bool) = [4](map[_lessThanResult]bool){
+ // <
+ map[_lessThanResult]bool{
+ lessThanFalse: false,
+ lessThanTrue: true,
+ lessThanUndefined: false,
+ },
+
+ // >
+ map[_lessThanResult]bool{
+ lessThanFalse: false,
+ lessThanTrue: true,
+ lessThanUndefined: false,
+ },
+
+ // <=
+ map[_lessThanResult]bool{
+ lessThanFalse: true,
+ lessThanTrue: false,
+ lessThanUndefined: false,
+ },
+
+ // >=
+ map[_lessThanResult]bool{
+ lessThanFalse: true,
+ lessThanTrue: false,
+ lessThanUndefined: false,
+ },
+}
+
+func (self *_runtime) calculateComparison(comparator token.Token, left Value, right Value) bool {
+
+ // FIXME Use strictEqualityComparison?
+ // TODO This might be redundant now (with regards to evaluateComparison)
+ x := self.GetValue(left)
+ y := self.GetValue(right)
+
+ kindEqualKind := false
+ result := true
+ negate := false
+
+ switch comparator {
+ case token.LESS:
+ result = lessThanTable[0][calculateLessThan(x, y, true)]
+ case token.GREATER:
+ result = lessThanTable[1][calculateLessThan(y, x, false)]
+ case token.LESS_OR_EQUAL:
+ result = lessThanTable[2][calculateLessThan(y, x, false)]
+ case token.GREATER_OR_EQUAL:
+ result = lessThanTable[3][calculateLessThan(x, y, true)]
+ case token.STRICT_NOT_EQUAL:
+ negate = true
+ fallthrough
+ case token.STRICT_EQUAL:
+ if x._valueType != y._valueType {
+ result = false
+ } else {
+ kindEqualKind = true
+ }
+ case token.NOT_EQUAL:
+ negate = true
+ fallthrough
+ case token.EQUAL:
+ if x._valueType == y._valueType {
+ kindEqualKind = true
+ } else if x._valueType <= valueUndefined && y._valueType <= valueUndefined {
+ result = true
+ } else if x._valueType <= valueUndefined || y._valueType <= valueUndefined {
+ result = false
+ } else if x._valueType <= valueString && y._valueType <= valueString {
+ result = x.toFloat() == y.toFloat()
+ } else if x._valueType == valueBoolean {
+ result = self.calculateComparison(token.EQUAL, toValue_float64(x.toFloat()), y)
+ } else if y._valueType == valueBoolean {
+ result = self.calculateComparison(token.EQUAL, x, toValue_float64(y.toFloat()))
+ } else if x._valueType == valueObject {
+ result = self.calculateComparison(token.EQUAL, toPrimitive(x), y)
+ } else if y._valueType == valueObject {
+ result = self.calculateComparison(token.EQUAL, x, toPrimitive(y))
+ } else {
+ panic(hereBeDragons("Unable to test for equality: %v ==? %v", x, y))
+ }
+ default:
+ panic(fmt.Errorf("Unknown comparator %s", comparator.String()))
+ }
+
+ if kindEqualKind {
+ switch x._valueType {
+ case valueUndefined, valueNull:
+ result = true
+ case valueNumber:
+ x := x.toFloat()
+ y := y.toFloat()
+ if math.IsNaN(x) || math.IsNaN(y) {
+ result = false
+ } else {
+ result = x == y
+ }
+ case valueString:
+ result = x.toString() == y.toString()
+ case valueBoolean:
+ result = x.toBoolean() == y.toBoolean()
+ case valueObject:
+ result = x._object() == y._object()
+ default:
+ goto ERROR
+ }
+ }
+
+ if negate {
+ result = !result
+ }
+
+ return result
+
+ERROR:
+ panic(hereBeDragons("%v (%v) %s %v (%v)", x, x._valueType, comparator, y, y._valueType))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/execution_context.go b/Godeps/_workspace/src/github.com/obscuren/otto/execution_context.go
new file mode 100644
index 000000000..07d891022
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/execution_context.go
@@ -0,0 +1,40 @@
+package otto
+
+type _executionContext struct {
+ LexicalEnvironment _environment
+ VariableEnvironment _environment
+ this *_object
+ eval bool // Replace this with kind?
+}
+
+func newExecutionContext(lexical _environment, variable _environment, this *_object) *_executionContext {
+ return &_executionContext{
+ LexicalEnvironment: lexical,
+ VariableEnvironment: variable,
+ this: this,
+ }
+}
+
+func (self *_executionContext) getValue(name string) Value {
+ strict := false
+ return self.LexicalEnvironment.GetValue(name, strict)
+}
+
+func (self *_executionContext) setValue(name string, value Value, throw bool) {
+ self.LexicalEnvironment.SetValue(name, value, throw)
+}
+
+func (self *_executionContext) newLexicalEnvironment(object *_object) (_environment, *_objectEnvironment) {
+ // Get runtime from the object (for now)
+ runtime := object.runtime
+ previousLexical := self.LexicalEnvironment
+ newLexical := runtime.newObjectEnvironment(object, self.LexicalEnvironment)
+ self.LexicalEnvironment = newLexical
+ return previousLexical, newLexical
+}
+
+func (self *_executionContext) newDeclarativeEnvironment(runtime *_runtime) _environment {
+ previousLexical := self.LexicalEnvironment
+ self.LexicalEnvironment = runtime.newDeclarativeEnvironment(self.LexicalEnvironment)
+ return previousLexical
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/file/README.markdown b/Godeps/_workspace/src/github.com/obscuren/otto/file/README.markdown
new file mode 100644
index 000000000..72bbdb1fd
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/file/README.markdown
@@ -0,0 +1,72 @@
+# file
+--
+ import "github.com/robertkrimen/otto/file"
+
+Package file encapsulates the file abstractions used by the ast & parser.
+
+## Usage
+
+#### type FileSet
+
+```go
+type FileSet struct {
+}
+```
+
+A FileSet represents a set of source files.
+
+#### func (*FileSet) AddFile
+
+```go
+func (self *FileSet) AddFile(filename, src string) int
+```
+AddFile adds a new file with the given filename and src.
+
+This an internal method, but exported for cross-package use.
+
+#### func (*FileSet) Position
+
+```go
+func (self *FileSet) Position(idx Idx) *Position
+```
+Position converts an Idx in the FileSet into a Position.
+
+#### type Idx
+
+```go
+type Idx int
+```
+
+Idx is a compact encoding of a source position within a file set. It can be
+converted into a Position for a more convenient, but much larger,
+representation.
+
+#### type Position
+
+```go
+type Position struct {
+ Filename string // The filename where the error occurred, if any
+ Offset int // The src offset
+ Line int // The line number, starting at 1
+ Column int // The column number, starting at 1 (The character count)
+
+}
+```
+
+Position describes an arbitrary source position including the filename, line,
+and column location.
+
+#### func (*Position) String
+
+```go
+func (self *Position) String() string
+```
+String returns a string in one of several forms:
+
+ file:line:column A valid position with filename
+ line:column A valid position without filename
+ file An invalid position with filename
+ - An invalid position without filename
+
+--
+**godocdown** http://github.com/robertkrimen/godocdown
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/file/file.go b/Godeps/_workspace/src/github.com/obscuren/otto/file/file.go
new file mode 100644
index 000000000..5e893d819
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/file/file.go
@@ -0,0 +1,106 @@
+// Package file encapsulates the file abstractions used by the ast & parser.
+//
+package file
+
+import (
+ "fmt"
+ "strings"
+)
+
+// Idx is a compact encoding of a source position within a file set.
+// It can be converted into a Position for a more convenient, but much
+// larger, representation.
+type Idx int
+
+// Position describes an arbitrary source position
+// including the filename, line, and column location.
+type Position struct {
+ Filename string // The filename where the error occurred, if any
+ Offset int // The src offset
+ Line int // The line number, starting at 1
+ Column int // The column number, starting at 1 (The character count)
+
+}
+
+// A Position is valid if the line number is > 0.
+
+func (self *Position) isValid() bool {
+ return self.Line > 0
+}
+
+// String returns a string in one of several forms:
+//
+// file:line:column A valid position with filename
+// line:column A valid position without filename
+// file An invalid position with filename
+// - An invalid position without filename
+//
+func (self *Position) String() string {
+ str := self.Filename
+ if self.isValid() {
+ if str != "" {
+ str += ":"
+ }
+ str += fmt.Sprintf("%d:%d", self.Line, self.Column)
+ }
+ if str == "" {
+ str = "-"
+ }
+ return str
+}
+
+// FileSet
+
+// A FileSet represents a set of source files.
+type FileSet struct {
+ files []*_file
+ last *_file
+}
+
+// AddFile adds a new file with the given filename and src.
+//
+// This an internal method, but exported for cross-package use.
+func (self *FileSet) AddFile(filename, src string) int {
+ base := self.nextBase()
+ file := &_file{
+ filename: filename,
+ src: src,
+ base: base,
+ }
+ self.files = append(self.files, file)
+ self.last = file
+ return base
+}
+
+func (self *FileSet) nextBase() int {
+ if self.last == nil {
+ return 1
+ }
+ return self.last.base + len(self.last.src) + 1
+}
+
+// Position converts an Idx in the FileSet into a Position.
+func (self *FileSet) Position(idx Idx) *Position {
+ position := &Position{}
+ for _, file := range self.files {
+ if idx <= Idx(file.base+len(file.src)) {
+ offset := int(idx) - file.base
+ src := file.src[:offset]
+ position.Filename = file.filename
+ position.Offset = offset
+ position.Line = 1 + strings.Count(src, "\n")
+ if index := strings.LastIndex(src, "\n"); index >= 0 {
+ position.Column = offset - index
+ } else {
+ position.Column = 1 + len(src)
+ }
+ }
+ }
+ return position
+}
+
+type _file struct {
+ filename string
+ src string
+ base int // This will always be 1 or greater
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/function_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/function_test.go
new file mode 100644
index 000000000..bd438022d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/function_test.go
@@ -0,0 +1,272 @@
+package otto
+
+import (
+ "testing"
+)
+
+func TestFunction(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = Object.getOwnPropertyDescriptor(Function, "prototype");
+ [ [ typeof Function.prototype, typeof Function.prototype.length, Function.prototype.length ],
+ [ abc.writable, abc.enumerable, abc.configurable ] ];
+ `, "function,number,0,false,false,false")
+ })
+}
+
+func Test_argumentList2parameterList(t *testing.T) {
+ tt(t, func() {
+ is(argumentList2parameterList([]Value{toValue("abc, def"), toValue("ghi")}), []string{"abc", "def", "ghi"})
+ })
+}
+
+func TestFunction_new(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise:
+ new Function({});
+ `, "SyntaxError: Unexpected identifier")
+
+ test(`
+ var abc = Function("def, ghi", "jkl", "return def+ghi+jkl");
+ [ typeof abc, abc instanceof Function, abc("ab", "ba", 1) ];
+ `, "function,true,abba1")
+
+ test(`raise:
+ var abc = {
+ toString: function() { throw 1; }
+ };
+ var def = {
+ toString: function() { throw 2; }
+ };
+ var ghi = new Function(abc, def);
+ ghi;
+ `, "1")
+
+ // S15.3.2.1_A3_T10
+ test(`raise:
+ var abc = {
+ toString: function() { return "z;x"; }
+ };
+ var def = "return this";
+ var ghi = new Function(abc, def);
+ ghi;
+ `, "SyntaxError: Unexpected token ;")
+
+ test(`raise:
+ var abc;
+ var def = "return true";
+ var ghi = new Function(null, def);
+ ghi;
+ `, "SyntaxError: Unexpected token null")
+ })
+}
+
+func TestFunction_apply(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Function.prototype.apply.length`, 2)
+ test(`String.prototype.substring.apply("abc", [1, 11])`, "bc")
+ })
+}
+
+func TestFunction_call(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Function.prototype.call.length`, 1)
+ test(`String.prototype.substring.call("abc", 1, 11)`, "bc")
+ })
+}
+
+func TestFunctionArguments(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ // Should not be able to delete arguments
+ test(`
+ function abc(def, arguments){
+ delete def;
+ return def;
+ }
+ abc(1);
+ `, 1)
+
+ // Again, should not be able to delete arguments
+ test(`
+ function abc(def){
+ delete def;
+ return def;
+ }
+ abc(1);
+ `, 1)
+
+ // Test typeof of a function argument
+ test(`
+ function abc(def, ghi, jkl){
+ return typeof jkl
+ }
+ abc("1st", "2nd", "3rd", "4th", "5th");
+ `, "string")
+
+ test(`
+ function abc(def, ghi, jkl){
+ arguments[0] = 3.14;
+ arguments[1] = 'Nothing happens';
+ arguments[2] = 42;
+ if (3.14 === def && 'Nothing happens' === ghi && 42 === jkl)
+ return true;
+ }
+ abc(-1, 4.2, 314);
+ `, true)
+ })
+}
+
+func TestFunctionDeclarationInFunction(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ // Function declarations happen AFTER parameter/argument declarations
+ // That is, a function declared within a function will shadow/overwrite
+ // declared parameters
+
+ test(`
+ function abc(def){
+ return def;
+ function def(){
+ return 1;
+ }
+ }
+ typeof abc();
+ `, "function")
+ })
+}
+
+func TestArguments_defineOwnProperty(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc;
+ var def = true;
+ var ghi = {};
+ (function (a, b, c) {
+ Object.defineProperty(arguments, "0", {
+ value: 42,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ Object.defineProperty(arguments, "1", {
+ value: 3.14,
+ configurable: true,
+ enumerable: true
+ });
+ abc = Object.getOwnPropertyDescriptor(arguments, "0");
+ for (var name in arguments) {
+ ghi[name] = (ghi[name] || 0) + 1;
+ if (name === "0") {
+ def = false;
+ }
+ }
+ }(0, 1, 2));
+ [ abc.value, abc.writable, abc.enumerable, abc.configurable, def, ghi["1"] ];
+ `, "42,false,false,false,true,1")
+ })
+}
+
+func TestFunction_bind(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`
+ abc = function(){
+ return "abc";
+ };
+ def = abc.bind();
+ [ typeof def.prototype, typeof def.hasOwnProperty, def.hasOwnProperty("caller"), def.hasOwnProperty("arguments"), def() ];
+ `, "object,function,true,true,abc")
+
+ test(`
+ abc = function(){
+ return arguments[1];
+ };
+ def = abc.bind(undefined, "abc");
+ ghi = abc.bind(undefined, "abc", "ghi");
+ [ def(), def("def"), ghi("def") ];
+ `, ",def,ghi")
+
+ test(`
+ var abc = function () {};
+ var ghi;
+ try {
+ Object.defineProperty(Function.prototype, "xyzzy", {
+ value: 1001,
+ writable: true,
+ enumerable: true,
+ configurable: true
+ });
+ var def = abc.bind({});
+ ghi = !def.hasOwnProperty("xyzzy") && ghi.xyzzy === 1001;
+ } finally {
+ delete Function.prototype.xyzzy;
+ }
+ [ ghi ];
+ `, "true")
+
+ test(`
+ var abc = function (def, ghi) {};
+ var jkl = abc.bind({});
+ var mno = abc.bind({}, 1, 2);
+ [ jkl.length, mno.length ];
+ `, "2,0")
+
+ test(`raise:
+ Math.bind();
+ `, "TypeError: undefined is not a function")
+
+ test(`
+ function construct(fn, arguments) {
+ var bound = Function.prototype.bind.apply(fn, [null].concat(arguments));
+ return new bound();
+ }
+ var abc = construct(Date, [1957, 4, 27]);
+ Object.prototype.toString.call(abc);
+ `, "[object Date]")
+
+ test(`
+ var fn = function (x, y, z) {
+ var result = {};
+ result.abc = x + y + z;
+ result.def = arguments[0] === "a" && arguments.length === 3;
+ return result;
+ };
+ var newFn = Function.prototype.bind.call(fn, {}, "a", "b", "c");
+ var result = new newFn();
+ [ result.hasOwnProperty("abc"), result.hasOwnProperty("def"), result.abc, result.def ];
+ `, "true,true,abc,true")
+ })
+}
+
+func TestFunction_toString(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise:
+ Function.prototype.toString.call(undefined);
+ `, "TypeError")
+
+ test(`
+ abc = function() { return -1 ;
+}
+ 1;
+ abc.toString();
+ `, "function() { return -1 ;\n}")
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/global.go b/Godeps/_workspace/src/github.com/obscuren/otto/global.go
new file mode 100644
index 000000000..87030a0e0
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/global.go
@@ -0,0 +1,214 @@
+package otto
+
+import (
+ "strconv"
+ "time"
+)
+
+var (
+ prototypeValueObject = interface{}(nil)
+ prototypeValueFunction = _functionObject{
+ call: _nativeCallFunction{"", func(_ FunctionCall) Value {
+ return UndefinedValue()
+ }},
+ }
+ prototypeValueString = _stringASCII("")
+ // TODO Make this just false?
+ prototypeValueBoolean = Value{
+ _valueType: valueBoolean,
+ value: false,
+ }
+ prototypeValueNumber = Value{
+ _valueType: valueNumber,
+ value: 0,
+ }
+ prototypeValueDate = _dateObject{
+ epoch: 0,
+ isNaN: false,
+ time: time.Unix(0, 0).UTC(),
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ }
+ prototypeValueRegExp = _regExpObject{
+ regularExpression: nil,
+ global: false,
+ ignoreCase: false,
+ multiline: false,
+ source: "",
+ flags: "",
+ }
+)
+
+func newContext() *_runtime {
+
+ self := &_runtime{}
+
+ self.GlobalEnvironment = self.newObjectEnvironment(nil, nil)
+ self.GlobalObject = self.GlobalEnvironment.Object
+
+ self.EnterGlobalExecutionContext()
+
+ _newContext(self)
+
+ self.eval = self.GlobalObject.property["eval"].value.(Value).value.(*_object)
+ self.GlobalObject.prototype = self.Global.ObjectPrototype
+ //self.parser = ast.NewParser()
+
+ return self
+}
+
+func (runtime *_runtime) newBaseObject() *_object {
+ self := newObject(runtime, "")
+ return self
+}
+
+func (runtime *_runtime) newClassObject(class string) *_object {
+ return newObject(runtime, class)
+}
+
+func (runtime *_runtime) newPrimitiveObject(class string, value Value) *_object {
+ self := runtime.newClassObject(class)
+ self.value = value
+ return self
+}
+
+func (self *_object) primitiveValue() Value {
+ switch value := self.value.(type) {
+ case Value:
+ return value
+ case _stringObject:
+ return toValue_string(value.String())
+ }
+ return Value{}
+}
+
+func (self *_object) hasPrimitive() bool {
+ switch self.value.(type) {
+ case Value, _stringObject:
+ return true
+ }
+ return false
+}
+
+func (runtime *_runtime) newObject() *_object {
+ self := runtime.newClassObject("Object")
+ self.prototype = runtime.Global.ObjectPrototype
+ return self
+}
+
+func (runtime *_runtime) newArray(length uint32) *_object {
+ self := runtime.newArrayObject(length)
+ self.prototype = runtime.Global.ArrayPrototype
+ return self
+}
+
+func (runtime *_runtime) newArrayOf(valueArray []Value) *_object {
+ self := runtime.newArray(uint32(len(valueArray)))
+ for index, value := range valueArray {
+ if value.isEmpty() {
+ continue
+ }
+ self.defineProperty(strconv.FormatInt(int64(index), 10), value, 0111, false)
+ }
+ return self
+}
+
+func (runtime *_runtime) newString(value Value) *_object {
+ self := runtime.newStringObject(value)
+ self.prototype = runtime.Global.StringPrototype
+ return self
+}
+
+func (runtime *_runtime) newBoolean(value Value) *_object {
+ self := runtime.newBooleanObject(value)
+ self.prototype = runtime.Global.BooleanPrototype
+ return self
+}
+
+func (runtime *_runtime) newNumber(value Value) *_object {
+ self := runtime.newNumberObject(value)
+ self.prototype = runtime.Global.NumberPrototype
+ return self
+}
+
+func (runtime *_runtime) newRegExp(patternValue Value, flagsValue Value) *_object {
+
+ pattern := ""
+ flags := ""
+ if object := patternValue._object(); object != nil && object.class == "RegExp" {
+ if flagsValue.IsDefined() {
+ panic(newTypeError("Cannot supply flags when constructing one RegExp from another"))
+ }
+ regExp := object.regExpValue()
+ pattern = regExp.source
+ flags = regExp.flags
+ } else {
+ if patternValue.IsDefined() {
+ pattern = toString(patternValue)
+ }
+ if flagsValue.IsDefined() {
+ flags = toString(flagsValue)
+ }
+ }
+
+ return runtime._newRegExp(pattern, flags)
+}
+
+func (runtime *_runtime) _newRegExp(pattern string, flags string) *_object {
+ self := runtime.newRegExpObject(pattern, flags)
+ self.prototype = runtime.Global.RegExpPrototype
+ return self
+}
+
+// TODO Should (probably) be one argument, right? This is redundant
+func (runtime *_runtime) newDate(epoch float64) *_object {
+ self := runtime.newDateObject(epoch)
+ self.prototype = runtime.Global.DatePrototype
+ return self
+}
+
+func (runtime *_runtime) newError(name string, message Value) *_object {
+ var self *_object
+ switch name {
+ case "EvalError":
+ return runtime.newEvalError(message)
+ case "TypeError":
+ return runtime.newTypeError(message)
+ case "RangeError":
+ return runtime.newRangeError(message)
+ case "ReferenceError":
+ return runtime.newReferenceError(message)
+ case "SyntaxError":
+ return runtime.newSyntaxError(message)
+ case "URIError":
+ return runtime.newURIError(message)
+ }
+
+ self = runtime.newErrorObject(message)
+ self.prototype = runtime.Global.ErrorPrototype
+ if name != "" {
+ self.defineProperty("name", toValue_string(name), 0111, false)
+ }
+ return self
+}
+
+func (runtime *_runtime) newNativeFunction(name string, _nativeFunction _nativeFunction) *_object {
+ self := runtime.newNativeFunctionObject(name, _nativeFunction, 0)
+ self.prototype = runtime.Global.FunctionPrototype
+ prototype := runtime.newObject()
+ self.defineProperty("prototype", toValue_object(prototype), 0100, false)
+ prototype.defineProperty("constructor", toValue_object(self), 0100, false)
+ return self
+}
+
+func (runtime *_runtime) newNodeFunction(node *_nodeFunctionLiteral, scopeEnvironment _environment) *_object {
+ // TODO Implement 13.2 fully
+ self := runtime.newNodeFunctionObject(node, scopeEnvironment)
+ self.prototype = runtime.Global.FunctionPrototype
+ prototype := runtime.newObject()
+ self.defineProperty("prototype", toValue_object(prototype), 0100, false)
+ prototype.defineProperty("constructor", toValue_object(self), 0101, false)
+ return self
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/global_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/global_test.go
new file mode 100644
index 000000000..c5204e54c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/global_test.go
@@ -0,0 +1,352 @@
+package otto
+
+import (
+ "fmt"
+ "math"
+ "strings"
+ "testing"
+)
+
+func TestGlobal(t *testing.T) {
+ tt(t, func() {
+ test, vm := test()
+
+ runtime := vm.vm.runtime
+
+ {
+ call := func(object interface{}, src string, argumentList ...interface{}) Value {
+ var tgt *Object
+ switch object := object.(type) {
+ case Value:
+ tgt = object.Object()
+ case *Object:
+ tgt = object
+ case *_object:
+ tgt = toValue_object(object).Object()
+ default:
+ panic("Here be dragons.")
+ }
+ value, err := tgt.Call(src, argumentList...)
+ is(err, nil)
+ return value
+ }
+
+ value := runtime.localGet("Object")._object().Call(UndefinedValue(), []Value{toValue(runtime.newObject())})
+ is(value.IsObject(), true)
+ is(value, "[object Object]")
+ is(value._object().prototype == runtime.Global.ObjectPrototype, true)
+ is(value._object().prototype == runtime.Global.Object.get("prototype")._object(), true)
+ is(value._object().get("toString"), "function toString() { [native code] }")
+ is(call(value.Object(), "hasOwnProperty", "hasOwnProperty"), false)
+
+ is(call(value._object().get("toString")._object().prototype, "toString"), "function () { [native code] }") // TODO Is this right?
+ is(value._object().get("toString")._object().get("toString"), "function toString() { [native code] }")
+ is(value._object().get("toString")._object().get("toString")._object(), "function toString() { [native code] }")
+
+ is(call(value._object(), "propertyIsEnumerable", "isPrototypeOf"), false)
+ value._object().put("xyzzy", toValue_string("Nothing happens."), false)
+ is(call(value, "propertyIsEnumerable", "isPrototypeOf"), false)
+ is(call(value, "propertyIsEnumerable", "xyzzy"), true)
+ is(value._object().get("xyzzy"), "Nothing happens.")
+
+ is(call(runtime.localGet("Object"), "isPrototypeOf", value), false)
+ is(call(runtime.localGet("Object")._object().get("prototype"), "isPrototypeOf", value), true)
+ is(call(runtime.localGet("Function"), "isPrototypeOf", value), false)
+
+ is(runtime.newObject().prototype == runtime.Global.Object.get("prototype")._object(), true)
+
+ abc := runtime.newBoolean(toValue_bool(true))
+ is(toValue_object(abc), "true") // TODO Call primitive?
+
+ def := runtime.localGet("Boolean")._object().Construct(UndefinedValue(), []Value{})
+ is(def, "false") // TODO Call primitive?
+ }
+
+ test(`new Number().constructor == Number`, true)
+
+ test(`this.hasOwnProperty`, "function hasOwnProperty() { [native code] }")
+
+ test(`eval.length === 1`, true)
+ test(`eval.prototype === undefined`, true)
+ test(`raise: new eval()`, "TypeError: function eval() { [native code] } is not a constructor")
+
+ test(`
+ [
+ [ delete undefined, undefined ],
+ [ delete NaN, NaN ],
+ [ delete Infinity, Infinity ],
+ ];
+ `, "false,,false,NaN,false,Infinity")
+
+ test(`
+ Object.getOwnPropertyNames(Function('return this')()).sort();
+ `, "Array,Boolean,Date,Error,EvalError,Function,Infinity,JSON,Math,NaN,Number,Object,RangeError,ReferenceError,RegExp,String,SyntaxError,TypeError,URIError,console,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,eval,isFinite,isNaN,parseFloat,parseInt,undefined,unescape")
+
+ // __defineGetter__,__defineSetter__,__lookupGetter__,__lookupSetter__,constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf
+ test(`
+ Object.getOwnPropertyNames(Object.prototype).sort();
+ `, "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf")
+
+ // arguments,caller,length,name,prototype
+ test(`
+ Object.getOwnPropertyNames(EvalError).sort();
+ `, "length,prototype")
+
+ test(`
+ var abc = [];
+ var def = [EvalError, RangeError, ReferenceError, SyntaxError, TypeError, URIError];
+ for (constructor in def) {
+ abc.push(def[constructor] === def[constructor].prototype.constructor);
+ }
+ def = [Array, Boolean, Date, Function, Number, Object, RegExp, String, SyntaxError];
+ for (constructor in def) {
+ abc.push(def[constructor] === def[constructor].prototype.constructor);
+ }
+ abc;
+ `, "true,true,true,true,true,true,true,true,true,true,true,true,true,true,true")
+
+ test(`
+ [ Array.prototype.constructor === Array, Array.constructor === Function ];
+ `, "true,true")
+
+ test(`
+ [ Number.prototype.constructor === Number, Number.constructor === Function ];
+ `, "true,true")
+
+ test(`
+ [ Function.prototype.constructor === Function, Function.constructor === Function ];
+ `, "true,true")
+ })
+}
+
+func TestGlobalLength(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [ Object.length, Function.length, RegExp.length, Math.length ];
+ `, "1,1,2,")
+ })
+}
+
+func TestGlobalError(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [ TypeError.length, TypeError(), TypeError("Nothing happens.") ];
+ `, "1,TypeError,TypeError: Nothing happens.")
+
+ test(`
+ [ URIError.length, URIError(), URIError("Nothing happens.") ];
+ `, "1,URIError,URIError: Nothing happens.")
+ })
+}
+
+func TestGlobalReadOnly(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Number.POSITIVE_INFINITY`, math.Inf(1))
+
+ test(`
+ Number.POSITIVE_INFINITY = 1;
+ `, 1)
+
+ test(`Number.POSITIVE_INFINITY`, math.Inf(1))
+
+ test(`
+ Number.POSITIVE_INFINITY = 1;
+ Number.POSITIVE_INFINITY;
+ `, math.Inf(1))
+ })
+}
+
+func Test_isNaN(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`isNaN(0)`, false)
+ test(`isNaN("Xyzzy")`, true)
+ test(`isNaN()`, true)
+ test(`isNaN(NaN)`, true)
+ test(`isNaN(Infinity)`, false)
+
+ test(`isNaN.length === 1`, true)
+ test(`isNaN.prototype === undefined`, true)
+ })
+}
+
+func Test_isFinite(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`isFinite(0)`, true)
+ test(`isFinite("Xyzzy")`, false)
+ test(`isFinite()`, false)
+ test(`isFinite(NaN)`, false)
+ test(`isFinite(Infinity)`, false)
+ test(`isFinite(new Number(451));`, true)
+
+ test(`isFinite.length === 1`, true)
+ test(`isFinite.prototype === undefined`, true)
+ })
+}
+
+func Test_parseInt(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`parseInt("0")`, 0)
+ test(`parseInt("11")`, 11)
+ test(`parseInt(" 11")`, 11)
+ test(`parseInt("11 ")`, 11)
+ test(`parseInt(" 11 ")`, 11)
+ test(`parseInt(" 11\n")`, 11)
+ test(`parseInt(" 11\n", 16)`, 17)
+
+ test(`parseInt("Xyzzy")`, _NaN)
+
+ test(`parseInt(" 0x11\n", 16)`, 17)
+ test(`parseInt("0x0aXyzzy", 16)`, 10)
+ test(`parseInt("0x1", 0)`, 1)
+ test(`parseInt("0x10000000000000000000", 16)`, float64(75557863725914323419136))
+
+ test(`parseInt.length === 2`, true)
+ test(`parseInt.prototype === undefined`, true)
+ })
+}
+
+func Test_parseFloat(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`parseFloat("0")`, 0)
+ test(`parseFloat("11")`, 11)
+ test(`parseFloat(" 11")`, 11)
+ test(`parseFloat("11 ")`, 11)
+ test(`parseFloat(" 11 ")`, 11)
+ test(`parseFloat(" 11\n")`, 11)
+ test(`parseFloat(" 11\n", 16)`, 11)
+ test(`parseFloat("11.1")`, 11.1)
+
+ test(`parseFloat("Xyzzy")`, _NaN)
+
+ test(`parseFloat(" 0x11\n", 16)`, 0)
+ test(`parseFloat("0x0a")`, 0)
+ test(`parseFloat("0x0aXyzzy")`, 0)
+ test(`parseFloat("Infinity")`, _Infinity)
+ test(`parseFloat("infinity")`, _NaN)
+ test(`parseFloat("0x")`, 0)
+ test(`parseFloat("11x")`, 11)
+ test(`parseFloat("Infinity1")`, _Infinity)
+
+ test(`parseFloat.length === 1`, true)
+ test(`parseFloat.prototype === undefined`, true)
+ })
+}
+
+func Test_encodeURI(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`encodeURI("http://example.com/ Nothing happens.")`, "http://example.com/%20Nothing%20happens.")
+ test(`encodeURI("http://example.com/ _^#")`, "http://example.com/%20_%5E#")
+ test(`encodeURI(String.fromCharCode("0xE000"))`, "%EE%80%80")
+ test(`encodeURI(String.fromCharCode("0xFFFD"))`, "%EF%BF%BD")
+ test(`raise: encodeURI(String.fromCharCode("0xDC00"))`, "URIError: URI malformed")
+
+ test(`encodeURI.length === 1`, true)
+ test(`encodeURI.prototype === undefined`, true)
+ })
+}
+
+func Test_encodeURIComponent(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`encodeURIComponent("http://example.com/ Nothing happens.")`, "http%3A%2F%2Fexample.com%2F%20Nothing%20happens.")
+ test(`encodeURIComponent("http://example.com/ _^#")`, "http%3A%2F%2Fexample.com%2F%20_%5E%23")
+ })
+}
+
+func Test_decodeURI(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`decodeURI(encodeURI("http://example.com/ Nothing happens."))`, "http://example.com/ Nothing happens.")
+ test(`decodeURI(encodeURI("http://example.com/ _^#"))`, "http://example.com/ _^#")
+ test(`raise: decodeURI("http://example.com/ _^#%")`, "URIError: URI malformed")
+ test(`raise: decodeURI("%DF%7F")`, "URIError: URI malformed")
+ for _, check := range strings.Fields("+ %3B %2F %3F %3A %40 %26 %3D %2B %24 %2C %23") {
+ test(fmt.Sprintf(`decodeURI("%s")`, check), check)
+ }
+
+ test(`decodeURI.length === 1`, true)
+ test(`decodeURI.prototype === undefined`, true)
+ })
+}
+
+func Test_decodeURIComponent(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`decodeURIComponent(encodeURI("http://example.com/ Nothing happens."))`, "http://example.com/ Nothing happens.")
+ test(`decodeURIComponent(encodeURI("http://example.com/ _^#"))`, "http://example.com/ _^#")
+
+ test(`decodeURIComponent.length === 1`, true)
+ test(`decodeURIComponent.prototype === undefined`, true)
+
+ test(`
+ var global = Function('return this')();
+ var abc = Object.getOwnPropertyDescriptor(global, "decodeURIComponent");
+ [ abc.value === global.decodeURIComponent, abc.writable, abc.enumerable, abc.configurable ];
+ `, "true,true,false,true")
+ })
+}
+
+func TestGlobal_skipEnumeration(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var found = [];
+ for (var test in this) {
+ if (false ||
+ test === 'NaN' ||
+ test === 'undefined' ||
+ test === 'Infinity' ||
+ false) {
+ found.push(test)
+ }
+ }
+ found.length;
+ `, 0)
+
+ test(`
+ var found = [];
+ for (var test in this) {
+ if (false ||
+ test === 'Object' ||
+ test === 'Function' ||
+ test === 'String' ||
+ test === 'Number' ||
+ test === 'Array' ||
+ test === 'Boolean' ||
+ test === 'Date' ||
+ test === 'RegExp' ||
+ test === 'Error' ||
+ test === 'EvalError' ||
+ test === 'RangeError' ||
+ test === 'ReferenceError' ||
+ test === 'SyntaxError' ||
+ test === 'TypeError' ||
+ test === 'URIError' ||
+ false) {
+ found.push(test)
+ }
+ }
+ found.length;
+ `, 0)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/inline b/Godeps/_workspace/src/github.com/obscuren/otto/inline
new file mode 100644
index 000000000..a16d87ad7
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/inline
@@ -0,0 +1,1066 @@
+#!/usr/bin/env perl
+
+my $_fmt;
+$_fmt = "gofmt";
+$_fmt = "cat -n" if "cat" eq ($ARGV[0] || "");
+
+use strict;
+use warnings;
+use IO::File;
+
+my $self = __PACKAGE__;
+
+sub functionLabel ($) {
+ return "$_[0]_function";
+}
+
+sub trim ($) {
+ local $_ = shift;
+ s/^\s*//, s/\s*$// for $_;
+ return $_;
+}
+
+open my $fmt, "|-", "$_fmt" or die $!;
+
+$fmt->print(<<_END_);
+package otto
+
+import (
+ "math"
+)
+
+func _newContext(runtime *_runtime) {
+@{[ join "\n", $self->newContext() ]}
+}
+
+func newConsoleObject(runtime *_runtime) *_object {
+@{[ join "\n", $self->newConsoleObject() ]}
+}
+_END_
+
+for (qw/int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float32 float64/) {
+ $fmt->print(<<_END_);
+
+func toValue_$_(value $_) Value {
+ return Value{
+ _valueType: valueNumber,
+ value: value,
+ }
+}
+_END_
+}
+
+$fmt->print(<<_END_);
+
+func toValue_string(value string) Value {
+ return Value{
+ _valueType: valueString,
+ value: value,
+ }
+}
+
+func toValue_string16(value []uint16) Value {
+ return Value{
+ _valueType: valueString,
+ value: value,
+ }
+}
+
+func toValue_bool(value bool) Value {
+ return Value{
+ _valueType: valueBoolean,
+ value: value,
+ }
+}
+
+func toValue_object(value *_object) Value {
+ return Value{
+ _valueType: valueObject,
+ value: value,
+ }
+}
+_END_
+
+close $fmt;
+
+sub newConsoleObject {
+ my $self = shift;
+
+ return
+ $self->block(sub {
+ my $class = "Console";
+ my @got = $self->functionDeclare(
+ $class,
+ "log", 0,
+ "debug:log", 0,
+ "info:log", 0,
+ "error", 0,
+ "warn:error", 0,
+ "dir", 0,
+ "time", 0,
+ "timeEnd", 0,
+ "trace", 0,
+ "assert", 0,
+ );
+ return
+ "return @{[ $self->newObject(@got) ]}"
+ }),
+ ;
+}
+
+sub newContext {
+ my $self = shift;
+ return
+ # ObjectPrototype
+ $self->block(sub {
+ my $class = "Object";
+ return
+ ".${class}Prototype =",
+ $self->globalPrototype(
+ $class,
+ "_classObject",
+ undef,
+ "prototypeValueObject",
+ ),
+ }),
+
+ # FunctionPrototype
+ $self->block(sub {
+ my $class = "Function";
+ return
+ ".${class}Prototype =",
+ $self->globalPrototype(
+ $class,
+ "_classObject",
+ ".ObjectPrototype",
+ "prototypeValueFunction",
+ ),
+ }),
+
+ # ObjectPrototype
+ $self->block(sub {
+ my $class = "Object";
+ my @got = $self->functionDeclare(
+ $class,
+ "valueOf", 0,
+ "toString", 0,
+ "toLocaleString", 0,
+ "hasOwnProperty", 1,
+ "isPrototypeOf", 1,
+ "propertyIsEnumerable", 1,
+ );
+ my @propertyMap = $self->propertyMap(
+ @got,
+ $self->property("constructor", undef),
+ );
+ my $propertyOrder = $self->propertyOrder(@propertyMap);
+ $propertyOrder =~ s/^propertyOrder: //;
+ return
+ ".${class}Prototype.property =", @propertyMap,
+ ".${class}Prototype.propertyOrder =", $propertyOrder,
+ }),
+
+ # FunctionPrototype
+ $self->block(sub {
+ my $class = "Function";
+ my @got = $self->functionDeclare(
+ $class,
+ "toString", 0,
+ "apply", 2,
+ "call", 1,
+ "bind", 1,
+ );
+ my @propertyMap = $self->propertyMap(
+ @got,
+ $self->property("constructor", undef),
+ $self->property("length", $self->numberValue(0), "0"),
+ );
+ my $propertyOrder = $self->propertyOrder(@propertyMap);
+ $propertyOrder =~ s/^propertyOrder: //;
+ return
+ ".${class}Prototype.property =", @propertyMap,
+ ".${class}Prototype.propertyOrder =", $propertyOrder,
+ }),
+
+ # Object
+ $self->block(sub {
+ my $class = "Object";
+ return
+ ".$class =",
+ $self->globalFunction(
+ $class,
+ 1,
+ $self->functionDeclare(
+ $class,
+ "getPrototypeOf", 1,
+ "getOwnPropertyDescriptor", 2,
+ "defineProperty", 3,
+ "defineProperties", 2,
+ "create", 2,
+ "isExtensible", 1,
+ "preventExtensions", 1,
+ "isSealed", 1,
+ "seal", 1,
+ "isFrozen", 1,
+ "freeze", 1,
+ "keys", 1,
+ "getOwnPropertyNames", 1,
+ ),
+ ),
+ }),
+
+ # Function
+ $self->block(sub {
+ my $class = "Function";
+ return
+ "Function :=",
+ $self->globalFunction(
+ $class,
+ 1,
+ ),
+ ".$class = Function",
+ }),
+
+ # Array
+ $self->block(sub {
+ my $class = "Array";
+ my @got = $self->functionDeclare(
+ $class,
+ "toString", 0,
+ "toLocaleString", 0,
+ "concat", 1,
+ "join", 1,
+ "splice", 2,
+ "shift", 0,
+ "pop", 0,
+ "push", 1,
+ "slice", 2,
+ "unshift", 1,
+ "reverse", 0,
+ "sort", 1,
+ "indexOf", 1,
+ "lastIndexOf", 1,
+ "every", 1,
+ "some", 1,
+ "forEach", 1,
+ "map", 1,
+ "filter", 1,
+ "reduce", 1,
+ "reduceRight", 1,
+ );
+ return
+ ".${class}Prototype =",
+ $self->globalPrototype(
+ $class,
+ "_classArray",
+ ".ObjectPrototype",
+ undef,
+ $self->property("length", $self->numberValue("uint32(0)"), "0100"),
+ @got,
+ ),
+ ".$class =",
+ $self->globalFunction(
+ $class,
+ 1,
+ $self->functionDeclare(
+ $class,
+ "isArray", 1,
+ ),
+ ),
+ }),
+
+ # String
+ $self->block(sub {
+ my $class = "String";
+ my @got = $self->functionDeclare(
+ $class,
+ "toString", 0,
+ "valueOf", 0,
+ "charAt", 1,
+ "charCodeAt", 1,
+ "concat", 1,
+ "indexOf", 1,
+ "lastIndexOf", 1,
+ "match", 1,
+ "replace", 2,
+ "search", 1,
+ "split", 2,
+ "slice", 2,
+ "substring", 2,
+ "toLowerCase", 0,
+ "toUpperCase", 0,
+ "substr", 2,
+ "trim", 0,
+ "trimLeft", 0,
+ "trimRight", 0,
+ "localeCompare", 1,
+ "toLocaleLowerCase", 0,
+ "toLocaleUpperCase", 0,
+ );
+ return
+ ".${class}Prototype =",
+ $self->globalPrototype(
+ $class,
+ "_classString",
+ ".ObjectPrototype",
+ "prototypeValueString",
+ $self->property("length", $self->numberValue("int(0)"), "0"),
+ @got,
+ ),
+ ".$class =",
+ $self->globalFunction(
+ $class,
+ 1,
+ $self->functionDeclare(
+ $class,
+ "fromCharCode", 1,
+ ),
+ ),
+ }),
+
+ # Boolean
+ $self->block(sub {
+ my $class = "Boolean";
+ my @got = $self->functionDeclare(
+ $class,
+ "toString", 0,
+ "valueOf", 0,
+ );
+ return
+ ".${class}Prototype =",
+ $self->globalPrototype(
+ $class,
+ "_classObject",
+ ".ObjectPrototype",
+ "prototypeValueBoolean",
+ @got,
+ ),
+ ".$class =",
+ $self->globalFunction(
+ $class,
+ 1,
+ $self->functionDeclare(
+ $class,
+ ),
+ ),
+ }),
+
+ # Number
+ $self->block(sub {
+ my $class = "Number";
+ my @got = $self->functionDeclare(
+ $class,
+ "toString", 0,
+ "valueOf", 0,
+ "toFixed", 1,
+ "toExponential", 1,
+ "toPrecision", 1,
+ "toLocaleString", 1,
+ );
+ return
+ ".${class}Prototype =",
+ $self->globalPrototype(
+ $class,
+ "_classObject",
+ ".ObjectPrototype",
+ "prototypeValueNumber",
+ @got,
+ ),
+ ".$class =",
+ $self->globalFunction(
+ $class,
+ 1,
+ $self->functionDeclare(
+ $class,
+ ),
+ $self->numberConstantDeclare(
+ "MAX_VALUE", "math.MaxFloat64",
+ "MIN_VALUE", "math.SmallestNonzeroFloat64",
+ "NaN", "math.NaN()",
+ "NEGATIVE_INFINITY", "math.Inf(-1)",
+ "POSITIVE_INFINITY", "math.Inf(+1)",
+ ),
+ ),
+ }),
+
+ # Math
+ $self->block(sub {
+ my $class = "Math";
+ return
+ ".$class =",
+ $self->globalObject(
+ $class,
+ $self->functionDeclare(
+ $class,
+ "abs", 1,
+ "acos", 1,
+ "asin", 1,
+ "atan", 1,
+ "atan2", 1,
+ "ceil", 1,
+ "cos", 1,
+ "exp", 1,
+ "floor", 1,
+ "log", 1,
+ "max", 2,
+ "min", 2,
+ "pow", 2,
+ "random", 0,
+ "round", 1,
+ "sin", 1,
+ "sqrt", 1,
+ "tan", 1,
+ ),
+ $self->numberConstantDeclare(
+ "E", "math.E",
+ "LN10", "math.Ln10",
+ "LN2", "math.Ln2",
+ "LOG2E", "math.Log2E",
+ "LOG10E", "math.Log10E",
+ "PI", "math.Pi",
+ "SQRT1_2", "sqrt1_2",
+ "SQRT2", "math.Sqrt2",
+ )
+ ),
+ }),
+
+ # Date
+ $self->block(sub {
+ my $class = "Date";
+ my @got = $self->functionDeclare(
+ $class,
+ "toString", 0,
+ "toDateString", 0,
+ "toTimeString", 0,
+ "toUTCString", 0,
+ "toISOString", 0,
+ "toJSON", 1,
+ "toGMTString", 0,
+ "toLocaleString", 0,
+ "toLocaleDateString", 0,
+ "toLocaleTimeString", 0,
+ "valueOf", 0,
+ "getTime", 0,
+ "getYear", 0,
+ "getFullYear", 0,
+ "getUTCFullYear", 0,
+ "getMonth", 0,
+ "getUTCMonth", 0,
+ "getDate", 0,
+ "getUTCDate", 0,
+ "getDay", 0,
+ "getUTCDay", 0,
+ "getHours", 0,
+ "getUTCHours", 0,
+ "getMinutes", 0,
+ "getUTCMinutes", 0,
+ "getSeconds", 0,
+ "getUTCSeconds", 0,
+ "getMilliseconds", 0,
+ "getUTCMilliseconds", 0,
+ "getTimezoneOffset", 0,
+ "setTime", 1,
+ "setMilliseconds", 1,
+ "setUTCMilliseconds", 1,
+ "setSeconds", 2,
+ "setUTCSeconds", 2,
+ "setMinutes", 3,
+ "setUTCMinutes", 3,
+ "setHours", 4,
+ "setUTCHours", 4,
+ "setDate", 1,
+ "setUTCDate", 1,
+ "setMonth", 2,
+ "setUTCMonth", 2,
+ "setYear", 1,
+ "setFullYear", 3,
+ "setUTCFullYear", 3,
+ );
+ return
+ ".${class}Prototype =",
+ $self->globalPrototype(
+ $class,
+ "_classObject",
+ ".ObjectPrototype",
+ "prototypeValueDate",
+ @got,
+ ),
+ ".$class =",
+ $self->globalFunction(
+ $class,
+ 7,
+ $self->functionDeclare(
+ $class,
+ "parse", 1,
+ "UTC", 7,
+ "now", 0,
+ ),
+ ),
+ }),
+
+ # RegExp
+ $self->block(sub {
+ my $class = "RegExp";
+ my @got = $self->functionDeclare(
+ $class,
+ "toString", 0,
+ "exec", 1,
+ "test", 1,
+ "compile", 1,
+ );
+ return
+ ".${class}Prototype =",
+ $self->globalPrototype(
+ $class,
+ "_classObject",
+ ".ObjectPrototype",
+ "prototypeValueRegExp",
+ @got,
+ ),
+ ".$class =",
+ $self->globalFunction(
+ $class,
+ 2,
+ $self->functionDeclare(
+ $class,
+ ),
+ ),
+ }),
+
+ # Error
+ $self->block(sub {
+ my $class = "Error";
+ my @got = $self->functionDeclare(
+ $class,
+ "toString", 0,
+ );
+ return
+ ".${class}Prototype =",
+ $self->globalPrototype(
+ $class,
+ "_classObject",
+ ".ObjectPrototype",
+ undef,
+ @got,
+ $self->property("name", $self->stringValue("Error")),
+ $self->property("message", $self->stringValue("")),
+ ),
+ ".$class =",
+ $self->globalFunction(
+ $class,
+ 1,
+ $self->functionDeclare(
+ $class,
+ ),
+ ),
+ }),
+
+ (map {
+ my $class = "${_}Error";
+ $self->block(sub {
+ my @got = $self->functionDeclare(
+ $class,
+ );
+ return
+ ".${class}Prototype =",
+ $self->globalPrototype(
+ $class,
+ "_classObject",
+ ".ErrorPrototype",
+ undef,
+ @got,
+ $self->property("name", $self->stringValue($class)),
+ ),
+ ".$class =",
+ $self->globalFunction(
+ $class,
+ 1,
+ $self->functionDeclare(
+ $class,
+ ),
+ ),
+ });
+ } qw/Eval Type Range Reference Syntax URI/),
+
+ # JSON
+ $self->block(sub {
+ my $class = "JSON";
+ return
+ ".$class =",
+ $self->globalObject(
+ $class,
+ $self->functionDeclare(
+ $class,
+ "parse", 2,
+ "stringify", 3,
+ ),
+ ),
+ }),
+
+ # Global
+ $self->block(sub {
+ my $class = "Global";
+ my @got = $self->functionDeclare(
+ $class,
+ "eval", 1,
+ "parseInt", 2,
+ "parseFloat", 1,
+ "isNaN", 1,
+ "isFinite", 1,
+ "decodeURI", 1,
+ "decodeURIComponent", 1,
+ "encodeURI", 1,
+ "encodeURIComponent", 1,
+ "escape", 1,
+ "unescape", 1,
+ );
+ my @propertyMap = $self->propertyMap(
+ @got,
+ $self->globalDeclare(
+ "Object",
+ "Function",
+ "Array",
+ "String",
+ "Boolean",
+ "Number",
+ "Math",
+ "Date",
+ "RegExp",
+ "Error",
+ "EvalError",
+ "TypeError",
+ "RangeError",
+ "ReferenceError",
+ "SyntaxError",
+ "URIError",
+ "JSON",
+ ),
+ $self->property("undefined", $self->undefinedValue(), "0"),
+ $self->property("NaN", $self->numberValue("math.NaN()"), "0"),
+ $self->property("Infinity", $self->numberValue("math.Inf(+1)"), "0"),
+ );
+ my $propertyOrder = $self->propertyOrder(@propertyMap);
+ $propertyOrder =~ s/^propertyOrder: //;
+ return
+ "runtime.GlobalObject.property =",
+ @propertyMap,
+ "runtime.GlobalObject.propertyOrder =",
+ $propertyOrder,
+ ;
+ }),
+ ;
+}
+
+sub propertyMap {
+ my $self = shift;
+ return "map[string]_property{", (join ",\n", @_, ""), "}",
+}
+
+our (@preblock, @postblock);
+sub block {
+ my $self = shift;
+ local @preblock = ();
+ local @postblock = ();
+ my @input = $_[0]->();
+ my @output;
+ while (@input) {
+ local $_ = shift @input;
+ if (m/^\./) {
+ $_ = "runtime.Global$_";
+ }
+ if (m/ :?=$/) {
+ $_ .= shift @input;
+ }
+ push @output, $_;
+ }
+ return
+ "{",
+ @preblock,
+ @output,
+ @postblock,
+ "}",
+ ;
+}
+
+sub numberConstantDeclare {
+ my $self = shift;
+ my @got;
+ while (@_) {
+ my $name = shift;
+ my $value = shift;
+ push @got, $self->property($name, $self->numberValue($value), "0"),
+ }
+ return @got;
+}
+
+sub functionDeclare {
+ my $self = shift;
+ my $class = shift;
+ my $builtin = "builtin${class}";
+ my @got;
+ while (@_) {
+ my $name = shift;
+ my $length = shift;
+ $name = $self->newFunction($name, "${builtin}_", $length);
+ push @got, $self->functionProperty($name),
+ }
+ return @got;
+}
+
+sub globalDeclare {
+ my $self = shift;
+ my @got;
+ while (@_) {
+ my $name = shift;
+ push @got, $self->property($name, $self->objectValue("runtime.Global.$name"), "0101"),
+ }
+ return @got;
+}
+
+sub propertyOrder {
+ my $self = shift;
+ my $propertyMap = join "", @_;
+
+ my (@keys) = $propertyMap =~ m/("\w+"):/g;
+ my $propertyOrder =
+ join "\n", "propertyOrder: []string{", (join ",\n", @keys, ""), "}";
+ return $propertyOrder;
+}
+
+sub globalObject {
+ my $self = shift;
+ my $name = shift;
+
+ my $propertyMap = "";
+ if (@_) {
+ $propertyMap = join "\n", $self->propertyMap(@_);
+ my $propertyOrder = $self->propertyOrder($propertyMap);
+ $propertyMap = "property: $propertyMap,\n$propertyOrder,";
+ }
+
+ return trim <<_END_;
+&_object{
+ runtime: runtime,
+ class: "$name",
+ objectClass: _classObject,
+ prototype: runtime.Global.ObjectPrototype,
+ extensible: true,
+ $propertyMap
+}
+_END_
+}
+
+sub globalFunction {
+ my $self = shift;
+ my $name = shift;
+ my $length = shift;
+
+ my $builtin = "builtin${name}";
+ my $builtinNew = "builtinNew${name}";
+ my $prototype = "runtime.Global.${name}Prototype";
+ my $propertyMap = "";
+ unshift @_,
+ $self->property("length", $self->numberValue($length), "0"),
+ $self->property("prototype", $self->objectValue($prototype), "0"),
+ ;
+
+ if (@_) {
+ $propertyMap = join "\n", $self->propertyMap(@_);
+ my $propertyOrder = $self->propertyOrder($propertyMap);
+ $propertyMap = "property: $propertyMap,\n$propertyOrder,";
+ }
+
+ push @postblock, $self->statement(
+ "$prototype.property[\"constructor\"] =",
+ $self->property(undef, $self->objectValue("runtime.Global.${name}"), "0101"),
+ );
+
+ return trim <<_END_;
+&_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: @{[ $self->functionOf($self->nativeCallFunction($name, $builtin), $builtinNew) ]},
+ $propertyMap
+}
+_END_
+}
+
+sub nativeCallFunction {
+ my $self = shift;
+ my $name = shift;
+ my $func = shift;
+ return trim <<_END_;
+_nativeCallFunction{ "$name", $func }
+_END_
+}
+
+sub globalPrototype {
+ my $self = shift;
+ my $class = shift;
+ my $classObject = shift;
+ my $prototype = shift;
+ my $value = shift;
+
+ if (!defined $prototype) {
+ $prototype = "nil";
+ }
+
+ if (!defined $value) {
+ $value = "nil";
+ }
+
+ if ($prototype =~ m/^\./) {
+ $prototype = "runtime.Global$prototype";
+ }
+
+ my $propertyMap = "";
+ if (@_) {
+ $propertyMap = join "\n", $self->propertyMap(@_);
+ my $propertyOrder = $self->propertyOrder($propertyMap);
+ $propertyMap = "property: $propertyMap,\n$propertyOrder,";
+ }
+
+ return trim <<_END_;
+&_object{
+ runtime: runtime,
+ class: "$class",
+ objectClass: $classObject,
+ prototype: $prototype,
+ extensible: true,
+ value: $value,
+ $propertyMap
+}
+_END_
+}
+
+sub newFunction {
+ my $self = shift;
+ my $name = shift;
+ my $func = shift;
+ my $length = shift;
+
+ my @name = ($name, $name);
+ if ($name =~ m/^(\w+):(\w+)$/) {
+ @name = ($1, $2);
+ $name = $name[0];
+ }
+
+ if ($func =~ m/^builtin\w+_$/) {
+ $func = "$func$name[1]";
+ }
+
+ my $propertyOrder = "";
+ my @propertyMap = (
+ $self->property("length", $self->numberValue($length), "0"),
+ );
+
+ if (@propertyMap) {
+ $propertyOrder = $self->propertyOrder(@propertyMap);
+ $propertyOrder = "$propertyOrder,";
+ }
+
+ my $label = functionLabel($name);
+ push @preblock, $self->statement(
+ "$label := @{[ trim <<_END_ ]}",
+&_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: @{[ join "\n", $self->propertyMap(@propertyMap) ]},
+ $propertyOrder
+ value: @{[ $self->functionOf($self->nativeCallFunction($name, $func)) ]},
+}
+_END_
+ );
+
+ return $name;
+}
+
+sub newObject {
+ my $self = shift;
+
+ my $propertyMap = join "\n", $self->propertyMap(@_);
+ my $propertyOrder = $self->propertyOrder($propertyMap);
+
+ return trim <<_END_;
+&_object{
+ runtime: runtime,
+ class: "Object",
+ objectClass: _classObject,
+ prototype: runtime.Global.ObjectPrototype,
+ extensible: true,
+ property: $propertyMap,
+ $propertyOrder,
+}
+_END_
+}
+
+sub newPrototypeObject {
+ my $self = shift;
+ my $class = shift;
+ my $objectClass = shift;
+ my $value = shift;
+ if (defined $value) {
+ $value = "value: $value,";
+ }
+
+ my $propertyMap = join "\n", $self->propertyMap(@_);
+ my $propertyOrder = $self->propertyOrder($propertyMap);
+
+ return trim <<_END_;
+&_object{
+ runtime: runtime,
+ class: "$class",
+ objectClass: $objectClass,
+ prototype: runtime.Global.ObjectPrototype,
+ extensible: true,
+ property: $propertyMap,
+ $propertyOrder,
+ $value
+}
+_END_
+}
+
+sub functionProperty {
+ my $self = shift;
+ my $name = shift;
+
+ return $self->property(
+ $name,
+ $self->objectValue(functionLabel($name))
+ );
+}
+
+sub statement {
+ my $self = shift;
+ return join "\n", @_;
+}
+
+sub functionOf {
+ my $self = shift;
+ my $call = shift;
+ my $construct = shift;
+ if ($construct) {
+ $construct = "construct: $construct,";
+ } else {
+ $construct = "";
+ }
+
+ return trim <<_END_
+_functionObject{
+ call: $call,
+ $construct
+}
+_END_
+}
+
+sub nameProperty {
+ my $self = shift;
+ my $name = shift;
+ my $value = shift;
+
+ return trim <<_END_;
+"$name": _property{
+ mode: 0101,
+ value: $value,
+}
+_END_
+}
+
+sub numberValue {
+ my $self = shift;
+ my $value = shift;
+ return trim <<_END_;
+Value{
+ _valueType: valueNumber,
+ value: $value,
+}
+_END_
+}
+
+sub property {
+ my $self = shift;
+ my $name = shift;
+ my $value = shift;
+ my $mode = shift;
+ $mode = "0101" unless defined $mode;
+ if (! defined $value) {
+ $value = "Value{}";
+ }
+ if (defined $name) {
+ return trim <<_END_;
+"$name": _property{
+ mode: $mode,
+ value: $value,
+}
+_END_
+ } else {
+ return trim <<_END_;
+_property{
+ mode: $mode,
+ value: $value,
+}
+_END_
+ }
+
+}
+
+sub objectProperty {
+ my $self = shift;
+ my $name = shift;
+ my $value = shift;
+
+ return trim <<_END_;
+"$name": _property{
+ mode: 0101,
+ value: @{[ $self->objectValue($value)]},
+}
+_END_
+}
+
+sub objectValue {
+ my $self = shift;
+ my $value = shift;
+ return trim <<_END_
+Value{
+ _valueType: valueObject,
+ value: $value,
+}
+_END_
+}
+
+sub stringValue {
+ my $self = shift;
+ my $value = shift;
+ return trim <<_END_
+Value{
+ _valueType: valueString,
+ value: "$value",
+}
+_END_
+}
+
+sub booleanValue {
+ my $self = shift;
+ my $value = shift;
+ return trim <<_END_
+Value{
+ _valueType: valueBoolean,
+ value: $value,
+}
+_END_
+}
+
+sub undefinedValue {
+ my $self = shift;
+ return trim <<_END_
+Value{
+ _valueType: valueUndefined,
+}
+_END_
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/inline.go b/Godeps/_workspace/src/github.com/obscuren/otto/inline.go
new file mode 100644
index 000000000..f8c1d6347
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/inline.go
@@ -0,0 +1,6463 @@
+package otto
+
+import (
+ "math"
+)
+
+func _newContext(runtime *_runtime) {
+ {
+ runtime.Global.ObjectPrototype = &_object{
+ runtime: runtime,
+ class: "Object",
+ objectClass: _classObject,
+ prototype: nil,
+ extensible: true,
+ value: prototypeValueObject,
+ }
+ }
+ {
+ runtime.Global.FunctionPrototype = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.ObjectPrototype,
+ extensible: true,
+ value: prototypeValueFunction,
+ }
+ }
+ {
+ valueOf_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"valueOf", builtinObject_valueOf},
+ },
+ }
+ toString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toString", builtinObject_toString},
+ },
+ }
+ toLocaleString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toLocaleString", builtinObject_toLocaleString},
+ },
+ }
+ hasOwnProperty_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"hasOwnProperty", builtinObject_hasOwnProperty},
+ },
+ }
+ isPrototypeOf_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"isPrototypeOf", builtinObject_isPrototypeOf},
+ },
+ }
+ propertyIsEnumerable_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"propertyIsEnumerable", builtinObject_propertyIsEnumerable},
+ },
+ }
+ runtime.Global.ObjectPrototype.property = map[string]_property{
+ "valueOf": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: valueOf_function,
+ },
+ },
+ "toString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toString_function,
+ },
+ },
+ "toLocaleString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toLocaleString_function,
+ },
+ },
+ "hasOwnProperty": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: hasOwnProperty_function,
+ },
+ },
+ "isPrototypeOf": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: isPrototypeOf_function,
+ },
+ },
+ "propertyIsEnumerable": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: propertyIsEnumerable_function,
+ },
+ },
+ "constructor": _property{
+ mode: 0101,
+ value: Value{},
+ },
+ }
+ runtime.Global.ObjectPrototype.propertyOrder = []string{
+ "valueOf",
+ "toString",
+ "toLocaleString",
+ "hasOwnProperty",
+ "isPrototypeOf",
+ "propertyIsEnumerable",
+ "constructor",
+ }
+ }
+ {
+ toString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toString", builtinFunction_toString},
+ },
+ }
+ apply_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"apply", builtinFunction_apply},
+ },
+ }
+ call_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"call", builtinFunction_call},
+ },
+ }
+ bind_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"bind", builtinFunction_bind},
+ },
+ }
+ runtime.Global.FunctionPrototype.property = map[string]_property{
+ "toString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toString_function,
+ },
+ },
+ "apply": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: apply_function,
+ },
+ },
+ "call": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: call_function,
+ },
+ },
+ "bind": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: bind_function,
+ },
+ },
+ "constructor": _property{
+ mode: 0101,
+ value: Value{},
+ },
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ }
+ runtime.Global.FunctionPrototype.propertyOrder = []string{
+ "toString",
+ "apply",
+ "call",
+ "bind",
+ "constructor",
+ "length",
+ }
+ }
+ {
+ getPrototypeOf_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getPrototypeOf", builtinObject_getPrototypeOf},
+ },
+ }
+ getOwnPropertyDescriptor_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getOwnPropertyDescriptor", builtinObject_getOwnPropertyDescriptor},
+ },
+ }
+ defineProperty_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 3,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"defineProperty", builtinObject_defineProperty},
+ },
+ }
+ defineProperties_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"defineProperties", builtinObject_defineProperties},
+ },
+ }
+ create_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"create", builtinObject_create},
+ },
+ }
+ isExtensible_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"isExtensible", builtinObject_isExtensible},
+ },
+ }
+ preventExtensions_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"preventExtensions", builtinObject_preventExtensions},
+ },
+ }
+ isSealed_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"isSealed", builtinObject_isSealed},
+ },
+ }
+ seal_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"seal", builtinObject_seal},
+ },
+ }
+ isFrozen_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"isFrozen", builtinObject_isFrozen},
+ },
+ }
+ freeze_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"freeze", builtinObject_freeze},
+ },
+ }
+ keys_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"keys", builtinObject_keys},
+ },
+ }
+ getOwnPropertyNames_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getOwnPropertyNames", builtinObject_getOwnPropertyNames},
+ },
+ }
+ runtime.Global.Object = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"Object", builtinObject},
+ construct: builtinNewObject,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.ObjectPrototype,
+ },
+ },
+ "getPrototypeOf": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getPrototypeOf_function,
+ },
+ },
+ "getOwnPropertyDescriptor": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getOwnPropertyDescriptor_function,
+ },
+ },
+ "defineProperty": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: defineProperty_function,
+ },
+ },
+ "defineProperties": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: defineProperties_function,
+ },
+ },
+ "create": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: create_function,
+ },
+ },
+ "isExtensible": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: isExtensible_function,
+ },
+ },
+ "preventExtensions": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: preventExtensions_function,
+ },
+ },
+ "isSealed": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: isSealed_function,
+ },
+ },
+ "seal": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: seal_function,
+ },
+ },
+ "isFrozen": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: isFrozen_function,
+ },
+ },
+ "freeze": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: freeze_function,
+ },
+ },
+ "keys": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: keys_function,
+ },
+ },
+ "getOwnPropertyNames": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getOwnPropertyNames_function,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ "getPrototypeOf",
+ "getOwnPropertyDescriptor",
+ "defineProperty",
+ "defineProperties",
+ "create",
+ "isExtensible",
+ "preventExtensions",
+ "isSealed",
+ "seal",
+ "isFrozen",
+ "freeze",
+ "keys",
+ "getOwnPropertyNames",
+ },
+ }
+ runtime.Global.ObjectPrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Object,
+ },
+ }
+ }
+ {
+ Function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"Function", builtinFunction},
+ construct: builtinNewFunction,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.FunctionPrototype,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ },
+ }
+ runtime.Global.Function = Function
+ runtime.Global.FunctionPrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Function,
+ },
+ }
+ }
+ {
+ toString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toString", builtinArray_toString},
+ },
+ }
+ toLocaleString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toLocaleString", builtinArray_toLocaleString},
+ },
+ }
+ concat_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"concat", builtinArray_concat},
+ },
+ }
+ join_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"join", builtinArray_join},
+ },
+ }
+ splice_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"splice", builtinArray_splice},
+ },
+ }
+ shift_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"shift", builtinArray_shift},
+ },
+ }
+ pop_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"pop", builtinArray_pop},
+ },
+ }
+ push_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"push", builtinArray_push},
+ },
+ }
+ slice_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"slice", builtinArray_slice},
+ },
+ }
+ unshift_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"unshift", builtinArray_unshift},
+ },
+ }
+ reverse_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"reverse", builtinArray_reverse},
+ },
+ }
+ sort_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"sort", builtinArray_sort},
+ },
+ }
+ indexOf_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"indexOf", builtinArray_indexOf},
+ },
+ }
+ lastIndexOf_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"lastIndexOf", builtinArray_lastIndexOf},
+ },
+ }
+ every_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"every", builtinArray_every},
+ },
+ }
+ some_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"some", builtinArray_some},
+ },
+ }
+ forEach_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"forEach", builtinArray_forEach},
+ },
+ }
+ map_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"map", builtinArray_map},
+ },
+ }
+ filter_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"filter", builtinArray_filter},
+ },
+ }
+ reduce_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"reduce", builtinArray_reduce},
+ },
+ }
+ reduceRight_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"reduceRight", builtinArray_reduceRight},
+ },
+ }
+ isArray_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"isArray", builtinArray_isArray},
+ },
+ }
+ runtime.Global.ArrayPrototype = &_object{
+ runtime: runtime,
+ class: "Array",
+ objectClass: _classArray,
+ prototype: runtime.Global.ObjectPrototype,
+ extensible: true,
+ value: nil,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0100,
+ value: Value{
+ _valueType: valueNumber,
+ value: uint32(0),
+ },
+ },
+ "toString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toString_function,
+ },
+ },
+ "toLocaleString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toLocaleString_function,
+ },
+ },
+ "concat": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: concat_function,
+ },
+ },
+ "join": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: join_function,
+ },
+ },
+ "splice": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: splice_function,
+ },
+ },
+ "shift": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: shift_function,
+ },
+ },
+ "pop": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: pop_function,
+ },
+ },
+ "push": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: push_function,
+ },
+ },
+ "slice": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: slice_function,
+ },
+ },
+ "unshift": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: unshift_function,
+ },
+ },
+ "reverse": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: reverse_function,
+ },
+ },
+ "sort": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: sort_function,
+ },
+ },
+ "indexOf": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: indexOf_function,
+ },
+ },
+ "lastIndexOf": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: lastIndexOf_function,
+ },
+ },
+ "every": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: every_function,
+ },
+ },
+ "some": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: some_function,
+ },
+ },
+ "forEach": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: forEach_function,
+ },
+ },
+ "map": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: map_function,
+ },
+ },
+ "filter": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: filter_function,
+ },
+ },
+ "reduce": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: reduce_function,
+ },
+ },
+ "reduceRight": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: reduceRight_function,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "toString",
+ "toLocaleString",
+ "concat",
+ "join",
+ "splice",
+ "shift",
+ "pop",
+ "push",
+ "slice",
+ "unshift",
+ "reverse",
+ "sort",
+ "indexOf",
+ "lastIndexOf",
+ "every",
+ "some",
+ "forEach",
+ "map",
+ "filter",
+ "reduce",
+ "reduceRight",
+ },
+ }
+ runtime.Global.Array = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"Array", builtinArray},
+ construct: builtinNewArray,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.ArrayPrototype,
+ },
+ },
+ "isArray": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: isArray_function,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ "isArray",
+ },
+ }
+ runtime.Global.ArrayPrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Array,
+ },
+ }
+ }
+ {
+ toString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toString", builtinString_toString},
+ },
+ }
+ valueOf_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"valueOf", builtinString_valueOf},
+ },
+ }
+ charAt_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"charAt", builtinString_charAt},
+ },
+ }
+ charCodeAt_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"charCodeAt", builtinString_charCodeAt},
+ },
+ }
+ concat_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"concat", builtinString_concat},
+ },
+ }
+ indexOf_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"indexOf", builtinString_indexOf},
+ },
+ }
+ lastIndexOf_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"lastIndexOf", builtinString_lastIndexOf},
+ },
+ }
+ match_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"match", builtinString_match},
+ },
+ }
+ replace_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"replace", builtinString_replace},
+ },
+ }
+ search_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"search", builtinString_search},
+ },
+ }
+ split_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"split", builtinString_split},
+ },
+ }
+ slice_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"slice", builtinString_slice},
+ },
+ }
+ substring_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"substring", builtinString_substring},
+ },
+ }
+ toLowerCase_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toLowerCase", builtinString_toLowerCase},
+ },
+ }
+ toUpperCase_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toUpperCase", builtinString_toUpperCase},
+ },
+ }
+ substr_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"substr", builtinString_substr},
+ },
+ }
+ trim_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"trim", builtinString_trim},
+ },
+ }
+ trimLeft_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"trimLeft", builtinString_trimLeft},
+ },
+ }
+ trimRight_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"trimRight", builtinString_trimRight},
+ },
+ }
+ localeCompare_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"localeCompare", builtinString_localeCompare},
+ },
+ }
+ toLocaleLowerCase_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toLocaleLowerCase", builtinString_toLocaleLowerCase},
+ },
+ }
+ toLocaleUpperCase_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toLocaleUpperCase", builtinString_toLocaleUpperCase},
+ },
+ }
+ fromCharCode_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"fromCharCode", builtinString_fromCharCode},
+ },
+ }
+ runtime.Global.StringPrototype = &_object{
+ runtime: runtime,
+ class: "String",
+ objectClass: _classString,
+ prototype: runtime.Global.ObjectPrototype,
+ extensible: true,
+ value: prototypeValueString,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: int(0),
+ },
+ },
+ "toString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toString_function,
+ },
+ },
+ "valueOf": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: valueOf_function,
+ },
+ },
+ "charAt": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: charAt_function,
+ },
+ },
+ "charCodeAt": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: charCodeAt_function,
+ },
+ },
+ "concat": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: concat_function,
+ },
+ },
+ "indexOf": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: indexOf_function,
+ },
+ },
+ "lastIndexOf": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: lastIndexOf_function,
+ },
+ },
+ "match": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: match_function,
+ },
+ },
+ "replace": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: replace_function,
+ },
+ },
+ "search": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: search_function,
+ },
+ },
+ "split": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: split_function,
+ },
+ },
+ "slice": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: slice_function,
+ },
+ },
+ "substring": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: substring_function,
+ },
+ },
+ "toLowerCase": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toLowerCase_function,
+ },
+ },
+ "toUpperCase": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toUpperCase_function,
+ },
+ },
+ "substr": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: substr_function,
+ },
+ },
+ "trim": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: trim_function,
+ },
+ },
+ "trimLeft": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: trimLeft_function,
+ },
+ },
+ "trimRight": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: trimRight_function,
+ },
+ },
+ "localeCompare": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: localeCompare_function,
+ },
+ },
+ "toLocaleLowerCase": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toLocaleLowerCase_function,
+ },
+ },
+ "toLocaleUpperCase": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toLocaleUpperCase_function,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "toString",
+ "valueOf",
+ "charAt",
+ "charCodeAt",
+ "concat",
+ "indexOf",
+ "lastIndexOf",
+ "match",
+ "replace",
+ "search",
+ "split",
+ "slice",
+ "substring",
+ "toLowerCase",
+ "toUpperCase",
+ "substr",
+ "trim",
+ "trimLeft",
+ "trimRight",
+ "localeCompare",
+ "toLocaleLowerCase",
+ "toLocaleUpperCase",
+ },
+ }
+ runtime.Global.String = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"String", builtinString},
+ construct: builtinNewString,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.StringPrototype,
+ },
+ },
+ "fromCharCode": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: fromCharCode_function,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ "fromCharCode",
+ },
+ }
+ runtime.Global.StringPrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.String,
+ },
+ }
+ }
+ {
+ toString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toString", builtinBoolean_toString},
+ },
+ }
+ valueOf_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"valueOf", builtinBoolean_valueOf},
+ },
+ }
+ runtime.Global.BooleanPrototype = &_object{
+ runtime: runtime,
+ class: "Boolean",
+ objectClass: _classObject,
+ prototype: runtime.Global.ObjectPrototype,
+ extensible: true,
+ value: prototypeValueBoolean,
+ property: map[string]_property{
+ "toString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toString_function,
+ },
+ },
+ "valueOf": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: valueOf_function,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "toString",
+ "valueOf",
+ },
+ }
+ runtime.Global.Boolean = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"Boolean", builtinBoolean},
+ construct: builtinNewBoolean,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.BooleanPrototype,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ },
+ }
+ runtime.Global.BooleanPrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Boolean,
+ },
+ }
+ }
+ {
+ toString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toString", builtinNumber_toString},
+ },
+ }
+ valueOf_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"valueOf", builtinNumber_valueOf},
+ },
+ }
+ toFixed_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toFixed", builtinNumber_toFixed},
+ },
+ }
+ toExponential_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toExponential", builtinNumber_toExponential},
+ },
+ }
+ toPrecision_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toPrecision", builtinNumber_toPrecision},
+ },
+ }
+ toLocaleString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toLocaleString", builtinNumber_toLocaleString},
+ },
+ }
+ runtime.Global.NumberPrototype = &_object{
+ runtime: runtime,
+ class: "Number",
+ objectClass: _classObject,
+ prototype: runtime.Global.ObjectPrototype,
+ extensible: true,
+ value: prototypeValueNumber,
+ property: map[string]_property{
+ "toString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toString_function,
+ },
+ },
+ "valueOf": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: valueOf_function,
+ },
+ },
+ "toFixed": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toFixed_function,
+ },
+ },
+ "toExponential": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toExponential_function,
+ },
+ },
+ "toPrecision": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toPrecision_function,
+ },
+ },
+ "toLocaleString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toLocaleString_function,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "toString",
+ "valueOf",
+ "toFixed",
+ "toExponential",
+ "toPrecision",
+ "toLocaleString",
+ },
+ }
+ runtime.Global.Number = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"Number", builtinNumber},
+ construct: builtinNewNumber,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.NumberPrototype,
+ },
+ },
+ "MAX_VALUE": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: math.MaxFloat64,
+ },
+ },
+ "MIN_VALUE": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: math.SmallestNonzeroFloat64,
+ },
+ },
+ "NaN": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: math.NaN(),
+ },
+ },
+ "NEGATIVE_INFINITY": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: math.Inf(-1),
+ },
+ },
+ "POSITIVE_INFINITY": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: math.Inf(+1),
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ "MAX_VALUE",
+ "MIN_VALUE",
+ "NaN",
+ "NEGATIVE_INFINITY",
+ "POSITIVE_INFINITY",
+ },
+ }
+ runtime.Global.NumberPrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Number,
+ },
+ }
+ }
+ {
+ abs_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"abs", builtinMath_abs},
+ },
+ }
+ acos_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"acos", builtinMath_acos},
+ },
+ }
+ asin_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"asin", builtinMath_asin},
+ },
+ }
+ atan_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"atan", builtinMath_atan},
+ },
+ }
+ atan2_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"atan2", builtinMath_atan2},
+ },
+ }
+ ceil_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"ceil", builtinMath_ceil},
+ },
+ }
+ cos_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"cos", builtinMath_cos},
+ },
+ }
+ exp_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"exp", builtinMath_exp},
+ },
+ }
+ floor_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"floor", builtinMath_floor},
+ },
+ }
+ log_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"log", builtinMath_log},
+ },
+ }
+ max_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"max", builtinMath_max},
+ },
+ }
+ min_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"min", builtinMath_min},
+ },
+ }
+ pow_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"pow", builtinMath_pow},
+ },
+ }
+ random_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"random", builtinMath_random},
+ },
+ }
+ round_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"round", builtinMath_round},
+ },
+ }
+ sin_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"sin", builtinMath_sin},
+ },
+ }
+ sqrt_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"sqrt", builtinMath_sqrt},
+ },
+ }
+ tan_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"tan", builtinMath_tan},
+ },
+ }
+ runtime.Global.Math = &_object{
+ runtime: runtime,
+ class: "Math",
+ objectClass: _classObject,
+ prototype: runtime.Global.ObjectPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "abs": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: abs_function,
+ },
+ },
+ "acos": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: acos_function,
+ },
+ },
+ "asin": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: asin_function,
+ },
+ },
+ "atan": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: atan_function,
+ },
+ },
+ "atan2": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: atan2_function,
+ },
+ },
+ "ceil": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: ceil_function,
+ },
+ },
+ "cos": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: cos_function,
+ },
+ },
+ "exp": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: exp_function,
+ },
+ },
+ "floor": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: floor_function,
+ },
+ },
+ "log": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: log_function,
+ },
+ },
+ "max": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: max_function,
+ },
+ },
+ "min": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: min_function,
+ },
+ },
+ "pow": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: pow_function,
+ },
+ },
+ "random": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: random_function,
+ },
+ },
+ "round": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: round_function,
+ },
+ },
+ "sin": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: sin_function,
+ },
+ },
+ "sqrt": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: sqrt_function,
+ },
+ },
+ "tan": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: tan_function,
+ },
+ },
+ "E": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: math.E,
+ },
+ },
+ "LN10": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: math.Ln10,
+ },
+ },
+ "LN2": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: math.Ln2,
+ },
+ },
+ "LOG2E": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: math.Log2E,
+ },
+ },
+ "LOG10E": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: math.Log10E,
+ },
+ },
+ "PI": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: math.Pi,
+ },
+ },
+ "SQRT1_2": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: sqrt1_2,
+ },
+ },
+ "SQRT2": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: math.Sqrt2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "abs",
+ "acos",
+ "asin",
+ "atan",
+ "atan2",
+ "ceil",
+ "cos",
+ "exp",
+ "floor",
+ "log",
+ "max",
+ "min",
+ "pow",
+ "random",
+ "round",
+ "sin",
+ "sqrt",
+ "tan",
+ "E",
+ "LN10",
+ "LN2",
+ "LOG2E",
+ "LOG10E",
+ "PI",
+ "SQRT1_2",
+ "SQRT2",
+ },
+ }
+ }
+ {
+ toString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toString", builtinDate_toString},
+ },
+ }
+ toDateString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toDateString", builtinDate_toDateString},
+ },
+ }
+ toTimeString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toTimeString", builtinDate_toTimeString},
+ },
+ }
+ toUTCString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toUTCString", builtinDate_toUTCString},
+ },
+ }
+ toISOString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toISOString", builtinDate_toISOString},
+ },
+ }
+ toJSON_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toJSON", builtinDate_toJSON},
+ },
+ }
+ toGMTString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toGMTString", builtinDate_toGMTString},
+ },
+ }
+ toLocaleString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toLocaleString", builtinDate_toLocaleString},
+ },
+ }
+ toLocaleDateString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toLocaleDateString", builtinDate_toLocaleDateString},
+ },
+ }
+ toLocaleTimeString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toLocaleTimeString", builtinDate_toLocaleTimeString},
+ },
+ }
+ valueOf_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"valueOf", builtinDate_valueOf},
+ },
+ }
+ getTime_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getTime", builtinDate_getTime},
+ },
+ }
+ getYear_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getYear", builtinDate_getYear},
+ },
+ }
+ getFullYear_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getFullYear", builtinDate_getFullYear},
+ },
+ }
+ getUTCFullYear_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getUTCFullYear", builtinDate_getUTCFullYear},
+ },
+ }
+ getMonth_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getMonth", builtinDate_getMonth},
+ },
+ }
+ getUTCMonth_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getUTCMonth", builtinDate_getUTCMonth},
+ },
+ }
+ getDate_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getDate", builtinDate_getDate},
+ },
+ }
+ getUTCDate_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getUTCDate", builtinDate_getUTCDate},
+ },
+ }
+ getDay_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getDay", builtinDate_getDay},
+ },
+ }
+ getUTCDay_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getUTCDay", builtinDate_getUTCDay},
+ },
+ }
+ getHours_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getHours", builtinDate_getHours},
+ },
+ }
+ getUTCHours_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getUTCHours", builtinDate_getUTCHours},
+ },
+ }
+ getMinutes_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getMinutes", builtinDate_getMinutes},
+ },
+ }
+ getUTCMinutes_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getUTCMinutes", builtinDate_getUTCMinutes},
+ },
+ }
+ getSeconds_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getSeconds", builtinDate_getSeconds},
+ },
+ }
+ getUTCSeconds_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getUTCSeconds", builtinDate_getUTCSeconds},
+ },
+ }
+ getMilliseconds_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getMilliseconds", builtinDate_getMilliseconds},
+ },
+ }
+ getUTCMilliseconds_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getUTCMilliseconds", builtinDate_getUTCMilliseconds},
+ },
+ }
+ getTimezoneOffset_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"getTimezoneOffset", builtinDate_getTimezoneOffset},
+ },
+ }
+ setTime_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setTime", builtinDate_setTime},
+ },
+ }
+ setMilliseconds_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setMilliseconds", builtinDate_setMilliseconds},
+ },
+ }
+ setUTCMilliseconds_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setUTCMilliseconds", builtinDate_setUTCMilliseconds},
+ },
+ }
+ setSeconds_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setSeconds", builtinDate_setSeconds},
+ },
+ }
+ setUTCSeconds_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setUTCSeconds", builtinDate_setUTCSeconds},
+ },
+ }
+ setMinutes_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 3,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setMinutes", builtinDate_setMinutes},
+ },
+ }
+ setUTCMinutes_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 3,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setUTCMinutes", builtinDate_setUTCMinutes},
+ },
+ }
+ setHours_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 4,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setHours", builtinDate_setHours},
+ },
+ }
+ setUTCHours_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 4,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setUTCHours", builtinDate_setUTCHours},
+ },
+ }
+ setDate_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setDate", builtinDate_setDate},
+ },
+ }
+ setUTCDate_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setUTCDate", builtinDate_setUTCDate},
+ },
+ }
+ setMonth_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setMonth", builtinDate_setMonth},
+ },
+ }
+ setUTCMonth_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setUTCMonth", builtinDate_setUTCMonth},
+ },
+ }
+ setYear_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setYear", builtinDate_setYear},
+ },
+ }
+ setFullYear_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 3,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setFullYear", builtinDate_setFullYear},
+ },
+ }
+ setUTCFullYear_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 3,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"setUTCFullYear", builtinDate_setUTCFullYear},
+ },
+ }
+ parse_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"parse", builtinDate_parse},
+ },
+ }
+ UTC_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 7,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"UTC", builtinDate_UTC},
+ },
+ }
+ now_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"now", builtinDate_now},
+ },
+ }
+ runtime.Global.DatePrototype = &_object{
+ runtime: runtime,
+ class: "Date",
+ objectClass: _classObject,
+ prototype: runtime.Global.ObjectPrototype,
+ extensible: true,
+ value: prototypeValueDate,
+ property: map[string]_property{
+ "toString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toString_function,
+ },
+ },
+ "toDateString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toDateString_function,
+ },
+ },
+ "toTimeString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toTimeString_function,
+ },
+ },
+ "toUTCString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toUTCString_function,
+ },
+ },
+ "toISOString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toISOString_function,
+ },
+ },
+ "toJSON": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toJSON_function,
+ },
+ },
+ "toGMTString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toGMTString_function,
+ },
+ },
+ "toLocaleString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toLocaleString_function,
+ },
+ },
+ "toLocaleDateString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toLocaleDateString_function,
+ },
+ },
+ "toLocaleTimeString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toLocaleTimeString_function,
+ },
+ },
+ "valueOf": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: valueOf_function,
+ },
+ },
+ "getTime": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getTime_function,
+ },
+ },
+ "getYear": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getYear_function,
+ },
+ },
+ "getFullYear": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getFullYear_function,
+ },
+ },
+ "getUTCFullYear": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getUTCFullYear_function,
+ },
+ },
+ "getMonth": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getMonth_function,
+ },
+ },
+ "getUTCMonth": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getUTCMonth_function,
+ },
+ },
+ "getDate": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getDate_function,
+ },
+ },
+ "getUTCDate": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getUTCDate_function,
+ },
+ },
+ "getDay": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getDay_function,
+ },
+ },
+ "getUTCDay": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getUTCDay_function,
+ },
+ },
+ "getHours": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getHours_function,
+ },
+ },
+ "getUTCHours": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getUTCHours_function,
+ },
+ },
+ "getMinutes": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getMinutes_function,
+ },
+ },
+ "getUTCMinutes": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getUTCMinutes_function,
+ },
+ },
+ "getSeconds": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getSeconds_function,
+ },
+ },
+ "getUTCSeconds": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getUTCSeconds_function,
+ },
+ },
+ "getMilliseconds": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getMilliseconds_function,
+ },
+ },
+ "getUTCMilliseconds": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getUTCMilliseconds_function,
+ },
+ },
+ "getTimezoneOffset": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: getTimezoneOffset_function,
+ },
+ },
+ "setTime": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setTime_function,
+ },
+ },
+ "setMilliseconds": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setMilliseconds_function,
+ },
+ },
+ "setUTCMilliseconds": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setUTCMilliseconds_function,
+ },
+ },
+ "setSeconds": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setSeconds_function,
+ },
+ },
+ "setUTCSeconds": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setUTCSeconds_function,
+ },
+ },
+ "setMinutes": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setMinutes_function,
+ },
+ },
+ "setUTCMinutes": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setUTCMinutes_function,
+ },
+ },
+ "setHours": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setHours_function,
+ },
+ },
+ "setUTCHours": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setUTCHours_function,
+ },
+ },
+ "setDate": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setDate_function,
+ },
+ },
+ "setUTCDate": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setUTCDate_function,
+ },
+ },
+ "setMonth": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setMonth_function,
+ },
+ },
+ "setUTCMonth": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setUTCMonth_function,
+ },
+ },
+ "setYear": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setYear_function,
+ },
+ },
+ "setFullYear": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setFullYear_function,
+ },
+ },
+ "setUTCFullYear": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: setUTCFullYear_function,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "toString",
+ "toDateString",
+ "toTimeString",
+ "toUTCString",
+ "toISOString",
+ "toJSON",
+ "toGMTString",
+ "toLocaleString",
+ "toLocaleDateString",
+ "toLocaleTimeString",
+ "valueOf",
+ "getTime",
+ "getYear",
+ "getFullYear",
+ "getUTCFullYear",
+ "getMonth",
+ "getUTCMonth",
+ "getDate",
+ "getUTCDate",
+ "getDay",
+ "getUTCDay",
+ "getHours",
+ "getUTCHours",
+ "getMinutes",
+ "getUTCMinutes",
+ "getSeconds",
+ "getUTCSeconds",
+ "getMilliseconds",
+ "getUTCMilliseconds",
+ "getTimezoneOffset",
+ "setTime",
+ "setMilliseconds",
+ "setUTCMilliseconds",
+ "setSeconds",
+ "setUTCSeconds",
+ "setMinutes",
+ "setUTCMinutes",
+ "setHours",
+ "setUTCHours",
+ "setDate",
+ "setUTCDate",
+ "setMonth",
+ "setUTCMonth",
+ "setYear",
+ "setFullYear",
+ "setUTCFullYear",
+ },
+ }
+ runtime.Global.Date = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"Date", builtinDate},
+ construct: builtinNewDate,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 7,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.DatePrototype,
+ },
+ },
+ "parse": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: parse_function,
+ },
+ },
+ "UTC": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: UTC_function,
+ },
+ },
+ "now": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: now_function,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ "parse",
+ "UTC",
+ "now",
+ },
+ }
+ runtime.Global.DatePrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Date,
+ },
+ }
+ }
+ {
+ toString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toString", builtinRegExp_toString},
+ },
+ }
+ exec_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"exec", builtinRegExp_exec},
+ },
+ }
+ test_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"test", builtinRegExp_test},
+ },
+ }
+ compile_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"compile", builtinRegExp_compile},
+ },
+ }
+ runtime.Global.RegExpPrototype = &_object{
+ runtime: runtime,
+ class: "RegExp",
+ objectClass: _classObject,
+ prototype: runtime.Global.ObjectPrototype,
+ extensible: true,
+ value: prototypeValueRegExp,
+ property: map[string]_property{
+ "toString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toString_function,
+ },
+ },
+ "exec": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: exec_function,
+ },
+ },
+ "test": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: test_function,
+ },
+ },
+ "compile": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: compile_function,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "toString",
+ "exec",
+ "test",
+ "compile",
+ },
+ }
+ runtime.Global.RegExp = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"RegExp", builtinRegExp},
+ construct: builtinNewRegExp,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.RegExpPrototype,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ },
+ }
+ runtime.Global.RegExpPrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.RegExp,
+ },
+ }
+ }
+ {
+ toString_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"toString", builtinError_toString},
+ },
+ }
+ runtime.Global.ErrorPrototype = &_object{
+ runtime: runtime,
+ class: "Error",
+ objectClass: _classObject,
+ prototype: runtime.Global.ObjectPrototype,
+ extensible: true,
+ value: nil,
+ property: map[string]_property{
+ "toString": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: toString_function,
+ },
+ },
+ "name": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueString,
+ value: "Error",
+ },
+ },
+ "message": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueString,
+ value: "",
+ },
+ },
+ },
+ propertyOrder: []string{
+ "toString",
+ "name",
+ "message",
+ },
+ }
+ runtime.Global.Error = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"Error", builtinError},
+ construct: builtinNewError,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.ErrorPrototype,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ },
+ }
+ runtime.Global.ErrorPrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Error,
+ },
+ }
+ }
+ {
+ runtime.Global.EvalErrorPrototype = &_object{
+ runtime: runtime,
+ class: "EvalError",
+ objectClass: _classObject,
+ prototype: runtime.Global.ErrorPrototype,
+ extensible: true,
+ value: nil,
+ property: map[string]_property{
+ "name": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueString,
+ value: "EvalError",
+ },
+ },
+ },
+ propertyOrder: []string{
+ "name",
+ },
+ }
+ runtime.Global.EvalError = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"EvalError", builtinEvalError},
+ construct: builtinNewEvalError,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.EvalErrorPrototype,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ },
+ }
+ runtime.Global.EvalErrorPrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.EvalError,
+ },
+ }
+ }
+ {
+ runtime.Global.TypeErrorPrototype = &_object{
+ runtime: runtime,
+ class: "TypeError",
+ objectClass: _classObject,
+ prototype: runtime.Global.ErrorPrototype,
+ extensible: true,
+ value: nil,
+ property: map[string]_property{
+ "name": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueString,
+ value: "TypeError",
+ },
+ },
+ },
+ propertyOrder: []string{
+ "name",
+ },
+ }
+ runtime.Global.TypeError = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"TypeError", builtinTypeError},
+ construct: builtinNewTypeError,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.TypeErrorPrototype,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ },
+ }
+ runtime.Global.TypeErrorPrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.TypeError,
+ },
+ }
+ }
+ {
+ runtime.Global.RangeErrorPrototype = &_object{
+ runtime: runtime,
+ class: "RangeError",
+ objectClass: _classObject,
+ prototype: runtime.Global.ErrorPrototype,
+ extensible: true,
+ value: nil,
+ property: map[string]_property{
+ "name": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueString,
+ value: "RangeError",
+ },
+ },
+ },
+ propertyOrder: []string{
+ "name",
+ },
+ }
+ runtime.Global.RangeError = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"RangeError", builtinRangeError},
+ construct: builtinNewRangeError,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.RangeErrorPrototype,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ },
+ }
+ runtime.Global.RangeErrorPrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.RangeError,
+ },
+ }
+ }
+ {
+ runtime.Global.ReferenceErrorPrototype = &_object{
+ runtime: runtime,
+ class: "ReferenceError",
+ objectClass: _classObject,
+ prototype: runtime.Global.ErrorPrototype,
+ extensible: true,
+ value: nil,
+ property: map[string]_property{
+ "name": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueString,
+ value: "ReferenceError",
+ },
+ },
+ },
+ propertyOrder: []string{
+ "name",
+ },
+ }
+ runtime.Global.ReferenceError = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"ReferenceError", builtinReferenceError},
+ construct: builtinNewReferenceError,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.ReferenceErrorPrototype,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ },
+ }
+ runtime.Global.ReferenceErrorPrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.ReferenceError,
+ },
+ }
+ }
+ {
+ runtime.Global.SyntaxErrorPrototype = &_object{
+ runtime: runtime,
+ class: "SyntaxError",
+ objectClass: _classObject,
+ prototype: runtime.Global.ErrorPrototype,
+ extensible: true,
+ value: nil,
+ property: map[string]_property{
+ "name": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueString,
+ value: "SyntaxError",
+ },
+ },
+ },
+ propertyOrder: []string{
+ "name",
+ },
+ }
+ runtime.Global.SyntaxError = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"SyntaxError", builtinSyntaxError},
+ construct: builtinNewSyntaxError,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.SyntaxErrorPrototype,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ },
+ }
+ runtime.Global.SyntaxErrorPrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.SyntaxError,
+ },
+ }
+ }
+ {
+ runtime.Global.URIErrorPrototype = &_object{
+ runtime: runtime,
+ class: "URIError",
+ objectClass: _classObject,
+ prototype: runtime.Global.ErrorPrototype,
+ extensible: true,
+ value: nil,
+ property: map[string]_property{
+ "name": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueString,
+ value: "URIError",
+ },
+ },
+ },
+ propertyOrder: []string{
+ "name",
+ },
+ }
+ runtime.Global.URIError = &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ value: _functionObject{
+ call: _nativeCallFunction{"URIError", builtinURIError},
+ construct: builtinNewURIError,
+ },
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ "prototype": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.URIErrorPrototype,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ "prototype",
+ },
+ }
+ runtime.Global.URIErrorPrototype.property["constructor"] =
+ _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.URIError,
+ },
+ }
+ }
+ {
+ parse_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"parse", builtinJSON_parse},
+ },
+ }
+ stringify_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 3,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"stringify", builtinJSON_stringify},
+ },
+ }
+ runtime.Global.JSON = &_object{
+ runtime: runtime,
+ class: "JSON",
+ objectClass: _classObject,
+ prototype: runtime.Global.ObjectPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "parse": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: parse_function,
+ },
+ },
+ "stringify": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: stringify_function,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "parse",
+ "stringify",
+ },
+ }
+ }
+ {
+ eval_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"eval", builtinGlobal_eval},
+ },
+ }
+ parseInt_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 2,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"parseInt", builtinGlobal_parseInt},
+ },
+ }
+ parseFloat_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"parseFloat", builtinGlobal_parseFloat},
+ },
+ }
+ isNaN_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"isNaN", builtinGlobal_isNaN},
+ },
+ }
+ isFinite_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"isFinite", builtinGlobal_isFinite},
+ },
+ }
+ decodeURI_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"decodeURI", builtinGlobal_decodeURI},
+ },
+ }
+ decodeURIComponent_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"decodeURIComponent", builtinGlobal_decodeURIComponent},
+ },
+ }
+ encodeURI_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"encodeURI", builtinGlobal_encodeURI},
+ },
+ }
+ encodeURIComponent_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"encodeURIComponent", builtinGlobal_encodeURIComponent},
+ },
+ }
+ escape_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"escape", builtinGlobal_escape},
+ },
+ }
+ unescape_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 1,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"unescape", builtinGlobal_unescape},
+ },
+ }
+ runtime.GlobalObject.property = map[string]_property{
+ "eval": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: eval_function,
+ },
+ },
+ "parseInt": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: parseInt_function,
+ },
+ },
+ "parseFloat": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: parseFloat_function,
+ },
+ },
+ "isNaN": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: isNaN_function,
+ },
+ },
+ "isFinite": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: isFinite_function,
+ },
+ },
+ "decodeURI": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: decodeURI_function,
+ },
+ },
+ "decodeURIComponent": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: decodeURIComponent_function,
+ },
+ },
+ "encodeURI": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: encodeURI_function,
+ },
+ },
+ "encodeURIComponent": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: encodeURIComponent_function,
+ },
+ },
+ "escape": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: escape_function,
+ },
+ },
+ "unescape": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: unescape_function,
+ },
+ },
+ "Object": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Object,
+ },
+ },
+ "Function": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Function,
+ },
+ },
+ "Array": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Array,
+ },
+ },
+ "String": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.String,
+ },
+ },
+ "Boolean": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Boolean,
+ },
+ },
+ "Number": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Number,
+ },
+ },
+ "Math": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Math,
+ },
+ },
+ "Date": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Date,
+ },
+ },
+ "RegExp": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.RegExp,
+ },
+ },
+ "Error": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.Error,
+ },
+ },
+ "EvalError": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.EvalError,
+ },
+ },
+ "TypeError": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.TypeError,
+ },
+ },
+ "RangeError": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.RangeError,
+ },
+ },
+ "ReferenceError": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.ReferenceError,
+ },
+ },
+ "SyntaxError": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.SyntaxError,
+ },
+ },
+ "URIError": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.URIError,
+ },
+ },
+ "JSON": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: runtime.Global.JSON,
+ },
+ },
+ "undefined": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueUndefined,
+ },
+ },
+ "NaN": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: math.NaN(),
+ },
+ },
+ "Infinity": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: math.Inf(+1),
+ },
+ },
+ }
+ runtime.GlobalObject.propertyOrder = []string{
+ "eval",
+ "parseInt",
+ "parseFloat",
+ "isNaN",
+ "isFinite",
+ "decodeURI",
+ "decodeURIComponent",
+ "encodeURI",
+ "encodeURIComponent",
+ "escape",
+ "unescape",
+ "Object",
+ "Function",
+ "Array",
+ "String",
+ "Boolean",
+ "Number",
+ "Math",
+ "Date",
+ "RegExp",
+ "Error",
+ "EvalError",
+ "TypeError",
+ "RangeError",
+ "ReferenceError",
+ "SyntaxError",
+ "URIError",
+ "JSON",
+ "undefined",
+ "NaN",
+ "Infinity",
+ }
+ }
+}
+
+func newConsoleObject(runtime *_runtime) *_object {
+ {
+ log_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"log", builtinConsole_log},
+ },
+ }
+ debug_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"debug", builtinConsole_log},
+ },
+ }
+ info_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"info", builtinConsole_log},
+ },
+ }
+ error_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"error", builtinConsole_error},
+ },
+ }
+ warn_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"warn", builtinConsole_error},
+ },
+ }
+ dir_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"dir", builtinConsole_dir},
+ },
+ }
+ time_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"time", builtinConsole_time},
+ },
+ }
+ timeEnd_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"timeEnd", builtinConsole_timeEnd},
+ },
+ }
+ trace_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"trace", builtinConsole_trace},
+ },
+ }
+ assert_function := &_object{
+ runtime: runtime,
+ class: "Function",
+ objectClass: _classObject,
+ prototype: runtime.Global.FunctionPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "length": _property{
+ mode: 0,
+ value: Value{
+ _valueType: valueNumber,
+ value: 0,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "length",
+ },
+ value: _functionObject{
+ call: _nativeCallFunction{"assert", builtinConsole_assert},
+ },
+ }
+ return &_object{
+ runtime: runtime,
+ class: "Object",
+ objectClass: _classObject,
+ prototype: runtime.Global.ObjectPrototype,
+ extensible: true,
+ property: map[string]_property{
+ "log": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: log_function,
+ },
+ },
+ "debug": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: debug_function,
+ },
+ },
+ "info": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: info_function,
+ },
+ },
+ "error": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: error_function,
+ },
+ },
+ "warn": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: warn_function,
+ },
+ },
+ "dir": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: dir_function,
+ },
+ },
+ "time": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: time_function,
+ },
+ },
+ "timeEnd": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: timeEnd_function,
+ },
+ },
+ "trace": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: trace_function,
+ },
+ },
+ "assert": _property{
+ mode: 0101,
+ value: Value{
+ _valueType: valueObject,
+ value: assert_function,
+ },
+ },
+ },
+ propertyOrder: []string{
+ "log",
+ "debug",
+ "info",
+ "error",
+ "warn",
+ "dir",
+ "time",
+ "timeEnd",
+ "trace",
+ "assert",
+ },
+ }
+ }
+}
+
+func toValue_int(value int) Value {
+ return Value{
+ _valueType: valueNumber,
+ value: value,
+ }
+}
+
+func toValue_int8(value int8) Value {
+ return Value{
+ _valueType: valueNumber,
+ value: value,
+ }
+}
+
+func toValue_int16(value int16) Value {
+ return Value{
+ _valueType: valueNumber,
+ value: value,
+ }
+}
+
+func toValue_int32(value int32) Value {
+ return Value{
+ _valueType: valueNumber,
+ value: value,
+ }
+}
+
+func toValue_int64(value int64) Value {
+ return Value{
+ _valueType: valueNumber,
+ value: value,
+ }
+}
+
+func toValue_uint(value uint) Value {
+ return Value{
+ _valueType: valueNumber,
+ value: value,
+ }
+}
+
+func toValue_uint8(value uint8) Value {
+ return Value{
+ _valueType: valueNumber,
+ value: value,
+ }
+}
+
+func toValue_uint16(value uint16) Value {
+ return Value{
+ _valueType: valueNumber,
+ value: value,
+ }
+}
+
+func toValue_uint32(value uint32) Value {
+ return Value{
+ _valueType: valueNumber,
+ value: value,
+ }
+}
+
+func toValue_uint64(value uint64) Value {
+ return Value{
+ _valueType: valueNumber,
+ value: value,
+ }
+}
+
+func toValue_float32(value float32) Value {
+ return Value{
+ _valueType: valueNumber,
+ value: value,
+ }
+}
+
+func toValue_float64(value float64) Value {
+ return Value{
+ _valueType: valueNumber,
+ value: value,
+ }
+}
+
+func toValue_string(value string) Value {
+ return Value{
+ _valueType: valueString,
+ value: value,
+ }
+}
+
+func toValue_string16(value []uint16) Value {
+ return Value{
+ _valueType: valueString,
+ value: value,
+ }
+}
+
+func toValue_bool(value bool) Value {
+ return Value{
+ _valueType: valueBoolean,
+ value: value,
+ }
+}
+
+func toValue_object(value *_object) Value {
+ return Value{
+ _valueType: valueObject,
+ value: value,
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/json_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/json_test.go
new file mode 100644
index 000000000..4dd2ed7bf
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/json_test.go
@@ -0,0 +1,183 @@
+package otto
+
+import (
+ "testing"
+)
+
+func BenchmarkJSON_parse(b *testing.B) {
+ vm := New()
+ for i := 0; i < b.N; i++ {
+ vm.Run(`JSON.parse("1")`)
+ vm.Run(`JSON.parse("[1,2,3]")`)
+ vm.Run(`JSON.parse('{"a":{"x":100,"y":110},"b":[10,20,30],"c":"zazazaza"}')`)
+ vm.Run(`JSON.parse("[1,2,3]", function(k, v) { return undefined })`)
+ }
+}
+
+func TestJSON_parse(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ JSON.parse("1");
+ `, 1)
+
+ test(`
+ JSON.parse("null");
+ `, "null") // TODO Can we make this nil?
+
+ test(`
+ var abc = JSON.parse('"a\uFFFFbc"');
+ [ abc[0], abc[2], abc[3], abc.length ];
+ `, "a,b,c,4")
+
+ test(`
+ JSON.parse("[1, 2, 3]");
+ `, "1,2,3")
+
+ test(`
+ JSON.parse('{ "abc": 1, "def":2 }').abc;
+ `, 1)
+
+ test(`
+ JSON.parse('{ "abc": { "x": 100, "y": 110 }, "def": [ 10, 20 ,30 ], "ghi": "zazazaza" }').def;
+ `, "10,20,30")
+
+ test(`raise:
+ JSON.parse("12\t\r\n 34");
+ `, "SyntaxError: invalid character '3' after top-level value")
+
+ test(`
+ JSON.parse("[1, 2, 3]", function() { return undefined });
+ `, "undefined")
+
+ test(`raise:
+ JSON.parse("");
+ `, "SyntaxError: unexpected end of JSON input")
+
+ test(`raise:
+ JSON.parse("[1, 2, 3");
+ `, "SyntaxError: unexpected end of JSON input")
+
+ test(`raise:
+ JSON.parse("[1, 2, ; abc=10");
+ `, "SyntaxError: invalid character ';' looking for beginning of value")
+
+ test(`raise:
+ JSON.parse("[1, 2, function(){}]");
+ `, "SyntaxError: invalid character 'u' in literal false (expecting 'a')")
+ })
+}
+
+func TestJSON_stringify(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ defer mockUTC()()
+
+ test(`
+ JSON.stringify(function(){});
+ `, "undefined")
+
+ test(`
+ JSON.stringify(new Boolean(false));
+ `, "false")
+
+ test(`
+ JSON.stringify({a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}}, a2: 'a2'}, null, -5);
+ `, `{"a1":{"b1":[1,2,3,4],"b2":{"c1":1,"c2":2}},"a2":"a2"}`)
+
+ test(`
+ JSON.stringify(undefined);
+ `, "undefined")
+
+ test(`
+ JSON.stringify(1);
+ `, "1")
+
+ test(`
+ JSON.stringify("abc def");
+ `, "\"abc def\"")
+
+ test(`
+ JSON.stringify(3.14159);
+ `, "3.14159")
+
+ test(`
+ JSON.stringify([]);
+ `, "[]")
+
+ test(`
+ JSON.stringify([1, 2, 3]);
+ `, "[1,2,3]")
+
+ test(`
+ JSON.stringify([true, false, null]);
+ `, "[true,false,null]")
+
+ test(`
+ JSON.stringify({
+ abc: { x: 100, y: 110 },
+ def: [ 10, 20, 30 ],
+ ghi: "zazazaza"
+ });
+ `, `{"abc":{"x":100,"y":110},"def":[10,20,30],"ghi":"zazazaza"}`)
+
+ test(`
+ JSON.stringify([
+ 'e',
+ {pluribus: 'unum'}
+ ], null, '\t');
+ `, "[\n\t\"e\",\n\t{\n\t\t\"pluribus\": \"unum\"\n\t}\n]")
+
+ test(`
+ JSON.stringify(new Date(0));
+ `, `"1970-01-01T00:00:00.000Z"`)
+
+ test(`
+ JSON.stringify([ new Date(0) ], function(key, value){
+ return this[key] instanceof Date ? 'Date(' + this[key] + ')' : value
+ });
+ `, `["Date(Thu, 01 Jan 1970 00:00:00 UTC)"]`)
+
+ test(`
+ JSON.stringify({
+ abc: 1,
+ def: 2,
+ ghi: 3
+ }, ['abc','def']);
+ `, `{"abc":1,"def":2}`)
+
+ test(`raise:
+ var abc = {
+ def: null
+ };
+ abc.def = abc;
+ JSON.stringify(abc)
+ `, "TypeError: Converting circular structure to JSON")
+
+ test(`raise:
+ var abc= [ null ];
+ abc[0] = abc;
+ JSON.stringify(abc);
+ `, "TypeError: Converting circular structure to JSON")
+
+ test(`raise:
+ var abc = {
+ def: {}
+ };
+ abc.def.ghi = abc;
+ JSON.stringify(abc)
+ `, "TypeError: Converting circular structure to JSON")
+
+ test(`
+ var ghi = { "pi": 3.14159 };
+ var abc = {
+ def: {}
+ };
+ abc.ghi = ghi;
+ abc.def.ghi = ghi;
+ JSON.stringify(abc);
+ `, `{"def":{"ghi":{"pi":3.14159}},"ghi":{"pi":3.14159}}`)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/math_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/math_test.go
new file mode 100644
index 000000000..499998b14
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/math_test.go
@@ -0,0 +1,303 @@
+package otto
+
+import (
+ "math"
+ "testing"
+)
+
+var _NaN = math.NaN()
+var _Infinity = math.Inf(1)
+
+func TestMath_toString(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.toString()`, "[object Math]")
+ })
+}
+
+func TestMath_abs(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.abs(NaN)`, _NaN)
+ test(`Math.abs(2)`, 2)
+ test(`Math.abs(-2)`, 2)
+ test(`Math.abs(-Infinity)`, _Infinity)
+
+ test(`Math.acos(0.5)`, 1.0471975511965976)
+
+ test(`Math.abs('-1')`, 1)
+ test(`Math.abs(-2)`, 2)
+ test(`Math.abs(null)`, 0)
+ test(`Math.abs("string")`, _NaN)
+ test(`Math.abs()`, _NaN)
+ })
+}
+
+func TestMath_acos(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.acos(NaN)`, _NaN)
+ test(`Math.acos(2)`, _NaN)
+ test(`Math.acos(-2)`, _NaN)
+ test(`1/Math.acos(1)`, _Infinity)
+
+ test(`Math.acos(0.5)`, 1.0471975511965976)
+ })
+}
+
+func TestMath_asin(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.asin(NaN)`, _NaN)
+ test(`Math.asin(2)`, _NaN)
+ test(`Math.asin(-2)`, _NaN)
+ test(`1/Math.asin(0)`, _Infinity)
+ test(`1/Math.asin(-0)`, -_Infinity)
+
+ test(`Math.asin(0.5)`, 0.5235987755982989)
+ })
+}
+
+func TestMath_atan(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.atan(NaN)`, _NaN)
+ test(`1/Math.atan(0)`, _Infinity)
+ test(`1/Math.atan(-0)`, -_Infinity)
+ test(`Math.atan(Infinity)`, 1.5707963267948966)
+ test(`Math.atan(-Infinity)`, -1.5707963267948966)
+
+ // freebsd/386 1.03 => 0.4636476090008061
+ // darwin 1.03 => 0.46364760900080604
+ test(`Math.atan(0.5).toPrecision(10)`, "0.463647609")
+ })
+}
+
+func TestMath_atan2(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.atan2()`, _NaN)
+ test(`Math.atan2(NaN)`, _NaN)
+ test(`Math.atan2(0, NaN)`, _NaN)
+
+ test(`Math.atan2(1, 0)`, 1.5707963267948966)
+ test(`Math.atan2(1, -0)`, 1.5707963267948966)
+
+ test(`1/Math.atan2(0, 1)`, _Infinity)
+ test(`1/Math.atan2(0, 0)`, _Infinity)
+ test(`Math.atan2(0, -0)`, 3.141592653589793)
+ test(`Math.atan2(0, -1)`, 3.141592653589793)
+
+ test(`1/Math.atan2(-0, 1)`, -_Infinity)
+ test(`1/Math.atan2(-0, 0)`, -_Infinity)
+ test(`Math.atan2(-0, -0)`, -3.141592653589793)
+ test(`Math.atan2(-0, -1)`, -3.141592653589793)
+
+ test(`Math.atan2(-1, 0)`, -1.5707963267948966)
+ test(`Math.atan2(-1, -0)`, -1.5707963267948966)
+
+ test(`1/Math.atan2(1, Infinity)`, _Infinity)
+ test(`Math.atan2(1, -Infinity)`, 3.141592653589793)
+ test(`1/Math.atan2(-1, Infinity)`, -_Infinity)
+ test(`Math.atan2(-1, -Infinity)`, -3.141592653589793)
+
+ test(`Math.atan2(Infinity, 1)`, 1.5707963267948966)
+ test(`Math.atan2(-Infinity, 1)`, -1.5707963267948966)
+
+ test(`Math.atan2(Infinity, Infinity)`, 0.7853981633974483)
+ test(`Math.atan2(Infinity, -Infinity)`, 2.356194490192345)
+ test(`Math.atan2(-Infinity, Infinity)`, -0.7853981633974483)
+ test(`Math.atan2(-Infinity, -Infinity)`, -2.356194490192345)
+ })
+}
+
+func TestMath_ceil(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.ceil(NaN)`, _NaN)
+ test(`Math.ceil(+0)`, 0)
+ test(`1/Math.ceil(-0)`, -_Infinity)
+ test(`Math.ceil(Infinity)`, _Infinity)
+ test(`Math.ceil(-Infinity)`, -_Infinity)
+ test(`1/Math.ceil(-0.5)`, -_Infinity)
+
+ test(`Math.ceil(-11)`, -11)
+ test(`Math.ceil(-0.5)`, 0)
+ test(`Math.ceil(1.5)`, 2)
+ })
+}
+
+func TestMath_cos(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.cos(NaN)`, _NaN)
+ test(`Math.cos(+0)`, 1)
+ test(`Math.cos(-0)`, 1)
+ test(`Math.cos(Infinity)`, _NaN)
+ test(`Math.cos(-Infinity)`, _NaN)
+
+ test(`Math.cos(0.5)`, 0.8775825618903728)
+ })
+}
+
+func TestMath_exp(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.exp(NaN)`, _NaN)
+ test(`Math.exp(+0)`, 1)
+ test(`Math.exp(-0)`, 1)
+ test(`Math.exp(Infinity)`, _Infinity)
+ test(`Math.exp(-Infinity)`, 0)
+ })
+}
+
+func TestMath_floor(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.floor(NaN)`, _NaN)
+ test(`Math.floor(+0)`, 0)
+ test(`1/Math.floor(-0)`, -_Infinity)
+ test(`Math.floor(Infinity)`, _Infinity)
+ test(`Math.floor(-Infinity)`, -_Infinity)
+
+ test(`Math.floor(-11)`, -11)
+ test(`Math.floor(-0.5)`, -1)
+ test(`Math.floor(1.5)`, 1)
+ })
+}
+
+func TestMath_log(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.log(NaN)`, _NaN)
+ test(`Math.log(-1)`, _NaN)
+ test(`Math.log(+0)`, -_Infinity)
+ test(`Math.log(-0)`, -_Infinity)
+ test(`1/Math.log(1)`, _Infinity)
+ test(`Math.log(Infinity)`, _Infinity)
+
+ test(`Math.log(0.5)`, -0.6931471805599453)
+ })
+}
+
+func TestMath_max(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.max(-11, -1, 0, 1, 2, 3, 11)`, 11)
+ })
+}
+
+func TestMath_min(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.min(-11, -1, 0, 1, 2, 3, 11)`, -11)
+ })
+}
+
+func TestMath_pow(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.pow(0, NaN)`, _NaN)
+ test(`Math.pow(0, 0)`, 1)
+ test(`Math.pow(NaN, 0)`, 1)
+ test(`Math.pow(0, -0)`, 1)
+ test(`Math.pow(NaN, -0)`, 1)
+ test(`Math.pow(NaN, 1)`, _NaN)
+ test(`Math.pow(2, Infinity)`, _Infinity)
+ test(`1/Math.pow(2, -Infinity)`, _Infinity)
+ test(`Math.pow(1, Infinity)`, _NaN)
+ test(`Math.pow(1, -Infinity)`, _NaN)
+ test(`1/Math.pow(0.1, Infinity)`, _Infinity)
+ test(`Math.pow(0.1, -Infinity)`, _Infinity)
+ test(`Math.pow(Infinity, 1)`, _Infinity)
+ test(`1/Math.pow(Infinity, -1)`, _Infinity)
+ test(`Math.pow(-Infinity, 1)`, -_Infinity)
+ test(`Math.pow(-Infinity, 2)`, _Infinity)
+ test(`1/Math.pow(-Infinity, -1)`, -_Infinity)
+ test(`1/Math.pow(-Infinity, -2)`, _Infinity)
+ test(`1/Math.pow(0, 1)`, _Infinity)
+ test(`Math.pow(0, -1)`, _Infinity)
+ test(`1/Math.pow(-0, 1)`, -_Infinity)
+ test(`1/Math.pow(-0, 2)`, _Infinity)
+ test(`Math.pow(-0, -1)`, -_Infinity)
+ test(`Math.pow(-0, -2)`, _Infinity)
+ test(`Math.pow(-1, 0.1)`, _NaN)
+
+ test(`
+ [ Math.pow(-1, +Infinity), Math.pow(1, Infinity) ];
+ `, "NaN,NaN")
+ })
+}
+
+func TestMath_round(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.round(NaN)`, _NaN)
+ test(`1/Math.round(0)`, _Infinity)
+ test(`1/Math.round(-0)`, -_Infinity)
+ test(`Math.round(Infinity)`, _Infinity)
+ test(`Math.round(-Infinity)`, -_Infinity)
+ test(`1/Math.round(0.1)`, _Infinity)
+ test(`1/Math.round(-0.1)`, -_Infinity)
+
+ test(`Math.round(3.5)`, 4)
+ test(`Math.round(-3.5)`, -3)
+ })
+}
+
+func TestMath_sin(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.sin(NaN)`, _NaN)
+ test(`1/Math.sin(+0)`, _Infinity)
+ test(`1/Math.sin(-0)`, -_Infinity)
+ test(`Math.sin(Infinity)`, _NaN)
+ test(`Math.sin(-Infinity)`, _NaN)
+
+ test(`Math.sin(0.5)`, 0.479425538604203)
+ })
+}
+
+func TestMath_sqrt(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.sqrt(NaN)`, _NaN)
+ test(`Math.sqrt(-1)`, _NaN)
+ test(`1/Math.sqrt(+0)`, _Infinity)
+ test(`1/Math.sqrt(-0)`, -_Infinity)
+ test(`Math.sqrt(Infinity)`, _Infinity)
+
+ test(`Math.sqrt(2)`, 1.4142135623730951)
+ })
+}
+
+func TestMath_tan(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Math.tan(NaN)`, _NaN)
+ test(`1/Math.tan(+0)`, _Infinity)
+ test(`1/Math.tan(-0)`, -_Infinity)
+ test(`Math.tan(Infinity)`, _NaN)
+ test(`Math.tan(-Infinity)`, _NaN)
+
+ test(`Math.tan(0.5)`, 0.5463024898437905)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/number_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/number_test.go
new file mode 100644
index 000000000..f3790e077
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/number_test.go
@@ -0,0 +1,167 @@
+package otto
+
+import (
+ "testing"
+)
+
+func TestNumber(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = Object.getOwnPropertyDescriptor(Number, "prototype");
+ [ [ typeof Number.prototype ],
+ [ abc.writable, abc.enumerable, abc.configurable ] ];
+ `, "object,false,false,false")
+ })
+}
+
+func TestNumber_toString(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ new Number(451).toString();
+ `, "451")
+
+ test(`
+ new Number(451).toString(10);
+ `, "451")
+
+ test(`
+ new Number(451).toString(8);
+ `, "703")
+
+ test(`raise:
+ new Number(451).toString(1);
+ `, "RangeError: RangeError: toString() radix must be between 2 and 36")
+
+ test(`raise:
+ new Number(451).toString(Infinity);
+ `, "RangeError: RangeError: toString() radix must be between 2 and 36")
+
+ test(`
+ new Number(NaN).toString()
+ `, "NaN")
+
+ test(`
+ new Number(Infinity).toString()
+ `, "Infinity")
+
+ test(`
+ new Number(Infinity).toString(16)
+ `, "Infinity")
+
+ test(`
+ [
+ Number.prototype.toString(undefined),
+ new Number().toString(undefined),
+ new Number(0).toString(undefined),
+ new Number(-1).toString(undefined),
+ new Number(1).toString(undefined),
+ new Number(Number.NaN).toString(undefined),
+ new Number(Number.POSITIVE_INFINITY).toString(undefined),
+ new Number(Number.NEGATIVE_INFINITY).toString(undefined)
+ ]
+ `, "0,0,0,-1,1,NaN,Infinity,-Infinity")
+ })
+}
+
+func TestNumber_toFixed(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`new Number(451).toFixed(2)`, "451.00")
+ test(`12345.6789.toFixed()`, "12346")
+ test(`12345.6789.toFixed(1)`, "12345.7")
+ test(`12345.6789.toFixed(6)`, "12345.678900")
+ test(`(1.23e-20).toFixed(2)`, "0.00")
+ test(`2.34.toFixed(1)`, "2.3") // FIXME Wtf? "2.3"
+ test(`-2.34.toFixed(1)`, -2.3) // FIXME Wtf? -2.3
+ test(`(-2.34).toFixed(1)`, "-2.3")
+
+ test(`raise:
+ new Number("a").toFixed(Number.POSITIVE_INFINITY);
+ `, "RangeError: toFixed() precision must be between 0 and 20")
+
+ test(`
+ [
+ new Number(1e21).toFixed(),
+ new Number(1e21).toFixed(0),
+ new Number(1e21).toFixed(1),
+ new Number(1e21).toFixed(1.1),
+ new Number(1e21).toFixed(0.9),
+ new Number(1e21).toFixed("1"),
+ new Number(1e21).toFixed("1.1"),
+ new Number(1e21).toFixed("0.9"),
+ new Number(1e21).toFixed(Number.NaN),
+ new Number(1e21).toFixed("some string")
+ ];
+ `, "1e+21,1e+21,1e+21,1e+21,1e+21,1e+21,1e+21,1e+21,1e+21,1e+21")
+
+ test(`raise:
+ new Number(1e21).toFixed(Number.POSITIVE_INFINITY);
+ `, "RangeError: toFixed() precision must be between 0 and 20")
+ })
+}
+
+func TestNumber_toExponential(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`new Number(451).toExponential(2)`, "4.51e+02")
+ test(`77.1234.toExponential()`, "7.71234e+01")
+ test(`77.1234.toExponential(4)`, "7.7123e+01")
+ test(`77.1234.toExponential(2)`, "7.71e+01")
+ test(`77 .toExponential()`, "7.7e+01")
+ })
+}
+
+func TestNumber_toPrecision(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`new Number(451).toPrecision()`, "451")
+ test(`new Number(451).toPrecision(1)`, "5e+02")
+ test(`5.123456.toPrecision()`, "5.123456")
+ test(`5.123456.toPrecision(5)`, "5.1235")
+ test(`5.123456.toPrecision(2)`, "5.1")
+ test(`5.123456.toPrecision(1)`, "5")
+ })
+}
+
+func TestNumber_toLocaleString(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [
+ new Number(451).toLocaleString(),
+ new Number(451).toLocaleString(10),
+ new Number(451).toLocaleString(8)
+ ];
+ `, "451,451,703")
+ })
+}
+
+func Test_toInteger(t *testing.T) {
+ tt(t, func() {
+ integer := toInteger(toValue(0.0))
+ is(integer.valid(), true)
+ is(integer.exact(), true)
+
+ integer = toInteger(toValue(3.14159))
+ is(integer.valid(), true)
+ is(integer.exact(), false)
+ })
+}
+
+func Test_NaN(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [ NaN === NaN, NaN == NaN ];
+ `, "false,false")
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/object.go b/Godeps/_workspace/src/github.com/obscuren/otto/object.go
new file mode 100644
index 000000000..fe6f58729
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/object.go
@@ -0,0 +1,156 @@
+package otto
+
+type _object struct {
+ runtime *_runtime
+
+ class string
+ objectClass *_objectClass
+ value interface{}
+
+ prototype *_object
+ extensible bool
+
+ property map[string]_property
+ propertyOrder []string
+}
+
+func newObject(runtime *_runtime, class string) *_object {
+ self := &_object{
+ runtime: runtime,
+ class: class,
+ objectClass: _classObject,
+ property: make(map[string]_property),
+ extensible: true,
+ }
+ return self
+}
+
+// 8.12
+
+// 8.12.1
+func (self *_object) getOwnProperty(name string) *_property {
+ return self.objectClass.getOwnProperty(self, name)
+}
+
+// 8.12.2
+func (self *_object) getProperty(name string) *_property {
+ return self.objectClass.getProperty(self, name)
+}
+
+// 8.12.3
+func (self *_object) get(name string) Value {
+ return self.objectClass.get(self, name)
+}
+
+// 8.12.4
+func (self *_object) canPut(name string) bool {
+ return self.objectClass.canPut(self, name)
+}
+
+// 8.12.5
+func (self *_object) put(name string, value Value, throw bool) {
+ self.objectClass.put(self, name, value, throw)
+}
+
+// 8.12.6
+func (self *_object) hasProperty(name string) bool {
+ return self.objectClass.hasProperty(self, name)
+}
+
+func (self *_object) hasOwnProperty(name string) bool {
+ return self.objectClass.hasOwnProperty(self, name)
+}
+
+type _defaultValueHint int
+
+const (
+ defaultValueNoHint _defaultValueHint = iota
+ defaultValueHintString
+ defaultValueHintNumber
+)
+
+// 8.12.8
+func (self *_object) DefaultValue(hint _defaultValueHint) Value {
+ if hint == defaultValueNoHint {
+ if self.class == "Date" {
+ // Date exception
+ hint = defaultValueHintString
+ } else {
+ hint = defaultValueHintNumber
+ }
+ }
+ methodSequence := []string{"valueOf", "toString"}
+ if hint == defaultValueHintString {
+ methodSequence = []string{"toString", "valueOf"}
+ }
+ for _, methodName := range methodSequence {
+ method := self.get(methodName)
+ if method.isCallable() {
+ result := method._object().Call(toValue_object(self))
+ if result.IsPrimitive() {
+ return result
+ }
+ }
+ }
+
+ panic(newTypeError())
+ return UndefinedValue()
+}
+
+func (self *_object) String() string {
+ return toString(self.DefaultValue(defaultValueHintString))
+}
+
+func (self *_object) defineProperty(name string, value Value, mode _propertyMode, throw bool) bool {
+ return self.defineOwnProperty(name, _property{value, mode}, throw)
+}
+
+// 8.12.9
+func (self *_object) defineOwnProperty(name string, descriptor _property, throw bool) bool {
+ return self.objectClass.defineOwnProperty(self, name, descriptor, throw)
+}
+
+func (self *_object) delete(name string, throw bool) bool {
+ return self.objectClass.delete(self, name, throw)
+}
+
+func (self *_object) enumerate(all bool, each func(string) bool) {
+ self.objectClass.enumerate(self, all, each)
+}
+
+func (self *_object) _exists(name string) bool {
+ _, exists := self.property[name]
+ return exists
+}
+
+func (self *_object) _read(name string) (_property, bool) {
+ property, exists := self.property[name]
+ return property, exists
+}
+
+func (self *_object) _write(name string, value interface{}, mode _propertyMode) {
+ if value == nil {
+ value = UndefinedValue()
+ }
+ _, exists := self.property[name]
+ self.property[name] = _property{value, mode}
+ if !exists {
+ self.propertyOrder = append(self.propertyOrder, name)
+ }
+}
+
+func (self *_object) _delete(name string) {
+ _, exists := self.property[name]
+ delete(self.property, name)
+ if exists {
+ for index, property := range self.propertyOrder {
+ if name == property {
+ if index == len(self.propertyOrder)-1 {
+ self.propertyOrder = self.propertyOrder[:index]
+ } else {
+ self.propertyOrder = append(self.propertyOrder[:index], self.propertyOrder[index+1:]...)
+ }
+ }
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/object_class.go b/Godeps/_workspace/src/github.com/obscuren/otto/object_class.go
new file mode 100644
index 000000000..0464503b0
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/object_class.go
@@ -0,0 +1,484 @@
+package otto
+
+import (
+ "encoding/json"
+)
+
+type _objectClass struct {
+ getOwnProperty func(*_object, string) *_property
+ getProperty func(*_object, string) *_property
+ get func(*_object, string) Value
+ canPut func(*_object, string) bool
+ put func(*_object, string, Value, bool)
+ hasProperty func(*_object, string) bool
+ hasOwnProperty func(*_object, string) bool
+ defineOwnProperty func(*_object, string, _property, bool) bool
+ delete func(*_object, string, bool) bool
+ enumerate func(*_object, bool, func(string) bool)
+ clone func(*_object, *_object, *_clone) *_object
+ marshalJSON func(*_object) json.Marshaler
+}
+
+func objectEnumerate(self *_object, all bool, each func(string) bool) {
+ for _, name := range self.propertyOrder {
+ if all || self.property[name].enumerable() {
+ if !each(name) {
+ return
+ }
+ }
+ }
+}
+
+var (
+ _classObject,
+ _classArray,
+ _classString,
+ _classArguments,
+ _classGoStruct,
+ _classGoMap,
+ _classGoArray,
+ _classGoSlice,
+ _ *_objectClass
+)
+
+func init() {
+ _classObject = &_objectClass{
+ objectGetOwnProperty,
+ objectGetProperty,
+ objectGet,
+ objectCanPut,
+ objectPut,
+ objectHasProperty,
+ objectHasOwnProperty,
+ objectDefineOwnProperty,
+ objectDelete,
+ objectEnumerate,
+ objectClone,
+ nil,
+ }
+
+ _classArray = &_objectClass{
+ objectGetOwnProperty,
+ objectGetProperty,
+ objectGet,
+ objectCanPut,
+ objectPut,
+ objectHasProperty,
+ objectHasOwnProperty,
+ arrayDefineOwnProperty,
+ objectDelete,
+ objectEnumerate,
+ objectClone,
+ nil,
+ }
+
+ _classString = &_objectClass{
+ stringGetOwnProperty,
+ objectGetProperty,
+ objectGet,
+ objectCanPut,
+ objectPut,
+ objectHasProperty,
+ objectHasOwnProperty,
+ objectDefineOwnProperty,
+ objectDelete,
+ stringEnumerate,
+ objectClone,
+ nil,
+ }
+
+ _classArguments = &_objectClass{
+ argumentsGetOwnProperty,
+ objectGetProperty,
+ argumentsGet,
+ objectCanPut,
+ objectPut,
+ objectHasProperty,
+ objectHasOwnProperty,
+ argumentsDefineOwnProperty,
+ argumentsDelete,
+ objectEnumerate,
+ objectClone,
+ nil,
+ }
+
+ _classGoStruct = &_objectClass{
+ goStructGetOwnProperty,
+ objectGetProperty,
+ objectGet,
+ goStructCanPut,
+ goStructPut,
+ objectHasProperty,
+ objectHasOwnProperty,
+ objectDefineOwnProperty,
+ objectDelete,
+ goStructEnumerate,
+ objectClone,
+ goStructMarshalJSON,
+ }
+
+ _classGoMap = &_objectClass{
+ goMapGetOwnProperty,
+ objectGetProperty,
+ objectGet,
+ objectCanPut,
+ objectPut,
+ objectHasProperty,
+ objectHasOwnProperty,
+ goMapDefineOwnProperty,
+ goMapDelete,
+ goMapEnumerate,
+ objectClone,
+ nil,
+ }
+
+ _classGoArray = &_objectClass{
+ goArrayGetOwnProperty,
+ objectGetProperty,
+ objectGet,
+ objectCanPut,
+ objectPut,
+ objectHasProperty,
+ objectHasOwnProperty,
+ goArrayDefineOwnProperty,
+ goArrayDelete,
+ goArrayEnumerate,
+ objectClone,
+ nil,
+ }
+
+ _classGoSlice = &_objectClass{
+ goSliceGetOwnProperty,
+ objectGetProperty,
+ objectGet,
+ objectCanPut,
+ objectPut,
+ objectHasProperty,
+ objectHasOwnProperty,
+ goSliceDefineOwnProperty,
+ goSliceDelete,
+ goSliceEnumerate,
+ objectClone,
+ nil,
+ }
+}
+
+// Allons-y
+
+// 8.12.1
+func objectGetOwnProperty(self *_object, name string) *_property {
+ // Return a _copy_ of the property
+ property, exists := self._read(name)
+ if !exists {
+ return nil
+ }
+ return &property
+}
+
+// 8.12.2
+func objectGetProperty(self *_object, name string) *_property {
+ property := self.getOwnProperty(name)
+ if property != nil {
+ return property
+ }
+ if self.prototype != nil {
+ return self.prototype.getProperty(name)
+ }
+ return nil
+}
+
+// 8.12.3
+func objectGet(self *_object, name string) Value {
+ property := self.getProperty(name)
+ if property != nil {
+ return property.get(self)
+ }
+ return UndefinedValue()
+}
+
+// 8.12.4
+func objectCanPut(self *_object, name string) bool {
+ canPut, _, _ := _objectCanPut(self, name)
+ return canPut
+}
+
+func _objectCanPut(self *_object, name string) (canPut bool, property *_property, setter *_object) {
+ property = self.getOwnProperty(name)
+ if property != nil {
+ switch propertyValue := property.value.(type) {
+ case Value:
+ canPut = property.writable()
+ return
+ case _propertyGetSet:
+ setter = propertyValue[1]
+ canPut = setter != nil
+ return
+ default:
+ panic(newTypeError())
+ }
+ }
+
+ if self.prototype == nil {
+ return self.extensible, nil, nil
+ }
+
+ property = self.prototype.getProperty(name)
+ if property == nil {
+ return self.extensible, nil, nil
+ }
+
+ switch propertyValue := property.value.(type) {
+ case Value:
+ if !self.extensible {
+ return false, nil, nil
+ }
+ return property.writable(), nil, nil
+ case _propertyGetSet:
+ setter = propertyValue[1]
+ canPut = setter != nil
+ return
+ default:
+ panic(newTypeError())
+ }
+
+ return false, nil, nil
+}
+
+// 8.12.5
+func objectPut(self *_object, name string, value Value, throw bool) {
+
+ if true {
+ // Shortcut...
+ //
+ // So, right now, every class is using objectCanPut and every class
+ // is using objectPut.
+ //
+ // If that were to no longer be the case, we would have to have
+ // something to detect that here, so that we do not use an
+ // incompatible canPut routine
+ canPut, property, setter := _objectCanPut(self, name)
+ if !canPut {
+ typeErrorResult(throw)
+ } else if setter != nil {
+ setter.callSet(toValue(self), value)
+ } else if property != nil {
+ property.value = value
+ self.defineOwnProperty(name, *property, throw)
+ } else {
+ self.defineProperty(name, value, 0111, throw)
+ }
+ return
+ }
+
+ // The long way...
+ //
+ // Right now, code should never get here, see above
+ if !self.canPut(name) {
+ typeErrorResult(throw)
+ return
+ }
+
+ property := self.getOwnProperty(name)
+ if property == nil {
+ property = self.getProperty(name)
+ if property != nil {
+ if getSet, isAccessor := property.value.(_propertyGetSet); isAccessor {
+ getSet[1].callSet(toValue(self), value)
+ return
+ }
+ }
+ self.defineProperty(name, value, 0111, throw)
+ } else {
+ switch propertyValue := property.value.(type) {
+ case Value:
+ property.value = value
+ self.defineOwnProperty(name, *property, throw)
+ case _propertyGetSet:
+ if propertyValue[1] != nil {
+ propertyValue[1].callSet(toValue(self), value)
+ return
+ }
+ if throw {
+ panic(newTypeError())
+ }
+ default:
+ panic(newTypeError())
+ }
+ }
+}
+
+// 8.12.6
+func objectHasProperty(self *_object, name string) bool {
+ return self.getProperty(name) != nil
+}
+
+func objectHasOwnProperty(self *_object, name string) bool {
+ return self.getOwnProperty(name) != nil
+}
+
+// 8.12.9
+func objectDefineOwnProperty(self *_object, name string, descriptor _property, throw bool) bool {
+ property, exists := self._read(name)
+ {
+ if !exists {
+ if !self.extensible {
+ goto Reject
+ }
+ if newGetSet, isAccessor := descriptor.value.(_propertyGetSet); isAccessor {
+ if newGetSet[0] == &_nilGetSetObject {
+ newGetSet[0] = nil
+ }
+ if newGetSet[1] == &_nilGetSetObject {
+ newGetSet[1] = nil
+ }
+ descriptor.value = newGetSet
+ }
+ self._write(name, descriptor.value, descriptor.mode)
+ return true
+ }
+ if descriptor.isEmpty() {
+ return true
+ }
+
+ // TODO Per 8.12.9.6 - We should shortcut here (returning true) if
+ // the current and new (define) properties are the same
+
+ configurable := property.configurable()
+ if !configurable {
+ if descriptor.configurable() {
+ goto Reject
+ }
+ // Test that, if enumerable is set on the property descriptor, then it should
+ // be the same as the existing property
+ if descriptor.enumerateSet() && descriptor.enumerable() != property.enumerable() {
+ goto Reject
+ }
+ }
+ value, isDataDescriptor := property.value.(Value)
+ getSet, _ := property.value.(_propertyGetSet)
+ if descriptor.isGenericDescriptor() {
+ // GenericDescriptor
+ } else if isDataDescriptor != descriptor.isDataDescriptor() {
+ // DataDescriptor <=> AccessorDescriptor
+ if !configurable {
+ goto Reject
+ }
+ } else if isDataDescriptor && descriptor.isDataDescriptor() {
+ // DataDescriptor <=> DataDescriptor
+ if !configurable {
+ if !property.writable() && descriptor.writable() {
+ goto Reject
+ }
+ if !property.writable() {
+ if descriptor.value != nil && !sameValue(value, descriptor.value.(Value)) {
+ goto Reject
+ }
+ }
+ }
+ } else {
+ // AccessorDescriptor <=> AccessorDescriptor
+ newGetSet, _ := descriptor.value.(_propertyGetSet)
+ presentGet, presentSet := true, true
+ if newGetSet[0] == &_nilGetSetObject {
+ // Present, but nil
+ newGetSet[0] = nil
+ } else if newGetSet[0] == nil {
+ // Missing, not even nil
+ newGetSet[0] = getSet[0]
+ presentGet = false
+ }
+ if newGetSet[1] == &_nilGetSetObject {
+ // Present, but nil
+ newGetSet[1] = nil
+ } else if newGetSet[1] == nil {
+ // Missing, not even nil
+ newGetSet[1] = getSet[1]
+ presentSet = false
+ }
+ if !configurable {
+ if (presentGet && (getSet[0] != newGetSet[0])) || (presentSet && (getSet[1] != newGetSet[1])) {
+ goto Reject
+ }
+ }
+ descriptor.value = newGetSet
+ }
+ {
+ // This section will preserve attributes of
+ // the original property, if necessary
+ value1 := descriptor.value
+ if value1 == nil {
+ value1 = property.value
+ } else if newGetSet, isAccessor := descriptor.value.(_propertyGetSet); isAccessor {
+ if newGetSet[0] == &_nilGetSetObject {
+ newGetSet[0] = nil
+ }
+ if newGetSet[1] == &_nilGetSetObject {
+ newGetSet[1] = nil
+ }
+ value1 = newGetSet
+ }
+ mode1 := descriptor.mode
+ if mode1&0222 != 0 {
+ // TODO Factor this out into somewhere testable
+ // (Maybe put into switch ...)
+ mode0 := property.mode
+ if mode1&0200 != 0 {
+ if descriptor.isDataDescriptor() {
+ mode1 &= ^0200 // Turn off "writable" missing
+ mode1 |= (mode0 & 0100)
+ }
+ }
+ if mode1&020 != 0 {
+ mode1 |= (mode0 & 010)
+ }
+ if mode1&02 != 0 {
+ mode1 |= (mode0 & 01)
+ }
+ mode1 &= 0311 // 0311 to preserve the non-setting on "writable"
+ }
+ self._write(name, value1, mode1)
+ }
+ return true
+ }
+Reject:
+ if throw {
+ panic(newTypeError())
+ }
+ return false
+}
+
+func objectDelete(self *_object, name string, throw bool) bool {
+ property_ := self.getOwnProperty(name)
+ if property_ == nil {
+ return true
+ }
+ if property_.configurable() {
+ self._delete(name)
+ return true
+ }
+ return typeErrorResult(throw)
+}
+
+func objectClone(self0 *_object, self1 *_object, clone *_clone) *_object {
+ *self1 = *self0
+
+ self1.runtime = clone.runtime
+ if self1.prototype != nil {
+ self1.prototype = clone.object(self0.prototype)
+ }
+ self1.property = make(map[string]_property, len(self0.property))
+ self1.propertyOrder = make([]string, len(self0.propertyOrder))
+ copy(self1.propertyOrder, self0.propertyOrder)
+ for index, property := range self0.property {
+ self1.property[index] = clone.property(property)
+ }
+
+ switch value := self0.value.(type) {
+ case _functionObject:
+ self1.value = value.clone(clone)
+ case _argumentsObject:
+ self1.value = value.clone(clone)
+ }
+
+ return self1
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/object_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/object_test.go
new file mode 100644
index 000000000..d1e90680b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/object_test.go
@@ -0,0 +1,639 @@
+package otto
+
+import (
+ "testing"
+)
+
+func TestObject_(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ object := newObject(nil, "")
+ is(object != nil, true)
+
+ object.put("xyzzy", toValue("Nothing happens."), true)
+ is(object.get("xyzzy"), "Nothing happens.")
+
+ test(`
+ var abc = Object.getOwnPropertyDescriptor(Object, "prototype");
+ [ [ typeof Object.prototype, abc.writable, abc.enumerable, abc.configurable ],
+ ];
+ `, "object,false,false,false")
+ })
+}
+
+func TestStringObject(t *testing.T) {
+ tt(t, func() {
+ object := New().runtime.newStringObject(toValue("xyzzy"))
+ is(object.get("1"), "y")
+ is(object.get("10"), "undefined")
+ is(object.get("2"), "z")
+ })
+}
+
+func TestObject_getPrototypeOf(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = {};
+ def = Object.getPrototypeOf(abc);
+ ghi = Object.getPrototypeOf(def);
+ [abc,def,ghi,ghi+""];
+ `, "[object Object],[object Object],,null")
+
+ test(`
+ abc = Object.getOwnPropertyDescriptor(Object, "getPrototypeOf");
+ [ abc.value === Object.getPrototypeOf, abc.writable, abc.enumerable, abc.configurable ];
+ `, "true,true,false,true")
+ })
+}
+
+func TestObject_new(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [ new Object("abc"), new Object(2+2) ];
+ `, "abc,4")
+ })
+}
+
+func TestObject_create(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise: Object.create()`, "TypeError")
+
+ test(`
+ var abc = Object.create(null)
+ var def = Object.create({x: 10, y: 20})
+ var ghi = Object.create(Object.prototype)
+
+ var jkl = Object.create({x: 10, y: 20}, {
+ z: {
+ value: 30,
+ writable: true
+ },
+ // sum: {
+ // get: function() {
+ // return this.x + this.y + this.z
+ // }
+ // }
+ });
+ [ abc.prototype, def.x, def.y, ghi, jkl.x, jkl.y, jkl.z ]
+ `, ",10,20,[object Object],10,20,30")
+
+ test(`
+ var properties = {};
+ Object.defineProperty(properties, "abc", {
+ value: {},
+ enumerable: false
+ });
+ var mno = Object.create({}, properties);
+ mno.hasOwnProperty("abc");
+ `, false)
+ })
+}
+
+func TestObject_toLocaleString(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ ({}).toLocaleString();
+ `, "[object Object]")
+
+ test(`
+ object = {
+ toString: function() {
+ return "Nothing happens.";
+ }
+ };
+ object.toLocaleString();
+ `, "Nothing happens.")
+ })
+}
+
+func TestObject_isExtensible(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise:
+ Object.isExtensible();
+ `, "TypeError")
+
+ // FIXME terst, Why raise?
+ test(`raise:
+ Object.isExtensible({});
+ `, true)
+
+ test(`Object.isExtensible.length`, 1)
+ test(`Object.isExtensible.prototype`, "undefined")
+ })
+}
+
+func TestObject_preventExtensions(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise:
+ Object.preventExtensions()
+ `, "TypeError")
+
+ test(`raise:
+ var abc = { def: true };
+ var ghi = Object.preventExtensions(abc);
+ [ ghi.def === true, Object.isExtensible(abc), Object.isExtensible(ghi) ];
+ `, "true,false,false")
+
+ test(`
+ var abc = new String();
+ var def = Object.isExtensible(abc);
+ Object.preventExtensions(abc);
+ var ghi = false;
+ try {
+ Object.defineProperty(abc, "0", { value: "~" });
+ } catch (err) {
+ ghi = err instanceof TypeError;
+ }
+ [ def, ghi, abc.hasOwnProperty("0"), typeof abc[0] ];
+ `, "true,true,false,undefined")
+
+ test(`Object.preventExtensions.length`, 1)
+ test(`Object.preventExtensions.prototype`, "undefined")
+ })
+}
+
+func TestObject_isSealed(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Object.isSealed.length`, 1)
+ test(`Object.isSealed.prototype`, "undefined")
+ })
+}
+
+func TestObject_seal(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise: Object.seal()`, "TypeError")
+
+ test(`
+ var abc = {a:1,b:1,c:3};
+ var sealed = Object.isSealed(abc);
+ Object.seal(abc);
+ [sealed, Object.isSealed(abc)];
+ `, "false,true")
+
+ test(`
+ var abc = {a:1,b:1,c:3};
+ var sealed = Object.isSealed(abc);
+ var caught = false;
+ Object.seal(abc);
+ abc.b = 5;
+ Object.defineProperty(abc, "a", {value:4});
+ try {
+ Object.defineProperty(abc, "a", {value:42,enumerable:false});
+ } catch (e) {
+ caught = e instanceof TypeError;
+ }
+ [sealed, Object.isSealed(abc), caught, abc.a, abc.b];
+ `, "false,true,true,4,5")
+
+ test(`Object.seal.length`, 1)
+ test(`Object.seal.prototype`, "undefined")
+ })
+}
+
+func TestObject_isFrozen(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise: Object.isFrozen()`, "TypeError")
+ test(`Object.isFrozen(Object.preventExtensions({a:1}))`, false)
+ test(`Object.isFrozen({})`, false)
+
+ test(`
+ var abc = {};
+ Object.defineProperty(abc, "def", {
+ value: "def",
+ writable: true,
+ configurable: false
+ });
+ Object.preventExtensions(abc);
+ !Object.isFrozen(abc);
+ `, true)
+
+ test(`Object.isFrozen.length`, 1)
+ test(`Object.isFrozen.prototype`, "undefined")
+ })
+}
+
+func TestObject_freeze(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise: Object.freeze()`, "TypeError")
+
+ test(`
+ var abc = {a:1,b:2,c:3};
+ var frozen = Object.isFrozen(abc);
+ Object.freeze(abc);
+ abc.b = 5;
+ [frozen, Object.isFrozen(abc), abc.b];
+ `, "false,true,2")
+
+ test(`
+ var abc = {a:1,b:2,c:3};
+ var frozen = Object.isFrozen(abc);
+ var caught = false;
+ Object.freeze(abc);
+ abc.b = 5;
+ try {
+ Object.defineProperty(abc, "a", {value:4});
+ } catch (e) {
+ caught = e instanceof TypeError;
+ }
+ [frozen, Object.isFrozen(abc), caught, abc.a, abc.b];
+ `, "false,true,true,1,2")
+
+ test(`Object.freeze.length`, 1)
+ test(`Object.freeze.prototype`, "undefined")
+ })
+}
+
+func TestObject_defineProperty(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ (function(abc, def, ghi){
+ Object.defineProperty(arguments, "0", {
+ enumerable: false
+ });
+ return true;
+ })(0, 1, 2);
+ `, true)
+
+ test(`
+ var abc = {};
+ abc.def = 3.14; // Default: writable: true, enumerable: true, configurable: true
+
+ Object.defineProperty(abc, "def", {
+ value: 42
+ });
+
+ var ghi = Object.getOwnPropertyDescriptor(abc, "def");
+ [ ghi.value, ghi.writable, ghi.enumerable, ghi.configurable ];
+ `, "42,true,true,true")
+
+ // Test that we handle the case of DefineOwnProperty
+ // where [[Writable]] is something but [[Value]] is not
+ test(`
+ var abc = [];
+ Object.defineProperty(abc, "0", { writable: false });
+ 0 in abc;
+ `, true)
+
+ // Test that we handle the case of DefineOwnProperty
+ // where [[Writable]] is something but [[Value]] is not
+ // (and the property originally had something for [[Value]]
+ test(`
+ abc = {
+ def: 42
+ };
+ Object.defineProperty(abc, "def", { writable: false });
+ abc.def;
+ `, 42)
+ })
+}
+
+func TestObject_keys(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Object.keys({ abc:undefined, def:undefined })`, "abc,def")
+
+ test(`
+ function abc() {
+ this.abc = undefined;
+ this.def = undefined;
+ }
+ Object.keys(new abc())
+ `, "abc,def")
+
+ test(`
+ function def() {
+ this.ghi = undefined;
+ }
+ def.prototype = new abc();
+ Object.keys(new def());
+ `, "ghi")
+
+ test(`
+ var ghi = Object.create(
+ {
+ abc: undefined,
+ def: undefined
+ },
+ {
+ ghi: { value: undefined, enumerable: true },
+ jkl: { value: undefined, enumerable: false }
+ }
+ );
+ Object.keys(ghi);
+ `, "ghi")
+
+ test(`
+ (function(abc, def, ghi){
+ return Object.keys(arguments)
+ })(undefined, undefined);
+ `, "0,1")
+
+ test(`
+ (function(abc, def, ghi){
+ return Object.keys(arguments)
+ })(undefined, undefined, undefined, undefined);
+ `, "0,1,2,3")
+ })
+}
+
+func TestObject_getOwnPropertyNames(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`Object.getOwnPropertyNames({ abc:undefined, def:undefined })`, "abc,def")
+
+ test(`
+ var ghi = Object.create(
+ {
+ abc: undefined,
+ def: undefined
+ },
+ {
+ ghi: { value: undefined, enumerable: true },
+ jkl: { value: undefined, enumerable: false }
+ }
+ );
+ Object.getOwnPropertyNames(ghi)
+ `, "ghi,jkl")
+ })
+}
+
+func TestObjectGetterSetter(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise:
+ Object.create({}, {
+ abc: {
+ get: function(){
+ return "true";
+ },
+ writable: true
+ }
+ }).abc;
+ `, "TypeError")
+
+ test(`raise:
+ Object.create({}, {
+ abc: {
+ get: function(){
+ return "true";
+ },
+ writable: false
+ }
+ }).abc;
+ `, "TypeError")
+
+ test(`
+ Object.create({}, {
+ abc: {
+ get: function(){
+ return "true";
+ }
+ }
+ }).abc;
+ `, "true")
+
+ test(`
+ Object.create({xyz:true},{abc:{get:function(){return this.xyx}}}).abc;
+ Object.create({
+ xyz: true
+ }, {
+ abc: {
+ get: function(){
+ return this.xyz;
+ }
+ }
+ }).abc;
+ `, true)
+
+ test(`
+ var abc = false;
+ var def = Object.create({}, {
+ xyz: {
+ set: function(value) {
+ abc = value;
+ }
+ }
+ });
+ def.xyz = true;
+ [ abc ];
+ `, "true")
+
+ test(`
+ var abc = {};
+ Object.defineProperty(abc, "def", {
+ value: "xyzzy",
+ configurable: true
+ });
+ Object.preventExtensions(abc);
+ Object.defineProperty(abc, "def", {
+ get: function() {
+ return 5;
+ }
+ });
+ var def = Object.getOwnPropertyDescriptor(abc, "def");
+ [ abc.def, typeof def.get, typeof def.set, typeof def.value, def.configurable, def.enumerable, typeof def.writable ];
+ `, "5,function,undefined,undefined,true,false,undefined")
+
+ test(`
+ var abc = {};
+ Object.defineProperty(abc, "def", {
+ get: function() {
+ return 5;
+ }
+ configurable: true
+ });
+ Object.preventExtensions(abc);
+ Object.defineProperty(abc, "def", {
+ value: "xyzzy",
+ });
+ var def = Object.getOwnPropertyDescriptor(abc, "def");
+ [ abc.def, typeof def.get, typeof def.set, def.value, def.configurable, def.enumerable, def.writable ];
+ `, "xyzzy,undefined,undefined,xyzzy,true,false,false")
+
+ test(`
+ var abc = {};
+
+ function _get0() {
+ return 10;
+ }
+
+ function _set(value) {
+ abc.def = value;
+ }
+
+ Object.defineProperty(abc, "ghi", {
+ get: _get0,
+ set: _set,
+ configurable: true
+ });
+
+ function _get1() {
+ return 20;
+ }
+
+ Object.defineProperty(abc, "ghi", {
+ get: _get0
+ });
+
+ var descriptor = Object.getOwnPropertyDescriptor(abc, "ghi");
+ [ typeof descriptor.set ];
+ `, "function")
+
+ test(`raise:
+ var abc = [];
+ Object.defineProperty(abc, "length", {
+ get: function () {
+ return 2;
+ }
+ });
+ `, "TypeError")
+
+ test(`
+ var abc = {};
+
+ var getter = function() {
+ return 1;
+ }
+
+ Object.defineProperty(abc, "def", {
+ get: getter,
+ configurable: false
+ });
+
+ var jkl = undefined;
+ try {
+ Object.defineProperty(abc, "def", {
+ get: undefined
+ });
+ }
+ catch (err) {
+ jkl = err;
+ }
+ var ghi = Object.getOwnPropertyDescriptor(abc, "def");
+ [ jkl instanceof TypeError, ghi.get === getter, ghi.configurable, ghi.enumerable ];
+ `, "true,true,false,false")
+
+ test(`
+ var abc = {};
+
+ var getter = function() {
+ return 1;
+ };
+
+ Object.defineProperty(abc, "def", {
+ get: getter
+ });
+
+ Object.defineProperty(abc, "def", {
+ set: undefined
+ });
+
+ var ghi = Object.getOwnPropertyDescriptor(abc, "def");
+ [ ghi.get === getter, ghi.set === undefined, ghi.configurable, ghi.enumerable ];
+ `, "true,true,false,false")
+
+ test(`
+ var abc = {};
+
+ var getter = function() {
+ return 1;
+ };
+
+ Object.defineProperty(abc, "def", {
+ get: getter
+ });
+
+ var jkl = undefined;
+ try {
+ Object.defineProperty(abc, "def", {
+ set: function() {}
+ });
+ }
+ catch (err) {
+ jkl = err;
+ }
+
+ var ghi = Object.getOwnPropertyDescriptor(abc, "def");
+ [ jkl instanceof TypeError, ghi.get === getter, ghi.set, ghi.configurable, ghi.enumerable ];
+ `, "true,true,,false,false")
+
+ test(`
+ var abc = {};
+ var def = "xyzzy";
+
+ Object.defineProperty(abc, "ghi", {
+ get: undefined,
+ set: function(value) {
+ def = value;
+ },
+ enumerable: true,
+ configurable: true
+ });
+
+ var hasOwn = abc.hasOwnProperty("ghi");
+ var descriptor = Object.getOwnPropertyDescriptor(abc, "ghi");
+
+ [ hasOwn, typeof descriptor.get ];
+ `, "true,undefined")
+
+ test(`
+ var abc = "xyzzy";
+ Object.defineProperty(Array.prototype, "abc", {
+ get: function () {
+ return abc;
+ },
+ set: function (value) {
+ abc = value;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ var def = [];
+ def.abc = 3.14159;
+ [ def.hasOwnProperty("abc"), def.abc, abc ];
+ `, "false,3.14159,3.14159")
+ })
+}
+
+func TestProperty(t *testing.T) {
+ tt(t, func() {
+ property := _property{}
+ property.writeOn()
+ is(property.writeSet(), true)
+
+ property.writeClear()
+ is(property.writeSet(), false)
+
+ property.writeOff()
+ is(property.writeSet(), true)
+
+ property.writeClear()
+ is(property.writeSet(), false)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/otto.go b/Godeps/_workspace/src/github.com/obscuren/otto/otto.go
new file mode 100644
index 000000000..1cb79cb0a
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/otto.go
@@ -0,0 +1,561 @@
+/*
+Package otto is a JavaScript parser and interpreter written natively in Go.
+
+http://godoc.org/github.com/robertkrimen/otto
+
+ import (
+ "github.com/robertkrimen/otto"
+ )
+
+Run something in the VM
+
+ vm := otto.New()
+ vm.Run(`
+ abc = 2 + 2;
+ console.log("The value of abc is " + abc); // 4
+ `)
+
+Get a value out of the VM
+
+ value, err := vm.Get("abc")
+ value, _ := value.ToInteger()
+ }
+
+Set a number
+
+ vm.Set("def", 11)
+ vm.Run(`
+ console.log("The value of def is " + def);
+ // The value of def is 11
+ `)
+
+Set a string
+
+ vm.Set("xyzzy", "Nothing happens.")
+ vm.Run(`
+ console.log(xyzzy.length); // 16
+ `)
+
+Get the value of an expression
+
+ value, _ = vm.Run("xyzzy.length")
+ {
+ // value is an int64 with a value of 16
+ value, _ := value.ToInteger()
+ }
+
+An error happens
+
+ value, err = vm.Run("abcdefghijlmnopqrstuvwxyz.length")
+ if err != nil {
+ // err = ReferenceError: abcdefghijlmnopqrstuvwxyz is not defined
+ // If there is an error, then value.IsUndefined() is true
+ ...
+ }
+
+Set a Go function
+
+ vm.Set("sayHello", func(call otto.FunctionCall) otto.Value {
+ fmt.Printf("Hello, %s.\n", call.Argument(0).String())
+ return otto.UndefinedValue()
+ })
+
+Set a Go function that returns something useful
+
+ vm.Set("twoPlus", func(call otto.FunctionCall) otto.Value {
+ right, _ := call.Argument(0).ToInteger()
+ result, _ := vm.ToValue(2 + right)
+ return result
+ })
+
+Use the functions in JavaScript
+
+ result, _ = vm.Run(`
+ sayHello("Xyzzy"); // Hello, Xyzzy.
+ sayHello(); // Hello, undefined
+
+ result = twoPlus(2.0); // 4
+ `)
+
+Parser
+
+A separate parser is available in the parser package if you're just interested in building an AST.
+
+http://godoc.org/github.com/robertkrimen/otto/parser
+
+Parse and return an AST
+
+ filename := "" // A filename is optional
+ src := `
+ // Sample xyzzy example
+ (function(){
+ if (3.14159 > 0) {
+ console.log("Hello, World.");
+ return;
+ }
+
+ var xyzzy = NaN;
+ console.log("Nothing happens.");
+ return xyzzy;
+ })();
+ `
+
+ // Parse some JavaScript, yielding a *ast.Program and/or an ErrorList
+ program, err := parser.ParseFile(nil, filename, src, 0)
+
+otto
+
+You can run (Go) JavaScript from the commandline with: http://github.com/robertkrimen/otto/tree/master/otto
+
+ $ go get -v github.com/robertkrimen/otto/otto
+
+Run JavaScript by entering some source on stdin or by giving otto a filename:
+
+ $ otto example.js
+
+underscore
+
+Optionally include the JavaScript utility-belt library, underscore, with this import:
+
+ import (
+ "github.com/robertkrimen/otto"
+ _ "github.com/robertkrimen/otto/underscore"
+ )
+
+ // Now every otto runtime will come loaded with underscore
+
+For more information: http://github.com/robertkrimen/otto/tree/master/underscore
+
+Caveat Emptor
+
+The following are some limitations with otto:
+
+ * "use strict" will parse, but does nothing.
+ * Error reporting needs to be improved.
+ * The regular expression engine (re2/regexp) is not fully compatible with the ECMA5 specification.
+
+Regular Expression Incompatibility
+
+Go translates JavaScript-style regular expressions into something that is "regexp" compatible via `parser.TransformRegExp`.
+Unfortunately, RegExp requires backtracking for some patterns, and backtracking is not supported by the standard Go engine: https://code.google.com/p/re2/wiki/Syntax
+
+Therefore, the following syntax is incompatible:
+
+ (?=) // Lookahead (positive), currently a parsing error
+ (?!) // Lookahead (backhead), currently a parsing error
+ \1 // Backreference (\1, \2, \3, ...), currently a parsing error
+
+A brief discussion of these limitations: "Regexp (?!re)" https://groups.google.com/forum/?fromgroups=#%21topic/golang-nuts/7qgSDWPIh_E
+
+More information about re2: https://code.google.com/p/re2/
+
+In addition to the above, re2 (Go) has a different definition for \s: [\t\n\f\r ].
+The JavaScript definition, on the other hand, also includes \v, Unicode "Separator, Space", etc.
+
+Halting Problem
+
+If you want to stop long running executions (like third-party code), you can use the interrupt channel to do this:
+
+ package main
+
+ import (
+ "errors"
+ "fmt"
+ "os"
+ "time"
+
+ "github.com/robertkrimen/otto"
+ )
+
+ var halt = errors.New("Stahp")
+
+ func main() {
+ runUnsafe(`var abc = [];`)
+ runUnsafe(`
+ while (true) {
+ // Loop forever
+ }`)
+ }
+
+ func runUnsafe(unsafe string) {
+ start := time.Now()
+ defer func() {
+ duration := time.Since(start)
+ if caught := recover(); caught != nil {
+ if caught == halt {
+ fmt.Fprintf(os.Stderr, "Some code took to long! Stopping after: %v\n", duration)
+ return
+ }
+ panic(caught) // Something else happened, repanic!
+ }
+ fmt.Fprintf(os.Stderr, "Ran code successfully: %v\n", duration)
+ }()
+ vm := otto.New()
+ vm.Interrupt = make(chan func())
+ go func() {
+ time.Sleep(2 * time.Second) // Stop after two seconds
+ vm.Interrupt <- func() {
+ panic(halt)
+ }
+ }()
+ vm.Run(unsafe) // Here be dragons (risky code)
+ vm.Interrupt = nil
+ }
+
+Where is setTimeout/setInterval?
+
+These timing functions are not actually part of the ECMA-262 specification. Typically, they belong to the `windows` object (in the browser).
+It would not be difficult to provide something like these via Go, but you probably want to wrap otto in an event loop in that case.
+
+For an example of how this could be done in Go with otto, see natto:
+
+http://github.com/robertkrimen/natto
+
+Here is some more discussion of the issue:
+
+* http://book.mixu.net/node/ch2.html
+
+* http://en.wikipedia.org/wiki/Reentrancy_%28computing%29
+
+* http://aaroncrane.co.uk/2009/02/perl_safe_signals/
+
+*/
+package otto
+
+import (
+ "fmt"
+ "strings"
+
+ "github.com/robertkrimen/otto/registry"
+)
+
+// Otto is the representation of the JavaScript runtime. Each instance of Otto has a self-contained namespace.
+type Otto struct {
+ // Interrupt is a channel for interrupting the runtime. You can use this to halt a long running execution, for example.
+ // See "Halting Problem" for more information.
+ Interrupt chan func()
+ runtime *_runtime
+}
+
+// New will allocate a new JavaScript runtime
+func New() *Otto {
+ self := &Otto{
+ runtime: newContext(),
+ }
+ self.runtime.Otto = self
+ self.Set("console", self.runtime.newConsole())
+
+ registry.Apply(func(entry registry.Entry) {
+ self.Run(entry.Source())
+ })
+
+ return self
+}
+
+func (otto *Otto) clone() *Otto {
+ self := &Otto{
+ runtime: otto.runtime.clone(),
+ }
+ self.runtime.Otto = self
+ return self
+}
+
+// Run will allocate a new JavaScript runtime, run the given source
+// on the allocated runtime, and return the runtime, resulting value, and
+// error (if any).
+//
+// src may be a string, a byte slice, a bytes.Buffer, or an io.Reader, but it MUST always be in UTF-8.
+//
+// src may also be a Script.
+//
+// src may also be a Program, but if the AST has been modified, then runtime behavior is undefined.
+//
+func Run(src interface{}) (*Otto, Value, error) {
+ otto := New()
+ value, err := otto.Run(src)
+ return otto, value, err
+}
+
+// Run will run the given source (parsing it first if necessary), returning the resulting value and error (if any)
+//
+// src may be a string, a byte slice, a bytes.Buffer, or an io.Reader, but it MUST always be in UTF-8.
+//
+// If the runtime is unable to parse source, then this function will return undefined and the parse error (nothing
+// will be evaluated in this case).
+//
+// src may also be a Script.
+//
+// src may also be a Program, but if the AST has been modified, then runtime behavior is undefined.
+//
+func (self Otto) Run(src interface{}) (Value, error) {
+ return self.runtime.cmpl_run(src)
+}
+
+// Get the value of the top-level binding of the given name.
+//
+// If there is an error (like the binding does not exist), then the value
+// will be undefined.
+func (self Otto) Get(name string) (Value, error) {
+ value := UndefinedValue()
+ err := catchPanic(func() {
+ value = self.getValue(name)
+ })
+ return value, err
+}
+
+func (self Otto) getValue(name string) Value {
+ return self.runtime.GlobalEnvironment.GetValue(name, false)
+}
+
+// Set the top-level binding of the given name to the given value.
+//
+// Set will automatically apply ToValue to the given value in order
+// to convert it to a JavaScript value (type Value).
+//
+// If there is an error (like the binding is read-only, or the ToValue conversion
+// fails), then an error is returned.
+//
+// If the top-level binding does not exist, it will be created.
+func (self Otto) Set(name string, value interface{}) error {
+ {
+ value, err := self.ToValue(value)
+ if err != nil {
+ return err
+ }
+ err = catchPanic(func() {
+ self.setValue(name, value)
+ })
+ return err
+ }
+}
+
+func (self Otto) setValue(name string, value Value) {
+ self.runtime.GlobalEnvironment.SetValue(name, value, false)
+}
+
+// Call the given JavaScript with a given this and arguments.
+//
+// If this is nil, then some special handling takes place to determine the proper
+// this value, falling back to a "standard" invocation if necessary (where this is
+// undefined).
+//
+// If source begins with "new " (A lowercase new followed by a space), then
+// Call will invoke the function constructor rather than performing a function call.
+// In this case, the this argument has no effect.
+//
+// // value is a String object
+// value, _ := vm.Call("Object", nil, "Hello, World.")
+//
+// // Likewise...
+// value, _ := vm.Call("new Object", nil, "Hello, World.")
+//
+// // This will perform a concat on the given array and return the result
+// // value is [ 1, 2, 3, undefined, 4, 5, 6, 7, "abc" ]
+// value, _ := vm.Call(`[ 1, 2, 3, undefined, 4 ].concat`, nil, 5, 6, 7, "abc")
+//
+func (self Otto) Call(source string, this interface{}, argumentList ...interface{}) (Value, error) {
+
+ thisValue := UndefinedValue()
+
+ construct := false
+ if strings.HasPrefix(source, "new ") {
+ source = source[4:]
+ construct = true
+ }
+
+ if !construct && this == nil {
+ program, err := self.runtime.cmpl_parse("", source+"()")
+ if err == nil {
+ if node, ok := program.body[0].(*_nodeExpressionStatement); ok {
+ if node, ok := node.expression.(*_nodeCallExpression); ok {
+ var value Value
+ err := catchPanic(func() {
+ value = self.runtime.cmpl_evaluate_nodeCallExpression(node, argumentList)
+ })
+ if err != nil {
+ return UndefinedValue(), err
+ }
+ return value, nil
+ }
+ }
+ }
+ } else {
+ value, err := self.ToValue(this)
+ if err != nil {
+ return UndefinedValue(), err
+ }
+ thisValue = value
+ }
+
+ {
+ this := thisValue
+
+ fn, err := self.Run(source)
+ if err != nil {
+ return UndefinedValue(), err
+ }
+
+ if construct {
+ result, err := fn.constructSafe(this, argumentList...)
+ if err != nil {
+ return UndefinedValue(), err
+ }
+ return result, nil
+ }
+
+ result, err := fn.Call(this, argumentList...)
+ if err != nil {
+ return UndefinedValue(), err
+ }
+ return result, nil
+ }
+}
+
+// Object will run the given source and return the result as an object.
+//
+// For example, accessing an existing object:
+//
+// object, _ := vm.Object(`Number`)
+//
+// Or, creating a new object:
+//
+// object, _ := vm.Object(`({ xyzzy: "Nothing happens." })`)
+//
+// Or, creating and assigning an object:
+//
+// object, _ := vm.Object(`xyzzy = {}`)
+// object.Set("volume", 11)
+//
+// If there is an error (like the source does not result in an object), then
+// nil and an error is returned.
+func (self Otto) Object(source string) (*Object, error) {
+ value, err := self.runtime.cmpl_run(source)
+ if err != nil {
+ return nil, err
+ }
+ if value.IsObject() {
+ return value.Object(), nil
+ }
+ return nil, fmt.Errorf("value is not an object")
+}
+
+// ToValue will convert an interface{} value to a value digestible by otto/JavaScript.
+func (self Otto) ToValue(value interface{}) (Value, error) {
+ return self.runtime.ToValue(value)
+}
+
+// Copy will create a copy/clone of the runtime.
+//
+// Copy is useful for saving some processing time when creating many similar
+// runtimes.
+//
+// This implementation is alpha-ish, and works by introspecting every part of the runtime
+// and reallocating and then relinking everything back together. Please report if you
+// notice any inadvertent sharing of data between copies.
+func (self *Otto) Copy() *Otto {
+ otto := &Otto{
+ runtime: self.runtime.clone(),
+ }
+ otto.runtime.Otto = otto
+ return otto
+}
+
+// Object{}
+
+// Object is the representation of a JavaScript object.
+type Object struct {
+ object *_object
+ value Value
+}
+
+func _newObject(object *_object, value Value) *Object {
+ // value MUST contain object!
+ return &Object{
+ object: object,
+ value: value,
+ }
+}
+
+// Call a method on the object.
+//
+// It is essentially equivalent to:
+//
+// var method, _ := object.Get(name)
+// method.Call(object, argumentList...)
+//
+// An undefined value and an error will result if:
+//
+// 1. There is an error during conversion of the argument list
+// 2. The property is not actually a function
+// 3. An (uncaught) exception is thrown
+//
+func (self Object) Call(name string, argumentList ...interface{}) (Value, error) {
+ // TODO: Insert an example using JavaScript below...
+ // e.g., Object("JSON").Call("stringify", ...)
+
+ function, err := self.Get(name)
+ if err != nil {
+ return UndefinedValue(), err
+ }
+ return function.Call(self.Value(), argumentList...)
+}
+
+// Value will return self as a value.
+func (self Object) Value() Value {
+ return self.value
+}
+
+// Get the value of the property with the given name.
+func (self Object) Get(name string) (Value, error) {
+ value := UndefinedValue()
+ err := catchPanic(func() {
+ value = self.object.get(name)
+ })
+ return value, err
+}
+
+// Set the property of the given name to the given value.
+//
+// An error will result if the setting the property triggers an exception (i.e. read-only),
+// or there is an error during conversion of the given value.
+func (self Object) Set(name string, value interface{}) error {
+ {
+ value, err := self.object.runtime.ToValue(value)
+ if err != nil {
+ return err
+ }
+ err = catchPanic(func() {
+ self.object.put(name, value, true)
+ })
+ return err
+ }
+}
+
+// Get the keys for the object
+//
+// Equivalent to calling Object.keys on the object
+func (self Object) Keys() []string {
+ var keys []string
+ self.object.enumerate(false, func(name string) bool {
+ keys = append(keys, name)
+ return true
+ })
+ return keys
+}
+
+// Class will return the class string of the object.
+//
+// The return value will (generally) be one of:
+//
+// Object
+// Function
+// Array
+// String
+// Number
+// Boolean
+// Date
+// RegExp
+//
+func (self Object) Class() string {
+ return self.object.class
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/otto/Makefile b/Godeps/_workspace/src/github.com/obscuren/otto/otto/Makefile
new file mode 100644
index 000000000..bac5cd4a5
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/otto/Makefile
@@ -0,0 +1,5 @@
+.PHONY: build
+
+build:
+ go build -a
+ -gxc build-darwin-386 -a
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/otto/main.go b/Godeps/_workspace/src/github.com/obscuren/otto/otto/main.go
new file mode 100644
index 000000000..0dcc91e51
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/otto/main.go
@@ -0,0 +1,43 @@
+package main
+
+import (
+ "flag"
+ "fmt"
+ "io/ioutil"
+ "os"
+
+ "github.com/robertkrimen/otto"
+ "github.com/robertkrimen/otto/underscore"
+)
+
+var flag_underscore *bool = flag.Bool("underscore", true, "Load underscore into the runtime environment")
+
+func readSource(filename string) ([]byte, error) {
+ if filename == "" || filename == "-" {
+ return ioutil.ReadAll(os.Stdin)
+ }
+ return ioutil.ReadFile(filename)
+}
+
+func main() {
+ flag.Parse()
+
+ if !*flag_underscore {
+ underscore.Disable()
+ }
+
+ err := func() error {
+ src, err := readSource(flag.Arg(0))
+ if err != nil {
+ return err
+ }
+
+ vm := otto.New()
+ _, err = vm.Run(src)
+ return err
+ }()
+ if err != nil {
+ fmt.Println(err)
+ os.Exit(64)
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/otto_.go b/Godeps/_workspace/src/github.com/obscuren/otto/otto_.go
new file mode 100644
index 000000000..e9ff66606
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/otto_.go
@@ -0,0 +1,178 @@
+package otto
+
+import (
+ "fmt"
+ "regexp"
+ runtime_ "runtime"
+ "strconv"
+ "strings"
+)
+
+var isIdentifier_Regexp *regexp.Regexp = regexp.MustCompile(`^[a-zA-Z\$][a-zA-Z0-9\$]*$`)
+
+func isIdentifier(string_ string) bool {
+ return isIdentifier_Regexp.MatchString(string_)
+}
+
+func (self *_runtime) toValueArray(arguments ...interface{}) []Value {
+ length := len(arguments)
+ if length == 1 {
+ if valueArray, ok := arguments[0].([]Value); ok {
+ return valueArray
+ }
+ return []Value{toValue(arguments[0])}
+ }
+
+ valueArray := make([]Value, length)
+ for index, value := range arguments {
+ valueArray[index] = toValue(value)
+ }
+
+ return valueArray
+}
+
+func stringToArrayIndex(name string) int64 {
+ index, err := strconv.ParseInt(name, 10, 64)
+ if err != nil {
+ return -1
+ }
+ if index < 0 {
+ return -1
+ }
+ if index >= maxUint32 {
+ // The value 2^32 (or above) is not a valid index because
+ // you cannot store a uint32 length for an index of uint32
+ return -1
+ }
+ return index
+}
+
+func isUint32(value int64) bool {
+ return value >= 0 && value <= maxUint32
+}
+
+func arrayIndexToString(index int64) string {
+ return strconv.FormatInt(index, 10)
+}
+
+func valueOfArrayIndex(array []Value, index int) Value {
+ value, _ := getValueOfArrayIndex(array, index)
+ return value
+}
+
+func getValueOfArrayIndex(array []Value, index int) (Value, bool) {
+ if index >= 0 && index < len(array) {
+ value := array[index]
+ if !value.isEmpty() {
+ return value, true
+ }
+ }
+ return UndefinedValue(), false
+}
+
+// A range index can be anything from 0 up to length. It is NOT safe to use as an index
+// to an array, but is useful for slicing and in some ECMA algorithms.
+func valueToRangeIndex(indexValue Value, length int64, negativeIsZero bool) int64 {
+ index := toInteger(indexValue).value
+ if negativeIsZero {
+ if index < 0 {
+ index = 0
+ }
+ // minimum(index, length)
+ if index >= length {
+ index = length
+ }
+ return index
+ }
+
+ if index < 0 {
+ index += length
+ if index < 0 {
+ index = 0
+ }
+ } else {
+ if index > length {
+ index = length
+ }
+ }
+ return index
+}
+
+func rangeStartEnd(array []Value, size int64, negativeIsZero bool) (start, end int64) {
+ start = valueToRangeIndex(valueOfArrayIndex(array, 0), size, negativeIsZero)
+ if len(array) == 1 {
+ // If there is only the start argument, then end = size
+ end = size
+ return
+ }
+
+ // Assuming the argument is undefined...
+ end = size
+ endValue := valueOfArrayIndex(array, 1)
+ if !endValue.IsUndefined() {
+ // Which it is not, so get the value as an array index
+ end = valueToRangeIndex(endValue, size, negativeIsZero)
+ }
+ return
+}
+
+func rangeStartLength(source []Value, size int64) (start, length int64) {
+ start = valueToRangeIndex(valueOfArrayIndex(source, 0), size, false)
+
+ // Assume the second argument is missing or undefined
+ length = int64(size)
+ if len(source) == 1 {
+ // If there is only the start argument, then length = size
+ return
+ }
+
+ lengthValue := valueOfArrayIndex(source, 1)
+ if !lengthValue.IsUndefined() {
+ // Which it is not, so get the value as an array index
+ length = toInteger(lengthValue).value
+ }
+ return
+}
+
+func boolFields(input string) (result map[string]bool) {
+ result = map[string]bool{}
+ for _, word := range strings.Fields(input) {
+ result[word] = true
+ }
+ return result
+}
+
+func hereBeDragons(arguments ...interface{}) string {
+ pc, _, _, _ := runtime_.Caller(1)
+ name := runtime_.FuncForPC(pc).Name()
+ message := fmt.Sprintf("Here be dragons -- %s", name)
+ if len(arguments) > 0 {
+ message += ": "
+ argument0 := fmt.Sprintf("%s", arguments[0])
+ if len(arguments) == 1 {
+ message += argument0
+ } else {
+ message += fmt.Sprintf(argument0, arguments[1:]...)
+ }
+ } else {
+ message += "."
+ }
+ return message
+}
+
+func throwHereBeDragons(arguments ...interface{}) {
+ panic(hereBeDragons(arguments...))
+}
+
+func eachPair(list []interface{}, fn func(_0, _1 interface{})) {
+ for len(list) > 0 {
+ var _0, _1 interface{}
+ _0 = list[0]
+ list = list[1:] // Pop off first
+ if len(list) > 0 {
+ _1 = list[0]
+ list = list[1:] // Pop off second
+ }
+ fn(_0, _1)
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/otto_error_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/otto_error_test.go
new file mode 100644
index 000000000..90863ca12
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/otto_error_test.go
@@ -0,0 +1,48 @@
+package otto
+
+import (
+ "testing"
+)
+
+func TestOttoError(t *testing.T) {
+ tt(t, func() {
+ vm := New()
+
+ _, err := vm.Run(`throw "Xyzzy"`)
+ is(err, "Xyzzy")
+
+ _, err = vm.Run(`throw new TypeError()`)
+ is(err, "TypeError")
+
+ _, err = vm.Run(`throw new TypeError("Nothing happens.")`)
+ is(err, "TypeError: Nothing happens.")
+
+ _, err = ToValue([]byte{})
+ is(err, "TypeError: Invalid value (slice): Missing runtime: [] ([]uint8)")
+
+ _, err = vm.Run(`
+ (function(){
+ return abcdef.length
+ })()
+ `)
+ is(err, "ReferenceError: abcdef is not defined")
+
+ _, err = vm.Run(`
+ function start() {
+ }
+
+ start()
+
+ xyzzy()
+ `)
+ is(err, "ReferenceError: xyzzy is not defined")
+
+ _, err = vm.Run(`
+ // Just a comment
+
+ xyzzy
+ `)
+ is(err, "ReferenceError: xyzzy is not defined")
+
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/otto_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/otto_test.go
new file mode 100644
index 000000000..bacdda724
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/otto_test.go
@@ -0,0 +1,1331 @@
+package otto
+
+import (
+ "bytes"
+ "io"
+ "testing"
+
+ "github.com/robertkrimen/otto/parser"
+)
+
+func TestOtto(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test("xyzzy = 2", 2)
+
+ test("xyzzy + 2", 4)
+
+ test("xyzzy += 16", 18)
+
+ test("xyzzy", 18)
+
+ test(`
+ (function(){
+ return 1
+ })()
+ `, 1)
+
+ test(`
+ (function(){
+ return 1
+ }).call(this)
+ `, 1)
+
+ test(`
+ (function(){
+ var result
+ (function(){
+ result = -1
+ })()
+ return result
+ })()
+ `, -1)
+
+ test(`
+ var abc = 1
+ abc || (abc = -1)
+ abc
+ `, 1)
+
+ test(`
+ var abc = (function(){ 1 === 1 })();
+ abc;
+ `, "undefined")
+ })
+}
+
+func TestFunction__(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ function abc() {
+ return 1;
+ };
+ abc();
+ `, 1)
+ })
+}
+
+func TestIf(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = undefined;
+ def = undefined;
+ if (true) abc = 1
+ else abc = 2;
+ if (false) {
+ def = 3;
+ }
+ else def = 4;
+
+ [ abc, def ];
+ `, "1,4")
+
+ test(`
+ if (1) {
+ abc = 1;
+ }
+ else {
+ abc = 0;
+ }
+ abc;
+ `, 1)
+
+ test(`
+ if (0) {
+ abc = 1;
+ }
+ else {
+ abc = 0;
+ }
+ abc;
+ `, 0)
+
+ test(`
+ abc = 0;
+ if (0) {
+ abc = 1;
+ }
+ abc;
+ `, 0)
+
+ test(`
+ abc = 0;
+ if (abc) {
+ abc = 1;
+ }
+ abc;
+ `, 0)
+ })
+}
+
+func TestSequence(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ 1, 2, 3;
+ `, 3)
+ })
+}
+
+func TestCall(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ Math.pow(3, 2);
+ `, 9)
+ })
+}
+
+func TestMember(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = [ 0, 1, 2 ];
+ def = {
+ "abc": 0,
+ "def": 1,
+ "ghi": 2,
+ };
+ [ abc[2], def.abc, abc[1], def.def ];
+ `, "2,0,1,1")
+ })
+}
+
+func Test_this(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ typeof this;
+ `, "object")
+ })
+}
+
+func TestWhile(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ limit = 4
+ abc = 0
+ while (limit) {
+ abc = abc + 1
+ limit = limit - 1
+ }
+ abc;
+ `, 4)
+ })
+}
+
+func TestSwitch_break(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = true;
+ var ghi = "Xyzzy";
+ while (abc) {
+ switch ('def') {
+ case 'def':
+ break;
+ }
+ ghi = "Nothing happens.";
+ abc = false;
+ }
+ ghi;
+ `, "Nothing happens.")
+
+ test(`
+ var abc = true;
+ var ghi = "Xyzzy";
+ WHILE:
+ while (abc) {
+ switch ('def') {
+ case 'def':
+ break WHILE;
+ }
+ ghi = "Nothing happens."
+ abc = false
+ }
+ ghi;
+ `, "Xyzzy")
+
+ test(`
+ var ghi = "Xyzzy";
+ FOR:
+ for (;;) {
+ switch ('def') {
+ case 'def':
+ break FOR;
+ ghi = "";
+ }
+ ghi = "Nothing happens.";
+ }
+ ghi;
+ `, "Xyzzy")
+
+ test(`
+ var ghi = "Xyzzy";
+ FOR:
+ for (var jkl in {}) {
+ switch ('def') {
+ case 'def':
+ break FOR;
+ ghi = "Something happens.";
+ }
+ ghi = "Nothing happens.";
+ }
+ ghi;
+ `, "Xyzzy")
+
+ test(`
+ var ghi = "Xyzzy";
+ function jkl() {
+ switch ('def') {
+ case 'def':
+ break;
+ ghi = "";
+ }
+ ghi = "Nothing happens.";
+ }
+ while (abc) {
+ jkl();
+ abc = false;
+ ghi = "Something happens.";
+ }
+ ghi;
+ `, "Something happens.")
+ })
+}
+
+func TestTryFinally(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc;
+ try {
+ abc = 1;
+ }
+ finally {
+ abc = 2;
+ }
+ abc;
+ `, 2)
+
+ test(`
+ var abc = false, def = 0;
+ do {
+ def += 1;
+ if (def > 100) {
+ break;
+ }
+ try {
+ continue;
+ }
+ finally {
+ abc = true;
+ }
+ }
+ while(!abc && def < 10)
+ def;
+ `, 1)
+
+ test(`
+ var abc = false, def = 0, ghi = 0;
+ do {
+ def += 1;
+ if (def > 100) {
+ break;
+ }
+ try {
+ throw 0;
+ }
+ catch (jkl) {
+ continue;
+ }
+ finally {
+ abc = true;
+ ghi = 11;
+ }
+ ghi -= 1;
+ }
+ while(!abc && def < 10)
+ ghi;
+ `, 11)
+
+ test(`
+ var abc = 0, def = 0;
+ do {
+ try {
+ abc += 1;
+ throw "ghi";
+ }
+ finally {
+ def = 1;
+ continue;
+ }
+ def -= 1;
+ }
+ while (abc < 2)
+ [ abc, def ];
+ `, "2,1")
+ })
+}
+
+func TestTryCatch(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = 1;
+ try {
+ throw 4;
+ abc = -1;
+ }
+ catch (xyzzy) {
+ abc += xyzzy + 1;
+ }
+ abc;
+ `, 6)
+
+ test(`
+ abc = 1;
+ var def;
+ try {
+ try {
+ throw 4;
+ abc = -1;
+ }
+ catch (xyzzy) {
+ abc += xyzzy + 1;
+ throw 64;
+ }
+ }
+ catch (xyzzy) {
+ def = xyzzy;
+ abc = -2;
+ }
+ [ def, abc ];
+ `, "64,-2")
+ })
+}
+
+func TestWith(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var def;
+ with({ abc: 9 }) {
+ def = abc;
+ }
+ def;
+ `, 9)
+
+ test(`
+ var def;
+ with({ abc: function(){
+ return 11;
+ } }) {
+ def = abc();
+ }
+ def;
+ `, 11)
+ })
+}
+
+func TestSwitch(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = 0;
+ switch (0) {
+ default:
+ abc += 1;
+ case 1:
+ abc += 2;
+ case 2:
+ abc += 4;
+ case 3:
+ abc += 8;
+ }
+ abc;
+ `, 15)
+
+ test(`
+ abc = 0;
+ switch (3) {
+ default:
+ abc += 1;
+ case 1:
+ abc += 2;
+ case 2:
+ abc += 4;
+ case 3:
+ abc += 8;
+ }
+ abc;
+ `, 8)
+
+ test(`
+ abc = 0;
+ switch (60) {
+ case 1:
+ abc += 2;
+ case 2:
+ abc += 4;
+ case 3:
+ abc += 8;
+ }
+ abc;
+ `, 0)
+ })
+}
+
+func TestForIn(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc;
+ for (property in { a: 1 }) {
+ abc = property;
+ }
+ abc;
+ `, "a")
+
+ test(`
+ var ghi;
+ for (property in new String("xyzzy")) {
+ ghi = property;
+ }
+ ghi;
+ `, "4")
+ })
+}
+
+func TestFor(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = 7;
+ for (i = 0; i < 3; i += 1) {
+ abc += 1;
+ }
+ abc;
+ `, 10)
+
+ test(`
+ abc = 7;
+ for (i = 0; i < 3; i += 1) {
+ abc += 1;
+ if (i == 1) {
+ break;
+ }
+ }
+ abc;
+ `, 9)
+
+ test(`
+ abc = 7;
+ for (i = 0; i < 3; i += 1) {
+ if (i == 2) {
+ continue;
+ }
+ abc += 1;
+ }
+ abc;
+ `, 9)
+
+ test(`
+ abc = 0;
+ for (;;) {
+ abc += 1;
+ if (abc == 3)
+ break;
+ }
+ abc;
+ `, 3)
+
+ test(`
+ for (abc = 0; ;) {
+ abc += 1;
+ if (abc == 3)
+ break;
+ }
+ abc;
+ `, 3)
+
+ test(`
+ for (abc = 0; ; abc += 1) {
+ abc += 1;
+ if (abc == 3)
+ break;
+ }
+ abc;
+ `, 3)
+ })
+}
+
+func TestLabelled(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ // TODO Add emergency break
+
+ test(`
+ xyzzy: for (var abc = 0; abc <= 0; abc++) {
+ for (var def = 0; def <= 1; def++) {
+ if (def === 0) {
+ continue xyzzy;
+ } else {
+ }
+ }
+ }
+ `)
+
+ test(`
+ abc = 0
+ def:
+ while (true) {
+ while (true) {
+ abc = abc + 1
+ if (abc > 11) {
+ break def;
+ }
+ }
+ }
+ abc;
+ `, 12)
+
+ test(`
+ abc = 0
+ def:
+ do {
+ do {
+ abc = abc + 1
+ if (abc > 11) {
+ break def;
+ }
+ } while (true)
+ } while (true)
+ abc;
+ `, 12)
+ })
+}
+
+func TestConditional(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [ true ? false : true, true ? 1 : 0, false ? 3.14159 : "abc" ];
+ `, "false,1,abc")
+ })
+}
+
+func TestArrayLiteral(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [ 1, , 3.14159 ];
+ `, "1,,3.14159")
+ })
+}
+
+func TestAssignment(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = 1;
+ abc;
+ `, 1)
+
+ test(`
+ abc += 2;
+ abc;
+ `, 3)
+ })
+}
+
+func TestBinaryOperation(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`0 == 1`, false)
+ test(`1 == "1"`, true)
+ test(`0 === 1`, false)
+ test(`1 === "1"`, false)
+ test(`"1" === "1"`, true)
+ })
+}
+
+func Test_typeof(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`typeof abc`, "undefined")
+ test(`typeof abc === 'undefined'`, true)
+ test(`typeof {}`, "object")
+ test(`typeof null`, "object")
+ })
+}
+
+func Test_PrimitiveValueObjectValue(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ Number11 := test(`new Number(11)`)
+ is(toFloat(Number11), 11)
+ })
+}
+
+func Test_eval(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ // FIXME terst, Is this correct?
+ test(`
+ var abc = 1;
+ `, "undefined")
+
+ test(`
+ eval("abc += 1");
+ `, 2)
+
+ test(`
+ (function(){
+ var abc = 11;
+ eval("abc += 1");
+ return abc;
+ })();
+ `, 12)
+ test(`abc`, 2)
+
+ test(`
+ (function(){
+ try {
+ eval("var prop = \\u2029;");
+ return false;
+ } catch (abc) {
+ return [ abc instanceof SyntaxError, abc.toString() ];
+ }
+ })();
+ `, "true,SyntaxError: Unexpected token ILLEGAL")
+
+ test(`
+ function abc(){
+ this.THIS = eval("this");
+ }
+ var def = new abc();
+ def === def.THIS;
+ `, true)
+ })
+}
+
+func Test_evalDirectIndirect(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = "global";
+ (function(){
+ try {
+ var _eval = eval;
+ var abc = "function";
+ if (
+ _eval("\'global\' === abc") === true && // eval (Indirect)
+ eval("\'function\' === abc") === true // eval (Direct)
+ ) {
+ return true;
+ }
+ return false;
+ } finally {
+ delete this.abc;
+ }
+ })()
+ `, true)
+ })
+}
+
+func TestError_URIError(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`new URIError() instanceof URIError`, true)
+
+ test(`
+ var abc
+ try {
+ decodeURI("http://example.com/ _^#%")
+ }
+ catch (def) {
+ abc = def instanceof URIError
+ }
+ abc
+ `, true)
+ })
+}
+
+func TestTo(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ {
+ value, _ := test(`"11"`).ToFloat()
+ is(value, float64(11))
+ }
+
+ {
+ value, _ := test(`"11"`).ToInteger()
+ is(value, int64(11))
+
+ value, _ = test(`1.1`).ToInteger()
+ is(value, int64(1))
+ }
+ })
+}
+
+func TestShouldError(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`raise:
+ xyzzy
+ throw new TypeError("Nothing happens.")
+ `, "ReferenceError: xyzzy is not defined")
+ })
+}
+
+func TestAPI(t *testing.T) {
+ tt(t, func() {
+ test, vm := test()
+
+ test(`
+ String.prototype.xyzzy = function(){
+ return this.length + 11 + (arguments[0] || 0)
+ }
+ abc = new String("xyzzy")
+ def = "Nothing happens."
+ abc.xyzzy()
+ `, 16)
+ abc, _ := vm.Get("abc")
+ def, _ := vm.Get("def")
+ object := abc.Object()
+ result, _ := object.Call("xyzzy")
+ is(result, 16)
+ result, _ = object.Call("xyzzy", 1)
+ is(result, 17)
+ value, _ := object.Get("xyzzy")
+ result, _ = value.Call(def)
+ is(result, 27)
+ result, _ = value.Call(def, 3)
+ is(result, 30)
+ object = value.Object() // Object xyzzy
+ result, _ = object.Value().Call(def, 3)
+ is(result, 30)
+
+ test(`
+ abc = {
+ 'abc': 1,
+ 'def': false,
+ 3.14159: NaN,
+ };
+ abc['abc'];
+ `, 1)
+ abc, err := vm.Get("abc")
+ is(err, nil)
+ object = abc.Object() // Object abc
+ value, err = object.Get("abc")
+ is(err, nil)
+ is(value, 1)
+ is(object.Keys(), []string{"abc", "def", "3.14159"})
+
+ test(`
+ abc = [ 0, 1, 2, 3.14159, "abc", , ];
+ abc.def = true;
+ `)
+ abc, err = vm.Get("abc")
+ is(err, nil)
+ object = abc.Object() // Object abc
+ is(object.Keys(), []string{"0", "1", "2", "3", "4", "def"})
+ })
+}
+
+func TestUnicode(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`var abc = eval("\"a\uFFFFa\"");`, "undefined")
+
+ test(`abc.length`, 3)
+
+ test(`abc != "aa"`, true)
+
+ test("abc[1] === \"\uFFFF\"", true)
+ })
+}
+
+func TestDotMember(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = {
+ ghi: 11,
+ }
+ abc.def = "Xyzzy"
+ abc.null = "Nothing happens."
+ `)
+ test(`abc.def`, "Xyzzy")
+ test(`abc.null`, "Nothing happens.")
+ test(`abc.ghi`, 11)
+
+ test(`
+ abc = {
+ null: 11,
+ }
+ `)
+ test(`abc.def`, "undefined")
+ test(`abc.null`, 11)
+ test(`abc.ghi`, "undefined")
+ })
+}
+
+func Test_stringToFloat(t *testing.T) {
+ tt(t, func() {
+
+ is(stringToFloat("10e10000"), _Infinity)
+ is(stringToFloat("10e10_."), _NaN)
+ })
+}
+
+func Test_delete(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ delete 42;
+ `, true)
+
+ test(`
+ var abc = delete $_undefined_$;
+ abc = abc && delete ($_undefined_$);
+ abc;
+ `, true)
+
+ // delete should not trigger get()
+ test(`
+ var abc = {
+ get def() {
+ throw "Test_delete: delete should not trigger get()"
+ }
+ };
+ delete abc.def
+ `, true)
+ })
+}
+
+func TestObject_defineOwnProperty(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var object = {};
+
+ var descriptor = new Boolean(false);
+ descriptor.configurable = true;
+
+ Object.defineProperties(object, {
+ property: descriptor
+ });
+
+ var abc = object.hasOwnProperty("property");
+ delete object.property;
+ var def = object.hasOwnProperty("property");
+
+ [ abc, def ];
+ `, "true,false")
+
+ test(`
+ var object = [0, 1, 2];
+ Object.defineProperty(object, "0", {
+ value: 42,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ var abc = Object.getOwnPropertyDescriptor(object, "0");
+ [ abc.value, abc.writable, abc.enumerable, abc.configurable ];
+ `, "42,false,false,false")
+
+ test(`
+ var abc = { "xyzzy": 42 };
+ var def = Object.defineProperties(abc, "");
+ abc === def;
+ `, true)
+ })
+}
+
+func Test_assignmentEvaluationOrder(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = 0;
+ ((abc = 1) & abc);
+ `, 1)
+
+ test(`
+ var abc = 0;
+ (abc & (abc = 1));
+ `, 0)
+ })
+}
+
+func TestOttoCall(t *testing.T) {
+ tt(t, func() {
+ vm := New()
+
+ _, err := vm.Run(`
+ var abc = {
+ ghi: 1,
+ def: function(def){
+ var ghi = 0;
+ if (this.ghi) {
+ ghi = this.ghi;
+ }
+ return "def: " + (def + 3.14159 + ghi);
+ }
+ };
+ `)
+ is(err, nil)
+
+ value, err := vm.Call(`abc.def`, nil, 2)
+ is(err, nil)
+ is(value, "def: 6.14159")
+
+ value, err = vm.Call(`abc.def`, "", 2)
+ is(err, nil)
+ is(value, "def: 5.14159")
+
+ // Do not attempt to do a ToValue on a this of nil
+ value, err = vm.Call(`jkl.def`, nil, 1, 2, 3)
+ is(err, "!=", nil)
+ is(value, "undefined")
+
+ value, err = vm.Call(`[ 1, 2, 3, undefined, 4 ].concat`, nil, 5, 6, 7, "abc")
+ is(err, nil)
+ is(value, "1,2,3,,4,5,6,7,abc")
+ })
+}
+
+func TestOttoCall_new(t *testing.T) {
+ tt(t, func() {
+ test, vm := test()
+
+ vm.Set("abc", func(call FunctionCall) Value {
+ value, err := call.Otto.Call(`new Object`, nil, "Nothing happens.")
+ is(err, nil)
+ return value
+ })
+ test(`
+ def = abc();
+ [ def, def instanceof String ];
+ `, "Nothing happens.,true")
+ })
+}
+
+func TestOttoCall_throw(t *testing.T) {
+ // FIXME? (Been broken for a while)
+ // Looks like this has been broken for a while... what
+ // behavior do we want here?
+
+ return
+
+ tt(t, func() {
+ test, vm := test()
+
+ vm.Set("abc", func(call FunctionCall) Value {
+ if false {
+ call.Otto.Call(`throw eval`, nil, "({ def: 3.14159 })")
+ }
+ call.Otto.Call(`throw Error`, nil, "abcdef")
+ return UndefinedValue()
+ })
+ // TODO try { abc(); } catch (err) { error = err }
+ // Possible unrelated error case:
+ // If error is not declared beforehand, is later referencing it a ReferenceError?
+ // Should the catch { } declare error in the outer scope?
+ test(`
+ var error;
+ try {
+ abc();
+ }
+ catch (err) {
+ error = err;
+ }
+ [ error instanceof Error, error.message, error.def ];
+ `, "true,abcdef,")
+
+ vm.Set("def", func(call FunctionCall) Value {
+ call.Otto.Call(`throw new Object`, nil, 3.14159)
+ return UndefinedValue()
+ })
+ test(`
+ try {
+ def();
+ }
+ catch (err) {
+ error = err;
+ }
+ [ error instanceof Error, error.message, error.def, typeof error, error, error instanceof Number ];
+ `, "false,,,object,3.14159,true")
+ })
+}
+
+func TestOttoCopy(t *testing.T) {
+ tt(t, func() {
+ vm0 := New()
+ vm0.Run(`
+ var abc = function() {
+ return "Xyzzy";
+ };
+
+ function def() {
+ return abc() + (0 + {});
+ }
+ `)
+
+ value, err := vm0.Run(`
+ def();
+ `)
+ is(err, nil)
+ is(value, "Xyzzy0[object Object]")
+
+ vm1 := vm0.Copy()
+ value, err = vm1.Run(`
+ def();
+ `)
+ is(err, nil)
+ is(value, "Xyzzy0[object Object]")
+
+ vm1.Run(`
+ abc = function() {
+ return 3.14159;
+ };
+ `)
+ value, err = vm1.Run(`
+ def();
+ `)
+ is(err, nil)
+ is(value, "3.141590[object Object]")
+
+ value, err = vm0.Run(`
+ def();
+ `)
+ is(err, nil)
+ is(value, "Xyzzy0[object Object]")
+ })
+}
+
+func TestOttoCall_clone(t *testing.T) {
+ tt(t, func() {
+ vm := New().clone()
+ rt := vm.runtime
+
+ {
+ // FIXME terst, Check how this comparison is done
+ is(rt.Global.Array.prototype, rt.Global.FunctionPrototype)
+ is(rt.Global.ArrayPrototype, "!=", nil)
+ is(rt.Global.Array.runtime, rt)
+ is(rt.Global.Array.prototype.runtime, rt)
+ is(rt.Global.Array.get("prototype")._object().runtime, rt)
+ }
+
+ {
+ value, err := vm.Run(`[ 1, 2, 3 ].toString()`)
+ is(err, nil)
+ is(value, "1,2,3")
+ }
+
+ {
+ value, err := vm.Run(`[ 1, 2, 3 ]`)
+ is(err, nil)
+ is(value, "1,2,3")
+ object := value._object()
+ is(object, "!=", nil)
+ is(object.prototype, rt.Global.ArrayPrototype)
+
+ value, err = vm.Run(`Array.prototype`)
+ is(err, nil)
+ object = value._object()
+ is(object.runtime, rt)
+ is(object, "!=", nil)
+ is(object, rt.Global.ArrayPrototype)
+ }
+
+ {
+ otto1 := New()
+ _, err := otto1.Run(`
+ var abc = 1;
+ var def = 2;
+ `)
+ is(err, nil)
+
+ otto2 := otto1.clone()
+ value, err := otto2.Run(`abc += 1; abc;`)
+ is(err, nil)
+ is(value, 2)
+
+ value, err = otto1.Run(`abc += 4; abc;`)
+ is(err, nil)
+ is(value, 5)
+ }
+
+ {
+ vm1 := New()
+ _, err := vm1.Run(`
+ var abc = 1;
+ var def = function(value) {
+ abc += value;
+ return abc;
+ }
+ `)
+ is(err, nil)
+
+ vm2 := vm1.clone()
+ value, err := vm2.Run(`def(1)`)
+ is(err, nil)
+ is(value, 2)
+
+ value, err = vm1.Run(`def(4)`)
+ is(err, nil)
+ is(value, 5)
+ }
+
+ {
+ vm1 := New()
+ _, err := vm1.Run(`
+ var abc = {
+ ghi: 1,
+ jkl: function(value) {
+ this.ghi += value;
+ return this.ghi;
+ }
+ };
+ var def = {
+ abc: abc
+ };
+ `)
+ is(err, nil)
+
+ otto2 := vm1.clone()
+ value, err := otto2.Run(`def.abc.jkl(1)`)
+ is(err, nil)
+ is(value, 2)
+
+ value, err = vm1.Run(`def.abc.jkl(4)`)
+ is(err, nil)
+ is(value, 5)
+ }
+
+ {
+ vm1 := New()
+ _, err := vm1.Run(`
+ var abc = function() { return "abc"; };
+ var def = function() { return "def"; };
+ `)
+ is(err, nil)
+
+ vm2 := vm1.clone()
+ value, err := vm2.Run(`
+ [ abc.toString(), def.toString() ];
+ `)
+ is(value, `function() { return "abc"; },function() { return "def"; }`)
+
+ _, err = vm2.Run(`
+ var def = function() { return "ghi"; };
+ `)
+ is(err, nil)
+
+ value, err = vm1.Run(`
+ [ abc.toString(), def.toString() ];
+ `)
+ is(value, `function() { return "abc"; },function() { return "def"; }`)
+
+ value, err = vm2.Run(`
+ [ abc.toString(), def.toString() ];
+ `)
+ is(value, `function() { return "abc"; },function() { return "ghi"; }`)
+ }
+
+ })
+}
+
+func TestOttoRun(t *testing.T) {
+ tt(t, func() {
+ vm := New()
+
+ program, err := parser.ParseFile(nil, "", "", 0)
+ is(err, nil)
+ value, err := vm.Run(program)
+ is(err, nil)
+ is(value, UndefinedValue())
+
+ program, err = parser.ParseFile(nil, "", "2 + 2", 0)
+ is(err, nil)
+ value, err = vm.Run(program)
+ is(err, nil)
+ is(value, 4)
+ value, err = vm.Run(program)
+ is(err, nil)
+ is(value, 4)
+
+ program, err = parser.ParseFile(nil, "", "var abc; if (!abc) abc = 0; abc += 2; abc;", 0)
+ value, err = vm.Run(program)
+ is(err, nil)
+ is(value, 2)
+ value, err = vm.Run(program)
+ is(err, nil)
+ is(value, 4)
+ value, err = vm.Run(program)
+ is(err, nil)
+ is(value, 6)
+
+ {
+ src := []byte("var abc; if (!abc) abc = 0; abc += 2; abc;")
+ value, err = vm.Run(src)
+ is(err, nil)
+ is(value, 8)
+
+ value, err = vm.Run(bytes.NewBuffer(src))
+ is(err, nil)
+ is(value, 10)
+
+ value, err = vm.Run(io.Reader(bytes.NewBuffer(src)))
+ is(err, nil)
+ is(value, 12)
+ }
+
+ {
+ script, err := vm.Compile("", `var abc; if (!abc) abc = 0; abc += 2; abc;`)
+ is(err, nil)
+
+ value, err = vm.Run(script)
+ is(err, nil)
+ is(value, 14)
+
+ value, err = vm.Run(script)
+ is(err, nil)
+ is(value, 16)
+
+ is(script.String(), "// \nvar abc; if (!abc) abc = 0; abc += 2; abc;")
+ }
+ })
+}
+
+func Test_objectLength(t *testing.T) {
+ tt(t, func() {
+ _, vm := test()
+
+ value := vm.Set("abc", []string{"jkl", "mno"})
+ is(objectLength(value._object()), 2)
+
+ value, _ = vm.Run(`[1, 2, 3]`)
+ is(objectLength(value._object()), 3)
+
+ value, _ = vm.Run(`new String("abcdefghi")`)
+ is(objectLength(value._object()), 9)
+
+ value, _ = vm.Run(`"abcdefghi"`)
+ is(objectLength(value._object()), 0)
+ })
+}
+
+func BenchmarkNew(b *testing.B) {
+ for i := 0; i < b.N; i++ {
+ New()
+ }
+}
+
+func BenchmarkClone(b *testing.B) {
+ vm := New()
+ b.ResetTimer()
+ for i := 0; i < b.N; i++ {
+ vm.clone()
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/panic_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/panic_test.go
new file mode 100644
index 000000000..06f0a64fc
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/panic_test.go
@@ -0,0 +1,40 @@
+package otto
+
+import (
+ "testing"
+)
+
+func Test_panic(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ // Test that property.value is set to something if writable is set
+ // to something
+ test(`
+ var abc = [];
+ Object.defineProperty(abc, "0", { writable: false });
+ Object.defineProperty(abc, "0", { writable: false });
+ "0" in abc;
+ `, true)
+
+ test(`raise:
+ var abc = [];
+ Object.defineProperty(abc, "0", { writable: false });
+ Object.defineProperty(abc, "0", { value: false, writable: false });
+ `, "TypeError")
+
+ // Test that a regular expression can contain \c0410 (CYRILLIC CAPITAL LETTER A)
+ // without panicking
+ test(`
+ var abc = 0x0410;
+ var def = String.fromCharCode(abc);
+ new RegExp("\\c" + def).exec(def);
+ `, "null")
+
+ // Test transforming a transformable regular expression without a panic
+ test(`
+ new RegExp("\\u0000");
+ new RegExp("\\undefined").test("undefined");
+ `, true)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser/Makefile b/Godeps/_workspace/src/github.com/obscuren/otto/parser/Makefile
new file mode 100644
index 000000000..766fd4d0b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser/Makefile
@@ -0,0 +1,4 @@
+.PHONY: test
+
+test:
+ go test
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser/README.markdown b/Godeps/_workspace/src/github.com/obscuren/otto/parser/README.markdown
new file mode 100644
index 000000000..c3cae5b60
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser/README.markdown
@@ -0,0 +1,190 @@
+# parser
+--
+ import "github.com/robertkrimen/otto/parser"
+
+Package parser implements a parser for JavaScript.
+
+ import (
+ "github.com/robertkrimen/otto/parser"
+ )
+
+Parse and return an AST
+
+ filename := "" // A filename is optional
+ src := `
+ // Sample xyzzy example
+ (function(){
+ if (3.14159 > 0) {
+ console.log("Hello, World.");
+ return;
+ }
+
+ var xyzzy = NaN;
+ console.log("Nothing happens.");
+ return xyzzy;
+ })();
+ `
+
+ // Parse some JavaScript, yielding a *ast.Program and/or an ErrorList
+ program, err := parser.ParseFile(nil, filename, src, 0)
+
+
+### Warning
+
+The parser and AST interfaces are still works-in-progress (particularly where
+node types are concerned) and may change in the future.
+
+## Usage
+
+#### func ParseFile
+
+```go
+func ParseFile(fileSet *file.FileSet, filename string, src interface{}, mode Mode) (*ast.Program, error)
+```
+ParseFile parses the source code of a single JavaScript/ECMAScript source file
+and returns the corresponding ast.Program node.
+
+If fileSet == nil, ParseFile parses source without a FileSet. If fileSet != nil,
+ParseFile first adds filename and src to fileSet.
+
+The filename argument is optional and is used for labelling errors, etc.
+
+src may be a string, a byte slice, a bytes.Buffer, or an io.Reader, but it MUST
+always be in UTF-8.
+
+ // Parse some JavaScript, yielding a *ast.Program and/or an ErrorList
+ program, err := parser.ParseFile(nil, "", `if (abc > 1) {}`, 0)
+
+#### func ParseFunction
+
+```go
+func ParseFunction(parameterList, body string) (*ast.FunctionLiteral, error)
+```
+ParseFunction parses a given parameter list and body as a function and returns
+the corresponding ast.FunctionLiteral node.
+
+The parameter list, if any, should be a comma-separated list of identifiers.
+
+#### func ReadSource
+
+```go
+func ReadSource(filename string, src interface{}) ([]byte, error)
+```
+
+#### func TransformRegExp
+
+```go
+func TransformRegExp(pattern string) (string, error)
+```
+TransformRegExp transforms a JavaScript pattern into a Go "regexp" pattern.
+
+re2 (Go) cannot do backtracking, so the presence of a lookahead (?=) (?!) or
+backreference (\1, \2, ...) will cause an error.
+
+re2 (Go) has a different definition for \s: [\t\n\f\r ]. The JavaScript
+definition, on the other hand, also includes \v, Unicode "Separator, Space",
+etc.
+
+If the pattern is invalid (not valid even in JavaScript), then this function
+returns the empty string and an error.
+
+If the pattern is valid, but incompatible (contains a lookahead or
+backreference), then this function returns the transformation (a non-empty
+string) AND an error.
+
+#### type Error
+
+```go
+type Error struct {
+ Position file.Position
+ Message string
+}
+```
+
+An Error represents a parsing error. It includes the position where the error
+occurred and a message/description.
+
+#### func (Error) Error
+
+```go
+func (self Error) Error() string
+```
+
+#### type ErrorList
+
+```go
+type ErrorList []*Error
+```
+
+ErrorList is a list of *Errors.
+
+#### func (*ErrorList) Add
+
+```go
+func (self *ErrorList) Add(position file.Position, msg string)
+```
+Add adds an Error with given position and message to an ErrorList.
+
+#### func (ErrorList) Err
+
+```go
+func (self ErrorList) Err() error
+```
+Err returns an error equivalent to this ErrorList. If the list is empty, Err
+returns nil.
+
+#### func (ErrorList) Error
+
+```go
+func (self ErrorList) Error() string
+```
+Error implements the Error interface.
+
+#### func (ErrorList) Len
+
+```go
+func (self ErrorList) Len() int
+```
+
+#### func (ErrorList) Less
+
+```go
+func (self ErrorList) Less(i, j int) bool
+```
+
+#### func (*ErrorList) Reset
+
+```go
+func (self *ErrorList) Reset()
+```
+Reset resets an ErrorList to no errors.
+
+#### func (ErrorList) Sort
+
+```go
+func (self ErrorList) Sort()
+```
+
+#### func (ErrorList) Swap
+
+```go
+func (self ErrorList) Swap(i, j int)
+```
+
+#### type Mode
+
+```go
+type Mode uint
+```
+
+A Mode value is a set of flags (or 0). They control optional parser
+functionality.
+
+```go
+const (
+ IgnoreRegExpErrors Mode = 1 << iota // Ignore RegExp compatibility errors (allow backtracking)
+)
+```
+
+--
+**godocdown** http://github.com/robertkrimen/godocdown
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser/dbg.go b/Godeps/_workspace/src/github.com/obscuren/otto/parser/dbg.go
new file mode 100644
index 000000000..3c5f2f698
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser/dbg.go
@@ -0,0 +1,9 @@
+// This file was AUTOMATICALLY GENERATED by dbg-import (smuggol) for github.com/robertkrimen/dbg
+
+package parser
+
+import (
+ Dbg "github.com/robertkrimen/otto/dbg"
+)
+
+var dbg, dbgf = Dbg.New()
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser/error.go b/Godeps/_workspace/src/github.com/obscuren/otto/parser/error.go
new file mode 100644
index 000000000..39ea75132
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser/error.go
@@ -0,0 +1,175 @@
+package parser
+
+import (
+ "fmt"
+ "sort"
+
+ "github.com/robertkrimen/otto/file"
+ "github.com/robertkrimen/otto/token"
+)
+
+const (
+ err_UnexpectedToken = "Unexpected token %v"
+ err_UnexpectedEndOfInput = "Unexpected end of input"
+ err_UnexpectedEscape = "Unexpected escape"
+)
+
+// UnexpectedNumber: 'Unexpected number',
+// UnexpectedString: 'Unexpected string',
+// UnexpectedIdentifier: 'Unexpected identifier',
+// UnexpectedReserved: 'Unexpected reserved word',
+// NewlineAfterThrow: 'Illegal newline after throw',
+// InvalidRegExp: 'Invalid regular expression',
+// UnterminatedRegExp: 'Invalid regular expression: missing /',
+// InvalidLHSInAssignment: 'Invalid left-hand side in assignment',
+// InvalidLHSInForIn: 'Invalid left-hand side in for-in',
+// MultipleDefaultsInSwitch: 'More than one default clause in switch statement',
+// NoCatchOrFinally: 'Missing catch or finally after try',
+// UnknownLabel: 'Undefined label \'%0\'',
+// Redeclaration: '%0 \'%1\' has already been declared',
+// IllegalContinue: 'Illegal continue statement',
+// IllegalBreak: 'Illegal break statement',
+// IllegalReturn: 'Illegal return statement',
+// StrictModeWith: 'Strict mode code may not include a with statement',
+// StrictCatchVariable: 'Catch variable may not be eval or arguments in strict mode',
+// StrictVarName: 'Variable name may not be eval or arguments in strict mode',
+// StrictParamName: 'Parameter name eval or arguments is not allowed in strict mode',
+// StrictParamDupe: 'Strict mode function may not have duplicate parameter names',
+// StrictFunctionName: 'Function name may not be eval or arguments in strict mode',
+// StrictOctalLiteral: 'Octal literals are not allowed in strict mode.',
+// StrictDelete: 'Delete of an unqualified identifier in strict mode.',
+// StrictDuplicateProperty: 'Duplicate data property in object literal not allowed in strict mode',
+// AccessorDataProperty: 'Object literal may not have data and accessor property with the same name',
+// AccessorGetSet: 'Object literal may not have multiple get/set accessors with the same name',
+// StrictLHSAssignment: 'Assignment to eval or arguments is not allowed in strict mode',
+// StrictLHSPostfix: 'Postfix increment/decrement may not have eval or arguments operand in strict mode',
+// StrictLHSPrefix: 'Prefix increment/decrement may not have eval or arguments operand in strict mode',
+// StrictReservedWord: 'Use of future reserved word in strict mode'
+
+// A SyntaxError is a description of an ECMAScript syntax error.
+
+// An Error represents a parsing error. It includes the position where the error occurred and a message/description.
+type Error struct {
+ Position file.Position
+ Message string
+}
+
+// FXIME Should this be "SyntaxError"?
+
+func (self Error) Error() string {
+ filename := self.Position.Filename
+ if filename == "" {
+ filename = "(anonymous)"
+ }
+ return fmt.Sprintf("%s: Line %d:%d %s",
+ filename,
+ self.Position.Line,
+ self.Position.Column,
+ self.Message,
+ )
+}
+
+func (self *_parser) error(place interface{}, msg string, msgValues ...interface{}) *Error {
+ idx := file.Idx(0)
+ switch place := place.(type) {
+ case int:
+ idx = self.idxOf(place)
+ case file.Idx:
+ if place == 0 {
+ idx = self.idxOf(self.chrOffset)
+ } else {
+ idx = place
+ }
+ default:
+ panic(fmt.Errorf("error(%T, ...)", place))
+ }
+
+ position := self.position(idx)
+ msg = fmt.Sprintf(msg, msgValues...)
+ self.errors.Add(position, msg)
+ return self.errors[len(self.errors)-1]
+}
+
+func (self *_parser) errorUnexpected(idx file.Idx, chr rune) error {
+ if chr == -1 {
+ return self.error(idx, err_UnexpectedEndOfInput)
+ }
+ return self.error(idx, err_UnexpectedToken, token.ILLEGAL)
+}
+
+func (self *_parser) errorUnexpectedToken(tkn token.Token) error {
+ switch tkn {
+ case token.EOF:
+ return self.error(file.Idx(0), err_UnexpectedEndOfInput)
+ }
+ value := tkn.String()
+ switch tkn {
+ case token.BOOLEAN, token.NULL:
+ value = self.literal
+ case token.IDENTIFIER:
+ return self.error(self.idx, "Unexpected identifier")
+ case token.KEYWORD:
+ // TODO Might be a future reserved word
+ return self.error(self.idx, "Unexpected reserved word")
+ case token.NUMBER:
+ return self.error(self.idx, "Unexpected number")
+ case token.STRING:
+ return self.error(self.idx, "Unexpected string")
+ }
+ return self.error(self.idx, err_UnexpectedToken, value)
+}
+
+// ErrorList is a list of *Errors.
+//
+type ErrorList []*Error
+
+// Add adds an Error with given position and message to an ErrorList.
+func (self *ErrorList) Add(position file.Position, msg string) {
+ *self = append(*self, &Error{position, msg})
+}
+
+// Reset resets an ErrorList to no errors.
+func (self *ErrorList) Reset() { *self = (*self)[0:0] }
+
+func (self ErrorList) Len() int { return len(self) }
+func (self ErrorList) Swap(i, j int) { self[i], self[j] = self[j], self[i] }
+func (self ErrorList) Less(i, j int) bool {
+ x := &self[i].Position
+ y := &self[j].Position
+ if x.Filename < y.Filename {
+ return true
+ }
+ if x.Filename == y.Filename {
+ if x.Line < y.Line {
+ return true
+ }
+ if x.Line == y.Line {
+ return x.Column < y.Column
+ }
+ }
+ return false
+}
+
+func (self ErrorList) Sort() {
+ sort.Sort(self)
+}
+
+// Error implements the Error interface.
+func (self ErrorList) Error() string {
+ switch len(self) {
+ case 0:
+ return "no errors"
+ case 1:
+ return self[0].Error()
+ }
+ return fmt.Sprintf("%s (and %d more errors)", self[0].Error(), len(self)-1)
+}
+
+// Err returns an error equivalent to this ErrorList.
+// If the list is empty, Err returns nil.
+func (self ErrorList) Err() error {
+ if len(self) == 0 {
+ return nil
+ }
+ return self
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser/expression.go b/Godeps/_workspace/src/github.com/obscuren/otto/parser/expression.go
new file mode 100644
index 000000000..dc397b5cb
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser/expression.go
@@ -0,0 +1,815 @@
+package parser
+
+import (
+ "regexp"
+
+ "github.com/robertkrimen/otto/ast"
+ "github.com/robertkrimen/otto/file"
+ "github.com/robertkrimen/otto/token"
+)
+
+func (self *_parser) parseIdentifier() *ast.Identifier {
+ literal := self.literal
+ idx := self.idx
+ self.next()
+ return &ast.Identifier{
+ Name: literal,
+ Idx: idx,
+ }
+}
+
+func (self *_parser) parsePrimaryExpression() ast.Expression {
+ literal := self.literal
+ idx := self.idx
+ switch self.token {
+ case token.IDENTIFIER:
+ self.next()
+ if len(literal) > 1 {
+ tkn, strict := token.IsKeyword(literal)
+ if tkn == token.KEYWORD {
+ if !strict {
+ self.error(idx, "Unexpected reserved word")
+ }
+ }
+ }
+ return &ast.Identifier{
+ Name: literal,
+ Idx: idx,
+ }
+ case token.NULL:
+ self.next()
+ return &ast.NullLiteral{
+ Idx: idx,
+ Literal: literal,
+ }
+ case token.BOOLEAN:
+ self.next()
+ value := false
+ switch literal {
+ case "true":
+ value = true
+ case "false":
+ value = false
+ default:
+ self.error(idx, "Illegal boolean literal")
+ }
+ return &ast.BooleanLiteral{
+ Idx: idx,
+ Literal: literal,
+ Value: value,
+ }
+ case token.STRING:
+ self.next()
+ value, err := parseStringLiteral(literal[1 : len(literal)-1])
+ if err != nil {
+ self.error(idx, err.Error())
+ }
+ return &ast.StringLiteral{
+ Idx: idx,
+ Literal: literal,
+ Value: value,
+ }
+ case token.NUMBER:
+ self.next()
+ value, err := parseNumberLiteral(literal)
+ if err != nil {
+ self.error(idx, err.Error())
+ value = 0
+ }
+ return &ast.NumberLiteral{
+ Idx: idx,
+ Literal: literal,
+ Value: value,
+ }
+ case token.SLASH, token.QUOTIENT_ASSIGN:
+ return self.parseRegExpLiteral()
+ case token.LEFT_BRACE:
+ return self.parseObjectLiteral()
+ case token.LEFT_BRACKET:
+ return self.parseArrayLiteral()
+ case token.LEFT_PARENTHESIS:
+ self.expect(token.LEFT_PARENTHESIS)
+ expression := self.parseExpression()
+ self.expect(token.RIGHT_PARENTHESIS)
+ return expression
+ case token.THIS:
+ self.next()
+ return &ast.ThisExpression{
+ Idx: idx,
+ }
+ case token.FUNCTION:
+ return self.parseFunction(false)
+ }
+
+ self.errorUnexpectedToken(self.token)
+ self.nextStatement()
+ return &ast.BadExpression{From: idx, To: self.idx}
+}
+
+func (self *_parser) parseRegExpLiteral() *ast.RegExpLiteral {
+
+ offset := self.chrOffset - 1 // Opening slash already gotten
+ if self.token == token.QUOTIENT_ASSIGN {
+ offset -= 1 // =
+ }
+ idx := self.idxOf(offset)
+
+ pattern, err := self.scanString(offset)
+ endOffset := self.chrOffset
+
+ self.next()
+ if err == nil {
+ pattern = pattern[1 : len(pattern)-1]
+ }
+
+ flags := ""
+ if self.token == token.IDENTIFIER { // gim
+
+ flags = self.literal
+ self.next()
+ endOffset = self.chrOffset - 1
+ }
+
+ var value string
+ // TODO 15.10
+ {
+ // Test during parsing that this is a valid regular expression
+ // Sorry, (?=) and (?!) are invalid (for now)
+ pattern, err := TransformRegExp(pattern)
+ if err != nil {
+ if pattern == "" || self.mode&IgnoreRegExpErrors == 0 {
+ self.error(idx, "Invalid regular expression: %s", err.Error())
+ }
+ } else {
+ _, err = regexp.Compile(pattern)
+ if err != nil {
+ // We should not get here, ParseRegExp should catch any errors
+ self.error(idx, "Invalid regular expression: %s", err.Error()[22:]) // Skip redundant "parse regexp error"
+ } else {
+ value = pattern
+ }
+ }
+ }
+
+ literal := self.str[offset:endOffset]
+
+ return &ast.RegExpLiteral{
+ Idx: idx,
+ Literal: literal,
+ Pattern: pattern,
+ Flags: flags,
+ Value: value,
+ }
+}
+
+func (self *_parser) parseVariableDeclaration(declarationList *[]*ast.VariableExpression) ast.Expression {
+
+ if self.token != token.IDENTIFIER {
+ idx := self.expect(token.IDENTIFIER)
+ self.nextStatement()
+ return &ast.BadExpression{From: idx, To: self.idx}
+ }
+
+ literal := self.literal
+ idx := self.idx
+ self.next()
+ node := &ast.VariableExpression{
+ Name: literal,
+ Idx: idx,
+ }
+
+ if declarationList != nil {
+ *declarationList = append(*declarationList, node)
+ }
+
+ if self.token == token.ASSIGN {
+ self.next()
+ node.Initializer = self.parseAssignmentExpression()
+ }
+
+ return node
+}
+
+func (self *_parser) parseVariableDeclarationList(var_ file.Idx) []ast.Expression {
+
+ var declarationList []*ast.VariableExpression // Avoid bad expressions
+ var list []ast.Expression
+
+ for {
+ list = append(list, self.parseVariableDeclaration(&declarationList))
+ if self.token != token.COMMA {
+ break
+ }
+ self.next()
+ }
+
+ self.scope.declare(&ast.VariableDeclaration{
+ Var: var_,
+ List: declarationList,
+ })
+
+ return list
+}
+
+func (self *_parser) parseObjectPropertyKey() (string, string) {
+ idx, tkn, literal := self.idx, self.token, self.literal
+ value := ""
+ self.next()
+ switch tkn {
+ case token.IDENTIFIER:
+ value = literal
+ case token.NUMBER:
+ var err error
+ _, err = parseNumberLiteral(literal)
+ if err != nil {
+ self.error(idx, err.Error())
+ } else {
+ value = literal
+ }
+ case token.STRING:
+ var err error
+ value, err = parseStringLiteral(literal[1 : len(literal)-1])
+ if err != nil {
+ self.error(idx, err.Error())
+ }
+ default:
+ // null, false, class, etc.
+ if matchIdentifier.MatchString(literal) {
+ value = literal
+ }
+ }
+ return literal, value
+}
+
+func (self *_parser) parseObjectProperty() ast.Property {
+
+ literal, value := self.parseObjectPropertyKey()
+ if literal == "get" && self.token != token.COLON {
+ idx := self.idx
+ _, value := self.parseObjectPropertyKey()
+ parameterList := self.parseFunctionParameterList()
+
+ node := &ast.FunctionLiteral{
+ Function: idx,
+ ParameterList: parameterList,
+ }
+ self.parseFunctionBlock(node)
+ return ast.Property{
+ Key: value,
+ Kind: "get",
+ Value: node,
+ }
+ } else if literal == "set" && self.token != token.COLON {
+ idx := self.idx
+ _, value := self.parseObjectPropertyKey()
+ parameterList := self.parseFunctionParameterList()
+
+ node := &ast.FunctionLiteral{
+ Function: idx,
+ ParameterList: parameterList,
+ }
+ self.parseFunctionBlock(node)
+ return ast.Property{
+ Key: value,
+ Kind: "set",
+ Value: node,
+ }
+ }
+
+ self.expect(token.COLON)
+
+ return ast.Property{
+ Key: value,
+ Kind: "value",
+ Value: self.parseAssignmentExpression(),
+ }
+}
+
+func (self *_parser) parseObjectLiteral() ast.Expression {
+ var value []ast.Property
+ idx0 := self.expect(token.LEFT_BRACE)
+ for self.token != token.RIGHT_BRACE && self.token != token.EOF {
+ property := self.parseObjectProperty()
+ value = append(value, property)
+ if self.token == token.COMMA {
+ self.next()
+ continue
+ }
+ }
+ idx1 := self.expect(token.RIGHT_BRACE)
+
+ return &ast.ObjectLiteral{
+ LeftBrace: idx0,
+ RightBrace: idx1,
+ Value: value,
+ }
+}
+
+func (self *_parser) parseArrayLiteral() ast.Expression {
+
+ idx0 := self.expect(token.LEFT_BRACKET)
+ var value []ast.Expression
+ for self.token != token.RIGHT_BRACKET && self.token != token.EOF {
+ if self.token == token.COMMA {
+ self.next()
+ value = append(value, nil)
+ continue
+ }
+ value = append(value, self.parseAssignmentExpression())
+ if self.token != token.RIGHT_BRACKET {
+ self.expect(token.COMMA)
+ }
+ }
+ idx1 := self.expect(token.RIGHT_BRACKET)
+
+ return &ast.ArrayLiteral{
+ LeftBracket: idx0,
+ RightBracket: idx1,
+ Value: value,
+ }
+}
+
+func (self *_parser) parseArgumentList() (argumentList []ast.Expression, idx0, idx1 file.Idx) {
+ idx0 = self.expect(token.LEFT_PARENTHESIS)
+ if self.token != token.RIGHT_PARENTHESIS {
+ for {
+ argumentList = append(argumentList, self.parseAssignmentExpression())
+ if self.token != token.COMMA {
+ break
+ }
+ self.next()
+ }
+ }
+ idx1 = self.expect(token.RIGHT_PARENTHESIS)
+ return
+}
+
+func (self *_parser) parseCallExpression(left ast.Expression) ast.Expression {
+ argumentList, idx0, idx1 := self.parseArgumentList()
+ return &ast.CallExpression{
+ Callee: left,
+ LeftParenthesis: idx0,
+ ArgumentList: argumentList,
+ RightParenthesis: idx1,
+ }
+}
+
+func (self *_parser) parseDotMember(left ast.Expression) ast.Expression {
+ period := self.expect(token.PERIOD)
+
+ literal := self.literal
+ idx := self.idx
+
+ if !matchIdentifier.MatchString(literal) {
+ self.expect(token.IDENTIFIER)
+ self.nextStatement()
+ return &ast.BadExpression{From: period, To: self.idx}
+ }
+
+ self.next()
+
+ return &ast.DotExpression{
+ Left: left,
+ Identifier: ast.Identifier{
+ Idx: idx,
+ Name: literal,
+ },
+ }
+}
+
+func (self *_parser) parseBracketMember(left ast.Expression) ast.Expression {
+ idx0 := self.expect(token.LEFT_BRACKET)
+ member := self.parseExpression()
+ idx1 := self.expect(token.RIGHT_BRACKET)
+ return &ast.BracketExpression{
+ LeftBracket: idx0,
+ Left: left,
+ Member: member,
+ RightBracket: idx1,
+ }
+}
+
+func (self *_parser) parseNewExpression() ast.Expression {
+ idx := self.expect(token.NEW)
+ callee := self.parseLeftHandSideExpression()
+ node := &ast.NewExpression{
+ New: idx,
+ Callee: callee,
+ }
+ if self.token == token.LEFT_PARENTHESIS {
+ argumentList, idx0, idx1 := self.parseArgumentList()
+ node.ArgumentList = argumentList
+ node.LeftParenthesis = idx0
+ node.RightParenthesis = idx1
+ }
+ return node
+}
+
+func (self *_parser) parseLeftHandSideExpression() ast.Expression {
+
+ var left ast.Expression
+ if self.token == token.NEW {
+ left = self.parseNewExpression()
+ } else {
+ left = self.parsePrimaryExpression()
+ }
+
+ for {
+ if self.token == token.PERIOD {
+ left = self.parseDotMember(left)
+ } else if self.token == token.LEFT_BRACE {
+ left = self.parseBracketMember(left)
+ } else {
+ break
+ }
+ }
+
+ return left
+}
+
+func (self *_parser) parseLeftHandSideExpressionAllowCall() ast.Expression {
+
+ allowIn := self.scope.allowIn
+ self.scope.allowIn = true
+ defer func() {
+ self.scope.allowIn = allowIn
+ }()
+
+ var left ast.Expression
+ if self.token == token.NEW {
+ left = self.parseNewExpression()
+ } else {
+ left = self.parsePrimaryExpression()
+ }
+
+ for {
+ if self.token == token.PERIOD {
+ left = self.parseDotMember(left)
+ } else if self.token == token.LEFT_BRACKET {
+ left = self.parseBracketMember(left)
+ } else if self.token == token.LEFT_PARENTHESIS {
+ left = self.parseCallExpression(left)
+ } else {
+ break
+ }
+ }
+
+ return left
+}
+
+func (self *_parser) parsePostfixExpression() ast.Expression {
+ operand := self.parseLeftHandSideExpressionAllowCall()
+
+ switch self.token {
+ case token.INCREMENT, token.DECREMENT:
+ // Make sure there is no line terminator here
+ if self.implicitSemicolon {
+ break
+ }
+ tkn := self.token
+ idx := self.idx
+ self.next()
+ switch operand.(type) {
+ case *ast.Identifier, *ast.DotExpression, *ast.BracketExpression:
+ default:
+ self.error(idx, "Invalid left-hand side in assignment")
+ self.nextStatement()
+ return &ast.BadExpression{From: idx, To: self.idx}
+ }
+ return &ast.UnaryExpression{
+ Operator: tkn,
+ Idx: idx,
+ Operand: operand,
+ Postfix: true,
+ }
+ }
+
+ return operand
+}
+
+func (self *_parser) parseUnaryExpression() ast.Expression {
+
+ switch self.token {
+ case token.PLUS, token.MINUS, token.NOT, token.BITWISE_NOT:
+ fallthrough
+ case token.DELETE, token.VOID, token.TYPEOF:
+ tkn := self.token
+ idx := self.idx
+ self.next()
+ return &ast.UnaryExpression{
+ Operator: tkn,
+ Idx: idx,
+ Operand: self.parseUnaryExpression(),
+ }
+ case token.INCREMENT, token.DECREMENT:
+ tkn := self.token
+ idx := self.idx
+ self.next()
+ operand := self.parseUnaryExpression()
+ switch operand.(type) {
+ case *ast.Identifier, *ast.DotExpression, *ast.BracketExpression:
+ default:
+ self.error(idx, "Invalid left-hand side in assignment")
+ self.nextStatement()
+ return &ast.BadExpression{From: idx, To: self.idx}
+ }
+ return &ast.UnaryExpression{
+ Operator: tkn,
+ Idx: idx,
+ Operand: operand,
+ }
+ }
+
+ return self.parsePostfixExpression()
+}
+
+func (self *_parser) parseMultiplicativeExpression() ast.Expression {
+ next := self.parseUnaryExpression
+ left := next()
+
+ for self.token == token.MULTIPLY || self.token == token.SLASH ||
+ self.token == token.REMAINDER {
+ tkn := self.token
+ self.next()
+ left = &ast.BinaryExpression{
+ Operator: tkn,
+ Left: left,
+ Right: next(),
+ }
+ }
+
+ return left
+}
+
+func (self *_parser) parseAdditiveExpression() ast.Expression {
+ next := self.parseMultiplicativeExpression
+ left := next()
+
+ for self.token == token.PLUS || self.token == token.MINUS {
+ tkn := self.token
+ self.next()
+ left = &ast.BinaryExpression{
+ Operator: tkn,
+ Left: left,
+ Right: next(),
+ }
+ }
+
+ return left
+}
+
+func (self *_parser) parseShiftExpression() ast.Expression {
+ next := self.parseAdditiveExpression
+ left := next()
+
+ for self.token == token.SHIFT_LEFT || self.token == token.SHIFT_RIGHT ||
+ self.token == token.UNSIGNED_SHIFT_RIGHT {
+ tkn := self.token
+ self.next()
+ left = &ast.BinaryExpression{
+ Operator: tkn,
+ Left: left,
+ Right: next(),
+ }
+ }
+
+ return left
+}
+
+func (self *_parser) parseRelationalExpression() ast.Expression {
+ next := self.parseShiftExpression
+ left := next()
+
+ allowIn := self.scope.allowIn
+ self.scope.allowIn = true
+ defer func() {
+ self.scope.allowIn = allowIn
+ }()
+
+ switch self.token {
+ case token.LESS, token.LESS_OR_EQUAL, token.GREATER, token.GREATER_OR_EQUAL:
+ tkn := self.token
+ self.next()
+ return &ast.BinaryExpression{
+ Operator: tkn,
+ Left: left,
+ Right: self.parseRelationalExpression(),
+ Comparison: true,
+ }
+ case token.INSTANCEOF:
+ tkn := self.token
+ self.next()
+ return &ast.BinaryExpression{
+ Operator: tkn,
+ Left: left,
+ Right: self.parseRelationalExpression(),
+ }
+ case token.IN:
+ if !allowIn {
+ return left
+ }
+ tkn := self.token
+ self.next()
+ return &ast.BinaryExpression{
+ Operator: tkn,
+ Left: left,
+ Right: self.parseRelationalExpression(),
+ }
+ }
+
+ return left
+}
+
+func (self *_parser) parseEqualityExpression() ast.Expression {
+ next := self.parseRelationalExpression
+ left := next()
+
+ for self.token == token.EQUAL || self.token == token.NOT_EQUAL ||
+ self.token == token.STRICT_EQUAL || self.token == token.STRICT_NOT_EQUAL {
+ tkn := self.token
+ self.next()
+ left = &ast.BinaryExpression{
+ Operator: tkn,
+ Left: left,
+ Right: next(),
+ Comparison: true,
+ }
+ }
+
+ return left
+}
+
+func (self *_parser) parseBitwiseAndExpression() ast.Expression {
+ next := self.parseEqualityExpression
+ left := next()
+
+ for self.token == token.AND {
+ tkn := self.token
+ self.next()
+ left = &ast.BinaryExpression{
+ Operator: tkn,
+ Left: left,
+ Right: next(),
+ }
+ }
+
+ return left
+}
+
+func (self *_parser) parseBitwiseExclusiveOrExpression() ast.Expression {
+ next := self.parseBitwiseAndExpression
+ left := next()
+
+ for self.token == token.EXCLUSIVE_OR {
+ tkn := self.token
+ self.next()
+ left = &ast.BinaryExpression{
+ Operator: tkn,
+ Left: left,
+ Right: next(),
+ }
+ }
+
+ return left
+}
+
+func (self *_parser) parseBitwiseOrExpression() ast.Expression {
+ next := self.parseBitwiseExclusiveOrExpression
+ left := next()
+
+ for self.token == token.OR {
+ tkn := self.token
+ self.next()
+ left = &ast.BinaryExpression{
+ Operator: tkn,
+ Left: left,
+ Right: next(),
+ }
+ }
+
+ return left
+}
+
+func (self *_parser) parseLogicalAndExpression() ast.Expression {
+ next := self.parseBitwiseOrExpression
+ left := next()
+
+ for self.token == token.LOGICAL_AND {
+ tkn := self.token
+ self.next()
+ left = &ast.BinaryExpression{
+ Operator: tkn,
+ Left: left,
+ Right: next(),
+ }
+ }
+
+ return left
+}
+
+func (self *_parser) parseLogicalOrExpression() ast.Expression {
+ next := self.parseLogicalAndExpression
+ left := next()
+
+ for self.token == token.LOGICAL_OR {
+ tkn := self.token
+ self.next()
+ left = &ast.BinaryExpression{
+ Operator: tkn,
+ Left: left,
+ Right: next(),
+ }
+ }
+
+ return left
+}
+
+func (self *_parser) parseConditionlExpression() ast.Expression {
+ left := self.parseLogicalOrExpression()
+
+ if self.token == token.QUESTION_MARK {
+ self.next()
+ consequent := self.parseAssignmentExpression()
+ self.expect(token.COLON)
+ return &ast.ConditionalExpression{
+ Test: left,
+ Consequent: consequent,
+ Alternate: self.parseAssignmentExpression(),
+ }
+ }
+
+ return left
+}
+
+func (self *_parser) parseAssignmentExpression() ast.Expression {
+ left := self.parseConditionlExpression()
+ var operator token.Token
+ switch self.token {
+ case token.ASSIGN:
+ operator = self.token
+ case token.ADD_ASSIGN:
+ operator = token.PLUS
+ case token.SUBTRACT_ASSIGN:
+ operator = token.MINUS
+ case token.MULTIPLY_ASSIGN:
+ operator = token.MULTIPLY
+ case token.QUOTIENT_ASSIGN:
+ operator = token.SLASH
+ case token.REMAINDER_ASSIGN:
+ operator = token.REMAINDER
+ case token.AND_ASSIGN:
+ operator = token.AND
+ case token.AND_NOT_ASSIGN:
+ operator = token.AND_NOT
+ case token.OR_ASSIGN:
+ operator = token.OR
+ case token.EXCLUSIVE_OR_ASSIGN:
+ operator = token.EXCLUSIVE_OR
+ case token.SHIFT_LEFT_ASSIGN:
+ operator = token.SHIFT_LEFT
+ case token.SHIFT_RIGHT_ASSIGN:
+ operator = token.SHIFT_RIGHT
+ case token.UNSIGNED_SHIFT_RIGHT_ASSIGN:
+ operator = token.UNSIGNED_SHIFT_RIGHT
+ }
+
+ if operator != 0 {
+ idx := self.idx
+ self.next()
+ switch left.(type) {
+ case *ast.Identifier, *ast.DotExpression, *ast.BracketExpression:
+ default:
+ self.error(left.Idx0(), "Invalid left-hand side in assignment")
+ self.nextStatement()
+ return &ast.BadExpression{From: idx, To: self.idx}
+ }
+ return &ast.AssignExpression{
+ Left: left,
+ Operator: operator,
+ Right: self.parseAssignmentExpression(),
+ }
+ }
+
+ return left
+}
+
+func (self *_parser) parseExpression() ast.Expression {
+ next := self.parseAssignmentExpression
+ left := next()
+
+ if self.token == token.COMMA {
+ sequence := []ast.Expression{left}
+ for {
+ if self.token != token.COMMA {
+ break
+ }
+ self.next()
+ sequence = append(sequence, next())
+ }
+ return &ast.SequenceExpression{
+ Sequence: sequence,
+ }
+ }
+
+ return left
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser/lexer.go b/Godeps/_workspace/src/github.com/obscuren/otto/parser/lexer.go
new file mode 100644
index 000000000..bc3e74f77
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser/lexer.go
@@ -0,0 +1,819 @@
+package parser
+
+import (
+ "bytes"
+ "errors"
+ "fmt"
+ "regexp"
+ "strconv"
+ "strings"
+ "unicode"
+ "unicode/utf8"
+
+ "github.com/robertkrimen/otto/file"
+ "github.com/robertkrimen/otto/token"
+)
+
+type _chr struct {
+ value rune
+ width int
+}
+
+var matchIdentifier = regexp.MustCompile(`^[$_\p{L}][$_\p{L}\d}]*$`)
+
+func isDecimalDigit(chr rune) bool {
+ return '0' <= chr && chr <= '9'
+}
+
+func digitValue(chr rune) int {
+ switch {
+ case '0' <= chr && chr <= '9':
+ return int(chr - '0')
+ case 'a' <= chr && chr <= 'f':
+ return int(chr - 'a' + 10)
+ case 'A' <= chr && chr <= 'F':
+ return int(chr - 'A' + 10)
+ }
+ return 16 // Larger than any legal digit value
+}
+
+func isDigit(chr rune, base int) bool {
+ return digitValue(chr) < base
+}
+
+func isIdentifierStart(chr rune) bool {
+ return chr == '$' || chr == '_' || chr == '\\' ||
+ 'a' <= chr && chr <= 'z' || 'A' <= chr && chr <= 'Z' ||
+ chr >= utf8.RuneSelf && unicode.IsLetter(chr)
+}
+
+func isIdentifierPart(chr rune) bool {
+ return chr == '$' || chr == '_' || chr == '\\' ||
+ 'a' <= chr && chr <= 'z' || 'A' <= chr && chr <= 'Z' ||
+ '0' <= chr && chr <= '9' ||
+ chr >= utf8.RuneSelf && (unicode.IsLetter(chr) || unicode.IsDigit(chr))
+}
+
+func (self *_parser) scanIdentifier() (string, error) {
+ offset := self.chrOffset
+ parse := false
+ for isIdentifierPart(self.chr) {
+ if self.chr == '\\' {
+ distance := self.chrOffset - offset
+ self.read()
+ if self.chr != 'u' {
+ return "", fmt.Errorf("Invalid identifier escape character: %c (%s)", self.chr, string(self.chr))
+ }
+ parse = true
+ var value rune
+ for j := 0; j < 4; j++ {
+ self.read()
+ decimal, ok := hex2decimal(byte(self.chr))
+ if !ok {
+ return "", fmt.Errorf("Invalid identifier escape character: %c (%s)", self.chr, string(self.chr))
+ }
+ value = value<<4 | decimal
+ }
+ if value == '\\' {
+ return "", fmt.Errorf("Invalid identifier escape value: %c (%s)", value, string(value))
+ } else if distance == 0 {
+ if !isIdentifierStart(value) {
+ return "", fmt.Errorf("Invalid identifier escape value: %c (%s)", value, string(value))
+ }
+ } else if distance > 0 {
+ if !isIdentifierPart(value) {
+ return "", fmt.Errorf("Invalid identifier escape value: %c (%s)", value, string(value))
+ }
+ }
+ }
+ self.read()
+ }
+ literal := string(self.str[offset:self.chrOffset])
+ if parse {
+ return parseStringLiteral(literal)
+ }
+ return literal, nil
+}
+
+// 7.2
+func isLineWhiteSpace(chr rune) bool {
+ switch chr {
+ case '\u0009', '\u000b', '\u000c', '\u0020', '\u00a0', '\ufeff':
+ return true
+ case '\u000a', '\u000d', '\u2028', '\u2029':
+ return false
+ case '\u0085':
+ return false
+ }
+ return unicode.IsSpace(chr)
+}
+
+// 7.3
+func isLineTerminator(chr rune) bool {
+ switch chr {
+ case '\u000a', '\u000d', '\u2028', '\u2029':
+ return true
+ }
+ return false
+}
+
+func (self *_parser) scan() (tkn token.Token, literal string, idx file.Idx) {
+
+ self.implicitSemicolon = false
+
+ for {
+ self.skipWhiteSpace()
+
+ idx = self.idxOf(self.chrOffset)
+ insertSemicolon := false
+
+ switch chr := self.chr; {
+ case isIdentifierStart(chr):
+ var err error
+ literal, err = self.scanIdentifier()
+ if err != nil {
+ tkn = token.ILLEGAL
+ break
+ }
+ if len(literal) > 1 {
+ // Keywords are longer than 1 character, avoid lookup otherwise
+ var strict bool
+ tkn, strict = token.IsKeyword(literal)
+
+ switch tkn {
+
+ case 0: // Not a keyword
+ if literal == "true" || literal == "false" {
+ self.insertSemicolon = true
+ tkn = token.BOOLEAN
+ return
+ } else if literal == "null" {
+ self.insertSemicolon = true
+ tkn = token.NULL
+ return
+ }
+
+ case token.KEYWORD:
+ tkn = token.KEYWORD
+ if strict {
+ // TODO If strict and in strict mode, then this is not a break
+ break
+ }
+ return
+
+ case
+ token.THIS,
+ token.BREAK,
+ token.THROW, // A newline after a throw is not allowed, but we need to detect it
+ token.RETURN,
+ token.CONTINUE,
+ token.DEBUGGER:
+ self.insertSemicolon = true
+ return
+
+ default:
+ return
+
+ }
+ }
+ self.insertSemicolon = true
+ tkn = token.IDENTIFIER
+ return
+ case '0' <= chr && chr <= '9':
+ self.insertSemicolon = true
+ tkn, literal = self.scanNumericLiteral(false)
+ return
+ default:
+ self.read()
+ switch chr {
+ case -1:
+ if self.insertSemicolon {
+ self.insertSemicolon = false
+ self.implicitSemicolon = true
+ }
+ tkn = token.EOF
+ case '\r', '\n', '\u2028', '\u2029':
+ self.insertSemicolon = false
+ self.implicitSemicolon = true
+ continue
+ case ':':
+ tkn = token.COLON
+ case '.':
+ if digitValue(self.chr) < 10 {
+ insertSemicolon = true
+ tkn, literal = self.scanNumericLiteral(true)
+ } else {
+ tkn = token.PERIOD
+ }
+ case ',':
+ tkn = token.COMMA
+ case ';':
+ tkn = token.SEMICOLON
+ case '(':
+ tkn = token.LEFT_PARENTHESIS
+ case ')':
+ tkn = token.RIGHT_PARENTHESIS
+ insertSemicolon = true
+ case '[':
+ tkn = token.LEFT_BRACKET
+ case ']':
+ tkn = token.RIGHT_BRACKET
+ insertSemicolon = true
+ case '{':
+ tkn = token.LEFT_BRACE
+ case '}':
+ tkn = token.RIGHT_BRACE
+ insertSemicolon = true
+ case '+':
+ tkn = self.switch3(token.PLUS, token.ADD_ASSIGN, '+', token.INCREMENT)
+ if tkn == token.INCREMENT {
+ insertSemicolon = true
+ }
+ case '-':
+ tkn = self.switch3(token.MINUS, token.SUBTRACT_ASSIGN, '-', token.DECREMENT)
+ if tkn == token.DECREMENT {
+ insertSemicolon = true
+ }
+ case '*':
+ tkn = self.switch2(token.MULTIPLY, token.MULTIPLY_ASSIGN)
+ case '/':
+ if self.chr == '/' {
+ self.skipSingleLineComment()
+ continue
+ } else if self.chr == '*' {
+ self.skipMultiLineComment()
+ continue
+ } else {
+ // Could be division, could be RegExp literal
+ tkn = self.switch2(token.SLASH, token.QUOTIENT_ASSIGN)
+ insertSemicolon = true
+ }
+ case '%':
+ tkn = self.switch2(token.REMAINDER, token.REMAINDER_ASSIGN)
+ case '^':
+ tkn = self.switch2(token.EXCLUSIVE_OR, token.EXCLUSIVE_OR_ASSIGN)
+ case '<':
+ tkn = self.switch4(token.LESS, token.LESS_OR_EQUAL, '<', token.SHIFT_LEFT, token.SHIFT_LEFT_ASSIGN)
+ case '>':
+ tkn = self.switch6(token.GREATER, token.GREATER_OR_EQUAL, '>', token.SHIFT_RIGHT, token.SHIFT_RIGHT_ASSIGN, '>', token.UNSIGNED_SHIFT_RIGHT, token.UNSIGNED_SHIFT_RIGHT_ASSIGN)
+ case '=':
+ tkn = self.switch2(token.ASSIGN, token.EQUAL)
+ if tkn == token.EQUAL && self.chr == '=' {
+ self.read()
+ tkn = token.STRICT_EQUAL
+ }
+ case '!':
+ tkn = self.switch2(token.NOT, token.NOT_EQUAL)
+ if tkn == token.NOT_EQUAL && self.chr == '=' {
+ self.read()
+ tkn = token.STRICT_NOT_EQUAL
+ }
+ case '&':
+ if self.chr == '^' {
+ self.read()
+ tkn = self.switch2(token.AND_NOT, token.AND_NOT_ASSIGN)
+ } else {
+ tkn = self.switch3(token.AND, token.AND_ASSIGN, '&', token.LOGICAL_AND)
+ }
+ case '|':
+ tkn = self.switch3(token.OR, token.OR_ASSIGN, '|', token.LOGICAL_OR)
+ case '~':
+ tkn = token.BITWISE_NOT
+ case '?':
+ tkn = token.QUESTION_MARK
+ case '"', '\'':
+ insertSemicolon = true
+ tkn = token.STRING
+ var err error
+ literal, err = self.scanString(self.chrOffset - 1)
+ if err != nil {
+ tkn = token.ILLEGAL
+ }
+ default:
+ self.errorUnexpected(idx, chr)
+ tkn = token.ILLEGAL
+ }
+ }
+ self.insertSemicolon = insertSemicolon
+ return
+ }
+}
+
+func (self *_parser) switch2(tkn0, tkn1 token.Token) token.Token {
+ if self.chr == '=' {
+ self.read()
+ return tkn1
+ }
+ return tkn0
+}
+
+func (self *_parser) switch3(tkn0, tkn1 token.Token, chr2 rune, tkn2 token.Token) token.Token {
+ if self.chr == '=' {
+ self.read()
+ return tkn1
+ }
+ if self.chr == chr2 {
+ self.read()
+ return tkn2
+ }
+ return tkn0
+}
+
+func (self *_parser) switch4(tkn0, tkn1 token.Token, chr2 rune, tkn2, tkn3 token.Token) token.Token {
+ if self.chr == '=' {
+ self.read()
+ return tkn1
+ }
+ if self.chr == chr2 {
+ self.read()
+ if self.chr == '=' {
+ self.read()
+ return tkn3
+ }
+ return tkn2
+ }
+ return tkn0
+}
+
+func (self *_parser) switch6(tkn0, tkn1 token.Token, chr2 rune, tkn2, tkn3 token.Token, chr3 rune, tkn4, tkn5 token.Token) token.Token {
+ if self.chr == '=' {
+ self.read()
+ return tkn1
+ }
+ if self.chr == chr2 {
+ self.read()
+ if self.chr == '=' {
+ self.read()
+ return tkn3
+ }
+ if self.chr == chr3 {
+ self.read()
+ if self.chr == '=' {
+ self.read()
+ return tkn5
+ }
+ return tkn4
+ }
+ return tkn2
+ }
+ return tkn0
+}
+
+func (self *_parser) chrAt(index int) _chr {
+ value, width := utf8.DecodeRuneInString(self.str[index:])
+ return _chr{
+ value: value,
+ width: width,
+ }
+}
+
+func (self *_parser) _peek() rune {
+ if self.offset+1 < self.length {
+ return rune(self.str[self.offset+1])
+ }
+ return -1
+}
+
+func (self *_parser) read() {
+ if self.offset < self.length {
+ self.chrOffset = self.offset
+ chr, width := rune(self.str[self.offset]), 1
+ if chr >= utf8.RuneSelf { // !ASCII
+ chr, width = utf8.DecodeRuneInString(self.str[self.offset:])
+ if chr == utf8.RuneError && width == 1 {
+ self.error(self.chrOffset, "Invalid UTF-8 character")
+ }
+ }
+ self.offset += width
+ self.chr = chr
+ } else {
+ self.chrOffset = self.length
+ self.chr = -1 // EOF
+ }
+}
+
+// This is here since the functions are so similar
+func (self *_RegExp_parser) read() {
+ if self.offset < self.length {
+ self.chrOffset = self.offset
+ chr, width := rune(self.str[self.offset]), 1
+ if chr >= utf8.RuneSelf { // !ASCII
+ chr, width = utf8.DecodeRuneInString(self.str[self.offset:])
+ if chr == utf8.RuneError && width == 1 {
+ self.error(self.chrOffset, "Invalid UTF-8 character")
+ }
+ }
+ self.offset += width
+ self.chr = chr
+ } else {
+ self.chrOffset = self.length
+ self.chr = -1 // EOF
+ }
+}
+
+func (self *_parser) skipSingleLineComment() {
+ for self.chr != -1 {
+ self.read()
+ if isLineTerminator(self.chr) {
+ return
+ }
+ }
+}
+
+func (self *_parser) skipMultiLineComment() {
+ self.read()
+ for self.chr >= 0 {
+ chr := self.chr
+ self.read()
+ if chr == '*' && self.chr == '/' {
+ self.read()
+ return
+ }
+ }
+
+ self.errorUnexpected(0, self.chr)
+}
+
+func (self *_parser) skipWhiteSpace() {
+ for {
+ switch self.chr {
+ case ' ', '\t', '\f', '\v', '\u00a0', '\ufeff':
+ self.read()
+ continue
+ case '\r':
+ if self._peek() == '\n' {
+ self.read()
+ }
+ fallthrough
+ case '\u2028', '\u2029', '\n':
+ if self.insertSemicolon {
+ return
+ }
+ self.read()
+ continue
+ }
+ if self.chr >= utf8.RuneSelf {
+ if unicode.IsSpace(self.chr) {
+ self.read()
+ continue
+ }
+ }
+ break
+ }
+}
+
+func (self *_parser) skipLineWhiteSpace() {
+ for isLineWhiteSpace(self.chr) {
+ self.read()
+ }
+}
+
+func (self *_parser) scanMantissa(base int) {
+ for digitValue(self.chr) < base {
+ self.read()
+ }
+}
+
+func (self *_parser) scanEscape(quote rune) {
+
+ var length, base uint32
+ switch self.chr {
+ //case '0', '1', '2', '3', '4', '5', '6', '7':
+ // Octal:
+ // length, base, limit = 3, 8, 255
+ case 'a', 'b', 'f', 'n', 'r', 't', 'v', '\\', '"', '\'', '0':
+ self.read()
+ return
+ case '\r', '\n', '\u2028', '\u2029':
+ self.scanNewline()
+ return
+ case 'x':
+ self.read()
+ length, base = 2, 16
+ case 'u':
+ self.read()
+ length, base = 4, 16
+ default:
+ self.read() // Always make progress
+ return
+ }
+
+ var value uint32
+ for ; length > 0 && self.chr != quote && self.chr >= 0; length-- {
+ digit := uint32(digitValue(self.chr))
+ if digit >= base {
+ break
+ }
+ value = value*base + digit
+ self.read()
+ }
+}
+
+func (self *_parser) scanString(offset int) (string, error) {
+ // " ' /
+ quote := rune(self.str[offset])
+
+ for self.chr != quote {
+ chr := self.chr
+ if chr == '\n' || chr == '\r' || chr == '\u2028' || chr == '\u2029' || chr < 0 {
+ goto newline
+ }
+ self.read()
+ if chr == '\\' {
+ if quote == '/' {
+ if self.chr == '\n' || self.chr == '\r' || self.chr == '\u2028' || self.chr == '\u2029' || self.chr < 0 {
+ goto newline
+ }
+ self.read()
+ } else {
+ self.scanEscape(quote)
+ }
+ } else if chr == '[' && quote == '/' {
+ // Allow a slash (/) in a bracket character class ([...])
+ // TODO Fix this, this is hacky...
+ quote = -1
+ } else if chr == ']' && quote == -1 {
+ quote = '/'
+ }
+ }
+
+ // " ' /
+ self.read()
+
+ return string(self.str[offset:self.chrOffset]), nil
+
+newline:
+ self.scanNewline()
+ err := "String not terminated"
+ if quote == '/' {
+ err = "Invalid regular expression: missing /"
+ self.error(self.idxOf(offset), err)
+ }
+ return "", errors.New(err)
+}
+
+func (self *_parser) scanNewline() {
+ if self.chr == '\r' {
+ self.read()
+ if self.chr != '\n' {
+ return
+ }
+ }
+ self.read()
+}
+
+func hex2decimal(chr byte) (value rune, ok bool) {
+ {
+ chr := rune(chr)
+ switch {
+ case '0' <= chr && chr <= '9':
+ return chr - '0', true
+ case 'a' <= chr && chr <= 'f':
+ return chr - 'a' + 10, true
+ case 'A' <= chr && chr <= 'F':
+ return chr - 'A' + 10, true
+ }
+ return
+ }
+}
+
+func parseNumberLiteral(literal string) (value interface{}, err error) {
+ // TODO Is Uint okay? What about -MAX_UINT
+ value, err = strconv.ParseInt(literal, 0, 64)
+ if err == nil {
+ return
+ }
+
+ parseIntErr := err // Save this first error, just in case
+
+ value, err = strconv.ParseFloat(literal, 64)
+ if err == nil {
+ return
+ } else if err.(*strconv.NumError).Err == strconv.ErrRange {
+ // Infinity, etc.
+ return value, nil
+ }
+
+ err = parseIntErr
+
+ if err.(*strconv.NumError).Err == strconv.ErrRange {
+ if len(literal) > 2 && literal[0] == '0' && (literal[1] == 'X' || literal[1] == 'x') {
+ // Could just be a very large number (e.g. 0x8000000000000000)
+ var value float64
+ literal = literal[2:]
+ for _, chr := range literal {
+ digit := digitValue(chr)
+ if digit >= 16 {
+ goto error
+ }
+ value = value*16 + float64(digit)
+ }
+ return value, nil
+ }
+ }
+
+error:
+ return nil, errors.New("Illegal numeric literal")
+}
+
+func parseStringLiteral(literal string) (string, error) {
+ // Best case scenario...
+ if literal == "" {
+ return "", nil
+ }
+
+ // Slightly less-best case scenario...
+ if !strings.ContainsRune(literal, '\\') {
+ return literal, nil
+ }
+
+ str := literal
+ buffer := bytes.NewBuffer(make([]byte, 0, 3*len(literal)/2))
+
+ for len(str) > 0 {
+ switch chr := str[0]; {
+ // We do not explicitly handle the case of the quote
+ // value, which can be: " ' /
+ // This assumes we're already passed a partially well-formed literal
+ case chr >= utf8.RuneSelf:
+ chr, size := utf8.DecodeRuneInString(str)
+ buffer.WriteRune(chr)
+ str = str[size:]
+ continue
+ case chr != '\\':
+ buffer.WriteByte(chr)
+ str = str[1:]
+ continue
+ }
+
+ if len(str) <= 1 {
+ panic("len(str) <= 1")
+ }
+ chr := str[1]
+ var value rune
+ if chr >= utf8.RuneSelf {
+ str = str[1:]
+ var size int
+ value, size = utf8.DecodeRuneInString(str)
+ str = str[size:] // \ + <character>
+ } else {
+ str = str[2:] // \<character>
+ switch chr {
+ case 'b':
+ value = '\b'
+ case 'f':
+ value = '\f'
+ case 'n':
+ value = '\n'
+ case 'r':
+ value = '\r'
+ case 't':
+ value = '\t'
+ case 'v':
+ value = '\v'
+ case 'x', 'u':
+ size := 0
+ switch chr {
+ case 'x':
+ size = 2
+ case 'u':
+ size = 4
+ }
+ if len(str) < size {
+ return "", fmt.Errorf("invalid escape: \\%s: len(%q) != %d", string(chr), str, size)
+ }
+ for j := 0; j < size; j++ {
+ decimal, ok := hex2decimal(str[j])
+ if !ok {
+ return "", fmt.Errorf("invalid escape: \\%s: %q", string(chr), str[:size])
+ }
+ value = value<<4 | decimal
+ }
+ str = str[size:]
+ if chr == 'x' {
+ break
+ }
+ if value > utf8.MaxRune {
+ panic("value > utf8.MaxRune")
+ }
+ case '0':
+ if len(str) == 0 || '0' > str[0] || str[0] > '7' {
+ value = 0
+ break
+ }
+ fallthrough
+ case '1', '2', '3', '4', '5', '6', '7':
+ // TODO strict
+ value = rune(chr) - '0'
+ j := 0
+ for ; j < 2; j++ {
+ if len(str) < j+1 {
+ break
+ }
+ chr := str[j]
+ if '0' > chr || chr > '7' {
+ break
+ }
+ decimal := rune(str[j]) - '0'
+ value = (value << 3) | decimal
+ }
+ str = str[j:]
+ case '\\':
+ value = '\\'
+ case '\'', '"':
+ value = rune(chr)
+ case '\r':
+ if len(str) > 0 {
+ if str[0] == '\n' {
+ str = str[1:]
+ }
+ }
+ fallthrough
+ case '\n':
+ continue
+ default:
+ value = rune(chr)
+ }
+ }
+ buffer.WriteRune(value)
+ }
+
+ return buffer.String(), nil
+}
+
+func (self *_parser) scanNumericLiteral(decimalPoint bool) (token.Token, string) {
+
+ offset := self.chrOffset
+ tkn := token.NUMBER
+
+ if decimalPoint {
+ offset--
+ self.scanMantissa(10)
+ goto exponent
+ }
+
+ if self.chr == '0' {
+ offset := self.chrOffset
+ self.read()
+ if self.chr == 'x' || self.chr == 'X' {
+ // Hexadecimal
+ self.read()
+ if isDigit(self.chr, 16) {
+ self.read()
+ } else {
+ return token.ILLEGAL, self.str[offset:self.chrOffset]
+ }
+ self.scanMantissa(16)
+
+ if self.chrOffset-offset <= 2 {
+ // Only "0x" or "0X"
+ self.error(0, "Illegal hexadecimal number")
+ }
+
+ goto hexadecimal
+ } else if self.chr == '.' {
+ // Float
+ goto float
+ } else {
+ // Octal, Float
+ if self.chr == 'e' || self.chr == 'E' {
+ goto exponent
+ }
+ self.scanMantissa(8)
+ if self.chr == '8' || self.chr == '9' {
+ return token.ILLEGAL, self.str[offset:self.chrOffset]
+ }
+ goto octal
+ }
+ }
+
+ self.scanMantissa(10)
+
+float:
+ if self.chr == '.' {
+ self.read()
+ self.scanMantissa(10)
+ }
+
+exponent:
+ if self.chr == 'e' || self.chr == 'E' {
+ self.read()
+ if self.chr == '-' || self.chr == '+' {
+ self.read()
+ }
+ if isDecimalDigit(self.chr) {
+ self.read()
+ self.scanMantissa(10)
+ } else {
+ return token.ILLEGAL, self.str[offset:self.chrOffset]
+ }
+ }
+
+hexadecimal:
+octal:
+ if isIdentifierStart(self.chr) || isDecimalDigit(self.chr) {
+ return token.ILLEGAL, self.str[offset:self.chrOffset]
+ }
+
+ return tkn, self.str[offset:self.chrOffset]
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser/lexer_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/parser/lexer_test.go
new file mode 100644
index 000000000..37eb7a464
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser/lexer_test.go
@@ -0,0 +1,380 @@
+package parser
+
+import (
+ "../terst"
+ "testing"
+
+ "github.com/robertkrimen/otto/file"
+ "github.com/robertkrimen/otto/token"
+)
+
+var tt = terst.Terst
+var is = terst.Is
+
+func TestLexer(t *testing.T) {
+ tt(t, func() {
+ setup := func(src string) *_parser {
+ parser := newParser("", src)
+ return parser
+ }
+
+ test := func(src string, test ...interface{}) {
+ parser := setup(src)
+ for len(test) > 0 {
+ tkn, literal, idx := parser.scan()
+ if len(test) > 0 {
+ is(tkn, test[0].(token.Token))
+ test = test[1:]
+ }
+ if len(test) > 0 {
+ is(literal, test[0].(string))
+ test = test[1:]
+ }
+ if len(test) > 0 {
+ // FIXME terst, Fix this so that cast to file.Idx is not necessary?
+ is(idx, file.Idx(test[0].(int)))
+ test = test[1:]
+ }
+ }
+ }
+
+ test("",
+ token.EOF, "", 1,
+ )
+
+ test("1",
+ token.NUMBER, "1", 1,
+ token.EOF, "", 2,
+ )
+
+ test(".0",
+ token.NUMBER, ".0", 1,
+ token.EOF, "", 3,
+ )
+
+ test("abc",
+ token.IDENTIFIER, "abc", 1,
+ token.EOF, "", 4,
+ )
+
+ test("abc(1)",
+ token.IDENTIFIER, "abc", 1,
+ token.LEFT_PARENTHESIS, "", 4,
+ token.NUMBER, "1", 5,
+ token.RIGHT_PARENTHESIS, "", 6,
+ token.EOF, "", 7,
+ )
+
+ test(".",
+ token.PERIOD, "", 1,
+ token.EOF, "", 2,
+ )
+
+ test("===.",
+ token.STRICT_EQUAL, "", 1,
+ token.PERIOD, "", 4,
+ token.EOF, "", 5,
+ )
+
+ test(">>>=.0",
+ token.UNSIGNED_SHIFT_RIGHT_ASSIGN, "", 1,
+ token.NUMBER, ".0", 5,
+ token.EOF, "", 7,
+ )
+
+ test(">>>=0.0.",
+ token.UNSIGNED_SHIFT_RIGHT_ASSIGN, "", 1,
+ token.NUMBER, "0.0", 5,
+ token.PERIOD, "", 8,
+ token.EOF, "", 9,
+ )
+
+ test("\"abc\"",
+ token.STRING, "\"abc\"", 1,
+ token.EOF, "", 6,
+ )
+
+ test("abc = //",
+ token.IDENTIFIER, "abc", 1,
+ token.ASSIGN, "", 5,
+ token.EOF, "", 9,
+ )
+
+ test("abc = 1 / 2",
+ token.IDENTIFIER, "abc", 1,
+ token.ASSIGN, "", 5,
+ token.NUMBER, "1", 7,
+ token.SLASH, "", 9,
+ token.NUMBER, "2", 11,
+ token.EOF, "", 12,
+ )
+
+ test("xyzzy = 'Nothing happens.'",
+ token.IDENTIFIER, "xyzzy", 1,
+ token.ASSIGN, "", 7,
+ token.STRING, "'Nothing happens.'", 9,
+ token.EOF, "", 27,
+ )
+
+ test("abc = !false",
+ token.IDENTIFIER, "abc", 1,
+ token.ASSIGN, "", 5,
+ token.NOT, "", 7,
+ token.BOOLEAN, "false", 8,
+ token.EOF, "", 13,
+ )
+
+ test("abc = !!true",
+ token.IDENTIFIER, "abc", 1,
+ token.ASSIGN, "", 5,
+ token.NOT, "", 7,
+ token.NOT, "", 8,
+ token.BOOLEAN, "true", 9,
+ token.EOF, "", 13,
+ )
+
+ test("abc *= 1",
+ token.IDENTIFIER, "abc", 1,
+ token.MULTIPLY_ASSIGN, "", 5,
+ token.NUMBER, "1", 8,
+ token.EOF, "", 9,
+ )
+
+ test("if 1 else",
+ token.IF, "if", 1,
+ token.NUMBER, "1", 4,
+ token.ELSE, "else", 6,
+ token.EOF, "", 10,
+ )
+
+ test("null",
+ token.NULL, "null", 1,
+ token.EOF, "", 5,
+ )
+
+ test(`"\u007a\x79\u000a\x78"`,
+ token.STRING, "\"\\u007a\\x79\\u000a\\x78\"", 1,
+ token.EOF, "", 23,
+ )
+
+ test(`"[First line \
+Second line \
+ Third line\
+. ]"
+ `,
+ token.STRING, "\"[First line \\\nSecond line \\\n Third line\\\n. ]\"", 1,
+ token.EOF, "", 53,
+ )
+
+ test("/",
+ token.SLASH, "", 1,
+ token.EOF, "", 2,
+ )
+
+ test("var abc = \"abc\uFFFFabc\"",
+ token.VAR, "var", 1,
+ token.IDENTIFIER, "abc", 5,
+ token.ASSIGN, "", 9,
+ token.STRING, "\"abc\uFFFFabc\"", 11,
+ token.EOF, "", 22,
+ )
+
+ test(`'\t' === '\r'`,
+ token.STRING, "'\\t'", 1,
+ token.STRICT_EQUAL, "", 6,
+ token.STRING, "'\\r'", 10,
+ token.EOF, "", 14,
+ )
+
+ test(`var \u0024 = 1`,
+ token.VAR, "var", 1,
+ token.IDENTIFIER, "$", 5,
+ token.ASSIGN, "", 12,
+ token.NUMBER, "1", 14,
+ token.EOF, "", 15,
+ )
+
+ test("10e10000",
+ token.NUMBER, "10e10000", 1,
+ token.EOF, "", 9,
+ )
+
+ test(`var if var class`,
+ token.VAR, "var", 1,
+ token.IF, "if", 5,
+ token.VAR, "var", 8,
+ token.KEYWORD, "class", 12,
+ token.EOF, "", 17,
+ )
+
+ test(`-0`,
+ token.MINUS, "", 1,
+ token.NUMBER, "0", 2,
+ token.EOF, "", 3,
+ )
+
+ test(`.01`,
+ token.NUMBER, ".01", 1,
+ token.EOF, "", 4,
+ )
+
+ test(`.01e+2`,
+ token.NUMBER, ".01e+2", 1,
+ token.EOF, "", 7,
+ )
+
+ test(";",
+ token.SEMICOLON, "", 1,
+ token.EOF, "", 2,
+ )
+
+ test(";;",
+ token.SEMICOLON, "", 1,
+ token.SEMICOLON, "", 2,
+ token.EOF, "", 3,
+ )
+
+ test("//",
+ token.EOF, "", 3,
+ )
+
+ test(";;//",
+ token.SEMICOLON, "", 1,
+ token.SEMICOLON, "", 2,
+ token.EOF, "", 5,
+ )
+
+ test("1",
+ token.NUMBER, "1", 1,
+ )
+
+ test("12 123",
+ token.NUMBER, "12", 1,
+ token.NUMBER, "123", 4,
+ )
+
+ test("1.2 12.3",
+ token.NUMBER, "1.2", 1,
+ token.NUMBER, "12.3", 5,
+ )
+
+ test("/ /=",
+ token.SLASH, "", 1,
+ token.QUOTIENT_ASSIGN, "", 3,
+ )
+
+ test(`"abc"`,
+ token.STRING, `"abc"`, 1,
+ )
+
+ test(`'abc'`,
+ token.STRING, `'abc'`, 1,
+ )
+
+ test("++",
+ token.INCREMENT, "", 1,
+ )
+
+ test(">",
+ token.GREATER, "", 1,
+ )
+
+ test(">=",
+ token.GREATER_OR_EQUAL, "", 1,
+ )
+
+ test(">>",
+ token.SHIFT_RIGHT, "", 1,
+ )
+
+ test(">>=",
+ token.SHIFT_RIGHT_ASSIGN, "", 1,
+ )
+
+ test(">>>",
+ token.UNSIGNED_SHIFT_RIGHT, "", 1,
+ )
+
+ test(">>>=",
+ token.UNSIGNED_SHIFT_RIGHT_ASSIGN, "", 1,
+ )
+
+ test("1 \"abc\"",
+ token.NUMBER, "1", 1,
+ token.STRING, "\"abc\"", 3,
+ )
+
+ test(",",
+ token.COMMA, "", 1,
+ )
+
+ test("1, \"abc\"",
+ token.NUMBER, "1", 1,
+ token.COMMA, "", 2,
+ token.STRING, "\"abc\"", 4,
+ )
+
+ test("new abc(1, 3.14159);",
+ token.NEW, "new", 1,
+ token.IDENTIFIER, "abc", 5,
+ token.LEFT_PARENTHESIS, "", 8,
+ token.NUMBER, "1", 9,
+ token.COMMA, "", 10,
+ token.NUMBER, "3.14159", 12,
+ token.RIGHT_PARENTHESIS, "", 19,
+ token.SEMICOLON, "", 20,
+ )
+
+ test("1 == \"1\"",
+ token.NUMBER, "1", 1,
+ token.EQUAL, "", 3,
+ token.STRING, "\"1\"", 6,
+ )
+
+ test("1\n[]\n",
+ token.NUMBER, "1", 1,
+ token.LEFT_BRACKET, "", 3,
+ token.RIGHT_BRACKET, "", 4,
+ )
+
+ test("1\ufeff[]\ufeff",
+ token.NUMBER, "1", 1,
+ token.LEFT_BRACKET, "", 5,
+ token.RIGHT_BRACKET, "", 6,
+ )
+
+ // ILLEGAL
+
+ test(`3ea`,
+ token.ILLEGAL, "3e", 1,
+ token.IDENTIFIER, "a", 3,
+ token.EOF, "", 4,
+ )
+
+ test(`3in`,
+ token.ILLEGAL, "3", 1,
+ token.IN, "in", 2,
+ token.EOF, "", 4,
+ )
+
+ test("\"Hello\nWorld\"",
+ token.ILLEGAL, "", 1,
+ token.IDENTIFIER, "World", 8,
+ token.ILLEGAL, "", 13,
+ token.EOF, "", 14,
+ )
+
+ test("\u203f = 10",
+ token.ILLEGAL, "", 1,
+ token.ASSIGN, "", 5,
+ token.NUMBER, "10", 7,
+ token.EOF, "", 9,
+ )
+
+ test(`"\x0G"`,
+ token.STRING, "\"\\x0G\"", 1,
+ token.EOF, "", 7,
+ )
+
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser/marshal_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/parser/marshal_test.go
new file mode 100644
index 000000000..f54cd2d4f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser/marshal_test.go
@@ -0,0 +1,930 @@
+package parser
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "os"
+ "reflect"
+ "strings"
+ "testing"
+
+ "github.com/robertkrimen/otto/ast"
+)
+
+func marshal(name string, children ...interface{}) interface{} {
+ if len(children) == 1 {
+ if name == "" {
+ return testMarshalNode(children[0])
+ }
+ return map[string]interface{}{
+ name: children[0],
+ }
+ }
+ map_ := map[string]interface{}{}
+ length := len(children) / 2
+ for i := 0; i < length; i++ {
+ name := children[i*2].(string)
+ value := children[i*2+1]
+ map_[name] = value
+ }
+ if name == "" {
+ return map_
+ }
+ return map[string]interface{}{
+ name: map_,
+ }
+}
+
+func testMarshalNode(node interface{}) interface{} {
+ switch node := node.(type) {
+
+ // Expression
+
+ case *ast.ArrayLiteral:
+ return marshal("Array", testMarshalNode(node.Value))
+
+ case *ast.AssignExpression:
+ return marshal("Assign",
+ "Left", testMarshalNode(node.Left),
+ "Right", testMarshalNode(node.Right),
+ )
+
+ case *ast.BinaryExpression:
+ return marshal("BinaryExpression",
+ "Operator", node.Operator.String(),
+ "Left", testMarshalNode(node.Left),
+ "Right", testMarshalNode(node.Right),
+ )
+
+ case *ast.BooleanLiteral:
+ return marshal("Literal", node.Value)
+
+ case *ast.CallExpression:
+ return marshal("Call",
+ "Callee", testMarshalNode(node.Callee),
+ "ArgumentList", testMarshalNode(node.ArgumentList),
+ )
+
+ case *ast.ConditionalExpression:
+ return marshal("Conditional",
+ "Test", testMarshalNode(node.Test),
+ "Consequent", testMarshalNode(node.Consequent),
+ "Alternate", testMarshalNode(node.Alternate),
+ )
+
+ case *ast.DotExpression:
+ return marshal("Dot",
+ "Left", testMarshalNode(node.Left),
+ "Member", node.Identifier.Name,
+ )
+
+ case *ast.NewExpression:
+ return marshal("New",
+ "Callee", testMarshalNode(node.Callee),
+ "ArgumentList", testMarshalNode(node.ArgumentList),
+ )
+
+ case *ast.NullLiteral:
+ return marshal("Literal", nil)
+
+ case *ast.NumberLiteral:
+ return marshal("Literal", node.Value)
+
+ case *ast.ObjectLiteral:
+ return marshal("Object", testMarshalNode(node.Value))
+
+ case *ast.RegExpLiteral:
+ return marshal("Literal", node.Literal)
+
+ case *ast.StringLiteral:
+ return marshal("Literal", node.Literal)
+
+ case *ast.VariableExpression:
+ return []interface{}{node.Name, testMarshalNode(node.Initializer)}
+
+ // Statement
+
+ case *ast.Program:
+ return testMarshalNode(node.Body)
+
+ case *ast.BlockStatement:
+ return marshal("BlockStatement", testMarshalNode(node.List))
+
+ case *ast.EmptyStatement:
+ return "EmptyStatement"
+
+ case *ast.ExpressionStatement:
+ return testMarshalNode(node.Expression)
+
+ case *ast.ForInStatement:
+ return marshal("ForIn",
+ "Into", marshal("", node.Into),
+ "Source", marshal("", node.Source),
+ "Body", marshal("", node.Body),
+ )
+
+ case *ast.FunctionLiteral:
+ return marshal("Function", testMarshalNode(node.Body))
+
+ case *ast.Identifier:
+ return marshal("Identifier", node.Name)
+
+ case *ast.IfStatement:
+ if_ := marshal("",
+ "Test", testMarshalNode(node.Test),
+ "Consequent", testMarshalNode(node.Consequent),
+ ).(map[string]interface{})
+ if node.Alternate != nil {
+ if_["Alternate"] = testMarshalNode(node.Alternate)
+ }
+ return marshal("If", if_)
+
+ case *ast.LabelledStatement:
+ return marshal("Label",
+ "Name", node.Label.Name,
+ "Statement", testMarshalNode(node.Statement),
+ )
+ case ast.Property:
+ return marshal("",
+ "Key", node.Key,
+ "Value", testMarshalNode(node.Value),
+ )
+
+ case *ast.ReturnStatement:
+ return marshal("Return", testMarshalNode(node.Argument))
+
+ case *ast.SequenceExpression:
+ return marshal("Sequence", testMarshalNode(node.Sequence))
+
+ case *ast.ThrowStatement:
+ return marshal("Throw", testMarshalNode(node.Argument))
+
+ case *ast.VariableStatement:
+ return marshal("Var", testMarshalNode(node.List))
+
+ }
+
+ {
+ value := reflect.ValueOf(node)
+ if value.Kind() == reflect.Slice {
+ tmp0 := []interface{}{}
+ for index := 0; index < value.Len(); index++ {
+ tmp0 = append(tmp0, testMarshalNode(value.Index(index).Interface()))
+ }
+ return tmp0
+ }
+ }
+
+ if node != nil {
+ fmt.Fprintf(os.Stderr, "testMarshalNode(%T)\n", node)
+ }
+
+ return nil
+}
+
+func testMarshal(node interface{}) string {
+ value, err := json.Marshal(testMarshalNode(node))
+ if err != nil {
+ panic(err)
+ }
+ return string(value)
+}
+
+func TestParserAST(t *testing.T) {
+ tt(t, func() {
+
+ test := func(inputOutput string) {
+ match := matchBeforeAfterSeparator.FindStringIndex(inputOutput)
+ input := strings.TrimSpace(inputOutput[0:match[0]])
+ wantOutput := strings.TrimSpace(inputOutput[match[1]:])
+ _, program, err := testParse(input)
+ is(err, nil)
+ haveOutput := testMarshal(program)
+ tmp0, tmp1 := bytes.Buffer{}, bytes.Buffer{}
+ json.Indent(&tmp0, []byte(haveOutput), "\t\t", " ")
+ json.Indent(&tmp1, []byte(wantOutput), "\t\t", " ")
+ is("\n\t\t"+tmp0.String(), "\n\t\t"+tmp1.String())
+ }
+
+ test(`
+ ---
+[]
+ `)
+
+ test(`
+ ;
+ ---
+[
+ "EmptyStatement"
+]
+ `)
+
+ test(`
+ ;;;
+ ---
+[
+ "EmptyStatement",
+ "EmptyStatement",
+ "EmptyStatement"
+]
+ `)
+
+ test(`
+ 1; true; abc; "abc"; null;
+ ---
+[
+ {
+ "Literal": 1
+ },
+ {
+ "Literal": true
+ },
+ {
+ "Identifier": "abc"
+ },
+ {
+ "Literal": "\"abc\""
+ },
+ {
+ "Literal": null
+ }
+]
+ `)
+
+ test(`
+ { 1; null; 3.14159; ; }
+ ---
+[
+ {
+ "BlockStatement": [
+ {
+ "Literal": 1
+ },
+ {
+ "Literal": null
+ },
+ {
+ "Literal": 3.14159
+ },
+ "EmptyStatement"
+ ]
+ }
+]
+ `)
+
+ test(`
+ new abc();
+ ---
+[
+ {
+ "New": {
+ "ArgumentList": [],
+ "Callee": {
+ "Identifier": "abc"
+ }
+ }
+ }
+]
+ `)
+
+ test(`
+ new abc(1, 3.14159)
+ ---
+[
+ {
+ "New": {
+ "ArgumentList": [
+ {
+ "Literal": 1
+ },
+ {
+ "Literal": 3.14159
+ }
+ ],
+ "Callee": {
+ "Identifier": "abc"
+ }
+ }
+ }
+]
+ `)
+
+ test(`
+ true ? false : true
+ ---
+[
+ {
+ "Conditional": {
+ "Alternate": {
+ "Literal": true
+ },
+ "Consequent": {
+ "Literal": false
+ },
+ "Test": {
+ "Literal": true
+ }
+ }
+ }
+]
+ `)
+
+ test(`
+ true || false
+ ---
+[
+ {
+ "BinaryExpression": {
+ "Left": {
+ "Literal": true
+ },
+ "Operator": "||",
+ "Right": {
+ "Literal": false
+ }
+ }
+ }
+]
+ `)
+
+ test(`
+ 0 + { abc: true }
+ ---
+[
+ {
+ "BinaryExpression": {
+ "Left": {
+ "Literal": 0
+ },
+ "Operator": "+",
+ "Right": {
+ "Object": [
+ {
+ "Key": "abc",
+ "Value": {
+ "Literal": true
+ }
+ }
+ ]
+ }
+ }
+ }
+]
+ `)
+
+ test(`
+ 1 == "1"
+ ---
+[
+ {
+ "BinaryExpression": {
+ "Left": {
+ "Literal": 1
+ },
+ "Operator": "==",
+ "Right": {
+ "Literal": "\"1\""
+ }
+ }
+ }
+]
+ `)
+
+ test(`
+ abc(1)
+ ---
+[
+ {
+ "Call": {
+ "ArgumentList": [
+ {
+ "Literal": 1
+ }
+ ],
+ "Callee": {
+ "Identifier": "abc"
+ }
+ }
+ }
+]
+ `)
+
+ test(`
+ Math.pow(3, 2)
+ ---
+[
+ {
+ "Call": {
+ "ArgumentList": [
+ {
+ "Literal": 3
+ },
+ {
+ "Literal": 2
+ }
+ ],
+ "Callee": {
+ "Dot": {
+ "Left": {
+ "Identifier": "Math"
+ },
+ "Member": "pow"
+ }
+ }
+ }
+ }
+]
+ `)
+
+ test(`
+ 1, 2, 3
+ ---
+[
+ {
+ "Sequence": [
+ {
+ "Literal": 1
+ },
+ {
+ "Literal": 2
+ },
+ {
+ "Literal": 3
+ }
+ ]
+ }
+]
+ `)
+
+ test(`
+ / abc / gim;
+ ---
+[
+ {
+ "Literal": "/ abc / gim"
+ }
+]
+ `)
+
+ test(`
+ if (0)
+ 1;
+ ---
+[
+ {
+ "If": {
+ "Consequent": {
+ "Literal": 1
+ },
+ "Test": {
+ "Literal": 0
+ }
+ }
+ }
+]
+ `)
+
+ test(`
+ 0+function(){
+ return;
+ }
+ ---
+[
+ {
+ "BinaryExpression": {
+ "Left": {
+ "Literal": 0
+ },
+ "Operator": "+",
+ "Right": {
+ "Function": {
+ "BlockStatement": [
+ {
+ "Return": null
+ }
+ ]
+ }
+ }
+ }
+ }
+]
+ `)
+
+ test(`
+ xyzzy // Ignore it
+ // Ignore this
+ // And this
+ /* And all..
+
+
+
+ ... of this!
+ */
+ "Nothing happens."
+ // And finally this
+ ---
+[
+ {
+ "Identifier": "xyzzy"
+ },
+ {
+ "Literal": "\"Nothing happens.\""
+ }
+]
+ `)
+
+ test(`
+ ((x & (x = 1)) !== 0)
+ ---
+[
+ {
+ "BinaryExpression": {
+ "Left": {
+ "BinaryExpression": {
+ "Left": {
+ "Identifier": "x"
+ },
+ "Operator": "\u0026",
+ "Right": {
+ "Assign": {
+ "Left": {
+ "Identifier": "x"
+ },
+ "Right": {
+ "Literal": 1
+ }
+ }
+ }
+ }
+ },
+ "Operator": "!==",
+ "Right": {
+ "Literal": 0
+ }
+ }
+ }
+]
+ `)
+
+ test(`
+ { abc: 'def' }
+ ---
+[
+ {
+ "BlockStatement": [
+ {
+ "Label": {
+ "Name": "abc",
+ "Statement": {
+ "Literal": "'def'"
+ }
+ }
+ }
+ ]
+ }
+]
+ `)
+
+ test(`
+ // This is not an object, this is a string literal with a label!
+ ({ abc: 'def' })
+ ---
+[
+ {
+ "Object": [
+ {
+ "Key": "abc",
+ "Value": {
+ "Literal": "'def'"
+ }
+ }
+ ]
+ }
+]
+ `)
+
+ test(`
+ [,]
+ ---
+[
+ {
+ "Array": [
+ null
+ ]
+ }
+]
+ `)
+
+ test(`
+ [,,]
+ ---
+[
+ {
+ "Array": [
+ null,
+ null
+ ]
+ }
+]
+ `)
+
+ test(`
+ ({ get abc() {} })
+ ---
+[
+ {
+ "Object": [
+ {
+ "Key": "abc",
+ "Value": {
+ "Function": {
+ "BlockStatement": []
+ }
+ }
+ }
+ ]
+ }
+]
+ `)
+
+ test(`
+ /abc/.source
+ ---
+[
+ {
+ "Dot": {
+ "Left": {
+ "Literal": "/abc/"
+ },
+ "Member": "source"
+ }
+ }
+]
+ `)
+
+ test(`
+ xyzzy
+
+ throw new TypeError("Nothing happens.")
+ ---
+[
+ {
+ "Identifier": "xyzzy"
+ },
+ {
+ "Throw": {
+ "New": {
+ "ArgumentList": [
+ {
+ "Literal": "\"Nothing happens.\""
+ }
+ ],
+ "Callee": {
+ "Identifier": "TypeError"
+ }
+ }
+ }
+ }
+]
+ `)
+
+ // When run, this will call a type error to be thrown
+ // This is essentially the same as:
+ //
+ // var abc = 1(function(){})()
+ //
+ test(`
+ var abc = 1
+ (function(){
+ })()
+ ---
+[
+ {
+ "Var": [
+ [
+ "abc",
+ {
+ "Call": {
+ "ArgumentList": [],
+ "Callee": {
+ "Call": {
+ "ArgumentList": [
+ {
+ "Function": {
+ "BlockStatement": []
+ }
+ }
+ ],
+ "Callee": {
+ "Literal": 1
+ }
+ }
+ }
+ }
+ }
+ ]
+ ]
+ }
+]
+ `)
+
+ test(`
+ "use strict"
+ ---
+[
+ {
+ "Literal": "\"use strict\""
+ }
+]
+ `)
+
+ test(`
+ "use strict"
+ abc = 1 + 2 + 11
+ ---
+[
+ {
+ "Literal": "\"use strict\""
+ },
+ {
+ "Assign": {
+ "Left": {
+ "Identifier": "abc"
+ },
+ "Right": {
+ "BinaryExpression": {
+ "Left": {
+ "BinaryExpression": {
+ "Left": {
+ "Literal": 1
+ },
+ "Operator": "+",
+ "Right": {
+ "Literal": 2
+ }
+ }
+ },
+ "Operator": "+",
+ "Right": {
+ "Literal": 11
+ }
+ }
+ }
+ }
+ }
+]
+ `)
+
+ test(`
+ abc = function() { 'use strict' }
+ ---
+[
+ {
+ "Assign": {
+ "Left": {
+ "Identifier": "abc"
+ },
+ "Right": {
+ "Function": {
+ "BlockStatement": [
+ {
+ "Literal": "'use strict'"
+ }
+ ]
+ }
+ }
+ }
+ }
+]
+ `)
+
+ test(`
+ for (var abc in def) {
+ }
+ ---
+[
+ {
+ "ForIn": {
+ "Body": {
+ "BlockStatement": []
+ },
+ "Into": [
+ "abc",
+ null
+ ],
+ "Source": {
+ "Identifier": "def"
+ }
+ }
+ }
+]
+ `)
+
+ test(`
+ abc = {
+ '"': "'",
+ "'": '"',
+ }
+ ---
+[
+ {
+ "Assign": {
+ "Left": {
+ "Identifier": "abc"
+ },
+ "Right": {
+ "Object": [
+ {
+ "Key": "\"",
+ "Value": {
+ "Literal": "\"'\""
+ }
+ },
+ {
+ "Key": "'",
+ "Value": {
+ "Literal": "'\"'"
+ }
+ }
+ ]
+ }
+ }
+ }
+]
+ `)
+
+ return
+
+ test(`
+ if (!abc && abc.jkl(def) && abc[0] === +abc[0] && abc.length < ghi) {
+ }
+ ---
+[
+ {
+ "If": {
+ "Consequent": {
+ "BlockStatement": []
+ },
+ "Test": {
+ "BinaryExpression": {
+ "Left": {
+ "BinaryExpression": {
+ "Left": {
+ "BinaryExpression": {
+ "Left": null,
+ "Operator": "\u0026\u0026",
+ "Right": {
+ "Call": {
+ "ArgumentList": [
+ {
+ "Identifier": "def"
+ }
+ ],
+ "Callee": {
+ "Dot": {
+ "Left": {
+ "Identifier": "abc"
+ },
+ "Member": "jkl"
+ }
+ }
+ }
+ }
+ }
+ },
+ "Operator": "\u0026\u0026",
+ "Right": {
+ "BinaryExpression": {
+ "Left": null,
+ "Operator": "===",
+ "Right": null
+ }
+ }
+ }
+ },
+ "Operator": "\u0026\u0026",
+ "Right": {
+ "BinaryExpression": {
+ "Left": {
+ "Dot": {
+ "Left": {
+ "Identifier": "abc"
+ },
+ "Member": "length"
+ }
+ },
+ "Operator": "\u003c",
+ "Right": {
+ "Identifier": "ghi"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+]
+ `)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser/parser.go b/Godeps/_workspace/src/github.com/obscuren/otto/parser/parser.go
new file mode 100644
index 000000000..37146aee9
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser/parser.go
@@ -0,0 +1,270 @@
+/*
+Package parser implements a parser for JavaScript.
+
+ import (
+ "github.com/robertkrimen/otto/parser"
+ )
+
+Parse and return an AST
+
+ filename := "" // A filename is optional
+ src := `
+ // Sample xyzzy example
+ (function(){
+ if (3.14159 > 0) {
+ console.log("Hello, World.");
+ return;
+ }
+
+ var xyzzy = NaN;
+ console.log("Nothing happens.");
+ return xyzzy;
+ })();
+ `
+
+ // Parse some JavaScript, yielding a *ast.Program and/or an ErrorList
+ program, err := parser.ParseFile(nil, filename, src, 0)
+
+Warning
+
+The parser and AST interfaces are still works-in-progress (particularly where
+node types are concerned) and may change in the future.
+
+*/
+package parser
+
+import (
+ "bytes"
+ "errors"
+ "io"
+ "io/ioutil"
+
+ "github.com/robertkrimen/otto/ast"
+ "github.com/robertkrimen/otto/file"
+ "github.com/robertkrimen/otto/token"
+)
+
+// A Mode value is a set of flags (or 0). They control optional parser functionality.
+type Mode uint
+
+const (
+ IgnoreRegExpErrors Mode = 1 << iota // Ignore RegExp compatibility errors (allow backtracking)
+)
+
+type _parser struct {
+ filename string
+ str string
+ length int
+ base int
+
+ chr rune // The current character
+ chrOffset int // The offset of current character
+ offset int // The offset after current character (may be greater than 1)
+
+ idx file.Idx // The index of token
+ token token.Token // The token
+ literal string // The literal of the token, if any
+
+ scope *_scope
+ insertSemicolon bool // If we see a newline, then insert an implicit semicolon
+ implicitSemicolon bool // An implicit semicolon exists
+
+ errors ErrorList
+
+ recover struct {
+ // Scratch when trying to seek to the next statement, etc.
+ idx file.Idx
+ count int
+ }
+
+ mode Mode
+}
+
+func _newParser(filename, src string, base int) *_parser {
+ return &_parser{
+ chr: ' ', // This is set so we can start scanning by skipping whitespace
+ str: src,
+ length: len(src),
+ base: base,
+ }
+}
+
+func newParser(filename, src string) *_parser {
+ return _newParser(filename, src, 1)
+}
+
+func ReadSource(filename string, src interface{}) ([]byte, error) {
+ if src != nil {
+ switch src := src.(type) {
+ case string:
+ return []byte(src), nil
+ case []byte:
+ return src, nil
+ case *bytes.Buffer:
+ if src != nil {
+ return src.Bytes(), nil
+ }
+ case io.Reader:
+ var bfr bytes.Buffer
+ if _, err := io.Copy(&bfr, src); err != nil {
+ return nil, err
+ }
+ return bfr.Bytes(), nil
+ }
+ return nil, errors.New("invalid source")
+ }
+ return ioutil.ReadFile(filename)
+}
+
+// ParseFile parses the source code of a single JavaScript/ECMAScript source file and returns
+// the corresponding ast.Program node.
+//
+// If fileSet == nil, ParseFile parses source without a FileSet.
+// If fileSet != nil, ParseFile first adds filename and src to fileSet.
+//
+// The filename argument is optional and is used for labelling errors, etc.
+//
+// src may be a string, a byte slice, a bytes.Buffer, or an io.Reader, but it MUST always be in UTF-8.
+//
+// // Parse some JavaScript, yielding a *ast.Program and/or an ErrorList
+// program, err := parser.ParseFile(nil, "", `if (abc > 1) {}`, 0)
+//
+func ParseFile(fileSet *file.FileSet, filename string, src interface{}, mode Mode) (*ast.Program, error) {
+ str, err := ReadSource(filename, src)
+ if err != nil {
+ return nil, err
+ }
+ {
+ str := string(str)
+
+ base := 1
+ if fileSet != nil {
+ base = fileSet.AddFile(filename, str)
+ }
+
+ parser := _newParser(filename, str, base)
+ parser.mode = mode
+ return parser.parse()
+ }
+}
+
+// ParseFunction parses a given parameter list and body as a function and returns the
+// corresponding ast.FunctionLiteral node.
+//
+// The parameter list, if any, should be a comma-separated list of identifiers.
+//
+func ParseFunction(parameterList, body string) (*ast.FunctionLiteral, error) {
+
+ src := "(function(" + parameterList + ") {\n" + body + "\n})"
+
+ parser := _newParser("", src, 1)
+ program, err := parser.parse()
+ if err != nil {
+ return nil, err
+ }
+
+ return program.Body[0].(*ast.ExpressionStatement).Expression.(*ast.FunctionLiteral), nil
+}
+
+func (self *_parser) slice(idx0, idx1 file.Idx) string {
+ from := int(idx0) - self.base
+ to := int(idx1) - self.base
+ if from >= 0 && to <= len(self.str) {
+ return self.str[from:to]
+ }
+
+ return ""
+}
+
+func (self *_parser) parse() (*ast.Program, error) {
+ self.next()
+ program := self.parseProgram()
+ if false {
+ self.errors.Sort()
+ }
+ return program, self.errors.Err()
+}
+
+func (self *_parser) next() {
+ self.token, self.literal, self.idx = self.scan()
+}
+
+func (self *_parser) optionalSemicolon() {
+ if self.token == token.SEMICOLON {
+ self.next()
+ return
+ }
+
+ if self.implicitSemicolon {
+ self.implicitSemicolon = false
+ return
+ }
+
+ if self.token != token.EOF && self.token != token.RIGHT_BRACE {
+ self.expect(token.SEMICOLON)
+ }
+}
+
+func (self *_parser) semicolon() {
+ if self.token != token.RIGHT_PARENTHESIS && self.token != token.RIGHT_BRACE {
+ if self.implicitSemicolon {
+ self.implicitSemicolon = false
+ return
+ }
+
+ self.expect(token.SEMICOLON)
+ }
+}
+
+func (self *_parser) idxOf(offset int) file.Idx {
+ return file.Idx(self.base + offset)
+}
+
+func (self *_parser) expect(value token.Token) file.Idx {
+ idx := self.idx
+ if self.token != value {
+ self.errorUnexpectedToken(self.token)
+ }
+ self.next()
+ return idx
+}
+
+func lineCount(str string) (int, int) {
+ line, last := 0, -1
+ pair := false
+ for index, chr := range str {
+ switch chr {
+ case '\r':
+ line += 1
+ last = index
+ pair = true
+ continue
+ case '\n':
+ if !pair {
+ line += 1
+ }
+ last = index
+ case '\u2028', '\u2029':
+ line += 1
+ last = index + 2
+ }
+ pair = false
+ }
+ return line, last
+}
+
+func (self *_parser) position(idx file.Idx) file.Position {
+ position := file.Position{}
+ offset := int(idx) - self.base
+ str := self.str[:offset]
+ position.Filename = self.filename
+ line, last := lineCount(str)
+ position.Line = 1 + line
+ if last >= 0 {
+ position.Column = offset - last
+ } else {
+ position.Column = 1 + len(str)
+ }
+
+ return position
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser/parser_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/parser/parser_test.go
new file mode 100644
index 000000000..8f9457745
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser/parser_test.go
@@ -0,0 +1,1004 @@
+package parser
+
+import (
+ "errors"
+ "regexp"
+ "strings"
+ "testing"
+
+ "github.com/robertkrimen/otto/ast"
+ "github.com/robertkrimen/otto/file"
+)
+
+func firstErr(err error) error {
+ switch err := err.(type) {
+ case ErrorList:
+ return err[0]
+ }
+ return err
+}
+
+var matchBeforeAfterSeparator = regexp.MustCompile(`(?m)^[ \t]*---$`)
+
+func testParse(src string) (parser *_parser, program *ast.Program, err error) {
+ defer func() {
+ if tmp := recover(); tmp != nil {
+ switch tmp := tmp.(type) {
+ case string:
+ if strings.HasPrefix(tmp, "SyntaxError:") {
+ parser = nil
+ program = nil
+ err = errors.New(tmp)
+ return
+ }
+ }
+ panic(tmp)
+ }
+ }()
+ parser = newParser("", src)
+ program, err = parser.parse()
+ return
+}
+
+func TestParseFile(t *testing.T) {
+ tt(t, func() {
+ _, err := ParseFile(nil, "", `/abc/`, 0)
+ is(err, nil)
+
+ _, err = ParseFile(nil, "", `/(?!def)abc/`, IgnoreRegExpErrors)
+ is(err, nil)
+
+ _, err = ParseFile(nil, "", `/(?!def)abc/`, 0)
+ is(err, "(anonymous): Line 1:1 Invalid regular expression: re2: Invalid (?!) <lookahead>")
+
+ _, err = ParseFile(nil, "", `/(?!def)abc/; return`, IgnoreRegExpErrors)
+ is(err, "(anonymous): Line 1:15 Illegal return statement")
+ })
+}
+
+func TestParseFunction(t *testing.T) {
+ tt(t, func() {
+ test := func(prm, bdy string, expect interface{}) *ast.FunctionLiteral {
+ function, err := ParseFunction(prm, bdy)
+ is(firstErr(err), expect)
+ return function
+ }
+
+ test("a, b,c,d", "", nil)
+
+ test("a, b;,c,d", "", "(anonymous): Line 1:15 Unexpected token ;")
+
+ test("this", "", "(anonymous): Line 1:11 Unexpected token this")
+
+ test("a, b, c, null", "", "(anonymous): Line 1:20 Unexpected token null")
+
+ test("a, b,c,d", "return;", nil)
+
+ test("a, b,c,d", "break;", "(anonymous): Line 2:1 Illegal break statement")
+
+ test("a, b,c,d", "{}", nil)
+ })
+}
+
+func TestParserErr(t *testing.T) {
+ tt(t, func() {
+ test := func(input string, expect interface{}) (*ast.Program, *_parser) {
+ parser := newParser("", input)
+ program, err := parser.parse()
+ is(firstErr(err), expect)
+ return program, parser
+ }
+
+ program, parser := test("", nil)
+
+ program, parser = test(`
+ var abc;
+ break; do {
+ } while(true);
+ `, "(anonymous): Line 3:9 Illegal break statement")
+ {
+ stmt := program.Body[1].(*ast.BadStatement)
+ is(parser.position(stmt.From).Column, 9)
+ is(parser.position(stmt.To).Column, 16)
+ is(parser.slice(stmt.From, stmt.To), "break; ")
+ }
+
+ test("{", "(anonymous): Line 1:2 Unexpected end of input")
+
+ test("}", "(anonymous): Line 1:1 Unexpected token }")
+
+ test("3ea", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("3in", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("3in []", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("3e", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("3e+", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("3e-", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("3x", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("3x0", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("0x", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("09", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("018", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("01.0", "(anonymous): Line 1:3 Unexpected number")
+
+ test("01a", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("0x3in[]", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("\"Hello\nWorld\"", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("\u203f = 10", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("x\\", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("x\\\\", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("x\\u005c", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("x\\u002a", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("x\\\\u002a", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("/\n", "(anonymous): Line 1:1 Invalid regular expression: missing /")
+
+ test("var x = /(s/g", "(anonymous): Line 1:9 Invalid regular expression: Unterminated group")
+
+ test("0 = 1", "(anonymous): Line 1:1 Invalid left-hand side in assignment")
+
+ test("func() = 1", "(anonymous): Line 1:1 Invalid left-hand side in assignment")
+
+ test("(1 + 1) = 2", "(anonymous): Line 1:2 Invalid left-hand side in assignment")
+
+ test("1++", "(anonymous): Line 1:2 Invalid left-hand side in assignment")
+
+ test("1--", "(anonymous): Line 1:2 Invalid left-hand side in assignment")
+
+ test("--1", "(anonymous): Line 1:1 Invalid left-hand side in assignment")
+
+ test("for((1 + 1) in abc) def();", "(anonymous): Line 1:1 Invalid left-hand side in for-in")
+
+ test("[", "(anonymous): Line 1:2 Unexpected end of input")
+
+ test("[,", "(anonymous): Line 1:3 Unexpected end of input")
+
+ test("1 + {", "(anonymous): Line 1:6 Unexpected end of input")
+
+ test("1 + { abc:abc", "(anonymous): Line 1:14 Unexpected end of input")
+
+ test("1 + { abc:abc,", "(anonymous): Line 1:15 Unexpected end of input")
+
+ test("var abc = /\n/", "(anonymous): Line 1:11 Invalid regular expression: missing /")
+
+ test("var abc = \"\n", "(anonymous): Line 1:11 Unexpected token ILLEGAL")
+
+ test("var if = 0", "(anonymous): Line 1:5 Unexpected token if")
+
+ test("abc + 0 = 1", "(anonymous): Line 1:1 Invalid left-hand side in assignment")
+
+ test("+abc = 1", "(anonymous): Line 1:1 Invalid left-hand side in assignment")
+
+ test("1 + (", "(anonymous): Line 1:6 Unexpected end of input")
+
+ test("\n\n\n{", "(anonymous): Line 4:2 Unexpected end of input")
+
+ test("\n/* Some multiline\ncomment */\n)", "(anonymous): Line 4:1 Unexpected token )")
+
+ // TODO
+ //{ set 1 }
+ //{ get 2 }
+ //({ set: s(if) { } })
+ //({ set s(.) { } })
+ //({ set: s() { } })
+ //({ set: s(a, b) { } })
+ //({ get: g(d) { } })
+ //({ get i() { }, i: 42 })
+ //({ i: 42, get i() { } })
+ //({ set i(x) { }, i: 42 })
+ //({ i: 42, set i(x) { } })
+ //({ get i() { }, get i() { } })
+ //({ set i(x) { }, set i(x) { } })
+
+ test("function abc(if) {}", "(anonymous): Line 1:14 Unexpected token if")
+
+ test("function abc(true) {}", "(anonymous): Line 1:14 Unexpected token true")
+
+ test("function abc(false) {}", "(anonymous): Line 1:14 Unexpected token false")
+
+ test("function abc(null) {}", "(anonymous): Line 1:14 Unexpected token null")
+
+ test("function null() {}", "(anonymous): Line 1:10 Unexpected token null")
+
+ test("function true() {}", "(anonymous): Line 1:10 Unexpected token true")
+
+ test("function false() {}", "(anonymous): Line 1:10 Unexpected token false")
+
+ test("function if() {}", "(anonymous): Line 1:10 Unexpected token if")
+
+ test("a b;", "(anonymous): Line 1:3 Unexpected identifier")
+
+ test("if.a", "(anonymous): Line 1:3 Unexpected token .")
+
+ test("a if", "(anonymous): Line 1:3 Unexpected token if")
+
+ test("a class", "(anonymous): Line 1:3 Unexpected reserved word")
+
+ test("break\n", "(anonymous): Line 1:1 Illegal break statement")
+
+ test("break 1;", "(anonymous): Line 1:7 Unexpected number")
+
+ test("for (;;) { break 1; }", "(anonymous): Line 1:18 Unexpected number")
+
+ test("continue\n", "(anonymous): Line 1:1 Illegal continue statement")
+
+ test("continue 1;", "(anonymous): Line 1:10 Unexpected number")
+
+ test("for (;;) { continue 1; }", "(anonymous): Line 1:21 Unexpected number")
+
+ test("throw", "(anonymous): Line 1:1 Unexpected end of input")
+
+ test("throw;", "(anonymous): Line 1:6 Unexpected token ;")
+
+ test("throw \n", "(anonymous): Line 1:1 Unexpected end of input")
+
+ test("for (var abc, def in {});", "(anonymous): Line 1:19 Unexpected token in")
+
+ test("for ((abc in {});;);", nil)
+
+ test("for ((abc in {}));", "(anonymous): Line 1:17 Unexpected token )")
+
+ test("for (+abc in {});", "(anonymous): Line 1:1 Invalid left-hand side in for-in")
+
+ test("if (false)", "(anonymous): Line 1:11 Unexpected end of input")
+
+ test("if (false) abc(); else", "(anonymous): Line 1:23 Unexpected end of input")
+
+ test("do", "(anonymous): Line 1:3 Unexpected end of input")
+
+ test("while (false)", "(anonymous): Line 1:14 Unexpected end of input")
+
+ test("for (;;)", "(anonymous): Line 1:9 Unexpected end of input")
+
+ test("with (abc)", "(anonymous): Line 1:11 Unexpected end of input")
+
+ test("try {}", "(anonymous): Line 1:1 Missing catch or finally after try")
+
+ test("try {} catch {}", "(anonymous): Line 1:14 Unexpected token {")
+
+ test("try {} catch () {}", "(anonymous): Line 1:15 Unexpected token )")
+
+ test("\u203f = 1", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ // TODO
+ // const x = 12, y;
+ // const x, y = 12;
+ // const x;
+ // if(true) let a = 1;
+ // if(true) const a = 1;
+
+ test(`new abc()."def"`, "(anonymous): Line 1:11 Unexpected string")
+
+ test("/*", "(anonymous): Line 1:3 Unexpected end of input")
+
+ test("/**", "(anonymous): Line 1:4 Unexpected end of input")
+
+ test("/*\n\n\n", "(anonymous): Line 4:1 Unexpected end of input")
+
+ test("/*\n\n\n*", "(anonymous): Line 4:2 Unexpected end of input")
+
+ test("/*abc", "(anonymous): Line 1:6 Unexpected end of input")
+
+ test("/*abc *", "(anonymous): Line 1:9 Unexpected end of input")
+
+ test("\n]", "(anonymous): Line 2:1 Unexpected token ]")
+
+ test("\r\n]", "(anonymous): Line 2:1 Unexpected token ]")
+
+ test("\n\r]", "(anonymous): Line 3:1 Unexpected token ]")
+
+ test("//\r\n]", "(anonymous): Line 2:1 Unexpected token ]")
+
+ test("//\n\r]", "(anonymous): Line 3:1 Unexpected token ]")
+
+ test("/abc\\\n/", "(anonymous): Line 1:1 Invalid regular expression: missing /")
+
+ test("//\r \n]", "(anonymous): Line 3:1 Unexpected token ]")
+
+ test("/*\r\n*/]", "(anonymous): Line 2:3 Unexpected token ]")
+
+ test("/*\r \n*/]", "(anonymous): Line 3:3 Unexpected token ]")
+
+ test("\\\\", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("\\u005c", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("\\abc", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("\\u0000", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("\\u200c = []", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("\\u200D = []", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test(`"\`, "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test(`"\u`, "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("return", "(anonymous): Line 1:1 Illegal return statement")
+
+ test("continue", "(anonymous): Line 1:1 Illegal continue statement")
+
+ test("break", "(anonymous): Line 1:1 Illegal break statement")
+
+ test("switch (abc) { default: continue; }", "(anonymous): Line 1:25 Illegal continue statement")
+
+ test("do { abc } *", "(anonymous): Line 1:12 Unexpected token *")
+
+ test("while (true) { break abc; }", "(anonymous): Line 1:16 Undefined label 'abc'")
+
+ test("while (true) { continue abc; }", "(anonymous): Line 1:16 Undefined label 'abc'")
+
+ test("abc: while (true) { (function(){ break abc; }); }", "(anonymous): Line 1:34 Undefined label 'abc'")
+
+ test("abc: while (true) { (function(){ abc: break abc; }); }", nil)
+
+ test("abc: while (true) { (function(){ continue abc; }); }", "(anonymous): Line 1:34 Undefined label 'abc'")
+
+ test(`abc: if (0) break abc; else {}`, nil)
+
+ test(`abc: if (0) { break abc; } else {}`, nil)
+
+ test(`abc: if (0) { break abc } else {}`, nil)
+
+ test("abc: while (true) { abc: while (true) {} }", "(anonymous): Line 1:21 Label 'abc' already exists")
+
+ if false {
+ // TODO When strict mode is implemented
+ test("(function () { 'use strict'; delete abc; }())", "")
+ }
+
+ test("_: _: while (true) {]", "(anonymous): Line 1:4 Label '_' already exists")
+
+ test("_:\n_:\nwhile (true) {]", "(anonymous): Line 2:1 Label '_' already exists")
+
+ test("_:\n _:\nwhile (true) {]", "(anonymous): Line 2:4 Label '_' already exists")
+
+ test("/Xyzzy(?!Nothing happens)/",
+ "(anonymous): Line 1:1 Invalid regular expression: re2: Invalid (?!) <lookahead>")
+
+ test("function(){}", "(anonymous): Line 1:9 Unexpected token (")
+
+ test("\n/*/", "(anonymous): Line 2:4 Unexpected end of input")
+
+ test("/*/.source", "(anonymous): Line 1:11 Unexpected end of input")
+
+ test("/\\1/.source", "(anonymous): Line 1:1 Invalid regular expression: re2: Invalid \\1 <backreference>")
+
+ test("var class", "(anonymous): Line 1:5 Unexpected reserved word")
+
+ test("var if", "(anonymous): Line 1:5 Unexpected token if")
+
+ test("object Object", "(anonymous): Line 1:8 Unexpected identifier")
+
+ test("[object Object]", "(anonymous): Line 1:9 Unexpected identifier")
+
+ test("\\u0xyz", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test(`for (var abc, def in {}) {}`, "(anonymous): Line 1:19 Unexpected token in")
+
+ test(`for (abc, def in {}) {}`, "(anonymous): Line 1:1 Invalid left-hand side in for-in")
+
+ test(`for (var abc=def, ghi=("abc" in {}); true;) {}`, nil)
+
+ {
+ // Semicolon insertion
+
+ test("this\nif (1);", nil)
+
+ test("while (1) { break\nif (1); }", nil)
+
+ test("throw\nif (1);", "(anonymous): Line 1:1 Illegal newline after throw")
+
+ test("(function(){ return\nif (1); })", nil)
+
+ test("while (1) { continue\nif (1); }", nil)
+
+ test("debugger\nif (1);", nil)
+ }
+
+ { // Reserved words
+
+ test("class", "(anonymous): Line 1:1 Unexpected reserved word")
+ test("abc.class = 1", nil)
+ test("var class;", "(anonymous): Line 1:5 Unexpected reserved word")
+
+ test("const", "(anonymous): Line 1:1 Unexpected reserved word")
+ test("abc.const = 1", nil)
+ test("var const;", "(anonymous): Line 1:5 Unexpected reserved word")
+
+ test("enum", "(anonymous): Line 1:1 Unexpected reserved word")
+ test("abc.enum = 1", nil)
+ test("var enum;", "(anonymous): Line 1:5 Unexpected reserved word")
+
+ test("export", "(anonymous): Line 1:1 Unexpected reserved word")
+ test("abc.export = 1", nil)
+ test("var export;", "(anonymous): Line 1:5 Unexpected reserved word")
+
+ test("extends", "(anonymous): Line 1:1 Unexpected reserved word")
+ test("abc.extends = 1", nil)
+ test("var extends;", "(anonymous): Line 1:5 Unexpected reserved word")
+
+ test("import", "(anonymous): Line 1:1 Unexpected reserved word")
+ test("abc.import = 1", nil)
+ test("var import;", "(anonymous): Line 1:5 Unexpected reserved word")
+
+ test("super", "(anonymous): Line 1:1 Unexpected reserved word")
+ test("abc.super = 1", nil)
+ test("var super;", "(anonymous): Line 1:5 Unexpected reserved word")
+ }
+
+ { // Reserved words (strict)
+
+ test(`implements`, nil)
+ test(`abc.implements = 1`, nil)
+ test(`var implements;`, nil)
+
+ test(`interface`, nil)
+ test(`abc.interface = 1`, nil)
+ test(`var interface;`, nil)
+
+ test(`let`, nil)
+ test(`abc.let = 1`, nil)
+ test(`var let;`, nil)
+
+ test(`package`, nil)
+ test(`abc.package = 1`, nil)
+ test(`var package;`, nil)
+
+ test(`private`, nil)
+ test(`abc.private = 1`, nil)
+ test(`var private;`, nil)
+
+ test(`protected`, nil)
+ test(`abc.protected = 1`, nil)
+ test(`var protected;`, nil)
+
+ test(`public`, nil)
+ test(`abc.public = 1`, nil)
+ test(`var public;`, nil)
+
+ test(`static`, nil)
+ test(`abc.static = 1`, nil)
+ test(`var static;`, nil)
+
+ test(`yield`, nil)
+ test(`abc.yield = 1`, nil)
+ test(`var yield;`, nil)
+ }
+ })
+}
+
+func TestParser(t *testing.T) {
+ tt(t, func() {
+ test := func(source string, chk interface{}) *ast.Program {
+ _, program, err := testParse(source)
+ is(firstErr(err), chk)
+ return program
+ }
+
+ test(`
+ abc
+ --
+ []
+ `, "(anonymous): Line 3:13 Invalid left-hand side in assignment")
+
+ test(`
+ abc--
+ []
+ `, nil)
+
+ test("1\n[]\n", "(anonymous): Line 2:2 Unexpected token ]")
+
+ test(`
+ function abc() {
+ }
+ abc()
+ `, nil)
+
+ program := test("", nil)
+
+ test("//", nil)
+
+ test("/* */", nil)
+
+ test("/** **/", nil)
+
+ test("/*****/", nil)
+
+ test("/*", "(anonymous): Line 1:3 Unexpected end of input")
+
+ test("#", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("/**/#", "(anonymous): Line 1:5 Unexpected token ILLEGAL")
+
+ test("new +", "(anonymous): Line 1:5 Unexpected token +")
+
+ program = test(";", nil)
+ is(len(program.Body), 1)
+ is(program.Body[0].(*ast.EmptyStatement).Semicolon, file.Idx(1))
+
+ program = test(";;", nil)
+ is(len(program.Body), 2)
+ is(program.Body[0].(*ast.EmptyStatement).Semicolon, file.Idx(1))
+ is(program.Body[1].(*ast.EmptyStatement).Semicolon, file.Idx(2))
+
+ program = test("1.2", nil)
+ is(len(program.Body), 1)
+ is(program.Body[0].(*ast.ExpressionStatement).Expression.(*ast.NumberLiteral).Literal, "1.2")
+
+ program = test("/* */1.2", nil)
+ is(len(program.Body), 1)
+ is(program.Body[0].(*ast.ExpressionStatement).Expression.(*ast.NumberLiteral).Literal, "1.2")
+
+ program = test("\n", nil)
+ is(len(program.Body), 0)
+
+ test(`
+ if (0) {
+ abc = 0
+ }
+ else abc = 0
+ `, nil)
+
+ test("if (0) abc = 0 else abc = 0", "(anonymous): Line 1:16 Unexpected token else")
+
+ test(`
+ if (0) {
+ abc = 0
+ } else abc = 0
+ `, nil)
+
+ test(`
+ if (0) {
+ abc = 1
+ } else {
+ }
+ `, nil)
+
+ test(`
+ do {
+ } while (true)
+ `, nil)
+
+ test(`
+ try {
+ } finally {
+ }
+ `, nil)
+
+ test(`
+ try {
+ } catch (abc) {
+ } finally {
+ }
+ `, nil)
+
+ test(`
+ try {
+ }
+ catch (abc) {
+ }
+ finally {
+ }
+ `, nil)
+
+ test(`try {} catch (abc) {} finally {}`, nil)
+
+ test(`
+ do {
+ do {
+ } while (0)
+ } while (0)
+ `, nil)
+
+ test(`
+ (function(){
+ try {
+ if (
+ 1
+ ) {
+ return 1
+ }
+ return 0
+ } finally {
+ }
+ })()
+ `, nil)
+
+ test("abc = ''\ndef", nil)
+
+ test("abc = 1\ndef", nil)
+
+ test("abc = Math\ndef", nil)
+
+ test(`"\'"`, nil)
+
+ test(`
+ abc = function(){
+ }
+ abc = 0
+ `, nil)
+
+ test("abc.null = 0", nil)
+
+ test("0x41", nil)
+
+ test(`"\d"`, nil)
+
+ test(`(function(){return this})`, nil)
+
+ test(`
+ Object.defineProperty(Array.prototype, "0", {
+ value: 100,
+ writable: false,
+ configurable: true
+ });
+ abc = [101];
+ abc.hasOwnProperty("0") && abc[0] === 101;
+ `, nil)
+
+ test(`new abc()`, nil)
+ test(`new {}`, nil)
+
+ test(`
+ limit = 4
+ result = 0
+ while (limit) {
+ limit = limit - 1
+ if (limit) {
+ }
+ else {
+ break
+ }
+ result = result + 1
+ }
+ `, nil)
+
+ test(`
+ while (0) {
+ if (0) {
+ continue
+ }
+ }
+ `, nil)
+
+ test("var \u0061\u0062\u0063 = 0", nil)
+
+ // 7_3_1
+ test("var test7_3_1\nabc = 66;", nil)
+ test("var test7_3_1\u2028abc = 66;", nil)
+
+ // 7_3_3
+ test("//\u2028 =;", "(anonymous): Line 2:2 Unexpected token =")
+
+ // 7_3_10
+ test("var abc = \u2029;", "(anonymous): Line 2:1 Unexpected token ;")
+ test("var abc = \\u2029;", "(anonymous): Line 1:11 Unexpected token ILLEGAL")
+ test("var \\u0061\\u0062\\u0063 = 0;", nil)
+
+ test("'", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ test("'\nstr\ning\n'", "(anonymous): Line 1:1 Unexpected token ILLEGAL")
+
+ // S7.6_A4.3_T1
+ test(`var $\u0030 = 0;`, nil)
+
+ // S7.6.1.1_A1.1
+ test(`switch = 1`, "(anonymous): Line 1:8 Unexpected token =")
+
+ // S7.8.3_A2.1_T1
+ test(`.0 === 0.0`, nil)
+
+ // 7.8.5-1
+ test("var regExp = /\\\rn/;", "(anonymous): Line 1:14 Invalid regular expression: missing /")
+
+ // S7.8.5_A1.1_T2
+ test("var regExp = /=/;", nil)
+
+ // S7.8.5_A1.2_T1
+ test("/*/", "(anonymous): Line 1:4 Unexpected end of input")
+
+ // Sbp_7.9_A9_T3
+ test(`
+ do {
+ ;
+ } while (false) true
+ `, nil)
+
+ // S7.9_A10_T10
+ test(`
+ {a:1
+ } 3
+ `, nil)
+
+ test(`
+ abc
+ ++def
+ `, nil)
+
+ // S7.9_A5.2_T1
+ test(`
+ for(false;false
+ ) {
+ break;
+ }
+ `, "(anonymous): Line 3:13 Unexpected token )")
+
+ // S7.9_A9_T8
+ test(`
+ do {};
+ while (false)
+ `, "(anonymous): Line 2:18 Unexpected token ;")
+
+ // S8.4_A5
+ test(`
+ "x\0y"
+ `, nil)
+
+ // S9.3.1_A6_T1
+ test(`
+ 10e10000
+ `, nil)
+
+ // 10.4.2-1-5
+ test(`
+ "abc\
+ def"
+ `, nil)
+
+ test("'\\\n'", nil)
+
+ test("'\\\r\n'", nil)
+
+ //// 11.13.1-1-1
+ test("42 = 42;", "(anonymous): Line 1:1 Invalid left-hand side in assignment")
+
+ // S11.13.2_A4.2_T1.3
+ test(`
+ abc /= "1"
+ `, nil)
+
+ // 12.1-1
+ test(`
+ try{};catch(){}
+ `, "(anonymous): Line 2:13 Missing catch or finally after try")
+
+ // 12.1-3
+ test(`
+ try{};finally{}
+ `, "(anonymous): Line 2:13 Missing catch or finally after try")
+
+ // S12.6.3_A11.1_T3
+ test(`
+ while (true) {
+ break abc;
+ }
+ `, "(anonymous): Line 3:17 Undefined label 'abc'")
+
+ // S15.3_A2_T1
+ test(`var x / = 1;`, "(anonymous): Line 1:7 Unexpected token /")
+
+ test(`
+ function abc() {
+ if (0)
+ return;
+ else {
+ }
+ }
+ `, nil)
+
+ test("//\u2028 var =;", "(anonymous): Line 2:6 Unexpected token =")
+
+ test(`
+ throw
+ {}
+ `, "(anonymous): Line 2:13 Illegal newline after throw")
+
+ // S7.6.1.1_A1.11
+ test(`
+ function = 1
+ `, "(anonymous): Line 2:22 Unexpected token =")
+
+ // S7.8.3_A1.2_T1
+ test(`0e1`, nil)
+
+ test("abc = 1; abc\n++", "(anonymous): Line 2:3 Unexpected end of input")
+
+ // ---
+
+ test("({ get abc() {} })", nil)
+
+ test(`for (abc.def in {}) {}`, nil)
+
+ test(`while (true) { break }`, nil)
+
+ test(`while (true) { continue }`, nil)
+
+ test(`abc=/^(?:(\w+:)\/{2}(\w+(?:\.\w+)*\/?)|(.{0,2}\/{1}))?([/.]*?(?:[^?]+)?\/)?((?:[^/?]+)\.(\w+))(?:\?(\S+)?)?$/,def=/^(?:(\w+:)\/{2})|(.{0,2}\/{1})?([/.]*?(?:[^?]+)?\/?)?$/`, nil)
+
+ test(`(function() { try {} catch (err) {} finally {} return })`, nil)
+
+ test(`0xde0b6b3a7640080.toFixed(0)`, nil)
+
+ test(`/[^-._0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u37f-\u1fff\u200c-\u200d\u203f\u2040\u2070-\u218f]/`, nil)
+
+ test(`/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE-\uFFFF]/`, nil)
+
+ test("var abc = 1;\ufeff", nil)
+
+ test("\ufeff/* var abc = 1; */", nil)
+
+ test(`if (-0x8000000000000000<=abc&&abc<=0x8000000000000000) {}`, nil)
+
+ test(`(function(){debugger;return this;})`, nil)
+
+ test(`
+
+ `, nil)
+
+ test(`
+ var abc = ""
+ debugger
+ `, nil)
+
+ test(`
+ var abc = /\[\]$/
+ debugger
+ `, nil)
+
+ test(`
+ var abc = 1 /
+ 2
+ debugger
+ `, nil)
+ })
+}
+
+func Test_parseStringLiteral(t *testing.T) {
+ tt(t, func() {
+ test := func(have, want string) {
+ have, err := parseStringLiteral(have)
+ is(err, nil)
+ is(have, want)
+ }
+
+ test("", "")
+
+ test("1(\\\\d+)", "1(\\d+)")
+
+ test("\\u2029", "\u2029")
+
+ test("abc\\uFFFFabc", "abc\uFFFFabc")
+
+ test("[First line \\\nSecond line \\\n Third line\\\n. ]",
+ "[First line Second line Third line. ]")
+
+ test("\\u007a\\x79\\u000a\\x78", "zy\nx")
+
+ // S7.8.4_A4.2_T3
+ test("\\a", "a")
+ test("\u0410", "\u0410")
+
+ // S7.8.4_A5.1_T1
+ test("\\0", "\u0000")
+
+ // S8.4_A5
+ test("\u0000", "\u0000")
+
+ // 15.5.4.20
+ test("'abc'\\\n'def'", "'abc''def'")
+
+ // 15.5.4.20-4-1
+ test("'abc'\\\r\n'def'", "'abc''def'")
+
+ // Octal
+ test("\\0", "\000")
+ test("\\00", "\000")
+ test("\\000", "\000")
+ test("\\09", "\0009")
+ test("\\009", "\0009")
+ test("\\0009", "\0009")
+ test("\\1", "\001")
+ test("\\01", "\001")
+ test("\\001", "\001")
+ test("\\0011", "\0011")
+ test("\\1abc", "\001abc")
+
+ test("\\\u4e16", "\u4e16")
+
+ // err
+ test = func(have, want string) {
+ have, err := parseStringLiteral(have)
+ is(err.Error(), want)
+ is(have, "")
+ }
+
+ test(`\u`, `invalid escape: \u: len("") != 4`)
+ test(`\u0`, `invalid escape: \u: len("0") != 4`)
+ test(`\u00`, `invalid escape: \u: len("00") != 4`)
+ test(`\u000`, `invalid escape: \u: len("000") != 4`)
+
+ test(`\x`, `invalid escape: \x: len("") != 2`)
+ test(`\x0`, `invalid escape: \x: len("0") != 2`)
+ test(`\x0`, `invalid escape: \x: len("0") != 2`)
+ })
+}
+
+func Test_parseNumberLiteral(t *testing.T) {
+ tt(t, func() {
+ test := func(input string, expect interface{}) {
+ result, err := parseNumberLiteral(input)
+ is(err, nil)
+ is(result, expect)
+ }
+
+ test("0", 0)
+
+ test("0x8000000000000000", float64(9.223372036854776e+18))
+ })
+}
+
+func TestPosition(t *testing.T) {
+ tt(t, func() {
+ parser := newParser("", "// Lorem ipsum")
+
+ // Out of range, idx0 (error condition)
+ is(parser.slice(0, 1), "")
+ is(parser.slice(0, 10), "")
+
+ // Out of range, idx1 (error condition)
+ is(parser.slice(1, 128), "")
+
+ is(parser.str[0:0], "")
+ is(parser.slice(1, 1), "")
+
+ is(parser.str[0:1], "/")
+ is(parser.slice(1, 2), "/")
+
+ is(parser.str[0:14], "// Lorem ipsum")
+ is(parser.slice(1, 15), "// Lorem ipsum")
+
+ parser = newParser("", "(function(){ return 0; })")
+ program, err := parser.parse()
+ is(err, nil)
+
+ var node ast.Node
+ node = program.Body[0].(*ast.ExpressionStatement).Expression.(*ast.FunctionLiteral)
+ is(node.Idx0(), file.Idx(2))
+ is(node.Idx1(), file.Idx(25))
+ is(parser.slice(node.Idx0(), node.Idx1()), "function(){ return 0; }")
+ is(parser.slice(node.Idx0(), node.Idx1()+1), "function(){ return 0; })")
+ is(parser.slice(node.Idx0(), node.Idx1()+2), "")
+ is(node.(*ast.FunctionLiteral).Source, "function(){ return 0; }")
+
+ node = program
+ is(node.Idx0(), file.Idx(2))
+ is(node.Idx1(), file.Idx(25))
+ is(parser.slice(node.Idx0(), node.Idx1()), "function(){ return 0; }")
+
+ parser = newParser("", "(function(){ return abc; })")
+ program, err = parser.parse()
+ is(err, nil)
+ node = program.Body[0].(*ast.ExpressionStatement).Expression.(*ast.FunctionLiteral)
+ is(node.(*ast.FunctionLiteral).Source, "function(){ return abc; }")
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser/regexp.go b/Godeps/_workspace/src/github.com/obscuren/otto/parser/regexp.go
new file mode 100644
index 000000000..f614dae74
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser/regexp.go
@@ -0,0 +1,358 @@
+package parser
+
+import (
+ "bytes"
+ "fmt"
+ "strconv"
+)
+
+type _RegExp_parser struct {
+ str string
+ length int
+
+ chr rune // The current character
+ chrOffset int // The offset of current character
+ offset int // The offset after current character (may be greater than 1)
+
+ errors []error
+ invalid bool // The input is an invalid JavaScript RegExp
+
+ goRegexp *bytes.Buffer
+}
+
+// TransformRegExp transforms a JavaScript pattern into a Go "regexp" pattern.
+//
+// re2 (Go) cannot do backtracking, so the presence of a lookahead (?=) (?!) or
+// backreference (\1, \2, ...) will cause an error.
+//
+// re2 (Go) has a different definition for \s: [\t\n\f\r ].
+// The JavaScript definition, on the other hand, also includes \v, Unicode "Separator, Space", etc.
+//
+// If the pattern is invalid (not valid even in JavaScript), then this function
+// returns the empty string and an error.
+//
+// If the pattern is valid, but incompatible (contains a lookahead or backreference),
+// then this function returns the transformation (a non-empty string) AND an error.
+func TransformRegExp(pattern string) (string, error) {
+
+ if pattern == "" {
+ return "", nil
+ }
+
+ // TODO If without \, if without (?=, (?!, then another shortcut
+
+ parser := _RegExp_parser{
+ str: pattern,
+ length: len(pattern),
+ goRegexp: bytes.NewBuffer(make([]byte, 0, 3*len(pattern)/2)),
+ }
+ parser.read() // Pull in the first character
+ parser.scan()
+ var err error
+ if len(parser.errors) > 0 {
+ err = parser.errors[0]
+ }
+ if parser.invalid {
+ return "", err
+ }
+
+ // Might not be re2 compatible, but is still a valid JavaScript RegExp
+ return parser.goRegexp.String(), err
+}
+
+func (self *_RegExp_parser) scan() {
+ for self.chr != -1 {
+ switch self.chr {
+ case '\\':
+ self.read()
+ self.scanEscape(false)
+ case '(':
+ self.pass()
+ self.scanGroup()
+ case '[':
+ self.pass()
+ self.scanBracket()
+ case ')':
+ self.error(-1, "Unmatched ')'")
+ self.invalid = true
+ self.pass()
+ default:
+ self.pass()
+ }
+ }
+}
+
+// (...)
+func (self *_RegExp_parser) scanGroup() {
+ str := self.str[self.chrOffset:]
+ if len(str) > 1 { // A possibility of (?= or (?!
+ if str[0] == '?' {
+ if str[1] == '=' || str[1] == '!' {
+ self.error(-1, "re2: Invalid (%s) <lookahead>", self.str[self.chrOffset:self.chrOffset+2])
+ }
+ }
+ }
+ for self.chr != -1 && self.chr != ')' {
+ switch self.chr {
+ case '\\':
+ self.read()
+ self.scanEscape(false)
+ case '(':
+ self.pass()
+ self.scanGroup()
+ case '[':
+ self.pass()
+ self.scanBracket()
+ default:
+ self.pass()
+ continue
+ }
+ }
+ if self.chr != ')' {
+ self.error(-1, "Unterminated group")
+ self.invalid = true
+ return
+ }
+ self.pass()
+}
+
+// [...]
+func (self *_RegExp_parser) scanBracket() {
+ for self.chr != -1 {
+ if self.chr == ']' {
+ break
+ } else if self.chr == '\\' {
+ self.read()
+ self.scanEscape(true)
+ continue
+ }
+ self.pass()
+ }
+ if self.chr != ']' {
+ self.error(-1, "Unterminated character class")
+ self.invalid = true
+ return
+ }
+ self.pass()
+}
+
+// \...
+func (self *_RegExp_parser) scanEscape(inClass bool) {
+ offset := self.chrOffset
+
+ var length, base uint32
+ switch self.chr {
+
+ case '0', '1', '2', '3', '4', '5', '6', '7':
+ var value int64
+ size := 0
+ for {
+ digit := int64(digitValue(self.chr))
+ if digit >= 8 {
+ // Not a valid digit
+ break
+ }
+ value = value*8 + digit
+ self.read()
+ size += 1
+ }
+ if size == 1 { // The number of characters read
+ _, err := self.goRegexp.Write([]byte{'\\', byte(value) + '0'})
+ if err != nil {
+ self.errors = append(self.errors, err)
+ }
+ if value != 0 {
+ // An invalid backreference
+ self.error(-1, "re2: Invalid \\%d <backreference>", value)
+ }
+ return
+ }
+ tmp := []byte{'\\', 'x', '0', 0}
+ if value >= 16 {
+ tmp = tmp[0:2]
+ } else {
+ tmp = tmp[0:3]
+ }
+ tmp = strconv.AppendInt(tmp, value, 16)
+ _, err := self.goRegexp.Write(tmp)
+ if err != nil {
+ self.errors = append(self.errors, err)
+ }
+ return
+
+ case '8', '9':
+ size := 0
+ for {
+ digit := digitValue(self.chr)
+ if digit >= 10 {
+ // Not a valid digit
+ break
+ }
+ self.read()
+ size += 1
+ }
+ err := self.goRegexp.WriteByte('\\')
+ if err != nil {
+ self.errors = append(self.errors, err)
+ }
+ _, err = self.goRegexp.WriteString(self.str[offset:self.chrOffset])
+ if err != nil {
+ self.errors = append(self.errors, err)
+ }
+ self.error(-1, "re2: Invalid \\%s <backreference>", self.str[offset:self.chrOffset])
+ return
+
+ case 'x':
+ self.read()
+ length, base = 2, 16
+
+ case 'u':
+ self.read()
+ length, base = 4, 16
+
+ case 'b':
+ if inClass {
+ _, err := self.goRegexp.Write([]byte{'\\', 'x', '0', '8'})
+ if err != nil {
+ self.errors = append(self.errors, err)
+ }
+ self.read()
+ return
+ }
+ fallthrough
+
+ case 'B':
+ fallthrough
+
+ case 'd', 'D', 's', 'S', 'w', 'W':
+ // This is slightly broken, because ECMAScript
+ // includes \v in \s, \S, while re2 does not
+ fallthrough
+
+ case '\\':
+ fallthrough
+
+ case 'f', 'n', 'r', 't', 'v':
+ err := self.goRegexp.WriteByte('\\')
+ if err != nil {
+ self.errors = append(self.errors, err)
+ }
+ self.pass()
+ return
+
+ case 'c':
+ self.read()
+ var value int64
+ if 'a' <= self.chr && self.chr <= 'z' {
+ value = int64(self.chr) - 'a' + 1
+ } else if 'A' <= self.chr && self.chr <= 'Z' {
+ value = int64(self.chr) - 'A' + 1
+ } else {
+ err := self.goRegexp.WriteByte('c')
+ if err != nil {
+ self.errors = append(self.errors, err)
+ }
+ return
+ }
+ tmp := []byte{'\\', 'x', '0', 0}
+ if value >= 16 {
+ tmp = tmp[0:2]
+ } else {
+ tmp = tmp[0:3]
+ }
+ tmp = strconv.AppendInt(tmp, value, 16)
+ _, err := self.goRegexp.Write(tmp)
+ if err != nil {
+ self.errors = append(self.errors, err)
+ }
+ self.read()
+ return
+
+ default:
+ // $ is an identifier character, so we have to have
+ // a special case for it here
+ if self.chr == '$' || !isIdentifierPart(self.chr) {
+ // A non-identifier character needs escaping
+ err := self.goRegexp.WriteByte('\\')
+ if err != nil {
+ self.errors = append(self.errors, err)
+ }
+ } else {
+ // Unescape the character for re2
+ }
+ self.pass()
+ return
+ }
+
+ // Otherwise, we're a \u.... or \x...
+ valueOffset := self.chrOffset
+
+ var value uint32
+ {
+ length := length
+ for ; length > 0; length-- {
+ digit := uint32(digitValue(self.chr))
+ if digit >= base {
+ // Not a valid digit
+ goto skip
+ }
+ value = value*base + digit
+ self.read()
+ }
+ }
+
+ if length == 4 {
+ _, err := self.goRegexp.Write([]byte{
+ '\\',
+ 'x',
+ '{',
+ self.str[valueOffset+0],
+ self.str[valueOffset+1],
+ self.str[valueOffset+2],
+ self.str[valueOffset+3],
+ '}',
+ })
+ if err != nil {
+ self.errors = append(self.errors, err)
+ }
+ } else if length == 2 {
+ _, err := self.goRegexp.Write([]byte{
+ '\\',
+ 'x',
+ self.str[valueOffset+0],
+ self.str[valueOffset+1],
+ })
+ if err != nil {
+ self.errors = append(self.errors, err)
+ }
+ } else {
+ // Should never, ever get here...
+ self.error(-1, "re2: Illegal branch in scanEscape")
+ goto skip
+ }
+
+ return
+
+skip:
+ _, err := self.goRegexp.WriteString(self.str[offset:self.chrOffset])
+ if err != nil {
+ self.errors = append(self.errors, err)
+ }
+}
+
+func (self *_RegExp_parser) pass() {
+ if self.chr != -1 {
+ _, err := self.goRegexp.WriteRune(self.chr)
+ if err != nil {
+ self.errors = append(self.errors, err)
+ }
+ }
+ self.read()
+}
+
+// TODO Better error reporting, use the offset, etc.
+func (self *_RegExp_parser) error(offset int, msg string, msgValues ...interface{}) error {
+ err := fmt.Errorf(msg, msgValues...)
+ self.errors = append(self.errors, err)
+ return err
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser/regexp_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/parser/regexp_test.go
new file mode 100644
index 000000000..3222db1a7
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser/regexp_test.go
@@ -0,0 +1,149 @@
+package parser
+
+import (
+ "regexp"
+ "testing"
+)
+
+func TestRegExp(t *testing.T) {
+ tt(t, func() {
+ {
+ // err
+ test := func(input string, expect interface{}) {
+ _, err := TransformRegExp(input)
+ is(err, expect)
+ }
+
+ test("[", "Unterminated character class")
+
+ test("(", "Unterminated group")
+
+ test("(?=)", "re2: Invalid (?=) <lookahead>")
+
+ test("(?=)", "re2: Invalid (?=) <lookahead>")
+
+ test("(?!)", "re2: Invalid (?!) <lookahead>")
+
+ // An error anyway
+ test("(?=", "re2: Invalid (?=) <lookahead>")
+
+ test("\\1", "re2: Invalid \\1 <backreference>")
+
+ test("\\90", "re2: Invalid \\90 <backreference>")
+
+ test("\\9123456789", "re2: Invalid \\9123456789 <backreference>")
+
+ test("\\(?=)", "Unmatched ')'")
+
+ test(")", "Unmatched ')'")
+ }
+
+ {
+ // err
+ test := func(input, expect string, expectErr interface{}) {
+ output, err := TransformRegExp(input)
+ is(output, expect)
+ is(err, expectErr)
+ }
+
+ test("(?!)", "(?!)", "re2: Invalid (?!) <lookahead>")
+
+ test(")", "", "Unmatched ')'")
+
+ test("(?!))", "", "re2: Invalid (?!) <lookahead>")
+
+ test("\\0", "\\0", nil)
+
+ test("\\1", "\\1", "re2: Invalid \\1 <backreference>")
+
+ test("\\9123456789", "\\9123456789", "re2: Invalid \\9123456789 <backreference>")
+ }
+
+ {
+ // err
+ test := func(input string, expect string) {
+ result, err := TransformRegExp(input)
+ is(err, nil)
+ if is(result, expect) {
+ _, err := regexp.Compile(result)
+ if !is(err, nil) {
+ t.Log(result)
+ }
+ }
+ }
+
+ test("", "")
+
+ test("abc", "abc")
+
+ test(`\abc`, `abc`)
+
+ test(`\a\b\c`, `a\bc`)
+
+ test(`\x`, `x`)
+
+ test(`\c`, `c`)
+
+ test(`\cA`, `\x01`)
+
+ test(`\cz`, `\x1a`)
+
+ test(`\ca`, `\x01`)
+
+ test(`\cj`, `\x0a`)
+
+ test(`\ck`, `\x0b`)
+
+ test(`\+`, `\+`)
+
+ test(`[\b]`, `[\x08]`)
+
+ test(`\u0z01\x\undefined`, `u0z01xundefined`)
+
+ test(`\\|'|\r|\n|\t|\u2028|\u2029`, `\\|'|\r|\n|\t|\x{2028}|\x{2029}`)
+
+ test("]", "]")
+
+ test("}", "}")
+
+ test("%", "%")
+
+ test("(%)", "(%)")
+
+ test("(?:[%\\s])", "(?:[%\\s])")
+
+ test("[[]", "[[]")
+
+ test("\\101", "\\x41")
+
+ test("\\51", "\\x29")
+
+ test("\\051", "\\x29")
+
+ test("\\175", "\\x7d")
+
+ test("\\04", "\\x04")
+
+ test(`<%([\s\S]+?)%>`, `<%([\s\S]+?)%>`)
+
+ test(`(.)^`, "(.)^")
+
+ test(`<%-([\s\S]+?)%>|<%=([\s\S]+?)%>|<%([\s\S]+?)%>|$`, `<%-([\s\S]+?)%>|<%=([\s\S]+?)%>|<%([\s\S]+?)%>|$`)
+
+ test(`\$`, `\$`)
+
+ test(`[G-b]`, `[G-b]`)
+
+ test(`[G-b\0]`, `[G-b\0]`)
+ }
+ })
+}
+
+func TestTransformRegExp(t *testing.T) {
+ tt(t, func() {
+ pattern, err := TransformRegExp(`\s+abc\s+`)
+ is(err, nil)
+ is(pattern, `\s+abc\s+`)
+ is(regexp.MustCompile(pattern).MatchString("\t abc def"), true)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser/scope.go b/Godeps/_workspace/src/github.com/obscuren/otto/parser/scope.go
new file mode 100644
index 000000000..e1dbdda13
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser/scope.go
@@ -0,0 +1,44 @@
+package parser
+
+import (
+ "github.com/robertkrimen/otto/ast"
+)
+
+type _scope struct {
+ outer *_scope
+ allowIn bool
+ inIteration bool
+ inSwitch bool
+ inFunction bool
+ declarationList []ast.Declaration
+
+ labels []string
+}
+
+func (self *_parser) openScope() {
+ self.scope = &_scope{
+ outer: self.scope,
+ allowIn: true,
+ }
+}
+
+func (self *_parser) closeScope() {
+ self.scope = self.scope.outer
+}
+
+func (self *_scope) declare(declaration ast.Declaration) {
+ self.declarationList = append(self.declarationList, declaration)
+}
+
+func (self *_scope) hasLabel(name string) bool {
+ for _, label := range self.labels {
+ if label == name {
+ return true
+ }
+ }
+ if self.outer != nil && !self.inFunction {
+ // Crossing a function boundary to look for a label is verboten
+ return self.outer.hasLabel(name)
+ }
+ return false
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser/statement.go b/Godeps/_workspace/src/github.com/obscuren/otto/parser/statement.go
new file mode 100644
index 000000000..4c08b523c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser/statement.go
@@ -0,0 +1,662 @@
+package parser
+
+import (
+ "github.com/robertkrimen/otto/ast"
+ "github.com/robertkrimen/otto/token"
+)
+
+func (self *_parser) parseBlockStatement() *ast.BlockStatement {
+ node := &ast.BlockStatement{}
+ node.LeftBrace = self.expect(token.LEFT_BRACE)
+ node.List = self.parseStatementList()
+ node.RightBrace = self.expect(token.RIGHT_BRACE)
+
+ return node
+}
+
+func (self *_parser) parseEmptyStatement() ast.Statement {
+ idx := self.expect(token.SEMICOLON)
+ return &ast.EmptyStatement{Semicolon: idx}
+}
+
+func (self *_parser) parseStatementList() (list []ast.Statement) {
+ for self.token != token.RIGHT_BRACE && self.token != token.EOF {
+ list = append(list, self.parseStatement())
+ }
+
+ return
+}
+
+func (self *_parser) parseStatement() ast.Statement {
+
+ if self.token == token.EOF {
+ self.errorUnexpectedToken(self.token)
+ return &ast.BadStatement{From: self.idx, To: self.idx + 1}
+ }
+
+ switch self.token {
+ case token.SEMICOLON:
+ return self.parseEmptyStatement()
+ case token.LEFT_BRACE:
+ return self.parseBlockStatement()
+ case token.IF:
+ return self.parseIfStatement()
+ case token.DO:
+ return self.parseDoWhileStatement()
+ case token.WHILE:
+ return self.parseWhileStatement()
+ case token.FOR:
+ return self.parseForOrForInStatement()
+ case token.BREAK:
+ return self.parseBreakStatement()
+ case token.CONTINUE:
+ return self.parseContinueStatement()
+ case token.DEBUGGER:
+ return self.parseDebuggerStatement()
+ case token.WITH:
+ return self.parseWithStatement()
+ case token.VAR:
+ return self.parseVariableStatement()
+ case token.FUNCTION:
+ self.parseFunction(true)
+ // FIXME
+ return &ast.EmptyStatement{}
+ case token.SWITCH:
+ return self.parseSwitchStatement()
+ case token.RETURN:
+ return self.parseReturnStatement()
+ case token.THROW:
+ return self.parseThrowStatement()
+ case token.TRY:
+ return self.parseTryStatement()
+ }
+
+ expression := self.parseExpression()
+
+ if identifier, isIdentifier := expression.(*ast.Identifier); isIdentifier && self.token == token.COLON {
+ // LabelledStatement
+ colon := self.idx
+ self.next() // :
+ label := identifier.Name
+ for _, value := range self.scope.labels {
+ if label == value {
+ self.error(identifier.Idx0(), "Label '%s' already exists", label)
+ }
+ }
+ self.scope.labels = append(self.scope.labels, label) // Push the label
+ statement := self.parseStatement()
+ self.scope.labels = self.scope.labels[:len(self.scope.labels)-1] // Pop the label
+ return &ast.LabelledStatement{
+ Label: identifier,
+ Colon: colon,
+ Statement: statement,
+ }
+ }
+
+ self.optionalSemicolon()
+
+ return &ast.ExpressionStatement{
+ Expression: expression,
+ }
+}
+
+func (self *_parser) parseTryStatement() ast.Statement {
+
+ node := &ast.TryStatement{
+ Try: self.expect(token.TRY),
+ Body: self.parseBlockStatement(),
+ }
+
+ if self.token == token.CATCH {
+ catch := self.idx
+ self.next()
+ self.expect(token.LEFT_PARENTHESIS)
+ if self.token != token.IDENTIFIER {
+ self.expect(token.IDENTIFIER)
+ self.nextStatement()
+ return &ast.BadStatement{From: catch, To: self.idx}
+ } else {
+ identifier := self.parseIdentifier()
+ self.expect(token.RIGHT_PARENTHESIS)
+ node.Catch = &ast.CatchStatement{
+ Catch: catch,
+ Parameter: identifier,
+ Body: self.parseBlockStatement(),
+ }
+ }
+ }
+
+ if self.token == token.FINALLY {
+ self.next()
+ node.Finally = self.parseBlockStatement()
+ }
+
+ if node.Catch == nil && node.Finally == nil {
+ self.error(node.Try, "Missing catch or finally after try")
+ return &ast.BadStatement{From: node.Try, To: node.Body.Idx1()}
+ }
+
+ return node
+}
+
+func (self *_parser) parseFunctionParameterList() *ast.ParameterList {
+ opening := self.expect(token.LEFT_PARENTHESIS)
+ var list []*ast.Identifier
+ for self.token != token.RIGHT_PARENTHESIS && self.token != token.EOF {
+ if self.token != token.IDENTIFIER {
+ self.expect(token.IDENTIFIER)
+ } else {
+ list = append(list, self.parseIdentifier())
+ }
+ if self.token != token.RIGHT_PARENTHESIS {
+ self.expect(token.COMMA)
+ }
+ }
+ closing := self.expect(token.RIGHT_PARENTHESIS)
+
+ return &ast.ParameterList{
+ Opening: opening,
+ List: list,
+ Closing: closing,
+ }
+}
+
+func (self *_parser) parseParameterList() (list []string) {
+ for self.token != token.EOF {
+ if self.token != token.IDENTIFIER {
+ self.expect(token.IDENTIFIER)
+ }
+ list = append(list, self.literal)
+ self.next()
+ if self.token != token.EOF {
+ self.expect(token.COMMA)
+ }
+ }
+ return
+}
+
+func (self *_parser) parseFunction(declaration bool) *ast.FunctionLiteral {
+
+ node := &ast.FunctionLiteral{
+ Function: self.expect(token.FUNCTION),
+ }
+
+ var name *ast.Identifier
+ if self.token == token.IDENTIFIER {
+ name = self.parseIdentifier()
+ if declaration {
+ self.scope.declare(&ast.FunctionDeclaration{
+ Function: node,
+ })
+ }
+ } else if declaration {
+ // Use expect error handling
+ self.expect(token.IDENTIFIER)
+ }
+ node.Name = name
+ node.ParameterList = self.parseFunctionParameterList()
+ self.parseFunctionBlock(node)
+ node.Source = self.slice(node.Idx0(), node.Idx1())
+
+ return node
+}
+
+func (self *_parser) parseFunctionBlock(node *ast.FunctionLiteral) {
+ {
+ self.openScope()
+ inFunction := self.scope.inFunction
+ self.scope.inFunction = true
+ defer func() {
+ self.scope.inFunction = inFunction
+ self.closeScope()
+ }()
+ node.Body = self.parseBlockStatement()
+ node.DeclarationList = self.scope.declarationList
+ }
+}
+
+func (self *_parser) parseDebuggerStatement() ast.Statement {
+ idx := self.expect(token.DEBUGGER)
+
+ node := &ast.DebuggerStatement{
+ Debugger: idx,
+ }
+
+ self.semicolon()
+
+ return node
+}
+
+func (self *_parser) parseReturnStatement() ast.Statement {
+ idx := self.expect(token.RETURN)
+
+ if !self.scope.inFunction {
+ self.error(idx, "Illegal return statement")
+ self.nextStatement()
+ return &ast.BadStatement{From: idx, To: self.idx}
+ }
+
+ node := &ast.ReturnStatement{
+ Return: idx,
+ }
+
+ if !self.implicitSemicolon && self.token != token.SEMICOLON && self.token != token.RIGHT_BRACE && self.token != token.EOF {
+ node.Argument = self.parseExpression()
+ }
+
+ self.semicolon()
+
+ return node
+}
+
+func (self *_parser) parseThrowStatement() ast.Statement {
+ idx := self.expect(token.THROW)
+
+ if self.implicitSemicolon {
+ if self.chr == -1 { // Hackish
+ self.error(idx, "Unexpected end of input")
+ } else {
+ self.error(idx, "Illegal newline after throw")
+ }
+ self.nextStatement()
+ return &ast.BadStatement{From: idx, To: self.idx}
+ }
+
+ node := &ast.ThrowStatement{
+ Argument: self.parseExpression(),
+ }
+
+ self.semicolon()
+
+ return node
+}
+
+func (self *_parser) parseSwitchStatement() ast.Statement {
+ self.expect(token.SWITCH)
+ self.expect(token.LEFT_PARENTHESIS)
+ node := &ast.SwitchStatement{
+ Discriminant: self.parseExpression(),
+ Default: -1,
+ }
+ self.expect(token.RIGHT_PARENTHESIS)
+
+ self.expect(token.LEFT_BRACE)
+
+ inSwitch := self.scope.inSwitch
+ self.scope.inSwitch = true
+ defer func() {
+ self.scope.inSwitch = inSwitch
+ }()
+
+ for index := 0; self.token != token.EOF; index++ {
+ if self.token == token.RIGHT_BRACE {
+ self.next()
+ break
+ }
+
+ clause := self.parseCaseStatement()
+ if clause.Test == nil {
+ if node.Default != -1 {
+ self.error(clause.Case, "Already saw a default in switch")
+ }
+ node.Default = index
+ }
+ node.Body = append(node.Body, clause)
+ }
+
+ return node
+}
+
+func (self *_parser) parseWithStatement() ast.Statement {
+ self.expect(token.WITH)
+ self.expect(token.LEFT_PARENTHESIS)
+ node := &ast.WithStatement{
+ Object: self.parseExpression(),
+ }
+ self.expect(token.RIGHT_PARENTHESIS)
+
+ node.Body = self.parseStatement()
+
+ return node
+}
+
+func (self *_parser) parseCaseStatement() *ast.CaseStatement {
+
+ node := &ast.CaseStatement{
+ Case: self.idx,
+ }
+ if self.token == token.DEFAULT {
+ self.next()
+ } else {
+ self.expect(token.CASE)
+ node.Test = self.parseExpression()
+ }
+ self.expect(token.COLON)
+
+ for {
+ if self.token == token.EOF ||
+ self.token == token.RIGHT_BRACE ||
+ self.token == token.CASE ||
+ self.token == token.DEFAULT {
+ break
+ }
+ node.Consequent = append(node.Consequent, self.parseStatement())
+
+ }
+
+ return node
+}
+
+func (self *_parser) parseIterationStatement() ast.Statement {
+ inIteration := self.scope.inIteration
+ self.scope.inIteration = true
+ defer func() {
+ self.scope.inIteration = inIteration
+ }()
+ return self.parseStatement()
+}
+
+func (self *_parser) parseForIn(into ast.Expression) *ast.ForInStatement {
+
+ // Already have consumed "<into> in"
+
+ source := self.parseExpression()
+ self.expect(token.RIGHT_PARENTHESIS)
+
+ return &ast.ForInStatement{
+ Into: into,
+ Source: source,
+ Body: self.parseIterationStatement(),
+ }
+}
+
+func (self *_parser) parseFor(initializer ast.Expression) *ast.ForStatement {
+
+ // Already have consumed "<initializer> ;"
+
+ var test, update ast.Expression
+
+ if self.token != token.SEMICOLON {
+ test = self.parseExpression()
+ }
+ self.expect(token.SEMICOLON)
+
+ if self.token != token.RIGHT_PARENTHESIS {
+ update = self.parseExpression()
+ }
+ self.expect(token.RIGHT_PARENTHESIS)
+
+ return &ast.ForStatement{
+ Initializer: initializer,
+ Test: test,
+ Update: update,
+ Body: self.parseIterationStatement(),
+ }
+}
+
+func (self *_parser) parseForOrForInStatement() ast.Statement {
+ idx := self.expect(token.FOR)
+ self.expect(token.LEFT_PARENTHESIS)
+
+ var left []ast.Expression
+
+ forIn := false
+ if self.token != token.SEMICOLON {
+
+ allowIn := self.scope.allowIn
+ self.scope.allowIn = false
+ if self.token == token.VAR {
+ var_ := self.idx
+ self.next()
+ list := self.parseVariableDeclarationList(var_)
+ if len(list) == 1 && self.token == token.IN {
+ self.next() // in
+ forIn = true
+ left = []ast.Expression{list[0]} // There is only one declaration
+ } else {
+ left = list
+ }
+ } else {
+ left = append(left, self.parseExpression())
+ if self.token == token.IN {
+ self.next()
+ forIn = true
+ }
+ }
+ self.scope.allowIn = allowIn
+ }
+
+ if forIn {
+ switch left[0].(type) {
+ case *ast.Identifier, *ast.DotExpression, *ast.BracketExpression, *ast.VariableExpression:
+ // These are all acceptable
+ default:
+ self.error(idx, "Invalid left-hand side in for-in")
+ self.nextStatement()
+ return &ast.BadStatement{From: idx, To: self.idx}
+ }
+ return self.parseForIn(left[0])
+ }
+
+ self.expect(token.SEMICOLON)
+ return self.parseFor(&ast.SequenceExpression{Sequence: left})
+}
+
+func (self *_parser) parseVariableStatement() *ast.VariableStatement {
+
+ idx := self.expect(token.VAR)
+
+ list := self.parseVariableDeclarationList(idx)
+ self.semicolon()
+
+ return &ast.VariableStatement{
+ Var: idx,
+ List: list,
+ }
+}
+
+func (self *_parser) parseDoWhileStatement() ast.Statement {
+ inIteration := self.scope.inIteration
+ self.scope.inIteration = true
+ defer func() {
+ self.scope.inIteration = inIteration
+ }()
+
+ self.expect(token.DO)
+ node := &ast.DoWhileStatement{}
+ if self.token == token.LEFT_BRACE {
+ node.Body = self.parseBlockStatement()
+ } else {
+ node.Body = self.parseStatement()
+ }
+
+ self.expect(token.WHILE)
+ self.expect(token.LEFT_PARENTHESIS)
+ node.Test = self.parseExpression()
+ self.expect(token.RIGHT_PARENTHESIS)
+
+ return node
+}
+
+func (self *_parser) parseWhileStatement() ast.Statement {
+ self.expect(token.WHILE)
+ self.expect(token.LEFT_PARENTHESIS)
+ node := &ast.WhileStatement{
+ Test: self.parseExpression(),
+ }
+ self.expect(token.RIGHT_PARENTHESIS)
+ node.Body = self.parseIterationStatement()
+
+ return node
+}
+
+func (self *_parser) parseIfStatement() ast.Statement {
+ self.expect(token.IF)
+ self.expect(token.LEFT_PARENTHESIS)
+ node := &ast.IfStatement{
+ Test: self.parseExpression(),
+ }
+ self.expect(token.RIGHT_PARENTHESIS)
+
+ if self.token == token.LEFT_BRACE {
+ node.Consequent = self.parseBlockStatement()
+ } else {
+ node.Consequent = self.parseStatement()
+ }
+
+ if self.token == token.ELSE {
+ self.next()
+ node.Alternate = self.parseStatement()
+ }
+
+ return node
+}
+
+func (self *_parser) parseSourceElement() ast.Statement {
+ return self.parseStatement()
+}
+
+func (self *_parser) parseSourceElements() []ast.Statement {
+ body := []ast.Statement(nil)
+
+ for {
+ if self.token != token.STRING {
+ break
+ }
+
+ body = append(body, self.parseSourceElement())
+ }
+
+ for self.token != token.EOF {
+ body = append(body, self.parseSourceElement())
+ }
+
+ return body
+}
+
+func (self *_parser) parseProgram() *ast.Program {
+ self.openScope()
+ defer self.closeScope()
+ return &ast.Program{
+ Body: self.parseSourceElements(),
+ DeclarationList: self.scope.declarationList,
+ }
+}
+
+func (self *_parser) parseBreakStatement() ast.Statement {
+ idx := self.expect(token.BREAK)
+ semicolon := self.implicitSemicolon
+ if self.token == token.SEMICOLON {
+ semicolon = true
+ self.next()
+ }
+
+ if semicolon || self.token == token.RIGHT_BRACE {
+ self.implicitSemicolon = false
+ if !self.scope.inIteration && !self.scope.inSwitch {
+ goto illegal
+ }
+ return &ast.BranchStatement{
+ Idx: idx,
+ Token: token.BREAK,
+ }
+ }
+
+ if self.token == token.IDENTIFIER {
+ identifier := self.parseIdentifier()
+ if !self.scope.hasLabel(identifier.Name) {
+ self.error(idx, "Undefined label '%s'", identifier.Name)
+ return &ast.BadStatement{From: idx, To: identifier.Idx1()}
+ }
+ self.semicolon()
+ return &ast.BranchStatement{
+ Idx: idx,
+ Token: token.BREAK,
+ Label: identifier,
+ }
+ }
+
+ self.expect(token.IDENTIFIER)
+
+illegal:
+ self.error(idx, "Illegal break statement")
+ self.nextStatement()
+ return &ast.BadStatement{From: idx, To: self.idx}
+}
+
+func (self *_parser) parseContinueStatement() ast.Statement {
+ idx := self.expect(token.CONTINUE)
+ semicolon := self.implicitSemicolon
+ if self.token == token.SEMICOLON {
+ semicolon = true
+ self.next()
+ }
+
+ if semicolon || self.token == token.RIGHT_BRACE {
+ self.implicitSemicolon = false
+ if !self.scope.inIteration {
+ goto illegal
+ }
+ return &ast.BranchStatement{
+ Idx: idx,
+ Token: token.CONTINUE,
+ }
+ }
+
+ if self.token == token.IDENTIFIER {
+ identifier := self.parseIdentifier()
+ if !self.scope.hasLabel(identifier.Name) {
+ self.error(idx, "Undefined label '%s'", identifier.Name)
+ return &ast.BadStatement{From: idx, To: identifier.Idx1()}
+ }
+ if !self.scope.inIteration {
+ goto illegal
+ }
+ self.semicolon()
+ return &ast.BranchStatement{
+ Idx: idx,
+ Token: token.CONTINUE,
+ Label: identifier,
+ }
+ }
+
+ self.expect(token.IDENTIFIER)
+
+illegal:
+ self.error(idx, "Illegal continue statement")
+ self.nextStatement()
+ return &ast.BadStatement{From: idx, To: self.idx}
+}
+
+// Find the next statement after an error (recover)
+func (self *_parser) nextStatement() {
+ for {
+ switch self.token {
+ case token.BREAK, token.CONTINUE,
+ token.FOR, token.IF, token.RETURN, token.SWITCH,
+ token.VAR, token.DO, token.TRY, token.WITH,
+ token.WHILE, token.THROW, token.CATCH, token.FINALLY:
+ // Return only if parser made some progress since last
+ // sync or if it has not reached 10 next calls without
+ // progress. Otherwise consume at least one token to
+ // avoid an endless parser loop
+ if self.idx == self.recover.idx && self.recover.count < 10 {
+ self.recover.count++
+ return
+ }
+ if self.idx > self.recover.idx {
+ self.recover.idx = self.idx
+ self.recover.count = 0
+ return
+ }
+ // Reaching here indicates a parser bug, likely an
+ // incorrect token list in this function, but it only
+ // leads to skipping of possibly correct code if a
+ // previous error is present, and thus is preferred
+ // over a non-terminating parse.
+ case token.EOF:
+ return
+ }
+ self.next()
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/parser_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/parser_test.go
new file mode 100644
index 000000000..7db43d239
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/parser_test.go
@@ -0,0 +1,42 @@
+package otto
+
+import (
+ "testing"
+)
+
+func TestPersistence(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ function abc() { return 1; }
+ abc.toString();
+ `, "function abc() { return 1; }")
+
+ test(`
+ function def() { return 3.14159; }
+ [ abc.toString(), def.toString() ];
+ `, "function abc() { return 1; },function def() { return 3.14159; }")
+
+ test(`
+ eval("function ghi() { return 'ghi' }");
+ [ abc.toString(), def.toString(), ghi.toString() ];
+ `, "function abc() { return 1; },function def() { return 3.14159; },function ghi() { return 'ghi' }")
+
+ test(`
+ [ abc.toString(), def.toString(), ghi.toString() ];
+ `, "function abc() { return 1; },function def() { return 3.14159; },function ghi() { return 'ghi' }")
+
+ test(`/*
+
+
+
+
+
+
+
+
+
+ */`, UndefinedValue())
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/property.go b/Godeps/_workspace/src/github.com/obscuren/otto/property.go
new file mode 100644
index 000000000..400753820
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/property.go
@@ -0,0 +1,220 @@
+package otto
+
+// property
+
+type _propertyMode int
+
+const (
+ modeWriteMask _propertyMode = 0700
+ modeEnumerateMask = 0070
+ modeConfigureMask = 0007
+ modeOnMask = 0111
+ modeOffMask = 0000
+ modeSetMask = 0222 // If value is 2, then mode is neither "On" nor "Off"
+)
+
+type _propertyGetSet [2]*_object
+
+var _nilGetSetObject _object = _object{}
+
+type _property struct {
+ value interface{}
+ mode _propertyMode
+}
+
+func (self _property) writable() bool {
+ return self.mode&modeWriteMask == modeWriteMask&modeOnMask
+}
+
+func (self *_property) writeOn() {
+ self.mode = (self.mode & ^modeWriteMask) | (modeWriteMask & modeOnMask)
+}
+
+func (self *_property) writeOff() {
+ self.mode &= ^modeWriteMask
+}
+
+func (self *_property) writeClear() {
+ self.mode = (self.mode & ^modeWriteMask) | (modeWriteMask & modeSetMask)
+}
+
+func (self _property) writeSet() bool {
+ return 0 == self.mode&modeWriteMask&modeSetMask
+}
+
+func (self _property) enumerable() bool {
+ return self.mode&modeEnumerateMask == modeEnumerateMask&modeOnMask
+}
+
+func (self *_property) enumerateOn() {
+ self.mode = (self.mode & ^modeEnumerateMask) | (modeEnumerateMask & modeOnMask)
+}
+
+func (self *_property) enumerateOff() {
+ self.mode &= ^modeEnumerateMask
+}
+
+func (self _property) enumerateSet() bool {
+ return 0 == self.mode&modeEnumerateMask&modeSetMask
+}
+
+func (self _property) configurable() bool {
+ return self.mode&modeConfigureMask == modeConfigureMask&modeOnMask
+}
+
+func (self *_property) configureOn() {
+ self.mode = (self.mode & ^modeConfigureMask) | (modeConfigureMask & modeOnMask)
+}
+
+func (self *_property) configureOff() {
+ self.mode &= ^modeConfigureMask
+}
+
+func (self _property) configureSet() bool {
+ return 0 == self.mode&modeConfigureMask&modeSetMask
+}
+
+func (self _property) copy() *_property {
+ property := self
+ return &property
+}
+
+func (self _property) get(this *_object) Value {
+ switch value := self.value.(type) {
+ case Value:
+ return value
+ case _propertyGetSet:
+ if value[0] != nil {
+ return value[0].callGet(toValue(this))
+ }
+ }
+ return UndefinedValue()
+}
+
+func (self _property) isAccessorDescriptor() bool {
+ setGet, test := self.value.(_propertyGetSet)
+ return test && (setGet[0] != nil || setGet[1] != nil)
+}
+
+func (self _property) isDataDescriptor() bool {
+ if self.writeSet() { // Either "On" or "Off"
+ return true
+ }
+ value, valid := self.value.(Value)
+ return valid && !value.isEmpty()
+}
+
+func (self _property) isGenericDescriptor() bool {
+ return !(self.isDataDescriptor() || self.isAccessorDescriptor())
+}
+
+func (self _property) isEmpty() bool {
+ return self.mode == 0222 && self.isGenericDescriptor()
+}
+
+// _enumerableValue, _enumerableTrue, _enumerableFalse?
+// .enumerableValue() .enumerableExists()
+
+func toPropertyDescriptor(value Value) (descriptor _property) {
+ objectDescriptor := value._object()
+ if objectDescriptor == nil {
+ panic(newTypeError())
+ }
+
+ {
+ descriptor.mode = modeSetMask // Initially nothing is set
+ if objectDescriptor.hasProperty("enumerable") {
+ if objectDescriptor.get("enumerable").toBoolean() {
+ descriptor.enumerateOn()
+ } else {
+ descriptor.enumerateOff()
+ }
+ }
+
+ if objectDescriptor.hasProperty("configurable") {
+ if objectDescriptor.get("configurable").toBoolean() {
+ descriptor.configureOn()
+ } else {
+ descriptor.configureOff()
+ }
+ }
+
+ if objectDescriptor.hasProperty("writable") {
+ if objectDescriptor.get("writable").toBoolean() {
+ descriptor.writeOn()
+ } else {
+ descriptor.writeOff()
+ }
+ }
+ }
+
+ var getter, setter *_object
+ getterSetter := false
+
+ if objectDescriptor.hasProperty("get") {
+ value := objectDescriptor.get("get")
+ if value.IsDefined() {
+ if !value.isCallable() {
+ panic(newTypeError())
+ }
+ getter = value._object()
+ getterSetter = true
+ } else {
+ getter = &_nilGetSetObject
+ getterSetter = true
+ }
+ }
+
+ if objectDescriptor.hasProperty("set") {
+ value := objectDescriptor.get("set")
+ if value.IsDefined() {
+ if !value.isCallable() {
+ panic(newTypeError())
+ }
+ setter = value._object()
+ getterSetter = true
+ } else {
+ setter = &_nilGetSetObject
+ getterSetter = true
+ }
+ }
+
+ if getterSetter {
+ if descriptor.writeSet() {
+ panic(newTypeError())
+ }
+ descriptor.value = _propertyGetSet{getter, setter}
+ }
+
+ if objectDescriptor.hasProperty("value") {
+ if getterSetter {
+ panic(newTypeError())
+ }
+ descriptor.value = objectDescriptor.get("value")
+ }
+
+ return
+}
+
+func (self *_runtime) fromPropertyDescriptor(descriptor _property) *_object {
+ object := self.newObject()
+ if descriptor.isDataDescriptor() {
+ object.defineProperty("value", descriptor.value.(Value), 0111, false)
+ object.defineProperty("writable", toValue_bool(descriptor.writable()), 0111, false)
+ } else if descriptor.isAccessorDescriptor() {
+ getSet := descriptor.value.(_propertyGetSet)
+ get := UndefinedValue()
+ if getSet[0] != nil {
+ get = toValue_object(getSet[0])
+ }
+ set := UndefinedValue()
+ if getSet[1] != nil {
+ set = toValue_object(getSet[1])
+ }
+ object.defineProperty("get", get, 0111, false)
+ object.defineProperty("set", set, 0111, false)
+ }
+ object.defineProperty("enumerable", toValue_bool(descriptor.enumerable()), 0111, false)
+ object.defineProperty("configurable", toValue_bool(descriptor.configurable()), 0111, false)
+ return object
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/reflect_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/reflect_test.go
new file mode 100644
index 000000000..f91b38c52
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/reflect_test.go
@@ -0,0 +1,411 @@
+package otto
+
+import (
+ "math"
+ "reflect"
+ "testing"
+)
+
+type testStruct struct {
+ Abc bool
+ Def int
+ Ghi string
+ Jkl interface{}
+}
+
+func (t *testStruct) FuncPointerReciever() string {
+ return "abc"
+}
+
+func (t testStruct) FuncNoArgsNoRet() {
+ return
+}
+
+func (t testStruct) FuncNoArgs() string {
+ return "abc"
+}
+
+func (t testStruct) FuncNoArgsMultRet() (string, error) {
+ return "def", nil
+}
+
+func (t testStruct) FuncOneArgs(a string) string {
+ return a
+}
+
+func (t testStruct) FuncMultArgs(a, b string) string {
+ return a + b
+}
+
+func (t testStruct) FuncVarArgs(as ...string) int {
+ return len(as)
+}
+
+func TestReflect(t *testing.T) {
+ return
+ tt(t, func() {
+ // Testing dbgf
+ // These should panic
+ toValue("Xyzzy").toReflectValue(reflect.Ptr)
+ stringToReflectValue("Xyzzy", reflect.Ptr)
+ })
+}
+
+func Test_reflectStruct(t *testing.T) {
+ tt(t, func() {
+ test, vm := test()
+
+ // testStruct
+ {
+ abc := &testStruct{}
+ vm.Set("abc", abc)
+
+ test(`
+ abc.FuncPointerReciever();
+ `, "abc")
+
+ test(`
+ [ abc.Abc, abc.Ghi ];
+ `, "false,")
+
+ abc.Abc = true
+ abc.Ghi = "Nothing happens."
+
+ test(`
+ [ abc.Abc, abc.Ghi ];
+ `, "true,Nothing happens.")
+
+ *abc = testStruct{}
+
+ test(`
+ [ abc.Abc, abc.Ghi ];
+ `, "false,")
+
+ abc.Abc = true
+ abc.Ghi = "Xyzzy"
+ vm.Set("abc", abc)
+
+ test(`
+ [ abc.Abc, abc.Ghi ];
+ `, "true,Xyzzy")
+
+ is(abc.Abc, true)
+ test(`
+ abc.Abc = false;
+ abc.Def = 451;
+ abc.Ghi = "Nothing happens.";
+ abc.abc = "Something happens.";
+ [ abc.Def, abc.abc ];
+ `, "451,Something happens.")
+ is(abc.Abc, false)
+ is(abc.Def, 451)
+ is(abc.Ghi, "Nothing happens.")
+
+ test(`
+ delete abc.Def;
+ delete abc.abc;
+ [ abc.Def, abc.abc ];
+ `, "451,")
+ is(abc.Def, 451)
+
+ test(`
+ abc.FuncNoArgsNoRet();
+ `, "undefined")
+ test(`
+ abc.FuncNoArgs();
+ `, "abc")
+ test(`
+ abc.FuncOneArgs("abc");
+ `, "abc")
+ test(`
+ abc.FuncMultArgs("abc", "def");
+ `, "abcdef")
+ test(`
+ abc.FuncVarArgs("abc", "def", "ghi");
+ `, 3)
+
+ test(`raise:
+ abc.FuncNoArgsMultRet();
+ `, "TypeError")
+ }
+ })
+}
+
+func Test_reflectMap(t *testing.T) {
+ tt(t, func() {
+ test, vm := test()
+
+ // map[string]string
+ {
+ abc := map[string]string{
+ "Xyzzy": "Nothing happens.",
+ "def": "1",
+ }
+ vm.Set("abc", abc)
+
+ test(`
+ abc.xyz = "pqr";
+ [ abc.Xyzzy, abc.def, abc.ghi ];
+ `, "Nothing happens.,1,")
+
+ is(abc["xyz"], "pqr")
+ }
+
+ // map[string]float64
+ {
+ abc := map[string]float64{
+ "Xyzzy": math.Pi,
+ "def": 1,
+ }
+ vm.Set("abc", abc)
+
+ test(`
+ abc.xyz = "pqr";
+ abc.jkl = 10;
+ [ abc.Xyzzy, abc.def, abc.ghi ];
+ `, "3.141592653589793,1,")
+
+ is(abc["xyz"], math.NaN())
+ is(abc["jkl"], float64(10))
+ }
+
+ // map[string]int32
+ {
+ abc := map[string]int32{
+ "Xyzzy": 3,
+ "def": 1,
+ }
+ vm.Set("abc", abc)
+
+ test(`
+ abc.xyz = "pqr";
+ abc.jkl = 10;
+ [ abc.Xyzzy, abc.def, abc.ghi ];
+ `, "3,1,")
+
+ is(abc["xyz"], 0)
+ is(abc["jkl"], int32(10))
+
+ test(`
+ delete abc["Xyzzy"];
+ `)
+
+ _, exists := abc["Xyzzy"]
+ is(exists, false)
+ is(abc["Xyzzy"], 0)
+ }
+
+ // map[int32]string
+ {
+ abc := map[int32]string{
+ 0: "abc",
+ 1: "def",
+ }
+ vm.Set("abc", abc)
+
+ test(`
+ abc[2] = "pqr";
+ //abc.jkl = 10;
+ abc[3] = 10;
+ [ abc[0], abc[1], abc[2], abc[3] ]
+ `, "abc,def,pqr,10")
+
+ is(abc[2], "pqr")
+ is(abc[3], "10")
+
+ test(`
+ delete abc[2];
+ `)
+
+ _, exists := abc[2]
+ is(exists, false)
+ }
+
+ })
+}
+
+func Test_reflectSlice(t *testing.T) {
+ tt(t, func() {
+ test, vm := test()
+
+ // []bool
+ {
+ abc := []bool{
+ false,
+ true,
+ true,
+ false,
+ }
+ vm.Set("abc", abc)
+
+ test(`
+ abc;
+ `, "false,true,true,false")
+
+ test(`
+ abc[0] = true;
+ abc[abc.length-1] = true;
+ delete abc[2];
+ abc;
+ `, "true,true,false,true")
+
+ is(abc, []bool{true, true, false, true})
+ is(abc[len(abc)-1], true)
+ }
+
+ // []int32
+ {
+ abc := make([]int32, 4)
+ vm.Set("abc", abc)
+
+ test(`
+ abc;
+ `, "0,0,0,0")
+
+ test(`
+ abc[0] = 4.2;
+ abc[1] = "42";
+ abc[2] = 3.14;
+ abc;
+ `, "4,42,3,0")
+
+ is(abc, []int32{4, 42, 3, 0})
+
+ test(`
+ delete abc[1];
+ delete abc[2];
+ `)
+ is(abc[1], 0)
+ is(abc[2], 0)
+ }
+ })
+}
+
+func Test_reflectArray(t *testing.T) {
+ tt(t, func() {
+ test, vm := test()
+
+ // []bool
+ {
+ abc := [4]bool{
+ false,
+ true,
+ true,
+ false,
+ }
+ vm.Set("abc", abc)
+
+ test(`
+ abc;
+ `, "false,true,true,false")
+ // Unaddressable array
+
+ test(`
+ abc[0] = true;
+ abc[abc.length-1] = true;
+ abc;
+ `, "false,true,true,false")
+ // Again, unaddressable array
+
+ is(abc, [4]bool{false, true, true, false})
+ is(abc[len(abc)-1], false)
+ // ...
+ }
+
+ // []int32
+ {
+ abc := make([]int32, 4)
+ vm.Set("abc", abc)
+
+ test(`
+ abc;
+ `, "0,0,0,0")
+
+ test(`
+ abc[0] = 4.2;
+ abc[1] = "42";
+ abc[2] = 3.14;
+ abc;
+ `, "4,42,3,0")
+
+ is(abc, []int32{4, 42, 3, 0})
+ }
+
+ // []bool
+ {
+ abc := [4]bool{
+ false,
+ true,
+ true,
+ false,
+ }
+ vm.Set("abc", &abc)
+
+ test(`
+ abc;
+ `, "false,true,true,false")
+
+ test(`
+ abc[0] = true;
+ abc[abc.length-1] = true;
+ delete abc[2];
+ abc;
+ `, "true,true,false,true")
+
+ is(abc, [4]bool{true, true, false, true})
+ is(abc[len(abc)-1], true)
+ }
+
+ })
+}
+
+func Test_reflectArray_concat(t *testing.T) {
+ tt(t, func() {
+ test, vm := test()
+
+ vm.Set("ghi", []string{"jkl", "mno"})
+ vm.Set("pqr", []interface{}{"jkl", 42, 3.14159, true})
+ test(`
+ var def = {
+ "abc": ["abc"],
+ "xyz": ["xyz"]
+ };
+ xyz = pqr.concat(ghi, def.abc, def, def.xyz);
+ [ xyz, xyz.length ];
+ `, "jkl,42,3.14159,true,jkl,mno,abc,[object Object],xyz,9")
+ })
+}
+
+func Test_reflectMapInterface(t *testing.T) {
+ tt(t, func() {
+ test, vm := test()
+
+ {
+ abc := map[string]interface{}{
+ "Xyzzy": "Nothing happens.",
+ "def": "1",
+ "jkl": "jkl",
+ }
+ vm.Set("abc", abc)
+ vm.Set("mno", &testStruct{})
+
+ test(`
+ abc.xyz = "pqr";
+ abc.ghi = {};
+ abc.jkl = 3.14159;
+ abc.mno = mno;
+ mno.Abc = true;
+ mno.Ghi = "Something happens.";
+ [ abc.Xyzzy, abc.def, abc.ghi, abc.mno ];
+ `, "Nothing happens.,1,[object Object],[object Object]")
+
+ is(abc["xyz"], "pqr")
+ is(abc["ghi"], "[object Object]")
+ is(abc["jkl"], float64(3.14159))
+ mno, valid := abc["mno"].(*testStruct)
+ is(valid, true)
+ is(mno.Abc, true)
+ is(mno.Ghi, "Something happens.")
+ }
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/regexp_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/regexp_test.go
new file mode 100644
index 000000000..36183a0d9
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/regexp_test.go
@@ -0,0 +1,287 @@
+package otto
+
+import (
+ "fmt"
+ "testing"
+)
+
+func TestRegExp(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [
+ /abc/.toString(),
+ /abc/gim.toString(),
+ ""+/abc/gi.toString(),
+ new RegExp("1(\\d+)").toString(),
+ ];
+ `, "/abc/,/abc/gim,/abc/gi,/1(\\d+)/")
+
+ test(`
+ [
+ new RegExp("abc").exec("123abc456"),
+ null === new RegExp("xyzzy").exec("123abc456"),
+ new RegExp("1(\\d+)").exec("123abc456"),
+ new RegExp("xyzzy").test("123abc456"),
+ new RegExp("1(\\d+)").test("123abc456"),
+ new RegExp("abc").exec("123abc456"),
+ ];
+ `, "abc,true,123,23,false,true,abc")
+
+ test(`new RegExp("abc").toString()`, "/abc/")
+ test(`new RegExp("abc", "g").toString()`, "/abc/g")
+ test(`new RegExp("abc", "mig").toString()`, "/abc/gim")
+
+ result := test(`/(a)?/.exec('b')`, ",")
+ is(result._object().get("0"), "")
+ is(result._object().get("1"), "undefined")
+ is(result._object().get("length"), 2)
+
+ result = test(`/(a)?(b)?/.exec('b')`, "b,,b")
+ is(result._object().get("0"), "b")
+ is(result._object().get("1"), "undefined")
+ is(result._object().get("2"), "b")
+ is(result._object().get("length"), 3)
+
+ test(`/\u0041/.source`, "\\u0041")
+ test(`/\a/.source`, "\\a")
+ test(`/\;/.source`, "\\;")
+
+ test(`/a\a/.source`, "a\\a")
+ test(`/,\;/.source`, ",\\;")
+ test(`/ \ /.source`, " \\ ")
+
+ // Start sanity check...
+ test("eval(\"/abc/\").source", "abc")
+ test("eval(\"/\u0023/\").source", "#")
+ test("eval(\"/\u0058/\").source", "X")
+ test("eval(\"/\\\u0023/\").source == \"\\\u0023\"", true)
+ test("'0x' + '0058'", "0x0058")
+ test("'\\\\' + '0x' + '0058'", "\\0x0058")
+ // ...stop sanity check
+
+ test(`abc = '\\' + String.fromCharCode('0x' + '0058'); eval('/' + abc + '/').source`, "\\X")
+ test(`abc = '\\' + String.fromCharCode('0x0058'); eval('/' + abc + '/').source == "\\\u0058"`, true)
+ test(`abc = '\\' + String.fromCharCode('0x0023'); eval('/' + abc + '/').source == "\\\u0023"`, true)
+ test(`abc = '\\' + String.fromCharCode('0x0078'); eval('/' + abc + '/').source == "\\\u0078"`, true)
+
+ test(`
+ var abc = Object.getOwnPropertyDescriptor(RegExp, "prototype");
+ [ [ typeof RegExp.prototype ],
+ [ abc.writable, abc.enumerable, abc.configurable ] ];
+ `, "object,false,false,false")
+ })
+}
+
+func TestRegExp_global(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = /(?:ab|cd)\d?/g;
+ var found = [];
+ do {
+ match = abc.exec("ab cd2 ab34 cd");
+ if (match !== null) {
+ found.push(match[0]);
+ } else {
+ break;
+ }
+ } while (true);
+ found;
+ `, "ab,cd2,ab3,cd")
+ })
+}
+
+func TestRegExp_exec(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = /./g;
+ def = '123456';
+ ghi = 0;
+ while (ghi < 100 && abc.exec(def) !== null) {
+ ghi += 1;
+ }
+ [ ghi, def.length, ghi == def.length ];
+ `, "6,6,true")
+
+ test(`
+ abc = /[abc](\d)?/g;
+ def = 'a0 b c1 d3';
+ ghi = 0;
+ lastIndex = 0;
+ while (ghi < 100 && abc.exec(def) !== null) {
+ lastIndex = abc.lastIndex;
+ ghi += 1;
+
+ }
+ [ ghi, lastIndex ];
+ `, "3,7")
+
+ test(`
+ var abc = /[abc](\d)?/.exec("a0 b c1 d3");
+ [ abc.length, abc.input, abc.index, abc ];
+ `, "2,a0 b c1 d3,0,a0,0")
+
+ test(`raise:
+ var exec = RegExp.prototype.exec;
+ exec("Xyzzy");
+ `, "TypeError: Calling RegExp.exec on a non-RegExp object")
+
+ test(`
+ var abc = /\w{3}\d?/.exec("CE\uFFFFL\uFFDDbox127");
+ [ abc.input.length, abc.length, abc.input, abc.index, abc ];
+ `, "11,1,CE\uFFFFL\uFFDDbox127,5,box1")
+
+ test(`RegExp.prototype.exec.length`, 1)
+ test(`RegExp.prototype.exec.prototype`, "undefined")
+ })
+}
+
+func TestRegExp_test(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`RegExp.prototype.test.length`, 1)
+ test(`RegExp.prototype.test.prototype`, "undefined")
+ })
+}
+
+func TestRegExp_toString(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`RegExp.prototype.toString.length`, 0)
+ test(`RegExp.prototype.toString.prototype`, "undefined")
+ })
+}
+
+func TestRegExp_zaacbbbcac(t *testing.T) {
+ return
+ tt(t, func() {
+ test, _ := test()
+
+ // FIXME? TODO /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac")
+ test(`
+ var abc = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac");
+ [ abc.length, abc.index, abc ];
+ `, "6,0,zaacbbbcac,z,ac,a,,c")
+ })
+}
+
+func TestRegExpCopying(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = /xyzzy/i;
+ def = RegExp(abc);
+ abc.indicator = 1;
+ [ abc.indicator, def.indicator ];
+ `, "1,1")
+
+ test(`raise:
+ RegExp(new RegExp("\\d"), "1");
+ `, "TypeError: Cannot supply flags when constructing one RegExp from another")
+ })
+}
+
+func TestRegExp_multiline(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = /s$/m.exec("pairs\nmakes\tdouble");
+ [ abc.length, abc.index, abc ];
+ `, "1,4,s")
+ })
+}
+
+func TestRegExp_source(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [ /xyzzy/i.source, /./i.source ];
+ `, "xyzzy,.")
+
+ test(`
+ var abc = /./i;
+ var def = new RegExp(abc);
+ [ abc.source, def.source, abc.source === def.source ];
+ `, ".,.,true")
+
+ test(`
+ var abc = /./i;
+ var def = abc.hasOwnProperty("source");
+ var ghi = abc.source;
+ abc.source = "xyzzy";
+ [ def, abc.source ];
+ `, "true,.")
+ })
+}
+
+func TestRegExp_newRegExp(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ Math.toString();
+ var abc = new RegExp(Math,eval("\"g\""));
+ [ abc, abc.global ];
+ `, "/[object Math]/g,true")
+ })
+}
+
+func TestRegExp_flags(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = /./i;
+ var def = new RegExp(abc);
+ [ abc.multiline == def.multiline, abc.global == def.global, abc.ignoreCase == def.ignoreCase ];
+ `, "true,true,true")
+ })
+}
+
+func TestRegExp_controlCharacter(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ for code := 0x41; code < 0x5a; code++ {
+ string_ := string(code - 64)
+ test(fmt.Sprintf(`
+ var code = 0x%x;
+ var string = String.fromCharCode(code %% 32);
+ var result = (new RegExp("\\c" + String.fromCharCode(code))).exec(string);
+ [ code, string, result ];
+ `, code), fmt.Sprintf("%d,%s,%s", code, string_, string_))
+ }
+ })
+}
+
+func TestRegExp_notNotEmptyCharacterClass(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = /[\s\S]a/m.exec("a\naba");
+ [ abc.length, abc.input, abc ];
+ `, "1,a\naba,\na")
+ })
+}
+
+func TestRegExp_compile(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = /[\s\S]a/;
+ abc.compile('^\w+');
+ `, "undefined")
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/registry/README.markdown b/Godeps/_workspace/src/github.com/obscuren/otto/registry/README.markdown
new file mode 100644
index 000000000..ba2d38909
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/registry/README.markdown
@@ -0,0 +1,51 @@
+# registry
+--
+ import "github.com/robertkrimen/otto/registry"
+
+Package registry is an expirmental package to facillitate altering the otto
+runtime via import.
+
+This interface can change at any time.
+
+## Usage
+
+#### func Apply
+
+```go
+func Apply(callback func(Entry))
+```
+
+#### type Entry
+
+```go
+type Entry struct {
+}
+```
+
+
+#### func Register
+
+```go
+func Register(source func() string) *Entry
+```
+
+#### func (*Entry) Disable
+
+```go
+func (self *Entry) Disable()
+```
+
+#### func (*Entry) Enable
+
+```go
+func (self *Entry) Enable()
+```
+
+#### func (Entry) Source
+
+```go
+func (self Entry) Source() string
+```
+
+--
+**godocdown** http://github.com/robertkrimen/godocdown
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/registry/registry.go b/Godeps/_workspace/src/github.com/obscuren/otto/registry/registry.go
new file mode 100644
index 000000000..966638ac4
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/registry/registry.go
@@ -0,0 +1,47 @@
+/*
+Package registry is an expirmental package to facillitate altering the otto runtime via import.
+
+This interface can change at any time.
+*/
+package registry
+
+var registry []*Entry = make([]*Entry, 0)
+
+type Entry struct {
+ active bool
+ source func() string
+}
+
+func newEntry(source func() string) *Entry {
+ return &Entry{
+ active: true,
+ source: source,
+ }
+}
+
+func (self *Entry) Enable() {
+ self.active = true
+}
+
+func (self *Entry) Disable() {
+ self.active = false
+}
+
+func (self Entry) Source() string {
+ return self.source()
+}
+
+func Apply(callback func(Entry)) {
+ for _, entry := range registry {
+ if !entry.active {
+ continue
+ }
+ callback(*entry)
+ }
+}
+
+func Register(source func() string) *Entry {
+ entry := newEntry(source)
+ registry = append(registry, entry)
+ return entry
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/result.go b/Godeps/_workspace/src/github.com/obscuren/otto/result.go
new file mode 100644
index 000000000..cf42c423a
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/result.go
@@ -0,0 +1,30 @@
+package otto
+
+import ()
+
+type _resultKind int
+
+const (
+ resultNormal _resultKind = iota
+ resultReturn
+ resultBreak
+ resultContinue
+)
+
+type _result struct {
+ kind _resultKind
+ value Value
+ target string
+}
+
+func newReturnResult(value Value) _result {
+ return _result{resultReturn, value, ""}
+}
+
+func newContinueResult(target string) _result {
+ return _result{resultContinue, emptyValue(), target}
+}
+
+func newBreakResult(target string) _result {
+ return _result{resultBreak, emptyValue(), target}
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/runtime.go b/Godeps/_workspace/src/github.com/obscuren/otto/runtime.go
new file mode 100644
index 000000000..76e51d78c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/runtime.go
@@ -0,0 +1,394 @@
+package otto
+
+import (
+ "errors"
+ "reflect"
+
+ "github.com/robertkrimen/otto/ast"
+ "github.com/robertkrimen/otto/parser"
+)
+
+type _global struct {
+ Object *_object // Object( ... ), new Object( ... ) - 1 (length)
+ Function *_object // Function( ... ), new Function( ... ) - 1
+ Array *_object // Array( ... ), new Array( ... ) - 1
+ String *_object // String( ... ), new String( ... ) - 1
+ Boolean *_object // Boolean( ... ), new Boolean( ... ) - 1
+ Number *_object // Number( ... ), new Number( ... ) - 1
+ Math *_object
+ Date *_object // Date( ... ), new Date( ... ) - 7
+ RegExp *_object // RegExp( ... ), new RegExp( ... ) - 2
+ Error *_object // Error( ... ), new Error( ... ) - 1
+ EvalError *_object
+ TypeError *_object
+ RangeError *_object
+ ReferenceError *_object
+ SyntaxError *_object
+ URIError *_object
+ JSON *_object
+
+ ObjectPrototype *_object // Object.prototype
+ FunctionPrototype *_object // Function.prototype
+ ArrayPrototype *_object // Array.prototype
+ StringPrototype *_object // String.prototype
+ BooleanPrototype *_object // Boolean.prototype
+ NumberPrototype *_object // Number.prototype
+ DatePrototype *_object // Date.prototype
+ RegExpPrototype *_object // RegExp.prototype
+ ErrorPrototype *_object // Error.prototype
+ EvalErrorPrototype *_object
+ TypeErrorPrototype *_object
+ RangeErrorPrototype *_object
+ ReferenceErrorPrototype *_object
+ SyntaxErrorPrototype *_object
+ URIErrorPrototype *_object
+}
+
+type _runtime struct {
+ Stack [](*_executionContext)
+
+ GlobalObject *_object
+ GlobalEnvironment *_objectEnvironment
+
+ Global _global
+
+ eval *_object // The builtin eval, for determine indirect versus direct invocation
+
+ Otto *Otto
+
+ labels []string // FIXME
+}
+
+func (self *_runtime) EnterGlobalExecutionContext() {
+ self.EnterExecutionContext(newExecutionContext(self.GlobalEnvironment, self.GlobalEnvironment, self.GlobalObject))
+}
+
+func (self *_runtime) EnterExecutionContext(scope *_executionContext) {
+ self.Stack = append(self.Stack, scope)
+}
+
+func (self *_runtime) LeaveExecutionContext() {
+ self.Stack = self.Stack[:len(self.Stack)-1]
+}
+
+func (self *_runtime) _executionContext(depth int) *_executionContext {
+ if depth == 0 {
+ return self.Stack[len(self.Stack)-1]
+ }
+ if len(self.Stack)-1+depth >= 0 {
+ return self.Stack[len(self.Stack)-1+depth]
+ }
+ return nil
+}
+
+func (self *_runtime) EnterFunctionExecutionContext(function *_object, this Value) *_functionEnvironment {
+ scopeEnvironment := function.functionValue().call.ScopeEnvironment()
+ if scopeEnvironment == nil {
+ scopeEnvironment = self.GlobalEnvironment
+ }
+ environment := self.newFunctionEnvironment(scopeEnvironment)
+ var thisObject *_object
+ switch this._valueType {
+ case valueUndefined, valueNull:
+ thisObject = self.GlobalObject
+ default:
+ thisObject = self.toObject(this)
+ }
+ self.EnterExecutionContext(newExecutionContext(environment, environment, thisObject))
+ return environment
+}
+
+func (self *_runtime) EnterEvalExecutionContext(call FunctionCall) {
+ // Skip the current function lexical/variable environment, which is of the function execution context call
+ // to eval (the global execution context). Instead, execute in the context of where the eval was called,
+ // which is essentially dynamic scoping
+ parent := self._executionContext(-1)
+ new := newExecutionContext(parent.LexicalEnvironment, parent.VariableEnvironment, parent.this)
+ // FIXME Make passing through of self.GlobalObject more general? Whenever newExecutionContext is passed a nil object?
+ new.eval = true
+ self.EnterExecutionContext(new)
+}
+
+func (self *_runtime) GetValue(value Value) Value {
+ if value.isReference() {
+ return value.reference().GetValue()
+ }
+ return value
+}
+
+func (self *_runtime) PutValue(reference _reference, value Value) {
+ if !reference.PutValue(value) {
+ // Why? -- If reference.Base == nil
+ strict := false
+ self.GlobalObject.defineProperty(reference.GetName(), value, 0111, strict)
+ }
+}
+
+func (self *_runtime) Call(function *_object, this Value, argumentList []Value, evalHint bool) Value {
+ // Pass eval boolean through to EnterFunctionExecutionContext for further testing
+ _functionEnvironment := self.EnterFunctionExecutionContext(function, this)
+ defer func() {
+ self.LeaveExecutionContext()
+ }()
+
+ if evalHint {
+ evalHint = function == self.eval // If evalHint is true, then it IS a direct eval
+ }
+ callValue := function.functionValue().call.Dispatch(function, _functionEnvironment, self, this, argumentList, evalHint)
+ if value, valid := callValue.value.(_result); valid {
+ return value.value
+ }
+ return callValue
+}
+
+func (self *_runtime) tryCatchEvaluate(inner func() Value) (tryValue Value, exception bool) {
+ // resultValue = The value of the block (e.g. the last statement)
+ // throw = Something was thrown
+ // throwValue = The value of what was thrown
+ // other = Something that changes flow (return, break, continue) that is not a throw
+ // Otherwise, some sort of unknown panic happened, we'll just propagate it
+ defer func() {
+ if caught := recover(); caught != nil {
+ if exception, ok := caught.(*_exception); ok {
+ caught = exception.eject()
+ }
+ switch caught := caught.(type) {
+ case _error:
+ exception = true
+ tryValue = toValue_object(self.newError(caught.Name, caught.MessageValue()))
+ //case *_syntaxError:
+ // exception = true
+ // tryValue = toValue_object(self.newError("SyntaxError", toValue_string(caught.Message)))
+ case Value:
+ exception = true
+ tryValue = caught
+ default:
+ panic(caught)
+ }
+ }
+ }()
+
+ tryValue = inner()
+ return
+}
+
+// _executionContext Proxy
+
+func (self *_runtime) localGet(name string) Value {
+ return self._executionContext(0).getValue(name)
+}
+
+func (self *_runtime) localSet(name string, value Value) {
+ self._executionContext(0).setValue(name, value, false)
+}
+
+func (self *_runtime) VariableEnvironment() _environment {
+ return self._executionContext(0).VariableEnvironment
+}
+
+func (self *_runtime) LexicalEnvironment() _environment {
+ return self._executionContext(0).LexicalEnvironment
+}
+
+// toObject
+
+func (self *_runtime) toObject(value Value) *_object {
+ switch value._valueType {
+ case valueEmpty, valueUndefined, valueNull:
+ panic(newTypeError())
+ case valueBoolean:
+ return self.newBoolean(value)
+ case valueString:
+ return self.newString(value)
+ case valueNumber:
+ return self.newNumber(value)
+ case valueObject:
+ return value._object()
+ }
+ panic(newTypeError())
+}
+
+func (self *_runtime) objectCoerce(value Value) (*_object, error) {
+ switch value._valueType {
+ case valueUndefined:
+ return nil, errors.New("undefined")
+ case valueNull:
+ return nil, errors.New("null")
+ case valueBoolean:
+ return self.newBoolean(value), nil
+ case valueString:
+ return self.newString(value), nil
+ case valueNumber:
+ return self.newNumber(value), nil
+ case valueObject:
+ return value._object(), nil
+ }
+ panic(newTypeError())
+}
+
+func checkObjectCoercible(value Value) {
+ isObject, mustCoerce := testObjectCoercible(value)
+ if !isObject && !mustCoerce {
+ panic(newTypeError())
+ }
+}
+
+// testObjectCoercible
+
+func testObjectCoercible(value Value) (isObject bool, mustCoerce bool) {
+ switch value._valueType {
+ case valueReference, valueEmpty, valueNull, valueUndefined:
+ return false, false
+ case valueNumber, valueString, valueBoolean:
+ isObject = false
+ mustCoerce = true
+ case valueObject:
+ isObject = true
+ mustCoerce = false
+ }
+ return
+}
+
+func (self *_runtime) ToValue(value interface{}) (Value, error) {
+ result := UndefinedValue()
+ err := catchPanic(func() {
+ result = self.toValue(value)
+ })
+ return result, err
+}
+
+func (self *_runtime) toValue(value interface{}) Value {
+ switch value := value.(type) {
+ case Value:
+ return value
+ case func(FunctionCall) Value:
+ return toValue_object(self.newNativeFunction("", value))
+ case _nativeFunction:
+ return toValue_object(self.newNativeFunction("", value))
+ case Object, *Object, _object, *_object:
+ // Nothing happens.
+ // FIXME
+ default:
+ {
+ value := reflect.ValueOf(value)
+ switch value.Kind() {
+ case reflect.Ptr:
+ switch reflect.Indirect(value).Kind() {
+ case reflect.Struct:
+ return toValue_object(self.newGoStructObject(value))
+ case reflect.Array:
+ return toValue_object(self.newGoArray(value))
+ }
+ case reflect.Func:
+ return toValue_object(self.newNativeFunction("", func(call FunctionCall) Value {
+ args := make([]reflect.Value, len(call.ArgumentList))
+ for i, a := range call.ArgumentList {
+ args[i] = reflect.ValueOf(a.export())
+ }
+
+ retvals := value.Call(args)
+ if len(retvals) > 1 {
+ panic(newTypeError())
+ } else if len(retvals) == 1 {
+ return toValue(retvals[0].Interface())
+ }
+ return UndefinedValue()
+ }))
+ case reflect.Struct:
+ return toValue_object(self.newGoStructObject(value))
+ case reflect.Map:
+ return toValue_object(self.newGoMapObject(value))
+ case reflect.Slice:
+ return toValue_object(self.newGoSlice(value))
+ case reflect.Array:
+ return toValue_object(self.newGoArray(value))
+ }
+ }
+ }
+ return toValue(value)
+}
+
+func (runtime *_runtime) newGoSlice(value reflect.Value) *_object {
+ self := runtime.newGoSliceObject(value)
+ self.prototype = runtime.Global.ArrayPrototype
+ return self
+}
+
+func (runtime *_runtime) newGoArray(value reflect.Value) *_object {
+ self := runtime.newGoArrayObject(value)
+ self.prototype = runtime.Global.ArrayPrototype
+ return self
+}
+
+func (runtime *_runtime) parse(filename string, src interface{}) (*ast.Program, error) {
+ return parser.ParseFile(nil, filename, src, 0)
+}
+
+func (runtime *_runtime) cmpl_parse(filename string, src interface{}) (*_nodeProgram, error) {
+ program, err := parser.ParseFile(nil, filename, src, 0)
+ if err != nil {
+ return nil, err
+ }
+ return cmpl_parse(program), nil
+}
+
+func (self *_runtime) parseSource(src interface{}) (*_nodeProgram, *ast.Program, error) {
+ switch src := src.(type) {
+ case *ast.Program:
+ return nil, src, nil
+ case *Script:
+ return src.program, nil, nil
+ }
+ program, err := self.parse("", src)
+ return nil, program, err
+}
+
+func (self *_runtime) cmpl_run(src interface{}) (Value, error) {
+ result := UndefinedValue()
+ cmpl_program, program, err := self.parseSource(src)
+ if err != nil {
+ return result, err
+ }
+ if cmpl_program == nil {
+ cmpl_program = cmpl_parse(program)
+ }
+ err = catchPanic(func() {
+ result = self.cmpl_evaluate_nodeProgram(cmpl_program)
+ })
+ switch result._valueType {
+ case valueEmpty:
+ result = UndefinedValue()
+ case valueReference:
+ result = self.GetValue(result)
+ }
+ return result, err
+}
+
+func (self *_runtime) parseThrow(err error) {
+ if err == nil {
+ return
+ }
+ switch err := err.(type) {
+ case parser.ErrorList:
+ {
+ err := err[0]
+ if err.Message == "Invalid left-hand side in assignment" {
+ panic(newReferenceError(err.Message))
+ }
+ panic(newSyntaxError(err.Message))
+ }
+ }
+ panic(newSyntaxError(err.Error()))
+}
+
+func (self *_runtime) parseOrThrow(source string) *ast.Program {
+ program, err := self.parse("", source)
+ self.parseThrow(err) // Will panic/throw appropriately
+ return program
+}
+
+func (self *_runtime) cmpl_parseOrThrow(source string) *_nodeProgram {
+ program, err := self.cmpl_parse("", source)
+ self.parseThrow(err) // Will panic/throw appropriately
+ return program
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/runtime_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/runtime_test.go
new file mode 100644
index 000000000..8706d59a6
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/runtime_test.go
@@ -0,0 +1,778 @@
+package otto
+
+import (
+ "math"
+ "testing"
+)
+
+// FIXME terst, Review tests
+
+func TestOperator(t *testing.T) {
+ tt(t, func() {
+ test, vm := test()
+
+ test("xyzzy = 1")
+ test("xyzzy", 1)
+
+ if true {
+ vm.Set("twoPlusTwo", func(FunctionCall) Value {
+ return toValue(5)
+ })
+ test("twoPlusTwo( 1 )", 5)
+
+ test("1 + twoPlusTwo( 1 )", 6)
+
+ test("-1 + twoPlusTwo( 1 )", 4)
+ }
+
+ test("result = 4")
+ test("result", 4)
+
+ test("result += 1")
+ test("result", 5)
+
+ test("result *= 2")
+ test("result", 10)
+
+ test("result /= 2")
+ test("result", 5)
+
+ test("result = 112.51 % 3.1")
+ test("result", 0.9100000000000019)
+
+ test("result = 'Xyzzy'")
+ test("result", "Xyzzy")
+
+ test("result = 'Xyz' + 'zy'")
+ test("result", "Xyzzy")
+
+ test("result = \"Xyzzy\"")
+ test("result", "Xyzzy")
+
+ test("result = 1; result = result")
+ test("result", 1)
+
+ test(`
+ var result64
+ =
+ 64
+ , result10 =
+ 10
+ `)
+ test("result64", 64)
+ test("result10", 10)
+
+ test(`
+ result = 1;
+ result += 1;
+ `)
+ test("result", 2)
+ })
+}
+
+func TestFunction_(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ result = 2
+ xyzzy = function() {
+ result += 1
+ }
+ xyzzy()
+ result;
+ `, 3)
+
+ test(`
+ xyzzy = function() {
+ return 1
+ }
+ result = xyzzy()
+ `, 1)
+
+ test(`
+ xyzzy = function() {}
+ result = xyzzy()
+ `, "undefined")
+
+ test(`
+ xyzzy = function() {
+ return 64
+ return 1
+ }
+ result = xyzzy()
+ `, 64)
+
+ test(`
+ result = 4
+ xyzzy = function() {
+ result = 2
+ }
+ xyzzy();
+ result;
+ `, 2)
+
+ test(`
+ result = 4
+ xyzzy = function() {
+ var result
+ result = 2
+ }
+ xyzzy();
+ result;
+ `, 4)
+
+ test(`
+ xyzzy = function() {
+ var result = 4
+ return result
+ }
+ result = xyzzy()
+ `, 4)
+
+ test(`
+ xyzzy = function() {
+ function test() {
+ var result = 1
+ return result
+ }
+ return test() + 1
+ }
+ result = xyzzy() + 1
+ `, 3)
+
+ test(`
+ xyzzy = function() {
+ function test() {
+ var result = 1
+ return result
+ }
+ _xyzzy = 2
+ var result = _xyzzy + test() + 1
+ return result
+ }
+ result = xyzzy() + 1;
+ [ result, _xyzzy ];
+ `, "5,2")
+
+ test(`
+ xyzzy = function(apple) {
+ return 1
+ }
+ result = xyzzy(1)
+ `, 1)
+
+ test(`
+ xyzzy = function(apple) {
+ return apple + 1
+ }
+ result = xyzzy(2)
+ `, 3)
+
+ test(`
+ {
+ result = 1
+ result += 1;
+ }
+ `, 2)
+
+ test(`
+ var global = 1
+ outer = function() {
+ var global = 2
+ var inner = function(){
+ return global
+ }
+ return inner()
+ }
+ result = outer()
+ `, 2)
+
+ test(`
+ var apple = 1
+ var banana = function() {
+ return apple
+ }
+ var cherry = function() {
+ var apple = 2
+ return banana()
+ }
+ result = cherry()
+ `, 1)
+
+ test(`
+ function xyz() {
+ };
+ delete xyz;
+ `, false)
+
+ test(`
+ var abc = function __factorial(def){
+ if (def === 1) {
+ return def;
+ } else {
+ return __factorial(def-1)*def;
+ }
+ };
+ abc(3);
+ `, 6)
+ })
+}
+
+func TestDoWhile(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ limit = 4;
+ result = 0;
+ do {
+ result = result + 1;
+ limit = limit - 1;
+ } while (limit);
+ result;
+ `, 4)
+
+ test(`
+ result = eval("do {abc=1; break; abc=2;} while (0);");
+ [ result, abc ];
+ `, "1,1")
+ })
+}
+
+func TestContinueBreak(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ limit = 4
+ result = 0
+ while (limit) {
+ limit = limit - 1
+ if (limit) {
+ }
+ else {
+ break
+ }
+ result = result + 1
+ }
+ [ result, limit ];
+ `, "3,0")
+
+ test(`
+ limit = 4
+ result = 0
+ while (limit) {
+ limit = limit - 1
+ if (limit) {
+ continue
+ }
+ else {
+ break
+ }
+ result = result + 1
+ }
+ result;
+ `, 0)
+
+ test(`
+ limit = 4
+ result = 0
+ do {
+ limit = limit - 1
+ if (limit) {
+ continue
+ }
+ else {
+ break
+ }
+ result = result + 1
+ } while (limit)
+ result;
+ `, 0)
+ })
+}
+
+func TestTryCatchError(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc
+ try {
+ 1()
+ }
+ catch (def) {
+ abc = def
+ }
+ abc;
+ `, "TypeError: 1 is not a function")
+
+ })
+}
+
+func TestPositiveNegativeZero(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`1/0`, _Infinity)
+ test(`1/-0`, -_Infinity)
+ test(`
+ abc = -0
+ 1/abc
+ `, -_Infinity)
+ })
+}
+
+func TestComparison(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ undefined = 1; undefined;
+ `, "undefined")
+
+ test("undefined == undefined", true)
+
+ test("undefined != undefined", false)
+
+ test("null == null", true)
+
+ test("null != null", false)
+
+ test("0 == 1", false)
+
+ is(negativeZero(), -0)
+ is(positiveZero(), 0)
+ is(math.Signbit(negativeZero()), true)
+ is(positiveZero() == negativeZero(), true)
+
+ test("1 == 1", true)
+
+ test("'Hello, World.' == 'Goodbye, World.'", false)
+
+ test("'Hello, World.' == true", false)
+
+ test("'Hello, World.' == false", false)
+
+ test("'Hello, World.' == 1", false)
+
+ test("1 == 'Hello, World.'", false)
+
+ is(stringToFloat("-1"), -1)
+
+ test("0+Object", "0function Object() { [native code] }")
+ })
+}
+
+func TestComparisonRelational(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test("0 < 0", false)
+
+ test("0 > 0", false)
+
+ test("0 <= 0", true)
+
+ test("0 >= 0", true)
+
+ test("' 0' >= 0", true)
+
+ test("'_ 0' >= 0", false)
+ })
+}
+
+func TestArguments(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ xyzzy = function() {
+ return arguments[0]
+ }
+ result = xyzzy("xyzzy");
+ `, "xyzzy")
+
+ test(`
+ xyzzy = function() {
+ arguments[0] = "abcdef"
+ return arguments[0]
+ }
+ result = xyzzy("xyzzy");
+ `, "abcdef")
+
+ test(`
+ xyzzy = function(apple) {
+ apple = "abcdef"
+ return arguments[0]
+ }
+ result = xyzzy("xyzzy");
+ `, "abcdef")
+
+ test(`
+ (function(){
+ return arguments
+ })()
+ `, "[object Arguments]")
+
+ test(`
+ (function(){
+ return arguments.length
+ })()
+ `, 0)
+
+ test(`
+ (function(){
+ return arguments.length
+ })(1, 2, 4, 8, 10)
+ `, 5)
+ })
+}
+
+func TestObjectLiteral(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ ({});
+ `, "[object Object]")
+
+ test(`
+ var abc = {
+ xyzzy: "Nothing happens.",
+ get 1e2() {
+ return 3.14159;
+ },
+ get null() {
+ return true;
+ },
+ get "[\n]"() {
+ return "<>";
+ }
+ };
+ [ abc["1e2"], abc.null, abc["[\n]"] ];
+ `, "3.14159,true,<>")
+
+ test(`
+ var abc = {
+ xyzzy: "Nothing happens.",
+ set 1e2() {
+ this[3.14159] = 100;
+ return Math.random();
+ },
+ set null(def) {
+ this.def = def;
+ return Math.random();
+ },
+ };
+ [ abc["1e2"] = Infinity, abc[3.14159], abc.null = "xyz", abc.def ];
+ `, "Infinity,100,xyz,xyz")
+ })
+}
+
+func TestUnaryPrefix(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var result = 0;
+ [++result, result];
+ `, "1,1")
+
+ test(`
+ result = 0;
+ [--result, result];
+ `, "-1,-1")
+
+ test(`
+ var object = { valueOf: function() { return 1; } };
+ result = ++object;
+ [ result, typeof result ];
+ `, "2,number")
+
+ test(`
+ var object = { valueOf: function() { return 1; } };
+ result = --object;
+ [ result, typeof result ];
+ `, "0,number")
+ })
+}
+
+func TestUnaryPostfix(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var result = 0;
+ result++;
+ [ result++, result ];
+ `, "1,2")
+
+ test(`
+ result = 0;
+ result--;
+ [ result--, result ];
+ `, "-1,-2")
+
+ test(`
+ var object = { valueOf: function() { return 1; } };
+ result = object++;
+ [ result, typeof result ];
+ `, "1,number")
+
+ test(`
+ var object = { valueOf: function() { return 1; } };
+ result = object--
+ [ result, typeof result ];
+ `, "1,number")
+ })
+}
+
+func TestBinaryLogicalOperation(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = true
+ def = false
+ ghi = false
+ jkl = false
+ result = abc && def || ghi && jkl
+ `, false)
+
+ test(`
+ abc = true
+ def = true
+ ghi = false
+ jkl = false
+ result = abc && def || ghi && jkl
+ `, true)
+
+ })
+}
+
+func TestBinaryBitwiseOperation(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = 1 & 2;
+ def = 1 & 3;
+ ghi = 1 | 3;
+ jkl = 1 ^ 2;
+ mno = 1 ^ 3;
+ [ abc, def, ghi, jkl, mno ];
+ `, "0,1,3,3,2")
+ })
+}
+
+func TestBinaryShiftOperation(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ high = (1 << 30) - 1 + (1 << 30)
+ low = -high - 1
+ abc = 23 << 1
+ def = -105 >> 1
+ ghi = 23 << 2
+ jkl = 1 >>> 31
+ mno = 1 << 64
+ pqr = 1 >> 2
+ stu = -2 >> 4
+ vwx = low >> 1
+ yz = low >>> 1
+ `)
+ test("abc", 46)
+ test("def", -53)
+ test("ghi", 92)
+ test("jkl", 0)
+ test("mno", 1)
+ test("pqr", 0)
+ test("stu", -1)
+ test("vwx", -1073741824)
+ test("yz", 1073741824)
+ })
+}
+
+func TestParenthesizing(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = 1 + 2 * 3
+ def = (1 + 2) * 3
+ ghi = !(false || true)
+ jkl = !false || true
+ `)
+ test("abc", 7)
+ test("def", 9)
+ test("ghi", false)
+ test("jkl", true)
+ })
+}
+
+func Test_instanceof(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = {} instanceof Object;
+ `, true)
+
+ test(`
+ abc = "abc" instanceof Object;
+ `, false)
+
+ test(`raise:
+ abc = {} instanceof "abc";
+ `, "TypeError: Expecting a function in instanceof check, but got: abc")
+
+ test(`raise:
+ "xyzzy" instanceof Math;
+ `, "TypeError")
+ })
+}
+
+func TestIn(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = "prototype" in Object;
+ def = "xyzzy" in Object;
+ [ abc, def ];
+ `, "true,false")
+ })
+}
+
+func Test_new(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = new Boolean;
+ def = new Boolean(1);
+ [ abc, def ];
+ `, "false,true")
+ })
+}
+
+func TestNewFunction(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ new Function("return 11")()
+ `, 11)
+
+ test(`
+ abc = 10
+ new Function("abc += 1")()
+ abc
+ `, 11)
+
+ test(`
+ new Function("a", "b", "c", "return b + 2")(10, 11, 12)
+ `, 13)
+
+ test(`raise:
+ new 1
+ `, "TypeError: 1 is not a function")
+
+ // TODO Better error reporting: new this
+ test(`raise:
+ new this
+ `, "TypeError: [object environment] is not a function")
+
+ test(`raise:
+ new {}
+ `, "TypeError: [object Object] is not a function")
+ })
+}
+
+func TestNewPrototype(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = { 'xyzzy': 'Nothing happens.' }
+ function Xyzzy(){}
+ Xyzzy.prototype = abc;
+ (new Xyzzy()).xyzzy
+ `, "Nothing happens.")
+ })
+}
+
+func TestBlock(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc=0;
+ var ghi;
+ def: {
+ do {
+ abc++;
+ if (!(abc < 10)) {
+ break def;
+ ghi = "ghi";
+ }
+ } while (true);
+ }
+ [ abc,ghi ];
+ `, "10,")
+ })
+}
+
+func Test_toString(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ [undefined+""]
+ `, "undefined")
+ })
+}
+
+func TestEvaluationOrder(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ var abc = 0;
+ abc < (abc = 1) === true;
+ `, true)
+ })
+}
+
+func TestClone(t *testing.T) {
+ tt(t, func() {
+ vm1 := New()
+ vm1.Run(`
+ var abc = 1;
+ `)
+
+ vm2 := vm1.clone()
+ vm1.Run(`
+ abc += 2;
+ `)
+ vm2.Run(`
+ abc += 4;
+ `)
+
+ is(vm1.getValue("abc"), 3)
+ is(vm2.getValue("abc"), 5)
+ })
+}
+
+func Test_debugger(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ debugger;
+ `, "undefined")
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/script.go b/Godeps/_workspace/src/github.com/obscuren/otto/script.go
new file mode 100644
index 000000000..ed8aebbf4
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/script.go
@@ -0,0 +1,122 @@
+package otto
+
+import (
+ "bytes"
+ "encoding/gob"
+ "errors"
+
+ "github.com/robertkrimen/otto/parser"
+)
+
+var ErrVersion = errors.New("version mismatch")
+
+var scriptVersion = "2014-04-13/1"
+
+// Script is a handle for some (reusable) JavaScript.
+// Passing a Script value to a run method will evaluate the JavaScript.
+//
+type Script struct {
+ version string
+ program *_nodeProgram
+ filename string
+ src string
+}
+
+// Compile will parse the given source and return a Script value or nil and
+// an error if there was a problem during compilation.
+//
+// script, err := vm.Compile("", `var abc; if (!abc) abc = 0; abc += 2; abc;`)
+// vm.Run(script)
+//
+func (self *Otto) Compile(filename string, src interface{}) (*Script, error) {
+ {
+ src, err := parser.ReadSource(filename, src)
+ if err != nil {
+ return nil, err
+ }
+
+ program, err := self.runtime.parse(filename, src)
+ if err != nil {
+ return nil, err
+ }
+
+ cmpl_program := cmpl_parse(program)
+
+ script := &Script{
+ version: scriptVersion,
+ program: cmpl_program,
+ filename: filename,
+ src: string(src),
+ }
+
+ return script, nil
+ }
+}
+
+func (self *Script) String() string {
+ return "// " + self.filename + "\n" + self.src
+}
+
+// MarshalBinary will marshal a script into a binary form. A marshalled script
+// that is later unmarshalled can be executed on the same version of the otto runtime.
+//
+// The binary format can change at any time and should be considered unspecified and opaque.
+//
+func (self *Script) marshalBinary() ([]byte, error) {
+ var bfr bytes.Buffer
+ encoder := gob.NewEncoder(&bfr)
+ err := encoder.Encode(self.version)
+ if err != nil {
+ return nil, err
+ }
+ err = encoder.Encode(self.program)
+ if err != nil {
+ return nil, err
+ }
+ err = encoder.Encode(self.filename)
+ if err != nil {
+ return nil, err
+ }
+ err = encoder.Encode(self.src)
+ if err != nil {
+ return nil, err
+ }
+ return bfr.Bytes(), nil
+}
+
+// UnmarshalBinary will vivify a marshalled script into something usable. If the script was
+// originally marshalled on a different version of the otto runtime, then this method
+// will return an error.
+//
+// The binary format can change at any time and should be considered unspecified and opaque.
+//
+func (self *Script) unmarshalBinary(data []byte) error {
+ decoder := gob.NewDecoder(bytes.NewReader(data))
+ err := decoder.Decode(&self.version)
+ if err != nil {
+ goto error
+ }
+ if self.version != scriptVersion {
+ err = ErrVersion
+ goto error
+ }
+ err = decoder.Decode(&self.program)
+ if err != nil {
+ goto error
+ }
+ err = decoder.Decode(&self.filename)
+ if err != nil {
+ goto error
+ }
+ err = decoder.Decode(&self.src)
+ if err != nil {
+ goto error
+ }
+ return nil
+error:
+ self.version = ""
+ self.program = nil
+ self.filename = ""
+ self.src = ""
+ return err
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/script_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/script_test.go
new file mode 100644
index 000000000..1a25b8a95
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/script_test.go
@@ -0,0 +1,76 @@
+package otto
+
+import (
+ "testing"
+)
+
+func TestScript(t *testing.T) {
+ tt(t, func() {
+ return
+
+ vm := New()
+
+ script, err := vm.Compile("xyzzy", `var abc; if (!abc) abc = 0; abc += 2; abc;`)
+ is(err, nil)
+
+ str := script.String()
+ is(str, "// xyzzy\nvar abc; if (!abc) abc = 0; abc += 2; abc;")
+
+ value, err := vm.Run(script)
+ is(err, nil)
+ is(value, 2)
+
+ tmp, err := script.marshalBinary()
+ is(err, nil)
+ is(len(tmp), 1228)
+
+ {
+ script := &Script{}
+ err = script.unmarshalBinary(tmp)
+ is(err, nil)
+
+ is(script.String(), str)
+
+ value, err = vm.Run(script)
+ is(err, nil)
+ is(value, 4)
+
+ tmp, err = script.marshalBinary()
+ is(err, nil)
+ is(len(tmp), 1228)
+ }
+
+ {
+ script := &Script{}
+ err = script.unmarshalBinary(tmp)
+ is(err, nil)
+
+ is(script.String(), str)
+
+ value, err := vm.Run(script)
+ is(err, nil)
+ is(value, 6)
+
+ tmp, err = script.marshalBinary()
+ is(err, nil)
+ is(len(tmp), 1228)
+ }
+
+ {
+ version := scriptVersion
+ scriptVersion = "bogus"
+
+ script := &Script{}
+ err = script.unmarshalBinary(tmp)
+ is(err, "version mismatch")
+
+ is(script.String(), "// \n")
+ is(script.version, "")
+ is(script.program == nil, true)
+ is(script.filename, "")
+ is(script.src, "")
+
+ scriptVersion = version
+ }
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/string_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/string_test.go
new file mode 100644
index 000000000..b7b06324b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/string_test.go
@@ -0,0 +1,365 @@
+package otto
+
+import (
+ "testing"
+)
+
+func TestString(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = (new String("xyzzy")).length;
+ def = new String().length;
+ ghi = new String("Nothing happens.").length;
+ `)
+ test("abc", 5)
+ test("def", 0)
+ test("ghi", 16)
+ test(`"".length`, 0)
+ test(`"a\uFFFFbc".length`, 4)
+ test(`String(+0)`, "0")
+ test(`String(-0)`, "0")
+ test(`""+-0`, "0")
+ test(`
+ var abc = Object.getOwnPropertyDescriptor(String, "prototype");
+ [ [ typeof String.prototype ],
+ [ abc.writable, abc.enumerable, abc.configurable ] ];
+ `, "object,false,false,false")
+ })
+}
+
+func TestString_charAt(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = "xyzzy".charAt(0)
+ def = "xyzzy".charAt(11)
+ `)
+ test("abc", "x")
+ test("def", "")
+ })
+}
+
+func TestString_charCodeAt(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`
+ abc = "xyzzy".charCodeAt(0)
+ def = "xyzzy".charCodeAt(11)
+ `)
+ test("abc", 120)
+ test("def", _NaN)
+ })
+}
+
+func TestString_fromCharCode(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`String.fromCharCode()`, []uint16{})
+ test(`String.fromCharCode(88, 121, 122, 122, 121)`, []uint16{88, 121, 122, 122, 121}) // FIXME terst, Double-check these...
+ test(`String.fromCharCode("88", 121, 122, 122.05, 121)`, []uint16{88, 121, 122, 122, 121})
+ test(`String.fromCharCode("88", 121, 122, NaN, 121)`, []uint16{88, 121, 122, 0, 121})
+ test(`String.fromCharCode("0x21")`, []uint16{33})
+ test(`String.fromCharCode(-1).charCodeAt(0)`, 65535)
+ test(`String.fromCharCode(65535).charCodeAt(0)`, 65535)
+ test(`String.fromCharCode(65534).charCodeAt(0)`, 65534)
+ test(`String.fromCharCode(4294967295).charCodeAt(0)`, 65535)
+ test(`String.fromCharCode(4294967294).charCodeAt(0)`, 65534)
+ test(`String.fromCharCode(0x0024) === "$"`, true)
+ })
+}
+
+func TestString_concat(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`"".concat()`, "")
+ test(`"".concat("abc", "def")`, "abcdef")
+ test(`"".concat("abc", undefined, "def")`, "abcundefineddef")
+ })
+}
+
+func TestString_indexOf(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`"".indexOf("")`, 0)
+ test(`"".indexOf("", 11)`, 0)
+ test(`"abc".indexOf("")`, 0)
+ test(`"abc".indexOf("", 11)`, 3)
+ test(`"abc".indexOf("a")`, 0)
+ test(`"abc".indexOf("bc")`, 1)
+ test(`"abc".indexOf("bc", 11)`, -1)
+ test(`"$$abcdabcd".indexOf("ab", function(){return -Infinity;}())`, 2)
+ test(`"$$abcdabcd".indexOf("ab", function(){return NaN;}())`, 2)
+
+ test(`
+ var abc = {toString:function(){return "\u0041B";}}
+ var def = {valueOf:function(){return true;}}
+ var ghi = "ABB\u0041BABAB";
+ var jkl;
+ with(ghi) {
+ jkl = indexOf(abc, def);
+ }
+ jkl;
+ `, 3)
+ })
+}
+
+func TestString_lastIndexOf(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`"".lastIndexOf("")`, 0)
+ test(`"".lastIndexOf("", 11)`, 0)
+ test(`"abc".lastIndexOf("")`, 3)
+ test(`"abc".lastIndexOf("", 11)`, 3)
+ test(`"abc".lastIndexOf("a")`, 0)
+ test(`"abc".lastIndexOf("bc")`, 1)
+ test(`"abc".lastIndexOf("bc", 11)`, 1)
+ test(`"abc".lastIndexOf("bc", 0)`, -1)
+ test(`"abc".lastIndexOf("abcabcabc", 2)`, -1)
+ test(`"abc".lastIndexOf("abc", 0)`, 0)
+ test(`"abc".lastIndexOf("abc", 1)`, 0)
+ test(`"abc".lastIndexOf("abc", 2)`, 0)
+ test(`"abc".lastIndexOf("abc", 3)`, 0)
+
+ test(`
+ abc = new Object(true);
+ abc.lastIndexOf = String.prototype.lastIndexOf;
+ abc.lastIndexOf(true, false);
+ `, 0)
+ })
+}
+
+func TestString_match(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`"abc____abc_abc___".match(/__abc/)`, "__abc")
+ test(`"abc___abc_abc__abc__abc".match(/abc/g)`, "abc,abc,abc,abc,abc")
+ test(`"abc____abc_abc___".match(/__abc/g)`, "__abc")
+ test(`
+ abc = /abc/g
+ "abc___abc_abc__abc__abc".match(abc)
+ `, "abc,abc,abc,abc,abc")
+ test(`abc.lastIndex`, 23)
+ })
+}
+
+func TestString_replace(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`"abc_abc".replace(/abc/, "$&123")`, "abc123_abc")
+ test(`"abc_abc".replace(/abc/g, "$&123")`, "abc123_abc123")
+ test(`"abc_abc_".replace(/abc/g, "$&123")`, "abc123_abc123_")
+ test(`"_abc_abc_".replace(/abc/g, "$&123")`, "_abc123_abc123_")
+ test(`"abc".replace(/abc/, "$&123")`, "abc123")
+ test(`"abc_".replace(/abc/, "$&123")`, "abc123_")
+ test("\"^abc$\".replace(/abc/, \"$`def\")", "^^def$")
+ test("\"^abc$\".replace(/abc/, \"def$`\")", "^def^$")
+ test(`"_abc_abd_".replace(/ab(c|d)/g, "$1")`, "_c_d_")
+ test(`
+ "_abc_abd_".replace(/ab(c|d)/g, function(){
+ })
+ `, "_undefined_undefined_")
+
+ test(`"b".replace(/(a)?(b)?/, "_$1_")`, "__")
+ test(`
+ "b".replace(/(a)?(b)?/, function(a, b, c, d, e, f){
+ return [a, b, c, d, e, f]
+ })
+ `, "b,,b,0,b,")
+
+ test(`
+ var abc = 'She sells seashells by the seashore.';
+ var def = /sh/;
+ [ abc.replace(def, "$'" + 'sch') ];
+ `, "She sells seaells by the seashore.schells by the seashore.")
+ })
+}
+
+func TestString_search(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`"abc".search(/abc/)`, 0)
+ test(`"abc".search(/def/)`, -1)
+ test(`"abc".search(/c$/)`, 2)
+ test(`"abc".search(/$/)`, 3)
+ })
+}
+
+func TestString_split(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`"abc".split("", 1)`, "a")
+ test(`"abc".split("", 2)`, "a,b")
+ test(`"abc".split("", 3)`, "a,b,c")
+ test(`"abc".split("", 4)`, "a,b,c")
+ test(`"abc".split("", 11)`, "a,b,c")
+ test(`"abc".split("", 0)`, "")
+ test(`"abc".split("")`, "a,b,c")
+
+ test(`"abc".split(undefined)`, "abc")
+
+ test(`"__1__3_1__2__".split("_")`, ",,1,,3,1,,2,,")
+
+ test(`"__1__3_1__2__".split(/_/)`, ",,1,,3,1,,2,,")
+
+ test(`"ab".split(/a*/)`, ",b")
+
+ test(`_ = "A<B>bold</B>and<CODE>coded</CODE>".split(/<(\/)?([^<>]+)>/)`, "A,,B,bold,/,B,and,,CODE,coded,/,CODE,")
+ test(`_.length`, 13)
+ test(`_[1] === undefined`, true)
+ test(`_[12] === ""`, true)
+
+ test(`
+ var abc = new String("one-1 two-2 three-3");
+ var def = abc.split(new RegExp);
+
+ [ def.constructor === Array, abc.length, def.length, def.join('') ];
+ `, "true,19,19,one-1 two-2 three-3")
+ })
+}
+
+func TestString_slice(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`"abc".slice()`, "abc")
+ test(`"abc".slice(0)`, "abc")
+ test(`"abc".slice(0,11)`, "abc")
+ test(`"abc".slice(0,-1)`, "ab")
+ test(`"abc".slice(-1,11)`, "c")
+ test(`abc = "abc"; abc.slice(abc.length+1, 0)`, "")
+ })
+}
+
+func TestString_substring(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`"abc".substring()`, "abc")
+ test(`"abc".substring(0)`, "abc")
+ test(`"abc".substring(0,11)`, "abc")
+ test(`"abc".substring(11,0)`, "abc")
+ test(`"abc".substring(0,-1)`, "")
+ test(`"abc".substring(-1,11)`, "abc")
+ test(`"abc".substring(11,1)`, "bc")
+ test(`"abc".substring(1)`, "bc")
+ test(`"abc".substring(Infinity, Infinity)`, "")
+ })
+}
+
+func TestString_toCase(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`"abc".toLowerCase()`, "abc")
+ test(`"ABC".toLowerCase()`, "abc")
+ test(`"abc".toLocaleLowerCase()`, "abc")
+ test(`"ABC".toLocaleLowerCase()`, "abc")
+ test(`"abc".toUpperCase()`, "ABC")
+ test(`"ABC".toUpperCase()`, "ABC")
+ test(`"abc".toLocaleUpperCase()`, "ABC")
+ test(`"ABC".toLocaleUpperCase()`, "ABC")
+ })
+}
+
+func Test_floatToString(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`String(-1234567890)`, "-1234567890")
+ test(`-+String(-(-1234567890))`, -1234567890)
+ test(`String(-1e128)`, "-1e+128")
+ test(`String(0.12345)`, "0.12345")
+ test(`String(-0.00000012345)`, "-1.2345e-7")
+ test(`String(0.0000012345)`, "0.0000012345")
+ test(`String(1000000000000000000000)`, "1e+21")
+ test(`String(1e21)`, "1e+21")
+ test(`String(1E21)`, "1e+21")
+ test(`String(-1000000000000000000000)`, "-1e+21")
+ test(`String(-1e21)`, "-1e+21")
+ test(`String(-1E21)`, "-1e+21")
+ test(`String(0.0000001)`, "1e-7")
+ test(`String(1e-7)`, "1e-7")
+ test(`String(1E-7)`, "1e-7")
+ test(`String(-0.0000001)`, "-1e-7")
+ test(`String(-1e-7)`, "-1e-7")
+ test(`String(-1E-7)`, "-1e-7")
+ })
+}
+
+func TestString_indexing(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ // Actually a test of stringToArrayIndex, under the hood.
+ test(`
+ abc = new String("abc");
+ index = Math.pow(2, 32);
+ [ abc.length, abc[index], abc[index+1], abc[index+2], abc[index+3] ];
+ `, "3,,,,")
+ })
+}
+
+func TestString_trim(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`' \n abc \t \n'.trim();`, "abc")
+ test(`" abc\u000B".trim()`, "abc")
+ test(`"abc ".trim()`, "abc")
+ test(`
+ var a = "\u180Eabc \u000B "
+ var b = a.trim()
+ a.length + b.length
+ `, 10)
+ })
+}
+
+func TestString_trimLeft(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`" abc\u000B".trimLeft()`, "abc\u000B")
+ test(`"abc ".trimLeft()`, "abc ")
+ test(`
+ var a = "\u180Eabc \u000B "
+ var b = a.trimLeft()
+ a.length + b.length
+ `, 13)
+ })
+}
+
+func TestString_trimRight(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`" abc\u000B".trimRight()`, " abc")
+ test(`" abc ".trimRight()`, " abc")
+ test(`
+ var a = "\u180Eabc \u000B "
+ var b = a.trimRight()
+ a.length + b.length
+ `, 11)
+ })
+}
+
+func TestString_localeCompare(t *testing.T) {
+ tt(t, func() {
+ test, _ := test()
+
+ test(`'a'.localeCompare('c');`, -1)
+ test(`'c'.localeCompare('a');`, 1)
+ test(`'a'.localeCompare('a');`, 0)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/terst/terst.go b/Godeps/_workspace/src/github.com/obscuren/otto/terst/terst.go
new file mode 100644
index 000000000..a25ca8b9c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/terst/terst.go
@@ -0,0 +1,669 @@
+// This file was AUTOMATICALLY GENERATED by terst-import (smuggol) from github.com/robertkrimen/terst
+
+/*
+Package terst is a terse (terst = test + terse), easy-to-use testing library for Go.
+
+terst is compatible with (and works via) the standard testing package: http://golang.org/pkg/testing
+
+ var is = terst.Is
+
+ func Test(t *testing.T) {
+ terst.Terst(t, func() {
+ is("abc", "abc")
+
+ is(1, ">", 0)
+
+ var abc []int
+ is(abc, nil)
+ }
+ }
+
+Do not import terst directly, instead use `terst-import` to copy it into your testing environment:
+
+https://github.com/robertkrimen/terst/tree/master/terst-import
+
+ $ go get github.com/robertkrimen/terst/terst-import
+
+ $ terst-import
+
+*/
+package terst
+
+import (
+ "bytes"
+ "errors"
+ "fmt"
+ "math/big"
+ "reflect"
+ "regexp"
+ "runtime"
+ "strings"
+ "sync"
+ "testing"
+ "time"
+)
+
+// Is compares two values (got & expect) and returns true if the comparison is true,
+// false otherwise. In addition, if the comparison is false, Is will report the error
+// in a manner similar to testing.T.Error(...). Is also takes an optional argument,
+// a comparator, that changes how the comparison is made. The following
+// comparators are available:
+//
+// == # got == expect (default)
+// != # got != expect
+//
+// > # got > expect (float32, uint, uint16, int, int64, ...)
+// >= # got >= expect
+// < # got < expect
+// <= # got <= expect
+//
+// =~ # regexp.MustCompile(expect).Match{String}(got)
+// !~ # !regexp.MustCompile(expect).Match{String}(got)
+//
+// Basic usage with the default comparator (==):
+//
+// Is(<got>, <expect>)
+//
+// Specifying a different comparator:
+//
+// Is(<got>, <comparator>, <expect>)
+//
+// A simple comparison:
+//
+// Is(2 + 2, 4)
+//
+// A bit trickier:
+//
+// Is(1, ">", 0)
+// Is(2 + 2, "!=", 5)
+// Is("Nothing happens.", "=~", `ing(\s+)happens\.$`)
+//
+// Is should only be called under a Terst(t, ...) call. For a standalone version,
+// use IsErr. If no scope is found and the comparison is false, then Is will panic the error.
+//
+func Is(arguments ...interface{}) bool {
+ err := IsErr(arguments...)
+ if err != nil {
+ call := Caller()
+ if call == nil {
+ panic(err)
+ }
+ call.Error(err)
+ return false
+ }
+ return true
+}
+
+type (
+ // ErrFail indicates a comparison failure (e.g. 0 > 1).
+ ErrFail error
+
+ // ErrInvalid indicates an invalid comparison (e.g. bool == string).
+ ErrInvalid error
+)
+
+var errInvalid = errors.New("invalid")
+
+var registry = struct {
+ table map[uintptr]*_scope
+ lock sync.RWMutex
+}{
+ table: map[uintptr]*_scope{},
+}
+
+func registerScope(pc uintptr, scope *_scope) {
+ registry.lock.Lock()
+ defer registry.lock.Unlock()
+ registry.table[pc] = scope
+}
+
+func scope() *_scope {
+ scope, _ := findScope()
+ return scope
+}
+
+func floatCompare(a float64, b float64) int {
+ if a > b {
+ return 1
+ } else if a < b {
+ return -1
+ }
+ // NaN == NaN
+ return 0
+}
+
+func bigIntCompare(a *big.Int, b *big.Int) int {
+ return a.Cmp(b)
+}
+
+func bigInt(value int64) *big.Int {
+ return big.NewInt(value)
+}
+
+func bigUint(value uint64) *big.Int {
+ return big.NewInt(0).SetUint64(value)
+}
+
+type _toString interface {
+ String() string
+}
+
+func toString(value interface{}) (string, error) {
+ switch value := value.(type) {
+ case string:
+ return value, nil
+ case _toString:
+ return value.String(), nil
+ case error:
+ return value.Error(), nil
+ }
+ return "", errInvalid
+}
+
+func matchString(got string, expect *regexp.Regexp) (int, error) {
+ if expect.MatchString(got) {
+ return 0, nil
+ }
+ return -1, nil
+}
+
+func match(got []byte, expect *regexp.Regexp) (int, error) {
+ if expect.Match(got) {
+ return 0, nil
+ }
+ return -1, nil
+}
+
+func compareMatch(got, expect interface{}) (int, error) {
+ switch got := got.(type) {
+ case []byte:
+ switch expect := expect.(type) {
+ case string:
+ matcher, err := regexp.Compile(expect)
+ if err != nil {
+ return 0, err
+ }
+ return match(got, matcher)
+ case *regexp.Regexp:
+ return match(got, expect)
+ }
+ default:
+ if got, err := toString(got); err == nil {
+ switch expect := expect.(type) {
+ case string:
+ matcher, err := regexp.Compile(expect)
+ if err != nil {
+ return 0, err
+ }
+ return matchString(got, matcher)
+ case *regexp.Regexp:
+ return matchString(got, expect)
+ }
+ } else {
+ return 0, err
+ }
+ }
+ return 0, errInvalid
+}
+
+func floatPromote(value reflect.Value) (float64, error) {
+ kind := value.Kind()
+ if reflect.Int <= kind && kind <= reflect.Int64 {
+ return float64(value.Int()), nil
+ }
+ if reflect.Uint <= kind && kind <= reflect.Uint64 {
+ return float64(value.Uint()), nil
+ }
+ if reflect.Float32 <= kind && kind <= reflect.Float64 {
+ return value.Float(), nil
+ }
+ return 0, errInvalid
+}
+
+func bigIntPromote(value reflect.Value) (*big.Int, error) {
+ kind := value.Kind()
+ if reflect.Int <= kind && kind <= reflect.Int64 {
+ return bigInt(value.Int()), nil
+ }
+ if reflect.Uint <= kind && kind <= reflect.Uint64 {
+ return bigUint(value.Uint()), nil
+ }
+ return nil, errInvalid
+}
+
+func compareOther(got, expect interface{}) (int, error) {
+ {
+ switch expect.(type) {
+ case float32, float64:
+ return compareNumber(got, expect)
+ case uint, uint8, uint16, uint32, uint64:
+ return compareNumber(got, expect)
+ case int, int8, int16, int32, int64:
+ return compareNumber(got, expect)
+ case string:
+ var err error
+ got, err = toString(got)
+ if err != nil {
+ return 0, err
+ }
+ case nil:
+ got := reflect.ValueOf(got)
+ switch got.Kind() {
+ case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.Slice, reflect.Interface:
+ if got.IsNil() {
+ return 0, nil
+ }
+ return -1, nil
+ case reflect.Invalid: // reflect.Invalid: var abc interface{} = nil
+ return 0, nil
+ }
+ return 0, errInvalid
+ }
+ }
+
+ if reflect.ValueOf(got).Type() != reflect.ValueOf(expect).Type() {
+ return 0, errInvalid
+ }
+
+ if reflect.DeepEqual(got, expect) {
+ return 0, nil
+ }
+ return -1, nil
+}
+
+func compareNumber(got, expect interface{}) (int, error) {
+ {
+ got := reflect.ValueOf(got)
+ k0 := got.Kind()
+ expect := reflect.ValueOf(expect)
+ k1 := expect.Kind()
+ if reflect.Float32 <= k0 && k0 <= reflect.Float64 ||
+ reflect.Float32 <= k1 && k1 <= reflect.Float64 {
+ got, err := floatPromote(got)
+ if err != nil {
+ return 0, err
+ }
+ expect, err := floatPromote(expect)
+ if err != nil {
+ return 0, err
+ }
+ return floatCompare(got, expect), nil
+ } else {
+ got, err := bigIntPromote(got)
+ if err != nil {
+ return 0, err
+ }
+ expect, err := bigIntPromote(expect)
+ if err != nil {
+ return 0, err
+ }
+ return got.Cmp(expect), nil
+ }
+ }
+
+ return 0, errInvalid
+}
+
+// IsErr compares two values (got & expect) and returns nil if the comparison is true, an ErrFail if
+// the comparison is false, or an ErrInvalid if the comparison is invalid. IsErr also
+// takes an optional argument, a comparator, that changes how the comparison is made.
+//
+// Is & IsErr are similar but different:
+//
+// Is(...) // Should only be called within a Terst(...) call
+// IsErr(...) // A standalone comparator, the same as Is, just without the automatic reporting
+//
+func IsErr(arguments ...interface{}) error {
+ var got, expect interface{}
+ comparator := "=="
+ switch len(arguments) {
+ case 0, 1:
+ return fmt.Errorf("invalid number of arguments to IsErr: %d", len(arguments))
+ case 2:
+ got, expect = arguments[0], arguments[1]
+ default:
+ if value, ok := arguments[1].(string); ok {
+ comparator = value
+ } else {
+ return fmt.Errorf("invalid comparator: %v", arguments[1])
+ }
+ got, expect = arguments[0], arguments[2]
+ }
+
+ var result int
+ var err error
+
+ switch comparator {
+ case "<", "<=", ">", ">=":
+ result, err = compareNumber(got, expect)
+ case "=~", "!~":
+ result, err = compareMatch(got, expect)
+ case "==", "!=":
+ result, err = compareOther(got, expect)
+ default:
+ return fmt.Errorf("invalid comparator: %s", comparator)
+ }
+
+ if err == errInvalid {
+ return ErrInvalid(fmt.Errorf(
+ "\nINVALID (%s):\n got: %v (%T)\n expected: %v (%T)",
+ comparator,
+ got, got,
+ expect, expect,
+ ))
+ } else if err != nil {
+ return err
+ }
+
+ equality, pass := false, false
+
+ switch comparator {
+ case "==", "=~":
+ equality = true
+ pass = result == 0
+ case "!=", "!~":
+ equality = true
+ pass = result != 0
+ case "<":
+ pass = result < 0
+ case "<=":
+ pass = result <= 0
+ case ">":
+ pass = result > 0
+ case ">=":
+ pass = result >= 0
+ }
+
+ if !pass {
+ if equality {
+ if comparator[1] == '~' {
+ if value, ok := got.([]byte); ok {
+ return ErrFail(fmt.Errorf(
+ "\nFAIL (%s)\n got: %s %v%s\nexpected: %v%s",
+ comparator,
+ value, got, typeKindString(got),
+ expect, typeKindString(expect),
+ ))
+ }
+ }
+ return ErrFail(fmt.Errorf(
+ "\nFAIL (%s)\n got: %v%s\nexpected: %v%s",
+ comparator,
+ got, typeKindString(got),
+ expect, typeKindString(expect),
+ ))
+ }
+ return ErrFail(fmt.Errorf(
+ "\nFAIL (%s)\n got: %v%s\nexpected: %s %v%s",
+ comparator,
+ got, typeKindString(got),
+ comparator, expect, typeKindString(expect),
+ ))
+ }
+
+ return nil
+}
+
+func typeKindString(value interface{}) string {
+ reflectValue := reflect.ValueOf(value)
+ kind := reflectValue.Kind().String()
+ result := fmt.Sprintf("%T", value)
+ if kind == result {
+ if kind == "string" {
+ return ""
+ }
+ return fmt.Sprintf(" (%T)", value)
+ }
+ return fmt.Sprintf(" (%T=%s)", value, kind)
+}
+
+func (scope *_scope) reset() {
+ scope.name = ""
+ scope.output = scope.output[:]
+ scope.start = time.Time{}
+ scope.duration = 0
+}
+
+// Terst creates a testing scope, where Is can be called and errors will be reported
+// according to the top-level location of the comparison, and not where the Is call
+// actually takes place. For example:
+//
+// func test(value int) {
+// Is(value, 5) // <--- This failure is reported below.
+// }
+//
+// Terst(t, func(){
+//
+// Is(2, ">", 3) // <--- An error is reported here.
+//
+// test(5) // <--- An error is reported here.
+//
+// })
+//
+func Terst(t *testing.T, arguments ...func()) {
+ scope := &_scope{
+ t: t,
+ }
+
+ pc, _, _, ok := runtime.Caller(1) // TODO Associate with the Test... func
+ if !ok {
+ panic("Here be dragons.")
+ }
+
+ _, scope.testFunc = findTestFunc()
+
+ registerScope(pc, scope)
+
+ for _, fn := range arguments {
+ func() {
+ scope.reset()
+ name := scope.testFunc.Name()
+ index := strings.LastIndex(scope.testFunc.Name(), ".")
+ if index >= 0 {
+ name = name[index+1:] + "(Terst)"
+ } else {
+ name = "(Terst)"
+ }
+ name = "(Terst)"
+ scope.name = name
+ scope.start = time.Now()
+ defer func() {
+ scope.duration = time.Now().Sub(scope.start)
+ if err := recover(); err != nil {
+ scope.t.Fail()
+ scope.report()
+ panic(err)
+ }
+ scope.report()
+ }()
+ fn()
+ }()
+ }
+}
+
+// From "testing"
+func (scope *_scope) report() {
+ format := "~~~ %s: (Terst)\n%s"
+ if scope.t.Failed() {
+ fmt.Printf(format, "FAIL", scope.output)
+ } else if testing.Verbose() && len(scope.output) > 0 {
+ fmt.Printf(format, "PASS", scope.output)
+ }
+}
+
+func (scope *_scope) log(call _entry, str string) {
+ scope.mu.Lock()
+ defer scope.mu.Unlock()
+ scope.output = append(scope.output, decorate(call, str)...)
+}
+
+// decorate prefixes the string with the file and line of the call site
+// and inserts the final newline if needed and indentation tabs for formascing.
+func decorate(call _entry, s string) string {
+
+ file, line := call.File, call.Line
+ if call.PC > 0 {
+ // Truncate file name at last file name separator.
+ if index := strings.LastIndex(file, "/"); index >= 0 {
+ file = file[index+1:]
+ } else if index = strings.LastIndex(file, "\\"); index >= 0 {
+ file = file[index+1:]
+ }
+ } else {
+ file = "???"
+ line = 1
+ }
+ buf := new(bytes.Buffer)
+ // Every line is indented at least one tab.
+ buf.WriteByte('\t')
+ fmt.Fprintf(buf, "%s:%d: ", file, line)
+ lines := strings.Split(s, "\n")
+ if l := len(lines); l > 1 && lines[l-1] == "" {
+ lines = lines[:l-1]
+ }
+ for i, line := range lines {
+ if i > 0 {
+ // Second and subsequent lines are indented an extra tab.
+ buf.WriteString("\n\t\t")
+ }
+ buf.WriteString(line)
+ }
+ buf.WriteByte('\n')
+ return buf.String()
+}
+
+func findScope() (*_scope, _entry) {
+ registry.lock.RLock()
+ defer registry.lock.RUnlock()
+ table := registry.table
+ depth := 2 // Starting depth
+ call := _entry{}
+ for {
+ pc, _, _, ok := runtime.Caller(depth)
+ if !ok {
+ break
+ }
+ if scope, exists := table[pc]; exists {
+ pc, file, line, _ := runtime.Caller(depth - 3) // Terst(...) + func(){}() + fn() => ???()
+ call.PC = pc
+ call.File = file
+ call.Line = line
+ return scope, call
+ }
+ depth++
+ }
+ return nil, _entry{}
+}
+
+// Call is a reference to a line immediately under a Terst testing scope.
+type Call struct {
+ scope *_scope
+ entry _entry
+}
+
+// Caller will search the stack, looking for a Terst testing scope. If a scope
+// is found, then Caller returns a Call for logging errors, accessing testing.T, etc.
+// If no scope is found, Caller returns nil.
+func Caller() *Call {
+ scope, entry := findScope()
+ if scope == nil {
+ return nil
+ }
+ return &Call{
+ scope: scope,
+ entry: entry,
+ }
+}
+
+// TestFunc returns the *runtime.Func entry for the top-level Test...(t testing.T)
+// function.
+func (cl *Call) TestFunc() *runtime.Func {
+ return cl.scope.testFunc
+}
+
+// T returns the original testing.T passed to Terst(...)
+func (cl *Call) T() *testing.T {
+ return cl.scope.t
+}
+
+// Log is the terst version of `testing.T.Log`
+func (cl *Call) Log(arguments ...interface{}) {
+ cl.scope.log(cl.entry, fmt.Sprintln(arguments...))
+}
+
+// Logf is the terst version of `testing.T.Logf`
+func (cl *Call) Logf(format string, arguments ...interface{}) {
+ cl.scope.log(cl.entry, fmt.Sprintf(format, arguments...))
+}
+
+// Error is the terst version of `testing.T.Error`
+func (cl *Call) Error(arguments ...interface{}) {
+ cl.scope.log(cl.entry, fmt.Sprintln(arguments...))
+ cl.scope.t.Fail()
+}
+
+// Errorf is the terst version of `testing.T.Errorf`
+func (cl *Call) Errorf(format string, arguments ...interface{}) {
+ cl.scope.log(cl.entry, fmt.Sprintf(format, arguments...))
+ cl.scope.t.Fail()
+}
+
+// Skip is the terst version of `testing.T.Skip`
+func (cl *Call) Skip(arguments ...interface{}) {
+ cl.scope.log(cl.entry, fmt.Sprintln(arguments...))
+ cl.scope.t.SkipNow()
+}
+
+// Skipf is the terst version of `testing.T.Skipf`
+func (cl *Call) Skipf(format string, arguments ...interface{}) {
+ cl.scope.log(cl.entry, fmt.Sprintf(format, arguments...))
+ cl.scope.t.SkipNow()
+}
+
+type _scope struct {
+ t *testing.T
+ testFunc *runtime.Func
+ name string
+ mu sync.RWMutex
+ output []byte
+ start time.Time
+ duration time.Duration
+}
+
+type _entry struct {
+ PC uintptr
+ File string
+ Line int
+ Func *runtime.Func
+}
+
+func _findFunc(match string) (_entry, *runtime.Func) {
+ depth := 2 // Starting depth
+ for {
+ pc, file, line, ok := runtime.Caller(depth)
+ if !ok {
+ break
+ }
+ fn := runtime.FuncForPC(pc)
+ name := fn.Name()
+ if index := strings.LastIndex(name, match); index >= 0 {
+ // Assume we have an instance of TestXyzzy in a _test file
+ return _entry{
+ PC: pc,
+ File: file,
+ Line: line,
+ Func: fn,
+ }, fn
+ }
+ depth++
+ }
+ return _entry{}, nil
+}
+
+func findTestFunc() (_entry, *runtime.Func) {
+ return _findFunc(".Test")
+}
+
+func findTerstFunc() (_entry, *runtime.Func) {
+ return _findFunc(".Terst")
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/test/Makefile b/Godeps/_workspace/src/github.com/obscuren/otto/test/Makefile
new file mode 100644
index 000000000..ac76fdeac
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/test/Makefile
@@ -0,0 +1,26 @@
+.PHONY: test fetch clean build err report
+
+TESTER := tester
+
+test: $(TESTER)
+ for test in test-*.js; do ./$^ -test=true $$test 1>/dev/null || exit 1; done
+ @echo PASS
+
+report: $(TESTER)
+ ./$^ -report | grep -v "MT READY"
+
+fetch: $(TESTER)
+ ./$^ fetch
+
+build:
+ go build -a -o $(TESTER)
+
+$(TESTER): tester.go
+ $(MAKE) build
+
+clean:
+ rm -f test-*.js
+ rm -f $(TESTER)
+
+err: $(TESTER)
+ for test in test-*.js; do ./$^ $$test; done 2>$@
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/test/tester.go b/Godeps/_workspace/src/github.com/obscuren/otto/test/tester.go
new file mode 100644
index 000000000..ea694fd8d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/test/tester.go
@@ -0,0 +1,196 @@
+package main
+
+import (
+ "encoding/json"
+ "flag"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+ "os"
+ "regexp"
+ "strings"
+ "sync"
+ "text/tabwriter"
+
+ "github.com/robertkrimen/otto"
+ "github.com/robertkrimen/otto/parser"
+)
+
+var flag_test *bool = flag.Bool("test", false, "")
+var flag_report *bool = flag.Bool("report", false, "")
+
+var match_ReferenceError_not_defined = regexp.MustCompile(`^ReferenceError: \S+ is not defined$`)
+var match_lookahead = regexp.MustCompile(`Invalid regular expression: re2: Invalid \(\?[=!]\) <lookahead>`)
+var match_backreference = regexp.MustCompile(`Invalid regular expression: re2: Invalid \\\d <backreference>`)
+var match_TypeError_undefined = regexp.MustCompile(`^TypeError: Cannot access member '[^']+' of undefined$`)
+
+var target = map[string]string{
+ "test-angular-bindonce.js": "fail", // (anonymous): Line 1:944 Unexpected token ( (and 40 more errors)
+ "test-jsforce.js": "fail", // (anonymous): Line 9:28329 RuneError (and 5 more errors)
+ "test-chaplin.js": "parse", // Error: Chaplin requires Common.js or AMD modules
+ "test-dropbox.js.js": "parse", // Error: dropbox.js loaded in an unsupported JavaScript environment.
+ "test-epitome.js": "parse", // TypeError: undefined is not a function
+ "test-portal.js": "parse", // TypeError
+ "test-reactive-coffee.js": "parse", // Dependencies are not met for reactive: _ and $ not found
+ "test-scriptaculous.js": "parse", // script.aculo.us requires the Prototype JavaScript framework >= 1.6.0.3
+ "test-waypoints.js": "parse", // TypeError: undefined is not a function
+ "test-webuploader.js": "parse", // Error: `jQuery` is undefined
+ "test-xuijs.js": "parse", // TypeError: undefined is not a function
+}
+
+// http://cdnjs.com/
+// http://api.cdnjs.com/libraries
+
+func fetch(name, location string) error {
+ response, err := http.Get(location)
+ if err != nil {
+ return err
+ }
+ defer response.Body.Close()
+ body, err := ioutil.ReadAll(response.Body)
+ if err != nil {
+ return err
+ }
+
+ if !strings.HasSuffix(location, ".js") {
+ return nil
+ }
+
+ filename := "test-" + name + ".js"
+ fmt.Println(filename, len(body))
+ return ioutil.WriteFile(filename, body, 0644)
+}
+
+func test(filename string) error {
+ script, err := ioutil.ReadFile(filename)
+ if err != nil {
+ return err
+ }
+
+ if !*flag_report {
+ fmt.Fprintln(os.Stdout, filename, len(script))
+ }
+
+ parse := false
+ option := target[filename]
+
+ if option != "parse" {
+ vm := otto.New()
+ _, err = vm.Run(string(script))
+ if err != nil {
+ value := err.Error()
+ switch {
+ case match_ReferenceError_not_defined.MatchString(value):
+ case match_TypeError_undefined.MatchString(value):
+ case match_lookahead.MatchString(value):
+ case match_backreference.MatchString(value):
+ default:
+ return err
+ }
+ parse = true
+ }
+ }
+
+ if parse {
+ _, err = parser.ParseFile(nil, filename, string(script), parser.IgnoreRegExpErrors)
+ if err != nil {
+ return err
+ }
+ target[filename] = "parse"
+ }
+
+ return nil
+}
+
+func main() {
+ flag.Parse()
+
+ filename := ""
+
+ err := func() error {
+
+ if flag.Arg(0) == "fetch" {
+ response, err := http.Get("http://api.cdnjs.com/libraries")
+ if err != nil {
+ return err
+ }
+ defer response.Body.Close()
+ body, err := ioutil.ReadAll(response.Body)
+ if err != nil {
+ return err
+ }
+
+ var tmp map[string]interface{}
+
+ err = json.Unmarshal(body, &tmp)
+ if err != nil {
+ return err
+ }
+
+ var wg sync.WaitGroup
+
+ for _, value := range tmp["results"].([]interface{}) {
+ wg.Add(1)
+ library := value.(map[string]interface{})
+ go func() {
+ defer wg.Done()
+ fetch(library["name"].(string), library["latest"].(string))
+ }()
+ }
+
+ wg.Wait()
+
+ return nil
+ }
+
+ if *flag_report {
+ files, err := ioutil.ReadDir(".")
+ if err != nil {
+ return err
+ }
+ writer := tabwriter.NewWriter(os.Stdout, 0, 8, 0, '\t', 0)
+ fmt.Fprintln(writer, "", "\t| Status")
+ fmt.Fprintln(writer, "---", "\t| ---")
+ for _, file := range files {
+ filename := file.Name()
+ if !strings.HasPrefix(filename, "test-") {
+ continue
+ }
+ err := test(filename)
+ option := target[filename]
+ name := strings.TrimPrefix(strings.TrimSuffix(filename, ".js"), "test-")
+ if err == nil {
+ switch option {
+ case "":
+ fmt.Fprintln(writer, name, "\t| pass")
+ case "parse":
+ fmt.Fprintln(writer, name, "\t| pass (parse)")
+ case "re2":
+ continue
+ fmt.Fprintln(writer, name, "\t| unknown (re2)")
+ }
+ } else {
+ fmt.Fprintln(writer, name, "\t| fail")
+ }
+ }
+ writer.Flush()
+ return nil
+ }
+
+ filename = flag.Arg(0)
+ return test(filename)
+
+ }()
+ if err != nil {
+ if filename != "" {
+ if *flag_test && target[filename] == "fail" {
+ goto exit
+ }
+ fmt.Fprintf(os.Stderr, "%s: %s\n", filename, err.Error())
+ } else {
+ fmt.Fprintln(os.Stderr, err)
+ }
+ os.Exit(64)
+ }
+exit:
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/testing_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/testing_test.go
new file mode 100644
index 000000000..90d1771b9
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/testing_test.go
@@ -0,0 +1,128 @@
+package otto
+
+import (
+ "./terst"
+ "errors"
+ "strings"
+ "testing"
+ "time"
+)
+
+func tt(t *testing.T, arguments ...func()) {
+ halt := errors.New("A test was taking too long")
+ timer := time.AfterFunc(2*time.Second, func() {
+ panic(halt)
+ })
+ defer func() {
+ timer.Stop()
+ }()
+ terst.Terst(t, arguments...)
+}
+
+func is(arguments ...interface{}) bool {
+ var got, expect interface{}
+
+ switch len(arguments) {
+ case 0, 1:
+ return terst.Is(arguments...)
+ case 2:
+ got, expect = arguments[0], arguments[1]
+ default:
+ got, expect = arguments[0], arguments[2]
+ }
+
+ if value, ok := got.(Value); ok {
+ if _, ok := expect.(Value); !ok {
+ if value.value != nil {
+ got = value.value
+ }
+ }
+ }
+
+ if len(arguments) == 2 {
+ arguments[0] = got
+ arguments[1] = expect
+ } else {
+ arguments[0] = got
+ arguments[2] = expect
+ }
+
+ return terst.Is(arguments...)
+}
+
+func test(arguments ...interface{}) (func(string, ...interface{}) Value, *_tester) {
+ tester := newTester()
+ if len(arguments) > 0 {
+ tester.test(arguments[0].(string))
+ }
+ return tester.test, tester
+}
+
+type _tester struct {
+ vm *Otto
+}
+
+func newTester() *_tester {
+ return &_tester{
+ vm: New(),
+ }
+}
+
+func (self *_tester) Get(name string) (Value, error) {
+ return self.vm.Get(name)
+}
+
+func (self *_tester) Set(name string, value interface{}) Value {
+ err := self.vm.Set(name, value)
+ is(err, nil)
+ if err != nil {
+ terst.Caller().T().FailNow()
+ }
+ return self.vm.getValue(name)
+}
+
+func (self *_tester) Run(src interface{}) (Value, error) {
+ return self.vm.Run(src)
+}
+
+func (self *_tester) test(name string, expect ...interface{}) Value {
+ vm := self.vm
+ raise := false
+ defer func() {
+ if caught := recover(); caught != nil {
+ if exception, ok := caught.(*_exception); ok {
+ caught = exception.eject()
+ }
+ if raise {
+ if len(expect) > 0 {
+ is(caught, expect[0])
+ }
+ } else {
+ dbg("Panic, caught:", caught)
+ panic(caught)
+ }
+ }
+ }()
+ var value Value
+ var err error
+ if isIdentifier(name) {
+ value = vm.getValue(name)
+ } else {
+ source := name
+ index := strings.Index(source, "raise:")
+ if index == 0 {
+ raise = true
+ source = source[6:]
+ source = strings.TrimLeft(source, " ")
+ }
+ value, err = vm.runtime.cmpl_run(source)
+ if err != nil {
+ panic(err)
+ }
+ }
+ value = vm.runtime.GetValue(value)
+ if len(expect) > 0 {
+ is(value, expect[0])
+ }
+ return value
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/token/Makefile b/Godeps/_workspace/src/github.com/obscuren/otto/token/Makefile
new file mode 100644
index 000000000..1e85c7348
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/token/Makefile
@@ -0,0 +1,2 @@
+token_const.go: tokenfmt
+ ./$^ | gofmt > $@
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/token/README.markdown b/Godeps/_workspace/src/github.com/obscuren/otto/token/README.markdown
new file mode 100644
index 000000000..1865f23cc
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/token/README.markdown
@@ -0,0 +1,171 @@
+# token
+--
+ import "github.com/robertkrimen/otto/token"
+
+Package token defines constants representing the lexical tokens of JavaScript
+(ECMA5).
+
+## Usage
+
+```go
+const (
+ ILLEGAL
+ EOF
+ COMMENT
+ KEYWORD
+
+ STRING
+ BOOLEAN
+ NULL
+ NUMBER
+ IDENTIFIER
+
+ PLUS // +
+ MINUS // -
+ MULTIPLY // *
+ SLASH // /
+ REMAINDER // %
+
+ AND // &
+ OR // |
+ EXCLUSIVE_OR // ^
+ SHIFT_LEFT // <<
+ SHIFT_RIGHT // >>
+ UNSIGNED_SHIFT_RIGHT // >>>
+ AND_NOT // &^
+
+ ADD_ASSIGN // +=
+ SUBTRACT_ASSIGN // -=
+ MULTIPLY_ASSIGN // *=
+ QUOTIENT_ASSIGN // /=
+ REMAINDER_ASSIGN // %=
+
+ AND_ASSIGN // &=
+ OR_ASSIGN // |=
+ EXCLUSIVE_OR_ASSIGN // ^=
+ SHIFT_LEFT_ASSIGN // <<=
+ SHIFT_RIGHT_ASSIGN // >>=
+ UNSIGNED_SHIFT_RIGHT_ASSIGN // >>>=
+ AND_NOT_ASSIGN // &^=
+
+ LOGICAL_AND // &&
+ LOGICAL_OR // ||
+ INCREMENT // ++
+ DECREMENT // --
+
+ EQUAL // ==
+ STRICT_EQUAL // ===
+ LESS // <
+ GREATER // >
+ ASSIGN // =
+ NOT // !
+
+ BITWISE_NOT // ~
+
+ NOT_EQUAL // !=
+ STRICT_NOT_EQUAL // !==
+ LESS_OR_EQUAL // <=
+ GREATER_OR_EQUAL // <=
+
+ LEFT_PARENTHESIS // (
+ LEFT_BRACKET // [
+ LEFT_BRACE // {
+ COMMA // ,
+ PERIOD // .
+
+ RIGHT_PARENTHESIS // )
+ RIGHT_BRACKET // ]
+ RIGHT_BRACE // }
+ SEMICOLON // ;
+ COLON // :
+ QUESTION_MARK // ?
+
+ IF
+ IN
+ DO
+
+ VAR
+ FOR
+ NEW
+ TRY
+
+ THIS
+ ELSE
+ CASE
+ VOID
+ WITH
+
+ WHILE
+ BREAK
+ CATCH
+ THROW
+
+ RETURN
+ TYPEOF
+ DELETE
+ SWITCH
+
+ DEFAULT
+ FINALLY
+
+ FUNCTION
+ CONTINUE
+ DEBUGGER
+
+ INSTANCEOF
+)
+```
+
+#### type Token
+
+```go
+type Token int
+```
+
+Token is the set of lexical tokens in JavaScript (ECMA5).
+
+#### func IsKeyword
+
+```go
+func IsKeyword(literal string) (Token, bool)
+```
+IsKeyword returns the keyword token if literal is a keyword, a KEYWORD token if
+the literal is a future keyword (const, let, class, super, ...), or 0 if the
+literal is not a keyword.
+
+If the literal is a keyword, IsKeyword returns a second value indicating if the
+literal is considered a future keyword in strict-mode only.
+
+7.6.1.2 Future Reserved Words:
+
+ const
+ class
+ enum
+ export
+ extends
+ import
+ super
+
+7.6.1.2 Future Reserved Words (strict):
+
+ implements
+ interface
+ let
+ package
+ private
+ protected
+ public
+ static
+
+#### func (Token) String
+
+```go
+func (tkn Token) String() string
+```
+String returns the string corresponding to the token. For operators, delimiters,
+and keywords the string is the actual token string (e.g., for the token PLUS,
+the String() is "+"). For all other tokens the string corresponds to the token
+name (e.g. for the token IDENTIFIER, the string is "IDENTIFIER").
+
+--
+**godocdown** http://github.com/robertkrimen/godocdown
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/token/token.go b/Godeps/_workspace/src/github.com/obscuren/otto/token/token.go
new file mode 100644
index 000000000..0e941ac96
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/token/token.go
@@ -0,0 +1,116 @@
+// Package token defines constants representing the lexical tokens of JavaScript (ECMA5).
+package token
+
+import (
+ "strconv"
+)
+
+// Token is the set of lexical tokens in JavaScript (ECMA5).
+type Token int
+
+// String returns the string corresponding to the token.
+// For operators, delimiters, and keywords the string is the actual
+// token string (e.g., for the token PLUS, the String() is
+// "+"). For all other tokens the string corresponds to the token
+// name (e.g. for the token IDENTIFIER, the string is "IDENTIFIER").
+//
+func (tkn Token) String() string {
+ if 0 == tkn {
+ return "UNKNOWN"
+ }
+ if tkn < Token(len(token2string)) {
+ return token2string[tkn]
+ }
+ return "token(" + strconv.Itoa(int(tkn)) + ")"
+}
+
+// This is not used for anything
+func (tkn Token) precedence(in bool) int {
+
+ switch tkn {
+ case LOGICAL_OR:
+ return 1
+
+ case LOGICAL_AND:
+ return 2
+
+ case OR, OR_ASSIGN:
+ return 3
+
+ case EXCLUSIVE_OR:
+ return 4
+
+ case AND, AND_ASSIGN, AND_NOT, AND_NOT_ASSIGN:
+ return 5
+
+ case EQUAL,
+ NOT_EQUAL,
+ STRICT_EQUAL,
+ STRICT_NOT_EQUAL:
+ return 6
+
+ case LESS, GREATER, LESS_OR_EQUAL, GREATER_OR_EQUAL, INSTANCEOF:
+ return 7
+
+ case IN:
+ if in {
+ return 7
+ }
+ return 0
+
+ case SHIFT_LEFT, SHIFT_RIGHT, UNSIGNED_SHIFT_RIGHT:
+ fallthrough
+ case SHIFT_LEFT_ASSIGN, SHIFT_RIGHT_ASSIGN, UNSIGNED_SHIFT_RIGHT_ASSIGN:
+ return 8
+
+ case PLUS, MINUS, ADD_ASSIGN, SUBTRACT_ASSIGN:
+ return 9
+
+ case MULTIPLY, SLASH, REMAINDER, MULTIPLY_ASSIGN, QUOTIENT_ASSIGN, REMAINDER_ASSIGN:
+ return 11
+ }
+ return 0
+}
+
+type _keyword struct {
+ token Token
+ futureKeyword bool
+ strict bool
+}
+
+// IsKeyword returns the keyword token if literal is a keyword, a KEYWORD token
+// if the literal is a future keyword (const, let, class, super, ...), or 0 if the literal is not a keyword.
+//
+// If the literal is a keyword, IsKeyword returns a second value indicating if the literal
+// is considered a future keyword in strict-mode only.
+//
+// 7.6.1.2 Future Reserved Words:
+//
+// const
+// class
+// enum
+// export
+// extends
+// import
+// super
+//
+// 7.6.1.2 Future Reserved Words (strict):
+//
+// implements
+// interface
+// let
+// package
+// private
+// protected
+// public
+// static
+//
+func IsKeyword(literal string) (Token, bool) {
+ if keyword, exists := keywordTable[literal]; exists {
+ if keyword.futureKeyword {
+ return KEYWORD, keyword.strict
+ }
+ return keyword.token, false
+ }
+ return 0, false
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/token/token_const.go b/Godeps/_workspace/src/github.com/obscuren/otto/token/token_const.go
new file mode 100644
index 000000000..302153349
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/token/token_const.go
@@ -0,0 +1,349 @@
+package token
+
+const (
+ _ Token = iota
+
+ ILLEGAL
+ EOF
+ COMMENT
+ KEYWORD
+
+ STRING
+ BOOLEAN
+ NULL
+ NUMBER
+ IDENTIFIER
+
+ PLUS // +
+ MINUS // -
+ MULTIPLY // *
+ SLASH // /
+ REMAINDER // %
+
+ AND // &
+ OR // |
+ EXCLUSIVE_OR // ^
+ SHIFT_LEFT // <<
+ SHIFT_RIGHT // >>
+ UNSIGNED_SHIFT_RIGHT // >>>
+ AND_NOT // &^
+
+ ADD_ASSIGN // +=
+ SUBTRACT_ASSIGN // -=
+ MULTIPLY_ASSIGN // *=
+ QUOTIENT_ASSIGN // /=
+ REMAINDER_ASSIGN // %=
+
+ AND_ASSIGN // &=
+ OR_ASSIGN // |=
+ EXCLUSIVE_OR_ASSIGN // ^=
+ SHIFT_LEFT_ASSIGN // <<=
+ SHIFT_RIGHT_ASSIGN // >>=
+ UNSIGNED_SHIFT_RIGHT_ASSIGN // >>>=
+ AND_NOT_ASSIGN // &^=
+
+ LOGICAL_AND // &&
+ LOGICAL_OR // ||
+ INCREMENT // ++
+ DECREMENT // --
+
+ EQUAL // ==
+ STRICT_EQUAL // ===
+ LESS // <
+ GREATER // >
+ ASSIGN // =
+ NOT // !
+
+ BITWISE_NOT // ~
+
+ NOT_EQUAL // !=
+ STRICT_NOT_EQUAL // !==
+ LESS_OR_EQUAL // <=
+ GREATER_OR_EQUAL // <=
+
+ LEFT_PARENTHESIS // (
+ LEFT_BRACKET // [
+ LEFT_BRACE // {
+ COMMA // ,
+ PERIOD // .
+
+ RIGHT_PARENTHESIS // )
+ RIGHT_BRACKET // ]
+ RIGHT_BRACE // }
+ SEMICOLON // ;
+ COLON // :
+ QUESTION_MARK // ?
+
+ firstKeyword
+ IF
+ IN
+ DO
+
+ VAR
+ FOR
+ NEW
+ TRY
+
+ THIS
+ ELSE
+ CASE
+ VOID
+ WITH
+
+ WHILE
+ BREAK
+ CATCH
+ THROW
+
+ RETURN
+ TYPEOF
+ DELETE
+ SWITCH
+
+ DEFAULT
+ FINALLY
+
+ FUNCTION
+ CONTINUE
+ DEBUGGER
+
+ INSTANCEOF
+ lastKeyword
+)
+
+var token2string = [...]string{
+ ILLEGAL: "ILLEGAL",
+ EOF: "EOF",
+ COMMENT: "COMMENT",
+ KEYWORD: "KEYWORD",
+ STRING: "STRING",
+ BOOLEAN: "BOOLEAN",
+ NULL: "NULL",
+ NUMBER: "NUMBER",
+ IDENTIFIER: "IDENTIFIER",
+ PLUS: "+",
+ MINUS: "-",
+ MULTIPLY: "*",
+ SLASH: "/",
+ REMAINDER: "%",
+ AND: "&",
+ OR: "|",
+ EXCLUSIVE_OR: "^",
+ SHIFT_LEFT: "<<",
+ SHIFT_RIGHT: ">>",
+ UNSIGNED_SHIFT_RIGHT: ">>>",
+ AND_NOT: "&^",
+ ADD_ASSIGN: "+=",
+ SUBTRACT_ASSIGN: "-=",
+ MULTIPLY_ASSIGN: "*=",
+ QUOTIENT_ASSIGN: "/=",
+ REMAINDER_ASSIGN: "%=",
+ AND_ASSIGN: "&=",
+ OR_ASSIGN: "|=",
+ EXCLUSIVE_OR_ASSIGN: "^=",
+ SHIFT_LEFT_ASSIGN: "<<=",
+ SHIFT_RIGHT_ASSIGN: ">>=",
+ UNSIGNED_SHIFT_RIGHT_ASSIGN: ">>>=",
+ AND_NOT_ASSIGN: "&^=",
+ LOGICAL_AND: "&&",
+ LOGICAL_OR: "||",
+ INCREMENT: "++",
+ DECREMENT: "--",
+ EQUAL: "==",
+ STRICT_EQUAL: "===",
+ LESS: "<",
+ GREATER: ">",
+ ASSIGN: "=",
+ NOT: "!",
+ BITWISE_NOT: "~",
+ NOT_EQUAL: "!=",
+ STRICT_NOT_EQUAL: "!==",
+ LESS_OR_EQUAL: "<=",
+ GREATER_OR_EQUAL: "<=",
+ LEFT_PARENTHESIS: "(",
+ LEFT_BRACKET: "[",
+ LEFT_BRACE: "{",
+ COMMA: ",",
+ PERIOD: ".",
+ RIGHT_PARENTHESIS: ")",
+ RIGHT_BRACKET: "]",
+ RIGHT_BRACE: "}",
+ SEMICOLON: ";",
+ COLON: ":",
+ QUESTION_MARK: "?",
+ IF: "if",
+ IN: "in",
+ DO: "do",
+ VAR: "var",
+ FOR: "for",
+ NEW: "new",
+ TRY: "try",
+ THIS: "this",
+ ELSE: "else",
+ CASE: "case",
+ VOID: "void",
+ WITH: "with",
+ WHILE: "while",
+ BREAK: "break",
+ CATCH: "catch",
+ THROW: "throw",
+ RETURN: "return",
+ TYPEOF: "typeof",
+ DELETE: "delete",
+ SWITCH: "switch",
+ DEFAULT: "default",
+ FINALLY: "finally",
+ FUNCTION: "function",
+ CONTINUE: "continue",
+ DEBUGGER: "debugger",
+ INSTANCEOF: "instanceof",
+}
+
+var keywordTable = map[string]_keyword{
+ "if": _keyword{
+ token: IF,
+ },
+ "in": _keyword{
+ token: IN,
+ },
+ "do": _keyword{
+ token: DO,
+ },
+ "var": _keyword{
+ token: VAR,
+ },
+ "for": _keyword{
+ token: FOR,
+ },
+ "new": _keyword{
+ token: NEW,
+ },
+ "try": _keyword{
+ token: TRY,
+ },
+ "this": _keyword{
+ token: THIS,
+ },
+ "else": _keyword{
+ token: ELSE,
+ },
+ "case": _keyword{
+ token: CASE,
+ },
+ "void": _keyword{
+ token: VOID,
+ },
+ "with": _keyword{
+ token: WITH,
+ },
+ "while": _keyword{
+ token: WHILE,
+ },
+ "break": _keyword{
+ token: BREAK,
+ },
+ "catch": _keyword{
+ token: CATCH,
+ },
+ "throw": _keyword{
+ token: THROW,
+ },
+ "return": _keyword{
+ token: RETURN,
+ },
+ "typeof": _keyword{
+ token: TYPEOF,
+ },
+ "delete": _keyword{
+ token: DELETE,
+ },
+ "switch": _keyword{
+ token: SWITCH,
+ },
+ "default": _keyword{
+ token: DEFAULT,
+ },
+ "finally": _keyword{
+ token: FINALLY,
+ },
+ "function": _keyword{
+ token: FUNCTION,
+ },
+ "continue": _keyword{
+ token: CONTINUE,
+ },
+ "debugger": _keyword{
+ token: DEBUGGER,
+ },
+ "instanceof": _keyword{
+ token: INSTANCEOF,
+ },
+ "const": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ },
+ "class": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ },
+ "enum": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ },
+ "export": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ },
+ "extends": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ },
+ "import": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ },
+ "super": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ },
+ "implements": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ strict: true,
+ },
+ "interface": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ strict: true,
+ },
+ "let": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ strict: true,
+ },
+ "package": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ strict: true,
+ },
+ "private": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ strict: true,
+ },
+ "protected": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ strict: true,
+ },
+ "public": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ strict: true,
+ },
+ "static": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ strict: true,
+ },
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/token/tokenfmt b/Godeps/_workspace/src/github.com/obscuren/otto/token/tokenfmt
new file mode 100644
index 000000000..63dd5d9e6
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/token/tokenfmt
@@ -0,0 +1,222 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+
+my (%token, @order, @keywords);
+
+{
+ my $keywords;
+ my @const;
+ push @const, <<_END_;
+package token
+
+const(
+ _ Token = iota
+_END_
+
+ for (split m/\n/, <<_END_) {
+ILLEGAL
+EOF
+COMMENT
+KEYWORD
+
+STRING
+BOOLEAN
+NULL
+NUMBER
+IDENTIFIER
+
+PLUS +
+MINUS -
+MULTIPLY *
+SLASH /
+REMAINDER %
+
+AND &
+OR |
+EXCLUSIVE_OR ^
+SHIFT_LEFT <<
+SHIFT_RIGHT >>
+UNSIGNED_SHIFT_RIGHT >>>
+AND_NOT &^
+
+ADD_ASSIGN +=
+SUBTRACT_ASSIGN -=
+MULTIPLY_ASSIGN *=
+QUOTIENT_ASSIGN /=
+REMAINDER_ASSIGN %=
+
+AND_ASSIGN &=
+OR_ASSIGN |=
+EXCLUSIVE_OR_ASSIGN ^=
+SHIFT_LEFT_ASSIGN <<=
+SHIFT_RIGHT_ASSIGN >>=
+UNSIGNED_SHIFT_RIGHT_ASSIGN >>>=
+AND_NOT_ASSIGN &^=
+
+LOGICAL_AND &&
+LOGICAL_OR ||
+INCREMENT ++
+DECREMENT --
+
+EQUAL ==
+STRICT_EQUAL ===
+LESS <
+GREATER >
+ASSIGN =
+NOT !
+
+BITWISE_NOT ~
+
+NOT_EQUAL !=
+STRICT_NOT_EQUAL !==
+LESS_OR_EQUAL <=
+GREATER_OR_EQUAL <=
+
+LEFT_PARENTHESIS (
+LEFT_BRACKET [
+LEFT_BRACE {
+COMMA ,
+PERIOD .
+
+RIGHT_PARENTHESIS )
+RIGHT_BRACKET ]
+RIGHT_BRACE }
+SEMICOLON ;
+COLON :
+QUESTION_MARK ?
+
+firstKeyword
+IF
+IN
+DO
+
+VAR
+FOR
+NEW
+TRY
+
+THIS
+ELSE
+CASE
+VOID
+WITH
+
+WHILE
+BREAK
+CATCH
+THROW
+
+RETURN
+TYPEOF
+DELETE
+SWITCH
+
+DEFAULT
+FINALLY
+
+FUNCTION
+CONTINUE
+DEBUGGER
+
+INSTANCEOF
+lastKeyword
+_END_
+ chomp;
+
+ next if m/^\s*#/;
+
+ my ($name, $symbol) = m/(\w+)\s*(\S+)?/;
+
+ if (defined $symbol) {
+ push @order, $name;
+ push @const, "$name // $symbol";
+ $token{$name} = $symbol;
+ } elsif (defined $name) {
+ $keywords ||= $name eq 'firstKeyword';
+
+ push @const, $name;
+ #$const[-1] .= " Token = iota" if 2 == @const;
+ if ($name =~ m/^([A-Z]+)/) {
+ push @keywords, $name if $keywords;
+ push @order, $name;
+ if ($token{SEMICOLON}) {
+ $token{$name} = lc $1;
+ } else {
+ $token{$name} = $name;
+ }
+ }
+ } else {
+ push @const, "";
+ }
+
+ }
+ push @const, ")";
+ print join "\n", @const, "";
+}
+
+{
+ print <<_END_;
+
+var token2string = [...]string{
+_END_
+ for my $name (@order) {
+ print "$name: \"$token{$name}\",\n";
+ }
+ print <<_END_;
+}
+_END_
+
+ print <<_END_;
+
+var keywordTable = map[string]_keyword{
+_END_
+ for my $name (@keywords) {
+ print <<_END_
+ "@{[ lc $name ]}": _keyword{
+ token: $name,
+ },
+_END_
+ }
+
+ for my $name (qw/
+ const
+ class
+ enum
+ export
+ extends
+ import
+ super
+ /) {
+ print <<_END_
+ "$name": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ },
+_END_
+ }
+
+ for my $name (qw/
+ implements
+ interface
+ let
+ package
+ private
+ protected
+ public
+ static
+ /) {
+ print <<_END_
+ "$name": _keyword{
+ token: KEYWORD,
+ futureKeyword: true,
+ strict: true,
+ },
+_END_
+ }
+
+ print <<_END_;
+}
+_END_
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/type_arguments.go b/Godeps/_workspace/src/github.com/obscuren/otto/type_arguments.go
new file mode 100644
index 000000000..e23912ace
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/type_arguments.go
@@ -0,0 +1,106 @@
+package otto
+
+import (
+ "strconv"
+)
+
+func (runtime *_runtime) newArgumentsObject(indexOfParameterName []string, environment _environment, length int) *_object {
+ self := runtime.newClassObject("Arguments")
+
+ for index, _ := range indexOfParameterName {
+ name := strconv.FormatInt(int64(index), 10)
+ objectDefineOwnProperty(self, name, _property{Value{}, 0111}, false)
+ }
+
+ self.objectClass = _classArguments
+ self.value = _argumentsObject{
+ indexOfParameterName: indexOfParameterName,
+ environment: environment,
+ }
+
+ self.prototype = runtime.Global.ObjectPrototype
+
+ self.defineProperty("length", toValue_int(length), 0101, false)
+
+ return self
+}
+
+type _argumentsObject struct {
+ indexOfParameterName []string
+ // function(abc, def, ghi)
+ // indexOfParameterName[0] = "abc"
+ // indexOfParameterName[1] = "def"
+ // indexOfParameterName[2] = "ghi"
+ // ...
+ environment _environment
+}
+
+func (self0 _argumentsObject) clone(clone *_clone) _argumentsObject {
+ indexOfParameterName := make([]string, len(self0.indexOfParameterName))
+ copy(indexOfParameterName, self0.indexOfParameterName)
+ return _argumentsObject{
+ indexOfParameterName,
+ clone.environment(self0.environment),
+ }
+}
+
+func (self _argumentsObject) get(name string) (Value, bool) {
+ index := stringToArrayIndex(name)
+ if index >= 0 && index < int64(len(self.indexOfParameterName)) {
+ name := self.indexOfParameterName[index]
+ if name == "" {
+ return Value{}, false
+ }
+ return self.environment.GetBindingValue(name, false), true
+ }
+ return Value{}, false
+}
+
+func (self _argumentsObject) put(name string, value Value) {
+ index := stringToArrayIndex(name)
+ name = self.indexOfParameterName[index]
+ self.environment.SetMutableBinding(name, value, false)
+}
+
+func (self _argumentsObject) delete(name string) {
+ index := stringToArrayIndex(name)
+ self.indexOfParameterName[index] = ""
+}
+
+func argumentsGet(self *_object, name string) Value {
+ if value, exists := self.value.(_argumentsObject).get(name); exists {
+ return value
+ }
+ return objectGet(self, name)
+}
+
+func argumentsGetOwnProperty(self *_object, name string) *_property {
+ property := objectGetOwnProperty(self, name)
+ if value, exists := self.value.(_argumentsObject).get(name); exists {
+ property.value = value
+ }
+ return property
+}
+
+func argumentsDefineOwnProperty(self *_object, name string, descriptor _property, throw bool) bool {
+ if _, exists := self.value.(_argumentsObject).get(name); exists {
+ if !objectDefineOwnProperty(self, name, descriptor, false) {
+ return typeErrorResult(throw)
+ }
+ if value, valid := descriptor.value.(Value); valid {
+ self.value.(_argumentsObject).put(name, value)
+ }
+ return true
+ }
+ return objectDefineOwnProperty(self, name, descriptor, throw)
+}
+
+func argumentsDelete(self *_object, name string, throw bool) bool {
+ if !objectDelete(self, name, throw) {
+ return false
+ }
+ if _, exists := self.value.(_argumentsObject).get(name); exists {
+ self.value.(_argumentsObject).delete(name)
+ }
+ return true
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/type_array.go b/Godeps/_workspace/src/github.com/obscuren/otto/type_array.go
new file mode 100644
index 000000000..6c72824ff
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/type_array.go
@@ -0,0 +1,108 @@
+package otto
+
+import (
+ "strconv"
+)
+
+func (runtime *_runtime) newArrayObject(length uint32) *_object {
+ self := runtime.newObject()
+ self.class = "Array"
+ self.defineProperty("length", toValue_uint32(length), 0100, false)
+ self.objectClass = _classArray
+ return self
+}
+
+func isArray(object *_object) bool {
+ return object != nil && (object.class == "Array" || object.class == "GoArray")
+}
+
+func objectLength(object *_object) uint32 {
+ if object == nil {
+ return 0
+ }
+ switch object.class {
+ case "Array":
+ return object.get("length").value.(uint32)
+ case "String":
+ return uint32(object.get("length").value.(int))
+ case "GoArray":
+ return uint32(object.get("length").value.(int))
+ }
+ return 0
+}
+
+func arrayUint32(value Value) uint32 {
+ tmp := toInteger(value)
+ if !tmp.exact() || !isUint32(tmp.value) {
+ panic(newRangeError())
+ }
+ return uint32(tmp.value)
+}
+
+func arrayDefineOwnProperty(self *_object, name string, descriptor _property, throw bool) bool {
+ lengthProperty := self.getOwnProperty("length")
+ lengthValue, valid := lengthProperty.value.(Value)
+ if !valid {
+ panic("Array.length != Value{}")
+ }
+ length := lengthValue.value.(uint32)
+ if name == "length" {
+ if descriptor.value == nil {
+ return objectDefineOwnProperty(self, name, descriptor, throw)
+ }
+ newLengthValue, isValue := descriptor.value.(Value)
+ if !isValue {
+ panic(newTypeError())
+ }
+ newLength := arrayUint32(newLengthValue)
+ descriptor.value = toValue_uint32(newLength)
+ if newLength > length {
+ return objectDefineOwnProperty(self, name, descriptor, throw)
+ }
+ if !lengthProperty.writable() {
+ goto Reject
+ }
+ newWritable := true
+ if descriptor.mode&0700 == 0 {
+ // If writable is off
+ newWritable = false
+ descriptor.mode |= 0100
+ }
+ if !objectDefineOwnProperty(self, name, descriptor, throw) {
+ return false
+ }
+ for newLength < length {
+ length -= 1
+ if !self.delete(strconv.FormatInt(int64(length), 10), false) {
+ descriptor.value = toValue_uint32(length + 1)
+ if !newWritable {
+ descriptor.mode &= 0077
+ }
+ objectDefineOwnProperty(self, name, descriptor, false)
+ goto Reject
+ }
+ }
+ if !newWritable {
+ descriptor.mode &= 0077
+ objectDefineOwnProperty(self, name, descriptor, false)
+ }
+ } else if index := stringToArrayIndex(name); index >= 0 {
+ if index >= int64(length) && !lengthProperty.writable() {
+ goto Reject
+ }
+ if !objectDefineOwnProperty(self, strconv.FormatInt(index, 10), descriptor, false) {
+ goto Reject
+ }
+ if index >= int64(length) {
+ lengthProperty.value = toValue_uint32(uint32(index + 1))
+ objectDefineOwnProperty(self, "length", *lengthProperty, false)
+ return true
+ }
+ }
+ return objectDefineOwnProperty(self, name, descriptor, throw)
+Reject:
+ if throw {
+ panic(newTypeError())
+ }
+ return false
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/type_boolean.go b/Godeps/_workspace/src/github.com/obscuren/otto/type_boolean.go
new file mode 100644
index 000000000..c24409de1
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/type_boolean.go
@@ -0,0 +1,13 @@
+package otto
+
+import (
+ "strconv"
+)
+
+func (runtime *_runtime) newBooleanObject(value Value) *_object {
+ return runtime.newPrimitiveObject("Boolean", toValue_bool(toBoolean(value)))
+}
+
+func booleanToString(value bool) string {
+ return strconv.FormatBool(value)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/type_date.go b/Godeps/_workspace/src/github.com/obscuren/otto/type_date.go
new file mode 100644
index 000000000..65e822f38
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/type_date.go
@@ -0,0 +1,299 @@
+package otto
+
+import (
+ "fmt"
+ "math"
+ "regexp"
+ Time "time"
+)
+
+type _dateObject struct {
+ time Time.Time // Time from the "time" package, a cached version of time
+ epoch int64
+ value Value
+ isNaN bool
+}
+
+var (
+ invalidDateObject = _dateObject{
+ time: Time.Time{},
+ epoch: -1,
+ value: NaNValue(),
+ isNaN: true,
+ }
+)
+
+type _ecmaTime struct {
+ year int
+ month int
+ day int
+ hour int
+ minute int
+ second int
+ millisecond int
+ location *Time.Location // Basically, either local or UTC
+}
+
+func ecmaTime(goTime Time.Time) _ecmaTime {
+ return _ecmaTime{
+ goTime.Year(),
+ dateFromGoMonth(goTime.Month()),
+ goTime.Day(),
+ goTime.Hour(),
+ goTime.Minute(),
+ goTime.Second(),
+ goTime.Nanosecond() / (100 * 100 * 100),
+ goTime.Location(),
+ }
+}
+
+func (self *_ecmaTime) goTime() Time.Time {
+ return Time.Date(
+ self.year,
+ dateToGoMonth(self.month),
+ self.day,
+ self.hour,
+ self.minute,
+ self.second,
+ self.millisecond*(100*100*100),
+ self.location,
+ )
+}
+
+func (self *_dateObject) Time() Time.Time {
+ return self.time
+}
+
+func (self *_dateObject) Epoch() int64 {
+ return self.epoch
+}
+
+func (self *_dateObject) Value() Value {
+ return self.value
+}
+
+// FIXME A date should only be in the range of -100,000,000 to +100,000,000 (1970): 15.9.1.1
+func (self *_dateObject) SetNaN() {
+ self.time = Time.Time{}
+ self.epoch = -1
+ self.value = NaNValue()
+ self.isNaN = true
+}
+
+func (self *_dateObject) SetTime(time Time.Time) {
+ self.Set(timeToEpoch(time))
+}
+
+func epoch2dateObject(epoch float64) _dateObject {
+ date := _dateObject{}
+ date.Set(epoch)
+ return date
+}
+
+func (self *_dateObject) Set(epoch float64) {
+ // epoch
+ self.epoch = epochToInteger(epoch)
+
+ // time
+ time, err := epochToTime(epoch)
+ self.time = time // Is either a valid time, or the zero-value for time.Time
+
+ // value & isNaN
+ if err != nil {
+ self.isNaN = true
+ self.epoch = -1
+ self.value = NaNValue()
+ } else {
+ self.value = toValue_int64(self.epoch)
+ }
+}
+
+func epochToInteger(value float64) int64 {
+ if value > 0 {
+ return int64(math.Floor(value))
+ }
+ return int64(math.Ceil(value))
+}
+
+func epochToTime(value float64) (time Time.Time, err error) {
+ epochWithMilli := value
+ if math.IsNaN(epochWithMilli) || math.IsInf(epochWithMilli, 0) {
+ err = fmt.Errorf("Invalid time %v", value)
+ return
+ }
+
+ epoch := int64(epochWithMilli / 1000)
+ milli := int64(epochWithMilli) % 1000
+
+ time = Time.Unix(int64(epoch), milli*1000000).UTC()
+ return
+}
+
+func timeToEpoch(time Time.Time) float64 {
+ return float64(time.UnixNano() / (1000 * 1000))
+}
+
+func (runtime *_runtime) newDateObject(epoch float64) *_object {
+ self := runtime.newObject()
+ self.class = "Date"
+
+ // FIXME This is ugly...
+ date := _dateObject{}
+ date.Set(epoch)
+ self.value = date
+ return self
+}
+
+func (self *_object) dateValue() _dateObject {
+ value, _ := self.value.(_dateObject)
+ return value
+}
+
+func dateObjectOf(_dateObject *_object) _dateObject {
+ if _dateObject == nil || _dateObject.class != "Date" {
+ panic(newTypeError())
+ }
+ return _dateObject.dateValue()
+}
+
+// JavaScript is 0-based, Go is 1-based (15.9.1.4)
+func dateToGoMonth(month int) Time.Month {
+ return Time.Month(month + 1)
+}
+
+func dateFromGoMonth(month Time.Month) int {
+ return int(month) - 1
+}
+
+// Both JavaScript & Go are 0-based (Sunday == 0)
+func dateToGoDay(day int) Time.Weekday {
+ return Time.Weekday(day)
+}
+
+func dateFromGoDay(day Time.Weekday) int {
+ return int(day)
+}
+
+func newDateTime(argumentList []Value, location *Time.Location) (epoch float64) {
+
+ pick := func(index int, default_ float64) (float64, bool) {
+ if index >= len(argumentList) {
+ return default_, false
+ }
+ value := toFloat(argumentList[index])
+ if math.IsNaN(value) || math.IsInf(value, 0) {
+ return 0, true
+ }
+ return value, false
+ }
+
+ if len(argumentList) >= 2 { // 2-argument, 3-argument, ...
+ var year, month, day, hour, minute, second, millisecond float64
+ var invalid bool
+ if year, invalid = pick(0, 1900.0); invalid {
+ goto INVALID
+ }
+ if month, invalid = pick(1, 0.0); invalid {
+ goto INVALID
+ }
+ if day, invalid = pick(2, 1.0); invalid {
+ goto INVALID
+ }
+ if hour, invalid = pick(3, 0.0); invalid {
+ goto INVALID
+ }
+ if minute, invalid = pick(4, 0.0); invalid {
+ goto INVALID
+ }
+ if second, invalid = pick(5, 0.0); invalid {
+ goto INVALID
+ }
+ if millisecond, invalid = pick(6, 0.0); invalid {
+ goto INVALID
+ }
+
+ if year >= 0 && year <= 99 {
+ year += 1900
+ }
+
+ time := Time.Date(int(year), dateToGoMonth(int(month)), int(day), int(hour), int(minute), int(second), int(millisecond)*1000*1000, location)
+ return timeToEpoch(time)
+
+ } else if len(argumentList) == 0 { // 0-argument
+ time := Time.Now().UTC()
+ return timeToEpoch(time)
+ } else { // 1-argument
+ value := valueOfArrayIndex(argumentList, 0)
+ value = toPrimitive(value)
+ if value.IsString() {
+ return dateParse(toString(value))
+ }
+
+ return toFloat(value)
+ }
+
+INVALID:
+ epoch = math.NaN()
+ return
+}
+
+var (
+ dateLayoutList = []string{
+ "2006",
+ "2006-01",
+ "2006-01-02",
+
+ "2006T15:04",
+ "2006-01T15:04",
+ "2006-01-02T15:04",
+
+ "2006T15:04:05",
+ "2006-01T15:04:05",
+ "2006-01-02T15:04:05",
+
+ "2006T15:04:05.000",
+ "2006-01T15:04:05.000",
+ "2006-01-02T15:04:05.000",
+
+ "2006T15:04-0700",
+ "2006-01T15:04-0700",
+ "2006-01-02T15:04-0700",
+
+ "2006T15:04:05-0700",
+ "2006-01T15:04:05-0700",
+ "2006-01-02T15:04:05-0700",
+
+ "2006T15:04:05.000-0700",
+ "2006-01T15:04:05.000-0700",
+ "2006-01-02T15:04:05.000-0700",
+
+ Time.RFC1123,
+ }
+ matchDateTimeZone = regexp.MustCompile(`^(.*)(?:(Z)|([\+\-]\d{2}):(\d{2}))$`)
+)
+
+func dateParse(date string) (epoch float64) {
+ // YYYY-MM-DDTHH:mm:ss.sssZ
+ var time Time.Time
+ var err error
+ {
+ date := date
+ if match := matchDateTimeZone.FindStringSubmatch(date); match != nil {
+ if match[2] == "Z" {
+ date = match[1] + "+0000"
+ } else {
+ date = match[1] + match[3] + match[4]
+ }
+ }
+ for _, layout := range dateLayoutList {
+ time, err = Time.Parse(layout, date)
+ if err == nil {
+ break
+ }
+ }
+ }
+ if err != nil {
+ return math.NaN()
+ }
+ return float64(time.UnixNano()) / (1000 * 1000) // UnixMilli()
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/type_error.go b/Godeps/_workspace/src/github.com/obscuren/otto/type_error.go
new file mode 100644
index 000000000..683fcf929
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/type_error.go
@@ -0,0 +1,9 @@
+package otto
+
+func (runtime *_runtime) newErrorObject(message Value) *_object {
+ self := runtime.newClassObject("Error")
+ if message.IsDefined() {
+ self.defineProperty("message", toValue_string(toString(message)), 0111, false)
+ }
+ return self
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/type_function.go b/Godeps/_workspace/src/github.com/obscuren/otto/type_function.go
new file mode 100644
index 000000000..8a6fee9d7
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/type_function.go
@@ -0,0 +1,276 @@
+package otto
+
+import (
+ "fmt"
+)
+
+type _functionObject struct {
+ call _callFunction
+ construct _constructFunction
+}
+
+func (self _functionObject) source(object *_object) string {
+ return self.call.Source(object)
+}
+
+func (self0 _functionObject) clone(clone *_clone) _functionObject {
+ return _functionObject{
+ clone.callFunction(self0.call),
+ self0.construct,
+ }
+}
+
+func (runtime *_runtime) newNativeFunctionObject(name string, native _nativeFunction, length int) *_object {
+ self := runtime.newClassObject("Function")
+ self.value = _functionObject{
+ call: newNativeCallFunction(native),
+ construct: defaultConstructFunction,
+ }
+ self.defineProperty("length", toValue_int(length), 0000, false)
+ return self
+}
+
+func (runtime *_runtime) newBoundFunctionObject(target *_object, this Value, argumentList []Value) *_object {
+ self := runtime.newClassObject("Function")
+ self.value = _functionObject{
+ call: newBoundCallFunction(target, this, argumentList),
+ construct: newBoundConstructFunction(target),
+ }
+ length := int(toInt32(target.get("length")))
+ length -= len(argumentList)
+ if length < 0 {
+ length = 0
+ }
+ self.defineProperty("length", toValue_int(length), 0000, false)
+ self.defineProperty("caller", UndefinedValue(), 0000, false) // TODO Should throw a TypeError
+ self.defineProperty("arguments", UndefinedValue(), 0000, false) // TODO Should throw a TypeError
+ return self
+}
+
+func (runtime *_runtime) newBoundFunction(target *_object, this Value, argumentList []Value) *_object {
+ self := runtime.newBoundFunctionObject(target, this, argumentList)
+ self.prototype = runtime.Global.FunctionPrototype
+ prototype := runtime.newObject()
+ self.defineProperty("prototype", toValue_object(prototype), 0100, false)
+ prototype.defineProperty("constructor", toValue_object(self), 0100, false)
+ return self
+}
+
+func (self *_object) functionValue() _functionObject {
+ value, _ := self.value.(_functionObject)
+ return value
+}
+
+func (self *_object) Call(this Value, argumentList ...interface{}) Value {
+ if self.functionValue().call == nil {
+ panic(newTypeError("%v is not a function", toValue_object(self)))
+ }
+ return self.runtime.Call(self, this, self.runtime.toValueArray(argumentList...), false)
+ // ... -> runtime -> self.Function.Call.Dispatch -> ...
+}
+
+func (self *_object) Construct(this Value, argumentList ...interface{}) Value {
+ function := self.functionValue()
+ if function.call == nil {
+ panic(newTypeError("%v is not a function", toValue_object(self)))
+ }
+ if function.construct == nil {
+ panic(newTypeError("%v is not a constructor", toValue_object(self)))
+ }
+ return function.construct(self, this, self.runtime.toValueArray(argumentList...))
+}
+
+func defaultConstructFunction(self *_object, this Value, argumentList []Value) Value {
+ newObject := self.runtime.newObject()
+ newObject.class = "Object"
+ prototypeValue := self.get("prototype")
+ if !prototypeValue.IsObject() {
+ prototypeValue = toValue_object(self.runtime.Global.ObjectPrototype)
+ }
+ newObject.prototype = prototypeValue._object()
+ newObjectValue := toValue_object(newObject)
+ result := self.Call(newObjectValue, argumentList)
+ if result.IsObject() {
+ return result
+ }
+ return newObjectValue
+}
+
+func (self *_object) callGet(this Value) Value {
+ return self.runtime.Call(self, this, []Value(nil), false)
+}
+
+func (self *_object) callSet(this Value, value Value) {
+ self.runtime.Call(self, this, []Value{value}, false)
+}
+
+// 15.3.5.3
+func (self *_object) HasInstance(of Value) bool {
+ if self.functionValue().call == nil {
+ // We should not have a HasInstance method
+ panic(newTypeError())
+ }
+ if !of.IsObject() {
+ return false
+ }
+ prototype := self.get("prototype")
+ if !prototype.IsObject() {
+ panic(newTypeError())
+ }
+ prototypeObject := prototype._object()
+
+ value := of._object().prototype
+ for value != nil {
+ if value == prototypeObject {
+ return true
+ }
+ value = value.prototype
+ }
+ return false
+}
+
+type _nativeFunction func(FunctionCall) Value
+
+// _constructFunction
+type _constructFunction func(*_object, Value, []Value) Value
+
+// _callFunction
+type _callFunction interface {
+ Dispatch(*_object, *_functionEnvironment, *_runtime, Value, []Value, bool) Value
+ Source(*_object) string
+ ScopeEnvironment() _environment
+ clone(clone *_clone) _callFunction
+}
+
+// _nativeCallFunction
+type _nativeCallFunction struct {
+ name string
+ function _nativeFunction
+}
+
+func newNativeCallFunction(native _nativeFunction) _nativeCallFunction {
+ return _nativeCallFunction{"", native}
+}
+
+func (self _nativeCallFunction) Dispatch(_ *_object, _ *_functionEnvironment, runtime *_runtime, this Value, argumentList []Value, evalHint bool) Value {
+ return self.function(FunctionCall{
+ runtime: runtime,
+ evalHint: evalHint,
+
+ This: this,
+ ArgumentList: argumentList,
+ Otto: runtime.Otto,
+ })
+}
+
+func (self _nativeCallFunction) ScopeEnvironment() _environment {
+ return nil
+}
+
+func (self _nativeCallFunction) Source(*_object) string {
+ return fmt.Sprintf("function %s() { [native code] }", self.name)
+}
+
+func (self0 _nativeCallFunction) clone(clone *_clone) _callFunction {
+ return self0
+}
+
+// _boundCallFunction
+type _boundCallFunction struct {
+ target *_object
+ this Value
+ argumentList []Value
+}
+
+func newBoundCallFunction(target *_object, this Value, argumentList []Value) *_boundCallFunction {
+ self := &_boundCallFunction{
+ target: target,
+ this: this,
+ argumentList: argumentList,
+ }
+ return self
+}
+
+func (self _boundCallFunction) Dispatch(_ *_object, _ *_functionEnvironment, runtime *_runtime, this Value, argumentList []Value, _ bool) Value {
+ argumentList = append(self.argumentList, argumentList...)
+ return runtime.Call(self.target, self.this, argumentList, false)
+}
+
+func (self _boundCallFunction) ScopeEnvironment() _environment {
+ return nil
+}
+
+func (self _boundCallFunction) Source(*_object) string {
+ return ""
+}
+
+func (self0 _boundCallFunction) clone(clone *_clone) _callFunction {
+ return _boundCallFunction{
+ target: clone.object(self0.target),
+ this: clone.value(self0.this),
+ argumentList: clone.valueArray(self0.argumentList),
+ }
+}
+
+func newBoundConstructFunction(target *_object) _constructFunction {
+ // This is not exactly as described in 15.3.4.5.2, we let [[Call]] supply the
+ // bound arguments, etc.
+ return func(self *_object, this Value, argumentList []Value) Value {
+ switch value := target.value.(type) {
+ case _functionObject:
+ return value.construct(self, this, argumentList)
+ }
+ panic(newTypeError())
+ }
+}
+
+// FunctionCall{}
+
+// FunctionCall is an encapsulation of a JavaScript function call.
+type FunctionCall struct {
+ runtime *_runtime
+ _thisObject *_object
+ evalHint bool
+
+ This Value
+ ArgumentList []Value
+ Otto *Otto
+}
+
+// Argument will return the value of the argument at the given index.
+//
+// If no such argument exists, undefined is returned.
+func (self FunctionCall) Argument(index int) Value {
+ return valueOfArrayIndex(self.ArgumentList, index)
+}
+
+func (self FunctionCall) getArgument(index int) (Value, bool) {
+ return getValueOfArrayIndex(self.ArgumentList, index)
+}
+
+func (self FunctionCall) slice(index int) []Value {
+ if index < len(self.ArgumentList) {
+ return self.ArgumentList[index:]
+ }
+ return []Value{}
+}
+
+func (self *FunctionCall) thisObject() *_object {
+ if self._thisObject == nil {
+ this := self.runtime.GetValue(self.This) // FIXME Is this right?
+ self._thisObject = self.runtime.toObject(this)
+ }
+ return self._thisObject
+}
+
+func (self *FunctionCall) thisClassObject(class string) *_object {
+ thisObject := self.thisObject()
+ if thisObject.class != class {
+ panic(newTypeError())
+ }
+ return self._thisObject
+}
+
+func (self FunctionCall) toObject(value Value) *_object {
+ return self.runtime.toObject(value)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/type_go_array.go b/Godeps/_workspace/src/github.com/obscuren/otto/type_go_array.go
new file mode 100644
index 000000000..cf2ddd437
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/type_go_array.go
@@ -0,0 +1,134 @@
+package otto
+
+import (
+ "reflect"
+ "strconv"
+)
+
+func (runtime *_runtime) newGoArrayObject(value reflect.Value) *_object {
+ self := runtime.newObject()
+ self.class = "GoArray"
+ self.objectClass = _classGoArray
+ self.value = _newGoArrayObject(value)
+ return self
+}
+
+type _goArrayObject struct {
+ value reflect.Value
+ writable bool
+ propertyMode _propertyMode
+}
+
+func _newGoArrayObject(value reflect.Value) *_goArrayObject {
+ writable := value.Kind() == reflect.Ptr // The Array is addressable (like a Slice)
+ mode := _propertyMode(0010)
+ if writable {
+ mode = 0110
+ }
+ self := &_goArrayObject{
+ value: value,
+ writable: writable,
+ propertyMode: mode,
+ }
+ return self
+}
+
+func (self _goArrayObject) getValue(index int64) (reflect.Value, bool) {
+ value := reflect.Indirect(self.value)
+ if index < int64(value.Len()) {
+ return value.Index(int(index)), true
+ }
+ return reflect.Value{}, false
+}
+
+func (self _goArrayObject) setValue(index int64, value Value) bool {
+ indexValue, exists := self.getValue(index)
+ if !exists {
+ return false
+ }
+ reflectValue, err := value.toReflectValue(reflect.Indirect(self.value).Type().Elem().Kind())
+ if err != nil {
+ panic(err)
+ }
+ indexValue.Set(reflectValue)
+ return true
+}
+
+func goArrayGetOwnProperty(self *_object, name string) *_property {
+ // length
+ if name == "length" {
+ return &_property{
+ value: toValue(reflect.Indirect(self.value.(*_goArrayObject).value).Len()),
+ mode: 0,
+ }
+ }
+
+ // .0, .1, .2, ...
+ index := stringToArrayIndex(name)
+ if index >= 0 {
+ object := self.value.(*_goArrayObject)
+ value := UndefinedValue()
+ reflectValue, exists := object.getValue(index)
+ if exists {
+ value = self.runtime.toValue(reflectValue.Interface())
+ }
+ return &_property{
+ value: value,
+ mode: object.propertyMode,
+ }
+ }
+
+ return objectGetOwnProperty(self, name)
+}
+
+func goArrayEnumerate(self *_object, all bool, each func(string) bool) {
+ object := self.value.(*_goArrayObject)
+ // .0, .1, .2, ...
+
+ for index, length := 0, object.value.Len(); index < length; index++ {
+ name := strconv.FormatInt(int64(index), 10)
+ if !each(name) {
+ return
+ }
+ }
+
+ objectEnumerate(self, all, each)
+}
+
+func goArrayDefineOwnProperty(self *_object, name string, descriptor _property, throw bool) bool {
+ if name == "length" {
+ return typeErrorResult(throw)
+ } else if index := stringToArrayIndex(name); index >= 0 {
+ object := self.value.(*_goArrayObject)
+ if object.writable {
+ if self.value.(*_goArrayObject).setValue(index, descriptor.value.(Value)) {
+ return true
+ }
+ }
+ return typeErrorResult(throw)
+ }
+ return objectDefineOwnProperty(self, name, descriptor, throw)
+}
+
+func goArrayDelete(self *_object, name string, throw bool) bool {
+ // length
+ if name == "length" {
+ return typeErrorResult(throw)
+ }
+
+ // .0, .1, .2, ...
+ index := stringToArrayIndex(name)
+ if index >= 0 {
+ object := self.value.(*_goArrayObject)
+ if object.writable {
+ indexValue, exists := object.getValue(index)
+ if exists {
+ indexValue.Set(reflect.Zero(reflect.Indirect(object.value).Type().Elem()))
+ return true
+ }
+ }
+ return typeErrorResult(throw)
+ }
+
+ return self.delete(name, throw)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/type_go_map.go b/Godeps/_workspace/src/github.com/obscuren/otto/type_go_map.go
new file mode 100644
index 000000000..4635fb231
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/type_go_map.go
@@ -0,0 +1,87 @@
+package otto
+
+import (
+ "reflect"
+)
+
+func (runtime *_runtime) newGoMapObject(value reflect.Value) *_object {
+ self := runtime.newObject()
+ self.class = "Object" // TODO Should this be something else?
+ self.objectClass = _classGoMap
+ self.value = _newGoMapObject(value)
+ return self
+}
+
+type _goMapObject struct {
+ value reflect.Value
+ keyKind reflect.Kind
+ valueKind reflect.Kind
+}
+
+func _newGoMapObject(value reflect.Value) *_goMapObject {
+ if value.Kind() != reflect.Map {
+ dbgf("%/panic//%@: %v != reflect.Map", value.Kind())
+ }
+ self := &_goMapObject{
+ value: value,
+ keyKind: value.Type().Key().Kind(),
+ valueKind: value.Type().Elem().Kind(),
+ }
+ return self
+}
+
+func (self _goMapObject) toKey(name string) reflect.Value {
+ reflectValue, err := stringToReflectValue(name, self.keyKind)
+ if err != nil {
+ panic(err)
+ }
+ return reflectValue
+}
+
+func (self _goMapObject) toValue(value Value) reflect.Value {
+ reflectValue, err := value.toReflectValue(self.valueKind)
+ if err != nil {
+ panic(err)
+ }
+ return reflectValue
+}
+
+func goMapGetOwnProperty(self *_object, name string) *_property {
+ object := self.value.(*_goMapObject)
+ value := object.value.MapIndex(object.toKey(name))
+ if value.IsValid() {
+ return &_property{self.runtime.toValue(value.Interface()), 0111}
+ }
+
+ return nil
+}
+
+func goMapEnumerate(self *_object, all bool, each func(string) bool) {
+ object := self.value.(*_goMapObject)
+ keys := object.value.MapKeys()
+ for _, key := range keys {
+ if !each(key.String()) {
+ return
+ }
+ }
+}
+
+func goMapDefineOwnProperty(self *_object, name string, descriptor _property, throw bool) bool {
+ object := self.value.(*_goMapObject)
+ // TODO ...or 0222
+ if descriptor.mode != 0111 {
+ return typeErrorResult(throw)
+ }
+ if !descriptor.isDataDescriptor() {
+ return typeErrorResult(throw)
+ }
+ object.value.SetMapIndex(object.toKey(name), object.toValue(descriptor.value.(Value)))
+ return true
+}
+
+func goMapDelete(self *_object, name string, throw bool) bool {
+ object := self.value.(*_goMapObject)
+ object.value.SetMapIndex(object.toKey(name), reflect.Value{})
+ // FIXME
+ return true
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/type_go_slice.go b/Godeps/_workspace/src/github.com/obscuren/otto/type_go_slice.go
new file mode 100644
index 000000000..5821e2ad3
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/type_go_slice.go
@@ -0,0 +1,118 @@
+package otto
+
+import (
+ "reflect"
+ "strconv"
+)
+
+func (runtime *_runtime) newGoSliceObject(value reflect.Value) *_object {
+ self := runtime.newObject()
+ self.class = "GoArray" // TODO GoSlice?
+ self.objectClass = _classGoSlice
+ self.value = _newGoSliceObject(value)
+ return self
+}
+
+type _goSliceObject struct {
+ value reflect.Value
+}
+
+func _newGoSliceObject(value reflect.Value) *_goSliceObject {
+ self := &_goSliceObject{
+ value: value,
+ }
+ return self
+}
+
+func (self _goSliceObject) getValue(index int64) (reflect.Value, bool) {
+ if index < int64(self.value.Len()) {
+ return self.value.Index(int(index)), true
+ }
+ return reflect.Value{}, false
+}
+
+func (self _goSliceObject) setValue(index int64, value Value) bool {
+ indexValue, exists := self.getValue(index)
+ if !exists {
+ return false
+ }
+ reflectValue, err := value.toReflectValue(self.value.Type().Elem().Kind())
+ if err != nil {
+ panic(err)
+ }
+ indexValue.Set(reflectValue)
+ return true
+}
+
+func goSliceGetOwnProperty(self *_object, name string) *_property {
+ // length
+ if name == "length" {
+ return &_property{
+ value: toValue(self.value.(*_goSliceObject).value.Len()),
+ mode: 0,
+ }
+ }
+
+ // .0, .1, .2, ...
+ index := stringToArrayIndex(name)
+ if index >= 0 {
+ value := UndefinedValue()
+ reflectValue, exists := self.value.(*_goSliceObject).getValue(index)
+ if exists {
+ value = self.runtime.toValue(reflectValue.Interface())
+ }
+ return &_property{
+ value: value,
+ mode: 0110,
+ }
+ }
+
+ return objectGetOwnProperty(self, name)
+}
+
+func goSliceEnumerate(self *_object, all bool, each func(string) bool) {
+ object := self.value.(*_goSliceObject)
+ // .0, .1, .2, ...
+
+ for index, length := 0, object.value.Len(); index < length; index++ {
+ name := strconv.FormatInt(int64(index), 10)
+ if !each(name) {
+ return
+ }
+ }
+
+ objectEnumerate(self, all, each)
+}
+
+func goSliceDefineOwnProperty(self *_object, name string, descriptor _property, throw bool) bool {
+ if name == "length" {
+ return typeErrorResult(throw)
+ } else if index := stringToArrayIndex(name); index >= 0 {
+ if self.value.(*_goSliceObject).setValue(index, descriptor.value.(Value)) {
+ return true
+ }
+ return typeErrorResult(throw)
+ }
+ return objectDefineOwnProperty(self, name, descriptor, throw)
+}
+
+func goSliceDelete(self *_object, name string, throw bool) bool {
+ // length
+ if name == "length" {
+ return typeErrorResult(throw)
+ }
+
+ // .0, .1, .2, ...
+ index := stringToArrayIndex(name)
+ if index >= 0 {
+ object := self.value.(*_goSliceObject)
+ indexValue, exists := object.getValue(index)
+ if exists {
+ indexValue.Set(reflect.Zero(object.value.Type().Elem()))
+ return true
+ }
+ return typeErrorResult(throw)
+ }
+
+ return self.delete(name, throw)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/type_go_struct.go b/Godeps/_workspace/src/github.com/obscuren/otto/type_go_struct.go
new file mode 100644
index 000000000..4abdf8075
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/type_go_struct.go
@@ -0,0 +1,150 @@
+package otto
+
+import (
+ "encoding/json"
+ "reflect"
+ "unicode"
+)
+
+func upCase(str *string) {
+ a := []rune(*str)
+ a[0] = unicode.ToUpper(a[0])
+ *str = string(a)
+}
+
+func (runtime *_runtime) newGoStructObject(value reflect.Value) *_object {
+ self := runtime.newObject()
+ self.class = "Object" // TODO Should this be something else?
+ self.objectClass = _classGoStruct
+ self.value = _newGoStructObject(value)
+ return self
+}
+
+type _goStructObject struct {
+ value reflect.Value
+}
+
+func _newGoStructObject(value reflect.Value) *_goStructObject {
+ if reflect.Indirect(value).Kind() != reflect.Struct {
+ dbgf("%/panic//%@: %v != reflect.Struct", value.Kind())
+ }
+ self := &_goStructObject{
+ value: value,
+ }
+ return self
+}
+
+func (self _goStructObject) getValue(name string) reflect.Value {
+ upCase(&name)
+
+ if validGoStructName(name) {
+ // Do not reveal hidden or unexported fields
+ if field := reflect.Indirect(self.value).FieldByName(name); (field != reflect.Value{}) {
+ return field
+ }
+
+ if method := self.value.MethodByName(name); (method != reflect.Value{}) {
+ return method
+ }
+ }
+
+ return reflect.Value{}
+}
+
+func (self _goStructObject) field(name string) (reflect.StructField, bool) {
+ upCase(&name)
+
+ return reflect.Indirect(self.value).Type().FieldByName(name)
+}
+
+func (self _goStructObject) method(name string) (reflect.Method, bool) {
+ upCase(&name)
+
+ return reflect.Indirect(self.value).Type().MethodByName(name)
+}
+
+func (self _goStructObject) setValue(name string, value Value) bool {
+ field, exists := self.field(name)
+ if !exists {
+ return false
+ }
+ fieldValue := self.getValue(name)
+ reflectValue, err := value.toReflectValue(field.Type.Kind())
+ if err != nil {
+ panic(err)
+ }
+ fieldValue.Set(reflectValue)
+ return true
+}
+
+func goStructGetOwnProperty(self *_object, name string) *_property {
+ object := self.value.(*_goStructObject)
+ value := object.getValue(name)
+ if value.IsValid() {
+ return &_property{self.runtime.toValue(value.Interface()), 0110}
+ }
+
+ return objectGetOwnProperty(self, name)
+}
+
+func validGoStructName(name string) bool {
+ if name == "" {
+ return false
+ }
+ return 'A' <= name[0] && name[0] <= 'Z' // TODO What about Unicode?
+}
+
+func goStructEnumerate(self *_object, all bool, each func(string) bool) {
+ object := self.value.(*_goStructObject)
+
+ // Enumerate fields
+ for index := 0; index < reflect.Indirect(object.value).NumField(); index++ {
+ name := reflect.Indirect(object.value).Type().Field(index).Name
+ if validGoStructName(name) {
+ if !each(name) {
+ return
+ }
+ }
+ }
+
+ // Enumerate methods
+ for index := 0; index < object.value.NumMethod(); index++ {
+ name := object.value.Type().Method(index).Name
+ if validGoStructName(name) {
+ if !each(name) {
+ return
+ }
+ }
+ }
+
+ objectEnumerate(self, all, each)
+}
+
+func goStructCanPut(self *_object, name string) bool {
+ object := self.value.(*_goStructObject)
+ value := object.getValue(name)
+ if value.IsValid() {
+ return true
+ }
+
+ return objectCanPut(self, name)
+}
+
+func goStructPut(self *_object, name string, value Value, throw bool) {
+ object := self.value.(*_goStructObject)
+ if object.setValue(name, value) {
+ return
+ }
+
+ objectPut(self, name, value, throw)
+}
+
+func goStructMarshalJSON(self *_object) json.Marshaler {
+ object := self.value.(*_goStructObject)
+ goValue := reflect.Indirect(object.value).Interface()
+ switch marshaler := goValue.(type) {
+ case json.Marshaler:
+ return marshaler
+ }
+ return nil
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/type_number.go b/Godeps/_workspace/src/github.com/obscuren/otto/type_number.go
new file mode 100644
index 000000000..ee7adc985
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/type_number.go
@@ -0,0 +1,5 @@
+package otto
+
+func (runtime *_runtime) newNumberObject(value Value) *_object {
+ return runtime.newPrimitiveObject("Number", toNumber(value))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/type_reference.go b/Godeps/_workspace/src/github.com/obscuren/otto/type_reference.go
new file mode 100644
index 000000000..6c4f37278
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/type_reference.go
@@ -0,0 +1,157 @@
+package otto
+
+import (
+ "github.com/robertkrimen/otto/ast"
+)
+
+type _reference interface {
+ GetBase() interface{} // GetBase
+ GetName() string // GetReferencedName
+ IsStrict() bool // IsStrictReference
+ IsUnresolvable() bool // IsUnresolvableReference
+ IsPropertyReference() bool // IsPropertyReference
+ GetValue() Value // GetValue
+ PutValue(Value) bool // PutValue
+ Delete() bool
+}
+
+// Reference
+
+type _referenceDefault struct {
+ name string
+ strict bool
+}
+
+func (self _referenceDefault) GetName() string {
+ return self.name
+}
+
+func (self _referenceDefault) IsStrict() bool {
+ return self.strict
+}
+
+// PropertyReference
+
+type _propertyReference struct {
+ _referenceDefault
+ Base *_object
+}
+
+func newPropertyReference(base *_object, name string, strict bool) *_propertyReference {
+ return &_propertyReference{
+ Base: base,
+ _referenceDefault: _referenceDefault{
+ name: name,
+ strict: strict,
+ },
+ }
+}
+
+func (self *_propertyReference) GetBase() interface{} {
+ return self.Base
+}
+
+func (self *_propertyReference) IsUnresolvable() bool {
+ return self.Base == nil
+}
+
+func (self *_propertyReference) IsPropertyReference() bool {
+ return true
+}
+
+func (self *_propertyReference) GetValue() Value {
+ if self.Base == nil {
+ panic(newReferenceError("notDefined", self.name))
+ }
+ return self.Base.get(self.name)
+}
+
+func (self *_propertyReference) PutValue(value Value) bool {
+ if self.Base == nil {
+ return false
+ }
+ self.Base.put(self.name, value, self.IsStrict())
+ return true
+}
+
+func (self *_propertyReference) Delete() bool {
+ if self.Base == nil {
+ // TODO Throw an error if strict
+ return true
+ }
+ return self.Base.delete(self.name, self.IsStrict())
+}
+
+// ArgumentReference
+
+func newArgumentReference(base *_object, name string, strict bool) *_propertyReference {
+ if base == nil {
+ panic(hereBeDragons())
+ }
+ return newPropertyReference(base, name, strict)
+}
+
+type _environmentReference struct {
+ _referenceDefault
+ Base _environment
+ node ast.Node
+}
+
+func newEnvironmentReference(base _environment, name string, strict bool, node ast.Node) *_environmentReference {
+ return &_environmentReference{
+ Base: base,
+ _referenceDefault: _referenceDefault{
+ name: name,
+ strict: strict,
+ },
+ node: node,
+ }
+}
+
+func (self *_environmentReference) GetBase() interface{} {
+ return self.Base
+}
+
+func (self *_environmentReference) IsUnresolvable() bool {
+ return self.Base == nil // The base (an environment) will never be nil
+}
+
+func (self *_environmentReference) IsPropertyReference() bool {
+ return false
+}
+
+func (self *_environmentReference) GetValue() Value {
+ if self.Base == nil {
+ // This should never be reached, but just in case
+ }
+ return self.Base.GetValue(self.name, self.IsStrict())
+}
+
+func (self *_environmentReference) PutValue(value Value) bool {
+ if self.Base == nil {
+ // This should never be reached, but just in case
+ return false
+ }
+ self.Base.SetValue(self.name, value, self.IsStrict())
+ return true
+}
+
+func (self *_environmentReference) Delete() bool {
+ if self.Base == nil {
+ // This should never be reached, but just in case
+ return false
+ }
+ return self.Base.DeleteBinding(self.name)
+}
+
+// getIdentifierReference
+
+func getIdentifierReference(environment _environment, name string, strict bool) _reference {
+ if environment == nil {
+ return newPropertyReference(nil, name, strict)
+ }
+ if environment.HasBinding(name) {
+ return environment.newReference(name, strict)
+ }
+ return getIdentifierReference(environment.Outer(), name, strict)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/type_regexp.go b/Godeps/_workspace/src/github.com/obscuren/otto/type_regexp.go
new file mode 100644
index 000000000..5f17bde69
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/type_regexp.go
@@ -0,0 +1,146 @@
+package otto
+
+import (
+ "fmt"
+ "regexp"
+ "unicode/utf8"
+
+ "github.com/robertkrimen/otto/parser"
+)
+
+type _regExpObject struct {
+ regularExpression *regexp.Regexp
+ global bool
+ ignoreCase bool
+ multiline bool
+ source string
+ flags string
+}
+
+func (runtime *_runtime) newRegExpObject(pattern string, flags string) *_object {
+ self := runtime.newObject()
+ self.class = "RegExp"
+
+ global := false
+ ignoreCase := false
+ multiline := false
+ re2flags := ""
+
+ // TODO Maybe clean up the panicking here... TypeError, SyntaxError, ?
+
+ for _, chr := range flags {
+ switch chr {
+ case 'g':
+ if global {
+ panic(newError("SyntaxError: newRegExpObject: %s %s", pattern, flags))
+ }
+ global = true
+ case 'm':
+ if multiline {
+ panic(newError("SyntaxError: newRegExpObject: %s %s", pattern, flags))
+ }
+ multiline = true
+ re2flags += "m"
+ case 'i':
+ if ignoreCase {
+ panic(newError("SyntaxError: newRegExpObject: %s %s", pattern, flags))
+ }
+ ignoreCase = true
+ re2flags += "i"
+ }
+ }
+
+ re2pattern, err := parser.TransformRegExp(pattern)
+ if err != nil {
+ panic(newTypeError("Invalid regular expression: %s", err.Error()))
+ }
+ if len(re2flags) > 0 {
+ re2pattern = fmt.Sprintf("(?%s:%s)", re2flags, re2pattern)
+ }
+
+ regularExpression, err := regexp.Compile(re2pattern)
+ if err != nil {
+ panic(newSyntaxError("Invalid regular expression: %s", err.Error()[22:]))
+ }
+
+ self.value = _regExpObject{
+ regularExpression: regularExpression,
+ global: global,
+ ignoreCase: ignoreCase,
+ multiline: multiline,
+ source: pattern,
+ flags: flags,
+ }
+ self.defineProperty("global", toValue_bool(global), 0, false)
+ self.defineProperty("ignoreCase", toValue_bool(ignoreCase), 0, false)
+ self.defineProperty("multiline", toValue_bool(multiline), 0, false)
+ self.defineProperty("lastIndex", toValue_int(0), 0100, false)
+ self.defineProperty("source", toValue_string(pattern), 0, false)
+ return self
+}
+
+func (self *_object) regExpValue() _regExpObject {
+ value, _ := self.value.(_regExpObject)
+ return value
+}
+
+func execRegExp(this *_object, target string) (match bool, result []int) {
+ if this.class != "RegExp" {
+ panic(newTypeError("Calling RegExp.exec on a non-RegExp object"))
+ }
+ lastIndex := toInteger(this.get("lastIndex")).value
+ index := lastIndex
+ global := toBoolean(this.get("global"))
+ if !global {
+ index = 0
+ }
+ if 0 > index || index > int64(len(target)) {
+ } else {
+ result = this.regExpValue().regularExpression.FindStringSubmatchIndex(target[index:])
+ }
+ if result == nil {
+ //this.defineProperty("lastIndex", toValue_(0), 0111, true)
+ this.put("lastIndex", toValue_int(0), true)
+ return // !match
+ }
+ match = true
+ startIndex := index
+ endIndex := int(lastIndex) + result[1]
+ // We do this shift here because the .FindStringSubmatchIndex above
+ // was done on a local subordinate slice of the string, not the whole string
+ for index, _ := range result {
+ result[index] += int(startIndex)
+ }
+ if global {
+ //this.defineProperty("lastIndex", toValue_(endIndex), 0111, true)
+ this.put("lastIndex", toValue_int(endIndex), true)
+ }
+ return // match
+}
+
+func execResultToArray(runtime *_runtime, target string, result []int) *_object {
+ captureCount := len(result) / 2
+ valueArray := make([]Value, captureCount)
+ for index := 0; index < captureCount; index++ {
+ offset := 2 * index
+ if result[offset] != -1 {
+ valueArray[index] = toValue_string(target[result[offset]:result[offset+1]])
+ } else {
+ valueArray[index] = UndefinedValue()
+ }
+ }
+ matchIndex := result[0]
+ if matchIndex != 0 {
+ matchIndex = 0
+ // Find the rune index in the string, not the byte index
+ for index := 0; index < result[0]; {
+ _, size := utf8.DecodeRuneInString(target[index:])
+ matchIndex += 1
+ index += size
+ }
+ }
+ match := runtime.newArrayOf(valueArray)
+ match.defineProperty("input", toValue_string(target), 0111, false)
+ match.defineProperty("index", toValue_int(matchIndex), 0111, false)
+ return match
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/type_string.go b/Godeps/_workspace/src/github.com/obscuren/otto/type_string.go
new file mode 100644
index 000000000..fd93316d1
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/type_string.go
@@ -0,0 +1,112 @@
+package otto
+
+import (
+ "strconv"
+ "unicode/utf8"
+)
+
+type _stringObject interface {
+ Length() int
+ At(int) rune
+ String() string
+}
+
+type _stringASCII string
+
+func (str _stringASCII) Length() int {
+ return len(str)
+}
+
+func (str _stringASCII) At(at int) rune {
+ return rune(str[at])
+}
+
+func (str _stringASCII) String() string {
+ return string(str)
+}
+
+type _stringWide struct {
+ string string
+ length int
+ runes []rune
+}
+
+func (str _stringWide) Length() int {
+ return str.length
+}
+
+func (str _stringWide) At(at int) rune {
+ if str.runes == nil {
+ str.runes = []rune(str.string)
+ }
+ return str.runes[at]
+}
+
+func (str _stringWide) String() string {
+ return str.string
+}
+
+func _newStringObject(str string) _stringObject {
+ for i := 0; i < len(str); i++ {
+ if str[i] >= utf8.RuneSelf {
+ goto wide
+ }
+ }
+
+ return _stringASCII(str)
+
+wide:
+ return &_stringWide{
+ string: str,
+ length: utf8.RuneCountInString(str),
+ }
+}
+
+func stringAt(str _stringObject, index int) rune {
+ if 0 <= index && index < str.Length() {
+ return str.At(index)
+ }
+ return utf8.RuneError
+}
+
+func (runtime *_runtime) newStringObject(value Value) *_object {
+ str := _newStringObject(toString(value))
+
+ self := runtime.newClassObject("String")
+ self.defineProperty("length", toValue_int(str.Length()), 0, false)
+ self.objectClass = _classString
+ self.value = str
+ return self
+}
+
+func (self *_object) stringValue() _stringObject {
+ if str, ok := self.value.(_stringObject); ok {
+ return str
+ }
+ return nil
+}
+
+func stringEnumerate(self *_object, all bool, each func(string) bool) {
+ if str := self.stringValue(); str != nil {
+ length := str.Length()
+ for index := 0; index < length; index++ {
+ if !each(strconv.FormatInt(int64(index), 10)) {
+ return
+ }
+ }
+ }
+ objectEnumerate(self, all, each)
+}
+
+func stringGetOwnProperty(self *_object, name string) *_property {
+ if property := objectGetOwnProperty(self, name); property != nil {
+ return property
+ }
+ // TODO Test a string of length >= +int32 + 1?
+ if index := stringToArrayIndex(name); index >= 0 {
+ if chr := stringAt(self.stringValue(), int(index)); chr != utf8.RuneError {
+ return &_property{toValue_string(string(chr)), 0}
+ }
+ }
+ return nil
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/underscore/Makefile b/Godeps/_workspace/src/github.com/obscuren/otto/underscore/Makefile
new file mode 100644
index 000000000..fc872917f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/underscore/Makefile
@@ -0,0 +1,11 @@
+.PHONY: source
+
+source: source.go
+
+underscore.js:
+ curl -kL http://underscorejs.org/underscore.js > $@
+
+source.go: underscore.js
+ go-bindata -f underscore -p underscore -u true < $< 2>/dev/null | grep -v '^//' | gofmt > $@
+ head -4 $< >> $@
+ mv $< ..
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/underscore/README.markdown b/Godeps/_workspace/src/github.com/obscuren/otto/underscore/README.markdown
new file mode 100644
index 000000000..bce37b695
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/underscore/README.markdown
@@ -0,0 +1,53 @@
+# underscore
+--
+ import "github.com/robertkrimen/otto/underscore"
+
+Package underscore contains the source for the JavaScript utility-belt library.
+
+ import (
+ _ "github.com/robertkrimen/otto/underscore"
+ )
+ // Every Otto runtime will now include underscore
+
+http://underscorejs.org
+
+https://github.com/documentcloud/underscore
+
+By importing this package, you'll automatically load underscore every time you
+create a new Otto runtime.
+
+To prevent this behavior, you can do the following:
+
+ import (
+ "github.com/robertkrimen/otto/underscore"
+ )
+
+ func init() {
+ underscore.Disable()
+ }
+
+## Usage
+
+#### func Disable
+
+```go
+func Disable()
+```
+Disable underscore runtime inclusion.
+
+#### func Enable
+
+```go
+func Enable()
+```
+Enable underscore runtime inclusion.
+
+#### func Source
+
+```go
+func Source() string
+```
+Source returns the underscore source.
+
+--
+**godocdown** http://github.com/robertkrimen/godocdown
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/underscore/source.go b/Godeps/_workspace/src/github.com/obscuren/otto/underscore/source.go
new file mode 100644
index 000000000..65754ab71
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/underscore/source.go
@@ -0,0 +1,3462 @@
+package underscore
+
+func underscore() []byte {
+ return []byte{
+ 0x2f, 0x2f, 0x20, 0x20, 0x20, 0x20, 0x20, 0x55, 0x6e, 0x64, 0x65, 0x72,
+ 0x73, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x6a, 0x73, 0x20, 0x31, 0x2e, 0x34,
+ 0x2e, 0x34, 0x0a, 0x2f, 0x2f, 0x20, 0x20, 0x20, 0x20, 0x20, 0x68, 0x74,
+ 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x73, 0x63,
+ 0x6f, 0x72, 0x65, 0x6a, 0x73, 0x2e, 0x6f, 0x72, 0x67, 0x0a, 0x2f, 0x2f,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x28, 0x63, 0x29, 0x20, 0x32, 0x30, 0x30,
+ 0x39, 0x2d, 0x32, 0x30, 0x31, 0x33, 0x20, 0x4a, 0x65, 0x72, 0x65, 0x6d,
+ 0x79, 0x20, 0x41, 0x73, 0x68, 0x6b, 0x65, 0x6e, 0x61, 0x73, 0x2c, 0x20,
+ 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x75,
+ 0x64, 0x20, 0x49, 0x6e, 0x63, 0x2e, 0x0a, 0x2f, 0x2f, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x73, 0x63, 0x6f, 0x72, 0x65,
+ 0x20, 0x6d, 0x61, 0x79, 0x20, 0x62, 0x65, 0x20, 0x66, 0x72, 0x65, 0x65,
+ 0x6c, 0x79, 0x20, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x64, 0x20, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x4d, 0x49, 0x54, 0x20, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65,
+ 0x2e, 0x0a, 0x0a, 0x28, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x29, 0x20, 0x7b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x42,
+ 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x20, 0x73, 0x65, 0x74, 0x75,
+ 0x70, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d,
+ 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x45, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x73,
+ 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x6f, 0x6f, 0x74, 0x20, 0x6f,
+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x20, 0x60, 0x77, 0x69, 0x6e, 0x64,
+ 0x6f, 0x77, 0x60, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x62,
+ 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x2c, 0x20, 0x6f, 0x72, 0x20, 0x60,
+ 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x60, 0x20, 0x6f, 0x6e, 0x20, 0x74,
+ 0x68, 0x65, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x0a, 0x20,
+ 0x20, 0x76, 0x61, 0x72, 0x20, 0x72, 0x6f, 0x6f, 0x74, 0x20, 0x3d, 0x20,
+ 0x74, 0x68, 0x69, 0x73, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x53, 0x61, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x65,
+ 0x76, 0x69, 0x6f, 0x75, 0x73, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20,
+ 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x60, 0x5f, 0x60, 0x20, 0x76,
+ 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x0a, 0x20, 0x20, 0x76,
+ 0x61, 0x72, 0x20, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x55,
+ 0x6e, 0x64, 0x65, 0x72, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x20, 0x3d, 0x20,
+ 0x72, 0x6f, 0x6f, 0x74, 0x2e, 0x5f, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x45, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x20,
+ 0x74, 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x74,
+ 0x68, 0x61, 0x74, 0x20, 0x67, 0x65, 0x74, 0x73, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x72, 0x65,
+ 0x61, 0x6b, 0x20, 0x6f, 0x75, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20,
+ 0x6c, 0x6f, 0x6f, 0x70, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x2e, 0x0a, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x62, 0x72,
+ 0x65, 0x61, 0x6b, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x3b, 0x0a,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x53, 0x61, 0x76, 0x65, 0x20, 0x62,
+ 0x79, 0x74, 0x65, 0x73, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20,
+ 0x6d, 0x69, 0x6e, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x28, 0x62, 0x75,
+ 0x74, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x67, 0x7a, 0x69, 0x70, 0x70, 0x65,
+ 0x64, 0x29, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x0a,
+ 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x41, 0x72, 0x72, 0x61, 0x79, 0x50,
+ 0x72, 0x6f, 0x74, 0x6f, 0x20, 0x3d, 0x20, 0x41, 0x72, 0x72, 0x61, 0x79,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x2c, 0x20,
+ 0x4f, 0x62, 0x6a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x20, 0x3d, 0x20, 0x4f,
+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74,
+ 0x79, 0x70, 0x65, 0x2c, 0x20, 0x46, 0x75, 0x6e, 0x63, 0x50, 0x72, 0x6f,
+ 0x74, 0x6f, 0x20, 0x3d, 0x20, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x3b,
+ 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x43, 0x72, 0x65, 0x61, 0x74,
+ 0x65, 0x20, 0x71, 0x75, 0x69, 0x63, 0x6b, 0x20, 0x72, 0x65, 0x66, 0x65,
+ 0x72, 0x65, 0x6e, 0x63, 0x65, 0x20, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62,
+ 0x6c, 0x65, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x73, 0x70, 0x65, 0x65,
+ 0x64, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x6f, 0x20,
+ 0x63, 0x6f, 0x72, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79,
+ 0x70, 0x65, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x70,
+ 0x75, 0x73, 0x68, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x41, 0x72, 0x72, 0x61, 0x79, 0x50,
+ 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x75, 0x73, 0x68, 0x2c, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20,
+ 0x41, 0x72, 0x72, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73,
+ 0x6c, 0x69, 0x63, 0x65, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x63, 0x6f, 0x6e, 0x63, 0x61, 0x74, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x41, 0x72, 0x72, 0x61, 0x79,
+ 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x63, 0x61, 0x74,
+ 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x74, 0x6f, 0x53, 0x74,
+ 0x72, 0x69, 0x6e, 0x67, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x3d, 0x20, 0x4f, 0x62, 0x6a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
+ 0x74, 0x6f, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2c, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x68, 0x61, 0x73, 0x4f, 0x77, 0x6e, 0x50, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x4f,
+ 0x62, 0x6a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x68, 0x61, 0x73, 0x4f,
+ 0x77, 0x6e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3b, 0x0a,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41, 0x6c, 0x6c, 0x20, 0x2a, 0x2a,
+ 0x45, 0x43, 0x4d, 0x41, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x20, 0x35,
+ 0x2a, 0x2a, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x69, 0x6d, 0x70, 0x6c, 0x65,
+ 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x74,
+ 0x68, 0x61, 0x74, 0x20, 0x77, 0x65, 0x20, 0x68, 0x6f, 0x70, 0x65, 0x20,
+ 0x74, 0x6f, 0x20, 0x75, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x61, 0x72, 0x65, 0x20, 0x64, 0x65, 0x63, 0x6c, 0x61, 0x72, 0x65, 0x64,
+ 0x20, 0x68, 0x65, 0x72, 0x65, 0x2e, 0x0a, 0x20, 0x20, 0x76, 0x61, 0x72,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x46,
+ 0x6f, 0x72, 0x45, 0x61, 0x63, 0x68, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x3d, 0x20, 0x41, 0x72, 0x72, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f,
+ 0x2e, 0x66, 0x6f, 0x72, 0x45, 0x61, 0x63, 0x68, 0x2c, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x4d, 0x61, 0x70, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x41,
+ 0x72, 0x72, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x61,
+ 0x70, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76,
+ 0x65, 0x52, 0x65, 0x64, 0x75, 0x63, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x3d, 0x20, 0x41, 0x72, 0x72, 0x61, 0x79, 0x50, 0x72, 0x6f,
+ 0x74, 0x6f, 0x2e, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x2c, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x64,
+ 0x75, 0x63, 0x65, 0x52, 0x69, 0x67, 0x68, 0x74, 0x20, 0x20, 0x3d, 0x20,
+ 0x41, 0x72, 0x72, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x72,
+ 0x65, 0x64, 0x75, 0x63, 0x65, 0x52, 0x69, 0x67, 0x68, 0x74, 0x2c, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x46, 0x69,
+ 0x6c, 0x74, 0x65, 0x72, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d,
+ 0x20, 0x41, 0x72, 0x72, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
+ 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x45, 0x76, 0x65, 0x72, 0x79, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x41, 0x72, 0x72,
+ 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x65, 0x76, 0x65, 0x72,
+ 0x79, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76,
+ 0x65, 0x53, 0x6f, 0x6d, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x3d, 0x20, 0x41, 0x72, 0x72, 0x61, 0x79, 0x50, 0x72, 0x6f,
+ 0x74, 0x6f, 0x2e, 0x73, 0x6f, 0x6d, 0x65, 0x2c, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78,
+ 0x4f, 0x66, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x41, 0x72,
+ 0x72, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x6e, 0x64,
+ 0x65, 0x78, 0x4f, 0x66, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6e, 0x61,
+ 0x74, 0x69, 0x76, 0x65, 0x4c, 0x61, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65,
+ 0x78, 0x4f, 0x66, 0x20, 0x20, 0x3d, 0x20, 0x41, 0x72, 0x72, 0x61, 0x79,
+ 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6c, 0x61, 0x73, 0x74, 0x49, 0x6e,
+ 0x64, 0x65, 0x78, 0x4f, 0x66, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6e,
+ 0x61, 0x74, 0x69, 0x76, 0x65, 0x49, 0x73, 0x41, 0x72, 0x72, 0x61, 0x79,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x41, 0x72, 0x72, 0x61,
+ 0x79, 0x2e, 0x69, 0x73, 0x41, 0x72, 0x72, 0x61, 0x79, 0x2c, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x4b, 0x65, 0x79,
+ 0x73, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20,
+ 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x2c,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x42,
+ 0x69, 0x6e, 0x64, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x3d, 0x20, 0x46, 0x75, 0x6e, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
+ 0x62, 0x69, 0x6e, 0x64, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x73, 0x61, 0x66,
+ 0x65, 0x20, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x20,
+ 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x55, 0x6e, 0x64, 0x65, 0x72,
+ 0x73, 0x63, 0x6f, 0x72, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74,
+ 0x20, 0x66, 0x6f, 0x72, 0x20, 0x75, 0x73, 0x65, 0x20, 0x62, 0x65, 0x6c,
+ 0x6f, 0x77, 0x2e, 0x0a, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x5f, 0x20,
+ 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f,
+ 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66,
+ 0x20, 0x28, 0x6f, 0x62, 0x6a, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x6f, 0x66, 0x20, 0x5f, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x69, 0x66, 0x20, 0x28, 0x21, 0x28, 0x74, 0x68, 0x69, 0x73, 0x20, 0x69,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x6f, 0x66, 0x20, 0x5f, 0x29,
+ 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x65, 0x77,
+ 0x20, 0x5f, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x74, 0x68, 0x69, 0x73, 0x2e, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70,
+ 0x65, 0x64, 0x20, 0x3d, 0x20, 0x6f, 0x62, 0x6a, 0x3b, 0x0a, 0x20, 0x20,
+ 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x45, 0x78, 0x70,
+ 0x6f, 0x72, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x55, 0x6e, 0x64, 0x65,
+ 0x72, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63,
+ 0x74, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x2a, 0x2a, 0x4e, 0x6f, 0x64, 0x65,
+ 0x2e, 0x6a, 0x73, 0x2a, 0x2a, 0x2c, 0x20, 0x77, 0x69, 0x74, 0x68, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x62, 0x61, 0x63, 0x6b, 0x77, 0x61, 0x72,
+ 0x64, 0x73, 0x2d, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x69,
+ 0x6c, 0x69, 0x74, 0x79, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x6f, 0x6c, 0x64, 0x20, 0x60, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72,
+ 0x65, 0x28, 0x29, 0x60, 0x20, 0x41, 0x50, 0x49, 0x2e, 0x20, 0x49, 0x66,
+ 0x20, 0x77, 0x65, 0x27, 0x72, 0x65, 0x20, 0x69, 0x6e, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x62, 0x72, 0x6f, 0x77, 0x73,
+ 0x65, 0x72, 0x2c, 0x20, 0x61, 0x64, 0x64, 0x20, 0x60, 0x5f, 0x60, 0x20,
+ 0x61, 0x73, 0x20, 0x61, 0x20, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20,
+ 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x76, 0x69, 0x61, 0x20, 0x61,
+ 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x64, 0x65, 0x6e,
+ 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2c, 0x0a, 0x20, 0x20, 0x2f, 0x2f,
+ 0x20, 0x66, 0x6f, 0x72, 0x20, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65,
+ 0x20, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x20, 0x22, 0x61,
+ 0x64, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x22, 0x20, 0x6d, 0x6f, 0x64,
+ 0x65, 0x2e, 0x0a, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x74, 0x79, 0x70,
+ 0x65, 0x6f, 0x66, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x20,
+ 0x21, 0x3d, 0x3d, 0x20, 0x27, 0x75, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e,
+ 0x65, 0x64, 0x27, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69,
+ 0x66, 0x20, 0x28, 0x74, 0x79, 0x70, 0x65, 0x6f, 0x66, 0x20, 0x6d, 0x6f,
+ 0x64, 0x75, 0x6c, 0x65, 0x20, 0x21, 0x3d, 0x3d, 0x20, 0x27, 0x75, 0x6e,
+ 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x27, 0x20, 0x26, 0x26, 0x20,
+ 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x72,
+ 0x74, 0x73, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x20, 0x3d, 0x20, 0x6d, 0x6f,
+ 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x73,
+ 0x20, 0x3d, 0x20, 0x5f, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2e,
+ 0x5f, 0x20, 0x3d, 0x20, 0x5f, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x20, 0x65,
+ 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x6f,
+ 0x6f, 0x74, 0x2e, 0x5f, 0x20, 0x3d, 0x20, 0x5f, 0x3b, 0x0a, 0x20, 0x20,
+ 0x7d, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x43, 0x75, 0x72, 0x72,
+ 0x65, 0x6e, 0x74, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
+ 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e,
+ 0x20, 0x3d, 0x20, 0x27, 0x31, 0x2e, 0x34, 0x2e, 0x34, 0x27, 0x3b, 0x0a,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x73, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x2d, 0x2d, 0x2d, 0x2d,
+ 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d,
+ 0x2d, 0x2d, 0x2d, 0x2d, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x54,
+ 0x68, 0x65, 0x20, 0x63, 0x6f, 0x72, 0x6e, 0x65, 0x72, 0x73, 0x74, 0x6f,
+ 0x6e, 0x65, 0x2c, 0x20, 0x61, 0x6e, 0x20, 0x60, 0x65, 0x61, 0x63, 0x68,
+ 0x60, 0x20, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x20, 0x61, 0x6b, 0x61, 0x20, 0x60, 0x66,
+ 0x6f, 0x72, 0x45, 0x61, 0x63, 0x68, 0x60, 0x2e, 0x0a, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x20, 0x6f, 0x62,
+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74,
+ 0x68, 0x65, 0x20, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x2d, 0x69, 0x6e, 0x20,
+ 0x60, 0x66, 0x6f, 0x72, 0x45, 0x61, 0x63, 0x68, 0x60, 0x2c, 0x20, 0x61,
+ 0x72, 0x72, 0x61, 0x79, 0x73, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x72,
+ 0x61, 0x77, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74,
+ 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x2a, 0x2a, 0x45, 0x43, 0x4d, 0x41,
+ 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x20, 0x35, 0x2a, 0x2a, 0x27, 0x73,
+ 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x60, 0x66, 0x6f, 0x72,
+ 0x45, 0x61, 0x63, 0x68, 0x60, 0x20, 0x69, 0x66, 0x20, 0x61, 0x76, 0x61,
+ 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x0a, 0x20, 0x20, 0x76, 0x61,
+ 0x72, 0x20, 0x65, 0x61, 0x63, 0x68, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x65,
+ 0x61, 0x63, 0x68, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x66, 0x6f, 0x72, 0x45,
+ 0x61, 0x63, 0x68, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x69, 0x74, 0x65, 0x72,
+ 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78,
+ 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20,
+ 0x28, 0x6f, 0x62, 0x6a, 0x20, 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c,
+ 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65,
+ 0x46, 0x6f, 0x72, 0x45, 0x61, 0x63, 0x68, 0x20, 0x26, 0x26, 0x20, 0x6f,
+ 0x62, 0x6a, 0x2e, 0x66, 0x6f, 0x72, 0x45, 0x61, 0x63, 0x68, 0x20, 0x3d,
+ 0x3d, 0x3d, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x46, 0x6f, 0x72,
+ 0x45, 0x61, 0x63, 0x68, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x66, 0x6f, 0x72, 0x45, 0x61, 0x63,
+ 0x68, 0x28, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x20,
+ 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20,
+ 0x28, 0x6f, 0x62, 0x6a, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20,
+ 0x3d, 0x3d, 0x3d, 0x20, 0x2b, 0x6f, 0x62, 0x6a, 0x2e, 0x6c, 0x65, 0x6e,
+ 0x67, 0x74, 0x68, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x76, 0x61, 0x72, 0x20, 0x69, 0x20,
+ 0x3d, 0x20, 0x30, 0x2c, 0x20, 0x6c, 0x20, 0x3d, 0x20, 0x6f, 0x62, 0x6a,
+ 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x3b, 0x20, 0x69, 0x20, 0x3c,
+ 0x20, 0x6c, 0x3b, 0x20, 0x69, 0x2b, 0x2b, 0x29, 0x20, 0x7b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x69,
+ 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x63, 0x61, 0x6c, 0x6c,
+ 0x28, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x6f, 0x62,
+ 0x6a, 0x5b, 0x69, 0x5d, 0x2c, 0x20, 0x69, 0x2c, 0x20, 0x6f, 0x62, 0x6a,
+ 0x29, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x65,
+ 0x72, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d,
+ 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x76, 0x61, 0x72, 0x20, 0x6b,
+ 0x65, 0x79, 0x20, 0x69, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20,
+ 0x28, 0x5f, 0x2e, 0x68, 0x61, 0x73, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20,
+ 0x6b, 0x65, 0x79, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x69, 0x74,
+ 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28,
+ 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x6f, 0x62, 0x6a,
+ 0x5b, 0x6b, 0x65, 0x79, 0x5d, 0x2c, 0x20, 0x6b, 0x65, 0x79, 0x2c, 0x20,
+ 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x62, 0x72, 0x65,
+ 0x61, 0x6b, 0x65, 0x72, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x7d, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f,
+ 0x20, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20,
+ 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x61,
+ 0x70, 0x70, 0x6c, 0x79, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x20,
+ 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x74, 0x6f, 0x20,
+ 0x65, 0x61, 0x63, 0x68, 0x20, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74,
+ 0x2e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x44, 0x65, 0x6c, 0x65, 0x67,
+ 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x2a, 0x2a, 0x45, 0x43,
+ 0x4d, 0x41, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x20, 0x35, 0x2a, 0x2a,
+ 0x27, 0x73, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x60, 0x6d,
+ 0x61, 0x70, 0x60, 0x20, 0x69, 0x66, 0x20, 0x61, 0x76, 0x61, 0x69, 0x6c,
+ 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x6d, 0x61,
+ 0x70, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63,
+ 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74,
+ 0x6f, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x72,
+ 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x20, 0x3d, 0x20, 0x5b, 0x5d, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6f, 0x62, 0x6a,
+ 0x20, 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x72, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6e, 0x61,
+ 0x74, 0x69, 0x76, 0x65, 0x4d, 0x61, 0x70, 0x20, 0x26, 0x26, 0x20, 0x6f,
+ 0x62, 0x6a, 0x2e, 0x6d, 0x61, 0x70, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x6e,
+ 0x61, 0x74, 0x69, 0x76, 0x65, 0x4d, 0x61, 0x70, 0x29, 0x20, 0x72, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x6d, 0x61, 0x70,
+ 0x28, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x63,
+ 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x65, 0x61, 0x63, 0x68, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20, 0x6c, 0x69,
+ 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5b, 0x72, 0x65, 0x73, 0x75,
+ 0x6c, 0x74, 0x73, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5d, 0x20,
+ 0x3d, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x63,
+ 0x61, 0x6c, 0x6c, 0x28, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c,
+ 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65,
+ 0x78, 0x2c, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x29, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73,
+ 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x76, 0x61,
+ 0x72, 0x20, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x45, 0x72, 0x72, 0x6f,
+ 0x72, 0x20, 0x3d, 0x20, 0x27, 0x52, 0x65, 0x64, 0x75, 0x63, 0x65, 0x20,
+ 0x6f, 0x66, 0x20, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x20, 0x61, 0x72, 0x72,
+ 0x61, 0x79, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x6e, 0x6f, 0x20, 0x69,
+ 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x27, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x2a, 0x2a, 0x52,
+ 0x65, 0x64, 0x75, 0x63, 0x65, 0x2a, 0x2a, 0x20, 0x62, 0x75, 0x69, 0x6c,
+ 0x64, 0x73, 0x20, 0x75, 0x70, 0x20, 0x61, 0x20, 0x73, 0x69, 0x6e, 0x67,
+ 0x6c, 0x65, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x66, 0x72,
+ 0x6f, 0x6d, 0x20, 0x61, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66,
+ 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2c, 0x20, 0x61, 0x6b, 0x61,
+ 0x20, 0x60, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x60, 0x2c, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x6f, 0x72, 0x20, 0x60, 0x66, 0x6f, 0x6c, 0x64,
+ 0x6c, 0x60, 0x2e, 0x20, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65,
+ 0x73, 0x20, 0x74, 0x6f, 0x20, 0x2a, 0x2a, 0x45, 0x43, 0x4d, 0x41, 0x53,
+ 0x63, 0x72, 0x69, 0x70, 0x74, 0x20, 0x35, 0x2a, 0x2a, 0x27, 0x73, 0x20,
+ 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x60, 0x72, 0x65, 0x64, 0x75,
+ 0x63, 0x65, 0x60, 0x20, 0x69, 0x66, 0x20, 0x61, 0x76, 0x61, 0x69, 0x6c,
+ 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x72, 0x65,
+ 0x64, 0x75, 0x63, 0x65, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x66, 0x6f, 0x6c,
+ 0x64, 0x6c, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x69, 0x6e, 0x6a, 0x65, 0x63,
+ 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74,
+ 0x6f, 0x72, 0x2c, 0x20, 0x6d, 0x65, 0x6d, 0x6f, 0x2c, 0x20, 0x63, 0x6f,
+ 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x76, 0x61, 0x72, 0x20, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c,
+ 0x20, 0x3d, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73,
+ 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x3e, 0x20, 0x32, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6f, 0x62, 0x6a,
+ 0x20, 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x6f, 0x62,
+ 0x6a, 0x20, 0x3d, 0x20, 0x5b, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x69, 0x66, 0x20, 0x28, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65,
+ 0x64, 0x75, 0x63, 0x65, 0x20, 0x26, 0x26, 0x20, 0x6f, 0x62, 0x6a, 0x2e,
+ 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x6e,
+ 0x61, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x64, 0x75, 0x63, 0x65, 0x29,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20,
+ 0x28, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29, 0x20, 0x69, 0x74,
+ 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x62,
+ 0x69, 0x6e, 0x64, 0x28, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72,
+ 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x20, 0x3f, 0x20, 0x6f,
+ 0x62, 0x6a, 0x2e, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x28, 0x69, 0x74,
+ 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x6d, 0x65, 0x6d, 0x6f,
+ 0x29, 0x20, 0x3a, 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x72, 0x65, 0x64, 0x75,
+ 0x63, 0x65, 0x28, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x29,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x65, 0x61, 0x63, 0x68, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20, 0x6c, 0x69, 0x73,
+ 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69,
+ 0x66, 0x20, 0x28, 0x21, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x29,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6d,
+ 0x65, 0x6d, 0x6f, 0x20, 0x3d, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x6e, 0x69,
+ 0x74, 0x69, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x20, 0x65, 0x6c, 0x73,
+ 0x65, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x6d, 0x65, 0x6d, 0x6f, 0x20, 0x3d, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61,
+ 0x74, 0x6f, 0x72, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x63, 0x6f, 0x6e,
+ 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x6d, 0x65, 0x6d, 0x6f, 0x2c, 0x20,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78,
+ 0x2c, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x21, 0x69, 0x6e,
+ 0x69, 0x74, 0x69, 0x61, 0x6c, 0x29, 0x20, 0x74, 0x68, 0x72, 0x6f, 0x77,
+ 0x20, 0x6e, 0x65, 0x77, 0x20, 0x54, 0x79, 0x70, 0x65, 0x45, 0x72, 0x72,
+ 0x6f, 0x72, 0x28, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x45, 0x72, 0x72,
+ 0x6f, 0x72, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x6d, 0x65, 0x6d, 0x6f, 0x3b, 0x0a, 0x20, 0x20,
+ 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x54, 0x68, 0x65,
+ 0x20, 0x72, 0x69, 0x67, 0x68, 0x74, 0x2d, 0x61, 0x73, 0x73, 0x6f, 0x63,
+ 0x69, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69,
+ 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65,
+ 0x2c, 0x20, 0x61, 0x6c, 0x73, 0x6f, 0x20, 0x6b, 0x6e, 0x6f, 0x77, 0x6e,
+ 0x20, 0x61, 0x73, 0x20, 0x60, 0x66, 0x6f, 0x6c, 0x64, 0x72, 0x60, 0x2e,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61,
+ 0x74, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x2a, 0x2a, 0x45, 0x43, 0x4d,
+ 0x41, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x20, 0x35, 0x2a, 0x2a, 0x27,
+ 0x73, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x60, 0x72, 0x65,
+ 0x64, 0x75, 0x63, 0x65, 0x52, 0x69, 0x67, 0x68, 0x74, 0x60, 0x20, 0x69,
+ 0x66, 0x20, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x2e,
+ 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x52,
+ 0x69, 0x67, 0x68, 0x74, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x66, 0x6f, 0x6c,
+ 0x64, 0x72, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61,
+ 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x6d, 0x65, 0x6d, 0x6f, 0x2c, 0x20, 0x63,
+ 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61,
+ 0x6c, 0x20, 0x3d, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x3e, 0x20, 0x32,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6f, 0x62,
+ 0x6a, 0x20, 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x6f,
+ 0x62, 0x6a, 0x20, 0x3d, 0x20, 0x5b, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x69, 0x66, 0x20, 0x28, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x52,
+ 0x65, 0x64, 0x75, 0x63, 0x65, 0x52, 0x69, 0x67, 0x68, 0x74, 0x20, 0x26,
+ 0x26, 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65,
+ 0x52, 0x69, 0x67, 0x68, 0x74, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x6e, 0x61,
+ 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x64, 0x75, 0x63, 0x65, 0x52, 0x69,
+ 0x67, 0x68, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x69, 0x66, 0x20, 0x28, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
+ 0x29, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x3d,
+ 0x20, 0x5f, 0x2e, 0x62, 0x69, 0x6e, 0x64, 0x28, 0x69, 0x74, 0x65, 0x72,
+ 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78,
+ 0x74, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x20, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c,
+ 0x20, 0x3f, 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x72, 0x65, 0x64, 0x75, 0x63,
+ 0x65, 0x52, 0x69, 0x67, 0x68, 0x74, 0x28, 0x69, 0x74, 0x65, 0x72, 0x61,
+ 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x6d, 0x65, 0x6d, 0x6f, 0x29, 0x20, 0x3a,
+ 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x52,
+ 0x69, 0x67, 0x68, 0x74, 0x28, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f,
+ 0x72, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68,
+ 0x20, 0x3d, 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74,
+ 0x68, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6c,
+ 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x21, 0x3d, 0x3d, 0x20, 0x2b, 0x6c,
+ 0x65, 0x6e, 0x67, 0x74, 0x68, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x6b, 0x65, 0x79, 0x73, 0x20,
+ 0x3d, 0x20, 0x5f, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x28, 0x6f, 0x62, 0x6a,
+ 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x65, 0x6e,
+ 0x67, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x6c,
+ 0x65, 0x6e, 0x67, 0x74, 0x68, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x61, 0x63, 0x68, 0x28, 0x6f, 0x62,
+ 0x6a, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78,
+ 0x2c, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x3d, 0x20,
+ 0x6b, 0x65, 0x79, 0x73, 0x20, 0x3f, 0x20, 0x6b, 0x65, 0x79, 0x73, 0x5b,
+ 0x2d, 0x2d, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5d, 0x20, 0x3a, 0x20,
+ 0x2d, 0x2d, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x21, 0x69, 0x6e, 0x69,
+ 0x74, 0x69, 0x61, 0x6c, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x6d, 0x65, 0x6d, 0x6f, 0x20, 0x3d, 0x20, 0x6f,
+ 0x62, 0x6a, 0x5b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5d, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x6e, 0x69, 0x74, 0x69,
+ 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6d, 0x65,
+ 0x6d, 0x6f, 0x20, 0x3d, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f,
+ 0x72, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x63, 0x6f, 0x6e, 0x74, 0x65,
+ 0x78, 0x74, 0x2c, 0x20, 0x6d, 0x65, 0x6d, 0x6f, 0x2c, 0x20, 0x6f, 0x62,
+ 0x6a, 0x5b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5d, 0x2c, 0x20, 0x69, 0x6e,
+ 0x64, 0x65, 0x78, 0x2c, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x29, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28,
+ 0x21, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x29, 0x20, 0x74, 0x68,
+ 0x72, 0x6f, 0x77, 0x20, 0x6e, 0x65, 0x77, 0x20, 0x54, 0x79, 0x70, 0x65,
+ 0x45, 0x72, 0x72, 0x6f, 0x72, 0x28, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65,
+ 0x45, 0x72, 0x72, 0x6f, 0x72, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6d, 0x65, 0x6d, 0x6f, 0x3b,
+ 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66,
+ 0x69, 0x72, 0x73, 0x74, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x77,
+ 0x68, 0x69, 0x63, 0x68, 0x20, 0x70, 0x61, 0x73, 0x73, 0x65, 0x73, 0x20,
+ 0x61, 0x20, 0x74, 0x72, 0x75, 0x74, 0x68, 0x20, 0x74, 0x65, 0x73, 0x74,
+ 0x2e, 0x20, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x64, 0x20, 0x61, 0x73,
+ 0x20, 0x60, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x60, 0x2e, 0x0a, 0x20,
+ 0x20, 0x5f, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x20, 0x3d, 0x20, 0x5f, 0x2e,
+ 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x69,
+ 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6e,
+ 0x74, 0x65, 0x78, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x61, 0x6e, 0x79, 0x28, 0x6f, 0x62, 0x6a, 0x2c,
+ 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61,
+ 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20,
+ 0x6c, 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74,
+ 0x6f, 0x72, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x63, 0x6f, 0x6e, 0x74,
+ 0x65, 0x78, 0x74, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20,
+ 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x29,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x76, 0x61, 0x6c,
+ 0x75, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x3b, 0x0a,
+ 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x74, 0x68,
+ 0x65, 0x20, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x74,
+ 0x68, 0x61, 0x74, 0x20, 0x70, 0x61, 0x73, 0x73, 0x20, 0x61, 0x20, 0x74,
+ 0x72, 0x75, 0x74, 0x68, 0x20, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65,
+ 0x73, 0x20, 0x74, 0x6f, 0x20, 0x2a, 0x2a, 0x45, 0x43, 0x4d, 0x41, 0x53,
+ 0x63, 0x72, 0x69, 0x70, 0x74, 0x20, 0x35, 0x2a, 0x2a, 0x27, 0x73, 0x20,
+ 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x60, 0x66, 0x69, 0x6c, 0x74,
+ 0x65, 0x72, 0x60, 0x20, 0x69, 0x66, 0x20, 0x61, 0x76, 0x61, 0x69, 0x6c,
+ 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41,
+ 0x6c, 0x69, 0x61, 0x73, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x60, 0x73,
+ 0x65, 0x6c, 0x65, 0x63, 0x74, 0x60, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e,
+ 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x73,
+ 0x65, 0x6c, 0x65, 0x63, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x69, 0x74,
+ 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74,
+ 0x65, 0x78, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76,
+ 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x20, 0x3d,
+ 0x20, 0x5b, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20,
+ 0x28, 0x6f, 0x62, 0x6a, 0x20, 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c,
+ 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x73,
+ 0x75, 0x6c, 0x74, 0x73, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66,
+ 0x20, 0x28, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x74,
+ 0x65, 0x72, 0x20, 0x26, 0x26, 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x66, 0x69,
+ 0x6c, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x6e, 0x61, 0x74,
+ 0x69, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x29, 0x20, 0x72,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x66, 0x69,
+ 0x6c, 0x74, 0x65, 0x72, 0x28, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f,
+ 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x61, 0x63, 0x68, 0x28, 0x6f, 0x62,
+ 0x6a, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78,
+ 0x2c, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x69, 0x74, 0x65, 0x72,
+ 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x63, 0x6f,
+ 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20, 0x6c, 0x69, 0x73,
+ 0x74, 0x29, 0x29, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5b,
+ 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x6c, 0x65, 0x6e, 0x67,
+ 0x74, 0x68, 0x5d, 0x20, 0x3d, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x75,
+ 0x6c, 0x74, 0x73, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x61,
+ 0x6c, 0x6c, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x6c, 0x65, 0x6d, 0x65,
+ 0x6e, 0x74, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x77, 0x68, 0x69, 0x63,
+ 0x68, 0x20, 0x61, 0x20, 0x74, 0x72, 0x75, 0x74, 0x68, 0x20, 0x74, 0x65,
+ 0x73, 0x74, 0x20, 0x66, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x0a, 0x20, 0x20,
+ 0x5f, 0x2e, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x3d, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c,
+ 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x63,
+ 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x66,
+ 0x69, 0x6c, 0x74, 0x65, 0x72, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20, 0x6c, 0x69,
+ 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x21, 0x69, 0x74, 0x65, 0x72,
+ 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x63, 0x6f,
+ 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20, 0x6c, 0x69, 0x73,
+ 0x74, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0x20, 0x63,
+ 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d,
+ 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x44, 0x65, 0x74, 0x65,
+ 0x72, 0x6d, 0x69, 0x6e, 0x65, 0x20, 0x77, 0x68, 0x65, 0x74, 0x68, 0x65,
+ 0x72, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x6d, 0x61,
+ 0x74, 0x63, 0x68, 0x20, 0x61, 0x20, 0x74, 0x72, 0x75, 0x74, 0x68, 0x20,
+ 0x74, 0x65, 0x73, 0x74, 0x2e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x44,
+ 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20,
+ 0x2a, 0x2a, 0x45, 0x43, 0x4d, 0x41, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74,
+ 0x20, 0x35, 0x2a, 0x2a, 0x27, 0x73, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76,
+ 0x65, 0x20, 0x60, 0x65, 0x76, 0x65, 0x72, 0x79, 0x60, 0x20, 0x69, 0x66,
+ 0x20, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x64,
+ 0x20, 0x61, 0x73, 0x20, 0x60, 0x61, 0x6c, 0x6c, 0x60, 0x2e, 0x0a, 0x20,
+ 0x20, 0x5f, 0x2e, 0x65, 0x76, 0x65, 0x72, 0x79, 0x20, 0x3d, 0x20, 0x5f,
+ 0x2e, 0x61, 0x6c, 0x6c, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x69, 0x74, 0x65,
+ 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65,
+ 0x78, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x74,
+ 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x69,
+ 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x5f, 0x2e,
+ 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x29, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c,
+ 0x74, 0x20, 0x3d, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6f, 0x62, 0x6a, 0x20, 0x3d, 0x3d,
+ 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65,
+ 0x45, 0x76, 0x65, 0x72, 0x79, 0x20, 0x26, 0x26, 0x20, 0x6f, 0x62, 0x6a,
+ 0x2e, 0x65, 0x76, 0x65, 0x72, 0x79, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x6e,
+ 0x61, 0x74, 0x69, 0x76, 0x65, 0x45, 0x76, 0x65, 0x72, 0x79, 0x29, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x65,
+ 0x76, 0x65, 0x72, 0x79, 0x28, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f,
+ 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x61, 0x63, 0x68, 0x28, 0x6f, 0x62,
+ 0x6a, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78,
+ 0x2c, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x21, 0x28, 0x72, 0x65,
+ 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c,
+ 0x74, 0x20, 0x26, 0x26, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f,
+ 0x72, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x63, 0x6f, 0x6e, 0x74, 0x65,
+ 0x78, 0x74, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69,
+ 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x29, 0x29,
+ 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x62, 0x72, 0x65,
+ 0x61, 0x6b, 0x65, 0x72, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x21, 0x21, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x3b, 0x0a, 0x20,
+ 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x44, 0x65,
+ 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x65, 0x20, 0x69, 0x66, 0x20, 0x61,
+ 0x74, 0x20, 0x6c, 0x65, 0x61, 0x73, 0x74, 0x20, 0x6f, 0x6e, 0x65, 0x20,
+ 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x69, 0x6e, 0x20, 0x74,
+ 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x6d, 0x61,
+ 0x74, 0x63, 0x68, 0x65, 0x73, 0x20, 0x61, 0x20, 0x74, 0x72, 0x75, 0x74,
+ 0x68, 0x20, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x0a, 0x20, 0x20, 0x2f, 0x2f,
+ 0x20, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74,
+ 0x6f, 0x20, 0x2a, 0x2a, 0x45, 0x43, 0x4d, 0x41, 0x53, 0x63, 0x72, 0x69,
+ 0x70, 0x74, 0x20, 0x35, 0x2a, 0x2a, 0x27, 0x73, 0x20, 0x6e, 0x61, 0x74,
+ 0x69, 0x76, 0x65, 0x20, 0x60, 0x73, 0x6f, 0x6d, 0x65, 0x60, 0x20, 0x69,
+ 0x66, 0x20, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x2e,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65,
+ 0x64, 0x20, 0x61, 0x73, 0x20, 0x60, 0x61, 0x6e, 0x79, 0x60, 0x2e, 0x0a,
+ 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x61, 0x6e, 0x79, 0x20, 0x3d, 0x20,
+ 0x5f, 0x2e, 0x73, 0x6f, 0x6d, 0x65, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x61,
+ 0x6e, 0x79, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61,
+ 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x74, 0x65, 0x72,
+ 0x61, 0x74, 0x6f, 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x69, 0x74, 0x65,
+ 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x69, 0x64,
+ 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20,
+ 0x3d, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x69, 0x66, 0x20, 0x28, 0x6f, 0x62, 0x6a, 0x20, 0x3d, 0x3d, 0x20,
+ 0x6e, 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x69, 0x66, 0x20, 0x28, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x53,
+ 0x6f, 0x6d, 0x65, 0x20, 0x26, 0x26, 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x73,
+ 0x6f, 0x6d, 0x65, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x6e, 0x61, 0x74, 0x69,
+ 0x76, 0x65, 0x53, 0x6f, 0x6d, 0x65, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x73, 0x6f, 0x6d, 0x65, 0x28,
+ 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x63, 0x6f,
+ 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x65, 0x61, 0x63, 0x68, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20, 0x6c, 0x69, 0x73,
+ 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69,
+ 0x66, 0x20, 0x28, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x7c, 0x7c,
+ 0x20, 0x28, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x69,
+ 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x63, 0x61, 0x6c, 0x6c,
+ 0x28, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x76, 0x61,
+ 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20,
+ 0x6c, 0x69, 0x73, 0x74, 0x29, 0x29, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x21, 0x21, 0x72, 0x65, 0x73,
+ 0x75, 0x6c, 0x74, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x44, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e,
+ 0x65, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x72, 0x72,
+ 0x61, 0x79, 0x20, 0x6f, 0x72, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74,
+ 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x61, 0x20,
+ 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20,
+ 0x28, 0x75, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x60, 0x3d, 0x3d, 0x3d, 0x60,
+ 0x29, 0x2e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41, 0x6c, 0x69, 0x61,
+ 0x73, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x60, 0x69, 0x6e, 0x63, 0x6c,
+ 0x75, 0x64, 0x65, 0x60, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x63, 0x6f,
+ 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x69,
+ 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x74,
+ 0x61, 0x72, 0x67, 0x65, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x69, 0x66, 0x20, 0x28, 0x6f, 0x62, 0x6a, 0x20, 0x3d, 0x3d, 0x20,
+ 0x6e, 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x69, 0x66, 0x20, 0x28, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x49, 0x6e,
+ 0x64, 0x65, 0x78, 0x4f, 0x66, 0x20, 0x26, 0x26, 0x20, 0x6f, 0x62, 0x6a,
+ 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x4f, 0x66, 0x20, 0x3d, 0x3d, 0x3d,
+ 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78,
+ 0x4f, 0x66, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6f,
+ 0x62, 0x6a, 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x4f, 0x66, 0x28, 0x74,
+ 0x61, 0x72, 0x67, 0x65, 0x74, 0x29, 0x20, 0x21, 0x3d, 0x20, 0x2d, 0x31,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x61, 0x6e, 0x79, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x3d,
+ 0x3d, 0x3d, 0x20, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65,
+ 0x20, 0x61, 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x20, 0x28, 0x77,
+ 0x69, 0x74, 0x68, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x29, 0x20, 0x6f, 0x6e, 0x20, 0x65, 0x76, 0x65, 0x72, 0x79, 0x20,
+ 0x69, 0x74, 0x65, 0x6d, 0x20, 0x69, 0x6e, 0x20, 0x61, 0x20, 0x63, 0x6f,
+ 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x20, 0x20,
+ 0x5f, 0x2e, 0x69, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x20, 0x3d, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c,
+ 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x29, 0x20, 0x7b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x61, 0x72, 0x67, 0x73, 0x20,
+ 0x3d, 0x20, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c,
+ 0x28, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20,
+ 0x32, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20,
+ 0x69, 0x73, 0x46, 0x75, 0x6e, 0x63, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x69,
+ 0x73, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6d, 0x65,
+ 0x74, 0x68, 0x6f, 0x64, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x6d, 0x61, 0x70, 0x28,
+ 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x28, 0x69, 0x73, 0x46, 0x75, 0x6e, 0x63, 0x20, 0x3f, 0x20, 0x6d, 0x65,
+ 0x74, 0x68, 0x6f, 0x64, 0x20, 0x3a, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x5b, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5d, 0x29, 0x2e, 0x61, 0x70,
+ 0x70, 0x6c, 0x79, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x61,
+ 0x72, 0x67, 0x73, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29,
+ 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f,
+ 0x20, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x6e, 0x69, 0x65, 0x6e, 0x63, 0x65,
+ 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20,
+ 0x61, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x20, 0x75, 0x73, 0x65,
+ 0x20, 0x63, 0x61, 0x73, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x60, 0x6d, 0x61,
+ 0x70, 0x60, 0x3a, 0x20, 0x66, 0x65, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67,
+ 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x2e,
+ 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x70, 0x6c, 0x75, 0x63, 0x6b, 0x20, 0x3d,
+ 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62,
+ 0x6a, 0x2c, 0x20, 0x6b, 0x65, 0x79, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x6d,
+ 0x61, 0x70, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x29, 0x7b,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x5b, 0x6b, 0x65, 0x79, 0x5d, 0x3b, 0x20, 0x7d, 0x29, 0x3b, 0x0a,
+ 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x43,
+ 0x6f, 0x6e, 0x76, 0x65, 0x6e, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x20, 0x76,
+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20,
+ 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x20, 0x75, 0x73, 0x65, 0x20, 0x63,
+ 0x61, 0x73, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x60, 0x66, 0x69, 0x6c, 0x74,
+ 0x65, 0x72, 0x60, 0x3a, 0x20, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69,
+ 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x6f, 0x62, 0x6a, 0x65,
+ 0x63, 0x74, 0x73, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x63, 0x6f, 0x6e,
+ 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x73, 0x70, 0x65, 0x63,
+ 0x69, 0x66, 0x69, 0x63, 0x20, 0x60, 0x6b, 0x65, 0x79, 0x3a, 0x76, 0x61,
+ 0x6c, 0x75, 0x65, 0x60, 0x20, 0x70, 0x61, 0x69, 0x72, 0x73, 0x2e, 0x0a,
+ 0x20, 0x20, 0x5f, 0x2e, 0x77, 0x68, 0x65, 0x72, 0x65, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a,
+ 0x2c, 0x20, 0x61, 0x74, 0x74, 0x72, 0x73, 0x2c, 0x20, 0x66, 0x69, 0x72,
+ 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66,
+ 0x20, 0x28, 0x5f, 0x2e, 0x69, 0x73, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x28,
+ 0x61, 0x74, 0x74, 0x72, 0x73, 0x29, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x66, 0x69, 0x72, 0x73, 0x74, 0x20, 0x3f, 0x20, 0x6e,
+ 0x75, 0x6c, 0x6c, 0x20, 0x3a, 0x20, 0x5b, 0x5d, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x5b, 0x66,
+ 0x69, 0x72, 0x73, 0x74, 0x20, 0x3f, 0x20, 0x27, 0x66, 0x69, 0x6e, 0x64,
+ 0x27, 0x20, 0x3a, 0x20, 0x27, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x27,
+ 0x5d, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x28,
+ 0x76, 0x61, 0x72, 0x20, 0x6b, 0x65, 0x79, 0x20, 0x69, 0x6e, 0x20, 0x61,
+ 0x74, 0x74, 0x72, 0x73, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x61, 0x74, 0x74, 0x72,
+ 0x73, 0x5b, 0x6b, 0x65, 0x79, 0x5d, 0x20, 0x21, 0x3d, 0x3d, 0x20, 0x76,
+ 0x61, 0x6c, 0x75, 0x65, 0x5b, 0x6b, 0x65, 0x79, 0x5d, 0x29, 0x20, 0x72,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x72,
+ 0x75, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a,
+ 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x43,
+ 0x6f, 0x6e, 0x76, 0x65, 0x6e, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x20, 0x76,
+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20,
+ 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x20, 0x75, 0x73, 0x65, 0x20, 0x63,
+ 0x61, 0x73, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x60, 0x66, 0x69, 0x6e, 0x64,
+ 0x60, 0x3a, 0x20, 0x67, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x74,
+ 0x68, 0x65, 0x20, 0x66, 0x69, 0x72, 0x73, 0x74, 0x20, 0x6f, 0x62, 0x6a,
+ 0x65, 0x63, 0x74, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x63, 0x6f, 0x6e,
+ 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x73, 0x70, 0x65, 0x63,
+ 0x69, 0x66, 0x69, 0x63, 0x20, 0x60, 0x6b, 0x65, 0x79, 0x3a, 0x76, 0x61,
+ 0x6c, 0x75, 0x65, 0x60, 0x20, 0x70, 0x61, 0x69, 0x72, 0x73, 0x2e, 0x0a,
+ 0x20, 0x20, 0x5f, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x57, 0x68, 0x65, 0x72,
+ 0x65, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x61, 0x74, 0x74, 0x72, 0x73, 0x29,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x5f, 0x2e, 0x77, 0x68, 0x65, 0x72, 0x65, 0x28, 0x6f, 0x62,
+ 0x6a, 0x2c, 0x20, 0x61, 0x74, 0x74, 0x72, 0x73, 0x2c, 0x20, 0x74, 0x72,
+ 0x75, 0x65, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74,
+ 0x68, 0x65, 0x20, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x20, 0x65,
+ 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x28, 0x65,
+ 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2d, 0x62, 0x61, 0x73, 0x65, 0x64,
+ 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x29, 0x2e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x43, 0x61, 0x6e, 0x27,
+ 0x74, 0x20, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x20, 0x61,
+ 0x72, 0x72, 0x61, 0x79, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x69, 0x6e, 0x74,
+ 0x65, 0x67, 0x65, 0x72, 0x73, 0x20, 0x6c, 0x6f, 0x6e, 0x67, 0x65, 0x72,
+ 0x20, 0x74, 0x68, 0x61, 0x6e, 0x20, 0x36, 0x35, 0x2c, 0x35, 0x33, 0x35,
+ 0x20, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x53, 0x65, 0x65, 0x3a, 0x20, 0x68, 0x74, 0x74,
+ 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x62, 0x75, 0x67, 0x73, 0x2e, 0x77, 0x65,
+ 0x62, 0x6b, 0x69, 0x74, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x73, 0x68, 0x6f,
+ 0x77, 0x5f, 0x62, 0x75, 0x67, 0x2e, 0x63, 0x67, 0x69, 0x3f, 0x69, 0x64,
+ 0x3d, 0x38, 0x30, 0x37, 0x39, 0x37, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x6d,
+ 0x61, 0x78, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61,
+ 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28,
+ 0x21, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x26, 0x26,
+ 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x41, 0x72, 0x72, 0x61, 0x79, 0x28, 0x6f,
+ 0x62, 0x6a, 0x29, 0x20, 0x26, 0x26, 0x20, 0x6f, 0x62, 0x6a, 0x5b, 0x30,
+ 0x5d, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x2b, 0x6f, 0x62, 0x6a, 0x5b, 0x30,
+ 0x5d, 0x20, 0x26, 0x26, 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x6c, 0x65, 0x6e,
+ 0x67, 0x74, 0x68, 0x20, 0x3c, 0x20, 0x36, 0x35, 0x35, 0x33, 0x35, 0x29,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x4d, 0x61, 0x74, 0x68, 0x2e, 0x6d, 0x61, 0x78,
+ 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x4d, 0x61, 0x74, 0x68, 0x2c,
+ 0x20, 0x6f, 0x62, 0x6a, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x21, 0x69, 0x74,
+ 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x26, 0x26, 0x20, 0x5f, 0x2e,
+ 0x69, 0x73, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x28, 0x6f, 0x62, 0x6a, 0x29,
+ 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x2d, 0x49, 0x6e,
+ 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d,
+ 0x20, 0x7b, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, 0x20, 0x3a,
+ 0x20, 0x2d, 0x49, 0x6e, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x2c, 0x20,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x20, 0x2d, 0x49, 0x6e, 0x66, 0x69,
+ 0x6e, 0x69, 0x74, 0x79, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65,
+ 0x61, 0x63, 0x68, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c,
+ 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20, 0x6c, 0x69, 0x73, 0x74,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61,
+ 0x72, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, 0x20, 0x3d,
+ 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x3f, 0x20,
+ 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x63, 0x61, 0x6c,
+ 0x6c, 0x28, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x76,
+ 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c,
+ 0x20, 0x6c, 0x69, 0x73, 0x74, 0x29, 0x20, 0x3a, 0x20, 0x76, 0x61, 0x6c,
+ 0x75, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x6f,
+ 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, 0x20, 0x3e, 0x3d, 0x20, 0x72, 0x65,
+ 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65,
+ 0x64, 0x20, 0x26, 0x26, 0x20, 0x28, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
+ 0x20, 0x3d, 0x20, 0x7b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x3a, 0x20,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x75,
+ 0x74, 0x65, 0x64, 0x20, 0x3a, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74,
+ 0x65, 0x64, 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x20, 0x65, 0x6c, 0x65,
+ 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x28, 0x6f, 0x72, 0x20, 0x65, 0x6c, 0x65,
+ 0x6d, 0x65, 0x6e, 0x74, 0x2d, 0x62, 0x61, 0x73, 0x65, 0x64, 0x20, 0x63,
+ 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x29, 0x2e,
+ 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x6d, 0x69, 0x6e, 0x20, 0x3d, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c,
+ 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x63,
+ 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x21, 0x69, 0x74, 0x65, 0x72, 0x61,
+ 0x74, 0x6f, 0x72, 0x20, 0x26, 0x26, 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x41,
+ 0x72, 0x72, 0x61, 0x79, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x26, 0x26,
+ 0x20, 0x6f, 0x62, 0x6a, 0x5b, 0x30, 0x5d, 0x20, 0x3d, 0x3d, 0x3d, 0x20,
+ 0x2b, 0x6f, 0x62, 0x6a, 0x5b, 0x30, 0x5d, 0x20, 0x26, 0x26, 0x20, 0x6f,
+ 0x62, 0x6a, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x3c, 0x20,
+ 0x36, 0x35, 0x35, 0x33, 0x35, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x4d, 0x61,
+ 0x74, 0x68, 0x2e, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79,
+ 0x28, 0x4d, 0x61, 0x74, 0x68, 0x2c, 0x20, 0x6f, 0x62, 0x6a, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69,
+ 0x66, 0x20, 0x28, 0x21, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72,
+ 0x20, 0x26, 0x26, 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x45, 0x6d, 0x70, 0x74,
+ 0x79, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x49, 0x6e, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73,
+ 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x7b, 0x63, 0x6f, 0x6d, 0x70, 0x75,
+ 0x74, 0x65, 0x64, 0x20, 0x3a, 0x20, 0x49, 0x6e, 0x66, 0x69, 0x6e, 0x69,
+ 0x74, 0x79, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x20, 0x49,
+ 0x6e, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x7d, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x65, 0x61, 0x63, 0x68, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c,
+ 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20, 0x6c,
+ 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x76, 0x61, 0x72, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65,
+ 0x64, 0x20, 0x3d, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72,
+ 0x20, 0x3f, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e,
+ 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
+ 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64,
+ 0x65, 0x78, 0x2c, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x29, 0x20, 0x3a, 0x20,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, 0x20, 0x3c, 0x20,
+ 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75,
+ 0x74, 0x65, 0x64, 0x20, 0x26, 0x26, 0x20, 0x28, 0x72, 0x65, 0x73, 0x75,
+ 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x7b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20,
+ 0x3a, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x63, 0x6f, 0x6d,
+ 0x70, 0x75, 0x74, 0x65, 0x64, 0x20, 0x3a, 0x20, 0x63, 0x6f, 0x6d, 0x70,
+ 0x75, 0x74, 0x65, 0x64, 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x76, 0x61,
+ 0x6c, 0x75, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x53, 0x68, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x20,
+ 0x61, 0x6e, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2e, 0x0a, 0x20, 0x20,
+ 0x5f, 0x2e, 0x73, 0x68, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20,
+ 0x72, 0x61, 0x6e, 0x64, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61,
+ 0x72, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x3d, 0x20, 0x30, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x73, 0x68, 0x75,
+ 0x66, 0x66, 0x6c, 0x65, 0x64, 0x20, 0x3d, 0x20, 0x5b, 0x5d, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x65, 0x61, 0x63, 0x68, 0x28, 0x6f, 0x62, 0x6a,
+ 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76,
+ 0x61, 0x6c, 0x75, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x61, 0x6e, 0x64, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x72,
+ 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x28, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2b,
+ 0x2b, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x68,
+ 0x75, 0x66, 0x66, 0x6c, 0x65, 0x64, 0x5b, 0x69, 0x6e, 0x64, 0x65, 0x78,
+ 0x20, 0x2d, 0x20, 0x31, 0x5d, 0x20, 0x3d, 0x20, 0x73, 0x68, 0x75, 0x66,
+ 0x66, 0x6c, 0x65, 0x64, 0x5b, 0x72, 0x61, 0x6e, 0x64, 0x5d, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x68, 0x75, 0x66, 0x66, 0x6c,
+ 0x65, 0x64, 0x5b, 0x72, 0x61, 0x6e, 0x64, 0x5d, 0x20, 0x3d, 0x20, 0x76,
+ 0x61, 0x6c, 0x75, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x73, 0x68, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x64, 0x3b, 0x0a, 0x20,
+ 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41, 0x6e,
+ 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x67, 0x65,
+ 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x20, 0x6c, 0x6f, 0x6f, 0x6b, 0x75,
+ 0x70, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2e,
+ 0x0a, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x6c, 0x6f, 0x6f, 0x6b, 0x75,
+ 0x70, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c,
+ 0x75, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x46, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x29,
+ 0x20, 0x3f, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x3a, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29,
+ 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6f, 0x62, 0x6a,
+ 0x5b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5d, 0x3b, 0x20, 0x7d, 0x3b, 0x0a,
+ 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x53,
+ 0x6f, 0x72, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65,
+ 0x63, 0x74, 0x27, 0x73, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x20,
+ 0x62, 0x79, 0x20, 0x61, 0x20, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69,
+ 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x64, 0x20,
+ 0x62, 0x79, 0x20, 0x61, 0x6e, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74,
+ 0x6f, 0x72, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x73, 0x6f, 0x72, 0x74,
+ 0x42, 0x79, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x69, 0x74, 0x65,
+ 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x6c, 0x6f, 0x6f, 0x6b,
+ 0x75, 0x70, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x28, 0x76,
+ 0x61, 0x6c, 0x75, 0x65, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x70, 0x6c, 0x75, 0x63,
+ 0x6b, 0x28, 0x5f, 0x2e, 0x6d, 0x61, 0x70, 0x28, 0x6f, 0x62, 0x6a, 0x2c,
+ 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61,
+ 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20,
+ 0x6c, 0x69, 0x73, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x7b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x20, 0x3a, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20,
+ 0x3a, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69,
+ 0x61, 0x20, 0x3a, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72,
+ 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78,
+ 0x74, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e,
+ 0x64, 0x65, 0x78, 0x2c, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x29, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x7d, 0x29, 0x2e, 0x73, 0x6f, 0x72, 0x74, 0x28, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6c, 0x65, 0x66, 0x74, 0x2c, 0x20, 0x72,
+ 0x69, 0x67, 0x68, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x61, 0x20, 0x3d, 0x20, 0x6c, 0x65,
+ 0x66, 0x74, 0x2e, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x62,
+ 0x20, 0x3d, 0x20, 0x72, 0x69, 0x67, 0x68, 0x74, 0x2e, 0x63, 0x72, 0x69,
+ 0x74, 0x65, 0x72, 0x69, 0x61, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x69, 0x66, 0x20, 0x28, 0x61, 0x20, 0x21, 0x3d, 0x3d, 0x20, 0x62,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x69, 0x66, 0x20, 0x28, 0x61, 0x20, 0x3e, 0x20, 0x62, 0x20, 0x7c, 0x7c,
+ 0x20, 0x61, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x76, 0x6f, 0x69, 0x64, 0x20,
+ 0x30, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20,
+ 0x28, 0x61, 0x20, 0x3c, 0x20, 0x62, 0x20, 0x7c, 0x7c, 0x20, 0x62, 0x20,
+ 0x3d, 0x3d, 0x3d, 0x20, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x30, 0x29, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x2d, 0x31, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6c, 0x65, 0x66, 0x74,
+ 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x3c, 0x20, 0x72, 0x69, 0x67,
+ 0x68, 0x74, 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x3f, 0x20, 0x2d,
+ 0x31, 0x20, 0x3a, 0x20, 0x31, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d,
+ 0x29, 0x2c, 0x20, 0x27, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x27, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x41, 0x6e, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x75, 0x73, 0x65,
+ 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67,
+ 0x61, 0x74, 0x65, 0x20, 0x22, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x62,
+ 0x79, 0x22, 0x20, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x62,
+ 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c,
+ 0x74, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x76, 0x61, 0x72, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72,
+ 0x20, 0x3d, 0x20, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x74, 0x65,
+ 0x72, 0x61, 0x74, 0x6f, 0x72, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20,
+ 0x7c, 0x7c, 0x20, 0x5f, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
+ 0x79, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x61, 0x63, 0x68,
+ 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e,
+ 0x64, 0x65, 0x78, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x76, 0x61, 0x72, 0x20, 0x6b, 0x65, 0x79, 0x20, 0x3d, 0x20, 0x69,
+ 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x63, 0x61, 0x6c, 0x6c,
+ 0x28, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x76, 0x61,
+ 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20,
+ 0x6f, 0x62, 0x6a, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x28, 0x72, 0x65, 0x73,
+ 0x75, 0x6c, 0x74, 0x2c, 0x20, 0x6b, 0x65, 0x79, 0x2c, 0x20, 0x76, 0x61,
+ 0x6c, 0x75, 0x65, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x3b, 0x0a, 0x20, 0x20, 0x7d,
+ 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63,
+ 0x74, 0x27, 0x73, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x20, 0x62,
+ 0x79, 0x20, 0x61, 0x20, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x20, 0x50, 0x61, 0x73, 0x73, 0x20, 0x65, 0x69, 0x74, 0x68,
+ 0x65, 0x72, 0x20, 0x61, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x20,
+ 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x74, 0x6f, 0x20, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x20,
+ 0x62, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x72,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63,
+ 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x20, 0x20,
+ 0x5f, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a,
+ 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x63, 0x6f, 0x6e,
+ 0x74, 0x65, 0x78, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x67, 0x72, 0x6f, 0x75, 0x70,
+ 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c,
+ 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x65, 0x73, 0x75, 0x6c,
+ 0x74, 0x2c, 0x20, 0x6b, 0x65, 0x79, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x28,
+ 0x5f, 0x2e, 0x68, 0x61, 0x73, 0x28, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
+ 0x2c, 0x20, 0x6b, 0x65, 0x79, 0x29, 0x20, 0x3f, 0x20, 0x72, 0x65, 0x73,
+ 0x75, 0x6c, 0x74, 0x5b, 0x6b, 0x65, 0x79, 0x5d, 0x20, 0x3a, 0x20, 0x28,
+ 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5b, 0x6b, 0x65, 0x79, 0x5d, 0x20,
+ 0x3d, 0x20, 0x5b, 0x5d, 0x29, 0x29, 0x2e, 0x70, 0x75, 0x73, 0x68, 0x28,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x20, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x61,
+ 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x74, 0x68, 0x61,
+ 0x74, 0x20, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x62, 0x79, 0x20, 0x61,
+ 0x20, 0x63, 0x65, 0x72, 0x74, 0x61, 0x69, 0x6e, 0x20, 0x63, 0x72, 0x69,
+ 0x74, 0x65, 0x72, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x50, 0x61, 0x73, 0x73,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x65, 0x69, 0x74, 0x68, 0x65, 0x72,
+ 0x20, 0x61, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x74,
+ 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x63,
+ 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x62, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x20,
+ 0x61, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74,
+ 0x68, 0x61, 0x74, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20,
+ 0x74, 0x68, 0x65, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x63, 0x72, 0x69,
+ 0x74, 0x65, 0x72, 0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e,
+ 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x20, 0x3d, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65,
+ 0x78, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x20, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x28, 0x6f,
+ 0x62, 0x6a, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x63,
+ 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2c,
+ 0x20, 0x6b, 0x65, 0x79, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x21, 0x5f, 0x2e, 0x68, 0x61, 0x73,
+ 0x28, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2c, 0x20, 0x6b, 0x65, 0x79,
+ 0x29, 0x29, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5b, 0x6b, 0x65,
+ 0x79, 0x5d, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5b, 0x6b, 0x65, 0x79,
+ 0x5d, 0x2b, 0x2b, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x55, 0x73, 0x65, 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72,
+ 0x61, 0x74, 0x6f, 0x72, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x20,
+ 0x6f, 0x75, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x6d, 0x61, 0x6c,
+ 0x6c, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x61,
+ 0x74, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x0a, 0x20, 0x20, 0x2f, 0x2f,
+ 0x20, 0x61, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x73,
+ 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x62, 0x65, 0x20, 0x69, 0x6e, 0x73,
+ 0x65, 0x72, 0x74, 0x65, 0x64, 0x20, 0x73, 0x6f, 0x20, 0x61, 0x73, 0x20,
+ 0x74, 0x6f, 0x20, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x20,
+ 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x20, 0x55, 0x73, 0x65, 0x73, 0x20,
+ 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x20, 0x73, 0x65, 0x61, 0x72, 0x63,
+ 0x68, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x73, 0x6f, 0x72, 0x74, 0x65,
+ 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2c,
+ 0x20, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74,
+ 0x6f, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61,
+ 0x74, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74,
+ 0x6f, 0x72, 0x20, 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x20, 0x3f,
+ 0x20, 0x5f, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20,
+ 0x3a, 0x20, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x74, 0x65, 0x72,
+ 0x61, 0x74, 0x6f, 0x72, 0x28, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f,
+ 0x72, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x3d, 0x20, 0x69, 0x74, 0x65, 0x72,
+ 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x63, 0x6f,
+ 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x6f, 0x62, 0x6a, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x6c, 0x6f, 0x77,
+ 0x20, 0x3d, 0x20, 0x30, 0x2c, 0x20, 0x68, 0x69, 0x67, 0x68, 0x20, 0x3d,
+ 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74,
+ 0x68, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x77, 0x68, 0x69, 0x6c, 0x65,
+ 0x20, 0x28, 0x6c, 0x6f, 0x77, 0x20, 0x3c, 0x20, 0x68, 0x69, 0x67, 0x68,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61,
+ 0x72, 0x20, 0x6d, 0x69, 0x64, 0x20, 0x3d, 0x20, 0x28, 0x6c, 0x6f, 0x77,
+ 0x20, 0x2b, 0x20, 0x68, 0x69, 0x67, 0x68, 0x29, 0x20, 0x3e, 0x3e, 0x3e,
+ 0x20, 0x31, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x74,
+ 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28,
+ 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x61, 0x72, 0x72,
+ 0x61, 0x79, 0x5b, 0x6d, 0x69, 0x64, 0x5d, 0x29, 0x20, 0x3c, 0x20, 0x76,
+ 0x61, 0x6c, 0x75, 0x65, 0x20, 0x3f, 0x20, 0x6c, 0x6f, 0x77, 0x20, 0x3d,
+ 0x20, 0x6d, 0x69, 0x64, 0x20, 0x2b, 0x20, 0x31, 0x20, 0x3a, 0x20, 0x68,
+ 0x69, 0x67, 0x68, 0x20, 0x3d, 0x20, 0x6d, 0x69, 0x64, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x6c, 0x6f, 0x77, 0x3b, 0x0a, 0x20, 0x20, 0x7d,
+ 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x53, 0x61, 0x66, 0x65,
+ 0x6c, 0x79, 0x20, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x20, 0x61,
+ 0x6e, 0x79, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x74, 0x65, 0x72,
+ 0x61, 0x62, 0x6c, 0x65, 0x20, 0x69, 0x6e, 0x74, 0x6f, 0x20, 0x61, 0x20,
+ 0x72, 0x65, 0x61, 0x6c, 0x2c, 0x20, 0x6c, 0x69, 0x76, 0x65, 0x20, 0x61,
+ 0x72, 0x72, 0x61, 0x79, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x74, 0x6f,
+ 0x41, 0x72, 0x72, 0x61, 0x79, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x21, 0x6f, 0x62, 0x6a,
+ 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5b, 0x5d, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x5f, 0x2e, 0x69,
+ 0x73, 0x41, 0x72, 0x72, 0x61, 0x79, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x29,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6c, 0x69, 0x63,
+ 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6f, 0x62, 0x6a,
+ 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x3d, 0x3d, 0x3d, 0x20,
+ 0x2b, 0x6f, 0x62, 0x6a, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x29,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x6d, 0x61,
+ 0x70, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x5f, 0x2e, 0x69, 0x64, 0x65,
+ 0x6e, 0x74, 0x69, 0x74, 0x79, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x76, 0x61, 0x6c,
+ 0x75, 0x65, 0x73, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x3b, 0x0a, 0x20, 0x20,
+ 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x75, 0x6d, 0x62,
+ 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e,
+ 0x74, 0x73, 0x20, 0x69, 0x6e, 0x20, 0x61, 0x6e, 0x20, 0x6f, 0x62, 0x6a,
+ 0x65, 0x63, 0x74, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x73, 0x69, 0x7a,
+ 0x65, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x69, 0x66, 0x20, 0x28, 0x6f, 0x62, 0x6a, 0x20, 0x3d, 0x3d, 0x20, 0x6e,
+ 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x30, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x28, 0x6f, 0x62, 0x6a, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74,
+ 0x68, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x2b, 0x6f, 0x62, 0x6a, 0x2e, 0x6c,
+ 0x65, 0x6e, 0x67, 0x74, 0x68, 0x29, 0x20, 0x3f, 0x20, 0x6f, 0x62, 0x6a,
+ 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x3a, 0x20, 0x5f, 0x2e,
+ 0x6b, 0x65, 0x79, 0x73, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x2e, 0x6c, 0x65,
+ 0x6e, 0x67, 0x74, 0x68, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41, 0x72, 0x72, 0x61, 0x79, 0x20, 0x46,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x0a, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d,
+ 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x47, 0x65, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x69, 0x72, 0x73,
+ 0x74, 0x20, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x6f, 0x66,
+ 0x20, 0x61, 0x6e, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2e, 0x20, 0x50,
+ 0x61, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x2a, 0x2a, 0x6e, 0x2a, 0x2a,
+ 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x69, 0x72, 0x73, 0x74, 0x20, 0x4e,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
+ 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x72, 0x72, 0x61,
+ 0x79, 0x2e, 0x20, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x64, 0x20, 0x61,
+ 0x73, 0x20, 0x60, 0x68, 0x65, 0x61, 0x64, 0x60, 0x20, 0x61, 0x6e, 0x64,
+ 0x20, 0x60, 0x74, 0x61, 0x6b, 0x65, 0x60, 0x2e, 0x20, 0x54, 0x68, 0x65,
+ 0x20, 0x2a, 0x2a, 0x67, 0x75, 0x61, 0x72, 0x64, 0x2a, 0x2a, 0x20, 0x63,
+ 0x68, 0x65, 0x63, 0x6b, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x61, 0x6c,
+ 0x6c, 0x6f, 0x77, 0x73, 0x20, 0x69, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x77,
+ 0x6f, 0x72, 0x6b, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x60, 0x5f, 0x2e,
+ 0x6d, 0x61, 0x70, 0x60, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x66, 0x69,
+ 0x72, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x68, 0x65, 0x61, 0x64,
+ 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x74, 0x61, 0x6b, 0x65, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x61, 0x72, 0x72,
+ 0x61, 0x79, 0x2c, 0x20, 0x6e, 0x2c, 0x20, 0x67, 0x75, 0x61, 0x72, 0x64,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28,
+ 0x61, 0x72, 0x72, 0x61, 0x79, 0x20, 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c,
+ 0x6c, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x76, 0x6f,
+ 0x69, 0x64, 0x20, 0x30, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x20, 0x28, 0x6e, 0x20, 0x21, 0x3d, 0x20, 0x6e,
+ 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x26, 0x26, 0x20, 0x21, 0x67, 0x75, 0x61,
+ 0x72, 0x64, 0x20, 0x3f, 0x20, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x2e, 0x63,
+ 0x61, 0x6c, 0x6c, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x30,
+ 0x2c, 0x20, 0x6e, 0x29, 0x20, 0x3a, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79,
+ 0x5b, 0x30, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20,
+ 0x65, 0x76, 0x65, 0x72, 0x79, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x20, 0x62,
+ 0x75, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x20,
+ 0x65, 0x6e, 0x74, 0x72, 0x79, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2e, 0x20, 0x45, 0x73, 0x70, 0x65,
+ 0x63, 0x69, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x75, 0x73, 0x65, 0x66, 0x75,
+ 0x6c, 0x20, 0x6f, 0x6e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x74, 0x68,
+ 0x65, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x20,
+ 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x20, 0x50, 0x61, 0x73, 0x73,
+ 0x69, 0x6e, 0x67, 0x20, 0x2a, 0x2a, 0x6e, 0x2a, 0x2a, 0x20, 0x77, 0x69,
+ 0x6c, 0x6c, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x61, 0x6c,
+ 0x6c, 0x20, 0x74, 0x68, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
+ 0x20, 0x69, 0x6e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x65, 0x78, 0x63, 0x6c,
+ 0x75, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6c, 0x61,
+ 0x73, 0x74, 0x20, 0x4e, 0x2e, 0x20, 0x54, 0x68, 0x65, 0x20, 0x2a, 0x2a,
+ 0x67, 0x75, 0x61, 0x72, 0x64, 0x2a, 0x2a, 0x20, 0x63, 0x68, 0x65, 0x63,
+ 0x6b, 0x20, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x73, 0x20, 0x69, 0x74, 0x20,
+ 0x74, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x20, 0x77, 0x69, 0x74, 0x68,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x60, 0x5f, 0x2e, 0x6d, 0x61, 0x70,
+ 0x60, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69,
+ 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6e, 0x2c, 0x20,
+ 0x67, 0x75, 0x61, 0x72, 0x64, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6c, 0x69, 0x63,
+ 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79,
+ 0x2c, 0x20, 0x30, 0x2c, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2e, 0x6c,
+ 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x2d, 0x20, 0x28, 0x28, 0x6e, 0x20,
+ 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x7c, 0x7c, 0x20,
+ 0x67, 0x75, 0x61, 0x72, 0x64, 0x20, 0x3f, 0x20, 0x31, 0x20, 0x3a, 0x20,
+ 0x6e, 0x29, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x47, 0x65, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20,
+ 0x6c, 0x61, 0x73, 0x74, 0x20, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74,
+ 0x20, 0x6f, 0x66, 0x20, 0x61, 0x6e, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79,
+ 0x2e, 0x20, 0x50, 0x61, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x2a, 0x2a,
+ 0x6e, 0x2a, 0x2a, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6c, 0x61, 0x73, 0x74,
+ 0x20, 0x4e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x73, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x72,
+ 0x72, 0x61, 0x79, 0x2e, 0x20, 0x54, 0x68, 0x65, 0x20, 0x2a, 0x2a, 0x67,
+ 0x75, 0x61, 0x72, 0x64, 0x2a, 0x2a, 0x20, 0x63, 0x68, 0x65, 0x63, 0x6b,
+ 0x20, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x73, 0x20, 0x69, 0x74, 0x20, 0x74,
+ 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20,
+ 0x60, 0x5f, 0x2e, 0x6d, 0x61, 0x70, 0x60, 0x2e, 0x0a, 0x20, 0x20, 0x5f,
+ 0x2e, 0x6c, 0x61, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2c, 0x20,
+ 0x6e, 0x2c, 0x20, 0x67, 0x75, 0x61, 0x72, 0x64, 0x29, 0x20, 0x7b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x61, 0x72, 0x72, 0x61,
+ 0x79, 0x20, 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x72,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x30,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x28, 0x6e,
+ 0x20, 0x21, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x26, 0x26,
+ 0x20, 0x21, 0x67, 0x75, 0x61, 0x72, 0x64, 0x29, 0x20, 0x7b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x73, 0x6c, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61,
+ 0x72, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x4d, 0x61, 0x74, 0x68, 0x2e, 0x6d,
+ 0x61, 0x78, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2e, 0x6c, 0x65, 0x6e,
+ 0x67, 0x74, 0x68, 0x20, 0x2d, 0x20, 0x6e, 0x2c, 0x20, 0x30, 0x29, 0x29,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5b, 0x61, 0x72,
+ 0x72, 0x61, 0x79, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x2d,
+ 0x20, 0x31, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20,
+ 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x65, 0x76, 0x65, 0x72, 0x79, 0x74,
+ 0x68, 0x69, 0x6e, 0x67, 0x20, 0x62, 0x75, 0x74, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x66, 0x69, 0x72, 0x73, 0x74, 0x20, 0x65, 0x6e, 0x74, 0x72, 0x79,
+ 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x72, 0x72, 0x61,
+ 0x79, 0x2e, 0x20, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x64, 0x20, 0x61,
+ 0x73, 0x20, 0x60, 0x74, 0x61, 0x69, 0x6c, 0x60, 0x20, 0x61, 0x6e, 0x64,
+ 0x20, 0x60, 0x64, 0x72, 0x6f, 0x70, 0x60, 0x2e, 0x0a, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x45, 0x73, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x6c, 0x79,
+ 0x20, 0x75, 0x73, 0x65, 0x66, 0x75, 0x6c, 0x20, 0x6f, 0x6e, 0x20, 0x74,
+ 0x68, 0x65, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73,
+ 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x20, 0x50, 0x61, 0x73,
+ 0x73, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x6e, 0x20, 0x2a, 0x2a, 0x6e, 0x2a,
+ 0x2a, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72,
+ 0x65, 0x73, 0x74, 0x20, 0x4e, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
+ 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x72, 0x72, 0x61,
+ 0x79, 0x2e, 0x20, 0x54, 0x68, 0x65, 0x20, 0x2a, 0x2a, 0x67, 0x75, 0x61,
+ 0x72, 0x64, 0x2a, 0x2a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x63, 0x68,
+ 0x65, 0x63, 0x6b, 0x20, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x73, 0x20, 0x69,
+ 0x74, 0x20, 0x74, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x20, 0x77, 0x69,
+ 0x74, 0x68, 0x20, 0x60, 0x5f, 0x2e, 0x6d, 0x61, 0x70, 0x60, 0x2e, 0x0a,
+ 0x20, 0x20, 0x5f, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x5f,
+ 0x2e, 0x74, 0x61, 0x69, 0x6c, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x64, 0x72,
+ 0x6f, 0x70, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6e, 0x2c, 0x20,
+ 0x67, 0x75, 0x61, 0x72, 0x64, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6c, 0x69, 0x63,
+ 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79,
+ 0x2c, 0x20, 0x28, 0x6e, 0x20, 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c,
+ 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x67, 0x75, 0x61, 0x72, 0x64, 0x20, 0x3f,
+ 0x20, 0x31, 0x20, 0x3a, 0x20, 0x6e, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d,
+ 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x54, 0x72, 0x69, 0x6d,
+ 0x20, 0x6f, 0x75, 0x74, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x66, 0x61, 0x6c,
+ 0x73, 0x79, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x20, 0x66, 0x72,
+ 0x6f, 0x6d, 0x20, 0x61, 0x6e, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2e,
+ 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74,
+ 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x61, 0x72, 0x72, 0x61, 0x79, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x66, 0x69,
+ 0x6c, 0x74, 0x65, 0x72, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2c, 0x20,
+ 0x5f, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x69, 0x6d, 0x70,
+ 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20,
+ 0x6f, 0x66, 0x20, 0x61, 0x20, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69,
+ 0x76, 0x65, 0x20, 0x60, 0x66, 0x6c, 0x61, 0x74, 0x74, 0x65, 0x6e, 0x60,
+ 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x20,
+ 0x20, 0x76, 0x61, 0x72, 0x20, 0x66, 0x6c, 0x61, 0x74, 0x74, 0x65, 0x6e,
+ 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x69, 0x6e, 0x70, 0x75, 0x74, 0x2c, 0x20, 0x73, 0x68, 0x61, 0x6c, 0x6c,
+ 0x6f, 0x77, 0x2c, 0x20, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x29, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x61, 0x63, 0x68, 0x28, 0x69,
+ 0x6e, 0x70, 0x75, 0x74, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x29, 0x20, 0x7b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x5f, 0x2e,
+ 0x69, 0x73, 0x41, 0x72, 0x72, 0x61, 0x79, 0x28, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x73, 0x68, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x20, 0x3f, 0x20,
+ 0x70, 0x75, 0x73, 0x68, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x6f,
+ 0x75, 0x74, 0x70, 0x75, 0x74, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x29, 0x20, 0x3a, 0x20, 0x66, 0x6c, 0x61, 0x74, 0x74, 0x65, 0x6e, 0x28,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x73, 0x68, 0x61, 0x6c, 0x6c,
+ 0x6f, 0x77, 0x2c, 0x20, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x20, 0x65, 0x6c, 0x73,
+ 0x65, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2e, 0x70, 0x75, 0x73, 0x68, 0x28,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6f,
+ 0x75, 0x74, 0x70, 0x75, 0x74, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x6c,
+ 0x79, 0x20, 0x66, 0x6c, 0x61, 0x74, 0x74, 0x65, 0x6e, 0x65, 0x64, 0x20,
+ 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x61,
+ 0x6e, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2e, 0x0a, 0x20, 0x20, 0x5f,
+ 0x2e, 0x66, 0x6c, 0x61, 0x74, 0x74, 0x65, 0x6e, 0x20, 0x3d, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x61, 0x72, 0x72, 0x61,
+ 0x79, 0x2c, 0x20, 0x73, 0x68, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x29, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x66, 0x6c, 0x61, 0x74, 0x74, 0x65, 0x6e, 0x28, 0x61, 0x72, 0x72,
+ 0x61, 0x79, 0x2c, 0x20, 0x73, 0x68, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x2c,
+ 0x20, 0x5b, 0x5d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x61, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66,
+ 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x20, 0x74,
+ 0x68, 0x61, 0x74, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74,
+ 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x76,
+ 0x61, 0x6c, 0x75, 0x65, 0x28, 0x73, 0x29, 0x2e, 0x0a, 0x20, 0x20, 0x5f,
+ 0x2e, 0x77, 0x69, 0x74, 0x68, 0x6f, 0x75, 0x74, 0x20, 0x3d, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x61, 0x72, 0x72, 0x61,
+ 0x79, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72,
+ 0x65, 0x6e, 0x63, 0x65, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2c, 0x20,
+ 0x73, 0x6c, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61,
+ 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20, 0x31, 0x29,
+ 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x20, 0x61, 0x20,
+ 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2d, 0x66, 0x72,
+ 0x65, 0x65, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6f,
+ 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2e,
+ 0x20, 0x49, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x72, 0x72, 0x61,
+ 0x79, 0x20, 0x68, 0x61, 0x73, 0x20, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64,
+ 0x79, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x62, 0x65, 0x65, 0x6e, 0x20,
+ 0x73, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x2c, 0x20, 0x79, 0x6f, 0x75, 0x20,
+ 0x68, 0x61, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x70, 0x74,
+ 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x75, 0x73, 0x69, 0x6e, 0x67,
+ 0x20, 0x61, 0x20, 0x66, 0x61, 0x73, 0x74, 0x65, 0x72, 0x20, 0x61, 0x6c,
+ 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x0a, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x64, 0x20, 0x61, 0x73,
+ 0x20, 0x60, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x60, 0x2e, 0x0a, 0x20,
+ 0x20, 0x5f, 0x2e, 0x75, 0x6e, 0x69, 0x71, 0x20, 0x3d, 0x20, 0x5f, 0x2e,
+ 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2c,
+ 0x20, 0x69, 0x73, 0x53, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x2c, 0x20, 0x69,
+ 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6e,
+ 0x74, 0x65, 0x78, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x69, 0x66, 0x20, 0x28, 0x5f, 0x2e, 0x69, 0x73, 0x46, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x69, 0x73, 0x53, 0x6f, 0x72, 0x74, 0x65,
+ 0x64, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x20, 0x3d, 0x20, 0x69, 0x74,
+ 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x3d,
+ 0x20, 0x69, 0x73, 0x53, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x73, 0x53, 0x6f, 0x72, 0x74, 0x65,
+ 0x64, 0x20, 0x3d, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72,
+ 0x20, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x20, 0x3d, 0x20, 0x69,
+ 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x3f, 0x20, 0x5f, 0x2e,
+ 0x6d, 0x61, 0x70, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x69,
+ 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x63, 0x6f, 0x6e,
+ 0x74, 0x65, 0x78, 0x74, 0x29, 0x20, 0x3a, 0x20, 0x61, 0x72, 0x72, 0x61,
+ 0x79, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x72,
+ 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x20, 0x3d, 0x20, 0x5b, 0x5d, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x73, 0x65, 0x65,
+ 0x6e, 0x20, 0x3d, 0x20, 0x5b, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x65, 0x61, 0x63, 0x68, 0x28, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c,
+ 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76,
+ 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x29,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20,
+ 0x28, 0x69, 0x73, 0x53, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x20, 0x3f, 0x20,
+ 0x28, 0x21, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x7c, 0x7c, 0x20, 0x73,
+ 0x65, 0x65, 0x6e, 0x5b, 0x73, 0x65, 0x65, 0x6e, 0x2e, 0x6c, 0x65, 0x6e,
+ 0x67, 0x74, 0x68, 0x20, 0x2d, 0x20, 0x31, 0x5d, 0x20, 0x21, 0x3d, 0x3d,
+ 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x29, 0x20, 0x3a, 0x20, 0x21, 0x5f,
+ 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x28, 0x73, 0x65,
+ 0x65, 0x6e, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x29, 0x29, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65,
+ 0x65, 0x6e, 0x2e, 0x70, 0x75, 0x73, 0x68, 0x28, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x70, 0x75, 0x73, 0x68,
+ 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5b, 0x69, 0x6e, 0x64, 0x65, 0x78,
+ 0x5d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c,
+ 0x74, 0x73, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x20, 0x61,
+ 0x6e, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x20, 0x74, 0x68, 0x61, 0x74,
+ 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68,
+ 0x65, 0x20, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x65, 0x61, 0x63,
+ 0x68, 0x20, 0x64, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x63, 0x74, 0x20, 0x65,
+ 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20,
+ 0x61, 0x6c, 0x6c, 0x20, 0x6f, 0x66, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x74, 0x68, 0x65, 0x20, 0x70, 0x61, 0x73, 0x73, 0x65, 0x64, 0x2d, 0x69,
+ 0x6e, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x73, 0x2e, 0x0a, 0x20, 0x20,
+ 0x5f, 0x2e, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x20, 0x3d, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x7b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e,
+ 0x75, 0x6e, 0x69, 0x71, 0x28, 0x63, 0x6f, 0x6e, 0x63, 0x61, 0x74, 0x2e,
+ 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x41, 0x72, 0x72, 0x61, 0x79, 0x50,
+ 0x72, 0x6f, 0x74, 0x6f, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65,
+ 0x6e, 0x74, 0x73, 0x29, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63,
+ 0x65, 0x20, 0x61, 0x6e, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x20, 0x74,
+ 0x68, 0x61, 0x74, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73,
+ 0x20, 0x65, 0x76, 0x65, 0x72, 0x79, 0x20, 0x69, 0x74, 0x65, 0x6d, 0x20,
+ 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x20, 0x62, 0x65, 0x74, 0x77, 0x65,
+ 0x65, 0x6e, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x74, 0x68, 0x65, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x70, 0x61, 0x73, 0x73, 0x65, 0x64, 0x2d, 0x69,
+ 0x6e, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x73, 0x2e, 0x0a, 0x20, 0x20,
+ 0x5f, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x29, 0x20, 0x7b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x74, 0x20,
+ 0x3d, 0x20, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c,
+ 0x28, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20,
+ 0x31, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x28,
+ 0x5f, 0x2e, 0x75, 0x6e, 0x69, 0x71, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79,
+ 0x29, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x69, 0x74, 0x65, 0x6d, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x65,
+ 0x76, 0x65, 0x72, 0x79, 0x28, 0x72, 0x65, 0x73, 0x74, 0x2c, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x74, 0x68, 0x65,
+ 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x69, 0x6e,
+ 0x64, 0x65, 0x78, 0x4f, 0x66, 0x28, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x2c,
+ 0x20, 0x69, 0x74, 0x65, 0x6d, 0x29, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x54, 0x61, 0x6b, 0x65, 0x20, 0x74,
+ 0x68, 0x65, 0x20, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63,
+ 0x65, 0x20, 0x62, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x20, 0x6f, 0x6e,
+ 0x65, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x20, 0x61, 0x6e, 0x64, 0x20,
+ 0x61, 0x20, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20,
+ 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x73,
+ 0x2e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x4f, 0x6e, 0x6c, 0x79, 0x20,
+ 0x74, 0x68, 0x65, 0x20, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73,
+ 0x20, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x20, 0x69, 0x6e, 0x20,
+ 0x6a, 0x75, 0x73, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x69, 0x72,
+ 0x73, 0x74, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x20, 0x77, 0x69, 0x6c,
+ 0x6c, 0x20, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x0a, 0x20, 0x20,
+ 0x5f, 0x2e, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
+ 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x61, 0x72, 0x72, 0x61, 0x79, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x74, 0x20, 0x3d, 0x20,
+ 0x63, 0x6f, 0x6e, 0x63, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79,
+ 0x28, 0x41, 0x72, 0x72, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2c,
+ 0x20, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28,
+ 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20, 0x31,
+ 0x29, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x28,
+ 0x61, 0x72, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x29, 0x7b, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x21, 0x5f, 0x2e, 0x63, 0x6f,
+ 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x28, 0x72, 0x65, 0x73, 0x74, 0x2c,
+ 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x29, 0x3b, 0x20, 0x7d, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x5a, 0x69, 0x70, 0x20, 0x74, 0x6f, 0x67, 0x65, 0x74, 0x68, 0x65, 0x72,
+ 0x20, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x20, 0x6c, 0x69,
+ 0x73, 0x74, 0x73, 0x20, 0x69, 0x6e, 0x74, 0x6f, 0x20, 0x61, 0x20, 0x73,
+ 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x20,
+ 0x2d, 0x2d, 0x20, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x20,
+ 0x74, 0x68, 0x61, 0x74, 0x20, 0x73, 0x68, 0x61, 0x72, 0x65, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x61, 0x6e, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78,
+ 0x20, 0x67, 0x6f, 0x20, 0x74, 0x6f, 0x67, 0x65, 0x74, 0x68, 0x65, 0x72,
+ 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x7a, 0x69, 0x70, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x61, 0x72, 0x67,
+ 0x73, 0x20, 0x3d, 0x20, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x61,
+ 0x6c, 0x6c, 0x28, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73,
+ 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x6c,
+ 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x6d, 0x61,
+ 0x78, 0x28, 0x5f, 0x2e, 0x70, 0x6c, 0x75, 0x63, 0x6b, 0x28, 0x61, 0x72,
+ 0x67, 0x73, 0x2c, 0x20, 0x27, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x27,
+ 0x29, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20,
+ 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x20, 0x3d, 0x20, 0x6e, 0x65,
+ 0x77, 0x20, 0x41, 0x72, 0x72, 0x61, 0x79, 0x28, 0x6c, 0x65, 0x6e, 0x67,
+ 0x74, 0x68, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72,
+ 0x20, 0x28, 0x76, 0x61, 0x72, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b,
+ 0x20, 0x69, 0x20, 0x3c, 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x3b,
+ 0x20, 0x69, 0x2b, 0x2b, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5b, 0x69, 0x5d,
+ 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x70, 0x6c, 0x75, 0x63, 0x6b, 0x28, 0x61,
+ 0x72, 0x67, 0x73, 0x2c, 0x20, 0x22, 0x22, 0x20, 0x2b, 0x20, 0x69, 0x29,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c,
+ 0x74, 0x73, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x73, 0x20,
+ 0x6c, 0x69, 0x73, 0x74, 0x73, 0x20, 0x69, 0x6e, 0x74, 0x6f, 0x20, 0x6f,
+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x20, 0x50, 0x61, 0x73, 0x73,
+ 0x20, 0x65, 0x69, 0x74, 0x68, 0x65, 0x72, 0x20, 0x61, 0x20, 0x73, 0x69,
+ 0x6e, 0x67, 0x6c, 0x65, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x20, 0x6f,
+ 0x66, 0x20, 0x60, 0x5b, 0x6b, 0x65, 0x79, 0x2c, 0x20, 0x76, 0x61, 0x6c,
+ 0x75, 0x65, 0x5d, 0x60, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x70, 0x61,
+ 0x69, 0x72, 0x73, 0x2c, 0x20, 0x6f, 0x72, 0x20, 0x74, 0x77, 0x6f, 0x20,
+ 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x20, 0x61, 0x72, 0x72,
+ 0x61, 0x79, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73,
+ 0x61, 0x6d, 0x65, 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x2d,
+ 0x2d, 0x20, 0x6f, 0x6e, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x6b, 0x65, 0x79,
+ 0x73, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x6e, 0x65, 0x20, 0x6f,
+ 0x66, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63,
+ 0x6f, 0x72, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x69, 0x6e, 0x67,
+ 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x5f,
+ 0x2e, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6c, 0x69, 0x73, 0x74, 0x2c,
+ 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x29, 0x20, 0x7b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6c, 0x69, 0x73, 0x74, 0x20,
+ 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x7b, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d,
+ 0x20, 0x7b, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72,
+ 0x20, 0x28, 0x76, 0x61, 0x72, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x30, 0x2c,
+ 0x20, 0x6c, 0x20, 0x3d, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x6c, 0x65,
+ 0x6e, 0x67, 0x74, 0x68, 0x3b, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x6c, 0x3b,
+ 0x20, 0x69, 0x2b, 0x2b, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5b, 0x6c, 0x69, 0x73, 0x74, 0x5b,
+ 0x69, 0x5d, 0x5d, 0x20, 0x3d, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
+ 0x5b, 0x69, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d,
+ 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5b, 0x6c,
+ 0x69, 0x73, 0x74, 0x5b, 0x69, 0x5d, 0x5b, 0x30, 0x5d, 0x5d, 0x20, 0x3d,
+ 0x20, 0x6c, 0x69, 0x73, 0x74, 0x5b, 0x69, 0x5d, 0x5b, 0x31, 0x5d, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x3b, 0x0a, 0x20, 0x20,
+ 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x49, 0x66, 0x20,
+ 0x74, 0x68, 0x65, 0x20, 0x62, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x20,
+ 0x64, 0x6f, 0x65, 0x73, 0x6e, 0x27, 0x74, 0x20, 0x73, 0x75, 0x70, 0x70,
+ 0x6c, 0x79, 0x20, 0x75, 0x73, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x69,
+ 0x6e, 0x64, 0x65, 0x78, 0x4f, 0x66, 0x20, 0x28, 0x49, 0x27, 0x6d, 0x20,
+ 0x6c, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x74, 0x20, 0x79,
+ 0x6f, 0x75, 0x2c, 0x20, 0x2a, 0x2a, 0x4d, 0x53, 0x49, 0x45, 0x2a, 0x2a,
+ 0x29, 0x2c, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x77, 0x65, 0x20, 0x6e,
+ 0x65, 0x65, 0x64, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69,
+ 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x69,
+ 0x72, 0x73, 0x74, 0x20, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
+ 0x63, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x6e, 0x0a, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x69, 0x74, 0x65, 0x6d, 0x20, 0x69, 0x6e, 0x20, 0x61, 0x6e,
+ 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x6f, 0x72, 0x20, 0x2d,
+ 0x31, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x74, 0x65,
+ 0x6d, 0x20, 0x69, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x69, 0x6e, 0x63,
+ 0x6c, 0x75, 0x64, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2e, 0x0a, 0x20, 0x20, 0x2f, 0x2f,
+ 0x20, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74,
+ 0x6f, 0x20, 0x2a, 0x2a, 0x45, 0x43, 0x4d, 0x41, 0x53, 0x63, 0x72, 0x69,
+ 0x70, 0x74, 0x20, 0x35, 0x2a, 0x2a, 0x27, 0x73, 0x20, 0x6e, 0x61, 0x74,
+ 0x69, 0x76, 0x65, 0x20, 0x60, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x4f, 0x66,
+ 0x60, 0x20, 0x69, 0x66, 0x20, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62,
+ 0x6c, 0x65, 0x2e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x49, 0x66, 0x20,
+ 0x74, 0x68, 0x65, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x20, 0x69, 0x73,
+ 0x20, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x61,
+ 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x20, 0x69, 0x6e, 0x20, 0x73, 0x6f,
+ 0x72, 0x74, 0x20, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2c, 0x20, 0x70, 0x61,
+ 0x73, 0x73, 0x20, 0x60, 0x74, 0x72, 0x75, 0x65, 0x60, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x2a, 0x2a, 0x69, 0x73, 0x53,
+ 0x6f, 0x72, 0x74, 0x65, 0x64, 0x2a, 0x2a, 0x20, 0x74, 0x6f, 0x20, 0x75,
+ 0x73, 0x65, 0x20, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x20, 0x73, 0x65,
+ 0x61, 0x72, 0x63, 0x68, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x69, 0x6e,
+ 0x64, 0x65, 0x78, 0x4f, 0x66, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2c, 0x20,
+ 0x69, 0x74, 0x65, 0x6d, 0x2c, 0x20, 0x69, 0x73, 0x53, 0x6f, 0x72, 0x74,
+ 0x65, 0x64, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66,
+ 0x20, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x20, 0x3d, 0x3d, 0x20, 0x6e,
+ 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x2d, 0x31, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20,
+ 0x69, 0x20, 0x3d, 0x20, 0x30, 0x2c, 0x20, 0x6c, 0x20, 0x3d, 0x20, 0x61,
+ 0x72, 0x72, 0x61, 0x79, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x69, 0x73, 0x53,
+ 0x6f, 0x72, 0x74, 0x65, 0x64, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x74, 0x79, 0x70, 0x65, 0x6f,
+ 0x66, 0x20, 0x69, 0x73, 0x53, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x20, 0x3d,
+ 0x3d, 0x20, 0x27, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x27, 0x29, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x20,
+ 0x3d, 0x20, 0x28, 0x69, 0x73, 0x53, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x20,
+ 0x3c, 0x20, 0x30, 0x20, 0x3f, 0x20, 0x4d, 0x61, 0x74, 0x68, 0x2e, 0x6d,
+ 0x61, 0x78, 0x28, 0x30, 0x2c, 0x20, 0x6c, 0x20, 0x2b, 0x20, 0x69, 0x73,
+ 0x53, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x29, 0x20, 0x3a, 0x20, 0x69, 0x73,
+ 0x53, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x20, 0x3d, 0x20,
+ 0x5f, 0x2e, 0x73, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x49, 0x6e, 0x64, 0x65,
+ 0x78, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2c, 0x20, 0x69, 0x74, 0x65,
+ 0x6d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79,
+ 0x5b, 0x69, 0x5d, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x69, 0x74, 0x65, 0x6d,
+ 0x20, 0x3f, 0x20, 0x69, 0x20, 0x3a, 0x20, 0x2d, 0x31, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6e, 0x61, 0x74,
+ 0x69, 0x76, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4f, 0x66, 0x20, 0x26,
+ 0x26, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2e, 0x69, 0x6e, 0x64, 0x65,
+ 0x78, 0x4f, 0x66, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x6e, 0x61, 0x74, 0x69,
+ 0x76, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4f, 0x66, 0x29, 0x20, 0x72,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2e,
+ 0x69, 0x6e, 0x64, 0x65, 0x78, 0x4f, 0x66, 0x28, 0x69, 0x74, 0x65, 0x6d,
+ 0x2c, 0x20, 0x69, 0x73, 0x53, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x3b, 0x20,
+ 0x69, 0x20, 0x3c, 0x20, 0x6c, 0x3b, 0x20, 0x69, 0x2b, 0x2b, 0x29, 0x20,
+ 0x69, 0x66, 0x20, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5b, 0x69, 0x5d,
+ 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x69, 0x74, 0x65, 0x6d, 0x29, 0x20, 0x72,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x69, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x2d, 0x31, 0x3b, 0x0a,
+ 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x44,
+ 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20,
+ 0x2a, 0x2a, 0x45, 0x43, 0x4d, 0x41, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74,
+ 0x20, 0x35, 0x2a, 0x2a, 0x27, 0x73, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76,
+ 0x65, 0x20, 0x60, 0x6c, 0x61, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78,
+ 0x4f, 0x66, 0x60, 0x20, 0x69, 0x66, 0x20, 0x61, 0x76, 0x61, 0x69, 0x6c,
+ 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x6c, 0x61,
+ 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4f, 0x66, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x61, 0x72, 0x72,
+ 0x61, 0x79, 0x2c, 0x20, 0x69, 0x74, 0x65, 0x6d, 0x2c, 0x20, 0x66, 0x72,
+ 0x6f, 0x6d, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66,
+ 0x20, 0x28, 0x61, 0x72, 0x72, 0x61, 0x79, 0x20, 0x3d, 0x3d, 0x20, 0x6e,
+ 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x2d, 0x31, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20,
+ 0x68, 0x61, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x3d, 0x20, 0x66,
+ 0x72, 0x6f, 0x6d, 0x20, 0x21, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6e, 0x61, 0x74,
+ 0x69, 0x76, 0x65, 0x4c, 0x61, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78,
+ 0x4f, 0x66, 0x20, 0x26, 0x26, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2e,
+ 0x6c, 0x61, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4f, 0x66, 0x20,
+ 0x3d, 0x3d, 0x3d, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x4c, 0x61,
+ 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4f, 0x66, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x68, 0x61, 0x73, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x3f,
+ 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x2e, 0x6c, 0x61, 0x73, 0x74, 0x49,
+ 0x6e, 0x64, 0x65, 0x78, 0x4f, 0x66, 0x28, 0x69, 0x74, 0x65, 0x6d, 0x2c,
+ 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x29, 0x20, 0x3a, 0x20, 0x61, 0x72, 0x72,
+ 0x61, 0x79, 0x2e, 0x6c, 0x61, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78,
+ 0x4f, 0x66, 0x28, 0x69, 0x74, 0x65, 0x6d, 0x29, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20,
+ 0x69, 0x20, 0x3d, 0x20, 0x28, 0x68, 0x61, 0x73, 0x49, 0x6e, 0x64, 0x65,
+ 0x78, 0x20, 0x3f, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x3a, 0x20, 0x61,
+ 0x72, 0x72, 0x61, 0x79, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x29,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20,
+ 0x28, 0x69, 0x2d, 0x2d, 0x29, 0x20, 0x69, 0x66, 0x20, 0x28, 0x61, 0x72,
+ 0x72, 0x61, 0x79, 0x5b, 0x69, 0x5d, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x69,
+ 0x74, 0x65, 0x6d, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x69, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x2d, 0x31, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74,
+ 0x65, 0x20, 0x61, 0x6e, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72,
+ 0x20, 0x41, 0x72, 0x72, 0x61, 0x79, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61,
+ 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x6e, 0x20, 0x61, 0x72, 0x69,
+ 0x74, 0x68, 0x6d, 0x65, 0x74, 0x69, 0x63, 0x20, 0x70, 0x72, 0x6f, 0x67,
+ 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x41, 0x20, 0x70,
+ 0x6f, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x74, 0x68, 0x65, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x50,
+ 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x20, 0x60, 0x72, 0x61, 0x6e, 0x67, 0x65,
+ 0x28, 0x29, 0x60, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x2e, 0x20, 0x53, 0x65, 0x65, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x5b,
+ 0x74, 0x68, 0x65, 0x20, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x20, 0x64,
+ 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x5d, 0x28, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x64, 0x6f, 0x63,
+ 0x73, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x6f, 0x72, 0x67,
+ 0x2f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x2f, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0x23,
+ 0x72, 0x61, 0x6e, 0x67, 0x65, 0x29, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e,
+ 0x72, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x73, 0x74, 0x61, 0x72, 0x74, 0x2c, 0x20,
+ 0x73, 0x74, 0x6f, 0x70, 0x2c, 0x20, 0x73, 0x74, 0x65, 0x70, 0x29, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x61, 0x72,
+ 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x6c, 0x65, 0x6e, 0x67,
+ 0x74, 0x68, 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x29, 0x20, 0x7b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x74, 0x6f, 0x70, 0x20, 0x3d, 0x20,
+ 0x73, 0x74, 0x61, 0x72, 0x74, 0x20, 0x7c, 0x7c, 0x20, 0x30, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x20,
+ 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x73, 0x74, 0x65, 0x70, 0x20, 0x3d, 0x20, 0x61, 0x72,
+ 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5b, 0x32, 0x5d, 0x20, 0x7c,
+ 0x7c, 0x20, 0x31, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61,
+ 0x72, 0x20, 0x6c, 0x65, 0x6e, 0x20, 0x3d, 0x20, 0x4d, 0x61, 0x74, 0x68,
+ 0x2e, 0x6d, 0x61, 0x78, 0x28, 0x4d, 0x61, 0x74, 0x68, 0x2e, 0x63, 0x65,
+ 0x69, 0x6c, 0x28, 0x28, 0x73, 0x74, 0x6f, 0x70, 0x20, 0x2d, 0x20, 0x73,
+ 0x74, 0x61, 0x72, 0x74, 0x29, 0x20, 0x2f, 0x20, 0x73, 0x74, 0x65, 0x70,
+ 0x29, 0x2c, 0x20, 0x30, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76,
+ 0x61, 0x72, 0x20, 0x69, 0x64, 0x78, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x72, 0x61, 0x6e, 0x67,
+ 0x65, 0x20, 0x3d, 0x20, 0x6e, 0x65, 0x77, 0x20, 0x41, 0x72, 0x72, 0x61,
+ 0x79, 0x28, 0x6c, 0x65, 0x6e, 0x29, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x28, 0x69, 0x64, 0x78, 0x20, 0x3c,
+ 0x20, 0x6c, 0x65, 0x6e, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5b, 0x69, 0x64, 0x78, 0x2b,
+ 0x2b, 0x5d, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x20,
+ 0x2b, 0x3d, 0x20, 0x73, 0x74, 0x65, 0x70, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x7d, 0x0a, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x3b, 0x0a, 0x20, 0x20,
+ 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x46, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x28, 0x61, 0x68, 0x65, 0x6d, 0x29,
+ 0x20, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d,
+ 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20,
+ 0x61, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x62,
+ 0x6f, 0x75, 0x6e, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x20, 0x67, 0x69,
+ 0x76, 0x65, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x28,
+ 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x60, 0x74,
+ 0x68, 0x69, 0x73, 0x60, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x61, 0x72,
+ 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x0a, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x6c, 0x79,
+ 0x29, 0x2e, 0x20, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73,
+ 0x20, 0x74, 0x6f, 0x20, 0x2a, 0x2a, 0x45, 0x43, 0x4d, 0x41, 0x53, 0x63,
+ 0x72, 0x69, 0x70, 0x74, 0x20, 0x35, 0x2a, 0x2a, 0x27, 0x73, 0x20, 0x6e,
+ 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x60, 0x46, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x2e, 0x62, 0x69, 0x6e, 0x64, 0x60, 0x20, 0x69, 0x66,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61,
+ 0x62, 0x6c, 0x65, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x62, 0x69, 0x6e,
+ 0x64, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x66, 0x75, 0x6e, 0x63, 0x2c, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65,
+ 0x78, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66,
+ 0x20, 0x28, 0x66, 0x75, 0x6e, 0x63, 0x2e, 0x62, 0x69, 0x6e, 0x64, 0x20,
+ 0x3d, 0x3d, 0x3d, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x42, 0x69,
+ 0x6e, 0x64, 0x20, 0x26, 0x26, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65,
+ 0x42, 0x69, 0x6e, 0x64, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x2e,
+ 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x66, 0x75, 0x6e, 0x63, 0x2c, 0x20,
+ 0x73, 0x6c, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61,
+ 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20, 0x31, 0x29,
+ 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x61,
+ 0x72, 0x67, 0x73, 0x20, 0x3d, 0x20, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x2e,
+ 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e,
+ 0x74, 0x73, 0x2c, 0x20, 0x32, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x63, 0x6f, 0x6e, 0x74,
+ 0x65, 0x78, 0x74, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x63, 0x6f,
+ 0x6e, 0x63, 0x61, 0x74, 0x28, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x2e, 0x63,
+ 0x61, 0x6c, 0x6c, 0x28, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x29, 0x29, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b,
+ 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x70,
+ 0x70, 0x6c, 0x79, 0x20, 0x61, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x20, 0x62, 0x79, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69,
+ 0x6e, 0x67, 0x20, 0x61, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
+ 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x68, 0x61, 0x73, 0x20, 0x68, 0x61,
+ 0x64, 0x20, 0x73, 0x6f, 0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x69, 0x74,
+ 0x73, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d,
+ 0x65, 0x6e, 0x74, 0x73, 0x20, 0x70, 0x72, 0x65, 0x2d, 0x66, 0x69, 0x6c,
+ 0x6c, 0x65, 0x64, 0x2c, 0x20, 0x77, 0x69, 0x74, 0x68, 0x6f, 0x75, 0x74,
+ 0x20, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x74,
+ 0x73, 0x20, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x20, 0x60, 0x74,
+ 0x68, 0x69, 0x73, 0x60, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
+ 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61,
+ 0x6c, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x66, 0x75, 0x6e, 0x63, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x76, 0x61, 0x72, 0x20, 0x61, 0x72, 0x67, 0x73, 0x20, 0x3d, 0x20,
+ 0x73, 0x6c, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61,
+ 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20, 0x31, 0x29,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x2e, 0x61, 0x70, 0x70, 0x6c,
+ 0x79, 0x28, 0x74, 0x68, 0x69, 0x73, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x73,
+ 0x2e, 0x63, 0x6f, 0x6e, 0x63, 0x61, 0x74, 0x28, 0x73, 0x6c, 0x69, 0x63,
+ 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61, 0x72, 0x67, 0x75, 0x6d,
+ 0x65, 0x6e, 0x74, 0x73, 0x29, 0x29, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x42, 0x69, 0x6e, 0x64, 0x20, 0x61, 0x6c, 0x6c, 0x20,
+ 0x6f, 0x66, 0x20, 0x61, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74,
+ 0x27, 0x73, 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x20, 0x74,
+ 0x6f, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63,
+ 0x74, 0x2e, 0x20, 0x55, 0x73, 0x65, 0x66, 0x75, 0x6c, 0x20, 0x66, 0x6f,
+ 0x72, 0x20, 0x65, 0x6e, 0x73, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x74,
+ 0x68, 0x61, 0x74, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x61, 0x6c, 0x6c,
+ 0x20, 0x63, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x73, 0x20, 0x64,
+ 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x20, 0x6f, 0x6e, 0x20, 0x61, 0x6e,
+ 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x62, 0x65, 0x6c, 0x6f,
+ 0x6e, 0x67, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x74, 0x2e, 0x0a, 0x20, 0x20,
+ 0x5f, 0x2e, 0x62, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x73, 0x20, 0x3d, 0x20, 0x73, 0x6c, 0x69, 0x63,
+ 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61, 0x72, 0x67, 0x75, 0x6d,
+ 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20, 0x31, 0x29, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x66, 0x75, 0x6e, 0x63, 0x73, 0x2e,
+ 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x30,
+ 0x29, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x73, 0x20, 0x3d, 0x20, 0x5f, 0x2e,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x6f, 0x62,
+ 0x6a, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x61, 0x63, 0x68,
+ 0x28, 0x66, 0x75, 0x6e, 0x63, 0x73, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66, 0x29, 0x20, 0x7b, 0x20, 0x6f, 0x62,
+ 0x6a, 0x5b, 0x66, 0x5d, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x62, 0x69, 0x6e,
+ 0x64, 0x28, 0x6f, 0x62, 0x6a, 0x5b, 0x66, 0x5d, 0x2c, 0x20, 0x6f, 0x62,
+ 0x6a, 0x29, 0x3b, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x3b, 0x0a,
+ 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x4d,
+ 0x65, 0x6d, 0x6f, 0x69, 0x7a, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78,
+ 0x70, 0x65, 0x6e, 0x73, 0x69, 0x76, 0x65, 0x20, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x62, 0x79, 0x20, 0x73, 0x74, 0x6f, 0x72,
+ 0x69, 0x6e, 0x67, 0x20, 0x69, 0x74, 0x73, 0x20, 0x72, 0x65, 0x73, 0x75,
+ 0x6c, 0x74, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x6d, 0x65, 0x6d,
+ 0x6f, 0x69, 0x7a, 0x65, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x28, 0x66, 0x75, 0x6e, 0x63, 0x2c, 0x20, 0x68, 0x61,
+ 0x73, 0x68, 0x65, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x76, 0x61, 0x72, 0x20, 0x6d, 0x65, 0x6d, 0x6f, 0x20, 0x3d, 0x20, 0x7b,
+ 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x68, 0x61, 0x73, 0x68, 0x65,
+ 0x72, 0x20, 0x7c, 0x7c, 0x20, 0x28, 0x68, 0x61, 0x73, 0x68, 0x65, 0x72,
+ 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
+ 0x79, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61,
+ 0x72, 0x20, 0x6b, 0x65, 0x79, 0x20, 0x3d, 0x20, 0x68, 0x61, 0x73, 0x68,
+ 0x65, 0x72, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x74, 0x68, 0x69,
+ 0x73, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73,
+ 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x68, 0x61, 0x73, 0x28, 0x6d, 0x65,
+ 0x6d, 0x6f, 0x2c, 0x20, 0x6b, 0x65, 0x79, 0x29, 0x20, 0x3f, 0x20, 0x6d,
+ 0x65, 0x6d, 0x6f, 0x5b, 0x6b, 0x65, 0x79, 0x5d, 0x20, 0x3a, 0x20, 0x28,
+ 0x6d, 0x65, 0x6d, 0x6f, 0x5b, 0x6b, 0x65, 0x79, 0x5d, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x74,
+ 0x68, 0x69, 0x73, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e,
+ 0x74, 0x73, 0x29, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b,
+ 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x44, 0x65, 0x6c, 0x61, 0x79, 0x73, 0x20, 0x61, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68,
+ 0x65, 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20, 0x6e, 0x75, 0x6d, 0x62,
+ 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73,
+ 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20,
+ 0x74, 0x68, 0x65, 0x6e, 0x20, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x69, 0x74, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20,
+ 0x74, 0x68, 0x65, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x2e, 0x0a,
+ 0x20, 0x20, 0x5f, 0x2e, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66, 0x75, 0x6e,
+ 0x63, 0x2c, 0x20, 0x77, 0x61, 0x69, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x61, 0x72, 0x67, 0x73, 0x20,
+ 0x3d, 0x20, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c,
+ 0x28, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20,
+ 0x32, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x73, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75,
+ 0x74, 0x28, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29,
+ 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x6e, 0x75, 0x6c, 0x6c,
+ 0x2c, 0x20, 0x61, 0x72, 0x67, 0x73, 0x29, 0x3b, 0x20, 0x7d, 0x2c, 0x20,
+ 0x77, 0x61, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x44, 0x65, 0x66, 0x65, 0x72, 0x73,
+ 0x20, 0x61, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2c,
+ 0x20, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x20,
+ 0x69, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x75, 0x6e, 0x20, 0x61, 0x66,
+ 0x74, 0x65, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, 0x72, 0x72,
+ 0x65, 0x6e, 0x74, 0x20, 0x63, 0x61, 0x6c, 0x6c, 0x20, 0x73, 0x74, 0x61,
+ 0x63, 0x6b, 0x20, 0x68, 0x61, 0x73, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x63, 0x6c, 0x65, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x0a, 0x20, 0x20, 0x5f,
+ 0x2e, 0x64, 0x65, 0x66, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66, 0x75, 0x6e, 0x63, 0x29, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x5f, 0x2e, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70,
+ 0x6c, 0x79, 0x28, 0x5f, 0x2c, 0x20, 0x5b, 0x66, 0x75, 0x6e, 0x63, 0x2c,
+ 0x20, 0x31, 0x5d, 0x2e, 0x63, 0x6f, 0x6e, 0x63, 0x61, 0x74, 0x28, 0x73,
+ 0x6c, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61, 0x72,
+ 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20, 0x31, 0x29, 0x29,
+ 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x61, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x20, 0x74, 0x68,
+ 0x61, 0x74, 0x2c, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x69, 0x6e, 0x76,
+ 0x6f, 0x6b, 0x65, 0x64, 0x2c, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x6f,
+ 0x6e, 0x6c, 0x79, 0x20, 0x62, 0x65, 0x20, 0x74, 0x72, 0x69, 0x67, 0x67,
+ 0x65, 0x72, 0x65, 0x64, 0x20, 0x61, 0x74, 0x20, 0x6d, 0x6f, 0x73, 0x74,
+ 0x20, 0x6f, 0x6e, 0x63, 0x65, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x64,
+ 0x75, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, 0x67, 0x69, 0x76, 0x65,
+ 0x6e, 0x20, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x20, 0x6f, 0x66, 0x20,
+ 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x74, 0x68,
+ 0x72, 0x6f, 0x74, 0x74, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66, 0x75, 0x6e, 0x63, 0x2c, 0x20,
+ 0x77, 0x61, 0x69, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x76, 0x61, 0x72, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c,
+ 0x20, 0x61, 0x72, 0x67, 0x73, 0x2c, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x6f,
+ 0x75, 0x74, 0x2c, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x70, 0x72, 0x65, 0x76,
+ 0x69, 0x6f, 0x75, 0x73, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x6c, 0x61, 0x74, 0x65, 0x72, 0x20,
+ 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x72, 0x65,
+ 0x76, 0x69, 0x6f, 0x75, 0x73, 0x20, 0x3d, 0x20, 0x6e, 0x65, 0x77, 0x20,
+ 0x44, 0x61, 0x74, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x20, 0x3d, 0x20, 0x6e, 0x75,
+ 0x6c, 0x6c, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65,
+ 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x2e,
+ 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78,
+ 0x74, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x73, 0x29, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x76,
+ 0x61, 0x72, 0x20, 0x6e, 0x6f, 0x77, 0x20, 0x3d, 0x20, 0x6e, 0x65, 0x77,
+ 0x20, 0x44, 0x61, 0x74, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69,
+ 0x6e, 0x67, 0x20, 0x3d, 0x20, 0x77, 0x61, 0x69, 0x74, 0x20, 0x2d, 0x20,
+ 0x28, 0x6e, 0x6f, 0x77, 0x20, 0x2d, 0x20, 0x70, 0x72, 0x65, 0x76, 0x69,
+ 0x6f, 0x75, 0x73, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x20, 0x3d, 0x20, 0x74, 0x68,
+ 0x69, 0x73, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x61, 0x72,
+ 0x67, 0x73, 0x20, 0x3d, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e,
+ 0x74, 0x73, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66,
+ 0x20, 0x28, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x20,
+ 0x3c, 0x3d, 0x20, 0x30, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x63, 0x6c, 0x65, 0x61, 0x72, 0x54, 0x69, 0x6d,
+ 0x65, 0x6f, 0x75, 0x74, 0x28, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
+ 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x74,
+ 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x20, 0x3d, 0x20, 0x6e, 0x75, 0x6c,
+ 0x6c, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70,
+ 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x20, 0x3d, 0x20, 0x6e, 0x6f,
+ 0x77, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72,
+ 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63,
+ 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x63, 0x6f, 0x6e, 0x74, 0x65,
+ 0x78, 0x74, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x73, 0x29, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20,
+ 0x69, 0x66, 0x20, 0x28, 0x21, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x20, 0x3d, 0x20, 0x73, 0x65,
+ 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x28, 0x6c, 0x61, 0x74,
+ 0x65, 0x72, 0x2c, 0x20, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e,
+ 0x67, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x61,
+ 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x20, 0x74,
+ 0x68, 0x61, 0x74, 0x2c, 0x20, 0x61, 0x73, 0x20, 0x6c, 0x6f, 0x6e, 0x67,
+ 0x20, 0x61, 0x73, 0x20, 0x69, 0x74, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x69,
+ 0x6e, 0x75, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x69,
+ 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x2c, 0x20, 0x77, 0x69, 0x6c, 0x6c,
+ 0x20, 0x6e, 0x6f, 0x74, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x62, 0x65,
+ 0x20, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x65, 0x64, 0x2e, 0x20,
+ 0x54, 0x68, 0x65, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x63, 0x61, 0x6c,
+ 0x6c, 0x65, 0x64, 0x20, 0x61, 0x66, 0x74, 0x65, 0x72, 0x20, 0x69, 0x74,
+ 0x20, 0x73, 0x74, 0x6f, 0x70, 0x73, 0x20, 0x62, 0x65, 0x69, 0x6e, 0x67,
+ 0x20, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x4e, 0x20, 0x6d, 0x69, 0x6c, 0x6c, 0x69,
+ 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x2e, 0x20, 0x49, 0x66, 0x20,
+ 0x60, 0x69, 0x6d, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x60, 0x20,
+ 0x69, 0x73, 0x20, 0x70, 0x61, 0x73, 0x73, 0x65, 0x64, 0x2c, 0x20, 0x74,
+ 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x6e, 0x20, 0x74,
+ 0x68, 0x65, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x6c, 0x65, 0x61, 0x64,
+ 0x69, 0x6e, 0x67, 0x20, 0x65, 0x64, 0x67, 0x65, 0x2c, 0x20, 0x69, 0x6e,
+ 0x73, 0x74, 0x65, 0x61, 0x64, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x0a, 0x20,
+ 0x20, 0x5f, 0x2e, 0x64, 0x65, 0x62, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x20,
+ 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66,
+ 0x75, 0x6e, 0x63, 0x2c, 0x20, 0x77, 0x61, 0x69, 0x74, 0x2c, 0x20, 0x69,
+ 0x6d, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x29, 0x20, 0x7b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6d, 0x65,
+ 0x6f, 0x75, 0x74, 0x2c, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x63,
+ 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x20, 0x3d, 0x20, 0x74, 0x68, 0x69,
+ 0x73, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x73, 0x20, 0x3d, 0x20, 0x61, 0x72,
+ 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x6c, 0x61, 0x74, 0x65, 0x72,
+ 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x20, 0x3d, 0x20, 0x6e, 0x75,
+ 0x6c, 0x6c, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x69, 0x66, 0x20, 0x28, 0x21, 0x69, 0x6d, 0x6d, 0x65, 0x64, 0x69, 0x61,
+ 0x74, 0x65, 0x29, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d,
+ 0x20, 0x66, 0x75, 0x6e, 0x63, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28,
+ 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x61, 0x72, 0x67,
+ 0x73, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x63,
+ 0x61, 0x6c, 0x6c, 0x4e, 0x6f, 0x77, 0x20, 0x3d, 0x20, 0x69, 0x6d, 0x6d,
+ 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x20, 0x26, 0x26, 0x20, 0x21, 0x74,
+ 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x63, 0x6c, 0x65, 0x61, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6f,
+ 0x75, 0x74, 0x28, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x6f,
+ 0x75, 0x74, 0x20, 0x3d, 0x20, 0x73, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65,
+ 0x6f, 0x75, 0x74, 0x28, 0x6c, 0x61, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x77,
+ 0x61, 0x69, 0x74, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x69, 0x66, 0x20, 0x28, 0x63, 0x61, 0x6c, 0x6c, 0x4e, 0x6f, 0x77, 0x29,
+ 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x63, 0x6f, 0x6e,
+ 0x74, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x73, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20,
+ 0x61, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74,
+ 0x68, 0x61, 0x74, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20,
+ 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64, 0x20, 0x61, 0x74, 0x20,
+ 0x6d, 0x6f, 0x73, 0x74, 0x20, 0x6f, 0x6e, 0x65, 0x20, 0x74, 0x69, 0x6d,
+ 0x65, 0x2c, 0x20, 0x6e, 0x6f, 0x20, 0x6d, 0x61, 0x74, 0x74, 0x65, 0x72,
+ 0x20, 0x68, 0x6f, 0x77, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x6f, 0x66,
+ 0x74, 0x65, 0x6e, 0x20, 0x79, 0x6f, 0x75, 0x20, 0x63, 0x61, 0x6c, 0x6c,
+ 0x20, 0x69, 0x74, 0x2e, 0x20, 0x55, 0x73, 0x65, 0x66, 0x75, 0x6c, 0x20,
+ 0x66, 0x6f, 0x72, 0x20, 0x6c, 0x61, 0x7a, 0x79, 0x20, 0x69, 0x6e, 0x69,
+ 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
+ 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x6f, 0x6e, 0x63, 0x65, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66, 0x75, 0x6e,
+ 0x63, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72,
+ 0x20, 0x72, 0x61, 0x6e, 0x20, 0x3d, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65,
+ 0x2c, 0x20, 0x6d, 0x65, 0x6d, 0x6f, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x72, 0x61, 0x6e, 0x29, 0x20, 0x72,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6d, 0x65, 0x6d, 0x6f, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x61, 0x6e, 0x20, 0x3d, 0x20,
+ 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x6d, 0x65, 0x6d, 0x6f, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x2e,
+ 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x74, 0x68, 0x69, 0x73, 0x2c, 0x20,
+ 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x29, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x20, 0x3d,
+ 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6d, 0x65, 0x6d, 0x6f,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x7d,
+ 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x69, 0x72, 0x73,
+ 0x74, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x70,
+ 0x61, 0x73, 0x73, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x61, 0x6e, 0x20,
+ 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x74, 0x6f, 0x20,
+ 0x74, 0x68, 0x65, 0x20, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x2c, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x69, 0x6e,
+ 0x67, 0x20, 0x79, 0x6f, 0x75, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x64, 0x6a,
+ 0x75, 0x73, 0x74, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x2c, 0x20, 0x72, 0x75, 0x6e, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x20,
+ 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x61,
+ 0x66, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e,
+ 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65,
+ 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61,
+ 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x0a,
+ 0x20, 0x20, 0x5f, 0x2e, 0x77, 0x72, 0x61, 0x70, 0x20, 0x3d, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66, 0x75, 0x6e, 0x63,
+ 0x2c, 0x20, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x61,
+ 0x72, 0x67, 0x73, 0x20, 0x3d, 0x20, 0x5b, 0x66, 0x75, 0x6e, 0x63, 0x5d,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x75, 0x73, 0x68,
+ 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x61, 0x72, 0x67, 0x73, 0x2c,
+ 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x61, 0x70,
+ 0x70, 0x6c, 0x79, 0x28, 0x74, 0x68, 0x69, 0x73, 0x2c, 0x20, 0x61, 0x72,
+ 0x67, 0x73, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b, 0x0a,
+ 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x61, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x69,
+ 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73,
+ 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x6c,
+ 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x73, 0x2c, 0x20, 0x65, 0x61, 0x63, 0x68, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x69, 0x6e,
+ 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68,
+ 0x65, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74,
+ 0x68, 0x61, 0x74, 0x20, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x73, 0x2e,
+ 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65,
+ 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x73, 0x20, 0x3d, 0x20, 0x61, 0x72, 0x67, 0x75,
+ 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x76, 0x61, 0x72, 0x20, 0x61, 0x72, 0x67, 0x73, 0x20, 0x3d, 0x20,
+ 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x76, 0x61,
+ 0x72, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x73, 0x2e,
+ 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x2d, 0x20, 0x31, 0x3b, 0x20,
+ 0x69, 0x20, 0x3e, 0x3d, 0x20, 0x30, 0x3b, 0x20, 0x69, 0x2d, 0x2d, 0x29,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x61,
+ 0x72, 0x67, 0x73, 0x20, 0x3d, 0x20, 0x5b, 0x66, 0x75, 0x6e, 0x63, 0x73,
+ 0x5b, 0x69, 0x5d, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x74, 0x68,
+ 0x69, 0x73, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x73, 0x29, 0x5d, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x61, 0x72, 0x67,
+ 0x73, 0x5b, 0x30, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b,
+ 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x61, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20,
+ 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x62, 0x65,
+ 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64, 0x20, 0x61, 0x66,
+ 0x74, 0x65, 0x72, 0x20, 0x62, 0x65, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x61,
+ 0x6c, 0x6c, 0x65, 0x64, 0x20, 0x4e, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x73,
+ 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x61, 0x66, 0x74, 0x65, 0x72, 0x20,
+ 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x74,
+ 0x69, 0x6d, 0x65, 0x73, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x29, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x74, 0x69,
+ 0x6d, 0x65, 0x73, 0x20, 0x3c, 0x3d, 0x20, 0x30, 0x29, 0x20, 0x72, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x28, 0x29, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x2d,
+ 0x2d, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x20, 0x3c, 0x20, 0x31, 0x29, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x2e, 0x61, 0x70,
+ 0x70, 0x6c, 0x79, 0x28, 0x74, 0x68, 0x69, 0x73, 0x2c, 0x20, 0x61, 0x72,
+ 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x29, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b,
+ 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x46, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x73, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x2d, 0x2d,
+ 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d,
+ 0x2d, 0x2d, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x74,
+ 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x6e, 0x20, 0x6f, 0x62,
+ 0x6a, 0x65, 0x63, 0x74, 0x27, 0x73, 0x20, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x69, 0x65, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x6f,
+ 0x20, 0x2a, 0x2a, 0x45, 0x43, 0x4d, 0x41, 0x53, 0x63, 0x72, 0x69, 0x70,
+ 0x74, 0x20, 0x35, 0x2a, 0x2a, 0x27, 0x73, 0x20, 0x6e, 0x61, 0x74, 0x69,
+ 0x76, 0x65, 0x20, 0x60, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x6b,
+ 0x65, 0x79, 0x73, 0x60, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x6b, 0x65, 0x79,
+ 0x73, 0x20, 0x3d, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x4b, 0x65,
+ 0x79, 0x73, 0x20, 0x7c, 0x7c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6f, 0x62, 0x6a, 0x20, 0x21, 0x3d,
+ 0x3d, 0x20, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x28, 0x6f, 0x62, 0x6a,
+ 0x29, 0x29, 0x20, 0x74, 0x68, 0x72, 0x6f, 0x77, 0x20, 0x6e, 0x65, 0x77,
+ 0x20, 0x54, 0x79, 0x70, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x28, 0x27,
+ 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x20, 0x6f, 0x62, 0x6a, 0x65,
+ 0x63, 0x74, 0x27, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61,
+ 0x72, 0x20, 0x6b, 0x65, 0x79, 0x73, 0x20, 0x3d, 0x20, 0x5b, 0x5d, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x76, 0x61,
+ 0x72, 0x20, 0x6b, 0x65, 0x79, 0x20, 0x69, 0x6e, 0x20, 0x6f, 0x62, 0x6a,
+ 0x29, 0x20, 0x69, 0x66, 0x20, 0x28, 0x5f, 0x2e, 0x68, 0x61, 0x73, 0x28,
+ 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x6b, 0x65, 0x79, 0x29, 0x29, 0x20, 0x6b,
+ 0x65, 0x79, 0x73, 0x5b, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x6c, 0x65, 0x6e,
+ 0x67, 0x74, 0x68, 0x5d, 0x20, 0x3d, 0x20, 0x6b, 0x65, 0x79, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6b,
+ 0x65, 0x79, 0x73, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65,
+ 0x20, 0x74, 0x68, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x20,
+ 0x6f, 0x66, 0x20, 0x61, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74,
+ 0x27, 0x73, 0x20, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65,
+ 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x73, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x76, 0x61, 0x72, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x20, 0x3d,
+ 0x20, 0x5b, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72,
+ 0x20, 0x28, 0x76, 0x61, 0x72, 0x20, 0x6b, 0x65, 0x79, 0x20, 0x69, 0x6e,
+ 0x20, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x69, 0x66, 0x20, 0x28, 0x5f, 0x2e,
+ 0x68, 0x61, 0x73, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x6b, 0x65, 0x79,
+ 0x29, 0x29, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2e, 0x70, 0x75,
+ 0x73, 0x68, 0x28, 0x6f, 0x62, 0x6a, 0x5b, 0x6b, 0x65, 0x79, 0x5d, 0x29,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x3b, 0x0a, 0x20, 0x20, 0x7d,
+ 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x43, 0x6f, 0x6e, 0x76,
+ 0x65, 0x72, 0x74, 0x20, 0x61, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63,
+ 0x74, 0x20, 0x69, 0x6e, 0x74, 0x6f, 0x20, 0x61, 0x20, 0x6c, 0x69, 0x73,
+ 0x74, 0x20, 0x6f, 0x66, 0x20, 0x60, 0x5b, 0x6b, 0x65, 0x79, 0x2c, 0x20,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5d, 0x60, 0x20, 0x70, 0x61, 0x69, 0x72,
+ 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x70, 0x61, 0x69, 0x72, 0x73,
+ 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76,
+ 0x61, 0x72, 0x20, 0x70, 0x61, 0x69, 0x72, 0x73, 0x20, 0x3d, 0x20, 0x5b,
+ 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x28,
+ 0x76, 0x61, 0x72, 0x20, 0x6b, 0x65, 0x79, 0x20, 0x69, 0x6e, 0x20, 0x6f,
+ 0x62, 0x6a, 0x29, 0x20, 0x69, 0x66, 0x20, 0x28, 0x5f, 0x2e, 0x68, 0x61,
+ 0x73, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x6b, 0x65, 0x79, 0x29, 0x29,
+ 0x20, 0x70, 0x61, 0x69, 0x72, 0x73, 0x2e, 0x70, 0x75, 0x73, 0x68, 0x28,
+ 0x5b, 0x6b, 0x65, 0x79, 0x2c, 0x20, 0x6f, 0x62, 0x6a, 0x5b, 0x6b, 0x65,
+ 0x79, 0x5d, 0x5d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x20, 0x70, 0x61, 0x69, 0x72, 0x73, 0x3b, 0x0a,
+ 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x49,
+ 0x6e, 0x76, 0x65, 0x72, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6b, 0x65,
+ 0x79, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x73, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x65,
+ 0x63, 0x74, 0x2e, 0x20, 0x54, 0x68, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x73, 0x20, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x62, 0x65, 0x20, 0x73,
+ 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x62, 0x6c, 0x65, 0x2e,
+ 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x20,
+ 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f,
+ 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61,
+ 0x72, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x7b,
+ 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x28,
+ 0x76, 0x61, 0x72, 0x20, 0x6b, 0x65, 0x79, 0x20, 0x69, 0x6e, 0x20, 0x6f,
+ 0x62, 0x6a, 0x29, 0x20, 0x69, 0x66, 0x20, 0x28, 0x5f, 0x2e, 0x68, 0x61,
+ 0x73, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x6b, 0x65, 0x79, 0x29, 0x29,
+ 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5b, 0x6f, 0x62, 0x6a, 0x5b,
+ 0x6b, 0x65, 0x79, 0x5d, 0x5d, 0x20, 0x3d, 0x20, 0x6b, 0x65, 0x79, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b,
+ 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x61, 0x20, 0x73, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x20, 0x6c,
+ 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6e, 0x61, 0x6d, 0x65,
+ 0x73, 0x20, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x20,
+ 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63,
+ 0x74, 0x2e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41, 0x6c, 0x69, 0x61,
+ 0x73, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x60, 0x6d, 0x65, 0x74, 0x68,
+ 0x6f, 0x64, 0x73, 0x60, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x6d,
+ 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x73, 0x20, 0x3d, 0x20, 0x5b, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x76, 0x61, 0x72, 0x20, 0x6b, 0x65,
+ 0x79, 0x20, 0x69, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x5f, 0x2e,
+ 0x69, 0x73, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f,
+ 0x62, 0x6a, 0x5b, 0x6b, 0x65, 0x79, 0x5d, 0x29, 0x29, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x73, 0x2e, 0x70, 0x75, 0x73, 0x68, 0x28, 0x6b, 0x65, 0x79,
+ 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x61, 0x6d, 0x65,
+ 0x73, 0x2e, 0x73, 0x6f, 0x72, 0x74, 0x28, 0x29, 0x3b, 0x0a, 0x20, 0x20,
+ 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x45, 0x78, 0x74,
+ 0x65, 0x6e, 0x64, 0x20, 0x61, 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20,
+ 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20,
+ 0x61, 0x6c, 0x6c, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x20, 0x69, 0x6e, 0x20, 0x70, 0x61,
+ 0x73, 0x73, 0x65, 0x64, 0x2d, 0x69, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x65,
+ 0x63, 0x74, 0x28, 0x73, 0x29, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x65,
+ 0x78, 0x74, 0x65, 0x6e, 0x64, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x65, 0x61, 0x63, 0x68, 0x28, 0x73, 0x6c, 0x69,
+ 0x63, 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61, 0x72, 0x67, 0x75,
+ 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20, 0x31, 0x29, 0x2c, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x73, 0x6f, 0x75, 0x72,
+ 0x63, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x69, 0x66, 0x20, 0x28, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x29, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f,
+ 0x72, 0x20, 0x28, 0x76, 0x61, 0x72, 0x20, 0x70, 0x72, 0x6f, 0x70, 0x20,
+ 0x69, 0x6e, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6f,
+ 0x62, 0x6a, 0x5b, 0x70, 0x72, 0x6f, 0x70, 0x5d, 0x20, 0x3d, 0x20, 0x73,
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5b, 0x70, 0x72, 0x6f, 0x70, 0x5d, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d,
+ 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x61, 0x20, 0x63, 0x6f, 0x70, 0x79, 0x20, 0x6f, 0x66, 0x20, 0x74,
+ 0x68, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x6f, 0x6e,
+ 0x6c, 0x79, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e,
+ 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x77, 0x68, 0x69, 0x74, 0x65, 0x6c,
+ 0x69, 0x73, 0x74, 0x65, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x69, 0x65, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x70, 0x69,
+ 0x63, 0x6b, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x76, 0x61, 0x72, 0x20, 0x63, 0x6f, 0x70, 0x79, 0x20, 0x3d, 0x20,
+ 0x7b, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20,
+ 0x6b, 0x65, 0x79, 0x73, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x63, 0x61,
+ 0x74, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x41, 0x72, 0x72, 0x61,
+ 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2c, 0x20, 0x73, 0x6c, 0x69, 0x63,
+ 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61, 0x72, 0x67, 0x75, 0x6d,
+ 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20, 0x31, 0x29, 0x29, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x65, 0x61, 0x63, 0x68, 0x28, 0x6b, 0x65, 0x79, 0x73,
+ 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6b,
+ 0x65, 0x79, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x69, 0x66, 0x20, 0x28, 0x6b, 0x65, 0x79, 0x20, 0x69, 0x6e, 0x20, 0x6f,
+ 0x62, 0x6a, 0x29, 0x20, 0x63, 0x6f, 0x70, 0x79, 0x5b, 0x6b, 0x65, 0x79,
+ 0x5d, 0x20, 0x3d, 0x20, 0x6f, 0x62, 0x6a, 0x5b, 0x6b, 0x65, 0x79, 0x5d,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x63, 0x6f, 0x70,
+ 0x79, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x61, 0x20,
+ 0x63, 0x6f, 0x70, 0x79, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20,
+ 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x77, 0x69, 0x74, 0x68, 0x6f,
+ 0x75, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x62, 0x6c, 0x61, 0x63, 0x6b,
+ 0x6c, 0x69, 0x73, 0x74, 0x65, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x69, 0x65, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x6f,
+ 0x6d, 0x69, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x63, 0x6f, 0x70, 0x79, 0x20, 0x3d,
+ 0x20, 0x7b, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72,
+ 0x20, 0x6b, 0x65, 0x79, 0x73, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x6e, 0x63,
+ 0x61, 0x74, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x41, 0x72, 0x72,
+ 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2c, 0x20, 0x73, 0x6c, 0x69,
+ 0x63, 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61, 0x72, 0x67, 0x75,
+ 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20, 0x31, 0x29, 0x29, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x76, 0x61, 0x72,
+ 0x20, 0x6b, 0x65, 0x79, 0x20, 0x69, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x29,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20,
+ 0x28, 0x21, 0x5f, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73,
+ 0x28, 0x6b, 0x65, 0x79, 0x73, 0x2c, 0x20, 0x6b, 0x65, 0x79, 0x29, 0x29,
+ 0x20, 0x63, 0x6f, 0x70, 0x79, 0x5b, 0x6b, 0x65, 0x79, 0x5d, 0x20, 0x3d,
+ 0x20, 0x6f, 0x62, 0x6a, 0x5b, 0x6b, 0x65, 0x79, 0x5d, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x63, 0x6f, 0x70, 0x79, 0x3b, 0x0a, 0x20, 0x20,
+ 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x46, 0x69, 0x6c,
+ 0x6c, 0x20, 0x69, 0x6e, 0x20, 0x61, 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e,
+ 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x77, 0x69, 0x74, 0x68,
+ 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x5f,
+ 0x2e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x61, 0x63, 0x68,
+ 0x28, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28,
+ 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20, 0x31,
+ 0x29, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x73, 0x6f, 0x75, 0x72,
+ 0x63, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x76, 0x61, 0x72, 0x20, 0x70,
+ 0x72, 0x6f, 0x70, 0x20, 0x69, 0x6e, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63,
+ 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6f, 0x62, 0x6a, 0x5b, 0x70,
+ 0x72, 0x6f, 0x70, 0x5d, 0x20, 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c,
+ 0x29, 0x20, 0x6f, 0x62, 0x6a, 0x5b, 0x70, 0x72, 0x6f, 0x70, 0x5d, 0x20,
+ 0x3d, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5b, 0x70, 0x72, 0x6f,
+ 0x70, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x3b, 0x0a, 0x20, 0x20,
+ 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x43, 0x72, 0x65,
+ 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x28, 0x73, 0x68, 0x61, 0x6c, 0x6c,
+ 0x6f, 0x77, 0x2d, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x64, 0x29, 0x20, 0x64,
+ 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x6f, 0x66, 0x20,
+ 0x61, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x0a, 0x20,
+ 0x20, 0x5f, 0x2e, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x20, 0x3d, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x21,
+ 0x5f, 0x2e, 0x69, 0x73, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x28, 0x6f,
+ 0x62, 0x6a, 0x29, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x6f, 0x62, 0x6a, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x41, 0x72, 0x72, 0x61,
+ 0x79, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x3f, 0x20, 0x6f, 0x62, 0x6a,
+ 0x2e, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x28, 0x29, 0x20, 0x3a, 0x20, 0x5f,
+ 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x28, 0x7b, 0x7d, 0x2c, 0x20,
+ 0x6f, 0x62, 0x6a, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x73,
+ 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x63, 0x65, 0x70, 0x74, 0x6f, 0x72,
+ 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x62,
+ 0x6a, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x6f, 0x62, 0x6a, 0x2e,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x54, 0x68, 0x65, 0x20, 0x70, 0x72,
+ 0x69, 0x6d, 0x61, 0x72, 0x79, 0x20, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73,
+ 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6d, 0x65,
+ 0x74, 0x68, 0x6f, 0x64, 0x20, 0x69, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x22,
+ 0x74, 0x61, 0x70, 0x20, 0x69, 0x6e, 0x74, 0x6f, 0x22, 0x20, 0x61, 0x20,
+ 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x20, 0x63, 0x68, 0x61, 0x69, 0x6e,
+ 0x2c, 0x20, 0x69, 0x6e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x6f, 0x72,
+ 0x64, 0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x70, 0x65, 0x72, 0x66, 0x6f,
+ 0x72, 0x6d, 0x20, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x73, 0x20, 0x6f, 0x6e, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6d, 0x65,
+ 0x64, 0x69, 0x61, 0x74, 0x65, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
+ 0x73, 0x20, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e,
+ 0x74, 0x61, 0x70, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x69, 0x6e, 0x74, 0x65,
+ 0x72, 0x63, 0x65, 0x70, 0x74, 0x6f, 0x72, 0x29, 0x20, 0x7b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x63, 0x65, 0x70, 0x74,
+ 0x6f, 0x72, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x3b,
+ 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x63,
+ 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x61,
+ 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x60, 0x69, 0x73, 0x45, 0x71,
+ 0x75, 0x61, 0x6c, 0x60, 0x2e, 0x0a, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20,
+ 0x65, 0x71, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x28, 0x61, 0x2c, 0x20, 0x62, 0x2c, 0x20, 0x61, 0x53, 0x74, 0x61,
+ 0x63, 0x6b, 0x2c, 0x20, 0x62, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x29, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x49, 0x64, 0x65,
+ 0x6e, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63,
+ 0x74, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x65, 0x71, 0x75, 0x61, 0x6c,
+ 0x2e, 0x20, 0x60, 0x30, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x2d, 0x30, 0x60,
+ 0x2c, 0x20, 0x62, 0x75, 0x74, 0x20, 0x74, 0x68, 0x65, 0x79, 0x20, 0x61,
+ 0x72, 0x65, 0x6e, 0x27, 0x74, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,
+ 0x63, 0x61, 0x6c, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x53, 0x65, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x48, 0x61, 0x72, 0x6d,
+ 0x6f, 0x6e, 0x79, 0x20, 0x60, 0x65, 0x67, 0x61, 0x6c, 0x60, 0x20, 0x70,
+ 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x3a, 0x20, 0x68, 0x74, 0x74,
+ 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x69, 0x6b, 0x69, 0x2e, 0x65, 0x63, 0x6d,
+ 0x61, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
+ 0x64, 0x6f, 0x6b, 0x75, 0x2e, 0x70, 0x68, 0x70, 0x3f, 0x69, 0x64, 0x3d,
+ 0x68, 0x61, 0x72, 0x6d, 0x6f, 0x6e, 0x79, 0x3a, 0x65, 0x67, 0x61, 0x6c,
+ 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x61, 0x20,
+ 0x3d, 0x3d, 0x3d, 0x20, 0x62, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x61, 0x20, 0x21, 0x3d, 0x3d, 0x20, 0x30, 0x20, 0x7c, 0x7c,
+ 0x20, 0x31, 0x20, 0x2f, 0x20, 0x61, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x20,
+ 0x2f, 0x20, 0x62, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x41, 0x20, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x20, 0x63, 0x6f, 0x6d,
+ 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x20, 0x69, 0x73, 0x20, 0x6e,
+ 0x65, 0x63, 0x65, 0x73, 0x73, 0x61, 0x72, 0x79, 0x20, 0x62, 0x65, 0x63,
+ 0x61, 0x75, 0x73, 0x65, 0x20, 0x60, 0x6e, 0x75, 0x6c, 0x6c, 0x20, 0x3d,
+ 0x3d, 0x20, 0x75, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x60,
+ 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x61, 0x20,
+ 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x20, 0x7c, 0x7c, 0x20, 0x62,
+ 0x20, 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x72, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x20, 0x61, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x62,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x55, 0x6e, 0x77,
+ 0x72, 0x61, 0x70, 0x20, 0x61, 0x6e, 0x79, 0x20, 0x77, 0x72, 0x61, 0x70,
+ 0x70, 0x65, 0x64, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x61, 0x20, 0x69,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x6f, 0x66, 0x20, 0x5f, 0x29,
+ 0x20, 0x61, 0x20, 0x3d, 0x20, 0x61, 0x2e, 0x5f, 0x77, 0x72, 0x61, 0x70,
+ 0x70, 0x65, 0x64, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20,
+ 0x28, 0x62, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x6f,
+ 0x66, 0x20, 0x5f, 0x29, 0x20, 0x62, 0x20, 0x3d, 0x20, 0x62, 0x2e, 0x5f,
+ 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x20,
+ 0x60, 0x5b, 0x5b, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x5d, 0x5d, 0x60, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76,
+ 0x61, 0x72, 0x20, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65,
+ 0x20, 0x3d, 0x20, 0x74, 0x6f, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e,
+ 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x69, 0x66, 0x20, 0x28, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4e, 0x61,
+ 0x6d, 0x65, 0x20, 0x21, 0x3d, 0x20, 0x74, 0x6f, 0x53, 0x74, 0x72, 0x69,
+ 0x6e, 0x67, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x62, 0x29, 0x29, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68,
+ 0x20, 0x28, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x29,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x2c, 0x20, 0x6e, 0x75, 0x6d,
+ 0x62, 0x65, 0x72, 0x73, 0x2c, 0x20, 0x64, 0x61, 0x74, 0x65, 0x73, 0x2c,
+ 0x20, 0x61, 0x6e, 0x64, 0x20, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e,
+ 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72,
+ 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2e,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x61, 0x73, 0x65, 0x20,
+ 0x27, 0x5b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x53, 0x74, 0x72,
+ 0x69, 0x6e, 0x67, 0x5d, 0x27, 0x3a, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74,
+ 0x69, 0x76, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x68, 0x65,
+ 0x69, 0x72, 0x20, 0x63, 0x6f, 0x72, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x64, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20,
+ 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x20, 0x61, 0x72, 0x65,
+ 0x20, 0x65, 0x71, 0x75, 0x69, 0x76, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x3b,
+ 0x20, 0x74, 0x68, 0x75, 0x73, 0x2c, 0x20, 0x60, 0x22, 0x35, 0x22, 0x60,
+ 0x20, 0x69, 0x73, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x65, 0x71, 0x75, 0x69, 0x76, 0x61, 0x6c, 0x65, 0x6e,
+ 0x74, 0x20, 0x74, 0x6f, 0x20, 0x60, 0x6e, 0x65, 0x77, 0x20, 0x53, 0x74,
+ 0x72, 0x69, 0x6e, 0x67, 0x28, 0x22, 0x35, 0x22, 0x29, 0x60, 0x2e, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x61, 0x20, 0x3d, 0x3d, 0x20, 0x53, 0x74, 0x72, 0x69,
+ 0x6e, 0x67, 0x28, 0x62, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x63, 0x61, 0x73, 0x65, 0x20, 0x27, 0x5b, 0x6f, 0x62, 0x6a, 0x65,
+ 0x63, 0x74, 0x20, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5d, 0x27, 0x3a,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x60, 0x4e, 0x61, 0x4e, 0x60, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x65,
+ 0x71, 0x75, 0x69, 0x76, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2c, 0x20, 0x62,
+ 0x75, 0x74, 0x20, 0x6e, 0x6f, 0x6e, 0x2d, 0x72, 0x65, 0x66, 0x6c, 0x65,
+ 0x78, 0x69, 0x76, 0x65, 0x2e, 0x20, 0x41, 0x6e, 0x20, 0x60, 0x65, 0x67,
+ 0x61, 0x6c, 0x60, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73,
+ 0x6f, 0x6e, 0x20, 0x69, 0x73, 0x20, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72,
+ 0x6d, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72,
+ 0x20, 0x6e, 0x75, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x20, 0x76, 0x61, 0x6c,
+ 0x75, 0x65, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x61, 0x20, 0x21, 0x3d,
+ 0x20, 0x2b, 0x61, 0x20, 0x3f, 0x20, 0x62, 0x20, 0x21, 0x3d, 0x20, 0x2b,
+ 0x62, 0x20, 0x3a, 0x20, 0x28, 0x61, 0x20, 0x3d, 0x3d, 0x20, 0x30, 0x20,
+ 0x3f, 0x20, 0x31, 0x20, 0x2f, 0x20, 0x61, 0x20, 0x3d, 0x3d, 0x20, 0x31,
+ 0x20, 0x2f, 0x20, 0x62, 0x20, 0x3a, 0x20, 0x61, 0x20, 0x3d, 0x3d, 0x20,
+ 0x2b, 0x62, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63,
+ 0x61, 0x73, 0x65, 0x20, 0x27, 0x5b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74,
+ 0x20, 0x44, 0x61, 0x74, 0x65, 0x5d, 0x27, 0x3a, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x63, 0x61, 0x73, 0x65, 0x20, 0x27, 0x5b, 0x6f, 0x62,
+ 0x6a, 0x65, 0x63, 0x74, 0x20, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e,
+ 0x5d, 0x27, 0x3a, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x43, 0x6f, 0x65, 0x72, 0x63, 0x65, 0x20, 0x64, 0x61,
+ 0x74, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x62, 0x6f, 0x6f, 0x6c,
+ 0x65, 0x61, 0x6e, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x6e, 0x75, 0x6d, 0x65,
+ 0x72, 0x69, 0x63, 0x20, 0x70, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76,
+ 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2e, 0x20, 0x44, 0x61,
+ 0x74, 0x65, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x63, 0x6f, 0x6d, 0x70,
+ 0x61, 0x72, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x69,
+ 0x72, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f,
+ 0x20, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64,
+ 0x20, 0x72, 0x65, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x20, 0x4e, 0x6f, 0x74, 0x65, 0x20, 0x74,
+ 0x68, 0x61, 0x74, 0x20, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x20,
+ 0x64, 0x61, 0x74, 0x65, 0x73, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x6d,
+ 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x20, 0x72,
+ 0x65, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x73, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x6f, 0x66, 0x20, 0x60, 0x4e, 0x61, 0x4e, 0x60, 0x20, 0x61,
+ 0x72, 0x65, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x71, 0x75, 0x69, 0x76,
+ 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x2b, 0x61,
+ 0x20, 0x3d, 0x3d, 0x20, 0x2b, 0x62, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x67, 0x45, 0x78, 0x70, 0x73,
+ 0x20, 0x61, 0x72, 0x65, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65,
+ 0x64, 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x69, 0x72, 0x20, 0x73,
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72,
+ 0x6e, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x66, 0x6c, 0x61, 0x67, 0x73,
+ 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x61, 0x73, 0x65,
+ 0x20, 0x27, 0x5b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x52, 0x65,
+ 0x67, 0x45, 0x78, 0x70, 0x5d, 0x27, 0x3a, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x61,
+ 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x62,
+ 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x26, 0x26, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x61, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x3d,
+ 0x3d, 0x20, 0x62, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x26,
+ 0x26, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x61, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69,
+ 0x6c, 0x69, 0x6e, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x62, 0x2e, 0x6d, 0x75,
+ 0x6c, 0x74, 0x69, 0x6c, 0x69, 0x6e, 0x65, 0x20, 0x26, 0x26, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x61, 0x2e, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x43, 0x61,
+ 0x73, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x62, 0x2e, 0x69, 0x67, 0x6e, 0x6f,
+ 0x72, 0x65, 0x43, 0x61, 0x73, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x74, 0x79,
+ 0x70, 0x65, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x21, 0x3d, 0x20, 0x27, 0x6f,
+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x27, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x79,
+ 0x70, 0x65, 0x6f, 0x66, 0x20, 0x62, 0x20, 0x21, 0x3d, 0x20, 0x27, 0x6f,
+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x27, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41, 0x73, 0x73, 0x75, 0x6d, 0x65, 0x20,
+ 0x65, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x20, 0x66, 0x6f, 0x72,
+ 0x20, 0x63, 0x79, 0x63, 0x6c, 0x69, 0x63, 0x20, 0x73, 0x74, 0x72, 0x75,
+ 0x63, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x20, 0x54, 0x68, 0x65, 0x20,
+ 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x20, 0x66, 0x6f,
+ 0x72, 0x20, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6e, 0x67, 0x20,
+ 0x63, 0x79, 0x63, 0x6c, 0x69, 0x63, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x73,
+ 0x20, 0x69, 0x73, 0x20, 0x61, 0x64, 0x61, 0x70, 0x74, 0x65, 0x64, 0x20,
+ 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x45, 0x53, 0x20, 0x35, 0x2e, 0x31, 0x20,
+ 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x31, 0x35, 0x2e, 0x31,
+ 0x32, 0x2e, 0x33, 0x2c, 0x20, 0x61, 0x62, 0x73, 0x74, 0x72, 0x61, 0x63,
+ 0x74, 0x20, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20,
+ 0x60, 0x4a, 0x4f, 0x60, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61,
+ 0x72, 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x61,
+ 0x53, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20,
+ 0x28, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x2d, 0x2d, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x4c, 0x69,
+ 0x6e, 0x65, 0x61, 0x72, 0x20, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x2e,
+ 0x20, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65,
+ 0x20, 0x69, 0x73, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x6c,
+ 0x79, 0x20, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e,
+ 0x61, 0x6c, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x75,
+ 0x6d, 0x62, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x20,
+ 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x20, 0x73, 0x74, 0x72, 0x75, 0x63,
+ 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x69, 0x66, 0x20, 0x28, 0x61, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x5b,
+ 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5d, 0x20, 0x3d, 0x3d, 0x20, 0x61,
+ 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x62, 0x53, 0x74,
+ 0x61, 0x63, 0x6b, 0x5b, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5d, 0x20,
+ 0x3d, 0x3d, 0x20, 0x62, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41, 0x64, 0x64, 0x20, 0x74,
+ 0x68, 0x65, 0x20, 0x66, 0x69, 0x72, 0x73, 0x74, 0x20, 0x6f, 0x62, 0x6a,
+ 0x65, 0x63, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73,
+ 0x74, 0x61, 0x63, 0x6b, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x72, 0x61, 0x76,
+ 0x65, 0x72, 0x73, 0x65, 0x64, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74,
+ 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x61, 0x53, 0x74, 0x61, 0x63,
+ 0x6b, 0x2e, 0x70, 0x75, 0x73, 0x68, 0x28, 0x61, 0x29, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x62, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x70, 0x75,
+ 0x73, 0x68, 0x28, 0x62, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76,
+ 0x61, 0x72, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x3d, 0x20, 0x30, 0x2c,
+ 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x74, 0x72,
+ 0x75, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52,
+ 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x6c, 0x79, 0x20, 0x63,
+ 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63,
+ 0x74, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x61, 0x72, 0x72, 0x61, 0x79,
+ 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x63,
+ 0x6c, 0x61, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x3d, 0x3d, 0x20,
+ 0x27, 0x5b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x41, 0x72, 0x72,
+ 0x61, 0x79, 0x5d, 0x27, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65,
+ 0x20, 0x61, 0x72, 0x72, 0x61, 0x79, 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74,
+ 0x68, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x64, 0x65, 0x74, 0x65, 0x72, 0x6d,
+ 0x69, 0x6e, 0x65, 0x20, 0x69, 0x66, 0x20, 0x61, 0x20, 0x64, 0x65, 0x65,
+ 0x70, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e,
+ 0x20, 0x69, 0x73, 0x20, 0x6e, 0x65, 0x63, 0x65, 0x73, 0x73, 0x61, 0x72,
+ 0x79, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x69, 0x7a,
+ 0x65, 0x20, 0x3d, 0x20, 0x61, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x73, 0x75,
+ 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x3d, 0x3d,
+ 0x20, 0x62, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x72, 0x65, 0x73,
+ 0x75, 0x6c, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x44, 0x65, 0x65, 0x70, 0x20, 0x63,
+ 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63,
+ 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x20, 0x69, 0x67, 0x6e,
+ 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x6e, 0x6f, 0x6e, 0x2d, 0x6e, 0x75,
+ 0x6d, 0x65, 0x72, 0x69, 0x63, 0x20, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x69, 0x65, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x28, 0x73, 0x69, 0x7a,
+ 0x65, 0x2d, 0x2d, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x21, 0x28, 0x72,
+ 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x65, 0x71, 0x28, 0x61,
+ 0x5b, 0x73, 0x69, 0x7a, 0x65, 0x5d, 0x2c, 0x20, 0x62, 0x5b, 0x73, 0x69,
+ 0x7a, 0x65, 0x5d, 0x2c, 0x20, 0x61, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x2c,
+ 0x20, 0x62, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x29, 0x29, 0x29, 0x20, 0x62,
+ 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x7d, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x4f, 0x62,
+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x64,
+ 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x63, 0x6f, 0x6e,
+ 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x20, 0x61, 0x72,
+ 0x65, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x71, 0x75, 0x69, 0x76, 0x61,
+ 0x6c, 0x65, 0x6e, 0x74, 0x2c, 0x20, 0x62, 0x75, 0x74, 0x20, 0x60, 0x4f,
+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x60, 0x73, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x64, 0x69,
+ 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x66, 0x72, 0x61, 0x6d,
+ 0x65, 0x73, 0x20, 0x61, 0x72, 0x65, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x61, 0x43, 0x74, 0x6f, 0x72, 0x20,
+ 0x3d, 0x20, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63,
+ 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x62, 0x43, 0x74, 0x6f, 0x72, 0x20, 0x3d,
+ 0x20, 0x62, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74,
+ 0x6f, 0x72, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66,
+ 0x20, 0x28, 0x61, 0x43, 0x74, 0x6f, 0x72, 0x20, 0x21, 0x3d, 0x3d, 0x20,
+ 0x62, 0x43, 0x74, 0x6f, 0x72, 0x20, 0x26, 0x26, 0x20, 0x21, 0x28, 0x5f,
+ 0x2e, 0x69, 0x73, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x61, 0x43, 0x74, 0x6f, 0x72, 0x29, 0x20, 0x26, 0x26, 0x20, 0x28, 0x61,
+ 0x43, 0x74, 0x6f, 0x72, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x6f, 0x66, 0x20, 0x61, 0x43, 0x74, 0x6f, 0x72, 0x29, 0x20, 0x26,
+ 0x26, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x2e, 0x69,
+ 0x73, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x62, 0x43,
+ 0x74, 0x6f, 0x72, 0x29, 0x20, 0x26, 0x26, 0x20, 0x28, 0x62, 0x43, 0x74,
+ 0x6f, 0x72, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x6f,
+ 0x66, 0x20, 0x62, 0x43, 0x74, 0x6f, 0x72, 0x29, 0x29, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x44, 0x65, 0x65, 0x70, 0x20, 0x63, 0x6f, 0x6d,
+ 0x70, 0x61, 0x72, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73,
+ 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20,
+ 0x28, 0x76, 0x61, 0x72, 0x20, 0x6b, 0x65, 0x79, 0x20, 0x69, 0x6e, 0x20,
+ 0x61, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x69, 0x66, 0x20, 0x28, 0x5f, 0x2e, 0x68, 0x61, 0x73, 0x28, 0x61,
+ 0x2c, 0x20, 0x6b, 0x65, 0x79, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x43,
+ 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x78, 0x70,
+ 0x65, 0x63, 0x74, 0x65, 0x64, 0x20, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
+ 0x20, 0x6f, 0x66, 0x20, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69,
+ 0x65, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x2b, 0x2b, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x44,
+ 0x65, 0x65, 0x70, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x20,
+ 0x65, 0x61, 0x63, 0x68, 0x20, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69,
+ 0x66, 0x20, 0x28, 0x21, 0x28, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20,
+ 0x3d, 0x20, 0x5f, 0x2e, 0x68, 0x61, 0x73, 0x28, 0x62, 0x2c, 0x20, 0x6b,
+ 0x65, 0x79, 0x29, 0x20, 0x26, 0x26, 0x20, 0x65, 0x71, 0x28, 0x61, 0x5b,
+ 0x6b, 0x65, 0x79, 0x5d, 0x2c, 0x20, 0x62, 0x5b, 0x6b, 0x65, 0x79, 0x5d,
+ 0x2c, 0x20, 0x61, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x2c, 0x20, 0x62, 0x53,
+ 0x74, 0x61, 0x63, 0x6b, 0x29, 0x29, 0x29, 0x20, 0x62, 0x72, 0x65, 0x61,
+ 0x6b, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x45, 0x6e, 0x73, 0x75, 0x72, 0x65,
+ 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x62, 0x6f, 0x74, 0x68, 0x20, 0x6f,
+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61,
+ 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x61, 0x6d, 0x65, 0x20,
+ 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x2e, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x72, 0x65, 0x73, 0x75,
+ 0x6c, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x6b, 0x65, 0x79, 0x20, 0x69,
+ 0x6e, 0x20, 0x62, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x5f, 0x2e, 0x68,
+ 0x61, 0x73, 0x28, 0x62, 0x2c, 0x20, 0x6b, 0x65, 0x79, 0x29, 0x20, 0x26,
+ 0x26, 0x20, 0x21, 0x28, 0x73, 0x69, 0x7a, 0x65, 0x2d, 0x2d, 0x29, 0x29,
+ 0x20, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x21,
+ 0x73, 0x69, 0x7a, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x20, 0x74, 0x68,
+ 0x65, 0x20, 0x66, 0x69, 0x72, 0x73, 0x74, 0x20, 0x6f, 0x62, 0x6a, 0x65,
+ 0x63, 0x74, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x74, 0x68, 0x65, 0x20,
+ 0x73, 0x74, 0x61, 0x63, 0x6b, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x72, 0x61,
+ 0x76, 0x65, 0x72, 0x73, 0x65, 0x64, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63,
+ 0x74, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x61, 0x53, 0x74, 0x61,
+ 0x63, 0x6b, 0x2e, 0x70, 0x6f, 0x70, 0x28, 0x29, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x62, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x70, 0x6f, 0x70,
+ 0x28, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x3b, 0x0a, 0x20,
+ 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x50, 0x65,
+ 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x61, 0x20, 0x64, 0x65, 0x65, 0x70,
+ 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x20,
+ 0x74, 0x6f, 0x20, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x20, 0x69, 0x66, 0x20,
+ 0x74, 0x77, 0x6f, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x20,
+ 0x61, 0x72, 0x65, 0x20, 0x65, 0x71, 0x75, 0x61, 0x6c, 0x2e, 0x0a, 0x20,
+ 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x45, 0x71, 0x75, 0x61, 0x6c, 0x20, 0x3d,
+ 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x61, 0x2c,
+ 0x20, 0x62, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65,
+ 0x74, 0x75, 0x72, 0x6e, 0x20, 0x65, 0x71, 0x28, 0x61, 0x2c, 0x20, 0x62,
+ 0x2c, 0x20, 0x5b, 0x5d, 0x2c, 0x20, 0x5b, 0x5d, 0x29, 0x3b, 0x0a, 0x20,
+ 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x49, 0x73,
+ 0x20, 0x61, 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20, 0x61, 0x72, 0x72,
+ 0x61, 0x79, 0x2c, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2c, 0x20,
+ 0x6f, 0x72, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x65, 0x6d,
+ 0x70, 0x74, 0x79, 0x3f, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41, 0x6e,
+ 0x20, 0x22, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x20, 0x6f, 0x62, 0x6a,
+ 0x65, 0x63, 0x74, 0x20, 0x68, 0x61, 0x73, 0x20, 0x6e, 0x6f, 0x20, 0x65,
+ 0x6e, 0x75, 0x6d, 0x65, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x6f, 0x77,
+ 0x6e, 0x2d, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73,
+ 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x45, 0x6d, 0x70, 0x74,
+ 0x79, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x69, 0x66, 0x20, 0x28, 0x6f, 0x62, 0x6a, 0x20, 0x3d, 0x3d, 0x20, 0x6e,
+ 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66,
+ 0x20, 0x28, 0x5f, 0x2e, 0x69, 0x73, 0x41, 0x72, 0x72, 0x61, 0x79, 0x28,
+ 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7c, 0x7c, 0x20, 0x5f, 0x2e, 0x69, 0x73,
+ 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x29,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x2e,
+ 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x30,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x76,
+ 0x61, 0x72, 0x20, 0x6b, 0x65, 0x79, 0x20, 0x69, 0x6e, 0x20, 0x6f, 0x62,
+ 0x6a, 0x29, 0x20, 0x69, 0x66, 0x20, 0x28, 0x5f, 0x2e, 0x68, 0x61, 0x73,
+ 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x6b, 0x65, 0x79, 0x29, 0x29, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x74, 0x72, 0x75, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x49, 0x73, 0x20, 0x61, 0x20, 0x67,
+ 0x69, 0x76, 0x65, 0x6e, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x61,
+ 0x20, 0x44, 0x4f, 0x4d, 0x20, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74,
+ 0x3f, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x45, 0x6c, 0x65, 0x6d,
+ 0x65, 0x6e, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x21, 0x21, 0x28,
+ 0x6f, 0x62, 0x6a, 0x20, 0x26, 0x26, 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x6e,
+ 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x20, 0x3d, 0x3d, 0x3d, 0x20,
+ 0x31, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x49, 0x73, 0x20, 0x61, 0x20, 0x67, 0x69, 0x76, 0x65,
+ 0x6e, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x61,
+ 0x72, 0x72, 0x61, 0x79, 0x3f, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x44,
+ 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x6f, 0x20,
+ 0x45, 0x43, 0x4d, 0x41, 0x35, 0x27, 0x73, 0x20, 0x6e, 0x61, 0x74, 0x69,
+ 0x76, 0x65, 0x20, 0x41, 0x72, 0x72, 0x61, 0x79, 0x2e, 0x69, 0x73, 0x41,
+ 0x72, 0x72, 0x61, 0x79, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x41,
+ 0x72, 0x72, 0x61, 0x79, 0x20, 0x3d, 0x20, 0x6e, 0x61, 0x74, 0x69, 0x76,
+ 0x65, 0x49, 0x73, 0x41, 0x72, 0x72, 0x61, 0x79, 0x20, 0x7c, 0x7c, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x74, 0x6f, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e,
+ 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x3d, 0x3d,
+ 0x20, 0x27, 0x5b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x41, 0x72,
+ 0x72, 0x61, 0x79, 0x5d, 0x27, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x49, 0x73, 0x20, 0x61, 0x20, 0x67,
+ 0x69, 0x76, 0x65, 0x6e, 0x20, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c,
+ 0x65, 0x20, 0x61, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x3f,
+ 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x4f, 0x62, 0x6a, 0x65, 0x63,
+ 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x20, 0x3d,
+ 0x3d, 0x3d, 0x20, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x28, 0x6f, 0x62,
+ 0x6a, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x41, 0x64, 0x64, 0x20, 0x73, 0x6f, 0x6d, 0x65, 0x20,
+ 0x69, 0x73, 0x54, 0x79, 0x70, 0x65, 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f,
+ 0x64, 0x73, 0x3a, 0x20, 0x69, 0x73, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65,
+ 0x6e, 0x74, 0x73, 0x2c, 0x20, 0x69, 0x73, 0x46, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x2c, 0x20, 0x69, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e,
+ 0x67, 0x2c, 0x20, 0x69, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2c,
+ 0x20, 0x69, 0x73, 0x44, 0x61, 0x74, 0x65, 0x2c, 0x20, 0x69, 0x73, 0x52,
+ 0x65, 0x67, 0x45, 0x78, 0x70, 0x2e, 0x0a, 0x20, 0x20, 0x65, 0x61, 0x63,
+ 0x68, 0x28, 0x5b, 0x27, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x27, 0x2c, 0x20, 0x27, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x27, 0x2c, 0x20, 0x27, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x27,
+ 0x2c, 0x20, 0x27, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x27, 0x2c, 0x20,
+ 0x27, 0x44, 0x61, 0x74, 0x65, 0x27, 0x2c, 0x20, 0x27, 0x52, 0x65, 0x67,
+ 0x45, 0x78, 0x70, 0x27, 0x5d, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x28, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x20, 0x7b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x5f, 0x5b, 0x27, 0x69, 0x73, 0x27, 0x20, 0x2b,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x5d, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x74, 0x6f, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63,
+ 0x61, 0x6c, 0x6c, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x3d, 0x3d, 0x20,
+ 0x27, 0x5b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x27, 0x20, 0x2b,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x2b, 0x20, 0x27, 0x5d, 0x27, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x29,
+ 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x44, 0x65, 0x66, 0x69,
+ 0x6e, 0x65, 0x20, 0x61, 0x20, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
+ 0x6b, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66,
+ 0x20, 0x74, 0x68, 0x65, 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x20,
+ 0x69, 0x6e, 0x20, 0x62, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x73, 0x20,
+ 0x28, 0x61, 0x68, 0x65, 0x6d, 0x2c, 0x20, 0x49, 0x45, 0x29, 0x2c, 0x20,
+ 0x77, 0x68, 0x65, 0x72, 0x65, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x74,
+ 0x68, 0x65, 0x72, 0x65, 0x20, 0x69, 0x73, 0x6e, 0x27, 0x74, 0x20, 0x61,
+ 0x6e, 0x79, 0x20, 0x69, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x61, 0x62,
+ 0x6c, 0x65, 0x20, 0x22, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x22, 0x20, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x0a, 0x20, 0x20, 0x69,
+ 0x66, 0x20, 0x28, 0x21, 0x5f, 0x2e, 0x69, 0x73, 0x41, 0x72, 0x67, 0x75,
+ 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x28, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65,
+ 0x6e, 0x74, 0x73, 0x29, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x5f, 0x2e, 0x69, 0x73, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x21, 0x21, 0x28,
+ 0x6f, 0x62, 0x6a, 0x20, 0x26, 0x26, 0x20, 0x5f, 0x2e, 0x68, 0x61, 0x73,
+ 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x27, 0x63, 0x61, 0x6c, 0x6c, 0x65,
+ 0x65, 0x27, 0x29, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b,
+ 0x0a, 0x20, 0x20, 0x7d, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x4f,
+ 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x20, 0x60, 0x69, 0x73, 0x46,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x60, 0x20, 0x69, 0x66, 0x20,
+ 0x61, 0x70, 0x70, 0x72, 0x6f, 0x70, 0x72, 0x69, 0x61, 0x74, 0x65, 0x2e,
+ 0x0a, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x74, 0x79, 0x70, 0x65, 0x6f,
+ 0x66, 0x20, 0x28, 0x2f, 0x2e, 0x2f, 0x29, 0x20, 0x21, 0x3d, 0x3d, 0x20,
+ 0x27, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x27, 0x29, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x46, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x74, 0x79, 0x70, 0x65, 0x6f, 0x66, 0x20, 0x6f, 0x62, 0x6a,
+ 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x27, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x27, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b, 0x0a,
+ 0x20, 0x20, 0x7d, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x49, 0x73,
+ 0x20, 0x61, 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20, 0x6f, 0x62, 0x6a,
+ 0x65, 0x63, 0x74, 0x20, 0x61, 0x20, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x65,
+ 0x20, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x3f, 0x0a, 0x20, 0x20, 0x5f,
+ 0x2e, 0x69, 0x73, 0x46, 0x69, 0x6e, 0x69, 0x74, 0x65, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x69, 0x73, 0x46, 0x69, 0x6e, 0x69, 0x74, 0x65, 0x28,
+ 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x26, 0x26, 0x20, 0x21, 0x69, 0x73, 0x4e,
+ 0x61, 0x4e, 0x28, 0x70, 0x61, 0x72, 0x73, 0x65, 0x46, 0x6c, 0x6f, 0x61,
+ 0x74, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d,
+ 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x49, 0x73, 0x20, 0x74,
+ 0x68, 0x65, 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20, 0x76, 0x61, 0x6c,
+ 0x75, 0x65, 0x20, 0x60, 0x4e, 0x61, 0x4e, 0x60, 0x3f, 0x20, 0x28, 0x4e,
+ 0x61, 0x4e, 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x6e,
+ 0x6c, 0x79, 0x20, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x20, 0x77, 0x68,
+ 0x69, 0x63, 0x68, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74,
+ 0x20, 0x65, 0x71, 0x75, 0x61, 0x6c, 0x20, 0x69, 0x74, 0x73, 0x65, 0x6c,
+ 0x66, 0x29, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x4e, 0x61,
+ 0x4e, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x4e,
+ 0x75, 0x6d, 0x62, 0x65, 0x72, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x26,
+ 0x26, 0x20, 0x6f, 0x62, 0x6a, 0x20, 0x21, 0x3d, 0x20, 0x2b, 0x6f, 0x62,
+ 0x6a, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x49, 0x73, 0x20, 0x61, 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e,
+ 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x61, 0x20, 0x62, 0x6f, 0x6f,
+ 0x6c, 0x65, 0x61, 0x6e, 0x3f, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x69, 0x73,
+ 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x20, 0x3d, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x6f, 0x62, 0x6a, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x74, 0x72, 0x75,
+ 0x65, 0x20, 0x7c, 0x7c, 0x20, 0x6f, 0x62, 0x6a, 0x20, 0x3d, 0x3d, 0x3d,
+ 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x20, 0x7c, 0x7c, 0x20, 0x74, 0x6f,
+ 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28,
+ 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x3d, 0x3d, 0x20, 0x27, 0x5b, 0x6f, 0x62,
+ 0x6a, 0x65, 0x63, 0x74, 0x20, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e,
+ 0x5d, 0x27, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x49, 0x73, 0x20, 0x61, 0x20, 0x67, 0x69, 0x76, 0x65,
+ 0x6e, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x65, 0x71, 0x75, 0x61,
+ 0x6c, 0x20, 0x74, 0x6f, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x3f, 0x0a, 0x20,
+ 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x6e,
+ 0x75, 0x6c, 0x6c, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x49, 0x73, 0x20, 0x61, 0x20, 0x67, 0x69, 0x76,
+ 0x65, 0x6e, 0x20, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x20,
+ 0x75, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x3f, 0x0a, 0x20,
+ 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e,
+ 0x65, 0x64, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x20,
+ 0x3d, 0x3d, 0x3d, 0x20, 0x76, 0x6f, 0x69, 0x64, 0x20, 0x30, 0x3b, 0x0a,
+ 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x53,
+ 0x68, 0x6f, 0x72, 0x74, 0x63, 0x75, 0x74, 0x20, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x63, 0x68, 0x65,
+ 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x66, 0x20, 0x61, 0x6e, 0x20,
+ 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x68, 0x61, 0x73, 0x20, 0x61,
+ 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x20, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6c, 0x79,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x6f, 0x6e, 0x20, 0x69, 0x74, 0x73,
+ 0x65, 0x6c, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x20, 0x6f, 0x74, 0x68, 0x65,
+ 0x72, 0x20, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x2c, 0x20, 0x6e, 0x6f, 0x74,
+ 0x20, 0x6f, 0x6e, 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74,
+ 0x79, 0x70, 0x65, 0x29, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x68, 0x61,
+ 0x73, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x6f, 0x62, 0x6a, 0x2c, 0x20, 0x6b, 0x65, 0x79, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x68, 0x61, 0x73, 0x4f, 0x77, 0x6e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x6f, 0x62, 0x6a, 0x2c,
+ 0x20, 0x6b, 0x65, 0x79, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a,
+ 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x74,
+ 0x79, 0x20, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d,
+ 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x75, 0x6e, 0x20, 0x55, 0x6e, 0x64,
+ 0x65, 0x72, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x6a, 0x73, 0x20, 0x69,
+ 0x6e, 0x20, 0x2a, 0x6e, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63,
+ 0x74, 0x2a, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x60,
+ 0x5f, 0x60, 0x20, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x20,
+ 0x74, 0x6f, 0x20, 0x69, 0x74, 0x73, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x20, 0x6f, 0x77, 0x6e,
+ 0x65, 0x72, 0x2e, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20,
+ 0x61, 0x20, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x20,
+ 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x55, 0x6e, 0x64, 0x65, 0x72,
+ 0x73, 0x63, 0x6f, 0x72, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74,
+ 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x6e, 0x6f, 0x43, 0x6f, 0x6e, 0x66,
+ 0x6c, 0x69, 0x63, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x6f, 0x6f, 0x74, 0x2e, 0x5f, 0x20, 0x3d, 0x20, 0x70, 0x72, 0x65,
+ 0x76, 0x69, 0x6f, 0x75, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x73, 0x63,
+ 0x6f, 0x72, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, 0x3b, 0x0a, 0x20, 0x20,
+ 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x4b, 0x65, 0x65,
+ 0x70, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,
+ 0x74, 0x79, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20,
+ 0x61, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x64,
+ 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61,
+ 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x69, 0x64,
+ 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x29,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x7d,
+ 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x75, 0x6e, 0x20,
+ 0x61, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x2a,
+ 0x2a, 0x6e, 0x2a, 0x2a, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x2e, 0x0a,
+ 0x20, 0x20, 0x5f, 0x2e, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6e, 0x2c, 0x20,
+ 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x20, 0x63, 0x6f,
+ 0x6e, 0x74, 0x65, 0x78, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x76, 0x61, 0x72, 0x20, 0x61, 0x63, 0x63, 0x75, 0x6d, 0x20, 0x3d,
+ 0x20, 0x41, 0x72, 0x72, 0x61, 0x79, 0x28, 0x6e, 0x29, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x28, 0x76, 0x61, 0x72, 0x20,
+ 0x69, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x20, 0x69, 0x20, 0x3c, 0x20, 0x6e,
+ 0x3b, 0x20, 0x69, 0x2b, 0x2b, 0x29, 0x20, 0x61, 0x63, 0x63, 0x75, 0x6d,
+ 0x5b, 0x69, 0x5d, 0x20, 0x3d, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74,
+ 0x6f, 0x72, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x63, 0x6f, 0x6e, 0x74,
+ 0x65, 0x78, 0x74, 0x2c, 0x20, 0x69, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x61, 0x63, 0x63, 0x75,
+ 0x6d, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x61, 0x20, 0x72,
+ 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65,
+ 0x72, 0x20, 0x62, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x20, 0x6d, 0x69,
+ 0x6e, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6d, 0x61, 0x78, 0x20, 0x28, 0x69,
+ 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x29, 0x2e, 0x0a, 0x20,
+ 0x20, 0x5f, 0x2e, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x20, 0x3d, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6d, 0x69, 0x6e,
+ 0x2c, 0x20, 0x6d, 0x61, 0x78, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x69, 0x66, 0x20, 0x28, 0x6d, 0x61, 0x78, 0x20, 0x3d, 0x3d, 0x20,
+ 0x6e, 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x6d, 0x61, 0x78, 0x20, 0x3d, 0x20, 0x6d, 0x69, 0x6e, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6d, 0x69, 0x6e, 0x20, 0x3d,
+ 0x20, 0x30, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6d, 0x69, 0x6e,
+ 0x20, 0x2b, 0x20, 0x4d, 0x61, 0x74, 0x68, 0x2e, 0x66, 0x6c, 0x6f, 0x6f,
+ 0x72, 0x28, 0x4d, 0x61, 0x74, 0x68, 0x2e, 0x72, 0x61, 0x6e, 0x64, 0x6f,
+ 0x6d, 0x28, 0x29, 0x20, 0x2a, 0x20, 0x28, 0x6d, 0x61, 0x78, 0x20, 0x2d,
+ 0x20, 0x6d, 0x69, 0x6e, 0x20, 0x2b, 0x20, 0x31, 0x29, 0x29, 0x3b, 0x0a,
+ 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x4c,
+ 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x48, 0x54, 0x4d, 0x4c, 0x20,
+ 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x20, 0x66, 0x6f, 0x72,
+ 0x20, 0x65, 0x73, 0x63, 0x61, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x0a, 0x20,
+ 0x20, 0x76, 0x61, 0x72, 0x20, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d,
+ 0x61, 0x70, 0x20, 0x3d, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65,
+ 0x73, 0x63, 0x61, 0x70, 0x65, 0x3a, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x27, 0x26, 0x27, 0x3a, 0x20, 0x27, 0x26, 0x61, 0x6d,
+ 0x70, 0x3b, 0x27, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x27,
+ 0x3c, 0x27, 0x3a, 0x20, 0x27, 0x26, 0x6c, 0x74, 0x3b, 0x27, 0x2c, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x27, 0x3e, 0x27, 0x3a, 0x20, 0x27,
+ 0x26, 0x67, 0x74, 0x3b, 0x27, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x27, 0x22, 0x27, 0x3a, 0x20, 0x27, 0x26, 0x71, 0x75, 0x6f, 0x74,
+ 0x3b, 0x27, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x27,
+ 0x22, 0x3a, 0x20, 0x27, 0x26, 0x23, 0x78, 0x32, 0x37, 0x3b, 0x27, 0x2c,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x27, 0x2f, 0x27, 0x3a, 0x20,
+ 0x27, 0x26, 0x23, 0x78, 0x32, 0x46, 0x3b, 0x27, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x65, 0x6e,
+ 0x74, 0x69, 0x74, 0x79, 0x4d, 0x61, 0x70, 0x2e, 0x75, 0x6e, 0x65, 0x73,
+ 0x63, 0x61, 0x70, 0x65, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x69, 0x6e, 0x76,
+ 0x65, 0x72, 0x74, 0x28, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x61,
+ 0x70, 0x2e, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x29, 0x3b, 0x0a, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x52, 0x65, 0x67, 0x65, 0x78, 0x65, 0x73,
+ 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x20,
+ 0x74, 0x68, 0x65, 0x20, 0x6b, 0x65, 0x79, 0x73, 0x20, 0x61, 0x6e, 0x64,
+ 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x20, 0x6c, 0x69, 0x73, 0x74,
+ 0x65, 0x64, 0x20, 0x69, 0x6d, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65,
+ 0x6c, 0x79, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x65, 0x2e, 0x0a, 0x20, 0x20,
+ 0x76, 0x61, 0x72, 0x20, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65,
+ 0x67, 0x65, 0x78, 0x65, 0x73, 0x20, 0x3d, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x3a, 0x20, 0x20, 0x20,
+ 0x6e, 0x65, 0x77, 0x20, 0x52, 0x65, 0x67, 0x45, 0x78, 0x70, 0x28, 0x27,
+ 0x5b, 0x27, 0x20, 0x2b, 0x20, 0x5f, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x28,
+ 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x61, 0x70, 0x2e, 0x65, 0x73,
+ 0x63, 0x61, 0x70, 0x65, 0x29, 0x2e, 0x6a, 0x6f, 0x69, 0x6e, 0x28, 0x27,
+ 0x27, 0x29, 0x20, 0x2b, 0x20, 0x27, 0x5d, 0x27, 0x2c, 0x20, 0x27, 0x67,
+ 0x27, 0x29, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6e, 0x65, 0x73,
+ 0x63, 0x61, 0x70, 0x65, 0x3a, 0x20, 0x6e, 0x65, 0x77, 0x20, 0x52, 0x65,
+ 0x67, 0x45, 0x78, 0x70, 0x28, 0x27, 0x28, 0x27, 0x20, 0x2b, 0x20, 0x5f,
+ 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x28, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
+ 0x4d, 0x61, 0x70, 0x2e, 0x75, 0x6e, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65,
+ 0x29, 0x2e, 0x6a, 0x6f, 0x69, 0x6e, 0x28, 0x27, 0x7c, 0x27, 0x29, 0x20,
+ 0x2b, 0x20, 0x27, 0x29, 0x27, 0x2c, 0x20, 0x27, 0x67, 0x27, 0x29, 0x0a,
+ 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x46,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x66, 0x6f, 0x72,
+ 0x20, 0x65, 0x73, 0x63, 0x61, 0x70, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x6e,
+ 0x64, 0x20, 0x75, 0x6e, 0x65, 0x73, 0x63, 0x61, 0x70, 0x69, 0x6e, 0x67,
+ 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x20, 0x74, 0x6f, 0x2f,
+ 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x48, 0x54, 0x4d, 0x4c, 0x20, 0x69, 0x6e,
+ 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
+ 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x65, 0x61, 0x63, 0x68, 0x28, 0x5b, 0x27,
+ 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x27, 0x2c, 0x20, 0x27, 0x75, 0x6e,
+ 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x27, 0x5d, 0x2c, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6d, 0x65, 0x74, 0x68, 0x6f,
+ 0x64, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x5b, 0x6d,
+ 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5d, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,
+ 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66,
+ 0x20, 0x28, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x3d, 0x3d, 0x20,
+ 0x6e, 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
+ 0x20, 0x27, 0x27, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x28, 0x27, 0x27, 0x20, 0x2b, 0x20,
+ 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x29, 0x2e, 0x72, 0x65, 0x70, 0x6c,
+ 0x61, 0x63, 0x65, 0x28, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65,
+ 0x67, 0x65, 0x78, 0x65, 0x73, 0x5b, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64,
+ 0x5d, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x6d, 0x61, 0x74, 0x63, 0x68, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x61, 0x70, 0x5b, 0x6d, 0x65,
+ 0x74, 0x68, 0x6f, 0x64, 0x5d, 0x5b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5d,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x29, 0x3b,
+ 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x49, 0x66, 0x20, 0x74, 0x68,
+ 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74,
+ 0x68, 0x65, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x64, 0x20, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x6e,
+ 0x20, 0x69, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x20, 0x69, 0x74, 0x3b, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x77, 0x69,
+ 0x73, 0x65, 0x2c, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x69,
+ 0x74, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c,
+ 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x20, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x69, 0x66, 0x20, 0x28, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20,
+ 0x3d, 0x3d, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x29, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20,
+ 0x3d, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5b, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x2e, 0x69, 0x73, 0x46,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x29, 0x20, 0x3f, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x63,
+ 0x61, 0x6c, 0x6c, 0x28, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x29, 0x20,
+ 0x3a, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x7d,
+ 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41, 0x64, 0x64, 0x20,
+ 0x79, 0x6f, 0x75, 0x72, 0x20, 0x6f, 0x77, 0x6e, 0x20, 0x63, 0x75, 0x73,
+ 0x74, 0x6f, 0x6d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x73, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x55, 0x6e, 0x64,
+ 0x65, 0x72, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65,
+ 0x63, 0x74, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x6d, 0x69, 0x78, 0x69,
+ 0x6e, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x65, 0x61, 0x63, 0x68, 0x28, 0x5f, 0x2e, 0x66, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x73, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x2c, 0x20, 0x66,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6e, 0x61, 0x6d, 0x65,
+ 0x29, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72,
+ 0x20, 0x66, 0x75, 0x6e, 0x63, 0x20, 0x3d, 0x20, 0x5f, 0x5b, 0x6e, 0x61,
+ 0x6d, 0x65, 0x5d, 0x20, 0x3d, 0x20, 0x6f, 0x62, 0x6a, 0x5b, 0x6e, 0x61,
+ 0x6d, 0x65, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5f,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x5b, 0x6e,
+ 0x61, 0x6d, 0x65, 0x5d, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x61, 0x72, 0x67, 0x73,
+ 0x20, 0x3d, 0x20, 0x5b, 0x74, 0x68, 0x69, 0x73, 0x2e, 0x5f, 0x77, 0x72,
+ 0x61, 0x70, 0x70, 0x65, 0x64, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x70, 0x75, 0x73, 0x68, 0x2e, 0x61, 0x70, 0x70,
+ 0x6c, 0x79, 0x28, 0x61, 0x72, 0x67, 0x73, 0x2c, 0x20, 0x61, 0x72, 0x67,
+ 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
+ 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28,
+ 0x74, 0x68, 0x69, 0x73, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x2e, 0x61,
+ 0x70, 0x70, 0x6c, 0x79, 0x28, 0x5f, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x73,
+ 0x29, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d,
+ 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x47, 0x65, 0x6e, 0x65,
+ 0x72, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x75, 0x6e, 0x69, 0x71, 0x75,
+ 0x65, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x20, 0x69, 0x64,
+ 0x20, 0x28, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x20, 0x77, 0x69, 0x74,
+ 0x68, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x6e, 0x74, 0x69,
+ 0x72, 0x65, 0x20, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x73, 0x65,
+ 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x29, 0x2e, 0x0a, 0x20, 0x20, 0x2f, 0x2f,
+ 0x20, 0x55, 0x73, 0x65, 0x66, 0x75, 0x6c, 0x20, 0x66, 0x6f, 0x72, 0x20,
+ 0x74, 0x65, 0x6d, 0x70, 0x6f, 0x72, 0x61, 0x72, 0x79, 0x20, 0x44, 0x4f,
+ 0x4d, 0x20, 0x69, 0x64, 0x73, 0x2e, 0x0a, 0x20, 0x20, 0x76, 0x61, 0x72,
+ 0x20, 0x69, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x20, 0x3d,
+ 0x20, 0x30, 0x3b, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x75, 0x6e, 0x69, 0x71,
+ 0x75, 0x65, 0x49, 0x64, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x28, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x29, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x69, 0x64,
+ 0x20, 0x3d, 0x20, 0x2b, 0x2b, 0x69, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74,
+ 0x65, 0x72, 0x20, 0x2b, 0x20, 0x27, 0x27, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x70, 0x72, 0x65, 0x66,
+ 0x69, 0x78, 0x20, 0x3f, 0x20, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x20,
+ 0x2b, 0x20, 0x69, 0x64, 0x20, 0x3a, 0x20, 0x69, 0x64, 0x3b, 0x0a, 0x20,
+ 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x42, 0x79,
+ 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2c, 0x20, 0x55, 0x6e,
+ 0x64, 0x65, 0x72, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x20, 0x75, 0x73, 0x65,
+ 0x73, 0x20, 0x45, 0x52, 0x42, 0x2d, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x20,
+ 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x20, 0x64, 0x65, 0x6c,
+ 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x73, 0x2c, 0x20, 0x63, 0x68, 0x61,
+ 0x6e, 0x67, 0x65, 0x20, 0x74, 0x68, 0x65, 0x0a, 0x20, 0x20, 0x2f, 0x2f,
+ 0x20, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x69, 0x6e, 0x67, 0x20, 0x74,
+ 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x20, 0x73, 0x65, 0x74, 0x74,
+ 0x69, 0x6e, 0x67, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x75, 0x73, 0x65, 0x20,
+ 0x61, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20,
+ 0x64, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x0a,
+ 0x20, 0x20, 0x5f, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
+ 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x20, 0x3d, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74,
+ 0x65, 0x20, 0x20, 0x20, 0x20, 0x3a, 0x20, 0x2f, 0x3c, 0x25, 0x28, 0x5b,
+ 0x5c, 0x73, 0x5c, 0x53, 0x5d, 0x2b, 0x3f, 0x29, 0x25, 0x3e, 0x2f, 0x67,
+ 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70,
+ 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x20, 0x3a, 0x20, 0x2f, 0x3c, 0x25, 0x3d,
+ 0x28, 0x5b, 0x5c, 0x73, 0x5c, 0x53, 0x5d, 0x2b, 0x3f, 0x29, 0x25, 0x3e,
+ 0x2f, 0x67, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x73, 0x63, 0x61,
+ 0x70, 0x65, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3a, 0x20, 0x2f, 0x3c,
+ 0x25, 0x2d, 0x28, 0x5b, 0x5c, 0x73, 0x5c, 0x53, 0x5d, 0x2b, 0x3f, 0x29,
+ 0x25, 0x3e, 0x2f, 0x67, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x57, 0x68, 0x65, 0x6e, 0x20, 0x63, 0x75, 0x73,
+ 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x20, 0x60, 0x74, 0x65,
+ 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
+ 0x67, 0x73, 0x60, 0x2c, 0x20, 0x69, 0x66, 0x20, 0x79, 0x6f, 0x75, 0x20,
+ 0x64, 0x6f, 0x6e, 0x27, 0x74, 0x20, 0x77, 0x61, 0x6e, 0x74, 0x20, 0x74,
+ 0x6f, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x61, 0x6e, 0x0a,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f,
+ 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x20, 0x65, 0x76, 0x61, 0x6c,
+ 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x72, 0x20, 0x65, 0x73,
+ 0x63, 0x61, 0x70, 0x69, 0x6e, 0x67, 0x20, 0x72, 0x65, 0x67, 0x65, 0x78,
+ 0x2c, 0x20, 0x77, 0x65, 0x20, 0x6e, 0x65, 0x65, 0x64, 0x20, 0x6f, 0x6e,
+ 0x65, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x69, 0x73, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x67, 0x75, 0x61, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65,
+ 0x64, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x6d, 0x61, 0x74,
+ 0x63, 0x68, 0x2e, 0x0a, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x6e, 0x6f,
+ 0x4d, 0x61, 0x74, 0x63, 0x68, 0x20, 0x3d, 0x20, 0x2f, 0x28, 0x2e, 0x29,
+ 0x5e, 0x2f, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x43, 0x65,
+ 0x72, 0x74, 0x61, 0x69, 0x6e, 0x20, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63,
+ 0x74, 0x65, 0x72, 0x73, 0x20, 0x6e, 0x65, 0x65, 0x64, 0x20, 0x74, 0x6f,
+ 0x20, 0x62, 0x65, 0x20, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x64, 0x20,
+ 0x73, 0x6f, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x74, 0x68, 0x65, 0x79,
+ 0x20, 0x63, 0x61, 0x6e, 0x20, 0x62, 0x65, 0x20, 0x70, 0x75, 0x74, 0x20,
+ 0x69, 0x6e, 0x74, 0x6f, 0x20, 0x61, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x6c, 0x69, 0x74, 0x65, 0x72,
+ 0x61, 0x6c, 0x2e, 0x0a, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x65, 0x73,
+ 0x63, 0x61, 0x70, 0x65, 0x73, 0x20, 0x3d, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x22, 0x27, 0x22, 0x3a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x22, 0x27, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x27, 0x5c, 0x5c,
+ 0x27, 0x3a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x27, 0x5c, 0x5c, 0x27, 0x2c,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x27, 0x5c, 0x72, 0x27, 0x3a, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x27, 0x72, 0x27, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x27, 0x5c, 0x6e, 0x27, 0x3a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x27, 0x6e,
+ 0x27, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x27, 0x5c, 0x74, 0x27, 0x3a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x27, 0x74, 0x27, 0x2c, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x27, 0x5c, 0x75, 0x32, 0x30, 0x32, 0x38, 0x27, 0x3a, 0x20,
+ 0x27, 0x75, 0x32, 0x30, 0x32, 0x38, 0x27, 0x2c, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x27, 0x5c, 0x75, 0x32, 0x30, 0x32, 0x39, 0x27, 0x3a, 0x20, 0x27,
+ 0x75, 0x32, 0x30, 0x32, 0x39, 0x27, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a,
+ 0x0a, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x65, 0x73, 0x63, 0x61, 0x70,
+ 0x65, 0x72, 0x20, 0x3d, 0x20, 0x2f, 0x5c, 0x5c, 0x7c, 0x27, 0x7c, 0x5c,
+ 0x72, 0x7c, 0x5c, 0x6e, 0x7c, 0x5c, 0x74, 0x7c, 0x5c, 0x75, 0x32, 0x30,
+ 0x32, 0x38, 0x7c, 0x5c, 0x75, 0x32, 0x30, 0x32, 0x39, 0x2f, 0x67, 0x3b,
+ 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x4a, 0x61, 0x76, 0x61, 0x53,
+ 0x63, 0x72, 0x69, 0x70, 0x74, 0x20, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2d,
+ 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x2c, 0x20,
+ 0x73, 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x4a,
+ 0x6f, 0x68, 0x6e, 0x20, 0x52, 0x65, 0x73, 0x69, 0x67, 0x27, 0x73, 0x20,
+ 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x2e, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x55, 0x6e, 0x64,
+ 0x65, 0x72, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x20, 0x74, 0x65, 0x6d, 0x70,
+ 0x6c, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x68, 0x61, 0x6e, 0x64, 0x6c,
+ 0x65, 0x73, 0x20, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79,
+ 0x20, 0x64, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x73, 0x2c,
+ 0x20, 0x70, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x73, 0x20, 0x77,
+ 0x68, 0x69, 0x74, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2c, 0x0a, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x63, 0x6f, 0x72, 0x72,
+ 0x65, 0x63, 0x74, 0x6c, 0x79, 0x20, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65,
+ 0x73, 0x20, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x73, 0x20, 0x77, 0x69, 0x74,
+ 0x68, 0x69, 0x6e, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c,
+ 0x61, 0x74, 0x65, 0x64, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x0a, 0x20,
+ 0x20, 0x5f, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x20,
+ 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x74,
+ 0x65, 0x78, 0x74, 0x2c, 0x20, 0x64, 0x61, 0x74, 0x61, 0x2c, 0x20, 0x73,
+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x29, 0x20, 0x7b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x6e, 0x64, 0x65,
+ 0x72, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x74, 0x74, 0x69,
+ 0x6e, 0x67, 0x73, 0x20, 0x3d, 0x20, 0x5f, 0x2e, 0x64, 0x65, 0x66, 0x61,
+ 0x75, 0x6c, 0x74, 0x73, 0x28, 0x7b, 0x7d, 0x2c, 0x20, 0x73, 0x65, 0x74,
+ 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2c, 0x20, 0x5f, 0x2e, 0x74, 0x65, 0x6d,
+ 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
+ 0x73, 0x29, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x43, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x65, 0x20, 0x64, 0x65, 0x6c, 0x69,
+ 0x6d, 0x69, 0x74, 0x65, 0x72, 0x73, 0x20, 0x69, 0x6e, 0x74, 0x6f, 0x20,
+ 0x6f, 0x6e, 0x65, 0x20, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x20,
+ 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x76,
+ 0x69, 0x61, 0x20, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20,
+ 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x65,
+ 0x77, 0x20, 0x52, 0x65, 0x67, 0x45, 0x78, 0x70, 0x28, 0x5b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x28, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
+ 0x67, 0x73, 0x2e, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x20, 0x7c, 0x7c,
+ 0x20, 0x6e, 0x6f, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x29, 0x2e, 0x73, 0x6f,
+ 0x75, 0x72, 0x63, 0x65, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x28, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x69, 0x6e,
+ 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x20, 0x7c, 0x7c,
+ 0x20, 0x6e, 0x6f, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x29, 0x2e, 0x73, 0x6f,
+ 0x75, 0x72, 0x63, 0x65, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x28, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x65, 0x76,
+ 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x20, 0x7c, 0x7c, 0x20, 0x6e, 0x6f,
+ 0x4d, 0x61, 0x74, 0x63, 0x68, 0x29, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63,
+ 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5d, 0x2e, 0x6a, 0x6f, 0x69, 0x6e,
+ 0x28, 0x27, 0x7c, 0x27, 0x29, 0x20, 0x2b, 0x20, 0x27, 0x7c, 0x24, 0x27,
+ 0x2c, 0x20, 0x27, 0x67, 0x27, 0x29, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x2f, 0x2f, 0x20, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x20,
+ 0x74, 0x68, 0x65, 0x20, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
+ 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2c, 0x20, 0x65, 0x73, 0x63,
+ 0x61, 0x70, 0x69, 0x6e, 0x67, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,
+ 0x20, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x20, 0x61, 0x70,
+ 0x70, 0x72, 0x6f, 0x70, 0x72, 0x69, 0x61, 0x74, 0x65, 0x6c, 0x79, 0x2e,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x69, 0x6e, 0x64,
+ 0x65, 0x78, 0x20, 0x3d, 0x20, 0x30, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x76, 0x61, 0x72, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x3d,
+ 0x20, 0x22, 0x5f, 0x5f, 0x70, 0x2b, 0x3d, 0x27, 0x22, 0x3b, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x72, 0x65, 0x70, 0x6c,
+ 0x61, 0x63, 0x65, 0x28, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2c,
+ 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6d, 0x61,
+ 0x74, 0x63, 0x68, 0x2c, 0x20, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x2c,
+ 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65,
+ 0x2c, 0x20, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x2c, 0x20,
+ 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x2b,
+ 0x3d, 0x20, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x73, 0x6c, 0x69, 0x63, 0x65,
+ 0x28, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2c, 0x20, 0x6f, 0x66, 0x66, 0x73,
+ 0x65, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x2e, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x28, 0x65, 0x73, 0x63,
+ 0x61, 0x70, 0x65, 0x72, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x28, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x29, 0x20, 0x7b, 0x20,
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x27, 0x5c, 0x5c, 0x27, 0x20,
+ 0x2b, 0x20, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x73, 0x5b, 0x6d, 0x61,
+ 0x74, 0x63, 0x68, 0x5d, 0x3b, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x0a, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x65, 0x73, 0x63,
+ 0x61, 0x70, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x2b, 0x3d,
+ 0x20, 0x22, 0x27, 0x2b, 0x5c, 0x6e, 0x28, 0x28, 0x5f, 0x5f, 0x74, 0x3d,
+ 0x28, 0x22, 0x20, 0x2b, 0x20, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x20,
+ 0x2b, 0x20, 0x22, 0x29, 0x29, 0x3d, 0x3d, 0x6e, 0x75, 0x6c, 0x6c, 0x3f,
+ 0x27, 0x27, 0x3a, 0x5f, 0x2e, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x28,
+ 0x5f, 0x5f, 0x74, 0x29, 0x29, 0x2b, 0x5c, 0x6e, 0x27, 0x22, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70,
+ 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20,
+ 0x2b, 0x3d, 0x20, 0x22, 0x27, 0x2b, 0x5c, 0x6e, 0x28, 0x28, 0x5f, 0x5f,
+ 0x74, 0x3d, 0x28, 0x22, 0x20, 0x2b, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72,
+ 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x20, 0x2b, 0x20, 0x22, 0x29, 0x29,
+ 0x3d, 0x3d, 0x6e, 0x75, 0x6c, 0x6c, 0x3f, 0x27, 0x27, 0x3a, 0x5f, 0x5f,
+ 0x74, 0x29, 0x2b, 0x5c, 0x6e, 0x27, 0x22, 0x3b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69,
+ 0x66, 0x20, 0x28, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x29,
+ 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73,
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x2b, 0x3d, 0x20, 0x22, 0x27, 0x3b,
+ 0x5c, 0x6e, 0x22, 0x20, 0x2b, 0x20, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61,
+ 0x74, 0x65, 0x20, 0x2b, 0x20, 0x22, 0x5c, 0x6e, 0x5f, 0x5f, 0x70, 0x2b,
+ 0x3d, 0x27, 0x22, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78,
+ 0x20, 0x3d, 0x20, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x20, 0x2b, 0x20,
+ 0x6d, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68,
+ 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75,
+ 0x72, 0x6e, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f,
+ 0x75, 0x72, 0x63, 0x65, 0x20, 0x2b, 0x3d, 0x20, 0x22, 0x27, 0x3b, 0x5c,
+ 0x6e, 0x22, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f, 0x20,
+ 0x49, 0x66, 0x20, 0x61, 0x20, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c,
+ 0x65, 0x20, 0x69, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x73, 0x70, 0x65,
+ 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2c, 0x20, 0x70, 0x6c, 0x61, 0x63,
+ 0x65, 0x20, 0x64, 0x61, 0x74, 0x61, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65,
+ 0x73, 0x20, 0x69, 0x6e, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73,
+ 0x63, 0x6f, 0x70, 0x65, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66,
+ 0x20, 0x28, 0x21, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e,
+ 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x29, 0x20, 0x73, 0x6f,
+ 0x75, 0x72, 0x63, 0x65, 0x20, 0x3d, 0x20, 0x27, 0x77, 0x69, 0x74, 0x68,
+ 0x28, 0x6f, 0x62, 0x6a, 0x7c, 0x7c, 0x7b, 0x7d, 0x29, 0x7b, 0x5c, 0x6e,
+ 0x27, 0x20, 0x2b, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x2b,
+ 0x20, 0x27, 0x7d, 0x5c, 0x6e, 0x27, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x3d, 0x20, 0x22, 0x76,
+ 0x61, 0x72, 0x20, 0x5f, 0x5f, 0x74, 0x2c, 0x5f, 0x5f, 0x70, 0x3d, 0x27,
+ 0x27, 0x2c, 0x5f, 0x5f, 0x6a, 0x3d, 0x41, 0x72, 0x72, 0x61, 0x79, 0x2e,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6a, 0x6f,
+ 0x69, 0x6e, 0x2c, 0x22, 0x20, 0x2b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x22, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x3d, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x7b, 0x5f, 0x5f, 0x70, 0x2b, 0x3d,
+ 0x5f, 0x5f, 0x6a, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x61, 0x72, 0x67,
+ 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2c, 0x27, 0x27, 0x29, 0x3b, 0x7d,
+ 0x3b, 0x5c, 0x6e, 0x22, 0x20, 0x2b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x2b, 0x20, 0x22, 0x72,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x5f, 0x70, 0x3b, 0x5c, 0x6e,
+ 0x22, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x74, 0x72, 0x79, 0x20,
+ 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x6e, 0x64,
+ 0x65, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x65, 0x77, 0x20, 0x46, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
+ 0x67, 0x73, 0x2e, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x20,
+ 0x7c, 0x7c, 0x20, 0x27, 0x6f, 0x62, 0x6a, 0x27, 0x2c, 0x20, 0x27, 0x5f,
+ 0x27, 0x2c, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x29, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x7d, 0x20, 0x63, 0x61, 0x74, 0x63, 0x68, 0x20,
+ 0x28, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x65, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x3d, 0x20, 0x73,
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x74, 0x68, 0x72, 0x6f, 0x77, 0x20, 0x65, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x7d, 0x0a, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20,
+ 0x28, 0x64, 0x61, 0x74, 0x61, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
+ 0x6e, 0x20, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x28, 0x64, 0x61, 0x74,
+ 0x61, 0x2c, 0x20, 0x5f, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76,
+ 0x61, 0x72, 0x20, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x20,
+ 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x64,
+ 0x61, 0x74, 0x61, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x6e, 0x64,
+ 0x65, 0x72, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x74, 0x68, 0x69, 0x73,
+ 0x2c, 0x20, 0x64, 0x61, 0x74, 0x61, 0x2c, 0x20, 0x5f, 0x29, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x20, 0x74,
+ 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x6f, 0x75,
+ 0x72, 0x63, 0x65, 0x20, 0x61, 0x73, 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6e,
+ 0x76, 0x65, 0x6e, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x20, 0x66, 0x6f, 0x72,
+ 0x20, 0x70, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x74, 0x65, 0x6d,
+ 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
+ 0x20, 0x3d, 0x20, 0x27, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x27, 0x20, 0x2b, 0x20, 0x28, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
+ 0x67, 0x73, 0x2e, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x20,
+ 0x7c, 0x7c, 0x20, 0x27, 0x6f, 0x62, 0x6a, 0x27, 0x29, 0x20, 0x2b, 0x20,
+ 0x27, 0x29, 0x7b, 0x5c, 0x6e, 0x27, 0x20, 0x2b, 0x20, 0x73, 0x6f, 0x75,
+ 0x72, 0x63, 0x65, 0x20, 0x2b, 0x20, 0x27, 0x7d, 0x27, 0x3b, 0x0a, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74,
+ 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x7d,
+ 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41, 0x64, 0x64, 0x20,
+ 0x61, 0x20, 0x22, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x22, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63,
+ 0x68, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x64, 0x65, 0x6c, 0x65, 0x67,
+ 0x61, 0x74, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x77,
+ 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e,
+ 0x63, 0x68, 0x61, 0x69, 0x6e, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f,
+ 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x28,
+ 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x4f, 0x4f, 0x50, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x2d,
+ 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d,
+ 0x2d, 0x2d, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x49, 0x66, 0x20, 0x55,
+ 0x6e, 0x64, 0x65, 0x72, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x20, 0x69, 0x73,
+ 0x20, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x20, 0x61, 0x73, 0x20, 0x61,
+ 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x20, 0x69,
+ 0x74, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x61, 0x20,
+ 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x20, 0x6f, 0x62, 0x6a, 0x65,
+ 0x63, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x0a, 0x20, 0x20, 0x2f, 0x2f,
+ 0x20, 0x63, 0x61, 0x6e, 0x20, 0x62, 0x65, 0x20, 0x75, 0x73, 0x65, 0x64,
+ 0x20, 0x4f, 0x4f, 0x2d, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x2e, 0x20, 0x54,
+ 0x68, 0x69, 0x73, 0x20, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x20,
+ 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x20, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x65,
+ 0x64, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x6f,
+ 0x66, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x74, 0x68, 0x65, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x73, 0x63, 0x6f, 0x72,
+ 0x65, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
+ 0x20, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x20, 0x6f, 0x62, 0x6a,
+ 0x65, 0x63, 0x74, 0x73, 0x20, 0x6d, 0x61, 0x79, 0x20, 0x62, 0x65, 0x20,
+ 0x63, 0x68, 0x61, 0x69, 0x6e, 0x65, 0x64, 0x2e, 0x0a, 0x0a, 0x20, 0x20,
+ 0x2f, 0x2f, 0x20, 0x48, 0x65, 0x6c, 0x70, 0x65, 0x72, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x63, 0x6f,
+ 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x20, 0x63, 0x68, 0x61, 0x69, 0x6e,
+ 0x69, 0x6e, 0x67, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6d, 0x65, 0x64,
+ 0x69, 0x61, 0x74, 0x65, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73,
+ 0x2e, 0x0a, 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x72, 0x65, 0x73, 0x75,
+ 0x6c, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x28, 0x6f, 0x62, 0x6a, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20,
+ 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73,
+ 0x2e, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x20, 0x3f, 0x20, 0x5f, 0x28,
+ 0x6f, 0x62, 0x6a, 0x29, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x28, 0x29,
+ 0x20, 0x3a, 0x20, 0x6f, 0x62, 0x6a, 0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x3b,
+ 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41, 0x64, 0x64, 0x20, 0x61,
+ 0x6c, 0x6c, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x55, 0x6e,
+ 0x64, 0x65, 0x72, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x20, 0x66, 0x75, 0x6e,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68,
+ 0x65, 0x20, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x20, 0x6f, 0x62,
+ 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x6d, 0x69,
+ 0x78, 0x69, 0x6e, 0x28, 0x5f, 0x29, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f,
+ 0x2f, 0x20, 0x41, 0x64, 0x64, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x6d, 0x75,
+ 0x74, 0x61, 0x74, 0x6f, 0x72, 0x20, 0x41, 0x72, 0x72, 0x61, 0x79, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x74, 0x6f,
+ 0x20, 0x74, 0x68, 0x65, 0x20, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72,
+ 0x2e, 0x0a, 0x20, 0x20, 0x65, 0x61, 0x63, 0x68, 0x28, 0x5b, 0x27, 0x70,
+ 0x6f, 0x70, 0x27, 0x2c, 0x20, 0x27, 0x70, 0x75, 0x73, 0x68, 0x27, 0x2c,
+ 0x20, 0x27, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x27, 0x2c, 0x20,
+ 0x27, 0x73, 0x68, 0x69, 0x66, 0x74, 0x27, 0x2c, 0x20, 0x27, 0x73, 0x6f,
+ 0x72, 0x74, 0x27, 0x2c, 0x20, 0x27, 0x73, 0x70, 0x6c, 0x69, 0x63, 0x65,
+ 0x27, 0x2c, 0x20, 0x27, 0x75, 0x6e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x27,
+ 0x5d, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28,
+ 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x76, 0x61, 0x72, 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x20, 0x3d,
+ 0x20, 0x41, 0x72, 0x72, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5b,
+ 0x6e, 0x61, 0x6d, 0x65, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5f,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x5b, 0x6e,
+ 0x61, 0x6d, 0x65, 0x5d, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x76, 0x61, 0x72, 0x20, 0x6f, 0x62, 0x6a, 0x20, 0x3d, 0x20,
+ 0x74, 0x68, 0x69, 0x73, 0x2e, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65,
+ 0x64, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6d, 0x65, 0x74,
+ 0x68, 0x6f, 0x64, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x28, 0x6f, 0x62,
+ 0x6a, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73,
+ 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20,
+ 0x28, 0x28, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x27, 0x73,
+ 0x68, 0x69, 0x66, 0x74, 0x27, 0x20, 0x7c, 0x7c, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x27, 0x73, 0x70, 0x6c, 0x69, 0x63, 0x65,
+ 0x27, 0x29, 0x20, 0x26, 0x26, 0x20, 0x6f, 0x62, 0x6a, 0x2e, 0x6c, 0x65,
+ 0x6e, 0x67, 0x74, 0x68, 0x20, 0x3d, 0x3d, 0x3d, 0x20, 0x30, 0x29, 0x20,
+ 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x5b, 0x30,
+ 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x63,
+ 0x61, 0x6c, 0x6c, 0x28, 0x74, 0x68, 0x69, 0x73, 0x2c, 0x20, 0x6f, 0x62,
+ 0x6a, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b, 0x0a, 0x20,
+ 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x41,
+ 0x64, 0x64, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73,
+ 0x73, 0x6f, 0x72, 0x20, 0x41, 0x72, 0x72, 0x61, 0x79, 0x20, 0x66, 0x75,
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x74,
+ 0x68, 0x65, 0x20, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x0a,
+ 0x20, 0x20, 0x65, 0x61, 0x63, 0x68, 0x28, 0x5b, 0x27, 0x63, 0x6f, 0x6e,
+ 0x63, 0x61, 0x74, 0x27, 0x2c, 0x20, 0x27, 0x6a, 0x6f, 0x69, 0x6e, 0x27,
+ 0x2c, 0x20, 0x27, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x27, 0x5d, 0x2c, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6e, 0x61, 0x6d,
+ 0x65, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x76, 0x61, 0x72,
+ 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x20, 0x3d, 0x20, 0x41, 0x72,
+ 0x72, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5b, 0x6e, 0x61, 0x6d,
+ 0x65, 0x5d, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, 0x65, 0x5b, 0x6e, 0x61, 0x6d, 0x65,
+ 0x5d, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x28, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72,
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
+ 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x74, 0x68, 0x69, 0x73, 0x2c, 0x20,
+ 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x79,
+ 0x28, 0x74, 0x68, 0x69, 0x73, 0x2e, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70,
+ 0x65, 0x64, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x29, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x3b, 0x0a,
+ 0x20, 0x20, 0x7d, 0x29, 0x3b, 0x0a, 0x0a, 0x20, 0x20, 0x5f, 0x2e, 0x65,
+ 0x78, 0x74, 0x65, 0x6e, 0x64, 0x28, 0x5f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x74, 0x79, 0x70, 0x65, 0x2c, 0x20, 0x7b, 0x0a, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x2f, 0x2f, 0x20, 0x53, 0x74, 0x61, 0x72, 0x74, 0x20, 0x63,
+ 0x68, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, 0x77, 0x72,
+ 0x61, 0x70, 0x70, 0x65, 0x64, 0x20, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x73,
+ 0x63, 0x6f, 0x72, 0x65, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x20,
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x7b,
+ 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x74, 0x68, 0x69, 0x73, 0x2e,
+ 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x20, 0x3d, 0x20, 0x74, 0x72, 0x75,
+ 0x65, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
+ 0x75, 0x72, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, 0x3b, 0x0a, 0x20, 0x20,
+ 0x20, 0x20, 0x7d, 0x2c, 0x0a, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x2f,
+ 0x20, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x20, 0x74, 0x68,
+ 0x65, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x66, 0x72, 0x6f,
+ 0x6d, 0x20, 0x61, 0x20, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x20,
+ 0x61, 0x6e, 0x64, 0x20, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x65, 0x64, 0x20,
+ 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x68, 0x69,
+ 0x73, 0x2e, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x3b, 0x0a,
+ 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x0a, 0x20, 0x20, 0x7d, 0x29, 0x3b,
+ 0x0a, 0x0a, 0x7d, 0x29, 0x2e, 0x63, 0x61, 0x6c, 0x6c, 0x28, 0x74, 0x68,
+ 0x69, 0x73, 0x29, 0x3b, 0x0a,
+ }
+}
+// Underscore.js 1.4.4
+// http://underscorejs.org
+// (c) 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
+// Underscore may be freely distributed under the MIT license.
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/underscore/testify b/Godeps/_workspace/src/github.com/obscuren/otto/underscore/testify
new file mode 100644
index 000000000..7f6e0f7c1
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/underscore/testify
@@ -0,0 +1,84 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+
+my $underscore_test = shift @ARGV || "";
+if (!-d $underscore_test) {
+ print <<_END_;
+Usage:
+
+ testify ./underscore/test
+
+ # Should look something like:
+ arrays.js
+ chaining.js
+ collections.js
+ functions.js
+ index.html
+ objects.js
+ speed.js
+ utility.js
+ vendor
+
+_END_
+ if ($underscore_test) {
+ die "!: Not a directory: $underscore_test\n"
+ }
+ exit;
+}
+
+chdir $underscore_test or die "!: $!";
+
+my @js = <*.js>;
+
+for my $file (@js) {
+ open my $fh, '<', $file or die "!: $!";
+ my $tests = join "", <$fh>;
+ my @tests = $tests =~ m/
+ ^(\s{2}test\(.*?
+ ^\s{2}}\);)$
+ /mgxs;
+ close $fh;
+ next unless @tests;
+ print "$file: ", scalar(@tests), "\n";
+ my $underscore_name = "underscore_$file";
+ $underscore_name =~ s/.js$//;
+ my $go_file = "${underscore_name}_test.go";
+ $go_file =~ s/.js$/.go/;
+ open $fh, '>', $go_file or die "!: $!";
+
+ $fh->print(<<_END_);
+package otto
+
+import (
+ "testing"
+)
+
+_END_
+
+ my $count = 0;
+ for my $test (@tests) {
+ $test =~ s/`([^`]+)`/<$1>/g;
+ my ($name) = $test =~ m/^\s*test\(['"]([^'"]+)['"]/;
+ $fh->print(<<_END_);
+// $name
+func Test_${underscore_name}_$count(t *testing.T) {
+ tt(t, func(){
+ test := underscoreTest()
+
+ test(`
+$test
+ `)
+ })
+}
+
+_END_
+ $count++;
+ }
+}
+
+# test('#779 - delimeters are applied to unescaped text.', 1, function() {
+# var template = _.template('<<\nx\n>>', null, {evaluate: /<<(.*?)>>/g});
+# strictEqual(template(), '<<\nx\n>>');
+# });
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/underscore/underscore.go b/Godeps/_workspace/src/github.com/obscuren/otto/underscore/underscore.go
new file mode 100644
index 000000000..714b8f3cf
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/underscore/underscore.go
@@ -0,0 +1,49 @@
+/*
+Package underscore contains the source for the JavaScript utility-belt library.
+
+ import (
+ _ "github.com/robertkrimen/otto/underscore"
+ )
+ // Every Otto runtime will now include underscore
+
+http://underscorejs.org
+
+https://github.com/documentcloud/underscore
+
+By importing this package, you'll automatically load underscore every time you create a new Otto runtime.
+
+To prevent this behavior, you can do the following:
+
+ import (
+ "github.com/robertkrimen/otto/underscore"
+ )
+
+ func init() {
+ underscore.Disable()
+ }
+
+*/
+package underscore
+
+import (
+ "github.com/robertkrimen/otto/registry"
+)
+
+var entry *registry.Entry = registry.Register(func() string {
+ return Source()
+})
+
+// Enable underscore runtime inclusion.
+func Enable() {
+ entry.Enable()
+}
+
+// Disable underscore runtime inclusion.
+func Disable() {
+ entry.Disable()
+}
+
+// Source returns the underscore source.
+func Source() string {
+ return string(underscore())
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/underscore_arrays_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/underscore_arrays_test.go
new file mode 100644
index 000000000..9d6297820
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/underscore_arrays_test.go
@@ -0,0 +1,344 @@
+package otto
+
+import (
+ "testing"
+)
+
+// first
+func Test_underscore_arrays_0(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("first", function() {
+ equal(_.first([1,2,3]), 1, 'can pull out the first element of an array');
+ equal(_([1, 2, 3]).first(), 1, 'can perform OO-style "first()"');
+ equal(_.first([1,2,3], 0).join(', '), "", 'can pass an index to first');
+ equal(_.first([1,2,3], 2).join(', '), '1, 2', 'can pass an index to first');
+ equal(_.first([1,2,3], 5).join(', '), '1, 2, 3', 'can pass an index to first');
+ var result = (function(){ return _.first(arguments); })(4, 3, 2, 1);
+ equal(result, 4, 'works on an arguments object.');
+ result = _.map([[1,2,3],[1,2,3]], _.first);
+ equal(result.join(','), '1,1', 'works well with _.map');
+ result = (function() { return _.take([1,2,3], 2); })();
+ equal(result.join(','), '1,2', 'aliased as take');
+
+ equal(_.first(null), undefined, 'handles nulls');
+ });
+ `)
+ })
+}
+
+// rest
+func Test_underscore_arrays_1(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("rest", function() {
+ var numbers = [1, 2, 3, 4];
+ equal(_.rest(numbers).join(", "), "2, 3, 4", 'working rest()');
+ equal(_.rest(numbers, 0).join(", "), "1, 2, 3, 4", 'working rest(0)');
+ equal(_.rest(numbers, 2).join(', '), '3, 4', 'rest can take an index');
+ var result = (function(){ return _(arguments).tail(); })(1, 2, 3, 4);
+ equal(result.join(', '), '2, 3, 4', 'aliased as tail and works on arguments object');
+ result = _.map([[1,2,3],[1,2,3]], _.rest);
+ equal(_.flatten(result).join(','), '2,3,2,3', 'works well with _.map');
+ result = (function(){ return _(arguments).drop(); })(1, 2, 3, 4);
+ equal(result.join(', '), '2, 3, 4', 'aliased as drop and works on arguments object');
+ });
+ `)
+ })
+}
+
+// initial
+func Test_underscore_arrays_2(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("initial", function() {
+ equal(_.initial([1,2,3,4,5]).join(", "), "1, 2, 3, 4", 'working initial()');
+ equal(_.initial([1,2,3,4],2).join(", "), "1, 2", 'initial can take an index');
+ var result = (function(){ return _(arguments).initial(); })(1, 2, 3, 4);
+ equal(result.join(", "), "1, 2, 3", 'initial works on arguments object');
+ result = _.map([[1,2,3],[1,2,3]], _.initial);
+ equal(_.flatten(result).join(','), '1,2,1,2', 'initial works with _.map');
+ });
+ `)
+ })
+}
+
+// last
+func Test_underscore_arrays_3(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("last", function() {
+ equal(_.last([1,2,3]), 3, 'can pull out the last element of an array');
+ equal(_.last([1,2,3], 0).join(', '), "", 'can pass an index to last');
+ equal(_.last([1,2,3], 2).join(', '), '2, 3', 'can pass an index to last');
+ equal(_.last([1,2,3], 5).join(', '), '1, 2, 3', 'can pass an index to last');
+ var result = (function(){ return _(arguments).last(); })(1, 2, 3, 4);
+ equal(result, 4, 'works on an arguments object');
+ result = _.map([[1,2,3],[1,2,3]], _.last);
+ equal(result.join(','), '3,3', 'works well with _.map');
+
+ equal(_.last(null), undefined, 'handles nulls');
+ });
+ `)
+ })
+}
+
+// compact
+func Test_underscore_arrays_4(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("compact", function() {
+ equal(_.compact([0, 1, false, 2, false, 3]).length, 3, 'can trim out all falsy values');
+ var result = (function(){ return _.compact(arguments).length; })(0, 1, false, 2, false, 3);
+ equal(result, 3, 'works on an arguments object');
+ });
+ `)
+ })
+}
+
+// flatten
+func Test_underscore_arrays_5(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("flatten", function() {
+ var list = [1, [2], [3, [[[4]]]]];
+ deepEqual(_.flatten(list), [1,2,3,4], 'can flatten nested arrays');
+ deepEqual(_.flatten(list, true), [1,2,3,[[[4]]]], 'can shallowly flatten nested arrays');
+ var result = (function(){ return _.flatten(arguments); })(1, [2], [3, [[[4]]]]);
+ deepEqual(result, [1,2,3,4], 'works on an arguments object');
+ });
+ `)
+ })
+}
+
+// without
+func Test_underscore_arrays_6(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("without", function() {
+ var list = [1, 2, 1, 0, 3, 1, 4];
+ equal(_.without(list, 0, 1).join(', '), '2, 3, 4', 'can remove all instances of an object');
+ var result = (function(){ return _.without(arguments, 0, 1); })(1, 2, 1, 0, 3, 1, 4);
+ equal(result.join(', '), '2, 3, 4', 'works on an arguments object');
+
+ var list = [{one : 1}, {two : 2}];
+ ok(_.without(list, {one : 1}).length == 2, 'uses real object identity for comparisons.');
+ ok(_.without(list, list[0]).length == 1, 'ditto.');
+ });
+ `)
+ })
+}
+
+// uniq
+func Test_underscore_arrays_7(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("uniq", function() {
+ var list = [1, 2, 1, 3, 1, 4];
+ equal(_.uniq(list).join(', '), '1, 2, 3, 4', 'can find the unique values of an unsorted array');
+
+ var list = [1, 1, 1, 2, 2, 3];
+ equal(_.uniq(list, true).join(', '), '1, 2, 3', 'can find the unique values of a sorted array faster');
+
+ var list = [{name:'moe'}, {name:'curly'}, {name:'larry'}, {name:'curly'}];
+ var iterator = function(value) { return value.name; };
+ equal(_.map(_.uniq(list, false, iterator), iterator).join(', '), 'moe, curly, larry', 'can find the unique values of an array using a custom iterator');
+
+ equal(_.map(_.uniq(list, iterator), iterator).join(', '), 'moe, curly, larry', 'can find the unique values of an array using a custom iterator without specifying whether array is sorted');
+
+ var iterator = function(value) { return value +1; };
+ var list = [1, 2, 2, 3, 4, 4];
+ equal(_.uniq(list, true, iterator).join(', '), '1, 2, 3, 4', 'iterator works with sorted array');
+
+ var result = (function(){ return _.uniq(arguments); })(1, 2, 1, 3, 1, 4);
+ equal(result.join(', '), '1, 2, 3, 4', 'works on an arguments object');
+ });
+ `)
+ })
+}
+
+// intersection
+func Test_underscore_arrays_8(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("intersection", function() {
+ var stooges = ['moe', 'curly', 'larry'], leaders = ['moe', 'groucho'];
+ equal(_.intersection(stooges, leaders).join(''), 'moe', 'can take the set intersection of two arrays');
+ equal(_(stooges).intersection(leaders).join(''), 'moe', 'can perform an OO-style intersection');
+ var result = (function(){ return _.intersection(arguments, leaders); })('moe', 'curly', 'larry');
+ equal(result.join(''), 'moe', 'works on an arguments object');
+ });
+ `)
+ })
+}
+
+// union
+func Test_underscore_arrays_9(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("union", function() {
+ var result = _.union([1, 2, 3], [2, 30, 1], [1, 40]);
+ equal(result.join(' '), '1 2 3 30 40', 'takes the union of a list of arrays');
+
+ var result = _.union([1, 2, 3], [2, 30, 1], [1, 40, [1]]);
+ equal(result.join(' '), '1 2 3 30 40 1', 'takes the union of a list of nested arrays');
+ });
+ `)
+ })
+}
+
+// difference
+func Test_underscore_arrays_10(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("difference", function() {
+ var result = _.difference([1, 2, 3], [2, 30, 40]);
+ equal(result.join(' '), '1 3', 'takes the difference of two arrays');
+
+ var result = _.difference([1, 2, 3, 4], [2, 30, 40], [1, 11, 111]);
+ equal(result.join(' '), '3 4', 'takes the difference of three arrays');
+ });
+ `)
+ })
+}
+
+// zip
+func Test_underscore_arrays_11(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('zip', function() {
+ var names = ['moe', 'larry', 'curly'], ages = [30, 40, 50], leaders = [true];
+ var stooges = _.zip(names, ages, leaders);
+ equal(String(stooges), 'moe,30,true,larry,40,,curly,50,', 'zipped together arrays of different lengths');
+ });
+ `)
+ })
+}
+
+// object
+func Test_underscore_arrays_12(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('object', function() {
+ var result = _.object(['moe', 'larry', 'curly'], [30, 40, 50]);
+ var shouldBe = {moe: 30, larry: 40, curly: 50};
+ ok(_.isEqual(result, shouldBe), 'two arrays zipped together into an object');
+
+ result = _.object([['one', 1], ['two', 2], ['three', 3]]);
+ shouldBe = {one: 1, two: 2, three: 3};
+ ok(_.isEqual(result, shouldBe), 'an array of pairs zipped together into an object');
+
+ var stooges = {moe: 30, larry: 40, curly: 50};
+ ok(_.isEqual(_.object(_.pairs(stooges)), stooges), 'an object converted to pairs and back to an object');
+
+ ok(_.isEqual(_.object(null), {}), 'handles nulls');
+ });
+ `)
+ })
+}
+
+// indexOf
+func Test_underscore_arrays_13(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("indexOf", function() {
+ var numbers = [1, 2, 3];
+ numbers.indexOf = null;
+ equal(_.indexOf(numbers, 2), 1, 'can compute indexOf, even without the native function');
+ var result = (function(){ return _.indexOf(arguments, 2); })(1, 2, 3);
+ equal(result, 1, 'works on an arguments object');
+ equal(_.indexOf(null, 2), -1, 'handles nulls properly');
+
+ var numbers = [10, 20, 30, 40, 50], num = 35;
+ var index = _.indexOf(numbers, num, true);
+ equal(index, -1, '35 is not in the list');
+
+ numbers = [10, 20, 30, 40, 50]; num = 40;
+ index = _.indexOf(numbers, num, true);
+ equal(index, 3, '40 is in the list');
+
+ numbers = [1, 40, 40, 40, 40, 40, 40, 40, 50, 60, 70]; num = 40;
+ index = _.indexOf(numbers, num, true);
+ equal(index, 1, '40 is in the list');
+
+ numbers = [1, 2, 3, 1, 2, 3, 1, 2, 3];
+ index = _.indexOf(numbers, 2, 5);
+ equal(index, 7, 'supports the fromIndex argument');
+ });
+ `)
+ })
+}
+
+// lastIndexOf
+func Test_underscore_arrays_14(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("lastIndexOf", function() {
+ var numbers = [1, 0, 1];
+ equal(_.lastIndexOf(numbers, 1), 2);
+
+ numbers = [1, 0, 1, 0, 0, 1, 0, 0, 0];
+ numbers.lastIndexOf = null;
+ equal(_.lastIndexOf(numbers, 1), 5, 'can compute lastIndexOf, even without the native function');
+ equal(_.lastIndexOf(numbers, 0), 8, 'lastIndexOf the other element');
+ var result = (function(){ return _.lastIndexOf(arguments, 1); })(1, 0, 1, 0, 0, 1, 0, 0, 0);
+ equal(result, 5, 'works on an arguments object');
+ equal(_.indexOf(null, 2), -1, 'handles nulls properly');
+
+ numbers = [1, 2, 3, 1, 2, 3, 1, 2, 3];
+ var index = _.lastIndexOf(numbers, 2, 2);
+ equal(index, 1, 'supports the fromIndex argument');
+ });
+ `)
+ })
+}
+
+// range
+func Test_underscore_arrays_15(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("range", function() {
+ equal(_.range(0).join(''), '', 'range with 0 as a first argument generates an empty array');
+ equal(_.range(4).join(' '), '0 1 2 3', 'range with a single positive argument generates an array of elements 0,1,2,...,n-1');
+ equal(_.range(5, 8).join(' '), '5 6 7', 'range with two arguments a &amp; b, a&lt;b generates an array of elements a,a+1,a+2,...,b-2,b-1');
+ equal(_.range(8, 5).join(''), '', 'range with two arguments a &amp; b, b&lt;a generates an empty array');
+ equal(_.range(3, 10, 3).join(' '), '3 6 9', 'range with three arguments a &amp; b &amp; c, c &lt; b-a, a &lt; b generates an array of elements a,a+c,a+2c,...,b - (multiplier of a) &lt; c');
+ equal(_.range(3, 10, 15).join(''), '3', 'range with three arguments a &amp; b &amp; c, c &gt; b-a, a &lt; b generates an array with a single element, equal to a');
+ equal(_.range(12, 7, -2).join(' '), '12 10 8', 'range with three arguments a &amp; b &amp; c, a &gt; b, c &lt; 0 generates an array of elements a,a-c,a-2c and ends with the number not less than b');
+ equal(_.range(0, -10, -1).join(' '), '0 -1 -2 -3 -4 -5 -6 -7 -8 -9', 'final example in the Python docs');
+ });
+ `)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/underscore_chaining_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/underscore_chaining_test.go
new file mode 100644
index 000000000..accf04fdc
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/underscore_chaining_test.go
@@ -0,0 +1,95 @@
+package otto
+
+import (
+ "testing"
+)
+
+// map/flatten/reduce
+func Test_underscore_chaining_0(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("map/flatten/reduce", function() {
+ var lyrics = [
+ "I'm a lumberjack and I'm okay",
+ "I sleep all night and I work all day",
+ "He's a lumberjack and he's okay",
+ "He sleeps all night and he works all day"
+ ];
+ var counts = _(lyrics).chain()
+ .map(function(line) { return line.split(''); })
+ .flatten()
+ .reduce(function(hash, l) {
+ hash[l] = hash[l] || 0;
+ hash[l]++;
+ return hash;
+ }, {}).value();
+ ok(counts['a'] == 16 && counts['e'] == 10, 'counted all the letters in the song');
+ });
+ `)
+ })
+}
+
+// select/reject/sortBy
+func Test_underscore_chaining_1(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("select/reject/sortBy", function() {
+ var numbers = [1,2,3,4,5,6,7,8,9,10];
+ numbers = _(numbers).chain().select(function(n) {
+ return n % 2 == 0;
+ }).reject(function(n) {
+ return n % 4 == 0;
+ }).sortBy(function(n) {
+ return -n;
+ }).value();
+ equal(numbers.join(', '), "10, 6, 2", "filtered and reversed the numbers");
+ });
+ `)
+ })
+}
+
+// select/reject/sortBy in functional style
+func Test_underscore_chaining_2(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("select/reject/sortBy in functional style", function() {
+ var numbers = [1,2,3,4,5,6,7,8,9,10];
+ numbers = _.chain(numbers).select(function(n) {
+ return n % 2 == 0;
+ }).reject(function(n) {
+ return n % 4 == 0;
+ }).sortBy(function(n) {
+ return -n;
+ }).value();
+ equal(numbers.join(', '), "10, 6, 2", "filtered and reversed the numbers");
+ });
+ `)
+ })
+}
+
+// reverse/concat/unshift/pop/map
+func Test_underscore_chaining_3(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("reverse/concat/unshift/pop/map", function() {
+ var numbers = [1,2,3,4,5];
+ numbers = _(numbers).chain()
+ .reverse()
+ .concat([5, 5, 5])
+ .unshift(17)
+ .pop()
+ .map(function(n){ return n * 2; })
+ .value();
+ equal(numbers.join(', '), "34, 10, 8, 6, 4, 2, 10, 10", 'can chain together array functions.');
+ });
+ `)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/underscore_collections_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/underscore_collections_test.go
new file mode 100644
index 000000000..9afc2a2b2
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/underscore_collections_test.go
@@ -0,0 +1,698 @@
+package otto
+
+import (
+ "testing"
+)
+
+// each
+func Test_underscore_collections_0(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("each", function() {
+ _.each([1, 2, 3], function(num, i) {
+ equal(num, i + 1, 'each iterators provide value and iteration count');
+ });
+
+ var answers = [];
+ _.each([1, 2, 3], function(num){ answers.push(num * this.multiplier);}, {multiplier : 5});
+ equal(answers.join(', '), '5, 10, 15', 'context object property accessed');
+
+ answers = [];
+ _.forEach([1, 2, 3], function(num){ answers.push(num); });
+ equal(answers.join(', '), '1, 2, 3', 'aliased as "forEach"');
+
+ answers = [];
+ var obj = {one : 1, two : 2, three : 3};
+ obj.constructor.prototype.four = 4;
+ _.each(obj, function(value, key){ answers.push(key); });
+ equal(answers.join(", "), 'one, two, three', 'iterating over objects works, and ignores the object prototype.');
+ delete obj.constructor.prototype.four;
+
+ var answer = null;
+ _.each([1, 2, 3], function(num, index, arr){ if (_.include(arr, num)) answer = true; });
+ ok(answer, 'can reference the original collection from inside the iterator');
+
+ answers = 0;
+ _.each(null, function(){ ++answers; });
+ equal(answers, 0, 'handles a null properly');
+ });
+ `)
+ })
+}
+
+// map
+func Test_underscore_collections_1(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('map', function() {
+ var doubled = _.map([1, 2, 3], function(num){ return num * 2; });
+ equal(doubled.join(', '), '2, 4, 6', 'doubled numbers');
+
+ doubled = _.collect([1, 2, 3], function(num){ return num * 2; });
+ equal(doubled.join(', '), '2, 4, 6', 'aliased as "collect"');
+
+ var tripled = _.map([1, 2, 3], function(num){ return num * this.multiplier; }, {multiplier : 3});
+ equal(tripled.join(', '), '3, 6, 9', 'tripled numbers with context');
+
+ var doubled = _([1, 2, 3]).map(function(num){ return num * 2; });
+ equal(doubled.join(', '), '2, 4, 6', 'OO-style doubled numbers');
+
+ // TEST: ReferenceError: document is not defined
+ return;
+
+ if (document.querySelectorAll) {
+ var ids = _.map(document.querySelectorAll('#map-test *'), function(n){ return n.id; });
+ deepEqual(ids, ['id1', 'id2'], 'Can use collection methods on NodeLists.');
+ }
+
+ var ids = _.map($('#map-test').children(), function(n){ return n.id; });
+ deepEqual(ids, ['id1', 'id2'], 'Can use collection methods on jQuery Array-likes.');
+
+ var ids = _.map(document.images, function(n){ return n.id; });
+ ok(ids[0] == 'chart_image', 'can use collection methods on HTMLCollections');
+
+ var ifnull = _.map(null, function(){});
+ ok(_.isArray(ifnull) && ifnull.length === 0, 'handles a null properly');
+ });
+ `)
+ })
+}
+
+// reduce
+func Test_underscore_collections_2(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('reduce', function() {
+ var sum = _.reduce([1, 2, 3], function(sum, num){ return sum + num; }, 0);
+ equal(sum, 6, 'can sum up an array');
+
+ var context = {multiplier : 3};
+ sum = _.reduce([1, 2, 3], function(sum, num){ return sum + num * this.multiplier; }, 0, context);
+ equal(sum, 18, 'can reduce with a context object');
+
+ sum = _.inject([1, 2, 3], function(sum, num){ return sum + num; }, 0);
+ equal(sum, 6, 'aliased as "inject"');
+
+ sum = _([1, 2, 3]).reduce(function(sum, num){ return sum + num; }, 0);
+ equal(sum, 6, 'OO-style reduce');
+
+ var sum = _.reduce([1, 2, 3], function(sum, num){ return sum + num; });
+ equal(sum, 6, 'default initial value');
+
+ var ifnull;
+ try {
+ _.reduce(null, function(){});
+ } catch (ex) {
+ ifnull = ex;
+ }
+ ok(ifnull instanceof TypeError, 'handles a null (without inital value) properly');
+
+ ok(_.reduce(null, function(){}, 138) === 138, 'handles a null (with initial value) properly');
+ equal(_.reduce([], function(){}, undefined), undefined, 'undefined can be passed as a special case');
+ raises(function() { _.reduce([], function(){}); }, TypeError, 'throws an error for empty arrays with no initial value');
+ });
+ `)
+ })
+}
+
+// reduceRight
+func Test_underscore_collections_3(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('reduceRight', function() {
+ var list = _.reduceRight(["foo", "bar", "baz"], function(memo, str){ return memo + str; }, '');
+ equal(list, 'bazbarfoo', 'can perform right folds');
+
+ var list = _.foldr(["foo", "bar", "baz"], function(memo, str){ return memo + str; }, '');
+ equal(list, 'bazbarfoo', 'aliased as "foldr"');
+
+ var list = _.foldr(["foo", "bar", "baz"], function(memo, str){ return memo + str; });
+ equal(list, 'bazbarfoo', 'default initial value');
+
+ var ifnull;
+ try {
+ _.reduceRight(null, function(){});
+ } catch (ex) {
+ ifnull = ex;
+ }
+ ok(ifnull instanceof TypeError, 'handles a null (without inital value) properly');
+
+ var sum = _.reduceRight({a: 1, b: 2, c: 3}, function(sum, num){ return sum + num; });
+ equal(sum, 6, 'default initial value on object');
+
+ ok(_.reduceRight(null, function(){}, 138) === 138, 'handles a null (with initial value) properly');
+
+ equal(_.reduceRight([], function(){}, undefined), undefined, 'undefined can be passed as a special case');
+ raises(function() { _.reduceRight([], function(){}); }, TypeError, 'throws an error for empty arrays with no initial value');
+
+ // Assert that the correct arguments are being passed.
+
+ var args,
+ memo = {},
+ object = {a: 1, b: 2},
+ lastKey = _.keys(object).pop();
+
+ var expected = lastKey == 'a'
+ ? [memo, 1, 'a', object]
+ : [memo, 2, 'b', object];
+
+ _.reduceRight(object, function() {
+ args || (args = _.toArray(arguments));
+ }, memo);
+
+ deepEqual(args, expected);
+
+ // And again, with numeric keys.
+
+ object = {'2': 'a', '1': 'b'};
+ lastKey = _.keys(object).pop();
+ args = null;
+
+ expected = lastKey == '2'
+ ? [memo, 'a', '2', object]
+ : [memo, 'b', '1', object];
+
+ _.reduceRight(object, function() {
+ args || (args = _.toArray(arguments));
+ }, memo);
+
+ deepEqual(args, expected);
+ });
+ `)
+ })
+}
+
+// find
+func Test_underscore_collections_4(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('find', function() {
+ var array = [1, 2, 3, 4];
+ strictEqual(_.find(array, function(n) { return n > 2; }), 3, 'should return first found <value>');
+ strictEqual(_.find(array, function() { return false; }), void 0, 'should return <undefined> if <value> is not found');
+ });
+ `)
+ })
+}
+
+// detect
+func Test_underscore_collections_5(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('detect', function() {
+ var result = _.detect([1, 2, 3], function(num){ return num * 2 == 4; });
+ equal(result, 2, 'found the first "2" and broke the loop');
+ });
+ `)
+ })
+}
+
+// select
+func Test_underscore_collections_6(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('select', function() {
+ var evens = _.select([1, 2, 3, 4, 5, 6], function(num){ return num % 2 == 0; });
+ equal(evens.join(', '), '2, 4, 6', 'selected each even number');
+
+ evens = _.filter([1, 2, 3, 4, 5, 6], function(num){ return num % 2 == 0; });
+ equal(evens.join(', '), '2, 4, 6', 'aliased as "filter"');
+ });
+ `)
+ })
+}
+
+// reject
+func Test_underscore_collections_7(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('reject', function() {
+ var odds = _.reject([1, 2, 3, 4, 5, 6], function(num){ return num % 2 == 0; });
+ equal(odds.join(', '), '1, 3, 5', 'rejected each even number');
+
+ var context = "obj";
+
+ var evens = _.reject([1, 2, 3, 4, 5, 6], function(num){
+ equal(context, "obj");
+ return num % 2 != 0;
+ }, context);
+ equal(evens.join(', '), '2, 4, 6', 'rejected each odd number');
+ });
+ `)
+ })
+}
+
+// all
+func Test_underscore_collections_8(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('all', function() {
+ ok(_.all([], _.identity), 'the empty set');
+ ok(_.all([true, true, true], _.identity), 'all true values');
+ ok(!_.all([true, false, true], _.identity), 'one false value');
+ ok(_.all([0, 10, 28], function(num){ return num % 2 == 0; }), 'even numbers');
+ ok(!_.all([0, 11, 28], function(num){ return num % 2 == 0; }), 'an odd number');
+ ok(_.all([1], _.identity) === true, 'cast to boolean - true');
+ ok(_.all([0], _.identity) === false, 'cast to boolean - false');
+ ok(_.every([true, true, true], _.identity), 'aliased as "every"');
+ ok(!_.all([undefined, undefined, undefined], _.identity), 'works with arrays of undefined');
+ });
+ `)
+ })
+}
+
+// any
+func Test_underscore_collections_9(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('any', function() {
+ var nativeSome = Array.prototype.some;
+ Array.prototype.some = null;
+ ok(!_.any([]), 'the empty set');
+ ok(!_.any([false, false, false]), 'all false values');
+ ok(_.any([false, false, true]), 'one true value');
+ ok(_.any([null, 0, 'yes', false]), 'a string');
+ ok(!_.any([null, 0, '', false]), 'falsy values');
+ ok(!_.any([1, 11, 29], function(num){ return num % 2 == 0; }), 'all odd numbers');
+ ok(_.any([1, 10, 29], function(num){ return num % 2 == 0; }), 'an even number');
+ ok(_.any([1], _.identity) === true, 'cast to boolean - true');
+ ok(_.any([0], _.identity) === false, 'cast to boolean - false');
+ ok(_.some([false, false, true]), 'aliased as "some"');
+ Array.prototype.some = nativeSome;
+ });
+ `)
+ })
+}
+
+// include
+func Test_underscore_collections_10(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('include', function() {
+ ok(_.include([1,2,3], 2), 'two is in the array');
+ ok(!_.include([1,3,9], 2), 'two is not in the array');
+ ok(_.contains({moe:1, larry:3, curly:9}, 3) === true, '_.include on objects checks their values');
+ ok(_([1,2,3]).include(2), 'OO-style include');
+ });
+ `)
+ })
+}
+
+// invoke
+func Test_underscore_collections_11(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('invoke', function() {
+ var list = [[5, 1, 7], [3, 2, 1]];
+ var result = _.invoke(list, 'sort');
+ equal(result[0].join(', '), '1, 5, 7', 'first array sorted');
+ equal(result[1].join(', '), '1, 2, 3', 'second array sorted');
+ });
+ `)
+ })
+}
+
+// invoke w/ function reference
+func Test_underscore_collections_12(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('invoke w/ function reference', function() {
+ var list = [[5, 1, 7], [3, 2, 1]];
+ var result = _.invoke(list, Array.prototype.sort);
+ equal(result[0].join(', '), '1, 5, 7', 'first array sorted');
+ equal(result[1].join(', '), '1, 2, 3', 'second array sorted');
+ });
+ `)
+ })
+}
+
+// invoke when strings have a call method
+func Test_underscore_collections_13(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('invoke when strings have a call method', function() {
+ String.prototype.call = function() {
+ return 42;
+ };
+ var list = [[5, 1, 7], [3, 2, 1]];
+ var s = "foo";
+ equal(s.call(), 42, "call function exists");
+ var result = _.invoke(list, 'sort');
+ equal(result[0].join(', '), '1, 5, 7', 'first array sorted');
+ equal(result[1].join(', '), '1, 2, 3', 'second array sorted');
+ delete String.prototype.call;
+ equal(s.call, undefined, "call function removed");
+ });
+ `)
+ })
+}
+
+// pluck
+func Test_underscore_collections_14(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('pluck', function() {
+ var people = [{name : 'moe', age : 30}, {name : 'curly', age : 50}];
+ equal(_.pluck(people, 'name').join(', '), 'moe, curly', 'pulls names out of objects');
+ });
+ `)
+ })
+}
+
+// where
+func Test_underscore_collections_15(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('where', function() {
+ var list = [{a: 1, b: 2}, {a: 2, b: 2}, {a: 1, b: 3}, {a: 1, b: 4}];
+ var result = _.where(list, {a: 1});
+ equal(result.length, 3);
+ equal(result[result.length - 1].b, 4);
+ result = _.where(list, {b: 2});
+ equal(result.length, 2);
+ equal(result[0].a, 1);
+ });
+ `)
+ })
+}
+
+// findWhere
+func Test_underscore_collections_16(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('findWhere', function() {
+ var list = [{a: 1, b: 2}, {a: 2, b: 2}, {a: 1, b: 3}, {a: 1, b: 4}, {a: 2, b: 4}];
+ var result = _.findWhere(list, {a: 1});
+ deepEqual(result, {a: 1, b: 2});
+ result = _.findWhere(list, {b: 4});
+ deepEqual(result, {a: 1, b: 4});
+ });
+ `)
+ })
+}
+
+// max
+func Test_underscore_collections_17(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('max', function() {
+ equal(3, _.max([1, 2, 3]), 'can perform a regular Math.max');
+
+ var neg = _.max([1, 2, 3], function(num){ return -num; });
+ equal(neg, 1, 'can perform a computation-based max');
+
+ equal(-Infinity, _.max({}), 'Maximum value of an empty object');
+ equal(-Infinity, _.max([]), 'Maximum value of an empty array');
+ equal(_.max({'a': 'a'}), -Infinity, 'Maximum value of a non-numeric collection');
+
+ // TEST: Takes too long
+ return;
+
+ equal(299999, _.max(_.range(1,300000)), "Maximum value of a too-big array");
+ });
+ `)
+ })
+}
+
+// min
+func Test_underscore_collections_18(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('min', function() {
+ equal(1, _.min([1, 2, 3]), 'can perform a regular Math.min');
+
+ var neg = _.min([1, 2, 3], function(num){ return -num; });
+ equal(neg, 3, 'can perform a computation-based min');
+
+ equal(Infinity, _.min({}), 'Minimum value of an empty object');
+ equal(Infinity, _.min([]), 'Minimum value of an empty array');
+ equal(_.min({'a': 'a'}), Infinity, 'Minimum value of a non-numeric collection');
+
+ var now = new Date(9999999999);
+ var then = new Date(0);
+ equal(_.min([now, then]), then);
+
+ // TEST: Takes too long
+ return;
+
+ equal(1, _.min(_.range(1,300000)), "Minimum value of a too-big array");
+ });
+ `)
+ })
+}
+
+// sortBy
+func Test_underscore_collections_19(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('sortBy', function() {
+ var people = [{name : 'curly', age : 50}, {name : 'moe', age : 30}];
+ people = _.sortBy(people, function(person){ return person.age; });
+ equal(_.pluck(people, 'name').join(', '), 'moe, curly', 'stooges sorted by age');
+
+ var list = [undefined, 4, 1, undefined, 3, 2];
+ equal(_.sortBy(list, _.identity).join(','), '1,2,3,4,,', 'sortBy with undefined values');
+
+ var list = ["one", "two", "three", "four", "five"];
+ var sorted = _.sortBy(list, 'length');
+ equal(sorted.join(' '), 'one two four five three', 'sorted by length');
+
+ function Pair(x, y) {
+ this.x = x;
+ this.y = y;
+ }
+
+ var collection = [
+ new Pair(1, 1), new Pair(1, 2),
+ new Pair(1, 3), new Pair(1, 4),
+ new Pair(1, 5), new Pair(1, 6),
+ new Pair(2, 1), new Pair(2, 2),
+ new Pair(2, 3), new Pair(2, 4),
+ new Pair(2, 5), new Pair(2, 6),
+ new Pair(undefined, 1), new Pair(undefined, 2),
+ new Pair(undefined, 3), new Pair(undefined, 4),
+ new Pair(undefined, 5), new Pair(undefined, 6)
+ ];
+
+ var actual = _.sortBy(collection, function(pair) {
+ return pair.x;
+ });
+
+ deepEqual(actual, collection, 'sortBy should be stable');
+ });
+ `)
+ })
+}
+
+// groupBy
+func Test_underscore_collections_20(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('groupBy', function() {
+ var parity = _.groupBy([1, 2, 3, 4, 5, 6], function(num){ return num % 2; });
+ ok('0' in parity && '1' in parity, 'created a group for each value');
+ equal(parity[0].join(', '), '2, 4, 6', 'put each even number in the right group');
+
+ var list = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"];
+ var grouped = _.groupBy(list, 'length');
+ equal(grouped['3'].join(' '), 'one two six ten');
+ equal(grouped['4'].join(' '), 'four five nine');
+ equal(grouped['5'].join(' '), 'three seven eight');
+
+ var context = {};
+ _.groupBy([{}], function(){ ok(this === context); }, context);
+
+ grouped = _.groupBy([4.2, 6.1, 6.4], function(num) {
+ return Math.floor(num) > 4 ? 'hasOwnProperty' : 'constructor';
+ });
+ equal(grouped.constructor.length, 1);
+ equal(grouped.hasOwnProperty.length, 2);
+
+ var array = [{}];
+ _.groupBy(array, function(value, index, obj){ ok(obj === array); });
+
+ var array = [1, 2, 1, 2, 3];
+ var grouped = _.groupBy(array);
+ equal(grouped['1'].length, 2);
+ equal(grouped['3'].length, 1);
+ });
+ `)
+ })
+}
+
+// countBy
+func Test_underscore_collections_21(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('countBy', function() {
+ var parity = _.countBy([1, 2, 3, 4, 5], function(num){ return num % 2 == 0; });
+ equal(parity['true'], 2);
+ equal(parity['false'], 3);
+
+ var list = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"];
+ var grouped = _.countBy(list, 'length');
+ equal(grouped['3'], 4);
+ equal(grouped['4'], 3);
+ equal(grouped['5'], 3);
+
+ var context = {};
+ _.countBy([{}], function(){ ok(this === context); }, context);
+
+ grouped = _.countBy([4.2, 6.1, 6.4], function(num) {
+ return Math.floor(num) > 4 ? 'hasOwnProperty' : 'constructor';
+ });
+ equal(grouped.constructor, 1);
+ equal(grouped.hasOwnProperty, 2);
+
+ var array = [{}];
+ _.countBy(array, function(value, index, obj){ ok(obj === array); });
+
+ var array = [1, 2, 1, 2, 3];
+ var grouped = _.countBy(array);
+ equal(grouped['1'], 2);
+ equal(grouped['3'], 1);
+ });
+ `)
+ })
+}
+
+// sortedIndex
+func Test_underscore_collections_22(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('sortedIndex', function() {
+ var numbers = [10, 20, 30, 40, 50], num = 35;
+ var indexForNum = _.sortedIndex(numbers, num);
+ equal(indexForNum, 3, '35 should be inserted at index 3');
+
+ var indexFor30 = _.sortedIndex(numbers, 30);
+ equal(indexFor30, 2, '30 should be inserted at index 2');
+
+ var objects = [{x: 10}, {x: 20}, {x: 30}, {x: 40}];
+ var iterator = function(obj){ return obj.x; };
+ strictEqual(_.sortedIndex(objects, {x: 25}, iterator), 2);
+ strictEqual(_.sortedIndex(objects, {x: 35}, 'x'), 3);
+
+ var context = {1: 2, 2: 3, 3: 4};
+ iterator = function(obj){ return this[obj]; };
+ strictEqual(_.sortedIndex([1, 3], 2, iterator, context), 1);
+ });
+ `)
+ })
+}
+
+// shuffle
+func Test_underscore_collections_23(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('shuffle', function() {
+ var numbers = _.range(10);
+ var shuffled = _.shuffle(numbers).sort();
+ notStrictEqual(numbers, shuffled, 'original object is unmodified');
+ equal(shuffled.join(','), numbers.join(','), 'contains the same members before and after shuffle');
+ });
+ `)
+ })
+}
+
+// toArray
+func Test_underscore_collections_24(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('toArray', function() {
+ ok(!_.isArray(arguments), 'arguments object is not an array');
+ ok(_.isArray(_.toArray(arguments)), 'arguments object converted into array');
+ var a = [1,2,3];
+ ok(_.toArray(a) !== a, 'array is cloned');
+ equal(_.toArray(a).join(', '), '1, 2, 3', 'cloned array contains same elements');
+
+ var numbers = _.toArray({one : 1, two : 2, three : 3});
+ equal(numbers.join(', '), '1, 2, 3', 'object flattened into array');
+
+ // TEST: ReferenceError: document is not defined
+ return;
+
+ // test in IE < 9
+ try {
+ var actual = _.toArray(document.childNodes);
+ } catch(ex) { }
+
+ ok(_.isArray(actual), 'should not throw converting a node list');
+ });
+ `)
+ })
+}
+
+// size
+func Test_underscore_collections_25(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('size', function() {
+ equal(_.size({one : 1, two : 2, three : 3}), 3, 'can compute the size of an object');
+ equal(_.size([1, 2, 3]), 3, 'can compute the size of an array');
+
+ var func = function() {
+ return _.size(arguments);
+ };
+
+ equal(func(1, 2, 3, 4), 4, 'can test the size of the arguments object');
+
+ equal(_.size('hello'), 5, 'can compute the size of a string');
+
+ equal(_.size(null), 0, 'handles nulls');
+ });
+ `)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/underscore_functions_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/underscore_functions_test.go
new file mode 100644
index 000000000..be59e16b3
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/underscore_functions_test.go
@@ -0,0 +1,208 @@
+package otto
+
+import (
+ "testing"
+)
+
+// bind
+func Test_underscore_functions_0(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("bind", function() {
+ var context = {name : 'moe'};
+ var func = function(arg) { return "name: " + (this.name || arg); };
+ var bound = _.bind(func, context);
+ equal(bound(), 'name: moe', 'can bind a function to a context');
+
+ bound = _(func).bind(context);
+ equal(bound(), 'name: moe', 'can do OO-style binding');
+
+ bound = _.bind(func, null, 'curly');
+ equal(bound(), 'name: curly', 'can bind without specifying a context');
+
+ func = function(salutation, name) { return salutation + ': ' + name; };
+ func = _.bind(func, this, 'hello');
+ equal(func('moe'), 'hello: moe', 'the function was partially applied in advance');
+
+ func = _.bind(func, this, 'curly');
+ equal(func(), 'hello: curly', 'the function was completely applied in advance');
+
+ func = function(salutation, firstname, lastname) { return salutation + ': ' + firstname + ' ' + lastname; };
+ func = _.bind(func, this, 'hello', 'moe', 'curly');
+ equal(func(), 'hello: moe curly', 'the function was partially applied in advance and can accept multiple arguments');
+
+ func = function(context, message) { equal(this, context, message); };
+ _.bind(func, 0, 0, 'can bind a function to <0>')();
+ _.bind(func, '', '', 'can bind a function to an empty string')();
+ _.bind(func, false, false, 'can bind a function to <false>')();
+
+ // These tests are only meaningful when using a browser without a native bind function
+ // To test this with a modern browser, set underscore's nativeBind to undefined
+ var F = function () { return this; };
+ var Boundf = _.bind(F, {hello: "moe curly"});
+ equal(Boundf().hello, "moe curly", "When called without the new operator, it's OK to be bound to the context");
+ });
+ `)
+ })
+}
+
+// partial
+func Test_underscore_functions_1(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("partial", function() {
+ var obj = {name: 'moe'};
+ var func = function() { return this.name + ' ' + _.toArray(arguments).join(' '); };
+
+ obj.func = _.partial(func, 'a', 'b');
+ equal(obj.func('c', 'd'), 'moe a b c d', 'can partially apply');
+ });
+ `)
+ })
+}
+
+// bindAll
+func Test_underscore_functions_2(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("bindAll", function() {
+ var curly = {name : 'curly'}, moe = {
+ name : 'moe',
+ getName : function() { return 'name: ' + this.name; },
+ sayHi : function() { return 'hi: ' + this.name; }
+ };
+ curly.getName = moe.getName;
+ _.bindAll(moe, 'getName', 'sayHi');
+ curly.sayHi = moe.sayHi;
+ equal(curly.getName(), 'name: curly', 'unbound function is bound to current object');
+ equal(curly.sayHi(), 'hi: moe', 'bound function is still bound to original object');
+
+ curly = {name : 'curly'};
+ moe = {
+ name : 'moe',
+ getName : function() { return 'name: ' + this.name; },
+ sayHi : function() { return 'hi: ' + this.name; }
+ };
+ _.bindAll(moe);
+ curly.sayHi = moe.sayHi;
+ equal(curly.sayHi(), 'hi: moe', 'calling bindAll with no arguments binds all functions to the object');
+ });
+ `)
+ })
+}
+
+// memoize
+func Test_underscore_functions_3(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("memoize", function() {
+ var fib = function(n) {
+ return n < 2 ? n : fib(n - 1) + fib(n - 2);
+ };
+ var fastFib = _.memoize(fib);
+ equal(fib(10), 55, 'a memoized version of fibonacci produces identical results');
+ equal(fastFib(10), 55, 'a memoized version of fibonacci produces identical results');
+
+ var o = function(str) {
+ return str;
+ };
+ var fastO = _.memoize(o);
+ equal(o('toString'), 'toString', 'checks hasOwnProperty');
+ equal(fastO('toString'), 'toString', 'checks hasOwnProperty');
+ });
+ `)
+ })
+}
+
+// once
+func Test_underscore_functions_4(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("once", function() {
+ var num = 0;
+ var increment = _.once(function(){ num++; });
+ increment();
+ increment();
+ equal(num, 1);
+ });
+ `)
+ })
+}
+
+// wrap
+func Test_underscore_functions_5(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("wrap", function() {
+ var greet = function(name){ return "hi: " + name; };
+ var backwards = _.wrap(greet, function(func, name){ return func(name) + ' ' + name.split('').reverse().join(''); });
+ equal(backwards('moe'), 'hi: moe eom', 'wrapped the saluation function');
+
+ var inner = function(){ return "Hello "; };
+ var obj = {name : "Moe"};
+ obj.hi = _.wrap(inner, function(fn){ return fn() + this.name; });
+ equal(obj.hi(), "Hello Moe");
+
+ var noop = function(){};
+ var wrapped = _.wrap(noop, function(fn){ return Array.prototype.slice.call(arguments, 0); });
+ var ret = wrapped(['whats', 'your'], 'vector', 'victor');
+ deepEqual(ret, [noop, ['whats', 'your'], 'vector', 'victor']);
+ });
+ `)
+ })
+}
+
+// compose
+func Test_underscore_functions_6(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("compose", function() {
+ var greet = function(name){ return "hi: " + name; };
+ var exclaim = function(sentence){ return sentence + '!'; };
+ var composed = _.compose(exclaim, greet);
+ equal(composed('moe'), 'hi: moe!', 'can compose a function that takes another');
+
+ composed = _.compose(greet, exclaim);
+ equal(composed('moe'), 'hi: moe!', 'in this case, the functions are also commutative');
+ });
+ `)
+ })
+}
+
+// after
+func Test_underscore_functions_7(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("after", function() {
+ var testAfter = function(afterAmount, timesCalled) {
+ var afterCalled = 0;
+ var after = _.after(afterAmount, function() {
+ afterCalled++;
+ });
+ while (timesCalled--) after();
+ return afterCalled;
+ };
+
+ equal(testAfter(5, 5), 1, "after(N) should fire after being called N times");
+ equal(testAfter(5, 4), 0, "after(N) should not fire unless called N times");
+ equal(testAfter(0, 0), 1, "after(0) should fire immediately");
+ });
+ `)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/underscore_objects_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/underscore_objects_test.go
new file mode 100644
index 000000000..ae9c5d5ff
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/underscore_objects_test.go
@@ -0,0 +1,822 @@
+package otto
+
+import (
+ "testing"
+)
+
+// keys
+func Test_underscore_objects_0(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("keys", function() {
+ equal(_.keys({one : 1, two : 2}).join(', '), 'one, two', 'can extract the keys from an object');
+ // the test above is not safe because it relies on for-in enumeration order
+ var a = []; a[1] = 0;
+ equal(_.keys(a).join(', '), '1', 'is not fooled by sparse arrays; see issue #95');
+ raises(function() { _.keys(null); }, TypeError, 'throws an error for <null> values');
+ raises(function() { _.keys(void 0); }, TypeError, 'throws an error for <undefined> values');
+ raises(function() { _.keys(1); }, TypeError, 'throws an error for number primitives');
+ raises(function() { _.keys('a'); }, TypeError, 'throws an error for string primitives');
+ raises(function() { _.keys(true); }, TypeError, 'throws an error for boolean primitives');
+ });
+ `)
+ })
+}
+
+// values
+func Test_underscore_objects_1(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("values", function() {
+ equal(_.values({one: 1, two: 2}).join(', '), '1, 2', 'can extract the values from an object');
+ equal(_.values({one: 1, two: 2, length: 3}).join(', '), '1, 2, 3', '... even when one of them is "length"');
+ });
+ `)
+ })
+}
+
+// pairs
+func Test_underscore_objects_2(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("pairs", function() {
+ deepEqual(_.pairs({one: 1, two: 2}), [['one', 1], ['two', 2]], 'can convert an object into pairs');
+ deepEqual(_.pairs({one: 1, two: 2, length: 3}), [['one', 1], ['two', 2], ['length', 3]], '... even when one of them is "length"');
+ });
+ `)
+ })
+}
+
+// invert
+func Test_underscore_objects_3(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("invert", function() {
+ var obj = {first: 'Moe', second: 'Larry', third: 'Curly'};
+ equal(_.keys(_.invert(obj)).join(' '), 'Moe Larry Curly', 'can invert an object');
+ ok(_.isEqual(_.invert(_.invert(obj)), obj), 'two inverts gets you back where you started');
+
+ var obj = {length: 3};
+ ok(_.invert(obj)['3'] == 'length', 'can invert an object with "length"')
+ });
+ `)
+ })
+}
+
+// functions
+func Test_underscore_objects_4(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("functions", function() {
+ var obj = {a : 'dash', b : _.map, c : (/yo/), d : _.reduce};
+ ok(_.isEqual(['b', 'd'], _.functions(obj)), 'can grab the function names of any passed-in object');
+
+ var Animal = function(){};
+ Animal.prototype.run = function(){};
+ equal(_.functions(new Animal).join(''), 'run', 'also looks up functions on the prototype');
+ });
+ `)
+ })
+}
+
+// extend
+func Test_underscore_objects_5(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("extend", function() {
+ var result;
+ equal(_.extend({}, {a:'b'}).a, 'b', 'can extend an object with the attributes of another');
+ equal(_.extend({a:'x'}, {a:'b'}).a, 'b', 'properties in source override destination');
+ equal(_.extend({x:'x'}, {a:'b'}).x, 'x', 'properties not in source dont get overriden');
+ result = _.extend({x:'x'}, {a:'a'}, {b:'b'});
+ ok(_.isEqual(result, {x:'x', a:'a', b:'b'}), 'can extend from multiple source objects');
+ result = _.extend({x:'x'}, {a:'a', x:2}, {a:'b'});
+ ok(_.isEqual(result, {x:2, a:'b'}), 'extending from multiple source objects last property trumps');
+ result = _.extend({}, {a: void 0, b: null});
+ equal(_.keys(result).join(''), 'ab', 'extend does not copy undefined values');
+
+ try {
+ result = {};
+ _.extend(result, null, undefined, {a:1});
+ } catch(ex) {}
+
+ equal(result.a, 1, 'should not error on <null> or <undefined> sources');
+ });
+ `)
+ })
+}
+
+// pick
+func Test_underscore_objects_6(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("pick", function() {
+ var result;
+ result = _.pick({a:1, b:2, c:3}, 'a', 'c');
+ ok(_.isEqual(result, {a:1, c:3}), 'can restrict properties to those named');
+ result = _.pick({a:1, b:2, c:3}, ['b', 'c']);
+ ok(_.isEqual(result, {b:2, c:3}), 'can restrict properties to those named in an array');
+ result = _.pick({a:1, b:2, c:3}, ['a'], 'b');
+ ok(_.isEqual(result, {a:1, b:2}), 'can restrict properties to those named in mixed args');
+
+ var Obj = function(){};
+ Obj.prototype = {a: 1, b: 2, c: 3};
+ ok(_.isEqual(_.pick(new Obj, 'a', 'c'), {a:1, c: 3}), 'include prototype props');
+ });
+ `)
+ })
+}
+
+// omit
+func Test_underscore_objects_7(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("omit", function() {
+ var result;
+ result = _.omit({a:1, b:2, c:3}, 'b');
+ ok(_.isEqual(result, {a:1, c:3}), 'can omit a single named property');
+ result = _.omit({a:1, b:2, c:3}, 'a', 'c');
+ ok(_.isEqual(result, {b:2}), 'can omit several named properties');
+ result = _.omit({a:1, b:2, c:3}, ['b', 'c']);
+ ok(_.isEqual(result, {a:1}), 'can omit properties named in an array');
+
+ var Obj = function(){};
+ Obj.prototype = {a: 1, b: 2, c: 3};
+ ok(_.isEqual(_.omit(new Obj, 'b'), {a:1, c: 3}), 'include prototype props');
+ });
+ `)
+ })
+}
+
+// defaults
+func Test_underscore_objects_8(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("defaults", function() {
+ var result;
+ var options = {zero: 0, one: 1, empty: "", nan: NaN, string: "string"};
+
+ _.defaults(options, {zero: 1, one: 10, twenty: 20});
+ equal(options.zero, 0, 'value exists');
+ equal(options.one, 1, 'value exists');
+ equal(options.twenty, 20, 'default applied');
+
+ _.defaults(options, {empty: "full"}, {nan: "nan"}, {word: "word"}, {word: "dog"});
+ equal(options.empty, "", 'value exists');
+ ok(_.isNaN(options.nan), "NaN isn't overridden");
+ equal(options.word, "word", 'new value is added, first one wins');
+
+ try {
+ options = {};
+ _.defaults(options, null, undefined, {a:1});
+ } catch(ex) {}
+
+ equal(options.a, 1, 'should not error on <null> or <undefined> sources');
+ });
+ `)
+ })
+}
+
+// clone
+func Test_underscore_objects_9(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("clone", function() {
+ var moe = {name : 'moe', lucky : [13, 27, 34]};
+ var clone = _.clone(moe);
+ equal(clone.name, 'moe', 'the clone as the attributes of the original');
+
+ clone.name = 'curly';
+ ok(clone.name == 'curly' && moe.name == 'moe', 'clones can change shallow attributes without affecting the original');
+
+ clone.lucky.push(101);
+ equal(_.last(moe.lucky), 101, 'changes to deep attributes are shared with the original');
+
+ equal(_.clone(undefined), void 0, 'non objects should not be changed by clone');
+ equal(_.clone(1), 1, 'non objects should not be changed by clone');
+ equal(_.clone(null), null, 'non objects should not be changed by clone');
+ });
+ `)
+ })
+}
+
+// isEqual
+func Test_underscore_objects_10(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isEqual", function() {
+ function First() {
+ this.value = 1;
+ }
+ First.prototype.value = 1;
+ function Second() {
+ this.value = 1;
+ }
+ Second.prototype.value = 2;
+
+ // Basic equality and identity comparisons.
+ ok(_.isEqual(null, null), "<null> is equal to <null>");
+ ok(_.isEqual(), "<undefined> is equal to <undefined>");
+
+ ok(!_.isEqual(0, -0), "<0> is not equal to <-0>");
+ ok(!_.isEqual(-0, 0), "Commutative equality is implemented for <0> and <-0>");
+ ok(!_.isEqual(null, undefined), "<null> is not equal to <undefined>");
+ ok(!_.isEqual(undefined, null), "Commutative equality is implemented for <null> and <undefined>");
+
+ // String object and primitive comparisons.
+ ok(_.isEqual("Curly", "Curly"), "Identical string primitives are equal");
+ ok(_.isEqual(new String("Curly"), new String("Curly")), "String objects with identical primitive values are equal");
+ ok(_.isEqual(new String("Curly"), "Curly"), "String primitives and their corresponding object wrappers are equal");
+ ok(_.isEqual("Curly", new String("Curly")), "Commutative equality is implemented for string objects and primitives");
+
+ ok(!_.isEqual("Curly", "Larry"), "String primitives with different values are not equal");
+ ok(!_.isEqual(new String("Curly"), new String("Larry")), "String objects with different primitive values are not equal");
+ ok(!_.isEqual(new String("Curly"), {toString: function(){ return "Curly"; }}), "String objects and objects with a custom <toString> method are not equal");
+
+ // Number object and primitive comparisons.
+ ok(_.isEqual(75, 75), "Identical number primitives are equal");
+ ok(_.isEqual(new Number(75), new Number(75)), "Number objects with identical primitive values are equal");
+ ok(_.isEqual(75, new Number(75)), "Number primitives and their corresponding object wrappers are equal");
+ ok(_.isEqual(new Number(75), 75), "Commutative equality is implemented for number objects and primitives");
+ ok(!_.isEqual(new Number(0), -0), "<new Number(0)> and <-0> are not equal");
+ ok(!_.isEqual(0, new Number(-0)), "Commutative equality is implemented for <new Number(0)> and <-0>");
+
+ ok(!_.isEqual(new Number(75), new Number(63)), "Number objects with different primitive values are not equal");
+ ok(!_.isEqual(new Number(63), {valueOf: function(){ return 63; }}), "Number objects and objects with a <valueOf> method are not equal");
+
+ // Comparisons involving <NaN>.
+ ok(_.isEqual(NaN, NaN), "<NaN> is equal to <NaN>");
+ ok(!_.isEqual(61, NaN), "A number primitive is not equal to <NaN>");
+ ok(!_.isEqual(new Number(79), NaN), "A number object is not equal to <NaN>");
+ ok(!_.isEqual(Infinity, NaN), "<Infinity> is not equal to <NaN>");
+
+ // Boolean object and primitive comparisons.
+ ok(_.isEqual(true, true), "Identical boolean primitives are equal");
+ ok(_.isEqual(new Boolean, new Boolean), "Boolean objects with identical primitive values are equal");
+ ok(_.isEqual(true, new Boolean(true)), "Boolean primitives and their corresponding object wrappers are equal");
+ ok(_.isEqual(new Boolean(true), true), "Commutative equality is implemented for booleans");
+ ok(!_.isEqual(new Boolean(true), new Boolean), "Boolean objects with different primitive values are not equal");
+
+ // Common type coercions.
+ ok(!_.isEqual(true, new Boolean(false)), "Boolean objects are not equal to the boolean primitive <true>");
+ ok(!_.isEqual("75", 75), "String and number primitives with like values are not equal");
+ ok(!_.isEqual(new Number(63), new String(63)), "String and number objects with like values are not equal");
+ ok(!_.isEqual(75, "75"), "Commutative equality is implemented for like string and number values");
+ ok(!_.isEqual(0, ""), "Number and string primitives with like values are not equal");
+ ok(!_.isEqual(1, true), "Number and boolean primitives with like values are not equal");
+ ok(!_.isEqual(new Boolean(false), new Number(0)), "Boolean and number objects with like values are not equal");
+ ok(!_.isEqual(false, new String("")), "Boolean primitives and string objects with like values are not equal");
+ ok(!_.isEqual(12564504e5, new Date(2009, 9, 25)), "Dates and their corresponding numeric primitive values are not equal");
+
+ // Dates.
+ ok(_.isEqual(new Date(2009, 9, 25), new Date(2009, 9, 25)), "Date objects referencing identical times are equal");
+ ok(!_.isEqual(new Date(2009, 9, 25), new Date(2009, 11, 13)), "Date objects referencing different times are not equal");
+ ok(!_.isEqual(new Date(2009, 11, 13), {
+ getTime: function(){
+ return 12606876e5;
+ }
+ }), "Date objects and objects with a <getTime> method are not equal");
+ ok(!_.isEqual(new Date("Curly"), new Date("Curly")), "Invalid dates are not equal");
+
+ // Functions.
+ ok(!_.isEqual(First, Second), "Different functions with identical bodies and source code representations are not equal");
+
+ // RegExps.
+ ok(_.isEqual(/(?:)/gim, /(?:)/gim), "RegExps with equivalent patterns and flags are equal");
+ ok(!_.isEqual(/(?:)/g, /(?:)/gi), "RegExps with equivalent patterns and different flags are not equal");
+ ok(!_.isEqual(/Moe/gim, /Curly/gim), "RegExps with different patterns and equivalent flags are not equal");
+ ok(!_.isEqual(/(?:)/gi, /(?:)/g), "Commutative equality is implemented for RegExps");
+ ok(!_.isEqual(/Curly/g, {source: "Larry", global: true, ignoreCase: false, multiline: false}), "RegExps and RegExp-like objects are not equal");
+
+ // Empty arrays, array-like objects, and object literals.
+ ok(_.isEqual({}, {}), "Empty object literals are equal");
+ ok(_.isEqual([], []), "Empty array literals are equal");
+ ok(_.isEqual([{}], [{}]), "Empty nested arrays and objects are equal");
+ ok(!_.isEqual({length: 0}, []), "Array-like objects and arrays are not equal.");
+ ok(!_.isEqual([], {length: 0}), "Commutative equality is implemented for array-like objects");
+
+ ok(!_.isEqual({}, []), "Object literals and array literals are not equal");
+ ok(!_.isEqual([], {}), "Commutative equality is implemented for objects and arrays");
+
+ // Arrays with primitive and object values.
+ ok(_.isEqual([1, "Larry", true], [1, "Larry", true]), "Arrays containing identical primitives are equal");
+ ok(_.isEqual([(/Moe/g), new Date(2009, 9, 25)], [(/Moe/g), new Date(2009, 9, 25)]), "Arrays containing equivalent elements are equal");
+
+ // Multi-dimensional arrays.
+ var a = [new Number(47), false, "Larry", /Moe/, new Date(2009, 11, 13), ['running', 'biking', new String('programming')], {a: 47}];
+ var b = [new Number(47), false, "Larry", /Moe/, new Date(2009, 11, 13), ['running', 'biking', new String('programming')], {a: 47}];
+ ok(_.isEqual(a, b), "Arrays containing nested arrays and objects are recursively compared");
+
+ // Overwrite the methods defined in ES 5.1 section 15.4.4.
+ a.forEach = a.map = a.filter = a.every = a.indexOf = a.lastIndexOf = a.some = a.reduce = a.reduceRight = null;
+ b.join = b.pop = b.reverse = b.shift = b.slice = b.splice = b.concat = b.sort = b.unshift = null;
+
+ // Array elements and properties.
+ ok(_.isEqual(a, b), "Arrays containing equivalent elements and different non-numeric properties are equal");
+ a.push("White Rocks");
+ ok(!_.isEqual(a, b), "Arrays of different lengths are not equal");
+ a.push("East Boulder");
+ b.push("Gunbarrel Ranch", "Teller Farm");
+ ok(!_.isEqual(a, b), "Arrays of identical lengths containing different elements are not equal");
+
+ // Sparse arrays.
+ ok(_.isEqual(Array(3), Array(3)), "Sparse arrays of identical lengths are equal");
+ ok(!_.isEqual(Array(3), Array(6)), "Sparse arrays of different lengths are not equal when both are empty");
+
+ // Simple objects.
+ ok(_.isEqual({a: "Curly", b: 1, c: true}, {a: "Curly", b: 1, c: true}), "Objects containing identical primitives are equal");
+ ok(_.isEqual({a: /Curly/g, b: new Date(2009, 11, 13)}, {a: /Curly/g, b: new Date(2009, 11, 13)}), "Objects containing equivalent members are equal");
+ ok(!_.isEqual({a: 63, b: 75}, {a: 61, b: 55}), "Objects of identical sizes with different values are not equal");
+ ok(!_.isEqual({a: 63, b: 75}, {a: 61, c: 55}), "Objects of identical sizes with different property names are not equal");
+ ok(!_.isEqual({a: 1, b: 2}, {a: 1}), "Objects of different sizes are not equal");
+ ok(!_.isEqual({a: 1}, {a: 1, b: 2}), "Commutative equality is implemented for objects");
+ ok(!_.isEqual({x: 1, y: undefined}, {x: 1, z: 2}), "Objects with identical keys and different values are not equivalent");
+
+ // <A> contains nested objects and arrays.
+ a = {
+ name: new String("Moe Howard"),
+ age: new Number(77),
+ stooge: true,
+ hobbies: ["acting"],
+ film: {
+ name: "Sing a Song of Six Pants",
+ release: new Date(1947, 9, 30),
+ stars: [new String("Larry Fine"), "Shemp Howard"],
+ minutes: new Number(16),
+ seconds: 54
+ }
+ };
+
+ // <B> contains equivalent nested objects and arrays.
+ b = {
+ name: new String("Moe Howard"),
+ age: new Number(77),
+ stooge: true,
+ hobbies: ["acting"],
+ film: {
+ name: "Sing a Song of Six Pants",
+ release: new Date(1947, 9, 30),
+ stars: [new String("Larry Fine"), "Shemp Howard"],
+ minutes: new Number(16),
+ seconds: 54
+ }
+ };
+ ok(_.isEqual(a, b), "Objects with nested equivalent members are recursively compared");
+
+ // Instances.
+ ok(_.isEqual(new First, new First), "Object instances are equal");
+ ok(!_.isEqual(new First, new Second), "Objects with different constructors and identical own properties are not equal");
+ ok(!_.isEqual({value: 1}, new First), "Object instances and objects sharing equivalent properties are not equal");
+ ok(!_.isEqual({value: 2}, new Second), "The prototype chain of objects should not be examined");
+
+ // Circular Arrays.
+ (a = []).push(a);
+ (b = []).push(b);
+ ok(_.isEqual(a, b), "Arrays containing circular references are equal");
+ a.push(new String("Larry"));
+ b.push(new String("Larry"));
+ ok(_.isEqual(a, b), "Arrays containing circular references and equivalent properties are equal");
+ a.push("Shemp");
+ b.push("Curly");
+ ok(!_.isEqual(a, b), "Arrays containing circular references and different properties are not equal");
+
+ // More circular arrays #767.
+ a = ["everything is checked but", "this", "is not"];
+ a[1] = a;
+ b = ["everything is checked but", ["this", "array"], "is not"];
+ ok(!_.isEqual(a, b), "Comparison of circular references with non-circular references are not equal");
+
+ // Circular Objects.
+ a = {abc: null};
+ b = {abc: null};
+ a.abc = a;
+ b.abc = b;
+ ok(_.isEqual(a, b), "Objects containing circular references are equal");
+ a.def = 75;
+ b.def = 75;
+ ok(_.isEqual(a, b), "Objects containing circular references and equivalent properties are equal");
+ a.def = new Number(75);
+ b.def = new Number(63);
+ ok(!_.isEqual(a, b), "Objects containing circular references and different properties are not equal");
+
+ // More circular objects #767.
+ a = {everything: "is checked", but: "this", is: "not"};
+ a.but = a;
+ b = {everything: "is checked", but: {that:"object"}, is: "not"};
+ ok(!_.isEqual(a, b), "Comparison of circular references with non-circular object references are not equal");
+
+ // Cyclic Structures.
+ a = [{abc: null}];
+ b = [{abc: null}];
+ (a[0].abc = a).push(a);
+ (b[0].abc = b).push(b);
+ ok(_.isEqual(a, b), "Cyclic structures are equal");
+ a[0].def = "Larry";
+ b[0].def = "Larry";
+ ok(_.isEqual(a, b), "Cyclic structures containing equivalent properties are equal");
+ a[0].def = new String("Larry");
+ b[0].def = new String("Curly");
+ ok(!_.isEqual(a, b), "Cyclic structures containing different properties are not equal");
+
+ // Complex Circular References.
+ a = {foo: {b: {foo: {c: {foo: null}}}}};
+ b = {foo: {b: {foo: {c: {foo: null}}}}};
+ a.foo.b.foo.c.foo = a;
+ b.foo.b.foo.c.foo = b;
+ ok(_.isEqual(a, b), "Cyclic structures with nested and identically-named properties are equal");
+
+ // Chaining.
+ ok(!_.isEqual(_({x: 1, y: undefined}).chain(), _({x: 1, z: 2}).chain()), 'Chained objects containing different values are not equal');
+
+ a = _({x: 1, y: 2}).chain();
+ b = _({x: 1, y: 2}).chain();
+ equal(_.isEqual(a.isEqual(b), _(true)), true, '<isEqual> can be chained');
+
+ // TEST: ???
+ return;
+
+ // Objects from another frame.
+ ok(_.isEqual({}, iObject));
+ });
+ `)
+ })
+}
+
+// isEmpty
+func Test_underscore_objects_11(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isEmpty", function() {
+ ok(!_([1]).isEmpty(), '[1] is not empty');
+ ok(_.isEmpty([]), '[] is empty');
+ ok(!_.isEmpty({one : 1}), '{one : 1} is not empty');
+ ok(_.isEmpty({}), '{} is empty');
+ ok(_.isEmpty(new RegExp('')), 'objects with prototype properties are empty');
+ ok(_.isEmpty(null), 'null is empty');
+ ok(_.isEmpty(), 'undefined is empty');
+ ok(_.isEmpty(''), 'the empty string is empty');
+ ok(!_.isEmpty('moe'), 'but other strings are not');
+
+ var obj = {one : 1};
+ delete obj.one;
+ ok(_.isEmpty(obj), 'deleting all the keys from an object empties it');
+ });
+ `)
+ })
+}
+
+// isElement
+func Test_underscore_objects_12(t *testing.T) {
+ // TEST: ReferenceError: $ is not defined
+ return
+
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isElement", function() {
+ ok(!_.isElement('div'), 'strings are not dom elements');
+ ok(_.isElement($('html')[0]), 'the html tag is a DOM element');
+ ok(_.isElement(iElement), 'even from another frame');
+ });
+ `)
+ })
+}
+
+// isArguments
+func Test_underscore_objects_13(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isArguments", function() {
+ var args = (function(){ return arguments; })(1, 2, 3);
+ ok(!_.isArguments('string'), 'a string is not an arguments object');
+ ok(!_.isArguments(_.isArguments), 'a function is not an arguments object');
+ ok(_.isArguments(args), 'but the arguments object is an arguments object');
+ ok(!_.isArguments(_.toArray(args)), 'but not when it\'s converted into an array');
+ ok(!_.isArguments([1,2,3]), 'and not vanilla arrays.');
+
+ // TEST: ReferenceError: iArguments is not defined
+ return;
+ ok(_.isArguments(iArguments), 'even from another frame');
+ });
+ `)
+ })
+}
+
+// isObject
+func Test_underscore_objects_14(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isObject", function() {
+ ok(_.isObject(arguments), 'the arguments object is object');
+ ok(_.isObject([1, 2, 3]), 'and arrays');
+ // TEST: ReferenceError: $ is not defined
+ return;
+ ok(_.isObject($('html')[0]), 'and DOM element');
+ ok(_.isObject(iElement), 'even from another frame');
+ ok(_.isObject(function () {}), 'and functions');
+ ok(_.isObject(iFunction), 'even from another frame');
+ ok(!_.isObject(null), 'but not null');
+ ok(!_.isObject(undefined), 'and not undefined');
+ ok(!_.isObject('string'), 'and not string');
+ ok(!_.isObject(12), 'and not number');
+ ok(!_.isObject(true), 'and not boolean');
+ ok(_.isObject(new String('string')), 'but new String()');
+ });
+ `)
+ })
+}
+
+// isArray
+func Test_underscore_objects_15(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isArray", function() {
+ ok(!_.isArray(arguments), 'the arguments object is not an array');
+ ok(_.isArray([1, 2, 3]), 'but arrays are');
+ // TEST: ???
+ return;
+ ok(_.isArray(iArray), 'even from another frame');
+ });
+ `)
+ })
+}
+
+// isString
+func Test_underscore_objects_16(t *testing.T) {
+ // TEST: ReferenceError: document is not defined
+ return
+
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isString", function() {
+ ok(!_.isString(document.body), 'the document body is not a string');
+ ok(_.isString([1, 2, 3].join(', ')), 'but strings are');
+ // TEST: ???
+ return;
+ ok(_.isString(iString), 'even from another frame');
+ });
+ `)
+ })
+}
+
+// isNumber
+func Test_underscore_objects_17(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isNumber", function() {
+ ok(!_.isNumber('string'), 'a string is not a number');
+ ok(!_.isNumber(arguments), 'the arguments object is not a number');
+ ok(!_.isNumber(undefined), 'undefined is not a number');
+ ok(_.isNumber(3 * 4 - 7 / 10), 'but numbers are');
+ ok(_.isNumber(NaN), 'NaN *is* a number');
+ ok(_.isNumber(Infinity), 'Infinity is a number');
+ // TEST: ???
+ return;
+ ok(_.isNumber(iNumber), 'even from another frame');
+ ok(!_.isNumber('1'), 'numeric strings are not numbers');
+ });
+ `)
+ })
+}
+
+// isBoolean
+func Test_underscore_objects_18(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isBoolean", function() {
+ ok(!_.isBoolean(2), 'a number is not a boolean');
+ ok(!_.isBoolean("string"), 'a string is not a boolean');
+ ok(!_.isBoolean("false"), 'the string "false" is not a boolean');
+ ok(!_.isBoolean("true"), 'the string "true" is not a boolean');
+ ok(!_.isBoolean(arguments), 'the arguments object is not a boolean');
+ ok(!_.isBoolean(undefined), 'undefined is not a boolean');
+ ok(!_.isBoolean(NaN), 'NaN is not a boolean');
+ ok(!_.isBoolean(null), 'null is not a boolean');
+ ok(_.isBoolean(true), 'but true is');
+ ok(_.isBoolean(false), 'and so is false');
+ // TEST: ???
+ return;
+ ok(_.isBoolean(iBoolean), 'even from another frame');
+ });
+ `)
+ })
+}
+
+// isFunction
+func Test_underscore_objects_19(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isFunction", function() {
+ ok(!_.isFunction([1, 2, 3]), 'arrays are not functions');
+ ok(!_.isFunction('moe'), 'strings are not functions');
+ ok(_.isFunction(_.isFunction), 'but functions are');
+ // TEST: ???
+ return;
+ ok(_.isFunction(iFunction), 'even from another frame');
+ });
+ `)
+ })
+}
+
+// isDate
+func Test_underscore_objects_20(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isDate", function() {
+ ok(!_.isDate(100), 'numbers are not dates');
+ ok(!_.isDate({}), 'objects are not dates');
+ ok(_.isDate(new Date()), 'but dates are');
+ // TEST: ???
+ return;
+ ok(_.isDate(iDate), 'even from another frame');
+ });
+ `)
+ })
+}
+
+// isRegExp
+func Test_underscore_objects_21(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isRegExp", function() {
+ ok(!_.isRegExp(_.identity), 'functions are not RegExps');
+ ok(_.isRegExp(/identity/), 'but RegExps are');
+ // TEST: ???
+ return;
+ ok(_.isRegExp(iRegExp), 'even from another frame');
+ });
+ `)
+ })
+}
+
+// isFinite
+func Test_underscore_objects_22(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isFinite", function() {
+ ok(!_.isFinite(undefined), 'undefined is not Finite');
+ ok(!_.isFinite(null), 'null is not Finite');
+ ok(!_.isFinite(NaN), 'NaN is not Finite');
+ ok(!_.isFinite(Infinity), 'Infinity is not Finite');
+ ok(!_.isFinite(-Infinity), '-Infinity is not Finite');
+ ok(_.isFinite('12'), 'Numeric strings are numbers');
+ ok(!_.isFinite('1a'), 'Non numeric strings are not numbers');
+ ok(!_.isFinite(''), 'Empty strings are not numbers');
+ var obj = new Number(5);
+ ok(_.isFinite(obj), 'Number instances can be finite');
+ ok(_.isFinite(0), '0 is Finite');
+ ok(_.isFinite(123), 'Ints are Finite');
+ ok(_.isFinite(-12.44), 'Floats are Finite');
+ });
+ `)
+ })
+}
+
+// isNaN
+func Test_underscore_objects_23(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isNaN", function() {
+ ok(!_.isNaN(undefined), 'undefined is not NaN');
+ ok(!_.isNaN(null), 'null is not NaN');
+ ok(!_.isNaN(0), '0 is not NaN');
+ ok(_.isNaN(NaN), 'but NaN is');
+ // TEST: ???
+ return;
+ ok(_.isNaN(iNaN), 'even from another frame');
+ ok(_.isNaN(new Number(NaN)), 'wrapped NaN is still NaN');
+ });
+ `)
+ })
+}
+
+// isNull
+func Test_underscore_objects_24(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isNull", function() {
+ ok(!_.isNull(undefined), 'undefined is not null');
+ ok(!_.isNull(NaN), 'NaN is not null');
+ ok(_.isNull(null), 'but null is');
+ // TEST: ???
+ return;
+ ok(_.isNull(iNull), 'even from another frame');
+ });
+ `)
+ })
+}
+
+// isUndefined
+func Test_underscore_objects_25(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("isUndefined", function() {
+ ok(!_.isUndefined(1), 'numbers are defined');
+ ok(!_.isUndefined(null), 'null is defined');
+ ok(!_.isUndefined(false), 'false is defined');
+ ok(!_.isUndefined(NaN), 'NaN is defined');
+ ok(_.isUndefined(), 'nothing is undefined');
+ ok(_.isUndefined(undefined), 'undefined is undefined');
+ // TEST: ???
+ return;
+ ok(_.isUndefined(iUndefined), 'even from another frame');
+ });
+ `)
+ })
+}
+
+// tap
+func Test_underscore_objects_26(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("tap", function() {
+ var intercepted = null;
+ var interceptor = function(obj) { intercepted = obj; };
+ var returned = _.tap(1, interceptor);
+ equal(intercepted, 1, "passes tapped object to interceptor");
+ equal(returned, 1, "returns tapped object");
+
+ returned = _([1,2,3]).chain().
+ map(function(n){ return n * 2; }).
+ max().
+ tap(interceptor).
+ value();
+ ok(returned == 6 && intercepted == 6, 'can use tapped objects in a chain');
+ });
+ `)
+ })
+}
+
+// has
+func Test_underscore_objects_27(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("has", function () {
+ var obj = {foo: "bar", func: function () {} };
+ ok (_.has(obj, "foo"), "has() checks that the object has a property.");
+ ok (_.has(obj, "baz") == false, "has() returns false if the object doesn't have the property.");
+ ok (_.has(obj, "func"), "has() works for functions too.");
+ obj.hasOwnProperty = null;
+ ok (_.has(obj, "foo"), "has() works even when the hasOwnProperty method is deleted.");
+ var child = {};
+ child.prototype = obj;
+ ok (_.has(child, "foo") == false, "has() does not check the prototype chain for a property.")
+ });
+ `)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/underscore_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/underscore_test.go
new file mode 100644
index 000000000..96c8f2e93
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/underscore_test.go
@@ -0,0 +1,165 @@
+package otto
+
+import (
+ "./terst"
+ "testing"
+
+ "github.com/robertkrimen/otto/underscore"
+)
+
+func init() {
+ underscore.Disable()
+}
+
+// A persistent handle for the underscore tester
+// We do not run underscore tests in parallel, so it is okay to stash globally
+// (Maybe use sync.Pool in the future...)
+var tester_ *_tester
+
+// A tester for underscore: test_ => test(underscore) :)
+func test_(arguments ...interface{}) (func(string, ...interface{}) Value, *_tester) {
+ tester := tester_
+ if tester == nil {
+ tester = newTester()
+ tester.underscore() // Load underscore and testing shim, etc.
+ tester_ = tester
+ }
+
+ return tester.test, tester
+}
+
+func (self *_tester) underscore() {
+ vm := self.vm
+ _, err := vm.Run(underscore.Source())
+ if err != nil {
+ panic(err)
+ }
+
+ vm.Set("assert", func(call FunctionCall) Value {
+ if !toBoolean(call.Argument(0)) {
+ message := "Assertion failed"
+ if len(call.ArgumentList) > 1 {
+ message = toString(call.ArgumentList[1])
+ }
+ t := terst.Caller().T()
+ is(message, nil)
+ t.Fail()
+ return FalseValue()
+ }
+ return TrueValue()
+ })
+
+ vm.Run(`
+ var templateSettings;
+
+ function _setup() {
+ templateSettings = _.clone(_.templateSettings);
+ }
+
+ function _teardown() {
+ _.templateSettings = templateSettings;
+ }
+
+ function module() {
+ /* Nothing happens. */
+ }
+
+ function equals(a, b, emit) {
+ assert(a == b, emit + ", <" + a + "> != <" + b + ">");
+ }
+ var equal = equals;
+
+ function notStrictEqual(a, b, emit) {
+ assert(a !== b, emit);
+ }
+
+ function strictEqual(a, b, emit) {
+ assert(a === b, emit);
+ }
+
+ function ok(a, emit) {
+ assert(a, emit);
+ }
+
+ function raises(fn, want, emit) {
+ var have, _ok = false;
+ if (typeof want === "string") {
+ emit = want;
+ want = null;
+ }
+
+ try {
+ fn();
+ } catch(tmp) {
+ have = tmp;
+ }
+
+ if (have) {
+ if (!want) {
+ _ok = true;
+ }
+ else if (want instanceof RegExp) {
+ _ok = want.test(have);
+ }
+ else if (have instanceof want) {
+ _ok = true
+ }
+ else if (want.call({}, have) === true) {
+ _ok = true;
+ }
+ }
+
+ ok(_ok, emit);
+ }
+
+ function test(name){
+ _setup()
+ try {
+ templateSettings = _.clone(_.templateSettings);
+ if (arguments.length == 3) {
+ count = 0
+ for (count = 0; count < arguments[1]; count++) {
+ arguments[2]()
+ }
+ } else {
+ // For now.
+ arguments[1]()
+ }
+ }
+ finally {
+ _teardown()
+ }
+ }
+
+ function deepEqual(a, b, emit) {
+ // Also, for now.
+ assert(_.isEqual(a, b), emit)
+ }
+ `)
+}
+
+func Test_underscore(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ _.map([1, 2, 3], function(value){
+ return value + 1
+ })
+ `, "2,3,4")
+
+ test(`
+ abc = _.find([1, 2, 3, -1], function(value) { return value == -1 })
+ `, -1)
+
+ test(`_.isEqual(1, 1)`, true)
+ test(`_.isEqual([], [])`, true)
+ test(`_.isEqual(['b', 'd'], ['b', 'd'])`, true)
+ test(`_.isEqual(['b', 'd', 'c'], ['b', 'd', 'e'])`, false)
+ test(`_.isFunction(function(){})`, true)
+ test(`_.template('<p>\u2028<%= "\\u2028\\u2029" %>\u2029</p>')()`, "<p>\u2028\u2028\u2029\u2029</p>")
+ })
+}
+
+// TODO Test: typeof An argument reference
+// TODO Test: abc = {}; abc == Object(abc)
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/underscore_utility_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/underscore_utility_test.go
new file mode 100644
index 000000000..ebabb083b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/underscore_utility_test.go
@@ -0,0 +1,419 @@
+package otto
+
+import (
+ "testing"
+)
+
+// #750 - Return _ instance.
+func Test_underscore_utility_0(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("#750 - Return _ instance.", 2, function() {
+ var instance = _([]);
+ ok(_(instance) === instance);
+ ok(new _(instance) === instance);
+ });
+ `)
+ })
+}
+
+// identity
+func Test_underscore_utility_1(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("identity", function() {
+ var moe = {name : 'moe'};
+ equal(_.identity(moe), moe, 'moe is the same as his identity');
+ });
+ `)
+ })
+}
+
+// random
+func Test_underscore_utility_2(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("random", function() {
+ var array = _.range(1000);
+ var min = Math.pow(2, 31);
+ var max = Math.pow(2, 62);
+
+ ok(_.every(array, function() {
+ return _.random(min, max) >= min;
+ }), "should produce a random number greater than or equal to the minimum number");
+
+ ok(_.some(array, function() {
+ return _.random(Number.MAX_VALUE) > 0;
+ }), "should produce a random number when passed <Number.MAX_VALUE>");
+ });
+ `)
+ })
+}
+
+// uniqueId
+func Test_underscore_utility_3(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("uniqueId", function() {
+ var ids = [], i = 0;
+ while(i++ < 100) ids.push(_.uniqueId());
+ equal(_.uniq(ids).length, ids.length, 'can generate a globally-unique stream of ids');
+ });
+ `)
+ })
+}
+
+// times
+func Test_underscore_utility_4(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("times", function() {
+ var vals = [];
+ _.times(3, function (i) { vals.push(i); });
+ ok(_.isEqual(vals, [0,1,2]), "is 0 indexed");
+ //
+ vals = [];
+ _(3).times(function(i) { vals.push(i); });
+ ok(_.isEqual(vals, [0,1,2]), "works as a wrapper");
+ // collects return values
+ ok(_.isEqual([0, 1, 2], _.times(3, function(i) { return i; })), "collects return values");
+ });
+ `)
+ })
+}
+
+// mixin
+func Test_underscore_utility_5(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("mixin", function() {
+ _.mixin({
+ myReverse: function(string) {
+ return string.split('').reverse().join('');
+ }
+ });
+ equal(_.myReverse('panacea'), 'aecanap', 'mixed in a function to _');
+ equal(_('champ').myReverse(), 'pmahc', 'mixed in a function to the OOP wrapper');
+ });
+ `)
+ })
+}
+
+// _.escape
+func Test_underscore_utility_6(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("_.escape", function() {
+ equal(_.escape("Curly & Moe"), "Curly &amp; Moe");
+ equal(_.escape("Curly &amp; Moe"), "Curly &amp;amp; Moe");
+ equal(_.escape(null), '');
+ });
+ `)
+ })
+}
+
+// _.unescape
+func Test_underscore_utility_7(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("_.unescape", function() {
+ var string = "Curly & Moe";
+ equal(_.unescape("Curly &amp; Moe"), string);
+ equal(_.unescape("Curly &amp;amp; Moe"), "Curly &amp; Moe");
+ equal(_.unescape(null), '');
+ equal(_.unescape(_.escape(string)), string);
+ });
+ `)
+ })
+}
+
+// template
+func Test_underscore_utility_8(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test("template", function() {
+ var basicTemplate = _.template("<%= thing %> is gettin' on my noives!");
+ var result = basicTemplate({thing : 'This'});
+ equal(result, "This is gettin' on my noives!", 'can do basic attribute interpolation');
+
+ var sansSemicolonTemplate = _.template("A <% this %> B");
+ equal(sansSemicolonTemplate(), "A B");
+
+ var backslashTemplate = _.template("<%= thing %> is \\ridanculous");
+ equal(backslashTemplate({thing: 'This'}), "This is \\ridanculous");
+
+ var escapeTemplate = _.template('<%= a ? "checked=\\"checked\\"" : "" %>');
+ equal(escapeTemplate({a: true}), 'checked="checked"', 'can handle slash escapes in interpolations.');
+
+ var fancyTemplate = _.template("<ul><% \
+ for (var key in people) { \
+ %><li><%= people[key] %></li><% } %></ul>");
+ result = fancyTemplate({people : {moe : "Moe", larry : "Larry", curly : "Curly"}});
+ equal(result, "<ul><li>Moe</li><li>Larry</li><li>Curly</li></ul>", 'can run arbitrary javascript in templates');
+
+ var escapedCharsInJavascriptTemplate = _.template("<ul><% _.each(numbers.split('\\n'), function(item) { %><li><%= item %></li><% }) %></ul>");
+ result = escapedCharsInJavascriptTemplate({numbers: "one\ntwo\nthree\nfour"});
+ equal(result, "<ul><li>one</li><li>two</li><li>three</li><li>four</li></ul>", 'Can use escaped characters (e.g. \\n) in Javascript');
+
+ var namespaceCollisionTemplate = _.template("<%= pageCount %> <%= thumbnails[pageCount] %> <% _.each(thumbnails, function(p) { %><div class=\"thumbnail\" rel=\"<%= p %>\"></div><% }); %>");
+ result = namespaceCollisionTemplate({
+ pageCount: 3,
+ thumbnails: {
+ 1: "p1-thumbnail.gif",
+ 2: "p2-thumbnail.gif",
+ 3: "p3-thumbnail.gif"
+ }
+ });
+ equal(result, "3 p3-thumbnail.gif <div class=\"thumbnail\" rel=\"p1-thumbnail.gif\"></div><div class=\"thumbnail\" rel=\"p2-thumbnail.gif\"></div><div class=\"thumbnail\" rel=\"p3-thumbnail.gif\"></div>");
+
+ var noInterpolateTemplate = _.template("<div><p>Just some text. Hey, I know this is silly but it aids consistency.</p></div>");
+ result = noInterpolateTemplate();
+ equal(result, "<div><p>Just some text. Hey, I know this is silly but it aids consistency.</p></div>");
+
+ var quoteTemplate = _.template("It's its, not it's");
+ equal(quoteTemplate({}), "It's its, not it's");
+
+ var quoteInStatementAndBody = _.template("<%\
+ if(foo == 'bar'){ \
+ %>Statement quotes and 'quotes'.<% } %>");
+ equal(quoteInStatementAndBody({foo: "bar"}), "Statement quotes and 'quotes'.");
+
+ var withNewlinesAndTabs = _.template('This\n\t\tis: <%= x %>.\n\tok.\nend.');
+ equal(withNewlinesAndTabs({x: 'that'}), 'This\n\t\tis: that.\n\tok.\nend.');
+
+ var template = _.template("<i><%- value %></i>");
+ var result = template({value: "<script>"});
+ equal(result, '<i>&lt;script&gt;</i>');
+
+ var stooge = {
+ name: "Moe",
+ template: _.template("I'm <%= this.name %>")
+ };
+ equal(stooge.template(), "I'm Moe");
+
+ // TEST: ReferenceError: $ is not defined
+ if (false) {
+ if (!$.browser.msie) {
+ var fromHTML = _.template($('#template').html());
+ equal(fromHTML({data : 12345}).replace(/\s/g, ''), '<li>24690</li>');
+ }
+ }
+
+ _.templateSettings = {
+ evaluate : /\{\{([\s\S]+?)\}\}/g,
+ interpolate : /\{\{=([\s\S]+?)\}\}/g
+ };
+
+ var custom = _.template("<ul>{{ for (var key in people) { }}<li>{{= people[key] }}</li>{{ } }}</ul>");
+ result = custom({people : {moe : "Moe", larry : "Larry", curly : "Curly"}});
+ equal(result, "<ul><li>Moe</li><li>Larry</li><li>Curly</li></ul>", 'can run arbitrary javascript in templates');
+
+ var customQuote = _.template("It's its, not it's");
+ equal(customQuote({}), "It's its, not it's");
+
+ var quoteInStatementAndBody = _.template("{{ if(foo == 'bar'){ }}Statement quotes and 'quotes'.{{ } }}");
+ equal(quoteInStatementAndBody({foo: "bar"}), "Statement quotes and 'quotes'.");
+
+ _.templateSettings = {
+ evaluate : /<\?([\s\S]+?)\?>/g,
+ interpolate : /<\?=([\s\S]+?)\?>/g
+ };
+
+ var customWithSpecialChars = _.template("<ul><? for (var key in people) { ?><li><?= people[key] ?></li><? } ?></ul>");
+ result = customWithSpecialChars({people : {moe : "Moe", larry : "Larry", curly : "Curly"}});
+ equal(result, "<ul><li>Moe</li><li>Larry</li><li>Curly</li></ul>", 'can run arbitrary javascript in templates');
+
+ var customWithSpecialCharsQuote = _.template("It's its, not it's");
+ equal(customWithSpecialCharsQuote({}), "It's its, not it's");
+
+ var quoteInStatementAndBody = _.template("<? if(foo == 'bar'){ ?>Statement quotes and 'quotes'.<? } ?>");
+ equal(quoteInStatementAndBody({foo: "bar"}), "Statement quotes and 'quotes'.");
+
+ _.templateSettings = {
+ interpolate : /\{\{(.+?)\}\}/g
+ };
+
+ var mustache = _.template("Hello {{planet}}!");
+ equal(mustache({planet : "World"}), "Hello World!", "can mimic mustache.js");
+
+ var templateWithNull = _.template("a null undefined {{planet}}");
+ equal(templateWithNull({planet : "world"}), "a null undefined world", "can handle missing escape and evaluate settings");
+ });
+ `)
+ })
+}
+
+// _.template provides the generated function source, when a SyntaxError occurs
+func Test_underscore_utility_9(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('_.template provides the generated function source, when a SyntaxError occurs', function() {
+ try {
+ _.template('<b><%= if x %></b>');
+ } catch (ex) {
+ var source = ex.source;
+ }
+ ok(/__p/.test(source));
+ });
+ `)
+ })
+}
+
+// _.template handles \\u2028 & \\u2029
+func Test_underscore_utility_10(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('_.template handles \\u2028 & \\u2029', function() {
+ var tmpl = _.template('<p>\u2028<%= "\\u2028\\u2029" %>\u2029</p>');
+ strictEqual(tmpl(), '<p>\u2028\u2028\u2029\u2029</p>');
+ });
+ `)
+ })
+}
+
+// result calls functions and returns primitives
+func Test_underscore_utility_11(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('result calls functions and returns primitives', function() {
+ var obj = {w: '', x: 'x', y: function(){ return this.x; }};
+ strictEqual(_.result(obj, 'w'), '');
+ strictEqual(_.result(obj, 'x'), 'x');
+ strictEqual(_.result(obj, 'y'), 'x');
+ strictEqual(_.result(obj, 'z'), undefined);
+ strictEqual(_.result(null, 'x'), null);
+ });
+ `)
+ })
+}
+
+// _.templateSettings.variable
+func Test_underscore_utility_12(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('_.templateSettings.variable', function() {
+ var s = '<%=data.x%>';
+ var data = {x: 'x'};
+ strictEqual(_.template(s, data, {variable: 'data'}), 'x');
+ _.templateSettings.variable = 'data';
+ strictEqual(_.template(s)(data), 'x');
+ });
+ `)
+ })
+}
+
+// #547 - _.templateSettings is unchanged by custom settings.
+func Test_underscore_utility_13(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('#547 - _.templateSettings is unchanged by custom settings.', function() {
+ ok(!_.templateSettings.variable);
+ _.template('', {}, {variable: 'x'});
+ ok(!_.templateSettings.variable);
+ });
+ `)
+ })
+}
+
+// #556 - undefined template variables.
+func Test_underscore_utility_14(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('#556 - undefined template variables.', function() {
+ var template = _.template('<%=x%>');
+ strictEqual(template({x: null}), '');
+ strictEqual(template({x: undefined}), '');
+
+ var templateEscaped = _.template('<%-x%>');
+ strictEqual(templateEscaped({x: null}), '');
+ strictEqual(templateEscaped({x: undefined}), '');
+
+ var templateWithProperty = _.template('<%=x.foo%>');
+ strictEqual(templateWithProperty({x: {} }), '');
+ strictEqual(templateWithProperty({x: {} }), '');
+
+ var templateWithPropertyEscaped = _.template('<%-x.foo%>');
+ strictEqual(templateWithPropertyEscaped({x: {} }), '');
+ strictEqual(templateWithPropertyEscaped({x: {} }), '');
+ });
+ `)
+ })
+}
+
+// interpolate evaluates code only once.
+func Test_underscore_utility_15(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('interpolate evaluates code only once.', 2, function() {
+ var count = 0;
+ var template = _.template('<%= f() %>');
+ template({f: function(){ ok(!(count++)); }});
+
+ var countEscaped = 0;
+ var templateEscaped = _.template('<%- f() %>');
+ templateEscaped({f: function(){ ok(!(countEscaped++)); }});
+ });
+ `)
+ })
+}
+
+// #746 - _.template settings are not modified.
+func Test_underscore_utility_16(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('#746 - _.template settings are not modified.', 1, function() {
+ var settings = {};
+ _.template('', null, settings);
+ deepEqual(settings, {});
+ });
+ `)
+ })
+}
+
+// #779 - delimeters are applied to unescaped text.
+func Test_underscore_utility_17(t *testing.T) {
+ tt(t, func() {
+ test, _ := test_()
+
+ test(`
+ test('#779 - delimeters are applied to unescaped text.', 1, function() {
+ var template = _.template('<<\nx\n>>', null, {evaluate: /<<(.*?)>>/g});
+ strictEqual(template(), '<<\nx\n>>');
+ });
+ `)
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/value.go b/Godeps/_workspace/src/github.com/obscuren/otto/value.go
new file mode 100644
index 000000000..5944126fd
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/value.go
@@ -0,0 +1,956 @@
+package otto
+
+import (
+ "fmt"
+ "math"
+ "reflect"
+ "strconv"
+ "unicode/utf16"
+)
+
+type _valueType int
+
+const (
+ valueEmpty _valueType = iota
+ valueNull
+ valueUndefined
+ valueNumber
+ valueString
+ valueBoolean
+ valueObject
+ valueResult
+ valueReference
+)
+
+// Value is the representation of a JavaScript value.
+type Value struct {
+ _valueType
+ value interface{}
+}
+
+// ToValue will convert an interface{} value to a value digestible by otto/JavaScript
+// This function will not work for advanced types (struct, map, slice/array, etc.) and
+// you probably should not use it.
+//
+// ToValue may be deprecated and removed in the near future.
+//
+// Try Otto.ToValue for a replacement.
+func ToValue(value interface{}) (Value, error) {
+ result := UndefinedValue()
+ err := catchPanic(func() {
+ result = toValue(value)
+ })
+ return result, err
+}
+
+// Empty
+
+func emptyValue() Value {
+ return Value{_valueType: valueEmpty}
+}
+
+func (value Value) isEmpty() bool {
+ return value._valueType == valueEmpty
+}
+
+// Undefined
+
+// UndefinedValue will return a Value representing undefined.
+func UndefinedValue() Value {
+ return Value{_valueType: valueUndefined}
+}
+
+// IsDefined will return false if the value is undefined, and true otherwise.
+func (value Value) IsDefined() bool {
+ return value._valueType != valueUndefined
+}
+
+// IsUndefined will return true if the value is undefined, and false otherwise.
+func (value Value) IsUndefined() bool {
+ return value._valueType == valueUndefined
+}
+
+// NullValue will return a Value representing null.
+func NullValue() Value {
+ return Value{_valueType: valueNull}
+}
+
+// IsNull will return true if the value is null, and false otherwise.
+func (value Value) IsNull() bool {
+ return value._valueType == valueNull
+}
+
+// ---
+
+func (value Value) isCallable() bool {
+ switch value := value.value.(type) {
+ case *_object:
+ return value.functionValue().call != nil
+ }
+ return false
+}
+
+func (value Value) isResult() bool {
+ return value._valueType == valueResult
+}
+
+func (value Value) isReference() bool {
+ return value._valueType == valueReference
+}
+
+// Call the value as a function with the given this value and argument list and
+// return the result of invocation. It is essentially equivalent to:
+//
+// value.apply(thisValue, argumentList)
+//
+// An undefined value and an error will result if:
+//
+// 1. There is an error during conversion of the argument list
+// 2. The value is not actually a function
+// 3. An (uncaught) exception is thrown
+//
+func (value Value) Call(this Value, argumentList ...interface{}) (Value, error) {
+ result := UndefinedValue()
+ err := catchPanic(func() {
+ result = value.call(this, argumentList...)
+ })
+ return result, err
+}
+
+func (value Value) call(this Value, argumentList ...interface{}) Value {
+ switch function := value.value.(type) {
+ case *_object:
+ return function.Call(this, argumentList...)
+ }
+ panic(newTypeError())
+}
+
+func (value Value) constructSafe(this Value, argumentList ...interface{}) (Value, error) {
+ result := UndefinedValue()
+ err := catchPanic(func() {
+ result = value.construct(this, argumentList...)
+ })
+ return result, err
+}
+
+func (value Value) construct(this Value, argumentList ...interface{}) Value {
+ switch function := value.value.(type) {
+ case *_object:
+ return function.Construct(this, argumentList...)
+ }
+ panic(newTypeError())
+}
+
+// IsPrimitive will return true if value is a primitive (any kind of primitive).
+func (value Value) IsPrimitive() bool {
+ return !value.IsObject()
+}
+
+// IsBoolean will return true if value is a boolean (primitive).
+func (value Value) IsBoolean() bool {
+ return value._valueType == valueBoolean
+}
+
+// IsNumber will return true if value is a number (primitive).
+func (value Value) IsNumber() bool {
+ return value._valueType == valueNumber
+}
+
+// IsNaN will return true if value is NaN (or would convert to NaN).
+func (value Value) IsNaN() bool {
+ switch value := value.value.(type) {
+ case float64:
+ return math.IsNaN(value)
+ case float32:
+ return math.IsNaN(float64(value))
+ case int, int8, int32, int64:
+ return false
+ case uint, uint8, uint32, uint64:
+ return false
+ }
+
+ return math.IsNaN(toFloat(value))
+}
+
+// IsString will return true if value is a string (primitive).
+func (value Value) IsString() bool {
+ return value._valueType == valueString
+}
+
+// IsObject will return true if value is an object.
+func (value Value) IsObject() bool {
+ return value._valueType == valueObject
+}
+
+// IsFunction will return true if value is a function.
+func (value Value) IsFunction() bool {
+ if value._valueType != valueObject {
+ return false
+ }
+ return value.value.(*_object).class == "Function"
+}
+
+// Class will return the class string of the value or the empty string if value is not an object.
+//
+// The return value will (generally) be one of:
+//
+// Object
+// Function
+// Array
+// String
+// Number
+// Boolean
+// Date
+// RegExp
+//
+func (value Value) Class() string {
+ if value._valueType != valueObject {
+ return ""
+ }
+ return value.value.(*_object).class
+}
+
+func (value Value) isArray() bool {
+ if value._valueType != valueObject {
+ return false
+ }
+ return isArray(value.value.(*_object))
+}
+
+func (value Value) isStringObject() bool {
+ if value._valueType != valueObject {
+ return false
+ }
+ return value.value.(*_object).class == "String"
+}
+
+func (value Value) isBooleanObject() bool {
+ if value._valueType != valueObject {
+ return false
+ }
+ return value.value.(*_object).class == "Boolean"
+}
+
+func (value Value) isNumberObject() bool {
+ if value._valueType != valueObject {
+ return false
+ }
+ return value.value.(*_object).class == "Number"
+}
+
+func (value Value) isDate() bool {
+ if value._valueType != valueObject {
+ return false
+ }
+ return value.value.(*_object).class == "Date"
+}
+
+func (value Value) isRegExp() bool {
+ if value._valueType != valueObject {
+ return false
+ }
+ return value.value.(*_object).class == "RegExp"
+}
+
+func (value Value) isError() bool {
+ if value._valueType != valueObject {
+ return false
+ }
+ return value.value.(*_object).class == "Error"
+}
+
+// ---
+
+func toValue_reflectValuePanic(value interface{}, kind reflect.Kind) {
+ switch kind {
+ case reflect.Struct:
+ panic(newTypeError("Invalid value (struct): Missing runtime: %v (%T)", value, value))
+ case reflect.Map:
+ panic(newTypeError("Invalid value (map): Missing runtime: %v (%T)", value, value))
+ case reflect.Slice:
+ panic(newTypeError("Invalid value (slice): Missing runtime: %v (%T)", value, value))
+ }
+}
+
+func toValue(value interface{}) Value {
+ switch value := value.(type) {
+ case Value:
+ return value
+ case bool:
+ return Value{valueBoolean, value}
+ case int:
+ return Value{valueNumber, value}
+ case int8:
+ return Value{valueNumber, value}
+ case int16:
+ return Value{valueNumber, value}
+ case int32:
+ return Value{valueNumber, value}
+ case int64:
+ return Value{valueNumber, value}
+ case uint:
+ return Value{valueNumber, value}
+ case uint8:
+ return Value{valueNumber, value}
+ case uint16:
+ return Value{valueNumber, value}
+ case uint32:
+ return Value{valueNumber, value}
+ case uint64:
+ return Value{valueNumber, value}
+ case float32:
+ return Value{valueNumber, float64(value)}
+ case float64:
+ return Value{valueNumber, value}
+ case []uint16:
+ return Value{valueString, value}
+ case string:
+ return Value{valueString, value}
+ // A rune is actually an int32, which is handled above
+ case *_object:
+ return Value{valueObject, value}
+ case *Object:
+ return Value{valueObject, value.object}
+ case Object:
+ return Value{valueObject, value.object}
+ case _reference: // reference is an interface (already a pointer)
+ return Value{valueReference, value}
+ case _result:
+ return Value{valueResult, value}
+ case nil:
+ // TODO Ugh.
+ return UndefinedValue()
+ case reflect.Value:
+ for value.Kind() == reflect.Ptr {
+ // We were given a pointer, so we'll drill down until we get a non-pointer
+ //
+ // These semantics might change if we want to start supporting pointers to values transparently
+ // (It would be best not to depend on this behavior)
+ // FIXME: UNDEFINED
+ if value.IsNil() {
+ return UndefinedValue()
+ }
+ value = value.Elem()
+ }
+ switch value.Kind() {
+ case reflect.Bool:
+ return Value{valueBoolean, bool(value.Bool())}
+ case reflect.Int:
+ return Value{valueNumber, int(value.Int())}
+ case reflect.Int8:
+ return Value{valueNumber, int8(value.Int())}
+ case reflect.Int16:
+ return Value{valueNumber, int16(value.Int())}
+ case reflect.Int32:
+ return Value{valueNumber, int32(value.Int())}
+ case reflect.Int64:
+ return Value{valueNumber, int64(value.Int())}
+ case reflect.Uint:
+ return Value{valueNumber, uint(value.Uint())}
+ case reflect.Uint8:
+ return Value{valueNumber, uint8(value.Uint())}
+ case reflect.Uint16:
+ return Value{valueNumber, uint16(value.Uint())}
+ case reflect.Uint32:
+ return Value{valueNumber, uint32(value.Uint())}
+ case reflect.Uint64:
+ return Value{valueNumber, uint64(value.Uint())}
+ case reflect.Float32:
+ return Value{valueNumber, float32(value.Float())}
+ case reflect.Float64:
+ return Value{valueNumber, float64(value.Float())}
+ case reflect.String:
+ return Value{valueString, string(value.String())}
+ default:
+ toValue_reflectValuePanic(value.Interface(), value.Kind())
+ }
+ default:
+ return toValue(reflect.ValueOf(value))
+ }
+ panic(newTypeError("Invalid value: Unsupported: %v (%T)", value, value))
+}
+
+// String will return the value as a string.
+//
+// This method will make return the empty string if there is an error.
+func (value Value) String() string {
+ result := ""
+ catchPanic(func() {
+ result = value.toString()
+ })
+ return result
+}
+
+func (value Value) toBoolean() bool {
+ return toBoolean(value)
+}
+
+func (value Value) isTrue() bool {
+ return toBoolean(value)
+}
+
+// ToBoolean will convert the value to a boolean (bool).
+//
+// ToValue(0).ToBoolean() => false
+// ToValue("").ToBoolean() => false
+// ToValue(true).ToBoolean() => true
+// ToValue(1).ToBoolean() => true
+// ToValue("Nothing happens").ToBoolean() => true
+//
+// If there is an error during the conversion process (like an uncaught exception), then the result will be false and an error.
+func (value Value) ToBoolean() (bool, error) {
+ result := false
+ err := catchPanic(func() {
+ result = toBoolean(value)
+ })
+ return result, err
+}
+
+func (value Value) toNumber() Value {
+ return toNumber(value)
+}
+
+func (value Value) toFloat() float64 {
+ return toFloat(value)
+}
+
+// ToFloat will convert the value to a number (float64).
+//
+// ToValue(0).ToFloat() => 0.
+// ToValue(1.1).ToFloat() => 1.1
+// ToValue("11").ToFloat() => 11.
+//
+// If there is an error during the conversion process (like an uncaught exception), then the result will be 0 and an error.
+func (value Value) ToFloat() (float64, error) {
+ result := float64(0)
+ err := catchPanic(func() {
+ result = toFloat(value)
+ })
+ return result, err
+}
+
+// ToInteger will convert the value to a number (int64).
+//
+// ToValue(0).ToInteger() => 0
+// ToValue(1.1).ToInteger() => 1
+// ToValue("11").ToInteger() => 11
+//
+// If there is an error during the conversion process (like an uncaught exception), then the result will be 0 and an error.
+func (value Value) ToInteger() (int64, error) {
+ result := int64(0)
+ err := catchPanic(func() {
+ result = toInteger(value).value
+ })
+ return result, err
+}
+
+func (value Value) toString() string {
+ return toString(value)
+}
+
+// ToString will convert the value to a string (string).
+//
+// ToValue(0).ToString() => "0"
+// ToValue(false).ToString() => "false"
+// ToValue(1.1).ToString() => "1.1"
+// ToValue("11").ToString() => "11"
+// ToValue('Nothing happens.').ToString() => "Nothing happens."
+//
+// If there is an error during the conversion process (like an uncaught exception), then the result will be the empty string ("") and an error.
+func (value Value) ToString() (string, error) {
+ result := ""
+ err := catchPanic(func() {
+ result = toString(value)
+ })
+ return result, err
+}
+
+func (value Value) _object() *_object {
+ switch value := value.value.(type) {
+ case *_object:
+ return value
+ }
+ return nil
+}
+
+// Object will return the object of the value, or nil if value is not an object.
+//
+// This method will not do any implicit conversion. For example, calling this method on a string primitive value will not return a String object.
+func (value Value) Object() *Object {
+ switch object := value.value.(type) {
+ case *_object:
+ return _newObject(object, value)
+ }
+ return nil
+}
+
+func (value Value) reference() _reference {
+ switch value := value.value.(type) {
+ case _reference:
+ return value
+ }
+ return nil
+}
+
+var (
+ __NaN__ float64 = math.NaN()
+ __PositiveInfinity__ float64 = math.Inf(+1)
+ __NegativeInfinity__ float64 = math.Inf(-1)
+ __PositiveZero__ float64 = 0
+ __NegativeZero__ float64 = math.Float64frombits(0 | (1 << 63))
+)
+
+func positiveInfinity() float64 {
+ return __PositiveInfinity__
+}
+
+func negativeInfinity() float64 {
+ return __NegativeInfinity__
+}
+
+func positiveZero() float64 {
+ return __PositiveZero__
+}
+
+func negativeZero() float64 {
+ return __NegativeZero__
+}
+
+// NaNValue will return a value representing NaN.
+//
+// It is equivalent to:
+//
+// ToValue(math.NaN())
+//
+func NaNValue() Value {
+ return Value{valueNumber, __NaN__}
+}
+
+func positiveInfinityValue() Value {
+ return Value{valueNumber, __PositiveInfinity__}
+}
+
+func negativeInfinityValue() Value {
+ return Value{valueNumber, __NegativeInfinity__}
+}
+
+func positiveZeroValue() Value {
+ return Value{valueNumber, __PositiveZero__}
+}
+
+func negativeZeroValue() Value {
+ return Value{valueNumber, __NegativeZero__}
+}
+
+// TrueValue will return a value representing true.
+//
+// It is equivalent to:
+//
+// ToValue(true)
+//
+func TrueValue() Value {
+ return Value{valueBoolean, true}
+}
+
+// FalseValue will return a value representing false.
+//
+// It is equivalent to:
+//
+// ToValue(false)
+//
+func FalseValue() Value {
+ return Value{valueBoolean, false}
+}
+
+func sameValue(x Value, y Value) bool {
+ if x._valueType != y._valueType {
+ return false
+ }
+ result := false
+ switch x._valueType {
+ case valueUndefined, valueNull:
+ result = true
+ case valueNumber:
+ x := x.toFloat()
+ y := y.toFloat()
+ if math.IsNaN(x) && math.IsNaN(y) {
+ result = true
+ } else {
+ result = x == y
+ if result && x == 0 {
+ // Since +0 != -0
+ result = math.Signbit(x) == math.Signbit(y)
+ }
+ }
+ case valueString:
+ result = x.toString() == y.toString()
+ case valueBoolean:
+ result = x.toBoolean() == y.toBoolean()
+ case valueObject:
+ result = x._object() == y._object()
+ default:
+ panic(hereBeDragons())
+ }
+
+ return result
+}
+
+func strictEqualityComparison(x Value, y Value) bool {
+ if x._valueType != y._valueType {
+ return false
+ }
+ result := false
+ switch x._valueType {
+ case valueUndefined, valueNull:
+ result = true
+ case valueNumber:
+ x := x.toFloat()
+ y := y.toFloat()
+ if math.IsNaN(x) && math.IsNaN(y) {
+ result = false
+ } else {
+ result = x == y
+ }
+ case valueString:
+ result = x.toString() == y.toString()
+ case valueBoolean:
+ result = x.toBoolean() == y.toBoolean()
+ case valueObject:
+ result = x._object() == y._object()
+ default:
+ panic(hereBeDragons())
+ }
+
+ return result
+}
+
+// Export will attempt to convert the value to a Go representation
+// and return it via an interface{} kind.
+//
+// WARNING: The interface function will be changing soon to:
+//
+// Export() interface{}
+//
+// If a reasonable conversion is not possible, then the original
+// result is returned.
+//
+// undefined -> otto.Value (UndefinedValue())
+// null -> interface{}(nil)
+// boolean -> bool
+// number -> A number type (int, float32, uint64, ...)
+// string -> string
+// Array -> []interface{}
+// Object -> map[string]interface{}
+//
+func (self Value) Export() (interface{}, error) {
+ return self.export(), nil
+}
+
+func (self Value) export() interface{} {
+
+ switch self._valueType {
+ case valueUndefined:
+ return nil
+ case valueNull:
+ return nil
+ case valueNumber, valueBoolean:
+ return self.value
+ case valueString:
+ switch value := self.value.(type) {
+ case string:
+ return value
+ case []uint16:
+ return string(utf16.Decode(value))
+ }
+ case valueObject:
+ object := self._object()
+ switch value := object.value.(type) {
+ case *_goStructObject:
+ return value.value.Interface()
+ case *_goMapObject:
+ return value.value.Interface()
+ case *_goArrayObject:
+ return value.value.Interface()
+ case *_goSliceObject:
+ return value.value.Interface()
+ }
+ if object.class == "Array" {
+ result := make([]interface{}, 0)
+ lengthValue := object.get("length")
+ length := lengthValue.value.(uint32)
+ for index := uint32(0); index < length; index += 1 {
+ name := strconv.FormatInt(int64(index), 10)
+ if !object.hasProperty(name) {
+ continue
+ }
+ value := object.get(name)
+ result = append(result, value.export())
+ }
+ return result
+ } else {
+ result := make(map[string]interface{})
+ // TODO Should we export everything? Or just what is enumerable?
+ object.enumerate(false, func(name string) bool {
+ value := object.get(name)
+ if value.IsDefined() {
+ result[name] = value.export()
+ }
+ return true
+ })
+ return result
+ }
+ }
+
+ return self
+}
+
+func (self Value) evaluateBreakContinue(labels []string) _resultKind {
+ result := self.value.(_result)
+ if result.kind == resultBreak || result.kind == resultContinue {
+ for _, label := range labels {
+ if label == result.target {
+ return result.kind
+ }
+ }
+ }
+ return resultReturn
+}
+
+func (self Value) evaluateBreak(labels []string) _resultKind {
+ result := self.value.(_result)
+ if result.kind == resultBreak {
+ for _, label := range labels {
+ if label == result.target {
+ return result.kind
+ }
+ }
+ }
+ return resultReturn
+}
+
+func (self Value) exportNative() interface{} {
+
+ switch self._valueType {
+ case valueUndefined:
+ return self
+ case valueNull:
+ return nil
+ case valueNumber, valueBoolean:
+ return self.value
+ case valueString:
+ switch value := self.value.(type) {
+ case string:
+ return value
+ case []uint16:
+ return string(utf16.Decode(value))
+ }
+ case valueObject:
+ object := self._object()
+ switch value := object.value.(type) {
+ case *_goStructObject:
+ return value.value.Interface()
+ case *_goMapObject:
+ return value.value.Interface()
+ case *_goArrayObject:
+ return value.value.Interface()
+ case *_goSliceObject:
+ return value.value.Interface()
+ }
+ }
+
+ return self
+}
+
+func (value Value) toReflectValue(kind reflect.Kind) (reflect.Value, error) {
+ switch kind {
+ case reflect.Bool:
+ return reflect.ValueOf(value.toBoolean()), nil
+ case reflect.Int:
+ // We convert to float64 here because converting to int64 will not tell us
+ // if a value is outside the range of int64
+ tmp := toIntegerFloat(value)
+ if tmp < float_minInt || tmp > float_maxInt {
+ return reflect.Value{}, fmt.Errorf("RangeError: %d (%v) to int", tmp, value)
+ } else {
+ return reflect.ValueOf(int(tmp)), nil
+ }
+ case reflect.Int8:
+ tmp := toInteger(value).value
+ if tmp < int64_minInt8 || tmp > int64_maxInt8 {
+ return reflect.Value{}, fmt.Errorf("RangeError: %d (%v) to int8", tmp, value)
+ } else {
+ return reflect.ValueOf(int8(tmp)), nil
+ }
+ case reflect.Int16:
+ tmp := toInteger(value).value
+ if tmp < int64_minInt16 || tmp > int64_maxInt16 {
+ return reflect.Value{}, fmt.Errorf("RangeError: %d (%v) to int16", tmp, value)
+ } else {
+ return reflect.ValueOf(int16(tmp)), nil
+ }
+ case reflect.Int32:
+ tmp := toInteger(value).value
+ if tmp < int64_minInt32 || tmp > int64_maxInt32 {
+ return reflect.Value{}, fmt.Errorf("RangeError: %d (%v) to int32", tmp, value)
+ } else {
+ return reflect.ValueOf(int32(tmp)), nil
+ }
+ case reflect.Int64:
+ // We convert to float64 here because converting to int64 will not tell us
+ // if a value is outside the range of int64
+ tmp := toIntegerFloat(value)
+ if tmp < float_minInt64 || tmp > float_maxInt64 {
+ return reflect.Value{}, fmt.Errorf("RangeError: %d (%v) to int", tmp, value)
+ } else {
+ return reflect.ValueOf(int64(tmp)), nil
+ }
+ case reflect.Uint:
+ // We convert to float64 here because converting to int64 will not tell us
+ // if a value is outside the range of uint
+ tmp := toIntegerFloat(value)
+ if tmp < 0 || tmp > float_maxUint {
+ return reflect.Value{}, fmt.Errorf("RangeError: %d (%v) to uint", tmp, value)
+ } else {
+ return reflect.ValueOf(uint(tmp)), nil
+ }
+ case reflect.Uint8:
+ tmp := toInteger(value).value
+ if tmp < 0 || tmp > int64_maxUint8 {
+ return reflect.Value{}, fmt.Errorf("RangeError: %d (%v) to uint8", tmp, value)
+ } else {
+ return reflect.ValueOf(uint8(tmp)), nil
+ }
+ case reflect.Uint16:
+ tmp := toInteger(value).value
+ if tmp < 0 || tmp > int64_maxUint16 {
+ return reflect.Value{}, fmt.Errorf("RangeError: %d (%v) to uint16", tmp, value)
+ } else {
+ return reflect.ValueOf(uint16(tmp)), nil
+ }
+ case reflect.Uint32:
+ tmp := toInteger(value).value
+ if tmp < 0 || tmp > int64_maxUint32 {
+ return reflect.Value{}, fmt.Errorf("RangeError: %d (%v) to uint32", tmp, value)
+ } else {
+ return reflect.ValueOf(uint32(tmp)), nil
+ }
+ case reflect.Uint64:
+ // We convert to float64 here because converting to int64 will not tell us
+ // if a value is outside the range of uint64
+ tmp := toIntegerFloat(value)
+ if tmp < 0 || tmp > float_maxUint64 {
+ return reflect.Value{}, fmt.Errorf("RangeError: %f (%v) to uint64", tmp, value)
+ } else {
+ return reflect.ValueOf(uint64(tmp)), nil
+ }
+ case reflect.Float32:
+ tmp := toFloat(value)
+ tmp1 := tmp
+ if 0 > tmp1 {
+ tmp1 = -tmp1
+ }
+ if tmp1 < math.SmallestNonzeroFloat32 || tmp1 > math.MaxFloat32 {
+ return reflect.Value{}, fmt.Errorf("RangeError: %f (%v) to float32", tmp, value)
+ } else {
+ return reflect.ValueOf(float32(tmp)), nil
+ }
+ case reflect.Float64:
+ value := toFloat(value)
+ return reflect.ValueOf(float64(value)), nil
+ case reflect.String:
+ return reflect.ValueOf(value.toString()), nil
+ case reflect.Interface:
+ return reflect.ValueOf(value.exportNative()), nil
+ }
+
+ dbgf("%/panic//%@: Invalid: (%v) to reflect.Kind: %v", value, kind)
+ panic("")
+}
+
+func stringToReflectValue(value string, kind reflect.Kind) (reflect.Value, error) {
+ switch kind {
+ case reflect.Bool:
+ value, err := strconv.ParseBool(value)
+ if err != nil {
+ return reflect.Value{}, err
+ }
+ return reflect.ValueOf(value), nil
+ case reflect.Int:
+ value, err := strconv.ParseInt(value, 0, 0)
+ if err != nil {
+ return reflect.Value{}, err
+ }
+ return reflect.ValueOf(int(value)), nil
+ case reflect.Int8:
+ value, err := strconv.ParseInt(value, 0, 8)
+ if err != nil {
+ return reflect.Value{}, err
+ }
+ return reflect.ValueOf(int8(value)), nil
+ case reflect.Int16:
+ value, err := strconv.ParseInt(value, 0, 16)
+ if err != nil {
+ return reflect.Value{}, err
+ }
+ return reflect.ValueOf(int16(value)), nil
+ case reflect.Int32:
+ value, err := strconv.ParseInt(value, 0, 32)
+ if err != nil {
+ return reflect.Value{}, err
+ }
+ return reflect.ValueOf(int32(value)), nil
+ case reflect.Int64:
+ value, err := strconv.ParseInt(value, 0, 64)
+ if err != nil {
+ return reflect.Value{}, err
+ }
+ return reflect.ValueOf(int64(value)), nil
+ case reflect.Uint:
+ value, err := strconv.ParseUint(value, 0, 0)
+ if err != nil {
+ return reflect.Value{}, err
+ }
+ return reflect.ValueOf(uint(value)), nil
+ case reflect.Uint8:
+ value, err := strconv.ParseUint(value, 0, 8)
+ if err != nil {
+ return reflect.Value{}, err
+ }
+ return reflect.ValueOf(uint8(value)), nil
+ case reflect.Uint16:
+ value, err := strconv.ParseUint(value, 0, 16)
+ if err != nil {
+ return reflect.Value{}, err
+ }
+ return reflect.ValueOf(uint16(value)), nil
+ case reflect.Uint32:
+ value, err := strconv.ParseUint(value, 0, 32)
+ if err != nil {
+ return reflect.Value{}, err
+ }
+ return reflect.ValueOf(uint32(value)), nil
+ case reflect.Uint64:
+ value, err := strconv.ParseUint(value, 0, 64)
+ if err != nil {
+ return reflect.Value{}, err
+ }
+ return reflect.ValueOf(uint64(value)), nil
+ case reflect.Float32:
+ value, err := strconv.ParseFloat(value, 32)
+ if err != nil {
+ return reflect.Value{}, err
+ }
+ return reflect.ValueOf(float32(value)), nil
+ case reflect.Float64:
+ value, err := strconv.ParseFloat(value, 64)
+ if err != nil {
+ return reflect.Value{}, err
+ }
+ return reflect.ValueOf(float64(value)), nil
+ case reflect.String:
+ return reflect.ValueOf(value), nil
+ }
+
+ dbgf("%/panic//%@: Invalid: \"%s\" to reflect.Kind: %v", value, kind)
+ panic("")
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/value_boolean.go b/Godeps/_workspace/src/github.com/obscuren/otto/value_boolean.go
new file mode 100644
index 000000000..da8e951fe
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/value_boolean.go
@@ -0,0 +1,49 @@
+package otto
+
+import (
+ "fmt"
+ "math"
+ "reflect"
+)
+
+func toBoolean(value Value) bool {
+ if value._valueType == valueBoolean {
+ return value.value.(bool)
+ }
+ if value.IsUndefined() {
+ return false
+ }
+ if value.IsNull() {
+ return false
+ }
+ switch value := value.value.(type) {
+ case bool:
+ return value
+ case int, int8, int16, int32, int64:
+ return 0 != reflect.ValueOf(value).Int()
+ case uint, uint8, uint16, uint32, uint64:
+ return 0 != reflect.ValueOf(value).Uint()
+ case float32:
+ return 0 != value
+ case float64:
+ if math.IsNaN(value) || value == 0 {
+ return false
+ }
+ return true
+ case string:
+ return 0 != len(value)
+ }
+ if value.IsObject() {
+ return true
+ }
+ panic(fmt.Errorf("toBoolean(%T)", value.value))
+}
+
+func stringToBoolean(value string) bool {
+ if value == "true" {
+ return true
+ } else if value == "false" {
+ return false
+ }
+ panic(fmt.Errorf("stringToBoolean(%s)", value))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/value_number.go b/Godeps/_workspace/src/github.com/obscuren/otto/value_number.go
new file mode 100644
index 000000000..badb3a542
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/value_number.go
@@ -0,0 +1,335 @@
+package otto
+
+import (
+ "fmt"
+ "math"
+ "regexp"
+ "strconv"
+ "strings"
+)
+
+var stringToNumberParseInteger = regexp.MustCompile(`^(?:0[xX])`)
+
+func stringToFloat(value string) float64 {
+ value = strings.TrimSpace(value)
+
+ if value == "" {
+ return 0
+ }
+
+ parseFloat := false
+ if strings.IndexRune(value, '.') != -1 {
+ parseFloat = true
+ } else if stringToNumberParseInteger.MatchString(value) {
+ parseFloat = false
+ } else {
+ parseFloat = true
+ }
+
+ if parseFloat {
+ number, err := strconv.ParseFloat(value, 64)
+ if err != nil && err.(*strconv.NumError).Err != strconv.ErrRange {
+ return math.NaN()
+ }
+ return number
+ }
+
+ number, err := strconv.ParseInt(value, 0, 64)
+ if err != nil {
+ return math.NaN()
+ }
+ return float64(number)
+}
+
+func toNumber(value Value) Value {
+ if value._valueType == valueNumber {
+ return value
+ }
+ return Value{valueNumber, toFloat(value)}
+}
+
+func toFloat(value Value) float64 {
+ switch value._valueType {
+ case valueUndefined:
+ return math.NaN()
+ case valueNull:
+ return 0
+ }
+ switch value := value.value.(type) {
+ case bool:
+ if value {
+ return 1
+ }
+ return 0
+ case int:
+ return float64(value)
+ case int8:
+ return float64(value)
+ case int16:
+ return float64(value)
+ case int32:
+ return float64(value)
+ case int64:
+ return float64(value)
+ case uint:
+ return float64(value)
+ case uint8:
+ return float64(value)
+ case uint16:
+ return float64(value)
+ case uint32:
+ return float64(value)
+ case uint64:
+ return float64(value)
+ case float64:
+ return value
+ case string:
+ return stringToFloat(value)
+ case *_object:
+ return toFloat(value.DefaultValue(defaultValueHintNumber))
+ }
+ panic(fmt.Errorf("toFloat(%T)", value.value))
+}
+
+const (
+ float_2_64 float64 = 18446744073709551616.0
+ float_2_63 float64 = 9223372036854775808.0
+ float_2_32 float64 = 4294967296.0
+ float_2_31 float64 = 2147483648.0
+ float_2_16 float64 = 65536.0
+ integer_2_32 int64 = 4294967296
+ integer_2_31 int64 = 2146483648
+ sqrt1_2 float64 = math.Sqrt2 / 2
+)
+
+const (
+ maxInt8 = math.MaxInt8
+ minInt8 = math.MinInt8
+ maxInt16 = math.MaxInt16
+ minInt16 = math.MinInt16
+ maxInt32 = math.MaxInt32
+ minInt32 = math.MinInt32
+ maxInt64 = math.MaxInt64
+ minInt64 = math.MinInt64
+ maxUint8 = math.MaxUint8
+ maxUint16 = math.MaxUint16
+ maxUint32 = math.MaxUint32
+ maxUint64 = math.MaxUint64
+ maxUint = ^uint(0)
+ minUint = 0
+ maxInt = int(^uint(0) >> 1)
+ minInt = -maxInt - 1
+
+ // int64
+ int64_maxInt int64 = int64(maxInt)
+ int64_minInt int64 = int64(minInt)
+ int64_maxInt8 int64 = math.MaxInt8
+ int64_minInt8 int64 = math.MinInt8
+ int64_maxInt16 int64 = math.MaxInt16
+ int64_minInt16 int64 = math.MinInt16
+ int64_maxInt32 int64 = math.MaxInt32
+ int64_minInt32 int64 = math.MinInt32
+ int64_maxUint8 int64 = math.MaxUint8
+ int64_maxUint16 int64 = math.MaxUint16
+ int64_maxUint32 int64 = math.MaxUint32
+
+ // float64
+ float_maxInt float64 = float64(int(^uint(0) >> 1))
+ float_minInt float64 = float64(int(-maxInt - 1))
+ float_minUint float64 = float64(0)
+ float_maxUint float64 = float64(uint(^uint(0)))
+ float_minUint64 float64 = float64(0)
+ float_maxUint64 float64 = math.MaxUint64
+ float_maxInt64 float64 = math.MaxInt64
+ float_minInt64 float64 = math.MinInt64
+)
+
+func toIntegerFloat(value Value) float64 {
+ float := value.toFloat()
+ if math.IsInf(float, 0) {
+ } else if math.IsNaN(float) {
+ float = 0
+ } else if float > 0 {
+ float = math.Floor(float)
+ } else {
+ float = math.Ceil(float)
+ }
+ return float
+}
+
+type _integerKind int
+
+const (
+ integerValid _integerKind = iota // 3.0 => 3.0
+ integerFloat // 3.14159 => 3.0
+ integerInfinite // Infinity => 2**63-1
+ integerInvalid // NaN => 0
+)
+
+type _integer struct {
+ _integerKind
+ value int64
+}
+
+func (self _integer) valid() bool {
+ return self._integerKind == integerValid || self._integerKind == integerFloat
+}
+
+func (self _integer) exact() bool {
+ return self._integerKind == integerValid
+}
+
+func (self _integer) infinite() bool {
+ return self._integerKind == integerInfinite
+}
+
+func toInteger(value Value) (integer _integer) {
+ switch value := value.value.(type) {
+ case int8:
+ integer.value = int64(value)
+ return
+ case int16:
+ integer.value = int64(value)
+ return
+ case uint8:
+ integer.value = int64(value)
+ return
+ case uint16:
+ integer.value = int64(value)
+ return
+ case uint32:
+ integer.value = int64(value)
+ return
+ case int:
+ integer.value = int64(value)
+ return
+ case int64:
+ integer.value = value
+ return
+ }
+ {
+ value := value.toFloat()
+ if value == 0 {
+ return
+ }
+ if math.IsNaN(value) {
+ integer._integerKind = integerInvalid
+ return
+ }
+ if math.IsInf(value, 0) {
+ integer._integerKind = integerInfinite
+ }
+ if value >= float_maxInt64 {
+ integer.value = math.MaxInt64
+ return
+ }
+ if value <= float_minInt64 {
+ integer.value = math.MinInt64
+ return
+ }
+ {
+ value0 := value
+ value1 := float64(0)
+ if value0 > 0 {
+ value1 = math.Floor(value0)
+ } else {
+ value1 = math.Ceil(value0)
+ }
+
+ if value0 != value1 {
+ integer._integerKind = integerFloat
+ }
+ integer.value = int64(value1)
+ return
+ }
+ }
+}
+
+// ECMA 262: 9.5
+func toInt32(value Value) int32 {
+ {
+ switch value := value.value.(type) {
+ case int8:
+ return int32(value)
+ case int16:
+ return int32(value)
+ case int32:
+ return value
+ }
+ }
+ floatValue := value.toFloat()
+ if math.IsNaN(floatValue) || math.IsInf(floatValue, 0) {
+ return 0
+ }
+ if floatValue == 0 { // This will work for +0 & -0
+ return 0
+ }
+ remainder := math.Mod(floatValue, float_2_32)
+ if remainder > 0 {
+ remainder = math.Floor(remainder)
+ } else {
+ remainder = math.Ceil(remainder) + float_2_32
+ }
+ if remainder > float_2_31 {
+ return int32(remainder - float_2_32)
+ }
+ return int32(remainder)
+}
+
+func toUint32(value Value) uint32 {
+ {
+ switch value := value.value.(type) {
+ case int8:
+ return uint32(value)
+ case int16:
+ return uint32(value)
+ case uint8:
+ return uint32(value)
+ case uint16:
+ return uint32(value)
+ case uint32:
+ return value
+ }
+ }
+ floatValue := value.toFloat()
+ if math.IsNaN(floatValue) || math.IsInf(floatValue, 0) {
+ return 0
+ }
+ if floatValue == 0 {
+ return 0
+ }
+ remainder := math.Mod(floatValue, float_2_32)
+ if remainder > 0 {
+ remainder = math.Floor(remainder)
+ } else {
+ remainder = math.Ceil(remainder) + float_2_32
+ }
+ return uint32(remainder)
+}
+
+func toUint16(value Value) uint16 {
+ {
+ switch value := value.value.(type) {
+ case int8:
+ return uint16(value)
+ case uint8:
+ return uint16(value)
+ case uint16:
+ return value
+ }
+ }
+ floatValue := value.toFloat()
+ if math.IsNaN(floatValue) || math.IsInf(floatValue, 0) {
+ return 0
+ }
+ if floatValue == 0 {
+ return 0
+ }
+ remainder := math.Mod(floatValue, float_2_16)
+ if remainder > 0 {
+ remainder = math.Floor(remainder)
+ } else {
+ remainder = math.Ceil(remainder) + float_2_16
+ }
+ return uint16(remainder)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/value_primitive.go b/Godeps/_workspace/src/github.com/obscuren/otto/value_primitive.go
new file mode 100644
index 000000000..1f85fb06b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/value_primitive.go
@@ -0,0 +1,23 @@
+package otto
+
+func toStringPrimitive(value Value) Value {
+ return _toPrimitive(value, defaultValueHintString)
+}
+
+func toNumberPrimitive(value Value) Value {
+ return _toPrimitive(value, defaultValueHintNumber)
+}
+
+func toPrimitive(value Value) Value {
+ return _toPrimitive(value, defaultValueNoHint)
+}
+
+func _toPrimitive(value Value, hint _defaultValueHint) Value {
+ switch value._valueType {
+ case valueNull, valueUndefined, valueNumber, valueString, valueBoolean:
+ return value
+ case valueObject:
+ return value._object().DefaultValue(hint)
+ }
+ panic(hereBeDragons(value._valueType, value))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/value_string.go b/Godeps/_workspace/src/github.com/obscuren/otto/value_string.go
new file mode 100644
index 000000000..39749cce2
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/value_string.go
@@ -0,0 +1,101 @@
+package otto
+
+import (
+ "fmt"
+ "math"
+ "regexp"
+ "strconv"
+ "unicode/utf16"
+)
+
+var matchLeading0Exponent = regexp.MustCompile(`([eE][\+\-])0+([1-9])`) // 1e-07 => 1e-7
+
+func floatToString(value float64, bitsize int) string {
+ // TODO Fit to ECMA-262 9.8.1 specification
+ if math.IsNaN(value) {
+ return "NaN"
+ } else if math.IsInf(value, 0) {
+ if math.Signbit(value) {
+ return "-Infinity"
+ }
+ return "Infinity"
+ }
+ exponent := math.Log10(math.Abs(value))
+ if exponent >= 21 || exponent < -6 {
+ return matchLeading0Exponent.ReplaceAllString(strconv.FormatFloat(value, 'g', -1, bitsize), "$1$2")
+ }
+ return strconv.FormatFloat(value, 'f', -1, bitsize)
+}
+
+func numberToStringRadix(value Value, radix int) string {
+ float := toFloat(value)
+ if math.IsNaN(float) {
+ return "NaN"
+ } else if math.IsInf(float, 1) {
+ return "Infinity"
+ } else if math.IsInf(float, -1) {
+ return "-Infinity"
+ }
+ // FIXME This is very broken
+ // Need to do proper radix conversion for floats, ...
+ // This truncates large floats (so bad).
+ return strconv.FormatInt(int64(float), radix)
+}
+
+func toString(value Value) string {
+ if value._valueType == valueString {
+ switch value := value.value.(type) {
+ case string:
+ return value
+ case []uint16:
+ return string(utf16.Decode(value))
+ }
+ }
+ if value.IsUndefined() {
+ return "undefined"
+ }
+ if value.IsNull() {
+ return "null"
+ }
+ switch value := value.value.(type) {
+ case bool:
+ return strconv.FormatBool(value)
+ case int:
+ return strconv.FormatInt(int64(value), 10)
+ case int8:
+ return strconv.FormatInt(int64(value), 10)
+ case int16:
+ return strconv.FormatInt(int64(value), 10)
+ case int32:
+ return strconv.FormatInt(int64(value), 10)
+ case int64:
+ return strconv.FormatInt(value, 10)
+ case uint:
+ return strconv.FormatUint(uint64(value), 10)
+ case uint8:
+ return strconv.FormatUint(uint64(value), 10)
+ case uint16:
+ return strconv.FormatUint(uint64(value), 10)
+ case uint32:
+ return strconv.FormatUint(uint64(value), 10)
+ case uint64:
+ return strconv.FormatUint(value, 10)
+ case float32:
+ if value == 0 {
+ return "0" // Take care not to return -0
+ }
+ return floatToString(float64(value), 32)
+ case float64:
+ if value == 0 {
+ return "0" // Take care not to return -0
+ }
+ return floatToString(value, 64)
+ case []uint16:
+ return string(utf16.Decode(value))
+ case string:
+ return value
+ case *_object:
+ return toString(value.DefaultValue(defaultValueHintString))
+ }
+ panic(fmt.Errorf("toString(%v %T)", value.value, value.value))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/otto/value_test.go b/Godeps/_workspace/src/github.com/obscuren/otto/value_test.go
new file mode 100644
index 000000000..23d9fd410
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/otto/value_test.go
@@ -0,0 +1,281 @@
+package otto
+
+import (
+ "encoding/json"
+ "math"
+ "testing"
+)
+
+func TestValue(t *testing.T) {
+ tt(t, func() {
+ value := UndefinedValue()
+ is(value.IsUndefined(), true)
+ is(value, UndefinedValue())
+ is(value, "undefined")
+
+ is(toValue(false), false)
+ is(toValue(1), 1)
+ is(toValue(1).toFloat(), float64(1))
+ })
+}
+
+func TestObject(t *testing.T) {
+ tt(t, func() {
+ is(Value{}.isEmpty(), true)
+ //is(newObject().Value(), "[object]")
+ //is(newBooleanObject(false).Value(), "false")
+ //is(newFunctionObject(nil).Value(), "[function]")
+ //is(newNumberObject(1).Value(), "1")
+ //is(newStringObject("Hello, World.").Value(), "Hello, World.")
+ })
+}
+
+type intAlias int
+
+func TestToValue(t *testing.T) {
+ tt(t, func() {
+ _, tester := test()
+ vm := tester.vm
+
+ value, _ := vm.ToValue(nil)
+ is(value, "undefined")
+
+ value, _ = vm.ToValue((*byte)(nil))
+ is(value, "undefined")
+
+ value, _ = vm.ToValue(intAlias(5))
+ is(value, 5)
+
+ {
+ tmp := new(int)
+
+ value, _ = vm.ToValue(&tmp)
+ is(value, 0)
+
+ *tmp = 1
+
+ value, _ = vm.ToValue(&tmp)
+ is(value, 1)
+
+ tmp = nil
+
+ value, _ = vm.ToValue(&tmp)
+ is(value, "undefined")
+ }
+
+ {
+ tmp0 := new(int)
+ tmp1 := &tmp0
+ tmp2 := &tmp1
+
+ value, _ = vm.ToValue(&tmp2)
+ is(value, 0)
+
+ *tmp0 = 1
+
+ value, _ = vm.ToValue(&tmp2)
+ is(value, 1)
+
+ tmp0 = nil
+
+ value, _ = vm.ToValue(&tmp2)
+ is(value, "undefined")
+ }
+ })
+}
+
+func TestToBoolean(t *testing.T) {
+ tt(t, func() {
+ is := func(left interface{}, right bool) {
+ is(toValue(left).toBoolean(), right)
+ }
+
+ is("", false)
+ is("xyzzy", true)
+ is(1, true)
+ is(0, false)
+ //is(toValue(newObject()), true)
+ is(UndefinedValue(), false)
+ is(NullValue(), false)
+ })
+}
+
+func TestToFloat(t *testing.T) {
+ tt(t, func() {
+ {
+ is := func(left interface{}, right float64) {
+ is(toValue(left).toFloat(), right)
+ }
+ is("", 0)
+ is("xyzzy", math.NaN())
+ is("2", 2)
+ is(1, 1)
+ is(0, 0)
+ is(NullValue(), 0)
+ //is(newObjectValue(), math.NaN())
+ }
+ is(math.IsNaN(UndefinedValue().toFloat()), true)
+ })
+}
+
+func TestToString(t *testing.T) {
+ tt(t, func() {
+ is("undefined", UndefinedValue().toString())
+ is("null", NullValue().toString())
+ is("true", toValue(true).toString())
+ is("false", toValue(false).toString())
+
+ is(UndefinedValue(), "undefined")
+ is(NullValue(), "null")
+ is(toValue(true), true)
+ is(toValue(false), false)
+ })
+}
+
+func Test_toInt32(t *testing.T) {
+ tt(t, func() {
+ test := []interface{}{
+ 0, int32(0),
+ 1, int32(1),
+ -2147483649.0, int32(2147483647),
+ -4294967297.0, int32(-1),
+ -4294967296.0, int32(0),
+ -4294967295.0, int32(1),
+ math.Inf(+1), int32(0),
+ math.Inf(-1), int32(0),
+ }
+ for index := 0; index < len(test)/2; index++ {
+ // FIXME terst, Make strict again?
+ is(
+ toInt32(toValue(test[index*2])),
+ test[index*2+1].(int32),
+ )
+ }
+ })
+}
+
+func Test_toUint32(t *testing.T) {
+ tt(t, func() {
+ test := []interface{}{
+ 0, uint32(0),
+ 1, uint32(1),
+ -2147483649.0, uint32(2147483647),
+ -4294967297.0, uint32(4294967295),
+ -4294967296.0, uint32(0),
+ -4294967295.0, uint32(1),
+ math.Inf(+1), uint32(0),
+ math.Inf(-1), uint32(0),
+ }
+ for index := 0; index < len(test)/2; index++ {
+ // FIXME terst, Make strict again?
+ is(
+ toUint32(toValue(test[index*2])),
+ test[index*2+1].(uint32),
+ )
+ }
+ })
+}
+
+func Test_toUint16(t *testing.T) {
+ tt(t, func() {
+ test := []interface{}{
+ 0, uint16(0),
+ 1, uint16(1),
+ -2147483649.0, uint16(65535),
+ -4294967297.0, uint16(65535),
+ -4294967296.0, uint16(0),
+ -4294967295.0, uint16(1),
+ math.Inf(+1), uint16(0),
+ math.Inf(-1), uint16(0),
+ }
+ for index := 0; index < len(test)/2; index++ {
+ // FIXME terst, Make strict again?
+ is(
+ toUint16(toValue(test[index*2])),
+ test[index*2+1].(uint16),
+ )
+ }
+ })
+}
+
+func Test_sameValue(t *testing.T) {
+ tt(t, func() {
+ is(sameValue(positiveZeroValue(), negativeZeroValue()), false)
+ is(sameValue(positiveZeroValue(), toValue(0)), true)
+ is(sameValue(NaNValue(), NaNValue()), true)
+ is(sameValue(NaNValue(), toValue("Nothing happens.")), false)
+ })
+}
+
+func TestExport(t *testing.T) {
+ tt(t, func() {
+ test, vm := test()
+
+ is(test(`null;`).export(), nil)
+ is(test(`undefined;`).export(), nil)
+ is(test(`true;`).export(), true)
+ is(test(`false;`).export(), false)
+ is(test(`0;`).export(), 0)
+ is(test(`3.1459`).export(), 3.1459)
+ is(test(`"Nothing happens";`).export(), "Nothing happens")
+ is(test(`String.fromCharCode(97,98,99,100,101,102)`).export(), "abcdef")
+ {
+ value := test(`({ abc: 1, def: true, ghi: undefined });`).export().(map[string]interface{})
+ is(value["abc"], 1)
+ is(value["def"], true)
+ _, exists := value["ghi"]
+ is(exists, false)
+ }
+ {
+ value := test(`[ "abc", 1, "def", true, undefined, null ];`).export().([]interface{})
+ is(value[0], "abc")
+ is(value[1], 1)
+ is(value[2], "def")
+ is(value[3], true)
+ is(value[4], nil)
+ is(value[5], nil)
+ is(value[5], interface{}(nil))
+ }
+
+ roundtrip := []interface{}{
+ true,
+ false,
+ 0,
+ 3.1459,
+ []interface{}{true, false, 0, 3.1459, "abc"},
+ map[string]interface{}{
+ "Boolean": true,
+ "Number": 3.1459,
+ "String": "abc",
+ "Array": []interface{}{false, 0, "", nil},
+ "Object": map[string]interface{}{
+ "Boolean": false,
+ "Number": 0,
+ "String": "def",
+ },
+ },
+ }
+
+ for _, value := range roundtrip {
+ input, err := json.Marshal(value)
+ is(err, nil)
+
+ output, err := json.Marshal(test("(" + string(input) + ");").export())
+ is(err, nil)
+
+ is(string(input), string(output))
+ }
+
+ {
+ abc := struct {
+ def int
+ ghi interface{}
+ xyz float32
+ }{}
+ abc.def = 3
+ abc.xyz = 3.1459
+ vm.Set("abc", abc)
+ is(test(`abc;`).export(), abc)
+ }
+ })
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/.gitignore b/Godeps/_workspace/src/github.com/obscuren/qml/.gitignore
new file mode 100644
index 000000000..e4b7f45b7
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/.gitignore
@@ -0,0 +1,5 @@
+examples/qmlscene/qmlscene
+examples/snapweb/snapweb
+examples/particle/particle
+gl/gengl/gengl
+*.swp
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/LICENSE b/Godeps/_workspace/src/github.com/obscuren/qml/LICENSE
new file mode 100644
index 000000000..53320c352
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/LICENSE
@@ -0,0 +1,185 @@
+This software is licensed under the LGPLv3, included below.
+
+As a special exception to the GNU Lesser General Public License version 3
+("LGPL3"), the copyright holders of this Library give you permission to
+convey to a third party a Combined Work that links statically or dynamically
+to this Library without providing any Minimal Corresponding Source or
+Minimal Application Code as set out in 4d or providing the installation
+information set out in section 4e, provided that you comply with the other
+provisions of LGPL3 and provided that you meet, for the Application the
+terms and conditions of the license(s) which apply to the Application.
+
+Except as stated in this special exception, the provisions of LGPL3 will
+continue to comply in full to this Library. If you modify this Library, you
+may apply this exception to your version of this Library, but you are not
+obliged to do so. If you do not wish to do so, delete this exception
+statement from your version. This exception does not (and cannot) modify any
+license terms which apply to the Application, with which you must still
+comply.
+
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/README.md b/Godeps/_workspace/src/github.com/obscuren/qml/README.md
new file mode 100644
index 000000000..e969c9e1d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/README.md
@@ -0,0 +1,157 @@
+# QML support for the Go language
+
+Documentation
+-------------
+
+The introductory documentation as well as the detailed API documentation is
+available at [gopkg.in/qml.v1](http://godoc.org/gopkg.in/qml.v1).
+
+
+Blog posts
+----------
+
+Some relevant blog posts:
+
+ * [Announcing qml v1 for Go](http://blog.labix.org/2014/08/13/announcing-qml-v1-for-go)
+ * [Packing resources into Go qml binaries](http://blog.labix.org/2014/09/26/packing-resources-into-go-qml-binaries)
+ * [Go qml contest results](http://blog.labix.org/2014/04/25/qml-contest-results)
+ * [Arbitrary Qt extensions with Go qml](http://blog.labix.org/2014/03/21/arbitrary-qt-extensions-with-go-qml)
+ * [The new Go qml OpenGL API](http://blog.labix.org/2014/08/29/the-new-go-qml-opengl-api)
+ * [QML components with Go and OpenGL](http://blog.labix.org/2013/12/23/qml-components-with-go-and-opengl)
+
+
+Videos
+------
+
+These introductory videos demonstrate the use of Go QML:
+
+ * [Initial demo and overview](http://youtu.be/FVQlMrPa7lI)
+ * [Initial demo running on an Ubuntu Touch phone](http://youtu.be/HB-3o8Cysec)
+ * [Spinning Gopher with Go + QML + OpenGL](http://youtu.be/qkH7_dtOyPk)
+ * [SameGame QML tutorial in Go](http://youtu.be/z8noX48hiMI)
+
+
+Community
+---------
+
+Please join the [mailing list](https://groups.google.com/forum/#!forum/go-qml) for
+following relevant development news and discussing project details.
+
+
+Installation
+------------
+
+To try the alpha release you'll need:
+
+ * Go >= 1.2, for the C++ support of _go build_
+ * Qt 5.0.X or 5.1.X with the development files
+ * The Qt headers qmetaobject_p.h and qmetaobjectbuilder_p.h, for the dynamic meta object support
+
+See below for more details about getting these requirements installed in different environments and operating systems.
+
+After the requirements are satisfied, _go get_ should work as usual:
+
+ go get gopkg.in/qml.v1
+
+
+Requirements on Ubuntu
+----------------------
+
+If you are using Ubuntu, the [Ubuntu SDK](http://developer.ubuntu.com/get-started/) will take care of the Qt dependencies:
+
+ $ sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
+ $ sudo apt-get update
+ $ sudo apt-get install qtdeclarative5-dev qtbase5-private-dev qtdeclarative5-private-dev libqt5opengl5-dev qtdeclarative5-qtquick2-plugin
+
+and Go >= 1.2 may be installed using [godeb](http://blog.labix.org/2013/06/15/in-flight-deb-packages-of-go):
+
+ $ # Pick the right one for your system: 386 or amd64
+ $ ARCH=amd64
+ $ wget -q https://godeb.s3.amazonaws.com/godeb-$ARCH.tar.gz
+ $ tar xzvf godeb-$ARCH.tar.gz
+ godeb
+ $ sudo mv godeb /usr/local/bin
+ $ godeb install
+ $ go get gopkg.in/qml.v1
+
+
+Requirements on Ubuntu Touch
+----------------------------
+
+After following the [installation instructions](https://wiki.ubuntu.com/Touch/Install) for Ubuntu Touch,
+run the following commands to get a working build environment inside the device:
+
+ $ adb shell
+ # cd /tmp
+ # wget https://github.com/go-qml/qml/raw/v1/cmd/ubuntu-touch/setup.sh
+ # /bin/bash setup.sh
+ # su - phablet
+ $
+
+At the end of setup.sh, the phablet user will have GOPATH=$HOME in the environment,
+the qml package will be built, and the particle example will be built and run. For
+stopping it from the command line, run as the phablet user:
+
+ $ ubuntu-app-stop gopkg.in.qml.particle-example
+
+for running it again:
+
+ $ ubuntu-app-launch gopkg.in.qml.particle-example
+
+These commands depend on the following file, installed by setup.sh:
+
+ ~/.local/share/applications/gopkg.in.qml.particle-example.desktop
+
+
+Requirements on Mac OS X
+------------------------
+
+On Mac OS X you'll need QT5. It's easiest to install with Homebrew, a
+third-party package management system for OS X.
+
+Installation instructions for Homebrew are here:
+
+ http://brew.sh/
+
+Then, install the qt5 and pkg-config packages:
+
+ $ brew install qt5 pkg-config
+
+Then, force brew to "link" qt5 (this makes it available under /usr/local):
+
+ $ brew link --force qt5
+
+And finally, fetch and install go-qml:
+
+ $ go get gopkg.in/qml.v1
+
+
+Requirements on Windows
+-----------------------
+
+On Windows you'll need the following:
+
+ * [MinGW gcc](http://sourceforge.net/projects/mingw/files/latest/download) 4.8.1 (install mingw-get and install the gcc from within the setup GUI)
+ * [Qt 5.1.1](http://download.qt-project.org/official_releases/qt/5.1/5.1.1/qt-windows-opensource-5.1.1-mingw48_opengl-x86-offline.exe) for MinGW 4.8
+ * [Go >= 1.2](http://golang.org/doc/install)
+
+Then, assuming Qt was installed under `C:\Qt5.1.1\`, set up the following environment variables in the respective configuration:
+
+ CPATH += C:\Qt5.1.1\5.1.1\mingw48_32\include
+ LIBRARY_PATH += C:\Qt5.1.1\5.1.1\mingw48_32\lib
+ PATH += C:\Qt5.1.1\5.1.1\mingw48_32\bin
+
+After reopening the shell for the environment changes to take effect, this should work:
+
+ go get gopkg.in/qml.v1
+
+
+Requirements everywhere else
+----------------------------
+
+If your operating system does not offer these dependencies readily,
+you may still have success installing [Go >= 1.2](http://golang.org/doc/install)
+and [Qt 5.0.2](http://download.qt-project.org/archive/qt/5.0/5.0.2/)
+directly from the upstreams. Note that you'll likely have to adapt
+environment variables to reflect the custom installation path for
+these libraries. See the instructions above for examples.
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/all.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/all.cpp
new file mode 100644
index 000000000..965867b1b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/all.cpp
@@ -0,0 +1,12 @@
+
+#include "cpp/capi.cpp"
+#include "cpp/govalue.cpp"
+#include "cpp/govaluetype.cpp"
+#include "cpp/idletimer.cpp"
+#include "cpp/connector.cpp"
+
+#include "cpp/moc_all.cpp"
+
+#ifdef _WIN32
+#include "cpp/mmemwin.cpp"
+#endif
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/bridge.go b/Godeps/_workspace/src/github.com/obscuren/qml/bridge.go
new file mode 100644
index 000000000..77b36a566
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/bridge.go
@@ -0,0 +1,681 @@
+package qml
+
+// #cgo CPPFLAGS: -I./cpp
+// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
+// #cgo LDFLAGS: -lstdc++
+// #cgo pkg-config: Qt5Core Qt5Widgets Qt5Quick
+//
+// #include <stdlib.h>
+//
+// #include "cpp/capi.h"
+//
+import "C"
+
+import (
+ "fmt"
+ "os"
+ "reflect"
+ "runtime"
+ "sync/atomic"
+ "unsafe"
+
+ "gopkg.in/qml.v1/cdata"
+)
+
+var (
+ guiFunc = make(chan func())
+ guiDone = make(chan struct{})
+ guiLock = 0
+ guiMainRef uintptr
+ guiPaintRef uintptr
+ guiIdleRun int32
+
+ initialized int32
+)
+
+func init() {
+ runtime.LockOSThread()
+ guiMainRef = cdata.Ref()
+}
+
+// Run runs the main QML event loop, runs f, and then terminates the
+// event loop once f returns.
+//
+// Most functions from the qml package block until Run is called.
+//
+// The Run function must necessarily be called from the same goroutine as
+// the main function or the application may fail when running on Mac OS.
+func Run(f func() error) error {
+ if cdata.Ref() != guiMainRef {
+ panic("Run must be called on the initial goroutine so apps are portable to Mac OS")
+ }
+ if !atomic.CompareAndSwapInt32(&initialized, 0, 1) {
+ panic("qml.Run called more than once")
+ }
+ C.newGuiApplication()
+ C.idleTimerInit((*C.int32_t)(&guiIdleRun))
+ done := make(chan error, 1)
+ go func() {
+ RunMain(func() {}) // Block until the event loop is running.
+ done <- f()
+ C.applicationExit()
+ }()
+ C.applicationExec()
+ return <-done
+}
+
+// RunMain runs f in the main QML thread and waits for f to return.
+//
+// This is meant to be used by extensions that integrate directly with the
+// underlying QML logic.
+func RunMain(f func()) {
+ ref := cdata.Ref()
+ if ref == guiMainRef || ref == atomic.LoadUintptr(&guiPaintRef) {
+ // Already within the GUI or render threads. Attempting to wait would deadlock.
+ f()
+ return
+ }
+
+ // Tell Qt we're waiting for the idle hook to be called.
+ if atomic.AddInt32(&guiIdleRun, 1) == 1 {
+ C.idleTimerStart()
+ }
+
+ // Send f to be executed by the idle hook in the main GUI thread.
+ guiFunc <- f
+
+ // Wait until f is done executing.
+ <-guiDone
+}
+
+// Lock freezes all QML activity by blocking the main event loop.
+// Locking is necessary before updating shared data structures
+// without race conditions.
+//
+// It's safe to use qml functionality while holding a lock, as
+// long as the requests made do not depend on follow up QML
+// events to be processed before returning. If that happens, the
+// problem will be observed as the application freezing.
+//
+// The Lock function is reentrant. That means it may be called
+// multiple times, and QML activities will only be resumed after
+// Unlock is called a matching number of times.
+func Lock() {
+ // TODO Better testing for this.
+ RunMain(func() {
+ guiLock++
+ })
+}
+
+// Unlock releases the QML event loop. See Lock for details.
+func Unlock() {
+ RunMain(func() {
+ if guiLock == 0 {
+ panic("qml.Unlock called without lock being held")
+ }
+ guiLock--
+ })
+}
+
+// Flush synchronously flushes all pending QML activities.
+func Flush() {
+ // TODO Better testing for this.
+ RunMain(func() {
+ C.applicationFlushAll()
+ })
+}
+
+// Changed notifies all QML bindings that the given field value has changed.
+//
+// For example:
+//
+// qml.Changed(&value, &value.Field)
+//
+func Changed(value, fieldAddr interface{}) {
+ valuev := reflect.ValueOf(value)
+ fieldv := reflect.ValueOf(fieldAddr)
+ for valuev.Kind() == reflect.Ptr {
+ valuev = valuev.Elem()
+ }
+ if fieldv.Kind() != reflect.Ptr {
+ panic("qml.Changed received non-address value as fieldAddr")
+ }
+ fieldv = fieldv.Elem()
+ if fieldv.Type().Size() == 0 {
+ panic("cannot report changes on zero-sized fields")
+ }
+ offset := fieldv.UnsafeAddr() - valuev.UnsafeAddr()
+ if !(0 <= offset && offset < valuev.Type().Size()) {
+ panic("provided field is not a member of the given value")
+ }
+
+ RunMain(func() {
+ tinfo := typeInfo(value)
+ for _, engine := range engines {
+ fold := engine.values[value]
+ for fold != nil {
+ C.goValueActivate(fold.cvalue, tinfo, C.int(offset))
+ fold = fold.next
+ }
+ // TODO typeNew might also be a linked list keyed by the gvalue.
+ // This would prevent the iteration and the deferrals.
+ for fold, _ = range typeNew {
+ if fold.gvalue == value {
+ // Activate these later so they don't get recursively moved
+ // out of typeNew while the iteration is still happening.
+ defer C.goValueActivate(fold.cvalue, tinfo, C.int(offset))
+ }
+ }
+ }
+ })
+}
+
+// hookIdleTimer is run once per iteration of the Qt event loop,
+// within the main GUI thread, but only if at least one goroutine
+// has atomically incremented guiIdleRun.
+//
+//export hookIdleTimer
+func hookIdleTimer() {
+ var f func()
+ for {
+ select {
+ case f = <-guiFunc:
+ default:
+ if guiLock > 0 {
+ f = <-guiFunc
+ } else {
+ return
+ }
+ }
+ f()
+ guiDone <- struct{}{}
+ atomic.AddInt32(&guiIdleRun, -1)
+ }
+}
+
+type valueFold struct {
+ engine *Engine
+ gvalue interface{}
+ cvalue unsafe.Pointer
+ init reflect.Value
+ prev *valueFold
+ next *valueFold
+ owner valueOwner
+}
+
+type valueOwner uint8
+
+const (
+ cppOwner = 1 << iota
+ jsOwner
+)
+
+// wrapGoValue creates a new GoValue object in C++ land wrapping
+// the Go value contained in the given interface.
+//
+// This must be run from the main GUI thread.
+func wrapGoValue(engine *Engine, gvalue interface{}, owner valueOwner) (cvalue unsafe.Pointer) {
+ gvaluev := reflect.ValueOf(gvalue)
+ gvaluek := gvaluev.Kind()
+ if gvaluek == reflect.Struct && !hashable(gvalue) {
+ name := gvaluev.Type().Name()
+ if name != "" {
+ name = " (" + name + ")"
+ }
+ panic("cannot hand an unhashable struct value" + name + " to QML logic; use its address instead")
+ }
+ if gvaluek == reflect.Ptr && gvaluev.Elem().Kind() == reflect.Ptr {
+ panic("cannot hand pointer of pointer to QML logic; use a simple pointer instead")
+ }
+
+ painting := cdata.Ref() == atomic.LoadUintptr(&guiPaintRef)
+
+ // Cannot reuse a jsOwner because the QML runtime may choose to destroy
+ // the value _after_ we hand it a new reference to the same value.
+ // See issue #68 for details.
+ prev, ok := engine.values[gvalue]
+ if ok && (prev.owner == cppOwner || painting) {
+ return prev.cvalue
+ }
+
+ if painting {
+ panic("cannot allocate new objects while painting")
+ }
+
+ parent := nilPtr
+ if owner == cppOwner {
+ parent = engine.addr
+ }
+ fold := &valueFold{
+ engine: engine,
+ gvalue: gvalue,
+ owner: owner,
+ }
+ fold.cvalue = C.newGoValue(unsafe.Pointer(fold), typeInfo(gvalue), parent)
+ if prev != nil {
+ // Put new fold first so the single cppOwner, if any, is always the first entry.
+ fold.next = prev
+ prev.prev = fold
+ }
+ engine.values[gvalue] = fold
+
+ //fmt.Printf("[DEBUG] value alive (wrapped): cvalue=%x gvalue=%x/%#v\n", fold.cvalue, addrOf(fold.gvalue), fold.gvalue)
+ stats.valuesAlive(+1)
+ C.engineSetContextForObject(engine.addr, fold.cvalue)
+ switch owner {
+ case cppOwner:
+ C.engineSetOwnershipCPP(engine.addr, fold.cvalue)
+ case jsOwner:
+ C.engineSetOwnershipJS(engine.addr, fold.cvalue)
+ }
+ return fold.cvalue
+}
+
+func addrOf(gvalue interface{}) uintptr {
+ return reflect.ValueOf(gvalue).Pointer()
+}
+
+// typeNew holds fold values that are created by registered types.
+// These values are special in two senses: first, they don't have a
+// reference to an engine before they are used in a context that can
+// set the reference; second, these values always hold a new cvalue,
+// because they are created as a side-effect of the registered type
+// being instantiated (it's too late to reuse an existent cvalue).
+//
+// For these reasons, typeNew holds the fold for these values until
+// their engine is known, and once it's known they may have to be
+// added to the linked list, since mulitple references for the same
+// gvalue may occur.
+var typeNew = make(map[*valueFold]bool)
+
+//export hookGoValueTypeNew
+func hookGoValueTypeNew(cvalue unsafe.Pointer, specp unsafe.Pointer) (foldp unsafe.Pointer) {
+ // Initialization is postponed until the engine is available, so that
+ // we can hand Init the qml.Object that represents the object.
+ init := reflect.ValueOf((*TypeSpec)(specp).Init)
+ fold := &valueFold{
+ init: init,
+ gvalue: reflect.New(init.Type().In(0).Elem()).Interface(),
+ cvalue: cvalue,
+ owner: jsOwner,
+ }
+ typeNew[fold] = true
+ //fmt.Printf("[DEBUG] value alive (type-created): cvalue=%x gvalue=%x/%#v\n", fold.cvalue, addrOf(fold.gvalue), fold.gvalue)
+ stats.valuesAlive(+1)
+ return unsafe.Pointer(fold)
+}
+
+//export hookGoValueDestroyed
+func hookGoValueDestroyed(enginep unsafe.Pointer, foldp unsafe.Pointer) {
+ fold := (*valueFold)(foldp)
+ engine := fold.engine
+ if engine == nil {
+ before := len(typeNew)
+ delete(typeNew, fold)
+ if len(typeNew) == before {
+ panic("destroying value without an associated engine; who created the value?")
+ }
+ } else if engines[engine.addr] == nil {
+ // Must never do that. The engine holds memory references that C++ depends on.
+ panic(fmt.Sprintf("engine %p was released from global list while its values were still alive", engine.addr))
+ } else {
+ switch {
+ case fold.prev != nil:
+ fold.prev.next = fold.next
+ if fold.next != nil {
+ fold.next.prev = fold.prev
+ }
+ case fold.next != nil:
+ fold.next.prev = fold.prev
+ if fold.prev != nil {
+ fold.prev.next = fold.next
+ } else {
+ fold.engine.values[fold.gvalue] = fold.next
+ }
+ default:
+ before := len(engine.values)
+ delete(engine.values, fold.gvalue)
+ if len(engine.values) == before {
+ panic("destroying value that knows about the engine, but the engine doesn't know about the value; who cleared the engine?")
+ }
+ if engine.destroyed && len(engine.values) == 0 {
+ delete(engines, engine.addr)
+ }
+ }
+ }
+ //fmt.Printf("[DEBUG] value destroyed: cvalue=%x gvalue=%x/%#v\n", fold.cvalue, addrOf(fold.gvalue), fold.gvalue)
+ stats.valuesAlive(-1)
+}
+
+func deref(value reflect.Value) reflect.Value {
+ for {
+ switch value.Kind() {
+ case reflect.Ptr, reflect.Interface:
+ value = value.Elem()
+ continue
+ }
+ return value
+ }
+ panic("cannot happen")
+}
+
+//export hookGoValueReadField
+func hookGoValueReadField(enginep, foldp unsafe.Pointer, reflectIndex, getIndex, setIndex C.int, resultdv *C.DataValue) {
+ fold := ensureEngine(enginep, foldp)
+
+ var field reflect.Value
+ if getIndex >= 0 {
+ field = reflect.ValueOf(fold.gvalue).Method(int(getIndex)).Call(nil)[0]
+ } else {
+ field = deref(reflect.ValueOf(fold.gvalue)).Field(int(reflectIndex))
+ }
+ field = deref(field)
+
+ // Cannot compare Type directly as field may be invalid (nil).
+ if field.Kind() == reflect.Slice && field.Type() == typeObjSlice {
+ // TODO Handle getters that return []qml.Object.
+ // TODO Handle other GoValue slices (!= []qml.Object).
+ resultdv.dataType = C.DTListProperty
+ *(*unsafe.Pointer)(unsafe.Pointer(&resultdv.data)) = C.newListProperty(foldp, C.intptr_t(reflectIndex), C.intptr_t(setIndex))
+ return
+ }
+
+ fieldk := field.Kind()
+ if fieldk == reflect.Slice || fieldk == reflect.Struct && field.Type() != typeRGBA {
+ if field.CanAddr() {
+ field = field.Addr()
+ } else if !hashable(field.Interface()) {
+ t := reflect.ValueOf(fold.gvalue).Type()
+ for t.Kind() == reflect.Ptr {
+ t = t.Elem()
+ }
+ panic(fmt.Sprintf("cannot access unaddressable and unhashable struct value on interface field %s.%s; value: %#v", t.Name(), t.Field(int(reflectIndex)).Name, field.Interface()))
+ }
+ }
+ var gvalue interface{}
+ if field.IsValid() {
+ gvalue = field.Interface()
+ }
+
+ // TODO Strings are being passed in an unsafe manner here. There is a
+ // small chance that the field is changed and the garbage collector is run
+ // before C++ has a chance to look at the data. We can solve this problem
+ // by queuing up values in a stack, and cleaning the stack when the
+ // idle timer fires next.
+ packDataValue(gvalue, resultdv, fold.engine, jsOwner)
+}
+
+//export hookGoValueWriteField
+func hookGoValueWriteField(enginep, foldp unsafe.Pointer, reflectIndex, setIndex C.int, assigndv *C.DataValue) {
+ fold := ensureEngine(enginep, foldp)
+ v := reflect.ValueOf(fold.gvalue)
+ ve := v
+ for ve.Type().Kind() == reflect.Ptr {
+ ve = ve.Elem()
+ }
+ var field, setMethod reflect.Value
+ if reflectIndex >= 0 {
+ // It's a real field rather than a getter.
+ field = ve.Field(int(reflectIndex))
+ }
+ if setIndex >= 0 {
+ // It has a setter.
+ setMethod = v.Method(int(setIndex))
+ }
+
+ assign := unpackDataValue(assigndv, fold.engine)
+
+ // TODO Return false to the call site if it fails. That's how Qt seems to handle it internally.
+ err := convertAndSet(field, reflect.ValueOf(assign), setMethod)
+ if err != nil {
+ panic(err.Error())
+ }
+}
+
+func convertAndSet(to, from reflect.Value, setMethod reflect.Value) (err error) {
+ var toType reflect.Type
+ if setMethod.IsValid() {
+ toType = setMethod.Type().In(0)
+ } else {
+ toType = to.Type()
+ }
+ fromType := from.Type()
+ defer func() {
+ // TODO This is catching more than it should. There are calls
+ // to custom code below that should be isolated.
+ if v := recover(); v != nil {
+ err = fmt.Errorf("cannot use %s as a %s", fromType, toType)
+ }
+ }()
+ if fromType == typeList && toType.Kind() == reflect.Slice {
+ list := from.Interface().(*List)
+ from = reflect.MakeSlice(toType, len(list.data), len(list.data))
+ elemType := toType.Elem()
+ for i, elem := range list.data {
+ from.Index(i).Set(reflect.ValueOf(elem).Convert(elemType))
+ }
+ } else if fromType == typeMap && toType.Kind() == reflect.Map {
+ qmap := from.Interface().(*Map)
+ from = reflect.MakeMap(toType)
+ elemType := toType.Elem()
+ for i := 0; i < len(qmap.data); i += 2 {
+ key := reflect.ValueOf(qmap.data[i])
+ val := reflect.ValueOf(qmap.data[i+1])
+ if val.Type() != elemType {
+ val = val.Convert(elemType)
+ }
+ from.SetMapIndex(key, val)
+ }
+ } else if toType != fromType {
+ from = from.Convert(toType)
+ }
+ if setMethod.IsValid() {
+ setMethod.Call([]reflect.Value{from})
+ } else {
+ to.Set(from)
+ }
+ return nil
+}
+
+var (
+ dataValueSize = uintptr(unsafe.Sizeof(C.DataValue{}))
+ dataValueArray [C.MaxParams]C.DataValue
+)
+
+//export hookGoValueCallMethod
+func hookGoValueCallMethod(enginep, foldp unsafe.Pointer, reflectIndex C.int, args *C.DataValue) {
+ fold := ensureEngine(enginep, foldp)
+ v := reflect.ValueOf(fold.gvalue)
+
+ // TODO Must assert that v is necessarily a pointer here, but we shouldn't have to manipulate
+ // gvalue here for that. This should happen in a sensible place in the wrapping functions
+ // that can still error out to the user in due time.
+
+ method := v.Method(int(reflectIndex))
+ methodt := method.Type()
+ methodName := v.Type().Method(int(reflectIndex)).Name
+
+ // TODO Ensure methods with more parameters than this are not registered.
+ var params [C.MaxParams]reflect.Value
+ var err error
+
+ numIn := methodt.NumIn()
+ for i := 0; i < numIn; i++ {
+ paramdv := (*C.DataValue)(unsafe.Pointer(uintptr(unsafe.Pointer(args)) + (uintptr(i)+1)*dataValueSize))
+ param := reflect.ValueOf(unpackDataValue(paramdv, fold.engine))
+ if argt := methodt.In(i); param.Type() != argt {
+ param, err = convertParam(methodName, i, param, argt)
+ if err != nil {
+ panic(err.Error())
+ }
+ }
+ params[i] = param
+ }
+
+ result := method.Call(params[:numIn])
+
+ if len(result) == 1 {
+ packDataValue(result[0].Interface(), args, fold.engine, jsOwner)
+ } else if len(result) > 1 {
+ if len(result) > len(dataValueArray) {
+ panic("function has too many results")
+ }
+ for i, v := range result {
+ packDataValue(v.Interface(), &dataValueArray[i], fold.engine, jsOwner)
+ }
+ args.dataType = C.DTVariantList
+ *(*unsafe.Pointer)(unsafe.Pointer(&args.data)) = C.newVariantList(&dataValueArray[0], C.int(len(result)))
+ }
+}
+
+func convertParam(methodName string, index int, param reflect.Value, argt reflect.Type) (reflect.Value, error) {
+ out := reflect.New(argt).Elem()
+ err := convertAndSet(out, param, reflect.Value{})
+ if err != nil {
+ err = fmt.Errorf("cannot convert parameter %d of method %s from %s to %s; provided value: %#v",
+ index, methodName, param.Type(), argt, param.Interface())
+ return reflect.Value{}, err
+ }
+ return out, nil
+}
+
+func printPaintPanic() {
+ if v := recover(); v != nil {
+ buf := make([]byte, 8192)
+ runtime.Stack(buf, false)
+ fmt.Fprintf(os.Stderr, "panic while painting: %s\n\n%s", v, buf)
+ }
+}
+
+//export hookGoValuePaint
+func hookGoValuePaint(enginep, foldp unsafe.Pointer, reflectIndex C.intptr_t) {
+ // Besides a convenience this is a workaround for http://golang.org/issue/8588
+ defer printPaintPanic()
+ defer atomic.StoreUintptr(&guiPaintRef, 0)
+
+ // The main GUI thread is mutex-locked while paint methods are called,
+ // so no two paintings should be happening at the same time.
+ atomic.StoreUintptr(&guiPaintRef, cdata.Ref())
+
+ fold := ensureEngine(enginep, foldp)
+ if fold.init.IsValid() {
+ return
+ }
+
+ painter := &Painter{engine: fold.engine, obj: &Common{fold.cvalue, fold.engine}}
+ v := reflect.ValueOf(fold.gvalue)
+ method := v.Method(int(reflectIndex))
+ method.Call([]reflect.Value{reflect.ValueOf(painter)})
+}
+
+func ensureEngine(enginep, foldp unsafe.Pointer) *valueFold {
+ fold := (*valueFold)(foldp)
+ if fold.engine != nil {
+ if fold.init.IsValid() {
+ initGoType(fold)
+ }
+ return fold
+ }
+
+ if enginep == nilPtr {
+ panic("accessing value without an engine pointer; who created the value?")
+ }
+ engine := engines[enginep]
+ if engine == nil {
+ panic("unknown engine pointer; who created the engine?")
+ }
+ fold.engine = engine
+ prev := engine.values[fold.gvalue]
+ if prev != nil {
+ for prev.next != nil {
+ prev = prev.next
+ }
+ prev.next = fold
+ fold.prev = prev
+ } else {
+ engine.values[fold.gvalue] = fold
+ }
+ before := len(typeNew)
+ delete(typeNew, fold)
+ if len(typeNew) == before {
+ panic("value had no engine, but was not created by a registered type; who created the value?")
+ }
+ initGoType(fold)
+ return fold
+}
+
+func initGoType(fold *valueFold) {
+ if cdata.Ref() == atomic.LoadUintptr(&guiPaintRef) {
+ go RunMain(func() { _initGoType(fold, true) })
+ } else {
+ _initGoType(fold, false)
+ }
+}
+
+func _initGoType(fold *valueFold, schedulePaint bool) {
+ if !fold.init.IsValid() {
+ return
+ }
+ // TODO Would be good to preserve identity on the Go side. See unpackDataValue as well.
+ obj := &Common{engine: fold.engine, addr: fold.cvalue}
+ fold.init.Call([]reflect.Value{reflect.ValueOf(fold.gvalue), reflect.ValueOf(obj)})
+ fold.init = reflect.Value{}
+ if schedulePaint {
+ obj.Call("update")
+ }
+}
+
+//export hookPanic
+func hookPanic(message *C.char) {
+ defer C.free(unsafe.Pointer(message))
+ panic(C.GoString(message))
+}
+
+func listSlice(fold *valueFold, reflectIndex C.intptr_t) *[]Object {
+ field := deref(reflect.ValueOf(fold.gvalue)).Field(int(reflectIndex))
+ return field.Addr().Interface().(*[]Object)
+}
+
+//export hookListPropertyAt
+func hookListPropertyAt(foldp unsafe.Pointer, reflectIndex, setIndex C.intptr_t, index C.int) (objp unsafe.Pointer) {
+ fold := (*valueFold)(foldp)
+ slice := listSlice(fold, reflectIndex)
+ return (*slice)[int(index)].Common().addr
+}
+
+//export hookListPropertyCount
+func hookListPropertyCount(foldp unsafe.Pointer, reflectIndex, setIndex C.intptr_t) C.int {
+ fold := (*valueFold)(foldp)
+ slice := listSlice(fold, reflectIndex)
+ return C.int(len(*slice))
+}
+
+//export hookListPropertyAppend
+func hookListPropertyAppend(foldp unsafe.Pointer, reflectIndex, setIndex C.intptr_t, objp unsafe.Pointer) {
+ fold := (*valueFold)(foldp)
+ slice := listSlice(fold, reflectIndex)
+ var objdv C.DataValue
+ objdv.dataType = C.DTObject
+ *(*unsafe.Pointer)(unsafe.Pointer(&objdv.data)) = objp
+ newslice := append(*slice, unpackDataValue(&objdv, fold.engine).(Object))
+ if setIndex >= 0 {
+ reflect.ValueOf(fold.gvalue).Method(int(setIndex)).Call([]reflect.Value{reflect.ValueOf(newslice)})
+ } else {
+ *slice = newslice
+ }
+}
+
+//export hookListPropertyClear
+func hookListPropertyClear(foldp unsafe.Pointer, reflectIndex, setIndex C.intptr_t) {
+ fold := (*valueFold)(foldp)
+ slice := listSlice(fold, reflectIndex)
+ newslice := (*slice)[0:0]
+ if setIndex >= 0 {
+ reflect.ValueOf(fold.gvalue).Method(int(setIndex)).Call([]reflect.Value{reflect.ValueOf(newslice)})
+ } else {
+ for i := range *slice {
+ (*slice)[i] = nil
+ }
+ *slice = newslice
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata.go b/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata.go
new file mode 100644
index 000000000..6f13b810f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata.go
@@ -0,0 +1,6 @@
+// Package cdata supports the implementation of the qml package.
+package cdata
+
+func Ref() uintptr
+
+func Addrs() (uintptr, uintptr)
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata12.c b/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata12.c
new file mode 100644
index 000000000..2e60abfa2
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata12.c
@@ -0,0 +1,18 @@
+// +build !go1.4
+
+#include "runtime.h"
+
+void ·Ref(uintptr ref) {
+ ref = (uintptr)g->m;
+ FLUSH(&ref);
+}
+
+void runtime·main(void);
+void main·main(void);
+
+void ·Addrs(uintptr rmain, uintptr mmain) {
+ rmain = (uintptr)runtime·main;
+ mmain = (uintptr)main·main;
+ FLUSH(&rmain);
+ FLUSH(&mmain);
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata14_386.s b/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata14_386.s
new file mode 100644
index 000000000..7dae9b961
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata14_386.s
@@ -0,0 +1,17 @@
+// +build go1.4
+
+#include "textflag.h"
+
+TEXT ·Ref(SB),NOSPLIT,$4-4
+ CALL runtime·acquirem(SB)
+ MOVL 0(SP), AX
+ MOVL AX, ret+0(FP)
+ CALL runtime·releasem(SB)
+ RET
+
+TEXT ·Addrs(SB),NOSPLIT,$0-8
+ MOVL $runtime·main(SB), AX
+ MOVL AX, ret+0(FP)
+ MOVL $runtime·main_main(SB), AX
+ MOVL AX, ret+8(FP)
+ RET
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata14_amd64.s b/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata14_amd64.s
new file mode 100644
index 000000000..83cc22c9c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata14_amd64.s
@@ -0,0 +1,17 @@
+// +build go1.4
+
+#include "textflag.h"
+
+TEXT ·Ref(SB),NOSPLIT,$8-8
+ CALL runtime·acquirem(SB)
+ MOVQ 0(SP), AX
+ MOVQ AX, ret+0(FP)
+ CALL runtime·releasem(SB)
+ RET
+
+TEXT ·Addrs(SB),NOSPLIT,$0-16
+ MOVQ $runtime·main(SB), AX
+ MOVQ AX, ret+0(FP)
+ MOVQ $runtime·main_main(SB), AX
+ MOVQ AX, ret+8(FP)
+ RET
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata14_arm.s b/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata14_arm.s
new file mode 100644
index 000000000..c66bbafbf
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata14_arm.s
@@ -0,0 +1,18 @@
+// +build go1.4
+
+#include "textflag.h"
+
+TEXT ·Ref(SB),NOSPLIT,$4-4
+ BL runtime·acquirem(SB)
+ MOVW 4(R13), R0
+ MOVW R0, ret+0(FP)
+ MOVW R0, 4(R13)
+ BL runtime·releasem(SB)
+ RET
+
+TEXT ·Addrs(SB),NOSPLIT,$0-8
+ MOVW $runtime·main(SB), R0
+ MOVW R0, ret+0(FP)
+ MOVW $runtime·main_main(SB), R0
+ MOVW R0, ret+4(FP)
+ RET
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata_test.go b/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata_test.go
new file mode 100644
index 000000000..e7c3f33c5
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cdata/cdata_test.go
@@ -0,0 +1,42 @@
+package cdata
+
+import (
+ "runtime"
+ "sync"
+ "testing"
+)
+
+type refPair struct {
+ ref1, ref2 uintptr
+}
+
+func TestRef(t *testing.T) {
+ const N = 10
+ runtime.LockOSThread()
+ exit := sync.WaitGroup{}
+ exit.Add(1)
+ defer exit.Done()
+ wg := sync.WaitGroup{}
+ wg.Add(N)
+ ch := make(chan refPair)
+ for i := 0; i < N; i++ {
+ go func() {
+ runtime.LockOSThread()
+ wg.Done()
+ ch <- refPair{Ref(), Ref()}
+ exit.Wait()
+ }()
+ }
+ wg.Wait()
+ refs := make(map[uintptr]bool)
+ for i := 0; i < N; i++ {
+ pair := <-ch
+ if pair.ref1 != pair.ref2 {
+ t.Fatalf("found inconsistent ref: %d != %d", pair.ref1, pair.ref2)
+ }
+ if refs[pair.ref1] {
+ t.Fatalf("found duplicated ref: %d", pair.ref1)
+ }
+ refs[pair.ref1] = true
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cmd/genqrc/main.go b/Godeps/_workspace/src/github.com/obscuren/qml/cmd/genqrc/main.go
new file mode 100644
index 000000000..a601d8126
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cmd/genqrc/main.go
@@ -0,0 +1,218 @@
+
+// XXX: The documentation is duplicated here and in the the doc variable
+// below. Update both at the same time.
+
+// Command genqrc packs resource files into the Go binary.
+//
+// Usage: genqrc [options] <subdir1> [<subdir2> ...]
+//
+// The genqrc tool packs all resource files under the provided subdirectories into
+// a single qrc.go file that may be built into the generated binary. Bundled files
+// may then be loaded by Go or QML code under the URL "qrc:///some/path", where
+// "some/path" matches the original path for the resource file locally.
+//
+// For example, the following will load a .qml file from the resource pack, and
+// that file may in turn reference other content (code, images, etc) in the pack:
+//
+// component, err := engine.LoadFile("qrc://path/to/file.qml")
+//
+// Starting with Go 1.4, this tool may be conveniently run by the "go generate"
+// subcommand by adding a line similar to the following one to any existent .go
+// file in the project (assuming the subdirectories ./code/ and ./images/ exist):
+//
+// //go:generate genqrc code images
+//
+// Then, just run "go generate" to update the qrc.go file.
+//
+// During development, the generated qrc.go can repack the filesystem content at
+// runtime to avoid the process of regenerating the qrc.go file and rebuilding the
+// application to test every minor change made. Runtime repacking is enabled by
+// setting the QRC_REPACK environment variable to 1:
+//
+// export QRC_REPACK=1
+//
+// This does not update the static content in the qrc.go file, though, so after
+// the changes are performed, genqrc must be run again to update the content that
+// will ship with built binaries.
+package main
+
+import (
+ "flag"
+ "fmt"
+ "io/ioutil"
+ "os"
+ "path/filepath"
+ "text/template"
+
+ "gopkg.in/qml.v1"
+)
+
+const doc = `
+Usage: genqrc [options] <subdir1> [<subdir2> ...]
+
+The genqrc tool packs all resource files under the provided subdirectories into
+a single qrc.go file that may be built into the generated binary. Bundled files
+may then be loaded by Go or QML code under the URL "qrc:///some/path", where
+"some/path" matches the original path for the resource file locally.
+
+For example, the following will load a .qml file from the resource pack, and
+that file may in turn reference other content (code, images, etc) in the pack:
+
+ component, err := engine.LoadFile("qrc://path/to/file.qml")
+
+Starting with Go 1.4, this tool may be conveniently run by the "go generate"
+subcommand by adding a line similar to the following one to any existent .go
+file in the project (assuming the subdirectories ./code/ and ./images/ exist):
+
+ //go:generate genqrc code images
+
+Then, just run "go generate" to update the qrc.go file.
+
+During development, the generated qrc.go can repack the filesystem content at
+runtime to avoid the process of regenerating the qrc.go file and rebuilding the
+application to test every minor change made. Runtime repacking is enabled by
+setting the QRC_REPACK environment variable to 1:
+
+ export QRC_REPACK=1
+
+This does not update the static content in the qrc.go file, though, so after
+the changes are performed, genqrc must be run again to update the content that
+will ship with built binaries.
+`
+
+// XXX: The documentation is duplicated here and in the the package comment
+// above. Update both at the same time.
+
+var packageName = flag.String("package", "main", "package name that qrc.go will be under (not needed for go generate)")
+
+func main() {
+ flag.Usage = func() {
+ fmt.Fprintf(os.Stderr, "%s", doc)
+ flag.PrintDefaults()
+ }
+ flag.Parse()
+ if err := run(); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ subdirs := flag.Args()
+ if len(subdirs) == 0 {
+ return fmt.Errorf("must provide at least one subdirectory path")
+ }
+
+ var rp qml.ResourcesPacker
+
+ for _, subdir := range flag.Args() {
+ err := filepath.Walk(subdir, func(path string, info os.FileInfo, err error) error {
+ if err != nil {
+ return err
+ }
+ if info.IsDir() {
+ return nil
+ }
+ data, err := ioutil.ReadFile(path)
+ if err != nil {
+ return err
+ }
+ rp.Add(filepath.ToSlash(path), data)
+ return nil
+ })
+ if err != nil {
+ return err
+ }
+ }
+
+ resdata := rp.Pack().Bytes()
+
+ f, err := os.Create("qrc.go")
+ if err != nil {
+ return err
+ }
+ defer f.Close()
+
+ data := templateData{
+ PackageName: *packageName,
+ SubDirs: subdirs,
+ ResourcesData: resdata,
+ }
+
+ // $GOPACKAGE is set automatically by go generate.
+ if pkgname := os.Getenv("GOPACKAGE"); pkgname != "" {
+ data.PackageName = pkgname
+ }
+
+ return tmpl.Execute(f, data)
+}
+
+type templateData struct {
+ PackageName string
+ SubDirs []string
+ ResourcesData []byte
+}
+
+func buildTemplate(name, content string) *template.Template {
+ return template.Must(template.New(name).Parse(content))
+}
+
+var tmpl = buildTemplate("qrc.go", `package {{.PackageName}}
+
+// This file is automatically generated by gopkg.in/qml.v1/cmd/genqrc
+
+import (
+ "io/ioutil"
+ "os"
+ "path/filepath"
+
+ "gopkg.in/qml.v1"
+)
+
+func init() {
+ var r *qml.Resources
+ var err error
+ if os.Getenv("QRC_REPACK") == "1" {
+ err = qrcRepackResources()
+ if err != nil {
+ panic("cannot repack qrc resources: " + err.Error())
+ }
+ r, err = qml.ParseResources(qrcResourcesRepacked)
+ } else {
+ r, err = qml.ParseResourcesString(qrcResourcesData)
+ }
+ if err != nil {
+ panic("cannot parse bundled resources data: " + err.Error())
+ }
+ qml.LoadResources(r)
+}
+
+func qrcRepackResources() error {
+ subdirs := {{printf "%#v" .SubDirs}}
+ var rp qml.ResourcesPacker
+ for _, subdir := range subdirs {
+ err := filepath.Walk(subdir, func(path string, info os.FileInfo, err error) error {
+ if err != nil {
+ return err
+ }
+ if info.IsDir() {
+ return nil
+ }
+ data, err := ioutil.ReadFile(path)
+ if err != nil {
+ return err
+ }
+ rp.Add(filepath.ToSlash(path), data)
+ return nil
+ })
+ if err != nil {
+ return err
+ }
+ }
+ qrcResourcesRepacked = rp.Pack().Bytes()
+ return nil
+}
+
+var qrcResourcesRepacked []byte
+var qrcResourcesData = {{printf "%q" .ResourcesData}}
+`)
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cmd/ubuntu-touch/particle.desktop b/Godeps/_workspace/src/github.com/obscuren/qml/cmd/ubuntu-touch/particle.desktop
new file mode 100644
index 000000000..76a62cb50
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cmd/ubuntu-touch/particle.desktop
@@ -0,0 +1,15 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Type=Application
+Terminal=false
+Path=/home/phablet/src/gopkg.in/qml.v0/examples/particle/
+Exec=./particle
+Icon=properties
+Name=Particle Example
+X-Ubuntu-Touch=true
+X-Ubuntu-StageHint=SideStage
+
+# Copy this file to:
+#
+# ~phablet/.local/share/applications/gopkg.in.qml.particle-example.desktop
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cmd/ubuntu-touch/setup.sh b/Godeps/_workspace/src/github.com/obscuren/qml/cmd/ubuntu-touch/setup.sh
new file mode 100644
index 000000000..1d0454110
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cmd/ubuntu-touch/setup.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+set -e
+
+if [ "$USER" != "root" ]; then
+ echo 'This script must be run as root.'
+ exit 1
+fi
+
+echo 'Remounting root as read-write ------------------------------------------------'
+
+mount -o remount,rw /
+
+echo 'Installing Go and dependencies -----------------------------------------------'
+
+apt-get update
+apt-get install -y \
+ golang-go g++ git pkg-config ubuntu-app-launch\
+ qtbase5-private-dev qtdeclarative5-private-dev libqt5opengl5-dev
+apt-get clean
+
+echo 'Setting up environment for phablet user --------------------------------------'
+
+echo 'export GOPATH=$HOME' >> ~phablet/.bash_profile
+
+echo 'Fetching the qml package -----------------------------------------------------'
+
+su -l phablet -c 'go get gopkg.in/qml.v0'
+
+echo 'Installing the .desktop file for the particle example ------------------------'
+
+APP_ID='gopkg.in.qml.particle-example'
+cp ~phablet/src/gopkg.in/qml.v*/cmd/ubuntu-touch/particle.desktop ~phablet/.local/share/applications/$APP_ID.desktop
+
+echo 'Building and launching particle example --------------------------------------'
+
+su -l phablet -c 'cd $HOME/src/gopkg.in/qml.v0/examples/particle; go build'
+
+echo 'Launching particle example ---------------------------------------------------'
+
+su -l phablet -c "ubuntu-app-launch $APP_ID"
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/capi.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/capi.cpp
new file mode 100644
index 000000000..c2255aaae
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/capi.cpp
@@ -0,0 +1,882 @@
+#include <QApplication>
+#include <QQuickView>
+#include <QQuickItem>
+#include <QtQml>
+#include <QDebug>
+#include <QQuickImageProvider>
+
+#include <string.h>
+
+#include "govalue.h"
+#include "govaluetype.h"
+#include "connector.h"
+#include "capi.h"
+
+static char *local_strdup(const char *str)
+{
+ char *strcopy = 0;
+ if (str) {
+ size_t len = strlen(str) + 1;
+ strcopy = (char *)malloc(len);
+ memcpy(strcopy, str, len);
+ }
+ return strcopy;
+}
+
+error *errorf(const char *format, ...)
+{
+ va_list ap;
+ va_start(ap, format);
+ QString str = QString().vsprintf(format, ap);
+ va_end(ap);
+ QByteArray ba = str.toUtf8();
+ return local_strdup(ba.constData());
+}
+
+void panicf(const char *format, ...)
+{
+ va_list ap;
+ va_start(ap, format);
+ QString str = QString().vsprintf(format, ap);
+ va_end(ap);
+ QByteArray ba = str.toUtf8();
+ hookPanic(local_strdup(ba.constData()));
+}
+
+void newGuiApplication()
+{
+ static char empty[1] = {0};
+ static char *argv[] = {empty, 0};
+ static int argc = 1;
+ new QApplication(argc, argv);
+
+ // The event loop should never die.
+ qApp->setQuitOnLastWindowClosed(false);
+}
+
+void applicationExec()
+{
+ qApp->exec();
+}
+
+void applicationExit()
+{
+ qApp->exit(0);
+}
+
+void applicationFlushAll()
+{
+ qApp->processEvents();
+}
+
+void *currentThread()
+{
+ return QThread::currentThread();
+}
+
+void *appThread()
+{
+ return QCoreApplication::instance()->thread();
+}
+
+QQmlEngine_ *newEngine(QObject_ *parent)
+{
+ return new QQmlEngine(reinterpret_cast<QObject *>(parent));
+}
+
+QQmlContext_ *engineRootContext(QQmlEngine_ *engine)
+{
+ return reinterpret_cast<QQmlEngine *>(engine)->rootContext();
+}
+
+void engineSetContextForObject(QQmlEngine_ *engine, QObject_ *object)
+{
+ QQmlEngine *qengine = reinterpret_cast<QQmlEngine *>(engine);
+ QObject *qobject = reinterpret_cast<QObject *>(object);
+
+ QQmlEngine::setContextForObject(qobject, qengine->rootContext());
+}
+
+void engineSetOwnershipCPP(QQmlEngine_ *engine, QObject_ *object)
+{
+ QQmlEngine *qengine = reinterpret_cast<QQmlEngine *>(engine);
+ QObject *qobject = reinterpret_cast<QObject *>(object);
+
+ qengine->setObjectOwnership(qobject, QQmlEngine::CppOwnership);
+}
+
+void engineSetOwnershipJS(QQmlEngine_ *engine, QObject_ *object)
+{
+ QQmlEngine *qengine = reinterpret_cast<QQmlEngine *>(engine);
+ QObject *qobject = reinterpret_cast<QObject *>(object);
+
+ qengine->setObjectOwnership(qobject, QQmlEngine::JavaScriptOwnership);
+}
+
+QQmlComponent_ *newComponent(QQmlEngine_ *engine, QObject_ *parent)
+{
+ QQmlEngine *qengine = reinterpret_cast<QQmlEngine *>(engine);
+ //QObject *qparent = reinterpret_cast<QObject *>(parent);
+ QQmlComponent *qcomponent = new QQmlComponent(qengine);
+ // Qt 5.2.0 returns NULL on qmlEngine(qcomponent) without this.
+ QQmlEngine::setContextForObject(qcomponent, qengine->rootContext());
+ return qcomponent;
+}
+
+class GoImageProvider : public QQuickImageProvider {
+
+ // TODO Destroy this when engine is destroyed.
+
+ public:
+
+ GoImageProvider(void *imageFunc) : QQuickImageProvider(QQmlImageProviderBase::Image), imageFunc(imageFunc) {};
+
+ virtual QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize)
+ {
+ QByteArray ba = id.toUtf8();
+ int width = 0, height = 0;
+ if (requestedSize.isValid()) {
+ width = requestedSize.width();
+ height = requestedSize.height();
+ }
+ QImage *ptr = reinterpret_cast<QImage *>(hookRequestImage(imageFunc, (char*)ba.constData(), ba.size(), width, height));
+ QImage image = *ptr;
+ delete ptr;
+
+ *size = image.size();
+ if (requestedSize.isValid() && requestedSize != *size) {
+ image = image.scaled(requestedSize, Qt::KeepAspectRatio);
+ }
+ return image;
+ };
+
+ private:
+
+ void *imageFunc;
+};
+
+void engineAddImageProvider(QQmlEngine_ *engine, QString_ *providerId, void *imageFunc)
+{
+ QQmlEngine *qengine = reinterpret_cast<QQmlEngine *>(engine);
+ QString *qproviderId = reinterpret_cast<QString *>(providerId);
+
+ qengine->addImageProvider(*qproviderId, new GoImageProvider(imageFunc));
+}
+
+void componentLoadURL(QQmlComponent_ *component, const char *url, int urlLen)
+{
+ QByteArray qurl(url, urlLen);
+ QString qsurl = QString::fromUtf8(qurl);
+ reinterpret_cast<QQmlComponent *>(component)->loadUrl(qsurl);
+}
+
+void componentSetData(QQmlComponent_ *component, const char *data, int dataLen, const char *url, int urlLen)
+{
+ QByteArray qdata(data, dataLen);
+ QByteArray qurl(url, urlLen);
+ QString qsurl = QString::fromUtf8(qurl);
+ reinterpret_cast<QQmlComponent *>(component)->setData(qdata, qsurl);
+}
+
+char *componentErrorString(QQmlComponent_ *component)
+{
+ QQmlComponent *qcomponent = reinterpret_cast<QQmlComponent *>(component);
+ if (qcomponent->isReady()) {
+ return NULL;
+ }
+ if (qcomponent->isError()) {
+ QByteArray ba = qcomponent->errorString().toUtf8();
+ return local_strdup(ba.constData());
+ }
+ return local_strdup("component is not ready (why!?)");
+}
+
+QObject_ *componentCreate(QQmlComponent_ *component, QQmlContext_ *context)
+{
+ QQmlComponent *qcomponent = reinterpret_cast<QQmlComponent *>(component);
+ QQmlContext *qcontext = reinterpret_cast<QQmlContext *>(context);
+
+ if (!qcontext) {
+ qcontext = qmlContext(qcomponent);
+ }
+ return qcomponent->create(qcontext);
+}
+
+QQuickWindow_ *componentCreateWindow(QQmlComponent_ *component, QQmlContext_ *context)
+{
+ QQmlComponent *qcomponent = reinterpret_cast<QQmlComponent *>(component);
+ QQmlContext *qcontext = reinterpret_cast<QQmlContext *>(context);
+
+ if (!qcontext) {
+ qcontext = qmlContext(qcomponent);
+ }
+ QObject *obj = qcomponent->create(qcontext);
+ if (!objectIsWindow(obj)) {
+ QQuickView *view = new QQuickView(qmlEngine(qcomponent), 0);
+ view->setContent(qcomponent->url(), qcomponent, obj);
+ view->setResizeMode(QQuickView::SizeRootObjectToView);
+ obj = view;
+ }
+ return obj;
+}
+
+// Workaround for bug https://bugs.launchpad.net/bugs/1179716
+struct DoShowWindow : public QQuickWindow {
+ void show() {
+ QQuickWindow::show();
+ QResizeEvent resize(size(), size());
+ resizeEvent(&resize);
+ }
+};
+
+void windowShow(QQuickWindow_ *win)
+{
+ reinterpret_cast<DoShowWindow *>(win)->show();
+}
+
+void windowHide(QQuickWindow_ *win)
+{
+ reinterpret_cast<QQuickWindow *>(win)->hide();
+}
+
+uintptr_t windowPlatformId(QQuickWindow_ *win)
+{
+ return reinterpret_cast<QQuickWindow *>(win)->winId();
+}
+
+void windowConnectHidden(QQuickWindow_ *win)
+{
+ QQuickWindow *qwin = reinterpret_cast<QQuickWindow *>(win);
+ QObject::connect(qwin, &QWindow::visibleChanged, [=](bool visible){
+ if (!visible) {
+ hookWindowHidden(win);
+ }
+ });
+}
+
+QObject_ *windowRootObject(QQuickWindow_ *win)
+{
+ if (objectIsView(win)) {
+ return reinterpret_cast<QQuickView *>(win)->rootObject();
+ }
+ return win;
+}
+
+QImage_ *windowGrabWindow(QQuickWindow_ *win)
+{
+ QQuickWindow *qwin = reinterpret_cast<QQuickWindow *>(win);
+ QImage *image = new QImage;
+ *image = qwin->grabWindow().convertToFormat(QImage::Format_ARGB32_Premultiplied);
+ return image;
+}
+
+QImage_ *newImage(int width, int height)
+{
+ return new QImage(width, height, QImage::Format_ARGB32_Premultiplied);
+}
+
+void delImage(QImage_ *image)
+{
+ delete reinterpret_cast<QImage *>(image);
+}
+
+void imageSize(QImage_ *image, int *width, int *height)
+{
+ QImage *qimage = reinterpret_cast<QImage *>(image);
+ *width = qimage->width();
+ *height = qimage->height();
+}
+
+unsigned char *imageBits(QImage_ *image)
+{
+ QImage *qimage = reinterpret_cast<QImage *>(image);
+ return qimage->bits();
+}
+
+const unsigned char *imageConstBits(QImage_ *image)
+{
+ QImage *qimage = reinterpret_cast<QImage *>(image);
+ return qimage->constBits();
+}
+
+void contextSetObject(QQmlContext_ *context, QObject_ *value)
+{
+ QQmlContext *qcontext = reinterpret_cast<QQmlContext *>(context);
+ QObject *qvalue = reinterpret_cast<QObject *>(value);
+
+ // Give qvalue an engine reference if it doesn't yet have one.
+ if (!qmlEngine(qvalue)) {
+ QQmlEngine::setContextForObject(qvalue, qcontext->engine()->rootContext());
+ }
+
+ qcontext->setContextObject(qvalue);
+}
+
+void contextSetProperty(QQmlContext_ *context, QString_ *name, DataValue *value)
+{
+ const QString *qname = reinterpret_cast<QString *>(name);
+ QQmlContext *qcontext = reinterpret_cast<QQmlContext *>(context);
+
+ QVariant var;
+ unpackDataValue(value, &var);
+
+ // Give qvalue an engine reference if it doesn't yet have one .
+ QObject *obj = var.value<QObject *>();
+ if (obj && !qmlEngine(obj)) {
+ QQmlEngine::setContextForObject(obj, qcontext);
+ }
+
+ qcontext->setContextProperty(*qname, var);
+}
+
+void contextGetProperty(QQmlContext_ *context, QString_ *name, DataValue *result)
+{
+ QQmlContext *qcontext = reinterpret_cast<QQmlContext *>(context);
+ const QString *qname = reinterpret_cast<QString *>(name);
+
+ QVariant var = qcontext->contextProperty(*qname);
+ packDataValue(&var, result);
+}
+
+QQmlContext_ *contextSpawn(QQmlContext_ *context)
+{
+ QQmlContext *qcontext = reinterpret_cast<QQmlContext *>(context);
+ return new QQmlContext(qcontext);
+}
+
+void delObject(QObject_ *object)
+{
+ delete reinterpret_cast<QObject *>(object);
+}
+
+void delObjectLater(QObject_ *object)
+{
+ reinterpret_cast<QObject *>(object)->deleteLater();
+}
+
+const char *objectTypeName(QObject_ *object)
+{
+ return reinterpret_cast<QObject *>(object)->metaObject()->className();
+}
+
+int objectGetProperty(QObject_ *object, const char *name, DataValue *result)
+{
+ QObject *qobject = reinterpret_cast<QObject *>(object);
+
+ QVariant var = qobject->property(name);
+ packDataValue(&var, result);
+
+ if (!var.isValid() && qobject->metaObject()->indexOfProperty(name) == -1) {
+ // TODO May have to check the dynamic property names too.
+ return 0;
+ }
+ return 1;
+}
+
+error *objectSetProperty(QObject_ *object, const char *name, DataValue *value)
+{
+ QObject *qobject = reinterpret_cast<QObject *>(object);
+ QVariant var;
+ unpackDataValue(value, &var);
+
+ // Give qvalue an engine reference if it doesn't yet have one.
+ QObject *obj = var.value<QObject *>();
+ if (obj && !qmlEngine(obj)) {
+ QQmlContext *context = qmlContext(qobject);
+ if (context) {
+ QQmlEngine::setContextForObject(obj, context);
+ }
+ }
+
+ // Check that the types are compatible. There's probably more to be done here.
+ const QMetaObject *metaObject = qobject->metaObject();
+ int propIndex = metaObject->indexOfProperty(name);
+ if (propIndex == -1) {
+ return errorf("cannot set non-existent property \"%s\" on type %s", name, qobject->metaObject()->className());
+ }
+
+ QMetaProperty prop = metaObject->property(propIndex);
+ int propType = prop.userType();
+ void *valueArg;
+ if (propType == QMetaType::QVariant) {
+ valueArg = (void *)&var;
+ } else {
+ int varType = var.userType();
+ QVariant saved = var;
+ if (propType != varType && !var.convert(propType)) {
+ if (varType == QMetaType::QObjectStar) {
+ return errorf("cannot set property \"%s\" with type %s to value of %s*",
+ name, QMetaType::typeName(propType), saved.value<QObject*>()->metaObject()->className());
+ } else {
+ return errorf("cannot set property \"%s\" with type %s to value of %s",
+ name, QMetaType::typeName(propType), QMetaType::typeName(varType));
+ }
+ }
+ valueArg = (void *)var.constData();
+ }
+
+ int status = -1;
+ int flags = 0;
+ void *args[] = {valueArg, 0, &status, &flags};
+ QMetaObject::metacall(qobject, QMetaObject::WriteProperty, propIndex, args);
+ return 0;
+}
+
+error *objectInvoke(QObject_ *object, const char *method, int methodLen, DataValue *resultdv, DataValue *paramsdv, int paramsLen)
+{
+ QObject *qobject = reinterpret_cast<QObject *>(object);
+
+ QVariant result;
+ QVariant param[MaxParams];
+ QGenericArgument arg[MaxParams];
+ for (int i = 0; i < paramsLen; i++) {
+ unpackDataValue(&paramsdv[i], &param[i]);
+ arg[i] = Q_ARG(QVariant, param[i]);
+ }
+ if (paramsLen > 10) {
+ panicf("fix the parameter dispatching");
+ }
+
+ const QMetaObject *metaObject = qobject->metaObject();
+ // Walk backwards so descendants have priority.
+ for (int i = metaObject->methodCount()-1; i >= 0; i--) {
+ QMetaMethod metaMethod = metaObject->method(i);
+ QMetaMethod::MethodType methodType = metaMethod.methodType();
+ if (methodType == QMetaMethod::Method || methodType == QMetaMethod::Slot) {
+ QByteArray name = metaMethod.name();
+ if (name.length() == methodLen && qstrncmp(name.constData(), method, methodLen) == 0) {
+ if (metaMethod.parameterCount() < paramsLen) {
+ // TODO Might continue looking to see if a different signal has the same name and enough arguments.
+ return errorf("method \"%s\" has too few parameters for provided arguments", method);
+ }
+
+ bool ok;
+ if (metaMethod.returnType() == QMetaType::Void) {
+ ok = metaMethod.invoke(qobject, Qt::DirectConnection,
+ arg[0], arg[1], arg[2], arg[3], arg[4], arg[5], arg[6], arg[7], arg[8], arg[9]);
+ } else {
+ ok = metaMethod.invoke(qobject, Qt::DirectConnection, Q_RETURN_ARG(QVariant, result),
+ arg[0], arg[1], arg[2], arg[3], arg[4], arg[5], arg[6], arg[7], arg[8], arg[9]);
+ }
+ if (!ok) {
+ return errorf("invalid parameters to method \"%s\"", method);
+ }
+
+ packDataValue(&result, resultdv);
+ return 0;
+ }
+ }
+ }
+
+ return errorf("object does not expose a method \"%s\"", method);
+}
+
+void objectFindChild(QObject_ *object, QString_ *name, DataValue *resultdv)
+{
+ QObject *qobject = reinterpret_cast<QObject *>(object);
+ QString *qname = reinterpret_cast<QString *>(name);
+
+ QVariant var;
+ QObject *result = qobject->findChild<QObject *>(*qname);
+ if (result) {
+ var.setValue(result);
+ }
+ packDataValue(&var, resultdv);
+}
+
+void objectSetParent(QObject_ *object, QObject_ *parent)
+{
+ QObject *qobject = reinterpret_cast<QObject *>(object);
+ QObject *qparent = reinterpret_cast<QObject *>(parent);
+
+ qobject->setParent(qparent);
+}
+
+error *objectConnect(QObject_ *object, const char *signal, int signalLen, QQmlEngine_ *engine, void *func, int argsLen)
+{
+ QObject *qobject = reinterpret_cast<QObject *>(object);
+ QQmlEngine *qengine = reinterpret_cast<QQmlEngine *>(engine);
+ QByteArray qsignal(signal, signalLen);
+
+ const QMetaObject *meta = qobject->metaObject();
+ // Walk backwards so descendants have priority.
+ for (int i = meta->methodCount()-1; i >= 0; i--) {
+ QMetaMethod method = meta->method(i);
+ if (method.methodType() == QMetaMethod::Signal) {
+ QByteArray name = method.name();
+ if (name.length() == signalLen && qstrncmp(name.constData(), signal, signalLen) == 0) {
+ if (method.parameterCount() < argsLen) {
+ // TODO Might continue looking to see if a different signal has the same name and enough arguments.
+ return errorf("signal \"%s\" has too few parameters for provided function", name.constData());
+ }
+ Connector *connector = new Connector(qobject, method, qengine, func, argsLen);
+ const QMetaObject *connmeta = connector->metaObject();
+ QObject::connect(qobject, method, connector, connmeta->method(connmeta->methodOffset()));
+ return 0;
+ }
+ }
+ }
+ // Cannot use constData here as the byte array is not null-terminated.
+ return errorf("object does not expose a \"%s\" signal", qsignal.data());
+}
+
+QQmlContext_ *objectContext(QObject_ *object)
+{
+ return qmlContext(static_cast<QObject *>(object));
+}
+
+int objectIsComponent(QObject_ *object)
+{
+ QObject *qobject = static_cast<QObject *>(object);
+ return dynamic_cast<QQmlComponent *>(qobject) ? 1 : 0;
+}
+
+int objectIsWindow(QObject_ *object)
+{
+ QObject *qobject = static_cast<QObject *>(object);
+ return dynamic_cast<QQuickWindow *>(qobject) ? 1 : 0;
+}
+
+int objectIsView(QObject_ *object)
+{
+ QObject *qobject = static_cast<QObject *>(object);
+ return dynamic_cast<QQuickView *>(qobject) ? 1 : 0;
+}
+
+error *objectGoAddr(QObject_ *object, GoAddr **addr)
+{
+ QObject *qobject = static_cast<QObject *>(object);
+ GoValue *goValue = dynamic_cast<GoValue *>(qobject);
+ if (goValue) {
+ *addr = goValue->addr;
+ return 0;
+ }
+ GoPaintedValue *goPaintedValue = dynamic_cast<GoPaintedValue *>(qobject);
+ if (goPaintedValue) {
+ *addr = goPaintedValue->addr;
+ return 0;
+ }
+ return errorf("QML object is not backed by a Go value");
+}
+
+QString_ *newString(const char *data, int len)
+{
+ // This will copy data only once.
+ QByteArray ba = QByteArray::fromRawData(data, len);
+ return new QString(ba);
+}
+
+void delString(QString_ *s)
+{
+ delete reinterpret_cast<QString *>(s);
+}
+
+GoValue_ *newGoValue(GoAddr *addr, GoTypeInfo *typeInfo, QObject_ *parent)
+{
+ QObject *qparent = reinterpret_cast<QObject *>(parent);
+ if (typeInfo->paint) {
+ return new GoPaintedValue(addr, typeInfo, qparent);
+ }
+ return new GoValue(addr, typeInfo, qparent);
+}
+
+void goValueActivate(GoValue_ *value, GoTypeInfo *typeInfo, int addrOffset)
+{
+ GoMemberInfo *fieldInfo = typeInfo->fields;
+ for (int i = 0; i < typeInfo->fieldsLen; i++) {
+ if (fieldInfo->addrOffset == addrOffset) {
+ if (typeInfo->paint) {
+ static_cast<GoPaintedValue *>(value)->activate(fieldInfo->metaIndex);
+ } else {
+ static_cast<GoValue *>(value)->activate(fieldInfo->metaIndex);
+ }
+ return;
+ }
+ fieldInfo++;
+ }
+
+ // TODO Return an error; probably an unexported field.
+}
+
+void unpackDataValue(DataValue *value, QVariant_ *var)
+{
+ QVariant *qvar = reinterpret_cast<QVariant *>(var);
+ switch (value->dataType) {
+ case DTString:
+ *qvar = QString::fromUtf8(*(char **)value->data, value->len);
+ break;
+ case DTBool:
+ *qvar = bool(*(char *)(value->data) != 0);
+ break;
+ case DTInt64:
+ *qvar = *(qint64*)(value->data);
+ break;
+ case DTInt32:
+ *qvar = *(qint32*)(value->data);
+ break;
+ case DTUint64:
+ *qvar = *(quint64*)(value->data);
+ break;
+ case DTUint32:
+ *qvar = *(quint32*)(value->data);
+ break;
+ case DTFloat64:
+ *qvar = *(double*)(value->data);
+ break;
+ case DTFloat32:
+ *qvar = *(float*)(value->data);
+ break;
+ case DTColor:
+ *qvar = QColor::fromRgba(*(QRgb*)(value->data));
+ break;
+ case DTVariantList:
+ *qvar = **(QVariantList**)(value->data);
+ delete *(QVariantList**)(value->data);
+ break;
+ case DTObject:
+ qvar->setValue(*(QObject**)(value->data));
+ break;
+ case DTInvalid:
+ // null would be more natural, but an invalid variant means
+ // it has proper semantics when dealing with non-qml qt code.
+ //qvar->setValue(QJSValue(QJSValue::NullValue));
+ qvar->clear();
+ break;
+ default:
+ panicf("unknown data type: %d", value->dataType);
+ break;
+ }
+}
+
+void packDataValue(QVariant_ *var, DataValue *value)
+{
+ QVariant *qvar = reinterpret_cast<QVariant *>(var);
+
+ // Some assumptions are made below regarding the size of types.
+ // There's apparently no better way to handle this since that's
+ // how the types with well defined sizes (qint64) are mapped to
+ // meta-types (QMetaType::LongLong).
+ switch ((int)qvar->type()) {
+ case QVariant::Invalid:
+ value->dataType = DTInvalid;
+ break;
+ case QMetaType::QUrl:
+ *qvar = qvar->value<QUrl>().toString();
+ // fallthrough
+ case QMetaType::QString:
+ {
+ value->dataType = DTString;
+ QByteArray ba = qvar->toByteArray();
+ *(char**)(value->data) = local_strdup(ba.constData());
+ value->len = ba.size();
+ break;
+ }
+ case QMetaType::Bool:
+ value->dataType = DTBool;
+ *(qint8*)(value->data) = (qint8)qvar->toInt();
+ break;
+ case QMetaType::LongLong:
+ // Some of these entries will have to be fixed when handling platforms
+ // where sizeof(long long) != 8 or sizeof(int) != 4.
+ value->dataType = DTInt64;
+ *(qint64*)(value->data) = qvar->toLongLong();
+ break;
+ case QMetaType::ULongLong:
+ value->dataType = DTUint64;
+ *(quint64*)(value->data) = qvar->toLongLong();
+ break;
+ case QMetaType::Int:
+ value->dataType = DTInt32;
+ *(qint32*)(value->data) = qvar->toInt();
+ break;
+ case QMetaType::UInt:
+ value->dataType = DTUint32;
+ *(quint32*)(value->data) = qvar->toUInt();
+ break;
+ case QMetaType::VoidStar:
+ value->dataType = DTUintptr;
+ *(uintptr_t*)(value->data) = (uintptr_t)qvar->value<void *>();
+ break;
+ case QMetaType::Double:
+ value->dataType = DTFloat64;
+ *(double*)(value->data) = qvar->toDouble();
+ break;
+ case QMetaType::Float:
+ value->dataType = DTFloat32;
+ *(float*)(value->data) = qvar->toFloat();
+ break;
+ case QMetaType::QColor:
+ value->dataType = DTColor;
+ *(unsigned int*)(value->data) = qvar->value<QColor>().rgba();
+ break;
+ case QMetaType::QVariantList:
+ {
+ QVariantList varlist = qvar->toList();
+ int len = varlist.size();
+ DataValue *dvlist = (DataValue *) malloc(sizeof(DataValue) * len);
+ for (int i = 0; i < len; i++) {
+ packDataValue((void*)&varlist.at(i), &dvlist[i]);
+ }
+ value->dataType = DTValueList;
+ value->len = len;
+ *(DataValue**)(value->data) = dvlist;
+ }
+ break;
+ case QMetaType::QVariantMap:
+ {
+ QVariantMap varmap = qvar->toMap();
+ int len = varmap.size() * 2;
+ DataValue *dvlist = (DataValue *) malloc(sizeof(DataValue) * len);
+ QMapIterator<QString, QVariant> it(varmap);
+ for (int i = 0; i < len; i += 2) {
+ if (!it.hasNext()) {
+ panicf("QVariantMap mutated during iteration");
+ }
+ it.next();
+ QVariant key = it.key();
+ QVariant val = it.value();
+ packDataValue((void*)&key, &dvlist[i]);
+ packDataValue((void*)&val, &dvlist[i+1]);
+ }
+ value->dataType = DTValueMap;
+ value->len = len;
+ *(DataValue**)(value->data) = dvlist;
+ }
+ break;
+ case QMetaType::User:
+ {
+ static const int qjstype = QVariant::fromValue(QJSValue()).userType();
+ if (qvar->userType() == qjstype) {
+ auto var = qvar->value<QJSValue>().toVariant();
+ packDataValue(&var, value);
+ }
+ }
+ break;
+ default:
+ if (qvar->type() == (int)QMetaType::QObjectStar || qvar->canConvert<QObject *>()) {
+ QObject *qobject = qvar->value<QObject *>();
+ GoValue *goValue = dynamic_cast<GoValue *>(qobject);
+ if (goValue) {
+ value->dataType = DTGoAddr;
+ *(void **)(value->data) = goValue->addr;
+ break;
+ }
+ GoPaintedValue *goPaintedValue = dynamic_cast<GoPaintedValue *>(qobject);
+ if (goPaintedValue) {
+ value->dataType = DTGoAddr;
+ *(void **)(value->data) = goPaintedValue->addr;
+ break;
+ }
+ value->dataType = DTObject;
+ *(void **)(value->data) = qobject;
+ break;
+ }
+ {
+ QQmlListReference ref = qvar->value<QQmlListReference>();
+ if (ref.isValid() && ref.canCount() && ref.canAt()) {
+ int len = ref.count();
+ DataValue *dvlist = (DataValue *) malloc(sizeof(DataValue) * len);
+ QVariant elem;
+ for (int i = 0; i < len; i++) {
+ elem.setValue(ref.at(i));
+ packDataValue(&elem, &dvlist[i]);
+ }
+ value->dataType = DTValueList;
+ value->len = len;
+ *(DataValue**)(value->data) = dvlist;
+ break;
+ }
+ }
+ if (qstrncmp(qvar->typeName(), "QQmlListProperty<", 17) == 0) {
+ QQmlListProperty<QObject> *list = reinterpret_cast<QQmlListProperty<QObject>*>(qvar->data());
+ if (list->count && list->at) {
+ int len = list->count(list);
+ DataValue *dvlist = (DataValue *) malloc(sizeof(DataValue) * len);
+ QVariant elem;
+ for (int i = 0; i < len; i++) {
+ elem.setValue(list->at(list, i));
+ packDataValue(&elem, &dvlist[i]);
+ }
+ value->dataType = DTValueList;
+ value->len = len;
+ *(DataValue**)(value->data) = dvlist;
+ break;
+ }
+ }
+ panicf("unsupported variant type: %d (%s)", qvar->type(), qvar->typeName());
+ break;
+ }
+}
+
+QVariantList_ *newVariantList(DataValue *list, int len)
+{
+ QVariantList *vlist = new QVariantList();
+ vlist->reserve(len);
+ for (int i = 0; i < len; i++) {
+ QVariant var;
+ unpackDataValue(&list[i], &var);
+ vlist->append(var);
+ }
+ return vlist;
+}
+
+QObject *listPropertyAt(QQmlListProperty<QObject> *list, int i)
+{
+ return reinterpret_cast<QObject *>(hookListPropertyAt(list->data, (intptr_t)list->dummy1, (intptr_t)list->dummy2, i));
+}
+
+int listPropertyCount(QQmlListProperty<QObject> *list)
+{
+ return hookListPropertyCount(list->data, (intptr_t)list->dummy1, (intptr_t)list->dummy2);
+}
+
+void listPropertyAppend(QQmlListProperty<QObject> *list, QObject *obj)
+{
+ hookListPropertyAppend(list->data, (intptr_t)list->dummy1, (intptr_t)list->dummy2, obj);
+}
+
+void listPropertyClear(QQmlListProperty<QObject> *list)
+{
+ hookListPropertyClear(list->data, (intptr_t)list->dummy1, (intptr_t)list->dummy2);
+}
+
+QQmlListProperty_ *newListProperty(GoAddr *addr, intptr_t reflectIndex, intptr_t setIndex)
+{
+ QQmlListProperty<QObject> *list = new QQmlListProperty<QObject>();
+ list->data = addr;
+ list->dummy1 = (void*)reflectIndex;
+ list->dummy2 = (void*)setIndex;
+ list->at = listPropertyAt;
+ list->count = listPropertyCount;
+ list->append = listPropertyAppend;
+ list->clear = listPropertyClear;
+ return list;
+}
+
+void internalLogHandler(QtMsgType severity, const QMessageLogContext &context, const QString &text)
+{
+ QByteArray textba = text.toUtf8();
+ LogMessage message = {severity, textba.constData(), textba.size(), context.file, (int)strlen(context.file), context.line};
+ hookLogHandler(&message);
+}
+
+void installLogHandler()
+{
+ qInstallMessageHandler(internalLogHandler);
+}
+
+
+extern bool qRegisterResourceData(int version, const unsigned char *tree, const unsigned char *name, const unsigned char *data);
+extern bool qUnregisterResourceData(int version, const unsigned char *tree, const unsigned char *name, const unsigned char *data);
+
+void registerResourceData(int version, char *tree, char *name, char *data)
+{
+ qRegisterResourceData(version, (unsigned char*)tree, (unsigned char*)name, (unsigned char*)data);
+}
+
+void unregisterResourceData(int version, char *tree, char *name, char *data)
+{
+ qUnregisterResourceData(version, (unsigned char*)tree, (unsigned char*)name, (unsigned char*)data);
+}
+
+// vim:ts=4:sw=4:et:ft=cpp
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/capi.h b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/capi.h
new file mode 100644
index 000000000..25218637d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/capi.h
@@ -0,0 +1,211 @@
+#ifndef CAPI_H
+#define CAPI_H
+
+#include <stdint.h>
+#include <stddef.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+// It's surprising that MaximumParamCount is privately defined within qmetaobject.cpp.
+// Must fix the objectInvoke function if this is changed.
+// This is Qt's MaximuParamCount - 1, as it does not take the result value in account.
+enum { MaxParams = 10 };
+
+typedef void QApplication_;
+typedef void QMetaObject_;
+typedef void QObject_;
+typedef void QVariant_;
+typedef void QVariantList_;
+typedef void QString_;
+typedef void QQmlEngine_;
+typedef void QQmlContext_;
+typedef void QQmlComponent_;
+typedef void QQmlListProperty_;
+typedef void QQuickWindow_;
+typedef void QQuickView_;
+typedef void QMessageLogContext_;
+typedef void QImage_;
+typedef void GoValue_;
+typedef void GoAddr;
+typedef void GoTypeSpec_;
+
+typedef char error;
+error *errorf(const char *format, ...);
+void panicf(const char *format, ...);
+
+typedef enum {
+ DTUnknown = 0, // Has an unsupported type.
+ DTInvalid = 1, // Does not exist or similar.
+
+ DTString = 10,
+ DTBool = 11,
+ DTInt64 = 12,
+ DTInt32 = 13,
+ DTUint64 = 14,
+ DTUint32 = 15,
+ DTUintptr = 16,
+ DTFloat64 = 17,
+ DTFloat32 = 18,
+ DTColor = 19,
+
+ DTGoAddr = 100,
+ DTObject = 101,
+ DTValueMap = 102,
+ DTValueList = 103,
+ DTVariantList = 104,
+ DTListProperty = 105,
+
+ // Used in type information, not in an actual data value.
+ DTAny = 201, // Can hold any of the above types.
+ DTMethod = 202
+} DataType;
+
+typedef struct {
+ DataType dataType;
+ char data[8];
+ int len;
+} DataValue;
+
+typedef struct {
+ char *memberName; // points to memberNames
+ DataType memberType;
+ int reflectIndex;
+ int reflectGetIndex;
+ int reflectSetIndex;
+ int metaIndex;
+ int addrOffset;
+ char *methodSignature;
+ char *resultSignature;
+ int numIn;
+ int numOut;
+} GoMemberInfo;
+
+typedef struct {
+ char *typeName;
+ GoMemberInfo *fields;
+ GoMemberInfo *methods;
+ GoMemberInfo *members; // fields + methods
+ GoMemberInfo *paint; // in methods too
+ int fieldsLen;
+ int methodsLen;
+ int membersLen;
+ char *memberNames;
+
+ QMetaObject_ *metaObject;
+} GoTypeInfo;
+
+typedef struct {
+ int severity;
+ const char *text;
+ int textLen;
+ const char *file;
+ int fileLen;
+ int line;
+} LogMessage;
+
+void newGuiApplication();
+void applicationExec();
+void applicationExit();
+void applicationFlushAll();
+
+void idleTimerInit(int32_t *guiIdleRun);
+void idleTimerStart();
+
+void *currentThread();
+void *appThread();
+
+QQmlEngine_ *newEngine(QObject_ *parent);
+QQmlContext_ *engineRootContext(QQmlEngine_ *engine);
+void engineSetOwnershipCPP(QQmlEngine_ *engine, QObject_ *object);
+void engineSetOwnershipJS(QQmlEngine_ *engine, QObject_ *object);
+void engineSetContextForObject(QQmlEngine_ *engine, QObject_ *object);
+void engineAddImageProvider(QQmlEngine_ *engine, QString_ *providerId, void *imageFunc);
+
+void contextGetProperty(QQmlContext_ *context, QString_ *name, DataValue *value);
+void contextSetProperty(QQmlContext_ *context, QString_ *name, DataValue *value);
+void contextSetObject(QQmlContext_ *context, QObject_ *value);
+QQmlContext_ *contextSpawn(QQmlContext_ *context);
+
+void delObject(QObject_ *object);
+void delObjectLater(QObject_ *object);
+const char *objectTypeName(QObject_ *object);
+int objectGetProperty(QObject_ *object, const char *name, DataValue *result);
+error *objectSetProperty(QObject_ *object, const char *name, DataValue *value);
+void objectSetParent(QObject_ *object, QObject_ *parent);
+error *objectInvoke(QObject_ *object, const char *method, int methodLen, DataValue *result, DataValue *params, int paramsLen);
+void objectFindChild(QObject_ *object, QString_ *name, DataValue *result);
+QQmlContext_ *objectContext(QObject_ *object);
+int objectIsComponent(QObject_ *object);
+int objectIsWindow(QObject_ *object);
+int objectIsView(QObject_ *object);
+error *objectConnect(QObject_ *object, const char *signal, int signalLen, QQmlEngine_ *engine, void *func, int argsLen);
+error *objectGoAddr(QObject_ *object, GoAddr **addr);
+
+QQmlComponent_ *newComponent(QQmlEngine_ *engine, QObject_ *parent);
+void componentLoadURL(QQmlComponent_ *component, const char *url, int urlLen);
+void componentSetData(QQmlComponent_ *component, const char *data, int dataLen, const char *url, int urlLen);
+char *componentErrorString(QQmlComponent_ *component);
+QObject_ *componentCreate(QQmlComponent_ *component, QQmlContext_ *context);
+QQuickWindow_ *componentCreateWindow(QQmlComponent_ *component, QQmlContext_ *context);
+
+void windowShow(QQuickWindow_ *win);
+void windowHide(QQuickWindow_ *win);
+uintptr_t windowPlatformId(QQuickWindow_ *win);
+void windowConnectHidden(QQuickWindow_ *win);
+QObject_ *windowRootObject(QQuickWindow_ *win);
+QImage_ *windowGrabWindow(QQuickWindow_ *win);
+
+QImage_ *newImage(int width, int height);
+void delImage(QImage_ *image);
+void imageSize(QImage_ *image, int *width, int *height);
+unsigned char *imageBits(QImage_ *image);
+const unsigned char *imageConstBits(QImage_ *image);
+
+QString_ *newString(const char *data, int len);
+void delString(QString_ *s);
+
+GoValue_ *newGoValue(GoAddr *addr, GoTypeInfo *typeInfo, QObject_ *parent);
+void goValueActivate(GoValue_ *value, GoTypeInfo *typeInfo, int addrOffset);
+
+void packDataValue(QVariant_ *var, DataValue *result);
+void unpackDataValue(DataValue *value, QVariant_ *result);
+
+QVariantList_ *newVariantList(DataValue *list, int len);
+
+QQmlListProperty_ *newListProperty(GoAddr *addr, intptr_t reflectIndex, intptr_t setIndex);
+
+int registerType(char *location, int major, int minor, char *name, GoTypeInfo *typeInfo, GoTypeSpec_ *spec);
+int registerSingleton(char *location, int major, int minor, char *name, GoTypeInfo *typeInfo, GoTypeSpec_ *spec);
+
+void installLogHandler();
+
+void hookIdleTimer();
+void hookLogHandler(LogMessage *message);
+void hookGoValueReadField(QQmlEngine_ *engine, GoAddr *addr, int memberIndex, int getIndex, int setIndex, DataValue *result);
+void hookGoValueWriteField(QQmlEngine_ *engine, GoAddr *addr, int memberIndex, int setIndex, DataValue *assign);
+void hookGoValueCallMethod(QQmlEngine_ *engine, GoAddr *addr, int memberIndex, DataValue *result);
+void hookGoValueDestroyed(QQmlEngine_ *engine, GoAddr *addr);
+void hookGoValuePaint(QQmlEngine_ *engine, GoAddr *addr, intptr_t reflextIndex);
+QImage_ *hookRequestImage(void *imageFunc, char *id, int idLen, int width, int height);
+GoAddr *hookGoValueTypeNew(GoValue_ *value, GoTypeSpec_ *spec);
+void hookWindowHidden(QObject_ *addr);
+void hookSignalCall(QQmlEngine_ *engine, void *func, DataValue *params);
+void hookSignalDisconnect(void *func);
+void hookPanic(char *message);
+int hookListPropertyCount(GoAddr *addr, intptr_t reflectIndex, intptr_t setIndex);
+QObject_ *hookListPropertyAt(GoAddr *addr, intptr_t reflectIndex, intptr_t setIndex, int i);
+void hookListPropertyAppend(GoAddr *addr, intptr_t reflectIndex, intptr_t setIndex, QObject_ *obj);
+void hookListPropertyClear(GoAddr *addr, intptr_t reflectIndex, intptr_t setIndex);
+
+void registerResourceData(int version, char *tree, char *name, char *data);
+void unregisterResourceData(int version, char *tree, char *name, char *data);
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // CAPI_H
+
+// vim:ts=4:et
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/connector.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/connector.cpp
new file mode 100644
index 000000000..6005bfc62
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/connector.cpp
@@ -0,0 +1,46 @@
+#include <QObject>
+
+#include "connector.h"
+#include "capi.h"
+
+Connector::~Connector()
+{
+ hookSignalDisconnect(func);
+}
+
+void Connector::invoke()
+{
+ panicf("should never get called");
+}
+
+int Connector::qt_metacall(QMetaObject::Call c, int idx, void **a)
+{
+ if (c == QMetaObject::InvokeMetaMethod && idx == metaObject()->methodOffset()) {
+ DataValue args[MaxParams];
+ QObject *plain = NULL;
+ for (int i = 0; i < argsLen; i++) {
+ int paramType = method.parameterType(i);
+ if (paramType == 0 && a[1 + i] != NULL) {
+ const char *typeName = method.parameterTypes()[i].constData();
+ void *addr = a[1 + i];
+ if (typeName[strlen(typeName)-1] == '*') {
+ addr = *(void **)addr;
+ }
+ plain = new PlainObject(typeName, addr, plain);
+ QVariant var = QVariant::fromValue((QObject *)plain);
+ packDataValue(&var, &args[i]);
+ } else {
+ QVariant var(method.parameterType(i), a[1 + i]);
+ packDataValue(&var, &args[i]);
+ }
+ }
+ hookSignalCall(engine, func, args);
+ if (plain != NULL) {
+ delete plain;
+ }
+ return -1;
+ }
+ return standard_qt_metacall(c, idx, a);
+}
+
+// vim:ts=4:sw=4:et
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/connector.h b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/connector.h
new file mode 100644
index 000000000..82954927b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/connector.h
@@ -0,0 +1,58 @@
+#ifndef CONNECTOR_H
+#define CONNECTOR_H
+
+#include <QObject>
+
+#include <stdint.h>
+
+class Connector : public QObject
+{
+ Q_OBJECT
+
+ public:
+
+ Connector(QObject *sender, QMetaMethod method, QQmlEngine *engine, void *func, int argsLen)
+ : QObject(sender), engine(engine), method(method), func(func), argsLen(argsLen) {};
+
+ virtual ~Connector();
+
+ // MOC HACK: s/Connector::qt_metacall/Connector::standard_qt_metacall/
+ int standard_qt_metacall(QMetaObject::Call c, int idx, void **a);
+
+ public slots:
+
+ void invoke();
+
+ private:
+
+ QQmlEngine *engine;
+ QMetaMethod method;
+ void *func;
+ int argsLen;
+};
+
+class PlainObject : public QObject
+{
+ Q_OBJECT
+
+ Q_PROPERTY(QString plainType READ getPlainType)
+ Q_PROPERTY(void *plainAddr READ getPlainAddr)
+
+ QString plainType;
+ void *plainAddr;
+
+ public:
+
+ PlainObject(QObject *parent = 0)
+ : QObject(parent) {};
+
+ PlainObject(const char *plainType, void *plainAddr, QObject *parent = 0)
+ : QObject(parent), plainType(plainType), plainAddr(plainAddr) {};
+
+ QString getPlainType() { return plainType; };
+ void *getPlainAddr() { return plainAddr; };
+};
+
+#endif // CONNECTOR_H
+
+// vim:ts=4:sw=4:et
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/govalue.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/govalue.cpp
new file mode 100644
index 000000000..5cf58a62d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/govalue.cpp
@@ -0,0 +1,236 @@
+#include <private/qmetaobjectbuilder_p.h>
+
+#include <QtOpenGL/QtOpenGL>
+#include <QtOpenGL/QGLFunctions>
+
+#include <QtQml/QtQml>
+#include <QQmlEngine>
+#include <QDebug>
+
+#include "govalue.h"
+#include "capi.h"
+
+class GoValueMetaObject : public QAbstractDynamicMetaObject
+{
+public:
+ GoValueMetaObject(QObject* value, GoAddr *addr, GoTypeInfo *typeInfo);
+
+ void activatePropIndex(int propIndex);
+
+protected:
+ int metaCall(QMetaObject::Call c, int id, void **a);
+
+private:
+ QObject *value;
+ GoAddr *addr;
+ GoTypeInfo *typeInfo;
+};
+
+GoValueMetaObject::GoValueMetaObject(QObject *value, GoAddr *addr, GoTypeInfo *typeInfo)
+ : value(value), addr(addr), typeInfo(typeInfo)
+{
+ //d->parent = static_cast<QAbstractDynamicMetaObject *>(priv->metaObject);
+ *static_cast<QMetaObject *>(this) = *metaObjectFor(typeInfo);
+
+ QObjectPrivate *objPriv = QObjectPrivate::get(value);
+ objPriv->metaObject = this;
+}
+
+int GoValueMetaObject::metaCall(QMetaObject::Call c, int idx, void **a)
+{
+ //qWarning() << "GoValueMetaObject::metaCall" << c << idx;
+ switch (c) {
+ case QMetaObject::ReadProperty:
+ case QMetaObject::WriteProperty:
+ {
+ // TODO Cache propertyOffset, methodOffset (and maybe qmlEngine)
+ int propOffset = propertyOffset();
+ if (idx < propOffset) {
+ return value->qt_metacall(c, idx, a);
+ }
+ GoMemberInfo *memberInfo = typeInfo->fields;
+ for (int i = 0; i < typeInfo->fieldsLen; i++) {
+ if (memberInfo->metaIndex == idx) {
+ if (c == QMetaObject::ReadProperty) {
+ DataValue result;
+ hookGoValueReadField(qmlEngine(value), addr, memberInfo->reflectIndex, memberInfo->reflectGetIndex, memberInfo->reflectSetIndex, &result);
+ if (memberInfo->memberType == DTListProperty) {
+ if (result.dataType != DTListProperty) {
+ panicf("reading DTListProperty field returned non-DTListProperty result");
+ }
+ QQmlListProperty<QObject> *in = *reinterpret_cast<QQmlListProperty<QObject> **>(result.data);
+ QQmlListProperty<QObject> *out = reinterpret_cast<QQmlListProperty<QObject> *>(a[0]);
+ *out = *in;
+ // TODO Could provide a single variable in the stack to ReadField instead.
+ delete in;
+ } else {
+ QVariant *out = reinterpret_cast<QVariant *>(a[0]);
+ unpackDataValue(&result, out);
+ }
+ } else {
+ DataValue assign;
+ QVariant *in = reinterpret_cast<QVariant *>(a[0]);
+ packDataValue(in, &assign);
+ hookGoValueWriteField(qmlEngine(value), addr, memberInfo->reflectIndex, memberInfo->reflectSetIndex, &assign);
+ activate(value, methodOffset() + (idx - propOffset), 0);
+ }
+ return -1;
+ }
+ memberInfo++;
+ }
+ QMetaProperty prop = property(idx);
+ qWarning() << "Property" << prop.name() << "not found!?";
+ break;
+ }
+ case QMetaObject::InvokeMetaMethod:
+ {
+ if (idx < methodOffset()) {
+ return value->qt_metacall(c, idx, a);
+ }
+ GoMemberInfo *memberInfo = typeInfo->methods;
+ for (int i = 0; i < typeInfo->methodsLen; i++) {
+ if (memberInfo->metaIndex == idx) {
+ // args[0] is the result if any.
+ DataValue args[1 + MaxParams];
+ for (int i = 1; i < memberInfo->numIn+1; i++) {
+ packDataValue(reinterpret_cast<QVariant *>(a[i]), &args[i]);
+ }
+ hookGoValueCallMethod(qmlEngine(value), addr, memberInfo->reflectIndex, args);
+ if (memberInfo->numOut > 0) {
+ unpackDataValue(&args[0], reinterpret_cast<QVariant *>(a[0]));
+ }
+ return -1;
+ }
+ memberInfo++;
+ }
+ QMetaMethod m = method(idx);
+ qWarning() << "Method" << m.name() << "not found!?";
+ break;
+ }
+ default:
+ break; // Unhandled.
+ }
+ return -1;
+}
+
+void GoValueMetaObject::activatePropIndex(int propIndex)
+{
+ // Properties are added first, so the first fieldLen methods are in
+ // fact the signals of the respective properties.
+ int relativeIndex = propIndex - propertyOffset();
+ activate(value, methodOffset() + relativeIndex, 0);
+}
+
+GoValue::GoValue(GoAddr *addr, GoTypeInfo *typeInfo, QObject *parent)
+ : addr(addr), typeInfo(typeInfo)
+{
+ valueMeta = new GoValueMetaObject(this, addr, typeInfo);
+ setParent(parent);
+}
+
+GoValue::~GoValue()
+{
+ hookGoValueDestroyed(qmlEngine(this), addr);
+}
+
+void GoValue::activate(int propIndex)
+{
+ valueMeta->activatePropIndex(propIndex);
+}
+
+GoPaintedValue::GoPaintedValue(GoAddr *addr, GoTypeInfo *typeInfo, QObject *parent)
+ : addr(addr), typeInfo(typeInfo)
+{
+ valueMeta = new GoValueMetaObject(this, addr, typeInfo);
+ setParent(parent);
+
+ QQuickItem::setFlag(QQuickItem::ItemHasContents, true);
+ QQuickPaintedItem::setRenderTarget(QQuickPaintedItem::FramebufferObject);
+}
+
+GoPaintedValue::~GoPaintedValue()
+{
+ hookGoValueDestroyed(qmlEngine(this), addr);
+}
+
+void GoPaintedValue::activate(int propIndex)
+{
+ valueMeta->activatePropIndex(propIndex);
+}
+
+void GoPaintedValue::paint(QPainter *painter)
+{
+ painter->beginNativePainting();
+ hookGoValuePaint(qmlEngine(this), addr, typeInfo->paint->reflectIndex);
+ painter->endNativePainting();
+}
+
+QMetaObject *metaObjectFor(GoTypeInfo *typeInfo)
+{
+ if (typeInfo->metaObject) {
+ return reinterpret_cast<QMetaObject *>(typeInfo->metaObject);
+ }
+
+ QMetaObjectBuilder mob;
+ if (typeInfo->paint) {
+ mob.setSuperClass(&QQuickPaintedItem::staticMetaObject);
+ } else {
+ mob.setSuperClass(&QObject::staticMetaObject);
+ }
+ mob.setClassName(typeInfo->typeName);
+ mob.setFlags(QMetaObjectBuilder::DynamicMetaObject);
+
+ GoMemberInfo *memberInfo;
+
+ memberInfo = typeInfo->fields;
+ int relativePropIndex = mob.propertyCount();
+ for (int i = 0; i < typeInfo->fieldsLen; i++) {
+ mob.addSignal("__" + QByteArray::number(relativePropIndex) + "()");
+ const char *typeName = "QVariant";
+ if (memberInfo->memberType == DTListProperty) {
+ typeName = "QQmlListProperty<QObject>";
+ }
+ QMetaPropertyBuilder propb = mob.addProperty(memberInfo->memberName, typeName, relativePropIndex);
+ propb.setWritable(true);
+ memberInfo->metaIndex = relativePropIndex;
+ memberInfo++;
+ relativePropIndex++;
+ }
+
+ memberInfo = typeInfo->methods;
+ int relativeMethodIndex = mob.methodCount();
+ for (int i = 0; i < typeInfo->methodsLen; i++) {
+ if (*memberInfo->resultSignature) {
+ mob.addMethod(memberInfo->methodSignature, memberInfo->resultSignature);
+ } else {
+ mob.addMethod(memberInfo->methodSignature);
+ }
+ memberInfo->metaIndex = relativeMethodIndex;
+ memberInfo++;
+ relativeMethodIndex++;
+ }
+
+ // TODO Support default properties.
+ //mob.addClassInfo("DefaultProperty", "objects");
+
+ QMetaObject *mo = mob.toMetaObject();
+
+ // Turn the relative indexes into absolute indexes.
+ memberInfo = typeInfo->fields;
+ int propOffset = mo->propertyOffset();
+ for (int i = 0; i < typeInfo->fieldsLen; i++) {
+ memberInfo->metaIndex += propOffset;
+ memberInfo++;
+ }
+ memberInfo = typeInfo->methods;
+ int methodOffset = mo->methodOffset();
+ for (int i = 0; i < typeInfo->methodsLen; i++) {
+ memberInfo->metaIndex += methodOffset;
+ memberInfo++;
+ }
+
+ typeInfo->metaObject = mo;
+ return mo;
+}
+
+// vim:ts=4:sw=4:et:ft=cpp
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/govalue.h b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/govalue.h
new file mode 100644
index 000000000..aa6ddd10c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/govalue.h
@@ -0,0 +1,56 @@
+#ifndef GOVALUE_H
+#define GOVALUE_H
+
+// Unfortunatley we need access to private bits, because the
+// whole dynamic meta-object concept is sadly being hidden
+// away, and without it this package wouldn't exist.
+#include <private/qmetaobject_p.h>
+
+#include <QQuickPaintedItem>
+#include <QPainter>
+
+#include "capi.h"
+
+class GoValueMetaObject;
+
+QMetaObject *metaObjectFor(GoTypeInfo *typeInfo);
+
+class GoValue : public QObject
+{
+ Q_OBJECT
+
+public:
+ GoAddr *addr;
+ GoTypeInfo *typeInfo;
+
+ GoValue(GoAddr *addr, GoTypeInfo *typeInfo, QObject *parent);
+ virtual ~GoValue();
+
+ void activate(int propIndex);
+
+private:
+ GoValueMetaObject *valueMeta;
+};
+
+class GoPaintedValue : public QQuickPaintedItem
+{
+ Q_OBJECT
+
+public:
+ GoAddr *addr;
+ GoTypeInfo *typeInfo;
+
+ GoPaintedValue(GoAddr *addr, GoTypeInfo *typeInfo, QObject *parent);
+ virtual ~GoPaintedValue();
+
+ void activate(int propIndex);
+
+ virtual void paint(QPainter *painter);
+
+private:
+ GoValueMetaObject *valueMeta;
+};
+
+#endif // GOVALUE_H
+
+// vim:ts=4:sw=4:et:ft=cpp
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/govaluetype.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/govaluetype.cpp
new file mode 100644
index 000000000..925045390
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/govaluetype.cpp
@@ -0,0 +1,254 @@
+#include "govaluetype.h"
+
+#define DEFINE_GOVALUETYPE(N) \
+ template<> QMetaObject GoValueType<N>::staticMetaObject = QMetaObject(); \
+ template<> GoTypeInfo *GoValueType<N>::typeInfo = 0; \
+ template<> GoTypeSpec_ *GoValueType<N>::typeSpec = 0;
+
+#define DEFINE_GOPAINTEDVALUETYPE(N) \
+ template<> QMetaObject GoPaintedValueType<N>::staticMetaObject = QMetaObject(); \
+ template<> GoTypeInfo *GoPaintedValueType<N>::typeInfo = 0; \
+ template<> GoTypeSpec_ *GoPaintedValueType<N>::typeSpec = 0;
+
+DEFINE_GOVALUETYPE(1)
+DEFINE_GOVALUETYPE(2)
+DEFINE_GOVALUETYPE(3)
+DEFINE_GOVALUETYPE(4)
+DEFINE_GOVALUETYPE(5)
+DEFINE_GOVALUETYPE(6)
+DEFINE_GOVALUETYPE(7)
+DEFINE_GOVALUETYPE(8)
+DEFINE_GOVALUETYPE(9)
+DEFINE_GOVALUETYPE(10)
+DEFINE_GOVALUETYPE(11)
+DEFINE_GOVALUETYPE(12)
+DEFINE_GOVALUETYPE(13)
+DEFINE_GOVALUETYPE(14)
+DEFINE_GOVALUETYPE(15)
+DEFINE_GOVALUETYPE(16)
+DEFINE_GOVALUETYPE(17)
+DEFINE_GOVALUETYPE(18)
+DEFINE_GOVALUETYPE(19)
+DEFINE_GOVALUETYPE(20)
+DEFINE_GOVALUETYPE(21)
+DEFINE_GOVALUETYPE(22)
+DEFINE_GOVALUETYPE(23)
+DEFINE_GOVALUETYPE(24)
+DEFINE_GOVALUETYPE(25)
+DEFINE_GOVALUETYPE(26)
+DEFINE_GOVALUETYPE(27)
+DEFINE_GOVALUETYPE(28)
+DEFINE_GOVALUETYPE(29)
+DEFINE_GOVALUETYPE(30)
+
+DEFINE_GOPAINTEDVALUETYPE(1)
+DEFINE_GOPAINTEDVALUETYPE(2)
+DEFINE_GOPAINTEDVALUETYPE(3)
+DEFINE_GOPAINTEDVALUETYPE(4)
+DEFINE_GOPAINTEDVALUETYPE(5)
+DEFINE_GOPAINTEDVALUETYPE(6)
+DEFINE_GOPAINTEDVALUETYPE(7)
+DEFINE_GOPAINTEDVALUETYPE(8)
+DEFINE_GOPAINTEDVALUETYPE(9)
+DEFINE_GOPAINTEDVALUETYPE(10)
+DEFINE_GOPAINTEDVALUETYPE(11)
+DEFINE_GOPAINTEDVALUETYPE(12)
+DEFINE_GOPAINTEDVALUETYPE(13)
+DEFINE_GOPAINTEDVALUETYPE(14)
+DEFINE_GOPAINTEDVALUETYPE(15)
+DEFINE_GOPAINTEDVALUETYPE(16)
+DEFINE_GOPAINTEDVALUETYPE(17)
+DEFINE_GOPAINTEDVALUETYPE(18)
+DEFINE_GOPAINTEDVALUETYPE(19)
+DEFINE_GOPAINTEDVALUETYPE(20)
+DEFINE_GOPAINTEDVALUETYPE(21)
+DEFINE_GOPAINTEDVALUETYPE(22)
+DEFINE_GOPAINTEDVALUETYPE(23)
+DEFINE_GOPAINTEDVALUETYPE(24)
+DEFINE_GOPAINTEDVALUETYPE(25)
+DEFINE_GOPAINTEDVALUETYPE(26)
+DEFINE_GOPAINTEDVALUETYPE(27)
+DEFINE_GOPAINTEDVALUETYPE(28)
+DEFINE_GOPAINTEDVALUETYPE(29)
+DEFINE_GOPAINTEDVALUETYPE(30)
+
+static int goValueTypeN = 0;
+static int goPaintedValueTypeN = 0;
+
+template<int N>
+int registerSingletonN(char *location, int major, int minor, char *name, GoTypeInfo *info, GoTypeSpec_ *spec) {
+ GoValueType<N>::init(info, spec);
+ return qmlRegisterSingletonType< GoValueType<N> >(location, major, minor, name, [](QQmlEngine *qmlEngine, QJSEngine *jsEngine) -> QObject* {
+ QObject *singleton = new GoValueType<N>();
+ QQmlEngine::setContextForObject(singleton, qmlEngine->rootContext());
+ return singleton;
+ });
+}
+
+template<int N>
+int registerPaintedSingletonN(char *location, int major, int minor, char *name, GoTypeInfo *info, GoTypeSpec_ *spec) {
+ GoPaintedValueType<N>::init(info, spec);
+ return qmlRegisterSingletonType< GoPaintedValueType<N> >(location, major, minor, name, [](QQmlEngine *qmlEngine, QJSEngine *jsEngine) -> QObject* {
+ QObject *singleton = new GoPaintedValueType<N>();
+ QQmlEngine::setContextForObject(singleton, qmlEngine->rootContext());
+ return singleton;
+ });
+}
+
+#define GOVALUETYPE_CASE_SINGLETON(N) \
+ case N: return registerSingletonN<N>(location, major, minor, name, info, spec);
+#define GOPAINTEDVALUETYPE_CASE_SINGLETON(N) \
+ case N: return registerPaintedSingletonN<N>(location, major, minor, name, info, spec);
+
+int registerSingleton(char *location, int major, int minor, char *name, GoTypeInfo *info, GoTypeSpec_ *spec)
+{
+ if (!info->paint) {
+ switch (++goValueTypeN) {
+ GOVALUETYPE_CASE_SINGLETON(1)
+ GOVALUETYPE_CASE_SINGLETON(2)
+ GOVALUETYPE_CASE_SINGLETON(3)
+ GOVALUETYPE_CASE_SINGLETON(4)
+ GOVALUETYPE_CASE_SINGLETON(5)
+ GOVALUETYPE_CASE_SINGLETON(6)
+ GOVALUETYPE_CASE_SINGLETON(7)
+ GOVALUETYPE_CASE_SINGLETON(8)
+ GOVALUETYPE_CASE_SINGLETON(9)
+ GOVALUETYPE_CASE_SINGLETON(10)
+ GOVALUETYPE_CASE_SINGLETON(11)
+ GOVALUETYPE_CASE_SINGLETON(12)
+ GOVALUETYPE_CASE_SINGLETON(13)
+ GOVALUETYPE_CASE_SINGLETON(14)
+ GOVALUETYPE_CASE_SINGLETON(15)
+ GOVALUETYPE_CASE_SINGLETON(16)
+ GOVALUETYPE_CASE_SINGLETON(17)
+ GOVALUETYPE_CASE_SINGLETON(18)
+ GOVALUETYPE_CASE_SINGLETON(19)
+ GOVALUETYPE_CASE_SINGLETON(20)
+ GOVALUETYPE_CASE_SINGLETON(21)
+ GOVALUETYPE_CASE_SINGLETON(22)
+ GOVALUETYPE_CASE_SINGLETON(23)
+ GOVALUETYPE_CASE_SINGLETON(24)
+ GOVALUETYPE_CASE_SINGLETON(25)
+ GOVALUETYPE_CASE_SINGLETON(26)
+ GOVALUETYPE_CASE_SINGLETON(27)
+ GOVALUETYPE_CASE_SINGLETON(28)
+ GOVALUETYPE_CASE_SINGLETON(29)
+ GOVALUETYPE_CASE_SINGLETON(30)
+ }
+ } else {
+ switch (++goPaintedValueTypeN) {
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(1)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(2)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(3)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(4)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(5)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(6)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(7)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(8)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(9)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(10)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(11)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(12)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(13)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(14)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(15)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(16)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(17)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(18)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(19)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(20)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(21)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(22)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(23)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(24)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(25)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(26)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(27)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(28)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(29)
+ GOPAINTEDVALUETYPE_CASE_SINGLETON(30)
+ }
+ }
+ panicf("too many registered types; please contact the Go QML developers");
+ return 0;
+}
+
+#define GOVALUETYPE_CASE(N) \
+ case N: GoValueType<N>::init(info, spec); return qmlRegisterType< GoValueType<N> >(location, major, minor, name);
+#define GOPAINTEDVALUETYPE_CASE(N) \
+ case N: GoPaintedValueType<N>::init(info, spec); return qmlRegisterType< GoPaintedValueType<N> >(location, major, minor, name);
+
+int registerType(char *location, int major, int minor, char *name, GoTypeInfo *info, GoTypeSpec_ *spec)
+{
+ if (!info->paint) {
+ switch (++goValueTypeN) {
+ GOVALUETYPE_CASE(1)
+ GOVALUETYPE_CASE(2)
+ GOVALUETYPE_CASE(3)
+ GOVALUETYPE_CASE(4)
+ GOVALUETYPE_CASE(5)
+ GOVALUETYPE_CASE(6)
+ GOVALUETYPE_CASE(7)
+ GOVALUETYPE_CASE(8)
+ GOVALUETYPE_CASE(9)
+ GOVALUETYPE_CASE(10)
+ GOVALUETYPE_CASE(11)
+ GOVALUETYPE_CASE(12)
+ GOVALUETYPE_CASE(13)
+ GOVALUETYPE_CASE(14)
+ GOVALUETYPE_CASE(15)
+ GOVALUETYPE_CASE(16)
+ GOVALUETYPE_CASE(17)
+ GOVALUETYPE_CASE(18)
+ GOVALUETYPE_CASE(19)
+ GOVALUETYPE_CASE(20)
+ GOVALUETYPE_CASE(21)
+ GOVALUETYPE_CASE(22)
+ GOVALUETYPE_CASE(23)
+ GOVALUETYPE_CASE(24)
+ GOVALUETYPE_CASE(25)
+ GOVALUETYPE_CASE(26)
+ GOVALUETYPE_CASE(27)
+ GOVALUETYPE_CASE(28)
+ GOVALUETYPE_CASE(29)
+ GOVALUETYPE_CASE(30)
+ }
+ } else {
+ switch (++goPaintedValueTypeN) {
+ GOPAINTEDVALUETYPE_CASE(1)
+ GOPAINTEDVALUETYPE_CASE(2)
+ GOPAINTEDVALUETYPE_CASE(3)
+ GOPAINTEDVALUETYPE_CASE(4)
+ GOPAINTEDVALUETYPE_CASE(5)
+ GOPAINTEDVALUETYPE_CASE(6)
+ GOPAINTEDVALUETYPE_CASE(7)
+ GOPAINTEDVALUETYPE_CASE(8)
+ GOPAINTEDVALUETYPE_CASE(9)
+ GOPAINTEDVALUETYPE_CASE(10)
+ GOPAINTEDVALUETYPE_CASE(11)
+ GOPAINTEDVALUETYPE_CASE(12)
+ GOPAINTEDVALUETYPE_CASE(13)
+ GOPAINTEDVALUETYPE_CASE(14)
+ GOPAINTEDVALUETYPE_CASE(15)
+ GOPAINTEDVALUETYPE_CASE(16)
+ GOPAINTEDVALUETYPE_CASE(17)
+ GOPAINTEDVALUETYPE_CASE(18)
+ GOPAINTEDVALUETYPE_CASE(19)
+ GOPAINTEDVALUETYPE_CASE(20)
+ GOPAINTEDVALUETYPE_CASE(21)
+ GOPAINTEDVALUETYPE_CASE(22)
+ GOPAINTEDVALUETYPE_CASE(23)
+ GOPAINTEDVALUETYPE_CASE(24)
+ GOPAINTEDVALUETYPE_CASE(25)
+ GOPAINTEDVALUETYPE_CASE(26)
+ GOPAINTEDVALUETYPE_CASE(27)
+ GOPAINTEDVALUETYPE_CASE(28)
+ GOPAINTEDVALUETYPE_CASE(29)
+ GOPAINTEDVALUETYPE_CASE(30)
+ }
+ }
+ panicf("too many registered types; please contact the Go QML developers");
+ return 0;
+}
+
+// vim:sw=4:st=4:et:ft=cpp
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/govaluetype.h b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/govaluetype.h
new file mode 100644
index 000000000..6007d394c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/govaluetype.h
@@ -0,0 +1,48 @@
+#ifndef GOVALUETYPE_H
+#define GOVALUETYPE_H
+
+#include "govalue.h"
+
+template <int N>
+class GoValueType : public GoValue
+{
+public:
+
+ GoValueType()
+ : GoValue(hookGoValueTypeNew(this, typeSpec), typeInfo, 0) {};
+
+ static void init(GoTypeInfo *info, GoTypeSpec_ *spec)
+ {
+ typeInfo = info;
+ typeSpec = spec;
+ static_cast<QMetaObject &>(staticMetaObject) = *metaObjectFor(typeInfo);
+ };
+
+ static GoTypeSpec_ *typeSpec;
+ static GoTypeInfo *typeInfo;
+ static QMetaObject staticMetaObject;
+};
+
+template <int N>
+class GoPaintedValueType : public GoPaintedValue
+{
+public:
+
+ GoPaintedValueType()
+ : GoPaintedValue(hookGoValueTypeNew(this, typeSpec), typeInfo, 0) {};
+
+ static void init(GoTypeInfo *info, GoTypeSpec_ *spec)
+ {
+ typeInfo = info;
+ typeSpec = spec;
+ static_cast<QMetaObject &>(staticMetaObject) = *metaObjectFor(typeInfo);
+ };
+
+ static GoTypeSpec_ *typeSpec;
+ static GoTypeInfo *typeInfo;
+ static QMetaObject staticMetaObject;
+};
+
+#endif // GOVALUETYPE_H
+
+// vim:ts=4:sw=4:et
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/idletimer.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/idletimer.cpp
new file mode 100644
index 000000000..3bd097508
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/idletimer.cpp
@@ -0,0 +1,58 @@
+#include <QBasicTimer>
+#include <QThread>
+#include <QDebug>
+#include <mutex>
+
+#include "capi.h"
+
+class IdleTimer : public QObject
+{
+ Q_OBJECT
+
+ public:
+
+ static IdleTimer *singleton() {
+ static IdleTimer singleton;
+ return &singleton;
+ }
+
+ void init(int32_t *guiIdleRun)
+ {
+ this->guiIdleRun = guiIdleRun;
+ }
+
+ Q_INVOKABLE void start()
+ {
+ timer.start(0, this);
+ }
+
+ protected:
+
+ void timerEvent(QTimerEvent *event)
+ {
+ __sync_synchronize();
+ if (*guiIdleRun > 0) {
+ hookIdleTimer();
+ } else {
+ timer.stop();
+ }
+ }
+
+ private:
+
+ int32_t *guiIdleRun;
+
+ QBasicTimer timer;
+};
+
+void idleTimerInit(int32_t *guiIdleRun)
+{
+ IdleTimer::singleton()->init(guiIdleRun);
+}
+
+void idleTimerStart()
+{
+ QMetaObject::invokeMethod(IdleTimer::singleton(), "start", Qt::QueuedConnection);
+}
+
+// vim:ts=4:sw=4:et:ft=cpp
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/mmemwin.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/mmemwin.cpp
new file mode 100644
index 000000000..7aa3bff2b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/mmemwin.cpp
@@ -0,0 +1,27 @@
+#include <windows.h>
+
+#define protREAD 1
+#define protWRITE 2
+#define protEXEC 4
+
+extern "C" {
+
+int mprotect(void *addr, size_t len, int prot)
+{
+ DWORD wprot = 0;
+ if (prot & protWRITE) {
+ wprot = PAGE_READWRITE;
+ } else if (prot & protREAD) {
+ wprot = PAGE_READONLY;
+ }
+ if (prot & protEXEC) {
+ wprot <<= 4;
+ }
+ DWORD oldwprot;
+ if (!VirtualProtect(addr, len, wprot, &oldwprot)) {
+ return -1;
+ }
+ return 0;
+}
+
+} // extern "C"
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_all.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_all.cpp
new file mode 100644
index 000000000..cff097058
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_all.cpp
@@ -0,0 +1,4 @@
+// This file is automatically generated by cpp/update-moc.sh
+#include "cpp/moc_connector.cpp"
+#include "cpp/moc_govalue.cpp"
+#include "cpp/moc_idletimer.cpp"
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_connector.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_connector.cpp
new file mode 100644
index 000000000..2de2d827a
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_connector.cpp
@@ -0,0 +1,211 @@
+/****************************************************************************
+** Meta object code from reading C++ file 'connector.h'
+**
+** Created by: The Qt Meta Object Compiler version 67 (Qt 5.2.1)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "connector.h"
+#include <QtCore/qbytearray.h>
+#include <QtCore/qmetatype.h>
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'connector.h' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 67
+#error "This file was generated using the moc from 5.2.1. It"
+#error "cannot be used with the include files from this version of Qt."
+#error "(The moc has changed too much.)"
+#endif
+
+QT_BEGIN_MOC_NAMESPACE
+struct qt_meta_stringdata_Connector_t {
+ QByteArrayData data[3];
+ char stringdata[19];
+};
+#define QT_MOC_LITERAL(idx, ofs, len) \
+ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
+ offsetof(qt_meta_stringdata_Connector_t, stringdata) + ofs \
+ - idx * sizeof(QByteArrayData) \
+ )
+static const qt_meta_stringdata_Connector_t qt_meta_stringdata_Connector = {
+ {
+QT_MOC_LITERAL(0, 0, 9),
+QT_MOC_LITERAL(1, 10, 6),
+QT_MOC_LITERAL(2, 17, 0)
+ },
+ "Connector\0invoke\0\0"
+};
+#undef QT_MOC_LITERAL
+
+static const uint qt_meta_data_Connector[] = {
+
+ // content:
+ 7, // revision
+ 0, // classname
+ 0, 0, // classinfo
+ 1, 14, // methods
+ 0, 0, // properties
+ 0, 0, // enums/sets
+ 0, 0, // constructors
+ 0, // flags
+ 0, // signalCount
+
+ // slots: name, argc, parameters, tag, flags
+ 1, 0, 19, 2, 0x0a,
+
+ // slots: parameters
+ QMetaType::Void,
+
+ 0 // eod
+};
+
+void Connector::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+ if (_c == QMetaObject::InvokeMetaMethod) {
+ Connector *_t = static_cast<Connector *>(_o);
+ switch (_id) {
+ case 0: _t->invoke(); break;
+ default: ;
+ }
+ }
+ Q_UNUSED(_a);
+}
+
+const QMetaObject Connector::staticMetaObject = {
+ { &QObject::staticMetaObject, qt_meta_stringdata_Connector.data,
+ qt_meta_data_Connector, qt_static_metacall, 0, 0}
+};
+
+
+const QMetaObject *Connector::metaObject() const
+{
+ return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
+}
+
+void *Connector::qt_metacast(const char *_clname)
+{
+ if (!_clname) return 0;
+ if (!strcmp(_clname, qt_meta_stringdata_Connector.stringdata))
+ return static_cast<void*>(const_cast< Connector*>(this));
+ return QObject::qt_metacast(_clname);
+}
+
+int Connector::standard_qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+ _id = QObject::qt_metacall(_c, _id, _a);
+ if (_id < 0)
+ return _id;
+ if (_c == QMetaObject::InvokeMetaMethod) {
+ if (_id < 1)
+ qt_static_metacall(this, _c, _id, _a);
+ _id -= 1;
+ } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
+ if (_id < 1)
+ *reinterpret_cast<int*>(_a[0]) = -1;
+ _id -= 1;
+ }
+ return _id;
+}
+struct qt_meta_stringdata_PlainObject_t {
+ QByteArrayData data[3];
+ char stringdata[33];
+};
+#define QT_MOC_LITERAL(idx, ofs, len) \
+ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
+ offsetof(qt_meta_stringdata_PlainObject_t, stringdata) + ofs \
+ - idx * sizeof(QByteArrayData) \
+ )
+static const qt_meta_stringdata_PlainObject_t qt_meta_stringdata_PlainObject = {
+ {
+QT_MOC_LITERAL(0, 0, 11),
+QT_MOC_LITERAL(1, 12, 9),
+QT_MOC_LITERAL(2, 22, 9)
+ },
+ "PlainObject\0plainType\0plainAddr\0"
+};
+#undef QT_MOC_LITERAL
+
+static const uint qt_meta_data_PlainObject[] = {
+
+ // content:
+ 7, // revision
+ 0, // classname
+ 0, 0, // classinfo
+ 0, 0, // methods
+ 2, 14, // properties
+ 0, 0, // enums/sets
+ 0, 0, // constructors
+ 0, // flags
+ 0, // signalCount
+
+ // properties: name, type, flags
+ 1, QMetaType::QString, 0x00095001,
+ 2, QMetaType::VoidStar, 0x00095001,
+
+ 0 // eod
+};
+
+void PlainObject::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+ Q_UNUSED(_o);
+ Q_UNUSED(_id);
+ Q_UNUSED(_c);
+ Q_UNUSED(_a);
+}
+
+const QMetaObject PlainObject::staticMetaObject = {
+ { &QObject::staticMetaObject, qt_meta_stringdata_PlainObject.data,
+ qt_meta_data_PlainObject, qt_static_metacall, 0, 0}
+};
+
+
+const QMetaObject *PlainObject::metaObject() const
+{
+ return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
+}
+
+void *PlainObject::qt_metacast(const char *_clname)
+{
+ if (!_clname) return 0;
+ if (!strcmp(_clname, qt_meta_stringdata_PlainObject.stringdata))
+ return static_cast<void*>(const_cast< PlainObject*>(this));
+ return QObject::qt_metacast(_clname);
+}
+
+int PlainObject::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+ _id = QObject::qt_metacall(_c, _id, _a);
+ if (_id < 0)
+ return _id;
+
+#ifndef QT_NO_PROPERTIES
+ if (_c == QMetaObject::ReadProperty) {
+ void *_v = _a[0];
+ switch (_id) {
+ case 0: *reinterpret_cast< QString*>(_v) = getPlainType(); break;
+ case 1: *reinterpret_cast< void**>(_v) = getPlainAddr(); break;
+ }
+ _id -= 2;
+ } else if (_c == QMetaObject::WriteProperty) {
+ _id -= 2;
+ } else if (_c == QMetaObject::ResetProperty) {
+ _id -= 2;
+ } else if (_c == QMetaObject::QueryPropertyDesignable) {
+ _id -= 2;
+ } else if (_c == QMetaObject::QueryPropertyScriptable) {
+ _id -= 2;
+ } else if (_c == QMetaObject::QueryPropertyStored) {
+ _id -= 2;
+ } else if (_c == QMetaObject::QueryPropertyEditable) {
+ _id -= 2;
+ } else if (_c == QMetaObject::QueryPropertyUser) {
+ _id -= 2;
+ } else if (_c == QMetaObject::RegisterPropertyMetaType) {
+ if (_id < 2)
+ *reinterpret_cast<int*>(_a[0]) = -1;
+ _id -= 2;
+ }
+#endif // QT_NO_PROPERTIES
+ return _id;
+}
+QT_END_MOC_NAMESPACE
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_govalue.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_govalue.cpp
new file mode 100644
index 000000000..e41f86042
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_govalue.cpp
@@ -0,0 +1,155 @@
+/****************************************************************************
+** Meta object code from reading C++ file 'govalue.h'
+**
+** Created by: The Qt Meta Object Compiler version 67 (Qt 5.2.1)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "govalue.h"
+#include <QtCore/qbytearray.h>
+#include <QtCore/qmetatype.h>
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'govalue.h' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 67
+#error "This file was generated using the moc from 5.2.1. It"
+#error "cannot be used with the include files from this version of Qt."
+#error "(The moc has changed too much.)"
+#endif
+
+QT_BEGIN_MOC_NAMESPACE
+struct qt_meta_stringdata_GoValue_t {
+ QByteArrayData data[1];
+ char stringdata[9];
+};
+#define QT_MOC_LITERAL(idx, ofs, len) \
+ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
+ offsetof(qt_meta_stringdata_GoValue_t, stringdata) + ofs \
+ - idx * sizeof(QByteArrayData) \
+ )
+static const qt_meta_stringdata_GoValue_t qt_meta_stringdata_GoValue = {
+ {
+QT_MOC_LITERAL(0, 0, 7)
+ },
+ "GoValue\0"
+};
+#undef QT_MOC_LITERAL
+
+static const uint qt_meta_data_GoValue[] = {
+
+ // content:
+ 7, // revision
+ 0, // classname
+ 0, 0, // classinfo
+ 0, 0, // methods
+ 0, 0, // properties
+ 0, 0, // enums/sets
+ 0, 0, // constructors
+ 0, // flags
+ 0, // signalCount
+
+ 0 // eod
+};
+
+void GoValue::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+ Q_UNUSED(_o);
+ Q_UNUSED(_id);
+ Q_UNUSED(_c);
+ Q_UNUSED(_a);
+}
+
+const QMetaObject GoValue::staticMetaObject = {
+ { &QObject::staticMetaObject, qt_meta_stringdata_GoValue.data,
+ qt_meta_data_GoValue, qt_static_metacall, 0, 0}
+};
+
+
+const QMetaObject *GoValue::metaObject() const
+{
+ return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
+}
+
+void *GoValue::qt_metacast(const char *_clname)
+{
+ if (!_clname) return 0;
+ if (!strcmp(_clname, qt_meta_stringdata_GoValue.stringdata))
+ return static_cast<void*>(const_cast< GoValue*>(this));
+ return QObject::qt_metacast(_clname);
+}
+
+int GoValue::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+ _id = QObject::qt_metacall(_c, _id, _a);
+ if (_id < 0)
+ return _id;
+ return _id;
+}
+struct qt_meta_stringdata_GoPaintedValue_t {
+ QByteArrayData data[1];
+ char stringdata[16];
+};
+#define QT_MOC_LITERAL(idx, ofs, len) \
+ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
+ offsetof(qt_meta_stringdata_GoPaintedValue_t, stringdata) + ofs \
+ - idx * sizeof(QByteArrayData) \
+ )
+static const qt_meta_stringdata_GoPaintedValue_t qt_meta_stringdata_GoPaintedValue = {
+ {
+QT_MOC_LITERAL(0, 0, 14)
+ },
+ "GoPaintedValue\0"
+};
+#undef QT_MOC_LITERAL
+
+static const uint qt_meta_data_GoPaintedValue[] = {
+
+ // content:
+ 7, // revision
+ 0, // classname
+ 0, 0, // classinfo
+ 0, 0, // methods
+ 0, 0, // properties
+ 0, 0, // enums/sets
+ 0, 0, // constructors
+ 0, // flags
+ 0, // signalCount
+
+ 0 // eod
+};
+
+void GoPaintedValue::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+ Q_UNUSED(_o);
+ Q_UNUSED(_id);
+ Q_UNUSED(_c);
+ Q_UNUSED(_a);
+}
+
+const QMetaObject GoPaintedValue::staticMetaObject = {
+ { &QQuickPaintedItem::staticMetaObject, qt_meta_stringdata_GoPaintedValue.data,
+ qt_meta_data_GoPaintedValue, qt_static_metacall, 0, 0}
+};
+
+
+const QMetaObject *GoPaintedValue::metaObject() const
+{
+ return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
+}
+
+void *GoPaintedValue::qt_metacast(const char *_clname)
+{
+ if (!_clname) return 0;
+ if (!strcmp(_clname, qt_meta_stringdata_GoPaintedValue.stringdata))
+ return static_cast<void*>(const_cast< GoPaintedValue*>(this));
+ return QQuickPaintedItem::qt_metacast(_clname);
+}
+
+int GoPaintedValue::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+ _id = QQuickPaintedItem::qt_metacall(_c, _id, _a);
+ if (_id < 0)
+ return _id;
+ return _id;
+}
+QT_END_MOC_NAMESPACE
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_idletimer.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_idletimer.cpp
new file mode 100644
index 000000000..98dda16e3
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/moc_idletimer.cpp
@@ -0,0 +1,108 @@
+/****************************************************************************
+** Meta object code from reading C++ file 'idletimer.cpp'
+**
+** Created by: The Qt Meta Object Compiler version 67 (Qt 5.2.1)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include <QtCore/qbytearray.h>
+#include <QtCore/qmetatype.h>
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'idletimer.cpp' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 67
+#error "This file was generated using the moc from 5.2.1. It"
+#error "cannot be used with the include files from this version of Qt."
+#error "(The moc has changed too much.)"
+#endif
+
+QT_BEGIN_MOC_NAMESPACE
+struct qt_meta_stringdata_IdleTimer_t {
+ QByteArrayData data[3];
+ char stringdata[18];
+};
+#define QT_MOC_LITERAL(idx, ofs, len) \
+ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
+ offsetof(qt_meta_stringdata_IdleTimer_t, stringdata) + ofs \
+ - idx * sizeof(QByteArrayData) \
+ )
+static const qt_meta_stringdata_IdleTimer_t qt_meta_stringdata_IdleTimer = {
+ {
+QT_MOC_LITERAL(0, 0, 9),
+QT_MOC_LITERAL(1, 10, 5),
+QT_MOC_LITERAL(2, 16, 0)
+ },
+ "IdleTimer\0start\0\0"
+};
+#undef QT_MOC_LITERAL
+
+static const uint qt_meta_data_IdleTimer[] = {
+
+ // content:
+ 7, // revision
+ 0, // classname
+ 0, 0, // classinfo
+ 1, 14, // methods
+ 0, 0, // properties
+ 0, 0, // enums/sets
+ 0, 0, // constructors
+ 0, // flags
+ 0, // signalCount
+
+ // methods: name, argc, parameters, tag, flags
+ 1, 0, 19, 2, 0x02,
+
+ // methods: parameters
+ QMetaType::Void,
+
+ 0 // eod
+};
+
+void IdleTimer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+ if (_c == QMetaObject::InvokeMetaMethod) {
+ IdleTimer *_t = static_cast<IdleTimer *>(_o);
+ switch (_id) {
+ case 0: _t->start(); break;
+ default: ;
+ }
+ }
+ Q_UNUSED(_a);
+}
+
+const QMetaObject IdleTimer::staticMetaObject = {
+ { &QObject::staticMetaObject, qt_meta_stringdata_IdleTimer.data,
+ qt_meta_data_IdleTimer, qt_static_metacall, 0, 0}
+};
+
+
+const QMetaObject *IdleTimer::metaObject() const
+{
+ return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
+}
+
+void *IdleTimer::qt_metacast(const char *_clname)
+{
+ if (!_clname) return 0;
+ if (!strcmp(_clname, qt_meta_stringdata_IdleTimer.stringdata))
+ return static_cast<void*>(const_cast< IdleTimer*>(this));
+ return QObject::qt_metacast(_clname);
+}
+
+int IdleTimer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+ _id = QObject::qt_metacall(_c, _id, _a);
+ if (_id < 0)
+ return _id;
+ if (_c == QMetaObject::InvokeMetaMethod) {
+ if (_id < 1)
+ qt_static_metacall(this, _c, _id, _a);
+ _id -= 1;
+ } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
+ if (_id < 1)
+ *reinterpret_cast<int*>(_a[0]) = -1;
+ _id -= 1;
+ }
+ return _id;
+}
+QT_END_MOC_NAMESPACE
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qmetaobject_p.h b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qmetaobject_p.h
new file mode 100644
index 000000000..af506e54f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qmetaobject_p.h
@@ -0,0 +1,2 @@
+#include "private/qtheader.h"
+#include QT_PRIVATE_HEADER(QtCore,qmetaobject_p.h)
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qmetaobjectbuilder_p.h b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qmetaobjectbuilder_p.h
new file mode 100644
index 000000000..47cd9b77f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qmetaobjectbuilder_p.h
@@ -0,0 +1,2 @@
+#include "private/qtheader.h"
+#include QT_PRIVATE_HEADER(QtCore,qmetaobjectbuilder_p.h)
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qobject_p.h b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qobject_p.h
new file mode 100644
index 000000000..75c7f84b4
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qobject_p.h
@@ -0,0 +1,2 @@
+#include "private/qtheader.h"
+#include QT_PRIVATE_HEADER(QtCore,qobject_p.h)
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qtheader.h b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qtheader.h
new file mode 100644
index 000000000..efa8b87c4
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/private/qtheader.h
@@ -0,0 +1,70 @@
+#ifndef QTPRIVATE_H
+#define QTPRIVATE_H
+
+#include <QtCore/qglobal.h>
+
+#define QT_MAJOR_ (QT_VERSION>>16)
+#define QT_MINOR_ (QT_VERSION>>8&0xFF)
+#define QT_MICRO_ (QT_VERSION&0xFF)
+
+#if QT_MAJOR_ == 5
+#define QT_MAJOR 5
+#else
+#error Unupported Qt major version. Please report.
+#endif
+
+#if QT_MINOR_ == 0
+#define QT_MINOR 0
+#elif QT_MINOR_ == 1
+#define QT_MINOR 1
+#elif QT_MINOR_ == 2
+#define QT_MINOR 2
+#elif QT_MINOR_ == 3
+#define QT_MINOR 3
+#elif QT_MINOR_ == 4
+#define QT_MINOR 4
+#elif QT_MINOR_ == 5
+#define QT_MINOR 5
+#elif QT_MINOR_ == 6
+#define QT_MINOR 6
+#elif QT_MINOR_ == 7
+#define QT_MINOR 7
+#elif QT_MINOR_ == 8
+#define QT_MINOR 8
+#elif QT_MINOR_ == 9
+#define QT_MINOR 9
+#elif QT_MINOR_ == 10
+#define QT_MINOR 10
+#else
+#error Unupported Qt minor version. Please report.
+#endif
+
+#if QT_MICRO_ == 0
+#define QT_MICRO 0
+#elif QT_MICRO_ == 1
+#define QT_MICRO 1
+#elif QT_MICRO_ == 2
+#define QT_MICRO 2
+#elif QT_MICRO_ == 3
+#define QT_MICRO 3
+#elif QT_MICRO_ == 4
+#define QT_MICRO 4
+#elif QT_MICRO_ == 5
+#define QT_MICRO 5
+#elif QT_MICRO_ == 6
+#define QT_MICRO 6
+#elif QT_MICRO_ == 7
+#define QT_MICRO 7
+#elif QT_MICRO_ == 8
+#define QT_MICRO 8
+#elif QT_MICRO_ == 9
+#define QT_MICRO 9
+#elif QT_MICRO_ == 10
+#define QT_MICRO 10
+#else
+#error Unupported Qt micro version. Please report.
+#endif
+
+#define QT_PRIVATE_HEADER(dir,file) <dir/QT_MAJOR.QT_MINOR.QT_MICRO/dir/private/file>
+
+#endif // QTPRIVATE_H
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/update-moc.sh b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/update-moc.sh
new file mode 100644
index 000000000..135840f45
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/update-moc.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+cd `dirname $0`
+
+subdir=`basename $PWD`
+
+export QT_SELECT=5
+
+ALL=moc_all.cpp
+
+echo "// This file is automatically generated by cpp/update-moc.sh" > $ALL
+
+for file in `grep -l Q_''OBJECT *`; do
+ mocfile=`echo $file | awk -F. '{print("moc_"$1".cpp")}'`
+ mochack=`sed -n 's,^ *// MOC HACK: \(.*\),\1,p' $file`
+ moc $file | sed "$mochack" > $mocfile
+ echo "#include \"$subdir/$mocfile\"" >> $ALL
+done
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/cpptest.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/cpptest.cpp
new file mode 100644
index 000000000..e0b25699f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/cpptest.cpp
@@ -0,0 +1,14 @@
+#include <string.h>
+
+#include "cpptest.h"
+#include "testtype.h"
+
+TestType_ *newTestType()
+{
+ return new TestType();
+}
+
+int plainTestTypeN(PlainTestType_ *plain)
+{
+ return static_cast<PlainTestType *>(plain)->n;
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/cpptest.go b/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/cpptest.go
new file mode 100644
index 000000000..4ba24bce0
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/cpptest.go
@@ -0,0 +1,30 @@
+// Package cpptest is an internal test helper.
+package cpptest
+
+// #cgo CXXFLAGS: -std=c++0x -Wall -fno-strict-aliasing -I..
+// #cgo LDFLAGS: -lstdc++
+//
+// #cgo pkg-config: Qt5Core
+//
+// #include "cpptest.h"
+//
+import "C"
+
+import (
+ "unsafe"
+
+ "gopkg.in/qml.v1"
+)
+
+func NewTestType(engine *qml.Engine) qml.Object {
+ var obj qml.Object
+ qml.RunMain(func() {
+ addr := C.newTestType()
+ obj = qml.CommonOf(addr, engine)
+ })
+ return obj
+}
+
+func PlainTestTypeN(obj qml.Object) int {
+ return int(C.plainTestTypeN(unsafe.Pointer(obj.Property("plainAddr").(uintptr))))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/cpptest.h b/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/cpptest.h
new file mode 100644
index 000000000..e06a8af3f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/cpptest.h
@@ -0,0 +1,23 @@
+#ifndef UONEAUTH_H
+#define UONEAUTH_H
+
+#include <stdint.h>
+#include <stddef.h>
+#include <stdlib.h>
+
+typedef void TestType_;
+typedef void PlainTestType_;
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+TestType_ *newTestType();
+
+int plainTestTypeN(PlainTestType_ *plain);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // UONEAUTH_H
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/moc_testtype.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/moc_testtype.cpp
new file mode 100644
index 000000000..f958d1b8c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/moc_testtype.cpp
@@ -0,0 +1,202 @@
+/****************************************************************************
+** Meta object code from reading C++ file 'testtype.h'
+**
+** Created by: The Qt Meta Object Compiler version 67 (Qt 5.2.1)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "testtype.h"
+#include <QtCore/qbytearray.h>
+#include <QtCore/qmetatype.h>
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'testtype.h' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 67
+#error "This file was generated using the moc from 5.2.1. It"
+#error "cannot be used with the include files from this version of Qt."
+#error "(The moc has changed too much.)"
+#endif
+
+QT_BEGIN_MOC_NAMESPACE
+struct qt_meta_stringdata_TestType_t {
+ QByteArrayData data[10];
+ char stringdata[119];
+};
+#define QT_MOC_LITERAL(idx, ofs, len) \
+ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
+ offsetof(qt_meta_stringdata_TestType_t, stringdata) + ofs \
+ - idx * sizeof(QByteArrayData) \
+ )
+static const qt_meta_stringdata_TestType_t qt_meta_stringdata_TestType = {
+ {
+QT_MOC_LITERAL(0, 0, 8),
+QT_MOC_LITERAL(1, 9, 15),
+QT_MOC_LITERAL(2, 25, 0),
+QT_MOC_LITERAL(3, 26, 13),
+QT_MOC_LITERAL(4, 40, 5),
+QT_MOC_LITERAL(5, 46, 15),
+QT_MOC_LITERAL(6, 62, 15),
+QT_MOC_LITERAL(7, 78, 20),
+QT_MOC_LITERAL(8, 99, 9),
+QT_MOC_LITERAL(9, 109, 8)
+ },
+ "TestType\0plainEmittedCpy\0\0PlainTestType\0"
+ "plain\0plainEmittedRef\0plainEmittedPtr\0"
+ "const PlainTestType*\0emitPlain\0voidAddr\0"
+};
+#undef QT_MOC_LITERAL
+
+static const uint qt_meta_data_TestType[] = {
+
+ // content:
+ 7, // revision
+ 0, // classname
+ 0, 0, // classinfo
+ 4, 14, // methods
+ 1, 44, // properties
+ 0, 0, // enums/sets
+ 0, 0, // constructors
+ 0, // flags
+ 3, // signalCount
+
+ // signals: name, argc, parameters, tag, flags
+ 1, 1, 34, 2, 0x06,
+ 5, 1, 37, 2, 0x06,
+ 6, 1, 40, 2, 0x06,
+
+ // methods: name, argc, parameters, tag, flags
+ 8, 0, 43, 2, 0x02,
+
+ // signals: parameters
+ QMetaType::Void, 0x80000000 | 3, 4,
+ QMetaType::Void, 0x80000000 | 3, 4,
+ QMetaType::Void, 0x80000000 | 7, 4,
+
+ // methods: parameters
+ QMetaType::Void,
+
+ // properties: name, type, flags
+ 9, QMetaType::VoidStar, 0x00095001,
+
+ 0 // eod
+};
+
+void TestType::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+ if (_c == QMetaObject::InvokeMetaMethod) {
+ TestType *_t = static_cast<TestType *>(_o);
+ switch (_id) {
+ case 0: _t->plainEmittedCpy((*reinterpret_cast< const PlainTestType(*)>(_a[1]))); break;
+ case 1: _t->plainEmittedRef((*reinterpret_cast< const PlainTestType(*)>(_a[1]))); break;
+ case 2: _t->plainEmittedPtr((*reinterpret_cast< const PlainTestType*(*)>(_a[1]))); break;
+ case 3: _t->emitPlain(); break;
+ default: ;
+ }
+ } else if (_c == QMetaObject::IndexOfMethod) {
+ int *result = reinterpret_cast<int *>(_a[0]);
+ void **func = reinterpret_cast<void **>(_a[1]);
+ {
+ typedef void (TestType::*_t)(const PlainTestType );
+ if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TestType::plainEmittedCpy)) {
+ *result = 0;
+ }
+ }
+ {
+ typedef void (TestType::*_t)(const PlainTestType & );
+ if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TestType::plainEmittedRef)) {
+ *result = 1;
+ }
+ }
+ {
+ typedef void (TestType::*_t)(const PlainTestType * );
+ if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TestType::plainEmittedPtr)) {
+ *result = 2;
+ }
+ }
+ }
+}
+
+const QMetaObject TestType::staticMetaObject = {
+ { &QObject::staticMetaObject, qt_meta_stringdata_TestType.data,
+ qt_meta_data_TestType, qt_static_metacall, 0, 0}
+};
+
+
+const QMetaObject *TestType::metaObject() const
+{
+ return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
+}
+
+void *TestType::qt_metacast(const char *_clname)
+{
+ if (!_clname) return 0;
+ if (!strcmp(_clname, qt_meta_stringdata_TestType.stringdata))
+ return static_cast<void*>(const_cast< TestType*>(this));
+ return QObject::qt_metacast(_clname);
+}
+
+int TestType::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+ _id = QObject::qt_metacall(_c, _id, _a);
+ if (_id < 0)
+ return _id;
+ if (_c == QMetaObject::InvokeMetaMethod) {
+ if (_id < 4)
+ qt_static_metacall(this, _c, _id, _a);
+ _id -= 4;
+ } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
+ if (_id < 4)
+ *reinterpret_cast<int*>(_a[0]) = -1;
+ _id -= 4;
+ }
+#ifndef QT_NO_PROPERTIES
+ else if (_c == QMetaObject::ReadProperty) {
+ void *_v = _a[0];
+ switch (_id) {
+ case 0: *reinterpret_cast< void**>(_v) = getVoidAddr(); break;
+ }
+ _id -= 1;
+ } else if (_c == QMetaObject::WriteProperty) {
+ _id -= 1;
+ } else if (_c == QMetaObject::ResetProperty) {
+ _id -= 1;
+ } else if (_c == QMetaObject::QueryPropertyDesignable) {
+ _id -= 1;
+ } else if (_c == QMetaObject::QueryPropertyScriptable) {
+ _id -= 1;
+ } else if (_c == QMetaObject::QueryPropertyStored) {
+ _id -= 1;
+ } else if (_c == QMetaObject::QueryPropertyEditable) {
+ _id -= 1;
+ } else if (_c == QMetaObject::QueryPropertyUser) {
+ _id -= 1;
+ } else if (_c == QMetaObject::RegisterPropertyMetaType) {
+ if (_id < 1)
+ *reinterpret_cast<int*>(_a[0]) = -1;
+ _id -= 1;
+ }
+#endif // QT_NO_PROPERTIES
+ return _id;
+}
+
+// SIGNAL 0
+void TestType::plainEmittedCpy(const PlainTestType _t1)
+{
+ void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
+ QMetaObject::activate(this, &staticMetaObject, 0, _a);
+}
+
+// SIGNAL 1
+void TestType::plainEmittedRef(const PlainTestType & _t1)
+{
+ void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
+ QMetaObject::activate(this, &staticMetaObject, 1, _a);
+}
+
+// SIGNAL 2
+void TestType::plainEmittedPtr(const PlainTestType * _t1)
+{
+ void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
+ QMetaObject::activate(this, &staticMetaObject, 2, _a);
+}
+QT_END_MOC_NAMESPACE
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/testtype.h b/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/testtype.h
new file mode 100644
index 000000000..4d281b98f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/testtype.h
@@ -0,0 +1,45 @@
+#ifndef TESTTYPE_H
+#define TESTTYPE_H
+
+#include <QObject>
+
+class PlainTestType {
+
+ public:
+
+ PlainTestType(int n) : n(n) {};
+
+ int n;
+};
+
+class TestType : public QObject
+{
+ Q_OBJECT
+
+ Q_PROPERTY(void *voidAddr READ getVoidAddr)
+
+ void *voidAddr;
+
+ public:
+
+ TestType(QObject *parent = 0) : QObject(parent), voidAddr((void*)42) {};
+
+ void *getVoidAddr() { return voidAddr; };
+
+ Q_INVOKABLE void emitPlain() {
+ PlainTestType plain = PlainTestType(42);
+ emit plainEmittedCpy(plain);
+ emit plainEmittedRef(plain);
+ emit plainEmittedPtr(&plain);
+ };
+
+ signals:
+
+ void plainEmittedCpy(const PlainTestType plain);
+ void plainEmittedRef(const PlainTestType &plain);
+ void plainEmittedPtr(const PlainTestType *plain);
+};
+
+#endif // TESTTYPE_H
+
+// vim:ts=4:sw=4:et
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/update-moc.sh b/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/update-moc.sh
new file mode 100644
index 000000000..9abbfdf2b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpptest/update-moc.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+cd `dirname $0`
+
+export QT_SELECT=5
+
+for file in `grep -l Q_''OBJECT *`; do
+ mocfile=`echo $file | awk -F. '{print("moc_"$1".cpp")}'`
+ mochack=`sed -n 's,^ *// MOC HACK: \(.*\),\1,p' $file`
+ moc $file | sed "$mochack" > $mocfile
+done
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/datatype.go b/Godeps/_workspace/src/github.com/obscuren/qml/datatype.go
new file mode 100644
index 000000000..875c54622
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/datatype.go
@@ -0,0 +1,531 @@
+package qml
+
+// #include <stdlib.h>
+// #include "capi.h"
+import "C"
+
+import (
+ "bytes"
+ "fmt"
+ "image/color"
+ "reflect"
+ "strings"
+ "unicode"
+ "unsafe"
+)
+
+var (
+ intIs64 bool
+ intDT C.DataType
+
+ ptrSize = C.size_t(unsafe.Sizeof(uintptr(0)))
+
+ nilPtr = unsafe.Pointer(uintptr(0))
+ nilCharPtr = (*C.char)(nilPtr)
+
+ typeString = reflect.TypeOf("")
+ typeBool = reflect.TypeOf(false)
+ typeInt = reflect.TypeOf(int(0))
+ typeInt64 = reflect.TypeOf(int64(0))
+ typeInt32 = reflect.TypeOf(int32(0))
+ typeFloat64 = reflect.TypeOf(float64(0))
+ typeFloat32 = reflect.TypeOf(float32(0))
+ typeIface = reflect.TypeOf(new(interface{})).Elem()
+ typeRGBA = reflect.TypeOf(color.RGBA{})
+ typeObjSlice = reflect.TypeOf([]Object(nil))
+ typeObject = reflect.TypeOf([]Object(nil)).Elem()
+ typePainter = reflect.TypeOf(&Painter{})
+ typeList = reflect.TypeOf(&List{})
+ typeMap = reflect.TypeOf(&Map{})
+ typeGenericMap = reflect.TypeOf(map[string]interface{}(nil))
+)
+
+func init() {
+ var i int = 1<<31 - 1
+ intIs64 = (i+1 > 0)
+ if intIs64 {
+ intDT = C.DTInt64
+ } else {
+ intDT = C.DTInt32
+ }
+}
+
+// packDataValue packs the provided Go value into a C.DataValue for
+// shiping into C++ land.
+//
+// For simple types (bool, int, etc) value is converted into a
+// native C++ value. For anything else, including cases when value
+// has a type that has an underlying simple type, the Go value itself
+// is encapsulated into a C++ wrapper so that field access and method
+// calls work.
+//
+// This must be run from the main GUI thread due to the cases where
+// calling wrapGoValue is necessary.
+func packDataValue(value interface{}, dvalue *C.DataValue, engine *Engine, owner valueOwner) {
+ datap := unsafe.Pointer(&dvalue.data)
+ if value == nil {
+ dvalue.dataType = C.DTInvalid
+ return
+ }
+ switch value := value.(type) {
+ case string:
+ dvalue.dataType = C.DTString
+ cstr, cstrlen := unsafeStringData(value)
+ *(**C.char)(datap) = cstr
+ dvalue.len = cstrlen
+ case bool:
+ dvalue.dataType = C.DTBool
+ *(*bool)(datap) = value
+ case int:
+ if value > 1<<31-1 {
+ dvalue.dataType = C.DTInt64
+ *(*int64)(datap) = int64(value)
+ } else {
+ dvalue.dataType = C.DTInt32
+ *(*int32)(datap) = int32(value)
+ }
+ case int64:
+ dvalue.dataType = C.DTInt64
+ *(*int64)(datap) = value
+ case int32:
+ dvalue.dataType = C.DTInt32
+ *(*int32)(datap) = value
+ case uint64:
+ dvalue.dataType = C.DTUint64
+ *(*uint64)(datap) = value
+ case uint32:
+ dvalue.dataType = C.DTUint32
+ *(*uint32)(datap) = value
+ case float64:
+ dvalue.dataType = C.DTFloat64
+ *(*float64)(datap) = value
+ case float32:
+ dvalue.dataType = C.DTFloat32
+ *(*float32)(datap) = value
+ case *Common:
+ dvalue.dataType = C.DTObject
+ *(*unsafe.Pointer)(datap) = value.addr
+ case color.RGBA:
+ dvalue.dataType = C.DTColor
+ *(*uint32)(datap) = uint32(value.A)<<24 | uint32(value.R)<<16 | uint32(value.G)<<8 | uint32(value.B)
+ default:
+ dvalue.dataType = C.DTObject
+ if obj, ok := value.(Object); ok {
+ *(*unsafe.Pointer)(datap) = obj.Common().addr
+ } else {
+ *(*unsafe.Pointer)(datap) = wrapGoValue(engine, value, owner)
+ }
+ }
+}
+
+// TODO Handle byte slices.
+
+// unpackDataValue converts a value shipped by C++ into a native Go value.
+//
+// HEADS UP: This is considered safe to be run out of the main GUI thread.
+// If that changes, fix the call sites.
+func unpackDataValue(dvalue *C.DataValue, engine *Engine) interface{} {
+ datap := unsafe.Pointer(&dvalue.data)
+ switch dvalue.dataType {
+ case C.DTString:
+ s := C.GoStringN(*(**C.char)(datap), dvalue.len)
+ // TODO If we move all unpackDataValue calls to the GUI thread,
+ // can we get rid of this allocation somehow?
+ C.free(unsafe.Pointer(*(**C.char)(datap)))
+ return s
+ case C.DTBool:
+ return *(*bool)(datap)
+ case C.DTInt64:
+ return *(*int64)(datap)
+ case C.DTInt32:
+ return int(*(*int32)(datap))
+ case C.DTUint64:
+ return *(*uint64)(datap)
+ case C.DTUint32:
+ return *(*uint32)(datap)
+ case C.DTUintptr:
+ return *(*uintptr)(datap)
+ case C.DTFloat64:
+ return *(*float64)(datap)
+ case C.DTFloat32:
+ return *(*float32)(datap)
+ case C.DTColor:
+ var c uint32 = *(*uint32)(datap)
+ return color.RGBA{byte(c >> 16), byte(c >> 8), byte(c), byte(c >> 24)}
+ case C.DTGoAddr:
+ // ObjectByName also does this fold conversion, to have access
+ // to the cvalue. Perhaps the fold should be returned.
+ fold := (*(**valueFold)(datap))
+ ensureEngine(engine.addr, unsafe.Pointer(fold))
+ return fold.gvalue
+ case C.DTInvalid:
+ return nil
+ case C.DTObject:
+ // TODO Would be good to preserve identity on the Go side. See initGoType as well.
+ obj := &Common{
+ engine: engine,
+ addr: *(*unsafe.Pointer)(datap),
+ }
+ if len(converters) > 0 {
+ // TODO Embed the type name in DataValue to drop these calls.
+ typeName := obj.TypeName()
+ if typeName == "PlainObject" {
+ typeName = strings.TrimRight(obj.String("plainType"), "&*")
+ if strings.HasPrefix(typeName, "const ") {
+ typeName = typeName[6:]
+ }
+ }
+ if f, ok := converters[typeName]; ok {
+ return f(engine, obj)
+ }
+ }
+ return obj
+ case C.DTValueList, C.DTValueMap:
+ var dvlist []C.DataValue
+ var dvlisth = (*reflect.SliceHeader)(unsafe.Pointer(&dvlist))
+ dvlisth.Data = uintptr(*(*unsafe.Pointer)(datap))
+ dvlisth.Len = int(dvalue.len)
+ dvlisth.Cap = int(dvalue.len)
+ result := make([]interface{}, len(dvlist))
+ for i := range result {
+ result[i] = unpackDataValue(&dvlist[i], engine)
+ }
+ C.free(*(*unsafe.Pointer)(datap))
+ if dvalue.dataType == C.DTValueList {
+ return &List{result}
+ } else {
+ return &Map{result}
+ }
+ }
+ panic(fmt.Sprintf("unsupported data type: %d", dvalue.dataType))
+}
+
+func dataTypeOf(typ reflect.Type) C.DataType {
+ // Compare against the specific types rather than their kind.
+ // Custom types may have methods that must be supported.
+ switch typ {
+ case typeString:
+ return C.DTString
+ case typeBool:
+ return C.DTBool
+ case typeInt:
+ return intDT
+ case typeInt64:
+ return C.DTInt64
+ case typeInt32:
+ return C.DTInt32
+ case typeFloat32:
+ return C.DTFloat32
+ case typeFloat64:
+ return C.DTFloat64
+ case typeIface:
+ return C.DTAny
+ case typeRGBA:
+ return C.DTColor
+ case typeObjSlice:
+ return C.DTListProperty
+ }
+ return C.DTObject
+}
+
+var typeInfoSize = C.size_t(unsafe.Sizeof(C.GoTypeInfo{}))
+var memberInfoSize = C.size_t(unsafe.Sizeof(C.GoMemberInfo{}))
+
+var typeInfoCache = make(map[reflect.Type]*C.GoTypeInfo)
+
+func appendLoweredName(buf []byte, name string) []byte {
+ var last rune
+ var lasti int
+ for i, rune := range name {
+ if !unicode.IsUpper(rune) {
+ if lasti == 0 {
+ last = unicode.ToLower(last)
+ }
+ buf = append(buf, string(last)...)
+ buf = append(buf, name[i:]...)
+ return buf
+ }
+ if i > 0 {
+ buf = append(buf, string(unicode.ToLower(last))...)
+ }
+ lasti, last = i, rune
+ }
+ return append(buf, string(unicode.ToLower(last))...)
+}
+
+func typeInfo(v interface{}) *C.GoTypeInfo {
+ vt := reflect.TypeOf(v)
+ for vt.Kind() == reflect.Ptr {
+ vt = vt.Elem()
+ }
+
+ typeInfo := typeInfoCache[vt]
+ if typeInfo != nil {
+ return typeInfo
+ }
+
+ typeInfo = (*C.GoTypeInfo)(C.malloc(typeInfoSize))
+ typeInfo.typeName = C.CString(vt.Name())
+ typeInfo.metaObject = nilPtr
+ typeInfo.paint = (*C.GoMemberInfo)(nilPtr)
+
+ var setters map[string]int
+ var getters map[string]int
+
+ // TODO Only do that if it's a struct?
+ vtptr := reflect.PtrTo(vt)
+
+ if vt.Kind() != reflect.Struct {
+ panic(fmt.Sprintf("handling of %s (%#v) is incomplete; please report to the developers", vt, v))
+ }
+
+ numField := vt.NumField()
+ numMethod := vtptr.NumMethod()
+ privateFields := 0
+ privateMethods := 0
+
+ // struct { FooBar T; Baz T } => "fooBar\0baz\0"
+ namesLen := 0
+ for i := 0; i < numField; i++ {
+ field := vt.Field(i)
+ if field.PkgPath != "" {
+ privateFields++
+ continue
+ }
+ namesLen += len(field.Name) + 1
+ }
+ for i := 0; i < numMethod; i++ {
+ method := vtptr.Method(i)
+ if method.PkgPath != "" {
+ privateMethods++
+ continue
+ }
+ namesLen += len(method.Name) + 1
+
+ // Track setters and getters.
+ if len(method.Name) > 3 && method.Name[:3] == "Set" {
+ if method.Type.NumIn() == 2 {
+ if setters == nil {
+ setters = make(map[string]int)
+ }
+ setters[method.Name[3:]] = i
+ }
+ } else if method.Type.NumIn() == 1 && method.Type.NumOut() == 1 {
+ if getters == nil {
+ getters = make(map[string]int)
+ }
+ getters[method.Name] = i
+ }
+ }
+ names := make([]byte, 0, namesLen)
+ for i := 0; i < numField; i++ {
+ field := vt.Field(i)
+ if field.PkgPath != "" {
+ continue // not exported
+ }
+ names = appendLoweredName(names, field.Name)
+ names = append(names, 0)
+ }
+ for i := 0; i < numMethod; i++ {
+ method := vtptr.Method(i)
+ if method.PkgPath != "" {
+ continue // not exported
+ }
+ if _, ok := getters[method.Name]; !ok {
+ continue
+ }
+ if _, ok := setters[method.Name]; !ok {
+ delete(getters, method.Name)
+ continue
+ }
+ // This is a getter method
+ names = appendLoweredName(names, method.Name)
+ names = append(names, 0)
+ }
+ for i := 0; i < numMethod; i++ {
+ method := vtptr.Method(i)
+ if method.PkgPath != "" {
+ continue // not exported
+ }
+ if _, ok := getters[method.Name]; ok {
+ continue // getter already handled above
+ }
+ names = appendLoweredName(names, method.Name)
+ names = append(names, 0)
+ }
+ if len(names) != namesLen {
+ panic("pre-allocated buffer size was wrong")
+ }
+ typeInfo.memberNames = C.CString(string(names))
+
+ // Assemble information on members.
+ membersLen := numField - privateFields + numMethod - privateMethods
+ membersi := uintptr(0)
+ mnamesi := uintptr(0)
+ members := uintptr(C.malloc(memberInfoSize * C.size_t(membersLen)))
+ mnames := uintptr(unsafe.Pointer(typeInfo.memberNames))
+ for i := 0; i < numField; i++ {
+ field := vt.Field(i)
+ if field.PkgPath != "" {
+ continue // not exported
+ }
+ memberInfo := (*C.GoMemberInfo)(unsafe.Pointer(members + uintptr(memberInfoSize)*membersi))
+ memberInfo.memberName = (*C.char)(unsafe.Pointer(mnames + mnamesi))
+ memberInfo.memberType = dataTypeOf(field.Type)
+ memberInfo.reflectIndex = C.int(i)
+ memberInfo.reflectGetIndex = -1
+ memberInfo.reflectSetIndex = -1
+ memberInfo.addrOffset = C.int(field.Offset)
+ membersi += 1
+ mnamesi += uintptr(len(field.Name)) + 1
+ if methodIndex, ok := setters[field.Name]; ok {
+ memberInfo.reflectSetIndex = C.int(methodIndex)
+ }
+ }
+ for i := 0; i < numMethod; i++ {
+ method := vtptr.Method(i)
+ if method.PkgPath != "" {
+ continue // not exported
+ }
+ if _, ok := getters[method.Name]; !ok {
+ continue // not a getter
+ }
+ memberInfo := (*C.GoMemberInfo)(unsafe.Pointer(members + uintptr(memberInfoSize)*membersi))
+ memberInfo.memberName = (*C.char)(unsafe.Pointer(mnames + mnamesi))
+ memberInfo.memberType = dataTypeOf(method.Type.Out(0))
+ memberInfo.reflectIndex = -1
+ memberInfo.reflectGetIndex = C.int(getters[method.Name])
+ memberInfo.reflectSetIndex = C.int(setters[method.Name])
+ memberInfo.addrOffset = 0
+ membersi += 1
+ mnamesi += uintptr(len(method.Name)) + 1
+ }
+ for i := 0; i < numMethod; i++ {
+ method := vtptr.Method(i)
+ if method.PkgPath != "" {
+ continue // not exported
+ }
+ if _, ok := getters[method.Name]; ok {
+ continue // getter already handled above
+ }
+ memberInfo := (*C.GoMemberInfo)(unsafe.Pointer(members + uintptr(memberInfoSize)*membersi))
+ memberInfo.memberName = (*C.char)(unsafe.Pointer(mnames + mnamesi))
+ memberInfo.memberType = C.DTMethod
+ memberInfo.reflectIndex = C.int(i)
+ memberInfo.reflectGetIndex = -1
+ memberInfo.reflectSetIndex = -1
+ memberInfo.addrOffset = 0
+ signature, result := methodQtSignature(method)
+ // TODO The signature data might be embedded in the same array as the member names.
+ memberInfo.methodSignature = C.CString(signature)
+ memberInfo.resultSignature = C.CString(result)
+ // TODO Sort out methods with a variable number of arguments.
+ // It's called while bound, so drop the receiver.
+ memberInfo.numIn = C.int(method.Type.NumIn() - 1)
+ memberInfo.numOut = C.int(method.Type.NumOut())
+ membersi += 1
+ mnamesi += uintptr(len(method.Name)) + 1
+
+ if method.Name == "Paint" && memberInfo.numIn == 1 && memberInfo.numOut == 0 && method.Type.In(1) == typePainter {
+ typeInfo.paint = memberInfo
+ }
+ }
+ typeInfo.members = (*C.GoMemberInfo)(unsafe.Pointer(members))
+ typeInfo.membersLen = C.int(membersLen)
+
+ typeInfo.fields = typeInfo.members
+ typeInfo.fieldsLen = C.int(numField - privateFields + len(getters))
+ typeInfo.methods = (*C.GoMemberInfo)(unsafe.Pointer(members + uintptr(memberInfoSize)*uintptr(typeInfo.fieldsLen)))
+ typeInfo.methodsLen = C.int(numMethod - privateMethods - len(getters))
+
+ if int(membersi) != membersLen {
+ panic("used more space than allocated for member names")
+ }
+ if int(mnamesi) != namesLen {
+ panic("allocated buffer doesn't match used space")
+ }
+ if typeInfo.fieldsLen+typeInfo.methodsLen != typeInfo.membersLen {
+ panic("lengths are inconsistent")
+ }
+
+ typeInfoCache[vt] = typeInfo
+ return typeInfo
+}
+
+func methodQtSignature(method reflect.Method) (signature, result string) {
+ var buf bytes.Buffer
+ for i, rune := range method.Name {
+ if i == 0 {
+ buf.WriteRune(unicode.ToLower(rune))
+ } else {
+ buf.WriteString(method.Name[i:])
+ break
+ }
+ }
+ buf.WriteByte('(')
+ n := method.Type.NumIn()
+ for i := 1; i < n; i++ {
+ if i > 1 {
+ buf.WriteByte(',')
+ }
+ buf.WriteString("QVariant")
+ }
+ buf.WriteByte(')')
+ signature = buf.String()
+
+ switch method.Type.NumOut() {
+ case 0:
+ // keep it as ""
+ case 1:
+ result = "QVariant"
+ default:
+ result = "QVariantList"
+ }
+ return
+}
+
+func hashable(value interface{}) (hashable bool) {
+ defer func() { recover() }()
+ return value == value
+}
+
+// unsafeString returns a Go string backed by C data.
+//
+// If the C data is deallocated or moved, the string will be
+// invalid and will crash the program if used. As such, the
+// resulting string must only be used inside the implementation
+// of the qml package and while the life time of the C data
+// is guaranteed.
+func unsafeString(data *C.char, size C.int) string {
+ var s string
+ sh := (*reflect.StringHeader)(unsafe.Pointer(&s))
+ sh.Data = uintptr(unsafe.Pointer(data))
+ sh.Len = int(size)
+ return s
+}
+
+// unsafeStringData returns a C string backed by Go data. The C
+// string is NOT null-terminated, so its length must be taken
+// into account.
+//
+// If the s Go string is garbage collected, the returned C data
+// will be invalid and will crash the program if used. As such,
+// the resulting data must only be used inside the implementation
+// of the qml package and while the life time of the Go string
+// is guaranteed.
+func unsafeStringData(s string) (*C.char, C.int) {
+ return *(**C.char)(unsafe.Pointer(&s)), C.int(len(s))
+}
+
+// unsafeBytesData returns a C string backed by Go data. The C
+// string is NOT null-terminated, so its length must be taken
+// into account.
+//
+// If the array backing the b Go slice is garbage collected, the
+// returned C data will be invalid and will crash the program if
+// used. As such, the resulting data must only be used inside the
+// implementation of the qml package and while the life time of
+// the Go array is guaranteed.
+func unsafeBytesData(b []byte) (*C.char, C.int) {
+ return *(**C.char)(unsafe.Pointer(&b)), C.int(len(b))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/doc.go b/Godeps/_workspace/src/github.com/obscuren/qml/doc.go
new file mode 100644
index 000000000..94b2404a9
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/doc.go
@@ -0,0 +1,199 @@
+// Package qml offers graphical QML application support for the Go language.
+//
+// Attention
+//
+// This package is in an alpha stage, and still in heavy development. APIs may
+// change, and things may break.
+//
+// At this time contributors and developers that are interested in tracking the
+// development closely are encouraged to use it. If you'd prefer a more stable
+// release, please hold on a bit and subscribe to the mailing list for news. It's
+// in a pretty good state, so it shall not take too long.
+//
+// See http://github.com/go-qml/qml for details.
+//
+//
+// Introduction
+//
+// The qml package enables Go programs to display and manipulate graphical content
+// using Qt's QML framework. QML uses a declarative language to express structure
+// and style, and supports JavaScript for in-place manipulation of the described
+// content. When using the Go qml package, such QML content can also interact with
+// Go values, making use of its exported fields and methods, and even explicitly
+// creating new instances of registered Go types.
+//
+// A simple Go application that integrates with QML may perform the following steps
+// for offering a graphical interface:
+//
+// * Call qml.Run from function main providing a function with the logic below
+// * Create an engine for loading and running QML content (see NewEngine)
+// * Make Go values and types available to QML (see Context.SetVar and RegisterType)
+// * Load QML content (see Engine.LoadString and Engine.LoadFile)
+// * Create a new window for the content (see Component.CreateWindow)
+// * Show the window and wait for it to be closed (see Window.Show and Window.Wait)
+//
+// Some of these topics are covered below, and may also be observed in practice
+// in the following examples:
+//
+// https://github.com/go-qml/qml/tree/v1/examples
+//
+//
+// Simple example
+//
+// The following logic demonstrates loading a QML file into a window:
+//
+// func main() {
+// err := qml.Run(run)
+// ...
+// }
+//
+// func run() error {
+// engine := qml.NewEngine()
+// component, err := engine.LoadFile("file.qml")
+// if err != nil {
+// return err
+// }
+// win := component.CreateWindow(nil)
+// win.Show()
+// win.Wait()
+// return nil
+// }
+//
+// Handling QML objects in Go
+//
+// Any QML object may be manipulated by Go via the Object interface. That
+// interface is implemented both by dynamic QML values obtained from a running
+// engine, and by Go types in the qml package that represent QML values, such as
+// Window, Context, and Engine.
+//
+// For example, the following logic creates a window and prints its width
+// whenever it's made visible:
+//
+// win := component.CreateWindow(nil)
+// win.On("visibleChanged", func(visible bool) {
+// if (visible) {
+// fmt.Println("Width:", win.Int("width"))
+// }
+// })
+//
+// Information about the methods, properties, and signals that are available for QML
+// objects may be obtained in the Qt documentation. As a reference, the "visibleChanged"
+// signal and the "width" property used in the example above are described at:
+//
+// http://qt-project.org/doc/qt-5.0/qtgui/qwindow.html
+//
+// When in doubt about what type is being manipulated, the Object.TypeName method
+// provides the type name of the underlying value.
+//
+//
+// Publishing Go values to QML
+//
+// The simplest way of making a Go value available to QML code is setting it
+// as a variable of the engine's root context, as in:
+//
+// context := engine.Context()
+// context.SetVar("person", &Person{Name: "Ale"})
+//
+// This logic would enable the following QML code to successfully run:
+//
+// import QtQuick 2.0
+// Item {
+// Component.onCompleted: console.log("Name is", person.name)
+// }
+//
+//
+// Publishing Go types to QML
+//
+// While registering an individual Go value as described above is a quick way to get
+// started, it is also fairly limited. For more flexibility, a Go type may be
+// registered so that QML code can natively create new instances in an arbitrary
+// position of the structure. This may be achieved via the RegisterType function, as
+// the following example demonstrates:
+//
+// qml.RegisterTypes("GoExtensions", 1, 0, []qml.TypeSpec{{
+// Init: func(p *Person, obj qml.Object) { p.Name = "<none>" },
+// }})
+//
+// With this logic in place, QML code can create new instances of Person by itself:
+//
+// import QtQuick 2.0
+// import GoExtensions 1.0
+// Item{
+// Person {
+// id: person
+// name: "Ale"
+// }
+// Component.onCompleted: console.log("Name is", person.name)
+// }
+//
+//
+// Lowercasing of names
+//
+// Independently from the mechanism used to publish a Go value to QML code, its methods
+// and fields are available to QML logic as methods and properties of the
+// respective QML object representing it. As required by QML, though, the Go
+// method and field names are lowercased according to the following scheme when
+// being accesed from QML:
+//
+// value.Name => value.name
+// value.UPPERName => value.upperName
+// value.UPPER => value.upper
+//
+//
+// Setters and getters
+//
+// While QML code can directly read and write exported fields of Go values, as described
+// above, a Go type can also intercept writes to specific fields by declaring a setter
+// method according to common Go conventions. This is often useful for updating the
+// internal state or the visible content of a Go-defined type.
+//
+// For example:
+//
+// type Person struct {
+// Name string
+// }
+//
+// func (p *Person) SetName(name string) {
+// fmt.Println("Old name is", p.Name)
+// p.Name = name
+// fmt.Println("New name is", p.Name)
+// }
+//
+// In the example above, whenever QML code attempts to update the Person.Name field
+// via any means (direct assignment, object declarations, etc) the SetName method
+// is invoked with the provided value instead.
+//
+// A setter method may also be used in conjunction with a getter method rather
+// than a real type field. A method is only considered a getter in the presence
+// of the respective setter, and according to common Go conventions it must not
+// have the Get prefix.
+//
+// Inside QML logic, the getter and setter pair is seen as a single object property.
+//
+//
+// Painting
+//
+// Custom types implemented in Go may have displayable content by defining
+// a Paint method such as:
+//
+// func (p *Person) Paint(painter *qml.Painter) {
+// // ... OpenGL calls with the gopkg.in/qml.v1/gl/<VERSION> package ...
+// }
+//
+// A simple example is available at:
+//
+// https://github.com/go-qml/qml/tree/v1/examples/painting
+//
+//
+// Packing resources into the Go qml binary
+//
+// Resource files (qml code, images, etc) may be packed into the Go qml application
+// binary to simplify its handling and distribution. This is done with the genqrc tool:
+//
+// http://gopkg.in/qml.v1/cmd/genqrc#usage
+//
+// The following blog post provides more details:
+//
+// http://blog.labix.org/2014/09/26/packing-resources-into-go-qml-binaries
+//
+package qml
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/.gitignore b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/.gitignore
new file mode 100644
index 000000000..309fbb35d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/.gitignore
@@ -0,0 +1,5 @@
+basiclayouts/basiclayouts
+gallery/gallery
+splitview/splitview
+tableview/tableview
+touch/touch
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/README.md b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/README.md
new file mode 100644
index 000000000..201846d89
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/README.md
@@ -0,0 +1,8 @@
+These examples were ported from [qtquickcontrols](git@gitorious.org:qt/qtquickcontrols.git).
+
+Only the basic ones were ported, in order to demonstrate how easy it is to create a full-fledged UI with Go and QML.
+
+There were a few more, but they that had native modules and those were omitted due to laziness.
+
+In order to run them you might need some extra Qt5 plugins. On Ubuntu those can be installed using this command:
+ sudo apt-get install qtdeclarative5-controls-plugin qtdeclarative5-xmllistmodel-plugin
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/basiclayouts/basiclayouts.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/basiclayouts/basiclayouts.go
new file mode 100644
index 000000000..a16b6b1ab
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/basiclayouts/basiclayouts.go
@@ -0,0 +1,29 @@
+package main
+
+import (
+ "fmt"
+ "gopkg.in/qml.v1"
+ "os"
+)
+
+func main() {
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ engine := qml.NewEngine()
+
+ controls, err := engine.LoadFile("main.qml")
+ if err != nil {
+ return err
+ }
+
+ window := controls.CreateWindow(nil)
+
+ window.Show()
+ window.Wait()
+ return nil
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/basiclayouts/main.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/basiclayouts/main.qml
new file mode 100644
index 000000000..ecbbb75a1
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/basiclayouts/main.qml
@@ -0,0 +1,116 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+import QtQuick.Layouts 1.0
+
+ApplicationWindow {
+ visible: true
+ title: "Basic layouts"
+ property int margin: 11
+ width: mainLayout.implicitWidth + 2 * margin
+ height: mainLayout.implicitHeight + 2 * margin
+ minimumWidth: mainLayout.Layout.minimumWidth + 2 * margin
+ minimumHeight: mainLayout.Layout.minimumHeight + 2 * margin
+
+ ColumnLayout {
+ id: mainLayout
+ anchors.fill: parent
+ anchors.margins: margin
+ GroupBox {
+ id: rowBox
+ title: "Row layout"
+ Layout.fillWidth: true
+
+ RowLayout {
+ id: rowLayout
+ anchors.fill: parent
+ TextField {
+ placeholderText: "This wants to grow horizontally"
+ Layout.fillWidth: true
+ }
+ Button {
+ text: "Button"
+ }
+ }
+ }
+
+ GroupBox {
+ id: gridBox
+ title: "Grid layout"
+ Layout.fillWidth: true
+
+ GridLayout {
+ id: gridLayout
+ rows: 3
+ flow: GridLayout.TopToBottom
+ anchors.fill: parent
+
+ Label { text: "Line 1" }
+ Label { text: "Line 2" }
+ Label { text: "Line 3" }
+
+ TextField { }
+ TextField { }
+ TextField { }
+
+ TextArea {
+ text: "This widget spans over three rows in the GridLayout.\n"
+ + "All items in the GridLayout are implicitly positioned from top to bottom."
+ Layout.rowSpan: 3
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ }
+ }
+ }
+ TextArea {
+ id: t3
+ text: "This fills the whole cell"
+ Layout.minimumHeight: 30
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/AboutDialog.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/AboutDialog.qml
new file mode 100644
index 000000000..aec7b6043
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/AboutDialog.qml
@@ -0,0 +1,48 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+import QtQuick 2.2
+import QtQuick.Dialogs 1.1
+
+MessageDialog {
+ icon: StandardIcon.Information
+ text: "QtQuick.Controls gallery example"
+ detailedText: "This example demonstrates most of the available Qt Quick Controls."
+ title: "About Gallery"
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/ChildWindow.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/ChildWindow.qml
new file mode 100644
index 000000000..08925f632
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/ChildWindow.qml
@@ -0,0 +1,122 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+import QtQuick.Window 2.1
+import QtQuick.Controls 1.1
+
+Window {
+ id: window1
+
+ width: 400
+ height: 400
+
+ title: "child window"
+ flags: Qt.Dialog
+
+ Rectangle {
+ color: syspal.window
+ anchors.fill: parent
+
+ Label {
+ id: dimensionsText
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.top: parent.top
+ width: parent.width
+ horizontalAlignment: Text.AlignHCenter
+ }
+
+ Label {
+ id: availableDimensionsText
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.top: dimensionsText.bottom
+ width: parent.width
+ horizontalAlignment: Text.AlignHCenter
+ }
+
+ Label {
+ id: closeText
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.top: availableDimensionsText.bottom
+ text: "This is a new Window, press the\nbutton below to close it again."
+ }
+ Button {
+ anchors.horizontalCenter: closeText.horizontalCenter
+ anchors.top: closeText.bottom
+ id: closeWindowButton
+ text:"Close"
+ width: 98
+ tooltip:"Press me, to close this window again"
+ onClicked: window1.visible = false
+ }
+ Button {
+ anchors.horizontalCenter: closeText.horizontalCenter
+ anchors.top: closeWindowButton.bottom
+ id: maximizeWindowButton
+ text:"Maximize"
+ width: 98
+ tooltip:"Press me, to maximize this window again"
+ onClicked: window1.visibility = Window.Maximized;
+ }
+ Button {
+ anchors.horizontalCenter: closeText.horizontalCenter
+ anchors.top: maximizeWindowButton.bottom
+ id: normalizeWindowButton
+ text:"Normalize"
+ width: 98
+ tooltip:"Press me, to normalize this window again"
+ onClicked: window1.visibility = Window.Windowed;
+ }
+ Button {
+ anchors.horizontalCenter: closeText.horizontalCenter
+ anchors.top: normalizeWindowButton.bottom
+ id: minimizeWindowButton
+ text:"Minimize"
+ width: 98
+ tooltip:"Press me, to minimize this window again"
+ onClicked: window1.visibility = Window.Minimized;
+ }
+ }
+}
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/Controls.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/Controls.qml
new file mode 100644
index 000000000..b7e461881
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/Controls.qml
@@ -0,0 +1,229 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+import QtQuick.Layouts 1.1
+import QtQuick.Controls.Styles 1.1
+
+Item {
+ id: flickable
+ anchors.fill: parent
+ enabled: enabledCheck.checked
+
+ property int tabPosition: tabPositionGroup.current === r2 ? Qt.BottomEdge : Qt.TopEdge
+
+ RowLayout {
+ id: contentRow
+ anchors.fill:parent
+ anchors.margins: 8
+ spacing: 16
+ ColumnLayout {
+ id: firstColumn
+ Layout.minimumWidth: implicitWidth
+ Layout.fillWidth: false
+ RowLayout {
+ id: buttonrow
+ Button {
+ id: button1
+ text: "Button 1"
+ tooltip:"This is an interesting tool tip"
+ Layout.fillWidth: true
+ }
+ Button {
+ id:button2
+ text:"Button 2"
+ Layout.fillWidth: true
+ menu: Menu {
+ MenuItem { text: "This Button" }
+ MenuItem { text: "Happens To Have" }
+ MenuItem { text: "A Menu Assigned" }
+ }
+ }
+ }
+ ComboBox {
+ id: combo
+ model: choices
+ currentIndex: 2
+ Layout.fillWidth: true
+ }
+ ComboBox {
+ model: Qt.fontFamilies()
+ Layout.fillWidth: true
+ currentIndex: 47
+ }
+ ComboBox {
+ id: editableCombo
+ editable: true
+ model: choices
+ Layout.fillWidth: true
+ currentIndex: 2
+ onAccepted: {
+ if (editableCombo.find(currentText) === -1) {
+ choices.append({text: editText})
+ currentIndex = editableCombo.find(editText)
+ }
+ }
+ }
+ RowLayout {
+ SpinBox {
+ id: t1
+ Layout.fillWidth: true
+ minimumValue: -50
+ value: -20
+ }
+ SpinBox {
+ id: t2
+ Layout.fillWidth: true
+ }
+ }
+ TextField {
+ id: t3
+ placeholderText: "This is a placeholder for a TextField"
+ Layout.fillWidth: true
+ }
+ ProgressBar {
+ // normalize value [0.0 .. 1.0]
+ value: (slider.value - slider.minimumValue) / (slider.maximumValue - slider.minimumValue)
+ Layout.fillWidth: true
+ }
+ ProgressBar {
+ indeterminate: true
+ Layout.fillWidth: true
+ }
+ Slider {
+ id: slider
+ value: 0.5
+ Layout.fillWidth: true
+ tickmarksEnabled: tickmarkCheck.checked
+ stepSize: tickmarksEnabled ? 0.1 : 0
+ }
+ MouseArea {
+ id: busyCheck
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ hoverEnabled:true
+ Layout.preferredHeight: busyIndicator.height
+ BusyIndicator {
+ id: busyIndicator
+ running: busyCheck.containsMouse
+ anchors.horizontalCenter: parent.horizontalCenter
+ }
+ }
+ }
+ ColumnLayout {
+ id: rightcol
+ Layout.fillWidth: true
+ anchors {
+ top: parent.top
+ bottom: parent.bottom
+ }
+
+ GroupBox {
+ id: group1
+ title: "CheckBox"
+ Layout.fillWidth: true
+ RowLayout {
+ Layout.fillWidth: true
+ CheckBox {
+ id: frameCheckbox
+ text: "Text frame"
+ checked: true
+ Layout.minimumWidth: 100
+ }
+ CheckBox {
+ id: tickmarkCheck
+ text: "Tickmarks"
+ checked: false
+ Layout.minimumWidth: 100
+ }
+ CheckBox {
+ id: wrapCheck
+ text: "Word wrap"
+ checked: true
+ Layout.minimumWidth: 100
+ }
+ }
+ }
+ GroupBox {
+ id: group2
+ title:"Tab Position"
+ Layout.fillWidth: true
+ RowLayout {
+ ExclusiveGroup { id: tabPositionGroup }
+ RadioButton {
+ id: r1
+ text: "Top"
+ checked: true
+ exclusiveGroup: tabPositionGroup
+ Layout.minimumWidth: 100
+ }
+ RadioButton {
+ id: r2
+ text: "Bottom"
+ exclusiveGroup: tabPositionGroup
+ Layout.minimumWidth: 100
+ }
+ }
+ }
+
+ TextArea {
+ id: area
+ frameVisible: frameCheckbox.checked
+ text: loremIpsum + loremIpsum
+ textFormat: Qt.RichText
+ wrapMode: wrapCheck.checked ? TextEdit.WordWrap : TextEdit.NoWrap
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ MouseArea {
+ id: contextMenu
+ parent: area.viewport
+ anchors.fill: parent
+ acceptedButtons: Qt.RightButton
+ onPressed: editmenu.popup()
+ }
+ }
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/ImageViewer.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/ImageViewer.qml
new file mode 100644
index 000000000..01f24ab33
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/ImageViewer.qml
@@ -0,0 +1,58 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+import QtQuick 2.2
+import QtQuick.Window 2.1
+
+Window {
+ id: imageViewer
+ minimumWidth: viewerImage.width
+ minimumHeight: viewerImage.height
+ function open(source) {
+ viewerImage.source = source
+ width = viewerImage.implicitWidth + 20
+ height = viewerImage.implicitHeight + 20
+ title = source
+ visible = true
+ }
+ Image {
+ id: viewerImage
+ anchors.centerIn: parent
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/Layouts.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/Layouts.qml
new file mode 100644
index 000000000..0cb234c39
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/Layouts.qml
@@ -0,0 +1,107 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+import QtQuick.Layouts 1.0
+
+Item {
+ id:root
+ anchors.fill: parent
+ anchors.margins: 8
+
+ ColumnLayout {
+ id: mainLayout
+ anchors.fill: parent
+ spacing: 4
+ GroupBox {
+ id: rowBox
+ title: "Row layout"
+ Layout.fillWidth: true
+ RowLayout {
+ id: rowLayout
+ anchors.fill: parent
+ TextField {
+ placeholderText: "This wants to grow horizontally"
+ Layout.fillWidth: true
+ }
+ Button {
+ text: "Button"
+ }
+ }
+ }
+
+ GroupBox {
+ id: gridBox
+ title: "Grid layout"
+ Layout.fillWidth: true
+
+ GridLayout {
+ id: gridLayout
+ anchors.fill: parent
+ rows: 3
+ flow: GridLayout.TopToBottom
+
+ Label { text: "Line 1" }
+ Label { text: "Line 2" }
+ Label { text: "Line 3" }
+
+ TextField { }
+ TextField { }
+ TextField { }
+
+ TextArea {
+ text: "This widget spans over three rows in the GridLayout.\n"
+ + "All items in the GridLayout are implicitly positioned from top to bottom."
+ Layout.rowSpan: 3
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ }
+ }
+ }
+ TextArea {
+ id: t3
+ text: "This fills the whole cell"
+ Layout.minimumHeight: 30
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/ModelView.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/ModelView.qml
new file mode 100644
index 000000000..be334458d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/ModelView.qml
@@ -0,0 +1,103 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+//import QtQuick.XmlListModel 2.1
+
+Item {
+ id: root
+ width: 600
+ height: 300
+ anchors.fill: parent
+ anchors.margins: Qt.platform.os === "osx" ? 12 : 6
+
+// XmlListModel {
+// id: flickerModel
+// source: "http://api.flickr.com/services/feeds/photos_public.gne?format=rss2&tags=" + "Cat"
+// query: "/rss/channel/item"
+// namespaceDeclarations: "declare namespace media=\"http://search.yahoo.com/mrss/\";"
+// XmlRole { name: "title"; query: "title/string()" }
+// XmlRole { name: "imagesource"; query: "media:thumbnail/@url/string()" }
+// XmlRole { name: "credit"; query: "media:credit/string()" }
+// }
+
+ ListModel {
+ id: dummyModel
+ Component.onCompleted: {
+ for (var i = 0 ; i < 100 ; ++i) {
+ append({"index": i, "title": "A title " + i, "imagesource" :"http://someurl.com", "credit" : "N/A"})
+ }
+ }
+ }
+
+ TableView{
+ model: dummyModel
+ anchors.fill: parent
+
+ TableViewColumn {
+ role: "index"
+ title: "#"
+ width: 36
+ resizable: false
+ movable: false
+ }
+ TableViewColumn {
+ role: "title"
+ title: "Title"
+ width: 120
+ }
+ TableViewColumn {
+ role: "credit"
+ title: "Credit"
+ width: 120
+ }
+ TableViewColumn {
+ role: "imagesource"
+ title: "Image source"
+ width: 200
+ visible: true
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/Styles.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/Styles.qml
new file mode 100644
index 000000000..ed237d82b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/content/Styles.qml
@@ -0,0 +1,387 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+import QtQuick.Controls.Styles 1.1
+import QtQuick.Particles 2.0
+import QtQuick.Layouts 1.0
+
+Item {
+ id: root
+ width: 300
+ height: 200
+
+ property int columnWidth: 120
+ GridLayout {
+ rowSpacing: 12
+ columnSpacing: 30
+ anchors.top: parent.top
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.margins: 30
+
+ Button {
+ text: "Push me"
+ style: ButtonStyle { }
+ implicitWidth: columnWidth
+ }
+ Button {
+ text: "Push me"
+ style: ButtonStyle {
+ background: BorderImage {
+ source: control.pressed ? "../images/button-pressed.png" : "../images/button.png"
+ border.left: 4 ; border.right: 4 ; border.top: 4 ; border.bottom: 4
+ }
+ }
+ implicitWidth: columnWidth
+ }
+ Button {
+ text: "Push me"
+ style: buttonStyle
+ implicitWidth: columnWidth
+ }
+
+ TextField {
+ Layout.row: 1
+ style: TextFieldStyle { }
+ implicitWidth: columnWidth
+ }
+ TextField {
+ style: TextFieldStyle {
+ background: BorderImage {
+ source: "../images/textfield.png"
+ border.left: 4 ; border.right: 4 ; border.top: 4 ; border.bottom: 4
+ }
+ }
+ implicitWidth: columnWidth
+ }
+ TextField {
+ style: textfieldStyle
+ implicitWidth: columnWidth
+ }
+
+ Slider {
+ id: slider1
+ Layout.row: 2
+ value: 0.5
+ implicitWidth: columnWidth
+ style: SliderStyle { }
+ }
+ Slider {
+ id: slider2
+ value: 0.5
+ implicitWidth: columnWidth
+ style: SliderStyle {
+ groove: BorderImage {
+ height: 6
+ border.top: 1
+ border.bottom: 1
+ source: "../images/progress-background.png"
+ border.left: 6
+ border.right: 6
+ BorderImage {
+ anchors.verticalCenter: parent.verticalCenter
+ source: "../images/progress-fill.png"
+ border.left: 5 ; border.top: 1
+ border.right: 5 ; border.bottom: 1
+ width: styleData.handlePosition
+ height: parent.height
+ }
+ }
+ handle: Item {
+ width: 13
+ height: 13
+ Image {
+ anchors.centerIn: parent
+ source: "../images/slider-handle.png"
+ }
+ }
+ }
+ }
+ Slider {
+ id: slider3
+ value: 0.5
+ implicitWidth: columnWidth
+ style: sliderStyle
+ }
+
+ ProgressBar {
+ Layout.row: 3
+ value: slider1.value
+ implicitWidth: columnWidth
+ style: ProgressBarStyle{ }
+ }
+ ProgressBar {
+ value: slider2.value
+ implicitWidth: columnWidth
+ style: progressBarStyle
+ }
+ ProgressBar {
+ value: slider3.value
+ implicitWidth: columnWidth
+ style: progressBarStyle2
+ }
+
+ CheckBox {
+ text: "CheckBox"
+ style: CheckBoxStyle{}
+ Layout.row: 4
+ implicitWidth: columnWidth
+ }
+ RadioButton {
+ style: RadioButtonStyle{}
+ text: "RadioButton"
+ implicitWidth: columnWidth
+ }
+
+ ComboBox {
+ model: ["Paris", "Oslo", "New York"]
+ style: ComboBoxStyle{}
+ implicitWidth: columnWidth
+ }
+
+ TabView {
+ Layout.row: 5
+ Layout.columnSpan: 3
+ Layout.fillWidth: true
+ implicitHeight: 30
+ Tab { title: "One" ; Item {}}
+ Tab { title: "Two" ; Item {}}
+ Tab { title: "Three" ; Item {}}
+ Tab { title: "Four" ; Item {}}
+ style: TabViewStyle {}
+ }
+
+ TabView {
+ Layout.row: 6
+ Layout.columnSpan: 3
+ Layout.fillWidth: true
+ implicitHeight: 30
+ Tab { title: "One" ; Item {}}
+ Tab { title: "Two" ; Item {}}
+ Tab { title: "Three" ; Item {}}
+ Tab { title: "Four" ; Item {}}
+ style: tabViewStyle
+ }
+ }
+
+ // Style delegates:
+
+ property Component buttonStyle: ButtonStyle {
+ background: Rectangle {
+ implicitHeight: 22
+ implicitWidth: columnWidth
+ color: control.pressed ? "darkGray" : control.activeFocus ? "#cdd" : "#ccc"
+ antialiasing: true
+ border.color: "gray"
+ radius: height/2
+ Rectangle {
+ anchors.fill: parent
+ anchors.margins: 1
+ color: "transparent"
+ antialiasing: true
+ visible: !control.pressed
+ border.color: "#aaffffff"
+ radius: height/2
+ }
+ }
+ }
+
+ property Component textfieldStyle: TextFieldStyle {
+ background: Rectangle {
+ implicitWidth: columnWidth
+ implicitHeight: 22
+ color: "#f0f0f0"
+ antialiasing: true
+ border.color: "gray"
+ radius: height/2
+ Rectangle {
+ anchors.fill: parent
+ anchors.margins: 1
+ color: "transparent"
+ antialiasing: true
+ border.color: "#aaffffff"
+ radius: height/2
+ }
+ }
+ }
+
+ property Component sliderStyle: SliderStyle {
+ handle: Rectangle {
+ width: 18
+ height: 18
+ color: control.pressed ? "darkGray" : "lightGray"
+ border.color: "gray"
+ antialiasing: true
+ radius: height/2
+ Rectangle {
+ anchors.fill: parent
+ anchors.margins: 1
+ color: "transparent"
+ antialiasing: true
+ border.color: "#eee"
+ radius: height/2
+ }
+ }
+
+ groove: Rectangle {
+ height: 8
+ implicitWidth: columnWidth
+ implicitHeight: 22
+
+ antialiasing: true
+ color: "#ccc"
+ border.color: "#777"
+ radius: height/2
+ Rectangle {
+ anchors.fill: parent
+ anchors.margins: 1
+ color: "transparent"
+ antialiasing: true
+ border.color: "#66ffffff"
+ radius: height/2
+ }
+ }
+ }
+
+ property Component progressBarStyle: ProgressBarStyle {
+ background: BorderImage {
+ source: "../images/progress-background.png"
+ border.left: 2 ; border.right: 2 ; border.top: 2 ; border.bottom: 2
+ }
+ progress: Item {
+ clip: true
+ BorderImage {
+ anchors.fill: parent
+ anchors.rightMargin: (control.value < control.maximumValue) ? -4 : 0
+ source: "../images/progress-fill.png"
+ border.left: 10 ; border.right: 10
+ Rectangle {
+ width: 1
+ color: "#a70"
+ opacity: 0.8
+ anchors.top: parent.top
+ anchors.bottom: parent.bottom
+ anchors.bottomMargin: 1
+ anchors.right: parent.right
+ visible: control.value < control.maximumValue
+ anchors.rightMargin: -parent.anchors.rightMargin
+ }
+ }
+ ParticleSystem{ id: bubbles; running: visible }
+ ImageParticle{
+ id: fireball
+ system: bubbles
+ source: "../images/bubble.png"
+ opacity: 0.7
+ }
+ Emitter{
+ system: bubbles
+ anchors.bottom: parent.bottom
+ anchors.margins: 4
+ anchors.bottomMargin: -4
+ anchors.left: parent.left
+ anchors.right: parent.right
+ size: 4
+ sizeVariation: 4
+ acceleration: PointDirection{ y: -6; xVariation: 3 }
+ emitRate: 6 * control.value
+ lifeSpan: 3000
+ }
+ }
+ }
+
+ property Component progressBarStyle2: ProgressBarStyle {
+ background: Rectangle {
+ implicitWidth: columnWidth
+ implicitHeight: 24
+ color: "#f0f0f0"
+ border.color: "gray"
+ }
+ progress: Rectangle {
+ color: "#ccc"
+ border.color: "gray"
+ Rectangle {
+ color: "transparent"
+ border.color: "#44ffffff"
+ anchors.fill: parent
+ anchors.margins: 1
+ }
+ }
+ }
+
+ property Component tabViewStyle: TabViewStyle {
+ tabOverlap: 16
+ frameOverlap: 4
+ tabsMovable: true
+
+ frame: Rectangle {
+ gradient: Gradient{
+ GradientStop { color: "#e5e5e5" ; position: 0 }
+ GradientStop { color: "#e0e0e0" ; position: 1 }
+ }
+ border.color: "#898989"
+ Rectangle { anchors.fill: parent ; anchors.margins: 1 ; border.color: "white" ; color: "transparent" }
+ }
+ tab: Item {
+ property int totalOverlap: tabOverlap * (control.count - 1)
+ implicitWidth: Math.min ((styleData.availableWidth + totalOverlap)/control.count - 4, image.sourceSize.width)
+ implicitHeight: image.sourceSize.height
+ BorderImage {
+ id: image
+ anchors.fill: parent
+ source: styleData.selected ? "../images/tab_selected.png" : "../images/tab.png"
+ border.left: 30
+ smooth: false
+ border.right: 30
+ }
+ Text {
+ text: styleData.title
+ anchors.centerIn: parent
+ }
+ }
+ leftCorner: Item { implicitWidth: 12 }
+ }
+}
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/gallery.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/gallery.go
new file mode 100644
index 000000000..a16b6b1ab
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/gallery.go
@@ -0,0 +1,29 @@
+package main
+
+import (
+ "fmt"
+ "gopkg.in/qml.v1"
+ "os"
+)
+
+func main() {
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ engine := qml.NewEngine()
+
+ controls, err := engine.LoadFile("main.qml")
+ if err != nil {
+ return err
+ }
+
+ window := controls.CreateWindow(nil)
+
+ window.Show()
+ window.Wait()
+ return nil
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/bubble.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/bubble.png
new file mode 100644
index 000000000..62aa1efe5
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/bubble.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/button-pressed.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/button-pressed.png
new file mode 100644
index 000000000..d64cdaa78
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/button-pressed.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/button.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/button.png
new file mode 100644
index 000000000..8ab41cc80
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/button.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-open.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-open.png
new file mode 100644
index 000000000..f35f25835
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-open.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-open@2x.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-open@2x.png
new file mode 100644
index 000000000..9fdbb6657
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-open@2x.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-save-as.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-save-as.png
new file mode 100644
index 000000000..5c9f6b343
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-save-as.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-save-as@2x.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-save-as@2x.png
new file mode 100644
index 000000000..a15e34c92
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/document-save-as@2x.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/folder_new.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/folder_new.png
new file mode 100644
index 000000000..8d8bb9bd7
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/folder_new.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/go-next.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/go-next.png
new file mode 100644
index 000000000..a68e2db77
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/go-next.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/go-previous.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/go-previous.png
new file mode 100644
index 000000000..c37bc0414
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/go-previous.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/preferences-system.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/preferences-system.png
new file mode 100644
index 000000000..6e52db7cf
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/preferences-system.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/process-stop.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/process-stop.png
new file mode 100644
index 000000000..e7a8d1722
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/process-stop.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/progress-background.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/progress-background.png
new file mode 100644
index 000000000..55a069dfc
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/progress-background.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/progress-fill.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/progress-fill.png
new file mode 100644
index 000000000..b588c9586
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/progress-fill.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/slider-handle.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/slider-handle.png
new file mode 100644
index 000000000..ac4d4a0d9
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/slider-handle.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/tab.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/tab.png
new file mode 100644
index 000000000..74fefab78
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/tab.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/tab_selected.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/tab_selected.png
new file mode 100644
index 000000000..665400ccf
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/tab_selected.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/textfield.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/textfield.png
new file mode 100644
index 000000000..1d4a38ab3
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/textfield.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/toplevel_window.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/toplevel_window.png
new file mode 100644
index 000000000..4dc6a8cee
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/toplevel_window.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/view-refresh.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/view-refresh.png
new file mode 100644
index 000000000..606ea9eba
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/view-refresh.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/window-new.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/window-new.png
new file mode 100644
index 000000000..e091702e3
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/window-new.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/window-new@2x.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/window-new@2x.png
new file mode 100644
index 000000000..36503018e
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/images/window-new@2x.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/main.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/main.qml
new file mode 100644
index 000000000..7250bb313
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/gallery/main.qml
@@ -0,0 +1,266 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+import QtQuick.Layouts 1.0
+import QtQuick.Dialogs 1.0
+import "content"
+
+ApplicationWindow {
+ visible: true
+ title: "Component Gallery"
+
+ width: 640
+ height: 420
+ minimumHeight: 400
+ minimumWidth: 600
+
+ property string loremIpsum:
+ "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor "+
+ "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor "+
+ "incididunt ut labore et dolore magna aliqua.\n Ut enim ad minim veniam, quis nostrud "+
+ "exercitation ullamco laboris nisi ut aliquip ex ea commodo cosnsequat. ";
+
+ ImageViewer { id: imageViewer }
+
+ FileDialog {
+ id: fileDialog
+ nameFilters: [ "Image files (*.png *.jpg)" ]
+ onAccepted: imageViewer.open(fileUrl)
+ }
+
+ AboutDialog { id: aboutDialog }
+
+ Action {
+ id: openAction
+ text: "&Open"
+ shortcut: StandardKey.Open
+ iconSource: "images/document-open.png"
+ onTriggered: fileDialog.open()
+ tooltip: "Open an image"
+ }
+
+ Action {
+ id: copyAction
+ text: "&Copy"
+ shortcut: StandardKey.Copy
+ iconName: "edit-copy"
+ enabled: (!!activeFocusItem && !!activeFocusItem["copy"])
+ onTriggered: activeFocusItem.copy()
+ }
+
+ Action {
+ id: cutAction
+ text: "Cu&t"
+ shortcut: StandardKey.Cut
+ iconName: "edit-cut"
+ enabled: (!!activeFocusItem && !!activeFocusItem["cut"])
+ onTriggered: activeFocusItem.cut()
+ }
+
+ Action {
+ id: pasteAction
+ text: "&Paste"
+ shortcut: StandardKey.Paste
+ iconName: "edit-paste"
+ enabled: (!!activeFocusItem && !!activeFocusItem["paste"])
+ onTriggered: activeFocusItem.paste()
+ }
+
+ Action {
+ id: aboutAction
+ text: "About"
+ onTriggered: aboutDialog.open()
+ }
+
+ ExclusiveGroup {
+ id: textFormatGroup
+
+ Action {
+ id: a1
+ text: "Align &Left"
+ checkable: true
+ Component.onCompleted: checked = true
+ }
+
+ Action {
+ id: a2
+ text: "&Center"
+ checkable: true
+ }
+
+ Action {
+ id: a3
+ text: "Align &Right"
+ checkable: true
+ }
+ }
+
+ ChildWindow { id: window1 }
+
+ Menu {
+ id: editmenu
+ MenuItem { action: cutAction }
+ MenuItem { action: copyAction }
+ MenuItem { action: pasteAction }
+ MenuSeparator {}
+ Menu {
+ title: "Text &Format"
+ MenuItem { action: a1 }
+ MenuItem { action: a2 }
+ MenuItem { action: a3 }
+ MenuSeparator { }
+ MenuItem { text: "Allow &Hyphenation"; checkable: true }
+ }
+ Menu {
+ title: "Font &Style"
+ MenuItem { text: "&Bold"; checkable: true }
+ MenuItem { text: "&Italic"; checkable: true }
+ MenuItem { text: "&Underline"; checkable: true }
+ }
+ }
+
+ toolBar: ToolBar {
+ id: toolbar
+ RowLayout {
+ id: toolbarLayout
+ spacing: 0
+ width: parent.width
+ ToolButton {
+ iconSource: "images/window-new.png"
+ onClicked: window1.visible = !window1.visible
+ Accessible.name: "New window"
+ tooltip: "Toggle visibility of the second window"
+ }
+ ToolButton { action: openAction }
+ ToolButton {
+ Accessible.name: "Save as"
+ iconSource: "images/document-save-as.png"
+ tooltip: "(Pretend to) Save as..."
+ }
+ Item { Layout.fillWidth: true }
+ CheckBox {
+ id: enabledCheck
+ text: "Enabled"
+ checked: true
+ }
+ }
+ }
+
+ menuBar: MenuBar {
+ Menu {
+ title: "&File"
+ MenuItem { action: openAction }
+ MenuItem {
+ text: "Close"
+ shortcut: StandardKey.Quit
+ onTriggered: Qt.quit()
+ }
+ }
+ Menu {
+ title: "&Edit"
+ MenuItem { action: cutAction }
+ MenuItem { action: copyAction }
+ MenuItem { action: pasteAction }
+ MenuSeparator { }
+ MenuItem {
+ text: "Do Nothing"
+ shortcut: "Ctrl+E,Shift+Ctrl+X"
+ enabled: false
+ }
+ MenuItem {
+ text: "Not Even There"
+ shortcut: "Ctrl+E,Shift+Ctrl+Y"
+ visible: false
+ }
+ Menu {
+ title: "Me Neither"
+ visible: false
+ }
+ }
+ Menu {
+ title: "&Help"
+ MenuItem { action: aboutAction }
+ }
+ }
+
+
+ SystemPalette {id: syspal}
+ color: syspal.window
+ ListModel {
+ id: choices
+ ListElement { text: "Banana" }
+ ListElement { text: "Orange" }
+ ListElement { text: "Apple" }
+ ListElement { text: "Coconut" }
+ }
+
+ TabView {
+ id:frame
+ enabled: enabledCheck.checked
+ tabPosition: controlPage.item ? controlPage.item.tabPosition : Qt.TopEdge
+ anchors.fill: parent
+ anchors.margins: Qt.platform.os === "osx" ? 12 : 2
+
+ Tab {
+ id: controlPage
+ title: "Controls"
+ Controls { }
+ }
+ Tab {
+ title: "Itemviews"
+ ModelView { }
+ }
+ Tab {
+ title: "Styles"
+ Styles { anchors.fill: parent }
+ }
+ Tab {
+ title: "Layouts"
+ Layouts { anchors.fill:parent }
+ }
+ }
+}
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/splitview/main.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/splitview/main.qml
new file mode 100644
index 000000000..d93c74d3d
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/splitview/main.qml
@@ -0,0 +1,82 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+import QtQuick.Layouts 1.0
+
+ApplicationWindow {
+ visible: true
+ width: 600
+ height: 400
+
+ SplitView {
+ anchors.fill: parent
+
+ Rectangle {
+ id: column
+ width: 200
+ Layout.minimumWidth: 100
+ Layout.maximumWidth: 300
+ color: "lightsteelblue"
+ }
+
+ SplitView {
+ orientation: Qt.Vertical
+ Layout.fillWidth: true
+
+ Rectangle {
+ id: row1
+ height: 200
+ color: "lightblue"
+ Layout.minimumHeight: 1
+ }
+
+ Rectangle {
+ id: row2
+ color: "lightgray"
+ }
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/splitview/splitview.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/splitview/splitview.go
new file mode 100644
index 000000000..a16b6b1ab
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/splitview/splitview.go
@@ -0,0 +1,29 @@
+package main
+
+import (
+ "fmt"
+ "gopkg.in/qml.v1"
+ "os"
+)
+
+func main() {
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ engine := qml.NewEngine()
+
+ controls, err := engine.LoadFile("main.qml")
+ if err != nil {
+ return err
+ }
+
+ window := controls.CreateWindow(nil)
+
+ window.Show()
+ window.Wait()
+ return nil
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/images/header.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/images/header.png
new file mode 100644
index 000000000..dba664609
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/images/header.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/images/selectedrow.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/images/selectedrow.png
new file mode 100644
index 000000000..71192ea4e
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/images/selectedrow.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/main.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/main.qml
new file mode 100644
index 000000000..9fb361369
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/main.qml
@@ -0,0 +1,405 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+import QtQuick.Window 2.1
+import QtQuick.Controls 1.1
+import QtQuick.XmlListModel 2.0
+
+Window {
+ visible: true
+ width: 538 + frame.margins * 2
+ height: 360 + frame.margins * 2
+
+ ToolBar {
+ id: toolbar
+ width: parent.width
+
+ ListModel {
+ id: delegatemenu
+ ListElement { text: "Shiny delegate" }
+ ListElement { text: "Scale selected" }
+ ListElement { text: "Editable items" }
+ }
+
+ ComboBox {
+ id: delegateChooser
+ enabled: frame.currentIndex === 3 ? 1 : 0
+ model: delegatemenu
+ width: 150
+ anchors.left: parent.left
+ anchors.leftMargin: 8
+ anchors.verticalCenter: parent.verticalCenter
+ }
+
+ CheckBox {
+ id: enabledCheck
+ text: "Enabled"
+ checked: true
+ anchors.right: parent.right
+ anchors.verticalCenter: parent.verticalCenter
+ }
+ }
+
+ SystemPalette {id: syspal}
+ color: syspal.window
+
+ XmlListModel {
+ id: flickerModel
+ source: "http://api.flickr.com/services/feeds/photos_public.gne?format=rss2&tags=" + "Qt"
+ query: "/rss/channel/item"
+ namespaceDeclarations: "declare namespace media=\"http://search.yahoo.com/mrss/\";"
+ XmlRole { name: "title"; query: "title/string()" }
+ XmlRole { name: "imagesource"; query: "media:thumbnail/@url/string()" }
+ XmlRole { name: "credit"; query: "media:credit/string()" }
+ }
+
+ ListModel {
+ id: nestedModel
+ ListElement{content: ListElement { description: "Core" ; color:"#ffaacc"}}
+ ListElement{content: ListElement { description: "Second" ; color:"#ffccaa"}}
+ ListElement{content: ListElement { description: "Third" ; color:"#ffffaa"}}
+ }
+
+ ListModel {
+ id: largeModel
+ Component.onCompleted: {
+ for (var i=0 ; i< 500 ; ++i)
+ largeModel.append({"name":"Person "+i , "age": Math.round(Math.random()*100), "gender": Math.random()>0.5 ? "Male" : "Female"})
+ }
+ }
+
+ Column {
+ anchors.top: toolbar.bottom
+ anchors.right: parent.right
+ anchors.left: parent.left
+ anchors.bottom: parent.bottom
+ anchors.margins: 8
+
+ TabView {
+ id:frame
+ focus:true
+ enabled: enabledCheck.checked
+
+ property int margins: Qt.platform.os === "osx" ? 16 : 0
+
+ height: parent.height - 34
+ anchors.right: parent.right
+ anchors.left: parent.left
+ anchors.margins: margins
+
+ Tab {
+ title: "XmlListModel"
+
+ TableView {
+ model: flickerModel
+ anchors.fill: parent
+ anchors.margins: 12
+
+ TableViewColumn {
+ role: "title"
+ title: "Title"
+ width: 120
+ }
+ TableViewColumn {
+ role: "credit"
+ title: "Credit"
+ width: 120
+ }
+ TableViewColumn {
+ role: "imagesource"
+ title: "Image source"
+ width: 200
+ visible: true
+ }
+
+ frameVisible: frameCheckbox.checked
+ headerVisible: headerCheckbox.checked
+ sortIndicatorVisible: sortableCheckbox.checked
+ alternatingRowColors: alternateCheckbox.checked
+ }
+ }
+ Tab {
+ title: "Multivalue"
+
+ TableView {
+ model: nestedModel
+ anchors.fill: parent
+ anchors.margins: 12
+
+ TableViewColumn {
+ role: "content"
+ title: "Text and Color"
+ width: 220
+ }
+
+ itemDelegate: Item {
+ Rectangle{
+ color: styleData.value.get(0).color
+ anchors.top:parent.top
+ anchors.right:parent.right
+ anchors.bottom:parent.bottom
+ anchors.margins: 4
+ width:32
+ border.color:"#666"
+ }
+ Text {
+ width: parent.width
+ anchors.margins: 4
+ anchors.left: parent.left
+ anchors.verticalCenter: parent.verticalCenter
+ elide: styleData.elideMode
+ text: styleData.value.get(0).description
+ color: styleData.textColor
+ }
+ }
+
+ frameVisible: frameCheckbox.checked
+ headerVisible: headerCheckbox.checked
+ sortIndicatorVisible: sortableCheckbox.checked
+ alternatingRowColors: alternateCheckbox.checked
+ }
+ }
+ Tab {
+ title: "Generated"
+
+ TableView {
+ model: largeModel
+ anchors.margins: 12
+ anchors.fill: parent
+ TableViewColumn {
+ role: "name"
+ title: "Name"
+ width: 120
+ }
+ TableViewColumn {
+ role: "age"
+ title: "Age"
+ width: 120
+ }
+ TableViewColumn {
+ role: "gender"
+ title: "Gender"
+ width: 120
+ }
+ frameVisible: frameCheckbox.checked
+ headerVisible: headerCheckbox.checked
+ sortIndicatorVisible: sortableCheckbox.checked
+ alternatingRowColors: alternateCheckbox.checked
+ }
+ }
+
+ Tab {
+ title: "Delegates"
+ Item {
+ anchors.fill: parent
+
+ Component {
+ id: delegate1
+ Item {
+ clip: true
+ Text {
+ width: parent.width
+ anchors.margins: 4
+ anchors.left: parent.left
+ anchors.verticalCenter: parent.verticalCenter
+ elide: styleData.elideMode
+ text: styleData.value !== undefined ? styleData.value : ""
+ color: styleData.textColor
+ }
+ }
+ }
+
+ Component {
+ id: delegate2
+ Text {
+ width: parent.width
+ anchors.margins: 4
+ anchors.left: parent.left
+ anchors.verticalCenter: parent.verticalCenter
+ elide: styleData.elideMode
+ text: styleData.value !== undefined ? styleData.value : ""
+ color: styleData.textColor
+ }
+ }
+
+ Component {
+ id: editableDelegate
+ Item {
+
+ Text {
+ width: parent.width
+ anchors.margins: 4
+ anchors.left: parent.left
+ anchors.verticalCenter: parent.verticalCenter
+ elide: styleData.elideMode
+ text: styleData.value !== undefined ? styleData.value : ""
+ color: styleData.textColor
+ visible: !styleData.selected
+ }
+ Loader { // Initialize text editor lazily to improve performance
+ id: loaderEditor
+ anchors.fill: parent
+ anchors.margins: 4
+ Connections {
+ target: loaderEditor.item
+ onAccepted: {
+ if (typeof styleData.value === 'number')
+ largeModel.setProperty(styleData.row, styleData.role, Number(parseFloat(loaderEditor.item.text).toFixed(0)))
+ else
+ largeModel.setProperty(styleData.row, styleData.role, loaderEditor.item.text)
+ }
+ }
+ sourceComponent: styleData.selected ? editor : null
+ Component {
+ id: editor
+ TextInput {
+ id: textinput
+ color: styleData.textColor
+ text: styleData.value
+ MouseArea {
+ id: mouseArea
+ anchors.fill: parent
+ hoverEnabled: true
+ onClicked: textinput.forceActiveFocus()
+ }
+ }
+ }
+ }
+ }
+ }
+ TableView {
+ model: largeModel
+ anchors.margins: 12
+ anchors.fill:parent
+ frameVisible: frameCheckbox.checked
+ headerVisible: headerCheckbox.checked
+ sortIndicatorVisible: sortableCheckbox.checked
+ alternatingRowColors: alternateCheckbox.checked
+
+ TableViewColumn {
+ role: "name"
+ title: "Name"
+ width: 120
+ }
+ TableViewColumn {
+ role: "age"
+ title: "Age"
+ width: 120
+ }
+ TableViewColumn {
+ role: "gender"
+ title: "Gender"
+ width: 120
+ }
+
+ headerDelegate: BorderImage{
+ source: "images/header.png"
+ border{left:2;right:2;top:2;bottom:2}
+ Text {
+ text: styleData.value
+ anchors.centerIn:parent
+ color:"#333"
+ }
+ }
+
+ rowDelegate: Rectangle {
+ height: (delegateChooser.currentIndex == 1 && styleData.selected) ? 30 : 20
+ Behavior on height{ NumberAnimation{} }
+
+ color: styleData.selected ? "#448" : (styleData.alternate? "#eee" : "#fff")
+ BorderImage{
+ id: selected
+ anchors.fill: parent
+ source: "images/selectedrow.png"
+ visible: styleData.selected
+ border{left:2; right:2; top:2; bottom:2}
+ SequentialAnimation {
+ running: true; loops: Animation.Infinite
+ NumberAnimation { target:selected; property: "opacity"; to: 1.0; duration: 900}
+ NumberAnimation { target:selected; property: "opacity"; to: 0.5; duration: 900}
+ }
+ }
+ }
+
+ itemDelegate: {
+ if (delegateChooser.currentIndex == 2)
+ return editableDelegate;
+ else
+ return delegate1;
+ }
+ }
+ }
+ }
+ }
+ Row{
+ x: 12
+ height: 34
+ CheckBox{
+ id: alternateCheckbox
+ checked: true
+ text: "Alternate"
+ anchors.verticalCenter: parent.verticalCenter
+ }
+ CheckBox{
+ id: sortableCheckbox
+ checked: false
+ text: "Sort indicator"
+ anchors.verticalCenter: parent.verticalCenter
+ }
+ CheckBox{
+ id: frameCheckbox
+ checked: true
+ text: "Frame"
+ anchors.verticalCenter: parent.verticalCenter
+ }
+ CheckBox{
+ id: headerCheckbox
+ checked: true
+ text: "Headers"
+ anchors.verticalCenter: parent.verticalCenter
+ }
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/tableview.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/tableview.go
new file mode 100644
index 000000000..a16b6b1ab
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/tableview/tableview.go
@@ -0,0 +1,29 @@
+package main
+
+import (
+ "fmt"
+ "gopkg.in/qml.v1"
+ "os"
+)
+
+func main() {
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ engine := qml.NewEngine()
+
+ controls, err := engine.LoadFile("main.qml")
+ if err != nil {
+ return err
+ }
+
+ window := controls.CreateWindow(nil)
+
+ window.Show()
+ window.Wait()
+ return nil
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/AndroidDelegate.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/AndroidDelegate.qml
new file mode 100644
index 000000000..21ee8e680
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/AndroidDelegate.qml
@@ -0,0 +1,92 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+
+Item {
+ id: root
+ width: parent.width
+ height: 88
+
+ property alias text: textitem.text
+ signal clicked
+
+ Rectangle {
+ anchors.fill: parent
+ color: "#11ffffff"
+ visible: mouse.pressed
+ }
+
+ Text {
+ id: textitem
+ color: "white"
+ font.pixelSize: 32
+ text: modelData
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.left: parent.left
+ anchors.leftMargin: 30
+ }
+
+ Rectangle {
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.margins: 15
+ height: 1
+ color: "#424246"
+ }
+
+ Image {
+ anchors.right: parent.right
+ anchors.rightMargin: 20
+ anchors.verticalCenter: parent.verticalCenter
+ source: "../images/navigation_next_item.png"
+ }
+
+ MouseArea {
+ id: mouse
+ anchors.fill: parent
+ onClicked: root.clicked()
+
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/ButtonPage.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/ButtonPage.qml
new file mode 100644
index 000000000..6058671c5
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/ButtonPage.qml
@@ -0,0 +1,176 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+import QtQuick.Controls.Styles 1.1
+
+Item {
+ width: parent.width
+ height: parent.height
+
+ property real progress: 0
+ SequentialAnimation on progress {
+ loops: Animation.Infinite
+ running: true
+ NumberAnimation {
+ from: 0
+ to: 1
+ duration: 3000
+ }
+ NumberAnimation {
+ from: 1
+ to: 0
+ duration: 3000
+ }
+ }
+
+ Column {
+ spacing: 40
+ anchors.centerIn: parent
+
+ Button {
+ text: "Press me"
+ style: touchStyle
+ }
+
+ Button {
+ style: touchStyle
+ text: "Press me too"
+ }
+
+ Button {
+ anchors.margins: 20
+ style: touchStyle
+ text: "Don't press me"
+ onClicked: if (stackView) stackView.pop()
+ }
+
+ Row {
+ spacing: 20
+ Switch {
+ style: switchStyle
+ }
+ Switch {
+ style: switchStyle
+ }
+ }
+
+ }
+
+ Component {
+ id: touchStyle
+ ButtonStyle {
+ panel: Item {
+ implicitHeight: 50
+ implicitWidth: 320
+ BorderImage {
+ anchors.fill: parent
+ antialiasing: true
+ border.bottom: 8
+ border.top: 8
+ border.left: 8
+ border.right: 8
+ anchors.margins: control.pressed ? -4 : 0
+ source: control.pressed ? "../images/button_pressed.png" : "../images/button_default.png"
+ Text {
+ text: control.text
+ anchors.centerIn: parent
+ color: "white"
+ font.pixelSize: 23
+ renderType: Text.NativeRendering
+ }
+ }
+ }
+ }
+ }
+
+ Component {
+ id: switchStyle
+ SwitchStyle {
+
+ groove: Rectangle {
+ implicitHeight: 50
+ implicitWidth: 1.1
+ Rectangle {
+ anchors.top: parent.top
+ anchors.left: parent.left
+ anchors.bottom: parent.bottom
+ width: parent.width/2 - 2
+ height: 20
+ anchors.margins: 2
+ color: control.checked ? "#468bb7" : "#222"
+ Behavior on color {ColorAnimation {}}
+ Text {
+ font.pixelSize: 23
+ color: "white"
+ anchors.centerIn: parent
+ text: "ON"
+ }
+ }
+ Item {
+ width: parent.width/2
+ height: parent.height
+ anchors.right: parent.right
+ Text {
+ font.pixelSize: 23
+ color: "white"
+ anchors.centerIn: parent
+ text: "OFF"
+ }
+ }
+ color: "#222"
+ border.color: "#444"
+ border.width: 2
+ }
+ handle: Rectangle {
+ width: parent.parent.width/2
+ height: control.height
+ color: "#444"
+ border.color: "#555"
+ border.width: 2
+ }
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/ListPage.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/ListPage.qml
new file mode 100644
index 000000000..65dc99f51
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/ListPage.qml
@@ -0,0 +1,82 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+import QtQuick.Controls.Styles 1.1
+
+ScrollView {
+ width: parent.width
+ height: parent.height
+
+ flickableItem.interactive: true
+
+ ListView {
+ anchors.fill: parent
+ model: 100
+ delegate: AndroidDelegate {
+ text: "Item #" + modelData
+ }
+ }
+
+ style: ScrollViewStyle {
+ transientScrollBars: true
+ handle: Item {
+ implicitWidth: 14
+ implicitHeight: 26
+ Rectangle {
+ color: "#424246"
+ anchors.fill: parent
+ anchors.topMargin: 6
+ anchors.leftMargin: 4
+ anchors.rightMargin: 4
+ anchors.bottomMargin: 6
+ }
+ }
+ scrollBarBackground: Item {
+ implicitWidth: 14
+ implicitHeight: 26
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/ProgressBarPage.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/ProgressBarPage.qml
new file mode 100644
index 000000000..019d72061
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/ProgressBarPage.qml
@@ -0,0 +1,114 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+import QtQuick.Controls.Styles 1.1
+
+Item {
+ width: parent.width
+ height: parent.height
+
+ property real progress: 0
+ SequentialAnimation on progress {
+ loops: Animation.Infinite
+ running: true
+ NumberAnimation {
+ from: 0
+ to: 1
+ duration: 3000
+ }
+ NumberAnimation {
+ from: 1
+ to: 0
+ duration: 3000
+ }
+ }
+
+ Column {
+ spacing: 40
+ anchors.centerIn: parent
+
+ ProgressBar {
+ anchors.margins: 20
+ style: touchStyle
+ width: 400
+ value: progress
+ }
+
+ ProgressBar {
+ anchors.margins: 20
+ style: touchStyle
+ width: 400
+ value: 1 - progress
+ }
+
+ ProgressBar {
+ anchors.margins: 20
+ style: touchStyle
+ value: 1
+ width: 400
+ }
+
+ }
+
+ Component {
+ id: touchStyle
+ ProgressBarStyle {
+ panel: Rectangle {
+ implicitHeight: 15
+ implicitWidth: 400
+ color: "#444"
+ opacity: 0.8
+ Rectangle {
+ antialiasing: true
+ radius: 1
+ color: "#468bb7"
+ height: parent.height
+ width: parent.width * control.value / control.maximumValue
+ }
+ }
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/SliderPage.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/SliderPage.qml
new file mode 100644
index 000000000..95009e4f2
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/SliderPage.qml
@@ -0,0 +1,106 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+import QtQuick.Controls.Styles 1.1
+
+Item {
+ width: parent.width
+ height: parent.height
+
+ Column {
+ spacing: 12
+ anchors.centerIn: parent
+
+ Slider {
+ anchors.margins: 20
+ style: touchStyle
+ value: 0
+ }
+ Slider {
+ anchors.margins: 20
+ style: touchStyle
+ value: 0.5
+ }
+ Slider {
+ anchors.margins: 20
+ style: touchStyle
+ value: 1.0
+ }
+
+ }
+
+ Component {
+ id: touchStyle
+ SliderStyle {
+ handle: Rectangle {
+ width: 30
+ height: 30
+ radius: height
+ antialiasing: true
+ color: Qt.lighter("#468bb7", 1.1)
+ }
+
+ groove: Item {
+ implicitHeight: 50
+ implicitWidth: 400
+ Rectangle {
+ height: 8
+ width: parent.width
+ anchors.verticalCenter: parent.verticalCenter
+ color: "#444"
+ opacity: 0.8
+ Rectangle {
+ antialiasing: true
+ radius: 1
+ color: "#468bb7"
+ height: parent.height
+ width: parent.width * control.value / control.maximumValue
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/TabBarPage.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/TabBarPage.qml
new file mode 100644
index 000000000..c9bebccd3
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/TabBarPage.qml
@@ -0,0 +1,102 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+import QtQuick.Controls.Styles 1.1
+
+Item {
+ width: parent.width
+ height: parent.height
+
+ TabView {
+ anchors.fill: parent
+ style: touchStyle
+ Tab {
+ title: "Buttons"
+ ButtonPage{ visible: true }
+ }
+ Tab {
+ title: "Sliders"
+ SliderPage{ visible: true }
+ }
+ Tab {
+ title: "Progress"
+ ProgressBarPage{ visible: true }
+ }
+ }
+
+ Component {
+ id: touchStyle
+ TabViewStyle {
+ tabsAlignment: Qt.AlignVCenter
+ tabOverlap: 0
+ frame: Item { }
+ tab: Item {
+ implicitWidth: control.width/control.count
+ implicitHeight: 50
+ BorderImage {
+ anchors.fill: parent
+ border.bottom: 8
+ border.top: 8
+ source: styleData.selected ? "../images/tab_selected.png":"../images/tabs_standard.png"
+ Text {
+ anchors.centerIn: parent
+ color: "white"
+ text: styleData.title.toUpperCase()
+ font.pixelSize: 16
+ }
+ Rectangle {
+ visible: index > 0
+ anchors.top: parent.top
+ anchors.bottom: parent.bottom
+ anchors.margins: 10
+ width:1
+ color: "#3a3a3a"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/TextInputPage.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/TextInputPage.qml
new file mode 100644
index 000000000..0eeea03a2
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/content/TextInputPage.qml
@@ -0,0 +1,106 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+
+
+
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+import QtQuick.Controls.Styles 1.1
+
+Item {
+ width: parent.width
+ height: parent.height
+
+ property real progress: 0
+ SequentialAnimation on progress {
+ loops: Animation.Infinite
+ running: true
+ NumberAnimation {
+ from: 0
+ to: 1
+ duration: 3000
+ }
+ NumberAnimation {
+ from: 1
+ to: 0
+ duration: 3000
+ }
+ }
+
+ Column {
+ spacing: 40
+ anchors.centerIn: parent
+
+ TextField {
+ anchors.margins: 20
+ text: "Text input"
+ style: touchStyle
+ }
+
+ TextField {
+ anchors.margins: 20
+ text: "Readonly Text input"
+ style: touchStyle
+ readOnly: true
+ }
+ }
+ Component {
+ id: touchStyle
+
+ TextFieldStyle {
+ textColor: "white"
+ font.pixelSize: 28
+ background: Item {
+ implicitHeight: 50
+ implicitWidth: 320
+ BorderImage {
+ source: "../images/textinput.png"
+ border.left: 8
+ border.right: 8
+ anchors.bottom: parent.bottom
+ anchors.left: parent.left
+ anchors.right: parent.right
+ }
+ }
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/NOTICE.txt b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/NOTICE.txt
new file mode 100644
index 000000000..93a9afc8c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/NOTICE.txt
@@ -0,0 +1,2 @@
+Notice some of these images are derived from Google applications resources. They were provided under the following license:
+You may use the materials in this directory without restriction to develop your apps and to use in your apps.
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/button_default.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/button_default.png
new file mode 100644
index 000000000..6d6cfd9ad
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/button_default.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/button_pressed.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/button_pressed.png
new file mode 100644
index 000000000..ab78b6ea3
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/button_pressed.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/navigation_next_item.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/navigation_next_item.png
new file mode 100644
index 000000000..6665c9d85
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/navigation_next_item.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/navigation_previous_item.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/navigation_previous_item.png
new file mode 100644
index 000000000..f8be01197
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/navigation_previous_item.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/tab_selected.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/tab_selected.png
new file mode 100644
index 000000000..2345f7a8e
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/tab_selected.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/tabs_standard.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/tabs_standard.png
new file mode 100644
index 000000000..7140ab7b7
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/tabs_standard.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/textinput.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/textinput.png
new file mode 100644
index 000000000..b0256db2c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/textinput.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/toolbar.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/toolbar.png
new file mode 100644
index 000000000..e9eba4c74
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/images/toolbar.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/main.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/main.qml
new file mode 100644
index 000000000..c794f7dcc
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/main.qml
@@ -0,0 +1,147 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
+** of its contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+import QtQuick 2.2
+import QtQuick.Controls 1.1
+import "content"
+
+ApplicationWindow {
+ visible: true
+ width: 800
+ height: 1280
+
+ Rectangle {
+ color: "#212126"
+ anchors.fill: parent
+ }
+
+ toolBar: BorderImage {
+ border.bottom: 8
+ source: "images/toolbar.png"
+ width: parent.width
+ height: 100
+
+ Rectangle {
+ id: backButton
+ width: opacity ? 60 : 0
+ anchors.left: parent.left
+ anchors.leftMargin: 20
+ opacity: stackView.depth > 1 ? 1 : 0
+ anchors.verticalCenter: parent.verticalCenter
+ antialiasing: true
+ height: 60
+ radius: 4
+ color: backmouse.pressed ? "#222" : "transparent"
+ Behavior on opacity { NumberAnimation{} }
+ Image {
+ anchors.verticalCenter: parent.verticalCenter
+ source: "images/navigation_previous_item.png"
+ }
+ MouseArea {
+ id: backmouse
+ anchors.fill: parent
+ anchors.margins: -10
+ onClicked: stackView.pop()
+ }
+ }
+
+ Text {
+ font.pixelSize: 42
+ Behavior on x { NumberAnimation{ easing.type: Easing.OutCubic} }
+ x: backButton.x + backButton.width + 20
+ anchors.verticalCenter: parent.verticalCenter
+ color: "white"
+ text: "Widget Gallery"
+ }
+ }
+
+ ListModel {
+ id: pageModel
+ ListElement {
+ title: "Buttons"
+ page: "content/ButtonPage.qml"
+ }
+ ListElement {
+ title: "Sliders"
+ page: "content/SliderPage.qml"
+ }
+ ListElement {
+ title: "ProgressBar"
+ page: "content/ProgressBarPage.qml"
+ }
+ ListElement {
+ title: "Tabs"
+ page: "content/TabBarPage.qml"
+ }
+ ListElement {
+ title: "TextInput"
+ page: "content/TextInputPage.qml"
+ }
+ ListElement {
+ title: "List"
+ page: "content/ListPage.qml"
+ }
+ }
+
+ StackView {
+ id: stackView
+ anchors.fill: parent
+ // Implements back key navigation
+ focus: true
+ Keys.onReleased: if (event.key === Qt.Key_Back && stackView.depth > 1) {
+ stackView.pop();
+ event.accepted = true;
+ }
+
+ initialItem: Item {
+ width: parent.width
+ height: parent.height
+ ListView {
+ model: pageModel
+ anchors.fill: parent
+ delegate: AndroidDelegate {
+ text: title
+ onClicked: stackView.push(Qt.resolvedUrl(page))
+ }
+ }
+ }
+ }
+
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/touch.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/touch.go
new file mode 100644
index 000000000..a16b6b1ab
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/controls/touch/touch.go
@@ -0,0 +1,29 @@
+package main
+
+import (
+ "fmt"
+ "gopkg.in/qml.v1"
+ "os"
+)
+
+func main() {
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ engine := qml.NewEngine()
+
+ controls, err := engine.LoadFile("main.qml")
+ if err != nil {
+ return err
+ }
+
+ window := controls.CreateWindow(nil)
+
+ window.Show()
+ window.Wait()
+ return nil
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/customtype/customtype.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/customtype/customtype.go
new file mode 100644
index 000000000..1433d6ed8
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/customtype/customtype.go
@@ -0,0 +1,48 @@
+package main
+
+import (
+ "fmt"
+ "os"
+
+ "gopkg.in/qml.v1"
+)
+
+func main() {
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+type GoType struct {
+ Text string
+}
+
+func (v *GoType) SetText(text string) {
+ fmt.Println("Text changing to:", text)
+ v.Text = text
+}
+
+type GoSingleton struct {
+ Event string
+}
+
+func run() error {
+ qml.RegisterTypes("GoExtensions", 1, 0, []qml.TypeSpec{{
+ Init: func(v *GoType, obj qml.Object) {},
+ }, {
+ Init: func(v *GoSingleton, obj qml.Object) { v.Event = "birthday" },
+
+ Singleton: true,
+ }})
+
+ engine := qml.NewEngine()
+ component, err := engine.LoadFile("customtype.qml")
+ if err != nil {
+ return err
+ }
+
+ value := component.Create(nil)
+ fmt.Println("Text is:", value.Interface().(*GoType).Text)
+ return nil
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/customtype/customtype.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/customtype/customtype.qml
new file mode 100644
index 000000000..54f7aa046
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/customtype/customtype.qml
@@ -0,0 +1,5 @@
+import GoExtensions 1.0
+
+GoType {
+ text: "Happy " + GoSingleton.event + ", Go!"
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.go
new file mode 100644
index 000000000..45f18789f
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.go
@@ -0,0 +1,117 @@
+package main
+
+import (
+ "fmt"
+ "gopkg.in/qml.v1"
+ "gopkg.in/qml.v1/gl/2.0"
+ "os"
+)
+
+var filename = "gopher.qml"
+
+func main() {
+ if len(os.Args) == 2 {
+ filename = os.Args[1]
+ }
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ engine := qml.NewEngine()
+
+ model, err := Read("model/gopher.obj")
+ if err != nil {
+ return err
+ }
+
+ qml.RegisterTypes("GoExtensions", 1, 0, []qml.TypeSpec{{
+ Init: func(g *Gopher, obj qml.Object) {
+ g.Object = obj
+ g.model = model
+ },
+ }})
+
+ component, err := engine.LoadFile(filename)
+ if err != nil {
+ return err
+ }
+
+ win := component.CreateWindow(nil)
+ win.Set("x", 560)
+ win.Set("y", 320)
+ win.Show()
+ win.Wait()
+ return nil
+}
+
+type Gopher struct {
+ qml.Object
+
+ model map[string]*Object
+
+ Rotation int
+}
+
+func (r *Gopher) SetRotation(rotation int) {
+ r.Rotation = rotation
+ r.Call("update")
+}
+
+func (r *Gopher) Paint(p *qml.Painter) {
+ gl := GL.API(p)
+
+ width := float32(r.Int("width"))
+
+ gl.Enable(GL.BLEND)
+ gl.BlendFunc(GL.SRC_ALPHA, GL.ONE_MINUS_SRC_ALPHA)
+
+ gl.ShadeModel(GL.SMOOTH)
+ gl.Enable(GL.DEPTH_TEST)
+ gl.DepthMask(true)
+ gl.Enable(GL.NORMALIZE)
+
+ gl.Clear(GL.DEPTH_BUFFER_BIT)
+
+ gl.Scalef(width/3, width/3, width/3)
+
+ lka := []float32{0.3, 0.3, 0.3, 1.0}
+ lkd := []float32{1.0, 1.0, 1.0, 0.0}
+ lks := []float32{1.0, 1.0, 1.0, 1.0}
+ lpos := []float32{-2, 6, 3, 1.0}
+
+ gl.Enable(GL.LIGHTING)
+ gl.Lightfv(GL.LIGHT0, GL.AMBIENT, lka)
+ gl.Lightfv(GL.LIGHT0, GL.DIFFUSE, lkd)
+ gl.Lightfv(GL.LIGHT0, GL.SPECULAR, lks)
+ gl.Lightfv(GL.LIGHT0, GL.POSITION, lpos)
+ gl.Enable(GL.LIGHT0)
+
+ gl.EnableClientState(GL.NORMAL_ARRAY)
+ gl.EnableClientState(GL.VERTEX_ARRAY)
+
+ gl.Translatef(1.5, 1.5, 0)
+ gl.Rotatef(-90, 0, 0, 1)
+ gl.Rotatef(float32(90+((36000+r.Rotation)%360)), 1, 0, 0)
+
+ gl.Disable(GL.COLOR_MATERIAL)
+
+ for _, obj := range r.model {
+ for _, group := range obj.Groups {
+ gl.Materialfv(GL.FRONT, GL.AMBIENT, group.Material.Ambient)
+ gl.Materialfv(GL.FRONT, GL.DIFFUSE, group.Material.Diffuse)
+ gl.Materialfv(GL.FRONT, GL.SPECULAR, group.Material.Specular)
+ gl.Materialf(GL.FRONT, GL.SHININESS, group.Material.Shininess)
+ gl.VertexPointer(3, GL.FLOAT, 0, group.Vertexes)
+ gl.NormalPointer(GL.FLOAT, 0, group.Normals)
+ gl.DrawArrays(GL.TRIANGLES, 0, len(group.Vertexes)/3)
+ }
+ }
+
+ gl.Enable(GL.COLOR_MATERIAL)
+
+ gl.DisableClientState(GL.NORMAL_ARRAY)
+ gl.DisableClientState(GL.VERTEX_ARRAY)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.qml
new file mode 100644
index 000000000..1f4be6dd4
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/gopher.qml
@@ -0,0 +1,42 @@
+import QtQuick 2.0
+import GoExtensions 1.0
+
+Rectangle {
+ width: 640; height: 400
+ color: "black"
+
+ Gopher {
+ id: gopher
+ width: 300; height: 300
+ anchors.centerIn: parent
+
+ NumberAnimation on rotation {
+ id: anim
+ from: 360; to: 0
+ duration: 5000
+ loops: Animation.Infinite
+ }
+
+ MouseArea {
+ anchors.fill: parent
+
+ property real startX
+ property real startR
+
+ onPressed: {
+ startX = mouse.x
+ startR = gopher.rotation
+ anim.running = false
+ }
+ onReleased: {
+ anim.from = gopher.rotation + 360
+ anim.to = gopher.rotation
+ anim.running = true
+ }
+ onPositionChanged: {
+ gopher.rotation = (36000 + (startR - (mouse.x - startX))) % 360
+ }
+ }
+
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/mix.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/mix.qml
new file mode 100644
index 000000000..0a9541ffe
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/mix.qml
@@ -0,0 +1,68 @@
+import QtQuick 2.0
+import GoExtensions 1.0
+
+Rectangle {
+ id: root
+
+ width: 640
+ height: 220
+ color: "black"
+
+ Rectangle {
+ x: 20; y: 20; width: 100; height: 100
+ color: "red"
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 20; to: 120; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 120; to: 20; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+
+ Rectangle {
+ x: 40; y: 40; width: 100; height: 100
+ color: "yellow"
+ opacity: 0.7
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 40; to: 220; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 220; to: 40; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+
+ Gopher {
+ id: gopher
+
+ x: 60; y: 60; width: 100; height: 100
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 60; to: 320; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 320; to: 60; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+
+ Rectangle {
+ x: 80; y: 80; width: 100; height: 100
+ color: "yellow"
+ opacity: 0.7
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 80; to: 420; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 420; to: 80; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+
+ Rectangle {
+ x: 100; y: 100; width: 100; height: 100
+ color: "red"
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 100; to: 520; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 520; to: 100; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/README.md b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/README.md
new file mode 100644
index 000000000..77af72910
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/README.md
@@ -0,0 +1,10 @@
+
+Author
+------
+
+ * https://github.com/golang-samples/gopher-3d
+
+License
+-------
+
+ * http://creativecommons.org/licenses/by/3.0/deed.en
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/gopher.blend b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/gopher.blend
new file mode 100644
index 000000000..89c92b0da
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/gopher.blend
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/gopher.mtl b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/gopher.mtl
new file mode 100644
index 000000000..532f5dc6c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/gopher.mtl
@@ -0,0 +1,65 @@
+# Blender MTL File: 'gopher.blend'
+# Material Count: 7
+
+newmtl Body
+Ns 96.078431
+Ka 0.000000 0.000000 0.000000
+Kd 0.000000 0.429367 0.640000
+Ks 0.500000 0.500000 0.500000
+Ni 1.000000
+d 1.000000
+illum 2
+
+newmtl Eye-White
+Ns 96.078431
+Ka 0.000000 0.000000 0.000000
+Kd 0.800000 0.800000 0.800000
+Ks 1.000000 1.000000 1.000000
+Ni 1.000000
+d 1.000000
+illum 2
+
+newmtl Material
+Ns 96.078431
+Ka 0.000000 0.000000 0.000000
+Kd 0.640000 0.640000 0.640000
+Ks 0.500000 0.500000 0.500000
+Ni 1.000000
+d 1.000000
+illum 2
+
+newmtl Material.001
+Ns 96.078431
+Ka 0.000000 0.000000 0.000000
+Kd 0.000000 0.000000 0.000000
+Ks 0.000000 0.000000 0.000000
+Ni 1.000000
+d 1.000000
+illum 2
+
+newmtl NoseTop
+Ns 96.078431
+Ka 0.000000 0.000000 0.000000
+Kd 0.000000 0.000000 0.000000
+Ks 0.000000 0.000000 0.000000
+Ni 1.000000
+d 1.000000
+illum 2
+
+newmtl SkinColor
+Ns 96.078431
+Ka 0.000000 0.000000 0.000000
+Kd 0.609017 0.353452 0.144174
+Ks 0.500000 0.500000 0.500000
+Ni 1.000000
+d 1.000000
+illum 2
+
+newmtl Tooth
+Ns 96.078431
+Ka 0.000000 0.000000 0.000000
+Kd 0.640000 0.640000 0.640000
+Ks 0.500000 0.500000 0.500000
+Ni 1.000000
+d 1.000000
+illum 2
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/gopher.obj b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/gopher.obj
new file mode 100644
index 000000000..478a52be5
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/model/gopher.obj
@@ -0,0 +1,31375 @@
+# Blender v2.68 (sub 0) OBJ File: 'gopher.blend'
+# www.blender.org
+mtllib gopher.mtl
+o Tail_Sphere.015
+v 0.836333 -0.874988 0.092526
+v 0.823645 -0.873627 0.085005
+v 0.812676 -0.872312 0.074263
+v 0.803848 -0.871095 0.060713
+v 0.796247 -0.876140 0.053739
+v 0.789379 -0.876140 0.037016
+v 0.785150 -0.876140 0.018871
+v 0.783722 -0.876140 -0.000000
+v 0.785150 -0.876140 -0.018871
+v 0.789379 -0.876140 -0.037016
+v 0.796247 -0.876140 -0.053739
+v 0.805489 -0.876140 -0.068397
+v 0.816750 -0.876140 -0.080426
+v 0.829598 -0.876140 -0.089365
+v 0.843539 -0.876140 -0.094869
+v 0.836872 -0.867136 0.092646
+v 0.824701 -0.858223 0.085240
+v 0.814209 -0.849949 0.074605
+v 0.805800 -0.842633 0.061148
+v 0.797434 -0.842508 0.053739
+v 0.790698 -0.838771 0.037016
+v 0.786551 -0.836469 0.018871
+v 0.785150 -0.835692 -0.000000
+v 0.786551 -0.836469 -0.018871
+v 0.790698 -0.838770 -0.037016
+v 0.797434 -0.842508 -0.053739
+v 0.806498 -0.847539 -0.068397
+v 0.817543 -0.853668 -0.080426
+v 0.830145 -0.860661 -0.089365
+v 0.843818 -0.868249 -0.094869
+v 0.837938 -0.859636 0.092845
+v 0.826792 -0.843511 0.085631
+v 0.817245 -0.828592 0.075171
+v 0.809664 -0.815450 0.061869
+v 0.800950 -0.810169 0.053739
+v 0.794605 -0.802837 0.037016
+v 0.790698 -0.798322 0.018871
+v 0.789379 -0.796797 -0.000000
+v 0.790698 -0.798322 -0.018871
+v 0.794605 -0.802837 -0.037016
+v 0.800950 -0.810169 -0.053739
+v 0.809489 -0.820036 -0.068397
+v 0.819893 -0.832060 -0.080426
+v 0.831763 -0.845777 -0.089365
+v 0.844643 -0.860661 -0.094869
+v 0.839491 -0.852777 0.093115
+v 0.829838 -0.830057 0.086161
+v 0.821667 -0.809059 0.075942
+v 0.815293 -0.790590 0.062850
+v 0.806660 -0.780365 0.053739
+v 0.800950 -0.769721 0.037016
+v 0.797434 -0.763166 0.018871
+v 0.796247 -0.760952 -0.000000
+v 0.797434 -0.763166 -0.018871
+v 0.800950 -0.769721 -0.037016
+v 0.806660 -0.780365 -0.053739
+v 0.814345 -0.794690 -0.068397
+v 0.823708 -0.812145 -0.080426
+v 0.834391 -0.832060 -0.089365
+v 0.845982 -0.853668 -0.094869
+v 0.841471 -0.846823 0.093447
+v 0.833722 -0.818378 0.086812
+v 0.827306 -0.792103 0.076886
+v 0.822469 -0.769009 0.064052
+v 0.814345 -0.754242 0.053739
+v 0.809489 -0.740694 0.037016
+v 0.806498 -0.732351 0.018871
+v 0.805489 -0.729534 -0.000000
+v 0.806498 -0.732351 -0.018871
+v 0.809489 -0.740694 -0.037016
+v 0.814345 -0.754242 -0.053739
+v 0.820880 -0.772474 -0.068397
+v 0.828843 -0.794690 -0.080426
+v 0.837928 -0.820036 -0.089365
+v 0.847785 -0.847539 -0.094869
+v 0.843802 -0.842002 0.093827
+v 0.838294 -0.808922 0.087557
+v 0.833943 -0.778375 0.077968
+v 0.830917 -0.751536 0.065429
+v 0.823708 -0.732803 0.053739
+v 0.819893 -0.716872 0.037016
+v 0.817543 -0.707062 0.018871
+v 0.816750 -0.703750 0.000000
+v 0.817543 -0.707062 -0.018871
+v 0.819893 -0.716872 -0.037016
+v 0.823708 -0.732803 -0.053739
+v 0.828843 -0.754242 -0.068397
+v 0.835099 -0.780365 -0.080426
+v 0.842237 -0.810169 -0.089365
+v 0.849982 -0.842508 -0.094869
+v 0.846394 -0.838500 0.094241
+v 0.843379 -0.802052 0.088369
+v 0.841325 -0.768402 0.079147
+v 0.840312 -0.738843 0.066929
+v 0.834391 -0.716872 0.053739
+v 0.831763 -0.699171 0.037016
+v 0.830145 -0.688271 0.018871
+v 0.829598 -0.684590 0.000000
+v 0.830145 -0.688271 -0.018871
+v 0.831763 -0.699171 -0.037016
+v 0.834391 -0.716872 -0.053739
+v 0.837928 -0.740694 -0.068397
+v 0.842237 -0.769721 -0.080426
+v 0.847154 -0.802837 -0.089365
+v 0.852489 -0.838770 -0.094869
+v 0.849148 -0.836451 0.094672
+v 0.848781 -0.798033 0.089215
+v 0.849168 -0.762567 0.080376
+v 0.850294 -0.731417 0.068493
+v 0.845982 -0.707062 0.053739
+v 0.844643 -0.688271 0.037016
+v 0.843818 -0.676699 0.018871
+v 0.843539 -0.672792 0.000000
+v 0.843818 -0.676699 -0.018871
+v 0.844643 -0.688271 -0.037016
+v 0.845982 -0.707062 -0.053739
+v 0.847785 -0.732351 -0.068397
+v 0.849982 -0.763166 -0.080426
+v 0.852489 -0.798322 -0.089365
+v 0.855209 -0.836469 -0.094869
+v 0.851958 -0.835934 0.095105
+v 0.854293 -0.797019 0.090064
+v 0.857170 -0.761096 0.081608
+v 0.860479 -0.729544 0.070062
+v 0.858037 -0.703750 0.053739
+v 0.858037 -0.684590 0.037016
+v 0.858037 -0.672792 0.018871
+v 0.858037 -0.668808 0.000000
+v 0.858037 -0.672792 -0.018871
+v 0.858037 -0.684590 -0.037016
+v 0.858037 -0.703750 -0.053739
+v 0.858037 -0.729534 -0.068397
+v 0.858037 -0.760952 -0.080426
+v 0.858037 -0.796797 -0.089365
+v 0.858037 -0.835691 -0.094869
+v 0.854716 -0.836969 0.095522
+v 0.859703 -0.799050 0.090883
+v 0.865024 -0.764043 0.082797
+v 0.870475 -0.733295 0.071575
+v 0.870092 -0.707062 0.053739
+v 0.871432 -0.688271 0.037016
+v 0.872257 -0.676699 0.018871
+v 0.872535 -0.672792 0.000000
+v 0.872257 -0.676699 -0.018871
+v 0.871432 -0.688271 -0.037016
+v 0.870092 -0.707062 -0.053739
+v 0.868289 -0.732351 -0.068397
+v 0.866092 -0.763166 -0.080426
+v 0.863585 -0.798322 -0.089365
+v 0.860866 -0.836469 -0.094869
+v 0.857315 -0.839517 0.095908
+v 0.864802 -0.804046 0.091640
+v 0.872427 -0.771297 0.083896
+v 0.879898 -0.742528 0.072974
+v 0.881683 -0.716872 0.053739
+v 0.884311 -0.699171 0.037016
+v 0.885930 -0.688271 0.018871
+v 0.886476 -0.684590 0.000000
+v 0.885930 -0.688271 -0.018871
+v 0.884311 -0.699171 -0.037016
+v 0.881683 -0.716872 -0.053739
+v 0.878147 -0.740694 -0.068397
+v 0.873837 -0.769721 -0.080426
+v 0.868920 -0.802837 -0.089365
+v 0.863585 -0.838770 -0.094869
+v 0.859657 -0.843478 0.096248
+v 0.869396 -0.811817 0.092306
+v 0.879096 -0.782578 0.084863
+v 0.888386 -0.756886 0.074205
+v 0.892366 -0.732803 0.053739
+v 0.896182 -0.716872 0.037016
+v 0.898531 -0.707062 0.018871
+v 0.899324 -0.703750 0.000000
+v 0.898531 -0.707062 -0.018871
+v 0.896182 -0.716872 -0.037016
+v 0.892366 -0.732803 -0.053739
+v 0.887232 -0.754242 -0.068397
+v 0.880975 -0.780365 -0.080426
+v 0.873837 -0.810169 -0.089365
+v 0.866092 -0.842508 -0.094869
+v 0.861651 -0.848701 0.096528
+v 0.873307 -0.822063 0.092857
+v 0.884775 -0.797453 0.085662
+v 0.895613 -0.775818 0.075221
+v 0.901730 -0.754242 0.053739
+v 0.906586 -0.740694 0.037016
+v 0.909576 -0.732351 0.018871
+v 0.910586 -0.729534 -0.000000
+v 0.909576 -0.732351 -0.018871
+v 0.906586 -0.740694 -0.037016
+v 0.901730 -0.754242 -0.053739
+v 0.895195 -0.772474 -0.068397
+v 0.887232 -0.794690 -0.080426
+v 0.878147 -0.820036 -0.089365
+v 0.868289 -0.847539 -0.094869
+v 0.863221 -0.854986 0.096739
+v 0.876386 -0.834390 0.093269
+v 0.889244 -0.815350 0.086261
+v 0.901301 -0.798597 0.075984
+v 0.909414 -0.780365 0.053739
+v 0.915124 -0.769721 0.037016
+v 0.918640 -0.763166 0.018871
+v 0.919828 -0.760953 -0.000000
+v 0.918640 -0.763166 -0.018871
+v 0.915124 -0.769721 -0.037016
+v 0.909414 -0.780365 -0.053739
+v 0.901730 -0.794690 -0.068397
+v 0.892366 -0.812145 -0.080426
+v 0.881683 -0.832060 -0.089365
+v 0.870092 -0.853668 -0.094869
+v 0.864305 -0.862090 0.096871
+v 0.878513 -0.848326 0.093528
+v 0.892332 -0.835581 0.086637
+v 0.905232 -0.824346 0.076463
+v 0.915124 -0.810169 0.053739
+v 0.921469 -0.802837 0.037016
+v 0.925376 -0.798322 0.018871
+v 0.926695 -0.796798 -0.000000
+v 0.925376 -0.798322 -0.018871
+v 0.921469 -0.802837 -0.037016
+v 0.915124 -0.810169 -0.053739
+v 0.906586 -0.820036 -0.068397
+v 0.896182 -0.832060 -0.080426
+v 0.884311 -0.845777 -0.089365
+v 0.871432 -0.860661 -0.094869
+v 0.864863 -0.869741 0.096920
+v 0.879607 -0.863334 0.093624
+v 0.893921 -0.857370 0.086777
+v 0.907254 -0.852077 0.076640
+v 0.918640 -0.842508 0.053739
+v 0.925376 -0.838771 0.037016
+v 0.929524 -0.836469 0.018871
+v 0.930924 -0.835692 -0.000000
+v 0.929524 -0.836469 -0.018871
+v 0.925376 -0.838771 -0.037016
+v 0.918640 -0.842508 -0.053739
+v 0.909576 -0.847539 -0.068397
+v 0.898531 -0.853668 -0.080426
+v 0.885930 -0.860661 -0.089365
+v 0.872257 -0.868249 -0.094869
+v 0.864873 -0.877645 0.096884
+v 0.879627 -0.878838 0.093553
+v 0.893949 -0.879878 0.086673
+v 0.907290 -0.880725 0.076509
+v 0.919828 -0.876140 0.053739
+v 0.926695 -0.876140 0.037016
+v 0.930924 -0.876140 0.018871
+v 0.932352 -0.876140 -0.000000
+v 0.930924 -0.876140 -0.018871
+v 0.926695 -0.876140 -0.037016
+v 0.919828 -0.876140 -0.053739
+v 0.910586 -0.876140 -0.068397
+v 0.899324 -0.876140 -0.080426
+v 0.886476 -0.876140 -0.089365
+v 0.872535 -0.876140 -0.094869
+v 0.864334 -0.885498 0.096764
+v 0.878570 -0.894241 0.093318
+v 0.892416 -0.902240 0.086332
+v 0.905338 -0.909187 0.076074
+v 0.918640 -0.909772 0.053739
+v 0.925376 -0.913510 0.037016
+v 0.929524 -0.915811 0.018871
+v 0.930924 -0.916589 -0.000000
+v 0.929524 -0.915811 -0.018871
+v 0.925376 -0.913510 -0.037016
+v 0.918640 -0.909772 -0.053739
+v 0.909576 -0.904741 -0.068397
+v 0.898531 -0.898612 -0.080426
+v 0.885930 -0.891619 -0.089365
+v 0.872257 -0.884031 -0.094869
+v 0.863268 -0.892998 0.096565
+v 0.876479 -0.908953 0.092927
+v 0.889380 -0.923598 0.085765
+v 0.901474 -0.936370 0.075352
+v 0.915124 -0.942111 0.053739
+v 0.921469 -0.949443 0.037016
+v 0.925376 -0.953958 0.018870
+v 0.926695 -0.955483 -0.000000
+v 0.925376 -0.953958 -0.018871
+v 0.921469 -0.949443 -0.037016
+v 0.915124 -0.942111 -0.053739
+v 0.906586 -0.932244 -0.068397
+v 0.896182 -0.920220 -0.080426
+v 0.884311 -0.906503 -0.089365
+v 0.871432 -0.891619 -0.094869
+v 0.861715 -0.899857 0.096294
+v 0.873433 -0.922407 0.092397
+v 0.884957 -0.943130 0.084994
+v 0.895845 -0.961230 0.074372
+v 0.909414 -0.971915 0.053739
+v 0.915124 -0.982559 0.037016
+v 0.918640 -0.989114 0.018870
+v 0.919828 -0.991328 -0.000000
+v 0.918640 -0.989114 -0.018871
+v 0.915124 -0.982559 -0.037016
+v 0.909414 -0.971915 -0.053739
+v 0.901730 -0.957590 -0.068397
+v 0.892366 -0.940135 -0.080426
+v 0.881683 -0.920220 -0.089365
+v 0.870092 -0.898612 -0.094869
+v 0.859735 -0.905811 0.095962
+v 0.869549 -0.934087 0.091746
+v 0.879319 -0.960086 0.084050
+v 0.888669 -0.982811 0.073170
+v 0.901730 -0.998038 0.053739
+v 0.906586 -1.011586 0.037016
+v 0.909576 -1.019929 0.018870
+v 0.910586 -1.022746 -0.000000
+v 0.909576 -1.019929 -0.018871
+v 0.906586 -1.011586 -0.037016
+v 0.901730 -0.998038 -0.053739
+v 0.895195 -0.979806 -0.068397
+v 0.887232 -0.957590 -0.080426
+v 0.878147 -0.932244 -0.089365
+v 0.868289 -0.904741 -0.094869
+v 0.857405 -0.910632 0.095582
+v 0.864977 -0.943543 0.091001
+v 0.872681 -0.973815 0.082968
+v 0.880221 -1.000284 0.071792
+v 0.892366 -1.019477 0.053739
+v 0.896182 -1.035408 0.037016
+v 0.898531 -1.045218 0.018870
+v 0.899324 -1.048530 -0.000000
+v 0.898531 -1.045218 -0.018871
+v 0.896182 -1.035408 -0.037016
+v 0.892366 -1.019477 -0.053739
+v 0.887232 -0.998038 -0.068397
+v 0.880975 -0.971915 -0.080426
+v 0.873837 -0.942111 -0.089365
+v 0.866092 -0.909772 -0.094869
+v 0.858037 -0.876140 -0.096728
+v 0.854812 -0.914134 0.095169
+v 0.859892 -0.950413 0.090189
+v 0.865299 -0.983788 0.081790
+v 0.870826 -1.012977 0.070293
+v 0.881683 -1.035408 0.053739
+v 0.884311 -1.053109 0.037016
+v 0.885930 -1.064009 0.018870
+v 0.886476 -1.067690 -0.000000
+v 0.885930 -1.064009 -0.018871
+v 0.884311 -1.053109 -0.037016
+v 0.881683 -1.035408 -0.053739
+v 0.878147 -1.011586 -0.068397
+v 0.873837 -0.982559 -0.080426
+v 0.868920 -0.949443 -0.089365
+v 0.863585 -0.913509 -0.094869
+v 0.852058 -0.916182 0.094737
+v 0.854490 -0.954431 0.089343
+v 0.857457 -0.989622 0.080561
+v 0.860844 -1.020403 0.068729
+v 0.870092 -1.045218 0.053739
+v 0.871432 -1.064009 0.037016
+v 0.872257 -1.075581 0.018870
+v 0.872535 -1.079488 -0.000000
+v 0.872257 -1.075581 -0.018871
+v 0.871432 -1.064009 -0.037016
+v 0.870092 -1.045218 -0.053739
+v 0.868289 -1.019929 -0.068397
+v 0.866092 -0.989114 -0.080426
+v 0.863585 -0.953958 -0.089365
+v 0.860866 -0.915811 -0.094869
+v 0.849249 -0.916699 0.094304
+v 0.848979 -0.955445 0.088494
+v 0.849455 -0.991094 0.079328
+v 0.850659 -1.022276 0.067160
+v 0.858037 -1.048530 0.053739
+v 0.858037 -1.067690 0.037016
+v 0.858037 -1.079488 0.018870
+v 0.858037 -1.083472 -0.000000
+v 0.858037 -1.079488 -0.018871
+v 0.858037 -1.067690 -0.037016
+v 0.858037 -1.048530 -0.053739
+v 0.858037 -1.022746 -0.068397
+v 0.858037 -0.991327 -0.080426
+v 0.858037 -0.955482 -0.089365
+v 0.858037 -0.916588 -0.094869
+v 0.846491 -0.915664 0.093887
+v 0.843569 -0.953415 0.087675
+v 0.841601 -0.988146 0.078140
+v 0.840663 -1.018525 0.065647
+v 0.845982 -1.045218 0.053739
+v 0.844643 -1.064009 0.037016
+v 0.843818 -1.075581 0.018870
+v 0.843539 -1.079488 -0.000000
+v 0.843818 -1.075581 -0.018871
+v 0.844643 -1.064009 -0.037016
+v 0.845982 -1.045218 -0.053739
+v 0.847785 -1.019929 -0.068397
+v 0.849982 -0.989114 -0.080426
+v 0.852489 -0.953958 -0.089365
+v 0.855209 -0.915811 -0.094869
+v 0.843891 -0.913117 0.093501
+v 0.838469 -0.948418 0.086918
+v 0.834198 -0.980893 0.077040
+v 0.831240 -1.009292 0.064248
+v 0.834391 -1.035408 0.053739
+v 0.831763 -1.053109 0.037016
+v 0.830145 -1.064009 0.018870
+v 0.829598 -1.067690 -0.000000
+v 0.830145 -1.064009 -0.018871
+v 0.831763 -1.053109 -0.037016
+v 0.834391 -1.035408 -0.053739
+v 0.837928 -1.011586 -0.068397
+v 0.842237 -0.982559 -0.080426
+v 0.847154 -0.949443 -0.089365
+v 0.852489 -0.913509 -0.094869
+v 0.841549 -0.909156 0.093161
+v 0.833875 -0.940648 0.086252
+v 0.827529 -0.969612 0.076073
+v 0.822752 -0.994934 0.063017
+v 0.823708 -1.019477 0.053739
+v 0.819893 -1.035408 0.037016
+v 0.817543 -1.045218 0.018870
+v 0.816750 -1.048530 -0.000000
+v 0.817543 -1.045218 -0.018871
+v 0.819893 -1.035408 -0.037016
+v 0.823708 -1.019477 -0.053739
+v 0.828843 -0.998038 -0.068397
+v 0.835099 -0.971915 -0.080426
+v 0.842237 -0.942111 -0.089365
+v 0.849982 -0.909772 -0.094869
+v 0.839555 -0.903932 0.092881
+v 0.829964 -0.930402 0.085701
+v 0.821850 -0.954737 0.075274
+v 0.815525 -0.976002 0.062000
+v 0.814345 -0.998038 0.053739
+v 0.809489 -1.011586 0.037016
+v 0.806498 -1.019929 0.018870
+v 0.805489 -1.022746 -0.000000
+v 0.806498 -1.019929 -0.018871
+v 0.809489 -1.011586 -0.037016
+v 0.814345 -0.998038 -0.053739
+v 0.820880 -0.979806 -0.068397
+v 0.828843 -0.957590 -0.080426
+v 0.837928 -0.932244 -0.089365
+v 0.847785 -0.904741 -0.094869
+v 0.837986 -0.897648 0.092671
+v 0.826886 -0.918074 0.085289
+v 0.817381 -0.936840 0.074675
+v 0.809837 -0.953223 0.061238
+v 0.806660 -0.971915 0.053739
+v 0.800950 -0.982559 0.037016
+v 0.797434 -0.989114 0.018870
+v 0.796247 -0.991327 -0.000000
+v 0.797434 -0.989114 -0.018871
+v 0.800950 -0.982559 -0.037016
+v 0.806660 -0.971915 -0.053739
+v 0.814345 -0.957590 -0.068397
+v 0.823708 -0.940135 -0.080426
+v 0.834391 -0.920220 -0.089365
+v 0.845982 -0.898612 -0.094869
+v 0.850254 -0.876345 0.096537
+v 0.836901 -0.890543 0.092538
+v 0.824759 -0.904138 0.085030
+v 0.814293 -0.916608 0.074299
+v 0.805907 -0.927474 0.060759
+v 0.800950 -0.942111 0.053739
+v 0.794605 -0.949443 0.037016
+v 0.790698 -0.953958 0.018870
+v 0.789379 -0.955482 -0.000000
+v 0.790698 -0.953958 -0.018871
+v 0.794605 -0.949443 -0.037016
+v 0.800950 -0.942111 -0.053739
+v 0.809489 -0.932244 -0.068397
+v 0.819893 -0.920220 -0.080426
+v 0.831763 -0.906503 -0.089365
+v 0.844643 -0.891619 -0.094869
+v 0.836343 -0.882892 0.092489
+v 0.823664 -0.889130 0.084934
+v 0.812704 -0.894820 0.074160
+v 0.803884 -0.899742 0.060582
+v 0.797434 -0.909772 0.053739
+v 0.790698 -0.913509 0.037016
+v 0.786551 -0.915811 0.018871
+v 0.785150 -0.916588 -0.000000
+v 0.786551 -0.915811 -0.018871
+v 0.790698 -0.913509 -0.037016
+v 0.797434 -0.909772 -0.053739
+v 0.806498 -0.904741 -0.068397
+v 0.817543 -0.898612 -0.080426
+v 0.830145 -0.891619 -0.089365
+v 0.843818 -0.884031 -0.094869
+vn -0.474349 0.000000 -0.880306
+vn -0.655507 0.000000 -0.755150
+vn -0.647633 0.046113 -0.760521
+vn -0.988464 0.000000 -0.151402
+vn -0.999969 0.000000 0.000000
+vn -0.997345 0.072542 0.000000
+vn -0.765252 0.020234 0.643361
+vn -0.773370 0.019623 0.633595
+vn -0.748558 0.065889 0.659749
+vn -0.251717 0.000000 -0.967772
+vn -0.467391 0.032685 -0.883419
+vn -0.952696 0.000000 -0.303873
+vn -0.985443 0.071627 -0.153996
+vn -0.820399 -0.001923 0.571764
+vn -0.889187 0.000000 -0.457533
+vn -0.948637 0.068850 -0.308725
+vn -0.952696 0.000000 0.303873
+vn -0.948637 0.068850 0.308725
+vn -0.792291 0.000000 -0.610096
+vn -0.883602 0.063936 -0.463820
+vn -0.988464 0.000000 0.151402
+vn -0.985443 0.071627 0.154027
+vn -0.610096 0.012482 0.792199
+vn -0.398755 0.004120 0.917020
+vn -0.600971 0.045442 0.797937
+vn -0.785180 0.056490 -0.616627
+vn -0.763176 0.066286 0.642750
+vn -0.623493 0.092318 -0.776330
+vn -0.988678 0.149998 0.000000
+vn -0.726035 0.115757 0.677816
+vn -0.247871 0.016572 -0.968627
+vn -0.446333 0.065004 -0.892483
+vn -0.975585 0.147893 -0.162267
+vn -0.813562 0.056154 0.578722
+vn -0.798059 0.118290 0.590808
+vn -0.935453 0.141453 -0.323862
+vn -0.935453 0.141453 0.323862
+vn -0.865780 0.130345 -0.483108
+vn -0.975585 0.147893 0.162267
+vn -0.393628 0.020753 0.919004
+vn -0.578478 0.077517 0.811975
+vn -0.762963 0.114109 -0.636250
+vn -0.737999 0.112491 0.665304
+vn -0.380627 0.037080 0.923948
+vn -0.541765 0.108127 0.833522
+vn -0.722526 0.174047 -0.669057
+vn -0.971160 0.238380 0.000000
+vn -0.695730 0.158147 0.700644
+vn -0.581256 0.138615 -0.801782
+vn -0.694723 0.165868 0.699850
+vn -0.236000 0.033082 -0.971160
+vn -0.410535 0.096469 -0.906705
+vn -0.955840 0.234291 -0.177343
+vn -0.771081 0.184210 0.609455
+vn -0.909665 0.222144 -0.350932
+vn -0.909665 0.222144 0.350932
+vn -0.832057 0.202002 -0.516556
+vn -0.955840 0.234291 0.177343
+vn -0.863491 0.316263 0.392804
+vn -0.774987 0.281594 -0.565752
+vn -0.919065 0.338603 0.201514
+vn -0.359539 0.052492 0.931639
+vn -0.489944 0.136296 0.860988
+vn -0.658132 0.236946 -0.714621
+vn -0.938078 0.346385 0.000000
+vn -0.632801 0.202429 0.747368
+vn -0.517869 0.184515 -0.835292
+vn -0.647328 0.220069 0.729728
+vn -0.215888 0.049043 -0.975158
+vn -0.359264 0.126194 -0.924650
+vn -0.919065 0.338603 -0.201514
+vn -0.726005 0.259590 0.636799
+vn -0.863491 0.316263 -0.392804
+vn -0.849025 0.471603 -0.238166
+vn -0.649464 0.347636 0.676229
+vn -0.781121 0.429792 -0.452834
+vn -0.781121 0.429792 0.452834
+vn -0.681265 0.370678 -0.631214
+vn -0.849025 0.471572 0.238166
+vn -0.330454 0.066439 0.941465
+vn -0.422285 0.160894 0.892056
+vn -0.561144 0.301920 -0.770653
+vn -0.873379 0.487014 0.000000
+vn -0.544939 0.243538 0.802301
+vn -0.429518 0.228523 -0.873653
+vn -0.575243 0.279366 0.768761
+vn -0.187597 0.063875 -0.980132
+vn -0.291940 0.153142 -0.944060
+vn -0.312937 0.267800 -0.911222
+vn -0.738243 0.674490 0.000000
+vn -0.466842 0.344157 0.814600
+vn -0.151463 0.077120 -0.985443
+vn -0.208625 0.176000 -0.962004
+vn -0.708945 0.643117 -0.289438
+vn -0.518967 0.448225 0.727805
+vn -0.632313 0.564592 -0.530412
+vn -0.632313 0.564592 0.530412
+vn -0.530625 0.466109 -0.707907
+vn -0.708945 0.643117 0.289438
+vn -0.293710 0.078433 0.952666
+vn -0.338694 0.180486 0.923399
+vn -0.421216 0.364910 -0.830287
+vn -0.428510 0.278115 0.859645
+vn -0.231147 0.416120 -0.879421
+vn -0.456832 0.889523 0.000000
+vn -0.282876 0.301004 0.910672
+vn -0.167486 0.297586 -0.939848
+vn -0.304575 0.412214 0.858638
+vn -0.108036 0.088382 -0.990204
+vn -0.110172 0.192907 -0.975005
+vn -0.433058 0.832545 -0.345378
+vn -0.305216 0.546983 0.779473
+vn -0.373699 0.700034 -0.608478
+vn -0.373699 0.700034 0.608478
+vn -0.301431 0.551836 -0.777551
+vn -0.433058 0.832545 0.345378
+vn -0.249733 0.088198 0.964263
+vn -0.239937 0.193182 0.951353
+vn 0.000000 0.589892 -0.807459
+vn 0.000000 0.928312 0.371776
+vn -0.198462 0.095065 0.975463
+vn -0.130131 0.194739 0.972167
+vn 0.000000 0.437483 -0.899197
+vn 0.000000 1.000000 0.000000
+vn -0.116214 0.304025 0.945524
+vn 0.000000 0.309641 -0.950835
+vn -0.079653 0.456710 0.886013
+vn -0.057314 0.097201 -0.993591
+vn 0.000000 0.199774 -0.979827
+vn 0.000000 0.928312 -0.371776
+vn -0.007996 0.604389 0.796625
+vn 0.000000 0.764885 -0.644154
+vn 0.000000 0.764885 0.644154
+vn 0.190344 0.451918 0.871487
+vn 0.301431 0.551836 -0.777551
+vn 0.312357 0.582080 0.750694
+vn 0.231117 0.416120 -0.879421
+vn 0.373699 0.700034 0.608478
+vn -0.141118 0.096316 0.985290
+vn -0.084964 0.089877 0.992309
+vn 0.167486 0.297586 -0.939848
+vn 0.433058 0.832545 0.345378
+vn -0.021851 0.182775 0.982910
+vn 0.110172 0.192907 -0.975005
+vn 0.433058 0.832545 -0.345378
+vn 0.048067 0.283486 0.957762
+vn 0.000000 0.101108 -0.994873
+vn 0.057314 0.097201 -0.993591
+vn 0.373699 0.700034 -0.608478
+vn 0.456832 0.889523 0.000000
+vn 0.708945 0.643117 -0.289438
+vn 0.190039 0.247749 0.949980
+vn 0.108036 0.088382 -0.990204
+vn 0.632313 0.564592 -0.530412
+vn 0.416395 0.396496 0.818140
+vn 0.530625 0.466109 -0.707907
+vn 0.560320 0.496719 0.662770
+vn 0.421216 0.364910 -0.830287
+vn 0.632313 0.564592 0.530412
+vn -0.035615 0.079226 0.996216
+vn 0.312937 0.267800 -0.911222
+vn 0.708945 0.643117 0.289468
+vn 0.074343 0.162053 0.983947
+vn 0.208625 0.176000 -0.962004
+vn 0.429518 0.228492 -0.873653
+vn 0.738243 0.674490 0.000000
+vn 0.849025 0.471603 0.238166
+vn 0.155705 0.136418 0.978332
+vn 0.291940 0.153142 -0.944060
+vn 0.849025 0.471603 -0.238166
+vn 0.304086 0.204810 0.930357
+vn 0.151494 0.077120 -0.985443
+vn 0.781121 0.429792 -0.452834
+vn 0.571764 0.317209 0.756584
+vn 0.681265 0.370678 -0.631214
+vn 0.719779 0.392926 0.572283
+vn 0.561144 0.301920 -0.770653
+vn 0.781121 0.429792 0.452834
+vn 0.006561 0.066561 0.997742
+vn 0.658132 0.236946 -0.714621
+vn 0.863491 0.316263 0.392804
+vn 0.041444 0.052217 0.997772
+vn 0.517869 0.184515 -0.835292
+vn 0.873379 0.487014 0.000000
+vn 0.919065 0.338603 0.201514
+vn 0.221351 0.107547 0.969237
+vn 0.359264 0.126194 -0.924650
+vn 0.919065 0.338603 -0.201514
+vn 0.390820 0.158757 0.906644
+vn 0.187597 0.063906 -0.980163
+vn 0.863491 0.316263 -0.392804
+vn 0.668630 0.236610 0.704886
+vn 0.774987 0.281594 -0.565752
+vn 0.812281 0.294595 0.503342
+vn 0.725761 0.162084 0.668538
+vn 0.832057 0.202002 -0.516556
+vn 0.863643 0.208136 0.459059
+vn 0.722526 0.174047 -0.669057
+vn 0.909665 0.222144 0.350902
+vn 0.068514 0.036592 0.996979
+vn 0.581256 0.138615 -0.801782
+vn 0.938078 0.346385 0.000000
+vn 0.955840 0.234291 0.177343
+vn 0.271065 0.076571 0.959471
+vn 0.410535 0.096469 -0.906705
+vn 0.955840 0.234291 -0.177343
+vn 0.453108 0.111942 0.884365
+vn 0.215888 0.049043 -0.975158
+vn 0.909665 0.222144 -0.350902
+vn 0.971160 0.238380 0.000000
+vn 0.975585 0.147893 -0.162267
+vn 0.494186 0.065462 0.866848
+vn 0.236030 0.033082 -0.971160
+vn 0.935453 0.141453 -0.323862
+vn 0.756218 0.093966 0.647481
+vn 0.865780 0.130345 -0.483108
+vn 0.890439 0.132023 0.435469
+vn 0.762963 0.114109 -0.636250
+vn 0.935453 0.141453 0.323862
+vn 0.087374 0.020142 0.995972
+vn 0.623493 0.092318 -0.776330
+vn 0.975585 0.147893 0.162267
+vn 0.305277 0.044527 0.951201
+vn 0.446333 0.065004 -0.892483
+vn 0.647633 0.046113 -0.760521
+vn 0.988678 0.149998 0.000000
+vn 0.985443 0.071627 0.154027
+vn 0.324534 0.012085 0.945769
+vn 0.467391 0.032685 -0.883419
+vn 0.985443 0.071627 -0.154027
+vn 0.516739 0.019532 0.855892
+vn 0.247871 0.016572 -0.968627
+vn 0.948637 0.068850 -0.308725
+vn 0.767357 0.030549 0.640461
+vn 0.883602 0.063936 -0.463820
+vn 0.901456 0.062929 0.428266
+vn 0.785180 0.056490 -0.616627
+vn 0.948637 0.068850 0.308725
+vn 0.097934 0.003418 0.995178
+vn 0.792291 0.000000 -0.610096
+vn 0.952696 0.000000 0.303873
+vn 0.100528 -0.013092 0.994842
+vn 0.655507 0.000000 -0.755150
+vn 0.997345 0.072542 0.000000
+vn 0.988464 0.000000 0.151402
+vn 0.329356 -0.020356 0.943968
+vn 0.474349 0.000000 -0.880306
+vn 0.988464 0.000000 -0.151402
+vn 0.522233 -0.026002 0.852382
+vn 0.251717 0.000000 -0.967772
+vn 0.952696 0.000000 -0.303873
+vn 0.762444 -0.030000 0.646321
+vn 0.889187 0.000000 -0.457533
+vn 0.900571 -0.002441 0.434675
+vn 0.948637 -0.068850 -0.308725
+vn 0.948637 -0.068850 0.308725
+vn 0.883602 -0.063936 -0.463820
+vn 0.985443 -0.071627 0.154027
+vn 0.319773 -0.052461 0.946013
+vn 0.785180 -0.056490 -0.616627
+vn 1.000000 0.000000 0.000000
+vn 0.997345 -0.072542 0.000000
+vn 0.511002 -0.071200 0.856594
+vn 0.647633 -0.046113 -0.760521
+vn 0.739006 -0.082705 0.668569
+vn 0.467391 -0.032685 -0.883419
+vn 0.985443 -0.071627 -0.154027
+vn 0.696951 -0.147862 0.701682
+vn 0.247841 -0.016572 -0.968627
+vn 0.446333 -0.065004 -0.892483
+vn 0.975585 -0.147893 -0.162267
+vn 0.891446 -0.062014 0.448836
+vn 0.870388 -0.132664 0.474136
+vn 0.935453 -0.141453 -0.323862
+vn 0.935453 -0.141453 0.323862
+vn 0.865780 -0.130345 -0.483108
+vn 0.975585 -0.147893 0.162267
+vn 0.095340 -0.029481 0.994995
+vn 0.295663 -0.083834 0.951567
+vn 0.762963 -0.114109 -0.636250
+vn 0.988678 -0.149998 0.000000
+vn 0.482406 -0.116214 0.868191
+vn 0.623493 -0.092318 -0.776330
+vn 0.971160 -0.238380 0.000000
+vn 0.434706 -0.160985 0.886044
+vn 0.581256 -0.138615 -0.801782
+vn 0.637593 -0.208747 0.741539
+vn 0.236000 -0.033082 -0.971160
+vn 0.410535 -0.096469 -0.906705
+vn 0.955840 -0.234291 -0.177343
+vn 0.832209 -0.203070 0.515915
+vn 0.909665 -0.222144 -0.350932
+vn 0.909665 -0.222144 0.350902
+vn 0.832057 -0.202002 -0.516556
+vn 0.955840 -0.234291 0.177343
+vn 0.082064 -0.045534 0.995575
+vn 0.256508 -0.113987 0.959777
+vn 0.722526 -0.174047 -0.669057
+vn 0.774987 -0.281594 -0.565752
+vn 0.919065 -0.338603 0.201514
+vn 0.060488 -0.060823 0.996307
+vn 0.201636 -0.142125 0.969085
+vn 0.658132 -0.236946 -0.714621
+vn 0.938078 -0.346385 0.000000
+vn 0.364940 -0.204962 0.908170
+vn 0.517869 -0.184515 -0.835292
+vn 0.550890 -0.270608 0.789453
+vn 0.215888 -0.049043 -0.975158
+vn 0.359264 -0.126194 -0.924650
+vn 0.919065 -0.338603 -0.201514
+vn 0.771477 -0.280831 0.570879
+vn 0.863491 -0.316263 -0.392804
+vn 0.863491 -0.316263 0.392804
+vn 0.781121 -0.429792 -0.452834
+vn 0.781121 -0.429792 0.452834
+vn 0.681265 -0.370678 -0.631214
+vn 0.849025 -0.471603 0.238166
+vn 0.030824 -0.074740 0.996704
+vn 0.130833 -0.167150 0.977203
+vn 0.561144 -0.301920 -0.770653
+vn 0.873379 -0.487014 0.000000
+vn 0.269753 -0.246559 0.930784
+vn 0.429518 -0.228492 -0.873653
+vn 0.428663 -0.331248 0.840510
+vn 0.187597 -0.063906 -0.980163
+vn 0.291940 -0.153142 -0.944060
+vn 0.849025 -0.471603 -0.238166
+vn 0.675710 -0.367534 0.638966
+vn 0.263527 -0.384533 0.884671
+vn 0.151494 -0.077120 -0.985443
+vn 0.208655 -0.176000 -0.962004
+vn 0.708945 -0.643117 -0.289468
+vn 0.525498 -0.460768 0.715201
+vn 0.632313 -0.564592 -0.530412
+vn 0.632313 -0.564592 0.530412
+vn 0.530625 -0.466109 -0.707907
+vn 0.708945 -0.643117 0.289438
+vn -0.006500 -0.086886 0.996185
+vn 0.044496 -0.187719 0.981201
+vn 0.421216 -0.364910 -0.830287
+vn 0.738243 -0.674490 0.000000
+vn 0.146733 -0.282876 0.947844
+vn 0.312937 -0.267800 -0.911222
+vn 0.456832 -0.889523 0.000000
+vn -0.003662 -0.308847 0.951079
+vn 0.167486 -0.297586 -0.939848
+vn 0.049257 -0.434462 0.899319
+vn 0.108036 -0.088382 -0.990204
+vn 0.110172 -0.192907 -0.975005
+vn 0.433058 -0.832545 -0.345378
+vn 0.288614 -0.540483 0.790277
+vn 0.373699 -0.700034 -0.608478
+vn 0.373699 -0.700034 0.608478
+vn 0.301431 -0.551836 -0.777551
+vn 0.433058 -0.832545 0.345378
+vn -0.050996 -0.096957 0.993957
+vn -0.056215 -0.201880 0.977783
+vn 0.231117 -0.416120 -0.879421
+vn 0.000000 -0.589892 -0.807459
+vn 0.000000 -0.928312 0.371776
+vn -0.102664 -0.104282 0.989227
+vn -0.166997 -0.205145 0.964354
+vn 0.000000 -0.437483 -0.899197
+vn 0.000000 -1.000000 0.000000
+vn -0.172643 -0.315592 0.933042
+vn 0.000000 -0.309641 -0.950835
+vn -0.174261 -0.448103 0.876797
+vn 0.057314 -0.097232 -0.993591
+vn 0.000000 -0.199774 -0.979827
+vn 0.000000 -0.928312 -0.371776
+vn 0.000000 -0.764885 -0.644154
+vn 0.000000 -0.764885 0.644154
+vn -0.301431 -0.551836 -0.777551
+vn 0.000946 -0.567644 0.823237
+vn -0.288766 -0.529832 0.797388
+vn -0.231147 -0.416120 -0.879421
+vn -0.373699 -0.700034 0.608478
+vn -0.160222 -0.106052 0.981353
+vn -0.216468 -0.100040 0.971129
+vn -0.167516 -0.297586 -0.939848
+vn -0.433058 -0.832545 0.345378
+vn -0.275094 -0.194525 0.941527
+vn -0.110172 -0.192907 -0.975005
+vn -0.433058 -0.832545 -0.345378
+vn -0.336253 -0.297891 0.893399
+vn 0.000000 -0.101108 -0.994873
+vn -0.057283 -0.097201 -0.993591
+vn -0.373699 -0.700034 -0.608478
+vn -0.397290 -0.408582 0.821680
+vn -0.108036 -0.088382 -0.990204
+vn -0.632313 -0.564592 -0.530412
+vn -0.564409 -0.343852 0.750450
+vn -0.530625 -0.466109 -0.707907
+vn -0.507706 -0.447005 0.736442
+vn -0.421216 -0.364910 -0.830287
+vn -0.632313 -0.564592 0.530412
+vn -0.265603 -0.089602 0.959899
+vn -0.312937 -0.267800 -0.911222
+vn -0.456832 -0.889523 0.000000
+vn -0.708945 -0.643117 0.289438
+vn -0.369793 -0.174444 0.912564
+vn -0.208655 -0.176000 -0.962004
+vn -0.708945 -0.643117 -0.289438
+vn -0.474197 -0.263222 0.840114
+vn -0.448561 -0.148778 0.881252
+vn -0.291940 -0.153142 -0.944060
+vn -0.738243 -0.674490 0.000000
+vn -0.849025 -0.471572 -0.238166
+vn -0.581683 -0.219764 0.783135
+vn -0.151463 -0.077120 -0.985443
+vn -0.781121 -0.429792 -0.452834
+vn -0.675222 -0.272042 0.685568
+vn -0.681265 -0.370678 -0.631214
+vn -0.650624 -0.355327 0.671102
+vn -0.561144 -0.301920 -0.770653
+vn -0.781121 -0.429792 0.452834
+vn -0.307321 -0.076937 0.948454
+vn -0.429518 -0.228492 -0.873653
+vn -0.849025 -0.471603 0.238166
+vn -0.863491 -0.316263 0.392804
+vn -0.341594 -0.062441 0.937742
+vn -0.517869 -0.184515 -0.835292
+vn -0.873379 -0.487014 0.000000
+vn -0.919065 -0.338603 0.201514
+vn -0.510971 -0.119327 0.851253
+vn -0.359264 -0.126194 -0.924650
+vn -0.919065 -0.338603 -0.201514
+vn -0.660726 -0.172308 0.730552
+vn -0.187597 -0.063875 -0.980163
+vn -0.863491 -0.316263 -0.392804
+vn -0.740806 -0.201972 0.640614
+vn -0.774987 -0.281594 -0.565752
+vn -0.737144 -0.269326 0.619709
+vn -0.658132 -0.236946 -0.714621
+vn -0.832057 -0.202002 -0.516556
+vn -0.785943 -0.192419 0.587573
+vn -0.722526 -0.174047 -0.669057
+vn -0.909665 -0.222144 0.350932
+vn -0.367992 -0.046541 0.928648
+vn -0.581256 -0.138615 -0.801782
+vn -0.938078 -0.346385 0.000000
+vn -0.955840 -0.234291 0.177343
+vn -0.557390 -0.087497 0.825587
+vn -0.410535 -0.096469 -0.906705
+vn -0.955840 -0.234291 -0.177343
+vn -0.715659 -0.123692 0.687399
+vn -0.215888 -0.049043 -0.975158
+vn -0.909665 -0.222144 -0.350932
+vn -0.772942 -0.137364 0.619373
+vn -0.236000 -0.033082 -0.971160
+vn -0.935453 -0.141453 -0.323862
+vn -0.782128 -0.079409 0.618000
+vn -0.865780 -0.130345 -0.483108
+vn -0.810572 -0.123783 0.572375
+vn -0.762963 -0.114109 -0.636250
+vn -0.935453 -0.141453 0.323862
+vn -0.386242 -0.029756 0.921903
+vn -0.623493 -0.092318 -0.776330
+vn -0.971160 -0.238380 0.000000
+vn -0.975585 -0.147893 0.162267
+vn -0.588763 -0.054415 0.806452
+vn -0.446333 -0.065004 -0.892483
+vn -0.975585 -0.147893 -0.162267
+vn -0.750755 -0.075289 0.656240
+vn -0.606067 -0.020905 0.795099
+vn -0.467391 -0.032685 -0.883419
+vn -0.988678 -0.149998 0.000000
+vn -0.985443 -0.071657 -0.154027
+vn -0.769402 -0.027558 0.638142
+vn -0.247871 -0.016572 -0.968627
+vn -0.948637 -0.068850 -0.308725
+vn -0.777337 -0.027436 0.628437
+vn -0.883602 -0.063936 -0.463820
+vn -0.820246 -0.061220 0.568712
+vn -0.785180 -0.056490 -0.616627
+vn -0.948637 -0.068850 0.308725
+vn -0.396374 -0.012726 0.917997
+vn -0.647633 -0.046113 -0.760521
+vn -0.985443 -0.071657 0.154027
+vn 0.000000 0.000000 -1.000000
+vn -0.151952 -0.004700 0.988372
+vn -0.997345 -0.072542 0.000000
+usemtl SkinColor
+s 1
+f 14//1 13//2 28//3
+f 9//4 8//5 23//6
+f 4//7 3//8 19//9
+f 15//10 14//1 29//11
+f 10//12 9//4 24//13
+f 5//14 4//7 19//9
+f 11//15 10//12 25//16
+f 6//17 5//14 21//18
+f 12//19 11//15 26//20
+f 7//21 6//17 22//22
+f 2//23 1//24 17//25
+f 13//2 12//19 27//26
+f 8//5 7//21 23//6
+f 3//8 2//23 18//27
+f 29//11 28//3 43//28
+f 24//13 23//6 38//29
+f 19//9 18//27 34//30
+f 30//31 29//11 44//32
+f 25//16 24//13 39//33
+f 20//34 19//9 35//35
+f 26//20 25//16 40//36
+f 21//18 20//34 36//37
+f 27//26 26//20 41//38
+f 22//22 21//18 37//39
+f 17//25 16//40 32//41
+f 28//3 27//26 42//42
+f 23//6 22//22 38//29
+f 18//27 17//25 33//43
+f 32//41 31//44 47//45
+f 43//28 42//42 57//46
+f 38//29 37//39 53//47
+f 33//43 32//41 48//48
+f 44//32 43//28 58//49
+f 39//33 38//29 53//47
+f 34//30 33//43 49//50
+f 45//51 44//32 59//52
+f 40//36 39//33 54//53
+f 35//35 34//30 50//54
+f 41//38 40//36 55//55
+f 36//37 35//35 51//56
+f 42//42 41//38 56//57
+f 37//39 36//37 52//58
+f 51//56 50//54 66//59
+f 57//46 56//57 71//60
+f 52//58 51//56 67//61
+f 47//45 46//62 62//63
+f 58//49 57//46 72//64
+f 53//47 52//58 68//65
+f 48//48 47//45 63//66
+f 59//52 58//49 73//67
+f 54//53 53//47 68//65
+f 49//50 48//48 64//68
+f 60//69 59//52 74//70
+f 55//55 54//53 69//71
+f 50//54 49//50 65//72
+f 56//57 55//55 70//73
+f 70//73 69//71 84//74
+f 65//72 64//68 80//75
+f 71//60 70//73 85//76
+f 66//59 65//72 81//77
+f 72//64 71//60 86//78
+f 67//61 66//59 82//79
+f 62//63 61//80 77//81
+f 73//67 72//64 87//82
+f 68//65 67//61 83//83
+f 63//66 62//63 78//84
+f 74//70 73//67 88//85
+f 69//71 68//65 83//83
+f 64//68 63//66 79//86
+f 75//87 74//70 89//88
+f 89//88 88//85 103//89
+f 84//74 83//83 98//90
+f 79//86 78//84 94//91
+f 90//92 89//88 104//93
+f 85//76 84//74 99//94
+f 80//75 79//86 95//95
+f 86//78 85//76 100//96
+f 81//77 80//75 96//97
+f 87//82 86//78 101//98
+f 82//79 81//77 97//99
+f 77//81 76//100 92//101
+f 88//85 87//82 102//102
+f 83//83 82//79 98//90
+f 78//84 77//81 93//103
+f 103//89 102//102 117//104
+f 98//90 97//99 113//105
+f 93//103 92//101 108//106
+f 104//93 103//89 118//107
+f 99//94 98//90 113//105
+f 94//91 93//103 109//108
+f 105//109 104//93 119//110
+f 100//96 99//94 114//111
+f 95//95 94//91 110//112
+f 101//98 100//96 115//113
+f 96//97 95//95 111//114
+f 102//102 101//98 116//115
+f 97//99 96//97 112//116
+f 92//101 91//117 107//118
+f 117//104 116//115 131//119
+f 112//116 111//114 127//120
+f 107//118 106//121 122//122
+f 118//107 117//104 132//123
+f 113//105 112//116 128//124
+f 108//106 107//118 123//125
+f 119//110 118//107 133//126
+f 114//111 113//105 128//124
+f 109//108 108//106 124//127
+f 120//128 119//110 134//129
+f 115//113 114//111 129//130
+f 110//112 109//108 125//131
+f 116//115 115//113 130//132
+f 111//114 110//112 126//133
+f 125//131 124//127 139//134
+f 131//119 130//132 146//135
+f 126//133 125//131 140//136
+f 132//123 131//119 147//137
+f 127//120 126//133 141//138
+f 122//122 121//139 136//140
+f 133//126 132//123 148//141
+f 128//124 127//120 142//142
+f 123//125 122//122 137//143
+f 134//129 133//126 149//144
+f 129//130 128//124 144//145
+f 124//127 123//125 138//146
+f 135//147 134//129 150//148
+f 130//132 129//130 145//149
+f 144//145 143//150 159//151
+f 139//134 138//146 153//152
+f 150//148 149//144 165//153
+f 145//149 144//145 160//154
+f 140//136 139//134 154//155
+f 146//135 145//149 161//156
+f 141//138 140//136 155//157
+f 147//137 146//135 162//158
+f 142//142 141//138 156//159
+f 137//143 136//140 151//160
+f 148//141 147//137 163//161
+f 143//150 142//142 157//162
+f 138//146 137//143 152//163
+f 149//144 148//141 164//164
+f 163//161 162//158 178//165
+f 158//166 157//162 172//167
+f 153//152 152//163 167//168
+f 164//164 163//161 179//169
+f 159//151 158//166 174//170
+f 154//155 153//152 168//171
+f 165//153 164//164 180//172
+f 160//154 159//151 175//173
+f 155//157 154//155 169//174
+f 161//156 160//154 176//175
+f 156//159 155//157 170//176
+f 162//158 161//156 177//177
+f 157//162 156//159 171//178
+f 152//163 151//160 166//179
+f 177//177 176//175 192//180
+f 172//167 171//178 186//181
+f 167//168 166//179 181//182
+f 178//165 177//177 193//183
+f 173//184 172//167 187//185
+f 168//171 167//168 182//186
+f 179//169 178//165 194//187
+f 174//170 173//184 189//188
+f 169//174 168//171 183//189
+f 180//172 179//169 195//190
+f 175//173 174//170 190//191
+f 170//176 169//174 184//192
+f 176//175 175//173 191//193
+f 171//178 170//176 185//194
+f 185//194 184//192 199//195
+f 191//193 190//191 206//196
+f 186//181 185//194 200//197
+f 192//180 191//193 207//198
+f 187//185 186//181 201//199
+f 182//186 181//182 196//200
+f 193//183 192//180 208//201
+f 188//202 187//185 202//203
+f 183//189 182//186 197//204
+f 194//187 193//183 209//205
+f 189//188 188//202 204//206
+f 184//192 183//189 198//207
+f 195//190 194//187 210//208
+f 190//191 189//188 205//209
+f 204//206 203//210 219//211
+f 199//195 198//207 213//212
+f 210//208 209//205 225//213
+f 205//209 204//206 220//214
+f 200//197 199//195 214//215
+f 206//196 205//209 221//216
+f 201//199 200//197 215//217
+f 207//198 206//196 222//218
+f 202//203 201//199 216//219
+f 197//204 196//200 211//220
+f 208//201 207//198 223//221
+f 203//210 202//203 217//222
+f 198//207 197//204 212//223
+f 209//205 208//201 224//224
+f 223//221 222//218 238//225
+f 218//226 217//222 232//227
+f 213//212 212//223 227//228
+f 224//224 223//221 239//229
+f 219//211 218//226 234//230
+f 214//215 213//212 228//231
+f 225//213 224//224 240//232
+f 220//214 219//211 235//233
+f 215//217 214//215 229//234
+f 221//216 220//214 236//235
+f 216//219 215//217 230//236
+f 222//218 221//216 237//237
+f 217//222 216//219 231//238
+f 212//223 211//220 226//239
+f 237//237 236//235 252//240
+f 232//227 231//238 246//241
+f 227//228 226//239 241//242
+f 238//225 237//237 253//243
+f 233//244 232//227 247//245
+f 228//231 227//228 242//246
+f 239//229 238//225 254//247
+f 234//230 233//244 249//248
+f 229//234 228//231 243//249
+f 240//232 239//229 255//250
+f 235//233 234//230 250//251
+f 230//236 229//234 244//252
+f 236//235 235//233 251//253
+f 231//238 230//236 245//254
+f 251//253 250//251 265//255
+f 246//241 245//254 261//256
+f 252//240 251//253 266//257
+f 247//245 246//241 262//258
+f 242//246 241//242 257//259
+f 253//243 252//240 267//260
+f 248//261 247//245 263//262
+f 243//249 242//246 258//263
+f 254//247 253//243 268//264
+f 249//248 248//261 263//262
+f 244//252 243//249 259//265
+f 255//250 254//247 269//266
+f 250//251 249//248 264//267
+f 245//254 244//252 259//265
+f 259//265 258//263 274//268
+f 270//269 269//266 284//270
+f 265//255 264//267 279//271
+f 260//272 259//265 275//273
+f 266//257 265//255 280//274
+f 261//256 260//272 276//275
+f 267//260 266//257 281//276
+f 262//258 261//256 277//277
+f 257//259 256//278 272//279
+f 268//264 267//260 282//280
+f 263//262 262//258 278//281
+f 258//263 257//259 273//282
+f 269//266 268//264 283//283
+f 264//267 263//262 278//281
+f 278//281 277//277 293//284
+f 273//282 272//279 288//285
+f 284//270 283//283 298//286
+f 279//271 278//281 293//284
+f 274//268 273//282 289//287
+f 285//288 284//270 299//289
+f 280//274 279//271 294//290
+f 275//273 274//268 290//291
+f 281//276 280//274 295//292
+f 276//275 275//273 291//293
+f 282//280 281//276 296//294
+f 277//277 276//275 292//295
+f 272//279 271//296 287//297
+f 283//283 282//280 297//298
+f 297//298 296//294 311//299
+f 292//295 291//293 307//300
+f 287//297 286//301 302//302
+f 298//286 297//298 312//303
+f 293//284 292//295 308//304
+f 288//285 287//297 303//305
+f 299//289 298//286 313//306
+f 294//290 293//284 308//304
+f 289//287 288//285 304//307
+f 300//308 299//289 314//309
+f 295//292 294//290 309//310
+f 290//291 289//287 305//311
+f 296//294 295//292 310//312
+f 291//293 290//291 306//313
+f 311//299 310//312 325//314
+f 306//313 305//311 321//315
+f 312//303 311//299 326//316
+f 307//300 306//313 322//317
+f 302//302 301//318 317//319
+f 313//306 312//303 327//320
+f 308//304 307//300 323//321
+f 303//305 302//302 318//322
+f 314//309 313//306 328//323
+f 309//310 308//304 323//321
+f 304//307 303//305 319//324
+f 315//325 314//309 329//326
+f 310//312 309//310 324//327
+f 305//311 304//307 320//328
+f 319//324 318//322 335//329
+f 330//330 329//326 345//331
+f 325//314 324//327 340//332
+f 320//328 319//324 336//333
+f 326//316 325//314 341//334
+f 321//315 320//328 337//335
+f 327//320 326//316 342//336
+f 322//317 321//315 338//337
+f 317//319 316//338 333//339
+f 328//323 327//320 343//340
+f 323//321 322//317 339//341
+f 318//322 317//319 334//342
+f 329//326 328//323 344//343
+f 324//327 323//321 339//341
+f 339//341 338//337 354//344
+f 334//342 333//339 349//345
+f 345//331 344//343 359//346
+f 340//332 339//341 354//344
+f 335//329 334//342 350//347
+f 346//348 345//331 360//349
+f 341//334 340//332 355//350
+f 336//333 335//329 351//351
+f 342//336 341//334 356//352
+f 337//335 336//333 352//353
+f 343//340 342//336 357//354
+f 338//337 337//335 353//355
+f 333//339 332//356 348//357
+f 344//343 343//340 358//358
+f 358//358 357//354 372//359
+f 353//355 352//353 368//360
+f 348//357 347//361 363//362
+f 359//346 358//358 373//363
+f 354//344 353//355 369//364
+f 349//345 348//357 364//365
+f 360//349 359//346 374//366
+f 355//350 354//344 369//364
+f 350//347 349//345 365//367
+f 361//368 360//349 375//369
+f 356//352 355//350 370//370
+f 351//351 350//347 365//367
+f 357//354 356//352 371//371
+f 352//353 351//351 367//372
+f 372//359 371//371 387//373
+f 367//372 366//374 381//375
+f 373//363 372//359 388//376
+f 368//360 367//372 382//377
+f 363//362 362//378 377//379
+f 374//366 373//363 389//380
+f 369//364 368//360 383//381
+f 364//365 363//362 378//382
+f 375//369 374//366 390//383
+f 370//370 369//364 385//384
+f 365//367 364//365 379//385
+f 376//386 375//369 391//387
+f 371//371 370//370 386//388
+f 366//374 365//367 380//389
+f 391//387 390//383 406//390
+f 386//388 385//384 401//391
+f 381//375 380//389 395//392
+f 387//373 386//388 402//393
+f 382//377 381//375 396//394
+f 388//376 387//373 403//395
+f 383//381 382//377 397//396
+f 378//382 377//379 392//397
+f 389//380 388//376 404//398
+f 384//399 383//381 398//400
+f 379//385 378//382 393//401
+f 390//383 389//380 405//402
+f 385//384 384//399 400//403
+f 380//389 379//385 394//404
+f 394//404 393//401 408//405
+f 405//402 404//398 420//406
+f 400//403 399//407 415//408
+f 395//392 394//404 409//409
+f 406//390 405//402 421//410
+f 401//391 400//403 416//411
+f 396//394 395//392 410//412
+f 402//393 401//391 417//413
+f 397//396 396//394 411//414
+f 403//395 402//393 418//415
+f 398//400 397//396 412//416
+f 393//401 392//397 407//417
+f 404//398 403//395 419//418
+f 399//407 398//400 413//419
+f 413//419 412//416 427//420
+f 408//405 407//417 422//421
+f 419//418 418//415 434//422
+f 414//423 413//419 428//424
+f 409//409 408//405 423//425
+f 420//406 419//418 435//426
+f 415//408 414//423 430//427
+f 410//412 409//409 424//428
+f 421//410 420//406 436//429
+f 416//411 415//408 431//430
+f 411//414 410//412 425//431
+f 417//413 416//411 432//432
+f 412//416 411//414 426//433
+f 418//415 417//413 433//434
+f 432//432 431//430 447//435
+f 427//420 426//433 441//436
+f 433//434 432//432 448//437
+f 428//424 427//420 442//438
+f 423//425 422//421 437//439
+f 434//422 433//434 449//440
+f 429//441 428//424 443//442
+f 424//428 423//425 438//443
+f 435//426 434//422 450//444
+f 430//427 429//441 445//445
+f 425//431 424//428 439//446
+f 436//429 435//426 451//447
+f 431//430 430//427 446//448
+f 426//433 425//431 440//449
+f 451//447 450//444 467//450
+f 446//448 445//445 462//451
+f 441//436 440//449 456//452
+f 447//435 446//448 463//453
+f 442//438 441//436 457//454
+f 448//437 447//435 464//455
+f 443//442 442//438 458//456
+f 438//443 437//439 453//457
+f 449//440 448//437 465//458
+f 444//459 443//442 459//460
+f 439//446 438//443 454//461
+f 450//444 449//440 466//462
+f 445//445 444//459 461//463
+f 440//449 439//446 455//464
+f 455//464 454//461 469//465
+f 466//462 465//458 481//466
+f 461//463 460//467 476//468
+f 456//452 455//464 470//469
+f 467//450 466//462 482//470
+f 462//451 461//463 477//471
+f 457//454 456//452 471//472
+f 463//453 462//451 478//473
+f 458//456 457//454 472//474
+f 464//455 463//453 479//475
+f 459//460 458//456 473//476
+f 454//461 453//457 468//477
+f 465//458 464//455 480//478
+f 460//467 459//460 474//479
+f 331//480 15//10 30//31
+f 1//24 452//481 16//40
+f 331//480 30//31 45//51
+f 16//40 452//481 31//44
+f 331//480 45//51 60//69
+f 31//44 452//481 46//62
+f 46//62 452//481 61//80
+f 331//480 60//69 75//87
+f 331//480 75//87 90//92
+f 61//80 452//481 76//100
+f 331//480 90//92 105//109
+f 76//100 452//481 91//117
+f 331//480 105//109 120//128
+f 91//117 452//481 106//121
+f 106//121 452//481 121//139
+f 331//480 120//128 135//147
+f 331//480 135//147 150//148
+f 121//139 452//481 136//140
+f 331//480 150//148 165//153
+f 136//140 452//481 151//160
+f 331//480 165//153 180//172
+f 151//160 452//481 166//179
+f 166//179 452//481 181//182
+f 331//480 180//172 195//190
+f 331//480 195//190 210//208
+f 181//182 452//481 196//200
+f 331//480 210//208 225//213
+f 196//200 452//481 211//220
+f 331//480 225//213 240//232
+f 211//220 452//481 226//239
+f 331//480 240//232 255//250
+f 226//239 452//481 241//242
+f 331//480 255//250 270//269
+f 241//242 452//481 256//278
+f 331//480 270//269 285//288
+f 256//278 452//481 271//296
+f 331//480 285//288 300//308
+f 271//296 452//481 286//301
+f 331//480 300//308 315//325
+f 286//301 452//481 301//318
+f 331//480 315//325 330//330
+f 301//318 452//481 316//338
+f 331//480 330//330 346//348
+f 316//338 452//481 332//356
+f 331//480 346//348 361//368
+f 332//356 452//481 347//361
+f 331//480 361//368 376//386
+f 347//361 452//481 362//378
+f 331//480 376//386 391//387
+f 362//378 452//481 377//379
+f 331//480 391//387 406//390
+f 377//379 452//481 392//397
+f 331//480 406//390 421//410
+f 392//397 452//481 407//417
+f 331//480 421//410 436//429
+f 407//417 452//481 422//421
+f 422//421 452//481 437//439
+f 331//480 436//429 451//447
+f 331//480 451//447 467//450
+f 437//439 452//481 453//457
+f 331//480 467//450 482//470
+f 453//457 452//481 468//477
+f 474//479 473//476 6//17
+f 469//465 468//477 1//24
+f 480//478 479//475 13//2
+f 475//482 474//479 7//21
+f 470//469 469//465 2//23
+f 481//466 480//478 14//1
+f 476//468 475//482 9//4
+f 471//472 470//469 3//8
+f 482//470 481//466 15//10
+f 477//471 476//468 10//12
+f 472//474 471//472 4//7
+f 331//480 482//470 15//10
+f 478//473 477//471 11//15
+f 473//476 472//474 5//14
+f 468//477 452//481 1//24
+f 479//475 478//473 12//19
+f 29//11 14//1 28//3
+f 24//13 9//4 23//6
+f 3//8 18//27 19//9
+f 30//31 15//10 29//11
+f 25//16 10//12 24//13
+f 20//34 5//14 19//9
+f 26//20 11//15 25//16
+f 5//14 20//34 21//18
+f 27//26 12//19 26//20
+f 6//17 21//18 22//22
+f 1//24 16//40 17//25
+f 28//3 13//2 27//26
+f 7//21 22//22 23//6
+f 2//23 17//25 18//27
+f 44//32 29//11 43//28
+f 39//33 24//13 38//29
+f 18//27 33//43 34//30
+f 45//51 30//31 44//32
+f 40//36 25//16 39//33
+f 19//9 34//30 35//35
+f 41//38 26//20 40//36
+f 20//34 35//35 36//37
+f 42//42 27//26 41//38
+f 21//18 36//37 37//39
+f 16//40 31//44 32//41
+f 43//28 28//3 42//42
+f 22//22 37//39 38//29
+f 17//25 32//41 33//43
+f 31//44 46//62 47//45
+f 58//49 43//28 57//46
+f 37//39 52//58 53//47
+f 32//41 47//45 48//48
+f 59//52 44//32 58//49
+f 54//53 39//33 53//47
+f 33//43 48//48 49//50
+f 60//69 45//51 59//52
+f 55//55 40//36 54//53
+f 34//30 49//50 50//54
+f 56//57 41//38 55//55
+f 35//35 50//54 51//56
+f 57//46 42//42 56//57
+f 36//37 51//56 52//58
+f 50//54 65//72 66//59
+f 72//64 57//46 71//60
+f 51//56 66//59 67//61
+f 46//62 61//80 62//63
+f 73//67 58//49 72//64
+f 52//58 67//61 68//65
+f 47//45 62//63 63//66
+f 74//70 59//52 73//67
+f 69//71 54//53 68//65
+f 48//48 63//66 64//68
+f 75//87 60//69 74//70
+f 70//73 55//55 69//71
+f 49//50 64//68 65//72
+f 71//60 56//57 70//73
+f 85//76 70//73 84//74
+f 64//68 79//86 80//75
+f 86//78 71//60 85//76
+f 65//72 80//75 81//77
+f 87//82 72//64 86//78
+f 66//59 81//77 82//79
+f 61//80 76//100 77//81
+f 88//85 73//67 87//82
+f 67//61 82//79 83//83
+f 62//63 77//81 78//84
+f 89//88 74//70 88//85
+f 84//74 69//71 83//83
+f 63//66 78//84 79//86
+f 90//92 75//87 89//88
+f 104//93 89//88 103//89
+f 99//94 84//74 98//90
+f 78//84 93//103 94//91
+f 105//109 90//92 104//93
+f 100//96 85//76 99//94
+f 79//86 94//91 95//95
+f 101//98 86//78 100//96
+f 80//75 95//95 96//97
+f 102//102 87//82 101//98
+f 81//77 96//97 97//99
+f 76//100 91//117 92//101
+f 103//89 88//85 102//102
+f 82//79 97//99 98//90
+f 77//81 92//101 93//103
+f 118//107 103//89 117//104
+f 97//99 112//116 113//105
+f 92//101 107//118 108//106
+f 119//110 104//93 118//107
+f 114//111 99//94 113//105
+f 93//103 108//106 109//108
+f 120//128 105//109 119//110
+f 115//113 100//96 114//111
+f 94//91 109//108 110//112
+f 116//115 101//98 115//113
+f 95//95 110//112 111//114
+f 117//104 102//102 116//115
+f 96//97 111//114 112//116
+f 91//117 106//121 107//118
+f 132//123 117//104 131//119
+f 111//114 126//133 127//120
+f 106//121 121//139 122//122
+f 133//126 118//107 132//123
+f 112//116 127//120 128//124
+f 107//118 122//122 123//125
+f 134//129 119//110 133//126
+f 129//130 114//111 128//124
+f 108//106 123//125 124//127
+f 135//147 120//128 134//129
+f 130//132 115//113 129//130
+f 109//108 124//127 125//131
+f 131//119 116//115 130//132
+f 110//112 125//131 126//133
+f 140//136 125//131 139//134
+f 130//132 145//149 146//135
+f 141//138 126//133 140//136
+f 131//119 146//135 147//137
+f 142//142 127//120 141//138
+f 137//143 122//122 136//140
+f 132//123 147//137 148//141
+f 143//150 128//124 142//142
+f 138//146 123//125 137//143
+f 133//126 148//141 149//144
+f 128//124 143//150 144//145
+f 139//134 124//127 138//146
+f 134//129 149//144 150//148
+f 129//130 144//145 145//149
+f 143//150 158//166 159//151
+f 154//155 139//134 153//152
+f 149//144 164//164 165//153
+f 144//145 159//151 160//154
+f 155//157 140//136 154//155
+f 145//149 160//154 161//156
+f 156//159 141//138 155//157
+f 146//135 161//156 162//158
+f 157//162 142//142 156//159
+f 152//163 137//143 151//160
+f 147//137 162//158 163//161
+f 158//166 143//150 157//162
+f 153//152 138//146 152//163
+f 148//141 163//161 164//164
+f 162//158 177//177 178//165
+f 173//184 158//166 172//167
+f 168//171 153//152 167//168
+f 163//161 178//165 179//169
+f 158//166 173//184 174//170
+f 169//174 154//155 168//171
+f 164//164 179//169 180//172
+f 159//151 174//170 175//173
+f 170//176 155//157 169//174
+f 160//154 175//173 176//175
+f 171//178 156//159 170//176
+f 161//156 176//175 177//177
+f 172//167 157//162 171//178
+f 167//168 152//163 166//179
+f 176//175 191//193 192//180
+f 187//185 172//167 186//181
+f 182//186 167//168 181//182
+f 177//177 192//180 193//183
+f 188//202 173//184 187//185
+f 183//189 168//171 182//186
+f 178//165 193//183 194//187
+f 173//184 188//202 189//188
+f 184//192 169//174 183//189
+f 179//169 194//187 195//190
+f 174//170 189//188 190//191
+f 185//194 170//176 184//192
+f 175//173 190//191 191//193
+f 186//181 171//178 185//194
+f 200//197 185//194 199//195
+f 190//191 205//209 206//196
+f 201//199 186//181 200//197
+f 191//193 206//196 207//198
+f 202//203 187//185 201//199
+f 197//204 182//186 196//200
+f 192//180 207//198 208//201
+f 203//210 188//202 202//203
+f 198//207 183//189 197//204
+f 193//183 208//201 209//205
+f 188//202 203//210 204//206
+f 199//195 184//192 198//207
+f 194//187 209//205 210//208
+f 189//188 204//206 205//209
+f 203//210 218//226 219//211
+f 214//215 199//195 213//212
+f 209//205 224//224 225//213
+f 204//206 219//211 220//214
+f 215//217 200//197 214//215
+f 205//209 220//214 221//216
+f 216//219 201//199 215//217
+f 206//196 221//216 222//218
+f 217//222 202//203 216//219
+f 212//223 197//204 211//220
+f 207//198 222//218 223//221
+f 218//226 203//210 217//222
+f 213//212 198//207 212//223
+f 208//201 223//221 224//224
+f 222//218 237//237 238//225
+f 233//244 218//226 232//227
+f 228//231 213//212 227//228
+f 223//221 238//225 239//229
+f 218//226 233//244 234//230
+f 229//234 214//215 228//231
+f 224//224 239//229 240//232
+f 219//211 234//230 235//233
+f 230//236 215//217 229//234
+f 220//214 235//233 236//235
+f 231//238 216//219 230//236
+f 221//216 236//235 237//237
+f 232//227 217//222 231//238
+f 227//228 212//223 226//239
+f 236//235 251//253 252//240
+f 247//245 232//227 246//241
+f 242//246 227//228 241//242
+f 237//237 252//240 253//243
+f 248//261 233//244 247//245
+f 243//249 228//231 242//246
+f 238//225 253//243 254//247
+f 233//244 248//261 249//248
+f 244//252 229//234 243//249
+f 239//229 254//247 255//250
+f 234//230 249//248 250//251
+f 245//254 230//236 244//252
+f 235//233 250//251 251//253
+f 246//241 231//238 245//254
+f 266//257 251//253 265//255
+f 245//254 260//272 261//256
+f 267//260 252//240 266//257
+f 246//241 261//256 262//258
+f 241//242 256//278 257//259
+f 268//264 253//243 267//260
+f 247//245 262//258 263//262
+f 242//246 257//259 258//263
+f 269//266 254//247 268//264
+f 264//267 249//248 263//262
+f 243//249 258//263 259//265
+f 270//269 255//250 269//266
+f 265//255 250//251 264//267
+f 260//272 245//254 259//265
+f 258//263 273//282 274//268
+f 285//288 270//269 284//270
+f 280//274 265//255 279//271
+f 259//265 274//268 275//273
+f 281//276 266//257 280//274
+f 260//272 275//273 276//275
+f 282//280 267//260 281//276
+f 261//256 276//275 277//277
+f 256//278 271//296 272//279
+f 283//283 268//264 282//280
+f 262//258 277//277 278//281
+f 257//259 272//279 273//282
+f 284//270 269//266 283//283
+f 279//271 264//267 278//281
+f 277//277 292//295 293//284
+f 272//279 287//297 288//285
+f 299//289 284//270 298//286
+f 294//290 279//271 293//284
+f 273//282 288//285 289//287
+f 300//308 285//288 299//289
+f 295//292 280//274 294//290
+f 274//268 289//287 290//291
+f 296//294 281//276 295//292
+f 275//273 290//291 291//293
+f 297//298 282//280 296//294
+f 276//275 291//293 292//295
+f 271//296 286//301 287//297
+f 298//286 283//283 297//298
+f 312//303 297//298 311//299
+f 291//293 306//313 307//300
+f 286//301 301//318 302//302
+f 313//306 298//286 312//303
+f 292//295 307//300 308//304
+f 287//297 302//302 303//305
+f 314//309 299//289 313//306
+f 309//310 294//290 308//304
+f 288//285 303//305 304//307
+f 315//325 300//308 314//309
+f 310//312 295//292 309//310
+f 289//287 304//307 305//311
+f 311//299 296//294 310//312
+f 290//291 305//311 306//313
+f 326//316 311//299 325//314
+f 305//311 320//328 321//315
+f 327//320 312//303 326//316
+f 306//313 321//315 322//317
+f 301//318 316//338 317//319
+f 328//323 313//306 327//320
+f 307//300 322//317 323//321
+f 302//302 317//319 318//322
+f 329//326 314//309 328//323
+f 324//327 309//310 323//321
+f 303//305 318//322 319//324
+f 330//330 315//325 329//326
+f 325//314 310//312 324//327
+f 304//307 319//324 320//328
+f 318//322 334//342 335//329
+f 346//348 330//330 345//331
+f 341//334 325//314 340//332
+f 319//324 335//329 336//333
+f 342//336 326//316 341//334
+f 320//328 336//333 337//335
+f 343//340 327//320 342//336
+f 321//315 337//335 338//337
+f 316//338 332//356 333//339
+f 344//343 328//323 343//340
+f 322//317 338//337 339//341
+f 317//319 333//339 334//342
+f 345//331 329//326 344//343
+f 340//332 324//327 339//341
+f 338//337 353//355 354//344
+f 333//339 348//357 349//345
+f 360//349 345//331 359//346
+f 355//350 340//332 354//344
+f 334//342 349//345 350//347
+f 361//368 346//348 360//349
+f 356//352 341//334 355//350
+f 335//329 350//347 351//351
+f 357//354 342//336 356//352
+f 336//333 351//351 352//353
+f 358//358 343//340 357//354
+f 337//335 352//353 353//355
+f 332//356 347//361 348//357
+f 359//346 344//343 358//358
+f 373//363 358//358 372//359
+f 352//353 367//372 368//360
+f 347//361 362//378 363//362
+f 374//366 359//346 373//363
+f 353//355 368//360 369//364
+f 348//357 363//362 364//365
+f 375//369 360//349 374//366
+f 370//370 355//350 369//364
+f 349//345 364//365 365//367
+f 376//386 361//368 375//369
+f 371//371 356//352 370//370
+f 366//374 351//351 365//367
+f 372//359 357//354 371//371
+f 351//351 366//374 367//372
+f 371//371 386//388 387//373
+f 382//377 367//372 381//375
+f 372//359 387//373 388//376
+f 383//381 368//360 382//377
+f 378//382 363//362 377//379
+f 373//363 388//376 389//380
+f 384//399 369//364 383//381
+f 379//385 364//365 378//382
+f 374//366 389//380 390//383
+f 369//364 384//399 385//384
+f 380//389 365//367 379//385
+f 375//369 390//383 391//387
+f 370//370 385//384 386//388
+f 381//375 366//374 380//389
+f 390//383 405//402 406//390
+f 385//384 400//403 401//391
+f 396//394 381//375 395//392
+f 386//388 401//391 402//393
+f 397//396 382//377 396//394
+f 387//373 402//393 403//395
+f 398//400 383//381 397//396
+f 393//401 378//382 392//397
+f 388//376 403//395 404//398
+f 399//407 384//399 398//400
+f 394//404 379//385 393//401
+f 389//380 404//398 405//402
+f 384//399 399//407 400//403
+f 395//392 380//389 394//404
+f 409//409 394//404 408//405
+f 404//398 419//418 420//406
+f 399//407 414//423 415//408
+f 410//412 395//392 409//409
+f 405//402 420//406 421//410
+f 400//403 415//408 416//411
+f 411//414 396//394 410//412
+f 401//391 416//411 417//413
+f 412//416 397//396 411//414
+f 402//393 417//413 418//415
+f 413//419 398//400 412//416
+f 408//405 393//401 407//417
+f 403//395 418//415 419//418
+f 414//423 399//407 413//419
+f 428//424 413//419 427//420
+f 423//425 408//405 422//421
+f 418//415 433//434 434//422
+f 429//441 414//423 428//424
+f 424//428 409//409 423//425
+f 419//418 434//422 435//426
+f 414//423 429//441 430//427
+f 425//431 410//412 424//428
+f 420//406 435//426 436//429
+f 415//408 430//427 431//430
+f 426//433 411//414 425//431
+f 416//411 431//430 432//432
+f 427//420 412//416 426//433
+f 417//413 432//432 433//434
+f 431//430 446//448 447//435
+f 442//438 427//420 441//436
+f 432//432 447//435 448//437
+f 443//442 428//424 442//438
+f 438//443 423//425 437//439
+f 433//434 448//437 449//440
+f 444//459 429//441 443//442
+f 439//446 424//428 438//443
+f 434//422 449//440 450//444
+f 429//441 444//459 445//445
+f 440//449 425//431 439//446
+f 435//426 450//444 451//447
+f 430//427 445//445 446//448
+f 441//436 426//433 440//449
+f 450//444 466//462 467//450
+f 445//445 461//463 462//451
+f 457//454 441//436 456//452
+f 446//448 462//451 463//453
+f 458//456 442//438 457//454
+f 447//435 463//453 464//455
+f 459//460 443//442 458//456
+f 454//461 438//443 453//457
+f 448//437 464//455 465//458
+f 460//467 444//459 459//460
+f 455//464 439//446 454//461
+f 449//440 465//458 466//462
+f 444//459 460//467 461//463
+f 456//452 440//449 455//464
+f 470//469 455//464 469//465
+f 465//458 480//478 481//466
+f 460//467 475//482 476//468
+f 471//472 456//452 470//469
+f 466//462 481//466 482//470
+f 461//463 476//468 477//471
+f 472//474 457//454 471//472
+f 462//451 477//471 478//473
+f 473//476 458//456 472//474
+f 463//453 478//473 479//475
+f 474//479 459//460 473//476
+f 469//465 454//461 468//477
+f 464//455 479//475 480//478
+f 475//482 460//467 474//479
+f 7//21 474//479 6//17
+f 2//23 469//465 1//24
+f 479//475 12//19 13//2
+f 8//5 475//482 7//21
+f 3//8 470//469 2//23
+f 480//478 13//2 14//1
+f 475//482 8//5 9//4
+f 4//7 471//472 3//8
+f 481//466 14//1 15//10
+f 476//468 9//4 10//12
+f 5//14 472//474 4//7
+f 477//471 10//12 11//15
+f 6//17 473//476 5//14
+f 478//473 11//15 12//19
+o Foot_R.001_Sphere.014
+v 1.075241 0.496383 0.547398
+v 1.072531 0.479456 0.520507
+v 1.071806 0.464152 0.495335
+v 1.073094 0.451061 0.472848
+v 1.076347 0.440684 0.453912
+v 1.081437 0.433421 0.439254
+v 1.088171 0.429551 0.429436
+v 1.096290 0.429222 0.424838
+v 1.105480 0.432448 0.425634
+v 1.115390 0.439104 0.431795
+v 1.125638 0.448934 0.443084
+v 1.135830 0.461562 0.459067
+v 1.145576 0.476500 0.479129
+v 1.154499 0.493176 0.502500
+v 1.162258 0.510949 0.528282
+v 1.075570 0.500339 0.546759
+v 1.073176 0.487215 0.519253
+v 1.072743 0.475417 0.493515
+v 1.074287 0.465397 0.470532
+v 1.077749 0.457542 0.451188
+v 1.082996 0.452153 0.436227
+v 1.089826 0.449436 0.426224
+v 1.097976 0.449498 0.421562
+v 1.107134 0.452334 0.422421
+v 1.116948 0.457836 0.428768
+v 1.127040 0.465793 0.440360
+v 1.137023 0.475899 0.456750
+v 1.146513 0.487765 0.477309
+v 1.155145 0.500935 0.501247
+v 1.162587 0.514904 0.527643
+v 1.076095 0.504836 0.547197
+v 1.074207 0.496036 0.520113
+v 1.074240 0.488223 0.494762
+v 1.076192 0.481697 0.472119
+v 1.079989 0.476708 0.453055
+v 1.085485 0.473449 0.438301
+v 1.092468 0.472044 0.428425
+v 1.100670 0.472548 0.423807
+v 1.109777 0.474941 0.424623
+v 1.119437 0.479132 0.430843
+v 1.129280 0.484959 0.442227
+v 1.138928 0.492198 0.458338
+v 1.148009 0.500571 0.478557
+v 1.156176 0.509757 0.502106
+v 1.163113 0.519401 0.528081
+v 1.076797 0.509701 0.548695
+v 1.075584 0.505580 0.523052
+v 1.076239 0.502079 0.499029
+v 1.078736 0.499332 0.477550
+v 1.082981 0.497444 0.459441
+v 1.088809 0.496490 0.445397
+v 1.095997 0.496504 0.435958
+v 1.104268 0.497488 0.431487
+v 1.113306 0.499402 0.432155
+v 1.122761 0.502173 0.437938
+v 1.132272 0.505695 0.448612
+v 1.141472 0.509833 0.463768
+v 1.150008 0.514427 0.482823
+v 1.157552 0.519301 0.505045
+v 1.163815 0.524267 0.529580
+v 1.077649 0.514748 0.551196
+v 1.077254 0.515480 0.527957
+v 1.078663 0.516451 0.506151
+v 1.081822 0.517625 0.486615
+v 1.086609 0.518955 0.470100
+v 1.092840 0.520391 0.457240
+v 1.100277 0.521878 0.448531
+v 1.108632 0.523358 0.444306
+v 1.117585 0.524775 0.444729
+v 1.126793 0.526074 0.449782
+v 1.135900 0.527206 0.459271
+v 1.144558 0.528126 0.472833
+v 1.152433 0.528800 0.489945
+v 1.159222 0.529201 0.509951
+v 1.164666 0.529314 0.532081
+v 1.078617 0.519783 0.554604
+v 1.079153 0.525356 0.534642
+v 1.081419 0.530789 0.515855
+v 1.085330 0.535873 0.498965
+v 1.090734 0.540413 0.484623
+v 1.097424 0.544234 0.473377
+v 1.105143 0.547189 0.465662
+v 1.113594 0.549165 0.461773
+v 1.122452 0.550086 0.461860
+v 1.131377 0.549917 0.465919
+v 1.140026 0.548664 0.473794
+v 1.148066 0.546374 0.485184
+v 1.155189 0.543137 0.499649
+v 1.161121 0.539077 0.516635
+v 1.165634 0.534349 0.535488
+v 1.079664 0.524612 0.558787
+v 1.081207 0.534828 0.542847
+v 1.084402 0.544541 0.527767
+v 1.089127 0.553375 0.514127
+v 1.095199 0.560993 0.502451
+v 1.102385 0.567102 0.493187
+v 1.110409 0.571466 0.486692
+v 1.118963 0.573917 0.483215
+v 1.127718 0.574363 0.482890
+v 1.136337 0.572785 0.485729
+v 1.144490 0.569244 0.491623
+v 1.151863 0.563877 0.500346
+v 1.158172 0.556889 0.511562
+v 1.163176 0.548549 0.524841
+v 1.166681 0.539178 0.539671
+v 1.080751 0.529050 0.563585
+v 1.083339 0.543533 0.552259
+v 1.087497 0.557178 0.541431
+v 1.093065 0.569459 0.531518
+v 1.099830 0.579906 0.522900
+v 1.107531 0.588116 0.515909
+v 1.115872 0.593774 0.510814
+v 1.124533 0.596663 0.507809
+v 1.133181 0.596672 0.507011
+v 1.141483 0.593799 0.508451
+v 1.149121 0.588157 0.512072
+v 1.155801 0.579960 0.517736
+v 1.161267 0.569526 0.525226
+v 1.165307 0.557253 0.534252
+v 1.167768 0.543615 0.544469
+v 1.081835 0.532925 0.568814
+v 1.085465 0.551135 0.562515
+v 1.090584 0.568214 0.556321
+v 1.096995 0.583506 0.550469
+v 1.104450 0.596423 0.545184
+v 1.112665 0.606469 0.540670
+v 1.121322 0.613258 0.537100
+v 1.130090 0.616529 0.534610
+v 1.138631 0.616155 0.533297
+v 1.146617 0.612152 0.533212
+v 1.153742 0.604674 0.534356
+v 1.159731 0.594007 0.536687
+v 1.164354 0.580562 0.540115
+v 1.167434 0.564855 0.544509
+v 1.168852 0.547491 0.549698
+v 1.082875 0.536090 0.574272
+v 1.087505 0.557343 0.573222
+v 1.093546 0.577226 0.571864
+v 1.100764 0.594976 0.570252
+v 1.108882 0.609911 0.568447
+v 1.117589 0.621456 0.566518
+v 1.126550 0.629168 0.564539
+v 1.135420 0.632750 0.562587
+v 1.143859 0.632065 0.560737
+v 1.151542 0.627139 0.559059
+v 1.158174 0.618162 0.557619
+v 1.163500 0.605478 0.556470
+v 1.167315 0.589574 0.555659
+v 1.169474 0.571063 0.555215
+v 1.169892 0.550655 0.555156
+v 1.083830 0.538422 0.579750
+v 1.089380 0.561917 0.583967
+v 1.096267 0.583868 0.587464
+v 1.104228 0.603429 0.590107
+v 1.112956 0.619851 0.591794
+v 1.122115 0.632500 0.592459
+v 1.131355 0.640892 0.592079
+v 1.140319 0.644704 0.590666
+v 1.148664 0.643789 0.588276
+v 1.156068 0.638183 0.585001
+v 1.162247 0.628101 0.580965
+v 1.166964 0.613930 0.576325
+v 1.170037 0.596216 0.571259
+v 1.171348 0.575638 0.565960
+v 1.170848 0.552987 0.560634
+v 1.084665 0.539832 0.585037
+v 1.091017 0.564683 0.594338
+v 1.098645 0.587883 0.602521
+v 1.107254 0.608540 0.609270
+v 1.116514 0.625860 0.614328
+v 1.126069 0.639178 0.617498
+v 1.135552 0.647981 0.618659
+v 1.144598 0.651932 0.617768
+v 1.152861 0.650878 0.614857
+v 1.160021 0.644861 0.610039
+v 1.165805 0.634111 0.603499
+v 1.169990 0.619041 0.595489
+v 1.172414 0.600231 0.586315
+v 1.172986 0.578404 0.576332
+v 1.171683 0.554397 0.565921
+v 1.085347 0.540266 0.589930
+v 1.092355 0.565534 0.603937
+v 1.100587 0.589118 0.616456
+v 1.109725 0.610112 0.627006
+v 1.119420 0.627709 0.635183
+v 1.129298 0.641232 0.640671
+v 1.138980 0.650162 0.643260
+v 1.148093 0.654155 0.642850
+v 1.156289 0.653059 0.639457
+v 1.163250 0.646915 0.633212
+v 1.168711 0.635959 0.624355
+v 1.172461 0.620613 0.613225
+v 1.174356 0.601466 0.600250
+v 1.174324 0.579255 0.585930
+v 1.172364 0.554831 0.570815
+v 1.085850 0.539706 0.594242
+v 1.093341 0.564437 0.612394
+v 1.102018 0.587526 0.628734
+v 1.111547 0.608085 0.642633
+v 1.121562 0.625325 0.653558
+v 1.131678 0.638583 0.661088
+v 1.141507 0.647350 0.664935
+v 1.150670 0.651289 0.664950
+v 1.158816 0.650247 0.661132
+v 1.165631 0.644267 0.653629
+v 1.170853 0.633576 0.642730
+v 1.174283 0.618586 0.628851
+v 1.175788 0.599874 0.612528
+v 1.175310 0.578158 0.594387
+v 1.172867 0.554272 0.575126
+v 1.086154 0.538176 0.597805
+v 1.093938 0.561435 0.619385
+v 1.102884 0.583167 0.638882
+v 1.112649 0.602537 0.655550
+v 1.122858 0.618801 0.668746
+v 1.133119 0.631334 0.677965
+v 1.143036 0.639655 0.682851
+v 1.152229 0.643442 0.683217
+v 1.160345 0.642552 0.679048
+v 1.167071 0.637018 0.670506
+v 1.172150 0.627052 0.657918
+v 1.175385 0.613038 0.641768
+v 1.176654 0.595515 0.622677
+v 1.175906 0.575155 0.601378
+v 1.173171 0.552741 0.578690
+v 1.086248 0.535732 0.600485
+v 1.094122 0.556642 0.624640
+v 1.103152 0.576209 0.646512
+v 1.112990 0.593681 0.665261
+v 1.123259 0.608388 0.680165
+v 1.133564 0.619763 0.690652
+v 1.143508 0.627371 0.696320
+v 1.152711 0.630918 0.696950
+v 1.160817 0.630268 0.692518
+v 1.167516 0.625447 0.683194
+v 1.172550 0.616639 0.669337
+v 1.175726 0.604182 0.651479
+v 1.176921 0.588557 0.630307
+v 1.176091 0.570362 0.606633
+v 1.173265 0.550298 0.581369
+v 1.086128 0.532470 0.602176
+v 1.093887 0.550243 0.627958
+v 1.102811 0.566919 0.651329
+v 1.112556 0.581857 0.671392
+v 1.122748 0.594485 0.687375
+v 1.132996 0.604315 0.698664
+v 1.142906 0.610971 0.704824
+v 1.152097 0.614197 0.705621
+v 1.160215 0.613869 0.701022
+v 1.166949 0.609998 0.691205
+v 1.172040 0.602735 0.676547
+v 1.175292 0.592359 0.657610
+v 1.176580 0.579267 0.635124
+v 1.175856 0.563963 0.609952
+v 1.173145 0.547036 0.583061
+v 1.085799 0.528515 0.602815
+v 1.093242 0.542484 0.629212
+v 1.101874 0.555654 0.653149
+v 1.111363 0.567521 0.673708
+v 1.121346 0.577626 0.690099
+v 1.131438 0.585583 0.701690
+v 1.141252 0.591085 0.708037
+v 1.150410 0.593922 0.708897
+v 1.158561 0.593983 0.704235
+v 1.165390 0.591266 0.694232
+v 1.170637 0.585877 0.679270
+v 1.174099 0.578022 0.659927
+v 1.175643 0.568003 0.636944
+v 1.175210 0.556204 0.611205
+v 1.172816 0.543080 0.583700
+v 1.085274 0.524018 0.602377
+v 1.092211 0.533663 0.628353
+v 1.100377 0.542848 0.651902
+v 1.109458 0.551222 0.672121
+v 1.119106 0.558461 0.688232
+v 1.128949 0.564287 0.699616
+v 1.138610 0.568478 0.705836
+v 1.147716 0.570871 0.706652
+v 1.155918 0.571375 0.702033
+v 1.162902 0.569971 0.692157
+v 1.168397 0.566711 0.677404
+v 1.172194 0.561723 0.658339
+v 1.174147 0.555196 0.635697
+v 1.174179 0.547383 0.610346
+v 1.172291 0.538583 0.583262
+v 1.084572 0.519152 0.600879
+v 1.090834 0.524119 0.625414
+v 1.098378 0.528993 0.647635
+v 1.106914 0.533587 0.666690
+v 1.116114 0.537724 0.681846
+v 1.125625 0.541246 0.692521
+v 1.135081 0.544017 0.698303
+v 1.144118 0.545932 0.698972
+v 1.152390 0.546915 0.694501
+v 1.159577 0.546929 0.685062
+v 1.165406 0.545975 0.671018
+v 1.169650 0.544088 0.652909
+v 1.172148 0.541341 0.631430
+v 1.172802 0.537839 0.607407
+v 1.171589 0.533718 0.581763
+v 1.083720 0.514105 0.598378
+v 1.089164 0.514219 0.620508
+v 1.095954 0.514620 0.640513
+v 1.103829 0.515293 0.657626
+v 1.112486 0.516214 0.671187
+v 1.121593 0.517345 0.680677
+v 1.130801 0.518644 0.685730
+v 1.139754 0.520061 0.686152
+v 1.148110 0.521541 0.681928
+v 1.155546 0.523028 0.673218
+v 1.161777 0.524464 0.660359
+v 1.166564 0.525795 0.643844
+v 1.169723 0.526968 0.624308
+v 1.171132 0.527939 0.602501
+v 1.170738 0.528671 0.579262
+v 1.082752 0.509071 0.594971
+v 1.087265 0.504343 0.613824
+v 1.093197 0.500282 0.630809
+v 1.100320 0.497045 0.645275
+v 1.108361 0.494756 0.656664
+v 1.117010 0.493502 0.664540
+v 1.125934 0.493333 0.668599
+v 1.134793 0.494254 0.668686
+v 1.143243 0.496230 0.664797
+v 1.150962 0.499185 0.657081
+v 1.157652 0.503006 0.645836
+v 1.163056 0.507546 0.631493
+v 1.166967 0.512630 0.614604
+v 1.169234 0.518063 0.595817
+v 1.169770 0.523636 0.575855
+v 1.168554 0.529135 0.555484
+v 1.081705 0.504242 0.590787
+v 1.085210 0.494870 0.605618
+v 1.090214 0.486531 0.618897
+v 1.096524 0.479543 0.630113
+v 1.103896 0.474175 0.638836
+v 1.112049 0.470634 0.644730
+v 1.120669 0.469056 0.647569
+v 1.129423 0.469502 0.647243
+v 1.137977 0.471954 0.643766
+v 1.146002 0.476318 0.637271
+v 1.153188 0.482426 0.628007
+v 1.159260 0.490044 0.616331
+v 1.163984 0.498879 0.602691
+v 1.167179 0.508591 0.587611
+v 1.168722 0.518807 0.571672
+v 1.080618 0.499804 0.585989
+v 1.083079 0.486166 0.596206
+v 1.087120 0.473894 0.605233
+v 1.092585 0.463459 0.612722
+v 1.099265 0.455263 0.618386
+v 1.106903 0.449620 0.622008
+v 1.115206 0.446748 0.623447
+v 1.123853 0.446756 0.622649
+v 1.132514 0.449645 0.619645
+v 1.140856 0.455303 0.614549
+v 1.148556 0.463513 0.607558
+v 1.155321 0.473960 0.598941
+v 1.160889 0.486242 0.589027
+v 1.165047 0.499886 0.578200
+v 1.167636 0.514370 0.566874
+v 1.079534 0.495929 0.580761
+v 1.080952 0.478564 0.585950
+v 1.084032 0.462857 0.590343
+v 1.088656 0.449412 0.593771
+v 1.094645 0.438745 0.596102
+v 1.101769 0.431267 0.597247
+v 1.109755 0.427264 0.597161
+v 1.118297 0.426891 0.595849
+v 1.127064 0.430161 0.593359
+v 1.135722 0.436950 0.589789
+v 1.143936 0.446996 0.585274
+v 1.151392 0.459913 0.579990
+v 1.157802 0.475205 0.574138
+v 1.162921 0.492284 0.567944
+v 1.166551 0.510494 0.561645
+v 1.078494 0.492764 0.575303
+v 1.078912 0.472356 0.575244
+v 1.081071 0.453845 0.574800
+v 1.084886 0.437942 0.573988
+v 1.090213 0.425258 0.572840
+v 1.096845 0.416280 0.571399
+v 1.104527 0.411354 0.569722
+v 1.112966 0.410669 0.567871
+v 1.121836 0.414252 0.565919
+v 1.130797 0.421963 0.563941
+v 1.139504 0.433508 0.562012
+v 1.147622 0.448443 0.560207
+v 1.154841 0.466193 0.558594
+v 1.160881 0.486077 0.557237
+v 1.165511 0.507330 0.556187
+v 1.077538 0.490432 0.569825
+v 1.077038 0.467781 0.564498
+v 1.078349 0.447204 0.559200
+v 1.081422 0.429489 0.554133
+v 1.086139 0.415318 0.549493
+v 1.092318 0.405236 0.545458
+v 1.099723 0.399630 0.542182
+v 1.108067 0.398715 0.539792
+v 1.117031 0.402527 0.538380
+v 1.126271 0.410919 0.537999
+v 1.135431 0.423569 0.538665
+v 1.144158 0.439990 0.540352
+v 1.152119 0.459552 0.542995
+v 1.159006 0.481502 0.546492
+v 1.164556 0.504997 0.550709
+v 1.076704 0.489022 0.564537
+v 1.075400 0.465016 0.554127
+v 1.075972 0.443188 0.544143
+v 1.078396 0.424378 0.534970
+v 1.082581 0.409308 0.526959
+v 1.088365 0.398558 0.520419
+v 1.095526 0.392541 0.515602
+v 1.103788 0.391487 0.512691
+v 1.112834 0.395438 0.511799
+v 1.122317 0.404242 0.512961
+v 1.131873 0.417559 0.516131
+v 1.141132 0.434879 0.521188
+v 1.149742 0.455536 0.527938
+v 1.157369 0.478736 0.536121
+v 1.163721 0.503587 0.545422
+v 1.076022 0.488588 0.559644
+v 1.074063 0.464165 0.544528
+v 1.074030 0.441953 0.530208
+v 1.075925 0.422806 0.517234
+v 1.079675 0.407460 0.506104
+v 1.085136 0.396504 0.497246
+v 1.092098 0.390360 0.491001
+v 1.100293 0.389264 0.487609
+v 1.109407 0.393258 0.487199
+v 1.119088 0.402188 0.489788
+v 1.128966 0.415711 0.495276
+v 1.138661 0.433307 0.503452
+v 1.147800 0.454301 0.514003
+v 1.156031 0.477885 0.526522
+v 1.163039 0.503154 0.540528
+v 1.075519 0.489147 0.555333
+v 1.073077 0.465262 0.536071
+v 1.072599 0.443545 0.517931
+v 1.074103 0.424833 0.501607
+v 1.077533 0.409843 0.487729
+v 1.082756 0.399153 0.476829
+v 1.089571 0.393172 0.469326
+v 1.097716 0.392131 0.465509
+v 1.106879 0.396069 0.465524
+v 1.116708 0.404836 0.469371
+v 1.126824 0.418094 0.476901
+v 1.136839 0.435334 0.487826
+v 1.146368 0.455893 0.501725
+v 1.155045 0.478982 0.518065
+v 1.162536 0.503713 0.536217
+v 1.079832 0.514284 0.574974
+v 1.075215 0.490678 0.551769
+v 1.072480 0.468264 0.529081
+v 1.071732 0.447905 0.507782
+v 1.073001 0.430381 0.488690
+v 1.076236 0.416367 0.472540
+v 1.081315 0.406402 0.459953
+v 1.088042 0.400867 0.451410
+v 1.096157 0.399977 0.447242
+v 1.105350 0.403765 0.447608
+v 1.115268 0.412085 0.452494
+v 1.125528 0.424618 0.461712
+v 1.135737 0.440882 0.474909
+v 1.145502 0.460253 0.491576
+v 1.154449 0.481985 0.511074
+v 1.162232 0.505244 0.532653
+v 1.075121 0.493121 0.549090
+v 1.072296 0.473057 0.523825
+v 1.071465 0.454863 0.500152
+v 1.072660 0.439237 0.478980
+v 1.075836 0.426781 0.461122
+v 1.080870 0.417973 0.447265
+v 1.087569 0.413151 0.437941
+v 1.095675 0.412501 0.433509
+v 1.104878 0.416048 0.434139
+v 1.114823 0.423656 0.439806
+v 1.125127 0.435031 0.450294
+v 1.135396 0.449738 0.465198
+v 1.145234 0.467211 0.483947
+v 1.154264 0.486778 0.505819
+v 1.162138 0.507687 0.529974
+v 1.070255 0.396948 0.582602
+v 1.067545 0.380021 0.555711
+v 1.066820 0.364717 0.530538
+v 1.068109 0.351625 0.508052
+v 1.071361 0.341249 0.489116
+v 1.076452 0.333986 0.474457
+v 1.083186 0.330116 0.464640
+v 1.091304 0.329787 0.460041
+v 1.100495 0.333013 0.460838
+v 1.110404 0.339669 0.466999
+v 1.120652 0.349499 0.478287
+v 1.130845 0.362126 0.494270
+v 1.140590 0.377065 0.514333
+v 1.149514 0.393741 0.537704
+v 1.157272 0.411514 0.563486
+v 1.070584 0.400904 0.581962
+v 1.068190 0.387780 0.554457
+v 1.067757 0.375982 0.528718
+v 1.069301 0.365962 0.505735
+v 1.072763 0.358107 0.486392
+v 1.078010 0.352718 0.471431
+v 1.084840 0.350001 0.461427
+v 1.092991 0.350062 0.456765
+v 1.102149 0.352899 0.457625
+v 1.111962 0.358401 0.463972
+v 1.122055 0.366358 0.475564
+v 1.132037 0.376463 0.491954
+v 1.141527 0.388330 0.512513
+v 1.150159 0.401500 0.536450
+v 1.157601 0.415469 0.562847
+v 1.071110 0.405401 0.582401
+v 1.069221 0.396601 0.555316
+v 1.069254 0.388788 0.529966
+v 1.071206 0.382261 0.507323
+v 1.075003 0.377273 0.488258
+v 1.080499 0.374013 0.473505
+v 1.087482 0.372609 0.463629
+v 1.095685 0.373113 0.459010
+v 1.104791 0.375506 0.459827
+v 1.114451 0.379697 0.466046
+v 1.124295 0.385523 0.477430
+v 1.133942 0.392762 0.493541
+v 1.143024 0.401136 0.513760
+v 1.151190 0.410321 0.537310
+v 1.158127 0.419966 0.563285
+v 1.071812 0.410266 0.583899
+v 1.070598 0.406145 0.558255
+v 1.071253 0.402643 0.534232
+v 1.073750 0.399896 0.512753
+v 1.077995 0.398009 0.494644
+v 1.083823 0.397055 0.480600
+v 1.091011 0.397069 0.471161
+v 1.099283 0.398053 0.466690
+v 1.108320 0.399967 0.467359
+v 1.117776 0.402738 0.473142
+v 1.127286 0.406260 0.483816
+v 1.136486 0.410397 0.498972
+v 1.145023 0.414991 0.518027
+v 1.152567 0.419865 0.540249
+v 1.158829 0.424832 0.564783
+v 1.072663 0.415313 0.586400
+v 1.072268 0.416045 0.563161
+v 1.073677 0.417016 0.541354
+v 1.076836 0.418190 0.521818
+v 1.081623 0.419520 0.505303
+v 1.087855 0.420956 0.492444
+v 1.095291 0.422443 0.483735
+v 1.103646 0.423923 0.479510
+v 1.112600 0.425340 0.479932
+v 1.121807 0.426639 0.484985
+v 1.130914 0.427771 0.494475
+v 1.139572 0.428691 0.508037
+v 1.147447 0.429364 0.525149
+v 1.154237 0.429766 0.545154
+v 1.159680 0.429879 0.567284
+v 1.073631 0.420348 0.589807
+v 1.074167 0.425921 0.569845
+v 1.076434 0.431354 0.551058
+v 1.080345 0.436438 0.534169
+v 1.085749 0.440978 0.519826
+v 1.092439 0.444799 0.508581
+v 1.100157 0.447754 0.500866
+v 1.108608 0.449730 0.496976
+v 1.117466 0.450651 0.497063
+v 1.126391 0.450482 0.501122
+v 1.135040 0.449228 0.508998
+v 1.143080 0.446939 0.520387
+v 1.150204 0.443702 0.534853
+v 1.156135 0.439642 0.551839
+v 1.160648 0.434914 0.570692
+v 1.074678 0.425177 0.593991
+v 1.076222 0.435393 0.578051
+v 1.079417 0.445106 0.562971
+v 1.084141 0.453940 0.549331
+v 1.090213 0.461558 0.537655
+v 1.097399 0.467667 0.528391
+v 1.105423 0.472030 0.521896
+v 1.113977 0.474482 0.518419
+v 1.122732 0.474928 0.518093
+v 1.131351 0.473350 0.520932
+v 1.139504 0.469809 0.526827
+v 1.146877 0.464442 0.535549
+v 1.153186 0.457454 0.546766
+v 1.158190 0.449114 0.560044
+v 1.161696 0.439742 0.574875
+v 1.075765 0.429614 0.598789
+v 1.078353 0.444098 0.587462
+v 1.082511 0.457742 0.576635
+v 1.088080 0.470024 0.566722
+v 1.094844 0.480471 0.558104
+v 1.102545 0.488681 0.551113
+v 1.110886 0.494339 0.546017
+v 1.119547 0.497228 0.543013
+v 1.128195 0.497236 0.542215
+v 1.136497 0.494364 0.543654
+v 1.144135 0.488721 0.547276
+v 1.150816 0.480525 0.552940
+v 1.156281 0.470090 0.560429
+v 1.160322 0.457818 0.569456
+v 1.162782 0.444180 0.579673
+v 1.076849 0.433490 0.604017
+v 1.080480 0.451700 0.597719
+v 1.085599 0.468779 0.591524
+v 1.092009 0.484071 0.585673
+v 1.099465 0.496988 0.580388
+v 1.107679 0.507034 0.575874
+v 1.116336 0.513823 0.572303
+v 1.125104 0.517093 0.569814
+v 1.133645 0.516720 0.568501
+v 1.141631 0.512717 0.568415
+v 1.148756 0.505239 0.569560
+v 1.154745 0.494572 0.571891
+v 1.159368 0.481127 0.575319
+v 1.162448 0.465420 0.579712
+v 1.163867 0.448055 0.584902
+v 1.077889 0.436655 0.609475
+v 1.082520 0.457908 0.608425
+v 1.088560 0.477791 0.607068
+v 1.095778 0.495541 0.605456
+v 1.103897 0.510476 0.603650
+v 1.112604 0.522021 0.601721
+v 1.121564 0.529733 0.599743
+v 1.130434 0.533315 0.597791
+v 1.138873 0.532630 0.595941
+v 1.146556 0.527704 0.594263
+v 1.153188 0.518726 0.592822
+v 1.158514 0.506042 0.591674
+v 1.162330 0.490139 0.590862
+v 1.164488 0.471628 0.590419
+v 1.164906 0.451220 0.590360
+v 1.078845 0.438987 0.614953
+v 1.084394 0.462482 0.619170
+v 1.091282 0.484433 0.622668
+v 1.099242 0.503994 0.625310
+v 1.107970 0.520415 0.626997
+v 1.117130 0.533065 0.627663
+v 1.126369 0.541457 0.627282
+v 1.135333 0.545269 0.625870
+v 1.143678 0.544354 0.623480
+v 1.151082 0.538748 0.620204
+v 1.157261 0.528666 0.616169
+v 1.161978 0.514495 0.611529
+v 1.165051 0.496781 0.606462
+v 1.166363 0.476203 0.601164
+v 1.165862 0.453552 0.595838
+v 1.079680 0.440397 0.620240
+v 1.086032 0.465248 0.629542
+v 1.093659 0.488448 0.637724
+v 1.102268 0.509105 0.644474
+v 1.111528 0.526425 0.649531
+v 1.121083 0.539742 0.652701
+v 1.130566 0.548546 0.653863
+v 1.139613 0.552497 0.652971
+v 1.147875 0.551443 0.650061
+v 1.155035 0.545426 0.645243
+v 1.160819 0.534676 0.638703
+v 1.165004 0.519606 0.630692
+v 1.167429 0.500796 0.621519
+v 1.168000 0.478969 0.611535
+v 1.166697 0.454962 0.601125
+v 1.080361 0.440831 0.625134
+v 1.087369 0.466099 0.639140
+v 1.095601 0.489683 0.651659
+v 1.104739 0.510677 0.662210
+v 1.114434 0.528274 0.670386
+v 1.124312 0.541797 0.675874
+v 1.133994 0.550726 0.678463
+v 1.143108 0.554720 0.678054
+v 1.151303 0.553624 0.674661
+v 1.158265 0.547480 0.668416
+v 1.163725 0.536524 0.659558
+v 1.167475 0.521178 0.648428
+v 1.169371 0.502031 0.635454
+v 1.169338 0.479819 0.621134
+v 1.167379 0.455396 0.606018
+v 1.080864 0.440271 0.629445
+v 1.088355 0.465002 0.647597
+v 1.097032 0.488091 0.663937
+v 1.106561 0.508650 0.677836
+v 1.116576 0.525890 0.688761
+v 1.126693 0.539148 0.696292
+v 1.136521 0.547915 0.700138
+v 1.145684 0.551853 0.700153
+v 1.153830 0.550812 0.696336
+v 1.160645 0.544831 0.688833
+v 1.165868 0.534141 0.677933
+v 1.169297 0.519151 0.664055
+v 1.170802 0.500439 0.647732
+v 1.170324 0.478722 0.629591
+v 1.167881 0.454837 0.610329
+v 1.081168 0.438741 0.633009
+v 1.088952 0.461999 0.654588
+v 1.097898 0.483732 0.674086
+v 1.107664 0.503102 0.690753
+v 1.117873 0.519366 0.703950
+v 1.128133 0.531899 0.713168
+v 1.138050 0.540220 0.718054
+v 1.147243 0.544007 0.718420
+v 1.155359 0.543117 0.714252
+v 1.162085 0.537583 0.705710
+v 1.167164 0.527617 0.693122
+v 1.170400 0.513603 0.676972
+v 1.171668 0.496080 0.657880
+v 1.170921 0.475720 0.636581
+v 1.168186 0.453306 0.613893
+v 1.081262 0.436297 0.635688
+v 1.089136 0.457207 0.659843
+v 1.098166 0.476773 0.681716
+v 1.108004 0.494246 0.700464
+v 1.118273 0.508953 0.715369
+v 1.128578 0.520328 0.725856
+v 1.138523 0.527936 0.731524
+v 1.147725 0.531483 0.732153
+v 1.155831 0.530833 0.727721
+v 1.162531 0.526012 0.718397
+v 1.167565 0.517203 0.704540
+v 1.170740 0.504747 0.686682
+v 1.171936 0.489121 0.665510
+v 1.171105 0.470927 0.641837
+v 1.168280 0.450863 0.616572
+v 1.081143 0.433035 0.637380
+v 1.088901 0.450808 0.663162
+v 1.097825 0.467484 0.686533
+v 1.107570 0.482422 0.706595
+v 1.117763 0.495050 0.722578
+v 1.128011 0.504880 0.733867
+v 1.137920 0.511536 0.740028
+v 1.147111 0.514762 0.740824
+v 1.155229 0.514433 0.736226
+v 1.161963 0.510563 0.726409
+v 1.167054 0.503300 0.711750
+v 1.170306 0.492923 0.692814
+v 1.171595 0.479832 0.670327
+v 1.170870 0.464528 0.645155
+v 1.168160 0.447601 0.618264
+v 1.080813 0.429080 0.638019
+v 1.088256 0.443049 0.664415
+v 1.096888 0.456219 0.688353
+v 1.106378 0.468085 0.708912
+v 1.116360 0.478191 0.725302
+v 1.126452 0.486148 0.736894
+v 1.136266 0.491650 0.743241
+v 1.145424 0.494486 0.744100
+v 1.153575 0.494548 0.739439
+v 1.160405 0.491831 0.729435
+v 1.165652 0.486442 0.714474
+v 1.169114 0.478587 0.695130
+v 1.170658 0.468567 0.672148
+v 1.170224 0.456769 0.646409
+v 1.167831 0.443645 0.618903
+v 1.080288 0.424583 0.637581
+v 1.087225 0.434228 0.663556
+v 1.095391 0.443413 0.687106
+v 1.104473 0.451786 0.707324
+v 1.114120 0.459026 0.723435
+v 1.123963 0.464852 0.734819
+v 1.133624 0.469043 0.741039
+v 1.142730 0.471436 0.741855
+v 1.150933 0.471940 0.737237
+v 1.157916 0.470535 0.727361
+v 1.163412 0.467276 0.712607
+v 1.167209 0.462288 0.693543
+v 1.169161 0.455761 0.670900
+v 1.169194 0.447948 0.645550
+v 1.167305 0.439148 0.618465
+v 1.079586 0.419717 0.636083
+v 1.085848 0.424684 0.660617
+v 1.093392 0.429557 0.682839
+v 1.101928 0.434151 0.701894
+v 1.111129 0.438289 0.717050
+v 1.120639 0.441811 0.727724
+v 1.130095 0.444582 0.733507
+v 1.139132 0.446496 0.734175
+v 1.147404 0.447480 0.729704
+v 1.154592 0.447494 0.720266
+v 1.160420 0.446540 0.706222
+v 1.164664 0.444653 0.688112
+v 1.167162 0.441905 0.666633
+v 1.167817 0.438404 0.642611
+v 1.166603 0.434283 0.616967
+v 1.078735 0.414670 0.633582
+v 1.084178 0.414783 0.655711
+v 1.090968 0.415185 0.675717
+v 1.098843 0.415858 0.692829
+v 1.107500 0.416778 0.706391
+v 1.116608 0.417910 0.715880
+v 1.125815 0.419209 0.720933
+v 1.134769 0.420626 0.721356
+v 1.143124 0.422106 0.717131
+v 1.150560 0.423593 0.708422
+v 1.156792 0.425029 0.695562
+v 1.161579 0.426359 0.679047
+v 1.164738 0.427533 0.659511
+v 1.166147 0.428504 0.637705
+v 1.165752 0.429236 0.614466
+v 1.077767 0.409635 0.630174
+v 1.082279 0.404907 0.649027
+v 1.088211 0.400847 0.666013
+v 1.095334 0.397610 0.680478
+v 1.103375 0.395321 0.691868
+v 1.112024 0.394067 0.699743
+v 1.120949 0.393898 0.703802
+v 1.129807 0.394819 0.703889
+v 1.138258 0.396795 0.700000
+v 1.145976 0.399750 0.692285
+v 1.152666 0.403571 0.681040
+v 1.158070 0.408111 0.666697
+v 1.161981 0.413195 0.649807
+v 1.164248 0.418628 0.631021
+v 1.164784 0.424201 0.611058
+v 1.163568 0.429700 0.590688
+v 1.076719 0.404806 0.625991
+v 1.080225 0.395435 0.640822
+v 1.085228 0.387095 0.654100
+v 1.091538 0.380107 0.665316
+v 1.098911 0.374740 0.674039
+v 1.107064 0.371199 0.679933
+v 1.115683 0.369621 0.682772
+v 1.124438 0.370067 0.682447
+v 1.132992 0.372519 0.678970
+v 1.141016 0.376882 0.672475
+v 1.148202 0.382991 0.663211
+v 1.154274 0.390609 0.651535
+v 1.158998 0.399443 0.637895
+v 1.162193 0.409156 0.622815
+v 1.163736 0.419372 0.606875
+v 1.075633 0.400369 0.621193
+v 1.078093 0.386731 0.631410
+v 1.082134 0.374459 0.640436
+v 1.087599 0.364024 0.647926
+v 1.094279 0.355828 0.653590
+v 1.101918 0.350185 0.657211
+v 1.110220 0.347313 0.658651
+v 1.118868 0.347321 0.657853
+v 1.127529 0.350210 0.654848
+v 1.135870 0.355868 0.649753
+v 1.143571 0.364078 0.642762
+v 1.150335 0.374525 0.634144
+v 1.155904 0.386807 0.624231
+v 1.160062 0.400451 0.613403
+v 1.162650 0.414935 0.602077
+v 1.074548 0.396493 0.615964
+v 1.075967 0.379129 0.621154
+v 1.079047 0.363422 0.625547
+v 1.083670 0.349977 0.628975
+v 1.089659 0.339310 0.631306
+v 1.096784 0.331832 0.632451
+v 1.104770 0.327829 0.632365
+v 1.113311 0.327456 0.631052
+v 1.122079 0.330726 0.628563
+v 1.130736 0.337515 0.624992
+v 1.138950 0.347561 0.620478
+v 1.146406 0.360478 0.615193
+v 1.152816 0.375770 0.609341
+v 1.157935 0.392849 0.603147
+v 1.161566 0.411059 0.596849
+v 1.073509 0.393329 0.610506
+v 1.073927 0.372921 0.610447
+v 1.076085 0.354410 0.610003
+v 1.079901 0.338507 0.609192
+v 1.085227 0.325823 0.608044
+v 1.091859 0.316845 0.606603
+v 1.099542 0.311919 0.604925
+v 1.107980 0.311234 0.603075
+v 1.116851 0.314816 0.601123
+v 1.125811 0.322528 0.599144
+v 1.134518 0.334073 0.597215
+v 1.142637 0.349008 0.595410
+v 1.149855 0.366758 0.593798
+v 1.155895 0.386641 0.592441
+v 1.160526 0.407894 0.591390
+v 1.072553 0.390997 0.605028
+v 1.072052 0.368346 0.599702
+v 1.073364 0.347768 0.594404
+v 1.076437 0.330054 0.589337
+v 1.081154 0.315883 0.584697
+v 1.087333 0.305801 0.580661
+v 1.094737 0.300195 0.577386
+v 1.103082 0.299280 0.574996
+v 1.112046 0.303092 0.573583
+v 1.121285 0.311484 0.573203
+v 1.130445 0.324134 0.573869
+v 1.139173 0.340555 0.575555
+v 1.147133 0.360116 0.578198
+v 1.154021 0.382067 0.581695
+v 1.159570 0.405562 0.585913
+v 1.071718 0.389587 0.599741
+v 1.070414 0.365580 0.589331
+v 1.070986 0.343753 0.579347
+v 1.073411 0.324943 0.570173
+v 1.077595 0.309873 0.562163
+v 1.083379 0.299123 0.555623
+v 1.090540 0.293106 0.550805
+v 1.098802 0.292052 0.547894
+v 1.107849 0.296003 0.547003
+v 1.117332 0.304807 0.548164
+v 1.126887 0.318124 0.551335
+v 1.136147 0.335444 0.556392
+v 1.144756 0.356101 0.563141
+v 1.152383 0.379301 0.571324
+v 1.158735 0.404152 0.580625
+v 1.071036 0.389153 0.594848
+v 1.069077 0.364730 0.579732
+v 1.069044 0.342518 0.565412
+v 1.070939 0.323371 0.552438
+v 1.074690 0.308025 0.541308
+v 1.080150 0.297069 0.532450
+v 1.087112 0.290925 0.526205
+v 1.095307 0.289829 0.522812
+v 1.104421 0.293823 0.522402
+v 1.114103 0.302752 0.524991
+v 1.123981 0.316275 0.530479
+v 1.133675 0.333872 0.538656
+v 1.142814 0.354866 0.549206
+v 1.151046 0.378450 0.561725
+v 1.158053 0.403718 0.575732
+v 1.070533 0.389712 0.590536
+v 1.068091 0.365826 0.571275
+v 1.067613 0.344110 0.553134
+v 1.069118 0.325398 0.536811
+v 1.072547 0.310408 0.522933
+v 1.077770 0.299718 0.512033
+v 1.084585 0.293737 0.504530
+v 1.092731 0.292696 0.500713
+v 1.101894 0.296634 0.500728
+v 1.111722 0.305401 0.504574
+v 1.121838 0.318659 0.512105
+v 1.131854 0.335899 0.523029
+v 1.141383 0.356458 0.536929
+v 1.150059 0.379547 0.553268
+v 1.157551 0.404278 0.571421
+v 1.074846 0.414849 0.610178
+v 1.070229 0.391243 0.586972
+v 1.067494 0.368829 0.564284
+v 1.066747 0.348469 0.542985
+v 1.068015 0.330946 0.523894
+v 1.071251 0.316932 0.507744
+v 1.076329 0.306967 0.495156
+v 1.083056 0.301432 0.486614
+v 1.091172 0.300542 0.482445
+v 1.100365 0.304330 0.482811
+v 1.110282 0.312650 0.487697
+v 1.120542 0.325183 0.496916
+v 1.130751 0.341447 0.510112
+v 1.140516 0.360817 0.526780
+v 1.149463 0.382550 0.546278
+v 1.157247 0.405808 0.567857
+v 1.070135 0.393686 0.584293
+v 1.067310 0.373622 0.559029
+v 1.066479 0.355428 0.535356
+v 1.067675 0.339802 0.514183
+v 1.070850 0.327346 0.496325
+v 1.075884 0.318537 0.482468
+v 1.082583 0.313716 0.473145
+v 1.090690 0.313066 0.468712
+v 1.099892 0.316613 0.469342
+v 1.109837 0.324221 0.475010
+v 1.120142 0.335596 0.485497
+v 1.130410 0.350303 0.500402
+v 1.140249 0.367776 0.519150
+v 1.149279 0.387342 0.541022
+v 1.157153 0.408252 0.565178
+vn -0.672781 -0.204535 -0.710959
+vn -0.898373 -0.088931 -0.430067
+vn -0.876644 0.072756 -0.475539
+vn -0.997467 0.068545 0.018494
+vn -0.993500 0.086367 0.074129
+vn -0.992523 0.102908 0.065584
+vn 0.941404 -0.153844 -0.300119
+vn 0.908231 -0.176580 -0.379315
+vn 0.937925 -0.100772 -0.331828
+vn -0.152104 -0.310160 -0.938414
+vn -0.198889 -0.023286 -0.979736
+vn -0.997772 0.047273 -0.046663
+vn -0.994812 0.101535 0.001404
+vn 0.962035 -0.135166 -0.236976
+vn 0.961150 -0.101779 -0.256539
+vn 0.412458 -0.301157 -0.859737
+vn 0.343089 -0.060488 -0.937315
+vn -0.991333 0.019440 -0.129917
+vn -0.992401 0.099338 -0.072451
+vn 0.976043 -0.118656 -0.182318
+vn 0.976135 -0.101993 -0.191595
+vn 0.719718 -0.248726 -0.648152
+vn 0.676351 -0.081973 -0.731986
+vn -0.968688 -0.021241 -0.247261
+vn -0.981689 0.095645 -0.164678
+vn 0.848048 -0.206641 -0.487930
+vn 0.827662 -0.093204 -0.553392
+vn -0.952849 0.088565 -0.290139
+vn 0.899289 -0.098392 -0.426069
+vn -0.665792 0.034822 -0.745293
+vn -0.846431 0.208655 -0.489853
+vn -0.991119 0.118686 0.059786
+vn 0.933683 -0.046907 -0.354991
+vn -0.228523 0.209021 -0.950804
+vn -0.991028 0.133061 -0.010193
+vn 0.960173 -0.068239 -0.270821
+vn 0.277139 0.153752 -0.948424
+vn -0.984832 0.148473 -0.089450
+vn 0.976409 -0.085635 -0.198157
+vn 0.626759 0.080386 -0.775018
+vn -0.968413 0.165899 -0.185949
+vn 0.802332 0.021424 -0.596423
+vn -0.931425 0.186224 -0.312632
+vn 0.888028 -0.018738 -0.459365
+vn 0.776208 0.130039 -0.616901
+vn -0.908689 0.270241 -0.318155
+vn 0.876247 0.058138 -0.478256
+vn -0.643361 0.224097 -0.732017
+vn -0.815516 0.319437 -0.482528
+vn -0.989441 0.133274 0.056642
+vn 0.929441 0.005188 -0.368877
+vn -0.245003 0.383892 -0.890255
+vn -0.986602 0.162206 -0.016449
+vn 0.959471 -0.035951 -0.279458
+vn 0.222266 0.328990 -0.917783
+vn -0.976226 0.193304 -0.097964
+vn 0.976836 -0.070193 -0.202002
+vn 0.579180 0.226264 -0.783135
+vn -0.953795 0.228553 -0.194952
+vn 0.977538 -0.056124 -0.203040
+vn 0.539903 0.351177 -0.764946
+vn -0.939543 0.282876 -0.192877
+vn 0.753441 0.227729 -0.616779
+vn -0.887509 0.341136 -0.309702
+vn 0.866146 0.128880 -0.482833
+vn -0.617603 0.368267 -0.694906
+vn -0.788049 0.409223 -0.459883
+vn -0.987640 0.146306 0.056093
+vn 0.926176 0.053438 -0.373211
+vn -0.252632 0.515458 -0.818781
+vn -0.981933 0.188269 -0.017457
+vn 0.959319 -0.006195 -0.282235
+vn 0.181738 0.468245 -0.864681
+vn -0.967498 0.232887 -0.098361
+vn -0.977447 0.210639 -0.013398
+vn 0.960021 0.019868 -0.279122
+vn 0.156011 0.579455 -0.799890
+vn -0.959441 0.266671 -0.091220
+vn 0.978515 -0.043947 -0.201361
+vn 0.512742 0.455367 -0.727805
+vn -0.926969 0.328654 -0.180822
+vn 0.737602 0.311899 -0.598865
+vn -0.869625 0.399915 -0.289468
+vn 0.859706 0.190771 -0.473769
+vn -0.594195 0.479232 -0.645924
+vn -0.765801 0.482040 -0.425611
+vn -0.985809 0.157445 0.058077
+vn 0.924833 0.095828 -0.368084
+vn -0.254433 0.617847 -0.743980
+vn -0.575182 0.566820 -0.589770
+vn -0.749413 0.541063 -0.381573
+vn -0.984039 0.166540 0.062349
+vn 0.926054 0.130741 -0.353923
+vn -0.252022 0.701041 -0.667074
+vn -0.973418 0.228889 -0.004578
+vn 0.961852 0.041292 -0.270394
+vn 0.144475 0.670217 -0.727958
+vn -0.952635 0.294168 -0.076998
+vn 0.979766 -0.034028 -0.197089
+vn 0.499863 0.540849 -0.676443
+vn -0.916837 0.365856 -0.159734
+vn 0.731132 0.381237 -0.565752
+vn -0.855892 0.447584 -0.258950
+vn 0.858486 0.241798 -0.452193
+vn 0.735557 0.435041 -0.519272
+vn -0.738945 0.588336 -0.328318
+vn 0.863369 0.280618 -0.419263
+vn -0.560869 0.637928 -0.527665
+vn -0.551073 0.696860 -0.458968
+vn -0.982421 0.173345 0.068819
+vn 0.930296 0.157018 -0.331462
+vn -0.246101 0.771630 -0.586505
+vn -0.970061 0.242653 0.008667
+vn 0.964843 0.057344 -0.256386
+vn 0.146641 0.746055 -0.649495
+vn -0.947386 0.315043 -0.056307
+vn 0.981323 -0.026582 -0.190435
+vn 0.502518 0.609516 -0.613117
+vn -0.909635 0.394391 -0.130345
+vn 0.968993 0.067476 -0.237648
+vn 0.162847 0.810358 -0.562792
+vn -0.846767 0.484756 -0.219001
+vn -0.842189 0.511643 -0.169958
+vn 0.521378 0.662160 -0.538224
+vn -0.734153 0.624866 -0.265572
+vn 0.751366 0.472518 -0.460555
+vn -0.545396 0.746117 -0.381878
+vn -0.967437 0.251656 0.026002
+vn 0.874599 0.306070 -0.375988
+vn -0.236579 0.833583 -0.499130
+vn -0.943876 0.328959 -0.029603
+vn 0.937498 0.173742 -0.301431
+vn -0.905423 0.414075 -0.093265
+vn 0.947325 0.180242 -0.264657
+vn -0.222541 0.888974 -0.400189
+vn -0.904111 0.424451 -0.048921
+vn 0.983123 -0.021821 -0.181585
+vn 0.974059 0.071322 -0.214667
+vn 0.194128 0.864284 -0.464003
+vn -0.841853 0.527909 -0.111942
+vn 0.556658 0.697928 -0.450545
+vn -0.734581 0.650655 -0.192328
+vn 0.778161 0.492233 -0.390027
+vn -0.543321 0.786554 -0.293374
+vn -0.980987 0.177831 0.077303
+vn -0.965606 0.255593 0.046937
+vn 0.891568 0.317057 -0.323283
+vn -0.941984 0.335551 0.002533
+vn -0.979766 0.179785 0.087619
+vn -0.964476 0.254311 0.071078
+vn 0.912961 0.312510 -0.262276
+vn -0.202246 0.937559 -0.282876
+vn -0.941557 0.334452 0.039460
+vn 0.958953 0.175939 -0.222266
+vn -0.905209 0.424940 0.002136
+vn 0.985107 -0.019868 -0.170721
+vn 0.979736 0.068575 -0.188147
+vn 0.242317 0.905911 -0.347209
+vn -0.845149 0.532579 -0.044771
+vn 0.607868 0.713858 -0.347667
+vn -0.739555 0.664510 -0.106906
+vn 0.814203 0.492172 -0.307871
+vn -0.544053 0.817408 -0.189245
+vn -0.747826 0.663808 -0.007324
+vn 0.856349 0.469527 -0.214789
+vn -0.546098 0.835261 -0.063662
+vn -0.978759 0.179113 0.099521
+vn -0.963897 0.247597 0.097720
+vn 0.936521 0.291574 -0.194586
+vn -0.172582 0.975341 -0.137455
+vn -0.942167 0.325297 0.080508
+vn 0.971221 0.160680 -0.175665
+vn -0.907987 0.414686 0.059420
+vn 0.987182 -0.020905 -0.158086
+vn 0.985473 0.059206 -0.159062
+vn 0.309305 0.928678 -0.204505
+vn -0.851039 0.524094 0.031678
+vn 0.672811 0.704062 -0.227058
+vn 0.394635 0.918393 -0.027894
+vn -0.857936 0.500168 0.117161
+vn 0.746147 0.659902 -0.087893
+vn -0.757225 0.644093 0.108249
+vn 0.899625 0.421735 -0.113041
+vn -0.546434 0.832606 0.090152
+vn -0.977935 0.175726 0.112766
+vn -0.963652 0.235450 0.126164
+vn 0.959380 0.254067 -0.122593
+vn -0.129063 0.990448 0.048250
+vn -0.943266 0.307718 0.124638
+vn 0.982727 0.134770 -0.126621
+vn -0.911496 0.392743 0.121952
+vn 0.989227 -0.025056 -0.144139
+vn 0.990753 0.043428 -0.128483
+vn 0.992035 0.099155 -0.077273
+vn -0.067629 0.956816 0.282693
+vn -0.914487 0.358104 0.188299
+vn 0.991058 -0.032136 -0.129307
+vn 0.994964 0.021851 -0.097629
+vn 0.491501 0.851314 0.183416
+vn -0.863643 0.457991 0.210425
+vn 0.817621 0.572069 0.064760
+vn -0.764183 0.598590 0.240181
+vn 0.937468 0.347911 -0.007447
+vn -0.539506 0.794885 0.277505
+vn -0.977294 0.169591 0.126957
+vn -0.963500 0.217780 0.155644
+vn 0.978332 0.200964 -0.049623
+vn -0.944243 0.281503 0.170690
+vn -0.976745 0.160680 0.141728
+vn -0.963225 0.194769 0.185003
+vn 0.990692 0.134587 0.019929
+vn -0.517350 0.699820 0.492477
+vn -0.944487 0.246529 0.217017
+vn 0.998016 0.055269 -0.030091
+vn 0.009095 0.835170 0.549883
+vn -0.915586 0.309976 0.256050
+vn 0.992553 -0.042146 -0.114078
+vn 0.997681 -0.004883 -0.067843
+vn 0.583148 0.701956 0.408826
+vn -0.865474 0.394910 0.308145
+vn 0.873012 0.437117 0.216193
+vn -0.763482 0.519150 0.384075
+vn 0.963469 0.250710 0.093905
+vn -0.860775 0.309885 0.403668
+vn 0.973693 0.137883 0.181341
+vn -0.749626 0.400525 0.526872
+vn -0.976348 0.148991 0.156529
+vn -0.962737 0.166814 0.212714
+vn 0.994934 0.059145 0.081149
+vn -0.474044 0.529954 0.703116
+vn -0.943602 0.203375 0.261116
+vn 0.999908 0.005371 0.012055
+vn 0.087130 0.605884 0.790735
+vn -0.913724 0.248634 0.321360
+vn 0.993530 -0.054872 -0.099124
+vn 0.998505 -0.035646 -0.040925
+vn 0.647694 0.470229 0.599414
+vn 0.900327 0.267037 0.343608
+vn 0.672781 0.204535 0.710959
+vn -0.908231 0.176580 0.379345
+vn 0.968688 0.021241 0.247261
+vn -0.848048 0.206641 0.487960
+vn 0.991333 -0.019440 0.129917
+vn -0.719718 0.248726 0.648152
+vn -0.976104 0.134678 0.170446
+vn -0.976043 0.118625 0.182318
+vn 0.997772 -0.047273 0.046663
+vn -0.412458 0.301126 0.859737
+vn -0.962035 0.135166 0.236976
+vn 0.997467 -0.068545 -0.018494
+vn 0.152104 0.310160 0.938414
+vn -0.941404 0.153844 0.300119
+vn 0.993866 -0.069948 -0.085452
+vn 0.993469 -0.086398 -0.074099
+vn 0.994812 -0.101505 -0.001434
+vn 0.198889 0.023316 0.979736
+vn -0.937925 0.100772 0.331828
+vn 0.992523 -0.102908 -0.065554
+vn 0.898373 0.088931 0.430067
+vn 0.876644 -0.072756 0.475539
+vn -0.899289 0.098392 0.426069
+vn 0.952849 -0.088565 0.290139
+vn -0.827662 0.093204 0.553392
+vn 0.981689 -0.095645 0.164678
+vn -0.676351 0.081973 0.731986
+vn -0.976135 0.102023 0.191595
+vn 0.992401 -0.099338 0.072481
+vn -0.343089 0.060488 0.937315
+vn -0.961150 0.101749 0.256539
+vn 0.984832 -0.148503 0.089450
+vn -0.277139 -0.153752 0.948424
+vn -0.960173 0.068209 0.270821
+vn 0.991028 -0.133061 0.010193
+vn 0.665822 -0.034822 0.745293
+vn 0.228523 -0.209021 0.950804
+vn -0.933683 0.046937 0.354991
+vn 0.991119 -0.118686 -0.059786
+vn 0.846431 -0.208625 0.489853
+vn -0.888028 0.018738 0.459365
+vn 0.931425 -0.186224 0.312632
+vn -0.802332 -0.021424 0.596454
+vn 0.968413 -0.165899 0.185949
+vn -0.626789 -0.080386 0.775018
+vn -0.976409 0.085665 0.198157
+vn 0.953795 -0.228523 0.194952
+vn -0.579180 -0.226264 0.783135
+vn -0.976836 0.070193 0.201972
+vn 0.976226 -0.193304 0.097964
+vn -0.222236 -0.328990 0.917783
+vn -0.959471 0.035951 0.279458
+vn 0.986602 -0.162206 0.016449
+vn 0.643361 -0.224097 0.732017
+vn 0.245003 -0.383892 0.890255
+vn -0.929441 -0.005188 0.368908
+vn 0.989441 -0.133274 -0.056642
+vn 0.815516 -0.319437 0.482528
+vn -0.876247 -0.058168 0.478256
+vn 0.908689 -0.270241 0.318155
+vn -0.776208 -0.130039 0.616901
+vn -0.866146 -0.128880 0.482833
+vn 0.887509 -0.341136 0.309702
+vn -0.753441 -0.227729 0.616779
+vn 0.939543 -0.282876 0.192877
+vn -0.539872 -0.351177 0.764946
+vn -0.977538 0.056154 0.203040
+vn 0.967498 -0.232887 0.098361
+vn -0.181738 -0.468245 0.864681
+vn -0.959319 0.006195 0.282235
+vn 0.981933 -0.188269 0.017457
+vn 0.617573 -0.368267 0.694906
+vn 0.252632 -0.515458 0.818781
+vn -0.926176 -0.053438 0.373211
+vn 0.987640 -0.146275 -0.056093
+vn 0.788049 -0.409223 0.459883
+vn 0.594226 -0.479202 0.645924
+vn 0.254433 -0.617847 0.743980
+vn -0.924833 -0.095828 0.368084
+vn 0.985809 -0.157445 -0.058077
+vn 0.765801 -0.482040 0.425611
+vn -0.859706 -0.190741 0.473769
+vn 0.869625 -0.399915 0.289468
+vn -0.737602 -0.311899 0.598865
+vn 0.926969 -0.328654 0.180822
+vn -0.512742 -0.455367 0.727805
+vn -0.978515 0.043947 0.201361
+vn 0.959441 -0.266671 0.091220
+vn -0.156011 -0.579455 0.799890
+vn -0.960021 -0.019868 0.279122
+vn 0.977447 -0.210639 0.013398
+vn 0.952635 -0.294137 0.076998
+vn -0.144475 -0.670217 0.727958
+vn -0.961852 -0.041292 0.270394
+vn 0.973418 -0.228889 0.004578
+vn 0.575182 -0.566820 0.589770
+vn 0.252022 -0.701041 0.667074
+vn -0.926084 -0.130741 0.353923
+vn 0.984039 -0.166540 -0.062349
+vn 0.749413 -0.541063 0.381573
+vn -0.858486 -0.241798 0.452193
+vn 0.855892 -0.447584 0.258950
+vn -0.731132 -0.381237 0.565752
+vn 0.916837 -0.365856 0.159734
+vn -0.499863 -0.540849 0.676443
+vn -0.979766 0.033998 0.197089
+vn 0.909604 -0.394421 0.130345
+vn -0.502518 -0.609516 0.613117
+vn -0.981323 0.026582 0.190435
+vn 0.947386 -0.315043 0.056307
+vn -0.146641 -0.746055 0.649525
+vn -0.964843 -0.057314 0.256417
+vn 0.970061 -0.242653 -0.008667
+vn 0.560869 -0.637928 0.527665
+vn 0.246101 -0.771630 0.586505
+vn -0.930296 -0.157018 0.331462
+vn 0.982421 -0.173376 -0.068819
+vn 0.551073 -0.696860 0.458968
+vn -0.863369 -0.280618 0.419263
+vn 0.738945 -0.588336 0.328318
+vn -0.735527 -0.435041 0.519272
+vn -0.751396 -0.472488 0.460555
+vn 0.846767 -0.484756 0.219001
+vn 0.734153 -0.624866 0.265572
+vn -0.521378 -0.662160 0.538224
+vn 0.842189 -0.511673 0.169988
+vn -0.162816 -0.810389 0.562792
+vn -0.968993 -0.067476 0.237648
+vn 0.905423 -0.414075 0.093265
+vn -0.937498 -0.173742 0.301431
+vn 0.943876 -0.328959 0.029603
+vn 0.236549 -0.833583 0.499130
+vn -0.874599 -0.306070 0.375988
+vn 0.967467 -0.251625 -0.025971
+vn 0.545396 -0.746117 0.381878
+vn 0.222541 -0.888974 0.400189
+vn -0.891568 -0.317057 0.323283
+vn 0.980987 -0.177831 -0.077303
+vn 0.965606 -0.255593 -0.046968
+vn 0.543321 -0.786554 0.293374
+vn -0.778161 -0.492233 0.390027
+vn 0.734611 -0.650624 0.192328
+vn -0.556658 -0.697928 0.450545
+vn 0.841853 -0.527909 0.111942
+vn -0.194098 -0.864284 0.464003
+vn -0.983123 0.021821 0.181585
+vn -0.974059 -0.071322 0.214667
+vn 0.904111 -0.424451 0.048921
+vn -0.947325 -0.180242 0.264687
+vn 0.941984 -0.335551 -0.002533
+vn 0.905179 -0.424940 -0.002136
+vn 0.202246 -0.937559 0.282876
+vn -0.958953 -0.175939 0.222266
+vn 0.941557 -0.334452 -0.039491
+vn -0.912961 -0.312510 0.262276
+vn 0.979766 -0.179785 -0.087588
+vn 0.964476 -0.254311 -0.071078
+vn 0.544053 -0.817408 0.189245
+vn -0.814203 -0.492141 0.307871
+vn 0.739555 -0.664510 0.106906
+vn -0.607868 -0.713828 0.347697
+vn 0.845149 -0.532579 0.044771
+vn -0.242317 -0.905911 0.347209
+vn -0.985107 0.019868 0.170721
+vn -0.979736 -0.068575 0.188147
+vn 0.851039 -0.524094 -0.031678
+vn -0.309305 -0.928709 0.204505
+vn -0.987182 0.020905 0.158086
+vn -0.985473 -0.059206 0.159062
+vn 0.907987 -0.414686 -0.059420
+vn 0.172582 -0.975341 0.137455
+vn -0.971221 -0.160649 0.175665
+vn 0.942167 -0.325297 -0.080508
+vn -0.936521 -0.291574 0.194586
+vn 0.978759 -0.179113 -0.099521
+vn 0.963897 -0.247597 -0.097720
+vn 0.546098 -0.835261 0.063662
+vn -0.856349 -0.469527 0.214789
+vn 0.747826 -0.663808 0.007324
+vn -0.672811 -0.704062 0.227027
+vn 0.757225 -0.644093 -0.108249
+vn -0.746147 -0.659902 0.087893
+vn 0.857936 -0.500168 -0.117161
+vn -0.394635 -0.918393 0.027894
+vn -0.989227 0.025056 0.144108
+vn -0.990753 -0.043458 0.128483
+vn 0.911496 -0.392743 -0.121952
+vn 0.129063 -0.990448 -0.048250
+vn -0.982727 -0.134770 0.126621
+vn 0.943266 -0.307718 -0.124638
+vn -0.959380 -0.254067 0.122593
+vn 0.977935 -0.175695 -0.112766
+vn 0.963652 -0.235420 -0.126164
+vn 0.546434 -0.832606 -0.090152
+vn -0.899625 -0.421766 0.113010
+vn -0.978332 -0.200934 0.049623
+vn 0.977294 -0.169561 -0.126988
+vn 0.963500 -0.217780 -0.155614
+vn 0.539506 -0.794885 -0.277505
+vn -0.937468 -0.347911 0.007447
+vn 0.764183 -0.598590 -0.240181
+vn -0.817621 -0.572069 -0.064760
+vn 0.863643 -0.458022 -0.210425
+vn -0.491501 -0.851314 -0.183416
+vn -0.991058 0.032167 0.129276
+vn -0.994964 -0.021851 0.097598
+vn 0.914487 -0.358104 -0.188299
+vn 0.067629 -0.956816 -0.282693
+vn -0.992035 -0.099155 0.077273
+vn 0.944243 -0.281503 -0.170690
+vn -0.009095 -0.835170 -0.549883
+vn -0.998016 -0.055269 0.030091
+vn 0.944487 -0.246559 -0.217017
+vn 0.517350 -0.699820 -0.492477
+vn -0.990692 -0.134587 -0.019929
+vn 0.976745 -0.160680 -0.141728
+vn 0.963225 -0.194769 -0.185003
+vn -0.963469 -0.250710 -0.093905
+vn 0.763482 -0.519150 -0.384075
+vn -0.873012 -0.437117 -0.216193
+vn 0.865474 -0.394910 -0.308145
+vn -0.583148 -0.701956 -0.408826
+vn -0.992553 0.042146 0.114078
+vn -0.997681 0.004852 0.067843
+vn 0.915586 -0.309976 -0.256050
+vn 0.860775 -0.309915 -0.403668
+vn -0.647694 -0.470260 -0.599414
+vn -0.993530 0.054872 0.099124
+vn -0.998505 0.035646 0.040925
+vn 0.913724 -0.248634 -0.321360
+vn -0.087130 -0.605914 -0.790735
+vn -0.999908 -0.005371 -0.012055
+vn 0.943602 -0.203375 -0.261116
+vn 0.474044 -0.529954 -0.703116
+vn -0.994934 -0.059175 -0.081149
+vn 0.976348 -0.148991 -0.156560
+vn 0.962737 -0.166784 -0.212714
+vn 0.749626 -0.400525 -0.526872
+vn -0.973693 -0.137883 -0.181341
+vn -0.900327 -0.267037 -0.343608
+vn 0.986389 -0.102298 -0.128636
+vn -0.986389 0.102298 0.128636
+vn 0.976104 -0.134739 -0.170446
+vn -0.993866 0.069948 0.085452
+vn -0.992523 0.102878 0.065584
+vn 0.908231 -0.176580 -0.379345
+vn 0.937925 -0.100742 -0.331828
+vn -0.198889 -0.023316 -0.979736
+vn -0.994812 0.101505 0.001434
+vn -0.992401 0.099338 -0.072481
+vn 0.976043 -0.118625 -0.182318
+vn 0.848048 -0.206641 -0.487960
+vn -0.846431 0.208625 -0.489853
+vn 0.933683 -0.046937 -0.354991
+vn 0.960173 -0.068209 -0.270821
+vn -0.984832 0.148473 -0.089480
+vn 0.976409 -0.085665 -0.198157
+vn 0.802332 0.021424 -0.596454
+vn 0.876247 0.058168 -0.478256
+vn 0.959471 -0.035920 -0.279458
+vn 0.222236 0.328990 -0.917783
+vn 0.977538 -0.056154 -0.203040
+vn -0.617573 0.368267 -0.694906
+vn 0.926176 0.053407 -0.373211
+vn -0.967498 0.232917 -0.098361
+vn 0.156011 0.579485 -0.799890
+vn 0.859706 0.190741 -0.473769
+vn -0.594226 0.479202 -0.645924
+vn 0.924833 0.095798 -0.368084
+vn -0.254402 0.617847 -0.743980
+vn 0.926084 0.130741 -0.353923
+vn -0.855892 0.447554 -0.258950
+vn 0.735557 0.435072 -0.519272
+vn -0.738945 0.588305 -0.328318
+vn -0.982421 0.173376 0.068819
+vn 0.964843 0.057344 -0.256417
+vn -0.909604 0.394421 -0.130345
+vn 0.162816 0.810389 -0.562792
+vn -0.842189 0.511643 -0.169988
+vn 0.751396 0.472488 -0.460555
+vn -0.967467 0.251625 0.025971
+vn -0.236549 0.833583 -0.499130
+vn 0.947325 0.180242 -0.264687
+vn 0.194098 0.864284 -0.464003
+vn -0.734611 0.650624 -0.192328
+vn -0.965606 0.255593 0.046968
+vn 0.891568 0.317087 -0.323283
+vn -0.979766 0.179785 0.087588
+vn -0.941557 0.334452 0.039491
+vn -0.905179 0.424940 0.002136
+vn 0.985107 -0.019868 -0.170690
+vn 0.607868 0.713828 -0.347697
+vn -0.747826 0.663839 -0.007324
+vn 0.856380 0.469527 -0.214789
+vn -0.963897 0.247627 0.097720
+vn 0.936521 0.291543 -0.194586
+vn 0.985473 0.059175 -0.159062
+vn -0.851039 0.524094 0.031648
+vn 0.394665 0.918393 -0.027894
+vn 0.899625 0.421766 -0.113010
+vn -0.977935 0.175695 0.112766
+vn -0.963652 0.235420 0.126164
+vn 0.989227 -0.025025 -0.144139
+vn 0.990753 0.043458 -0.128483
+vn -0.067598 0.956816 0.282693
+vn 0.991058 -0.032136 -0.129276
+vn -0.863643 0.458022 0.210425
+vn -0.977294 0.169561 0.126988
+vn 0.978332 0.200934 -0.049623
+vn -0.944487 0.246559 0.217017
+vn -0.915586 0.309946 0.256081
+vn 0.997681 -0.004852 -0.067843
+vn -0.860805 0.309885 0.403668
+vn -0.962737 0.166784 0.212714
+vn 0.994934 0.059175 0.081149
+vn -0.474044 0.529923 0.703116
+vn 0.087130 0.605914 0.790735
+vn 0.993530 -0.054903 -0.099124
+vn 0.647694 0.470260 0.599414
+vn -0.976043 0.118656 0.182318
+vn -0.343089 0.060518 0.937315
+vn -0.961150 0.101779 0.256539
+vn 0.984832 -0.148473 0.089480
+vn -0.960173 0.068239 0.270821
+vn 0.665792 -0.034822 0.745293
+vn -0.933683 0.046907 0.354991
+vn 0.846431 -0.208655 0.489853
+vn -0.976409 0.085635 0.198157
+vn 0.953795 -0.228553 0.194952
+vn -0.976867 0.070193 0.201972
+vn -0.222266 -0.328990 0.917783
+vn -0.959471 0.035981 0.279458
+vn 0.986602 -0.162236 0.016449
+vn 0.245033 -0.383892 0.890255
+vn -0.929441 -0.005219 0.368877
+vn 0.989441 -0.133244 -0.056642
+vn -0.876247 -0.058138 0.478256
+vn -0.753441 -0.227760 0.616779
+vn -0.539903 -0.351177 0.764946
+vn -0.977538 0.056124 0.203040
+vn 0.967498 -0.232887 0.098392
+vn 0.252632 -0.515488 0.818781
+vn 0.985809 -0.157476 -0.058077
+vn -0.978515 0.043977 0.201361
+vn -0.156041 -0.579455 0.799890
+vn 0.952635 -0.294168 0.076998
+vn -0.926054 -0.130741 0.353923
+vn 0.984039 -0.166509 -0.062349
+vn -0.979766 0.034028 0.197089
+vn 0.909635 -0.394391 0.130345
+vn -0.502518 -0.609516 0.613147
+vn -0.146641 -0.746055 0.649495
+vn -0.964843 -0.057344 0.256417
+vn 0.982421 -0.173345 -0.068819
+vn -0.735557 -0.435041 0.519272
+vn -0.751366 -0.472518 0.460555
+vn 0.842189 -0.511673 0.169958
+vn -0.162816 -0.810358 0.562792
+vn 0.967437 -0.251656 -0.025971
+vn -0.194128 -0.864284 0.464003
+vn 0.905209 -0.424940 -0.002136
+vn 0.979766 -0.179785 -0.087619
+vn -0.814203 -0.492172 0.307871
+vn -0.607868 -0.713858 0.347667
+vn 0.845180 -0.532579 0.044771
+vn 0.851039 -0.524094 -0.031648
+vn -0.309305 -0.928678 0.204505
+vn 0.907987 -0.414716 -0.059420
+vn -0.971221 -0.160680 0.175665
+vn -0.856380 -0.469527 0.214789
+vn 0.857936 -0.500137 -0.117161
+vn -0.989227 0.025056 0.144139
+vn -0.990753 -0.043428 0.128483
+vn -0.899625 -0.421735 0.113041
+vn 0.977294 -0.169561 -0.126957
+vn 0.963500 -0.217780 -0.155644
+vn 0.863643 -0.457991 -0.210425
+vn -0.991058 0.032136 0.129307
+vn -0.994964 -0.021851 0.097629
+vn 0.067598 -0.956816 -0.282693
+vn 0.944487 -0.246529 -0.217017
+vn -0.997681 0.004883 0.067843
+vn -0.647694 -0.470229 -0.599414
+vn -0.993530 0.054903 0.099124
+vn 0.962737 -0.166814 -0.212714
+vn 0.976104 -0.134709 -0.170446
+usemtl SkinColor
+s 1
+f 489//483 488//484 503//485
+f 484//486 483//487 498//488
+f 495//489 494//490 510//491
+f 490//492 489//483 505//493
+f 485//494 484//486 499//495
+f 496//496 495//489 511//497
+f 491//498 490//492 506//499
+f 486//500 485//494 500//501
+f 497//502 496//496 512//503
+f 492//504 491//498 507//505
+f 487//506 486//500 501//507
+f 493//508 492//504 508//509
+f 488//484 487//506 502//510
+f 494//490 493//508 509//511
+f 504//512 503//485 518//513
+f 499//495 498//488 513//514
+f 510//491 509//511 525//515
+f 505//493 504//512 520//516
+f 500//501 499//495 514//517
+f 511//497 510//491 526//518
+f 506//499 505//493 521//519
+f 501//507 500//501 515//520
+f 512//503 511//497 527//521
+f 507//505 506//499 522//522
+f 502//510 501//507 516//523
+f 508//509 507//505 523//524
+f 503//485 502//510 517//525
+f 509//511 508//509 524//526
+f 523//524 522//522 538//527
+f 518//513 517//525 532//528
+f 524//526 523//524 539//529
+f 519//530 518//513 533//531
+f 514//517 513//514 528//532
+f 525//515 524//526 540//533
+f 520//516 519//530 535//534
+f 515//520 514//517 529//535
+f 526//518 525//515 541//536
+f 521//519 520//516 536//537
+f 516//523 515//520 530//538
+f 527//521 526//518 542//539
+f 522//522 521//519 537//540
+f 517//525 516//523 531//541
+f 542//539 541//536 557//542
+f 537//540 536//537 552//543
+f 532//528 531//541 546//544
+f 538//527 537//540 553//545
+f 533//531 532//528 547//546
+f 539//529 538//527 554//547
+f 534//548 533//531 548//549
+f 529//535 528//532 543//550
+f 540//533 539//529 555//551
+f 535//534 534//548 550//552
+f 530//538 529//535 544//553
+f 541//536 540//533 556//554
+f 536//537 535//534 551//555
+f 531//541 530//538 545//556
+f 545//556 544//553 559//557
+f 556//554 555//551 571//558
+f 551//555 550//552 566//559
+f 546//544 545//556 560//560
+f 557//542 556//554 572//561
+f 552//543 551//555 567//562
+f 547//546 546//544 561//563
+f 553//545 552//543 568//564
+f 548//549 547//546 562//565
+f 554//547 553//545 569//566
+f 549//567 548//549 563//568
+f 544//553 543//550 558//569
+f 555//551 554//547 570//570
+f 550//552 549//567 565//571
+f 564//572 563//568 578//573
+f 559//557 558//569 573//574
+f 570//570 569//566 585//575
+f 565//571 564//572 580//576
+f 560//560 559//557 574//577
+f 571//558 570//570 586//578
+f 566//559 565//571 581//579
+f 561//563 560//560 575//580
+f 572//561 571//558 587//581
+f 567//562 566//559 582//582
+f 562//565 561//563 576//583
+f 568//564 567//562 583//584
+f 563//568 562//565 577//585
+f 569//566 568//564 584//586
+f 583//584 582//582 598//587
+f 578//573 577//585 593//588
+f 584//586 583//584 599//589
+f 579//590 578//573 594//591
+f 574//577 573//574 588//592
+f 585//575 584//586 600//593
+f 580//576 579//590 595//594
+f 575//580 574//577 589//595
+f 586//578 585//575 601//596
+f 581//579 580//576 596//597
+f 576//583 575//580 590//598
+f 587//581 586//578 602//599
+f 582//582 581//579 597//600
+f 577//585 576//583 591//601
+f 602//599 601//596 616//602
+f 597//600 596//597 611//603
+f 592//604 591//601 607//605
+f 598//587 597//600 612//606
+f 593//588 592//604 608//607
+f 599//589 598//587 613//608
+f 594//591 593//588 609//609
+f 589//595 588//592 604//610
+f 600//593 599//589 614//611
+f 595//594 594//591 610//612
+f 590//598 589//595 605//613
+f 601//596 600//593 615//614
+f 596//597 595//594 611//603
+f 591//601 590//598 606//615
+f 616//602 615//614 630//616
+f 611//603 610//612 625//617
+f 606//615 605//613 621//618
+f 617//619 616//602 631//620
+f 612//606 611//603 626//621
+f 607//605 606//615 622//622
+f 613//608 612//606 627//623
+f 608//607 607//605 623//624
+f 614//611 613//608 628//625
+f 609//609 608//607 624//626
+f 604//610 603//627 619//628
+f 615//614 614//611 629//629
+f 610//612 609//609 625//617
+f 605//613 604//610 620//630
+f 619//628 618//631 634//632
+f 630//616 629//629 644//633
+f 625//617 624//626 640//634
+f 620//630 619//628 635//635
+f 631//620 630//616 645//636
+f 626//621 625//617 640//634
+f 621//618 620//630 636//637
+f 632//638 631//620 646//639
+f 627//623 626//621 641//640
+f 622//622 621//618 637//641
+f 628//625 627//623 642//642
+f 623//624 622//622 638//643
+f 629//629 628//625 643//644
+f 624//626 623//624 639//645
+f 638//643 637//641 653//646
+f 644//633 643//644 658//647
+f 639//645 638//643 654//648
+f 634//632 633//649 649//650
+f 645//636 644//633 659//651
+f 640//634 639//645 655//652
+f 635//635 634//632 650//653
+f 646//639 645//636 660//654
+f 641//640 640//634 655//652
+f 636//637 635//635 651//655
+f 647//656 646//639 661//657
+f 642//642 641//640 656//658
+f 637//641 636//637 652//659
+f 643//644 642//642 657//660
+f 657//660 656//658 671//661
+f 652//659 651//655 667//662
+f 658//647 657//660 672//663
+f 653//646 652//659 668//664
+f 659//651 658//647 673//665
+f 654//648 653//646 669//666
+f 649//650 648//667 664//668
+f 660//654 659//651 674//669
+f 655//652 654//648 670//670
+f 650//653 649//650 665//671
+f 661//657 660//654 675//672
+f 656//658 655//652 670//670
+f 651//655 650//653 666//673
+f 662//674 661//657 676//675
+f 676//675 675//672 690//676
+f 671//661 670//670 685//677
+f 666//673 665//671 681//678
+f 677//679 676//675 691//680
+f 672//663 671//661 686//681
+f 667//662 666//673 682//682
+f 673//665 672//663 687//683
+f 668//664 667//662 683//684
+f 674//669 673//665 688//685
+f 669//666 668//664 684//686
+f 664//668 663//687 679//688
+f 675//672 674//669 689//689
+f 670//670 669//666 685//677
+f 665//671 664//668 680//690
+f 679//688 678//691 694//692
+f 690//676 689//689 704//693
+f 685//677 684//686 699//694
+f 680//690 679//688 695//695
+f 691//680 690//676 705//696
+f 686//681 685//677 700//697
+f 681//678 680//690 696//698
+f 692//699 691//680 706//700
+f 687//683 686//681 701//701
+f 682//682 681//678 697//702
+f 688//685 687//683 702//703
+f 683//684 682//682 698//704
+f 689//689 688//685 703//705
+f 684//686 683//684 699//694
+f 698//704 697//702 712//706
+f 704//693 703//705 718//707
+f 699//694 698//704 713//708
+f 694//692 693//709 709//710
+f 705//696 704//693 719//711
+f 700//697 699//694 714//712
+f 695//695 694//692 710//713
+f 706//700 705//696 720//714
+f 701//701 700//697 715//715
+f 696//698 695//695 711//716
+f 707//717 706//700 721//718
+f 702//703 701//701 716//719
+f 697//702 696//698 712//706
+f 703//705 702//703 717//720
+f 717//720 716//719 731//721
+f 712//706 711//716 726//722
+f 718//707 717//720 733//723
+f 713//708 712//706 727//724
+f 719//711 718//707 734//725
+f 714//712 713//708 728//726
+f 709//710 708//727 723//728
+f 720//714 719//711 735//729
+f 715//715 714//712 729//730
+f 710//713 709//710 724//731
+f 721//718 720//714 736//732
+f 716//719 715//715 730//733
+f 711//716 710//713 725//734
+f 722//735 721//718 737//736
+f 736//732 735//729 751//737
+f 731//721 730//733 745//738
+f 726//722 725//734 740//739
+f 737//736 736//732 752//740
+f 732//741 731//721 747//742
+f 727//724 726//722 741//743
+f 733//723 732//741 748//744
+f 728//726 727//724 742//745
+f 734//725 733//723 749//746
+f 729//730 728//726 743//747
+f 724//731 723//728 738//748
+f 735//729 734//725 750//749
+f 730//733 729//730 744//750
+f 725//734 724//731 739//751
+f 750//749 749//746 765//752
+f 745//738 744//750 759//753
+f 740//739 739//751 754//754
+f 751//737 750//749 766//755
+f 746//756 745//738 760//757
+f 741//743 740//739 755//758
+f 752//740 751//737 767//759
+f 747//742 746//756 762//760
+f 742//745 741//743 756//761
+f 748//744 747//742 763//762
+f 743//747 742//745 757//763
+f 749//746 748//744 764//764
+f 744//750 743//747 758//765
+f 739//751 738//748 753//766
+f 764//764 763//762 779//767
+f 759//753 758//765 773//768
+f 754//754 753//766 768//769
+f 765//752 764//764 780//770
+f 760//757 759//753 774//771
+f 755//758 754//754 769//772
+f 766//755 765//752 781//773
+f 761//774 760//757 775//775
+f 756//761 755//758 770//776
+f 767//759 766//755 782//777
+f 762//760 761//774 777//778
+f 757//763 756//761 771//779
+f 763//762 762//760 778//780
+f 758//765 757//763 772//781
+f 772//781 771//779 786//782
+f 778//780 777//778 793//783
+f 773//768 772//781 787//784
+f 779//767 778//780 794//785
+f 774//771 773//768 788//786
+f 769//772 768//769 783//787
+f 780//770 779//767 795//788
+f 775//775 774//771 789//789
+f 770//776 769//772 784//790
+f 781//773 780//770 796//791
+f 776//792 775//775 790//793
+f 771//779 770//776 785//794
+f 782//777 781//773 797//795
+f 777//778 776//792 792//796
+f 791//797 790//793 805//798
+f 786//782 785//794 800//799
+f 797//795 796//791 812//800
+f 792//796 791//797 807//801
+f 787//784 786//782 801//802
+f 793//783 792//796 808//803
+f 788//786 787//784 802//804
+f 794//785 793//783 809//805
+f 789//789 788//786 803//806
+f 784//790 783//787 798//807
+f 795//788 794//785 810//808
+f 790//793 789//789 804//809
+f 785//794 784//790 799//810
+f 796//791 795//788 811//811
+f 810//808 809//805 826//812
+f 805//798 804//809 820//813
+f 800//799 799//810 815//814
+f 811//811 810//808 827//815
+f 806//816 805//798 821//817
+f 801//802 800//799 816//818
+f 812//800 811//811 828//819
+f 807//801 806//816 823//820
+f 802//804 801//802 817//821
+f 808//803 807//801 824//822
+f 803//806 802//804 818//823
+f 809//805 808//803 825//824
+f 804//809 803//806 819//825
+f 799//810 798//807 814//826
+f 825//824 824//822 840//827
+f 820//813 819//825 834//828
+f 815//814 814//826 829//829
+f 826//812 825//824 841//830
+f 821//817 820//813 835//831
+f 816//818 815//814 830//832
+f 827//815 826//812 842//833
+f 822//834 821//817 836//835
+f 817//821 816//818 831//836
+f 828//819 827//815 843//837
+f 823//820 822//834 837//838
+f 818//823 817//821 832//839
+f 824//822 823//820 838//840
+f 819//825 818//823 833//841
+f 833//841 832//839 848//842
+f 839//843 838//840 853//844
+f 834//828 833//841 849//845
+f 840//827 839//843 854//846
+f 835//831 834//828 850//847
+f 830//832 829//829 845//848
+f 841//830 840//827 855//849
+f 836//835 835//831 850//847
+f 831//836 830//832 846//850
+f 842//833 841//830 856//851
+f 837//838 836//835 851//852
+f 832//839 831//836 847//853
+f 843//837 842//833 857//854
+f 838//840 837//838 852//855
+f 852//855 851//852 866//856
+f 847//853 846//850 862//857
+f 858//858 857//854 872//859
+f 853//844 852//855 867//860
+f 848//842 847//853 863//861
+f 854//846 853//844 868//862
+f 849//845 848//842 864//863
+f 855//849 854//846 869//864
+f 850//847 849//845 865//865
+f 845//848 844//866 860//867
+f 856//851 855//849 870//868
+f 851//852 850//847 866//856
+f 846//850 845//848 861//869
+f 857//854 856//851 871//870
+f 871//870 870//868 885//871
+f 866//856 865//865 881//872
+f 861//869 860//867 876//873
+f 872//859 871//870 886//874
+f 867//860 866//856 881//872
+f 862//857 861//869 877//875
+f 873//876 872//859 887//877
+f 868//862 867//860 882//878
+f 863//861 862//857 878//879
+f 869//864 868//862 883//880
+f 864//863 863//861 879//881
+f 870//868 869//864 884//882
+f 865//865 864//863 880//883
+f 860//867 859//884 875//885
+f 885//871 884//882 899//886
+f 880//883 879//881 895//887
+f 875//885 874//888 890//889
+f 886//874 885//871 900//890
+f 881//872 880//883 896//891
+f 876//873 875//885 891//892
+f 887//877 886//874 901//893
+f 882//878 881//872 896//891
+f 877//875 876//873 892//894
+f 888//895 887//877 902//896
+f 883//880 882//878 897//897
+f 878//879 877//875 893//898
+f 884//882 883//880 898//899
+f 879//881 878//879 894//900
+f 899//886 898//899 913//901
+f 894//900 893//898 909//902
+f 900//890 899//886 914//903
+f 895//887 894//900 910//904
+f 890//889 889//905 905//906
+f 901//893 900//890 915//907
+f 896//891 895//887 911//908
+f 891//892 890//889 906//909
+f 902//896 901//893 916//910
+f 897//897 896//891 911//908
+f 892//894 891//892 907//911
+f 903//912 902//896 917//913
+f 898//899 897//897 912//914
+f 893//898 892//894 908//915
+f 907//911 906//909 922//916
+f 918//917 917//913 932//918
+f 913//901 912//914 927//919
+f 908//915 907//911 923//920
+f 914//903 913//901 928//921
+f 909//902 908//915 924//922
+f 915//907 914//903 929//923
+f 910//904 909//902 925//924
+f 905//906 904//925 920//926
+f 916//910 915//907 930//927
+f 911//908 910//904 926//928
+f 906//909 905//906 921//929
+f 917//913 916//910 931//930
+f 912//914 911//908 926//928
+f 926//928 925//924 942//931
+f 921//929 920//926 937//932
+f 932//918 931//930 947//933
+f 927//919 926//928 943//934
+f 922//916 921//929 938//935
+f 933//936 932//918 948//937
+f 928//921 927//919 943//934
+f 923//920 922//916 939//938
+f 929//923 928//921 944//939
+f 924//922 923//920 940//940
+f 930//927 929//923 945//941
+f 925//924 924//922 941//942
+f 920//926 919//943 936//944
+f 931//930 930//927 946//945
+f 946//945 945//941 960//946
+f 941//942 940//940 956//947
+f 936//944 935//948 951//949
+f 947//933 946//945 961//950
+f 942//931 941//942 957//951
+f 937//932 936//944 952//952
+f 948//937 947//933 962//953
+f 943//934 942//931 958//954
+f 938//935 937//932 953//955
+f 949//956 948//937 963//957
+f 944//939 943//934 959//958
+f 939//938 938//935 954//959
+f 945//941 944//939 960//946
+f 940//940 939//938 955//960
+f 813//961 497//502 512//503
+f 483//487 934//962 498//488
+f 813//961 512//503 527//521
+f 498//488 934//962 513//514
+f 513//514 934//962 528//532
+f 813//961 527//521 542//539
+f 813//961 542//539 557//542
+f 528//532 934//962 543//550
+f 813//961 557//542 572//561
+f 543//550 934//962 558//569
+f 813//961 572//561 587//581
+f 558//569 934//962 573//574
+f 573//574 934//962 588//592
+f 813//961 587//581 602//599
+f 813//961 602//599 617//619
+f 588//592 934//962 603//627
+f 813//961 617//619 632//638
+f 603//627 934//962 618//631
+f 813//961 632//638 647//656
+f 618//631 934//962 633//649
+f 633//649 934//962 648//667
+f 813//961 647//656 662//674
+f 813//961 662//674 677//679
+f 648//667 934//962 663//687
+f 813//961 677//679 692//699
+f 663//687 934//962 678//691
+f 813//961 692//699 707//717
+f 678//691 934//962 693//709
+f 693//709 934//962 708//727
+f 813//961 707//717 722//735
+f 813//961 722//735 737//736
+f 708//727 934//962 723//728
+f 813//961 737//736 752//740
+f 723//728 934//962 738//748
+f 813//961 752//740 767//759
+f 738//748 934//962 753//766
+f 753//766 934//962 768//769
+f 813//961 767//759 782//777
+f 813//961 782//777 797//795
+f 768//769 934//962 783//787
+f 813//961 797//795 812//800
+f 783//787 934//962 798//807
+f 813//961 812//800 828//819
+f 798//807 934//962 814//826
+f 814//826 934//962 829//829
+f 813//961 828//819 843//837
+f 813//961 843//837 858//858
+f 829//829 934//962 844//866
+f 813//961 858//858 873//876
+f 844//866 934//962 859//884
+f 813//961 873//876 888//895
+f 859//884 934//962 874//888
+f 813//961 888//895 903//912
+f 874//888 934//962 889//905
+f 813//961 903//912 918//917
+f 889//905 934//962 904//925
+f 813//961 918//917 933//936
+f 904//925 934//962 919//943
+f 813//961 933//936 949//956
+f 919//943 934//962 935//948
+f 813//961 949//956 964//963
+f 935//948 934//962 950//964
+f 813//961 964//963 497//502
+f 960//946 959//958 493//508
+f 955//960 954//959 487//506
+f 950//964 934//962 483//487
+f 961//950 960//946 494//490
+f 956//947 955//960 489//483
+f 951//949 950//964 483//487
+f 962//953 961//950 495//489
+f 957//951 956//947 490//492
+f 952//952 951//949 484//486
+f 963//957 962//953 496//496
+f 958//954 957//951 491//498
+f 953//955 952//952 485//494
+f 964//963 963//957 497//502
+f 959//958 958//954 492//504
+f 954//959 953//955 486//500
+f 971//483 970//484 985//485
+f 966//486 965//487 980//965
+f 977//489 976//966 992//967
+f 972//492 971//483 987//968
+f 967//494 966//486 981//969
+f 978//496 977//489 993//497
+f 973//498 972//492 988//499
+f 968//500 967//494 982//970
+f 979//971 978//496 994//503
+f 974//504 973//498 989//505
+f 969//506 968//500 983//507
+f 975//972 974//504 990//509
+f 970//484 969//506 984//510
+f 976//966 975//972 991//511
+f 986//512 985//485 1000//973
+f 981//969 980//965 995//514
+f 992//967 991//511 1007//974
+f 987//968 986//512 1002//516
+f 982//970 981//969 996//517
+f 993//497 992//967 1008//975
+f 988//499 987//968 1003//519
+f 983//507 982//970 997//976
+f 994//503 993//497 1009//977
+f 989//505 988//499 1004//522
+f 984//510 983//507 998//523
+f 990//509 989//505 1005//978
+f 985//485 984//510 999//525
+f 991//511 990//509 1006//526
+f 1005//978 1004//522 1020//527
+f 1000//973 999//525 1014//528
+f 1006//526 1005//978 1021//979
+f 1001//530 1000//973 1015//531
+f 996//517 995//514 1010//532
+f 1007//974 1006//526 1022//533
+f 1002//516 1001//530 1017//534
+f 997//976 996//517 1011//535
+f 1008//975 1007//974 1023//980
+f 1003//519 1002//516 1018//981
+f 998//523 997//976 1012//538
+f 1009//977 1008//975 1024//539
+f 1004//522 1003//519 1019//540
+f 999//525 998//523 1013//541
+f 1024//539 1023//980 1039//982
+f 1019//540 1018//981 1034//543
+f 1014//528 1013//541 1028//544
+f 1020//527 1019//540 1035//545
+f 1015//531 1014//528 1029//546
+f 1021//979 1020//527 1036//547
+f 1016//983 1015//531 1030//549
+f 1011//535 1010//532 1025//550
+f 1022//533 1021//979 1037//984
+f 1017//534 1016//983 1032//552
+f 1012//538 1011//535 1026//553
+f 1023//980 1022//533 1038//554
+f 1018//981 1017//534 1033//555
+f 1013//541 1012//538 1027//985
+f 1027//985 1026//553 1041//557
+f 1038//554 1037//984 1053//558
+f 1033//555 1032//552 1048//986
+f 1028//544 1027//985 1042//560
+f 1039//982 1038//554 1054//561
+f 1034//543 1033//555 1049//562
+f 1029//546 1028//544 1043//563
+f 1035//545 1034//543 1050//564
+f 1030//549 1029//546 1044//565
+f 1036//547 1035//545 1051//987
+f 1031//988 1030//549 1045//568
+f 1026//553 1025//550 1040//569
+f 1037//984 1036//547 1052//989
+f 1032//552 1031//988 1047//990
+f 1046//572 1045//568 1060//573
+f 1041//557 1040//569 1055//574
+f 1052//989 1051//987 1067//991
+f 1047//990 1046//572 1062//576
+f 1042//560 1041//557 1056//577
+f 1053//558 1052//989 1068//578
+f 1048//986 1047//990 1063//579
+f 1043//563 1042//560 1057//580
+f 1054//561 1053//558 1069//581
+f 1049//562 1048//986 1064//582
+f 1044//565 1043//563 1058//583
+f 1050//564 1049//562 1065//584
+f 1045//568 1044//565 1059//992
+f 1051//987 1050//564 1066//586
+f 1065//584 1064//582 1080//993
+f 1060//573 1059//992 1075//994
+f 1066//586 1065//584 1081//589
+f 1061//590 1060//573 1076//591
+f 1056//577 1055//574 1070//995
+f 1067//991 1066//586 1082//593
+f 1062//576 1061//590 1077//594
+f 1057//580 1056//577 1071//595
+f 1068//578 1067//991 1083//996
+f 1063//579 1062//576 1078//597
+f 1058//583 1057//580 1072//598
+f 1069//581 1068//578 1084//599
+f 1064//582 1063//579 1079//600
+f 1059//992 1058//583 1073//997
+f 1084//599 1083//996 1098//602
+f 1079//600 1078//597 1093//998
+f 1074//604 1073//997 1089//999
+f 1080//993 1079//600 1094//606
+f 1075//994 1074//604 1090//607
+f 1081//589 1080//993 1095//1000
+f 1076//591 1075//994 1091//609
+f 1071//595 1070//995 1086//1001
+f 1082//593 1081//589 1096//611
+f 1077//594 1076//591 1092//1002
+f 1072//598 1071//595 1087//613
+f 1083//996 1082//593 1097//614
+f 1078//597 1077//594 1093//998
+f 1073//997 1072//598 1088//615
+f 1098//602 1097//614 1112//1003
+f 1093//998 1092//1002 1107//617
+f 1088//615 1087//613 1103//618
+f 1099//619 1098//602 1113//620
+f 1094//606 1093//998 1108//1004
+f 1089//999 1088//615 1104//622
+f 1095//1000 1094//606 1109//623
+f 1090//607 1089//999 1105//1005
+f 1096//611 1095//1000 1110//625
+f 1091//609 1090//607 1106//626
+f 1086//1001 1085//627 1101//1006
+f 1097//614 1096//611 1111//1007
+f 1092//1002 1091//609 1107//617
+f 1087//613 1086//1001 1102//630
+f 1101//1006 1100//1008 1116//632
+f 1112//1003 1111//1007 1126//633
+f 1107//617 1106//626 1122//634
+f 1102//630 1101//1006 1117//1009
+f 1113//620 1112//1003 1127//636
+f 1108//1004 1107//617 1122//634
+f 1103//618 1102//630 1118//1010
+f 1114//1011 1113//620 1128//639
+f 1109//623 1108//1004 1123//640
+f 1104//622 1103//618 1119//641
+f 1110//625 1109//623 1124//1012
+f 1105//1005 1104//622 1120//643
+f 1111//1007 1110//625 1125//644
+f 1106//626 1105//1005 1121//645
+f 1120//643 1119//641 1135//1013
+f 1126//633 1125//644 1140//1014
+f 1121//645 1120//643 1136//648
+f 1116//632 1115//649 1131//1015
+f 1127//636 1126//633 1141//1016
+f 1122//634 1121//645 1137//652
+f 1117//1009 1116//632 1132//653
+f 1128//639 1127//636 1142//654
+f 1123//640 1122//634 1137//652
+f 1118//1010 1117//1009 1133//655
+f 1129//656 1128//639 1143//1017
+f 1124//1012 1123//640 1138//658
+f 1119//641 1118//1010 1134//1018
+f 1125//644 1124//1012 1139//660
+f 1139//660 1138//658 1153//1019
+f 1134//1018 1133//655 1149//662
+f 1140//1014 1139//660 1154//663
+f 1135//1013 1134//1018 1150//664
+f 1141//1016 1140//1014 1155//1020
+f 1136//648 1135//1013 1151//666
+f 1131//1015 1130//1021 1146//1022
+f 1142//654 1141//1016 1156//669
+f 1137//652 1136//648 1152//670
+f 1132//653 1131//1015 1147//671
+f 1143//1017 1142//654 1157//672
+f 1138//658 1137//652 1152//670
+f 1133//655 1132//653 1148//673
+f 1144//1023 1143//1017 1158//1024
+f 1158//1024 1157//672 1172//676
+f 1153//1019 1152//670 1167//1025
+f 1148//673 1147//671 1163//678
+f 1159//1026 1158//1024 1173//680
+f 1154//663 1153//1019 1168//681
+f 1149//662 1148//673 1164//1027
+f 1155//1020 1154//663 1169//683
+f 1150//664 1149//662 1165//684
+f 1156//669 1155//1020 1170//685
+f 1151//666 1150//664 1166//686
+f 1146//1022 1145//1028 1161//688
+f 1157//672 1156//669 1171//1029
+f 1152//670 1151//666 1167//1025
+f 1147//671 1146//1022 1162//690
+f 1161//688 1160//691 1176//692
+f 1172//676 1171//1029 1186//693
+f 1167//1025 1166//686 1181//694
+f 1162//690 1161//688 1177//1030
+f 1173//680 1172//676 1187//696
+f 1168//681 1167//1025 1182//697
+f 1163//678 1162//690 1178//1031
+f 1174//699 1173//680 1188//1032
+f 1169//683 1168//681 1183//701
+f 1164//1027 1163//678 1179//702
+f 1170//685 1169//683 1184//703
+f 1165//684 1164//1027 1180//704
+f 1171//1029 1170//685 1185//705
+f 1166//686 1165//684 1181//694
+f 1180//704 1179//702 1194//1033
+f 1186//693 1185//705 1200//707
+f 1181//694 1180//704 1195//708
+f 1176//692 1175//709 1191//1034
+f 1187//696 1186//693 1201//1035
+f 1182//697 1181//694 1196//1036
+f 1177//1030 1176//692 1192//713
+f 1188//1032 1187//696 1202//714
+f 1183//701 1182//697 1197//1037
+f 1178//1031 1177//1030 1193//716
+f 1189//1038 1188//1032 1203//718
+f 1184//703 1183//701 1198//1039
+f 1179//702 1178//1031 1194//1033
+f 1185//705 1184//703 1199//720
+f 1199//720 1198//1039 1213//721
+f 1194//1033 1193//716 1208//722
+f 1200//707 1199//720 1215//723
+f 1195//708 1194//1033 1209//724
+f 1201//1035 1200//707 1216//725
+f 1196//1036 1195//708 1210//726
+f 1191//1034 1190//727 1205//1040
+f 1202//714 1201//1035 1217//729
+f 1197//1037 1196//1036 1211//730
+f 1192//713 1191//1034 1206//731
+f 1203//718 1202//714 1218//732
+f 1198//1039 1197//1037 1212//733
+f 1193//716 1192//713 1207//734
+f 1204//735 1203//718 1219//736
+f 1218//732 1217//729 1233//737
+f 1213//721 1212//733 1227//738
+f 1208//722 1207//734 1222//739
+f 1219//736 1218//732 1234//740
+f 1214//741 1213//721 1229//742
+f 1209//724 1208//722 1223//743
+f 1215//723 1214//741 1230//744
+f 1210//726 1209//724 1224//745
+f 1216//725 1215//723 1231//746
+f 1211//730 1210//726 1225//747
+f 1206//731 1205//1040 1220//748
+f 1217//729 1216//725 1232//749
+f 1212//733 1211//730 1226//1041
+f 1207//734 1206//731 1221//1042
+f 1232//749 1231//746 1247//1043
+f 1227//738 1226//1041 1241//753
+f 1222//739 1221//1042 1236//1044
+f 1233//737 1232//749 1248//755
+f 1228//1045 1227//738 1242//757
+f 1223//743 1222//739 1237//1046
+f 1234//740 1233//737 1249//759
+f 1229//742 1228//1045 1244//1047
+f 1224//745 1223//743 1238//761
+f 1230//744 1229//742 1245//762
+f 1225//747 1224//745 1239//763
+f 1231//746 1230//744 1246//764
+f 1226//1041 1225//747 1240//765
+f 1221//1042 1220//748 1235//1048
+f 1246//764 1245//762 1261//1049
+f 1241//753 1240//765 1255//768
+f 1236//1044 1235//1048 1250//1050
+f 1247//1043 1246//764 1262//770
+f 1242//757 1241//753 1256//1051
+f 1237//1046 1236//1044 1251//1052
+f 1248//755 1247//1043 1263//1053
+f 1243//774 1242//757 1257//1054
+f 1238//761 1237//1046 1252//1055
+f 1249//759 1248//755 1264//1056
+f 1244//1047 1243//774 1259//778
+f 1239//763 1238//761 1253//1057
+f 1245//762 1244//1047 1260//780
+f 1240//765 1239//763 1254//781
+f 1254//781 1253//1057 1268//782
+f 1260//780 1259//778 1275//783
+f 1255//768 1254//781 1269//1058
+f 1261//1049 1260//780 1276//785
+f 1256//1051 1255//768 1270//1059
+f 1251//1052 1250//1050 1265//1060
+f 1262//770 1261//1049 1277//1061
+f 1257//1054 1256//1051 1271//789
+f 1252//1055 1251//1052 1266//790
+f 1263//1053 1262//770 1278//791
+f 1258//792 1257//1054 1272//1062
+f 1253//1057 1252//1055 1267//794
+f 1264//1056 1263//1053 1279//795
+f 1259//778 1258//792 1274//796
+f 1273//797 1272//1062 1287//798
+f 1268//782 1267//794 1282//799
+f 1279//795 1278//791 1294//1063
+f 1274//796 1273//797 1289//801
+f 1269//1058 1268//782 1283//802
+f 1275//783 1274//796 1290//803
+f 1270//1059 1269//1058 1284//804
+f 1276//785 1275//783 1291//805
+f 1271//789 1270//1059 1285//806
+f 1266//790 1265//1060 1280//1064
+f 1277//1061 1276//785 1292//808
+f 1272//1062 1271//789 1286//1065
+f 1267//794 1266//790 1281//810
+f 1278//791 1277//1061 1293//811
+f 1292//808 1291//805 1308//1066
+f 1287//798 1286//1065 1302//813
+f 1282//799 1281//810 1297//814
+f 1293//811 1292//808 1309//815
+f 1288//816 1287//798 1303//817
+f 1283//802 1282//799 1298//1067
+f 1294//1063 1293//811 1310//1068
+f 1289//801 1288//816 1305//820
+f 1284//804 1283//802 1299//821
+f 1290//803 1289//801 1306//822
+f 1285//806 1284//804 1300//823
+f 1291//805 1290//803 1307//824
+f 1286//1065 1285//806 1301//825
+f 1281//810 1280//1064 1296//1069
+f 1307//824 1306//822 1322//1070
+f 1302//813 1301//825 1316//1071
+f 1297//814 1296//1069 1311//829
+f 1308//1066 1307//824 1323//830
+f 1303//817 1302//813 1317//1072
+f 1298//1067 1297//814 1312//1073
+f 1309//815 1308//1066 1324//833
+f 1304//834 1303//817 1318//835
+f 1299//821 1298//1067 1313//836
+f 1310//1068 1309//815 1325//1074
+f 1305//820 1304//834 1319//838
+f 1300//823 1299//821 1314//839
+f 1306//822 1305//820 1320//840
+f 1301//825 1300//823 1315//1075
+f 1315//1075 1314//839 1330//1076
+f 1321//843 1320//840 1335//844
+f 1316//1071 1315//1075 1331//845
+f 1322//1070 1321//843 1336//1077
+f 1317//1072 1316//1071 1332//1078
+f 1312//1073 1311//829 1327//848
+f 1323//830 1322//1070 1337//849
+f 1318//835 1317//1072 1332//1078
+f 1313//836 1312//1073 1328//850
+f 1324//833 1323//830 1338//851
+f 1319//838 1318//835 1333//852
+f 1314//839 1313//836 1329//853
+f 1325//1074 1324//833 1339//1079
+f 1320//840 1319//838 1334//855
+f 1334//855 1333//852 1348//856
+f 1329//853 1328//850 1344//857
+f 1340//858 1339//1079 1354//859
+f 1335//844 1334//855 1349//860
+f 1330//1076 1329//853 1345//861
+f 1336//1077 1335//844 1350//862
+f 1331//845 1330//1076 1346//863
+f 1337//849 1336//1077 1351//864
+f 1332//1078 1331//845 1347//1080
+f 1327//848 1326//866 1342//867
+f 1338//851 1337//849 1352//868
+f 1333//852 1332//1078 1348//856
+f 1328//850 1327//848 1343//869
+f 1339//1079 1338//851 1353//870
+f 1353//870 1352//868 1367//1081
+f 1348//856 1347//1080 1363//872
+f 1343//869 1342//867 1358//873
+f 1354//859 1353//870 1368//874
+f 1349//860 1348//856 1363//872
+f 1344//857 1343//869 1359//875
+f 1355//1082 1354//859 1369//877
+f 1350//862 1349//860 1364//878
+f 1345//861 1344//857 1360//1083
+f 1351//864 1350//862 1365//880
+f 1346//863 1345//861 1361//1084
+f 1352//868 1351//864 1366//1085
+f 1347//1080 1346//863 1362//883
+f 1342//867 1341//884 1357//885
+f 1367//1081 1366//1085 1381//1086
+f 1362//883 1361//1084 1377//1087
+f 1357//885 1356//888 1372//889
+f 1368//874 1367//1081 1382//1088
+f 1363//872 1362//883 1378//891
+f 1358//873 1357//885 1373//1089
+f 1369//877 1368//874 1383//893
+f 1364//878 1363//872 1378//891
+f 1359//875 1358//873 1374//894
+f 1370//895 1369//877 1384//896
+f 1365//880 1364//878 1379//897
+f 1360//1083 1359//875 1375//1090
+f 1366//1085 1365//880 1380//899
+f 1361//1084 1360//1083 1376//900
+f 1381//1086 1380//899 1395//901
+f 1376//900 1375//1090 1391//902
+f 1382//1088 1381//1086 1396//1091
+f 1377//1087 1376//900 1392//904
+f 1372//889 1371//1092 1387//1093
+f 1383//893 1382//1088 1397//907
+f 1378//891 1377//1087 1393//908
+f 1373//1089 1372//889 1388//909
+f 1384//896 1383//893 1398//910
+f 1379//897 1378//891 1393//908
+f 1374//894 1373//1089 1389//911
+f 1385//912 1384//896 1399//913
+f 1380//899 1379//897 1394//914
+f 1375//1090 1374//894 1390//1094
+f 1389//911 1388//909 1404//916
+f 1400//1095 1399//913 1414//1096
+f 1395//901 1394//914 1409//919
+f 1390//1094 1389//911 1405//920
+f 1396//1091 1395//901 1410//921
+f 1391//902 1390//1094 1406//922
+f 1397//907 1396//1091 1411//1097
+f 1392//904 1391//902 1407//924
+f 1387//1093 1386//1098 1402//1099
+f 1398//910 1397//907 1412//927
+f 1393//908 1392//904 1408//1100
+f 1388//909 1387//1093 1403//929
+f 1399//913 1398//910 1413//930
+f 1394//914 1393//908 1408//1100
+f 1408//1100 1407//924 1424//931
+f 1403//929 1402//1099 1419//932
+f 1414//1096 1413//930 1429//1101
+f 1409//919 1408//1100 1425//934
+f 1404//916 1403//929 1420//935
+f 1415//936 1414//1096 1430//937
+f 1410//921 1409//919 1425//934
+f 1405//920 1404//916 1421//938
+f 1411//1097 1410//921 1426//939
+f 1406//922 1405//920 1422//940
+f 1412//927 1411//1097 1427//941
+f 1407//924 1406//922 1423//942
+f 1402//1099 1401//943 1418//1102
+f 1413//930 1412//927 1428//945
+f 1428//945 1427//941 1442//946
+f 1423//942 1422//940 1438//1103
+f 1418//1102 1417//1104 1433//949
+f 1429//1101 1428//945 1443//950
+f 1424//931 1423//942 1439//951
+f 1419//932 1418//1102 1434//952
+f 1430//937 1429//1101 1444//953
+f 1425//934 1424//931 1440//954
+f 1420//935 1419//932 1435//955
+f 1431//956 1430//937 1445//1105
+f 1426//939 1425//934 1441//958
+f 1421//938 1420//935 1436//959
+f 1427//941 1426//939 1442//946
+f 1422//940 1421//938 1437//960
+f 1295//961 979//971 994//503
+f 965//487 1416//962 980//965
+f 1295//961 994//503 1009//977
+f 980//965 1416//962 995//514
+f 995//514 1416//962 1010//532
+f 1295//961 1009//977 1024//539
+f 1295//961 1024//539 1039//982
+f 1010//532 1416//962 1025//550
+f 1295//961 1039//982 1054//561
+f 1025//550 1416//962 1040//569
+f 1295//961 1054//561 1069//581
+f 1040//569 1416//962 1055//574
+f 1055//574 1416//962 1070//995
+f 1295//961 1069//581 1084//599
+f 1295//961 1084//599 1099//619
+f 1070//995 1416//962 1085//627
+f 1295//961 1099//619 1114//1011
+f 1085//627 1416//962 1100//1008
+f 1295//961 1114//1011 1129//656
+f 1100//1008 1416//962 1115//649
+f 1115//649 1416//962 1130//1021
+f 1295//961 1129//656 1144//1023
+f 1295//961 1144//1023 1159//1026
+f 1130//1021 1416//962 1145//1028
+f 1295//961 1159//1026 1174//699
+f 1145//1028 1416//962 1160//691
+f 1295//961 1174//699 1189//1038
+f 1160//691 1416//962 1175//709
+f 1175//709 1416//962 1190//727
+f 1295//961 1189//1038 1204//735
+f 1295//961 1204//735 1219//736
+f 1190//727 1416//962 1205//1040
+f 1295//961 1219//736 1234//740
+f 1205//1040 1416//962 1220//748
+f 1295//961 1234//740 1249//759
+f 1220//748 1416//962 1235//1048
+f 1235//1048 1416//962 1250//1050
+f 1295//961 1249//759 1264//1056
+f 1295//961 1264//1056 1279//795
+f 1250//1050 1416//962 1265//1060
+f 1295//961 1279//795 1294//1063
+f 1265//1060 1416//962 1280//1064
+f 1295//961 1294//1063 1310//1068
+f 1280//1064 1416//962 1296//1069
+f 1296//1069 1416//962 1311//829
+f 1295//961 1310//1068 1325//1074
+f 1295//961 1325//1074 1340//858
+f 1311//829 1416//962 1326//866
+f 1295//961 1340//858 1355//1082
+f 1326//866 1416//962 1341//884
+f 1295//961 1355//1082 1370//895
+f 1341//884 1416//962 1356//888
+f 1295//961 1370//895 1385//912
+f 1356//888 1416//962 1371//1092
+f 1295//961 1385//912 1400//1095
+f 1371//1092 1416//962 1386//1098
+f 1295//961 1400//1095 1415//936
+f 1386//1098 1416//962 1401//943
+f 1295//961 1415//936 1431//956
+f 1401//943 1416//962 1417//1104
+f 1295//961 1431//956 1446//1106
+f 1417//1104 1416//962 1432//964
+f 1295//961 1446//1106 979//971
+f 1442//946 1441//958 975//972
+f 1437//960 1436//959 969//506
+f 1432//964 1416//962 965//487
+f 1443//950 1442//946 976//966
+f 1438//1103 1437//960 971//483
+f 1433//949 1432//964 965//487
+f 1444//953 1443//950 977//489
+f 1439//951 1438//1103 972//492
+f 1434//952 1433//949 966//486
+f 1445//1105 1444//953 978//496
+f 1440//954 1439//951 973//498
+f 1435//955 1434//952 967//494
+f 1446//1106 1445//1105 979//971
+f 1441//958 1440//954 974//504
+f 1436//959 1435//955 968//500
+f 504//512 489//483 503//485
+f 499//495 484//486 498//488
+f 494//490 509//511 510//491
+f 489//483 504//512 505//493
+f 500//501 485//494 499//495
+f 495//489 510//491 511//497
+f 490//492 505//493 506//499
+f 501//507 486//500 500//501
+f 496//496 511//497 512//503
+f 491//498 506//499 507//505
+f 502//510 487//506 501//507
+f 492//504 507//505 508//509
+f 503//485 488//484 502//510
+f 493//508 508//509 509//511
+f 519//530 504//512 518//513
+f 514//517 499//495 513//514
+f 509//511 524//526 525//515
+f 504//512 519//530 520//516
+f 515//520 500//501 514//517
+f 510//491 525//515 526//518
+f 505//493 520//516 521//519
+f 516//523 501//507 515//520
+f 511//497 526//518 527//521
+f 506//499 521//519 522//522
+f 517//525 502//510 516//523
+f 507//505 522//522 523//524
+f 518//513 503//485 517//525
+f 508//509 523//524 524//526
+f 522//522 537//540 538//527
+f 533//531 518//513 532//528
+f 523//524 538//527 539//529
+f 534//548 519//530 533//531
+f 529//535 514//517 528//532
+f 524//526 539//529 540//533
+f 519//530 534//548 535//534
+f 530//538 515//520 529//535
+f 525//515 540//533 541//536
+f 520//516 535//534 536//537
+f 531//541 516//523 530//538
+f 526//518 541//536 542//539
+f 521//519 536//537 537//540
+f 532//528 517//525 531//541
+f 541//536 556//554 557//542
+f 536//537 551//555 552//543
+f 547//546 532//528 546//544
+f 537//540 552//543 553//545
+f 548//549 533//531 547//546
+f 538//527 553//545 554//547
+f 549//567 534//548 548//549
+f 544//553 529//535 543//550
+f 539//529 554//547 555//551
+f 534//548 549//567 550//552
+f 545//556 530//538 544//553
+f 540//533 555//551 556//554
+f 535//534 550//552 551//555
+f 546//544 531//541 545//556
+f 560//560 545//556 559//557
+f 555//551 570//570 571//558
+f 550//552 565//571 566//559
+f 561//563 546//544 560//560
+f 556//554 571//558 572//561
+f 551//555 566//559 567//562
+f 562//565 547//546 561//563
+f 552//543 567//562 568//564
+f 563//568 548//549 562//565
+f 553//545 568//564 569//566
+f 564//572 549//567 563//568
+f 559//557 544//553 558//569
+f 554//547 569//566 570//570
+f 549//567 564//572 565//571
+f 579//590 564//572 578//573
+f 574//577 559//557 573//574
+f 569//566 584//586 585//575
+f 564//572 579//590 580//576
+f 575//580 560//560 574//577
+f 570//570 585//575 586//578
+f 565//571 580//576 581//579
+f 576//583 561//563 575//580
+f 571//558 586//578 587//581
+f 566//559 581//579 582//582
+f 577//585 562//565 576//583
+f 567//562 582//582 583//584
+f 578//573 563//568 577//585
+f 568//564 583//584 584//586
+f 582//582 597//600 598//587
+f 577//585 592//604 593//588
+f 583//584 598//587 599//589
+f 578//573 593//588 594//591
+f 589//595 574//577 588//592
+f 584//586 599//589 600//593
+f 579//590 594//591 595//594
+f 590//598 575//580 589//595
+f 585//575 600//593 601//596
+f 580//576 595//594 596//597
+f 591//601 576//583 590//598
+f 586//578 601//596 602//599
+f 581//579 596//597 597//600
+f 592//604 577//585 591//601
+f 617//619 602//599 616//602
+f 612//606 597//600 611//603
+f 591//601 606//615 607//605
+f 613//608 598//587 612//606
+f 592//604 607//605 608//607
+f 614//611 599//589 613//608
+f 593//588 608//607 609//609
+f 588//592 603//627 604//610
+f 615//614 600//593 614//611
+f 594//591 609//609 610//612
+f 589//595 604//610 605//613
+f 616//602 601//596 615//614
+f 595//594 610//612 611//603
+f 590//598 605//613 606//615
+f 631//620 616//602 630//616
+f 626//621 611//603 625//617
+f 605//613 620//630 621//618
+f 632//638 617//619 631//620
+f 627//623 612//606 626//621
+f 606//615 621//618 622//622
+f 628//625 613//608 627//623
+f 607//605 622//622 623//624
+f 629//629 614//611 628//625
+f 608//607 623//624 624//626
+f 603//627 618//631 619//628
+f 630//616 615//614 629//629
+f 609//609 624//626 625//617
+f 604//610 619//628 620//630
+f 618//631 633//649 634//632
+f 645//636 630//616 644//633
+f 624//626 639//645 640//634
+f 619//628 634//632 635//635
+f 646//639 631//620 645//636
+f 641//640 626//621 640//634
+f 620//630 635//635 636//637
+f 647//656 632//638 646//639
+f 642//642 627//623 641//640
+f 621//618 636//637 637//641
+f 643//644 628//625 642//642
+f 622//622 637//641 638//643
+f 644//633 629//629 643//644
+f 623//624 638//643 639//645
+f 637//641 652//659 653//646
+f 659//651 644//633 658//647
+f 638//643 653//646 654//648
+f 633//649 648//667 649//650
+f 660//654 645//636 659//651
+f 639//645 654//648 655//652
+f 634//632 649//650 650//653
+f 661//657 646//639 660//654
+f 656//658 641//640 655//652
+f 635//635 650//653 651//655
+f 662//674 647//656 661//657
+f 657//660 642//642 656//658
+f 636//637 651//655 652//659
+f 658//647 643//644 657//660
+f 672//663 657//660 671//661
+f 651//655 666//673 667//662
+f 673//665 658//647 672//663
+f 652//659 667//662 668//664
+f 674//669 659//651 673//665
+f 653//646 668//664 669//666
+f 648//667 663//687 664//668
+f 675//672 660//654 674//669
+f 654//648 669//666 670//670
+f 649//650 664//668 665//671
+f 676//675 661//657 675//672
+f 671//661 656//658 670//670
+f 650//653 665//671 666//673
+f 677//679 662//674 676//675
+f 691//680 676//675 690//676
+f 686//681 671//661 685//677
+f 665//671 680//690 681//678
+f 692//699 677//679 691//680
+f 687//683 672//663 686//681
+f 666//673 681//678 682//682
+f 688//685 673//665 687//683
+f 667//662 682//682 683//684
+f 689//689 674//669 688//685
+f 668//664 683//684 684//686
+f 663//687 678//691 679//688
+f 690//676 675//672 689//689
+f 669//666 684//686 685//677
+f 664//668 679//688 680//690
+f 678//691 693//709 694//692
+f 705//696 690//676 704//693
+f 700//697 685//677 699//694
+f 679//688 694//692 695//695
+f 706//700 691//680 705//696
+f 701//701 686//681 700//697
+f 680//690 695//695 696//698
+f 707//717 692//699 706//700
+f 702//703 687//683 701//701
+f 681//678 696//698 697//702
+f 703//705 688//685 702//703
+f 682//682 697//702 698//704
+f 704//693 689//689 703//705
+f 683//684 698//704 699//694
+f 713//708 698//704 712//706
+f 719//711 704//693 718//707
+f 714//712 699//694 713//708
+f 693//709 708//727 709//710
+f 720//714 705//696 719//711
+f 715//715 700//697 714//712
+f 694//692 709//710 710//713
+f 721//718 706//700 720//714
+f 716//719 701//701 715//715
+f 695//695 710//713 711//716
+f 722//735 707//717 721//718
+f 717//720 702//703 716//719
+f 696//698 711//716 712//706
+f 718//707 703//705 717//720
+f 732//741 717//720 731//721
+f 727//724 712//706 726//722
+f 717//720 732//741 733//723
+f 728//726 713//708 727//724
+f 718//707 733//723 734//725
+f 729//730 714//712 728//726
+f 724//731 709//710 723//728
+f 719//711 734//725 735//729
+f 730//733 715//715 729//730
+f 725//734 710//713 724//731
+f 720//714 735//729 736//732
+f 731//721 716//719 730//733
+f 726//722 711//716 725//734
+f 721//718 736//732 737//736
+f 735//729 750//749 751//737
+f 746//756 731//721 745//738
+f 741//743 726//722 740//739
+f 736//732 751//737 752//740
+f 731//721 746//756 747//742
+f 742//745 727//724 741//743
+f 732//741 747//742 748//744
+f 743//747 728//726 742//745
+f 733//723 748//744 749//746
+f 744//750 729//730 743//747
+f 739//751 724//731 738//748
+f 734//725 749//746 750//749
+f 745//738 730//733 744//750
+f 740//739 725//734 739//751
+f 749//746 764//764 765//752
+f 760//757 745//738 759//753
+f 755//758 740//739 754//754
+f 750//749 765//752 766//755
+f 761//774 746//756 760//757
+f 756//761 741//743 755//758
+f 751//737 766//755 767//759
+f 746//756 761//774 762//760
+f 757//763 742//745 756//761
+f 747//742 762//760 763//762
+f 758//765 743//747 757//763
+f 748//744 763//762 764//764
+f 759//753 744//750 758//765
+f 754//754 739//751 753//766
+f 763//762 778//780 779//767
+f 774//771 759//753 773//768
+f 769//772 754//754 768//769
+f 764//764 779//767 780//770
+f 775//775 760//757 774//771
+f 770//776 755//758 769//772
+f 765//752 780//770 781//773
+f 776//792 761//774 775//775
+f 771//779 756//761 770//776
+f 766//755 781//773 782//777
+f 761//774 776//792 777//778
+f 772//781 757//763 771//779
+f 762//760 777//778 778//780
+f 773//768 758//765 772//781
+f 787//784 772//781 786//782
+f 777//778 792//796 793//783
+f 788//786 773//768 787//784
+f 778//780 793//783 794//785
+f 789//789 774//771 788//786
+f 784//790 769//772 783//787
+f 779//767 794//785 795//788
+f 790//793 775//775 789//789
+f 785//794 770//776 784//790
+f 780//770 795//788 796//791
+f 791//797 776//792 790//793
+f 786//782 771//779 785//794
+f 781//773 796//791 797//795
+f 776//792 791//797 792//796
+f 806//816 791//797 805//798
+f 801//802 786//782 800//799
+f 796//791 811//811 812//800
+f 791//797 806//816 807//801
+f 802//804 787//784 801//802
+f 792//796 807//801 808//803
+f 803//806 788//786 802//804
+f 793//783 808//803 809//805
+f 804//809 789//789 803//806
+f 799//810 784//790 798//807
+f 794//785 809//805 810//808
+f 805//798 790//793 804//809
+f 800//799 785//794 799//810
+f 795//788 810//808 811//811
+f 809//805 825//824 826//812
+f 821//817 805//798 820//813
+f 816//818 800//799 815//814
+f 810//808 826//812 827//815
+f 822//834 806//816 821//817
+f 817//821 801//802 816//818
+f 811//811 827//815 828//819
+f 806//816 822//834 823//820
+f 818//823 802//804 817//821
+f 807//801 823//820 824//822
+f 819//825 803//806 818//823
+f 808//803 824//822 825//824
+f 820//813 804//809 819//825
+f 815//814 799//810 814//826
+f 824//822 839//843 840//827
+f 835//831 820//813 834//828
+f 830//832 815//814 829//829
+f 825//824 840//827 841//830
+f 836//835 821//817 835//831
+f 831//836 816//818 830//832
+f 826//812 841//830 842//833
+f 837//838 822//834 836//835
+f 832//839 817//821 831//836
+f 827//815 842//833 843//837
+f 838//840 823//820 837//838
+f 833//841 818//823 832//839
+f 839//843 824//822 838//840
+f 834//828 819//825 833//841
+f 832//839 847//853 848//842
+f 854//846 839//843 853//844
+f 833//841 848//842 849//845
+f 855//849 840//827 854//846
+f 834//828 849//845 850//847
+f 829//829 844//866 845//848
+f 856//851 841//830 855//849
+f 851//852 836//835 850//847
+f 830//832 845//848 846//850
+f 857//854 842//833 856//851
+f 852//855 837//838 851//852
+f 831//836 846//850 847//853
+f 858//858 843//837 857//854
+f 853//844 838//840 852//855
+f 867//860 852//855 866//856
+f 846//850 861//869 862//857
+f 873//876 858//858 872//859
+f 868//862 853//844 867//860
+f 847//853 862//857 863//861
+f 869//864 854//846 868//862
+f 848//842 863//861 864//863
+f 870//868 855//849 869//864
+f 849//845 864//863 865//865
+f 844//866 859//884 860//867
+f 871//870 856//851 870//868
+f 850//847 865//865 866//856
+f 845//848 860//867 861//869
+f 872//859 857//854 871//870
+f 886//874 871//870 885//871
+f 865//865 880//883 881//872
+f 860//867 875//885 876//873
+f 887//877 872//859 886//874
+f 882//878 867//860 881//872
+f 861//869 876//873 877//875
+f 888//895 873//876 887//877
+f 883//880 868//862 882//878
+f 862//857 877//875 878//879
+f 884//882 869//864 883//880
+f 863//861 878//879 879//881
+f 885//871 870//868 884//882
+f 864//863 879//881 880//883
+f 859//884 874//888 875//885
+f 900//890 885//871 899//886
+f 879//881 894//900 895//887
+f 874//888 889//905 890//889
+f 901//893 886//874 900//890
+f 880//883 895//887 896//891
+f 875//885 890//889 891//892
+f 902//896 887//877 901//893
+f 897//897 882//878 896//891
+f 876//873 891//892 892//894
+f 903//912 888//895 902//896
+f 898//899 883//880 897//897
+f 877//875 892//894 893//898
+f 899//886 884//882 898//899
+f 878//879 893//898 894//900
+f 914//903 899//886 913//901
+f 893//898 908//915 909//902
+f 915//907 900//890 914//903
+f 894//900 909//902 910//904
+f 889//905 904//925 905//906
+f 916//910 901//893 915//907
+f 895//887 910//904 911//908
+f 890//889 905//906 906//909
+f 917//913 902//896 916//910
+f 912//914 897//897 911//908
+f 891//892 906//909 907//911
+f 918//917 903//912 917//913
+f 913//901 898//899 912//914
+f 892//894 907//911 908//915
+f 906//909 921//929 922//916
+f 933//936 918//917 932//918
+f 928//921 913//901 927//919
+f 907//911 922//916 923//920
+f 929//923 914//903 928//921
+f 908//915 923//920 924//922
+f 930//927 915//907 929//923
+f 909//902 924//922 925//924
+f 904//925 919//943 920//926
+f 931//930 916//910 930//927
+f 910//904 925//924 926//928
+f 905//906 920//926 921//929
+f 932//918 917//913 931//930
+f 927//919 912//914 926//928
+f 925//924 941//942 942//931
+f 920//926 936//944 937//932
+f 948//937 932//918 947//933
+f 926//928 942//931 943//934
+f 921//929 937//932 938//935
+f 949//956 933//936 948//937
+f 944//939 928//921 943//934
+f 922//916 938//935 939//938
+f 945//941 929//923 944//939
+f 923//920 939//938 940//940
+f 946//945 930//927 945//941
+f 924//922 940//940 941//942
+f 919//943 935//948 936//944
+f 947//933 931//930 946//945
+f 961//950 946//945 960//946
+f 940//940 955//960 956//947
+f 935//948 950//964 951//949
+f 962//953 947//933 961//950
+f 941//942 956//947 957//951
+f 936//944 951//949 952//952
+f 963//957 948//937 962//953
+f 942//931 957//951 958//954
+f 937//932 952//952 953//955
+f 964//963 949//956 963//957
+f 943//934 958//954 959//958
+f 938//935 953//955 954//959
+f 944//939 959//958 960//946
+f 939//938 954//959 955//960
+f 959//958 492//504 493//508
+f 488//484 955//960 487//506
+f 960//946 493//508 494//490
+f 955//960 488//484 489//483
+f 484//486 951//949 483//487
+f 961//950 494//490 495//489
+f 956//947 489//483 490//492
+f 485//494 952//952 484//486
+f 962//953 495//489 496//496
+f 957//951 490//492 491//498
+f 486//500 953//955 485//494
+f 963//957 496//496 497//502
+f 958//954 491//498 492//504
+f 487//506 954//959 486//500
+f 986//512 971//483 985//485
+f 981//969 966//486 980//965
+f 976//966 991//511 992//967
+f 971//483 986//512 987//968
+f 982//970 967//494 981//969
+f 977//489 992//967 993//497
+f 972//492 987//968 988//499
+f 983//507 968//500 982//970
+f 978//496 993//497 994//503
+f 973//498 988//499 989//505
+f 984//510 969//506 983//507
+f 974//504 989//505 990//509
+f 985//485 970//484 984//510
+f 975//972 990//509 991//511
+f 1001//530 986//512 1000//973
+f 996//517 981//969 995//514
+f 991//511 1006//526 1007//974
+f 986//512 1001//530 1002//516
+f 997//976 982//970 996//517
+f 992//967 1007//974 1008//975
+f 987//968 1002//516 1003//519
+f 998//523 983//507 997//976
+f 993//497 1008//975 1009//977
+f 988//499 1003//519 1004//522
+f 999//525 984//510 998//523
+f 989//505 1004//522 1005//978
+f 1000//973 985//485 999//525
+f 990//509 1005//978 1006//526
+f 1004//522 1019//540 1020//527
+f 1015//531 1000//973 1014//528
+f 1005//978 1020//527 1021//979
+f 1016//983 1001//530 1015//531
+f 1011//535 996//517 1010//532
+f 1006//526 1021//979 1022//533
+f 1001//530 1016//983 1017//534
+f 1012//538 997//976 1011//535
+f 1007//974 1022//533 1023//980
+f 1002//516 1017//534 1018//981
+f 1013//541 998//523 1012//538
+f 1008//975 1023//980 1024//539
+f 1003//519 1018//981 1019//540
+f 1014//528 999//525 1013//541
+f 1023//980 1038//554 1039//982
+f 1018//981 1033//555 1034//543
+f 1029//546 1014//528 1028//544
+f 1019//540 1034//543 1035//545
+f 1030//549 1015//531 1029//546
+f 1020//527 1035//545 1036//547
+f 1031//988 1016//983 1030//549
+f 1026//553 1011//535 1025//550
+f 1021//979 1036//547 1037//984
+f 1016//983 1031//988 1032//552
+f 1027//985 1012//538 1026//553
+f 1022//533 1037//984 1038//554
+f 1017//534 1032//552 1033//555
+f 1028//544 1013//541 1027//985
+f 1042//560 1027//985 1041//557
+f 1037//984 1052//989 1053//558
+f 1032//552 1047//990 1048//986
+f 1043//563 1028//544 1042//560
+f 1038//554 1053//558 1054//561
+f 1033//555 1048//986 1049//562
+f 1044//565 1029//546 1043//563
+f 1034//543 1049//562 1050//564
+f 1045//568 1030//549 1044//565
+f 1035//545 1050//564 1051//987
+f 1046//572 1031//988 1045//568
+f 1041//557 1026//553 1040//569
+f 1036//547 1051//987 1052//989
+f 1031//988 1046//572 1047//990
+f 1061//590 1046//572 1060//573
+f 1056//577 1041//557 1055//574
+f 1051//987 1066//586 1067//991
+f 1046//572 1061//590 1062//576
+f 1057//580 1042//560 1056//577
+f 1052//989 1067//991 1068//578
+f 1047//990 1062//576 1063//579
+f 1058//583 1043//563 1057//580
+f 1053//558 1068//578 1069//581
+f 1048//986 1063//579 1064//582
+f 1059//992 1044//565 1058//583
+f 1049//562 1064//582 1065//584
+f 1060//573 1045//568 1059//992
+f 1050//564 1065//584 1066//586
+f 1064//582 1079//600 1080//993
+f 1059//992 1074//604 1075//994
+f 1065//584 1080//993 1081//589
+f 1060//573 1075//994 1076//591
+f 1071//595 1056//577 1070//995
+f 1066//586 1081//589 1082//593
+f 1061//590 1076//591 1077//594
+f 1072//598 1057//580 1071//595
+f 1067//991 1082//593 1083//996
+f 1062//576 1077//594 1078//597
+f 1073//997 1058//583 1072//598
+f 1068//578 1083//996 1084//599
+f 1063//579 1078//597 1079//600
+f 1074//604 1059//992 1073//997
+f 1099//619 1084//599 1098//602
+f 1094//606 1079//600 1093//998
+f 1073//997 1088//615 1089//999
+f 1095//1000 1080//993 1094//606
+f 1074//604 1089//999 1090//607
+f 1096//611 1081//589 1095//1000
+f 1075//994 1090//607 1091//609
+f 1070//995 1085//627 1086//1001
+f 1097//614 1082//593 1096//611
+f 1076//591 1091//609 1092//1002
+f 1071//595 1086//1001 1087//613
+f 1098//602 1083//996 1097//614
+f 1077//594 1092//1002 1093//998
+f 1072//598 1087//613 1088//615
+f 1113//620 1098//602 1112//1003
+f 1108//1004 1093//998 1107//617
+f 1087//613 1102//630 1103//618
+f 1114//1011 1099//619 1113//620
+f 1109//623 1094//606 1108//1004
+f 1088//615 1103//618 1104//622
+f 1110//625 1095//1000 1109//623
+f 1089//999 1104//622 1105//1005
+f 1111//1007 1096//611 1110//625
+f 1090//607 1105//1005 1106//626
+f 1085//627 1100//1008 1101//1006
+f 1112//1003 1097//614 1111//1007
+f 1091//609 1106//626 1107//617
+f 1086//1001 1101//1006 1102//630
+f 1100//1008 1115//649 1116//632
+f 1127//636 1112//1003 1126//633
+f 1106//626 1121//645 1122//634
+f 1101//1006 1116//632 1117//1009
+f 1128//639 1113//620 1127//636
+f 1123//640 1108//1004 1122//634
+f 1102//630 1117//1009 1118//1010
+f 1129//656 1114//1011 1128//639
+f 1124//1012 1109//623 1123//640
+f 1103//618 1118//1010 1119//641
+f 1125//644 1110//625 1124//1012
+f 1104//622 1119//641 1120//643
+f 1126//633 1111//1007 1125//644
+f 1105//1005 1120//643 1121//645
+f 1119//641 1134//1018 1135//1013
+f 1141//1016 1126//633 1140//1014
+f 1120//643 1135//1013 1136//648
+f 1115//649 1130//1021 1131//1015
+f 1142//654 1127//636 1141//1016
+f 1121//645 1136//648 1137//652
+f 1116//632 1131//1015 1132//653
+f 1143//1017 1128//639 1142//654
+f 1138//658 1123//640 1137//652
+f 1117//1009 1132//653 1133//655
+f 1144//1023 1129//656 1143//1017
+f 1139//660 1124//1012 1138//658
+f 1118//1010 1133//655 1134//1018
+f 1140//1014 1125//644 1139//660
+f 1154//663 1139//660 1153//1019
+f 1133//655 1148//673 1149//662
+f 1155//1020 1140//1014 1154//663
+f 1134//1018 1149//662 1150//664
+f 1156//669 1141//1016 1155//1020
+f 1135//1013 1150//664 1151//666
+f 1130//1021 1145//1028 1146//1022
+f 1157//672 1142//654 1156//669
+f 1136//648 1151//666 1152//670
+f 1131//1015 1146//1022 1147//671
+f 1158//1024 1143//1017 1157//672
+f 1153//1019 1138//658 1152//670
+f 1132//653 1147//671 1148//673
+f 1159//1026 1144//1023 1158//1024
+f 1173//680 1158//1024 1172//676
+f 1168//681 1153//1019 1167//1025
+f 1147//671 1162//690 1163//678
+f 1174//699 1159//1026 1173//680
+f 1169//683 1154//663 1168//681
+f 1148//673 1163//678 1164//1027
+f 1170//685 1155//1020 1169//683
+f 1149//662 1164//1027 1165//684
+f 1171//1029 1156//669 1170//685
+f 1150//664 1165//684 1166//686
+f 1145//1028 1160//691 1161//688
+f 1172//676 1157//672 1171//1029
+f 1151//666 1166//686 1167//1025
+f 1146//1022 1161//688 1162//690
+f 1160//691 1175//709 1176//692
+f 1187//696 1172//676 1186//693
+f 1182//697 1167//1025 1181//694
+f 1161//688 1176//692 1177//1030
+f 1188//1032 1173//680 1187//696
+f 1183//701 1168//681 1182//697
+f 1162//690 1177//1030 1178//1031
+f 1189//1038 1174//699 1188//1032
+f 1184//703 1169//683 1183//701
+f 1163//678 1178//1031 1179//702
+f 1185//705 1170//685 1184//703
+f 1164//1027 1179//702 1180//704
+f 1186//693 1171//1029 1185//705
+f 1165//684 1180//704 1181//694
+f 1195//708 1180//704 1194//1033
+f 1201//1035 1186//693 1200//707
+f 1196//1036 1181//694 1195//708
+f 1175//709 1190//727 1191//1034
+f 1202//714 1187//696 1201//1035
+f 1197//1037 1182//697 1196//1036
+f 1176//692 1191//1034 1192//713
+f 1203//718 1188//1032 1202//714
+f 1198//1039 1183//701 1197//1037
+f 1177//1030 1192//713 1193//716
+f 1204//735 1189//1038 1203//718
+f 1199//720 1184//703 1198//1039
+f 1178//1031 1193//716 1194//1033
+f 1200//707 1185//705 1199//720
+f 1214//741 1199//720 1213//721
+f 1209//724 1194//1033 1208//722
+f 1199//720 1214//741 1215//723
+f 1210//726 1195//708 1209//724
+f 1200//707 1215//723 1216//725
+f 1211//730 1196//1036 1210//726
+f 1206//731 1191//1034 1205//1040
+f 1201//1035 1216//725 1217//729
+f 1212//733 1197//1037 1211//730
+f 1207//734 1192//713 1206//731
+f 1202//714 1217//729 1218//732
+f 1213//721 1198//1039 1212//733
+f 1208//722 1193//716 1207//734
+f 1203//718 1218//732 1219//736
+f 1217//729 1232//749 1233//737
+f 1228//1045 1213//721 1227//738
+f 1223//743 1208//722 1222//739
+f 1218//732 1233//737 1234//740
+f 1213//721 1228//1045 1229//742
+f 1224//745 1209//724 1223//743
+f 1214//741 1229//742 1230//744
+f 1225//747 1210//726 1224//745
+f 1215//723 1230//744 1231//746
+f 1226//1041 1211//730 1225//747
+f 1221//1042 1206//731 1220//748
+f 1216//725 1231//746 1232//749
+f 1227//738 1212//733 1226//1041
+f 1222//739 1207//734 1221//1042
+f 1231//746 1246//764 1247//1043
+f 1242//757 1227//738 1241//753
+f 1237//1046 1222//739 1236//1044
+f 1232//749 1247//1043 1248//755
+f 1243//774 1228//1045 1242//757
+f 1238//761 1223//743 1237//1046
+f 1233//737 1248//755 1249//759
+f 1228//1045 1243//774 1244//1047
+f 1239//763 1224//745 1238//761
+f 1229//742 1244//1047 1245//762
+f 1240//765 1225//747 1239//763
+f 1230//744 1245//762 1246//764
+f 1241//753 1226//1041 1240//765
+f 1236//1044 1221//1042 1235//1048
+f 1245//762 1260//780 1261//1049
+f 1256//1051 1241//753 1255//768
+f 1251//1052 1236//1044 1250//1050
+f 1246//764 1261//1049 1262//770
+f 1257//1054 1242//757 1256//1051
+f 1252//1055 1237//1046 1251//1052
+f 1247//1043 1262//770 1263//1053
+f 1258//792 1243//774 1257//1054
+f 1253//1057 1238//761 1252//1055
+f 1248//755 1263//1053 1264//1056
+f 1243//774 1258//792 1259//778
+f 1254//781 1239//763 1253//1057
+f 1244//1047 1259//778 1260//780
+f 1255//768 1240//765 1254//781
+f 1269//1058 1254//781 1268//782
+f 1259//778 1274//796 1275//783
+f 1270//1059 1255//768 1269//1058
+f 1260//780 1275//783 1276//785
+f 1271//789 1256//1051 1270//1059
+f 1266//790 1251//1052 1265//1060
+f 1261//1049 1276//785 1277//1061
+f 1272//1062 1257//1054 1271//789
+f 1267//794 1252//1055 1266//790
+f 1262//770 1277//1061 1278//791
+f 1273//797 1258//792 1272//1062
+f 1268//782 1253//1057 1267//794
+f 1263//1053 1278//791 1279//795
+f 1258//792 1273//797 1274//796
+f 1288//816 1273//797 1287//798
+f 1283//802 1268//782 1282//799
+f 1278//791 1293//811 1294//1063
+f 1273//797 1288//816 1289//801
+f 1284//804 1269//1058 1283//802
+f 1274//796 1289//801 1290//803
+f 1285//806 1270//1059 1284//804
+f 1275//783 1290//803 1291//805
+f 1286//1065 1271//789 1285//806
+f 1281//810 1266//790 1280//1064
+f 1276//785 1291//805 1292//808
+f 1287//798 1272//1062 1286//1065
+f 1282//799 1267//794 1281//810
+f 1277//1061 1292//808 1293//811
+f 1291//805 1307//824 1308//1066
+f 1303//817 1287//798 1302//813
+f 1298//1067 1282//799 1297//814
+f 1292//808 1308//1066 1309//815
+f 1304//834 1288//816 1303//817
+f 1299//821 1283//802 1298//1067
+f 1293//811 1309//815 1310//1068
+f 1288//816 1304//834 1305//820
+f 1300//823 1284//804 1299//821
+f 1289//801 1305//820 1306//822
+f 1301//825 1285//806 1300//823
+f 1290//803 1306//822 1307//824
+f 1302//813 1286//1065 1301//825
+f 1297//814 1281//810 1296//1069
+f 1306//822 1321//843 1322//1070
+f 1317//1072 1302//813 1316//1071
+f 1312//1073 1297//814 1311//829
+f 1307//824 1322//1070 1323//830
+f 1318//835 1303//817 1317//1072
+f 1313//836 1298//1067 1312//1073
+f 1308//1066 1323//830 1324//833
+f 1319//838 1304//834 1318//835
+f 1314//839 1299//821 1313//836
+f 1309//815 1324//833 1325//1074
+f 1320//840 1305//820 1319//838
+f 1315//1075 1300//823 1314//839
+f 1321//843 1306//822 1320//840
+f 1316//1071 1301//825 1315//1075
+f 1314//839 1329//853 1330//1076
+f 1336//1077 1321//843 1335//844
+f 1315//1075 1330//1076 1331//845
+f 1337//849 1322//1070 1336//1077
+f 1316//1071 1331//845 1332//1078
+f 1311//829 1326//866 1327//848
+f 1338//851 1323//830 1337//849
+f 1333//852 1318//835 1332//1078
+f 1312//1073 1327//848 1328//850
+f 1339//1079 1324//833 1338//851
+f 1334//855 1319//838 1333//852
+f 1313//836 1328//850 1329//853
+f 1340//858 1325//1074 1339//1079
+f 1335//844 1320//840 1334//855
+f 1349//860 1334//855 1348//856
+f 1328//850 1343//869 1344//857
+f 1355//1082 1340//858 1354//859
+f 1350//862 1335//844 1349//860
+f 1329//853 1344//857 1345//861
+f 1351//864 1336//1077 1350//862
+f 1330//1076 1345//861 1346//863
+f 1352//868 1337//849 1351//864
+f 1331//845 1346//863 1347//1080
+f 1326//866 1341//884 1342//867
+f 1353//870 1338//851 1352//868
+f 1332//1078 1347//1080 1348//856
+f 1327//848 1342//867 1343//869
+f 1354//859 1339//1079 1353//870
+f 1368//874 1353//870 1367//1081
+f 1347//1080 1362//883 1363//872
+f 1342//867 1357//885 1358//873
+f 1369//877 1354//859 1368//874
+f 1364//878 1349//860 1363//872
+f 1343//869 1358//873 1359//875
+f 1370//895 1355//1082 1369//877
+f 1365//880 1350//862 1364//878
+f 1344//857 1359//875 1360//1083
+f 1366//1085 1351//864 1365//880
+f 1345//861 1360//1083 1361//1084
+f 1367//1081 1352//868 1366//1085
+f 1346//863 1361//1084 1362//883
+f 1341//884 1356//888 1357//885
+f 1382//1088 1367//1081 1381//1086
+f 1361//1084 1376//900 1377//1087
+f 1356//888 1371//1092 1372//889
+f 1383//893 1368//874 1382//1088
+f 1362//883 1377//1087 1378//891
+f 1357//885 1372//889 1373//1089
+f 1384//896 1369//877 1383//893
+f 1379//897 1364//878 1378//891
+f 1358//873 1373//1089 1374//894
+f 1385//912 1370//895 1384//896
+f 1380//899 1365//880 1379//897
+f 1359//875 1374//894 1375//1090
+f 1381//1086 1366//1085 1380//899
+f 1360//1083 1375//1090 1376//900
+f 1396//1091 1381//1086 1395//901
+f 1375//1090 1390//1094 1391//902
+f 1397//907 1382//1088 1396//1091
+f 1376//900 1391//902 1392//904
+f 1371//1092 1386//1098 1387//1093
+f 1398//910 1383//893 1397//907
+f 1377//1087 1392//904 1393//908
+f 1372//889 1387//1093 1388//909
+f 1399//913 1384//896 1398//910
+f 1394//914 1379//897 1393//908
+f 1373//1089 1388//909 1389//911
+f 1400//1095 1385//912 1399//913
+f 1395//901 1380//899 1394//914
+f 1374//894 1389//911 1390//1094
+f 1388//909 1403//929 1404//916
+f 1415//936 1400//1095 1414//1096
+f 1410//921 1395//901 1409//919
+f 1389//911 1404//916 1405//920
+f 1411//1097 1396//1091 1410//921
+f 1390//1094 1405//920 1406//922
+f 1412//927 1397//907 1411//1097
+f 1391//902 1406//922 1407//924
+f 1386//1098 1401//943 1402//1099
+f 1413//930 1398//910 1412//927
+f 1392//904 1407//924 1408//1100
+f 1387//1093 1402//1099 1403//929
+f 1414//1096 1399//913 1413//930
+f 1409//919 1394//914 1408//1100
+f 1407//924 1423//942 1424//931
+f 1402//1099 1418//1102 1419//932
+f 1430//937 1414//1096 1429//1101
+f 1408//1100 1424//931 1425//934
+f 1403//929 1419//932 1420//935
+f 1431//956 1415//936 1430//937
+f 1426//939 1410//921 1425//934
+f 1404//916 1420//935 1421//938
+f 1427//941 1411//1097 1426//939
+f 1405//920 1421//938 1422//940
+f 1428//945 1412//927 1427//941
+f 1406//922 1422//940 1423//942
+f 1401//943 1417//1104 1418//1102
+f 1429//1101 1413//930 1428//945
+f 1443//950 1428//945 1442//946
+f 1422//940 1437//960 1438//1103
+f 1417//1104 1432//964 1433//949
+f 1444//953 1429//1101 1443//950
+f 1423//942 1438//1103 1439//951
+f 1418//1102 1433//949 1434//952
+f 1445//1105 1430//937 1444//953
+f 1424//931 1439//951 1440//954
+f 1419//932 1434//952 1435//955
+f 1446//1106 1431//956 1445//1105
+f 1425//934 1440//954 1441//958
+f 1420//935 1435//955 1436//959
+f 1426//939 1441//958 1442//946
+f 1421//938 1436//959 1437//960
+f 1441//958 974//504 975//972
+f 970//484 1437//960 969//506
+f 1442//946 975//972 976//966
+f 1437//960 970//484 971//483
+f 966//486 1433//949 965//487
+f 1443//950 976//966 977//489
+f 1438//1103 971//483 972//492
+f 967//494 1434//952 966//486
+f 1444//953 977//489 978//496
+f 1439//951 972//492 973//498
+f 968//500 1435//955 967//494
+f 1445//1105 978//496 979//971
+f 1440//954 973//498 974//504
+f 969//506 1436//959 968//500
+o Foot_R_Sphere.013
+v 1.070087 0.436287 -0.613739
+v 1.067775 0.408819 -0.597702
+v 1.067363 0.383059 -0.583396
+v 1.068870 0.359998 -0.571371
+v 1.072236 0.340521 -0.562090
+v 1.077332 0.325377 -0.555908
+v 1.083963 0.315147 -0.553064
+v 1.091874 0.310225 -0.553667
+v 1.100760 0.310801 -0.557693
+v 1.110280 0.316851 -0.564988
+v 1.120069 0.328144 -0.575272
+v 1.129750 0.344245 -0.588149
+v 1.138951 0.364536 -0.603124
+v 1.147318 0.388237 -0.619623
+v 1.154530 0.414437 -0.637010
+v 1.070029 0.435806 -0.617730
+v 1.067660 0.407876 -0.605530
+v 1.067197 0.381690 -0.594761
+v 1.068659 0.358255 -0.585837
+v 1.071988 0.338472 -0.579100
+v 1.077056 0.323099 -0.574808
+v 1.083670 0.312730 -0.573128
+v 1.091575 0.307761 -0.574124
+v 1.100467 0.308383 -0.577757
+v 1.110004 0.314574 -0.583888
+v 1.119821 0.326095 -0.592281
+v 1.129539 0.342502 -0.602614
+v 1.138785 0.363167 -0.614490
+v 1.147204 0.387294 -0.627451
+v 1.154472 0.413956 -0.641001
+v 1.070163 0.436416 -0.622236
+v 1.067924 0.409072 -0.614368
+v 1.067580 0.383428 -0.607592
+v 1.069145 0.360466 -0.602167
+v 1.072560 0.341072 -0.598302
+v 1.077693 0.325989 -0.596145
+v 1.084346 0.315797 -0.595780
+v 1.092264 0.310888 -0.597219
+v 1.101142 0.311450 -0.600408
+v 1.110641 0.317463 -0.605225
+v 1.120393 0.328695 -0.611484
+v 1.130026 0.344713 -0.618945
+v 1.139167 0.364904 -0.627320
+v 1.147467 0.388490 -0.636289
+v 1.154606 0.414566 -0.645507
+v 1.070485 0.438093 -0.627082
+v 1.068555 0.412363 -0.623876
+v 1.068496 0.388205 -0.621395
+v 1.070312 0.366547 -0.619735
+v 1.073931 0.348221 -0.618960
+v 1.079216 0.333933 -0.619099
+v 1.085963 0.324230 -0.620147
+v 1.093913 0.319486 -0.622064
+v 1.102760 0.319884 -0.624776
+v 1.112164 0.325407 -0.628179
+v 1.121764 0.335844 -0.632142
+v 1.131192 0.350794 -0.636513
+v 1.140084 0.369681 -0.641123
+v 1.148098 0.391781 -0.645797
+v 1.154928 0.416243 -0.650353
+v 1.070982 0.440774 -0.632085
+v 1.069529 0.417621 -0.633688
+v 1.069911 0.395838 -0.635640
+v 1.072112 0.376262 -0.637865
+v 1.076049 0.359645 -0.640278
+v 1.081569 0.346627 -0.642787
+v 1.088461 0.337706 -0.645294
+v 1.096459 0.333226 -0.647703
+v 1.105257 0.333360 -0.649923
+v 1.114517 0.338101 -0.651867
+v 1.123882 0.347268 -0.653460
+v 1.132992 0.360509 -0.654643
+v 1.141498 0.377315 -0.655368
+v 1.149073 0.397039 -0.655609
+v 1.155425 0.418924 -0.655356
+v 1.071635 0.444354 -0.637050
+v 1.070810 0.424644 -0.643427
+v 1.071770 0.406034 -0.649779
+v 1.074478 0.389240 -0.655861
+v 1.078831 0.374905 -0.661439
+v 1.084660 0.363582 -0.666299
+v 1.091742 0.355706 -0.670255
+v 1.099805 0.351579 -0.673153
+v 1.108539 0.351360 -0.674883
+v 1.117608 0.355057 -0.675379
+v 1.126664 0.362528 -0.674621
+v 1.135358 0.373487 -0.672638
+v 1.143357 0.387511 -0.669507
+v 1.150353 0.404062 -0.665348
+v 1.156078 0.422504 -0.660321
+v 1.072418 0.448697 -0.641787
+v 1.072347 0.433163 -0.652719
+v 1.074001 0.418402 -0.663269
+v 1.077318 0.404980 -0.673030
+v 1.082170 0.393414 -0.681628
+v 1.088371 0.384149 -0.688732
+v 1.095682 0.377539 -0.694069
+v 1.103822 0.373840 -0.697434
+v 1.112479 0.373193 -0.698698
+v 1.121319 0.375623 -0.697812
+v 1.130004 0.381037 -0.694810
+v 1.138198 0.389227 -0.689808
+v 1.145589 0.399878 -0.682997
+v 1.151890 0.412581 -0.674640
+v 1.156861 0.426847 -0.665058
+v 1.073303 0.453636 -0.646114
+v 1.074082 0.442850 -0.661207
+v 1.076520 0.432465 -0.675592
+v 1.080524 0.422879 -0.688714
+v 1.085940 0.414462 -0.700070
+v 1.092559 0.407535 -0.709224
+v 1.100128 0.402366 -0.715823
+v 1.108355 0.399153 -0.719615
+v 1.116925 0.398020 -0.720452
+v 1.125507 0.399010 -0.718304
+v 1.133773 0.402085 -0.713252
+v 1.141404 0.407126 -0.705492
+v 1.148107 0.413942 -0.695320
+v 1.153625 0.422268 -0.683128
+v 1.157746 0.431786 -0.669385
+v 1.074254 0.458980 -0.649865
+v 1.075948 0.453333 -0.668565
+v 1.079229 0.447684 -0.686273
+v 1.083971 0.442249 -0.702309
+v 1.089994 0.437238 -0.716057
+v 1.097064 0.432843 -0.726987
+v 1.104910 0.429232 -0.734680
+v 1.113231 0.426546 -0.738841
+v 1.121707 0.424886 -0.739309
+v 1.130012 0.424317 -0.736067
+v 1.137827 0.424861 -0.729239
+v 1.144851 0.426496 -0.719087
+v 1.150816 0.429160 -0.706001
+v 1.155491 0.432751 -0.690486
+v 1.158697 0.437130 -0.673136
+v 1.075235 0.464524 -0.652895
+v 1.077873 0.464209 -0.674509
+v 1.082023 0.463473 -0.694903
+v 1.087528 0.462345 -0.713293
+v 1.094176 0.460868 -0.728972
+v 1.101711 0.459099 -0.741338
+v 1.109844 0.457106 -0.749916
+v 1.118261 0.454966 -0.754375
+v 1.126640 0.452760 -0.754545
+v 1.134659 0.450574 -0.750418
+v 1.142009 0.448491 -0.742154
+v 1.148408 0.446592 -0.730071
+v 1.153611 0.444949 -0.714632
+v 1.157416 0.443626 -0.696430
+v 1.159678 0.442674 -0.676166
+v 1.076209 0.470056 -0.655089
+v 1.079783 0.475059 -0.678813
+v 1.084797 0.479226 -0.701150
+v 1.091058 0.482394 -0.721244
+v 1.098327 0.484444 -0.738322
+v 1.106323 0.485295 -0.751727
+v 1.114740 0.484916 -0.760944
+v 1.123253 0.483320 -0.765619
+v 1.131536 0.480569 -0.765573
+v 1.139271 0.476770 -0.760807
+v 1.146160 0.472067 -0.751504
+v 1.151938 0.466641 -0.738022
+v 1.156384 0.460702 -0.720879
+v 1.159326 0.454477 -0.700733
+v 1.160652 0.448206 -0.678360
+v 1.077138 0.475362 -0.656361
+v 1.081605 0.485468 -0.681309
+v 1.087442 0.494337 -0.704774
+v 1.094425 0.501627 -0.725857
+v 1.102286 0.507059 -0.743745
+v 1.110722 0.510424 -0.757753
+v 1.119410 0.511593 -0.767341
+v 1.128015 0.510520 -0.772142
+v 1.136207 0.507246 -0.771970
+v 1.143670 0.501899 -0.766833
+v 1.150119 0.494682 -0.756927
+v 1.155306 0.485874 -0.742634
+v 1.159030 0.475813 -0.724503
+v 1.161149 0.464886 -0.703229
+v 1.161581 0.453512 -0.679632
+v 1.077987 0.480239 -0.656664
+v 1.083269 0.495035 -0.681902
+v 1.089858 0.508226 -0.705636
+v 1.097500 0.519305 -0.726953
+v 1.105902 0.527846 -0.745034
+v 1.114740 0.533521 -0.759185
+v 1.123675 0.536112 -0.768862
+v 1.132364 0.535519 -0.773692
+v 1.140472 0.531765 -0.773491
+v 1.147688 0.524995 -0.768265
+v 1.153735 0.515469 -0.758216
+v 1.158380 0.503552 -0.743730
+v 1.161445 0.489702 -0.725364
+v 1.162813 0.474453 -0.703823
+v 1.162430 0.458389 -0.679935
+v 1.078722 0.484500 -0.655985
+v 1.084711 0.503392 -0.680570
+v 1.091952 0.520359 -0.703701
+v 1.100165 0.534747 -0.724491
+v 1.109035 0.546004 -0.742140
+v 1.118221 0.553697 -0.755969
+v 1.127371 0.557530 -0.765448
+v 1.136132 0.557357 -0.770211
+v 1.144168 0.553184 -0.770076
+v 1.151169 0.545171 -0.765049
+v 1.156868 0.533627 -0.755322
+v 1.161045 0.518994 -0.741269
+v 1.163539 0.501835 -0.723430
+v 1.164255 0.482810 -0.702490
+v 1.163165 0.462650 -0.679256
+v 1.079315 0.487980 -0.654350
+v 1.085876 0.510219 -0.677363
+v 1.093642 0.530269 -0.699046
+v 1.102317 0.547360 -0.718566
+v 1.111565 0.560836 -0.735172
+v 1.121033 0.570177 -0.748227
+v 1.130355 0.575026 -0.757229
+v 1.139175 0.575196 -0.761832
+v 1.147152 0.570680 -0.761858
+v 1.153981 0.561652 -0.757307
+v 1.159398 0.548459 -0.748354
+v 1.163197 0.531607 -0.735343
+v 1.165230 0.511746 -0.718774
+v 1.165419 0.489637 -0.699284
+v 1.163758 0.466130 -0.677621
+v 1.079745 0.490546 -0.651822
+v 1.086718 0.515252 -0.672405
+v 1.094865 0.537576 -0.691848
+v 1.103873 0.556661 -0.709405
+v 1.113395 0.571772 -0.724400
+v 1.123066 0.582329 -0.736258
+v 1.132514 0.587926 -0.744522
+v 1.141376 0.588349 -0.748876
+v 1.149311 0.583580 -0.749151
+v 1.156014 0.573803 -0.745338
+v 1.161228 0.559395 -0.737582
+v 1.164753 0.540908 -0.726182
+v 1.166453 0.519053 -0.711577
+v 1.166262 0.494670 -0.694326
+v 1.164188 0.468696 -0.675093
+v 1.079993 0.492099 -0.648499
+v 1.087206 0.518299 -0.665887
+v 1.095573 0.542000 -0.682385
+v 1.104774 0.562291 -0.697360
+v 1.114455 0.578392 -0.710237
+v 1.124243 0.589685 -0.720521
+v 1.133764 0.595735 -0.727816
+v 1.142650 0.596310 -0.731842
+v 1.150560 0.591389 -0.732445
+v 1.157191 0.581159 -0.729601
+v 1.162288 0.566015 -0.723419
+v 1.165654 0.546538 -0.714138
+v 1.167160 0.523476 -0.702113
+v 1.166749 0.497717 -0.687807
+v 1.164436 0.470249 -0.671770
+v 1.080052 0.492580 -0.644508
+v 1.087320 0.519242 -0.658058
+v 1.095739 0.543369 -0.671019
+v 1.104985 0.564033 -0.682895
+v 1.114703 0.580441 -0.693228
+v 1.124519 0.591962 -0.701621
+v 1.134057 0.598152 -0.707752
+v 1.142949 0.598775 -0.711385
+v 1.150853 0.593806 -0.712381
+v 1.157467 0.583436 -0.710701
+v 1.162536 0.568064 -0.706410
+v 1.165865 0.548280 -0.699672
+v 1.167326 0.524845 -0.690748
+v 1.166864 0.498660 -0.679979
+v 1.164495 0.470730 -0.667779
+v 1.079917 0.491970 -0.640003
+v 1.087057 0.518046 -0.649220
+v 1.095356 0.541632 -0.658189
+v 1.104498 0.561822 -0.666564
+v 1.114131 0.577841 -0.674025
+v 1.123883 0.589073 -0.680284
+v 1.133381 0.595085 -0.685101
+v 1.142260 0.595648 -0.688290
+v 1.150178 0.590739 -0.689730
+v 1.156831 0.580547 -0.689364
+v 1.161964 0.565464 -0.687207
+v 1.165378 0.546069 -0.683342
+v 1.166944 0.523108 -0.677917
+v 1.166600 0.497463 -0.671141
+v 1.164360 0.470120 -0.663274
+v 1.079596 0.490292 -0.635156
+v 1.086425 0.514755 -0.639712
+v 1.094440 0.536855 -0.644386
+v 1.103332 0.555742 -0.648996
+v 1.112759 0.570692 -0.653367
+v 1.122360 0.581128 -0.657331
+v 1.131764 0.586652 -0.660733
+v 1.140611 0.587049 -0.663445
+v 1.148561 0.582306 -0.665362
+v 1.155308 0.572603 -0.666410
+v 1.160592 0.558315 -0.666549
+v 1.164212 0.539989 -0.665774
+v 1.166028 0.518331 -0.664114
+v 1.165969 0.494173 -0.661633
+v 1.164039 0.468442 -0.658427
+v 1.079099 0.487612 -0.630154
+v 1.085451 0.509497 -0.629900
+v 1.093026 0.529221 -0.630141
+v 1.101532 0.546027 -0.630866
+v 1.110642 0.559267 -0.632049
+v 1.120007 0.568435 -0.633642
+v 1.129266 0.573176 -0.635586
+v 1.138065 0.573309 -0.637806
+v 1.146063 0.568830 -0.640215
+v 1.152955 0.559909 -0.642722
+v 1.158475 0.546890 -0.645231
+v 1.162411 0.530274 -0.647644
+v 1.164613 0.510698 -0.649869
+v 1.164994 0.488915 -0.651821
+v 1.163542 0.465762 -0.653425
+v 1.078446 0.484031 -0.625189
+v 1.084170 0.502474 -0.620161
+v 1.091167 0.519025 -0.616002
+v 1.099166 0.533049 -0.612871
+v 1.107860 0.544007 -0.610888
+v 1.116916 0.551479 -0.610130
+v 1.125985 0.555176 -0.610626
+v 1.134719 0.554956 -0.612356
+v 1.142781 0.550829 -0.615255
+v 1.149864 0.542953 -0.619210
+v 1.155693 0.531630 -0.624070
+v 1.160046 0.517296 -0.629648
+v 1.162754 0.500501 -0.635730
+v 1.163714 0.481891 -0.642082
+v 1.162889 0.462181 -0.648460
+v 1.160311 0.442129 -0.654618
+v 1.077662 0.479688 -0.620452
+v 1.082633 0.493955 -0.610869
+v 1.088935 0.506657 -0.602512
+v 1.096325 0.517308 -0.595701
+v 1.104520 0.525498 -0.590699
+v 1.113205 0.530912 -0.587697
+v 1.122045 0.533343 -0.586811
+v 1.130702 0.532696 -0.588075
+v 1.138842 0.528996 -0.591440
+v 1.146153 0.522387 -0.596777
+v 1.152353 0.513121 -0.603881
+v 1.157205 0.501555 -0.612479
+v 1.160522 0.488134 -0.622240
+v 1.162177 0.473372 -0.632790
+v 1.162105 0.457838 -0.643723
+v 1.076778 0.474750 -0.616124
+v 1.080899 0.484268 -0.602381
+v 1.086416 0.492594 -0.590189
+v 1.093120 0.499409 -0.580018
+v 1.100751 0.504451 -0.572257
+v 1.109017 0.507526 -0.567205
+v 1.117599 0.508516 -0.565057
+v 1.126169 0.507383 -0.565895
+v 1.134396 0.504170 -0.569686
+v 1.141965 0.499001 -0.576285
+v 1.148584 0.492074 -0.585439
+v 1.154000 0.483656 -0.596795
+v 1.158004 0.474071 -0.609918
+v 1.160442 0.463686 -0.624302
+v 1.161221 0.452900 -0.639395
+v 1.075827 0.469406 -0.612374
+v 1.079033 0.473785 -0.595023
+v 1.083708 0.477376 -0.579508
+v 1.089672 0.480040 -0.566422
+v 1.096697 0.481675 -0.556271
+v 1.104512 0.482218 -0.549442
+v 1.112817 0.481649 -0.546200
+v 1.121293 0.479990 -0.546668
+v 1.129614 0.477303 -0.550829
+v 1.137460 0.473693 -0.558522
+v 1.144530 0.469298 -0.569453
+v 1.150552 0.464287 -0.583200
+v 1.155295 0.458852 -0.599236
+v 1.158576 0.453203 -0.616944
+v 1.160270 0.447556 -0.635645
+v 1.074845 0.463862 -0.609343
+v 1.077108 0.462909 -0.589079
+v 1.080913 0.461586 -0.570878
+v 1.086115 0.459944 -0.555438
+v 1.092515 0.458045 -0.543355
+v 1.099865 0.455962 -0.535091
+v 1.107883 0.453776 -0.530965
+v 1.116263 0.451570 -0.531134
+v 1.124680 0.449430 -0.535594
+v 1.132813 0.447437 -0.544171
+v 1.140348 0.445668 -0.556537
+v 1.146995 0.444191 -0.572216
+v 1.152500 0.443063 -0.590606
+v 1.156651 0.442327 -0.611000
+v 1.159288 0.442012 -0.632614
+v 1.073872 0.458330 -0.607149
+v 1.075197 0.452059 -0.584776
+v 1.078140 0.445834 -0.564631
+v 1.082585 0.439894 -0.547487
+v 1.088364 0.434469 -0.534005
+v 1.095253 0.429766 -0.524702
+v 1.102987 0.425966 -0.519936
+v 1.111271 0.423216 -0.519890
+v 1.119784 0.421620 -0.524565
+v 1.128201 0.421241 -0.533782
+v 1.136197 0.422092 -0.547187
+v 1.143465 0.424141 -0.564265
+v 1.149727 0.427310 -0.584359
+v 1.154741 0.431476 -0.606697
+v 1.158315 0.436480 -0.630420
+v 1.072943 0.453024 -0.605877
+v 1.073375 0.441650 -0.582280
+v 1.075494 0.430722 -0.561007
+v 1.079218 0.420661 -0.542875
+v 1.084404 0.411853 -0.528582
+v 1.090853 0.404637 -0.518676
+v 1.098317 0.399289 -0.513539
+v 1.106509 0.396016 -0.513367
+v 1.115114 0.394943 -0.518168
+v 1.123801 0.396112 -0.527756
+v 1.132238 0.399476 -0.541764
+v 1.140098 0.404908 -0.559653
+v 1.147081 0.412199 -0.580735
+v 1.152919 0.421067 -0.604201
+v 1.157386 0.431174 -0.629148
+v 1.072094 0.448146 -0.605574
+v 1.071711 0.432083 -0.581686
+v 1.073078 0.416833 -0.560145
+v 1.076143 0.402984 -0.541779
+v 1.080789 0.391067 -0.527293
+v 1.086836 0.381541 -0.517244
+v 1.094052 0.374770 -0.512018
+v 1.102160 0.371017 -0.511817
+v 1.110849 0.370424 -0.516647
+v 1.119784 0.373015 -0.526324
+v 1.128622 0.378690 -0.540475
+v 1.137023 0.387231 -0.558556
+v 1.144665 0.398310 -0.579874
+v 1.151255 0.411501 -0.603607
+v 1.156537 0.426296 -0.628845
+v 1.071359 0.443886 -0.606254
+v 1.070269 0.423726 -0.583019
+v 1.070985 0.404701 -0.562080
+v 1.073479 0.387542 -0.544241
+v 1.077656 0.372909 -0.530187
+v 1.083354 0.361364 -0.520460
+v 1.090356 0.353352 -0.515433
+v 1.098392 0.349178 -0.515298
+v 1.107153 0.349005 -0.520062
+v 1.116302 0.352839 -0.529540
+v 1.125489 0.360532 -0.543369
+v 1.134359 0.371789 -0.561018
+v 1.142572 0.386177 -0.581808
+v 1.149812 0.403143 -0.604940
+v 1.155802 0.422036 -0.629525
+v 1.074213 0.464407 -0.630891
+v 1.070765 0.440406 -0.607888
+v 1.069104 0.416899 -0.586225
+v 1.069294 0.394790 -0.566735
+v 1.071327 0.374928 -0.550166
+v 1.075125 0.358077 -0.537155
+v 1.080543 0.344884 -0.528202
+v 1.087372 0.335856 -0.523651
+v 1.095349 0.331340 -0.523678
+v 1.104168 0.331510 -0.528280
+v 1.113491 0.336358 -0.537282
+v 1.122959 0.345700 -0.550337
+v 1.132207 0.359175 -0.566943
+v 1.140881 0.376267 -0.586463
+v 1.148648 0.396317 -0.608146
+v 1.155208 0.418556 -0.631159
+v 1.070336 0.437840 -0.610416
+v 1.068262 0.411866 -0.591183
+v 1.068071 0.387483 -0.573933
+v 1.069771 0.365628 -0.559327
+v 1.073295 0.347141 -0.547927
+v 1.078510 0.332732 -0.540171
+v 1.085213 0.322956 -0.536358
+v 1.093148 0.318187 -0.536633
+v 1.102010 0.318610 -0.540987
+v 1.111458 0.324207 -0.549251
+v 1.121129 0.334764 -0.561109
+v 1.130651 0.349875 -0.576104
+v 1.139659 0.368959 -0.593661
+v 1.147806 0.391284 -0.613104
+v 1.154779 0.415990 -0.633687
+v 1.075639 0.467351 -0.512964
+v 1.073326 0.439884 -0.496926
+v 1.072915 0.414124 -0.482621
+v 1.074422 0.391063 -0.470596
+v 1.077788 0.371585 -0.461315
+v 1.082884 0.356441 -0.455133
+v 1.089515 0.346212 -0.452289
+v 1.097425 0.341290 -0.452892
+v 1.106312 0.341865 -0.456918
+v 1.115832 0.347916 -0.464213
+v 1.125621 0.359208 -0.474496
+v 1.135301 0.375310 -0.487373
+v 1.144502 0.395600 -0.502349
+v 1.152870 0.419301 -0.518847
+v 1.160082 0.445501 -0.536235
+v 1.075581 0.466870 -0.516955
+v 1.073212 0.438940 -0.504755
+v 1.072749 0.412755 -0.493986
+v 1.074210 0.389320 -0.485061
+v 1.077539 0.369536 -0.478324
+v 1.082608 0.354164 -0.474033
+v 1.089222 0.343794 -0.472353
+v 1.097127 0.338825 -0.473349
+v 1.106019 0.339448 -0.476982
+v 1.115556 0.345639 -0.483113
+v 1.125372 0.357159 -0.491506
+v 1.135090 0.373567 -0.501839
+v 1.144336 0.394231 -0.513714
+v 1.152755 0.418358 -0.526676
+v 1.160024 0.445020 -0.540226
+v 1.075715 0.467480 -0.521460
+v 1.073475 0.440137 -0.513593
+v 1.073132 0.414492 -0.506817
+v 1.074697 0.391531 -0.501392
+v 1.078112 0.372136 -0.497527
+v 1.083244 0.357053 -0.495370
+v 1.089897 0.346861 -0.495004
+v 1.097815 0.341952 -0.496444
+v 1.106694 0.342515 -0.499633
+v 1.116192 0.348528 -0.504450
+v 1.125945 0.359759 -0.510709
+v 1.135577 0.375778 -0.518169
+v 1.144719 0.395968 -0.526545
+v 1.153019 0.419555 -0.535514
+v 1.160158 0.445630 -0.544731
+v 1.076037 0.469158 -0.526307
+v 1.074107 0.443428 -0.523101
+v 1.074048 0.419269 -0.520620
+v 1.075863 0.397611 -0.518960
+v 1.079483 0.379286 -0.518184
+v 1.084768 0.364997 -0.518323
+v 1.091515 0.355295 -0.519371
+v 1.099465 0.350551 -0.521288
+v 1.108312 0.350948 -0.524000
+v 1.117716 0.356472 -0.527403
+v 1.127316 0.366909 -0.531366
+v 1.136743 0.381858 -0.535737
+v 1.145635 0.400746 -0.540348
+v 1.153650 0.422845 -0.545022
+v 1.160480 0.447308 -0.549578
+v 1.076534 0.471838 -0.531309
+v 1.075081 0.448686 -0.532913
+v 1.075463 0.426903 -0.534865
+v 1.077664 0.407327 -0.537090
+v 1.081600 0.390710 -0.539503
+v 1.087121 0.377691 -0.542011
+v 1.094012 0.368770 -0.544519
+v 1.102011 0.364291 -0.546928
+v 1.110809 0.364424 -0.549147
+v 1.120069 0.369166 -0.551091
+v 1.129433 0.378333 -0.552685
+v 1.138544 0.391574 -0.553867
+v 1.147050 0.408379 -0.554593
+v 1.154625 0.428103 -0.554833
+v 1.160977 0.449988 -0.554580
+v 1.077186 0.475419 -0.536274
+v 1.076361 0.455709 -0.542652
+v 1.077322 0.437099 -0.549004
+v 1.080030 0.420304 -0.555085
+v 1.084382 0.405970 -0.560664
+v 1.090212 0.394647 -0.565524
+v 1.097294 0.386771 -0.569479
+v 1.105357 0.382644 -0.572378
+v 1.114091 0.382425 -0.574108
+v 1.123160 0.386122 -0.574604
+v 1.132215 0.393593 -0.573846
+v 1.140910 0.404551 -0.571863
+v 1.148909 0.418575 -0.568732
+v 1.155905 0.435127 -0.564573
+v 1.161629 0.453569 -0.559545
+v 1.077970 0.479762 -0.541011
+v 1.077899 0.464228 -0.551944
+v 1.079553 0.449466 -0.562494
+v 1.082870 0.436045 -0.572255
+v 1.087722 0.424479 -0.580853
+v 1.093923 0.415213 -0.587957
+v 1.101233 0.408604 -0.593294
+v 1.109374 0.404905 -0.596659
+v 1.118030 0.404258 -0.597923
+v 1.126871 0.406688 -0.597037
+v 1.135555 0.412102 -0.594035
+v 1.143750 0.420292 -0.589033
+v 1.151140 0.430943 -0.582222
+v 1.157442 0.443646 -0.573865
+v 1.162413 0.457912 -0.564282
+v 1.078855 0.484700 -0.545338
+v 1.079633 0.473915 -0.560432
+v 1.082072 0.463530 -0.574816
+v 1.086076 0.453944 -0.587939
+v 1.091491 0.445526 -0.599295
+v 1.098111 0.438600 -0.608449
+v 1.105680 0.433431 -0.615048
+v 1.113907 0.430218 -0.618839
+v 1.122476 0.429084 -0.619677
+v 1.131059 0.430074 -0.617529
+v 1.139325 0.433149 -0.612477
+v 1.146956 0.438191 -0.604716
+v 1.153659 0.445006 -0.594545
+v 1.159177 0.453332 -0.582353
+v 1.163297 0.462850 -0.568609
+v 1.079806 0.490044 -0.549089
+v 1.081499 0.484398 -0.567790
+v 1.084780 0.478748 -0.585498
+v 1.089523 0.473314 -0.601534
+v 1.095545 0.468302 -0.615281
+v 1.102615 0.463907 -0.626212
+v 1.110461 0.460297 -0.633905
+v 1.118782 0.457610 -0.638066
+v 1.127258 0.455951 -0.638534
+v 1.135563 0.455382 -0.635291
+v 1.143378 0.455925 -0.628463
+v 1.150403 0.457561 -0.618311
+v 1.156368 0.460225 -0.605226
+v 1.161043 0.463815 -0.589710
+v 1.164249 0.468194 -0.572360
+v 1.080787 0.495589 -0.552120
+v 1.083424 0.495273 -0.573734
+v 1.087575 0.494537 -0.594128
+v 1.093080 0.493409 -0.612518
+v 1.099728 0.491933 -0.628197
+v 1.107263 0.490164 -0.640563
+v 1.115395 0.488171 -0.649140
+v 1.123813 0.486030 -0.653600
+v 1.132192 0.483824 -0.653769
+v 1.140211 0.481638 -0.649643
+v 1.147561 0.479555 -0.641379
+v 1.153960 0.477656 -0.629295
+v 1.159162 0.476014 -0.613856
+v 1.162968 0.474691 -0.595655
+v 1.165230 0.473739 -0.575391
+v 1.081761 0.501120 -0.554313
+v 1.085335 0.506124 -0.578037
+v 1.090348 0.510290 -0.600375
+v 1.096610 0.513459 -0.620469
+v 1.103879 0.515508 -0.637547
+v 1.111875 0.516360 -0.650951
+v 1.120291 0.515980 -0.660169
+v 1.128805 0.514385 -0.664844
+v 1.137088 0.511634 -0.664798
+v 1.144823 0.507834 -0.660031
+v 1.151712 0.503131 -0.650728
+v 1.157490 0.497706 -0.637246
+v 1.161936 0.491767 -0.620103
+v 1.164878 0.485542 -0.599958
+v 1.166204 0.479270 -0.577584
+v 1.082690 0.506427 -0.555586
+v 1.087157 0.516533 -0.580533
+v 1.092994 0.525402 -0.603999
+v 1.099977 0.532692 -0.625081
+v 1.107838 0.538124 -0.642970
+v 1.116274 0.541489 -0.656978
+v 1.124962 0.542657 -0.666566
+v 1.133567 0.541584 -0.671367
+v 1.141758 0.538311 -0.671195
+v 1.149222 0.532963 -0.666058
+v 1.155671 0.525747 -0.656152
+v 1.160857 0.516939 -0.641859
+v 1.164581 0.506878 -0.623727
+v 1.166700 0.495951 -0.602454
+v 1.167133 0.484577 -0.578857
+v 1.083538 0.511304 -0.555888
+v 1.088821 0.526100 -0.581127
+v 1.095410 0.539290 -0.604860
+v 1.103052 0.550369 -0.626178
+v 1.111454 0.558910 -0.644259
+v 1.120292 0.564585 -0.658410
+v 1.129227 0.567176 -0.668087
+v 1.137915 0.566583 -0.672917
+v 1.146023 0.562830 -0.672716
+v 1.153240 0.556060 -0.667490
+v 1.159287 0.546533 -0.657441
+v 1.163932 0.534616 -0.642955
+v 1.166997 0.520767 -0.624589
+v 1.168365 0.505517 -0.603047
+v 1.167981 0.489454 -0.579159
+v 1.084273 0.515564 -0.555209
+v 1.090263 0.534457 -0.579794
+v 1.097503 0.551423 -0.602926
+v 1.105717 0.565811 -0.623716
+v 1.114587 0.577068 -0.641364
+v 1.123773 0.584761 -0.655194
+v 1.132923 0.588595 -0.664672
+v 1.141683 0.588422 -0.669436
+v 1.149719 0.584249 -0.669301
+v 1.156721 0.576236 -0.664274
+v 1.162420 0.564691 -0.654546
+v 1.166597 0.550058 -0.640493
+v 1.169091 0.532900 -0.622654
+v 1.169806 0.513875 -0.601715
+v 1.168716 0.493714 -0.578480
+v 1.084867 0.519044 -0.553575
+v 1.091428 0.541283 -0.576588
+v 1.099194 0.561334 -0.598271
+v 1.107868 0.578425 -0.617791
+v 1.117117 0.591900 -0.634397
+v 1.126584 0.601242 -0.647452
+v 1.135907 0.606091 -0.656454
+v 1.144727 0.606260 -0.661056
+v 1.152704 0.601744 -0.661083
+v 1.159532 0.592716 -0.656532
+v 1.164950 0.579523 -0.647579
+v 1.168748 0.562672 -0.634568
+v 1.170781 0.542810 -0.617999
+v 1.170971 0.520701 -0.598508
+v 1.169310 0.497194 -0.576846
+v 1.085297 0.521610 -0.551047
+v 1.092270 0.546317 -0.571630
+v 1.100417 0.568641 -0.591073
+v 1.109425 0.587725 -0.608630
+v 1.118947 0.602836 -0.623625
+v 1.128618 0.613393 -0.635483
+v 1.138066 0.618991 -0.643747
+v 1.146927 0.619413 -0.648101
+v 1.154862 0.614645 -0.648376
+v 1.161566 0.604868 -0.644563
+v 1.166780 0.590459 -0.636807
+v 1.170305 0.571972 -0.625407
+v 1.172004 0.550117 -0.610801
+v 1.171813 0.525734 -0.593551
+v 1.169739 0.499760 -0.574318
+v 1.085545 0.523164 -0.547724
+v 1.092757 0.549364 -0.565111
+v 1.101125 0.573064 -0.581610
+v 1.110326 0.593355 -0.596585
+v 1.120007 0.609456 -0.609462
+v 1.129795 0.620749 -0.619746
+v 1.139315 0.626799 -0.627041
+v 1.148202 0.627375 -0.631067
+v 1.156112 0.622453 -0.631669
+v 1.162743 0.612224 -0.628825
+v 1.167840 0.597079 -0.622644
+v 1.171206 0.577602 -0.613362
+v 1.172712 0.554541 -0.601338
+v 1.172301 0.528781 -0.587032
+v 1.169988 0.501314 -0.570995
+v 1.085603 0.523645 -0.543733
+v 1.092872 0.550307 -0.557283
+v 1.101291 0.574434 -0.570244
+v 1.110537 0.595098 -0.582119
+v 1.120255 0.611506 -0.592452
+v 1.130071 0.623026 -0.600845
+v 1.139608 0.629217 -0.606976
+v 1.148500 0.629840 -0.610610
+v 1.156405 0.624871 -0.611605
+v 1.163019 0.614501 -0.609925
+v 1.168088 0.599129 -0.605634
+v 1.171417 0.579345 -0.598897
+v 1.172878 0.555910 -0.589972
+v 1.172415 0.529724 -0.579203
+v 1.170046 0.501794 -0.567004
+v 1.085469 0.523034 -0.539227
+v 1.092608 0.549110 -0.548445
+v 1.100908 0.572696 -0.557413
+v 1.110050 0.592887 -0.565789
+v 1.119682 0.608906 -0.573250
+v 1.129435 0.620137 -0.579509
+v 1.138933 0.626150 -0.584325
+v 1.147812 0.626713 -0.587515
+v 1.155730 0.621804 -0.588954
+v 1.162383 0.611612 -0.588589
+v 1.167515 0.596529 -0.586432
+v 1.170930 0.577134 -0.582566
+v 1.172495 0.554173 -0.577142
+v 1.172152 0.528528 -0.570365
+v 1.169912 0.501184 -0.562498
+v 1.085147 0.521357 -0.534380
+v 1.091977 0.545820 -0.538937
+v 1.099992 0.567919 -0.543610
+v 1.108884 0.586807 -0.548221
+v 1.118311 0.601756 -0.552592
+v 1.127911 0.612193 -0.556555
+v 1.137316 0.617716 -0.559958
+v 1.146163 0.618114 -0.562670
+v 1.154112 0.613370 -0.564587
+v 1.160859 0.603668 -0.565635
+v 1.166144 0.589379 -0.565774
+v 1.169764 0.571054 -0.564999
+v 1.171579 0.549396 -0.563339
+v 1.171521 0.525237 -0.560858
+v 1.169590 0.499507 -0.557651
+v 1.084651 0.518676 -0.529378
+v 1.091003 0.540561 -0.529125
+v 1.098577 0.560286 -0.529366
+v 1.107083 0.577091 -0.530091
+v 1.116194 0.590332 -0.531273
+v 1.125559 0.599499 -0.532867
+v 1.134818 0.604241 -0.534811
+v 1.143616 0.604374 -0.537030
+v 1.151615 0.599894 -0.539440
+v 1.158507 0.590974 -0.541947
+v 1.164027 0.577955 -0.544455
+v 1.167963 0.561338 -0.546869
+v 1.170165 0.541762 -0.549094
+v 1.170546 0.519979 -0.551046
+v 1.169093 0.496826 -0.552649
+v 1.083998 0.515096 -0.524413
+v 1.089722 0.533538 -0.519386
+v 1.096718 0.550089 -0.515227
+v 1.104717 0.564114 -0.512096
+v 1.113412 0.575072 -0.510113
+v 1.122468 0.582543 -0.509355
+v 1.131536 0.586240 -0.509850
+v 1.140270 0.586021 -0.511581
+v 1.148333 0.581894 -0.514479
+v 1.155415 0.574018 -0.518435
+v 1.161245 0.562695 -0.523295
+v 1.165597 0.548361 -0.528873
+v 1.168306 0.531566 -0.534955
+v 1.169266 0.512956 -0.541307
+v 1.168441 0.493246 -0.547684
+v 1.165862 0.473193 -0.553843
+v 1.083214 0.510753 -0.519676
+v 1.088185 0.525019 -0.510094
+v 1.094487 0.537722 -0.501737
+v 1.101877 0.548373 -0.494926
+v 1.110072 0.556563 -0.489924
+v 1.118756 0.561977 -0.486922
+v 1.127597 0.564407 -0.486036
+v 1.136253 0.563760 -0.487299
+v 1.144394 0.560061 -0.490664
+v 1.151704 0.553451 -0.496002
+v 1.157905 0.544186 -0.503106
+v 1.162757 0.532620 -0.511703
+v 1.166074 0.519198 -0.521465
+v 1.167729 0.504437 -0.532015
+v 1.167657 0.488903 -0.542947
+v 1.082330 0.505815 -0.515349
+v 1.086450 0.515332 -0.501606
+v 1.091968 0.523659 -0.489414
+v 1.098672 0.530474 -0.479242
+v 1.106303 0.535516 -0.471482
+v 1.114568 0.538591 -0.466430
+v 1.123151 0.539580 -0.464282
+v 1.131720 0.538447 -0.465119
+v 1.139948 0.535234 -0.468911
+v 1.147516 0.530065 -0.475510
+v 1.154136 0.523139 -0.484663
+v 1.159552 0.514721 -0.496020
+v 1.163556 0.505135 -0.509142
+v 1.165994 0.494750 -0.523527
+v 1.166773 0.483965 -0.538620
+v 1.081379 0.500471 -0.511598
+v 1.084584 0.504850 -0.494248
+v 1.089260 0.508440 -0.478732
+v 1.095224 0.511104 -0.465647
+v 1.102249 0.512739 -0.455495
+v 1.110064 0.513283 -0.448667
+v 1.118369 0.512714 -0.445425
+v 1.126845 0.511054 -0.445893
+v 1.135166 0.508368 -0.450054
+v 1.143012 0.504758 -0.457747
+v 1.150082 0.500362 -0.468677
+v 1.156104 0.495351 -0.482425
+v 1.160847 0.489917 -0.498461
+v 1.164128 0.484267 -0.516169
+v 1.165822 0.478621 -0.534869
+v 1.080397 0.494926 -0.508568
+v 1.082659 0.493974 -0.488304
+v 1.086465 0.492651 -0.470102
+v 1.091667 0.491008 -0.454663
+v 1.098066 0.489109 -0.442579
+v 1.105416 0.487027 -0.434316
+v 1.113435 0.484840 -0.430189
+v 1.121814 0.482635 -0.430359
+v 1.130232 0.480494 -0.434818
+v 1.138364 0.478501 -0.443396
+v 1.145899 0.476732 -0.455761
+v 1.152547 0.475255 -0.471441
+v 1.158052 0.474127 -0.489830
+v 1.162203 0.473392 -0.510224
+v 1.164840 0.473076 -0.531839
+v 1.079423 0.489395 -0.506374
+v 1.080749 0.483123 -0.484001
+v 1.083691 0.476898 -0.463855
+v 1.088137 0.470959 -0.446712
+v 1.093915 0.465534 -0.433230
+v 1.100804 0.460831 -0.423927
+v 1.108539 0.457031 -0.419161
+v 1.116822 0.454280 -0.419115
+v 1.125336 0.452685 -0.423790
+v 1.133752 0.452305 -0.433007
+v 1.141749 0.453157 -0.446412
+v 1.149017 0.455206 -0.463490
+v 1.155279 0.458375 -0.483583
+v 1.160293 0.462541 -0.505921
+v 1.163866 0.467545 -0.529645
+v 1.078494 0.484088 -0.505102
+v 1.078927 0.472714 -0.481504
+v 1.081046 0.461787 -0.460231
+v 1.084770 0.451726 -0.442100
+v 1.089956 0.442918 -0.427807
+v 1.096405 0.435702 -0.417901
+v 1.103869 0.430354 -0.412764
+v 1.112061 0.427081 -0.412592
+v 1.120666 0.426008 -0.417392
+v 1.129353 0.427176 -0.426981
+v 1.137789 0.430541 -0.440989
+v 1.145650 0.435973 -0.458877
+v 1.152633 0.443263 -0.479960
+v 1.158470 0.452132 -0.503425
+v 1.162937 0.462238 -0.528373
+v 1.077646 0.479211 -0.504799
+v 1.077263 0.463147 -0.480911
+v 1.078630 0.447898 -0.459370
+v 1.081695 0.434049 -0.441004
+v 1.086341 0.422132 -0.426517
+v 1.092388 0.412605 -0.416469
+v 1.099604 0.405835 -0.411243
+v 1.107712 0.402081 -0.411041
+v 1.116400 0.401489 -0.415872
+v 1.125335 0.404080 -0.425548
+v 1.134174 0.409755 -0.439699
+v 1.142575 0.418296 -0.457781
+v 1.150217 0.429374 -0.479098
+v 1.156806 0.442565 -0.502832
+v 1.162089 0.457361 -0.528070
+v 1.076911 0.474951 -0.505478
+v 1.075821 0.454790 -0.482243
+v 1.076536 0.435765 -0.461304
+v 1.079031 0.418607 -0.443465
+v 1.083207 0.403974 -0.429412
+v 1.088906 0.392429 -0.419685
+v 1.095908 0.384416 -0.414658
+v 1.103944 0.380243 -0.414523
+v 1.112705 0.380070 -0.419286
+v 1.121854 0.383904 -0.428765
+v 1.131040 0.391597 -0.442594
+v 1.139911 0.402854 -0.460243
+v 1.148124 0.417242 -0.481032
+v 1.155364 0.434208 -0.504164
+v 1.161354 0.453101 -0.528749
+v 1.079765 0.495471 -0.530116
+v 1.076317 0.471470 -0.507113
+v 1.074656 0.447964 -0.485450
+v 1.074846 0.425855 -0.465960
+v 1.076879 0.405993 -0.449390
+v 1.080677 0.389142 -0.436379
+v 1.086095 0.375948 -0.427427
+v 1.092923 0.366920 -0.422876
+v 1.100901 0.362405 -0.422902
+v 1.109720 0.362574 -0.427505
+v 1.119043 0.367423 -0.436507
+v 1.128510 0.376765 -0.449561
+v 1.137759 0.390240 -0.466168
+v 1.146433 0.407331 -0.485688
+v 1.154200 0.427381 -0.507371
+v 1.160760 0.449620 -0.530384
+v 1.075888 0.468904 -0.509640
+v 1.073814 0.442930 -0.490408
+v 1.073623 0.418547 -0.473157
+v 1.075323 0.396692 -0.458551
+v 1.078847 0.378205 -0.447152
+v 1.084061 0.363797 -0.439396
+v 1.090765 0.354020 -0.435583
+v 1.098700 0.349252 -0.435858
+v 1.107561 0.349674 -0.440212
+v 1.117009 0.355271 -0.448476
+v 1.126680 0.365828 -0.460334
+v 1.136203 0.380939 -0.475329
+v 1.145210 0.400024 -0.492886
+v 1.153357 0.422348 -0.512329
+v 1.160331 0.447054 -0.532911
+vn -0.681265 -0.692312 0.237709
+vn -0.904202 -0.398114 0.154515
+vn -0.899167 -0.437422 -0.010163
+vn -0.997864 0.060305 0.024537
+vn -0.993133 0.116459 0.008606
+vn -0.994049 0.108585 -0.008240
+vn 0.937773 -0.342936 0.054415
+vn 0.903439 -0.421674 0.077029
+vn 0.928129 -0.372173 0.000702
+vn -0.163366 -0.944243 0.285836
+vn -0.237678 -0.971313 0.003082
+vn -0.999023 -0.005646 0.043184
+vn -0.998962 0.044557 -0.009156
+vn 0.959319 -0.279885 0.036439
+vn 0.954558 -0.297952 0.002503
+vn 0.400891 -0.887326 0.227851
+vn 0.306772 -0.951720 -0.008209
+vn -0.993652 -0.090213 0.066988
+vn -0.999512 -0.029389 -0.010102
+vn 0.974090 -0.225135 0.020844
+vn 0.972289 -0.233711 0.003906
+vn 0.710898 -0.685812 0.155644
+vn 0.649068 -0.760643 -0.009552
+vn -0.972472 -0.209967 0.100833
+vn -0.992462 -0.122013 -0.011048
+vn 0.841639 -0.529069 0.108188
+vn 0.808283 -0.588733 -0.005341
+vn -0.968505 -0.248695 -0.011597
+vn 0.885464 -0.464644 -0.001770
+vn -0.697470 -0.716575 -0.002472
+vn -0.882015 -0.447066 -0.148717
+vn -0.994324 0.103427 -0.024293
+vn 0.918058 -0.392804 -0.053377
+vn -0.286966 -0.931303 -0.224189
+vn -0.998535 0.034150 -0.041353
+vn 0.949950 -0.310739 -0.031312
+vn 0.221259 -0.951018 -0.215766
+vn -0.997162 -0.044527 -0.060366
+vn 0.970763 -0.239570 -0.012604
+vn 0.583178 -0.794702 -0.168218
+vn -0.986541 -0.140751 -0.083010
+vn 0.770867 -0.625782 -0.118748
+vn -0.956969 -0.267769 -0.111606
+vn 0.865627 -0.494003 -0.081301
+vn 0.734123 -0.640522 -0.225196
+vn -0.942198 -0.270577 -0.197516
+vn 0.846126 -0.509140 -0.157476
+vn -0.691702 -0.696066 -0.192328
+vn -0.860988 -0.436171 -0.261513
+vn -0.994110 0.100864 -0.039064
+vn 0.908505 -0.404279 -0.105411
+vn -0.316630 -0.862697 -0.394269
+vn -0.997040 0.028993 -0.071017
+vn 0.945952 -0.317942 -0.063692
+vn 0.152104 -0.910764 -0.383831
+vn -0.993011 -0.051424 -0.106113
+vn 0.969665 -0.242744 -0.028199
+vn 0.522294 -0.794671 -0.309305
+vn -0.978027 -0.147618 -0.147038
+vn 0.969024 -0.243233 -0.042268
+vn 0.472671 -0.769616 -0.429243
+vn -0.968688 -0.143742 -0.202338
+vn 0.702658 -0.635334 -0.320322
+vn -0.927183 -0.259926 -0.269662
+vn 0.829463 -0.510239 -0.227088
+vn -0.677541 -0.653829 -0.336711
+vn -0.840815 -0.410779 -0.352489
+vn -0.993530 0.100803 -0.052217
+vn 0.900723 -0.406415 -0.153264
+vn -0.333079 -0.785394 -0.521683
+vn -0.994812 0.028932 -0.097415
+vn 0.942961 -0.319437 -0.093387
+vn 0.101444 -0.850185 -0.516587
+vn -0.987945 -0.050478 -0.146306
+vn -0.992187 0.033753 -0.119938
+vn 0.941465 -0.315226 -0.119297
+vn 0.068545 -0.779717 -0.622333
+vn -0.982665 -0.042177 -0.180364
+vn 0.968963 -0.241066 -0.054415
+vn 0.437788 -0.726981 -0.528947
+vn -0.959807 -0.130222 -0.248573
+vn 0.680013 -0.613208 -0.401868
+vn -0.913846 -0.237892 -0.329020
+vn 0.817866 -0.498276 -0.287698
+vn -0.662252 -0.601062 -0.447310
+vn -0.823817 -0.374310 -0.425642
+vn -0.992615 0.103183 -0.063448
+vn 0.895749 -0.399396 -0.195105
+vn -0.340922 -0.706229 -0.620441
+vn -0.648854 -0.541978 -0.534043
+vn -0.810968 -0.328440 -0.484146
+vn -0.991516 0.107791 -0.072451
+vn 0.894436 -0.383801 -0.229408
+vn -0.342784 -0.625996 -0.700430
+vn -0.989471 0.043184 -0.138096
+vn 0.941710 -0.305643 -0.140446
+vn 0.051912 -0.703543 -0.708731
+vn -0.977783 -0.027100 -0.207801
+vn 0.969512 -0.236396 -0.064272
+vn 0.419446 -0.671529 -0.610767
+vn -0.952208 -0.108005 -0.285684
+vn 0.668722 -0.576891 -0.468978
+vn -0.903226 -0.205908 -0.376507
+vn 0.812922 -0.474502 -0.337535
+vn 0.670217 -0.528398 -0.521104
+vn -0.802545 -0.273659 -0.530045
+vn 0.815699 -0.440138 -0.375317
+vn -0.638386 -0.477462 -0.603687
+vn -0.631031 -0.406751 -0.660512
+vn -0.990265 0.114475 -0.079134
+vn 0.897214 -0.360424 -0.255074
+vn -0.339854 -0.542741 -0.768029
+vn -0.986785 0.056887 -0.151585
+vn 0.943846 -0.291116 -0.156133
+vn 0.050569 -0.622059 -0.781304
+vn -0.973571 -0.005737 -0.228248
+vn 0.970641 -0.229530 -0.071535
+vn 0.418561 -0.605487 -0.676870
+vn -0.946348 -0.077731 -0.313608
+vn 0.947844 -0.272134 -0.165868
+vn 0.064547 -0.533372 -0.843379
+vn -0.895779 -0.164769 -0.412793
+vn -0.891568 -0.114872 -0.438032
+vn 0.435743 -0.529191 -0.728050
+vn -0.798425 -0.209632 -0.564379
+vn 0.685110 -0.468764 -0.557512
+vn -0.626576 -0.327891 -0.706992
+vn -0.984283 0.074465 -0.160100
+vn 0.826380 -0.396283 -0.399976
+vn -0.332224 -0.453230 -0.827143
+vn -0.970183 0.021363 -0.241371
+vn 0.904172 -0.329997 -0.271218
+vn -0.942381 -0.040010 -0.332102
+vn 0.914914 -0.293435 -0.277139
+vn -0.319071 -0.352641 -0.879665
+vn -0.940092 0.004639 -0.340831
+vn 0.972381 -0.220557 -0.076113
+vn 0.953520 -0.249214 -0.169256
+vn 0.095004 -0.433637 -0.896054
+vn -0.890225 -0.056246 -0.451949
+vn 0.471389 -0.441481 -0.763451
+vn -0.798059 -0.135380 -0.587115
+vn 0.712973 -0.398541 -0.576861
+vn -0.624378 -0.237892 -0.743980
+vn -0.988861 0.123081 -0.083377
+vn -0.981903 0.095523 -0.163366
+vn 0.844539 -0.343883 -0.410413
+vn -0.967559 0.053652 -0.246834
+vn -0.987396 0.133366 -0.085025
+vn -0.979644 0.119510 -0.161260
+vn 0.868831 -0.284005 -0.405469
+vn -0.298257 -0.234230 -0.925291
+vn -0.965423 0.090487 -0.244331
+vn 0.928678 -0.251717 -0.272256
+vn -0.939055 0.055696 -0.339213
+vn 0.974639 -0.209693 -0.077792
+vn 0.960540 -0.223090 -0.166021
+vn 0.144200 -0.317118 -0.937346
+vn -0.891079 0.011109 -0.453688
+vn 0.525285 -0.340129 -0.779962
+vn -0.800623 -0.049318 -0.597125
+vn 0.752373 -0.317942 -0.576891
+vn -0.623463 -0.132572 -0.770501
+vn -0.804498 0.050356 -0.591754
+vn 0.800348 -0.227638 -0.554613
+vn -0.621754 -0.006378 -0.783166
+vn -0.985809 0.145207 -0.083987
+vn -0.977294 0.145787 -0.153600
+vn 0.897092 -0.218238 -0.384136
+vn -0.265938 -0.088595 -0.959899
+vn -0.963439 0.131077 -0.233558
+vn 0.944273 -0.206336 -0.256355
+vn -0.938444 0.112522 -0.326518
+vn 0.977355 -0.197211 -0.076449
+vn 0.968352 -0.194678 -0.156072
+vn 0.214881 -0.176305 -0.960570
+vn -0.892880 0.087313 -0.441694
+vn 0.595965 -0.222633 -0.771508
+vn 0.308267 -0.003754 -0.951262
+vn -0.893918 0.171911 -0.413892
+vn 0.678854 -0.088473 -0.728874
+vn -0.807123 0.165288 -0.566729
+vn 0.852046 -0.129795 -0.507065
+vn -0.615253 0.147099 -0.774438
+vn -0.984130 0.158269 -0.080172
+vn -0.974731 0.173650 -0.140385
+vn 0.926298 -0.148839 -0.346110
+vn -0.216071 0.095767 -0.971648
+vn -0.961058 0.174444 -0.214240
+vn 0.960173 -0.158940 -0.229743
+vn -0.937284 0.174139 -0.301889
+vn 0.980346 -0.183538 -0.071993
+vn 0.976318 -0.165014 -0.139683
+vn 0.974761 -0.111576 -0.193213
+vn -0.141850 0.325968 -0.934660
+vn -0.934263 0.239021 -0.264534
+vn 0.983459 -0.169134 -0.064486
+vn 0.983795 -0.135289 -0.117374
+vn 0.419752 0.200537 -0.885189
+vn -0.891812 0.263436 -0.367748
+vn 0.764458 0.057344 -0.642079
+vn -0.804285 0.295297 -0.515641
+vn 0.900937 -0.029054 -0.432966
+vn -0.596942 0.332255 -0.730216
+vn -0.982299 0.172155 -0.073550
+vn -0.971709 0.202277 -0.121677
+vn 0.953093 -0.079043 -0.292154
+vn -0.957671 0.219337 -0.186254
+vn -0.980346 0.186499 -0.064180
+vn -0.968108 0.230628 -0.097659
+vn 0.974364 -0.012909 -0.224555
+vn -0.557085 0.541917 -0.629231
+vn -0.952788 0.264077 -0.149632
+vn 0.986694 -0.066561 -0.148259
+vn -0.043062 0.584490 -0.810236
+vn -0.928129 0.304666 -0.213874
+vn 0.986511 -0.154393 -0.054079
+vn 0.990204 -0.106845 -0.089846
+vn 0.534135 0.415540 -0.736198
+vn -0.883724 0.358348 -0.300974
+vn 0.838252 0.200598 -0.506974
+vn -0.790246 0.435530 -0.431013
+vn 0.939940 0.066958 -0.334666
+vn -0.867275 0.449873 -0.213080
+vn 0.964049 0.148991 -0.219916
+vn -0.759606 0.572436 -0.308664
+vn -0.978240 0.200751 -0.052004
+vn -0.963927 0.257057 -0.068789
+vn 0.988037 0.044771 -0.147496
+vn -0.489608 0.743217 -0.455947
+vn -0.946135 0.306223 -0.105045
+vn 0.994903 -0.026673 -0.097140
+vn 0.065615 0.812037 -0.579852
+vn -0.917905 0.367138 -0.150456
+vn 0.989288 -0.140049 -0.040925
+vn 0.994964 -0.081301 -0.058260
+vn 0.627491 0.593371 -0.504105
+vn 0.886288 0.319407 -0.335276
+vn 0.681265 0.692312 -0.237678
+vn -0.903439 0.421705 -0.077029
+vn 0.972472 0.209998 -0.100833
+vn -0.841639 0.529069 -0.108188
+vn 0.993652 0.090213 -0.066988
+vn -0.710898 0.685812 -0.155644
+vn -0.976104 0.213996 -0.037294
+vn -0.974090 0.225166 -0.020844
+vn 0.999023 0.005646 -0.043153
+vn -0.400891 0.887326 -0.227821
+vn -0.959319 0.279885 -0.036439
+vn 0.997864 -0.060305 -0.024537
+vn 0.163366 0.944243 -0.285806
+vn -0.937773 0.342936 -0.054415
+vn 0.991546 -0.127049 -0.025422
+vn 0.993133 -0.116428 -0.008606
+vn 0.998962 -0.044557 0.009156
+vn 0.237678 0.971313 -0.003082
+vn -0.928129 0.372173 -0.000702
+vn 0.994049 -0.108585 0.008240
+vn 0.904202 0.398114 -0.154515
+vn 0.899167 0.437422 0.010163
+vn -0.885464 0.464644 0.001770
+vn 0.968505 0.248695 0.011597
+vn -0.808283 0.588733 0.005341
+vn 0.992462 0.122013 0.011048
+vn -0.649068 0.760643 0.009552
+vn -0.972289 0.233711 -0.003906
+vn 0.999512 0.029389 0.010102
+vn -0.306772 0.951720 0.008209
+vn -0.954558 0.297952 -0.002503
+vn 0.997162 0.044527 0.060366
+vn -0.221259 0.951018 0.215766
+vn -0.949950 0.310739 0.031312
+vn 0.998535 -0.034150 0.041353
+vn 0.697470 0.716575 0.002472
+vn 0.286966 0.931303 0.224189
+vn -0.918058 0.392804 0.053377
+vn 0.994324 -0.103427 0.024293
+vn 0.882015 0.447066 0.148717
+vn -0.865627 0.494003 0.081301
+vn 0.956969 0.267769 0.111606
+vn -0.770867 0.625782 0.118748
+vn 0.986541 0.140751 0.083010
+vn -0.583209 0.794702 0.168218
+vn -0.970763 0.239570 0.012604
+vn 0.978027 0.147618 0.147038
+vn -0.522294 0.794671 0.309305
+vn -0.969665 0.242744 0.028199
+vn 0.993011 0.051424 0.106113
+vn -0.152104 0.910764 0.383831
+vn -0.945952 0.317942 0.063692
+vn 0.997040 -0.028993 0.071017
+vn 0.691702 0.696066 0.192328
+vn 0.316630 0.862697 0.394269
+vn -0.908505 0.404279 0.105411
+vn 0.994110 -0.100864 0.039064
+vn 0.860988 0.436171 0.261513
+vn -0.846126 0.509140 0.157476
+vn 0.942198 0.270577 0.197516
+vn -0.734123 0.640522 0.225196
+vn -0.829463 0.510239 0.227088
+vn 0.927183 0.259926 0.269662
+vn -0.702658 0.635334 0.320322
+vn 0.968688 0.143742 0.202338
+vn -0.472671 0.769616 0.429243
+vn -0.969024 0.243233 0.042268
+vn 0.987945 0.050478 0.146336
+vn -0.101444 0.850185 0.516587
+vn -0.942961 0.319437 0.093387
+vn 0.994812 -0.028901 0.097415
+vn 0.677572 0.653829 0.336711
+vn 0.333079 0.785394 0.521683
+vn -0.900723 0.406384 0.153264
+vn 0.993530 -0.100803 0.052217
+vn 0.840815 0.410779 0.352489
+vn 0.662252 0.601062 0.447310
+vn 0.340922 0.706229 0.620441
+vn -0.895749 0.399396 0.195105
+vn 0.992615 -0.103183 0.063417
+vn 0.823817 0.374310 0.425642
+vn -0.817835 0.498306 0.287698
+vn 0.913846 0.237892 0.329020
+vn -0.680013 0.613208 0.401868
+vn 0.959807 0.130222 0.248573
+vn -0.437788 0.726981 0.528947
+vn -0.968963 0.241066 0.054415
+vn 0.982665 0.042177 0.180364
+vn -0.068545 0.779717 0.622333
+vn -0.941465 0.315226 0.119297
+vn 0.992187 -0.033753 0.119938
+vn 0.977783 0.027100 0.207801
+vn -0.051912 0.703543 0.708731
+vn -0.941710 0.305643 0.140446
+vn 0.989471 -0.043214 0.138096
+vn 0.648854 0.541978 0.534043
+vn 0.342784 0.625996 0.700430
+vn -0.894436 0.383801 0.229408
+vn 0.991516 -0.107791 0.072451
+vn 0.810968 0.328440 0.484146
+vn -0.812922 0.474502 0.337535
+vn 0.903226 0.205908 0.376507
+vn -0.668722 0.576891 0.468978
+vn 0.952208 0.108005 0.285684
+vn -0.419446 0.671529 0.610767
+vn -0.969512 0.236427 0.064272
+vn 0.946348 0.077731 0.313608
+vn -0.418561 0.605487 0.676870
+vn -0.970641 0.229530 0.071535
+vn 0.973571 0.005707 0.228248
+vn -0.050569 0.622059 0.781304
+vn -0.943846 0.291116 0.156133
+vn 0.986785 -0.056887 0.151585
+vn 0.638386 0.477493 0.603687
+vn 0.339854 0.542741 0.768029
+vn -0.897214 0.360424 0.255074
+vn 0.990265 -0.114444 0.079134
+vn 0.631062 0.406751 0.660512
+vn -0.815699 0.440138 0.375317
+vn 0.802545 0.273659 0.530045
+vn -0.670217 0.528398 0.521104
+vn -0.685110 0.468764 0.557512
+vn 0.895779 0.164800 0.412793
+vn 0.798425 0.209632 0.564379
+vn -0.435743 0.529191 0.728050
+vn 0.891568 0.114872 0.438032
+vn -0.064547 0.533372 0.843410
+vn -0.947844 0.272134 0.165868
+vn 0.942381 0.040010 0.332102
+vn -0.904172 0.329997 0.271218
+vn 0.970183 -0.021363 0.241371
+vn 0.332224 0.453230 0.827143
+vn -0.826380 0.396283 0.399976
+vn 0.984283 -0.074465 0.160100
+vn 0.626545 0.327891 0.706992
+vn 0.319071 0.352641 0.879665
+vn -0.844539 0.343883 0.410413
+vn 0.988861 -0.123051 0.083377
+vn 0.981903 -0.095523 0.163366
+vn 0.624378 0.237892 0.743980
+vn -0.712973 0.398541 0.576861
+vn 0.798059 0.135380 0.587115
+vn -0.471389 0.441481 0.763451
+vn 0.890225 0.056246 0.451979
+vn -0.095004 0.433637 0.896054
+vn -0.972381 0.220557 0.076113
+vn -0.953520 0.249214 0.169256
+vn 0.940092 -0.004639 0.340831
+vn -0.914914 0.293405 0.277139
+vn 0.967559 -0.053652 0.246834
+vn 0.939055 -0.055696 0.339213
+vn 0.298257 0.234230 0.925291
+vn -0.928678 0.251717 0.272256
+vn 0.965423 -0.090487 0.244362
+vn -0.868831 0.284005 0.405469
+vn 0.987396 -0.133396 0.085055
+vn 0.979644 -0.119510 0.161260
+vn 0.623463 0.132572 0.770501
+vn -0.752373 0.317942 0.576891
+vn 0.800623 0.049318 0.597125
+vn -0.525285 0.340098 0.779962
+vn 0.891079 -0.011109 0.453688
+vn -0.144200 0.317118 0.937346
+vn -0.974639 0.209693 0.077792
+vn -0.960540 0.223060 0.166021
+vn 0.892880 -0.087313 0.441694
+vn -0.214881 0.176305 0.960570
+vn -0.977355 0.197211 0.076449
+vn -0.968352 0.194678 0.156072
+vn 0.938444 -0.112522 0.326518
+vn 0.265938 0.088595 0.959899
+vn -0.944273 0.206336 0.256355
+vn 0.963439 -0.131077 0.233558
+vn -0.897092 0.218238 0.384136
+vn 0.985809 -0.145207 0.083987
+vn 0.977294 -0.145787 0.153600
+vn 0.621754 0.006378 0.783166
+vn -0.800348 0.227638 0.554613
+vn 0.804498 -0.050356 0.591754
+vn -0.595965 0.222633 0.771508
+vn 0.807123 -0.165288 0.566729
+vn -0.678854 0.088473 0.728874
+vn 0.893918 -0.171911 0.413892
+vn -0.308267 0.003754 0.951262
+vn -0.980346 0.183538 0.071993
+vn -0.976318 0.165014 0.139683
+vn 0.937284 -0.174169 0.301889
+vn 0.216071 -0.095767 0.971648
+vn -0.960173 0.158940 0.229743
+vn 0.961058 -0.174444 0.214240
+vn -0.926298 0.148839 0.346110
+vn 0.984130 -0.158269 0.080172
+vn 0.974731 -0.173650 0.140385
+vn 0.615253 -0.147099 0.774438
+vn -0.852046 0.129795 0.507065
+vn -0.953063 0.079043 0.292154
+vn 0.982299 -0.172155 0.073550
+vn 0.971709 -0.202277 0.121677
+vn 0.596942 -0.332255 0.730216
+vn -0.900937 0.029054 0.432966
+vn 0.804285 -0.295297 0.515641
+vn -0.764458 -0.057344 0.642079
+vn 0.891812 -0.263436 0.367748
+vn -0.419752 -0.200537 0.885189
+vn -0.983459 0.169103 0.064486
+vn -0.983795 0.135289 0.117374
+vn 0.934263 -0.239021 0.264534
+vn 0.141850 -0.325968 0.934660
+vn -0.974761 0.111576 0.193213
+vn 0.957671 -0.219337 0.186254
+vn 0.043062 -0.584490 0.810236
+vn -0.986694 0.066561 0.148259
+vn 0.952788 -0.264077 0.149632
+vn 0.557085 -0.541887 0.629231
+vn -0.974364 0.012909 0.224555
+vn 0.980346 -0.186499 0.064180
+vn 0.968108 -0.230628 0.097659
+vn -0.939940 -0.066958 0.334666
+vn 0.790246 -0.435530 0.431013
+vn -0.838282 -0.200598 0.506974
+vn 0.883724 -0.358348 0.300974
+vn -0.534104 -0.415571 0.736198
+vn -0.986511 0.154393 0.054079
+vn -0.990204 0.106815 0.089846
+vn 0.928129 -0.304666 0.213874
+vn 0.867275 -0.449873 0.213080
+vn -0.627491 -0.593371 0.504135
+vn -0.989288 0.140049 0.040925
+vn -0.994964 0.081301 0.058260
+vn 0.917905 -0.367138 0.150456
+vn -0.065615 -0.812037 0.579882
+vn -0.994903 0.026673 0.097140
+vn 0.946135 -0.306223 0.105045
+vn 0.489608 -0.743217 0.455947
+vn -0.988037 -0.044771 0.147496
+vn 0.978240 -0.200751 0.052004
+vn 0.963927 -0.257057 0.068789
+vn 0.759606 -0.572436 0.308664
+vn -0.964049 -0.148991 0.219916
+vn -0.886288 -0.319407 0.335276
+vn 0.985198 -0.171270 0.005707
+vn -0.985198 0.171270 -0.005707
+vn 0.976104 -0.213996 0.037294
+vn -0.991546 0.127079 0.025422
+vn -0.993133 0.116428 0.008606
+vn 0.928159 -0.372173 0.000702
+vn 0.974090 -0.225166 0.020814
+vn 0.841609 -0.529069 0.108188
+vn 0.583209 -0.794702 -0.168218
+vn 0.865627 -0.494034 -0.081301
+vn 0.846126 -0.509110 -0.157476
+vn -0.994110 0.100864 -0.039094
+vn 0.152074 -0.910764 -0.383831
+vn 0.969665 -0.242744 -0.028169
+vn 0.472640 -0.769616 -0.429243
+vn 0.702658 -0.635304 -0.320322
+vn -0.927183 -0.259896 -0.269662
+vn -0.987945 -0.050478 -0.146336
+vn -0.982665 -0.042207 -0.180364
+vn -0.959807 -0.130253 -0.248573
+vn -0.992615 0.103183 -0.063417
+vn -0.340922 -0.706259 -0.620441
+vn -0.342784 -0.625965 -0.700430
+vn 0.969512 -0.236427 -0.064272
+vn -0.952208 -0.107974 -0.285684
+vn -0.638386 -0.477462 -0.603656
+vn -0.339824 -0.542741 -0.768029
+vn 0.970641 -0.229499 -0.071535
+vn 0.064547 -0.533372 -0.843410
+vn -0.798425 -0.209662 -0.564379
+vn -0.626545 -0.327891 -0.707022
+vn -0.984283 0.074465 -0.160070
+vn 0.914914 -0.293405 -0.277139
+vn -0.940092 0.004608 -0.340831
+vn -0.890225 -0.056246 -0.451979
+vn -0.967559 0.053682 -0.246834
+vn -0.987396 0.133396 -0.085025
+vn -0.979644 0.119480 -0.161260
+vn -0.965423 0.090487 -0.244362
+vn 0.144200 -0.317148 -0.937346
+vn 0.525285 -0.340098 -0.779962
+vn -0.800623 -0.049348 -0.597125
+vn -0.621723 -0.006378 -0.783166
+vn -0.985809 0.145268 -0.083987
+vn -0.938444 0.112552 -0.326487
+vn 0.595935 -0.222633 -0.771508
+vn 0.852046 -0.129765 -0.507065
+vn 0.926267 -0.148869 -0.346110
+vn -0.961058 0.174413 -0.214240
+vn -0.937284 0.174169 -0.301889
+vn 0.983459 -0.169073 -0.064516
+vn -0.982299 0.172124 -0.073550
+vn -0.971709 0.202307 -0.121677
+vn 0.953063 -0.079043 -0.292154
+vn -0.957701 0.219337 -0.186254
+vn -0.557085 0.541887 -0.629231
+vn 0.990173 -0.106845 -0.089846
+vn 0.534104 0.415571 -0.736198
+vn 0.838282 0.200568 -0.506974
+vn 0.988037 0.044771 -0.147465
+vn -0.489578 0.743217 -0.455947
+vn 0.989288 -0.140080 -0.040925
+vn 0.627461 0.593371 -0.504135
+vn 0.972472 0.209967 -0.100833
+vn -0.976104 0.213996 -0.037263
+vn 0.999023 0.005646 -0.043184
+vn -0.959319 0.279885 -0.036409
+vn 0.998962 -0.044588 0.009156
+vn 0.237678 0.971313 -0.003113
+vn -0.928159 0.372173 -0.000702
+vn -0.808283 0.588733 0.005310
+vn -0.972259 0.233741 -0.003906
+vn 0.993011 0.051424 0.106082
+vn -0.152104 0.910764 0.383862
+vn 0.316630 0.862697 0.394299
+vn 0.860988 0.436201 0.261513
+vn -0.846126 0.509110 0.157476
+vn -0.829463 0.510239 0.227119
+vn 0.927183 0.259896 0.269662
+vn -0.702658 0.635304 0.320322
+vn -0.472640 0.769616 0.429243
+vn 0.987945 0.050478 0.146306
+vn 0.994812 -0.028932 0.097415
+vn 0.677541 0.653829 0.336711
+vn -0.900723 0.406415 0.153264
+vn 0.340922 0.706259 0.620441
+vn -0.817866 0.498276 0.287698
+vn 0.982665 0.042177 0.180395
+vn 0.989471 -0.043184 0.138096
+vn 0.342784 0.625965 0.700430
+vn 0.952208 0.107974 0.285684
+vn -0.970641 0.229499 0.071535
+vn 0.973571 0.005737 0.228248
+vn 0.638386 0.477462 0.603656
+vn 0.339824 0.542741 0.768029
+vn -0.897214 0.360424 0.255043
+vn 0.990265 -0.114475 0.079134
+vn 0.631031 0.406751 0.660512
+vn -0.670217 0.528367 0.521104
+vn 0.895779 0.164769 0.412793
+vn 0.798425 0.209662 0.564379
+vn -0.904141 0.330027 0.271218
+vn 0.984283 -0.074496 0.160100
+vn 0.626545 0.327891 0.707022
+vn 0.890225 0.056246 0.451949
+vn 0.940092 -0.004608 0.340831
+vn 0.967559 -0.053682 0.246834
+vn 0.987396 -0.133366 0.085055
+vn 0.979644 -0.119480 0.161260
+vn -0.960540 0.223090 0.166021
+vn -0.977355 0.197180 0.076449
+vn -0.944273 0.206336 0.256386
+vn 0.985809 -0.145238 0.083987
+vn -0.976318 0.165044 0.139683
+vn -0.926298 0.148869 0.346110
+vn 0.974731 -0.173681 0.140385
+vn 0.615253 -0.147099 0.774468
+vn -0.852046 0.129765 0.507065
+vn 0.971709 -0.202307 0.121677
+vn -0.974761 0.111545 0.193213
+vn 0.957701 -0.219306 0.186254
+vn 0.043092 -0.584490 0.810236
+vn -0.990204 0.106845 0.089846
+vn 0.928098 -0.304666 0.213874
+vn -0.065615 -0.812037 0.579852
+vn 0.978240 -0.200751 0.052034
+usemtl SkinColor
+s 1
+f 1453//1107 1452//1108 1467//1109
+f 1448//1110 1447//1111 1462//1112
+f 1459//1113 1458//1114 1474//1115
+f 1454//1116 1453//1107 1469//1117
+f 1449//1118 1448//1110 1463//1119
+f 1460//1120 1459//1113 1475//1121
+f 1455//1122 1454//1116 1470//1123
+f 1450//1124 1449//1118 1464//1125
+f 1461//1126 1460//1120 1476//1127
+f 1456//1128 1455//1122 1471//1129
+f 1451//1130 1450//1124 1465//1131
+f 1457//1132 1456//1128 1472//1133
+f 1452//1108 1451//1130 1466//1134
+f 1458//1114 1457//1132 1473//1135
+f 1468//1136 1467//1109 1482//1137
+f 1463//1119 1462//1112 1477//1138
+f 1474//1115 1473//1135 1489//1139
+f 1469//1117 1468//1136 1484//1140
+f 1464//1125 1463//1119 1478//1141
+f 1475//1121 1474//1115 1490//1142
+f 1470//1123 1469//1117 1485//1143
+f 1465//1131 1464//1125 1479//1144
+f 1476//1127 1475//1121 1491//1145
+f 1471//1129 1470//1123 1486//1146
+f 1466//1134 1465//1131 1480//1147
+f 1472//1133 1471//1129 1487//1148
+f 1467//1109 1466//1134 1481//1149
+f 1473//1135 1472//1133 1488//1150
+f 1487//1148 1486//1146 1502//1151
+f 1482//1137 1481//1149 1496//1152
+f 1488//1150 1487//1148 1503//1153
+f 1483//1154 1482//1137 1497//1155
+f 1478//1141 1477//1138 1492//1156
+f 1489//1139 1488//1150 1504//1157
+f 1484//1140 1483//1154 1499//1158
+f 1479//1144 1478//1141 1493//1159
+f 1490//1142 1489//1139 1505//1160
+f 1485//1143 1484//1140 1500//1161
+f 1480//1147 1479//1144 1494//1162
+f 1491//1145 1490//1142 1506//1163
+f 1486//1146 1485//1143 1501//1164
+f 1481//1149 1480//1147 1495//1165
+f 1506//1163 1505//1160 1521//1166
+f 1501//1164 1500//1161 1516//1167
+f 1496//1152 1495//1165 1510//1168
+f 1502//1151 1501//1164 1517//1169
+f 1497//1155 1496//1152 1511//1170
+f 1503//1153 1502//1151 1518//1171
+f 1498//1172 1497//1155 1512//1173
+f 1493//1159 1492//1156 1507//1174
+f 1504//1157 1503//1153 1519//1175
+f 1499//1158 1498//1172 1514//1176
+f 1494//1162 1493//1159 1508//1177
+f 1505//1160 1504//1157 1520//1178
+f 1500//1161 1499//1158 1515//1179
+f 1495//1165 1494//1162 1509//1180
+f 1509//1180 1508//1177 1523//1181
+f 1520//1178 1519//1175 1535//1182
+f 1515//1179 1514//1176 1530//1183
+f 1510//1168 1509//1180 1524//1184
+f 1521//1166 1520//1178 1536//1185
+f 1516//1167 1515//1179 1531//1186
+f 1511//1170 1510//1168 1525//1187
+f 1517//1169 1516//1167 1532//1188
+f 1512//1173 1511//1170 1526//1189
+f 1518//1171 1517//1169 1533//1190
+f 1513//1191 1512//1173 1527//1192
+f 1508//1177 1507//1174 1522//1193
+f 1519//1175 1518//1171 1534//1194
+f 1514//1176 1513//1191 1529//1195
+f 1528//1196 1527//1192 1542//1197
+f 1523//1181 1522//1193 1537//1198
+f 1534//1194 1533//1190 1549//1199
+f 1529//1195 1528//1196 1544//1200
+f 1524//1184 1523//1181 1538//1201
+f 1535//1182 1534//1194 1550//1202
+f 1530//1183 1529//1195 1545//1203
+f 1525//1187 1524//1184 1539//1204
+f 1536//1185 1535//1182 1551//1205
+f 1531//1186 1530//1183 1546//1206
+f 1526//1189 1525//1187 1540//1207
+f 1532//1188 1531//1186 1547//1208
+f 1527//1192 1526//1189 1541//1209
+f 1533//1190 1532//1188 1548//1210
+f 1547//1208 1546//1206 1562//1211
+f 1542//1197 1541//1209 1557//1212
+f 1548//1210 1547//1208 1563//1213
+f 1543//1214 1542//1197 1558//1215
+f 1538//1201 1537//1198 1552//1216
+f 1549//1199 1548//1210 1564//1217
+f 1544//1200 1543//1214 1559//1218
+f 1539//1204 1538//1201 1553//1219
+f 1550//1202 1549//1199 1565//1220
+f 1545//1203 1544//1200 1560//1221
+f 1540//1207 1539//1204 1554//1222
+f 1551//1205 1550//1202 1566//1223
+f 1546//1206 1545//1203 1561//1224
+f 1541//1209 1540//1207 1555//1225
+f 1566//1223 1565//1220 1580//1226
+f 1561//1224 1560//1221 1575//1227
+f 1556//1228 1555//1225 1571//1229
+f 1562//1211 1561//1224 1576//1230
+f 1557//1212 1556//1228 1572//1231
+f 1563//1213 1562//1211 1577//1232
+f 1558//1215 1557//1212 1573//1233
+f 1553//1219 1552//1216 1568//1234
+f 1564//1217 1563//1213 1578//1235
+f 1559//1218 1558//1215 1574//1236
+f 1554//1222 1553//1219 1569//1237
+f 1565//1220 1564//1217 1579//1238
+f 1560//1221 1559//1218 1575//1227
+f 1555//1225 1554//1222 1570//1239
+f 1580//1226 1579//1238 1594//1240
+f 1575//1227 1574//1236 1589//1241
+f 1570//1239 1569//1237 1585//1242
+f 1581//1243 1580//1226 1595//1244
+f 1576//1230 1575//1227 1590//1245
+f 1571//1229 1570//1239 1586//1246
+f 1577//1232 1576//1230 1591//1247
+f 1572//1231 1571//1229 1587//1248
+f 1578//1235 1577//1232 1592//1249
+f 1573//1233 1572//1231 1588//1250
+f 1568//1234 1567//1251 1583//1252
+f 1579//1238 1578//1235 1593//1253
+f 1574//1236 1573//1233 1589//1241
+f 1569//1237 1568//1234 1584//1254
+f 1583//1252 1582//1255 1598//1256
+f 1594//1240 1593//1253 1608//1257
+f 1589//1241 1588//1250 1604//1258
+f 1584//1254 1583//1252 1599//1259
+f 1595//1244 1594//1240 1609//1260
+f 1590//1245 1589//1241 1604//1258
+f 1585//1242 1584//1254 1600//1261
+f 1596//1262 1595//1244 1610//1263
+f 1591//1247 1590//1245 1605//1264
+f 1586//1246 1585//1242 1601//1265
+f 1592//1249 1591//1247 1606//1266
+f 1587//1248 1586//1246 1602//1267
+f 1593//1253 1592//1249 1607//1268
+f 1588//1250 1587//1248 1603//1269
+f 1602//1267 1601//1265 1617//1270
+f 1608//1257 1607//1268 1622//1271
+f 1603//1269 1602//1267 1618//1272
+f 1598//1256 1597//1273 1613//1274
+f 1609//1260 1608//1257 1623//1275
+f 1604//1258 1603//1269 1619//1276
+f 1599//1259 1598//1256 1614//1277
+f 1610//1263 1609//1260 1624//1278
+f 1605//1264 1604//1258 1619//1276
+f 1600//1261 1599//1259 1615//1279
+f 1611//1280 1610//1263 1625//1281
+f 1606//1266 1605//1264 1620//1282
+f 1601//1265 1600//1261 1616//1283
+f 1607//1268 1606//1266 1621//1284
+f 1621//1284 1620//1282 1635//1285
+f 1616//1283 1615//1279 1631//1286
+f 1622//1271 1621//1284 1636//1287
+f 1617//1270 1616//1283 1632//1288
+f 1623//1275 1622//1271 1637//1289
+f 1618//1272 1617//1270 1633//1290
+f 1613//1274 1612//1291 1628//1292
+f 1624//1278 1623//1275 1638//1293
+f 1619//1276 1618//1272 1634//1294
+f 1614//1277 1613//1274 1629//1295
+f 1625//1281 1624//1278 1639//1296
+f 1620//1282 1619//1276 1634//1294
+f 1615//1279 1614//1277 1630//1297
+f 1626//1298 1625//1281 1640//1299
+f 1640//1299 1639//1296 1654//1300
+f 1635//1285 1634//1294 1649//1301
+f 1630//1297 1629//1295 1645//1302
+f 1641//1303 1640//1299 1655//1304
+f 1636//1287 1635//1285 1650//1305
+f 1631//1286 1630//1297 1646//1306
+f 1637//1289 1636//1287 1651//1307
+f 1632//1288 1631//1286 1647//1308
+f 1638//1293 1637//1289 1652//1309
+f 1633//1290 1632//1288 1648//1310
+f 1628//1292 1627//1311 1643//1312
+f 1639//1296 1638//1293 1653//1313
+f 1634//1294 1633//1290 1649//1301
+f 1629//1295 1628//1292 1644//1314
+f 1643//1312 1642//1315 1658//1316
+f 1654//1300 1653//1313 1668//1317
+f 1649//1301 1648//1310 1663//1318
+f 1644//1314 1643//1312 1659//1319
+f 1655//1304 1654//1300 1669//1320
+f 1650//1305 1649//1301 1664//1321
+f 1645//1302 1644//1314 1660//1322
+f 1656//1323 1655//1304 1670//1324
+f 1651//1307 1650//1305 1665//1325
+f 1646//1306 1645//1302 1661//1326
+f 1652//1309 1651//1307 1666//1327
+f 1647//1308 1646//1306 1662//1328
+f 1653//1313 1652//1309 1667//1329
+f 1648//1310 1647//1308 1663//1318
+f 1662//1328 1661//1326 1676//1330
+f 1668//1317 1667//1329 1682//1331
+f 1663//1318 1662//1328 1677//1332
+f 1658//1316 1657//1333 1673//1334
+f 1669//1320 1668//1317 1683//1335
+f 1664//1321 1663//1318 1678//1336
+f 1659//1319 1658//1316 1674//1337
+f 1670//1324 1669//1320 1684//1338
+f 1665//1325 1664//1321 1679//1339
+f 1660//1322 1659//1319 1675//1340
+f 1671//1341 1670//1324 1685//1342
+f 1666//1327 1665//1325 1680//1343
+f 1661//1326 1660//1322 1676//1330
+f 1667//1329 1666//1327 1681//1344
+f 1681//1344 1680//1343 1695//1345
+f 1676//1330 1675//1340 1690//1346
+f 1682//1331 1681//1344 1697//1347
+f 1677//1332 1676//1330 1691//1348
+f 1683//1335 1682//1331 1698//1349
+f 1678//1336 1677//1332 1692//1350
+f 1673//1334 1672//1351 1687//1352
+f 1684//1338 1683//1335 1699//1353
+f 1679//1339 1678//1336 1693//1354
+f 1674//1337 1673//1334 1688//1355
+f 1685//1342 1684//1338 1700//1356
+f 1680//1343 1679//1339 1694//1357
+f 1675//1340 1674//1337 1689//1358
+f 1686//1359 1685//1342 1701//1360
+f 1700//1356 1699//1353 1715//1361
+f 1695//1345 1694//1357 1709//1362
+f 1690//1346 1689//1358 1704//1363
+f 1701//1360 1700//1356 1716//1364
+f 1696//1365 1695//1345 1711//1366
+f 1691//1348 1690//1346 1705//1367
+f 1697//1347 1696//1365 1712//1368
+f 1692//1350 1691//1348 1706//1369
+f 1698//1349 1697//1347 1713//1370
+f 1693//1354 1692//1350 1707//1371
+f 1688//1355 1687//1352 1702//1372
+f 1699//1353 1698//1349 1714//1373
+f 1694//1357 1693//1354 1708//1374
+f 1689//1358 1688//1355 1703//1375
+f 1714//1373 1713//1370 1729//1376
+f 1709//1362 1708//1374 1723//1377
+f 1704//1363 1703//1375 1718//1378
+f 1715//1361 1714//1373 1730//1379
+f 1710//1380 1709//1362 1724//1381
+f 1705//1367 1704//1363 1719//1382
+f 1716//1364 1715//1361 1731//1383
+f 1711//1366 1710//1380 1726//1384
+f 1706//1369 1705//1367 1720//1385
+f 1712//1368 1711//1366 1727//1386
+f 1707//1371 1706//1369 1721//1387
+f 1713//1370 1712//1368 1728//1388
+f 1708//1374 1707//1371 1722//1389
+f 1703//1375 1702//1372 1717//1390
+f 1728//1388 1727//1386 1743//1391
+f 1723//1377 1722//1389 1737//1392
+f 1718//1378 1717//1390 1732//1393
+f 1729//1376 1728//1388 1744//1394
+f 1724//1381 1723//1377 1738//1395
+f 1719//1382 1718//1378 1733//1396
+f 1730//1379 1729//1376 1745//1397
+f 1725//1398 1724//1381 1739//1399
+f 1720//1385 1719//1382 1734//1400
+f 1731//1383 1730//1379 1746//1401
+f 1726//1384 1725//1398 1741//1402
+f 1721//1387 1720//1385 1735//1403
+f 1727//1386 1726//1384 1742//1404
+f 1722//1389 1721//1387 1736//1405
+f 1736//1405 1735//1403 1750//1406
+f 1742//1404 1741//1402 1757//1407
+f 1737//1392 1736//1405 1751//1408
+f 1743//1391 1742//1404 1758//1409
+f 1738//1395 1737//1392 1752//1410
+f 1733//1396 1732//1393 1747//1411
+f 1744//1394 1743//1391 1759//1412
+f 1739//1399 1738//1395 1753//1413
+f 1734//1400 1733//1396 1748//1414
+f 1745//1397 1744//1394 1760//1415
+f 1740//1416 1739//1399 1754//1417
+f 1735//1403 1734//1400 1749//1418
+f 1746//1401 1745//1397 1761//1419
+f 1741//1402 1740//1416 1756//1420
+f 1755//1421 1754//1417 1769//1422
+f 1750//1406 1749//1418 1764//1423
+f 1761//1419 1760//1415 1776//1424
+f 1756//1420 1755//1421 1771//1425
+f 1751//1408 1750//1406 1765//1426
+f 1757//1407 1756//1420 1772//1427
+f 1752//1410 1751//1408 1766//1428
+f 1758//1409 1757//1407 1773//1429
+f 1753//1413 1752//1410 1767//1430
+f 1748//1414 1747//1411 1762//1431
+f 1759//1412 1758//1409 1774//1432
+f 1754//1417 1753//1413 1768//1433
+f 1749//1418 1748//1414 1763//1434
+f 1760//1415 1759//1412 1775//1435
+f 1774//1432 1773//1429 1790//1436
+f 1769//1422 1768//1433 1784//1437
+f 1764//1423 1763//1434 1779//1438
+f 1775//1435 1774//1432 1791//1439
+f 1770//1440 1769//1422 1785//1441
+f 1765//1426 1764//1423 1780//1442
+f 1776//1424 1775//1435 1792//1443
+f 1771//1425 1770//1440 1787//1444
+f 1766//1428 1765//1426 1781//1445
+f 1772//1427 1771//1425 1788//1446
+f 1767//1430 1766//1428 1782//1447
+f 1773//1429 1772//1427 1789//1448
+f 1768//1433 1767//1430 1783//1449
+f 1763//1434 1762//1431 1778//1450
+f 1789//1448 1788//1446 1804//1451
+f 1784//1437 1783//1449 1798//1452
+f 1779//1438 1778//1450 1793//1453
+f 1790//1436 1789//1448 1805//1454
+f 1785//1441 1784//1437 1799//1455
+f 1780//1442 1779//1438 1794//1456
+f 1791//1439 1790//1436 1806//1457
+f 1786//1458 1785//1441 1800//1459
+f 1781//1445 1780//1442 1795//1460
+f 1792//1443 1791//1439 1807//1461
+f 1787//1444 1786//1458 1801//1462
+f 1782//1447 1781//1445 1796//1463
+f 1788//1446 1787//1444 1802//1464
+f 1783//1449 1782//1447 1797//1465
+f 1797//1465 1796//1463 1812//1466
+f 1803//1467 1802//1464 1817//1468
+f 1798//1452 1797//1465 1813//1469
+f 1804//1451 1803//1467 1818//1470
+f 1799//1455 1798//1452 1814//1471
+f 1794//1456 1793//1453 1809//1472
+f 1805//1454 1804//1451 1819//1473
+f 1800//1459 1799//1455 1814//1471
+f 1795//1460 1794//1456 1810//1474
+f 1806//1457 1805//1454 1820//1475
+f 1801//1462 1800//1459 1815//1476
+f 1796//1463 1795//1460 1811//1477
+f 1807//1461 1806//1457 1821//1478
+f 1802//1464 1801//1462 1816//1479
+f 1816//1479 1815//1476 1830//1480
+f 1811//1477 1810//1474 1826//1481
+f 1822//1482 1821//1478 1836//1483
+f 1817//1468 1816//1479 1831//1484
+f 1812//1466 1811//1477 1827//1485
+f 1818//1470 1817//1468 1832//1486
+f 1813//1469 1812//1466 1828//1487
+f 1819//1473 1818//1470 1833//1488
+f 1814//1471 1813//1469 1829//1489
+f 1809//1472 1808//1490 1824//1491
+f 1820//1475 1819//1473 1834//1492
+f 1815//1476 1814//1471 1830//1480
+f 1810//1474 1809//1472 1825//1493
+f 1821//1478 1820//1475 1835//1494
+f 1835//1494 1834//1492 1849//1495
+f 1830//1480 1829//1489 1845//1496
+f 1825//1493 1824//1491 1840//1497
+f 1836//1483 1835//1494 1850//1498
+f 1831//1484 1830//1480 1845//1496
+f 1826//1481 1825//1493 1841//1499
+f 1837//1500 1836//1483 1851//1501
+f 1832//1486 1831//1484 1846//1502
+f 1827//1485 1826//1481 1842//1503
+f 1833//1488 1832//1486 1847//1504
+f 1828//1487 1827//1485 1843//1505
+f 1834//1492 1833//1488 1848//1506
+f 1829//1489 1828//1487 1844//1507
+f 1824//1491 1823//1508 1839//1509
+f 1849//1495 1848//1506 1863//1510
+f 1844//1507 1843//1505 1859//1511
+f 1839//1509 1838//1512 1854//1513
+f 1850//1498 1849//1495 1864//1514
+f 1845//1496 1844//1507 1860//1515
+f 1840//1497 1839//1509 1855//1516
+f 1851//1501 1850//1498 1865//1517
+f 1846//1502 1845//1496 1860//1515
+f 1841//1499 1840//1497 1856//1518
+f 1852//1519 1851//1501 1866//1520
+f 1847//1504 1846//1502 1861//1521
+f 1842//1503 1841//1499 1857//1522
+f 1848//1506 1847//1504 1862//1523
+f 1843//1505 1842//1503 1858//1524
+f 1863//1510 1862//1523 1877//1525
+f 1858//1524 1857//1522 1873//1526
+f 1864//1514 1863//1510 1878//1527
+f 1859//1511 1858//1524 1874//1528
+f 1854//1513 1853//1529 1869//1530
+f 1865//1517 1864//1514 1879//1531
+f 1860//1515 1859//1511 1875//1532
+f 1855//1516 1854//1513 1870//1533
+f 1866//1520 1865//1517 1880//1534
+f 1861//1521 1860//1515 1875//1532
+f 1856//1518 1855//1516 1871//1535
+f 1867//1536 1866//1520 1881//1537
+f 1862//1523 1861//1521 1876//1538
+f 1857//1522 1856//1518 1872//1539
+f 1871//1535 1870//1533 1886//1540
+f 1882//1541 1881//1537 1896//1542
+f 1877//1525 1876//1538 1891//1543
+f 1872//1539 1871//1535 1887//1544
+f 1878//1527 1877//1525 1892//1545
+f 1873//1526 1872//1539 1888//1546
+f 1879//1531 1878//1527 1893//1547
+f 1874//1528 1873//1526 1889//1548
+f 1869//1530 1868//1549 1884//1550
+f 1880//1534 1879//1531 1894//1551
+f 1875//1532 1874//1528 1890//1552
+f 1870//1533 1869//1530 1885//1553
+f 1881//1537 1880//1534 1895//1554
+f 1876//1538 1875//1532 1890//1552
+f 1890//1552 1889//1548 1906//1555
+f 1885//1553 1884//1550 1901//1556
+f 1896//1542 1895//1554 1911//1557
+f 1891//1543 1890//1552 1907//1558
+f 1886//1540 1885//1553 1902//1559
+f 1897//1560 1896//1542 1912//1561
+f 1892//1545 1891//1543 1907//1558
+f 1887//1544 1886//1540 1903//1562
+f 1893//1547 1892//1545 1908//1563
+f 1888//1546 1887//1544 1904//1564
+f 1894//1551 1893//1547 1909//1565
+f 1889//1548 1888//1546 1905//1566
+f 1884//1550 1883//1567 1900//1568
+f 1895//1554 1894//1551 1910//1569
+f 1910//1569 1909//1565 1924//1570
+f 1905//1566 1904//1564 1920//1571
+f 1900//1568 1899//1572 1915//1573
+f 1911//1557 1910//1569 1925//1574
+f 1906//1555 1905//1566 1921//1575
+f 1901//1556 1900//1568 1916//1576
+f 1912//1561 1911//1557 1926//1577
+f 1907//1558 1906//1555 1922//1578
+f 1902//1559 1901//1556 1917//1579
+f 1913//1580 1912//1561 1927//1581
+f 1908//1563 1907//1558 1923//1582
+f 1903//1562 1902//1559 1918//1583
+f 1909//1565 1908//1563 1924//1570
+f 1904//1564 1903//1562 1919//1584
+f 1777//1585 1461//1126 1476//1127
+f 1447//1111 1898//1586 1462//1112
+f 1777//1585 1476//1127 1491//1145
+f 1462//1112 1898//1586 1477//1138
+f 1477//1138 1898//1586 1492//1156
+f 1777//1585 1491//1145 1506//1163
+f 1777//1585 1506//1163 1521//1166
+f 1492//1156 1898//1586 1507//1174
+f 1777//1585 1521//1166 1536//1185
+f 1507//1174 1898//1586 1522//1193
+f 1777//1585 1536//1185 1551//1205
+f 1522//1193 1898//1586 1537//1198
+f 1537//1198 1898//1586 1552//1216
+f 1777//1585 1551//1205 1566//1223
+f 1777//1585 1566//1223 1581//1243
+f 1552//1216 1898//1586 1567//1251
+f 1777//1585 1581//1243 1596//1262
+f 1567//1251 1898//1586 1582//1255
+f 1777//1585 1596//1262 1611//1280
+f 1582//1255 1898//1586 1597//1273
+f 1597//1273 1898//1586 1612//1291
+f 1777//1585 1611//1280 1626//1298
+f 1777//1585 1626//1298 1641//1303
+f 1612//1291 1898//1586 1627//1311
+f 1777//1585 1641//1303 1656//1323
+f 1627//1311 1898//1586 1642//1315
+f 1777//1585 1656//1323 1671//1341
+f 1642//1315 1898//1586 1657//1333
+f 1657//1333 1898//1586 1672//1351
+f 1777//1585 1671//1341 1686//1359
+f 1777//1585 1686//1359 1701//1360
+f 1672//1351 1898//1586 1687//1352
+f 1777//1585 1701//1360 1716//1364
+f 1687//1352 1898//1586 1702//1372
+f 1777//1585 1716//1364 1731//1383
+f 1702//1372 1898//1586 1717//1390
+f 1717//1390 1898//1586 1732//1393
+f 1777//1585 1731//1383 1746//1401
+f 1777//1585 1746//1401 1761//1419
+f 1732//1393 1898//1586 1747//1411
+f 1777//1585 1761//1419 1776//1424
+f 1747//1411 1898//1586 1762//1431
+f 1777//1585 1776//1424 1792//1443
+f 1762//1431 1898//1586 1778//1450
+f 1778//1450 1898//1586 1793//1453
+f 1777//1585 1792//1443 1807//1461
+f 1777//1585 1807//1461 1822//1482
+f 1793//1453 1898//1586 1808//1490
+f 1777//1585 1822//1482 1837//1500
+f 1808//1490 1898//1586 1823//1508
+f 1777//1585 1837//1500 1852//1519
+f 1823//1508 1898//1586 1838//1512
+f 1777//1585 1852//1519 1867//1536
+f 1838//1512 1898//1586 1853//1529
+f 1777//1585 1867//1536 1882//1541
+f 1853//1529 1898//1586 1868//1549
+f 1777//1585 1882//1541 1897//1560
+f 1868//1549 1898//1586 1883//1567
+f 1777//1585 1897//1560 1913//1580
+f 1883//1567 1898//1586 1899//1572
+f 1777//1585 1913//1580 1928//1587
+f 1899//1572 1898//1586 1914//1588
+f 1777//1585 1928//1587 1461//1126
+f 1924//1570 1923//1582 1457//1132
+f 1919//1584 1918//1583 1451//1130
+f 1914//1588 1898//1586 1447//1111
+f 1925//1574 1924//1570 1458//1114
+f 1920//1571 1919//1584 1453//1107
+f 1915//1573 1914//1588 1447//1111
+f 1926//1577 1925//1574 1459//1113
+f 1921//1575 1920//1571 1454//1116
+f 1916//1576 1915//1573 1448//1110
+f 1927//1581 1926//1577 1460//1120
+f 1922//1578 1921//1575 1455//1122
+f 1917//1579 1916//1576 1449//1118
+f 1928//1587 1927//1581 1461//1126
+f 1923//1582 1922//1578 1456//1128
+f 1918//1583 1917//1579 1450//1124
+f 1935//1107 1934//1108 1949//1109
+f 1930//1110 1929//1589 1944//1112
+f 1941//1113 1940//1114 1956//1590
+f 1936//1116 1935//1107 1951//1117
+f 1931//1118 1930//1110 1945//1119
+f 1942//1120 1941//1113 1957//1121
+f 1937//1122 1936//1116 1952//1123
+f 1932//1124 1931//1118 1946//1125
+f 1943//1591 1942//1120 1958//1127
+f 1938//1128 1937//1122 1953//1129
+f 1933//1130 1932//1124 1947//1131
+f 1939//1592 1938//1128 1954//1133
+f 1934//1108 1933//1130 1948//1134
+f 1940//1114 1939//1592 1955//1135
+f 1950//1136 1949//1109 1964//1137
+f 1945//1119 1944//1112 1959//1138
+f 1956//1590 1955//1135 1971//1139
+f 1951//1117 1950//1136 1966//1140
+f 1946//1125 1945//1119 1960//1141
+f 1957//1121 1956//1590 1972//1142
+f 1952//1123 1951//1117 1967//1143
+f 1947//1131 1946//1125 1961//1144
+f 1958//1127 1957//1121 1973//1145
+f 1953//1129 1952//1123 1968//1593
+f 1948//1134 1947//1131 1962//1147
+f 1954//1133 1953//1129 1969//1148
+f 1949//1109 1948//1134 1963//1149
+f 1955//1135 1954//1133 1970//1594
+f 1969//1148 1968//1593 1984//1151
+f 1964//1137 1963//1149 1978//1152
+f 1970//1594 1969//1148 1985//1595
+f 1965//1154 1964//1137 1979//1155
+f 1960//1141 1959//1138 1974//1596
+f 1971//1139 1970//1594 1986//1157
+f 1966//1140 1965//1154 1981//1158
+f 1961//1144 1960//1141 1975//1159
+f 1972//1142 1971//1139 1987//1160
+f 1967//1143 1966//1140 1982//1597
+f 1962//1147 1961//1144 1976//1162
+f 1973//1145 1972//1142 1988//1598
+f 1968//1593 1967//1143 1983//1164
+f 1963//1149 1962//1147 1977//1165
+f 1988//1598 1987//1160 2003//1166
+f 1983//1164 1982//1597 1998//1599
+f 1978//1152 1977//1165 1992//1168
+f 1984//1151 1983//1164 1999//1600
+f 1979//1155 1978//1152 1993//1601
+f 1985//1595 1984//1151 2000//1171
+f 1980//1172 1979//1155 1994//1173
+f 1975//1159 1974//1596 1989//1174
+f 1986//1157 1985//1595 2001//1175
+f 1981//1158 1980//1172 1996//1176
+f 1976//1162 1975//1159 1990//1177
+f 1987//1160 1986//1157 2002//1178
+f 1982//1597 1981//1158 1997//1179
+f 1977//1165 1976//1162 1991//1602
+f 1991//1602 1990//1177 2005//1181
+f 2002//1178 2001//1175 2017//1182
+f 1997//1179 1996//1176 2012//1183
+f 1992//1168 1991//1602 2006//1603
+f 2003//1166 2002//1178 2018//1185
+f 1998//1599 1997//1179 2013//1186
+f 1993//1601 1992//1168 2007//1604
+f 1999//1600 1998//1599 2014//1188
+f 1994//1173 1993//1601 2008//1189
+f 2000//1171 1999//1600 2015//1190
+f 1995//1191 1994//1173 2009//1192
+f 1990//1177 1989//1174 2004//1605
+f 2001//1175 2000//1171 2016//1194
+f 1996//1176 1995//1191 2011//1606
+f 2010//1196 2009//1192 2024//1197
+f 2005//1181 2004//1605 2019//1198
+f 2016//1194 2015//1190 2031//1199
+f 2011//1606 2010//1196 2026//1607
+f 2006//1603 2005//1181 2020//1201
+f 2017//1182 2016//1194 2032//1202
+f 2012//1183 2011//1606 2027//1203
+f 2007//1604 2006//1603 2021//1204
+f 2018//1185 2017//1182 2033//1608
+f 2013//1186 2012//1183 2028//1206
+f 2008//1189 2007//1604 2022//1609
+f 2014//1188 2013//1186 2029//1208
+f 2009//1192 2008//1189 2023//1209
+f 2015//1190 2014//1188 2030//1210
+f 2029//1208 2028//1206 2044//1211
+f 2024//1197 2023//1209 2039//1212
+f 2030//1210 2029//1208 2045//1213
+f 2025//1610 2024//1197 2040//1215
+f 2020//1201 2019//1198 2034//1216
+f 2031//1199 2030//1210 2046//1217
+f 2026//1607 2025//1610 2041//1611
+f 2021//1204 2020//1201 2035//1219
+f 2032//1202 2031//1199 2047//1220
+f 2027//1203 2026//1607 2042//1221
+f 2022//1609 2021//1204 2036//1222
+f 2033//1608 2032//1202 2048//1612
+f 2028//1206 2027//1203 2043//1224
+f 2023//1209 2022//1609 2037//1225
+f 2048//1612 2047//1220 2062//1226
+f 2043//1224 2042//1221 2057//1613
+f 2038//1228 2037//1225 2053//1229
+f 2044//1211 2043//1224 2058//1230
+f 2039//1212 2038//1228 2054//1614
+f 2045//1213 2044//1211 2059//1232
+f 2040//1215 2039//1212 2055//1615
+f 2035//1219 2034//1216 2050//1616
+f 2046//1217 2045//1213 2060//1235
+f 2041//1611 2040//1215 2056//1236
+f 2036//1222 2035//1219 2051//1237
+f 2047//1220 2046//1217 2061//1238
+f 2042//1221 2041//1611 2057//1613
+f 2037//1225 2036//1222 2052//1239
+f 2062//1226 2061//1238 2076//1617
+f 2057//1613 2056//1236 2071//1241
+f 2052//1239 2051//1237 2067//1618
+f 2063//1243 2062//1226 2077//1244
+f 2058//1230 2057//1613 2072//1245
+f 2053//1229 2052//1239 2068//1619
+f 2059//1232 2058//1230 2073//1247
+f 2054//1614 2053//1229 2069//1248
+f 2060//1235 2059//1232 2074//1249
+f 2055//1615 2054//1614 2070//1250
+f 2050//1616 2049//1251 2065//1252
+f 2061//1238 2060//1235 2075//1253
+f 2056//1236 2055//1615 2071//1241
+f 2051//1237 2050//1616 2066//1620
+f 2065//1252 2064//1621 2080//1622
+f 2076//1617 2075//1253 2090//1257
+f 2071//1241 2070//1250 2086//1258
+f 2066//1620 2065//1252 2081//1623
+f 2077//1244 2076//1617 2091//1260
+f 2072//1245 2071//1241 2086//1258
+f 2067//1618 2066//1620 2082//1261
+f 2078//1262 2077//1244 2092//1263
+f 2073//1247 2072//1245 2087//1624
+f 2068//1619 2067//1618 2083//1265
+f 2074//1249 2073//1247 2088//1625
+f 2069//1248 2068//1619 2084//1626
+f 2075//1253 2074//1249 2089//1268
+f 2070//1250 2069//1248 2085//1269
+f 2084//1626 2083//1265 2099//1270
+f 2090//1257 2089//1268 2104//1271
+f 2085//1269 2084//1626 2100//1627
+f 2080//1622 2079//1628 2095//1274
+f 2091//1260 2090//1257 2105//1275
+f 2086//1258 2085//1269 2101//1276
+f 2081//1623 2080//1622 2096//1277
+f 2092//1263 2091//1260 2106//1278
+f 2087//1624 2086//1258 2101//1276
+f 2082//1261 2081//1623 2097//1629
+f 2093//1280 2092//1263 2107//1281
+f 2088//1625 2087//1624 2102//1282
+f 2083//1265 2082//1261 2098//1283
+f 2089//1268 2088//1625 2103//1630
+f 2103//1630 2102//1282 2117//1285
+f 2098//1283 2097//1629 2113//1286
+f 2104//1271 2103//1630 2118//1287
+f 2099//1270 2098//1283 2114//1288
+f 2105//1275 2104//1271 2119//1631
+f 2100//1627 2099//1270 2115//1290
+f 2095//1274 2094//1291 2110//1292
+f 2106//1278 2105//1275 2120//1632
+f 2101//1276 2100//1627 2116//1294
+f 2096//1277 2095//1274 2111//1633
+f 2107//1281 2106//1278 2121//1296
+f 2102//1282 2101//1276 2116//1294
+f 2097//1629 2096//1277 2112//1634
+f 2108//1298 2107//1281 2122//1299
+f 2122//1299 2121//1296 2136//1300
+f 2117//1285 2116//1294 2131//1301
+f 2112//1634 2111//1633 2127//1302
+f 2123//1635 2122//1299 2137//1304
+f 2118//1287 2117//1285 2132//1305
+f 2113//1286 2112//1634 2128//1306
+f 2119//1631 2118//1287 2133//1307
+f 2114//1288 2113//1286 2129//1308
+f 2120//1632 2119//1631 2134//1309
+f 2115//1290 2114//1288 2130//1310
+f 2110//1292 2109//1636 2125//1637
+f 2121//1296 2120//1632 2135//1638
+f 2116//1294 2115//1290 2131//1301
+f 2111//1633 2110//1292 2126//1639
+f 2125//1637 2124//1315 2140//1316
+f 2136//1300 2135//1638 2150//1317
+f 2131//1301 2130//1310 2145//1640
+f 2126//1639 2125//1637 2141//1319
+f 2137//1304 2136//1300 2151//1320
+f 2132//1305 2131//1301 2146//1321
+f 2127//1302 2126//1639 2142//1322
+f 2138//1323 2137//1304 2152//1641
+f 2133//1307 2132//1305 2147//1642
+f 2128//1306 2127//1302 2143//1326
+f 2134//1309 2133//1307 2148//1643
+f 2129//1308 2128//1306 2144//1328
+f 2135//1638 2134//1309 2149//1329
+f 2130//1310 2129//1308 2145//1640
+f 2144//1328 2143//1326 2158//1330
+f 2150//1317 2149//1329 2164//1331
+f 2145//1640 2144//1328 2159//1332
+f 2140//1316 2139//1333 2155//1334
+f 2151//1320 2150//1317 2165//1644
+f 2146//1321 2145//1640 2160//1645
+f 2141//1319 2140//1316 2156//1337
+f 2152//1641 2151//1320 2166//1338
+f 2147//1642 2146//1321 2161//1339
+f 2142//1322 2141//1319 2157//1340
+f 2153//1646 2152//1641 2167//1342
+f 2148//1643 2147//1642 2162//1647
+f 2143//1326 2142//1322 2158//1330
+f 2149//1329 2148//1643 2163//1344
+f 2163//1344 2162//1647 2177//1345
+f 2158//1330 2157//1340 2172//1346
+f 2164//1331 2163//1344 2179//1648
+f 2159//1332 2158//1330 2173//1348
+f 2165//1644 2164//1331 2180//1349
+f 2160//1645 2159//1332 2174//1350
+f 2155//1334 2154//1649 2169//1352
+f 2166//1338 2165//1644 2181//1650
+f 2161//1339 2160//1645 2175//1354
+f 2156//1337 2155//1334 2170//1651
+f 2167//1342 2166//1338 2182//1356
+f 2162//1647 2161//1339 2176//1357
+f 2157//1340 2156//1337 2171//1358
+f 2168//1359 2167//1342 2183//1360
+f 2182//1356 2181//1650 2197//1652
+f 2177//1345 2176//1357 2191//1653
+f 2172//1346 2171//1358 2186//1654
+f 2183//1360 2182//1356 2198//1364
+f 2178//1365 2177//1345 2193//1366
+f 2173//1348 2172//1346 2187//1367
+f 2179//1648 2178//1365 2194//1368
+f 2174//1350 2173//1348 2188//1655
+f 2180//1349 2179//1648 2195//1370
+f 2175//1354 2174//1350 2189//1371
+f 2170//1651 2169//1352 2184//1656
+f 2181//1650 2180//1349 2196//1373
+f 2176//1357 2175//1354 2190//1374
+f 2171//1358 2170//1651 2185//1375
+f 2196//1373 2195//1370 2211//1376
+f 2191//1653 2190//1374 2205//1377
+f 2186//1654 2185//1375 2200//1378
+f 2197//1652 2196//1373 2212//1379
+f 2192//1380 2191//1653 2206//1381
+f 2187//1367 2186//1654 2201//1382
+f 2198//1364 2197//1652 2213//1383
+f 2193//1366 2192//1380 2208//1384
+f 2188//1655 2187//1367 2202//1385
+f 2194//1368 2193//1366 2209//1386
+f 2189//1371 2188//1655 2203//1387
+f 2195//1370 2194//1368 2210//1388
+f 2190//1374 2189//1371 2204//1389
+f 2185//1375 2184//1656 2199//1390
+f 2210//1388 2209//1386 2225//1391
+f 2205//1377 2204//1389 2219//1392
+f 2200//1378 2199//1390 2214//1393
+f 2211//1376 2210//1388 2226//1657
+f 2206//1381 2205//1377 2220//1658
+f 2201//1382 2200//1378 2215//1396
+f 2212//1379 2211//1376 2227//1397
+f 2207//1398 2206//1381 2221//1659
+f 2202//1385 2201//1382 2216//1400
+f 2213//1383 2212//1379 2228//1401
+f 2208//1384 2207//1398 2223//1660
+f 2203//1387 2202//1385 2217//1661
+f 2209//1386 2208//1384 2224//1404
+f 2204//1389 2203//1387 2218//1405
+f 2218//1405 2217//1661 2232//1662
+f 2224//1404 2223//1660 2239//1663
+f 2219//1392 2218//1405 2233//1664
+f 2225//1391 2224//1404 2240//1409
+f 2220//1658 2219//1392 2234//1665
+f 2215//1396 2214//1393 2229//1411
+f 2226//1657 2225//1391 2241//1666
+f 2221//1659 2220//1658 2235//1413
+f 2216//1400 2215//1396 2230//1414
+f 2227//1397 2226//1657 2242//1667
+f 2222//1668 2221//1659 2236//1417
+f 2217//1661 2216//1400 2231//1669
+f 2228//1401 2227//1397 2243//1419
+f 2223//1660 2222//1668 2238//1420
+f 2237//1421 2236//1417 2251//1670
+f 2232//1662 2231//1669 2246//1423
+f 2243//1419 2242//1667 2258//1424
+f 2238//1420 2237//1421 2253//1425
+f 2233//1664 2232//1662 2247//1671
+f 2239//1663 2238//1420 2254//1427
+f 2234//1665 2233//1664 2248//1428
+f 2240//1409 2239//1663 2255//1429
+f 2235//1413 2234//1665 2249//1430
+f 2230//1414 2229//1411 2244//1431
+f 2241//1666 2240//1409 2256//1672
+f 2236//1417 2235//1413 2250//1433
+f 2231//1669 2230//1414 2245//1434
+f 2242//1667 2241//1666 2257//1435
+f 2256//1672 2255//1429 2272//1436
+f 2251//1670 2250//1433 2266//1437
+f 2246//1423 2245//1434 2261//1438
+f 2257//1435 2256//1672 2273//1673
+f 2252//1440 2251//1670 2267//1674
+f 2247//1671 2246//1423 2262//1442
+f 2258//1424 2257//1435 2274//1443
+f 2253//1425 2252//1440 2269//1444
+f 2248//1428 2247//1671 2263//1445
+f 2254//1427 2253//1425 2270//1446
+f 2249//1430 2248//1428 2264//1447
+f 2255//1429 2254//1427 2271//1675
+f 2250//1433 2249//1430 2265//1449
+f 2245//1434 2244//1431 2260//1450
+f 2271//1675 2270//1446 2286//1451
+f 2266//1437 2265//1449 2280//1452
+f 2261//1438 2260//1450 2275//1676
+f 2272//1436 2271//1675 2287//1677
+f 2267//1674 2266//1437 2281//1455
+f 2262//1442 2261//1438 2276//1456
+f 2273//1673 2272//1436 2288//1457
+f 2268//1678 2267//1674 2282//1679
+f 2263//1445 2262//1442 2277//1680
+f 2274//1443 2273//1673 2289//1681
+f 2269//1444 2268//1678 2283//1682
+f 2264//1447 2263//1445 2278//1463
+f 2270//1446 2269//1444 2284//1464
+f 2265//1449 2264//1447 2279//1683
+f 2279//1683 2278//1463 2294//1466
+f 2285//1684 2284//1464 2299//1685
+f 2280//1452 2279//1683 2295//1469
+f 2286//1451 2285//1684 2300//1470
+f 2281//1455 2280//1452 2296//1471
+f 2276//1456 2275//1676 2291//1472
+f 2287//1677 2286//1451 2301//1473
+f 2282//1679 2281//1455 2296//1471
+f 2277//1680 2276//1456 2292//1686
+f 2288//1457 2287//1677 2302//1475
+f 2283//1682 2282//1679 2297//1476
+f 2278//1463 2277//1680 2293//1477
+f 2289//1681 2288//1457 2303//1687
+f 2284//1464 2283//1682 2298//1688
+f 2298//1688 2297//1476 2312//1480
+f 2293//1477 2292//1686 2308//1481
+f 2304//1482 2303//1687 2318//1483
+f 2299//1685 2298//1688 2313//1484
+f 2294//1466 2293//1477 2309//1485
+f 2300//1470 2299//1685 2314//1486
+f 2295//1469 2294//1466 2310//1487
+f 2301//1473 2300//1470 2315//1689
+f 2296//1471 2295//1469 2311//1489
+f 2291//1472 2290//1490 2306//1491
+f 2302//1475 2301//1473 2316//1690
+f 2297//1476 2296//1471 2312//1480
+f 2292//1686 2291//1472 2307//1493
+f 2303//1687 2302//1475 2317//1691
+f 2317//1691 2316//1690 2331//1495
+f 2312//1480 2311//1489 2327//1496
+f 2307//1493 2306//1491 2322//1497
+f 2318//1483 2317//1691 2332//1498
+f 2313//1484 2312//1480 2327//1496
+f 2308//1481 2307//1493 2323//1499
+f 2319//1692 2318//1483 2333//1693
+f 2314//1486 2313//1484 2328//1502
+f 2309//1485 2308//1481 2324//1503
+f 2315//1689 2314//1486 2329//1504
+f 2310//1487 2309//1485 2325//1505
+f 2316//1690 2315//1689 2330//1506
+f 2311//1489 2310//1487 2326//1507
+f 2306//1491 2305//1508 2321//1694
+f 2331//1495 2330//1506 2345//1510
+f 2326//1507 2325//1505 2341//1511
+f 2321//1694 2320//1695 2336//1513
+f 2332//1498 2331//1495 2346//1514
+f 2327//1496 2326//1507 2342//1515
+f 2322//1497 2321//1694 2337//1696
+f 2333//1693 2332//1498 2347//1517
+f 2328//1502 2327//1496 2342//1515
+f 2323//1499 2322//1497 2338//1518
+f 2334//1697 2333//1693 2348//1520
+f 2329//1504 2328//1502 2343//1521
+f 2324//1503 2323//1499 2339//1522
+f 2330//1506 2329//1504 2344//1523
+f 2325//1505 2324//1503 2340//1524
+f 2345//1510 2344//1523 2359//1525
+f 2340//1524 2339//1522 2355//1526
+f 2346//1514 2345//1510 2360//1527
+f 2341//1511 2340//1524 2356//1528
+f 2336//1513 2335//1529 2351//1698
+f 2347//1517 2346//1514 2361//1531
+f 2342//1515 2341//1511 2357//1532
+f 2337//1696 2336//1513 2352//1533
+f 2348//1520 2347//1517 2362//1534
+f 2343//1521 2342//1515 2357//1532
+f 2338//1518 2337//1696 2353//1699
+f 2349//1536 2348//1520 2363//1700
+f 2344//1523 2343//1521 2358//1701
+f 2339//1522 2338//1518 2354//1702
+f 2353//1699 2352//1533 2368//1540
+f 2364//1541 2363//1700 2378//1703
+f 2359//1525 2358//1701 2373//1543
+f 2354//1702 2353//1699 2369//1544
+f 2360//1527 2359//1525 2374//1545
+f 2355//1526 2354//1702 2370//1546
+f 2361//1531 2360//1527 2375//1547
+f 2356//1528 2355//1526 2371//1548
+f 2351//1698 2350//1549 2366//1550
+f 2362//1534 2361//1531 2376//1551
+f 2357//1532 2356//1528 2372//1552
+f 2352//1533 2351//1698 2367//1704
+f 2363//1700 2362//1534 2377//1705
+f 2358//1701 2357//1532 2372//1552
+f 2372//1552 2371//1548 2388//1706
+f 2367//1704 2366//1550 2383//1556
+f 2378//1703 2377//1705 2393//1557
+f 2373//1543 2372//1552 2389//1558
+f 2368//1540 2367//1704 2384//1559
+f 2379//1560 2378//1703 2394//1561
+f 2374//1545 2373//1543 2389//1558
+f 2369//1544 2368//1540 2385//1562
+f 2375//1547 2374//1545 2390//1563
+f 2370//1546 2369//1544 2386//1564
+f 2376//1551 2375//1547 2391//1565
+f 2371//1548 2370//1546 2387//1566
+f 2366//1550 2365//1567 2382//1707
+f 2377//1705 2376//1551 2392//1708
+f 2392//1708 2391//1565 2406//1570
+f 2387//1566 2386//1564 2402//1571
+f 2382//1707 2381//1572 2397//1573
+f 2393//1557 2392//1708 2407//1574
+f 2388//1706 2387//1566 2403//1709
+f 2383//1556 2382//1707 2398//1576
+f 2394//1561 2393//1557 2408//1577
+f 2389//1558 2388//1706 2404//1578
+f 2384//1559 2383//1556 2399//1579
+f 2395//1710 2394//1561 2409//1581
+f 2390//1563 2389//1558 2405//1582
+f 2385//1562 2384//1559 2400//1583
+f 2391//1565 2390//1563 2406//1570
+f 2386//1564 2385//1562 2401//1584
+f 2259//1585 1943//1591 1958//1127
+f 1929//1589 2380//1586 1944//1112
+f 2259//1585 1958//1127 1973//1145
+f 1944//1112 2380//1586 1959//1138
+f 1959//1138 2380//1586 1974//1596
+f 2259//1585 1973//1145 1988//1598
+f 2259//1585 1988//1598 2003//1166
+f 1974//1596 2380//1586 1989//1174
+f 2259//1585 2003//1166 2018//1185
+f 1989//1174 2380//1586 2004//1605
+f 2259//1585 2018//1185 2033//1608
+f 2004//1605 2380//1586 2019//1198
+f 2019//1198 2380//1586 2034//1216
+f 2259//1585 2033//1608 2048//1612
+f 2259//1585 2048//1612 2063//1243
+f 2034//1216 2380//1586 2049//1251
+f 2259//1585 2063//1243 2078//1262
+f 2049//1251 2380//1586 2064//1621
+f 2259//1585 2078//1262 2093//1280
+f 2064//1621 2380//1586 2079//1628
+f 2079//1628 2380//1586 2094//1291
+f 2259//1585 2093//1280 2108//1298
+f 2259//1585 2108//1298 2123//1635
+f 2094//1291 2380//1586 2109//1636
+f 2259//1585 2123//1635 2138//1323
+f 2109//1636 2380//1586 2124//1315
+f 2259//1585 2138//1323 2153//1646
+f 2124//1315 2380//1586 2139//1333
+f 2139//1333 2380//1586 2154//1649
+f 2259//1585 2153//1646 2168//1359
+f 2259//1585 2168//1359 2183//1360
+f 2154//1649 2380//1586 2169//1352
+f 2259//1585 2183//1360 2198//1364
+f 2169//1352 2380//1586 2184//1656
+f 2259//1585 2198//1364 2213//1383
+f 2184//1656 2380//1586 2199//1390
+f 2199//1390 2380//1586 2214//1393
+f 2259//1585 2213//1383 2228//1401
+f 2259//1585 2228//1401 2243//1419
+f 2214//1393 2380//1586 2229//1411
+f 2259//1585 2243//1419 2258//1424
+f 2229//1411 2380//1586 2244//1431
+f 2259//1585 2258//1424 2274//1443
+f 2244//1431 2380//1586 2260//1450
+f 2260//1450 2380//1586 2275//1676
+f 2259//1585 2274//1443 2289//1681
+f 2259//1585 2289//1681 2304//1482
+f 2275//1676 2380//1586 2290//1490
+f 2259//1585 2304//1482 2319//1692
+f 2290//1490 2380//1586 2305//1508
+f 2259//1585 2319//1692 2334//1697
+f 2305//1508 2380//1586 2320//1695
+f 2259//1585 2334//1697 2349//1536
+f 2320//1695 2380//1586 2335//1529
+f 2259//1585 2349//1536 2364//1541
+f 2335//1529 2380//1586 2350//1549
+f 2259//1585 2364//1541 2379//1560
+f 2350//1549 2380//1586 2365//1567
+f 2259//1585 2379//1560 2395//1710
+f 2365//1567 2380//1586 2381//1572
+f 2259//1585 2395//1710 2410//1587
+f 2381//1572 2380//1586 2396//1588
+f 2259//1585 2410//1587 1943//1591
+f 2406//1570 2405//1582 1939//1592
+f 2401//1584 2400//1583 1933//1130
+f 2396//1588 2380//1586 1929//1589
+f 2407//1574 2406//1570 1940//1114
+f 2402//1571 2401//1584 1935//1107
+f 2397//1573 2396//1588 1929//1589
+f 2408//1577 2407//1574 1941//1113
+f 2403//1709 2402//1571 1936//1116
+f 2398//1576 2397//1573 1930//1110
+f 2409//1581 2408//1577 1942//1120
+f 2404//1578 2403//1709 1937//1122
+f 2399//1579 2398//1576 1931//1118
+f 2410//1587 2409//1581 1943//1591
+f 2405//1582 2404//1578 1938//1128
+f 2400//1583 2399//1579 1932//1124
+f 1468//1136 1453//1107 1467//1109
+f 1463//1119 1448//1110 1462//1112
+f 1458//1114 1473//1135 1474//1115
+f 1453//1107 1468//1136 1469//1117
+f 1464//1125 1449//1118 1463//1119
+f 1459//1113 1474//1115 1475//1121
+f 1454//1116 1469//1117 1470//1123
+f 1465//1131 1450//1124 1464//1125
+f 1460//1120 1475//1121 1476//1127
+f 1455//1122 1470//1123 1471//1129
+f 1466//1134 1451//1130 1465//1131
+f 1456//1128 1471//1129 1472//1133
+f 1467//1109 1452//1108 1466//1134
+f 1457//1132 1472//1133 1473//1135
+f 1483//1154 1468//1136 1482//1137
+f 1478//1141 1463//1119 1477//1138
+f 1473//1135 1488//1150 1489//1139
+f 1468//1136 1483//1154 1484//1140
+f 1479//1144 1464//1125 1478//1141
+f 1474//1115 1489//1139 1490//1142
+f 1469//1117 1484//1140 1485//1143
+f 1480//1147 1465//1131 1479//1144
+f 1475//1121 1490//1142 1491//1145
+f 1470//1123 1485//1143 1486//1146
+f 1481//1149 1466//1134 1480//1147
+f 1471//1129 1486//1146 1487//1148
+f 1482//1137 1467//1109 1481//1149
+f 1472//1133 1487//1148 1488//1150
+f 1486//1146 1501//1164 1502//1151
+f 1497//1155 1482//1137 1496//1152
+f 1487//1148 1502//1151 1503//1153
+f 1498//1172 1483//1154 1497//1155
+f 1493//1159 1478//1141 1492//1156
+f 1488//1150 1503//1153 1504//1157
+f 1483//1154 1498//1172 1499//1158
+f 1494//1162 1479//1144 1493//1159
+f 1489//1139 1504//1157 1505//1160
+f 1484//1140 1499//1158 1500//1161
+f 1495//1165 1480//1147 1494//1162
+f 1490//1142 1505//1160 1506//1163
+f 1485//1143 1500//1161 1501//1164
+f 1496//1152 1481//1149 1495//1165
+f 1505//1160 1520//1178 1521//1166
+f 1500//1161 1515//1179 1516//1167
+f 1511//1170 1496//1152 1510//1168
+f 1501//1164 1516//1167 1517//1169
+f 1512//1173 1497//1155 1511//1170
+f 1502//1151 1517//1169 1518//1171
+f 1513//1191 1498//1172 1512//1173
+f 1508//1177 1493//1159 1507//1174
+f 1503//1153 1518//1171 1519//1175
+f 1498//1172 1513//1191 1514//1176
+f 1509//1180 1494//1162 1508//1177
+f 1504//1157 1519//1175 1520//1178
+f 1499//1158 1514//1176 1515//1179
+f 1510//1168 1495//1165 1509//1180
+f 1524//1184 1509//1180 1523//1181
+f 1519//1175 1534//1194 1535//1182
+f 1514//1176 1529//1195 1530//1183
+f 1525//1187 1510//1168 1524//1184
+f 1520//1178 1535//1182 1536//1185
+f 1515//1179 1530//1183 1531//1186
+f 1526//1189 1511//1170 1525//1187
+f 1516//1167 1531//1186 1532//1188
+f 1527//1192 1512//1173 1526//1189
+f 1517//1169 1532//1188 1533//1190
+f 1528//1196 1513//1191 1527//1192
+f 1523//1181 1508//1177 1522//1193
+f 1518//1171 1533//1190 1534//1194
+f 1513//1191 1528//1196 1529//1195
+f 1543//1214 1528//1196 1542//1197
+f 1538//1201 1523//1181 1537//1198
+f 1533//1190 1548//1210 1549//1199
+f 1528//1196 1543//1214 1544//1200
+f 1539//1204 1524//1184 1538//1201
+f 1534//1194 1549//1199 1550//1202
+f 1529//1195 1544//1200 1545//1203
+f 1540//1207 1525//1187 1539//1204
+f 1535//1182 1550//1202 1551//1205
+f 1530//1183 1545//1203 1546//1206
+f 1541//1209 1526//1189 1540//1207
+f 1531//1186 1546//1206 1547//1208
+f 1542//1197 1527//1192 1541//1209
+f 1532//1188 1547//1208 1548//1210
+f 1546//1206 1561//1224 1562//1211
+f 1541//1209 1556//1228 1557//1212
+f 1547//1208 1562//1211 1563//1213
+f 1542//1197 1557//1212 1558//1215
+f 1553//1219 1538//1201 1552//1216
+f 1548//1210 1563//1213 1564//1217
+f 1543//1214 1558//1215 1559//1218
+f 1554//1222 1539//1204 1553//1219
+f 1549//1199 1564//1217 1565//1220
+f 1544//1200 1559//1218 1560//1221
+f 1555//1225 1540//1207 1554//1222
+f 1550//1202 1565//1220 1566//1223
+f 1545//1203 1560//1221 1561//1224
+f 1556//1228 1541//1209 1555//1225
+f 1581//1243 1566//1223 1580//1226
+f 1576//1230 1561//1224 1575//1227
+f 1555//1225 1570//1239 1571//1229
+f 1577//1232 1562//1211 1576//1230
+f 1556//1228 1571//1229 1572//1231
+f 1578//1235 1563//1213 1577//1232
+f 1557//1212 1572//1231 1573//1233
+f 1552//1216 1567//1251 1568//1234
+f 1579//1238 1564//1217 1578//1235
+f 1558//1215 1573//1233 1574//1236
+f 1553//1219 1568//1234 1569//1237
+f 1580//1226 1565//1220 1579//1238
+f 1559//1218 1574//1236 1575//1227
+f 1554//1222 1569//1237 1570//1239
+f 1595//1244 1580//1226 1594//1240
+f 1590//1245 1575//1227 1589//1241
+f 1569//1237 1584//1254 1585//1242
+f 1596//1262 1581//1243 1595//1244
+f 1591//1247 1576//1230 1590//1245
+f 1570//1239 1585//1242 1586//1246
+f 1592//1249 1577//1232 1591//1247
+f 1571//1229 1586//1246 1587//1248
+f 1593//1253 1578//1235 1592//1249
+f 1572//1231 1587//1248 1588//1250
+f 1567//1251 1582//1255 1583//1252
+f 1594//1240 1579//1238 1593//1253
+f 1573//1233 1588//1250 1589//1241
+f 1568//1234 1583//1252 1584//1254
+f 1582//1255 1597//1273 1598//1256
+f 1609//1260 1594//1240 1608//1257
+f 1588//1250 1603//1269 1604//1258
+f 1583//1252 1598//1256 1599//1259
+f 1610//1263 1595//1244 1609//1260
+f 1605//1264 1590//1245 1604//1258
+f 1584//1254 1599//1259 1600//1261
+f 1611//1280 1596//1262 1610//1263
+f 1606//1266 1591//1247 1605//1264
+f 1585//1242 1600//1261 1601//1265
+f 1607//1268 1592//1249 1606//1266
+f 1586//1246 1601//1265 1602//1267
+f 1608//1257 1593//1253 1607//1268
+f 1587//1248 1602//1267 1603//1269
+f 1601//1265 1616//1283 1617//1270
+f 1623//1275 1608//1257 1622//1271
+f 1602//1267 1617//1270 1618//1272
+f 1597//1273 1612//1291 1613//1274
+f 1624//1278 1609//1260 1623//1275
+f 1603//1269 1618//1272 1619//1276
+f 1598//1256 1613//1274 1614//1277
+f 1625//1281 1610//1263 1624//1278
+f 1620//1282 1605//1264 1619//1276
+f 1599//1259 1614//1277 1615//1279
+f 1626//1298 1611//1280 1625//1281
+f 1621//1284 1606//1266 1620//1282
+f 1600//1261 1615//1279 1616//1283
+f 1622//1271 1607//1268 1621//1284
+f 1636//1287 1621//1284 1635//1285
+f 1615//1279 1630//1297 1631//1286
+f 1637//1289 1622//1271 1636//1287
+f 1616//1283 1631//1286 1632//1288
+f 1638//1293 1623//1275 1637//1289
+f 1617//1270 1632//1288 1633//1290
+f 1612//1291 1627//1311 1628//1292
+f 1639//1296 1624//1278 1638//1293
+f 1618//1272 1633//1290 1634//1294
+f 1613//1274 1628//1292 1629//1295
+f 1640//1299 1625//1281 1639//1296
+f 1635//1285 1620//1282 1634//1294
+f 1614//1277 1629//1295 1630//1297
+f 1641//1303 1626//1298 1640//1299
+f 1655//1304 1640//1299 1654//1300
+f 1650//1305 1635//1285 1649//1301
+f 1629//1295 1644//1314 1645//1302
+f 1656//1323 1641//1303 1655//1304
+f 1651//1307 1636//1287 1650//1305
+f 1630//1297 1645//1302 1646//1306
+f 1652//1309 1637//1289 1651//1307
+f 1631//1286 1646//1306 1647//1308
+f 1653//1313 1638//1293 1652//1309
+f 1632//1288 1647//1308 1648//1310
+f 1627//1311 1642//1315 1643//1312
+f 1654//1300 1639//1296 1653//1313
+f 1633//1290 1648//1310 1649//1301
+f 1628//1292 1643//1312 1644//1314
+f 1642//1315 1657//1333 1658//1316
+f 1669//1320 1654//1300 1668//1317
+f 1664//1321 1649//1301 1663//1318
+f 1643//1312 1658//1316 1659//1319
+f 1670//1324 1655//1304 1669//1320
+f 1665//1325 1650//1305 1664//1321
+f 1644//1314 1659//1319 1660//1322
+f 1671//1341 1656//1323 1670//1324
+f 1666//1327 1651//1307 1665//1325
+f 1645//1302 1660//1322 1661//1326
+f 1667//1329 1652//1309 1666//1327
+f 1646//1306 1661//1326 1662//1328
+f 1668//1317 1653//1313 1667//1329
+f 1647//1308 1662//1328 1663//1318
+f 1677//1332 1662//1328 1676//1330
+f 1683//1335 1668//1317 1682//1331
+f 1678//1336 1663//1318 1677//1332
+f 1657//1333 1672//1351 1673//1334
+f 1684//1338 1669//1320 1683//1335
+f 1679//1339 1664//1321 1678//1336
+f 1658//1316 1673//1334 1674//1337
+f 1685//1342 1670//1324 1684//1338
+f 1680//1343 1665//1325 1679//1339
+f 1659//1319 1674//1337 1675//1340
+f 1686//1359 1671//1341 1685//1342
+f 1681//1344 1666//1327 1680//1343
+f 1660//1322 1675//1340 1676//1330
+f 1682//1331 1667//1329 1681//1344
+f 1696//1365 1681//1344 1695//1345
+f 1691//1348 1676//1330 1690//1346
+f 1681//1344 1696//1365 1697//1347
+f 1692//1350 1677//1332 1691//1348
+f 1682//1331 1697//1347 1698//1349
+f 1693//1354 1678//1336 1692//1350
+f 1688//1355 1673//1334 1687//1352
+f 1683//1335 1698//1349 1699//1353
+f 1694//1357 1679//1339 1693//1354
+f 1689//1358 1674//1337 1688//1355
+f 1684//1338 1699//1353 1700//1356
+f 1695//1345 1680//1343 1694//1357
+f 1690//1346 1675//1340 1689//1358
+f 1685//1342 1700//1356 1701//1360
+f 1699//1353 1714//1373 1715//1361
+f 1710//1380 1695//1345 1709//1362
+f 1705//1367 1690//1346 1704//1363
+f 1700//1356 1715//1361 1716//1364
+f 1695//1345 1710//1380 1711//1366
+f 1706//1369 1691//1348 1705//1367
+f 1696//1365 1711//1366 1712//1368
+f 1707//1371 1692//1350 1706//1369
+f 1697//1347 1712//1368 1713//1370
+f 1708//1374 1693//1354 1707//1371
+f 1703//1375 1688//1355 1702//1372
+f 1698//1349 1713//1370 1714//1373
+f 1709//1362 1694//1357 1708//1374
+f 1704//1363 1689//1358 1703//1375
+f 1713//1370 1728//1388 1729//1376
+f 1724//1381 1709//1362 1723//1377
+f 1719//1382 1704//1363 1718//1378
+f 1714//1373 1729//1376 1730//1379
+f 1725//1398 1710//1380 1724//1381
+f 1720//1385 1705//1367 1719//1382
+f 1715//1361 1730//1379 1731//1383
+f 1710//1380 1725//1398 1726//1384
+f 1721//1387 1706//1369 1720//1385
+f 1711//1366 1726//1384 1727//1386
+f 1722//1389 1707//1371 1721//1387
+f 1712//1368 1727//1386 1728//1388
+f 1723//1377 1708//1374 1722//1389
+f 1718//1378 1703//1375 1717//1390
+f 1727//1386 1742//1404 1743//1391
+f 1738//1395 1723//1377 1737//1392
+f 1733//1396 1718//1378 1732//1393
+f 1728//1388 1743//1391 1744//1394
+f 1739//1399 1724//1381 1738//1395
+f 1734//1400 1719//1382 1733//1396
+f 1729//1376 1744//1394 1745//1397
+f 1740//1416 1725//1398 1739//1399
+f 1735//1403 1720//1385 1734//1400
+f 1730//1379 1745//1397 1746//1401
+f 1725//1398 1740//1416 1741//1402
+f 1736//1405 1721//1387 1735//1403
+f 1726//1384 1741//1402 1742//1404
+f 1737//1392 1722//1389 1736//1405
+f 1751//1408 1736//1405 1750//1406
+f 1741//1402 1756//1420 1757//1407
+f 1752//1410 1737//1392 1751//1408
+f 1742//1404 1757//1407 1758//1409
+f 1753//1413 1738//1395 1752//1410
+f 1748//1414 1733//1396 1747//1411
+f 1743//1391 1758//1409 1759//1412
+f 1754//1417 1739//1399 1753//1413
+f 1749//1418 1734//1400 1748//1414
+f 1744//1394 1759//1412 1760//1415
+f 1755//1421 1740//1416 1754//1417
+f 1750//1406 1735//1403 1749//1418
+f 1745//1397 1760//1415 1761//1419
+f 1740//1416 1755//1421 1756//1420
+f 1770//1440 1755//1421 1769//1422
+f 1765//1426 1750//1406 1764//1423
+f 1760//1415 1775//1435 1776//1424
+f 1755//1421 1770//1440 1771//1425
+f 1766//1428 1751//1408 1765//1426
+f 1756//1420 1771//1425 1772//1427
+f 1767//1430 1752//1410 1766//1428
+f 1757//1407 1772//1427 1773//1429
+f 1768//1433 1753//1413 1767//1430
+f 1763//1434 1748//1414 1762//1431
+f 1758//1409 1773//1429 1774//1432
+f 1769//1422 1754//1417 1768//1433
+f 1764//1423 1749//1418 1763//1434
+f 1759//1412 1774//1432 1775//1435
+f 1773//1429 1789//1448 1790//1436
+f 1785//1441 1769//1422 1784//1437
+f 1780//1442 1764//1423 1779//1438
+f 1774//1432 1790//1436 1791//1439
+f 1786//1458 1770//1440 1785//1441
+f 1781//1445 1765//1426 1780//1442
+f 1775//1435 1791//1439 1792//1443
+f 1770//1440 1786//1458 1787//1444
+f 1782//1447 1766//1428 1781//1445
+f 1771//1425 1787//1444 1788//1446
+f 1783//1449 1767//1430 1782//1447
+f 1772//1427 1788//1446 1789//1448
+f 1784//1437 1768//1433 1783//1449
+f 1779//1438 1763//1434 1778//1450
+f 1788//1446 1803//1467 1804//1451
+f 1799//1455 1784//1437 1798//1452
+f 1794//1456 1779//1438 1793//1453
+f 1789//1448 1804//1451 1805//1454
+f 1800//1459 1785//1441 1799//1455
+f 1795//1460 1780//1442 1794//1456
+f 1790//1436 1805//1454 1806//1457
+f 1801//1462 1786//1458 1800//1459
+f 1796//1463 1781//1445 1795//1460
+f 1791//1439 1806//1457 1807//1461
+f 1802//1464 1787//1444 1801//1462
+f 1797//1465 1782//1447 1796//1463
+f 1803//1467 1788//1446 1802//1464
+f 1798//1452 1783//1449 1797//1465
+f 1796//1463 1811//1477 1812//1466
+f 1818//1470 1803//1467 1817//1468
+f 1797//1465 1812//1466 1813//1469
+f 1819//1473 1804//1451 1818//1470
+f 1798//1452 1813//1469 1814//1471
+f 1793//1453 1808//1490 1809//1472
+f 1820//1475 1805//1454 1819//1473
+f 1815//1476 1800//1459 1814//1471
+f 1794//1456 1809//1472 1810//1474
+f 1821//1478 1806//1457 1820//1475
+f 1816//1479 1801//1462 1815//1476
+f 1795//1460 1810//1474 1811//1477
+f 1822//1482 1807//1461 1821//1478
+f 1817//1468 1802//1464 1816//1479
+f 1831//1484 1816//1479 1830//1480
+f 1810//1474 1825//1493 1826//1481
+f 1837//1500 1822//1482 1836//1483
+f 1832//1486 1817//1468 1831//1484
+f 1811//1477 1826//1481 1827//1485
+f 1833//1488 1818//1470 1832//1486
+f 1812//1466 1827//1485 1828//1487
+f 1834//1492 1819//1473 1833//1488
+f 1813//1469 1828//1487 1829//1489
+f 1808//1490 1823//1508 1824//1491
+f 1835//1494 1820//1475 1834//1492
+f 1814//1471 1829//1489 1830//1480
+f 1809//1472 1824//1491 1825//1493
+f 1836//1483 1821//1478 1835//1494
+f 1850//1498 1835//1494 1849//1495
+f 1829//1489 1844//1507 1845//1496
+f 1824//1491 1839//1509 1840//1497
+f 1851//1501 1836//1483 1850//1498
+f 1846//1502 1831//1484 1845//1496
+f 1825//1493 1840//1497 1841//1499
+f 1852//1519 1837//1500 1851//1501
+f 1847//1504 1832//1486 1846//1502
+f 1826//1481 1841//1499 1842//1503
+f 1848//1506 1833//1488 1847//1504
+f 1827//1485 1842//1503 1843//1505
+f 1849//1495 1834//1492 1848//1506
+f 1828//1487 1843//1505 1844//1507
+f 1823//1508 1838//1512 1839//1509
+f 1864//1514 1849//1495 1863//1510
+f 1843//1505 1858//1524 1859//1511
+f 1838//1512 1853//1529 1854//1513
+f 1865//1517 1850//1498 1864//1514
+f 1844//1507 1859//1511 1860//1515
+f 1839//1509 1854//1513 1855//1516
+f 1866//1520 1851//1501 1865//1517
+f 1861//1521 1846//1502 1860//1515
+f 1840//1497 1855//1516 1856//1518
+f 1867//1536 1852//1519 1866//1520
+f 1862//1523 1847//1504 1861//1521
+f 1841//1499 1856//1518 1857//1522
+f 1863//1510 1848//1506 1862//1523
+f 1842//1503 1857//1522 1858//1524
+f 1878//1527 1863//1510 1877//1525
+f 1857//1522 1872//1539 1873//1526
+f 1879//1531 1864//1514 1878//1527
+f 1858//1524 1873//1526 1874//1528
+f 1853//1529 1868//1549 1869//1530
+f 1880//1534 1865//1517 1879//1531
+f 1859//1511 1874//1528 1875//1532
+f 1854//1513 1869//1530 1870//1533
+f 1881//1537 1866//1520 1880//1534
+f 1876//1538 1861//1521 1875//1532
+f 1855//1516 1870//1533 1871//1535
+f 1882//1541 1867//1536 1881//1537
+f 1877//1525 1862//1523 1876//1538
+f 1856//1518 1871//1535 1872//1539
+f 1870//1533 1885//1553 1886//1540
+f 1897//1560 1882//1541 1896//1542
+f 1892//1545 1877//1525 1891//1543
+f 1871//1535 1886//1540 1887//1544
+f 1893//1547 1878//1527 1892//1545
+f 1872//1539 1887//1544 1888//1546
+f 1894//1551 1879//1531 1893//1547
+f 1873//1526 1888//1546 1889//1548
+f 1868//1549 1883//1567 1884//1550
+f 1895//1554 1880//1534 1894//1551
+f 1874//1528 1889//1548 1890//1552
+f 1869//1530 1884//1550 1885//1553
+f 1896//1542 1881//1537 1895//1554
+f 1891//1543 1876//1538 1890//1552
+f 1889//1548 1905//1566 1906//1555
+f 1884//1550 1900//1568 1901//1556
+f 1912//1561 1896//1542 1911//1557
+f 1890//1552 1906//1555 1907//1558
+f 1885//1553 1901//1556 1902//1559
+f 1913//1580 1897//1560 1912//1561
+f 1908//1563 1892//1545 1907//1558
+f 1886//1540 1902//1559 1903//1562
+f 1909//1565 1893//1547 1908//1563
+f 1887//1544 1903//1562 1904//1564
+f 1910//1569 1894//1551 1909//1565
+f 1888//1546 1904//1564 1905//1566
+f 1883//1567 1899//1572 1900//1568
+f 1911//1557 1895//1554 1910//1569
+f 1925//1574 1910//1569 1924//1570
+f 1904//1564 1919//1584 1920//1571
+f 1899//1572 1914//1588 1915//1573
+f 1926//1577 1911//1557 1925//1574
+f 1905//1566 1920//1571 1921//1575
+f 1900//1568 1915//1573 1916//1576
+f 1927//1581 1912//1561 1926//1577
+f 1906//1555 1921//1575 1922//1578
+f 1901//1556 1916//1576 1917//1579
+f 1928//1587 1913//1580 1927//1581
+f 1907//1558 1922//1578 1923//1582
+f 1902//1559 1917//1579 1918//1583
+f 1908//1563 1923//1582 1924//1570
+f 1903//1562 1918//1583 1919//1584
+f 1923//1582 1456//1128 1457//1132
+f 1452//1108 1919//1584 1451//1130
+f 1924//1570 1457//1132 1458//1114
+f 1919//1584 1452//1108 1453//1107
+f 1448//1110 1915//1573 1447//1111
+f 1925//1574 1458//1114 1459//1113
+f 1920//1571 1453//1107 1454//1116
+f 1449//1118 1916//1576 1448//1110
+f 1926//1577 1459//1113 1460//1120
+f 1921//1575 1454//1116 1455//1122
+f 1450//1124 1917//1579 1449//1118
+f 1927//1581 1460//1120 1461//1126
+f 1922//1578 1455//1122 1456//1128
+f 1451//1130 1918//1583 1450//1124
+f 1950//1136 1935//1107 1949//1109
+f 1945//1119 1930//1110 1944//1112
+f 1940//1114 1955//1135 1956//1590
+f 1935//1107 1950//1136 1951//1117
+f 1946//1125 1931//1118 1945//1119
+f 1941//1113 1956//1590 1957//1121
+f 1936//1116 1951//1117 1952//1123
+f 1947//1131 1932//1124 1946//1125
+f 1942//1120 1957//1121 1958//1127
+f 1937//1122 1952//1123 1953//1129
+f 1948//1134 1933//1130 1947//1131
+f 1938//1128 1953//1129 1954//1133
+f 1949//1109 1934//1108 1948//1134
+f 1939//1592 1954//1133 1955//1135
+f 1965//1154 1950//1136 1964//1137
+f 1960//1141 1945//1119 1959//1138
+f 1955//1135 1970//1594 1971//1139
+f 1950//1136 1965//1154 1966//1140
+f 1961//1144 1946//1125 1960//1141
+f 1956//1590 1971//1139 1972//1142
+f 1951//1117 1966//1140 1967//1143
+f 1962//1147 1947//1131 1961//1144
+f 1957//1121 1972//1142 1973//1145
+f 1952//1123 1967//1143 1968//1593
+f 1963//1149 1948//1134 1962//1147
+f 1953//1129 1968//1593 1969//1148
+f 1964//1137 1949//1109 1963//1149
+f 1954//1133 1969//1148 1970//1594
+f 1968//1593 1983//1164 1984//1151
+f 1979//1155 1964//1137 1978//1152
+f 1969//1148 1984//1151 1985//1595
+f 1980//1172 1965//1154 1979//1155
+f 1975//1159 1960//1141 1974//1596
+f 1970//1594 1985//1595 1986//1157
+f 1965//1154 1980//1172 1981//1158
+f 1976//1162 1961//1144 1975//1159
+f 1971//1139 1986//1157 1987//1160
+f 1966//1140 1981//1158 1982//1597
+f 1977//1165 1962//1147 1976//1162
+f 1972//1142 1987//1160 1988//1598
+f 1967//1143 1982//1597 1983//1164
+f 1978//1152 1963//1149 1977//1165
+f 1987//1160 2002//1178 2003//1166
+f 1982//1597 1997//1179 1998//1599
+f 1993//1601 1978//1152 1992//1168
+f 1983//1164 1998//1599 1999//1600
+f 1994//1173 1979//1155 1993//1601
+f 1984//1151 1999//1600 2000//1171
+f 1995//1191 1980//1172 1994//1173
+f 1990//1177 1975//1159 1989//1174
+f 1985//1595 2000//1171 2001//1175
+f 1980//1172 1995//1191 1996//1176
+f 1991//1602 1976//1162 1990//1177
+f 1986//1157 2001//1175 2002//1178
+f 1981//1158 1996//1176 1997//1179
+f 1992//1168 1977//1165 1991//1602
+f 2006//1603 1991//1602 2005//1181
+f 2001//1175 2016//1194 2017//1182
+f 1996//1176 2011//1606 2012//1183
+f 2007//1604 1992//1168 2006//1603
+f 2002//1178 2017//1182 2018//1185
+f 1997//1179 2012//1183 2013//1186
+f 2008//1189 1993//1601 2007//1604
+f 1998//1599 2013//1186 2014//1188
+f 2009//1192 1994//1173 2008//1189
+f 1999//1600 2014//1188 2015//1190
+f 2010//1196 1995//1191 2009//1192
+f 2005//1181 1990//1177 2004//1605
+f 2000//1171 2015//1190 2016//1194
+f 1995//1191 2010//1196 2011//1606
+f 2025//1610 2010//1196 2024//1197
+f 2020//1201 2005//1181 2019//1198
+f 2015//1190 2030//1210 2031//1199
+f 2010//1196 2025//1610 2026//1607
+f 2021//1204 2006//1603 2020//1201
+f 2016//1194 2031//1199 2032//1202
+f 2011//1606 2026//1607 2027//1203
+f 2022//1609 2007//1604 2021//1204
+f 2017//1182 2032//1202 2033//1608
+f 2012//1183 2027//1203 2028//1206
+f 2023//1209 2008//1189 2022//1609
+f 2013//1186 2028//1206 2029//1208
+f 2024//1197 2009//1192 2023//1209
+f 2014//1188 2029//1208 2030//1210
+f 2028//1206 2043//1224 2044//1211
+f 2023//1209 2038//1228 2039//1212
+f 2029//1208 2044//1211 2045//1213
+f 2024//1197 2039//1212 2040//1215
+f 2035//1219 2020//1201 2034//1216
+f 2030//1210 2045//1213 2046//1217
+f 2025//1610 2040//1215 2041//1611
+f 2036//1222 2021//1204 2035//1219
+f 2031//1199 2046//1217 2047//1220
+f 2026//1607 2041//1611 2042//1221
+f 2037//1225 2022//1609 2036//1222
+f 2032//1202 2047//1220 2048//1612
+f 2027//1203 2042//1221 2043//1224
+f 2038//1228 2023//1209 2037//1225
+f 2063//1243 2048//1612 2062//1226
+f 2058//1230 2043//1224 2057//1613
+f 2037//1225 2052//1239 2053//1229
+f 2059//1232 2044//1211 2058//1230
+f 2038//1228 2053//1229 2054//1614
+f 2060//1235 2045//1213 2059//1232
+f 2039//1212 2054//1614 2055//1615
+f 2034//1216 2049//1251 2050//1616
+f 2061//1238 2046//1217 2060//1235
+f 2040//1215 2055//1615 2056//1236
+f 2035//1219 2050//1616 2051//1237
+f 2062//1226 2047//1220 2061//1238
+f 2041//1611 2056//1236 2057//1613
+f 2036//1222 2051//1237 2052//1239
+f 2077//1244 2062//1226 2076//1617
+f 2072//1245 2057//1613 2071//1241
+f 2051//1237 2066//1620 2067//1618
+f 2078//1262 2063//1243 2077//1244
+f 2073//1247 2058//1230 2072//1245
+f 2052//1239 2067//1618 2068//1619
+f 2074//1249 2059//1232 2073//1247
+f 2053//1229 2068//1619 2069//1248
+f 2075//1253 2060//1235 2074//1249
+f 2054//1614 2069//1248 2070//1250
+f 2049//1251 2064//1621 2065//1252
+f 2076//1617 2061//1238 2075//1253
+f 2055//1615 2070//1250 2071//1241
+f 2050//1616 2065//1252 2066//1620
+f 2064//1621 2079//1628 2080//1622
+f 2091//1260 2076//1617 2090//1257
+f 2070//1250 2085//1269 2086//1258
+f 2065//1252 2080//1622 2081//1623
+f 2092//1263 2077//1244 2091//1260
+f 2087//1624 2072//1245 2086//1258
+f 2066//1620 2081//1623 2082//1261
+f 2093//1280 2078//1262 2092//1263
+f 2088//1625 2073//1247 2087//1624
+f 2067//1618 2082//1261 2083//1265
+f 2089//1268 2074//1249 2088//1625
+f 2068//1619 2083//1265 2084//1626
+f 2090//1257 2075//1253 2089//1268
+f 2069//1248 2084//1626 2085//1269
+f 2083//1265 2098//1283 2099//1270
+f 2105//1275 2090//1257 2104//1271
+f 2084//1626 2099//1270 2100//1627
+f 2079//1628 2094//1291 2095//1274
+f 2106//1278 2091//1260 2105//1275
+f 2085//1269 2100//1627 2101//1276
+f 2080//1622 2095//1274 2096//1277
+f 2107//1281 2092//1263 2106//1278
+f 2102//1282 2087//1624 2101//1276
+f 2081//1623 2096//1277 2097//1629
+f 2108//1298 2093//1280 2107//1281
+f 2103//1630 2088//1625 2102//1282
+f 2082//1261 2097//1629 2098//1283
+f 2104//1271 2089//1268 2103//1630
+f 2118//1287 2103//1630 2117//1285
+f 2097//1629 2112//1634 2113//1286
+f 2119//1631 2104//1271 2118//1287
+f 2098//1283 2113//1286 2114//1288
+f 2120//1632 2105//1275 2119//1631
+f 2099//1270 2114//1288 2115//1290
+f 2094//1291 2109//1636 2110//1292
+f 2121//1296 2106//1278 2120//1632
+f 2100//1627 2115//1290 2116//1294
+f 2095//1274 2110//1292 2111//1633
+f 2122//1299 2107//1281 2121//1296
+f 2117//1285 2102//1282 2116//1294
+f 2096//1277 2111//1633 2112//1634
+f 2123//1635 2108//1298 2122//1299
+f 2137//1304 2122//1299 2136//1300
+f 2132//1305 2117//1285 2131//1301
+f 2111//1633 2126//1639 2127//1302
+f 2138//1323 2123//1635 2137//1304
+f 2133//1307 2118//1287 2132//1305
+f 2112//1634 2127//1302 2128//1306
+f 2134//1309 2119//1631 2133//1307
+f 2113//1286 2128//1306 2129//1308
+f 2135//1638 2120//1632 2134//1309
+f 2114//1288 2129//1308 2130//1310
+f 2109//1636 2124//1315 2125//1637
+f 2136//1300 2121//1296 2135//1638
+f 2115//1290 2130//1310 2131//1301
+f 2110//1292 2125//1637 2126//1639
+f 2124//1315 2139//1333 2140//1316
+f 2151//1320 2136//1300 2150//1317
+f 2146//1321 2131//1301 2145//1640
+f 2125//1637 2140//1316 2141//1319
+f 2152//1641 2137//1304 2151//1320
+f 2147//1642 2132//1305 2146//1321
+f 2126//1639 2141//1319 2142//1322
+f 2153//1646 2138//1323 2152//1641
+f 2148//1643 2133//1307 2147//1642
+f 2127//1302 2142//1322 2143//1326
+f 2149//1329 2134//1309 2148//1643
+f 2128//1306 2143//1326 2144//1328
+f 2150//1317 2135//1638 2149//1329
+f 2129//1308 2144//1328 2145//1640
+f 2159//1332 2144//1328 2158//1330
+f 2165//1644 2150//1317 2164//1331
+f 2160//1645 2145//1640 2159//1332
+f 2139//1333 2154//1649 2155//1334
+f 2166//1338 2151//1320 2165//1644
+f 2161//1339 2146//1321 2160//1645
+f 2140//1316 2155//1334 2156//1337
+f 2167//1342 2152//1641 2166//1338
+f 2162//1647 2147//1642 2161//1339
+f 2141//1319 2156//1337 2157//1340
+f 2168//1359 2153//1646 2167//1342
+f 2163//1344 2148//1643 2162//1647
+f 2142//1322 2157//1340 2158//1330
+f 2164//1331 2149//1329 2163//1344
+f 2178//1365 2163//1344 2177//1345
+f 2173//1348 2158//1330 2172//1346
+f 2163//1344 2178//1365 2179//1648
+f 2174//1350 2159//1332 2173//1348
+f 2164//1331 2179//1648 2180//1349
+f 2175//1354 2160//1645 2174//1350
+f 2170//1651 2155//1334 2169//1352
+f 2165//1644 2180//1349 2181//1650
+f 2176//1357 2161//1339 2175//1354
+f 2171//1358 2156//1337 2170//1651
+f 2166//1338 2181//1650 2182//1356
+f 2177//1345 2162//1647 2176//1357
+f 2172//1346 2157//1340 2171//1358
+f 2167//1342 2182//1356 2183//1360
+f 2181//1650 2196//1373 2197//1652
+f 2192//1380 2177//1345 2191//1653
+f 2187//1367 2172//1346 2186//1654
+f 2182//1356 2197//1652 2198//1364
+f 2177//1345 2192//1380 2193//1366
+f 2188//1655 2173//1348 2187//1367
+f 2178//1365 2193//1366 2194//1368
+f 2189//1371 2174//1350 2188//1655
+f 2179//1648 2194//1368 2195//1370
+f 2190//1374 2175//1354 2189//1371
+f 2185//1375 2170//1651 2184//1656
+f 2180//1349 2195//1370 2196//1373
+f 2191//1653 2176//1357 2190//1374
+f 2186//1654 2171//1358 2185//1375
+f 2195//1370 2210//1388 2211//1376
+f 2206//1381 2191//1653 2205//1377
+f 2201//1382 2186//1654 2200//1378
+f 2196//1373 2211//1376 2212//1379
+f 2207//1398 2192//1380 2206//1381
+f 2202//1385 2187//1367 2201//1382
+f 2197//1652 2212//1379 2213//1383
+f 2192//1380 2207//1398 2208//1384
+f 2203//1387 2188//1655 2202//1385
+f 2193//1366 2208//1384 2209//1386
+f 2204//1389 2189//1371 2203//1387
+f 2194//1368 2209//1386 2210//1388
+f 2205//1377 2190//1374 2204//1389
+f 2200//1378 2185//1375 2199//1390
+f 2209//1386 2224//1404 2225//1391
+f 2220//1658 2205//1377 2219//1392
+f 2215//1396 2200//1378 2214//1393
+f 2210//1388 2225//1391 2226//1657
+f 2221//1659 2206//1381 2220//1658
+f 2216//1400 2201//1382 2215//1396
+f 2211//1376 2226//1657 2227//1397
+f 2222//1668 2207//1398 2221//1659
+f 2217//1661 2202//1385 2216//1400
+f 2212//1379 2227//1397 2228//1401
+f 2207//1398 2222//1668 2223//1660
+f 2218//1405 2203//1387 2217//1661
+f 2208//1384 2223//1660 2224//1404
+f 2219//1392 2204//1389 2218//1405
+f 2233//1664 2218//1405 2232//1662
+f 2223//1660 2238//1420 2239//1663
+f 2234//1665 2219//1392 2233//1664
+f 2224//1404 2239//1663 2240//1409
+f 2235//1413 2220//1658 2234//1665
+f 2230//1414 2215//1396 2229//1411
+f 2225//1391 2240//1409 2241//1666
+f 2236//1417 2221//1659 2235//1413
+f 2231//1669 2216//1400 2230//1414
+f 2226//1657 2241//1666 2242//1667
+f 2237//1421 2222//1668 2236//1417
+f 2232//1662 2217//1661 2231//1669
+f 2227//1397 2242//1667 2243//1419
+f 2222//1668 2237//1421 2238//1420
+f 2252//1440 2237//1421 2251//1670
+f 2247//1671 2232//1662 2246//1423
+f 2242//1667 2257//1435 2258//1424
+f 2237//1421 2252//1440 2253//1425
+f 2248//1428 2233//1664 2247//1671
+f 2238//1420 2253//1425 2254//1427
+f 2249//1430 2234//1665 2248//1428
+f 2239//1663 2254//1427 2255//1429
+f 2250//1433 2235//1413 2249//1430
+f 2245//1434 2230//1414 2244//1431
+f 2240//1409 2255//1429 2256//1672
+f 2251//1670 2236//1417 2250//1433
+f 2246//1423 2231//1669 2245//1434
+f 2241//1666 2256//1672 2257//1435
+f 2255//1429 2271//1675 2272//1436
+f 2267//1674 2251//1670 2266//1437
+f 2262//1442 2246//1423 2261//1438
+f 2256//1672 2272//1436 2273//1673
+f 2268//1678 2252//1440 2267//1674
+f 2263//1445 2247//1671 2262//1442
+f 2257//1435 2273//1673 2274//1443
+f 2252//1440 2268//1678 2269//1444
+f 2264//1447 2248//1428 2263//1445
+f 2253//1425 2269//1444 2270//1446
+f 2265//1449 2249//1430 2264//1447
+f 2254//1427 2270//1446 2271//1675
+f 2266//1437 2250//1433 2265//1449
+f 2261//1438 2245//1434 2260//1450
+f 2270//1446 2285//1684 2286//1451
+f 2281//1455 2266//1437 2280//1452
+f 2276//1456 2261//1438 2275//1676
+f 2271//1675 2286//1451 2287//1677
+f 2282//1679 2267//1674 2281//1455
+f 2277//1680 2262//1442 2276//1456
+f 2272//1436 2287//1677 2288//1457
+f 2283//1682 2268//1678 2282//1679
+f 2278//1463 2263//1445 2277//1680
+f 2273//1673 2288//1457 2289//1681
+f 2284//1464 2269//1444 2283//1682
+f 2279//1683 2264//1447 2278//1463
+f 2285//1684 2270//1446 2284//1464
+f 2280//1452 2265//1449 2279//1683
+f 2278//1463 2293//1477 2294//1466
+f 2300//1470 2285//1684 2299//1685
+f 2279//1683 2294//1466 2295//1469
+f 2301//1473 2286//1451 2300//1470
+f 2280//1452 2295//1469 2296//1471
+f 2275//1676 2290//1490 2291//1472
+f 2302//1475 2287//1677 2301//1473
+f 2297//1476 2282//1679 2296//1471
+f 2276//1456 2291//1472 2292//1686
+f 2303//1687 2288//1457 2302//1475
+f 2298//1688 2283//1682 2297//1476
+f 2277//1680 2292//1686 2293//1477
+f 2304//1482 2289//1681 2303//1687
+f 2299//1685 2284//1464 2298//1688
+f 2313//1484 2298//1688 2312//1480
+f 2292//1686 2307//1493 2308//1481
+f 2319//1692 2304//1482 2318//1483
+f 2314//1486 2299//1685 2313//1484
+f 2293//1477 2308//1481 2309//1485
+f 2315//1689 2300//1470 2314//1486
+f 2294//1466 2309//1485 2310//1487
+f 2316//1690 2301//1473 2315//1689
+f 2295//1469 2310//1487 2311//1489
+f 2290//1490 2305//1508 2306//1491
+f 2317//1691 2302//1475 2316//1690
+f 2296//1471 2311//1489 2312//1480
+f 2291//1472 2306//1491 2307//1493
+f 2318//1483 2303//1687 2317//1691
+f 2332//1498 2317//1691 2331//1495
+f 2311//1489 2326//1507 2327//1496
+f 2306//1491 2321//1694 2322//1497
+f 2333//1693 2318//1483 2332//1498
+f 2328//1502 2313//1484 2327//1496
+f 2307//1493 2322//1497 2323//1499
+f 2334//1697 2319//1692 2333//1693
+f 2329//1504 2314//1486 2328//1502
+f 2308//1481 2323//1499 2324//1503
+f 2330//1506 2315//1689 2329//1504
+f 2309//1485 2324//1503 2325//1505
+f 2331//1495 2316//1690 2330//1506
+f 2310//1487 2325//1505 2326//1507
+f 2305//1508 2320//1695 2321//1694
+f 2346//1514 2331//1495 2345//1510
+f 2325//1505 2340//1524 2341//1511
+f 2320//1695 2335//1529 2336//1513
+f 2347//1517 2332//1498 2346//1514
+f 2326//1507 2341//1511 2342//1515
+f 2321//1694 2336//1513 2337//1696
+f 2348//1520 2333//1693 2347//1517
+f 2343//1521 2328//1502 2342//1515
+f 2322//1497 2337//1696 2338//1518
+f 2349//1536 2334//1697 2348//1520
+f 2344//1523 2329//1504 2343//1521
+f 2323//1499 2338//1518 2339//1522
+f 2345//1510 2330//1506 2344//1523
+f 2324//1503 2339//1522 2340//1524
+f 2360//1527 2345//1510 2359//1525
+f 2339//1522 2354//1702 2355//1526
+f 2361//1531 2346//1514 2360//1527
+f 2340//1524 2355//1526 2356//1528
+f 2335//1529 2350//1549 2351//1698
+f 2362//1534 2347//1517 2361//1531
+f 2341//1511 2356//1528 2357//1532
+f 2336//1513 2351//1698 2352//1533
+f 2363//1700 2348//1520 2362//1534
+f 2358//1701 2343//1521 2357//1532
+f 2337//1696 2352//1533 2353//1699
+f 2364//1541 2349//1536 2363//1700
+f 2359//1525 2344//1523 2358//1701
+f 2338//1518 2353//1699 2354//1702
+f 2352//1533 2367//1704 2368//1540
+f 2379//1560 2364//1541 2378//1703
+f 2374//1545 2359//1525 2373//1543
+f 2353//1699 2368//1540 2369//1544
+f 2375//1547 2360//1527 2374//1545
+f 2354//1702 2369//1544 2370//1546
+f 2376//1551 2361//1531 2375//1547
+f 2355//1526 2370//1546 2371//1548
+f 2350//1549 2365//1567 2366//1550
+f 2377//1705 2362//1534 2376//1551
+f 2356//1528 2371//1548 2372//1552
+f 2351//1698 2366//1550 2367//1704
+f 2378//1703 2363//1700 2377//1705
+f 2373//1543 2358//1701 2372//1552
+f 2371//1548 2387//1566 2388//1706
+f 2366//1550 2382//1707 2383//1556
+f 2394//1561 2378//1703 2393//1557
+f 2372//1552 2388//1706 2389//1558
+f 2367//1704 2383//1556 2384//1559
+f 2395//1710 2379//1560 2394//1561
+f 2390//1563 2374//1545 2389//1558
+f 2368//1540 2384//1559 2385//1562
+f 2391//1565 2375//1547 2390//1563
+f 2369//1544 2385//1562 2386//1564
+f 2392//1708 2376//1551 2391//1565
+f 2370//1546 2386//1564 2387//1566
+f 2365//1567 2381//1572 2382//1707
+f 2393//1557 2377//1705 2392//1708
+f 2407//1574 2392//1708 2406//1570
+f 2386//1564 2401//1584 2402//1571
+f 2381//1572 2396//1588 2397//1573
+f 2408//1577 2393//1557 2407//1574
+f 2387//1566 2402//1571 2403//1709
+f 2382//1707 2397//1573 2398//1576
+f 2409//1581 2394//1561 2408//1577
+f 2388//1706 2403//1709 2404//1578
+f 2383//1556 2398//1576 2399//1579
+f 2410//1587 2395//1710 2409//1581
+f 2389//1558 2404//1578 2405//1582
+f 2384//1559 2399//1579 2400//1583
+f 2390//1563 2405//1582 2406//1570
+f 2385//1562 2400//1583 2401//1584
+f 2405//1582 1938//1128 1939//1592
+f 1934//1108 2401//1584 1933//1130
+f 2406//1570 1939//1592 1940//1114
+f 2401//1584 1934//1108 1935//1107
+f 1930//1110 2397//1573 1929//1589
+f 2407//1574 1940//1114 1941//1113
+f 2402//1571 1935//1107 1936//1116
+f 1931//1118 2398//1576 1930//1110
+f 2408//1577 1941//1113 1942//1120
+f 2403//1709 1936//1116 1937//1122
+f 1932//1124 2399//1579 1931//1118
+f 2409//1581 1942//1120 1943//1591
+f 2404//1578 1937//1122 1938//1128
+f 1933//1130 2400//1583 1932//1124
+o Hnad_L_Sphere.012
+v 0.398410 0.221774 0.909033
+v 0.378940 0.206049 0.909266
+v 0.360366 0.192203 0.911041
+v 0.343400 0.180768 0.914290
+v 0.328695 0.172185 0.918888
+v 0.316816 0.166782 0.924658
+v 0.308220 0.164768 0.931379
+v 0.303236 0.166220 0.938792
+v 0.302057 0.171081 0.946613
+v 0.304727 0.179166 0.954540
+v 0.311144 0.190164 0.962270
+v 0.321062 0.203651 0.969505
+v 0.334099 0.219110 0.975966
+v 0.349754 0.235947 0.981407
+v 0.367426 0.253514 0.985617
+v 0.400727 0.220453 0.910024
+v 0.383486 0.203457 0.911210
+v 0.366965 0.188440 0.913864
+v 0.351800 0.175979 0.917884
+v 0.338572 0.166554 0.923114
+v 0.327791 0.160525 0.929354
+v 0.319871 0.158126 0.936364
+v 0.315115 0.159447 0.943874
+v 0.313708 0.164439 0.951597
+v 0.315702 0.172909 0.959235
+v 0.321021 0.184533 0.966495
+v 0.329462 0.198862 0.973098
+v 0.340698 0.215347 0.978790
+v 0.354300 0.233355 0.983352
+v 0.369743 0.252192 0.986609
+v 0.403698 0.219848 0.911057
+v 0.389313 0.202270 0.913236
+v 0.375425 0.186717 0.916806
+v 0.362567 0.173786 0.921627
+v 0.351233 0.163974 0.927515
+v 0.341859 0.157659 0.934245
+v 0.334805 0.155083 0.941556
+v 0.330342 0.156345 0.949168
+v 0.328642 0.161396 0.956790
+v 0.329770 0.170043 0.964126
+v 0.333682 0.181953 0.970897
+v 0.340229 0.196669 0.976842
+v 0.349158 0.213624 0.981731
+v 0.360127 0.232168 0.985378
+v 0.372714 0.251587 0.987642
+v 0.407207 0.219982 0.912091
+v 0.396197 0.202533 0.915266
+v 0.385419 0.187098 0.919752
+v 0.375287 0.174272 0.925376
+v 0.366191 0.164546 0.931924
+v 0.358479 0.158294 0.939144
+v 0.352449 0.155757 0.946757
+v 0.348332 0.157032 0.954471
+v 0.346286 0.162070 0.961990
+v 0.346390 0.170678 0.969025
+v 0.348640 0.182524 0.975306
+v 0.352949 0.197154 0.980591
+v 0.359152 0.214006 0.984677
+v 0.367011 0.232431 0.987407
+v 0.376223 0.251721 0.988676
+v 0.411121 0.220850 0.913088
+v 0.403874 0.204236 0.917220
+v 0.396564 0.189571 0.922589
+v 0.389472 0.177418 0.928988
+v 0.382871 0.168246 0.936171
+v 0.377013 0.162405 0.943862
+v 0.372124 0.160122 0.951766
+v 0.368392 0.161482 0.959579
+v 0.365961 0.166435 0.967000
+v 0.364923 0.174790 0.973744
+v 0.365320 0.186225 0.979553
+v 0.367134 0.200301 0.984203
+v 0.370298 0.216478 0.987515
+v 0.374688 0.234134 0.989362
+v 0.380137 0.252589 0.989673
+v 0.415288 0.222419 0.914008
+v 0.412049 0.207314 0.919025
+v 0.408432 0.194039 0.925209
+v 0.404577 0.183105 0.932323
+v 0.400632 0.174933 0.940092
+v 0.396748 0.169836 0.948219
+v 0.393075 0.168010 0.956392
+v 0.389753 0.169525 0.964295
+v 0.386912 0.174323 0.971625
+v 0.384659 0.182220 0.978101
+v 0.383081 0.192912 0.983474
+v 0.382239 0.205988 0.987537
+v 0.382165 0.220946 0.990135
+v 0.382863 0.237211 0.991166
+v 0.384304 0.254158 0.990593
+v 0.419549 0.224628 0.914816
+v 0.420407 0.211648 0.920611
+v 0.420566 0.200331 0.927511
+v 0.420021 0.191114 0.935253
+v 0.418792 0.184350 0.943538
+v 0.416926 0.180299 0.952047
+v 0.414496 0.179117 0.960455
+v 0.411594 0.180850 0.968438
+v 0.408333 0.185431 0.975689
+v 0.404837 0.192683 0.981929
+v 0.401241 0.202329 0.986919
+v 0.397682 0.213997 0.990467
+v 0.394299 0.227238 0.992437
+v 0.391221 0.241545 0.992752
+v 0.388565 0.256368 0.991401
+v 0.423740 0.227394 0.915482
+v 0.428627 0.217072 0.921916
+v 0.432500 0.208205 0.929407
+v 0.435210 0.201136 0.937665
+v 0.436652 0.196134 0.946374
+v 0.436772 0.193394 0.955199
+v 0.435564 0.193018 0.963801
+v 0.433075 0.195024 0.971850
+v 0.429401 0.199332 0.979035
+v 0.424682 0.205778 0.985081
+v 0.419101 0.214113 0.989756
+v 0.412872 0.224019 0.992880
+v 0.406233 0.235113 0.994332
+v 0.399441 0.246969 0.994058
+v 0.392756 0.259133 0.992067
+v 0.427699 0.230608 0.915979
+v 0.436394 0.223377 0.922891
+v 0.443776 0.217359 0.930822
+v 0.449561 0.212786 0.939467
+v 0.453527 0.209834 0.948493
+v 0.455522 0.208616 0.957554
+v 0.455469 0.209178 0.966301
+v 0.453370 0.211500 0.974398
+v 0.449306 0.215492 0.981535
+v 0.443433 0.221000 0.987436
+v 0.435976 0.227813 0.991875
+v 0.427223 0.235669 0.994682
+v 0.417509 0.244267 0.995748
+v 0.407208 0.253275 0.995033
+v 0.396715 0.262347 0.992564
+v 0.431275 0.234148 0.916289
+v 0.443409 0.230321 0.923499
+v 0.453959 0.227441 0.931704
+v 0.462522 0.225618 0.940590
+v 0.468768 0.224922 0.949813
+v 0.472457 0.225381 0.959021
+v 0.473447 0.226976 0.967858
+v 0.471701 0.229647 0.975986
+v 0.467284 0.233289 0.983092
+v 0.460368 0.237765 0.988903
+v 0.451217 0.242901 0.993195
+v 0.440184 0.248501 0.995804
+v 0.427693 0.254348 0.996630
+v 0.414222 0.260219 0.995640
+v 0.400291 0.265888 0.992873
+v 0.434331 0.237878 0.916399
+v 0.449402 0.237638 0.923715
+v 0.462660 0.238063 0.932019
+v 0.473596 0.239137 0.940990
+v 0.481790 0.240819 0.950284
+v 0.486926 0.243045 0.959543
+v 0.488807 0.245728 0.968413
+v 0.487361 0.248766 0.976551
+v 0.482644 0.252041 0.983646
+v 0.474836 0.255429 0.989425
+v 0.464239 0.258798 0.993665
+v 0.451258 0.262020 0.996204
+v 0.436393 0.264970 0.996944
+v 0.420215 0.267536 0.995857
+v 0.403347 0.269618 0.992984
+v 0.436748 0.241655 0.916306
+v 0.454143 0.245045 0.923533
+v 0.469543 0.248817 0.931753
+v 0.482356 0.252825 0.940652
+v 0.492091 0.256914 0.949886
+v 0.498372 0.260928 0.959102
+v 0.500958 0.264713 0.967944
+v 0.499750 0.268122 0.976073
+v 0.494795 0.271026 0.983178
+v 0.486282 0.273312 0.988983
+v 0.474540 0.274893 0.993268
+v 0.460018 0.275707 0.995866
+v 0.443276 0.275724 0.996679
+v 0.424956 0.274943 0.995674
+v 0.405764 0.273394 0.992891
+v 0.438433 0.245332 0.916012
+v 0.457450 0.252259 0.922957
+v 0.474344 0.259290 0.930918
+v 0.488467 0.266154 0.939589
+v 0.499276 0.272588 0.948636
+v 0.506355 0.278344 0.957713
+v 0.509433 0.283202 0.966470
+v 0.508391 0.286973 0.974570
+v 0.503270 0.289515 0.981703
+v 0.494266 0.290728 0.987595
+v 0.481725 0.290567 0.992018
+v 0.466128 0.289037 0.994803
+v 0.448077 0.286197 0.995843
+v 0.428263 0.282157 0.995099
+v 0.407449 0.277072 0.992597
+v 0.439323 0.248770 0.915530
+v 0.459195 0.259002 0.922012
+v 0.476878 0.269079 0.929545
+v 0.491692 0.278614 0.937841
+v 0.503068 0.287239 0.946582
+v 0.510569 0.294623 0.955430
+v 0.513907 0.300483 0.964046
+v 0.512953 0.304594 0.972099
+v 0.507744 0.306797 0.979280
+v 0.498480 0.307007 0.985312
+v 0.485517 0.305218 0.989963
+v 0.469354 0.301497 0.993056
+v 0.450611 0.295987 0.994471
+v 0.430009 0.288900 0.994153
+v 0.408339 0.280509 0.992115
+v 0.439383 0.251835 0.914878
+v 0.459313 0.265015 0.920732
+v 0.477048 0.277809 0.927688
+v 0.491909 0.289724 0.935477
+v 0.503323 0.300304 0.943802
+v 0.510853 0.309140 0.952341
+v 0.514208 0.315894 0.960767
+v 0.513260 0.320307 0.968756
+v 0.508045 0.322208 0.976001
+v 0.498763 0.321524 0.982223
+v 0.485772 0.318283 0.987183
+v 0.469571 0.312607 0.990692
+v 0.450782 0.304716 0.992613
+v 0.430126 0.294913 0.992874
+v 0.408399 0.283575 0.991463
+v 0.438611 0.254411 0.914081
+v 0.457797 0.270067 0.919168
+v 0.474848 0.285143 0.925417
+v 0.489109 0.299059 0.932587
+v 0.500031 0.311280 0.940403
+v 0.507194 0.321337 0.948565
+v 0.510324 0.328842 0.956758
+v 0.509300 0.333508 0.964668
+v 0.504161 0.335156 0.971992
+v 0.495105 0.333721 0.978446
+v 0.482480 0.329259 0.983785
+v 0.466771 0.321942 0.987802
+v 0.448581 0.312051 0.990342
+v 0.428611 0.299965 0.991309
+v 0.407627 0.286150 0.990665
+v 0.437035 0.256397 0.913169
+v 0.454707 0.273964 0.917379
+v 0.470362 0.290801 0.922820
+v 0.483399 0.306260 0.929282
+v 0.493317 0.319747 0.936516
+v 0.499734 0.330744 0.944246
+v 0.502404 0.338829 0.952173
+v 0.501225 0.343691 0.959994
+v 0.496241 0.345143 0.967407
+v 0.487645 0.343129 0.974128
+v 0.475766 0.337726 0.979898
+v 0.461061 0.329142 0.984496
+v 0.444095 0.317708 0.987745
+v 0.425521 0.303862 0.989520
+v 0.406051 0.288137 0.989754
+v 0.434718 0.257719 0.912177
+v 0.450161 0.276556 0.915434
+v 0.463763 0.294563 0.919996
+v 0.474999 0.311049 0.925688
+v 0.483440 0.325378 0.932291
+v 0.488759 0.337002 0.939551
+v 0.490753 0.345472 0.947189
+v 0.489346 0.350464 0.954912
+v 0.484590 0.351785 0.962422
+v 0.476670 0.349386 0.969433
+v 0.465889 0.343357 0.975673
+v 0.452661 0.333931 0.980903
+v 0.437496 0.321471 0.984922
+v 0.420975 0.306454 0.987576
+v 0.403734 0.289458 0.988762
+v 0.431747 0.258324 0.911144
+v 0.444334 0.277743 0.913408
+v 0.455303 0.296287 0.917055
+v 0.464232 0.313242 0.921945
+v 0.470779 0.327958 0.927889
+v 0.474691 0.339868 0.934660
+v 0.475819 0.348515 0.941997
+v 0.474119 0.353566 0.949618
+v 0.469656 0.354828 0.957230
+v 0.462602 0.352252 0.964542
+v 0.453228 0.345937 0.971271
+v 0.441894 0.336125 0.977159
+v 0.429036 0.323194 0.981981
+v 0.415148 0.307641 0.985550
+v 0.400763 0.290063 0.987729
+v 0.428238 0.258190 0.910110
+v 0.437450 0.277480 0.911379
+v 0.445309 0.295905 0.914109
+v 0.451512 0.312756 0.918195
+v 0.455821 0.327386 0.923480
+v 0.458071 0.339233 0.929761
+v 0.458175 0.347841 0.936796
+v 0.456129 0.352879 0.944315
+v 0.452012 0.354154 0.952029
+v 0.445982 0.351617 0.959643
+v 0.438270 0.345365 0.966862
+v 0.429174 0.335639 0.973410
+v 0.419042 0.322812 0.979035
+v 0.408264 0.307378 0.983520
+v 0.397254 0.289929 0.986695
+v 0.424324 0.257321 0.909114
+v 0.429773 0.275777 0.909425
+v 0.434163 0.293433 0.911272
+v 0.437327 0.309610 0.914584
+v 0.439141 0.323686 0.919233
+v 0.439537 0.335121 0.925042
+v 0.438500 0.343476 0.931786
+v 0.436069 0.348429 0.939208
+v 0.432337 0.349789 0.947020
+v 0.427448 0.347505 0.954924
+v 0.421590 0.341665 0.962615
+v 0.414989 0.332492 0.969798
+v 0.407896 0.320340 0.976197
+v 0.400587 0.305675 0.981566
+v 0.393340 0.289061 0.985698
+v 0.420157 0.255752 0.908194
+v 0.421598 0.272699 0.907620
+v 0.422296 0.288964 0.908651
+v 0.422222 0.303923 0.911249
+v 0.421380 0.316999 0.915312
+v 0.419802 0.327691 0.920685
+v 0.417549 0.335588 0.927161
+v 0.414707 0.340386 0.934491
+v 0.411386 0.341901 0.942395
+v 0.407713 0.340075 0.950567
+v 0.403829 0.334978 0.958694
+v 0.399884 0.326805 0.966463
+v 0.396029 0.315872 0.973577
+v 0.392412 0.302597 0.979761
+v 0.389173 0.287492 0.984778
+v 0.386435 0.271136 0.988436
+v 0.415896 0.253543 0.907385
+v 0.413240 0.268365 0.906034
+v 0.410162 0.282672 0.906349
+v 0.406778 0.295914 0.908319
+v 0.403220 0.307582 0.911867
+v 0.399624 0.317228 0.916857
+v 0.396128 0.324480 0.923097
+v 0.392867 0.329061 0.930348
+v 0.389965 0.330793 0.938331
+v 0.387535 0.329612 0.946739
+v 0.385669 0.325561 0.955249
+v 0.384440 0.318797 0.963533
+v 0.383895 0.309580 0.971275
+v 0.384054 0.298263 0.978176
+v 0.384912 0.285282 0.983970
+v 0.411705 0.250778 0.906720
+v 0.405020 0.262941 0.904729
+v 0.398228 0.274798 0.904454
+v 0.391589 0.285892 0.905907
+v 0.385360 0.295797 0.909030
+v 0.379779 0.304133 0.913705
+v 0.375060 0.310579 0.919751
+v 0.371386 0.314887 0.926937
+v 0.368897 0.316892 0.934985
+v 0.367689 0.316517 0.943587
+v 0.367809 0.313776 0.952412
+v 0.369251 0.308775 0.961121
+v 0.371961 0.301705 0.969380
+v 0.375834 0.292839 0.976870
+v 0.380721 0.282517 0.983304
+v 0.407746 0.247563 0.906222
+v 0.397253 0.256636 0.903753
+v 0.386952 0.265644 0.903038
+v 0.377238 0.274242 0.904104
+v 0.368485 0.282098 0.906911
+v 0.361028 0.288911 0.911350
+v 0.355155 0.294419 0.917252
+v 0.351091 0.298411 0.924388
+v 0.348992 0.300732 0.932485
+v 0.348939 0.301295 0.941232
+v 0.350934 0.300077 0.950293
+v 0.354900 0.297124 0.959319
+v 0.360685 0.292552 0.967964
+v 0.368067 0.286534 0.975895
+v 0.376762 0.279303 0.982807
+v 0.404169 0.244023 0.905913
+v 0.390239 0.249692 0.903146
+v 0.376768 0.255563 0.902156
+v 0.364277 0.261410 0.902982
+v 0.353244 0.267010 0.905591
+v 0.344093 0.272146 0.909884
+v 0.337177 0.276621 0.915694
+v 0.332760 0.280264 0.922800
+v 0.331014 0.282935 0.930928
+v 0.332004 0.284530 0.939766
+v 0.335693 0.284988 0.948973
+v 0.341939 0.284293 0.958196
+v 0.350501 0.282470 0.967082
+v 0.361052 0.279590 0.975287
+v 0.373186 0.275763 0.982498
+v 0.401114 0.240293 0.905802
+v 0.384246 0.242375 0.902929
+v 0.368068 0.244941 0.901842
+v 0.353203 0.247891 0.902582
+v 0.340222 0.251113 0.905121
+v 0.329625 0.254482 0.909361
+v 0.321817 0.257870 0.915140
+v 0.317100 0.261145 0.922235
+v 0.315654 0.264183 0.930373
+v 0.317535 0.266866 0.939243
+v 0.322671 0.269092 0.948503
+v 0.330865 0.270774 0.957796
+v 0.341801 0.271848 0.966767
+v 0.355059 0.272273 0.975071
+v 0.370130 0.272033 0.982387
+v 0.398697 0.236517 0.905896
+v 0.379504 0.234968 0.903112
+v 0.361185 0.234187 0.902108
+v 0.344443 0.234203 0.902920
+v 0.329921 0.235018 0.905518
+v 0.318179 0.236599 0.909803
+v 0.309666 0.238885 0.915609
+v 0.304711 0.241788 0.922713
+v 0.303503 0.245198 0.930842
+v 0.306089 0.248983 0.939685
+v 0.312370 0.252997 0.948900
+v 0.322105 0.257086 0.958134
+v 0.334918 0.261094 0.967033
+v 0.350318 0.264866 0.975254
+v 0.367713 0.268256 0.982480
+v 0.397011 0.232839 0.906189
+v 0.376198 0.227754 0.903688
+v 0.356384 0.223713 0.902943
+v 0.338332 0.220874 0.903983
+v 0.322736 0.219344 0.906768
+v 0.310195 0.219183 0.911192
+v 0.301191 0.220396 0.917083
+v 0.296070 0.222937 0.924216
+v 0.295028 0.226709 0.932317
+v 0.298106 0.231567 0.941073
+v 0.305185 0.237323 0.950150
+v 0.315994 0.243757 0.959198
+v 0.330117 0.250621 0.967868
+v 0.347011 0.257652 0.975829
+v 0.366028 0.264579 0.982774
+v 0.396122 0.229402 0.906671
+v 0.374452 0.221011 0.904633
+v 0.353850 0.213924 0.904315
+v 0.335107 0.208414 0.905730
+v 0.318944 0.204693 0.908823
+v 0.305981 0.202903 0.913474
+v 0.296717 0.203114 0.919506
+v 0.291508 0.205317 0.926687
+v 0.290554 0.209427 0.934740
+v 0.293892 0.215287 0.943356
+v 0.301392 0.222672 0.952204
+v 0.312769 0.231297 0.960945
+v 0.327583 0.240831 0.969241
+v 0.345266 0.250908 0.976774
+v 0.365138 0.261141 0.983256
+v 0.418026 0.238775 0.910350
+v 0.396062 0.226336 0.907323
+v 0.374335 0.214998 0.905913
+v 0.353679 0.205194 0.906173
+v 0.334890 0.197304 0.908094
+v 0.318689 0.191628 0.911603
+v 0.305698 0.188387 0.916563
+v 0.296416 0.187703 0.922786
+v 0.291201 0.189604 0.930030
+v 0.290253 0.194016 0.938019
+v 0.293608 0.200771 0.946445
+v 0.301138 0.209607 0.954984
+v 0.312552 0.220186 0.963309
+v 0.327412 0.232102 0.971098
+v 0.345148 0.244895 0.978054
+v 0.365078 0.258076 0.983908
+v 0.396834 0.223761 0.908121
+v 0.375850 0.209946 0.907477
+v 0.355880 0.197860 0.908444
+v 0.337690 0.187969 0.910985
+v 0.321981 0.180652 0.915001
+v 0.309356 0.176190 0.920340
+v 0.300300 0.174755 0.926795
+v 0.295161 0.176403 0.934118
+v 0.294137 0.181069 0.942028
+v 0.297267 0.188574 0.950222
+v 0.304430 0.198631 0.958383
+v 0.315352 0.210852 0.966199
+v 0.329613 0.224767 0.973369
+v 0.346664 0.239843 0.979618
+v 0.365850 0.255500 0.984705
+v 0.345359 0.270175 0.883207
+v 0.325889 0.254450 0.883440
+v 0.307315 0.240604 0.885215
+v 0.290349 0.229170 0.888464
+v 0.275644 0.220586 0.893062
+v 0.263765 0.215183 0.898832
+v 0.255169 0.213169 0.905553
+v 0.250185 0.214621 0.912967
+v 0.249006 0.219483 0.920787
+v 0.251676 0.227568 0.928714
+v 0.258093 0.238565 0.936444
+v 0.268011 0.252052 0.943679
+v 0.281048 0.267511 0.950141
+v 0.296703 0.284348 0.955581
+v 0.314375 0.301915 0.959791
+v 0.347676 0.268854 0.884198
+v 0.330435 0.251858 0.885385
+v 0.313914 0.236841 0.888038
+v 0.298749 0.224381 0.892058
+v 0.285521 0.214955 0.897288
+v 0.274740 0.208926 0.903528
+v 0.266820 0.206527 0.910538
+v 0.262064 0.207848 0.918049
+v 0.260657 0.212840 0.925771
+v 0.262651 0.221310 0.933410
+v 0.267970 0.232934 0.940669
+v 0.276411 0.247263 0.947272
+v 0.287647 0.263749 0.952964
+v 0.301249 0.281756 0.957526
+v 0.316692 0.300593 0.960783
+v 0.350647 0.268249 0.885231
+v 0.336262 0.250671 0.887411
+v 0.322374 0.235118 0.890980
+v 0.309516 0.222187 0.895801
+v 0.298182 0.212375 0.901689
+v 0.288808 0.206060 0.908419
+v 0.281754 0.203484 0.915730
+v 0.277291 0.204746 0.923343
+v 0.275591 0.209797 0.930964
+v 0.276719 0.218444 0.938301
+v 0.280631 0.230354 0.945071
+v 0.287178 0.245070 0.951016
+v 0.296107 0.262025 0.955905
+v 0.307076 0.280569 0.959552
+v 0.319663 0.299988 0.961816
+v 0.354156 0.268383 0.886265
+v 0.343146 0.250934 0.889440
+v 0.332368 0.235499 0.893926
+v 0.322236 0.222673 0.899551
+v 0.313140 0.212947 0.906098
+v 0.305428 0.206695 0.913318
+v 0.299398 0.204158 0.920931
+v 0.295281 0.205433 0.928645
+v 0.293235 0.210471 0.936164
+v 0.293339 0.219079 0.943200
+v 0.295589 0.230926 0.949480
+v 0.299898 0.245556 0.954765
+v 0.306101 0.262407 0.958851
+v 0.313960 0.280832 0.961581
+v 0.323172 0.300122 0.962850
+v 0.358070 0.269251 0.887262
+v 0.350823 0.252637 0.891394
+v 0.343513 0.237972 0.896763
+v 0.336421 0.225820 0.903162
+v 0.329820 0.216647 0.910345
+v 0.323962 0.210807 0.918036
+v 0.319073 0.208523 0.925940
+v 0.315341 0.209883 0.933753
+v 0.312910 0.214836 0.941174
+v 0.311872 0.223191 0.947918
+v 0.312269 0.234626 0.953727
+v 0.314083 0.248702 0.958377
+v 0.317247 0.264879 0.961689
+v 0.321637 0.282535 0.963536
+v 0.327086 0.300991 0.963847
+v 0.362237 0.270820 0.888182
+v 0.358998 0.255715 0.893199
+v 0.355381 0.242440 0.899383
+v 0.351526 0.231507 0.906497
+v 0.347581 0.223334 0.914267
+v 0.343697 0.218237 0.922394
+v 0.340024 0.216411 0.930566
+v 0.336702 0.217926 0.938469
+v 0.333861 0.222724 0.945799
+v 0.331608 0.230621 0.952275
+v 0.330030 0.241313 0.957648
+v 0.329188 0.254389 0.961711
+v 0.329114 0.269347 0.964309
+v 0.329812 0.285613 0.965340
+v 0.331253 0.302560 0.964767
+v 0.366498 0.273030 0.888990
+v 0.367356 0.260049 0.894785
+v 0.367515 0.248732 0.901685
+v 0.366970 0.239515 0.909427
+v 0.365741 0.232751 0.917712
+v 0.363875 0.228700 0.926222
+v 0.361445 0.227519 0.934629
+v 0.358543 0.229251 0.942612
+v 0.355282 0.233832 0.949863
+v 0.351786 0.241084 0.956103
+v 0.348190 0.250730 0.961093
+v 0.344631 0.262398 0.964641
+v 0.341248 0.275640 0.966611
+v 0.338170 0.289947 0.966926
+v 0.335514 0.304769 0.965575
+v 0.370689 0.275795 0.889656
+v 0.375576 0.265473 0.896090
+v 0.379449 0.256607 0.903581
+v 0.382159 0.249537 0.911839
+v 0.383601 0.244536 0.920548
+v 0.383721 0.241795 0.929373
+v 0.382513 0.241420 0.937975
+v 0.380024 0.243425 0.946024
+v 0.376350 0.247733 0.953209
+v 0.371631 0.254179 0.959255
+v 0.366050 0.262515 0.963930
+v 0.359821 0.272420 0.967054
+v 0.353182 0.283514 0.968506
+v 0.346390 0.295371 0.968232
+v 0.339705 0.307534 0.966241
+v 0.374648 0.279009 0.890153
+v 0.383343 0.271778 0.897066
+v 0.390725 0.265760 0.904997
+v 0.396510 0.261188 0.913641
+v 0.400476 0.258235 0.922667
+v 0.402471 0.257017 0.931728
+v 0.402418 0.257580 0.940475
+v 0.400319 0.259901 0.948572
+v 0.396255 0.263893 0.955709
+v 0.390382 0.269401 0.961610
+v 0.382925 0.276214 0.966049
+v 0.374172 0.284070 0.968856
+v 0.364458 0.292668 0.969922
+v 0.354157 0.301676 0.969207
+v 0.343664 0.310749 0.966738
+v 0.378224 0.282549 0.890463
+v 0.390358 0.278722 0.897673
+v 0.400909 0.275842 0.905879
+v 0.409471 0.274019 0.914764
+v 0.415717 0.273324 0.923987
+v 0.419406 0.273782 0.933195
+v 0.420396 0.275377 0.942032
+v 0.418650 0.278048 0.950160
+v 0.414233 0.281691 0.957266
+v 0.407317 0.286166 0.963077
+v 0.398166 0.291302 0.967369
+v 0.387133 0.296902 0.969978
+v 0.374642 0.302749 0.970804
+v 0.361171 0.308620 0.969814
+v 0.347240 0.314289 0.967048
+v 0.381280 0.286279 0.890573
+v 0.396351 0.286039 0.897890
+v 0.409609 0.286464 0.906193
+v 0.420545 0.287538 0.915164
+v 0.428739 0.289220 0.924458
+v 0.433875 0.291446 0.933717
+v 0.435756 0.294129 0.942587
+v 0.434310 0.297167 0.950726
+v 0.429593 0.300442 0.957821
+v 0.421785 0.303830 0.963599
+v 0.411188 0.307199 0.967839
+v 0.398207 0.310421 0.970378
+v 0.383342 0.313371 0.971118
+v 0.367164 0.315937 0.970031
+v 0.350296 0.318019 0.967158
+v 0.383697 0.290056 0.890480
+v 0.401092 0.293446 0.897707
+v 0.416492 0.297218 0.905927
+v 0.429305 0.301226 0.914826
+v 0.439040 0.305315 0.924060
+v 0.445321 0.309329 0.933276
+v 0.447907 0.313114 0.942118
+v 0.446699 0.316524 0.950248
+v 0.441744 0.319427 0.957352
+v 0.433231 0.321713 0.963158
+v 0.421489 0.323294 0.967442
+v 0.406967 0.324109 0.970040
+v 0.390225 0.324125 0.970853
+v 0.371905 0.323344 0.969848
+v 0.352713 0.321795 0.967065
+v 0.385382 0.293733 0.890187
+v 0.404399 0.300660 0.897131
+v 0.421293 0.307691 0.905092
+v 0.435416 0.314555 0.913763
+v 0.446225 0.320989 0.922810
+v 0.453304 0.326745 0.931887
+v 0.456382 0.331603 0.940644
+v 0.455340 0.335375 0.948744
+v 0.450219 0.337916 0.955877
+v 0.441215 0.339129 0.961769
+v 0.428674 0.338968 0.966192
+v 0.413078 0.337438 0.968977
+v 0.395026 0.334599 0.970017
+v 0.375212 0.330558 0.969273
+v 0.354398 0.325473 0.966771
+v 0.386272 0.297171 0.889705
+v 0.406144 0.307403 0.896186
+v 0.423827 0.317481 0.903719
+v 0.438641 0.327015 0.912016
+v 0.450017 0.335640 0.920756
+v 0.457518 0.343025 0.929604
+v 0.460856 0.348885 0.938220
+v 0.459902 0.352995 0.946273
+v 0.454693 0.355198 0.953454
+v 0.445429 0.355409 0.959486
+v 0.432466 0.353619 0.964138
+v 0.416303 0.349898 0.967230
+v 0.397560 0.344388 0.968645
+v 0.376958 0.337301 0.968327
+v 0.355288 0.328910 0.966289
+v 0.386332 0.300236 0.889052
+v 0.406262 0.313417 0.894906
+v 0.423997 0.326210 0.901862
+v 0.438858 0.338126 0.909651
+v 0.450272 0.348705 0.917976
+v 0.457802 0.357541 0.926515
+v 0.461157 0.364296 0.934941
+v 0.460209 0.368708 0.942930
+v 0.454994 0.370609 0.950175
+v 0.445712 0.369925 0.956397
+v 0.432721 0.366684 0.961358
+v 0.416520 0.361008 0.964866
+v 0.397731 0.353118 0.966787
+v 0.377075 0.343314 0.967048
+v 0.355348 0.331976 0.965637
+v 0.385560 0.302812 0.888255
+v 0.404746 0.318469 0.893342
+v 0.421797 0.333545 0.899591
+v 0.436058 0.347460 0.906761
+v 0.446980 0.359681 0.914577
+v 0.454143 0.369738 0.922739
+v 0.457273 0.377243 0.930932
+v 0.456248 0.381909 0.938842
+v 0.451110 0.383557 0.946166
+v 0.442054 0.382122 0.952621
+v 0.429429 0.377660 0.957959
+v 0.413720 0.370343 0.961976
+v 0.395530 0.360452 0.964516
+v 0.375560 0.348366 0.965483
+v 0.354576 0.334551 0.964840
+v 0.383984 0.304798 0.887343
+v 0.401656 0.322365 0.891553
+v 0.417311 0.339202 0.896994
+v 0.430348 0.354661 0.903456
+v 0.440266 0.368148 0.910690
+v 0.446683 0.379146 0.918420
+v 0.449353 0.387230 0.926347
+v 0.448174 0.392092 0.934168
+v 0.443190 0.393544 0.941581
+v 0.434594 0.391530 0.948302
+v 0.422715 0.386127 0.954072
+v 0.408010 0.377544 0.958670
+v 0.391044 0.366109 0.961919
+v 0.372470 0.352263 0.963695
+v 0.353000 0.336538 0.963928
+v 0.381667 0.306120 0.886351
+v 0.397110 0.324957 0.889608
+v 0.410712 0.342964 0.894170
+v 0.421948 0.359450 0.899862
+v 0.430389 0.373779 0.906465
+v 0.435708 0.385403 0.913725
+v 0.437702 0.393873 0.921363
+v 0.436295 0.398865 0.929086
+v 0.431539 0.400186 0.936597
+v 0.423619 0.397787 0.943607
+v 0.412838 0.391758 0.949847
+v 0.399610 0.382333 0.955077
+v 0.384445 0.369872 0.959096
+v 0.367924 0.354855 0.961750
+v 0.350683 0.337859 0.962936
+v 0.378696 0.306725 0.885319
+v 0.391283 0.326144 0.887582
+v 0.402252 0.344688 0.891229
+v 0.411181 0.361643 0.896119
+v 0.417728 0.376359 0.902063
+v 0.421640 0.388269 0.908834
+v 0.422768 0.396916 0.916171
+v 0.421068 0.401967 0.923792
+v 0.416605 0.403229 0.931404
+v 0.409551 0.400653 0.938716
+v 0.400177 0.394338 0.945445
+v 0.388843 0.384526 0.951333
+v 0.375985 0.371595 0.956155
+v 0.362097 0.356042 0.959724
+v 0.347712 0.338464 0.961903
+v 0.375187 0.306591 0.884284
+v 0.384399 0.325881 0.885553
+v 0.392258 0.344306 0.888283
+v 0.398461 0.361158 0.892369
+v 0.402770 0.375788 0.897654
+v 0.405020 0.387634 0.903935
+v 0.405124 0.396242 0.910970
+v 0.403078 0.401280 0.918489
+v 0.398961 0.402555 0.926204
+v 0.392931 0.400018 0.933817
+v 0.385219 0.393766 0.941036
+v 0.376123 0.384040 0.947584
+v 0.365991 0.371214 0.953209
+v 0.355213 0.355779 0.957695
+v 0.344203 0.338330 0.960869
+v 0.371273 0.305723 0.883288
+v 0.376722 0.324178 0.883599
+v 0.381112 0.341834 0.885446
+v 0.384276 0.358011 0.888758
+v 0.386090 0.372087 0.893407
+v 0.386487 0.383522 0.899216
+v 0.385449 0.391877 0.905961
+v 0.383018 0.396830 0.913382
+v 0.379286 0.398190 0.921194
+v 0.374397 0.395907 0.929098
+v 0.368539 0.390066 0.936789
+v 0.361938 0.380893 0.943972
+v 0.354845 0.368741 0.950371
+v 0.347536 0.354076 0.955740
+v 0.340289 0.337462 0.959872
+v 0.367106 0.304154 0.882368
+v 0.368547 0.321101 0.881794
+v 0.369245 0.337366 0.882826
+v 0.369171 0.352324 0.885423
+v 0.368329 0.365400 0.889486
+v 0.366751 0.376092 0.894859
+v 0.364498 0.383989 0.901335
+v 0.361656 0.388787 0.908666
+v 0.358335 0.390302 0.916569
+v 0.354662 0.388476 0.924741
+v 0.350778 0.383379 0.932868
+v 0.346833 0.375207 0.940637
+v 0.342978 0.364273 0.947751
+v 0.339361 0.350998 0.953935
+v 0.336122 0.335893 0.958952
+v 0.333384 0.319537 0.962610
+v 0.362845 0.301944 0.881559
+v 0.360189 0.316766 0.880208
+v 0.357111 0.331074 0.880524
+v 0.353727 0.344315 0.882493
+v 0.350169 0.355983 0.886041
+v 0.346573 0.365629 0.891031
+v 0.343077 0.372881 0.897271
+v 0.339816 0.377462 0.904522
+v 0.336914 0.379194 0.912505
+v 0.334484 0.378013 0.920913
+v 0.332618 0.373962 0.929423
+v 0.331389 0.367198 0.937708
+v 0.330844 0.357981 0.945449
+v 0.331003 0.346664 0.952350
+v 0.331861 0.333683 0.958144
+v 0.358654 0.299179 0.880894
+v 0.351969 0.311343 0.878903
+v 0.345177 0.323199 0.878628
+v 0.338538 0.334293 0.880081
+v 0.332309 0.344199 0.883204
+v 0.326728 0.352534 0.887879
+v 0.322009 0.358980 0.893925
+v 0.318335 0.363288 0.901111
+v 0.315846 0.365293 0.909159
+v 0.314638 0.364918 0.917761
+v 0.314758 0.362177 0.926586
+v 0.316200 0.357176 0.935295
+v 0.318910 0.350107 0.943554
+v 0.322783 0.341240 0.951044
+v 0.327670 0.330918 0.957479
+v 0.354695 0.295965 0.880396
+v 0.344202 0.305037 0.877927
+v 0.333901 0.314045 0.877212
+v 0.324187 0.322643 0.878279
+v 0.315434 0.330499 0.881085
+v 0.307977 0.337312 0.885525
+v 0.302104 0.342820 0.891426
+v 0.298040 0.346812 0.898562
+v 0.295941 0.349134 0.906659
+v 0.295888 0.349696 0.915406
+v 0.297883 0.348478 0.924467
+v 0.301849 0.345526 0.933493
+v 0.307634 0.340953 0.942138
+v 0.315016 0.334935 0.950069
+v 0.323711 0.327704 0.956981
+v 0.351119 0.292424 0.880087
+v 0.337188 0.298093 0.877320
+v 0.323717 0.303964 0.876330
+v 0.311226 0.309811 0.877156
+v 0.300193 0.315411 0.879765
+v 0.291042 0.320547 0.884058
+v 0.284126 0.325022 0.889869
+v 0.279709 0.328665 0.896974
+v 0.277963 0.331336 0.905102
+v 0.278953 0.332931 0.913940
+v 0.282642 0.333390 0.923147
+v 0.288888 0.332694 0.932371
+v 0.297450 0.330871 0.941256
+v 0.308001 0.327991 0.949461
+v 0.320135 0.324164 0.956672
+v 0.348063 0.288694 0.879976
+v 0.331195 0.290776 0.877103
+v 0.315017 0.293342 0.876016
+v 0.300152 0.296292 0.876756
+v 0.287171 0.299514 0.879295
+v 0.276574 0.302883 0.883535
+v 0.268766 0.306271 0.889314
+v 0.264049 0.309546 0.896409
+v 0.262603 0.312584 0.904547
+v 0.264484 0.315267 0.913417
+v 0.269620 0.317493 0.922677
+v 0.277814 0.319175 0.931971
+v 0.288750 0.320249 0.940942
+v 0.302008 0.320674 0.949245
+v 0.317079 0.320434 0.956561
+v 0.345646 0.284918 0.880070
+v 0.326453 0.283369 0.877286
+v 0.308134 0.282588 0.876282
+v 0.291392 0.282605 0.877094
+v 0.276870 0.283419 0.879692
+v 0.265128 0.285000 0.883977
+v 0.256615 0.287286 0.889783
+v 0.251660 0.290189 0.896887
+v 0.250452 0.293599 0.905016
+v 0.253038 0.297384 0.913859
+v 0.259319 0.301398 0.923074
+v 0.269054 0.305487 0.932309
+v 0.281867 0.309495 0.941207
+v 0.297267 0.313267 0.949428
+v 0.314662 0.316657 0.956654
+v 0.343960 0.281240 0.880363
+v 0.323147 0.276155 0.877862
+v 0.303333 0.272115 0.877117
+v 0.285281 0.269275 0.878157
+v 0.269685 0.267745 0.880942
+v 0.257144 0.267584 0.885366
+v 0.248140 0.268797 0.891257
+v 0.243019 0.271339 0.898390
+v 0.241977 0.275110 0.906491
+v 0.245055 0.279968 0.915248
+v 0.252134 0.285724 0.924324
+v 0.262943 0.292158 0.933372
+v 0.277066 0.299022 0.942042
+v 0.293960 0.306053 0.950003
+v 0.312976 0.312980 0.956948
+v 0.343071 0.277803 0.880845
+v 0.321401 0.269412 0.878807
+v 0.300799 0.262325 0.878490
+v 0.282056 0.256815 0.879904
+v 0.265893 0.253094 0.882997
+v 0.252930 0.251305 0.887648
+v 0.243666 0.251515 0.893680
+v 0.238457 0.253718 0.900861
+v 0.237503 0.257829 0.908914
+v 0.240840 0.263689 0.917530
+v 0.248342 0.271073 0.926379
+v 0.259718 0.279698 0.935119
+v 0.274532 0.289233 0.943415
+v 0.292215 0.299310 0.950949
+v 0.312087 0.309542 0.957430
+v 0.364975 0.287176 0.884525
+v 0.343011 0.274737 0.881497
+v 0.321284 0.263399 0.880087
+v 0.300628 0.253596 0.880347
+v 0.281839 0.245705 0.882268
+v 0.265638 0.240029 0.885777
+v 0.252647 0.236788 0.890737
+v 0.243365 0.236104 0.896960
+v 0.238150 0.238005 0.904204
+v 0.237202 0.242418 0.912193
+v 0.240557 0.249172 0.920619
+v 0.248087 0.258008 0.929159
+v 0.259501 0.268588 0.937483
+v 0.274361 0.280503 0.945273
+v 0.292097 0.293297 0.952228
+v 0.312027 0.306477 0.958082
+v 0.343783 0.272162 0.882295
+v 0.322799 0.258347 0.881651
+v 0.302829 0.246261 0.882618
+v 0.284639 0.236370 0.885159
+v 0.268930 0.229053 0.889175
+v 0.256305 0.224591 0.894514
+v 0.247249 0.223156 0.900969
+v 0.242110 0.224804 0.908292
+v 0.241086 0.229470 0.916202
+v 0.244216 0.236975 0.924396
+v 0.251379 0.247032 0.932557
+v 0.262301 0.259253 0.940373
+v 0.276562 0.273169 0.947544
+v 0.293613 0.288245 0.953792
+v 0.312799 0.303901 0.958880
+vn -0.457839 -0.781518 -0.423750
+vn -0.223029 -0.673574 -0.704642
+vn -0.075198 -0.813440 -0.576739
+vn 0.188421 -0.315073 -0.930143
+vn 0.237678 -0.259987 -0.935881
+vn 0.254982 -0.277749 -0.926176
+vn -0.419538 0.028382 0.907285
+vn -0.475234 -0.052797 0.878231
+vn -0.363811 -0.022614 0.931181
+vn -0.664296 -0.746788 0.031007
+vn -0.251381 -0.932798 -0.258187
+vn 0.129276 -0.377697 -0.916837
+vn 0.222175 -0.351207 -0.909513
+vn -0.371807 0.093417 0.923582
+vn -0.336650 0.059999 0.939695
+vn -0.701468 -0.541581 0.463240
+vn -0.416791 -0.889676 0.186377
+vn 0.052278 -0.453749 -0.889584
+vn 0.181555 -0.434950 -0.881954
+vn -0.328257 0.149602 0.932646
+vn -0.310587 0.132694 0.941221
+vn -0.627064 -0.321024 0.709708
+vn -0.460280 -0.434584 0.774102
+vn -0.057039 -0.551073 -0.832484
+vn 0.127140 -0.535997 -0.834559
+vn -0.543626 -0.162542 0.823389
+vn -0.426374 -0.254494 0.867977
+vn 0.047731 -0.662618 -0.747398
+vn -0.393414 -0.123234 0.911039
+vn 0.075259 -0.892026 -0.445631
+vn 0.273049 -0.291879 -0.916623
+vn -0.306375 -0.062563 0.949828
+vn -0.049165 -0.992737 -0.109500
+vn 0.257790 -0.380444 -0.888119
+vn -0.300272 0.033357 0.953246
+vn -0.476608 -0.671621 0.567186
+vn -0.265786 -0.729972 0.629627
+vn 0.236885 -0.480453 -0.844386
+vn -0.292428 0.119358 0.948790
+vn -0.299600 -0.502945 0.810694
+vn 0.206091 -0.598498 -0.774132
+vn -0.309793 -0.318613 0.895810
+vn 0.157018 -0.739464 -0.654622
+vn -0.310251 -0.176244 0.934141
+vn -0.201758 -0.357830 0.911710
+vn 0.261330 -0.782128 -0.565630
+vn -0.230537 -0.212165 0.949614
+vn 0.211371 -0.920133 -0.329600
+vn 0.290933 -0.302255 -0.907712
+vn -0.250252 -0.091128 0.963866
+vn -0.182501 -0.935881 0.301279
+vn 0.121921 -0.992492 0.006439
+vn 0.293588 -0.401959 -0.867275
+vn -0.264290 0.013825 0.964324
+vn -0.090060 -0.742607 0.663594
+vn 0.292306 -0.512894 -0.807123
+vn -0.274606 0.109653 0.955260
+vn -0.157903 -0.536241 0.829127
+vn 0.283914 -0.639729 -0.714194
+vn -0.257668 0.103580 0.960662
+vn -0.037233 -0.544359 0.838008
+vn 0.357402 -0.660604 -0.660146
+vn -0.105411 -0.376049 0.920560
+vn 0.356365 -0.796319 -0.488723
+vn -0.157109 -0.232185 0.959868
+vn 0.328745 -0.914212 -0.236793
+vn 0.308145 -0.308756 -0.899808
+vn -0.197333 -0.108432 0.974303
+vn 0.008362 -0.926206 0.376843
+vn 0.260598 -0.961241 0.089969
+vn 0.328257 -0.415357 -0.848323
+vn -0.230018 0.001556 0.973174
+vn 0.051912 -0.729331 0.682150
+vn 0.345622 -0.531938 -0.773003
+vn 0.360698 -0.420545 -0.832453
+vn -0.198431 -0.003418 0.980102
+vn 0.158483 -0.891140 0.425092
+vn 0.167791 -0.700797 0.693319
+vn 0.395276 -0.537950 -0.744530
+vn -0.242073 0.101138 0.964965
+vn 0.064638 -0.534104 0.842921
+vn 0.424818 -0.663442 -0.615925
+vn -0.021363 -0.376843 0.926023
+vn 0.441206 -0.788537 -0.428358
+vn -0.091342 -0.237709 0.967009
+vn 0.429548 -0.887173 -0.168432
+vn 0.324137 -0.311350 -0.893277
+vn -0.149113 -0.114780 0.982116
+vn 0.374584 -0.915433 0.147099
+vn 0.517838 -0.846583 -0.122929
+vn 0.338359 -0.310068 -0.888424
+vn -0.106632 -0.110660 0.988098
+vn 0.279061 -0.844997 0.456160
+vn 0.472060 -0.862178 0.183752
+vn 0.389935 -0.417707 -0.820612
+vn -0.170385 -0.001251 0.985351
+vn 0.264748 -0.661702 0.701437
+vn 0.440077 -0.531754 -0.723563
+vn -0.228248 0.102268 0.968200
+vn 0.151006 -0.509445 0.847133
+vn 0.485336 -0.650594 -0.584033
+vn 0.050935 -0.362682 0.930509
+vn 0.516709 -0.764000 -0.386303
+vn -0.033998 -0.229957 0.972594
+vn 0.112369 -0.335002 0.935453
+vn 0.584063 -0.725913 -0.363140
+vn 0.014618 -0.209815 0.977599
+vn 0.597247 -0.795984 -0.098361
+vn 0.350505 -0.305155 -0.885433
+vn -0.070589 -0.096500 0.992798
+vn 0.380108 -0.792871 0.476272
+vn 0.559313 -0.803491 0.203864
+vn 0.415113 -0.407239 -0.813501
+vn -0.146611 0.007843 0.989135
+vn 0.348430 -0.613514 0.708609
+vn 0.479049 -0.514359 -0.711264
+vn -0.216559 0.106845 0.970397
+vn 0.224677 -0.472274 0.852321
+vn 0.538652 -0.624134 -0.565935
+vn -0.127567 0.023591 0.991516
+vn 0.287759 -0.422712 0.859340
+vn 0.643910 -0.675680 -0.358867
+vn 0.163396 -0.294351 0.941618
+vn 0.670370 -0.736045 -0.093600
+vn 0.054231 -0.177770 0.982543
+vn 0.640919 -0.738456 0.209418
+vn 0.435621 -0.389691 -0.811365
+vn 0.468917 -0.735588 0.488845
+vn 0.550737 -0.671651 0.495499
+vn 0.511429 -0.486648 -0.708213
+vn -0.041597 -0.072756 0.996460
+vn 0.422803 -0.555620 0.715873
+vn 0.584277 -0.585253 -0.562151
+vn -0.020203 -0.039766 0.998993
+vn 0.490616 -0.485641 0.723472
+vn 0.621326 -0.534745 -0.572680
+vn -0.207160 0.114658 0.971526
+vn -0.113773 0.045656 0.992431
+vn 0.695944 -0.613361 -0.373333
+vn 0.341441 -0.359630 0.868343
+vn 0.738456 -0.665487 -0.108493
+vn 0.204230 -0.240364 0.948943
+vn 0.720023 -0.664296 0.200598
+vn 0.360271 -0.296823 -0.884335
+vn 0.450880 -0.365551 -0.814264
+vn 0.084384 -0.134068 0.987365
+vn 0.629322 -0.597919 0.496384
+vn 0.536363 -0.449324 -0.714408
+vn 0.367504 -0.285287 -0.885159
+vn 0.460250 -0.335429 -0.821955
+vn 0.104526 -0.078646 0.991394
+vn 0.707297 -0.509049 0.490463
+vn 0.552690 -0.403119 -0.729362
+vn -0.006989 0.002045 0.999969
+vn 0.648244 -0.472793 -0.596789
+vn -0.200323 0.125614 0.971618
+vn -0.105625 0.073611 0.991668
+vn 0.553362 -0.399365 0.730918
+vn 0.738609 -0.537919 -0.406262
+vn 0.385968 -0.280496 0.878811
+vn 0.800958 -0.581164 -0.143803
+vn 0.234352 -0.172124 0.956786
+vn 0.798212 -0.576128 0.175756
+vn 0.854823 -0.478378 -0.201025
+vn 0.252510 -0.088015 0.963561
+vn 0.874722 -0.466475 0.131260
+vn 0.371868 -0.270699 -0.887906
+vn 0.463027 -0.300119 -0.833949
+vn 0.113620 -0.011383 0.993439
+vn 0.785638 -0.396802 0.474624
+vn 0.559221 -0.348979 -0.751946
+vn -0.002594 0.052187 0.998627
+vn 0.662862 -0.399701 -0.633106
+vn -0.196204 0.139500 0.970580
+vn -0.103458 0.106906 0.988861
+vn 0.611103 -0.290201 0.736412
+vn 0.768639 -0.447645 -0.456893
+vn 0.420148 -0.181494 0.889096
+vn 0.660878 -0.148473 0.735649
+vn 0.780847 -0.341227 -0.523240
+vn 0.440870 -0.057497 0.895688
+vn 0.892788 -0.351787 -0.281289
+vn 0.256417 0.013520 0.966460
+vn 0.943632 -0.325144 0.061708
+vn 0.373089 -0.253456 -0.892483
+vn 0.458846 -0.260781 -0.849361
+vn 0.110446 0.067568 0.991577
+vn 0.861446 -0.248756 0.442701
+vn 0.554765 -0.288247 -0.780450
+vn -0.007538 0.109897 0.993896
+vn 0.662343 -0.316202 -0.679159
+vn -0.195044 0.156041 0.968291
+vn -0.107578 0.144688 0.983581
+vn -0.022462 0.173925 0.984497
+vn 0.693655 0.037599 0.719291
+vn 0.644032 -0.224311 -0.731346
+vn -0.196966 0.174841 0.964660
+vn -0.118107 0.186041 0.975402
+vn 0.768395 -0.219398 -0.601154
+vn 0.441908 0.096377 0.891842
+vn 0.902219 -0.197851 -0.383190
+vn 0.242653 0.133396 0.960875
+vn 0.989196 -0.141240 -0.038545
+vn 0.370983 -0.234107 -0.898618
+vn 0.447462 -0.218635 -0.867153
+vn 0.093448 0.157414 0.983093
+vn 0.921995 -0.049165 0.384014
+vn 0.538438 -0.222785 -0.812677
+vn 0.365520 -0.213202 -0.906034
+vn 0.428846 -0.175268 -0.886196
+vn 0.061007 0.255684 0.964812
+vn 0.935392 0.209876 0.284555
+vn 0.509842 -0.155156 -0.846126
+vn -0.047792 0.242317 0.968993
+vn 0.688955 0.274575 0.670766
+vn 0.606037 -0.127842 -0.785089
+vn -0.202094 0.195410 0.959655
+vn -0.135166 0.229621 0.963836
+vn 0.724845 -0.087039 -0.683370
+vn 0.412915 0.281045 0.866298
+vn 0.866146 -0.020386 -0.499344
+vn 0.206793 0.269601 0.940489
+vn 0.981506 0.086917 -0.170507
+vn 0.771966 0.162420 -0.614521
+vn 0.144810 0.414136 0.898587
+vn 0.886258 0.333201 -0.321696
+vn 0.356548 -0.191351 -0.914457
+vn 0.403302 -0.132633 -0.905393
+vn 0.012055 0.357280 0.933897
+vn 0.854671 0.500107 0.139195
+vn 0.469527 -0.088870 -0.878414
+vn -0.083712 0.311838 0.946410
+vn 0.615253 0.542741 0.571703
+vn 0.548509 -0.032929 -0.835475
+vn -0.210547 0.217200 0.953124
+vn -0.158818 0.273598 0.948637
+vn 0.647847 0.045106 -0.760430
+vn 0.341319 0.484207 0.805597
+vn 0.223029 0.673574 0.704642
+vn 0.543626 0.162572 -0.823389
+vn 0.057039 0.551073 0.832484
+vn 0.627064 0.321024 -0.709708
+vn -0.052278 0.453749 0.889584
+vn 0.701468 0.541581 -0.463240
+vn 0.344005 -0.169622 -0.923490
+vn 0.328257 -0.149602 -0.932646
+vn -0.129276 0.377697 0.916837
+vn 0.664296 0.746788 -0.031007
+vn 0.419538 -0.028382 -0.907254
+vn -0.188421 0.315073 0.930143
+vn 0.457839 0.781518 0.423750
+vn 0.475234 0.052797 -0.878231
+vn -0.222480 0.239265 0.945097
+vn -0.237678 0.259987 0.935881
+vn -0.222175 0.351238 0.909513
+vn 0.251381 0.932798 0.258187
+vn 0.363811 0.022614 -0.931181
+vn -0.254982 0.277718 0.926176
+vn 0.075198 0.813440 0.576739
+vn 0.393414 0.123234 -0.911039
+vn -0.047731 0.662618 0.747398
+vn 0.426374 0.254494 -0.867977
+vn -0.127140 0.535997 0.834559
+vn 0.460280 0.434584 -0.774102
+vn 0.371807 -0.093417 -0.923582
+vn 0.310587 -0.132664 -0.941221
+vn -0.181555 0.434950 0.881954
+vn 0.416791 0.889676 -0.186377
+vn 0.336650 -0.059999 -0.939695
+vn -0.236885 0.480453 0.844386
+vn 0.476608 0.671621 -0.567186
+vn 0.265786 0.729972 -0.629658
+vn 0.300241 -0.033357 -0.953246
+vn -0.257790 0.380444 0.888119
+vn 0.049165 0.992737 0.109531
+vn 0.306406 0.062563 -0.949828
+vn -0.273019 0.291879 0.916623
+vn -0.075259 0.892026 0.445631
+vn 0.310221 0.176244 -0.934141
+vn -0.157018 0.739433 0.654622
+vn 0.309793 0.318613 -0.895810
+vn -0.206091 0.598498 0.774132
+vn 0.299600 0.502945 -0.810694
+vn 0.292428 -0.119358 -0.948790
+vn -0.283914 0.639729 0.714225
+vn 0.157903 0.536241 -0.829127
+vn 0.274606 -0.109653 -0.955260
+vn -0.292306 0.512894 0.807123
+vn 0.182501 0.935881 -0.301248
+vn 0.090060 0.742607 -0.663594
+vn 0.264290 -0.013825 -0.964324
+vn -0.293588 0.401959 0.867306
+vn -0.121921 0.992492 -0.006439
+vn 0.250252 0.091128 -0.963866
+vn -0.290963 0.302255 0.907712
+vn -0.211371 0.920133 0.329600
+vn 0.230537 0.212165 -0.949614
+vn -0.261330 0.782128 0.565630
+vn 0.201758 0.357799 -0.911710
+vn 0.157109 0.232185 -0.959868
+vn -0.356334 0.796319 0.488723
+vn 0.105411 0.376049 -0.920560
+vn -0.357402 0.660604 0.660146
+vn 0.037202 0.544359 -0.838008
+vn 0.257637 -0.103580 -0.960662
+vn -0.345653 0.531938 0.773003
+vn -0.008362 0.926206 -0.376843
+vn -0.051943 0.729331 -0.682150
+vn 0.230018 -0.001556 -0.973174
+vn -0.328257 0.415357 0.848323
+vn -0.260598 0.961241 -0.089969
+vn 0.197333 0.108432 -0.974303
+vn -0.308176 0.308756 0.899808
+vn -0.328745 0.914212 0.236793
+vn -0.158483 0.891140 -0.425092
+vn -0.374584 0.915433 -0.147099
+vn 0.149144 0.114780 -0.982116
+vn -0.324137 0.311350 0.893277
+vn -0.429548 0.887173 0.168432
+vn 0.091342 0.237709 -0.967009
+vn -0.441206 0.788568 0.428327
+vn 0.021363 0.376843 -0.926023
+vn -0.424818 0.663442 0.615894
+vn -0.064638 0.534104 -0.842921
+vn 0.242073 -0.101138 -0.964965
+vn -0.395276 0.537950 0.744530
+vn -0.167791 0.700797 -0.693319
+vn 0.198431 0.003418 -0.980102
+vn -0.360698 0.420545 0.832453
+vn -0.440077 0.531754 0.723563
+vn -0.279061 0.844997 -0.456160
+vn -0.264748 0.661702 -0.701437
+vn 0.170385 0.001251 -0.985351
+vn -0.389935 0.417707 0.820643
+vn -0.472060 0.862178 -0.183752
+vn 0.106632 0.110660 -0.988098
+vn -0.338359 0.310068 0.888424
+vn -0.517808 0.846583 0.122929
+vn 0.033998 0.229957 -0.972594
+vn -0.516709 0.764000 0.386303
+vn -0.050935 0.362682 -0.930509
+vn -0.485336 0.650594 0.584033
+vn -0.151006 0.509445 -0.847133
+vn 0.228248 -0.102268 -0.968200
+vn -0.538652 0.624134 0.565935
+vn -0.224677 0.472274 -0.852321
+vn 0.216559 -0.106845 -0.970397
+vn -0.479049 0.514359 0.711264
+vn -0.380108 0.792871 -0.476272
+vn -0.348430 0.613514 -0.708609
+vn 0.146611 -0.007843 -0.989135
+vn -0.415113 0.407239 0.813501
+vn -0.559313 0.803491 -0.203833
+vn 0.070589 0.096500 -0.992798
+vn -0.350505 0.305155 0.885433
+vn -0.597247 0.795984 0.098361
+vn -0.014618 0.209815 -0.977599
+vn -0.584063 0.725913 0.363140
+vn -0.112369 0.335002 -0.935453
+vn -0.054231 0.177770 -0.982543
+vn -0.670370 0.736045 0.093600
+vn -0.163396 0.294351 -0.941618
+vn -0.643910 0.675680 0.358867
+vn -0.287759 0.422712 -0.859340
+vn 0.127598 -0.023591 -0.991516
+vn -0.584277 0.585253 0.562151
+vn -0.468947 0.735588 -0.488845
+vn -0.422803 0.555620 -0.715873
+vn 0.041597 0.072756 -0.996460
+vn -0.511429 0.486648 0.708213
+vn -0.550737 0.671651 -0.495499
+vn -0.435621 0.389691 0.811365
+vn -0.640919 0.738456 -0.209418
+vn -0.629322 0.597919 -0.496384
+vn -0.084384 0.134068 -0.987365
+vn -0.360271 0.296823 0.884335
+vn -0.450880 0.365551 0.814264
+vn -0.720023 0.664296 -0.200598
+vn -0.204230 0.240364 -0.948943
+vn -0.738456 0.665487 0.108493
+vn -0.341441 0.359630 -0.868343
+vn -0.695944 0.613361 0.373333
+vn -0.490616 0.485641 -0.723472
+vn 0.207160 -0.114658 -0.971557
+vn 0.113773 -0.045656 -0.992431
+vn -0.621326 0.534745 0.572680
+vn 0.020203 0.039766 -0.998993
+vn -0.536363 0.449324 0.714408
+vn -0.648244 0.472793 0.596789
+vn -0.707297 0.509049 -0.490463
+vn 0.007019 -0.002045 -0.999969
+vn -0.552690 0.403119 0.729362
+vn -0.104495 0.078646 -0.991394
+vn -0.367504 0.285287 0.885159
+vn -0.460219 0.335429 0.821955
+vn -0.798212 0.576098 -0.175756
+vn -0.234352 0.172124 -0.956786
+vn -0.800958 0.581164 0.143803
+vn -0.385968 0.280496 -0.878811
+vn -0.738609 0.537919 0.406262
+vn -0.553392 0.399365 -0.730888
+vn 0.200323 -0.125614 -0.971618
+vn 0.105625 -0.073641 -0.991668
+vn -0.768639 0.447645 0.456893
+vn -0.611103 0.290201 -0.736412
+vn 0.196204 -0.139500 -0.970580
+vn 0.103458 -0.106906 -0.988861
+vn -0.662862 0.399701 0.633106
+vn -0.785638 0.396802 -0.474593
+vn 0.002594 -0.052187 -0.998627
+vn -0.559221 0.348979 0.751946
+vn -0.113620 0.011383 -0.993439
+vn -0.371868 0.270699 0.887906
+vn -0.463027 0.300119 0.833949
+vn -0.874722 0.466475 -0.131260
+vn -0.252510 0.088015 -0.963561
+vn -0.854793 0.478378 0.201025
+vn -0.420179 0.181463 -0.889096
+vn -0.892788 0.351787 0.281289
+vn -0.440870 0.057497 -0.895688
+vn -0.780847 0.341227 0.523240
+vn -0.660878 0.148442 -0.735649
+vn 0.195044 -0.156041 -0.968291
+vn 0.107578 -0.144688 -0.983581
+vn -0.662374 0.316202 0.679159
+vn -0.861446 0.248756 -0.442701
+vn 0.007538 -0.109897 -0.993896
+vn -0.554765 0.288247 0.780450
+vn -0.110446 -0.067598 -0.991577
+vn -0.373089 0.253456 0.892483
+vn -0.458846 0.260781 0.849361
+vn -0.943632 0.325144 -0.061708
+vn -0.256417 -0.013520 -0.966460
+vn -0.093448 -0.157414 -0.983093
+vn -0.371014 0.234107 0.898618
+vn -0.447462 0.218635 0.867153
+vn -0.989196 0.141240 0.038575
+vn -0.242653 -0.133396 -0.960875
+vn -0.902219 0.197851 0.383190
+vn -0.441908 -0.096377 -0.891842
+vn -0.768395 0.219398 0.601154
+vn -0.693655 -0.037599 -0.719291
+vn 0.196966 -0.174841 -0.964660
+vn 0.118107 -0.186041 -0.975402
+vn -0.644032 0.224311 0.731346
+vn 0.022462 -0.173925 -0.984497
+vn -0.538408 0.222785 0.812677
+vn -0.921995 0.049165 -0.384014
+vn -0.688955 -0.274575 -0.670766
+vn 0.047792 -0.242317 -0.968993
+vn -0.509842 0.155156 0.846126
+vn -0.935392 -0.209876 -0.284555
+vn -0.061007 -0.255684 -0.964812
+vn -0.365520 0.213202 0.906034
+vn -0.428877 0.175268 0.886196
+vn -0.981506 -0.086917 0.170507
+vn -0.206824 -0.269601 -0.940489
+vn -0.866146 0.020386 0.499344
+vn -0.412946 -0.281045 -0.866298
+vn -0.724845 0.087039 0.683370
+vn 0.202094 -0.195410 -0.959655
+vn 0.135166 -0.229621 -0.963836
+vn -0.606037 0.127842 0.785089
+vn -0.647816 -0.045106 0.760430
+vn -0.615253 -0.542711 -0.571703
+vn 0.210547 -0.217200 -0.953124
+vn 0.158788 -0.273598 -0.948637
+vn -0.548509 0.032929 0.835475
+vn 0.083712 -0.311838 -0.946410
+vn -0.469527 0.088870 0.878414
+vn -0.854671 -0.500107 -0.139195
+vn -0.012055 -0.357280 -0.933897
+vn -0.356548 0.191382 0.914457
+vn -0.403302 0.132633 0.905393
+vn -0.886258 -0.333201 0.321696
+vn -0.144810 -0.414136 -0.898587
+vn -0.771966 -0.162420 0.614521
+vn -0.341319 -0.484207 -0.805597
+vn -0.284280 0.205390 0.936460
+vn 0.284280 -0.205390 -0.936460
+vn -0.344005 0.169622 0.923490
+vn 0.222480 -0.239265 -0.945097
+vn -0.223060 -0.673574 -0.704642
+vn 0.254982 -0.277718 -0.926176
+vn -0.419538 0.028382 0.907254
+vn 0.222175 -0.351207 -0.909543
+vn 0.181555 -0.434950 -0.881924
+vn -0.328288 0.149602 0.932646
+vn -0.310617 0.132664 0.941221
+vn -0.543626 -0.162572 0.823389
+vn 0.273049 -0.291849 -0.916623
+vn -0.306406 -0.062563 0.949828
+vn -0.300241 0.033357 0.953246
+vn 0.157018 -0.739433 -0.654622
+vn -0.310221 -0.176244 0.934141
+vn -0.201758 -0.357799 0.911710
+vn -0.230537 -0.212165 0.949644
+vn 0.290994 -0.302255 -0.907712
+vn -0.182501 -0.935881 0.301248
+vn 0.293588 -0.401959 -0.867306
+vn -0.274575 0.109653 0.955260
+vn -0.157872 -0.536241 0.829127
+vn 0.283914 -0.639729 -0.714225
+vn -0.037202 -0.544359 0.838008
+vn -0.105441 -0.376049 0.920560
+vn 0.308176 -0.308756 -0.899808
+vn 0.051943 -0.729331 0.682150
+vn 0.345653 -0.531938 -0.773003
+vn 0.395306 -0.537919 -0.744530
+vn -0.242103 0.101138 0.964934
+vn 0.441206 -0.788568 -0.428358
+vn -0.149144 -0.114780 0.982116
+vn -0.228278 0.102268 0.968200
+vn 0.112339 -0.335002 0.935453
+vn -0.127598 0.023591 0.991516
+vn 0.468947 -0.735588 0.488845
+vn 0.695944 -0.613361 -0.373363
+vn 0.341472 -0.359630 0.868343
+vn 0.629322 -0.597919 0.496414
+vn 0.104495 -0.078646 0.991394
+vn -0.007019 0.002045 0.999969
+vn 0.553392 -0.399365 0.730918
+vn 0.800958 -0.581133 -0.143803
+vn 0.798212 -0.576098 0.175756
+vn 0.785638 -0.396802 0.474593
+vn -0.002564 0.052187 0.998627
+vn 0.420148 -0.181463 0.889096
+vn 0.660878 -0.148442 0.735649
+vn 0.780847 -0.341227 -0.523270
+vn 0.371014 -0.234107 -0.898618
+vn 0.538408 -0.222785 -0.812677
+vn 0.365520 -0.213172 -0.906034
+vn 0.428846 -0.175237 -0.886196
+vn 0.606006 -0.127842 -0.785089
+vn 0.412946 0.281045 0.866298
+vn 0.356517 -0.191382 -0.914457
+vn -0.210517 0.217200 0.953124
+vn 0.647816 0.045106 -0.760430
+vn 0.627033 0.321024 -0.709708
+vn 0.344005 -0.169652 -0.923490
+vn 0.328288 -0.149602 -0.932646
+vn -0.222449 0.239265 0.945097
+vn -0.222144 0.351238 0.909543
+vn 0.426405 0.254494 -0.867977
+vn 0.265786 0.729972 -0.629627
+vn 0.049165 0.992737 0.109500
+vn -0.273049 0.291879 0.916623
+vn 0.310251 0.176244 -0.934141
+vn -0.283914 0.639729 0.714194
+vn 0.157872 0.536241 -0.829127
+vn 0.182501 0.935881 -0.301279
+vn 0.090030 0.742607 -0.663594
+vn -0.293588 0.401959 0.867275
+vn 0.250221 0.091128 -0.963866
+vn 0.201758 0.357830 -0.911710
+vn -0.356365 0.796319 0.488723
+vn 0.105441 0.376049 -0.920560
+vn 0.257668 -0.103580 -0.960631
+vn -0.051943 0.729362 -0.682150
+vn 0.197363 0.108432 -0.974303
+vn -0.324107 0.311350 0.893277
+vn -0.424818 0.663442 0.615925
+vn 0.242103 -0.101138 -0.964934
+vn -0.395306 0.537950 0.744530
+vn -0.360729 0.420545 0.832453
+vn -0.440046 0.531754 0.723563
+vn -0.389935 0.417707 0.820612
+vn -0.338359 0.310068 0.888455
+vn 0.216529 -0.106845 -0.970397
+vn -0.350475 0.305155 0.885433
+vn -0.112339 0.335002 -0.935453
+vn 0.127567 -0.023591 -0.991516
+vn -0.629322 0.597919 -0.496414
+vn -0.360271 0.296854 0.884335
+vn 0.006989 -0.002045 -0.999969
+vn -0.798212 0.576128 -0.175756
+vn -0.553362 0.399365 -0.730918
+vn -0.768670 0.447645 0.456862
+vn -0.854823 0.478378 0.201025
+vn -0.420179 0.181494 -0.889096
+vn -0.660878 0.148473 -0.735649
+vn -0.662343 0.316202 0.679159
+vn -0.110446 -0.067568 -0.991577
+vn -0.538438 0.222785 0.812647
+vn -0.365520 0.213172 0.906034
+vn -0.428846 0.175268 0.886196
+vn -0.412915 -0.281045 -0.866298
+vn -0.606006 0.127842 0.785089
+vn -0.615253 -0.542711 -0.571734
+vn 0.158818 -0.273598 -0.948637
+vn -0.403272 0.132633 0.905393
+vn 0.222480 -0.239296 -0.945097
+usemtl SkinColor
+s 1
+f 2417//1711 2416//1712 2431//1713
+f 2412//1714 2411//1715 2426//1716
+f 2423//1717 2422//1718 2438//1719
+f 2418//1720 2417//1711 2432//1721
+f 2413//1722 2412//1714 2427//1723
+f 2424//1724 2423//1717 2439//1725
+f 2419//1726 2418//1720 2433//1727
+f 2414//1728 2413//1722 2428//1729
+f 2425//1730 2424//1724 2440//1731
+f 2420//1732 2419//1726 2435//1733
+f 2415//1734 2414//1728 2429//1735
+f 2421//1736 2420//1732 2436//1737
+f 2416//1712 2415//1734 2430//1738
+f 2422//1718 2421//1736 2437//1739
+f 2432//1721 2431//1713 2446//1740
+f 2427//1723 2426//1716 2441//1741
+f 2438//1719 2437//1739 2453//1742
+f 2433//1727 2432//1721 2447//1743
+f 2428//1729 2427//1723 2442//1744
+f 2439//1725 2438//1719 2454//1745
+f 2434//1746 2433//1727 2449//1747
+f 2429//1735 2428//1729 2443//1748
+f 2440//1731 2439//1725 2455//1749
+f 2435//1733 2434//1746 2450//1750
+f 2430//1738 2429//1735 2444//1751
+f 2436//1737 2435//1733 2451//1752
+f 2431//1713 2430//1738 2445//1753
+f 2437//1739 2436//1737 2452//1754
+f 2451//1752 2450//1750 2466//1755
+f 2446//1740 2445//1753 2460//1756
+f 2452//1754 2451//1752 2467//1757
+f 2447//1743 2446//1740 2461//1758
+f 2442//1744 2441//1741 2456//1759
+f 2453//1742 2452//1754 2468//1760
+f 2448//1761 2447//1743 2462//1762
+f 2443//1748 2442//1744 2457//1763
+f 2454//1745 2453//1742 2469//1764
+f 2449//1747 2448//1761 2464//1765
+f 2444//1751 2443//1748 2458//1766
+f 2455//1749 2454//1745 2470//1767
+f 2450//1750 2449//1747 2465//1768
+f 2445//1753 2444//1751 2459//1769
+f 2470//1767 2469//1764 2485//1770
+f 2465//1768 2464//1765 2480//1771
+f 2460//1756 2459//1769 2474//1772
+f 2466//1755 2465//1768 2481//1773
+f 2461//1758 2460//1756 2475//1774
+f 2467//1757 2466//1755 2482//1775
+f 2462//1762 2461//1758 2476//1776
+f 2457//1763 2456//1759 2471//1777
+f 2468//1760 2467//1757 2483//1778
+f 2463//1779 2462//1762 2477//1780
+f 2458//1766 2457//1763 2472//1781
+f 2469//1764 2468//1760 2484//1782
+f 2464//1765 2463//1779 2479//1783
+f 2459//1769 2458//1766 2473//1784
+f 2473//1784 2472//1781 2487//1785
+f 2484//1782 2483//1778 2499//1786
+f 2479//1783 2478//1787 2494//1788
+f 2474//1772 2473//1784 2488//1789
+f 2485//1770 2484//1782 2500//1790
+f 2480//1771 2479//1783 2495//1791
+f 2475//1774 2474//1772 2489//1792
+f 2481//1773 2480//1771 2496//1793
+f 2476//1776 2475//1774 2490//1794
+f 2482//1775 2481//1773 2497//1795
+f 2477//1780 2476//1776 2491//1796
+f 2472//1781 2471//1777 2486//1797
+f 2483//1778 2482//1775 2498//1798
+f 2478//1787 2477//1780 2492//1799
+f 2492//1799 2491//1796 2506//1800
+f 2487//1785 2486//1797 2501//1801
+f 2498//1798 2497//1795 2513//1802
+f 2493//1803 2492//1799 2507//1804
+f 2488//1789 2487//1785 2502//1805
+f 2499//1786 2498//1798 2514//1806
+f 2494//1788 2493//1803 2509//1807
+f 2489//1792 2488//1789 2503//1808
+f 2500//1790 2499//1786 2515//1809
+f 2495//1791 2494//1788 2510//1810
+f 2490//1794 2489//1792 2504//1811
+f 2496//1793 2495//1791 2511//1812
+f 2491//1796 2490//1794 2505//1813
+f 2497//1795 2496//1793 2512//1814
+f 2511//1812 2510//1810 2526//1815
+f 2506//1800 2505//1813 2520//1816
+f 2512//1814 2511//1812 2527//1817
+f 2507//1804 2506//1800 2521//1818
+f 2502//1805 2501//1801 2516//1819
+f 2513//1802 2512//1814 2528//1820
+f 2508//1821 2507//1804 2522//1822
+f 2503//1808 2502//1805 2517//1823
+f 2514//1806 2513//1802 2529//1824
+f 2509//1807 2508//1821 2524//1825
+f 2504//1811 2503//1808 2518//1826
+f 2515//1809 2514//1806 2530//1827
+f 2510//1810 2509//1807 2525//1828
+f 2505//1813 2504//1811 2519//1829
+f 2530//1827 2529//1824 2544//1830
+f 2525//1828 2524//1825 2540//1831
+f 2520//1816 2519//1829 2535//1832
+f 2526//1815 2525//1828 2541//1833
+f 2521//1818 2520//1816 2536//1834
+f 2527//1817 2526//1815 2542//1835
+f 2522//1822 2521//1818 2537//1836
+f 2517//1823 2516//1819 2532//1837
+f 2528//1820 2527//1817 2542//1835
+f 2523//1838 2522//1822 2538//1839
+f 2518//1826 2517//1823 2533//1840
+f 2529//1824 2528//1820 2543//1841
+f 2524//1825 2523//1838 2539//1842
+f 2519//1829 2518//1826 2534//1843
+f 2544//1830 2543//1841 2558//1844
+f 2539//1842 2538//1839 2554//1845
+f 2534//1843 2533//1840 2549//1846
+f 2545//1847 2544//1830 2559//1848
+f 2540//1831 2539//1842 2554//1845
+f 2535//1832 2534//1843 2550//1849
+f 2541//1833 2540//1831 2555//1850
+f 2536//1834 2535//1832 2551//1851
+f 2542//1835 2541//1833 2556//1852
+f 2537//1836 2536//1834 2552//1853
+f 2532//1837 2531//1854 2547//1855
+f 2543//1841 2542//1835 2557//1856
+f 2538//1839 2537//1836 2553//1857
+f 2533//1840 2532//1837 2548//1858
+f 2547//1855 2546//1859 2562//1860
+f 2558//1844 2557//1856 2572//1861
+f 2553//1857 2552//1853 2568//1862
+f 2548//1858 2547//1855 2563//1863
+f 2559//1848 2558//1844 2573//1864
+f 2554//1845 2553//1857 2568//1862
+f 2549//1846 2548//1858 2564//1865
+f 2560//1866 2559//1848 2574//1867
+f 2555//1850 2554//1845 2569//1868
+f 2550//1849 2549//1846 2565//1869
+f 2556//1852 2555//1850 2570//1870
+f 2551//1851 2550//1849 2566//1871
+f 2557//1856 2556//1852 2571//1872
+f 2552//1853 2551//1851 2567//1873
+f 2566//1871 2565//1869 2581//1874
+f 2572//1861 2571//1872 2586//1875
+f 2567//1873 2566//1871 2582//1876
+f 2562//1860 2561//1877 2577//1878
+f 2573//1864 2572//1861 2587//1879
+f 2568//1862 2567//1873 2583//1880
+f 2563//1863 2562//1860 2578//1881
+f 2574//1867 2573//1864 2588//1882
+f 2569//1868 2568//1862 2583//1880
+f 2564//1865 2563//1863 2579//1883
+f 2575//1884 2574//1867 2589//1885
+f 2570//1870 2569//1868 2584//1886
+f 2565//1869 2564//1865 2580//1887
+f 2571//1872 2570//1870 2585//1888
+f 2585//1888 2584//1886 2599//1889
+f 2580//1887 2579//1883 2595//1890
+f 2586//1875 2585//1888 2600//1891
+f 2581//1874 2580//1887 2596//1892
+f 2587//1879 2586//1875 2601//1893
+f 2582//1876 2581//1874 2597//1894
+f 2577//1878 2576//1895 2592//1896
+f 2588//1882 2587//1879 2602//1897
+f 2583//1880 2582//1876 2598//1898
+f 2578//1881 2577//1878 2593//1899
+f 2589//1885 2588//1882 2603//1900
+f 2584//1886 2583//1880 2598//1898
+f 2579//1883 2578//1881 2594//1901
+f 2590//1902 2589//1885 2604//1903
+f 2604//1903 2603//1900 2618//1904
+f 2599//1889 2598//1898 2614//1905
+f 2594//1901 2593//1899 2609//1906
+f 2605//1907 2604//1903 2619//1908
+f 2600//1891 2599//1889 2614//1905
+f 2595//1890 2594//1901 2610//1909
+f 2601//1893 2600//1891 2615//1910
+f 2596//1892 2595//1890 2611//1911
+f 2602//1897 2601//1893 2616//1912
+f 2597//1894 2596//1892 2612//1913
+f 2592//1896 2591//1914 2607//1915
+f 2603//1900 2602//1897 2617//1916
+f 2598//1898 2597//1894 2613//1917
+f 2593//1899 2592//1896 2608//1918
+f 2607//1915 2606//1919 2622//1920
+f 2618//1904 2617//1916 2632//1921
+f 2613//1917 2612//1913 2628//1922
+f 2608//1918 2607//1915 2623//1923
+f 2619//1908 2618//1904 2633//1924
+f 2614//1905 2613//1917 2629//1925
+f 2609//1906 2608//1918 2624//1926
+f 2620//1927 2619//1908 2634//1928
+f 2615//1910 2614//1905 2629//1925
+f 2610//1909 2609//1906 2625//1929
+f 2616//1912 2615//1910 2630//1930
+f 2611//1911 2610//1909 2626//1931
+f 2617//1916 2616//1912 2631//1932
+f 2612//1913 2611//1911 2627//1933
+f 2626//1931 2625//1929 2641//1934
+f 2632//1921 2631//1932 2646//1935
+f 2627//1933 2626//1931 2642//1936
+f 2622//1920 2621//1937 2637//1938
+f 2633//1924 2632//1921 2647//1939
+f 2628//1922 2627//1933 2643//1940
+f 2623//1923 2622//1920 2638//1941
+f 2634//1928 2633//1924 2648//1942
+f 2629//1925 2628//1922 2644//1943
+f 2624//1926 2623//1923 2639//1944
+f 2635//1945 2634//1928 2649//1946
+f 2630//1930 2629//1925 2644//1943
+f 2625//1929 2624//1926 2640//1947
+f 2631//1932 2630//1930 2645//1948
+f 2645//1948 2644//1943 2660//1949
+f 2640//1947 2639//1944 2655//1950
+f 2646//1935 2645//1948 2661//1951
+f 2641//1934 2640//1947 2656//1952
+f 2647//1939 2646//1935 2662//1953
+f 2642//1936 2641//1934 2657//1954
+f 2637//1938 2636//1955 2651//1956
+f 2648//1942 2647//1939 2663//1957
+f 2643//1940 2642//1936 2658//1958
+f 2638//1941 2637//1938 2653//1959
+f 2649//1946 2648//1942 2664//1960
+f 2644//1943 2643//1940 2659//1961
+f 2639//1944 2638//1941 2654//1962
+f 2650//1963 2649//1946 2665//1964
+f 2664//1960 2663//1957 2679//1965
+f 2659//1961 2658//1958 2674//1966
+f 2654//1962 2653//1959 2668//1967
+f 2665//1964 2664//1960 2680//1968
+f 2660//1949 2659//1961 2675//1969
+f 2655//1950 2654//1962 2669//1970
+f 2661//1951 2660//1949 2676//1971
+f 2656//1952 2655//1950 2670//1972
+f 2662//1953 2661//1951 2677//1973
+f 2657//1954 2656//1952 2671//1974
+f 2652//1975 2651//1956 2666//1976
+f 2663//1957 2662//1953 2678//1977
+f 2658//1958 2657//1954 2673//1978
+f 2653//1959 2652//1975 2667//1979
+f 2678//1977 2677//1973 2693//1980
+f 2673//1978 2672//1981 2687//1982
+f 2668//1967 2667//1979 2682//1983
+f 2679//1965 2678//1977 2694//1984
+f 2674//1966 2673//1978 2689//1985
+f 2669//1970 2668//1967 2683//1986
+f 2680//1968 2679//1965 2695//1987
+f 2675//1969 2674//1966 2690//1988
+f 2670//1972 2669//1970 2684//1989
+f 2676//1971 2675//1969 2691//1990
+f 2671//1974 2670//1972 2685//1991
+f 2677//1973 2676//1971 2692//1992
+f 2672//1981 2671//1974 2686//1993
+f 2667//1979 2666//1976 2681//1994
+f 2692//1992 2691//1990 2707//1995
+f 2687//1982 2686//1993 2701//1996
+f 2682//1983 2681//1994 2696//1997
+f 2693//1980 2692//1992 2708//1998
+f 2688//1999 2687//1982 2702//2000
+f 2683//1986 2682//1983 2697//2001
+f 2694//1984 2693//1980 2709//2002
+f 2689//1985 2688//1999 2704//2003
+f 2684//1989 2683//1986 2698//2004
+f 2695//1987 2694//1984 2710//2005
+f 2690//1988 2689//1985 2705//2006
+f 2685//1991 2684//1989 2699//2007
+f 2691//1990 2690//1988 2706//2008
+f 2686//1993 2685//1991 2700//2009
+f 2700//2009 2699//2007 2714//2010
+f 2706//2008 2705//2006 2721//2011
+f 2701//1996 2700//2009 2715//2012
+f 2707//1995 2706//2008 2722//2013
+f 2702//2000 2701//1996 2716//2014
+f 2697//2001 2696//1997 2711//2015
+f 2708//1998 2707//1995 2723//2016
+f 2703//2017 2702//2000 2717//2018
+f 2698//2004 2697//2001 2712//2019
+f 2709//2002 2708//1998 2724//2020
+f 2704//2003 2703//2017 2719//2021
+f 2699//2007 2698//2004 2713//2022
+f 2710//2005 2709//2002 2725//2023
+f 2705//2006 2704//2003 2720//2024
+f 2719//2021 2718//2025 2734//2026
+f 2714//2010 2713//2022 2728//2027
+f 2725//2023 2724//2020 2740//2028
+f 2720//2024 2719//2021 2735//2029
+f 2715//2012 2714//2010 2729//2030
+f 2721//2011 2720//2024 2736//2031
+f 2716//2014 2715//2012 2730//2032
+f 2722//2013 2721//2011 2737//2033
+f 2717//2018 2716//2014 2731//2034
+f 2712//2019 2711//2015 2726//2035
+f 2723//2016 2722//2013 2738//2036
+f 2718//2025 2717//2018 2732//2037
+f 2713//2022 2712//2019 2727//2038
+f 2724//2020 2723//2016 2739//2039
+f 2738//2036 2737//2033 2754//2040
+f 2733//2041 2732//2037 2748//2042
+f 2728//2027 2727//2038 2743//2043
+f 2739//2039 2738//2036 2755//2044
+f 2734//2026 2733//2041 2750//2045
+f 2729//2030 2728//2027 2744//2046
+f 2740//2028 2739//2039 2756//2047
+f 2735//2029 2734//2026 2751//2048
+f 2730//2032 2729//2030 2745//2049
+f 2736//2031 2735//2029 2752//2050
+f 2731//2034 2730//2032 2746//2051
+f 2737//2033 2736//2031 2753//2052
+f 2732//2037 2731//2034 2747//2053
+f 2727//2038 2726//2035 2742//2054
+f 2753//2052 2752//2050 2768//2055
+f 2748//2042 2747//2053 2762//2056
+f 2743//2043 2742//2054 2757//2057
+f 2754//2040 2753//2052 2769//2058
+f 2749//2059 2748//2042 2763//2060
+f 2744//2046 2743//2043 2758//2061
+f 2755//2044 2754//2040 2770//2062
+f 2750//2045 2749//2059 2765//2063
+f 2745//2049 2744//2046 2759//2064
+f 2756//2047 2755//2044 2771//2065
+f 2751//2048 2750//2045 2766//2066
+f 2746//2051 2745//2049 2760//2067
+f 2752//2050 2751//2048 2767//2068
+f 2747//2053 2746//2051 2761//2069
+f 2761//2069 2760//2067 2775//2070
+f 2767//2068 2766//2066 2781//2071
+f 2762//2056 2761//2069 2776//2072
+f 2768//2055 2767//2068 2782//2073
+f 2763//2060 2762//2056 2777//2074
+f 2758//2061 2757//2057 2773//2075
+f 2769//2058 2768//2055 2783//2076
+f 2764//2077 2763//2060 2778//2078
+f 2759//2064 2758//2061 2774//2079
+f 2770//2062 2769//2058 2784//2080
+f 2765//2063 2764//2077 2779//2081
+f 2760//2067 2759//2064 2775//2070
+f 2771//2065 2770//2062 2785//2082
+f 2766//2066 2765//2063 2780//2083
+f 2780//2083 2779//2081 2794//2084
+f 2775//2070 2774//2079 2790//2085
+f 2786//2086 2785//2082 2800//2087
+f 2781//2071 2780//2083 2795//2088
+f 2776//2072 2775//2070 2791//2089
+f 2782//2073 2781//2071 2796//2090
+f 2777//2074 2776//2072 2792//2091
+f 2783//2076 2782//2073 2797//2092
+f 2778//2078 2777//2074 2793//2093
+f 2773//2075 2772//2094 2788//2095
+f 2784//2080 2783//2076 2798//2096
+f 2779//2081 2778//2078 2793//2093
+f 2774//2079 2773//2075 2789//2097
+f 2785//2082 2784//2080 2799//2098
+f 2799//2098 2798//2096 2813//2099
+f 2794//2084 2793//2093 2809//2100
+f 2789//2097 2788//2095 2804//2101
+f 2800//2087 2799//2098 2814//2102
+f 2795//2088 2794//2084 2809//2100
+f 2790//2085 2789//2097 2805//2103
+f 2801//2104 2800//2087 2815//2105
+f 2796//2090 2795//2088 2810//2106
+f 2791//2089 2790//2085 2806//2107
+f 2797//2092 2796//2090 2811//2108
+f 2792//2091 2791//2089 2807//2109
+f 2798//2096 2797//2092 2812//2110
+f 2793//2093 2792//2091 2808//2111
+f 2788//2095 2787//2112 2803//2113
+f 2813//2099 2812//2110 2827//2114
+f 2808//2111 2807//2109 2823//2115
+f 2803//2113 2802//2116 2818//2117
+f 2814//2102 2813//2099 2828//2118
+f 2809//2100 2808//2111 2824//2119
+f 2804//2101 2803//2113 2819//2120
+f 2815//2105 2814//2102 2829//2121
+f 2810//2106 2809//2100 2824//2119
+f 2805//2103 2804//2101 2820//2122
+f 2816//2123 2815//2105 2830//2124
+f 2811//2108 2810//2106 2825//2125
+f 2806//2107 2805//2103 2821//2126
+f 2812//2110 2811//2108 2826//2127
+f 2807//2109 2806//2107 2822//2128
+f 2827//2114 2826//2127 2841//2129
+f 2822//2128 2821//2126 2837//2130
+f 2828//2118 2827//2114 2842//2131
+f 2823//2115 2822//2128 2838//2132
+f 2818//2117 2817//2133 2833//2134
+f 2829//2121 2828//2118 2843//2135
+f 2824//2119 2823//2115 2839//2136
+f 2819//2120 2818//2117 2834//2137
+f 2830//2124 2829//2121 2844//2138
+f 2825//2125 2824//2119 2839//2136
+f 2820//2122 2819//2120 2835//2139
+f 2831//2140 2830//2124 2845//2141
+f 2826//2127 2825//2125 2840//2142
+f 2821//2126 2820//2122 2836//2143
+f 2835//2139 2834//2137 2850//2144
+f 2846//2145 2845//2141 2860//2146
+f 2841//2129 2840//2142 2855//2147
+f 2836//2143 2835//2139 2851//2148
+f 2842//2131 2841//2129 2856//2149
+f 2837//2130 2836//2143 2852//2150
+f 2843//2135 2842//2131 2857//2151
+f 2838//2132 2837//2130 2853//2152
+f 2833//2134 2832//2153 2848//2154
+f 2844//2138 2843//2135 2858//2155
+f 2839//2136 2838//2132 2853//2152
+f 2834//2137 2833//2134 2849//2156
+f 2845//2141 2844//2138 2859//2157
+f 2840//2142 2839//2136 2854//2158
+f 2854//2158 2853//2152 2869//2159
+f 2849//2156 2848//2154 2865//2160
+f 2860//2146 2859//2157 2875//2161
+f 2855//2147 2854//2158 2870//2162
+f 2850//2144 2849//2156 2866//2163
+f 2861//2164 2860//2146 2876//2165
+f 2856//2149 2855//2147 2871//2166
+f 2851//2148 2850//2144 2867//2167
+f 2857//2151 2856//2149 2872//2168
+f 2852//2150 2851//2148 2868//2169
+f 2858//2155 2857//2151 2873//2170
+f 2853//2152 2852//2150 2869//2159
+f 2848//2154 2847//2171 2864//2172
+f 2859//2157 2858//2155 2874//2173
+f 2874//2173 2873//2170 2888//2174
+f 2869//2159 2868//2169 2884//2175
+f 2864//2172 2863//2176 2879//2177
+f 2875//2161 2874//2173 2889//2178
+f 2870//2162 2869//2159 2884//2175
+f 2865//2160 2864//2172 2880//2179
+f 2876//2165 2875//2161 2890//2180
+f 2871//2166 2870//2162 2885//2181
+f 2866//2163 2865//2160 2881//2182
+f 2877//2183 2876//2165 2891//2184
+f 2872//2168 2871//2166 2886//2185
+f 2867//2167 2866//2163 2882//2186
+f 2873//2170 2872//2168 2887//2187
+f 2868//2169 2867//2167 2883//2188
+f 2741//2189 2425//1730 2440//1731
+f 2411//1715 2862//2190 2426//1716
+f 2741//2189 2440//1731 2455//1749
+f 2426//1716 2862//2190 2441//1741
+f 2441//1741 2862//2190 2456//1759
+f 2741//2189 2455//1749 2470//1767
+f 2741//2189 2470//1767 2485//1770
+f 2456//1759 2862//2190 2471//1777
+f 2741//2189 2485//1770 2500//1790
+f 2471//1777 2862//2190 2486//1797
+f 2741//2189 2500//1790 2515//1809
+f 2486//1797 2862//2190 2501//1801
+f 2501//1801 2862//2190 2516//1819
+f 2741//2189 2515//1809 2530//1827
+f 2741//2189 2530//1827 2545//1847
+f 2516//1819 2862//2190 2531//1854
+f 2741//2189 2545//1847 2560//1866
+f 2531//1854 2862//2190 2546//1859
+f 2741//2189 2560//1866 2575//1884
+f 2546//1859 2862//2190 2561//1877
+f 2561//1877 2862//2190 2576//1895
+f 2741//2189 2575//1884 2590//1902
+f 2741//2189 2590//1902 2605//1907
+f 2576//1895 2862//2190 2591//1914
+f 2741//2189 2605//1907 2620//1927
+f 2591//1914 2862//2190 2606//1919
+f 2741//2189 2620//1927 2635//1945
+f 2606//1919 2862//2190 2621//1937
+f 2621//1937 2862//2190 2636//1955
+f 2741//2189 2635//1945 2650//1963
+f 2741//2189 2650//1963 2665//1964
+f 2636//1955 2862//2190 2651//1956
+f 2741//2189 2665//1964 2680//1968
+f 2651//1956 2862//2190 2666//1976
+f 2741//2189 2680//1968 2695//1987
+f 2666//1976 2862//2190 2681//1994
+f 2681//1994 2862//2190 2696//1997
+f 2741//2189 2695//1987 2710//2005
+f 2741//2189 2710//2005 2725//2023
+f 2696//1997 2862//2190 2711//2015
+f 2741//2189 2725//2023 2740//2028
+f 2711//2015 2862//2190 2726//2035
+f 2741//2189 2740//2028 2756//2047
+f 2726//2035 2862//2190 2742//2054
+f 2742//2054 2862//2190 2757//2057
+f 2741//2189 2756//2047 2771//2065
+f 2741//2189 2771//2065 2786//2086
+f 2757//2057 2862//2190 2772//2094
+f 2741//2189 2786//2086 2801//2104
+f 2772//2094 2862//2190 2787//2112
+f 2741//2189 2801//2104 2816//2123
+f 2787//2112 2862//2190 2802//2116
+f 2741//2189 2816//2123 2831//2140
+f 2802//2116 2862//2190 2817//2133
+f 2741//2189 2831//2140 2846//2145
+f 2817//2133 2862//2190 2832//2153
+f 2741//2189 2846//2145 2861//2164
+f 2832//2153 2862//2190 2847//2171
+f 2741//2189 2861//2164 2877//2183
+f 2847//2171 2862//2190 2863//2176
+f 2741//2189 2877//2183 2892//2191
+f 2863//2176 2862//2190 2878//2192
+f 2741//2189 2892//2191 2425//1730
+f 2888//2174 2887//2187 2420//1732
+f 2883//2188 2882//2186 2415//1734
+f 2878//2192 2862//2190 2411//1715
+f 2889//2178 2888//2174 2421//1736
+f 2884//2175 2883//2188 2416//1712
+f 2879//2177 2878//2192 2411//1715
+f 2890//2180 2889//2178 2422//1718
+f 2885//2181 2884//2175 2417//1711
+f 2880//2179 2879//2177 2412//1714
+f 2891//2184 2890//2180 2423//1717
+f 2886//2185 2885//2181 2418//1720
+f 2881//2182 2880//2179 2413//1722
+f 2892//2191 2891//2184 2425//1730
+f 2887//2187 2886//2185 2419//1726
+f 2882//2186 2881//2182 2414//1728
+f 2899//1711 2898//2193 2913//1713
+f 2894//1714 2893//1715 2908//2194
+f 2905//2195 2904//1718 2920//1719
+f 2900//1720 2899//1711 2914//1721
+f 2895//1722 2894//1714 2909//2196
+f 2906//1724 2905//2195 2921//1725
+f 2901//1726 2900//1720 2915//1727
+f 2896//1728 2895//1722 2910//2197
+f 2907//2198 2906//1724 2922//2199
+f 2902//1732 2901//1726 2917//1733
+f 2897//1734 2896//1728 2911//1735
+f 2903//2200 2902//1732 2918//1737
+f 2898//2193 2897//1734 2912//1738
+f 2904//1718 2903//2200 2919//1739
+f 2914//1721 2913//1713 2928//1740
+f 2909//2196 2908//2194 2923//2201
+f 2920//1719 2919//1739 2935//2202
+f 2915//1727 2914//1721 2929//1743
+f 2910//2197 2909//2196 2924//1744
+f 2921//1725 2920//1719 2936//2203
+f 2916//1746 2915//1727 2931//1747
+f 2911//1735 2910//2197 2925//1748
+f 2922//2199 2921//1725 2937//1749
+f 2917//1733 2916//1746 2932//1750
+f 2912//1738 2911//1735 2926//1751
+f 2918//1737 2917//1733 2933//1752
+f 2913//1713 2912//1738 2927//2204
+f 2919//1739 2918//1737 2934//2205
+f 2933//1752 2932//1750 2948//2206
+f 2928//1740 2927//2204 2942//1756
+f 2934//2205 2933//1752 2949//2207
+f 2929//1743 2928//1740 2943//1758
+f 2924//1744 2923//2201 2938//2208
+f 2935//2202 2934//2205 2950//1760
+f 2930//2209 2929//1743 2944//1762
+f 2925//1748 2924//1744 2939//2210
+f 2936//2203 2935//2202 2951//1764
+f 2931//1747 2930//2209 2946//1765
+f 2926//1751 2925//1748 2940//1766
+f 2937//1749 2936//2203 2952//2211
+f 2932//1750 2931//1747 2947//2212
+f 2927//2204 2926//1751 2941//2213
+f 2952//2211 2951//1764 2967//1770
+f 2947//2212 2946//1765 2962//2214
+f 2942//1756 2941//2213 2956//1772
+f 2948//2206 2947//2212 2963//2215
+f 2943//1758 2942//1756 2957//1774
+f 2949//2207 2948//2206 2964//1775
+f 2944//1762 2943//1758 2958//1776
+f 2939//2210 2938//2208 2953//2216
+f 2950//1760 2949//2207 2965//1778
+f 2945//1779 2944//1762 2959//1780
+f 2940//1766 2939//2210 2954//1781
+f 2951//1764 2950//1760 2966//1782
+f 2946//1765 2945//1779 2961//2217
+f 2941//2213 2940//1766 2955//2218
+f 2955//2218 2954//1781 2969//1785
+f 2966//1782 2965//1778 2981//1786
+f 2961//2217 2960//1787 2976//1788
+f 2956//1772 2955//2218 2970//2219
+f 2967//1770 2966//1782 2982//2220
+f 2962//2214 2961//2217 2977//1791
+f 2957//1774 2956//1772 2971//1792
+f 2963//2215 2962//2214 2978//1793
+f 2958//1776 2957//1774 2972//2221
+f 2964//1775 2963//2215 2979//1795
+f 2959//1780 2958//1776 2973//1796
+f 2954//1781 2953//2216 2968//1797
+f 2965//1778 2964//1775 2980//2222
+f 2960//1787 2959//1780 2974//1799
+f 2974//1799 2973//1796 2988//1800
+f 2969//1785 2968//1797 2983//1801
+f 2980//2222 2979//1795 2995//1802
+f 2975//1803 2974//1799 2989//1804
+f 2970//2219 2969//1785 2984//1805
+f 2981//1786 2980//2222 2996//1806
+f 2976//1788 2975//1803 2991//1807
+f 2971//1792 2970//2219 2985//1808
+f 2982//2220 2981//1786 2997//2223
+f 2977//1791 2976//1788 2992//1810
+f 2972//2221 2971//1792 2986//1811
+f 2978//1793 2977//1791 2993//1812
+f 2973//1796 2972//2221 2987//1813
+f 2979//1795 2978//1793 2994//1814
+f 2993//1812 2992//1810 3008//2224
+f 2988//1800 2987//1813 3002//1816
+f 2994//1814 2993//1812 3009//1817
+f 2989//1804 2988//1800 3003//1818
+f 2984//1805 2983//1801 2998//1819
+f 2995//1802 2994//1814 3010//1820
+f 2990//1821 2989//1804 3004//1822
+f 2985//1808 2984//1805 2999//1823
+f 2996//1806 2995//1802 3011//1824
+f 2991//1807 2990//1821 3006//1825
+f 2986//1811 2985//1808 3000//1826
+f 2997//2223 2996//1806 3012//1827
+f 2992//1810 2991//1807 3007//1828
+f 2987//1813 2986//1811 3001//1829
+f 3012//1827 3011//1824 3026//2225
+f 3007//1828 3006//1825 3022//1831
+f 3002//1816 3001//1829 3017//1832
+f 3008//2224 3007//1828 3023//1833
+f 3003//1818 3002//1816 3018//1834
+f 3009//1817 3008//2224 3024//1835
+f 3004//1822 3003//1818 3019//1836
+f 2999//1823 2998//1819 3014//1837
+f 3010//1820 3009//1817 3024//1835
+f 3005//2226 3004//1822 3020//1839
+f 3000//1826 2999//1823 3015//1840
+f 3011//1824 3010//1820 3025//1841
+f 3006//1825 3005//2226 3021//1842
+f 3001//1829 3000//1826 3016//1843
+f 3026//2225 3025//1841 3040//1844
+f 3021//1842 3020//1839 3036//1845
+f 3016//1843 3015//1840 3031//1846
+f 3027//1847 3026//2225 3041//1848
+f 3022//1831 3021//1842 3036//1845
+f 3017//1832 3016//1843 3032//2227
+f 3023//1833 3022//1831 3037//2228
+f 3018//1834 3017//1832 3033//1851
+f 3024//1835 3023//1833 3038//1852
+f 3019//1836 3018//1834 3034//1853
+f 3014//1837 3013//1854 3029//1855
+f 3025//1841 3024//1835 3039//1856
+f 3020//1839 3019//1836 3035//2229
+f 3015//1840 3014//1837 3030//1858
+f 3029//1855 3028//1859 3044//1860
+f 3040//1844 3039//1856 3054//2230
+f 3035//2229 3034//1853 3050//1862
+f 3030//1858 3029//1855 3045//1863
+f 3041//1848 3040//1844 3055//2231
+f 3036//1845 3035//2229 3050//1862
+f 3031//1846 3030//1858 3046//1865
+f 3042//1866 3041//1848 3056//1867
+f 3037//2228 3036//1845 3051//2232
+f 3032//2227 3031//1846 3047//1869
+f 3038//1852 3037//2228 3052//1870
+f 3033//1851 3032//2227 3048//2233
+f 3039//1856 3038//1852 3053//1872
+f 3034//1853 3033//1851 3049//2234
+f 3048//2233 3047//1869 3063//1874
+f 3054//2230 3053//1872 3068//1875
+f 3049//2234 3048//2233 3064//1876
+f 3044//1860 3043//1877 3059//1878
+f 3055//2231 3054//2230 3069//1879
+f 3050//1862 3049//2234 3065//2235
+f 3045//1863 3044//1860 3060//1881
+f 3056//1867 3055//2231 3070//2236
+f 3051//2232 3050//1862 3065//2235
+f 3046//1865 3045//1863 3061//1883
+f 3057//1884 3056//1867 3071//1885
+f 3052//1870 3051//2232 3066//1886
+f 3047//1869 3046//1865 3062//1887
+f 3053//1872 3052//1870 3067//2237
+f 3067//2237 3066//1886 3081//2238
+f 3062//1887 3061//1883 3077//2239
+f 3068//1875 3067//2237 3082//1891
+f 3063//1874 3062//1887 3078//1892
+f 3069//1879 3068//1875 3083//1893
+f 3064//1876 3063//1874 3079//1894
+f 3059//1878 3058//1895 3074//1896
+f 3070//2236 3069//1879 3084//1897
+f 3065//2235 3064//1876 3080//1898
+f 3060//1881 3059//1878 3075//1899
+f 3071//1885 3070//2236 3085//1900
+f 3066//1886 3065//2235 3080//1898
+f 3061//1883 3060//1881 3076//1901
+f 3072//1902 3071//1885 3086//1903
+f 3086//1903 3085//1900 3100//1904
+f 3081//2238 3080//1898 3096//1905
+f 3076//1901 3075//1899 3091//1906
+f 3087//1907 3086//1903 3101//1908
+f 3082//1891 3081//2238 3096//1905
+f 3077//2239 3076//1901 3092//1909
+f 3083//1893 3082//1891 3097//1910
+f 3078//1892 3077//2239 3093//1911
+f 3084//1897 3083//1893 3098//1912
+f 3079//1894 3078//1892 3094//1913
+f 3074//1896 3073//2240 3089//1915
+f 3085//1900 3084//1897 3099//1916
+f 3080//1898 3079//1894 3095//1917
+f 3075//1899 3074//1896 3090//2241
+f 3089//1915 3088//2242 3104//2243
+f 3100//1904 3099//1916 3114//1921
+f 3095//1917 3094//1913 3110//1922
+f 3090//2241 3089//1915 3105//1923
+f 3101//1908 3100//1904 3115//1924
+f 3096//1905 3095//1917 3111//1925
+f 3091//1906 3090//2241 3106//2244
+f 3102//1927 3101//1908 3116//1928
+f 3097//1910 3096//1905 3111//1925
+f 3092//1909 3091//1906 3107//1929
+f 3098//1912 3097//1910 3112//2245
+f 3093//1911 3092//1909 3108//1931
+f 3099//1916 3098//1912 3113//1932
+f 3094//1913 3093//1911 3109//1933
+f 3108//1931 3107//1929 3123//1934
+f 3114//1921 3113//1932 3128//1935
+f 3109//1933 3108//1931 3124//1936
+f 3104//2243 3103//2246 3119//1938
+f 3115//1924 3114//1921 3129//1939
+f 3110//1922 3109//1933 3125//1940
+f 3105//1923 3104//2243 3120//1941
+f 3116//1928 3115//1924 3130//1942
+f 3111//1925 3110//1922 3126//1943
+f 3106//2244 3105//1923 3121//1944
+f 3117//2247 3116//1928 3131//1946
+f 3112//2245 3111//1925 3126//1943
+f 3107//1929 3106//2244 3122//2248
+f 3113//1932 3112//2245 3127//1948
+f 3127//1948 3126//1943 3142//1949
+f 3122//2248 3121//1944 3137//1950
+f 3128//1935 3127//1948 3143//1951
+f 3123//1934 3122//2248 3138//2249
+f 3129//1939 3128//1935 3144//1953
+f 3124//1936 3123//1934 3139//1954
+f 3119//1938 3118//2250 3133//2251
+f 3130//1942 3129//1939 3145//1957
+f 3125//1940 3124//1936 3140//1958
+f 3120//1941 3119//1938 3135//1959
+f 3131//1946 3130//1942 3146//1960
+f 3126//1943 3125//1940 3141//1961
+f 3121//1944 3120//1941 3136//1962
+f 3132//2252 3131//1946 3147//1964
+f 3146//1960 3145//1957 3161//2253
+f 3141//1961 3140//1958 3156//1966
+f 3136//1962 3135//1959 3150//1967
+f 3147//1964 3146//1960 3162//1968
+f 3142//1949 3141//1961 3157//1969
+f 3137//1950 3136//1962 3151//1970
+f 3143//1951 3142//1949 3158//1971
+f 3138//2249 3137//1950 3152//2254
+f 3144//1953 3143//1951 3159//1973
+f 3139//1954 3138//2249 3153//1974
+f 3134//1975 3133//2251 3148//1976
+f 3145//1957 3144//1953 3160//1977
+f 3140//1958 3139//1954 3155//1978
+f 3135//1959 3134//1975 3149//1979
+f 3160//1977 3159//1973 3175//1980
+f 3155//1978 3154//1981 3169//2255
+f 3150//1967 3149//1979 3164//1983
+f 3161//2253 3160//1977 3176//1984
+f 3156//1966 3155//1978 3171//2256
+f 3151//1970 3150//1967 3165//1986
+f 3162//1968 3161//2253 3177//2257
+f 3157//1969 3156//1966 3172//1988
+f 3152//2254 3151//1970 3166//2258
+f 3158//1971 3157//1969 3173//1990
+f 3153//1974 3152//2254 3167//1991
+f 3159//1973 3158//1971 3174//1992
+f 3154//1981 3153//1974 3168//1993
+f 3149//1979 3148//1976 3163//1994
+f 3174//1992 3173//1990 3189//2259
+f 3169//2255 3168//1993 3183//2260
+f 3164//1983 3163//1994 3178//1997
+f 3175//1980 3174//1992 3190//1998
+f 3170//2261 3169//2255 3184//2262
+f 3165//1986 3164//1983 3179//2001
+f 3176//1984 3175//1980 3191//2263
+f 3171//2256 3170//2261 3186//2003
+f 3166//2258 3165//1986 3180//2264
+f 3177//2257 3176//1984 3192//2005
+f 3172//1988 3171//2256 3187//2006
+f 3167//1991 3166//2258 3181//2007
+f 3173//1990 3172//1988 3188//2008
+f 3168//1993 3167//1991 3182//2265
+f 3182//2265 3181//2007 3196//2010
+f 3188//2008 3187//2006 3203//2266
+f 3183//2260 3182//2265 3197//2267
+f 3189//2259 3188//2008 3204//2013
+f 3184//2262 3183//2260 3198//2014
+f 3179//2001 3178//1997 3193//2268
+f 3190//1998 3189//2259 3205//2016
+f 3185//2017 3184//2262 3199//2269
+f 3180//2264 3179//2001 3194//2019
+f 3191//2263 3190//1998 3206//2020
+f 3186//2003 3185//2017 3201//2021
+f 3181//2007 3180//2264 3195//2270
+f 3192//2005 3191//2263 3207//2023
+f 3187//2006 3186//2003 3202//2024
+f 3201//2021 3200//2025 3216//2026
+f 3196//2010 3195//2270 3210//2027
+f 3207//2023 3206//2020 3222//2271
+f 3202//2024 3201//2021 3217//2029
+f 3197//2267 3196//2010 3211//2030
+f 3203//2266 3202//2024 3218//2031
+f 3198//2014 3197//2267 3212//2032
+f 3204//2013 3203//2266 3219//2272
+f 3199//2269 3198//2014 3213//2034
+f 3194//2019 3193//2268 3208//2273
+f 3205//2016 3204//2013 3220//2274
+f 3200//2025 3199//2269 3214//2037
+f 3195//2270 3194//2019 3209//2038
+f 3206//2020 3205//2016 3221//2275
+f 3220//2274 3219//2272 3236//2276
+f 3215//2041 3214//2037 3230//2042
+f 3210//2027 3209//2038 3225//2043
+f 3221//2275 3220//2274 3237//2277
+f 3216//2026 3215//2041 3232//2045
+f 3211//2030 3210//2027 3226//2046
+f 3222//2271 3221//2275 3238//2278
+f 3217//2029 3216//2026 3233//2048
+f 3212//2032 3211//2030 3227//2049
+f 3218//2031 3217//2029 3234//2050
+f 3213//2034 3212//2032 3228//2051
+f 3219//2272 3218//2031 3235//2052
+f 3214//2037 3213//2034 3229//2053
+f 3209//2038 3208//2273 3224//2054
+f 3235//2052 3234//2050 3250//2055
+f 3230//2042 3229//2053 3244//2056
+f 3225//2043 3224//2054 3239//2279
+f 3236//2276 3235//2052 3251//2058
+f 3231//2059 3230//2042 3245//2060
+f 3226//2046 3225//2043 3240//2061
+f 3237//2277 3236//2276 3252//2062
+f 3232//2045 3231//2059 3247//2063
+f 3227//2049 3226//2046 3241//2064
+f 3238//2278 3237//2277 3253//2280
+f 3233//2048 3232//2045 3248//2066
+f 3228//2051 3227//2049 3242//2067
+f 3234//2050 3233//2048 3249//2068
+f 3229//2053 3228//2051 3243//2281
+f 3243//2281 3242//2067 3257//2070
+f 3249//2068 3248//2066 3263//2071
+f 3244//2056 3243//2281 3258//2072
+f 3250//2055 3249//2068 3264//2073
+f 3245//2060 3244//2056 3259//2074
+f 3240//2061 3239//2279 3255//2282
+f 3251//2058 3250//2055 3265//2076
+f 3246//2077 3245//2060 3260//2078
+f 3241//2064 3240//2061 3256//2079
+f 3252//2062 3251//2058 3266//2080
+f 3247//2063 3246//2077 3261//2081
+f 3242//2067 3241//2064 3257//2070
+f 3253//2280 3252//2062 3267//2082
+f 3248//2066 3247//2063 3262//2083
+f 3262//2083 3261//2081 3276//2283
+f 3257//2070 3256//2079 3272//2085
+f 3268//2284 3267//2082 3282//2087
+f 3263//2071 3262//2083 3277//2088
+f 3258//2072 3257//2070 3273//2089
+f 3264//2073 3263//2071 3278//2090
+f 3259//2074 3258//2072 3274//2091
+f 3265//2076 3264//2073 3279//2092
+f 3260//2078 3259//2074 3275//2093
+f 3255//2282 3254//2094 3270//2095
+f 3266//2080 3265//2076 3280//2096
+f 3261//2081 3260//2078 3275//2093
+f 3256//2079 3255//2282 3271//2097
+f 3267//2082 3266//2080 3281//2098
+f 3281//2098 3280//2096 3295//2099
+f 3276//2283 3275//2093 3291//2100
+f 3271//2097 3270//2095 3286//2285
+f 3282//2087 3281//2098 3296//2102
+f 3277//2088 3276//2283 3291//2100
+f 3272//2085 3271//2097 3287//2103
+f 3283//2104 3282//2087 3297//2105
+f 3278//2090 3277//2088 3292//2286
+f 3273//2089 3272//2085 3288//2107
+f 3279//2092 3278//2090 3293//2108
+f 3274//2091 3273//2089 3289//2109
+f 3280//2096 3279//2092 3294//2110
+f 3275//2093 3274//2091 3290//2287
+f 3270//2095 3269//2112 3285//2113
+f 3295//2099 3294//2110 3309//2288
+f 3290//2287 3289//2109 3305//2115
+f 3285//2113 3284//2116 3300//2117
+f 3296//2102 3295//2099 3310//2118
+f 3291//2100 3290//2287 3306//2119
+f 3286//2285 3285//2113 3301//2120
+f 3297//2105 3296//2102 3311//2121
+f 3292//2286 3291//2100 3306//2119
+f 3287//2103 3286//2285 3302//2122
+f 3298//2123 3297//2105 3312//2124
+f 3293//2108 3292//2286 3307//2125
+f 3288//2107 3287//2103 3303//2126
+f 3294//2110 3293//2108 3308//2289
+f 3289//2109 3288//2107 3304//2290
+f 3309//2288 3308//2289 3323//2129
+f 3304//2290 3303//2126 3319//2130
+f 3310//2118 3309//2288 3324//2131
+f 3305//2115 3304//2290 3320//2291
+f 3300//2117 3299//2133 3315//2134
+f 3311//2121 3310//2118 3325//2292
+f 3306//2119 3305//2115 3321//2136
+f 3301//2120 3300//2117 3316//2137
+f 3312//2124 3311//2121 3326//2138
+f 3307//2125 3306//2119 3321//2136
+f 3302//2122 3301//2120 3317//2293
+f 3313//2140 3312//2124 3327//2141
+f 3308//2289 3307//2125 3322//2142
+f 3303//2126 3302//2122 3318//2143
+f 3317//2293 3316//2137 3332//2144
+f 3328//2145 3327//2141 3342//2146
+f 3323//2129 3322//2142 3337//2147
+f 3318//2143 3317//2293 3333//2148
+f 3324//2131 3323//2129 3338//2149
+f 3319//2130 3318//2143 3334//2150
+f 3325//2292 3324//2131 3339//2151
+f 3320//2291 3319//2130 3335//2152
+f 3315//2134 3314//2153 3330//2154
+f 3326//2138 3325//2292 3340//2155
+f 3321//2136 3320//2291 3335//2152
+f 3316//2137 3315//2134 3331//2156
+f 3327//2141 3326//2138 3341//2294
+f 3322//2142 3321//2136 3336//2158
+f 3336//2158 3335//2152 3351//2159
+f 3331//2156 3330//2154 3347//2160
+f 3342//2146 3341//2294 3357//2161
+f 3337//2147 3336//2158 3352//2162
+f 3332//2144 3331//2156 3348//2163
+f 3343//2295 3342//2146 3358//2296
+f 3338//2149 3337//2147 3353//2166
+f 3333//2148 3332//2144 3349//2167
+f 3339//2151 3338//2149 3354//2168
+f 3334//2150 3333//2148 3350//2297
+f 3340//2155 3339//2151 3355//2170
+f 3335//2152 3334//2150 3351//2159
+f 3330//2154 3329//2171 3346//2172
+f 3341//2294 3340//2155 3356//2298
+f 3356//2298 3355//2170 3370//2174
+f 3351//2159 3350//2297 3366//2299
+f 3346//2172 3345//2176 3361//2300
+f 3357//2161 3356//2298 3371//2178
+f 3352//2162 3351//2159 3366//2299
+f 3347//2160 3346//2172 3362//2179
+f 3358//2296 3357//2161 3372//2180
+f 3353//2166 3352//2162 3367//2181
+f 3348//2163 3347//2160 3363//2182
+f 3359//2183 3358//2296 3373//2301
+f 3354//2168 3353//2166 3368//2185
+f 3349//2167 3348//2163 3364//2186
+f 3355//2170 3354//2168 3369//2187
+f 3350//2297 3349//2167 3365//2188
+f 3223//2189 2907//2198 2922//2199
+f 2893//1715 3344//2190 2908//2194
+f 3223//2189 2922//2199 2937//1749
+f 2908//2194 3344//2190 2923//2201
+f 2923//2201 3344//2190 2938//2208
+f 3223//2189 2937//1749 2952//2211
+f 3223//2189 2952//2211 2967//1770
+f 2938//2208 3344//2190 2953//2216
+f 3223//2189 2967//1770 2982//2220
+f 2953//2216 3344//2190 2968//1797
+f 3223//2189 2982//2220 2997//2223
+f 2968//1797 3344//2190 2983//1801
+f 2983//1801 3344//2190 2998//1819
+f 3223//2189 2997//2223 3012//1827
+f 3223//2189 3012//1827 3027//1847
+f 2998//1819 3344//2190 3013//1854
+f 3223//2189 3027//1847 3042//1866
+f 3013//1854 3344//2190 3028//1859
+f 3223//2189 3042//1866 3057//1884
+f 3028//1859 3344//2190 3043//1877
+f 3043//1877 3344//2190 3058//1895
+f 3223//2189 3057//1884 3072//1902
+f 3223//2189 3072//1902 3087//1907
+f 3058//1895 3344//2190 3073//2240
+f 3223//2189 3087//1907 3102//1927
+f 3073//2240 3344//2190 3088//2242
+f 3223//2189 3102//1927 3117//2247
+f 3088//2242 3344//2190 3103//2246
+f 3103//2246 3344//2190 3118//2250
+f 3223//2189 3117//2247 3132//2252
+f 3223//2189 3132//2252 3147//1964
+f 3118//2250 3344//2190 3133//2251
+f 3223//2189 3147//1964 3162//1968
+f 3133//2251 3344//2190 3148//1976
+f 3223//2189 3162//1968 3177//2257
+f 3148//1976 3344//2190 3163//1994
+f 3163//1994 3344//2190 3178//1997
+f 3223//2189 3177//2257 3192//2005
+f 3223//2189 3192//2005 3207//2023
+f 3178//1997 3344//2190 3193//2268
+f 3223//2189 3207//2023 3222//2271
+f 3193//2268 3344//2190 3208//2273
+f 3223//2189 3222//2271 3238//2278
+f 3208//2273 3344//2190 3224//2054
+f 3224//2054 3344//2190 3239//2279
+f 3223//2189 3238//2278 3253//2280
+f 3223//2189 3253//2280 3268//2284
+f 3239//2279 3344//2190 3254//2094
+f 3223//2189 3268//2284 3283//2104
+f 3254//2094 3344//2190 3269//2112
+f 3223//2189 3283//2104 3298//2123
+f 3269//2112 3344//2190 3284//2116
+f 3223//2189 3298//2123 3313//2140
+f 3284//2116 3344//2190 3299//2133
+f 3223//2189 3313//2140 3328//2145
+f 3299//2133 3344//2190 3314//2153
+f 3223//2189 3328//2145 3343//2295
+f 3314//2153 3344//2190 3329//2171
+f 3223//2189 3343//2295 3359//2183
+f 3329//2171 3344//2190 3345//2176
+f 3223//2189 3359//2183 3374//2191
+f 3345//2176 3344//2190 3360//2302
+f 3223//2189 3374//2191 2907//2198
+f 3370//2174 3369//2187 2902//1732
+f 3365//2188 3364//2186 2897//1734
+f 3360//2302 3344//2190 2893//1715
+f 3371//2178 3370//2174 2903//2200
+f 3366//2299 3365//2188 2898//2193
+f 3361//2300 3360//2302 2893//1715
+f 3372//2180 3371//2178 2904//1718
+f 3367//2181 3366//2299 2899//1711
+f 3362//2179 3361//2300 2894//1714
+f 3373//2301 3372//2180 2905//2195
+f 3368//2185 3367//2181 2900//1720
+f 3363//2182 3362//2179 2895//1722
+f 3374//2191 3373//2301 2907//2198
+f 3369//2187 3368//2185 2901//1726
+f 3364//2186 3363//2182 2896//1728
+f 2432//1721 2417//1711 2431//1713
+f 2427//1723 2412//1714 2426//1716
+f 2422//1718 2437//1739 2438//1719
+f 2433//1727 2418//1720 2432//1721
+f 2428//1729 2413//1722 2427//1723
+f 2423//1717 2438//1719 2439//1725
+f 2434//1746 2419//1726 2433//1727
+f 2429//1735 2414//1728 2428//1729
+f 2424//1724 2439//1725 2440//1731
+f 2419//1726 2434//1746 2435//1733
+f 2430//1738 2415//1734 2429//1735
+f 2420//1732 2435//1733 2436//1737
+f 2431//1713 2416//1712 2430//1738
+f 2421//1736 2436//1737 2437//1739
+f 2447//1743 2432//1721 2446//1740
+f 2442//1744 2427//1723 2441//1741
+f 2437//1739 2452//1754 2453//1742
+f 2448//1761 2433//1727 2447//1743
+f 2443//1748 2428//1729 2442//1744
+f 2438//1719 2453//1742 2454//1745
+f 2433//1727 2448//1761 2449//1747
+f 2444//1751 2429//1735 2443//1748
+f 2439//1725 2454//1745 2455//1749
+f 2434//1746 2449//1747 2450//1750
+f 2445//1753 2430//1738 2444//1751
+f 2435//1733 2450//1750 2451//1752
+f 2446//1740 2431//1713 2445//1753
+f 2436//1737 2451//1752 2452//1754
+f 2450//1750 2465//1768 2466//1755
+f 2461//1758 2446//1740 2460//1756
+f 2451//1752 2466//1755 2467//1757
+f 2462//1762 2447//1743 2461//1758
+f 2457//1763 2442//1744 2456//1759
+f 2452//1754 2467//1757 2468//1760
+f 2463//1779 2448//1761 2462//1762
+f 2458//1766 2443//1748 2457//1763
+f 2453//1742 2468//1760 2469//1764
+f 2448//1761 2463//1779 2464//1765
+f 2459//1769 2444//1751 2458//1766
+f 2454//1745 2469//1764 2470//1767
+f 2449//1747 2464//1765 2465//1768
+f 2460//1756 2445//1753 2459//1769
+f 2469//1764 2484//1782 2485//1770
+f 2464//1765 2479//1783 2480//1771
+f 2475//1774 2460//1756 2474//1772
+f 2465//1768 2480//1771 2481//1773
+f 2476//1776 2461//1758 2475//1774
+f 2466//1755 2481//1773 2482//1775
+f 2477//1780 2462//1762 2476//1776
+f 2472//1781 2457//1763 2471//1777
+f 2467//1757 2482//1775 2483//1778
+f 2478//1787 2463//1779 2477//1780
+f 2473//1784 2458//1766 2472//1781
+f 2468//1760 2483//1778 2484//1782
+f 2463//1779 2478//1787 2479//1783
+f 2474//1772 2459//1769 2473//1784
+f 2488//1789 2473//1784 2487//1785
+f 2483//1778 2498//1798 2499//1786
+f 2478//1787 2493//1803 2494//1788
+f 2489//1792 2474//1772 2488//1789
+f 2484//1782 2499//1786 2500//1790
+f 2479//1783 2494//1788 2495//1791
+f 2490//1794 2475//1774 2489//1792
+f 2480//1771 2495//1791 2496//1793
+f 2491//1796 2476//1776 2490//1794
+f 2481//1773 2496//1793 2497//1795
+f 2492//1799 2477//1780 2491//1796
+f 2487//1785 2472//1781 2486//1797
+f 2482//1775 2497//1795 2498//1798
+f 2493//1803 2478//1787 2492//1799
+f 2507//1804 2492//1799 2506//1800
+f 2502//1805 2487//1785 2501//1801
+f 2497//1795 2512//1814 2513//1802
+f 2508//1821 2493//1803 2507//1804
+f 2503//1808 2488//1789 2502//1805
+f 2498//1798 2513//1802 2514//1806
+f 2493//1803 2508//1821 2509//1807
+f 2504//1811 2489//1792 2503//1808
+f 2499//1786 2514//1806 2515//1809
+f 2494//1788 2509//1807 2510//1810
+f 2505//1813 2490//1794 2504//1811
+f 2495//1791 2510//1810 2511//1812
+f 2506//1800 2491//1796 2505//1813
+f 2496//1793 2511//1812 2512//1814
+f 2510//1810 2525//1828 2526//1815
+f 2521//1818 2506//1800 2520//1816
+f 2511//1812 2526//1815 2527//1817
+f 2522//1822 2507//1804 2521//1818
+f 2517//1823 2502//1805 2516//1819
+f 2512//1814 2527//1817 2528//1820
+f 2523//1838 2508//1821 2522//1822
+f 2518//1826 2503//1808 2517//1823
+f 2513//1802 2528//1820 2529//1824
+f 2508//1821 2523//1838 2524//1825
+f 2519//1829 2504//1811 2518//1826
+f 2514//1806 2529//1824 2530//1827
+f 2509//1807 2524//1825 2525//1828
+f 2520//1816 2505//1813 2519//1829
+f 2545//1847 2530//1827 2544//1830
+f 2524//1825 2539//1842 2540//1831
+f 2519//1829 2534//1843 2535//1832
+f 2525//1828 2540//1831 2541//1833
+f 2520//1816 2535//1832 2536//1834
+f 2526//1815 2541//1833 2542//1835
+f 2521//1818 2536//1834 2537//1836
+f 2516//1819 2531//1854 2532//1837
+f 2543//1841 2528//1820 2542//1835
+f 2522//1822 2537//1836 2538//1839
+f 2517//1823 2532//1837 2533//1840
+f 2544//1830 2529//1824 2543//1841
+f 2523//1838 2538//1839 2539//1842
+f 2518//1826 2533//1840 2534//1843
+f 2559//1848 2544//1830 2558//1844
+f 2538//1839 2553//1857 2554//1845
+f 2533//1840 2548//1858 2549//1846
+f 2560//1866 2545//1847 2559//1848
+f 2555//1850 2540//1831 2554//1845
+f 2534//1843 2549//1846 2550//1849
+f 2556//1852 2541//1833 2555//1850
+f 2535//1832 2550//1849 2551//1851
+f 2557//1856 2542//1835 2556//1852
+f 2536//1834 2551//1851 2552//1853
+f 2531//1854 2546//1859 2547//1855
+f 2558//1844 2543//1841 2557//1856
+f 2537//1836 2552//1853 2553//1857
+f 2532//1837 2547//1855 2548//1858
+f 2546//1859 2561//1877 2562//1860
+f 2573//1864 2558//1844 2572//1861
+f 2552//1853 2567//1873 2568//1862
+f 2547//1855 2562//1860 2563//1863
+f 2574//1867 2559//1848 2573//1864
+f 2569//1868 2554//1845 2568//1862
+f 2548//1858 2563//1863 2564//1865
+f 2575//1884 2560//1866 2574//1867
+f 2570//1870 2555//1850 2569//1868
+f 2549//1846 2564//1865 2565//1869
+f 2571//1872 2556//1852 2570//1870
+f 2550//1849 2565//1869 2566//1871
+f 2572//1861 2557//1856 2571//1872
+f 2551//1851 2566//1871 2567//1873
+f 2565//1869 2580//1887 2581//1874
+f 2587//1879 2572//1861 2586//1875
+f 2566//1871 2581//1874 2582//1876
+f 2561//1877 2576//1895 2577//1878
+f 2588//1882 2573//1864 2587//1879
+f 2567//1873 2582//1876 2583//1880
+f 2562//1860 2577//1878 2578//1881
+f 2589//1885 2574//1867 2588//1882
+f 2584//1886 2569//1868 2583//1880
+f 2563//1863 2578//1881 2579//1883
+f 2590//1902 2575//1884 2589//1885
+f 2585//1888 2570//1870 2584//1886
+f 2564//1865 2579//1883 2580//1887
+f 2586//1875 2571//1872 2585//1888
+f 2600//1891 2585//1888 2599//1889
+f 2579//1883 2594//1901 2595//1890
+f 2601//1893 2586//1875 2600//1891
+f 2580//1887 2595//1890 2596//1892
+f 2602//1897 2587//1879 2601//1893
+f 2581//1874 2596//1892 2597//1894
+f 2576//1895 2591//1914 2592//1896
+f 2603//1900 2588//1882 2602//1897
+f 2582//1876 2597//1894 2598//1898
+f 2577//1878 2592//1896 2593//1899
+f 2604//1903 2589//1885 2603//1900
+f 2599//1889 2584//1886 2598//1898
+f 2578//1881 2593//1899 2594//1901
+f 2605//1907 2590//1902 2604//1903
+f 2619//1908 2604//1903 2618//1904
+f 2598//1898 2613//1917 2614//1905
+f 2593//1899 2608//1918 2609//1906
+f 2620//1927 2605//1907 2619//1908
+f 2615//1910 2600//1891 2614//1905
+f 2594//1901 2609//1906 2610//1909
+f 2616//1912 2601//1893 2615//1910
+f 2595//1890 2610//1909 2611//1911
+f 2617//1916 2602//1897 2616//1912
+f 2596//1892 2611//1911 2612//1913
+f 2591//1914 2606//1919 2607//1915
+f 2618//1904 2603//1900 2617//1916
+f 2597//1894 2612//1913 2613//1917
+f 2592//1896 2607//1915 2608//1918
+f 2606//1919 2621//1937 2622//1920
+f 2633//1924 2618//1904 2632//1921
+f 2612//1913 2627//1933 2628//1922
+f 2607//1915 2622//1920 2623//1923
+f 2634//1928 2619//1908 2633//1924
+f 2613//1917 2628//1922 2629//1925
+f 2608//1918 2623//1923 2624//1926
+f 2635//1945 2620//1927 2634//1928
+f 2630//1930 2615//1910 2629//1925
+f 2609//1906 2624//1926 2625//1929
+f 2631//1932 2616//1912 2630//1930
+f 2610//1909 2625//1929 2626//1931
+f 2632//1921 2617//1916 2631//1932
+f 2611//1911 2626//1931 2627//1933
+f 2625//1929 2640//1947 2641//1934
+f 2647//1939 2632//1921 2646//1935
+f 2626//1931 2641//1934 2642//1936
+f 2621//1937 2636//1955 2637//1938
+f 2648//1942 2633//1924 2647//1939
+f 2627//1933 2642//1936 2643//1940
+f 2622//1920 2637//1938 2638//1941
+f 2649//1946 2634//1928 2648//1942
+f 2628//1922 2643//1940 2644//1943
+f 2623//1923 2638//1941 2639//1944
+f 2650//1963 2635//1945 2649//1946
+f 2645//1948 2630//1930 2644//1943
+f 2624//1926 2639//1944 2640//1947
+f 2646//1935 2631//1932 2645//1948
+f 2644//1943 2659//1961 2660//1949
+f 2639//1944 2654//1962 2655//1950
+f 2645//1948 2660//1949 2661//1951
+f 2640//1947 2655//1950 2656//1952
+f 2646//1935 2661//1951 2662//1953
+f 2641//1934 2656//1952 2657//1954
+f 2652//1975 2637//1938 2651//1956
+f 2647//1939 2662//1953 2663//1957
+f 2642//1936 2657//1954 2658//1958
+f 2637//1938 2652//1975 2653//1959
+f 2648//1942 2663//1957 2664//1960
+f 2643//1940 2658//1958 2659//1961
+f 2638//1941 2653//1959 2654//1962
+f 2649//1946 2664//1960 2665//1964
+f 2663//1957 2678//1977 2679//1965
+f 2658//1958 2673//1978 2674//1966
+f 2669//1970 2654//1962 2668//1967
+f 2664//1960 2679//1965 2680//1968
+f 2659//1961 2674//1966 2675//1969
+f 2670//1972 2655//1950 2669//1970
+f 2660//1949 2675//1969 2676//1971
+f 2671//1974 2656//1952 2670//1972
+f 2661//1951 2676//1971 2677//1973
+f 2672//1981 2657//1954 2671//1974
+f 2667//1979 2652//1975 2666//1976
+f 2662//1953 2677//1973 2678//1977
+f 2657//1954 2672//1981 2673//1978
+f 2668//1967 2653//1959 2667//1979
+f 2677//1973 2692//1992 2693//1980
+f 2688//1999 2673//1978 2687//1982
+f 2683//1986 2668//1967 2682//1983
+f 2678//1977 2693//1980 2694//1984
+f 2673//1978 2688//1999 2689//1985
+f 2684//1989 2669//1970 2683//1986
+f 2679//1965 2694//1984 2695//1987
+f 2674//1966 2689//1985 2690//1988
+f 2685//1991 2670//1972 2684//1989
+f 2675//1969 2690//1988 2691//1990
+f 2686//1993 2671//1974 2685//1991
+f 2676//1971 2691//1990 2692//1992
+f 2687//1982 2672//1981 2686//1993
+f 2682//1983 2667//1979 2681//1994
+f 2691//1990 2706//2008 2707//1995
+f 2702//2000 2687//1982 2701//1996
+f 2697//2001 2682//1983 2696//1997
+f 2692//1992 2707//1995 2708//1998
+f 2703//2017 2688//1999 2702//2000
+f 2698//2004 2683//1986 2697//2001
+f 2693//1980 2708//1998 2709//2002
+f 2688//1999 2703//2017 2704//2003
+f 2699//2007 2684//1989 2698//2004
+f 2694//1984 2709//2002 2710//2005
+f 2689//1985 2704//2003 2705//2006
+f 2700//2009 2685//1991 2699//2007
+f 2690//1988 2705//2006 2706//2008
+f 2701//1996 2686//1993 2700//2009
+f 2715//2012 2700//2009 2714//2010
+f 2705//2006 2720//2024 2721//2011
+f 2716//2014 2701//1996 2715//2012
+f 2706//2008 2721//2011 2722//2013
+f 2717//2018 2702//2000 2716//2014
+f 2712//2019 2697//2001 2711//2015
+f 2707//1995 2722//2013 2723//2016
+f 2718//2025 2703//2017 2717//2018
+f 2713//2022 2698//2004 2712//2019
+f 2708//1998 2723//2016 2724//2020
+f 2703//2017 2718//2025 2719//2021
+f 2714//2010 2699//2007 2713//2022
+f 2709//2002 2724//2020 2725//2023
+f 2704//2003 2719//2021 2720//2024
+f 2718//2025 2733//2041 2734//2026
+f 2729//2030 2714//2010 2728//2027
+f 2724//2020 2739//2039 2740//2028
+f 2719//2021 2734//2026 2735//2029
+f 2730//2032 2715//2012 2729//2030
+f 2720//2024 2735//2029 2736//2031
+f 2731//2034 2716//2014 2730//2032
+f 2721//2011 2736//2031 2737//2033
+f 2732//2037 2717//2018 2731//2034
+f 2727//2038 2712//2019 2726//2035
+f 2722//2013 2737//2033 2738//2036
+f 2733//2041 2718//2025 2732//2037
+f 2728//2027 2713//2022 2727//2038
+f 2723//2016 2738//2036 2739//2039
+f 2737//2033 2753//2052 2754//2040
+f 2749//2059 2733//2041 2748//2042
+f 2744//2046 2728//2027 2743//2043
+f 2738//2036 2754//2040 2755//2044
+f 2733//2041 2749//2059 2750//2045
+f 2745//2049 2729//2030 2744//2046
+f 2739//2039 2755//2044 2756//2047
+f 2734//2026 2750//2045 2751//2048
+f 2746//2051 2730//2032 2745//2049
+f 2735//2029 2751//2048 2752//2050
+f 2747//2053 2731//2034 2746//2051
+f 2736//2031 2752//2050 2753//2052
+f 2748//2042 2732//2037 2747//2053
+f 2743//2043 2727//2038 2742//2054
+f 2752//2050 2767//2068 2768//2055
+f 2763//2060 2748//2042 2762//2056
+f 2758//2061 2743//2043 2757//2057
+f 2753//2052 2768//2055 2769//2058
+f 2764//2077 2749//2059 2763//2060
+f 2759//2064 2744//2046 2758//2061
+f 2754//2040 2769//2058 2770//2062
+f 2749//2059 2764//2077 2765//2063
+f 2760//2067 2745//2049 2759//2064
+f 2755//2044 2770//2062 2771//2065
+f 2750//2045 2765//2063 2766//2066
+f 2761//2069 2746//2051 2760//2067
+f 2751//2048 2766//2066 2767//2068
+f 2762//2056 2747//2053 2761//2069
+f 2776//2072 2761//2069 2775//2070
+f 2782//2073 2767//2068 2781//2071
+f 2777//2074 2762//2056 2776//2072
+f 2783//2076 2768//2055 2782//2073
+f 2778//2078 2763//2060 2777//2074
+f 2757//2057 2772//2094 2773//2075
+f 2784//2080 2769//2058 2783//2076
+f 2779//2081 2764//2077 2778//2078
+f 2758//2061 2773//2075 2774//2079
+f 2785//2082 2770//2062 2784//2080
+f 2780//2083 2765//2063 2779//2081
+f 2759//2064 2774//2079 2775//2070
+f 2786//2086 2771//2065 2785//2082
+f 2781//2071 2766//2066 2780//2083
+f 2795//2088 2780//2083 2794//2084
+f 2774//2079 2789//2097 2790//2085
+f 2801//2104 2786//2086 2800//2087
+f 2796//2090 2781//2071 2795//2088
+f 2775//2070 2790//2085 2791//2089
+f 2797//2092 2782//2073 2796//2090
+f 2776//2072 2791//2089 2792//2091
+f 2798//2096 2783//2076 2797//2092
+f 2777//2074 2792//2091 2793//2093
+f 2772//2094 2787//2112 2788//2095
+f 2799//2098 2784//2080 2798//2096
+f 2794//2084 2779//2081 2793//2093
+f 2773//2075 2788//2095 2789//2097
+f 2800//2087 2785//2082 2799//2098
+f 2814//2102 2799//2098 2813//2099
+f 2793//2093 2808//2111 2809//2100
+f 2788//2095 2803//2113 2804//2101
+f 2815//2105 2800//2087 2814//2102
+f 2810//2106 2795//2088 2809//2100
+f 2789//2097 2804//2101 2805//2103
+f 2816//2123 2801//2104 2815//2105
+f 2811//2108 2796//2090 2810//2106
+f 2790//2085 2805//2103 2806//2107
+f 2812//2110 2797//2092 2811//2108
+f 2791//2089 2806//2107 2807//2109
+f 2813//2099 2798//2096 2812//2110
+f 2792//2091 2807//2109 2808//2111
+f 2787//2112 2802//2116 2803//2113
+f 2828//2118 2813//2099 2827//2114
+f 2807//2109 2822//2128 2823//2115
+f 2802//2116 2817//2133 2818//2117
+f 2829//2121 2814//2102 2828//2118
+f 2808//2111 2823//2115 2824//2119
+f 2803//2113 2818//2117 2819//2120
+f 2830//2124 2815//2105 2829//2121
+f 2825//2125 2810//2106 2824//2119
+f 2804//2101 2819//2120 2820//2122
+f 2831//2140 2816//2123 2830//2124
+f 2826//2127 2811//2108 2825//2125
+f 2805//2103 2820//2122 2821//2126
+f 2827//2114 2812//2110 2826//2127
+f 2806//2107 2821//2126 2822//2128
+f 2842//2131 2827//2114 2841//2129
+f 2821//2126 2836//2143 2837//2130
+f 2843//2135 2828//2118 2842//2131
+f 2822//2128 2837//2130 2838//2132
+f 2817//2133 2832//2153 2833//2134
+f 2844//2138 2829//2121 2843//2135
+f 2823//2115 2838//2132 2839//2136
+f 2818//2117 2833//2134 2834//2137
+f 2845//2141 2830//2124 2844//2138
+f 2840//2142 2825//2125 2839//2136
+f 2819//2120 2834//2137 2835//2139
+f 2846//2145 2831//2140 2845//2141
+f 2841//2129 2826//2127 2840//2142
+f 2820//2122 2835//2139 2836//2143
+f 2834//2137 2849//2156 2850//2144
+f 2861//2164 2846//2145 2860//2146
+f 2856//2149 2841//2129 2855//2147
+f 2835//2139 2850//2144 2851//2148
+f 2857//2151 2842//2131 2856//2149
+f 2836//2143 2851//2148 2852//2150
+f 2858//2155 2843//2135 2857//2151
+f 2837//2130 2852//2150 2853//2152
+f 2832//2153 2847//2171 2848//2154
+f 2859//2157 2844//2138 2858//2155
+f 2854//2158 2839//2136 2853//2152
+f 2833//2134 2848//2154 2849//2156
+f 2860//2146 2845//2141 2859//2157
+f 2855//2147 2840//2142 2854//2158
+f 2870//2162 2854//2158 2869//2159
+f 2848//2154 2864//2172 2865//2160
+f 2876//2165 2860//2146 2875//2161
+f 2871//2166 2855//2147 2870//2162
+f 2849//2156 2865//2160 2866//2163
+f 2877//2183 2861//2164 2876//2165
+f 2872//2168 2856//2149 2871//2166
+f 2850//2144 2866//2163 2867//2167
+f 2873//2170 2857//2151 2872//2168
+f 2851//2148 2867//2167 2868//2169
+f 2874//2173 2858//2155 2873//2170
+f 2852//2150 2868//2169 2869//2159
+f 2847//2171 2863//2176 2864//2172
+f 2875//2161 2859//2157 2874//2173
+f 2889//2178 2874//2173 2888//2174
+f 2868//2169 2883//2188 2884//2175
+f 2863//2176 2878//2192 2879//2177
+f 2890//2180 2875//2161 2889//2178
+f 2885//2181 2870//2162 2884//2175
+f 2864//2172 2879//2177 2880//2179
+f 2891//2184 2876//2165 2890//2180
+f 2886//2185 2871//2166 2885//2181
+f 2865//2160 2880//2179 2881//2182
+f 2892//2191 2877//2183 2891//2184
+f 2887//2187 2872//2168 2886//2185
+f 2866//2163 2881//2182 2882//2186
+f 2888//2174 2873//2170 2887//2187
+f 2867//2167 2882//2186 2883//2188
+f 2421//1736 2888//2174 2420//1732
+f 2416//1712 2883//2188 2415//1734
+f 2422//1718 2889//2178 2421//1736
+f 2417//1711 2884//2175 2416//1712
+f 2412//1714 2879//2177 2411//1715
+f 2423//1717 2890//2180 2422//1718
+f 2418//1720 2885//2181 2417//1711
+f 2413//1722 2880//2179 2412//1714
+f 2424//1724 2891//2184 2423//1717
+f 2419//1726 2886//2185 2418//1720
+f 2414//1728 2881//2182 2413//1722
+f 2891//2184 2424//1724 2425//1730
+f 2420//1732 2887//2187 2419//1726
+f 2415//1734 2882//2186 2414//1728
+f 2914//1721 2899//1711 2913//1713
+f 2909//2196 2894//1714 2908//2194
+f 2904//1718 2919//1739 2920//1719
+f 2915//1727 2900//1720 2914//1721
+f 2910//2197 2895//1722 2909//2196
+f 2905//2195 2920//1719 2921//1725
+f 2916//1746 2901//1726 2915//1727
+f 2911//1735 2896//1728 2910//2197
+f 2906//1724 2921//1725 2922//2199
+f 2901//1726 2916//1746 2917//1733
+f 2912//1738 2897//1734 2911//1735
+f 2902//1732 2917//1733 2918//1737
+f 2913//1713 2898//2193 2912//1738
+f 2903//2200 2918//1737 2919//1739
+f 2929//1743 2914//1721 2928//1740
+f 2924//1744 2909//2196 2923//2201
+f 2919//1739 2934//2205 2935//2202
+f 2930//2209 2915//1727 2929//1743
+f 2925//1748 2910//2197 2924//1744
+f 2920//1719 2935//2202 2936//2203
+f 2915//1727 2930//2209 2931//1747
+f 2926//1751 2911//1735 2925//1748
+f 2921//1725 2936//2203 2937//1749
+f 2916//1746 2931//1747 2932//1750
+f 2927//2204 2912//1738 2926//1751
+f 2917//1733 2932//1750 2933//1752
+f 2928//1740 2913//1713 2927//2204
+f 2918//1737 2933//1752 2934//2205
+f 2932//1750 2947//2212 2948//2206
+f 2943//1758 2928//1740 2942//1756
+f 2933//1752 2948//2206 2949//2207
+f 2944//1762 2929//1743 2943//1758
+f 2939//2210 2924//1744 2938//2208
+f 2934//2205 2949//2207 2950//1760
+f 2945//1779 2930//2209 2944//1762
+f 2940//1766 2925//1748 2939//2210
+f 2935//2202 2950//1760 2951//1764
+f 2930//2209 2945//1779 2946//1765
+f 2941//2213 2926//1751 2940//1766
+f 2936//2203 2951//1764 2952//2211
+f 2931//1747 2946//1765 2947//2212
+f 2942//1756 2927//2204 2941//2213
+f 2951//1764 2966//1782 2967//1770
+f 2946//1765 2961//2217 2962//2214
+f 2957//1774 2942//1756 2956//1772
+f 2947//2212 2962//2214 2963//2215
+f 2958//1776 2943//1758 2957//1774
+f 2948//2206 2963//2215 2964//1775
+f 2959//1780 2944//1762 2958//1776
+f 2954//1781 2939//2210 2953//2216
+f 2949//2207 2964//1775 2965//1778
+f 2960//1787 2945//1779 2959//1780
+f 2955//2218 2940//1766 2954//1781
+f 2950//1760 2965//1778 2966//1782
+f 2945//1779 2960//1787 2961//2217
+f 2956//1772 2941//2213 2955//2218
+f 2970//2219 2955//2218 2969//1785
+f 2965//1778 2980//2222 2981//1786
+f 2960//1787 2975//1803 2976//1788
+f 2971//1792 2956//1772 2970//2219
+f 2966//1782 2981//1786 2982//2220
+f 2961//2217 2976//1788 2977//1791
+f 2972//2221 2957//1774 2971//1792
+f 2962//2214 2977//1791 2978//1793
+f 2973//1796 2958//1776 2972//2221
+f 2963//2215 2978//1793 2979//1795
+f 2974//1799 2959//1780 2973//1796
+f 2969//1785 2954//1781 2968//1797
+f 2964//1775 2979//1795 2980//2222
+f 2975//1803 2960//1787 2974//1799
+f 2989//1804 2974//1799 2988//1800
+f 2984//1805 2969//1785 2983//1801
+f 2979//1795 2994//1814 2995//1802
+f 2990//1821 2975//1803 2989//1804
+f 2985//1808 2970//2219 2984//1805
+f 2980//2222 2995//1802 2996//1806
+f 2975//1803 2990//1821 2991//1807
+f 2986//1811 2971//1792 2985//1808
+f 2981//1786 2996//1806 2997//2223
+f 2976//1788 2991//1807 2992//1810
+f 2987//1813 2972//2221 2986//1811
+f 2977//1791 2992//1810 2993//1812
+f 2988//1800 2973//1796 2987//1813
+f 2978//1793 2993//1812 2994//1814
+f 2992//1810 3007//1828 3008//2224
+f 3003//1818 2988//1800 3002//1816
+f 2993//1812 3008//2224 3009//1817
+f 3004//1822 2989//1804 3003//1818
+f 2999//1823 2984//1805 2998//1819
+f 2994//1814 3009//1817 3010//1820
+f 3005//2226 2990//1821 3004//1822
+f 3000//1826 2985//1808 2999//1823
+f 2995//1802 3010//1820 3011//1824
+f 2990//1821 3005//2226 3006//1825
+f 3001//1829 2986//1811 3000//1826
+f 2996//1806 3011//1824 3012//1827
+f 2991//1807 3006//1825 3007//1828
+f 3002//1816 2987//1813 3001//1829
+f 3027//1847 3012//1827 3026//2225
+f 3006//1825 3021//1842 3022//1831
+f 3001//1829 3016//1843 3017//1832
+f 3007//1828 3022//1831 3023//1833
+f 3002//1816 3017//1832 3018//1834
+f 3008//2224 3023//1833 3024//1835
+f 3003//1818 3018//1834 3019//1836
+f 2998//1819 3013//1854 3014//1837
+f 3025//1841 3010//1820 3024//1835
+f 3004//1822 3019//1836 3020//1839
+f 2999//1823 3014//1837 3015//1840
+f 3026//2225 3011//1824 3025//1841
+f 3005//2226 3020//1839 3021//1842
+f 3000//1826 3015//1840 3016//1843
+f 3041//1848 3026//2225 3040//1844
+f 3020//1839 3035//2229 3036//1845
+f 3015//1840 3030//1858 3031//1846
+f 3042//1866 3027//1847 3041//1848
+f 3037//2228 3022//1831 3036//1845
+f 3016//1843 3031//1846 3032//2227
+f 3038//1852 3023//1833 3037//2228
+f 3017//1832 3032//2227 3033//1851
+f 3039//1856 3024//1835 3038//1852
+f 3018//1834 3033//1851 3034//1853
+f 3013//1854 3028//1859 3029//1855
+f 3040//1844 3025//1841 3039//1856
+f 3019//1836 3034//1853 3035//2229
+f 3014//1837 3029//1855 3030//1858
+f 3028//1859 3043//1877 3044//1860
+f 3055//2231 3040//1844 3054//2230
+f 3034//1853 3049//2234 3050//1862
+f 3029//1855 3044//1860 3045//1863
+f 3056//1867 3041//1848 3055//2231
+f 3051//2232 3036//1845 3050//1862
+f 3030//1858 3045//1863 3046//1865
+f 3057//1884 3042//1866 3056//1867
+f 3052//1870 3037//2228 3051//2232
+f 3031//1846 3046//1865 3047//1869
+f 3053//1872 3038//1852 3052//1870
+f 3032//2227 3047//1869 3048//2233
+f 3054//2230 3039//1856 3053//1872
+f 3033//1851 3048//2233 3049//2234
+f 3047//1869 3062//1887 3063//1874
+f 3069//1879 3054//2230 3068//1875
+f 3048//2233 3063//1874 3064//1876
+f 3043//1877 3058//1895 3059//1878
+f 3070//2236 3055//2231 3069//1879
+f 3049//2234 3064//1876 3065//2235
+f 3044//1860 3059//1878 3060//1881
+f 3071//1885 3056//1867 3070//2236
+f 3066//1886 3051//2232 3065//2235
+f 3045//1863 3060//1881 3061//1883
+f 3072//1902 3057//1884 3071//1885
+f 3067//2237 3052//1870 3066//1886
+f 3046//1865 3061//1883 3062//1887
+f 3068//1875 3053//1872 3067//2237
+f 3082//1891 3067//2237 3081//2238
+f 3061//1883 3076//1901 3077//2239
+f 3083//1893 3068//1875 3082//1891
+f 3062//1887 3077//2239 3078//1892
+f 3084//1897 3069//1879 3083//1893
+f 3063//1874 3078//1892 3079//1894
+f 3058//1895 3073//2240 3074//1896
+f 3085//1900 3070//2236 3084//1897
+f 3064//1876 3079//1894 3080//1898
+f 3059//1878 3074//1896 3075//1899
+f 3086//1903 3071//1885 3085//1900
+f 3081//2238 3066//1886 3080//1898
+f 3060//1881 3075//1899 3076//1901
+f 3087//1907 3072//1902 3086//1903
+f 3101//1908 3086//1903 3100//1904
+f 3080//1898 3095//1917 3096//1905
+f 3075//1899 3090//2241 3091//1906
+f 3102//1927 3087//1907 3101//1908
+f 3097//1910 3082//1891 3096//1905
+f 3076//1901 3091//1906 3092//1909
+f 3098//1912 3083//1893 3097//1910
+f 3077//2239 3092//1909 3093//1911
+f 3099//1916 3084//1897 3098//1912
+f 3078//1892 3093//1911 3094//1913
+f 3073//2240 3088//2242 3089//1915
+f 3100//1904 3085//1900 3099//1916
+f 3079//1894 3094//1913 3095//1917
+f 3074//1896 3089//1915 3090//2241
+f 3088//2242 3103//2246 3104//2243
+f 3115//1924 3100//1904 3114//1921
+f 3094//1913 3109//1933 3110//1922
+f 3089//1915 3104//2243 3105//1923
+f 3116//1928 3101//1908 3115//1924
+f 3095//1917 3110//1922 3111//1925
+f 3090//2241 3105//1923 3106//2244
+f 3117//2247 3102//1927 3116//1928
+f 3112//2245 3097//1910 3111//1925
+f 3091//1906 3106//2244 3107//1929
+f 3113//1932 3098//1912 3112//2245
+f 3092//1909 3107//1929 3108//1931
+f 3114//1921 3099//1916 3113//1932
+f 3093//1911 3108//1931 3109//1933
+f 3107//1929 3122//2248 3123//1934
+f 3129//1939 3114//1921 3128//1935
+f 3108//1931 3123//1934 3124//1936
+f 3103//2246 3118//2250 3119//1938
+f 3130//1942 3115//1924 3129//1939
+f 3109//1933 3124//1936 3125//1940
+f 3104//2243 3119//1938 3120//1941
+f 3131//1946 3116//1928 3130//1942
+f 3110//1922 3125//1940 3126//1943
+f 3105//1923 3120//1941 3121//1944
+f 3132//2252 3117//2247 3131//1946
+f 3127//1948 3112//2245 3126//1943
+f 3106//2244 3121//1944 3122//2248
+f 3128//1935 3113//1932 3127//1948
+f 3126//1943 3141//1961 3142//1949
+f 3121//1944 3136//1962 3137//1950
+f 3127//1948 3142//1949 3143//1951
+f 3122//2248 3137//1950 3138//2249
+f 3128//1935 3143//1951 3144//1953
+f 3123//1934 3138//2249 3139//1954
+f 3134//1975 3119//1938 3133//2251
+f 3129//1939 3144//1953 3145//1957
+f 3124//1936 3139//1954 3140//1958
+f 3119//1938 3134//1975 3135//1959
+f 3130//1942 3145//1957 3146//1960
+f 3125//1940 3140//1958 3141//1961
+f 3120//1941 3135//1959 3136//1962
+f 3131//1946 3146//1960 3147//1964
+f 3145//1957 3160//1977 3161//2253
+f 3140//1958 3155//1978 3156//1966
+f 3151//1970 3136//1962 3150//1967
+f 3146//1960 3161//2253 3162//1968
+f 3141//1961 3156//1966 3157//1969
+f 3152//2254 3137//1950 3151//1970
+f 3142//1949 3157//1969 3158//1971
+f 3153//1974 3138//2249 3152//2254
+f 3143//1951 3158//1971 3159//1973
+f 3154//1981 3139//1954 3153//1974
+f 3149//1979 3134//1975 3148//1976
+f 3144//1953 3159//1973 3160//1977
+f 3139//1954 3154//1981 3155//1978
+f 3150//1967 3135//1959 3149//1979
+f 3159//1973 3174//1992 3175//1980
+f 3170//2261 3155//1978 3169//2255
+f 3165//1986 3150//1967 3164//1983
+f 3160//1977 3175//1980 3176//1984
+f 3155//1978 3170//2261 3171//2256
+f 3166//2258 3151//1970 3165//1986
+f 3161//2253 3176//1984 3177//2257
+f 3156//1966 3171//2256 3172//1988
+f 3167//1991 3152//2254 3166//2258
+f 3157//1969 3172//1988 3173//1990
+f 3168//1993 3153//1974 3167//1991
+f 3158//1971 3173//1990 3174//1992
+f 3169//2255 3154//1981 3168//1993
+f 3164//1983 3149//1979 3163//1994
+f 3173//1990 3188//2008 3189//2259
+f 3184//2262 3169//2255 3183//2260
+f 3179//2001 3164//1983 3178//1997
+f 3174//1992 3189//2259 3190//1998
+f 3185//2017 3170//2261 3184//2262
+f 3180//2264 3165//1986 3179//2001
+f 3175//1980 3190//1998 3191//2263
+f 3170//2261 3185//2017 3186//2003
+f 3181//2007 3166//2258 3180//2264
+f 3176//1984 3191//2263 3192//2005
+f 3171//2256 3186//2003 3187//2006
+f 3182//2265 3167//1991 3181//2007
+f 3172//1988 3187//2006 3188//2008
+f 3183//2260 3168//1993 3182//2265
+f 3197//2267 3182//2265 3196//2010
+f 3187//2006 3202//2024 3203//2266
+f 3198//2014 3183//2260 3197//2267
+f 3188//2008 3203//2266 3204//2013
+f 3199//2269 3184//2262 3198//2014
+f 3194//2019 3179//2001 3193//2268
+f 3189//2259 3204//2013 3205//2016
+f 3200//2025 3185//2017 3199//2269
+f 3195//2270 3180//2264 3194//2019
+f 3190//1998 3205//2016 3206//2020
+f 3185//2017 3200//2025 3201//2021
+f 3196//2010 3181//2007 3195//2270
+f 3191//2263 3206//2020 3207//2023
+f 3186//2003 3201//2021 3202//2024
+f 3200//2025 3215//2041 3216//2026
+f 3211//2030 3196//2010 3210//2027
+f 3206//2020 3221//2275 3222//2271
+f 3201//2021 3216//2026 3217//2029
+f 3212//2032 3197//2267 3211//2030
+f 3202//2024 3217//2029 3218//2031
+f 3213//2034 3198//2014 3212//2032
+f 3203//2266 3218//2031 3219//2272
+f 3214//2037 3199//2269 3213//2034
+f 3209//2038 3194//2019 3208//2273
+f 3204//2013 3219//2272 3220//2274
+f 3215//2041 3200//2025 3214//2037
+f 3210//2027 3195//2270 3209//2038
+f 3205//2016 3220//2274 3221//2275
+f 3219//2272 3235//2052 3236//2276
+f 3231//2059 3215//2041 3230//2042
+f 3226//2046 3210//2027 3225//2043
+f 3220//2274 3236//2276 3237//2277
+f 3215//2041 3231//2059 3232//2045
+f 3227//2049 3211//2030 3226//2046
+f 3221//2275 3237//2277 3238//2278
+f 3216//2026 3232//2045 3233//2048
+f 3228//2051 3212//2032 3227//2049
+f 3217//2029 3233//2048 3234//2050
+f 3229//2053 3213//2034 3228//2051
+f 3218//2031 3234//2050 3235//2052
+f 3230//2042 3214//2037 3229//2053
+f 3225//2043 3209//2038 3224//2054
+f 3234//2050 3249//2068 3250//2055
+f 3245//2060 3230//2042 3244//2056
+f 3240//2061 3225//2043 3239//2279
+f 3235//2052 3250//2055 3251//2058
+f 3246//2077 3231//2059 3245//2060
+f 3241//2064 3226//2046 3240//2061
+f 3236//2276 3251//2058 3252//2062
+f 3231//2059 3246//2077 3247//2063
+f 3242//2067 3227//2049 3241//2064
+f 3237//2277 3252//2062 3253//2280
+f 3232//2045 3247//2063 3248//2066
+f 3243//2281 3228//2051 3242//2067
+f 3233//2048 3248//2066 3249//2068
+f 3244//2056 3229//2053 3243//2281
+f 3258//2072 3243//2281 3257//2070
+f 3264//2073 3249//2068 3263//2071
+f 3259//2074 3244//2056 3258//2072
+f 3265//2076 3250//2055 3264//2073
+f 3260//2078 3245//2060 3259//2074
+f 3239//2279 3254//2094 3255//2282
+f 3266//2080 3251//2058 3265//2076
+f 3261//2081 3246//2077 3260//2078
+f 3240//2061 3255//2282 3256//2079
+f 3267//2082 3252//2062 3266//2080
+f 3262//2083 3247//2063 3261//2081
+f 3241//2064 3256//2079 3257//2070
+f 3268//2284 3253//2280 3267//2082
+f 3263//2071 3248//2066 3262//2083
+f 3277//2088 3262//2083 3276//2283
+f 3256//2079 3271//2097 3272//2085
+f 3283//2104 3268//2284 3282//2087
+f 3278//2090 3263//2071 3277//2088
+f 3257//2070 3272//2085 3273//2089
+f 3279//2092 3264//2073 3278//2090
+f 3258//2072 3273//2089 3274//2091
+f 3280//2096 3265//2076 3279//2092
+f 3259//2074 3274//2091 3275//2093
+f 3254//2094 3269//2112 3270//2095
+f 3281//2098 3266//2080 3280//2096
+f 3276//2283 3261//2081 3275//2093
+f 3255//2282 3270//2095 3271//2097
+f 3282//2087 3267//2082 3281//2098
+f 3296//2102 3281//2098 3295//2099
+f 3275//2093 3290//2287 3291//2100
+f 3270//2095 3285//2113 3286//2285
+f 3297//2105 3282//2087 3296//2102
+f 3292//2286 3277//2088 3291//2100
+f 3271//2097 3286//2285 3287//2103
+f 3298//2123 3283//2104 3297//2105
+f 3293//2108 3278//2090 3292//2286
+f 3272//2085 3287//2103 3288//2107
+f 3294//2110 3279//2092 3293//2108
+f 3273//2089 3288//2107 3289//2109
+f 3295//2099 3280//2096 3294//2110
+f 3274//2091 3289//2109 3290//2287
+f 3269//2112 3284//2116 3285//2113
+f 3310//2118 3295//2099 3309//2288
+f 3289//2109 3304//2290 3305//2115
+f 3284//2116 3299//2133 3300//2117
+f 3311//2121 3296//2102 3310//2118
+f 3290//2287 3305//2115 3306//2119
+f 3285//2113 3300//2117 3301//2120
+f 3312//2124 3297//2105 3311//2121
+f 3307//2125 3292//2286 3306//2119
+f 3286//2285 3301//2120 3302//2122
+f 3313//2140 3298//2123 3312//2124
+f 3308//2289 3293//2108 3307//2125
+f 3287//2103 3302//2122 3303//2126
+f 3309//2288 3294//2110 3308//2289
+f 3288//2107 3303//2126 3304//2290
+f 3324//2131 3309//2288 3323//2129
+f 3303//2126 3318//2143 3319//2130
+f 3325//2292 3310//2118 3324//2131
+f 3304//2290 3319//2130 3320//2291
+f 3299//2133 3314//2153 3315//2134
+f 3326//2138 3311//2121 3325//2292
+f 3305//2115 3320//2291 3321//2136
+f 3300//2117 3315//2134 3316//2137
+f 3327//2141 3312//2124 3326//2138
+f 3322//2142 3307//2125 3321//2136
+f 3301//2120 3316//2137 3317//2293
+f 3328//2145 3313//2140 3327//2141
+f 3323//2129 3308//2289 3322//2142
+f 3302//2122 3317//2293 3318//2143
+f 3316//2137 3331//2156 3332//2144
+f 3343//2295 3328//2145 3342//2146
+f 3338//2149 3323//2129 3337//2147
+f 3317//2293 3332//2144 3333//2148
+f 3339//2151 3324//2131 3338//2149
+f 3318//2143 3333//2148 3334//2150
+f 3340//2155 3325//2292 3339//2151
+f 3319//2130 3334//2150 3335//2152
+f 3314//2153 3329//2171 3330//2154
+f 3341//2294 3326//2138 3340//2155
+f 3336//2158 3321//2136 3335//2152
+f 3315//2134 3330//2154 3331//2156
+f 3342//2146 3327//2141 3341//2294
+f 3337//2147 3322//2142 3336//2158
+f 3352//2162 3336//2158 3351//2159
+f 3330//2154 3346//2172 3347//2160
+f 3358//2296 3342//2146 3357//2161
+f 3353//2166 3337//2147 3352//2162
+f 3331//2156 3347//2160 3348//2163
+f 3359//2183 3343//2295 3358//2296
+f 3354//2168 3338//2149 3353//2166
+f 3332//2144 3348//2163 3349//2167
+f 3355//2170 3339//2151 3354//2168
+f 3333//2148 3349//2167 3350//2297
+f 3356//2298 3340//2155 3355//2170
+f 3334//2150 3350//2297 3351//2159
+f 3329//2171 3345//2176 3346//2172
+f 3357//2161 3341//2294 3356//2298
+f 3371//2178 3356//2298 3370//2174
+f 3350//2297 3365//2188 3366//2299
+f 3345//2176 3360//2302 3361//2300
+f 3372//2180 3357//2161 3371//2178
+f 3367//2181 3352//2162 3366//2299
+f 3346//2172 3361//2300 3362//2179
+f 3373//2301 3358//2296 3372//2180
+f 3368//2185 3353//2166 3367//2181
+f 3347//2160 3362//2179 3363//2182
+f 3374//2191 3359//2183 3373//2301
+f 3369//2187 3354//2168 3368//2185
+f 3348//2163 3363//2182 3364//2186
+f 3370//2174 3355//2170 3369//2187
+f 3349//2167 3364//2186 3365//2188
+f 2903//2200 3370//2174 2902//1732
+f 2898//2193 3365//2188 2897//1734
+f 2904//1718 3371//2178 2903//2200
+f 2899//1711 3366//2299 2898//2193
+f 2894//1714 3361//2300 2893//1715
+f 2905//2195 3372//2180 2904//1718
+f 2900//1720 3367//2181 2899//1711
+f 2895//1722 3362//2179 2894//1714
+f 2906//1724 3373//2301 2905//2195
+f 2901//1726 3368//2185 2900//1720
+f 2896//1728 3363//2182 2895//1722
+f 3373//2301 2906//1724 2907//2198
+f 2902//1732 3369//2187 2901//1726
+f 2897//1734 3364//2186 2896//1728
+o Hand_R_Sphere.011
+v 0.276990 0.207506 -0.985293
+v 0.262213 0.191256 -0.973294
+v 0.249047 0.176916 -0.960609
+v 0.238000 0.165034 -0.947728
+v 0.229496 0.156070 -0.935144
+v 0.223861 0.150366 -0.923341
+v 0.221312 0.148142 -0.912773
+v 0.221947 0.149484 -0.903846
+v 0.225742 0.154339 -0.896902
+v 0.232551 0.162523 -0.892210
+v 0.242112 0.173718 -0.889948
+v 0.254057 0.187497 -0.890205
+v 0.267928 0.203329 -0.892970
+v 0.283192 0.220605 -0.898136
+v 0.299262 0.238662 -0.905506
+v 0.279455 0.206252 -0.985965
+v 0.267048 0.188797 -0.974612
+v 0.256066 0.173344 -0.962524
+v 0.246934 0.160489 -0.950164
+v 0.240001 0.150725 -0.938009
+v 0.235533 0.144427 -0.926524
+v 0.233703 0.141838 -0.916152
+v 0.234581 0.143056 -0.907291
+v 0.238133 0.148035 -0.900282
+v 0.244223 0.156584 -0.895393
+v 0.252616 0.168374 -0.892813
+v 0.262991 0.182952 -0.892641
+v 0.274947 0.199757 -0.894884
+v 0.288027 0.218145 -0.899455
+v 0.301727 0.237408 -0.906178
+v 0.282442 0.205732 -0.986998
+v 0.272906 0.187776 -0.976639
+v 0.264571 0.171863 -0.965467
+v 0.257758 0.158603 -0.953910
+v 0.252729 0.148507 -0.942413
+v 0.249676 0.141963 -0.931418
+v 0.248717 0.139222 -0.921348
+v 0.249889 0.140389 -0.912589
+v 0.253147 0.145419 -0.905477
+v 0.258366 0.154120 -0.900287
+v 0.265344 0.166156 -0.897218
+v 0.273815 0.181066 -0.896387
+v 0.283452 0.198276 -0.897827
+v 0.293885 0.217125 -0.901482
+v 0.304713 0.236888 -0.907212
+v 0.285835 0.205965 -0.988353
+v 0.279562 0.188234 -0.979297
+v 0.274235 0.172527 -0.969325
+v 0.270057 0.159449 -0.958821
+v 0.267191 0.149502 -0.948188
+v 0.265746 0.143068 -0.937835
+v 0.265777 0.140395 -0.928160
+v 0.267283 0.141585 -0.919534
+v 0.270207 0.146593 -0.912289
+v 0.274436 0.155225 -0.906704
+v 0.279807 0.167151 -0.902993
+v 0.286114 0.181912 -0.901298
+v 0.293115 0.198940 -0.901685
+v 0.300541 0.217582 -0.904140
+v 0.308106 0.237121 -0.908567
+v 0.289505 0.206943 -0.989978
+v 0.286761 0.190152 -0.982483
+v 0.284686 0.175313 -0.973951
+v 0.283359 0.162995 -0.964709
+v 0.282832 0.153671 -0.955111
+v 0.283125 0.147701 -0.945527
+v 0.284226 0.145313 -0.936326
+v 0.286094 0.146599 -0.927860
+v 0.288657 0.151510 -0.920455
+v 0.291815 0.159857 -0.914396
+v 0.295448 0.171320 -0.909916
+v 0.299416 0.185457 -0.907186
+v 0.303566 0.201726 -0.906311
+v 0.307740 0.219501 -0.907326
+v 0.311776 0.238100 -0.910191
+v 0.293310 0.208629 -0.991809
+v 0.294225 0.193458 -0.986076
+v 0.295522 0.180112 -0.979166
+v 0.297152 0.169103 -0.971346
+v 0.299050 0.160854 -0.962916
+v 0.301146 0.155682 -0.954200
+v 0.303357 0.153786 -0.945533
+v 0.305600 0.155238 -0.937247
+v 0.307787 0.159983 -0.929662
+v 0.309836 0.167838 -0.923069
+v 0.311666 0.178503 -0.917721
+v 0.313208 0.191566 -0.913823
+v 0.314403 0.206525 -0.911527
+v 0.315204 0.222807 -0.910919
+v 0.315582 0.239785 -0.912023
+v 0.297105 0.210956 -0.993777
+v 0.301669 0.198024 -0.989936
+v 0.306329 0.186741 -0.984771
+v 0.310905 0.177540 -0.978479
+v 0.315223 0.170775 -0.971304
+v 0.319116 0.166705 -0.963520
+v 0.322434 0.165488 -0.955427
+v 0.325051 0.167169 -0.947335
+v 0.326864 0.171685 -0.939556
+v 0.327806 0.178862 -0.932389
+v 0.327839 0.188423 -0.926108
+v 0.326962 0.200003 -0.920957
+v 0.325209 0.213154 -0.917131
+v 0.322648 0.227373 -0.914779
+v 0.319376 0.242113 -0.913991
+v 0.300743 0.213837 -0.995806
+v 0.308805 0.203675 -0.993916
+v 0.316689 0.194945 -0.990549
+v 0.324091 0.187981 -0.985834
+v 0.330728 0.183052 -0.979951
+v 0.336344 0.180347 -0.973128
+v 0.340724 0.179970 -0.965627
+v 0.343699 0.181935 -0.957735
+v 0.345154 0.186167 -0.949757
+v 0.345034 0.192504 -0.941997
+v 0.343344 0.200701 -0.934756
+v 0.340148 0.210444 -0.928311
+v 0.335570 0.221358 -0.922909
+v 0.329784 0.233024 -0.918759
+v 0.323014 0.244993 -0.916020
+v 0.304085 0.217160 -0.997818
+v 0.315360 0.210193 -0.997863
+v 0.326205 0.204408 -0.996279
+v 0.336203 0.200025 -0.993126
+v 0.344970 0.197214 -0.988527
+v 0.352169 0.196083 -0.982657
+v 0.357524 0.196675 -0.975742
+v 0.360827 0.198968 -0.968049
+v 0.361954 0.202873 -0.959872
+v 0.360859 0.208240 -0.951526
+v 0.357586 0.214863 -0.943331
+v 0.352260 0.222488 -0.935603
+v 0.345086 0.230821 -0.928639
+v 0.336339 0.239542 -0.922706
+v 0.326356 0.248316 -0.918032
+v 0.307001 0.220797 -0.999736
+v 0.321082 0.217328 -1.001625
+v 0.334512 0.214766 -1.001740
+v 0.346776 0.213209 -1.000077
+v 0.357402 0.212717 -0.996700
+v 0.365983 0.213309 -0.991738
+v 0.372188 0.214962 -0.985383
+v 0.375779 0.217613 -0.977879
+v 0.376618 0.221160 -0.969513
+v 0.374673 0.225466 -0.960607
+v 0.370018 0.230366 -0.951505
+v 0.362832 0.235672 -0.942554
+v 0.353392 0.241179 -0.934100
+v 0.342061 0.246677 -0.926467
+v 0.329273 0.251954 -0.919949
+v 0.309381 0.224610 -1.001486
+v 0.325750 0.224806 -1.005057
+v 0.341289 0.225623 -1.006723
+v 0.355402 0.227027 -1.006419
+v 0.367545 0.228965 -1.004157
+v 0.377253 0.231363 -1.000025
+v 0.384153 0.234128 -0.994180
+v 0.387978 0.237154 -0.986847
+v 0.388583 0.240325 -0.978309
+v 0.385943 0.243519 -0.968893
+v 0.380161 0.246614 -0.958962
+v 0.371459 0.249489 -0.948896
+v 0.360170 0.252036 -0.939083
+v 0.346729 0.254155 -0.929900
+v 0.331653 0.255766 -0.921699
+v 0.311133 0.228450 -1.003000
+v 0.329186 0.232340 -1.008028
+v 0.346277 0.236559 -1.011036
+v 0.361750 0.240947 -1.011908
+v 0.375011 0.245333 -1.010612
+v 0.385548 0.249550 -1.007197
+v 0.392959 0.253435 -1.001794
+v 0.396957 0.256840 -0.994611
+v 0.397389 0.259633 -0.985923
+v 0.394238 0.261706 -0.976066
+v 0.387626 0.262982 -0.965417
+v 0.377807 0.263409 -0.954385
+v 0.365158 0.262972 -0.943396
+v 0.350165 0.261688 -0.932871
+v 0.333404 0.259606 -0.923214
+v 0.312189 0.232171 -1.004221
+v 0.331257 0.239639 -1.010423
+v 0.349284 0.247156 -1.014513
+v 0.365578 0.254434 -1.016334
+v 0.379511 0.261192 -1.015816
+v 0.390549 0.267172 -1.012979
+v 0.398267 0.272143 -1.007932
+v 0.402369 0.275914 -1.000870
+v 0.402697 0.278340 -0.992062
+v 0.399239 0.279329 -0.981848
+v 0.392127 0.278841 -0.970621
+v 0.381635 0.276896 -0.958811
+v 0.368165 0.273569 -0.946873
+v 0.352236 0.268988 -0.935266
+v 0.334460 0.263328 -0.924435
+v 0.312509 0.235630 -1.005102
+v 0.331884 0.246424 -1.012151
+v 0.350195 0.257006 -1.017021
+v 0.366737 0.266971 -1.019526
+v 0.380874 0.275934 -1.019570
+v 0.392063 0.283552 -1.017150
+v 0.399874 0.289531 -1.012360
+v 0.404008 0.293643 -1.005384
+v 0.404305 0.295729 -0.996490
+v 0.400753 0.295708 -0.986019
+v 0.393489 0.293582 -0.974374
+v 0.382793 0.289433 -0.962003
+v 0.369076 0.283419 -0.949381
+v 0.352864 0.275773 -0.936993
+v 0.334780 0.266786 -0.925315
+v 0.312080 0.238694 -1.005608
+v 0.331043 0.252433 -1.013144
+v 0.348974 0.265731 -1.018463
+v 0.365182 0.278074 -1.021362
+v 0.379046 0.288991 -1.021729
+v 0.390032 0.298060 -1.019549
+v 0.397719 0.304933 -1.014906
+v 0.401810 0.309346 -1.007980
+v 0.402149 0.311130 -0.999036
+v 0.398722 0.310216 -0.988418
+v 0.391662 0.306639 -0.976533
+v 0.381239 0.300537 -0.963839
+v 0.367854 0.292144 -0.950824
+v 0.352022 0.281782 -0.937987
+v 0.334351 0.269850 -0.925822
+v 0.310919 0.241244 -1.005721
+v 0.328766 0.257436 -1.013366
+v 0.345668 0.272994 -1.018785
+v 0.360975 0.287319 -1.021771
+v 0.374098 0.299861 -1.022209
+v 0.384535 0.310138 -1.020083
+v 0.391882 0.317756 -1.015474
+v 0.395859 0.322420 -1.008559
+v 0.396312 0.323953 -0.999603
+v 0.393224 0.322295 -0.988952
+v 0.386714 0.317510 -0.977014
+v 0.377031 0.309782 -0.964248
+v 0.364548 0.299407 -0.951145
+v 0.349745 0.286785 -0.938208
+v 0.333190 0.272401 -0.925935
+v 0.309071 0.243184 -1.005436
+v 0.325140 0.261241 -1.012806
+v 0.340404 0.278517 -1.017973
+v 0.354275 0.294349 -1.020737
+v 0.366221 0.308128 -1.020994
+v 0.375781 0.319324 -1.018733
+v 0.382590 0.327507 -1.014040
+v 0.386385 0.332362 -1.007097
+v 0.387020 0.333704 -0.998169
+v 0.384471 0.331480 -0.987601
+v 0.378836 0.325776 -0.975798
+v 0.370332 0.316812 -0.963214
+v 0.359285 0.304931 -0.950333
+v 0.346120 0.290590 -0.937649
+v 0.331342 0.274340 -0.925650
+v 0.306606 0.244438 -1.004764
+v 0.320306 0.263701 -1.011487
+v 0.333385 0.282089 -1.016058
+v 0.345342 0.298894 -1.018301
+v 0.355716 0.313472 -1.018129
+v 0.364109 0.325262 -1.015549
+v 0.370199 0.333811 -1.010660
+v 0.373751 0.338790 -1.003651
+v 0.374629 0.340009 -0.994790
+v 0.372799 0.337419 -0.984418
+v 0.368332 0.331121 -0.972933
+v 0.361398 0.321357 -0.960778
+v 0.352266 0.308502 -0.948419
+v 0.341285 0.293050 -0.936330
+v 0.328877 0.275594 -0.924977
+v 0.303619 0.244958 -1.003730
+v 0.314447 0.264722 -1.009460
+v 0.324880 0.283570 -1.013115
+v 0.334517 0.300780 -1.014555
+v 0.342988 0.315690 -1.013724
+v 0.349967 0.327726 -1.010655
+v 0.355185 0.336427 -1.005465
+v 0.358443 0.341458 -0.998354
+v 0.359615 0.342624 -0.989594
+v 0.358656 0.339883 -0.979524
+v 0.355604 0.333339 -0.968529
+v 0.350574 0.323243 -0.957032
+v 0.343761 0.309984 -0.945476
+v 0.335427 0.294070 -0.934303
+v 0.325891 0.276115 -0.923944
+v 0.300226 0.244725 -1.002375
+v 0.307791 0.264264 -1.006802
+v 0.315217 0.282906 -1.009257
+v 0.322218 0.299934 -1.009644
+v 0.328525 0.314695 -1.007950
+v 0.333897 0.326621 -1.004239
+v 0.338126 0.335254 -0.998653
+v 0.341049 0.340261 -0.991409
+v 0.342556 0.341451 -0.982783
+v 0.342587 0.338778 -0.973107
+v 0.341141 0.332344 -0.962754
+v 0.338275 0.322397 -0.952121
+v 0.334098 0.309319 -0.941617
+v 0.328770 0.293612 -0.931645
+v 0.322497 0.275881 -0.922589
+v 0.296556 0.243747 -1.000751
+v 0.300592 0.262345 -1.003616
+v 0.304766 0.280120 -1.004631
+v 0.308917 0.296389 -1.003757
+v 0.312885 0.310526 -1.001027
+v 0.316517 0.321989 -0.996546
+v 0.319676 0.330336 -0.990487
+v 0.322238 0.335247 -0.983082
+v 0.324106 0.336533 -0.974617
+v 0.325207 0.334145 -0.965415
+v 0.325500 0.328175 -0.955831
+v 0.324973 0.318852 -0.946234
+v 0.323647 0.306533 -0.936991
+v 0.321572 0.291694 -0.928459
+v 0.318828 0.274903 -0.920965
+v 0.292751 0.242061 -0.998920
+v 0.293128 0.259039 -1.000024
+v 0.293929 0.275321 -0.999416
+v 0.295124 0.290281 -0.997119
+v 0.296666 0.303344 -0.993221
+v 0.298497 0.314008 -0.987873
+v 0.300545 0.321863 -0.981280
+v 0.302732 0.326608 -0.973695
+v 0.304975 0.328061 -0.965410
+v 0.307186 0.326164 -0.956742
+v 0.309282 0.320992 -0.948026
+v 0.311181 0.312743 -0.939596
+v 0.312810 0.301734 -0.931776
+v 0.314107 0.288388 -0.924866
+v 0.315022 0.273218 -0.919133
+v 0.315520 0.256806 -0.914796
+v 0.288956 0.239734 -0.996952
+v 0.285684 0.254473 -0.996163
+v 0.283123 0.268692 -0.993811
+v 0.281370 0.281844 -0.989986
+v 0.280494 0.293423 -0.984834
+v 0.280527 0.302984 -0.978554
+v 0.281468 0.310161 -0.971386
+v 0.283282 0.314677 -0.963607
+v 0.285898 0.316358 -0.955516
+v 0.289216 0.315141 -0.947422
+v 0.293109 0.311071 -0.939638
+v 0.297427 0.304306 -0.932463
+v 0.302004 0.295105 -0.926171
+v 0.306664 0.283822 -0.921006
+v 0.311228 0.270890 -0.917165
+v 0.285318 0.236853 -0.994923
+v 0.278548 0.248822 -0.992183
+v 0.272763 0.260488 -0.988033
+v 0.268184 0.271403 -0.982632
+v 0.264988 0.281145 -0.976186
+v 0.263298 0.289342 -0.968945
+v 0.263178 0.295679 -0.961186
+v 0.264634 0.299911 -0.953207
+v 0.267608 0.301876 -0.945315
+v 0.271988 0.301499 -0.937814
+v 0.277604 0.298794 -0.930991
+v 0.284241 0.293865 -0.925109
+v 0.291644 0.286902 -0.920393
+v 0.299527 0.278171 -0.917026
+v 0.307589 0.268009 -0.915136
+v 0.281976 0.233530 -0.992911
+v 0.271993 0.242304 -0.988237
+v 0.263246 0.251026 -0.982303
+v 0.256072 0.259359 -0.975339
+v 0.250746 0.266983 -0.967611
+v 0.247473 0.273606 -0.959417
+v 0.246379 0.278973 -0.951071
+v 0.247505 0.282878 -0.942894
+v 0.250809 0.285171 -0.935200
+v 0.256163 0.285763 -0.928286
+v 0.263362 0.284632 -0.922416
+v 0.272129 0.281821 -0.917816
+v 0.282127 0.277439 -0.914664
+v 0.292972 0.271653 -0.913079
+v 0.304248 0.264686 -0.913124
+v 0.279060 0.229892 -0.990993
+v 0.266272 0.235169 -0.984475
+v 0.254940 0.240667 -0.976842
+v 0.245500 0.246175 -0.968388
+v 0.238315 0.251480 -0.959438
+v 0.233660 0.256380 -0.950335
+v 0.231715 0.260687 -0.941430
+v 0.232554 0.264233 -0.933064
+v 0.236145 0.266884 -0.925559
+v 0.242350 0.268537 -0.919204
+v 0.250930 0.269129 -0.914242
+v 0.261557 0.268637 -0.910865
+v 0.273821 0.267080 -0.909202
+v 0.287251 0.264518 -0.909318
+v 0.301331 0.261049 -0.911206
+v 0.276680 0.226080 -0.989243
+v 0.261603 0.227691 -0.981043
+v 0.248162 0.229811 -0.971859
+v 0.236874 0.232357 -0.962046
+v 0.228171 0.235233 -0.951980
+v 0.222389 0.238327 -0.942049
+v 0.219750 0.241521 -0.932633
+v 0.220354 0.244692 -0.924095
+v 0.224180 0.247719 -0.916763
+v 0.231079 0.250484 -0.910918
+v 0.240787 0.252881 -0.906785
+v 0.252931 0.254820 -0.904523
+v 0.267043 0.256224 -0.904220
+v 0.282582 0.257040 -0.905885
+v 0.298951 0.257237 -0.909457
+v 0.274928 0.222240 -0.987729
+v 0.258167 0.220158 -0.978072
+v 0.243174 0.218874 -0.967546
+v 0.230525 0.218437 -0.956557
+v 0.220706 0.218865 -0.945526
+v 0.214094 0.220140 -0.934877
+v 0.210944 0.222214 -0.925019
+v 0.211376 0.225007 -0.916332
+v 0.215374 0.228411 -0.909149
+v 0.222784 0.232296 -0.903746
+v 0.233322 0.236513 -0.900330
+v 0.246582 0.240900 -0.899034
+v 0.262055 0.245287 -0.899907
+v 0.279146 0.249506 -0.902915
+v 0.297199 0.253396 -0.907942
+v 0.273872 0.218519 -0.986508
+v 0.256096 0.212858 -0.975677
+v 0.240167 0.208277 -0.964069
+v 0.226698 0.204950 -0.952131
+v 0.216205 0.203005 -0.940322
+v 0.209094 0.202518 -0.929094
+v 0.205635 0.203506 -0.918880
+v 0.205963 0.205932 -0.910073
+v 0.210065 0.209704 -0.903010
+v 0.217783 0.214674 -0.897963
+v 0.228821 0.220654 -0.895126
+v 0.242755 0.227412 -0.894608
+v 0.259048 0.234690 -0.896429
+v 0.277075 0.242207 -0.900519
+v 0.296143 0.249675 -0.906721
+v 0.273552 0.215060 -0.985627
+v 0.255469 0.206074 -0.973949
+v 0.239257 0.198427 -0.961561
+v 0.225539 0.192413 -0.948939
+v 0.214843 0.188264 -0.936568
+v 0.207580 0.186138 -0.924923
+v 0.204028 0.186117 -0.914453
+v 0.204324 0.188203 -0.905558
+v 0.208458 0.192315 -0.898582
+v 0.216269 0.198295 -0.893792
+v 0.227459 0.205912 -0.891373
+v 0.241596 0.214876 -0.891416
+v 0.258137 0.224840 -0.893921
+v 0.276448 0.235422 -0.898792
+v 0.295824 0.246216 -0.905840
+v 0.292812 0.225040 -0.996146
+v 0.273981 0.211996 -0.985120
+v 0.256310 0.200064 -0.972956
+v 0.240478 0.189703 -0.960119
+v 0.227093 0.181309 -0.947103
+v 0.216671 0.175207 -0.934409
+v 0.209610 0.171630 -0.922525
+v 0.206184 0.170716 -0.911906
+v 0.206523 0.172500 -0.902962
+v 0.210614 0.176913 -0.896036
+v 0.218300 0.183787 -0.891394
+v 0.229286 0.192856 -0.889214
+v 0.243150 0.203772 -0.889580
+v 0.259359 0.216116 -0.892479
+v 0.277289 0.229413 -0.897798
+v 0.296253 0.243153 -0.905334
+v 0.275142 0.209446 -0.985008
+v 0.258587 0.195061 -0.972734
+v 0.243784 0.182439 -0.959797
+v 0.231301 0.172065 -0.946694
+v 0.221618 0.164336 -0.933928
+v 0.215108 0.159551 -0.921991
+v 0.212020 0.157893 -0.911339
+v 0.212473 0.159426 -0.902384
+v 0.216450 0.164090 -0.895469
+v 0.223798 0.171708 -0.890859
+v 0.234234 0.181985 -0.888733
+v 0.247358 0.194527 -0.889171
+v 0.262665 0.208852 -0.892158
+v 0.279566 0.224410 -0.897577
+v 0.297413 0.240602 -0.905221
+v 0.218203 0.254350 -0.972109
+v 0.203426 0.238100 -0.960110
+v 0.190261 0.223760 -0.947426
+v 0.179213 0.211878 -0.934544
+v 0.170709 0.202914 -0.921960
+v 0.165074 0.197210 -0.910158
+v 0.162525 0.194986 -0.899589
+v 0.163160 0.196328 -0.890662
+v 0.166955 0.201183 -0.883719
+v 0.173764 0.209366 -0.879026
+v 0.183325 0.220562 -0.876765
+v 0.195270 0.234341 -0.877021
+v 0.209141 0.250173 -0.879786
+v 0.224405 0.267449 -0.884953
+v 0.240475 0.285506 -0.892323
+v 0.220668 0.253096 -0.972782
+v 0.208261 0.235641 -0.961429
+v 0.197280 0.220188 -0.949340
+v 0.188147 0.207333 -0.936981
+v 0.181214 0.197569 -0.924825
+v 0.176746 0.191271 -0.913341
+v 0.174916 0.188682 -0.902969
+v 0.175794 0.189900 -0.894108
+v 0.179346 0.194879 -0.887098
+v 0.185436 0.203428 -0.882210
+v 0.193829 0.215218 -0.879630
+v 0.204204 0.229796 -0.879458
+v 0.216160 0.246601 -0.881701
+v 0.229240 0.264989 -0.886271
+v 0.242940 0.284252 -0.892995
+v 0.223655 0.252576 -0.973815
+v 0.214119 0.234620 -0.963456
+v 0.205784 0.218707 -0.952283
+v 0.198971 0.205447 -0.940727
+v 0.193942 0.195351 -0.929230
+v 0.190889 0.188807 -0.918235
+v 0.189930 0.186066 -0.908164
+v 0.191102 0.187233 -0.899405
+v 0.194360 0.192263 -0.892294
+v 0.199579 0.200964 -0.887104
+v 0.206557 0.213000 -0.884034
+v 0.215028 0.227910 -0.883204
+v 0.224665 0.245120 -0.884644
+v 0.235098 0.263969 -0.888299
+v 0.245926 0.283732 -0.894028
+v 0.227048 0.252809 -0.975170
+v 0.220775 0.235078 -0.966114
+v 0.215448 0.219371 -0.956142
+v 0.211271 0.206293 -0.945638
+v 0.208404 0.196346 -0.935005
+v 0.206959 0.189912 -0.924652
+v 0.206990 0.187239 -0.914976
+v 0.208496 0.188429 -0.906350
+v 0.211420 0.193437 -0.899106
+v 0.215649 0.202069 -0.893520
+v 0.221020 0.213995 -0.889809
+v 0.227327 0.228756 -0.888115
+v 0.234328 0.245784 -0.888502
+v 0.241754 0.264426 -0.890956
+v 0.249319 0.283965 -0.895383
+v 0.230718 0.253787 -0.976794
+v 0.227974 0.236996 -0.969300
+v 0.225899 0.222157 -0.960768
+v 0.224572 0.209839 -0.951525
+v 0.224045 0.200515 -0.941928
+v 0.224338 0.194545 -0.932344
+v 0.225440 0.192157 -0.923142
+v 0.227307 0.193443 -0.914677
+v 0.229870 0.198354 -0.907272
+v 0.233028 0.206701 -0.901213
+v 0.236661 0.218164 -0.896732
+v 0.240629 0.232301 -0.894002
+v 0.244779 0.248570 -0.893128
+v 0.248953 0.266345 -0.894143
+v 0.252989 0.284944 -0.897008
+v 0.234523 0.255472 -0.978626
+v 0.235438 0.240302 -0.972892
+v 0.236735 0.226956 -0.965983
+v 0.238365 0.215947 -0.958163
+v 0.240264 0.207698 -0.949733
+v 0.242359 0.202526 -0.941017
+v 0.244570 0.200629 -0.932349
+v 0.246813 0.202082 -0.924064
+v 0.249001 0.206827 -0.916479
+v 0.251049 0.214682 -0.909886
+v 0.252879 0.225347 -0.904537
+v 0.254422 0.238410 -0.900640
+v 0.255616 0.253369 -0.898343
+v 0.256418 0.269651 -0.897735
+v 0.256795 0.286629 -0.898839
+v 0.238318 0.257800 -0.980594
+v 0.242882 0.244868 -0.976753
+v 0.247542 0.233585 -0.971587
+v 0.252118 0.224384 -0.965296
+v 0.256436 0.217619 -0.958120
+v 0.260329 0.213549 -0.950336
+v 0.263647 0.212332 -0.942243
+v 0.266264 0.214013 -0.934152
+v 0.268077 0.218529 -0.926373
+v 0.269019 0.225706 -0.919205
+v 0.269052 0.235267 -0.912925
+v 0.268175 0.246847 -0.907773
+v 0.266422 0.259998 -0.903948
+v 0.263861 0.274217 -0.901596
+v 0.260589 0.288957 -0.900807
+v 0.241956 0.260681 -0.982623
+v 0.250018 0.250519 -0.980733
+v 0.257902 0.241789 -0.977365
+v 0.265305 0.234825 -0.972650
+v 0.271941 0.229896 -0.966768
+v 0.277558 0.227191 -0.959945
+v 0.281937 0.226814 -0.952444
+v 0.284912 0.228779 -0.944552
+v 0.286367 0.233011 -0.936573
+v 0.286247 0.239348 -0.928814
+v 0.284557 0.247545 -0.921573
+v 0.281361 0.257288 -0.915127
+v 0.276783 0.268202 -0.909726
+v 0.270997 0.279868 -0.905576
+v 0.264227 0.291837 -0.902836
+v 0.245298 0.264004 -0.984635
+v 0.256573 0.257037 -0.984680
+v 0.267418 0.251252 -0.983095
+v 0.277416 0.246869 -0.979943
+v 0.286184 0.244058 -0.975343
+v 0.293383 0.242927 -0.969473
+v 0.298737 0.243519 -0.962559
+v 0.302041 0.245812 -0.954865
+v 0.303167 0.249717 -0.946688
+v 0.302072 0.255084 -0.938342
+v 0.298799 0.261707 -0.930148
+v 0.293473 0.269332 -0.922420
+v 0.286299 0.277665 -0.915456
+v 0.277552 0.286386 -0.909522
+v 0.267569 0.295160 -0.904848
+v 0.248215 0.267641 -0.986552
+v 0.262295 0.264172 -0.988441
+v 0.275725 0.261610 -0.988557
+v 0.287989 0.260053 -0.986894
+v 0.298615 0.259561 -0.983517
+v 0.307196 0.260153 -0.978555
+v 0.313401 0.261806 -0.972200
+v 0.316992 0.264457 -0.964695
+v 0.317831 0.268004 -0.956329
+v 0.315886 0.272310 -0.947424
+v 0.311231 0.277210 -0.938321
+v 0.304045 0.282516 -0.929371
+v 0.294606 0.288023 -0.920917
+v 0.283274 0.293521 -0.913284
+v 0.270486 0.298798 -0.906766
+v 0.250594 0.271454 -0.988302
+v 0.266963 0.271650 -0.991874
+v 0.282502 0.272467 -0.993539
+v 0.296615 0.273871 -0.993236
+v 0.308758 0.275809 -0.990974
+v 0.318466 0.278207 -0.986841
+v 0.325366 0.280972 -0.980996
+v 0.329191 0.283998 -0.973664
+v 0.329796 0.287169 -0.965126
+v 0.327156 0.290363 -0.955710
+v 0.321374 0.293457 -0.945778
+v 0.312672 0.296333 -0.935713
+v 0.301383 0.298880 -0.925900
+v 0.287942 0.300999 -0.916716
+v 0.272866 0.302610 -0.908516
+v 0.252346 0.275294 -0.989817
+v 0.270399 0.279184 -0.994844
+v 0.287490 0.283403 -0.997852
+v 0.302964 0.287791 -0.998725
+v 0.316224 0.292177 -0.997429
+v 0.326762 0.296394 -0.994013
+v 0.334172 0.300279 -0.988610
+v 0.338170 0.303684 -0.981427
+v 0.338602 0.306476 -0.972740
+v 0.335451 0.308550 -0.962882
+v 0.328840 0.309826 -0.952233
+v 0.319020 0.310253 -0.941202
+v 0.306371 0.309816 -0.930213
+v 0.291378 0.308532 -0.919687
+v 0.274617 0.306450 -0.910030
+v 0.253402 0.279015 -0.991038
+v 0.272470 0.286483 -0.997240
+v 0.290498 0.294000 -1.001330
+v 0.306791 0.301278 -1.003151
+v 0.320724 0.308036 -1.002633
+v 0.331762 0.314016 -0.999796
+v 0.339480 0.318987 -0.994749
+v 0.343582 0.322758 -0.987686
+v 0.343910 0.325184 -0.978878
+v 0.340452 0.326172 -0.968665
+v 0.333340 0.325685 -0.957437
+v 0.322848 0.323740 -0.945628
+v 0.309378 0.320413 -0.933690
+v 0.293450 0.315832 -0.922082
+v 0.275673 0.310172 -0.911251
+v 0.253722 0.282474 -0.991919
+v 0.273097 0.293268 -0.998967
+v 0.291408 0.303850 -1.003838
+v 0.307950 0.313814 -1.006343
+v 0.322087 0.322778 -1.006386
+v 0.333276 0.330396 -1.003967
+v 0.341088 0.336375 -0.999177
+v 0.345221 0.340487 -0.992200
+v 0.345518 0.342573 -0.983306
+v 0.341966 0.342552 -0.972835
+v 0.334702 0.340426 -0.961191
+v 0.324006 0.336277 -0.948820
+v 0.310289 0.330263 -0.936198
+v 0.294077 0.322616 -0.923810
+v 0.275993 0.313630 -0.912132
+v 0.253293 0.285538 -0.992425
+v 0.272256 0.299277 -0.999961
+v 0.290187 0.312575 -1.005280
+v 0.306395 0.324918 -1.008179
+v 0.320259 0.335835 -1.008545
+v 0.331245 0.344904 -1.006365
+v 0.338932 0.351777 -1.001723
+v 0.343023 0.356190 -0.994797
+v 0.343362 0.357974 -0.985852
+v 0.339935 0.357060 -0.975234
+v 0.332875 0.353483 -0.963350
+v 0.322452 0.347381 -0.950656
+v 0.309068 0.338988 -0.937640
+v 0.293235 0.328626 -0.924803
+v 0.275564 0.316694 -0.912638
+v 0.252132 0.288088 -0.992538
+v 0.269979 0.304280 -1.000182
+v 0.286881 0.319838 -1.005601
+v 0.302188 0.334163 -1.008588
+v 0.315311 0.346705 -1.009026
+v 0.325748 0.356982 -1.006900
+v 0.333095 0.364600 -1.002290
+v 0.337072 0.369264 -0.995375
+v 0.337525 0.370797 -0.986420
+v 0.334438 0.369139 -0.975768
+v 0.327927 0.364354 -0.963830
+v 0.318244 0.356626 -0.951065
+v 0.305762 0.346251 -0.937962
+v 0.290958 0.333629 -0.925025
+v 0.274403 0.319245 -0.912751
+v 0.250284 0.290028 -0.992253
+v 0.266353 0.308085 -0.999623
+v 0.281617 0.325361 -1.004789
+v 0.295488 0.341193 -1.007554
+v 0.307434 0.354972 -1.007810
+v 0.316995 0.366168 -1.005549
+v 0.323803 0.374351 -1.000857
+v 0.327598 0.379206 -0.993913
+v 0.328233 0.380548 -0.984986
+v 0.325684 0.378324 -0.974418
+v 0.320050 0.372620 -0.962615
+v 0.311545 0.363656 -0.950031
+v 0.300498 0.351775 -0.937149
+v 0.287333 0.337434 -0.924465
+v 0.272555 0.321184 -0.912466
+v 0.247819 0.291282 -0.991580
+v 0.261519 0.310545 -0.998304
+v 0.274598 0.328933 -1.002875
+v 0.286555 0.345738 -1.005117
+v 0.296929 0.360316 -1.004946
+v 0.305322 0.372106 -1.002366
+v 0.311412 0.380655 -0.997477
+v 0.314964 0.385634 -0.990468
+v 0.315842 0.386853 -0.981607
+v 0.314012 0.384263 -0.971235
+v 0.309545 0.377965 -0.959750
+v 0.302612 0.368201 -0.947595
+v 0.293479 0.355346 -0.935235
+v 0.282498 0.339894 -0.923147
+v 0.270090 0.322438 -0.911794
+v 0.244833 0.291802 -0.990547
+v 0.255661 0.311566 -0.996277
+v 0.266094 0.330414 -0.999932
+v 0.275730 0.347624 -1.001372
+v 0.284201 0.362534 -1.000541
+v 0.291180 0.374570 -0.997472
+v 0.296398 0.383271 -0.992282
+v 0.299656 0.388301 -0.985170
+v 0.300828 0.389468 -0.976411
+v 0.299870 0.386727 -0.966341
+v 0.296817 0.380183 -0.955346
+v 0.291787 0.370087 -0.943849
+v 0.284974 0.356828 -0.932292
+v 0.276640 0.340914 -0.921120
+v 0.267104 0.322959 -0.910760
+v 0.241439 0.291569 -0.989192
+v 0.249004 0.311108 -0.993619
+v 0.256430 0.329750 -0.996073
+v 0.263431 0.346778 -0.996461
+v 0.269739 0.361539 -0.994766
+v 0.275110 0.373465 -0.991055
+v 0.279339 0.382098 -0.985470
+v 0.282262 0.387105 -0.978225
+v 0.283769 0.388295 -0.969599
+v 0.283800 0.385622 -0.959924
+v 0.282354 0.379188 -0.949571
+v 0.279488 0.369241 -0.938938
+v 0.275311 0.356163 -0.928434
+v 0.269983 0.340456 -0.918462
+v 0.263711 0.322725 -0.909405
+v 0.237769 0.290591 -0.987568
+v 0.241805 0.309189 -0.990433
+v 0.245979 0.326964 -0.991448
+v 0.250130 0.343233 -0.990573
+v 0.254098 0.357370 -0.987843
+v 0.257731 0.368833 -0.983363
+v 0.260889 0.377180 -0.977304
+v 0.263451 0.382091 -0.969899
+v 0.265319 0.383377 -0.961433
+v 0.266420 0.380989 -0.952232
+v 0.266713 0.375019 -0.942648
+v 0.266186 0.365695 -0.933050
+v 0.264860 0.353377 -0.923808
+v 0.262785 0.338538 -0.915275
+v 0.260041 0.321747 -0.907781
+v 0.233964 0.288905 -0.985736
+v 0.234341 0.305883 -0.986840
+v 0.235142 0.322165 -0.986232
+v 0.236337 0.337124 -0.983935
+v 0.237879 0.350187 -0.980038
+v 0.239710 0.360852 -0.974690
+v 0.241758 0.368707 -0.968097
+v 0.243945 0.373452 -0.960512
+v 0.246188 0.374905 -0.952226
+v 0.248400 0.373008 -0.943559
+v 0.250495 0.367836 -0.934843
+v 0.252394 0.359587 -0.926413
+v 0.254023 0.348578 -0.918593
+v 0.255320 0.335232 -0.911683
+v 0.256235 0.320062 -0.905950
+v 0.256733 0.303650 -0.901613
+v 0.230169 0.286578 -0.983768
+v 0.226898 0.301317 -0.982980
+v 0.224336 0.315536 -0.980628
+v 0.222583 0.328688 -0.976802
+v 0.221707 0.340267 -0.971650
+v 0.221740 0.349828 -0.965370
+v 0.222681 0.357005 -0.958203
+v 0.224495 0.361521 -0.950424
+v 0.227111 0.363202 -0.942332
+v 0.230430 0.361985 -0.934239
+v 0.234322 0.357915 -0.926455
+v 0.238640 0.351150 -0.919279
+v 0.243217 0.341949 -0.912988
+v 0.247877 0.330666 -0.907823
+v 0.252441 0.317734 -0.903982
+v 0.226531 0.283697 -0.981739
+v 0.219761 0.295666 -0.979000
+v 0.213976 0.307332 -0.974850
+v 0.209397 0.318247 -0.969448
+v 0.206201 0.327989 -0.963003
+v 0.204511 0.336186 -0.955762
+v 0.204391 0.342523 -0.948002
+v 0.205847 0.346755 -0.940024
+v 0.208822 0.348720 -0.932132
+v 0.213201 0.348343 -0.924630
+v 0.218817 0.345638 -0.917808
+v 0.225454 0.340709 -0.911925
+v 0.232857 0.333746 -0.907210
+v 0.240740 0.325015 -0.903843
+v 0.248803 0.314853 -0.901953
+v 0.223190 0.280374 -0.979727
+v 0.213206 0.289148 -0.975053
+v 0.204460 0.297870 -0.969120
+v 0.197285 0.306203 -0.962156
+v 0.191959 0.313827 -0.954428
+v 0.188686 0.320450 -0.946233
+v 0.187592 0.325817 -0.937887
+v 0.188718 0.329722 -0.929710
+v 0.192022 0.332015 -0.922017
+v 0.197376 0.332607 -0.915102
+v 0.204575 0.331476 -0.909232
+v 0.213342 0.328665 -0.904633
+v 0.223340 0.324283 -0.901480
+v 0.234186 0.318497 -0.899896
+v 0.245461 0.311530 -0.899941
+v 0.220273 0.276736 -0.977810
+v 0.207485 0.282013 -0.971291
+v 0.196153 0.287511 -0.963659
+v 0.186713 0.293018 -0.955205
+v 0.179528 0.298324 -0.946254
+v 0.174873 0.303224 -0.937152
+v 0.172928 0.307530 -0.928246
+v 0.173767 0.311077 -0.919880
+v 0.177358 0.313728 -0.912376
+v 0.183563 0.315381 -0.906020
+v 0.192143 0.315973 -0.901059
+v 0.202770 0.315481 -0.897682
+v 0.215034 0.313924 -0.896019
+v 0.228464 0.311362 -0.896134
+v 0.242544 0.307893 -0.898023
+v 0.217893 0.272924 -0.976060
+v 0.202816 0.274535 -0.967859
+v 0.189375 0.276655 -0.958676
+v 0.178087 0.279201 -0.948863
+v 0.169384 0.282077 -0.938797
+v 0.163602 0.285171 -0.928865
+v 0.160963 0.288365 -0.919450
+v 0.161567 0.291536 -0.910912
+v 0.165393 0.294562 -0.903579
+v 0.172292 0.297328 -0.897734
+v 0.182000 0.299725 -0.893602
+v 0.194144 0.301664 -0.891340
+v 0.208256 0.303068 -0.891036
+v 0.223795 0.303884 -0.892702
+v 0.240164 0.304081 -0.896273
+v 0.216141 0.269084 -0.974545
+v 0.199380 0.267002 -0.964888
+v 0.184387 0.265718 -0.954363
+v 0.171738 0.265281 -0.943374
+v 0.161919 0.265709 -0.932342
+v 0.155307 0.266984 -0.921693
+v 0.152157 0.269058 -0.911836
+v 0.152589 0.271851 -0.903148
+v 0.156587 0.275255 -0.895965
+v 0.163997 0.279140 -0.890562
+v 0.174535 0.283357 -0.887147
+v 0.187795 0.287744 -0.885851
+v 0.203268 0.292131 -0.886723
+v 0.220360 0.296350 -0.889731
+v 0.238412 0.300240 -0.894759
+v 0.215085 0.265363 -0.973324
+v 0.197309 0.259702 -0.962493
+v 0.181380 0.255121 -0.950886
+v 0.167911 0.251794 -0.938948
+v 0.157419 0.249849 -0.927138
+v 0.150307 0.249362 -0.915911
+v 0.146848 0.250350 -0.905697
+v 0.147176 0.252776 -0.896889
+v 0.151278 0.256547 -0.889826
+v 0.158996 0.261518 -0.884780
+v 0.170034 0.267498 -0.881943
+v 0.183968 0.274256 -0.881425
+v 0.200261 0.281534 -0.883246
+v 0.218288 0.289051 -0.887336
+v 0.237357 0.296519 -0.893538
+v 0.214765 0.261904 -0.972444
+v 0.196682 0.252918 -0.960766
+v 0.180470 0.245271 -0.948378
+v 0.166752 0.239257 -0.935756
+v 0.156056 0.235108 -0.923385
+v 0.148793 0.232982 -0.911740
+v 0.145241 0.232961 -0.901269
+v 0.145538 0.235047 -0.892375
+v 0.149671 0.239159 -0.885399
+v 0.157483 0.245138 -0.880609
+v 0.168672 0.252756 -0.878189
+v 0.182809 0.261720 -0.878233
+v 0.199351 0.271684 -0.880738
+v 0.217661 0.282266 -0.885608
+v 0.237037 0.293060 -0.892657
+v 0.234025 0.271884 -0.982963
+v 0.215194 0.258840 -0.971937
+v 0.197523 0.246908 -0.959772
+v 0.181691 0.236547 -0.946935
+v 0.168306 0.228153 -0.933920
+v 0.157884 0.222051 -0.921226
+v 0.150824 0.218474 -0.909341
+v 0.147397 0.217560 -0.898723
+v 0.147736 0.219344 -0.889779
+v 0.151827 0.223757 -0.882853
+v 0.159513 0.230630 -0.878210
+v 0.170500 0.239699 -0.876030
+v 0.184363 0.250616 -0.876397
+v 0.200572 0.262960 -0.879295
+v 0.218502 0.276257 -0.884615
+v 0.237466 0.289997 -0.892151
+v 0.216355 0.256290 -0.971824
+v 0.199800 0.241905 -0.959551
+v 0.184997 0.229283 -0.946614
+v 0.172514 0.218909 -0.933511
+v 0.162831 0.211180 -0.920745
+v 0.156321 0.206395 -0.908807
+v 0.153233 0.204737 -0.898156
+v 0.153686 0.206270 -0.889201
+v 0.157663 0.210934 -0.882285
+v 0.165011 0.218552 -0.877676
+v 0.175447 0.228829 -0.875550
+v 0.188571 0.241371 -0.875988
+v 0.203878 0.255696 -0.878974
+v 0.220779 0.271254 -0.884393
+v 0.238627 0.287446 -0.892038
+vn -0.603229 -0.795221 -0.060915
+vn -0.595019 -0.681906 -0.425306
+vn -0.396496 -0.817225 -0.418165
+vn -0.419721 -0.313150 -0.851894
+vn -0.385907 -0.256752 -0.886074
+vn -0.365856 -0.273995 -0.889401
+vn 0.230811 0.020173 0.972777
+vn 0.171026 -0.062593 0.983245
+vn 0.290597 -0.029206 0.956389
+vn -0.484970 -0.764519 0.424574
+vn -0.335093 -0.940214 -0.060579
+vn -0.456465 -0.377300 -0.805750
+vn -0.379620 -0.348277 -0.857051
+vn 0.276864 0.086550 0.956999
+vn 0.315195 0.054170 0.947447
+vn -0.251717 -0.558855 0.790124
+vn -0.191076 -0.900021 0.391644
+vn -0.498306 -0.455336 -0.737785
+vn -0.392468 -0.432966 -0.811457
+vn 0.315348 0.143895 0.937986
+vn 0.334941 0.127537 0.933561
+vn -0.046052 -0.335459 0.940916
+vn 0.127384 -0.444197 0.886807
+vn -0.546587 -0.555406 -0.626667
+vn -0.403516 -0.535295 -0.741997
+vn 0.085971 -0.174383 0.980895
+vn 0.207831 -0.262917 0.942137
+vn -0.409009 -0.663747 -0.626179
+vn 0.257241 -0.130680 0.957457
+vn -0.195349 -0.891232 -0.409284
+vn -0.345470 -0.287576 -0.893246
+vn 0.348155 -0.067507 0.934965
+vn -0.082888 -0.994110 -0.069613
+vn -0.337718 -0.376446 -0.862667
+vn 0.352824 0.028565 0.935240
+vn -0.007752 -0.682333 0.730949
+vn 0.197821 -0.734703 0.648885
+vn -0.324717 -0.476821 -0.816797
+vn 0.354167 0.114750 0.928098
+vn 0.277871 -0.508042 0.815271
+vn -0.302683 -0.595416 -0.744194
+vn 0.318125 -0.323740 0.891018
+vn -0.263985 -0.737236 -0.621906
+vn 0.338145 -0.181310 0.923460
+vn 0.413770 -0.359905 0.836177
+vn -0.126011 -0.776727 -0.617084
+vn 0.411145 -0.214972 0.885830
+vn -0.016022 -0.915189 -0.402661
+vn -0.325632 -0.297433 -0.897458
+vn 0.401624 -0.094485 0.910886
+vn 0.065065 -0.939421 0.336436
+vn 0.123203 -0.988769 -0.084262
+vn -0.296182 -0.396893 -0.868740
+vn 0.388409 0.010071 0.921415
+vn 0.357158 -0.742424 0.566729
+vn -0.257363 -0.507614 -0.822199
+vn 0.372417 0.105533 0.922025
+vn 0.401379 -0.537400 0.741661
+vn -0.203497 -0.634297 -0.745811
+vn 0.389233 0.099948 0.915677
+vn 0.501846 -0.542161 0.673910
+vn -0.111850 -0.652974 -0.749046
+vn 0.495315 -0.375500 0.783319
+vn -0.003479 -0.788049 -0.615589
+vn 0.475661 -0.232948 0.848201
+vn 0.133396 -0.905759 -0.402203
+vn -0.307016 -0.303446 -0.902005
+vn 0.450026 -0.110294 0.886166
+vn 0.261513 -0.924284 0.277963
+vn 0.283059 -0.953429 -0.103916
+vn -0.256935 -0.409284 -0.875454
+vn 0.421064 -0.001221 0.907010
+vn 0.479873 -0.725211 0.493698
+vn -0.193945 -0.525071 -0.828639
+vn -0.221473 -0.413526 -0.883114
+vn 0.450270 -0.005341 0.892850
+vn 0.408460 -0.884945 0.223548
+vn 0.577136 -0.693472 0.431257
+vn -0.137181 -0.529618 -0.837062
+vn 0.404187 0.097934 0.909391
+vn 0.584674 -0.529099 0.614917
+vn -0.031495 -0.653798 -0.755974
+vn 0.564745 -0.373974 0.735618
+vn 0.100314 -0.777764 -0.620472
+vn 0.531846 -0.236641 0.813074
+vn 0.254219 -0.875729 -0.410413
+vn -0.290414 -0.305582 -0.906766
+vn 0.492874 -0.115299 0.862392
+vn 0.406873 -0.904324 -0.128819
+vn 0.350749 -0.832575 -0.428632
+vn -0.276254 -0.303903 -0.911740
+vn 0.529862 -0.109989 0.840877
+vn 0.521287 -0.835414 0.174047
+vn 0.504807 -0.848323 -0.159551
+vn -0.191290 -0.409833 -0.891842
+vn 0.475509 -0.002380 0.879696
+vn 0.657369 -0.651723 0.378216
+vn -0.089175 -0.522141 -0.848170
+vn 0.417005 0.099460 0.903439
+vn 0.654500 -0.502121 0.565203
+vn 0.035432 -0.639210 -0.768181
+vn 0.624012 -0.357830 0.694632
+vn 0.185034 -0.751030 -0.633778
+vn 0.580157 -0.227332 0.782098
+vn 0.674673 -0.328471 0.660970
+vn 0.251381 -0.711020 -0.656697
+vn 0.620991 -0.205847 0.756279
+vn 0.427107 -0.779748 -0.457747
+vn -0.264992 -0.298654 -0.916807
+vn 0.560778 -0.094852 0.822504
+vn 0.611866 -0.780511 0.128117
+vn 0.584399 -0.787194 -0.196875
+vn -0.167364 -0.398694 -0.901669
+vn 0.496323 0.007355 0.868068
+vn 0.726402 -0.601245 0.332804
+vn -0.051393 -0.503647 -0.862362
+vn 0.427442 0.104373 0.897977
+vn 0.714713 -0.462905 0.524247
+vn 0.087893 -0.611225 -0.786523
+vn 0.512375 0.023652 0.858425
+vn 0.767449 -0.411634 0.491470
+vn 0.299844 -0.659139 -0.689627
+vn 0.717612 -0.286416 0.634785
+vn 0.486099 -0.717826 -0.498367
+vn 0.654408 -0.172735 0.736106
+vn 0.650410 -0.719962 -0.242042
+vn -0.150334 -0.380566 -0.912412
+vn 0.688040 -0.720756 0.083895
+vn 0.754906 -0.654622 0.039430
+vn -0.024689 -0.475051 -0.879604
+vn 0.585253 -0.070284 0.807764
+vn 0.787957 -0.541307 0.293374
+vn 0.125156 -0.571123 -0.811243
+vn 0.602832 -0.036714 0.796991
+vn 0.844264 -0.469497 0.258400
+vn 0.146550 -0.519639 -0.841700
+vn 0.435347 0.112461 0.893185
+vn 0.523240 0.046083 0.850917
+vn 0.330271 -0.595477 -0.732292
+vn 0.813715 -0.347056 0.466231
+vn 0.528672 -0.645497 -0.551164
+vn 0.752922 -0.231330 0.616077
+vn 0.705344 -0.643696 -0.296823
+vn -0.256844 -0.290048 -0.921873
+vn -0.140690 -0.356029 -0.923795
+vn 0.680044 -0.128208 0.721854
+vn 0.815455 -0.578753 -0.007355
+vn -0.009857 -0.437086 -0.899350
+vn -0.251930 -0.278298 -0.926847
+vn -0.138829 -0.325694 -0.935209
+vn 0.697043 -0.072237 0.713370
+vn 0.870937 -0.487808 -0.058992
+vn -0.007324 -0.390484 -0.920560
+vn 0.612812 0.005432 0.790185
+vn 0.151311 -0.457076 -0.876431
+vn 0.440504 0.123569 0.889187
+vn 0.528520 0.074252 0.845637
+vn 0.896115 -0.381512 0.226630
+vn 0.341655 -0.519028 -0.783471
+vn 0.853267 -0.266732 0.448042
+vn 0.553972 -0.559618 -0.616382
+vn 0.779809 -0.162236 0.604572
+vn 0.749321 -0.553514 -0.363475
+vn 0.558458 -0.455611 -0.693167
+vn 0.796289 -0.077670 0.599872
+vn 0.779290 -0.442000 -0.444166
+vn -0.250557 -0.263619 -0.931486
+vn -0.144871 -0.290384 -0.945860
+vn 0.703879 -0.004730 0.710288
+vn 0.920011 -0.373547 -0.118320
+vn -0.017457 -0.336283 -0.941588
+vn 0.614246 0.055666 0.787103
+vn 0.138585 -0.383740 -0.912961
+vn 0.442763 0.137577 0.885983
+vn 0.527696 0.107578 0.842586
+vn 0.942289 -0.270791 0.196814
+vn 0.331828 -0.428144 -0.840541
+vn 0.884152 -0.166784 0.436384
+vn 0.977538 -0.127750 0.167425
+vn 0.297830 -0.321696 -0.898770
+vn 0.901578 -0.042238 0.430494
+vn 0.535630 -0.328318 -0.777978
+vn 0.798761 0.023988 0.601123
+vn 0.787103 -0.299081 -0.539445
+vn -0.252815 -0.246376 -0.935575
+vn -0.158635 -0.251198 -0.954833
+vn 0.698355 0.074129 0.711875
+vn 0.956328 -0.223579 -0.188147
+vn -0.040010 -0.275796 -0.960356
+vn 0.606067 0.113224 0.787286
+vn 0.107761 -0.300455 -0.947661
+vn 0.441877 0.154118 0.883694
+vn 0.520310 0.145207 0.841517
+vn 0.587024 0.176763 0.790002
+vn 0.988800 0.059053 0.136937
+vn 0.058931 -0.209296 -0.976043
+vn 0.437696 0.172826 0.882321
+vn 0.505997 0.186224 0.842158
+vn 0.237007 -0.200537 -0.950560
+vn 0.896359 0.111576 0.428999
+vn 0.476394 -0.174535 -0.861721
+vn 0.781671 0.143406 0.606952
+vn 0.756523 -0.114353 -0.643880
+vn -0.258705 -0.227119 -0.938841
+vn -0.179571 -0.209449 -0.961180
+vn 0.677633 0.163427 0.717002
+vn 0.962889 -0.022645 -0.268929
+vn -0.074343 -0.210913 -0.974639
+vn -0.268136 -0.206397 -0.941008
+vn -0.206977 -0.166662 -0.964019
+vn 0.638508 0.260689 0.724082
+vn 0.905759 0.236335 -0.351726
+vn -0.119053 -0.144200 -0.982330
+vn 0.555925 0.244392 0.794458
+vn 0.949492 0.295633 0.105014
+vn -0.006409 -0.114078 -0.993439
+vn 0.430067 0.193243 0.881832
+vn 0.484390 0.229316 0.844234
+vn 0.148839 -0.069704 -0.986389
+vn 0.853420 0.295297 0.429426
+vn 0.372051 0.001404 -0.928190
+vn 0.737663 0.278512 0.615009
+vn 0.663472 0.113041 -0.739586
+vn 0.222510 0.181219 -0.957915
+vn 0.659658 0.421155 0.622456
+vn 0.489334 0.356090 -0.796045
+vn -0.280892 -0.184851 -0.941740
+vn -0.239967 -0.124821 -0.962706
+vn 0.578539 0.360820 0.731468
+vn 0.745598 0.523728 -0.411969
+vn -0.172246 -0.079196 -0.981842
+vn 0.512131 0.312815 0.799890
+vn 0.824000 0.561357 0.076510
+vn -0.084994 -0.020936 -0.996155
+vn 0.418897 0.214789 0.882229
+vn 0.455397 0.272561 0.847530
+vn 0.037568 0.060030 -0.997467
+vn 0.754845 0.496200 0.428877
+vn 0.595019 0.681936 0.425306
+vn -0.086001 0.174383 -0.980895
+vn 0.546587 0.555406 0.626667
+vn 0.046052 0.335459 -0.940916
+vn 0.498306 0.455336 0.737785
+vn 0.251717 0.558855 -0.790094
+vn -0.296823 -0.163488 -0.940825
+vn -0.315348 -0.143925 -0.937986
+vn 0.456465 0.377300 0.805750
+vn 0.484970 0.764519 -0.424574
+vn -0.230811 -0.020173 -0.972777
+vn 0.419721 0.313120 0.851894
+vn 0.603229 0.795221 0.060915
+vn -0.171026 0.062593 -0.983245
+vn 0.404035 0.236488 0.883633
+vn 0.385876 0.256752 0.886074
+vn 0.379620 0.348277 0.857051
+vn 0.335063 0.940214 0.060549
+vn -0.290597 0.029206 -0.956389
+vn 0.365856 0.273995 0.889401
+vn 0.396496 0.817225 0.418165
+vn -0.257241 0.130680 -0.957457
+vn 0.409009 0.663747 0.626179
+vn -0.207831 0.262917 -0.942137
+vn 0.403546 0.535325 0.741997
+vn -0.127384 0.444197 -0.886807
+vn -0.276864 -0.086550 -0.956969
+vn -0.334910 -0.127537 -0.933561
+vn 0.392468 0.432966 0.811457
+vn 0.191076 0.900021 -0.391644
+vn -0.315226 -0.054170 -0.947447
+vn 0.324717 0.476821 0.816797
+vn 0.007721 0.682333 -0.730949
+vn -0.197821 0.734703 -0.648885
+vn -0.352824 -0.028565 -0.935240
+vn 0.337718 0.376446 0.862667
+vn 0.082888 0.994110 0.069613
+vn -0.348155 0.067507 -0.934996
+vn 0.345470 0.287576 0.893246
+vn 0.195349 0.891232 0.409284
+vn -0.338145 0.181310 -0.923429
+vn 0.263985 0.737236 0.621906
+vn -0.318125 0.323740 -0.891018
+vn 0.302683 0.595416 0.744163
+vn -0.277840 0.508042 -0.815271
+vn -0.354167 -0.114750 -0.928098
+vn 0.203497 0.634297 0.745811
+vn -0.401379 0.537400 -0.741661
+vn -0.372417 -0.105533 -0.922025
+vn 0.257363 0.507614 0.822230
+vn -0.065035 0.939451 -0.336436
+vn -0.357158 0.742424 -0.566729
+vn -0.388379 -0.010071 -0.921415
+vn 0.296213 0.396893 0.868740
+vn -0.123203 0.988769 0.084262
+vn -0.401624 0.094485 -0.910886
+vn 0.325632 0.297433 0.897458
+vn 0.016022 0.915189 0.402661
+vn -0.411145 0.214972 -0.885830
+vn 0.126011 0.776727 0.617084
+vn -0.413770 0.359905 -0.836177
+vn -0.475661 0.232948 -0.848201
+vn 0.003479 0.788049 0.615589
+vn -0.495315 0.375500 -0.783319
+vn 0.111850 0.652974 0.749046
+vn -0.501846 0.542161 -0.673910
+vn -0.389233 -0.099948 -0.915677
+vn 0.193945 0.525071 0.828639
+vn -0.261513 0.924284 -0.277963
+vn -0.479873 0.725211 -0.493698
+vn -0.421064 0.001221 -0.907010
+vn 0.256905 0.409284 0.875454
+vn -0.283059 0.953429 0.103916
+vn -0.450026 0.110294 -0.886166
+vn 0.307047 0.303446 0.901975
+vn -0.133396 0.905759 0.402203
+vn -0.408460 0.884945 -0.223548
+vn -0.406873 0.904324 0.128849
+vn -0.492874 0.115299 -0.862392
+vn 0.290414 0.305582 0.906766
+vn -0.254219 0.875729 0.410413
+vn -0.531846 0.236641 -0.813074
+vn -0.100314 0.777764 0.620472
+vn -0.564745 0.373974 -0.735618
+vn 0.031495 0.653798 0.755974
+vn -0.584674 0.529099 -0.614917
+vn -0.404187 -0.097934 -0.909391
+vn 0.137181 0.529618 0.837031
+vn -0.577105 0.693472 -0.431257
+vn -0.450270 0.005341 -0.892850
+vn 0.221473 0.413526 0.883114
+vn 0.089175 0.522141 0.848170
+vn -0.521287 0.835414 -0.174047
+vn -0.657369 0.651723 -0.378216
+vn -0.475509 0.002380 -0.879696
+vn 0.191290 0.409833 0.891842
+vn -0.504807 0.848323 0.159551
+vn -0.529893 0.109989 -0.840877
+vn 0.276254 0.303903 0.911740
+vn -0.350749 0.832575 0.428632
+vn -0.580157 0.227302 -0.782098
+vn -0.185034 0.751030 0.633778
+vn -0.624012 0.357830 -0.694632
+vn -0.035432 0.639210 0.768181
+vn -0.654500 0.502121 -0.565203
+vn -0.417005 -0.099460 -0.903439
+vn -0.087893 0.611225 0.786523
+vn -0.714713 0.462905 -0.524247
+vn -0.427442 -0.104373 -0.897977
+vn 0.051363 0.503647 0.862362
+vn -0.611866 0.780480 -0.128117
+vn -0.726402 0.601245 -0.332835
+vn -0.496323 -0.007355 -0.868068
+vn 0.167333 0.398694 0.901669
+vn -0.584399 0.787194 0.196875
+vn -0.560778 0.094852 -0.822504
+vn 0.264992 0.298654 0.916807
+vn -0.427107 0.779748 0.457717
+vn -0.620991 0.205847 -0.756279
+vn -0.251381 0.710990 0.656697
+vn -0.674673 0.328471 -0.660970
+vn -0.654408 0.172735 -0.736106
+vn -0.486099 0.717826 0.498367
+vn -0.717612 0.286416 -0.634785
+vn -0.299844 0.659139 0.689627
+vn -0.767449 0.411634 -0.491470
+vn -0.512375 -0.023652 -0.858425
+vn -0.125156 0.571123 0.811243
+vn -0.688040 0.720756 -0.083895
+vn -0.787957 0.541337 -0.293344
+vn -0.585253 0.070284 -0.807764
+vn 0.024689 0.475051 0.879604
+vn -0.754906 0.654622 -0.039430
+vn 0.150334 0.380566 0.912412
+vn -0.650410 0.719962 0.242042
+vn -0.815455 0.578753 0.007355
+vn -0.680044 0.128178 -0.721854
+vn 0.256844 0.290048 0.921873
+vn 0.140690 0.356029 0.923795
+vn -0.705344 0.643696 0.296823
+vn -0.752922 0.231330 -0.616077
+vn -0.528703 0.645497 0.551164
+vn -0.813715 0.347087 -0.466231
+vn -0.330271 0.595508 0.732292
+vn -0.844264 0.469497 -0.258400
+vn -0.435347 -0.112461 -0.893185
+vn -0.523240 -0.046083 -0.850917
+vn -0.146550 0.519639 0.841700
+vn -0.602832 0.036714 -0.796991
+vn 0.009857 0.437056 0.899350
+vn -0.151311 0.457076 0.876431
+vn -0.870937 0.487808 0.058992
+vn -0.612812 -0.005432 -0.790185
+vn 0.007355 0.390515 0.920560
+vn -0.697043 0.072237 -0.713370
+vn 0.251930 0.278298 0.926847
+vn 0.138829 0.325694 0.935209
+vn -0.749321 0.553514 0.363475
+vn -0.779809 0.162236 -0.604572
+vn -0.553972 0.559618 0.616382
+vn -0.853267 0.266732 -0.448042
+vn -0.341655 0.519028 0.783471
+vn -0.896115 0.381512 -0.226630
+vn -0.440504 -0.123569 -0.889187
+vn -0.528520 -0.074282 -0.845637
+vn -0.331828 0.428144 0.840571
+vn -0.942289 0.270791 -0.196783
+vn -0.442763 -0.137577 -0.885983
+vn -0.527696 -0.107578 -0.842586
+vn -0.138615 0.383740 0.912961
+vn -0.920011 0.373547 0.118320
+vn -0.614277 -0.055666 -0.787103
+vn 0.017457 0.336283 0.941588
+vn -0.703879 0.004730 -0.710288
+vn 0.250557 0.263619 0.931486
+vn 0.144871 0.290384 0.945860
+vn -0.779290 0.442000 0.444166
+vn -0.796289 0.077670 -0.599872
+vn -0.558458 0.455611 0.693167
+vn -0.884152 0.166784 -0.436384
+vn -0.535661 0.328318 0.777978
+vn -0.901578 0.042268 -0.430494
+vn -0.297830 0.321696 0.898770
+vn -0.977538 0.127750 -0.167425
+vn -0.441877 -0.154118 -0.883724
+vn -0.520310 -0.145207 -0.841517
+vn -0.107761 0.300455 0.947661
+vn -0.956328 0.223579 0.188147
+vn -0.606067 -0.113224 -0.787286
+vn 0.040010 0.275796 0.960356
+vn -0.698355 -0.074129 -0.711875
+vn 0.252815 0.246376 0.935606
+vn 0.158635 0.251198 0.954833
+vn -0.787072 0.299081 0.539445
+vn -0.798761 -0.023957 -0.601154
+vn -0.677633 -0.163427 -0.717002
+vn 0.258736 0.227119 0.938841
+vn 0.179601 0.209449 0.961150
+vn -0.756523 0.114353 0.643880
+vn -0.781671 -0.143406 -0.606952
+vn -0.476394 0.174535 0.861721
+vn -0.896359 -0.111576 -0.428999
+vn -0.237007 0.200537 0.950560
+vn -0.988800 -0.059084 -0.136937
+vn -0.437666 -0.172857 -0.882351
+vn -0.505997 -0.186224 -0.842158
+vn -0.058931 0.209296 0.976074
+vn -0.587024 -0.176763 -0.790002
+vn 0.074343 0.210913 0.974639
+vn -0.962889 0.022645 0.268929
+vn -0.949492 -0.295633 -0.105014
+vn -0.555956 -0.244392 -0.794458
+vn 0.119053 0.144230 0.982330
+vn -0.905759 -0.236305 0.351726
+vn -0.638508 -0.260689 -0.724082
+vn 0.268105 0.206397 0.941008
+vn 0.206977 0.166662 0.964019
+vn -0.663472 -0.113041 0.739586
+vn -0.737663 -0.278512 -0.615009
+vn -0.372021 -0.001404 0.928190
+vn -0.853420 -0.295297 -0.429426
+vn -0.148808 0.069704 0.986389
+vn -0.430067 -0.193243 -0.881863
+vn -0.484390 -0.229316 -0.844234
+vn 0.006409 0.114078 0.993439
+vn -0.037568 -0.060030 0.997467
+vn -0.824030 -0.561327 -0.076510
+vn -0.418897 -0.214789 -0.882229
+vn -0.455397 -0.272561 -0.847530
+vn 0.084994 0.020936 0.996155
+vn -0.512131 -0.312815 -0.799890
+vn 0.172246 0.079196 0.981842
+vn -0.745628 -0.523728 0.411969
+vn -0.578539 -0.360820 -0.731468
+vn 0.280862 0.184851 0.941771
+vn 0.239937 0.124821 0.962706
+vn -0.489334 -0.356090 0.796045
+vn -0.659658 -0.421155 -0.622456
+vn -0.222510 -0.181219 0.957915
+vn -0.754845 -0.496200 -0.428877
+vn 0.350932 0.200903 0.914579
+vn -0.350932 -0.200903 -0.914579
+vn 0.296823 0.163488 0.940794
+vn -0.404035 -0.236488 -0.883633
+vn -0.595019 -0.681936 -0.425306
+vn -0.385876 -0.256752 -0.886074
+vn 0.290567 -0.029206 0.956389
+vn -0.335063 -0.940214 -0.060579
+vn 0.276864 0.086550 0.956969
+vn 0.315226 0.054170 0.947447
+vn 0.315348 0.143925 0.937986
+vn 0.334910 0.127537 0.933561
+vn -0.403546 -0.535295 -0.741997
+vn 0.207801 -0.262917 0.942137
+vn -0.345439 -0.287576 -0.893246
+vn 0.354198 0.114750 0.928098
+vn -0.302652 -0.595447 -0.744194
+vn 0.413770 -0.359935 0.836177
+vn 0.065035 -0.939421 0.336436
+vn -0.296213 -0.396893 -0.868740
+vn 0.388379 0.010071 0.921415
+vn -0.257393 -0.507614 -0.822199
+vn 0.389203 0.099948 0.915677
+vn -0.307047 -0.303446 -0.901975
+vn -0.256905 -0.409284 -0.875454
+vn 0.421094 -0.001221 0.907010
+vn -0.221503 -0.413526 -0.883114
+vn 0.450301 -0.005341 0.892850
+vn 0.577105 -0.693472 0.431257
+vn -0.137181 -0.529618 -0.837031
+vn 0.404157 0.097934 0.909391
+vn 0.564745 -0.373974 0.735649
+vn -0.290445 -0.305582 -0.906766
+vn 0.406873 -0.904324 -0.128849
+vn -0.276284 -0.303903 -0.911740
+vn 0.657399 -0.651723 0.378216
+vn 0.417005 0.099460 0.903409
+vn 0.654530 -0.502121 0.565172
+vn 0.580157 -0.227302 0.782098
+vn 0.251381 -0.711020 -0.656667
+vn 0.560778 -0.094852 0.822474
+vn -0.167333 -0.398694 -0.901669
+vn 0.787957 -0.541307 0.293344
+vn 0.330302 -0.595477 -0.732292
+vn 0.813715 -0.347087 0.466231
+vn 0.528703 -0.645497 -0.551164
+vn 0.680044 -0.128178 0.721854
+vn -0.251961 -0.278298 -0.926847
+vn -0.007324 -0.390515 -0.920560
+vn 0.612812 0.005402 0.790185
+vn 0.440535 0.123569 0.889157
+vn 0.558458 -0.455611 -0.693197
+vn -0.144902 -0.290384 -0.945860
+vn 0.614277 0.055666 0.787103
+vn 0.138615 -0.383740 -0.912961
+vn 0.331828 -0.428144 -0.840571
+vn 0.798761 0.023957 0.601154
+vn 0.787072 -0.299081 -0.539445
+vn -0.252815 -0.246376 -0.935606
+vn -0.040040 -0.275796 -0.960356
+vn 0.988800 0.059084 0.136937
+vn 0.058931 -0.209296 -0.976074
+vn 0.437666 0.172857 0.882351
+vn 0.962889 -0.022614 -0.268929
+vn -0.074343 -0.210913 -0.974670
+vn 0.905759 0.236305 -0.351726
+vn 0.555956 0.244392 0.794458
+vn 0.430036 0.193243 0.881863
+vn 0.484390 0.229286 0.844234
+vn 0.148808 -0.069704 -0.986389
+vn 0.372021 0.001404 -0.928190
+vn 0.659658 0.421155 0.622425
+vn -0.239937 -0.124821 -0.962706
+vn 0.745628 0.523728 -0.411969
+vn -0.172277 -0.079196 -0.981842
+vn 0.037538 0.060030 -0.997467
+vn 0.251717 0.558855 -0.790124
+vn -0.296854 -0.163488 -0.940794
+vn 0.484970 0.764519 -0.424604
+vn 0.419721 0.313150 0.851894
+vn 0.365886 0.273995 0.889401
+vn 0.403516 0.535325 0.741997
+vn 0.007752 0.682333 -0.730949
+vn -0.352824 -0.028596 -0.935240
+vn -0.338115 0.181310 -0.923460
+vn 0.302683 0.595416 0.744194
+vn -0.277871 0.508042 -0.815271
+vn 0.257393 0.507614 0.822199
+vn -0.357189 0.742424 -0.566729
+vn 0.296182 0.396893 0.868740
+vn 0.003449 0.788049 0.615589
+vn -0.389203 -0.099948 -0.915708
+vn 0.256874 0.409284 0.875454
+vn -0.450026 0.110294 -0.886135
+vn -0.408460 0.884976 -0.223548
+vn -0.564745 0.373974 -0.735649
+vn -0.404157 -0.097934 -0.909421
+vn -0.450301 0.005341 -0.892850
+vn 0.276284 0.303903 0.911740
+vn -0.580157 0.227332 -0.782098
+vn -0.654530 0.502121 -0.565172
+vn -0.417005 -0.099460 -0.903409
+vn -0.611866 0.780511 -0.128117
+vn -0.726402 0.601245 -0.332804
+vn -0.427137 0.779748 0.457747
+vn -0.251381 0.711020 0.656667
+vn -0.787957 0.541307 -0.293344
+vn -0.528672 0.645497 0.551164
+vn -0.612812 -0.005402 -0.790185
+vn 0.007324 0.390515 0.920560
+vn 0.251961 0.278329 0.926817
+vn -0.440535 -0.123569 -0.889157
+vn -0.528520 -0.074252 -0.845637
+vn -0.331828 0.428144 0.840541
+vn -0.138585 0.383740 0.912961
+vn -0.614246 -0.055666 -0.787103
+vn -0.535630 0.328318 0.777978
+vn 0.258705 0.227119 0.938841
+vn 0.179571 0.209449 0.961150
+vn -0.988800 -0.059053 -0.136937
+vn 0.074313 0.210913 0.974639
+vn -0.430067 -0.193243 -0.881832
+vn -0.824000 -0.561327 -0.076510
+vn -0.418867 -0.214789 -0.882260
+vn 0.280892 0.184851 0.941740
+vn 0.239967 0.124821 0.962706
+vn 0.296854 0.163488 0.940794
+vn -0.404004 -0.236488 -0.883633
+usemtl SkinColor
+s 1
+f 3381//2303 3380//2304 3395//2305
+f 3376//2306 3375//2307 3390//2308
+f 3387//2309 3386//2310 3402//2311
+f 3382//2312 3381//2303 3396//2313
+f 3377//2314 3376//2306 3391//2315
+f 3388//2316 3387//2309 3403//2317
+f 3383//2318 3382//2312 3397//2319
+f 3378//2320 3377//2314 3392//2321
+f 3389//2322 3388//2316 3404//2323
+f 3384//2324 3383//2318 3399//2325
+f 3379//2326 3378//2320 3393//2327
+f 3385//2328 3384//2324 3400//2329
+f 3380//2304 3379//2326 3394//2330
+f 3386//2310 3385//2328 3401//2331
+f 3396//2313 3395//2305 3410//2332
+f 3391//2315 3390//2308 3405//2333
+f 3402//2311 3401//2331 3417//2334
+f 3397//2319 3396//2313 3411//2335
+f 3392//2321 3391//2315 3406//2336
+f 3403//2317 3402//2311 3418//2337
+f 3398//2338 3397//2319 3413//2339
+f 3393//2327 3392//2321 3407//2340
+f 3404//2323 3403//2317 3419//2341
+f 3399//2325 3398//2338 3414//2342
+f 3394//2330 3393//2327 3408//2343
+f 3400//2329 3399//2325 3415//2344
+f 3395//2305 3394//2330 3409//2345
+f 3401//2331 3400//2329 3416//2346
+f 3415//2344 3414//2342 3430//2347
+f 3410//2332 3409//2345 3424//2348
+f 3416//2346 3415//2344 3431//2349
+f 3411//2335 3410//2332 3425//2350
+f 3406//2336 3405//2333 3420//2351
+f 3417//2334 3416//2346 3432//2352
+f 3412//2353 3411//2335 3426//2354
+f 3407//2340 3406//2336 3421//2355
+f 3418//2337 3417//2334 3433//2356
+f 3413//2339 3412//2353 3428//2357
+f 3408//2343 3407//2340 3422//2358
+f 3419//2341 3418//2337 3434//2359
+f 3414//2342 3413//2339 3429//2360
+f 3409//2345 3408//2343 3423//2361
+f 3434//2359 3433//2356 3449//2362
+f 3429//2360 3428//2357 3444//2363
+f 3424//2348 3423//2361 3438//2364
+f 3430//2347 3429//2360 3445//2365
+f 3425//2350 3424//2348 3439//2366
+f 3431//2349 3430//2347 3446//2367
+f 3426//2354 3425//2350 3440//2368
+f 3421//2355 3420//2351 3435//2369
+f 3432//2352 3431//2349 3447//2370
+f 3427//2371 3426//2354 3441//2372
+f 3422//2358 3421//2355 3436//2373
+f 3433//2356 3432//2352 3448//2374
+f 3428//2357 3427//2371 3443//2375
+f 3423//2361 3422//2358 3437//2376
+f 3437//2376 3436//2373 3451//2377
+f 3448//2374 3447//2370 3463//2378
+f 3443//2375 3442//2379 3458//2380
+f 3438//2364 3437//2376 3452//2381
+f 3449//2362 3448//2374 3464//2382
+f 3444//2363 3443//2375 3459//2383
+f 3439//2366 3438//2364 3453//2384
+f 3445//2365 3444//2363 3460//2385
+f 3440//2368 3439//2366 3454//2386
+f 3446//2367 3445//2365 3461//2387
+f 3441//2372 3440//2368 3455//2388
+f 3436//2373 3435//2369 3450//2389
+f 3447//2370 3446//2367 3462//2390
+f 3442//2379 3441//2372 3456//2391
+f 3456//2391 3455//2388 3470//2392
+f 3451//2377 3450//2389 3465//2393
+f 3462//2390 3461//2387 3477//2394
+f 3457//2395 3456//2391 3471//2396
+f 3452//2381 3451//2377 3466//2397
+f 3463//2378 3462//2390 3478//2398
+f 3458//2380 3457//2395 3473//2399
+f 3453//2384 3452//2381 3467//2400
+f 3464//2382 3463//2378 3479//2401
+f 3459//2383 3458//2380 3474//2402
+f 3454//2386 3453//2384 3468//2403
+f 3460//2385 3459//2383 3475//2404
+f 3455//2388 3454//2386 3469//2405
+f 3461//2387 3460//2385 3476//2406
+f 3475//2404 3474//2402 3490//2407
+f 3470//2392 3469//2405 3484//2408
+f 3476//2406 3475//2404 3491//2409
+f 3471//2396 3470//2392 3485//2410
+f 3466//2397 3465//2393 3480//2411
+f 3477//2394 3476//2406 3492//2412
+f 3472//2413 3471//2396 3486//2414
+f 3467//2400 3466//2397 3481//2415
+f 3478//2398 3477//2394 3493//2416
+f 3473//2399 3472//2413 3488//2417
+f 3468//2403 3467//2400 3482//2418
+f 3479//2401 3478//2398 3494//2419
+f 3474//2402 3473//2399 3489//2420
+f 3469//2405 3468//2403 3483//2421
+f 3494//2419 3493//2416 3508//2422
+f 3489//2420 3488//2417 3504//2423
+f 3484//2408 3483//2421 3499//2424
+f 3490//2407 3489//2420 3505//2425
+f 3485//2410 3484//2408 3500//2426
+f 3491//2409 3490//2407 3506//2427
+f 3486//2414 3485//2410 3501//2428
+f 3481//2415 3480//2411 3496//2429
+f 3492//2412 3491//2409 3506//2427
+f 3487//2430 3486//2414 3502//2431
+f 3482//2418 3481//2415 3497//2432
+f 3493//2416 3492//2412 3507//2433
+f 3488//2417 3487//2430 3503//2434
+f 3483//2421 3482//2418 3498//2435
+f 3508//2422 3507//2433 3522//2436
+f 3503//2434 3502//2431 3518//2437
+f 3498//2435 3497//2432 3513//2438
+f 3509//2439 3508//2422 3523//2440
+f 3504//2423 3503//2434 3518//2437
+f 3499//2424 3498//2435 3514//2441
+f 3505//2425 3504//2423 3519//2442
+f 3500//2426 3499//2424 3515//2443
+f 3506//2427 3505//2425 3520//2444
+f 3501//2428 3500//2426 3516//2445
+f 3496//2429 3495//2446 3511//2447
+f 3507//2433 3506//2427 3521//2448
+f 3502//2431 3501//2428 3517//2449
+f 3497//2432 3496//2429 3512//2450
+f 3511//2447 3510//2451 3526//2452
+f 3522//2436 3521//2448 3536//2453
+f 3517//2449 3516//2445 3532//2454
+f 3512//2450 3511//2447 3527//2455
+f 3523//2440 3522//2436 3537//2456
+f 3518//2437 3517//2449 3532//2454
+f 3513//2438 3512//2450 3528//2457
+f 3524//2458 3523//2440 3538//2459
+f 3519//2442 3518//2437 3533//2460
+f 3514//2441 3513//2438 3529//2461
+f 3520//2444 3519//2442 3534//2462
+f 3515//2443 3514//2441 3530//2463
+f 3521//2448 3520//2444 3535//2464
+f 3516//2445 3515//2443 3531//2465
+f 3530//2463 3529//2461 3545//2466
+f 3536//2453 3535//2464 3550//2467
+f 3531//2465 3530//2463 3546//2468
+f 3526//2452 3525//2469 3541//2470
+f 3537//2456 3536//2453 3551//2471
+f 3532//2454 3531//2465 3547//2472
+f 3527//2455 3526//2452 3542//2473
+f 3538//2459 3537//2456 3552//2474
+f 3533//2460 3532//2454 3547//2472
+f 3528//2457 3527//2455 3543//2475
+f 3539//2476 3538//2459 3553//2477
+f 3534//2462 3533//2460 3548//2478
+f 3529//2461 3528//2457 3544//2479
+f 3535//2464 3534//2462 3549//2480
+f 3549//2480 3548//2478 3563//2481
+f 3544//2479 3543//2475 3559//2482
+f 3550//2467 3549//2480 3564//2483
+f 3545//2466 3544//2479 3560//2484
+f 3551//2471 3550//2467 3565//2485
+f 3546//2468 3545//2466 3561//2486
+f 3541//2470 3540//2487 3556//2488
+f 3552//2474 3551//2471 3566//2489
+f 3547//2472 3546//2468 3562//2490
+f 3542//2473 3541//2470 3557//2491
+f 3553//2477 3552//2474 3567//2492
+f 3548//2478 3547//2472 3562//2490
+f 3543//2475 3542//2473 3558//2493
+f 3554//2494 3553//2477 3568//2495
+f 3568//2495 3567//2492 3582//2496
+f 3563//2481 3562//2490 3578//2497
+f 3558//2493 3557//2491 3573//2498
+f 3569//2499 3568//2495 3583//2500
+f 3564//2483 3563//2481 3578//2497
+f 3559//2482 3558//2493 3574//2501
+f 3565//2485 3564//2483 3579//2502
+f 3560//2484 3559//2482 3575//2503
+f 3566//2489 3565//2485 3580//2504
+f 3561//2486 3560//2484 3576//2505
+f 3556//2488 3555//2506 3571//2507
+f 3567//2492 3566//2489 3581//2508
+f 3562//2490 3561//2486 3577//2509
+f 3557//2491 3556//2488 3572//2510
+f 3571//2507 3570//2511 3586//2512
+f 3582//2496 3581//2508 3596//2513
+f 3577//2509 3576//2505 3592//2514
+f 3572//2510 3571//2507 3587//2515
+f 3583//2500 3582//2496 3597//2516
+f 3578//2497 3577//2509 3593//2517
+f 3573//2498 3572//2510 3588//2518
+f 3584//2519 3583//2500 3598//2520
+f 3579//2502 3578//2497 3593//2517
+f 3574//2501 3573//2498 3589//2521
+f 3580//2504 3579//2502 3594//2522
+f 3575//2503 3574//2501 3590//2523
+f 3581//2508 3580//2504 3595//2524
+f 3576//2505 3575//2503 3591//2525
+f 3590//2523 3589//2521 3605//2526
+f 3596//2513 3595//2524 3610//2527
+f 3591//2525 3590//2523 3606//2528
+f 3586//2512 3585//2529 3601//2530
+f 3597//2516 3596//2513 3611//2531
+f 3592//2514 3591//2525 3607//2532
+f 3587//2515 3586//2512 3602//2533
+f 3598//2520 3597//2516 3612//2534
+f 3593//2517 3592//2514 3608//2535
+f 3588//2518 3587//2515 3603//2536
+f 3599//2537 3598//2520 3613//2538
+f 3594//2522 3593//2517 3608//2535
+f 3589//2521 3588//2518 3604//2539
+f 3595//2524 3594//2522 3609//2540
+f 3609//2540 3608//2535 3624//2541
+f 3604//2539 3603//2536 3619//2542
+f 3610//2527 3609//2540 3625//2543
+f 3605//2526 3604//2539 3620//2544
+f 3611//2531 3610//2527 3626//2545
+f 3606//2528 3605//2526 3621//2546
+f 3601//2530 3600//2547 3615//2548
+f 3612//2534 3611//2531 3627//2549
+f 3607//2532 3606//2528 3622//2550
+f 3602//2533 3601//2530 3617//2551
+f 3613//2538 3612//2534 3628//2552
+f 3608//2535 3607//2532 3623//2553
+f 3603//2536 3602//2533 3618//2554
+f 3614//2555 3613//2538 3629//2556
+f 3628//2552 3627//2549 3643//2557
+f 3623//2553 3622//2550 3638//2558
+f 3618//2554 3617//2551 3632//2559
+f 3629//2556 3628//2552 3644//2560
+f 3624//2541 3623//2553 3639//2561
+f 3619//2542 3618//2554 3633//2562
+f 3625//2543 3624//2541 3640//2563
+f 3620//2544 3619//2542 3634//2564
+f 3626//2545 3625//2543 3641//2565
+f 3621//2546 3620//2544 3635//2566
+f 3616//2567 3615//2548 3630//2568
+f 3627//2549 3626//2545 3642//2569
+f 3622//2550 3621//2546 3637//2570
+f 3617//2551 3616//2567 3631//2571
+f 3642//2569 3641//2565 3657//2572
+f 3637//2570 3636//2573 3651//2574
+f 3632//2559 3631//2571 3646//2575
+f 3643//2557 3642//2569 3658//2576
+f 3638//2558 3637//2570 3653//2577
+f 3633//2562 3632//2559 3647//2578
+f 3644//2560 3643//2557 3659//2579
+f 3639//2561 3638//2558 3654//2580
+f 3634//2564 3633//2562 3648//2581
+f 3640//2563 3639//2561 3655//2582
+f 3635//2566 3634//2564 3649//2583
+f 3641//2565 3640//2563 3656//2584
+f 3636//2573 3635//2566 3650//2585
+f 3631//2571 3630//2568 3645//2586
+f 3656//2584 3655//2582 3671//2587
+f 3651//2574 3650//2585 3665//2588
+f 3646//2575 3645//2586 3660//2589
+f 3657//2572 3656//2584 3672//2590
+f 3652//2591 3651//2574 3666//2592
+f 3647//2578 3646//2575 3661//2593
+f 3658//2576 3657//2572 3673//2594
+f 3653//2577 3652//2591 3668//2595
+f 3648//2581 3647//2578 3662//2596
+f 3659//2579 3658//2576 3674//2597
+f 3654//2580 3653//2577 3669//2598
+f 3649//2583 3648//2581 3663//2599
+f 3655//2582 3654//2580 3670//2600
+f 3650//2585 3649//2583 3664//2601
+f 3664//2601 3663//2599 3678//2602
+f 3670//2600 3669//2598 3685//2603
+f 3665//2588 3664//2601 3679//2604
+f 3671//2587 3670//2600 3686//2605
+f 3666//2592 3665//2588 3680//2606
+f 3661//2593 3660//2589 3675//2607
+f 3672//2590 3671//2587 3687//2608
+f 3667//2609 3666//2592 3681//2610
+f 3662//2596 3661//2593 3676//2611
+f 3673//2594 3672//2590 3688//2612
+f 3668//2595 3667//2609 3683//2613
+f 3663//2599 3662//2596 3677//2614
+f 3674//2597 3673//2594 3689//2615
+f 3669//2598 3668//2595 3684//2616
+f 3683//2613 3682//2617 3698//2618
+f 3678//2602 3677//2614 3692//2619
+f 3689//2615 3688//2612 3704//2620
+f 3684//2616 3683//2613 3699//2621
+f 3679//2604 3678//2602 3693//2622
+f 3685//2603 3684//2616 3700//2623
+f 3680//2606 3679//2604 3694//2624
+f 3686//2605 3685//2603 3701//2625
+f 3681//2610 3680//2606 3695//2626
+f 3676//2611 3675//2607 3690//2627
+f 3687//2608 3686//2605 3702//2628
+f 3682//2617 3681//2610 3696//2629
+f 3677//2614 3676//2611 3691//2630
+f 3688//2612 3687//2608 3703//2631
+f 3702//2628 3701//2625 3718//2632
+f 3697//2633 3696//2629 3712//2634
+f 3692//2619 3691//2630 3707//2635
+f 3703//2631 3702//2628 3719//2636
+f 3698//2618 3697//2633 3714//2637
+f 3693//2622 3692//2619 3708//2638
+f 3704//2620 3703//2631 3720//2639
+f 3699//2621 3698//2618 3715//2640
+f 3694//2624 3693//2622 3709//2641
+f 3700//2623 3699//2621 3716//2642
+f 3695//2626 3694//2624 3710//2643
+f 3701//2625 3700//2623 3717//2644
+f 3696//2629 3695//2626 3711//2645
+f 3691//2630 3690//2627 3706//2646
+f 3717//2644 3716//2642 3732//2647
+f 3712//2634 3711//2645 3726//2648
+f 3707//2635 3706//2646 3721//2649
+f 3718//2632 3717//2644 3733//2650
+f 3713//2651 3712//2634 3727//2652
+f 3708//2638 3707//2635 3722//2653
+f 3719//2636 3718//2632 3734//2654
+f 3714//2637 3713//2651 3729//2655
+f 3709//2641 3708//2638 3723//2656
+f 3720//2639 3719//2636 3735//2657
+f 3715//2640 3714//2637 3730//2658
+f 3710//2643 3709//2641 3724//2659
+f 3716//2642 3715//2640 3731//2660
+f 3711//2645 3710//2643 3725//2661
+f 3725//2661 3724//2659 3739//2662
+f 3731//2660 3730//2658 3745//2663
+f 3726//2648 3725//2661 3740//2664
+f 3732//2647 3731//2660 3746//2665
+f 3727//2652 3726//2648 3741//2666
+f 3722//2653 3721//2649 3737//2667
+f 3733//2650 3732//2647 3747//2668
+f 3728//2669 3727//2652 3742//2670
+f 3723//2656 3722//2653 3738//2671
+f 3734//2654 3733//2650 3748//2672
+f 3729//2655 3728//2669 3743//2673
+f 3724//2659 3723//2656 3739//2662
+f 3735//2657 3734//2654 3749//2674
+f 3730//2658 3729//2655 3744//2675
+f 3744//2675 3743//2673 3758//2676
+f 3739//2662 3738//2671 3754//2677
+f 3750//2678 3749//2674 3764//2679
+f 3745//2663 3744//2675 3759//2680
+f 3740//2664 3739//2662 3755//2681
+f 3746//2665 3745//2663 3760//2682
+f 3741//2666 3740//2664 3756//2683
+f 3747//2668 3746//2665 3761//2684
+f 3742//2670 3741//2666 3757//2685
+f 3737//2667 3736//2686 3752//2687
+f 3748//2672 3747//2668 3762//2688
+f 3743//2673 3742//2670 3757//2685
+f 3738//2671 3737//2667 3753//2689
+f 3749//2674 3748//2672 3763//2690
+f 3763//2690 3762//2688 3777//2691
+f 3758//2676 3757//2685 3773//2692
+f 3753//2689 3752//2687 3768//2693
+f 3764//2679 3763//2690 3778//2694
+f 3759//2680 3758//2676 3773//2692
+f 3754//2677 3753//2689 3769//2695
+f 3765//2696 3764//2679 3779//2697
+f 3760//2682 3759//2680 3774//2698
+f 3755//2681 3754//2677 3770//2699
+f 3761//2684 3760//2682 3775//2700
+f 3756//2683 3755//2681 3771//2701
+f 3762//2688 3761//2684 3776//2702
+f 3757//2685 3756//2683 3772//2703
+f 3752//2687 3751//2704 3767//2705
+f 3777//2691 3776//2702 3791//2706
+f 3772//2703 3771//2701 3787//2707
+f 3767//2705 3766//2708 3782//2709
+f 3778//2694 3777//2691 3792//2710
+f 3773//2692 3772//2703 3788//2711
+f 3768//2693 3767//2705 3783//2712
+f 3779//2697 3778//2694 3793//2713
+f 3774//2698 3773//2692 3788//2711
+f 3769//2695 3768//2693 3784//2714
+f 3780//2715 3779//2697 3794//2716
+f 3775//2700 3774//2698 3789//2717
+f 3770//2699 3769//2695 3785//2718
+f 3776//2702 3775//2700 3790//2719
+f 3771//2701 3770//2699 3786//2720
+f 3791//2706 3790//2719 3805//2721
+f 3786//2720 3785//2718 3801//2722
+f 3792//2710 3791//2706 3806//2723
+f 3787//2707 3786//2720 3802//2724
+f 3782//2709 3781//2725 3797//2726
+f 3793//2713 3792//2710 3807//2727
+f 3788//2711 3787//2707 3803//2728
+f 3783//2712 3782//2709 3798//2729
+f 3794//2716 3793//2713 3808//2730
+f 3789//2717 3788//2711 3803//2728
+f 3784//2714 3783//2712 3799//2731
+f 3795//2732 3794//2716 3809//2733
+f 3790//2719 3789//2717 3804//2734
+f 3785//2718 3784//2714 3800//2735
+f 3799//2731 3798//2729 3814//2736
+f 3810//2737 3809//2733 3824//2738
+f 3805//2721 3804//2734 3819//2739
+f 3800//2735 3799//2731 3815//2740
+f 3806//2723 3805//2721 3820//2741
+f 3801//2722 3800//2735 3816//2742
+f 3807//2727 3806//2723 3821//2743
+f 3802//2724 3801//2722 3817//2744
+f 3797//2726 3796//2745 3812//2746
+f 3808//2730 3807//2727 3822//2747
+f 3803//2728 3802//2724 3817//2744
+f 3798//2729 3797//2726 3813//2748
+f 3809//2733 3808//2730 3823//2749
+f 3804//2734 3803//2728 3818//2750
+f 3818//2750 3817//2744 3833//2751
+f 3813//2748 3812//2746 3829//2752
+f 3824//2738 3823//2749 3839//2753
+f 3819//2739 3818//2750 3834//2754
+f 3814//2736 3813//2748 3830//2755
+f 3825//2756 3824//2738 3840//2757
+f 3820//2741 3819//2739 3835//2758
+f 3815//2740 3814//2736 3831//2759
+f 3821//2743 3820//2741 3836//2760
+f 3816//2742 3815//2740 3832//2761
+f 3822//2747 3821//2743 3837//2762
+f 3817//2744 3816//2742 3833//2751
+f 3812//2746 3811//2763 3828//2764
+f 3823//2749 3822//2747 3838//2765
+f 3838//2765 3837//2762 3852//2766
+f 3833//2751 3832//2761 3848//2767
+f 3828//2764 3827//2768 3843//2769
+f 3839//2753 3838//2765 3853//2770
+f 3834//2754 3833//2751 3848//2767
+f 3829//2752 3828//2764 3844//2771
+f 3840//2757 3839//2753 3854//2772
+f 3835//2758 3834//2754 3849//2773
+f 3830//2755 3829//2752 3845//2774
+f 3841//2775 3840//2757 3855//2776
+f 3836//2760 3835//2758 3850//2777
+f 3831//2759 3830//2755 3846//2778
+f 3837//2762 3836//2760 3851//2779
+f 3832//2761 3831//2759 3847//2780
+f 3705//2781 3389//2322 3404//2323
+f 3375//2307 3826//2782 3390//2308
+f 3705//2781 3404//2323 3419//2341
+f 3390//2308 3826//2782 3405//2333
+f 3405//2333 3826//2782 3420//2351
+f 3705//2781 3419//2341 3434//2359
+f 3705//2781 3434//2359 3449//2362
+f 3420//2351 3826//2782 3435//2369
+f 3705//2781 3449//2362 3464//2382
+f 3435//2369 3826//2782 3450//2389
+f 3705//2781 3464//2382 3479//2401
+f 3450//2389 3826//2782 3465//2393
+f 3465//2393 3826//2782 3480//2411
+f 3705//2781 3479//2401 3494//2419
+f 3705//2781 3494//2419 3509//2439
+f 3480//2411 3826//2782 3495//2446
+f 3705//2781 3509//2439 3524//2458
+f 3495//2446 3826//2782 3510//2451
+f 3705//2781 3524//2458 3539//2476
+f 3510//2451 3826//2782 3525//2469
+f 3525//2469 3826//2782 3540//2487
+f 3705//2781 3539//2476 3554//2494
+f 3705//2781 3554//2494 3569//2499
+f 3540//2487 3826//2782 3555//2506
+f 3705//2781 3569//2499 3584//2519
+f 3555//2506 3826//2782 3570//2511
+f 3705//2781 3584//2519 3599//2537
+f 3570//2511 3826//2782 3585//2529
+f 3585//2529 3826//2782 3600//2547
+f 3705//2781 3599//2537 3614//2555
+f 3705//2781 3614//2555 3629//2556
+f 3600//2547 3826//2782 3615//2548
+f 3705//2781 3629//2556 3644//2560
+f 3615//2548 3826//2782 3630//2568
+f 3705//2781 3644//2560 3659//2579
+f 3630//2568 3826//2782 3645//2586
+f 3645//2586 3826//2782 3660//2589
+f 3705//2781 3659//2579 3674//2597
+f 3705//2781 3674//2597 3689//2615
+f 3660//2589 3826//2782 3675//2607
+f 3705//2781 3689//2615 3704//2620
+f 3675//2607 3826//2782 3690//2627
+f 3705//2781 3704//2620 3720//2639
+f 3690//2627 3826//2782 3706//2646
+f 3706//2646 3826//2782 3721//2649
+f 3705//2781 3720//2639 3735//2657
+f 3705//2781 3735//2657 3750//2678
+f 3721//2649 3826//2782 3736//2686
+f 3705//2781 3750//2678 3765//2696
+f 3736//2686 3826//2782 3751//2704
+f 3705//2781 3765//2696 3780//2715
+f 3751//2704 3826//2782 3766//2708
+f 3705//2781 3780//2715 3795//2732
+f 3766//2708 3826//2782 3781//2725
+f 3705//2781 3795//2732 3810//2737
+f 3781//2725 3826//2782 3796//2745
+f 3705//2781 3810//2737 3825//2756
+f 3796//2745 3826//2782 3811//2763
+f 3705//2781 3825//2756 3841//2775
+f 3811//2763 3826//2782 3827//2768
+f 3705//2781 3841//2775 3856//2783
+f 3827//2768 3826//2782 3842//2784
+f 3705//2781 3856//2783 3389//2322
+f 3852//2766 3851//2779 3384//2324
+f 3847//2780 3846//2778 3379//2326
+f 3842//2784 3826//2782 3375//2307
+f 3853//2770 3852//2766 3385//2328
+f 3848//2767 3847//2780 3380//2304
+f 3843//2769 3842//2784 3375//2307
+f 3854//2772 3853//2770 3386//2310
+f 3849//2773 3848//2767 3381//2303
+f 3844//2771 3843//2769 3376//2306
+f 3855//2776 3854//2772 3387//2309
+f 3850//2777 3849//2773 3382//2312
+f 3845//2774 3844//2771 3377//2314
+f 3856//2783 3855//2776 3389//2322
+f 3851//2779 3850//2777 3383//2318
+f 3846//2778 3845//2774 3378//2320
+f 3863//2303 3862//2785 3877//2305
+f 3858//2306 3857//2786 3872//2308
+f 3869//2309 3868//2310 3884//2787
+f 3864//2312 3863//2303 3878//2788
+f 3859//2314 3858//2306 3873//2315
+f 3870//2789 3869//2309 3885//2790
+f 3865//2318 3864//2312 3879//2319
+f 3860//2320 3859//2314 3874//2321
+f 3871//2791 3870//2789 3886//2792
+f 3866//2324 3865//2318 3881//2325
+f 3861//2326 3860//2320 3875//2793
+f 3867//2328 3866//2324 3882//2794
+f 3862//2785 3861//2326 3876//2330
+f 3868//2310 3867//2328 3883//2331
+f 3878//2788 3877//2305 3892//2332
+f 3873//2315 3872//2308 3887//2795
+f 3884//2787 3883//2331 3899//2334
+f 3879//2319 3878//2788 3893//2335
+f 3874//2321 3873//2315 3888//2336
+f 3885//2790 3884//2787 3900//2337
+f 3880//2338 3879//2319 3895//2339
+f 3875//2793 3874//2321 3889//2340
+f 3886//2792 3885//2790 3901//2796
+f 3881//2325 3880//2338 3896//2342
+f 3876//2330 3875//2793 3890//2797
+f 3882//2794 3881//2325 3897//2344
+f 3877//2305 3876//2330 3891//2345
+f 3883//2331 3882//2794 3898//2346
+f 3897//2344 3896//2342 3912//2798
+f 3892//2332 3891//2345 3906//2348
+f 3898//2346 3897//2344 3913//2349
+f 3893//2335 3892//2332 3907//2350
+f 3888//2336 3887//2795 3902//2351
+f 3899//2334 3898//2346 3914//2352
+f 3894//2799 3893//2335 3908//2354
+f 3889//2340 3888//2336 3903//2800
+f 3900//2337 3899//2334 3915//2801
+f 3895//2339 3894//2799 3910//2357
+f 3890//2797 3889//2340 3904//2802
+f 3901//2796 3900//2337 3916//2359
+f 3896//2342 3895//2339 3911//2360
+f 3891//2345 3890//2797 3905//2361
+f 3916//2359 3915//2801 3931//2803
+f 3911//2360 3910//2357 3926//2363
+f 3906//2348 3905//2361 3920//2364
+f 3912//2798 3911//2360 3927//2365
+f 3907//2350 3906//2348 3921//2366
+f 3913//2349 3912//2798 3928//2367
+f 3908//2354 3907//2350 3922//2368
+f 3903//2800 3902//2351 3917//2804
+f 3914//2352 3913//2349 3929//2370
+f 3909//2371 3908//2354 3923//2372
+f 3904//2802 3903//2800 3918//2805
+f 3915//2801 3914//2352 3930//2806
+f 3910//2357 3909//2371 3925//2375
+f 3905//2361 3904//2802 3919//2376
+f 3919//2376 3918//2805 3933//2807
+f 3930//2806 3929//2370 3945//2808
+f 3925//2375 3924//2379 3940//2809
+f 3920//2364 3919//2376 3934//2810
+f 3931//2803 3930//2806 3946//2811
+f 3926//2363 3925//2375 3941//2383
+f 3921//2366 3920//2364 3935//2384
+f 3927//2365 3926//2363 3942//2812
+f 3922//2368 3921//2366 3936//2386
+f 3928//2367 3927//2365 3943//2387
+f 3923//2372 3922//2368 3937//2388
+f 3918//2805 3917//2804 3932//2813
+f 3929//2370 3928//2367 3944//2390
+f 3924//2379 3923//2372 3938//2814
+f 3938//2814 3937//2388 3952//2392
+f 3933//2807 3932//2813 3947//2815
+f 3944//2390 3943//2387 3959//2394
+f 3939//2395 3938//2814 3953//2396
+f 3934//2810 3933//2807 3948//2397
+f 3945//2808 3944//2390 3960//2398
+f 3940//2809 3939//2395 3955//2816
+f 3935//2384 3934//2810 3949//2400
+f 3946//2811 3945//2808 3961//2817
+f 3941//2383 3940//2809 3956//2818
+f 3936//2386 3935//2384 3950//2403
+f 3942//2812 3941//2383 3957//2404
+f 3937//2388 3936//2386 3951//2405
+f 3943//2387 3942//2812 3958//2819
+f 3957//2404 3956//2818 3972//2407
+f 3952//2392 3951//2405 3966//2820
+f 3958//2819 3957//2404 3973//2409
+f 3953//2396 3952//2392 3967//2410
+f 3948//2397 3947//2815 3962//2411
+f 3959//2394 3958//2819 3974//2821
+f 3954//2413 3953//2396 3968//2414
+f 3949//2400 3948//2397 3963//2822
+f 3960//2398 3959//2394 3975//2416
+f 3955//2816 3954//2413 3970//2417
+f 3950//2403 3949//2400 3964//2418
+f 3961//2817 3960//2398 3976//2419
+f 3956//2818 3955//2816 3971//2420
+f 3951//2405 3950//2403 3965//2421
+f 3976//2419 3975//2416 3990//2422
+f 3971//2420 3970//2417 3986//2423
+f 3966//2820 3965//2421 3981//2424
+f 3972//2407 3971//2420 3987//2425
+f 3967//2410 3966//2820 3982//2426
+f 3973//2409 3972//2407 3988//2427
+f 3968//2414 3967//2410 3983//2428
+f 3963//2822 3962//2411 3978//2429
+f 3974//2821 3973//2409 3988//2427
+f 3969//2430 3968//2414 3984//2431
+f 3964//2418 3963//2822 3979//2432
+f 3975//2416 3974//2821 3989//2433
+f 3970//2417 3969//2430 3985//2823
+f 3965//2421 3964//2418 3980//2435
+f 3990//2422 3989//2433 4004//2436
+f 3985//2823 3984//2431 4000//2437
+f 3980//2435 3979//2432 3995//2438
+f 3991//2439 3990//2422 4005//2440
+f 3986//2423 3985//2823 4000//2437
+f 3981//2424 3980//2435 3996//2824
+f 3987//2425 3986//2423 4001//2825
+f 3982//2426 3981//2424 3997//2826
+f 3988//2427 3987//2425 4002//2444
+f 3983//2428 3982//2426 3998//2445
+f 3978//2429 3977//2446 3993//2447
+f 3989//2433 3988//2427 4003//2827
+f 3984//2431 3983//2428 3999//2449
+f 3979//2432 3978//2429 3994//2450
+f 3993//2447 3992//2828 4008//2452
+f 4004//2436 4003//2827 4018//2453
+f 3999//2449 3998//2445 4014//2454
+f 3994//2450 3993//2447 4009//2829
+f 4005//2440 4004//2436 4019//2830
+f 4000//2437 3999//2449 4014//2454
+f 3995//2438 3994//2450 4010//2457
+f 4006//2831 4005//2440 4020//2459
+f 4001//2825 4000//2437 4015//2460
+f 3996//2824 3995//2438 4011//2461
+f 4002//2444 4001//2825 4016//2462
+f 3997//2826 3996//2824 4012//2463
+f 4003//2827 4002//2444 4017//2464
+f 3998//2445 3997//2826 4013//2465
+f 4012//2463 4011//2461 4027//2832
+f 4018//2453 4017//2464 4032//2467
+f 4013//2465 4012//2463 4028//2468
+f 4008//2452 4007//2469 4023//2833
+f 4019//2830 4018//2453 4033//2471
+f 4014//2454 4013//2465 4029//2472
+f 4009//2829 4008//2452 4024//2473
+f 4020//2459 4019//2830 4034//2834
+f 4015//2460 4014//2454 4029//2472
+f 4010//2457 4009//2829 4025//2835
+f 4021//2476 4020//2459 4035//2477
+f 4016//2462 4015//2460 4030//2478
+f 4011//2461 4010//2457 4026//2836
+f 4017//2464 4016//2462 4031//2480
+f 4031//2480 4030//2478 4045//2481
+f 4026//2836 4025//2835 4041//2482
+f 4032//2467 4031//2480 4046//2483
+f 4027//2832 4026//2836 4042//2484
+f 4033//2471 4032//2467 4047//2837
+f 4028//2468 4027//2832 4043//2838
+f 4023//2833 4022//2839 4038//2488
+f 4034//2834 4033//2471 4048//2489
+f 4029//2472 4028//2468 4044//2490
+f 4024//2473 4023//2833 4039//2840
+f 4035//2477 4034//2834 4049//2492
+f 4030//2478 4029//2472 4044//2490
+f 4025//2835 4024//2473 4040//2493
+f 4036//2494 4035//2477 4050//2495
+f 4050//2495 4049//2492 4064//2496
+f 4045//2481 4044//2490 4060//2841
+f 4040//2493 4039//2840 4055//2842
+f 4051//2843 4050//2495 4065//2500
+f 4046//2483 4045//2481 4060//2841
+f 4041//2482 4040//2493 4056//2501
+f 4047//2837 4046//2483 4061//2502
+f 4042//2484 4041//2482 4057//2503
+f 4048//2489 4047//2837 4062//2504
+f 4043//2838 4042//2484 4058//2505
+f 4038//2488 4037//2506 4053//2507
+f 4049//2492 4048//2489 4063//2508
+f 4044//2490 4043//2838 4059//2844
+f 4039//2840 4038//2488 4054//2845
+f 4053//2507 4052//2511 4068//2512
+f 4064//2496 4063//2508 4078//2513
+f 4059//2844 4058//2505 4074//2846
+f 4054//2845 4053//2507 4069//2515
+f 4065//2500 4064//2496 4079//2847
+f 4060//2841 4059//2844 4075//2517
+f 4055//2842 4054//2845 4070//2518
+f 4066//2848 4065//2500 4080//2849
+f 4061//2502 4060//2841 4075//2517
+f 4056//2501 4055//2842 4071//2850
+f 4062//2504 4061//2502 4076//2522
+f 4057//2503 4056//2501 4072//2851
+f 4063//2508 4062//2504 4077//2524
+f 4058//2505 4057//2503 4073//2525
+f 4072//2851 4071//2850 4087//2526
+f 4078//2513 4077//2524 4092//2852
+f 4073//2525 4072//2851 4088//2528
+f 4068//2512 4067//2529 4083//2853
+f 4079//2847 4078//2513 4093//2531
+f 4074//2846 4073//2525 4089//2854
+f 4069//2515 4068//2512 4084//2855
+f 4080//2849 4079//2847 4094//2534
+f 4075//2517 4074//2846 4090//2535
+f 4070//2518 4069//2515 4085//2536
+f 4081//2537 4080//2849 4095//2538
+f 4076//2522 4075//2517 4090//2535
+f 4071//2850 4070//2518 4086//2856
+f 4077//2524 4076//2522 4091//2540
+f 4091//2540 4090//2535 4106//2541
+f 4086//2856 4085//2536 4101//2542
+f 4092//2852 4091//2540 4107//2543
+f 4087//2526 4086//2856 4102//2544
+f 4093//2531 4092//2852 4108//2545
+f 4088//2528 4087//2526 4103//2857
+f 4083//2853 4082//2858 4097//2548
+f 4094//2534 4093//2531 4109//2549
+f 4089//2854 4088//2528 4104//2859
+f 4084//2855 4083//2853 4099//2551
+f 4095//2538 4094//2534 4110//2860
+f 4090//2535 4089//2854 4105//2553
+f 4085//2536 4084//2855 4100//2554
+f 4096//2555 4095//2538 4111//2556
+f 4110//2860 4109//2549 4125//2557
+f 4105//2553 4104//2859 4120//2558
+f 4100//2554 4099//2551 4114//2559
+f 4111//2556 4110//2860 4126//2861
+f 4106//2541 4105//2553 4121//2561
+f 4101//2542 4100//2554 4115//2562
+f 4107//2543 4106//2541 4122//2563
+f 4102//2544 4101//2542 4116//2564
+f 4108//2545 4107//2543 4123//2862
+f 4103//2857 4102//2544 4117//2566
+f 4098//2567 4097//2548 4112//2568
+f 4109//2549 4108//2545 4124//2569
+f 4104//2859 4103//2857 4119//2570
+f 4099//2551 4098//2567 4113//2571
+f 4124//2569 4123//2862 4139//2572
+f 4119//2570 4118//2863 4133//2574
+f 4114//2559 4113//2571 4128//2864
+f 4125//2557 4124//2569 4140//2576
+f 4120//2558 4119//2570 4135//2577
+f 4115//2562 4114//2559 4129//2578
+f 4126//2861 4125//2557 4141//2579
+f 4121//2561 4120//2558 4136//2580
+f 4116//2564 4115//2562 4130//2865
+f 4122//2563 4121//2561 4137//2582
+f 4117//2566 4116//2564 4131//2583
+f 4123//2862 4122//2563 4138//2866
+f 4118//2863 4117//2566 4132//2867
+f 4113//2571 4112//2568 4127//2586
+f 4138//2866 4137//2582 4153//2587
+f 4133//2574 4132//2867 4147//2588
+f 4128//2864 4127//2586 4142//2589
+f 4139//2572 4138//2866 4154//2868
+f 4134//2591 4133//2574 4148//2869
+f 4129//2578 4128//2864 4143//2593
+f 4140//2576 4139//2572 4155//2870
+f 4135//2577 4134//2591 4150//2595
+f 4130//2865 4129//2578 4144//2596
+f 4141//2579 4140//2576 4156//2597
+f 4136//2580 4135//2577 4151//2598
+f 4131//2583 4130//2865 4145//2599
+f 4137//2582 4136//2580 4152//2600
+f 4132//2867 4131//2583 4146//2601
+f 4146//2601 4145//2599 4160//2602
+f 4152//2600 4151//2598 4167//2871
+f 4147//2588 4146//2601 4161//2604
+f 4153//2587 4152//2600 4168//2605
+f 4148//2869 4147//2588 4162//2606
+f 4143//2593 4142//2589 4157//2872
+f 4154//2868 4153//2587 4169//2608
+f 4149//2609 4148//2869 4163//2610
+f 4144//2596 4143//2593 4158//2611
+f 4155//2870 4154//2868 4170//2873
+f 4150//2595 4149//2609 4165//2613
+f 4145//2599 4144//2596 4159//2874
+f 4156//2597 4155//2870 4171//2615
+f 4151//2598 4150//2595 4166//2616
+f 4165//2613 4164//2875 4180//2618
+f 4160//2602 4159//2874 4174//2619
+f 4171//2615 4170//2873 4186//2620
+f 4166//2616 4165//2613 4181//2621
+f 4161//2604 4160//2602 4175//2622
+f 4167//2871 4166//2616 4182//2623
+f 4162//2606 4161//2604 4176//2876
+f 4168//2605 4167//2871 4183//2625
+f 4163//2610 4162//2606 4177//2626
+f 4158//2611 4157//2872 4172//2877
+f 4169//2608 4168//2605 4184//2628
+f 4164//2875 4163//2610 4178//2629
+f 4159//2874 4158//2611 4173//2878
+f 4170//2873 4169//2608 4185//2631
+f 4184//2628 4183//2625 4200//2632
+f 4179//2633 4178//2629 4194//2634
+f 4174//2619 4173//2878 4189//2635
+f 4185//2631 4184//2628 4201//2636
+f 4180//2618 4179//2633 4196//2637
+f 4175//2622 4174//2619 4190//2638
+f 4186//2620 4185//2631 4202//2879
+f 4181//2621 4180//2618 4197//2640
+f 4176//2876 4175//2622 4191//2880
+f 4182//2623 4181//2621 4198//2642
+f 4177//2626 4176//2876 4192//2643
+f 4183//2625 4182//2623 4199//2644
+f 4178//2629 4177//2626 4193//2881
+f 4173//2878 4172//2877 4188//2882
+f 4199//2644 4198//2642 4214//2647
+f 4194//2634 4193//2881 4208//2648
+f 4189//2635 4188//2882 4203//2649
+f 4200//2632 4199//2644 4215//2650
+f 4195//2883 4194//2634 4209//2884
+f 4190//2638 4189//2635 4204//2653
+f 4201//2636 4200//2632 4216//2654
+f 4196//2637 4195//2883 4211//2655
+f 4191//2880 4190//2638 4205//2656
+f 4202//2879 4201//2636 4217//2657
+f 4197//2640 4196//2637 4212//2885
+f 4192//2643 4191//2880 4206//2659
+f 4198//2642 4197//2640 4213//2886
+f 4193//2881 4192//2643 4207//2661
+f 4207//2661 4206//2659 4221//2662
+f 4213//2886 4212//2885 4227//2663
+f 4208//2648 4207//2661 4222//2664
+f 4214//2647 4213//2886 4228//2665
+f 4209//2884 4208//2648 4223//2666
+f 4204//2653 4203//2649 4219//2667
+f 4215//2650 4214//2647 4229//2668
+f 4210//2669 4209//2884 4224//2887
+f 4205//2656 4204//2653 4220//2671
+f 4216//2654 4215//2650 4230//2672
+f 4211//2655 4210//2669 4225//2673
+f 4206//2659 4205//2656 4221//2662
+f 4217//2657 4216//2654 4231//2674
+f 4212//2885 4211//2655 4226//2675
+f 4226//2675 4225//2673 4240//2676
+f 4221//2662 4220//2671 4236//2677
+f 4232//2678 4231//2674 4246//2679
+f 4227//2663 4226//2675 4241//2680
+f 4222//2664 4221//2662 4237//2681
+f 4228//2665 4227//2663 4242//2888
+f 4223//2666 4222//2664 4238//2683
+f 4229//2668 4228//2665 4243//2684
+f 4224//2887 4223//2666 4239//2685
+f 4219//2667 4218//2686 4234//2687
+f 4230//2672 4229//2668 4244//2688
+f 4225//2673 4224//2887 4239//2685
+f 4220//2671 4219//2667 4235//2689
+f 4231//2674 4230//2672 4245//2690
+f 4245//2690 4244//2688 4259//2691
+f 4240//2676 4239//2685 4255//2692
+f 4235//2689 4234//2687 4250//2889
+f 4246//2679 4245//2690 4260//2890
+f 4241//2680 4240//2676 4255//2692
+f 4236//2677 4235//2689 4251//2695
+f 4247//2891 4246//2679 4261//2697
+f 4242//2888 4241//2680 4256//2698
+f 4237//2681 4236//2677 4252//2699
+f 4243//2684 4242//2888 4257//2700
+f 4238//2683 4237//2681 4253//2701
+f 4244//2688 4243//2684 4258//2702
+f 4239//2685 4238//2683 4254//2703
+f 4234//2687 4233//2892 4249//2893
+f 4259//2691 4258//2702 4273//2894
+f 4254//2703 4253//2701 4269//2707
+f 4249//2893 4248//2708 4264//2709
+f 4260//2890 4259//2691 4274//2895
+f 4255//2692 4254//2703 4270//2711
+f 4250//2889 4249//2893 4265//2896
+f 4261//2697 4260//2890 4275//2713
+f 4256//2698 4255//2692 4270//2711
+f 4251//2695 4250//2889 4266//2714
+f 4262//2715 4261//2697 4276//2716
+f 4257//2700 4256//2698 4271//2717
+f 4252//2699 4251//2695 4267//2718
+f 4258//2702 4257//2700 4272//2719
+f 4253//2701 4252//2699 4268//2720
+f 4273//2894 4272//2719 4287//2897
+f 4268//2720 4267//2718 4283//2722
+f 4274//2895 4273//2894 4288//2723
+f 4269//2707 4268//2720 4284//2724
+f 4264//2709 4263//2725 4279//2726
+f 4275//2713 4274//2895 4289//2727
+f 4270//2711 4269//2707 4285//2728
+f 4265//2896 4264//2709 4280//2729
+f 4276//2716 4275//2713 4290//2730
+f 4271//2717 4270//2711 4285//2728
+f 4266//2714 4265//2896 4281//2731
+f 4277//2732 4276//2716 4291//2733
+f 4272//2719 4271//2717 4286//2734
+f 4267//2718 4266//2714 4282//2735
+f 4281//2731 4280//2729 4296//2736
+f 4292//2898 4291//2733 4306//2899
+f 4287//2897 4286//2734 4301//2739
+f 4282//2735 4281//2731 4297//2740
+f 4288//2723 4287//2897 4302//2741
+f 4283//2722 4282//2735 4298//2742
+f 4289//2727 4288//2723 4303//2743
+f 4284//2724 4283//2722 4299//2900
+f 4279//2726 4278//2745 4294//2746
+f 4290//2730 4289//2727 4304//2747
+f 4285//2728 4284//2724 4299//2900
+f 4280//2729 4279//2726 4295//2748
+f 4291//2733 4290//2730 4305//2901
+f 4286//2734 4285//2728 4300//2750
+f 4300//2750 4299//2900 4315//2751
+f 4295//2748 4294//2746 4311//2752
+f 4306//2899 4305//2901 4321//2753
+f 4301//2739 4300//2750 4316//2754
+f 4296//2736 4295//2748 4312//2755
+f 4307//2756 4306//2899 4322//2757
+f 4302//2741 4301//2739 4317//2758
+f 4297//2740 4296//2736 4313//2759
+f 4303//2743 4302//2741 4318//2760
+f 4298//2742 4297//2740 4314//2761
+f 4304//2747 4303//2743 4319//2762
+f 4299//2900 4298//2742 4315//2751
+f 4294//2746 4293//2902 4310//2764
+f 4305//2901 4304//2747 4320//2765
+f 4320//2765 4319//2762 4334//2766
+f 4315//2751 4314//2761 4330//2903
+f 4310//2764 4309//2904 4325//2769
+f 4321//2753 4320//2765 4335//2770
+f 4316//2754 4315//2751 4330//2903
+f 4311//2752 4310//2764 4326//2771
+f 4322//2757 4321//2753 4336//2772
+f 4317//2758 4316//2754 4331//2773
+f 4312//2755 4311//2752 4327//2774
+f 4323//2905 4322//2757 4337//2906
+f 4318//2760 4317//2758 4332//2777
+f 4313//2759 4312//2755 4328//2778
+f 4319//2762 4318//2760 4333//2779
+f 4314//2761 4313//2759 4329//2780
+f 4187//2781 3871//2791 3886//2792
+f 3857//2786 4308//2782 3872//2308
+f 4187//2781 3886//2792 3901//2796
+f 3872//2308 4308//2782 3887//2795
+f 3887//2795 4308//2782 3902//2351
+f 4187//2781 3901//2796 3916//2359
+f 4187//2781 3916//2359 3931//2803
+f 3902//2351 4308//2782 3917//2804
+f 4187//2781 3931//2803 3946//2811
+f 3917//2804 4308//2782 3932//2813
+f 4187//2781 3946//2811 3961//2817
+f 3932//2813 4308//2782 3947//2815
+f 3947//2815 4308//2782 3962//2411
+f 4187//2781 3961//2817 3976//2419
+f 4187//2781 3976//2419 3991//2439
+f 3962//2411 4308//2782 3977//2446
+f 4187//2781 3991//2439 4006//2831
+f 3977//2446 4308//2782 3992//2828
+f 4187//2781 4006//2831 4021//2476
+f 3992//2828 4308//2782 4007//2469
+f 4007//2469 4308//2782 4022//2839
+f 4187//2781 4021//2476 4036//2494
+f 4187//2781 4036//2494 4051//2843
+f 4022//2839 4308//2782 4037//2506
+f 4187//2781 4051//2843 4066//2848
+f 4037//2506 4308//2782 4052//2511
+f 4187//2781 4066//2848 4081//2537
+f 4052//2511 4308//2782 4067//2529
+f 4067//2529 4308//2782 4082//2858
+f 4187//2781 4081//2537 4096//2555
+f 4187//2781 4096//2555 4111//2556
+f 4082//2858 4308//2782 4097//2548
+f 4187//2781 4111//2556 4126//2861
+f 4097//2548 4308//2782 4112//2568
+f 4187//2781 4126//2861 4141//2579
+f 4112//2568 4308//2782 4127//2586
+f 4127//2586 4308//2782 4142//2589
+f 4187//2781 4141//2579 4156//2597
+f 4187//2781 4156//2597 4171//2615
+f 4142//2589 4308//2782 4157//2872
+f 4187//2781 4171//2615 4186//2620
+f 4157//2872 4308//2782 4172//2877
+f 4187//2781 4186//2620 4202//2879
+f 4172//2877 4308//2782 4188//2882
+f 4188//2882 4308//2782 4203//2649
+f 4187//2781 4202//2879 4217//2657
+f 4187//2781 4217//2657 4232//2678
+f 4203//2649 4308//2782 4218//2686
+f 4187//2781 4232//2678 4247//2891
+f 4218//2686 4308//2782 4233//2892
+f 4187//2781 4247//2891 4262//2715
+f 4233//2892 4308//2782 4248//2708
+f 4187//2781 4262//2715 4277//2732
+f 4248//2708 4308//2782 4263//2725
+f 4187//2781 4277//2732 4292//2898
+f 4263//2725 4308//2782 4278//2745
+f 4187//2781 4292//2898 4307//2756
+f 4278//2745 4308//2782 4293//2902
+f 4187//2781 4307//2756 4323//2905
+f 4293//2902 4308//2782 4309//2904
+f 4187//2781 4323//2905 4338//2907
+f 4309//2904 4308//2782 4324//2908
+f 4187//2781 4338//2907 3871//2791
+f 4334//2766 4333//2779 3866//2324
+f 4329//2780 4328//2778 3861//2326
+f 4324//2908 4308//2782 3857//2786
+f 4335//2770 4334//2766 3867//2328
+f 4330//2903 4329//2780 3862//2785
+f 4325//2769 4324//2908 3857//2786
+f 4336//2772 4335//2770 3868//2310
+f 4331//2773 4330//2903 3863//2303
+f 4326//2771 4325//2769 3858//2306
+f 4337//2906 4336//2772 3869//2309
+f 4332//2777 4331//2773 3864//2312
+f 4327//2774 4326//2771 3859//2314
+f 4338//2907 4337//2906 3871//2791
+f 4333//2779 4332//2777 3865//2318
+f 4328//2778 4327//2774 3860//2320
+f 3396//2313 3381//2303 3395//2305
+f 3391//2315 3376//2306 3390//2308
+f 3386//2310 3401//2331 3402//2311
+f 3397//2319 3382//2312 3396//2313
+f 3392//2321 3377//2314 3391//2315
+f 3387//2309 3402//2311 3403//2317
+f 3398//2338 3383//2318 3397//2319
+f 3393//2327 3378//2320 3392//2321
+f 3388//2316 3403//2317 3404//2323
+f 3383//2318 3398//2338 3399//2325
+f 3394//2330 3379//2326 3393//2327
+f 3384//2324 3399//2325 3400//2329
+f 3395//2305 3380//2304 3394//2330
+f 3385//2328 3400//2329 3401//2331
+f 3411//2335 3396//2313 3410//2332
+f 3406//2336 3391//2315 3405//2333
+f 3401//2331 3416//2346 3417//2334
+f 3412//2353 3397//2319 3411//2335
+f 3407//2340 3392//2321 3406//2336
+f 3402//2311 3417//2334 3418//2337
+f 3397//2319 3412//2353 3413//2339
+f 3408//2343 3393//2327 3407//2340
+f 3403//2317 3418//2337 3419//2341
+f 3398//2338 3413//2339 3414//2342
+f 3409//2345 3394//2330 3408//2343
+f 3399//2325 3414//2342 3415//2344
+f 3410//2332 3395//2305 3409//2345
+f 3400//2329 3415//2344 3416//2346
+f 3414//2342 3429//2360 3430//2347
+f 3425//2350 3410//2332 3424//2348
+f 3415//2344 3430//2347 3431//2349
+f 3426//2354 3411//2335 3425//2350
+f 3421//2355 3406//2336 3420//2351
+f 3416//2346 3431//2349 3432//2352
+f 3427//2371 3412//2353 3426//2354
+f 3422//2358 3407//2340 3421//2355
+f 3417//2334 3432//2352 3433//2356
+f 3412//2353 3427//2371 3428//2357
+f 3423//2361 3408//2343 3422//2358
+f 3418//2337 3433//2356 3434//2359
+f 3413//2339 3428//2357 3429//2360
+f 3424//2348 3409//2345 3423//2361
+f 3433//2356 3448//2374 3449//2362
+f 3428//2357 3443//2375 3444//2363
+f 3439//2366 3424//2348 3438//2364
+f 3429//2360 3444//2363 3445//2365
+f 3440//2368 3425//2350 3439//2366
+f 3430//2347 3445//2365 3446//2367
+f 3441//2372 3426//2354 3440//2368
+f 3436//2373 3421//2355 3435//2369
+f 3431//2349 3446//2367 3447//2370
+f 3442//2379 3427//2371 3441//2372
+f 3437//2376 3422//2358 3436//2373
+f 3432//2352 3447//2370 3448//2374
+f 3427//2371 3442//2379 3443//2375
+f 3438//2364 3423//2361 3437//2376
+f 3452//2381 3437//2376 3451//2377
+f 3447//2370 3462//2390 3463//2378
+f 3442//2379 3457//2395 3458//2380
+f 3453//2384 3438//2364 3452//2381
+f 3448//2374 3463//2378 3464//2382
+f 3443//2375 3458//2380 3459//2383
+f 3454//2386 3439//2366 3453//2384
+f 3444//2363 3459//2383 3460//2385
+f 3455//2388 3440//2368 3454//2386
+f 3445//2365 3460//2385 3461//2387
+f 3456//2391 3441//2372 3455//2388
+f 3451//2377 3436//2373 3450//2389
+f 3446//2367 3461//2387 3462//2390
+f 3457//2395 3442//2379 3456//2391
+f 3471//2396 3456//2391 3470//2392
+f 3466//2397 3451//2377 3465//2393
+f 3461//2387 3476//2406 3477//2394
+f 3472//2413 3457//2395 3471//2396
+f 3467//2400 3452//2381 3466//2397
+f 3462//2390 3477//2394 3478//2398
+f 3457//2395 3472//2413 3473//2399
+f 3468//2403 3453//2384 3467//2400
+f 3463//2378 3478//2398 3479//2401
+f 3458//2380 3473//2399 3474//2402
+f 3469//2405 3454//2386 3468//2403
+f 3459//2383 3474//2402 3475//2404
+f 3470//2392 3455//2388 3469//2405
+f 3460//2385 3475//2404 3476//2406
+f 3474//2402 3489//2420 3490//2407
+f 3485//2410 3470//2392 3484//2408
+f 3475//2404 3490//2407 3491//2409
+f 3486//2414 3471//2396 3485//2410
+f 3481//2415 3466//2397 3480//2411
+f 3476//2406 3491//2409 3492//2412
+f 3487//2430 3472//2413 3486//2414
+f 3482//2418 3467//2400 3481//2415
+f 3477//2394 3492//2412 3493//2416
+f 3472//2413 3487//2430 3488//2417
+f 3483//2421 3468//2403 3482//2418
+f 3478//2398 3493//2416 3494//2419
+f 3473//2399 3488//2417 3489//2420
+f 3484//2408 3469//2405 3483//2421
+f 3509//2439 3494//2419 3508//2422
+f 3488//2417 3503//2434 3504//2423
+f 3483//2421 3498//2435 3499//2424
+f 3489//2420 3504//2423 3505//2425
+f 3484//2408 3499//2424 3500//2426
+f 3490//2407 3505//2425 3506//2427
+f 3485//2410 3500//2426 3501//2428
+f 3480//2411 3495//2446 3496//2429
+f 3507//2433 3492//2412 3506//2427
+f 3486//2414 3501//2428 3502//2431
+f 3481//2415 3496//2429 3497//2432
+f 3508//2422 3493//2416 3507//2433
+f 3487//2430 3502//2431 3503//2434
+f 3482//2418 3497//2432 3498//2435
+f 3523//2440 3508//2422 3522//2436
+f 3502//2431 3517//2449 3518//2437
+f 3497//2432 3512//2450 3513//2438
+f 3524//2458 3509//2439 3523//2440
+f 3519//2442 3504//2423 3518//2437
+f 3498//2435 3513//2438 3514//2441
+f 3520//2444 3505//2425 3519//2442
+f 3499//2424 3514//2441 3515//2443
+f 3521//2448 3506//2427 3520//2444
+f 3500//2426 3515//2443 3516//2445
+f 3495//2446 3510//2451 3511//2447
+f 3522//2436 3507//2433 3521//2448
+f 3501//2428 3516//2445 3517//2449
+f 3496//2429 3511//2447 3512//2450
+f 3510//2451 3525//2469 3526//2452
+f 3537//2456 3522//2436 3536//2453
+f 3516//2445 3531//2465 3532//2454
+f 3511//2447 3526//2452 3527//2455
+f 3538//2459 3523//2440 3537//2456
+f 3533//2460 3518//2437 3532//2454
+f 3512//2450 3527//2455 3528//2457
+f 3539//2476 3524//2458 3538//2459
+f 3534//2462 3519//2442 3533//2460
+f 3513//2438 3528//2457 3529//2461
+f 3535//2464 3520//2444 3534//2462
+f 3514//2441 3529//2461 3530//2463
+f 3536//2453 3521//2448 3535//2464
+f 3515//2443 3530//2463 3531//2465
+f 3529//2461 3544//2479 3545//2466
+f 3551//2471 3536//2453 3550//2467
+f 3530//2463 3545//2466 3546//2468
+f 3525//2469 3540//2487 3541//2470
+f 3552//2474 3537//2456 3551//2471
+f 3531//2465 3546//2468 3547//2472
+f 3526//2452 3541//2470 3542//2473
+f 3553//2477 3538//2459 3552//2474
+f 3548//2478 3533//2460 3547//2472
+f 3527//2455 3542//2473 3543//2475
+f 3554//2494 3539//2476 3553//2477
+f 3549//2480 3534//2462 3548//2478
+f 3528//2457 3543//2475 3544//2479
+f 3550//2467 3535//2464 3549//2480
+f 3564//2483 3549//2480 3563//2481
+f 3543//2475 3558//2493 3559//2482
+f 3565//2485 3550//2467 3564//2483
+f 3544//2479 3559//2482 3560//2484
+f 3566//2489 3551//2471 3565//2485
+f 3545//2466 3560//2484 3561//2486
+f 3540//2487 3555//2506 3556//2488
+f 3567//2492 3552//2474 3566//2489
+f 3546//2468 3561//2486 3562//2490
+f 3541//2470 3556//2488 3557//2491
+f 3568//2495 3553//2477 3567//2492
+f 3563//2481 3548//2478 3562//2490
+f 3542//2473 3557//2491 3558//2493
+f 3569//2499 3554//2494 3568//2495
+f 3583//2500 3568//2495 3582//2496
+f 3562//2490 3577//2509 3578//2497
+f 3557//2491 3572//2510 3573//2498
+f 3584//2519 3569//2499 3583//2500
+f 3579//2502 3564//2483 3578//2497
+f 3558//2493 3573//2498 3574//2501
+f 3580//2504 3565//2485 3579//2502
+f 3559//2482 3574//2501 3575//2503
+f 3581//2508 3566//2489 3580//2504
+f 3560//2484 3575//2503 3576//2505
+f 3555//2506 3570//2511 3571//2507
+f 3582//2496 3567//2492 3581//2508
+f 3561//2486 3576//2505 3577//2509
+f 3556//2488 3571//2507 3572//2510
+f 3570//2511 3585//2529 3586//2512
+f 3597//2516 3582//2496 3596//2513
+f 3576//2505 3591//2525 3592//2514
+f 3571//2507 3586//2512 3587//2515
+f 3598//2520 3583//2500 3597//2516
+f 3577//2509 3592//2514 3593//2517
+f 3572//2510 3587//2515 3588//2518
+f 3599//2537 3584//2519 3598//2520
+f 3594//2522 3579//2502 3593//2517
+f 3573//2498 3588//2518 3589//2521
+f 3595//2524 3580//2504 3594//2522
+f 3574//2501 3589//2521 3590//2523
+f 3596//2513 3581//2508 3595//2524
+f 3575//2503 3590//2523 3591//2525
+f 3589//2521 3604//2539 3605//2526
+f 3611//2531 3596//2513 3610//2527
+f 3590//2523 3605//2526 3606//2528
+f 3585//2529 3600//2547 3601//2530
+f 3612//2534 3597//2516 3611//2531
+f 3591//2525 3606//2528 3607//2532
+f 3586//2512 3601//2530 3602//2533
+f 3613//2538 3598//2520 3612//2534
+f 3592//2514 3607//2532 3608//2535
+f 3587//2515 3602//2533 3603//2536
+f 3614//2555 3599//2537 3613//2538
+f 3609//2540 3594//2522 3608//2535
+f 3588//2518 3603//2536 3604//2539
+f 3610//2527 3595//2524 3609//2540
+f 3608//2535 3623//2553 3624//2541
+f 3603//2536 3618//2554 3619//2542
+f 3609//2540 3624//2541 3625//2543
+f 3604//2539 3619//2542 3620//2544
+f 3610//2527 3625//2543 3626//2545
+f 3605//2526 3620//2544 3621//2546
+f 3616//2567 3601//2530 3615//2548
+f 3611//2531 3626//2545 3627//2549
+f 3606//2528 3621//2546 3622//2550
+f 3601//2530 3616//2567 3617//2551
+f 3612//2534 3627//2549 3628//2552
+f 3607//2532 3622//2550 3623//2553
+f 3602//2533 3617//2551 3618//2554
+f 3613//2538 3628//2552 3629//2556
+f 3627//2549 3642//2569 3643//2557
+f 3622//2550 3637//2570 3638//2558
+f 3633//2562 3618//2554 3632//2559
+f 3628//2552 3643//2557 3644//2560
+f 3623//2553 3638//2558 3639//2561
+f 3634//2564 3619//2542 3633//2562
+f 3624//2541 3639//2561 3640//2563
+f 3635//2566 3620//2544 3634//2564
+f 3625//2543 3640//2563 3641//2565
+f 3636//2573 3621//2546 3635//2566
+f 3631//2571 3616//2567 3630//2568
+f 3626//2545 3641//2565 3642//2569
+f 3621//2546 3636//2573 3637//2570
+f 3632//2559 3617//2551 3631//2571
+f 3641//2565 3656//2584 3657//2572
+f 3652//2591 3637//2570 3651//2574
+f 3647//2578 3632//2559 3646//2575
+f 3642//2569 3657//2572 3658//2576
+f 3637//2570 3652//2591 3653//2577
+f 3648//2581 3633//2562 3647//2578
+f 3643//2557 3658//2576 3659//2579
+f 3638//2558 3653//2577 3654//2580
+f 3649//2583 3634//2564 3648//2581
+f 3639//2561 3654//2580 3655//2582
+f 3650//2585 3635//2566 3649//2583
+f 3640//2563 3655//2582 3656//2584
+f 3651//2574 3636//2573 3650//2585
+f 3646//2575 3631//2571 3645//2586
+f 3655//2582 3670//2600 3671//2587
+f 3666//2592 3651//2574 3665//2588
+f 3661//2593 3646//2575 3660//2589
+f 3656//2584 3671//2587 3672//2590
+f 3667//2609 3652//2591 3666//2592
+f 3662//2596 3647//2578 3661//2593
+f 3657//2572 3672//2590 3673//2594
+f 3652//2591 3667//2609 3668//2595
+f 3663//2599 3648//2581 3662//2596
+f 3658//2576 3673//2594 3674//2597
+f 3653//2577 3668//2595 3669//2598
+f 3664//2601 3649//2583 3663//2599
+f 3654//2580 3669//2598 3670//2600
+f 3665//2588 3650//2585 3664//2601
+f 3679//2604 3664//2601 3678//2602
+f 3669//2598 3684//2616 3685//2603
+f 3680//2606 3665//2588 3679//2604
+f 3670//2600 3685//2603 3686//2605
+f 3681//2610 3666//2592 3680//2606
+f 3676//2611 3661//2593 3675//2607
+f 3671//2587 3686//2605 3687//2608
+f 3682//2617 3667//2609 3681//2610
+f 3677//2614 3662//2596 3676//2611
+f 3672//2590 3687//2608 3688//2612
+f 3667//2609 3682//2617 3683//2613
+f 3678//2602 3663//2599 3677//2614
+f 3673//2594 3688//2612 3689//2615
+f 3668//2595 3683//2613 3684//2616
+f 3682//2617 3697//2633 3698//2618
+f 3693//2622 3678//2602 3692//2619
+f 3688//2612 3703//2631 3704//2620
+f 3683//2613 3698//2618 3699//2621
+f 3694//2624 3679//2604 3693//2622
+f 3684//2616 3699//2621 3700//2623
+f 3695//2626 3680//2606 3694//2624
+f 3685//2603 3700//2623 3701//2625
+f 3696//2629 3681//2610 3695//2626
+f 3691//2630 3676//2611 3690//2627
+f 3686//2605 3701//2625 3702//2628
+f 3697//2633 3682//2617 3696//2629
+f 3692//2619 3677//2614 3691//2630
+f 3687//2608 3702//2628 3703//2631
+f 3701//2625 3717//2644 3718//2632
+f 3713//2651 3697//2633 3712//2634
+f 3708//2638 3692//2619 3707//2635
+f 3702//2628 3718//2632 3719//2636
+f 3697//2633 3713//2651 3714//2637
+f 3709//2641 3693//2622 3708//2638
+f 3703//2631 3719//2636 3720//2639
+f 3698//2618 3714//2637 3715//2640
+f 3710//2643 3694//2624 3709//2641
+f 3699//2621 3715//2640 3716//2642
+f 3711//2645 3695//2626 3710//2643
+f 3700//2623 3716//2642 3717//2644
+f 3712//2634 3696//2629 3711//2645
+f 3707//2635 3691//2630 3706//2646
+f 3716//2642 3731//2660 3732//2647
+f 3727//2652 3712//2634 3726//2648
+f 3722//2653 3707//2635 3721//2649
+f 3717//2644 3732//2647 3733//2650
+f 3728//2669 3713//2651 3727//2652
+f 3723//2656 3708//2638 3722//2653
+f 3718//2632 3733//2650 3734//2654
+f 3713//2651 3728//2669 3729//2655
+f 3724//2659 3709//2641 3723//2656
+f 3719//2636 3734//2654 3735//2657
+f 3714//2637 3729//2655 3730//2658
+f 3725//2661 3710//2643 3724//2659
+f 3715//2640 3730//2658 3731//2660
+f 3726//2648 3711//2645 3725//2661
+f 3740//2664 3725//2661 3739//2662
+f 3746//2665 3731//2660 3745//2663
+f 3741//2666 3726//2648 3740//2664
+f 3747//2668 3732//2647 3746//2665
+f 3742//2670 3727//2652 3741//2666
+f 3721//2649 3736//2686 3737//2667
+f 3748//2672 3733//2650 3747//2668
+f 3743//2673 3728//2669 3742//2670
+f 3722//2653 3737//2667 3738//2671
+f 3749//2674 3734//2654 3748//2672
+f 3744//2675 3729//2655 3743//2673
+f 3723//2656 3738//2671 3739//2662
+f 3750//2678 3735//2657 3749//2674
+f 3745//2663 3730//2658 3744//2675
+f 3759//2680 3744//2675 3758//2676
+f 3738//2671 3753//2689 3754//2677
+f 3765//2696 3750//2678 3764//2679
+f 3760//2682 3745//2663 3759//2680
+f 3739//2662 3754//2677 3755//2681
+f 3761//2684 3746//2665 3760//2682
+f 3740//2664 3755//2681 3756//2683
+f 3762//2688 3747//2668 3761//2684
+f 3741//2666 3756//2683 3757//2685
+f 3736//2686 3751//2704 3752//2687
+f 3763//2690 3748//2672 3762//2688
+f 3758//2676 3743//2673 3757//2685
+f 3737//2667 3752//2687 3753//2689
+f 3764//2679 3749//2674 3763//2690
+f 3778//2694 3763//2690 3777//2691
+f 3757//2685 3772//2703 3773//2692
+f 3752//2687 3767//2705 3768//2693
+f 3779//2697 3764//2679 3778//2694
+f 3774//2698 3759//2680 3773//2692
+f 3753//2689 3768//2693 3769//2695
+f 3780//2715 3765//2696 3779//2697
+f 3775//2700 3760//2682 3774//2698
+f 3754//2677 3769//2695 3770//2699
+f 3776//2702 3761//2684 3775//2700
+f 3755//2681 3770//2699 3771//2701
+f 3777//2691 3762//2688 3776//2702
+f 3756//2683 3771//2701 3772//2703
+f 3751//2704 3766//2708 3767//2705
+f 3792//2710 3777//2691 3791//2706
+f 3771//2701 3786//2720 3787//2707
+f 3766//2708 3781//2725 3782//2709
+f 3793//2713 3778//2694 3792//2710
+f 3772//2703 3787//2707 3788//2711
+f 3767//2705 3782//2709 3783//2712
+f 3794//2716 3779//2697 3793//2713
+f 3789//2717 3774//2698 3788//2711
+f 3768//2693 3783//2712 3784//2714
+f 3795//2732 3780//2715 3794//2716
+f 3790//2719 3775//2700 3789//2717
+f 3769//2695 3784//2714 3785//2718
+f 3791//2706 3776//2702 3790//2719
+f 3770//2699 3785//2718 3786//2720
+f 3806//2723 3791//2706 3805//2721
+f 3785//2718 3800//2735 3801//2722
+f 3807//2727 3792//2710 3806//2723
+f 3786//2720 3801//2722 3802//2724
+f 3781//2725 3796//2745 3797//2726
+f 3808//2730 3793//2713 3807//2727
+f 3787//2707 3802//2724 3803//2728
+f 3782//2709 3797//2726 3798//2729
+f 3809//2733 3794//2716 3808//2730
+f 3804//2734 3789//2717 3803//2728
+f 3783//2712 3798//2729 3799//2731
+f 3810//2737 3795//2732 3809//2733
+f 3805//2721 3790//2719 3804//2734
+f 3784//2714 3799//2731 3800//2735
+f 3798//2729 3813//2748 3814//2736
+f 3825//2756 3810//2737 3824//2738
+f 3820//2741 3805//2721 3819//2739
+f 3799//2731 3814//2736 3815//2740
+f 3821//2743 3806//2723 3820//2741
+f 3800//2735 3815//2740 3816//2742
+f 3822//2747 3807//2727 3821//2743
+f 3801//2722 3816//2742 3817//2744
+f 3796//2745 3811//2763 3812//2746
+f 3823//2749 3808//2730 3822//2747
+f 3818//2750 3803//2728 3817//2744
+f 3797//2726 3812//2746 3813//2748
+f 3824//2738 3809//2733 3823//2749
+f 3819//2739 3804//2734 3818//2750
+f 3834//2754 3818//2750 3833//2751
+f 3812//2746 3828//2764 3829//2752
+f 3840//2757 3824//2738 3839//2753
+f 3835//2758 3819//2739 3834//2754
+f 3813//2748 3829//2752 3830//2755
+f 3841//2775 3825//2756 3840//2757
+f 3836//2760 3820//2741 3835//2758
+f 3814//2736 3830//2755 3831//2759
+f 3837//2762 3821//2743 3836//2760
+f 3815//2740 3831//2759 3832//2761
+f 3838//2765 3822//2747 3837//2762
+f 3816//2742 3832//2761 3833//2751
+f 3811//2763 3827//2768 3828//2764
+f 3839//2753 3823//2749 3838//2765
+f 3853//2770 3838//2765 3852//2766
+f 3832//2761 3847//2780 3848//2767
+f 3827//2768 3842//2784 3843//2769
+f 3854//2772 3839//2753 3853//2770
+f 3849//2773 3834//2754 3848//2767
+f 3828//2764 3843//2769 3844//2771
+f 3855//2776 3840//2757 3854//2772
+f 3850//2777 3835//2758 3849//2773
+f 3829//2752 3844//2771 3845//2774
+f 3856//2783 3841//2775 3855//2776
+f 3851//2779 3836//2760 3850//2777
+f 3830//2755 3845//2774 3846//2778
+f 3852//2766 3837//2762 3851//2779
+f 3831//2759 3846//2778 3847//2780
+f 3385//2328 3852//2766 3384//2324
+f 3380//2304 3847//2780 3379//2326
+f 3386//2310 3853//2770 3385//2328
+f 3381//2303 3848//2767 3380//2304
+f 3376//2306 3843//2769 3375//2307
+f 3387//2309 3854//2772 3386//2310
+f 3382//2312 3849//2773 3381//2303
+f 3377//2314 3844//2771 3376//2306
+f 3388//2316 3855//2776 3387//2309
+f 3383//2318 3850//2777 3382//2312
+f 3378//2320 3845//2774 3377//2314
+f 3855//2776 3388//2316 3389//2322
+f 3384//2324 3851//2779 3383//2318
+f 3379//2326 3846//2778 3378//2320
+f 3878//2788 3863//2303 3877//2305
+f 3873//2315 3858//2306 3872//2308
+f 3868//2310 3883//2331 3884//2787
+f 3879//2319 3864//2312 3878//2788
+f 3874//2321 3859//2314 3873//2315
+f 3869//2309 3884//2787 3885//2790
+f 3880//2338 3865//2318 3879//2319
+f 3875//2793 3860//2320 3874//2321
+f 3870//2789 3885//2790 3886//2792
+f 3865//2318 3880//2338 3881//2325
+f 3876//2330 3861//2326 3875//2793
+f 3866//2324 3881//2325 3882//2794
+f 3877//2305 3862//2785 3876//2330
+f 3867//2328 3882//2794 3883//2331
+f 3893//2335 3878//2788 3892//2332
+f 3888//2336 3873//2315 3887//2795
+f 3883//2331 3898//2346 3899//2334
+f 3894//2799 3879//2319 3893//2335
+f 3889//2340 3874//2321 3888//2336
+f 3884//2787 3899//2334 3900//2337
+f 3879//2319 3894//2799 3895//2339
+f 3890//2797 3875//2793 3889//2340
+f 3885//2790 3900//2337 3901//2796
+f 3880//2338 3895//2339 3896//2342
+f 3891//2345 3876//2330 3890//2797
+f 3881//2325 3896//2342 3897//2344
+f 3892//2332 3877//2305 3891//2345
+f 3882//2794 3897//2344 3898//2346
+f 3896//2342 3911//2360 3912//2798
+f 3907//2350 3892//2332 3906//2348
+f 3897//2344 3912//2798 3913//2349
+f 3908//2354 3893//2335 3907//2350
+f 3903//2800 3888//2336 3902//2351
+f 3898//2346 3913//2349 3914//2352
+f 3909//2371 3894//2799 3908//2354
+f 3904//2802 3889//2340 3903//2800
+f 3899//2334 3914//2352 3915//2801
+f 3894//2799 3909//2371 3910//2357
+f 3905//2361 3890//2797 3904//2802
+f 3900//2337 3915//2801 3916//2359
+f 3895//2339 3910//2357 3911//2360
+f 3906//2348 3891//2345 3905//2361
+f 3915//2801 3930//2806 3931//2803
+f 3910//2357 3925//2375 3926//2363
+f 3921//2366 3906//2348 3920//2364
+f 3911//2360 3926//2363 3927//2365
+f 3922//2368 3907//2350 3921//2366
+f 3912//2798 3927//2365 3928//2367
+f 3923//2372 3908//2354 3922//2368
+f 3918//2805 3903//2800 3917//2804
+f 3913//2349 3928//2367 3929//2370
+f 3924//2379 3909//2371 3923//2372
+f 3919//2376 3904//2802 3918//2805
+f 3914//2352 3929//2370 3930//2806
+f 3909//2371 3924//2379 3925//2375
+f 3920//2364 3905//2361 3919//2376
+f 3934//2810 3919//2376 3933//2807
+f 3929//2370 3944//2390 3945//2808
+f 3924//2379 3939//2395 3940//2809
+f 3935//2384 3920//2364 3934//2810
+f 3930//2806 3945//2808 3946//2811
+f 3925//2375 3940//2809 3941//2383
+f 3936//2386 3921//2366 3935//2384
+f 3926//2363 3941//2383 3942//2812
+f 3937//2388 3922//2368 3936//2386
+f 3927//2365 3942//2812 3943//2387
+f 3938//2814 3923//2372 3937//2388
+f 3933//2807 3918//2805 3932//2813
+f 3928//2367 3943//2387 3944//2390
+f 3939//2395 3924//2379 3938//2814
+f 3953//2396 3938//2814 3952//2392
+f 3948//2397 3933//2807 3947//2815
+f 3943//2387 3958//2819 3959//2394
+f 3954//2413 3939//2395 3953//2396
+f 3949//2400 3934//2810 3948//2397
+f 3944//2390 3959//2394 3960//2398
+f 3939//2395 3954//2413 3955//2816
+f 3950//2403 3935//2384 3949//2400
+f 3945//2808 3960//2398 3961//2817
+f 3940//2809 3955//2816 3956//2818
+f 3951//2405 3936//2386 3950//2403
+f 3941//2383 3956//2818 3957//2404
+f 3952//2392 3937//2388 3951//2405
+f 3942//2812 3957//2404 3958//2819
+f 3956//2818 3971//2420 3972//2407
+f 3967//2410 3952//2392 3966//2820
+f 3957//2404 3972//2407 3973//2409
+f 3968//2414 3953//2396 3967//2410
+f 3963//2822 3948//2397 3962//2411
+f 3958//2819 3973//2409 3974//2821
+f 3969//2430 3954//2413 3968//2414
+f 3964//2418 3949//2400 3963//2822
+f 3959//2394 3974//2821 3975//2416
+f 3954//2413 3969//2430 3970//2417
+f 3965//2421 3950//2403 3964//2418
+f 3960//2398 3975//2416 3976//2419
+f 3955//2816 3970//2417 3971//2420
+f 3966//2820 3951//2405 3965//2421
+f 3991//2439 3976//2419 3990//2422
+f 3970//2417 3985//2823 3986//2423
+f 3965//2421 3980//2435 3981//2424
+f 3971//2420 3986//2423 3987//2425
+f 3966//2820 3981//2424 3982//2426
+f 3972//2407 3987//2425 3988//2427
+f 3967//2410 3982//2426 3983//2428
+f 3962//2411 3977//2446 3978//2429
+f 3989//2433 3974//2821 3988//2427
+f 3968//2414 3983//2428 3984//2431
+f 3963//2822 3978//2429 3979//2432
+f 3990//2422 3975//2416 3989//2433
+f 3969//2430 3984//2431 3985//2823
+f 3964//2418 3979//2432 3980//2435
+f 4005//2440 3990//2422 4004//2436
+f 3984//2431 3999//2449 4000//2437
+f 3979//2432 3994//2450 3995//2438
+f 4006//2831 3991//2439 4005//2440
+f 4001//2825 3986//2423 4000//2437
+f 3980//2435 3995//2438 3996//2824
+f 4002//2444 3987//2425 4001//2825
+f 3981//2424 3996//2824 3997//2826
+f 4003//2827 3988//2427 4002//2444
+f 3982//2426 3997//2826 3998//2445
+f 3977//2446 3992//2828 3993//2447
+f 4004//2436 3989//2433 4003//2827
+f 3983//2428 3998//2445 3999//2449
+f 3978//2429 3993//2447 3994//2450
+f 3992//2828 4007//2469 4008//2452
+f 4019//2830 4004//2436 4018//2453
+f 3998//2445 4013//2465 4014//2454
+f 3993//2447 4008//2452 4009//2829
+f 4020//2459 4005//2440 4019//2830
+f 4015//2460 4000//2437 4014//2454
+f 3994//2450 4009//2829 4010//2457
+f 4021//2476 4006//2831 4020//2459
+f 4016//2462 4001//2825 4015//2460
+f 3995//2438 4010//2457 4011//2461
+f 4017//2464 4002//2444 4016//2462
+f 3996//2824 4011//2461 4012//2463
+f 4018//2453 4003//2827 4017//2464
+f 3997//2826 4012//2463 4013//2465
+f 4011//2461 4026//2836 4027//2832
+f 4033//2471 4018//2453 4032//2467
+f 4012//2463 4027//2832 4028//2468
+f 4007//2469 4022//2839 4023//2833
+f 4034//2834 4019//2830 4033//2471
+f 4013//2465 4028//2468 4029//2472
+f 4008//2452 4023//2833 4024//2473
+f 4035//2477 4020//2459 4034//2834
+f 4030//2478 4015//2460 4029//2472
+f 4009//2829 4024//2473 4025//2835
+f 4036//2494 4021//2476 4035//2477
+f 4031//2480 4016//2462 4030//2478
+f 4010//2457 4025//2835 4026//2836
+f 4032//2467 4017//2464 4031//2480
+f 4046//2483 4031//2480 4045//2481
+f 4025//2835 4040//2493 4041//2482
+f 4047//2837 4032//2467 4046//2483
+f 4026//2836 4041//2482 4042//2484
+f 4048//2489 4033//2471 4047//2837
+f 4027//2832 4042//2484 4043//2838
+f 4022//2839 4037//2506 4038//2488
+f 4049//2492 4034//2834 4048//2489
+f 4028//2468 4043//2838 4044//2490
+f 4023//2833 4038//2488 4039//2840
+f 4050//2495 4035//2477 4049//2492
+f 4045//2481 4030//2478 4044//2490
+f 4024//2473 4039//2840 4040//2493
+f 4051//2843 4036//2494 4050//2495
+f 4065//2500 4050//2495 4064//2496
+f 4044//2490 4059//2844 4060//2841
+f 4039//2840 4054//2845 4055//2842
+f 4066//2848 4051//2843 4065//2500
+f 4061//2502 4046//2483 4060//2841
+f 4040//2493 4055//2842 4056//2501
+f 4062//2504 4047//2837 4061//2502
+f 4041//2482 4056//2501 4057//2503
+f 4063//2508 4048//2489 4062//2504
+f 4042//2484 4057//2503 4058//2505
+f 4037//2506 4052//2511 4053//2507
+f 4064//2496 4049//2492 4063//2508
+f 4043//2838 4058//2505 4059//2844
+f 4038//2488 4053//2507 4054//2845
+f 4052//2511 4067//2529 4068//2512
+f 4079//2847 4064//2496 4078//2513
+f 4058//2505 4073//2525 4074//2846
+f 4053//2507 4068//2512 4069//2515
+f 4080//2849 4065//2500 4079//2847
+f 4059//2844 4074//2846 4075//2517
+f 4054//2845 4069//2515 4070//2518
+f 4081//2537 4066//2848 4080//2849
+f 4076//2522 4061//2502 4075//2517
+f 4055//2842 4070//2518 4071//2850
+f 4077//2524 4062//2504 4076//2522
+f 4056//2501 4071//2850 4072//2851
+f 4078//2513 4063//2508 4077//2524
+f 4057//2503 4072//2851 4073//2525
+f 4071//2850 4086//2856 4087//2526
+f 4093//2531 4078//2513 4092//2852
+f 4072//2851 4087//2526 4088//2528
+f 4067//2529 4082//2858 4083//2853
+f 4094//2534 4079//2847 4093//2531
+f 4073//2525 4088//2528 4089//2854
+f 4068//2512 4083//2853 4084//2855
+f 4095//2538 4080//2849 4094//2534
+f 4074//2846 4089//2854 4090//2535
+f 4069//2515 4084//2855 4085//2536
+f 4096//2555 4081//2537 4095//2538
+f 4091//2540 4076//2522 4090//2535
+f 4070//2518 4085//2536 4086//2856
+f 4092//2852 4077//2524 4091//2540
+f 4090//2535 4105//2553 4106//2541
+f 4085//2536 4100//2554 4101//2542
+f 4091//2540 4106//2541 4107//2543
+f 4086//2856 4101//2542 4102//2544
+f 4092//2852 4107//2543 4108//2545
+f 4087//2526 4102//2544 4103//2857
+f 4098//2567 4083//2853 4097//2548
+f 4093//2531 4108//2545 4109//2549
+f 4088//2528 4103//2857 4104//2859
+f 4083//2853 4098//2567 4099//2551
+f 4094//2534 4109//2549 4110//2860
+f 4089//2854 4104//2859 4105//2553
+f 4084//2855 4099//2551 4100//2554
+f 4095//2538 4110//2860 4111//2556
+f 4109//2549 4124//2569 4125//2557
+f 4104//2859 4119//2570 4120//2558
+f 4115//2562 4100//2554 4114//2559
+f 4110//2860 4125//2557 4126//2861
+f 4105//2553 4120//2558 4121//2561
+f 4116//2564 4101//2542 4115//2562
+f 4106//2541 4121//2561 4122//2563
+f 4117//2566 4102//2544 4116//2564
+f 4107//2543 4122//2563 4123//2862
+f 4118//2863 4103//2857 4117//2566
+f 4113//2571 4098//2567 4112//2568
+f 4108//2545 4123//2862 4124//2569
+f 4103//2857 4118//2863 4119//2570
+f 4114//2559 4099//2551 4113//2571
+f 4123//2862 4138//2866 4139//2572
+f 4134//2591 4119//2570 4133//2574
+f 4129//2578 4114//2559 4128//2864
+f 4124//2569 4139//2572 4140//2576
+f 4119//2570 4134//2591 4135//2577
+f 4130//2865 4115//2562 4129//2578
+f 4125//2557 4140//2576 4141//2579
+f 4120//2558 4135//2577 4136//2580
+f 4131//2583 4116//2564 4130//2865
+f 4121//2561 4136//2580 4137//2582
+f 4132//2867 4117//2566 4131//2583
+f 4122//2563 4137//2582 4138//2866
+f 4133//2574 4118//2863 4132//2867
+f 4128//2864 4113//2571 4127//2586
+f 4137//2582 4152//2600 4153//2587
+f 4148//2869 4133//2574 4147//2588
+f 4143//2593 4128//2864 4142//2589
+f 4138//2866 4153//2587 4154//2868
+f 4149//2609 4134//2591 4148//2869
+f 4144//2596 4129//2578 4143//2593
+f 4139//2572 4154//2868 4155//2870
+f 4134//2591 4149//2609 4150//2595
+f 4145//2599 4130//2865 4144//2596
+f 4140//2576 4155//2870 4156//2597
+f 4135//2577 4150//2595 4151//2598
+f 4146//2601 4131//2583 4145//2599
+f 4136//2580 4151//2598 4152//2600
+f 4147//2588 4132//2867 4146//2601
+f 4161//2604 4146//2601 4160//2602
+f 4151//2598 4166//2616 4167//2871
+f 4162//2606 4147//2588 4161//2604
+f 4152//2600 4167//2871 4168//2605
+f 4163//2610 4148//2869 4162//2606
+f 4158//2611 4143//2593 4157//2872
+f 4153//2587 4168//2605 4169//2608
+f 4164//2875 4149//2609 4163//2610
+f 4159//2874 4144//2596 4158//2611
+f 4154//2868 4169//2608 4170//2873
+f 4149//2609 4164//2875 4165//2613
+f 4160//2602 4145//2599 4159//2874
+f 4155//2870 4170//2873 4171//2615
+f 4150//2595 4165//2613 4166//2616
+f 4164//2875 4179//2633 4180//2618
+f 4175//2622 4160//2602 4174//2619
+f 4170//2873 4185//2631 4186//2620
+f 4165//2613 4180//2618 4181//2621
+f 4176//2876 4161//2604 4175//2622
+f 4166//2616 4181//2621 4182//2623
+f 4177//2626 4162//2606 4176//2876
+f 4167//2871 4182//2623 4183//2625
+f 4178//2629 4163//2610 4177//2626
+f 4173//2878 4158//2611 4172//2877
+f 4168//2605 4183//2625 4184//2628
+f 4179//2633 4164//2875 4178//2629
+f 4174//2619 4159//2874 4173//2878
+f 4169//2608 4184//2628 4185//2631
+f 4183//2625 4199//2644 4200//2632
+f 4195//2883 4179//2633 4194//2634
+f 4190//2638 4174//2619 4189//2635
+f 4184//2628 4200//2632 4201//2636
+f 4179//2633 4195//2883 4196//2637
+f 4191//2880 4175//2622 4190//2638
+f 4185//2631 4201//2636 4202//2879
+f 4180//2618 4196//2637 4197//2640
+f 4192//2643 4176//2876 4191//2880
+f 4181//2621 4197//2640 4198//2642
+f 4193//2881 4177//2626 4192//2643
+f 4182//2623 4198//2642 4199//2644
+f 4194//2634 4178//2629 4193//2881
+f 4189//2635 4173//2878 4188//2882
+f 4198//2642 4213//2886 4214//2647
+f 4209//2884 4194//2634 4208//2648
+f 4204//2653 4189//2635 4203//2649
+f 4199//2644 4214//2647 4215//2650
+f 4210//2669 4195//2883 4209//2884
+f 4205//2656 4190//2638 4204//2653
+f 4200//2632 4215//2650 4216//2654
+f 4195//2883 4210//2669 4211//2655
+f 4206//2659 4191//2880 4205//2656
+f 4201//2636 4216//2654 4217//2657
+f 4196//2637 4211//2655 4212//2885
+f 4207//2661 4192//2643 4206//2659
+f 4197//2640 4212//2885 4213//2886
+f 4208//2648 4193//2881 4207//2661
+f 4222//2664 4207//2661 4221//2662
+f 4228//2665 4213//2886 4227//2663
+f 4223//2666 4208//2648 4222//2664
+f 4229//2668 4214//2647 4228//2665
+f 4224//2887 4209//2884 4223//2666
+f 4203//2649 4218//2686 4219//2667
+f 4230//2672 4215//2650 4229//2668
+f 4225//2673 4210//2669 4224//2887
+f 4204//2653 4219//2667 4220//2671
+f 4231//2674 4216//2654 4230//2672
+f 4226//2675 4211//2655 4225//2673
+f 4205//2656 4220//2671 4221//2662
+f 4232//2678 4217//2657 4231//2674
+f 4227//2663 4212//2885 4226//2675
+f 4241//2680 4226//2675 4240//2676
+f 4220//2671 4235//2689 4236//2677
+f 4247//2891 4232//2678 4246//2679
+f 4242//2888 4227//2663 4241//2680
+f 4221//2662 4236//2677 4237//2681
+f 4243//2684 4228//2665 4242//2888
+f 4222//2664 4237//2681 4238//2683
+f 4244//2688 4229//2668 4243//2684
+f 4223//2666 4238//2683 4239//2685
+f 4218//2686 4233//2892 4234//2687
+f 4245//2690 4230//2672 4244//2688
+f 4240//2676 4225//2673 4239//2685
+f 4219//2667 4234//2687 4235//2689
+f 4246//2679 4231//2674 4245//2690
+f 4260//2890 4245//2690 4259//2691
+f 4239//2685 4254//2703 4255//2692
+f 4234//2687 4249//2893 4250//2889
+f 4261//2697 4246//2679 4260//2890
+f 4256//2698 4241//2680 4255//2692
+f 4235//2689 4250//2889 4251//2695
+f 4262//2715 4247//2891 4261//2697
+f 4257//2700 4242//2888 4256//2698
+f 4236//2677 4251//2695 4252//2699
+f 4258//2702 4243//2684 4257//2700
+f 4237//2681 4252//2699 4253//2701
+f 4259//2691 4244//2688 4258//2702
+f 4238//2683 4253//2701 4254//2703
+f 4233//2892 4248//2708 4249//2893
+f 4274//2895 4259//2691 4273//2894
+f 4253//2701 4268//2720 4269//2707
+f 4248//2708 4263//2725 4264//2709
+f 4275//2713 4260//2890 4274//2895
+f 4254//2703 4269//2707 4270//2711
+f 4249//2893 4264//2709 4265//2896
+f 4276//2716 4261//2697 4275//2713
+f 4271//2717 4256//2698 4270//2711
+f 4250//2889 4265//2896 4266//2714
+f 4277//2732 4262//2715 4276//2716
+f 4272//2719 4257//2700 4271//2717
+f 4251//2695 4266//2714 4267//2718
+f 4273//2894 4258//2702 4272//2719
+f 4252//2699 4267//2718 4268//2720
+f 4288//2723 4273//2894 4287//2897
+f 4267//2718 4282//2735 4283//2722
+f 4289//2727 4274//2895 4288//2723
+f 4268//2720 4283//2722 4284//2724
+f 4263//2725 4278//2745 4279//2726
+f 4290//2730 4275//2713 4289//2727
+f 4269//2707 4284//2724 4285//2728
+f 4264//2709 4279//2726 4280//2729
+f 4291//2733 4276//2716 4290//2730
+f 4286//2734 4271//2717 4285//2728
+f 4265//2896 4280//2729 4281//2731
+f 4292//2898 4277//2732 4291//2733
+f 4287//2897 4272//2719 4286//2734
+f 4266//2714 4281//2731 4282//2735
+f 4280//2729 4295//2748 4296//2736
+f 4307//2756 4292//2898 4306//2899
+f 4302//2741 4287//2897 4301//2739
+f 4281//2731 4296//2736 4297//2740
+f 4303//2743 4288//2723 4302//2741
+f 4282//2735 4297//2740 4298//2742
+f 4304//2747 4289//2727 4303//2743
+f 4283//2722 4298//2742 4299//2900
+f 4278//2745 4293//2902 4294//2746
+f 4305//2901 4290//2730 4304//2747
+f 4300//2750 4285//2728 4299//2900
+f 4279//2726 4294//2746 4295//2748
+f 4306//2899 4291//2733 4305//2901
+f 4301//2739 4286//2734 4300//2750
+f 4316//2754 4300//2750 4315//2751
+f 4294//2746 4310//2764 4311//2752
+f 4322//2757 4306//2899 4321//2753
+f 4317//2758 4301//2739 4316//2754
+f 4295//2748 4311//2752 4312//2755
+f 4323//2905 4307//2756 4322//2757
+f 4318//2760 4302//2741 4317//2758
+f 4296//2736 4312//2755 4313//2759
+f 4319//2762 4303//2743 4318//2760
+f 4297//2740 4313//2759 4314//2761
+f 4320//2765 4304//2747 4319//2762
+f 4298//2742 4314//2761 4315//2751
+f 4293//2902 4309//2904 4310//2764
+f 4321//2753 4305//2901 4320//2765
+f 4335//2770 4320//2765 4334//2766
+f 4314//2761 4329//2780 4330//2903
+f 4309//2904 4324//2908 4325//2769
+f 4336//2772 4321//2753 4335//2770
+f 4331//2773 4316//2754 4330//2903
+f 4310//2764 4325//2769 4326//2771
+f 4337//2906 4322//2757 4336//2772
+f 4332//2777 4317//2758 4331//2773
+f 4311//2752 4326//2771 4327//2774
+f 4338//2907 4323//2905 4337//2906
+f 4333//2779 4318//2760 4332//2777
+f 4312//2755 4327//2774 4328//2778
+f 4334//2766 4319//2762 4333//2779
+f 4313//2759 4328//2778 4329//2780
+f 3867//2328 4334//2766 3866//2324
+f 3862//2785 4329//2780 3861//2326
+f 3868//2310 4335//2770 3867//2328
+f 3863//2303 4330//2903 3862//2785
+f 3858//2306 4325//2769 3857//2786
+f 3869//2309 4336//2772 3868//2310
+f 3864//2312 4331//2773 3863//2303
+f 3859//2314 4326//2771 3858//2306
+f 3870//2789 4337//2906 3869//2309
+f 3865//2318 4332//2777 3864//2312
+f 3860//2320 4327//2774 3859//2314
+f 4337//2906 3870//2789 3871//2791
+f 3866//2324 4333//2779 3865//2318
+f 3861//2326 4328//2778 3860//2320
+o Tooth_Sphere.009
+v -0.011752 1.034128 -0.041332
+v -0.030343 1.032763 -0.041332
+v -0.047476 1.030545 -0.041332
+v -0.062494 1.027561 -0.041332
+v -0.074818 1.023925 -0.041332
+v -0.083976 1.019777 -0.041332
+v -0.089616 1.015275 -0.041332
+v -0.091520 1.010594 -0.041332
+v -0.089616 1.005913 -0.041332
+v -0.083976 1.001411 -0.041332
+v -0.074818 0.997263 -0.041332
+v -0.062494 0.993627 -0.041332
+v -0.047476 0.990643 -0.041332
+v -0.030343 0.988425 -0.041332
+v -0.011752 0.987060 -0.041332
+v -0.011380 1.034128 -0.043251
+v -0.029614 1.032763 -0.045097
+v -0.046418 1.030545 -0.046797
+v -0.061147 1.027561 -0.048288
+v -0.073235 1.023925 -0.049511
+v -0.082217 1.019777 -0.050420
+v -0.087748 1.015275 -0.050980
+v -0.089616 1.010594 -0.051169
+v -0.087748 1.005913 -0.050980
+v -0.082217 1.001411 -0.050420
+v -0.073235 0.997263 -0.049511
+v -0.061147 0.993627 -0.048288
+v -0.046418 0.990643 -0.046797
+v -0.029614 0.988425 -0.045097
+v -0.011380 0.987060 -0.043251
+v -0.010280 1.034128 -0.045097
+v -0.027456 1.032763 -0.048716
+v -0.043285 1.030545 -0.052052
+v -0.057159 1.027561 -0.054976
+v -0.068546 1.023925 -0.057376
+v -0.077007 1.019777 -0.059159
+v -0.082217 1.015275 -0.060257
+v -0.083976 1.010594 -0.060628
+v -0.082217 1.005913 -0.060257
+v -0.077007 1.001411 -0.059159
+v -0.068546 0.997263 -0.057376
+v -0.057159 0.993627 -0.054976
+v -0.043285 0.990643 -0.052052
+v -0.027456 0.988425 -0.048716
+v -0.010280 0.987060 -0.045097
+v -0.008494 1.034128 -0.046797
+v -0.023951 1.032763 -0.052052
+v -0.038197 1.030545 -0.056895
+v -0.050684 1.027561 -0.061140
+v -0.060931 1.023925 -0.064624
+v -0.068546 1.019777 -0.067213
+v -0.073235 1.015275 -0.068807
+v -0.074818 1.010594 -0.069345
+v -0.073235 1.005913 -0.068807
+v -0.068546 1.001411 -0.067213
+v -0.060931 0.997263 -0.064624
+v -0.050684 0.993627 -0.061140
+v -0.038197 0.990643 -0.056895
+v -0.023951 0.988425 -0.052052
+v -0.008494 0.987060 -0.046797
+v -0.006089 1.034128 -0.048288
+v -0.019235 1.032763 -0.054976
+v -0.031350 1.030545 -0.061140
+v -0.041969 1.027561 -0.066543
+v -0.050684 1.023925 -0.070977
+v -0.057159 1.019777 -0.074272
+v -0.061147 1.015275 -0.076301
+v -0.062494 1.010594 -0.076986
+v -0.061147 1.005913 -0.076301
+v -0.057159 1.001411 -0.074272
+v -0.050684 0.997263 -0.070977
+v -0.041969 0.993627 -0.066543
+v -0.031350 0.990643 -0.061140
+v -0.019235 0.988425 -0.054976
+v -0.006089 0.987060 -0.048288
+v -0.003159 1.034128 -0.049511
+v -0.013488 1.032763 -0.057376
+v -0.023007 1.030545 -0.064624
+v -0.031350 1.027561 -0.070977
+v -0.038197 1.023925 -0.076191
+v -0.043285 1.019777 -0.080065
+v -0.046418 1.015275 -0.082451
+v -0.047476 1.010594 -0.083256
+v -0.046418 1.005913 -0.082451
+v -0.043285 1.001411 -0.080065
+v -0.038197 0.997263 -0.076191
+v -0.031350 0.993627 -0.070977
+v -0.023007 0.990643 -0.064624
+v -0.013488 0.988425 -0.057376
+v -0.003159 0.987060 -0.049511
+v 0.000183 1.034128 -0.050420
+v -0.006931 1.032763 -0.059159
+v -0.013488 1.030545 -0.067213
+v -0.019235 1.027561 -0.074272
+v -0.023951 1.023925 -0.080065
+v -0.027456 1.019777 -0.084370
+v -0.029614 1.015275 -0.087020
+v -0.030343 1.010594 -0.087916
+v -0.029614 1.005913 -0.087020
+v -0.027456 1.001411 -0.084370
+v -0.023951 0.997263 -0.080065
+v -0.019235 0.993627 -0.074272
+v -0.013488 0.990643 -0.067213
+v -0.006931 0.988425 -0.059159
+v 0.000183 0.987060 -0.050420
+v 0.003810 1.034128 -0.050980
+v 0.000183 1.032763 -0.060257
+v -0.003159 1.030545 -0.068807
+v -0.006089 1.027561 -0.076301
+v -0.008494 1.023925 -0.082451
+v -0.010280 1.019777 -0.087020
+v -0.011380 1.015275 -0.089835
+v -0.011752 1.010594 -0.090785
+v -0.011380 1.005913 -0.089835
+v -0.010280 1.001411 -0.087020
+v -0.008494 0.997263 -0.082451
+v -0.006089 0.993627 -0.076301
+v -0.003159 0.990643 -0.068807
+v 0.000183 0.988425 -0.060257
+v 0.003810 0.987060 -0.050980
+v 0.007582 1.034128 -0.051169
+v 0.007582 1.032763 -0.060628
+v 0.007582 1.030545 -0.069345
+v 0.007582 1.027561 -0.076986
+v 0.007582 1.023925 -0.083256
+v 0.007582 1.019777 -0.087916
+v 0.007582 1.015275 -0.090785
+v 0.007582 1.010594 -0.091754
+v 0.007582 1.005913 -0.090785
+v 0.007582 1.001411 -0.087916
+v 0.007582 0.997263 -0.083256
+v 0.007582 0.993627 -0.076986
+v 0.007582 0.990643 -0.069345
+v 0.007582 0.988425 -0.060628
+v 0.007582 0.987060 -0.051169
+v 0.011354 1.034128 -0.050980
+v 0.014981 1.032763 -0.060257
+v 0.018323 1.030545 -0.068807
+v 0.021253 1.027561 -0.076301
+v 0.023657 1.023925 -0.082451
+v 0.025444 1.019777 -0.087020
+v 0.026544 1.015275 -0.089835
+v 0.026916 1.010594 -0.090785
+v 0.026544 1.005913 -0.089835
+v 0.025444 1.001411 -0.087020
+v 0.023657 0.997263 -0.082451
+v 0.021253 0.993627 -0.076301
+v 0.018323 0.990643 -0.068807
+v 0.014981 0.988425 -0.060257
+v 0.011354 0.987060 -0.050980
+v 0.014981 1.034128 -0.050420
+v 0.022095 1.032763 -0.059159
+v 0.028652 1.030545 -0.067213
+v 0.034399 1.027561 -0.074272
+v 0.039115 1.023925 -0.080065
+v 0.042620 1.019777 -0.084370
+v 0.044778 1.015275 -0.087020
+v 0.045506 1.010594 -0.087916
+v 0.044778 1.005913 -0.087020
+v 0.042620 1.001411 -0.084370
+v 0.039115 0.997263 -0.080065
+v 0.034399 0.993627 -0.074272
+v 0.028652 0.990643 -0.067213
+v 0.022095 0.988425 -0.059159
+v 0.014981 0.987060 -0.050420
+v 0.018323 1.034128 -0.049511
+v 0.028652 1.032763 -0.057376
+v 0.038170 1.030545 -0.064624
+v 0.046514 1.027561 -0.070977
+v 0.053361 1.023925 -0.076191
+v 0.058449 1.019777 -0.080065
+v 0.061582 1.015275 -0.082451
+v 0.062640 1.010594 -0.083256
+v 0.061582 1.005913 -0.082451
+v 0.058449 1.001411 -0.080065
+v 0.053361 0.997263 -0.076191
+v 0.046514 0.993627 -0.070977
+v 0.038170 0.990643 -0.064624
+v 0.028652 0.988425 -0.057376
+v 0.018323 0.987060 -0.049511
+v 0.021253 1.034128 -0.048288
+v 0.034399 1.032763 -0.054976
+v 0.046514 1.030545 -0.061140
+v 0.057133 1.027561 -0.066543
+v 0.065848 1.023925 -0.070977
+v 0.072323 1.019777 -0.074272
+v 0.076311 1.015275 -0.076301
+v 0.077657 1.010594 -0.076986
+v 0.076311 1.005913 -0.076301
+v 0.072323 1.001411 -0.074272
+v 0.065848 0.997263 -0.070977
+v 0.057133 0.993627 -0.066543
+v 0.046514 0.990643 -0.061140
+v 0.034399 0.988425 -0.054976
+v 0.021253 0.987060 -0.048288
+v 0.023657 1.034128 -0.046797
+v 0.039115 1.032763 -0.052052
+v 0.053361 1.030545 -0.056895
+v 0.065848 1.027561 -0.061140
+v 0.076095 1.023925 -0.064624
+v 0.083710 1.019777 -0.067213
+v 0.088399 1.015275 -0.068807
+v 0.089982 1.010594 -0.069345
+v 0.088399 1.005913 -0.068807
+v 0.083710 1.001411 -0.067213
+v 0.076095 0.997263 -0.064624
+v 0.065848 0.993627 -0.061140
+v 0.053361 0.990643 -0.056895
+v 0.039115 0.988425 -0.052052
+v 0.023657 0.987060 -0.046797
+v 0.025444 1.034128 -0.045097
+v 0.042620 1.032763 -0.048716
+v 0.058449 1.030545 -0.052052
+v 0.072323 1.027561 -0.054976
+v 0.083710 1.023925 -0.057376
+v 0.092170 1.019777 -0.059159
+v 0.097381 1.015275 -0.060257
+v 0.099140 1.010594 -0.060628
+v 0.097381 1.005913 -0.060257
+v 0.092170 1.001411 -0.059159
+v 0.083710 0.997263 -0.057376
+v 0.072323 0.993627 -0.054976
+v 0.058449 0.990643 -0.052052
+v 0.042620 0.988425 -0.048716
+v 0.025444 0.987060 -0.045097
+v 0.026544 1.034128 -0.043251
+v 0.044778 1.032763 -0.045097
+v 0.061582 1.030545 -0.046797
+v 0.076311 1.027561 -0.048288
+v 0.088399 1.023925 -0.049511
+v 0.097381 1.019777 -0.050420
+v 0.102912 1.015275 -0.050980
+v 0.104779 1.010594 -0.051169
+v 0.102912 1.005913 -0.050980
+v 0.097381 1.001411 -0.050420
+v 0.088399 0.997263 -0.049511
+v 0.076311 0.993627 -0.048288
+v 0.061582 0.990643 -0.046797
+v 0.044778 0.988425 -0.045097
+v 0.026544 0.987060 -0.043251
+v 0.026916 1.034128 -0.041332
+v 0.045506 1.032763 -0.041332
+v 0.062640 1.030545 -0.041332
+v 0.077657 1.027561 -0.041332
+v 0.089982 1.023925 -0.041332
+v 0.099140 1.019777 -0.041332
+v 0.104779 1.015275 -0.041332
+v 0.106684 1.010594 -0.041332
+v 0.104779 1.005913 -0.041332
+v 0.099140 1.001411 -0.041332
+v 0.089982 0.997263 -0.041332
+v 0.077657 0.993627 -0.041332
+v 0.062640 0.990643 -0.041332
+v 0.045506 0.988425 -0.041332
+v 0.026916 0.987060 -0.041332
+v 0.026544 1.034128 -0.039413
+v 0.044778 1.032763 -0.037568
+v 0.061582 1.030545 -0.035867
+v 0.076311 1.027561 -0.034377
+v 0.088399 1.023925 -0.033154
+v 0.097381 1.019777 -0.032245
+v 0.102912 1.015275 -0.031685
+v 0.104779 1.010594 -0.031496
+v 0.102912 1.005913 -0.031685
+v 0.097381 1.001411 -0.032245
+v 0.088399 0.997263 -0.033154
+v 0.076311 0.993627 -0.034377
+v 0.061582 0.990643 -0.035867
+v 0.044778 0.988425 -0.037568
+v 0.026544 0.987060 -0.039413
+v 0.025444 1.034128 -0.037568
+v 0.042620 1.032763 -0.033948
+v 0.058449 1.030545 -0.030612
+v 0.072323 1.027561 -0.027689
+v 0.083710 1.023925 -0.025289
+v 0.092170 1.019777 -0.023506
+v 0.097381 1.015275 -0.022408
+v 0.099140 1.010594 -0.022037
+v 0.097381 1.005913 -0.022408
+v 0.092170 1.001411 -0.023506
+v 0.083710 0.997263 -0.025289
+v 0.072323 0.993627 -0.027689
+v 0.058449 0.990643 -0.030612
+v 0.042620 0.988425 -0.033948
+v 0.025444 0.987060 -0.037568
+v 0.023657 1.034128 -0.035867
+v 0.039115 1.032763 -0.030612
+v 0.053361 1.030545 -0.025770
+v 0.065847 1.027561 -0.021525
+v 0.076095 1.023925 -0.018041
+v 0.083710 1.019777 -0.015452
+v 0.088399 1.015275 -0.013858
+v 0.089982 1.010594 -0.013320
+v 0.088399 1.005913 -0.013858
+v 0.083710 1.001411 -0.015452
+v 0.076095 0.997263 -0.018041
+v 0.065847 0.993627 -0.021525
+v 0.053361 0.990643 -0.025770
+v 0.039115 0.988425 -0.030612
+v 0.023657 0.987060 -0.035867
+v 0.021253 1.034128 -0.034377
+v 0.034399 1.032763 -0.027689
+v 0.046514 1.030545 -0.021525
+v 0.057133 1.027561 -0.016122
+v 0.065847 1.023925 -0.011688
+v 0.072323 1.019777 -0.008393
+v 0.076311 1.015275 -0.006364
+v 0.077657 1.010594 -0.005679
+v 0.076311 1.005913 -0.006364
+v 0.072323 1.001411 -0.008393
+v 0.065847 0.997263 -0.011688
+v 0.057133 0.993627 -0.016122
+v 0.046514 0.990643 -0.021525
+v 0.034399 0.988425 -0.027689
+v 0.021253 0.987060 -0.034377
+v 0.018323 1.034128 -0.033154
+v 0.028652 1.032763 -0.025289
+v 0.038170 1.030545 -0.018041
+v 0.046514 1.027561 -0.011688
+v 0.053361 1.023925 -0.006474
+v 0.058449 1.019777 -0.002600
+v 0.061582 1.015275 -0.000214
+v 0.062640 1.010594 0.000591
+v 0.061582 1.005913 -0.000214
+v 0.058449 1.001411 -0.002600
+v 0.053361 0.997263 -0.006474
+v 0.046514 0.993627 -0.011688
+v 0.038170 0.990643 -0.018041
+v 0.028652 0.988425 -0.025289
+v 0.018323 0.987060 -0.033154
+v 0.007582 0.986599 -0.041332
+v 0.014981 1.034128 -0.032245
+v 0.022095 1.032763 -0.023506
+v 0.028652 1.030545 -0.015452
+v 0.034399 1.027561 -0.008393
+v 0.039115 1.023925 -0.002600
+v 0.042620 1.019777 0.001705
+v 0.044778 1.015275 0.004356
+v 0.045506 1.010594 0.005251
+v 0.044778 1.005913 0.004356
+v 0.042620 1.001411 0.001705
+v 0.039115 0.997263 -0.002600
+v 0.034399 0.993627 -0.008393
+v 0.028652 0.990643 -0.015452
+v 0.022095 0.988425 -0.023506
+v 0.014981 0.987060 -0.032245
+v 0.011354 1.034128 -0.031685
+v 0.014981 1.032763 -0.022408
+v 0.018323 1.030545 -0.013858
+v 0.021253 1.027561 -0.006364
+v 0.023657 1.023925 -0.000214
+v 0.025444 1.019777 0.004356
+v 0.026544 1.015275 0.007170
+v 0.026916 1.010594 0.008120
+v 0.026544 1.005913 0.007170
+v 0.025444 1.001411 0.004356
+v 0.023657 0.997263 -0.000214
+v 0.021253 0.993627 -0.006364
+v 0.018323 0.990643 -0.013858
+v 0.014981 0.988425 -0.022408
+v 0.011354 0.987060 -0.031685
+v 0.007582 1.034128 -0.031496
+v 0.007582 1.032763 -0.022037
+v 0.007582 1.030545 -0.013320
+v 0.007582 1.027561 -0.005679
+v 0.007582 1.023925 0.000591
+v 0.007582 1.019777 0.005251
+v 0.007582 1.015275 0.008120
+v 0.007582 1.010594 0.009089
+v 0.007582 1.005913 0.008120
+v 0.007582 1.001411 0.005251
+v 0.007582 0.997263 0.000591
+v 0.007582 0.993627 -0.005679
+v 0.007582 0.990643 -0.013320
+v 0.007582 0.988425 -0.022037
+v 0.007582 0.987060 -0.031496
+v 0.003810 1.034128 -0.031685
+v 0.000183 1.032763 -0.022408
+v -0.003159 1.030545 -0.013858
+v -0.006089 1.027561 -0.006364
+v -0.008494 1.023925 -0.000214
+v -0.010280 1.019777 0.004356
+v -0.011380 1.015275 0.007170
+v -0.011752 1.010594 0.008120
+v -0.011380 1.005913 0.007170
+v -0.010280 1.001411 0.004356
+v -0.008494 0.997263 -0.000214
+v -0.006089 0.993627 -0.006364
+v -0.003159 0.990643 -0.013858
+v 0.000183 0.988425 -0.022408
+v 0.003810 0.987060 -0.031685
+v 0.000183 1.034128 -0.032245
+v -0.006931 1.032763 -0.023506
+v -0.013488 1.030545 -0.015452
+v -0.019235 1.027561 -0.008393
+v -0.023951 1.023925 -0.002600
+v -0.027456 1.019777 0.001705
+v -0.029614 1.015275 0.004356
+v -0.030343 1.010594 0.005251
+v -0.029614 1.005913 0.004356
+v -0.027456 1.001411 0.001705
+v -0.023951 0.997263 -0.002600
+v -0.019235 0.993627 -0.008393
+v -0.013488 0.990643 -0.015452
+v -0.006931 0.988425 -0.023506
+v 0.000183 0.987060 -0.032245
+v -0.003159 1.034128 -0.033154
+v -0.013488 1.032763 -0.025289
+v -0.023007 1.030545 -0.018041
+v -0.031350 1.027561 -0.011688
+v -0.038197 1.023925 -0.006474
+v -0.043285 1.019777 -0.002600
+v -0.046418 1.015275 -0.000214
+v -0.047476 1.010594 0.000591
+v -0.046418 1.005913 -0.000214
+v -0.043285 1.001411 -0.002600
+v -0.038197 0.997263 -0.006474
+v -0.031350 0.993627 -0.011688
+v -0.023007 0.990643 -0.018041
+v -0.013488 0.988425 -0.025289
+v -0.003159 0.987060 -0.033154
+v -0.006089 1.034128 -0.034377
+v -0.019235 1.032763 -0.027689
+v -0.031350 1.030545 -0.021525
+v -0.041969 1.027561 -0.016122
+v -0.050684 1.023925 -0.011688
+v -0.057159 1.019777 -0.008393
+v -0.061147 1.015275 -0.006364
+v -0.062494 1.010594 -0.005679
+v -0.061147 1.005913 -0.006364
+v -0.057159 1.001411 -0.008393
+v -0.050684 0.997263 -0.011688
+v -0.041969 0.993627 -0.016122
+v -0.031350 0.990643 -0.021525
+v -0.019235 0.988425 -0.027689
+v -0.006089 0.987060 -0.034377
+v -0.008494 1.034128 -0.035867
+v -0.023951 1.032763 -0.030613
+v -0.038197 1.030545 -0.025770
+v -0.050684 1.027561 -0.021525
+v -0.060931 1.023925 -0.018041
+v -0.068546 1.019777 -0.015452
+v -0.073235 1.015275 -0.013858
+v -0.074818 1.010594 -0.013320
+v -0.073235 1.005913 -0.013858
+v -0.068546 1.001411 -0.015452
+v -0.060931 0.997263 -0.018041
+v -0.050684 0.993627 -0.021525
+v -0.038197 0.990643 -0.025770
+v -0.023951 0.988425 -0.030613
+v -0.008494 0.987060 -0.035867
+v 0.007582 1.034589 -0.041332
+v -0.010280 1.034128 -0.037568
+v -0.027456 1.032763 -0.033948
+v -0.043285 1.030545 -0.030613
+v -0.057159 1.027561 -0.027689
+v -0.068546 1.023925 -0.025289
+v -0.077007 1.019777 -0.023506
+v -0.082217 1.015275 -0.022408
+v -0.083976 1.010594 -0.022037
+v -0.082217 1.005913 -0.022408
+v -0.077007 1.001411 -0.023506
+v -0.068546 0.997263 -0.025289
+v -0.057159 0.993627 -0.027689
+v -0.043285 0.990643 -0.030613
+v -0.027456 0.988425 -0.033948
+v -0.010280 0.987060 -0.037568
+v -0.011380 1.034128 -0.039413
+v -0.029614 1.032763 -0.037568
+v -0.046418 1.030545 -0.035867
+v -0.061147 1.027561 -0.034377
+v -0.073235 1.023925 -0.033154
+v -0.082217 1.019777 -0.032245
+v -0.087748 1.015275 -0.031685
+v -0.089615 1.010594 -0.031496
+v -0.087748 1.005913 -0.031685
+v -0.082217 1.001411 -0.032245
+v -0.073235 0.997263 -0.033154
+v -0.061147 0.993627 -0.034377
+v -0.046418 0.990643 -0.035867
+v -0.029614 0.988425 -0.037568
+v -0.011380 0.987060 -0.039413
+v -0.009875 1.033703 0.012545
+v -0.028466 1.032337 0.012545
+v -0.045600 1.030120 0.012545
+v -0.060617 1.027136 0.012545
+v -0.072942 1.023500 0.012545
+v -0.082100 1.019351 0.012545
+v -0.087739 1.014850 0.012545
+v -0.089643 1.010168 0.012545
+v -0.087739 1.005487 0.012545
+v -0.082100 1.000986 0.012545
+v -0.072942 0.996837 0.012545
+v -0.060617 0.993201 0.012545
+v -0.045600 0.990217 0.012545
+v -0.028466 0.988000 0.012545
+v -0.009875 0.986634 0.012545
+v -0.009504 1.033703 0.010626
+v -0.027738 1.032337 0.008781
+v -0.044542 1.030120 0.007080
+v -0.059271 1.027136 0.005589
+v -0.071358 1.023500 0.004366
+v -0.080340 1.019351 0.003457
+v -0.085871 1.014850 0.002897
+v -0.087739 1.010168 0.002708
+v -0.085871 1.005487 0.002897
+v -0.080340 1.000986 0.003457
+v -0.071358 0.996837 0.004366
+v -0.059271 0.993201 0.005589
+v -0.044542 0.990217 0.007080
+v -0.027737 0.988000 0.008781
+v -0.009504 0.986634 0.010626
+v -0.008404 1.033703 0.008780
+v -0.025579 1.032337 0.005161
+v -0.041409 1.030120 0.001825
+v -0.055283 1.027136 -0.001099
+v -0.066669 1.023500 -0.003499
+v -0.075130 1.019351 -0.005282
+v -0.080340 1.014850 -0.006380
+v -0.082100 1.010168 -0.006751
+v -0.080340 1.005487 -0.006380
+v -0.075130 1.000986 -0.005282
+v -0.066669 0.996837 -0.003499
+v -0.055283 0.993201 -0.001099
+v -0.041409 0.990217 0.001825
+v -0.025579 0.988000 0.005161
+v -0.008404 0.986634 0.008781
+v -0.006617 1.033703 0.007080
+v -0.022075 1.032337 0.001825
+v -0.036321 1.030120 -0.003018
+v -0.048807 1.027136 -0.007263
+v -0.059055 1.023500 -0.010747
+v -0.066669 1.019351 -0.013335
+v -0.071358 1.014850 -0.014929
+v -0.072942 1.010168 -0.015468
+v -0.071358 1.005487 -0.014929
+v -0.066669 1.000986 -0.013335
+v -0.059055 0.996837 -0.010747
+v -0.048807 0.993201 -0.007263
+v -0.036321 0.990217 -0.003018
+v -0.022075 0.988000 0.001825
+v -0.006617 0.986634 0.007080
+v -0.004213 1.033703 0.005589
+v -0.017358 1.032337 -0.001099
+v -0.029473 1.030120 -0.007263
+v -0.040092 1.027136 -0.012666
+v -0.048807 1.023500 -0.017100
+v -0.055283 1.019351 -0.020394
+v -0.059271 1.014850 -0.022423
+v -0.060617 1.010168 -0.023108
+v -0.059271 1.005487 -0.022423
+v -0.055283 1.000986 -0.020394
+v -0.048807 0.996837 -0.017100
+v -0.040092 0.993201 -0.012666
+v -0.029473 0.990217 -0.007263
+v -0.017358 0.988000 -0.001099
+v -0.004213 0.986634 0.005589
+v -0.001283 1.033703 0.004366
+v -0.011611 1.032337 -0.003499
+v -0.021130 1.030120 -0.010747
+v -0.029473 1.027136 -0.017100
+v -0.036321 1.023500 -0.022313
+v -0.041409 1.019351 -0.026188
+v -0.044542 1.014850 -0.028573
+v -0.045600 1.010168 -0.029379
+v -0.044542 1.005487 -0.028573
+v -0.041409 1.000986 -0.026188
+v -0.036321 0.996837 -0.022313
+v -0.029473 0.993201 -0.017100
+v -0.021130 0.990217 -0.010747
+v -0.011611 0.988000 -0.003499
+v -0.001283 0.986634 0.004366
+v 0.002060 1.033703 0.003457
+v -0.005055 1.032337 -0.005282
+v -0.011611 1.030120 -0.013335
+v -0.017358 1.027136 -0.020394
+v -0.022075 1.023500 -0.026188
+v -0.025579 1.019351 -0.030492
+v -0.027737 1.014850 -0.033143
+v -0.028466 1.010168 -0.034038
+v -0.027737 1.005487 -0.033143
+v -0.025579 1.000986 -0.030492
+v -0.022075 0.996837 -0.026188
+v -0.017358 0.993201 -0.020394
+v -0.011611 0.990217 -0.013335
+v -0.005055 0.988000 -0.005282
+v 0.002060 0.986634 0.003457
+v 0.005687 1.033703 0.002897
+v 0.002060 1.032337 -0.006380
+v -0.001283 1.030120 -0.014929
+v -0.004213 1.027136 -0.022423
+v -0.006617 1.023500 -0.028573
+v -0.008404 1.019351 -0.033143
+v -0.009504 1.014850 -0.035957
+v -0.009875 1.010168 -0.036908
+v -0.009504 1.005487 -0.035957
+v -0.008404 1.000986 -0.033143
+v -0.006617 0.996837 -0.028573
+v -0.004213 0.993201 -0.022423
+v -0.001283 0.990217 -0.014929
+v 0.002060 0.988000 -0.006380
+v 0.005687 0.986634 0.002897
+v 0.009458 1.033703 0.002708
+v 0.009458 1.032337 -0.006751
+v 0.009458 1.030120 -0.015468
+v 0.009458 1.027136 -0.023108
+v 0.009458 1.023500 -0.029379
+v 0.009458 1.019351 -0.034038
+v 0.009458 1.014850 -0.036908
+v 0.009458 1.010168 -0.037876
+v 0.009458 1.005487 -0.036908
+v 0.009458 1.000986 -0.034038
+v 0.009458 0.996837 -0.029379
+v 0.009458 0.993201 -0.023108
+v 0.009458 0.990217 -0.015468
+v 0.009458 0.988000 -0.006751
+v 0.009458 0.986634 0.002708
+v 0.013230 1.033703 0.002897
+v 0.016857 1.032337 -0.006380
+v 0.020200 1.030120 -0.014929
+v 0.023129 1.027136 -0.022423
+v 0.025534 1.023500 -0.028573
+v 0.027320 1.019351 -0.033143
+v 0.028421 1.014850 -0.035957
+v 0.028792 1.010168 -0.036908
+v 0.028421 1.005487 -0.035957
+v 0.027320 1.000986 -0.033143
+v 0.025534 0.996837 -0.028573
+v 0.023129 0.993201 -0.022423
+v 0.020200 0.990217 -0.014929
+v 0.016857 0.988000 -0.006380
+v 0.013230 0.986634 0.002897
+v 0.016857 1.033703 0.003457
+v 0.023971 1.032337 -0.005282
+v 0.030528 1.030120 -0.013335
+v 0.036275 1.027136 -0.020394
+v 0.040992 1.023500 -0.026188
+v 0.044496 1.019351 -0.030492
+v 0.046654 1.014850 -0.033143
+v 0.047383 1.010168 -0.034038
+v 0.046654 1.005487 -0.033143
+v 0.044496 1.000986 -0.030492
+v 0.040992 0.996837 -0.026188
+v 0.036275 0.993201 -0.020394
+v 0.030528 0.990217 -0.013335
+v 0.023971 0.988000 -0.005282
+v 0.016857 0.986634 0.003457
+v 0.020200 1.033703 0.004366
+v 0.030528 1.032337 -0.003499
+v 0.040047 1.030120 -0.010747
+v 0.048390 1.027136 -0.017100
+v 0.055237 1.023500 -0.022313
+v 0.060325 1.019351 -0.026188
+v 0.063458 1.014850 -0.028573
+v 0.064516 1.010168 -0.029379
+v 0.063458 1.005487 -0.028573
+v 0.060325 1.000986 -0.026188
+v 0.055237 0.996837 -0.022313
+v 0.048390 0.993201 -0.017100
+v 0.040047 0.990217 -0.010747
+v 0.030528 0.988000 -0.003499
+v 0.020200 0.986634 0.004366
+v 0.023129 1.033703 0.005589
+v 0.036275 1.032337 -0.001099
+v 0.048390 1.030120 -0.007263
+v 0.059009 1.027136 -0.012666
+v 0.067724 1.023500 -0.017100
+v 0.074200 1.019351 -0.020394
+v 0.078187 1.014850 -0.022423
+v 0.079534 1.010168 -0.023108
+v 0.078187 1.005487 -0.022423
+v 0.074200 1.000986 -0.020394
+v 0.067724 0.996837 -0.017100
+v 0.059009 0.993201 -0.012666
+v 0.048390 0.990217 -0.007263
+v 0.036275 0.988000 -0.001099
+v 0.023129 0.986634 0.005589
+v 0.025534 1.033703 0.007080
+v 0.040992 1.032337 0.001825
+v 0.055237 1.030120 -0.003018
+v 0.067724 1.027136 -0.007263
+v 0.077971 1.023500 -0.010747
+v 0.085586 1.019351 -0.013335
+v 0.090275 1.014850 -0.014929
+v 0.091858 1.010168 -0.015468
+v 0.090275 1.005487 -0.014929
+v 0.085586 1.000986 -0.013335
+v 0.077971 0.996837 -0.010747
+v 0.067724 0.993201 -0.007263
+v 0.055237 0.990217 -0.003018
+v 0.040991 0.988000 0.001825
+v 0.025534 0.986634 0.007080
+v 0.027320 1.033703 0.008781
+v 0.044496 1.032337 0.005161
+v 0.060325 1.030120 0.001825
+v 0.074200 1.027136 -0.001099
+v 0.085586 1.023500 -0.003499
+v 0.094047 1.019351 -0.005282
+v 0.099257 1.014850 -0.006380
+v 0.101016 1.010168 -0.006751
+v 0.099257 1.005487 -0.006380
+v 0.094047 1.000986 -0.005282
+v 0.085586 0.996837 -0.003499
+v 0.074200 0.993201 -0.001099
+v 0.060325 0.990217 0.001825
+v 0.044496 0.988000 0.005161
+v 0.027320 0.986634 0.008781
+v 0.028421 1.033703 0.010626
+v 0.046654 1.032337 0.008781
+v 0.063458 1.030120 0.007080
+v 0.078187 1.027136 0.005589
+v 0.090275 1.023500 0.004366
+v 0.099257 1.019351 0.003457
+v 0.104788 1.014850 0.002897
+v 0.106656 1.010168 0.002708
+v 0.104788 1.005487 0.002897
+v 0.099257 1.000986 0.003457
+v 0.090275 0.996837 0.004366
+v 0.078187 0.993201 0.005589
+v 0.063458 0.990217 0.007080
+v 0.046654 0.988000 0.008781
+v 0.028421 0.986634 0.010626
+v 0.028792 1.033703 0.012545
+v 0.047383 1.032337 0.012545
+v 0.064516 1.030120 0.012545
+v 0.079534 1.027136 0.012545
+v 0.091858 1.023500 0.012545
+v 0.101016 1.019351 0.012545
+v 0.106656 1.014850 0.012545
+v 0.108560 1.010168 0.012545
+v 0.106656 1.005487 0.012545
+v 0.101016 1.000986 0.012545
+v 0.091858 0.996837 0.012545
+v 0.079534 0.993201 0.012545
+v 0.064516 0.990217 0.012545
+v 0.047383 0.988000 0.012545
+v 0.028792 0.986634 0.012545
+v 0.028421 1.033703 0.014464
+v 0.046654 1.032337 0.016309
+v 0.063458 1.030120 0.018010
+v 0.078187 1.027136 0.019500
+v 0.090275 1.023500 0.020724
+v 0.099257 1.019351 0.021633
+v 0.104788 1.014850 0.022193
+v 0.106656 1.010168 0.022382
+v 0.104788 1.005487 0.022193
+v 0.099257 1.000986 0.021633
+v 0.090275 0.996837 0.020724
+v 0.078187 0.993201 0.019500
+v 0.063458 0.990217 0.018010
+v 0.046654 0.988000 0.016309
+v 0.028421 0.986634 0.014464
+v 0.027320 1.033703 0.016309
+v 0.044496 1.032337 0.019929
+v 0.060325 1.030120 0.023265
+v 0.074200 1.027136 0.026189
+v 0.085586 1.023500 0.028588
+v 0.094047 1.019351 0.030371
+v 0.099257 1.014850 0.031469
+v 0.101016 1.010168 0.031840
+v 0.099257 1.005487 0.031469
+v 0.094047 1.000986 0.030371
+v 0.085586 0.996837 0.028588
+v 0.074200 0.993201 0.026189
+v 0.060325 0.990217 0.023265
+v 0.044496 0.988000 0.019929
+v 0.027320 0.986634 0.016309
+v 0.025534 1.033703 0.018010
+v 0.040991 1.032337 0.023265
+v 0.055237 1.030120 0.028108
+v 0.067724 1.027136 0.032353
+v 0.077971 1.023500 0.035836
+v 0.085586 1.019351 0.038425
+v 0.090275 1.014850 0.040019
+v 0.091858 1.010168 0.040557
+v 0.090275 1.005487 0.040019
+v 0.085586 1.000986 0.038425
+v 0.077971 0.996837 0.035836
+v 0.067724 0.993201 0.032353
+v 0.055237 0.990217 0.028108
+v 0.040991 0.988000 0.023265
+v 0.025534 0.986634 0.018010
+v 0.023129 1.033703 0.019500
+v 0.036275 1.032337 0.026189
+v 0.048390 1.030120 0.032353
+v 0.059009 1.027136 0.037755
+v 0.067724 1.023500 0.042189
+v 0.074200 1.019351 0.045484
+v 0.078187 1.014850 0.047513
+v 0.079534 1.010168 0.048198
+v 0.078187 1.005487 0.047513
+v 0.074200 1.000986 0.045484
+v 0.067724 0.996837 0.042189
+v 0.059009 0.993201 0.037755
+v 0.048390 0.990217 0.032353
+v 0.036275 0.988000 0.026189
+v 0.023129 0.986634 0.019500
+v 0.020200 1.033703 0.020724
+v 0.030528 1.032337 0.028588
+v 0.040047 1.030120 0.035836
+v 0.048390 1.027136 0.042189
+v 0.055237 1.023500 0.047403
+v 0.060325 1.019351 0.051277
+v 0.063458 1.014850 0.053663
+v 0.064516 1.010168 0.054469
+v 0.063458 1.005487 0.053663
+v 0.060325 1.000986 0.051277
+v 0.055237 0.996837 0.047403
+v 0.048390 0.993201 0.042189
+v 0.040047 0.990217 0.035836
+v 0.030528 0.988000 0.028588
+v 0.020200 0.986634 0.020724
+v 0.009458 0.986173 0.012545
+v 0.016857 1.033703 0.021633
+v 0.023971 1.032337 0.030371
+v 0.030528 1.030120 0.038425
+v 0.036275 1.027136 0.045484
+v 0.040991 1.023500 0.051277
+v 0.044496 1.019351 0.055582
+v 0.046654 1.014850 0.058233
+v 0.047383 1.010168 0.059128
+v 0.046654 1.005487 0.058233
+v 0.044496 1.000986 0.055582
+v 0.040991 0.996837 0.051277
+v 0.036275 0.993201 0.045484
+v 0.030528 0.990217 0.038425
+v 0.023971 0.988000 0.030371
+v 0.016857 0.986634 0.021633
+v 0.013230 1.033703 0.022193
+v 0.016857 1.032337 0.031469
+v 0.020200 1.030120 0.040019
+v 0.023129 1.027136 0.047513
+v 0.025534 1.023500 0.053663
+v 0.027320 1.019351 0.058233
+v 0.028421 1.014850 0.061047
+v 0.028792 1.010168 0.061997
+v 0.028421 1.005487 0.061047
+v 0.027320 1.000986 0.058233
+v 0.025534 0.996837 0.053663
+v 0.023129 0.993201 0.047513
+v 0.020200 0.990217 0.040019
+v 0.016857 0.988000 0.031469
+v 0.013230 0.986634 0.022193
+v 0.009458 1.033703 0.022382
+v 0.009458 1.032337 0.031840
+v 0.009458 1.030120 0.040557
+v 0.009458 1.027136 0.048198
+v 0.009458 1.023500 0.054469
+v 0.009458 1.019351 0.059128
+v 0.009458 1.014850 0.061997
+v 0.009458 1.010168 0.062966
+v 0.009458 1.005487 0.061997
+v 0.009458 1.000986 0.059128
+v 0.009458 0.996837 0.054469
+v 0.009458 0.993201 0.048198
+v 0.009458 0.990217 0.040557
+v 0.009458 0.988000 0.031840
+v 0.009458 0.986634 0.022382
+v 0.005687 1.033703 0.022193
+v 0.002060 1.032337 0.031469
+v -0.001283 1.030120 0.040019
+v -0.004213 1.027136 0.047513
+v -0.006617 1.023500 0.053663
+v -0.008404 1.019351 0.058233
+v -0.009504 1.014850 0.061047
+v -0.009875 1.010168 0.061997
+v -0.009504 1.005487 0.061047
+v -0.008404 1.000986 0.058233
+v -0.006617 0.996837 0.053663
+v -0.004213 0.993201 0.047513
+v -0.001283 0.990217 0.040019
+v 0.002060 0.988000 0.031469
+v 0.005687 0.986634 0.022193
+v 0.002060 1.033703 0.021633
+v -0.005055 1.032337 0.030371
+v -0.011611 1.030120 0.038425
+v -0.017358 1.027136 0.045484
+v -0.022075 1.023500 0.051277
+v -0.025579 1.019351 0.055582
+v -0.027737 1.014850 0.058233
+v -0.028466 1.010168 0.059128
+v -0.027737 1.005487 0.058233
+v -0.025579 1.000986 0.055582
+v -0.022075 0.996837 0.051277
+v -0.017358 0.993201 0.045484
+v -0.011611 0.990217 0.038425
+v -0.005055 0.988000 0.030371
+v 0.002060 0.986634 0.021633
+v -0.001283 1.033703 0.020724
+v -0.011611 1.032337 0.028588
+v -0.021130 1.030120 0.035836
+v -0.029473 1.027136 0.042189
+v -0.036321 1.023500 0.047403
+v -0.041409 1.019351 0.051277
+v -0.044542 1.014850 0.053663
+v -0.045600 1.010168 0.054468
+v -0.044542 1.005487 0.053663
+v -0.041408 1.000986 0.051277
+v -0.036321 0.996837 0.047403
+v -0.029473 0.993201 0.042189
+v -0.021130 0.990217 0.035836
+v -0.011611 0.988000 0.028588
+v -0.001283 0.986634 0.020724
+v -0.004213 1.033703 0.019500
+v -0.017358 1.032337 0.026189
+v -0.029473 1.030120 0.032353
+v -0.040092 1.027136 0.037755
+v -0.048807 1.023500 0.042189
+v -0.055283 1.019351 0.045484
+v -0.059271 1.014850 0.047513
+v -0.060617 1.010168 0.048198
+v -0.059271 1.005487 0.047513
+v -0.055283 1.000986 0.045484
+v -0.048807 0.996837 0.042189
+v -0.040092 0.993201 0.037755
+v -0.029473 0.990217 0.032353
+v -0.017358 0.988000 0.026189
+v -0.004213 0.986634 0.019500
+v -0.006617 1.033703 0.018010
+v -0.022075 1.032337 0.023265
+v -0.036321 1.030120 0.028108
+v -0.048807 1.027136 0.032353
+v -0.059055 1.023500 0.035836
+v -0.066669 1.019351 0.038425
+v -0.071358 1.014850 0.040019
+v -0.072942 1.010168 0.040557
+v -0.071358 1.005487 0.040019
+v -0.066669 1.000986 0.038425
+v -0.059055 0.996837 0.035836
+v -0.048807 0.993201 0.032353
+v -0.036321 0.990217 0.028108
+v -0.022075 0.988000 0.023265
+v -0.006617 0.986634 0.018010
+v 0.009458 1.034164 0.012545
+v -0.008404 1.033703 0.016309
+v -0.025579 1.032337 0.019929
+v -0.041408 1.030120 0.023265
+v -0.055283 1.027136 0.026189
+v -0.066669 1.023500 0.028588
+v -0.075130 1.019351 0.030371
+v -0.080340 1.014850 0.031469
+v -0.082100 1.010168 0.031840
+v -0.080340 1.005487 0.031469
+v -0.075130 1.000986 0.030371
+v -0.066669 0.996837 0.028588
+v -0.055283 0.993201 0.026189
+v -0.041408 0.990217 0.023265
+v -0.025579 0.988000 0.019929
+v -0.008404 0.986634 0.016309
+v -0.009504 1.033703 0.014464
+v -0.027737 1.032337 0.016309
+v -0.044542 1.030120 0.018010
+v -0.059271 1.027136 0.019500
+v -0.071358 1.023500 0.020724
+v -0.080340 1.019351 0.021633
+v -0.085871 1.014850 0.022193
+v -0.087739 1.010168 0.022382
+v -0.085871 1.005487 0.022192
+v -0.080340 1.000986 0.021633
+v -0.071358 0.996837 0.020724
+v -0.059271 0.993201 0.019500
+v -0.044542 0.990217 0.018010
+v -0.027737 0.988000 0.016309
+v -0.009504 0.986634 0.014464
+vn -0.811518 0.584307 0.000000
+vn -0.533006 0.846095 0.000000
+vn -0.513047 0.834559 -0.200568
+vn -0.104160 0.994537 0.000000
+vn -0.051546 0.998657 0.000031
+vn -0.050203 0.998505 -0.020386
+vn -0.165685 -0.986145 0.000000
+vn -0.244362 -0.969665 0.000000
+vn -0.161748 -0.984710 -0.064211
+vn -1.000000 0.000000 0.000000
+vn -0.767876 0.569903 -0.292459
+vn -0.165685 0.986145 0.000000
+vn -0.101688 0.993957 -0.040651
+vn -0.104160 -0.994537 0.000000
+vn -0.101688 -0.993957 -0.040620
+vn -0.811518 -0.584307 0.000000
+vn -0.767876 -0.569903 -0.292459
+vn -0.244362 0.969665 0.000000
+vn -0.161779 0.984710 -0.064211
+vn -0.051546 -0.998657 0.000000
+vn -0.050203 -0.998505 -0.020417
+vn -0.533006 -0.846095 0.000000
+vn -0.513047 -0.834559 -0.200598
+vn -0.355968 0.934477 0.000000
+vn -0.238197 0.966613 -0.094272
+vn -0.355968 -0.934477 0.000000
+vn -0.345683 -0.928373 -0.136296
+vn -0.345683 0.928373 -0.136296
+vn -0.238197 -0.966613 -0.094241
+vn -0.460768 0.804498 -0.374737
+vn -0.046510 0.998138 -0.039369
+vn -0.150700 -0.980682 -0.124516
+vn -0.937864 0.000000 -0.346965
+vn -0.662038 0.533647 -0.526200
+vn -0.094790 0.992340 -0.078829
+vn -0.094790 -0.992370 -0.078799
+vn -0.662038 -0.533647 -0.526200
+vn -0.150700 0.980682 -0.124516
+vn -0.046510 -0.998138 -0.039369
+vn -0.460738 -0.804498 -0.374737
+vn -0.220954 0.958129 -0.181921
+vn -0.317423 -0.911802 -0.260384
+vn -0.317423 0.911802 -0.260353
+vn -0.220954 -0.958129 -0.181951
+vn -0.276437 -0.888882 -0.365307
+vn -0.276437 0.888882 -0.365307
+vn -0.195044 -0.946013 -0.258797
+vn -0.390362 0.765465 -0.511521
+vn -0.041139 0.997559 -0.056124
+vn -0.133854 -0.974822 -0.178289
+vn -0.789727 0.000000 -0.613422
+vn -0.535539 0.489547 -0.688101
+vn -0.084323 0.989990 -0.113010
+vn -0.084323 -0.989990 -0.112980
+vn -0.535539 -0.489547 -0.688101
+vn -0.133854 0.974822 -0.178259
+vn -0.041139 -0.997559 -0.056124
+vn -0.390362 -0.765435 -0.511521
+vn -0.195044 0.946013 -0.258827
+vn -0.034425 -0.996918 -0.070345
+vn -0.312601 -0.726188 -0.612293
+vn -0.162603 0.932432 -0.322642
+vn -0.227241 -0.864162 -0.448927
+vn -0.227241 0.864162 -0.448927
+vn -0.162603 -0.932432 -0.322642
+vn -0.312601 0.726188 -0.612293
+vn -0.034425 0.996918 -0.070345
+vn -0.112369 -0.968108 -0.223853
+vn -0.620777 0.000000 -0.783959
+vn -0.411817 0.448561 -0.793207
+vn -0.070925 0.987274 -0.142216
+vn -0.070925 -0.987274 -0.142186
+vn -0.411817 -0.448561 -0.793176
+vn -0.112369 0.968108 -0.223853
+vn -0.055177 0.984619 -0.165685
+vn -0.055177 -0.984619 -0.165654
+vn -0.465529 0.000000 -0.885006
+vn -0.297830 -0.415754 -0.859310
+vn -0.087252 0.961608 -0.260109
+vn -0.026673 -0.996277 -0.081698
+vn -0.233192 -0.692373 -0.682791
+vn -0.125462 0.919523 -0.372417
+vn -0.173223 -0.841548 -0.511643
+vn -0.173223 0.841548 -0.511612
+vn -0.125462 -0.919523 -0.372417
+vn -0.233192 0.692373 -0.682791
+vn -0.026673 0.996277 -0.081698
+vn -0.087252 -0.961608 -0.260140
+vn -0.297830 0.415754 -0.859310
+vn -0.154454 0.667013 -0.728843
+vn -0.018159 0.995758 -0.089908
+vn -0.059511 -0.956236 -0.286386
+vn -0.330424 0.000000 -0.943815
+vn -0.193091 0.392499 -0.899228
+vn -0.037690 0.982421 -0.182775
+vn -0.037690 -0.982421 -0.182745
+vn -0.193121 -0.392499 -0.899228
+vn -0.059511 0.956236 -0.286355
+vn -0.018159 -0.995758 -0.089908
+vn -0.154454 -0.667013 -0.728843
+vn -0.085177 0.909055 -0.407819
+vn -0.116550 -0.823725 -0.554826
+vn -0.116550 0.823725 -0.554857
+vn -0.085177 -0.909055 -0.407819
+vn -0.058535 -0.812433 -0.580096
+vn -0.058535 0.812433 -0.580065
+vn -0.043031 -0.902280 -0.428938
+vn -0.076876 0.651418 -0.754784
+vn -0.009156 0.995422 -0.094852
+vn -0.030152 -0.952757 -0.302225
+vn -0.211585 0.000000 -0.977355
+vn -0.094913 0.378796 -0.920560
+vn -0.019105 0.980956 -0.193121
+vn -0.019105 -0.980956 -0.193121
+vn -0.094913 -0.378796 -0.920591
+vn -0.030152 0.952757 -0.302225
+vn -0.009156 -0.995422 -0.094821
+vn -0.076876 -0.651418 -0.754784
+vn -0.043031 0.902280 -0.428938
+vn 0.000000 -0.995331 -0.096469
+vn 0.000000 -0.646168 -0.763176
+vn 0.000000 0.899930 -0.435957
+vn 0.000000 -0.808557 -0.588366
+vn 0.000000 0.808557 -0.588366
+vn 0.000000 -0.899960 -0.435957
+vn 0.000000 0.646168 -0.763176
+vn 0.000000 0.995331 -0.096469
+vn 0.000000 -0.951537 -0.307505
+vn -0.103244 0.000000 -0.994629
+vn 0.000000 0.374279 -0.927305
+vn 0.000000 0.980468 -0.196570
+vn 0.000000 -0.980468 -0.196570
+vn 0.000000 -0.374248 -0.927305
+vn 0.000000 0.951537 -0.307505
+vn 0.030152 -0.952727 -0.302225
+vn 0.000000 0.000000 -0.999969
+vn 0.103244 0.000000 -0.994629
+vn 0.043031 0.902280 -0.428938
+vn 0.019105 -0.980956 -0.193121
+vn 0.094913 -0.378796 -0.920591
+vn 0.058535 0.812433 -0.580065
+vn 0.076876 -0.651418 -0.754784
+vn 0.076876 0.651418 -0.754784
+vn 0.058535 -0.812433 -0.580096
+vn 0.094913 0.378796 -0.920591
+vn 0.019105 0.980956 -0.193121
+vn 0.043031 -0.902280 -0.428938
+vn 0.030152 0.952757 -0.302225
+vn 0.009156 0.995422 -0.094852
+vn 0.037690 0.982421 -0.182775
+vn 0.085177 -0.909055 -0.407819
+vn 0.211585 0.000000 -0.977355
+vn 0.059511 0.956236 -0.286355
+vn 0.059511 -0.956236 -0.286386
+vn 0.085177 0.909055 -0.407819
+vn 0.009156 -0.995422 -0.094821
+vn 0.037690 -0.982421 -0.182745
+vn 0.193121 -0.392499 -0.899228
+vn 0.116550 0.823725 -0.554857
+vn 0.154454 -0.667013 -0.728843
+vn 0.154454 0.667013 -0.728813
+vn 0.116550 -0.823725 -0.554857
+vn 0.193121 0.392499 -0.899228
+vn 0.233192 0.692373 -0.682791
+vn 0.173223 -0.841548 -0.511643
+vn 0.297830 0.415754 -0.859310
+vn 0.018159 0.995758 -0.089908
+vn 0.055177 0.984619 -0.165654
+vn 0.125462 -0.919523 -0.372417
+vn 0.330424 0.000000 -0.943815
+vn 0.087252 0.961608 -0.260109
+vn 0.087252 -0.961608 -0.260109
+vn 0.125462 0.919523 -0.372417
+vn 0.018159 -0.995758 -0.089908
+vn 0.055177 -0.984619 -0.165654
+vn 0.297830 -0.415754 -0.859310
+vn 0.173223 0.841548 -0.511643
+vn 0.233192 -0.692373 -0.682791
+vn 0.411817 -0.448561 -0.793176
+vn 0.227241 0.864162 -0.448927
+vn 0.312601 -0.726188 -0.612262
+vn 0.312601 0.726188 -0.612293
+vn 0.227241 -0.864162 -0.448927
+vn 0.411817 0.448561 -0.793176
+vn 0.026673 0.996277 -0.081698
+vn 0.070925 0.987274 -0.142216
+vn 0.162603 -0.932432 -0.322642
+vn 0.465529 0.000000 -0.885006
+vn 0.112369 0.968108 -0.223853
+vn 0.112369 -0.968108 -0.223853
+vn 0.162603 0.932432 -0.322642
+vn 0.026673 -0.996277 -0.081668
+vn 0.070925 -0.987274 -0.142216
+vn 0.133854 -0.974822 -0.178289
+vn 0.620777 0.000000 -0.783959
+vn 0.195044 0.946013 -0.258797
+vn 0.034425 -0.996918 -0.070345
+vn 0.084323 -0.989990 -0.112980
+vn 0.535539 -0.489547 -0.688101
+vn 0.276437 0.888882 -0.365307
+vn 0.390362 -0.765465 -0.511521
+vn 0.390362 0.765465 -0.511521
+vn 0.276437 -0.888882 -0.365307
+vn 0.535539 0.489547 -0.688101
+vn 0.034425 0.996918 -0.070376
+vn 0.084323 0.989990 -0.113010
+vn 0.195044 -0.946013 -0.258797
+vn 0.133854 0.974822 -0.178259
+vn 0.041139 0.997559 -0.056124
+vn 0.094790 0.992370 -0.078799
+vn 0.220954 -0.958129 -0.181921
+vn 0.789727 0.000000 -0.613422
+vn 0.150700 0.980682 -0.124516
+vn 0.150700 -0.980682 -0.124546
+vn 0.220954 0.958129 -0.181921
+vn 0.041139 -0.997559 -0.056124
+vn 0.094790 -0.992370 -0.078799
+vn 0.662038 -0.533647 -0.526200
+vn 0.317423 0.911802 -0.260353
+vn 0.460738 -0.804498 -0.374737
+vn 0.460768 0.804498 -0.374737
+vn 0.317423 -0.911802 -0.260384
+vn 0.662038 0.533647 -0.526200
+vn 0.513047 0.834559 -0.200568
+vn 0.345683 -0.928373 -0.136296
+vn 0.767876 0.569903 -0.292459
+vn 0.046510 0.998138 -0.039399
+vn 0.101688 0.993957 -0.040620
+vn 0.238197 -0.966613 -0.094241
+vn 0.937864 0.000000 -0.346965
+vn 0.161779 0.984710 -0.064241
+vn 0.161748 -0.984710 -0.064241
+vn 0.238197 0.966613 -0.094241
+vn 0.046510 -0.998138 -0.039369
+vn 0.101688 -0.993957 -0.040620
+vn 0.767876 -0.569903 -0.292459
+vn 0.345683 0.928373 -0.136296
+vn 0.513047 -0.834559 -0.200598
+vn 0.811518 -0.584307 0.000000
+vn 0.355968 0.934477 0.000000
+vn 0.533006 -0.846065 0.000000
+vn 0.533006 0.846095 0.000000
+vn 0.355968 -0.934477 0.000000
+vn 0.811518 0.584307 0.000000
+vn 0.050203 0.998505 -0.020447
+vn 0.104160 0.994537 0.000000
+vn 0.244362 -0.969665 0.000000
+vn 0.165685 0.986145 0.000000
+vn 0.165685 -0.986145 0.000000
+vn 0.244362 0.969665 0.000000
+vn 0.050203 -0.998505 -0.020417
+vn 0.104160 -0.994537 0.000000
+vn 0.101688 -0.993957 0.040620
+vn 0.767876 -0.569903 0.292459
+vn 0.161779 0.984710 0.064241
+vn 0.051546 -0.998657 0.000000
+vn 0.050203 -0.998505 0.020417
+vn 0.513047 -0.834559 0.200598
+vn 0.238197 0.966613 0.094241
+vn 0.345683 -0.928373 0.136296
+vn 0.345683 0.928373 0.136296
+vn 0.238197 -0.966613 0.094241
+vn 0.513047 0.834559 0.200568
+vn 0.051546 0.998657 0.000000
+vn 0.050203 0.998505 0.020386
+vn 0.161748 -0.984710 0.064211
+vn 0.767876 0.569903 0.292459
+vn 0.101688 0.993957 0.040620
+vn 0.150700 -0.980682 0.124516
+vn 0.937864 0.000000 0.346965
+vn 0.662038 0.533647 0.526200
+vn 0.094790 0.992340 0.078829
+vn 0.094790 -0.992370 0.078799
+vn 0.662038 -0.533647 0.526200
+vn 0.150700 0.980682 0.124516
+vn 0.046510 -0.998138 0.039369
+vn 0.460738 -0.804498 0.374737
+vn 0.220954 0.958129 0.181951
+vn 0.317423 -0.911802 0.260384
+vn 0.317423 0.911802 0.260384
+vn 0.220954 -0.958129 0.181951
+vn 0.460768 0.804498 0.374737
+vn 0.046510 0.998138 0.039369
+vn 0.195044 -0.946013 0.258797
+vn 0.390362 0.765465 0.511521
+vn 0.041139 0.997559 0.056124
+vn 0.133854 -0.974822 0.178289
+vn 0.789727 0.000000 0.613422
+vn 0.535539 0.489547 0.688101
+vn 0.084323 0.989990 0.113010
+vn 0.084323 -0.989990 0.112980
+vn 0.535539 -0.489547 0.688101
+vn 0.133854 0.974822 0.178259
+vn 0.041139 -0.997559 0.056124
+vn 0.390362 -0.765465 0.511521
+vn 0.195044 0.946013 0.258797
+vn 0.276437 -0.888882 0.365307
+vn 0.276437 0.888882 0.365307
+vn 0.162603 0.932432 0.322642
+vn 0.227241 -0.864162 0.448927
+vn 0.227241 0.864162 0.448927
+vn 0.162603 -0.932432 0.322642
+vn 0.312601 0.726188 0.612293
+vn 0.034425 0.996918 0.070345
+vn 0.112369 -0.968108 0.223884
+vn 0.620777 0.000000 0.783959
+vn 0.411817 0.448561 0.793176
+vn 0.070925 0.987274 0.142216
+vn 0.070925 -0.987274 0.142186
+vn 0.411817 -0.448561 0.793176
+vn 0.112369 0.968108 0.223853
+vn 0.034425 -0.996918 0.070345
+vn 0.312601 -0.726188 0.612293
+vn 0.465529 0.000000 0.885006
+vn 0.297830 -0.415754 0.859310
+vn 0.087252 0.961608 0.260109
+vn 0.026673 -0.996277 0.081668
+vn 0.233192 -0.692373 0.682791
+vn 0.125462 0.919523 0.372417
+vn 0.173223 -0.841548 0.511643
+vn 0.173223 0.841517 0.511643
+vn 0.125462 -0.919523 0.372417
+vn 0.233192 0.692373 0.682791
+vn 0.026673 0.996277 0.081698
+vn 0.087252 -0.961608 0.260109
+vn 0.297830 0.415723 0.859310
+vn 0.055177 0.984619 0.165685
+vn 0.055177 -0.984619 0.165654
+vn 0.059511 -0.956236 0.286386
+vn 0.330393 0.000000 0.943815
+vn 0.193121 0.392499 0.899228
+vn 0.037690 0.982421 0.182775
+vn 0.037690 -0.982421 0.182775
+vn 0.193121 -0.392499 0.899228
+vn 0.059511 0.956236 0.286386
+vn 0.018159 -0.995758 0.089877
+vn 0.154454 -0.667013 0.728843
+vn 0.085177 0.909055 0.407819
+vn 0.116550 -0.823725 0.554826
+vn 0.116550 0.823725 0.554857
+vn 0.085177 -0.909055 0.407819
+vn 0.154454 0.667013 0.728843
+vn 0.018159 0.995758 0.089908
+vn 0.043031 -0.902280 0.428938
+vn 0.076876 0.651418 0.754784
+vn 0.009156 0.995422 0.094852
+vn 0.030152 -0.952757 0.302225
+vn 0.211585 0.000000 0.977355
+vn 0.094913 0.378796 0.920591
+vn 0.019105 0.980956 0.193121
+vn 0.019105 -0.980956 0.193121
+vn 0.094913 -0.378796 0.920591
+vn 0.030152 0.952727 0.302225
+vn 0.009156 -0.995422 0.094821
+vn 0.076876 -0.651418 0.754784
+vn 0.043031 0.902280 0.428938
+vn 0.058535 -0.812433 0.580065
+vn 0.058535 0.812433 0.580096
+vn 0.000000 0.899960 0.435957
+vn 0.000000 -0.808557 0.588366
+vn 0.000000 0.808557 0.588366
+vn 0.000000 -0.899930 0.435957
+vn 0.000000 0.646168 0.763176
+vn 0.000000 0.995331 0.096469
+vn 0.000000 -0.951537 0.307505
+vn 0.103244 0.000000 0.994629
+vn 0.000000 0.374279 0.927305
+vn 0.000000 0.980468 0.196570
+vn 0.000000 -0.980468 0.196570
+vn 0.000000 -0.374279 0.927305
+vn 0.000000 0.951537 0.307505
+vn 0.000000 -0.995331 0.096469
+vn 0.000000 -0.646168 0.763146
+vn 0.000000 0.000000 1.000000
+vn -0.103244 0.000000 0.994629
+vn -0.043031 0.902280 0.428938
+vn -0.019105 -0.980956 0.193121
+vn -0.094913 -0.378796 0.920591
+vn -0.058535 0.812433 0.580096
+vn -0.076876 -0.651418 0.754784
+vn -0.076876 0.651418 0.754784
+vn -0.058535 -0.812433 0.580096
+vn -0.094913 0.378796 0.920591
+vn -0.019105 0.980956 0.193121
+vn -0.043031 -0.902280 0.428938
+vn -0.030152 0.952757 0.302225
+vn -0.030152 -0.952727 0.302225
+vn -0.085177 -0.909055 0.407819
+vn -0.211585 0.000000 0.977355
+vn -0.059511 0.956236 0.286386
+vn -0.059511 -0.956236 0.286386
+vn -0.085177 0.909055 0.407819
+vn -0.009156 -0.995422 0.094821
+vn -0.037690 -0.982421 0.182745
+vn -0.193121 -0.392499 0.899228
+vn -0.116550 0.823725 0.554857
+vn -0.154454 -0.667013 0.728843
+vn -0.154454 0.667013 0.728843
+vn -0.116550 -0.823725 0.554857
+vn -0.193121 0.392499 0.899228
+vn -0.009156 0.995422 0.094852
+vn -0.037690 0.982421 0.182775
+vn -0.173223 -0.841548 0.511643
+vn -0.297830 0.415723 0.859310
+vn -0.018159 0.995758 0.089908
+vn -0.055177 0.984619 0.165685
+vn -0.125462 -0.919523 0.372417
+vn -0.330424 0.000000 0.943815
+vn -0.087252 0.961608 0.260109
+vn -0.087252 -0.961608 0.260109
+vn -0.125462 0.919523 0.372417
+vn -0.018159 -0.995758 0.089908
+vn -0.055177 -0.984619 0.165654
+vn -0.297830 -0.415754 0.859310
+vn -0.173223 0.841548 0.511643
+vn -0.233192 -0.692373 0.682760
+vn -0.233192 0.692373 0.682791
+vn -0.312601 -0.726188 0.612262
+vn -0.312601 0.726188 0.612293
+vn -0.227241 -0.864162 0.448927
+vn -0.411817 0.448561 0.793176
+vn -0.026673 0.996277 0.081698
+vn -0.070925 0.987274 0.142216
+vn -0.162603 -0.932432 0.322642
+vn -0.465529 0.000000 0.885006
+vn -0.112369 0.968108 0.223853
+vn -0.112369 -0.968108 0.223884
+vn -0.162603 0.932432 0.322642
+vn -0.026673 -0.996277 0.081698
+vn -0.070925 -0.987274 0.142247
+vn -0.411817 -0.448561 0.793176
+vn -0.227241 0.864162 0.448927
+vn -0.195044 0.946013 0.258797
+vn -0.034425 -0.996918 0.070345
+vn -0.084323 -0.989990 0.112980
+vn -0.535539 -0.489547 0.688101
+vn -0.276437 0.888882 0.365307
+vn -0.390362 -0.765465 0.511521
+vn -0.390362 0.765435 0.511521
+vn -0.276437 -0.888882 0.365307
+vn -0.535539 0.489547 0.688101
+vn -0.034425 0.996918 0.070345
+vn -0.084323 0.989990 0.113010
+vn -0.195044 -0.946013 0.258797
+vn -0.620777 0.000000 0.783959
+vn -0.133854 0.974822 0.178259
+vn -0.133854 -0.974822 0.178289
+vn -0.789727 0.000000 0.613422
+vn -0.150700 0.980682 0.124516
+vn -0.150700 -0.980682 0.124516
+vn -0.220954 0.958129 0.181921
+vn -0.041139 -0.997559 0.056124
+vn -0.094790 -0.992370 0.078799
+vn -0.662038 -0.533647 0.526200
+vn -0.317423 0.911802 0.260353
+vn -0.460738 -0.804498 0.374737
+vn -0.460738 0.804498 0.374737
+vn -0.317423 -0.911802 0.260384
+vn -0.662038 0.533647 0.526200
+vn -0.041139 0.997559 0.056093
+vn -0.094790 0.992370 0.078799
+vn -0.220954 -0.958129 0.181951
+vn -0.345683 -0.928373 0.136296
+vn -0.767876 0.569903 0.292459
+vn -0.046510 0.998138 0.039369
+vn -0.101688 0.993957 0.040620
+vn -0.238197 -0.966613 0.094241
+vn -0.937864 0.000000 0.346965
+vn -0.161779 0.984710 0.064241
+vn -0.161748 -0.984710 0.064211
+vn -0.238197 0.966613 0.094272
+vn -0.046510 -0.998138 0.039369
+vn -0.101688 -0.993957 0.040620
+vn -0.767876 -0.569903 0.292459
+vn -0.345683 0.928373 0.136296
+vn -0.513047 -0.834559 0.200568
+vn -0.513047 0.834559 0.200598
+vn -0.050203 -0.998505 0.020417
+vn -0.050203 0.998505 0.020447
+vn -0.513047 0.834559 -0.200598
+vn -0.051546 0.998657 0.000000
+vn -0.050203 0.998505 -0.020417
+vn -0.101688 -0.993957 -0.040651
+vn -0.161779 0.984710 -0.064241
+vn -0.050203 -0.998505 -0.020447
+vn -0.513047 -0.834559 -0.200568
+vn -0.460738 0.804498 -0.374737
+vn -0.094790 0.992370 -0.078799
+vn -0.220954 0.958129 -0.181951
+vn -0.317423 0.911802 -0.260384
+vn -0.220954 -0.958129 -0.181921
+vn -0.041139 0.997559 -0.056154
+vn -0.133854 -0.974822 -0.178259
+vn -0.390362 -0.765465 -0.511521
+vn -0.195044 0.946013 -0.258797
+vn -0.034425 -0.996918 -0.070376
+vn -0.312601 -0.726188 -0.612262
+vn -0.162603 -0.932432 -0.322672
+vn -0.312601 0.726188 -0.612262
+vn -0.034425 0.996918 -0.070376
+vn -0.411817 0.448561 -0.793176
+vn -0.070925 -0.987274 -0.142216
+vn -0.055177 0.984619 -0.165654
+vn -0.297830 -0.415723 -0.859310
+vn -0.173223 0.841548 -0.511643
+vn -0.087252 -0.961608 -0.260109
+vn -0.297830 0.415723 -0.859310
+vn -0.330393 0.000000 -0.943815
+vn -0.193121 0.392499 -0.899228
+vn -0.059511 0.956236 -0.286386
+vn -0.018159 -0.995758 -0.089938
+vn -0.154454 -0.667013 -0.728813
+vn -0.116550 0.823725 -0.554826
+vn -0.009156 0.995422 -0.094821
+vn -0.211554 0.000000 -0.977355
+vn -0.094913 0.378796 -0.920591
+vn -0.019105 -0.980987 -0.193121
+vn -0.030152 0.952757 -0.302194
+vn 0.000000 -0.646168 -0.763146
+vn 0.000000 0.646168 -0.763146
+vn 0.000000 -0.374279 -0.927305
+vn 0.030152 -0.952757 -0.302225
+vn 0.019105 -0.980987 -0.193121
+vn 0.058535 0.812433 -0.580096
+vn 0.059511 0.956236 -0.286386
+vn 0.154454 -0.667013 -0.728813
+vn 0.154454 0.667013 -0.728843
+vn 0.116550 -0.823725 -0.554826
+vn 0.297830 0.415723 -0.859310
+vn 0.087252 -0.961608 -0.260140
+vn 0.297830 -0.415723 -0.859310
+vn 0.312601 -0.726188 -0.612293
+vn 0.026673 -0.996277 -0.081698
+vn 0.133854 -0.974822 -0.178259
+vn 0.195044 0.946013 -0.258827
+vn 0.034425 -0.996918 -0.070376
+vn 0.276437 0.888852 -0.365307
+vn 0.535539 0.489547 -0.688131
+vn 0.034425 0.996918 -0.070345
+vn 0.084323 0.989990 -0.112980
+vn 0.041139 0.997559 -0.056154
+vn 0.220954 -0.958129 -0.181951
+vn 0.150700 -0.980682 -0.124516
+vn 0.317423 0.911802 -0.260384
+vn 0.046510 0.998138 -0.039369
+vn 0.101688 0.993957 -0.040651
+vn 0.161748 -0.984710 -0.064211
+vn 0.513047 -0.834559 -0.200568
+vn 0.533006 0.846065 0.000000
+vn 0.050203 0.998505 -0.020417
+vn 0.050203 -0.998505 -0.020447
+vn 0.101688 -0.993957 0.040651
+vn 0.050203 -0.998505 0.020447
+vn 0.513047 -0.834559 0.200568
+vn 0.513047 0.834559 0.200598
+vn 0.050203 0.998505 0.020417
+vn 0.101688 0.993957 0.040651
+vn 0.662038 0.533647 0.526231
+vn 0.094790 0.992370 0.078799
+vn 0.220954 -0.958129 0.181921
+vn 0.460738 0.804498 0.374737
+vn 0.046510 0.998138 0.039399
+vn 0.041139 0.997559 0.056154
+vn 0.133854 -0.974822 0.178259
+vn 0.133854 0.974822 0.178289
+vn 0.195044 0.946013 0.258827
+vn 0.312601 0.726188 0.612262
+vn 0.112369 -0.968108 0.223853
+vn 0.411817 0.448561 0.793207
+vn 0.070925 -0.987274 0.142216
+vn 0.034425 -0.996918 0.070376
+vn 0.312601 -0.726188 0.612262
+vn 0.297830 -0.415723 0.859310
+vn 0.026673 -0.996277 0.081698
+vn 0.173223 0.841548 0.511643
+vn 0.087252 -0.961608 0.260140
+vn 0.055177 0.984619 0.165654
+vn 0.059511 -0.956236 0.286355
+vn 0.018159 -0.995758 0.089908
+vn 0.154454 -0.667013 0.728813
+vn 0.116550 -0.823725 0.554857
+vn 0.116550 0.823725 0.554826
+vn 0.043031 -0.902280 0.428968
+vn 0.030152 0.952757 0.302225
+vn 0.058535 -0.812433 0.580096
+vn 0.000000 -0.899960 0.435957
+vn 0.000000 0.646168 0.763146
+vn -0.058535 0.812433 0.580065
+vn -0.030152 -0.952757 0.302225
+vn -0.059511 0.956236 0.286355
+vn -0.116550 0.823725 0.554826
+vn -0.154454 -0.667013 0.728813
+vn -0.173223 -0.841548 0.511612
+vn -0.018159 0.995758 0.089877
+vn -0.330393 0.000000 0.943815
+vn -0.087252 -0.961608 0.260140
+vn -0.297830 -0.415723 0.859310
+vn -0.233192 -0.692373 0.682791
+vn -0.312601 -0.726188 0.612293
+vn -0.026673 0.996277 0.081668
+vn -0.162603 -0.932432 0.322672
+vn -0.112369 -0.968108 0.223853
+vn -0.070925 -0.987274 0.142216
+vn -0.195044 0.946013 0.258827
+vn -0.034425 -0.996918 0.070315
+vn -0.390362 0.765465 0.511521
+vn -0.084323 0.989990 0.112980
+vn -0.133854 0.974822 0.178289
+vn -0.133854 -0.974822 0.178259
+vn -0.150700 0.980682 0.124546
+vn -0.220954 0.958129 0.181951
+vn -0.317454 -0.911802 0.260353
+vn -0.041139 0.997559 0.056124
+vn -0.046510 0.998138 0.039399
+vn -0.101688 0.993957 0.040651
+vn -0.238197 -0.966613 0.094272
+vn -0.238197 0.966613 0.094241
+vn -0.513047 -0.834559 0.200598
+vn -0.050203 -0.998505 0.020447
+vn -0.050203 0.998505 0.020417
+usemtl Tooth
+s 1
+f 4345//2909 4344//2910 4359//2911
+f 4340//2912 4339//2913 4354//2914
+f 4351//2915 4350//2916 4366//2917
+f 4346//2918 4345//2909 4360//2919
+f 4341//2920 4340//2912 4355//2921
+f 4352//2922 4351//2915 4367//2923
+f 4347//2924 4346//2918 4362//2925
+f 4342//2926 4341//2920 4356//2927
+f 4353//2928 4352//2922 4368//2929
+f 4348//2930 4347//2924 4363//2931
+f 4343//2932 4342//2926 4357//2933
+f 4349//2934 4348//2930 4364//2935
+f 4344//2910 4343//2932 4358//2936
+f 4350//2916 4349//2934 4365//2937
+f 4360//2919 4359//2911 4374//2938
+f 4355//2921 4354//2914 4369//2939
+f 4366//2917 4365//2937 4381//2940
+f 4361//2941 4360//2919 4375//2942
+f 4356//2927 4355//2921 4370//2943
+f 4367//2923 4366//2917 4382//2944
+f 4362//2925 4361//2941 4377//2945
+f 4357//2933 4356//2927 4371//2946
+f 4368//2929 4367//2923 4383//2947
+f 4363//2931 4362//2925 4378//2948
+f 4358//2936 4357//2933 4372//2949
+f 4364//2935 4363//2931 4379//2950
+f 4359//2911 4358//2936 4373//2951
+f 4365//2937 4364//2935 4380//2952
+f 4379//2950 4378//2948 4394//2953
+f 4374//2938 4373//2951 4388//2954
+f 4380//2952 4379//2950 4395//2955
+f 4375//2942 4374//2938 4389//2956
+f 4370//2943 4369//2939 4384//2957
+f 4381//2940 4380//2952 4396//2958
+f 4376//2959 4375//2942 4390//2960
+f 4371//2946 4370//2943 4385//2961
+f 4382//2944 4381//2940 4397//2962
+f 4377//2945 4376//2959 4392//2963
+f 4372//2949 4371//2946 4386//2964
+f 4383//2947 4382//2944 4398//2965
+f 4378//2948 4377//2945 4393//2966
+f 4373//2951 4372//2949 4387//2967
+f 4398//2965 4397//2962 4413//2968
+f 4393//2966 4392//2963 4408//2969
+f 4388//2954 4387//2967 4402//2970
+f 4394//2953 4393//2966 4409//2971
+f 4389//2956 4388//2954 4403//2972
+f 4395//2955 4394//2953 4410//2973
+f 4390//2960 4389//2956 4404//2974
+f 4385//2961 4384//2957 4399//2975
+f 4396//2958 4395//2955 4411//2976
+f 4391//2977 4390//2960 4405//2978
+f 4386//2964 4385//2961 4400//2979
+f 4397//2962 4396//2958 4412//2980
+f 4392//2963 4391//2977 4407//2981
+f 4387//2967 4386//2964 4401//2982
+f 4401//2982 4400//2979 4415//2983
+f 4412//2980 4411//2976 4427//2984
+f 4407//2981 4406//2985 4422//2986
+f 4402//2970 4401//2982 4416//2987
+f 4413//2968 4412//2980 4428//2988
+f 4408//2969 4407//2981 4423//2989
+f 4403//2972 4402//2970 4417//2990
+f 4409//2971 4408//2969 4424//2991
+f 4404//2974 4403//2972 4418//2992
+f 4410//2973 4409//2971 4425//2993
+f 4405//2978 4404//2974 4419//2994
+f 4400//2979 4399//2975 4414//2995
+f 4411//2976 4410//2973 4426//2996
+f 4406//2985 4405//2978 4420//2997
+f 4420//2997 4419//2994 4434//2998
+f 4415//2983 4414//2995 4429//2999
+f 4426//2996 4425//2993 4441//3000
+f 4421//3001 4420//2997 4435//3002
+f 4416//2987 4415//2983 4430//3003
+f 4427//2984 4426//2996 4442//3004
+f 4422//2986 4421//3001 4437//3005
+f 4417//2990 4416//2987 4431//3006
+f 4428//2988 4427//2984 4443//3007
+f 4423//2989 4422//2986 4438//3008
+f 4418//2992 4417//2990 4432//3009
+f 4424//2991 4423//2989 4439//3010
+f 4419//2994 4418//2992 4433//3011
+f 4425//2993 4424//2991 4440//3012
+f 4439//3010 4438//3008 4454//3013
+f 4434//2998 4433//3011 4448//3014
+f 4440//3012 4439//3010 4455//3015
+f 4435//3002 4434//2998 4449//3016
+f 4430//3003 4429//2999 4444//3017
+f 4441//3000 4440//3012 4456//3018
+f 4436//3019 4435//3002 4450//3020
+f 4431//3006 4430//3003 4445//3021
+f 4442//3004 4441//3000 4457//3022
+f 4437//3005 4436//3019 4452//3023
+f 4432//3009 4431//3006 4446//3024
+f 4443//3007 4442//3004 4458//3025
+f 4438//3008 4437//3005 4453//3026
+f 4433//3011 4432//3009 4447//3027
+f 4458//3025 4457//3022 4473//3028
+f 4453//3026 4452//3023 4468//3029
+f 4448//3014 4447//3027 4462//3030
+f 4454//3013 4453//3026 4469//3031
+f 4449//3016 4448//3014 4463//3032
+f 4455//3015 4454//3013 4470//3033
+f 4450//3020 4449//3016 4464//3034
+f 4445//3021 4444//3017 4459//3035
+f 4456//3018 4455//3015 4471//3036
+f 4451//3037 4450//3020 4465//3038
+f 4446//3024 4445//3021 4460//3039
+f 4457//3022 4456//3018 4472//3040
+f 4452//3023 4451//3037 4467//3041
+f 4447//3027 4446//3024 4461//3042
+f 4472//3040 4471//3036 4486//3043
+f 4467//3041 4466//3044 4481//3045
+f 4462//3030 4461//3042 4477//3046
+f 4473//3028 4472//3040 4487//3047
+f 4468//3029 4467//3041 4482//3048
+f 4463//3032 4462//3030 4478//3049
+f 4469//3031 4468//3029 4483//3050
+f 4464//3034 4463//3032 4479//3051
+f 4470//3033 4469//3031 4484//3052
+f 4465//3038 4464//3034 4480//3053
+f 4460//3039 4459//3035 4475//3054
+f 4471//3036 4470//3033 4485//3055
+f 4466//3044 4465//3038 4481//3045
+f 4461//3042 4460//3039 4476//3056
+f 4475//3054 4474//3057 4490//3058
+f 4486//3043 4485//3055 4500//3059
+f 4481//3045 4480//3053 4496//3060
+f 4476//3056 4475//3054 4491//3061
+f 4487//3047 4486//3043 4501//3062
+f 4482//3048 4481//3045 4496//3060
+f 4477//3046 4476//3056 4492//3063
+f 4488//3064 4487//3047 4502//3065
+f 4483//3050 4482//3048 4497//3066
+f 4478//3049 4477//3046 4493//3067
+f 4484//3052 4483//3050 4498//3068
+f 4479//3051 4478//3049 4494//3069
+f 4485//3055 4484//3052 4499//3070
+f 4480//3053 4479//3051 4495//3071
+f 4494//3069 4493//3067 4509//3072
+f 4500//3059 4499//3070 4514//3073
+f 4495//3071 4494//3069 4510//3074
+f 4490//3058 4489//3075 4505//3076
+f 4501//3062 4500//3059 4515//3077
+f 4496//3060 4495//3071 4511//3078
+f 4491//3061 4490//3058 4506//3079
+f 4502//3065 4501//3062 4516//3080
+f 4497//3066 4496//3060 4511//3078
+f 4492//3063 4491//3061 4507//3081
+f 4503//3082 4502//3065 4517//3083
+f 4498//3068 4497//3066 4512//3084
+f 4493//3067 4492//3063 4508//3085
+f 4499//3070 4498//3068 4513//3086
+f 4513//3086 4512//3084 4527//3087
+f 4508//3085 4507//3081 4523//3088
+f 4514//3073 4513//3086 4528//3089
+f 4509//3072 4508//3085 4524//3090
+f 4515//3077 4514//3073 4529//3091
+f 4510//3074 4509//3072 4525//3092
+f 4505//3076 4504//3093 4520//3094
+f 4516//3080 4515//3077 4530//3095
+f 4511//3078 4510//3074 4526//3096
+f 4506//3079 4505//3076 4521//3097
+f 4517//3083 4516//3080 4531//3098
+f 4512//3084 4511//3078 4526//3096
+f 4507//3081 4506//3079 4522//3099
+f 4518//3100 4517//3083 4532//3101
+f 4532//3101 4531//3098 4546//3102
+f 4527//3087 4526//3096 4541//3103
+f 4522//3099 4521//3097 4537//3104
+f 4533//3105 4532//3101 4547//3106
+f 4528//3089 4527//3087 4542//3107
+f 4523//3088 4522//3099 4538//3108
+f 4529//3091 4528//3089 4543//3109
+f 4524//3090 4523//3088 4539//3110
+f 4530//3095 4529//3091 4544//3111
+f 4525//3092 4524//3090 4540//3112
+f 4520//3094 4519//3113 4535//3114
+f 4531//3098 4530//3095 4545//3115
+f 4526//3096 4525//3092 4541//3103
+f 4521//3097 4520//3094 4536//3116
+f 4535//3114 4534//3117 4550//3118
+f 4546//3102 4545//3115 4560//3119
+f 4541//3103 4540//3112 4556//3120
+f 4536//3116 4535//3114 4551//3121
+f 4547//3106 4546//3102 4561//3122
+f 4542//3107 4541//3103 4556//3120
+f 4537//3104 4536//3116 4552//3123
+f 4548//3124 4547//3106 4562//3125
+f 4543//3109 4542//3107 4557//3126
+f 4538//3108 4537//3104 4553//3127
+f 4544//3111 4543//3109 4558//3128
+f 4539//3110 4538//3108 4554//3129
+f 4545//3115 4544//3111 4559//3130
+f 4540//3112 4539//3110 4555//3131
+f 4554//3129 4553//3127 4569//3132
+f 4560//3119 4559//3130 4574//3133
+f 4555//3131 4554//3129 4570//3134
+f 4550//3118 4549//3135 4565//3136
+f 4561//3122 4560//3119 4575//3137
+f 4556//3120 4555//3131 4571//3138
+f 4551//3121 4550//3118 4566//3139
+f 4562//3125 4561//3122 4576//3140
+f 4557//3126 4556//3120 4571//3138
+f 4552//3123 4551//3121 4567//3141
+f 4563//3142 4562//3125 4577//3143
+f 4558//3128 4557//3126 4572//3144
+f 4553//3127 4552//3123 4568//3145
+f 4559//3130 4558//3128 4573//3146
+f 4573//3146 4572//3144 4587//3147
+f 4568//3145 4567//3141 4583//3148
+f 4574//3133 4573//3146 4588//3149
+f 4569//3132 4568//3145 4584//3150
+f 4575//3137 4574//3133 4589//3151
+f 4570//3134 4569//3132 4585//3152
+f 4565//3136 4564//3153 4580//3154
+f 4576//3140 4575//3137 4590//3155
+f 4571//3138 4570//3134 4586//261
+f 4566//3139 4565//3136 4581//3156
+f 4577//3143 4576//3140 4591//3157
+f 4572//3144 4571//3138 4586//261
+f 4567//3141 4566//3139 4582//3158
+f 4578//3159 4577//3143 4592//3160
+f 4592//3160 4591//3157 4607//3161
+f 4587//3147 4586//261 4602//3162
+f 4582//3158 4581//3156 4596//3163
+f 4593//3164 4592//3160 4608//3165
+f 4588//3149 4587//3147 4603//3166
+f 4583//3148 4582//3158 4597//3167
+f 4589//3151 4588//3149 4604//3168
+f 4584//3150 4583//3148 4598//3169
+f 4590//3155 4589//3151 4605//3170
+f 4585//3152 4584//3150 4599//3171
+f 4580//3154 4579//3172 4594//3173
+f 4591//3157 4590//3155 4606//3174
+f 4586//261 4585//3152 4600//3175
+f 4581//3156 4580//3154 4595//3176
+f 4606//3174 4605//3170 4621//3177
+f 4601//3178 4600//3175 4615//3179
+f 4596//3163 4595//3176 4610//3180
+f 4607//3161 4606//3174 4622//3181
+f 4602//3162 4601//3178 4617//3182
+f 4597//3167 4596//3163 4611//3183
+f 4608//3165 4607//3161 4623//3184
+f 4603//3166 4602//3162 4618//3185
+f 4598//3169 4597//3167 4612//3186
+f 4604//3168 4603//3166 4619//3187
+f 4599//3171 4598//3169 4613//3188
+f 4605//3170 4604//3168 4620//3189
+f 4600//3175 4599//3171 4614//3190
+f 4595//3176 4594//3173 4609//3191
+f 4620//3189 4619//3187 4635//3192
+f 4615//3179 4614//3190 4629//3193
+f 4610//3180 4609//3191 4624//3194
+f 4621//3177 4620//3189 4636//3195
+f 4616//3196 4615//3179 4630//3197
+f 4611//3183 4610//3180 4625//3198
+f 4622//3181 4621//3177 4637//3199
+f 4617//3182 4616//3196 4632//3200
+f 4612//3186 4611//3183 4626//3201
+f 4623//3184 4622//3181 4638//3202
+f 4618//3185 4617//3182 4633//3203
+f 4613//3188 4612//3186 4627//3204
+f 4619//3187 4618//3185 4634//3205
+f 4614//3190 4613//3188 4628//3206
+f 4628//3206 4627//3204 4642//3207
+f 4634//3205 4633//3203 4649//3208
+f 4629//3193 4628//3206 4643//3209
+f 4635//3192 4634//3205 4650//3210
+f 4630//3197 4629//3193 4644//3211
+f 4625//3198 4624//3194 4639//3212
+f 4636//3195 4635//3192 4651//3213
+f 4631//3214 4630//3197 4645//3215
+f 4626//3201 4625//3198 4640//3216
+f 4637//3199 4636//3195 4652//3217
+f 4632//3200 4631//3214 4647//3218
+f 4627//3204 4626//3201 4641//3219
+f 4638//3202 4637//3199 4653//3220
+f 4633//3203 4632//3200 4648//3221
+f 4647//3218 4646//3222 4662//3223
+f 4642//3207 4641//3219 4656//3224
+f 4653//3220 4652//3217 4668//3225
+f 4648//3221 4647//3218 4663//3226
+f 4643//3209 4642//3207 4657//3227
+f 4649//3208 4648//3221 4664//3228
+f 4644//3211 4643//3209 4658//3229
+f 4650//3210 4649//3208 4665//3230
+f 4645//3215 4644//3211 4659//3231
+f 4640//3216 4639//3212 4654//3232
+f 4651//3213 4650//3210 4666//3233
+f 4646//3222 4645//3215 4660//3234
+f 4641//3219 4640//3216 4655//3235
+f 4652//3217 4651//3213 4667//3236
+f 4666//3233 4665//3230 4682//3237
+f 4661//3238 4660//3234 4676//3239
+f 4656//3224 4655//3235 4671//3240
+f 4667//3236 4666//3233 4683//3241
+f 4662//3223 4661//3238 4678//3242
+f 4657//3227 4656//3224 4672//3243
+f 4668//3225 4667//3236 4684//3244
+f 4663//3226 4662//3223 4679//3245
+f 4658//3229 4657//3227 4673//3246
+f 4664//3228 4663//3226 4680//3247
+f 4659//3231 4658//3229 4674//3248
+f 4665//3230 4664//3228 4681//3249
+f 4660//3234 4659//3231 4675//3250
+f 4655//3235 4654//3232 4670//3251
+f 4681//3249 4680//3247 4696//3252
+f 4676//3239 4675//3250 4690//3253
+f 4671//3240 4670//3251 4685//3254
+f 4682//3237 4681//3249 4697//3255
+f 4677//3256 4676//3239 4691//3257
+f 4672//3243 4671//3240 4686//3258
+f 4683//3241 4682//3237 4698//3259
+f 4678//3242 4677//3256 4693//3260
+f 4673//3246 4672//3243 4687//3261
+f 4684//3244 4683//3241 4699//3262
+f 4679//3245 4678//3242 4694//3263
+f 4674//3248 4673//3246 4688//3264
+f 4680//3247 4679//3245 4695//3265
+f 4675//3250 4674//3248 4689//3266
+f 4689//3266 4688//3264 4703//3267
+f 4695//3265 4694//3263 4710//3268
+f 4690//3253 4689//3266 4704//3269
+f 4696//3252 4695//3265 4711//3270
+f 4691//3257 4690//3253 4705//3271
+f 4686//3258 4685//3254 4700//3272
+f 4697//3255 4696//3252 4712//3273
+f 4692//3274 4691//3257 4706//3275
+f 4687//3261 4686//3258 4701//3276
+f 4698//3259 4697//3255 4713//3277
+f 4693//3260 4692//3274 4708//3278
+f 4688//3264 4687//3261 4702//3279
+f 4699//3262 4698//3259 4714//3280
+f 4694//3263 4693//3260 4709//3281
+f 4708//3278 4707//3282 4722//3283
+f 4703//3267 4702//3279 4718//3284
+f 4714//3280 4713//3277 4728//3285
+f 4709//3281 4708//3278 4723//3286
+f 4704//3269 4703//3267 4719//3287
+f 4710//3268 4709//3281 4724//3288
+f 4705//3271 4704//3269 4720//3289
+f 4711//3270 4710//3268 4725//3290
+f 4706//3275 4705//3271 4721//3291
+f 4701//3276 4700//3272 4716//3292
+f 4712//3273 4711//3270 4726//3293
+f 4707//3282 4706//3275 4722//3283
+f 4702//3279 4701//3276 4717//3294
+f 4713//3277 4712//3273 4727//3295
+f 4727//3295 4726//3293 4741//3296
+f 4722//3283 4721//3291 4737//3297
+f 4717//3294 4716//3292 4732//3298
+f 4728//3285 4727//3295 4742//3299
+f 4723//3286 4722//3283 4737//3297
+f 4718//3284 4717//3294 4733//3300
+f 4729//3301 4728//3285 4743//3302
+f 4724//3288 4723//3286 4738//3303
+f 4719//3287 4718//3284 4734//3304
+f 4725//3290 4724//3288 4739//3305
+f 4720//3289 4719//3287 4735//3306
+f 4726//3293 4725//3290 4740//3307
+f 4721//3291 4720//3289 4736//3308
+f 4716//3292 4715//3309 4731//3310
+f 4741//3296 4740//3307 4755//3311
+f 4736//3308 4735//3306 4751//3312
+f 4731//3310 4730//3313 4746//3314
+f 4742//3299 4741//3296 4756//3315
+f 4737//3297 4736//3308 4752//3316
+f 4732//3298 4731//3310 4747//3317
+f 4743//3302 4742//3299 4757//3318
+f 4738//3303 4737//3297 4752//3316
+f 4733//3300 4732//3298 4748//3319
+f 4744//3320 4743//3302 4758//3321
+f 4739//3305 4738//3303 4753//3322
+f 4734//3304 4733//3300 4749//3323
+f 4740//3307 4739//3305 4754//3324
+f 4735//3306 4734//3304 4750//3325
+f 4755//3311 4754//3324 4769//3326
+f 4750//3325 4749//3323 4765//3327
+f 4756//3315 4755//3311 4770//3328
+f 4751//3312 4750//3325 4766//3329
+f 4746//3314 4745//3330 4761//3331
+f 4757//3318 4756//3315 4771//3332
+f 4752//3316 4751//3312 4767//3333
+f 4747//3317 4746//3314 4762//3334
+f 4758//3321 4757//3318 4772//3335
+f 4753//3322 4752//3316 4767//3333
+f 4748//3319 4747//3317 4763//3336
+f 4759//3337 4758//3321 4773//3338
+f 4754//3324 4753//3322 4768//3339
+f 4749//3323 4748//3319 4764//3340
+f 4763//3336 4762//3334 4778//3341
+f 4774//3342 4773//3338 4788//3343
+f 4769//3326 4768//3339 4783//3344
+f 4764//3340 4763//3336 4779//3345
+f 4770//3328 4769//3326 4784//3346
+f 4765//3327 4764//3340 4780//3347
+f 4771//3332 4770//3328 4785//3348
+f 4766//3329 4765//3327 4781//3349
+f 4761//3331 4760//3350 4776//3351
+f 4772//3335 4771//3332 4786//3352
+f 4767//3333 4766//3329 4782//3353
+f 4762//3334 4761//3331 4777//3354
+f 4773//3338 4772//3335 4787//3355
+f 4768//3339 4767//3333 4782//3353
+f 4782//3353 4781//3349 4798//3356
+f 4777//3354 4776//3351 4793//3357
+f 4788//3343 4787//3355 4803//3358
+f 4783//3344 4782//3353 4798//3356
+f 4778//3341 4777//3354 4794//3359
+f 4789//3360 4788//3343 4804//3361
+f 4784//3346 4783//3344 4799//3362
+f 4779//3345 4778//3341 4795//3363
+f 4785//3348 4784//3346 4800//3364
+f 4780//3347 4779//3345 4796//3365
+f 4786//3352 4785//3348 4801//3366
+f 4781//3349 4780//3347 4797//3367
+f 4776//3351 4775//3368 4792//3369
+f 4787//3355 4786//3352 4802//3370
+f 4802//3370 4801//3366 4816//3371
+f 4797//3367 4796//3365 4812//3372
+f 4792//3369 4791//3373 4807//3374
+f 4803//3358 4802//3370 4817//3375
+f 4798//3356 4797//3367 4813//3376
+f 4793//3357 4792//3369 4808//3377
+f 4804//3361 4803//3358 4818//3378
+f 4799//3362 4798//3356 4813//3376
+f 4794//3359 4793//3357 4809//3379
+f 4805//3380 4804//3361 4819//3381
+f 4800//3364 4799//3362 4814//3382
+f 4795//3363 4794//3359 4810//3383
+f 4801//3366 4800//3364 4815//3384
+f 4796//3365 4795//3363 4811//3385
+f 4669//364 4353//2928 4368//2929
+f 4339//2913 4790//124 4354//2914
+f 4669//364 4368//2929 4383//2947
+f 4354//2914 4790//124 4369//2939
+f 4369//2939 4790//124 4384//2957
+f 4669//364 4383//2947 4398//2965
+f 4669//364 4398//2965 4413//2968
+f 4384//2957 4790//124 4399//2975
+f 4669//364 4413//2968 4428//2988
+f 4399//2975 4790//124 4414//2995
+f 4669//364 4428//2988 4443//3007
+f 4414//2995 4790//124 4429//2999
+f 4429//2999 4790//124 4444//3017
+f 4669//364 4443//3007 4458//3025
+f 4669//364 4458//3025 4473//3028
+f 4444//3017 4790//124 4459//3035
+f 4669//364 4473//3028 4488//3064
+f 4459//3035 4790//124 4474//3057
+f 4669//364 4488//3064 4503//3082
+f 4474//3057 4790//124 4489//3075
+f 4489//3075 4790//124 4504//3093
+f 4669//364 4503//3082 4518//3100
+f 4669//364 4518//3100 4533//3105
+f 4504//3093 4790//124 4519//3113
+f 4669//364 4533//3105 4548//3124
+f 4519//3113 4790//124 4534//3117
+f 4669//364 4548//3124 4563//3142
+f 4534//3117 4790//124 4549//3135
+f 4549//3135 4790//124 4564//3153
+f 4669//364 4563//3142 4578//3159
+f 4669//364 4578//3159 4593//3164
+f 4564//3153 4790//124 4579//3172
+f 4669//364 4593//3164 4608//3165
+f 4579//3172 4790//124 4594//3173
+f 4669//364 4608//3165 4623//3184
+f 4594//3173 4790//124 4609//3191
+f 4609//3191 4790//124 4624//3194
+f 4669//364 4623//3184 4638//3202
+f 4669//364 4638//3202 4653//3220
+f 4624//3194 4790//124 4639//3212
+f 4669//364 4653//3220 4668//3225
+f 4639//3212 4790//124 4654//3232
+f 4669//364 4668//3225 4684//3244
+f 4654//3232 4790//124 4670//3251
+f 4670//3251 4790//124 4685//3254
+f 4669//364 4684//3244 4699//3262
+f 4669//364 4699//3262 4714//3280
+f 4685//3254 4790//124 4700//3272
+f 4669//364 4714//3280 4729//3301
+f 4700//3272 4790//124 4715//3309
+f 4669//364 4729//3301 4744//3320
+f 4715//3309 4790//124 4730//3313
+f 4669//364 4744//3320 4759//3337
+f 4730//3313 4790//124 4745//3330
+f 4669//364 4759//3337 4774//3342
+f 4745//3330 4790//124 4760//3350
+f 4669//364 4774//3342 4789//3360
+f 4760//3350 4790//124 4775//3368
+f 4669//364 4789//3360 4805//3380
+f 4775//3368 4790//124 4791//3373
+f 4669//364 4805//3380 4820//3386
+f 4791//3373 4790//124 4806//3387
+f 4669//364 4820//3386 4353//2928
+f 4816//3371 4815//3384 4348//2930
+f 4811//3385 4810//3383 4344//2910
+f 4806//3387 4790//124 4339//2913
+f 4817//3375 4816//3371 4349//2934
+f 4812//3372 4811//3385 4345//2909
+f 4807//3374 4806//3387 4340//2912
+f 4818//3378 4817//3375 4350//2916
+f 4813//3376 4812//3372 4346//2918
+f 4808//3377 4807//3374 4341//2920
+f 4819//3381 4818//3378 4351//2915
+f 4814//3382 4813//3376 4346//2918
+f 4809//3379 4808//3377 4342//2926
+f 4820//3386 4819//3381 4352//2922
+f 4815//3384 4814//3382 4347//2924
+f 4810//3383 4809//3379 4343//2932
+f 4827//2909 4826//2910 4841//3388
+f 4822//2912 4821//3389 4836//3390
+f 4833//2915 4832//2916 4848//2917
+f 4828//5 4827//2909 4842//2919
+f 4823//2920 4822//2912 4837//2921
+f 4834//2922 4833//2915 4849//3391
+f 4829//2924 4828//5 4844//2925
+f 4824//2926 4823//2920 4838//3392
+f 4835//2928 4834//2922 4850//3393
+f 4830//2930 4829//2924 4845//3394
+f 4825//2932 4824//2926 4839//2933
+f 4831//2934 4830//2930 4846//2935
+f 4826//2910 4825//2932 4840//2936
+f 4832//2916 4831//2934 4847//2937
+f 4842//2919 4841//3388 4856//3395
+f 4837//2921 4836//3390 4851//2939
+f 4848//2917 4847//2937 4863//2940
+f 4843//2941 4842//2919 4857//2942
+f 4838//3392 4837//2921 4852//3396
+f 4849//3391 4848//2917 4864//2944
+f 4844//2925 4843//2941 4859//2945
+f 4839//2933 4838//3392 4853//2946
+f 4850//3393 4849//3391 4865//2947
+f 4845//3394 4844//2925 4860//2948
+f 4840//2936 4839//2933 4854//3397
+f 4846//2935 4845//3394 4861//2950
+f 4841//3388 4840//2936 4855//3398
+f 4847//2937 4846//2935 4862//3399
+f 4861//2950 4860//2948 4876//2953
+f 4856//3395 4855//3398 4870//2954
+f 4862//3399 4861//2950 4877//2955
+f 4857//2942 4856//3395 4871//2956
+f 4852//3396 4851//2939 4866//3400
+f 4863//2940 4862//3399 4878//3401
+f 4858//2959 4857//2942 4872//2960
+f 4853//2946 4852//3396 4867//2961
+f 4864//2944 4863//2940 4879//2962
+f 4859//2945 4858//2959 4874//2963
+f 4854//3397 4853//2946 4868//2964
+f 4865//2947 4864//2944 4880//2965
+f 4860//2948 4859//2945 4875//3402
+f 4855//3398 4854//3397 4869//3403
+f 4880//2965 4879//2962 4895//3404
+f 4875//3402 4874//2963 4890//3405
+f 4870//2954 4869//3403 4884//2970
+f 4876//2953 4875//3402 4891//2971
+f 4871//2956 4870//2954 4885//2972
+f 4877//2955 4876//2953 4892//3406
+f 4872//2960 4871//2956 4886//3407
+f 4867//2961 4866//3400 4881//3408
+f 4878//3401 4877//2955 4893//2976
+f 4873//2977 4872//2960 4887//3409
+f 4868//2964 4867//2961 4882//2979
+f 4879//2962 4878//3401 4894//3410
+f 4874//2963 4873//2977 4889//2981
+f 4869//3403 4868//2964 4883//2982
+f 4883//2982 4882//2979 4897//3411
+f 4894//3410 4893//2976 4909//2984
+f 4889//2981 4888//2985 4904//3412
+f 4884//2970 4883//2982 4898//2987
+f 4895//3404 4894//3410 4910//2988
+f 4890//3405 4889//2981 4905//2989
+f 4885//2972 4884//2970 4899//2990
+f 4891//2971 4890//3405 4906//2991
+f 4886//3407 4885//2972 4900//3413
+f 4892//3406 4891//2971 4907//2993
+f 4887//3409 4886//3407 4901//2994
+f 4882//2979 4881//3408 4896//2995
+f 4893//2976 4892//3406 4908//3414
+f 4888//2985 4887//3409 4902//3415
+f 4902//3415 4901//2994 4916//2998
+f 4897//3411 4896//2995 4911//2999
+f 4908//3414 4907//2993 4923//3000
+f 4903//3416 4902//3415 4917//3417
+f 4898//2987 4897//3411 4912//3003
+f 4909//2984 4908//3414 4924//3004
+f 4904//3412 4903//3416 4919//3005
+f 4899//2990 4898//2987 4913//3418
+f 4910//2988 4909//2984 4925//3419
+f 4905//2989 4904//3412 4920//3420
+f 4900//3413 4899//2990 4914//3009
+f 4906//2991 4905//2989 4921//3010
+f 4901//2994 4900//3413 4915//3421
+f 4907//2993 4906//2991 4922//3012
+f 4921//3010 4920//3420 4936//3013
+f 4916//2998 4915//3421 4930//3014
+f 4922//3012 4921//3010 4937//3015
+f 4917//3417 4916//2998 4931//3016
+f 4912//3003 4911//2999 4926//3422
+f 4923//3000 4922//3012 4938//3018
+f 4918//3423 4917//3417 4932//3424
+f 4913//3418 4912//3003 4927//3021
+f 4924//3004 4923//3000 4939//3425
+f 4919//3005 4918//3423 4934//3023
+f 4914//3009 4913//3418 4928//3426
+f 4925//3419 4924//3004 4940//3025
+f 4920//3420 4919//3005 4935//3026
+f 4915//3421 4914//3009 4929//3027
+f 4940//3025 4939//3425 4955//3028
+f 4935//3026 4934//3023 4950//3427
+f 4930//3014 4929//3027 4944//3030
+f 4936//3013 4935//3026 4951//3031
+f 4931//3016 4930//3014 4945//3032
+f 4937//3015 4936//3013 4952//3033
+f 4932//3424 4931//3016 4946//3428
+f 4927//3021 4926//3422 4941//3035
+f 4938//3018 4937//3015 4953//3036
+f 4933//3037 4932//3424 4947//3038
+f 4928//3426 4927//3021 4942//3039
+f 4939//3425 4938//3018 4954//3040
+f 4934//3023 4933//3037 4949//3429
+f 4929//3027 4928//3426 4943//3042
+f 4954//3040 4953//3036 4968//3430
+f 4949//3429 4948//480 4963//3045
+f 4944//3030 4943//3042 4959//3046
+f 4955//3028 4954//3040 4969//3431
+f 4950//3427 4949//3429 4964//3048
+f 4945//3032 4944//3030 4960//3432
+f 4951//3031 4950//3427 4965//3050
+f 4946//3428 4945//3032 4961//3051
+f 4952//3033 4951//3031 4966//3052
+f 4947//3038 4946//3428 4962//3053
+f 4942//3039 4941//3035 4957//3054
+f 4953//3036 4952//3033 4967//3055
+f 4948//480 4947//3038 4963//3045
+f 4943//3042 4942//3039 4958//3056
+f 4957//3054 4956//3057 4972//3058
+f 4968//3430 4967//3055 4982//3059
+f 4963//3045 4962//3053 4978//3060
+f 4958//3056 4957//3054 4973//3433
+f 4969//3431 4968//3430 4983//3062
+f 4964//3048 4963//3045 4978//3060
+f 4959//3046 4958//3056 4974//3063
+f 4970//3064 4969//3431 4984//3065
+f 4965//3050 4964//3048 4979//3066
+f 4960//3432 4959//3046 4975//3067
+f 4966//3052 4965//3050 4980//3434
+f 4961//3051 4960//3432 4976//3435
+f 4967//3055 4966//3052 4981//3436
+f 4962//3053 4961//3051 4977//3071
+f 4976//3435 4975//3067 4991//3072
+f 4982//3059 4981//3436 4996//3073
+f 4977//3071 4976//3435 4992//3437
+f 4972//3058 4971//3075 4987//3076
+f 4983//3062 4982//3059 4997//3077
+f 4978//3060 4977//3071 4993//3078
+f 4973//3433 4972//3058 4988//3079
+f 4984//3065 4983//3062 4998//3438
+f 4979//3066 4978//3060 4993//3078
+f 4974//3063 4973//3433 4989//3081
+f 4985//3082 4984//3065 4999//3083
+f 4980//3434 4979//3066 4994//3439
+f 4975//3067 4974//3063 4990//3085
+f 4981//3436 4980//3434 4995//3086
+f 4995//3086 4994//3439 5009//3087
+f 4990//3085 4989//3081 5005//3088
+f 4996//3073 4995//3086 5010//3440
+f 4991//3072 4990//3085 5006//3090
+f 4997//3077 4996//3073 5011//3091
+f 4992//3437 4991//3072 5007//3092
+f 4987//3076 4986//3093 5002//3094
+f 4998//3438 4997//3077 5012//3095
+f 4993//3078 4992//3437 5008//3096
+f 4988//3079 4987//3076 5003//3097
+f 4999//3083 4998//3438 5013//3098
+f 4994//3439 4993//3078 5008//3096
+f 4989//3081 4988//3079 5004//3099
+f 5000//3441 4999//3083 5014//3101
+f 5014//3101 5013//3098 5028//3442
+f 5009//3087 5008//3096 5023//3103
+f 5004//3099 5003//3097 5019//3443
+f 5015//3444 5014//3101 5029//3106
+f 5010//3440 5009//3087 5024//3107
+f 5005//3088 5004//3099 5020//3445
+f 5011//3091 5010//3440 5025//3109
+f 5006//3090 5005//3088 5021//3110
+f 5012//3095 5011//3091 5026//3111
+f 5007//3092 5006//3090 5022//3446
+f 5002//3094 5001//3447 5017//3448
+f 5013//3098 5012//3095 5027//3115
+f 5008//3096 5007//3092 5023//3103
+f 5003//3097 5002//3094 5018//3116
+f 5017//3448 5016//3449 5032//3118
+f 5028//3442 5027//3115 5042//3450
+f 5023//3103 5022//3446 5038//3120
+f 5018//3116 5017//3448 5033//3121
+f 5029//3106 5028//3442 5043//3451
+f 5024//3107 5023//3103 5038//3120
+f 5019//3443 5018//3116 5034//3123
+f 5030//3124 5029//3106 5044//3125
+f 5025//3109 5024//3107 5039//3126
+f 5020//3445 5019//3443 5035//3452
+f 5026//3111 5025//3109 5040//3128
+f 5021//3110 5020//3445 5036//3129
+f 5027//3115 5026//3111 5041//3130
+f 5022//3446 5021//3110 5037//3131
+f 5036//3129 5035//3452 5051//3132
+f 5042//3450 5041//3130 5056//3133
+f 5037//3131 5036//3129 5052//3134
+f 5032//3118 5031//3453 5047//3454
+f 5043//3451 5042//3450 5057//3137
+f 5038//3120 5037//3131 5053//3138
+f 5033//3121 5032//3118 5048//3139
+f 5044//3125 5043//3451 5058//3455
+f 5039//3126 5038//3120 5053//3138
+f 5034//3123 5033//3121 5049//3141
+f 5045//3142 5044//3125 5059//3143
+f 5040//3128 5039//3126 5054//3144
+f 5035//3452 5034//3123 5050//3145
+f 5041//3130 5040//3128 5055//3456
+f 5055//3456 5054//3144 5069//3147
+f 5050//3145 5049//3141 5065//3148
+f 5056//3133 5055//3456 5070//3149
+f 5051//3132 5050//3145 5066//3457
+f 5057//3137 5056//3133 5071//3151
+f 5052//3134 5051//3132 5067//3152
+f 5047//3454 5046//3458 5062//3154
+f 5058//3455 5057//3137 5072//3155
+f 5053//3138 5052//3134 5068//261
+f 5048//3139 5047//3454 5063//3156
+f 5059//3143 5058//3455 5073//3157
+f 5054//3144 5053//3138 5068//261
+f 5049//3141 5048//3139 5064//3158
+f 5060//3459 5059//3143 5074//3160
+f 5074//3160 5073//3157 5089//3460
+f 5069//3147 5068//261 5084//3162
+f 5064//3158 5063//3156 5078//3163
+f 5075//3164 5074//3160 5090//3461
+f 5070//3149 5069//3147 5085//3462
+f 5065//3148 5064//3158 5079//3167
+f 5071//3151 5070//3149 5086//3168
+f 5066//3457 5065//3148 5080//3169
+f 5072//3155 5071//3151 5087//3170
+f 5067//3152 5066//3457 5081//3463
+f 5062//3154 5061//3172 5076//3464
+f 5073//3157 5072//3155 5088//3174
+f 5068//261 5067//3152 5082//3175
+f 5063//3156 5062//3154 5077//3465
+f 5088//3174 5087//3170 5103//3177
+f 5083//3178 5082//3175 5097//3466
+f 5078//3163 5077//3465 5092//3467
+f 5089//3460 5088//3174 5104//3181
+f 5084//3162 5083//3178 5099//3182
+f 5079//3167 5078//3163 5093//3183
+f 5090//3461 5089//3460 5105//3184
+f 5085//3462 5084//3162 5100//3185
+f 5080//3169 5079//3167 5094//3186
+f 5086//3168 5085//3462 5101//3187
+f 5081//3463 5080//3169 5095//3188
+f 5087//3170 5086//3168 5102//3468
+f 5082//3175 5081//3463 5096//3469
+f 5077//3465 5076//3464 5091//3470
+f 5102//3468 5101//3187 5117//3192
+f 5097//3466 5096//3469 5111//3193
+f 5092//3467 5091//3470 5106//3471
+f 5103//3177 5102//3468 5118//3472
+f 5098//3196 5097//3466 5112//3197
+f 5093//3183 5092//3467 5107//3198
+f 5104//3181 5103//3177 5119//3199
+f 5099//3182 5098//3196 5114//3200
+f 5094//3186 5093//3183 5108//3473
+f 5105//3184 5104//3181 5120//3202
+f 5100//3185 5099//3182 5115//3203
+f 5095//3188 5094//3186 5109//3474
+f 5101//3187 5100//3185 5116//3205
+f 5096//3469 5095//3188 5110//3206
+f 5110//3206 5109//3474 5124//3207
+f 5116//3205 5115//3203 5131//3208
+f 5111//3193 5110//3206 5125//3209
+f 5117//3192 5116//3205 5132//3210
+f 5112//3197 5111//3193 5126//3475
+f 5107//3198 5106//3471 5121//3212
+f 5118//3472 5117//3192 5133//3476
+f 5113//3214 5112//3197 5127//3477
+f 5108//3473 5107//3198 5122//3216
+f 5119//3199 5118//3472 5134//3478
+f 5114//3200 5113//3214 5129//3218
+f 5109//3474 5108//3473 5123//3219
+f 5120//3202 5119//3199 5135//3479
+f 5115//3203 5114//3200 5130//3480
+f 5129//3218 5128//3222 5144//3481
+f 5124//3207 5123//3219 5138//3224
+f 5135//3479 5134//3478 5150//3482
+f 5130//3480 5129//3218 5145//3226
+f 5125//3209 5124//3207 5139//3227
+f 5131//3208 5130//3480 5146//3228
+f 5126//3475 5125//3209 5140//3483
+f 5132//3210 5131//3208 5147//3230
+f 5127//3477 5126//3475 5141//3231
+f 5122//3216 5121//3212 5136//3232
+f 5133//3476 5132//3210 5148//3484
+f 5128//3222 5127//3477 5142//3234
+f 5123//3219 5122//3216 5137//3485
+f 5134//3478 5133//3476 5149//3236
+f 5148//3484 5147//3230 5164//3486
+f 5143//3238 5142//3234 5158//3239
+f 5138//3224 5137//3485 5153//3240
+f 5149//3236 5148//3484 5165//3241
+f 5144//3481 5143//3238 5160//3242
+f 5139//3227 5138//3224 5154//3243
+f 5150//3482 5149//3236 5166//3487
+f 5145//3226 5144//3481 5161//3488
+f 5140//3483 5139//3227 5155//3246
+f 5146//3228 5145//3226 5162//3489
+f 5141//3231 5140//3483 5156//3490
+f 5147//3230 5146//3228 5163//3249
+f 5142//3234 5141//3231 5157//3250
+f 5137//3485 5136//3232 5152//3251
+f 5163//3249 5162//3489 5178//3491
+f 5158//3239 5157//3250 5172//3253
+f 5153//3240 5152//3251 5167//3254
+f 5164//3486 5163//3249 5179//3255
+f 5159//3256 5158//3239 5173//3257
+f 5154//3243 5153//3240 5168//3258
+f 5165//3241 5164//3486 5180//3259
+f 5160//3242 5159//3256 5175//3260
+f 5155//3246 5154//3243 5169//3492
+f 5166//3487 5165//3241 5181//3262
+f 5161//3488 5160//3242 5176//3263
+f 5156//3490 5155//3246 5170//3264
+f 5162//3489 5161//3488 5177//3493
+f 5157//3250 5156//3490 5171//3266
+f 5171//3266 5170//3264 5185//3267
+f 5177//3493 5176//3263 5192//3268
+f 5172//3253 5171//3266 5186//3269
+f 5178//3491 5177//3493 5193//3494
+f 5173//3257 5172//3253 5187//3495
+f 5168//3258 5167//3254 5182//3272
+f 5179//3255 5178//3491 5194//3273
+f 5174//3274 5173//3257 5188//3275
+f 5169//3492 5168//3258 5183//3276
+f 5180//3259 5179//3255 5195//3277
+f 5175//3260 5174//3274 5190//3278
+f 5170//3264 5169//3492 5184//3279
+f 5181//3262 5180//3259 5196//3280
+f 5176//3263 5175//3260 5191//3281
+f 5190//3278 5189//3282 5204//3283
+f 5185//3267 5184//3279 5200//3284
+f 5196//3280 5195//3277 5210//3285
+f 5191//3281 5190//3278 5205//3286
+f 5186//3269 5185//3267 5201//3496
+f 5192//3268 5191//3281 5206//3288
+f 5187//3495 5186//3269 5202//3289
+f 5193//3494 5192//3268 5207//3290
+f 5188//3275 5187//3495 5203//3291
+f 5183//3276 5182//3272 5198//3292
+f 5194//3273 5193//3494 5208//3293
+f 5189//3282 5188//3275 5204//3283
+f 5184//3279 5183//3276 5199//3294
+f 5195//3277 5194//3273 5209//3497
+f 5209//3497 5208//3293 5223//3296
+f 5204//3283 5203//3291 5219//3297
+f 5199//3294 5198//3292 5214//3498
+f 5210//3285 5209//3497 5224//3299
+f 5205//3286 5204//3283 5219//3297
+f 5200//3284 5199//3294 5215//3300
+f 5211//3301 5210//3285 5225//3302
+f 5206//3288 5205//3286 5220//3303
+f 5201//3496 5200//3284 5216//3499
+f 5207//3290 5206//3288 5221//3500
+f 5202//3289 5201//3496 5217//3306
+f 5208//3293 5207//3290 5222//3307
+f 5203//3291 5202//3289 5218//3308
+f 5198//3292 5197//3309 5213//3310
+f 5223//3296 5222//3307 5237//3501
+f 5218//3308 5217//3306 5233//3312
+f 5213//3310 5212//3502 5228//3314
+f 5224//3299 5223//3296 5238//3315
+f 5219//3297 5218//3308 5234//3503
+f 5214//3498 5213//3310 5229//3317
+f 5225//3302 5224//3299 5239//3504
+f 5220//3303 5219//3297 5234//3503
+f 5215//3300 5214//3498 5230//3319
+f 5226//3320 5225//3302 5240//3321
+f 5221//3500 5220//3303 5235//3505
+f 5216//3499 5215//3300 5231//3323
+f 5222//3307 5221//3500 5236//3506
+f 5217//3306 5216//3499 5232//3325
+f 5237//3501 5236//3506 5251//3507
+f 5232//3325 5231//3323 5247//3327
+f 5238//3315 5237//3501 5252//3328
+f 5233//3312 5232//3325 5248//3329
+f 5228//3314 5227//3508 5243//3331
+f 5239//3504 5238//3315 5253//3509
+f 5234//3503 5233//3312 5249//3333
+f 5229//3317 5228//3314 5244//3334
+f 5240//3321 5239//3504 5254//3510
+f 5235//3505 5234//3503 5249//3333
+f 5230//3319 5229//3317 5245//3336
+f 5241//3337 5240//3321 5255//3511
+f 5236//3506 5235//3505 5250//3339
+f 5231//3323 5230//3319 5246//3340
+f 5245//3336 5244//3334 5260//3512
+f 5256//3513 5255//3511 5270//3343
+f 5251//3507 5250//3339 5265//3344
+f 5246//3340 5245//3336 5261//3345
+f 5252//3328 5251//3507 5266//3346
+f 5247//3327 5246//3340 5262//3514
+f 5253//3509 5252//3328 5267//3348
+f 5248//3329 5247//3327 5263//3349
+f 5243//3331 5242//3350 5258//3515
+f 5254//3510 5253//3509 5268//3352
+f 5249//3333 5248//3329 5264//3353
+f 5244//3334 5243//3331 5259//3516
+f 5255//3511 5254//3510 5269//3517
+f 5250//3339 5249//3333 5264//3353
+f 5264//3353 5263//3349 5280//3356
+f 5259//3516 5258//3515 5275//3518
+f 5270//3343 5269//3517 5285//3358
+f 5265//3344 5264//3353 5280//3356
+f 5260//3512 5259//3516 5276//3519
+f 5271//3360 5270//3343 5286//3361
+f 5266//3346 5265//3344 5281//3362
+f 5261//3345 5260//3512 5277//3363
+f 5267//3348 5266//3346 5282//3364
+f 5262//3514 5261//3345 5278//3365
+f 5268//3352 5267//3348 5283//3520
+f 5263//3349 5262//3514 5279//3367
+f 5258//3515 5257//3521 5274//3369
+f 5269//3517 5268//3352 5284//3370
+f 5284//3370 5283//3520 5298//3371
+f 5279//3367 5278//3365 5294//3372
+f 5274//3369 5273//3522 5289//3523
+f 5285//3358 5284//3370 5299//3524
+f 5280//3356 5279//3367 5295//3376
+f 5275//3518 5274//3369 5290//3377
+f 5286//3361 5285//3358 5300//3378
+f 5281//3362 5280//3356 5295//3376
+f 5276//3519 5275//3518 5291//3525
+f 5287//3380 5286//3361 5301//3381
+f 5282//3364 5281//3362 5296//3382
+f 5277//3363 5276//3519 5292//3383
+f 5283//3520 5282//3364 5297//3526
+f 5278//3365 5277//3363 5293//3385
+f 5151//364 4835//2928 4850//3393
+f 4821//3389 5272//124 4836//3390
+f 5151//364 4850//3393 4865//2947
+f 4836//3390 5272//124 4851//2939
+f 4851//2939 5272//124 4866//3400
+f 5151//364 4865//2947 4880//2965
+f 5151//364 4880//2965 4895//3404
+f 4866//3400 5272//124 4881//3408
+f 5151//364 4895//3404 4910//2988
+f 4881//3408 5272//124 4896//2995
+f 5151//364 4910//2988 4925//3419
+f 4896//2995 5272//124 4911//2999
+f 4911//2999 5272//124 4926//3422
+f 5151//364 4925//3419 4940//3025
+f 5151//364 4940//3025 4955//3028
+f 4926//3422 5272//124 4941//3035
+f 5151//364 4955//3028 4970//3064
+f 4941//3035 5272//124 4956//3057
+f 5151//364 4970//3064 4985//3082
+f 4956//3057 5272//124 4971//3075
+f 4971//3075 5272//124 4986//3093
+f 5151//364 4985//3082 5000//3441
+f 5151//364 5000//3441 5015//3444
+f 4986//3093 5272//124 5001//3447
+f 5151//364 5015//3444 5030//3124
+f 5001//3447 5272//124 5016//3449
+f 5151//364 5030//3124 5045//3142
+f 5016//3449 5272//124 5031//3453
+f 5031//3453 5272//124 5046//3458
+f 5151//364 5045//3142 5060//3459
+f 5151//364 5060//3459 5075//3164
+f 5046//3458 5272//124 5061//3172
+f 5151//364 5075//3164 5090//3461
+f 5061//3172 5272//124 5076//3464
+f 5151//364 5090//3461 5105//3184
+f 5076//3464 5272//124 5091//3470
+f 5091//3470 5272//124 5106//3471
+f 5151//364 5105//3184 5120//3202
+f 5151//364 5120//3202 5135//3479
+f 5106//3471 5272//124 5121//3212
+f 5151//364 5135//3479 5150//3482
+f 5121//3212 5272//124 5136//3232
+f 5151//364 5150//3482 5166//3487
+f 5136//3232 5272//124 5152//3251
+f 5152//3251 5272//124 5167//3254
+f 5151//364 5166//3487 5181//3262
+f 5151//364 5181//3262 5196//3280
+f 5167//3254 5272//124 5182//3272
+f 5151//364 5196//3280 5211//3301
+f 5182//3272 5272//124 5197//3309
+f 5151//364 5211//3301 5226//3320
+f 5197//3309 5272//124 5212//3502
+f 5151//364 5226//3320 5241//3337
+f 5212//3502 5272//124 5227//3508
+f 5151//364 5241//3337 5256//3513
+f 5227//3508 5272//124 5242//3350
+f 5151//364 5256//3513 5271//3360
+f 5242//3350 5272//124 5257//3521
+f 5151//364 5271//3360 5287//3380
+f 5257//3521 5272//124 5273//3522
+f 5151//364 5287//3380 5302//3527
+f 5273//3522 5272//124 5288//3528
+f 5151//364 5302//3527 4835//2928
+f 5298//3371 5297//3526 4830//2930
+f 5293//3385 5292//3383 4826//2910
+f 5288//3528 5272//124 4821//3389
+f 5299//3524 5298//3371 4831//2934
+f 5294//3372 5293//3385 4827//2909
+f 5289//3523 5288//3528 4822//2912
+f 5300//3378 5299//3524 4832//2916
+f 5295//3376 5294//3372 4828//5
+f 5290//3377 5289//3523 4823//2920
+f 5301//3381 5300//3378 4833//2915
+f 5296//3382 5295//3376 4828//5
+f 5291//3525 5290//3377 4824//2926
+f 5302//3527 5301//3381 4834//2922
+f 5297//3526 5296//3382 4829//2924
+f 5292//3383 5291//3525 4825//2932
+f 4360//2919 4345//2909 4359//2911
+f 4355//2921 4340//2912 4354//2914
+f 4350//2916 4365//2937 4366//2917
+f 4361//2941 4346//2918 4360//2919
+f 4356//2927 4341//2920 4355//2921
+f 4351//2915 4366//2917 4367//2923
+f 4346//2918 4361//2941 4362//2925
+f 4357//2933 4342//2926 4356//2927
+f 4352//2922 4367//2923 4368//2929
+f 4347//2924 4362//2925 4363//2931
+f 4358//2936 4343//2932 4357//2933
+f 4348//2930 4363//2931 4364//2935
+f 4359//2911 4344//2910 4358//2936
+f 4349//2934 4364//2935 4365//2937
+f 4375//2942 4360//2919 4374//2938
+f 4370//2943 4355//2921 4369//2939
+f 4365//2937 4380//2952 4381//2940
+f 4376//2959 4361//2941 4375//2942
+f 4371//2946 4356//2927 4370//2943
+f 4366//2917 4381//2940 4382//2944
+f 4361//2941 4376//2959 4377//2945
+f 4372//2949 4357//2933 4371//2946
+f 4367//2923 4382//2944 4383//2947
+f 4362//2925 4377//2945 4378//2948
+f 4373//2951 4358//2936 4372//2949
+f 4363//2931 4378//2948 4379//2950
+f 4374//2938 4359//2911 4373//2951
+f 4364//2935 4379//2950 4380//2952
+f 4378//2948 4393//2966 4394//2953
+f 4389//2956 4374//2938 4388//2954
+f 4379//2950 4394//2953 4395//2955
+f 4390//2960 4375//2942 4389//2956
+f 4385//2961 4370//2943 4384//2957
+f 4380//2952 4395//2955 4396//2958
+f 4391//2977 4376//2959 4390//2960
+f 4386//2964 4371//2946 4385//2961
+f 4381//2940 4396//2958 4397//2962
+f 4376//2959 4391//2977 4392//2963
+f 4387//2967 4372//2949 4386//2964
+f 4382//2944 4397//2962 4398//2965
+f 4377//2945 4392//2963 4393//2966
+f 4388//2954 4373//2951 4387//2967
+f 4397//2962 4412//2980 4413//2968
+f 4392//2963 4407//2981 4408//2969
+f 4403//2972 4388//2954 4402//2970
+f 4393//2966 4408//2969 4409//2971
+f 4404//2974 4389//2956 4403//2972
+f 4394//2953 4409//2971 4410//2973
+f 4405//2978 4390//2960 4404//2974
+f 4400//2979 4385//2961 4399//2975
+f 4395//2955 4410//2973 4411//2976
+f 4406//2985 4391//2977 4405//2978
+f 4401//2982 4386//2964 4400//2979
+f 4396//2958 4411//2976 4412//2980
+f 4391//2977 4406//2985 4407//2981
+f 4402//2970 4387//2967 4401//2982
+f 4416//2987 4401//2982 4415//2983
+f 4411//2976 4426//2996 4427//2984
+f 4406//2985 4421//3001 4422//2986
+f 4417//2990 4402//2970 4416//2987
+f 4412//2980 4427//2984 4428//2988
+f 4407//2981 4422//2986 4423//2989
+f 4418//2992 4403//2972 4417//2990
+f 4408//2969 4423//2989 4424//2991
+f 4419//2994 4404//2974 4418//2992
+f 4409//2971 4424//2991 4425//2993
+f 4420//2997 4405//2978 4419//2994
+f 4415//2983 4400//2979 4414//2995
+f 4410//2973 4425//2993 4426//2996
+f 4421//3001 4406//2985 4420//2997
+f 4435//3002 4420//2997 4434//2998
+f 4430//3003 4415//2983 4429//2999
+f 4425//2993 4440//3012 4441//3000
+f 4436//3019 4421//3001 4435//3002
+f 4431//3006 4416//2987 4430//3003
+f 4426//2996 4441//3000 4442//3004
+f 4421//3001 4436//3019 4437//3005
+f 4432//3009 4417//2990 4431//3006
+f 4427//2984 4442//3004 4443//3007
+f 4422//2986 4437//3005 4438//3008
+f 4433//3011 4418//2992 4432//3009
+f 4423//2989 4438//3008 4439//3010
+f 4434//2998 4419//2994 4433//3011
+f 4424//2991 4439//3010 4440//3012
+f 4438//3008 4453//3026 4454//3013
+f 4449//3016 4434//2998 4448//3014
+f 4439//3010 4454//3013 4455//3015
+f 4450//3020 4435//3002 4449//3016
+f 4445//3021 4430//3003 4444//3017
+f 4440//3012 4455//3015 4456//3018
+f 4451//3037 4436//3019 4450//3020
+f 4446//3024 4431//3006 4445//3021
+f 4441//3000 4456//3018 4457//3022
+f 4436//3019 4451//3037 4452//3023
+f 4447//3027 4432//3009 4446//3024
+f 4442//3004 4457//3022 4458//3025
+f 4437//3005 4452//3023 4453//3026
+f 4448//3014 4433//3011 4447//3027
+f 4457//3022 4472//3040 4473//3028
+f 4452//3023 4467//3041 4468//3029
+f 4463//3032 4448//3014 4462//3030
+f 4453//3026 4468//3029 4469//3031
+f 4464//3034 4449//3016 4463//3032
+f 4454//3013 4469//3031 4470//3033
+f 4465//3038 4450//3020 4464//3034
+f 4460//3039 4445//3021 4459//3035
+f 4455//3015 4470//3033 4471//3036
+f 4466//3044 4451//3037 4465//3038
+f 4461//3042 4446//3024 4460//3039
+f 4456//3018 4471//3036 4472//3040
+f 4451//3037 4466//3044 4467//3041
+f 4462//3030 4447//3027 4461//3042
+f 4487//3047 4472//3040 4486//3043
+f 4482//3048 4467//3041 4481//3045
+f 4461//3042 4476//3056 4477//3046
+f 4488//3064 4473//3028 4487//3047
+f 4483//3050 4468//3029 4482//3048
+f 4462//3030 4477//3046 4478//3049
+f 4484//3052 4469//3031 4483//3050
+f 4463//3032 4478//3049 4479//3051
+f 4485//3055 4470//3033 4484//3052
+f 4464//3034 4479//3051 4480//3053
+f 4459//3035 4474//3057 4475//3054
+f 4486//3043 4471//3036 4485//3055
+f 4465//3038 4480//3053 4481//3045
+f 4460//3039 4475//3054 4476//3056
+f 4474//3057 4489//3075 4490//3058
+f 4501//3062 4486//3043 4500//3059
+f 4480//3053 4495//3071 4496//3060
+f 4475//3054 4490//3058 4491//3061
+f 4502//3065 4487//3047 4501//3062
+f 4497//3066 4482//3048 4496//3060
+f 4476//3056 4491//3061 4492//3063
+f 4503//3082 4488//3064 4502//3065
+f 4498//3068 4483//3050 4497//3066
+f 4477//3046 4492//3063 4493//3067
+f 4499//3070 4484//3052 4498//3068
+f 4478//3049 4493//3067 4494//3069
+f 4500//3059 4485//3055 4499//3070
+f 4479//3051 4494//3069 4495//3071
+f 4493//3067 4508//3085 4509//3072
+f 4515//3077 4500//3059 4514//3073
+f 4494//3069 4509//3072 4510//3074
+f 4489//3075 4504//3093 4505//3076
+f 4516//3080 4501//3062 4515//3077
+f 4495//3071 4510//3074 4511//3078
+f 4490//3058 4505//3076 4506//3079
+f 4517//3083 4502//3065 4516//3080
+f 4512//3084 4497//3066 4511//3078
+f 4491//3061 4506//3079 4507//3081
+f 4518//3100 4503//3082 4517//3083
+f 4513//3086 4498//3068 4512//3084
+f 4492//3063 4507//3081 4508//3085
+f 4514//3073 4499//3070 4513//3086
+f 4528//3089 4513//3086 4527//3087
+f 4507//3081 4522//3099 4523//3088
+f 4529//3091 4514//3073 4528//3089
+f 4508//3085 4523//3088 4524//3090
+f 4530//3095 4515//3077 4529//3091
+f 4509//3072 4524//3090 4525//3092
+f 4504//3093 4519//3113 4520//3094
+f 4531//3098 4516//3080 4530//3095
+f 4510//3074 4525//3092 4526//3096
+f 4505//3076 4520//3094 4521//3097
+f 4532//3101 4517//3083 4531//3098
+f 4527//3087 4512//3084 4526//3096
+f 4506//3079 4521//3097 4522//3099
+f 4533//3105 4518//3100 4532//3101
+f 4547//3106 4532//3101 4546//3102
+f 4542//3107 4527//3087 4541//3103
+f 4521//3097 4536//3116 4537//3104
+f 4548//3124 4533//3105 4547//3106
+f 4543//3109 4528//3089 4542//3107
+f 4522//3099 4537//3104 4538//3108
+f 4544//3111 4529//3091 4543//3109
+f 4523//3088 4538//3108 4539//3110
+f 4545//3115 4530//3095 4544//3111
+f 4524//3090 4539//3110 4540//3112
+f 4519//3113 4534//3117 4535//3114
+f 4546//3102 4531//3098 4545//3115
+f 4525//3092 4540//3112 4541//3103
+f 4520//3094 4535//3114 4536//3116
+f 4534//3117 4549//3135 4550//3118
+f 4561//3122 4546//3102 4560//3119
+f 4540//3112 4555//3131 4556//3120
+f 4535//3114 4550//3118 4551//3121
+f 4562//3125 4547//3106 4561//3122
+f 4557//3126 4542//3107 4556//3120
+f 4536//3116 4551//3121 4552//3123
+f 4563//3142 4548//3124 4562//3125
+f 4558//3128 4543//3109 4557//3126
+f 4537//3104 4552//3123 4553//3127
+f 4559//3130 4544//3111 4558//3128
+f 4538//3108 4553//3127 4554//3129
+f 4560//3119 4545//3115 4559//3130
+f 4539//3110 4554//3129 4555//3131
+f 4553//3127 4568//3145 4569//3132
+f 4575//3137 4560//3119 4574//3133
+f 4554//3129 4569//3132 4570//3134
+f 4549//3135 4564//3153 4565//3136
+f 4576//3140 4561//3122 4575//3137
+f 4555//3131 4570//3134 4571//3138
+f 4550//3118 4565//3136 4566//3139
+f 4577//3143 4562//3125 4576//3140
+f 4572//3144 4557//3126 4571//3138
+f 4551//3121 4566//3139 4567//3141
+f 4578//3159 4563//3142 4577//3143
+f 4573//3146 4558//3128 4572//3144
+f 4552//3123 4567//3141 4568//3145
+f 4574//3133 4559//3130 4573//3146
+f 4588//3149 4573//3146 4587//3147
+f 4567//3141 4582//3158 4583//3148
+f 4589//3151 4574//3133 4588//3149
+f 4568//3145 4583//3148 4584//3150
+f 4590//3155 4575//3137 4589//3151
+f 4569//3132 4584//3150 4585//3152
+f 4564//3153 4579//3172 4580//3154
+f 4591//3157 4576//3140 4590//3155
+f 4570//3134 4585//3152 4586//261
+f 4565//3136 4580//3154 4581//3156
+f 4592//3160 4577//3143 4591//3157
+f 4587//3147 4572//3144 4586//261
+f 4566//3139 4581//3156 4582//3158
+f 4593//3164 4578//3159 4592//3160
+f 4591//3157 4606//3174 4607//3161
+f 4586//261 4601//3178 4602//3162
+f 4597//3167 4582//3158 4596//3163
+f 4592//3160 4607//3161 4608//3165
+f 4587//3147 4602//3162 4603//3166
+f 4598//3169 4583//3148 4597//3167
+f 4588//3149 4603//3166 4604//3168
+f 4599//3171 4584//3150 4598//3169
+f 4589//3151 4604//3168 4605//3170
+f 4600//3175 4585//3152 4599//3171
+f 4595//3176 4580//3154 4594//3173
+f 4590//3155 4605//3170 4606//3174
+f 4601//3178 4586//261 4600//3175
+f 4596//3163 4581//3156 4595//3176
+f 4605//3170 4620//3189 4621//3177
+f 4616//3196 4601//3178 4615//3179
+f 4611//3183 4596//3163 4610//3180
+f 4606//3174 4621//3177 4622//3181
+f 4601//3178 4616//3196 4617//3182
+f 4612//3186 4597//3167 4611//3183
+f 4607//3161 4622//3181 4623//3184
+f 4602//3162 4617//3182 4618//3185
+f 4613//3188 4598//3169 4612//3186
+f 4603//3166 4618//3185 4619//3187
+f 4614//3190 4599//3171 4613//3188
+f 4604//3168 4619//3187 4620//3189
+f 4615//3179 4600//3175 4614//3190
+f 4610//3180 4595//3176 4609//3191
+f 4619//3187 4634//3205 4635//3192
+f 4630//3197 4615//3179 4629//3193
+f 4625//3198 4610//3180 4624//3194
+f 4620//3189 4635//3192 4636//3195
+f 4631//3214 4616//3196 4630//3197
+f 4626//3201 4611//3183 4625//3198
+f 4621//3177 4636//3195 4637//3199
+f 4616//3196 4631//3214 4632//3200
+f 4627//3204 4612//3186 4626//3201
+f 4622//3181 4637//3199 4638//3202
+f 4617//3182 4632//3200 4633//3203
+f 4628//3206 4613//3188 4627//3204
+f 4618//3185 4633//3203 4634//3205
+f 4629//3193 4614//3190 4628//3206
+f 4643//3209 4628//3206 4642//3207
+f 4633//3203 4648//3221 4649//3208
+f 4644//3211 4629//3193 4643//3209
+f 4634//3205 4649//3208 4650//3210
+f 4645//3215 4630//3197 4644//3211
+f 4640//3216 4625//3198 4639//3212
+f 4635//3192 4650//3210 4651//3213
+f 4646//3222 4631//3214 4645//3215
+f 4641//3219 4626//3201 4640//3216
+f 4636//3195 4651//3213 4652//3217
+f 4631//3214 4646//3222 4647//3218
+f 4642//3207 4627//3204 4641//3219
+f 4637//3199 4652//3217 4653//3220
+f 4632//3200 4647//3218 4648//3221
+f 4646//3222 4661//3238 4662//3223
+f 4657//3227 4642//3207 4656//3224
+f 4652//3217 4667//3236 4668//3225
+f 4647//3218 4662//3223 4663//3226
+f 4658//3229 4643//3209 4657//3227
+f 4648//3221 4663//3226 4664//3228
+f 4659//3231 4644//3211 4658//3229
+f 4649//3208 4664//3228 4665//3230
+f 4660//3234 4645//3215 4659//3231
+f 4655//3235 4640//3216 4654//3232
+f 4650//3210 4665//3230 4666//3233
+f 4661//3238 4646//3222 4660//3234
+f 4656//3224 4641//3219 4655//3235
+f 4651//3213 4666//3233 4667//3236
+f 4665//3230 4681//3249 4682//3237
+f 4677//3256 4661//3238 4676//3239
+f 4672//3243 4656//3224 4671//3240
+f 4666//3233 4682//3237 4683//3241
+f 4661//3238 4677//3256 4678//3242
+f 4673//3246 4657//3227 4672//3243
+f 4667//3236 4683//3241 4684//3244
+f 4662//3223 4678//3242 4679//3245
+f 4674//3248 4658//3229 4673//3246
+f 4663//3226 4679//3245 4680//3247
+f 4675//3250 4659//3231 4674//3248
+f 4664//3228 4680//3247 4681//3249
+f 4676//3239 4660//3234 4675//3250
+f 4671//3240 4655//3235 4670//3251
+f 4680//3247 4695//3265 4696//3252
+f 4691//3257 4676//3239 4690//3253
+f 4686//3258 4671//3240 4685//3254
+f 4681//3249 4696//3252 4697//3255
+f 4692//3274 4677//3256 4691//3257
+f 4687//3261 4672//3243 4686//3258
+f 4682//3237 4697//3255 4698//3259
+f 4677//3256 4692//3274 4693//3260
+f 4688//3264 4673//3246 4687//3261
+f 4683//3241 4698//3259 4699//3262
+f 4678//3242 4693//3260 4694//3263
+f 4689//3266 4674//3248 4688//3264
+f 4679//3245 4694//3263 4695//3265
+f 4690//3253 4675//3250 4689//3266
+f 4704//3269 4689//3266 4703//3267
+f 4694//3263 4709//3281 4710//3268
+f 4705//3271 4690//3253 4704//3269
+f 4695//3265 4710//3268 4711//3270
+f 4706//3275 4691//3257 4705//3271
+f 4701//3276 4686//3258 4700//3272
+f 4696//3252 4711//3270 4712//3273
+f 4707//3282 4692//3274 4706//3275
+f 4702//3279 4687//3261 4701//3276
+f 4697//3255 4712//3273 4713//3277
+f 4692//3274 4707//3282 4708//3278
+f 4703//3267 4688//3264 4702//3279
+f 4698//3259 4713//3277 4714//3280
+f 4693//3260 4708//3278 4709//3281
+f 4723//3286 4708//3278 4722//3283
+f 4702//3279 4717//3294 4718//3284
+f 4729//3301 4714//3280 4728//3285
+f 4724//3288 4709//3281 4723//3286
+f 4703//3267 4718//3284 4719//3287
+f 4725//3290 4710//3268 4724//3288
+f 4704//3269 4719//3287 4720//3289
+f 4726//3293 4711//3270 4725//3290
+f 4705//3271 4720//3289 4721//3291
+f 4700//3272 4715//3309 4716//3292
+f 4727//3295 4712//3273 4726//3293
+f 4706//3275 4721//3291 4722//3283
+f 4701//3276 4716//3292 4717//3294
+f 4728//3285 4713//3277 4727//3295
+f 4742//3299 4727//3295 4741//3296
+f 4721//3291 4736//3308 4737//3297
+f 4716//3292 4731//3310 4732//3298
+f 4743//3302 4728//3285 4742//3299
+f 4738//3303 4723//3286 4737//3297
+f 4717//3294 4732//3298 4733//3300
+f 4744//3320 4729//3301 4743//3302
+f 4739//3305 4724//3288 4738//3303
+f 4718//3284 4733//3300 4734//3304
+f 4740//3307 4725//3290 4739//3305
+f 4719//3287 4734//3304 4735//3306
+f 4741//3296 4726//3293 4740//3307
+f 4720//3289 4735//3306 4736//3308
+f 4715//3309 4730//3313 4731//3310
+f 4756//3315 4741//3296 4755//3311
+f 4735//3306 4750//3325 4751//3312
+f 4730//3313 4745//3330 4746//3314
+f 4757//3318 4742//3299 4756//3315
+f 4736//3308 4751//3312 4752//3316
+f 4731//3310 4746//3314 4747//3317
+f 4758//3321 4743//3302 4757//3318
+f 4753//3322 4738//3303 4752//3316
+f 4732//3298 4747//3317 4748//3319
+f 4759//3337 4744//3320 4758//3321
+f 4754//3324 4739//3305 4753//3322
+f 4733//3300 4748//3319 4749//3323
+f 4755//3311 4740//3307 4754//3324
+f 4734//3304 4749//3323 4750//3325
+f 4770//3328 4755//3311 4769//3326
+f 4749//3323 4764//3340 4765//3327
+f 4771//3332 4756//3315 4770//3328
+f 4750//3325 4765//3327 4766//3329
+f 4745//3330 4760//3350 4761//3331
+f 4772//3335 4757//3318 4771//3332
+f 4751//3312 4766//3329 4767//3333
+f 4746//3314 4761//3331 4762//3334
+f 4773//3338 4758//3321 4772//3335
+f 4768//3339 4753//3322 4767//3333
+f 4747//3317 4762//3334 4763//3336
+f 4774//3342 4759//3337 4773//3338
+f 4769//3326 4754//3324 4768//3339
+f 4748//3319 4763//3336 4764//3340
+f 4762//3334 4777//3354 4778//3341
+f 4789//3360 4774//3342 4788//3343
+f 4784//3346 4769//3326 4783//3344
+f 4763//3336 4778//3341 4779//3345
+f 4785//3348 4770//3328 4784//3346
+f 4764//3340 4779//3345 4780//3347
+f 4786//3352 4771//3332 4785//3348
+f 4765//3327 4780//3347 4781//3349
+f 4760//3350 4775//3368 4776//3351
+f 4787//3355 4772//3335 4786//3352
+f 4766//3329 4781//3349 4782//3353
+f 4761//3331 4776//3351 4777//3354
+f 4788//3343 4773//3338 4787//3355
+f 4783//3344 4768//3339 4782//3353
+f 4781//3349 4797//3367 4798//3356
+f 4776//3351 4792//3369 4793//3357
+f 4804//3361 4788//3343 4803//3358
+f 4799//3362 4783//3344 4798//3356
+f 4777//3354 4793//3357 4794//3359
+f 4805//3380 4789//3360 4804//3361
+f 4800//3364 4784//3346 4799//3362
+f 4778//3341 4794//3359 4795//3363
+f 4801//3366 4785//3348 4800//3364
+f 4779//3345 4795//3363 4796//3365
+f 4802//3370 4786//3352 4801//3366
+f 4780//3347 4796//3365 4797//3367
+f 4775//3368 4791//3373 4792//3369
+f 4803//3358 4787//3355 4802//3370
+f 4817//3375 4802//3370 4816//3371
+f 4796//3365 4811//3385 4812//3372
+f 4791//3373 4806//3387 4807//3374
+f 4818//3378 4803//3358 4817//3375
+f 4797//3367 4812//3372 4813//3376
+f 4792//3369 4807//3374 4808//3377
+f 4819//3381 4804//3361 4818//3378
+f 4814//3382 4799//3362 4813//3376
+f 4793//3357 4808//3377 4809//3379
+f 4820//3386 4805//3380 4819//3381
+f 4815//3384 4800//3364 4814//3382
+f 4794//3359 4809//3379 4810//3383
+f 4816//3371 4801//3366 4815//3384
+f 4795//3363 4810//3383 4811//3385
+f 4349//2934 4816//3371 4348//2930
+f 4810//3383 4343//2932 4344//2910
+f 4350//2916 4817//3375 4349//2934
+f 4811//3385 4344//2910 4345//2909
+f 4806//3387 4339//2913 4340//2912
+f 4351//2915 4818//3378 4350//2916
+f 4812//3372 4345//2909 4346//2918
+f 4807//3374 4340//2912 4341//2920
+f 4352//2922 4819//3381 4351//2915
+f 4347//2924 4814//3382 4346//2918
+f 4808//3377 4341//2920 4342//2926
+f 4353//2928 4820//3386 4352//2922
+f 4348//2930 4815//3384 4347//2924
+f 4809//3379 4342//2926 4343//2932
+f 4842//2919 4827//2909 4841//3388
+f 4837//2921 4822//2912 4836//3390
+f 4832//2916 4847//2937 4848//2917
+f 4843//2941 4828//5 4842//2919
+f 4838//3392 4823//2920 4837//2921
+f 4833//2915 4848//2917 4849//3391
+f 4828//5 4843//2941 4844//2925
+f 4839//2933 4824//2926 4838//3392
+f 4834//2922 4849//3391 4850//3393
+f 4829//2924 4844//2925 4845//3394
+f 4840//2936 4825//2932 4839//2933
+f 4830//2930 4845//3394 4846//2935
+f 4841//3388 4826//2910 4840//2936
+f 4831//2934 4846//2935 4847//2937
+f 4857//2942 4842//2919 4856//3395
+f 4852//3396 4837//2921 4851//2939
+f 4847//2937 4862//3399 4863//2940
+f 4858//2959 4843//2941 4857//2942
+f 4853//2946 4838//3392 4852//3396
+f 4848//2917 4863//2940 4864//2944
+f 4843//2941 4858//2959 4859//2945
+f 4854//3397 4839//2933 4853//2946
+f 4849//3391 4864//2944 4865//2947
+f 4844//2925 4859//2945 4860//2948
+f 4855//3398 4840//2936 4854//3397
+f 4845//3394 4860//2948 4861//2950
+f 4856//3395 4841//3388 4855//3398
+f 4846//2935 4861//2950 4862//3399
+f 4860//2948 4875//3402 4876//2953
+f 4871//2956 4856//3395 4870//2954
+f 4861//2950 4876//2953 4877//2955
+f 4872//2960 4857//2942 4871//2956
+f 4867//2961 4852//3396 4866//3400
+f 4862//3399 4877//2955 4878//3401
+f 4873//2977 4858//2959 4872//2960
+f 4868//2964 4853//2946 4867//2961
+f 4863//2940 4878//3401 4879//2962
+f 4858//2959 4873//2977 4874//2963
+f 4869//3403 4854//3397 4868//2964
+f 4864//2944 4879//2962 4880//2965
+f 4859//2945 4874//2963 4875//3402
+f 4870//2954 4855//3398 4869//3403
+f 4879//2962 4894//3410 4895//3404
+f 4874//2963 4889//2981 4890//3405
+f 4885//2972 4870//2954 4884//2970
+f 4875//3402 4890//3405 4891//2971
+f 4886//3407 4871//2956 4885//2972
+f 4876//2953 4891//2971 4892//3406
+f 4887//3409 4872//2960 4886//3407
+f 4882//2979 4867//2961 4881//3408
+f 4877//2955 4892//3406 4893//2976
+f 4888//2985 4873//2977 4887//3409
+f 4883//2982 4868//2964 4882//2979
+f 4878//3401 4893//2976 4894//3410
+f 4873//2977 4888//2985 4889//2981
+f 4884//2970 4869//3403 4883//2982
+f 4898//2987 4883//2982 4897//3411
+f 4893//2976 4908//3414 4909//2984
+f 4888//2985 4903//3416 4904//3412
+f 4899//2990 4884//2970 4898//2987
+f 4894//3410 4909//2984 4910//2988
+f 4889//2981 4904//3412 4905//2989
+f 4900//3413 4885//2972 4899//2990
+f 4890//3405 4905//2989 4906//2991
+f 4901//2994 4886//3407 4900//3413
+f 4891//2971 4906//2991 4907//2993
+f 4902//3415 4887//3409 4901//2994
+f 4897//3411 4882//2979 4896//2995
+f 4892//3406 4907//2993 4908//3414
+f 4903//3416 4888//2985 4902//3415
+f 4917//3417 4902//3415 4916//2998
+f 4912//3003 4897//3411 4911//2999
+f 4907//2993 4922//3012 4923//3000
+f 4918//3423 4903//3416 4917//3417
+f 4913//3418 4898//2987 4912//3003
+f 4908//3414 4923//3000 4924//3004
+f 4903//3416 4918//3423 4919//3005
+f 4914//3009 4899//2990 4913//3418
+f 4909//2984 4924//3004 4925//3419
+f 4904//3412 4919//3005 4920//3420
+f 4915//3421 4900//3413 4914//3009
+f 4905//2989 4920//3420 4921//3010
+f 4916//2998 4901//2994 4915//3421
+f 4906//2991 4921//3010 4922//3012
+f 4920//3420 4935//3026 4936//3013
+f 4931//3016 4916//2998 4930//3014
+f 4921//3010 4936//3013 4937//3015
+f 4932//3424 4917//3417 4931//3016
+f 4927//3021 4912//3003 4926//3422
+f 4922//3012 4937//3015 4938//3018
+f 4933//3037 4918//3423 4932//3424
+f 4928//3426 4913//3418 4927//3021
+f 4923//3000 4938//3018 4939//3425
+f 4918//3423 4933//3037 4934//3023
+f 4929//3027 4914//3009 4928//3426
+f 4924//3004 4939//3425 4940//3025
+f 4919//3005 4934//3023 4935//3026
+f 4930//3014 4915//3421 4929//3027
+f 4939//3425 4954//3040 4955//3028
+f 4934//3023 4949//3429 4950//3427
+f 4945//3032 4930//3014 4944//3030
+f 4935//3026 4950//3427 4951//3031
+f 4946//3428 4931//3016 4945//3032
+f 4936//3013 4951//3031 4952//3033
+f 4947//3038 4932//3424 4946//3428
+f 4942//3039 4927//3021 4941//3035
+f 4937//3015 4952//3033 4953//3036
+f 4948//480 4933//3037 4947//3038
+f 4943//3042 4928//3426 4942//3039
+f 4938//3018 4953//3036 4954//3040
+f 4933//3037 4948//480 4949//3429
+f 4944//3030 4929//3027 4943//3042
+f 4969//3431 4954//3040 4968//3430
+f 4964//3048 4949//3429 4963//3045
+f 4943//3042 4958//3056 4959//3046
+f 4970//3064 4955//3028 4969//3431
+f 4965//3050 4950//3427 4964//3048
+f 4944//3030 4959//3046 4960//3432
+f 4966//3052 4951//3031 4965//3050
+f 4945//3032 4960//3432 4961//3051
+f 4967//3055 4952//3033 4966//3052
+f 4946//3428 4961//3051 4962//3053
+f 4941//3035 4956//3057 4957//3054
+f 4968//3430 4953//3036 4967//3055
+f 4947//3038 4962//3053 4963//3045
+f 4942//3039 4957//3054 4958//3056
+f 4956//3057 4971//3075 4972//3058
+f 4983//3062 4968//3430 4982//3059
+f 4962//3053 4977//3071 4978//3060
+f 4957//3054 4972//3058 4973//3433
+f 4984//3065 4969//3431 4983//3062
+f 4979//3066 4964//3048 4978//3060
+f 4958//3056 4973//3433 4974//3063
+f 4985//3082 4970//3064 4984//3065
+f 4980//3434 4965//3050 4979//3066
+f 4959//3046 4974//3063 4975//3067
+f 4981//3436 4966//3052 4980//3434
+f 4960//3432 4975//3067 4976//3435
+f 4982//3059 4967//3055 4981//3436
+f 4961//3051 4976//3435 4977//3071
+f 4975//3067 4990//3085 4991//3072
+f 4997//3077 4982//3059 4996//3073
+f 4976//3435 4991//3072 4992//3437
+f 4971//3075 4986//3093 4987//3076
+f 4998//3438 4983//3062 4997//3077
+f 4977//3071 4992//3437 4993//3078
+f 4972//3058 4987//3076 4988//3079
+f 4999//3083 4984//3065 4998//3438
+f 4994//3439 4979//3066 4993//3078
+f 4973//3433 4988//3079 4989//3081
+f 5000//3441 4985//3082 4999//3083
+f 4995//3086 4980//3434 4994//3439
+f 4974//3063 4989//3081 4990//3085
+f 4996//3073 4981//3436 4995//3086
+f 5010//3440 4995//3086 5009//3087
+f 4989//3081 5004//3099 5005//3088
+f 5011//3091 4996//3073 5010//3440
+f 4990//3085 5005//3088 5006//3090
+f 5012//3095 4997//3077 5011//3091
+f 4991//3072 5006//3090 5007//3092
+f 4986//3093 5001//3447 5002//3094
+f 5013//3098 4998//3438 5012//3095
+f 4992//3437 5007//3092 5008//3096
+f 4987//3076 5002//3094 5003//3097
+f 5014//3101 4999//3083 5013//3098
+f 5009//3087 4994//3439 5008//3096
+f 4988//3079 5003//3097 5004//3099
+f 5015//3444 5000//3441 5014//3101
+f 5029//3106 5014//3101 5028//3442
+f 5024//3107 5009//3087 5023//3103
+f 5003//3097 5018//3116 5019//3443
+f 5030//3124 5015//3444 5029//3106
+f 5025//3109 5010//3440 5024//3107
+f 5004//3099 5019//3443 5020//3445
+f 5026//3111 5011//3091 5025//3109
+f 5005//3088 5020//3445 5021//3110
+f 5027//3115 5012//3095 5026//3111
+f 5006//3090 5021//3110 5022//3446
+f 5001//3447 5016//3449 5017//3448
+f 5028//3442 5013//3098 5027//3115
+f 5007//3092 5022//3446 5023//3103
+f 5002//3094 5017//3448 5018//3116
+f 5016//3449 5031//3453 5032//3118
+f 5043//3451 5028//3442 5042//3450
+f 5022//3446 5037//3131 5038//3120
+f 5017//3448 5032//3118 5033//3121
+f 5044//3125 5029//3106 5043//3451
+f 5039//3126 5024//3107 5038//3120
+f 5018//3116 5033//3121 5034//3123
+f 5045//3142 5030//3124 5044//3125
+f 5040//3128 5025//3109 5039//3126
+f 5019//3443 5034//3123 5035//3452
+f 5041//3130 5026//3111 5040//3128
+f 5020//3445 5035//3452 5036//3129
+f 5042//3450 5027//3115 5041//3130
+f 5021//3110 5036//3129 5037//3131
+f 5035//3452 5050//3145 5051//3132
+f 5057//3137 5042//3450 5056//3133
+f 5036//3129 5051//3132 5052//3134
+f 5031//3453 5046//3458 5047//3454
+f 5058//3455 5043//3451 5057//3137
+f 5037//3131 5052//3134 5053//3138
+f 5032//3118 5047//3454 5048//3139
+f 5059//3143 5044//3125 5058//3455
+f 5054//3144 5039//3126 5053//3138
+f 5033//3121 5048//3139 5049//3141
+f 5060//3459 5045//3142 5059//3143
+f 5055//3456 5040//3128 5054//3144
+f 5034//3123 5049//3141 5050//3145
+f 5056//3133 5041//3130 5055//3456
+f 5070//3149 5055//3456 5069//3147
+f 5049//3141 5064//3158 5065//3148
+f 5071//3151 5056//3133 5070//3149
+f 5050//3145 5065//3148 5066//3457
+f 5072//3155 5057//3137 5071//3151
+f 5051//3132 5066//3457 5067//3152
+f 5046//3458 5061//3172 5062//3154
+f 5073//3157 5058//3455 5072//3155
+f 5052//3134 5067//3152 5068//261
+f 5047//3454 5062//3154 5063//3156
+f 5074//3160 5059//3143 5073//3157
+f 5069//3147 5054//3144 5068//261
+f 5048//3139 5063//3156 5064//3158
+f 5075//3164 5060//3459 5074//3160
+f 5073//3157 5088//3174 5089//3460
+f 5068//261 5083//3178 5084//3162
+f 5079//3167 5064//3158 5078//3163
+f 5074//3160 5089//3460 5090//3461
+f 5069//3147 5084//3162 5085//3462
+f 5080//3169 5065//3148 5079//3167
+f 5070//3149 5085//3462 5086//3168
+f 5081//3463 5066//3457 5080//3169
+f 5071//3151 5086//3168 5087//3170
+f 5082//3175 5067//3152 5081//3463
+f 5077//3465 5062//3154 5076//3464
+f 5072//3155 5087//3170 5088//3174
+f 5083//3178 5068//261 5082//3175
+f 5078//3163 5063//3156 5077//3465
+f 5087//3170 5102//3468 5103//3177
+f 5098//3196 5083//3178 5097//3466
+f 5093//3183 5078//3163 5092//3467
+f 5088//3174 5103//3177 5104//3181
+f 5083//3178 5098//3196 5099//3182
+f 5094//3186 5079//3167 5093//3183
+f 5089//3460 5104//3181 5105//3184
+f 5084//3162 5099//3182 5100//3185
+f 5095//3188 5080//3169 5094//3186
+f 5085//3462 5100//3185 5101//3187
+f 5096//3469 5081//3463 5095//3188
+f 5086//3168 5101//3187 5102//3468
+f 5097//3466 5082//3175 5096//3469
+f 5092//3467 5077//3465 5091//3470
+f 5101//3187 5116//3205 5117//3192
+f 5112//3197 5097//3466 5111//3193
+f 5107//3198 5092//3467 5106//3471
+f 5102//3468 5117//3192 5118//3472
+f 5113//3214 5098//3196 5112//3197
+f 5108//3473 5093//3183 5107//3198
+f 5103//3177 5118//3472 5119//3199
+f 5098//3196 5113//3214 5114//3200
+f 5109//3474 5094//3186 5108//3473
+f 5104//3181 5119//3199 5120//3202
+f 5099//3182 5114//3200 5115//3203
+f 5110//3206 5095//3188 5109//3474
+f 5100//3185 5115//3203 5116//3205
+f 5111//3193 5096//3469 5110//3206
+f 5125//3209 5110//3206 5124//3207
+f 5115//3203 5130//3480 5131//3208
+f 5126//3475 5111//3193 5125//3209
+f 5116//3205 5131//3208 5132//3210
+f 5127//3477 5112//3197 5126//3475
+f 5122//3216 5107//3198 5121//3212
+f 5117//3192 5132//3210 5133//3476
+f 5128//3222 5113//3214 5127//3477
+f 5123//3219 5108//3473 5122//3216
+f 5118//3472 5133//3476 5134//3478
+f 5113//3214 5128//3222 5129//3218
+f 5124//3207 5109//3474 5123//3219
+f 5119//3199 5134//3478 5135//3479
+f 5114//3200 5129//3218 5130//3480
+f 5128//3222 5143//3238 5144//3481
+f 5139//3227 5124//3207 5138//3224
+f 5134//3478 5149//3236 5150//3482
+f 5129//3218 5144//3481 5145//3226
+f 5140//3483 5125//3209 5139//3227
+f 5130//3480 5145//3226 5146//3228
+f 5141//3231 5126//3475 5140//3483
+f 5131//3208 5146//3228 5147//3230
+f 5142//3234 5127//3477 5141//3231
+f 5137//3485 5122//3216 5136//3232
+f 5132//3210 5147//3230 5148//3484
+f 5143//3238 5128//3222 5142//3234
+f 5138//3224 5123//3219 5137//3485
+f 5133//3476 5148//3484 5149//3236
+f 5147//3230 5163//3249 5164//3486
+f 5159//3256 5143//3238 5158//3239
+f 5154//3243 5138//3224 5153//3240
+f 5148//3484 5164//3486 5165//3241
+f 5143//3238 5159//3256 5160//3242
+f 5155//3246 5139//3227 5154//3243
+f 5149//3236 5165//3241 5166//3487
+f 5144//3481 5160//3242 5161//3488
+f 5156//3490 5140//3483 5155//3246
+f 5145//3226 5161//3488 5162//3489
+f 5157//3250 5141//3231 5156//3490
+f 5146//3228 5162//3489 5163//3249
+f 5158//3239 5142//3234 5157//3250
+f 5153//3240 5137//3485 5152//3251
+f 5162//3489 5177//3493 5178//3491
+f 5173//3257 5158//3239 5172//3253
+f 5168//3258 5153//3240 5167//3254
+f 5163//3249 5178//3491 5179//3255
+f 5174//3274 5159//3256 5173//3257
+f 5169//3492 5154//3243 5168//3258
+f 5164//3486 5179//3255 5180//3259
+f 5159//3256 5174//3274 5175//3260
+f 5170//3264 5155//3246 5169//3492
+f 5165//3241 5180//3259 5181//3262
+f 5160//3242 5175//3260 5176//3263
+f 5171//3266 5156//3490 5170//3264
+f 5161//3488 5176//3263 5177//3493
+f 5172//3253 5157//3250 5171//3266
+f 5186//3269 5171//3266 5185//3267
+f 5176//3263 5191//3281 5192//3268
+f 5187//3495 5172//3253 5186//3269
+f 5177//3493 5192//3268 5193//3494
+f 5188//3275 5173//3257 5187//3495
+f 5183//3276 5168//3258 5182//3272
+f 5178//3491 5193//3494 5194//3273
+f 5189//3282 5174//3274 5188//3275
+f 5184//3279 5169//3492 5183//3276
+f 5179//3255 5194//3273 5195//3277
+f 5174//3274 5189//3282 5190//3278
+f 5185//3267 5170//3264 5184//3279
+f 5180//3259 5195//3277 5196//3280
+f 5175//3260 5190//3278 5191//3281
+f 5205//3286 5190//3278 5204//3283
+f 5184//3279 5199//3294 5200//3284
+f 5211//3301 5196//3280 5210//3285
+f 5206//3288 5191//3281 5205//3286
+f 5185//3267 5200//3284 5201//3496
+f 5207//3290 5192//3268 5206//3288
+f 5186//3269 5201//3496 5202//3289
+f 5208//3293 5193//3494 5207//3290
+f 5187//3495 5202//3289 5203//3291
+f 5182//3272 5197//3309 5198//3292
+f 5209//3497 5194//3273 5208//3293
+f 5188//3275 5203//3291 5204//3283
+f 5183//3276 5198//3292 5199//3294
+f 5210//3285 5195//3277 5209//3497
+f 5224//3299 5209//3497 5223//3296
+f 5203//3291 5218//3308 5219//3297
+f 5198//3292 5213//3310 5214//3498
+f 5225//3302 5210//3285 5224//3299
+f 5220//3303 5205//3286 5219//3297
+f 5199//3294 5214//3498 5215//3300
+f 5226//3320 5211//3301 5225//3302
+f 5221//3500 5206//3288 5220//3303
+f 5200//3284 5215//3300 5216//3499
+f 5222//3307 5207//3290 5221//3500
+f 5201//3496 5216//3499 5217//3306
+f 5223//3296 5208//3293 5222//3307
+f 5202//3289 5217//3306 5218//3308
+f 5197//3309 5212//3502 5213//3310
+f 5238//3315 5223//3296 5237//3501
+f 5217//3306 5232//3325 5233//3312
+f 5212//3502 5227//3508 5228//3314
+f 5239//3504 5224//3299 5238//3315
+f 5218//3308 5233//3312 5234//3503
+f 5213//3310 5228//3314 5229//3317
+f 5240//3321 5225//3302 5239//3504
+f 5235//3505 5220//3303 5234//3503
+f 5214//3498 5229//3317 5230//3319
+f 5241//3337 5226//3320 5240//3321
+f 5236//3506 5221//3500 5235//3505
+f 5215//3300 5230//3319 5231//3323
+f 5237//3501 5222//3307 5236//3506
+f 5216//3499 5231//3323 5232//3325
+f 5252//3328 5237//3501 5251//3507
+f 5231//3323 5246//3340 5247//3327
+f 5253//3509 5238//3315 5252//3328
+f 5232//3325 5247//3327 5248//3329
+f 5227//3508 5242//3350 5243//3331
+f 5254//3510 5239//3504 5253//3509
+f 5233//3312 5248//3329 5249//3333
+f 5228//3314 5243//3331 5244//3334
+f 5255//3511 5240//3321 5254//3510
+f 5250//3339 5235//3505 5249//3333
+f 5229//3317 5244//3334 5245//3336
+f 5256//3513 5241//3337 5255//3511
+f 5251//3507 5236//3506 5250//3339
+f 5230//3319 5245//3336 5246//3340
+f 5244//3334 5259//3516 5260//3512
+f 5271//3360 5256//3513 5270//3343
+f 5266//3346 5251//3507 5265//3344
+f 5245//3336 5260//3512 5261//3345
+f 5267//3348 5252//3328 5266//3346
+f 5246//3340 5261//3345 5262//3514
+f 5268//3352 5253//3509 5267//3348
+f 5247//3327 5262//3514 5263//3349
+f 5242//3350 5257//3521 5258//3515
+f 5269//3517 5254//3510 5268//3352
+f 5248//3329 5263//3349 5264//3353
+f 5243//3331 5258//3515 5259//3516
+f 5270//3343 5255//3511 5269//3517
+f 5265//3344 5250//3339 5264//3353
+f 5263//3349 5279//3367 5280//3356
+f 5258//3515 5274//3369 5275//3518
+f 5286//3361 5270//3343 5285//3358
+f 5281//3362 5265//3344 5280//3356
+f 5259//3516 5275//3518 5276//3519
+f 5287//3380 5271//3360 5286//3361
+f 5282//3364 5266//3346 5281//3362
+f 5260//3512 5276//3519 5277//3363
+f 5283//3520 5267//3348 5282//3364
+f 5261//3345 5277//3363 5278//3365
+f 5284//3370 5268//3352 5283//3520
+f 5262//3514 5278//3365 5279//3367
+f 5257//3521 5273//3522 5274//3369
+f 5285//3358 5269//3517 5284//3370
+f 5299//3524 5284//3370 5298//3371
+f 5278//3365 5293//3385 5294//3372
+f 5273//3522 5288//3528 5289//3523
+f 5300//3378 5285//3358 5299//3524
+f 5279//3367 5294//3372 5295//3376
+f 5274//3369 5289//3523 5290//3377
+f 5301//3381 5286//3361 5300//3378
+f 5296//3382 5281//3362 5295//3376
+f 5275//3518 5290//3377 5291//3525
+f 5302//3527 5287//3380 5301//3381
+f 5297//3526 5282//3364 5296//3382
+f 5276//3519 5291//3525 5292//3383
+f 5298//3371 5283//3520 5297//3526
+f 5277//3363 5292//3383 5293//3385
+f 4831//2934 5298//3371 4830//2930
+f 5292//3383 4825//2932 4826//2910
+f 4832//2916 5299//3524 4831//2934
+f 5293//3385 4826//2910 4827//2909
+f 5288//3528 4821//3389 4822//2912
+f 4833//2915 5300//3378 4832//2916
+f 5294//3372 4827//2909 4828//5
+f 5289//3523 4822//2912 4823//2920
+f 4834//2922 5301//3381 4833//2915
+f 4829//2924 5296//3382 4828//5
+f 5290//3377 4823//2920 4824//2926
+f 4835//2928 5302//3527 4834//2922
+f 4830//2930 5297//3526 4829//2924
+f 5291//3525 4824//2926 4825//2932
+o Ear_R_Sphere.008
+v -0.942135 0.123766 -0.790557
+v -0.971285 0.138857 -0.773109
+v -1.001178 0.167463 -0.755604
+v -1.023476 0.202632 -0.742670
+v -1.050742 0.188359 -0.726125
+v -1.065738 0.156697 -0.716845
+v -1.074973 0.122343 -0.711131
+v -1.078091 0.086615 -0.709202
+v -1.074973 0.050887 -0.711131
+v -1.065738 0.016532 -0.716845
+v -1.050742 -0.015129 -0.726125
+v -1.030561 -0.042881 -0.738613
+v -1.005970 -0.065656 -0.753829
+v -0.977914 -0.082579 -0.771190
+v -0.947472 -0.093001 -0.790027
+v -0.944261 0.123101 -0.795974
+v -0.975586 0.137204 -0.783938
+v -1.007664 0.166926 -0.771946
+v -1.030584 0.203090 -0.763045
+v -1.060842 0.188359 -0.751290
+v -1.076960 0.156697 -0.744808
+v -1.086886 0.122343 -0.740816
+v -1.090238 0.086615 -0.739468
+v -1.086886 0.050887 -0.740816
+v -1.076960 0.016532 -0.744808
+v -1.060842 -0.015129 -0.751290
+v -1.039150 -0.042881 -0.760014
+v -1.012718 -0.065656 -0.770644
+v -0.982563 -0.082579 -0.782772
+v -0.949842 -0.093001 -0.795932
+v -0.945127 0.122652 -0.801955
+v -0.977082 0.135311 -0.795837
+v -1.008829 0.160888 -0.789698
+v -1.033925 0.195448 -0.784816
+v -1.065368 0.188359 -0.778698
+v -1.081990 0.156697 -0.775261
+v -1.092225 0.122343 -0.773145
+v -1.095681 0.086615 -0.772431
+v -1.092225 0.050887 -0.773145
+v -1.081990 0.016532 -0.775261
+v -1.065368 -0.015129 -0.778698
+v -1.042999 -0.042881 -0.783322
+v -1.015743 -0.065656 -0.788957
+v -0.984646 -0.082579 -0.795386
+v -0.950904 -0.093001 -0.802362
+v -0.944911 0.122893 -0.808257
+v -0.976676 0.135723 -0.808342
+v -1.008549 0.161499 -0.808326
+v -1.033513 0.196247 -0.807634
+v -1.064147 0.188359 -0.807293
+v -1.080633 0.156697 -0.807035
+v -1.090785 0.122343 -0.806876
+v -1.094213 0.086615 -0.806822
+v -1.090785 0.050887 -0.806876
+v -1.080633 0.016532 -0.807035
+v -1.064147 -0.015129 -0.807293
+v -1.041961 -0.042881 -0.807641
+v -1.014927 -0.065656 -0.808064
+v -0.984084 -0.082579 -0.808547
+v -0.950617 -0.093001 -0.809072
+v -0.943535 0.123924 -0.814504
+v -0.973927 0.138486 -0.820733
+v -1.005204 0.165323 -0.826896
+v -1.030109 0.201373 -0.830949
+v -1.057226 0.188359 -0.835978
+v -1.072942 0.156697 -0.838908
+v -1.082621 0.122343 -0.840712
+v -1.085889 0.086615 -0.841321
+v -1.082621 0.050887 -0.840712
+v -1.072942 0.016532 -0.838908
+v -1.057226 -0.015129 -0.835978
+v -1.036075 -0.042881 -0.832035
+v -1.010302 -0.065656 -0.827231
+v -0.980898 -0.082579 -0.821750
+v -0.948993 -0.093001 -0.815802
+v -0.940978 0.125439 -0.820358
+v -0.968637 0.142257 -0.832291
+v -0.996932 0.172381 -0.843906
+v -1.025553 0.216049 -0.855564
+v -1.044870 0.188359 -0.863650
+v -1.059213 0.156697 -0.869655
+v -1.068046 0.122343 -0.873353
+v -1.071028 0.086615 -0.874601
+v -1.068046 0.050887 -0.873353
+v -1.059213 0.016532 -0.869655
+v -1.044870 -0.015129 -0.863650
+v -1.025567 -0.042881 -0.855568
+v -1.002046 -0.065656 -0.845720
+v -0.975212 -0.082579 -0.834485
+v -0.946094 -0.093001 -0.822295
+v -0.937450 0.126946 -0.825647
+v -0.961464 0.145298 -0.842862
+v -0.986055 0.174750 -0.860010
+v -1.010841 0.216110 -0.877335
+v -1.027555 0.188359 -0.889245
+v -1.039974 0.156697 -0.898095
+v -1.047621 0.122343 -0.903544
+v -1.050203 0.086615 -0.905385
+v -1.047621 0.050887 -0.903544
+v -1.039974 0.016532 -0.898095
+v -1.027555 -0.015129 -0.889245
+v -1.010841 -0.042881 -0.877335
+v -0.990476 -0.065656 -0.862823
+v -0.967242 -0.082579 -0.846266
+v -0.942032 -0.093001 -0.828300
+v -0.933134 0.128348 -0.830246
+v -0.952672 0.148285 -0.852147
+v -0.972676 0.179365 -0.874011
+v -0.992464 0.216111 -0.896500
+v -1.005945 0.188359 -0.911780
+v -1.015962 0.156697 -0.923135
+v -1.022131 0.122343 -0.930127
+v -1.024214 0.086615 -0.932487
+v -1.022131 0.050887 -0.930127
+v -1.015962 0.016532 -0.923135
+v -1.005945 -0.015129 -0.911780
+v -0.992464 -0.042881 -0.896500
+v -0.976037 -0.065656 -0.877880
+v -0.957296 -0.082579 -0.856637
+v -0.936961 -0.093001 -0.833588
+v -0.928187 0.129502 -0.834049
+v -0.942604 0.150704 -0.859907
+v -0.957388 0.183964 -0.885989
+v -0.971141 0.216109 -0.912325
+v -0.980872 0.188359 -0.930389
+v -0.988102 0.156697 -0.943812
+v -0.992555 0.122343 -0.952078
+v -0.994059 0.086615 -0.954869
+v -0.992555 0.050887 -0.952078
+v -0.988103 0.016532 -0.943812
+v -0.980872 -0.015129 -0.930389
+v -0.971141 -0.042881 -0.912325
+v -0.959284 -0.065656 -0.890314
+v -0.945756 -0.082579 -0.865202
+v -0.931078 -0.093001 -0.837954
+v -0.922745 0.129042 -0.837001
+v -0.931452 0.151400 -0.865836
+v -0.940188 0.184892 -0.895103
+v -0.947692 0.216111 -0.924204
+v -0.953298 0.188359 -0.944357
+v -0.957465 0.156697 -0.959332
+v -0.960030 0.122343 -0.968554
+v -0.960896 0.086615 -0.971668
+v -0.960030 0.050887 -0.968554
+v -0.957465 0.016532 -0.959332
+v -0.953298 -0.015129 -0.944357
+v -0.947692 -0.042881 -0.924204
+v -0.940860 -0.065656 -0.899647
+v -0.933066 -0.082579 -0.871631
+v -0.924609 -0.093001 -0.841231
+v -0.916880 0.128290 -0.838922
+v -0.919681 0.151673 -0.869631
+v -0.922271 0.186622 -0.900985
+v -0.923018 0.216110 -0.931679
+v -0.924285 0.188359 -0.953147
+v -0.925226 0.156697 -0.969099
+v -0.925806 0.122343 -0.978922
+v -0.926002 0.086615 -0.982239
+v -0.925806 0.050887 -0.978922
+v -0.925226 0.016532 -0.969099
+v -0.924285 -0.015129 -0.953147
+v -0.923018 -0.042881 -0.931679
+v -0.921474 -0.065656 -0.905521
+v -0.919712 -0.082579 -0.875677
+v -0.917801 -0.093001 -0.843294
+v -0.910856 0.127918 -0.839532
+v -0.907678 0.150681 -0.871020
+v -0.904089 0.185445 -0.903392
+v -0.898066 0.216110 -0.934464
+v -0.894945 0.188359 -0.956421
+v -0.892626 0.156697 -0.972737
+v -0.891198 0.122343 -0.982784
+v -0.890715 0.086615 -0.986177
+v -0.891198 0.050887 -0.982784
+v -0.892626 0.016532 -0.972737
+v -0.894945 -0.015129 -0.956421
+v -0.898066 -0.042881 -0.934464
+v -0.901870 -0.065656 -0.907708
+v -0.906209 -0.082579 -0.877184
+v -0.910917 -0.093001 -0.844062
+v -0.904956 0.127171 -0.838878
+v -0.895610 0.147650 -0.869788
+v -0.885492 0.179325 -0.901411
+v -0.873797 0.216110 -0.932450
+v -0.866408 0.188359 -0.954054
+v -0.860917 0.156697 -0.970107
+v -0.857535 0.122343 -0.979992
+v -0.856394 0.086615 -0.983330
+v -0.857535 0.050887 -0.979992
+v -0.860917 0.016532 -0.970107
+v -0.866408 -0.015129 -0.954054
+v -0.873797 -0.042881 -0.932450
+v -0.882801 -0.065656 -0.906127
+v -0.893074 -0.082579 -0.876094
+v -0.904221 -0.093001 -0.843507
+v -0.899294 0.127919 -0.836889
+v -0.884081 0.144468 -0.866086
+v -0.868120 0.174695 -0.895671
+v -0.851143 0.216110 -0.925717
+v -0.839769 0.188359 -0.946136
+v -0.831317 0.156697 -0.961308
+v -0.826113 0.122343 -0.970652
+v -0.824355 0.086615 -0.973807
+v -0.826113 0.050887 -0.970652
+v -0.831317 0.016532 -0.961308
+v -0.839769 -0.015129 -0.946136
+v -0.851143 -0.042881 -0.925717
+v -0.865002 -0.065656 -0.900836
+v -0.880814 -0.082579 -0.872450
+v -0.897971 -0.093001 -0.841649
+v -0.894021 0.126810 -0.833847
+v -0.873585 0.143014 -0.860071
+v -0.852517 0.173311 -0.886802
+v -0.830973 0.216110 -0.914521
+v -0.816052 0.188359 -0.932971
+v -0.804965 0.156697 -0.946681
+v -0.798137 0.122343 -0.955123
+v -0.795832 0.086615 -0.957974
+v -0.798137 0.050887 -0.955123
+v -0.804965 0.016532 -0.946681
+v -0.816052 -0.015129 -0.932971
+v -0.830973 -0.042881 -0.914521
+v -0.849155 -0.065656 -0.892040
+v -0.869898 -0.082579 -0.866391
+v -0.892406 -0.093001 -0.838560
+v -0.889469 0.126849 -0.829710
+v -0.864688 0.144003 -0.851969
+v -0.839410 0.174862 -0.874905
+v -0.814065 0.216110 -0.899294
+v -0.796169 0.188359 -0.915066
+v -0.782872 0.156697 -0.926786
+v -0.774684 0.122343 -0.934003
+v -0.771919 0.086615 -0.936440
+v -0.774684 0.050887 -0.934003
+v -0.782872 0.016532 -0.926786
+v -0.796169 -0.015129 -0.915066
+v -0.814065 -0.042881 -0.899294
+v -0.835870 -0.065656 -0.880076
+v -0.860747 -0.082579 -0.858150
+v -0.887741 -0.093001 -0.834359
+v -0.885964 0.128240 -0.824736
+v -0.857824 0.146043 -0.842318
+v -0.829233 0.178931 -0.860559
+v -0.801066 0.216110 -0.880621
+v -0.780884 0.188359 -0.893109
+v -0.765888 0.156697 -0.902389
+v -0.756654 0.122343 -0.908103
+v -0.753536 0.086615 -0.910032
+v -0.756654 0.050887 -0.908103
+v -0.765888 0.016532 -0.902389
+v -0.780884 -0.015129 -0.893109
+v -0.801066 -0.042881 -0.880621
+v -0.825657 -0.065656 -0.865405
+v -0.853712 -0.082579 -0.848044
+v -0.884154 -0.093001 -0.829207
+v -0.883748 0.130413 -0.819310
+v -0.853554 0.149753 -0.831679
+v -0.822847 0.184895 -0.844910
+v -0.792477 0.216110 -0.859220
+v -0.770785 0.188359 -0.867944
+v -0.754666 0.156697 -0.874426
+v -0.744740 0.122343 -0.878418
+v -0.741389 0.086615 -0.879766
+v -0.744740 0.050887 -0.878418
+v -0.754666 0.016532 -0.874426
+v -0.770785 -0.015129 -0.867944
+v -0.792477 -0.042881 -0.859220
+v -0.818908 -0.065656 -0.848589
+v -0.849064 -0.082579 -0.836462
+v -0.881785 -0.093001 -0.823302
+v -0.882854 0.132691 -0.813648
+v -0.851758 0.151597 -0.820254
+v -0.820580 0.180369 -0.827765
+v -0.788627 0.216110 -0.835912
+v -0.766258 0.188359 -0.840536
+v -0.749637 0.156697 -0.843973
+v -0.739401 0.122343 -0.846089
+v -0.735945 0.086615 -0.846803
+v -0.739401 0.050887 -0.846089
+v -0.749637 0.016532 -0.843973
+v -0.766258 -0.015129 -0.840536
+v -0.788627 -0.042881 -0.835912
+v -0.815884 -0.065656 -0.830277
+v -0.846981 -0.082579 -0.823848
+v -0.880723 -0.093001 -0.816872
+v -0.883030 0.134321 -0.807614
+v -0.852360 0.153154 -0.808200
+v -0.821482 0.179462 -0.809593
+v -0.789666 0.216110 -0.811593
+v -0.767479 0.188359 -0.811941
+v -0.750994 0.156697 -0.812199
+v -0.740842 0.122343 -0.812358
+v -0.737414 0.086615 -0.812412
+v -0.740842 0.050887 -0.812358
+v -0.750994 0.016532 -0.812199
+v -0.767479 -0.015129 -0.811941
+v -0.789666 -0.042881 -0.811593
+v -0.816700 -0.065656 -0.811170
+v -0.847543 -0.082579 -0.810687
+v -0.881009 -0.093001 -0.810162
+v -0.884243 0.136298 -0.801513
+v -0.855270 0.153953 -0.796135
+v -0.825879 0.181847 -0.791462
+v -0.795552 0.216110 -0.787199
+v -0.774401 0.188359 -0.783256
+v -0.758684 0.156697 -0.780326
+v -0.749006 0.122343 -0.778522
+v -0.745738 0.086615 -0.777913
+v -0.749006 0.050887 -0.778522
+v -0.758684 0.016532 -0.780326
+v -0.774401 -0.015129 -0.783256
+v -0.795552 -0.042881 -0.787199
+v -0.821325 -0.065656 -0.792003
+v -0.850728 -0.082579 -0.797484
+v -0.882633 -0.093001 -0.803432
+v -0.886581 0.138241 -0.795686
+v -0.860284 0.155550 -0.784594
+v -0.833500 0.185355 -0.774090
+v -0.806060 0.216110 -0.763666
+v -0.786757 0.188359 -0.755584
+v -0.772413 0.156697 -0.749579
+v -0.763581 0.122343 -0.745881
+v -0.760598 0.086615 -0.744633
+v -0.763581 0.050887 -0.745881
+v -0.772413 0.016532 -0.749579
+v -0.786757 -0.015129 -0.755584
+v -0.806060 -0.042881 -0.763666
+v -0.829580 -0.065656 -0.773514
+v -0.856415 -0.082579 -0.784748
+v -0.885532 -0.093001 -0.796939
+v -0.915813 -0.096520 -0.809617
+v -0.890038 0.139261 -0.790392
+v -0.867286 0.157379 -0.773981
+v -0.844186 0.189447 -0.758088
+v -0.820785 0.216110 -0.741899
+v -0.804072 0.188359 -0.729989
+v -0.791653 0.156697 -0.721139
+v -0.784005 0.122343 -0.715690
+v -0.781423 0.086615 -0.713849
+v -0.784006 0.050887 -0.715690
+v -0.791653 0.016532 -0.721139
+v -0.804072 -0.015129 -0.729989
+v -0.820785 -0.042881 -0.741899
+v -0.841150 -0.065656 -0.756411
+v -0.864384 -0.082579 -0.772968
+v -0.889595 -0.093001 -0.790934
+v -0.894322 0.139212 -0.785920
+v -0.876044 0.159367 -0.764598
+v -0.857691 0.195978 -0.743844
+v -0.839163 0.216110 -0.722734
+v -0.825682 0.188359 -0.707454
+v -0.815664 0.156697 -0.696100
+v -0.809496 0.122343 -0.689107
+v -0.807413 0.086615 -0.686747
+v -0.809496 0.050887 -0.689107
+v -0.815664 0.016532 -0.696100
+v -0.825682 -0.015129 -0.707454
+v -0.839163 -0.042881 -0.722734
+v -0.855589 -0.065656 -0.741354
+v -0.874330 -0.082579 -0.762596
+v -0.894665 -0.093001 -0.785646
+v -0.899407 0.136902 -0.782364
+v -0.886212 0.160376 -0.756934
+v -0.873610 0.206155 -0.731793
+v -0.860485 0.216111 -0.706908
+v -0.850755 0.188359 -0.688845
+v -0.843524 0.156697 -0.675422
+v -0.839072 0.122343 -0.667156
+v -0.837568 0.086615 -0.664366
+v -0.839072 0.050887 -0.667156
+v -0.843524 0.016532 -0.675422
+v -0.850755 -0.015129 -0.688845
+v -0.860486 -0.042881 -0.706909
+v -0.872343 -0.065656 -0.728920
+v -0.885870 -0.082579 -0.754032
+v -0.900548 -0.093001 -0.781280
+v -0.905213 0.133682 -0.779686
+v -0.897519 0.154168 -0.751266
+v -0.891018 0.190104 -0.722776
+v -0.883939 0.216085 -0.695043
+v -0.878328 0.188359 -0.674877
+v -0.874162 0.156697 -0.659902
+v -0.871597 0.122343 -0.650680
+v -0.870730 0.086615 -0.647566
+v -0.871597 0.050887 -0.650680
+v -0.874162 0.016532 -0.659902
+v -0.878328 -0.015129 -0.674877
+v -0.883935 -0.042881 -0.695030
+v -0.890767 -0.065656 -0.719586
+v -0.898561 -0.082579 -0.747603
+v -0.907018 -0.093001 -0.778003
+v -0.911472 0.130539 -0.777970
+v -0.909697 0.147283 -0.747585
+v -0.908971 0.177925 -0.716975
+v -0.908611 0.216063 -0.687581
+v -0.907342 0.188359 -0.666087
+v -0.906401 0.156697 -0.650135
+v -0.905821 0.122343 -0.640312
+v -0.905625 0.086615 -0.636995
+v -0.905821 0.050887 -0.640312
+v -0.906401 0.016532 -0.650135
+v -0.907342 -0.015129 -0.666087
+v -0.908609 -0.042881 -0.687555
+v -0.910153 -0.065656 -0.713713
+v -0.911914 -0.082579 -0.743557
+v -0.913826 -0.093001 -0.775940
+v -0.917902 0.128120 -0.777332
+v -0.922567 0.142034 -0.746162
+v -0.927843 0.174388 -0.715452
+v -0.933559 0.216099 -0.684777
+v -0.936682 0.188359 -0.662813
+v -0.939001 0.156697 -0.646497
+v -0.940429 0.122343 -0.636450
+v -0.940911 0.086615 -0.633057
+v -0.940429 0.050887 -0.636450
+v -0.939001 0.016532 -0.646497
+v -0.936682 -0.015129 -0.662813
+v -0.933560 -0.042881 -0.684770
+v -0.929757 -0.065656 -0.711526
+v -0.925418 -0.082579 -0.742050
+v -0.920710 -0.093001 -0.775172
+v -0.924157 0.126903 -0.777864
+v -0.934944 0.144173 -0.747654
+v -0.946151 0.174107 -0.717342
+v -0.957829 0.216110 -0.686784
+v -0.965219 0.188359 -0.665180
+v -0.970710 0.156697 -0.649127
+v -0.974091 0.122343 -0.639242
+v -0.975233 0.086615 -0.635904
+v -0.974091 0.050887 -0.639242
+v -0.970710 0.016532 -0.649127
+v -0.965219 -0.015129 -0.665180
+v -0.957829 -0.042881 -0.686784
+v -0.948825 -0.065656 -0.713107
+v -0.938552 -0.082579 -0.743140
+v -0.927406 -0.093001 -0.775727
+v -0.929866 0.126199 -0.779497
+v -0.946461 0.143623 -0.750732
+v -0.963214 0.173672 -0.722347
+v -0.980484 0.216110 -0.693517
+v -0.991858 0.188359 -0.673098
+v -1.000310 0.156697 -0.657926
+v -1.005514 0.122343 -0.648582
+v -1.007271 0.086615 -0.645427
+v -1.005514 0.050887 -0.648582
+v -1.000310 0.016532 -0.657925
+v -0.991858 -0.015129 -0.673098
+v -0.980484 -0.042881 -0.693517
+v -0.966625 -0.065656 -0.718398
+v -0.950813 -0.082579 -0.746784
+v -0.933656 -0.093001 -0.777585
+v -0.913940 0.125338 -0.808007
+v -0.934807 0.125877 -0.782239
+v -0.956393 0.142260 -0.756222
+v -0.978324 0.173236 -0.730608
+v -1.000652 0.216104 -0.704714
+v -1.015574 0.188359 -0.686263
+v -1.026662 0.156697 -0.672553
+v -1.033490 0.122343 -0.664111
+v -1.035795 0.086615 -0.661260
+v -1.033490 0.050887 -0.664111
+v -1.026662 0.016532 -0.672553
+v -1.015574 -0.015129 -0.686263
+v -1.000653 -0.042881 -0.704713
+v -0.982472 -0.065656 -0.727194
+v -0.961728 -0.082579 -0.752843
+v -0.939221 -0.093001 -0.780674
+v -0.938915 0.124942 -0.785940
+v -0.964687 0.141063 -0.763793
+v -0.990995 0.171360 -0.741843
+v -1.012732 0.204442 -0.723513
+v -1.035457 0.188359 -0.704168
+v -1.048754 0.156697 -0.692448
+v -1.056943 0.122343 -0.685231
+v -1.059708 0.086615 -0.682794
+v -1.056943 0.050887 -0.685231
+v -1.048754 0.016532 -0.692448
+v -1.035457 -0.015129 -0.704168
+v -1.017562 -0.042881 -0.719940
+v -0.995757 -0.065656 -0.739158
+v -0.970879 -0.082579 -0.761084
+v -0.943886 -0.093001 -0.784875
+vn -0.861873 0.201025 0.465529
+vn -0.809168 0.392834 0.436903
+vn -0.887997 0.386761 0.248665
+vn 0.394879 0.839015 -0.374310
+vn 0.094180 0.969878 -0.224616
+vn 0.142857 0.980804 -0.132603
+vn -0.480361 -0.838008 0.258736
+vn -0.613453 -0.717124 0.330729
+vn -0.532456 -0.833369 0.148076
+vn -0.879818 0.000000 0.475295
+vn -0.943876 0.197516 0.264595
+vn 0.590258 0.691916 -0.415693
+vn 0.474441 0.846034 -0.243110
+vn -0.331217 -0.926572 0.178137
+vn -0.368175 -0.924131 0.101962
+vn -0.861873 -0.201025 0.465529
+vn -0.943907 -0.197516 0.264595
+vn 0.189673 0.975921 -0.107700
+vn 0.702384 0.658223 -0.270852
+vn -0.171422 -0.980865 0.091922
+vn -0.190832 -0.980193 0.052400
+vn -0.809168 -0.392834 0.436903
+vn -0.887997 -0.386761 0.248665
+vn -0.605640 0.725700 0.326365
+vn 0.164586 0.966399 -0.197302
+vn -0.724815 -0.567095 0.391125
+vn -0.797845 -0.560015 0.223029
+vn -0.655782 0.738701 0.155553
+vn -0.677633 -0.710685 0.188971
+vn -0.711539 -0.701315 0.042573
+vn -0.924009 0.378124 0.056398
+vn 0.155950 0.987335 -0.028169
+vn -0.561846 -0.826563 0.033082
+vn -0.962828 0.000000 0.269997
+vn -0.979430 0.192572 0.060091
+vn 0.498184 0.863155 -0.082034
+vn -0.389996 -0.920530 0.022462
+vn -0.979430 -0.192572 0.060091
+vn 0.703879 0.698325 -0.129795
+vn -0.202521 -0.979186 0.011109
+vn -0.924009 -0.378124 0.056398
+vn 0.289987 0.948912 -0.124119
+vn -0.833705 -0.549883 0.050478
+vn -0.624317 0.780145 0.039735
+vn -0.834376 -0.538530 -0.117313
+vn -0.651082 0.755608 -0.071535
+vn -0.715964 -0.690725 -0.101138
+vn -0.920560 0.368603 -0.128971
+vn 0.161199 0.979705 0.118992
+vn -0.568407 -0.818751 -0.080813
+vn -0.998108 0.000000 0.061342
+vn -0.972869 0.187139 -0.135990
+vn 0.502365 0.849117 0.163060
+vn -0.396313 -0.916318 -0.056887
+vn -0.972869 -0.187139 -0.135990
+vn 0.718192 0.680074 0.147099
+vn -0.206183 -0.978027 -0.030183
+vn -0.920560 -0.368603 -0.128971
+vn 0.332011 0.932249 0.143742
+vn -0.202002 -0.976867 -0.069918
+vn -0.883328 -0.359722 -0.300485
+vn 0.224616 0.896847 0.380993
+vn -0.803980 -0.527818 -0.273812
+vn -0.724967 0.662526 -0.188147
+vn -0.693411 -0.680563 -0.236610
+vn -0.883328 0.359722 -0.300485
+vn 0.152043 0.954375 0.256935
+vn -0.553331 -0.811121 -0.189276
+vn -0.990356 0.000000 -0.138340
+vn -0.930937 0.182104 -0.316446
+vn 0.647175 0.650899 0.396802
+vn -0.387463 -0.912198 -0.133030
+vn -0.930937 -0.182104 -0.316446
+vn 0.461715 0.803247 0.376232
+vn 0.588702 0.623493 0.514420
+vn -0.364360 -0.908750 -0.203345
+vn -0.946806 0.000000 -0.321757
+vn -0.860256 -0.178137 -0.477645
+vn -0.084719 0.987396 0.133488
+vn -0.190283 -0.975890 -0.106662
+vn -0.818018 -0.352641 -0.454360
+vn -0.747002 -0.519181 -0.415174
+vn -0.746849 0.519608 -0.414899
+vn -0.646901 -0.672262 -0.359874
+vn -0.818018 0.352641 -0.454360
+vn 0.428510 0.772362 0.468825
+vn -0.518448 -0.804834 -0.288797
+vn -0.860256 0.178137 -0.477645
+vn -0.729270 0.348094 -0.589038
+vn 0.136876 0.934690 0.327982
+vn 0.369884 0.764306 0.528153
+vn -0.465773 -0.800714 -0.376690
+vn -0.874264 0.000000 -0.485366
+vn -0.765893 0.175604 -0.618519
+vn 0.524979 0.645924 0.554186
+vn -0.328166 -0.906461 -0.265633
+vn -0.765893 -0.175604 -0.618519
+vn -0.171667 -0.975249 -0.139225
+vn -0.729270 -0.348094 -0.589038
+vn -0.030244 0.999146 -0.027039
+vn -0.667379 -0.513627 -0.539201
+vn -0.667379 0.513627 -0.539201
+vn -0.579516 -0.666860 -0.468398
+vn -0.568072 -0.511704 -0.644520
+vn -0.568072 0.511704 -0.644520
+vn -0.493789 -0.664968 -0.560259
+vn -0.620228 0.346538 -0.703696
+vn 0.113315 0.925291 0.361888
+vn 0.312662 0.748924 0.584246
+vn -0.397351 -0.799249 -0.450850
+vn -0.777978 0.000000 -0.628254
+vn -0.651021 0.174718 -0.738639
+vn 0.385876 0.662557 0.641926
+vn -0.280313 -0.905667 -0.318033
+vn -0.651021 -0.174718 -0.738639
+vn -0.047487 0.998260 -0.034089
+vn -0.146794 -0.975036 -0.166570
+vn -0.620228 -0.346538 -0.703696
+vn -0.222327 -0.906461 -0.358989
+vn -0.517441 -0.175573 -0.837489
+vn -0.451125 0.513596 -0.729850
+vn -0.492782 -0.348064 -0.797479
+vn -0.492782 0.348064 -0.797479
+vn -0.451125 -0.513565 -0.729850
+vn -0.517441 0.175573 -0.837489
+vn 0.094211 0.919401 0.381848
+vn 0.285684 0.740074 0.608783
+vn -0.391919 -0.666799 -0.633808
+vn -0.661184 0.000000 -0.750175
+vn -0.525559 0.000000 -0.850734
+vn 0.319163 0.676260 0.663900
+vn -0.315226 -0.800653 -0.509445
+vn -0.058168 0.996155 -0.065340
+vn 0.244942 0.685903 0.685171
+vn -0.221473 -0.804743 -0.550707
+vn -0.371807 0.000000 -0.928281
+vn -0.043703 0.994903 -0.090762
+vn -0.116581 -0.975249 -0.187811
+vn -0.156041 -0.908719 -0.387097
+vn -0.365917 -0.178076 -0.913419
+vn -0.318155 0.519089 -0.793268
+vn -0.348125 -0.352550 -0.868618
+vn -0.348125 0.352550 -0.868618
+vn -0.318155 -0.519089 -0.793268
+vn -0.365917 0.178076 -0.913419
+vn 0.166204 0.917997 0.359996
+vn 0.236641 0.738182 0.631703
+vn -0.275857 -0.672170 -0.687063
+vn -0.197211 0.182043 -0.963286
+vn 0.235359 0.912442 0.334666
+vn 0.169317 0.729820 0.662282
+vn -0.147832 -0.680410 -0.717734
+vn -0.200507 0.000000 -0.979675
+vn 0.147557 0.690542 0.708029
+vn -0.118442 -0.811029 -0.572863
+vn -0.033296 0.993622 -0.107547
+vn -0.081942 -0.975890 -0.202216
+vn -0.083438 -0.912137 -0.401227
+vn -0.197211 -0.182043 -0.963286
+vn -0.170873 0.527665 -0.832057
+vn -0.187353 -0.359600 -0.914090
+vn -0.187353 0.359600 -0.914090
+vn -0.170873 -0.527665 -0.832057
+vn -0.012696 -0.368450 -0.929533
+vn -0.012696 0.368450 -0.929533
+vn -0.011902 -0.538347 -0.842616
+vn -0.013123 0.187048 -0.982238
+vn 0.163793 0.919126 0.358226
+vn 0.124119 0.733299 0.668477
+vn -0.010712 -0.690542 -0.723167
+vn -0.013276 0.000000 -0.999908
+vn 0.119846 0.670827 0.731834
+vn -0.009033 -0.818628 -0.574236
+vn -0.004913 0.993805 -0.110752
+vn -0.044038 -0.976836 -0.209235
+vn -0.006806 -0.916257 -0.400464
+vn -0.013123 -0.187048 -0.982238
+vn -0.011902 0.538347 -0.842616
+vn -0.004120 -0.977996 -0.208441
+vn 0.071078 -0.920469 -0.384289
+vn 0.182073 -0.192480 -0.964232
+vn 0.154302 0.549699 -0.820948
+vn 0.171484 -0.378002 -0.909757
+vn 0.171484 0.378002 -0.909757
+vn 0.154302 -0.549699 -0.820948
+vn 0.182073 0.192480 -0.964232
+vn 0.086184 0.925077 0.369793
+vn -0.064669 0.946013 0.317515
+vn 0.131230 -0.701163 -0.700797
+vn 0.185644 0.000000 -0.982604
+vn 0.061098 0.764367 0.641865
+vn 0.103092 -0.826441 -0.553453
+vn 0.023621 0.996399 -0.081210
+vn 0.213416 -0.833277 -0.509964
+vn 0.388104 0.000000 -0.921598
+vn 0.023347 0.660939 0.750053
+vn 0.026734 0.998230 -0.052797
+vn 0.036348 -0.979186 -0.199622
+vn 0.147160 -0.924070 -0.352672
+vn 0.380383 -0.197455 -0.903500
+vn 0.320933 0.559893 -0.763848
+vn 0.357585 -0.386639 -0.850063
+vn 0.357585 0.386639 -0.850063
+vn 0.320933 -0.559893 -0.763848
+vn 0.380383 0.197455 -0.903500
+vn -0.084780 0.949034 0.303476
+vn 0.272164 -0.710532 -0.648854
+vn -0.090457 0.807550 0.582781
+vn -0.091128 0.962859 0.254067
+vn 0.404706 -0.717032 -0.567461
+vn 0.581317 0.000000 -0.813654
+vn -0.194952 0.679647 0.707144
+vn -0.317576 0.829768 0.458876
+vn 0.316660 -0.837947 -0.444411
+vn 0.027711 0.998840 -0.038850
+vn 0.075838 -0.980193 -0.182867
+vn 0.218085 -0.926542 -0.306467
+vn 0.569384 -0.200995 -0.797082
+vn 0.478500 0.567003 -0.670431
+vn 0.534410 -0.392773 -0.748375
+vn 0.534410 0.392773 -0.748375
+vn 0.478500 -0.567003 -0.670431
+vn 0.569384 0.200995 -0.797082
+vn 0.688894 0.395001 -0.607746
+vn 0.616321 -0.569597 -0.543718
+vn 0.734367 0.202277 -0.647877
+vn -0.496139 0.814081 0.301798
+vn 0.520859 -0.719382 -0.459517
+vn 0.749870 0.000000 -0.661550
+vn -0.421827 0.695151 0.582049
+vn -0.596637 0.698996 0.394177
+vn 0.407270 -0.839625 -0.359294
+vn 0.035035 0.998749 -0.034913
+vn 0.112613 -0.980865 -0.158666
+vn 0.280435 -0.927427 -0.247414
+vn 0.734367 -0.202277 -0.647877
+vn 0.616321 0.569597 -0.543718
+vn 0.688894 -0.395001 -0.607746
+vn 0.809168 -0.392834 -0.436903
+vn 0.052553 0.997986 -0.034700
+vn 0.724845 -0.567095 -0.391125
+vn 0.724845 0.567095 -0.391125
+vn 0.613453 -0.717124 -0.330729
+vn 0.809168 0.392834 -0.436903
+vn -0.268136 0.958678 0.094790
+vn -0.612995 0.781426 0.116489
+vn 0.480361 -0.838008 -0.258736
+vn 0.861873 0.201025 -0.465529
+vn -0.699850 0.692343 0.175634
+vn 0.331217 -0.926572 -0.178137
+vn 0.861873 -0.201025 -0.465529
+vn 0.144963 -0.981109 -0.127903
+vn 0.171422 -0.980865 -0.091922
+vn 0.368175 -0.924131 -0.101962
+vn 0.879818 0.000000 -0.475295
+vn 0.943907 -0.197516 -0.264595
+vn 0.078158 0.996704 -0.021363
+vn 0.190832 -0.980193 -0.052400
+vn 0.887997 -0.386761 -0.248665
+vn 0.797845 -0.560015 -0.223029
+vn 0.797845 0.560015 -0.223029
+vn 0.677633 -0.710685 -0.188971
+vn 0.887997 0.386761 -0.248665
+vn -0.388928 0.916501 -0.093387
+vn -0.661489 0.749840 -0.011048
+vn 0.532456 -0.833369 -0.148076
+vn 0.943907 0.197516 -0.264595
+vn -0.682669 0.715537 0.148015
+vn -0.437452 0.870724 -0.224525
+vn -0.430403 0.866634 -0.252235
+vn 0.561846 -0.826563 -0.033082
+vn 0.962828 0.000000 -0.269997
+vn 0.979430 0.192572 -0.060091
+vn -0.628407 0.775262 -0.063478
+vn 0.389996 -0.920530 -0.022462
+vn 0.979430 -0.192572 -0.060091
+vn -0.678762 0.723991 0.122898
+vn 0.202490 -0.979186 -0.011109
+vn 0.924009 -0.378124 -0.056398
+vn 0.075320 0.997131 0.005707
+vn 0.833705 -0.549883 -0.050478
+vn 0.833705 0.549883 -0.050478
+vn 0.711539 -0.701315 -0.042573
+vn 0.924009 0.378124 -0.056398
+vn 0.834376 0.538530 0.117313
+vn 0.715995 -0.690725 0.101138
+vn 0.920560 0.368603 0.128971
+vn -0.399030 0.868129 -0.295114
+vn 0.568407 -0.818751 0.080813
+vn 0.998108 0.000000 -0.061373
+vn 0.972839 0.187139 0.135990
+vn -0.590625 0.791253 -0.158269
+vn 0.396313 -0.916318 0.056887
+vn 0.972839 -0.187139 0.135990
+vn -0.701682 0.700797 -0.128239
+vn 0.206183 -0.978027 0.030183
+vn 0.920560 -0.368603 0.128971
+vn 0.070742 0.997406 0.011719
+vn 0.834376 -0.538530 0.117313
+vn 0.883328 -0.359722 0.300485
+vn 0.082125 0.996277 0.024995
+vn 0.803980 -0.527818 0.273812
+vn 0.803980 0.527818 0.273812
+vn 0.693411 -0.680563 0.236610
+vn 0.883328 0.359722 0.300485
+vn -0.353648 0.861049 -0.365368
+vn 0.553362 -0.811121 0.189276
+vn 0.990356 0.000000 0.138340
+vn 0.930937 0.182104 0.316446
+vn -0.557207 0.784204 -0.272958
+vn 0.387463 -0.912198 0.133030
+vn 0.930937 -0.182104 0.316446
+vn -0.661977 0.674215 -0.327342
+vn 0.202002 -0.976867 0.069918
+vn 0.364360 -0.908750 0.203345
+vn 0.946806 0.000000 0.321757
+vn 0.860256 -0.178137 0.477676
+vn -0.585620 0.668844 -0.457839
+vn 0.190283 -0.975890 0.106662
+vn 0.818018 -0.352641 0.454360
+vn 0.099612 0.993957 0.046022
+vn 0.747002 -0.519181 0.415174
+vn 0.747002 0.519181 0.415174
+vn 0.646901 -0.672262 0.359874
+vn 0.818018 0.352641 0.454360
+vn -0.511399 0.759301 -0.402326
+vn 0.518448 -0.804834 0.288797
+vn 0.860256 0.178137 0.477645
+vn 0.465773 -0.800714 0.376690
+vn 0.874264 0.000000 0.485397
+vn 0.765893 0.175604 0.618519
+vn -0.463149 0.689291 -0.557085
+vn 0.328166 -0.906461 0.265633
+vn 0.765893 -0.175604 0.618519
+vn 0.171667 -0.975249 0.139225
+vn 0.729270 -0.348094 0.589038
+vn 0.099399 0.991485 0.083743
+vn 0.667379 -0.513627 0.539201
+vn 0.667379 0.513627 0.539201
+vn 0.579516 -0.666860 0.468398
+vn 0.729270 0.348094 0.589038
+vn -0.317911 0.862300 -0.394116
+vn -0.449049 0.737602 -0.504227
+vn 0.493789 -0.664998 0.560259
+vn 0.620228 0.346538 0.703696
+vn -0.344127 0.863186 -0.369366
+vn -0.418256 0.689077 -0.591754
+vn 0.397351 -0.799249 0.450850
+vn 0.777978 0.000000 0.628254
+vn 0.651021 0.174718 0.738639
+vn -0.235389 0.724601 -0.647694
+vn 0.280313 -0.905667 0.318033
+vn 0.651021 -0.174718 0.738639
+vn 0.132908 0.984802 0.111545
+vn 0.146794 -0.975036 0.166570
+vn 0.620228 -0.346538 0.703696
+vn 0.568072 -0.511704 0.644520
+vn 0.568072 0.511704 0.644520
+vn 0.451125 0.513565 0.729850
+vn 0.492782 -0.348064 0.797479
+vn 0.492782 0.348064 0.797479
+vn 0.451125 -0.513565 0.729850
+vn 0.517441 0.175573 0.837489
+vn -0.451216 0.846889 -0.281289
+vn -0.526963 0.814142 -0.243812
+vn 0.391919 -0.666799 0.633808
+vn 0.661184 0.000000 0.750175
+vn 0.525559 0.000000 0.850734
+vn -0.366588 0.825587 -0.428938
+vn 0.315226 -0.800653 0.509445
+vn 0.090823 0.976196 0.196814
+vn 0.222327 -0.906461 0.358989
+vn 0.517441 -0.175573 0.837489
+vn 0.371807 0.000000 0.928281
+vn -0.623188 0.634205 -0.457564
+vn 0.116581 -0.975249 0.187811
+vn 0.156041 -0.908719 0.387097
+vn 0.365917 -0.178076 0.913419
+vn 0.318033 0.519303 0.793176
+vn 0.348125 -0.352550 0.868618
+vn 0.348125 0.352550 0.868618
+vn 0.318155 -0.519089 0.793268
+vn 0.365917 0.178076 0.913419
+vn -0.512467 0.624989 -0.588794
+vn -0.520829 0.813623 -0.258309
+vn 0.275857 -0.672170 0.687063
+vn -0.570544 0.649983 -0.501968
+vn 0.221473 -0.804743 0.550707
+vn 0.147832 -0.680410 0.717734
+vn 0.200507 0.000000 0.979675
+vn -0.453413 0.716880 -0.529557
+vn 0.118442 -0.811029 0.572863
+vn -0.000916 0.994751 0.102298
+vn -0.361278 0.629170 -0.688162
+vn 0.081942 -0.975890 0.202246
+vn 0.083438 -0.912137 0.401227
+vn 0.197211 -0.182043 0.963286
+vn 0.170751 0.528184 0.831751
+vn 0.187353 -0.359600 0.914090
+vn 0.187353 0.359600 0.914090
+vn 0.170873 -0.527665 0.832057
+vn 0.197211 0.182043 0.963286
+vn -0.427473 0.859035 -0.281533
+vn 0.011902 -0.538347 0.842616
+vn 0.013123 0.187048 0.982238
+vn -0.241737 0.920347 -0.307382
+vn 0.010712 -0.690542 0.723167
+vn 0.013276 0.000000 0.999908
+vn -0.077853 0.826014 -0.558214
+vn 0.009033 -0.818628 0.574236
+vn 0.016114 0.999054 0.040284
+vn 0.003021 0.999298 0.036927
+vn 0.044038 -0.976836 0.209235
+vn 0.006806 -0.916257 0.400464
+vn 0.013123 -0.187048 0.982238
+vn 0.012024 0.538621 0.842433
+vn 0.012696 -0.368450 0.929533
+vn 0.012696 0.368450 0.929533
+vn -0.154271 0.549730 0.820948
+vn -0.171484 -0.378002 0.909757
+vn -0.171484 0.378002 0.909757
+vn -0.154332 -0.549699 0.820948
+vn -0.182073 0.192480 0.964232
+vn 0.154027 0.811884 -0.563097
+vn -0.131230 -0.701163 0.700797
+vn -0.185675 0.000000 0.982604
+vn -0.054781 0.636555 -0.769250
+vn 0.137852 0.661641 -0.736991
+vn -0.103092 -0.826441 0.553453
+vn 0.002106 0.999268 0.037935
+vn 0.004120 -0.977996 0.208441
+vn -0.071078 -0.920469 0.384289
+vn -0.182073 -0.192480 0.964232
+vn -0.388104 0.000000 0.921598
+vn -0.010132 0.999207 0.038087
+vn -0.036348 -0.979186 0.199622
+vn -0.147160 -0.924070 0.352672
+vn -0.380383 -0.197455 0.903500
+vn -0.320933 0.559893 0.763848
+vn -0.357585 -0.386639 0.850063
+vn -0.357585 0.386639 0.850063
+vn -0.320933 -0.559893 0.763848
+vn -0.380383 0.197455 0.903500
+vn -0.087680 0.942198 -0.323313
+vn 0.161962 0.802240 -0.574541
+vn -0.272134 -0.710532 0.648854
+vn 0.266884 0.674306 -0.688498
+vn -0.213416 -0.833277 0.509964
+vn -0.404706 -0.717032 0.567461
+vn -0.581317 0.000000 0.813654
+vn 0.383526 0.676107 -0.629078
+vn -0.316660 -0.837947 0.444441
+vn -0.134465 0.988800 -0.064394
+vn -0.075838 -0.980193 0.182867
+vn -0.218085 -0.926542 0.306467
+vn -0.569384 -0.200995 0.797082
+vn -0.478500 0.567064 0.670400
+vn -0.534410 -0.392773 0.748375
+vn -0.534410 0.392773 0.748375
+vn -0.478500 -0.567003 0.670431
+vn -0.569384 0.200995 0.797082
+vn 0.022523 0.957884 -0.286233
+vn 0.260842 0.812372 -0.521470
+vn -0.616321 -0.569597 0.543718
+vn -0.734367 0.202277 0.647877
+vn 0.057894 0.960967 -0.270486
+vn 0.049989 0.958129 -0.281869
+vn -0.520829 -0.719382 0.459517
+vn -0.749870 0.000000 0.661550
+vn 0.336131 0.820551 -0.462233
+vn -0.407270 -0.839625 0.359294
+vn 0.446883 0.688650 -0.570971
+vn -0.112613 -0.980865 0.158666
+vn -0.280435 -0.927427 0.247414
+vn -0.734367 -0.202277 0.647877
+vn -0.592700 0.669393 0.447829
+vn -0.688894 -0.395001 0.607746
+vn -0.688894 0.395001 0.607746
+vn -0.159246 0.985504 -0.057985
+vn -0.144963 -0.981109 0.127903
+vn -0.023957 0.937956 -0.345897
+usemtl Body
+s 1
+f 5309//3529 5308//3530 5323//3531
+f 5304//3532 5303//3533 5318//3534
+f 5315//3535 5314//3536 5330//3537
+f 5310//3538 5309//3529 5324//3539
+f 5305//3540 5304//3532 5319//3541
+f 5316//3542 5315//3535 5331//3543
+f 5311//3544 5310//3538 5326//3545
+f 5306//3546 5305//3540 5320//3547
+f 5317//3548 5316//3542 5332//3549
+f 5312//3550 5311//3544 5327//3551
+f 5307//3552 5306//3546 5321//3553
+f 5313//3554 5312//3550 5328//3555
+f 5308//3530 5307//3552 5322//3556
+f 5314//3536 5313//3554 5329//3557
+f 5329//3557 5328//3555 5344//3558
+f 5324//3539 5323//3531 5338//3559
+f 5319//3541 5318//3534 5333//3560
+f 5330//3537 5329//3557 5345//3561
+f 5325//3562 5324//3539 5339//3563
+f 5320//3547 5319//3541 5334//3564
+f 5331//3543 5330//3537 5346//3565
+f 5326//3545 5325//3562 5341//3566
+f 5321//3553 5320//3547 5335//3567
+f 5332//3549 5331//3543 5347//3568
+f 5327//3551 5326//3545 5342//3569
+f 5322//3556 5321//3553 5336//3570
+f 5328//3555 5327//3551 5343//3571
+f 5323//3531 5322//3556 5337//3572
+f 5343//3571 5342//3569 5358//3573
+f 5338//3559 5337//3572 5352//3574
+f 5344//3558 5343//3571 5359//3575
+f 5339//3563 5338//3559 5353//3576
+f 5334//3564 5333//3560 5348//3577
+f 5345//3561 5344//3558 5360//3578
+f 5340//3579 5339//3563 5354//3580
+f 5335//3567 5334//3564 5349//3581
+f 5346//3565 5345//3561 5361//3582
+f 5341//3566 5340//3579 5356//3583
+f 5336//3570 5335//3567 5350//3584
+f 5347//3568 5346//3565 5362//3585
+f 5342//3569 5341//3566 5357//3586
+f 5337//3572 5336//3570 5351//3587
+f 5362//3585 5361//3582 5377//3588
+f 5357//3586 5356//3583 5372//3589
+f 5352//3574 5351//3587 5366//3590
+f 5358//3573 5357//3586 5373//3591
+f 5353//3576 5352//3574 5367//3592
+f 5359//3575 5358//3573 5374//3593
+f 5354//3580 5353//3576 5368//3594
+f 5349//3581 5348//3577 5363//3595
+f 5360//3578 5359//3575 5375//3596
+f 5355//3597 5354//3580 5369//3598
+f 5350//3584 5349//3581 5365//3599
+f 5361//3582 5360//3578 5376//3600
+f 5356//3583 5355//3597 5371//3601
+f 5351//3587 5350//3584 5366//3590
+f 5365//3599 5364//3602 5380//3603
+f 5376//3600 5375//3596 5391//3604
+f 5371//3601 5370//3605 5386//3606
+f 5366//3590 5365//3599 5381//3607
+f 5377//3588 5376//3600 5392//3608
+f 5372//3589 5371//3601 5387//3609
+f 5367//3592 5366//3590 5381//3607
+f 5373//3591 5372//3589 5388//3610
+f 5368//3594 5367//3592 5382//3611
+f 5374//3593 5373//3591 5389//3612
+f 5369//3598 5368//3594 5383//3613
+f 5364//3602 5363//3595 5379//3614
+f 5375//3596 5374//3593 5390//3615
+f 5370//3605 5369//3598 5384//3616
+f 5384//3616 5383//3613 5398//3617
+f 5379//3614 5378//3618 5394//3619
+f 5390//3615 5389//3612 5405//3620
+f 5385//3621 5384//3616 5399//3622
+f 5380//3603 5379//3614 5395//3623
+f 5391//3604 5390//3615 5406//3624
+f 5386//3606 5385//3621 5401//3625
+f 5381//3607 5380//3603 5395//3623
+f 5392//3608 5391//3604 5407//3626
+f 5387//3609 5386//3606 5402//3627
+f 5382//3611 5381//3607 5396//3628
+f 5388//3610 5387//3609 5403//3629
+f 5383//3613 5382//3611 5397//3630
+f 5389//3612 5388//3610 5404//3631
+f 5403//3629 5402//3627 5418//3632
+f 5398//3617 5397//3630 5412//3633
+f 5404//3631 5403//3629 5419//3634
+f 5399//3622 5398//3617 5413//3635
+f 5394//3619 5393//3636 5409//3637
+f 5405//3620 5404//3631 5420//3638
+f 5400//3639 5399//3622 5414//3640
+f 5395//3623 5394//3619 5410//3641
+f 5406//3624 5405//3620 5421//3642
+f 5401//3625 5400//3639 5416//3643
+f 5396//3628 5395//3623 5411//3644
+f 5407//3626 5406//3624 5422//3645
+f 5402//3627 5401//3625 5417//3646
+f 5397//3630 5396//3628 5411//3644
+f 5422//3645 5421//3642 5436//3647
+f 5417//3646 5416//3643 5431//3648
+f 5412//3633 5411//3644 5427//3649
+f 5418//3632 5417//3646 5432//3650
+f 5413//3635 5412//3633 5428//3651
+f 5419//3634 5418//3632 5433//3652
+f 5414//3640 5413//3635 5429//3653
+f 5409//3637 5408//3654 5424//3655
+f 5420//3638 5419//3634 5434//3656
+f 5415//3657 5414//3640 5430//3658
+f 5410//3641 5409//3637 5425//3659
+f 5421//3642 5420//3638 5435//3660
+f 5416//3643 5415//3657 5430//3658
+f 5411//3644 5410//3641 5426//3661
+f 5425//3659 5424//3655 5440//3662
+f 5436//3647 5435//3660 5450//3663
+f 5431//3648 5430//3658 5445//3664
+f 5426//3661 5425//3659 5441//3665
+f 5437//3666 5436//3647 5451//3667
+f 5432//3650 5431//3648 5446//3668
+f 5427//3649 5426//3661 5442//3669
+f 5433//3652 5432//3650 5447//3670
+f 5428//3651 5427//3649 5443//3671
+f 5434//3656 5433//3652 5448//3672
+f 5429//3653 5428//3651 5444//3673
+f 5424//3655 5423//3674 5439//3675
+f 5435//3660 5434//3656 5449//3676
+f 5430//3658 5429//3653 5445//3664
+f 5444//3673 5443//3671 5459//3677
+f 5439//3675 5438//3678 5454//3679
+f 5450//3663 5449//3676 5464//3680
+f 5445//3664 5444//3673 5460//3681
+f 5440//3662 5439//3675 5455//3682
+f 5451//3667 5450//3663 5465//3683
+f 5446//3668 5445//3664 5460//3681
+f 5441//3665 5440//3662 5456//3684
+f 5452//3685 5451//3667 5466//3686
+f 5447//3670 5446//3668 5461//3687
+f 5442//3669 5441//3665 5457//3688
+f 5448//3672 5447//3670 5462//3689
+f 5443//3671 5442//3669 5458//3690
+f 5449//3676 5448//3672 5463//3691
+f 5463//3691 5462//3689 5477//3692
+f 5458//3690 5457//3688 5473//3693
+f 5464//3680 5463//3691 5478//3694
+f 5459//3677 5458//3690 5474//3695
+f 5454//3679 5453//3696 5469//3697
+f 5465//3683 5464//3680 5479//3698
+f 5460//3681 5459//3677 5475//3699
+f 5455//3682 5454//3679 5470//3700
+f 5466//3686 5465//3683 5480//3701
+f 5461//3687 5460//3681 5475//3699
+f 5456//3684 5455//3682 5471//3702
+f 5467//3703 5466//3686 5481//3704
+f 5462//3689 5461//3687 5476//3705
+f 5457//3688 5456//3684 5472//3706
+f 5482//3707 5481//3704 5496//3708
+f 5477//3692 5476//3705 5491//3709
+f 5472//3706 5471//3702 5487//3710
+f 5478//3694 5477//3692 5492//3711
+f 5473//3693 5472//3706 5488//3712
+f 5479//3698 5478//3694 5493//3713
+f 5474//3695 5473//3693 5489//3714
+f 5469//3697 5468//3715 5483//3716
+f 5480//3701 5479//3698 5494//3717
+f 5475//3699 5474//3695 5490//3718
+f 5470//3700 5469//3697 5484//3719
+f 5481//3704 5480//3701 5495//3720
+f 5476//3705 5475//3699 5490//3718
+f 5471//3702 5470//3700 5486//3721
+f 5496//3708 5495//3720 5510//3722
+f 5491//3709 5490//3718 5505//3723
+f 5486//3721 5485//3724 5501//3725
+f 5497//3726 5496//3708 5511//3727
+f 5492//3711 5491//3709 5506//3728
+f 5487//3710 5486//3721 5502//3729
+f 5493//3713 5492//3711 5507//3730
+f 5488//3712 5487//3710 5503//3731
+f 5494//3717 5493//3713 5508//3732
+f 5489//3714 5488//3712 5504//3733
+f 5484//3719 5483//3716 5498//3734
+f 5495//3720 5494//3717 5509//3735
+f 5490//3718 5489//3714 5505//3723
+f 5485//3724 5484//3719 5499//3736
+f 5499//3736 5498//3734 5513//3737
+f 5510//3722 5509//3735 5524//3738
+f 5505//3723 5504//3733 5520//3739
+f 5500//3740 5499//3736 5514//3741
+f 5511//3727 5510//3722 5525//3742
+f 5506//3728 5505//3723 5520//3739
+f 5501//3725 5500//3740 5516//3743
+f 5512//3744 5511//3727 5526//3745
+f 5507//3730 5506//3728 5521//3746
+f 5502//3729 5501//3725 5517//3747
+f 5508//3732 5507//3730 5522//3748
+f 5503//3731 5502//3729 5518//3749
+f 5509//3735 5508//3732 5523//3750
+f 5504//3733 5503//3731 5519//3751
+f 5518//3749 5517//3747 5533//3752
+f 5524//3738 5523//3750 5538//3753
+f 5519//3751 5518//3749 5534//3754
+f 5514//3741 5513//3737 5529//3755
+f 5525//3742 5524//3738 5539//3756
+f 5520//3739 5519//3751 5535//3757
+f 5515//3758 5514//3741 5530//3759
+f 5526//3745 5525//3742 5540//3760
+f 5521//3746 5520//3739 5535//3757
+f 5516//3743 5515//3758 5531//3761
+f 5527//3762 5526//3745 5541//3763
+f 5522//3748 5521//3746 5536//3764
+f 5517//3747 5516//3743 5532//3765
+f 5523//3750 5522//3748 5537//3766
+f 5537//3766 5536//3764 5552//3767
+f 5532//3765 5531//3761 5546//3768
+f 5538//3753 5537//3766 5553//3769
+f 5533//3752 5532//3765 5547//3770
+f 5539//3756 5538//3753 5554//3771
+f 5534//3754 5533//3752 5548//3772
+f 5529//3755 5528//3773 5544//3774
+f 5540//3760 5539//3756 5555//3775
+f 5535//3757 5534//3754 5549//3776
+f 5530//3759 5529//3755 5545//3777
+f 5541//3763 5540//3760 5556//3778
+f 5536//3764 5535//3757 5551//3779
+f 5531//3761 5530//3759 5546//3768
+f 5542//3780 5541//3763 5557//3781
+f 5556//3778 5555//3775 5571//3782
+f 5551//3779 5550//3783 5566//3784
+f 5546//3768 5545//3777 5561//3785
+f 5557//3781 5556//3778 5572//3786
+f 5552//3767 5551//3779 5567//3787
+f 5547//3770 5546//3768 5561//3785
+f 5553//3769 5552//3767 5568//3788
+f 5548//3772 5547//3770 5562//3789
+f 5554//3771 5553//3769 5569//3790
+f 5549//3776 5548//3772 5563//3791
+f 5544//3774 5543//3792 5559//3793
+f 5555//3775 5554//3771 5570//3794
+f 5550//3783 5549//3776 5564//3795
+f 5545//3777 5544//3774 5560//3796
+f 5559//3793 5558//3797 5573//3798
+f 5570//3794 5569//3790 5585//3799
+f 5565//3800 5564//3795 5579//3801
+f 5560//3796 5559//3793 5574//3802
+f 5571//3782 5570//3794 5586//3803
+f 5566//3784 5565//3800 5581//3804
+f 5561//3785 5560//3796 5575//3805
+f 5572//3786 5571//3782 5587//3806
+f 5567//3787 5566//3784 5582//3807
+f 5562//3789 5561//3785 5576//3808
+f 5568//3788 5567//3787 5583//3809
+f 5563//3791 5562//3789 5577//3810
+f 5569//3790 5568//3788 5584//3811
+f 5564//3795 5563//3791 5578//3812
+f 5578//3812 5577//3810 5592//3813
+f 5584//3811 5583//3809 5599//3814
+f 5579//3801 5578//3812 5593//3815
+f 5574//3802 5573//3798 5588//3816
+f 5585//3799 5584//3811 5600//3817
+f 5580//3818 5579//3801 5594//3819
+f 5575//3805 5574//3802 5589//3820
+f 5586//3803 5585//3799 5601//3821
+f 5581//3804 5580//3818 5596//3822
+f 5576//3808 5575//3805 5590//3823
+f 5587//3806 5586//3803 5602//3824
+f 5582//3807 5581//3804 5597//3825
+f 5577//3810 5576//3808 5591//3826
+f 5583//3809 5582//3807 5598//3827
+f 5597//3825 5596//3822 5612//3828
+f 5592//3813 5591//3826 5606//3829
+f 5598//3827 5597//3825 5613//3830
+f 5593//3815 5592//3813 5607//3831
+f 5599//3814 5598//3827 5614//3832
+f 5594//3819 5593//3815 5608//3833
+f 5589//3820 5588//3816 5603//3834
+f 5600//3817 5599//3814 5615//3835
+f 5595//3836 5594//3819 5609//3837
+f 5590//3823 5589//3820 5604//3838
+f 5601//3821 5600//3817 5616//3839
+f 5596//3822 5595//3836 5611//3840
+f 5591//3826 5590//3823 5605//3841
+f 5602//3824 5601//3821 5617//3842
+f 5616//3839 5615//3835 5631//3843
+f 5611//3840 5610//3844 5626//3845
+f 5606//3829 5605//3841 5620//3846
+f 5617//3842 5616//3839 5632//3847
+f 5612//3828 5611//3840 5627//3848
+f 5607//3831 5606//3829 5621//3849
+f 5613//3830 5612//3828 5628//3850
+f 5608//3833 5607//3831 5622//3851
+f 5614//3832 5613//3830 5629//3852
+f 5609//3837 5608//3833 5623//3853
+f 5604//3838 5603//3834 5619//3854
+f 5615//3835 5614//3832 5630//3855
+f 5610//3844 5609//3837 5624//3856
+f 5605//3841 5604//3838 5620//3846
+f 5630//3855 5629//3852 5646//3857
+f 5625//3858 5624//3856 5640//3859
+f 5620//3846 5619//3854 5636//3860
+f 5631//3843 5630//3855 5647//3861
+f 5626//3845 5625//3858 5642//3862
+f 5621//3849 5620//3846 5636//3860
+f 5632//3847 5631//3843 5648//3863
+f 5627//3848 5626//3845 5643//3864
+f 5622//3851 5621//3849 5637//3865
+f 5628//3850 5627//3848 5644//3866
+f 5623//3853 5622//3851 5638//3867
+f 5629//3852 5628//3850 5645//3868
+f 5624//3856 5623//3853 5639//3869
+f 5619//3854 5618//3870 5635//3871
+f 5645//3868 5644//3866 5660//3872
+f 5640//3859 5639//3869 5654//3873
+f 5635//3871 5634//3874 5650//3875
+f 5646//3857 5645//3868 5661//3876
+f 5641//3877 5640//3859 5655//3878
+f 5636//3860 5635//3871 5651//3879
+f 5647//3861 5646//3857 5662//3880
+f 5642//3862 5641//3877 5657//3881
+f 5637//3865 5636//3860 5652//3882
+f 5648//3863 5647//3861 5663//3883
+f 5643//3864 5642//3862 5658//3884
+f 5638//3867 5637//3865 5652//3882
+f 5644//3866 5643//3864 5659//3885
+f 5639//3869 5638//3867 5653//3886
+f 5653//3886 5652//3882 5668//3887
+f 5659//3885 5658//3884 5673//3888
+f 5654//3873 5653//3886 5669//3889
+f 5660//3872 5659//3885 5674//3890
+f 5655//3878 5654//3873 5670//3891
+f 5650//3875 5649//3892 5664//3893
+f 5661//3876 5660//3872 5675//3894
+f 5656//3895 5655//3878 5671//3896
+f 5651//3879 5650//3875 5666//3897
+f 5662//3880 5661//3876 5676//3898
+f 5657//3881 5656//3895 5671//3896
+f 5652//3882 5651//3879 5667//3899
+f 5663//3883 5662//3880 5677//3900
+f 5658//3884 5657//3881 5672//3901
+f 5672//3901 5671//3896 5686//3902
+f 5667//3899 5666//3897 5681//3903
+f 5678//3904 5677//3900 5692//3905
+f 5673//3888 5672//3901 5687//3906
+f 5668//3887 5667//3899 5683//3907
+f 5674//3890 5673//3888 5688//3908
+f 5669//3889 5668//3887 5684//3909
+f 5675//3894 5674//3890 5689//3910
+f 5670//3891 5669//3889 5685//3911
+f 5665//3912 5664//3893 5679//3913
+f 5676//3898 5675//3894 5690//3914
+f 5671//3896 5670//3891 5686//3902
+f 5666//3897 5665//3912 5680//3915
+f 5677//3900 5676//3898 5691//3916
+f 5691//3916 5690//3914 5705//3917
+f 5686//3902 5685//3911 5701//3918
+f 5681//3903 5680//3915 5695//3919
+f 5692//3905 5691//3916 5706//3920
+f 5687//3906 5686//3902 5701//3918
+f 5682//3921 5681//3903 5696//3922
+f 5693//3923 5692//3905 5707//3924
+f 5688//3908 5687//3906 5702//3925
+f 5683//3907 5682//3921 5698//3926
+f 5689//3910 5688//3908 5703//3927
+f 5684//3909 5683//3907 5699//3928
+f 5690//3914 5689//3910 5704//3929
+f 5685//3911 5684//3909 5700//3930
+f 5680//3915 5679//3913 5694//3931
+f 5705//3917 5704//3929 5719//3932
+f 5700//3930 5699//3928 5715//3933
+f 5695//3919 5694//3931 5709//3934
+f 5706//3920 5705//3917 5720//3935
+f 5701//3918 5700//3930 5716//3936
+f 5696//3922 5695//3919 5710//3937
+f 5707//3924 5706//3920 5721//3938
+f 5702//3925 5701//3918 5716//3936
+f 5697//3939 5696//3922 5712//3940
+f 5708//3941 5707//3924 5722//3942
+f 5703//3927 5702//3925 5717//3943
+f 5698//3926 5697//3939 5713//3944
+f 5704//3929 5703//3927 5718//3945
+f 5699//3928 5698//3926 5714//3946
+f 5713//3944 5712//3940 5728//3947
+f 5719//3932 5718//3945 5733//3948
+f 5714//3946 5713//3944 5729//3949
+f 5720//3935 5719//3932 5734//3950
+f 5715//3933 5714//3946 5730//3951
+f 5710//3937 5709//3934 5725//3952
+f 5721//3938 5720//3935 5735//3953
+f 5716//3936 5715//3933 5731//3954
+f 5711//3955 5710//3937 5726//3956
+f 5722//3942 5721//3938 5736//3957
+f 5717//3943 5716//3936 5731//3954
+f 5712//3940 5711//3955 5727//3958
+f 5723//3959 5722//3942 5737//3960
+f 5718//3945 5717//3943 5732//3961
+f 5732//3961 5731//3954 5746//3962
+f 5727//3958 5726//3956 5742//3963
+f 5738//3964 5737//3960 5752//3965
+f 5733//3948 5732//3961 5747//3966
+f 5728//3947 5727//3958 5743//3967
+f 5734//3950 5733//3948 5748//3968
+f 5729//3949 5728//3947 5744//3969
+f 5735//3953 5734//3950 5749//3970
+f 5730//3951 5729//3949 5745//3971
+f 5725//3952 5724//3972 5740//3973
+f 5736//3957 5735//3953 5750//3974
+f 5731//3954 5730//3951 5746//3962
+f 5726//3956 5725//3952 5741//3975
+f 5737//3960 5736//3957 5751//3976
+f 5751//3976 5750//3974 5766//3977
+f 5746//3962 5745//3971 5762//3978
+f 5741//3975 5740//3973 5757//3979
+f 5752//3965 5751//3976 5767//3980
+f 5747//3966 5746//3962 5762//3978
+f 5742//3963 5741//3975 5758//3981
+f 5753//3982 5752//3965 5768//3983
+f 5748//3968 5747//3966 5763//3984
+f 5743//3967 5742//3963 5759//3985
+f 5749//3970 5748//3968 5764//3986
+f 5744//3969 5743//3967 5760//3987
+f 5750//3974 5749//3970 5765//3988
+f 5745//3971 5744//3969 5761//3989
+f 5740//3973 5739//3990 5756//3991
+f 5766//3977 5765//3988 5780//3992
+f 5761//3989 5760//3987 5776//3993
+f 5756//3991 5755//3994 5770//3995
+f 5767//3980 5766//3977 5781//3996
+f 5762//3978 5761//3989 5777//3997
+f 5757//3979 5756//3991 5771//3998
+f 5768//3983 5767//3980 5782//3999
+f 5763//3984 5762//3978 5777//3997
+f 5758//3981 5757//3979 5772//4000
+f 5769//4001 5768//3983 5783//4002
+f 5764//3986 5763//3984 5778//4003
+f 5759//3985 5758//3981 5774//4004
+f 5765//3988 5764//3986 5779//4005
+f 5760//3987 5759//3985 5775//4006
+f 5633//364 5317//3548 5332//3549
+f 5303//3533 5754//4007 5318//3534
+f 5633//364 5332//3549 5347//3568
+f 5318//3534 5754//4007 5333//3560
+f 5633//364 5347//3568 5362//3585
+f 5333//3560 5754//4007 5348//3577
+f 5633//364 5362//3585 5377//3588
+f 5348//3577 5754//4007 5363//3595
+f 5633//364 5377//3588 5392//3608
+f 5363//3595 5754//4007 5378//3618
+f 5633//364 5392//3608 5407//3626
+f 5378//3618 5754//4007 5393//3636
+f 5393//3636 5754//4007 5408//3654
+f 5633//364 5407//3626 5422//3645
+f 5633//364 5422//3645 5437//3666
+f 5408//3654 5754//4007 5423//3674
+f 5633//364 5437//3666 5452//3685
+f 5423//3674 5754//4007 5438//3678
+f 5633//364 5452//3685 5467//3703
+f 5438//3678 5754//4007 5453//3696
+f 5453//3696 5754//4007 5468//3715
+f 5633//364 5467//3703 5482//3707
+f 5633//364 5482//3707 5497//3726
+f 5468//3715 5754//4007 5483//3716
+f 5633//364 5497//3726 5512//3744
+f 5483//3716 5754//4007 5498//3734
+f 5633//364 5512//3744 5527//3762
+f 5498//3734 5754//4007 5513//3737
+f 5513//3737 5754//4007 5528//3773
+f 5633//364 5527//3762 5542//3780
+f 5633//364 5542//3780 5557//3781
+f 5528//3773 5754//4007 5543//3792
+f 5633//364 5557//3781 5572//3786
+f 5543//3792 5754//4007 5558//3797
+f 5633//364 5572//3786 5587//3806
+f 5558//3797 5754//4007 5573//3798
+f 5573//3798 5754//4007 5588//3816
+f 5633//364 5587//3806 5602//3824
+f 5633//364 5602//3824 5617//3842
+f 5588//3816 5754//4007 5603//3834
+f 5633//364 5617//3842 5632//3847
+f 5603//3834 5754//4007 5618//3870
+f 5633//364 5632//3847 5648//3863
+f 5618//3870 5754//4007 5634//3874
+f 5634//3874 5754//4007 5649//3892
+f 5633//364 5648//3863 5663//3883
+f 5633//364 5663//3883 5678//3904
+f 5649//3892 5754//4007 5664//3893
+f 5633//364 5678//3904 5693//3923
+f 5664//3893 5754//4007 5679//3913
+f 5633//364 5693//3923 5708//3941
+f 5679//3913 5754//4007 5694//3931
+f 5694//3931 5754//4007 5709//3934
+f 5633//364 5708//3941 5723//3959
+f 5633//364 5723//3959 5738//3964
+f 5709//3934 5754//4007 5724//3972
+f 5633//364 5738//3964 5753//3982
+f 5724//3972 5754//4007 5739//3990
+f 5633//364 5753//3982 5769//4001
+f 5739//3990 5754//4007 5755//3994
+f 5633//364 5769//4001 5784//4008
+f 5755//3994 5754//4007 5770//3995
+f 5633//364 5784//4008 5317//3548
+f 5780//3992 5779//4005 5313//3554
+f 5775//4006 5774//4004 5307//3552
+f 5770//3995 5754//4007 5303//3533
+f 5781//3996 5780//3992 5314//3536
+f 5776//3993 5775//4006 5308//3530
+f 5771//3998 5770//3995 5303//3533
+f 5782//3999 5781//3996 5315//3535
+f 5777//3997 5776//3993 5309//3529
+f 5772//4000 5771//3998 5304//3532
+f 5783//4002 5782//3999 5316//3542
+f 5778//4003 5777//3997 5311//3544
+f 5773//4009 5772//4000 5305//3540
+f 5784//4008 5783//4002 5317//3548
+f 5779//4005 5778//4003 5312//3550
+f 5774//4004 5773//4009 5306//3546
+f 5324//3539 5309//3529 5323//3531
+f 5319//3541 5304//3532 5318//3534
+f 5314//3536 5329//3557 5330//3537
+f 5325//3562 5310//3538 5324//3539
+f 5320//3547 5305//3540 5319//3541
+f 5315//3535 5330//3537 5331//3543
+f 5310//3538 5325//3562 5326//3545
+f 5321//3553 5306//3546 5320//3547
+f 5316//3542 5331//3543 5332//3549
+f 5311//3544 5326//3545 5327//3551
+f 5322//3556 5307//3552 5321//3553
+f 5312//3550 5327//3551 5328//3555
+f 5323//3531 5308//3530 5322//3556
+f 5313//3554 5328//3555 5329//3557
+f 5328//3555 5343//3571 5344//3558
+f 5339//3563 5324//3539 5338//3559
+f 5334//3564 5319//3541 5333//3560
+f 5329//3557 5344//3558 5345//3561
+f 5340//3579 5325//3562 5339//3563
+f 5335//3567 5320//3547 5334//3564
+f 5330//3537 5345//3561 5346//3565
+f 5325//3562 5340//3579 5341//3566
+f 5336//3570 5321//3553 5335//3567
+f 5331//3543 5346//3565 5347//3568
+f 5326//3545 5341//3566 5342//3569
+f 5337//3572 5322//3556 5336//3570
+f 5327//3551 5342//3569 5343//3571
+f 5338//3559 5323//3531 5337//3572
+f 5342//3569 5357//3586 5358//3573
+f 5353//3576 5338//3559 5352//3574
+f 5343//3571 5358//3573 5359//3575
+f 5354//3580 5339//3563 5353//3576
+f 5349//3581 5334//3564 5348//3577
+f 5344//3558 5359//3575 5360//3578
+f 5355//3597 5340//3579 5354//3580
+f 5350//3584 5335//3567 5349//3581
+f 5345//3561 5360//3578 5361//3582
+f 5340//3579 5355//3597 5356//3583
+f 5351//3587 5336//3570 5350//3584
+f 5346//3565 5361//3582 5362//3585
+f 5341//3566 5356//3583 5357//3586
+f 5352//3574 5337//3572 5351//3587
+f 5361//3582 5376//3600 5377//3588
+f 5356//3583 5371//3601 5372//3589
+f 5367//3592 5352//3574 5366//3590
+f 5357//3586 5372//3589 5373//3591
+f 5368//3594 5353//3576 5367//3592
+f 5358//3573 5373//3591 5374//3593
+f 5369//3598 5354//3580 5368//3594
+f 5364//3602 5349//3581 5363//3595
+f 5359//3575 5374//3593 5375//3596
+f 5370//3605 5355//3597 5369//3598
+f 5349//3581 5364//3602 5365//3599
+f 5360//3578 5375//3596 5376//3600
+f 5355//3597 5370//3605 5371//3601
+f 5350//3584 5365//3599 5366//3590
+f 5364//3602 5379//3614 5380//3603
+f 5375//3596 5390//3615 5391//3604
+f 5370//3605 5385//3621 5386//3606
+f 5365//3599 5380//3603 5381//3607
+f 5376//3600 5391//3604 5392//3608
+f 5371//3601 5386//3606 5387//3609
+f 5382//3611 5367//3592 5381//3607
+f 5372//3589 5387//3609 5388//3610
+f 5383//3613 5368//3594 5382//3611
+f 5373//3591 5388//3610 5389//3612
+f 5384//3616 5369//3598 5383//3613
+f 5363//3595 5378//3618 5379//3614
+f 5374//3593 5389//3612 5390//3615
+f 5385//3621 5370//3605 5384//3616
+f 5399//3622 5384//3616 5398//3617
+f 5378//3618 5393//3636 5394//3619
+f 5389//3612 5404//3631 5405//3620
+f 5400//3639 5385//3621 5399//3622
+f 5379//3614 5394//3619 5395//3623
+f 5390//3615 5405//3620 5406//3624
+f 5385//3621 5400//3639 5401//3625
+f 5396//3628 5381//3607 5395//3623
+f 5391//3604 5406//3624 5407//3626
+f 5386//3606 5401//3625 5402//3627
+f 5397//3630 5382//3611 5396//3628
+f 5387//3609 5402//3627 5403//3629
+f 5398//3617 5383//3613 5397//3630
+f 5388//3610 5403//3629 5404//3631
+f 5402//3627 5417//3646 5418//3632
+f 5413//3635 5398//3617 5412//3633
+f 5403//3629 5418//3632 5419//3634
+f 5414//3640 5399//3622 5413//3635
+f 5393//3636 5408//3654 5409//3637
+f 5404//3631 5419//3634 5420//3638
+f 5415//3657 5400//3639 5414//3640
+f 5394//3619 5409//3637 5410//3641
+f 5405//3620 5420//3638 5421//3642
+f 5400//3639 5415//3657 5416//3643
+f 5395//3623 5410//3641 5411//3644
+f 5406//3624 5421//3642 5422//3645
+f 5401//3625 5416//3643 5417//3646
+f 5412//3633 5397//3630 5411//3644
+f 5437//3666 5422//3645 5436//3647
+f 5432//3650 5417//3646 5431//3648
+f 5411//3644 5426//3661 5427//3649
+f 5433//3652 5418//3632 5432//3650
+f 5412//3633 5427//3649 5428//3651
+f 5434//3656 5419//3634 5433//3652
+f 5413//3635 5428//3651 5429//3653
+f 5408//3654 5423//3674 5424//3655
+f 5435//3660 5420//3638 5434//3656
+f 5414//3640 5429//3653 5430//3658
+f 5409//3637 5424//3655 5425//3659
+f 5436//3647 5421//3642 5435//3660
+f 5431//3648 5416//3643 5430//3658
+f 5410//3641 5425//3659 5426//3661
+f 5424//3655 5439//3675 5440//3662
+f 5451//3667 5436//3647 5450//3663
+f 5446//3668 5431//3648 5445//3664
+f 5425//3659 5440//3662 5441//3665
+f 5452//3685 5437//3666 5451//3667
+f 5447//3670 5432//3650 5446//3668
+f 5426//3661 5441//3665 5442//3669
+f 5448//3672 5433//3652 5447//3670
+f 5427//3649 5442//3669 5443//3671
+f 5449//3676 5434//3656 5448//3672
+f 5428//3651 5443//3671 5444//3673
+f 5423//3674 5438//3678 5439//3675
+f 5450//3663 5435//3660 5449//3676
+f 5429//3653 5444//3673 5445//3664
+f 5443//3671 5458//3690 5459//3677
+f 5438//3678 5453//3696 5454//3679
+f 5465//3683 5450//3663 5464//3680
+f 5444//3673 5459//3677 5460//3681
+f 5439//3675 5454//3679 5455//3682
+f 5466//3686 5451//3667 5465//3683
+f 5461//3687 5446//3668 5460//3681
+f 5440//3662 5455//3682 5456//3684
+f 5467//3703 5452//3685 5466//3686
+f 5462//3689 5447//3670 5461//3687
+f 5441//3665 5456//3684 5457//3688
+f 5463//3691 5448//3672 5462//3689
+f 5442//3669 5457//3688 5458//3690
+f 5464//3680 5449//3676 5463//3691
+f 5478//3694 5463//3691 5477//3692
+f 5457//3688 5472//3706 5473//3693
+f 5479//3698 5464//3680 5478//3694
+f 5458//3690 5473//3693 5474//3695
+f 5453//3696 5468//3715 5469//3697
+f 5480//3701 5465//3683 5479//3698
+f 5459//3677 5474//3695 5475//3699
+f 5454//3679 5469//3697 5470//3700
+f 5481//3704 5466//3686 5480//3701
+f 5476//3705 5461//3687 5475//3699
+f 5455//3682 5470//3700 5471//3702
+f 5482//3707 5467//3703 5481//3704
+f 5477//3692 5462//3689 5476//3705
+f 5456//3684 5471//3702 5472//3706
+f 5497//3726 5482//3707 5496//3708
+f 5492//3711 5477//3692 5491//3709
+f 5471//3702 5486//3721 5487//3710
+f 5493//3713 5478//3694 5492//3711
+f 5472//3706 5487//3710 5488//3712
+f 5494//3717 5479//3698 5493//3713
+f 5473//3693 5488//3712 5489//3714
+f 5484//3719 5469//3697 5483//3716
+f 5495//3720 5480//3701 5494//3717
+f 5474//3695 5489//3714 5490//3718
+f 5485//3724 5470//3700 5484//3719
+f 5496//3708 5481//3704 5495//3720
+f 5491//3709 5476//3705 5490//3718
+f 5470//3700 5485//3724 5486//3721
+f 5511//3727 5496//3708 5510//3722
+f 5506//3728 5491//3709 5505//3723
+f 5485//3724 5500//3740 5501//3725
+f 5512//3744 5497//3726 5511//3727
+f 5507//3730 5492//3711 5506//3728
+f 5486//3721 5501//3725 5502//3729
+f 5508//3732 5493//3713 5507//3730
+f 5487//3710 5502//3729 5503//3731
+f 5509//3735 5494//3717 5508//3732
+f 5488//3712 5503//3731 5504//3733
+f 5499//3736 5484//3719 5498//3734
+f 5510//3722 5495//3720 5509//3735
+f 5489//3714 5504//3733 5505//3723
+f 5500//3740 5485//3724 5499//3736
+f 5514//3741 5499//3736 5513//3737
+f 5525//3742 5510//3722 5524//3738
+f 5504//3733 5519//3751 5520//3739
+f 5515//3758 5500//3740 5514//3741
+f 5526//3745 5511//3727 5525//3742
+f 5521//3746 5506//3728 5520//3739
+f 5500//3740 5515//3758 5516//3743
+f 5527//3762 5512//3744 5526//3745
+f 5522//3748 5507//3730 5521//3746
+f 5501//3725 5516//3743 5517//3747
+f 5523//3750 5508//3732 5522//3748
+f 5502//3729 5517//3747 5518//3749
+f 5524//3738 5509//3735 5523//3750
+f 5503//3731 5518//3749 5519//3751
+f 5517//3747 5532//3765 5533//3752
+f 5539//3756 5524//3738 5538//3753
+f 5518//3749 5533//3752 5534//3754
+f 5513//3737 5528//3773 5529//3755
+f 5540//3760 5525//3742 5539//3756
+f 5519//3751 5534//3754 5535//3757
+f 5514//3741 5529//3755 5530//3759
+f 5541//3763 5526//3745 5540//3760
+f 5536//3764 5521//3746 5535//3757
+f 5515//3758 5530//3759 5531//3761
+f 5542//3780 5527//3762 5541//3763
+f 5537//3766 5522//3748 5536//3764
+f 5516//3743 5531//3761 5532//3765
+f 5538//3753 5523//3750 5537//3766
+f 5536//3764 5551//3779 5552//3767
+f 5547//3770 5532//3765 5546//3768
+f 5537//3766 5552//3767 5553//3769
+f 5548//3772 5533//3752 5547//3770
+f 5538//3753 5553//3769 5554//3771
+f 5549//3776 5534//3754 5548//3772
+f 5528//3773 5543//3792 5544//3774
+f 5539//3756 5554//3771 5555//3775
+f 5550//3783 5535//3757 5549//3776
+f 5529//3755 5544//3774 5545//3777
+f 5540//3760 5555//3775 5556//3778
+f 5535//3757 5550//3783 5551//3779
+f 5530//3759 5545//3777 5546//3768
+f 5541//3763 5556//3778 5557//3781
+f 5555//3775 5570//3794 5571//3782
+f 5550//3783 5565//3800 5566//3784
+f 5545//3777 5560//3796 5561//3785
+f 5556//3778 5571//3782 5572//3786
+f 5551//3779 5566//3784 5567//3787
+f 5562//3789 5547//3770 5561//3785
+f 5552//3767 5567//3787 5568//3788
+f 5563//3791 5548//3772 5562//3789
+f 5553//3769 5568//3788 5569//3790
+f 5564//3795 5549//3776 5563//3791
+f 5543//3792 5558//3797 5559//3793
+f 5554//3771 5569//3790 5570//3794
+f 5565//3800 5550//3783 5564//3795
+f 5544//3774 5559//3793 5560//3796
+f 5574//3802 5559//3793 5573//3798
+f 5569//3790 5584//3811 5585//3799
+f 5580//3818 5565//3800 5579//3801
+f 5575//3805 5560//3796 5574//3802
+f 5570//3794 5585//3799 5586//3803
+f 5565//3800 5580//3818 5581//3804
+f 5576//3808 5561//3785 5575//3805
+f 5571//3782 5586//3803 5587//3806
+f 5566//3784 5581//3804 5582//3807
+f 5577//3810 5562//3789 5576//3808
+f 5567//3787 5582//3807 5583//3809
+f 5578//3812 5563//3791 5577//3810
+f 5568//3788 5583//3809 5584//3811
+f 5579//3801 5564//3795 5578//3812
+f 5593//3815 5578//3812 5592//3813
+f 5583//3809 5598//3827 5599//3814
+f 5594//3819 5579//3801 5593//3815
+f 5589//3820 5574//3802 5588//3816
+f 5584//3811 5599//3814 5600//3817
+f 5595//3836 5580//3818 5594//3819
+f 5590//3823 5575//3805 5589//3820
+f 5585//3799 5600//3817 5601//3821
+f 5580//3818 5595//3836 5596//3822
+f 5591//3826 5576//3808 5590//3823
+f 5586//3803 5601//3821 5602//3824
+f 5581//3804 5596//3822 5597//3825
+f 5592//3813 5577//3810 5591//3826
+f 5582//3807 5597//3825 5598//3827
+f 5596//3822 5611//3840 5612//3828
+f 5607//3831 5592//3813 5606//3829
+f 5597//3825 5612//3828 5613//3830
+f 5608//3833 5593//3815 5607//3831
+f 5598//3827 5613//3830 5614//3832
+f 5609//3837 5594//3819 5608//3833
+f 5604//3838 5589//3820 5603//3834
+f 5599//3814 5614//3832 5615//3835
+f 5610//3844 5595//3836 5609//3837
+f 5605//3841 5590//3823 5604//3838
+f 5600//3817 5615//3835 5616//3839
+f 5595//3836 5610//3844 5611//3840
+f 5606//3829 5591//3826 5605//3841
+f 5601//3821 5616//3839 5617//3842
+f 5615//3835 5630//3855 5631//3843
+f 5610//3844 5625//3858 5626//3845
+f 5621//3849 5606//3829 5620//3846
+f 5616//3839 5631//3843 5632//3847
+f 5611//3840 5626//3845 5627//3848
+f 5622//3851 5607//3831 5621//3849
+f 5612//3828 5627//3848 5628//3850
+f 5623//3853 5608//3833 5622//3851
+f 5613//3830 5628//3850 5629//3852
+f 5624//3856 5609//3837 5623//3853
+f 5603//3834 5618//3870 5619//3854
+f 5614//3832 5629//3852 5630//3855
+f 5625//3858 5610//3844 5624//3856
+f 5604//3838 5619//3854 5620//3846
+f 5629//3852 5645//3868 5646//3857
+f 5641//3877 5625//3858 5640//3859
+f 5619//3854 5635//3871 5636//3860
+f 5630//3855 5646//3857 5647//3861
+f 5625//3858 5641//3877 5642//3862
+f 5637//3865 5621//3849 5636//3860
+f 5631//3843 5647//3861 5648//3863
+f 5626//3845 5642//3862 5643//3864
+f 5638//3867 5622//3851 5637//3865
+f 5627//3848 5643//3864 5644//3866
+f 5639//3869 5623//3853 5638//3867
+f 5628//3850 5644//3866 5645//3868
+f 5640//3859 5624//3856 5639//3869
+f 5618//3870 5634//3874 5635//3871
+f 5644//3866 5659//3885 5660//3872
+f 5655//3878 5640//3859 5654//3873
+f 5634//3874 5649//3892 5650//3875
+f 5645//3868 5660//3872 5661//3876
+f 5656//3895 5641//3877 5655//3878
+f 5635//3871 5650//3875 5651//3879
+f 5646//3857 5661//3876 5662//3880
+f 5641//3877 5656//3895 5657//3881
+f 5636//3860 5651//3879 5652//3882
+f 5647//3861 5662//3880 5663//3883
+f 5642//3862 5657//3881 5658//3884
+f 5653//3886 5638//3867 5652//3882
+f 5643//3864 5658//3884 5659//3885
+f 5654//3873 5639//3869 5653//3886
+f 5652//3882 5667//3899 5668//3887
+f 5674//3890 5659//3885 5673//3888
+f 5653//3886 5668//3887 5669//3889
+f 5675//3894 5660//3872 5674//3890
+f 5654//3873 5669//3889 5670//3891
+f 5665//3912 5650//3875 5664//3893
+f 5676//3898 5661//3876 5675//3894
+f 5655//3878 5670//3891 5671//3896
+f 5650//3875 5665//3912 5666//3897
+f 5677//3900 5662//3880 5676//3898
+f 5672//3901 5657//3881 5671//3896
+f 5651//3879 5666//3897 5667//3899
+f 5678//3904 5663//3883 5677//3900
+f 5673//3888 5658//3884 5672//3901
+f 5687//3906 5672//3901 5686//3902
+f 5682//3921 5667//3899 5681//3903
+f 5693//3923 5678//3904 5692//3905
+f 5688//3908 5673//3888 5687//3906
+f 5667//3899 5682//3921 5683//3907
+f 5689//3910 5674//3890 5688//3908
+f 5668//3887 5683//3907 5684//3909
+f 5690//3914 5675//3894 5689//3910
+f 5669//3889 5684//3909 5685//3911
+f 5680//3915 5665//3912 5679//3913
+f 5691//3916 5676//3898 5690//3914
+f 5670//3891 5685//3911 5686//3902
+f 5681//3903 5666//3897 5680//3915
+f 5692//3905 5677//3900 5691//3916
+f 5706//3920 5691//3916 5705//3917
+f 5685//3911 5700//3930 5701//3918
+f 5696//3922 5681//3903 5695//3919
+f 5707//3924 5692//3905 5706//3920
+f 5702//3925 5687//3906 5701//3918
+f 5697//3939 5682//3921 5696//3922
+f 5708//3941 5693//3923 5707//3924
+f 5703//3927 5688//3908 5702//3925
+f 5682//3921 5697//3939 5698//3926
+f 5704//3929 5689//3910 5703//3927
+f 5683//3907 5698//3926 5699//3928
+f 5705//3917 5690//3914 5704//3929
+f 5684//3909 5699//3928 5700//3930
+f 5695//3919 5680//3915 5694//3931
+f 5720//3935 5705//3917 5719//3932
+f 5699//3928 5714//3946 5715//3933
+f 5710//3937 5695//3919 5709//3934
+f 5721//3938 5706//3920 5720//3935
+f 5700//3930 5715//3933 5716//3936
+f 5711//3955 5696//3922 5710//3937
+f 5722//3942 5707//3924 5721//3938
+f 5717//3943 5702//3925 5716//3936
+f 5696//3922 5711//3955 5712//3940
+f 5723//3959 5708//3941 5722//3942
+f 5718//3945 5703//3927 5717//3943
+f 5697//3939 5712//3940 5713//3944
+f 5719//3932 5704//3929 5718//3945
+f 5698//3926 5713//3944 5714//3946
+f 5712//3940 5727//3958 5728//3947
+f 5734//3950 5719//3932 5733//3948
+f 5713//3944 5728//3947 5729//3949
+f 5735//3953 5720//3935 5734//3950
+f 5714//3946 5729//3949 5730//3951
+f 5709//3934 5724//3972 5725//3952
+f 5736//3957 5721//3938 5735//3953
+f 5715//3933 5730//3951 5731//3954
+f 5710//3937 5725//3952 5726//3956
+f 5737//3960 5722//3942 5736//3957
+f 5732//3961 5717//3943 5731//3954
+f 5711//3955 5726//3956 5727//3958
+f 5738//3964 5723//3959 5737//3960
+f 5733//3948 5718//3945 5732//3961
+f 5747//3966 5732//3961 5746//3962
+f 5726//3956 5741//3975 5742//3963
+f 5753//3982 5738//3964 5752//3965
+f 5748//3968 5733//3948 5747//3966
+f 5727//3958 5742//3963 5743//3967
+f 5749//3970 5734//3950 5748//3968
+f 5728//3947 5743//3967 5744//3969
+f 5750//3974 5735//3953 5749//3970
+f 5729//3949 5744//3969 5745//3971
+f 5724//3972 5739//3990 5740//3973
+f 5751//3976 5736//3957 5750//3974
+f 5730//3951 5745//3971 5746//3962
+f 5725//3952 5740//3973 5741//3975
+f 5752//3965 5737//3960 5751//3976
+f 5767//3980 5751//3976 5766//3977
+f 5745//3971 5761//3989 5762//3978
+f 5740//3973 5756//3991 5757//3979
+f 5768//3983 5752//3965 5767//3980
+f 5763//3984 5747//3966 5762//3978
+f 5741//3975 5757//3979 5758//3981
+f 5769//4001 5753//3982 5768//3983
+f 5764//3986 5748//3968 5763//3984
+f 5742//3963 5758//3981 5759//3985
+f 5765//3988 5749//3970 5764//3986
+f 5743//3967 5759//3985 5760//3987
+f 5766//3977 5750//3974 5765//3988
+f 5744//3969 5760//3987 5761//3989
+f 5739//3990 5755//3994 5756//3991
+f 5781//3996 5766//3977 5780//3992
+f 5760//3987 5775//4006 5776//3993
+f 5771//3998 5756//3991 5770//3995
+f 5782//3999 5767//3980 5781//3996
+f 5761//3989 5776//3993 5777//3997
+f 5772//4000 5757//3979 5771//3998
+f 5783//4002 5768//3983 5782//3999
+f 5778//4003 5763//3984 5777//3997
+f 5773//4009 5758//3981 5772//4000
+f 5784//4008 5769//4001 5783//4002
+f 5779//4005 5764//3986 5778//4003
+f 5758//3981 5773//4009 5774//4004
+f 5780//3992 5765//3988 5779//4005
+f 5759//3985 5774//4004 5775//4006
+f 5779//4005 5312//3550 5313//3554
+f 5308//3530 5775//4006 5307//3552
+f 5780//3992 5313//3554 5314//3536
+f 5309//3529 5776//3993 5308//3530
+f 5304//3532 5771//3998 5303//3533
+f 5781//3996 5314//3536 5315//3535
+f 5310//3538 5777//3997 5309//3529
+f 5305//3540 5772//4000 5304//3532
+f 5782//3999 5315//3535 5316//3542
+f 5777//3997 5310//3538 5311//3544
+f 5306//3546 5773//4009 5305//3540
+f 5783//4002 5316//3542 5317//3548
+f 5778//4003 5311//3544 5312//3550
+f 5307//3552 5774//4004 5306//3546
+o Ear_L_Sphere.007
+v -0.915017 0.106478 0.822725
+v -0.944167 0.121570 0.840173
+v -0.974060 0.150175 0.857679
+v -0.996357 0.185345 0.870613
+v -1.023624 0.171071 0.887158
+v -1.038620 0.139410 0.896437
+v -1.047854 0.105055 0.902151
+v -1.050972 0.069327 0.904081
+v -1.047854 0.033599 0.902151
+v -1.038620 -0.000755 0.896437
+v -1.023624 -0.032417 0.887158
+v -1.003443 -0.060169 0.874670
+v -0.978852 -0.082944 0.859453
+v -0.950796 -0.099867 0.842093
+v -0.920354 -0.110289 0.823256
+v -0.917142 0.105813 0.817309
+v -0.948467 0.119916 0.829345
+v -0.980546 0.149639 0.841337
+v -1.003465 0.185802 0.850238
+v -1.033723 0.171071 0.861992
+v -1.049842 0.139410 0.868475
+v -1.059768 0.105055 0.872466
+v -1.063119 0.069327 0.873814
+v -1.059768 0.033599 0.872466
+v -1.049842 -0.000755 0.868475
+v -1.033723 -0.032417 0.861992
+v -1.012032 -0.060169 0.853268
+v -0.985600 -0.082944 0.842638
+v -0.955444 -0.099867 0.830510
+v -0.922723 -0.110289 0.817351
+v -0.918009 0.105364 0.811327
+v -0.949964 0.118024 0.817446
+v -0.981711 0.143600 0.823584
+v -1.006807 0.178160 0.828467
+v -1.038250 0.171071 0.834585
+v -1.054871 0.139410 0.838021
+v -1.065107 0.105055 0.840137
+v -1.068563 0.069327 0.840852
+v -1.065107 0.033599 0.840137
+v -1.054871 -0.000755 0.838021
+v -1.038250 -0.032417 0.834585
+v -1.015881 -0.060169 0.829960
+v -0.988624 -0.082944 0.824325
+v -0.957527 -0.099867 0.817896
+v -0.923785 -0.110289 0.810920
+v -0.917793 0.105605 0.805026
+v -0.949557 0.118435 0.804940
+v -0.981430 0.144211 0.804957
+v -1.006395 0.178959 0.805648
+v -1.037029 0.171071 0.805989
+v -1.053515 0.139410 0.806248
+v -1.063667 0.105055 0.806407
+v -1.067095 0.069327 0.806460
+v -1.063667 0.033599 0.806407
+v -1.053515 -0.000755 0.806248
+v -1.037029 -0.032417 0.805989
+v -1.014843 -0.060169 0.805642
+v -0.987808 -0.082944 0.805218
+v -0.956966 -0.099867 0.804735
+v -0.923499 -0.110289 0.804211
+v -0.916416 0.106636 0.798779
+v -0.946809 0.121198 0.792549
+v -0.978086 0.148035 0.786387
+v -1.002990 0.184085 0.782334
+v -1.030107 0.171071 0.777305
+v -1.045824 0.139410 0.774375
+v -1.055502 0.105055 0.772571
+v -1.058770 0.069327 0.771962
+v -1.055502 0.033599 0.772571
+v -1.045824 -0.000755 0.774375
+v -1.030107 -0.032417 0.777305
+v -1.008956 -0.060169 0.781247
+v -0.983184 -0.082944 0.786052
+v -0.953780 -0.099867 0.791533
+v -0.921875 -0.110289 0.797480
+v -0.913859 0.108151 0.792925
+v -0.941519 0.124970 0.780992
+v -0.969813 0.155093 0.769376
+v -0.998435 0.198761 0.757718
+v -1.017752 0.171071 0.749633
+v -1.032095 0.139410 0.743628
+v -1.040928 0.105055 0.739930
+v -1.043910 0.069327 0.738681
+v -1.040928 0.033599 0.739930
+v -1.032095 -0.000755 0.743628
+v -1.017752 -0.032417 0.749633
+v -0.998449 -0.060169 0.757715
+v -0.974928 -0.082944 0.767562
+v -0.948093 -0.099867 0.778797
+v -0.918976 -0.110289 0.790988
+v -0.910332 0.109658 0.787636
+v -0.934346 0.128011 0.770420
+v -0.958936 0.157463 0.753273
+v -0.983723 0.198822 0.735948
+v -1.000436 0.171071 0.724038
+v -1.012855 0.139410 0.715188
+v -1.020503 0.105055 0.709738
+v -1.023085 0.069327 0.707898
+v -1.020503 0.033599 0.709738
+v -1.012855 -0.000755 0.715188
+v -1.000436 -0.032417 0.724038
+v -0.983723 -0.060169 0.735948
+v -0.963358 -0.082944 0.750460
+v -0.940124 -0.099867 0.767017
+v -0.914913 -0.110289 0.784982
+v -0.906016 0.111060 0.783036
+v -0.925554 0.130997 0.761135
+v -0.945557 0.162077 0.739272
+v -0.965346 0.198823 0.716783
+v -0.978827 0.171071 0.701502
+v -0.988844 0.139410 0.690148
+v -0.995013 0.105055 0.683156
+v -0.997096 0.069327 0.680795
+v -0.995013 0.033599 0.683156
+v -0.988844 -0.000755 0.690148
+v -0.978827 -0.032417 0.701502
+v -0.965346 -0.060169 0.716783
+v -0.948919 -0.082944 0.735402
+v -0.930178 -0.099867 0.756645
+v -0.909843 -0.110289 0.779695
+v -0.901069 0.112214 0.779233
+v -0.915486 0.133416 0.753375
+v -0.930270 0.166676 0.727294
+v -0.944022 0.198821 0.700958
+v -0.953753 0.171071 0.682893
+v -0.960984 0.139410 0.669471
+v -0.965437 0.105055 0.661205
+v -0.966940 0.069327 0.658414
+v -0.965437 0.033599 0.661205
+v -0.960984 -0.000755 0.669471
+v -0.953753 -0.032417 0.682893
+v -0.944023 -0.060169 0.700957
+v -0.932166 -0.082944 0.722968
+v -0.918638 -0.099867 0.748080
+v -0.903960 -0.110289 0.775328
+v -0.895626 0.111755 0.776282
+v -0.904334 0.134112 0.747446
+v -0.913069 0.167604 0.718179
+v -0.920573 0.198823 0.689078
+v -0.926180 0.171071 0.668925
+v -0.930346 0.139410 0.653950
+v -0.932912 0.105055 0.644729
+v -0.933778 0.069327 0.641615
+v -0.932912 0.033599 0.644729
+v -0.930346 -0.000755 0.653950
+v -0.926180 -0.032417 0.668925
+v -0.920573 -0.060169 0.689078
+v -0.913742 -0.082944 0.713635
+v -0.905947 -0.099867 0.741651
+v -0.897490 -0.110289 0.772051
+v -0.889762 0.111002 0.774361
+v -0.892562 0.134385 0.743651
+v -0.895152 0.169335 0.712297
+v -0.895899 0.198823 0.681603
+v -0.897166 0.171071 0.660135
+v -0.898108 0.139410 0.644183
+v -0.898687 0.105055 0.634360
+v -0.898883 0.069327 0.631043
+v -0.898687 0.033599 0.634360
+v -0.898108 -0.000755 0.644183
+v -0.897166 -0.032417 0.660135
+v -0.895899 -0.060169 0.681603
+v -0.894355 -0.082944 0.707762
+v -0.892594 -0.099867 0.737606
+v -0.890683 -0.110289 0.769989
+v -0.883738 0.110630 0.773750
+v -0.880559 0.133393 0.742262
+v -0.876971 0.168158 0.709891
+v -0.870948 0.198823 0.678819
+v -0.867827 0.171071 0.656861
+v -0.865507 0.139410 0.640545
+v -0.864079 0.105055 0.630498
+v -0.863597 0.069327 0.627105
+v -0.864079 0.033599 0.630498
+v -0.865507 -0.000755 0.640545
+v -0.867827 -0.032417 0.656861
+v -0.870948 -0.060169 0.678819
+v -0.874751 -0.082944 0.705574
+v -0.879090 -0.099867 0.736099
+v -0.883799 -0.110289 0.769220
+v -0.877838 0.109884 0.774405
+v -0.868491 0.130362 0.743495
+v -0.858373 0.162037 0.711872
+v -0.846679 0.198823 0.680832
+v -0.839289 0.171071 0.659229
+v -0.833798 0.139410 0.643176
+v -0.830417 0.105055 0.633291
+v -0.829275 0.069327 0.629953
+v -0.830417 0.033599 0.633291
+v -0.833798 -0.000755 0.643176
+v -0.839289 -0.032417 0.659229
+v -0.846679 -0.060169 0.680832
+v -0.855683 -0.082944 0.707156
+v -0.865956 -0.099867 0.737189
+v -0.877103 -0.110289 0.769776
+v -0.872176 0.110631 0.776393
+v -0.856963 0.127180 0.747197
+v -0.841001 0.157407 0.717612
+v -0.824024 0.198823 0.687566
+v -0.812650 0.171071 0.667147
+v -0.804199 0.139410 0.651974
+v -0.798994 0.105055 0.642631
+v -0.797237 0.069327 0.639476
+v -0.798994 0.033599 0.642631
+v -0.804199 -0.000755 0.651974
+v -0.812650 -0.032417 0.667147
+v -0.824024 -0.060169 0.687566
+v -0.837883 -0.082944 0.712447
+v -0.853695 -0.099867 0.740833
+v -0.870852 -0.110289 0.771634
+v -0.866903 0.109523 0.779436
+v -0.846467 0.125727 0.753212
+v -0.825399 0.156023 0.726481
+v -0.803855 0.198823 0.698761
+v -0.788934 0.171071 0.680311
+v -0.777846 0.139410 0.666602
+v -0.771019 0.105055 0.658159
+v -0.768713 0.069327 0.655308
+v -0.771019 0.033599 0.658159
+v -0.777846 -0.000755 0.666602
+v -0.788934 -0.032417 0.680311
+v -0.803855 -0.060169 0.698761
+v -0.822037 -0.082944 0.721243
+v -0.842780 -0.099867 0.746892
+v -0.865288 -0.110289 0.774723
+v -0.862351 0.109562 0.783572
+v -0.837570 0.126715 0.761314
+v -0.812291 0.157574 0.738378
+v -0.786946 0.198823 0.713988
+v -0.769051 0.171071 0.698216
+v -0.755754 0.139410 0.686496
+v -0.747565 0.105055 0.679279
+v -0.744800 0.069327 0.676842
+v -0.747565 0.033599 0.679279
+v -0.755754 -0.000755 0.686496
+v -0.769051 -0.032417 0.698216
+v -0.786946 -0.060169 0.713988
+v -0.808751 -0.082944 0.733206
+v -0.833629 -0.099867 0.755132
+v -0.860622 -0.110289 0.778924
+v -0.858846 0.110952 0.788547
+v -0.830706 0.128755 0.770964
+v -0.802114 0.161643 0.752724
+v -0.773947 0.198823 0.732661
+v -0.753766 0.171071 0.720173
+v -0.738770 0.139410 0.710894
+v -0.729536 0.105055 0.705180
+v -0.726417 0.069327 0.703250
+v -0.729536 0.033599 0.705180
+v -0.738770 -0.000755 0.710894
+v -0.753766 -0.032417 0.720173
+v -0.773947 -0.060169 0.732661
+v -0.798538 -0.082944 0.747878
+v -0.826594 -0.099867 0.765238
+v -0.857036 -0.110289 0.784075
+v -0.856630 0.113125 0.793972
+v -0.826435 0.132465 0.781603
+v -0.795729 0.167607 0.768372
+v -0.765358 0.198823 0.754063
+v -0.743666 0.171071 0.745339
+v -0.727548 0.139410 0.738857
+v -0.717622 0.105055 0.734865
+v -0.714271 0.069327 0.733517
+v -0.717622 0.033599 0.734865
+v -0.727548 -0.000755 0.738857
+v -0.743666 -0.032417 0.745339
+v -0.765358 -0.060169 0.754063
+v -0.791790 -0.082944 0.764693
+v -0.821946 -0.099867 0.776821
+v -0.854666 -0.110289 0.789980
+v -0.855735 0.115404 0.799635
+v -0.824640 0.134309 0.793029
+v -0.793462 0.163081 0.785518
+v -0.761509 0.198823 0.777371
+v -0.739140 0.171071 0.772746
+v -0.722518 0.139410 0.769310
+v -0.712283 0.105055 0.767194
+v -0.708827 0.069327 0.766479
+v -0.712283 0.033599 0.767194
+v -0.722519 -0.000755 0.769310
+v -0.739140 -0.032417 0.772746
+v -0.761509 -0.060169 0.777371
+v -0.788766 -0.082944 0.783006
+v -0.819862 -0.099867 0.789435
+v -0.853604 -0.110289 0.796411
+v -0.855912 0.117033 0.805669
+v -0.825242 0.135866 0.805083
+v -0.794364 0.162174 0.803689
+v -0.762547 0.198823 0.801689
+v -0.740361 0.171071 0.801342
+v -0.723875 0.139410 0.801083
+v -0.713723 0.105055 0.800924
+v -0.710295 0.069327 0.800871
+v -0.713723 0.033599 0.800924
+v -0.723875 -0.000755 0.801083
+v -0.740361 -0.032417 0.801342
+v -0.762547 -0.060169 0.801689
+v -0.789581 -0.082944 0.802113
+v -0.820424 -0.099867 0.802596
+v -0.853891 -0.110289 0.803120
+v -0.857125 0.119010 0.811770
+v -0.828152 0.136665 0.817148
+v -0.798761 0.164559 0.821820
+v -0.768434 0.198823 0.826084
+v -0.747282 0.171071 0.830026
+v -0.731566 0.139410 0.832956
+v -0.721888 0.105055 0.834760
+v -0.718620 0.069327 0.835370
+v -0.721888 0.033599 0.834760
+v -0.731566 -0.000755 0.832956
+v -0.747282 -0.032417 0.830026
+v -0.768434 -0.060169 0.826084
+v -0.794206 -0.082944 0.821279
+v -0.823610 -0.099867 0.815798
+v -0.855515 -0.110289 0.809851
+v -0.859463 0.120953 0.817597
+v -0.833166 0.138262 0.828689
+v -0.806381 0.168068 0.839193
+v -0.778941 0.198823 0.849616
+v -0.759638 0.171071 0.857698
+v -0.745295 0.139410 0.863703
+v -0.736462 0.105055 0.867401
+v -0.733480 0.069327 0.868650
+v -0.736462 0.033599 0.867401
+v -0.745295 -0.000755 0.863703
+v -0.759638 -0.032417 0.857698
+v -0.778941 -0.060169 0.849616
+v -0.802462 -0.082944 0.839769
+v -0.829297 -0.099867 0.828534
+v -0.858414 -0.110289 0.816343
+v -0.888695 -0.113807 0.803666
+v -0.862920 0.121973 0.822890
+v -0.840167 0.140091 0.839301
+v -0.817067 0.172159 0.855194
+v -0.793667 0.198823 0.871383
+v -0.776954 0.171071 0.883293
+v -0.764535 0.139410 0.892143
+v -0.756887 0.105055 0.897593
+v -0.754305 0.069327 0.899433
+v -0.756887 0.033599 0.897593
+v -0.764535 -0.000755 0.892143
+v -0.776954 -0.032417 0.883293
+v -0.793667 -0.060169 0.871383
+v -0.814032 -0.082944 0.856871
+v -0.837266 -0.099867 0.840314
+v -0.862477 -0.110289 0.822349
+v -0.867203 0.121924 0.827362
+v -0.848925 0.142079 0.848684
+v -0.830572 0.178690 0.869438
+v -0.812044 0.198823 0.890548
+v -0.798563 0.171071 0.905829
+v -0.788546 0.139410 0.917183
+v -0.782377 0.105055 0.924175
+v -0.780294 0.069327 0.926536
+v -0.782377 0.033599 0.924175
+v -0.788546 -0.000755 0.917183
+v -0.798563 -0.032417 0.905829
+v -0.812044 -0.060169 0.890548
+v -0.828471 -0.082944 0.871929
+v -0.847212 -0.099867 0.850686
+v -0.867547 -0.110289 0.827636
+v -0.872288 0.119615 0.830918
+v -0.859094 0.143088 0.856348
+v -0.846492 0.188867 0.881489
+v -0.833367 0.198823 0.906374
+v -0.823636 0.171071 0.924438
+v -0.816406 0.139410 0.937860
+v -0.811953 0.105055 0.946126
+v -0.810450 0.069327 0.948917
+v -0.811953 0.033599 0.946126
+v -0.816406 -0.000755 0.937860
+v -0.823636 -0.032417 0.924438
+v -0.833367 -0.060169 0.906374
+v -0.845224 -0.082944 0.884363
+v -0.858752 -0.099867 0.859251
+v -0.873430 -0.110289 0.832003
+v -0.878094 0.116394 0.833596
+v -0.870401 0.136881 0.862016
+v -0.863899 0.172816 0.890506
+v -0.856820 0.198797 0.918239
+v -0.851210 0.171071 0.938406
+v -0.847044 0.139410 0.953381
+v -0.844478 0.105055 0.962602
+v -0.843612 0.069327 0.965716
+v -0.844478 0.033599 0.962602
+v -0.847044 -0.000755 0.953381
+v -0.851210 -0.032417 0.938406
+v -0.856816 -0.060169 0.918253
+v -0.863648 -0.082944 0.893696
+v -0.871442 -0.099867 0.865680
+v -0.879900 -0.110289 0.835280
+v -0.884354 0.113251 0.835312
+v -0.882579 0.129995 0.865697
+v -0.881852 0.160637 0.896308
+v -0.881493 0.198775 0.925701
+v -0.880224 0.171071 0.947196
+v -0.879282 0.139410 0.963148
+v -0.878702 0.105055 0.972971
+v -0.878507 0.069327 0.976288
+v -0.878702 0.033599 0.972971
+v -0.879282 -0.000755 0.963148
+v -0.880224 -0.032417 0.947196
+v -0.881491 -0.060169 0.925728
+v -0.883035 -0.082944 0.899569
+v -0.884796 -0.099867 0.869725
+v -0.886707 -0.110289 0.837342
+v -0.890784 0.110833 0.835950
+v -0.895449 0.124746 0.867121
+v -0.900725 0.157100 0.897831
+v -0.906441 0.198811 0.928505
+v -0.909563 0.171071 0.950470
+v -0.911882 0.139410 0.966786
+v -0.913311 0.105055 0.976833
+v -0.913793 0.069327 0.980225
+v -0.913311 0.033599 0.976833
+v -0.911882 -0.000755 0.966786
+v -0.909563 -0.032417 0.950470
+v -0.906442 -0.060169 0.928512
+v -0.902639 -0.082944 0.901757
+v -0.898300 -0.099867 0.871232
+v -0.893591 -0.110289 0.838111
+v -0.897038 0.109615 0.835419
+v -0.907826 0.126885 0.865629
+v -0.919032 0.156820 0.895940
+v -0.930711 0.198823 0.926499
+v -0.938101 0.171071 0.948102
+v -0.943592 0.139410 0.964155
+v -0.946973 0.105055 0.974040
+v -0.948115 0.069327 0.977378
+v -0.946973 0.033599 0.974040
+v -0.943592 -0.000755 0.964155
+v -0.938101 -0.032417 0.948102
+v -0.930711 -0.060169 0.926499
+v -0.921707 -0.082944 0.900175
+v -0.911434 -0.099867 0.870142
+v -0.900287 -0.110289 0.837555
+v -0.902747 0.108911 0.833785
+v -0.919343 0.126336 0.862550
+v -0.936096 0.156384 0.890935
+v -0.953366 0.198823 0.919765
+v -0.964740 0.171071 0.940184
+v -0.973191 0.139410 0.955357
+v -0.978396 0.105055 0.964700
+v -0.980153 0.069327 0.967855
+v -0.978396 0.033599 0.964700
+v -0.973191 -0.000755 0.955357
+v -0.964740 -0.032417 0.940184
+v -0.953366 -0.060169 0.919765
+v -0.939506 -0.082944 0.894884
+v -0.923694 -0.099867 0.866498
+v -0.906538 -0.110289 0.835697
+v -0.886821 0.108050 0.805276
+v -0.907688 0.108589 0.831044
+v -0.929275 0.124972 0.857060
+v -0.951206 0.155948 0.882674
+v -0.973533 0.198816 0.908568
+v -0.988456 0.171071 0.927020
+v -0.999544 0.139410 0.940729
+v -1.006371 0.105055 0.949172
+v -1.008677 0.069327 0.952022
+v -1.006371 0.033599 0.949172
+v -0.999544 -0.000755 0.940729
+v -0.988456 -0.032417 0.927020
+v -0.973535 -0.060169 0.908570
+v -0.955353 -0.082944 0.886088
+v -0.934610 -0.099867 0.860439
+v -0.912102 -0.110289 0.832609
+v -0.911797 0.107654 0.827343
+v -0.937569 0.123775 0.849490
+v -0.963876 0.154073 0.871440
+v -0.985613 0.187155 0.889769
+v -1.008339 0.171071 0.909115
+v -1.021636 0.139410 0.920835
+v -1.029824 0.105055 0.928052
+v -1.032589 0.069327 0.930489
+v -1.029825 0.033599 0.928052
+v -1.021636 -0.000755 0.920835
+v -1.008339 -0.032417 0.909115
+v -0.990444 -0.060169 0.893343
+v -0.968638 -0.082944 0.874125
+v -0.943761 -0.099867 0.852199
+v -0.916767 -0.110289 0.828407
+vn -0.943907 0.197516 0.264595
+vn 0.474410 0.846034 -0.243110
+vn 0.189673 0.975890 -0.107700
+vn -0.724845 -0.567095 0.391125
+vn -0.202490 -0.979186 0.011109
+vn -0.998108 0.000000 0.061373
+vn -0.972839 0.187139 -0.135990
+vn -0.860256 -0.178137 -0.477676
+vn 0.428510 0.772362 0.468856
+vn 0.369884 0.764306 0.528184
+vn -0.874294 0.000000 -0.485366
+vn -0.328166 -0.906491 -0.265633
+vn -0.030274 0.999146 -0.027039
+vn -0.493789 -0.664998 -0.560259
+vn 0.312662 0.748894 0.584246
+vn 0.166234 0.917997 0.359996
+vn -0.081942 -0.975890 -0.202246
+vn -0.009033 -0.818598 -0.574236
+vn -0.064699 0.946013 0.317515
+vn 0.026704 0.998230 -0.052797
+vn 0.272134 -0.710532 -0.648854
+vn -0.317606 0.829768 0.458876
+vn 0.316660 -0.837947 -0.444441
+vn 0.478469 0.567003 -0.670431
+vn 0.532487 -0.833369 -0.148076
+vn 0.972869 0.187139 0.135990
+vn 0.553331 -0.811121 0.189276
+vn 0.387494 -0.912198 0.133030
+vn 0.860256 0.178137 0.477676
+vn 0.171636 -0.975249 0.139225
+vn -0.344157 0.863186 -0.369366
+vn -0.512497 0.624989 -0.588794
+vn 0.081942 -0.975890 0.202216
+vn 0.009033 -0.818598 0.574236
+vn 0.044038 -0.976867 0.209235
+vn -0.154302 -0.549699 0.820948
+vn 0.154057 0.811884 -0.563097
+vn -0.054750 0.636555 -0.769250
+vn 0.002075 0.999268 0.037935
+vn -0.071047 -0.920469 0.384289
+vn -0.010163 0.999207 0.038087
+vn -0.087680 0.942198 -0.323344
+vn 0.161962 0.802271 -0.574541
+vn -0.272164 -0.710532 0.648854
+vn -0.213446 -0.833277 0.509964
+vn -0.520859 -0.719382 0.459517
+vn 0.336100 0.820551 -0.462233
+usemtl Body
+s 1
+f 5791//3529 5790//3530 5805//3531
+f 5786//3532 5785//3533 5800//3534
+f 5797//3535 5796//3536 5812//3537
+f 5792//3538 5791//3529 5806//4010
+f 5787//3540 5786//3532 5801//4011
+f 5798//3542 5797//3535 5813//3543
+f 5793//3544 5792//3538 5808//3545
+f 5788//4012 5787//3540 5802//3547
+f 5799//3548 5798//3542 5814//3549
+f 5794//3550 5793//3544 5809//3551
+f 5789//3552 5788//4012 5803//3553
+f 5795//4013 5794//3550 5810//3555
+f 5790//3530 5789//3552 5804//3556
+f 5796//3536 5795//4013 5811//3557
+f 5811//3557 5810//3555 5826//3558
+f 5806//4010 5805//3531 5820//3559
+f 5801//4011 5800//3534 5815//3560
+f 5812//3537 5811//3557 5827//3561
+f 5807//3562 5806//4010 5821//3563
+f 5802//3547 5801//4011 5816//3564
+f 5813//3543 5812//3537 5828//3565
+f 5808//3545 5807//3562 5823//3566
+f 5803//3553 5802//3547 5817//3567
+f 5814//3549 5813//3543 5829//4014
+f 5809//3551 5808//3545 5824//3569
+f 5804//3556 5803//3553 5818//3570
+f 5810//3555 5809//3551 5825//3571
+f 5805//3531 5804//3556 5819//3572
+f 5825//3571 5824//3569 5840//3573
+f 5820//3559 5819//3572 5834//3574
+f 5826//3558 5825//3571 5841//3575
+f 5821//3563 5820//3559 5835//3576
+f 5816//3564 5815//3560 5830//3577
+f 5827//3561 5826//3558 5842//3578
+f 5822//4015 5821//3563 5836//4016
+f 5817//3567 5816//3564 5831//3581
+f 5828//3565 5827//3561 5843//3582
+f 5823//3566 5822//4015 5838//3583
+f 5818//3570 5817//3567 5832//3584
+f 5829//4014 5828//3565 5844//3585
+f 5824//3569 5823//3566 5839//3586
+f 5819//3572 5818//3570 5833//3587
+f 5844//3585 5843//3582 5859//3588
+f 5839//3586 5838//3583 5854//3589
+f 5834//3574 5833//3587 5848//3590
+f 5840//3573 5839//3586 5855//3591
+f 5835//3576 5834//3574 5849//3592
+f 5841//3575 5840//3573 5856//3593
+f 5836//4016 5835//3576 5850//3594
+f 5831//3581 5830//3577 5845//3595
+f 5842//3578 5841//3575 5857//3596
+f 5837//3597 5836//4016 5851//3598
+f 5832//3584 5831//3581 5847//3599
+f 5843//3582 5842//3578 5858//3600
+f 5838//3583 5837//3597 5853//3601
+f 5833//3587 5832//3584 5848//3590
+f 5847//3599 5846//3602 5862//3603
+f 5858//3600 5857//3596 5873//3604
+f 5853//3601 5852//3605 5868//4017
+f 5848//3590 5847//3599 5863//3607
+f 5859//3588 5858//3600 5874//3608
+f 5854//3589 5853//3601 5869//3609
+f 5849//3592 5848//3590 5863//3607
+f 5855//3591 5854//3589 5870//3610
+f 5850//3594 5849//3592 5864//3611
+f 5856//3593 5855//3591 5871//3612
+f 5851//3598 5850//3594 5865//3613
+f 5846//3602 5845//3595 5861//4018
+f 5857//3596 5856//3593 5872//3615
+f 5852//3605 5851//3598 5866//3616
+f 5866//3616 5865//3613 5880//3617
+f 5861//4018 5860//3618 5876//4019
+f 5872//3615 5871//3612 5887//3620
+f 5867//4020 5866//3616 5881//3622
+f 5862//3603 5861//4018 5877//3623
+f 5873//3604 5872//3615 5888//4021
+f 5868//4017 5867//4020 5883//3625
+f 5863//3607 5862//3603 5877//3623
+f 5874//3608 5873//3604 5889//3626
+f 5869//3609 5868//4017 5884//3627
+f 5864//3611 5863//3607 5878//4022
+f 5870//3610 5869//3609 5885//3629
+f 5865//3613 5864//3611 5879//3630
+f 5871//3612 5870//3610 5886//3631
+f 5885//3629 5884//3627 5900//3632
+f 5880//3617 5879//3630 5894//3633
+f 5886//3631 5885//3629 5901//4023
+f 5881//3622 5880//3617 5895//3635
+f 5876//4019 5875//3636 5891//4024
+f 5887//3620 5886//3631 5902//3638
+f 5882//3639 5881//3622 5896//3640
+f 5877//3623 5876//4019 5892//3641
+f 5888//4021 5887//3620 5903//3642
+f 5883//3625 5882//3639 5898//3643
+f 5878//4022 5877//3623 5893//3644
+f 5889//3626 5888//4021 5904//3645
+f 5884//3627 5883//3625 5899//3646
+f 5879//3630 5878//4022 5893//3644
+f 5904//3645 5903//3642 5918//3647
+f 5899//3646 5898//3643 5913//3648
+f 5894//3633 5893//3644 5909//3649
+f 5900//3632 5899//3646 5914//3650
+f 5895//3635 5894//3633 5910//3651
+f 5901//4023 5900//3632 5915//3652
+f 5896//3640 5895//3635 5911//3653
+f 5891//4024 5890//3654 5906//3655
+f 5902//3638 5901//4023 5916//3656
+f 5897//3657 5896//3640 5912//3658
+f 5892//3641 5891//4024 5907//3659
+f 5903//3642 5902//3638 5917//3660
+f 5898//3643 5897//3657 5912//3658
+f 5893//3644 5892//3641 5908//3661
+f 5907//3659 5906//3655 5922//3662
+f 5918//3647 5917//3660 5932//3663
+f 5913//3648 5912//3658 5927//3664
+f 5908//3661 5907//3659 5923//3665
+f 5919//3666 5918//3647 5933//3667
+f 5914//3650 5913//3648 5928//3668
+f 5909//3649 5908//3661 5924//3669
+f 5915//3652 5914//3650 5929//3670
+f 5910//3651 5909//3649 5925//3671
+f 5916//3656 5915//3652 5930//3672
+f 5911//3653 5910//3651 5926//3673
+f 5906//3655 5905//4025 5921//3675
+f 5917//3660 5916//3656 5931//3676
+f 5912//3658 5911//3653 5927//3664
+f 5926//3673 5925//3671 5941//3677
+f 5921//3675 5920//3678 5936//3679
+f 5932//3663 5931//3676 5946//3680
+f 5927//3664 5926//3673 5942//3681
+f 5922//3662 5921//3675 5937//3682
+f 5933//3667 5932//3663 5947//3683
+f 5928//3668 5927//3664 5942//3681
+f 5923//3665 5922//3662 5938//3684
+f 5934//4026 5933//3667 5948//3686
+f 5929//3670 5928//3668 5943//3687
+f 5924//3669 5923//3665 5939//3688
+f 5930//3672 5929//3670 5944//3689
+f 5925//3671 5924//3669 5940//3690
+f 5931//3676 5930//3672 5945//3691
+f 5945//3691 5944//3689 5959//3692
+f 5940//3690 5939//3688 5955//3693
+f 5946//3680 5945//3691 5960//3694
+f 5941//3677 5940//3690 5956//3695
+f 5936//3679 5935//3696 5951//3697
+f 5947//3683 5946//3680 5961//3698
+f 5942//3681 5941//3677 5957//3699
+f 5937//3682 5936//3679 5952//3700
+f 5948//3686 5947//3683 5962//4027
+f 5943//3687 5942//3681 5957//3699
+f 5938//3684 5937//3682 5953//3702
+f 5949//3703 5948//3686 5963//3704
+f 5944//3689 5943//3687 5958//3705
+f 5939//3688 5938//3684 5954//3706
+f 5964//3707 5963//3704 5978//3708
+f 5959//3692 5958//3705 5973//3709
+f 5954//3706 5953//3702 5969//3710
+f 5960//3694 5959//3692 5974//3711
+f 5955//3693 5954//3706 5970//3712
+f 5961//3698 5960//3694 5975//3713
+f 5956//3695 5955//3693 5971//3714
+f 5951//3697 5950//3715 5965//4028
+f 5962//4027 5961//3698 5976//3717
+f 5957//3699 5956//3695 5972//3718
+f 5952//3700 5951//3697 5966//3719
+f 5963//3704 5962//4027 5977//3720
+f 5958//3705 5957//3699 5972//3718
+f 5953//3702 5952//3700 5968//3721
+f 5978//3708 5977//3720 5992//3722
+f 5973//3709 5972//3718 5987//3723
+f 5968//3721 5967//3724 5983//4029
+f 5979//3726 5978//3708 5993//3727
+f 5974//3711 5973//3709 5988//3728
+f 5969//3710 5968//3721 5984//3729
+f 5975//3713 5974//3711 5989//3730
+f 5970//3712 5969//3710 5985//3731
+f 5976//3717 5975//3713 5990//3732
+f 5971//3714 5970//3712 5986//3733
+f 5966//3719 5965//4028 5980//3734
+f 5977//3720 5976//3717 5991//4030
+f 5972//3718 5971//3714 5987//3723
+f 5967//3724 5966//3719 5981//3736
+f 5981//3736 5980//3734 5995//3737
+f 5992//3722 5991//4030 6006//3738
+f 5987//3723 5986//3733 6002//3739
+f 5982//3740 5981//3736 5996//4031
+f 5993//3727 5992//3722 6007//4032
+f 5988//3728 5987//3723 6002//3739
+f 5983//4029 5982//3740 5998//3743
+f 5994//3744 5993//3727 6008//3745
+f 5989//3730 5988//3728 6003//3746
+f 5984//3729 5983//4029 5999//4033
+f 5990//3732 5989//3730 6004//3748
+f 5985//3731 5984//3729 6000//3749
+f 5991//4030 5990//3732 6005//3750
+f 5986//3733 5985//3731 6001//3751
+f 6000//3749 5999//4033 6015//3752
+f 6006//3738 6005//3750 6020//3753
+f 6001//3751 6000//3749 6016//3754
+f 5996//4031 5995//3737 6011//3755
+f 6007//4032 6006//3738 6021//3756
+f 6002//3739 6001//3751 6017//3757
+f 5997//3758 5996//4031 6012//3759
+f 6008//3745 6007//4032 6022//3760
+f 6003//3746 6002//3739 6017//3757
+f 5998//3743 5997//3758 6013//3761
+f 6009//3762 6008//3745 6023//3763
+f 6004//3748 6003//3746 6018//3764
+f 5999//4033 5998//3743 6014//3765
+f 6005//3750 6004//3748 6019//3766
+f 6019//3766 6018//3764 6034//3767
+f 6014//3765 6013//3761 6028//3768
+f 6020//3753 6019//3766 6035//3769
+f 6015//3752 6014//3765 6029//3770
+f 6021//3756 6020//3753 6036//3771
+f 6016//3754 6015//3752 6030//3772
+f 6011//3755 6010//3773 6026//3774
+f 6022//3760 6021//3756 6037//3775
+f 6017//3757 6016//3754 6031//3776
+f 6012//3759 6011//3755 6027//3777
+f 6023//3763 6022//3760 6038//3778
+f 6018//3764 6017//3757 6033//3779
+f 6013//3761 6012//3759 6028//3768
+f 6024//3780 6023//3763 6039//3781
+f 6038//3778 6037//3775 6053//3782
+f 6033//3779 6032//3783 6048//3784
+f 6028//3768 6027//3777 6043//3785
+f 6039//3781 6038//3778 6054//3786
+f 6034//3767 6033//3779 6049//3787
+f 6029//3770 6028//3768 6043//3785
+f 6035//3769 6034//3767 6050//3788
+f 6030//3772 6029//3770 6044//3789
+f 6036//3771 6035//3769 6051//3790
+f 6031//3776 6030//3772 6045//3791
+f 6026//3774 6025//3792 6041//3793
+f 6037//3775 6036//3771 6052//4034
+f 6032//3783 6031//3776 6046//3795
+f 6027//3777 6026//3774 6042//3796
+f 6041//3793 6040//3797 6055//3798
+f 6052//4034 6051//3790 6067//3799
+f 6047//3800 6046//3795 6061//3801
+f 6042//3796 6041//3793 6056//3802
+f 6053//3782 6052//4034 6068//3803
+f 6048//3784 6047//3800 6063//3804
+f 6043//3785 6042//3796 6057//3805
+f 6054//3786 6053//3782 6069//3806
+f 6049//3787 6048//3784 6064//3807
+f 6044//3789 6043//3785 6058//3808
+f 6050//3788 6049//3787 6065//3809
+f 6045//3791 6044//3789 6059//3810
+f 6051//3790 6050//3788 6066//3811
+f 6046//3795 6045//3791 6060//3812
+f 6060//3812 6059//3810 6074//3813
+f 6066//3811 6065//3809 6081//3814
+f 6061//3801 6060//3812 6075//3815
+f 6056//3802 6055//3798 6070//3816
+f 6067//3799 6066//3811 6082//3817
+f 6062//3818 6061//3801 6076//4035
+f 6057//3805 6056//3802 6071//3820
+f 6068//3803 6067//3799 6083//3821
+f 6063//3804 6062//3818 6078//3822
+f 6058//3808 6057//3805 6072//3823
+f 6069//3806 6068//3803 6084//3824
+f 6064//3807 6063//3804 6079//3825
+f 6059//3810 6058//3808 6073//3826
+f 6065//3809 6064//3807 6080//3827
+f 6079//3825 6078//3822 6094//3828
+f 6074//3813 6073//3826 6088//3829
+f 6080//3827 6079//3825 6095//3830
+f 6075//3815 6074//3813 6089//3831
+f 6081//3814 6080//3827 6096//3832
+f 6076//4035 6075//3815 6090//3833
+f 6071//3820 6070//3816 6085//3834
+f 6082//3817 6081//3814 6097//4036
+f 6077//3836 6076//4035 6091//3837
+f 6072//3823 6071//3820 6086//3838
+f 6083//3821 6082//3817 6098//4037
+f 6078//3822 6077//3836 6093//3840
+f 6073//3826 6072//3823 6087//3841
+f 6084//3824 6083//3821 6099//3842
+f 6098//4037 6097//4036 6113//3843
+f 6093//3840 6092//3844 6108//3845
+f 6088//3829 6087//3841 6102//3846
+f 6099//3842 6098//4037 6114//3847
+f 6094//3828 6093//3840 6109//3848
+f 6089//3831 6088//3829 6103//3849
+f 6095//3830 6094//3828 6110//3850
+f 6090//3833 6089//3831 6104//3851
+f 6096//3832 6095//3830 6111//3852
+f 6091//3837 6090//3833 6105//3853
+f 6086//3838 6085//3834 6101//3854
+f 6097//4036 6096//3832 6112//3855
+f 6092//3844 6091//3837 6106//4038
+f 6087//3841 6086//3838 6102//3846
+f 6112//3855 6111//3852 6128//3857
+f 6107//3858 6106//4038 6122//3859
+f 6102//3846 6101//3854 6118//3860
+f 6113//3843 6112//3855 6129//3861
+f 6108//3845 6107//3858 6124//3862
+f 6103//3849 6102//3846 6118//3860
+f 6114//3847 6113//3843 6130//4039
+f 6109//3848 6108//3845 6125//3864
+f 6104//3851 6103//3849 6119//3865
+f 6110//3850 6109//3848 6126//3866
+f 6105//3853 6104//3851 6120//3867
+f 6111//3852 6110//3850 6127//3868
+f 6106//4038 6105//3853 6121//3869
+f 6101//3854 6100//3870 6117//3871
+f 6127//3868 6126//3866 6142//3872
+f 6122//3859 6121//3869 6136//3873
+f 6117//3871 6116//4040 6132//3875
+f 6128//3857 6127//3868 6143//3876
+f 6123//3877 6122//3859 6137//3878
+f 6118//3860 6117//3871 6133//3879
+f 6129//3861 6128//3857 6144//3880
+f 6124//3862 6123//3877 6139//3881
+f 6119//3865 6118//3860 6134//3882
+f 6130//4039 6129//3861 6145//3883
+f 6125//3864 6124//3862 6140//3884
+f 6120//3867 6119//3865 6134//3882
+f 6126//3866 6125//3864 6141//3885
+f 6121//3869 6120//3867 6135//3886
+f 6135//3886 6134//3882 6150//3887
+f 6141//3885 6140//3884 6155//3888
+f 6136//3873 6135//3886 6151//3889
+f 6142//3872 6141//3885 6156//3890
+f 6137//3878 6136//3873 6152//3891
+f 6132//3875 6131//3892 6146//3893
+f 6143//3876 6142//3872 6157//3894
+f 6138//3895 6137//3878 6153//3896
+f 6133//3879 6132//3875 6148//3897
+f 6144//3880 6143//3876 6158//3898
+f 6139//3881 6138//3895 6153//3896
+f 6134//3882 6133//3879 6149//3899
+f 6145//3883 6144//3880 6159//3900
+f 6140//3884 6139//3881 6154//3901
+f 6154//3901 6153//3896 6168//3902
+f 6149//3899 6148//3897 6163//3903
+f 6160//3904 6159//3900 6174//3905
+f 6155//3888 6154//3901 6169//3906
+f 6150//3887 6149//3899 6165//3907
+f 6156//3890 6155//3888 6170//3908
+f 6151//3889 6150//3887 6166//3909
+f 6157//3894 6156//3890 6171//3910
+f 6152//3891 6151//3889 6167//3911
+f 6147//4041 6146//3893 6161//3913
+f 6158//3898 6157//3894 6172//3914
+f 6153//3896 6152//3891 6168//3902
+f 6148//3897 6147//4041 6162//3915
+f 6159//3900 6158//3898 6173//3916
+f 6173//3916 6172//3914 6187//3917
+f 6168//3902 6167//3911 6183//3918
+f 6163//3903 6162//3915 6177//3919
+f 6174//3905 6173//3916 6188//3920
+f 6169//3906 6168//3902 6183//3918
+f 6164//3921 6163//3903 6178//3922
+f 6175//4042 6174//3905 6189//3924
+f 6170//3908 6169//3906 6184//3925
+f 6165//3907 6164//3921 6180//3926
+f 6171//3910 6170//3908 6185//3927
+f 6166//3909 6165//3907 6181//3928
+f 6172//3914 6171//3910 6186//3929
+f 6167//3911 6166//3909 6182//3930
+f 6162//3915 6161//3913 6176//3931
+f 6187//3917 6186//3929 6201//3932
+f 6182//3930 6181//3928 6197//3933
+f 6177//3919 6176//3931 6191//3934
+f 6188//3920 6187//3917 6202//3935
+f 6183//3918 6182//3930 6198//3936
+f 6178//3922 6177//3919 6192//3937
+f 6189//3924 6188//3920 6203//4043
+f 6184//3925 6183//3918 6198//3936
+f 6179//3939 6178//3922 6194//3940
+f 6190//4044 6189//3924 6204//3942
+f 6185//3927 6184//3925 6199//3943
+f 6180//3926 6179//3939 6195//3944
+f 6186//3929 6185//3927 6200//3945
+f 6181//3928 6180//3926 6196//3946
+f 6195//3944 6194//3940 6210//3947
+f 6201//3932 6200//3945 6215//3948
+f 6196//3946 6195//3944 6211//3949
+f 6202//3935 6201//3932 6216//4045
+f 6197//3933 6196//3946 6212//3951
+f 6192//3937 6191//3934 6207//4046
+f 6203//4043 6202//3935 6217//3953
+f 6198//3936 6197//3933 6213//3954
+f 6193//4047 6192//3937 6208//3956
+f 6204//3942 6203//4043 6218//3957
+f 6199//3943 6198//3936 6213//3954
+f 6194//3940 6193//4047 6209//4048
+f 6205//3959 6204//3942 6219//4049
+f 6200//3945 6199//3943 6214//3961
+f 6214//3961 6213//3954 6228//3962
+f 6209//4048 6208//3956 6224//4050
+f 6220//3964 6219//4049 6234//3965
+f 6215//3948 6214//3961 6229//3966
+f 6210//3947 6209//4048 6225//3967
+f 6216//4045 6215//3948 6230//3968
+f 6211//3949 6210//3947 6226//3969
+f 6217//3953 6216//4045 6231//3970
+f 6212//3951 6211//3949 6227//3971
+f 6207//4046 6206//4051 6222//4052
+f 6218//3957 6217//3953 6232//4053
+f 6213//3954 6212//3951 6228//3962
+f 6208//3956 6207//4046 6223//3975
+f 6219//4049 6218//3957 6233//4054
+f 6233//4054 6232//4053 6248//3977
+f 6228//3962 6227//3971 6244//3978
+f 6223//3975 6222//4052 6239//3979
+f 6234//3965 6233//4054 6249//3980
+f 6229//3966 6228//3962 6244//3978
+f 6224//4050 6223//3975 6240//3981
+f 6235//3982 6234//3965 6250//3983
+f 6230//3968 6229//3966 6245//3984
+f 6225//3967 6224//4050 6241//3985
+f 6231//3970 6230//3968 6246//3986
+f 6226//3969 6225//3967 6242//3987
+f 6232//4053 6231//3970 6247//3988
+f 6227//3971 6226//3969 6243//3989
+f 6222//4052 6221//3990 6238//3991
+f 6248//3977 6247//3988 6262//3992
+f 6243//3989 6242//3987 6258//3993
+f 6238//3991 6237//3994 6252//3995
+f 6249//3980 6248//3977 6263//4055
+f 6244//3978 6243//3989 6259//3997
+f 6239//3979 6238//3991 6253//4056
+f 6250//3983 6249//3980 6264//3999
+f 6245//3984 6244//3978 6259//3997
+f 6240//3981 6239//3979 6254//4000
+f 6251//4001 6250//3983 6265//4002
+f 6246//3986 6245//3984 6260//4003
+f 6241//3985 6240//3981 6256//4004
+f 6247//3988 6246//3986 6261//4005
+f 6242//3987 6241//3985 6257//4006
+f 6115//364 5799//3548 5814//3549
+f 5785//3533 6236//4007 5800//3534
+f 6115//364 5814//3549 5829//4014
+f 5800//3534 6236//4007 5815//3560
+f 6115//364 5829//4014 5844//3585
+f 5815//3560 6236//4007 5830//3577
+f 6115//364 5844//3585 5859//3588
+f 5830//3577 6236//4007 5845//3595
+f 6115//364 5859//3588 5874//3608
+f 5845//3595 6236//4007 5860//3618
+f 6115//364 5874//3608 5889//3626
+f 5860//3618 6236//4007 5875//3636
+f 5875//3636 6236//4007 5890//3654
+f 6115//364 5889//3626 5904//3645
+f 6115//364 5904//3645 5919//3666
+f 5890//3654 6236//4007 5905//4025
+f 6115//364 5919//3666 5934//4026
+f 5905//4025 6236//4007 5920//3678
+f 6115//364 5934//4026 5949//3703
+f 5920//3678 6236//4007 5935//3696
+f 5935//3696 6236//4007 5950//3715
+f 6115//364 5949//3703 5964//3707
+f 6115//364 5964//3707 5979//3726
+f 5950//3715 6236//4007 5965//4028
+f 6115//364 5979//3726 5994//3744
+f 5965//4028 6236//4007 5980//3734
+f 6115//364 5994//3744 6009//3762
+f 5980//3734 6236//4007 5995//3737
+f 5995//3737 6236//4007 6010//3773
+f 6115//364 6009//3762 6024//3780
+f 6115//364 6024//3780 6039//3781
+f 6010//3773 6236//4007 6025//3792
+f 6115//364 6039//3781 6054//3786
+f 6025//3792 6236//4007 6040//3797
+f 6115//364 6054//3786 6069//3806
+f 6040//3797 6236//4007 6055//3798
+f 6055//3798 6236//4007 6070//3816
+f 6115//364 6069//3806 6084//3824
+f 6115//364 6084//3824 6099//3842
+f 6070//3816 6236//4007 6085//3834
+f 6115//364 6099//3842 6114//3847
+f 6085//3834 6236//4007 6100//3870
+f 6115//364 6114//3847 6130//4039
+f 6100//3870 6236//4007 6116//4040
+f 6116//4040 6236//4007 6131//3892
+f 6115//364 6130//4039 6145//3883
+f 6115//364 6145//3883 6160//3904
+f 6131//3892 6236//4007 6146//3893
+f 6115//364 6160//3904 6175//4042
+f 6146//3893 6236//4007 6161//3913
+f 6115//364 6175//4042 6190//4044
+f 6161//3913 6236//4007 6176//3931
+f 6176//3931 6236//4007 6191//3934
+f 6115//364 6190//4044 6205//3959
+f 6115//364 6205//3959 6220//3964
+f 6191//3934 6236//4007 6206//4051
+f 6115//364 6220//3964 6235//3982
+f 6206//4051 6236//4007 6221//3990
+f 6115//364 6235//3982 6251//4001
+f 6221//3990 6236//4007 6237//3994
+f 6115//364 6251//4001 6266//4008
+f 6237//3994 6236//4007 6252//3995
+f 6115//364 6266//4008 5799//3548
+f 6262//3992 6261//4005 5795//4013
+f 6257//4006 6256//4004 5789//3552
+f 6252//3995 6236//4007 5785//3533
+f 6263//4055 6262//3992 5796//3536
+f 6258//3993 6257//4006 5790//3530
+f 6253//4056 6252//3995 5785//3533
+f 6264//3999 6263//4055 5797//3535
+f 6259//3997 6258//3993 5791//3529
+f 6254//4000 6253//4056 5786//3532
+f 6265//4002 6264//3999 5798//3542
+f 6260//4003 6259//3997 5793//3544
+f 6255//4009 6254//4000 5787//3540
+f 6266//4008 6265//4002 5799//3548
+f 6261//4005 6260//4003 5794//3550
+f 6256//4004 6255//4009 5788//4012
+f 5806//4010 5791//3529 5805//3531
+f 5801//4011 5786//3532 5800//3534
+f 5796//3536 5811//3557 5812//3537
+f 5807//3562 5792//3538 5806//4010
+f 5802//3547 5787//3540 5801//4011
+f 5797//3535 5812//3537 5813//3543
+f 5792//3538 5807//3562 5808//3545
+f 5803//3553 5788//4012 5802//3547
+f 5798//3542 5813//3543 5814//3549
+f 5793//3544 5808//3545 5809//3551
+f 5804//3556 5789//3552 5803//3553
+f 5794//3550 5809//3551 5810//3555
+f 5805//3531 5790//3530 5804//3556
+f 5795//4013 5810//3555 5811//3557
+f 5810//3555 5825//3571 5826//3558
+f 5821//3563 5806//4010 5820//3559
+f 5816//3564 5801//4011 5815//3560
+f 5811//3557 5826//3558 5827//3561
+f 5822//4015 5807//3562 5821//3563
+f 5817//3567 5802//3547 5816//3564
+f 5812//3537 5827//3561 5828//3565
+f 5807//3562 5822//4015 5823//3566
+f 5818//3570 5803//3553 5817//3567
+f 5813//3543 5828//3565 5829//4014
+f 5808//3545 5823//3566 5824//3569
+f 5819//3572 5804//3556 5818//3570
+f 5809//3551 5824//3569 5825//3571
+f 5820//3559 5805//3531 5819//3572
+f 5824//3569 5839//3586 5840//3573
+f 5835//3576 5820//3559 5834//3574
+f 5825//3571 5840//3573 5841//3575
+f 5836//4016 5821//3563 5835//3576
+f 5831//3581 5816//3564 5830//3577
+f 5826//3558 5841//3575 5842//3578
+f 5837//3597 5822//4015 5836//4016
+f 5832//3584 5817//3567 5831//3581
+f 5827//3561 5842//3578 5843//3582
+f 5822//4015 5837//3597 5838//3583
+f 5833//3587 5818//3570 5832//3584
+f 5828//3565 5843//3582 5844//3585
+f 5823//3566 5838//3583 5839//3586
+f 5834//3574 5819//3572 5833//3587
+f 5843//3582 5858//3600 5859//3588
+f 5838//3583 5853//3601 5854//3589
+f 5849//3592 5834//3574 5848//3590
+f 5839//3586 5854//3589 5855//3591
+f 5850//3594 5835//3576 5849//3592
+f 5840//3573 5855//3591 5856//3593
+f 5851//3598 5836//4016 5850//3594
+f 5846//3602 5831//3581 5845//3595
+f 5841//3575 5856//3593 5857//3596
+f 5852//3605 5837//3597 5851//3598
+f 5831//3581 5846//3602 5847//3599
+f 5842//3578 5857//3596 5858//3600
+f 5837//3597 5852//3605 5853//3601
+f 5832//3584 5847//3599 5848//3590
+f 5846//3602 5861//4018 5862//3603
+f 5857//3596 5872//3615 5873//3604
+f 5852//3605 5867//4020 5868//4017
+f 5847//3599 5862//3603 5863//3607
+f 5858//3600 5873//3604 5874//3608
+f 5853//3601 5868//4017 5869//3609
+f 5864//3611 5849//3592 5863//3607
+f 5854//3589 5869//3609 5870//3610
+f 5865//3613 5850//3594 5864//3611
+f 5855//3591 5870//3610 5871//3612
+f 5866//3616 5851//3598 5865//3613
+f 5845//3595 5860//3618 5861//4018
+f 5856//3593 5871//3612 5872//3615
+f 5867//4020 5852//3605 5866//3616
+f 5881//3622 5866//3616 5880//3617
+f 5860//3618 5875//3636 5876//4019
+f 5871//3612 5886//3631 5887//3620
+f 5882//3639 5867//4020 5881//3622
+f 5861//4018 5876//4019 5877//3623
+f 5872//3615 5887//3620 5888//4021
+f 5867//4020 5882//3639 5883//3625
+f 5878//4022 5863//3607 5877//3623
+f 5873//3604 5888//4021 5889//3626
+f 5868//4017 5883//3625 5884//3627
+f 5879//3630 5864//3611 5878//4022
+f 5869//3609 5884//3627 5885//3629
+f 5880//3617 5865//3613 5879//3630
+f 5870//3610 5885//3629 5886//3631
+f 5884//3627 5899//3646 5900//3632
+f 5895//3635 5880//3617 5894//3633
+f 5885//3629 5900//3632 5901//4023
+f 5896//3640 5881//3622 5895//3635
+f 5875//3636 5890//3654 5891//4024
+f 5886//3631 5901//4023 5902//3638
+f 5897//3657 5882//3639 5896//3640
+f 5876//4019 5891//4024 5892//3641
+f 5887//3620 5902//3638 5903//3642
+f 5882//3639 5897//3657 5898//3643
+f 5877//3623 5892//3641 5893//3644
+f 5888//4021 5903//3642 5904//3645
+f 5883//3625 5898//3643 5899//3646
+f 5894//3633 5879//3630 5893//3644
+f 5919//3666 5904//3645 5918//3647
+f 5914//3650 5899//3646 5913//3648
+f 5893//3644 5908//3661 5909//3649
+f 5915//3652 5900//3632 5914//3650
+f 5894//3633 5909//3649 5910//3651
+f 5916//3656 5901//4023 5915//3652
+f 5895//3635 5910//3651 5911//3653
+f 5890//3654 5905//4025 5906//3655
+f 5917//3660 5902//3638 5916//3656
+f 5896//3640 5911//3653 5912//3658
+f 5891//4024 5906//3655 5907//3659
+f 5918//3647 5903//3642 5917//3660
+f 5913//3648 5898//3643 5912//3658
+f 5892//3641 5907//3659 5908//3661
+f 5906//3655 5921//3675 5922//3662
+f 5933//3667 5918//3647 5932//3663
+f 5928//3668 5913//3648 5927//3664
+f 5907//3659 5922//3662 5923//3665
+f 5934//4026 5919//3666 5933//3667
+f 5929//3670 5914//3650 5928//3668
+f 5908//3661 5923//3665 5924//3669
+f 5930//3672 5915//3652 5929//3670
+f 5909//3649 5924//3669 5925//3671
+f 5931//3676 5916//3656 5930//3672
+f 5910//3651 5925//3671 5926//3673
+f 5905//4025 5920//3678 5921//3675
+f 5932//3663 5917//3660 5931//3676
+f 5911//3653 5926//3673 5927//3664
+f 5925//3671 5940//3690 5941//3677
+f 5920//3678 5935//3696 5936//3679
+f 5947//3683 5932//3663 5946//3680
+f 5926//3673 5941//3677 5942//3681
+f 5921//3675 5936//3679 5937//3682
+f 5948//3686 5933//3667 5947//3683
+f 5943//3687 5928//3668 5942//3681
+f 5922//3662 5937//3682 5938//3684
+f 5949//3703 5934//4026 5948//3686
+f 5944//3689 5929//3670 5943//3687
+f 5923//3665 5938//3684 5939//3688
+f 5945//3691 5930//3672 5944//3689
+f 5924//3669 5939//3688 5940//3690
+f 5946//3680 5931//3676 5945//3691
+f 5960//3694 5945//3691 5959//3692
+f 5939//3688 5954//3706 5955//3693
+f 5961//3698 5946//3680 5960//3694
+f 5940//3690 5955//3693 5956//3695
+f 5935//3696 5950//3715 5951//3697
+f 5962//4027 5947//3683 5961//3698
+f 5941//3677 5956//3695 5957//3699
+f 5936//3679 5951//3697 5952//3700
+f 5963//3704 5948//3686 5962//4027
+f 5958//3705 5943//3687 5957//3699
+f 5937//3682 5952//3700 5953//3702
+f 5964//3707 5949//3703 5963//3704
+f 5959//3692 5944//3689 5958//3705
+f 5938//3684 5953//3702 5954//3706
+f 5979//3726 5964//3707 5978//3708
+f 5974//3711 5959//3692 5973//3709
+f 5953//3702 5968//3721 5969//3710
+f 5975//3713 5960//3694 5974//3711
+f 5954//3706 5969//3710 5970//3712
+f 5976//3717 5961//3698 5975//3713
+f 5955//3693 5970//3712 5971//3714
+f 5966//3719 5951//3697 5965//4028
+f 5977//3720 5962//4027 5976//3717
+f 5956//3695 5971//3714 5972//3718
+f 5967//3724 5952//3700 5966//3719
+f 5978//3708 5963//3704 5977//3720
+f 5973//3709 5958//3705 5972//3718
+f 5952//3700 5967//3724 5968//3721
+f 5993//3727 5978//3708 5992//3722
+f 5988//3728 5973//3709 5987//3723
+f 5967//3724 5982//3740 5983//4029
+f 5994//3744 5979//3726 5993//3727
+f 5989//3730 5974//3711 5988//3728
+f 5968//3721 5983//4029 5984//3729
+f 5990//3732 5975//3713 5989//3730
+f 5969//3710 5984//3729 5985//3731
+f 5991//4030 5976//3717 5990//3732
+f 5970//3712 5985//3731 5986//3733
+f 5981//3736 5966//3719 5980//3734
+f 5992//3722 5977//3720 5991//4030
+f 5971//3714 5986//3733 5987//3723
+f 5982//3740 5967//3724 5981//3736
+f 5996//4031 5981//3736 5995//3737
+f 6007//4032 5992//3722 6006//3738
+f 5986//3733 6001//3751 6002//3739
+f 5997//3758 5982//3740 5996//4031
+f 6008//3745 5993//3727 6007//4032
+f 6003//3746 5988//3728 6002//3739
+f 5982//3740 5997//3758 5998//3743
+f 6009//3762 5994//3744 6008//3745
+f 6004//3748 5989//3730 6003//3746
+f 5983//4029 5998//3743 5999//4033
+f 6005//3750 5990//3732 6004//3748
+f 5984//3729 5999//4033 6000//3749
+f 6006//3738 5991//4030 6005//3750
+f 5985//3731 6000//3749 6001//3751
+f 5999//4033 6014//3765 6015//3752
+f 6021//3756 6006//3738 6020//3753
+f 6000//3749 6015//3752 6016//3754
+f 5995//3737 6010//3773 6011//3755
+f 6022//3760 6007//4032 6021//3756
+f 6001//3751 6016//3754 6017//3757
+f 5996//4031 6011//3755 6012//3759
+f 6023//3763 6008//3745 6022//3760
+f 6018//3764 6003//3746 6017//3757
+f 5997//3758 6012//3759 6013//3761
+f 6024//3780 6009//3762 6023//3763
+f 6019//3766 6004//3748 6018//3764
+f 5998//3743 6013//3761 6014//3765
+f 6020//3753 6005//3750 6019//3766
+f 6018//3764 6033//3779 6034//3767
+f 6029//3770 6014//3765 6028//3768
+f 6019//3766 6034//3767 6035//3769
+f 6030//3772 6015//3752 6029//3770
+f 6020//3753 6035//3769 6036//3771
+f 6031//3776 6016//3754 6030//3772
+f 6010//3773 6025//3792 6026//3774
+f 6021//3756 6036//3771 6037//3775
+f 6032//3783 6017//3757 6031//3776
+f 6011//3755 6026//3774 6027//3777
+f 6022//3760 6037//3775 6038//3778
+f 6017//3757 6032//3783 6033//3779
+f 6012//3759 6027//3777 6028//3768
+f 6023//3763 6038//3778 6039//3781
+f 6037//3775 6052//4034 6053//3782
+f 6032//3783 6047//3800 6048//3784
+f 6027//3777 6042//3796 6043//3785
+f 6038//3778 6053//3782 6054//3786
+f 6033//3779 6048//3784 6049//3787
+f 6044//3789 6029//3770 6043//3785
+f 6034//3767 6049//3787 6050//3788
+f 6045//3791 6030//3772 6044//3789
+f 6035//3769 6050//3788 6051//3790
+f 6046//3795 6031//3776 6045//3791
+f 6025//3792 6040//3797 6041//3793
+f 6036//3771 6051//3790 6052//4034
+f 6047//3800 6032//3783 6046//3795
+f 6026//3774 6041//3793 6042//3796
+f 6056//3802 6041//3793 6055//3798
+f 6051//3790 6066//3811 6067//3799
+f 6062//3818 6047//3800 6061//3801
+f 6057//3805 6042//3796 6056//3802
+f 6052//4034 6067//3799 6068//3803
+f 6047//3800 6062//3818 6063//3804
+f 6058//3808 6043//3785 6057//3805
+f 6053//3782 6068//3803 6069//3806
+f 6048//3784 6063//3804 6064//3807
+f 6059//3810 6044//3789 6058//3808
+f 6049//3787 6064//3807 6065//3809
+f 6060//3812 6045//3791 6059//3810
+f 6050//3788 6065//3809 6066//3811
+f 6061//3801 6046//3795 6060//3812
+f 6075//3815 6060//3812 6074//3813
+f 6065//3809 6080//3827 6081//3814
+f 6076//4035 6061//3801 6075//3815
+f 6071//3820 6056//3802 6070//3816
+f 6066//3811 6081//3814 6082//3817
+f 6077//3836 6062//3818 6076//4035
+f 6072//3823 6057//3805 6071//3820
+f 6067//3799 6082//3817 6083//3821
+f 6062//3818 6077//3836 6078//3822
+f 6073//3826 6058//3808 6072//3823
+f 6068//3803 6083//3821 6084//3824
+f 6063//3804 6078//3822 6079//3825
+f 6074//3813 6059//3810 6073//3826
+f 6064//3807 6079//3825 6080//3827
+f 6078//3822 6093//3840 6094//3828
+f 6089//3831 6074//3813 6088//3829
+f 6079//3825 6094//3828 6095//3830
+f 6090//3833 6075//3815 6089//3831
+f 6080//3827 6095//3830 6096//3832
+f 6091//3837 6076//4035 6090//3833
+f 6086//3838 6071//3820 6085//3834
+f 6081//3814 6096//3832 6097//4036
+f 6092//3844 6077//3836 6091//3837
+f 6087//3841 6072//3823 6086//3838
+f 6082//3817 6097//4036 6098//4037
+f 6077//3836 6092//3844 6093//3840
+f 6088//3829 6073//3826 6087//3841
+f 6083//3821 6098//4037 6099//3842
+f 6097//4036 6112//3855 6113//3843
+f 6092//3844 6107//3858 6108//3845
+f 6103//3849 6088//3829 6102//3846
+f 6098//4037 6113//3843 6114//3847
+f 6093//3840 6108//3845 6109//3848
+f 6104//3851 6089//3831 6103//3849
+f 6094//3828 6109//3848 6110//3850
+f 6105//3853 6090//3833 6104//3851
+f 6095//3830 6110//3850 6111//3852
+f 6106//4038 6091//3837 6105//3853
+f 6085//3834 6100//3870 6101//3854
+f 6096//3832 6111//3852 6112//3855
+f 6107//3858 6092//3844 6106//4038
+f 6086//3838 6101//3854 6102//3846
+f 6111//3852 6127//3868 6128//3857
+f 6123//3877 6107//3858 6122//3859
+f 6101//3854 6117//3871 6118//3860
+f 6112//3855 6128//3857 6129//3861
+f 6107//3858 6123//3877 6124//3862
+f 6119//3865 6103//3849 6118//3860
+f 6113//3843 6129//3861 6130//4039
+f 6108//3845 6124//3862 6125//3864
+f 6120//3867 6104//3851 6119//3865
+f 6109//3848 6125//3864 6126//3866
+f 6121//3869 6105//3853 6120//3867
+f 6110//3850 6126//3866 6127//3868
+f 6122//3859 6106//4038 6121//3869
+f 6100//3870 6116//4040 6117//3871
+f 6126//3866 6141//3885 6142//3872
+f 6137//3878 6122//3859 6136//3873
+f 6116//4040 6131//3892 6132//3875
+f 6127//3868 6142//3872 6143//3876
+f 6138//3895 6123//3877 6137//3878
+f 6117//3871 6132//3875 6133//3879
+f 6128//3857 6143//3876 6144//3880
+f 6123//3877 6138//3895 6139//3881
+f 6118//3860 6133//3879 6134//3882
+f 6129//3861 6144//3880 6145//3883
+f 6124//3862 6139//3881 6140//3884
+f 6135//3886 6120//3867 6134//3882
+f 6125//3864 6140//3884 6141//3885
+f 6136//3873 6121//3869 6135//3886
+f 6134//3882 6149//3899 6150//3887
+f 6156//3890 6141//3885 6155//3888
+f 6135//3886 6150//3887 6151//3889
+f 6157//3894 6142//3872 6156//3890
+f 6136//3873 6151//3889 6152//3891
+f 6147//4041 6132//3875 6146//3893
+f 6158//3898 6143//3876 6157//3894
+f 6137//3878 6152//3891 6153//3896
+f 6132//3875 6147//4041 6148//3897
+f 6159//3900 6144//3880 6158//3898
+f 6154//3901 6139//3881 6153//3896
+f 6133//3879 6148//3897 6149//3899
+f 6160//3904 6145//3883 6159//3900
+f 6155//3888 6140//3884 6154//3901
+f 6169//3906 6154//3901 6168//3902
+f 6164//3921 6149//3899 6163//3903
+f 6175//4042 6160//3904 6174//3905
+f 6170//3908 6155//3888 6169//3906
+f 6149//3899 6164//3921 6165//3907
+f 6171//3910 6156//3890 6170//3908
+f 6150//3887 6165//3907 6166//3909
+f 6172//3914 6157//3894 6171//3910
+f 6151//3889 6166//3909 6167//3911
+f 6162//3915 6147//4041 6161//3913
+f 6173//3916 6158//3898 6172//3914
+f 6152//3891 6167//3911 6168//3902
+f 6163//3903 6148//3897 6162//3915
+f 6174//3905 6159//3900 6173//3916
+f 6188//3920 6173//3916 6187//3917
+f 6167//3911 6182//3930 6183//3918
+f 6178//3922 6163//3903 6177//3919
+f 6189//3924 6174//3905 6188//3920
+f 6184//3925 6169//3906 6183//3918
+f 6179//3939 6164//3921 6178//3922
+f 6190//4044 6175//4042 6189//3924
+f 6185//3927 6170//3908 6184//3925
+f 6164//3921 6179//3939 6180//3926
+f 6186//3929 6171//3910 6185//3927
+f 6165//3907 6180//3926 6181//3928
+f 6187//3917 6172//3914 6186//3929
+f 6166//3909 6181//3928 6182//3930
+f 6177//3919 6162//3915 6176//3931
+f 6202//3935 6187//3917 6201//3932
+f 6181//3928 6196//3946 6197//3933
+f 6192//3937 6177//3919 6191//3934
+f 6203//4043 6188//3920 6202//3935
+f 6182//3930 6197//3933 6198//3936
+f 6193//4047 6178//3922 6192//3937
+f 6204//3942 6189//3924 6203//4043
+f 6199//3943 6184//3925 6198//3936
+f 6178//3922 6193//4047 6194//3940
+f 6205//3959 6190//4044 6204//3942
+f 6200//3945 6185//3927 6199//3943
+f 6179//3939 6194//3940 6195//3944
+f 6201//3932 6186//3929 6200//3945
+f 6180//3926 6195//3944 6196//3946
+f 6194//3940 6209//4048 6210//3947
+f 6216//4045 6201//3932 6215//3948
+f 6195//3944 6210//3947 6211//3949
+f 6217//3953 6202//3935 6216//4045
+f 6196//3946 6211//3949 6212//3951
+f 6191//3934 6206//4051 6207//4046
+f 6218//3957 6203//4043 6217//3953
+f 6197//3933 6212//3951 6213//3954
+f 6192//3937 6207//4046 6208//3956
+f 6219//4049 6204//3942 6218//3957
+f 6214//3961 6199//3943 6213//3954
+f 6193//4047 6208//3956 6209//4048
+f 6220//3964 6205//3959 6219//4049
+f 6215//3948 6200//3945 6214//3961
+f 6229//3966 6214//3961 6228//3962
+f 6208//3956 6223//3975 6224//4050
+f 6235//3982 6220//3964 6234//3965
+f 6230//3968 6215//3948 6229//3966
+f 6209//4048 6224//4050 6225//3967
+f 6231//3970 6216//4045 6230//3968
+f 6210//3947 6225//3967 6226//3969
+f 6232//4053 6217//3953 6231//3970
+f 6211//3949 6226//3969 6227//3971
+f 6206//4051 6221//3990 6222//4052
+f 6233//4054 6218//3957 6232//4053
+f 6212//3951 6227//3971 6228//3962
+f 6207//4046 6222//4052 6223//3975
+f 6234//3965 6219//4049 6233//4054
+f 6249//3980 6233//4054 6248//3977
+f 6227//3971 6243//3989 6244//3978
+f 6222//4052 6238//3991 6239//3979
+f 6250//3983 6234//3965 6249//3980
+f 6245//3984 6229//3966 6244//3978
+f 6223//3975 6239//3979 6240//3981
+f 6251//4001 6235//3982 6250//3983
+f 6246//3986 6230//3968 6245//3984
+f 6224//4050 6240//3981 6241//3985
+f 6247//3988 6231//3970 6246//3986
+f 6225//3967 6241//3985 6242//3987
+f 6248//3977 6232//4053 6247//3988
+f 6226//3969 6242//3987 6243//3989
+f 6221//3990 6237//3994 6238//3991
+f 6263//4055 6248//3977 6262//3992
+f 6242//3987 6257//4006 6258//3993
+f 6253//4056 6238//3991 6252//3995
+f 6264//3999 6249//3980 6263//4055
+f 6243//3989 6258//3993 6259//3997
+f 6254//4000 6239//3979 6253//4056
+f 6265//4002 6250//3983 6264//3999
+f 6260//4003 6245//3984 6259//3997
+f 6255//4009 6240//3981 6254//4000
+f 6266//4008 6251//4001 6265//4002
+f 6261//4005 6246//3986 6260//4003
+f 6240//3981 6255//4009 6256//4004
+f 6262//3992 6247//3988 6261//4005
+f 6241//3985 6256//4004 6257//4006
+f 6261//4005 5794//3550 5795//4013
+f 5790//3530 6257//4006 5789//3552
+f 6262//3992 5795//4013 5796//3536
+f 5791//3529 6258//3993 5790//3530
+f 5786//3532 6253//4056 5785//3533
+f 6263//4055 5796//3536 5797//3535
+f 5792//3538 6259//3997 5791//3529
+f 5787//3540 6254//4000 5786//3532
+f 6264//3999 5797//3535 5798//3542
+f 6259//3997 5792//3538 5793//3544
+f 5788//4012 6255//4009 5787//3540
+f 6265//4002 5798//3542 5799//3548
+f 6260//4003 5793//3544 5794//3550
+f 5789//3552 6256//4004 5788//4012
+o Nose_Sphere
+v -0.159802 1.092958 -0.013143
+v -0.180371 1.079367 -0.014504
+v -0.198152 1.059956 -0.015819
+v -0.212461 1.035470 -0.017036
+v -0.224784 1.022868 -0.011991
+v -0.235916 0.992648 -0.011991
+v -0.242772 0.959858 -0.011991
+v -0.245086 0.925758 -0.011991
+v -0.242772 0.891657 -0.011991
+v -0.235916 0.858867 -0.011991
+v -0.224784 0.828648 -0.011991
+v -0.209802 0.802160 -0.011991
+v -0.191547 0.780422 -0.011991
+v -0.170720 0.764269 -0.011991
+v -0.148121 0.754323 -0.011991
+v -0.158929 1.093175 -0.020995
+v -0.178659 1.079792 -0.029908
+v -0.195666 1.060573 -0.038182
+v -0.209297 1.036256 -0.045498
+v -0.222859 1.022868 -0.045623
+v -0.233778 0.992648 -0.049360
+v -0.240501 0.959858 -0.051662
+v -0.242772 0.925758 -0.052439
+v -0.240501 0.891657 -0.051662
+v -0.233778 0.858867 -0.049360
+v -0.222859 0.828648 -0.045623
+v -0.208166 0.802160 -0.040592
+v -0.190261 0.780422 -0.034463
+v -0.169834 0.764269 -0.027470
+v -0.147670 0.754323 -0.019882
+v -0.157201 1.093534 -0.028495
+v -0.175268 1.080498 -0.044620
+v -0.190744 1.061598 -0.059539
+v -0.203033 1.037560 -0.072681
+v -0.217159 1.022868 -0.077962
+v -0.227444 0.992648 -0.085294
+v -0.233778 0.959858 -0.089809
+v -0.235916 0.925758 -0.091334
+v -0.233778 0.891657 -0.089809
+v -0.227444 0.858867 -0.085294
+v -0.217159 0.828648 -0.077962
+v -0.203318 0.802160 -0.068095
+v -0.186453 0.780422 -0.056071
+v -0.167211 0.764269 -0.042354
+v -0.146332 0.754323 -0.027470
+v -0.154683 1.094023 -0.035354
+v -0.170331 1.081457 -0.058074
+v -0.183576 1.062990 -0.079072
+v -0.193910 1.039332 -0.097541
+v -0.207903 1.022868 -0.107766
+v -0.217159 0.992648 -0.118410
+v -0.222859 0.959858 -0.124965
+v -0.224784 0.925758 -0.127179
+v -0.222859 0.891657 -0.124965
+v -0.217159 0.858867 -0.118410
+v -0.207903 0.828648 -0.107766
+v -0.195446 0.802160 -0.093441
+v -0.180268 0.780422 -0.075986
+v -0.162951 0.764269 -0.056071
+v -0.144160 0.754323 -0.034463
+v -0.151474 1.094623 -0.041308
+v -0.164035 1.082633 -0.069753
+v -0.174436 1.064697 -0.096028
+v -0.182277 1.041504 -0.119122
+v -0.195446 1.022868 -0.133889
+v -0.203318 0.992648 -0.147437
+v -0.208166 0.959858 -0.155780
+v -0.209802 0.925758 -0.158597
+v -0.208166 0.891657 -0.155780
+v -0.203318 0.858867 -0.147437
+v -0.195446 0.828648 -0.133889
+v -0.184853 0.802160 -0.115657
+v -0.171944 0.780422 -0.093441
+v -0.157217 0.764269 -0.068095
+v -0.141238 0.754323 -0.040592
+v -0.147696 1.095309 -0.046129
+v -0.156623 1.083979 -0.079210
+v -0.163676 1.066652 -0.109756
+v -0.168582 1.043993 -0.136595
+v -0.180268 1.022868 -0.155328
+v -0.186453 0.992648 -0.171259
+v -0.190261 0.959858 -0.181069
+v -0.191547 0.925758 -0.184381
+v -0.190261 0.891657 -0.181069
+v -0.186453 0.858867 -0.171259
+v -0.180268 0.828648 -0.155328
+v -0.171944 0.802160 -0.133889
+v -0.161802 0.780422 -0.107766
+v -0.150231 0.764269 -0.077962
+v -0.137676 0.754323 -0.045623
+v -0.143493 1.096057 -0.049631
+v -0.148381 1.085446 -0.086079
+v -0.151709 1.068781 -0.119729
+v -0.153352 1.046703 -0.149288
+v -0.162951 1.022868 -0.171259
+v -0.167211 0.992648 -0.188960
+v -0.169834 0.959858 -0.199860
+v -0.170720 0.925758 -0.203541
+v -0.169834 0.891657 -0.199860
+v -0.167211 0.858867 -0.188960
+v -0.162951 0.828648 -0.171259
+v -0.157217 0.802160 -0.147437
+v -0.150231 0.780422 -0.118410
+v -0.142261 0.764269 -0.085294
+v -0.133613 0.754323 -0.049360
+v -0.139029 1.096837 -0.051680
+v -0.139624 1.086976 -0.090098
+v -0.138996 1.071002 -0.125564
+v -0.137171 1.049529 -0.156714
+v -0.144160 1.022868 -0.181069
+v -0.146332 0.992648 -0.199860
+v -0.147670 0.959858 -0.211432
+v -0.148121 0.925758 -0.215339
+v -0.147670 0.891657 -0.211432
+v -0.146332 0.858867 -0.199860
+v -0.144160 0.828648 -0.181069
+v -0.141238 0.802160 -0.155780
+v -0.137676 0.780422 -0.124965
+v -0.133613 0.764269 -0.089809
+v -0.129204 0.754323 -0.051662
+v -0.134474 1.097619 -0.052197
+v -0.130689 1.088510 -0.091112
+v -0.126025 1.073229 -0.127035
+v -0.120661 1.052364 -0.158587
+v -0.124619 1.022868 -0.184381
+v -0.124619 0.992648 -0.203541
+v -0.124619 0.959858 -0.215339
+v -0.124619 0.925758 -0.219323
+v -0.124619 0.891657 -0.215339
+v -0.124619 0.858867 -0.203541
+v -0.124619 0.828648 -0.184381
+v -0.124619 0.802160 -0.158597
+v -0.124619 0.780422 -0.127178
+v -0.124619 0.764269 -0.091334
+v -0.124619 0.754323 -0.052439
+v -0.130004 1.098373 -0.051162
+v -0.121920 1.089989 -0.089081
+v -0.113294 1.075377 -0.124088
+v -0.104457 1.055098 -0.154836
+v -0.105078 1.022868 -0.181069
+v -0.102906 0.992648 -0.199860
+v -0.101569 0.959858 -0.211432
+v -0.101117 0.925758 -0.215339
+v -0.101569 0.891657 -0.211432
+v -0.102906 0.858867 -0.199860
+v -0.105078 0.828648 -0.181069
+v -0.108001 0.802160 -0.155780
+v -0.111562 0.780422 -0.124965
+v -0.115625 0.764269 -0.089809
+v -0.120034 0.754323 -0.051662
+v -0.125789 1.099071 -0.048614
+v -0.113653 1.091357 -0.084085
+v -0.101292 1.077363 -0.116834
+v -0.089182 1.057626 -0.145603
+v -0.086288 1.022868 -0.171259
+v -0.082027 0.992648 -0.188960
+v -0.079404 0.959858 -0.199860
+v -0.078518 0.925758 -0.203541
+v -0.079404 0.891657 -0.199860
+v -0.082027 0.858867 -0.188960
+v -0.086288 0.828648 -0.171259
+v -0.092021 0.802160 -0.147437
+v -0.099007 0.780422 -0.118410
+v -0.106977 0.764269 -0.085294
+v -0.115625 0.754323 -0.049360
+v -0.121993 1.099684 -0.044653
+v -0.106206 1.092562 -0.076314
+v -0.090481 1.079112 -0.105553
+v -0.075423 1.059851 -0.131245
+v -0.068970 1.022868 -0.155328
+v -0.062786 0.992648 -0.171259
+v -0.058977 0.959858 -0.181069
+v -0.057691 0.925758 -0.184381
+v -0.058977 0.891657 -0.181069
+v -0.062786 0.858867 -0.171259
+v -0.068970 0.828648 -0.155328
+v -0.077294 0.802160 -0.133889
+v -0.087436 0.780422 -0.107766
+v -0.099007 0.764269 -0.077962
+v -0.111562 0.754323 -0.045623
+v -0.118761 1.100191 -0.039430
+v -0.099866 1.093556 -0.066068
+v -0.081277 1.080555 -0.090678
+v -0.063708 1.061688 -0.112313
+v -0.053792 1.022868 -0.133889
+v -0.045920 0.992648 -0.147437
+v -0.041073 0.959858 -0.155780
+v -0.039436 0.925758 -0.158597
+v -0.041073 0.891657 -0.155780
+v -0.045920 0.858867 -0.147437
+v -0.053792 0.828648 -0.133889
+v -0.064385 0.802160 -0.115657
+v -0.077294 0.780422 -0.093441
+v -0.092021 0.764269 -0.068095
+v -0.108001 0.754323 -0.040592
+v -0.116217 1.100571 -0.033145
+v -0.094876 1.094301 -0.053741
+v -0.074032 1.081637 -0.072781
+v -0.054487 1.063065 -0.089535
+v -0.041335 1.022868 -0.107766
+v -0.032079 0.992648 -0.118410
+v -0.026379 0.959858 -0.124965
+v -0.024454 0.925758 -0.127178
+v -0.026379 0.891657 -0.124965
+v -0.032079 0.858867 -0.118410
+v -0.041335 0.828648 -0.107766
+v -0.053792 0.802160 -0.093441
+v -0.068970 0.780422 -0.075986
+v -0.086288 0.764269 -0.056071
+v -0.105078 0.754323 -0.034463
+v -0.114459 1.100810 -0.026041
+v -0.091427 1.094770 -0.039805
+v -0.069026 1.082317 -0.052550
+v -0.048115 1.063931 -0.063785
+v -0.032079 1.022868 -0.077962
+v -0.021794 0.992648 -0.085294
+v -0.015460 0.959858 -0.089809
+v -0.013322 0.925758 -0.091333
+v -0.015460 0.891657 -0.089809
+v -0.021794 0.858867 -0.085294
+v -0.032079 0.828648 -0.077962
+v -0.045920 0.802160 -0.068095
+v -0.062786 0.780422 -0.056071
+v -0.082027 0.764269 -0.042354
+v -0.102906 0.754323 -0.027470
+v -0.113554 1.100899 -0.018390
+v -0.089653 1.094943 -0.024797
+v -0.066450 1.082569 -0.030761
+v -0.044837 1.064251 -0.036054
+v -0.026379 1.022868 -0.045623
+v -0.015460 0.992648 -0.049360
+v -0.008737 0.959858 -0.051662
+v -0.006467 0.925758 -0.052439
+v -0.008737 0.891657 -0.051662
+v -0.015460 0.858867 -0.049360
+v -0.026379 0.828648 -0.045623
+v -0.041073 0.802160 -0.040592
+v -0.058977 0.780422 -0.034463
+v -0.079404 0.764269 -0.027470
+v -0.101569 0.754323 -0.019882
+v -0.113538 1.100833 -0.010486
+v -0.089622 1.094815 -0.009293
+v -0.066405 1.082383 -0.008253
+v -0.044779 1.064014 -0.007406
+v -0.024454 1.022868 -0.011991
+v -0.013322 0.992648 -0.011991
+v -0.006467 0.959858 -0.011991
+v -0.004152 0.925758 -0.011991
+v -0.006467 0.891657 -0.011991
+v -0.013322 0.858867 -0.011991
+v -0.024454 0.828648 -0.011991
+v -0.039436 0.802160 -0.011991
+v -0.057691 0.780422 -0.011991
+v -0.078518 0.764269 -0.011991
+v -0.101117 0.754323 -0.011991
+v -0.114411 1.100616 -0.002633
+v -0.091334 1.094390 0.006110
+v -0.068890 1.081765 0.014109
+v -0.047943 1.063228 0.021056
+v -0.026379 1.022868 0.021641
+v -0.015460 0.992648 0.025379
+v -0.008737 0.959858 0.027680
+v -0.006467 0.925758 0.028458
+v -0.008737 0.891657 0.027680
+v -0.015460 0.858867 0.025379
+v -0.026379 0.828648 0.021641
+v -0.041073 0.802160 0.016610
+v -0.058977 0.780422 0.010481
+v -0.079404 0.764269 0.003488
+v -0.101569 0.754323 -0.004100
+v -0.116139 1.100257 0.004867
+v -0.094724 1.093684 0.020822
+v -0.073812 1.080741 0.035467
+v -0.054207 1.061924 0.048239
+v -0.032079 1.022868 0.053980
+v -0.021794 0.992648 0.061312
+v -0.015460 0.959858 0.065827
+v -0.013322 0.925758 0.067352
+v -0.015460 0.891657 0.065827
+v -0.021794 0.858867 0.061312
+v -0.032079 0.828648 0.053980
+v -0.045920 0.802160 0.044113
+v -0.062786 0.780422 0.032089
+v -0.082027 0.764269 0.018372
+v -0.102906 0.754323 0.003488
+v -0.118657 1.099768 0.011726
+v -0.099662 1.092725 0.034276
+v -0.080980 1.079349 0.054999
+v -0.063330 1.060152 0.073099
+v -0.041335 1.022868 0.083784
+v -0.032079 0.992648 0.094428
+v -0.026379 0.959858 0.100983
+v -0.024454 0.925758 0.103197
+v -0.026379 0.891657 0.100983
+v -0.032079 0.858867 0.094428
+v -0.041335 0.828648 0.083784
+v -0.053792 0.802160 0.069459
+v -0.068970 0.780422 0.052004
+v -0.086288 0.764269 0.032089
+v -0.105078 0.754323 0.010481
+v -0.121866 1.099168 0.017680
+v -0.105957 1.091549 0.045956
+v -0.090120 1.077642 0.071955
+v -0.074963 1.057980 0.094680
+v -0.053792 1.022868 0.109907
+v -0.045920 0.992648 0.123455
+v -0.041073 0.959858 0.131798
+v -0.039436 0.925758 0.134615
+v -0.041073 0.891657 0.131798
+v -0.045920 0.858867 0.123455
+v -0.053792 0.828648 0.109907
+v -0.064385 0.802160 0.091675
+v -0.077294 0.780422 0.069459
+v -0.092021 0.764269 0.044113
+v -0.108001 0.754323 0.016610
+v -0.125645 1.098482 0.022501
+v -0.113369 1.090202 0.055412
+v -0.100880 1.075686 0.085684
+v -0.088658 1.055492 0.112153
+v -0.068970 1.022868 0.131346
+v -0.062786 0.992648 0.147277
+v -0.058977 0.959858 0.157087
+v -0.057691 0.925758 0.160399
+v -0.058977 0.891657 0.157087
+v -0.062786 0.858867 0.147277
+v -0.068970 0.828648 0.131346
+v -0.077294 0.802160 0.109907
+v -0.087436 0.780422 0.083784
+v -0.099007 0.764269 0.053980
+v -0.111562 0.754323 0.021641
+v -0.124619 0.750964 -0.011991
+v -0.129847 1.097734 0.026003
+v -0.121612 1.088736 0.062281
+v -0.112847 1.073557 0.095657
+v -0.103888 1.052782 0.124846
+v -0.086288 1.022868 0.147277
+v -0.082028 0.992648 0.164978
+v -0.079404 0.959858 0.175878
+v -0.078518 0.925758 0.179559
+v -0.079404 0.891657 0.175878
+v -0.082027 0.858867 0.164978
+v -0.086288 0.828648 0.147277
+v -0.092021 0.802160 0.123455
+v -0.099007 0.780422 0.094428
+v -0.106977 0.764269 0.061312
+v -0.115625 0.754323 0.025379
+v -0.134311 1.096954 0.028051
+v -0.130369 1.087206 0.066300
+v -0.125560 1.071337 0.101491
+v -0.120069 1.049955 0.132272
+v -0.105078 1.022868 0.157087
+v -0.102906 0.992648 0.175878
+v -0.101569 0.959858 0.187450
+v -0.101117 0.925758 0.191357
+v -0.101569 0.891657 0.187450
+v -0.102906 0.858867 0.175878
+v -0.105078 0.828648 0.157087
+v -0.108001 0.802160 0.131798
+v -0.111562 0.780422 0.100983
+v -0.115625 0.764269 0.065827
+v -0.120034 0.754323 0.027680
+v -0.138866 1.096172 0.028568
+v -0.139303 1.085672 0.067314
+v -0.138531 1.069110 0.102963
+v -0.136579 1.047121 0.134145
+v -0.124619 1.022868 0.160399
+v -0.124619 0.992648 0.179559
+v -0.124619 0.959858 0.191357
+v -0.124619 0.925758 0.195341
+v -0.124619 0.891657 0.191357
+v -0.124619 0.858867 0.179559
+v -0.124619 0.828648 0.160399
+v -0.124619 0.802160 0.134615
+v -0.124619 0.780422 0.103197
+v -0.124619 0.764269 0.067352
+v -0.124619 0.754323 0.028458
+v -0.143336 1.095418 0.027533
+v -0.148073 1.084193 0.065284
+v -0.151262 1.066962 0.100015
+v -0.152783 1.044387 0.130393
+v -0.144160 1.022868 0.157087
+v -0.146332 0.992648 0.175878
+v -0.147670 0.959858 0.187450
+v -0.148121 0.925758 0.191357
+v -0.147670 0.891657 0.187450
+v -0.146332 0.858867 0.175878
+v -0.144160 0.828648 0.157087
+v -0.141238 0.802160 0.131798
+v -0.137676 0.780422 0.100983
+v -0.133613 0.764269 0.065827
+v -0.129204 0.754323 0.027680
+v -0.147551 1.094720 0.024986
+v -0.156340 1.082824 0.060287
+v -0.163264 1.064975 0.092762
+v -0.168058 1.041859 0.121161
+v -0.162951 1.022868 0.147277
+v -0.167211 0.992648 0.164978
+v -0.169834 0.959858 0.175878
+v -0.170720 0.925758 0.179559
+v -0.169834 0.891657 0.175878
+v -0.167211 0.858867 0.164978
+v -0.162951 0.828648 0.147277
+v -0.157217 0.802160 0.123455
+v -0.150231 0.780422 0.094428
+v -0.142261 0.764269 0.061312
+v -0.133613 0.754323 0.025379
+v -0.151347 1.094107 0.021025
+v -0.163786 1.081620 0.052517
+v -0.174075 1.063227 0.081481
+v -0.181817 1.039634 0.106803
+v -0.180268 1.022868 0.131346
+v -0.186453 0.992648 0.147277
+v -0.190261 0.959858 0.157087
+v -0.191547 0.925758 0.160399
+v -0.190261 0.891657 0.157087
+v -0.186453 0.858867 0.147277
+v -0.180268 0.828648 0.131346
+v -0.171944 0.802160 0.109907
+v -0.161802 0.780422 0.083784
+v -0.150231 0.764269 0.053980
+v -0.137676 0.754323 0.021641
+v -0.154579 1.093600 0.015801
+v -0.170126 1.080626 0.042271
+v -0.183279 1.061784 0.066606
+v -0.193532 1.037797 0.087871
+v -0.195446 1.022868 0.109907
+v -0.203318 0.992648 0.123455
+v -0.208166 0.959858 0.131798
+v -0.209802 0.925758 0.134615
+v -0.208166 0.891657 0.131798
+v -0.203318 0.858867 0.123455
+v -0.195446 0.828648 0.109907
+v -0.184853 0.802160 0.091675
+v -0.171944 0.780422 0.069459
+v -0.157217 0.764269 0.044113
+v -0.141238 0.754323 0.016610
+v -0.157123 1.093220 0.009517
+v -0.175117 1.079881 0.029943
+v -0.190524 1.060701 0.048709
+v -0.202753 1.036419 0.065092
+v -0.207903 1.022868 0.083784
+v -0.217159 0.992648 0.094428
+v -0.222859 0.959858 0.100983
+v -0.224784 0.925758 0.103196
+v -0.222859 0.891657 0.100983
+v -0.217159 0.858867 0.094428
+v -0.207903 0.828648 0.083784
+v -0.195446 0.802160 0.069459
+v -0.180268 0.780422 0.052004
+v -0.162951 0.764269 0.032089
+v -0.144160 0.754323 0.010481
+v -0.137235 1.100206 -0.011786
+v -0.158881 1.092981 0.002412
+v -0.178565 1.079412 0.016007
+v -0.195530 1.060021 0.028477
+v -0.209125 1.035554 0.039343
+v -0.217159 1.022868 0.053980
+v -0.227444 0.992648 0.061312
+v -0.233778 0.959858 0.065827
+v -0.235916 0.925758 0.067351
+v -0.233778 0.891657 0.065827
+v -0.227444 0.858867 0.061312
+v -0.217159 0.828648 0.053980
+v -0.203318 0.802160 0.044113
+v -0.186453 0.780422 0.032089
+v -0.167211 0.764269 0.018372
+v -0.146332 0.754323 0.003488
+v -0.159786 1.092892 -0.005239
+v -0.180339 1.079239 0.000999
+v -0.198106 1.059770 0.006689
+v -0.212403 1.035233 0.011611
+v -0.222859 1.022868 0.021641
+v -0.233778 0.992648 0.025378
+v -0.240501 0.959858 0.027680
+v -0.242772 0.925758 0.028457
+v -0.240501 0.891657 0.027680
+v -0.233778 0.858867 0.025379
+v -0.222859 0.828648 0.021641
+v -0.208166 0.802160 0.016610
+v -0.190261 0.780422 0.010481
+v -0.169834 0.764269 0.003488
+v -0.147670 0.754323 -0.004100
+vn -0.514939 -0.857204 0.000000
+vn -0.695212 -0.718772 0.000000
+vn -0.686117 -0.723106 -0.079501
+vn -0.990661 -0.136143 0.000000
+vn -0.993225 0.000000 -0.116092
+vn -0.797174 0.602863 -0.031526
+vn -0.805200 0.592029 -0.033174
+vn -0.779168 0.617084 -0.109775
+vn -0.279244 -0.960204 0.000000
+vn -0.507035 -0.859920 -0.058229
+vn -0.961364 -0.275185 0.000000
+vn -0.983734 -0.137883 -0.114963
+vn -0.846065 0.533036 0.001099
+vn -0.907865 -0.419233 0.000000
+vn -0.953948 -0.278481 -0.111423
+vn -0.961364 0.275185 0.000000
+vn -0.953948 0.278481 -0.111423
+vn -0.822626 -0.568529 0.000000
+vn -0.899686 -0.423688 -0.104953
+vn -0.990661 0.136143 0.000000
+vn -0.983734 0.137883 -0.114963
+vn -0.813746 -0.573443 -0.094699
+vn -0.651082 0.758660 -0.021790
+vn -0.792688 0.599231 -0.112003
+vn -0.658254 -0.735832 -0.158757
+vn -0.971587 0.000000 -0.236671
+vn -0.752586 0.629994 -0.191534
+vn -0.274667 -0.961028 -0.030824
+vn -0.483169 -0.867855 -0.115482
+vn -0.961577 -0.143223 -0.234169
+vn -0.836879 0.538957 -0.095462
+vn -0.930296 -0.288522 -0.226386
+vn -0.930296 0.288522 -0.226386
+vn -0.873928 -0.437117 -0.212348
+vn -0.961577 0.143223 -0.234169
+vn -0.786065 -0.588031 -0.190497
+vn -0.640584 0.763726 -0.079470
+vn -0.763115 0.617847 -0.189459
+vn -0.736595 -0.611957 -0.287912
+vn -0.930540 0.000000 -0.366100
+vn -0.615345 0.776543 -0.135228
+vn -0.714682 0.647328 -0.264809
+vn -0.609943 -0.756096 -0.237159
+vn -0.714133 0.643666 -0.275063
+vn -0.260842 -0.963439 -0.061007
+vn -0.442885 -0.880154 -0.170660
+vn -0.919706 -0.152440 -0.361736
+vn -0.814631 0.545915 -0.195654
+vn -0.775445 0.555406 -0.300272
+vn -0.886135 -0.305734 -0.348186
+vn -0.886135 0.305734 -0.348186
+vn -0.826746 -0.459700 -0.324198
+vn -0.919706 0.152440 -0.361736
+vn -0.813318 0.330302 -0.478927
+vn -0.751091 -0.491134 -0.441115
+vn -0.849422 0.165838 -0.500931
+vn -0.660237 -0.644124 -0.386212
+vn -0.861263 0.000000 -0.508133
+vn -0.574755 0.796442 -0.187933
+vn -0.644642 0.686453 -0.336406
+vn -0.538469 -0.782250 -0.313150
+vn -0.657186 0.660909 -0.362316
+vn -0.237770 -0.967132 -0.089785
+vn -0.385571 -0.895505 -0.222205
+vn -0.849422 -0.165838 -0.500931
+vn -0.712607 0.567461 -0.412488
+vn -0.813318 -0.330302 -0.478927
+vn -0.736229 -0.183203 -0.651448
+vn -0.614612 0.582446 -0.531907
+vn -0.698904 -0.361461 -0.617084
+vn -0.698904 0.361461 -0.617084
+vn -0.636860 -0.529527 -0.560289
+vn -0.736198 0.183203 -0.651448
+vn -0.550523 -0.681631 -0.481918
+vn -0.748650 0.000000 -0.662923
+vn -0.518143 0.822077 -0.236000
+vn -0.549821 0.732719 -0.400983
+vn -0.441054 -0.811365 -0.383557
+vn -0.572985 0.682669 -0.453413
+vn -0.205603 -0.971679 -0.116184
+vn -0.310953 -0.911832 -0.267953
+vn -0.316080 -0.838862 -0.443129
+vn -0.572100 0.000000 -0.820154
+vn -0.451399 0.706778 -0.544633
+vn -0.164708 -0.976440 -0.139256
+vn -0.219672 -0.926633 -0.305032
+vn -0.560656 -0.202704 -0.802850
+vn -0.467483 0.598224 -0.650777
+vn -0.526963 -0.395459 -0.752251
+vn -0.526963 0.395459 -0.752251
+vn -0.473006 -0.569720 -0.672018
+vn -0.560656 0.202704 -0.802820
+vn -0.401654 -0.718986 -0.567186
+vn -0.444960 0.851497 -0.277322
+vn -0.428205 0.781823 -0.453139
+vn -0.213813 -0.747581 -0.628773
+vn -0.316630 0.000000 -0.948515
+vn -0.355571 0.882046 -0.309061
+vn -0.281625 0.827570 -0.485580
+vn -0.165960 -0.859004 -0.484298
+vn -0.288858 0.732231 -0.616718
+vn -0.115726 -0.980651 -0.157720
+vn -0.114139 -0.937071 -0.329844
+vn -0.309336 -0.219367 -0.925291
+vn -0.266823 0.602985 -0.751793
+vn -0.288247 -0.423780 -0.858638
+vn -0.288247 0.423780 -0.858638
+vn -0.255470 -0.601917 -0.756554
+vn -0.309336 0.219367 -0.925291
+vn 0.000000 -0.614490 -0.788903
+vn 0.000000 0.226112 -0.974090
+vn 0.000000 -0.758446 -0.651692
+vn -0.252144 0.910459 -0.327799
+vn -0.118686 0.863002 -0.491012
+vn 0.000000 -0.866451 -0.499191
+vn -0.069491 0.744591 -0.663869
+vn -0.059969 -0.983581 -0.170080
+vn 0.000000 -0.940886 -0.338694
+vn 0.000000 -0.226112 -0.974090
+vn 0.000000 -0.435102 -0.900357
+vn 0.000000 0.435102 -0.900357
+vn -0.006378 0.592059 -0.805841
+vn 0.165624 0.732536 -0.660237
+vn 0.255470 -0.601917 -0.756554
+vn 0.260140 0.562822 -0.784539
+vn 0.213813 -0.747581 -0.628773
+vn 0.288247 0.423780 -0.858638
+vn 0.165960 -0.859004 -0.484268
+vn 0.309336 0.219367 -0.925291
+vn -0.139927 0.933470 -0.330149
+vn -0.027406 0.948698 -0.314890
+vn 0.114139 -0.937071 -0.329844
+vn 0.309336 -0.219367 -0.925291
+vn 0.045106 0.883175 -0.466811
+vn 0.000000 -0.984649 -0.174505
+vn 0.059969 -0.983581 -0.170080
+vn 0.288247 -0.423780 -0.858638
+vn 0.316630 0.000000 -0.948515
+vn 0.560656 -0.202704 -0.802820
+vn 0.194006 0.887753 -0.417402
+vn 0.115726 -0.980651 -0.157720
+vn 0.526963 -0.395489 -0.752251
+vn 0.381359 0.704642 -0.598346
+vn 0.473006 -0.569720 -0.672018
+vn 0.490677 0.517380 -0.701071
+vn 0.401654 -0.718986 -0.567186
+vn 0.526963 0.395459 -0.752251
+vn 0.316080 -0.838862 -0.443129
+vn 0.560656 0.202704 -0.802820
+vn 0.076815 0.955657 -0.284249
+vn 0.219672 -0.926633 -0.305032
+vn 0.441054 -0.811365 -0.383557
+vn 0.572100 0.000000 -0.820154
+vn 0.736229 0.183203 -0.651448
+vn 0.167150 0.955687 -0.242195
+vn 0.310953 -0.911832 -0.267953
+vn 0.736229 -0.183203 -0.651448
+vn 0.318369 0.880520 -0.351115
+vn 0.164708 -0.976440 -0.139225
+vn 0.698904 -0.361461 -0.617084
+vn 0.548967 0.670980 -0.498367
+vn 0.636860 -0.529527 -0.560289
+vn 0.662526 0.470107 -0.583117
+vn 0.550523 -0.681631 -0.481918
+vn 0.698904 0.361461 -0.617084
+vn 0.660237 -0.644124 -0.386212
+vn 0.813318 0.330302 -0.478927
+vn 0.538469 -0.782250 -0.313150
+vn 0.748650 0.000000 -0.662923
+vn 0.849422 0.165838 -0.500931
+vn 0.240852 0.951262 -0.192419
+vn 0.385571 -0.895505 -0.222205
+vn 0.849422 -0.165838 -0.500931
+vn 0.415357 0.866909 -0.275552
+vn 0.205603 -0.971679 -0.116184
+vn 0.813318 -0.330302 -0.478927
+vn 0.665120 0.640492 -0.383831
+vn 0.751091 -0.491134 -0.441115
+vn 0.778466 0.431745 -0.455550
+vn 0.739006 0.617817 -0.268532
+vn 0.826746 -0.459700 -0.324198
+vn 0.851558 0.406201 -0.331370
+vn 0.736595 -0.611957 -0.287912
+vn 0.886135 0.305734 -0.348186
+vn 0.609943 -0.756096 -0.237159
+vn 0.861263 0.000000 -0.508133
+vn 0.919706 0.152440 -0.361736
+vn 0.297037 0.944823 -0.137852
+vn 0.442885 -0.880154 -0.170660
+vn 0.919706 -0.152440 -0.361736
+vn 0.485946 0.851711 -0.195868
+vn 0.237770 -0.967132 -0.089785
+vn 0.886135 -0.305734 -0.348186
+vn 0.930540 0.000000 -0.366100
+vn 0.961577 -0.143223 -0.234169
+vn 0.532701 0.838435 -0.115024
+vn 0.260842 -0.963439 -0.061007
+vn 0.930296 -0.288522 -0.226386
+vn 0.780816 0.604541 -0.157598
+vn 0.873928 -0.437117 -0.212348
+vn 0.894131 0.393170 -0.214240
+vn 0.786065 -0.588031 -0.190497
+vn 0.930296 0.288522 -0.226386
+vn 0.658254 -0.735832 -0.158757
+vn 0.961577 0.143223 -0.234169
+vn 0.335795 0.938475 -0.080599
+vn 0.483169 -0.867855 -0.115482
+vn 0.686117 -0.723106 -0.079501
+vn 0.971587 0.000000 -0.236671
+vn 0.983734 0.137883 -0.114963
+vn 0.357494 0.933622 -0.022156
+vn 0.507035 -0.859920 -0.058229
+vn 0.983734 -0.137883 -0.114963
+vn 0.557939 0.829157 -0.034425
+vn 0.274667 -0.961028 -0.030824
+vn 0.953948 -0.278481 -0.111423
+vn 0.797754 0.600757 -0.051546
+vn 0.899686 -0.423688 -0.104953
+vn 0.914457 0.391186 -0.103427
+vn 0.813746 -0.573443 -0.094699
+vn 0.953948 0.278481 -0.111423
+vn 0.822626 -0.568529 0.000000
+vn 0.961364 0.275185 0.000000
+vn 0.695212 -0.718772 0.000000
+vn 0.993225 0.000000 -0.116092
+vn 0.990661 0.136143 0.000000
+vn 0.362560 0.931211 0.036378
+vn 0.514939 -0.857204 0.000000
+vn 0.990661 -0.136143 0.000000
+vn 0.563280 0.824976 0.045381
+vn 0.279244 -0.960204 0.000000
+vn 0.961364 -0.275185 0.000000
+vn 0.793847 0.605945 0.050661
+vn 0.907865 -0.419233 0.000000
+vn 0.916959 0.398907 0.003296
+vn 0.953948 -0.278481 0.111423
+vn 0.953948 0.278481 0.111423
+vn 0.899686 -0.423688 0.104953
+vn 0.983734 0.137883 0.114963
+vn 0.813746 -0.573443 0.094699
+vn 0.993225 0.000000 0.116092
+vn 0.549303 0.826289 0.124302
+vn 0.686117 -0.723106 0.079501
+vn 0.770409 0.619465 0.150639
+vn 0.507035 -0.859920 0.058229
+vn 0.983734 -0.137883 0.114963
+vn 0.723502 0.646840 0.240974
+vn 0.274667 -0.961028 0.030824
+vn 0.483169 -0.867855 0.115482
+vn 0.961577 -0.143223 0.234169
+vn 0.903134 0.415326 0.108646
+vn 0.930296 -0.288522 0.226386
+vn 0.930296 0.288522 0.226386
+vn 0.873928 -0.437117 0.212348
+vn 0.961577 0.143223 0.234169
+vn 0.786065 -0.588031 0.190497
+vn 0.971587 0.000000 0.236671
+vn 0.351177 0.931547 0.094089
+vn 0.515458 0.832759 0.201941
+vn 0.658254 -0.735832 0.158757
+vn 0.930540 0.000000 0.366100
+vn 0.323252 0.934324 0.149998
+vn 0.460219 0.843257 0.277657
+vn 0.609943 -0.756096 0.237159
+vn 0.647175 0.680319 0.343974
+vn 0.260842 -0.963439 0.061007
+vn 0.442885 -0.880154 0.170660
+vn 0.919706 -0.152440 0.361736
+vn 0.876583 0.433119 0.209693
+vn 0.826838 0.458083 0.326304
+vn 0.886135 -0.305734 0.348186
+vn 0.886135 0.305734 0.348186
+vn 0.826746 -0.459700 0.324198
+vn 0.919706 0.152440 0.361736
+vn 0.736564 -0.611957 0.287912
+vn 0.751091 -0.491134 0.441115
+vn 0.849422 0.165838 0.500931
+vn 0.660237 -0.644124 0.386212
+vn 0.861263 0.000000 0.508133
+vn 0.278512 0.938719 0.202887
+vn 0.381359 0.855708 0.349712
+vn 0.538469 -0.782250 0.313150
+vn 0.549120 0.711600 0.438215
+vn 0.237770 -0.967132 0.089785
+vn 0.385571 -0.895505 0.222205
+vn 0.849422 -0.165838 0.500931
+vn 0.748222 0.495621 0.440962
+vn 0.813318 -0.330302 0.478927
+vn 0.813318 0.330302 0.478927
+vn 0.698904 -0.361461 0.617084
+vn 0.698904 0.361461 0.617084
+vn 0.636860 -0.529527 0.560289
+vn 0.736229 0.183203 0.651448
+vn 0.550523 -0.681631 0.481918
+vn 0.748650 0.000000 0.662923
+vn 0.216742 0.943327 0.251228
+vn 0.276742 0.866787 0.414777
+vn 0.441054 -0.811365 0.383557
+vn 0.417280 0.741905 0.524796
+vn 0.205603 -0.971679 0.116184
+vn 0.310953 -0.911832 0.267953
+vn 0.736229 -0.183203 0.651448
+vn 0.632618 0.537614 0.557390
+vn 0.245094 0.754112 0.609241
+vn 0.164708 -0.976440 0.139225
+vn 0.219672 -0.926633 0.305032
+vn 0.560656 -0.202704 0.802820
+vn 0.458968 0.587359 0.666555
+vn 0.526963 -0.395459 0.752251
+vn 0.526963 0.395459 0.752251
+vn 0.473006 -0.569720 0.672018
+vn 0.560656 0.202704 0.802850
+vn 0.401654 -0.718986 0.567186
+vn 0.572100 0.000000 0.820154
+vn 0.138066 0.946104 0.292856
+vn 0.145878 0.871914 0.467391
+vn 0.316080 -0.838862 0.443129
+vn 0.316630 0.000000 0.948515
+vn 0.043703 0.944731 0.324839
+vn -0.007447 0.865871 0.500168
+vn 0.165960 -0.859004 0.484298
+vn 0.058351 0.751823 0.656728
+vn 0.115726 -0.980651 0.157720
+vn 0.114139 -0.937071 0.329844
+vn 0.309336 -0.219367 0.925291
+vn 0.288247 -0.423780 0.858638
+vn 0.288247 0.423780 0.858638
+vn 0.255470 -0.601917 0.756554
+vn 0.309336 0.219367 0.925291
+vn 0.213813 -0.747581 0.628773
+vn 0.000000 -0.614490 0.788903
+vn 0.000000 0.226112 0.974090
+vn 0.000000 -0.758446 0.651692
+vn -0.063234 0.936918 0.343730
+vn -0.172887 0.845149 0.505753
+vn 0.000000 -0.866451 0.499191
+vn -0.161382 0.734306 0.659291
+vn 0.059969 -0.983581 0.170080
+vn 0.000000 -0.940886 0.338694
+vn 0.000000 -0.226112 0.974090
+vn 0.249763 0.628559 0.736534
+vn 0.000000 -0.435102 0.900357
+vn 0.000000 0.435102 0.900357
+vn -0.255470 -0.601917 0.756554
+vn 0.002136 0.641591 0.767022
+vn -0.245430 0.631153 0.735771
+vn -0.213813 -0.747581 0.628773
+vn -0.288247 0.423780 0.858638
+vn -0.165960 -0.859004 0.484268
+vn -0.309336 0.219367 0.925291
+vn -0.176702 0.921354 0.346141
+vn -0.287942 0.898648 0.330821
+vn -0.114139 -0.937071 0.329844
+vn -0.309336 -0.219367 0.925291
+vn -0.334208 0.810236 0.481399
+vn 0.000000 -0.984649 0.174505
+vn -0.059969 -0.983581 0.170080
+vn -0.288247 -0.423780 0.858638
+vn -0.368816 0.696921 0.615009
+vn -0.115726 -0.980651 0.157720
+vn -0.526963 -0.395459 0.752251
+vn -0.539537 0.650319 0.534715
+vn -0.473006 -0.569720 0.672018
+vn -0.456343 0.603473 0.653859
+vn -0.401654 -0.718986 0.567186
+vn -0.526963 0.395459 0.752251
+vn -0.316080 -0.838862 0.443129
+vn -0.316630 0.000000 0.948515
+vn -0.560656 0.202704 0.802820
+vn -0.388684 0.871120 0.299997
+vn -0.219672 -0.926633 0.305032
+vn -0.560656 -0.202704 0.802820
+vn -0.476333 0.765984 0.431654
+vn -0.474075 0.841914 0.257698
+vn -0.310953 -0.911832 0.267953
+vn -0.572100 0.000000 0.820154
+vn -0.736229 -0.183203 0.651448
+vn -0.591449 0.719016 0.364910
+vn -0.164708 -0.976440 0.139225
+vn -0.698904 -0.361461 0.617084
+vn -0.664083 0.607868 0.435255
+vn -0.636860 -0.529527 0.560289
+vn -0.614277 0.571032 0.544542
+vn -0.550523 -0.681631 0.481918
+vn -0.698904 0.361461 0.617084
+vn -0.441054 -0.811365 0.383557
+vn -0.736229 0.183203 0.651448
+vn -0.813318 0.330302 0.478927
+vn -0.538469 -0.782250 0.313150
+vn -0.748650 0.000000 0.662923
+vn -0.849422 0.165838 0.500931
+vn -0.542253 0.814112 0.207648
+vn -0.385571 -0.895505 0.222205
+vn -0.849422 -0.165838 0.500931
+vn -0.678640 0.675253 0.288827
+vn -0.205603 -0.971679 0.116184
+vn -0.813318 -0.330302 0.478927
+vn -0.744896 0.579577 0.330424
+vn -0.751091 -0.491134 0.441115
+vn -0.721854 0.544542 0.427045
+vn -0.660237 -0.644124 0.386212
+vn -0.826746 -0.459700 0.324198
+vn -0.789148 0.529160 0.311686
+vn -0.736595 -0.611957 0.287912
+vn -0.886135 0.305734 0.348186
+vn -0.609943 -0.756096 0.237159
+vn -0.861263 0.000000 0.508133
+vn -0.919706 0.152440 0.361736
+vn -0.593280 0.790338 0.152837
+vn -0.442885 -0.880154 0.170660
+vn -0.919706 -0.152440 0.361736
+vn -0.740440 0.638844 0.208716
+vn -0.237770 -0.967132 0.089785
+vn -0.886135 -0.305734 0.348186
+vn -0.789636 0.569292 0.228828
+vn -0.260842 -0.963439 0.061007
+vn -0.930296 -0.288522 0.226386
+vn -0.807459 0.574297 0.134648
+vn -0.873928 -0.437117 0.212348
+vn -0.826899 0.524644 0.202399
+vn -0.786065 -0.588031 0.190497
+vn -0.930296 0.288522 0.226386
+vn -0.658254 -0.735832 0.158757
+vn -0.930540 0.000000 0.366100
+vn -0.961577 0.143223 0.234169
+vn -0.627888 0.772423 0.095370
+vn -0.483169 -0.867855 0.115482
+vn -0.961577 -0.143223 0.234169
+vn -0.780328 0.612171 0.127537
+vn -0.646931 0.761650 0.036775
+vn -0.507035 -0.859920 0.058199
+vn -0.971587 0.000000 0.236671
+vn -0.983734 -0.137883 0.114963
+vn -0.801294 0.596393 0.046724
+vn -0.274667 -0.961028 0.030824
+vn -0.953948 -0.278481 0.111423
+vn -0.807581 0.587695 0.048647
+vn -0.899686 -0.423688 0.104953
+vn -0.843806 0.527329 0.099399
+vn -0.813746 -0.573443 0.094699
+vn -0.953948 0.278481 0.111423
+vn -0.686117 -0.723106 0.079501
+vn -0.983734 0.137883 0.114963
+vn -0.993225 0.000000 0.116092
+vn -0.436445 0.899686 -0.007599
+vn -0.430372 0.901822 -0.038118
+vn -0.415540 0.907041 -0.067476
+vn -0.391919 0.915067 -0.094852
+vn -0.359569 0.925413 -0.119358
+vn -0.318857 0.937376 -0.140019
+vn -0.270363 0.950072 -0.155644
+vn -0.215308 0.962523 -0.164800
+vn -0.156194 0.973693 -0.165838
+vn -0.097232 0.982604 -0.158025
+vn -0.042512 0.988861 -0.142582
+vn 0.005341 0.992584 -0.121403
+vn 0.045167 0.994324 -0.096133
+vn 0.076144 0.994751 -0.067965
+vn 0.097903 0.994446 -0.037965
+vn 0.110294 0.993866 -0.007080
+vn 0.113285 0.993255 0.023957
+vn 0.106937 0.992767 0.054476
+vn 0.091281 0.992279 0.083865
+vn 0.066408 0.991546 0.111301
+vn 0.032533 0.990173 0.135899
+vn -0.009735 0.987579 0.156621
+vn -0.059664 0.983215 0.172338
+vn -0.115696 0.976531 0.181555
+vn -0.175146 0.967437 0.182592
+vn -0.233772 0.956450 0.174749
+vn -0.287484 0.944426 0.159246
+vn -0.333995 0.932401 0.138005
+vn -0.372204 0.921262 0.112644
+vn -0.401654 0.911863 0.084414
+vn -0.422163 0.904843 0.054384
+vn -0.433729 0.900723 0.023408
+vn -0.168279 0.985687 0.008484
+usemtl SkinColor
+s 1
+f 6280//4057 6279//4058 6294//4059
+f 6275//4060 6274//2918 6289//4061
+f 6270//4062 6269//4063 6285//4064
+f 6281//4065 6280//4057 6295//4066
+f 6276//4067 6275//4060 6290//4068
+f 6271//4069 6270//4062 6285//4064
+f 6277//4070 6276//4067 6291//4071
+f 6272//4072 6271//4069 6287//4073
+f 6278//4074 6277//4070 6292//4075
+f 6273//4076 6272//4072 6288//4077
+f 6279//4058 6278//4074 6293//4078
+f 6274//2918 6273//4076 6289//4061
+f 6269//4063 6268//4079 6284//4080
+f 6295//4066 6294//4059 6309//4081
+f 6290//4068 6289//4061 6304//4082
+f 6285//4064 6284//4080 6300//4083
+f 6296//4084 6295//4066 6310//4085
+f 6291//4071 6290//4068 6305//4086
+f 6286//4087 6285//4064 6300//4083
+f 6292//4075 6291//4071 6306//4088
+f 6287//4073 6286//4087 6302//4089
+f 6293//4078 6292//4075 6307//4090
+f 6288//4077 6287//4073 6303//4091
+f 6294//4059 6293//4078 6308//4092
+f 6289//4061 6288//4077 6304//4082
+f 6284//4080 6283//4093 6299//4094
+f 6309//4081 6308//4092 6323//4095
+f 6304//4082 6303//4091 6319//4096
+f 6299//4094 6298//4097 6314//4098
+f 6310//4085 6309//4081 6324//4099
+f 6305//4086 6304//4082 6319//4096
+f 6300//4083 6299//4094 6315//4100
+f 6311//4101 6310//4085 6325//4102
+f 6306//4088 6305//4086 6320//4103
+f 6301//4104 6300//4083 6316//4105
+f 6307//4090 6306//4088 6321//4106
+f 6302//4089 6301//4104 6317//4107
+f 6308//4092 6307//4090 6322//4108
+f 6303//4091 6302//4089 6318//4109
+f 6317//4107 6316//4105 6332//4110
+f 6323//4095 6322//4108 6337//4111
+f 6318//4109 6317//4107 6333//4112
+f 6324//4099 6323//4095 6338//4113
+f 6319//4096 6318//4109 6334//4114
+f 6314//4098 6313//4115 6329//4116
+f 6325//4102 6324//4099 6339//4117
+f 6320//4103 6319//4096 6334//4114
+f 6315//4100 6314//4098 6330//4118
+f 6326//4119 6325//4102 6340//4120
+f 6321//4106 6320//4103 6335//4121
+f 6316//4105 6315//4100 6331//4122
+f 6322//4108 6321//4106 6336//4123
+f 6336//4123 6335//4121 6350//4124
+f 6331//4122 6330//4118 6346//4125
+f 6337//4111 6336//4123 6351//4126
+f 6332//4110 6331//4122 6347//4127
+f 6338//4113 6337//4111 6352//4128
+f 6333//4112 6332//4110 6348//4129
+f 6339//4117 6338//4113 6353//4130
+f 6334//4114 6333//4112 6349//4131
+f 6329//4116 6328//4132 6344//4133
+f 6340//4120 6339//4117 6354//4134
+f 6335//4121 6334//4114 6349//4131
+f 6330//4118 6329//4116 6345//4135
+f 6341//4136 6340//4120 6355//4137
+f 6355//4137 6354//4134 6369//4138
+f 6350//4124 6349//4131 6364//4139
+f 6345//4135 6344//4133 6360//4140
+f 6356//4141 6355//4137 6370//4142
+f 6351//4126 6350//4124 6365//4143
+f 6346//4125 6345//4135 6361//4144
+f 6352//4128 6351//4126 6366//4145
+f 6347//4127 6346//4125 6362//4146
+f 6353//4130 6352//4128 6367//4147
+f 6348//4129 6347//4127 6363//4148
+f 6354//4134 6353//4130 6368//4149
+f 6349//4131 6348//4129 6364//4139
+f 6344//4133 6343//4150 6359//4151
+f 6369//4138 6368//4149 6383//4152
+f 6364//4139 6363//4148 6379//4153
+f 6359//4151 6358//4154 6374//4155
+f 6370//4142 6369//4138 6384//4156
+f 6365//4143 6364//4139 6379//4153
+f 6360//4140 6359//4151 6375//4157
+f 6371//4158 6370//4142 6385//4159
+f 6366//4145 6365//4143 6380//4160
+f 6361//4144 6360//4140 6376//4161
+f 6367//4147 6366//4145 6381//4162
+f 6362//4146 6361//4144 6377//4163
+f 6368//4149 6367//4147 6382//4164
+f 6363//4148 6362//4146 6378//4165
+f 6383//4152 6382//4164 6397//4166
+f 6378//4165 6377//4163 6393//4167
+f 6384//4156 6383//4152 6398//4168
+f 6379//4153 6378//4165 6394//3044
+f 6374//4155 6373//4169 6389//4170
+f 6385//4159 6384//4156 6399//4171
+f 6380//4160 6379//4153 6394//3044
+f 6375//4157 6374//4155 6390//4172
+f 6386//4173 6385//4159 6400//4174
+f 6381//4162 6380//4160 6395//4175
+f 6376//4161 6375//4157 6390//4172
+f 6382//4164 6381//4162 6396//4176
+f 6377//4163 6376//4161 6392//4177
+f 6391//4178 6390//4172 6405//4179
+f 6397//4166 6396//4176 6412//4180
+f 6392//4177 6391//4178 6406//4181
+f 6398//4168 6397//4166 6413//4182
+f 6393//4167 6392//4177 6407//4183
+f 6399//4171 6398//4168 6414//4184
+f 6394//3044 6393//4167 6408//4185
+f 6389//4170 6388//4186 6403//4187
+f 6400//4174 6399//4171 6415//4188
+f 6395//4175 6394//3044 6410//4189
+f 6390//4172 6389//4170 6404//4190
+f 6401//4191 6400//4174 6416//4192
+f 6396//4176 6395//4175 6411//4193
+f 6410//4189 6409//4194 6425//4195
+f 6405//4179 6404//4190 6419//4196
+f 6416//4192 6415//4188 6431//4197
+f 6411//4193 6410//4189 6426//4198
+f 6406//4181 6405//4179 6420//4199
+f 6412//4180 6411//4193 6427//4200
+f 6407//4183 6406//4181 6421//4201
+f 6413//4182 6412//4180 6428//4202
+f 6408//4185 6407//4183 6422//4203
+f 6414//4184 6413//4182 6429//4204
+f 6409//4194 6408//4185 6423//4205
+f 6404//4190 6403//4187 6418//4206
+f 6415//4188 6414//4184 6430//4207
+f 6429//4204 6428//4202 6444//4208
+f 6424//4209 6423//4205 6438//4210
+f 6419//4196 6418//4206 6433//4211
+f 6430//4207 6429//4204 6445//4212
+f 6425//4195 6424//4209 6440//4213
+f 6420//4199 6419//4196 6434//4214
+f 6431//4197 6430//4207 6446//4215
+f 6426//4198 6425//4195 6441//4216
+f 6421//4201 6420//4199 6435//4217
+f 6427//4200 6426//4198 6442//4218
+f 6422//4203 6421//4201 6436//4219
+f 6428//4202 6427//4200 6443//4220
+f 6423//4205 6422//4203 6437//4221
+f 6443//4220 6442//4218 6458//4222
+f 6438//4210 6437//4221 6452//4223
+f 6444//4208 6443//4220 6459//4224
+f 6439//4225 6438//4210 6453//4226
+f 6434//4214 6433//4211 6448//4227
+f 6445//4212 6444//4208 6460//4228
+f 6440//4213 6439//4225 6455//4229
+f 6435//4217 6434//4214 6449//4230
+f 6446//4215 6445//4212 6461//4231
+f 6441//4216 6440//4213 6456//4232
+f 6436//4219 6435//4217 6450//4233
+f 6442//4218 6441//4216 6457//4234
+f 6437//4221 6436//4219 6451//4235
+f 6451//4235 6450//4233 6465//4236
+f 6457//4234 6456//4232 6472//4237
+f 6452//4223 6451//4235 6466//4238
+f 6458//4222 6457//4234 6473//4239
+f 6453//4226 6452//4223 6467//4240
+f 6459//4224 6458//4222 6474//4241
+f 6454//4242 6453//4226 6468//4243
+f 6449//4230 6448//4227 6463//4244
+f 6460//4228 6459//4224 6475//4245
+f 6455//4229 6454//4242 6470//4246
+f 6450//4233 6449//4230 6464//4247
+f 6461//4231 6460//4228 6476//4248
+f 6456//4232 6455//4229 6471//4249
+f 6470//4246 6469//4250 6485//4251
+f 6465//4236 6464//4247 6479//4252
+f 6476//4248 6475//4245 6491//4253
+f 6471//4249 6470//4246 6486//4254
+f 6466//4238 6465//4236 6480//4255
+f 6472//4237 6471//4249 6487//4256
+f 6467//4240 6466//4238 6481//4257
+f 6473//4239 6472//4237 6488//4258
+f 6468//4243 6467//4240 6482//4259
+f 6474//4241 6473//4239 6489//4260
+f 6469//4250 6468//4243 6483//4261
+f 6464//4247 6463//4244 6478//4262
+f 6475//4245 6474//4241 6490//4263
+f 6489//4260 6488//4258 6504//4264
+f 6484//4265 6483//4261 6498//4266
+f 6479//4252 6478//4262 6493//4267
+f 6490//4263 6489//4260 6505//4268
+f 6485//4251 6484//4265 6500//4269
+f 6480//4255 6479//4252 6494//4270
+f 6491//4253 6490//4263 6506//4271
+f 6486//4254 6485//4251 6501//4272
+f 6481//4257 6480//4255 6495//4273
+f 6487//4256 6486//4254 6502//4274
+f 6482//4259 6481//4257 6496//4275
+f 6488//4258 6487//4256 6503//4276
+f 6483//4261 6482//4259 6497//4277
+f 6503//4276 6502//4274 6518//4278
+f 6498//4266 6497//4277 6512//4279
+f 6504//4264 6503//4276 6519//4280
+f 6499//4281 6498//4266 6513//4282
+f 6494//4270 6493//4267 6508//4283
+f 6505//4268 6504//4264 6520//4284
+f 6500//4269 6499//4281 6515//4285
+f 6495//4273 6494//4270 6509//4286
+f 6506//4271 6505//4268 6521//4287
+f 6501//4272 6500//4269 6516//4288
+f 6496//4275 6495//4273 6510//4289
+f 6502//4274 6501//4272 6517//4290
+f 6497//4277 6496//4275 6511//4291
+f 6517//4290 6516//4288 6531//4292
+f 6512//4279 6511//4291 6527//4293
+f 6518//4278 6517//4290 6532//4294
+f 6513//4282 6512//4279 6528//4295
+f 6519//4280 6518//4278 6533//4296
+f 6514//261 6513//4282 6529//4297
+f 6509//4286 6508//4283 6524//4298
+f 6520//4284 6519//4280 6534//4299
+f 6515//4285 6514//261 6529//4297
+f 6510//4289 6509//4286 6525//4300
+f 6521//4287 6520//4284 6535//4301
+f 6516//4288 6515//4285 6530//4302
+f 6511//4291 6510//4289 6525//4300
+f 6525//4300 6524//4298 6540//4303
+f 6536//4304 6535//4301 6550//4305
+f 6531//4292 6530//4302 6545//4306
+f 6526//4307 6525//4300 6540//4303
+f 6532//4294 6531//4292 6546//4308
+f 6527//4293 6526//4307 6542//4309
+f 6533//4296 6532//4294 6547//4310
+f 6528//4295 6527//4293 6543//4311
+f 6534//4299 6533//4296 6548//4312
+f 6529//4297 6528//4295 6544//4313
+f 6524//4298 6523//4314 6539//4315
+f 6535//4301 6534//4299 6549//4316
+f 6530//4302 6529//4297 6544//4313
+f 6544//4313 6543//4311 6559//4317
+f 6539//4315 6538//4318 6554//4319
+f 6550//4305 6549//4316 6564//4320
+f 6545//4306 6544//4313 6559//4317
+f 6540//4303 6539//4315 6555//4321
+f 6551//4322 6550//4305 6565//4323
+f 6546//4308 6545//4306 6560//4324
+f 6541//4325 6540//4303 6556//4326
+f 6547//4310 6546//4308 6561//4327
+f 6542//4309 6541//4325 6557//4328
+f 6548//4312 6547//4310 6562//4329
+f 6543//4311 6542//4309 6558//4330
+f 6549//4316 6548//4312 6563//4331
+f 6563//4331 6562//4329 6577//4332
+f 6558//4330 6557//4328 6573//4333
+f 6564//4320 6563//4331 6578//4334
+f 6559//4317 6558//4330 6574//4335
+f 6554//4319 6553//4336 6569//4337
+f 6565//4323 6564//4320 6579//4338
+f 6560//4324 6559//4317 6574//4335
+f 6555//4321 6554//4319 6570//4339
+f 6566//4340 6565//4323 6580//4341
+f 6561//4327 6560//4324 6575//4342
+f 6556//4326 6555//4321 6571//4343
+f 6562//4329 6561//4327 6576//4344
+f 6557//4328 6556//4326 6572//4345
+f 6577//4332 6576//4344 6591//4346
+f 6572//4345 6571//4343 6587//4347
+f 6578//4334 6577//4332 6592//4348
+f 6573//4333 6572//4345 6588//4349
+f 6579//4338 6578//4334 6593//4350
+f 6574//4335 6573//4333 6589//4351
+f 6569//4337 6568//4352 6584//4353
+f 6580//4341 6579//4338 6594//4354
+f 6575//4342 6574//4335 6589//4351
+f 6570//4339 6569//4337 6585//4355
+f 6581//4356 6580//4341 6595//4357
+f 6576//4344 6575//4342 6590//4358
+f 6571//4343 6570//4339 6586//4359
+f 6585//4355 6584//4353 6601//4360
+f 6596//4361 6595//4357 6611//4362
+f 6591//4346 6590//4358 6606//4363
+f 6586//4359 6585//4355 6602//4364
+f 6592//4348 6591//4346 6607//4365
+f 6587//4347 6586//4359 6603//4366
+f 6593//4350 6592//4348 6608//4367
+f 6588//4349 6587//4347 6604//4368
+f 6594//4354 6593//4350 6609//4369
+f 6589//4351 6588//4349 6605//4370
+f 6584//4353 6583//4371 6600//4372
+f 6595//4357 6594//4354 6610//4373
+f 6590//4358 6589//4351 6605//4370
+f 6605//4370 6604//4368 6620//4374
+f 6600//4372 6599//4375 6615//4376
+f 6611//4362 6610//4373 6625//4377
+f 6606//4363 6605//4370 6620//4374
+f 6601//4360 6600//4372 6616//4378
+f 6612//4379 6611//4362 6626//4380
+f 6607//4365 6606//4363 6621//4381
+f 6602//4364 6601//4360 6616//4378
+f 6608//4367 6607//4365 6622//4382
+f 6603//4366 6602//4364 6618//4383
+f 6609//4369 6608//4367 6623//4384
+f 6604//4368 6603//4366 6619//4385
+f 6610//4373 6609//4369 6624//4386
+f 6624//4386 6623//4384 6638//4387
+f 6619//4385 6618//4383 6634//4388
+f 6625//4377 6624//4386 6639//4389
+f 6620//4374 6619//4385 6635//3282
+f 6615//4376 6614//4390 6630//4391
+f 6626//4380 6625//4377 6640//4392
+f 6621//4381 6620//4374 6635//3282
+f 6616//4378 6615//4376 6631//4393
+f 6627//4394 6626//4380 6641//4395
+f 6622//4382 6621//4381 6636//4396
+f 6617//4397 6616//4378 6631//4393
+f 6623//4384 6622//4382 6637//4398
+f 6618//4383 6617//4397 6633//4399
+f 6638//4387 6637//4398 6653//4400
+f 6633//4399 6632//4401 6647//4402
+f 6639//4389 6638//4387 6654//4403
+f 6634//4388 6633//4399 6648//4404
+f 6640//4392 6639//4389 6655//4405
+f 6635//3282 6634//4388 6649//4406
+f 6630//4391 6629//4407 6644//4408
+f 6641//4395 6640//4392 6656//4409
+f 6636//4396 6635//3282 6651//4410
+f 6631//4393 6630//4391 6645//4411
+f 6642//4412 6641//4395 6657//4413
+f 6637//4398 6636//4396 6652//4414
+f 6632//4401 6631//4393 6646//4415
+f 6657//4413 6656//4409 6672//4416
+f 6652//4414 6651//4410 6667//4417
+f 6647//4402 6646//4415 6661//4418
+f 6653//4400 6652//4414 6668//4419
+f 6648//4404 6647//4402 6662//4420
+f 6654//4403 6653//4400 6669//4421
+f 6649//4406 6648//4404 6663//4422
+f 6655//4405 6654//4403 6670//4423
+f 6650//4424 6649//4406 6664//4425
+f 6645//4411 6644//4408 6659//4426
+f 6656//4409 6655//4405 6671//4427
+f 6651//4410 6650//4424 6666//4428
+f 6646//4415 6645//4411 6660//4429
+f 6660//4429 6659//4426 6674//4430
+f 6671//4427 6670//4423 6686//4431
+f 6666//4428 6665//4432 6681//4433
+f 6661//4418 6660//4429 6675//4434
+f 6672//4416 6671//4427 6687//4435
+f 6667//4417 6666//4428 6682//4436
+f 6662//4420 6661//4418 6676//4437
+f 6668//4419 6667//4417 6683//4438
+f 6663//4422 6662//4420 6677//4439
+f 6669//4421 6668//4419 6684//4440
+f 6664//4425 6663//4422 6678//4441
+f 6670//4423 6669//4421 6685//4442
+f 6665//4432 6664//4425 6679//4443
+f 6679//4443 6678//4441 6693//4444
+f 6685//4442 6684//4440 6700//4445
+f 6680//4446 6679//4443 6694//4447
+f 6675//4434 6674//4430 6689//4448
+f 6686//4431 6685//4442 6701//4449
+f 6681//4433 6680//4446 6696//4450
+f 6676//4437 6675//4434 6690//4451
+f 6687//4435 6686//4431 6702//4452
+f 6682//4436 6681//4433 6697//4453
+f 6677//4439 6676//4437 6691//4454
+f 6683//4438 6682//4436 6698//4455
+f 6678//4441 6677//4439 6692//4456
+f 6684//4440 6683//4438 6699//4457
+f 6698//4455 6697//4453 6713//4458
+f 6693//4444 6692//4456 6707//4459
+f 6699//4457 6698//4455 6714//4460
+f 6694//4447 6693//4444 6708//4461
+f 6700//4445 6699//4457 6715//4462
+f 6695//4463 6694//4447 6709//4464
+f 6690//4451 6689//4448 6704//4465
+f 6701//4449 6700//4445 6716//4466
+f 6696//4450 6695//4463 6711//4467
+f 6691//4454 6690//4451 6705//4468
+f 6702//4452 6701//4449 6717//4469
+f 6697//4453 6696//4450 6712//4470
+f 6692//4456 6691//4454 6706//4471
+f 6717//4469 6716//4466 6733//4472
+f 6712//4470 6711//4467 6728//4473
+f 6707//4459 6706//4471 6722//4474
+f 6713//4458 6712//4470 6729//4475
+f 6708//4461 6707//4459 6723//4476
+f 6714//4460 6713//4458 6730//4477
+f 6709//4464 6708//4461 6724//4478
+f 6715//4462 6714//4460 6731//4479
+f 6710//4480 6709//4464 6725//4481
+f 6705//4468 6704//4465 6720//4482
+f 6716//4466 6715//4462 6732//4483
+f 6711//4467 6710//4480 6727//4484
+f 6706//4471 6705//4468 6721//4485
+f 6721//4485 6720//4482 6735//4486
+f 6732//4483 6731//4479 6747//4487
+f 6727//4484 6726//4488 6742//4489
+f 6722//4474 6721//4485 6736//4490
+f 6733//4472 6732//4483 6748//4491
+f 6728//4473 6727//4484 6743//4492
+f 6723//4476 6722//4474 6737//4493
+f 6729//4475 6728//4473 6744//4494
+f 6724//4478 6723//4476 6738//4495
+f 6730//4477 6729//4475 6745//4496
+f 6725//4481 6724//4478 6739//4497
+f 6731//4479 6730//4477 6746//4498
+f 6726//4488 6725//4481 6740//4499
+f 6597//364 6281//4065 6296//4084
+f 6597//364 6296//4084 6311//4101
+f 6597//364 6311//4101 6326//4119
+f 6597//364 6326//4119 6341//4136
+f 6597//364 6341//4136 6356//4141
+f 6597//364 6356//4141 6371//4158
+f 6597//364 6371//4158 6386//4173
+f 6597//364 6386//4173 6401//4191
+f 6597//364 6401//4191 6416//4192
+f 6597//364 6416//4192 6431//4197
+f 6597//364 6431//4197 6446//4215
+f 6597//364 6446//4215 6461//4231
+f 6597//364 6461//4231 6476//4248
+f 6597//364 6476//4248 6491//4253
+f 6597//364 6491//4253 6506//4271
+f 6597//364 6506//4271 6521//4287
+f 6597//364 6521//4287 6536//4304
+f 6597//364 6536//4304 6551//4322
+f 6597//364 6551//4322 6566//4340
+f 6597//364 6566//4340 6581//4356
+f 6597//364 6581//4356 6596//4361
+f 6597//364 6596//4361 6612//4379
+f 6597//364 6612//4379 6627//4394
+f 6597//364 6627//4394 6642//4412
+f 6597//364 6642//4412 6657//4413
+f 6597//364 6657//4413 6672//4416
+f 6597//364 6672//4416 6687//4435
+f 6597//364 6687//4435 6702//4452
+f 6597//364 6702//4452 6717//4469
+f 6597//364 6717//4469 6733//4472
+f 6597//364 6733//4472 6748//4491
+f 6740//4499 6739//4497 6272//4072
+f 6746//4498 6745//4496 6279//4058
+f 6741//4500 6740//4499 6273//4076
+f 6736//4490 6735//4486 6268//4079
+f 6747//4487 6746//4498 6280//4057
+f 6742//4489 6741//4500 6275//4060
+f 6737//4493 6736//4490 6269//4063
+f 6748//4491 6747//4487 6281//4065
+f 6743//4492 6742//4489 6276//4067
+f 6738//4495 6737//4493 6270//4062
+f 6597//364 6748//4491 6281//4065
+f 6744//4494 6743//4492 6277//4070
+f 6739//4497 6738//4495 6271//4069
+f 6745//4496 6744//4494 6278//4074
+f 6295//4066 6280//4057 6294//4059
+f 6290//4068 6275//4060 6289//4061
+f 6269//4063 6284//4080 6285//4064
+f 6296//4084 6281//4065 6295//4066
+f 6291//4071 6276//4067 6290//4068
+f 6286//4087 6271//4069 6285//4064
+f 6292//4075 6277//4070 6291//4071
+f 6271//4069 6286//4087 6287//4073
+f 6293//4078 6278//4074 6292//4075
+f 6272//4072 6287//4073 6288//4077
+f 6294//4059 6279//4058 6293//4078
+f 6273//4076 6288//4077 6289//4061
+f 6268//4079 6283//4093 6284//4080
+f 6310//4085 6295//4066 6309//4081
+f 6305//4086 6290//4068 6304//4082
+f 6284//4080 6299//4094 6300//4083
+f 6311//4101 6296//4084 6310//4085
+f 6306//4088 6291//4071 6305//4086
+f 6301//4104 6286//4087 6300//4083
+f 6307//4090 6292//4075 6306//4088
+f 6286//4087 6301//4104 6302//4089
+f 6308//4092 6293//4078 6307//4090
+f 6287//4073 6302//4089 6303//4091
+f 6309//4081 6294//4059 6308//4092
+f 6288//4077 6303//4091 6304//4082
+f 6283//4093 6298//4097 6299//4094
+f 6324//4099 6309//4081 6323//4095
+f 6303//4091 6318//4109 6319//4096
+f 6298//4097 6313//4115 6314//4098
+f 6325//4102 6310//4085 6324//4099
+f 6320//4103 6305//4086 6319//4096
+f 6299//4094 6314//4098 6315//4100
+f 6326//4119 6311//4101 6325//4102
+f 6321//4106 6306//4088 6320//4103
+f 6300//4083 6315//4100 6316//4105
+f 6322//4108 6307//4090 6321//4106
+f 6301//4104 6316//4105 6317//4107
+f 6323//4095 6308//4092 6322//4108
+f 6302//4089 6317//4107 6318//4109
+f 6316//4105 6331//4122 6332//4110
+f 6338//4113 6323//4095 6337//4111
+f 6317//4107 6332//4110 6333//4112
+f 6339//4117 6324//4099 6338//4113
+f 6318//4109 6333//4112 6334//4114
+f 6313//4115 6328//4132 6329//4116
+f 6340//4120 6325//4102 6339//4117
+f 6335//4121 6320//4103 6334//4114
+f 6314//4098 6329//4116 6330//4118
+f 6341//4136 6326//4119 6340//4120
+f 6336//4123 6321//4106 6335//4121
+f 6315//4100 6330//4118 6331//4122
+f 6337//4111 6322//4108 6336//4123
+f 6351//4126 6336//4123 6350//4124
+f 6330//4118 6345//4135 6346//4125
+f 6352//4128 6337//4111 6351//4126
+f 6331//4122 6346//4125 6347//4127
+f 6353//4130 6338//4113 6352//4128
+f 6332//4110 6347//4127 6348//4129
+f 6354//4134 6339//4117 6353//4130
+f 6333//4112 6348//4129 6349//4131
+f 6328//4132 6343//4150 6344//4133
+f 6355//4137 6340//4120 6354//4134
+f 6350//4124 6335//4121 6349//4131
+f 6329//4116 6344//4133 6345//4135
+f 6356//4141 6341//4136 6355//4137
+f 6370//4142 6355//4137 6369//4138
+f 6365//4143 6350//4124 6364//4139
+f 6344//4133 6359//4151 6360//4140
+f 6371//4158 6356//4141 6370//4142
+f 6366//4145 6351//4126 6365//4143
+f 6345//4135 6360//4140 6361//4144
+f 6367//4147 6352//4128 6366//4145
+f 6346//4125 6361//4144 6362//4146
+f 6368//4149 6353//4130 6367//4147
+f 6347//4127 6362//4146 6363//4148
+f 6369//4138 6354//4134 6368//4149
+f 6348//4129 6363//4148 6364//4139
+f 6343//4150 6358//4154 6359//4151
+f 6384//4156 6369//4138 6383//4152
+f 6363//4148 6378//4165 6379//4153
+f 6358//4154 6373//4169 6374//4155
+f 6385//4159 6370//4142 6384//4156
+f 6380//4160 6365//4143 6379//4153
+f 6359//4151 6374//4155 6375//4157
+f 6386//4173 6371//4158 6385//4159
+f 6381//4162 6366//4145 6380//4160
+f 6360//4140 6375//4157 6376//4161
+f 6382//4164 6367//4147 6381//4162
+f 6361//4144 6376//4161 6377//4163
+f 6383//4152 6368//4149 6382//4164
+f 6362//4146 6377//4163 6378//4165
+f 6398//4168 6383//4152 6397//4166
+f 6377//4163 6392//4177 6393//4167
+f 6399//4171 6384//4156 6398//4168
+f 6378//4165 6393//4167 6394//3044
+f 6373//4169 6388//4186 6389//4170
+f 6400//4174 6385//4159 6399//4171
+f 6395//4175 6380//4160 6394//3044
+f 6374//4155 6389//4170 6390//4172
+f 6401//4191 6386//4173 6400//4174
+f 6396//4176 6381//4162 6395//4175
+f 6391//4178 6376//4161 6390//4172
+f 6397//4166 6382//4164 6396//4176
+f 6376//4161 6391//4178 6392//4177
+f 6406//4181 6391//4178 6405//4179
+f 6396//4176 6411//4193 6412//4180
+f 6407//4183 6392//4177 6406//4181
+f 6397//4166 6412//4180 6413//4182
+f 6408//4185 6393//4167 6407//4183
+f 6398//4168 6413//4182 6414//4184
+f 6409//4194 6394//3044 6408//4185
+f 6404//4190 6389//4170 6403//4187
+f 6399//4171 6414//4184 6415//4188
+f 6394//3044 6409//4194 6410//4189
+f 6405//4179 6390//4172 6404//4190
+f 6400//4174 6415//4188 6416//4192
+f 6395//4175 6410//4189 6411//4193
+f 6409//4194 6424//4209 6425//4195
+f 6420//4199 6405//4179 6419//4196
+f 6415//4188 6430//4207 6431//4197
+f 6410//4189 6425//4195 6426//4198
+f 6421//4201 6406//4181 6420//4199
+f 6411//4193 6426//4198 6427//4200
+f 6422//4203 6407//4183 6421//4201
+f 6412//4180 6427//4200 6428//4202
+f 6423//4205 6408//4185 6422//4203
+f 6413//4182 6428//4202 6429//4204
+f 6424//4209 6409//4194 6423//4205
+f 6419//4196 6404//4190 6418//4206
+f 6414//4184 6429//4204 6430//4207
+f 6428//4202 6443//4220 6444//4208
+f 6439//4225 6424//4209 6438//4210
+f 6434//4214 6419//4196 6433//4211
+f 6429//4204 6444//4208 6445//4212
+f 6424//4209 6439//4225 6440//4213
+f 6435//4217 6420//4199 6434//4214
+f 6430//4207 6445//4212 6446//4215
+f 6425//4195 6440//4213 6441//4216
+f 6436//4219 6421//4201 6435//4217
+f 6426//4198 6441//4216 6442//4218
+f 6437//4221 6422//4203 6436//4219
+f 6427//4200 6442//4218 6443//4220
+f 6438//4210 6423//4205 6437//4221
+f 6442//4218 6457//4234 6458//4222
+f 6453//4226 6438//4210 6452//4223
+f 6443//4220 6458//4222 6459//4224
+f 6454//4242 6439//4225 6453//4226
+f 6449//4230 6434//4214 6448//4227
+f 6444//4208 6459//4224 6460//4228
+f 6439//4225 6454//4242 6455//4229
+f 6450//4233 6435//4217 6449//4230
+f 6445//4212 6460//4228 6461//4231
+f 6440//4213 6455//4229 6456//4232
+f 6451//4235 6436//4219 6450//4233
+f 6441//4216 6456//4232 6457//4234
+f 6452//4223 6437//4221 6451//4235
+f 6466//4238 6451//4235 6465//4236
+f 6456//4232 6471//4249 6472//4237
+f 6467//4240 6452//4223 6466//4238
+f 6457//4234 6472//4237 6473//4239
+f 6468//4243 6453//4226 6467//4240
+f 6458//4222 6473//4239 6474//4241
+f 6469//4250 6454//4242 6468//4243
+f 6464//4247 6449//4230 6463//4244
+f 6459//4224 6474//4241 6475//4245
+f 6454//4242 6469//4250 6470//4246
+f 6465//4236 6450//4233 6464//4247
+f 6460//4228 6475//4245 6476//4248
+f 6455//4229 6470//4246 6471//4249
+f 6469//4250 6484//4265 6485//4251
+f 6480//4255 6465//4236 6479//4252
+f 6475//4245 6490//4263 6491//4253
+f 6470//4246 6485//4251 6486//4254
+f 6481//4257 6466//4238 6480//4255
+f 6471//4249 6486//4254 6487//4256
+f 6482//4259 6467//4240 6481//4257
+f 6472//4237 6487//4256 6488//4258
+f 6483//4261 6468//4243 6482//4259
+f 6473//4239 6488//4258 6489//4260
+f 6484//4265 6469//4250 6483//4261
+f 6479//4252 6464//4247 6478//4262
+f 6474//4241 6489//4260 6490//4263
+f 6488//4258 6503//4276 6504//4264
+f 6499//4281 6484//4265 6498//4266
+f 6494//4270 6479//4252 6493//4267
+f 6489//4260 6504//4264 6505//4268
+f 6484//4265 6499//4281 6500//4269
+f 6495//4273 6480//4255 6494//4270
+f 6490//4263 6505//4268 6506//4271
+f 6485//4251 6500//4269 6501//4272
+f 6496//4275 6481//4257 6495//4273
+f 6486//4254 6501//4272 6502//4274
+f 6497//4277 6482//4259 6496//4275
+f 6487//4256 6502//4274 6503//4276
+f 6498//4266 6483//4261 6497//4277
+f 6502//4274 6517//4290 6518//4278
+f 6513//4282 6498//4266 6512//4279
+f 6503//4276 6518//4278 6519//4280
+f 6514//261 6499//4281 6513//4282
+f 6509//4286 6494//4270 6508//4283
+f 6504//4264 6519//4280 6520//4284
+f 6499//4281 6514//261 6515//4285
+f 6510//4289 6495//4273 6509//4286
+f 6505//4268 6520//4284 6521//4287
+f 6500//4269 6515//4285 6516//4288
+f 6511//4291 6496//4275 6510//4289
+f 6501//4272 6516//4288 6517//4290
+f 6512//4279 6497//4277 6511//4291
+f 6532//4294 6517//4290 6531//4292
+f 6511//4291 6526//4307 6527//4293
+f 6533//4296 6518//4278 6532//4294
+f 6512//4279 6527//4293 6528//4295
+f 6534//4299 6519//4280 6533//4296
+f 6513//4282 6528//4295 6529//4297
+f 6508//4283 6523//4314 6524//4298
+f 6535//4301 6520//4284 6534//4299
+f 6530//4302 6515//4285 6529//4297
+f 6509//4286 6524//4298 6525//4300
+f 6536//4304 6521//4287 6535//4301
+f 6531//4292 6516//4288 6530//4302
+f 6526//4307 6511//4291 6525//4300
+f 6524//4298 6539//4315 6540//4303
+f 6551//4322 6536//4304 6550//4305
+f 6546//4308 6531//4292 6545//4306
+f 6541//4325 6526//4307 6540//4303
+f 6547//4310 6532//4294 6546//4308
+f 6526//4307 6541//4325 6542//4309
+f 6548//4312 6533//4296 6547//4310
+f 6527//4293 6542//4309 6543//4311
+f 6549//4316 6534//4299 6548//4312
+f 6528//4295 6543//4311 6544//4313
+f 6523//4314 6538//4318 6539//4315
+f 6550//4305 6535//4301 6549//4316
+f 6545//4306 6530//4302 6544//4313
+f 6543//4311 6558//4330 6559//4317
+f 6538//4318 6553//4336 6554//4319
+f 6565//4323 6550//4305 6564//4320
+f 6560//4324 6545//4306 6559//4317
+f 6539//4315 6554//4319 6555//4321
+f 6566//4340 6551//4322 6565//4323
+f 6561//4327 6546//4308 6560//4324
+f 6540//4303 6555//4321 6556//4326
+f 6562//4329 6547//4310 6561//4327
+f 6541//4325 6556//4326 6557//4328
+f 6563//4331 6548//4312 6562//4329
+f 6542//4309 6557//4328 6558//4330
+f 6564//4320 6549//4316 6563//4331
+f 6578//4334 6563//4331 6577//4332
+f 6557//4328 6572//4345 6573//4333
+f 6579//4338 6564//4320 6578//4334
+f 6558//4330 6573//4333 6574//4335
+f 6553//4336 6568//4352 6569//4337
+f 6580//4341 6565//4323 6579//4338
+f 6575//4342 6560//4324 6574//4335
+f 6554//4319 6569//4337 6570//4339
+f 6581//4356 6566//4340 6580//4341
+f 6576//4344 6561//4327 6575//4342
+f 6555//4321 6570//4339 6571//4343
+f 6577//4332 6562//4329 6576//4344
+f 6556//4326 6571//4343 6572//4345
+f 6592//4348 6577//4332 6591//4346
+f 6571//4343 6586//4359 6587//4347
+f 6593//4350 6578//4334 6592//4348
+f 6572//4345 6587//4347 6588//4349
+f 6594//4354 6579//4338 6593//4350
+f 6573//4333 6588//4349 6589//4351
+f 6568//4352 6583//4371 6584//4353
+f 6595//4357 6580//4341 6594//4354
+f 6590//4358 6575//4342 6589//4351
+f 6569//4337 6584//4353 6585//4355
+f 6596//4361 6581//4356 6595//4357
+f 6591//4346 6576//4344 6590//4358
+f 6570//4339 6585//4355 6586//4359
+f 6584//4353 6600//4372 6601//4360
+f 6612//4379 6596//4361 6611//4362
+f 6607//4365 6591//4346 6606//4363
+f 6585//4355 6601//4360 6602//4364
+f 6608//4367 6592//4348 6607//4365
+f 6586//4359 6602//4364 6603//4366
+f 6609//4369 6593//4350 6608//4367
+f 6587//4347 6603//4366 6604//4368
+f 6610//4373 6594//4354 6609//4369
+f 6588//4349 6604//4368 6605//4370
+f 6583//4371 6599//4375 6600//4372
+f 6611//4362 6595//4357 6610//4373
+f 6606//4363 6590//4358 6605//4370
+f 6604//4368 6619//4385 6620//4374
+f 6599//4375 6614//4390 6615//4376
+f 6626//4380 6611//4362 6625//4377
+f 6621//4381 6606//4363 6620//4374
+f 6600//4372 6615//4376 6616//4378
+f 6627//4394 6612//4379 6626//4380
+f 6622//4382 6607//4365 6621//4381
+f 6617//4397 6602//4364 6616//4378
+f 6623//4384 6608//4367 6622//4382
+f 6602//4364 6617//4397 6618//4383
+f 6624//4386 6609//4369 6623//4384
+f 6603//4366 6618//4383 6619//4385
+f 6625//4377 6610//4373 6624//4386
+f 6639//4389 6624//4386 6638//4387
+f 6618//4383 6633//4399 6634//4388
+f 6640//4392 6625//4377 6639//4389
+f 6619//4385 6634//4388 6635//3282
+f 6614//4390 6629//4407 6630//4391
+f 6641//4395 6626//4380 6640//4392
+f 6636//4396 6621//4381 6635//3282
+f 6615//4376 6630//4391 6631//4393
+f 6642//4412 6627//4394 6641//4395
+f 6637//4398 6622//4382 6636//4396
+f 6632//4401 6617//4397 6631//4393
+f 6638//4387 6623//4384 6637//4398
+f 6617//4397 6632//4401 6633//4399
+f 6637//4398 6652//4414 6653//4400
+f 6648//4404 6633//4399 6647//4402
+f 6638//4387 6653//4400 6654//4403
+f 6649//4406 6634//4388 6648//4404
+f 6639//4389 6654//4403 6655//4405
+f 6650//4424 6635//3282 6649//4406
+f 6645//4411 6630//4391 6644//4408
+f 6640//4392 6655//4405 6656//4409
+f 6635//3282 6650//4424 6651//4410
+f 6646//4415 6631//4393 6645//4411
+f 6641//4395 6656//4409 6657//4413
+f 6636//4396 6651//4410 6652//4414
+f 6647//4402 6632//4401 6646//4415
+f 6656//4409 6671//4427 6672//4416
+f 6651//4410 6666//4428 6667//4417
+f 6662//4420 6647//4402 6661//4418
+f 6652//4414 6667//4417 6668//4419
+f 6663//4422 6648//4404 6662//4420
+f 6653//4400 6668//4419 6669//4421
+f 6664//4425 6649//4406 6663//4422
+f 6654//4403 6669//4421 6670//4423
+f 6665//4432 6650//4424 6664//4425
+f 6660//4429 6645//4411 6659//4426
+f 6655//4405 6670//4423 6671//4427
+f 6650//4424 6665//4432 6666//4428
+f 6661//4418 6646//4415 6660//4429
+f 6675//4434 6660//4429 6674//4430
+f 6670//4423 6685//4442 6686//4431
+f 6665//4432 6680//4446 6681//4433
+f 6676//4437 6661//4418 6675//4434
+f 6671//4427 6686//4431 6687//4435
+f 6666//4428 6681//4433 6682//4436
+f 6677//4439 6662//4420 6676//4437
+f 6667//4417 6682//4436 6683//4438
+f 6678//4441 6663//4422 6677//4439
+f 6668//4419 6683//4438 6684//4440
+f 6679//4443 6664//4425 6678//4441
+f 6669//4421 6684//4440 6685//4442
+f 6680//4446 6665//4432 6679//4443
+f 6694//4447 6679//4443 6693//4444
+f 6684//4440 6699//4457 6700//4445
+f 6695//4463 6680//4446 6694//4447
+f 6690//4451 6675//4434 6689//4448
+f 6685//4442 6700//4445 6701//4449
+f 6680//4446 6695//4463 6696//4450
+f 6691//4454 6676//4437 6690//4451
+f 6686//4431 6701//4449 6702//4452
+f 6681//4433 6696//4450 6697//4453
+f 6692//4456 6677//4439 6691//4454
+f 6682//4436 6697//4453 6698//4455
+f 6693//4444 6678//4441 6692//4456
+f 6683//4438 6698//4455 6699//4457
+f 6697//4453 6712//4470 6713//4458
+f 6708//4461 6693//4444 6707//4459
+f 6698//4455 6713//4458 6714//4460
+f 6709//4464 6694//4447 6708//4461
+f 6699//4457 6714//4460 6715//4462
+f 6710//4480 6695//4463 6709//4464
+f 6705//4468 6690//4451 6704//4465
+f 6700//4445 6715//4462 6716//4466
+f 6695//4463 6710//4480 6711//4467
+f 6706//4471 6691//4454 6705//4468
+f 6701//4449 6716//4466 6717//4469
+f 6696//4450 6711//4467 6712//4470
+f 6707//4459 6692//4456 6706//4471
+f 6716//4466 6732//4483 6733//4472
+f 6711//4467 6727//4484 6728//4473
+f 6723//4476 6707//4459 6722//4474
+f 6712//4470 6728//4473 6729//4475
+f 6724//4478 6708//4461 6723//4476
+f 6713//4458 6729//4475 6730//4477
+f 6725//4481 6709//4464 6724//4478
+f 6714//4460 6730//4477 6731//4479
+f 6726//4488 6710//4480 6725//4481
+f 6721//4485 6705//4468 6720//4482
+f 6715//4462 6731//4479 6732//4483
+f 6710//4480 6726//4488 6727//4484
+f 6722//4474 6706//4471 6721//4485
+f 6736//4490 6721//4485 6735//4486
+f 6731//4479 6746//4498 6747//4487
+f 6726//4488 6741//4500 6742//4489
+f 6737//4493 6722//4474 6736//4490
+f 6732//4483 6747//4487 6748//4491
+f 6727//4484 6742//4489 6743//4492
+f 6738//4495 6723//4476 6737//4493
+f 6728//4473 6743//4492 6744//4494
+f 6739//4497 6724//4478 6738//4495
+f 6729//4475 6744//4494 6745//4496
+f 6740//4499 6725//4481 6739//4497
+f 6730//4477 6745//4496 6746//4498
+f 6741//4500 6726//4488 6740//4499
+f 6273//4076 6740//4499 6272//4072
+f 6745//4496 6278//4074 6279//4058
+f 6274//2918 6741//4500 6273//4076
+f 6269//4063 6736//4490 6268//4079
+f 6746//4498 6279//4058 6280//4057
+f 6741//4500 6274//2918 6275//4060
+f 6270//4062 6737//4493 6269//4063
+f 6747//4487 6280//4057 6281//4065
+f 6742//4489 6275//4060 6276//4067
+f 6271//4069 6738//4495 6270//4062
+f 6743//4492 6276//4067 6277//4070
+f 6272//4072 6739//4497 6271//4069
+f 6744//4494 6277//4070 6278//4074
+usemtl NoseTop
+f 6268//4079 6267//4501 6283//4093
+f 6283//4093 6282//4502 6298//4097
+f 6298//4097 6297//4503 6313//4115
+f 6313//4115 6312//4504 6328//4132
+f 6328//4132 6327//4505 6343//4150
+f 6343//4150 6342//4506 6358//4154
+f 6358//4154 6357//4507 6373//4169
+f 6373//4169 6372//4508 6388//4186
+f 6388//4186 6387//4509 6402//4510
+f 6403//4187 6402//4510 6417//4511
+f 6418//4206 6417//4511 6432//4512
+f 6433//4211 6432//4512 6447//4513
+f 6448//4227 6447//4513 6462//4514
+f 6463//4244 6462//4514 6477//4515
+f 6478//4262 6477//4515 6492//4516
+f 6493//4267 6492//4516 6507//4517
+f 6508//4283 6507//4517 6523//4314
+f 6523//4314 6522//4518 6538//4318
+f 6538//4318 6537//4519 6553//4336
+f 6553//4336 6552//4520 6568//4352
+f 6568//4352 6567//4521 6583//4371
+f 6583//4371 6582//4522 6599//4375
+f 6599//4375 6598//4523 6614//4390
+f 6614//4390 6613//4524 6629//4407
+f 6629//4407 6628//4525 6643//4526
+f 6644//4408 6643//4526 6658//4527
+f 6659//4426 6658//4527 6673//4528
+f 6674//4430 6673//4528 6688//4529
+f 6689//4448 6688//4529 6703//4530
+f 6704//4465 6703//4530 6719//4531
+f 6720//4482 6719//4531 6734//4532
+f 6267//4501 6718//4533 6282//4502
+f 6282//4502 6718//4533 6297//4503
+f 6297//4503 6718//4533 6312//4504
+f 6312//4504 6718//4533 6327//4505
+f 6327//4505 6718//4533 6342//4506
+f 6342//4506 6718//4533 6357//4507
+f 6357//4507 6718//4533 6372//4508
+f 6372//4508 6718//4533 6387//4509
+f 6387//4509 6718//4533 6402//4510
+f 6402//4510 6718//4533 6417//4511
+f 6417//4511 6718//4533 6432//4512
+f 6432//4512 6718//4533 6447//4513
+f 6447//4513 6718//4533 6462//4514
+f 6462//4514 6718//4533 6477//4515
+f 6477//4515 6718//4533 6492//4516
+f 6492//4516 6718//4533 6507//4517
+f 6507//4517 6718//4533 6522//4518
+f 6522//4518 6718//4533 6537//4519
+f 6537//4519 6718//4533 6552//4520
+f 6552//4520 6718//4533 6567//4521
+f 6567//4521 6718//4533 6582//4522
+f 6582//4522 6718//4533 6598//4523
+f 6598//4523 6718//4533 6613//4524
+f 6613//4524 6718//4533 6628//4525
+f 6628//4525 6718//4533 6643//4526
+f 6643//4526 6718//4533 6658//4527
+f 6658//4527 6718//4533 6673//4528
+f 6673//4528 6718//4533 6688//4529
+f 6688//4529 6718//4533 6703//4530
+f 6703//4530 6718//4533 6719//4531
+f 6719//4531 6718//4533 6734//4532
+f 6735//4486 6734//4532 6267//4501
+f 6734//4532 6718//4533 6267//4501
+f 6267//4501 6282//4502 6283//4093
+f 6282//4502 6297//4503 6298//4097
+f 6297//4503 6312//4504 6313//4115
+f 6312//4504 6327//4505 6328//4132
+f 6327//4505 6342//4506 6343//4150
+f 6342//4506 6357//4507 6358//4154
+f 6357//4507 6372//4508 6373//4169
+f 6372//4508 6387//4509 6388//4186
+f 6403//4187 6388//4186 6402//4510
+f 6418//4206 6403//4187 6417//4511
+f 6433//4211 6418//4206 6432//4512
+f 6448//4227 6433//4211 6447//4513
+f 6463//4244 6448//4227 6462//4514
+f 6478//4262 6463//4244 6477//4515
+f 6493//4267 6478//4262 6492//4516
+f 6508//4283 6493//4267 6507//4517
+f 6507//4517 6522//4518 6523//4314
+f 6522//4518 6537//4519 6538//4318
+f 6537//4519 6552//4520 6553//4336
+f 6552//4520 6567//4521 6568//4352
+f 6567//4521 6582//4522 6583//4371
+f 6582//4522 6598//4523 6599//4375
+f 6598//4523 6613//4524 6614//4390
+f 6613//4524 6628//4525 6629//4407
+f 6644//4408 6629//4407 6643//4526
+f 6659//4426 6644//4408 6658//4527
+f 6674//4430 6659//4426 6673//4528
+f 6689//4448 6674//4430 6688//4529
+f 6704//4465 6689//4448 6703//4530
+f 6720//4482 6704//4465 6719//4531
+f 6735//4486 6720//4482 6734//4532
+f 6268//4079 6735//4486 6267//4501
+o Eye_R_Sphere.006
+v -0.524476 0.974916 -0.429854
+v -0.531200 0.971113 -0.437667
+v -0.521508 0.974612 -0.432816
+v -0.529686 0.970959 -0.439177
+v -0.519084 0.973822 -0.436159
+v -0.528450 0.970556 -0.440881
+v -0.517299 0.972578 -0.439756
+v -0.527540 0.969921 -0.442715
+v -0.516221 0.970925 -0.443469
+v -0.526991 0.969079 -0.444608
+v -0.515891 0.968928 -0.447154
+v -0.526823 0.968061 -0.446487
+v -0.516322 0.966664 -0.450671
+v -0.527043 0.966907 -0.448279
+v -0.517498 0.964220 -0.453883
+v -0.527642 0.965661 -0.449917
+v -0.519374 0.961690 -0.456668
+v -0.528598 0.964371 -0.451337
+v -0.521876 0.959170 -0.458918
+v -0.529874 0.963086 -0.452484
+v -0.524910 0.956758 -0.460548
+v -0.531421 0.961856 -0.453314
+v -0.528358 0.954546 -0.461493
+v -0.533179 0.960729 -0.453797
+v -0.532089 0.952620 -0.461719
+v -0.535080 0.959747 -0.453912
+v -0.535957 0.951053 -0.461216
+v -0.537053 0.958948 -0.453655
+v -0.539816 0.949906 -0.460004
+v -0.539020 0.958363 -0.453038
+v -0.543517 0.949222 -0.458129
+v -0.540906 0.958015 -0.452082
+v -0.546917 0.949029 -0.455664
+v -0.542640 0.957916 -0.450825
+v -0.549886 0.949332 -0.452703
+v -0.544153 0.958071 -0.449315
+v -0.552309 0.950122 -0.449359
+v -0.545389 0.958474 -0.447611
+v -0.554094 0.951367 -0.445762
+v -0.546299 0.959108 -0.445777
+v -0.555173 0.953019 -0.442049
+v -0.546848 0.959951 -0.443884
+v -0.555502 0.955016 -0.438364
+v -0.547016 0.960968 -0.442005
+v -0.537332 0.965373 -0.444748
+v -0.555071 0.957280 -0.434848
+v -0.546796 0.962123 -0.440213
+v -0.553895 0.959724 -0.431635
+v -0.546197 0.963369 -0.438575
+v -0.552019 0.962255 -0.428850
+v -0.545241 0.964659 -0.437155
+v -0.549517 0.964774 -0.426600
+v -0.543965 0.965943 -0.436008
+v -0.546483 0.967187 -0.424971
+v -0.542418 0.967173 -0.435178
+v -0.543035 0.969398 -0.424025
+v -0.540661 0.968301 -0.434695
+v -0.539305 0.971325 -0.423799
+v -0.538759 0.969283 -0.434580
+v -0.535436 0.972891 -0.424302
+v -0.536787 0.970081 -0.434837
+v -0.531577 0.974039 -0.425514
+v -0.534819 0.970666 -0.435455
+v -0.527876 0.974722 -0.427389
+v -0.532933 0.971015 -0.436410
+v -0.527903 0.973309 -0.433843
+v -0.525649 0.973078 -0.436092
+v -0.522998 0.974809 -0.431345
+v -0.530446 0.971047 -0.438426
+v -0.523808 0.972479 -0.438630
+v -0.520299 0.974262 -0.434501
+v -0.529071 0.970768 -0.440034
+v -0.522453 0.971533 -0.441362
+v -0.527998 0.970250 -0.441803
+v -0.518193 0.973244 -0.437974
+v -0.521634 0.970279 -0.444180
+v -0.516760 0.971794 -0.441632
+v -0.527268 0.969511 -0.443667
+v -0.521384 0.968763 -0.446979
+v -0.516056 0.969968 -0.445334
+v -0.526909 0.968580 -0.445553
+v -0.521712 0.967044 -0.449649
+v -0.516107 0.967836 -0.448938
+v -0.526935 0.967494 -0.447389
+v -0.522605 0.965188 -0.452088
+v -0.527345 0.966294 -0.449105
+v -0.516911 0.965480 -0.452305
+v -0.524029 0.963266 -0.454202
+v -0.518438 0.962990 -0.455306
+v -0.528123 0.965025 -0.450634
+v -0.525929 0.961353 -0.455911
+v -0.520629 0.960463 -0.457826
+v -0.529239 0.963738 -0.451918
+v -0.528232 0.959522 -0.457148
+v -0.523399 0.957995 -0.459767
+v -0.530651 0.962480 -0.452907
+v -0.530850 0.957842 -0.457866
+v -0.532303 0.961302 -0.453563
+v -0.526643 0.955681 -0.461056
+v -0.533683 0.956380 -0.458038
+v -0.530235 0.953610 -0.461642
+v -0.534133 0.960247 -0.453862
+v -0.536620 0.955190 -0.457656
+v -0.534038 0.951862 -0.461504
+v -0.536071 0.959356 -0.453791
+v -0.539550 0.954319 -0.456735
+v -0.537905 0.950504 -0.460645
+v -0.538041 0.958664 -0.453354
+v -0.542360 0.953800 -0.455312
+v -0.541688 0.949588 -0.459101
+v -0.539968 0.958197 -0.452567
+v -0.544942 0.953653 -0.453440
+v -0.545241 0.949149 -0.456929
+v -0.541779 0.957974 -0.451461
+v -0.547196 0.953884 -0.451191
+v -0.548429 0.949204 -0.454213
+v -0.543402 0.958002 -0.450077
+v -0.549036 0.954483 -0.448653
+v -0.551127 0.949751 -0.451058
+v -0.544777 0.958281 -0.448469
+v -0.550391 0.955428 -0.445921
+v -0.553233 0.950769 -0.447585
+v -0.545850 0.958799 -0.446700
+v -0.551210 0.956683 -0.443102
+v -0.554666 0.952219 -0.443927
+v -0.546580 0.959538 -0.444836
+v -0.551460 0.958199 -0.440304
+v -0.542328 0.963416 -0.443519
+v -0.555370 0.954045 -0.440225
+v -0.546939 0.960468 -0.442950
+v -0.551133 0.959918 -0.437634
+v -0.555319 0.956177 -0.436621
+v -0.546913 0.961555 -0.441114
+v -0.550240 0.961774 -0.435195
+v -0.554515 0.958533 -0.433253
+v -0.546503 0.962755 -0.439398
+v -0.548816 0.963695 -0.433081
+v -0.545726 0.964023 -0.437869
+v -0.552988 0.961023 -0.430252
+v -0.546916 0.965609 -0.431372
+v -0.550797 0.963550 -0.427733
+v -0.544609 0.965311 -0.436586
+v -0.544612 0.967440 -0.430135
+v -0.548027 0.966018 -0.425791
+v -0.543198 0.966568 -0.435597
+v -0.541994 0.969119 -0.429417
+v -0.544783 0.968332 -0.424502
+v -0.541545 0.967747 -0.434940
+v -0.539162 0.970582 -0.429245
+v -0.539715 0.968802 -0.434641
+v -0.541191 0.970403 -0.423916
+v -0.536224 0.971772 -0.429627
+v -0.537388 0.972151 -0.424055
+v -0.537778 0.969693 -0.434712
+v -0.533294 0.972643 -0.430547
+v -0.533521 0.973509 -0.424913
+v -0.535807 0.970385 -0.435149
+v -0.530484 0.973162 -0.431971
+v -0.529738 0.974425 -0.426458
+v -0.533880 0.970852 -0.435936
+v -0.534371 0.968519 -0.441337
+v -0.533610 0.968441 -0.442096
+v -0.532988 0.968239 -0.442954
+v -0.532531 0.967919 -0.443876
+v -0.532254 0.967496 -0.444829
+v -0.532170 0.966984 -0.445774
+v -0.532280 0.966403 -0.446676
+v -0.532582 0.965776 -0.447499
+v -0.533063 0.965127 -0.448214
+v -0.533705 0.964481 -0.448791
+v -0.534483 0.963862 -0.449209
+v -0.535367 0.963295 -0.449451
+v -0.536324 0.962801 -0.449509
+v -0.537316 0.962399 -0.449380
+v -0.538306 0.962105 -0.449069
+v -0.539255 0.961930 -0.448588
+v -0.540127 0.961880 -0.447956
+v -0.540888 0.961958 -0.447197
+v -0.541509 0.962160 -0.446339
+v -0.541967 0.962480 -0.445417
+v -0.542244 0.962904 -0.444464
+v -0.542218 0.963996 -0.442618
+v -0.541916 0.964623 -0.441794
+v -0.541435 0.965272 -0.441079
+v -0.540793 0.965918 -0.440502
+v -0.540015 0.966537 -0.440085
+v -0.539131 0.967104 -0.439842
+v -0.538174 0.967598 -0.439784
+v -0.537182 0.968000 -0.439913
+v -0.536192 0.968294 -0.440224
+v -0.535243 0.968470 -0.440705
+v -0.532070 0.971075 -0.437043
+v -0.526185 0.974864 -0.428630
+v -0.526781 0.973219 -0.434975
+v -0.524733 0.972804 -0.437370
+v -0.523134 0.972031 -0.440006
+v -0.522047 0.970930 -0.442783
+v -0.521512 0.969544 -0.445593
+v -0.521551 0.967926 -0.448328
+v -0.522161 0.966138 -0.450884
+v -0.523320 0.964248 -0.453162
+v -0.524983 0.962330 -0.455074
+v -0.527086 0.960457 -0.456548
+v -0.529548 0.958700 -0.457526
+v -0.532274 0.957129 -0.457971
+v -0.535161 0.955802 -0.457866
+v -0.538096 0.954771 -0.457214
+v -0.540967 0.954075 -0.456042
+v -0.543664 0.953742 -0.454393
+v -0.546083 0.953784 -0.452332
+v -0.548132 0.954199 -0.449937
+v -0.549730 0.954972 -0.447301
+v -0.550818 0.956073 -0.444524
+v -0.551353 0.957459 -0.441714
+v -0.551314 0.959077 -0.438979
+v -0.550703 0.960865 -0.436423
+v -0.549544 0.962755 -0.434145
+v -0.547881 0.964673 -0.432233
+v -0.545779 0.966546 -0.430759
+v -0.543317 0.968303 -0.429781
+v -0.540590 0.969874 -0.429336
+v -0.537704 0.971201 -0.429441
+v -0.534768 0.972232 -0.430093
+v -0.531897 0.972928 -0.431265
+v -0.529200 0.973261 -0.432914
+v -0.278633 0.972176 -0.169592
+v -0.294496 0.987579 -0.191783
+v -0.315813 0.996242 -0.220002
+v -0.345297 1.010831 -0.259381
+v -0.379326 1.021626 -0.304026
+v -0.414714 1.021300 -0.348918
+v -0.450102 1.009866 -0.392330
+v -0.238105 0.964990 -0.207660
+v -0.256320 0.980810 -0.227642
+v -0.281455 0.990149 -0.252275
+v -0.316078 1.005650 -0.286827
+v -0.356369 1.017555 -0.325590
+v -0.398901 1.018496 -0.363771
+v -0.442040 1.008437 -0.399903
+v -0.205451 0.952861 -0.251590
+v -0.225560 0.969385 -0.269024
+v -0.253772 0.979867 -0.289517
+v -0.292535 0.996905 -0.318499
+v -0.337872 1.010685 -0.350475
+v -0.386160 1.013764 -0.380912
+v -0.435545 1.006024 -0.408641
+v -0.181925 0.936256 -0.299696
+v -0.203399 0.953743 -0.314338
+v -0.233828 0.965789 -0.330299
+v -0.275574 0.984934 -0.353181
+v -0.324545 1.001278 -0.377724
+v -0.376981 1.007284 -0.399682
+v -0.430865 1.002721 -0.418210
+v -0.168432 0.915812 -0.350127
+v -0.190689 0.934485 -0.361843
+v -0.222389 0.948458 -0.373053
+v -0.265846 0.970195 -0.389540
+v -0.316902 0.989698 -0.406291
+v -0.371716 0.999308 -0.419359
+v -0.428182 0.998655 -0.428241
+v -0.165490 0.892316 -0.400946
+v -0.187918 0.912352 -0.409714
+v -0.219895 0.928539 -0.416135
+v -0.263725 0.953255 -0.426178
+v -0.315236 0.976388 -0.435078
+v -0.370568 0.990140 -0.439188
+v -0.427596 0.993981 -0.438350
+v -0.173213 0.866670 -0.450200
+v -0.195192 0.888194 -0.456110
+v -0.226441 0.906797 -0.457890
+v -0.269293 0.934765 -0.461688
+v -0.319610 0.961861 -0.462978
+v -0.373581 0.980133 -0.458405
+v -0.429132 0.988880 -0.448147
+v -0.191302 0.839860 -0.495996
+v -0.212232 0.862940 -0.499249
+v -0.241777 0.884069 -0.496714
+v -0.282335 0.915436 -0.494706
+v -0.329857 0.946674 -0.488919
+v -0.380639 0.969673 -0.476274
+v -0.432731 0.983547 -0.457256
+v -0.219064 0.812916 -0.536574
+v -0.238383 0.837559 -0.537473
+v -0.265313 0.861227 -0.531115
+v -0.302350 0.896011 -0.523961
+v -0.345583 0.931412 -0.511905
+v -0.391472 0.959160 -0.492107
+v -0.438253 0.978187 -0.465328
+v -0.255432 0.786873 -0.570376
+v -0.272641 0.813028 -0.569313
+v -0.296143 0.839149 -0.559771
+v -0.328569 0.877235 -0.548330
+v -0.366183 0.916660 -0.531052
+v -0.405661 0.948999 -0.505296
+v -0.445487 0.973007 -0.472051
+v -0.299007 0.762734 -0.596101
+v -0.313688 0.790289 -0.593546
+v -0.333085 0.818684 -0.581579
+v -0.359985 0.859831 -0.566877
+v -0.390867 0.902986 -0.545624
+v -0.422664 0.939580 -0.515333
+v -0.454154 0.968206 -0.477168
+v -0.348115 0.741424 -0.612761
+v -0.359947 0.770215 -0.609240
+v -0.374717 0.800619 -0.595703
+v -0.395391 0.844468 -0.578889
+v -0.418684 0.890915 -0.555062
+v -0.441825 0.931265 -0.521834
+v -0.463923 0.963967 -0.480482
+v -0.400870 0.723763 -0.619717
+v -0.409640 0.753579 -0.615791
+v -0.419440 0.785647 -0.601600
+v -0.433424 0.831735 -0.583903
+v -0.448567 0.880911 -0.559002
+v -0.462409 0.924374 -0.524548
+v -0.474416 0.960454 -0.481866
+v -0.455243 0.710430 -0.616700
+v -0.460859 0.741020 -0.612950
+v -0.465535 0.774344 -0.599042
+v -0.472625 0.822123 -0.581728
+v -0.479367 0.873359 -0.557293
+v -0.483624 0.919172 -0.523371
+v -0.485232 0.957802 -0.481266
+v -0.509145 0.701937 -0.603827
+v -0.511634 0.733020 -0.600823
+v -0.511231 0.767144 -0.588129
+v -0.511487 0.816000 -0.572447
+v -0.509901 0.868548 -0.550001
+v -0.504656 0.915858 -0.518348
+v -0.495954 0.956113 -0.478705
+v -0.560505 0.698611 -0.581592
+v -0.560014 0.729886 -0.579879
+v -0.554772 0.764324 -0.569279
+v -0.548515 0.813601 -0.556417
+v -0.538994 0.866663 -0.537406
+v -0.524695 0.914560 -0.509672
+v -0.506170 0.955451 -0.474282
+v -0.607349 0.700579 -0.550850
+v -0.604140 0.731740 -0.550920
+v -0.594485 0.765992 -0.543217
+v -0.582288 0.815020 -0.534253
+v -0.565529 0.867778 -0.519992
+v -0.542973 0.915328 -0.497677
+v -0.515488 0.955842 -0.468167
+v -0.647877 0.707765 -0.512782
+v -0.642316 0.738510 -0.515061
+v -0.628843 0.772084 -0.510945
+v -0.611507 0.820201 -0.506808
+v -0.588486 0.871849 -0.498428
+v -0.558786 0.918132 -0.482824
+v -0.523804 0.953636 -0.459109
+v -0.680531 0.719894 -0.468852
+v -0.673076 0.749935 -0.473679
+v -0.656525 0.782367 -0.473702
+v -0.635049 0.828946 -0.475135
+v -0.606983 0.878720 -0.473543
+v -0.571527 0.922864 -0.465683
+v -0.531714 0.953934 -0.450611
+v -0.704057 0.736500 -0.420746
+v -0.695237 0.765577 -0.428365
+v -0.676470 0.796444 -0.432921
+v -0.652010 0.840918 -0.440454
+v -0.620309 0.888126 -0.446294
+v -0.580706 0.929344 -0.446913
+v -0.536923 0.956848 -0.440806
+v -0.717550 0.756943 -0.370315
+v -0.707947 0.784834 -0.380860
+v -0.687909 0.813776 -0.390167
+v -0.661738 0.855657 -0.404095
+v -0.627952 0.899706 -0.417727
+v -0.585971 0.937320 -0.427236
+v -0.539247 0.961473 -0.430560
+v -0.720492 0.780440 -0.319496
+v -0.710718 0.806967 -0.332990
+v -0.690402 0.833695 -0.347085
+v -0.663859 0.872597 -0.367456
+v -0.629619 0.913016 -0.388940
+v -0.587119 0.946488 -0.407407
+v -0.538122 0.967966 -0.420997
+v -0.484129 0.987764 -0.432596
+v -0.712770 0.806086 -0.270242
+v -0.703444 0.831125 -0.286594
+v -0.683856 0.855436 -0.305330
+v -0.658292 0.891086 -0.331946
+v -0.625244 0.927543 -0.361040
+v -0.584106 0.956495 -0.388189
+v -0.536457 0.976829 -0.412351
+v -0.694680 0.832896 -0.224446
+v -0.686404 0.856380 -0.243454
+v -0.668520 0.878165 -0.266505
+v -0.645250 0.910415 -0.298929
+v -0.614998 0.942730 -0.335099
+v -0.577048 0.966955 -0.370321
+v -0.532859 0.982162 -0.403242
+v -0.666918 0.859839 -0.183868
+v -0.660252 0.881760 -0.205230
+v -0.644985 0.901007 -0.232105
+v -0.625235 0.929841 -0.269673
+v -0.599272 0.957992 -0.312113
+v -0.566216 0.977468 -0.354488
+v -0.527337 0.987521 -0.395170
+v -0.630551 0.885882 -0.150066
+v -0.625995 0.906292 -0.173390
+v -0.614154 0.923084 -0.203449
+v -0.599015 0.948616 -0.245304
+v -0.578671 0.972744 -0.292966
+v -0.552026 0.987630 -0.341299
+v -0.520103 0.992701 -0.388447
+v -0.586976 0.910022 -0.124341
+v -0.584948 0.929031 -0.149158
+v -0.577213 0.943549 -0.181641
+v -0.567599 0.966020 -0.226757
+v -0.553988 0.986418 -0.278394
+v -0.535023 0.997048 -0.331262
+v -0.511435 0.997503 -0.383330
+v -0.537867 0.931331 -0.107681
+v -0.538689 0.949104 -0.133464
+v -0.535581 0.961614 -0.167517
+v -0.532194 0.981383 -0.214746
+v -0.526170 0.998489 -0.268956
+v -0.515862 1.005363 -0.324761
+v -0.501667 1.001742 -0.380015
+v -0.485113 0.948992 -0.100725
+v -0.488996 0.965740 -0.126912
+v -0.490858 0.976587 -0.161620
+v -0.494160 0.994116 -0.209731
+v -0.496287 1.008493 -0.265017
+v -0.495279 1.012254 -0.322047
+v -0.491173 1.005255 -0.378632
+v -0.430740 0.962325 -0.103742
+v -0.437777 0.978299 -0.129754
+v -0.444762 0.987890 -0.164178
+v -0.454959 1.003729 -0.211906
+v -0.465487 1.016046 -0.266725
+v -0.474063 1.017456 -0.323224
+v -0.480358 1.007907 -0.379232
+v -0.376837 0.970818 -0.116615
+v -0.387002 0.986300 -0.141880
+v -0.399066 0.995090 -0.175091
+v -0.416098 1.009852 -0.221187
+v -0.434954 1.020856 -0.274017
+v -0.453032 1.020770 -0.328247
+v -0.469636 1.009596 -0.381793
+v -0.325477 0.974144 -0.138850
+v -0.338622 0.989433 -0.162825
+v -0.355525 0.997910 -0.193941
+v -0.379070 1.012250 -0.237218
+v -0.405861 1.022741 -0.286613
+v -0.432992 1.022068 -0.336923
+v -0.459420 1.010258 -0.386215
+v -0.415446 0.857282 -0.444361
+v -0.417073 0.866694 -0.445501
+v -0.432496 1.017174 -0.370947
+v -0.420489 1.015045 -0.382225
+v -0.406800 1.020138 -0.356382
+v -0.446078 1.009213 -0.396135
+v -0.410815 1.011451 -0.395240
+v -0.392511 1.016366 -0.372392
+v -0.438798 1.007291 -0.404292
+v -0.403845 1.006532 -0.409491
+v -0.433209 1.004433 -0.413448
+v -0.381542 1.010756 -0.390363
+v -0.399848 1.000475 -0.424432
+v -0.374314 1.003522 -0.409602
+v -0.429526 1.000747 -0.423250
+v -0.398976 0.993514 -0.439488
+v -0.371104 0.994942 -0.429372
+v -0.427891 0.996376 -0.433322
+v -0.401264 0.985916 -0.454079
+v -0.372038 0.985347 -0.448912
+v -0.428367 0.991487 -0.443278
+v -0.406623 0.977974 -0.467647
+v -0.430935 0.986269 -0.452733
+v -0.377078 0.975105 -0.467471
+v -0.414848 0.969991 -0.479669
+v -0.386031 0.964609 -0.484336
+v -0.435496 0.980922 -0.461325
+v -0.425622 0.962276 -0.489683
+v -0.398552 0.954263 -0.498859
+v -0.441876 0.975651 -0.468725
+v -0.438531 0.955124 -0.497304
+v -0.414161 0.944465 -0.510482
+v -0.449828 0.970659 -0.474646
+v -0.453080 0.948811 -0.502240
+v -0.459048 0.966137 -0.478863
+v -0.432258 0.935591 -0.518758
+v -0.468709 0.943579 -0.504300
+v -0.452147 0.927981 -0.523369
+v -0.469181 0.962261 -0.481212
+v -0.484818 0.939629 -0.503407
+v -0.473065 0.921930 -0.524138
+v -0.479838 0.959177 -0.481604
+v -0.500787 0.937113 -0.499593
+v -0.494206 0.917668 -0.521035
+v -0.490609 0.957006 -0.480023
+v -0.516003 0.936127 -0.493006
+v -0.514759 0.915360 -0.514180
+v -0.501081 0.955831 -0.476531
+v -0.529881 0.936710 -0.483898
+v -0.533934 0.915095 -0.503836
+v -0.510850 0.955695 -0.471260
+v -0.540733 0.936655 -0.470678
+v -0.550994 0.916883 -0.490401
+v -0.517062 0.957178 -0.461155
+v -0.550829 0.939020 -0.457830
+v -0.565283 0.920654 -0.474390
+v -0.526043 0.955162 -0.453987
+v -0.557939 0.943609 -0.443723
+v -0.576252 0.926265 -0.456420
+v -0.532387 0.956737 -0.445250
+v -0.561669 0.949869 -0.428975
+v -0.583480 0.933499 -0.437180
+v -0.536014 0.960367 -0.435597
+v -0.561843 0.957783 -0.414486
+v -0.520832 0.975010 -0.425454
+v -0.586689 0.942078 -0.417410
+v -0.536532 0.965659 -0.426069
+v -0.561113 0.967968 -0.400765
+v -0.585756 0.951673 -0.397871
+v -0.533283 0.973412 -0.417979
+v -0.555753 0.975910 -0.387198
+v -0.580716 0.961916 -0.379312
+v -0.534685 0.979550 -0.407818
+v -0.547529 0.983893 -0.375176
+v -0.530123 0.984897 -0.399225
+v -0.571763 0.972411 -0.362447
+v -0.536754 0.991608 -0.365162
+v -0.559242 0.982757 -0.347924
+v -0.523744 0.990168 -0.391826
+v -0.523845 0.998760 -0.357541
+v -0.543633 0.992555 -0.336301
+v -0.515791 0.995160 -0.385904
+v -0.509296 1.005073 -0.352605
+v -0.525536 1.001430 -0.328025
+v -0.506571 0.999681 -0.381688
+v -0.493667 1.010305 -0.350544
+v -0.496438 1.003558 -0.379339
+v -0.505646 1.009039 -0.323414
+v -0.477559 1.014255 -0.351438
+v -0.484729 1.015090 -0.322645
+v -0.485781 1.006641 -0.378947
+v -0.461589 1.016771 -0.355252
+v -0.463588 1.019352 -0.325747
+v -0.475010 1.008812 -0.380527
+v -0.446374 1.017757 -0.361839
+v -0.443035 1.021660 -0.332602
+v -0.464539 1.009988 -0.384020
+v -0.467412 1.000360 -0.413046
+v -0.463357 0.999641 -0.416855
+v -0.460089 0.998427 -0.421251
+v -0.457735 0.996765 -0.426065
+v -0.456385 0.994720 -0.431111
+v -0.456091 0.992368 -0.436197
+v -0.456863 0.989802 -0.441125
+v -0.458674 0.987119 -0.445708
+v -0.461452 0.984423 -0.449768
+v -0.465091 0.981817 -0.453151
+v -0.469451 0.979402 -0.455725
+v -0.474365 0.977269 -0.457392
+v -0.479644 0.975502 -0.458088
+v -0.485085 0.974168 -0.457786
+v -0.490479 0.973318 -0.456498
+v -0.495618 0.972985 -0.454273
+v -0.500306 0.973182 -0.451197
+v -0.511379 0.965548 -0.450617
+v -0.517597 0.964818 -0.445377
+v -0.521351 0.966678 -0.438652
+v -0.522773 0.969998 -0.431599
+v -0.510855 0.983740 -0.423117
+v -0.509045 0.986422 -0.418535
+v -0.506266 0.989119 -0.414474
+v -0.502627 0.991724 -0.411092
+v -0.498267 0.994140 -0.408518
+v -0.493353 0.996272 -0.406851
+v -0.488074 0.998040 -0.406155
+v -0.482633 0.999374 -0.406457
+v -0.477239 1.000224 -0.407745
+v -0.472100 1.000557 -0.409970
+v -0.454769 1.010123 -0.389290
+v -0.423860 1.021925 -0.342946
+v -0.426497 1.016246 -0.376617
+v -0.415652 1.013384 -0.388769
+v -0.407326 1.009125 -0.402409
+v -0.401839 1.003634 -0.417013
+v -0.399404 0.997122 -0.432018
+v -0.400112 0.989839 -0.446849
+v -0.403937 0.982065 -0.460936
+v -0.410733 0.974099 -0.473737
+v -0.420237 0.966246 -0.484760
+v -0.432085 0.958809 -0.493582
+v -0.445820 0.952073 -0.499864
+v -0.460917 0.946298 -0.503364
+v -0.476793 0.941704 -0.503947
+v -0.492840 0.938470 -0.501592
+v -0.508440 0.936718 -0.496389
+v -0.522994 0.936517 -0.488538
+v -0.534619 0.936980 -0.476557
+v -0.545722 0.937873 -0.464221
+v -0.554352 0.941408 -0.450806
+v -0.559776 0.946836 -0.436369
+v -0.561683 0.953847 -0.421735
+v -0.560447 0.962830 -0.407806
+v -0.558503 0.972054 -0.394021
+v -0.551708 0.980021 -0.381220
+v -0.542203 0.987873 -0.370197
+v -0.530356 0.995311 -0.361375
+v -0.516620 1.002046 -0.355094
+v -0.501524 1.007822 -0.351594
+v -0.485647 1.012415 -0.351010
+v -0.469600 1.015650 -0.353365
+v -0.454000 1.017401 -0.358568
+v -0.439446 1.017603 -0.366419
+vn 0.210974 0.967528 0.139164
+vn 0.223701 0.962066 0.156041
+vn 0.306406 0.950591 0.049532
+vn 0.124363 0.991882 0.025971
+vn 0.203894 0.977783 -0.048402
+vn 0.022462 0.994324 -0.103732
+vn 0.291482 0.924070 0.247169
+vn 0.361278 0.866878 0.343425
+vn 0.400739 0.904691 0.144536
+vn 0.321390 0.944731 0.064272
+vn 0.400098 0.915494 -0.041566
+vn 0.383282 0.922025 -0.053865
+vn 0.081088 0.983428 -0.162053
+vn 0.267800 0.954039 -0.134404
+vn 0.481491 0.845576 0.230537
+vn 0.488784 0.871975 0.026124
+vn 0.552202 0.827204 -0.103549
+vn 0.438704 0.882931 -0.167150
+vn 0.313883 0.921506 -0.228614
+vn 0.128025 0.965697 -0.225837
+vn 0.578326 0.809595 0.100253
+vn 0.648091 0.760338 -0.042390
+vn 0.688131 0.699728 -0.191961
+vn 0.456801 0.875484 -0.157537
+vn 0.489334 0.826197 -0.279092
+vn 0.470473 0.834803 -0.285897
+vn 0.161718 0.941496 -0.295572
+vn 0.340281 0.881497 -0.327342
+vn 0.180883 0.911802 -0.368603
+vn 0.346233 0.835414 -0.426771
+vn 0.588580 0.772088 -0.239509
+vn 0.696829 0.630024 -0.342662
+vn 0.496445 0.769555 -0.401593
+vn 0.477401 0.779473 -0.405560
+vn 0.459212 0.719077 -0.521531
+vn 0.330699 0.785363 -0.523240
+vn 0.175787 0.840907 -0.511795
+vn 0.596515 0.708762 -0.376537
+vn 0.575701 0.639607 -0.509323
+vn 0.477828 0.707724 -0.520341
+vn 0.526933 0.567339 -0.632801
+vn 0.416608 0.655934 -0.629383
+vn 0.295480 0.732780 -0.612934
+vn 0.673940 0.553972 -0.488754
+vn 0.620289 0.474471 -0.624561
+vn 0.452101 0.494675 -0.742180
+vn 0.434217 0.643117 -0.630726
+vn 0.367290 0.578173 -0.728538
+vn 0.351238 0.592517 -0.724937
+vn 0.146641 0.801691 -0.579424
+vn 0.241310 0.679922 -0.692404
+vn 0.169958 0.629078 -0.758507
+vn 0.056154 0.726920 -0.684378
+vn 0.537950 0.394574 -0.744896
+vn 0.430097 0.317331 -0.845149
+vn 0.279611 0.515397 -0.810022
+vn 0.265603 0.531175 -0.804529
+vn 0.174596 0.457198 -0.872036
+vn 0.084658 0.581805 -0.808893
+vn -0.006653 0.691916 -0.721915
+vn 0.354045 0.424482 -0.833338
+vn 0.300882 0.245735 -0.921445
+vn 0.236549 0.359386 -0.902676
+vn 0.104160 0.301950 -0.947600
+vn 0.162999 0.474349 -0.865078
+vn 0.047365 0.424177 -0.904324
+vn -0.011475 0.540086 -0.841517
+vn -0.077548 0.660939 -0.746391
+vn 0.155217 0.182531 -0.970855
+vn -0.038057 0.254341 -0.966338
+vn 0.056215 0.405835 -0.912198
+vn -0.070925 0.363262 -0.928953
+vn -0.076815 0.382580 -0.920713
+vn -0.114841 0.505661 -0.855037
+vn -0.155278 0.633076 -0.758324
+vn -0.221229 0.479171 -0.849361
+vn -0.001190 0.130161 -0.991485
+vn -0.162450 0.090609 -0.982513
+vn -0.202002 0.331126 -0.921690
+vn -0.204871 0.351177 -0.913602
+vn -0.326762 0.462752 -0.824030
+vn -0.310526 0.603320 -0.734519
+vn -0.184637 0.218390 -0.958220
+vn -0.329966 0.195471 -0.923521
+vn -0.331919 0.310648 -0.890652
+vn -0.331767 0.331187 -0.883297
+vn -0.455733 0.302622 -0.837062
+vn -0.452712 0.323344 -0.830927
+vn -0.427290 0.456435 -0.780389
+vn -0.387432 0.596515 -0.702872
+vn -0.322306 0.065432 -0.944365
+vn -0.468429 0.186529 -0.863552
+vn -0.474624 0.055574 -0.878414
+vn -0.594714 0.191809 -0.780694
+vn -0.568651 0.307352 -0.762963
+vn -0.563005 0.327982 -0.758538
+vn -0.519089 0.460097 -0.720267
+vn -0.457930 0.613758 -0.643086
+vn -0.598437 0.474166 -0.645741
+vn -0.613544 0.061403 -0.787225
+vn -0.733757 0.082705 -0.674337
+vn -0.704001 0.211188 -0.678060
+vn -0.658437 0.344920 -0.668905
+vn -0.662465 0.497726 -0.559771
+vn -0.491714 0.649556 -0.579852
+vn -0.792016 0.243904 -0.559618
+vn -0.666341 0.324686 -0.671194
+vn -0.745079 0.353923 -0.565294
+vn -0.735343 0.373455 -0.565447
+vn -0.855464 0.288675 -0.429914
+vn -0.801782 0.393963 -0.449324
+vn -0.708274 0.530595 -0.465590
+vn -0.547624 0.694357 -0.466811
+vn -0.830592 0.118686 -0.544053
+vn -0.900357 0.167943 -0.401379
+vn -0.891842 0.343791 -0.293954
+vn -0.790735 0.412580 -0.452193
+vn -0.822504 0.460707 -0.333445
+vn -0.734977 0.570269 -0.366771
+vn -0.740440 0.616596 -0.267403
+vn -0.581835 0.737846 -0.342082
+vn -0.940367 0.228553 -0.251839
+vn -0.899777 0.407117 -0.156926
+vn -0.834315 0.443251 -0.327769
+vn -0.841395 0.499863 -0.205267
+vn -0.829432 0.516037 -0.213782
+vn -0.725455 0.666677 -0.170843
+vn -0.949095 0.298257 -0.101108
+vn -0.926206 0.374310 0.044923
+vn -0.878933 0.476272 -0.024140
+vn -0.822779 0.561693 -0.086550
+vn -0.811243 0.576434 -0.097812
+vn -0.779168 0.626331 0.023835
+vn -0.690023 0.719169 -0.081179
+vn -0.597766 0.756615 -0.264870
+vn -0.872555 0.453810 0.180761
+vn -0.830164 0.548540 0.099307
+vn -0.790216 0.533708 0.301096
+vn -0.755333 0.621204 0.208686
+vn -0.768670 0.639546 0.010010
+vn -0.712241 0.691275 0.121647
+vn -0.635823 0.771813 -0.001617
+vn -0.580157 0.793603 -0.183233
+vn -0.564531 0.822871 0.064364
+vn -0.489669 0.868374 -0.078310
+vn -0.682363 0.610950 0.401349
+vn -0.624592 0.754051 0.203131
+vn -0.703299 0.702994 0.105564
+vn -0.617664 0.764306 0.185156
+vn -0.479110 0.870235 0.114536
+vn -0.425916 0.903958 -0.037935
+vn -0.657277 0.691397 0.299814
+vn -0.553117 0.682546 0.477615
+vn -0.519547 0.812250 0.265114
+vn -0.515030 0.821162 0.245735
+vn -0.401166 0.863613 0.305277
+vn -0.382977 0.911893 0.147374
+vn -0.539781 0.756493 0.369182
+vn -0.407483 0.745750 0.527055
+vn -0.407392 0.813929 0.414106
+vn -0.251045 0.798120 0.547655
+vn -0.273995 0.906186 0.322062
+vn -0.399426 0.871334 0.284951
+vn -0.275185 0.912931 0.301340
+vn -0.352153 0.935789 -0.015412
+vn -0.279733 0.946440 0.161199
+vn -0.173315 0.972564 0.155065
+vn -0.201025 0.979522 -0.009857
+vn -0.265175 0.861568 0.432844
+vn -0.089785 0.837672 0.538713
+vn -0.142918 0.938322 0.314798
+vn -0.147160 0.944304 0.294229
+vn -0.067812 0.989227 0.129643
+vn -0.120304 0.992370 -0.026673
+vn -0.118564 0.897488 0.424726
+vn 0.070040 0.862850 0.500534
+vn -0.013001 0.958800 0.283761
+vn -0.020234 0.964324 0.263924
+vn 0.110782 0.966796 0.230171
+vn 0.032899 0.995697 0.086520
+vn 0.026734 0.920408 0.389996
+vn 0.222358 0.872707 0.434584
+vn 0.165197 0.929380 0.330058
+vn 0.100681 0.972137 0.211554
+vn 0.048250 0.989959 -0.132664
+vn 0.101382 0.976196 -0.191687
+vn 0.142277 0.955596 -0.258034
+vn 0.169347 0.928953 -0.329112
+vn 0.181585 0.897305 -0.402234
+vn 0.182653 0.879025 -0.440382
+vn 0.177984 0.860134 -0.477950
+vn 0.160222 0.824030 -0.543352
+vn 0.127415 0.785211 -0.605914
+vn 0.105502 0.764672 -0.635701
+vn 0.078921 0.745140 -0.662191
+vn 0.020936 0.708975 -0.704917
+vn -0.046175 0.676229 -0.735221
+vn -0.119877 0.648213 -0.751946
+vn -0.193609 0.626881 -0.754662
+vn -0.234596 0.617054 -0.751091
+vn -0.275491 0.610370 -0.742637
+vn -0.351451 0.602008 -0.716941
+vn -0.419050 0.601062 -0.680502
+vn -0.463057 0.637104 -0.616138
+vn -0.495712 0.667684 -0.555345
+vn -0.517838 0.675344 -0.525040
+vn -0.528306 0.690207 -0.494400
+vn -0.549638 0.711570 -0.437605
+vn -0.562700 0.720267 -0.405621
+vn -0.564898 0.736930 -0.371197
+vn -0.582324 0.754143 -0.303507
+vn -0.594317 0.773431 -0.220344
+vn -0.561510 0.812250 -0.157781
+vn -0.539445 0.832240 -0.127750
+vn -0.513016 0.852321 -0.101535
+vn -0.455031 0.888516 -0.058809
+vn -0.391247 0.919797 -0.029633
+vn -0.317789 0.948057 -0.012238
+vn -0.277627 0.960631 -0.007996
+vn -0.236763 0.971496 -0.009247
+vn -0.158574 0.987091 -0.021088
+vn -0.086123 0.995239 -0.045228
+vn -0.047731 0.996857 -0.062899
+vn -0.011841 0.996277 -0.085299
+vn -0.194830 0.936521 -0.291391
+vn -0.156560 0.954192 -0.254860
+vn -0.133274 0.951018 -0.278878
+vn -0.158269 0.929136 -0.334117
+vn -0.113315 0.945433 -0.305368
+vn -0.094485 0.938383 -0.332347
+vn -0.129734 0.915311 -0.381207
+vn -0.079562 0.929136 -0.361034
+vn -0.065950 0.918455 -0.389904
+vn -0.110324 0.895688 -0.430738
+vn -0.056612 0.905881 -0.419691
+vn -0.048708 0.892026 -0.449293
+vn -0.100772 0.870937 -0.480880
+vn -0.045320 0.876614 -0.478988
+vn -0.043428 0.860103 -0.508225
+vn -0.101474 0.842067 -0.529679
+vn -0.046144 0.842463 -0.536729
+vn -0.050325 0.823908 -0.564470
+vn -0.112369 0.810175 -0.575304
+vn -0.059023 0.804712 -0.590686
+vn -0.069155 0.784814 -0.615833
+vn -0.133061 0.776452 -0.615925
+vn -0.083499 0.764824 -0.638783
+vn -0.099124 0.744346 -0.660390
+vn -0.162725 0.742210 -0.650075
+vn -0.118595 0.724326 -0.679159
+vn -0.139164 0.704031 -0.696371
+vn -0.200262 0.708792 -0.676382
+vn -0.162969 0.684774 -0.710257
+vn -0.187689 0.665456 -0.722434
+vn -0.244209 0.677450 -0.693838
+vn -0.214972 0.647725 -0.730888
+vn -0.242836 0.630085 -0.737541
+vn -0.292825 0.649373 -0.701773
+vn -0.272530 0.614551 -0.740287
+vn -0.302469 0.599292 -0.741172
+vn -0.344371 0.625690 -0.699911
+vn -0.333445 0.586535 -0.738060
+vn -0.364360 0.574236 -0.733116
+vn -0.396741 0.607318 -0.688253
+vn -0.395428 0.564776 -0.724326
+vn -0.426069 0.555864 -0.713736
+vn -0.447981 0.594897 -0.667348
+vn -0.456008 0.550066 -0.699576
+vn -0.485275 0.544939 -0.683737
+vn -0.496109 0.588946 -0.637928
+vn -0.512986 0.543046 -0.664754
+vn -0.539628 0.541856 -0.644307
+vn -0.539293 0.589709 -0.601123
+vn -0.564043 0.543931 -0.621235
+vn -0.587146 0.546709 -0.596942
+vn -0.575823 0.597125 -0.558397
+vn -0.607288 0.552690 -0.570696
+vn -0.625904 0.559313 -0.543474
+vn -0.604358 0.610920 -0.511338
+vn -0.641011 0.568987 -0.515061
+vn -0.654439 0.579241 -0.485977
+vn -0.623768 0.630543 -0.461806
+vn -0.663991 0.592242 -0.456435
+vn -0.671682 0.605670 -0.426557
+vn -0.633320 0.655263 -0.411664
+vn -0.675283 0.621509 -0.397107
+vn -0.676962 0.637593 -0.367595
+vn -0.632618 0.684164 -0.362835
+vn -0.674459 0.655660 -0.339366
+vn -0.670064 0.673788 -0.311411
+vn -0.621723 0.716086 -0.317240
+vn -0.661580 0.693411 -0.285409
+vn -0.651234 0.712912 -0.259987
+vn -0.601062 0.749779 -0.276620
+vn -0.637104 0.733299 -0.237312
+vn -0.621265 0.753349 -0.215491
+vn -0.571368 0.784020 -0.242439
+vn -0.602008 0.773797 -0.196966
+vn -0.581225 0.793664 -0.179510
+vn -0.533860 0.817469 -0.216132
+vn -0.557604 0.813349 -0.165868
+vn -0.532701 0.832240 -0.153417
+vn -0.489914 0.848781 -0.198706
+vn -0.505631 0.850429 -0.145177
+vn -0.477523 0.867641 -0.138279
+vn -0.441237 0.876858 -0.190741
+vn -0.448073 0.883602 -0.135807
+vn -0.417890 0.898434 -0.134709
+vn -0.389752 0.900510 -0.192633
+vn -0.387127 0.911618 -0.138035
+vn -0.356029 0.923490 -0.142735
+vn -0.337352 0.918943 -0.204260
+vn -0.325175 0.933378 -0.151769
+vn -0.294290 0.941832 -0.162114
+vn -0.286111 0.931333 -0.225196
+vn -0.264534 0.948057 -0.176519
+vn -0.235115 0.952757 -0.192083
+vn -0.383465 0.797235 -0.466201
+vn -0.328898 0.853908 -0.403272
+vn -0.314951 0.852504 -0.417158
+vn -0.303568 0.848781 -0.432844
+vn -0.295206 0.842921 -0.449751
+vn -0.290139 0.835170 -0.467208
+vn -0.288583 0.825800 -0.484451
+vn -0.290628 0.815210 -0.500931
+vn -0.296152 0.803735 -0.515976
+vn -0.304941 0.791864 -0.529069
+vn -0.316660 0.780023 -0.539659
+vn -0.330912 0.768731 -0.547258
+vn -0.347118 0.758324 -0.551744
+vn -0.364574 0.749290 -0.552812
+vn -0.382702 0.741966 -0.550432
+vn -0.400830 0.736564 -0.544755
+vn -0.418165 0.733360 -0.535966
+vn -0.434126 0.732444 -0.524400
+vn -0.448073 0.733909 -0.510453
+vn -0.459426 0.737571 -0.494827
+vn -0.467818 0.743431 -0.477950
+vn -0.472884 0.751183 -0.460524
+vn -0.474410 0.760521 -0.443251
+vn -0.472396 0.771172 -0.426710
+vn -0.466872 0.782617 -0.411664
+vn -0.458083 0.794488 -0.398602
+vn -0.446364 0.806299 -0.388043
+vn -0.432112 0.817621 -0.380413
+vn -0.415937 0.828028 -0.375958
+vn -0.398450 0.837062 -0.374889
+vn -0.380291 0.844386 -0.377270
+vn -0.362163 0.849788 -0.382946
+vn -0.344859 0.852962 -0.391766
+vn -0.238014 0.937284 -0.254616
+vn -0.207617 0.955077 -0.211310
+vn -0.180731 0.955870 -0.231513
+vn -0.259590 0.899075 -0.352489
+vn -0.172674 0.934965 -0.309793
+vn -0.271981 0.901151 -0.337535
+vn -0.213233 0.939116 -0.269326
+vn -0.234840 0.894070 -0.381420
+vn -0.139531 0.924161 -0.355510
+vn -0.244514 0.898312 -0.364971
+vn -0.215583 0.884732 -0.413160
+vn -0.115146 0.907163 -0.404675
+vn -0.222114 0.891018 -0.395856
+vn -0.202429 0.871456 -0.446669
+vn -0.100406 0.884548 -0.455458
+vn -0.205603 0.879513 -0.429121
+vn -0.196020 0.854762 -0.480544
+vn -0.095889 0.857295 -0.505783
+vn -0.195624 0.864193 -0.463515
+vn -0.196448 0.835170 -0.513627
+vn -0.101779 0.826319 -0.553880
+vn -0.192572 0.845759 -0.497574
+vn -0.203833 0.813623 -0.544450
+vn -0.117862 0.792932 -0.597736
+vn -0.196570 0.824793 -0.530137
+vn -0.217811 0.790857 -0.571886
+vn -0.143498 0.758354 -0.635823
+vn -0.207465 0.802149 -0.559862
+vn -0.237861 0.767693 -0.595019
+vn -0.177709 0.723899 -0.666585
+vn -0.224799 0.778771 -0.585620
+vn -0.263253 0.745048 -0.612812
+vn -0.219184 0.690939 -0.688864
+vn -0.247963 0.755455 -0.606433
+vn -0.292947 0.723869 -0.624622
+vn -0.266274 0.660665 -0.701834
+vn -0.276040 0.733116 -0.621540
+vn -0.325877 0.704947 -0.629933
+vn -0.317301 0.634358 -0.704886
+vn -0.307932 0.712668 -0.630268
+vn -0.360698 0.688894 -0.628712
+vn -0.370159 0.612934 -0.698019
+vn -0.342448 0.694845 -0.632344
+vn -0.396130 0.676443 -0.620838
+vn -0.422926 0.597278 -0.681448
+vn -0.378246 0.680319 -0.627735
+vn -0.430769 0.668050 -0.606708
+vn -0.473525 0.587909 -0.655812
+vn -0.413953 0.669698 -0.616504
+vn -0.463332 0.664052 -0.586779
+vn -0.519974 0.585284 -0.622120
+vn -0.448195 0.663411 -0.599139
+vn -0.492508 0.664541 -0.561937
+vn -0.560564 0.589435 -0.581622
+vn -0.479659 0.661580 -0.576342
+vn -0.517228 0.669576 -0.533006
+vn -0.593677 0.600238 -0.535905
+vn -0.507096 0.664418 -0.548936
+vn -0.536515 0.678854 -0.501236
+vn -0.618061 0.617237 -0.486770
+vn -0.529557 0.671712 -0.518021
+vn -0.549669 0.692190 -0.467635
+vn -0.632832 0.639821 -0.436018
+vn -0.546068 0.683218 -0.484725
+vn -0.556078 0.708884 -0.433821
+vn -0.637318 0.667135 -0.385632
+vn -0.556047 0.698538 -0.450331
+vn -0.555620 0.728416 -0.400800
+vn -0.631428 0.698050 -0.337565
+vn -0.559099 0.717002 -0.416272
+vn -0.548265 0.749992 -0.369945
+vn -0.615345 0.731468 -0.293710
+vn -0.555101 0.737938 -0.383709
+vn -0.534288 0.772820 -0.342418
+vn -0.589709 0.766076 -0.255593
+vn -0.544206 0.760552 -0.354015
+vn -0.514206 0.795953 -0.319376
+vn -0.555528 0.800501 -0.224830
+vn -0.526841 0.783990 -0.328227
+vn -0.488815 0.818567 -0.301614
+vn -0.514054 0.833461 -0.202612
+vn -0.503708 0.807276 -0.307443
+vn -0.459120 0.839747 -0.289773
+vn -0.466933 0.863704 -0.189642
+vn -0.475631 0.829615 -0.292337
+vn -0.426221 0.858730 -0.284402
+vn -0.415937 0.890011 -0.186560
+vn -0.443709 0.850093 -0.283578
+vn -0.391369 0.874722 -0.285714
+vn -0.363018 0.911466 -0.193426
+vn -0.409223 0.867916 -0.281503
+vn -0.355998 0.887173 -0.293558
+vn -0.310312 0.927122 -0.209998
+vn -0.373424 0.882382 -0.286172
+vn -0.321329 0.895566 -0.307657
+vn -0.259713 0.936460 -0.235664
+vn -0.337718 0.893002 -0.297372
+vn -0.303446 0.899350 -0.314707
+vn -0.288736 0.899594 -0.327616
+vn -0.040223 0.973144 -0.226539
+vn -0.003021 0.963347 -0.268227
+vn 0.025513 0.948729 -0.315012
+vn 0.044313 0.929899 -0.365093
+vn 0.052675 0.907559 -0.416547
+vn 0.050233 0.882595 -0.467422
+vn 0.037141 0.855922 -0.515732
+vn 0.013825 0.828578 -0.559648
+vn -0.018738 0.801660 -0.597461
+vn -0.059389 0.776147 -0.627705
+vn -0.106479 0.753044 -0.649251
+vn -0.158269 0.733238 -0.661245
+vn -0.212714 0.717490 -0.663259
+vn -0.267769 0.706381 -0.655171
+vn -0.321268 0.700400 -0.637349
+vn -0.371197 0.699698 -0.610401
+vn -0.511979 0.737114 -0.441054
+vn -0.426923 0.764824 -0.482437
+vn -0.423017 0.776543 -0.466933
+vn -0.432417 0.785943 -0.441908
+vn -0.447127 0.785028 -0.428663
+vn -0.495315 0.720420 -0.485397
+vn -0.492965 0.821589 -0.286233
+vn -0.469680 0.848903 -0.242317
+vn -0.437086 0.875851 -0.204505
+vn -0.396435 0.901334 -0.174261
+vn -0.349315 0.924467 -0.152715
+vn -0.297555 0.944243 -0.140721
+vn -0.243080 0.960021 -0.138707
+vn -0.188055 0.971099 -0.146794
+vn -0.134556 0.977111 -0.164617
+vn -0.268075 0.864223 -0.425642
+vn -0.179052 0.919553 -0.349712
+vn -0.164800 0.917020 -0.363109
+vn -0.153325 0.912778 -0.378552
+vn -0.145054 0.906919 -0.395489
+vn -0.140294 0.899747 -0.413221
+vn -0.139256 0.891476 -0.431104
+vn -0.141972 0.882443 -0.448439
+vn -0.148350 0.873012 -0.464553
+vn -0.158116 0.863521 -0.478805
+vn -0.170904 0.854366 -0.490707
+vn -0.186224 0.845882 -0.499771
+vn -0.203497 0.838374 -0.505631
+vn -0.222053 0.832179 -0.508072
+vn -0.241188 0.827479 -0.507004
+vn -0.260170 0.824488 -0.502487
+vn -0.278237 0.823328 -0.494644
+vn -0.435316 0.832057 -0.343669
+vn -0.492935 0.797113 -0.348735
+vn -0.424390 0.795648 -0.432173
+vn -0.409894 0.792291 -0.451888
+vn -0.408918 0.780175 -0.473373
+vn -0.413160 0.717277 -0.561052
+vn -0.357555 0.754265 -0.550645
+vn -0.325449 0.870571 -0.369030
+vn -0.315683 0.880032 -0.354747
+vn -0.302866 0.889187 -0.342845
+vn -0.287545 0.897702 -0.333811
+vn -0.270272 0.905179 -0.327921
+vn -0.251717 0.911405 -0.325480
+vn -0.232582 0.916105 -0.326548
+vn -0.213599 0.919095 -0.331065
+vn -0.195532 0.920255 -0.338908
+vn -0.084628 0.977813 -0.191565
+vn -0.106571 0.950163 -0.292856
+vn -0.017609 0.969573 -0.244118
+vn -0.119327 0.953032 -0.278298
+vn -0.059175 0.976928 -0.205115
+vn -0.081423 0.943541 -0.321024
+vn 0.015809 0.957121 -0.289163
+vn -0.091189 0.948057 -0.304727
+vn -0.062105 0.933683 -0.352641
+vn 0.039918 0.940123 -0.338450
+vn -0.068545 0.939634 -0.335215
+vn -0.049379 0.920927 -0.386547
+vn 0.053774 0.919156 -0.390149
+vn -0.052217 0.928098 -0.368572
+vn -0.043733 0.905820 -0.421339
+vn 0.056764 0.895077 -0.442244
+vn -0.042848 0.913938 -0.403577
+vn -0.045381 0.888943 -0.455733
+vn 0.048860 0.868801 -0.492721
+vn -0.040803 0.897610 -0.438826
+vn -0.054262 0.870907 -0.488418
+vn 0.030305 0.841304 -0.539659
+vn -0.046175 0.879818 -0.473006
+vn -0.070009 0.852443 -0.518082
+vn 0.001862 0.813685 -0.581256
+vn -0.058718 0.861232 -0.504776
+vn -0.092074 0.834223 -0.543657
+vn -0.035371 0.786981 -0.615925
+vn -0.077975 0.842524 -0.532945
+vn -0.119541 0.816950 -0.564135
+vn -0.080050 0.762261 -0.642293
+vn -0.103214 0.824458 -0.556383
+vn -0.151402 0.801355 -0.578692
+vn -0.130375 0.740410 -0.659352
+vn -0.133457 0.807703 -0.574236
+vn -0.186407 0.787957 -0.586810
+vn -0.184454 0.722312 -0.666494
+vn -0.167547 0.792932 -0.585803
+vn -0.223212 0.777306 -0.588153
+vn -0.240181 0.708640 -0.663381
+vn -0.204138 0.780663 -0.590625
+vn -0.260445 0.769799 -0.582690
+vn -0.295450 0.699942 -0.650197
+vn -0.241859 0.771416 -0.588519
+vn -0.296609 0.765740 -0.570635
+vn -0.348094 0.696524 -0.627400
+vn -0.279275 0.765526 -0.579608
+vn -0.330393 0.765282 -0.552416
+vn -0.494949 0.705496 -0.507218
+vn -0.314890 0.763207 -0.564165
+vn -0.552904 0.768364 -0.322275
+vn -0.457961 0.759026 -0.462691
+vn -0.489914 0.762749 -0.422071
+vn -0.447127 0.776940 -0.443159
+vn -0.423292 0.771905 -0.474288
+vn -0.491501 0.773614 -0.399884
+vn -0.428724 0.778161 -0.458907
+vn -0.427625 0.781396 -0.454451
+vn -0.433607 0.777703 -0.455092
+vn -0.431806 0.781243 -0.450697
+vn -0.437971 0.786584 -0.435255
+vn -0.428968 0.780541 -0.454634
+vn -0.437239 0.766991 -0.469558
+vn -0.461043 0.762108 -0.454512
+vn -0.433454 0.777581 -0.455458
+vn -0.450789 0.666128 -0.594134
+vn -0.527757 0.738304 -0.419874
+vn -0.447188 0.729270 -0.517838
+vn -0.412732 0.847682 -0.333201
+vn -0.485611 0.834162 -0.261330
+vn -0.461348 0.734153 -0.498123
+vn -0.396985 0.866176 -0.303507
+vn -0.457167 0.861782 -0.219733
+vn -0.408002 0.856380 -0.316355
+vn -0.374920 0.884365 -0.277963
+vn -0.419874 0.888485 -0.185095
+vn -0.388745 0.875088 -0.288217
+vn -0.347453 0.901639 -0.257485
+vn -0.375225 0.913236 -0.158727
+vn -0.363506 0.893155 -0.264748
+vn -0.315592 0.917234 -0.242927
+vn -0.324870 0.935057 -0.141636
+vn -0.333262 0.909909 -0.246895
+vn -0.280587 0.930631 -0.234809
+vn -0.270821 0.953154 -0.134526
+vn -0.299203 0.924680 -0.235359
+vn -0.243751 0.941282 -0.233467
+vn -0.215064 0.966826 -0.137608
+vn -0.262581 0.936949 -0.230506
+vn -0.206549 0.948790 -0.238929
+vn -0.159825 0.975524 -0.150792
+vn -0.224860 0.946196 -0.232612
+vn -0.170354 0.952849 -0.250984
+vn -0.107181 0.978942 -0.173589
+vn -0.187445 0.952086 -0.241554
+vn -0.151830 0.954405 -0.256966
+vn -0.136601 0.953337 -0.269204
+usemtl Eye-White
+s 1
+f 6977//4534 6976//4535 6984//4536
+f 6978//4537 6977//4534 6985//4538
+f 6979//4539 6978//4537 6985//4538
+f 6975//4540 6974//4541 6982//4542
+f 6976//4535 6975//4540 6983//4543
+f 6984//4536 6983//4543 6990//4544
+f 6985//4538 6984//4536 6991//4545
+f 6986//4546 6985//4538 6992//4547
+f 6982//4542 6981//4548 6989//4549
+f 6983//4543 6982//4542 6989//4549
+f 6990//4544 6989//4549 6996//4550
+f 6991//4545 6990//4544 6998//4551
+f 6992//4547 6991//4545 6999//4552
+f 6993//4553 6992//4547 6999//4552
+f 6989//4549 6988//4554 6996//4550
+f 6996//4550 6995//4555 7002//4556
+f 6997//4557 6996//4550 7004//4558
+f 6998//4551 6997//4557 7005//4559
+f 6999//4552 6998//4551 7005//4559
+f 7000//4560 6999//4552 7006//4561
+f 7007//4562 7006//4561 7013//4563
+f 7003//4564 7002//4556 7009//4565
+f 7004//4558 7003//4564 7011//4566
+f 7005//4559 7004//4558 7011//4566
+f 7006//4561 7005//4559 7013//4563
+f 7012//4567 7011//4566 7019//4568
+f 7013//4563 7012//4567 7020//4569
+f 7013//4563 7020//4569 7021//4570
+f 7010//4571 7009//4565 7017//4572
+f 7011//4566 7010//4571 7018//4573
+f 7018//4573 7017//4572 7024//4574
+f 7019//4568 7018//4573 7026//4575
+f 7020//4569 7019//4568 7026//4575
+f 7021//4570 7020//4569 7027//4576
+f 7017//4572 7016//4577 7024//4574
+f 7024//4574 7023//4578 7031//4579
+f 7025//4580 7024//4574 7032//4581
+f 7026//4575 7025//4580 7033//4582
+f 7027//4576 7026//4575 7033//4582
+f 7028//4583 7027//4576 7034//4584
+f 7034//4584 7041//4585 7042//4586
+f 7031//4579 7030//4587 7037//4588
+f 7032//4581 7031//4579 7039//4589
+f 7033//4582 7032//4581 7039//4589
+f 7034//4584 7033//4582 7041//4585
+f 7040//4590 7039//4589 7046//4591
+f 7041//4585 7040//4590 7048//4592
+f 7041//4585 7048//4592 7049//4593
+f 7038//4594 7037//4588 7044//4595
+f 7039//4589 7038//4594 7046//4591
+f 7046//4591 7045//4596 7052//4597
+f 7047//4598 7046//4591 7054//4599
+f 7048//4592 7047//4598 7054//4599
+f 7048//4592 7055//4600 7056//4601
+f 7045//4596 7044//4595 7051//4602
+f 7052//4597 7051//4602 7059//4603
+f 7053//4604 7052//4597 7060//4605
+f 7054//4599 7053//4604 7061//4606
+f 7055//4600 7054//4599 7061//4606
+f 7055//4600 7062//4607 7063//4608
+f 7063//4608 7062//4607 7069//4609
+f 7059//4603 7058//4610 7065//4611
+f 7060//4605 7059//4603 7067//4612
+f 7061//4606 7060//4605 7068//4613
+f 7062//4607 7061//4606 7069//4609
+f 7069//4609 7068//4613 7076//4614
+f 7069//4609 7076//4614 7077//4615
+f 7066//4616 7065//4611 7073//4617
+f 7067//4612 7066//4616 7074//4618
+f 7068//4613 7067//4612 7075//4619
+f 7074//4618 7073//4617 7081//4620
+f 7075//4619 7074//4618 7081//4620
+f 7076//4614 7075//4619 7082//4621
+f 7076//4614 7083//4622 7084//4623
+f 7073//4617 7072//4624 7080//4625
+f 7080//4625 7079//4626 7087//4627
+f 7081//4620 7080//4625 7088//4628
+f 7082//4621 7081//4620 7089//4629
+f 7083//4622 7082//4621 7090//4630
+f 7084//4623 7083//4622 7090//4630
+f 7091//4631 7090//4630 7097//4632
+f 7087//4627 7086//4633 7093//4634
+f 7088//4628 7087//4627 7094//4635
+f 7089//4629 7088//4628 7096//4636
+f 7090//4630 7089//4629 7097//4632
+f 7097//4632 7096//4636 7104//4637
+f 7098//4638 7097//4632 7104//4637
+f 7094//4635 7093//4634 7101//4639
+f 7095//4640 7094//4635 7102//4641
+f 7096//4636 7095//4640 7103//4642
+f 7102//4641 7101//4639 7108//4643
+f 7103//4642 7102//4641 7109//4644
+f 7104//4637 7103//4642 7111//4645
+f 7104//4637 7111//4645 7112//4646
+f 7101//4639 7100//4647 7108//4643
+f 7108//4643 7107//4648 7115//4649
+f 7109//4644 7108//4643 7115//4649
+f 7110//4650 7109//4644 7117//4651
+f 7111//4645 7110//4650 7118//4652
+f 7112//4646 7111//4645 7118//4652
+f 7118//4652 7125//4653 7126//4654
+f 7115//4649 7114//4655 7122//4656
+f 7116//4657 7115//4649 7123//4658
+f 7117//4651 7116//4657 7124//4659
+f 7118//4652 7117//4651 7124//4659
+f 7125//4653 7124//4659 7133//4660
+f 7126//4654 7125//4653 7133//4660
+f 7122//4656 7121//4661 7129//4662
+f 7123//4658 7122//4656 7130//4663
+f 7124//4659 7123//4658 7131//4664
+f 7132//4665 7131//4664 7138//4666
+f 7133//4660 7132//4665 7140//4667
+f 7134//4668 7133//4660 7140//4667
+f 7130//4663 7129//4662 7136//4669
+f 7131//4664 7130//4663 7138//4666
+f 7137//4670 7136//4669 7143//4671
+f 7138//4666 7137//4670 7144//4672
+f 7139//4673 7138//4666 7145//4674
+f 7140//4667 7139//4673 7147//4675
+f 7141//4676 7140//4667 7147//4675
+f 7147//4675 7154//4677 7155//4678
+f 7144//4672 7143//4671 7150//4679
+f 7145//4674 7144//4672 7152//4680
+f 7146//4681 7145//4674 7153//4682
+f 7147//4675 7146//4681 7154//4677
+f 7154//4677 7153//4682 7161//4683
+f 7154//4677 7161//4683 7162//4684
+f 7151//4685 7150//4679 7157//4686
+f 7152//4680 7151//4685 7159//4687
+f 7153//4682 7152//4680 7160//4688
+f 7160//4688 7159//4687 7166//4689
+f 7161//4683 7160//4688 7168//4690
+f 7162//4684 7161//4683 7168//4690
+f 7158//4691 7157//4686 7164//4692
+f 7159//4687 7158//4691 7165//4693
+f 7165//4693 7164//4692 7171//4694
+f 7166//4689 7165//4693 7173//4695
+f 7167//4696 7166//4689 7173//4695
+f 7168//4690 7167//4696 7174//4697
+f 7169//4698 7168//4690 7175//4699
+f 7175//4699 7182//4700 7183//4701
+f 7172//4702 7171//4694 7178//4703
+f 7173//4695 7172//4702 7180//4704
+f 7174//4697 7173//4695 7181//4705
+f 7175//4699 7174//4697 7181//4705
+f 7182//4700 7181//4705 7189//4706
+f 7182//4700 7189//4706 7190//4707
+f 7179//4708 7178//4703 7185//4709
+f 7180//4704 7179//4708 7187//4710
+f 7181//4705 7180//4704 7188//4711
+f 7188//4711 7187//4710 7194//4712
+f 7189//4706 7188//4711 7196//4713
+f 7190//4707 7189//4706 7196//4713
+f 7186//4714 7185//4709 7192//4715
+f 7187//4710 7186//4714 7193//4716
+f 7194//4712 7193//4716 6975//4540
+f 7195//4717 7194//4712 6976//4535
+f 7196//4713 7195//4717 6977//4534
+f 7196//4713 6978//4537 6979//4539
+f 7193//4716 7192//4715 6974//4541
+f 6976//4535 6983//4543 6984//4536
+f 6977//4534 6984//4536 6985//4538
+f 7203//4718 6979//4539 6985//4538
+f 6986//4546 7203//4718 6985//4538
+f 6974//4541 6981//4548 6982//4542
+f 6975//4540 6982//4542 6983//4543
+f 6991//4545 6984//4536 6990//4544
+f 6992//4547 6985//4538 6991//4545
+f 7206//4719 6986//4546 6992//4547
+f 6993//4553 7206//4719 6992//4547
+f 6981//4548 6988//4554 6989//4549
+f 6990//4544 6983//4543 6989//4549
+f 6997//4557 6990//4544 6996//4550
+f 6990//4544 6997//4557 6998//4551
+f 6991//4545 6998//4551 6999//4552
+f 7210//4720 6993//4553 6999//4552
+f 7000//4560 7210//4720 6999//4552
+f 6988//4554 6995//4555 6996//4550
+f 7003//4564 6996//4550 7002//4556
+f 6996//4550 7003//4564 7004//4558
+f 6997//4557 7004//4558 7005//4559
+f 7006//4561 6999//4552 7005//4559
+f 7212//4721 7000//4560 7006//4561
+f 7007//4562 7212//4721 7006//4561
+f 7215//4722 7007//4562 7013//4563
+f 7014//4723 7215//4722 7013//4563
+f 7010//4571 7003//4564 7009//4565
+f 7003//4564 7010//4571 7011//4566
+f 7012//4567 7005//4559 7011//4566
+f 7005//4559 7012//4567 7013//4563
+f 7011//4566 7018//4573 7019//4568
+f 7012//4567 7019//4568 7020//4569
+f 7014//4723 7013//4563 7218//4724
+f 7013//4563 7021//4570 7218//4724
+f 7009//4565 7016//4577 7017//4572
+f 7010//4571 7017//4572 7018//4573
+f 7025//4580 7018//4573 7024//4574
+f 7018//4573 7025//4580 7026//4575
+f 7027//4576 7020//4569 7026//4575
+f 7222//4725 7021//4570 7027//4576
+f 7028//4583 7222//4725 7027//4576
+f 7016//4577 7023//4578 7024//4574
+f 7023//4578 7030//4587 7031//4579
+f 7024//4574 7031//4579 7032//4581
+f 7025//4580 7032//4581 7033//4582
+f 7034//4584 7027//4576 7033//4582
+f 7224//4726 7028//4583 7034//4584
+f 7035//4727 7224//4726 7034//4584
+f 7035//4727 7034//4584 7227//4728
+f 7034//4584 7042//4586 7227//4728
+f 7038//4594 7031//4579 7037//4588
+f 7031//4579 7038//4594 7039//4589
+f 7040//4590 7033//4582 7039//4589
+f 7033//4582 7040//4590 7041//4585
+f 7047//4598 7040//4590 7046//4591
+f 7040//4590 7047//4598 7048//4592
+f 7042//4586 7041//4585 7230//4729
+f 7041//4585 7049//4593 7230//4729
+f 7045//4596 7038//4594 7044//4595
+f 7038//4594 7045//4596 7046//4591
+f 7053//4604 7046//4591 7052//4597
+f 7046//4591 7053//4604 7054//4599
+f 7055//4600 7048//4592 7054//4599
+f 7049//4593 7048//4592 7234//4730
+f 7048//4592 7056//4601 7234//4730
+f 7052//4597 7045//4596 7051//4602
+f 7051//4602 7058//4610 7059//4603
+f 7052//4597 7059//4603 7060//4605
+f 7053//4604 7060//4605 7061//4606
+f 7062//4607 7055//4600 7061//4606
+f 7056//4601 7055//4600 7236//4731
+f 7055//4600 7063//4608 7236//4731
+f 7239//4732 7063//4608 7069//4609
+f 7070//4733 7239//4732 7069//4609
+f 7066//4616 7059//4603 7065//4611
+f 7059//4603 7066//4616 7067//4612
+f 7060//4605 7067//4612 7068//4613
+f 7061//4606 7068//4613 7069//4609
+f 7068//4613 7075//4619 7076//4614
+f 7070//4733 7069//4609 7242//4734
+f 7069//4609 7077//4615 7242//4734
+f 7065//4611 7072//4624 7073//4617
+f 7066//4616 7073//4617 7074//4618
+f 7067//4612 7074//4618 7075//4619
+f 7073//4617 7080//4625 7081//4620
+f 7082//4621 7075//4619 7081//4620
+f 7083//4622 7076//4614 7082//4621
+f 7077//4615 7076//4614 7245//4735
+f 7076//4614 7084//4623 7245//4735
+f 7072//4624 7079//4626 7080//4625
+f 7079//4626 7086//4633 7087//4627
+f 7080//4625 7087//4627 7088//4628
+f 7081//4620 7088//4628 7089//4629
+f 7082//4621 7089//4629 7090//4630
+f 7248//4736 7084//4623 7090//4630
+f 7091//4631 7248//4736 7090//4630
+f 7251//4737 7091//4631 7097//4632
+f 7098//4638 7251//4737 7097//4632
+f 7094//4635 7087//4627 7093//4634
+f 7095//4640 7088//4628 7094//4635
+f 7088//4628 7095//4640 7096//4636
+f 7089//4629 7096//4636 7097//4632
+f 7096//4636 7103//4642 7104//4637
+f 7254//4738 7098//4638 7104//4637
+f 7105//4739 7254//4738 7104//4637
+f 7093//4634 7100//4647 7101//4639
+f 7094//4635 7101//4639 7102//4641
+f 7095//4640 7102//4641 7103//4642
+f 7109//4644 7102//4641 7108//4643
+f 7110//4650 7103//4642 7109//4644
+f 7103//4642 7110//4650 7111//4645
+f 7105//4739 7104//4637 7257//4740
+f 7104//4637 7112//4646 7257//4740
+f 7100//4647 7107//4648 7108//4643
+f 7107//4648 7114//4655 7115//4649
+f 7116//4657 7109//4644 7115//4649
+f 7109//4644 7116//4657 7117//4651
+f 7110//4650 7117//4651 7118//4652
+f 7260//4741 7112//4646 7118//4652
+f 7119//4742 7260//4741 7118//4652
+f 7119//4742 7118//4652 7264//4743
+f 7118//4652 7126//4654 7264//4743
+f 7114//4655 7121//4661 7122//4656
+f 7115//4649 7122//4656 7123//4658
+f 7116//4657 7123//4658 7124//4659
+f 7125//4653 7118//4652 7124//4659
+f 7124//4659 7132//4665 7133//4660
+f 7267//4744 7126//4654 7133//4660
+f 7134//4668 7267//4744 7133//4660
+f 7130//4663 7122//4656 7129//4662
+f 7131//4664 7123//4658 7130//4663
+f 7132//4665 7124//4659 7131//4664
+f 7139//4673 7132//4665 7138//4666
+f 7132//4665 7139//4673 7140//4667
+f 7270//4745 7134//4668 7140//4667
+f 7141//4676 7270//4745 7140//4667
+f 7137//4670 7130//4663 7136//4669
+f 7130//4663 7137//4670 7138//4666
+f 7144//4672 7137//4670 7143//4671
+f 7145//4674 7138//4666 7144//4672
+f 7146//4681 7139//4673 7145//4674
+f 7139//4673 7146//4681 7147//4675
+f 7274//4746 7141//4676 7147//4675
+f 7148//4747 7274//4746 7147//4675
+f 7148//4747 7147//4675 7276//4748
+f 7147//4675 7155//4678 7276//4748
+f 7151//4685 7144//4672 7150//4679
+f 7144//4672 7151//4685 7152//4680
+f 7145//4674 7152//4680 7153//4682
+f 7146//4681 7153//4682 7154//4677
+f 7153//4682 7160//4688 7161//4683
+f 7155//4678 7154//4677 7279//4749
+f 7154//4677 7162//4684 7279//4749
+f 7158//4691 7151//4685 7157//4686
+f 7151//4685 7158//4691 7159//4687
+f 7152//4680 7159//4687 7160//4688
+f 7167//4696 7160//4688 7166//4689
+f 7160//4688 7167//4696 7168//4690
+f 7282//4750 7162//4684 7168//4690
+f 7169//4698 7282//4750 7168//4690
+f 7165//4693 7158//4691 7164//4692
+f 7166//4689 7159//4687 7165//4693
+f 7172//4702 7165//4693 7171//4694
+f 7165//4693 7172//4702 7173//4695
+f 7174//4697 7167//4696 7173//4695
+f 7175//4699 7168//4690 7174//4697
+f 7286//4751 7169//4698 7175//4699
+f 7176//4752 7286//4751 7175//4699
+f 7176//4752 7175//4699 7288//4753
+f 7175//4699 7183//4701 7288//4753
+f 7179//4708 7172//4702 7178//4703
+f 7172//4702 7179//4708 7180//4704
+f 7173//4695 7180//4704 7181//4705
+f 7182//4700 7175//4699 7181//4705
+f 7181//4705 7188//4711 7189//4706
+f 7183//4701 7182//4700 7291//4754
+f 7182//4700 7190//4707 7291//4754
+f 7186//4714 7179//4708 7185//4709
+f 7179//4708 7186//4714 7187//4710
+f 7180//4704 7187//4710 7188//4711
+f 7195//4717 7188//4711 7194//4712
+f 7188//4711 7195//4717 7196//4713
+f 7294//4755 7190//4707 7196//4713
+f 7197//4756 7294//4755 7196//4713
+f 7193//4716 7186//4714 7192//4715
+f 7194//4712 7187//4710 7193//4716
+f 6976//4535 7194//4712 6975//4540
+f 6977//4534 7195//4717 6976//4535
+f 6978//4537 7196//4713 6977//4534
+f 7197//4756 7196//4713 7328//4757
+f 7196//4713 6979//4539 7328//4757
+f 6975//4540 7193//4716 6974//4541
+usemtl Material
+f 6942//4758 6816//4759 6751//4760
+f 6943//4761 6819//4762 6753//4763
+f 6944//4764 6823//4765 6755//4766
+f 6945//4767 6825//4768 6757//4769
+f 6946//4770 6828//4771 6759//4772
+f 6947//4773 6831//4774 6761//4775
+f 6948//4776 6835//4777 6763//4778
+f 6949//4779 6837//4780 6765//4781
+f 6950//4782 6840//4783 6767//4784
+f 6951//4785 6843//4786 6769//4787
+f 6952//4788 6847//4789 6771//4790
+f 6953//4791 6849//4792 6773//4793
+f 6954//4794 6852//4795 6775//4796
+f 6955//4797 6855//4798 6777//4799
+f 6956//4800 6858//4801 6779//4802
+f 6957//4803 6861//4804 6781//4805
+f 6958//4806 6864//4807 6783//4808
+f 6959//4809 6867//4810 6785//4811
+f 6960//4812 6870//4813 6787//4814
+f 6961//4815 6873//4816 6789//4817
+f 6962//4818 6877//4819 6791//4820
+f 6963//4821 6880//4822 6794//4823
+f 6964//4824 6883//4825 6796//4826
+f 6965//4827 6887//4828 6798//4829
+f 6966//4830 6889//4831 6800//4832
+f 6967//4833 6892//4834 6802//4835
+f 6968//4836 6895//4837 6804//4838
+f 6969//4839 6899//4840 6806//4841
+f 6970//4842 6901//4843 6808//4844
+f 6971//4845 6904//4846 6810//4847
+f 6972//4848 6907//4849 6812//4850
+f 6793//4851 6909//4852 6910//4853
+f 6793//4851 6910//4853 6911//4854
+f 6793//4851 6911//4854 6912//4855
+f 6793//4851 6912//4855 6913//4856
+f 6793//4851 6913//4856 6914//4857
+f 6793//4851 6914//4857 6915//4858
+f 6793//4851 6915//4858 6916//4859
+f 6793//4851 6916//4859 6917//4860
+f 6793//4851 6917//4860 6918//4861
+f 6793//4851 6918//4861 6919//4862
+f 6793//4851 6919//4862 6920//4863
+f 6793//4851 6920//4863 6921//4864
+f 6793//4851 6921//4864 6922//4865
+f 6793//4851 6922//4865 6923//4866
+f 6793//4851 6923//4866 6924//4867
+f 6793//4851 6924//4867 6925//4868
+f 6793//4851 6925//4868 6926//4869
+f 6793//4851 6926//4869 6927//4870
+f 6793//4851 6927//4870 6928//4871
+f 6793//4851 6928//4871 6929//4872
+f 6793//4851 6929//4872 6876//4873
+f 6793//4851 6876//4873 6930//4874
+f 6793//4851 6930//4874 6931//4875
+f 6793//4851 6931//4875 6932//4876
+f 6793//4851 6932//4876 6933//4877
+f 6793//4851 6933//4877 6934//4878
+f 6793//4851 6934//4878 6935//4879
+f 6793//4851 6935//4879 6936//4880
+f 6793//4851 6936//4880 6937//4881
+f 6793//4851 6937//4881 6938//4882
+f 6793//4851 6938//4882 6939//4883
+f 6793//4851 6939//4883 6909//4852
+f 6973//4884 6941//4885 6749//4886
+f 6817//4887 6942//4758 6815//4888
+f 6750//4889 6814//4890 6817//4887
+f 6814//4890 6749//4886 6942//4758
+f 6820//4891 6943//4761 6818//4892
+f 6752//4893 6815//4888 6820//4891
+f 6815//4888 6751//4760 6943//4761
+f 6822//4894 6944//4764 6821//4895
+f 6754//4896 6818//4892 6822//4894
+f 6818//4892 6753//4763 6944//4764
+f 6826//4897 6945//4767 6824//4898
+f 6756//4899 6821//4895 6826//4897
+f 6821//4895 6755//4766 6945//4767
+f 6829//4900 6946//4770 6827//4901
+f 6758//4902 6824//4898 6829//4900
+f 6824//4898 6757//4769 6946//4770
+f 6832//4903 6947//4773 6830//4904
+f 6760//4905 6827//4901 6832//4903
+f 6827//4901 6759//4772 6947//4773
+f 6834//4906 6948//4776 6833//4907
+f 6762//4908 6830//4904 6834//4906
+f 6830//4904 6761//4775 6948//4776
+f 6838//4909 6949//4779 6836//4910
+f 6764//4911 6833//4907 6838//4909
+f 6833//4907 6763//4778 6949//4779
+f 6841//4912 6950//4782 6839//4913
+f 6766//4914 6836//4910 6841//4912
+f 6836//4910 6765//4781 6950//4782
+f 6844//4915 6951//4785 6842//4916
+f 6768//4917 6839//4913 6844//4915
+f 6839//4913 6767//4784 6951//4785
+f 6846//4918 6952//4788 6845//4919
+f 6770//4920 6842//4916 6846//4918
+f 6842//4916 6769//4787 6952//4788
+f 6850//4921 6953//4791 6848//4922
+f 6772//4923 6845//4919 6850//4921
+f 6845//4919 6771//4790 6953//4791
+f 6853//4924 6954//4794 6851//4925
+f 6774//4926 6848//4922 6853//4924
+f 6848//4922 6773//4793 6954//4794
+f 6856//4927 6955//4797 6854//4928
+f 6776//4929 6851//4925 6856//4927
+f 6851//4925 6775//4796 6955//4797
+f 6859//4930 6956//4800 6857//4931
+f 6778//4932 6854//4928 6859//4930
+f 6854//4928 6777//4799 6956//4800
+f 6862//4933 6957//4803 6860//4934
+f 6780//4935 6857//4931 6862//4933
+f 6857//4931 6779//4802 6957//4803
+f 6865//4936 6958//4806 6863//4937
+f 6782//4938 6860//4934 6865//4936
+f 6860//4934 6781//4805 6958//4806
+f 6868//4939 6959//4809 6866//4940
+f 6784//4941 6863//4937 6868//4939
+f 6863//4937 6783//4808 6959//4809
+f 6871//4942 6960//4812 6869//4943
+f 6786//4944 6866//4940 6871//4942
+f 6866//4940 6785//4811 6960//4812
+f 6874//4945 6961//4815 6872//4946
+f 6788//4947 6869//4943 6874//4945
+f 6869//4943 6787//4814 6961//4815
+f 6878//4948 6962//4818 6875//4949
+f 6790//4950 6872//4946 6878//4948
+f 6872//4946 6789//4817 6962//4818
+f 6881//4951 6963//4821 6879//4952
+f 6792//4953 6875//4949 6881//4951
+f 6875//4949 6791//4820 6963//4821
+f 6884//4954 6964//4824 6882//4955
+f 6795//4956 6879//4952 6884//4954
+f 6879//4952 6794//4823 6964//4824
+f 6886//4957 6965//4827 6885//4958
+f 6797//4959 6882//4955 6886//4957
+f 6882//4955 6796//4826 6965//4827
+f 6890//4960 6966//4830 6888//4961
+f 6799//4962 6885//4958 6890//4960
+f 6885//4958 6798//4829 6966//4830
+f 6893//4963 6967//4833 6891//4964
+f 6801//4965 6888//4961 6893//4963
+f 6888//4961 6800//4832 6967//4833
+f 6896//4966 6968//4836 6894//4967
+f 6803//4968 6891//4964 6896//4966
+f 6891//4964 6802//4835 6968//4836
+f 6898//4969 6969//4839 6897//4970
+f 6805//4971 6894//4967 6898//4969
+f 6894//4967 6804//4838 6969//4839
+f 6902//4972 6970//4842 6900//4973
+f 6807//4974 6897//4970 6902//4972
+f 6897//4970 6806//4841 6970//4842
+f 6905//4975 6971//4845 6903//4976
+f 6809//4977 6900//4973 6905//4975
+f 6900//4973 6808//4844 6971//4845
+f 6908//4978 6972//4848 6906//4979
+f 6811//4980 6903//4976 6908//4978
+f 6903//4976 6810//4847 6972//4848
+f 6910//4853 6817//4887 6752//4893
+f 6910//4853 6909//4852 6817//4887
+f 6909//4852 6750//4889 6817//4887
+f 6911//4854 6820//4891 6754//4896
+f 6911//4854 6910//4853 6820//4891
+f 6910//4853 6752//4893 6820//4891
+f 6912//4855 6822//4894 6756//4899
+f 6912//4855 6911//4854 6822//4894
+f 6911//4854 6754//4896 6822//4894
+f 6913//4856 6826//4897 6758//4902
+f 6913//4856 6912//4855 6826//4897
+f 6912//4855 6756//4899 6826//4897
+f 6914//4857 6829//4900 6760//4905
+f 6914//4857 6913//4856 6829//4900
+f 6913//4856 6758//4902 6829//4900
+f 6915//4858 6832//4903 6762//4908
+f 6915//4858 6914//4857 6832//4903
+f 6914//4857 6760//4905 6832//4903
+f 6916//4859 6834//4906 6764//4911
+f 6916//4859 6915//4858 6834//4906
+f 6915//4858 6762//4908 6834//4906
+f 6917//4860 6838//4909 6766//4914
+f 6917//4860 6916//4859 6838//4909
+f 6916//4859 6764//4911 6838//4909
+f 6918//4861 6841//4912 6768//4917
+f 6918//4861 6917//4860 6841//4912
+f 6917//4860 6766//4914 6841//4912
+f 6919//4862 6844//4915 6770//4920
+f 6919//4862 6918//4861 6844//4915
+f 6918//4861 6768//4917 6844//4915
+f 6920//4863 6846//4918 6772//4923
+f 6920//4863 6919//4862 6846//4918
+f 6919//4862 6770//4920 6846//4918
+f 6921//4864 6850//4921 6774//4926
+f 6921//4864 6920//4863 6850//4921
+f 6920//4863 6772//4923 6850//4921
+f 6922//4865 6853//4924 6776//4929
+f 6922//4865 6921//4864 6853//4924
+f 6921//4864 6774//4926 6853//4924
+f 6923//4866 6856//4927 6778//4932
+f 6923//4866 6922//4865 6856//4927
+f 6922//4865 6776//4929 6856//4927
+f 6924//4867 6859//4930 6780//4935
+f 6924//4867 6923//4866 6859//4930
+f 6923//4866 6778//4932 6859//4930
+f 6925//4868 6862//4933 6782//4938
+f 6925//4868 6924//4867 6862//4933
+f 6924//4867 6780//4935 6862//4933
+f 6926//4869 6865//4936 6784//4941
+f 6926//4869 6925//4868 6865//4936
+f 6925//4868 6782//4938 6865//4936
+f 6927//4870 6868//4939 6786//4944
+f 6927//4870 6926//4869 6868//4939
+f 6926//4869 6784//4941 6868//4939
+f 6928//4871 6871//4942 6788//4947
+f 6928//4871 6927//4870 6871//4942
+f 6927//4870 6786//4944 6871//4942
+f 6929//4872 6874//4945 6790//4950
+f 6929//4872 6928//4871 6874//4945
+f 6928//4871 6788//4947 6874//4945
+f 6876//4873 6878//4948 6792//4953
+f 6876//4873 6929//4872 6878//4948
+f 6929//4872 6790//4950 6878//4948
+f 6930//4874 6881//4951 6795//4956
+f 6930//4874 6876//4873 6881//4951
+f 6876//4873 6792//4953 6881//4951
+f 6931//4875 6884//4954 6797//4959
+f 6931//4875 6930//4874 6884//4954
+f 6930//4874 6795//4956 6884//4954
+f 6932//4876 6886//4957 6799//4962
+f 6932//4876 6931//4875 6886//4957
+f 6931//4875 6797//4959 6886//4957
+f 6933//4877 6890//4960 6801//4965
+f 6933//4877 6932//4876 6890//4960
+f 6932//4876 6799//4962 6890//4960
+f 6934//4878 6893//4963 6803//4968
+f 6934//4878 6933//4877 6893//4963
+f 6933//4877 6801//4965 6893//4963
+f 6935//4879 6896//4966 6805//4971
+f 6935//4879 6934//4878 6896//4966
+f 6934//4878 6803//4968 6896//4966
+f 6936//4880 6898//4969 6807//4974
+f 6936//4880 6935//4879 6898//4969
+f 6935//4879 6805//4971 6898//4969
+f 6937//4881 6902//4972 6809//4977
+f 6937//4881 6936//4880 6902//4972
+f 6936//4880 6807//4974 6902//4972
+f 6938//4882 6905//4975 6811//4980
+f 6938//4882 6937//4881 6905//4975
+f 6937//4881 6809//4977 6905//4975
+f 6939//4883 6908//4978 6813//4981
+f 6939//4883 6938//4882 6908//4978
+f 6938//4882 6811//4980 6908//4978
+f 6909//4852 6940//4982 6750//4889
+f 6909//4852 6939//4883 6940//4982
+f 6939//4883 6813//4981 6940//4982
+f 6940//4982 6973//4884 6814//4890
+f 6813//4981 6906//4979 6940//4982
+f 6906//4979 6812//4850 6973//4884
+f 6815//4888 6942//4758 6751//4760
+f 6818//4892 6943//4761 6753//4763
+f 6821//4895 6944//4764 6755//4766
+f 6824//4898 6945//4767 6757//4769
+f 6827//4901 6946//4770 6759//4772
+f 6830//4904 6947//4773 6761//4775
+f 6833//4907 6948//4776 6763//4778
+f 6836//4910 6949//4779 6765//4781
+f 6839//4913 6950//4782 6767//4784
+f 6842//4916 6951//4785 6769//4787
+f 6845//4919 6952//4788 6771//4790
+f 6848//4922 6953//4791 6773//4793
+f 6851//4925 6954//4794 6775//4796
+f 6854//4928 6955//4797 6777//4799
+f 6857//4931 6956//4800 6779//4802
+f 6860//4934 6957//4803 6781//4805
+f 6863//4937 6958//4806 6783//4808
+f 6866//4940 6959//4809 6785//4811
+f 6869//4943 6960//4812 6787//4814
+f 6872//4946 6961//4815 6789//4817
+f 6875//4949 6962//4818 6791//4820
+f 6879//4952 6963//4821 6794//4823
+f 6882//4955 6964//4824 6796//4826
+f 6885//4958 6965//4827 6798//4829
+f 6888//4961 6966//4830 6800//4832
+f 6891//4964 6967//4833 6802//4835
+f 6894//4967 6968//4836 6804//4838
+f 6897//4970 6969//4839 6806//4841
+f 6900//4973 6970//4842 6808//4844
+f 6903//4976 6971//4845 6810//4847
+f 6906//4979 6972//4848 6812//4850
+f 6814//4890 6973//4884 6749//4886
+f 6752//4893 6817//4887 6815//4888
+f 6814//4890 6942//4758 6817//4887
+f 6749//4886 6816//4759 6942//4758
+f 6754//4896 6820//4891 6818//4892
+f 6815//4888 6943//4761 6820//4891
+f 6751//4760 6819//4762 6943//4761
+f 6756//4899 6822//4894 6821//4895
+f 6818//4892 6944//4764 6822//4894
+f 6753//4763 6823//4765 6944//4764
+f 6758//4902 6826//4897 6824//4898
+f 6821//4895 6945//4767 6826//4897
+f 6755//4766 6825//4768 6945//4767
+f 6760//4905 6829//4900 6827//4901
+f 6824//4898 6946//4770 6829//4900
+f 6757//4769 6828//4771 6946//4770
+f 6762//4908 6832//4903 6830//4904
+f 6827//4901 6947//4773 6832//4903
+f 6759//4772 6831//4774 6947//4773
+f 6764//4911 6834//4906 6833//4907
+f 6830//4904 6948//4776 6834//4906
+f 6761//4775 6835//4777 6948//4776
+f 6766//4914 6838//4909 6836//4910
+f 6833//4907 6949//4779 6838//4909
+f 6763//4778 6837//4780 6949//4779
+f 6768//4917 6841//4912 6839//4913
+f 6836//4910 6950//4782 6841//4912
+f 6765//4781 6840//4783 6950//4782
+f 6770//4920 6844//4915 6842//4916
+f 6839//4913 6951//4785 6844//4915
+f 6767//4784 6843//4786 6951//4785
+f 6772//4923 6846//4918 6845//4919
+f 6842//4916 6952//4788 6846//4918
+f 6769//4787 6847//4789 6952//4788
+f 6774//4926 6850//4921 6848//4922
+f 6845//4919 6953//4791 6850//4921
+f 6771//4790 6849//4792 6953//4791
+f 6776//4929 6853//4924 6851//4925
+f 6848//4922 6954//4794 6853//4924
+f 6773//4793 6852//4795 6954//4794
+f 6778//4932 6856//4927 6854//4928
+f 6851//4925 6955//4797 6856//4927
+f 6775//4796 6855//4798 6955//4797
+f 6780//4935 6859//4930 6857//4931
+f 6854//4928 6956//4800 6859//4930
+f 6777//4799 6858//4801 6956//4800
+f 6782//4938 6862//4933 6860//4934
+f 6857//4931 6957//4803 6862//4933
+f 6779//4802 6861//4804 6957//4803
+f 6784//4941 6865//4936 6863//4937
+f 6860//4934 6958//4806 6865//4936
+f 6781//4805 6864//4807 6958//4806
+f 6786//4944 6868//4939 6866//4940
+f 6863//4937 6959//4809 6868//4939
+f 6783//4808 6867//4810 6959//4809
+f 6788//4947 6871//4942 6869//4943
+f 6866//4940 6960//4812 6871//4942
+f 6785//4811 6870//4813 6960//4812
+f 6790//4950 6874//4945 6872//4946
+f 6869//4943 6961//4815 6874//4945
+f 6787//4814 6873//4816 6961//4815
+f 6792//4953 6878//4948 6875//4949
+f 6872//4946 6962//4818 6878//4948
+f 6789//4817 6877//4819 6962//4818
+f 6795//4956 6881//4951 6879//4952
+f 6875//4949 6963//4821 6881//4951
+f 6791//4820 6880//4822 6963//4821
+f 6797//4959 6884//4954 6882//4955
+f 6879//4952 6964//4824 6884//4954
+f 6794//4823 6883//4825 6964//4824
+f 6799//4962 6886//4957 6885//4958
+f 6882//4955 6965//4827 6886//4957
+f 6796//4826 6887//4828 6965//4827
+f 6801//4965 6890//4960 6888//4961
+f 6885//4958 6966//4830 6890//4960
+f 6798//4829 6889//4831 6966//4830
+f 6803//4968 6893//4963 6891//4964
+f 6888//4961 6967//4833 6893//4963
+f 6800//4832 6892//4834 6967//4833
+f 6805//4971 6896//4966 6894//4967
+f 6891//4964 6968//4836 6896//4966
+f 6802//4835 6895//4837 6968//4836
+f 6807//4974 6898//4969 6897//4970
+f 6894//4967 6969//4839 6898//4969
+f 6804//4838 6899//4840 6969//4839
+f 6809//4977 6902//4972 6900//4973
+f 6897//4970 6970//4842 6902//4972
+f 6806//4841 6901//4843 6970//4842
+f 6811//4980 6905//4975 6903//4976
+f 6900//4973 6971//4845 6905//4975
+f 6808//4844 6904//4846 6971//4845
+f 6813//4981 6908//4978 6906//4979
+f 6903//4976 6972//4848 6908//4978
+f 6810//4847 6907//4849 6972//4848
+f 6750//4889 6940//4982 6814//4890
+f 6906//4979 6973//4884 6940//4982
+f 6812//4850 6941//4885 6973//4884
+usemtl Material.001
+f 7329//4983 7203//4718 6986//4546
+f 7330//4984 7206//4719 6993//4553
+f 7331//4985 7210//4720 7000//4560
+f 7332//4986 7212//4721 7007//4562
+f 7333//4987 7215//4722 7014//4723
+f 7334//4988 7218//4724 7021//4570
+f 7335//4989 7222//4725 7028//4583
+f 7336//4990 7224//4726 7035//4727
+f 7337//4991 7227//4728 7042//4586
+f 7338//4992 7230//4729 7049//4593
+f 7339//4993 7234//4730 7056//4601
+f 7340//4994 7236//4731 7063//4608
+f 7341//4995 7239//4732 7070//4733
+f 7342//4996 7242//4734 7077//4615
+f 7343//4997 7245//4735 7084//4623
+f 7344//4998 7248//4736 7091//4631
+f 7345//4999 7251//4737 7098//4638
+f 7346//5000 7254//4738 7105//4739
+f 7347//5001 7257//4740 7112//4646
+f 7348//5002 7260//4741 7119//4742
+f 7349//5003 7264//4743 7126//4654
+f 7350//5004 7267//4744 7134//4668
+f 7351//5005 7270//4745 7141//4676
+f 7352//5006 7274//4746 7148//4747
+f 7353//5007 7276//4748 7155//4678
+f 7354//5008 7279//4749 7162//4684
+f 7355//5009 7282//4750 7169//4698
+f 7356//5010 7286//4751 7176//4752
+f 7357//5011 7288//4753 7183//4701
+f 7358//5012 7291//4754 7190//4707
+f 7359//5013 7294//4755 7197//4756
+f 7128//5014 7296//5015 7297//5016
+f 7128//5014 7297//5016 7298//5017
+f 7128//5014 7298//5017 7299//5018
+f 7128//5014 7299//5018 7300//5019
+f 7128//5014 7300//5019 7301//5020
+f 7128//5014 7301//5020 7302//5021
+f 7128//5014 7302//5021 7303//5022
+f 7128//5014 7303//5022 7304//5023
+f 7128//5014 7304//5023 7305//5024
+f 7128//5014 7305//5024 7306//5025
+f 7128//5014 7306//5025 7307//5026
+f 7128//5014 7307//5026 7308//5027
+f 7128//5014 7308//5027 7309//5028
+f 7128//5014 7309//5028 7310//5029
+f 7128//5014 7310//5029 7311//5030
+f 7128//5014 7311//5030 7312//5031
+f 7128//5014 7312//5031 7313//5032
+f 7128//5014 7313//5032 7314//5033
+f 7128//5014 7314//5033 7315//5034
+f 7128//5014 7315//5034 7316//5035
+f 7128//5014 7316//5035 7263//5036
+f 7128//5014 7263//5036 7317//5037
+f 7128//5014 7317//5037 7318//5038
+f 7128//5014 7318//5038 7319//5039
+f 7128//5014 7319//5039 7320//5040
+f 7128//5014 7320//5040 7321//5041
+f 7128//5014 7321//5041 7322//5042
+f 7128//5014 7322//5042 7323//5043
+f 7128//5014 7323//5043 7324//5044
+f 7128//5014 7324//5044 7325//5045
+f 7128//5014 7325//5045 7326//5046
+f 7128//5014 7326//5046 7296//5015
+f 7360//5047 7328//4757 6979//4539
+f 7204//5048 7329//4983 7202//5049
+f 6980//5050 7201//5051 7204//5048
+f 7201//5051 6979//4539 7329//4983
+f 7207//5052 7330//4984 7205//5053
+f 6987//5054 7202//5049 7207//5052
+f 7202//5049 6986//4546 7330//4984
+f 7209//5055 7331//4985 7208//5056
+f 6994//5057 7205//5053 7209//5055
+f 7205//5053 6993//4553 7331//4985
+f 7213//5058 7332//4986 7211//5059
+f 7001//5060 7208//5056 7213//5058
+f 7208//5056 7000//4560 7332//4986
+f 7216//5061 7333//4987 7214//5062
+f 7008//5063 7211//5059 7216//5061
+f 7211//5059 7007//4562 7333//4987
+f 7219//5064 7334//4988 7217//5065
+f 7015//5066 7214//5062 7219//5064
+f 7214//5062 7014//4723 7334//4988
+f 7221//5067 7335//4989 7220//5068
+f 7022//5069 7217//5065 7221//5067
+f 7217//5065 7021//4570 7335//4989
+f 7225//5070 7336//4990 7223//5071
+f 7029//5072 7220//5068 7225//5070
+f 7220//5068 7028//4583 7336//4990
+f 7228//5073 7337//4991 7226//5074
+f 7036//5075 7223//5071 7228//5073
+f 7223//5071 7035//4727 7337//4991
+f 7231//5076 7338//4992 7229//5077
+f 7043//5078 7226//5074 7231//5076
+f 7226//5074 7042//4586 7338//4992
+f 7233//5079 7339//4993 7232//5080
+f 7050//5081 7229//5077 7233//5079
+f 7229//5077 7049//4593 7339//4993
+f 7237//5082 7340//4994 7235//5083
+f 7057//5084 7232//5080 7237//5082
+f 7232//5080 7056//4601 7340//4994
+f 7240//5085 7341//4995 7238//5086
+f 7064//5087 7235//5083 7240//5085
+f 7235//5083 7063//4608 7341//4995
+f 7243//5088 7342//4996 7241//5089
+f 7071//5090 7238//5086 7243//5088
+f 7238//5086 7070//4733 7342//4996
+f 7246//5091 7343//4997 7244//5092
+f 7078//5093 7241//5089 7246//5091
+f 7241//5089 7077//4615 7343//4997
+f 7249//5094 7344//4998 7247//5095
+f 7085//5096 7244//5092 7249//5094
+f 7244//5092 7084//4623 7344//4998
+f 7252//5097 7345//4999 7250//5098
+f 7092//5099 7247//5095 7252//5097
+f 7247//5095 7091//4631 7345//4999
+f 7255//5100 7346//5000 7253//5101
+f 7099//5102 7250//5098 7255//5100
+f 7250//5098 7098//4638 7346//5000
+f 7258//5103 7347//5001 7256//5104
+f 7106//5105 7253//5101 7258//5103
+f 7253//5101 7105//4739 7347//5001
+f 7261//5106 7348//5002 7259//5107
+f 7113//5108 7256//5104 7261//5106
+f 7256//5104 7112//4646 7348//5002
+f 7265//5109 7349//5003 7262//5110
+f 7120//5111 7259//5107 7265//5109
+f 7259//5107 7119//4742 7349//5003
+f 7268//5112 7350//5004 7266//5113
+f 7127//5114 7262//5110 7268//5112
+f 7262//5110 7126//4654 7350//5004
+f 7271//5115 7351//5005 7269//5116
+f 7135//5117 7266//5113 7271//5115
+f 7266//5113 7134//4668 7351//5005
+f 7273//5118 7352//5006 7272//5119
+f 7142//5120 7269//5116 7273//5118
+f 7269//5116 7141//4676 7352//5006
+f 7277//5121 7353//5007 7275//5122
+f 7149//5123 7272//5119 7277//5121
+f 7272//5119 7148//4747 7353//5007
+f 7280//5124 7354//5008 7278//5125
+f 7156//5126 7275//5122 7280//5124
+f 7275//5122 7155//4678 7354//5008
+f 7283//5127 7355//5009 7281//5128
+f 7163//5129 7278//5125 7283//5127
+f 7278//5125 7162//4684 7355//5009
+f 7285//5130 7356//5010 7284//5131
+f 7170//5132 7281//5128 7285//5130
+f 7281//5128 7169//4698 7356//5010
+f 7289//5133 7357//5011 7287//5134
+f 7177//5135 7284//5131 7289//5133
+f 7284//5131 7176//4752 7357//5011
+f 7292//5136 7358//5012 7290//5137
+f 7184//5138 7287//5134 7292//5136
+f 7287//5134 7183//4701 7358//5012
+f 7295//5139 7359//5013 7293//5140
+f 7191//5141 7290//5137 7295//5139
+f 7290//5137 7190//4707 7359//5013
+f 7297//5016 7204//5048 6987//5054
+f 7297//5016 7296//5015 7204//5048
+f 7296//5015 6980//5050 7204//5048
+f 7298//5017 7207//5052 6994//5057
+f 7298//5017 7297//5016 7207//5052
+f 7297//5016 6987//5054 7207//5052
+f 7299//5018 7209//5055 7001//5060
+f 7299//5018 7298//5017 7209//5055
+f 7298//5017 6994//5057 7209//5055
+f 7300//5019 7213//5058 7008//5063
+f 7300//5019 7299//5018 7213//5058
+f 7299//5018 7001//5060 7213//5058
+f 7301//5020 7216//5061 7015//5066
+f 7301//5020 7300//5019 7216//5061
+f 7300//5019 7008//5063 7216//5061
+f 7302//5021 7219//5064 7022//5069
+f 7302//5021 7301//5020 7219//5064
+f 7301//5020 7015//5066 7219//5064
+f 7303//5022 7221//5067 7029//5072
+f 7303//5022 7302//5021 7221//5067
+f 7302//5021 7022//5069 7221//5067
+f 7304//5023 7225//5070 7036//5075
+f 7304//5023 7303//5022 7225//5070
+f 7303//5022 7029//5072 7225//5070
+f 7305//5024 7228//5073 7043//5078
+f 7305//5024 7304//5023 7228//5073
+f 7304//5023 7036//5075 7228//5073
+f 7306//5025 7231//5076 7050//5081
+f 7306//5025 7305//5024 7231//5076
+f 7305//5024 7043//5078 7231//5076
+f 7307//5026 7233//5079 7057//5084
+f 7307//5026 7306//5025 7233//5079
+f 7306//5025 7050//5081 7233//5079
+f 7308//5027 7237//5082 7064//5087
+f 7308//5027 7307//5026 7237//5082
+f 7307//5026 7057//5084 7237//5082
+f 7309//5028 7240//5085 7071//5090
+f 7309//5028 7308//5027 7240//5085
+f 7308//5027 7064//5087 7240//5085
+f 7310//5029 7243//5088 7078//5093
+f 7310//5029 7309//5028 7243//5088
+f 7309//5028 7071//5090 7243//5088
+f 7311//5030 7246//5091 7085//5096
+f 7311//5030 7310//5029 7246//5091
+f 7310//5029 7078//5093 7246//5091
+f 7312//5031 7249//5094 7092//5099
+f 7312//5031 7311//5030 7249//5094
+f 7311//5030 7085//5096 7249//5094
+f 7313//5032 7252//5097 7099//5102
+f 7313//5032 7312//5031 7252//5097
+f 7312//5031 7092//5099 7252//5097
+f 7314//5033 7255//5100 7106//5105
+f 7314//5033 7313//5032 7255//5100
+f 7313//5032 7099//5102 7255//5100
+f 7315//5034 7258//5103 7113//5108
+f 7315//5034 7314//5033 7258//5103
+f 7314//5033 7106//5105 7258//5103
+f 7316//5035 7261//5106 7120//5111
+f 7316//5035 7315//5034 7261//5106
+f 7315//5034 7113//5108 7261//5106
+f 7263//5036 7265//5109 7127//5114
+f 7263//5036 7316//5035 7265//5109
+f 7316//5035 7120//5111 7265//5109
+f 7317//5037 7268//5112 7135//5117
+f 7317//5037 7263//5036 7268//5112
+f 7263//5036 7127//5114 7268//5112
+f 7318//5038 7271//5115 7142//5120
+f 7318//5038 7317//5037 7271//5115
+f 7317//5037 7135//5117 7271//5115
+f 7319//5039 7273//5118 7149//5123
+f 7319//5039 7318//5038 7273//5118
+f 7318//5038 7142//5120 7273//5118
+f 7320//5040 7277//5121 7156//5126
+f 7320//5040 7319//5039 7277//5121
+f 7319//5039 7149//5123 7277//5121
+f 7321//5041 7280//5124 7163//5129
+f 7321//5041 7320//5040 7280//5124
+f 7320//5040 7156//5126 7280//5124
+f 7322//5042 7283//5127 7170//5132
+f 7322//5042 7321//5041 7283//5127
+f 7321//5041 7163//5129 7283//5127
+f 7323//5043 7285//5130 7177//5135
+f 7323//5043 7322//5042 7285//5130
+f 7322//5042 7170//5132 7285//5130
+f 7324//5044 7289//5133 7184//5138
+f 7324//5044 7323//5043 7289//5133
+f 7323//5043 7177//5135 7289//5133
+f 7325//5045 7292//5136 7191//5141
+f 7325//5045 7324//5044 7292//5136
+f 7324//5044 7184//5138 7292//5136
+f 7326//5046 7295//5139 7198//5142
+f 7326//5046 7325//5045 7295//5139
+f 7325//5045 7191//5141 7295//5139
+f 7296//5015 7327//5143 6980//5050
+f 7296//5015 7326//5046 7327//5143
+f 7326//5046 7198//5142 7327//5143
+f 7327//5143 7360//5047 7201//5051
+f 7198//5142 7293//5140 7327//5143
+f 7293//5140 7197//4756 7360//5047
+f 7202//5049 7329//4983 6986//4546
+f 7205//5053 7330//4984 6993//4553
+f 7208//5056 7331//4985 7000//4560
+f 7211//5059 7332//4986 7007//4562
+f 7214//5062 7333//4987 7014//4723
+f 7217//5065 7334//4988 7021//4570
+f 7220//5068 7335//4989 7028//4583
+f 7223//5071 7336//4990 7035//4727
+f 7226//5074 7337//4991 7042//4586
+f 7229//5077 7338//4992 7049//4593
+f 7232//5080 7339//4993 7056//4601
+f 7235//5083 7340//4994 7063//4608
+f 7238//5086 7341//4995 7070//4733
+f 7241//5089 7342//4996 7077//4615
+f 7244//5092 7343//4997 7084//4623
+f 7247//5095 7344//4998 7091//4631
+f 7250//5098 7345//4999 7098//4638
+f 7253//5101 7346//5000 7105//4739
+f 7256//5104 7347//5001 7112//4646
+f 7259//5107 7348//5002 7119//4742
+f 7262//5110 7349//5003 7126//4654
+f 7266//5113 7350//5004 7134//4668
+f 7269//5116 7351//5005 7141//4676
+f 7272//5119 7352//5006 7148//4747
+f 7275//5122 7353//5007 7155//4678
+f 7278//5125 7354//5008 7162//4684
+f 7281//5128 7355//5009 7169//4698
+f 7284//5131 7356//5010 7176//4752
+f 7287//5134 7357//5011 7183//4701
+f 7290//5137 7358//5012 7190//4707
+f 7293//5140 7359//5013 7197//4756
+f 7201//5051 7360//5047 6979//4539
+f 6987//5054 7204//5048 7202//5049
+f 7201//5051 7329//4983 7204//5048
+f 6979//4539 7203//4718 7329//4983
+f 6994//5057 7207//5052 7205//5053
+f 7202//5049 7330//4984 7207//5052
+f 6986//4546 7206//4719 7330//4984
+f 7001//5060 7209//5055 7208//5056
+f 7205//5053 7331//4985 7209//5055
+f 6993//4553 7210//4720 7331//4985
+f 7008//5063 7213//5058 7211//5059
+f 7208//5056 7332//4986 7213//5058
+f 7000//4560 7212//4721 7332//4986
+f 7015//5066 7216//5061 7214//5062
+f 7211//5059 7333//4987 7216//5061
+f 7007//4562 7215//4722 7333//4987
+f 7022//5069 7219//5064 7217//5065
+f 7214//5062 7334//4988 7219//5064
+f 7014//4723 7218//4724 7334//4988
+f 7029//5072 7221//5067 7220//5068
+f 7217//5065 7335//4989 7221//5067
+f 7021//4570 7222//4725 7335//4989
+f 7036//5075 7225//5070 7223//5071
+f 7220//5068 7336//4990 7225//5070
+f 7028//4583 7224//4726 7336//4990
+f 7043//5078 7228//5073 7226//5074
+f 7223//5071 7337//4991 7228//5073
+f 7035//4727 7227//4728 7337//4991
+f 7050//5081 7231//5076 7229//5077
+f 7226//5074 7338//4992 7231//5076
+f 7042//4586 7230//4729 7338//4992
+f 7057//5084 7233//5079 7232//5080
+f 7229//5077 7339//4993 7233//5079
+f 7049//4593 7234//4730 7339//4993
+f 7064//5087 7237//5082 7235//5083
+f 7232//5080 7340//4994 7237//5082
+f 7056//4601 7236//4731 7340//4994
+f 7071//5090 7240//5085 7238//5086
+f 7235//5083 7341//4995 7240//5085
+f 7063//4608 7239//4732 7341//4995
+f 7078//5093 7243//5088 7241//5089
+f 7238//5086 7342//4996 7243//5088
+f 7070//4733 7242//4734 7342//4996
+f 7085//5096 7246//5091 7244//5092
+f 7241//5089 7343//4997 7246//5091
+f 7077//4615 7245//4735 7343//4997
+f 7092//5099 7249//5094 7247//5095
+f 7244//5092 7344//4998 7249//5094
+f 7084//4623 7248//4736 7344//4998
+f 7099//5102 7252//5097 7250//5098
+f 7247//5095 7345//4999 7252//5097
+f 7091//4631 7251//4737 7345//4999
+f 7106//5105 7255//5100 7253//5101
+f 7250//5098 7346//5000 7255//5100
+f 7098//4638 7254//4738 7346//5000
+f 7113//5108 7258//5103 7256//5104
+f 7253//5101 7347//5001 7258//5103
+f 7105//4739 7257//4740 7347//5001
+f 7120//5111 7261//5106 7259//5107
+f 7256//5104 7348//5002 7261//5106
+f 7112//4646 7260//4741 7348//5002
+f 7127//5114 7265//5109 7262//5110
+f 7259//5107 7349//5003 7265//5109
+f 7119//4742 7264//4743 7349//5003
+f 7135//5117 7268//5112 7266//5113
+f 7262//5110 7350//5004 7268//5112
+f 7126//4654 7267//4744 7350//5004
+f 7142//5120 7271//5115 7269//5116
+f 7266//5113 7351//5005 7271//5115
+f 7134//4668 7270//4745 7351//5005
+f 7149//5123 7273//5118 7272//5119
+f 7269//5116 7352//5006 7273//5118
+f 7141//4676 7274//4746 7352//5006
+f 7156//5126 7277//5121 7275//5122
+f 7272//5119 7353//5007 7277//5121
+f 7148//4747 7276//4748 7353//5007
+f 7163//5129 7280//5124 7278//5125
+f 7275//5122 7354//5008 7280//5124
+f 7155//4678 7279//4749 7354//5008
+f 7170//5132 7283//5127 7281//5128
+f 7278//5125 7355//5009 7283//5127
+f 7162//4684 7282//4750 7355//5009
+f 7177//5135 7285//5130 7284//5131
+f 7281//5128 7356//5010 7285//5130
+f 7169//4698 7286//4751 7356//5010
+f 7184//5138 7289//5133 7287//5134
+f 7284//5131 7357//5011 7289//5133
+f 7176//4752 7288//4753 7357//5011
+f 7191//5141 7292//5136 7290//5137
+f 7287//5134 7358//5012 7292//5136
+f 7183//4701 7291//4754 7358//5012
+f 7198//5142 7295//5139 7293//5140
+f 7290//5137 7359//5013 7295//5139
+f 7190//4707 7294//4755 7359//5013
+f 6980//5050 7327//5143 7201//5051
+f 7293//5140 7360//5047 7327//5143
+f 7197//4756 7328//4757 7360//5047
+l 7199 7200
+o Eye_L_Sphere.004
+v -0.483685 1.010693 0.349484
+v -0.489504 1.014649 0.341047
+v -0.480361 1.012142 0.347357
+v -0.487809 1.015388 0.339963
+v -0.477556 1.013611 0.344591
+v -0.486379 1.016137 0.338553
+v -0.475379 1.015045 0.341293
+v -0.485269 1.016868 0.336871
+v -0.473913 1.016386 0.337588
+v -0.484522 1.017552 0.334982
+v -0.473215 1.017585 0.333619
+v -0.484166 1.018163 0.332959
+v -0.473311 1.018595 0.329539
+v -0.484215 1.018678 0.330879
+v -0.474199 1.019378 0.325504
+v -0.484668 1.019077 0.328822
+v -0.475842 1.019902 0.321670
+v -0.485506 1.019344 0.326867
+v -0.478180 1.020149 0.318184
+v -0.486697 1.019470 0.325090
+v -0.481121 1.020108 0.315180
+v -0.488197 1.019449 0.323559
+v -0.484553 1.019781 0.312773
+v -0.489946 1.019282 0.322332
+v -0.488343 1.019181 0.311056
+v -0.491879 1.018976 0.321457
+v -0.492347 1.018330 0.310095
+v -0.493920 1.018543 0.320967
+v -0.496410 1.017262 0.309927
+v -0.495991 1.017998 0.320881
+v -0.500376 1.016018 0.310558
+v -0.498013 1.017364 0.321202
+v -0.504093 1.014645 0.311964
+v -0.499908 1.016664 0.321919
+v -0.507417 1.013196 0.314090
+v -0.501602 1.015925 0.323003
+v -0.510222 1.011726 0.316856
+v -0.503032 1.015176 0.324413
+v -0.512399 1.010293 0.320155
+v -0.504142 1.014446 0.326095
+v -0.513865 1.008951 0.323860
+v -0.504889 1.013762 0.327984
+v -0.514563 1.007752 0.327829
+v -0.505245 1.013150 0.330007
+v -0.494982 1.016666 0.331739
+v -0.514467 1.006742 0.331909
+v -0.505196 1.012635 0.332087
+v -0.513579 1.005960 0.335944
+v -0.504744 1.012237 0.334144
+v -0.511935 1.005435 0.339778
+v -0.503906 1.011969 0.336098
+v -0.509598 1.005189 0.343264
+v -0.502714 1.011844 0.337876
+v -0.506657 1.005230 0.346268
+v -0.501215 1.011864 0.339407
+v -0.503225 1.005557 0.348674
+v -0.499465 1.012031 0.340634
+v -0.499435 1.006157 0.350391
+v -0.497533 1.012337 0.341509
+v -0.495431 1.007007 0.351352
+v -0.495492 1.012771 0.341999
+v -0.491368 1.008075 0.351521
+v -0.493421 1.013315 0.342085
+v -0.487402 1.009320 0.350890
+v -0.491399 1.013949 0.341763
+v -0.486626 1.012941 0.345419
+v -0.484102 1.014042 0.343804
+v -0.482024 1.011457 0.348446
+v -0.488658 1.015030 0.340510
+v -0.481972 1.015157 0.341704
+v -0.478957 1.012917 0.345998
+v -0.487096 1.015774 0.339262
+v -0.480319 1.016246 0.339199
+v -0.485825 1.016514 0.337716
+v -0.476464 1.014370 0.342963
+v -0.479206 1.017264 0.336386
+v -0.474641 1.015758 0.339458
+v -0.484897 1.017222 0.335930
+v -0.478676 1.018175 0.333372
+v -0.473558 1.017030 0.335617
+v -0.484345 1.017869 0.333974
+v -0.478749 1.018942 0.330274
+v -0.473257 1.018135 0.331590
+v -0.484192 1.018432 0.331922
+v -0.479423 1.019536 0.327211
+v -0.484442 1.018889 0.329853
+v -0.473749 1.019032 0.327529
+v -0.480671 1.019934 0.324300
+v -0.475016 1.019686 0.323591
+v -0.485088 1.019223 0.327847
+v -0.482446 1.020121 0.321653
+v -0.477008 1.020072 0.319928
+v -0.486103 1.019419 0.325980
+v -0.484679 1.020090 0.319372
+v -0.479649 1.020175 0.316681
+v -0.487448 1.019472 0.324326
+v -0.487285 1.019842 0.317545
+v -0.489073 1.019378 0.322946
+v -0.482838 1.019991 0.313973
+v -0.490163 1.019386 0.316241
+v -0.486453 1.019527 0.311909
+v -0.490915 1.019141 0.321895
+v -0.493203 1.018740 0.315511
+v -0.490353 1.018801 0.310569
+v -0.492902 1.018772 0.321212
+v -0.496288 1.017930 0.315383
+v -0.494390 1.017841 0.310004
+v -0.494958 1.018283 0.320924
+v -0.499299 1.016985 0.315862
+v -0.498408 1.016684 0.310235
+v -0.497005 1.017693 0.321042
+v -0.502121 1.015942 0.316930
+v -0.502252 1.015374 0.311255
+v -0.498964 1.017026 0.321561
+v -0.504646 1.014842 0.318545
+v -0.505776 1.013961 0.313022
+v -0.500759 1.016306 0.322462
+v -0.506775 1.013726 0.320645
+v -0.508843 1.012501 0.315471
+v -0.502322 1.015562 0.323709
+v -0.508428 1.012638 0.323150
+v -0.511336 1.011048 0.318506
+v -0.503592 1.014822 0.325256
+v -0.509541 1.011619 0.325963
+v -0.513159 1.009660 0.322011
+v -0.504521 1.014114 0.327041
+v -0.510071 1.010709 0.328976
+v -0.500228 1.015201 0.330945
+v -0.514242 1.008388 0.325851
+v -0.505073 1.013467 0.328998
+v -0.509998 1.009942 0.332074
+v -0.514543 1.007283 0.329879
+v -0.505226 1.012903 0.331050
+v -0.509324 1.009348 0.335138
+v -0.514051 1.006386 0.333939
+v -0.504975 1.012447 0.333119
+v -0.508076 1.008950 0.338049
+v -0.504330 1.012113 0.335125
+v -0.512784 1.005732 0.337877
+v -0.506301 1.008762 0.340696
+v -0.510792 1.005346 0.341540
+v -0.503315 1.011917 0.336991
+v -0.504068 1.008794 0.342976
+v -0.508151 1.005243 0.344788
+v -0.501969 1.011864 0.338646
+v -0.501463 1.009042 0.344804
+v -0.504961 1.005427 0.347495
+v -0.500344 1.011958 0.340025
+v -0.498584 1.009497 0.346108
+v -0.498503 1.012195 0.341077
+v -0.501347 1.005891 0.349559
+v -0.495544 1.010143 0.346837
+v -0.497447 1.006617 0.350899
+v -0.496516 1.012564 0.341759
+v -0.492460 1.010954 0.346965
+v -0.493410 1.007577 0.351464
+v -0.494459 1.013053 0.342047
+v -0.489448 1.011899 0.346486
+v -0.489392 1.008734 0.351233
+v -0.492412 1.013643 0.341929
+v -0.492309 1.015955 0.336499
+v -0.491456 1.016326 0.335953
+v -0.490737 1.016703 0.335244
+v -0.490179 1.017071 0.334398
+v -0.489803 1.017415 0.333448
+v -0.489624 1.017722 0.332430
+v -0.489648 1.017981 0.331383
+v -0.489876 1.018182 0.330349
+v -0.490298 1.018317 0.329365
+v -0.490897 1.018380 0.328471
+v -0.491651 1.018369 0.327701
+v -0.492531 1.018286 0.327084
+v -0.493504 1.018131 0.326643
+v -0.494530 1.017913 0.326397
+v -0.495572 1.017640 0.326354
+v -0.496589 1.017320 0.326516
+v -0.497543 1.016968 0.326876
+v -0.498395 1.016597 0.327421
+v -0.499115 1.016220 0.328131
+v -0.499673 1.015852 0.328977
+v -0.500049 1.015508 0.329927
+v -0.500203 1.014942 0.331991
+v -0.499976 1.014741 0.333026
+v -0.499554 1.014606 0.334009
+v -0.498955 1.014543 0.334903
+v -0.498200 1.014554 0.335674
+v -0.497320 1.014638 0.336291
+v -0.496348 1.014791 0.336731
+v -0.495321 1.015010 0.336978
+v -0.494279 1.015283 0.337021
+v -0.493262 1.015603 0.336859
+v -0.490453 1.014310 0.341410
+v -0.485548 1.010044 0.350214
+v -0.485366 1.013515 0.344624
+v -0.483038 1.014624 0.342766
+v -0.481146 1.015726 0.340462
+v -0.479762 1.016780 0.337802
+v -0.478940 1.017745 0.334887
+v -0.478712 1.018584 0.331830
+v -0.479085 1.019265 0.328748
+v -0.480047 1.019762 0.325759
+v -0.481559 1.020054 0.322979
+v -0.483564 1.020133 0.320514
+v -0.485984 1.019993 0.318458
+v -0.488728 1.019641 0.316892
+v -0.491688 1.019090 0.315875
+v -0.494752 1.018361 0.315446
+v -0.497802 1.017483 0.315621
+v -0.500720 1.016489 0.316395
+v -0.503394 1.015417 0.317737
+v -0.505723 1.014308 0.319595
+v -0.507615 1.013206 0.321899
+v -0.508998 1.012151 0.324559
+v -0.509820 1.011186 0.327474
+v -0.510049 1.010347 0.330531
+v -0.509675 1.009667 0.333613
+v -0.508714 1.009170 0.336602
+v -0.507202 1.008878 0.339382
+v -0.505197 1.008799 0.341847
+v -0.502776 1.008939 0.343903
+v -0.500033 1.009291 0.345469
+v -0.497072 1.009842 0.346486
+v -0.494008 1.010571 0.346915
+v -0.490959 1.011449 0.346739
+v -0.488041 1.012443 0.345966
+v -0.277543 0.786707 0.537948
+v -0.288994 0.815456 0.533079
+v -0.305471 0.844683 0.518935
+v -0.328026 0.887146 0.501019
+v -0.354605 0.931433 0.476525
+v -0.383290 0.968461 0.443756
+v -0.412980 0.996808 0.403974
+v -0.232706 0.802725 0.508343
+v -0.246759 0.830544 0.505192
+v -0.267461 0.858262 0.493837
+v -0.295701 0.898694 0.479675
+v -0.329207 0.940506 0.459755
+v -0.365796 0.974710 0.432205
+v -0.404061 0.999994 0.398085
+v -0.195180 0.820703 0.470769
+v -0.211410 0.847479 0.469798
+v -0.235647 0.873503 0.461983
+v -0.268646 0.911656 0.452586
+v -0.307950 0.950690 0.438470
+v -0.351154 0.981725 0.417544
+v -0.396597 1.003570 0.390611
+v -0.166405 0.839951 0.426668
+v -0.184304 0.865610 0.428256
+v -0.211253 0.889820 0.424597
+v -0.247900 0.925533 0.420791
+v -0.291650 0.961593 0.413490
+v -0.339926 0.989235 0.400337
+v -0.390873 1.007398 0.381839
+v -0.147488 0.859728 0.377737
+v -0.166485 0.884240 0.382163
+v -0.195216 0.906587 0.383114
+v -0.234262 0.939792 0.385513
+v -0.280935 0.972796 0.385772
+v -0.332545 0.996952 0.381245
+v -0.387111 1.011332 0.372106
+v -0.139156 0.879276 0.325854
+v -0.158636 0.902654 0.333291
+v -0.188153 0.923159 0.339131
+v -0.228255 0.953885 0.348108
+v -0.276215 0.983869 0.356383
+v -0.329294 1.004579 0.361001
+v -0.385453 1.015221 0.361786
+v -0.141728 0.897842 0.273015
+v -0.161060 0.920143 0.283518
+v -0.190334 0.938898 0.294336
+v -0.230110 0.967270 0.310013
+v -0.277672 0.994386 0.326452
+v -0.330298 1.011823 0.340385
+v -0.385965 1.018914 0.351275
+v -0.155107 0.914714 0.221250
+v -0.173662 0.936036 0.234756
+v -0.201675 0.953201 0.250451
+v -0.239755 0.979434 0.272692
+v -0.285250 1.003943 0.297129
+v -0.335518 1.018407 0.320187
+v -0.388626 1.022270 0.340979
+v -0.178777 0.929242 0.172547
+v -0.195959 0.949721 0.188879
+v -0.221742 0.965518 0.209163
+v -0.256821 0.989908 0.237580
+v -0.298659 1.012172 0.269541
+v -0.344754 1.024075 0.301184
+v -0.393334 1.025160 0.331291
+v -0.211830 0.940869 0.128779
+v -0.227094 0.960673 0.147651
+v -0.249763 0.975375 0.172058
+v -0.280650 0.998291 0.206025
+v -0.317382 1.018759 0.244749
+v -0.357650 1.028612 0.284106
+v -0.399909 1.027472 0.322585
+v -0.252995 0.949148 0.091628
+v -0.265871 0.968472 0.112655
+v -0.284661 0.982393 0.140563
+v -0.310328 1.004259 0.179240
+v -0.340700 1.023448 0.223704
+v -0.373712 1.031842 0.269611
+v -0.408097 1.029119 0.315195
+v -0.300690 0.953760 0.062521
+v -0.310798 0.972816 0.085236
+v -0.325095 0.986303 0.115887
+v -0.344715 1.007585 0.158255
+v -0.367717 1.026061 0.207217
+v -0.392322 1.033641 0.258254
+v -0.417584 1.030036 0.309405
+v -0.353083 0.954529 0.042576
+v -0.360151 0.973540 0.066449
+v -0.369511 0.986955 0.098979
+v -0.382487 1.008139 0.143876
+v -0.397395 1.026496 0.195919
+v -0.412764 1.033941 0.250472
+v -0.428006 1.030189 0.305438
+v -0.408159 0.951424 0.032561
+v -0.412031 0.970616 0.057016
+v -0.416202 0.984323 0.090489
+v -0.422195 1.005901 0.136656
+v -0.428593 1.024737 0.190246
+v -0.434254 1.032730 0.246564
+v -0.438961 1.029572 0.303446
+v -0.463802 0.944565 0.032861
+v -0.464446 0.964155 0.057297
+v -0.463374 0.978508 0.090743
+v -0.462312 1.000956 0.136871
+v -0.460112 1.020852 0.190415
+v -0.455965 1.030054 0.246681
+v -0.450029 1.028207 0.303506
+v -0.517874 0.934216 0.043462
+v -0.515381 0.954407 0.067284
+v -0.509215 0.969735 0.099731
+v -0.501296 0.993495 0.144515
+v -0.490742 1.014990 0.196421
+v -0.477063 1.026016 0.250818
+v -0.460785 1.026149 0.305614
+v -0.568297 0.920775 0.063960
+v -0.562879 0.941745 0.086592
+v -0.551961 0.958340 0.117107
+v -0.537649 0.983804 0.159293
+v -0.519304 1.007376 0.208032
+v -0.496737 1.020771 0.258815
+v -0.470815 1.023475 0.309692
+v -0.613134 0.904757 0.093564
+v -0.605114 0.926657 0.114479
+v -0.589972 0.944761 0.142205
+v -0.569974 0.972256 0.180636
+v -0.544702 0.998303 0.224802
+v -0.514231 1.014522 0.270366
+v -0.480455 1.016774 0.313963
+v -0.650660 0.886779 0.131139
+v -0.640463 0.909722 0.149873
+v -0.621785 0.929520 0.174059
+v -0.597029 0.959294 0.207726
+v -0.565959 0.988119 0.246086
+v -0.528874 1.007507 0.285027
+v -0.489434 1.012130 0.319679
+v -0.679435 0.867532 0.175239
+v -0.667568 0.891591 0.191415
+v -0.646179 0.913202 0.211446
+v -0.617775 0.945418 0.239521
+v -0.582259 0.977216 0.271067
+v -0.540101 0.999997 0.302234
+v -0.495741 1.007945 0.328309
+v -0.698352 0.847754 0.224171
+v -0.685388 0.872961 0.237508
+v -0.662217 0.896436 0.252928
+v -0.631413 0.931159 0.274799
+v -0.592974 0.966013 0.298784
+v -0.547482 0.992280 0.321327
+v -0.499139 1.004188 0.338610
+v -0.706684 0.828206 0.276053
+v -0.693237 0.854547 0.286380
+v -0.669280 0.879864 0.296912
+v -0.637420 0.917066 0.312204
+v -0.597694 0.954940 0.328173
+v -0.550733 0.984653 0.341570
+v -0.498901 1.001679 0.349947
+v -0.442533 1.015384 0.358706
+v -0.704112 0.809640 0.328892
+v -0.690813 0.837058 0.336153
+v -0.667099 0.864124 0.341706
+v -0.635565 0.903680 0.350298
+v -0.596237 0.944423 0.358104
+v -0.549729 0.977409 0.362187
+v -0.497830 1.001369 0.362390
+v -0.690733 0.792768 0.380658
+v -0.678211 0.821166 0.384915
+v -0.655757 0.849821 0.385591
+v -0.625920 0.891516 0.387619
+v -0.588658 0.934866 0.387427
+v -0.544509 0.970826 0.382385
+v -0.495169 0.998013 0.372687
+v -0.667063 0.778240 0.429360
+v -0.655914 0.807480 0.430792
+v -0.635691 0.837505 0.426879
+v -0.608854 0.881042 0.422732
+v -0.575250 0.926637 0.415015
+v -0.535273 0.965157 0.401388
+v -0.490460 0.995123 0.382374
+v -0.634010 0.766613 0.473128
+v -0.624779 0.796528 0.472020
+v -0.607670 0.827648 0.463984
+v -0.585025 0.872659 0.454287
+v -0.556527 0.920050 0.439807
+v -0.522377 0.960620 0.418465
+v -0.483886 0.992811 0.391080
+v -0.592845 0.758335 0.510280
+v -0.586002 0.788730 0.507016
+v -0.572772 0.820629 0.495479
+v -0.555346 0.866691 0.481071
+v -0.533209 0.915361 0.460852
+v -0.506315 0.957390 0.432961
+v -0.475698 0.991164 0.398470
+v -0.545150 0.753722 0.539387
+v -0.541074 0.784385 0.534435
+v -0.532338 0.816719 0.520155
+v -0.520960 0.863366 0.502056
+v -0.506192 0.912748 0.477340
+v -0.487705 0.955591 0.444318
+v -0.466210 0.990246 0.404260
+v -0.492758 0.752954 0.559331
+v -0.491722 0.783661 0.553222
+v -0.487922 0.816068 0.537063
+v -0.483188 0.862811 0.516435
+v -0.476514 0.912313 0.488637
+v -0.467263 0.955291 0.452100
+v -0.455789 0.990094 0.408227
+v -0.437681 0.756058 0.569346
+v -0.439842 0.786585 0.562656
+v -0.441231 0.818700 0.545553
+v -0.443480 0.865050 0.523656
+v -0.445316 0.914072 0.494310
+v -0.445773 0.956502 0.456007
+v -0.444834 0.990711 0.410219
+v -0.382038 0.762917 0.569047
+v -0.387427 0.793046 0.562374
+v -0.394059 0.824514 0.545299
+v -0.403363 0.869995 0.523440
+v -0.413797 0.917957 0.494141
+v -0.424062 0.959178 0.455890
+v -0.433766 0.992075 0.410160
+v -0.327966 0.773266 0.558445
+v -0.336492 0.802794 0.552387
+v -0.348218 0.833287 0.536312
+v -0.364379 0.877456 0.515796
+v -0.383167 0.923819 0.488135
+v -0.402964 0.963216 0.451754
+v -0.423010 0.994134 0.408051
+v -0.377985 0.891508 0.314816
+v -0.379611 0.900920 0.313675
+v -0.398062 0.983969 0.424789
+v -0.384779 0.988715 0.416018
+v -0.374513 0.971776 0.438129
+v -0.408520 0.998457 0.401060
+v -0.373661 0.994041 0.404886
+v -0.358431 0.978413 0.425012
+v -0.400327 1.001839 0.394377
+v -0.365136 0.999743 0.391821
+v -0.393731 1.005542 0.386253
+v -0.345486 0.985682 0.409064
+v -0.359532 1.005602 0.377325
+v -0.336174 0.993302 0.390899
+v -0.388987 1.009424 0.376998
+v -0.357064 1.011394 0.361954
+v -0.330853 1.000980 0.371215
+v -0.386276 1.013336 0.366969
+v -0.357826 1.016894 0.346300
+v -0.329728 1.008422 0.350767
+v -0.385703 1.017128 0.356551
+v -0.361789 1.021892 0.330964
+v -0.387290 1.020653 0.346145
+v -0.332843 1.015342 0.330343
+v -0.368802 1.026197 0.316536
+v -0.340077 1.021473 0.310726
+v -0.390976 1.023776 0.336151
+v -0.378594 1.029641 0.303569
+v -0.351153 1.026580 0.292671
+v -0.396619 1.026378 0.326952
+v -0.390790 1.032094 0.292562
+v -0.365644 1.030466 0.276871
+v -0.404002 1.028359 0.318902
+v -0.404920 1.033460 0.283939
+v -0.412841 1.029641 0.312311
+v -0.382994 1.032983 0.263933
+v -0.420441 1.033688 0.278030
+v -0.402537 1.034034 0.254356
+v -0.422798 1.030176 0.307432
+v -0.436758 1.032768 0.275063
+v -0.423521 1.033578 0.248506
+v -0.433489 1.029944 0.304451
+v -0.453243 1.030736 0.275152
+v -0.445139 1.031632 0.246609
+v -0.444503 1.028953 0.303485
+v -0.469262 1.027670 0.278293
+v -0.466562 1.028273 0.248738
+v -0.455417 1.027241 0.304569
+v -0.484201 1.023688 0.284366
+v -0.486965 1.023627 0.254810
+v -0.465812 1.024874 0.307663
+v -0.496772 1.015887 0.292947
+v -0.505565 1.017875 0.264592
+v -0.473255 1.019645 0.315419
+v -0.508371 1.009900 0.303056
+v -0.521647 1.011238 0.277709
+v -0.483273 1.014518 0.318496
+v -0.517039 1.004095 0.315776
+v -0.534592 1.003969 0.293657
+v -0.490648 1.010345 0.325370
+v -0.522337 0.998472 0.330299
+v -0.543904 0.996349 0.311822
+v -0.495320 1.006522 0.334484
+v -0.523969 0.993633 0.345999
+v -0.480696 1.007079 0.352749
+v -0.549225 0.988671 0.331506
+v -0.496785 1.003461 0.344855
+v -0.524437 0.990763 0.362854
+v -0.550349 0.981229 0.351954
+v -0.494152 1.002545 0.356183
+v -0.520474 0.985765 0.378190
+v -0.547235 0.974309 0.372378
+v -0.496519 0.999748 0.367562
+v -0.513461 0.981461 0.392619
+v -0.492833 0.996624 0.377556
+v -0.540001 0.968178 0.391995
+v -0.503669 0.978016 0.405586
+v -0.528925 0.963071 0.410051
+v -0.487190 0.994022 0.386755
+v -0.491473 0.975564 0.416592
+v -0.514434 0.959185 0.425850
+v -0.479807 0.992042 0.394805
+v -0.477343 0.974197 0.425215
+v -0.497084 0.956668 0.438788
+v -0.470968 0.990760 0.401396
+v -0.461821 0.973969 0.431124
+v -0.461011 0.990224 0.406276
+v -0.477541 0.955617 0.448365
+v -0.445505 0.974889 0.434091
+v -0.456557 0.956073 0.454215
+v -0.450320 0.990457 0.409256
+v -0.429020 0.976921 0.434002
+v -0.434939 0.958019 0.456112
+v -0.439306 0.991448 0.410223
+v -0.413000 0.979987 0.430861
+v -0.413516 0.961378 0.453983
+v -0.428392 0.993160 0.409138
+v -0.427857 1.007615 0.382042
+v -0.423371 1.009218 0.379079
+v -0.419616 1.011017 0.375319
+v -0.416736 1.012943 0.370907
+v -0.414843 1.014922 0.366010
+v -0.414010 1.016878 0.360818
+v -0.414267 1.018736 0.355531
+v -0.415606 1.020425 0.350351
+v -0.417974 1.021878 0.345478
+v -0.421282 1.023042 0.341098
+v -0.425401 1.023870 0.337380
+v -0.430174 1.024332 0.334468
+v -0.435416 1.024409 0.332472
+v -0.440928 1.024098 0.331470
+v -0.446496 1.023412 0.331500
+v -0.451907 1.022376 0.332561
+v -0.456952 1.021031 0.334612
+v -0.468517 1.017045 0.328992
+v -0.475444 1.013756 0.331794
+v -0.479959 1.010818 0.337605
+v -0.482112 1.008299 0.344802
+v -0.470543 1.009910 0.361122
+v -0.469204 1.008222 0.366302
+v -0.466835 1.006768 0.371176
+v -0.463528 1.005605 0.375556
+v -0.459409 1.004776 0.379273
+v -0.454636 1.004315 0.382186
+v -0.449393 1.004238 0.384182
+v -0.443882 1.004549 0.385184
+v -0.438314 1.005235 0.385154
+v -0.432903 1.006270 0.384093
+v -0.417997 0.995526 0.406044
+v -0.393113 0.966024 0.447911
+v -0.391411 0.986459 0.420481
+v -0.379205 0.991497 0.410525
+v -0.369379 0.997014 0.398420
+v -0.362311 1.002798 0.384633
+v -0.358272 1.008626 0.369692
+v -0.357419 1.014275 0.354172
+v -0.359783 1.019527 0.338669
+v -0.365274 1.024180 0.323780
+v -0.373680 1.028056 0.310075
+v -0.384679 1.031006 0.298083
+v -0.397849 1.032917 0.288263
+v -0.412682 1.033714 0.280994
+v -0.428609 1.033368 0.276554
+v -0.445018 1.031892 0.275114
+v -0.461278 1.029341 0.276729
+v -0.476764 1.025816 0.281338
+v -0.489888 1.019368 0.289406
+v -0.502516 1.012886 0.298052
+v -0.512663 1.007077 0.309465
+v -0.519650 1.001359 0.323095
+v -0.523079 0.996059 0.338165
+v -0.523164 0.992139 0.354316
+v -0.522510 0.988382 0.370575
+v -0.517020 0.983729 0.385465
+v -0.508613 0.979852 0.399169
+v -0.497614 0.976902 0.411161
+v -0.484445 0.974992 0.420981
+v -0.469612 0.974194 0.428251
+v -0.453684 0.974541 0.432691
+v -0.437276 0.976017 0.434130
+v -0.421016 0.978567 0.432515
+v -0.405529 0.982093 0.427906
+vn 0.258370 0.533799 0.805139
+vn 0.268197 0.516129 0.813410
+vn 0.363964 0.571520 0.735435
+vn 0.190466 0.644063 0.740837
+vn 0.278390 0.675283 0.682974
+vn 0.108158 0.753349 0.648640
+vn 0.319651 0.415021 0.851802
+vn 0.370983 0.296793 0.879910
+vn 0.503952 0.344279 0.792108
+vn 0.376263 0.554735 0.742058
+vn 0.466720 0.598071 0.651479
+vn 0.452315 0.613849 0.646962
+vn 0.173437 0.778497 0.603168
+vn 0.351848 0.710471 0.609394
+vn 0.440535 0.458205 0.771966
+vn 0.541704 0.506668 0.670675
+vn 0.619282 0.558550 0.551775
+vn 0.536088 0.644490 0.545152
+vn 0.408338 0.748039 0.523118
+vn 0.227454 0.804559 0.548540
+vn 0.615253 0.397595 0.680685
+vn 0.700583 0.454695 0.549883
+vn 0.670278 0.611896 0.419843
+vn 0.581683 0.692160 0.427229
+vn 0.520066 0.659169 0.543107
+vn 0.564623 0.705741 0.427900
+vn 0.445021 0.786981 0.427259
+vn 0.297281 0.859554 0.415632
+vn 0.461715 0.825037 0.325663
+vn 0.756706 0.513352 0.404767
+vn 0.781396 0.571306 0.250893
+vn 0.601764 0.739280 0.302164
+vn 0.584246 0.751762 0.305734
+vn 0.595569 0.784020 0.174780
+vn 0.456282 0.861599 0.222297
+vn 0.305673 0.914975 0.263344
+vn 0.692740 0.664602 0.279977
+vn 0.685812 0.714652 0.137516
+vn 0.649739 0.760125 -0.002014
+vn 0.578173 0.795495 0.181310
+vn 0.546678 0.835200 0.059420
+vn 0.430280 0.894559 0.120853
+vn 0.773766 0.626392 0.094211
+vn 0.734092 0.676412 -0.059297
+vn 0.585925 0.799310 -0.133335
+vn 0.563311 0.824702 0.049989
+vn 0.490951 0.869411 -0.055239
+vn 0.283547 0.940519 0.187078
+vn 0.383923 0.923002 0.025483
+vn 0.248909 0.961455 0.116733
+vn 0.319376 0.945677 -0.060305
+vn 0.663900 0.719504 -0.203742
+vn 0.565874 0.753990 -0.333537
+vn 0.506272 0.859706 -0.067385
+vn 0.426588 0.887753 -0.172887
+vn 0.413099 0.896786 -0.158300
+vn 0.327372 0.907712 -0.262429
+vn 0.238655 0.961943 -0.132847
+vn 0.144200 0.989532 0.002564
+vn 0.496811 0.830653 -0.251320
+vn 0.443800 0.778527 -0.443709
+vn 0.385815 0.852962 -0.351482
+vn 0.257241 0.865413 -0.429975
+vn 0.316172 0.916288 -0.245766
+vn 0.203864 0.927152 -0.314310
+vn 0.145268 0.970977 -0.189856
+vn 0.075381 0.996338 -0.039857
+vn 0.302347 0.792199 -0.530045
+vn 0.115970 0.867458 -0.483718
+vn 0.212378 0.918821 -0.332591
+vn 0.086093 0.920682 -0.380688
+vn 0.080508 0.928953 -0.361278
+vn 0.042604 0.972533 -0.228706
+vn -0.001648 0.997406 -0.071718
+vn -0.065127 0.966369 -0.248756
+vn 0.146977 0.794488 -0.589190
+vn -0.016327 0.785272 -0.618885
+vn -0.046632 0.913175 -0.404828
+vn -0.049165 0.921659 -0.384838
+vn -0.174047 0.953001 -0.247932
+vn -0.160466 0.983459 -0.083865
+vn -0.032472 0.859096 -0.510727
+vn -0.182501 0.840602 -0.509934
+vn -0.180761 0.896664 -0.404096
+vn -0.180181 0.905484 -0.384136
+vn -0.328288 0.812708 -0.481338
+vn -0.311106 0.871700 -0.378521
+vn -0.279916 0.932798 -0.226966
+vn -0.241310 0.967864 -0.070437
+vn -0.181371 0.764946 -0.618000
+vn -0.341716 0.734245 -0.586566
+vn -0.464217 0.776482 -0.426069
+vn -0.432661 0.839320 -0.329142
+vn -0.307505 0.881130 -0.359172
+vn -0.426221 0.849483 -0.310923
+vn -0.378704 0.906400 -0.187017
+vn -0.318094 0.947844 -0.019959
+vn -0.466567 0.874966 -0.129276
+vn -0.491256 0.694388 -0.525773
+vn -0.585101 0.733299 -0.346263
+vn -0.540727 0.800684 -0.257759
+vn -0.531785 0.811762 -0.241218
+vn -0.539811 0.839930 -0.055361
+vn -0.392438 0.914274 0.100253
+vn -0.624226 0.646870 -0.437971
+vn -0.735527 0.593554 -0.326548
+vn -0.631184 0.757347 -0.167180
+vn -0.620167 0.769433 -0.152715
+vn -0.686270 0.684805 -0.244972
+vn -0.700552 0.710959 -0.060884
+vn -0.596423 0.802057 0.030671
+vn -0.763848 0.632923 -0.126072
+vn -0.820856 0.536485 -0.195746
+vn -0.814844 0.579608 0.005829
+vn -0.687918 0.724113 -0.048891
+vn -0.732475 0.677541 0.066286
+vn -0.633168 0.763543 0.126682
+vn -0.450942 0.866421 0.214362
+vn -0.649648 0.725150 0.228217
+vn -0.876980 0.477828 -0.050630
+vn -0.837306 0.526902 0.145695
+vn -0.746147 0.663289 0.057039
+vn -0.766259 0.616169 0.182104
+vn -0.752068 0.631519 0.188452
+vn -0.644765 0.688650 0.331614
+vn -0.471847 0.838008 0.274026
+vn -0.901669 0.419843 0.103214
+vn -0.894040 0.364788 0.259926
+vn -0.830378 0.476852 0.288156
+vn -0.760033 0.571398 0.309488
+vn -0.746025 0.587786 0.312876
+vn -0.714530 0.548051 0.434767
+vn -0.618244 0.655934 0.432997
+vn -0.492691 0.762169 0.419904
+vn -0.854366 0.314768 0.413434
+vn -0.727805 0.530747 0.434248
+vn -0.794305 0.431349 0.427717
+vn -0.784173 0.271676 0.557878
+vn -0.670736 0.495712 0.551653
+vn -0.572192 0.627155 0.528398
+vn -0.507370 0.604572 0.614002
+vn -0.410199 0.725974 0.551958
+vn -0.730491 0.392193 0.559038
+vn -0.686148 0.237190 0.687674
+vn -0.591052 0.467696 0.657155
+vn -0.658773 0.513840 0.549455
+vn -0.580950 0.486465 0.652516
+vn -0.426649 0.588549 0.686697
+vn -0.350322 0.712088 0.608386
+vn -0.641377 0.360851 0.677023
+vn -0.564074 0.212653 0.797845
+vn -0.491836 0.447737 0.746727
+vn -0.484024 0.466994 0.739982
+vn -0.376873 0.436628 0.816889
+vn -0.333323 0.579333 0.743797
+vn -0.530412 0.338511 0.777184
+vn -0.422620 0.198950 0.884182
+vn -0.401807 0.326090 0.855678
+vn -0.267220 0.196692 0.943327
+vn -0.250557 0.434767 0.864956
+vn -0.371715 0.456130 0.808527
+vn -0.248360 0.454329 0.855495
+vn -0.278390 0.706839 0.650258
+vn -0.230811 0.577624 0.782952
+vn -0.122990 0.583911 0.802423
+vn -0.126743 0.710135 0.692526
+vn -0.260567 0.324015 0.909452
+vn -0.103885 0.205878 0.973022
+vn -0.117801 0.442244 0.889096
+vn -0.118656 0.461623 0.879086
+vn -0.014039 0.597522 0.801721
+vn -0.043764 0.718741 0.693838
+vn -0.112064 0.332377 0.936430
+vn 0.061098 0.226234 0.972137
+vn 0.016297 0.458785 0.888363
+vn 0.012329 0.477767 0.878384
+vn 0.146641 0.483718 0.862819
+vn 0.091922 0.617420 0.781213
+vn 0.037904 0.350871 0.935636
+vn 0.221442 0.256935 0.940703
+vn 0.183691 0.378765 0.907041
+vn 0.139653 0.502152 0.853420
+vn 0.137364 0.767022 0.626698
+vn 0.197119 0.791528 0.578448
+vn 0.245308 0.818384 0.519669
+vn 0.265969 0.832698 0.485641
+vn 0.281381 0.847896 0.449293
+vn 0.300119 0.874966 0.379925
+vn 0.305216 0.889309 0.340465
+vn 0.304483 0.903775 0.300699
+vn 0.293497 0.928159 0.228706
+vn 0.267098 0.950926 0.156041
+vn 0.226447 0.969909 0.089084
+vn 0.200537 0.978027 0.056612
+vn 0.170293 0.984985 0.027863
+vn 0.105899 0.994171 -0.019684
+vn 0.033448 0.997925 -0.054811
+vn -0.040498 0.996307 -0.075411
+vn -0.082186 0.993225 -0.081912
+vn -0.124241 0.988769 -0.082766
+vn -0.203436 0.976226 -0.074557
+vn -0.275338 0.959868 -0.053133
+vn -0.325236 0.945494 0.015259
+vn -0.354930 0.933622 0.048494
+vn -0.366375 0.926969 0.080355
+vn -0.400922 0.906583 0.131565
+vn -0.422010 0.892666 0.158086
+vn -0.431684 0.881405 0.191595
+vn -0.452345 0.856624 0.248085
+vn -0.478347 0.821619 0.309976
+vn -0.497269 0.799921 0.335856
+vn -0.499557 0.776391 0.384198
+vn -0.474075 0.754753 0.453352
+vn -0.455031 0.743797 0.489517
+vn -0.431166 0.734977 0.523301
+vn -0.377270 0.720725 0.581530
+vn -0.316111 0.711844 0.627125
+vn -0.243995 0.707816 0.662862
+vn -0.204016 0.707389 0.676717
+vn -0.162694 0.709586 0.685537
+vn -0.082705 0.716910 0.692190
+vn -0.007202 0.728751 0.684683
+vn 0.033296 0.736656 0.675436
+vn 0.071810 0.746757 0.661184
+vn -0.084292 0.879818 0.467727
+vn -0.050356 0.860195 0.507401
+vn -0.024201 0.871609 0.489578
+vn -0.042756 0.899625 0.434553
+vn -0.001221 0.883602 0.468154
+vn 0.020631 0.895108 0.445326
+vn -0.008972 0.919279 0.393414
+vn 0.038697 0.906919 0.419507
+vn 0.055422 0.918058 0.392499
+vn 0.015687 0.938078 0.345988
+vn 0.067934 0.929136 0.363384
+vn 0.078890 0.939482 0.333323
+vn 0.030366 0.955321 0.293924
+vn 0.085299 0.949522 0.301767
+vn 0.090060 0.958678 0.269845
+vn 0.034425 0.970306 0.239357
+vn 0.090091 0.967223 0.237342
+vn 0.088504 0.974822 0.204566
+vn 0.027741 0.982452 0.184332
+vn 0.082217 0.981597 0.172246
+vn 0.074313 0.987335 0.140019
+vn 0.010620 0.991302 0.131046
+vn 0.061922 0.992065 0.109134
+vn 0.048036 0.995727 0.078738
+vn -0.016358 0.996521 0.081454
+vn 0.029969 0.998260 0.050417
+vn 0.010620 0.999664 0.022919
+vn -0.052126 0.997925 0.037416
+vn -0.012268 0.999908 -0.001556
+vn -0.036378 0.999023 -0.025056
+vn -0.095340 0.995422 0.000732
+vn -0.063387 0.996948 -0.045015
+vn -0.091250 0.993774 -0.063540
+vn -0.144261 0.989135 -0.027161
+vn -0.121311 0.989532 -0.078066
+vn -0.151860 0.984191 -0.091006
+vn -0.197119 0.979308 -0.045320
+vn -0.183813 0.977905 -0.099521
+vn -0.215918 0.970580 -0.106388
+vn -0.251778 0.966308 -0.052980
+vn -0.248482 0.962523 -0.108554
+vn -0.280892 0.953520 -0.109043
+vn -0.306192 0.950652 -0.049837
+vn -0.312845 0.943968 -0.104862
+vn -0.344340 0.933592 -0.098972
+vn -0.358318 0.932890 -0.036042
+vn -0.374493 0.922971 -0.088504
+vn -0.403760 0.911649 -0.076510
+vn -0.406018 0.913755 -0.012085
+vn -0.430921 0.900357 -0.060244
+vn -0.456923 0.888455 -0.042482
+vn -0.447584 0.893979 0.021058
+vn -0.480056 0.876949 -0.020936
+vn -0.501816 0.864956 0.001770
+vn -0.481338 0.874294 0.062136
+vn -0.520035 0.853664 0.027650
+vn -0.536607 0.842036 0.054445
+vn -0.506027 0.855495 0.109653
+vn -0.549242 0.831416 0.083834
+vn -0.560045 0.820582 0.113834
+vn -0.520707 0.838282 0.161657
+vn -0.566576 0.811029 0.145390
+vn -0.571215 0.801416 0.177252
+vn -0.524796 0.823298 0.216163
+vn -0.571398 0.793359 0.209906
+vn -0.569689 0.785241 0.242470
+vn -0.518113 0.811151 0.271218
+vn -0.563524 0.778954 0.274972
+vn -0.555498 0.772729 0.306986
+vn -0.500961 0.802301 0.324534
+vn -0.543229 0.768517 0.337992
+vn -0.529191 0.764336 0.368328
+vn -0.473952 0.797082 0.374157
+vn -0.511307 0.762322 0.396741
+vn -0.491836 0.760399 0.424116
+vn -0.438185 0.795679 0.418165
+vn -0.468978 0.760643 0.448775
+vn -0.444777 0.761040 0.472152
+vn -0.394971 0.798181 0.454848
+vn -0.417859 0.763573 0.492203
+vn -0.389874 0.766289 0.510636
+vn -0.346049 0.804437 0.482803
+vn -0.359966 0.771050 0.525224
+vn -0.329264 0.775903 0.538072
+vn -0.293191 0.814295 0.500931
+vn -0.297464 0.782678 0.546709
+vn -0.265236 0.789483 0.553453
+vn -0.238533 0.827296 0.508591
+vn -0.232795 0.798059 0.555742
+vn -0.200262 0.806574 0.556139
+vn -0.184088 0.842982 0.505448
+vn -0.168432 0.816614 0.552049
+vn -0.136814 0.826472 0.546037
+vn -0.256111 0.936888 0.237953
+vn -0.206946 0.922849 0.324747
+vn -0.191351 0.929655 0.314798
+vn -0.178198 0.936552 0.301798
+vn -0.167974 0.943266 0.286355
+vn -0.161107 0.949553 0.268960
+vn -0.157811 0.955199 0.250313
+vn -0.158269 0.959899 0.231269
+vn -0.162420 0.963591 0.212348
+vn -0.170141 0.966063 0.194281
+vn -0.181127 0.967223 0.177892
+vn -0.194891 0.967009 0.163884
+vn -0.211066 0.965484 0.152562
+vn -0.228828 0.962676 0.144444
+vn -0.247566 0.958678 0.139958
+vn -0.266640 0.953673 0.139195
+vn -0.285195 0.947844 0.142186
+vn -0.302683 0.941374 0.148747
+vn -0.318308 0.934599 0.158696
+vn -0.331431 0.927732 0.171606
+vn -0.341655 0.920988 0.187170
+vn -0.348521 0.914670 0.204596
+vn -0.351817 0.909055 0.223151
+vn -0.351360 0.904324 0.242347
+vn -0.347209 0.900632 0.261238
+vn -0.339488 0.898190 0.279153
+vn -0.328501 0.897031 0.295572
+vn -0.314707 0.897214 0.309702
+vn -0.298593 0.898740 0.320994
+vn -0.280801 0.901578 0.329020
+vn -0.262032 0.905545 0.333537
+vn -0.242988 0.910581 0.334330
+vn -0.224372 0.916410 0.331370
+vn -0.132023 0.860714 0.491623
+vn -0.106815 0.837581 0.535722
+vn -0.077395 0.848445 0.523576
+vn -0.142369 0.907315 0.395581
+vn -0.059938 0.888516 0.454878
+vn -0.156590 0.899960 0.406842
+vn -0.105380 0.868709 0.483932
+vn -0.114292 0.920682 0.373180
+vn -0.021607 0.908597 0.417035
+vn -0.125858 0.913388 0.387097
+vn -0.091464 0.933988 0.345378
+vn 0.008118 0.928159 0.371990
+vn -0.099918 0.926969 0.361553
+vn -0.074740 0.946715 0.313211
+vn 0.028138 0.946501 0.321360
+vn -0.079745 0.940245 0.330973
+vn -0.064852 0.958342 0.278146
+vn 0.037690 0.962920 0.267037
+vn -0.066195 0.952635 0.296731
+vn -0.062075 0.968444 0.241249
+vn 0.036378 0.976714 0.211280
+vn -0.059725 0.963713 0.260048
+vn -0.066591 0.976684 0.203986
+vn 0.024232 0.987396 0.156194
+vn -0.060640 0.973083 0.222297
+vn -0.078188 0.982696 0.167882
+vn 0.001801 0.994598 0.103732
+vn -0.068819 0.980316 0.184881
+vn -0.096438 0.986206 0.134434
+vn -0.030122 0.997955 0.056124
+vn -0.084017 0.985168 0.149480
+vn -0.120640 0.987152 0.104678
+vn -0.070345 0.997406 0.015046
+vn -0.105655 0.987457 0.117222
+vn -0.149846 0.985473 0.079806
+vn -0.117252 0.992920 -0.017823
+vn -0.132908 0.987060 0.089389
+vn -0.182928 0.981231 0.060945
+vn -0.169042 0.984741 -0.041261
+vn -0.164647 0.984039 0.067110
+vn -0.218696 0.974548 0.048677
+vn -0.223823 0.973083 -0.054445
+vn -0.199683 0.978484 0.051271
+vn -0.255654 0.965758 0.043489
+vn -0.279305 0.958495 -0.056734
+vn -0.236763 0.970611 0.042390
+vn -0.292459 0.955168 0.045595
+vn -0.333506 0.941496 -0.048097
+vn -0.274300 0.960753 0.040803
+vn -0.327647 0.943175 0.054903
+vn -0.384350 0.922727 -0.028871
+vn -0.311075 0.949217 0.046632
+vn -0.359966 0.930235 0.071169
+vn -0.429792 0.902921 0.000153
+vn -0.345408 0.936521 0.059633
+vn -0.388012 0.916868 0.093539
+vn -0.468123 0.882839 0.037996
+vn -0.376202 0.923124 0.079348
+vn -0.410871 0.903562 0.121433
+vn -0.497879 0.863247 0.083041
+vn -0.402112 0.909543 0.104892
+vn -0.427564 0.890866 0.153386
+vn -0.517899 0.844905 0.133702
+vn -0.422285 0.896268 0.135441
+vn -0.437483 0.879177 0.188665
+vn -0.527451 0.828516 0.187933
+vn -0.435835 0.883847 0.169683
+vn -0.440230 0.869076 0.225562
+vn -0.526139 0.814722 0.243690
+vn -0.442305 0.872738 0.206580
+vn -0.435743 0.860866 0.262642
+vn -0.513993 0.804010 0.298898
+vn -0.441420 0.863430 0.244118
+vn -0.424116 0.854854 0.298837
+vn -0.491531 0.796838 0.351238
+vn -0.433210 0.856166 0.281533
+vn -0.405896 0.851314 0.332408
+vn -0.459578 0.793481 0.398938
+vn -0.418012 0.851314 0.316996
+vn -0.381695 0.850398 0.362072
+vn -0.419385 0.794031 0.439985
+vn -0.396374 0.849025 0.349284
+vn -0.352489 0.852077 0.386853
+vn -0.372448 0.798517 0.472884
+vn -0.369182 0.849422 0.377026
+vn -0.319346 0.856319 0.405805
+vn -0.320688 0.806696 0.496353
+vn -0.337382 0.852443 0.399335
+vn -0.283670 0.862972 0.418073
+vn -0.265908 0.818323 0.509476
+vn -0.302316 0.857997 0.415235
+vn -0.246681 0.871761 0.423231
+vn -0.210395 0.832911 0.511795
+vn -0.265297 0.865841 0.424116
+vn -0.209876 0.882351 0.421155
+vn -0.156194 0.849940 0.503159
+vn -0.227729 0.875729 0.425672
+vn -0.190985 0.887234 0.419843
+vn -0.174657 0.894375 0.411786
+vn 0.061892 0.835566 0.545854
+vn 0.103763 0.852840 0.511704
+vn 0.137455 0.871761 0.470199
+vn 0.161718 0.891598 0.422895
+vn 0.175573 0.911588 0.371654
+vn 0.178472 0.930967 0.318430
+vn 0.170385 0.948973 0.265267
+vn 0.151555 0.964934 0.214179
+vn 0.122715 0.978240 0.167180
+vn 0.084994 0.988372 0.126041
+vn 0.039827 0.994903 0.092349
+vn -0.011017 0.997650 0.067446
+vn -0.065645 0.996460 0.052187
+vn -0.121921 0.991394 0.047273
+vn -0.177709 0.982635 0.052797
+vn -0.230811 0.970550 0.068606
+vn -0.390851 0.897061 0.206030
+vn -0.299081 0.932707 0.201392
+vn -0.296548 0.929136 0.220740
+vn -0.308664 0.919218 0.244331
+vn -0.325114 0.911405 0.252174
+vn -0.369396 0.914640 0.164190
+vn -0.387707 0.842158 0.374676
+vn -0.368877 0.826197 0.425764
+vn -0.340068 0.812922 0.472762
+vn -0.302316 0.802789 0.513871
+vn -0.257149 0.796228 0.547563
+vn -0.206275 0.793512 0.572497
+vn -0.151646 0.794702 0.587725
+vn -0.095370 0.799768 0.592669
+vn -0.039613 0.808496 0.587115
+vn -0.143040 0.936674 0.319590
+vn -0.061800 0.907254 0.415937
+vn -0.046022 0.912900 0.405530
+vn -0.032807 0.919218 0.392315
+vn -0.022675 0.925993 0.376782
+vn -0.016022 0.932951 0.359569
+vn -0.013092 0.939817 0.341350
+vn -0.014008 0.946379 0.322733
+vn -0.018708 0.952300 0.304544
+vn -0.027039 0.957396 0.287393
+vn -0.038667 0.961486 0.272011
+vn -0.053163 0.964415 0.258919
+vn -0.069918 0.966033 0.248695
+vn -0.088351 0.966308 0.241676
+vn -0.107730 0.965209 0.238136
+vn -0.127323 0.962798 0.238258
+vn -0.146336 0.959166 0.241981
+vn -0.321970 0.881527 0.345286
+vn -0.380688 0.869778 0.313913
+vn -0.301431 0.917783 0.258431
+vn -0.284585 0.927305 0.243080
+vn -0.281472 0.934080 0.219550
+vn -0.277902 0.953856 0.113437
+vn -0.221809 0.963469 0.149876
+vn -0.207160 0.909391 0.360607
+vn -0.198828 0.904294 0.377728
+vn -0.187201 0.900204 0.393139
+vn -0.172704 0.897275 0.406201
+vn -0.155950 0.895657 0.416456
+vn -0.137516 0.895383 0.423475
+vn -0.118137 0.896481 0.426984
+vn -0.098544 0.898892 0.426893
+vn -0.079531 0.902524 0.423139
+vn 0.013459 0.820582 0.571306
+vn 0.003998 0.876949 0.480544
+vn 0.086428 0.842189 0.532151
+vn -0.010376 0.870479 0.492050
+vn 0.040468 0.825770 0.562487
+vn 0.032319 0.888638 0.457442
+vn 0.124882 0.860622 0.493637
+vn 0.020692 0.881588 0.471511
+vn 0.055086 0.901425 0.429395
+vn 0.154393 0.880367 0.448439
+vn 0.046724 0.894070 0.445448
+vn 0.071505 0.914823 0.397382
+vn 0.173772 0.900632 0.398267
+vn 0.066713 0.907407 0.414838
+vn 0.080874 0.928343 0.362774
+vn 0.182318 0.920652 0.345103
+vn 0.079836 0.921140 0.380871
+vn 0.082827 0.941435 0.326762
+vn 0.179662 0.939695 0.290933
+vn 0.085604 0.934690 0.344920
+vn 0.077364 0.953642 0.290780
+vn 0.165960 0.956999 0.237861
+vn 0.083834 0.947600 0.308237
+vn 0.064638 0.964415 0.256294
+vn 0.141697 0.971892 0.187964
+vn 0.074526 0.959288 0.272286
+vn 0.045106 0.973418 0.224494
+vn 0.107822 0.983795 0.143101
+vn 0.058107 0.969359 0.238533
+vn 0.019623 0.980255 0.196661
+vn 0.065615 0.992279 0.105014
+vn 0.035188 0.977447 0.208136
+vn -0.010895 0.984680 0.173894
+vn 0.016724 0.997009 0.075167
+vn 0.006623 0.983184 0.182379
+vn -0.045289 0.986541 0.157018
+vn -0.036927 0.997803 0.054720
+vn -0.026460 0.986389 0.162175
+vn -0.082247 0.985717 0.146733
+vn -0.093387 0.994629 0.044465
+vn -0.062777 0.986938 0.148350
+vn -0.120304 0.982299 0.143406
+vn -0.150426 0.987579 0.044771
+vn -0.101016 0.984771 0.141392
+vn -0.157994 0.976409 0.147160
+vn -0.205847 0.976989 0.055635
+vn -0.139622 0.980010 0.141606
+vn -0.193915 0.968230 0.157842
+vn -0.367077 0.919828 0.138340
+vn -0.177129 0.972839 0.148961
+vn -0.445692 0.840266 0.308634
+vn -0.332926 0.919370 0.209418
+vn -0.369915 0.897885 0.238655
+vn -0.323679 0.916166 0.236274
+vn -0.296152 0.931211 0.212287
+vn -0.373791 0.889798 0.261757
+vn -0.303201 0.925413 0.227180
+vn -0.302530 0.924284 0.232643
+vn -0.308603 0.923124 0.229255
+vn -0.307169 0.922178 0.234931
+vn -0.315043 0.915769 0.249153
+vn -0.303903 0.924039 0.231819
+vn -0.310923 0.926603 0.211371
+vn -0.336894 0.916135 0.217170
+vn -0.308420 0.923276 0.228919
+vn -0.314097 0.947935 0.051973
+vn -0.409345 0.885220 0.220801
+vn -0.316691 0.936521 0.150365
+vn -0.300027 0.881405 0.364788
+vn -0.383038 0.831996 0.401288
+vn -0.333079 0.928007 0.166845
+vn -0.287301 0.870602 0.399335
+vn -0.358776 0.817103 0.451186
+vn -0.297067 0.874691 0.382916
+vn -0.267800 0.861629 0.431104
+vn -0.324900 0.805170 0.496048
+vn -0.280648 0.864589 0.416700
+vn -0.242286 0.854762 0.458937
+vn -0.282693 0.796686 0.534135
+vn -0.257729 0.856533 0.447096
+vn -0.211737 0.850337 0.481704
+vn -0.233802 0.791955 0.563982
+vn -0.229163 0.850795 0.472854
+vn -0.177343 0.848506 0.498581
+vn -0.180120 0.791192 0.584429
+vn -0.196051 0.847591 0.493057
+vn -0.140385 0.849300 0.508866
+vn -0.123661 0.794366 0.594684
+vn -0.159703 0.847072 0.506882
+vn -0.102329 0.852718 0.512192
+vn -0.066622 0.801386 0.594378
+vn -0.121494 0.849208 0.513840
+vn -0.064638 0.858638 0.508469
+vn -0.011200 0.812006 0.583514
+vn -0.082888 0.853969 0.513627
+vn -0.045381 0.861141 0.506272
+vn -0.028718 0.866817 0.497757
+usemtl Eye-White
+s 1
+f 7589//5144 7588//5145 7596//5146
+f 7590//5147 7589//5144 7597//5148
+f 7591//5149 7590//5147 7597//5148
+f 7587//5150 7586//5151 7593//5152
+f 7588//5145 7587//5150 7595//5153
+f 7596//5146 7595//5153 7602//5154
+f 7597//5148 7596//5146 7603//5155
+f 7598//5156 7597//5148 7604//5157
+f 7594//5158 7593//5152 7601//5159
+f 7595//5153 7594//5158 7602//5154
+f 7602//5154 7601//5159 7608//5160
+f 7603//5155 7602//5154 7609//5161
+f 7604//5157 7603//5155 7611//5162
+f 7605//5163 7604//5157 7611//5162
+f 7601//5159 7600//5164 7608//5160
+f 7608//5160 7607//5165 7615//5166
+f 7609//5161 7608//5160 7616//5167
+f 7610//5168 7609//5161 7617//5169
+f 7611//5162 7610//5168 7618//5170
+f 7611//5162 7618//5170 7619//5171
+f 7619//5171 7618//5170 7625//5172
+f 7615//5166 7614//5173 7621//5174
+f 7616//5167 7615//5166 7623//5175
+f 7617//5169 7616//5167 7623//5175
+f 7618//5170 7617//5169 7625//5172
+f 7624//5176 7623//5175 7630//5177
+f 7625//5172 7624//5176 7632//5178
+f 7625//5172 7632//5178 7633//5179
+f 7622//5180 7621//5174 7629//5181
+f 7623//5175 7622//5180 7630//5177
+f 7630//5177 7629//5181 7636//5182
+f 7631//5183 7630//5177 7638//5184
+f 7632//5178 7631//5183 7638//5184
+f 7633//5179 7632//5178 7639//5185
+f 7629//5181 7628//5186 7636//5182
+f 7636//5182 7635//5187 7643//5188
+f 7637//5189 7636//5182 7643//5188
+f 7638//5184 7637//5189 7645//5190
+f 7639//5185 7638//5184 7645//5190
+f 7640//5191 7639//5185 7646//5192
+f 7647//5193 7646//5192 7653//5194
+f 7643//5188 7642//5195 7649//5196
+f 7644//5197 7643//5188 7651//5198
+f 7645//5190 7644//5197 7652//5199
+f 7646//5192 7645//5190 7653//5194
+f 7652//5199 7651//5198 7658//5200
+f 7653//5194 7652//5199 7660//5201
+f 7653//5194 7660//5201 7661//5202
+f 7650//5203 7649//5196 7656//5204
+f 7651//5198 7650//5203 7658//5200
+f 7658//5200 7657//5205 7664//5206
+f 7659//5207 7658//5200 7666//5208
+f 7660//5201 7659//5207 7667//5209
+f 7660//5201 7667//5209 7668//5210
+f 7657//5205 7656//5204 7663//5211
+f 7664//5206 7663//5211 7671//5212
+f 7665//5213 7664//5206 7672//5214
+f 7666//5208 7665//5213 7673//5215
+f 7667//5209 7666//5208 7673//5215
+f 7667//5209 7674//5216 7675//5217
+f 7675//5217 7674//5216 7681//5218
+f 7671//5212 7670//5219 7677//5220
+f 7672//5214 7671//5212 7679//5221
+f 7673//5215 7672//5214 7680//5222
+f 7674//5216 7673//5215 7681//5218
+f 7681//5218 7680//5222 7688//5223
+f 7681//5218 7688//5223 7689//5224
+f 7678//5225 7677//5220 7685//5226
+f 7679//5221 7678//5225 7686//5227
+f 7680//5222 7679//5221 7687//5228
+f 7686//5227 7685//5226 7692//5229
+f 7687//5228 7686//5227 7693//5230
+f 7688//5223 7687//5228 7695//5231
+f 7688//5223 7695//5231 7696//5232
+f 7685//5226 7684//5233 7691//5234
+f 7692//5229 7691//5234 7699//5235
+f 7693//5230 7692//5229 7700//5236
+f 7694//5237 7693//5230 7701//5238
+f 7695//5231 7694//5237 7702//5239
+f 7696//5232 7695//5231 7702//5239
+f 7703//5240 7702//5239 7709//5241
+f 7699//5235 7698//5242 7706//5243
+f 7700//5236 7699//5235 7707//5244
+f 7701//5238 7700//5236 7707//5244
+f 7702//5239 7701//5238 7709//5241
+f 7709//5241 7708//5245 7716//5246
+f 7709//5241 7716//5246 7717//5247
+f 7706//5243 7705//5248 7712//5249
+f 7707//5244 7706//5243 7714//5250
+f 7708//5245 7707//5244 7715//5251
+f 7714//5250 7713//5252 7721//5253
+f 7715//5251 7714//5250 7721//5253
+f 7716//5246 7715//5251 7723//5254
+f 7717//5247 7716//5246 7723//5254
+f 7713//5252 7712//5249 7720//5255
+f 7720//5255 7719//5256 7727//5257
+f 7721//5253 7720//5255 7727//5257
+f 7722//5258 7721//5253 7729//5259
+f 7723//5254 7722//5258 7730//5260
+f 7723//5254 7730//5260 7731//5261
+f 7731//5261 7730//5260 7737//5262
+f 7727//5257 7726//5263 7734//5264
+f 7728//5265 7727//5257 7735//5266
+f 7729//5259 7728//5265 7736//5267
+f 7730//5260 7729//5259 7736//5267
+f 7737//5262 7736//5267 7745//5268
+f 7738//5269 7737//5262 7745//5268
+f 7734//5264 7733//5270 7741//5271
+f 7735//5266 7734//5264 7742//5272
+f 7736//5267 7735//5266 7743//5273
+f 7744//5274 7743//5273 7751//5275
+f 7745//5268 7744//5274 7752//5276
+f 7745//5268 7752//5276 7753//5277
+f 7742//5272 7741//5271 7748//5278
+f 7743//5273 7742//5272 7750//5279
+f 7749//5280 7748//5278 7755//5281
+f 7750//5279 7749//5280 7757//5282
+f 7751//5275 7750//5279 7757//5282
+f 7752//5276 7751//5275 7759//5283
+f 7753//5277 7752//5276 7759//5283
+f 7759//5283 7766//5284 7767//5285
+f 7756//5286 7755//5281 7762//5287
+f 7757//5282 7756//5286 7764//5288
+f 7758//5289 7757//5282 7765//5290
+f 7759//5283 7758//5289 7766//5284
+f 7766//5284 7765//5290 7773//5291
+f 7766//5284 7773//5291 7774//5292
+f 7763//5293 7762//5287 7769//5294
+f 7764//5288 7763//5293 7771//5295
+f 7765//5290 7764//5288 7772//5296
+f 7772//5296 7771//5295 7778//5297
+f 7773//5291 7772//5296 7780//5298
+f 7774//5292 7773//5291 7780//5298
+f 7770//5299 7769//5294 7776//5300
+f 7771//5295 7770//5299 7777//5301
+f 7777//5301 7776//5300 7783//5302
+f 7778//5297 7777//5301 7785//5303
+f 7779//5304 7778//5297 7785//5303
+f 7780//5298 7779//5304 7786//5305
+f 7781//5306 7780//5298 7787//5307
+f 7787//5307 7794//5308 7795//5309
+f 7784//5310 7783//5302 7790//5311
+f 7785//5303 7784//5310 7792//5312
+f 7786//5305 7785//5303 7793//5313
+f 7787//5307 7786//5305 7793//5313
+f 7794//5308 7793//5313 7801//5314
+f 7794//5308 7801//5314 7802//5315
+f 7791//5316 7790//5311 7797//5317
+f 7792//5312 7791//5316 7799//5318
+f 7793//5313 7792//5312 7800//5319
+f 7800//5319 7799//5318 7806//5320
+f 7801//5314 7800//5319 7808//5321
+f 7802//5315 7801//5314 7808//5321
+f 7798//5322 7797//5317 7804//5323
+f 7799//5318 7798//5322 7806//5320
+f 7806//5320 7805//5324 7587//5150
+f 7807//5325 7806//5320 7588//5145
+f 7808//5321 7807//5325 7589//5144
+f 7808//5321 7590//5147 7591//5149
+f 7805//5324 7804//5323 7586//5151
+f 7588//5145 7595//5153 7596//5146
+f 7589//5144 7596//5146 7597//5148
+f 7815//5326 7591//5149 7597//5148
+f 7598//5156 7815//5326 7597//5148
+f 7594//5158 7587//5150 7593//5152
+f 7587//5150 7594//5158 7595//5153
+f 7603//5155 7596//5146 7602//5154
+f 7604//5157 7597//5148 7603//5155
+f 7818//5327 7598//5156 7604//5157
+f 7605//5163 7818//5327 7604//5157
+f 7593//5152 7600//5164 7601//5159
+f 7594//5158 7601//5159 7602//5154
+f 7609//5161 7602//5154 7608//5160
+f 7610//5168 7603//5155 7609//5161
+f 7603//5155 7610//5168 7611//5162
+f 7822//5328 7605//5163 7611//5162
+f 7612//5329 7822//5328 7611//5162
+f 7600//5164 7607//5165 7608//5160
+f 7607//5165 7614//5173 7615//5166
+f 7608//5160 7615//5166 7616//5167
+f 7609//5161 7616//5167 7617//5169
+f 7610//5168 7617//5169 7618//5170
+f 7612//5329 7611//5162 7824//5330
+f 7611//5162 7619//5171 7824//5330
+f 7827//5331 7619//5171 7625//5172
+f 7626//5332 7827//5331 7625//5172
+f 7622//5180 7615//5166 7621//5174
+f 7615//5166 7622//5180 7623//5175
+f 7624//5176 7617//5169 7623//5175
+f 7617//5169 7624//5176 7625//5172
+f 7631//5183 7624//5176 7630//5177
+f 7624//5176 7631//5183 7632//5178
+f 7626//5332 7625//5172 7830//5333
+f 7625//5172 7633//5179 7830//5333
+f 7621//5174 7628//5186 7629//5181
+f 7622//5180 7629//5181 7630//5177
+f 7637//5189 7630//5177 7636//5182
+f 7630//5177 7637//5189 7638//5184
+f 7639//5185 7632//5178 7638//5184
+f 7834//5334 7633//5179 7639//5185
+f 7640//5191 7834//5334 7639//5185
+f 7628//5186 7635//5187 7636//5182
+f 7635//5187 7642//5195 7643//5188
+f 7644//5197 7637//5189 7643//5188
+f 7637//5189 7644//5197 7645//5190
+f 7646//5192 7639//5185 7645//5190
+f 7836//5335 7640//5191 7646//5192
+f 7647//5193 7836//5335 7646//5192
+f 7839//5336 7647//5193 7653//5194
+f 7654//5337 7839//5336 7653//5194
+f 7650//5203 7643//5188 7649//5196
+f 7643//5188 7650//5203 7651//5198
+f 7644//5197 7651//5198 7652//5199
+f 7645//5190 7652//5199 7653//5194
+f 7659//5207 7652//5199 7658//5200
+f 7652//5199 7659//5207 7660//5201
+f 7654//5337 7653//5194 7842//5338
+f 7653//5194 7661//5202 7842//5338
+f 7657//5205 7650//5203 7656//5204
+f 7650//5203 7657//5205 7658//5200
+f 7665//5213 7658//5200 7664//5206
+f 7658//5200 7665//5213 7666//5208
+f 7659//5207 7666//5208 7667//5209
+f 7661//5202 7660//5201 7846//5339
+f 7660//5201 7668//5210 7846//5339
+f 7664//5206 7657//5205 7663//5211
+f 7663//5211 7670//5219 7671//5212
+f 7664//5206 7671//5212 7672//5214
+f 7665//5213 7672//5214 7673//5215
+f 7674//5216 7667//5209 7673//5215
+f 7668//5210 7667//5209 7848//5340
+f 7667//5209 7675//5217 7848//5340
+f 7851//5341 7675//5217 7681//5218
+f 7682//5342 7851//5341 7681//5218
+f 7678//5225 7671//5212 7677//5220
+f 7671//5212 7678//5225 7679//5221
+f 7672//5214 7679//5221 7680//5222
+f 7673//5215 7680//5222 7681//5218
+f 7680//5222 7687//5228 7688//5223
+f 7682//5342 7681//5218 7854//5343
+f 7681//5218 7689//5224 7854//5343
+f 7677//5220 7684//5233 7685//5226
+f 7678//5225 7685//5226 7686//5227
+f 7679//5221 7686//5227 7687//5228
+f 7693//5230 7686//5227 7692//5229
+f 7694//5237 7687//5228 7693//5230
+f 7687//5228 7694//5237 7695//5231
+f 7689//5224 7688//5223 7857//5344
+f 7688//5223 7696//5232 7857//5344
+f 7692//5229 7685//5226 7691//5234
+f 7691//5234 7698//5242 7699//5235
+f 7692//5229 7699//5235 7700//5236
+f 7693//5230 7700//5236 7701//5238
+f 7694//5237 7701//5238 7702//5239
+f 7860//5345 7696//5232 7702//5239
+f 7703//5240 7860//5345 7702//5239
+f 7863//5346 7703//5240 7709//5241
+f 7710//5347 7863//5346 7709//5241
+f 7698//5242 7705//5248 7706//5243
+f 7699//5235 7706//5243 7707//5244
+f 7708//5245 7701//5238 7707//5244
+f 7701//5238 7708//5245 7709//5241
+f 7708//5245 7715//5251 7716//5246
+f 7710//5347 7709//5241 7866//5348
+f 7709//5241 7717//5247 7866//5348
+f 7713//5252 7706//5243 7712//5249
+f 7706//5243 7713//5252 7714//5250
+f 7707//5244 7714//5250 7715//5251
+f 7713//5252 7720//5255 7721//5253
+f 7722//5258 7715//5251 7721//5253
+f 7715//5251 7722//5258 7723//5254
+f 7869//5349 7717//5247 7723//5254
+f 7724//5350 7869//5349 7723//5254
+f 7712//5249 7719//5256 7720//5255
+f 7719//5256 7726//5263 7727//5257
+f 7728//5265 7721//5253 7727//5257
+f 7721//5253 7728//5265 7729//5259
+f 7722//5258 7729//5259 7730//5260
+f 7724//5350 7723//5254 7872//5351
+f 7723//5254 7731//5261 7872//5351
+f 7876//5352 7731//5261 7737//5262
+f 7738//5269 7876//5352 7737//5262
+f 7726//5263 7733//5270 7734//5264
+f 7727//5257 7734//5264 7735//5266
+f 7728//5265 7735//5266 7736//5267
+f 7737//5262 7730//5260 7736//5267
+f 7736//5267 7744//5274 7745//5268
+f 7879//5353 7738//5269 7745//5268
+f 7746//5354 7879//5353 7745//5268
+f 7742//5272 7734//5264 7741//5271
+f 7743//5273 7735//5266 7742//5272
+f 7744//5274 7736//5267 7743//5273
+f 7743//5273 7750//5279 7751//5275
+f 7744//5274 7751//5275 7752//5276
+f 7746//5354 7745//5268 7882//5355
+f 7745//5268 7753//5277 7882//5355
+f 7749//5280 7742//5272 7748//5278
+f 7742//5272 7749//5280 7750//5279
+f 7756//5286 7749//5280 7755//5281
+f 7749//5280 7756//5286 7757//5282
+f 7758//5289 7751//5275 7757//5282
+f 7751//5275 7758//5289 7759//5283
+f 7886//5356 7753//5277 7759//5283
+f 7760//5357 7886//5356 7759//5283
+f 7760//5357 7759//5283 7888//5358
+f 7759//5283 7767//5285 7888//5358
+f 7763//5293 7756//5286 7762//5287
+f 7756//5286 7763//5293 7764//5288
+f 7757//5282 7764//5288 7765//5290
+f 7758//5289 7765//5290 7766//5284
+f 7765//5290 7772//5296 7773//5291
+f 7767//5285 7766//5284 7891//5359
+f 7766//5284 7774//5292 7891//5359
+f 7770//5299 7763//5293 7769//5294
+f 7763//5293 7770//5299 7771//5295
+f 7764//5288 7771//5295 7772//5296
+f 7779//5304 7772//5296 7778//5297
+f 7772//5296 7779//5304 7780//5298
+f 7894//5360 7774//5292 7780//5298
+f 7781//5306 7894//5360 7780//5298
+f 7777//5301 7770//5299 7776//5300
+f 7778//5297 7771//5295 7777//5301
+f 7784//5310 7777//5301 7783//5302
+f 7777//5301 7784//5310 7785//5303
+f 7786//5305 7779//5304 7785//5303
+f 7787//5307 7780//5298 7786//5305
+f 7898//5361 7781//5306 7787//5307
+f 7788//5362 7898//5361 7787//5307
+f 7788//5362 7787//5307 7900//5363
+f 7787//5307 7795//5309 7900//5363
+f 7791//5316 7784//5310 7790//5311
+f 7784//5310 7791//5316 7792//5312
+f 7785//5303 7792//5312 7793//5313
+f 7794//5308 7787//5307 7793//5313
+f 7793//5313 7800//5319 7801//5314
+f 7795//5309 7794//5308 7903//5364
+f 7794//5308 7802//5315 7903//5364
+f 7798//5322 7791//5316 7797//5317
+f 7791//5316 7798//5322 7799//5318
+f 7792//5312 7799//5318 7800//5319
+f 7807//5325 7800//5319 7806//5320
+f 7800//5319 7807//5325 7808//5321
+f 7906//5365 7802//5315 7808//5321
+f 7809//5366 7906//5365 7808//5321
+f 7805//5324 7798//5322 7804//5323
+f 7798//5322 7805//5324 7806//5320
+f 7588//5145 7806//5320 7587//5150
+f 7589//5144 7807//5325 7588//5145
+f 7590//5147 7808//5321 7589//5144
+f 7809//5366 7808//5321 7940//5367
+f 7808//5321 7591//5149 7940//5367
+f 7587//5150 7805//5324 7586//5151
+usemtl Material
+f 7554//5368 7428//5369 7363//5370
+f 7555//5371 7431//5372 7365//5373
+f 7556//5374 7435//5375 7367//5376
+f 7557//5377 7437//5378 7369//5379
+f 7558//5380 7440//5381 7371//5382
+f 7559//5383 7443//5384 7373//5385
+f 7560//5386 7447//5387 7375//5388
+f 7561//5389 7449//5390 7377//5391
+f 7562//5392 7452//5393 7379//5394
+f 7563//5395 7455//5396 7381//5397
+f 7564//5398 7459//5399 7383//5400
+f 7565//5401 7461//5402 7385//5403
+f 7566//5404 7464//5405 7387//5406
+f 7567//5407 7467//5408 7389//5409
+f 7568//5410 7470//5411 7391//5412
+f 7569//5413 7473//5414 7393//5415
+f 7570//5416 7476//5417 7395//5418
+f 7571//5419 7479//5420 7397//5421
+f 7572//5422 7482//5423 7399//5424
+f 7573//5425 7485//5426 7401//5427
+f 7574//5428 7489//5429 7403//5430
+f 7575//5431 7492//5432 7406//5433
+f 7576//5434 7495//5435 7408//5436
+f 7577//5437 7499//5438 7410//5439
+f 7578//5440 7501//5441 7412//5442
+f 7579//5443 7504//5444 7414//5445
+f 7580//5446 7507//5447 7416//5448
+f 7581//5449 7511//5450 7418//5451
+f 7582//5452 7513//5453 7420//5454
+f 7583//5455 7516//5456 7422//5457
+f 7584//5458 7519//5459 7424//5460
+f 7405//5461 7521//5462 7522//5463
+f 7405//5461 7522//5463 7523//5464
+f 7405//5461 7523//5464 7524//5465
+f 7405//5461 7524//5465 7525//5466
+f 7405//5461 7525//5466 7526//5467
+f 7405//5461 7526//5467 7527//5468
+f 7405//5461 7527//5468 7528//5469
+f 7405//5461 7528//5469 7529//5470
+f 7405//5461 7529//5470 7530//5471
+f 7405//5461 7530//5471 7531//5472
+f 7405//5461 7531//5472 7532//5473
+f 7405//5461 7532//5473 7533//5474
+f 7405//5461 7533//5474 7534//5475
+f 7405//5461 7534//5475 7535//5476
+f 7405//5461 7535//5476 7536//5477
+f 7405//5461 7536//5477 7537//5478
+f 7405//5461 7537//5478 7538//5479
+f 7405//5461 7538//5479 7539//5480
+f 7405//5461 7539//5480 7540//5481
+f 7405//5461 7540//5481 7541//5482
+f 7405//5461 7541//5482 7488//5483
+f 7405//5461 7488//5483 7542//5484
+f 7405//5461 7542//5484 7543//5485
+f 7405//5461 7543//5485 7544//5486
+f 7405//5461 7544//5486 7545//5487
+f 7405//5461 7545//5487 7546//5488
+f 7405//5461 7546//5488 7547//5489
+f 7405//5461 7547//5489 7548//5490
+f 7405//5461 7548//5490 7549//5491
+f 7405//5461 7549//5491 7550//5492
+f 7405//5461 7550//5492 7551//5493
+f 7405//5461 7551//5493 7521//5462
+f 7585//5494 7553//5495 7361//5496
+f 7429//5497 7554//5368 7427//5498
+f 7362//5499 7426//5500 7429//5497
+f 7426//5500 7361//5496 7554//5368
+f 7432//5501 7555//5371 7430//5502
+f 7364//5503 7427//5498 7432//5501
+f 7427//5498 7363//5370 7555//5371
+f 7434//5504 7556//5374 7433//5505
+f 7366//5506 7430//5502 7434//5504
+f 7430//5502 7365//5373 7556//5374
+f 7438//5507 7557//5377 7436//5508
+f 7368//5509 7433//5505 7438//5507
+f 7433//5505 7367//5376 7557//5377
+f 7441//5510 7558//5380 7439//5511
+f 7370//5512 7436//5508 7441//5510
+f 7436//5508 7369//5379 7558//5380
+f 7444//5513 7559//5383 7442//5514
+f 7372//5515 7439//5511 7444//5513
+f 7439//5511 7371//5382 7559//5383
+f 7446//5516 7560//5386 7445//5517
+f 7374//5518 7442//5514 7446//5516
+f 7442//5514 7373//5385 7560//5386
+f 7450//5519 7561//5389 7448//5520
+f 7376//5521 7445//5517 7450//5519
+f 7445//5517 7375//5388 7561//5389
+f 7453//5522 7562//5392 7451//5523
+f 7378//5524 7448//5520 7453//5522
+f 7448//5520 7377//5391 7562//5392
+f 7456//5525 7563//5395 7454//5526
+f 7380//5527 7451//5523 7456//5525
+f 7451//5523 7379//5394 7563//5395
+f 7458//5528 7564//5398 7457//5529
+f 7382//5530 7454//5526 7458//5528
+f 7454//5526 7381//5397 7564//5398
+f 7462//5531 7565//5401 7460//5532
+f 7384//5533 7457//5529 7462//5531
+f 7457//5529 7383//5400 7565//5401
+f 7465//5534 7566//5404 7463//5535
+f 7386//5536 7460//5532 7465//5534
+f 7460//5532 7385//5403 7566//5404
+f 7468//5537 7567//5407 7466//5538
+f 7388//5539 7463//5535 7468//5537
+f 7463//5535 7387//5406 7567//5407
+f 7471//5540 7568//5410 7469//5541
+f 7390//5542 7466//5538 7471//5540
+f 7466//5538 7389//5409 7568//5410
+f 7474//5543 7569//5413 7472//5544
+f 7392//5545 7469//5541 7474//5543
+f 7469//5541 7391//5412 7569//5413
+f 7477//5546 7570//5416 7475//5547
+f 7394//5548 7472//5544 7477//5546
+f 7472//5544 7393//5415 7570//5416
+f 7480//5549 7571//5419 7478//5550
+f 7396//5551 7475//5547 7480//5549
+f 7475//5547 7395//5418 7571//5419
+f 7483//5552 7572//5422 7481//5553
+f 7398//5554 7478//5550 7483//5552
+f 7478//5550 7397//5421 7572//5422
+f 7486//5555 7573//5425 7484//5556
+f 7400//5557 7481//5553 7486//5555
+f 7481//5553 7399//5424 7573//5425
+f 7490//5558 7574//5428 7487//5559
+f 7402//5560 7484//5556 7490//5558
+f 7484//5556 7401//5427 7574//5428
+f 7493//5561 7575//5431 7491//5562
+f 7404//5563 7487//5559 7493//5561
+f 7487//5559 7403//5430 7575//5431
+f 7496//5564 7576//5434 7494//5565
+f 7407//5566 7491//5562 7496//5564
+f 7491//5562 7406//5433 7576//5434
+f 7498//5567 7577//5437 7497//5568
+f 7409//5569 7494//5565 7498//5567
+f 7494//5565 7408//5436 7577//5437
+f 7502//5570 7578//5440 7500//5571
+f 7411//5572 7497//5568 7502//5570
+f 7497//5568 7410//5439 7578//5440
+f 7505//5573 7579//5443 7503//5574
+f 7413//5575 7500//5571 7505//5573
+f 7500//5571 7412//5442 7579//5443
+f 7508//5576 7580//5446 7506//5577
+f 7415//5578 7503//5574 7508//5576
+f 7503//5574 7414//5445 7580//5446
+f 7510//5579 7581//5449 7509//5580
+f 7417//5581 7506//5577 7510//5579
+f 7506//5577 7416//5448 7581//5449
+f 7514//5582 7582//5452 7512//5583
+f 7419//5584 7509//5580 7514//5582
+f 7509//5580 7418//5451 7582//5452
+f 7517//5585 7583//5455 7515//5586
+f 7421//5587 7512//5583 7517//5585
+f 7512//5583 7420//5454 7583//5455
+f 7520//5588 7584//5458 7518//5589
+f 7423//5590 7515//5586 7520//5588
+f 7515//5586 7422//5457 7584//5458
+f 7522//5463 7429//5497 7364//5503
+f 7522//5463 7521//5462 7429//5497
+f 7521//5462 7362//5499 7429//5497
+f 7523//5464 7432//5501 7366//5506
+f 7523//5464 7522//5463 7432//5501
+f 7522//5463 7364//5503 7432//5501
+f 7524//5465 7434//5504 7368//5509
+f 7524//5465 7523//5464 7434//5504
+f 7523//5464 7366//5506 7434//5504
+f 7525//5466 7438//5507 7370//5512
+f 7525//5466 7524//5465 7438//5507
+f 7524//5465 7368//5509 7438//5507
+f 7526//5467 7441//5510 7372//5515
+f 7526//5467 7525//5466 7441//5510
+f 7525//5466 7370//5512 7441//5510
+f 7527//5468 7444//5513 7374//5518
+f 7527//5468 7526//5467 7444//5513
+f 7526//5467 7372//5515 7444//5513
+f 7528//5469 7446//5516 7376//5521
+f 7528//5469 7527//5468 7446//5516
+f 7527//5468 7374//5518 7446//5516
+f 7529//5470 7450//5519 7378//5524
+f 7529//5470 7528//5469 7450//5519
+f 7528//5469 7376//5521 7450//5519
+f 7530//5471 7453//5522 7380//5527
+f 7530//5471 7529//5470 7453//5522
+f 7529//5470 7378//5524 7453//5522
+f 7531//5472 7456//5525 7382//5530
+f 7531//5472 7530//5471 7456//5525
+f 7530//5471 7380//5527 7456//5525
+f 7532//5473 7458//5528 7384//5533
+f 7532//5473 7531//5472 7458//5528
+f 7531//5472 7382//5530 7458//5528
+f 7533//5474 7462//5531 7386//5536
+f 7533//5474 7532//5473 7462//5531
+f 7532//5473 7384//5533 7462//5531
+f 7534//5475 7465//5534 7388//5539
+f 7534//5475 7533//5474 7465//5534
+f 7533//5474 7386//5536 7465//5534
+f 7535//5476 7468//5537 7390//5542
+f 7535//5476 7534//5475 7468//5537
+f 7534//5475 7388//5539 7468//5537
+f 7536//5477 7471//5540 7392//5545
+f 7536//5477 7535//5476 7471//5540
+f 7535//5476 7390//5542 7471//5540
+f 7537//5478 7474//5543 7394//5548
+f 7537//5478 7536//5477 7474//5543
+f 7536//5477 7392//5545 7474//5543
+f 7538//5479 7477//5546 7396//5551
+f 7538//5479 7537//5478 7477//5546
+f 7537//5478 7394//5548 7477//5546
+f 7539//5480 7480//5549 7398//5554
+f 7539//5480 7538//5479 7480//5549
+f 7538//5479 7396//5551 7480//5549
+f 7540//5481 7483//5552 7400//5557
+f 7540//5481 7539//5480 7483//5552
+f 7539//5480 7398//5554 7483//5552
+f 7541//5482 7486//5555 7402//5560
+f 7541//5482 7540//5481 7486//5555
+f 7540//5481 7400//5557 7486//5555
+f 7488//5483 7490//5558 7404//5563
+f 7488//5483 7541//5482 7490//5558
+f 7541//5482 7402//5560 7490//5558
+f 7542//5484 7493//5561 7407//5566
+f 7542//5484 7488//5483 7493//5561
+f 7488//5483 7404//5563 7493//5561
+f 7543//5485 7496//5564 7409//5569
+f 7543//5485 7542//5484 7496//5564
+f 7542//5484 7407//5566 7496//5564
+f 7544//5486 7498//5567 7411//5572
+f 7544//5486 7543//5485 7498//5567
+f 7543//5485 7409//5569 7498//5567
+f 7545//5487 7502//5570 7413//5575
+f 7545//5487 7544//5486 7502//5570
+f 7544//5486 7411//5572 7502//5570
+f 7546//5488 7505//5573 7415//5578
+f 7546//5488 7545//5487 7505//5573
+f 7545//5487 7413//5575 7505//5573
+f 7547//5489 7508//5576 7417//5581
+f 7547//5489 7546//5488 7508//5576
+f 7546//5488 7415//5578 7508//5576
+f 7548//5490 7510//5579 7419//5584
+f 7548//5490 7547//5489 7510//5579
+f 7547//5489 7417//5581 7510//5579
+f 7549//5491 7514//5582 7421//5587
+f 7549//5491 7548//5490 7514//5582
+f 7548//5490 7419//5584 7514//5582
+f 7550//5492 7517//5585 7423//5590
+f 7550//5492 7549//5491 7517//5585
+f 7549//5491 7421//5587 7517//5585
+f 7551//5493 7520//5588 7425//5591
+f 7551//5493 7550//5492 7520//5588
+f 7550//5492 7423//5590 7520//5588
+f 7521//5462 7552//5592 7362//5499
+f 7521//5462 7551//5493 7552//5592
+f 7551//5493 7425//5591 7552//5592
+f 7552//5592 7585//5494 7426//5500
+f 7425//5591 7518//5589 7552//5592
+f 7518//5589 7424//5460 7585//5494
+f 7427//5498 7554//5368 7363//5370
+f 7430//5502 7555//5371 7365//5373
+f 7433//5505 7556//5374 7367//5376
+f 7436//5508 7557//5377 7369//5379
+f 7439//5511 7558//5380 7371//5382
+f 7442//5514 7559//5383 7373//5385
+f 7445//5517 7560//5386 7375//5388
+f 7448//5520 7561//5389 7377//5391
+f 7451//5523 7562//5392 7379//5394
+f 7454//5526 7563//5395 7381//5397
+f 7457//5529 7564//5398 7383//5400
+f 7460//5532 7565//5401 7385//5403
+f 7463//5535 7566//5404 7387//5406
+f 7466//5538 7567//5407 7389//5409
+f 7469//5541 7568//5410 7391//5412
+f 7472//5544 7569//5413 7393//5415
+f 7475//5547 7570//5416 7395//5418
+f 7478//5550 7571//5419 7397//5421
+f 7481//5553 7572//5422 7399//5424
+f 7484//5556 7573//5425 7401//5427
+f 7487//5559 7574//5428 7403//5430
+f 7491//5562 7575//5431 7406//5433
+f 7494//5565 7576//5434 7408//5436
+f 7497//5568 7577//5437 7410//5439
+f 7500//5571 7578//5440 7412//5442
+f 7503//5574 7579//5443 7414//5445
+f 7506//5577 7580//5446 7416//5448
+f 7509//5580 7581//5449 7418//5451
+f 7512//5583 7582//5452 7420//5454
+f 7515//5586 7583//5455 7422//5457
+f 7518//5589 7584//5458 7424//5460
+f 7426//5500 7585//5494 7361//5496
+f 7364//5503 7429//5497 7427//5498
+f 7426//5500 7554//5368 7429//5497
+f 7361//5496 7428//5369 7554//5368
+f 7366//5506 7432//5501 7430//5502
+f 7427//5498 7555//5371 7432//5501
+f 7363//5370 7431//5372 7555//5371
+f 7368//5509 7434//5504 7433//5505
+f 7430//5502 7556//5374 7434//5504
+f 7365//5373 7435//5375 7556//5374
+f 7370//5512 7438//5507 7436//5508
+f 7433//5505 7557//5377 7438//5507
+f 7367//5376 7437//5378 7557//5377
+f 7372//5515 7441//5510 7439//5511
+f 7436//5508 7558//5380 7441//5510
+f 7369//5379 7440//5381 7558//5380
+f 7374//5518 7444//5513 7442//5514
+f 7439//5511 7559//5383 7444//5513
+f 7371//5382 7443//5384 7559//5383
+f 7376//5521 7446//5516 7445//5517
+f 7442//5514 7560//5386 7446//5516
+f 7373//5385 7447//5387 7560//5386
+f 7378//5524 7450//5519 7448//5520
+f 7445//5517 7561//5389 7450//5519
+f 7375//5388 7449//5390 7561//5389
+f 7380//5527 7453//5522 7451//5523
+f 7448//5520 7562//5392 7453//5522
+f 7377//5391 7452//5393 7562//5392
+f 7382//5530 7456//5525 7454//5526
+f 7451//5523 7563//5395 7456//5525
+f 7379//5394 7455//5396 7563//5395
+f 7384//5533 7458//5528 7457//5529
+f 7454//5526 7564//5398 7458//5528
+f 7381//5397 7459//5399 7564//5398
+f 7386//5536 7462//5531 7460//5532
+f 7457//5529 7565//5401 7462//5531
+f 7383//5400 7461//5402 7565//5401
+f 7388//5539 7465//5534 7463//5535
+f 7460//5532 7566//5404 7465//5534
+f 7385//5403 7464//5405 7566//5404
+f 7390//5542 7468//5537 7466//5538
+f 7463//5535 7567//5407 7468//5537
+f 7387//5406 7467//5408 7567//5407
+f 7392//5545 7471//5540 7469//5541
+f 7466//5538 7568//5410 7471//5540
+f 7389//5409 7470//5411 7568//5410
+f 7394//5548 7474//5543 7472//5544
+f 7469//5541 7569//5413 7474//5543
+f 7391//5412 7473//5414 7569//5413
+f 7396//5551 7477//5546 7475//5547
+f 7472//5544 7570//5416 7477//5546
+f 7393//5415 7476//5417 7570//5416
+f 7398//5554 7480//5549 7478//5550
+f 7475//5547 7571//5419 7480//5549
+f 7395//5418 7479//5420 7571//5419
+f 7400//5557 7483//5552 7481//5553
+f 7478//5550 7572//5422 7483//5552
+f 7397//5421 7482//5423 7572//5422
+f 7402//5560 7486//5555 7484//5556
+f 7481//5553 7573//5425 7486//5555
+f 7399//5424 7485//5426 7573//5425
+f 7404//5563 7490//5558 7487//5559
+f 7484//5556 7574//5428 7490//5558
+f 7401//5427 7489//5429 7574//5428
+f 7407//5566 7493//5561 7491//5562
+f 7487//5559 7575//5431 7493//5561
+f 7403//5430 7492//5432 7575//5431
+f 7409//5569 7496//5564 7494//5565
+f 7491//5562 7576//5434 7496//5564
+f 7406//5433 7495//5435 7576//5434
+f 7411//5572 7498//5567 7497//5568
+f 7494//5565 7577//5437 7498//5567
+f 7408//5436 7499//5438 7577//5437
+f 7413//5575 7502//5570 7500//5571
+f 7497//5568 7578//5440 7502//5570
+f 7410//5439 7501//5441 7578//5440
+f 7415//5578 7505//5573 7503//5574
+f 7500//5571 7579//5443 7505//5573
+f 7412//5442 7504//5444 7579//5443
+f 7417//5581 7508//5576 7506//5577
+f 7503//5574 7580//5446 7508//5576
+f 7414//5445 7507//5447 7580//5446
+f 7419//5584 7510//5579 7509//5580
+f 7506//5577 7581//5449 7510//5579
+f 7416//5448 7511//5450 7581//5449
+f 7421//5587 7514//5582 7512//5583
+f 7509//5580 7582//5452 7514//5582
+f 7418//5451 7513//5453 7582//5452
+f 7423//5590 7517//5585 7515//5586
+f 7512//5583 7583//5455 7517//5585
+f 7420//5454 7516//5456 7583//5455
+f 7425//5591 7520//5588 7518//5589
+f 7515//5586 7584//5458 7520//5588
+f 7422//5457 7519//5459 7584//5458
+f 7362//5499 7552//5592 7426//5500
+f 7518//5589 7585//5494 7552//5592
+f 7424//5460 7553//5495 7585//5494
+usemtl Material.001
+f 7941//5593 7815//5326 7598//5156
+f 7942//5594 7818//5327 7605//5163
+f 7943//5595 7822//5328 7612//5329
+f 7944//5596 7824//5330 7619//5171
+f 7945//5597 7827//5331 7626//5332
+f 7946//5598 7830//5333 7633//5179
+f 7947//5599 7834//5334 7640//5191
+f 7948//5600 7836//5335 7647//5193
+f 7949//5601 7839//5336 7654//5337
+f 7950//5602 7842//5338 7661//5202
+f 7951//5603 7846//5339 7668//5210
+f 7952//5604 7848//5340 7675//5217
+f 7953//5605 7851//5341 7682//5342
+f 7954//5606 7854//5343 7689//5224
+f 7955//5607 7857//5344 7696//5232
+f 7956//5608 7860//5345 7703//5240
+f 7957//5609 7863//5346 7710//5347
+f 7958//5610 7866//5348 7717//5247
+f 7959//5611 7869//5349 7724//5350
+f 7960//5612 7872//5351 7731//5261
+f 7961//5613 7876//5352 7738//5269
+f 7962//5614 7879//5353 7746//5354
+f 7963//5615 7882//5355 7753//5277
+f 7964//5616 7886//5356 7760//5357
+f 7965//5617 7888//5358 7767//5285
+f 7966//5618 7891//5359 7774//5292
+f 7967//5619 7894//5360 7781//5306
+f 7968//5620 7898//5361 7788//5362
+f 7969//5621 7900//5363 7795//5309
+f 7970//5622 7903//5364 7802//5315
+f 7971//5623 7906//5365 7809//5366
+f 7740//5624 7908//5625 7909//5626
+f 7740//5624 7909//5626 7910//5627
+f 7740//5624 7910//5627 7911//5628
+f 7740//5624 7911//5628 7912//5629
+f 7740//5624 7912//5629 7913//5630
+f 7740//5624 7913//5630 7914//5631
+f 7740//5624 7914//5631 7915//5632
+f 7740//5624 7915//5632 7916//5633
+f 7740//5624 7916//5633 7917//5634
+f 7740//5624 7917//5634 7918//5635
+f 7740//5624 7918//5635 7919//5636
+f 7740//5624 7919//5636 7920//5637
+f 7740//5624 7920//5637 7921//5638
+f 7740//5624 7921//5638 7922//5639
+f 7740//5624 7922//5639 7923//5640
+f 7740//5624 7923//5640 7924//5641
+f 7740//5624 7924//5641 7925//5642
+f 7740//5624 7925//5642 7926//5643
+f 7740//5624 7926//5643 7927//5644
+f 7740//5624 7927//5644 7928//5645
+f 7740//5624 7928//5645 7875//5646
+f 7740//5624 7875//5646 7929//5647
+f 7740//5624 7929//5647 7930//5648
+f 7740//5624 7930//5648 7931//5649
+f 7740//5624 7931//5649 7932//5650
+f 7740//5624 7932//5650 7933//5651
+f 7740//5624 7933//5651 7934//5652
+f 7740//5624 7934//5652 7935//5653
+f 7740//5624 7935//5653 7936//5654
+f 7740//5624 7936//5654 7937//5655
+f 7740//5624 7937//5655 7938//5656
+f 7740//5624 7938//5656 7908//5625
+f 7972//5657 7940//5367 7591//5149
+f 7816//5658 7941//5593 7814//5659
+f 7592//5660 7813//5661 7816//5658
+f 7813//5661 7591//5149 7941//5593
+f 7819//5662 7942//5594 7817//5663
+f 7599//5664 7814//5659 7819//5662
+f 7814//5659 7598//5156 7942//5594
+f 7821//5665 7943//5595 7820//5666
+f 7606//5667 7817//5663 7821//5665
+f 7817//5663 7605//5163 7943//5595
+f 7825//5668 7944//5596 7823//5669
+f 7613//5670 7820//5666 7825//5668
+f 7820//5666 7612//5329 7944//5596
+f 7828//5671 7945//5597 7826//5672
+f 7620//5673 7823//5669 7828//5671
+f 7823//5669 7619//5171 7945//5597
+f 7831//5674 7946//5598 7829//5675
+f 7627//5676 7826//5672 7831//5674
+f 7826//5672 7626//5332 7946//5598
+f 7833//5677 7947//5599 7832//5678
+f 7634//5679 7829//5675 7833//5677
+f 7829//5675 7633//5179 7947//5599
+f 7837//5680 7948//5600 7835//5681
+f 7641//5682 7832//5678 7837//5680
+f 7832//5678 7640//5191 7948//5600
+f 7840//5683 7949//5601 7838//5684
+f 7648//5685 7835//5681 7840//5683
+f 7835//5681 7647//5193 7949//5601
+f 7843//5686 7950//5602 7841//5687
+f 7655//5688 7838//5684 7843//5686
+f 7838//5684 7654//5337 7950//5602
+f 7845//5689 7951//5603 7844//5690
+f 7662//5691 7841//5687 7845//5689
+f 7841//5687 7661//5202 7951//5603
+f 7849//5692 7952//5604 7847//5693
+f 7669//5694 7844//5690 7849//5692
+f 7844//5690 7668//5210 7952//5604
+f 7852//5695 7953//5605 7850//5696
+f 7676//5697 7847//5693 7852//5695
+f 7847//5693 7675//5217 7953//5605
+f 7855//5698 7954//5606 7853//5699
+f 7683//5700 7850//5696 7855//5698
+f 7850//5696 7682//5342 7954//5606
+f 7858//5701 7955//5607 7856//5702
+f 7690//5703 7853//5699 7858//5701
+f 7853//5699 7689//5224 7955//5607
+f 7861//5704 7956//5608 7859//5705
+f 7697//5706 7856//5702 7861//5704
+f 7856//5702 7696//5232 7956//5608
+f 7864//5707 7957//5609 7862//5708
+f 7704//5709 7859//5705 7864//5707
+f 7859//5705 7703//5240 7957//5609
+f 7867//5710 7958//5610 7865//5711
+f 7711//5712 7862//5708 7867//5710
+f 7862//5708 7710//5347 7958//5610
+f 7870//5713 7959//5611 7868//5714
+f 7718//5715 7865//5711 7870//5713
+f 7865//5711 7717//5247 7959//5611
+f 7873//5716 7960//5612 7871//5717
+f 7725//5718 7868//5714 7873//5716
+f 7868//5714 7724//5350 7960//5612
+f 7877//5719 7961//5613 7874//5720
+f 7732//5721 7871//5717 7877//5719
+f 7871//5717 7731//5261 7961//5613
+f 7880//5722 7962//5614 7878//5723
+f 7739//5724 7874//5720 7880//5722
+f 7874//5720 7738//5269 7962//5614
+f 7883//5725 7963//5615 7881//5726
+f 7747//5727 7878//5723 7883//5725
+f 7878//5723 7746//5354 7963//5615
+f 7885//5728 7964//5616 7884//5729
+f 7754//5730 7881//5726 7885//5728
+f 7881//5726 7753//5277 7964//5616
+f 7889//5731 7965//5617 7887//5732
+f 7761//5733 7884//5729 7889//5731
+f 7884//5729 7760//5357 7965//5617
+f 7892//5734 7966//5618 7890//5735
+f 7768//5736 7887//5732 7892//5734
+f 7887//5732 7767//5285 7966//5618
+f 7895//5737 7967//5619 7893//5738
+f 7775//5739 7890//5735 7895//5737
+f 7890//5735 7774//5292 7967//5619
+f 7897//5740 7968//5620 7896//5741
+f 7782//5742 7893//5738 7897//5740
+f 7893//5738 7781//5306 7968//5620
+f 7901//5743 7969//5621 7899//5744
+f 7789//5745 7896//5741 7901//5743
+f 7896//5741 7788//5362 7969//5621
+f 7904//5746 7970//5622 7902//5747
+f 7796//5748 7899//5744 7904//5746
+f 7899//5744 7795//5309 7970//5622
+f 7907//5749 7971//5623 7905//5750
+f 7803//5751 7902//5747 7907//5749
+f 7902//5747 7802//5315 7971//5623
+f 7909//5626 7816//5658 7599//5664
+f 7909//5626 7908//5625 7816//5658
+f 7908//5625 7592//5660 7816//5658
+f 7910//5627 7819//5662 7606//5667
+f 7910//5627 7909//5626 7819//5662
+f 7909//5626 7599//5664 7819//5662
+f 7911//5628 7821//5665 7613//5670
+f 7911//5628 7910//5627 7821//5665
+f 7910//5627 7606//5667 7821//5665
+f 7912//5629 7825//5668 7620//5673
+f 7912//5629 7911//5628 7825//5668
+f 7911//5628 7613//5670 7825//5668
+f 7913//5630 7828//5671 7627//5676
+f 7913//5630 7912//5629 7828//5671
+f 7912//5629 7620//5673 7828//5671
+f 7914//5631 7831//5674 7634//5679
+f 7914//5631 7913//5630 7831//5674
+f 7913//5630 7627//5676 7831//5674
+f 7915//5632 7833//5677 7641//5682
+f 7915//5632 7914//5631 7833//5677
+f 7914//5631 7634//5679 7833//5677
+f 7916//5633 7837//5680 7648//5685
+f 7916//5633 7915//5632 7837//5680
+f 7915//5632 7641//5682 7837//5680
+f 7917//5634 7840//5683 7655//5688
+f 7917//5634 7916//5633 7840//5683
+f 7916//5633 7648//5685 7840//5683
+f 7918//5635 7843//5686 7662//5691
+f 7918//5635 7917//5634 7843//5686
+f 7917//5634 7655//5688 7843//5686
+f 7919//5636 7845//5689 7669//5694
+f 7919//5636 7918//5635 7845//5689
+f 7918//5635 7662//5691 7845//5689
+f 7920//5637 7849//5692 7676//5697
+f 7920//5637 7919//5636 7849//5692
+f 7919//5636 7669//5694 7849//5692
+f 7921//5638 7852//5695 7683//5700
+f 7921//5638 7920//5637 7852//5695
+f 7920//5637 7676//5697 7852//5695
+f 7922//5639 7855//5698 7690//5703
+f 7922//5639 7921//5638 7855//5698
+f 7921//5638 7683//5700 7855//5698
+f 7923//5640 7858//5701 7697//5706
+f 7923//5640 7922//5639 7858//5701
+f 7922//5639 7690//5703 7858//5701
+f 7924//5641 7861//5704 7704//5709
+f 7924//5641 7923//5640 7861//5704
+f 7923//5640 7697//5706 7861//5704
+f 7925//5642 7864//5707 7711//5712
+f 7925//5642 7924//5641 7864//5707
+f 7924//5641 7704//5709 7864//5707
+f 7926//5643 7867//5710 7718//5715
+f 7926//5643 7925//5642 7867//5710
+f 7925//5642 7711//5712 7867//5710
+f 7927//5644 7870//5713 7725//5718
+f 7927//5644 7926//5643 7870//5713
+f 7926//5643 7718//5715 7870//5713
+f 7928//5645 7873//5716 7732//5721
+f 7928//5645 7927//5644 7873//5716
+f 7927//5644 7725//5718 7873//5716
+f 7875//5646 7877//5719 7739//5724
+f 7875//5646 7928//5645 7877//5719
+f 7928//5645 7732//5721 7877//5719
+f 7929//5647 7880//5722 7747//5727
+f 7929//5647 7875//5646 7880//5722
+f 7875//5646 7739//5724 7880//5722
+f 7930//5648 7883//5725 7754//5730
+f 7930//5648 7929//5647 7883//5725
+f 7929//5647 7747//5727 7883//5725
+f 7931//5649 7885//5728 7761//5733
+f 7931//5649 7930//5648 7885//5728
+f 7930//5648 7754//5730 7885//5728
+f 7932//5650 7889//5731 7768//5736
+f 7932//5650 7931//5649 7889//5731
+f 7931//5649 7761//5733 7889//5731
+f 7933//5651 7892//5734 7775//5739
+f 7933//5651 7932//5650 7892//5734
+f 7932//5650 7768//5736 7892//5734
+f 7934//5652 7895//5737 7782//5742
+f 7934//5652 7933//5651 7895//5737
+f 7933//5651 7775//5739 7895//5737
+f 7935//5653 7897//5740 7789//5745
+f 7935//5653 7934//5652 7897//5740
+f 7934//5652 7782//5742 7897//5740
+f 7936//5654 7901//5743 7796//5748
+f 7936//5654 7935//5653 7901//5743
+f 7935//5653 7789//5745 7901//5743
+f 7937//5655 7904//5746 7803//5751
+f 7937//5655 7936//5654 7904//5746
+f 7936//5654 7796//5748 7904//5746
+f 7938//5656 7907//5749 7810//5752
+f 7938//5656 7937//5655 7907//5749
+f 7937//5655 7803//5751 7907//5749
+f 7908//5625 7939//5753 7592//5660
+f 7908//5625 7938//5656 7939//5753
+f 7938//5656 7810//5752 7939//5753
+f 7939//5753 7972//5657 7813//5661
+f 7810//5752 7905//5750 7939//5753
+f 7905//5750 7809//5366 7972//5657
+f 7814//5659 7941//5593 7598//5156
+f 7817//5663 7942//5594 7605//5163
+f 7820//5666 7943//5595 7612//5329
+f 7823//5669 7944//5596 7619//5171
+f 7826//5672 7945//5597 7626//5332
+f 7829//5675 7946//5598 7633//5179
+f 7832//5678 7947//5599 7640//5191
+f 7835//5681 7948//5600 7647//5193
+f 7838//5684 7949//5601 7654//5337
+f 7841//5687 7950//5602 7661//5202
+f 7844//5690 7951//5603 7668//5210
+f 7847//5693 7952//5604 7675//5217
+f 7850//5696 7953//5605 7682//5342
+f 7853//5699 7954//5606 7689//5224
+f 7856//5702 7955//5607 7696//5232
+f 7859//5705 7956//5608 7703//5240
+f 7862//5708 7957//5609 7710//5347
+f 7865//5711 7958//5610 7717//5247
+f 7868//5714 7959//5611 7724//5350
+f 7871//5717 7960//5612 7731//5261
+f 7874//5720 7961//5613 7738//5269
+f 7878//5723 7962//5614 7746//5354
+f 7881//5726 7963//5615 7753//5277
+f 7884//5729 7964//5616 7760//5357
+f 7887//5732 7965//5617 7767//5285
+f 7890//5735 7966//5618 7774//5292
+f 7893//5738 7967//5619 7781//5306
+f 7896//5741 7968//5620 7788//5362
+f 7899//5744 7969//5621 7795//5309
+f 7902//5747 7970//5622 7802//5315
+f 7905//5750 7971//5623 7809//5366
+f 7813//5661 7972//5657 7591//5149
+f 7599//5664 7816//5658 7814//5659
+f 7813//5661 7941//5593 7816//5658
+f 7591//5149 7815//5326 7941//5593
+f 7606//5667 7819//5662 7817//5663
+f 7814//5659 7942//5594 7819//5662
+f 7598//5156 7818//5327 7942//5594
+f 7613//5670 7821//5665 7820//5666
+f 7817//5663 7943//5595 7821//5665
+f 7605//5163 7822//5328 7943//5595
+f 7620//5673 7825//5668 7823//5669
+f 7820//5666 7944//5596 7825//5668
+f 7612//5329 7824//5330 7944//5596
+f 7627//5676 7828//5671 7826//5672
+f 7823//5669 7945//5597 7828//5671
+f 7619//5171 7827//5331 7945//5597
+f 7634//5679 7831//5674 7829//5675
+f 7826//5672 7946//5598 7831//5674
+f 7626//5332 7830//5333 7946//5598
+f 7641//5682 7833//5677 7832//5678
+f 7829//5675 7947//5599 7833//5677
+f 7633//5179 7834//5334 7947//5599
+f 7648//5685 7837//5680 7835//5681
+f 7832//5678 7948//5600 7837//5680
+f 7640//5191 7836//5335 7948//5600
+f 7655//5688 7840//5683 7838//5684
+f 7835//5681 7949//5601 7840//5683
+f 7647//5193 7839//5336 7949//5601
+f 7662//5691 7843//5686 7841//5687
+f 7838//5684 7950//5602 7843//5686
+f 7654//5337 7842//5338 7950//5602
+f 7669//5694 7845//5689 7844//5690
+f 7841//5687 7951//5603 7845//5689
+f 7661//5202 7846//5339 7951//5603
+f 7676//5697 7849//5692 7847//5693
+f 7844//5690 7952//5604 7849//5692
+f 7668//5210 7848//5340 7952//5604
+f 7683//5700 7852//5695 7850//5696
+f 7847//5693 7953//5605 7852//5695
+f 7675//5217 7851//5341 7953//5605
+f 7690//5703 7855//5698 7853//5699
+f 7850//5696 7954//5606 7855//5698
+f 7682//5342 7854//5343 7954//5606
+f 7697//5706 7858//5701 7856//5702
+f 7853//5699 7955//5607 7858//5701
+f 7689//5224 7857//5344 7955//5607
+f 7704//5709 7861//5704 7859//5705
+f 7856//5702 7956//5608 7861//5704
+f 7696//5232 7860//5345 7956//5608
+f 7711//5712 7864//5707 7862//5708
+f 7859//5705 7957//5609 7864//5707
+f 7703//5240 7863//5346 7957//5609
+f 7718//5715 7867//5710 7865//5711
+f 7862//5708 7958//5610 7867//5710
+f 7710//5347 7866//5348 7958//5610
+f 7725//5718 7870//5713 7868//5714
+f 7865//5711 7959//5611 7870//5713
+f 7717//5247 7869//5349 7959//5611
+f 7732//5721 7873//5716 7871//5717
+f 7868//5714 7960//5612 7873//5716
+f 7724//5350 7872//5351 7960//5612
+f 7739//5724 7877//5719 7874//5720
+f 7871//5717 7961//5613 7877//5719
+f 7731//5261 7876//5352 7961//5613
+f 7747//5727 7880//5722 7878//5723
+f 7874//5720 7962//5614 7880//5722
+f 7738//5269 7879//5353 7962//5614
+f 7754//5730 7883//5725 7881//5726
+f 7878//5723 7963//5615 7883//5725
+f 7746//5354 7882//5355 7963//5615
+f 7761//5733 7885//5728 7884//5729
+f 7881//5726 7964//5616 7885//5728
+f 7753//5277 7886//5356 7964//5616
+f 7768//5736 7889//5731 7887//5732
+f 7884//5729 7965//5617 7889//5731
+f 7760//5357 7888//5358 7965//5617
+f 7775//5739 7892//5734 7890//5735
+f 7887//5732 7966//5618 7892//5734
+f 7767//5285 7891//5359 7966//5618
+f 7782//5742 7895//5737 7893//5738
+f 7890//5735 7967//5619 7895//5737
+f 7774//5292 7894//5360 7967//5619
+f 7789//5745 7897//5740 7896//5741
+f 7893//5738 7968//5620 7897//5740
+f 7781//5306 7898//5361 7968//5620
+f 7796//5748 7901//5743 7899//5744
+f 7896//5741 7969//5621 7901//5743
+f 7788//5362 7900//5363 7969//5621
+f 7803//5751 7904//5746 7902//5747
+f 7899//5744 7970//5622 7904//5746
+f 7795//5309 7903//5364 7970//5622
+f 7810//5752 7907//5749 7905//5750
+f 7902//5747 7971//5623 7907//5749
+f 7802//5315 7906//5365 7971//5623
+f 7592//5660 7939//5753 7813//5661
+f 7905//5750 7972//5657 7939//5753
+f 7809//5366 7940//5367 7972//5657
+l 7811 7812
+o Body_Sphere.002
+v 1.170026 0.251981 0.110623
+v 1.168350 0.409033 0.206367
+v 1.143010 0.551349 0.294090
+v 1.114024 0.673459 0.370420
+v 0.955484 0.770670 0.432424
+v 0.777509 0.839246 0.477720
+v 0.586939 0.876553 0.504566
+v -0.480150 0.831895 0.501455
+v -0.673737 0.803618 0.489056
+v -0.768059 0.743547 0.457369
+v -0.935192 0.653991 0.407613
+v -1.079141 0.538391 0.341698
+v -1.194375 0.401190 0.262159
+v -1.276466 0.247660 0.172051
+v -1.322257 0.083702 0.074839
+v 1.169478 0.268339 0.076058
+v 1.167277 0.441121 0.138565
+v 1.141450 0.597933 0.195657
+v 1.112040 0.732748 0.245138
+v 0.953150 0.840387 0.285108
+v 0.774916 0.916712 0.314031
+v 0.584186 0.958790 0.330795
+v -0.482956 0.915743 0.324280
+v -0.676490 0.885855 0.315285
+v -0.770652 0.821013 0.293681
+v -0.937526 0.723708 0.260297
+v -1.081126 0.597681 0.216416
+v -1.195935 0.447774 0.163726
+v -1.277540 0.279748 0.104249
+v -1.322805 0.100060 0.040274
+v 1.169391 0.277653 0.038965
+v 1.167106 0.459392 0.065805
+v 1.141203 0.624459 0.090026
+v 1.111725 0.766510 0.110696
+v 0.952780 0.880086 0.127021
+v 0.774505 0.960823 0.138373
+v 0.583750 1.005618 0.144318
+v -0.483401 0.963489 0.134150
+v -0.676926 0.932684 0.128808
+v -0.771063 0.865124 0.118023
+v -0.937896 0.763407 0.102209
+v -1.081441 0.631442 0.081974
+v -1.196182 0.474300 0.058095
+v -1.277710 0.298019 0.031490
+v -1.322891 0.109375 0.003181
+v 1.169769 0.279567 0.000770
+v 1.167847 0.463146 -0.009116
+v 1.142278 0.629908 -0.018743
+v 1.113093 0.773445 -0.027741
+v 0.954389 0.888242 -0.035764
+v 0.776292 0.969885 -0.042503
+v 0.585647 1.015238 -0.047700
+v -0.481466 0.973298 -0.061629
+v -0.675029 0.942304 -0.063209
+v -0.769276 0.874186 -0.062853
+v -0.936287 0.771563 -0.060576
+v -1.080073 0.638378 -0.056463
+v -1.195107 0.479749 -0.050675
+v -1.276970 0.301773 -0.043432
+v -1.322514 0.111288 -0.035014
+v 1.170596 0.274006 -0.037058
+v 1.169469 0.452237 -0.083320
+v 1.144634 0.614071 -0.126471
+v 1.116091 0.753289 -0.164852
+v 0.957914 0.864540 -0.196989
+v 0.780209 0.943549 -0.221647
+v 0.589806 0.987280 -0.237878
+v -0.477227 0.944792 -0.255534
+v -0.670871 0.914345 -0.253388
+v -0.765359 0.847849 -0.241998
+v -0.932762 0.747861 -0.221801
+v -1.077075 0.618221 -0.193574
+v -1.192752 0.463912 -0.158402
+v -1.275347 0.290864 -0.117636
+v -1.321687 0.105727 -0.072843
+v 1.171840 0.261183 -0.073068
+v 1.171911 0.427085 -0.153955
+v 1.148179 0.577556 -0.229017
+v 1.120603 0.706814 -0.295368
+v 0.963220 0.809891 -0.350460
+v 0.786105 0.882827 -0.392175
+v 0.594635 0.922509 -0.418819
+v -0.470858 0.879065 -0.440112
+v -0.664612 0.849883 -0.434419
+v -0.759463 0.787128 -0.412525
+v -0.927456 0.693212 -0.375272
+v -1.072562 0.571746 -0.324090
+v -1.189206 0.427397 -0.260948
+v -1.272905 0.265712 -0.188271
+v -1.320442 0.092905 -0.108852
+v 1.173456 0.241593 -0.105874
+v 1.175079 0.388657 -0.218306
+v 1.152778 0.521767 -0.322441
+v 1.126457 0.635808 -0.414274
+v 0.970103 0.726397 -0.490279
+v 0.793753 0.790052 -0.547533
+v 0.603244 0.824142 -0.583748
+v -0.141841 0.757556 -0.567727
+v -0.636989 0.753823 -0.599597
+v -0.753183 0.694974 -0.568368
+v -0.920573 0.609718 -0.515090
+v -1.066709 0.500740 -0.442996
+v -1.184607 0.371608 -0.354372
+v -1.269737 0.227284 -0.252622
+v -1.318827 0.073314 -0.141658
+v 1.175379 0.215987 -0.134216
+v 1.178851 0.338429 -0.273901
+v 1.158254 0.448847 -0.403152
+v 1.133427 0.542998 -0.517000
+v 0.978299 0.617264 -0.611071
+v 0.802860 0.668791 -0.681750
+v 0.613862 0.695602 -0.726323
+v -0.045623 0.621289 -0.682280
+v -0.501306 0.649655 -0.755550
+v -0.756130 0.580078 -0.708091
+v -0.912376 0.500585 -0.635882
+v -1.059739 0.407930 -0.545722
+v -1.179131 0.298688 -0.435083
+v -1.265965 0.177056 -0.308217
+v -1.316904 0.047708 -0.170000
+v 1.177536 0.185349 -0.157005
+v 1.183083 0.278331 -0.318603
+v 1.164397 0.361599 -0.468048
+v 1.141245 0.431952 -0.599598
+v 0.987493 0.486688 -0.708196
+v 0.813075 0.523703 -0.789670
+v 0.607618 0.536290 -0.831925
+v -0.016459 0.475452 -0.784209
+v -0.469195 0.511069 -0.903810
+v -0.816490 0.428845 -0.810804
+v -0.903183 0.370009 -0.733008
+v -1.051920 0.296884 -0.628320
+v -1.172988 0.211440 -0.499979
+v -1.261733 0.116958 -0.352918
+v -1.314747 0.017071 -0.192789
+v 1.179844 0.150858 -0.173364
+v 1.187611 0.210673 -0.350694
+v 1.170971 0.263375 -0.514637
+v 1.149612 0.306938 -0.658894
+v 0.997330 0.339686 -0.777921
+v 0.824003 0.360358 -0.867132
+v 0.466183 0.334358 -0.812978
+v -0.044104 0.313668 -0.867533
+v -0.488226 0.303455 -0.941785
+v -0.810803 0.264560 -0.887196
+v -0.893342 0.223005 -0.802724
+v -1.043554 0.171870 -0.687616
+v -1.166414 0.113216 -0.546568
+v -1.257206 0.049300 -0.385009
+v -1.312438 -0.017421 -0.209148
+v 1.182215 0.113837 -0.182667
+v 1.192261 0.138056 -0.368940
+v 1.177722 0.157951 -0.541127
+v 1.158205 0.172758 -0.692609
+v 1.007435 0.181908 -0.817567
+v 0.835030 0.184958 -0.910662
+v 0.450410 0.158526 -0.840500
+v -0.042604 0.136737 -0.867782
+v -0.553344 0.109950 -0.964634
+v -0.798504 0.088943 -0.927640
+v -0.883079 0.065187 -0.842022
+v -1.034961 0.037690 -0.721332
+v -1.159663 0.007792 -0.573058
+v -1.252555 -0.023317 -0.403256
+v -1.310068 -0.054441 -0.218451
+v 1.184557 0.075711 -0.184554
+v 1.196855 0.063269 -0.372642
+v 1.184392 0.049377 -0.546500
+v 1.166694 0.034570 -0.699448
+v 1.017383 0.019417 -0.825538
+v 0.844563 0.004561 -0.917578
+v 0.503968 -0.006608 -0.888890
+v 0.006670 -0.025496 -0.854412
+v -0.456641 -0.067888 -0.958529
+v -0.764428 -0.089275 -0.929270
+v -0.876402 -0.097433 -0.850188
+v -1.026453 -0.100495 -0.728142
+v -1.152993 -0.100782 -0.578431
+v -1.247961 -0.098104 -0.406957
+v -1.307725 -0.092567 -0.220337
+v 1.186780 0.037945 -0.178953
+v 1.201217 -0.010813 -0.361656
+v 1.190724 -0.058173 -0.530551
+v 1.174753 -0.102316 -0.679148
+v 1.026743 -0.141479 -0.801446
+v 0.851393 -0.172787 -0.887069
+v 0.532145 -0.182662 -0.887325
+v 0.058786 -0.176775 -0.830105
+v -0.369879 -0.239324 -0.908436
+v -0.680602 -0.263016 -0.898859
+v -0.871201 -0.260408 -0.830650
+v -1.021784 -0.238164 -0.710148
+v -1.146661 -0.208332 -0.562482
+v -1.243599 -0.172186 -0.395971
+v -1.305502 -0.130334 -0.214737
+v 1.188800 0.001989 -0.166080
+v 1.205178 -0.081343 -0.336404
+v 1.196475 -0.160567 -0.493891
+v 1.182072 -0.232639 -0.632490
+v 1.035221 -0.294568 -0.746381
+v 0.855982 -0.339241 -0.821388
+v 0.528492 -0.341555 -0.811172
+v 0.089816 -0.316378 -0.749180
+v -0.314099 -0.376406 -0.804710
+v -0.604131 -0.418183 -0.821949
+v -0.856762 -0.435491 -0.805552
+v -1.032427 -0.376249 -0.677646
+v -1.141438 -0.310852 -0.526033
+v -1.239638 -0.242716 -0.370719
+v -1.303483 -0.166290 -0.201864
+v 1.190538 -0.030775 -0.146429
+v 1.208587 -0.145612 -0.297857
+v 1.201423 -0.253870 -0.437930
+v 1.188371 -0.351391 -0.561265
+v 1.042584 -0.434072 -0.662626
+v 0.861424 -0.489870 -0.726461
+v 0.535224 -0.479332 -0.706059
+v 0.118240 -0.447841 -0.657629
+v -0.289889 -0.479721 -0.673794
+v -0.556585 -0.531586 -0.697052
+v -0.820025 -0.569757 -0.705469
+v -1.034142 -0.506114 -0.612872
+v -1.137452 -0.404445 -0.470328
+v -1.236230 -0.306984 -0.332173
+v -1.301745 -0.199053 -0.182213
+v 1.191927 -0.059087 -0.120755
+v 1.211312 -0.201148 -0.247497
+v 1.205380 -0.334496 -0.364818
+v 1.193406 -0.454009 -0.468211
+v 1.048613 -0.554800 -0.553429
+v 0.868724 -0.621876 -0.607199
+v 0.551781 -0.603082 -0.586171
+v 0.141882 -0.558404 -0.542041
+v -0.255361 -0.573527 -0.545677
+v -0.520518 -0.617642 -0.560960
+v -0.788935 -0.695637 -0.589723
+v -1.026482 -0.615123 -0.511853
+v -1.135105 -0.485933 -0.397545
+v -1.233504 -0.362521 -0.281813
+v -1.300355 -0.227366 -0.156539
+v 1.192914 -0.081860 -0.090046
+v 1.213249 -0.245818 -0.187258
+v 1.208191 -0.399347 -0.277365
+v 1.196985 -0.536548 -0.356905
+v 1.052972 -0.652048 -0.422758
+v 0.878573 -0.732351 -0.466904
+v 0.574862 -0.710197 -0.450470
+v 0.152302 -0.657719 -0.418195
+v -0.201642 -0.646087 -0.408551
+v -0.490517 -0.692532 -0.424318
+v -0.766150 -0.781431 -0.450915
+v -1.021193 -0.703857 -0.399212
+v -1.133385 -0.550988 -0.309953
+v -1.231568 -0.407191 -0.221574
+v -1.299368 -0.250138 -0.125830
+v 1.193462 -0.098218 -0.055481
+v 1.214323 -0.277905 -0.119456
+v 1.209751 -0.445931 -0.178932
+v 1.198969 -0.595838 -0.231623
+v 1.055364 -0.721857 -0.275500
+v 0.885055 -0.813473 -0.306814
+v 0.601112 -0.795985 -0.298868
+v 0.178243 -0.727458 -0.275527
+v -0.159195 -0.695518 -0.266070
+v -0.467766 -0.742134 -0.280394
+v -0.758102 -0.833252 -0.299626
+v -1.005275 -0.748882 -0.265650
+v -1.129849 -0.596890 -0.211123
+v -1.230493 -0.439278 -0.153772
+v -1.298820 -0.266496 -0.091265
+v 1.193549 -0.107533 -0.018388
+v 1.214493 -0.296177 -0.046697
+v 1.209998 -0.472457 -0.073302
+v 1.199284 -0.629600 -0.097181
+v 1.055739 -0.761566 -0.117416
+v 0.887365 -0.860117 -0.132756
+v 0.628538 -0.857493 -0.133145
+v 0.199313 -0.773585 -0.123536
+v -0.132514 -0.725518 -0.121035
+v -0.446784 -0.766974 -0.132601
+v -0.771414 -0.827424 -0.136850
+v -0.991911 -0.762915 -0.125202
+v -1.127415 -0.622549 -0.105222
+v -1.230323 -0.457550 -0.081012
+v -1.298734 -0.275811 -0.054172
+v 1.193171 -0.109446 0.019807
+v 1.213752 -0.299931 0.028225
+v 1.208923 -0.477907 0.035468
+v 1.197916 -0.636535 0.041256
+v 1.054131 -0.769721 0.045368
+v 0.886460 -0.870880 0.047565
+v 0.652570 -0.888116 0.044837
+v 0.216101 -0.789321 0.036283
+v -0.115915 -0.731150 0.027219
+v -0.429533 -0.764740 0.017879
+v -0.764277 -0.813153 0.014237
+v -0.991789 -0.766912 0.012182
+v -1.128355 -0.627948 0.003532
+v -1.231064 -0.461303 -0.006091
+v -1.299111 -0.277724 -0.015977
+v 1.192344 -0.103885 0.057636
+v 1.212130 -0.289022 0.102429
+v 1.206568 -0.462069 0.143195
+v 1.194918 -0.616378 0.178367
+v 1.050605 -0.746018 0.206594
+v 0.883054 -0.845665 0.226701
+v 0.663915 -0.876175 0.228465
+v 0.222684 -0.773574 0.198548
+v -0.112693 -0.712770 0.176470
+v -0.428049 -0.742911 0.168776
+v -0.757560 -0.792337 0.166993
+v -0.992496 -0.744249 0.148011
+v -1.130772 -0.612180 0.111253
+v -1.232686 -0.450395 0.068113
+v -1.299939 -0.272163 0.021851
+v 1.191099 -0.091063 0.093645
+v 1.209688 -0.263870 0.173064
+v 1.203023 -0.425554 0.245741
+v 1.190406 -0.569904 0.308883
+v 1.045299 -0.691370 0.360065
+v 0.877299 -0.785269 0.397311
+v 0.664523 -0.821507 0.406446
+v 0.217102 -0.727817 0.356521
+v -0.125261 -0.672088 0.322781
+v -0.447424 -0.713146 0.319925
+v -0.762455 -0.793627 0.325218
+v -1.001917 -0.706727 0.279637
+v -1.134504 -0.575787 0.213837
+v -1.235128 -0.425243 0.138748
+v -1.301183 -0.259341 0.057861
+v -1.329990 -0.084384 -0.025743
+v 1.189484 -0.071472 0.126451
+v 1.206520 -0.225441 0.237415
+v 1.198423 -0.369765 0.339164
+v 1.184552 -0.498897 0.427789
+v 1.038416 -0.607875 0.499883
+v 0.869659 -0.692513 0.552677
+v 0.660566 -0.730856 0.570304
+v 0.200657 -0.653684 0.504463
+v -0.149387 -0.609356 0.461289
+v -0.478713 -0.683345 0.478874
+v -0.789194 -0.747580 0.484899
+v -1.021586 -0.647070 0.405307
+v -1.139924 -0.520356 0.307494
+v -1.238296 -0.386814 0.203099
+v -1.302798 -0.239750 0.090667
+v 1.187561 -0.045866 0.154793
+v 1.202748 -0.175213 0.293010
+v 1.192947 -0.296845 0.419875
+v 1.177582 -0.406088 0.530515
+v 1.030220 -0.498743 0.620675
+v 0.860551 -0.571249 0.686893
+v 0.654934 -0.609524 0.714114
+v 0.176148 -0.551206 0.636425
+v -0.186749 -0.524303 0.590501
+v -0.515034 -0.613565 0.632753
+v -0.816389 -0.635426 0.617641
+v -1.033123 -0.550978 0.512622
+v -1.145560 -0.447451 0.388352
+v -1.242068 -0.336586 0.258694
+v -1.304721 -0.214144 0.119009
+v 1.185404 -0.015229 0.177582
+v 1.198516 -0.115116 0.337711
+v 1.186804 -0.209597 0.484772
+v 1.169764 -0.295042 0.613112
+v 1.021026 -0.368167 0.717800
+v 0.850337 -0.426162 0.794814
+v 0.648436 -0.461197 0.831559
+v 0.180867 -0.415546 0.736738
+v -0.236050 -0.423315 0.712625
+v -0.556370 -0.507463 0.775262
+v -0.851295 -0.506838 0.734483
+v -1.034265 -0.434724 0.591930
+v -1.150877 -0.359852 0.452968
+v -1.246300 -0.276489 0.303395
+v -1.306879 -0.183507 0.141797
+v 1.183095 0.019263 0.193941
+v 1.193989 -0.047458 0.369802
+v 1.180231 -0.111374 0.531361
+v 1.161397 -0.170027 0.672408
+v 1.011189 -0.221165 0.787525
+v 0.839405 -0.262822 0.872287
+v 0.644075 -0.291929 0.918848
+v 0.161990 -0.265251 0.802916
+v -0.307243 -0.298719 0.815489
+v -0.615181 -0.356512 0.876354
+v -0.878254 -0.344664 0.794119
+v -1.034928 -0.305863 0.645856
+v -1.157154 -0.261533 0.499429
+v -1.250827 -0.208831 0.335486
+v -1.309187 -0.149015 0.158157
+v 1.180725 0.056283 0.203243
+v 1.189338 0.025159 0.388049
+v 1.173479 -0.005949 0.557850
+v 1.152804 -0.035848 0.706124
+v 1.001085 -0.063387 0.827170
+v 0.828178 -0.087507 0.916338
+v 0.638413 -0.107237 0.969312
+v 0.130850 -0.107358 0.850958
+v -0.362991 -0.141709 0.872963
+v -0.672017 -0.177250 0.891682
+v -0.885841 -0.178825 0.799926
+v -1.040438 -0.170928 0.677456
+v -1.163906 -0.156109 0.525919
+v -1.255478 -0.136214 0.353733
+v -1.311558 -0.111995 0.167459
+v 1.178383 0.094409 0.205130
+v 1.184744 0.099946 0.391750
+v 1.166809 0.102624 0.563224
+v 1.144315 0.102340 0.712963
+v 0.991102 0.099105 0.835212
+v 0.817086 0.093044 0.925274
+v 0.628946 0.084388 0.979685
+v 0.100723 0.057570 0.856166
+v -0.401542 0.027638 0.895254
+v -0.728480 -0.002655 0.904905
+v -0.899573 -0.017574 0.810400
+v -1.048850 -0.032728 0.684241
+v -1.170576 -0.047535 0.531293
+v -1.260072 -0.061427 0.357434
+v -1.313900 -0.073869 0.169346
+v 1.176159 0.132176 0.199530
+v 1.180382 0.174028 0.380764
+v 1.160477 0.210174 0.547274
+v 1.136256 0.239226 0.692663
+v 0.981626 0.260066 0.811342
+v 0.806557 0.271894 0.898750
+v 0.617674 0.274235 0.951460
+v 0.063238 0.223971 0.839858
+v -0.455144 0.206294 0.901867
+v -0.740857 0.176476 0.879052
+v -0.909050 0.143387 0.786530
+v -1.056909 0.104158 0.663941
+v -1.176908 0.060015 0.515343
+v -1.264434 0.012655 0.346448
+v -1.316123 -0.036103 0.163745
+v 1.174140 0.168132 0.186656
+v 1.176421 0.244558 0.355512
+v 1.154727 0.312568 0.510615
+v 1.128937 0.369549 0.646004
+v 0.973019 0.413309 0.756477
+v 0.796993 0.442169 0.837788
+v 0.604243 0.454236 0.885228
+v 0.004683 0.393361 0.808195
+v -0.513573 0.399796 0.897164
+v -0.763628 0.349293 0.823998
+v -0.917657 0.296630 0.731665
+v -1.064229 0.234481 0.617282
+v -1.182659 0.162409 0.478684
+v -1.268395 0.083185 0.321196
+v -1.318143 -0.000147 0.150872
+v 1.200648 0.086226 0.010537
+v 1.172402 0.200896 0.167005
+v 1.173012 0.308826 0.316966
+v 1.149778 0.405871 0.454654
+v 1.122639 0.488301 0.574779
+v 0.965613 0.552947 0.672725
+v 0.788764 0.597326 0.744728
+v 0.588576 0.617843 0.785979
+v -0.127622 0.553786 0.736012
+v -0.626691 0.567583 0.801105
+v -0.794315 0.515991 0.743870
+v -0.925065 0.436268 0.647914
+v -1.070527 0.353233 0.546057
+v -1.187607 0.255712 0.422723
+v -1.271803 0.147454 0.282650
+v -1.319880 0.032617 0.131221
+v 1.171013 0.229208 0.141332
+v 1.170287 0.364363 0.266605
+v 1.145822 0.486498 0.381542
+v 1.117603 0.590918 0.481726
+v 0.959692 0.673613 0.563306
+v 0.782185 0.731402 0.623148
+v 0.589864 0.761636 0.658639
+v -0.473998 0.715069 0.658733
+v -0.664633 0.689706 0.643674
+v -0.766485 0.635908 0.602887
+v -0.930984 0.556934 0.538494
+v -1.075563 0.455851 0.453004
+v -1.191563 0.336338 0.349611
+v -1.274529 0.202990 0.232290
+v -1.321270 0.060929 0.105548
+vn -0.374462 0.791803 0.482437
+vn -0.096896 0.852321 0.513932
+vn -0.379284 0.870022 0.314890
+vn 0.830714 0.485824 0.271767
+vn 0.984283 0.160680 0.073092
+vn 0.983917 0.170660 0.052400
+vn -0.989471 0.112491 0.090701
+vn -0.942656 0.275948 0.187597
+vn -0.990051 0.129337 0.055086
+vn -0.555315 0.709464 0.433882
+vn 0.502792 0.746544 0.435713
+vn 0.829218 0.528428 0.181982
+vn -0.600574 0.679464 0.421430
+vn -0.602893 0.749321 0.273782
+vn 0.324931 0.814142 0.481185
+vn 0.322947 0.891842 0.316660
+vn -0.744346 0.564867 0.356120
+vn -0.746330 0.624409 0.230293
+vn 0.098239 0.853572 0.511582
+vn 0.095035 0.937407 0.335002
+vn 0.996216 0.082614 0.026032
+vn 0.996704 0.077548 0.023041
+vn 0.996643 0.079165 0.019532
+vn -0.859859 0.428663 0.277200
+vn -0.861446 0.475600 0.178014
+vn -0.099521 0.936430 0.336344
+vn 0.996155 0.084780 0.021546
+vn -0.943754 0.308451 0.118870
+vn -0.943937 0.326975 0.045106
+vn -0.379833 0.915098 0.135075
+vn 0.983856 0.176305 0.030091
+vn -0.990143 0.138951 0.016877
+vn -0.557329 0.779962 0.284555
+vn 0.500443 0.816401 0.288064
+vn 0.500076 0.856197 0.129612
+vn -0.603290 0.789117 0.115360
+vn 0.322520 0.936003 0.140812
+vn -0.746666 0.658315 0.095279
+vn 0.094607 0.984558 0.147191
+vn 0.996643 0.080111 0.015778
+vn -0.861690 0.502304 0.071566
+vn -0.099948 0.984161 0.146397
+vn 0.996124 0.086001 0.016663
+vn -0.860622 0.507797 -0.037996
+vn 0.096438 0.994263 -0.046205
+vn 0.984100 0.177313 0.007111
+vn -0.377453 0.924650 -0.050020
+vn 0.828974 0.552660 0.085604
+vn 0.830012 0.557543 -0.013642
+vn -0.943175 0.330790 -0.030793
+vn -0.557848 0.821162 0.120212
+vn -0.555620 0.829951 -0.048952
+vn -0.601672 0.797296 -0.047761
+vn 0.324320 0.945067 -0.040193
+vn -0.745293 0.665273 -0.043703
+vn 0.996185 0.086245 0.011658
+vn -0.742271 0.645039 -0.181402
+vn 0.100925 0.965789 -0.238838
+vn 0.996673 0.080325 0.011902
+vn 0.996307 0.085452 0.006714
+vn -0.858241 0.491836 -0.146519
+vn -0.098086 0.993957 -0.049196
+vn 0.984649 0.173711 -0.015534
+vn -0.941527 0.319742 -0.106021
+vn -0.372204 0.898251 -0.233528
+vn 0.832270 0.542924 -0.111881
+vn -0.989746 0.140904 -0.022431
+vn -0.988891 0.135197 -0.061403
+vn -0.550768 0.805994 -0.216742
+vn 0.501694 0.864376 -0.033509
+vn 0.505234 0.840602 -0.195105
+vn -0.598132 0.773522 -0.209357
+vn 0.327860 0.918729 -0.219977
+vn 0.510544 0.785852 -0.348918
+vn -0.592822 0.718772 -0.363170
+vn 0.332560 0.858425 -0.390484
+vn -0.737754 0.598376 -0.312479
+vn 0.105289 0.901059 -0.420698
+vn 0.996765 0.079806 0.008057
+vn 0.996460 0.083712 0.002045
+vn -0.093966 0.965453 -0.242958
+vn -0.099857 0.799524 -0.592242
+vn 0.985473 0.165624 -0.036927
+vn -0.854671 0.455061 -0.249855
+vn -0.340678 0.828852 -0.443709
+vn 0.835658 0.509384 -0.205298
+vn -0.987610 0.121982 -0.098483
+vn -0.536943 0.751122 -0.384014
+vn -0.038148 0.650563 -0.758476
+vn 0.840052 0.458266 -0.290262
+vn -0.939055 0.294229 -0.177618
+vn -0.985961 0.101779 -0.132298
+vn -0.264687 0.744194 -0.613239
+vn -0.588122 0.634327 -0.501694
+vn 0.517441 0.702170 -0.489059
+vn -0.731864 0.527055 -0.431898
+vn 0.340617 0.765465 -0.545885
+vn 0.996887 0.078555 0.004395
+vn 0.996673 0.081088 -0.002136
+vn -0.850032 0.398846 -0.343974
+vn 0.096255 0.797418 -0.595691
+vn 0.986541 0.153478 -0.056215
+vn -0.935850 0.255287 -0.242836
+vn -0.844508 0.325388 -0.425306
+vn 0.084933 0.645466 -0.759026
+vn 0.987793 0.137791 -0.072573
+vn -0.932035 0.204382 -0.299173
+vn -0.009064 0.612293 -0.790551
+vn 0.845302 0.391552 -0.363475
+vn -0.983978 0.075411 -0.161473
+vn -0.481857 0.692221 -0.537187
+vn -0.053896 0.769066 -0.636860
+vn 0.525651 0.592792 -0.610126
+vn -0.602557 0.519761 -0.605579
+vn 0.342418 0.638813 -0.688925
+vn 0.997040 0.076601 0.001007
+vn 0.996948 0.077700 -0.005737
+vn -0.724845 0.433851 -0.535081
+vn -0.677541 0.374004 -0.633259
+vn 0.103519 0.231452 -0.967315
+vn 0.997223 0.074038 -0.001923
+vn 0.997223 0.073672 -0.008576
+vn -0.838313 0.237465 -0.490707
+vn 0.989166 0.119327 -0.085421
+vn -0.927732 0.143468 -0.344493
+vn 0.019135 0.513871 -0.857631
+vn 0.851131 0.311930 -0.422163
+vn -0.981750 0.043855 -0.184973
+vn -0.442152 0.644002 -0.624256
+vn -0.569414 0.479659 -0.667562
+vn 0.534867 0.461898 -0.707450
+vn 0.266182 0.458602 -0.847804
+vn 0.544725 0.314585 -0.777337
+vn -0.695486 0.202673 -0.689322
+vn -0.717002 0.322336 -0.618030
+vn -0.708579 0.196783 -0.677602
+vn 0.011689 0.027253 -0.999542
+vn 0.997467 0.070956 -0.004334
+vn 0.997528 0.069185 -0.010559
+vn -0.831690 0.138493 -0.537645
+vn 0.099307 0.208991 -0.972839
+vn 0.990600 0.098788 -0.094302
+vn -0.923154 0.074892 -0.377026
+vn 0.002625 0.489303 -0.872066
+vn 0.020844 0.160680 -0.986755
+vn 0.857387 0.222449 -0.464064
+vn -0.979369 0.008332 -0.201819
+vn -0.506485 0.240120 -0.828120
+vn -0.025788 0.037629 -0.998932
+vn 0.863765 0.126591 -0.487655
+vn -0.976928 -0.029786 -0.211402
+vn -0.440474 0.059725 -0.895749
+vn 0.552660 0.154241 -0.818995
+vn -0.679556 0.067385 -0.730491
+vn 0.148991 0.335887 -0.930021
+vn -0.699423 0.061739 -0.712027
+vn -0.039399 0.206763 -0.977569
+vn 0.997681 0.067415 -0.006134
+vn 0.997833 0.064425 -0.011628
+vn 0.116916 0.000183 -0.993133
+vn 0.992096 0.077090 -0.098941
+vn -0.918424 0.001282 -0.395520
+vn -0.824885 0.032289 -0.564318
+vn -0.818140 -0.077120 -0.569781
+vn -0.047792 0.098483 -0.993988
+vn 0.993530 0.055025 -0.099277
+vn 0.067293 -0.084353 -0.994140
+vn 0.870022 0.028016 -0.492203
+vn -0.974517 -0.069063 -0.213324
+vn 0.064119 -0.114505 -0.991333
+vn -0.580645 -0.108310 -0.806909
+vn 0.149022 0.146641 -0.977874
+vn 0.184820 -0.040223 -0.981933
+vn -0.696280 -0.062716 -0.714988
+vn 0.997925 0.063601 -0.007202
+vn 0.998138 0.059572 -0.011719
+vn -0.697043 -0.116947 -0.707389
+vn 0.220588 -0.247017 -0.943541
+vn 0.998169 0.059633 -0.007477
+vn 0.998413 0.054811 -0.010895
+vn -0.828303 -0.157170 -0.537767
+vn -0.042360 -0.236274 -0.970733
+vn 0.994873 0.033479 -0.095340
+vn -0.913785 -0.074496 -0.399274
+vn -0.909360 -0.149571 -0.388134
+vn 0.041353 -0.322794 -0.945555
+vn 0.875729 -0.069643 -0.477706
+vn -0.972228 -0.107944 -0.207556
+vn -0.332499 -0.191137 -0.923521
+vn 0.103122 -0.396741 -0.912107
+vn 0.555406 -0.011780 -0.831446
+vn -0.162389 -0.368084 -0.915464
+vn -0.452315 -0.181341 -0.873196
+vn 0.038057 -0.573077 -0.818598
+vn 0.552324 -0.178899 -0.814173
+vn 0.210028 -0.430799 -0.877621
+vn -0.327464 -0.422651 -0.845027
+vn -0.081271 -0.515397 -0.853053
+vn 0.998413 0.055666 -0.006989
+vn 0.998688 0.050325 -0.009186
+vn -0.702872 -0.252235 -0.665059
+vn 0.996063 0.013184 -0.087405
+vn -0.905789 -0.220252 -0.361888
+vn 0.029267 -0.537767 -0.842555
+vn 0.880825 -0.162633 -0.444594
+vn -0.970153 -0.144993 -0.194311
+vn 0.134312 -0.645802 -0.751579
+vn 0.885372 -0.246895 -0.393811
+vn -0.968352 -0.178747 -0.174047
+vn 0.128208 -0.765648 -0.630299
+vn 0.549120 -0.333811 -0.766167
+vn 0.143864 -0.751610 -0.643696
+vn 0.549181 -0.482040 -0.682638
+vn -0.175512 -0.654378 -0.735496
+vn 0.187567 -0.594287 -0.782037
+vn 0.998627 0.051851 -0.005707
+vn 0.998901 0.046297 -0.006623
+vn -0.853938 -0.245888 -0.458571
+vn -0.670614 -0.441908 -0.595782
+vn -0.107700 -0.650716 -0.751610
+vn 0.997101 -0.005097 -0.075808
+vn -0.904141 -0.281625 -0.321207
+vn -0.011414 -0.662282 -0.749138
+vn -0.117283 -0.747246 -0.654073
+vn 0.997894 -0.020783 -0.060976
+vn -0.859615 -0.325175 -0.394055
+vn -0.854366 -0.394971 -0.337687
+vn -0.050935 -0.760033 -0.647847
+vn 0.889370 -0.319346 -0.327067
+vn -0.966918 -0.207923 -0.147618
+vn 0.099796 -0.824946 -0.556291
+vn 0.553301 -0.604297 -0.573229
+vn 0.204932 -0.808802 -0.551195
+vn -0.073000 -0.776666 -0.625629
+vn 0.180944 -0.718009 -0.672048
+vn 0.998810 0.048341 -0.003693
+vn 0.999054 0.042817 -0.003388
+vn -0.646107 -0.587115 -0.487625
+vn -0.019105 -0.898770 -0.437941
+vn 0.197272 -0.824274 -0.530686
+vn 0.998962 0.045289 -0.001007
+vn 0.999176 0.040010 0.000458
+vn -0.607379 -0.713370 -0.349498
+vn -0.115207 -0.834712 -0.538438
+vn 0.998474 -0.033357 -0.043519
+vn -0.903104 -0.336406 -0.266762
+vn -0.901120 -0.381298 -0.206275
+vn -0.082034 -0.850948 -0.518754
+vn 0.892331 -0.377514 -0.247353
+vn -0.965911 -0.231361 -0.115970
+vn 0.053468 -0.905911 -0.420026
+vn 0.568773 -0.696371 -0.437635
+vn 0.236244 -0.869198 -0.434339
+vn 0.231239 -0.933744 -0.273141
+vn 0.586627 -0.758263 -0.284341
+vn -0.017426 -0.984619 -0.173711
+vn 0.217109 -0.908811 -0.356212
+vn 0.999054 0.042848 0.002197
+vn 0.999237 0.038026 0.004761
+vn -0.853908 -0.457167 -0.248512
+vn -0.832453 -0.533799 -0.148473
+vn -0.106052 -0.912839 -0.394238
+vn 0.998810 -0.042390 -0.024049
+vn -0.128910 -0.931150 -0.341014
+vn 0.893887 -0.419416 -0.158147
+vn -0.897885 -0.417493 -0.139500
+vn 0.019929 -0.961455 -0.274148
+vn 0.894131 -0.443342 -0.062655
+vn -0.965331 -0.248207 -0.080386
+vn -0.965239 -0.257820 -0.042177
+vn -0.009186 -0.992706 -0.120182
+vn 0.596912 -0.793634 -0.117466
+vn 0.174871 -0.981048 -0.083041
+vn 0.245796 -0.955657 -0.162114
+vn -0.563860 -0.815821 -0.128208
+vn -0.516037 -0.856197 -0.024018
+vn 0.999115 0.041078 0.005860
+vn 0.999268 0.036866 0.009339
+vn -0.798791 -0.597980 -0.065584
+vn -0.085543 -0.968596 -0.233375
+vn 0.998840 -0.047578 -0.003204
+vn -0.165990 -0.971129 -0.171270
+vn -0.057222 -0.997742 -0.034883
+vn 0.999207 0.036622 0.014100
+vn -0.895840 -0.438978 -0.068789
+vn -0.785607 -0.618397 0.019715
+vn -0.195471 -0.980560 0.015503
+vn 0.998627 -0.048769 0.018189
+vn -0.965636 -0.259774 -0.002808
+vn -0.036744 -0.998199 0.047029
+vn 0.893124 -0.448347 0.035615
+vn -0.053377 -0.997528 0.045076
+vn 0.127384 -0.989074 0.074068
+vn 0.286538 -0.957549 0.030885
+vn -0.481368 -0.873867 0.067965
+vn 0.999146 0.040071 0.009827
+vn 0.999084 0.039888 0.013886
+vn -0.027955 -0.992798 0.116337
+vn -0.023347 -0.997650 0.063936
+vn 0.320963 -0.920042 0.224586
+vn 0.998993 0.040498 0.017914
+vn -0.787011 -0.604694 0.122166
+vn -0.038575 -0.981384 0.187994
+vn 0.999115 0.037263 0.018799
+vn -0.896512 -0.442946 0.006958
+vn -0.206641 -0.960448 0.186590
+vn 0.998138 -0.045900 0.039491
+vn -0.966491 -0.254067 0.036134
+vn -0.046693 -0.980499 0.190863
+vn 0.598987 -0.799341 0.046968
+vn 0.890927 -0.434187 0.133030
+vn 0.132786 -0.978179 0.159764
+vn -0.057192 -0.981994 0.179876
+vn 0.597552 -0.774041 0.209204
+vn 0.339274 -0.848323 0.406446
+vn -0.491562 -0.858241 0.147496
+vn 0.998871 0.041932 0.021729
+vn -0.565081 -0.786493 0.249062
+vn -0.021790 -0.920469 0.390179
+vn 0.998962 0.038789 0.023316
+vn -0.898312 -0.431593 0.082034
+vn -0.799982 -0.556658 0.223914
+vn -0.020203 -0.945341 0.325388
+vn 0.997436 -0.039033 0.059908
+vn -0.967772 -0.240852 0.073214
+vn 0.169836 -0.959868 0.223090
+vn 0.592792 -0.718802 0.363170
+vn -0.900967 -0.405744 0.153661
+vn -0.969451 -0.220679 0.106998
+vn 0.170904 -0.916013 0.362896
+vn 0.887600 -0.401379 0.225837
+vn 0.883297 -0.351177 0.310526
+vn -0.143468 -0.883145 0.446577
+vn 0.348155 -0.746879 0.566485
+vn -0.635243 -0.684622 0.357341
+vn 0.998688 0.044069 0.025178
+vn -0.824061 -0.487320 0.288766
+vn -0.203467 -0.917539 0.341594
+vn -0.189062 -0.843776 0.502243
+vn 0.998749 0.041169 0.027436
+vn -0.904904 -0.366100 0.217048
+vn 0.028748 -0.876370 0.480758
+vn 0.996460 -0.028382 0.078738
+vn 0.998505 0.044282 0.031068
+vn -0.838893 -0.393567 0.375927
+vn 0.070132 -0.790216 0.608753
+vn 0.995331 -0.014252 0.095279
+vn -0.971435 -0.194281 0.136204
+vn 0.132603 -0.823817 0.551073
+vn 0.585925 -0.635090 0.503311
+vn 0.577715 -0.525712 0.624378
+vn -0.249458 -0.730308 0.635884
+vn -0.677450 -0.511155 0.528886
+vn -0.000641 -0.823328 0.567522
+vn 0.354869 -0.618183 0.701315
+vn 0.998505 0.046815 0.028108
+vn -0.153081 -0.708701 0.688681
+vn 0.015046 -0.693136 0.720603
+vn 0.359874 -0.466201 0.808130
+vn 0.998260 0.050081 0.030427
+vn -0.712210 -0.368603 0.597339
+vn 0.015076 -0.534349 0.845119
+vn 0.998260 0.048097 0.034028
+vn -0.908902 -0.314097 0.274178
+vn -0.837275 -0.318339 0.444472
+vn 0.112522 -0.657094 0.745354
+vn 0.878140 -0.285440 0.383862
+vn 0.994049 0.002838 0.108890
+vn -0.973632 -0.162725 0.159673
+vn 0.079043 -0.651418 0.754570
+vn 0.872341 -0.206641 0.443007
+vn -0.379650 -0.543687 0.748466
+vn -0.475265 -0.251350 0.843135
+vn 0.568499 -0.394848 0.721702
+vn 0.558641 -0.247505 0.791589
+vn -0.732963 -0.233222 0.638997
+vn 0.366466 -0.297952 0.881405
+vn 0.998016 0.053743 0.032044
+vn -0.831690 -0.223701 0.508103
+vn -0.116092 -0.513871 0.849940
+vn -0.092380 -0.363811 0.926847
+vn 0.997955 0.052400 0.036225
+vn -0.912351 -0.254799 0.320383
+vn 0.122623 -0.418348 0.899960
+vn 0.992615 0.022370 0.118992
+vn -0.976012 -0.127201 0.176519
+vn -0.035859 -0.338450 0.940275
+vn -0.916684 -0.186743 0.353252
+vn -0.978454 -0.089053 0.186102
+vn -0.152043 -0.137059 0.978820
+vn 0.866146 -0.117771 0.485672
+vn 0.548509 -0.089358 0.831324
+vn -0.499710 -0.087191 0.861782
+vn -0.712699 -0.118076 0.691427
+vn 0.022614 -0.362712 0.931608
+vn 0.369549 -0.117771 0.921690
+vn 0.997772 0.057619 0.032899
+vn -0.083590 -0.177953 0.980468
+vn 0.997650 0.057070 0.037538
+vn -0.921384 -0.113132 0.371746
+vn 0.063601 -0.211982 0.975188
+vn 0.991150 0.043672 0.125126
+vn 0.997345 0.061953 0.037935
+vn -0.829279 -0.132756 0.542802
+vn -0.926054 -0.037324 0.375500
+vn 0.037690 -0.054811 0.997772
+vn 0.859767 -0.022187 0.510178
+vn 0.989685 0.065889 0.127018
+vn -0.980865 -0.049776 0.188055
+vn -0.245125 -0.018342 0.969298
+vn 0.538499 0.073458 0.839381
+vn -0.552080 -0.018647 0.833552
+vn 0.364238 0.066408 0.928922
+vn -0.711478 -0.011475 0.702597
+vn 0.031343 -0.158574 0.986847
+vn 0.997528 0.061586 0.033021
+vn -0.071932 0.012207 0.997314
+vn 0.029176 0.043703 0.998596
+vn 0.039552 0.239692 0.970031
+vn 0.997314 0.065462 0.032350
+vn -0.835902 -0.023438 0.548357
+vn -0.842280 0.084902 0.532273
+vn -0.048036 0.122135 0.991333
+vn 0.997040 0.066836 0.037324
+vn -0.930479 0.037751 0.364360
+vn -0.014863 0.022034 0.999634
+vn 0.853420 0.076388 0.515549
+vn 0.988281 0.088198 0.124454
+vn -0.983154 -0.010895 0.182287
+vn -0.287851 0.176611 0.941221
+vn 0.847407 0.174261 0.501480
+vn -0.576708 0.166082 0.799860
+vn 0.352794 0.248085 0.902188
+vn -0.722007 0.128758 0.679739
+vn -0.605853 0.304514 0.734947
+vn 0.529008 0.234779 0.815485
+vn 0.337230 0.419202 0.842891
+vn -0.729362 0.259651 0.632893
+vn 0.055849 0.427595 0.902219
+vn 0.997101 0.069124 0.030946
+vn -0.848079 0.188055 0.495346
+vn -0.022523 0.291757 0.956206
+vn 0.996765 0.071535 0.035768
+vn -0.934477 0.109226 0.338755
+vn -0.066775 0.265389 0.961821
+vn 0.986969 0.109684 0.117496
+vn -0.985260 0.026124 0.169042
+vn -0.423841 0.260079 0.867550
+vn 0.520371 0.388379 0.760491
+vn -0.987030 0.059877 0.148778
+vn -0.553056 0.497757 0.668050
+vn 0.841914 0.267617 0.468520
+vn 0.512955 0.528306 0.676534
+vn -0.643544 0.442030 0.624805
+vn 0.324656 0.574297 0.751488
+vn -0.735710 0.378918 0.561357
+vn 0.074831 0.583087 0.808924
+vn 0.996948 0.072420 0.028871
+vn -0.853053 0.282083 0.438978
+vn -0.013337 0.395398 0.918393
+vn 0.996551 0.075838 0.033326
+vn -0.937956 0.174383 0.299692
+vn -0.186468 0.593951 0.782556
+vn 0.985839 0.129490 0.106296
+vn -0.940703 0.230659 0.248634
+vn -0.325968 0.706595 0.628040
+vn 0.837184 0.352794 0.417859
+vn 0.984924 0.146733 0.091311
+vn -0.543962 0.651540 0.528703
+vn 0.507004 0.649251 0.566881
+vn 0.325358 0.705710 0.629353
+vn -0.599200 0.581439 0.550340
+vn 0.996796 0.075259 0.026185
+vn -0.857051 0.363323 0.365307
+vn -0.103153 0.562700 0.820154
+vn 0.996368 0.079592 0.030030
+vn -0.998047 -0.060671 -0.012879
+vn 0.998047 0.060671 0.012879
+vn -0.988464 0.089053 0.122349
+vn -0.740745 0.481979 0.467910
+vn 0.102420 0.732994 0.672445
+vn 0.833399 0.426496 0.351421
+usemtl Body
+s 1
+f 7981//5754 7980//5755 7996//5756
+f 7976//5757 7975//5758 7990//5759
+f 7987//5760 7986//5761 8002//5762
+f 7982//5763 7981//5754 7996//5756
+f 7977//5764 7976//5757 7991//5765
+f 7983//5766 7982//5763 7998//5767
+f 7978//5768 7977//5764 7993//5769
+f 7984//5770 7983//5766 7999//5771
+f 7979//5772 7978//5768 7994//5773
+f 7974//5774 7973//5775 7988//5776
+f 7985//5777 7984//5770 8000//5778
+f 7980//5755 7979//5772 7995//5779
+f 7975//5758 7974//5774 7989//5780
+f 7986//5761 7985//5777 8000//5778
+f 8001//5781 8000//5778 8016//5782
+f 7996//5756 7995//5779 8011//5783
+f 7991//5765 7990//5759 8005//5784
+f 8002//5762 8001//5781 8017//5785
+f 7997//5786 7996//5756 8011//5783
+f 7992//5787 7991//5765 8007//5788
+f 7998//5767 7997//5786 8013//5789
+f 7993//5769 7992//5787 8008//5790
+f 7999//5771 7998//5767 8014//5791
+f 7994//5773 7993//5769 8009//5792
+f 7989//5780 7988//5776 8003//5793
+f 8000//5778 7999//5771 8015//5794
+f 7995//5779 7994//5773 8010//5795
+f 7990//5759 7989//5780 8004//5796
+f 8015//5794 8014//5791 8030//5797
+f 8010//5795 8009//5792 8024//5798
+f 8005//5784 8004//5796 8020//5799
+f 8016//5782 8015//5794 8030//5797
+f 8011//5783 8010//5795 8026//5800
+f 8006//5801 8005//5784 8021//5802
+f 8017//5785 8016//5782 8031//5803
+f 8012//5804 8011//5783 8027//5805
+f 8007//5788 8006//5801 8021//5802
+f 8013//5789 8012//5804 8028//5806
+f 8008//5790 8007//5788 8023//5807
+f 8014//5791 8013//5789 8029//5808
+f 8009//5792 8008//5790 8024//5798
+f 8004//5796 8003//5793 8019//5809
+f 8029//5808 8028//5806 8044//5810
+f 8024//5798 8023//5807 8039//5811
+f 8019//5809 8018//5812 8034//5813
+f 8030//5797 8029//5808 8045//5814
+f 8025//5815 8024//5798 8039//5811
+f 8020//5799 8019//5809 8035//5816
+f 8031//5803 8030//5797 8046//5817
+f 8026//5800 8025//5815 8041//5818
+f 8021//5802 8020//5799 8036//5819
+f 8032//5820 8031//5803 8047//5821
+f 8027//5805 8026//5800 8042//5822
+f 8022//5823 8021//5802 8037//5824
+f 8028//5806 8027//5805 8043//5825
+f 8023//5807 8022//5823 8038//5826
+f 8037//5824 8036//5819 8052//5827
+f 8043//5825 8042//5822 8058//5828
+f 8038//5826 8037//5824 8053//5829
+f 8044//5810 8043//5825 8059//5830
+f 8039//5811 8038//5826 8054//5831
+f 8034//5813 8033//5832 8049//5833
+f 8045//5814 8044//5810 8059//5830
+f 8040//5834 8039//5811 8055//5835
+f 8035//5816 8034//5813 8050//5836
+f 8046//5817 8045//5814 8060//5837
+f 8041//5818 8040//5834 8056//5838
+f 8036//5819 8035//5816 8051//5839
+f 8047//5821 8046//5817 8062//5840
+f 8042//5822 8041//5818 8057//5841
+f 8056//5838 8055//5835 8070//5842
+f 8051//5839 8050//5836 8066//5843
+f 8062//5840 8061//5844 8077//5845
+f 8057//5841 8056//5838 8071//5846
+f 8052//5827 8051//5839 8066//5843
+f 8058//5828 8057//5841 8073//5847
+f 8053//5829 8052//5827 8067//5848
+f 8059//5830 8058//5828 8074//5849
+f 8054//5831 8053//5829 8068//5850
+f 8049//5833 8048//5851 8064//5852
+f 8060//5837 8059//5830 8075//5853
+f 8055//5835 8054//5831 8069//5854
+f 8050//5836 8049//5833 8065//5855
+f 8061//5844 8060//5837 8076//5856
+f 8075//5853 8074//5849 8090//5857
+f 8070//5842 8069//5854 8084//5858
+f 8065//5855 8064//5852 8080//5859
+f 8076//5856 8075//5853 8091//5860
+f 8071//5846 8070//5842 8085//5861
+f 8066//5843 8065//5855 8081//5862
+f 8077//5845 8076//5856 8092//5863
+f 8072//5864 8071//5846 8086//5865
+f 8067//5848 8066//5843 8082//5866
+f 8073//5847 8072//5864 8088//5867
+f 8068//5850 8067//5848 8083//5868
+f 8074//5849 8073//5847 8088//5867
+f 8069//5854 8068//5850 8083//5868
+f 8064//5852 8063//5869 8079//5870
+f 8089//5871 8088//5867 8103//5872
+f 8084//5858 8083//5868 8099//5873
+f 8079//5870 8078//5874 8094//5875
+f 8090//5857 8089//5871 8105//5876
+f 8085//5861 8084//5858 8099//5873
+f 8080//5859 8079//5870 8095//5877
+f 8091//5860 8090//5857 8106//5878
+f 8086//5865 8085//5861 8100//5879
+f 8081//5862 8080//5859 8096//5880
+f 8092//5863 8091//5860 8107//5881
+f 8087//5882 8086//5865 8102//5883
+f 8082//5866 8081//5862 8097//5884
+f 8088//5867 8087//5882 8103//5872
+f 8083//5868 8082//5866 8098//5885
+f 8097//5884 8096//5880 8112//5886
+f 8103//5872 8102//5883 8118//5887
+f 8098//5885 8097//5884 8112//5886
+f 8104//5888 8103//5872 8119//5889
+f 8099//5873 8098//5885 8114//5890
+f 8094//5875 8093//5891 8109//5892
+f 8105//5876 8104//5888 8120//5893
+f 8100//5879 8099//5873 8115//5894
+f 8095//5877 8094//5875 8110//5895
+f 8106//5878 8105//5876 8121//5896
+f 8101//5897 8100//5879 8116//5898
+f 8096//5880 8095//5877 8111//5899
+f 8107//5881 8106//5878 8122//5900
+f 8102//5883 8101//5897 8117//5901
+f 8116//5898 8115//5894 8131//5902
+f 8111//5899 8110//5895 8126//5903
+f 8122//5900 8121//5896 8137//5904
+f 8117//5901 8116//5898 8132//5905
+f 8112//5886 8111//5899 8127//5906
+f 8118//5887 8117//5901 8133//5907
+f 8113//5908 8112//5886 8127//5906
+f 8119//5889 8118//5887 8134//5909
+f 8114//5890 8113//5908 8129//5910
+f 8109//5892 8108//5911 8124//5912
+f 8120//5893 8119//5889 8134//5909
+f 8115//5894 8114//5890 8130//5913
+f 8110//5895 8109//5892 8125//5914
+f 8121//5896 8120//5893 8136//5915
+f 8135//5916 8134//5909 8150//5917
+f 8130//5913 8129//5910 8144//5918
+f 8125//5914 8124//5912 8140//5919
+f 8136//5915 8135//5916 8150//5917
+f 8131//5902 8130//5913 8145//5920
+f 8126//5903 8125//5914 8141//5921
+f 8137//5904 8136//5915 8152//5922
+f 8132//5905 8131//5902 8146//5923
+f 8127//5906 8126//5903 8141//5921
+f 8133//5907 8132//5905 8148//5924
+f 8128//5925 8127//5906 8143//5926
+f 8134//5909 8133//5907 8149//5927
+f 8129//5910 8128//5925 8143//5926
+f 8124//5912 8123//5928 8139//5929
+f 8149//5927 8148//5924 8164//5930
+f 8144//5918 8143//5926 8158//5931
+f 8139//5929 8138//5932 8154//5933
+f 8150//5917 8149//5927 8165//5934
+f 8145//5920 8144//5918 8159//5935
+f 8140//5919 8139//5929 8155//5936
+f 8151//5937 8150//5917 8166//5938
+f 8146//5923 8145//5920 8160//5939
+f 8141//5921 8140//5919 8156//5940
+f 8152//5922 8151//5937 8167//5941
+f 8147//5942 8146//5923 8161//5943
+f 8142//5944 8141//5921 8156//5940
+f 8148//5924 8147//5942 8162//5945
+f 8143//5926 8142//5944 8158//5931
+f 8163//5946 8162//5945 8177//5947
+f 8158//5931 8157//5948 8173//5949
+f 8164//5930 8163//5946 8178//5950
+f 8159//5935 8158//5931 8174//5951
+f 8154//5933 8153//5952 8169//5953
+f 8165//5934 8164//5930 8179//5954
+f 8160//5939 8159//5935 8174//5951
+f 8155//5936 8154//5933 8170//5955
+f 8166//5938 8165//5934 8181//5956
+f 8161//5943 8160//5939 8175//5957
+f 8156//5940 8155//5936 8171//5958
+f 8167//5941 8166//5938 8182//5959
+f 8162//5945 8161//5943 8176//5960
+f 8157//5948 8156//5940 8171//5958
+f 8171//5958 8170//5955 8186//5961
+f 8182//5959 8181//5956 8197//5962
+f 8177//5947 8176//5960 8191//5963
+f 8172//5964 8171//5958 8186//5961
+f 8178//5950 8177//5947 8192//5965
+f 8173//5949 8172//5964 8187//5966
+f 8179//5954 8178//5950 8193//5967
+f 8174//5951 8173//5949 8188//5968
+f 8169//5953 8168//5969 8184//5970
+f 8180//5971 8179//5954 8194//5972
+f 8175//5957 8174//5951 8189//5973
+f 8170//5955 8169//5953 8185//5974
+f 8181//5956 8180//5971 8196//5975
+f 8176//5960 8175//5957 8190//5976
+f 8190//5976 8189//5973 8204//5977
+f 8185//5974 8184//5970 8200//5978
+f 8196//5975 8195//5979 8210//5980
+f 8191//5963 8190//5976 8205//5981
+f 8186//5961 8185//5974 8201//5982
+f 8197//5962 8196//5975 8212//5983
+f 8192//5965 8191//5963 8206//5984
+f 8187//5966 8186//5961 8202//5985
+f 8193//5967 8192//5965 8207//5986
+f 8188//5968 8187//5966 8202//5985
+f 8194//5972 8193//5967 8208//5987
+f 8189//5973 8188//5968 8203//5988
+f 8184//5970 8183//5989 8199//5990
+f 8195//5979 8194//5972 8209//5991
+f 8209//5991 8208//5987 8223//5992
+f 8204//5977 8203//5988 8218//5993
+f 8199//5990 8198//5994 8214//5995
+f 8210//5980 8209//5991 8224//5996
+f 8205//5981 8204//5977 8219//5997
+f 8200//5978 8199//5990 8215//5998
+f 8211//5999 8210//5980 8226//6000
+f 8206//5984 8205//5981 8220//6001
+f 8201//5982 8200//5978 8216//6002
+f 8212//5983 8211//5999 8227//6003
+f 8207//5986 8206//5984 8221//6004
+f 8202//5985 8201//5982 8217//6005
+f 8208//5987 8207//5986 8222//6006
+f 8203//5988 8202//5985 8217//6005
+f 8223//5992 8222//6006 8237//6007
+f 8218//5993 8217//6005 8232//6008
+f 8224//5996 8223//5992 8238//6009
+f 8219//5997 8218//5993 8233//6010
+f 8214//5995 8213//6011 8229//6012
+f 8225//6013 8224//5996 8240//6014
+f 8220//6001 8219//5997 8234//6015
+f 8215//5998 8214//5995 8230//6016
+f 8226//6000 8225//6013 8240//6014
+f 8221//6004 8220//6001 8235//6017
+f 8216//6002 8215//5998 8231//6018
+f 8227//6003 8226//6000 8241//6019
+f 8222//6006 8221//6004 8236//6020
+f 8217//6005 8216//6002 8232//6008
+f 8231//6018 8230//6016 8246//6021
+f 8242//6022 8241//6019 8257//6023
+f 8237//6007 8236//6020 8251//6024
+f 8232//6008 8231//6018 8247//6025
+f 8238//6009 8237//6007 8252//6026
+f 8233//6010 8232//6008 8248//6027
+f 8239//6028 8238//6009 8254//6029
+f 8234//6015 8233//6010 8248//6027
+f 8229//6012 8228//6030 8244//6031
+f 8240//6014 8239//6028 8255//6032
+f 8235//6017 8234//6015 8249//6033
+f 8230//6016 8229//6012 8245//6034
+f 8241//6019 8240//6014 8255//6032
+f 8236//6020 8235//6017 8250//6035
+f 8250//6035 8249//6033 8264//6036
+f 8245//6034 8244//6031 8259//6037
+f 8256//6038 8255//6032 8270//6039
+f 8251//6024 8250//6035 8265//6040
+f 8246//6021 8245//6034 8260//6041
+f 8257//6023 8256//6038 8272//6042
+f 8252//6026 8251//6024 8266//6043
+f 8247//6025 8246//6021 8261//6044
+f 8253//6045 8252//6026 8267//6046
+f 8248//6027 8247//6025 8263//6047
+f 8254//6029 8253//6045 8269//6048
+f 8249//6033 8248//6027 8263//6047
+f 8244//6031 8243//6049 8258//6050
+f 8255//6032 8254//6029 8270//6039
+f 8269//6048 8268//6051 8283//6052
+f 8264//6036 8263//6047 8278//6053
+f 8259//6037 8258//6050 8273//6054
+f 8270//6039 8269//6048 8285//6055
+f 8265//6040 8264//6036 8279//6056
+f 8260//6041 8259//6037 8274//6057
+f 8271//6058 8270//6039 8285//6055
+f 8266//6043 8265//6040 8280//6059
+f 8261//6044 8260//6041 8275//6060
+f 8272//6042 8271//6058 8287//6061
+f 8267//6046 8266//6043 8281//6062
+f 8262//6063 8261//6044 8276//6064
+f 8268//6051 8267//6046 8282//6065
+f 8263//6047 8262//6063 8278//6053
+f 8283//6052 8282//6065 8298//6066
+f 8278//6053 8277//6067 8293//6068
+f 8284//6069 8283//6052 8298//6066
+f 8279//6056 8278//6053 8293//6068
+f 8274//6057 8273//6054 8288//6070
+f 8285//6055 8284//6069 8299//6071
+f 8280//6059 8279//6056 8294//6072
+f 8275//6060 8274//6057 8289//6073
+f 8286//6074 8285//6055 8300//6075
+f 8281//6062 8280//6059 8296//6076
+f 8276//6064 8275//6060 8290//6077
+f 8287//6061 8286//6074 8302//6078
+f 8282//6065 8281//6062 8297//6079
+f 8277//6067 8276//6064 8292//6080
+f 8302//6078 8301//6081 8318//6082
+f 8297//6079 8296//6076 8313//6083
+f 8292//6080 8291//6084 8307//6085
+f 8298//6066 8297//6079 8314//6086
+f 8293//6068 8292//6080 8309//6087
+f 8299//6071 8298//6066 8315//6088
+f 8294//6072 8293//6068 8309//6087
+f 8289//6073 8288//6070 8304//6089
+f 8300//6075 8299//6071 8316//6090
+f 8295//6091 8294//6072 8311//6092
+f 8290//6077 8289//6073 8305//6093
+f 8301//6081 8300//6075 8317//6094
+f 8296//6076 8295//6091 8312//6095
+f 8291//6084 8290//6077 8306//6096
+f 8306//6096 8305//6093 8320//6097
+f 8317//6094 8316//6090 8331//6098
+f 8312//6095 8311//6092 8327//6099
+f 8307//6085 8306//6096 8321//6100
+f 8318//6082 8317//6094 8333//6101
+f 8313//6083 8312//6095 8328//6102
+f 8308//6103 8307//6085 8323//6104
+f 8314//6086 8313//6083 8329//6105
+f 8309//6087 8308//6103 8323//6104
+f 8315//6088 8314//6086 8330//6106
+f 8310//6107 8309//6087 8324//6108
+f 8305//6093 8304//6089 8319//6109
+f 8316//6090 8315//6088 8331//6098
+f 8311//6092 8310//6107 8326//6110
+f 8325//6111 8324//6108 8339//6112
+f 8320//6097 8319//6109 8334//6113
+f 8331//6098 8330//6106 8345//6114
+f 8326//6110 8325//6111 8340//6115
+f 8321//6100 8320//6097 8335//6116
+f 8332//6117 8331//6098 8346//6118
+f 8327//6099 8326//6110 8342//6119
+f 8322//6120 8321//6100 8336//6121
+f 8333//6101 8332//6117 8348//6122
+f 8328//6102 8327//6099 8343//6123
+f 8323//6104 8322//6120 8337//6124
+f 8329//6105 8328//6102 8344//6125
+f 8324//6108 8323//6104 8339//6112
+f 8330//6106 8329//6105 8345//6114
+f 8344//6125 8343//6123 8359//6126
+f 8339//6112 8338//6127 8353//6128
+f 8345//6114 8344//6125 8360//6129
+f 8340//6115 8339//6112 8354//6130
+f 8335//6116 8334//6113 8349//6131
+f 8346//6118 8345//6114 8361//6132
+f 8341//6133 8340//6115 8356//6134
+f 8336//6121 8335//6116 8350//6135
+f 8347//6136 8346//6118 8361//6132
+f 8342//6119 8341//6133 8357//6137
+f 8337//6124 8336//6121 8351//6138
+f 8348//6122 8347//6136 8363//6139
+f 8343//6123 8342//6119 8358//6140
+f 8338//6127 8337//6124 8353//6128
+f 8363//6139 8362//6141 8378//6142
+f 8358//6140 8357//6137 8373//6143
+f 8353//6128 8352//6144 8368//6145
+f 8359//6126 8358//6140 8374//6146
+f 8354//6130 8353//6128 8368//6145
+f 8360//6129 8359//6126 8375//6147
+f 8355//6148 8354//6130 8369//6149
+f 8350//6135 8349//6131 8364//6150
+f 8361//6132 8360//6129 8375//6147
+f 8356//6134 8355//6148 8371//6151
+f 8351//6138 8350//6135 8365//6152
+f 8362//6141 8361//6132 8377//6153
+f 8357//6137 8356//6134 8372//6154
+f 8352//6144 8351//6138 8366//6155
+f 8366//6155 8365//6152 8380//6156
+f 8377//6153 8376//6157 8392//6158
+f 8372//6154 8371//6151 8387//6159
+f 8367//6160 8366//6155 8381//6161
+f 8378//6142 8377//6153 8393//6162
+f 8373//6143 8372//6154 8388//6163
+f 8368//6145 8367//6160 8383//6164
+f 8374//6146 8373//6143 8389//6165
+f 8369//6149 8368//6145 8384//6166
+f 8375//6147 8374//6146 8390//6167
+f 8370//6168 8369//6149 8384//6166
+f 8365//6152 8364//6150 8379//6169
+f 8376//6157 8375//6147 8390//6167
+f 8371//6151 8370//6168 8386//6170
+f 8385//6171 8384//6166 8400//6172
+f 8380//6156 8379//6169 8394//6173
+f 8391//6174 8390//6167 8406//6175
+f 8386//6170 8385//6171 8401//6176
+f 8381//6161 8380//6156 8395//6177
+f 8392//6158 8391//6174 8407//6178
+f 8387//6159 8386//6170 8402//6179
+f 8382//6180 8381//6161 8396//6181
+f 8393//6162 8392//6158 8408//6182
+f 8388//6163 8387//6159 8403//6183
+f 8383//6164 8382//6180 8397//6184
+f 8389//6165 8388//6163 8404//6185
+f 8384//6166 8383//6164 8399//6186
+f 8390//6167 8389//6165 8405//6187
+f 8404//6185 8403//6183 8419//6188
+f 8399//6186 8398//6189 8414//6190
+f 8405//6187 8404//6185 8420//6191
+f 8400//6172 8399//6186 8415//6192
+f 8395//6177 8394//6173 8409//6193
+f 8406//6175 8405//6187 8421//6194
+f 8401//6176 8400//6172 8416//6195
+f 8396//6181 8395//6177 8410//6196
+f 8407//6178 8406//6175 8422//6197
+f 8402//6179 8401//6176 8417//6198
+f 8397//6184 8396//6181 8411//6199
+f 8408//6182 8407//6178 8423//6200
+f 8403//6183 8402//6179 8418//6201
+f 8398//6189 8397//6184 8413//6202
+f 8423//6200 8422//6197 8439//6203
+f 8418//6201 8417//6198 8434//6204
+f 8413//6202 8412//6205 8429//6206
+f 8419//6188 8418//6201 8435//6207
+f 8414//6190 8413//6202 8430//6208
+f 8420//6191 8419//6188 8436//6209
+f 8415//6192 8414//6190 8431//6210
+f 8410//6196 8409//6193 8425//6211
+f 8421//6194 8420//6191 8437//6212
+f 8416//6195 8415//6192 8432//6213
+f 8411//6199 8410//6196 8426//6214
+f 8422//6197 8421//6194 8438//6215
+f 8417//6198 8416//6195 8433//6216
+f 8412//6205 8411//6199 8427//6217
+f 8438//6215 8437//6212 8453//6218
+f 8433//6216 8432//6213 8448//6219
+f 8428//6220 8427//6217 8442//6221
+f 8439//6203 8438//6215 8453//6218
+f 8434//6204 8433//6216 8449//6222
+f 8429//6206 8428//6220 8444//6223
+f 8435//6207 8434//6204 8449//6222
+f 8430//6208 8429//6206 8445//6224
+f 8436//6209 8435//6207 8450//6225
+f 8431//6210 8430//6208 8445//6224
+f 8426//6214 8425//6211 8440//6226
+f 8437//6212 8436//6209 8452//6227
+f 8432//6213 8431//6210 8447//6228
+f 8427//6217 8426//6214 8441//6229
+f 8303//6230 7987//5760 8002//5762
+f 7973//5775 8424//6231 7988//5776
+f 8303//6230 8002//5762 8017//5785
+f 7988//5776 8424//6231 8003//5793
+f 8303//6230 8017//5785 8032//5820
+f 8003//5793 8424//6231 8018//5812
+f 8018//5812 8424//6231 8033//5832
+f 8303//6230 8032//5820 8047//5821
+f 8303//6230 8047//5821 8062//5840
+f 8033//5832 8424//6231 8048//5851
+f 8303//6230 8062//5840 8077//5845
+f 8048//5851 8424//6231 8063//5869
+f 8303//6230 8077//5845 8092//5863
+f 8063//5869 8424//6231 8078//5874
+f 8078//5874 8424//6231 8093//5891
+f 8303//6230 8092//5863 8107//5881
+f 8303//6230 8107//5881 8122//5900
+f 8093//5891 8424//6231 8108//5911
+f 8303//6230 8122//5900 8137//5904
+f 8108//5911 8424//6231 8123//5928
+f 8303//6230 8137//5904 8152//5922
+f 8123//5928 8424//6231 8138//5932
+f 8303//6230 8152//5922 8167//5941
+f 8138//5932 8424//6231 8153//5952
+f 8303//6230 8167//5941 8182//5959
+f 8153//5952 8424//6231 8168//5969
+f 8303//6230 8182//5959 8197//5962
+f 8168//5969 8424//6231 8183//5989
+f 8303//6230 8197//5962 8212//5983
+f 8183//5989 8424//6231 8198//5994
+f 8303//6230 8212//5983 8227//6003
+f 8198//5994 8424//6231 8213//6011
+f 8303//6230 8227//6003 8242//6022
+f 8213//6011 8424//6231 8228//6030
+f 8303//6230 8242//6022 8257//6023
+f 8228//6030 8424//6231 8243//6049
+f 8303//6230 8257//6023 8272//6042
+f 8243//6049 8424//6231 8258//6050
+f 8303//6230 8272//6042 8287//6061
+f 8258//6050 8424//6231 8273//6054
+f 8303//6230 8287//6061 8302//6078
+f 8273//6054 8424//6231 8288//6070
+f 8303//6230 8302//6078 8318//6082
+f 8288//6070 8424//6231 8304//6089
+f 8303//6230 8318//6082 8333//6101
+f 8304//6089 8424//6231 8319//6109
+f 8303//6230 8333//6101 8348//6122
+f 8319//6109 8424//6231 8334//6113
+f 8334//6113 8424//6231 8349//6131
+f 8303//6230 8348//6122 8363//6139
+f 8303//6230 8363//6139 8378//6142
+f 8349//6131 8424//6231 8364//6150
+f 8303//6230 8378//6142 8393//6162
+f 8364//6150 8424//6231 8379//6169
+f 8303//6230 8393//6162 8408//6182
+f 8379//6169 8424//6231 8394//6173
+f 8394//6173 8424//6231 8409//6193
+f 8303//6230 8408//6182 8423//6200
+f 8303//6230 8423//6200 8439//6203
+f 8409//6193 8424//6231 8425//6211
+f 8303//6230 8439//6203 8454//6232
+f 8425//6211 8424//6231 8440//6226
+f 8441//6229 8440//6226 7973//5775
+f 8452//6227 8451//6233 7984//5770
+f 8447//6228 8446//6234 7979//5772
+f 8442//6221 8441//6229 7974//5774
+f 8453//6218 8452//6227 7985//5777
+f 8448//6219 8447//6228 7981//5754
+f 8443//6235 8442//6221 7975//5758
+f 8454//6232 8453//6218 7986//5761
+f 8449//6222 8448//6219 7981//5754
+f 8444//6223 8443//6235 7977//5764
+f 8303//6230 8454//6232 7987//5760
+f 8450//6225 8449//6222 7982//5763
+f 8445//6224 8444//6223 7978//5768
+f 8440//6226 8424//6231 7973//5775
+f 8451//6233 8450//6225 7983//5766
+f 8446//6234 8445//6224 7978//5768
+f 7980//5755 7995//5779 7996//5756
+f 7991//5765 7976//5757 7990//5759
+f 7986//5761 8001//5781 8002//5762
+f 7997//5786 7982//5763 7996//5756
+f 7992//5787 7977//5764 7991//5765
+f 7982//5763 7997//5786 7998//5767
+f 7977//5764 7992//5787 7993//5769
+f 7983//5766 7998//5767 7999//5771
+f 7978//5768 7993//5769 7994//5773
+f 7989//5780 7974//5774 7988//5776
+f 7984//5770 7999//5771 8000//5778
+f 7979//5772 7994//5773 7995//5779
+f 7990//5759 7975//5758 7989//5780
+f 8001//5781 7986//5761 8000//5778
+f 8000//5778 8015//5794 8016//5782
+f 7995//5779 8010//5795 8011//5783
+f 8006//5801 7991//5765 8005//5784
+f 8001//5781 8016//5782 8017//5785
+f 8012//5804 7997//5786 8011//5783
+f 7991//5765 8006//5801 8007//5788
+f 7997//5786 8012//5804 8013//5789
+f 7992//5787 8007//5788 8008//5790
+f 7998//5767 8013//5789 8014//5791
+f 7993//5769 8008//5790 8009//5792
+f 8004//5796 7989//5780 8003//5793
+f 7999//5771 8014//5791 8015//5794
+f 7994//5773 8009//5792 8010//5795
+f 8005//5784 7990//5759 8004//5796
+f 8014//5791 8029//5808 8030//5797
+f 8025//5815 8010//5795 8024//5798
+f 8004//5796 8019//5809 8020//5799
+f 8031//5803 8016//5782 8030//5797
+f 8010//5795 8025//5815 8026//5800
+f 8005//5784 8020//5799 8021//5802
+f 8032//5820 8017//5785 8031//5803
+f 8011//5783 8026//5800 8027//5805
+f 8022//5823 8007//5788 8021//5802
+f 8012//5804 8027//5805 8028//5806
+f 8007//5788 8022//5823 8023//5807
+f 8013//5789 8028//5806 8029//5808
+f 8008//5790 8023//5807 8024//5798
+f 8003//5793 8018//5812 8019//5809
+f 8028//5806 8043//5825 8044//5810
+f 8023//5807 8038//5826 8039//5811
+f 8018//5812 8033//5832 8034//5813
+f 8029//5808 8044//5810 8045//5814
+f 8040//5834 8025//5815 8039//5811
+f 8019//5809 8034//5813 8035//5816
+f 8030//5797 8045//5814 8046//5817
+f 8025//5815 8040//5834 8041//5818
+f 8020//5799 8035//5816 8036//5819
+f 8031//5803 8046//5817 8047//5821
+f 8026//5800 8041//5818 8042//5822
+f 8021//5802 8036//5819 8037//5824
+f 8027//5805 8042//5822 8043//5825
+f 8022//5823 8037//5824 8038//5826
+f 8036//5819 8051//5839 8052//5827
+f 8042//5822 8057//5841 8058//5828
+f 8037//5824 8052//5827 8053//5829
+f 8043//5825 8058//5828 8059//5830
+f 8038//5826 8053//5829 8054//5831
+f 8033//5832 8048//5851 8049//5833
+f 8060//5837 8045//5814 8059//5830
+f 8039//5811 8054//5831 8055//5835
+f 8034//5813 8049//5833 8050//5836
+f 8061//5844 8046//5817 8060//5837
+f 8040//5834 8055//5835 8056//5838
+f 8035//5816 8050//5836 8051//5839
+f 8046//5817 8061//5844 8062//5840
+f 8041//5818 8056//5838 8057//5841
+f 8071//5846 8056//5838 8070//5842
+f 8050//5836 8065//5855 8066//5843
+f 8061//5844 8076//5856 8077//5845
+f 8072//5864 8057//5841 8071//5846
+f 8067//5848 8052//5827 8066//5843
+f 8057//5841 8072//5864 8073//5847
+f 8068//5850 8053//5829 8067//5848
+f 8058//5828 8073//5847 8074//5849
+f 8069//5854 8054//5831 8068//5850
+f 8048//5851 8063//5869 8064//5852
+f 8059//5830 8074//5849 8075//5853
+f 8070//5842 8055//5835 8069//5854
+f 8049//5833 8064//5852 8065//5855
+f 8060//5837 8075//5853 8076//5856
+f 8074//5849 8089//5871 8090//5857
+f 8085//5861 8070//5842 8084//5858
+f 8064//5852 8079//5870 8080//5859
+f 8075//5853 8090//5857 8091//5860
+f 8086//5865 8071//5846 8085//5861
+f 8065//5855 8080//5859 8081//5862
+f 8076//5856 8091//5860 8092//5863
+f 8087//5882 8072//5864 8086//5865
+f 8066//5843 8081//5862 8082//5866
+f 8072//5864 8087//5882 8088//5867
+f 8067//5848 8082//5866 8083//5868
+f 8089//5871 8074//5849 8088//5867
+f 8084//5858 8069//5854 8083//5868
+f 8063//5869 8078//5874 8079//5870
+f 8104//5888 8089//5871 8103//5872
+f 8083//5868 8098//5885 8099//5873
+f 8078//5874 8093//5891 8094//5875
+f 8089//5871 8104//5888 8105//5876
+f 8100//5879 8085//5861 8099//5873
+f 8079//5870 8094//5875 8095//5877
+f 8090//5857 8105//5876 8106//5878
+f 8101//5897 8086//5865 8100//5879
+f 8080//5859 8095//5877 8096//5880
+f 8091//5860 8106//5878 8107//5881
+f 8086//5865 8101//5897 8102//5883
+f 8081//5862 8096//5880 8097//5884
+f 8087//5882 8102//5883 8103//5872
+f 8082//5866 8097//5884 8098//5885
+f 8096//5880 8111//5899 8112//5886
+f 8102//5883 8117//5901 8118//5887
+f 8113//5908 8098//5885 8112//5886
+f 8103//5872 8118//5887 8119//5889
+f 8098//5885 8113//5908 8114//5890
+f 8093//5891 8108//5911 8109//5892
+f 8104//5888 8119//5889 8120//5893
+f 8099//5873 8114//5890 8115//5894
+f 8094//5875 8109//5892 8110//5895
+f 8105//5876 8120//5893 8121//5896
+f 8100//5879 8115//5894 8116//5898
+f 8095//5877 8110//5895 8111//5899
+f 8106//5878 8121//5896 8122//5900
+f 8101//5897 8116//5898 8117//5901
+f 8115//5894 8130//5913 8131//5902
+f 8110//5895 8125//5914 8126//5903
+f 8121//5896 8136//5915 8137//5904
+f 8116//5898 8131//5902 8132//5905
+f 8111//5899 8126//5903 8127//5906
+f 8117//5901 8132//5905 8133//5907
+f 8128//5925 8113//5908 8127//5906
+f 8118//5887 8133//5907 8134//5909
+f 8113//5908 8128//5925 8129//5910
+f 8108//5911 8123//5928 8124//5912
+f 8135//5916 8120//5893 8134//5909
+f 8114//5890 8129//5910 8130//5913
+f 8109//5892 8124//5912 8125//5914
+f 8120//5893 8135//5916 8136//5915
+f 8134//5909 8149//5927 8150//5917
+f 8145//5920 8130//5913 8144//5918
+f 8124//5912 8139//5929 8140//5919
+f 8151//5937 8136//5915 8150//5917
+f 8146//5923 8131//5902 8145//5920
+f 8125//5914 8140//5919 8141//5921
+f 8136//5915 8151//5937 8152//5922
+f 8147//5942 8132//5905 8146//5923
+f 8142//5944 8127//5906 8141//5921
+f 8132//5905 8147//5942 8148//5924
+f 8127//5906 8142//5944 8143//5926
+f 8133//5907 8148//5924 8149//5927
+f 8144//5918 8129//5910 8143//5926
+f 8123//5928 8138//5932 8139//5929
+f 8148//5924 8163//5946 8164//5930
+f 8159//5935 8144//5918 8158//5931
+f 8138//5932 8153//5952 8154//5933
+f 8149//5927 8164//5930 8165//5934
+f 8160//5939 8145//5920 8159//5935
+f 8139//5929 8154//5933 8155//5936
+f 8150//5917 8165//5934 8166//5938
+f 8161//5943 8146//5923 8160//5939
+f 8140//5919 8155//5936 8156//5940
+f 8151//5937 8166//5938 8167//5941
+f 8162//5945 8147//5942 8161//5943
+f 8157//5948 8142//5944 8156//5940
+f 8163//5946 8148//5924 8162//5945
+f 8142//5944 8157//5948 8158//5931
+f 8178//5950 8163//5946 8177//5947
+f 8157//5948 8172//5964 8173//5949
+f 8179//5954 8164//5930 8178//5950
+f 8158//5931 8173//5949 8174//5951
+f 8153//5952 8168//5969 8169//5953
+f 8180//5971 8165//5934 8179//5954
+f 8175//5957 8160//5939 8174//5951
+f 8154//5933 8169//5953 8170//5955
+f 8165//5934 8180//5971 8181//5956
+f 8176//5960 8161//5943 8175//5957
+f 8155//5936 8170//5955 8171//5958
+f 8166//5938 8181//5956 8182//5959
+f 8177//5947 8162//5945 8176//5960
+f 8172//5964 8157//5948 8171//5958
+f 8170//5955 8185//5974 8186//5961
+f 8181//5956 8196//5975 8197//5962
+f 8192//5965 8177//5947 8191//5963
+f 8187//5966 8172//5964 8186//5961
+f 8193//5967 8178//5950 8192//5965
+f 8188//5968 8173//5949 8187//5966
+f 8194//5972 8179//5954 8193//5967
+f 8189//5973 8174//5951 8188//5968
+f 8168//5969 8183//5989 8184//5970
+f 8195//5979 8180//5971 8194//5972
+f 8190//5976 8175//5957 8189//5973
+f 8169//5953 8184//5970 8185//5974
+f 8180//5971 8195//5979 8196//5975
+f 8191//5963 8176//5960 8190//5976
+f 8205//5981 8190//5976 8204//5977
+f 8184//5970 8199//5990 8200//5978
+f 8211//5999 8196//5975 8210//5980
+f 8206//5984 8191//5963 8205//5981
+f 8185//5974 8200//5978 8201//5982
+f 8196//5975 8211//5999 8212//5983
+f 8207//5986 8192//5965 8206//5984
+f 8186//5961 8201//5982 8202//5985
+f 8208//5987 8193//5967 8207//5986
+f 8203//5988 8188//5968 8202//5985
+f 8209//5991 8194//5972 8208//5987
+f 8204//5977 8189//5973 8203//5988
+f 8183//5989 8198//5994 8199//5990
+f 8210//5980 8195//5979 8209//5991
+f 8224//5996 8209//5991 8223//5992
+f 8219//5997 8204//5977 8218//5993
+f 8198//5994 8213//6011 8214//5995
+f 8225//6013 8210//5980 8224//5996
+f 8220//6001 8205//5981 8219//5997
+f 8199//5990 8214//5995 8215//5998
+f 8210//5980 8225//6013 8226//6000
+f 8221//6004 8206//5984 8220//6001
+f 8200//5978 8215//5998 8216//6002
+f 8211//5999 8226//6000 8227//6003
+f 8222//6006 8207//5986 8221//6004
+f 8201//5982 8216//6002 8217//6005
+f 8223//5992 8208//5987 8222//6006
+f 8218//5993 8203//5988 8217//6005
+f 8238//6009 8223//5992 8237//6007
+f 8233//6010 8218//5993 8232//6008
+f 8239//6028 8224//5996 8238//6009
+f 8234//6015 8219//5997 8233//6010
+f 8213//6011 8228//6030 8229//6012
+f 8224//5996 8239//6028 8240//6014
+f 8235//6017 8220//6001 8234//6015
+f 8214//5995 8229//6012 8230//6016
+f 8241//6019 8226//6000 8240//6014
+f 8236//6020 8221//6004 8235//6017
+f 8215//5998 8230//6016 8231//6018
+f 8242//6022 8227//6003 8241//6019
+f 8237//6007 8222//6006 8236//6020
+f 8216//6002 8231//6018 8232//6008
+f 8230//6016 8245//6034 8246//6021
+f 8241//6019 8256//6038 8257//6023
+f 8252//6026 8237//6007 8251//6024
+f 8231//6018 8246//6021 8247//6025
+f 8253//6045 8238//6009 8252//6026
+f 8232//6008 8247//6025 8248//6027
+f 8238//6009 8253//6045 8254//6029
+f 8249//6033 8234//6015 8248//6027
+f 8228//6030 8243//6049 8244//6031
+f 8239//6028 8254//6029 8255//6032
+f 8250//6035 8235//6017 8249//6033
+f 8229//6012 8244//6031 8245//6034
+f 8256//6038 8241//6019 8255//6032
+f 8251//6024 8236//6020 8250//6035
+f 8265//6040 8250//6035 8264//6036
+f 8260//6041 8245//6034 8259//6037
+f 8271//6058 8256//6038 8270//6039
+f 8266//6043 8251//6024 8265//6040
+f 8261//6044 8246//6021 8260//6041
+f 8256//6038 8271//6058 8272//6042
+f 8267//6046 8252//6026 8266//6043
+f 8262//6063 8247//6025 8261//6044
+f 8268//6051 8253//6045 8267//6046
+f 8247//6025 8262//6063 8263//6047
+f 8253//6045 8268//6051 8269//6048
+f 8264//6036 8249//6033 8263//6047
+f 8259//6037 8244//6031 8258//6050
+f 8254//6029 8269//6048 8270//6039
+f 8284//6069 8269//6048 8283//6052
+f 8279//6056 8264//6036 8278//6053
+f 8274//6057 8259//6037 8273//6054
+f 8269//6048 8284//6069 8285//6055
+f 8280//6059 8265//6040 8279//6056
+f 8275//6060 8260//6041 8274//6057
+f 8286//6074 8271//6058 8285//6055
+f 8281//6062 8266//6043 8280//6059
+f 8276//6064 8261//6044 8275//6060
+f 8271//6058 8286//6074 8287//6061
+f 8282//6065 8267//6046 8281//6062
+f 8277//6067 8262//6063 8276//6064
+f 8283//6052 8268//6051 8282//6065
+f 8262//6063 8277//6067 8278//6053
+f 8282//6065 8297//6079 8298//6066
+f 8277//6067 8292//6080 8293//6068
+f 8299//6071 8284//6069 8298//6066
+f 8294//6072 8279//6056 8293//6068
+f 8289//6073 8274//6057 8288//6070
+f 8300//6075 8285//6055 8299//6071
+f 8295//6091 8280//6059 8294//6072
+f 8290//6077 8275//6060 8289//6073
+f 8301//6081 8286//6074 8300//6075
+f 8280//6059 8295//6091 8296//6076
+f 8291//6084 8276//6064 8290//6077
+f 8286//6074 8301//6081 8302//6078
+f 8281//6062 8296//6076 8297//6079
+f 8276//6064 8291//6084 8292//6080
+f 8301//6081 8317//6094 8318//6082
+f 8296//6076 8312//6095 8313//6083
+f 8308//6103 8292//6080 8307//6085
+f 8297//6079 8313//6083 8314//6086
+f 8292//6080 8308//6103 8309//6087
+f 8298//6066 8314//6086 8315//6088
+f 8310//6107 8294//6072 8309//6087
+f 8305//6093 8289//6073 8304//6089
+f 8299//6071 8315//6088 8316//6090
+f 8294//6072 8310//6107 8311//6092
+f 8306//6096 8290//6077 8305//6093
+f 8300//6075 8316//6090 8317//6094
+f 8295//6091 8311//6092 8312//6095
+f 8307//6085 8291//6084 8306//6096
+f 8321//6100 8306//6096 8320//6097
+f 8332//6117 8317//6094 8331//6098
+f 8311//6092 8326//6110 8327//6099
+f 8322//6120 8307//6085 8321//6100
+f 8317//6094 8332//6117 8333//6101
+f 8312//6095 8327//6099 8328//6102
+f 8307//6085 8322//6120 8323//6104
+f 8313//6083 8328//6102 8329//6105
+f 8324//6108 8309//6087 8323//6104
+f 8314//6086 8329//6105 8330//6106
+f 8325//6111 8310//6107 8324//6108
+f 8320//6097 8305//6093 8319//6109
+f 8315//6088 8330//6106 8331//6098
+f 8310//6107 8325//6111 8326//6110
+f 8340//6115 8325//6111 8339//6112
+f 8335//6116 8320//6097 8334//6113
+f 8346//6118 8331//6098 8345//6114
+f 8341//6133 8326//6110 8340//6115
+f 8336//6121 8321//6100 8335//6116
+f 8347//6136 8332//6117 8346//6118
+f 8326//6110 8341//6133 8342//6119
+f 8337//6124 8322//6120 8336//6121
+f 8332//6117 8347//6136 8348//6122
+f 8327//6099 8342//6119 8343//6123
+f 8338//6127 8323//6104 8337//6124
+f 8328//6102 8343//6123 8344//6125
+f 8323//6104 8338//6127 8339//6112
+f 8329//6105 8344//6125 8345//6114
+f 8343//6123 8358//6140 8359//6126
+f 8354//6130 8339//6112 8353//6128
+f 8344//6125 8359//6126 8360//6129
+f 8355//6148 8340//6115 8354//6130
+f 8350//6135 8335//6116 8349//6131
+f 8345//6114 8360//6129 8361//6132
+f 8340//6115 8355//6148 8356//6134
+f 8351//6138 8336//6121 8350//6135
+f 8362//6141 8347//6136 8361//6132
+f 8341//6133 8356//6134 8357//6137
+f 8352//6144 8337//6124 8351//6138
+f 8347//6136 8362//6141 8363//6139
+f 8342//6119 8357//6137 8358//6140
+f 8337//6124 8352//6144 8353//6128
+f 8362//6141 8377//6153 8378//6142
+f 8357//6137 8372//6154 8373//6143
+f 8352//6144 8367//6160 8368//6145
+f 8358//6140 8373//6143 8374//6146
+f 8369//6149 8354//6130 8368//6145
+f 8359//6126 8374//6146 8375//6147
+f 8370//6168 8355//6148 8369//6149
+f 8365//6152 8350//6135 8364//6150
+f 8376//6157 8361//6132 8375//6147
+f 8355//6148 8370//6168 8371//6151
+f 8366//6155 8351//6138 8365//6152
+f 8361//6132 8376//6157 8377//6153
+f 8356//6134 8371//6151 8372//6154
+f 8367//6160 8352//6144 8366//6155
+f 8381//6161 8366//6155 8380//6156
+f 8376//6157 8391//6174 8392//6158
+f 8371//6151 8386//6170 8387//6159
+f 8382//6180 8367//6160 8381//6161
+f 8377//6153 8392//6158 8393//6162
+f 8372//6154 8387//6159 8388//6163
+f 8367//6160 8382//6180 8383//6164
+f 8373//6143 8388//6163 8389//6165
+f 8368//6145 8383//6164 8384//6166
+f 8374//6146 8389//6165 8390//6167
+f 8385//6171 8370//6168 8384//6166
+f 8380//6156 8365//6152 8379//6169
+f 8391//6174 8376//6157 8390//6167
+f 8370//6168 8385//6171 8386//6170
+f 8384//6166 8399//6186 8400//6172
+f 8395//6177 8380//6156 8394//6173
+f 8390//6167 8405//6187 8406//6175
+f 8385//6171 8400//6172 8401//6176
+f 8396//6181 8381//6161 8395//6177
+f 8391//6174 8406//6175 8407//6178
+f 8386//6170 8401//6176 8402//6179
+f 8397//6184 8382//6180 8396//6181
+f 8392//6158 8407//6178 8408//6182
+f 8387//6159 8402//6179 8403//6183
+f 8398//6189 8383//6164 8397//6184
+f 8388//6163 8403//6183 8404//6185
+f 8383//6164 8398//6189 8399//6186
+f 8389//6165 8404//6185 8405//6187
+f 8403//6183 8418//6201 8419//6188
+f 8398//6189 8413//6202 8414//6190
+f 8404//6185 8419//6188 8420//6191
+f 8399//6186 8414//6190 8415//6192
+f 8410//6196 8395//6177 8409//6193
+f 8405//6187 8420//6191 8421//6194
+f 8400//6172 8415//6192 8416//6195
+f 8411//6199 8396//6181 8410//6196
+f 8406//6175 8421//6194 8422//6197
+f 8401//6176 8416//6195 8417//6198
+f 8412//6205 8397//6184 8411//6199
+f 8407//6178 8422//6197 8423//6200
+f 8402//6179 8417//6198 8418//6201
+f 8397//6184 8412//6205 8413//6202
+f 8422//6197 8438//6215 8439//6203
+f 8417//6198 8433//6216 8434//6204
+f 8412//6205 8428//6220 8429//6206
+f 8418//6201 8434//6204 8435//6207
+f 8413//6202 8429//6206 8430//6208
+f 8419//6188 8435//6207 8436//6209
+f 8414//6190 8430//6208 8431//6210
+f 8426//6214 8410//6196 8425//6211
+f 8420//6191 8436//6209 8437//6212
+f 8415//6192 8431//6210 8432//6213
+f 8427//6217 8411//6199 8426//6214
+f 8421//6194 8437//6212 8438//6215
+f 8416//6195 8432//6213 8433//6216
+f 8428//6220 8412//6205 8427//6217
+f 8437//6212 8452//6227 8453//6218
+f 8432//6213 8447//6228 8448//6219
+f 8443//6235 8428//6220 8442//6221
+f 8454//6232 8439//6203 8453//6218
+f 8433//6216 8448//6219 8449//6222
+f 8428//6220 8443//6235 8444//6223
+f 8450//6225 8435//6207 8449//6222
+f 8429//6206 8444//6223 8445//6224
+f 8451//6233 8436//6209 8450//6225
+f 8446//6234 8431//6210 8445//6224
+f 8441//6229 8426//6214 8440//6226
+f 8436//6209 8451//6233 8452//6227
+f 8431//6210 8446//6234 8447//6228
+f 8442//6221 8427//6217 8441//6229
+f 7974//5774 8441//6229 7973//5775
+f 7985//5777 8452//6227 7984//5770
+f 7980//5755 8447//6228 7979//5772
+f 7975//5758 8442//6221 7974//5774
+f 7986//5761 8453//6218 7985//5777
+f 8447//6228 7980//5755 7981//5754
+f 7976//5757 8443//6235 7975//5758
+f 7987//5760 8454//6232 7986//5761
+f 7982//5763 8449//6222 7981//5754
+f 8443//6235 7976//5757 7977//5764
+f 7983//5766 8450//6225 7982//5763
+f 8444//6223 7977//5764 7978//5768
+f 7984//5770 8451//6233 7983//5766
+f 7979//5772 8446//6234 7978//5768
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/wavefront.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/wavefront.go
new file mode 100644
index 000000000..964f8b830
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/gopher/wavefront.go
@@ -0,0 +1,280 @@
+package main
+
+import (
+ "bufio"
+ "fmt"
+ "os"
+ "path/filepath"
+ "strconv"
+ "strings"
+)
+
+type Object struct {
+ Name string
+ Groups []*Group
+}
+
+type Group struct {
+ Vertexes []float32
+ Normals []float32
+ Material *Material
+}
+
+type Material struct {
+ Name string
+ Ambient []float32
+ Diffuse []float32
+ Specular []float32
+ Shininess float32
+}
+
+func Read(filename string) (map[string]*Object, error) {
+ file, err := os.Open(filename)
+ if err != nil {
+ return nil, err
+ }
+ defer file.Close()
+
+ var materials map[string]*Material
+ var objects = make(map[string]*Object)
+ var object *Object
+ var group *Group
+ var vertex []float32
+ var normal []float32
+
+ lno := 0
+ line := ""
+ scanner := bufio.NewScanner(file)
+
+ fail := func(msg string) error {
+ return fmt.Errorf(msg+" at %s:%d: %s", filename, lno, line)
+ }
+
+ for scanner.Scan() {
+ lno++
+ line = scanner.Text()
+ if strings.HasPrefix(line, "#") {
+ continue
+ }
+
+ fields := strings.Fields(line)
+ if len(fields) == 0 {
+ continue
+ }
+
+ if fields[0] == "mtllib" {
+ if len(fields) != 2 {
+ return nil, fail("unsupported materials library line")
+ }
+ materials, err = readMaterials(filepath.Join(filepath.Dir(filename), fields[1]))
+ if err != nil {
+ return nil, err
+ }
+ continue
+ }
+
+ if fields[0] == "o" {
+ if len(fields) != 2 {
+ return nil, fail("unsupported object line")
+ }
+ object = &Object{Name: fields[1]}
+ objects[object.Name] = object
+ group = nil
+ continue
+ }
+
+ if object == nil {
+ return nil, fail("found data before object")
+ }
+
+ if fields[0] == "usemtl" {
+ group = &Group{}
+ object.Groups = append(object.Groups, group)
+ }
+
+ switch fields[0] {
+ case "usemtl":
+ if len(fields) != 2 {
+ return nil, fail("unsupported material usage line")
+ }
+ group.Material = materials[fields[1]]
+ if group.Material == nil {
+ return nil, fmt.Errorf("material %q not defined", fields[1])
+ }
+ case "v":
+ if len(fields) != 4 {
+ return nil, fail("unsupported vertex line")
+ }
+ for i := 0; i < 3; i++ {
+ f, err := strconv.ParseFloat(fields[i+1], 32)
+ if err != nil {
+ return nil, fail("cannot parse float")
+ }
+ vertex = append(vertex, float32(f))
+ }
+ case "vn":
+ if len(fields) != 4 {
+ return nil, fail("unsupported vertex normal line")
+ }
+ for i := 0; i < 3; i++ {
+ f, err := strconv.ParseFloat(fields[i+1], 32)
+ if err != nil {
+ return nil, fail("cannot parse float")
+ }
+ normal = append(normal, float32(f))
+ }
+ case "f":
+ if len(fields) != 4 {
+ return nil, fail("unsupported face line")
+ }
+ for i := 0; i < 3; i++ {
+ face := strings.Split(fields[i+1], "/")
+ if len(face) != 3 {
+ return nil, fail("unsupported face shape (not a triangle)")
+ }
+ vi, err := strconv.Atoi(face[0])
+ if err != nil {
+ return nil, fail("unsupported face vertex index")
+ }
+ ni, err := strconv.Atoi(face[2])
+ if err != nil {
+ return nil, fail("unsupported face normal index")
+ }
+ vi = (vi - 1) * 3
+ ni = (ni - 1) * 3
+ group.Vertexes = append(group.Vertexes, vertex[vi], vertex[vi+1], vertex[vi+2])
+ group.Normals = append(group.Normals, normal[ni], normal[ni+1], normal[ni+2])
+ }
+ }
+ }
+ if err := scanner.Err(); err != nil {
+ return nil, err
+ }
+ return objects, nil
+}
+
+func readMaterials(filename string) (map[string]*Material, error) {
+ file, err := os.Open(filename)
+ if err != nil {
+ return nil, fmt.Errorf("cannot read referenced material library: %v", err)
+ }
+ defer file.Close()
+
+ var materials = make(map[string]*Material)
+ var material *Material
+
+ lno := 0
+ line := ""
+ scanner := bufio.NewScanner(file)
+
+ fail := func(msg string) error {
+ return fmt.Errorf(msg+" at %s:%d: %s", filename, lno, line)
+ }
+
+ for scanner.Scan() {
+ lno++
+ line = scanner.Text()
+ if strings.HasPrefix(line, "#") {
+ continue
+ }
+
+ fields := strings.Fields(line)
+ if len(fields) == 0 {
+ continue
+ }
+
+ if fields[0] == "newmtl" {
+ if len(fields) != 2 {
+ return nil, fail("unsupported material definition")
+ }
+ material = &Material{Name: fields[1]}
+ material.Ambient = []float32{0.2, 0.2, 0.2, 1.0}
+ material.Diffuse = []float32{0.8, 0.8, 0.8, 1.0}
+ material.Specular = []float32{0.0, 0.0, 0.0, 1.0}
+ materials[material.Name] = material
+ continue
+ }
+
+ if material == nil {
+ return nil, fail("found data before material")
+ }
+
+ switch fields[0] {
+ case "Ka":
+ if len(fields) != 4 {
+ return nil, fail("unsupported ambient color line")
+ }
+ for i := 0; i < 3; i++ {
+ f, err := strconv.ParseFloat(fields[i+1], 32)
+ if err != nil {
+ return nil, fail("cannot parse float")
+ }
+ material.Ambient[i] = float32(f)
+ }
+ case "Kd":
+ if len(fields) != 4 {
+ return nil, fail("unsupported diffuse color line")
+ }
+ for i := 0; i < 3; i++ {
+ f, err := strconv.ParseFloat(fields[i+1], 32)
+ if err != nil {
+ return nil, fail("cannot parse float")
+ }
+ material.Diffuse[i] = float32(f)
+ }
+ case "Ks":
+ if len(fields) != 4 {
+ return nil, fail("unsupported specular color line")
+ }
+ for i := 0; i < 3; i++ {
+ f, err := strconv.ParseFloat(fields[i+1], 32)
+ if err != nil {
+ return nil, fail("cannot parse float")
+ }
+ material.Specular[i] = float32(f)
+ }
+ case "Ns":
+ if len(fields) != 2 {
+ return nil, fail("unsupported shininess line")
+ }
+ f, err := strconv.ParseFloat(fields[1], 32)
+ if err != nil {
+ return nil, fail("cannot parse float")
+ }
+ material.Shininess = float32(f / 1000 * 128)
+ case "d":
+ if len(fields) != 2 {
+ return nil, fail("unsupported transparency line")
+ }
+ f, err := strconv.ParseFloat(fields[1], 32)
+ if err != nil {
+ return nil, fail("cannot parse float")
+ }
+ material.Ambient[3] = float32(f)
+ material.Diffuse[3] = float32(f)
+ material.Specular[3] = float32(f)
+ }
+ }
+ if err := scanner.Err(); err != nil {
+ return nil, err
+ }
+
+ // Exporting from blender seems to show everything too dark in
+ // practice, so hack colors to look closer to what we see there.
+ // TODO This needs more real world checking.
+ for _, material := range materials {
+ if material.Ambient[0] == 0 && material.Ambient[1] == 0 && material.Ambient[2] == 0 && material.Ambient[3] == 1 {
+ material.Ambient[0] = material.Diffuse[0] * 0.7
+ material.Ambient[1] = material.Diffuse[1] * 0.7
+ material.Ambient[2] = material.Diffuse[2] * 0.7
+ }
+ for i := 0; i < 3; i++ {
+ material.Diffuse[i] *= 1.3
+ if material.Diffuse[i] > 1 {
+ material.Diffuse[i] = 1
+ }
+ }
+ }
+
+ return materials, nil
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/imgprovider/imgprovider.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/imgprovider/imgprovider.go
new file mode 100644
index 000000000..533a23b86
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/imgprovider/imgprovider.go
@@ -0,0 +1,43 @@
+package main
+
+import (
+ "fmt"
+ "gopkg.in/qml.v1"
+ "image"
+ "image/png"
+ "os"
+)
+
+func main() {
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ engine := qml.NewEngine()
+ engine.AddImageProvider("pwd", func(id string, width, height int) image.Image {
+ f, err := os.Open(id)
+ if err != nil {
+ panic(err)
+ }
+ defer f.Close()
+ image, err := png.Decode(f)
+ if err != nil {
+ panic(err)
+ }
+ return image
+ })
+
+ component, err := engine.LoadFile("imgprovider.qml")
+ if err != nil {
+ return err
+ }
+
+ win := component.CreateWindow(nil)
+ win.Show()
+ win.Wait()
+
+ return nil
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/imgprovider/imgprovider.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/imgprovider/imgprovider.qml
new file mode 100644
index 000000000..0c5c747f0
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/imgprovider/imgprovider.qml
@@ -0,0 +1,5 @@
+import QtQuick 2.0
+
+Image {
+ source: "image://pwd/ubuntu-gopher.png"
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/imgprovider/ubuntu-gopher.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/imgprovider/ubuntu-gopher.png
new file mode 100644
index 000000000..3f51d3798
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/imgprovider/ubuntu-gopher.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/modelview/delegate/delegate.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/modelview/delegate/delegate.go
new file mode 100644
index 000000000..440fd229a
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/modelview/delegate/delegate.go
@@ -0,0 +1,53 @@
+package main
+
+import (
+ "fmt"
+ "gopkg.in/qml.v1"
+ "image/color"
+ "math/rand"
+ "os"
+ "time"
+)
+
+func main() {
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ engine := qml.NewEngine()
+ colors := &Colors{}
+ engine.Context().SetVar("colors", colors)
+ component, err := engine.LoadFile("delegate.qml")
+ if err != nil {
+ return err
+ }
+ window := component.CreateWindow(nil)
+ window.Show()
+ go func() {
+ n := func() uint8 { return uint8(rand.Intn(256)) }
+ for i := 0; i < 100; i++ {
+ colors.Add(color.RGBA{n(), n(), n(), 0xff})
+ time.Sleep(1 * time.Second)
+ }
+ }()
+ window.Wait()
+ return nil
+}
+
+type Colors struct {
+ list []color.RGBA
+ Len int
+}
+
+func (colors *Colors) Add(c color.RGBA) {
+ colors.list = append(colors.list, c)
+ colors.Len = len(colors.list)
+ qml.Changed(colors, &colors.Len)
+}
+
+func (colors *Colors) Color(index int) color.RGBA {
+ return colors.list[index]
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/modelview/delegate/delegate.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/modelview/delegate/delegate.qml
new file mode 100644
index 000000000..4b37d31f6
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/modelview/delegate/delegate.qml
@@ -0,0 +1,17 @@
+import QtQuick 2.0
+
+Item {
+ width: 320; height: 200
+
+ ListView {
+ width: 120;
+ model: colors.len
+ delegate: Text {
+ text: "I am color number: " + index
+ color: colors.color(index)
+ }
+ anchors.top: parent.top
+ anchors.bottom: parent.bottom
+ anchors.horizontalCenter: parent.horizontalCenter
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting-es2/painting.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting-es2/painting.go
new file mode 100644
index 000000000..71f2d89a2
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting-es2/painting.go
@@ -0,0 +1,115 @@
+package main
+
+import (
+ "fmt"
+ "os"
+
+ "gopkg.in/qml.v1"
+ "gopkg.in/qml.v1/gl/es2"
+)
+
+func main() {
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ qml.RegisterTypes("GoExtensions", 1, 0, []qml.TypeSpec{{
+ Init: func(r *GoRect, obj qml.Object) { r.Object = obj },
+ }})
+
+ engine := qml.NewEngine()
+ component, err := engine.LoadFile("painting.qml")
+ if err != nil {
+ return err
+ }
+
+ win := component.CreateWindow(nil)
+ win.Show()
+ win.Wait()
+ return nil
+}
+
+type GoRect struct {
+ qml.Object
+}
+
+var vertexShader = `
+#version 120
+
+attribute vec2 position;
+
+void main()
+{
+ gl_Position = vec4(position.x, position.y, 0.0, 1.0);
+}
+`
+
+var fragmentShader = `
+#version 120
+
+void main()
+{
+ gl_FragColor = vec4(1.0, 1.0, 1.0, 0.8);
+}
+`
+
+func (r *GoRect) Paint(p *qml.Painter) {
+ gl := GL.API(p)
+
+ vertices := []float32{
+ -1, -1,
+ +1, -1,
+ +1, +1,
+ -1, +1,
+ }
+
+ indices := []uint8{
+ 0, 1, 2, // first triangle
+ 2, 3, 0, // second triangle
+ }
+
+ buf := gl.GenBuffers(2)
+ gl.BindBuffer(GL.ARRAY_BUFFER, buf[0])
+ gl.BufferData(GL.ARRAY_BUFFER, 0, vertices, GL.STATIC_DRAW)
+ gl.BindBuffer(GL.ELEMENT_ARRAY_BUFFER, buf[1])
+ gl.BufferData(GL.ELEMENT_ARRAY_BUFFER, 0, indices, GL.STATIC_DRAW)
+
+ vshader := gl.CreateShader(GL.VERTEX_SHADER);
+ gl.ShaderSource(vshader, vertexShader)
+ gl.CompileShader(vshader)
+
+ var status [1]int32
+ gl.GetShaderiv(vshader, GL.COMPILE_STATUS, status[:])
+ if status[0] == 0 {
+ log := gl.GetShaderInfoLog(vshader)
+ panic("vertex shader compilation failed: " + string(log))
+ }
+
+ fshader := gl.CreateShader(GL.FRAGMENT_SHADER)
+ gl.ShaderSource(fshader, fragmentShader)
+ gl.CompileShader(fshader)
+
+ gl.GetShaderiv(fshader, GL.COMPILE_STATUS, status[:])
+ if status[0] == 0 {
+ log := gl.GetShaderInfoLog(fshader)
+ panic("fragment shader compilation failed: " + string(log))
+ }
+
+ program := gl.CreateProgram()
+ gl.AttachShader(program, vshader)
+ gl.AttachShader(program, fshader)
+ gl.LinkProgram(program)
+ gl.UseProgram(program)
+
+ position := gl.GetAttribLocation(program, "position")
+ gl.VertexAttribPointer(position, 2, GL.FLOAT, false, 0, 0)
+ gl.EnableVertexAttribArray(position)
+
+ gl.Enable(GL.BLEND)
+ gl.BlendFunc(GL.SRC_ALPHA, GL.ONE_MINUS_SRC_ALPHA)
+
+ gl.DrawElements(GL.TRIANGLES, 6, GL.UNSIGNED_BYTE, nil)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting-es2/painting.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting-es2/painting.qml
new file mode 100644
index 000000000..8c59fc351
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting-es2/painting.qml
@@ -0,0 +1,66 @@
+import QtQuick 2.0
+import GoExtensions 1.0
+
+Rectangle {
+ id: root
+
+ width: 640
+ height: 280
+ color: "black"
+
+ Rectangle {
+ x: 20; y: 20; width: 100; height: 100
+ color: "red"
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 20; to: 120; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 120; to: 20; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+
+ Rectangle {
+ x: 40; y: 40; width: 100; height: 100
+ color: "yellow"
+ opacity: 0.7
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 40; to: 220; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 220; to: 40; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+
+ GoRect {
+ x: 60; y: 60; width: 100; height: 100
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 60; to: 320; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 320; to: 60; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+
+ Rectangle {
+ x: 80; y: 80; width: 100; height: 100
+ color: "yellow"
+ opacity: 0.7
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 80; to: 420; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 420; to: 80; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+
+ Rectangle {
+ x: 100; y: 100; width: 100; height: 100
+ color: "red"
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 100; to: 520; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 520; to: 100; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting/painting.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting/painting.go
new file mode 100644
index 000000000..eda1e19f5
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting/painting.go
@@ -0,0 +1,64 @@
+package main
+
+import (
+ "fmt"
+ "os"
+
+ "gopkg.in/qml.v1"
+ "gopkg.in/qml.v1/gl/2.0"
+)
+
+func main() {
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+type GoRect struct {
+ qml.Object
+}
+
+func (r *GoRect) Paint(p *qml.Painter) {
+ gl := GL.API(p)
+
+ width := float32(r.Int("width"))
+ height := float32(r.Int("height"))
+
+ gl.Enable(GL.BLEND)
+ gl.BlendFunc(GL.SRC_ALPHA, GL.ONE_MINUS_SRC_ALPHA)
+ gl.Color4f(1.0, 1.0, 1.0, 0.8)
+ gl.Begin(GL.QUADS)
+ gl.Vertex2f(0, 0)
+ gl.Vertex2f(width, 0)
+ gl.Vertex2f(width, height)
+ gl.Vertex2f(0, height)
+ gl.End()
+
+ gl.LineWidth(2.5)
+ gl.Color4f(0.0, 0.0, 0.0, 1.0)
+ gl.Begin(GL.LINES)
+ gl.Vertex2f(0, 0)
+ gl.Vertex2f(width, height)
+ gl.Vertex2f(width, 0)
+ gl.Vertex2f(0, height)
+ gl.End()
+}
+
+func run() error {
+ qml.RegisterTypes("GoExtensions", 1, 0, []qml.TypeSpec{{
+ Init: func(r *GoRect, obj qml.Object) { r.Object = obj },
+ }})
+
+ engine := qml.NewEngine()
+ component, err := engine.LoadFile("painting.qml")
+ if err != nil {
+ return err
+ }
+
+ win := component.CreateWindow(nil)
+ win.Show()
+ win.Wait()
+
+ return nil
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting/painting.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting/painting.qml
new file mode 100644
index 000000000..8c59fc351
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/painting/painting.qml
@@ -0,0 +1,66 @@
+import QtQuick 2.0
+import GoExtensions 1.0
+
+Rectangle {
+ id: root
+
+ width: 640
+ height: 280
+ color: "black"
+
+ Rectangle {
+ x: 20; y: 20; width: 100; height: 100
+ color: "red"
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 20; to: 120; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 120; to: 20; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+
+ Rectangle {
+ x: 40; y: 40; width: 100; height: 100
+ color: "yellow"
+ opacity: 0.7
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 40; to: 220; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 220; to: 40; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+
+ GoRect {
+ x: 60; y: 60; width: 100; height: 100
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 60; to: 320; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 320; to: 60; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+
+ Rectangle {
+ x: 80; y: 80; width: 100; height: 100
+ color: "yellow"
+ opacity: 0.7
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 80; to: 420; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 420; to: 80; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+
+ Rectangle {
+ x: 100; y: 100; width: 100; height: 100
+ color: "red"
+
+ SequentialAnimation on x {
+ loops: Animation.Infinite
+ NumberAnimation { from: 100; to: 520; duration: 4000; easing.type: Easing.InOutQuad }
+ NumberAnimation { from: 520; to: 100; duration: 4000; easing.type: Easing.InOutQuad }
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/particle/main.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/particle/main.go
new file mode 100644
index 000000000..2a7ab865b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/particle/main.go
@@ -0,0 +1,84 @@
+package main
+
+import (
+ "fmt"
+ "math/rand"
+ "os"
+ "time"
+
+ "gopkg.in/qml.v1"
+)
+
+func main() {
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ engine := qml.NewEngine()
+ component, err := engine.LoadFile("particle.qml")
+ if err != nil {
+ return err
+ }
+
+ ctrl := Control{Message: "Hello from Go!"}
+
+ context := engine.Context()
+ context.SetVar("ctrl", &ctrl)
+
+ window := component.CreateWindow(nil)
+
+ ctrl.Root = window.Root()
+
+ rand.Seed(time.Now().Unix())
+
+ window.Show()
+ window.Wait()
+
+ return nil
+}
+
+type Control struct {
+ Root qml.Object
+ Message string
+}
+
+func (ctrl *Control) TextReleased(text qml.Object) {
+ x := text.Int("x")
+ y := text.Int("y")
+ width := text.Int("width")
+ height := text.Int("height")
+
+ ctrl.Emit(x+15, y+height/2)
+ ctrl.Emit(x+width/2, 1.0*y+height/2)
+ ctrl.Emit(x+width-15, 1.0*y+height/2)
+
+ go func() {
+ time.Sleep(500 * time.Millisecond)
+ messages := []string{"Hello", "Hello", "Hacks"}
+ ctrl.Message = messages[rand.Intn(len(messages))] + " from Go!"
+ qml.Changed(ctrl, &ctrl.Message)
+ }()
+}
+
+func (ctrl *Control) Emit(x, y int) {
+ component := ctrl.Root.Object("emitterComponent")
+ for i := 0; i < 8; i++ {
+ emitter := component.Create(nil)
+ emitter.Set("x", x)
+ emitter.Set("y", y)
+ emitter.Set("targetX", rand.Intn(240)-120+x)
+ emitter.Set("targetY", rand.Intn(240)-120+y)
+ emitter.Set("life", rand.Intn(2400)+200)
+ emitter.Set("emitRate", rand.Intn(32)+32)
+ emitter.ObjectByName("xAnim").Call("start")
+ emitter.ObjectByName("yAnim").Call("start")
+ emitter.Set("enabled", true)
+ }
+}
+
+func (ctrl *Control) Done(emitter qml.Object) {
+ emitter.Destroy()
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/particle/particle.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/particle/particle.png
new file mode 100644
index 000000000..5c83896d2
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/particle/particle.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/particle/particle.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/particle/particle.qml
new file mode 100644
index 000000000..1fd1f1c8b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/particle/particle.qml
@@ -0,0 +1,89 @@
+import QtQuick 2.0
+import QtQuick.Particles 2.0
+import QtGraphicalEffects 1.0;
+
+Rectangle {
+ id: root
+
+ width: 640
+ height: 480
+
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "#3a2c32"; }
+ GradientStop { position: 0.8; color: "#875864"; }
+ GradientStop { position: 1.0; color: "#9b616c"; }
+ }
+
+ Text {
+ text: ctrl.message
+
+ Component.onCompleted: {
+ x = parent.width/2 - width/2
+ y = parent.height/2 - height/2
+ }
+
+ color: "white"
+ font.bold: true
+ font.pointSize: 20
+
+ MouseArea {
+ id: mouseArea
+ anchors.fill: parent
+ drag.target: parent
+ onReleased: ctrl.textReleased(parent)
+ }
+ }
+
+ ParticleSystem { id: sys }
+
+ ImageParticle {
+ system: sys
+ source: "particle.png"
+ color: "white"
+ colorVariation: 1.0
+ alpha: 0.1
+ }
+
+ property var emitterComponent: Component {
+ id: emitterComponent
+ Emitter {
+ id: container
+ system: sys
+ Emitter {
+ system: sys
+ emitRate: 128
+ lifeSpan: 600
+ size: 16
+ endSize: 8
+ velocity: AngleDirection { angleVariation:360; magnitude: 60 }
+ }
+
+ property int life: 2600
+ property real targetX: 0
+ property real targetY: 0
+ emitRate: 128
+ lifeSpan: 600
+ size: 24
+ endSize: 8
+ NumberAnimation on x {
+ objectName: "xAnim"
+ id: xAnim;
+ to: targetX
+ duration: life
+ running: false
+ }
+ NumberAnimation on y {
+ objectName: "yAnim"
+ id: yAnim;
+ to: targetY
+ duration: life
+ running: false
+ }
+ Timer {
+ interval: life
+ running: true
+ onTriggered: ctrl.done(container)
+ }
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/Cell.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/Cell.qml
new file mode 100644
index 000000000..998a49242
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/Cell.qml
@@ -0,0 +1,20 @@
+import QtQuick 2.0
+
+Item {
+ id: container
+ property alias cellColor: rectangle.color
+ signal clicked(color cellColor)
+
+ width: 40; height: 25
+
+ Rectangle {
+ id: rectangle
+ border.color: "white"
+ anchors.fill: parent
+ }
+
+ MouseArea {
+ anchors.fill: parent
+ onClicked: container.clicked(container.cellColor)
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/qmlscene.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/qmlscene.go
new file mode 100644
index 000000000..6124ac568
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/qmlscene.go
@@ -0,0 +1,33 @@
+package main
+
+import (
+ "fmt"
+ "gopkg.in/qml.v1"
+ "os"
+)
+
+func main() {
+ if len(os.Args) != 2 {
+ fmt.Fprintf(os.Stderr, "usage: %s <qml file>\n", os.Args[0])
+ os.Exit(1)
+ }
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ engine := qml.NewEngine()
+
+ engine.On("quit", func() { os.Exit(0) })
+
+ component, err := engine.LoadFile(os.Args[1])
+ if err != nil {
+ return err
+ }
+ window := component.CreateWindow(nil)
+ window.Show()
+ window.Wait()
+ return nil
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial1.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial1.qml
new file mode 100644
index 000000000..e42216e6a
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial1.qml
@@ -0,0 +1,17 @@
+// See http://qt-project.org/doc/qt-5.1/qtquick/qml-tutorial1.html
+
+import QtQuick 2.0
+
+Rectangle {
+ id: page
+ width: 320; height: 480
+ color: "lightgray"
+
+ Text {
+ id: helloText
+ text: "Hello world!"
+ y: 30
+ anchors.horizontalCenter: page.horizontalCenter
+ font.pointSize: 24; font.bold: true
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial2.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial2.qml
new file mode 100644
index 000000000..aa64bc1aa
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial2.qml
@@ -0,0 +1,30 @@
+// See http://qt-project.org/doc/qt-5.1/qtquick/qml-tutorial2.html
+
+import QtQuick 2.0
+
+Rectangle {
+ id: page
+ width: 320; height: 480
+ color: "lightgray"
+
+ Text {
+ id: helloText
+ text: "Hello world!"
+ y: 30
+ anchors.horizontalCenter: page.horizontalCenter
+ font.pointSize: 24; font.bold: true
+ }
+
+ Grid {
+ id: colorPicker
+ x: 4; anchors.bottom: page.bottom; anchors.bottomMargin: 4
+ rows: 2; columns: 3; spacing: 3
+
+ Cell { cellColor: "red"; onClicked: helloText.color = cellColor }
+ Cell { cellColor: "green"; onClicked: helloText.color = cellColor }
+ Cell { cellColor: "blue"; onClicked: helloText.color = cellColor }
+ Cell { cellColor: "yellow"; onClicked: helloText.color = cellColor }
+ Cell { cellColor: "steelblue"; onClicked: helloText.color = cellColor }
+ Cell { cellColor: "black"; onClicked: helloText.color = cellColor }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial3.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial3.qml
new file mode 100644
index 000000000..e5eabab10
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qmlscene/tutorial3.qml
@@ -0,0 +1,45 @@
+// See http://qt-project.org/doc/qt-5.1/qtquick/qml-tutorial3.html
+
+import QtQuick 2.0
+
+Rectangle {
+ id: page
+ width: 320; height: 480
+ color: "lightgray"
+
+ Text {
+ id: helloText
+ text: "Hello world!"
+ y: 30
+ anchors.horizontalCenter: page.horizontalCenter
+ font.pointSize: 24; font.bold: true
+
+ MouseArea { id: mouseArea; anchors.fill: parent }
+
+ states: State {
+ name: "down"; when: mouseArea.pressed == true
+ PropertyChanges { target: helloText; y: 160; rotation: 180; color: "red" }
+ }
+
+ transitions: Transition {
+ from: ""; to: "down"; reversible: true
+ ParallelAnimation {
+ NumberAnimation { properties: "y,rotation"; duration: 500; easing.type: Easing.InOutQuad }
+ ColorAnimation { duration: 500 }
+ }
+ }
+ }
+
+ Grid {
+ id: colorPicker
+ x: 4; anchors.bottom: page.bottom; anchors.bottomMargin: 4
+ rows: 2; columns: 3; spacing: 3
+
+ Cell { cellColor: "red"; onClicked: helloText.color = cellColor }
+ Cell { cellColor: "green"; onClicked: helloText.color = cellColor }
+ Cell { cellColor: "blue"; onClicked: helloText.color = cellColor }
+ Cell { cellColor: "yellow"; onClicked: helloText.color = cellColor }
+ Cell { cellColor: "steelblue"; onClicked: helloText.color = cellColor }
+ Cell { cellColor: "black"; onClicked: helloText.color = cellColor }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/assets/particle.png b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/assets/particle.png
new file mode 100644
index 000000000..5c83896d2
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/assets/particle.png
Binary files differ
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/assets/particle.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/assets/particle.qml
new file mode 100644
index 000000000..2708a3dfc
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/assets/particle.qml
@@ -0,0 +1,89 @@
+import QtQuick 2.0
+import QtQuick.Particles 2.0
+import QtGraphicalEffects 1.0;
+
+Rectangle {
+ id: root
+
+ width: 640
+ height: 480
+
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "#3a2c32"; }
+ GradientStop { position: 0.8; color: "#875864"; }
+ GradientStop { position: 1.0; color: "#9b616c"; }
+ }
+
+ Text {
+ text: ctrl.message
+
+ Component.onCompleted: {
+ x = parent.width/2 - width/2
+ y = parent.height/2 - height/2
+ }
+
+ color: "white"
+ font.bold: true
+ font.pointSize: 20
+
+ MouseArea {
+ id: mouseArea
+ anchors.fill: parent
+ drag.target: parent
+ onReleased: ctrl.textReleased(parent)
+ }
+ }
+
+ ParticleSystem { id: sys }
+
+ ImageParticle {
+ system: sys
+ source: "qrc:///assets/particle.png"
+ color: "white"
+ colorVariation: 1.0
+ alpha: 0.1
+ }
+
+ property var emitterComponent: Component {
+ id: emitterComponent
+ Emitter {
+ id: container
+ system: sys
+ Emitter {
+ system: sys
+ emitRate: 128
+ lifeSpan: 600
+ size: 16
+ endSize: 8
+ velocity: AngleDirection { angleVariation:360; magnitude: 60 }
+ }
+
+ property int life: 2600
+ property real targetX: 0
+ property real targetY: 0
+ emitRate: 128
+ lifeSpan: 600
+ size: 24
+ endSize: 8
+ NumberAnimation on x {
+ objectName: "xAnim"
+ id: xAnim;
+ to: targetX
+ duration: life
+ running: false
+ }
+ NumberAnimation on y {
+ objectName: "yAnim"
+ id: yAnim;
+ to: targetY
+ duration: life
+ running: false
+ }
+ Timer {
+ interval: life
+ running: true
+ onTriggered: ctrl.done(container)
+ }
+ }
+ }
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/main.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/main.go
new file mode 100644
index 000000000..a151cdb49
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/main.go
@@ -0,0 +1,86 @@
+package main
+
+//go:generate genqrc assets
+
+import (
+ "fmt"
+ "math/rand"
+ "os"
+ "time"
+
+ "gopkg.in/qml.v1"
+)
+
+func main() {
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ engine := qml.NewEngine()
+ component, err := engine.LoadFile("qrc:///assets/particle.qml")
+ if err != nil {
+ return err
+ }
+
+ ctrl := Control{Message: "Hello from Go!"}
+
+ context := engine.Context()
+ context.SetVar("ctrl", &ctrl)
+
+ window := component.CreateWindow(nil)
+
+ ctrl.Root = window.Root()
+
+ rand.Seed(time.Now().Unix())
+
+ window.Show()
+ window.Wait()
+
+ return nil
+}
+
+type Control struct {
+ Root qml.Object
+ Message string
+}
+
+func (ctrl *Control) TextReleased(text qml.Object) {
+ x := text.Int("x")
+ y := text.Int("y")
+ width := text.Int("width")
+ height := text.Int("height")
+
+ ctrl.Emit(x+15, y+height/2)
+ ctrl.Emit(x+width/2, 1.0*y+height/2)
+ ctrl.Emit(x+width-15, 1.0*y+height/2)
+
+ go func() {
+ time.Sleep(500 * time.Millisecond)
+ messages := []string{"Hello", "Hello", "Hacks"}
+ ctrl.Message = messages[rand.Intn(len(messages))] + " from Go!"
+ qml.Changed(ctrl, &ctrl.Message)
+ }()
+}
+
+func (ctrl *Control) Emit(x, y int) {
+ component := ctrl.Root.Object("emitterComponent")
+ for i := 0; i < 8; i++ {
+ emitter := component.Create(nil)
+ emitter.Set("x", x)
+ emitter.Set("y", y)
+ emitter.Set("targetX", rand.Intn(240)-120+x)
+ emitter.Set("targetY", rand.Intn(240)-120+y)
+ emitter.Set("life", rand.Intn(2400)+200)
+ emitter.Set("emitRate", rand.Intn(32)+32)
+ emitter.ObjectByName("xAnim").Call("start")
+ emitter.ObjectByName("yAnim").Call("start")
+ emitter.Set("enabled", true)
+ }
+}
+
+func (ctrl *Control) Done(emitter qml.Object) {
+ emitter.Destroy()
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/qrc.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/qrc.go
new file mode 100644
index 000000000..7002e67f5
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/qrcpacking/qrc.go
@@ -0,0 +1,58 @@
+package main
+
+// This file is automatically generated by gopkg.in/qml.v1/cmd/genqrc
+
+import (
+ "io/ioutil"
+ "os"
+ "path/filepath"
+
+ "gopkg.in/qml.v1"
+)
+
+func init() {
+ var r *qml.Resources
+ var err error
+ if os.Getenv("QRC_REPACK") == "1" {
+ err = qrcRepackResources()
+ if err != nil {
+ panic("cannot repack qrc resources: " + err.Error())
+ }
+ r, err = qml.ParseResources(qrcResourcesRepacked)
+ } else {
+ r, err = qml.ParseResourcesString(qrcResourcesData)
+ }
+ if err != nil {
+ panic("cannot parse bundled resources data: " + err.Error())
+ }
+ qml.LoadResources(r)
+}
+
+func qrcRepackResources() error {
+ subdirs := []string{"assets"}
+ var rp qml.ResourcesPacker
+ for _, subdir := range subdirs {
+ err := filepath.Walk(subdir, func(path string, info os.FileInfo, err error) error {
+ if err != nil {
+ return err
+ }
+ if info.IsDir() {
+ return nil
+ }
+ data, err := ioutil.ReadFile(path)
+ if err != nil {
+ return err
+ }
+ rp.Add(filepath.ToSlash(path), data)
+ return nil
+ })
+ if err != nil {
+ return err
+ }
+ }
+ qrcResourcesRepacked = rp.Pack().Bytes()
+ return nil
+}
+
+var qrcResourcesRepacked []byte
+var qrcResourcesData = "qres\x00\x00\x00\x01\x00\x00\t\xeb\x00\x00\x00\x14\x00\x00\t\x9d\x00\x00\x03]\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \b\x06\x00\x00\x00szz\xf4\x00\x00\x00\x19tEXtSoftware\x00Adobe ImageReadyq\xc9e<\x00\x00\x02\xffIDATxڔWM\x8f\xd40\fM\xd2t\x96\x0f\xed\xc2a\xf7\x00\a~\x01\xff\xff\x9fp\xe2\xc0\x05\x84\x84\x90X\x81\xc4\x0e\xdb6&\xae\x9c\xea\xcd\xc3閑\xacd\xda\xd4~v\x9e\x1d'\x87\xff\xf8\x89H\xaaC\x93hc\xd1W&:/1F9\xaa3\x9b\xe2\xbd5jh\xb0\xb5\x99\x9e\a3\x1c`^\xd5\xc9\\\xc7Ť\xaf8\xc6\v\x85=\x80W\xe6i\x00\xcf\x11\x84\x10\x90bϳ\x01\x98\xecY?\x02\x1d\xaf\xd5\xf0\b\x86Q\xdc\x1d\x82mXl\u07b6IA\xccG\x01\xe8G\xcf-\xec\tF\xde{6\x8e\\H\x06\"BĢ\x01\xd9\x05\x80\xc6\a\x02\xd18\x90H1\x86\xbe\x98\xa7\xed}!\x1e\bG\x82\x01\\\x81\xe1\f\xe3\b`\"\xf1\x80\xa3о\xe9\x85]\x10T&0#x<\xd8\xff\x11\xfe\xefeJp\xb6*:\xc63\x80\xdd\x00\xe8\xc2g\x90r͋\x93͙\xf9\t\x14F`y\x04\x0ed\xda\x1a\x01\xe7t\xfe\x88\x002(F\xef\xd9\xf3\x04{ޛ\x17\x00\x96\x81\x98\x02\xeb\xb6\"\xd6\x00\x8c\xf00\x01\xe1\xd8x\xa4T\x8c\x94~b\xdf,\xf0\xae9Q(3V\x00\xc9\xca+\xa7\xda@F\xd8x\xdaIS/:\x19\xb6\xb7\x8dj;採\xc1\xa9zhDS\xf5]\x95[c\xfb\xf7*\x9f\xab\xfc&\x1e\b\x01\xc7\xf3#\x06\nst\x1630\x95\x17U\xdeWym$Ue/\xab\xdcT\xf9P\xe5\x81·\xd4ѹ\xea\xcdNU\x8b\x0e\xeb\x11\xd8[3vm`\x16{\xae9\xff\xa6\xca'\xe2Fp\xf4\xfdC\xac^q\t\x8e\xa2W\x90\xa27\x96\xbe\xad~\\;\aT\xcf\xf8\xb6\x05\xd21\xea\xe5}\x006k\x1e\xff4\xcf'\xc8\xf7@\xa1\x96\x8e\xde\xf5}&/e'\x02M~X\xe8U\xf9\x1f3\xfa`r\x0f \x84\xb6\x82\x8fmi\x00\x8as\xa8`\xe1\xc0:\xaf\n\xbf\x1a\xe9f\x8b`\xb1h\xfc\xaa\xf2\xadcP\xbc\xc6E%\xc3\xc1\x80\v\x17\xe2\a\x82SO?V\xb93>Lf\\S\xf1\xdc1Th\xdc\xdegz\x89G*o\x0f\x16\x97\xb3\xe5\xfd\x17\xa7\x17\x10ꀚ\xbeB\xe7\xc2:\xa6ڗa\aS\x80d3\x9d\xe5\x05\xfa<\x9e\xb3\x0e!\xe33\x91t\xb1\x9ep;\v&\xaa\u05ed\x8dJ\xce\xe9\x17\bX\x8fh\xec\xc8\xe2Da\v\xb3\x17\x81؎L\xa74\xcbN\xca\x16\xe0\xd1#y/d\xebb\x9f\xcfV\xe3g'\rG:\xb2{-\x99P\x9d\xc0\bx\x1c\xb8\xe8\x88\xdaG'\xe8\xeb8\x9c\x83S\xd7y\r\x87\x9d\xe5\xa2/\xe4\x9ep2ţ-j\x8a\x13\x8c^\xe9\xe6L\xf0ȊϺMik\x95\xb0\x9bI\x0e\x00>\xf3\x99|\x9c\x15L\xc2\xdd{A\xe3\xc3\t.&\xec}\x82m\x92N\xd1\x11 \x12\xfd\xd0\xcd(\x00\x89F\xeaf\xc2\x13\xf7C&\x9bx\x17\x92#\x00\x02\x84n\xa0K\x898\x1c\xe8\x95\xde\xf2\xe4\xedXo\xa9G\x80h\x0fG\xc5)\x92\x81\x15@շ\x1c\xbd\x9e\xff\x15`\x00\xdfɄ\xff\xd7\x15\xb9\x95\x00\x00\x00\x00IEND\xaeB`\x82\x00\x00\x06$import QtQuick 2.0\nimport QtQuick.Particles 2.0\nimport QtGraphicalEffects 1.0;\n\nRectangle {\n\tid: root\n\n\twidth: 640\n\theight: 480\n\n\tgradient: Gradient {\n\t\tGradientStop { position: 0.0; color: \"#3a2c32\"; }\n\t\tGradientStop { position: 0.8; color: \"#875864\"; }\n\t\tGradientStop { position: 1.0; color: \"#9b616c\"; }\n\t}\n\n\tText {\n\t\ttext: ctrl.message\n\n\t\tComponent.onCompleted: {\n\t\t\tx = parent.width/2 - width/2\n\t\t\ty = parent.height/2 - height/2\n\t\t}\n\n\t\tcolor: \"white\"\n\t\tfont.bold: true\n\t\tfont.pointSize: 20\n\n\t\tMouseArea {\n\t\t id: mouseArea\n\t\t anchors.fill: parent\n\t\t drag.target: parent\n onReleased: ctrl.textReleased(parent)\n\t\t}\n\t}\n\n\tParticleSystem { id: sys }\n\n\tImageParticle {\n\t\tsystem: sys\n\t\tsource: \"qrc:///assets/particle.png\"\n\t\tcolor: \"white\"\n\t\tcolorVariation: 1.0\n\t\talpha: 0.1\n\t}\n\n\tproperty var emitterComponent: Component {\n\t\tid: emitterComponent\n\t\tEmitter {\n\t\t\tid: container\n\t\t\tsystem: sys\n\t\t\tEmitter {\n\t\t\t\tsystem: sys\n\t\t\t\temitRate: 128\n\t\t\t\tlifeSpan: 600\n\t\t\t\tsize: 16\n\t\t\t\tendSize: 8\n\t\t\t\tvelocity: AngleDirection { angleVariation:360; magnitude: 60 }\n\t\t\t}\n\n\t\t\tproperty int life: 2600\n\t\t\tproperty real targetX: 0\n\t\t\tproperty real targetY: 0\n\t\t\temitRate: 128\n\t\t\tlifeSpan: 600\n\t\t\tsize: 24\n\t\t\tendSize: 8\n\t\t\tNumberAnimation on x {\n\t\t\t\tobjectName: \"xAnim\"\n\t\t\t\tid: xAnim;\n\t\t\t\tto: targetX\n\t\t\t\tduration: life\n\t\t\t\trunning: false\n\t\t\t}\n\t\t\tNumberAnimation on y {\n\t\t\t\tobjectName: \"yAnim\"\n\t\t\t\tid: yAnim;\n\t\t\t\tto: targetY\n\t\t\t\tduration: life\n\t\t\t\trunning: false\n\t\t\t}\n\t\t\tTimer {\n\t\t\t\tinterval: life\n\t\t\t\trunning: true\n\t\t\t\tonTriggered: ctrl.done(container)\n\t\t\t}\n\t\t}\n\t}\n}\n\x00\x06\x06\x8a\x9c\xb3\x00a\x00s\x00s\x00e\x00t\x00s\x00\f\b\xf9b\xa7\x00p\x00a\x00r\x00t\x00i\x00c\x00l\x00e\x00.\x00p\x00n\x00g\x00\f\b\xf9e\xdc\x00p\x00a\x00r\x00t\x00i\x00c\x00l\x00e\x00.\x00q\x00m\x00l\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x12\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x000\x00\x00\x00\x00\x00\x01\x00\x00\x03a"
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/reparent/base.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/reparent/base.qml
new file mode 100644
index 000000000..a77243e37
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/reparent/base.qml
@@ -0,0 +1,7 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 640
+ height: 480
+ color: "black"
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/reparent/rect.qml b/Godeps/_workspace/src/github.com/obscuren/qml/examples/reparent/rect.qml
new file mode 100644
index 000000000..21eda2fea
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/reparent/rect.qml
@@ -0,0 +1,8 @@
+import QtQuick 2.0
+
+Rectangle {
+ anchors.centerIn: parent
+ width: 50
+ height: 50
+ color: "red"
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/reparent/reparent.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/reparent/reparent.go
new file mode 100644
index 000000000..c1399f88c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/reparent/reparent.go
@@ -0,0 +1,37 @@
+package main
+
+import (
+ "fmt"
+ "gopkg.in/qml.v1"
+ "os"
+)
+
+func main() {
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ engine := qml.NewEngine()
+
+ base, err := engine.LoadFile("base.qml")
+ if err != nil {
+ return err
+ }
+ rect, err := engine.LoadFile("rect.qml")
+ if err != nil {
+ return err
+ }
+
+ win := base.CreateWindow(nil)
+ obj := rect.Create(nil)
+
+ obj.Set("parent", win.Root())
+
+ win.Show()
+ win.Wait()
+
+ return nil
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/examples/snapweb/snapweb.go b/Godeps/_workspace/src/github.com/obscuren/qml/examples/snapweb/snapweb.go
new file mode 100644
index 000000000..53d1d6210
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/examples/snapweb/snapweb.go
@@ -0,0 +1,70 @@
+package main
+
+import (
+ "fmt"
+ "gopkg.in/qml.v1"
+ "image/png"
+ "os"
+)
+
+const webview = `
+import QtQuick 2.0
+import QtWebKit 3.0
+
+WebView {
+ width: 1024
+ height: 768
+}
+`
+
+func main() {
+ if len(os.Args) != 3 {
+ fmt.Fprintf(os.Stderr, "usage: %s <url> <png path>\n", os.Args[0])
+ os.Exit(1)
+ }
+ if err := qml.Run(run); err != nil {
+ fmt.Fprintf(os.Stderr, "error: %v\n", err)
+ os.Exit(1)
+ }
+}
+
+func run() error {
+ engine := qml.NewEngine()
+ component, err := engine.LoadString("webview.qml", webview)
+ if err != nil {
+ return err
+ }
+ ctrl := &Control{
+ done: make(chan error),
+ win: component.CreateWindow(nil),
+ }
+ engine.Context().SetVar("ctrl", ctrl)
+ root := ctrl.win.Root()
+ root.On("loadingChanged", ctrl.Snapshot)
+ root.Set("url", os.Args[1])
+ ctrl.win.Show()
+ return <-ctrl.done
+}
+
+type Control struct {
+ win *qml.Window
+ done chan error
+}
+
+func (ctrl *Control) Snapshot(request qml.Object) {
+ if request.Int("status") != 2 {
+ return
+ }
+ f, err := os.Create(os.Args[2])
+ if err != nil {
+ ctrl.done <- err
+ return
+ }
+ defer f.Close()
+ img := ctrl.win.Snapshot()
+ err = png.Encode(f, img)
+ if err != nil {
+ os.Remove(os.Args[2])
+ }
+ ctrl.done <- err
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.0/funcs.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.0/funcs.cpp
new file mode 100644
index 000000000..d7d9cf657
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.0/funcs.cpp
@@ -0,0 +1,1848 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#include <QOpenGLContext>
+#include <QtGui/qopenglfunctions_1_0.h>
+
+#include "funcs.h"
+
+void *gl1_0_funcs() {
+ QOpenGLFunctions_1_0* funcs = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_1_0>();
+ if (!funcs) {
+ return 0;
+ }
+ funcs->initializeOpenGLFunctions();
+ return funcs;
+}
+
+
+void gl1_0_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glViewport(x, y, width, height);
+}
+
+void gl1_0_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glDepthRange(nearVal, farVal);
+}
+
+GLboolean gl1_0_glIsEnabled(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ return _qglfuncs->glIsEnabled(cap);
+}
+
+void gl1_0_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameteriv(target, level, pname, params);
+}
+
+void gl1_0_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameterfv(target, level, pname, params);
+}
+
+void gl1_0_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetTexParameteriv(target, pname, params);
+}
+
+void gl1_0_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetTexParameterfv(target, pname, params);
+}
+
+void gl1_0_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetTexImage(target, level, format, gltype, pixels);
+}
+
+void gl1_0_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetIntegerv(pname, params);
+}
+
+void gl1_0_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetFloatv(pname, params);
+}
+
+GLenum gl1_0_glGetError(void *_glfuncs)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ return _qglfuncs->glGetError();
+}
+
+void gl1_0_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetDoublev(pname, params);
+}
+
+void gl1_0_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetBooleanv(pname, params);
+}
+
+void gl1_0_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glReadPixels(x, y, width, height, format, gltype, pixels);
+}
+
+void gl1_0_glReadBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glReadBuffer(mode);
+}
+
+void gl1_0_glPixelStorei(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPixelStorei(pname, param);
+}
+
+void gl1_0_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPixelStoref(pname, param);
+}
+
+void gl1_0_glDepthFunc(void *_glfuncs, GLenum glfunc)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glDepthFunc(glfunc);
+}
+
+void gl1_0_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glStencilOp(fail, zfail, zpass);
+}
+
+void gl1_0_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glStencilFunc(glfunc, ref, mask);
+}
+
+void gl1_0_glLogicOp(void *_glfuncs, GLenum opcode)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLogicOp(opcode);
+}
+
+void gl1_0_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glBlendFunc(sfactor, dfactor);
+}
+
+void gl1_0_glFlush(void *_glfuncs)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glFlush();
+}
+
+void gl1_0_glFinish(void *_glfuncs)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glFinish();
+}
+
+void gl1_0_glEnable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEnable(cap);
+}
+
+void gl1_0_glDisable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glDisable(cap);
+}
+
+void gl1_0_glDepthMask(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glDepthMask(flag);
+}
+
+void gl1_0_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColorMask(red, green, blue, alpha);
+}
+
+void gl1_0_glStencilMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glStencilMask(mask);
+}
+
+void gl1_0_glClearDepth(void *_glfuncs, GLdouble depth)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glClearDepth(depth);
+}
+
+void gl1_0_glClearStencil(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glClearStencil(s);
+}
+
+void gl1_0_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glClearColor(red, green, blue, alpha);
+}
+
+void gl1_0_glClear(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glClear(mask);
+}
+
+void gl1_0_glDrawBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glDrawBuffer(mode);
+}
+
+void gl1_0_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexImage2D(target, level, internalFormat, width, height, border, format, gltype, pixels);
+}
+
+void gl1_0_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexImage1D(target, level, internalFormat, width, border, format, gltype, pixels);
+}
+
+void gl1_0_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexParameteriv(target, pname, params);
+}
+
+void gl1_0_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexParameteri(target, pname, param);
+}
+
+void gl1_0_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexParameterfv(target, pname, params);
+}
+
+void gl1_0_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexParameterf(target, pname, param);
+}
+
+void gl1_0_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glScissor(x, y, width, height);
+}
+
+void gl1_0_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPolygonMode(face, mode);
+}
+
+void gl1_0_glPointSize(void *_glfuncs, GLfloat size)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPointSize(size);
+}
+
+void gl1_0_glLineWidth(void *_glfuncs, GLfloat width)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLineWidth(width);
+}
+
+void gl1_0_glHint(void *_glfuncs, GLenum target, GLenum mode)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glHint(target, mode);
+}
+
+void gl1_0_glFrontFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glFrontFace(mode);
+}
+
+void gl1_0_glCullFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glCullFace(mode);
+}
+
+void gl1_0_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTranslatef(x, y, z);
+}
+
+void gl1_0_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTranslated(x, y, z);
+}
+
+void gl1_0_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glScalef(x, y, z);
+}
+
+void gl1_0_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glScaled(x, y, z);
+}
+
+void gl1_0_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRotatef(angle, x, y, z);
+}
+
+void gl1_0_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRotated(angle, x, y, z);
+}
+
+void gl1_0_glPushMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPushMatrix();
+}
+
+void gl1_0_glPopMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPopMatrix();
+}
+
+void gl1_0_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glOrtho(left, right, bottom, top, zNear, zFar);
+}
+
+void gl1_0_glMultMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMultMatrixd(m);
+}
+
+void gl1_0_glMultMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMultMatrixf(m);
+}
+
+void gl1_0_glMatrixMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMatrixMode(mode);
+}
+
+void gl1_0_glLoadMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLoadMatrixd(m);
+}
+
+void gl1_0_glLoadMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLoadMatrixf(m);
+}
+
+void gl1_0_glLoadIdentity(void *_glfuncs)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLoadIdentity();
+}
+
+void gl1_0_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glFrustum(left, right, bottom, top, zNear, zFar);
+}
+
+GLboolean gl1_0_glIsList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ return _qglfuncs->glIsList(list);
+}
+
+void gl1_0_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetTexGeniv(coord, pname, params);
+}
+
+void gl1_0_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetTexGenfv(coord, pname, params);
+}
+
+void gl1_0_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetTexGendv(coord, pname, params);
+}
+
+void gl1_0_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetTexEnviv(target, pname, params);
+}
+
+void gl1_0_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetTexEnvfv(target, pname, params);
+}
+
+void gl1_0_glGetPolygonStipple(void *_glfuncs, GLubyte* mask)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetPolygonStipple(mask);
+}
+
+void gl1_0_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetPixelMapusv(glmap, values);
+}
+
+void gl1_0_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetPixelMapuiv(glmap, values);
+}
+
+void gl1_0_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetPixelMapfv(glmap, values);
+}
+
+void gl1_0_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetMaterialiv(face, pname, params);
+}
+
+void gl1_0_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetMaterialfv(face, pname, params);
+}
+
+void gl1_0_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetMapiv(target, query, v);
+}
+
+void gl1_0_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetMapfv(target, query, v);
+}
+
+void gl1_0_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetMapdv(target, query, v);
+}
+
+void gl1_0_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetLightiv(light, pname, params);
+}
+
+void gl1_0_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetLightfv(light, pname, params);
+}
+
+void gl1_0_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glGetClipPlane(plane, equation);
+}
+
+void gl1_0_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glDrawPixels(width, height, format, gltype, pixels);
+}
+
+void gl1_0_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glCopyPixels(x, y, width, height, gltype);
+}
+
+void gl1_0_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPixelMapusv(glmap, mapsize, values);
+}
+
+void gl1_0_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPixelMapuiv(glmap, mapsize, values);
+}
+
+void gl1_0_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPixelMapfv(glmap, mapsize, values);
+}
+
+void gl1_0_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPixelTransferi(pname, param);
+}
+
+void gl1_0_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPixelTransferf(pname, param);
+}
+
+void gl1_0_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPixelZoom(xfactor, yfactor);
+}
+
+void gl1_0_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glAlphaFunc(glfunc, ref);
+}
+
+void gl1_0_glEvalPoint2(void *_glfuncs, GLint i, GLint j)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEvalPoint2(i, j);
+}
+
+void gl1_0_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEvalMesh2(mode, i1, i2, j1, j2);
+}
+
+void gl1_0_glEvalPoint1(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEvalPoint1(i);
+}
+
+void gl1_0_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEvalMesh1(mode, i1, i2);
+}
+
+void gl1_0_glEvalCoord2fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord2fv(u);
+}
+
+void gl1_0_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord2f(u, v);
+}
+
+void gl1_0_glEvalCoord2dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord2dv(u);
+}
+
+void gl1_0_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord2d(u, v);
+}
+
+void gl1_0_glEvalCoord1fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord1fv(u);
+}
+
+void gl1_0_glEvalCoord1f(void *_glfuncs, GLfloat u)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord1f(u);
+}
+
+void gl1_0_glEvalCoord1dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord1dv(u);
+}
+
+void gl1_0_glEvalCoord1d(void *_glfuncs, GLdouble u)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord1d(u);
+}
+
+void gl1_0_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMapGrid2f(un, u1, u2, vn, v1, v2);
+}
+
+void gl1_0_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMapGrid2d(un, u1, u2, vn, v1, v2);
+}
+
+void gl1_0_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMapGrid1f(un, u1, u2);
+}
+
+void gl1_0_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMapGrid1d(un, u1, u2);
+}
+
+void gl1_0_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl1_0_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl1_0_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMap1f(target, u1, u2, stride, order, points);
+}
+
+void gl1_0_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMap1d(target, u1, u2, stride, order, points);
+}
+
+void gl1_0_glPushAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPushAttrib(mask);
+}
+
+void gl1_0_glPopAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPopAttrib();
+}
+
+void gl1_0_glAccum(void *_glfuncs, GLenum op, GLfloat value)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glAccum(op, value);
+}
+
+void gl1_0_glIndexMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glIndexMask(mask);
+}
+
+void gl1_0_glClearIndex(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glClearIndex(c);
+}
+
+void gl1_0_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glClearAccum(red, green, blue, alpha);
+}
+
+void gl1_0_glPushName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPushName(name);
+}
+
+void gl1_0_glPopName(void *_glfuncs)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPopName();
+}
+
+void gl1_0_glPassThrough(void *_glfuncs, GLfloat token)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPassThrough(token);
+}
+
+void gl1_0_glLoadName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLoadName(name);
+}
+
+void gl1_0_glInitNames(void *_glfuncs)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glInitNames();
+}
+
+GLint gl1_0_glRenderMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ return _qglfuncs->glRenderMode(mode);
+}
+
+void gl1_0_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glSelectBuffer(size, buffer);
+}
+
+void gl1_0_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glFeedbackBuffer(size, gltype, buffer);
+}
+
+void gl1_0_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexGeniv(coord, pname, params);
+}
+
+void gl1_0_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexGeni(coord, pname, param);
+}
+
+void gl1_0_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexGenfv(coord, pname, params);
+}
+
+void gl1_0_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexGenf(coord, pname, param);
+}
+
+void gl1_0_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexGendv(coord, pname, params);
+}
+
+void gl1_0_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexGend(coord, pname, param);
+}
+
+void gl1_0_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexEnviv(target, pname, params);
+}
+
+void gl1_0_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexEnvi(target, pname, param);
+}
+
+void gl1_0_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexEnvfv(target, pname, params);
+}
+
+void gl1_0_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexEnvf(target, pname, param);
+}
+
+void gl1_0_glShadeModel(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glShadeModel(mode);
+}
+
+void gl1_0_glPolygonStipple(void *_glfuncs, const GLubyte* mask)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glPolygonStipple(mask);
+}
+
+void gl1_0_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMaterialiv(face, pname, params);
+}
+
+void gl1_0_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMateriali(face, pname, param);
+}
+
+void gl1_0_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMaterialfv(face, pname, params);
+}
+
+void gl1_0_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glMaterialf(face, pname, param);
+}
+
+void gl1_0_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLineStipple(factor, pattern);
+}
+
+void gl1_0_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLightModeliv(pname, params);
+}
+
+void gl1_0_glLightModeli(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLightModeli(pname, param);
+}
+
+void gl1_0_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLightModelfv(pname, params);
+}
+
+void gl1_0_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLightModelf(pname, param);
+}
+
+void gl1_0_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLightiv(light, pname, params);
+}
+
+void gl1_0_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLighti(light, pname, param);
+}
+
+void gl1_0_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLightfv(light, pname, params);
+}
+
+void gl1_0_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glLightf(light, pname, param);
+}
+
+void gl1_0_glFogiv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glFogiv(pname, params);
+}
+
+void gl1_0_glFogi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glFogi(pname, param);
+}
+
+void gl1_0_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glFogfv(pname, params);
+}
+
+void gl1_0_glFogf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glFogf(pname, param);
+}
+
+void gl1_0_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColorMaterial(face, mode);
+}
+
+void gl1_0_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glClipPlane(plane, equation);
+}
+
+void gl1_0_glVertex4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex4sv(v);
+}
+
+void gl1_0_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex4s(x, y, z, w);
+}
+
+void gl1_0_glVertex4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex4iv(v);
+}
+
+void gl1_0_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex4i(x, y, z, w);
+}
+
+void gl1_0_glVertex4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex4fv(v);
+}
+
+void gl1_0_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex4f(x, y, z, w);
+}
+
+void gl1_0_glVertex4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex4dv(v);
+}
+
+void gl1_0_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex4d(x, y, z, w);
+}
+
+void gl1_0_glVertex3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex3sv(v);
+}
+
+void gl1_0_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex3s(x, y, z);
+}
+
+void gl1_0_glVertex3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex3iv(v);
+}
+
+void gl1_0_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex3i(x, y, z);
+}
+
+void gl1_0_glVertex3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex3fv(v);
+}
+
+void gl1_0_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex3f(x, y, z);
+}
+
+void gl1_0_glVertex3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex3dv(v);
+}
+
+void gl1_0_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex3d(x, y, z);
+}
+
+void gl1_0_glVertex2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex2sv(v);
+}
+
+void gl1_0_glVertex2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex2s(x, y);
+}
+
+void gl1_0_glVertex2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex2iv(v);
+}
+
+void gl1_0_glVertex2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex2i(x, y);
+}
+
+void gl1_0_glVertex2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex2fv(v);
+}
+
+void gl1_0_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex2f(x, y);
+}
+
+void gl1_0_glVertex2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex2dv(v);
+}
+
+void gl1_0_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glVertex2d(x, y);
+}
+
+void gl1_0_glTexCoord4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4sv(v);
+}
+
+void gl1_0_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4s(s, t, r, q);
+}
+
+void gl1_0_glTexCoord4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4iv(v);
+}
+
+void gl1_0_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4i(s, t, r, q);
+}
+
+void gl1_0_glTexCoord4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4fv(v);
+}
+
+void gl1_0_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4f(s, t, r, q);
+}
+
+void gl1_0_glTexCoord4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4dv(v);
+}
+
+void gl1_0_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4d(s, t, r, q);
+}
+
+void gl1_0_glTexCoord3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3sv(v);
+}
+
+void gl1_0_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3s(s, t, r);
+}
+
+void gl1_0_glTexCoord3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3iv(v);
+}
+
+void gl1_0_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3i(s, t, r);
+}
+
+void gl1_0_glTexCoord3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3fv(v);
+}
+
+void gl1_0_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3f(s, t, r);
+}
+
+void gl1_0_glTexCoord3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3dv(v);
+}
+
+void gl1_0_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3d(s, t, r);
+}
+
+void gl1_0_glTexCoord2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2sv(v);
+}
+
+void gl1_0_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2s(s, t);
+}
+
+void gl1_0_glTexCoord2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2iv(v);
+}
+
+void gl1_0_glTexCoord2i(void *_glfuncs, GLint s, GLint t)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2i(s, t);
+}
+
+void gl1_0_glTexCoord2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2fv(v);
+}
+
+void gl1_0_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2f(s, t);
+}
+
+void gl1_0_glTexCoord2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2dv(v);
+}
+
+void gl1_0_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2d(s, t);
+}
+
+void gl1_0_glTexCoord1sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1sv(v);
+}
+
+void gl1_0_glTexCoord1s(void *_glfuncs, GLshort s)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1s(s);
+}
+
+void gl1_0_glTexCoord1iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1iv(v);
+}
+
+void gl1_0_glTexCoord1i(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1i(s);
+}
+
+void gl1_0_glTexCoord1fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1fv(v);
+}
+
+void gl1_0_glTexCoord1f(void *_glfuncs, GLfloat s)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1f(s);
+}
+
+void gl1_0_glTexCoord1dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1dv(v);
+}
+
+void gl1_0_glTexCoord1d(void *_glfuncs, GLdouble s)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1d(s);
+}
+
+void gl1_0_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRectsv(v1, v2);
+}
+
+void gl1_0_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRects(x1, y1, x2, y2);
+}
+
+void gl1_0_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRectiv(v1, v2);
+}
+
+void gl1_0_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRecti(x1, y1, x2, y2);
+}
+
+void gl1_0_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRectfv(v1, v2);
+}
+
+void gl1_0_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRectf(x1, y1, x2, y2);
+}
+
+void gl1_0_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRectdv(v1, v2);
+}
+
+void gl1_0_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRectd(x1, y1, x2, y2);
+}
+
+void gl1_0_glRasterPos4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4sv(v);
+}
+
+void gl1_0_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4s(x, y, z, w);
+}
+
+void gl1_0_glRasterPos4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4iv(v);
+}
+
+void gl1_0_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4i(x, y, z, w);
+}
+
+void gl1_0_glRasterPos4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4fv(v);
+}
+
+void gl1_0_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4f(x, y, z, w);
+}
+
+void gl1_0_glRasterPos4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4dv(v);
+}
+
+void gl1_0_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4d(x, y, z, w);
+}
+
+void gl1_0_glRasterPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3sv(v);
+}
+
+void gl1_0_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3s(x, y, z);
+}
+
+void gl1_0_glRasterPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3iv(v);
+}
+
+void gl1_0_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3i(x, y, z);
+}
+
+void gl1_0_glRasterPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3fv(v);
+}
+
+void gl1_0_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3f(x, y, z);
+}
+
+void gl1_0_glRasterPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3dv(v);
+}
+
+void gl1_0_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3d(x, y, z);
+}
+
+void gl1_0_glRasterPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2sv(v);
+}
+
+void gl1_0_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2s(x, y);
+}
+
+void gl1_0_glRasterPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2iv(v);
+}
+
+void gl1_0_glRasterPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2i(x, y);
+}
+
+void gl1_0_glRasterPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2fv(v);
+}
+
+void gl1_0_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2f(x, y);
+}
+
+void gl1_0_glRasterPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2dv(v);
+}
+
+void gl1_0_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2d(x, y);
+}
+
+void gl1_0_glNormal3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glNormal3sv(v);
+}
+
+void gl1_0_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glNormal3s(nx, ny, nz);
+}
+
+void gl1_0_glNormal3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glNormal3iv(v);
+}
+
+void gl1_0_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glNormal3i(nx, ny, nz);
+}
+
+void gl1_0_glNormal3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glNormal3fv(v);
+}
+
+void gl1_0_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glNormal3f(nx, ny, nz);
+}
+
+void gl1_0_glNormal3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glNormal3dv(v);
+}
+
+void gl1_0_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glNormal3d(nx, ny, nz);
+}
+
+void gl1_0_glNormal3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glNormal3bv(v);
+}
+
+void gl1_0_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glNormal3b(nx, ny, nz);
+}
+
+void gl1_0_glIndexsv(void *_glfuncs, const GLshort* c)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glIndexsv(c);
+}
+
+void gl1_0_glIndexs(void *_glfuncs, GLshort c)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glIndexs(c);
+}
+
+void gl1_0_glIndexiv(void *_glfuncs, const GLint* c)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glIndexiv(c);
+}
+
+void gl1_0_glIndexi(void *_glfuncs, GLint c)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glIndexi(c);
+}
+
+void gl1_0_glIndexfv(void *_glfuncs, const GLfloat* c)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glIndexfv(c);
+}
+
+void gl1_0_glIndexf(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glIndexf(c);
+}
+
+void gl1_0_glIndexdv(void *_glfuncs, const GLdouble* c)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glIndexdv(c);
+}
+
+void gl1_0_glIndexd(void *_glfuncs, GLdouble c)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glIndexd(c);
+}
+
+void gl1_0_glEnd(void *_glfuncs)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEnd();
+}
+
+void gl1_0_glEdgeFlagv(void *_glfuncs, const GLboolean* flag)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEdgeFlagv(flag);
+}
+
+void gl1_0_glEdgeFlag(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEdgeFlag(flag);
+}
+
+void gl1_0_glColor4usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4usv(v);
+}
+
+void gl1_0_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4us(red, green, blue, alpha);
+}
+
+void gl1_0_glColor4uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4uiv(v);
+}
+
+void gl1_0_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4ui(red, green, blue, alpha);
+}
+
+void gl1_0_glColor4ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4ubv(v);
+}
+
+void gl1_0_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4ub(red, green, blue, alpha);
+}
+
+void gl1_0_glColor4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4sv(v);
+}
+
+void gl1_0_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4s(red, green, blue, alpha);
+}
+
+void gl1_0_glColor4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4iv(v);
+}
+
+void gl1_0_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4i(red, green, blue, alpha);
+}
+
+void gl1_0_glColor4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4fv(v);
+}
+
+void gl1_0_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4f(red, green, blue, alpha);
+}
+
+void gl1_0_glColor4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4dv(v);
+}
+
+void gl1_0_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4d(red, green, blue, alpha);
+}
+
+void gl1_0_glColor4bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4bv(v);
+}
+
+void gl1_0_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor4b(red, green, blue, alpha);
+}
+
+void gl1_0_glColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3usv(v);
+}
+
+void gl1_0_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3us(red, green, blue);
+}
+
+void gl1_0_glColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3uiv(v);
+}
+
+void gl1_0_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3ui(red, green, blue);
+}
+
+void gl1_0_glColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3ubv(v);
+}
+
+void gl1_0_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3ub(red, green, blue);
+}
+
+void gl1_0_glColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3sv(v);
+}
+
+void gl1_0_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3s(red, green, blue);
+}
+
+void gl1_0_glColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3iv(v);
+}
+
+void gl1_0_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3i(red, green, blue);
+}
+
+void gl1_0_glColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3fv(v);
+}
+
+void gl1_0_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3f(red, green, blue);
+}
+
+void gl1_0_glColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3dv(v);
+}
+
+void gl1_0_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3d(red, green, blue);
+}
+
+void gl1_0_glColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3bv(v);
+}
+
+void gl1_0_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glColor3b(red, green, blue);
+}
+
+void gl1_0_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
+}
+
+void gl1_0_glBegin(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glBegin(mode);
+}
+
+void gl1_0_glListBase(void *_glfuncs, GLuint base)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glListBase(base);
+}
+
+GLuint gl1_0_glGenLists(void *_glfuncs, GLsizei range_)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ return _qglfuncs->glGenLists(range_);
+}
+
+void gl1_0_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glDeleteLists(list, range_);
+}
+
+void gl1_0_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glCallLists(n, gltype, lists);
+}
+
+void gl1_0_glCallList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glCallList(list);
+}
+
+void gl1_0_glEndList(void *_glfuncs)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glEndList();
+}
+
+void gl1_0_glNewList(void *_glfuncs, GLuint list, GLenum mode)
+{
+ QOpenGLFunctions_1_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_0*>(_glfuncs);
+ _qglfuncs->glNewList(list, mode);
+}
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.0/funcs.h b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.0/funcs.h
new file mode 100644
index 000000000..c016eec7b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.0/funcs.h
@@ -0,0 +1,347 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#ifndef __cplusplus
+#include <inttypes.h>
+#include <stddef.h>
+typedef unsigned int GLenum;
+typedef unsigned char GLboolean;
+typedef unsigned int GLbitfield;
+typedef void GLvoid;
+typedef char GLchar;
+typedef signed char GLbyte; /* 1-byte signed */
+typedef short GLshort; /* 2-byte signed */
+typedef int GLint; /* 4-byte signed */
+typedef unsigned char GLubyte; /* 1-byte unsigned */
+typedef unsigned short GLushort; /* 2-byte unsigned */
+typedef unsigned int GLuint; /* 4-byte unsigned */
+typedef int GLsizei; /* 4-byte signed */
+typedef float GLfloat; /* single precision float */
+typedef float GLclampf; /* single precision float in [0,1] */
+typedef double GLdouble; /* double precision float */
+typedef double GLclampd; /* double precision float in [0,1] */
+typedef int64_t GLint64;
+typedef uint64_t GLuint64;
+typedef ptrdiff_t GLintptr;
+typedef ptrdiff_t GLsizeiptr;
+typedef ptrdiff_t GLintptrARB;
+typedef ptrdiff_t GLsizeiptrARB;
+typedef struct __GLsync *GLsync;
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *gl1_0_funcs();
+
+void gl1_0_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_0_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal);
+GLboolean gl1_0_glIsEnabled(void *_glfuncs, GLenum cap);
+void gl1_0_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params);
+void gl1_0_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params);
+void gl1_0_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_0_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_0_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl1_0_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params);
+void gl1_0_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params);
+GLenum gl1_0_glGetError(void *_glfuncs);
+void gl1_0_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params);
+void gl1_0_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params);
+void gl1_0_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl1_0_glReadBuffer(void *_glfuncs, GLenum mode);
+void gl1_0_glPixelStorei(void *_glfuncs, GLenum pname, GLint param);
+void gl1_0_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_0_glDepthFunc(void *_glfuncs, GLenum glfunc);
+void gl1_0_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass);
+void gl1_0_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask);
+void gl1_0_glLogicOp(void *_glfuncs, GLenum opcode);
+void gl1_0_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor);
+void gl1_0_glFlush(void *_glfuncs);
+void gl1_0_glFinish(void *_glfuncs);
+void gl1_0_glEnable(void *_glfuncs, GLenum cap);
+void gl1_0_glDisable(void *_glfuncs, GLenum cap);
+void gl1_0_glDepthMask(void *_glfuncs, GLboolean flag);
+void gl1_0_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+void gl1_0_glStencilMask(void *_glfuncs, GLuint mask);
+void gl1_0_glClearDepth(void *_glfuncs, GLdouble depth);
+void gl1_0_glClearStencil(void *_glfuncs, GLint s);
+void gl1_0_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_0_glClear(void *_glfuncs, GLbitfield mask);
+void gl1_0_glDrawBuffer(void *_glfuncs, GLenum mode);
+void gl1_0_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_0_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_0_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_0_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl1_0_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_0_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl1_0_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_0_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode);
+void gl1_0_glPointSize(void *_glfuncs, GLfloat size);
+void gl1_0_glLineWidth(void *_glfuncs, GLfloat width);
+void gl1_0_glHint(void *_glfuncs, GLenum target, GLenum mode);
+void gl1_0_glFrontFace(void *_glfuncs, GLenum mode);
+void gl1_0_glCullFace(void *_glfuncs, GLenum mode);
+void gl1_0_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_0_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_0_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_0_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_0_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+void gl1_0_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+void gl1_0_glPushMatrix(void *_glfuncs);
+void gl1_0_glPopMatrix(void *_glfuncs);
+void gl1_0_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+void gl1_0_glMultMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_0_glMultMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_0_glMatrixMode(void *_glfuncs, GLenum mode);
+void gl1_0_glLoadMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_0_glLoadMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_0_glLoadIdentity(void *_glfuncs);
+void gl1_0_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLboolean gl1_0_glIsList(void *_glfuncs, GLuint list);
+void gl1_0_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params);
+void gl1_0_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params);
+void gl1_0_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params);
+void gl1_0_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_0_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_0_glGetPolygonStipple(void *_glfuncs, GLubyte* mask);
+void gl1_0_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values);
+void gl1_0_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values);
+void gl1_0_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values);
+void gl1_0_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params);
+void gl1_0_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params);
+void gl1_0_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v);
+void gl1_0_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v);
+void gl1_0_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v);
+void gl1_0_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params);
+void gl1_0_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params);
+void gl1_0_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation);
+void gl1_0_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_0_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype);
+void gl1_0_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values);
+void gl1_0_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values);
+void gl1_0_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values);
+void gl1_0_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param);
+void gl1_0_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_0_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor);
+void gl1_0_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref);
+void gl1_0_glEvalPoint2(void *_glfuncs, GLint i, GLint j);
+void gl1_0_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
+void gl1_0_glEvalPoint1(void *_glfuncs, GLint i);
+void gl1_0_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2);
+void gl1_0_glEvalCoord2fv(void *_glfuncs, const GLfloat* u);
+void gl1_0_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v);
+void gl1_0_glEvalCoord2dv(void *_glfuncs, const GLdouble* u);
+void gl1_0_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v);
+void gl1_0_glEvalCoord1fv(void *_glfuncs, const GLfloat* u);
+void gl1_0_glEvalCoord1f(void *_glfuncs, GLfloat u);
+void gl1_0_glEvalCoord1dv(void *_glfuncs, const GLdouble* u);
+void gl1_0_glEvalCoord1d(void *_glfuncs, GLdouble u);
+void gl1_0_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
+void gl1_0_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
+void gl1_0_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2);
+void gl1_0_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2);
+void gl1_0_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points);
+void gl1_0_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points);
+void gl1_0_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points);
+void gl1_0_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points);
+void gl1_0_glPushAttrib(void *_glfuncs, GLbitfield mask);
+void gl1_0_glPopAttrib(void *_glfuncs);
+void gl1_0_glAccum(void *_glfuncs, GLenum op, GLfloat value);
+void gl1_0_glIndexMask(void *_glfuncs, GLuint mask);
+void gl1_0_glClearIndex(void *_glfuncs, GLfloat c);
+void gl1_0_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_0_glPushName(void *_glfuncs, GLuint name);
+void gl1_0_glPopName(void *_glfuncs);
+void gl1_0_glPassThrough(void *_glfuncs, GLfloat token);
+void gl1_0_glLoadName(void *_glfuncs, GLuint name);
+void gl1_0_glInitNames(void *_glfuncs);
+GLint gl1_0_glRenderMode(void *_glfuncs, GLenum mode);
+void gl1_0_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer);
+void gl1_0_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer);
+void gl1_0_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params);
+void gl1_0_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param);
+void gl1_0_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params);
+void gl1_0_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param);
+void gl1_0_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params);
+void gl1_0_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param);
+void gl1_0_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_0_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl1_0_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_0_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl1_0_glShadeModel(void *_glfuncs, GLenum mode);
+void gl1_0_glPolygonStipple(void *_glfuncs, const GLubyte* mask);
+void gl1_0_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params);
+void gl1_0_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param);
+void gl1_0_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params);
+void gl1_0_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param);
+void gl1_0_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern);
+void gl1_0_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl1_0_glLightModeli(void *_glfuncs, GLenum pname, GLint param);
+void gl1_0_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl1_0_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_0_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params);
+void gl1_0_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param);
+void gl1_0_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params);
+void gl1_0_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param);
+void gl1_0_glFogiv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl1_0_glFogi(void *_glfuncs, GLenum pname, GLint param);
+void gl1_0_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl1_0_glFogf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_0_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode);
+void gl1_0_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation);
+void gl1_0_glVertex4sv(void *_glfuncs, const GLshort* v);
+void gl1_0_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl1_0_glVertex4iv(void *_glfuncs, const GLint* v);
+void gl1_0_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl1_0_glVertex4fv(void *_glfuncs, const GLfloat* v);
+void gl1_0_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl1_0_glVertex4dv(void *_glfuncs, const GLdouble* v);
+void gl1_0_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl1_0_glVertex3sv(void *_glfuncs, const GLshort* v);
+void gl1_0_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl1_0_glVertex3iv(void *_glfuncs, const GLint* v);
+void gl1_0_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl1_0_glVertex3fv(void *_glfuncs, const GLfloat* v);
+void gl1_0_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_0_glVertex3dv(void *_glfuncs, const GLdouble* v);
+void gl1_0_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_0_glVertex2sv(void *_glfuncs, const GLshort* v);
+void gl1_0_glVertex2s(void *_glfuncs, GLshort x, GLshort y);
+void gl1_0_glVertex2iv(void *_glfuncs, const GLint* v);
+void gl1_0_glVertex2i(void *_glfuncs, GLint x, GLint y);
+void gl1_0_glVertex2fv(void *_glfuncs, const GLfloat* v);
+void gl1_0_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl1_0_glVertex2dv(void *_glfuncs, const GLdouble* v);
+void gl1_0_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl1_0_glTexCoord4sv(void *_glfuncs, const GLshort* v);
+void gl1_0_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl1_0_glTexCoord4iv(void *_glfuncs, const GLint* v);
+void gl1_0_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q);
+void gl1_0_glTexCoord4fv(void *_glfuncs, const GLfloat* v);
+void gl1_0_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl1_0_glTexCoord4dv(void *_glfuncs, const GLdouble* v);
+void gl1_0_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl1_0_glTexCoord3sv(void *_glfuncs, const GLshort* v);
+void gl1_0_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r);
+void gl1_0_glTexCoord3iv(void *_glfuncs, const GLint* v);
+void gl1_0_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r);
+void gl1_0_glTexCoord3fv(void *_glfuncs, const GLfloat* v);
+void gl1_0_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r);
+void gl1_0_glTexCoord3dv(void *_glfuncs, const GLdouble* v);
+void gl1_0_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r);
+void gl1_0_glTexCoord2sv(void *_glfuncs, const GLshort* v);
+void gl1_0_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t);
+void gl1_0_glTexCoord2iv(void *_glfuncs, const GLint* v);
+void gl1_0_glTexCoord2i(void *_glfuncs, GLint s, GLint t);
+void gl1_0_glTexCoord2fv(void *_glfuncs, const GLfloat* v);
+void gl1_0_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t);
+void gl1_0_glTexCoord2dv(void *_glfuncs, const GLdouble* v);
+void gl1_0_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t);
+void gl1_0_glTexCoord1sv(void *_glfuncs, const GLshort* v);
+void gl1_0_glTexCoord1s(void *_glfuncs, GLshort s);
+void gl1_0_glTexCoord1iv(void *_glfuncs, const GLint* v);
+void gl1_0_glTexCoord1i(void *_glfuncs, GLint s);
+void gl1_0_glTexCoord1fv(void *_glfuncs, const GLfloat* v);
+void gl1_0_glTexCoord1f(void *_glfuncs, GLfloat s);
+void gl1_0_glTexCoord1dv(void *_glfuncs, const GLdouble* v);
+void gl1_0_glTexCoord1d(void *_glfuncs, GLdouble s);
+void gl1_0_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2);
+void gl1_0_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2);
+void gl1_0_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2);
+void gl1_0_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2);
+void gl1_0_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2);
+void gl1_0_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
+void gl1_0_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2);
+void gl1_0_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
+void gl1_0_glRasterPos4sv(void *_glfuncs, const GLshort* v);
+void gl1_0_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl1_0_glRasterPos4iv(void *_glfuncs, const GLint* v);
+void gl1_0_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl1_0_glRasterPos4fv(void *_glfuncs, const GLfloat* v);
+void gl1_0_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl1_0_glRasterPos4dv(void *_glfuncs, const GLdouble* v);
+void gl1_0_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl1_0_glRasterPos3sv(void *_glfuncs, const GLshort* v);
+void gl1_0_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl1_0_glRasterPos3iv(void *_glfuncs, const GLint* v);
+void gl1_0_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl1_0_glRasterPos3fv(void *_glfuncs, const GLfloat* v);
+void gl1_0_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_0_glRasterPos3dv(void *_glfuncs, const GLdouble* v);
+void gl1_0_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_0_glRasterPos2sv(void *_glfuncs, const GLshort* v);
+void gl1_0_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl1_0_glRasterPos2iv(void *_glfuncs, const GLint* v);
+void gl1_0_glRasterPos2i(void *_glfuncs, GLint x, GLint y);
+void gl1_0_glRasterPos2fv(void *_glfuncs, const GLfloat* v);
+void gl1_0_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl1_0_glRasterPos2dv(void *_glfuncs, const GLdouble* v);
+void gl1_0_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl1_0_glNormal3sv(void *_glfuncs, const GLshort* v);
+void gl1_0_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz);
+void gl1_0_glNormal3iv(void *_glfuncs, const GLint* v);
+void gl1_0_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz);
+void gl1_0_glNormal3fv(void *_glfuncs, const GLfloat* v);
+void gl1_0_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz);
+void gl1_0_glNormal3dv(void *_glfuncs, const GLdouble* v);
+void gl1_0_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz);
+void gl1_0_glNormal3bv(void *_glfuncs, const GLbyte* v);
+void gl1_0_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz);
+void gl1_0_glIndexsv(void *_glfuncs, const GLshort* c);
+void gl1_0_glIndexs(void *_glfuncs, GLshort c);
+void gl1_0_glIndexiv(void *_glfuncs, const GLint* c);
+void gl1_0_glIndexi(void *_glfuncs, GLint c);
+void gl1_0_glIndexfv(void *_glfuncs, const GLfloat* c);
+void gl1_0_glIndexf(void *_glfuncs, GLfloat c);
+void gl1_0_glIndexdv(void *_glfuncs, const GLdouble* c);
+void gl1_0_glIndexd(void *_glfuncs, GLdouble c);
+void gl1_0_glEnd(void *_glfuncs);
+void gl1_0_glEdgeFlagv(void *_glfuncs, const GLboolean* flag);
+void gl1_0_glEdgeFlag(void *_glfuncs, GLboolean flag);
+void gl1_0_glColor4usv(void *_glfuncs, const GLushort* v);
+void gl1_0_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha);
+void gl1_0_glColor4uiv(void *_glfuncs, const GLuint* v);
+void gl1_0_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha);
+void gl1_0_glColor4ubv(void *_glfuncs, const GLubyte* v);
+void gl1_0_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
+void gl1_0_glColor4sv(void *_glfuncs, const GLshort* v);
+void gl1_0_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha);
+void gl1_0_glColor4iv(void *_glfuncs, const GLint* v);
+void gl1_0_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha);
+void gl1_0_glColor4fv(void *_glfuncs, const GLfloat* v);
+void gl1_0_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_0_glColor4dv(void *_glfuncs, const GLdouble* v);
+void gl1_0_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
+void gl1_0_glColor4bv(void *_glfuncs, const GLbyte* v);
+void gl1_0_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
+void gl1_0_glColor3usv(void *_glfuncs, const GLushort* v);
+void gl1_0_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl1_0_glColor3uiv(void *_glfuncs, const GLuint* v);
+void gl1_0_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl1_0_glColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl1_0_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl1_0_glColor3sv(void *_glfuncs, const GLshort* v);
+void gl1_0_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl1_0_glColor3iv(void *_glfuncs, const GLint* v);
+void gl1_0_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl1_0_glColor3fv(void *_glfuncs, const GLfloat* v);
+void gl1_0_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl1_0_glColor3dv(void *_glfuncs, const GLdouble* v);
+void gl1_0_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl1_0_glColor3bv(void *_glfuncs, const GLbyte* v);
+void gl1_0_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl1_0_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap);
+void gl1_0_glBegin(void *_glfuncs, GLenum mode);
+void gl1_0_glListBase(void *_glfuncs, GLuint base);
+GLuint gl1_0_glGenLists(void *_glfuncs, GLsizei range_);
+void gl1_0_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_);
+void gl1_0_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists);
+void gl1_0_glCallList(void *_glfuncs, GLuint list);
+void gl1_0_glEndList(void *_glfuncs);
+void gl1_0_glNewList(void *_glfuncs, GLuint list, GLenum mode);
+
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.0/gl.go b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.0/gl.go
new file mode 100644
index 000000000..ce6c47ce4
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.0/gl.go
@@ -0,0 +1,2528 @@
+// ** file automatically generated by glgen -- do not edit manually **
+
+package GL
+
+// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
+// #cgo LDFLAGS: -lstdc++
+// #cgo pkg-config: Qt5Core Qt5OpenGL
+//
+// #include "funcs.h"
+//
+// void free(void*);
+//
+import "C"
+
+import (
+ "fmt"
+ "reflect"
+ "unsafe"
+
+ "gopkg.in/qml.v1/gl/glbase"
+)
+
+// API returns a value that offers methods matching the OpenGL version 1.0 API.
+//
+// The returned API must not be used after the provided OpenGL context becomes invalid.
+func API(context glbase.Contexter) *GL {
+ gl := &GL{}
+ gl.funcs = C.gl1_0_funcs()
+ if gl.funcs == nil {
+ panic(fmt.Errorf("OpenGL version 1.0 is not available"))
+ }
+ return gl
+}
+
+// GL implements the OpenGL version 1.0 API. Values of this
+// type must be created via the API function, and it must not be used after
+// the associated OpenGL context becomes invalid.
+type GL struct {
+ funcs unsafe.Pointer
+}
+
+const (
+ FALSE = 0
+ TRUE = 1
+ NONE = 0
+
+ BYTE = 0x1400
+ UNSIGNED_BYTE = 0x1401
+ SHORT = 0x1402
+ UNSIGNED_SHORT = 0x1403
+ INT = 0x1404
+ UNSIGNED_INT = 0x1405
+ FLOAT = 0x1406
+ N2_BYTES = 0x1407
+ N3_BYTES = 0x1408
+ N4_BYTES = 0x1409
+ DOUBLE = 0x140A
+
+ ACCUM = 0x0100
+ LOAD = 0x0101
+ RETURN = 0x0102
+ MULT = 0x0103
+ ADD = 0x0104
+
+ ACCUM_BUFFER_BIT = 0x00000200
+ ALL_ATTRIB_BITS = 0xFFFFFFFF
+ COLOR_BUFFER_BIT = 0x00004000
+ CURRENT_BIT = 0x00000001
+ DEPTH_BUFFER_BIT = 0x00000100
+ ENABLE_BIT = 0x00002000
+ EVAL_BIT = 0x00010000
+ FOG_BIT = 0x00000080
+ HINT_BIT = 0x00008000
+ LIGHTING_BIT = 0x00000040
+ LINE_BIT = 0x00000004
+ LIST_BIT = 0x00020000
+ PIXEL_MODE_BIT = 0x00000020
+ POINT_BIT = 0x00000002
+ POLYGON_BIT = 0x00000008
+ POLYGON_STIPPLE_BIT = 0x00000010
+ SCISSOR_BIT = 0x00080000
+ STENCIL_BUFFER_BIT = 0x00000400
+ TEXTURE_BIT = 0x00040000
+ TRANSFORM_BIT = 0x00001000
+ VIEWPORT_BIT = 0x00000800
+
+ ALWAYS = 0x0207
+ EQUAL = 0x0202
+ GEQUAL = 0x0206
+ GREATER = 0x0204
+ LEQUAL = 0x0203
+ LESS = 0x0201
+ NEVER = 0x0200
+ NOTEQUAL = 0x0205
+
+ LOGIC_OP = 0x0BF1
+
+ DST_ALPHA = 0x0304
+ ONE = 1
+ ONE_MINUS_DST_ALPHA = 0x0305
+ ONE_MINUS_SRC_ALPHA = 0x0303
+ ONE_MINUS_SRC_COLOR = 0x0301
+ SRC_ALPHA = 0x0302
+ SRC_COLOR = 0x0300
+ ZERO = 0
+
+ DST_COLOR = 0x0306
+ ONE_MINUS_DST_COLOR = 0x0307
+ SRC_ALPHA_SATURATE = 0x0308
+
+ CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF
+ CLIENT_PIXEL_STORE_BIT = 0x00000001
+ CLIENT_VERTEX_ARRAY_BIT = 0x00000002
+
+ CLIP_PLANE0 = 0x3000
+ CLIP_PLANE1 = 0x3001
+ CLIP_PLANE2 = 0x3002
+ CLIP_PLANE3 = 0x3003
+ CLIP_PLANE4 = 0x3004
+ CLIP_PLANE5 = 0x3005
+
+ BACK = 0x0405
+ FRONT = 0x0404
+ FRONT_AND_BACK = 0x0408
+
+ AMBIENT = 0x1200
+ AMBIENT_AND_DIFFUSE = 0x1602
+ DIFFUSE = 0x1201
+ EMISSION = 0x1600
+ SPECULAR = 0x1202
+
+ AUX0 = 0x0409
+ AUX1 = 0x040A
+ AUX2 = 0x040B
+ AUX3 = 0x040C
+ BACK_LEFT = 0x0402
+ BACK_RIGHT = 0x0403
+ FRONT_LEFT = 0x0400
+ FRONT_RIGHT = 0x0401
+ LEFT = 0x0406
+ RIGHT = 0x0407
+
+ ALPHA_TEST = 0x0BC0
+ AUTO_NORMAL = 0x0D80
+ BLEND = 0x0BE2
+ COLOR_ARRAY = 0x8076
+ COLOR_LOGIC_OP = 0x0BF2
+ COLOR_MATERIAL = 0x0B57
+ CULL_FACE = 0x0B44
+ DEPTH_TEST = 0x0B71
+ DITHER = 0x0BD0
+ EDGE_FLAG_ARRAY = 0x8079
+ FOG = 0x0B60
+ INDEX_ARRAY = 0x8077
+ INDEX_LOGIC_OP = 0x0BF1
+ LIGHT0 = 0x4000
+ LIGHT1 = 0x4001
+ LIGHT2 = 0x4002
+ LIGHT3 = 0x4003
+ LIGHT4 = 0x4004
+ LIGHT5 = 0x4005
+ LIGHT6 = 0x4006
+ LIGHT7 = 0x4007
+ LIGHTING = 0x0B50
+ LINE_SMOOTH = 0x0B20
+ LINE_STIPPLE = 0x0B24
+ MAP1_COLOR_4 = 0x0D90
+ MAP1_INDEX = 0x0D91
+ MAP1_NORMAL = 0x0D92
+ MAP1_TEXTURE_COORD_1 = 0x0D93
+ MAP1_TEXTURE_COORD_2 = 0x0D94
+ MAP1_TEXTURE_COORD_3 = 0x0D95
+ MAP1_TEXTURE_COORD_4 = 0x0D96
+ MAP1_VERTEX_3 = 0x0D97
+ MAP1_VERTEX_4 = 0x0D98
+ MAP2_COLOR_4 = 0x0DB0
+ MAP2_INDEX = 0x0DB1
+ MAP2_NORMAL = 0x0DB2
+ MAP2_TEXTURE_COORD_1 = 0x0DB3
+ MAP2_TEXTURE_COORD_2 = 0x0DB4
+ MAP2_TEXTURE_COORD_3 = 0x0DB5
+ MAP2_TEXTURE_COORD_4 = 0x0DB6
+ MAP2_VERTEX_3 = 0x0DB7
+ MAP2_VERTEX_4 = 0x0DB8
+ NORMALIZE = 0x0BA1
+ NORMAL_ARRAY = 0x8075
+ POINT_SMOOTH = 0x0B10
+ POLYGON_OFFSET_FILL = 0x8037
+ POLYGON_OFFSET_LINE = 0x2A02
+ POLYGON_OFFSET_POINT = 0x2A01
+ POLYGON_SMOOTH = 0x0B41
+ POLYGON_STIPPLE = 0x0B42
+ SCISSOR_TEST = 0x0C11
+ STENCIL_TEST = 0x0B90
+ TEXTURE_1D = 0x0DE0
+ TEXTURE_2D = 0x0DE1
+ TEXTURE_COORD_ARRAY = 0x8078
+ TEXTURE_GEN_Q = 0x0C63
+ TEXTURE_GEN_R = 0x0C62
+ TEXTURE_GEN_S = 0x0C60
+ TEXTURE_GEN_T = 0x0C61
+ VERTEX_ARRAY = 0x8074
+
+ INVALID_ENUM = 0x0500
+ INVALID_OPERATION = 0x0502
+ INVALID_VALUE = 0x0501
+ NO_ERROR = 0
+ OUT_OF_MEMORY = 0x0505
+ STACK_OVERFLOW = 0x0503
+ STACK_UNDERFLOW = 0x0504
+
+ N2D = 0x0600
+ N3D = 0x0601
+ N3D_COLOR = 0x0602
+ N3D_COLOR_TEXTURE = 0x0603
+ N4D_COLOR_TEXTURE = 0x0604
+
+ BITMAP_TOKEN = 0x0704
+ COPY_PIXEL_TOKEN = 0x0706
+ DRAW_PIXEL_TOKEN = 0x0705
+ LINE_RESET_TOKEN = 0x0707
+ LINE_TOKEN = 0x0702
+ PASS_THROUGH_TOKEN = 0x0700
+ POINT_TOKEN = 0x0701
+ POLYGON_TOKEN = 0x0703
+
+ EXP = 0x0800
+ EXP2 = 0x0801
+ LINEAR = 0x2601
+
+ FOG_COLOR = 0x0B66
+ FOG_DENSITY = 0x0B62
+ FOG_END = 0x0B64
+ FOG_INDEX = 0x0B61
+ FOG_MODE = 0x0B65
+ FOG_START = 0x0B63
+
+ CCW = 0x0901
+ CW = 0x0900
+
+ COEFF = 0x0A00
+ DOMAIN = 0x0A02
+ ORDER = 0x0A01
+
+ PIXEL_MAP_A_TO_A = 0x0C79
+ PIXEL_MAP_B_TO_B = 0x0C78
+ PIXEL_MAP_G_TO_G = 0x0C77
+ PIXEL_MAP_I_TO_A = 0x0C75
+ PIXEL_MAP_I_TO_B = 0x0C74
+ PIXEL_MAP_I_TO_G = 0x0C73
+ PIXEL_MAP_I_TO_I = 0x0C70
+ PIXEL_MAP_I_TO_R = 0x0C72
+ PIXEL_MAP_R_TO_R = 0x0C76
+ PIXEL_MAP_S_TO_S = 0x0C71
+
+ ACCUM_ALPHA_BITS = 0x0D5B
+ ACCUM_BLUE_BITS = 0x0D5A
+ ACCUM_CLEAR_VALUE = 0x0B80
+ ACCUM_GREEN_BITS = 0x0D59
+ ACCUM_RED_BITS = 0x0D58
+ ALPHA_BIAS = 0x0D1D
+ ALPHA_BITS = 0x0D55
+ ALPHA_SCALE = 0x0D1C
+ ALPHA_TEST_FUNC = 0x0BC1
+ ALPHA_TEST_REF = 0x0BC2
+ ATTRIB_STACK_DEPTH = 0x0BB0
+ AUX_BUFFERS = 0x0C00
+ BLEND_DST = 0x0BE0
+ BLEND_SRC = 0x0BE1
+ BLUE_BIAS = 0x0D1B
+ BLUE_BITS = 0x0D54
+ BLUE_SCALE = 0x0D1A
+ CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1
+ COLOR_ARRAY_SIZE = 0x8081
+ COLOR_ARRAY_STRIDE = 0x8083
+ COLOR_ARRAY_TYPE = 0x8082
+ COLOR_CLEAR_VALUE = 0x0C22
+ COLOR_MATERIAL_FACE = 0x0B55
+ COLOR_MATERIAL_PARAMETER = 0x0B56
+ COLOR_WRITEMASK = 0x0C23
+ CULL_FACE_MODE = 0x0B45
+ CURRENT_COLOR = 0x0B00
+ CURRENT_INDEX = 0x0B01
+ CURRENT_NORMAL = 0x0B02
+ CURRENT_RASTER_COLOR = 0x0B04
+ CURRENT_RASTER_DISTANCE = 0x0B09
+ CURRENT_RASTER_INDEX = 0x0B05
+ CURRENT_RASTER_POSITION = 0x0B07
+ CURRENT_RASTER_POSITION_VALID = 0x0B08
+ CURRENT_RASTER_TEXTURE_COORDS = 0x0B06
+ CURRENT_TEXTURE_COORDS = 0x0B03
+ DEPTH_BIAS = 0x0D1F
+ DEPTH_BITS = 0x0D56
+ DEPTH_CLEAR_VALUE = 0x0B73
+ DEPTH_FUNC = 0x0B74
+ DEPTH_RANGE = 0x0B70
+ DEPTH_SCALE = 0x0D1E
+ DEPTH_WRITEMASK = 0x0B72
+ DOUBLEBUFFER = 0x0C32
+ DRAW_BUFFER = 0x0C01
+ EDGE_FLAG = 0x0B43
+ EDGE_FLAG_ARRAY_STRIDE = 0x808C
+ FEEDBACK_BUFFER_SIZE = 0x0DF1
+ FEEDBACK_BUFFER_TYPE = 0x0DF2
+ FOG_HINT = 0x0C54
+ FRONT_FACE = 0x0B46
+ GREEN_BIAS = 0x0D19
+ GREEN_BITS = 0x0D53
+ GREEN_SCALE = 0x0D18
+ INDEX_ARRAY_STRIDE = 0x8086
+ INDEX_ARRAY_TYPE = 0x8085
+ INDEX_BITS = 0x0D51
+ INDEX_CLEAR_VALUE = 0x0C20
+ INDEX_MODE = 0x0C30
+ INDEX_OFFSET = 0x0D13
+ INDEX_SHIFT = 0x0D12
+ INDEX_WRITEMASK = 0x0C21
+ LIGHT_MODEL_AMBIENT = 0x0B53
+ LIGHT_MODEL_LOCAL_VIEWER = 0x0B51
+ LIGHT_MODEL_TWO_SIDE = 0x0B52
+ LINE_SMOOTH_HINT = 0x0C52
+ LINE_STIPPLE_PATTERN = 0x0B25
+ LINE_STIPPLE_REPEAT = 0x0B26
+ LINE_WIDTH = 0x0B21
+ LINE_WIDTH_GRANULARITY = 0x0B23
+ LINE_WIDTH_RANGE = 0x0B22
+ LIST_BASE = 0x0B32
+ LIST_INDEX = 0x0B33
+ LIST_MODE = 0x0B30
+ LOGIC_OP_MODE = 0x0BF0
+ MAP1_GRID_DOMAIN = 0x0DD0
+ MAP1_GRID_SEGMENTS = 0x0DD1
+ MAP2_GRID_DOMAIN = 0x0DD2
+ MAP2_GRID_SEGMENTS = 0x0DD3
+ MAP_COLOR = 0x0D10
+ MAP_STENCIL = 0x0D11
+ MATRIX_MODE = 0x0BA0
+ MAX_ATTRIB_STACK_DEPTH = 0x0D35
+ MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B
+ MAX_CLIP_PLANES = 0x0D32
+ MAX_EVAL_ORDER = 0x0D30
+ MAX_LIGHTS = 0x0D31
+ MAX_LIST_NESTING = 0x0B31
+ MAX_MODELVIEW_STACK_DEPTH = 0x0D36
+ MAX_NAME_STACK_DEPTH = 0x0D37
+ MAX_PIXEL_MAP_TABLE = 0x0D34
+ MAX_PROJECTION_STACK_DEPTH = 0x0D38
+ MAX_TEXTURE_SIZE = 0x0D33
+ MAX_TEXTURE_STACK_DEPTH = 0x0D39
+ MAX_VIEWPORT_DIMS = 0x0D3A
+ MODELVIEW_MATRIX = 0x0BA6
+ MODELVIEW_STACK_DEPTH = 0x0BA3
+ NAME_STACK_DEPTH = 0x0D70
+ NORMAL_ARRAY_STRIDE = 0x807F
+ NORMAL_ARRAY_TYPE = 0x807E
+ PACK_ALIGNMENT = 0x0D05
+ PACK_LSB_FIRST = 0x0D01
+ PACK_ROW_LENGTH = 0x0D02
+ PACK_SKIP_PIXELS = 0x0D04
+ PACK_SKIP_ROWS = 0x0D03
+ PACK_SWAP_BYTES = 0x0D00
+ PERSPECTIVE_CORRECTION_HINT = 0x0C50
+ PIXEL_MAP_A_TO_A_SIZE = 0x0CB9
+ PIXEL_MAP_B_TO_B_SIZE = 0x0CB8
+ PIXEL_MAP_G_TO_G_SIZE = 0x0CB7
+ PIXEL_MAP_I_TO_A_SIZE = 0x0CB5
+ PIXEL_MAP_I_TO_B_SIZE = 0x0CB4
+ PIXEL_MAP_I_TO_G_SIZE = 0x0CB3
+ PIXEL_MAP_I_TO_I_SIZE = 0x0CB0
+ PIXEL_MAP_I_TO_R_SIZE = 0x0CB2
+ PIXEL_MAP_R_TO_R_SIZE = 0x0CB6
+ PIXEL_MAP_S_TO_S_SIZE = 0x0CB1
+ POINT_SIZE = 0x0B11
+ POINT_SIZE_GRANULARITY = 0x0B13
+ POINT_SIZE_RANGE = 0x0B12
+ POINT_SMOOTH_HINT = 0x0C51
+ POLYGON_MODE = 0x0B40
+ POLYGON_OFFSET_FACTOR = 0x8038
+ POLYGON_OFFSET_UNITS = 0x2A00
+ POLYGON_SMOOTH_HINT = 0x0C53
+ PROJECTION_MATRIX = 0x0BA7
+ PROJECTION_STACK_DEPTH = 0x0BA4
+ READ_BUFFER = 0x0C02
+ RED_BIAS = 0x0D15
+ RED_BITS = 0x0D52
+ RED_SCALE = 0x0D14
+ RENDER_MODE = 0x0C40
+ RGBA_MODE = 0x0C31
+ SCISSOR_BOX = 0x0C10
+ SELECTION_BUFFER_SIZE = 0x0DF4
+ SHADE_MODEL = 0x0B54
+ STENCIL_BITS = 0x0D57
+ STENCIL_CLEAR_VALUE = 0x0B91
+ STENCIL_FAIL = 0x0B94
+ STENCIL_FUNC = 0x0B92
+ STENCIL_PASS_DEPTH_FAIL = 0x0B95
+ STENCIL_PASS_DEPTH_PASS = 0x0B96
+ STENCIL_REF = 0x0B97
+ STENCIL_VALUE_MASK = 0x0B93
+ STENCIL_WRITEMASK = 0x0B98
+ STEREO = 0x0C33
+ SUBPIXEL_BITS = 0x0D50
+ TEXTURE_BINDING_1D = 0x8068
+ TEXTURE_BINDING_2D = 0x8069
+ TEXTURE_COORD_ARRAY_SIZE = 0x8088
+ TEXTURE_COORD_ARRAY_STRIDE = 0x808A
+ TEXTURE_COORD_ARRAY_TYPE = 0x8089
+ TEXTURE_MATRIX = 0x0BA8
+ TEXTURE_STACK_DEPTH = 0x0BA5
+ UNPACK_ALIGNMENT = 0x0CF5
+ UNPACK_LSB_FIRST = 0x0CF1
+ UNPACK_ROW_LENGTH = 0x0CF2
+ UNPACK_SKIP_PIXELS = 0x0CF4
+ UNPACK_SKIP_ROWS = 0x0CF3
+ UNPACK_SWAP_BYTES = 0x0CF0
+ VERTEX_ARRAY_SIZE = 0x807A
+ VERTEX_ARRAY_STRIDE = 0x807C
+ VERTEX_ARRAY_TYPE = 0x807B
+ VIEWPORT = 0x0BA2
+ ZOOM_X = 0x0D16
+ ZOOM_Y = 0x0D17
+
+ COLOR_ARRAY_POINTER = 0x8090
+ EDGE_FLAG_ARRAY_POINTER = 0x8093
+ FEEDBACK_BUFFER_POINTER = 0x0DF0
+ INDEX_ARRAY_POINTER = 0x8091
+ NORMAL_ARRAY_POINTER = 0x808F
+ SELECTION_BUFFER_POINTER = 0x0DF3
+ TEXTURE_COORD_ARRAY_POINTER = 0x8092
+ VERTEX_ARRAY_POINTER = 0x808E
+
+ TEXTURE_ALPHA_SIZE = 0x805F
+ TEXTURE_BLUE_SIZE = 0x805E
+ TEXTURE_BORDER = 0x1005
+ TEXTURE_BORDER_COLOR = 0x1004
+ TEXTURE_COMPONENTS = 0x1003
+ TEXTURE_GREEN_SIZE = 0x805D
+ TEXTURE_HEIGHT = 0x1001
+ TEXTURE_INTENSITY_SIZE = 0x8061
+ TEXTURE_INTERNAL_FORMAT = 0x1003
+ TEXTURE_LUMINANCE_SIZE = 0x8060
+ TEXTURE_MAG_FILTER = 0x2800
+ TEXTURE_MIN_FILTER = 0x2801
+ TEXTURE_PRIORITY = 0x8066
+ TEXTURE_RED_SIZE = 0x805C
+ TEXTURE_RESIDENT = 0x8067
+ TEXTURE_WIDTH = 0x1000
+ TEXTURE_WRAP_S = 0x2802
+ TEXTURE_WRAP_T = 0x2803
+
+ DONT_CARE = 0x1100
+ FASTEST = 0x1101
+ NICEST = 0x1102
+
+ C3F_V3F = 0x2A24
+ C4F_N3F_V3F = 0x2A26
+ C4UB_V2F = 0x2A22
+ C4UB_V3F = 0x2A23
+ N3F_V3F = 0x2A25
+ T2F_C3F_V3F = 0x2A2A
+ T2F_C4F_N3F_V3F = 0x2A2C
+ T2F_C4UB_V3F = 0x2A29
+ T2F_N3F_V3F = 0x2A2B
+ T2F_V3F = 0x2A27
+ T4F_C4F_N3F_V4F = 0x2A2D
+ T4F_V4F = 0x2A28
+ V2F = 0x2A20
+ V3F = 0x2A21
+
+ MODULATE = 0x2100
+ REPLACE = 0x1E01
+
+ CONSTANT_ATTENUATION = 0x1207
+ LINEAR_ATTENUATION = 0x1208
+ POSITION = 0x1203
+ QUADRATIC_ATTENUATION = 0x1209
+ SPOT_CUTOFF = 0x1206
+ SPOT_DIRECTION = 0x1204
+ SPOT_EXPONENT = 0x1205
+
+ COMPILE = 0x1300
+ COMPILE_AND_EXECUTE = 0x1301
+
+ AND = 0x1501
+ AND_INVERTED = 0x1504
+ AND_REVERSE = 0x1502
+ CLEAR = 0x1500
+ COPY = 0x1503
+ COPY_INVERTED = 0x150C
+ EQUIV = 0x1509
+ INVERT = 0x150A
+ NAND = 0x150E
+ NOOP = 0x1505
+ NOR = 0x1508
+ OR = 0x1507
+ OR_INVERTED = 0x150D
+ OR_REVERSE = 0x150B
+ SET = 0x150F
+ XOR = 0x1506
+
+ COLOR_INDEXES = 0x1603
+ SHININESS = 0x1601
+
+ MODELVIEW = 0x1700
+ PROJECTION = 0x1701
+ TEXTURE = 0x1702
+
+ LINE = 0x1B01
+ POINT = 0x1B00
+
+ FILL = 0x1B02
+
+ COLOR = 0x1800
+ DEPTH = 0x1801
+ STENCIL = 0x1802
+
+ ALPHA = 0x1906
+ BLUE = 0x1905
+ COLOR_INDEX = 0x1900
+ DEPTH_COMPONENT = 0x1902
+ GREEN = 0x1904
+ LUMINANCE = 0x1909
+ LUMINANCE_ALPHA = 0x190A
+ RED = 0x1903
+ RGB = 0x1907
+ RGBA = 0x1908
+ STENCIL_INDEX = 0x1901
+
+ ALPHA12 = 0x803D
+ ALPHA16 = 0x803E
+ ALPHA4 = 0x803B
+ ALPHA8 = 0x803C
+ INTENSITY = 0x8049
+ INTENSITY12 = 0x804C
+ INTENSITY16 = 0x804D
+ INTENSITY4 = 0x804A
+ INTENSITY8 = 0x804B
+ LUMINANCE12 = 0x8041
+ LUMINANCE12_ALPHA12 = 0x8047
+ LUMINANCE12_ALPHA4 = 0x8046
+ LUMINANCE16 = 0x8042
+ LUMINANCE16_ALPHA16 = 0x8048
+ LUMINANCE4 = 0x803F
+ LUMINANCE4_ALPHA4 = 0x8043
+ LUMINANCE6_ALPHA2 = 0x8044
+ LUMINANCE8 = 0x8040
+ LUMINANCE8_ALPHA8 = 0x8045
+ R3_G3_B2 = 0x2A10
+ RGB10 = 0x8052
+ RGB10_A2 = 0x8059
+ RGB12 = 0x8053
+ RGB16 = 0x8054
+ RGB4 = 0x804F
+ RGB5 = 0x8050
+ RGB5_A1 = 0x8057
+ RGB8 = 0x8051
+ RGBA12 = 0x805A
+ RGBA16 = 0x805B
+ RGBA2 = 0x8055
+ RGBA4 = 0x8056
+ RGBA8 = 0x8058
+
+ BITMAP = 0x1A00
+
+ LINES = 0x0001
+ LINE_LOOP = 0x0002
+ LINE_STRIP = 0x0003
+ POINTS = 0x0000
+ POLYGON = 0x0009
+ QUADS = 0x0007
+ QUAD_STRIP = 0x0008
+ TRIANGLES = 0x0004
+ TRIANGLE_FAN = 0x0006
+ TRIANGLE_STRIP = 0x0005
+
+ FEEDBACK = 0x1C01
+ RENDER = 0x1C00
+ SELECT = 0x1C02
+
+ FLAT = 0x1D00
+ SMOOTH = 0x1D01
+
+ DECR = 0x1E03
+ INCR = 0x1E02
+ KEEP = 0x1E00
+
+ EXTENSIONS = 0x1F03
+ RENDERER = 0x1F01
+ VENDOR = 0x1F00
+ VERSION = 0x1F02
+
+ S = 0x2000
+ T = 0x2001
+ R = 0x2002
+ Q = 0x2003
+
+ DECAL = 0x2101
+
+ TEXTURE_ENV_COLOR = 0x2201
+ TEXTURE_ENV_MODE = 0x2200
+
+ TEXTURE_ENV = 0x2300
+
+ EYE_LINEAR = 0x2400
+ OBJECT_LINEAR = 0x2401
+ SPHERE_MAP = 0x2402
+
+ EYE_PLANE = 0x2502
+ OBJECT_PLANE = 0x2501
+ TEXTURE_GEN_MODE = 0x2500
+
+ NEAREST = 0x2600
+
+ LINEAR_MIPMAP_LINEAR = 0x2703
+ LINEAR_MIPMAP_NEAREST = 0x2701
+ NEAREST_MIPMAP_LINEAR = 0x2702
+ NEAREST_MIPMAP_NEAREST = 0x2700
+
+ PROXY_TEXTURE_1D = 0x8063
+ PROXY_TEXTURE_2D = 0x8064
+
+ CLAMP = 0x2900
+ REPEAT = 0x2901
+)
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glViewport.xml
+func (gl *GL) Viewport(x, y, width, height int) {
+ C.gl1_0_glViewport(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// DepthRange specifies the mapping of depth values from normalized device
+// coordinates to window coordinates.
+//
+// Parameter nearVal specifies the mapping of the near clipping plane to window
+// coordinates (defaults to 0), while farVal specifies the mapping of the far
+// clipping plane to window coordinates (defaults to 1).
+//
+// After clipping and division by w, depth coordinates range from -1 to 1,
+// corresponding to the near and far clipping planes. DepthRange specifies a
+// linear mapping of the normalized depth coordinates in this range to window
+// depth coordinates. Regardless of the actual depth buffer implementation,
+// window coordinate depth values are treated as though they range from 0 through 1
+// (like color components). Thus, the values accepted by DepthRange are both
+// clamped to this range before they are accepted.
+//
+// The default setting of (0, 1) maps the near plane to 0 and the far plane to 1.
+// With this mapping, the depth buffer range is fully utilized.
+//
+// It is not necessary that nearVal be less than farVal. Reverse mappings such as
+// nearVal 1, and farVal 0 are acceptable.
+//
+// GL.INVALID_OPERATION is generated if DepthRange is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) DepthRange(nearVal, farVal float64) {
+ C.gl1_0_glDepthRange(gl.funcs, C.GLdouble(nearVal), C.GLdouble(farVal))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsEnabled.xml
+func (gl *GL) IsEnabled(cap glbase.Enum) bool {
+ glresult := C.gl1_0_glIsEnabled(gl.funcs, C.GLenum(cap))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameteriv.xml
+func (gl *GL) GetTexLevelParameteriv(target glbase.Enum, level int, pname glbase.Enum, params []int32) {
+ C.gl1_0_glGetTexLevelParameteriv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameterfv.xml
+func (gl *GL) GetTexLevelParameterfv(target glbase.Enum, level int, pname glbase.Enum, params []float32) {
+ C.gl1_0_glGetTexLevelParameterfv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameteriv.xml
+func (gl *GL) GetTexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_0_glGetTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameterfv.xml
+func (gl *GL) GetTexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_0_glGetTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexImage.xml
+func (gl *GL) GetTexImage(target glbase.Enum, level int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_0_glGetTexImage(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetIntegerv.xml
+func (gl *GL) GetIntegerv(pname glbase.Enum, params []int32) {
+ C.gl1_0_glGetIntegerv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetFloatv.xml
+func (gl *GL) GetFloatv(pname glbase.Enum, params []float32) {
+ C.gl1_0_glGetFloatv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetError.xml
+func (gl *GL) GetError() glbase.Enum {
+ glresult := C.gl1_0_glGetError(gl.funcs)
+ return glbase.Enum(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetDoublev.xml
+func (gl *GL) GetDoublev(pname glbase.Enum, params []float64) {
+ C.gl1_0_glGetDoublev(gl.funcs, C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetBooleanv.xml
+func (gl *GL) GetBooleanv(pname glbase.Enum, params []bool) {
+ C.gl1_0_glGetBooleanv(gl.funcs, C.GLenum(pname), (*C.GLboolean)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadPixels.xml
+func (gl *GL) ReadPixels(x, y, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_0_glReadPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadBuffer.xml
+func (gl *GL) ReadBuffer(mode glbase.Enum) {
+ C.gl1_0_glReadBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStorei.xml
+func (gl *GL) PixelStorei(pname glbase.Enum, param int32) {
+ C.gl1_0_glPixelStorei(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStoref.xml
+func (gl *GL) PixelStoref(pname glbase.Enum, param float32) {
+ C.gl1_0_glPixelStoref(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthFunc.xml
+func (gl *GL) DepthFunc(glfunc glbase.Enum) {
+ C.gl1_0_glDepthFunc(gl.funcs, C.GLenum(glfunc))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilOp.xml
+func (gl *GL) StencilOp(fail, zfail, zpass glbase.Enum) {
+ C.gl1_0_glStencilOp(gl.funcs, C.GLenum(fail), C.GLenum(zfail), C.GLenum(zpass))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilFunc.xml
+func (gl *GL) StencilFunc(glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl1_0_glStencilFunc(gl.funcs, C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLogicOp.xml
+func (gl *GL) LogicOp(opcode glbase.Enum) {
+ C.gl1_0_glLogicOp(gl.funcs, C.GLenum(opcode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendFunc.xml
+func (gl *GL) BlendFunc(sfactor, dfactor glbase.Enum) {
+ C.gl1_0_glBlendFunc(gl.funcs, C.GLenum(sfactor), C.GLenum(dfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFlush.xml
+func (gl *GL) Flush() {
+ C.gl1_0_glFlush(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFinish.xml
+func (gl *GL) Finish() {
+ C.gl1_0_glFinish(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnable.xml
+func (gl *GL) Enable(cap glbase.Enum) {
+ C.gl1_0_glEnable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisable.xml
+func (gl *GL) Disable(cap glbase.Enum) {
+ C.gl1_0_glDisable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthMask.xml
+func (gl *GL) DepthMask(flag bool) {
+ C.gl1_0_glDepthMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMask.xml
+func (gl *GL) ColorMask(red, green, blue, alpha bool) {
+ C.gl1_0_glColorMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&red)), *(*C.GLboolean)(unsafe.Pointer(&green)), *(*C.GLboolean)(unsafe.Pointer(&blue)), *(*C.GLboolean)(unsafe.Pointer(&alpha)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilMask.xml
+func (gl *GL) StencilMask(mask uint32) {
+ C.gl1_0_glStencilMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearDepth.xml
+func (gl *GL) ClearDepth(depth float64) {
+ C.gl1_0_glClearDepth(gl.funcs, C.GLdouble(depth))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearStencil.xml
+func (gl *GL) ClearStencil(s int32) {
+ C.gl1_0_glClearStencil(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearColor.xml
+func (gl *GL) ClearColor(red, green, blue, alpha float32) {
+ C.gl1_0_glClearColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClear.xml
+func (gl *GL) Clear(mask glbase.Bitfield) {
+ C.gl1_0_glClear(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawBuffer.xml
+func (gl *GL) DrawBuffer(mode glbase.Enum) {
+ C.gl1_0_glDrawBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml
+func (gl *GL) TexImage2D(target glbase.Enum, level int, internalFormat int32, width, height, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_0_glTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage1D.xml
+func (gl *GL) TexImage1D(target glbase.Enum, level int, internalFormat int32, width, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_0_glTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteriv.xml
+func (gl *GL) TexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_0_glTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteri.xml
+func (gl *GL) TexParameteri(target, pname glbase.Enum, param int32) {
+ C.gl1_0_glTexParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterfv.xml
+func (gl *GL) TexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_0_glTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterf.xml
+func (gl *GL) TexParameterf(target, pname glbase.Enum, param float32) {
+ C.gl1_0_glTexParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScissor.xml
+func (gl *GL) Scissor(x, y, width, height int) {
+ C.gl1_0_glScissor(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonMode.xml
+func (gl *GL) PolygonMode(face, mode glbase.Enum) {
+ C.gl1_0_glPolygonMode(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointSize.xml
+func (gl *GL) PointSize(size float32) {
+ C.gl1_0_glPointSize(gl.funcs, C.GLfloat(size))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineWidth.xml
+func (gl *GL) LineWidth(width float32) {
+ C.gl1_0_glLineWidth(gl.funcs, C.GLfloat(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glHint.xml
+func (gl *GL) Hint(target, mode glbase.Enum) {
+ C.gl1_0_glHint(gl.funcs, C.GLenum(target), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrontFace.xml
+func (gl *GL) FrontFace(mode glbase.Enum) {
+ C.gl1_0_glFrontFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCullFace.xml
+func (gl *GL) CullFace(mode glbase.Enum) {
+ C.gl1_0_glCullFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslatef.xml
+func (gl *GL) Translatef(x, y, z float32) {
+ C.gl1_0_glTranslatef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslated.xml
+func (gl *GL) Translated(x, y, z float64) {
+ C.gl1_0_glTranslated(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScalef.xml
+func (gl *GL) Scalef(x, y, z float32) {
+ C.gl1_0_glScalef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScaled.xml
+func (gl *GL) Scaled(x, y, z float64) {
+ C.gl1_0_glScaled(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotatef.xml
+func (gl *GL) Rotatef(angle, x, y, z float32) {
+ C.gl1_0_glRotatef(gl.funcs, C.GLfloat(angle), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotated.xml
+func (gl *GL) Rotated(angle, x, y, z float64) {
+ C.gl1_0_glRotated(gl.funcs, C.GLdouble(angle), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushMatrix.xml
+func (gl *GL) PushMatrix() {
+ C.gl1_0_glPushMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopMatrix.xml
+func (gl *GL) PopMatrix() {
+ C.gl1_0_glPopMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml
+func (gl *GL) Ortho(left, right, bottom, top, zNear, zFar float64) {
+ C.gl1_0_glOrtho(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// MultMatrixd multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixd(m []float64) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl1_0_glMultMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// MultMatrixf multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixf(m []float32) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl1_0_glMultMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMatrixMode.xml
+func (gl *GL) MatrixMode(mode glbase.Enum) {
+ C.gl1_0_glMatrixMode(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixd.xml
+func (gl *GL) LoadMatrixd(m []float64) {
+ C.gl1_0_glLoadMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixf.xml
+func (gl *GL) LoadMatrixf(m []float32) {
+ C.gl1_0_glLoadMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadIdentity.xml
+func (gl *GL) LoadIdentity() {
+ C.gl1_0_glLoadIdentity(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml
+func (gl *GL) Frustum(left, right, bottom, top, zNear, zFar float64) {
+ C.gl1_0_glFrustum(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsList.xml
+func (gl *GL) IsList(list uint32) bool {
+ glresult := C.gl1_0_glIsList(gl.funcs, C.GLuint(list))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGeniv.xml
+func (gl *GL) GetTexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl1_0_glGetTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGenfv.xml
+func (gl *GL) GetTexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl1_0_glGetTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGendv.xml
+func (gl *GL) GetTexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl1_0_glGetTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnviv.xml
+func (gl *GL) GetTexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl1_0_glGetTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnvfv.xml
+func (gl *GL) GetTexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_0_glGetTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPolygonStipple.xml
+func (gl *GL) GetPolygonStipple(mask []uint8) {
+ C.gl1_0_glGetPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapusv.xml
+func (gl *GL) GetPixelMapusv(glmap glbase.Enum, values []uint16) {
+ C.gl1_0_glGetPixelMapusv(gl.funcs, C.GLenum(glmap), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapuiv.xml
+func (gl *GL) GetPixelMapuiv(glmap glbase.Enum, values []uint32) {
+ C.gl1_0_glGetPixelMapuiv(gl.funcs, C.GLenum(glmap), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapfv.xml
+func (gl *GL) GetPixelMapfv(glmap glbase.Enum, values []float32) {
+ C.gl1_0_glGetPixelMapfv(gl.funcs, C.GLenum(glmap), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialiv.xml
+func (gl *GL) GetMaterialiv(face, pname glbase.Enum, params []int32) {
+ C.gl1_0_glGetMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialfv.xml
+func (gl *GL) GetMaterialfv(face, pname glbase.Enum, params []float32) {
+ C.gl1_0_glGetMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapiv.xml
+func (gl *GL) GetMapiv(target, query glbase.Enum, v []int32) {
+ C.gl1_0_glGetMapiv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapfv.xml
+func (gl *GL) GetMapfv(target, query glbase.Enum, v []float32) {
+ C.gl1_0_glGetMapfv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapdv.xml
+func (gl *GL) GetMapdv(target, query glbase.Enum, v []float64) {
+ C.gl1_0_glGetMapdv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightiv.xml
+func (gl *GL) GetLightiv(light, pname glbase.Enum, params []int32) {
+ C.gl1_0_glGetLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightfv.xml
+func (gl *GL) GetLightfv(light, pname glbase.Enum, params []float32) {
+ C.gl1_0_glGetLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetClipPlane.xml
+func (gl *GL) GetClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl1_0_glGetClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawPixels.xml
+func (gl *GL) DrawPixels(width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_0_glDrawPixels(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyPixels.xml
+func (gl *GL) CopyPixels(x, y, width, height int, gltype glbase.Enum) {
+ C.gl1_0_glCopyPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(gltype))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapusv.xml
+func (gl *GL) PixelMapusv(glmap glbase.Enum, mapsize int32, values []uint16) {
+ C.gl1_0_glPixelMapusv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapuiv.xml
+func (gl *GL) PixelMapuiv(glmap glbase.Enum, mapsize int32, values []uint32) {
+ C.gl1_0_glPixelMapuiv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapfv.xml
+func (gl *GL) PixelMapfv(glmap glbase.Enum, mapsize int32, values []float32) {
+ C.gl1_0_glPixelMapfv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferi.xml
+func (gl *GL) PixelTransferi(pname glbase.Enum, param int32) {
+ C.gl1_0_glPixelTransferi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferf.xml
+func (gl *GL) PixelTransferf(pname glbase.Enum, param float32) {
+ C.gl1_0_glPixelTransferf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelZoom.xml
+func (gl *GL) PixelZoom(xfactor, yfactor float32) {
+ C.gl1_0_glPixelZoom(gl.funcs, C.GLfloat(xfactor), C.GLfloat(yfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAlphaFunc.xml
+func (gl *GL) AlphaFunc(glfunc glbase.Enum, ref float32) {
+ C.gl1_0_glAlphaFunc(gl.funcs, C.GLenum(glfunc), C.GLfloat(ref))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint2.xml
+func (gl *GL) EvalPoint2(i, j int32) {
+ C.gl1_0_glEvalPoint2(gl.funcs, C.GLint(i), C.GLint(j))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh2.xml
+func (gl *GL) EvalMesh2(mode glbase.Enum, i1, i2, j1, j2 int32) {
+ C.gl1_0_glEvalMesh2(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2), C.GLint(j1), C.GLint(j2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint1.xml
+func (gl *GL) EvalPoint1(i int32) {
+ C.gl1_0_glEvalPoint1(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh1.xml
+func (gl *GL) EvalMesh1(mode glbase.Enum, i1, i2 int32) {
+ C.gl1_0_glEvalMesh1(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2fv.xml
+func (gl *GL) EvalCoord2fv(u []float32) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl1_0_glEvalCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2f.xml
+func (gl *GL) EvalCoord2f(u, v float32) {
+ C.gl1_0_glEvalCoord2f(gl.funcs, C.GLfloat(u), C.GLfloat(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2dv.xml
+func (gl *GL) EvalCoord2dv(u []float64) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl1_0_glEvalCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2d.xml
+func (gl *GL) EvalCoord2d(u, v float64) {
+ C.gl1_0_glEvalCoord2d(gl.funcs, C.GLdouble(u), C.GLdouble(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1fv.xml
+func (gl *GL) EvalCoord1fv(u []float32) {
+ C.gl1_0_glEvalCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1f.xml
+func (gl *GL) EvalCoord1f(u float32) {
+ C.gl1_0_glEvalCoord1f(gl.funcs, C.GLfloat(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1dv.xml
+func (gl *GL) EvalCoord1dv(u []float64) {
+ C.gl1_0_glEvalCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1d.xml
+func (gl *GL) EvalCoord1d(u float64) {
+ C.gl1_0_glEvalCoord1d(gl.funcs, C.GLdouble(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2f.xml
+func (gl *GL) MapGrid2f(un int32, u1, u2 float32, vn int32, v1, v2 float32) {
+ C.gl1_0_glMapGrid2f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2), C.GLint(vn), C.GLfloat(v1), C.GLfloat(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2d.xml
+func (gl *GL) MapGrid2d(un int32, u1, u2 float64, vn int32, v1, v2 float64) {
+ C.gl1_0_glMapGrid2d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2), C.GLint(vn), C.GLdouble(v1), C.GLdouble(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1f.xml
+func (gl *GL) MapGrid1f(un int32, u1, u2 float32) {
+ C.gl1_0_glMapGrid1f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1d.xml
+func (gl *GL) MapGrid1d(un int32, u1, u2 float64) {
+ C.gl1_0_glMapGrid1d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2f.xml
+func (gl *GL) Map2f(target glbase.Enum, u1, u2 float32, ustride, uorder int32, v1, v2 float32, vstride, vorder int32, points []float32) {
+ C.gl1_0_glMap2f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(ustride), C.GLint(uorder), C.GLfloat(v1), C.GLfloat(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2d.xml
+func (gl *GL) Map2d(target glbase.Enum, u1, u2 float64, ustride, uorder int32, v1, v2 float64, vstride, vorder int32, points []float64) {
+ C.gl1_0_glMap2d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(ustride), C.GLint(uorder), C.GLdouble(v1), C.GLdouble(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1f.xml
+func (gl *GL) Map1f(target glbase.Enum, u1, u2 float32, stride, order int, points []float32) {
+ C.gl1_0_glMap1f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(stride), C.GLint(order), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1d.xml
+func (gl *GL) Map1d(target glbase.Enum, u1, u2 float64, stride, order int, points []float64) {
+ C.gl1_0_glMap1d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(stride), C.GLint(order), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushAttrib.xml
+func (gl *GL) PushAttrib(mask glbase.Bitfield) {
+ C.gl1_0_glPushAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopAttrib.xml
+func (gl *GL) PopAttrib() {
+ C.gl1_0_glPopAttrib(gl.funcs)
+}
+
+// Accum executes an operation on the accumulation buffer.
+//
+// Parameter op defines the accumulation buffer operation (GL.ACCUM, GL.LOAD,
+// GL.ADD, GL.MULT, or GL.RETURN) and specifies how the value parameter is
+// used.
+//
+// The accumulation buffer is an extended-range color buffer. Images are not
+// rendered into it. Rather, images rendered into one of the color buffers
+// are added to the contents of the accumulation buffer after rendering.
+// Effects such as antialiasing (of points, lines, and polygons), motion
+// blur, and depth of field can be created by accumulating images generated
+// with different transformation matrices.
+//
+// Each pixel in the accumulation buffer consists of red, green, blue, and
+// alpha values. The number of bits per component in the accumulation buffer
+// depends on the implementation. You can examine this number by calling
+// GetIntegerv four times, with arguments GL.ACCUM_RED_BITS,
+// GL.ACCUM_GREEN_BITS, GL.ACCUM_BLUE_BITS, and GL.ACCUM_ALPHA_BITS.
+// Regardless of the number of bits per component, the range of values stored
+// by each component is (-1, 1). The accumulation buffer pixels are mapped
+// one-to-one with frame buffer pixels.
+//
+// All accumulation buffer operations are limited to the area of the current
+// scissor box and applied identically to the red, green, blue, and alpha
+// components of each pixel. If a Accum operation results in a value outside
+// the range (-1, 1), the contents of an accumulation buffer pixel component
+// are undefined.
+//
+// The operations are as follows:
+//
+// GL.ACCUM
+// Obtains R, G, B, and A values from the buffer currently selected for
+// reading (see ReadBuffer). Each component value is divided by 2 n -
+// 1 , where n is the number of bits allocated to each color component
+// in the currently selected buffer. The result is a floating-point
+// value in the range 0 1 , which is multiplied by value and added to
+// the corresponding pixel component in the accumulation buffer,
+// thereby updating the accumulation buffer.
+//
+// GL.LOAD
+// Similar to GL.ACCUM, except that the current value in the
+// accumulation buffer is not used in the calculation of the new value.
+// That is, the R, G, B, and A values from the currently selected
+// buffer are divided by 2 n - 1 , multiplied by value, and then stored
+// in the corresponding accumulation buffer cell, overwriting the
+// current value.
+//
+// GL.ADD
+// Adds value to each R, G, B, and A in the accumulation buffer.
+//
+// GL.MULT
+// Multiplies each R, G, B, and A in the accumulation buffer by value
+// and returns the scaled component to its corresponding accumulation
+// buffer location.
+//
+// GL.RETURN
+// Transfers accumulation buffer values to the color buffer or buffers
+// currently selected for writing. Each R, G, B, and A component is
+// multiplied by value, then multiplied by 2 n - 1 , clamped to the
+// range 0 2 n - 1 , and stored in the corresponding display buffer
+// cell. The only fragment operations that are applied to this transfer
+// are pixel ownership, scissor, dithering, and color writemasks.
+//
+// To clear the accumulation buffer, call ClearAccum with R, G, B, and A
+// values to set it to, then call Clear with the accumulation buffer
+// enabled.
+//
+// Error GL.INVALID_ENUM is generated if op is not an accepted value.
+// GL.INVALID_OPERATION is generated if there is no accumulation buffer.
+// GL.INVALID_OPERATION is generated if Accum is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) Accum(op glbase.Enum, value float32) {
+ C.gl1_0_glAccum(gl.funcs, C.GLenum(op), C.GLfloat(value))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexMask.xml
+func (gl *GL) IndexMask(mask uint32) {
+ C.gl1_0_glIndexMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearIndex.xml
+func (gl *GL) ClearIndex(c float32) {
+ C.gl1_0_glClearIndex(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearAccum.xml
+func (gl *GL) ClearAccum(red, green, blue, alpha float32) {
+ C.gl1_0_glClearAccum(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushName.xml
+func (gl *GL) PushName(name uint32) {
+ C.gl1_0_glPushName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopName.xml
+func (gl *GL) PopName() {
+ C.gl1_0_glPopName(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPassThrough.xml
+func (gl *GL) PassThrough(token float32) {
+ C.gl1_0_glPassThrough(gl.funcs, C.GLfloat(token))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadName.xml
+func (gl *GL) LoadName(name uint32) {
+ C.gl1_0_glLoadName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInitNames.xml
+func (gl *GL) InitNames() {
+ C.gl1_0_glInitNames(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRenderMode.xml
+func (gl *GL) RenderMode(mode glbase.Enum) int32 {
+ glresult := C.gl1_0_glRenderMode(gl.funcs, C.GLenum(mode))
+ return int32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSelectBuffer.xml
+func (gl *GL) SelectBuffer(size int, buffer []glbase.Buffer) {
+ C.gl1_0_glSelectBuffer(gl.funcs, C.GLsizei(size), (*C.GLuint)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFeedbackBuffer.xml
+func (gl *GL) FeedbackBuffer(size int, gltype glbase.Enum, buffer []float32) {
+ C.gl1_0_glFeedbackBuffer(gl.funcs, C.GLsizei(size), C.GLenum(gltype), (*C.GLfloat)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeniv.xml
+func (gl *GL) TexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl1_0_glTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeni.xml
+func (gl *GL) TexGeni(coord, pname glbase.Enum, param int32) {
+ C.gl1_0_glTexGeni(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenfv.xml
+func (gl *GL) TexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl1_0_glTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenf.xml
+func (gl *GL) TexGenf(coord, pname glbase.Enum, param float32) {
+ C.gl1_0_glTexGenf(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGendv.xml
+func (gl *GL) TexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl1_0_glTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGend.xml
+func (gl *GL) TexGend(coord, pname glbase.Enum, param float64) {
+ C.gl1_0_glTexGend(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLdouble(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnviv.xml
+func (gl *GL) TexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl1_0_glTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvi.xml
+func (gl *GL) TexEnvi(target, pname glbase.Enum, param int32) {
+ C.gl1_0_glTexEnvi(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvfv.xml
+func (gl *GL) TexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_0_glTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvf.xml
+func (gl *GL) TexEnvf(target, pname glbase.Enum, param float32) {
+ C.gl1_0_glTexEnvf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glShadeModel.xml
+func (gl *GL) ShadeModel(mode glbase.Enum) {
+ C.gl1_0_glShadeModel(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonStipple.xml
+func (gl *GL) PolygonStipple(mask []uint8) {
+ C.gl1_0_glPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialiv.xml
+func (gl *GL) Materialiv(face, pname glbase.Enum, params []int32) {
+ C.gl1_0_glMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMateriali.xml
+func (gl *GL) Materiali(face, pname glbase.Enum, param int32) {
+ C.gl1_0_glMateriali(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialfv.xml
+func (gl *GL) Materialfv(face, pname glbase.Enum, params []float32) {
+ C.gl1_0_glMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialf.xml
+func (gl *GL) Materialf(face, pname glbase.Enum, param float32) {
+ C.gl1_0_glMaterialf(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineStipple.xml
+func (gl *GL) LineStipple(factor int32, pattern uint16) {
+ C.gl1_0_glLineStipple(gl.funcs, C.GLint(factor), C.GLushort(pattern))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeliv.xml
+func (gl *GL) LightModeliv(pname glbase.Enum, params []int32) {
+ C.gl1_0_glLightModeliv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeli.xml
+func (gl *GL) LightModeli(pname glbase.Enum, param int32) {
+ C.gl1_0_glLightModeli(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelfv.xml
+func (gl *GL) LightModelfv(pname glbase.Enum, params []float32) {
+ C.gl1_0_glLightModelfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelf.xml
+func (gl *GL) LightModelf(pname glbase.Enum, param float32) {
+ C.gl1_0_glLightModelf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightiv.xml
+func (gl *GL) Lightiv(light, pname glbase.Enum, params []int32) {
+ C.gl1_0_glLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLighti.xml
+func (gl *GL) Lighti(light, pname glbase.Enum, param int32) {
+ C.gl1_0_glLighti(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightfv.xml
+func (gl *GL) Lightfv(light, pname glbase.Enum, params []float32) {
+ C.gl1_0_glLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightf.xml
+func (gl *GL) Lightf(light, pname glbase.Enum, param float32) {
+ C.gl1_0_glLightf(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogiv.xml
+func (gl *GL) Fogiv(pname glbase.Enum, params []int32) {
+ C.gl1_0_glFogiv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogi.xml
+func (gl *GL) Fogi(pname glbase.Enum, param int32) {
+ C.gl1_0_glFogi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogfv.xml
+func (gl *GL) Fogfv(pname glbase.Enum, params []float32) {
+ C.gl1_0_glFogfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogf.xml
+func (gl *GL) Fogf(pname glbase.Enum, param float32) {
+ C.gl1_0_glFogf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMaterial.xml
+func (gl *GL) ColorMaterial(face, mode glbase.Enum) {
+ C.gl1_0_glColorMaterial(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClipPlane.xml
+func (gl *GL) ClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl1_0_glClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4sv.xml
+func (gl *GL) Vertex4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glVertex4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4s.xml
+func (gl *GL) Vertex4s(x, y, z, w int16) {
+ C.gl1_0_glVertex4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4iv.xml
+func (gl *GL) Vertex4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glVertex4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4i.xml
+func (gl *GL) Vertex4i(x, y, z, w int) {
+ C.gl1_0_glVertex4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4fv.xml
+func (gl *GL) Vertex4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glVertex4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4f.xml
+func (gl *GL) Vertex4f(x, y, z, w float32) {
+ C.gl1_0_glVertex4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4dv.xml
+func (gl *GL) Vertex4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glVertex4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4d.xml
+func (gl *GL) Vertex4d(x, y, z, w float64) {
+ C.gl1_0_glVertex4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3sv.xml
+func (gl *GL) Vertex3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glVertex3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3s.xml
+func (gl *GL) Vertex3s(x, y, z int16) {
+ C.gl1_0_glVertex3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3iv.xml
+func (gl *GL) Vertex3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glVertex3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3i.xml
+func (gl *GL) Vertex3i(x, y, z int) {
+ C.gl1_0_glVertex3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3fv.xml
+func (gl *GL) Vertex3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glVertex3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3f.xml
+func (gl *GL) Vertex3f(x, y, z float32) {
+ C.gl1_0_glVertex3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3dv.xml
+func (gl *GL) Vertex3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glVertex3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3d.xml
+func (gl *GL) Vertex3d(x, y, z float64) {
+ C.gl1_0_glVertex3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2sv.xml
+func (gl *GL) Vertex2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glVertex2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2s.xml
+func (gl *GL) Vertex2s(x, y int16) {
+ C.gl1_0_glVertex2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2iv.xml
+func (gl *GL) Vertex2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glVertex2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2i.xml
+func (gl *GL) Vertex2i(x, y int) {
+ C.gl1_0_glVertex2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2fv.xml
+func (gl *GL) Vertex2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glVertex2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2f.xml
+func (gl *GL) Vertex2f(x, y float32) {
+ C.gl1_0_glVertex2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2dv.xml
+func (gl *GL) Vertex2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glVertex2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2d.xml
+func (gl *GL) Vertex2d(x, y float64) {
+ C.gl1_0_glVertex2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4sv.xml
+func (gl *GL) TexCoord4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glTexCoord4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4s.xml
+func (gl *GL) TexCoord4s(s, t, r, q int16) {
+ C.gl1_0_glTexCoord4s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4iv.xml
+func (gl *GL) TexCoord4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glTexCoord4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4i.xml
+func (gl *GL) TexCoord4i(s, t, r, q int32) {
+ C.gl1_0_glTexCoord4i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4fv.xml
+func (gl *GL) TexCoord4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glTexCoord4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4f.xml
+func (gl *GL) TexCoord4f(s, t, r, q float32) {
+ C.gl1_0_glTexCoord4f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4dv.xml
+func (gl *GL) TexCoord4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glTexCoord4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4d.xml
+func (gl *GL) TexCoord4d(s, t, r, q float64) {
+ C.gl1_0_glTexCoord4d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3sv.xml
+func (gl *GL) TexCoord3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glTexCoord3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3s.xml
+func (gl *GL) TexCoord3s(s, t, r int16) {
+ C.gl1_0_glTexCoord3s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3iv.xml
+func (gl *GL) TexCoord3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glTexCoord3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3i.xml
+func (gl *GL) TexCoord3i(s, t, r int32) {
+ C.gl1_0_glTexCoord3i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3fv.xml
+func (gl *GL) TexCoord3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glTexCoord3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3f.xml
+func (gl *GL) TexCoord3f(s, t, r float32) {
+ C.gl1_0_glTexCoord3f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3dv.xml
+func (gl *GL) TexCoord3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glTexCoord3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3d.xml
+func (gl *GL) TexCoord3d(s, t, r float64) {
+ C.gl1_0_glTexCoord3d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2sv.xml
+func (gl *GL) TexCoord2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glTexCoord2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2s.xml
+func (gl *GL) TexCoord2s(s, t int16) {
+ C.gl1_0_glTexCoord2s(gl.funcs, C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2iv.xml
+func (gl *GL) TexCoord2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glTexCoord2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2i.xml
+func (gl *GL) TexCoord2i(s, t int32) {
+ C.gl1_0_glTexCoord2i(gl.funcs, C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2fv.xml
+func (gl *GL) TexCoord2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glTexCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2f.xml
+func (gl *GL) TexCoord2f(s, t float32) {
+ C.gl1_0_glTexCoord2f(gl.funcs, C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2dv.xml
+func (gl *GL) TexCoord2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glTexCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2d.xml
+func (gl *GL) TexCoord2d(s, t float64) {
+ C.gl1_0_glTexCoord2d(gl.funcs, C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1sv.xml
+func (gl *GL) TexCoord1sv(v []int16) {
+ C.gl1_0_glTexCoord1sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1s.xml
+func (gl *GL) TexCoord1s(s int16) {
+ C.gl1_0_glTexCoord1s(gl.funcs, C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1iv.xml
+func (gl *GL) TexCoord1iv(v []int32) {
+ C.gl1_0_glTexCoord1iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1i.xml
+func (gl *GL) TexCoord1i(s int32) {
+ C.gl1_0_glTexCoord1i(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1fv.xml
+func (gl *GL) TexCoord1fv(v []float32) {
+ C.gl1_0_glTexCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1f.xml
+func (gl *GL) TexCoord1f(s float32) {
+ C.gl1_0_glTexCoord1f(gl.funcs, C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1dv.xml
+func (gl *GL) TexCoord1dv(v []float64) {
+ C.gl1_0_glTexCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1d.xml
+func (gl *GL) TexCoord1d(s float64) {
+ C.gl1_0_glTexCoord1d(gl.funcs, C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectsv.xml
+func (gl *GL) Rectsv(v1, v2 []int16) {
+ C.gl1_0_glRectsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v1[0])), (*C.GLshort)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRects.xml
+func (gl *GL) Rects(x1, y1, x2, y2 int16) {
+ C.gl1_0_glRects(gl.funcs, C.GLshort(x1), C.GLshort(y1), C.GLshort(x2), C.GLshort(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectiv.xml
+func (gl *GL) Rectiv(v1, v2 []int32) {
+ C.gl1_0_glRectiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v1[0])), (*C.GLint)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRecti.xml
+func (gl *GL) Recti(x1, y1, x2, y2 int32) {
+ C.gl1_0_glRecti(gl.funcs, C.GLint(x1), C.GLint(y1), C.GLint(x2), C.GLint(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectfv.xml
+func (gl *GL) Rectfv(v1, v2 []float32) {
+ C.gl1_0_glRectfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v1[0])), (*C.GLfloat)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectf.xml
+func (gl *GL) Rectf(x1, y1, x2, y2 float32) {
+ C.gl1_0_glRectf(gl.funcs, C.GLfloat(x1), C.GLfloat(y1), C.GLfloat(x2), C.GLfloat(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectdv.xml
+func (gl *GL) Rectdv(v1, v2 []float64) {
+ C.gl1_0_glRectdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v1[0])), (*C.GLdouble)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectd.xml
+func (gl *GL) Rectd(x1, y1, x2, y2 float64) {
+ C.gl1_0_glRectd(gl.funcs, C.GLdouble(x1), C.GLdouble(y1), C.GLdouble(x2), C.GLdouble(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4sv.xml
+func (gl *GL) RasterPos4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glRasterPos4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4s.xml
+func (gl *GL) RasterPos4s(x, y, z, w int16) {
+ C.gl1_0_glRasterPos4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4iv.xml
+func (gl *GL) RasterPos4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glRasterPos4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4i.xml
+func (gl *GL) RasterPos4i(x, y, z, w int) {
+ C.gl1_0_glRasterPos4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4fv.xml
+func (gl *GL) RasterPos4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glRasterPos4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4f.xml
+func (gl *GL) RasterPos4f(x, y, z, w float32) {
+ C.gl1_0_glRasterPos4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4dv.xml
+func (gl *GL) RasterPos4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glRasterPos4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4d.xml
+func (gl *GL) RasterPos4d(x, y, z, w float64) {
+ C.gl1_0_glRasterPos4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3sv.xml
+func (gl *GL) RasterPos3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glRasterPos3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3s.xml
+func (gl *GL) RasterPos3s(x, y, z int16) {
+ C.gl1_0_glRasterPos3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3iv.xml
+func (gl *GL) RasterPos3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glRasterPos3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3i.xml
+func (gl *GL) RasterPos3i(x, y, z int) {
+ C.gl1_0_glRasterPos3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3fv.xml
+func (gl *GL) RasterPos3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glRasterPos3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3f.xml
+func (gl *GL) RasterPos3f(x, y, z float32) {
+ C.gl1_0_glRasterPos3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3dv.xml
+func (gl *GL) RasterPos3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glRasterPos3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3d.xml
+func (gl *GL) RasterPos3d(x, y, z float64) {
+ C.gl1_0_glRasterPos3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2sv.xml
+func (gl *GL) RasterPos2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glRasterPos2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2s.xml
+func (gl *GL) RasterPos2s(x, y int16) {
+ C.gl1_0_glRasterPos2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2iv.xml
+func (gl *GL) RasterPos2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glRasterPos2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2i.xml
+func (gl *GL) RasterPos2i(x, y int) {
+ C.gl1_0_glRasterPos2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2fv.xml
+func (gl *GL) RasterPos2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glRasterPos2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2f.xml
+func (gl *GL) RasterPos2f(x, y float32) {
+ C.gl1_0_glRasterPos2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2dv.xml
+func (gl *GL) RasterPos2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glRasterPos2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2d.xml
+func (gl *GL) RasterPos2d(x, y float64) {
+ C.gl1_0_glRasterPos2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3sv.xml
+func (gl *GL) Normal3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glNormal3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3s.xml
+func (gl *GL) Normal3s(nx, ny, nz int16) {
+ C.gl1_0_glNormal3s(gl.funcs, C.GLshort(nx), C.GLshort(ny), C.GLshort(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3iv.xml
+func (gl *GL) Normal3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glNormal3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3i.xml
+func (gl *GL) Normal3i(nx, ny, nz int32) {
+ C.gl1_0_glNormal3i(gl.funcs, C.GLint(nx), C.GLint(ny), C.GLint(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3fv.xml
+func (gl *GL) Normal3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glNormal3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3f.xml
+func (gl *GL) Normal3f(nx, ny, nz float32) {
+ C.gl1_0_glNormal3f(gl.funcs, C.GLfloat(nx), C.GLfloat(ny), C.GLfloat(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3dv.xml
+func (gl *GL) Normal3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glNormal3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3d.xml
+func (gl *GL) Normal3d(nx, ny, nz float64) {
+ C.gl1_0_glNormal3d(gl.funcs, C.GLdouble(nx), C.GLdouble(ny), C.GLdouble(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3bv.xml
+func (gl *GL) Normal3bv(v []byte) {
+ C.gl1_0_glNormal3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3b.xml
+func (gl *GL) Normal3b(nx, ny, nz byte) {
+ C.gl1_0_glNormal3b(gl.funcs, C.GLbyte(nx), C.GLbyte(ny), C.GLbyte(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexsv.xml
+func (gl *GL) Indexsv(c []int16) {
+ C.gl1_0_glIndexsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexs.xml
+func (gl *GL) Indexs(c int16) {
+ C.gl1_0_glIndexs(gl.funcs, C.GLshort(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexiv.xml
+func (gl *GL) Indexiv(c []int32) {
+ C.gl1_0_glIndexiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexi.xml
+func (gl *GL) Indexi(c int32) {
+ C.gl1_0_glIndexi(gl.funcs, C.GLint(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexfv.xml
+func (gl *GL) Indexfv(c []float32) {
+ C.gl1_0_glIndexfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexf.xml
+func (gl *GL) Indexf(c float32) {
+ C.gl1_0_glIndexf(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexdv.xml
+func (gl *GL) Indexdv(c []float64) {
+ C.gl1_0_glIndexdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexd.xml
+func (gl *GL) Indexd(c float64) {
+ C.gl1_0_glIndexd(gl.funcs, C.GLdouble(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnd.xml
+func (gl *GL) End() {
+ C.gl1_0_glEnd(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagv.xml
+func (gl *GL) EdgeFlagv(flag []bool) {
+ C.gl1_0_glEdgeFlagv(gl.funcs, (*C.GLboolean)(unsafe.Pointer(&flag[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlag.xml
+func (gl *GL) EdgeFlag(flag bool) {
+ C.gl1_0_glEdgeFlag(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4usv.xml
+func (gl *GL) Color4usv(v []uint16) {
+ C.gl1_0_glColor4usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4us.xml
+func (gl *GL) Color4us(red, green, blue, alpha uint16) {
+ C.gl1_0_glColor4us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue), C.GLushort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4uiv.xml
+func (gl *GL) Color4uiv(v []uint32) {
+ C.gl1_0_glColor4uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ui.xml
+func (gl *GL) Color4ui(red, green, blue, alpha uint32) {
+ C.gl1_0_glColor4ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue), C.GLuint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ubv.xml
+func (gl *GL) Color4ubv(v []uint8) {
+ C.gl1_0_glColor4ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ub.xml
+func (gl *GL) Color4ub(red, green, blue, alpha uint8) {
+ C.gl1_0_glColor4ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue), C.GLubyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4sv.xml
+func (gl *GL) Color4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glColor4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4s.xml
+func (gl *GL) Color4s(red, green, blue, alpha int16) {
+ C.gl1_0_glColor4s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue), C.GLshort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4iv.xml
+func (gl *GL) Color4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glColor4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4i.xml
+func (gl *GL) Color4i(red, green, blue, alpha int32) {
+ C.gl1_0_glColor4i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue), C.GLint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4fv.xml
+func (gl *GL) Color4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glColor4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4f.xml
+func (gl *GL) Color4f(red, green, blue, alpha float32) {
+ C.gl1_0_glColor4f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4dv.xml
+func (gl *GL) Color4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glColor4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4d.xml
+func (gl *GL) Color4d(red, green, blue, alpha float64) {
+ C.gl1_0_glColor4d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue), C.GLdouble(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4bv.xml
+func (gl *GL) Color4bv(v []byte) {
+ C.gl1_0_glColor4bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4b.xml
+func (gl *GL) Color4b(red, green, blue, alpha byte) {
+ C.gl1_0_glColor4b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue), C.GLbyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3usv.xml
+func (gl *GL) Color3usv(v []uint16) {
+ C.gl1_0_glColor3usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3us.xml
+func (gl *GL) Color3us(red, green, blue uint16) {
+ C.gl1_0_glColor3us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3uiv.xml
+func (gl *GL) Color3uiv(v []uint32) {
+ C.gl1_0_glColor3uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ui.xml
+func (gl *GL) Color3ui(red, green, blue uint32) {
+ C.gl1_0_glColor3ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ubv.xml
+func (gl *GL) Color3ubv(v []uint8) {
+ C.gl1_0_glColor3ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ub.xml
+func (gl *GL) Color3ub(red, green, blue uint8) {
+ C.gl1_0_glColor3ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3sv.xml
+func (gl *GL) Color3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glColor3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3s.xml
+func (gl *GL) Color3s(red, green, blue int16) {
+ C.gl1_0_glColor3s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3iv.xml
+func (gl *GL) Color3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glColor3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3i.xml
+func (gl *GL) Color3i(red, green, blue int32) {
+ C.gl1_0_glColor3i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3fv.xml
+func (gl *GL) Color3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glColor3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3f.xml
+func (gl *GL) Color3f(red, green, blue float32) {
+ C.gl1_0_glColor3f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3dv.xml
+func (gl *GL) Color3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_0_glColor3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3d.xml
+func (gl *GL) Color3d(red, green, blue float64) {
+ C.gl1_0_glColor3d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3bv.xml
+func (gl *GL) Color3bv(v []byte) {
+ C.gl1_0_glColor3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3b.xml
+func (gl *GL) Color3b(red, green, blue byte) {
+ C.gl1_0_glColor3b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBitmap.xml
+func (gl *GL) Bitmap(width, height int, xorig, yorig, xmove, ymove float32, bitmap []uint8) {
+ C.gl1_0_glBitmap(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLfloat(xorig), C.GLfloat(yorig), C.GLfloat(xmove), C.GLfloat(ymove), (*C.GLubyte)(unsafe.Pointer(&bitmap[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBegin.xml
+func (gl *GL) Begin(mode glbase.Enum) {
+ C.gl1_0_glBegin(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glListBase.xml
+func (gl *GL) ListBase(base uint32) {
+ C.gl1_0_glListBase(gl.funcs, C.GLuint(base))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGenLists.xml
+func (gl *GL) GenLists(range_ int32) uint32 {
+ glresult := C.gl1_0_glGenLists(gl.funcs, C.GLsizei(range_))
+ return uint32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDeleteLists.xml
+func (gl *GL) DeleteLists(list uint32, range_ int32) {
+ C.gl1_0_glDeleteLists(gl.funcs, C.GLuint(list), C.GLsizei(range_))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallLists.xml
+func (gl *GL) CallLists(n int, gltype glbase.Enum, lists interface{}) {
+ var lists_ptr unsafe.Pointer
+ var lists_v = reflect.ValueOf(lists)
+ if lists != nil && lists_v.Kind() != reflect.Slice {
+ panic("parameter lists must be a slice")
+ }
+ if lists != nil {
+ lists_ptr = unsafe.Pointer(lists_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_0_glCallLists(gl.funcs, C.GLsizei(n), C.GLenum(gltype), lists_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallList.xml
+func (gl *GL) CallList(list uint32) {
+ C.gl1_0_glCallList(gl.funcs, C.GLuint(list))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEndList.xml
+func (gl *GL) EndList() {
+ C.gl1_0_glEndList(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNewList.xml
+func (gl *GL) NewList(list uint32, mode glbase.Enum) {
+ C.gl1_0_glNewList(gl.funcs, C.GLuint(list), C.GLenum(mode))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.1/funcs.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.1/funcs.cpp
new file mode 100644
index 000000000..1c0f0adbd
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.1/funcs.cpp
@@ -0,0 +1,2022 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#include <QOpenGLContext>
+#include <QtGui/qopenglfunctions_1_1.h>
+
+#include "funcs.h"
+
+void *gl1_1_funcs() {
+ QOpenGLFunctions_1_1* funcs = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_1_1>();
+ if (!funcs) {
+ return 0;
+ }
+ funcs->initializeOpenGLFunctions();
+ return funcs;
+}
+
+
+void gl1_1_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glViewport(x, y, width, height);
+}
+
+void gl1_1_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glDepthRange(nearVal, farVal);
+}
+
+GLboolean gl1_1_glIsEnabled(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ return _qglfuncs->glIsEnabled(cap);
+}
+
+void gl1_1_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameteriv(target, level, pname, params);
+}
+
+void gl1_1_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameterfv(target, level, pname, params);
+}
+
+void gl1_1_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetTexParameteriv(target, pname, params);
+}
+
+void gl1_1_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetTexParameterfv(target, pname, params);
+}
+
+void gl1_1_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetTexImage(target, level, format, gltype, pixels);
+}
+
+void gl1_1_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetIntegerv(pname, params);
+}
+
+void gl1_1_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetFloatv(pname, params);
+}
+
+GLenum gl1_1_glGetError(void *_glfuncs)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ return _qglfuncs->glGetError();
+}
+
+void gl1_1_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetDoublev(pname, params);
+}
+
+void gl1_1_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetBooleanv(pname, params);
+}
+
+void gl1_1_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glReadPixels(x, y, width, height, format, gltype, pixels);
+}
+
+void gl1_1_glReadBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glReadBuffer(mode);
+}
+
+void gl1_1_glPixelStorei(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPixelStorei(pname, param);
+}
+
+void gl1_1_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPixelStoref(pname, param);
+}
+
+void gl1_1_glDepthFunc(void *_glfuncs, GLenum glfunc)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glDepthFunc(glfunc);
+}
+
+void gl1_1_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glStencilOp(fail, zfail, zpass);
+}
+
+void gl1_1_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glStencilFunc(glfunc, ref, mask);
+}
+
+void gl1_1_glLogicOp(void *_glfuncs, GLenum opcode)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLogicOp(opcode);
+}
+
+void gl1_1_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glBlendFunc(sfactor, dfactor);
+}
+
+void gl1_1_glFlush(void *_glfuncs)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glFlush();
+}
+
+void gl1_1_glFinish(void *_glfuncs)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glFinish();
+}
+
+void gl1_1_glEnable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEnable(cap);
+}
+
+void gl1_1_glDisable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glDisable(cap);
+}
+
+void gl1_1_glDepthMask(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glDepthMask(flag);
+}
+
+void gl1_1_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColorMask(red, green, blue, alpha);
+}
+
+void gl1_1_glStencilMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glStencilMask(mask);
+}
+
+void gl1_1_glClearDepth(void *_glfuncs, GLdouble depth)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glClearDepth(depth);
+}
+
+void gl1_1_glClearStencil(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glClearStencil(s);
+}
+
+void gl1_1_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glClearColor(red, green, blue, alpha);
+}
+
+void gl1_1_glClear(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glClear(mask);
+}
+
+void gl1_1_glDrawBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glDrawBuffer(mode);
+}
+
+void gl1_1_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexImage2D(target, level, internalFormat, width, height, border, format, gltype, pixels);
+}
+
+void gl1_1_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexImage1D(target, level, internalFormat, width, border, format, gltype, pixels);
+}
+
+void gl1_1_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexParameteriv(target, pname, params);
+}
+
+void gl1_1_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexParameteri(target, pname, param);
+}
+
+void gl1_1_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexParameterfv(target, pname, params);
+}
+
+void gl1_1_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexParameterf(target, pname, param);
+}
+
+void gl1_1_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glScissor(x, y, width, height);
+}
+
+void gl1_1_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPolygonMode(face, mode);
+}
+
+void gl1_1_glPointSize(void *_glfuncs, GLfloat size)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPointSize(size);
+}
+
+void gl1_1_glLineWidth(void *_glfuncs, GLfloat width)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLineWidth(width);
+}
+
+void gl1_1_glHint(void *_glfuncs, GLenum target, GLenum mode)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glHint(target, mode);
+}
+
+void gl1_1_glFrontFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glFrontFace(mode);
+}
+
+void gl1_1_glCullFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glCullFace(mode);
+}
+
+void gl1_1_glIndexubv(void *_glfuncs, const GLubyte* c)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glIndexubv(c);
+}
+
+void gl1_1_glIndexub(void *_glfuncs, GLubyte c)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glIndexub(c);
+}
+
+GLboolean gl1_1_glIsTexture(void *_glfuncs, GLuint texture)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ return _qglfuncs->glIsTexture(texture);
+}
+
+void gl1_1_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGenTextures(n, textures);
+}
+
+void gl1_1_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glDeleteTextures(n, textures);
+}
+
+void gl1_1_glBindTexture(void *_glfuncs, GLenum target, GLuint texture)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glBindTexture(target, texture);
+}
+
+void gl1_1_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, gltype, pixels);
+}
+
+void gl1_1_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexSubImage1D(target, level, xoffset, width, format, gltype, pixels);
+}
+
+void gl1_1_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
+}
+
+void gl1_1_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage1D(target, level, xoffset, x, y, width);
+}
+
+void gl1_1_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
+}
+
+void gl1_1_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glCopyTexImage1D(target, level, internalFormat, x, y, width, border);
+}
+
+void gl1_1_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPolygonOffset(factor, units);
+}
+
+void gl1_1_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glDrawElements(mode, count, gltype, indices);
+}
+
+void gl1_1_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glDrawArrays(mode, first, count);
+}
+
+void gl1_1_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTranslatef(x, y, z);
+}
+
+void gl1_1_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTranslated(x, y, z);
+}
+
+void gl1_1_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glScalef(x, y, z);
+}
+
+void gl1_1_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glScaled(x, y, z);
+}
+
+void gl1_1_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRotatef(angle, x, y, z);
+}
+
+void gl1_1_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRotated(angle, x, y, z);
+}
+
+void gl1_1_glPushMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPushMatrix();
+}
+
+void gl1_1_glPopMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPopMatrix();
+}
+
+void gl1_1_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glOrtho(left, right, bottom, top, zNear, zFar);
+}
+
+void gl1_1_glMultMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMultMatrixd(m);
+}
+
+void gl1_1_glMultMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMultMatrixf(m);
+}
+
+void gl1_1_glMatrixMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMatrixMode(mode);
+}
+
+void gl1_1_glLoadMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLoadMatrixd(m);
+}
+
+void gl1_1_glLoadMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLoadMatrixf(m);
+}
+
+void gl1_1_glLoadIdentity(void *_glfuncs)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLoadIdentity();
+}
+
+void gl1_1_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glFrustum(left, right, bottom, top, zNear, zFar);
+}
+
+GLboolean gl1_1_glIsList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ return _qglfuncs->glIsList(list);
+}
+
+void gl1_1_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetTexGeniv(coord, pname, params);
+}
+
+void gl1_1_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetTexGenfv(coord, pname, params);
+}
+
+void gl1_1_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetTexGendv(coord, pname, params);
+}
+
+void gl1_1_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetTexEnviv(target, pname, params);
+}
+
+void gl1_1_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetTexEnvfv(target, pname, params);
+}
+
+void gl1_1_glGetPolygonStipple(void *_glfuncs, GLubyte* mask)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetPolygonStipple(mask);
+}
+
+void gl1_1_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetPixelMapusv(glmap, values);
+}
+
+void gl1_1_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetPixelMapuiv(glmap, values);
+}
+
+void gl1_1_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetPixelMapfv(glmap, values);
+}
+
+void gl1_1_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetMaterialiv(face, pname, params);
+}
+
+void gl1_1_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetMaterialfv(face, pname, params);
+}
+
+void gl1_1_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetMapiv(target, query, v);
+}
+
+void gl1_1_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetMapfv(target, query, v);
+}
+
+void gl1_1_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetMapdv(target, query, v);
+}
+
+void gl1_1_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetLightiv(light, pname, params);
+}
+
+void gl1_1_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetLightfv(light, pname, params);
+}
+
+void gl1_1_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glGetClipPlane(plane, equation);
+}
+
+void gl1_1_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glDrawPixels(width, height, format, gltype, pixels);
+}
+
+void gl1_1_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glCopyPixels(x, y, width, height, gltype);
+}
+
+void gl1_1_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPixelMapusv(glmap, mapsize, values);
+}
+
+void gl1_1_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPixelMapuiv(glmap, mapsize, values);
+}
+
+void gl1_1_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPixelMapfv(glmap, mapsize, values);
+}
+
+void gl1_1_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPixelTransferi(pname, param);
+}
+
+void gl1_1_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPixelTransferf(pname, param);
+}
+
+void gl1_1_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPixelZoom(xfactor, yfactor);
+}
+
+void gl1_1_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glAlphaFunc(glfunc, ref);
+}
+
+void gl1_1_glEvalPoint2(void *_glfuncs, GLint i, GLint j)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEvalPoint2(i, j);
+}
+
+void gl1_1_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEvalMesh2(mode, i1, i2, j1, j2);
+}
+
+void gl1_1_glEvalPoint1(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEvalPoint1(i);
+}
+
+void gl1_1_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEvalMesh1(mode, i1, i2);
+}
+
+void gl1_1_glEvalCoord2fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord2fv(u);
+}
+
+void gl1_1_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord2f(u, v);
+}
+
+void gl1_1_glEvalCoord2dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord2dv(u);
+}
+
+void gl1_1_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord2d(u, v);
+}
+
+void gl1_1_glEvalCoord1fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord1fv(u);
+}
+
+void gl1_1_glEvalCoord1f(void *_glfuncs, GLfloat u)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord1f(u);
+}
+
+void gl1_1_glEvalCoord1dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord1dv(u);
+}
+
+void gl1_1_glEvalCoord1d(void *_glfuncs, GLdouble u)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord1d(u);
+}
+
+void gl1_1_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMapGrid2f(un, u1, u2, vn, v1, v2);
+}
+
+void gl1_1_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMapGrid2d(un, u1, u2, vn, v1, v2);
+}
+
+void gl1_1_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMapGrid1f(un, u1, u2);
+}
+
+void gl1_1_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMapGrid1d(un, u1, u2);
+}
+
+void gl1_1_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl1_1_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl1_1_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMap1f(target, u1, u2, stride, order, points);
+}
+
+void gl1_1_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMap1d(target, u1, u2, stride, order, points);
+}
+
+void gl1_1_glPushAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPushAttrib(mask);
+}
+
+void gl1_1_glPopAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPopAttrib();
+}
+
+void gl1_1_glAccum(void *_glfuncs, GLenum op, GLfloat value)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glAccum(op, value);
+}
+
+void gl1_1_glIndexMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glIndexMask(mask);
+}
+
+void gl1_1_glClearIndex(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glClearIndex(c);
+}
+
+void gl1_1_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glClearAccum(red, green, blue, alpha);
+}
+
+void gl1_1_glPushName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPushName(name);
+}
+
+void gl1_1_glPopName(void *_glfuncs)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPopName();
+}
+
+void gl1_1_glPassThrough(void *_glfuncs, GLfloat token)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPassThrough(token);
+}
+
+void gl1_1_glLoadName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLoadName(name);
+}
+
+void gl1_1_glInitNames(void *_glfuncs)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glInitNames();
+}
+
+GLint gl1_1_glRenderMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ return _qglfuncs->glRenderMode(mode);
+}
+
+void gl1_1_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glSelectBuffer(size, buffer);
+}
+
+void gl1_1_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glFeedbackBuffer(size, gltype, buffer);
+}
+
+void gl1_1_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexGeniv(coord, pname, params);
+}
+
+void gl1_1_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexGeni(coord, pname, param);
+}
+
+void gl1_1_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexGenfv(coord, pname, params);
+}
+
+void gl1_1_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexGenf(coord, pname, param);
+}
+
+void gl1_1_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexGendv(coord, pname, params);
+}
+
+void gl1_1_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexGend(coord, pname, param);
+}
+
+void gl1_1_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexEnviv(target, pname, params);
+}
+
+void gl1_1_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexEnvi(target, pname, param);
+}
+
+void gl1_1_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexEnvfv(target, pname, params);
+}
+
+void gl1_1_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexEnvf(target, pname, param);
+}
+
+void gl1_1_glShadeModel(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glShadeModel(mode);
+}
+
+void gl1_1_glPolygonStipple(void *_glfuncs, const GLubyte* mask)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPolygonStipple(mask);
+}
+
+void gl1_1_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMaterialiv(face, pname, params);
+}
+
+void gl1_1_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMateriali(face, pname, param);
+}
+
+void gl1_1_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMaterialfv(face, pname, params);
+}
+
+void gl1_1_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glMaterialf(face, pname, param);
+}
+
+void gl1_1_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLineStipple(factor, pattern);
+}
+
+void gl1_1_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLightModeliv(pname, params);
+}
+
+void gl1_1_glLightModeli(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLightModeli(pname, param);
+}
+
+void gl1_1_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLightModelfv(pname, params);
+}
+
+void gl1_1_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLightModelf(pname, param);
+}
+
+void gl1_1_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLightiv(light, pname, params);
+}
+
+void gl1_1_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLighti(light, pname, param);
+}
+
+void gl1_1_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLightfv(light, pname, params);
+}
+
+void gl1_1_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glLightf(light, pname, param);
+}
+
+void gl1_1_glFogiv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glFogiv(pname, params);
+}
+
+void gl1_1_glFogi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glFogi(pname, param);
+}
+
+void gl1_1_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glFogfv(pname, params);
+}
+
+void gl1_1_glFogf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glFogf(pname, param);
+}
+
+void gl1_1_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColorMaterial(face, mode);
+}
+
+void gl1_1_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glClipPlane(plane, equation);
+}
+
+void gl1_1_glVertex4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex4sv(v);
+}
+
+void gl1_1_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex4s(x, y, z, w);
+}
+
+void gl1_1_glVertex4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex4iv(v);
+}
+
+void gl1_1_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex4i(x, y, z, w);
+}
+
+void gl1_1_glVertex4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex4fv(v);
+}
+
+void gl1_1_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex4f(x, y, z, w);
+}
+
+void gl1_1_glVertex4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex4dv(v);
+}
+
+void gl1_1_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex4d(x, y, z, w);
+}
+
+void gl1_1_glVertex3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex3sv(v);
+}
+
+void gl1_1_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex3s(x, y, z);
+}
+
+void gl1_1_glVertex3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex3iv(v);
+}
+
+void gl1_1_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex3i(x, y, z);
+}
+
+void gl1_1_glVertex3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex3fv(v);
+}
+
+void gl1_1_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex3f(x, y, z);
+}
+
+void gl1_1_glVertex3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex3dv(v);
+}
+
+void gl1_1_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex3d(x, y, z);
+}
+
+void gl1_1_glVertex2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex2sv(v);
+}
+
+void gl1_1_glVertex2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex2s(x, y);
+}
+
+void gl1_1_glVertex2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex2iv(v);
+}
+
+void gl1_1_glVertex2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex2i(x, y);
+}
+
+void gl1_1_glVertex2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex2fv(v);
+}
+
+void gl1_1_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex2f(x, y);
+}
+
+void gl1_1_glVertex2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex2dv(v);
+}
+
+void gl1_1_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertex2d(x, y);
+}
+
+void gl1_1_glTexCoord4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4sv(v);
+}
+
+void gl1_1_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4s(s, t, r, q);
+}
+
+void gl1_1_glTexCoord4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4iv(v);
+}
+
+void gl1_1_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4i(s, t, r, q);
+}
+
+void gl1_1_glTexCoord4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4fv(v);
+}
+
+void gl1_1_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4f(s, t, r, q);
+}
+
+void gl1_1_glTexCoord4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4dv(v);
+}
+
+void gl1_1_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4d(s, t, r, q);
+}
+
+void gl1_1_glTexCoord3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3sv(v);
+}
+
+void gl1_1_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3s(s, t, r);
+}
+
+void gl1_1_glTexCoord3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3iv(v);
+}
+
+void gl1_1_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3i(s, t, r);
+}
+
+void gl1_1_glTexCoord3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3fv(v);
+}
+
+void gl1_1_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3f(s, t, r);
+}
+
+void gl1_1_glTexCoord3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3dv(v);
+}
+
+void gl1_1_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3d(s, t, r);
+}
+
+void gl1_1_glTexCoord2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2sv(v);
+}
+
+void gl1_1_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2s(s, t);
+}
+
+void gl1_1_glTexCoord2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2iv(v);
+}
+
+void gl1_1_glTexCoord2i(void *_glfuncs, GLint s, GLint t)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2i(s, t);
+}
+
+void gl1_1_glTexCoord2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2fv(v);
+}
+
+void gl1_1_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2f(s, t);
+}
+
+void gl1_1_glTexCoord2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2dv(v);
+}
+
+void gl1_1_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2d(s, t);
+}
+
+void gl1_1_glTexCoord1sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1sv(v);
+}
+
+void gl1_1_glTexCoord1s(void *_glfuncs, GLshort s)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1s(s);
+}
+
+void gl1_1_glTexCoord1iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1iv(v);
+}
+
+void gl1_1_glTexCoord1i(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1i(s);
+}
+
+void gl1_1_glTexCoord1fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1fv(v);
+}
+
+void gl1_1_glTexCoord1f(void *_glfuncs, GLfloat s)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1f(s);
+}
+
+void gl1_1_glTexCoord1dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1dv(v);
+}
+
+void gl1_1_glTexCoord1d(void *_glfuncs, GLdouble s)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1d(s);
+}
+
+void gl1_1_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRectsv(v1, v2);
+}
+
+void gl1_1_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRects(x1, y1, x2, y2);
+}
+
+void gl1_1_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRectiv(v1, v2);
+}
+
+void gl1_1_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRecti(x1, y1, x2, y2);
+}
+
+void gl1_1_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRectfv(v1, v2);
+}
+
+void gl1_1_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRectf(x1, y1, x2, y2);
+}
+
+void gl1_1_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRectdv(v1, v2);
+}
+
+void gl1_1_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRectd(x1, y1, x2, y2);
+}
+
+void gl1_1_glRasterPos4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4sv(v);
+}
+
+void gl1_1_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4s(x, y, z, w);
+}
+
+void gl1_1_glRasterPos4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4iv(v);
+}
+
+void gl1_1_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4i(x, y, z, w);
+}
+
+void gl1_1_glRasterPos4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4fv(v);
+}
+
+void gl1_1_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4f(x, y, z, w);
+}
+
+void gl1_1_glRasterPos4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4dv(v);
+}
+
+void gl1_1_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4d(x, y, z, w);
+}
+
+void gl1_1_glRasterPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3sv(v);
+}
+
+void gl1_1_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3s(x, y, z);
+}
+
+void gl1_1_glRasterPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3iv(v);
+}
+
+void gl1_1_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3i(x, y, z);
+}
+
+void gl1_1_glRasterPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3fv(v);
+}
+
+void gl1_1_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3f(x, y, z);
+}
+
+void gl1_1_glRasterPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3dv(v);
+}
+
+void gl1_1_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3d(x, y, z);
+}
+
+void gl1_1_glRasterPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2sv(v);
+}
+
+void gl1_1_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2s(x, y);
+}
+
+void gl1_1_glRasterPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2iv(v);
+}
+
+void gl1_1_glRasterPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2i(x, y);
+}
+
+void gl1_1_glRasterPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2fv(v);
+}
+
+void gl1_1_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2f(x, y);
+}
+
+void gl1_1_glRasterPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2dv(v);
+}
+
+void gl1_1_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2d(x, y);
+}
+
+void gl1_1_glNormal3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glNormal3sv(v);
+}
+
+void gl1_1_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glNormal3s(nx, ny, nz);
+}
+
+void gl1_1_glNormal3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glNormal3iv(v);
+}
+
+void gl1_1_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glNormal3i(nx, ny, nz);
+}
+
+void gl1_1_glNormal3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glNormal3fv(v);
+}
+
+void gl1_1_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glNormal3f(nx, ny, nz);
+}
+
+void gl1_1_glNormal3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glNormal3dv(v);
+}
+
+void gl1_1_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glNormal3d(nx, ny, nz);
+}
+
+void gl1_1_glNormal3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glNormal3bv(v);
+}
+
+void gl1_1_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glNormal3b(nx, ny, nz);
+}
+
+void gl1_1_glIndexsv(void *_glfuncs, const GLshort* c)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glIndexsv(c);
+}
+
+void gl1_1_glIndexs(void *_glfuncs, GLshort c)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glIndexs(c);
+}
+
+void gl1_1_glIndexiv(void *_glfuncs, const GLint* c)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glIndexiv(c);
+}
+
+void gl1_1_glIndexi(void *_glfuncs, GLint c)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glIndexi(c);
+}
+
+void gl1_1_glIndexfv(void *_glfuncs, const GLfloat* c)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glIndexfv(c);
+}
+
+void gl1_1_glIndexf(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glIndexf(c);
+}
+
+void gl1_1_glIndexdv(void *_glfuncs, const GLdouble* c)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glIndexdv(c);
+}
+
+void gl1_1_glIndexd(void *_glfuncs, GLdouble c)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glIndexd(c);
+}
+
+void gl1_1_glEnd(void *_glfuncs)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEnd();
+}
+
+void gl1_1_glEdgeFlagv(void *_glfuncs, const GLboolean* flag)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEdgeFlagv(flag);
+}
+
+void gl1_1_glEdgeFlag(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEdgeFlag(flag);
+}
+
+void gl1_1_glColor4usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4usv(v);
+}
+
+void gl1_1_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4us(red, green, blue, alpha);
+}
+
+void gl1_1_glColor4uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4uiv(v);
+}
+
+void gl1_1_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4ui(red, green, blue, alpha);
+}
+
+void gl1_1_glColor4ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4ubv(v);
+}
+
+void gl1_1_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4ub(red, green, blue, alpha);
+}
+
+void gl1_1_glColor4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4sv(v);
+}
+
+void gl1_1_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4s(red, green, blue, alpha);
+}
+
+void gl1_1_glColor4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4iv(v);
+}
+
+void gl1_1_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4i(red, green, blue, alpha);
+}
+
+void gl1_1_glColor4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4fv(v);
+}
+
+void gl1_1_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4f(red, green, blue, alpha);
+}
+
+void gl1_1_glColor4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4dv(v);
+}
+
+void gl1_1_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4d(red, green, blue, alpha);
+}
+
+void gl1_1_glColor4bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4bv(v);
+}
+
+void gl1_1_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor4b(red, green, blue, alpha);
+}
+
+void gl1_1_glColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3usv(v);
+}
+
+void gl1_1_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3us(red, green, blue);
+}
+
+void gl1_1_glColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3uiv(v);
+}
+
+void gl1_1_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3ui(red, green, blue);
+}
+
+void gl1_1_glColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3ubv(v);
+}
+
+void gl1_1_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3ub(red, green, blue);
+}
+
+void gl1_1_glColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3sv(v);
+}
+
+void gl1_1_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3s(red, green, blue);
+}
+
+void gl1_1_glColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3iv(v);
+}
+
+void gl1_1_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3i(red, green, blue);
+}
+
+void gl1_1_glColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3fv(v);
+}
+
+void gl1_1_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3f(red, green, blue);
+}
+
+void gl1_1_glColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3dv(v);
+}
+
+void gl1_1_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3d(red, green, blue);
+}
+
+void gl1_1_glColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3bv(v);
+}
+
+void gl1_1_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColor3b(red, green, blue);
+}
+
+void gl1_1_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
+}
+
+void gl1_1_glBegin(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glBegin(mode);
+}
+
+void gl1_1_glListBase(void *_glfuncs, GLuint base)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glListBase(base);
+}
+
+GLuint gl1_1_glGenLists(void *_glfuncs, GLsizei range_)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ return _qglfuncs->glGenLists(range_);
+}
+
+void gl1_1_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glDeleteLists(list, range_);
+}
+
+void gl1_1_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glCallLists(n, gltype, lists);
+}
+
+void gl1_1_glCallList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glCallList(list);
+}
+
+void gl1_1_glEndList(void *_glfuncs)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEndList();
+}
+
+void gl1_1_glNewList(void *_glfuncs, GLuint list, GLenum mode)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glNewList(list, mode);
+}
+
+void gl1_1_glPushClientAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPushClientAttrib(mask);
+}
+
+void gl1_1_glPopClientAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPopClientAttrib();
+}
+
+void gl1_1_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glPrioritizeTextures(n, textures, priorities);
+}
+
+GLboolean gl1_1_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ return _qglfuncs->glAreTexturesResident(n, textures, residences);
+}
+
+void gl1_1_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glVertexPointer(size, gltype, stride, pointer);
+}
+
+void gl1_1_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glTexCoordPointer(size, gltype, stride, pointer);
+}
+
+void gl1_1_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glNormalPointer(gltype, stride, pointer);
+}
+
+void gl1_1_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glInterleavedArrays(format, stride, pointer);
+}
+
+void gl1_1_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glIndexPointer(gltype, stride, pointer);
+}
+
+void gl1_1_glEnableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEnableClientState(array);
+}
+
+void gl1_1_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glEdgeFlagPointer(stride, pointer);
+}
+
+void gl1_1_glDisableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glDisableClientState(array);
+}
+
+void gl1_1_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glColorPointer(size, gltype, stride, pointer);
+}
+
+void gl1_1_glArrayElement(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_1_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_1*>(_glfuncs);
+ _qglfuncs->glArrayElement(i);
+}
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.1/funcs.h b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.1/funcs.h
new file mode 100644
index 000000000..f89c6a452
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.1/funcs.h
@@ -0,0 +1,376 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#ifndef __cplusplus
+#include <inttypes.h>
+#include <stddef.h>
+typedef unsigned int GLenum;
+typedef unsigned char GLboolean;
+typedef unsigned int GLbitfield;
+typedef void GLvoid;
+typedef char GLchar;
+typedef signed char GLbyte; /* 1-byte signed */
+typedef short GLshort; /* 2-byte signed */
+typedef int GLint; /* 4-byte signed */
+typedef unsigned char GLubyte; /* 1-byte unsigned */
+typedef unsigned short GLushort; /* 2-byte unsigned */
+typedef unsigned int GLuint; /* 4-byte unsigned */
+typedef int GLsizei; /* 4-byte signed */
+typedef float GLfloat; /* single precision float */
+typedef float GLclampf; /* single precision float in [0,1] */
+typedef double GLdouble; /* double precision float */
+typedef double GLclampd; /* double precision float in [0,1] */
+typedef int64_t GLint64;
+typedef uint64_t GLuint64;
+typedef ptrdiff_t GLintptr;
+typedef ptrdiff_t GLsizeiptr;
+typedef ptrdiff_t GLintptrARB;
+typedef ptrdiff_t GLsizeiptrARB;
+typedef struct __GLsync *GLsync;
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *gl1_1_funcs();
+
+void gl1_1_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_1_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal);
+GLboolean gl1_1_glIsEnabled(void *_glfuncs, GLenum cap);
+void gl1_1_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params);
+void gl1_1_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params);
+void gl1_1_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_1_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_1_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl1_1_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params);
+void gl1_1_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params);
+GLenum gl1_1_glGetError(void *_glfuncs);
+void gl1_1_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params);
+void gl1_1_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params);
+void gl1_1_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl1_1_glReadBuffer(void *_glfuncs, GLenum mode);
+void gl1_1_glPixelStorei(void *_glfuncs, GLenum pname, GLint param);
+void gl1_1_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_1_glDepthFunc(void *_glfuncs, GLenum glfunc);
+void gl1_1_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass);
+void gl1_1_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask);
+void gl1_1_glLogicOp(void *_glfuncs, GLenum opcode);
+void gl1_1_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor);
+void gl1_1_glFlush(void *_glfuncs);
+void gl1_1_glFinish(void *_glfuncs);
+void gl1_1_glEnable(void *_glfuncs, GLenum cap);
+void gl1_1_glDisable(void *_glfuncs, GLenum cap);
+void gl1_1_glDepthMask(void *_glfuncs, GLboolean flag);
+void gl1_1_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+void gl1_1_glStencilMask(void *_glfuncs, GLuint mask);
+void gl1_1_glClearDepth(void *_glfuncs, GLdouble depth);
+void gl1_1_glClearStencil(void *_glfuncs, GLint s);
+void gl1_1_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_1_glClear(void *_glfuncs, GLbitfield mask);
+void gl1_1_glDrawBuffer(void *_glfuncs, GLenum mode);
+void gl1_1_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_1_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_1_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_1_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl1_1_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_1_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl1_1_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_1_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode);
+void gl1_1_glPointSize(void *_glfuncs, GLfloat size);
+void gl1_1_glLineWidth(void *_glfuncs, GLfloat width);
+void gl1_1_glHint(void *_glfuncs, GLenum target, GLenum mode);
+void gl1_1_glFrontFace(void *_glfuncs, GLenum mode);
+void gl1_1_glCullFace(void *_glfuncs, GLenum mode);
+void gl1_1_glIndexubv(void *_glfuncs, const GLubyte* c);
+void gl1_1_glIndexub(void *_glfuncs, GLubyte c);
+GLboolean gl1_1_glIsTexture(void *_glfuncs, GLuint texture);
+void gl1_1_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures);
+void gl1_1_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures);
+void gl1_1_glBindTexture(void *_glfuncs, GLenum target, GLuint texture);
+void gl1_1_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_1_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_1_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_1_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+void gl1_1_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+void gl1_1_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
+void gl1_1_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units);
+void gl1_1_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl1_1_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count);
+void gl1_1_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_1_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_1_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_1_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_1_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+void gl1_1_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+void gl1_1_glPushMatrix(void *_glfuncs);
+void gl1_1_glPopMatrix(void *_glfuncs);
+void gl1_1_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+void gl1_1_glMultMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_1_glMultMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_1_glMatrixMode(void *_glfuncs, GLenum mode);
+void gl1_1_glLoadMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_1_glLoadMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_1_glLoadIdentity(void *_glfuncs);
+void gl1_1_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLboolean gl1_1_glIsList(void *_glfuncs, GLuint list);
+void gl1_1_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params);
+void gl1_1_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params);
+void gl1_1_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params);
+void gl1_1_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_1_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_1_glGetPolygonStipple(void *_glfuncs, GLubyte* mask);
+void gl1_1_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values);
+void gl1_1_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values);
+void gl1_1_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values);
+void gl1_1_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params);
+void gl1_1_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params);
+void gl1_1_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v);
+void gl1_1_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v);
+void gl1_1_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v);
+void gl1_1_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params);
+void gl1_1_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params);
+void gl1_1_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation);
+void gl1_1_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_1_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype);
+void gl1_1_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values);
+void gl1_1_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values);
+void gl1_1_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values);
+void gl1_1_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param);
+void gl1_1_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_1_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor);
+void gl1_1_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref);
+void gl1_1_glEvalPoint2(void *_glfuncs, GLint i, GLint j);
+void gl1_1_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
+void gl1_1_glEvalPoint1(void *_glfuncs, GLint i);
+void gl1_1_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2);
+void gl1_1_glEvalCoord2fv(void *_glfuncs, const GLfloat* u);
+void gl1_1_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v);
+void gl1_1_glEvalCoord2dv(void *_glfuncs, const GLdouble* u);
+void gl1_1_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v);
+void gl1_1_glEvalCoord1fv(void *_glfuncs, const GLfloat* u);
+void gl1_1_glEvalCoord1f(void *_glfuncs, GLfloat u);
+void gl1_1_glEvalCoord1dv(void *_glfuncs, const GLdouble* u);
+void gl1_1_glEvalCoord1d(void *_glfuncs, GLdouble u);
+void gl1_1_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
+void gl1_1_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
+void gl1_1_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2);
+void gl1_1_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2);
+void gl1_1_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points);
+void gl1_1_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points);
+void gl1_1_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points);
+void gl1_1_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points);
+void gl1_1_glPushAttrib(void *_glfuncs, GLbitfield mask);
+void gl1_1_glPopAttrib(void *_glfuncs);
+void gl1_1_glAccum(void *_glfuncs, GLenum op, GLfloat value);
+void gl1_1_glIndexMask(void *_glfuncs, GLuint mask);
+void gl1_1_glClearIndex(void *_glfuncs, GLfloat c);
+void gl1_1_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_1_glPushName(void *_glfuncs, GLuint name);
+void gl1_1_glPopName(void *_glfuncs);
+void gl1_1_glPassThrough(void *_glfuncs, GLfloat token);
+void gl1_1_glLoadName(void *_glfuncs, GLuint name);
+void gl1_1_glInitNames(void *_glfuncs);
+GLint gl1_1_glRenderMode(void *_glfuncs, GLenum mode);
+void gl1_1_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer);
+void gl1_1_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer);
+void gl1_1_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params);
+void gl1_1_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param);
+void gl1_1_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params);
+void gl1_1_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param);
+void gl1_1_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params);
+void gl1_1_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param);
+void gl1_1_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_1_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl1_1_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_1_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl1_1_glShadeModel(void *_glfuncs, GLenum mode);
+void gl1_1_glPolygonStipple(void *_glfuncs, const GLubyte* mask);
+void gl1_1_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params);
+void gl1_1_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param);
+void gl1_1_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params);
+void gl1_1_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param);
+void gl1_1_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern);
+void gl1_1_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl1_1_glLightModeli(void *_glfuncs, GLenum pname, GLint param);
+void gl1_1_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl1_1_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_1_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params);
+void gl1_1_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param);
+void gl1_1_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params);
+void gl1_1_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param);
+void gl1_1_glFogiv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl1_1_glFogi(void *_glfuncs, GLenum pname, GLint param);
+void gl1_1_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl1_1_glFogf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_1_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode);
+void gl1_1_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation);
+void gl1_1_glVertex4sv(void *_glfuncs, const GLshort* v);
+void gl1_1_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl1_1_glVertex4iv(void *_glfuncs, const GLint* v);
+void gl1_1_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl1_1_glVertex4fv(void *_glfuncs, const GLfloat* v);
+void gl1_1_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl1_1_glVertex4dv(void *_glfuncs, const GLdouble* v);
+void gl1_1_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl1_1_glVertex3sv(void *_glfuncs, const GLshort* v);
+void gl1_1_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl1_1_glVertex3iv(void *_glfuncs, const GLint* v);
+void gl1_1_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl1_1_glVertex3fv(void *_glfuncs, const GLfloat* v);
+void gl1_1_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_1_glVertex3dv(void *_glfuncs, const GLdouble* v);
+void gl1_1_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_1_glVertex2sv(void *_glfuncs, const GLshort* v);
+void gl1_1_glVertex2s(void *_glfuncs, GLshort x, GLshort y);
+void gl1_1_glVertex2iv(void *_glfuncs, const GLint* v);
+void gl1_1_glVertex2i(void *_glfuncs, GLint x, GLint y);
+void gl1_1_glVertex2fv(void *_glfuncs, const GLfloat* v);
+void gl1_1_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl1_1_glVertex2dv(void *_glfuncs, const GLdouble* v);
+void gl1_1_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl1_1_glTexCoord4sv(void *_glfuncs, const GLshort* v);
+void gl1_1_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl1_1_glTexCoord4iv(void *_glfuncs, const GLint* v);
+void gl1_1_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q);
+void gl1_1_glTexCoord4fv(void *_glfuncs, const GLfloat* v);
+void gl1_1_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl1_1_glTexCoord4dv(void *_glfuncs, const GLdouble* v);
+void gl1_1_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl1_1_glTexCoord3sv(void *_glfuncs, const GLshort* v);
+void gl1_1_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r);
+void gl1_1_glTexCoord3iv(void *_glfuncs, const GLint* v);
+void gl1_1_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r);
+void gl1_1_glTexCoord3fv(void *_glfuncs, const GLfloat* v);
+void gl1_1_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r);
+void gl1_1_glTexCoord3dv(void *_glfuncs, const GLdouble* v);
+void gl1_1_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r);
+void gl1_1_glTexCoord2sv(void *_glfuncs, const GLshort* v);
+void gl1_1_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t);
+void gl1_1_glTexCoord2iv(void *_glfuncs, const GLint* v);
+void gl1_1_glTexCoord2i(void *_glfuncs, GLint s, GLint t);
+void gl1_1_glTexCoord2fv(void *_glfuncs, const GLfloat* v);
+void gl1_1_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t);
+void gl1_1_glTexCoord2dv(void *_glfuncs, const GLdouble* v);
+void gl1_1_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t);
+void gl1_1_glTexCoord1sv(void *_glfuncs, const GLshort* v);
+void gl1_1_glTexCoord1s(void *_glfuncs, GLshort s);
+void gl1_1_glTexCoord1iv(void *_glfuncs, const GLint* v);
+void gl1_1_glTexCoord1i(void *_glfuncs, GLint s);
+void gl1_1_glTexCoord1fv(void *_glfuncs, const GLfloat* v);
+void gl1_1_glTexCoord1f(void *_glfuncs, GLfloat s);
+void gl1_1_glTexCoord1dv(void *_glfuncs, const GLdouble* v);
+void gl1_1_glTexCoord1d(void *_glfuncs, GLdouble s);
+void gl1_1_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2);
+void gl1_1_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2);
+void gl1_1_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2);
+void gl1_1_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2);
+void gl1_1_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2);
+void gl1_1_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
+void gl1_1_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2);
+void gl1_1_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
+void gl1_1_glRasterPos4sv(void *_glfuncs, const GLshort* v);
+void gl1_1_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl1_1_glRasterPos4iv(void *_glfuncs, const GLint* v);
+void gl1_1_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl1_1_glRasterPos4fv(void *_glfuncs, const GLfloat* v);
+void gl1_1_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl1_1_glRasterPos4dv(void *_glfuncs, const GLdouble* v);
+void gl1_1_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl1_1_glRasterPos3sv(void *_glfuncs, const GLshort* v);
+void gl1_1_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl1_1_glRasterPos3iv(void *_glfuncs, const GLint* v);
+void gl1_1_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl1_1_glRasterPos3fv(void *_glfuncs, const GLfloat* v);
+void gl1_1_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_1_glRasterPos3dv(void *_glfuncs, const GLdouble* v);
+void gl1_1_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_1_glRasterPos2sv(void *_glfuncs, const GLshort* v);
+void gl1_1_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl1_1_glRasterPos2iv(void *_glfuncs, const GLint* v);
+void gl1_1_glRasterPos2i(void *_glfuncs, GLint x, GLint y);
+void gl1_1_glRasterPos2fv(void *_glfuncs, const GLfloat* v);
+void gl1_1_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl1_1_glRasterPos2dv(void *_glfuncs, const GLdouble* v);
+void gl1_1_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl1_1_glNormal3sv(void *_glfuncs, const GLshort* v);
+void gl1_1_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz);
+void gl1_1_glNormal3iv(void *_glfuncs, const GLint* v);
+void gl1_1_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz);
+void gl1_1_glNormal3fv(void *_glfuncs, const GLfloat* v);
+void gl1_1_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz);
+void gl1_1_glNormal3dv(void *_glfuncs, const GLdouble* v);
+void gl1_1_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz);
+void gl1_1_glNormal3bv(void *_glfuncs, const GLbyte* v);
+void gl1_1_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz);
+void gl1_1_glIndexsv(void *_glfuncs, const GLshort* c);
+void gl1_1_glIndexs(void *_glfuncs, GLshort c);
+void gl1_1_glIndexiv(void *_glfuncs, const GLint* c);
+void gl1_1_glIndexi(void *_glfuncs, GLint c);
+void gl1_1_glIndexfv(void *_glfuncs, const GLfloat* c);
+void gl1_1_glIndexf(void *_glfuncs, GLfloat c);
+void gl1_1_glIndexdv(void *_glfuncs, const GLdouble* c);
+void gl1_1_glIndexd(void *_glfuncs, GLdouble c);
+void gl1_1_glEnd(void *_glfuncs);
+void gl1_1_glEdgeFlagv(void *_glfuncs, const GLboolean* flag);
+void gl1_1_glEdgeFlag(void *_glfuncs, GLboolean flag);
+void gl1_1_glColor4usv(void *_glfuncs, const GLushort* v);
+void gl1_1_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha);
+void gl1_1_glColor4uiv(void *_glfuncs, const GLuint* v);
+void gl1_1_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha);
+void gl1_1_glColor4ubv(void *_glfuncs, const GLubyte* v);
+void gl1_1_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
+void gl1_1_glColor4sv(void *_glfuncs, const GLshort* v);
+void gl1_1_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha);
+void gl1_1_glColor4iv(void *_glfuncs, const GLint* v);
+void gl1_1_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha);
+void gl1_1_glColor4fv(void *_glfuncs, const GLfloat* v);
+void gl1_1_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_1_glColor4dv(void *_glfuncs, const GLdouble* v);
+void gl1_1_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
+void gl1_1_glColor4bv(void *_glfuncs, const GLbyte* v);
+void gl1_1_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
+void gl1_1_glColor3usv(void *_glfuncs, const GLushort* v);
+void gl1_1_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl1_1_glColor3uiv(void *_glfuncs, const GLuint* v);
+void gl1_1_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl1_1_glColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl1_1_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl1_1_glColor3sv(void *_glfuncs, const GLshort* v);
+void gl1_1_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl1_1_glColor3iv(void *_glfuncs, const GLint* v);
+void gl1_1_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl1_1_glColor3fv(void *_glfuncs, const GLfloat* v);
+void gl1_1_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl1_1_glColor3dv(void *_glfuncs, const GLdouble* v);
+void gl1_1_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl1_1_glColor3bv(void *_glfuncs, const GLbyte* v);
+void gl1_1_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl1_1_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap);
+void gl1_1_glBegin(void *_glfuncs, GLenum mode);
+void gl1_1_glListBase(void *_glfuncs, GLuint base);
+GLuint gl1_1_glGenLists(void *_glfuncs, GLsizei range_);
+void gl1_1_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_);
+void gl1_1_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists);
+void gl1_1_glCallList(void *_glfuncs, GLuint list);
+void gl1_1_glEndList(void *_glfuncs);
+void gl1_1_glNewList(void *_glfuncs, GLuint list, GLenum mode);
+void gl1_1_glPushClientAttrib(void *_glfuncs, GLbitfield mask);
+void gl1_1_glPopClientAttrib(void *_glfuncs);
+void gl1_1_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities);
+GLboolean gl1_1_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences);
+void gl1_1_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_1_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_1_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_1_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer);
+void gl1_1_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_1_glEnableClientState(void *_glfuncs, GLenum array);
+void gl1_1_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer);
+void gl1_1_glDisableClientState(void *_glfuncs, GLenum array);
+void gl1_1_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_1_glArrayElement(void *_glfuncs, GLint i);
+
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.1/gl.go b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.1/gl.go
new file mode 100644
index 000000000..268e1c083
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.1/gl.go
@@ -0,0 +1,2789 @@
+// ** file automatically generated by glgen -- do not edit manually **
+
+package GL
+
+// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
+// #cgo LDFLAGS: -lstdc++
+// #cgo pkg-config: Qt5Core Qt5OpenGL
+//
+// #include "funcs.h"
+//
+// void free(void*);
+//
+import "C"
+
+import (
+ "fmt"
+ "reflect"
+ "unsafe"
+
+ "gopkg.in/qml.v1/gl/glbase"
+)
+
+// API returns a value that offers methods matching the OpenGL version 1.1 API.
+//
+// The returned API must not be used after the provided OpenGL context becomes invalid.
+func API(context glbase.Contexter) *GL {
+ gl := &GL{}
+ gl.funcs = C.gl1_1_funcs()
+ if gl.funcs == nil {
+ panic(fmt.Errorf("OpenGL version 1.1 is not available"))
+ }
+ return gl
+}
+
+// GL implements the OpenGL version 1.1 API. Values of this
+// type must be created via the API function, and it must not be used after
+// the associated OpenGL context becomes invalid.
+type GL struct {
+ funcs unsafe.Pointer
+}
+
+const (
+ FALSE = 0
+ TRUE = 1
+ NONE = 0
+
+ BYTE = 0x1400
+ UNSIGNED_BYTE = 0x1401
+ SHORT = 0x1402
+ UNSIGNED_SHORT = 0x1403
+ INT = 0x1404
+ UNSIGNED_INT = 0x1405
+ FLOAT = 0x1406
+ N2_BYTES = 0x1407
+ N3_BYTES = 0x1408
+ N4_BYTES = 0x1409
+ DOUBLE = 0x140A
+
+ ACCUM = 0x0100
+ LOAD = 0x0101
+ RETURN = 0x0102
+ MULT = 0x0103
+ ADD = 0x0104
+
+ ACCUM_BUFFER_BIT = 0x00000200
+ ALL_ATTRIB_BITS = 0xFFFFFFFF
+ COLOR_BUFFER_BIT = 0x00004000
+ CURRENT_BIT = 0x00000001
+ DEPTH_BUFFER_BIT = 0x00000100
+ ENABLE_BIT = 0x00002000
+ EVAL_BIT = 0x00010000
+ FOG_BIT = 0x00000080
+ HINT_BIT = 0x00008000
+ LIGHTING_BIT = 0x00000040
+ LINE_BIT = 0x00000004
+ LIST_BIT = 0x00020000
+ PIXEL_MODE_BIT = 0x00000020
+ POINT_BIT = 0x00000002
+ POLYGON_BIT = 0x00000008
+ POLYGON_STIPPLE_BIT = 0x00000010
+ SCISSOR_BIT = 0x00080000
+ STENCIL_BUFFER_BIT = 0x00000400
+ TEXTURE_BIT = 0x00040000
+ TRANSFORM_BIT = 0x00001000
+ VIEWPORT_BIT = 0x00000800
+
+ ALWAYS = 0x0207
+ EQUAL = 0x0202
+ GEQUAL = 0x0206
+ GREATER = 0x0204
+ LEQUAL = 0x0203
+ LESS = 0x0201
+ NEVER = 0x0200
+ NOTEQUAL = 0x0205
+
+ LOGIC_OP = 0x0BF1
+
+ DST_ALPHA = 0x0304
+ ONE = 1
+ ONE_MINUS_DST_ALPHA = 0x0305
+ ONE_MINUS_SRC_ALPHA = 0x0303
+ ONE_MINUS_SRC_COLOR = 0x0301
+ SRC_ALPHA = 0x0302
+ SRC_COLOR = 0x0300
+ ZERO = 0
+
+ DST_COLOR = 0x0306
+ ONE_MINUS_DST_COLOR = 0x0307
+ SRC_ALPHA_SATURATE = 0x0308
+
+ CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF
+ CLIENT_PIXEL_STORE_BIT = 0x00000001
+ CLIENT_VERTEX_ARRAY_BIT = 0x00000002
+
+ CLIP_PLANE0 = 0x3000
+ CLIP_PLANE1 = 0x3001
+ CLIP_PLANE2 = 0x3002
+ CLIP_PLANE3 = 0x3003
+ CLIP_PLANE4 = 0x3004
+ CLIP_PLANE5 = 0x3005
+
+ BACK = 0x0405
+ FRONT = 0x0404
+ FRONT_AND_BACK = 0x0408
+
+ AMBIENT = 0x1200
+ AMBIENT_AND_DIFFUSE = 0x1602
+ DIFFUSE = 0x1201
+ EMISSION = 0x1600
+ SPECULAR = 0x1202
+
+ AUX0 = 0x0409
+ AUX1 = 0x040A
+ AUX2 = 0x040B
+ AUX3 = 0x040C
+ BACK_LEFT = 0x0402
+ BACK_RIGHT = 0x0403
+ FRONT_LEFT = 0x0400
+ FRONT_RIGHT = 0x0401
+ LEFT = 0x0406
+ RIGHT = 0x0407
+
+ ALPHA_TEST = 0x0BC0
+ AUTO_NORMAL = 0x0D80
+ BLEND = 0x0BE2
+ COLOR_ARRAY = 0x8076
+ COLOR_LOGIC_OP = 0x0BF2
+ COLOR_MATERIAL = 0x0B57
+ CULL_FACE = 0x0B44
+ DEPTH_TEST = 0x0B71
+ DITHER = 0x0BD0
+ EDGE_FLAG_ARRAY = 0x8079
+ FOG = 0x0B60
+ INDEX_ARRAY = 0x8077
+ INDEX_LOGIC_OP = 0x0BF1
+ LIGHT0 = 0x4000
+ LIGHT1 = 0x4001
+ LIGHT2 = 0x4002
+ LIGHT3 = 0x4003
+ LIGHT4 = 0x4004
+ LIGHT5 = 0x4005
+ LIGHT6 = 0x4006
+ LIGHT7 = 0x4007
+ LIGHTING = 0x0B50
+ LINE_SMOOTH = 0x0B20
+ LINE_STIPPLE = 0x0B24
+ MAP1_COLOR_4 = 0x0D90
+ MAP1_INDEX = 0x0D91
+ MAP1_NORMAL = 0x0D92
+ MAP1_TEXTURE_COORD_1 = 0x0D93
+ MAP1_TEXTURE_COORD_2 = 0x0D94
+ MAP1_TEXTURE_COORD_3 = 0x0D95
+ MAP1_TEXTURE_COORD_4 = 0x0D96
+ MAP1_VERTEX_3 = 0x0D97
+ MAP1_VERTEX_4 = 0x0D98
+ MAP2_COLOR_4 = 0x0DB0
+ MAP2_INDEX = 0x0DB1
+ MAP2_NORMAL = 0x0DB2
+ MAP2_TEXTURE_COORD_1 = 0x0DB3
+ MAP2_TEXTURE_COORD_2 = 0x0DB4
+ MAP2_TEXTURE_COORD_3 = 0x0DB5
+ MAP2_TEXTURE_COORD_4 = 0x0DB6
+ MAP2_VERTEX_3 = 0x0DB7
+ MAP2_VERTEX_4 = 0x0DB8
+ NORMALIZE = 0x0BA1
+ NORMAL_ARRAY = 0x8075
+ POINT_SMOOTH = 0x0B10
+ POLYGON_OFFSET_FILL = 0x8037
+ POLYGON_OFFSET_LINE = 0x2A02
+ POLYGON_OFFSET_POINT = 0x2A01
+ POLYGON_SMOOTH = 0x0B41
+ POLYGON_STIPPLE = 0x0B42
+ SCISSOR_TEST = 0x0C11
+ STENCIL_TEST = 0x0B90
+ TEXTURE_1D = 0x0DE0
+ TEXTURE_2D = 0x0DE1
+ TEXTURE_COORD_ARRAY = 0x8078
+ TEXTURE_GEN_Q = 0x0C63
+ TEXTURE_GEN_R = 0x0C62
+ TEXTURE_GEN_S = 0x0C60
+ TEXTURE_GEN_T = 0x0C61
+ VERTEX_ARRAY = 0x8074
+
+ INVALID_ENUM = 0x0500
+ INVALID_OPERATION = 0x0502
+ INVALID_VALUE = 0x0501
+ NO_ERROR = 0
+ OUT_OF_MEMORY = 0x0505
+ STACK_OVERFLOW = 0x0503
+ STACK_UNDERFLOW = 0x0504
+
+ N2D = 0x0600
+ N3D = 0x0601
+ N3D_COLOR = 0x0602
+ N3D_COLOR_TEXTURE = 0x0603
+ N4D_COLOR_TEXTURE = 0x0604
+
+ BITMAP_TOKEN = 0x0704
+ COPY_PIXEL_TOKEN = 0x0706
+ DRAW_PIXEL_TOKEN = 0x0705
+ LINE_RESET_TOKEN = 0x0707
+ LINE_TOKEN = 0x0702
+ PASS_THROUGH_TOKEN = 0x0700
+ POINT_TOKEN = 0x0701
+ POLYGON_TOKEN = 0x0703
+
+ EXP = 0x0800
+ EXP2 = 0x0801
+ LINEAR = 0x2601
+
+ FOG_COLOR = 0x0B66
+ FOG_DENSITY = 0x0B62
+ FOG_END = 0x0B64
+ FOG_INDEX = 0x0B61
+ FOG_MODE = 0x0B65
+ FOG_START = 0x0B63
+
+ CCW = 0x0901
+ CW = 0x0900
+
+ COEFF = 0x0A00
+ DOMAIN = 0x0A02
+ ORDER = 0x0A01
+
+ PIXEL_MAP_A_TO_A = 0x0C79
+ PIXEL_MAP_B_TO_B = 0x0C78
+ PIXEL_MAP_G_TO_G = 0x0C77
+ PIXEL_MAP_I_TO_A = 0x0C75
+ PIXEL_MAP_I_TO_B = 0x0C74
+ PIXEL_MAP_I_TO_G = 0x0C73
+ PIXEL_MAP_I_TO_I = 0x0C70
+ PIXEL_MAP_I_TO_R = 0x0C72
+ PIXEL_MAP_R_TO_R = 0x0C76
+ PIXEL_MAP_S_TO_S = 0x0C71
+
+ ACCUM_ALPHA_BITS = 0x0D5B
+ ACCUM_BLUE_BITS = 0x0D5A
+ ACCUM_CLEAR_VALUE = 0x0B80
+ ACCUM_GREEN_BITS = 0x0D59
+ ACCUM_RED_BITS = 0x0D58
+ ALPHA_BIAS = 0x0D1D
+ ALPHA_BITS = 0x0D55
+ ALPHA_SCALE = 0x0D1C
+ ALPHA_TEST_FUNC = 0x0BC1
+ ALPHA_TEST_REF = 0x0BC2
+ ATTRIB_STACK_DEPTH = 0x0BB0
+ AUX_BUFFERS = 0x0C00
+ BLEND_DST = 0x0BE0
+ BLEND_SRC = 0x0BE1
+ BLUE_BIAS = 0x0D1B
+ BLUE_BITS = 0x0D54
+ BLUE_SCALE = 0x0D1A
+ CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1
+ COLOR_ARRAY_SIZE = 0x8081
+ COLOR_ARRAY_STRIDE = 0x8083
+ COLOR_ARRAY_TYPE = 0x8082
+ COLOR_CLEAR_VALUE = 0x0C22
+ COLOR_MATERIAL_FACE = 0x0B55
+ COLOR_MATERIAL_PARAMETER = 0x0B56
+ COLOR_WRITEMASK = 0x0C23
+ CULL_FACE_MODE = 0x0B45
+ CURRENT_COLOR = 0x0B00
+ CURRENT_INDEX = 0x0B01
+ CURRENT_NORMAL = 0x0B02
+ CURRENT_RASTER_COLOR = 0x0B04
+ CURRENT_RASTER_DISTANCE = 0x0B09
+ CURRENT_RASTER_INDEX = 0x0B05
+ CURRENT_RASTER_POSITION = 0x0B07
+ CURRENT_RASTER_POSITION_VALID = 0x0B08
+ CURRENT_RASTER_TEXTURE_COORDS = 0x0B06
+ CURRENT_TEXTURE_COORDS = 0x0B03
+ DEPTH_BIAS = 0x0D1F
+ DEPTH_BITS = 0x0D56
+ DEPTH_CLEAR_VALUE = 0x0B73
+ DEPTH_FUNC = 0x0B74
+ DEPTH_RANGE = 0x0B70
+ DEPTH_SCALE = 0x0D1E
+ DEPTH_WRITEMASK = 0x0B72
+ DOUBLEBUFFER = 0x0C32
+ DRAW_BUFFER = 0x0C01
+ EDGE_FLAG = 0x0B43
+ EDGE_FLAG_ARRAY_STRIDE = 0x808C
+ FEEDBACK_BUFFER_SIZE = 0x0DF1
+ FEEDBACK_BUFFER_TYPE = 0x0DF2
+ FOG_HINT = 0x0C54
+ FRONT_FACE = 0x0B46
+ GREEN_BIAS = 0x0D19
+ GREEN_BITS = 0x0D53
+ GREEN_SCALE = 0x0D18
+ INDEX_ARRAY_STRIDE = 0x8086
+ INDEX_ARRAY_TYPE = 0x8085
+ INDEX_BITS = 0x0D51
+ INDEX_CLEAR_VALUE = 0x0C20
+ INDEX_MODE = 0x0C30
+ INDEX_OFFSET = 0x0D13
+ INDEX_SHIFT = 0x0D12
+ INDEX_WRITEMASK = 0x0C21
+ LIGHT_MODEL_AMBIENT = 0x0B53
+ LIGHT_MODEL_LOCAL_VIEWER = 0x0B51
+ LIGHT_MODEL_TWO_SIDE = 0x0B52
+ LINE_SMOOTH_HINT = 0x0C52
+ LINE_STIPPLE_PATTERN = 0x0B25
+ LINE_STIPPLE_REPEAT = 0x0B26
+ LINE_WIDTH = 0x0B21
+ LINE_WIDTH_GRANULARITY = 0x0B23
+ LINE_WIDTH_RANGE = 0x0B22
+ LIST_BASE = 0x0B32
+ LIST_INDEX = 0x0B33
+ LIST_MODE = 0x0B30
+ LOGIC_OP_MODE = 0x0BF0
+ MAP1_GRID_DOMAIN = 0x0DD0
+ MAP1_GRID_SEGMENTS = 0x0DD1
+ MAP2_GRID_DOMAIN = 0x0DD2
+ MAP2_GRID_SEGMENTS = 0x0DD3
+ MAP_COLOR = 0x0D10
+ MAP_STENCIL = 0x0D11
+ MATRIX_MODE = 0x0BA0
+ MAX_ATTRIB_STACK_DEPTH = 0x0D35
+ MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B
+ MAX_CLIP_PLANES = 0x0D32
+ MAX_EVAL_ORDER = 0x0D30
+ MAX_LIGHTS = 0x0D31
+ MAX_LIST_NESTING = 0x0B31
+ MAX_MODELVIEW_STACK_DEPTH = 0x0D36
+ MAX_NAME_STACK_DEPTH = 0x0D37
+ MAX_PIXEL_MAP_TABLE = 0x0D34
+ MAX_PROJECTION_STACK_DEPTH = 0x0D38
+ MAX_TEXTURE_SIZE = 0x0D33
+ MAX_TEXTURE_STACK_DEPTH = 0x0D39
+ MAX_VIEWPORT_DIMS = 0x0D3A
+ MODELVIEW_MATRIX = 0x0BA6
+ MODELVIEW_STACK_DEPTH = 0x0BA3
+ NAME_STACK_DEPTH = 0x0D70
+ NORMAL_ARRAY_STRIDE = 0x807F
+ NORMAL_ARRAY_TYPE = 0x807E
+ PACK_ALIGNMENT = 0x0D05
+ PACK_LSB_FIRST = 0x0D01
+ PACK_ROW_LENGTH = 0x0D02
+ PACK_SKIP_PIXELS = 0x0D04
+ PACK_SKIP_ROWS = 0x0D03
+ PACK_SWAP_BYTES = 0x0D00
+ PERSPECTIVE_CORRECTION_HINT = 0x0C50
+ PIXEL_MAP_A_TO_A_SIZE = 0x0CB9
+ PIXEL_MAP_B_TO_B_SIZE = 0x0CB8
+ PIXEL_MAP_G_TO_G_SIZE = 0x0CB7
+ PIXEL_MAP_I_TO_A_SIZE = 0x0CB5
+ PIXEL_MAP_I_TO_B_SIZE = 0x0CB4
+ PIXEL_MAP_I_TO_G_SIZE = 0x0CB3
+ PIXEL_MAP_I_TO_I_SIZE = 0x0CB0
+ PIXEL_MAP_I_TO_R_SIZE = 0x0CB2
+ PIXEL_MAP_R_TO_R_SIZE = 0x0CB6
+ PIXEL_MAP_S_TO_S_SIZE = 0x0CB1
+ POINT_SIZE = 0x0B11
+ POINT_SIZE_GRANULARITY = 0x0B13
+ POINT_SIZE_RANGE = 0x0B12
+ POINT_SMOOTH_HINT = 0x0C51
+ POLYGON_MODE = 0x0B40
+ POLYGON_OFFSET_FACTOR = 0x8038
+ POLYGON_OFFSET_UNITS = 0x2A00
+ POLYGON_SMOOTH_HINT = 0x0C53
+ PROJECTION_MATRIX = 0x0BA7
+ PROJECTION_STACK_DEPTH = 0x0BA4
+ READ_BUFFER = 0x0C02
+ RED_BIAS = 0x0D15
+ RED_BITS = 0x0D52
+ RED_SCALE = 0x0D14
+ RENDER_MODE = 0x0C40
+ RGBA_MODE = 0x0C31
+ SCISSOR_BOX = 0x0C10
+ SELECTION_BUFFER_SIZE = 0x0DF4
+ SHADE_MODEL = 0x0B54
+ STENCIL_BITS = 0x0D57
+ STENCIL_CLEAR_VALUE = 0x0B91
+ STENCIL_FAIL = 0x0B94
+ STENCIL_FUNC = 0x0B92
+ STENCIL_PASS_DEPTH_FAIL = 0x0B95
+ STENCIL_PASS_DEPTH_PASS = 0x0B96
+ STENCIL_REF = 0x0B97
+ STENCIL_VALUE_MASK = 0x0B93
+ STENCIL_WRITEMASK = 0x0B98
+ STEREO = 0x0C33
+ SUBPIXEL_BITS = 0x0D50
+ TEXTURE_BINDING_1D = 0x8068
+ TEXTURE_BINDING_2D = 0x8069
+ TEXTURE_COORD_ARRAY_SIZE = 0x8088
+ TEXTURE_COORD_ARRAY_STRIDE = 0x808A
+ TEXTURE_COORD_ARRAY_TYPE = 0x8089
+ TEXTURE_MATRIX = 0x0BA8
+ TEXTURE_STACK_DEPTH = 0x0BA5
+ UNPACK_ALIGNMENT = 0x0CF5
+ UNPACK_LSB_FIRST = 0x0CF1
+ UNPACK_ROW_LENGTH = 0x0CF2
+ UNPACK_SKIP_PIXELS = 0x0CF4
+ UNPACK_SKIP_ROWS = 0x0CF3
+ UNPACK_SWAP_BYTES = 0x0CF0
+ VERTEX_ARRAY_SIZE = 0x807A
+ VERTEX_ARRAY_STRIDE = 0x807C
+ VERTEX_ARRAY_TYPE = 0x807B
+ VIEWPORT = 0x0BA2
+ ZOOM_X = 0x0D16
+ ZOOM_Y = 0x0D17
+
+ COLOR_ARRAY_POINTER = 0x8090
+ EDGE_FLAG_ARRAY_POINTER = 0x8093
+ FEEDBACK_BUFFER_POINTER = 0x0DF0
+ INDEX_ARRAY_POINTER = 0x8091
+ NORMAL_ARRAY_POINTER = 0x808F
+ SELECTION_BUFFER_POINTER = 0x0DF3
+ TEXTURE_COORD_ARRAY_POINTER = 0x8092
+ VERTEX_ARRAY_POINTER = 0x808E
+
+ TEXTURE_ALPHA_SIZE = 0x805F
+ TEXTURE_BLUE_SIZE = 0x805E
+ TEXTURE_BORDER = 0x1005
+ TEXTURE_BORDER_COLOR = 0x1004
+ TEXTURE_COMPONENTS = 0x1003
+ TEXTURE_GREEN_SIZE = 0x805D
+ TEXTURE_HEIGHT = 0x1001
+ TEXTURE_INTENSITY_SIZE = 0x8061
+ TEXTURE_INTERNAL_FORMAT = 0x1003
+ TEXTURE_LUMINANCE_SIZE = 0x8060
+ TEXTURE_MAG_FILTER = 0x2800
+ TEXTURE_MIN_FILTER = 0x2801
+ TEXTURE_PRIORITY = 0x8066
+ TEXTURE_RED_SIZE = 0x805C
+ TEXTURE_RESIDENT = 0x8067
+ TEXTURE_WIDTH = 0x1000
+ TEXTURE_WRAP_S = 0x2802
+ TEXTURE_WRAP_T = 0x2803
+
+ DONT_CARE = 0x1100
+ FASTEST = 0x1101
+ NICEST = 0x1102
+
+ C3F_V3F = 0x2A24
+ C4F_N3F_V3F = 0x2A26
+ C4UB_V2F = 0x2A22
+ C4UB_V3F = 0x2A23
+ N3F_V3F = 0x2A25
+ T2F_C3F_V3F = 0x2A2A
+ T2F_C4F_N3F_V3F = 0x2A2C
+ T2F_C4UB_V3F = 0x2A29
+ T2F_N3F_V3F = 0x2A2B
+ T2F_V3F = 0x2A27
+ T4F_C4F_N3F_V4F = 0x2A2D
+ T4F_V4F = 0x2A28
+ V2F = 0x2A20
+ V3F = 0x2A21
+
+ MODULATE = 0x2100
+ REPLACE = 0x1E01
+
+ CONSTANT_ATTENUATION = 0x1207
+ LINEAR_ATTENUATION = 0x1208
+ POSITION = 0x1203
+ QUADRATIC_ATTENUATION = 0x1209
+ SPOT_CUTOFF = 0x1206
+ SPOT_DIRECTION = 0x1204
+ SPOT_EXPONENT = 0x1205
+
+ COMPILE = 0x1300
+ COMPILE_AND_EXECUTE = 0x1301
+
+ AND = 0x1501
+ AND_INVERTED = 0x1504
+ AND_REVERSE = 0x1502
+ CLEAR = 0x1500
+ COPY = 0x1503
+ COPY_INVERTED = 0x150C
+ EQUIV = 0x1509
+ INVERT = 0x150A
+ NAND = 0x150E
+ NOOP = 0x1505
+ NOR = 0x1508
+ OR = 0x1507
+ OR_INVERTED = 0x150D
+ OR_REVERSE = 0x150B
+ SET = 0x150F
+ XOR = 0x1506
+
+ COLOR_INDEXES = 0x1603
+ SHININESS = 0x1601
+
+ MODELVIEW = 0x1700
+ PROJECTION = 0x1701
+ TEXTURE = 0x1702
+
+ LINE = 0x1B01
+ POINT = 0x1B00
+
+ FILL = 0x1B02
+
+ COLOR = 0x1800
+ DEPTH = 0x1801
+ STENCIL = 0x1802
+
+ ALPHA = 0x1906
+ BLUE = 0x1905
+ COLOR_INDEX = 0x1900
+ DEPTH_COMPONENT = 0x1902
+ GREEN = 0x1904
+ LUMINANCE = 0x1909
+ LUMINANCE_ALPHA = 0x190A
+ RED = 0x1903
+ RGB = 0x1907
+ RGBA = 0x1908
+ STENCIL_INDEX = 0x1901
+
+ ALPHA12 = 0x803D
+ ALPHA16 = 0x803E
+ ALPHA4 = 0x803B
+ ALPHA8 = 0x803C
+ INTENSITY = 0x8049
+ INTENSITY12 = 0x804C
+ INTENSITY16 = 0x804D
+ INTENSITY4 = 0x804A
+ INTENSITY8 = 0x804B
+ LUMINANCE12 = 0x8041
+ LUMINANCE12_ALPHA12 = 0x8047
+ LUMINANCE12_ALPHA4 = 0x8046
+ LUMINANCE16 = 0x8042
+ LUMINANCE16_ALPHA16 = 0x8048
+ LUMINANCE4 = 0x803F
+ LUMINANCE4_ALPHA4 = 0x8043
+ LUMINANCE6_ALPHA2 = 0x8044
+ LUMINANCE8 = 0x8040
+ LUMINANCE8_ALPHA8 = 0x8045
+ R3_G3_B2 = 0x2A10
+ RGB10 = 0x8052
+ RGB10_A2 = 0x8059
+ RGB12 = 0x8053
+ RGB16 = 0x8054
+ RGB4 = 0x804F
+ RGB5 = 0x8050
+ RGB5_A1 = 0x8057
+ RGB8 = 0x8051
+ RGBA12 = 0x805A
+ RGBA16 = 0x805B
+ RGBA2 = 0x8055
+ RGBA4 = 0x8056
+ RGBA8 = 0x8058
+
+ BITMAP = 0x1A00
+
+ LINES = 0x0001
+ LINE_LOOP = 0x0002
+ LINE_STRIP = 0x0003
+ POINTS = 0x0000
+ POLYGON = 0x0009
+ QUADS = 0x0007
+ QUAD_STRIP = 0x0008
+ TRIANGLES = 0x0004
+ TRIANGLE_FAN = 0x0006
+ TRIANGLE_STRIP = 0x0005
+
+ FEEDBACK = 0x1C01
+ RENDER = 0x1C00
+ SELECT = 0x1C02
+
+ FLAT = 0x1D00
+ SMOOTH = 0x1D01
+
+ DECR = 0x1E03
+ INCR = 0x1E02
+ KEEP = 0x1E00
+
+ EXTENSIONS = 0x1F03
+ RENDERER = 0x1F01
+ VENDOR = 0x1F00
+ VERSION = 0x1F02
+
+ S = 0x2000
+ T = 0x2001
+ R = 0x2002
+ Q = 0x2003
+
+ DECAL = 0x2101
+
+ TEXTURE_ENV_COLOR = 0x2201
+ TEXTURE_ENV_MODE = 0x2200
+
+ TEXTURE_ENV = 0x2300
+
+ EYE_LINEAR = 0x2400
+ OBJECT_LINEAR = 0x2401
+ SPHERE_MAP = 0x2402
+
+ EYE_PLANE = 0x2502
+ OBJECT_PLANE = 0x2501
+ TEXTURE_GEN_MODE = 0x2500
+
+ NEAREST = 0x2600
+
+ LINEAR_MIPMAP_LINEAR = 0x2703
+ LINEAR_MIPMAP_NEAREST = 0x2701
+ NEAREST_MIPMAP_LINEAR = 0x2702
+ NEAREST_MIPMAP_NEAREST = 0x2700
+
+ PROXY_TEXTURE_1D = 0x8063
+ PROXY_TEXTURE_2D = 0x8064
+
+ CLAMP = 0x2900
+ REPEAT = 0x2901
+)
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glViewport.xml
+func (gl *GL) Viewport(x, y, width, height int) {
+ C.gl1_1_glViewport(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// DepthRange specifies the mapping of depth values from normalized device
+// coordinates to window coordinates.
+//
+// Parameter nearVal specifies the mapping of the near clipping plane to window
+// coordinates (defaults to 0), while farVal specifies the mapping of the far
+// clipping plane to window coordinates (defaults to 1).
+//
+// After clipping and division by w, depth coordinates range from -1 to 1,
+// corresponding to the near and far clipping planes. DepthRange specifies a
+// linear mapping of the normalized depth coordinates in this range to window
+// depth coordinates. Regardless of the actual depth buffer implementation,
+// window coordinate depth values are treated as though they range from 0 through 1
+// (like color components). Thus, the values accepted by DepthRange are both
+// clamped to this range before they are accepted.
+//
+// The default setting of (0, 1) maps the near plane to 0 and the far plane to 1.
+// With this mapping, the depth buffer range is fully utilized.
+//
+// It is not necessary that nearVal be less than farVal. Reverse mappings such as
+// nearVal 1, and farVal 0 are acceptable.
+//
+// GL.INVALID_OPERATION is generated if DepthRange is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) DepthRange(nearVal, farVal float64) {
+ C.gl1_1_glDepthRange(gl.funcs, C.GLdouble(nearVal), C.GLdouble(farVal))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsEnabled.xml
+func (gl *GL) IsEnabled(cap glbase.Enum) bool {
+ glresult := C.gl1_1_glIsEnabled(gl.funcs, C.GLenum(cap))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameteriv.xml
+func (gl *GL) GetTexLevelParameteriv(target glbase.Enum, level int, pname glbase.Enum, params []int32) {
+ C.gl1_1_glGetTexLevelParameteriv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameterfv.xml
+func (gl *GL) GetTexLevelParameterfv(target glbase.Enum, level int, pname glbase.Enum, params []float32) {
+ C.gl1_1_glGetTexLevelParameterfv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameteriv.xml
+func (gl *GL) GetTexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_1_glGetTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameterfv.xml
+func (gl *GL) GetTexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_1_glGetTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexImage.xml
+func (gl *GL) GetTexImage(target glbase.Enum, level int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glGetTexImage(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetIntegerv.xml
+func (gl *GL) GetIntegerv(pname glbase.Enum, params []int32) {
+ C.gl1_1_glGetIntegerv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetFloatv.xml
+func (gl *GL) GetFloatv(pname glbase.Enum, params []float32) {
+ C.gl1_1_glGetFloatv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetError.xml
+func (gl *GL) GetError() glbase.Enum {
+ glresult := C.gl1_1_glGetError(gl.funcs)
+ return glbase.Enum(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetDoublev.xml
+func (gl *GL) GetDoublev(pname glbase.Enum, params []float64) {
+ C.gl1_1_glGetDoublev(gl.funcs, C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetBooleanv.xml
+func (gl *GL) GetBooleanv(pname glbase.Enum, params []bool) {
+ C.gl1_1_glGetBooleanv(gl.funcs, C.GLenum(pname), (*C.GLboolean)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadPixels.xml
+func (gl *GL) ReadPixels(x, y, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glReadPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadBuffer.xml
+func (gl *GL) ReadBuffer(mode glbase.Enum) {
+ C.gl1_1_glReadBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStorei.xml
+func (gl *GL) PixelStorei(pname glbase.Enum, param int32) {
+ C.gl1_1_glPixelStorei(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStoref.xml
+func (gl *GL) PixelStoref(pname glbase.Enum, param float32) {
+ C.gl1_1_glPixelStoref(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthFunc.xml
+func (gl *GL) DepthFunc(glfunc glbase.Enum) {
+ C.gl1_1_glDepthFunc(gl.funcs, C.GLenum(glfunc))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilOp.xml
+func (gl *GL) StencilOp(fail, zfail, zpass glbase.Enum) {
+ C.gl1_1_glStencilOp(gl.funcs, C.GLenum(fail), C.GLenum(zfail), C.GLenum(zpass))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilFunc.xml
+func (gl *GL) StencilFunc(glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl1_1_glStencilFunc(gl.funcs, C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLogicOp.xml
+func (gl *GL) LogicOp(opcode glbase.Enum) {
+ C.gl1_1_glLogicOp(gl.funcs, C.GLenum(opcode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendFunc.xml
+func (gl *GL) BlendFunc(sfactor, dfactor glbase.Enum) {
+ C.gl1_1_glBlendFunc(gl.funcs, C.GLenum(sfactor), C.GLenum(dfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFlush.xml
+func (gl *GL) Flush() {
+ C.gl1_1_glFlush(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFinish.xml
+func (gl *GL) Finish() {
+ C.gl1_1_glFinish(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnable.xml
+func (gl *GL) Enable(cap glbase.Enum) {
+ C.gl1_1_glEnable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisable.xml
+func (gl *GL) Disable(cap glbase.Enum) {
+ C.gl1_1_glDisable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthMask.xml
+func (gl *GL) DepthMask(flag bool) {
+ C.gl1_1_glDepthMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMask.xml
+func (gl *GL) ColorMask(red, green, blue, alpha bool) {
+ C.gl1_1_glColorMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&red)), *(*C.GLboolean)(unsafe.Pointer(&green)), *(*C.GLboolean)(unsafe.Pointer(&blue)), *(*C.GLboolean)(unsafe.Pointer(&alpha)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilMask.xml
+func (gl *GL) StencilMask(mask uint32) {
+ C.gl1_1_glStencilMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearDepth.xml
+func (gl *GL) ClearDepth(depth float64) {
+ C.gl1_1_glClearDepth(gl.funcs, C.GLdouble(depth))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearStencil.xml
+func (gl *GL) ClearStencil(s int32) {
+ C.gl1_1_glClearStencil(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearColor.xml
+func (gl *GL) ClearColor(red, green, blue, alpha float32) {
+ C.gl1_1_glClearColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClear.xml
+func (gl *GL) Clear(mask glbase.Bitfield) {
+ C.gl1_1_glClear(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawBuffer.xml
+func (gl *GL) DrawBuffer(mode glbase.Enum) {
+ C.gl1_1_glDrawBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml
+func (gl *GL) TexImage2D(target glbase.Enum, level int, internalFormat int32, width, height, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage1D.xml
+func (gl *GL) TexImage1D(target glbase.Enum, level int, internalFormat int32, width, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteriv.xml
+func (gl *GL) TexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_1_glTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteri.xml
+func (gl *GL) TexParameteri(target, pname glbase.Enum, param int32) {
+ C.gl1_1_glTexParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterfv.xml
+func (gl *GL) TexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_1_glTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterf.xml
+func (gl *GL) TexParameterf(target, pname glbase.Enum, param float32) {
+ C.gl1_1_glTexParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScissor.xml
+func (gl *GL) Scissor(x, y, width, height int) {
+ C.gl1_1_glScissor(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonMode.xml
+func (gl *GL) PolygonMode(face, mode glbase.Enum) {
+ C.gl1_1_glPolygonMode(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointSize.xml
+func (gl *GL) PointSize(size float32) {
+ C.gl1_1_glPointSize(gl.funcs, C.GLfloat(size))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineWidth.xml
+func (gl *GL) LineWidth(width float32) {
+ C.gl1_1_glLineWidth(gl.funcs, C.GLfloat(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glHint.xml
+func (gl *GL) Hint(target, mode glbase.Enum) {
+ C.gl1_1_glHint(gl.funcs, C.GLenum(target), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrontFace.xml
+func (gl *GL) FrontFace(mode glbase.Enum) {
+ C.gl1_1_glFrontFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCullFace.xml
+func (gl *GL) CullFace(mode glbase.Enum) {
+ C.gl1_1_glCullFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexubv.xml
+func (gl *GL) Indexubv(c []uint8) {
+ C.gl1_1_glIndexubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexub.xml
+func (gl *GL) Indexub(c uint8) {
+ C.gl1_1_glIndexub(gl.funcs, C.GLubyte(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsTexture.xml
+func (gl *GL) IsTexture(texture glbase.Texture) bool {
+ glresult := C.gl1_1_glIsTexture(gl.funcs, C.GLuint(texture))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenTextures returns n texture names in textures. There is no guarantee
+// that the names form a contiguous set of integers; however, it is
+// guaranteed that none of the returned names was in use immediately before
+// the call to GenTextures.
+//
+// The generated textures have no dimensionality; they assume the
+// dimensionality of the texture target to which they are first bound (see
+// BindTexture).
+//
+// Texture names returned by a call to GenTextures are not returned by
+// subsequent calls, unless they are first deleted with DeleteTextures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// GenTextures is available in GL version 2.0 or greater.
+func (gl *GL) GenTextures(n int) []glbase.Texture {
+ if n == 0 {
+ return nil
+ }
+ textures := make([]glbase.Texture, n)
+ C.gl1_1_glGenTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+ return textures
+}
+
+// DeleteTextures deletes the textures objects whose names are stored
+// in the textures slice. After a texture is deleted, it has no contents or
+// dimensionality, and its name is free for reuse (for example by
+// GenTextures). If a texture that is currently bound is deleted, the binding
+// reverts to 0 (the default texture).
+//
+// DeleteTextures silently ignores 0's and names that do not correspond to
+// existing textures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// DeleteTextures is available in GL version 2.0 or greater.
+func (gl *GL) DeleteTextures(textures []glbase.Texture) {
+ n := len(textures)
+ if n == 0 {
+ return
+ }
+ C.gl1_1_glDeleteTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBindTexture.xml
+func (gl *GL) BindTexture(target glbase.Enum, texture glbase.Texture) {
+ C.gl1_1_glBindTexture(gl.funcs, C.GLenum(target), C.GLuint(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage2D.xml
+func (gl *GL) TexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage1D.xml
+func (gl *GL) TexSubImage1D(target glbase.Enum, level, xoffset, width int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage2D.xml
+func (gl *GL) CopyTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, x, y, width, height int) {
+ C.gl1_1_glCopyTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage1D.xml
+func (gl *GL) CopyTexSubImage1D(target glbase.Enum, level, xoffset, x, y, width int) {
+ C.gl1_1_glCopyTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage2D.xml
+func (gl *GL) CopyTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, height, border int) {
+ C.gl1_1_glCopyTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage1D.xml
+func (gl *GL) CopyTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, border int) {
+ C.gl1_1_glCopyTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonOffset.xml
+func (gl *GL) PolygonOffset(factor, units float32) {
+ C.gl1_1_glPolygonOffset(gl.funcs, C.GLfloat(factor), C.GLfloat(units))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawElements.xml
+func (gl *GL) DrawElements(mode glbase.Enum, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glDrawElements(gl.funcs, C.GLenum(mode), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawArrays.xml
+func (gl *GL) DrawArrays(mode glbase.Enum, first, count int) {
+ C.gl1_1_glDrawArrays(gl.funcs, C.GLenum(mode), C.GLint(first), C.GLsizei(count))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslatef.xml
+func (gl *GL) Translatef(x, y, z float32) {
+ C.gl1_1_glTranslatef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslated.xml
+func (gl *GL) Translated(x, y, z float64) {
+ C.gl1_1_glTranslated(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScalef.xml
+func (gl *GL) Scalef(x, y, z float32) {
+ C.gl1_1_glScalef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScaled.xml
+func (gl *GL) Scaled(x, y, z float64) {
+ C.gl1_1_glScaled(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotatef.xml
+func (gl *GL) Rotatef(angle, x, y, z float32) {
+ C.gl1_1_glRotatef(gl.funcs, C.GLfloat(angle), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotated.xml
+func (gl *GL) Rotated(angle, x, y, z float64) {
+ C.gl1_1_glRotated(gl.funcs, C.GLdouble(angle), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushMatrix.xml
+func (gl *GL) PushMatrix() {
+ C.gl1_1_glPushMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopMatrix.xml
+func (gl *GL) PopMatrix() {
+ C.gl1_1_glPopMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml
+func (gl *GL) Ortho(left, right, bottom, top, zNear, zFar float64) {
+ C.gl1_1_glOrtho(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// MultMatrixd multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixd(m []float64) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl1_1_glMultMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// MultMatrixf multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixf(m []float32) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl1_1_glMultMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMatrixMode.xml
+func (gl *GL) MatrixMode(mode glbase.Enum) {
+ C.gl1_1_glMatrixMode(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixd.xml
+func (gl *GL) LoadMatrixd(m []float64) {
+ C.gl1_1_glLoadMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixf.xml
+func (gl *GL) LoadMatrixf(m []float32) {
+ C.gl1_1_glLoadMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadIdentity.xml
+func (gl *GL) LoadIdentity() {
+ C.gl1_1_glLoadIdentity(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml
+func (gl *GL) Frustum(left, right, bottom, top, zNear, zFar float64) {
+ C.gl1_1_glFrustum(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsList.xml
+func (gl *GL) IsList(list uint32) bool {
+ glresult := C.gl1_1_glIsList(gl.funcs, C.GLuint(list))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGeniv.xml
+func (gl *GL) GetTexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl1_1_glGetTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGenfv.xml
+func (gl *GL) GetTexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl1_1_glGetTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGendv.xml
+func (gl *GL) GetTexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl1_1_glGetTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnviv.xml
+func (gl *GL) GetTexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl1_1_glGetTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnvfv.xml
+func (gl *GL) GetTexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_1_glGetTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPolygonStipple.xml
+func (gl *GL) GetPolygonStipple(mask []uint8) {
+ C.gl1_1_glGetPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapusv.xml
+func (gl *GL) GetPixelMapusv(glmap glbase.Enum, values []uint16) {
+ C.gl1_1_glGetPixelMapusv(gl.funcs, C.GLenum(glmap), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapuiv.xml
+func (gl *GL) GetPixelMapuiv(glmap glbase.Enum, values []uint32) {
+ C.gl1_1_glGetPixelMapuiv(gl.funcs, C.GLenum(glmap), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapfv.xml
+func (gl *GL) GetPixelMapfv(glmap glbase.Enum, values []float32) {
+ C.gl1_1_glGetPixelMapfv(gl.funcs, C.GLenum(glmap), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialiv.xml
+func (gl *GL) GetMaterialiv(face, pname glbase.Enum, params []int32) {
+ C.gl1_1_glGetMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialfv.xml
+func (gl *GL) GetMaterialfv(face, pname glbase.Enum, params []float32) {
+ C.gl1_1_glGetMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapiv.xml
+func (gl *GL) GetMapiv(target, query glbase.Enum, v []int32) {
+ C.gl1_1_glGetMapiv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapfv.xml
+func (gl *GL) GetMapfv(target, query glbase.Enum, v []float32) {
+ C.gl1_1_glGetMapfv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapdv.xml
+func (gl *GL) GetMapdv(target, query glbase.Enum, v []float64) {
+ C.gl1_1_glGetMapdv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightiv.xml
+func (gl *GL) GetLightiv(light, pname glbase.Enum, params []int32) {
+ C.gl1_1_glGetLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightfv.xml
+func (gl *GL) GetLightfv(light, pname glbase.Enum, params []float32) {
+ C.gl1_1_glGetLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetClipPlane.xml
+func (gl *GL) GetClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl1_1_glGetClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawPixels.xml
+func (gl *GL) DrawPixels(width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glDrawPixels(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyPixels.xml
+func (gl *GL) CopyPixels(x, y, width, height int, gltype glbase.Enum) {
+ C.gl1_1_glCopyPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(gltype))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapusv.xml
+func (gl *GL) PixelMapusv(glmap glbase.Enum, mapsize int32, values []uint16) {
+ C.gl1_1_glPixelMapusv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapuiv.xml
+func (gl *GL) PixelMapuiv(glmap glbase.Enum, mapsize int32, values []uint32) {
+ C.gl1_1_glPixelMapuiv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapfv.xml
+func (gl *GL) PixelMapfv(glmap glbase.Enum, mapsize int32, values []float32) {
+ C.gl1_1_glPixelMapfv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferi.xml
+func (gl *GL) PixelTransferi(pname glbase.Enum, param int32) {
+ C.gl1_1_glPixelTransferi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferf.xml
+func (gl *GL) PixelTransferf(pname glbase.Enum, param float32) {
+ C.gl1_1_glPixelTransferf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelZoom.xml
+func (gl *GL) PixelZoom(xfactor, yfactor float32) {
+ C.gl1_1_glPixelZoom(gl.funcs, C.GLfloat(xfactor), C.GLfloat(yfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAlphaFunc.xml
+func (gl *GL) AlphaFunc(glfunc glbase.Enum, ref float32) {
+ C.gl1_1_glAlphaFunc(gl.funcs, C.GLenum(glfunc), C.GLfloat(ref))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint2.xml
+func (gl *GL) EvalPoint2(i, j int32) {
+ C.gl1_1_glEvalPoint2(gl.funcs, C.GLint(i), C.GLint(j))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh2.xml
+func (gl *GL) EvalMesh2(mode glbase.Enum, i1, i2, j1, j2 int32) {
+ C.gl1_1_glEvalMesh2(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2), C.GLint(j1), C.GLint(j2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint1.xml
+func (gl *GL) EvalPoint1(i int32) {
+ C.gl1_1_glEvalPoint1(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh1.xml
+func (gl *GL) EvalMesh1(mode glbase.Enum, i1, i2 int32) {
+ C.gl1_1_glEvalMesh1(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2fv.xml
+func (gl *GL) EvalCoord2fv(u []float32) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl1_1_glEvalCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2f.xml
+func (gl *GL) EvalCoord2f(u, v float32) {
+ C.gl1_1_glEvalCoord2f(gl.funcs, C.GLfloat(u), C.GLfloat(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2dv.xml
+func (gl *GL) EvalCoord2dv(u []float64) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl1_1_glEvalCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2d.xml
+func (gl *GL) EvalCoord2d(u, v float64) {
+ C.gl1_1_glEvalCoord2d(gl.funcs, C.GLdouble(u), C.GLdouble(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1fv.xml
+func (gl *GL) EvalCoord1fv(u []float32) {
+ C.gl1_1_glEvalCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1f.xml
+func (gl *GL) EvalCoord1f(u float32) {
+ C.gl1_1_glEvalCoord1f(gl.funcs, C.GLfloat(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1dv.xml
+func (gl *GL) EvalCoord1dv(u []float64) {
+ C.gl1_1_glEvalCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1d.xml
+func (gl *GL) EvalCoord1d(u float64) {
+ C.gl1_1_glEvalCoord1d(gl.funcs, C.GLdouble(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2f.xml
+func (gl *GL) MapGrid2f(un int32, u1, u2 float32, vn int32, v1, v2 float32) {
+ C.gl1_1_glMapGrid2f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2), C.GLint(vn), C.GLfloat(v1), C.GLfloat(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2d.xml
+func (gl *GL) MapGrid2d(un int32, u1, u2 float64, vn int32, v1, v2 float64) {
+ C.gl1_1_glMapGrid2d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2), C.GLint(vn), C.GLdouble(v1), C.GLdouble(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1f.xml
+func (gl *GL) MapGrid1f(un int32, u1, u2 float32) {
+ C.gl1_1_glMapGrid1f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1d.xml
+func (gl *GL) MapGrid1d(un int32, u1, u2 float64) {
+ C.gl1_1_glMapGrid1d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2f.xml
+func (gl *GL) Map2f(target glbase.Enum, u1, u2 float32, ustride, uorder int32, v1, v2 float32, vstride, vorder int32, points []float32) {
+ C.gl1_1_glMap2f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(ustride), C.GLint(uorder), C.GLfloat(v1), C.GLfloat(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2d.xml
+func (gl *GL) Map2d(target glbase.Enum, u1, u2 float64, ustride, uorder int32, v1, v2 float64, vstride, vorder int32, points []float64) {
+ C.gl1_1_glMap2d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(ustride), C.GLint(uorder), C.GLdouble(v1), C.GLdouble(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1f.xml
+func (gl *GL) Map1f(target glbase.Enum, u1, u2 float32, stride, order int, points []float32) {
+ C.gl1_1_glMap1f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(stride), C.GLint(order), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1d.xml
+func (gl *GL) Map1d(target glbase.Enum, u1, u2 float64, stride, order int, points []float64) {
+ C.gl1_1_glMap1d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(stride), C.GLint(order), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushAttrib.xml
+func (gl *GL) PushAttrib(mask glbase.Bitfield) {
+ C.gl1_1_glPushAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopAttrib.xml
+func (gl *GL) PopAttrib() {
+ C.gl1_1_glPopAttrib(gl.funcs)
+}
+
+// Accum executes an operation on the accumulation buffer.
+//
+// Parameter op defines the accumulation buffer operation (GL.ACCUM, GL.LOAD,
+// GL.ADD, GL.MULT, or GL.RETURN) and specifies how the value parameter is
+// used.
+//
+// The accumulation buffer is an extended-range color buffer. Images are not
+// rendered into it. Rather, images rendered into one of the color buffers
+// are added to the contents of the accumulation buffer after rendering.
+// Effects such as antialiasing (of points, lines, and polygons), motion
+// blur, and depth of field can be created by accumulating images generated
+// with different transformation matrices.
+//
+// Each pixel in the accumulation buffer consists of red, green, blue, and
+// alpha values. The number of bits per component in the accumulation buffer
+// depends on the implementation. You can examine this number by calling
+// GetIntegerv four times, with arguments GL.ACCUM_RED_BITS,
+// GL.ACCUM_GREEN_BITS, GL.ACCUM_BLUE_BITS, and GL.ACCUM_ALPHA_BITS.
+// Regardless of the number of bits per component, the range of values stored
+// by each component is (-1, 1). The accumulation buffer pixels are mapped
+// one-to-one with frame buffer pixels.
+//
+// All accumulation buffer operations are limited to the area of the current
+// scissor box and applied identically to the red, green, blue, and alpha
+// components of each pixel. If a Accum operation results in a value outside
+// the range (-1, 1), the contents of an accumulation buffer pixel component
+// are undefined.
+//
+// The operations are as follows:
+//
+// GL.ACCUM
+// Obtains R, G, B, and A values from the buffer currently selected for
+// reading (see ReadBuffer). Each component value is divided by 2 n -
+// 1 , where n is the number of bits allocated to each color component
+// in the currently selected buffer. The result is a floating-point
+// value in the range 0 1 , which is multiplied by value and added to
+// the corresponding pixel component in the accumulation buffer,
+// thereby updating the accumulation buffer.
+//
+// GL.LOAD
+// Similar to GL.ACCUM, except that the current value in the
+// accumulation buffer is not used in the calculation of the new value.
+// That is, the R, G, B, and A values from the currently selected
+// buffer are divided by 2 n - 1 , multiplied by value, and then stored
+// in the corresponding accumulation buffer cell, overwriting the
+// current value.
+//
+// GL.ADD
+// Adds value to each R, G, B, and A in the accumulation buffer.
+//
+// GL.MULT
+// Multiplies each R, G, B, and A in the accumulation buffer by value
+// and returns the scaled component to its corresponding accumulation
+// buffer location.
+//
+// GL.RETURN
+// Transfers accumulation buffer values to the color buffer or buffers
+// currently selected for writing. Each R, G, B, and A component is
+// multiplied by value, then multiplied by 2 n - 1 , clamped to the
+// range 0 2 n - 1 , and stored in the corresponding display buffer
+// cell. The only fragment operations that are applied to this transfer
+// are pixel ownership, scissor, dithering, and color writemasks.
+//
+// To clear the accumulation buffer, call ClearAccum with R, G, B, and A
+// values to set it to, then call Clear with the accumulation buffer
+// enabled.
+//
+// Error GL.INVALID_ENUM is generated if op is not an accepted value.
+// GL.INVALID_OPERATION is generated if there is no accumulation buffer.
+// GL.INVALID_OPERATION is generated if Accum is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) Accum(op glbase.Enum, value float32) {
+ C.gl1_1_glAccum(gl.funcs, C.GLenum(op), C.GLfloat(value))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexMask.xml
+func (gl *GL) IndexMask(mask uint32) {
+ C.gl1_1_glIndexMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearIndex.xml
+func (gl *GL) ClearIndex(c float32) {
+ C.gl1_1_glClearIndex(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearAccum.xml
+func (gl *GL) ClearAccum(red, green, blue, alpha float32) {
+ C.gl1_1_glClearAccum(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushName.xml
+func (gl *GL) PushName(name uint32) {
+ C.gl1_1_glPushName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopName.xml
+func (gl *GL) PopName() {
+ C.gl1_1_glPopName(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPassThrough.xml
+func (gl *GL) PassThrough(token float32) {
+ C.gl1_1_glPassThrough(gl.funcs, C.GLfloat(token))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadName.xml
+func (gl *GL) LoadName(name uint32) {
+ C.gl1_1_glLoadName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInitNames.xml
+func (gl *GL) InitNames() {
+ C.gl1_1_glInitNames(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRenderMode.xml
+func (gl *GL) RenderMode(mode glbase.Enum) int32 {
+ glresult := C.gl1_1_glRenderMode(gl.funcs, C.GLenum(mode))
+ return int32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSelectBuffer.xml
+func (gl *GL) SelectBuffer(size int, buffer []glbase.Buffer) {
+ C.gl1_1_glSelectBuffer(gl.funcs, C.GLsizei(size), (*C.GLuint)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFeedbackBuffer.xml
+func (gl *GL) FeedbackBuffer(size int, gltype glbase.Enum, buffer []float32) {
+ C.gl1_1_glFeedbackBuffer(gl.funcs, C.GLsizei(size), C.GLenum(gltype), (*C.GLfloat)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeniv.xml
+func (gl *GL) TexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl1_1_glTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeni.xml
+func (gl *GL) TexGeni(coord, pname glbase.Enum, param int32) {
+ C.gl1_1_glTexGeni(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenfv.xml
+func (gl *GL) TexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl1_1_glTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenf.xml
+func (gl *GL) TexGenf(coord, pname glbase.Enum, param float32) {
+ C.gl1_1_glTexGenf(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGendv.xml
+func (gl *GL) TexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl1_1_glTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGend.xml
+func (gl *GL) TexGend(coord, pname glbase.Enum, param float64) {
+ C.gl1_1_glTexGend(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLdouble(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnviv.xml
+func (gl *GL) TexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl1_1_glTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvi.xml
+func (gl *GL) TexEnvi(target, pname glbase.Enum, param int32) {
+ C.gl1_1_glTexEnvi(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvfv.xml
+func (gl *GL) TexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_1_glTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvf.xml
+func (gl *GL) TexEnvf(target, pname glbase.Enum, param float32) {
+ C.gl1_1_glTexEnvf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glShadeModel.xml
+func (gl *GL) ShadeModel(mode glbase.Enum) {
+ C.gl1_1_glShadeModel(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonStipple.xml
+func (gl *GL) PolygonStipple(mask []uint8) {
+ C.gl1_1_glPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialiv.xml
+func (gl *GL) Materialiv(face, pname glbase.Enum, params []int32) {
+ C.gl1_1_glMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMateriali.xml
+func (gl *GL) Materiali(face, pname glbase.Enum, param int32) {
+ C.gl1_1_glMateriali(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialfv.xml
+func (gl *GL) Materialfv(face, pname glbase.Enum, params []float32) {
+ C.gl1_1_glMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialf.xml
+func (gl *GL) Materialf(face, pname glbase.Enum, param float32) {
+ C.gl1_1_glMaterialf(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineStipple.xml
+func (gl *GL) LineStipple(factor int32, pattern uint16) {
+ C.gl1_1_glLineStipple(gl.funcs, C.GLint(factor), C.GLushort(pattern))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeliv.xml
+func (gl *GL) LightModeliv(pname glbase.Enum, params []int32) {
+ C.gl1_1_glLightModeliv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeli.xml
+func (gl *GL) LightModeli(pname glbase.Enum, param int32) {
+ C.gl1_1_glLightModeli(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelfv.xml
+func (gl *GL) LightModelfv(pname glbase.Enum, params []float32) {
+ C.gl1_1_glLightModelfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelf.xml
+func (gl *GL) LightModelf(pname glbase.Enum, param float32) {
+ C.gl1_1_glLightModelf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightiv.xml
+func (gl *GL) Lightiv(light, pname glbase.Enum, params []int32) {
+ C.gl1_1_glLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLighti.xml
+func (gl *GL) Lighti(light, pname glbase.Enum, param int32) {
+ C.gl1_1_glLighti(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightfv.xml
+func (gl *GL) Lightfv(light, pname glbase.Enum, params []float32) {
+ C.gl1_1_glLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightf.xml
+func (gl *GL) Lightf(light, pname glbase.Enum, param float32) {
+ C.gl1_1_glLightf(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogiv.xml
+func (gl *GL) Fogiv(pname glbase.Enum, params []int32) {
+ C.gl1_1_glFogiv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogi.xml
+func (gl *GL) Fogi(pname glbase.Enum, param int32) {
+ C.gl1_1_glFogi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogfv.xml
+func (gl *GL) Fogfv(pname glbase.Enum, params []float32) {
+ C.gl1_1_glFogfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogf.xml
+func (gl *GL) Fogf(pname glbase.Enum, param float32) {
+ C.gl1_1_glFogf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMaterial.xml
+func (gl *GL) ColorMaterial(face, mode glbase.Enum) {
+ C.gl1_1_glColorMaterial(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClipPlane.xml
+func (gl *GL) ClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl1_1_glClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4sv.xml
+func (gl *GL) Vertex4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glVertex4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4s.xml
+func (gl *GL) Vertex4s(x, y, z, w int16) {
+ C.gl1_1_glVertex4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4iv.xml
+func (gl *GL) Vertex4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glVertex4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4i.xml
+func (gl *GL) Vertex4i(x, y, z, w int) {
+ C.gl1_1_glVertex4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4fv.xml
+func (gl *GL) Vertex4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glVertex4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4f.xml
+func (gl *GL) Vertex4f(x, y, z, w float32) {
+ C.gl1_1_glVertex4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4dv.xml
+func (gl *GL) Vertex4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glVertex4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4d.xml
+func (gl *GL) Vertex4d(x, y, z, w float64) {
+ C.gl1_1_glVertex4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3sv.xml
+func (gl *GL) Vertex3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glVertex3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3s.xml
+func (gl *GL) Vertex3s(x, y, z int16) {
+ C.gl1_1_glVertex3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3iv.xml
+func (gl *GL) Vertex3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glVertex3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3i.xml
+func (gl *GL) Vertex3i(x, y, z int) {
+ C.gl1_1_glVertex3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3fv.xml
+func (gl *GL) Vertex3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glVertex3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3f.xml
+func (gl *GL) Vertex3f(x, y, z float32) {
+ C.gl1_1_glVertex3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3dv.xml
+func (gl *GL) Vertex3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glVertex3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3d.xml
+func (gl *GL) Vertex3d(x, y, z float64) {
+ C.gl1_1_glVertex3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2sv.xml
+func (gl *GL) Vertex2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glVertex2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2s.xml
+func (gl *GL) Vertex2s(x, y int16) {
+ C.gl1_1_glVertex2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2iv.xml
+func (gl *GL) Vertex2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glVertex2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2i.xml
+func (gl *GL) Vertex2i(x, y int) {
+ C.gl1_1_glVertex2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2fv.xml
+func (gl *GL) Vertex2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glVertex2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2f.xml
+func (gl *GL) Vertex2f(x, y float32) {
+ C.gl1_1_glVertex2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2dv.xml
+func (gl *GL) Vertex2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glVertex2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2d.xml
+func (gl *GL) Vertex2d(x, y float64) {
+ C.gl1_1_glVertex2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4sv.xml
+func (gl *GL) TexCoord4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glTexCoord4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4s.xml
+func (gl *GL) TexCoord4s(s, t, r, q int16) {
+ C.gl1_1_glTexCoord4s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4iv.xml
+func (gl *GL) TexCoord4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glTexCoord4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4i.xml
+func (gl *GL) TexCoord4i(s, t, r, q int32) {
+ C.gl1_1_glTexCoord4i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4fv.xml
+func (gl *GL) TexCoord4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glTexCoord4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4f.xml
+func (gl *GL) TexCoord4f(s, t, r, q float32) {
+ C.gl1_1_glTexCoord4f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4dv.xml
+func (gl *GL) TexCoord4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glTexCoord4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4d.xml
+func (gl *GL) TexCoord4d(s, t, r, q float64) {
+ C.gl1_1_glTexCoord4d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3sv.xml
+func (gl *GL) TexCoord3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glTexCoord3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3s.xml
+func (gl *GL) TexCoord3s(s, t, r int16) {
+ C.gl1_1_glTexCoord3s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3iv.xml
+func (gl *GL) TexCoord3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glTexCoord3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3i.xml
+func (gl *GL) TexCoord3i(s, t, r int32) {
+ C.gl1_1_glTexCoord3i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3fv.xml
+func (gl *GL) TexCoord3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glTexCoord3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3f.xml
+func (gl *GL) TexCoord3f(s, t, r float32) {
+ C.gl1_1_glTexCoord3f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3dv.xml
+func (gl *GL) TexCoord3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glTexCoord3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3d.xml
+func (gl *GL) TexCoord3d(s, t, r float64) {
+ C.gl1_1_glTexCoord3d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2sv.xml
+func (gl *GL) TexCoord2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glTexCoord2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2s.xml
+func (gl *GL) TexCoord2s(s, t int16) {
+ C.gl1_1_glTexCoord2s(gl.funcs, C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2iv.xml
+func (gl *GL) TexCoord2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glTexCoord2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2i.xml
+func (gl *GL) TexCoord2i(s, t int32) {
+ C.gl1_1_glTexCoord2i(gl.funcs, C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2fv.xml
+func (gl *GL) TexCoord2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glTexCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2f.xml
+func (gl *GL) TexCoord2f(s, t float32) {
+ C.gl1_1_glTexCoord2f(gl.funcs, C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2dv.xml
+func (gl *GL) TexCoord2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glTexCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2d.xml
+func (gl *GL) TexCoord2d(s, t float64) {
+ C.gl1_1_glTexCoord2d(gl.funcs, C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1sv.xml
+func (gl *GL) TexCoord1sv(v []int16) {
+ C.gl1_1_glTexCoord1sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1s.xml
+func (gl *GL) TexCoord1s(s int16) {
+ C.gl1_1_glTexCoord1s(gl.funcs, C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1iv.xml
+func (gl *GL) TexCoord1iv(v []int32) {
+ C.gl1_1_glTexCoord1iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1i.xml
+func (gl *GL) TexCoord1i(s int32) {
+ C.gl1_1_glTexCoord1i(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1fv.xml
+func (gl *GL) TexCoord1fv(v []float32) {
+ C.gl1_1_glTexCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1f.xml
+func (gl *GL) TexCoord1f(s float32) {
+ C.gl1_1_glTexCoord1f(gl.funcs, C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1dv.xml
+func (gl *GL) TexCoord1dv(v []float64) {
+ C.gl1_1_glTexCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1d.xml
+func (gl *GL) TexCoord1d(s float64) {
+ C.gl1_1_glTexCoord1d(gl.funcs, C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectsv.xml
+func (gl *GL) Rectsv(v1, v2 []int16) {
+ C.gl1_1_glRectsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v1[0])), (*C.GLshort)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRects.xml
+func (gl *GL) Rects(x1, y1, x2, y2 int16) {
+ C.gl1_1_glRects(gl.funcs, C.GLshort(x1), C.GLshort(y1), C.GLshort(x2), C.GLshort(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectiv.xml
+func (gl *GL) Rectiv(v1, v2 []int32) {
+ C.gl1_1_glRectiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v1[0])), (*C.GLint)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRecti.xml
+func (gl *GL) Recti(x1, y1, x2, y2 int32) {
+ C.gl1_1_glRecti(gl.funcs, C.GLint(x1), C.GLint(y1), C.GLint(x2), C.GLint(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectfv.xml
+func (gl *GL) Rectfv(v1, v2 []float32) {
+ C.gl1_1_glRectfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v1[0])), (*C.GLfloat)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectf.xml
+func (gl *GL) Rectf(x1, y1, x2, y2 float32) {
+ C.gl1_1_glRectf(gl.funcs, C.GLfloat(x1), C.GLfloat(y1), C.GLfloat(x2), C.GLfloat(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectdv.xml
+func (gl *GL) Rectdv(v1, v2 []float64) {
+ C.gl1_1_glRectdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v1[0])), (*C.GLdouble)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectd.xml
+func (gl *GL) Rectd(x1, y1, x2, y2 float64) {
+ C.gl1_1_glRectd(gl.funcs, C.GLdouble(x1), C.GLdouble(y1), C.GLdouble(x2), C.GLdouble(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4sv.xml
+func (gl *GL) RasterPos4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glRasterPos4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4s.xml
+func (gl *GL) RasterPos4s(x, y, z, w int16) {
+ C.gl1_1_glRasterPos4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4iv.xml
+func (gl *GL) RasterPos4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glRasterPos4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4i.xml
+func (gl *GL) RasterPos4i(x, y, z, w int) {
+ C.gl1_1_glRasterPos4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4fv.xml
+func (gl *GL) RasterPos4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glRasterPos4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4f.xml
+func (gl *GL) RasterPos4f(x, y, z, w float32) {
+ C.gl1_1_glRasterPos4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4dv.xml
+func (gl *GL) RasterPos4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glRasterPos4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4d.xml
+func (gl *GL) RasterPos4d(x, y, z, w float64) {
+ C.gl1_1_glRasterPos4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3sv.xml
+func (gl *GL) RasterPos3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glRasterPos3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3s.xml
+func (gl *GL) RasterPos3s(x, y, z int16) {
+ C.gl1_1_glRasterPos3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3iv.xml
+func (gl *GL) RasterPos3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glRasterPos3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3i.xml
+func (gl *GL) RasterPos3i(x, y, z int) {
+ C.gl1_1_glRasterPos3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3fv.xml
+func (gl *GL) RasterPos3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glRasterPos3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3f.xml
+func (gl *GL) RasterPos3f(x, y, z float32) {
+ C.gl1_1_glRasterPos3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3dv.xml
+func (gl *GL) RasterPos3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glRasterPos3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3d.xml
+func (gl *GL) RasterPos3d(x, y, z float64) {
+ C.gl1_1_glRasterPos3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2sv.xml
+func (gl *GL) RasterPos2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glRasterPos2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2s.xml
+func (gl *GL) RasterPos2s(x, y int16) {
+ C.gl1_1_glRasterPos2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2iv.xml
+func (gl *GL) RasterPos2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glRasterPos2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2i.xml
+func (gl *GL) RasterPos2i(x, y int) {
+ C.gl1_1_glRasterPos2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2fv.xml
+func (gl *GL) RasterPos2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glRasterPos2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2f.xml
+func (gl *GL) RasterPos2f(x, y float32) {
+ C.gl1_1_glRasterPos2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2dv.xml
+func (gl *GL) RasterPos2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glRasterPos2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2d.xml
+func (gl *GL) RasterPos2d(x, y float64) {
+ C.gl1_1_glRasterPos2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3sv.xml
+func (gl *GL) Normal3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glNormal3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3s.xml
+func (gl *GL) Normal3s(nx, ny, nz int16) {
+ C.gl1_1_glNormal3s(gl.funcs, C.GLshort(nx), C.GLshort(ny), C.GLshort(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3iv.xml
+func (gl *GL) Normal3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glNormal3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3i.xml
+func (gl *GL) Normal3i(nx, ny, nz int32) {
+ C.gl1_1_glNormal3i(gl.funcs, C.GLint(nx), C.GLint(ny), C.GLint(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3fv.xml
+func (gl *GL) Normal3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glNormal3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3f.xml
+func (gl *GL) Normal3f(nx, ny, nz float32) {
+ C.gl1_1_glNormal3f(gl.funcs, C.GLfloat(nx), C.GLfloat(ny), C.GLfloat(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3dv.xml
+func (gl *GL) Normal3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glNormal3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3d.xml
+func (gl *GL) Normal3d(nx, ny, nz float64) {
+ C.gl1_1_glNormal3d(gl.funcs, C.GLdouble(nx), C.GLdouble(ny), C.GLdouble(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3bv.xml
+func (gl *GL) Normal3bv(v []byte) {
+ C.gl1_1_glNormal3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3b.xml
+func (gl *GL) Normal3b(nx, ny, nz byte) {
+ C.gl1_1_glNormal3b(gl.funcs, C.GLbyte(nx), C.GLbyte(ny), C.GLbyte(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexsv.xml
+func (gl *GL) Indexsv(c []int16) {
+ C.gl1_1_glIndexsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexs.xml
+func (gl *GL) Indexs(c int16) {
+ C.gl1_1_glIndexs(gl.funcs, C.GLshort(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexiv.xml
+func (gl *GL) Indexiv(c []int32) {
+ C.gl1_1_glIndexiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexi.xml
+func (gl *GL) Indexi(c int32) {
+ C.gl1_1_glIndexi(gl.funcs, C.GLint(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexfv.xml
+func (gl *GL) Indexfv(c []float32) {
+ C.gl1_1_glIndexfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexf.xml
+func (gl *GL) Indexf(c float32) {
+ C.gl1_1_glIndexf(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexdv.xml
+func (gl *GL) Indexdv(c []float64) {
+ C.gl1_1_glIndexdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexd.xml
+func (gl *GL) Indexd(c float64) {
+ C.gl1_1_glIndexd(gl.funcs, C.GLdouble(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnd.xml
+func (gl *GL) End() {
+ C.gl1_1_glEnd(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagv.xml
+func (gl *GL) EdgeFlagv(flag []bool) {
+ C.gl1_1_glEdgeFlagv(gl.funcs, (*C.GLboolean)(unsafe.Pointer(&flag[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlag.xml
+func (gl *GL) EdgeFlag(flag bool) {
+ C.gl1_1_glEdgeFlag(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4usv.xml
+func (gl *GL) Color4usv(v []uint16) {
+ C.gl1_1_glColor4usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4us.xml
+func (gl *GL) Color4us(red, green, blue, alpha uint16) {
+ C.gl1_1_glColor4us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue), C.GLushort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4uiv.xml
+func (gl *GL) Color4uiv(v []uint32) {
+ C.gl1_1_glColor4uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ui.xml
+func (gl *GL) Color4ui(red, green, blue, alpha uint32) {
+ C.gl1_1_glColor4ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue), C.GLuint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ubv.xml
+func (gl *GL) Color4ubv(v []uint8) {
+ C.gl1_1_glColor4ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ub.xml
+func (gl *GL) Color4ub(red, green, blue, alpha uint8) {
+ C.gl1_1_glColor4ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue), C.GLubyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4sv.xml
+func (gl *GL) Color4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glColor4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4s.xml
+func (gl *GL) Color4s(red, green, blue, alpha int16) {
+ C.gl1_1_glColor4s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue), C.GLshort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4iv.xml
+func (gl *GL) Color4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glColor4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4i.xml
+func (gl *GL) Color4i(red, green, blue, alpha int32) {
+ C.gl1_1_glColor4i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue), C.GLint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4fv.xml
+func (gl *GL) Color4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glColor4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4f.xml
+func (gl *GL) Color4f(red, green, blue, alpha float32) {
+ C.gl1_1_glColor4f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4dv.xml
+func (gl *GL) Color4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glColor4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4d.xml
+func (gl *GL) Color4d(red, green, blue, alpha float64) {
+ C.gl1_1_glColor4d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue), C.GLdouble(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4bv.xml
+func (gl *GL) Color4bv(v []byte) {
+ C.gl1_1_glColor4bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4b.xml
+func (gl *GL) Color4b(red, green, blue, alpha byte) {
+ C.gl1_1_glColor4b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue), C.GLbyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3usv.xml
+func (gl *GL) Color3usv(v []uint16) {
+ C.gl1_1_glColor3usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3us.xml
+func (gl *GL) Color3us(red, green, blue uint16) {
+ C.gl1_1_glColor3us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3uiv.xml
+func (gl *GL) Color3uiv(v []uint32) {
+ C.gl1_1_glColor3uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ui.xml
+func (gl *GL) Color3ui(red, green, blue uint32) {
+ C.gl1_1_glColor3ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ubv.xml
+func (gl *GL) Color3ubv(v []uint8) {
+ C.gl1_1_glColor3ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ub.xml
+func (gl *GL) Color3ub(red, green, blue uint8) {
+ C.gl1_1_glColor3ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3sv.xml
+func (gl *GL) Color3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glColor3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3s.xml
+func (gl *GL) Color3s(red, green, blue int16) {
+ C.gl1_1_glColor3s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3iv.xml
+func (gl *GL) Color3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glColor3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3i.xml
+func (gl *GL) Color3i(red, green, blue int32) {
+ C.gl1_1_glColor3i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3fv.xml
+func (gl *GL) Color3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glColor3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3f.xml
+func (gl *GL) Color3f(red, green, blue float32) {
+ C.gl1_1_glColor3f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3dv.xml
+func (gl *GL) Color3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_1_glColor3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3d.xml
+func (gl *GL) Color3d(red, green, blue float64) {
+ C.gl1_1_glColor3d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3bv.xml
+func (gl *GL) Color3bv(v []byte) {
+ C.gl1_1_glColor3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3b.xml
+func (gl *GL) Color3b(red, green, blue byte) {
+ C.gl1_1_glColor3b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBitmap.xml
+func (gl *GL) Bitmap(width, height int, xorig, yorig, xmove, ymove float32, bitmap []uint8) {
+ C.gl1_1_glBitmap(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLfloat(xorig), C.GLfloat(yorig), C.GLfloat(xmove), C.GLfloat(ymove), (*C.GLubyte)(unsafe.Pointer(&bitmap[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBegin.xml
+func (gl *GL) Begin(mode glbase.Enum) {
+ C.gl1_1_glBegin(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glListBase.xml
+func (gl *GL) ListBase(base uint32) {
+ C.gl1_1_glListBase(gl.funcs, C.GLuint(base))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGenLists.xml
+func (gl *GL) GenLists(range_ int32) uint32 {
+ glresult := C.gl1_1_glGenLists(gl.funcs, C.GLsizei(range_))
+ return uint32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDeleteLists.xml
+func (gl *GL) DeleteLists(list uint32, range_ int32) {
+ C.gl1_1_glDeleteLists(gl.funcs, C.GLuint(list), C.GLsizei(range_))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallLists.xml
+func (gl *GL) CallLists(n int, gltype glbase.Enum, lists interface{}) {
+ var lists_ptr unsafe.Pointer
+ var lists_v = reflect.ValueOf(lists)
+ if lists != nil && lists_v.Kind() != reflect.Slice {
+ panic("parameter lists must be a slice")
+ }
+ if lists != nil {
+ lists_ptr = unsafe.Pointer(lists_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glCallLists(gl.funcs, C.GLsizei(n), C.GLenum(gltype), lists_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallList.xml
+func (gl *GL) CallList(list uint32) {
+ C.gl1_1_glCallList(gl.funcs, C.GLuint(list))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEndList.xml
+func (gl *GL) EndList() {
+ C.gl1_1_glEndList(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNewList.xml
+func (gl *GL) NewList(list uint32, mode glbase.Enum) {
+ C.gl1_1_glNewList(gl.funcs, C.GLuint(list), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushClientAttrib.xml
+func (gl *GL) PushClientAttrib(mask glbase.Bitfield) {
+ C.gl1_1_glPushClientAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopClientAttrib.xml
+func (gl *GL) PopClientAttrib() {
+ C.gl1_1_glPopClientAttrib(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPrioritizeTextures.xml
+func (gl *GL) PrioritizeTextures(n int, textures []glbase.Texture, priorities []float32) {
+ C.gl1_1_glPrioritizeTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLfloat)(unsafe.Pointer(&priorities[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAreTexturesResident.xml
+func (gl *GL) AreTexturesResident(n int, textures []glbase.Texture, residences []bool) bool {
+ glresult := C.gl1_1_glAreTexturesResident(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLboolean)(unsafe.Pointer(&residences[0])))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexPointer.xml
+func (gl *GL) VertexPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glVertexPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoordPointer.xml
+func (gl *GL) TexCoordPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glTexCoordPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormalPointer.xml
+func (gl *GL) NormalPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glNormalPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInterleavedArrays.xml
+func (gl *GL) InterleavedArrays(format glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glInterleavedArrays(gl.funcs, C.GLenum(format), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexPointer.xml
+func (gl *GL) IndexPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glIndexPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnableClientState.xml
+func (gl *GL) EnableClientState(array glbase.Enum) {
+ C.gl1_1_glEnableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagPointer.xml
+func (gl *GL) EdgeFlagPointer(stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glEdgeFlagPointer(gl.funcs, C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisableClientState.xml
+func (gl *GL) DisableClientState(array glbase.Enum) {
+ C.gl1_1_glDisableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorPointer.xml
+func (gl *GL) ColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_1_glColorPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glArrayElement.xml
+func (gl *GL) ArrayElement(i int32) {
+ C.gl1_1_glArrayElement(gl.funcs, C.GLint(i))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.2/funcs.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.2/funcs.cpp
new file mode 100644
index 000000000..328f40f85
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.2/funcs.cpp
@@ -0,0 +1,2250 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#include <QOpenGLContext>
+#include <QtGui/qopenglfunctions_1_2.h>
+
+#include "funcs.h"
+
+void *gl1_2_funcs() {
+ QOpenGLFunctions_1_2* funcs = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_1_2>();
+ if (!funcs) {
+ return 0;
+ }
+ funcs->initializeOpenGLFunctions();
+ return funcs;
+}
+
+
+void gl1_2_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glViewport(x, y, width, height);
+}
+
+void gl1_2_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glDepthRange(nearVal, farVal);
+}
+
+GLboolean gl1_2_glIsEnabled(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ return _qglfuncs->glIsEnabled(cap);
+}
+
+void gl1_2_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameteriv(target, level, pname, params);
+}
+
+void gl1_2_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameterfv(target, level, pname, params);
+}
+
+void gl1_2_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetTexParameteriv(target, pname, params);
+}
+
+void gl1_2_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetTexParameterfv(target, pname, params);
+}
+
+void gl1_2_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetTexImage(target, level, format, gltype, pixels);
+}
+
+void gl1_2_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetIntegerv(pname, params);
+}
+
+void gl1_2_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetFloatv(pname, params);
+}
+
+GLenum gl1_2_glGetError(void *_glfuncs)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ return _qglfuncs->glGetError();
+}
+
+void gl1_2_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetDoublev(pname, params);
+}
+
+void gl1_2_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetBooleanv(pname, params);
+}
+
+void gl1_2_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glReadPixels(x, y, width, height, format, gltype, pixels);
+}
+
+void gl1_2_glReadBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glReadBuffer(mode);
+}
+
+void gl1_2_glPixelStorei(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPixelStorei(pname, param);
+}
+
+void gl1_2_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPixelStoref(pname, param);
+}
+
+void gl1_2_glDepthFunc(void *_glfuncs, GLenum glfunc)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glDepthFunc(glfunc);
+}
+
+void gl1_2_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glStencilOp(fail, zfail, zpass);
+}
+
+void gl1_2_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glStencilFunc(glfunc, ref, mask);
+}
+
+void gl1_2_glLogicOp(void *_glfuncs, GLenum opcode)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLogicOp(opcode);
+}
+
+void gl1_2_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glBlendFunc(sfactor, dfactor);
+}
+
+void gl1_2_glFlush(void *_glfuncs)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glFlush();
+}
+
+void gl1_2_glFinish(void *_glfuncs)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glFinish();
+}
+
+void gl1_2_glEnable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEnable(cap);
+}
+
+void gl1_2_glDisable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glDisable(cap);
+}
+
+void gl1_2_glDepthMask(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glDepthMask(flag);
+}
+
+void gl1_2_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColorMask(red, green, blue, alpha);
+}
+
+void gl1_2_glStencilMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glStencilMask(mask);
+}
+
+void gl1_2_glClearDepth(void *_glfuncs, GLdouble depth)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glClearDepth(depth);
+}
+
+void gl1_2_glClearStencil(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glClearStencil(s);
+}
+
+void gl1_2_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glClearColor(red, green, blue, alpha);
+}
+
+void gl1_2_glClear(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glClear(mask);
+}
+
+void gl1_2_glDrawBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glDrawBuffer(mode);
+}
+
+void gl1_2_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexImage2D(target, level, internalFormat, width, height, border, format, gltype, pixels);
+}
+
+void gl1_2_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexImage1D(target, level, internalFormat, width, border, format, gltype, pixels);
+}
+
+void gl1_2_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexParameteriv(target, pname, params);
+}
+
+void gl1_2_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexParameteri(target, pname, param);
+}
+
+void gl1_2_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexParameterfv(target, pname, params);
+}
+
+void gl1_2_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexParameterf(target, pname, param);
+}
+
+void gl1_2_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glScissor(x, y, width, height);
+}
+
+void gl1_2_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPolygonMode(face, mode);
+}
+
+void gl1_2_glPointSize(void *_glfuncs, GLfloat size)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPointSize(size);
+}
+
+void gl1_2_glLineWidth(void *_glfuncs, GLfloat width)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLineWidth(width);
+}
+
+void gl1_2_glHint(void *_glfuncs, GLenum target, GLenum mode)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glHint(target, mode);
+}
+
+void gl1_2_glFrontFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glFrontFace(mode);
+}
+
+void gl1_2_glCullFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glCullFace(mode);
+}
+
+void gl1_2_glIndexubv(void *_glfuncs, const GLubyte* c)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glIndexubv(c);
+}
+
+void gl1_2_glIndexub(void *_glfuncs, GLubyte c)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glIndexub(c);
+}
+
+GLboolean gl1_2_glIsTexture(void *_glfuncs, GLuint texture)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ return _qglfuncs->glIsTexture(texture);
+}
+
+void gl1_2_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGenTextures(n, textures);
+}
+
+void gl1_2_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glDeleteTextures(n, textures);
+}
+
+void gl1_2_glBindTexture(void *_glfuncs, GLenum target, GLuint texture)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glBindTexture(target, texture);
+}
+
+void gl1_2_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, gltype, pixels);
+}
+
+void gl1_2_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexSubImage1D(target, level, xoffset, width, format, gltype, pixels);
+}
+
+void gl1_2_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
+}
+
+void gl1_2_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage1D(target, level, xoffset, x, y, width);
+}
+
+void gl1_2_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
+}
+
+void gl1_2_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glCopyTexImage1D(target, level, internalFormat, x, y, width, border);
+}
+
+void gl1_2_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPolygonOffset(factor, units);
+}
+
+void gl1_2_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glDrawElements(mode, count, gltype, indices);
+}
+
+void gl1_2_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glDrawArrays(mode, first, count);
+}
+
+void gl1_2_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
+}
+
+void gl1_2_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, gltype, pixels);
+}
+
+void gl1_2_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexImage3D(target, level, internalFormat, width, height, depth, border, format, gltype, pixels);
+}
+
+void gl1_2_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glDrawRangeElements(mode, start, end, count, gltype, indices);
+}
+
+void gl1_2_glBlendEquation(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glBlendEquation(mode);
+}
+
+void gl1_2_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glBlendColor(red, green, blue, alpha);
+}
+
+void gl1_2_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTranslatef(x, y, z);
+}
+
+void gl1_2_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTranslated(x, y, z);
+}
+
+void gl1_2_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glScalef(x, y, z);
+}
+
+void gl1_2_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glScaled(x, y, z);
+}
+
+void gl1_2_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRotatef(angle, x, y, z);
+}
+
+void gl1_2_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRotated(angle, x, y, z);
+}
+
+void gl1_2_glPushMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPushMatrix();
+}
+
+void gl1_2_glPopMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPopMatrix();
+}
+
+void gl1_2_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glOrtho(left, right, bottom, top, zNear, zFar);
+}
+
+void gl1_2_glMultMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMultMatrixd(m);
+}
+
+void gl1_2_glMultMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMultMatrixf(m);
+}
+
+void gl1_2_glMatrixMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMatrixMode(mode);
+}
+
+void gl1_2_glLoadMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLoadMatrixd(m);
+}
+
+void gl1_2_glLoadMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLoadMatrixf(m);
+}
+
+void gl1_2_glLoadIdentity(void *_glfuncs)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLoadIdentity();
+}
+
+void gl1_2_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glFrustum(left, right, bottom, top, zNear, zFar);
+}
+
+GLboolean gl1_2_glIsList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ return _qglfuncs->glIsList(list);
+}
+
+void gl1_2_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetTexGeniv(coord, pname, params);
+}
+
+void gl1_2_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetTexGenfv(coord, pname, params);
+}
+
+void gl1_2_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetTexGendv(coord, pname, params);
+}
+
+void gl1_2_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetTexEnviv(target, pname, params);
+}
+
+void gl1_2_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetTexEnvfv(target, pname, params);
+}
+
+void gl1_2_glGetPolygonStipple(void *_glfuncs, GLubyte* mask)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetPolygonStipple(mask);
+}
+
+void gl1_2_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetPixelMapusv(glmap, values);
+}
+
+void gl1_2_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetPixelMapuiv(glmap, values);
+}
+
+void gl1_2_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetPixelMapfv(glmap, values);
+}
+
+void gl1_2_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetMaterialiv(face, pname, params);
+}
+
+void gl1_2_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetMaterialfv(face, pname, params);
+}
+
+void gl1_2_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetMapiv(target, query, v);
+}
+
+void gl1_2_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetMapfv(target, query, v);
+}
+
+void gl1_2_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetMapdv(target, query, v);
+}
+
+void gl1_2_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetLightiv(light, pname, params);
+}
+
+void gl1_2_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetLightfv(light, pname, params);
+}
+
+void gl1_2_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetClipPlane(plane, equation);
+}
+
+void gl1_2_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glDrawPixels(width, height, format, gltype, pixels);
+}
+
+void gl1_2_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glCopyPixels(x, y, width, height, gltype);
+}
+
+void gl1_2_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPixelMapusv(glmap, mapsize, values);
+}
+
+void gl1_2_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPixelMapuiv(glmap, mapsize, values);
+}
+
+void gl1_2_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPixelMapfv(glmap, mapsize, values);
+}
+
+void gl1_2_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPixelTransferi(pname, param);
+}
+
+void gl1_2_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPixelTransferf(pname, param);
+}
+
+void gl1_2_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPixelZoom(xfactor, yfactor);
+}
+
+void gl1_2_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glAlphaFunc(glfunc, ref);
+}
+
+void gl1_2_glEvalPoint2(void *_glfuncs, GLint i, GLint j)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEvalPoint2(i, j);
+}
+
+void gl1_2_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEvalMesh2(mode, i1, i2, j1, j2);
+}
+
+void gl1_2_glEvalPoint1(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEvalPoint1(i);
+}
+
+void gl1_2_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEvalMesh1(mode, i1, i2);
+}
+
+void gl1_2_glEvalCoord2fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEvalCoord2fv(u);
+}
+
+void gl1_2_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEvalCoord2f(u, v);
+}
+
+void gl1_2_glEvalCoord2dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEvalCoord2dv(u);
+}
+
+void gl1_2_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEvalCoord2d(u, v);
+}
+
+void gl1_2_glEvalCoord1fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEvalCoord1fv(u);
+}
+
+void gl1_2_glEvalCoord1f(void *_glfuncs, GLfloat u)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEvalCoord1f(u);
+}
+
+void gl1_2_glEvalCoord1dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEvalCoord1dv(u);
+}
+
+void gl1_2_glEvalCoord1d(void *_glfuncs, GLdouble u)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEvalCoord1d(u);
+}
+
+void gl1_2_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMapGrid2f(un, u1, u2, vn, v1, v2);
+}
+
+void gl1_2_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMapGrid2d(un, u1, u2, vn, v1, v2);
+}
+
+void gl1_2_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMapGrid1f(un, u1, u2);
+}
+
+void gl1_2_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMapGrid1d(un, u1, u2);
+}
+
+void gl1_2_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl1_2_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl1_2_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMap1f(target, u1, u2, stride, order, points);
+}
+
+void gl1_2_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMap1d(target, u1, u2, stride, order, points);
+}
+
+void gl1_2_glPushAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPushAttrib(mask);
+}
+
+void gl1_2_glPopAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPopAttrib();
+}
+
+void gl1_2_glAccum(void *_glfuncs, GLenum op, GLfloat value)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glAccum(op, value);
+}
+
+void gl1_2_glIndexMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glIndexMask(mask);
+}
+
+void gl1_2_glClearIndex(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glClearIndex(c);
+}
+
+void gl1_2_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glClearAccum(red, green, blue, alpha);
+}
+
+void gl1_2_glPushName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPushName(name);
+}
+
+void gl1_2_glPopName(void *_glfuncs)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPopName();
+}
+
+void gl1_2_glPassThrough(void *_glfuncs, GLfloat token)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPassThrough(token);
+}
+
+void gl1_2_glLoadName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLoadName(name);
+}
+
+void gl1_2_glInitNames(void *_glfuncs)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glInitNames();
+}
+
+GLint gl1_2_glRenderMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ return _qglfuncs->glRenderMode(mode);
+}
+
+void gl1_2_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glSelectBuffer(size, buffer);
+}
+
+void gl1_2_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glFeedbackBuffer(size, gltype, buffer);
+}
+
+void gl1_2_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexGeniv(coord, pname, params);
+}
+
+void gl1_2_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexGeni(coord, pname, param);
+}
+
+void gl1_2_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexGenfv(coord, pname, params);
+}
+
+void gl1_2_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexGenf(coord, pname, param);
+}
+
+void gl1_2_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexGendv(coord, pname, params);
+}
+
+void gl1_2_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexGend(coord, pname, param);
+}
+
+void gl1_2_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexEnviv(target, pname, params);
+}
+
+void gl1_2_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexEnvi(target, pname, param);
+}
+
+void gl1_2_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexEnvfv(target, pname, params);
+}
+
+void gl1_2_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexEnvf(target, pname, param);
+}
+
+void gl1_2_glShadeModel(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glShadeModel(mode);
+}
+
+void gl1_2_glPolygonStipple(void *_glfuncs, const GLubyte* mask)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPolygonStipple(mask);
+}
+
+void gl1_2_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMaterialiv(face, pname, params);
+}
+
+void gl1_2_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMateriali(face, pname, param);
+}
+
+void gl1_2_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMaterialfv(face, pname, params);
+}
+
+void gl1_2_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMaterialf(face, pname, param);
+}
+
+void gl1_2_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLineStipple(factor, pattern);
+}
+
+void gl1_2_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLightModeliv(pname, params);
+}
+
+void gl1_2_glLightModeli(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLightModeli(pname, param);
+}
+
+void gl1_2_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLightModelfv(pname, params);
+}
+
+void gl1_2_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLightModelf(pname, param);
+}
+
+void gl1_2_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLightiv(light, pname, params);
+}
+
+void gl1_2_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLighti(light, pname, param);
+}
+
+void gl1_2_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLightfv(light, pname, params);
+}
+
+void gl1_2_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glLightf(light, pname, param);
+}
+
+void gl1_2_glFogiv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glFogiv(pname, params);
+}
+
+void gl1_2_glFogi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glFogi(pname, param);
+}
+
+void gl1_2_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glFogfv(pname, params);
+}
+
+void gl1_2_glFogf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glFogf(pname, param);
+}
+
+void gl1_2_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColorMaterial(face, mode);
+}
+
+void gl1_2_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glClipPlane(plane, equation);
+}
+
+void gl1_2_glVertex4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex4sv(v);
+}
+
+void gl1_2_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex4s(x, y, z, w);
+}
+
+void gl1_2_glVertex4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex4iv(v);
+}
+
+void gl1_2_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex4i(x, y, z, w);
+}
+
+void gl1_2_glVertex4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex4fv(v);
+}
+
+void gl1_2_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex4f(x, y, z, w);
+}
+
+void gl1_2_glVertex4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex4dv(v);
+}
+
+void gl1_2_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex4d(x, y, z, w);
+}
+
+void gl1_2_glVertex3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex3sv(v);
+}
+
+void gl1_2_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex3s(x, y, z);
+}
+
+void gl1_2_glVertex3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex3iv(v);
+}
+
+void gl1_2_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex3i(x, y, z);
+}
+
+void gl1_2_glVertex3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex3fv(v);
+}
+
+void gl1_2_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex3f(x, y, z);
+}
+
+void gl1_2_glVertex3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex3dv(v);
+}
+
+void gl1_2_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex3d(x, y, z);
+}
+
+void gl1_2_glVertex2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex2sv(v);
+}
+
+void gl1_2_glVertex2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex2s(x, y);
+}
+
+void gl1_2_glVertex2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex2iv(v);
+}
+
+void gl1_2_glVertex2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex2i(x, y);
+}
+
+void gl1_2_glVertex2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex2fv(v);
+}
+
+void gl1_2_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex2f(x, y);
+}
+
+void gl1_2_glVertex2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex2dv(v);
+}
+
+void gl1_2_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertex2d(x, y);
+}
+
+void gl1_2_glTexCoord4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord4sv(v);
+}
+
+void gl1_2_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord4s(s, t, r, q);
+}
+
+void gl1_2_glTexCoord4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord4iv(v);
+}
+
+void gl1_2_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord4i(s, t, r, q);
+}
+
+void gl1_2_glTexCoord4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord4fv(v);
+}
+
+void gl1_2_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord4f(s, t, r, q);
+}
+
+void gl1_2_glTexCoord4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord4dv(v);
+}
+
+void gl1_2_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord4d(s, t, r, q);
+}
+
+void gl1_2_glTexCoord3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord3sv(v);
+}
+
+void gl1_2_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord3s(s, t, r);
+}
+
+void gl1_2_glTexCoord3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord3iv(v);
+}
+
+void gl1_2_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord3i(s, t, r);
+}
+
+void gl1_2_glTexCoord3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord3fv(v);
+}
+
+void gl1_2_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord3f(s, t, r);
+}
+
+void gl1_2_glTexCoord3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord3dv(v);
+}
+
+void gl1_2_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord3d(s, t, r);
+}
+
+void gl1_2_glTexCoord2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord2sv(v);
+}
+
+void gl1_2_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord2s(s, t);
+}
+
+void gl1_2_glTexCoord2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord2iv(v);
+}
+
+void gl1_2_glTexCoord2i(void *_glfuncs, GLint s, GLint t)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord2i(s, t);
+}
+
+void gl1_2_glTexCoord2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord2fv(v);
+}
+
+void gl1_2_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord2f(s, t);
+}
+
+void gl1_2_glTexCoord2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord2dv(v);
+}
+
+void gl1_2_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord2d(s, t);
+}
+
+void gl1_2_glTexCoord1sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord1sv(v);
+}
+
+void gl1_2_glTexCoord1s(void *_glfuncs, GLshort s)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord1s(s);
+}
+
+void gl1_2_glTexCoord1iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord1iv(v);
+}
+
+void gl1_2_glTexCoord1i(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord1i(s);
+}
+
+void gl1_2_glTexCoord1fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord1fv(v);
+}
+
+void gl1_2_glTexCoord1f(void *_glfuncs, GLfloat s)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord1f(s);
+}
+
+void gl1_2_glTexCoord1dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord1dv(v);
+}
+
+void gl1_2_glTexCoord1d(void *_glfuncs, GLdouble s)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoord1d(s);
+}
+
+void gl1_2_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRectsv(v1, v2);
+}
+
+void gl1_2_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRects(x1, y1, x2, y2);
+}
+
+void gl1_2_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRectiv(v1, v2);
+}
+
+void gl1_2_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRecti(x1, y1, x2, y2);
+}
+
+void gl1_2_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRectfv(v1, v2);
+}
+
+void gl1_2_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRectf(x1, y1, x2, y2);
+}
+
+void gl1_2_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRectdv(v1, v2);
+}
+
+void gl1_2_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRectd(x1, y1, x2, y2);
+}
+
+void gl1_2_glRasterPos4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos4sv(v);
+}
+
+void gl1_2_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos4s(x, y, z, w);
+}
+
+void gl1_2_glRasterPos4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos4iv(v);
+}
+
+void gl1_2_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos4i(x, y, z, w);
+}
+
+void gl1_2_glRasterPos4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos4fv(v);
+}
+
+void gl1_2_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos4f(x, y, z, w);
+}
+
+void gl1_2_glRasterPos4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos4dv(v);
+}
+
+void gl1_2_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos4d(x, y, z, w);
+}
+
+void gl1_2_glRasterPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos3sv(v);
+}
+
+void gl1_2_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos3s(x, y, z);
+}
+
+void gl1_2_glRasterPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos3iv(v);
+}
+
+void gl1_2_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos3i(x, y, z);
+}
+
+void gl1_2_glRasterPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos3fv(v);
+}
+
+void gl1_2_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos3f(x, y, z);
+}
+
+void gl1_2_glRasterPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos3dv(v);
+}
+
+void gl1_2_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos3d(x, y, z);
+}
+
+void gl1_2_glRasterPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos2sv(v);
+}
+
+void gl1_2_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos2s(x, y);
+}
+
+void gl1_2_glRasterPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos2iv(v);
+}
+
+void gl1_2_glRasterPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos2i(x, y);
+}
+
+void gl1_2_glRasterPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos2fv(v);
+}
+
+void gl1_2_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos2f(x, y);
+}
+
+void gl1_2_glRasterPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos2dv(v);
+}
+
+void gl1_2_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glRasterPos2d(x, y);
+}
+
+void gl1_2_glNormal3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glNormal3sv(v);
+}
+
+void gl1_2_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glNormal3s(nx, ny, nz);
+}
+
+void gl1_2_glNormal3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glNormal3iv(v);
+}
+
+void gl1_2_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glNormal3i(nx, ny, nz);
+}
+
+void gl1_2_glNormal3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glNormal3fv(v);
+}
+
+void gl1_2_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glNormal3f(nx, ny, nz);
+}
+
+void gl1_2_glNormal3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glNormal3dv(v);
+}
+
+void gl1_2_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glNormal3d(nx, ny, nz);
+}
+
+void gl1_2_glNormal3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glNormal3bv(v);
+}
+
+void gl1_2_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glNormal3b(nx, ny, nz);
+}
+
+void gl1_2_glIndexsv(void *_glfuncs, const GLshort* c)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glIndexsv(c);
+}
+
+void gl1_2_glIndexs(void *_glfuncs, GLshort c)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glIndexs(c);
+}
+
+void gl1_2_glIndexiv(void *_glfuncs, const GLint* c)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glIndexiv(c);
+}
+
+void gl1_2_glIndexi(void *_glfuncs, GLint c)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glIndexi(c);
+}
+
+void gl1_2_glIndexfv(void *_glfuncs, const GLfloat* c)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glIndexfv(c);
+}
+
+void gl1_2_glIndexf(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glIndexf(c);
+}
+
+void gl1_2_glIndexdv(void *_glfuncs, const GLdouble* c)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glIndexdv(c);
+}
+
+void gl1_2_glIndexd(void *_glfuncs, GLdouble c)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glIndexd(c);
+}
+
+void gl1_2_glEnd(void *_glfuncs)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEnd();
+}
+
+void gl1_2_glEdgeFlagv(void *_glfuncs, const GLboolean* flag)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEdgeFlagv(flag);
+}
+
+void gl1_2_glEdgeFlag(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEdgeFlag(flag);
+}
+
+void gl1_2_glColor4usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4usv(v);
+}
+
+void gl1_2_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4us(red, green, blue, alpha);
+}
+
+void gl1_2_glColor4uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4uiv(v);
+}
+
+void gl1_2_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4ui(red, green, blue, alpha);
+}
+
+void gl1_2_glColor4ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4ubv(v);
+}
+
+void gl1_2_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4ub(red, green, blue, alpha);
+}
+
+void gl1_2_glColor4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4sv(v);
+}
+
+void gl1_2_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4s(red, green, blue, alpha);
+}
+
+void gl1_2_glColor4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4iv(v);
+}
+
+void gl1_2_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4i(red, green, blue, alpha);
+}
+
+void gl1_2_glColor4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4fv(v);
+}
+
+void gl1_2_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4f(red, green, blue, alpha);
+}
+
+void gl1_2_glColor4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4dv(v);
+}
+
+void gl1_2_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4d(red, green, blue, alpha);
+}
+
+void gl1_2_glColor4bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4bv(v);
+}
+
+void gl1_2_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor4b(red, green, blue, alpha);
+}
+
+void gl1_2_glColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3usv(v);
+}
+
+void gl1_2_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3us(red, green, blue);
+}
+
+void gl1_2_glColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3uiv(v);
+}
+
+void gl1_2_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3ui(red, green, blue);
+}
+
+void gl1_2_glColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3ubv(v);
+}
+
+void gl1_2_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3ub(red, green, blue);
+}
+
+void gl1_2_glColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3sv(v);
+}
+
+void gl1_2_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3s(red, green, blue);
+}
+
+void gl1_2_glColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3iv(v);
+}
+
+void gl1_2_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3i(red, green, blue);
+}
+
+void gl1_2_glColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3fv(v);
+}
+
+void gl1_2_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3f(red, green, blue);
+}
+
+void gl1_2_glColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3dv(v);
+}
+
+void gl1_2_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3d(red, green, blue);
+}
+
+void gl1_2_glColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3bv(v);
+}
+
+void gl1_2_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColor3b(red, green, blue);
+}
+
+void gl1_2_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
+}
+
+void gl1_2_glBegin(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glBegin(mode);
+}
+
+void gl1_2_glListBase(void *_glfuncs, GLuint base)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glListBase(base);
+}
+
+GLuint gl1_2_glGenLists(void *_glfuncs, GLsizei range_)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ return _qglfuncs->glGenLists(range_);
+}
+
+void gl1_2_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glDeleteLists(list, range_);
+}
+
+void gl1_2_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glCallLists(n, gltype, lists);
+}
+
+void gl1_2_glCallList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glCallList(list);
+}
+
+void gl1_2_glEndList(void *_glfuncs)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEndList();
+}
+
+void gl1_2_glNewList(void *_glfuncs, GLuint list, GLenum mode)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glNewList(list, mode);
+}
+
+void gl1_2_glPushClientAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPushClientAttrib(mask);
+}
+
+void gl1_2_glPopClientAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPopClientAttrib();
+}
+
+void gl1_2_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glPrioritizeTextures(n, textures, priorities);
+}
+
+GLboolean gl1_2_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ return _qglfuncs->glAreTexturesResident(n, textures, residences);
+}
+
+void gl1_2_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glVertexPointer(size, gltype, stride, pointer);
+}
+
+void gl1_2_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glTexCoordPointer(size, gltype, stride, pointer);
+}
+
+void gl1_2_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glNormalPointer(gltype, stride, pointer);
+}
+
+void gl1_2_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glInterleavedArrays(format, stride, pointer);
+}
+
+void gl1_2_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glIndexPointer(gltype, stride, pointer);
+}
+
+void gl1_2_glEnableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEnableClientState(array);
+}
+
+void gl1_2_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glEdgeFlagPointer(stride, pointer);
+}
+
+void gl1_2_glDisableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glDisableClientState(array);
+}
+
+void gl1_2_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColorPointer(size, gltype, stride, pointer);
+}
+
+void gl1_2_glArrayElement(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glArrayElement(i);
+}
+
+void gl1_2_glResetMinmax(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glResetMinmax(target);
+}
+
+void gl1_2_glResetHistogram(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glResetHistogram(target);
+}
+
+void gl1_2_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glMinmax(target, internalFormat, sink);
+}
+
+void gl1_2_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glHistogram(target, width, internalFormat, sink);
+}
+
+void gl1_2_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameteriv(target, pname, params);
+}
+
+void gl1_2_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameterfv(target, pname, params);
+}
+
+void gl1_2_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetMinmax(target, reset, format, gltype, values);
+}
+
+void gl1_2_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameteriv(target, pname, params);
+}
+
+void gl1_2_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameterfv(target, pname, params);
+}
+
+void gl1_2_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetHistogram(target, reset, format, gltype, values);
+}
+
+void gl1_2_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glSeparableFilter2D(target, internalFormat, width, height, format, gltype, row, column);
+}
+
+void gl1_2_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetSeparableFilter(target, format, gltype, row, column, span);
+}
+
+void gl1_2_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameteriv(target, pname, params);
+}
+
+void gl1_2_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameterfv(target, pname, params);
+}
+
+void gl1_2_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetConvolutionFilter(target, format, gltype, image);
+}
+
+void gl1_2_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter2D(target, internalFormat, x, y, width, height);
+}
+
+void gl1_2_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter1D(target, internalFormat, x, y, width);
+}
+
+void gl1_2_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteriv(target, pname, params);
+}
+
+void gl1_2_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteri(target, pname, params);
+}
+
+void gl1_2_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterfv(target, pname, params);
+}
+
+void gl1_2_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterf(target, pname, params);
+}
+
+void gl1_2_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter2D(target, internalFormat, width, height, format, gltype, image);
+}
+
+void gl1_2_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter1D(target, internalFormat, width, format, gltype, image);
+}
+
+void gl1_2_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glCopyColorSubTable(target, start, x, y, width);
+}
+
+void gl1_2_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColorSubTable(target, start, count, format, gltype, data);
+}
+
+void gl1_2_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameteriv(target, pname, params);
+}
+
+void gl1_2_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameterfv(target, pname, params);
+}
+
+void gl1_2_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glGetColorTable(target, format, gltype, table);
+}
+
+void gl1_2_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glCopyColorTable(target, internalFormat, x, y, width);
+}
+
+void gl1_2_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColorTableParameteriv(target, pname, params);
+}
+
+void gl1_2_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColorTableParameterfv(target, pname, params);
+}
+
+void gl1_2_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table)
+{
+ QOpenGLFunctions_1_2* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_2*>(_glfuncs);
+ _qglfuncs->glColorTable(target, internalFormat, width, format, gltype, table);
+}
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.2/funcs.h b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.2/funcs.h
new file mode 100644
index 000000000..958c34935
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.2/funcs.h
@@ -0,0 +1,414 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#ifndef __cplusplus
+#include <inttypes.h>
+#include <stddef.h>
+typedef unsigned int GLenum;
+typedef unsigned char GLboolean;
+typedef unsigned int GLbitfield;
+typedef void GLvoid;
+typedef char GLchar;
+typedef signed char GLbyte; /* 1-byte signed */
+typedef short GLshort; /* 2-byte signed */
+typedef int GLint; /* 4-byte signed */
+typedef unsigned char GLubyte; /* 1-byte unsigned */
+typedef unsigned short GLushort; /* 2-byte unsigned */
+typedef unsigned int GLuint; /* 4-byte unsigned */
+typedef int GLsizei; /* 4-byte signed */
+typedef float GLfloat; /* single precision float */
+typedef float GLclampf; /* single precision float in [0,1] */
+typedef double GLdouble; /* double precision float */
+typedef double GLclampd; /* double precision float in [0,1] */
+typedef int64_t GLint64;
+typedef uint64_t GLuint64;
+typedef ptrdiff_t GLintptr;
+typedef ptrdiff_t GLsizeiptr;
+typedef ptrdiff_t GLintptrARB;
+typedef ptrdiff_t GLsizeiptrARB;
+typedef struct __GLsync *GLsync;
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *gl1_2_funcs();
+
+void gl1_2_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_2_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal);
+GLboolean gl1_2_glIsEnabled(void *_glfuncs, GLenum cap);
+void gl1_2_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params);
+void gl1_2_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params);
+void gl1_2_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_2_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_2_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl1_2_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params);
+void gl1_2_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params);
+GLenum gl1_2_glGetError(void *_glfuncs);
+void gl1_2_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params);
+void gl1_2_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params);
+void gl1_2_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl1_2_glReadBuffer(void *_glfuncs, GLenum mode);
+void gl1_2_glPixelStorei(void *_glfuncs, GLenum pname, GLint param);
+void gl1_2_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_2_glDepthFunc(void *_glfuncs, GLenum glfunc);
+void gl1_2_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass);
+void gl1_2_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask);
+void gl1_2_glLogicOp(void *_glfuncs, GLenum opcode);
+void gl1_2_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor);
+void gl1_2_glFlush(void *_glfuncs);
+void gl1_2_glFinish(void *_glfuncs);
+void gl1_2_glEnable(void *_glfuncs, GLenum cap);
+void gl1_2_glDisable(void *_glfuncs, GLenum cap);
+void gl1_2_glDepthMask(void *_glfuncs, GLboolean flag);
+void gl1_2_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+void gl1_2_glStencilMask(void *_glfuncs, GLuint mask);
+void gl1_2_glClearDepth(void *_glfuncs, GLdouble depth);
+void gl1_2_glClearStencil(void *_glfuncs, GLint s);
+void gl1_2_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_2_glClear(void *_glfuncs, GLbitfield mask);
+void gl1_2_glDrawBuffer(void *_glfuncs, GLenum mode);
+void gl1_2_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_2_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_2_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_2_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl1_2_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_2_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl1_2_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_2_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode);
+void gl1_2_glPointSize(void *_glfuncs, GLfloat size);
+void gl1_2_glLineWidth(void *_glfuncs, GLfloat width);
+void gl1_2_glHint(void *_glfuncs, GLenum target, GLenum mode);
+void gl1_2_glFrontFace(void *_glfuncs, GLenum mode);
+void gl1_2_glCullFace(void *_glfuncs, GLenum mode);
+void gl1_2_glIndexubv(void *_glfuncs, const GLubyte* c);
+void gl1_2_glIndexub(void *_glfuncs, GLubyte c);
+GLboolean gl1_2_glIsTexture(void *_glfuncs, GLuint texture);
+void gl1_2_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures);
+void gl1_2_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures);
+void gl1_2_glBindTexture(void *_glfuncs, GLenum target, GLuint texture);
+void gl1_2_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_2_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_2_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_2_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+void gl1_2_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+void gl1_2_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
+void gl1_2_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units);
+void gl1_2_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl1_2_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count);
+void gl1_2_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_2_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_2_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_2_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl1_2_glBlendEquation(void *_glfuncs, GLenum mode);
+void gl1_2_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_2_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_2_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_2_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_2_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_2_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+void gl1_2_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+void gl1_2_glPushMatrix(void *_glfuncs);
+void gl1_2_glPopMatrix(void *_glfuncs);
+void gl1_2_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+void gl1_2_glMultMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_2_glMultMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_2_glMatrixMode(void *_glfuncs, GLenum mode);
+void gl1_2_glLoadMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_2_glLoadMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_2_glLoadIdentity(void *_glfuncs);
+void gl1_2_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLboolean gl1_2_glIsList(void *_glfuncs, GLuint list);
+void gl1_2_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params);
+void gl1_2_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params);
+void gl1_2_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params);
+void gl1_2_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_2_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_2_glGetPolygonStipple(void *_glfuncs, GLubyte* mask);
+void gl1_2_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values);
+void gl1_2_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values);
+void gl1_2_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values);
+void gl1_2_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params);
+void gl1_2_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params);
+void gl1_2_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v);
+void gl1_2_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v);
+void gl1_2_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v);
+void gl1_2_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params);
+void gl1_2_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params);
+void gl1_2_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation);
+void gl1_2_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_2_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype);
+void gl1_2_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values);
+void gl1_2_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values);
+void gl1_2_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values);
+void gl1_2_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param);
+void gl1_2_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_2_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor);
+void gl1_2_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref);
+void gl1_2_glEvalPoint2(void *_glfuncs, GLint i, GLint j);
+void gl1_2_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
+void gl1_2_glEvalPoint1(void *_glfuncs, GLint i);
+void gl1_2_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2);
+void gl1_2_glEvalCoord2fv(void *_glfuncs, const GLfloat* u);
+void gl1_2_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v);
+void gl1_2_glEvalCoord2dv(void *_glfuncs, const GLdouble* u);
+void gl1_2_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v);
+void gl1_2_glEvalCoord1fv(void *_glfuncs, const GLfloat* u);
+void gl1_2_glEvalCoord1f(void *_glfuncs, GLfloat u);
+void gl1_2_glEvalCoord1dv(void *_glfuncs, const GLdouble* u);
+void gl1_2_glEvalCoord1d(void *_glfuncs, GLdouble u);
+void gl1_2_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
+void gl1_2_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
+void gl1_2_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2);
+void gl1_2_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2);
+void gl1_2_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points);
+void gl1_2_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points);
+void gl1_2_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points);
+void gl1_2_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points);
+void gl1_2_glPushAttrib(void *_glfuncs, GLbitfield mask);
+void gl1_2_glPopAttrib(void *_glfuncs);
+void gl1_2_glAccum(void *_glfuncs, GLenum op, GLfloat value);
+void gl1_2_glIndexMask(void *_glfuncs, GLuint mask);
+void gl1_2_glClearIndex(void *_glfuncs, GLfloat c);
+void gl1_2_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_2_glPushName(void *_glfuncs, GLuint name);
+void gl1_2_glPopName(void *_glfuncs);
+void gl1_2_glPassThrough(void *_glfuncs, GLfloat token);
+void gl1_2_glLoadName(void *_glfuncs, GLuint name);
+void gl1_2_glInitNames(void *_glfuncs);
+GLint gl1_2_glRenderMode(void *_glfuncs, GLenum mode);
+void gl1_2_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer);
+void gl1_2_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer);
+void gl1_2_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params);
+void gl1_2_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param);
+void gl1_2_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params);
+void gl1_2_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param);
+void gl1_2_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params);
+void gl1_2_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param);
+void gl1_2_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_2_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl1_2_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_2_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl1_2_glShadeModel(void *_glfuncs, GLenum mode);
+void gl1_2_glPolygonStipple(void *_glfuncs, const GLubyte* mask);
+void gl1_2_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params);
+void gl1_2_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param);
+void gl1_2_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params);
+void gl1_2_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param);
+void gl1_2_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern);
+void gl1_2_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl1_2_glLightModeli(void *_glfuncs, GLenum pname, GLint param);
+void gl1_2_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl1_2_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_2_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params);
+void gl1_2_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param);
+void gl1_2_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params);
+void gl1_2_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param);
+void gl1_2_glFogiv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl1_2_glFogi(void *_glfuncs, GLenum pname, GLint param);
+void gl1_2_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl1_2_glFogf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_2_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode);
+void gl1_2_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation);
+void gl1_2_glVertex4sv(void *_glfuncs, const GLshort* v);
+void gl1_2_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl1_2_glVertex4iv(void *_glfuncs, const GLint* v);
+void gl1_2_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl1_2_glVertex4fv(void *_glfuncs, const GLfloat* v);
+void gl1_2_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl1_2_glVertex4dv(void *_glfuncs, const GLdouble* v);
+void gl1_2_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl1_2_glVertex3sv(void *_glfuncs, const GLshort* v);
+void gl1_2_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl1_2_glVertex3iv(void *_glfuncs, const GLint* v);
+void gl1_2_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl1_2_glVertex3fv(void *_glfuncs, const GLfloat* v);
+void gl1_2_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_2_glVertex3dv(void *_glfuncs, const GLdouble* v);
+void gl1_2_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_2_glVertex2sv(void *_glfuncs, const GLshort* v);
+void gl1_2_glVertex2s(void *_glfuncs, GLshort x, GLshort y);
+void gl1_2_glVertex2iv(void *_glfuncs, const GLint* v);
+void gl1_2_glVertex2i(void *_glfuncs, GLint x, GLint y);
+void gl1_2_glVertex2fv(void *_glfuncs, const GLfloat* v);
+void gl1_2_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl1_2_glVertex2dv(void *_glfuncs, const GLdouble* v);
+void gl1_2_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl1_2_glTexCoord4sv(void *_glfuncs, const GLshort* v);
+void gl1_2_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl1_2_glTexCoord4iv(void *_glfuncs, const GLint* v);
+void gl1_2_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q);
+void gl1_2_glTexCoord4fv(void *_glfuncs, const GLfloat* v);
+void gl1_2_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl1_2_glTexCoord4dv(void *_glfuncs, const GLdouble* v);
+void gl1_2_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl1_2_glTexCoord3sv(void *_glfuncs, const GLshort* v);
+void gl1_2_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r);
+void gl1_2_glTexCoord3iv(void *_glfuncs, const GLint* v);
+void gl1_2_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r);
+void gl1_2_glTexCoord3fv(void *_glfuncs, const GLfloat* v);
+void gl1_2_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r);
+void gl1_2_glTexCoord3dv(void *_glfuncs, const GLdouble* v);
+void gl1_2_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r);
+void gl1_2_glTexCoord2sv(void *_glfuncs, const GLshort* v);
+void gl1_2_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t);
+void gl1_2_glTexCoord2iv(void *_glfuncs, const GLint* v);
+void gl1_2_glTexCoord2i(void *_glfuncs, GLint s, GLint t);
+void gl1_2_glTexCoord2fv(void *_glfuncs, const GLfloat* v);
+void gl1_2_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t);
+void gl1_2_glTexCoord2dv(void *_glfuncs, const GLdouble* v);
+void gl1_2_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t);
+void gl1_2_glTexCoord1sv(void *_glfuncs, const GLshort* v);
+void gl1_2_glTexCoord1s(void *_glfuncs, GLshort s);
+void gl1_2_glTexCoord1iv(void *_glfuncs, const GLint* v);
+void gl1_2_glTexCoord1i(void *_glfuncs, GLint s);
+void gl1_2_glTexCoord1fv(void *_glfuncs, const GLfloat* v);
+void gl1_2_glTexCoord1f(void *_glfuncs, GLfloat s);
+void gl1_2_glTexCoord1dv(void *_glfuncs, const GLdouble* v);
+void gl1_2_glTexCoord1d(void *_glfuncs, GLdouble s);
+void gl1_2_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2);
+void gl1_2_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2);
+void gl1_2_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2);
+void gl1_2_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2);
+void gl1_2_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2);
+void gl1_2_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
+void gl1_2_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2);
+void gl1_2_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
+void gl1_2_glRasterPos4sv(void *_glfuncs, const GLshort* v);
+void gl1_2_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl1_2_glRasterPos4iv(void *_glfuncs, const GLint* v);
+void gl1_2_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl1_2_glRasterPos4fv(void *_glfuncs, const GLfloat* v);
+void gl1_2_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl1_2_glRasterPos4dv(void *_glfuncs, const GLdouble* v);
+void gl1_2_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl1_2_glRasterPos3sv(void *_glfuncs, const GLshort* v);
+void gl1_2_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl1_2_glRasterPos3iv(void *_glfuncs, const GLint* v);
+void gl1_2_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl1_2_glRasterPos3fv(void *_glfuncs, const GLfloat* v);
+void gl1_2_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_2_glRasterPos3dv(void *_glfuncs, const GLdouble* v);
+void gl1_2_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_2_glRasterPos2sv(void *_glfuncs, const GLshort* v);
+void gl1_2_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl1_2_glRasterPos2iv(void *_glfuncs, const GLint* v);
+void gl1_2_glRasterPos2i(void *_glfuncs, GLint x, GLint y);
+void gl1_2_glRasterPos2fv(void *_glfuncs, const GLfloat* v);
+void gl1_2_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl1_2_glRasterPos2dv(void *_glfuncs, const GLdouble* v);
+void gl1_2_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl1_2_glNormal3sv(void *_glfuncs, const GLshort* v);
+void gl1_2_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz);
+void gl1_2_glNormal3iv(void *_glfuncs, const GLint* v);
+void gl1_2_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz);
+void gl1_2_glNormal3fv(void *_glfuncs, const GLfloat* v);
+void gl1_2_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz);
+void gl1_2_glNormal3dv(void *_glfuncs, const GLdouble* v);
+void gl1_2_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz);
+void gl1_2_glNormal3bv(void *_glfuncs, const GLbyte* v);
+void gl1_2_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz);
+void gl1_2_glIndexsv(void *_glfuncs, const GLshort* c);
+void gl1_2_glIndexs(void *_glfuncs, GLshort c);
+void gl1_2_glIndexiv(void *_glfuncs, const GLint* c);
+void gl1_2_glIndexi(void *_glfuncs, GLint c);
+void gl1_2_glIndexfv(void *_glfuncs, const GLfloat* c);
+void gl1_2_glIndexf(void *_glfuncs, GLfloat c);
+void gl1_2_glIndexdv(void *_glfuncs, const GLdouble* c);
+void gl1_2_glIndexd(void *_glfuncs, GLdouble c);
+void gl1_2_glEnd(void *_glfuncs);
+void gl1_2_glEdgeFlagv(void *_glfuncs, const GLboolean* flag);
+void gl1_2_glEdgeFlag(void *_glfuncs, GLboolean flag);
+void gl1_2_glColor4usv(void *_glfuncs, const GLushort* v);
+void gl1_2_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha);
+void gl1_2_glColor4uiv(void *_glfuncs, const GLuint* v);
+void gl1_2_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha);
+void gl1_2_glColor4ubv(void *_glfuncs, const GLubyte* v);
+void gl1_2_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
+void gl1_2_glColor4sv(void *_glfuncs, const GLshort* v);
+void gl1_2_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha);
+void gl1_2_glColor4iv(void *_glfuncs, const GLint* v);
+void gl1_2_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha);
+void gl1_2_glColor4fv(void *_glfuncs, const GLfloat* v);
+void gl1_2_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_2_glColor4dv(void *_glfuncs, const GLdouble* v);
+void gl1_2_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
+void gl1_2_glColor4bv(void *_glfuncs, const GLbyte* v);
+void gl1_2_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
+void gl1_2_glColor3usv(void *_glfuncs, const GLushort* v);
+void gl1_2_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl1_2_glColor3uiv(void *_glfuncs, const GLuint* v);
+void gl1_2_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl1_2_glColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl1_2_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl1_2_glColor3sv(void *_glfuncs, const GLshort* v);
+void gl1_2_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl1_2_glColor3iv(void *_glfuncs, const GLint* v);
+void gl1_2_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl1_2_glColor3fv(void *_glfuncs, const GLfloat* v);
+void gl1_2_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl1_2_glColor3dv(void *_glfuncs, const GLdouble* v);
+void gl1_2_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl1_2_glColor3bv(void *_glfuncs, const GLbyte* v);
+void gl1_2_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl1_2_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap);
+void gl1_2_glBegin(void *_glfuncs, GLenum mode);
+void gl1_2_glListBase(void *_glfuncs, GLuint base);
+GLuint gl1_2_glGenLists(void *_glfuncs, GLsizei range_);
+void gl1_2_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_);
+void gl1_2_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists);
+void gl1_2_glCallList(void *_glfuncs, GLuint list);
+void gl1_2_glEndList(void *_glfuncs);
+void gl1_2_glNewList(void *_glfuncs, GLuint list, GLenum mode);
+void gl1_2_glPushClientAttrib(void *_glfuncs, GLbitfield mask);
+void gl1_2_glPopClientAttrib(void *_glfuncs);
+void gl1_2_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities);
+GLboolean gl1_2_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences);
+void gl1_2_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_2_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_2_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_2_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer);
+void gl1_2_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_2_glEnableClientState(void *_glfuncs, GLenum array);
+void gl1_2_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer);
+void gl1_2_glDisableClientState(void *_glfuncs, GLenum array);
+void gl1_2_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_2_glArrayElement(void *_glfuncs, GLint i);
+void gl1_2_glResetMinmax(void *_glfuncs, GLenum target);
+void gl1_2_glResetHistogram(void *_glfuncs, GLenum target);
+void gl1_2_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink);
+void gl1_2_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink);
+void gl1_2_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_2_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_2_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl1_2_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_2_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_2_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl1_2_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column);
+void gl1_2_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span);
+void gl1_2_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_2_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_2_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image);
+void gl1_2_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_2_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl1_2_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_2_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params);
+void gl1_2_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_2_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params);
+void gl1_2_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image);
+void gl1_2_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image);
+void gl1_2_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+void gl1_2_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data);
+void gl1_2_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_2_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_2_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table);
+void gl1_2_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl1_2_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_2_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_2_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table);
+
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.2/gl.go b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.2/gl.go
new file mode 100644
index 000000000..a3f089e74
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.2/gl.go
@@ -0,0 +1,3152 @@
+// ** file automatically generated by glgen -- do not edit manually **
+
+package GL
+
+// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
+// #cgo LDFLAGS: -lstdc++
+// #cgo pkg-config: Qt5Core Qt5OpenGL
+//
+// #include "funcs.h"
+//
+// void free(void*);
+//
+import "C"
+
+import (
+ "fmt"
+ "reflect"
+ "unsafe"
+
+ "gopkg.in/qml.v1/gl/glbase"
+)
+
+// API returns a value that offers methods matching the OpenGL version 1.2 API.
+//
+// The returned API must not be used after the provided OpenGL context becomes invalid.
+func API(context glbase.Contexter) *GL {
+ gl := &GL{}
+ gl.funcs = C.gl1_2_funcs()
+ if gl.funcs == nil {
+ panic(fmt.Errorf("OpenGL version 1.2 is not available"))
+ }
+ return gl
+}
+
+// GL implements the OpenGL version 1.2 API. Values of this
+// type must be created via the API function, and it must not be used after
+// the associated OpenGL context becomes invalid.
+type GL struct {
+ funcs unsafe.Pointer
+}
+
+const (
+ FALSE = 0
+ TRUE = 1
+ NONE = 0
+
+ BYTE = 0x1400
+ UNSIGNED_BYTE = 0x1401
+ SHORT = 0x1402
+ UNSIGNED_SHORT = 0x1403
+ INT = 0x1404
+ UNSIGNED_INT = 0x1405
+ FLOAT = 0x1406
+ N2_BYTES = 0x1407
+ N3_BYTES = 0x1408
+ N4_BYTES = 0x1409
+ DOUBLE = 0x140A
+
+ ACCUM = 0x0100
+ LOAD = 0x0101
+ RETURN = 0x0102
+ MULT = 0x0103
+ ADD = 0x0104
+
+ ACCUM_BUFFER_BIT = 0x00000200
+ ALL_ATTRIB_BITS = 0xFFFFFFFF
+ COLOR_BUFFER_BIT = 0x00004000
+ CURRENT_BIT = 0x00000001
+ DEPTH_BUFFER_BIT = 0x00000100
+ ENABLE_BIT = 0x00002000
+ EVAL_BIT = 0x00010000
+ FOG_BIT = 0x00000080
+ HINT_BIT = 0x00008000
+ LIGHTING_BIT = 0x00000040
+ LINE_BIT = 0x00000004
+ LIST_BIT = 0x00020000
+ PIXEL_MODE_BIT = 0x00000020
+ POINT_BIT = 0x00000002
+ POLYGON_BIT = 0x00000008
+ POLYGON_STIPPLE_BIT = 0x00000010
+ SCISSOR_BIT = 0x00080000
+ STENCIL_BUFFER_BIT = 0x00000400
+ TEXTURE_BIT = 0x00040000
+ TRANSFORM_BIT = 0x00001000
+ VIEWPORT_BIT = 0x00000800
+
+ ALWAYS = 0x0207
+ EQUAL = 0x0202
+ GEQUAL = 0x0206
+ GREATER = 0x0204
+ LEQUAL = 0x0203
+ LESS = 0x0201
+ NEVER = 0x0200
+ NOTEQUAL = 0x0205
+
+ LOGIC_OP = 0x0BF1
+
+ DST_ALPHA = 0x0304
+ ONE = 1
+ ONE_MINUS_DST_ALPHA = 0x0305
+ ONE_MINUS_SRC_ALPHA = 0x0303
+ ONE_MINUS_SRC_COLOR = 0x0301
+ SRC_ALPHA = 0x0302
+ SRC_COLOR = 0x0300
+ ZERO = 0
+
+ DST_COLOR = 0x0306
+ ONE_MINUS_DST_COLOR = 0x0307
+ SRC_ALPHA_SATURATE = 0x0308
+
+ CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF
+ CLIENT_PIXEL_STORE_BIT = 0x00000001
+ CLIENT_VERTEX_ARRAY_BIT = 0x00000002
+
+ CLIP_PLANE0 = 0x3000
+ CLIP_PLANE1 = 0x3001
+ CLIP_PLANE2 = 0x3002
+ CLIP_PLANE3 = 0x3003
+ CLIP_PLANE4 = 0x3004
+ CLIP_PLANE5 = 0x3005
+
+ BACK = 0x0405
+ FRONT = 0x0404
+ FRONT_AND_BACK = 0x0408
+
+ AMBIENT = 0x1200
+ AMBIENT_AND_DIFFUSE = 0x1602
+ DIFFUSE = 0x1201
+ EMISSION = 0x1600
+ SPECULAR = 0x1202
+
+ AUX0 = 0x0409
+ AUX1 = 0x040A
+ AUX2 = 0x040B
+ AUX3 = 0x040C
+ BACK_LEFT = 0x0402
+ BACK_RIGHT = 0x0403
+ FRONT_LEFT = 0x0400
+ FRONT_RIGHT = 0x0401
+ LEFT = 0x0406
+ RIGHT = 0x0407
+
+ ALPHA_TEST = 0x0BC0
+ AUTO_NORMAL = 0x0D80
+ BLEND = 0x0BE2
+ COLOR_ARRAY = 0x8076
+ COLOR_LOGIC_OP = 0x0BF2
+ COLOR_MATERIAL = 0x0B57
+ CULL_FACE = 0x0B44
+ DEPTH_TEST = 0x0B71
+ DITHER = 0x0BD0
+ EDGE_FLAG_ARRAY = 0x8079
+ FOG = 0x0B60
+ INDEX_ARRAY = 0x8077
+ INDEX_LOGIC_OP = 0x0BF1
+ LIGHT0 = 0x4000
+ LIGHT1 = 0x4001
+ LIGHT2 = 0x4002
+ LIGHT3 = 0x4003
+ LIGHT4 = 0x4004
+ LIGHT5 = 0x4005
+ LIGHT6 = 0x4006
+ LIGHT7 = 0x4007
+ LIGHTING = 0x0B50
+ LINE_SMOOTH = 0x0B20
+ LINE_STIPPLE = 0x0B24
+ MAP1_COLOR_4 = 0x0D90
+ MAP1_INDEX = 0x0D91
+ MAP1_NORMAL = 0x0D92
+ MAP1_TEXTURE_COORD_1 = 0x0D93
+ MAP1_TEXTURE_COORD_2 = 0x0D94
+ MAP1_TEXTURE_COORD_3 = 0x0D95
+ MAP1_TEXTURE_COORD_4 = 0x0D96
+ MAP1_VERTEX_3 = 0x0D97
+ MAP1_VERTEX_4 = 0x0D98
+ MAP2_COLOR_4 = 0x0DB0
+ MAP2_INDEX = 0x0DB1
+ MAP2_NORMAL = 0x0DB2
+ MAP2_TEXTURE_COORD_1 = 0x0DB3
+ MAP2_TEXTURE_COORD_2 = 0x0DB4
+ MAP2_TEXTURE_COORD_3 = 0x0DB5
+ MAP2_TEXTURE_COORD_4 = 0x0DB6
+ MAP2_VERTEX_3 = 0x0DB7
+ MAP2_VERTEX_4 = 0x0DB8
+ NORMALIZE = 0x0BA1
+ NORMAL_ARRAY = 0x8075
+ POINT_SMOOTH = 0x0B10
+ POLYGON_OFFSET_FILL = 0x8037
+ POLYGON_OFFSET_LINE = 0x2A02
+ POLYGON_OFFSET_POINT = 0x2A01
+ POLYGON_SMOOTH = 0x0B41
+ POLYGON_STIPPLE = 0x0B42
+ SCISSOR_TEST = 0x0C11
+ STENCIL_TEST = 0x0B90
+ TEXTURE_1D = 0x0DE0
+ TEXTURE_2D = 0x0DE1
+ TEXTURE_COORD_ARRAY = 0x8078
+ TEXTURE_GEN_Q = 0x0C63
+ TEXTURE_GEN_R = 0x0C62
+ TEXTURE_GEN_S = 0x0C60
+ TEXTURE_GEN_T = 0x0C61
+ VERTEX_ARRAY = 0x8074
+
+ INVALID_ENUM = 0x0500
+ INVALID_OPERATION = 0x0502
+ INVALID_VALUE = 0x0501
+ NO_ERROR = 0
+ OUT_OF_MEMORY = 0x0505
+ STACK_OVERFLOW = 0x0503
+ STACK_UNDERFLOW = 0x0504
+
+ N2D = 0x0600
+ N3D = 0x0601
+ N3D_COLOR = 0x0602
+ N3D_COLOR_TEXTURE = 0x0603
+ N4D_COLOR_TEXTURE = 0x0604
+
+ BITMAP_TOKEN = 0x0704
+ COPY_PIXEL_TOKEN = 0x0706
+ DRAW_PIXEL_TOKEN = 0x0705
+ LINE_RESET_TOKEN = 0x0707
+ LINE_TOKEN = 0x0702
+ PASS_THROUGH_TOKEN = 0x0700
+ POINT_TOKEN = 0x0701
+ POLYGON_TOKEN = 0x0703
+
+ EXP = 0x0800
+ EXP2 = 0x0801
+ LINEAR = 0x2601
+
+ FOG_COLOR = 0x0B66
+ FOG_DENSITY = 0x0B62
+ FOG_END = 0x0B64
+ FOG_INDEX = 0x0B61
+ FOG_MODE = 0x0B65
+ FOG_START = 0x0B63
+
+ CCW = 0x0901
+ CW = 0x0900
+
+ COEFF = 0x0A00
+ DOMAIN = 0x0A02
+ ORDER = 0x0A01
+
+ PIXEL_MAP_A_TO_A = 0x0C79
+ PIXEL_MAP_B_TO_B = 0x0C78
+ PIXEL_MAP_G_TO_G = 0x0C77
+ PIXEL_MAP_I_TO_A = 0x0C75
+ PIXEL_MAP_I_TO_B = 0x0C74
+ PIXEL_MAP_I_TO_G = 0x0C73
+ PIXEL_MAP_I_TO_I = 0x0C70
+ PIXEL_MAP_I_TO_R = 0x0C72
+ PIXEL_MAP_R_TO_R = 0x0C76
+ PIXEL_MAP_S_TO_S = 0x0C71
+
+ ACCUM_ALPHA_BITS = 0x0D5B
+ ACCUM_BLUE_BITS = 0x0D5A
+ ACCUM_CLEAR_VALUE = 0x0B80
+ ACCUM_GREEN_BITS = 0x0D59
+ ACCUM_RED_BITS = 0x0D58
+ ALIASED_LINE_WIDTH_RANGE = 0x846E
+ ALIASED_POINT_SIZE_RANGE = 0x846D
+ ALPHA_BIAS = 0x0D1D
+ ALPHA_BITS = 0x0D55
+ ALPHA_SCALE = 0x0D1C
+ ALPHA_TEST_FUNC = 0x0BC1
+ ALPHA_TEST_REF = 0x0BC2
+ ATTRIB_STACK_DEPTH = 0x0BB0
+ AUX_BUFFERS = 0x0C00
+ BLEND_DST = 0x0BE0
+ BLEND_SRC = 0x0BE1
+ BLUE_BIAS = 0x0D1B
+ BLUE_BITS = 0x0D54
+ BLUE_SCALE = 0x0D1A
+ CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1
+ COLOR_ARRAY_SIZE = 0x8081
+ COLOR_ARRAY_STRIDE = 0x8083
+ COLOR_ARRAY_TYPE = 0x8082
+ COLOR_CLEAR_VALUE = 0x0C22
+ COLOR_MATERIAL_FACE = 0x0B55
+ COLOR_MATERIAL_PARAMETER = 0x0B56
+ COLOR_WRITEMASK = 0x0C23
+ CULL_FACE_MODE = 0x0B45
+ CURRENT_COLOR = 0x0B00
+ CURRENT_INDEX = 0x0B01
+ CURRENT_NORMAL = 0x0B02
+ CURRENT_RASTER_COLOR = 0x0B04
+ CURRENT_RASTER_DISTANCE = 0x0B09
+ CURRENT_RASTER_INDEX = 0x0B05
+ CURRENT_RASTER_POSITION = 0x0B07
+ CURRENT_RASTER_POSITION_VALID = 0x0B08
+ CURRENT_RASTER_TEXTURE_COORDS = 0x0B06
+ CURRENT_TEXTURE_COORDS = 0x0B03
+ DEPTH_BIAS = 0x0D1F
+ DEPTH_BITS = 0x0D56
+ DEPTH_CLEAR_VALUE = 0x0B73
+ DEPTH_FUNC = 0x0B74
+ DEPTH_RANGE = 0x0B70
+ DEPTH_SCALE = 0x0D1E
+ DEPTH_WRITEMASK = 0x0B72
+ DOUBLEBUFFER = 0x0C32
+ DRAW_BUFFER = 0x0C01
+ EDGE_FLAG = 0x0B43
+ EDGE_FLAG_ARRAY_STRIDE = 0x808C
+ FEEDBACK_BUFFER_SIZE = 0x0DF1
+ FEEDBACK_BUFFER_TYPE = 0x0DF2
+ FOG_HINT = 0x0C54
+ FRONT_FACE = 0x0B46
+ GREEN_BIAS = 0x0D19
+ GREEN_BITS = 0x0D53
+ GREEN_SCALE = 0x0D18
+ INDEX_ARRAY_STRIDE = 0x8086
+ INDEX_ARRAY_TYPE = 0x8085
+ INDEX_BITS = 0x0D51
+ INDEX_CLEAR_VALUE = 0x0C20
+ INDEX_MODE = 0x0C30
+ INDEX_OFFSET = 0x0D13
+ INDEX_SHIFT = 0x0D12
+ INDEX_WRITEMASK = 0x0C21
+ LIGHT_MODEL_AMBIENT = 0x0B53
+ LIGHT_MODEL_COLOR_CONTROL = 0x81F8
+ LIGHT_MODEL_LOCAL_VIEWER = 0x0B51
+ LIGHT_MODEL_TWO_SIDE = 0x0B52
+ LINE_SMOOTH_HINT = 0x0C52
+ LINE_STIPPLE_PATTERN = 0x0B25
+ LINE_STIPPLE_REPEAT = 0x0B26
+ LINE_WIDTH = 0x0B21
+ LINE_WIDTH_GRANULARITY = 0x0B23
+ LINE_WIDTH_RANGE = 0x0B22
+ LIST_BASE = 0x0B32
+ LIST_INDEX = 0x0B33
+ LIST_MODE = 0x0B30
+ LOGIC_OP_MODE = 0x0BF0
+ MAP1_GRID_DOMAIN = 0x0DD0
+ MAP1_GRID_SEGMENTS = 0x0DD1
+ MAP2_GRID_DOMAIN = 0x0DD2
+ MAP2_GRID_SEGMENTS = 0x0DD3
+ MAP_COLOR = 0x0D10
+ MAP_STENCIL = 0x0D11
+ MATRIX_MODE = 0x0BA0
+ MAX_ATTRIB_STACK_DEPTH = 0x0D35
+ MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B
+ MAX_CLIP_PLANES = 0x0D32
+ MAX_EVAL_ORDER = 0x0D30
+ MAX_LIGHTS = 0x0D31
+ MAX_LIST_NESTING = 0x0B31
+ MAX_MODELVIEW_STACK_DEPTH = 0x0D36
+ MAX_NAME_STACK_DEPTH = 0x0D37
+ MAX_PIXEL_MAP_TABLE = 0x0D34
+ MAX_PROJECTION_STACK_DEPTH = 0x0D38
+ MAX_TEXTURE_SIZE = 0x0D33
+ MAX_TEXTURE_STACK_DEPTH = 0x0D39
+ MAX_VIEWPORT_DIMS = 0x0D3A
+ MODELVIEW_MATRIX = 0x0BA6
+ MODELVIEW_STACK_DEPTH = 0x0BA3
+ NAME_STACK_DEPTH = 0x0D70
+ NORMAL_ARRAY_STRIDE = 0x807F
+ NORMAL_ARRAY_TYPE = 0x807E
+ PACK_ALIGNMENT = 0x0D05
+ PACK_LSB_FIRST = 0x0D01
+ PACK_ROW_LENGTH = 0x0D02
+ PACK_SKIP_PIXELS = 0x0D04
+ PACK_SKIP_ROWS = 0x0D03
+ PACK_SWAP_BYTES = 0x0D00
+ PERSPECTIVE_CORRECTION_HINT = 0x0C50
+ PIXEL_MAP_A_TO_A_SIZE = 0x0CB9
+ PIXEL_MAP_B_TO_B_SIZE = 0x0CB8
+ PIXEL_MAP_G_TO_G_SIZE = 0x0CB7
+ PIXEL_MAP_I_TO_A_SIZE = 0x0CB5
+ PIXEL_MAP_I_TO_B_SIZE = 0x0CB4
+ PIXEL_MAP_I_TO_G_SIZE = 0x0CB3
+ PIXEL_MAP_I_TO_I_SIZE = 0x0CB0
+ PIXEL_MAP_I_TO_R_SIZE = 0x0CB2
+ PIXEL_MAP_R_TO_R_SIZE = 0x0CB6
+ PIXEL_MAP_S_TO_S_SIZE = 0x0CB1
+ POINT_SIZE = 0x0B11
+ POINT_SIZE_GRANULARITY = 0x0B13
+ POINT_SIZE_RANGE = 0x0B12
+ POINT_SMOOTH_HINT = 0x0C51
+ POLYGON_MODE = 0x0B40
+ POLYGON_OFFSET_FACTOR = 0x8038
+ POLYGON_OFFSET_UNITS = 0x2A00
+ POLYGON_SMOOTH_HINT = 0x0C53
+ PROJECTION_MATRIX = 0x0BA7
+ PROJECTION_STACK_DEPTH = 0x0BA4
+ READ_BUFFER = 0x0C02
+ RED_BIAS = 0x0D15
+ RED_BITS = 0x0D52
+ RED_SCALE = 0x0D14
+ RENDER_MODE = 0x0C40
+ RGBA_MODE = 0x0C31
+ SCISSOR_BOX = 0x0C10
+ SELECTION_BUFFER_SIZE = 0x0DF4
+ SHADE_MODEL = 0x0B54
+ SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23
+ SMOOTH_LINE_WIDTH_RANGE = 0x0B22
+ SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13
+ SMOOTH_POINT_SIZE_RANGE = 0x0B12
+ STENCIL_BITS = 0x0D57
+ STENCIL_CLEAR_VALUE = 0x0B91
+ STENCIL_FAIL = 0x0B94
+ STENCIL_FUNC = 0x0B92
+ STENCIL_PASS_DEPTH_FAIL = 0x0B95
+ STENCIL_PASS_DEPTH_PASS = 0x0B96
+ STENCIL_REF = 0x0B97
+ STENCIL_VALUE_MASK = 0x0B93
+ STENCIL_WRITEMASK = 0x0B98
+ STEREO = 0x0C33
+ SUBPIXEL_BITS = 0x0D50
+ TEXTURE_BINDING_1D = 0x8068
+ TEXTURE_BINDING_2D = 0x8069
+ TEXTURE_BINDING_3D = 0x806A
+ TEXTURE_COORD_ARRAY_SIZE = 0x8088
+ TEXTURE_COORD_ARRAY_STRIDE = 0x808A
+ TEXTURE_COORD_ARRAY_TYPE = 0x8089
+ TEXTURE_MATRIX = 0x0BA8
+ TEXTURE_STACK_DEPTH = 0x0BA5
+ UNPACK_ALIGNMENT = 0x0CF5
+ UNPACK_LSB_FIRST = 0x0CF1
+ UNPACK_ROW_LENGTH = 0x0CF2
+ UNPACK_SKIP_PIXELS = 0x0CF4
+ UNPACK_SKIP_ROWS = 0x0CF3
+ UNPACK_SWAP_BYTES = 0x0CF0
+ VERTEX_ARRAY_SIZE = 0x807A
+ VERTEX_ARRAY_STRIDE = 0x807C
+ VERTEX_ARRAY_TYPE = 0x807B
+ VIEWPORT = 0x0BA2
+ ZOOM_X = 0x0D16
+ ZOOM_Y = 0x0D17
+
+ COLOR_ARRAY_POINTER = 0x8090
+ EDGE_FLAG_ARRAY_POINTER = 0x8093
+ FEEDBACK_BUFFER_POINTER = 0x0DF0
+ INDEX_ARRAY_POINTER = 0x8091
+ NORMAL_ARRAY_POINTER = 0x808F
+ SELECTION_BUFFER_POINTER = 0x0DF3
+ TEXTURE_COORD_ARRAY_POINTER = 0x8092
+ VERTEX_ARRAY_POINTER = 0x808E
+
+ TEXTURE_ALPHA_SIZE = 0x805F
+ TEXTURE_BLUE_SIZE = 0x805E
+ TEXTURE_BORDER = 0x1005
+ TEXTURE_BORDER_COLOR = 0x1004
+ TEXTURE_COMPONENTS = 0x1003
+ TEXTURE_GREEN_SIZE = 0x805D
+ TEXTURE_HEIGHT = 0x1001
+ TEXTURE_INTENSITY_SIZE = 0x8061
+ TEXTURE_INTERNAL_FORMAT = 0x1003
+ TEXTURE_LUMINANCE_SIZE = 0x8060
+ TEXTURE_MAG_FILTER = 0x2800
+ TEXTURE_MIN_FILTER = 0x2801
+ TEXTURE_PRIORITY = 0x8066
+ TEXTURE_RED_SIZE = 0x805C
+ TEXTURE_RESIDENT = 0x8067
+ TEXTURE_WIDTH = 0x1000
+ TEXTURE_WRAP_S = 0x2802
+ TEXTURE_WRAP_T = 0x2803
+
+ DONT_CARE = 0x1100
+ FASTEST = 0x1101
+ NICEST = 0x1102
+
+ C3F_V3F = 0x2A24
+ C4F_N3F_V3F = 0x2A26
+ C4UB_V2F = 0x2A22
+ C4UB_V3F = 0x2A23
+ N3F_V3F = 0x2A25
+ T2F_C3F_V3F = 0x2A2A
+ T2F_C4F_N3F_V3F = 0x2A2C
+ T2F_C4UB_V3F = 0x2A29
+ T2F_N3F_V3F = 0x2A2B
+ T2F_V3F = 0x2A27
+ T4F_C4F_N3F_V4F = 0x2A2D
+ T4F_V4F = 0x2A28
+ V2F = 0x2A20
+ V3F = 0x2A21
+
+ MODULATE = 0x2100
+ REPLACE = 0x1E01
+
+ SEPARATE_SPECULAR_COLOR = 0x81FA
+ SINGLE_COLOR = 0x81F9
+
+ CONSTANT_ATTENUATION = 0x1207
+ LINEAR_ATTENUATION = 0x1208
+ POSITION = 0x1203
+ QUADRATIC_ATTENUATION = 0x1209
+ SPOT_CUTOFF = 0x1206
+ SPOT_DIRECTION = 0x1204
+ SPOT_EXPONENT = 0x1205
+
+ COMPILE = 0x1300
+ COMPILE_AND_EXECUTE = 0x1301
+
+ AND = 0x1501
+ AND_INVERTED = 0x1504
+ AND_REVERSE = 0x1502
+ CLEAR = 0x1500
+ COPY = 0x1503
+ COPY_INVERTED = 0x150C
+ EQUIV = 0x1509
+ INVERT = 0x150A
+ NAND = 0x150E
+ NOOP = 0x1505
+ NOR = 0x1508
+ OR = 0x1507
+ OR_INVERTED = 0x150D
+ OR_REVERSE = 0x150B
+ SET = 0x150F
+ XOR = 0x1506
+
+ COLOR_INDEXES = 0x1603
+ SHININESS = 0x1601
+
+ MODELVIEW = 0x1700
+ PROJECTION = 0x1701
+ TEXTURE = 0x1702
+
+ LINE = 0x1B01
+ POINT = 0x1B00
+
+ FILL = 0x1B02
+
+ COLOR = 0x1800
+ DEPTH = 0x1801
+ STENCIL = 0x1802
+
+ ALPHA = 0x1906
+ BLUE = 0x1905
+ COLOR_INDEX = 0x1900
+ DEPTH_COMPONENT = 0x1902
+ GREEN = 0x1904
+ LUMINANCE = 0x1909
+ LUMINANCE_ALPHA = 0x190A
+ RED = 0x1903
+ RGB = 0x1907
+ RGBA = 0x1908
+ STENCIL_INDEX = 0x1901
+
+ ALPHA12 = 0x803D
+ ALPHA16 = 0x803E
+ ALPHA4 = 0x803B
+ ALPHA8 = 0x803C
+ INTENSITY = 0x8049
+ INTENSITY12 = 0x804C
+ INTENSITY16 = 0x804D
+ INTENSITY4 = 0x804A
+ INTENSITY8 = 0x804B
+ LUMINANCE12 = 0x8041
+ LUMINANCE12_ALPHA12 = 0x8047
+ LUMINANCE12_ALPHA4 = 0x8046
+ LUMINANCE16 = 0x8042
+ LUMINANCE16_ALPHA16 = 0x8048
+ LUMINANCE4 = 0x803F
+ LUMINANCE4_ALPHA4 = 0x8043
+ LUMINANCE6_ALPHA2 = 0x8044
+ LUMINANCE8 = 0x8040
+ LUMINANCE8_ALPHA8 = 0x8045
+ R3_G3_B2 = 0x2A10
+ RGB10 = 0x8052
+ RGB10_A2 = 0x8059
+ RGB12 = 0x8053
+ RGB16 = 0x8054
+ RGB4 = 0x804F
+ RGB5 = 0x8050
+ RGB5_A1 = 0x8057
+ RGB8 = 0x8051
+ RGBA12 = 0x805A
+ RGBA16 = 0x805B
+ RGBA2 = 0x8055
+ RGBA4 = 0x8056
+ RGBA8 = 0x8058
+
+ PACK_IMAGE_HEIGHT = 0x806C
+ PACK_SKIP_IMAGES = 0x806B
+ UNPACK_IMAGE_HEIGHT = 0x806E
+ UNPACK_SKIP_IMAGES = 0x806D
+
+ BITMAP = 0x1A00
+ UNSIGNED_BYTE_3_3_2 = 0x8032
+ UNSIGNED_INT_10_10_10_2 = 0x8036
+ UNSIGNED_INT_8_8_8_8 = 0x8035
+ UNSIGNED_SHORT_4_4_4_4 = 0x8033
+ UNSIGNED_SHORT_5_5_5_1 = 0x8034
+
+ LINES = 0x0001
+ LINE_LOOP = 0x0002
+ LINE_STRIP = 0x0003
+ POINTS = 0x0000
+ POLYGON = 0x0009
+ QUADS = 0x0007
+ QUAD_STRIP = 0x0008
+ TRIANGLES = 0x0004
+ TRIANGLE_FAN = 0x0006
+ TRIANGLE_STRIP = 0x0005
+
+ FEEDBACK = 0x1C01
+ RENDER = 0x1C00
+ SELECT = 0x1C02
+
+ FLAT = 0x1D00
+ SMOOTH = 0x1D01
+
+ DECR = 0x1E03
+ INCR = 0x1E02
+ KEEP = 0x1E00
+
+ EXTENSIONS = 0x1F03
+ RENDERER = 0x1F01
+ VENDOR = 0x1F00
+ VERSION = 0x1F02
+
+ S = 0x2000
+ T = 0x2001
+ R = 0x2002
+ Q = 0x2003
+
+ DECAL = 0x2101
+
+ TEXTURE_ENV_COLOR = 0x2201
+ TEXTURE_ENV_MODE = 0x2200
+
+ TEXTURE_ENV = 0x2300
+
+ EYE_LINEAR = 0x2400
+ OBJECT_LINEAR = 0x2401
+ SPHERE_MAP = 0x2402
+
+ EYE_PLANE = 0x2502
+ OBJECT_PLANE = 0x2501
+ TEXTURE_GEN_MODE = 0x2500
+
+ NEAREST = 0x2600
+
+ LINEAR_MIPMAP_LINEAR = 0x2703
+ LINEAR_MIPMAP_NEAREST = 0x2701
+ NEAREST_MIPMAP_LINEAR = 0x2702
+ NEAREST_MIPMAP_NEAREST = 0x2700
+
+ TEXTURE_WRAP_R = 0x8072
+
+ PROXY_TEXTURE_1D = 0x8063
+ PROXY_TEXTURE_2D = 0x8064
+ PROXY_TEXTURE_3D = 0x8070
+ TEXTURE_3D = 0x806F
+ TEXTURE_BASE_LEVEL = 0x813C
+ TEXTURE_MAX_LEVEL = 0x813D
+ TEXTURE_MAX_LOD = 0x813B
+ TEXTURE_MIN_LOD = 0x813A
+
+ CLAMP = 0x2900
+ CLAMP_TO_EDGE = 0x812F
+ REPEAT = 0x2901
+
+ RESCALE_NORMAL = 0x803A
+ TEXTURE_DEPTH = 0x8071
+ MAX_3D_TEXTURE_SIZE = 0x8073
+ BGR = 0x80E0
+ BGRA = 0x80E1
+ MAX_ELEMENTS_VERTICES = 0x80E8
+ MAX_ELEMENTS_INDICES = 0x80E9
+ UNSIGNED_BYTE_2_3_3_REV = 0x8362
+ UNSIGNED_SHORT_5_6_5 = 0x8363
+ UNSIGNED_SHORT_5_6_5_REV = 0x8364
+ UNSIGNED_SHORT_4_4_4_4_REV = 0x8365
+ UNSIGNED_SHORT_1_5_5_5_REV = 0x8366
+ UNSIGNED_INT_8_8_8_8_REV = 0x8367
+ UNSIGNED_INT_2_10_10_10_REV = 0x8368
+)
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glViewport.xml
+func (gl *GL) Viewport(x, y, width, height int) {
+ C.gl1_2_glViewport(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// DepthRange specifies the mapping of depth values from normalized device
+// coordinates to window coordinates.
+//
+// Parameter nearVal specifies the mapping of the near clipping plane to window
+// coordinates (defaults to 0), while farVal specifies the mapping of the far
+// clipping plane to window coordinates (defaults to 1).
+//
+// After clipping and division by w, depth coordinates range from -1 to 1,
+// corresponding to the near and far clipping planes. DepthRange specifies a
+// linear mapping of the normalized depth coordinates in this range to window
+// depth coordinates. Regardless of the actual depth buffer implementation,
+// window coordinate depth values are treated as though they range from 0 through 1
+// (like color components). Thus, the values accepted by DepthRange are both
+// clamped to this range before they are accepted.
+//
+// The default setting of (0, 1) maps the near plane to 0 and the far plane to 1.
+// With this mapping, the depth buffer range is fully utilized.
+//
+// It is not necessary that nearVal be less than farVal. Reverse mappings such as
+// nearVal 1, and farVal 0 are acceptable.
+//
+// GL.INVALID_OPERATION is generated if DepthRange is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) DepthRange(nearVal, farVal float64) {
+ C.gl1_2_glDepthRange(gl.funcs, C.GLdouble(nearVal), C.GLdouble(farVal))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsEnabled.xml
+func (gl *GL) IsEnabled(cap glbase.Enum) bool {
+ glresult := C.gl1_2_glIsEnabled(gl.funcs, C.GLenum(cap))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameteriv.xml
+func (gl *GL) GetTexLevelParameteriv(target glbase.Enum, level int, pname glbase.Enum, params []int32) {
+ C.gl1_2_glGetTexLevelParameteriv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameterfv.xml
+func (gl *GL) GetTexLevelParameterfv(target glbase.Enum, level int, pname glbase.Enum, params []float32) {
+ C.gl1_2_glGetTexLevelParameterfv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameteriv.xml
+func (gl *GL) GetTexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_2_glGetTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameterfv.xml
+func (gl *GL) GetTexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_2_glGetTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexImage.xml
+func (gl *GL) GetTexImage(target glbase.Enum, level int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glGetTexImage(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetIntegerv.xml
+func (gl *GL) GetIntegerv(pname glbase.Enum, params []int32) {
+ C.gl1_2_glGetIntegerv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetFloatv.xml
+func (gl *GL) GetFloatv(pname glbase.Enum, params []float32) {
+ C.gl1_2_glGetFloatv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetError.xml
+func (gl *GL) GetError() glbase.Enum {
+ glresult := C.gl1_2_glGetError(gl.funcs)
+ return glbase.Enum(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetDoublev.xml
+func (gl *GL) GetDoublev(pname glbase.Enum, params []float64) {
+ C.gl1_2_glGetDoublev(gl.funcs, C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetBooleanv.xml
+func (gl *GL) GetBooleanv(pname glbase.Enum, params []bool) {
+ C.gl1_2_glGetBooleanv(gl.funcs, C.GLenum(pname), (*C.GLboolean)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadPixels.xml
+func (gl *GL) ReadPixels(x, y, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glReadPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadBuffer.xml
+func (gl *GL) ReadBuffer(mode glbase.Enum) {
+ C.gl1_2_glReadBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStorei.xml
+func (gl *GL) PixelStorei(pname glbase.Enum, param int32) {
+ C.gl1_2_glPixelStorei(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStoref.xml
+func (gl *GL) PixelStoref(pname glbase.Enum, param float32) {
+ C.gl1_2_glPixelStoref(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthFunc.xml
+func (gl *GL) DepthFunc(glfunc glbase.Enum) {
+ C.gl1_2_glDepthFunc(gl.funcs, C.GLenum(glfunc))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilOp.xml
+func (gl *GL) StencilOp(fail, zfail, zpass glbase.Enum) {
+ C.gl1_2_glStencilOp(gl.funcs, C.GLenum(fail), C.GLenum(zfail), C.GLenum(zpass))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilFunc.xml
+func (gl *GL) StencilFunc(glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl1_2_glStencilFunc(gl.funcs, C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLogicOp.xml
+func (gl *GL) LogicOp(opcode glbase.Enum) {
+ C.gl1_2_glLogicOp(gl.funcs, C.GLenum(opcode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendFunc.xml
+func (gl *GL) BlendFunc(sfactor, dfactor glbase.Enum) {
+ C.gl1_2_glBlendFunc(gl.funcs, C.GLenum(sfactor), C.GLenum(dfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFlush.xml
+func (gl *GL) Flush() {
+ C.gl1_2_glFlush(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFinish.xml
+func (gl *GL) Finish() {
+ C.gl1_2_glFinish(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnable.xml
+func (gl *GL) Enable(cap glbase.Enum) {
+ C.gl1_2_glEnable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisable.xml
+func (gl *GL) Disable(cap glbase.Enum) {
+ C.gl1_2_glDisable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthMask.xml
+func (gl *GL) DepthMask(flag bool) {
+ C.gl1_2_glDepthMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMask.xml
+func (gl *GL) ColorMask(red, green, blue, alpha bool) {
+ C.gl1_2_glColorMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&red)), *(*C.GLboolean)(unsafe.Pointer(&green)), *(*C.GLboolean)(unsafe.Pointer(&blue)), *(*C.GLboolean)(unsafe.Pointer(&alpha)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilMask.xml
+func (gl *GL) StencilMask(mask uint32) {
+ C.gl1_2_glStencilMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearDepth.xml
+func (gl *GL) ClearDepth(depth float64) {
+ C.gl1_2_glClearDepth(gl.funcs, C.GLdouble(depth))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearStencil.xml
+func (gl *GL) ClearStencil(s int32) {
+ C.gl1_2_glClearStencil(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearColor.xml
+func (gl *GL) ClearColor(red, green, blue, alpha float32) {
+ C.gl1_2_glClearColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClear.xml
+func (gl *GL) Clear(mask glbase.Bitfield) {
+ C.gl1_2_glClear(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawBuffer.xml
+func (gl *GL) DrawBuffer(mode glbase.Enum) {
+ C.gl1_2_glDrawBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml
+func (gl *GL) TexImage2D(target glbase.Enum, level int, internalFormat int32, width, height, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage1D.xml
+func (gl *GL) TexImage1D(target glbase.Enum, level int, internalFormat int32, width, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteriv.xml
+func (gl *GL) TexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_2_glTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteri.xml
+func (gl *GL) TexParameteri(target, pname glbase.Enum, param int32) {
+ C.gl1_2_glTexParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterfv.xml
+func (gl *GL) TexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_2_glTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterf.xml
+func (gl *GL) TexParameterf(target, pname glbase.Enum, param float32) {
+ C.gl1_2_glTexParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScissor.xml
+func (gl *GL) Scissor(x, y, width, height int) {
+ C.gl1_2_glScissor(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonMode.xml
+func (gl *GL) PolygonMode(face, mode glbase.Enum) {
+ C.gl1_2_glPolygonMode(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointSize.xml
+func (gl *GL) PointSize(size float32) {
+ C.gl1_2_glPointSize(gl.funcs, C.GLfloat(size))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineWidth.xml
+func (gl *GL) LineWidth(width float32) {
+ C.gl1_2_glLineWidth(gl.funcs, C.GLfloat(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glHint.xml
+func (gl *GL) Hint(target, mode glbase.Enum) {
+ C.gl1_2_glHint(gl.funcs, C.GLenum(target), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrontFace.xml
+func (gl *GL) FrontFace(mode glbase.Enum) {
+ C.gl1_2_glFrontFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCullFace.xml
+func (gl *GL) CullFace(mode glbase.Enum) {
+ C.gl1_2_glCullFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexubv.xml
+func (gl *GL) Indexubv(c []uint8) {
+ C.gl1_2_glIndexubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexub.xml
+func (gl *GL) Indexub(c uint8) {
+ C.gl1_2_glIndexub(gl.funcs, C.GLubyte(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsTexture.xml
+func (gl *GL) IsTexture(texture glbase.Texture) bool {
+ glresult := C.gl1_2_glIsTexture(gl.funcs, C.GLuint(texture))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenTextures returns n texture names in textures. There is no guarantee
+// that the names form a contiguous set of integers; however, it is
+// guaranteed that none of the returned names was in use immediately before
+// the call to GenTextures.
+//
+// The generated textures have no dimensionality; they assume the
+// dimensionality of the texture target to which they are first bound (see
+// BindTexture).
+//
+// Texture names returned by a call to GenTextures are not returned by
+// subsequent calls, unless they are first deleted with DeleteTextures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// GenTextures is available in GL version 2.0 or greater.
+func (gl *GL) GenTextures(n int) []glbase.Texture {
+ if n == 0 {
+ return nil
+ }
+ textures := make([]glbase.Texture, n)
+ C.gl1_2_glGenTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+ return textures
+}
+
+// DeleteTextures deletes the textures objects whose names are stored
+// in the textures slice. After a texture is deleted, it has no contents or
+// dimensionality, and its name is free for reuse (for example by
+// GenTextures). If a texture that is currently bound is deleted, the binding
+// reverts to 0 (the default texture).
+//
+// DeleteTextures silently ignores 0's and names that do not correspond to
+// existing textures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// DeleteTextures is available in GL version 2.0 or greater.
+func (gl *GL) DeleteTextures(textures []glbase.Texture) {
+ n := len(textures)
+ if n == 0 {
+ return
+ }
+ C.gl1_2_glDeleteTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBindTexture.xml
+func (gl *GL) BindTexture(target glbase.Enum, texture glbase.Texture) {
+ C.gl1_2_glBindTexture(gl.funcs, C.GLenum(target), C.GLuint(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage2D.xml
+func (gl *GL) TexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage1D.xml
+func (gl *GL) TexSubImage1D(target glbase.Enum, level, xoffset, width int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage2D.xml
+func (gl *GL) CopyTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, x, y, width, height int) {
+ C.gl1_2_glCopyTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage1D.xml
+func (gl *GL) CopyTexSubImage1D(target glbase.Enum, level, xoffset, x, y, width int) {
+ C.gl1_2_glCopyTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage2D.xml
+func (gl *GL) CopyTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, height, border int) {
+ C.gl1_2_glCopyTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage1D.xml
+func (gl *GL) CopyTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, border int) {
+ C.gl1_2_glCopyTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonOffset.xml
+func (gl *GL) PolygonOffset(factor, units float32) {
+ C.gl1_2_glPolygonOffset(gl.funcs, C.GLfloat(factor), C.GLfloat(units))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawElements.xml
+func (gl *GL) DrawElements(mode glbase.Enum, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glDrawElements(gl.funcs, C.GLenum(mode), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawArrays.xml
+func (gl *GL) DrawArrays(mode glbase.Enum, first, count int) {
+ C.gl1_2_glDrawArrays(gl.funcs, C.GLenum(mode), C.GLint(first), C.GLsizei(count))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage3D.xml
+func (gl *GL) CopyTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, x, y, width, height int) {
+ C.gl1_2_glCopyTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage3D.xml
+func (gl *GL) TexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage3D.xml
+func (gl *GL) TexImage3D(target glbase.Enum, level int, internalFormat int32, width, height int, depth int32, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawRangeElements.xml
+func (gl *GL) DrawRangeElements(mode glbase.Enum, start, end uint32, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glDrawRangeElements(gl.funcs, C.GLenum(mode), C.GLuint(start), C.GLuint(end), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendEquation.xml
+func (gl *GL) BlendEquation(mode glbase.Enum) {
+ C.gl1_2_glBlendEquation(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendColor.xml
+func (gl *GL) BlendColor(red, green, blue, alpha float32) {
+ C.gl1_2_glBlendColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslatef.xml
+func (gl *GL) Translatef(x, y, z float32) {
+ C.gl1_2_glTranslatef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslated.xml
+func (gl *GL) Translated(x, y, z float64) {
+ C.gl1_2_glTranslated(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScalef.xml
+func (gl *GL) Scalef(x, y, z float32) {
+ C.gl1_2_glScalef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScaled.xml
+func (gl *GL) Scaled(x, y, z float64) {
+ C.gl1_2_glScaled(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotatef.xml
+func (gl *GL) Rotatef(angle, x, y, z float32) {
+ C.gl1_2_glRotatef(gl.funcs, C.GLfloat(angle), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotated.xml
+func (gl *GL) Rotated(angle, x, y, z float64) {
+ C.gl1_2_glRotated(gl.funcs, C.GLdouble(angle), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushMatrix.xml
+func (gl *GL) PushMatrix() {
+ C.gl1_2_glPushMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopMatrix.xml
+func (gl *GL) PopMatrix() {
+ C.gl1_2_glPopMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml
+func (gl *GL) Ortho(left, right, bottom, top, zNear, zFar float64) {
+ C.gl1_2_glOrtho(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// MultMatrixd multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixd(m []float64) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl1_2_glMultMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// MultMatrixf multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixf(m []float32) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl1_2_glMultMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMatrixMode.xml
+func (gl *GL) MatrixMode(mode glbase.Enum) {
+ C.gl1_2_glMatrixMode(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixd.xml
+func (gl *GL) LoadMatrixd(m []float64) {
+ C.gl1_2_glLoadMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixf.xml
+func (gl *GL) LoadMatrixf(m []float32) {
+ C.gl1_2_glLoadMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadIdentity.xml
+func (gl *GL) LoadIdentity() {
+ C.gl1_2_glLoadIdentity(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml
+func (gl *GL) Frustum(left, right, bottom, top, zNear, zFar float64) {
+ C.gl1_2_glFrustum(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsList.xml
+func (gl *GL) IsList(list uint32) bool {
+ glresult := C.gl1_2_glIsList(gl.funcs, C.GLuint(list))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGeniv.xml
+func (gl *GL) GetTexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl1_2_glGetTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGenfv.xml
+func (gl *GL) GetTexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl1_2_glGetTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGendv.xml
+func (gl *GL) GetTexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl1_2_glGetTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnviv.xml
+func (gl *GL) GetTexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl1_2_glGetTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnvfv.xml
+func (gl *GL) GetTexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_2_glGetTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPolygonStipple.xml
+func (gl *GL) GetPolygonStipple(mask []uint8) {
+ C.gl1_2_glGetPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapusv.xml
+func (gl *GL) GetPixelMapusv(glmap glbase.Enum, values []uint16) {
+ C.gl1_2_glGetPixelMapusv(gl.funcs, C.GLenum(glmap), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapuiv.xml
+func (gl *GL) GetPixelMapuiv(glmap glbase.Enum, values []uint32) {
+ C.gl1_2_glGetPixelMapuiv(gl.funcs, C.GLenum(glmap), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapfv.xml
+func (gl *GL) GetPixelMapfv(glmap glbase.Enum, values []float32) {
+ C.gl1_2_glGetPixelMapfv(gl.funcs, C.GLenum(glmap), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialiv.xml
+func (gl *GL) GetMaterialiv(face, pname glbase.Enum, params []int32) {
+ C.gl1_2_glGetMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialfv.xml
+func (gl *GL) GetMaterialfv(face, pname glbase.Enum, params []float32) {
+ C.gl1_2_glGetMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapiv.xml
+func (gl *GL) GetMapiv(target, query glbase.Enum, v []int32) {
+ C.gl1_2_glGetMapiv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapfv.xml
+func (gl *GL) GetMapfv(target, query glbase.Enum, v []float32) {
+ C.gl1_2_glGetMapfv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapdv.xml
+func (gl *GL) GetMapdv(target, query glbase.Enum, v []float64) {
+ C.gl1_2_glGetMapdv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightiv.xml
+func (gl *GL) GetLightiv(light, pname glbase.Enum, params []int32) {
+ C.gl1_2_glGetLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightfv.xml
+func (gl *GL) GetLightfv(light, pname glbase.Enum, params []float32) {
+ C.gl1_2_glGetLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetClipPlane.xml
+func (gl *GL) GetClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl1_2_glGetClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawPixels.xml
+func (gl *GL) DrawPixels(width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glDrawPixels(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyPixels.xml
+func (gl *GL) CopyPixels(x, y, width, height int, gltype glbase.Enum) {
+ C.gl1_2_glCopyPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(gltype))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapusv.xml
+func (gl *GL) PixelMapusv(glmap glbase.Enum, mapsize int32, values []uint16) {
+ C.gl1_2_glPixelMapusv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapuiv.xml
+func (gl *GL) PixelMapuiv(glmap glbase.Enum, mapsize int32, values []uint32) {
+ C.gl1_2_glPixelMapuiv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapfv.xml
+func (gl *GL) PixelMapfv(glmap glbase.Enum, mapsize int32, values []float32) {
+ C.gl1_2_glPixelMapfv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferi.xml
+func (gl *GL) PixelTransferi(pname glbase.Enum, param int32) {
+ C.gl1_2_glPixelTransferi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferf.xml
+func (gl *GL) PixelTransferf(pname glbase.Enum, param float32) {
+ C.gl1_2_glPixelTransferf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelZoom.xml
+func (gl *GL) PixelZoom(xfactor, yfactor float32) {
+ C.gl1_2_glPixelZoom(gl.funcs, C.GLfloat(xfactor), C.GLfloat(yfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAlphaFunc.xml
+func (gl *GL) AlphaFunc(glfunc glbase.Enum, ref float32) {
+ C.gl1_2_glAlphaFunc(gl.funcs, C.GLenum(glfunc), C.GLfloat(ref))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint2.xml
+func (gl *GL) EvalPoint2(i, j int32) {
+ C.gl1_2_glEvalPoint2(gl.funcs, C.GLint(i), C.GLint(j))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh2.xml
+func (gl *GL) EvalMesh2(mode glbase.Enum, i1, i2, j1, j2 int32) {
+ C.gl1_2_glEvalMesh2(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2), C.GLint(j1), C.GLint(j2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint1.xml
+func (gl *GL) EvalPoint1(i int32) {
+ C.gl1_2_glEvalPoint1(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh1.xml
+func (gl *GL) EvalMesh1(mode glbase.Enum, i1, i2 int32) {
+ C.gl1_2_glEvalMesh1(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2fv.xml
+func (gl *GL) EvalCoord2fv(u []float32) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl1_2_glEvalCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2f.xml
+func (gl *GL) EvalCoord2f(u, v float32) {
+ C.gl1_2_glEvalCoord2f(gl.funcs, C.GLfloat(u), C.GLfloat(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2dv.xml
+func (gl *GL) EvalCoord2dv(u []float64) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl1_2_glEvalCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2d.xml
+func (gl *GL) EvalCoord2d(u, v float64) {
+ C.gl1_2_glEvalCoord2d(gl.funcs, C.GLdouble(u), C.GLdouble(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1fv.xml
+func (gl *GL) EvalCoord1fv(u []float32) {
+ C.gl1_2_glEvalCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1f.xml
+func (gl *GL) EvalCoord1f(u float32) {
+ C.gl1_2_glEvalCoord1f(gl.funcs, C.GLfloat(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1dv.xml
+func (gl *GL) EvalCoord1dv(u []float64) {
+ C.gl1_2_glEvalCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1d.xml
+func (gl *GL) EvalCoord1d(u float64) {
+ C.gl1_2_glEvalCoord1d(gl.funcs, C.GLdouble(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2f.xml
+func (gl *GL) MapGrid2f(un int32, u1, u2 float32, vn int32, v1, v2 float32) {
+ C.gl1_2_glMapGrid2f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2), C.GLint(vn), C.GLfloat(v1), C.GLfloat(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2d.xml
+func (gl *GL) MapGrid2d(un int32, u1, u2 float64, vn int32, v1, v2 float64) {
+ C.gl1_2_glMapGrid2d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2), C.GLint(vn), C.GLdouble(v1), C.GLdouble(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1f.xml
+func (gl *GL) MapGrid1f(un int32, u1, u2 float32) {
+ C.gl1_2_glMapGrid1f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1d.xml
+func (gl *GL) MapGrid1d(un int32, u1, u2 float64) {
+ C.gl1_2_glMapGrid1d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2f.xml
+func (gl *GL) Map2f(target glbase.Enum, u1, u2 float32, ustride, uorder int32, v1, v2 float32, vstride, vorder int32, points []float32) {
+ C.gl1_2_glMap2f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(ustride), C.GLint(uorder), C.GLfloat(v1), C.GLfloat(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2d.xml
+func (gl *GL) Map2d(target glbase.Enum, u1, u2 float64, ustride, uorder int32, v1, v2 float64, vstride, vorder int32, points []float64) {
+ C.gl1_2_glMap2d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(ustride), C.GLint(uorder), C.GLdouble(v1), C.GLdouble(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1f.xml
+func (gl *GL) Map1f(target glbase.Enum, u1, u2 float32, stride, order int, points []float32) {
+ C.gl1_2_glMap1f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(stride), C.GLint(order), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1d.xml
+func (gl *GL) Map1d(target glbase.Enum, u1, u2 float64, stride, order int, points []float64) {
+ C.gl1_2_glMap1d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(stride), C.GLint(order), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushAttrib.xml
+func (gl *GL) PushAttrib(mask glbase.Bitfield) {
+ C.gl1_2_glPushAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopAttrib.xml
+func (gl *GL) PopAttrib() {
+ C.gl1_2_glPopAttrib(gl.funcs)
+}
+
+// Accum executes an operation on the accumulation buffer.
+//
+// Parameter op defines the accumulation buffer operation (GL.ACCUM, GL.LOAD,
+// GL.ADD, GL.MULT, or GL.RETURN) and specifies how the value parameter is
+// used.
+//
+// The accumulation buffer is an extended-range color buffer. Images are not
+// rendered into it. Rather, images rendered into one of the color buffers
+// are added to the contents of the accumulation buffer after rendering.
+// Effects such as antialiasing (of points, lines, and polygons), motion
+// blur, and depth of field can be created by accumulating images generated
+// with different transformation matrices.
+//
+// Each pixel in the accumulation buffer consists of red, green, blue, and
+// alpha values. The number of bits per component in the accumulation buffer
+// depends on the implementation. You can examine this number by calling
+// GetIntegerv four times, with arguments GL.ACCUM_RED_BITS,
+// GL.ACCUM_GREEN_BITS, GL.ACCUM_BLUE_BITS, and GL.ACCUM_ALPHA_BITS.
+// Regardless of the number of bits per component, the range of values stored
+// by each component is (-1, 1). The accumulation buffer pixels are mapped
+// one-to-one with frame buffer pixels.
+//
+// All accumulation buffer operations are limited to the area of the current
+// scissor box and applied identically to the red, green, blue, and alpha
+// components of each pixel. If a Accum operation results in a value outside
+// the range (-1, 1), the contents of an accumulation buffer pixel component
+// are undefined.
+//
+// The operations are as follows:
+//
+// GL.ACCUM
+// Obtains R, G, B, and A values from the buffer currently selected for
+// reading (see ReadBuffer). Each component value is divided by 2 n -
+// 1 , where n is the number of bits allocated to each color component
+// in the currently selected buffer. The result is a floating-point
+// value in the range 0 1 , which is multiplied by value and added to
+// the corresponding pixel component in the accumulation buffer,
+// thereby updating the accumulation buffer.
+//
+// GL.LOAD
+// Similar to GL.ACCUM, except that the current value in the
+// accumulation buffer is not used in the calculation of the new value.
+// That is, the R, G, B, and A values from the currently selected
+// buffer are divided by 2 n - 1 , multiplied by value, and then stored
+// in the corresponding accumulation buffer cell, overwriting the
+// current value.
+//
+// GL.ADD
+// Adds value to each R, G, B, and A in the accumulation buffer.
+//
+// GL.MULT
+// Multiplies each R, G, B, and A in the accumulation buffer by value
+// and returns the scaled component to its corresponding accumulation
+// buffer location.
+//
+// GL.RETURN
+// Transfers accumulation buffer values to the color buffer or buffers
+// currently selected for writing. Each R, G, B, and A component is
+// multiplied by value, then multiplied by 2 n - 1 , clamped to the
+// range 0 2 n - 1 , and stored in the corresponding display buffer
+// cell. The only fragment operations that are applied to this transfer
+// are pixel ownership, scissor, dithering, and color writemasks.
+//
+// To clear the accumulation buffer, call ClearAccum with R, G, B, and A
+// values to set it to, then call Clear with the accumulation buffer
+// enabled.
+//
+// Error GL.INVALID_ENUM is generated if op is not an accepted value.
+// GL.INVALID_OPERATION is generated if there is no accumulation buffer.
+// GL.INVALID_OPERATION is generated if Accum is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) Accum(op glbase.Enum, value float32) {
+ C.gl1_2_glAccum(gl.funcs, C.GLenum(op), C.GLfloat(value))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexMask.xml
+func (gl *GL) IndexMask(mask uint32) {
+ C.gl1_2_glIndexMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearIndex.xml
+func (gl *GL) ClearIndex(c float32) {
+ C.gl1_2_glClearIndex(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearAccum.xml
+func (gl *GL) ClearAccum(red, green, blue, alpha float32) {
+ C.gl1_2_glClearAccum(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushName.xml
+func (gl *GL) PushName(name uint32) {
+ C.gl1_2_glPushName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopName.xml
+func (gl *GL) PopName() {
+ C.gl1_2_glPopName(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPassThrough.xml
+func (gl *GL) PassThrough(token float32) {
+ C.gl1_2_glPassThrough(gl.funcs, C.GLfloat(token))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadName.xml
+func (gl *GL) LoadName(name uint32) {
+ C.gl1_2_glLoadName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInitNames.xml
+func (gl *GL) InitNames() {
+ C.gl1_2_glInitNames(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRenderMode.xml
+func (gl *GL) RenderMode(mode glbase.Enum) int32 {
+ glresult := C.gl1_2_glRenderMode(gl.funcs, C.GLenum(mode))
+ return int32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSelectBuffer.xml
+func (gl *GL) SelectBuffer(size int, buffer []glbase.Buffer) {
+ C.gl1_2_glSelectBuffer(gl.funcs, C.GLsizei(size), (*C.GLuint)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFeedbackBuffer.xml
+func (gl *GL) FeedbackBuffer(size int, gltype glbase.Enum, buffer []float32) {
+ C.gl1_2_glFeedbackBuffer(gl.funcs, C.GLsizei(size), C.GLenum(gltype), (*C.GLfloat)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeniv.xml
+func (gl *GL) TexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl1_2_glTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeni.xml
+func (gl *GL) TexGeni(coord, pname glbase.Enum, param int32) {
+ C.gl1_2_glTexGeni(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenfv.xml
+func (gl *GL) TexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl1_2_glTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenf.xml
+func (gl *GL) TexGenf(coord, pname glbase.Enum, param float32) {
+ C.gl1_2_glTexGenf(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGendv.xml
+func (gl *GL) TexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl1_2_glTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGend.xml
+func (gl *GL) TexGend(coord, pname glbase.Enum, param float64) {
+ C.gl1_2_glTexGend(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLdouble(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnviv.xml
+func (gl *GL) TexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl1_2_glTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvi.xml
+func (gl *GL) TexEnvi(target, pname glbase.Enum, param int32) {
+ C.gl1_2_glTexEnvi(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvfv.xml
+func (gl *GL) TexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_2_glTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvf.xml
+func (gl *GL) TexEnvf(target, pname glbase.Enum, param float32) {
+ C.gl1_2_glTexEnvf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glShadeModel.xml
+func (gl *GL) ShadeModel(mode glbase.Enum) {
+ C.gl1_2_glShadeModel(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonStipple.xml
+func (gl *GL) PolygonStipple(mask []uint8) {
+ C.gl1_2_glPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialiv.xml
+func (gl *GL) Materialiv(face, pname glbase.Enum, params []int32) {
+ C.gl1_2_glMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMateriali.xml
+func (gl *GL) Materiali(face, pname glbase.Enum, param int32) {
+ C.gl1_2_glMateriali(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialfv.xml
+func (gl *GL) Materialfv(face, pname glbase.Enum, params []float32) {
+ C.gl1_2_glMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialf.xml
+func (gl *GL) Materialf(face, pname glbase.Enum, param float32) {
+ C.gl1_2_glMaterialf(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineStipple.xml
+func (gl *GL) LineStipple(factor int32, pattern uint16) {
+ C.gl1_2_glLineStipple(gl.funcs, C.GLint(factor), C.GLushort(pattern))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeliv.xml
+func (gl *GL) LightModeliv(pname glbase.Enum, params []int32) {
+ C.gl1_2_glLightModeliv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeli.xml
+func (gl *GL) LightModeli(pname glbase.Enum, param int32) {
+ C.gl1_2_glLightModeli(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelfv.xml
+func (gl *GL) LightModelfv(pname glbase.Enum, params []float32) {
+ C.gl1_2_glLightModelfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelf.xml
+func (gl *GL) LightModelf(pname glbase.Enum, param float32) {
+ C.gl1_2_glLightModelf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightiv.xml
+func (gl *GL) Lightiv(light, pname glbase.Enum, params []int32) {
+ C.gl1_2_glLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLighti.xml
+func (gl *GL) Lighti(light, pname glbase.Enum, param int32) {
+ C.gl1_2_glLighti(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightfv.xml
+func (gl *GL) Lightfv(light, pname glbase.Enum, params []float32) {
+ C.gl1_2_glLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightf.xml
+func (gl *GL) Lightf(light, pname glbase.Enum, param float32) {
+ C.gl1_2_glLightf(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogiv.xml
+func (gl *GL) Fogiv(pname glbase.Enum, params []int32) {
+ C.gl1_2_glFogiv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogi.xml
+func (gl *GL) Fogi(pname glbase.Enum, param int32) {
+ C.gl1_2_glFogi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogfv.xml
+func (gl *GL) Fogfv(pname glbase.Enum, params []float32) {
+ C.gl1_2_glFogfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogf.xml
+func (gl *GL) Fogf(pname glbase.Enum, param float32) {
+ C.gl1_2_glFogf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMaterial.xml
+func (gl *GL) ColorMaterial(face, mode glbase.Enum) {
+ C.gl1_2_glColorMaterial(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClipPlane.xml
+func (gl *GL) ClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl1_2_glClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4sv.xml
+func (gl *GL) Vertex4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glVertex4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4s.xml
+func (gl *GL) Vertex4s(x, y, z, w int16) {
+ C.gl1_2_glVertex4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4iv.xml
+func (gl *GL) Vertex4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glVertex4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4i.xml
+func (gl *GL) Vertex4i(x, y, z, w int) {
+ C.gl1_2_glVertex4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4fv.xml
+func (gl *GL) Vertex4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glVertex4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4f.xml
+func (gl *GL) Vertex4f(x, y, z, w float32) {
+ C.gl1_2_glVertex4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4dv.xml
+func (gl *GL) Vertex4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glVertex4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4d.xml
+func (gl *GL) Vertex4d(x, y, z, w float64) {
+ C.gl1_2_glVertex4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3sv.xml
+func (gl *GL) Vertex3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glVertex3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3s.xml
+func (gl *GL) Vertex3s(x, y, z int16) {
+ C.gl1_2_glVertex3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3iv.xml
+func (gl *GL) Vertex3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glVertex3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3i.xml
+func (gl *GL) Vertex3i(x, y, z int) {
+ C.gl1_2_glVertex3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3fv.xml
+func (gl *GL) Vertex3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glVertex3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3f.xml
+func (gl *GL) Vertex3f(x, y, z float32) {
+ C.gl1_2_glVertex3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3dv.xml
+func (gl *GL) Vertex3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glVertex3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3d.xml
+func (gl *GL) Vertex3d(x, y, z float64) {
+ C.gl1_2_glVertex3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2sv.xml
+func (gl *GL) Vertex2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glVertex2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2s.xml
+func (gl *GL) Vertex2s(x, y int16) {
+ C.gl1_2_glVertex2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2iv.xml
+func (gl *GL) Vertex2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glVertex2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2i.xml
+func (gl *GL) Vertex2i(x, y int) {
+ C.gl1_2_glVertex2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2fv.xml
+func (gl *GL) Vertex2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glVertex2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2f.xml
+func (gl *GL) Vertex2f(x, y float32) {
+ C.gl1_2_glVertex2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2dv.xml
+func (gl *GL) Vertex2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glVertex2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2d.xml
+func (gl *GL) Vertex2d(x, y float64) {
+ C.gl1_2_glVertex2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4sv.xml
+func (gl *GL) TexCoord4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glTexCoord4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4s.xml
+func (gl *GL) TexCoord4s(s, t, r, q int16) {
+ C.gl1_2_glTexCoord4s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4iv.xml
+func (gl *GL) TexCoord4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glTexCoord4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4i.xml
+func (gl *GL) TexCoord4i(s, t, r, q int32) {
+ C.gl1_2_glTexCoord4i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4fv.xml
+func (gl *GL) TexCoord4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glTexCoord4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4f.xml
+func (gl *GL) TexCoord4f(s, t, r, q float32) {
+ C.gl1_2_glTexCoord4f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4dv.xml
+func (gl *GL) TexCoord4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glTexCoord4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4d.xml
+func (gl *GL) TexCoord4d(s, t, r, q float64) {
+ C.gl1_2_glTexCoord4d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3sv.xml
+func (gl *GL) TexCoord3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glTexCoord3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3s.xml
+func (gl *GL) TexCoord3s(s, t, r int16) {
+ C.gl1_2_glTexCoord3s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3iv.xml
+func (gl *GL) TexCoord3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glTexCoord3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3i.xml
+func (gl *GL) TexCoord3i(s, t, r int32) {
+ C.gl1_2_glTexCoord3i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3fv.xml
+func (gl *GL) TexCoord3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glTexCoord3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3f.xml
+func (gl *GL) TexCoord3f(s, t, r float32) {
+ C.gl1_2_glTexCoord3f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3dv.xml
+func (gl *GL) TexCoord3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glTexCoord3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3d.xml
+func (gl *GL) TexCoord3d(s, t, r float64) {
+ C.gl1_2_glTexCoord3d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2sv.xml
+func (gl *GL) TexCoord2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glTexCoord2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2s.xml
+func (gl *GL) TexCoord2s(s, t int16) {
+ C.gl1_2_glTexCoord2s(gl.funcs, C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2iv.xml
+func (gl *GL) TexCoord2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glTexCoord2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2i.xml
+func (gl *GL) TexCoord2i(s, t int32) {
+ C.gl1_2_glTexCoord2i(gl.funcs, C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2fv.xml
+func (gl *GL) TexCoord2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glTexCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2f.xml
+func (gl *GL) TexCoord2f(s, t float32) {
+ C.gl1_2_glTexCoord2f(gl.funcs, C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2dv.xml
+func (gl *GL) TexCoord2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glTexCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2d.xml
+func (gl *GL) TexCoord2d(s, t float64) {
+ C.gl1_2_glTexCoord2d(gl.funcs, C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1sv.xml
+func (gl *GL) TexCoord1sv(v []int16) {
+ C.gl1_2_glTexCoord1sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1s.xml
+func (gl *GL) TexCoord1s(s int16) {
+ C.gl1_2_glTexCoord1s(gl.funcs, C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1iv.xml
+func (gl *GL) TexCoord1iv(v []int32) {
+ C.gl1_2_glTexCoord1iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1i.xml
+func (gl *GL) TexCoord1i(s int32) {
+ C.gl1_2_glTexCoord1i(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1fv.xml
+func (gl *GL) TexCoord1fv(v []float32) {
+ C.gl1_2_glTexCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1f.xml
+func (gl *GL) TexCoord1f(s float32) {
+ C.gl1_2_glTexCoord1f(gl.funcs, C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1dv.xml
+func (gl *GL) TexCoord1dv(v []float64) {
+ C.gl1_2_glTexCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1d.xml
+func (gl *GL) TexCoord1d(s float64) {
+ C.gl1_2_glTexCoord1d(gl.funcs, C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectsv.xml
+func (gl *GL) Rectsv(v1, v2 []int16) {
+ C.gl1_2_glRectsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v1[0])), (*C.GLshort)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRects.xml
+func (gl *GL) Rects(x1, y1, x2, y2 int16) {
+ C.gl1_2_glRects(gl.funcs, C.GLshort(x1), C.GLshort(y1), C.GLshort(x2), C.GLshort(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectiv.xml
+func (gl *GL) Rectiv(v1, v2 []int32) {
+ C.gl1_2_glRectiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v1[0])), (*C.GLint)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRecti.xml
+func (gl *GL) Recti(x1, y1, x2, y2 int32) {
+ C.gl1_2_glRecti(gl.funcs, C.GLint(x1), C.GLint(y1), C.GLint(x2), C.GLint(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectfv.xml
+func (gl *GL) Rectfv(v1, v2 []float32) {
+ C.gl1_2_glRectfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v1[0])), (*C.GLfloat)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectf.xml
+func (gl *GL) Rectf(x1, y1, x2, y2 float32) {
+ C.gl1_2_glRectf(gl.funcs, C.GLfloat(x1), C.GLfloat(y1), C.GLfloat(x2), C.GLfloat(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectdv.xml
+func (gl *GL) Rectdv(v1, v2 []float64) {
+ C.gl1_2_glRectdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v1[0])), (*C.GLdouble)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectd.xml
+func (gl *GL) Rectd(x1, y1, x2, y2 float64) {
+ C.gl1_2_glRectd(gl.funcs, C.GLdouble(x1), C.GLdouble(y1), C.GLdouble(x2), C.GLdouble(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4sv.xml
+func (gl *GL) RasterPos4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glRasterPos4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4s.xml
+func (gl *GL) RasterPos4s(x, y, z, w int16) {
+ C.gl1_2_glRasterPos4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4iv.xml
+func (gl *GL) RasterPos4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glRasterPos4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4i.xml
+func (gl *GL) RasterPos4i(x, y, z, w int) {
+ C.gl1_2_glRasterPos4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4fv.xml
+func (gl *GL) RasterPos4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glRasterPos4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4f.xml
+func (gl *GL) RasterPos4f(x, y, z, w float32) {
+ C.gl1_2_glRasterPos4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4dv.xml
+func (gl *GL) RasterPos4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glRasterPos4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4d.xml
+func (gl *GL) RasterPos4d(x, y, z, w float64) {
+ C.gl1_2_glRasterPos4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3sv.xml
+func (gl *GL) RasterPos3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glRasterPos3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3s.xml
+func (gl *GL) RasterPos3s(x, y, z int16) {
+ C.gl1_2_glRasterPos3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3iv.xml
+func (gl *GL) RasterPos3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glRasterPos3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3i.xml
+func (gl *GL) RasterPos3i(x, y, z int) {
+ C.gl1_2_glRasterPos3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3fv.xml
+func (gl *GL) RasterPos3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glRasterPos3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3f.xml
+func (gl *GL) RasterPos3f(x, y, z float32) {
+ C.gl1_2_glRasterPos3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3dv.xml
+func (gl *GL) RasterPos3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glRasterPos3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3d.xml
+func (gl *GL) RasterPos3d(x, y, z float64) {
+ C.gl1_2_glRasterPos3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2sv.xml
+func (gl *GL) RasterPos2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glRasterPos2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2s.xml
+func (gl *GL) RasterPos2s(x, y int16) {
+ C.gl1_2_glRasterPos2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2iv.xml
+func (gl *GL) RasterPos2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glRasterPos2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2i.xml
+func (gl *GL) RasterPos2i(x, y int) {
+ C.gl1_2_glRasterPos2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2fv.xml
+func (gl *GL) RasterPos2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glRasterPos2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2f.xml
+func (gl *GL) RasterPos2f(x, y float32) {
+ C.gl1_2_glRasterPos2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2dv.xml
+func (gl *GL) RasterPos2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glRasterPos2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2d.xml
+func (gl *GL) RasterPos2d(x, y float64) {
+ C.gl1_2_glRasterPos2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3sv.xml
+func (gl *GL) Normal3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glNormal3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3s.xml
+func (gl *GL) Normal3s(nx, ny, nz int16) {
+ C.gl1_2_glNormal3s(gl.funcs, C.GLshort(nx), C.GLshort(ny), C.GLshort(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3iv.xml
+func (gl *GL) Normal3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glNormal3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3i.xml
+func (gl *GL) Normal3i(nx, ny, nz int32) {
+ C.gl1_2_glNormal3i(gl.funcs, C.GLint(nx), C.GLint(ny), C.GLint(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3fv.xml
+func (gl *GL) Normal3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glNormal3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3f.xml
+func (gl *GL) Normal3f(nx, ny, nz float32) {
+ C.gl1_2_glNormal3f(gl.funcs, C.GLfloat(nx), C.GLfloat(ny), C.GLfloat(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3dv.xml
+func (gl *GL) Normal3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glNormal3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3d.xml
+func (gl *GL) Normal3d(nx, ny, nz float64) {
+ C.gl1_2_glNormal3d(gl.funcs, C.GLdouble(nx), C.GLdouble(ny), C.GLdouble(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3bv.xml
+func (gl *GL) Normal3bv(v []byte) {
+ C.gl1_2_glNormal3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3b.xml
+func (gl *GL) Normal3b(nx, ny, nz byte) {
+ C.gl1_2_glNormal3b(gl.funcs, C.GLbyte(nx), C.GLbyte(ny), C.GLbyte(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexsv.xml
+func (gl *GL) Indexsv(c []int16) {
+ C.gl1_2_glIndexsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexs.xml
+func (gl *GL) Indexs(c int16) {
+ C.gl1_2_glIndexs(gl.funcs, C.GLshort(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexiv.xml
+func (gl *GL) Indexiv(c []int32) {
+ C.gl1_2_glIndexiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexi.xml
+func (gl *GL) Indexi(c int32) {
+ C.gl1_2_glIndexi(gl.funcs, C.GLint(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexfv.xml
+func (gl *GL) Indexfv(c []float32) {
+ C.gl1_2_glIndexfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexf.xml
+func (gl *GL) Indexf(c float32) {
+ C.gl1_2_glIndexf(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexdv.xml
+func (gl *GL) Indexdv(c []float64) {
+ C.gl1_2_glIndexdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexd.xml
+func (gl *GL) Indexd(c float64) {
+ C.gl1_2_glIndexd(gl.funcs, C.GLdouble(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnd.xml
+func (gl *GL) End() {
+ C.gl1_2_glEnd(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagv.xml
+func (gl *GL) EdgeFlagv(flag []bool) {
+ C.gl1_2_glEdgeFlagv(gl.funcs, (*C.GLboolean)(unsafe.Pointer(&flag[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlag.xml
+func (gl *GL) EdgeFlag(flag bool) {
+ C.gl1_2_glEdgeFlag(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4usv.xml
+func (gl *GL) Color4usv(v []uint16) {
+ C.gl1_2_glColor4usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4us.xml
+func (gl *GL) Color4us(red, green, blue, alpha uint16) {
+ C.gl1_2_glColor4us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue), C.GLushort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4uiv.xml
+func (gl *GL) Color4uiv(v []uint32) {
+ C.gl1_2_glColor4uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ui.xml
+func (gl *GL) Color4ui(red, green, blue, alpha uint32) {
+ C.gl1_2_glColor4ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue), C.GLuint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ubv.xml
+func (gl *GL) Color4ubv(v []uint8) {
+ C.gl1_2_glColor4ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ub.xml
+func (gl *GL) Color4ub(red, green, blue, alpha uint8) {
+ C.gl1_2_glColor4ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue), C.GLubyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4sv.xml
+func (gl *GL) Color4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glColor4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4s.xml
+func (gl *GL) Color4s(red, green, blue, alpha int16) {
+ C.gl1_2_glColor4s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue), C.GLshort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4iv.xml
+func (gl *GL) Color4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glColor4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4i.xml
+func (gl *GL) Color4i(red, green, blue, alpha int32) {
+ C.gl1_2_glColor4i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue), C.GLint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4fv.xml
+func (gl *GL) Color4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glColor4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4f.xml
+func (gl *GL) Color4f(red, green, blue, alpha float32) {
+ C.gl1_2_glColor4f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4dv.xml
+func (gl *GL) Color4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glColor4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4d.xml
+func (gl *GL) Color4d(red, green, blue, alpha float64) {
+ C.gl1_2_glColor4d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue), C.GLdouble(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4bv.xml
+func (gl *GL) Color4bv(v []byte) {
+ C.gl1_2_glColor4bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4b.xml
+func (gl *GL) Color4b(red, green, blue, alpha byte) {
+ C.gl1_2_glColor4b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue), C.GLbyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3usv.xml
+func (gl *GL) Color3usv(v []uint16) {
+ C.gl1_2_glColor3usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3us.xml
+func (gl *GL) Color3us(red, green, blue uint16) {
+ C.gl1_2_glColor3us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3uiv.xml
+func (gl *GL) Color3uiv(v []uint32) {
+ C.gl1_2_glColor3uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ui.xml
+func (gl *GL) Color3ui(red, green, blue uint32) {
+ C.gl1_2_glColor3ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ubv.xml
+func (gl *GL) Color3ubv(v []uint8) {
+ C.gl1_2_glColor3ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ub.xml
+func (gl *GL) Color3ub(red, green, blue uint8) {
+ C.gl1_2_glColor3ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3sv.xml
+func (gl *GL) Color3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glColor3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3s.xml
+func (gl *GL) Color3s(red, green, blue int16) {
+ C.gl1_2_glColor3s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3iv.xml
+func (gl *GL) Color3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glColor3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3i.xml
+func (gl *GL) Color3i(red, green, blue int32) {
+ C.gl1_2_glColor3i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3fv.xml
+func (gl *GL) Color3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glColor3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3f.xml
+func (gl *GL) Color3f(red, green, blue float32) {
+ C.gl1_2_glColor3f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3dv.xml
+func (gl *GL) Color3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_2_glColor3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3d.xml
+func (gl *GL) Color3d(red, green, blue float64) {
+ C.gl1_2_glColor3d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3bv.xml
+func (gl *GL) Color3bv(v []byte) {
+ C.gl1_2_glColor3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3b.xml
+func (gl *GL) Color3b(red, green, blue byte) {
+ C.gl1_2_glColor3b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBitmap.xml
+func (gl *GL) Bitmap(width, height int, xorig, yorig, xmove, ymove float32, bitmap []uint8) {
+ C.gl1_2_glBitmap(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLfloat(xorig), C.GLfloat(yorig), C.GLfloat(xmove), C.GLfloat(ymove), (*C.GLubyte)(unsafe.Pointer(&bitmap[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBegin.xml
+func (gl *GL) Begin(mode glbase.Enum) {
+ C.gl1_2_glBegin(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glListBase.xml
+func (gl *GL) ListBase(base uint32) {
+ C.gl1_2_glListBase(gl.funcs, C.GLuint(base))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGenLists.xml
+func (gl *GL) GenLists(range_ int32) uint32 {
+ glresult := C.gl1_2_glGenLists(gl.funcs, C.GLsizei(range_))
+ return uint32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDeleteLists.xml
+func (gl *GL) DeleteLists(list uint32, range_ int32) {
+ C.gl1_2_glDeleteLists(gl.funcs, C.GLuint(list), C.GLsizei(range_))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallLists.xml
+func (gl *GL) CallLists(n int, gltype glbase.Enum, lists interface{}) {
+ var lists_ptr unsafe.Pointer
+ var lists_v = reflect.ValueOf(lists)
+ if lists != nil && lists_v.Kind() != reflect.Slice {
+ panic("parameter lists must be a slice")
+ }
+ if lists != nil {
+ lists_ptr = unsafe.Pointer(lists_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glCallLists(gl.funcs, C.GLsizei(n), C.GLenum(gltype), lists_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallList.xml
+func (gl *GL) CallList(list uint32) {
+ C.gl1_2_glCallList(gl.funcs, C.GLuint(list))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEndList.xml
+func (gl *GL) EndList() {
+ C.gl1_2_glEndList(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNewList.xml
+func (gl *GL) NewList(list uint32, mode glbase.Enum) {
+ C.gl1_2_glNewList(gl.funcs, C.GLuint(list), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushClientAttrib.xml
+func (gl *GL) PushClientAttrib(mask glbase.Bitfield) {
+ C.gl1_2_glPushClientAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopClientAttrib.xml
+func (gl *GL) PopClientAttrib() {
+ C.gl1_2_glPopClientAttrib(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPrioritizeTextures.xml
+func (gl *GL) PrioritizeTextures(n int, textures []glbase.Texture, priorities []float32) {
+ C.gl1_2_glPrioritizeTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLfloat)(unsafe.Pointer(&priorities[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAreTexturesResident.xml
+func (gl *GL) AreTexturesResident(n int, textures []glbase.Texture, residences []bool) bool {
+ glresult := C.gl1_2_glAreTexturesResident(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLboolean)(unsafe.Pointer(&residences[0])))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexPointer.xml
+func (gl *GL) VertexPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glVertexPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoordPointer.xml
+func (gl *GL) TexCoordPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glTexCoordPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormalPointer.xml
+func (gl *GL) NormalPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glNormalPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInterleavedArrays.xml
+func (gl *GL) InterleavedArrays(format glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glInterleavedArrays(gl.funcs, C.GLenum(format), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexPointer.xml
+func (gl *GL) IndexPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glIndexPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnableClientState.xml
+func (gl *GL) EnableClientState(array glbase.Enum) {
+ C.gl1_2_glEnableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagPointer.xml
+func (gl *GL) EdgeFlagPointer(stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glEdgeFlagPointer(gl.funcs, C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisableClientState.xml
+func (gl *GL) DisableClientState(array glbase.Enum) {
+ C.gl1_2_glDisableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorPointer.xml
+func (gl *GL) ColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glColorPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glArrayElement.xml
+func (gl *GL) ArrayElement(i int32) {
+ C.gl1_2_glArrayElement(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glResetMinmax.xml
+func (gl *GL) ResetMinmax(target glbase.Enum) {
+ C.gl1_2_glResetMinmax(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glResetHistogram.xml
+func (gl *GL) ResetHistogram(target glbase.Enum) {
+ C.gl1_2_glResetHistogram(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMinmax.xml
+func (gl *GL) Minmax(target, internalFormat glbase.Enum, sink bool) {
+ C.gl1_2_glMinmax(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), *(*C.GLboolean)(unsafe.Pointer(&sink)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glHistogram.xml
+func (gl *GL) Histogram(target glbase.Enum, width int, internalFormat glbase.Enum, sink bool) {
+ C.gl1_2_glHistogram(gl.funcs, C.GLenum(target), C.GLsizei(width), C.GLenum(internalFormat), *(*C.GLboolean)(unsafe.Pointer(&sink)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmaxParameteriv.xml
+func (gl *GL) GetMinmaxParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_2_glGetMinmaxParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmaxParameterfv.xml
+func (gl *GL) GetMinmaxParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_2_glGetMinmaxParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmax.xml
+func (gl *GL) GetMinmax(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{}) {
+ var values_ptr unsafe.Pointer
+ var values_v = reflect.ValueOf(values)
+ if values != nil && values_v.Kind() != reflect.Slice {
+ panic("parameter values must be a slice")
+ }
+ if values != nil {
+ values_ptr = unsafe.Pointer(values_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glGetMinmax(gl.funcs, C.GLenum(target), *(*C.GLboolean)(unsafe.Pointer(&reset)), C.GLenum(format), C.GLenum(gltype), values_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogramParameteriv.xml
+func (gl *GL) GetHistogramParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_2_glGetHistogramParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogramParameterfv.xml
+func (gl *GL) GetHistogramParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_2_glGetHistogramParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogram.xml
+func (gl *GL) GetHistogram(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{}) {
+ var values_ptr unsafe.Pointer
+ var values_v = reflect.ValueOf(values)
+ if values != nil && values_v.Kind() != reflect.Slice {
+ panic("parameter values must be a slice")
+ }
+ if values != nil {
+ values_ptr = unsafe.Pointer(values_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glGetHistogram(gl.funcs, C.GLenum(target), *(*C.GLboolean)(unsafe.Pointer(&reset)), C.GLenum(format), C.GLenum(gltype), values_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSeparableFilter2D.xml
+func (gl *GL) SeparableFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, row, column interface{}) {
+ var row_ptr unsafe.Pointer
+ var row_v = reflect.ValueOf(row)
+ if row != nil && row_v.Kind() != reflect.Slice {
+ panic("parameter row must be a slice")
+ }
+ if row != nil {
+ row_ptr = unsafe.Pointer(row_v.Index(0).Addr().Pointer())
+ }
+ var column_ptr unsafe.Pointer
+ var column_v = reflect.ValueOf(column)
+ if column != nil && column_v.Kind() != reflect.Slice {
+ panic("parameter column must be a slice")
+ }
+ if column != nil {
+ column_ptr = unsafe.Pointer(column_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glSeparableFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), row_ptr, column_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetSeparableFilter.xml
+func (gl *GL) GetSeparableFilter(target, format, gltype glbase.Enum, row, column, span interface{}) {
+ var row_ptr unsafe.Pointer
+ var row_v = reflect.ValueOf(row)
+ if row != nil && row_v.Kind() != reflect.Slice {
+ panic("parameter row must be a slice")
+ }
+ if row != nil {
+ row_ptr = unsafe.Pointer(row_v.Index(0).Addr().Pointer())
+ }
+ var column_ptr unsafe.Pointer
+ var column_v = reflect.ValueOf(column)
+ if column != nil && column_v.Kind() != reflect.Slice {
+ panic("parameter column must be a slice")
+ }
+ if column != nil {
+ column_ptr = unsafe.Pointer(column_v.Index(0).Addr().Pointer())
+ }
+ var span_ptr unsafe.Pointer
+ var span_v = reflect.ValueOf(span)
+ if span != nil && span_v.Kind() != reflect.Slice {
+ panic("parameter span must be a slice")
+ }
+ if span != nil {
+ span_ptr = unsafe.Pointer(span_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glGetSeparableFilter(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), row_ptr, column_ptr, span_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionParameteriv.xml
+func (gl *GL) GetConvolutionParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_2_glGetConvolutionParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionParameterfv.xml
+func (gl *GL) GetConvolutionParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_2_glGetConvolutionParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionFilter.xml
+func (gl *GL) GetConvolutionFilter(target, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glGetConvolutionFilter(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyConvolutionFilter2D.xml
+func (gl *GL) CopyConvolutionFilter2D(target, internalFormat glbase.Enum, x, y, width, height int) {
+ C.gl1_2_glCopyConvolutionFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyConvolutionFilter1D.xml
+func (gl *GL) CopyConvolutionFilter1D(target, internalFormat glbase.Enum, x, y, width int) {
+ C.gl1_2_glCopyConvolutionFilter1D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameteriv.xml
+func (gl *GL) ConvolutionParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_2_glConvolutionParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameteri.xml
+func (gl *GL) ConvolutionParameteri(target, pname glbase.Enum, params int32) {
+ C.gl1_2_glConvolutionParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(params))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameterfv.xml
+func (gl *GL) ConvolutionParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_2_glConvolutionParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameterf.xml
+func (gl *GL) ConvolutionParameterf(target, pname glbase.Enum, params float32) {
+ C.gl1_2_glConvolutionParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(params))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionFilter2D.xml
+func (gl *GL) ConvolutionFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glConvolutionFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionFilter1D.xml
+func (gl *GL) ConvolutionFilter1D(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glConvolutionFilter1D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyColorSubTable.xml
+func (gl *GL) CopyColorSubTable(target glbase.Enum, start int32, x, y, width int) {
+ C.gl1_2_glCopyColorSubTable(gl.funcs, C.GLenum(target), C.GLsizei(start), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorSubTable.xml
+func (gl *GL) ColorSubTable(target glbase.Enum, start int32, count int, format, gltype glbase.Enum, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glColorSubTable(gl.funcs, C.GLenum(target), C.GLsizei(start), C.GLsizei(count), C.GLenum(format), C.GLenum(gltype), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTableParameteriv.xml
+func (gl *GL) GetColorTableParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_2_glGetColorTableParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTableParameterfv.xml
+func (gl *GL) GetColorTableParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_2_glGetColorTableParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTable.xml
+func (gl *GL) GetColorTable(target, format, gltype glbase.Enum, table interface{}) {
+ var table_ptr unsafe.Pointer
+ var table_v = reflect.ValueOf(table)
+ if table != nil && table_v.Kind() != reflect.Slice {
+ panic("parameter table must be a slice")
+ }
+ if table != nil {
+ table_ptr = unsafe.Pointer(table_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glGetColorTable(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), table_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyColorTable.xml
+func (gl *GL) CopyColorTable(target, internalFormat glbase.Enum, x, y, width int) {
+ C.gl1_2_glCopyColorTable(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTableParameteriv.xml
+func (gl *GL) ColorTableParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_2_glColorTableParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTableParameterfv.xml
+func (gl *GL) ColorTableParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_2_glColorTableParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTable.xml
+func (gl *GL) ColorTable(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, table interface{}) {
+ var table_ptr unsafe.Pointer
+ var table_v = reflect.ValueOf(table)
+ if table != nil && table_v.Kind() != reflect.Slice {
+ panic("parameter table must be a slice")
+ }
+ if table != nil {
+ table_ptr = unsafe.Pointer(table_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_2_glColorTable(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), table_ptr)
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.3/funcs.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.3/funcs.cpp
new file mode 100644
index 000000000..582d20907
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.3/funcs.cpp
@@ -0,0 +1,2526 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#include <QOpenGLContext>
+#include <QtGui/qopenglfunctions_1_3.h>
+
+#include "funcs.h"
+
+void *gl1_3_funcs() {
+ QOpenGLFunctions_1_3* funcs = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_1_3>();
+ if (!funcs) {
+ return 0;
+ }
+ funcs->initializeOpenGLFunctions();
+ return funcs;
+}
+
+
+void gl1_3_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glViewport(x, y, width, height);
+}
+
+void gl1_3_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glDepthRange(nearVal, farVal);
+}
+
+GLboolean gl1_3_glIsEnabled(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ return _qglfuncs->glIsEnabled(cap);
+}
+
+void gl1_3_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameteriv(target, level, pname, params);
+}
+
+void gl1_3_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameterfv(target, level, pname, params);
+}
+
+void gl1_3_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetTexParameteriv(target, pname, params);
+}
+
+void gl1_3_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetTexParameterfv(target, pname, params);
+}
+
+void gl1_3_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetTexImage(target, level, format, gltype, pixels);
+}
+
+void gl1_3_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetIntegerv(pname, params);
+}
+
+void gl1_3_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetFloatv(pname, params);
+}
+
+GLenum gl1_3_glGetError(void *_glfuncs)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ return _qglfuncs->glGetError();
+}
+
+void gl1_3_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetDoublev(pname, params);
+}
+
+void gl1_3_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetBooleanv(pname, params);
+}
+
+void gl1_3_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glReadPixels(x, y, width, height, format, gltype, pixels);
+}
+
+void gl1_3_glReadBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glReadBuffer(mode);
+}
+
+void gl1_3_glPixelStorei(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPixelStorei(pname, param);
+}
+
+void gl1_3_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPixelStoref(pname, param);
+}
+
+void gl1_3_glDepthFunc(void *_glfuncs, GLenum glfunc)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glDepthFunc(glfunc);
+}
+
+void gl1_3_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glStencilOp(fail, zfail, zpass);
+}
+
+void gl1_3_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glStencilFunc(glfunc, ref, mask);
+}
+
+void gl1_3_glLogicOp(void *_glfuncs, GLenum opcode)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLogicOp(opcode);
+}
+
+void gl1_3_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glBlendFunc(sfactor, dfactor);
+}
+
+void gl1_3_glFlush(void *_glfuncs)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glFlush();
+}
+
+void gl1_3_glFinish(void *_glfuncs)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glFinish();
+}
+
+void gl1_3_glEnable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEnable(cap);
+}
+
+void gl1_3_glDisable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glDisable(cap);
+}
+
+void gl1_3_glDepthMask(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glDepthMask(flag);
+}
+
+void gl1_3_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColorMask(red, green, blue, alpha);
+}
+
+void gl1_3_glStencilMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glStencilMask(mask);
+}
+
+void gl1_3_glClearDepth(void *_glfuncs, GLdouble depth)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glClearDepth(depth);
+}
+
+void gl1_3_glClearStencil(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glClearStencil(s);
+}
+
+void gl1_3_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glClearColor(red, green, blue, alpha);
+}
+
+void gl1_3_glClear(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glClear(mask);
+}
+
+void gl1_3_glDrawBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glDrawBuffer(mode);
+}
+
+void gl1_3_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexImage2D(target, level, internalFormat, width, height, border, format, gltype, pixels);
+}
+
+void gl1_3_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexImage1D(target, level, internalFormat, width, border, format, gltype, pixels);
+}
+
+void gl1_3_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexParameteriv(target, pname, params);
+}
+
+void gl1_3_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexParameteri(target, pname, param);
+}
+
+void gl1_3_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexParameterfv(target, pname, params);
+}
+
+void gl1_3_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexParameterf(target, pname, param);
+}
+
+void gl1_3_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glScissor(x, y, width, height);
+}
+
+void gl1_3_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPolygonMode(face, mode);
+}
+
+void gl1_3_glPointSize(void *_glfuncs, GLfloat size)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPointSize(size);
+}
+
+void gl1_3_glLineWidth(void *_glfuncs, GLfloat width)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLineWidth(width);
+}
+
+void gl1_3_glHint(void *_glfuncs, GLenum target, GLenum mode)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glHint(target, mode);
+}
+
+void gl1_3_glFrontFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glFrontFace(mode);
+}
+
+void gl1_3_glCullFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCullFace(mode);
+}
+
+void gl1_3_glIndexubv(void *_glfuncs, const GLubyte* c)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glIndexubv(c);
+}
+
+void gl1_3_glIndexub(void *_glfuncs, GLubyte c)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glIndexub(c);
+}
+
+GLboolean gl1_3_glIsTexture(void *_glfuncs, GLuint texture)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ return _qglfuncs->glIsTexture(texture);
+}
+
+void gl1_3_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGenTextures(n, textures);
+}
+
+void gl1_3_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glDeleteTextures(n, textures);
+}
+
+void gl1_3_glBindTexture(void *_glfuncs, GLenum target, GLuint texture)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glBindTexture(target, texture);
+}
+
+void gl1_3_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, gltype, pixels);
+}
+
+void gl1_3_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexSubImage1D(target, level, xoffset, width, format, gltype, pixels);
+}
+
+void gl1_3_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
+}
+
+void gl1_3_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage1D(target, level, xoffset, x, y, width);
+}
+
+void gl1_3_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
+}
+
+void gl1_3_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCopyTexImage1D(target, level, internalFormat, x, y, width, border);
+}
+
+void gl1_3_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPolygonOffset(factor, units);
+}
+
+void gl1_3_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glDrawElements(mode, count, gltype, indices);
+}
+
+void gl1_3_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glDrawArrays(mode, first, count);
+}
+
+void gl1_3_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
+}
+
+void gl1_3_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, gltype, pixels);
+}
+
+void gl1_3_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexImage3D(target, level, internalFormat, width, height, depth, border, format, gltype, pixels);
+}
+
+void gl1_3_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glDrawRangeElements(mode, start, end, count, gltype, indices);
+}
+
+void gl1_3_glBlendEquation(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glBlendEquation(mode);
+}
+
+void gl1_3_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glBlendColor(red, green, blue, alpha);
+}
+
+void gl1_3_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetCompressedTexImage(target, level, img);
+}
+
+void gl1_3_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data);
+}
+
+void gl1_3_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
+}
+
+void gl1_3_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
+}
+
+void gl1_3_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage1D(target, level, internalFormat, width, border, imageSize, data);
+}
+
+void gl1_3_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data);
+}
+
+void gl1_3_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage3D(target, level, internalFormat, width, height, depth, border, imageSize, data);
+}
+
+void gl1_3_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glSampleCoverage(value, invert);
+}
+
+void gl1_3_glActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glActiveTexture(texture);
+}
+
+void gl1_3_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTranslatef(x, y, z);
+}
+
+void gl1_3_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTranslated(x, y, z);
+}
+
+void gl1_3_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glScalef(x, y, z);
+}
+
+void gl1_3_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glScaled(x, y, z);
+}
+
+void gl1_3_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRotatef(angle, x, y, z);
+}
+
+void gl1_3_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRotated(angle, x, y, z);
+}
+
+void gl1_3_glPushMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPushMatrix();
+}
+
+void gl1_3_glPopMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPopMatrix();
+}
+
+void gl1_3_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glOrtho(left, right, bottom, top, zNear, zFar);
+}
+
+void gl1_3_glMultMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultMatrixd(m);
+}
+
+void gl1_3_glMultMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultMatrixf(m);
+}
+
+void gl1_3_glMatrixMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMatrixMode(mode);
+}
+
+void gl1_3_glLoadMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLoadMatrixd(m);
+}
+
+void gl1_3_glLoadMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLoadMatrixf(m);
+}
+
+void gl1_3_glLoadIdentity(void *_glfuncs)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLoadIdentity();
+}
+
+void gl1_3_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glFrustum(left, right, bottom, top, zNear, zFar);
+}
+
+GLboolean gl1_3_glIsList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ return _qglfuncs->glIsList(list);
+}
+
+void gl1_3_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetTexGeniv(coord, pname, params);
+}
+
+void gl1_3_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetTexGenfv(coord, pname, params);
+}
+
+void gl1_3_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetTexGendv(coord, pname, params);
+}
+
+void gl1_3_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetTexEnviv(target, pname, params);
+}
+
+void gl1_3_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetTexEnvfv(target, pname, params);
+}
+
+void gl1_3_glGetPolygonStipple(void *_glfuncs, GLubyte* mask)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetPolygonStipple(mask);
+}
+
+void gl1_3_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetPixelMapusv(glmap, values);
+}
+
+void gl1_3_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetPixelMapuiv(glmap, values);
+}
+
+void gl1_3_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetPixelMapfv(glmap, values);
+}
+
+void gl1_3_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetMaterialiv(face, pname, params);
+}
+
+void gl1_3_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetMaterialfv(face, pname, params);
+}
+
+void gl1_3_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetMapiv(target, query, v);
+}
+
+void gl1_3_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetMapfv(target, query, v);
+}
+
+void gl1_3_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetMapdv(target, query, v);
+}
+
+void gl1_3_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetLightiv(light, pname, params);
+}
+
+void gl1_3_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetLightfv(light, pname, params);
+}
+
+void gl1_3_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetClipPlane(plane, equation);
+}
+
+void gl1_3_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glDrawPixels(width, height, format, gltype, pixels);
+}
+
+void gl1_3_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCopyPixels(x, y, width, height, gltype);
+}
+
+void gl1_3_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPixelMapusv(glmap, mapsize, values);
+}
+
+void gl1_3_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPixelMapuiv(glmap, mapsize, values);
+}
+
+void gl1_3_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPixelMapfv(glmap, mapsize, values);
+}
+
+void gl1_3_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPixelTransferi(pname, param);
+}
+
+void gl1_3_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPixelTransferf(pname, param);
+}
+
+void gl1_3_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPixelZoom(xfactor, yfactor);
+}
+
+void gl1_3_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glAlphaFunc(glfunc, ref);
+}
+
+void gl1_3_glEvalPoint2(void *_glfuncs, GLint i, GLint j)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEvalPoint2(i, j);
+}
+
+void gl1_3_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEvalMesh2(mode, i1, i2, j1, j2);
+}
+
+void gl1_3_glEvalPoint1(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEvalPoint1(i);
+}
+
+void gl1_3_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEvalMesh1(mode, i1, i2);
+}
+
+void gl1_3_glEvalCoord2fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEvalCoord2fv(u);
+}
+
+void gl1_3_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEvalCoord2f(u, v);
+}
+
+void gl1_3_glEvalCoord2dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEvalCoord2dv(u);
+}
+
+void gl1_3_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEvalCoord2d(u, v);
+}
+
+void gl1_3_glEvalCoord1fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEvalCoord1fv(u);
+}
+
+void gl1_3_glEvalCoord1f(void *_glfuncs, GLfloat u)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEvalCoord1f(u);
+}
+
+void gl1_3_glEvalCoord1dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEvalCoord1dv(u);
+}
+
+void gl1_3_glEvalCoord1d(void *_glfuncs, GLdouble u)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEvalCoord1d(u);
+}
+
+void gl1_3_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMapGrid2f(un, u1, u2, vn, v1, v2);
+}
+
+void gl1_3_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMapGrid2d(un, u1, u2, vn, v1, v2);
+}
+
+void gl1_3_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMapGrid1f(un, u1, u2);
+}
+
+void gl1_3_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMapGrid1d(un, u1, u2);
+}
+
+void gl1_3_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl1_3_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl1_3_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMap1f(target, u1, u2, stride, order, points);
+}
+
+void gl1_3_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMap1d(target, u1, u2, stride, order, points);
+}
+
+void gl1_3_glPushAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPushAttrib(mask);
+}
+
+void gl1_3_glPopAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPopAttrib();
+}
+
+void gl1_3_glAccum(void *_glfuncs, GLenum op, GLfloat value)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glAccum(op, value);
+}
+
+void gl1_3_glIndexMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glIndexMask(mask);
+}
+
+void gl1_3_glClearIndex(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glClearIndex(c);
+}
+
+void gl1_3_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glClearAccum(red, green, blue, alpha);
+}
+
+void gl1_3_glPushName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPushName(name);
+}
+
+void gl1_3_glPopName(void *_glfuncs)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPopName();
+}
+
+void gl1_3_glPassThrough(void *_glfuncs, GLfloat token)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPassThrough(token);
+}
+
+void gl1_3_glLoadName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLoadName(name);
+}
+
+void gl1_3_glInitNames(void *_glfuncs)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glInitNames();
+}
+
+GLint gl1_3_glRenderMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ return _qglfuncs->glRenderMode(mode);
+}
+
+void gl1_3_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glSelectBuffer(size, buffer);
+}
+
+void gl1_3_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glFeedbackBuffer(size, gltype, buffer);
+}
+
+void gl1_3_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexGeniv(coord, pname, params);
+}
+
+void gl1_3_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexGeni(coord, pname, param);
+}
+
+void gl1_3_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexGenfv(coord, pname, params);
+}
+
+void gl1_3_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexGenf(coord, pname, param);
+}
+
+void gl1_3_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexGendv(coord, pname, params);
+}
+
+void gl1_3_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexGend(coord, pname, param);
+}
+
+void gl1_3_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexEnviv(target, pname, params);
+}
+
+void gl1_3_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexEnvi(target, pname, param);
+}
+
+void gl1_3_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexEnvfv(target, pname, params);
+}
+
+void gl1_3_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexEnvf(target, pname, param);
+}
+
+void gl1_3_glShadeModel(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glShadeModel(mode);
+}
+
+void gl1_3_glPolygonStipple(void *_glfuncs, const GLubyte* mask)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPolygonStipple(mask);
+}
+
+void gl1_3_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMaterialiv(face, pname, params);
+}
+
+void gl1_3_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMateriali(face, pname, param);
+}
+
+void gl1_3_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMaterialfv(face, pname, params);
+}
+
+void gl1_3_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMaterialf(face, pname, param);
+}
+
+void gl1_3_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLineStipple(factor, pattern);
+}
+
+void gl1_3_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLightModeliv(pname, params);
+}
+
+void gl1_3_glLightModeli(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLightModeli(pname, param);
+}
+
+void gl1_3_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLightModelfv(pname, params);
+}
+
+void gl1_3_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLightModelf(pname, param);
+}
+
+void gl1_3_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLightiv(light, pname, params);
+}
+
+void gl1_3_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLighti(light, pname, param);
+}
+
+void gl1_3_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLightfv(light, pname, params);
+}
+
+void gl1_3_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLightf(light, pname, param);
+}
+
+void gl1_3_glFogiv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glFogiv(pname, params);
+}
+
+void gl1_3_glFogi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glFogi(pname, param);
+}
+
+void gl1_3_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glFogfv(pname, params);
+}
+
+void gl1_3_glFogf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glFogf(pname, param);
+}
+
+void gl1_3_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColorMaterial(face, mode);
+}
+
+void gl1_3_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glClipPlane(plane, equation);
+}
+
+void gl1_3_glVertex4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex4sv(v);
+}
+
+void gl1_3_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex4s(x, y, z, w);
+}
+
+void gl1_3_glVertex4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex4iv(v);
+}
+
+void gl1_3_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex4i(x, y, z, w);
+}
+
+void gl1_3_glVertex4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex4fv(v);
+}
+
+void gl1_3_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex4f(x, y, z, w);
+}
+
+void gl1_3_glVertex4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex4dv(v);
+}
+
+void gl1_3_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex4d(x, y, z, w);
+}
+
+void gl1_3_glVertex3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex3sv(v);
+}
+
+void gl1_3_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex3s(x, y, z);
+}
+
+void gl1_3_glVertex3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex3iv(v);
+}
+
+void gl1_3_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex3i(x, y, z);
+}
+
+void gl1_3_glVertex3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex3fv(v);
+}
+
+void gl1_3_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex3f(x, y, z);
+}
+
+void gl1_3_glVertex3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex3dv(v);
+}
+
+void gl1_3_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex3d(x, y, z);
+}
+
+void gl1_3_glVertex2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex2sv(v);
+}
+
+void gl1_3_glVertex2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex2s(x, y);
+}
+
+void gl1_3_glVertex2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex2iv(v);
+}
+
+void gl1_3_glVertex2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex2i(x, y);
+}
+
+void gl1_3_glVertex2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex2fv(v);
+}
+
+void gl1_3_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex2f(x, y);
+}
+
+void gl1_3_glVertex2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex2dv(v);
+}
+
+void gl1_3_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertex2d(x, y);
+}
+
+void gl1_3_glTexCoord4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord4sv(v);
+}
+
+void gl1_3_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord4s(s, t, r, q);
+}
+
+void gl1_3_glTexCoord4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord4iv(v);
+}
+
+void gl1_3_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord4i(s, t, r, q);
+}
+
+void gl1_3_glTexCoord4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord4fv(v);
+}
+
+void gl1_3_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord4f(s, t, r, q);
+}
+
+void gl1_3_glTexCoord4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord4dv(v);
+}
+
+void gl1_3_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord4d(s, t, r, q);
+}
+
+void gl1_3_glTexCoord3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord3sv(v);
+}
+
+void gl1_3_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord3s(s, t, r);
+}
+
+void gl1_3_glTexCoord3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord3iv(v);
+}
+
+void gl1_3_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord3i(s, t, r);
+}
+
+void gl1_3_glTexCoord3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord3fv(v);
+}
+
+void gl1_3_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord3f(s, t, r);
+}
+
+void gl1_3_glTexCoord3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord3dv(v);
+}
+
+void gl1_3_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord3d(s, t, r);
+}
+
+void gl1_3_glTexCoord2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord2sv(v);
+}
+
+void gl1_3_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord2s(s, t);
+}
+
+void gl1_3_glTexCoord2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord2iv(v);
+}
+
+void gl1_3_glTexCoord2i(void *_glfuncs, GLint s, GLint t)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord2i(s, t);
+}
+
+void gl1_3_glTexCoord2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord2fv(v);
+}
+
+void gl1_3_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord2f(s, t);
+}
+
+void gl1_3_glTexCoord2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord2dv(v);
+}
+
+void gl1_3_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord2d(s, t);
+}
+
+void gl1_3_glTexCoord1sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord1sv(v);
+}
+
+void gl1_3_glTexCoord1s(void *_glfuncs, GLshort s)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord1s(s);
+}
+
+void gl1_3_glTexCoord1iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord1iv(v);
+}
+
+void gl1_3_glTexCoord1i(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord1i(s);
+}
+
+void gl1_3_glTexCoord1fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord1fv(v);
+}
+
+void gl1_3_glTexCoord1f(void *_glfuncs, GLfloat s)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord1f(s);
+}
+
+void gl1_3_glTexCoord1dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord1dv(v);
+}
+
+void gl1_3_glTexCoord1d(void *_glfuncs, GLdouble s)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoord1d(s);
+}
+
+void gl1_3_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRectsv(v1, v2);
+}
+
+void gl1_3_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRects(x1, y1, x2, y2);
+}
+
+void gl1_3_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRectiv(v1, v2);
+}
+
+void gl1_3_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRecti(x1, y1, x2, y2);
+}
+
+void gl1_3_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRectfv(v1, v2);
+}
+
+void gl1_3_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRectf(x1, y1, x2, y2);
+}
+
+void gl1_3_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRectdv(v1, v2);
+}
+
+void gl1_3_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRectd(x1, y1, x2, y2);
+}
+
+void gl1_3_glRasterPos4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos4sv(v);
+}
+
+void gl1_3_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos4s(x, y, z, w);
+}
+
+void gl1_3_glRasterPos4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos4iv(v);
+}
+
+void gl1_3_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos4i(x, y, z, w);
+}
+
+void gl1_3_glRasterPos4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos4fv(v);
+}
+
+void gl1_3_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos4f(x, y, z, w);
+}
+
+void gl1_3_glRasterPos4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos4dv(v);
+}
+
+void gl1_3_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos4d(x, y, z, w);
+}
+
+void gl1_3_glRasterPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos3sv(v);
+}
+
+void gl1_3_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos3s(x, y, z);
+}
+
+void gl1_3_glRasterPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos3iv(v);
+}
+
+void gl1_3_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos3i(x, y, z);
+}
+
+void gl1_3_glRasterPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos3fv(v);
+}
+
+void gl1_3_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos3f(x, y, z);
+}
+
+void gl1_3_glRasterPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos3dv(v);
+}
+
+void gl1_3_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos3d(x, y, z);
+}
+
+void gl1_3_glRasterPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos2sv(v);
+}
+
+void gl1_3_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos2s(x, y);
+}
+
+void gl1_3_glRasterPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos2iv(v);
+}
+
+void gl1_3_glRasterPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos2i(x, y);
+}
+
+void gl1_3_glRasterPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos2fv(v);
+}
+
+void gl1_3_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos2f(x, y);
+}
+
+void gl1_3_glRasterPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos2dv(v);
+}
+
+void gl1_3_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glRasterPos2d(x, y);
+}
+
+void gl1_3_glNormal3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glNormal3sv(v);
+}
+
+void gl1_3_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glNormal3s(nx, ny, nz);
+}
+
+void gl1_3_glNormal3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glNormal3iv(v);
+}
+
+void gl1_3_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glNormal3i(nx, ny, nz);
+}
+
+void gl1_3_glNormal3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glNormal3fv(v);
+}
+
+void gl1_3_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glNormal3f(nx, ny, nz);
+}
+
+void gl1_3_glNormal3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glNormal3dv(v);
+}
+
+void gl1_3_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glNormal3d(nx, ny, nz);
+}
+
+void gl1_3_glNormal3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glNormal3bv(v);
+}
+
+void gl1_3_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glNormal3b(nx, ny, nz);
+}
+
+void gl1_3_glIndexsv(void *_glfuncs, const GLshort* c)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glIndexsv(c);
+}
+
+void gl1_3_glIndexs(void *_glfuncs, GLshort c)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glIndexs(c);
+}
+
+void gl1_3_glIndexiv(void *_glfuncs, const GLint* c)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glIndexiv(c);
+}
+
+void gl1_3_glIndexi(void *_glfuncs, GLint c)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glIndexi(c);
+}
+
+void gl1_3_glIndexfv(void *_glfuncs, const GLfloat* c)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glIndexfv(c);
+}
+
+void gl1_3_glIndexf(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glIndexf(c);
+}
+
+void gl1_3_glIndexdv(void *_glfuncs, const GLdouble* c)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glIndexdv(c);
+}
+
+void gl1_3_glIndexd(void *_glfuncs, GLdouble c)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glIndexd(c);
+}
+
+void gl1_3_glEnd(void *_glfuncs)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEnd();
+}
+
+void gl1_3_glEdgeFlagv(void *_glfuncs, const GLboolean* flag)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEdgeFlagv(flag);
+}
+
+void gl1_3_glEdgeFlag(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEdgeFlag(flag);
+}
+
+void gl1_3_glColor4usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4usv(v);
+}
+
+void gl1_3_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4us(red, green, blue, alpha);
+}
+
+void gl1_3_glColor4uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4uiv(v);
+}
+
+void gl1_3_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4ui(red, green, blue, alpha);
+}
+
+void gl1_3_glColor4ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4ubv(v);
+}
+
+void gl1_3_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4ub(red, green, blue, alpha);
+}
+
+void gl1_3_glColor4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4sv(v);
+}
+
+void gl1_3_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4s(red, green, blue, alpha);
+}
+
+void gl1_3_glColor4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4iv(v);
+}
+
+void gl1_3_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4i(red, green, blue, alpha);
+}
+
+void gl1_3_glColor4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4fv(v);
+}
+
+void gl1_3_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4f(red, green, blue, alpha);
+}
+
+void gl1_3_glColor4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4dv(v);
+}
+
+void gl1_3_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4d(red, green, blue, alpha);
+}
+
+void gl1_3_glColor4bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4bv(v);
+}
+
+void gl1_3_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor4b(red, green, blue, alpha);
+}
+
+void gl1_3_glColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3usv(v);
+}
+
+void gl1_3_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3us(red, green, blue);
+}
+
+void gl1_3_glColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3uiv(v);
+}
+
+void gl1_3_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3ui(red, green, blue);
+}
+
+void gl1_3_glColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3ubv(v);
+}
+
+void gl1_3_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3ub(red, green, blue);
+}
+
+void gl1_3_glColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3sv(v);
+}
+
+void gl1_3_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3s(red, green, blue);
+}
+
+void gl1_3_glColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3iv(v);
+}
+
+void gl1_3_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3i(red, green, blue);
+}
+
+void gl1_3_glColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3fv(v);
+}
+
+void gl1_3_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3f(red, green, blue);
+}
+
+void gl1_3_glColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3dv(v);
+}
+
+void gl1_3_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3d(red, green, blue);
+}
+
+void gl1_3_glColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3bv(v);
+}
+
+void gl1_3_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColor3b(red, green, blue);
+}
+
+void gl1_3_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
+}
+
+void gl1_3_glBegin(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glBegin(mode);
+}
+
+void gl1_3_glListBase(void *_glfuncs, GLuint base)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glListBase(base);
+}
+
+GLuint gl1_3_glGenLists(void *_glfuncs, GLsizei range_)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ return _qglfuncs->glGenLists(range_);
+}
+
+void gl1_3_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glDeleteLists(list, range_);
+}
+
+void gl1_3_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCallLists(n, gltype, lists);
+}
+
+void gl1_3_glCallList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCallList(list);
+}
+
+void gl1_3_glEndList(void *_glfuncs)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEndList();
+}
+
+void gl1_3_glNewList(void *_glfuncs, GLuint list, GLenum mode)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glNewList(list, mode);
+}
+
+void gl1_3_glPushClientAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPushClientAttrib(mask);
+}
+
+void gl1_3_glPopClientAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPopClientAttrib();
+}
+
+void gl1_3_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glPrioritizeTextures(n, textures, priorities);
+}
+
+GLboolean gl1_3_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ return _qglfuncs->glAreTexturesResident(n, textures, residences);
+}
+
+void gl1_3_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glVertexPointer(size, gltype, stride, pointer);
+}
+
+void gl1_3_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glTexCoordPointer(size, gltype, stride, pointer);
+}
+
+void gl1_3_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glNormalPointer(gltype, stride, pointer);
+}
+
+void gl1_3_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glInterleavedArrays(format, stride, pointer);
+}
+
+void gl1_3_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glIndexPointer(gltype, stride, pointer);
+}
+
+void gl1_3_glEnableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEnableClientState(array);
+}
+
+void gl1_3_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glEdgeFlagPointer(stride, pointer);
+}
+
+void gl1_3_glDisableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glDisableClientState(array);
+}
+
+void gl1_3_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColorPointer(size, gltype, stride, pointer);
+}
+
+void gl1_3_glArrayElement(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glArrayElement(i);
+}
+
+void gl1_3_glResetMinmax(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glResetMinmax(target);
+}
+
+void gl1_3_glResetHistogram(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glResetHistogram(target);
+}
+
+void gl1_3_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMinmax(target, internalFormat, sink);
+}
+
+void gl1_3_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glHistogram(target, width, internalFormat, sink);
+}
+
+void gl1_3_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameteriv(target, pname, params);
+}
+
+void gl1_3_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameterfv(target, pname, params);
+}
+
+void gl1_3_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetMinmax(target, reset, format, gltype, values);
+}
+
+void gl1_3_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameteriv(target, pname, params);
+}
+
+void gl1_3_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameterfv(target, pname, params);
+}
+
+void gl1_3_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetHistogram(target, reset, format, gltype, values);
+}
+
+void gl1_3_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glSeparableFilter2D(target, internalFormat, width, height, format, gltype, row, column);
+}
+
+void gl1_3_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetSeparableFilter(target, format, gltype, row, column, span);
+}
+
+void gl1_3_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameteriv(target, pname, params);
+}
+
+void gl1_3_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameterfv(target, pname, params);
+}
+
+void gl1_3_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetConvolutionFilter(target, format, gltype, image);
+}
+
+void gl1_3_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter2D(target, internalFormat, x, y, width, height);
+}
+
+void gl1_3_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter1D(target, internalFormat, x, y, width);
+}
+
+void gl1_3_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteriv(target, pname, params);
+}
+
+void gl1_3_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteri(target, pname, params);
+}
+
+void gl1_3_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterfv(target, pname, params);
+}
+
+void gl1_3_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterf(target, pname, params);
+}
+
+void gl1_3_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter2D(target, internalFormat, width, height, format, gltype, image);
+}
+
+void gl1_3_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter1D(target, internalFormat, width, format, gltype, image);
+}
+
+void gl1_3_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCopyColorSubTable(target, start, x, y, width);
+}
+
+void gl1_3_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColorSubTable(target, start, count, format, gltype, data);
+}
+
+void gl1_3_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameteriv(target, pname, params);
+}
+
+void gl1_3_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameterfv(target, pname, params);
+}
+
+void gl1_3_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glGetColorTable(target, format, gltype, table);
+}
+
+void gl1_3_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glCopyColorTable(target, internalFormat, x, y, width);
+}
+
+void gl1_3_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColorTableParameteriv(target, pname, params);
+}
+
+void gl1_3_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColorTableParameterfv(target, pname, params);
+}
+
+void gl1_3_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glColorTable(target, internalFormat, width, format, gltype, table);
+}
+
+void gl1_3_glMultTransposeMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultTransposeMatrixd(m);
+}
+
+void gl1_3_glMultTransposeMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultTransposeMatrixf(m);
+}
+
+void gl1_3_glLoadTransposeMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLoadTransposeMatrixd(m);
+}
+
+void gl1_3_glLoadTransposeMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glLoadTransposeMatrixf(m);
+}
+
+void gl1_3_glMultiTexCoord4sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4sv(target, v);
+}
+
+void gl1_3_glMultiTexCoord4s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4s(target, s, t, r, q);
+}
+
+void gl1_3_glMultiTexCoord4iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4iv(target, v);
+}
+
+void gl1_3_glMultiTexCoord4i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4i(target, s, t, r, q);
+}
+
+void gl1_3_glMultiTexCoord4fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4fv(target, v);
+}
+
+void gl1_3_glMultiTexCoord4f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4f(target, s, t, r, q);
+}
+
+void gl1_3_glMultiTexCoord4dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4dv(target, v);
+}
+
+void gl1_3_glMultiTexCoord4d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4d(target, s, t, r, q);
+}
+
+void gl1_3_glMultiTexCoord3sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3sv(target, v);
+}
+
+void gl1_3_glMultiTexCoord3s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3s(target, s, t, r);
+}
+
+void gl1_3_glMultiTexCoord3iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3iv(target, v);
+}
+
+void gl1_3_glMultiTexCoord3i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3i(target, s, t, r);
+}
+
+void gl1_3_glMultiTexCoord3fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3fv(target, v);
+}
+
+void gl1_3_glMultiTexCoord3f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3f(target, s, t, r);
+}
+
+void gl1_3_glMultiTexCoord3dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3dv(target, v);
+}
+
+void gl1_3_glMultiTexCoord3d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3d(target, s, t, r);
+}
+
+void gl1_3_glMultiTexCoord2sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2sv(target, v);
+}
+
+void gl1_3_glMultiTexCoord2s(void *_glfuncs, GLenum target, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2s(target, s, t);
+}
+
+void gl1_3_glMultiTexCoord2iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2iv(target, v);
+}
+
+void gl1_3_glMultiTexCoord2i(void *_glfuncs, GLenum target, GLint s, GLint t)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2i(target, s, t);
+}
+
+void gl1_3_glMultiTexCoord2fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2fv(target, v);
+}
+
+void gl1_3_glMultiTexCoord2f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2f(target, s, t);
+}
+
+void gl1_3_glMultiTexCoord2dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2dv(target, v);
+}
+
+void gl1_3_glMultiTexCoord2d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2d(target, s, t);
+}
+
+void gl1_3_glMultiTexCoord1sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1sv(target, v);
+}
+
+void gl1_3_glMultiTexCoord1s(void *_glfuncs, GLenum target, GLshort s)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1s(target, s);
+}
+
+void gl1_3_glMultiTexCoord1iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1iv(target, v);
+}
+
+void gl1_3_glMultiTexCoord1i(void *_glfuncs, GLenum target, GLint s)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1i(target, s);
+}
+
+void gl1_3_glMultiTexCoord1fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1fv(target, v);
+}
+
+void gl1_3_glMultiTexCoord1f(void *_glfuncs, GLenum target, GLfloat s)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1f(target, s);
+}
+
+void gl1_3_glMultiTexCoord1dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1dv(target, v);
+}
+
+void gl1_3_glMultiTexCoord1d(void *_glfuncs, GLenum target, GLdouble s)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1d(target, s);
+}
+
+void gl1_3_glClientActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_1_3* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_3*>(_glfuncs);
+ _qglfuncs->glClientActiveTexture(texture);
+}
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.3/funcs.h b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.3/funcs.h
new file mode 100644
index 000000000..9d3944383
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.3/funcs.h
@@ -0,0 +1,460 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#ifndef __cplusplus
+#include <inttypes.h>
+#include <stddef.h>
+typedef unsigned int GLenum;
+typedef unsigned char GLboolean;
+typedef unsigned int GLbitfield;
+typedef void GLvoid;
+typedef char GLchar;
+typedef signed char GLbyte; /* 1-byte signed */
+typedef short GLshort; /* 2-byte signed */
+typedef int GLint; /* 4-byte signed */
+typedef unsigned char GLubyte; /* 1-byte unsigned */
+typedef unsigned short GLushort; /* 2-byte unsigned */
+typedef unsigned int GLuint; /* 4-byte unsigned */
+typedef int GLsizei; /* 4-byte signed */
+typedef float GLfloat; /* single precision float */
+typedef float GLclampf; /* single precision float in [0,1] */
+typedef double GLdouble; /* double precision float */
+typedef double GLclampd; /* double precision float in [0,1] */
+typedef int64_t GLint64;
+typedef uint64_t GLuint64;
+typedef ptrdiff_t GLintptr;
+typedef ptrdiff_t GLsizeiptr;
+typedef ptrdiff_t GLintptrARB;
+typedef ptrdiff_t GLsizeiptrARB;
+typedef struct __GLsync *GLsync;
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *gl1_3_funcs();
+
+void gl1_3_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_3_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal);
+GLboolean gl1_3_glIsEnabled(void *_glfuncs, GLenum cap);
+void gl1_3_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params);
+void gl1_3_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params);
+void gl1_3_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_3_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_3_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl1_3_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params);
+void gl1_3_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params);
+GLenum gl1_3_glGetError(void *_glfuncs);
+void gl1_3_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params);
+void gl1_3_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params);
+void gl1_3_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl1_3_glReadBuffer(void *_glfuncs, GLenum mode);
+void gl1_3_glPixelStorei(void *_glfuncs, GLenum pname, GLint param);
+void gl1_3_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_3_glDepthFunc(void *_glfuncs, GLenum glfunc);
+void gl1_3_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass);
+void gl1_3_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask);
+void gl1_3_glLogicOp(void *_glfuncs, GLenum opcode);
+void gl1_3_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor);
+void gl1_3_glFlush(void *_glfuncs);
+void gl1_3_glFinish(void *_glfuncs);
+void gl1_3_glEnable(void *_glfuncs, GLenum cap);
+void gl1_3_glDisable(void *_glfuncs, GLenum cap);
+void gl1_3_glDepthMask(void *_glfuncs, GLboolean flag);
+void gl1_3_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+void gl1_3_glStencilMask(void *_glfuncs, GLuint mask);
+void gl1_3_glClearDepth(void *_glfuncs, GLdouble depth);
+void gl1_3_glClearStencil(void *_glfuncs, GLint s);
+void gl1_3_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_3_glClear(void *_glfuncs, GLbitfield mask);
+void gl1_3_glDrawBuffer(void *_glfuncs, GLenum mode);
+void gl1_3_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_3_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_3_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_3_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl1_3_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_3_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl1_3_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_3_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode);
+void gl1_3_glPointSize(void *_glfuncs, GLfloat size);
+void gl1_3_glLineWidth(void *_glfuncs, GLfloat width);
+void gl1_3_glHint(void *_glfuncs, GLenum target, GLenum mode);
+void gl1_3_glFrontFace(void *_glfuncs, GLenum mode);
+void gl1_3_glCullFace(void *_glfuncs, GLenum mode);
+void gl1_3_glIndexubv(void *_glfuncs, const GLubyte* c);
+void gl1_3_glIndexub(void *_glfuncs, GLubyte c);
+GLboolean gl1_3_glIsTexture(void *_glfuncs, GLuint texture);
+void gl1_3_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures);
+void gl1_3_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures);
+void gl1_3_glBindTexture(void *_glfuncs, GLenum target, GLuint texture);
+void gl1_3_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_3_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_3_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_3_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+void gl1_3_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+void gl1_3_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
+void gl1_3_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units);
+void gl1_3_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl1_3_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count);
+void gl1_3_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_3_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_3_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_3_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl1_3_glBlendEquation(void *_glfuncs, GLenum mode);
+void gl1_3_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_3_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img);
+void gl1_3_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl1_3_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl1_3_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl1_3_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl1_3_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl1_3_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl1_3_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert);
+void gl1_3_glActiveTexture(void *_glfuncs, GLenum texture);
+void gl1_3_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_3_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_3_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_3_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_3_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+void gl1_3_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+void gl1_3_glPushMatrix(void *_glfuncs);
+void gl1_3_glPopMatrix(void *_glfuncs);
+void gl1_3_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+void gl1_3_glMultMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_3_glMultMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_3_glMatrixMode(void *_glfuncs, GLenum mode);
+void gl1_3_glLoadMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_3_glLoadMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_3_glLoadIdentity(void *_glfuncs);
+void gl1_3_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLboolean gl1_3_glIsList(void *_glfuncs, GLuint list);
+void gl1_3_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params);
+void gl1_3_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params);
+void gl1_3_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params);
+void gl1_3_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_3_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_3_glGetPolygonStipple(void *_glfuncs, GLubyte* mask);
+void gl1_3_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values);
+void gl1_3_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values);
+void gl1_3_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values);
+void gl1_3_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params);
+void gl1_3_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params);
+void gl1_3_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v);
+void gl1_3_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v);
+void gl1_3_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v);
+void gl1_3_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params);
+void gl1_3_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params);
+void gl1_3_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation);
+void gl1_3_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_3_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype);
+void gl1_3_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values);
+void gl1_3_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values);
+void gl1_3_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values);
+void gl1_3_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param);
+void gl1_3_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_3_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor);
+void gl1_3_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref);
+void gl1_3_glEvalPoint2(void *_glfuncs, GLint i, GLint j);
+void gl1_3_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
+void gl1_3_glEvalPoint1(void *_glfuncs, GLint i);
+void gl1_3_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2);
+void gl1_3_glEvalCoord2fv(void *_glfuncs, const GLfloat* u);
+void gl1_3_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v);
+void gl1_3_glEvalCoord2dv(void *_glfuncs, const GLdouble* u);
+void gl1_3_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v);
+void gl1_3_glEvalCoord1fv(void *_glfuncs, const GLfloat* u);
+void gl1_3_glEvalCoord1f(void *_glfuncs, GLfloat u);
+void gl1_3_glEvalCoord1dv(void *_glfuncs, const GLdouble* u);
+void gl1_3_glEvalCoord1d(void *_glfuncs, GLdouble u);
+void gl1_3_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
+void gl1_3_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
+void gl1_3_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2);
+void gl1_3_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2);
+void gl1_3_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points);
+void gl1_3_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points);
+void gl1_3_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points);
+void gl1_3_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points);
+void gl1_3_glPushAttrib(void *_glfuncs, GLbitfield mask);
+void gl1_3_glPopAttrib(void *_glfuncs);
+void gl1_3_glAccum(void *_glfuncs, GLenum op, GLfloat value);
+void gl1_3_glIndexMask(void *_glfuncs, GLuint mask);
+void gl1_3_glClearIndex(void *_glfuncs, GLfloat c);
+void gl1_3_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_3_glPushName(void *_glfuncs, GLuint name);
+void gl1_3_glPopName(void *_glfuncs);
+void gl1_3_glPassThrough(void *_glfuncs, GLfloat token);
+void gl1_3_glLoadName(void *_glfuncs, GLuint name);
+void gl1_3_glInitNames(void *_glfuncs);
+GLint gl1_3_glRenderMode(void *_glfuncs, GLenum mode);
+void gl1_3_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer);
+void gl1_3_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer);
+void gl1_3_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params);
+void gl1_3_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param);
+void gl1_3_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params);
+void gl1_3_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param);
+void gl1_3_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params);
+void gl1_3_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param);
+void gl1_3_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_3_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl1_3_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_3_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl1_3_glShadeModel(void *_glfuncs, GLenum mode);
+void gl1_3_glPolygonStipple(void *_glfuncs, const GLubyte* mask);
+void gl1_3_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params);
+void gl1_3_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param);
+void gl1_3_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params);
+void gl1_3_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param);
+void gl1_3_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern);
+void gl1_3_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl1_3_glLightModeli(void *_glfuncs, GLenum pname, GLint param);
+void gl1_3_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl1_3_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_3_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params);
+void gl1_3_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param);
+void gl1_3_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params);
+void gl1_3_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param);
+void gl1_3_glFogiv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl1_3_glFogi(void *_glfuncs, GLenum pname, GLint param);
+void gl1_3_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl1_3_glFogf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_3_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode);
+void gl1_3_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation);
+void gl1_3_glVertex4sv(void *_glfuncs, const GLshort* v);
+void gl1_3_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl1_3_glVertex4iv(void *_glfuncs, const GLint* v);
+void gl1_3_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl1_3_glVertex4fv(void *_glfuncs, const GLfloat* v);
+void gl1_3_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl1_3_glVertex4dv(void *_glfuncs, const GLdouble* v);
+void gl1_3_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl1_3_glVertex3sv(void *_glfuncs, const GLshort* v);
+void gl1_3_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl1_3_glVertex3iv(void *_glfuncs, const GLint* v);
+void gl1_3_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl1_3_glVertex3fv(void *_glfuncs, const GLfloat* v);
+void gl1_3_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_3_glVertex3dv(void *_glfuncs, const GLdouble* v);
+void gl1_3_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_3_glVertex2sv(void *_glfuncs, const GLshort* v);
+void gl1_3_glVertex2s(void *_glfuncs, GLshort x, GLshort y);
+void gl1_3_glVertex2iv(void *_glfuncs, const GLint* v);
+void gl1_3_glVertex2i(void *_glfuncs, GLint x, GLint y);
+void gl1_3_glVertex2fv(void *_glfuncs, const GLfloat* v);
+void gl1_3_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl1_3_glVertex2dv(void *_glfuncs, const GLdouble* v);
+void gl1_3_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl1_3_glTexCoord4sv(void *_glfuncs, const GLshort* v);
+void gl1_3_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl1_3_glTexCoord4iv(void *_glfuncs, const GLint* v);
+void gl1_3_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q);
+void gl1_3_glTexCoord4fv(void *_glfuncs, const GLfloat* v);
+void gl1_3_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl1_3_glTexCoord4dv(void *_glfuncs, const GLdouble* v);
+void gl1_3_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl1_3_glTexCoord3sv(void *_glfuncs, const GLshort* v);
+void gl1_3_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r);
+void gl1_3_glTexCoord3iv(void *_glfuncs, const GLint* v);
+void gl1_3_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r);
+void gl1_3_glTexCoord3fv(void *_glfuncs, const GLfloat* v);
+void gl1_3_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r);
+void gl1_3_glTexCoord3dv(void *_glfuncs, const GLdouble* v);
+void gl1_3_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r);
+void gl1_3_glTexCoord2sv(void *_glfuncs, const GLshort* v);
+void gl1_3_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t);
+void gl1_3_glTexCoord2iv(void *_glfuncs, const GLint* v);
+void gl1_3_glTexCoord2i(void *_glfuncs, GLint s, GLint t);
+void gl1_3_glTexCoord2fv(void *_glfuncs, const GLfloat* v);
+void gl1_3_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t);
+void gl1_3_glTexCoord2dv(void *_glfuncs, const GLdouble* v);
+void gl1_3_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t);
+void gl1_3_glTexCoord1sv(void *_glfuncs, const GLshort* v);
+void gl1_3_glTexCoord1s(void *_glfuncs, GLshort s);
+void gl1_3_glTexCoord1iv(void *_glfuncs, const GLint* v);
+void gl1_3_glTexCoord1i(void *_glfuncs, GLint s);
+void gl1_3_glTexCoord1fv(void *_glfuncs, const GLfloat* v);
+void gl1_3_glTexCoord1f(void *_glfuncs, GLfloat s);
+void gl1_3_glTexCoord1dv(void *_glfuncs, const GLdouble* v);
+void gl1_3_glTexCoord1d(void *_glfuncs, GLdouble s);
+void gl1_3_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2);
+void gl1_3_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2);
+void gl1_3_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2);
+void gl1_3_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2);
+void gl1_3_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2);
+void gl1_3_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
+void gl1_3_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2);
+void gl1_3_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
+void gl1_3_glRasterPos4sv(void *_glfuncs, const GLshort* v);
+void gl1_3_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl1_3_glRasterPos4iv(void *_glfuncs, const GLint* v);
+void gl1_3_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl1_3_glRasterPos4fv(void *_glfuncs, const GLfloat* v);
+void gl1_3_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl1_3_glRasterPos4dv(void *_glfuncs, const GLdouble* v);
+void gl1_3_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl1_3_glRasterPos3sv(void *_glfuncs, const GLshort* v);
+void gl1_3_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl1_3_glRasterPos3iv(void *_glfuncs, const GLint* v);
+void gl1_3_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl1_3_glRasterPos3fv(void *_glfuncs, const GLfloat* v);
+void gl1_3_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_3_glRasterPos3dv(void *_glfuncs, const GLdouble* v);
+void gl1_3_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_3_glRasterPos2sv(void *_glfuncs, const GLshort* v);
+void gl1_3_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl1_3_glRasterPos2iv(void *_glfuncs, const GLint* v);
+void gl1_3_glRasterPos2i(void *_glfuncs, GLint x, GLint y);
+void gl1_3_glRasterPos2fv(void *_glfuncs, const GLfloat* v);
+void gl1_3_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl1_3_glRasterPos2dv(void *_glfuncs, const GLdouble* v);
+void gl1_3_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl1_3_glNormal3sv(void *_glfuncs, const GLshort* v);
+void gl1_3_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz);
+void gl1_3_glNormal3iv(void *_glfuncs, const GLint* v);
+void gl1_3_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz);
+void gl1_3_glNormal3fv(void *_glfuncs, const GLfloat* v);
+void gl1_3_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz);
+void gl1_3_glNormal3dv(void *_glfuncs, const GLdouble* v);
+void gl1_3_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz);
+void gl1_3_glNormal3bv(void *_glfuncs, const GLbyte* v);
+void gl1_3_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz);
+void gl1_3_glIndexsv(void *_glfuncs, const GLshort* c);
+void gl1_3_glIndexs(void *_glfuncs, GLshort c);
+void gl1_3_glIndexiv(void *_glfuncs, const GLint* c);
+void gl1_3_glIndexi(void *_glfuncs, GLint c);
+void gl1_3_glIndexfv(void *_glfuncs, const GLfloat* c);
+void gl1_3_glIndexf(void *_glfuncs, GLfloat c);
+void gl1_3_glIndexdv(void *_glfuncs, const GLdouble* c);
+void gl1_3_glIndexd(void *_glfuncs, GLdouble c);
+void gl1_3_glEnd(void *_glfuncs);
+void gl1_3_glEdgeFlagv(void *_glfuncs, const GLboolean* flag);
+void gl1_3_glEdgeFlag(void *_glfuncs, GLboolean flag);
+void gl1_3_glColor4usv(void *_glfuncs, const GLushort* v);
+void gl1_3_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha);
+void gl1_3_glColor4uiv(void *_glfuncs, const GLuint* v);
+void gl1_3_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha);
+void gl1_3_glColor4ubv(void *_glfuncs, const GLubyte* v);
+void gl1_3_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
+void gl1_3_glColor4sv(void *_glfuncs, const GLshort* v);
+void gl1_3_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha);
+void gl1_3_glColor4iv(void *_glfuncs, const GLint* v);
+void gl1_3_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha);
+void gl1_3_glColor4fv(void *_glfuncs, const GLfloat* v);
+void gl1_3_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_3_glColor4dv(void *_glfuncs, const GLdouble* v);
+void gl1_3_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
+void gl1_3_glColor4bv(void *_glfuncs, const GLbyte* v);
+void gl1_3_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
+void gl1_3_glColor3usv(void *_glfuncs, const GLushort* v);
+void gl1_3_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl1_3_glColor3uiv(void *_glfuncs, const GLuint* v);
+void gl1_3_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl1_3_glColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl1_3_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl1_3_glColor3sv(void *_glfuncs, const GLshort* v);
+void gl1_3_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl1_3_glColor3iv(void *_glfuncs, const GLint* v);
+void gl1_3_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl1_3_glColor3fv(void *_glfuncs, const GLfloat* v);
+void gl1_3_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl1_3_glColor3dv(void *_glfuncs, const GLdouble* v);
+void gl1_3_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl1_3_glColor3bv(void *_glfuncs, const GLbyte* v);
+void gl1_3_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl1_3_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap);
+void gl1_3_glBegin(void *_glfuncs, GLenum mode);
+void gl1_3_glListBase(void *_glfuncs, GLuint base);
+GLuint gl1_3_glGenLists(void *_glfuncs, GLsizei range_);
+void gl1_3_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_);
+void gl1_3_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists);
+void gl1_3_glCallList(void *_glfuncs, GLuint list);
+void gl1_3_glEndList(void *_glfuncs);
+void gl1_3_glNewList(void *_glfuncs, GLuint list, GLenum mode);
+void gl1_3_glPushClientAttrib(void *_glfuncs, GLbitfield mask);
+void gl1_3_glPopClientAttrib(void *_glfuncs);
+void gl1_3_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities);
+GLboolean gl1_3_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences);
+void gl1_3_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_3_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_3_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_3_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer);
+void gl1_3_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_3_glEnableClientState(void *_glfuncs, GLenum array);
+void gl1_3_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer);
+void gl1_3_glDisableClientState(void *_glfuncs, GLenum array);
+void gl1_3_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_3_glArrayElement(void *_glfuncs, GLint i);
+void gl1_3_glResetMinmax(void *_glfuncs, GLenum target);
+void gl1_3_glResetHistogram(void *_glfuncs, GLenum target);
+void gl1_3_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink);
+void gl1_3_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink);
+void gl1_3_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_3_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_3_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl1_3_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_3_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_3_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl1_3_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column);
+void gl1_3_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span);
+void gl1_3_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_3_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_3_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image);
+void gl1_3_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_3_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl1_3_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_3_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params);
+void gl1_3_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_3_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params);
+void gl1_3_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image);
+void gl1_3_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image);
+void gl1_3_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+void gl1_3_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data);
+void gl1_3_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_3_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_3_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table);
+void gl1_3_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl1_3_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_3_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_3_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table);
+void gl1_3_glMultTransposeMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_3_glMultTransposeMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_3_glLoadTransposeMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_3_glLoadTransposeMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_3_glMultiTexCoord4sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl1_3_glMultiTexCoord4s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl1_3_glMultiTexCoord4iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl1_3_glMultiTexCoord4i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r, GLint q);
+void gl1_3_glMultiTexCoord4fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl1_3_glMultiTexCoord4f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl1_3_glMultiTexCoord4dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl1_3_glMultiTexCoord4d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl1_3_glMultiTexCoord3sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl1_3_glMultiTexCoord3s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r);
+void gl1_3_glMultiTexCoord3iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl1_3_glMultiTexCoord3i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r);
+void gl1_3_glMultiTexCoord3fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl1_3_glMultiTexCoord3f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r);
+void gl1_3_glMultiTexCoord3dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl1_3_glMultiTexCoord3d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r);
+void gl1_3_glMultiTexCoord2sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl1_3_glMultiTexCoord2s(void *_glfuncs, GLenum target, GLshort s, GLshort t);
+void gl1_3_glMultiTexCoord2iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl1_3_glMultiTexCoord2i(void *_glfuncs, GLenum target, GLint s, GLint t);
+void gl1_3_glMultiTexCoord2fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl1_3_glMultiTexCoord2f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t);
+void gl1_3_glMultiTexCoord2dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl1_3_glMultiTexCoord2d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t);
+void gl1_3_glMultiTexCoord1sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl1_3_glMultiTexCoord1s(void *_glfuncs, GLenum target, GLshort s);
+void gl1_3_glMultiTexCoord1iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl1_3_glMultiTexCoord1i(void *_glfuncs, GLenum target, GLint s);
+void gl1_3_glMultiTexCoord1fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl1_3_glMultiTexCoord1f(void *_glfuncs, GLenum target, GLfloat s);
+void gl1_3_glMultiTexCoord1dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl1_3_glMultiTexCoord1d(void *_glfuncs, GLenum target, GLdouble s);
+void gl1_3_glClientActiveTexture(void *_glfuncs, GLenum texture);
+
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.3/gl.go b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.3/gl.go
new file mode 100644
index 000000000..6df8965a3
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.3/gl.go
@@ -0,0 +1,3571 @@
+// ** file automatically generated by glgen -- do not edit manually **
+
+package GL
+
+// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
+// #cgo LDFLAGS: -lstdc++
+// #cgo pkg-config: Qt5Core Qt5OpenGL
+//
+// #include "funcs.h"
+//
+// void free(void*);
+//
+import "C"
+
+import (
+ "fmt"
+ "reflect"
+ "unsafe"
+
+ "gopkg.in/qml.v1/gl/glbase"
+)
+
+// API returns a value that offers methods matching the OpenGL version 1.3 API.
+//
+// The returned API must not be used after the provided OpenGL context becomes invalid.
+func API(context glbase.Contexter) *GL {
+ gl := &GL{}
+ gl.funcs = C.gl1_3_funcs()
+ if gl.funcs == nil {
+ panic(fmt.Errorf("OpenGL version 1.3 is not available"))
+ }
+ return gl
+}
+
+// GL implements the OpenGL version 1.3 API. Values of this
+// type must be created via the API function, and it must not be used after
+// the associated OpenGL context becomes invalid.
+type GL struct {
+ funcs unsafe.Pointer
+}
+
+const (
+ FALSE = 0
+ TRUE = 1
+ NONE = 0
+
+ BYTE = 0x1400
+ UNSIGNED_BYTE = 0x1401
+ SHORT = 0x1402
+ UNSIGNED_SHORT = 0x1403
+ INT = 0x1404
+ UNSIGNED_INT = 0x1405
+ FLOAT = 0x1406
+ N2_BYTES = 0x1407
+ N3_BYTES = 0x1408
+ N4_BYTES = 0x1409
+ DOUBLE = 0x140A
+
+ ACCUM = 0x0100
+ LOAD = 0x0101
+ RETURN = 0x0102
+ MULT = 0x0103
+ ADD = 0x0104
+
+ ACCUM_BUFFER_BIT = 0x00000200
+ ALL_ATTRIB_BITS = 0xFFFFFFFF
+ COLOR_BUFFER_BIT = 0x00004000
+ CURRENT_BIT = 0x00000001
+ DEPTH_BUFFER_BIT = 0x00000100
+ ENABLE_BIT = 0x00002000
+ EVAL_BIT = 0x00010000
+ FOG_BIT = 0x00000080
+ HINT_BIT = 0x00008000
+ LIGHTING_BIT = 0x00000040
+ LINE_BIT = 0x00000004
+ LIST_BIT = 0x00020000
+ MULTISAMPLE_BIT = 0x20000000
+ PIXEL_MODE_BIT = 0x00000020
+ POINT_BIT = 0x00000002
+ POLYGON_BIT = 0x00000008
+ POLYGON_STIPPLE_BIT = 0x00000010
+ SCISSOR_BIT = 0x00080000
+ STENCIL_BUFFER_BIT = 0x00000400
+ TEXTURE_BIT = 0x00040000
+ TRANSFORM_BIT = 0x00001000
+ VIEWPORT_BIT = 0x00000800
+
+ ALWAYS = 0x0207
+ EQUAL = 0x0202
+ GEQUAL = 0x0206
+ GREATER = 0x0204
+ LEQUAL = 0x0203
+ LESS = 0x0201
+ NEVER = 0x0200
+ NOTEQUAL = 0x0205
+
+ LOGIC_OP = 0x0BF1
+
+ DST_ALPHA = 0x0304
+ ONE = 1
+ ONE_MINUS_DST_ALPHA = 0x0305
+ ONE_MINUS_SRC_ALPHA = 0x0303
+ ONE_MINUS_SRC_COLOR = 0x0301
+ SRC_ALPHA = 0x0302
+ SRC_COLOR = 0x0300
+ ZERO = 0
+
+ DST_COLOR = 0x0306
+ ONE_MINUS_DST_COLOR = 0x0307
+ SRC_ALPHA_SATURATE = 0x0308
+
+ CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF
+ CLIENT_PIXEL_STORE_BIT = 0x00000001
+ CLIENT_VERTEX_ARRAY_BIT = 0x00000002
+
+ CLIP_PLANE0 = 0x3000
+ CLIP_PLANE1 = 0x3001
+ CLIP_PLANE2 = 0x3002
+ CLIP_PLANE3 = 0x3003
+ CLIP_PLANE4 = 0x3004
+ CLIP_PLANE5 = 0x3005
+
+ BACK = 0x0405
+ FRONT = 0x0404
+ FRONT_AND_BACK = 0x0408
+
+ AMBIENT = 0x1200
+ AMBIENT_AND_DIFFUSE = 0x1602
+ DIFFUSE = 0x1201
+ EMISSION = 0x1600
+ SPECULAR = 0x1202
+
+ AUX0 = 0x0409
+ AUX1 = 0x040A
+ AUX2 = 0x040B
+ AUX3 = 0x040C
+ BACK_LEFT = 0x0402
+ BACK_RIGHT = 0x0403
+ FRONT_LEFT = 0x0400
+ FRONT_RIGHT = 0x0401
+ LEFT = 0x0406
+ RIGHT = 0x0407
+
+ ALPHA_TEST = 0x0BC0
+ AUTO_NORMAL = 0x0D80
+ BLEND = 0x0BE2
+ COLOR_ARRAY = 0x8076
+ COLOR_LOGIC_OP = 0x0BF2
+ COLOR_MATERIAL = 0x0B57
+ CULL_FACE = 0x0B44
+ DEPTH_TEST = 0x0B71
+ DITHER = 0x0BD0
+ EDGE_FLAG_ARRAY = 0x8079
+ FOG = 0x0B60
+ INDEX_ARRAY = 0x8077
+ INDEX_LOGIC_OP = 0x0BF1
+ LIGHT0 = 0x4000
+ LIGHT1 = 0x4001
+ LIGHT2 = 0x4002
+ LIGHT3 = 0x4003
+ LIGHT4 = 0x4004
+ LIGHT5 = 0x4005
+ LIGHT6 = 0x4006
+ LIGHT7 = 0x4007
+ LIGHTING = 0x0B50
+ LINE_SMOOTH = 0x0B20
+ LINE_STIPPLE = 0x0B24
+ MAP1_COLOR_4 = 0x0D90
+ MAP1_INDEX = 0x0D91
+ MAP1_NORMAL = 0x0D92
+ MAP1_TEXTURE_COORD_1 = 0x0D93
+ MAP1_TEXTURE_COORD_2 = 0x0D94
+ MAP1_TEXTURE_COORD_3 = 0x0D95
+ MAP1_TEXTURE_COORD_4 = 0x0D96
+ MAP1_VERTEX_3 = 0x0D97
+ MAP1_VERTEX_4 = 0x0D98
+ MAP2_COLOR_4 = 0x0DB0
+ MAP2_INDEX = 0x0DB1
+ MAP2_NORMAL = 0x0DB2
+ MAP2_TEXTURE_COORD_1 = 0x0DB3
+ MAP2_TEXTURE_COORD_2 = 0x0DB4
+ MAP2_TEXTURE_COORD_3 = 0x0DB5
+ MAP2_TEXTURE_COORD_4 = 0x0DB6
+ MAP2_VERTEX_3 = 0x0DB7
+ MAP2_VERTEX_4 = 0x0DB8
+ NORMALIZE = 0x0BA1
+ NORMAL_ARRAY = 0x8075
+ POINT_SMOOTH = 0x0B10
+ POLYGON_OFFSET_FILL = 0x8037
+ POLYGON_OFFSET_LINE = 0x2A02
+ POLYGON_OFFSET_POINT = 0x2A01
+ POLYGON_SMOOTH = 0x0B41
+ POLYGON_STIPPLE = 0x0B42
+ SCISSOR_TEST = 0x0C11
+ STENCIL_TEST = 0x0B90
+ TEXTURE_1D = 0x0DE0
+ TEXTURE_2D = 0x0DE1
+ TEXTURE_COORD_ARRAY = 0x8078
+ TEXTURE_GEN_Q = 0x0C63
+ TEXTURE_GEN_R = 0x0C62
+ TEXTURE_GEN_S = 0x0C60
+ TEXTURE_GEN_T = 0x0C61
+ VERTEX_ARRAY = 0x8074
+
+ INVALID_ENUM = 0x0500
+ INVALID_OPERATION = 0x0502
+ INVALID_VALUE = 0x0501
+ NO_ERROR = 0
+ OUT_OF_MEMORY = 0x0505
+ STACK_OVERFLOW = 0x0503
+ STACK_UNDERFLOW = 0x0504
+
+ N2D = 0x0600
+ N3D = 0x0601
+ N3D_COLOR = 0x0602
+ N3D_COLOR_TEXTURE = 0x0603
+ N4D_COLOR_TEXTURE = 0x0604
+
+ BITMAP_TOKEN = 0x0704
+ COPY_PIXEL_TOKEN = 0x0706
+ DRAW_PIXEL_TOKEN = 0x0705
+ LINE_RESET_TOKEN = 0x0707
+ LINE_TOKEN = 0x0702
+ PASS_THROUGH_TOKEN = 0x0700
+ POINT_TOKEN = 0x0701
+ POLYGON_TOKEN = 0x0703
+
+ EXP = 0x0800
+ EXP2 = 0x0801
+ LINEAR = 0x2601
+
+ FOG_COLOR = 0x0B66
+ FOG_DENSITY = 0x0B62
+ FOG_END = 0x0B64
+ FOG_INDEX = 0x0B61
+ FOG_MODE = 0x0B65
+ FOG_START = 0x0B63
+
+ CCW = 0x0901
+ CW = 0x0900
+
+ COEFF = 0x0A00
+ DOMAIN = 0x0A02
+ ORDER = 0x0A01
+
+ PIXEL_MAP_A_TO_A = 0x0C79
+ PIXEL_MAP_B_TO_B = 0x0C78
+ PIXEL_MAP_G_TO_G = 0x0C77
+ PIXEL_MAP_I_TO_A = 0x0C75
+ PIXEL_MAP_I_TO_B = 0x0C74
+ PIXEL_MAP_I_TO_G = 0x0C73
+ PIXEL_MAP_I_TO_I = 0x0C70
+ PIXEL_MAP_I_TO_R = 0x0C72
+ PIXEL_MAP_R_TO_R = 0x0C76
+ PIXEL_MAP_S_TO_S = 0x0C71
+
+ ACCUM_ALPHA_BITS = 0x0D5B
+ ACCUM_BLUE_BITS = 0x0D5A
+ ACCUM_CLEAR_VALUE = 0x0B80
+ ACCUM_GREEN_BITS = 0x0D59
+ ACCUM_RED_BITS = 0x0D58
+ ALIASED_LINE_WIDTH_RANGE = 0x846E
+ ALIASED_POINT_SIZE_RANGE = 0x846D
+ ALPHA_BIAS = 0x0D1D
+ ALPHA_BITS = 0x0D55
+ ALPHA_SCALE = 0x0D1C
+ ALPHA_TEST_FUNC = 0x0BC1
+ ALPHA_TEST_REF = 0x0BC2
+ ATTRIB_STACK_DEPTH = 0x0BB0
+ AUX_BUFFERS = 0x0C00
+ BLEND_DST = 0x0BE0
+ BLEND_SRC = 0x0BE1
+ BLUE_BIAS = 0x0D1B
+ BLUE_BITS = 0x0D54
+ BLUE_SCALE = 0x0D1A
+ CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1
+ COLOR_ARRAY_SIZE = 0x8081
+ COLOR_ARRAY_STRIDE = 0x8083
+ COLOR_ARRAY_TYPE = 0x8082
+ COLOR_CLEAR_VALUE = 0x0C22
+ COLOR_MATERIAL_FACE = 0x0B55
+ COLOR_MATERIAL_PARAMETER = 0x0B56
+ COLOR_WRITEMASK = 0x0C23
+ CULL_FACE_MODE = 0x0B45
+ CURRENT_COLOR = 0x0B00
+ CURRENT_INDEX = 0x0B01
+ CURRENT_NORMAL = 0x0B02
+ CURRENT_RASTER_COLOR = 0x0B04
+ CURRENT_RASTER_DISTANCE = 0x0B09
+ CURRENT_RASTER_INDEX = 0x0B05
+ CURRENT_RASTER_POSITION = 0x0B07
+ CURRENT_RASTER_POSITION_VALID = 0x0B08
+ CURRENT_RASTER_TEXTURE_COORDS = 0x0B06
+ CURRENT_TEXTURE_COORDS = 0x0B03
+ DEPTH_BIAS = 0x0D1F
+ DEPTH_BITS = 0x0D56
+ DEPTH_CLEAR_VALUE = 0x0B73
+ DEPTH_FUNC = 0x0B74
+ DEPTH_RANGE = 0x0B70
+ DEPTH_SCALE = 0x0D1E
+ DEPTH_WRITEMASK = 0x0B72
+ DOUBLEBUFFER = 0x0C32
+ DRAW_BUFFER = 0x0C01
+ EDGE_FLAG = 0x0B43
+ EDGE_FLAG_ARRAY_STRIDE = 0x808C
+ FEEDBACK_BUFFER_SIZE = 0x0DF1
+ FEEDBACK_BUFFER_TYPE = 0x0DF2
+ FOG_HINT = 0x0C54
+ FRONT_FACE = 0x0B46
+ GREEN_BIAS = 0x0D19
+ GREEN_BITS = 0x0D53
+ GREEN_SCALE = 0x0D18
+ INDEX_ARRAY_STRIDE = 0x8086
+ INDEX_ARRAY_TYPE = 0x8085
+ INDEX_BITS = 0x0D51
+ INDEX_CLEAR_VALUE = 0x0C20
+ INDEX_MODE = 0x0C30
+ INDEX_OFFSET = 0x0D13
+ INDEX_SHIFT = 0x0D12
+ INDEX_WRITEMASK = 0x0C21
+ LIGHT_MODEL_AMBIENT = 0x0B53
+ LIGHT_MODEL_COLOR_CONTROL = 0x81F8
+ LIGHT_MODEL_LOCAL_VIEWER = 0x0B51
+ LIGHT_MODEL_TWO_SIDE = 0x0B52
+ LINE_SMOOTH_HINT = 0x0C52
+ LINE_STIPPLE_PATTERN = 0x0B25
+ LINE_STIPPLE_REPEAT = 0x0B26
+ LINE_WIDTH = 0x0B21
+ LINE_WIDTH_GRANULARITY = 0x0B23
+ LINE_WIDTH_RANGE = 0x0B22
+ LIST_BASE = 0x0B32
+ LIST_INDEX = 0x0B33
+ LIST_MODE = 0x0B30
+ LOGIC_OP_MODE = 0x0BF0
+ MAP1_GRID_DOMAIN = 0x0DD0
+ MAP1_GRID_SEGMENTS = 0x0DD1
+ MAP2_GRID_DOMAIN = 0x0DD2
+ MAP2_GRID_SEGMENTS = 0x0DD3
+ MAP_COLOR = 0x0D10
+ MAP_STENCIL = 0x0D11
+ MATRIX_MODE = 0x0BA0
+ MAX_ATTRIB_STACK_DEPTH = 0x0D35
+ MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B
+ MAX_CLIP_PLANES = 0x0D32
+ MAX_EVAL_ORDER = 0x0D30
+ MAX_LIGHTS = 0x0D31
+ MAX_LIST_NESTING = 0x0B31
+ MAX_MODELVIEW_STACK_DEPTH = 0x0D36
+ MAX_NAME_STACK_DEPTH = 0x0D37
+ MAX_PIXEL_MAP_TABLE = 0x0D34
+ MAX_PROJECTION_STACK_DEPTH = 0x0D38
+ MAX_TEXTURE_SIZE = 0x0D33
+ MAX_TEXTURE_STACK_DEPTH = 0x0D39
+ MAX_VIEWPORT_DIMS = 0x0D3A
+ MODELVIEW_MATRIX = 0x0BA6
+ MODELVIEW_STACK_DEPTH = 0x0BA3
+ NAME_STACK_DEPTH = 0x0D70
+ NORMAL_ARRAY_STRIDE = 0x807F
+ NORMAL_ARRAY_TYPE = 0x807E
+ PACK_ALIGNMENT = 0x0D05
+ PACK_LSB_FIRST = 0x0D01
+ PACK_ROW_LENGTH = 0x0D02
+ PACK_SKIP_PIXELS = 0x0D04
+ PACK_SKIP_ROWS = 0x0D03
+ PACK_SWAP_BYTES = 0x0D00
+ PERSPECTIVE_CORRECTION_HINT = 0x0C50
+ PIXEL_MAP_A_TO_A_SIZE = 0x0CB9
+ PIXEL_MAP_B_TO_B_SIZE = 0x0CB8
+ PIXEL_MAP_G_TO_G_SIZE = 0x0CB7
+ PIXEL_MAP_I_TO_A_SIZE = 0x0CB5
+ PIXEL_MAP_I_TO_B_SIZE = 0x0CB4
+ PIXEL_MAP_I_TO_G_SIZE = 0x0CB3
+ PIXEL_MAP_I_TO_I_SIZE = 0x0CB0
+ PIXEL_MAP_I_TO_R_SIZE = 0x0CB2
+ PIXEL_MAP_R_TO_R_SIZE = 0x0CB6
+ PIXEL_MAP_S_TO_S_SIZE = 0x0CB1
+ POINT_SIZE = 0x0B11
+ POINT_SIZE_GRANULARITY = 0x0B13
+ POINT_SIZE_RANGE = 0x0B12
+ POINT_SMOOTH_HINT = 0x0C51
+ POLYGON_MODE = 0x0B40
+ POLYGON_OFFSET_FACTOR = 0x8038
+ POLYGON_OFFSET_UNITS = 0x2A00
+ POLYGON_SMOOTH_HINT = 0x0C53
+ PROJECTION_MATRIX = 0x0BA7
+ PROJECTION_STACK_DEPTH = 0x0BA4
+ READ_BUFFER = 0x0C02
+ RED_BIAS = 0x0D15
+ RED_BITS = 0x0D52
+ RED_SCALE = 0x0D14
+ RENDER_MODE = 0x0C40
+ RGBA_MODE = 0x0C31
+ SCISSOR_BOX = 0x0C10
+ SELECTION_BUFFER_SIZE = 0x0DF4
+ SHADE_MODEL = 0x0B54
+ SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23
+ SMOOTH_LINE_WIDTH_RANGE = 0x0B22
+ SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13
+ SMOOTH_POINT_SIZE_RANGE = 0x0B12
+ STENCIL_BITS = 0x0D57
+ STENCIL_CLEAR_VALUE = 0x0B91
+ STENCIL_FAIL = 0x0B94
+ STENCIL_FUNC = 0x0B92
+ STENCIL_PASS_DEPTH_FAIL = 0x0B95
+ STENCIL_PASS_DEPTH_PASS = 0x0B96
+ STENCIL_REF = 0x0B97
+ STENCIL_VALUE_MASK = 0x0B93
+ STENCIL_WRITEMASK = 0x0B98
+ STEREO = 0x0C33
+ SUBPIXEL_BITS = 0x0D50
+ TEXTURE_BINDING_1D = 0x8068
+ TEXTURE_BINDING_2D = 0x8069
+ TEXTURE_BINDING_3D = 0x806A
+ TEXTURE_COORD_ARRAY_SIZE = 0x8088
+ TEXTURE_COORD_ARRAY_STRIDE = 0x808A
+ TEXTURE_COORD_ARRAY_TYPE = 0x8089
+ TEXTURE_MATRIX = 0x0BA8
+ TEXTURE_STACK_DEPTH = 0x0BA5
+ UNPACK_ALIGNMENT = 0x0CF5
+ UNPACK_LSB_FIRST = 0x0CF1
+ UNPACK_ROW_LENGTH = 0x0CF2
+ UNPACK_SKIP_PIXELS = 0x0CF4
+ UNPACK_SKIP_ROWS = 0x0CF3
+ UNPACK_SWAP_BYTES = 0x0CF0
+ VERTEX_ARRAY_SIZE = 0x807A
+ VERTEX_ARRAY_STRIDE = 0x807C
+ VERTEX_ARRAY_TYPE = 0x807B
+ VIEWPORT = 0x0BA2
+ ZOOM_X = 0x0D16
+ ZOOM_Y = 0x0D17
+
+ COLOR_ARRAY_POINTER = 0x8090
+ EDGE_FLAG_ARRAY_POINTER = 0x8093
+ FEEDBACK_BUFFER_POINTER = 0x0DF0
+ INDEX_ARRAY_POINTER = 0x8091
+ NORMAL_ARRAY_POINTER = 0x808F
+ SELECTION_BUFFER_POINTER = 0x0DF3
+ TEXTURE_COORD_ARRAY_POINTER = 0x8092
+ VERTEX_ARRAY_POINTER = 0x808E
+
+ TEXTURE_ALPHA_SIZE = 0x805F
+ TEXTURE_BLUE_SIZE = 0x805E
+ TEXTURE_BORDER = 0x1005
+ TEXTURE_BORDER_COLOR = 0x1004
+ TEXTURE_COMPONENTS = 0x1003
+ TEXTURE_GREEN_SIZE = 0x805D
+ TEXTURE_HEIGHT = 0x1001
+ TEXTURE_INTENSITY_SIZE = 0x8061
+ TEXTURE_INTERNAL_FORMAT = 0x1003
+ TEXTURE_LUMINANCE_SIZE = 0x8060
+ TEXTURE_MAG_FILTER = 0x2800
+ TEXTURE_MIN_FILTER = 0x2801
+ TEXTURE_PRIORITY = 0x8066
+ TEXTURE_RED_SIZE = 0x805C
+ TEXTURE_RESIDENT = 0x8067
+ TEXTURE_WIDTH = 0x1000
+ TEXTURE_WRAP_S = 0x2802
+ TEXTURE_WRAP_T = 0x2803
+
+ DONT_CARE = 0x1100
+ FASTEST = 0x1101
+ NICEST = 0x1102
+
+ TEXTURE_COMPRESSION_HINT = 0x84EF
+
+ C3F_V3F = 0x2A24
+ C4F_N3F_V3F = 0x2A26
+ C4UB_V2F = 0x2A22
+ C4UB_V3F = 0x2A23
+ N3F_V3F = 0x2A25
+ T2F_C3F_V3F = 0x2A2A
+ T2F_C4F_N3F_V3F = 0x2A2C
+ T2F_C4UB_V3F = 0x2A29
+ T2F_N3F_V3F = 0x2A2B
+ T2F_V3F = 0x2A27
+ T4F_C4F_N3F_V4F = 0x2A2D
+ T4F_V4F = 0x2A28
+ V2F = 0x2A20
+ V3F = 0x2A21
+
+ MODULATE = 0x2100
+ REPLACE = 0x1E01
+
+ SEPARATE_SPECULAR_COLOR = 0x81FA
+ SINGLE_COLOR = 0x81F9
+
+ CONSTANT_ATTENUATION = 0x1207
+ LINEAR_ATTENUATION = 0x1208
+ POSITION = 0x1203
+ QUADRATIC_ATTENUATION = 0x1209
+ SPOT_CUTOFF = 0x1206
+ SPOT_DIRECTION = 0x1204
+ SPOT_EXPONENT = 0x1205
+
+ COMPILE = 0x1300
+ COMPILE_AND_EXECUTE = 0x1301
+
+ AND = 0x1501
+ AND_INVERTED = 0x1504
+ AND_REVERSE = 0x1502
+ CLEAR = 0x1500
+ COPY = 0x1503
+ COPY_INVERTED = 0x150C
+ EQUIV = 0x1509
+ INVERT = 0x150A
+ NAND = 0x150E
+ NOOP = 0x1505
+ NOR = 0x1508
+ OR = 0x1507
+ OR_INVERTED = 0x150D
+ OR_REVERSE = 0x150B
+ SET = 0x150F
+ XOR = 0x1506
+
+ COLOR_INDEXES = 0x1603
+ SHININESS = 0x1601
+
+ MODELVIEW = 0x1700
+ PROJECTION = 0x1701
+ TEXTURE = 0x1702
+
+ LINE = 0x1B01
+ POINT = 0x1B00
+
+ FILL = 0x1B02
+
+ COLOR = 0x1800
+ DEPTH = 0x1801
+ STENCIL = 0x1802
+
+ ALPHA = 0x1906
+ BLUE = 0x1905
+ COLOR_INDEX = 0x1900
+ DEPTH_COMPONENT = 0x1902
+ GREEN = 0x1904
+ LUMINANCE = 0x1909
+ LUMINANCE_ALPHA = 0x190A
+ RED = 0x1903
+ RGB = 0x1907
+ RGBA = 0x1908
+ STENCIL_INDEX = 0x1901
+
+ ALPHA12 = 0x803D
+ ALPHA16 = 0x803E
+ ALPHA4 = 0x803B
+ ALPHA8 = 0x803C
+ INTENSITY = 0x8049
+ INTENSITY12 = 0x804C
+ INTENSITY16 = 0x804D
+ INTENSITY4 = 0x804A
+ INTENSITY8 = 0x804B
+ LUMINANCE12 = 0x8041
+ LUMINANCE12_ALPHA12 = 0x8047
+ LUMINANCE12_ALPHA4 = 0x8046
+ LUMINANCE16 = 0x8042
+ LUMINANCE16_ALPHA16 = 0x8048
+ LUMINANCE4 = 0x803F
+ LUMINANCE4_ALPHA4 = 0x8043
+ LUMINANCE6_ALPHA2 = 0x8044
+ LUMINANCE8 = 0x8040
+ LUMINANCE8_ALPHA8 = 0x8045
+ R3_G3_B2 = 0x2A10
+ RGB10 = 0x8052
+ RGB10_A2 = 0x8059
+ RGB12 = 0x8053
+ RGB16 = 0x8054
+ RGB4 = 0x804F
+ RGB5 = 0x8050
+ RGB5_A1 = 0x8057
+ RGB8 = 0x8051
+ RGBA12 = 0x805A
+ RGBA16 = 0x805B
+ RGBA2 = 0x8055
+ RGBA4 = 0x8056
+ RGBA8 = 0x8058
+
+ PACK_IMAGE_HEIGHT = 0x806C
+ PACK_SKIP_IMAGES = 0x806B
+ UNPACK_IMAGE_HEIGHT = 0x806E
+ UNPACK_SKIP_IMAGES = 0x806D
+
+ BITMAP = 0x1A00
+ UNSIGNED_BYTE_3_3_2 = 0x8032
+ UNSIGNED_INT_10_10_10_2 = 0x8036
+ UNSIGNED_INT_8_8_8_8 = 0x8035
+ UNSIGNED_SHORT_4_4_4_4 = 0x8033
+ UNSIGNED_SHORT_5_5_5_1 = 0x8034
+
+ LINES = 0x0001
+ LINE_LOOP = 0x0002
+ LINE_STRIP = 0x0003
+ POINTS = 0x0000
+ POLYGON = 0x0009
+ QUADS = 0x0007
+ QUAD_STRIP = 0x0008
+ TRIANGLES = 0x0004
+ TRIANGLE_FAN = 0x0006
+ TRIANGLE_STRIP = 0x0005
+
+ FEEDBACK = 0x1C01
+ RENDER = 0x1C00
+ SELECT = 0x1C02
+
+ FLAT = 0x1D00
+ SMOOTH = 0x1D01
+
+ DECR = 0x1E03
+ INCR = 0x1E02
+ KEEP = 0x1E00
+
+ EXTENSIONS = 0x1F03
+ RENDERER = 0x1F01
+ VENDOR = 0x1F00
+ VERSION = 0x1F02
+
+ S = 0x2000
+ T = 0x2001
+ R = 0x2002
+ Q = 0x2003
+
+ DECAL = 0x2101
+
+ TEXTURE_ENV_COLOR = 0x2201
+ TEXTURE_ENV_MODE = 0x2200
+
+ TEXTURE_ENV = 0x2300
+
+ EYE_LINEAR = 0x2400
+ OBJECT_LINEAR = 0x2401
+ SPHERE_MAP = 0x2402
+
+ EYE_PLANE = 0x2502
+ OBJECT_PLANE = 0x2501
+ TEXTURE_GEN_MODE = 0x2500
+
+ NEAREST = 0x2600
+
+ LINEAR_MIPMAP_LINEAR = 0x2703
+ LINEAR_MIPMAP_NEAREST = 0x2701
+ NEAREST_MIPMAP_LINEAR = 0x2702
+ NEAREST_MIPMAP_NEAREST = 0x2700
+
+ TEXTURE_WRAP_R = 0x8072
+
+ PROXY_TEXTURE_1D = 0x8063
+ PROXY_TEXTURE_2D = 0x8064
+ PROXY_TEXTURE_3D = 0x8070
+ TEXTURE_3D = 0x806F
+ TEXTURE_BASE_LEVEL = 0x813C
+ TEXTURE_MAX_LEVEL = 0x813D
+ TEXTURE_MAX_LOD = 0x813B
+ TEXTURE_MIN_LOD = 0x813A
+
+ CLAMP = 0x2900
+ CLAMP_TO_BORDER = 0x812D
+ CLAMP_TO_EDGE = 0x812F
+ REPEAT = 0x2901
+
+ RESCALE_NORMAL = 0x803A
+ TEXTURE_DEPTH = 0x8071
+ MAX_3D_TEXTURE_SIZE = 0x8073
+ MULTISAMPLE = 0x809D
+ SAMPLE_ALPHA_TO_COVERAGE = 0x809E
+ SAMPLE_ALPHA_TO_ONE = 0x809F
+ SAMPLE_COVERAGE = 0x80A0
+ SAMPLE_BUFFERS = 0x80A8
+ SAMPLES = 0x80A9
+ SAMPLE_COVERAGE_VALUE = 0x80AA
+ SAMPLE_COVERAGE_INVERT = 0x80AB
+ BGR = 0x80E0
+ BGRA = 0x80E1
+ MAX_ELEMENTS_VERTICES = 0x80E8
+ MAX_ELEMENTS_INDICES = 0x80E9
+ UNSIGNED_BYTE_2_3_3_REV = 0x8362
+ UNSIGNED_SHORT_5_6_5 = 0x8363
+ UNSIGNED_SHORT_5_6_5_REV = 0x8364
+ UNSIGNED_SHORT_4_4_4_4_REV = 0x8365
+ UNSIGNED_SHORT_1_5_5_5_REV = 0x8366
+ UNSIGNED_INT_8_8_8_8_REV = 0x8367
+ UNSIGNED_INT_2_10_10_10_REV = 0x8368
+ TEXTURE0 = 0x84C0
+ TEXTURE1 = 0x84C1
+ TEXTURE2 = 0x84C2
+ TEXTURE3 = 0x84C3
+ TEXTURE4 = 0x84C4
+ TEXTURE5 = 0x84C5
+ TEXTURE6 = 0x84C6
+ TEXTURE7 = 0x84C7
+ TEXTURE8 = 0x84C8
+ TEXTURE9 = 0x84C9
+ TEXTURE10 = 0x84CA
+ TEXTURE11 = 0x84CB
+ TEXTURE12 = 0x84CC
+ TEXTURE13 = 0x84CD
+ TEXTURE14 = 0x84CE
+ TEXTURE15 = 0x84CF
+ TEXTURE16 = 0x84D0
+ TEXTURE17 = 0x84D1
+ TEXTURE18 = 0x84D2
+ TEXTURE19 = 0x84D3
+ TEXTURE20 = 0x84D4
+ TEXTURE21 = 0x84D5
+ TEXTURE22 = 0x84D6
+ TEXTURE23 = 0x84D7
+ TEXTURE24 = 0x84D8
+ TEXTURE25 = 0x84D9
+ TEXTURE26 = 0x84DA
+ TEXTURE27 = 0x84DB
+ TEXTURE28 = 0x84DC
+ TEXTURE29 = 0x84DD
+ TEXTURE30 = 0x84DE
+ TEXTURE31 = 0x84DF
+ ACTIVE_TEXTURE = 0x84E0
+ CLIENT_ACTIVE_TEXTURE = 0x84E1
+ MAX_TEXTURE_UNITS = 0x84E2
+ TRANSPOSE_MODELVIEW_MATRIX = 0x84E3
+ TRANSPOSE_PROJECTION_MATRIX = 0x84E4
+ TRANSPOSE_TEXTURE_MATRIX = 0x84E5
+ TRANSPOSE_COLOR_MATRIX = 0x84E6
+ SUBTRACT = 0x84E7
+ COMPRESSED_ALPHA = 0x84E9
+ COMPRESSED_LUMINANCE = 0x84EA
+ COMPRESSED_LUMINANCE_ALPHA = 0x84EB
+ COMPRESSED_INTENSITY = 0x84EC
+ COMPRESSED_RGB = 0x84ED
+ COMPRESSED_RGBA = 0x84EE
+ NORMAL_MAP = 0x8511
+ REFLECTION_MAP = 0x8512
+ TEXTURE_CUBE_MAP = 0x8513
+ TEXTURE_BINDING_CUBE_MAP = 0x8514
+ TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515
+ TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516
+ TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
+ TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518
+ TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519
+ TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A
+ PROXY_TEXTURE_CUBE_MAP = 0x851B
+ MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C
+ COMBINE = 0x8570
+ COMBINE_RGB = 0x8571
+ COMBINE_ALPHA = 0x8572
+ RGB_SCALE = 0x8573
+ ADD_SIGNED = 0x8574
+ INTERPOLATE = 0x8575
+ CONSTANT = 0x8576
+ PRIMARY_COLOR = 0x8577
+ PREVIOUS = 0x8578
+ SOURCE0_RGB = 0x8580
+ SOURCE1_RGB = 0x8581
+ SOURCE2_RGB = 0x8582
+ SOURCE0_ALPHA = 0x8588
+ SOURCE1_ALPHA = 0x8589
+ SOURCE2_ALPHA = 0x858A
+ OPERAND0_RGB = 0x8590
+ OPERAND1_RGB = 0x8591
+ OPERAND2_RGB = 0x8592
+ OPERAND0_ALPHA = 0x8598
+ OPERAND1_ALPHA = 0x8599
+ OPERAND2_ALPHA = 0x859A
+ TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0
+ TEXTURE_COMPRESSED = 0x86A1
+ NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2
+ COMPRESSED_TEXTURE_FORMATS = 0x86A3
+ DOT3_RGB = 0x86AE
+ DOT3_RGBA = 0x86AF
+)
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glViewport.xml
+func (gl *GL) Viewport(x, y, width, height int) {
+ C.gl1_3_glViewport(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// DepthRange specifies the mapping of depth values from normalized device
+// coordinates to window coordinates.
+//
+// Parameter nearVal specifies the mapping of the near clipping plane to window
+// coordinates (defaults to 0), while farVal specifies the mapping of the far
+// clipping plane to window coordinates (defaults to 1).
+//
+// After clipping and division by w, depth coordinates range from -1 to 1,
+// corresponding to the near and far clipping planes. DepthRange specifies a
+// linear mapping of the normalized depth coordinates in this range to window
+// depth coordinates. Regardless of the actual depth buffer implementation,
+// window coordinate depth values are treated as though they range from 0 through 1
+// (like color components). Thus, the values accepted by DepthRange are both
+// clamped to this range before they are accepted.
+//
+// The default setting of (0, 1) maps the near plane to 0 and the far plane to 1.
+// With this mapping, the depth buffer range is fully utilized.
+//
+// It is not necessary that nearVal be less than farVal. Reverse mappings such as
+// nearVal 1, and farVal 0 are acceptable.
+//
+// GL.INVALID_OPERATION is generated if DepthRange is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) DepthRange(nearVal, farVal float64) {
+ C.gl1_3_glDepthRange(gl.funcs, C.GLdouble(nearVal), C.GLdouble(farVal))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsEnabled.xml
+func (gl *GL) IsEnabled(cap glbase.Enum) bool {
+ glresult := C.gl1_3_glIsEnabled(gl.funcs, C.GLenum(cap))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameteriv.xml
+func (gl *GL) GetTexLevelParameteriv(target glbase.Enum, level int, pname glbase.Enum, params []int32) {
+ C.gl1_3_glGetTexLevelParameteriv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameterfv.xml
+func (gl *GL) GetTexLevelParameterfv(target glbase.Enum, level int, pname glbase.Enum, params []float32) {
+ C.gl1_3_glGetTexLevelParameterfv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameteriv.xml
+func (gl *GL) GetTexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_3_glGetTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameterfv.xml
+func (gl *GL) GetTexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_3_glGetTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexImage.xml
+func (gl *GL) GetTexImage(target glbase.Enum, level int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glGetTexImage(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetIntegerv.xml
+func (gl *GL) GetIntegerv(pname glbase.Enum, params []int32) {
+ C.gl1_3_glGetIntegerv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetFloatv.xml
+func (gl *GL) GetFloatv(pname glbase.Enum, params []float32) {
+ C.gl1_3_glGetFloatv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetError.xml
+func (gl *GL) GetError() glbase.Enum {
+ glresult := C.gl1_3_glGetError(gl.funcs)
+ return glbase.Enum(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetDoublev.xml
+func (gl *GL) GetDoublev(pname glbase.Enum, params []float64) {
+ C.gl1_3_glGetDoublev(gl.funcs, C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetBooleanv.xml
+func (gl *GL) GetBooleanv(pname glbase.Enum, params []bool) {
+ C.gl1_3_glGetBooleanv(gl.funcs, C.GLenum(pname), (*C.GLboolean)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadPixels.xml
+func (gl *GL) ReadPixels(x, y, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glReadPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadBuffer.xml
+func (gl *GL) ReadBuffer(mode glbase.Enum) {
+ C.gl1_3_glReadBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStorei.xml
+func (gl *GL) PixelStorei(pname glbase.Enum, param int32) {
+ C.gl1_3_glPixelStorei(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStoref.xml
+func (gl *GL) PixelStoref(pname glbase.Enum, param float32) {
+ C.gl1_3_glPixelStoref(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthFunc.xml
+func (gl *GL) DepthFunc(glfunc glbase.Enum) {
+ C.gl1_3_glDepthFunc(gl.funcs, C.GLenum(glfunc))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilOp.xml
+func (gl *GL) StencilOp(fail, zfail, zpass glbase.Enum) {
+ C.gl1_3_glStencilOp(gl.funcs, C.GLenum(fail), C.GLenum(zfail), C.GLenum(zpass))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilFunc.xml
+func (gl *GL) StencilFunc(glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl1_3_glStencilFunc(gl.funcs, C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLogicOp.xml
+func (gl *GL) LogicOp(opcode glbase.Enum) {
+ C.gl1_3_glLogicOp(gl.funcs, C.GLenum(opcode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendFunc.xml
+func (gl *GL) BlendFunc(sfactor, dfactor glbase.Enum) {
+ C.gl1_3_glBlendFunc(gl.funcs, C.GLenum(sfactor), C.GLenum(dfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFlush.xml
+func (gl *GL) Flush() {
+ C.gl1_3_glFlush(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFinish.xml
+func (gl *GL) Finish() {
+ C.gl1_3_glFinish(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnable.xml
+func (gl *GL) Enable(cap glbase.Enum) {
+ C.gl1_3_glEnable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisable.xml
+func (gl *GL) Disable(cap glbase.Enum) {
+ C.gl1_3_glDisable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthMask.xml
+func (gl *GL) DepthMask(flag bool) {
+ C.gl1_3_glDepthMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMask.xml
+func (gl *GL) ColorMask(red, green, blue, alpha bool) {
+ C.gl1_3_glColorMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&red)), *(*C.GLboolean)(unsafe.Pointer(&green)), *(*C.GLboolean)(unsafe.Pointer(&blue)), *(*C.GLboolean)(unsafe.Pointer(&alpha)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilMask.xml
+func (gl *GL) StencilMask(mask uint32) {
+ C.gl1_3_glStencilMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearDepth.xml
+func (gl *GL) ClearDepth(depth float64) {
+ C.gl1_3_glClearDepth(gl.funcs, C.GLdouble(depth))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearStencil.xml
+func (gl *GL) ClearStencil(s int32) {
+ C.gl1_3_glClearStencil(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearColor.xml
+func (gl *GL) ClearColor(red, green, blue, alpha float32) {
+ C.gl1_3_glClearColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClear.xml
+func (gl *GL) Clear(mask glbase.Bitfield) {
+ C.gl1_3_glClear(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawBuffer.xml
+func (gl *GL) DrawBuffer(mode glbase.Enum) {
+ C.gl1_3_glDrawBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml
+func (gl *GL) TexImage2D(target glbase.Enum, level int, internalFormat int32, width, height, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage1D.xml
+func (gl *GL) TexImage1D(target glbase.Enum, level int, internalFormat int32, width, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteriv.xml
+func (gl *GL) TexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_3_glTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteri.xml
+func (gl *GL) TexParameteri(target, pname glbase.Enum, param int32) {
+ C.gl1_3_glTexParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterfv.xml
+func (gl *GL) TexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_3_glTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterf.xml
+func (gl *GL) TexParameterf(target, pname glbase.Enum, param float32) {
+ C.gl1_3_glTexParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScissor.xml
+func (gl *GL) Scissor(x, y, width, height int) {
+ C.gl1_3_glScissor(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonMode.xml
+func (gl *GL) PolygonMode(face, mode glbase.Enum) {
+ C.gl1_3_glPolygonMode(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointSize.xml
+func (gl *GL) PointSize(size float32) {
+ C.gl1_3_glPointSize(gl.funcs, C.GLfloat(size))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineWidth.xml
+func (gl *GL) LineWidth(width float32) {
+ C.gl1_3_glLineWidth(gl.funcs, C.GLfloat(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glHint.xml
+func (gl *GL) Hint(target, mode glbase.Enum) {
+ C.gl1_3_glHint(gl.funcs, C.GLenum(target), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrontFace.xml
+func (gl *GL) FrontFace(mode glbase.Enum) {
+ C.gl1_3_glFrontFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCullFace.xml
+func (gl *GL) CullFace(mode glbase.Enum) {
+ C.gl1_3_glCullFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexubv.xml
+func (gl *GL) Indexubv(c []uint8) {
+ C.gl1_3_glIndexubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexub.xml
+func (gl *GL) Indexub(c uint8) {
+ C.gl1_3_glIndexub(gl.funcs, C.GLubyte(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsTexture.xml
+func (gl *GL) IsTexture(texture glbase.Texture) bool {
+ glresult := C.gl1_3_glIsTexture(gl.funcs, C.GLuint(texture))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenTextures returns n texture names in textures. There is no guarantee
+// that the names form a contiguous set of integers; however, it is
+// guaranteed that none of the returned names was in use immediately before
+// the call to GenTextures.
+//
+// The generated textures have no dimensionality; they assume the
+// dimensionality of the texture target to which they are first bound (see
+// BindTexture).
+//
+// Texture names returned by a call to GenTextures are not returned by
+// subsequent calls, unless they are first deleted with DeleteTextures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// GenTextures is available in GL version 2.0 or greater.
+func (gl *GL) GenTextures(n int) []glbase.Texture {
+ if n == 0 {
+ return nil
+ }
+ textures := make([]glbase.Texture, n)
+ C.gl1_3_glGenTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+ return textures
+}
+
+// DeleteTextures deletes the textures objects whose names are stored
+// in the textures slice. After a texture is deleted, it has no contents or
+// dimensionality, and its name is free for reuse (for example by
+// GenTextures). If a texture that is currently bound is deleted, the binding
+// reverts to 0 (the default texture).
+//
+// DeleteTextures silently ignores 0's and names that do not correspond to
+// existing textures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// DeleteTextures is available in GL version 2.0 or greater.
+func (gl *GL) DeleteTextures(textures []glbase.Texture) {
+ n := len(textures)
+ if n == 0 {
+ return
+ }
+ C.gl1_3_glDeleteTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBindTexture.xml
+func (gl *GL) BindTexture(target glbase.Enum, texture glbase.Texture) {
+ C.gl1_3_glBindTexture(gl.funcs, C.GLenum(target), C.GLuint(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage2D.xml
+func (gl *GL) TexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage1D.xml
+func (gl *GL) TexSubImage1D(target glbase.Enum, level, xoffset, width int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage2D.xml
+func (gl *GL) CopyTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, x, y, width, height int) {
+ C.gl1_3_glCopyTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage1D.xml
+func (gl *GL) CopyTexSubImage1D(target glbase.Enum, level, xoffset, x, y, width int) {
+ C.gl1_3_glCopyTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage2D.xml
+func (gl *GL) CopyTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, height, border int) {
+ C.gl1_3_glCopyTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage1D.xml
+func (gl *GL) CopyTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, border int) {
+ C.gl1_3_glCopyTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonOffset.xml
+func (gl *GL) PolygonOffset(factor, units float32) {
+ C.gl1_3_glPolygonOffset(gl.funcs, C.GLfloat(factor), C.GLfloat(units))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawElements.xml
+func (gl *GL) DrawElements(mode glbase.Enum, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glDrawElements(gl.funcs, C.GLenum(mode), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawArrays.xml
+func (gl *GL) DrawArrays(mode glbase.Enum, first, count int) {
+ C.gl1_3_glDrawArrays(gl.funcs, C.GLenum(mode), C.GLint(first), C.GLsizei(count))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage3D.xml
+func (gl *GL) CopyTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, x, y, width, height int) {
+ C.gl1_3_glCopyTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage3D.xml
+func (gl *GL) TexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage3D.xml
+func (gl *GL) TexImage3D(target glbase.Enum, level int, internalFormat int32, width, height int, depth int32, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawRangeElements.xml
+func (gl *GL) DrawRangeElements(mode glbase.Enum, start, end uint32, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glDrawRangeElements(gl.funcs, C.GLenum(mode), C.GLuint(start), C.GLuint(end), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendEquation.xml
+func (gl *GL) BlendEquation(mode glbase.Enum) {
+ C.gl1_3_glBlendEquation(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendColor.xml
+func (gl *GL) BlendColor(red, green, blue, alpha float32) {
+ C.gl1_3_glBlendColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetCompressedTexImage.xml
+func (gl *GL) GetCompressedTexImage(target glbase.Enum, level int, img interface{}) {
+ var img_ptr unsafe.Pointer
+ var img_v = reflect.ValueOf(img)
+ if img != nil && img_v.Kind() != reflect.Slice {
+ panic("parameter img must be a slice")
+ }
+ if img != nil {
+ img_ptr = unsafe.Pointer(img_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glGetCompressedTexImage(gl.funcs, C.GLenum(target), C.GLint(level), img_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage1D.xml
+func (gl *GL) CompressedTexSubImage1D(target glbase.Enum, level, xoffset, width int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glCompressedTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage2D.xml
+func (gl *GL) CompressedTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glCompressedTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage3D.xml
+func (gl *GL) CompressedTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glCompressedTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage1D.xml
+func (gl *GL) CompressedTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, width, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glCompressedTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage2D.xml
+func (gl *GL) CompressedTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glCompressedTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage3D.xml
+func (gl *GL) CompressedTexImage3D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height int, depth int32, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glCompressedTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSampleCoverage.xml
+func (gl *GL) SampleCoverage(value float32, invert bool) {
+ C.gl1_3_glSampleCoverage(gl.funcs, C.GLfloat(value), *(*C.GLboolean)(unsafe.Pointer(&invert)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glActiveTexture.xml
+func (gl *GL) ActiveTexture(texture glbase.Enum) {
+ C.gl1_3_glActiveTexture(gl.funcs, C.GLenum(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslatef.xml
+func (gl *GL) Translatef(x, y, z float32) {
+ C.gl1_3_glTranslatef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslated.xml
+func (gl *GL) Translated(x, y, z float64) {
+ C.gl1_3_glTranslated(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScalef.xml
+func (gl *GL) Scalef(x, y, z float32) {
+ C.gl1_3_glScalef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScaled.xml
+func (gl *GL) Scaled(x, y, z float64) {
+ C.gl1_3_glScaled(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotatef.xml
+func (gl *GL) Rotatef(angle, x, y, z float32) {
+ C.gl1_3_glRotatef(gl.funcs, C.GLfloat(angle), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotated.xml
+func (gl *GL) Rotated(angle, x, y, z float64) {
+ C.gl1_3_glRotated(gl.funcs, C.GLdouble(angle), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushMatrix.xml
+func (gl *GL) PushMatrix() {
+ C.gl1_3_glPushMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopMatrix.xml
+func (gl *GL) PopMatrix() {
+ C.gl1_3_glPopMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml
+func (gl *GL) Ortho(left, right, bottom, top, zNear, zFar float64) {
+ C.gl1_3_glOrtho(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// MultMatrixd multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixd(m []float64) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl1_3_glMultMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// MultMatrixf multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixf(m []float32) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl1_3_glMultMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMatrixMode.xml
+func (gl *GL) MatrixMode(mode glbase.Enum) {
+ C.gl1_3_glMatrixMode(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixd.xml
+func (gl *GL) LoadMatrixd(m []float64) {
+ C.gl1_3_glLoadMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixf.xml
+func (gl *GL) LoadMatrixf(m []float32) {
+ C.gl1_3_glLoadMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadIdentity.xml
+func (gl *GL) LoadIdentity() {
+ C.gl1_3_glLoadIdentity(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml
+func (gl *GL) Frustum(left, right, bottom, top, zNear, zFar float64) {
+ C.gl1_3_glFrustum(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsList.xml
+func (gl *GL) IsList(list uint32) bool {
+ glresult := C.gl1_3_glIsList(gl.funcs, C.GLuint(list))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGeniv.xml
+func (gl *GL) GetTexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl1_3_glGetTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGenfv.xml
+func (gl *GL) GetTexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl1_3_glGetTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGendv.xml
+func (gl *GL) GetTexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl1_3_glGetTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnviv.xml
+func (gl *GL) GetTexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl1_3_glGetTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnvfv.xml
+func (gl *GL) GetTexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_3_glGetTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPolygonStipple.xml
+func (gl *GL) GetPolygonStipple(mask []uint8) {
+ C.gl1_3_glGetPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapusv.xml
+func (gl *GL) GetPixelMapusv(glmap glbase.Enum, values []uint16) {
+ C.gl1_3_glGetPixelMapusv(gl.funcs, C.GLenum(glmap), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapuiv.xml
+func (gl *GL) GetPixelMapuiv(glmap glbase.Enum, values []uint32) {
+ C.gl1_3_glGetPixelMapuiv(gl.funcs, C.GLenum(glmap), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapfv.xml
+func (gl *GL) GetPixelMapfv(glmap glbase.Enum, values []float32) {
+ C.gl1_3_glGetPixelMapfv(gl.funcs, C.GLenum(glmap), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialiv.xml
+func (gl *GL) GetMaterialiv(face, pname glbase.Enum, params []int32) {
+ C.gl1_3_glGetMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialfv.xml
+func (gl *GL) GetMaterialfv(face, pname glbase.Enum, params []float32) {
+ C.gl1_3_glGetMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapiv.xml
+func (gl *GL) GetMapiv(target, query glbase.Enum, v []int32) {
+ C.gl1_3_glGetMapiv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapfv.xml
+func (gl *GL) GetMapfv(target, query glbase.Enum, v []float32) {
+ C.gl1_3_glGetMapfv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapdv.xml
+func (gl *GL) GetMapdv(target, query glbase.Enum, v []float64) {
+ C.gl1_3_glGetMapdv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightiv.xml
+func (gl *GL) GetLightiv(light, pname glbase.Enum, params []int32) {
+ C.gl1_3_glGetLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightfv.xml
+func (gl *GL) GetLightfv(light, pname glbase.Enum, params []float32) {
+ C.gl1_3_glGetLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetClipPlane.xml
+func (gl *GL) GetClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl1_3_glGetClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawPixels.xml
+func (gl *GL) DrawPixels(width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glDrawPixels(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyPixels.xml
+func (gl *GL) CopyPixels(x, y, width, height int, gltype glbase.Enum) {
+ C.gl1_3_glCopyPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(gltype))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapusv.xml
+func (gl *GL) PixelMapusv(glmap glbase.Enum, mapsize int32, values []uint16) {
+ C.gl1_3_glPixelMapusv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapuiv.xml
+func (gl *GL) PixelMapuiv(glmap glbase.Enum, mapsize int32, values []uint32) {
+ C.gl1_3_glPixelMapuiv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapfv.xml
+func (gl *GL) PixelMapfv(glmap glbase.Enum, mapsize int32, values []float32) {
+ C.gl1_3_glPixelMapfv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferi.xml
+func (gl *GL) PixelTransferi(pname glbase.Enum, param int32) {
+ C.gl1_3_glPixelTransferi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferf.xml
+func (gl *GL) PixelTransferf(pname glbase.Enum, param float32) {
+ C.gl1_3_glPixelTransferf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelZoom.xml
+func (gl *GL) PixelZoom(xfactor, yfactor float32) {
+ C.gl1_3_glPixelZoom(gl.funcs, C.GLfloat(xfactor), C.GLfloat(yfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAlphaFunc.xml
+func (gl *GL) AlphaFunc(glfunc glbase.Enum, ref float32) {
+ C.gl1_3_glAlphaFunc(gl.funcs, C.GLenum(glfunc), C.GLfloat(ref))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint2.xml
+func (gl *GL) EvalPoint2(i, j int32) {
+ C.gl1_3_glEvalPoint2(gl.funcs, C.GLint(i), C.GLint(j))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh2.xml
+func (gl *GL) EvalMesh2(mode glbase.Enum, i1, i2, j1, j2 int32) {
+ C.gl1_3_glEvalMesh2(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2), C.GLint(j1), C.GLint(j2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint1.xml
+func (gl *GL) EvalPoint1(i int32) {
+ C.gl1_3_glEvalPoint1(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh1.xml
+func (gl *GL) EvalMesh1(mode glbase.Enum, i1, i2 int32) {
+ C.gl1_3_glEvalMesh1(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2fv.xml
+func (gl *GL) EvalCoord2fv(u []float32) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl1_3_glEvalCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2f.xml
+func (gl *GL) EvalCoord2f(u, v float32) {
+ C.gl1_3_glEvalCoord2f(gl.funcs, C.GLfloat(u), C.GLfloat(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2dv.xml
+func (gl *GL) EvalCoord2dv(u []float64) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl1_3_glEvalCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2d.xml
+func (gl *GL) EvalCoord2d(u, v float64) {
+ C.gl1_3_glEvalCoord2d(gl.funcs, C.GLdouble(u), C.GLdouble(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1fv.xml
+func (gl *GL) EvalCoord1fv(u []float32) {
+ C.gl1_3_glEvalCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1f.xml
+func (gl *GL) EvalCoord1f(u float32) {
+ C.gl1_3_glEvalCoord1f(gl.funcs, C.GLfloat(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1dv.xml
+func (gl *GL) EvalCoord1dv(u []float64) {
+ C.gl1_3_glEvalCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1d.xml
+func (gl *GL) EvalCoord1d(u float64) {
+ C.gl1_3_glEvalCoord1d(gl.funcs, C.GLdouble(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2f.xml
+func (gl *GL) MapGrid2f(un int32, u1, u2 float32, vn int32, v1, v2 float32) {
+ C.gl1_3_glMapGrid2f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2), C.GLint(vn), C.GLfloat(v1), C.GLfloat(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2d.xml
+func (gl *GL) MapGrid2d(un int32, u1, u2 float64, vn int32, v1, v2 float64) {
+ C.gl1_3_glMapGrid2d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2), C.GLint(vn), C.GLdouble(v1), C.GLdouble(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1f.xml
+func (gl *GL) MapGrid1f(un int32, u1, u2 float32) {
+ C.gl1_3_glMapGrid1f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1d.xml
+func (gl *GL) MapGrid1d(un int32, u1, u2 float64) {
+ C.gl1_3_glMapGrid1d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2f.xml
+func (gl *GL) Map2f(target glbase.Enum, u1, u2 float32, ustride, uorder int32, v1, v2 float32, vstride, vorder int32, points []float32) {
+ C.gl1_3_glMap2f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(ustride), C.GLint(uorder), C.GLfloat(v1), C.GLfloat(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2d.xml
+func (gl *GL) Map2d(target glbase.Enum, u1, u2 float64, ustride, uorder int32, v1, v2 float64, vstride, vorder int32, points []float64) {
+ C.gl1_3_glMap2d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(ustride), C.GLint(uorder), C.GLdouble(v1), C.GLdouble(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1f.xml
+func (gl *GL) Map1f(target glbase.Enum, u1, u2 float32, stride, order int, points []float32) {
+ C.gl1_3_glMap1f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(stride), C.GLint(order), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1d.xml
+func (gl *GL) Map1d(target glbase.Enum, u1, u2 float64, stride, order int, points []float64) {
+ C.gl1_3_glMap1d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(stride), C.GLint(order), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushAttrib.xml
+func (gl *GL) PushAttrib(mask glbase.Bitfield) {
+ C.gl1_3_glPushAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopAttrib.xml
+func (gl *GL) PopAttrib() {
+ C.gl1_3_glPopAttrib(gl.funcs)
+}
+
+// Accum executes an operation on the accumulation buffer.
+//
+// Parameter op defines the accumulation buffer operation (GL.ACCUM, GL.LOAD,
+// GL.ADD, GL.MULT, or GL.RETURN) and specifies how the value parameter is
+// used.
+//
+// The accumulation buffer is an extended-range color buffer. Images are not
+// rendered into it. Rather, images rendered into one of the color buffers
+// are added to the contents of the accumulation buffer after rendering.
+// Effects such as antialiasing (of points, lines, and polygons), motion
+// blur, and depth of field can be created by accumulating images generated
+// with different transformation matrices.
+//
+// Each pixel in the accumulation buffer consists of red, green, blue, and
+// alpha values. The number of bits per component in the accumulation buffer
+// depends on the implementation. You can examine this number by calling
+// GetIntegerv four times, with arguments GL.ACCUM_RED_BITS,
+// GL.ACCUM_GREEN_BITS, GL.ACCUM_BLUE_BITS, and GL.ACCUM_ALPHA_BITS.
+// Regardless of the number of bits per component, the range of values stored
+// by each component is (-1, 1). The accumulation buffer pixels are mapped
+// one-to-one with frame buffer pixels.
+//
+// All accumulation buffer operations are limited to the area of the current
+// scissor box and applied identically to the red, green, blue, and alpha
+// components of each pixel. If a Accum operation results in a value outside
+// the range (-1, 1), the contents of an accumulation buffer pixel component
+// are undefined.
+//
+// The operations are as follows:
+//
+// GL.ACCUM
+// Obtains R, G, B, and A values from the buffer currently selected for
+// reading (see ReadBuffer). Each component value is divided by 2 n -
+// 1 , where n is the number of bits allocated to each color component
+// in the currently selected buffer. The result is a floating-point
+// value in the range 0 1 , which is multiplied by value and added to
+// the corresponding pixel component in the accumulation buffer,
+// thereby updating the accumulation buffer.
+//
+// GL.LOAD
+// Similar to GL.ACCUM, except that the current value in the
+// accumulation buffer is not used in the calculation of the new value.
+// That is, the R, G, B, and A values from the currently selected
+// buffer are divided by 2 n - 1 , multiplied by value, and then stored
+// in the corresponding accumulation buffer cell, overwriting the
+// current value.
+//
+// GL.ADD
+// Adds value to each R, G, B, and A in the accumulation buffer.
+//
+// GL.MULT
+// Multiplies each R, G, B, and A in the accumulation buffer by value
+// and returns the scaled component to its corresponding accumulation
+// buffer location.
+//
+// GL.RETURN
+// Transfers accumulation buffer values to the color buffer or buffers
+// currently selected for writing. Each R, G, B, and A component is
+// multiplied by value, then multiplied by 2 n - 1 , clamped to the
+// range 0 2 n - 1 , and stored in the corresponding display buffer
+// cell. The only fragment operations that are applied to this transfer
+// are pixel ownership, scissor, dithering, and color writemasks.
+//
+// To clear the accumulation buffer, call ClearAccum with R, G, B, and A
+// values to set it to, then call Clear with the accumulation buffer
+// enabled.
+//
+// Error GL.INVALID_ENUM is generated if op is not an accepted value.
+// GL.INVALID_OPERATION is generated if there is no accumulation buffer.
+// GL.INVALID_OPERATION is generated if Accum is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) Accum(op glbase.Enum, value float32) {
+ C.gl1_3_glAccum(gl.funcs, C.GLenum(op), C.GLfloat(value))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexMask.xml
+func (gl *GL) IndexMask(mask uint32) {
+ C.gl1_3_glIndexMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearIndex.xml
+func (gl *GL) ClearIndex(c float32) {
+ C.gl1_3_glClearIndex(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearAccum.xml
+func (gl *GL) ClearAccum(red, green, blue, alpha float32) {
+ C.gl1_3_glClearAccum(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushName.xml
+func (gl *GL) PushName(name uint32) {
+ C.gl1_3_glPushName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopName.xml
+func (gl *GL) PopName() {
+ C.gl1_3_glPopName(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPassThrough.xml
+func (gl *GL) PassThrough(token float32) {
+ C.gl1_3_glPassThrough(gl.funcs, C.GLfloat(token))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadName.xml
+func (gl *GL) LoadName(name uint32) {
+ C.gl1_3_glLoadName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInitNames.xml
+func (gl *GL) InitNames() {
+ C.gl1_3_glInitNames(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRenderMode.xml
+func (gl *GL) RenderMode(mode glbase.Enum) int32 {
+ glresult := C.gl1_3_glRenderMode(gl.funcs, C.GLenum(mode))
+ return int32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSelectBuffer.xml
+func (gl *GL) SelectBuffer(size int, buffer []glbase.Buffer) {
+ C.gl1_3_glSelectBuffer(gl.funcs, C.GLsizei(size), (*C.GLuint)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFeedbackBuffer.xml
+func (gl *GL) FeedbackBuffer(size int, gltype glbase.Enum, buffer []float32) {
+ C.gl1_3_glFeedbackBuffer(gl.funcs, C.GLsizei(size), C.GLenum(gltype), (*C.GLfloat)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeniv.xml
+func (gl *GL) TexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl1_3_glTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeni.xml
+func (gl *GL) TexGeni(coord, pname glbase.Enum, param int32) {
+ C.gl1_3_glTexGeni(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenfv.xml
+func (gl *GL) TexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl1_3_glTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenf.xml
+func (gl *GL) TexGenf(coord, pname glbase.Enum, param float32) {
+ C.gl1_3_glTexGenf(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGendv.xml
+func (gl *GL) TexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl1_3_glTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGend.xml
+func (gl *GL) TexGend(coord, pname glbase.Enum, param float64) {
+ C.gl1_3_glTexGend(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLdouble(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnviv.xml
+func (gl *GL) TexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl1_3_glTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvi.xml
+func (gl *GL) TexEnvi(target, pname glbase.Enum, param int32) {
+ C.gl1_3_glTexEnvi(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvfv.xml
+func (gl *GL) TexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_3_glTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvf.xml
+func (gl *GL) TexEnvf(target, pname glbase.Enum, param float32) {
+ C.gl1_3_glTexEnvf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glShadeModel.xml
+func (gl *GL) ShadeModel(mode glbase.Enum) {
+ C.gl1_3_glShadeModel(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonStipple.xml
+func (gl *GL) PolygonStipple(mask []uint8) {
+ C.gl1_3_glPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialiv.xml
+func (gl *GL) Materialiv(face, pname glbase.Enum, params []int32) {
+ C.gl1_3_glMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMateriali.xml
+func (gl *GL) Materiali(face, pname glbase.Enum, param int32) {
+ C.gl1_3_glMateriali(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialfv.xml
+func (gl *GL) Materialfv(face, pname glbase.Enum, params []float32) {
+ C.gl1_3_glMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialf.xml
+func (gl *GL) Materialf(face, pname glbase.Enum, param float32) {
+ C.gl1_3_glMaterialf(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineStipple.xml
+func (gl *GL) LineStipple(factor int32, pattern uint16) {
+ C.gl1_3_glLineStipple(gl.funcs, C.GLint(factor), C.GLushort(pattern))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeliv.xml
+func (gl *GL) LightModeliv(pname glbase.Enum, params []int32) {
+ C.gl1_3_glLightModeliv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeli.xml
+func (gl *GL) LightModeli(pname glbase.Enum, param int32) {
+ C.gl1_3_glLightModeli(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelfv.xml
+func (gl *GL) LightModelfv(pname glbase.Enum, params []float32) {
+ C.gl1_3_glLightModelfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelf.xml
+func (gl *GL) LightModelf(pname glbase.Enum, param float32) {
+ C.gl1_3_glLightModelf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightiv.xml
+func (gl *GL) Lightiv(light, pname glbase.Enum, params []int32) {
+ C.gl1_3_glLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLighti.xml
+func (gl *GL) Lighti(light, pname glbase.Enum, param int32) {
+ C.gl1_3_glLighti(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightfv.xml
+func (gl *GL) Lightfv(light, pname glbase.Enum, params []float32) {
+ C.gl1_3_glLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightf.xml
+func (gl *GL) Lightf(light, pname glbase.Enum, param float32) {
+ C.gl1_3_glLightf(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogiv.xml
+func (gl *GL) Fogiv(pname glbase.Enum, params []int32) {
+ C.gl1_3_glFogiv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogi.xml
+func (gl *GL) Fogi(pname glbase.Enum, param int32) {
+ C.gl1_3_glFogi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogfv.xml
+func (gl *GL) Fogfv(pname glbase.Enum, params []float32) {
+ C.gl1_3_glFogfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogf.xml
+func (gl *GL) Fogf(pname glbase.Enum, param float32) {
+ C.gl1_3_glFogf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMaterial.xml
+func (gl *GL) ColorMaterial(face, mode glbase.Enum) {
+ C.gl1_3_glColorMaterial(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClipPlane.xml
+func (gl *GL) ClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl1_3_glClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4sv.xml
+func (gl *GL) Vertex4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glVertex4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4s.xml
+func (gl *GL) Vertex4s(x, y, z, w int16) {
+ C.gl1_3_glVertex4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4iv.xml
+func (gl *GL) Vertex4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glVertex4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4i.xml
+func (gl *GL) Vertex4i(x, y, z, w int) {
+ C.gl1_3_glVertex4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4fv.xml
+func (gl *GL) Vertex4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glVertex4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4f.xml
+func (gl *GL) Vertex4f(x, y, z, w float32) {
+ C.gl1_3_glVertex4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4dv.xml
+func (gl *GL) Vertex4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glVertex4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4d.xml
+func (gl *GL) Vertex4d(x, y, z, w float64) {
+ C.gl1_3_glVertex4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3sv.xml
+func (gl *GL) Vertex3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glVertex3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3s.xml
+func (gl *GL) Vertex3s(x, y, z int16) {
+ C.gl1_3_glVertex3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3iv.xml
+func (gl *GL) Vertex3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glVertex3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3i.xml
+func (gl *GL) Vertex3i(x, y, z int) {
+ C.gl1_3_glVertex3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3fv.xml
+func (gl *GL) Vertex3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glVertex3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3f.xml
+func (gl *GL) Vertex3f(x, y, z float32) {
+ C.gl1_3_glVertex3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3dv.xml
+func (gl *GL) Vertex3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glVertex3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3d.xml
+func (gl *GL) Vertex3d(x, y, z float64) {
+ C.gl1_3_glVertex3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2sv.xml
+func (gl *GL) Vertex2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glVertex2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2s.xml
+func (gl *GL) Vertex2s(x, y int16) {
+ C.gl1_3_glVertex2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2iv.xml
+func (gl *GL) Vertex2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glVertex2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2i.xml
+func (gl *GL) Vertex2i(x, y int) {
+ C.gl1_3_glVertex2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2fv.xml
+func (gl *GL) Vertex2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glVertex2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2f.xml
+func (gl *GL) Vertex2f(x, y float32) {
+ C.gl1_3_glVertex2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2dv.xml
+func (gl *GL) Vertex2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glVertex2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2d.xml
+func (gl *GL) Vertex2d(x, y float64) {
+ C.gl1_3_glVertex2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4sv.xml
+func (gl *GL) TexCoord4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glTexCoord4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4s.xml
+func (gl *GL) TexCoord4s(s, t, r, q int16) {
+ C.gl1_3_glTexCoord4s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4iv.xml
+func (gl *GL) TexCoord4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glTexCoord4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4i.xml
+func (gl *GL) TexCoord4i(s, t, r, q int32) {
+ C.gl1_3_glTexCoord4i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4fv.xml
+func (gl *GL) TexCoord4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glTexCoord4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4f.xml
+func (gl *GL) TexCoord4f(s, t, r, q float32) {
+ C.gl1_3_glTexCoord4f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4dv.xml
+func (gl *GL) TexCoord4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glTexCoord4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4d.xml
+func (gl *GL) TexCoord4d(s, t, r, q float64) {
+ C.gl1_3_glTexCoord4d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3sv.xml
+func (gl *GL) TexCoord3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glTexCoord3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3s.xml
+func (gl *GL) TexCoord3s(s, t, r int16) {
+ C.gl1_3_glTexCoord3s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3iv.xml
+func (gl *GL) TexCoord3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glTexCoord3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3i.xml
+func (gl *GL) TexCoord3i(s, t, r int32) {
+ C.gl1_3_glTexCoord3i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3fv.xml
+func (gl *GL) TexCoord3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glTexCoord3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3f.xml
+func (gl *GL) TexCoord3f(s, t, r float32) {
+ C.gl1_3_glTexCoord3f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3dv.xml
+func (gl *GL) TexCoord3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glTexCoord3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3d.xml
+func (gl *GL) TexCoord3d(s, t, r float64) {
+ C.gl1_3_glTexCoord3d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2sv.xml
+func (gl *GL) TexCoord2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glTexCoord2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2s.xml
+func (gl *GL) TexCoord2s(s, t int16) {
+ C.gl1_3_glTexCoord2s(gl.funcs, C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2iv.xml
+func (gl *GL) TexCoord2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glTexCoord2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2i.xml
+func (gl *GL) TexCoord2i(s, t int32) {
+ C.gl1_3_glTexCoord2i(gl.funcs, C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2fv.xml
+func (gl *GL) TexCoord2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glTexCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2f.xml
+func (gl *GL) TexCoord2f(s, t float32) {
+ C.gl1_3_glTexCoord2f(gl.funcs, C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2dv.xml
+func (gl *GL) TexCoord2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glTexCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2d.xml
+func (gl *GL) TexCoord2d(s, t float64) {
+ C.gl1_3_glTexCoord2d(gl.funcs, C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1sv.xml
+func (gl *GL) TexCoord1sv(v []int16) {
+ C.gl1_3_glTexCoord1sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1s.xml
+func (gl *GL) TexCoord1s(s int16) {
+ C.gl1_3_glTexCoord1s(gl.funcs, C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1iv.xml
+func (gl *GL) TexCoord1iv(v []int32) {
+ C.gl1_3_glTexCoord1iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1i.xml
+func (gl *GL) TexCoord1i(s int32) {
+ C.gl1_3_glTexCoord1i(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1fv.xml
+func (gl *GL) TexCoord1fv(v []float32) {
+ C.gl1_3_glTexCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1f.xml
+func (gl *GL) TexCoord1f(s float32) {
+ C.gl1_3_glTexCoord1f(gl.funcs, C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1dv.xml
+func (gl *GL) TexCoord1dv(v []float64) {
+ C.gl1_3_glTexCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1d.xml
+func (gl *GL) TexCoord1d(s float64) {
+ C.gl1_3_glTexCoord1d(gl.funcs, C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectsv.xml
+func (gl *GL) Rectsv(v1, v2 []int16) {
+ C.gl1_3_glRectsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v1[0])), (*C.GLshort)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRects.xml
+func (gl *GL) Rects(x1, y1, x2, y2 int16) {
+ C.gl1_3_glRects(gl.funcs, C.GLshort(x1), C.GLshort(y1), C.GLshort(x2), C.GLshort(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectiv.xml
+func (gl *GL) Rectiv(v1, v2 []int32) {
+ C.gl1_3_glRectiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v1[0])), (*C.GLint)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRecti.xml
+func (gl *GL) Recti(x1, y1, x2, y2 int32) {
+ C.gl1_3_glRecti(gl.funcs, C.GLint(x1), C.GLint(y1), C.GLint(x2), C.GLint(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectfv.xml
+func (gl *GL) Rectfv(v1, v2 []float32) {
+ C.gl1_3_glRectfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v1[0])), (*C.GLfloat)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectf.xml
+func (gl *GL) Rectf(x1, y1, x2, y2 float32) {
+ C.gl1_3_glRectf(gl.funcs, C.GLfloat(x1), C.GLfloat(y1), C.GLfloat(x2), C.GLfloat(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectdv.xml
+func (gl *GL) Rectdv(v1, v2 []float64) {
+ C.gl1_3_glRectdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v1[0])), (*C.GLdouble)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectd.xml
+func (gl *GL) Rectd(x1, y1, x2, y2 float64) {
+ C.gl1_3_glRectd(gl.funcs, C.GLdouble(x1), C.GLdouble(y1), C.GLdouble(x2), C.GLdouble(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4sv.xml
+func (gl *GL) RasterPos4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glRasterPos4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4s.xml
+func (gl *GL) RasterPos4s(x, y, z, w int16) {
+ C.gl1_3_glRasterPos4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4iv.xml
+func (gl *GL) RasterPos4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glRasterPos4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4i.xml
+func (gl *GL) RasterPos4i(x, y, z, w int) {
+ C.gl1_3_glRasterPos4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4fv.xml
+func (gl *GL) RasterPos4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glRasterPos4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4f.xml
+func (gl *GL) RasterPos4f(x, y, z, w float32) {
+ C.gl1_3_glRasterPos4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4dv.xml
+func (gl *GL) RasterPos4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glRasterPos4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4d.xml
+func (gl *GL) RasterPos4d(x, y, z, w float64) {
+ C.gl1_3_glRasterPos4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3sv.xml
+func (gl *GL) RasterPos3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glRasterPos3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3s.xml
+func (gl *GL) RasterPos3s(x, y, z int16) {
+ C.gl1_3_glRasterPos3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3iv.xml
+func (gl *GL) RasterPos3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glRasterPos3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3i.xml
+func (gl *GL) RasterPos3i(x, y, z int) {
+ C.gl1_3_glRasterPos3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3fv.xml
+func (gl *GL) RasterPos3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glRasterPos3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3f.xml
+func (gl *GL) RasterPos3f(x, y, z float32) {
+ C.gl1_3_glRasterPos3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3dv.xml
+func (gl *GL) RasterPos3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glRasterPos3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3d.xml
+func (gl *GL) RasterPos3d(x, y, z float64) {
+ C.gl1_3_glRasterPos3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2sv.xml
+func (gl *GL) RasterPos2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glRasterPos2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2s.xml
+func (gl *GL) RasterPos2s(x, y int16) {
+ C.gl1_3_glRasterPos2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2iv.xml
+func (gl *GL) RasterPos2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glRasterPos2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2i.xml
+func (gl *GL) RasterPos2i(x, y int) {
+ C.gl1_3_glRasterPos2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2fv.xml
+func (gl *GL) RasterPos2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glRasterPos2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2f.xml
+func (gl *GL) RasterPos2f(x, y float32) {
+ C.gl1_3_glRasterPos2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2dv.xml
+func (gl *GL) RasterPos2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glRasterPos2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2d.xml
+func (gl *GL) RasterPos2d(x, y float64) {
+ C.gl1_3_glRasterPos2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3sv.xml
+func (gl *GL) Normal3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glNormal3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3s.xml
+func (gl *GL) Normal3s(nx, ny, nz int16) {
+ C.gl1_3_glNormal3s(gl.funcs, C.GLshort(nx), C.GLshort(ny), C.GLshort(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3iv.xml
+func (gl *GL) Normal3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glNormal3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3i.xml
+func (gl *GL) Normal3i(nx, ny, nz int32) {
+ C.gl1_3_glNormal3i(gl.funcs, C.GLint(nx), C.GLint(ny), C.GLint(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3fv.xml
+func (gl *GL) Normal3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glNormal3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3f.xml
+func (gl *GL) Normal3f(nx, ny, nz float32) {
+ C.gl1_3_glNormal3f(gl.funcs, C.GLfloat(nx), C.GLfloat(ny), C.GLfloat(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3dv.xml
+func (gl *GL) Normal3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glNormal3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3d.xml
+func (gl *GL) Normal3d(nx, ny, nz float64) {
+ C.gl1_3_glNormal3d(gl.funcs, C.GLdouble(nx), C.GLdouble(ny), C.GLdouble(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3bv.xml
+func (gl *GL) Normal3bv(v []byte) {
+ C.gl1_3_glNormal3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3b.xml
+func (gl *GL) Normal3b(nx, ny, nz byte) {
+ C.gl1_3_glNormal3b(gl.funcs, C.GLbyte(nx), C.GLbyte(ny), C.GLbyte(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexsv.xml
+func (gl *GL) Indexsv(c []int16) {
+ C.gl1_3_glIndexsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexs.xml
+func (gl *GL) Indexs(c int16) {
+ C.gl1_3_glIndexs(gl.funcs, C.GLshort(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexiv.xml
+func (gl *GL) Indexiv(c []int32) {
+ C.gl1_3_glIndexiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexi.xml
+func (gl *GL) Indexi(c int32) {
+ C.gl1_3_glIndexi(gl.funcs, C.GLint(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexfv.xml
+func (gl *GL) Indexfv(c []float32) {
+ C.gl1_3_glIndexfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexf.xml
+func (gl *GL) Indexf(c float32) {
+ C.gl1_3_glIndexf(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexdv.xml
+func (gl *GL) Indexdv(c []float64) {
+ C.gl1_3_glIndexdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexd.xml
+func (gl *GL) Indexd(c float64) {
+ C.gl1_3_glIndexd(gl.funcs, C.GLdouble(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnd.xml
+func (gl *GL) End() {
+ C.gl1_3_glEnd(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagv.xml
+func (gl *GL) EdgeFlagv(flag []bool) {
+ C.gl1_3_glEdgeFlagv(gl.funcs, (*C.GLboolean)(unsafe.Pointer(&flag[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlag.xml
+func (gl *GL) EdgeFlag(flag bool) {
+ C.gl1_3_glEdgeFlag(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4usv.xml
+func (gl *GL) Color4usv(v []uint16) {
+ C.gl1_3_glColor4usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4us.xml
+func (gl *GL) Color4us(red, green, blue, alpha uint16) {
+ C.gl1_3_glColor4us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue), C.GLushort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4uiv.xml
+func (gl *GL) Color4uiv(v []uint32) {
+ C.gl1_3_glColor4uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ui.xml
+func (gl *GL) Color4ui(red, green, blue, alpha uint32) {
+ C.gl1_3_glColor4ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue), C.GLuint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ubv.xml
+func (gl *GL) Color4ubv(v []uint8) {
+ C.gl1_3_glColor4ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ub.xml
+func (gl *GL) Color4ub(red, green, blue, alpha uint8) {
+ C.gl1_3_glColor4ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue), C.GLubyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4sv.xml
+func (gl *GL) Color4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glColor4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4s.xml
+func (gl *GL) Color4s(red, green, blue, alpha int16) {
+ C.gl1_3_glColor4s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue), C.GLshort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4iv.xml
+func (gl *GL) Color4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glColor4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4i.xml
+func (gl *GL) Color4i(red, green, blue, alpha int32) {
+ C.gl1_3_glColor4i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue), C.GLint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4fv.xml
+func (gl *GL) Color4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glColor4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4f.xml
+func (gl *GL) Color4f(red, green, blue, alpha float32) {
+ C.gl1_3_glColor4f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4dv.xml
+func (gl *GL) Color4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glColor4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4d.xml
+func (gl *GL) Color4d(red, green, blue, alpha float64) {
+ C.gl1_3_glColor4d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue), C.GLdouble(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4bv.xml
+func (gl *GL) Color4bv(v []byte) {
+ C.gl1_3_glColor4bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4b.xml
+func (gl *GL) Color4b(red, green, blue, alpha byte) {
+ C.gl1_3_glColor4b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue), C.GLbyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3usv.xml
+func (gl *GL) Color3usv(v []uint16) {
+ C.gl1_3_glColor3usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3us.xml
+func (gl *GL) Color3us(red, green, blue uint16) {
+ C.gl1_3_glColor3us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3uiv.xml
+func (gl *GL) Color3uiv(v []uint32) {
+ C.gl1_3_glColor3uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ui.xml
+func (gl *GL) Color3ui(red, green, blue uint32) {
+ C.gl1_3_glColor3ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ubv.xml
+func (gl *GL) Color3ubv(v []uint8) {
+ C.gl1_3_glColor3ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ub.xml
+func (gl *GL) Color3ub(red, green, blue uint8) {
+ C.gl1_3_glColor3ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3sv.xml
+func (gl *GL) Color3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glColor3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3s.xml
+func (gl *GL) Color3s(red, green, blue int16) {
+ C.gl1_3_glColor3s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3iv.xml
+func (gl *GL) Color3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glColor3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3i.xml
+func (gl *GL) Color3i(red, green, blue int32) {
+ C.gl1_3_glColor3i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3fv.xml
+func (gl *GL) Color3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glColor3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3f.xml
+func (gl *GL) Color3f(red, green, blue float32) {
+ C.gl1_3_glColor3f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3dv.xml
+func (gl *GL) Color3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glColor3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3d.xml
+func (gl *GL) Color3d(red, green, blue float64) {
+ C.gl1_3_glColor3d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3bv.xml
+func (gl *GL) Color3bv(v []byte) {
+ C.gl1_3_glColor3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3b.xml
+func (gl *GL) Color3b(red, green, blue byte) {
+ C.gl1_3_glColor3b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBitmap.xml
+func (gl *GL) Bitmap(width, height int, xorig, yorig, xmove, ymove float32, bitmap []uint8) {
+ C.gl1_3_glBitmap(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLfloat(xorig), C.GLfloat(yorig), C.GLfloat(xmove), C.GLfloat(ymove), (*C.GLubyte)(unsafe.Pointer(&bitmap[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBegin.xml
+func (gl *GL) Begin(mode glbase.Enum) {
+ C.gl1_3_glBegin(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glListBase.xml
+func (gl *GL) ListBase(base uint32) {
+ C.gl1_3_glListBase(gl.funcs, C.GLuint(base))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGenLists.xml
+func (gl *GL) GenLists(range_ int32) uint32 {
+ glresult := C.gl1_3_glGenLists(gl.funcs, C.GLsizei(range_))
+ return uint32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDeleteLists.xml
+func (gl *GL) DeleteLists(list uint32, range_ int32) {
+ C.gl1_3_glDeleteLists(gl.funcs, C.GLuint(list), C.GLsizei(range_))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallLists.xml
+func (gl *GL) CallLists(n int, gltype glbase.Enum, lists interface{}) {
+ var lists_ptr unsafe.Pointer
+ var lists_v = reflect.ValueOf(lists)
+ if lists != nil && lists_v.Kind() != reflect.Slice {
+ panic("parameter lists must be a slice")
+ }
+ if lists != nil {
+ lists_ptr = unsafe.Pointer(lists_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glCallLists(gl.funcs, C.GLsizei(n), C.GLenum(gltype), lists_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallList.xml
+func (gl *GL) CallList(list uint32) {
+ C.gl1_3_glCallList(gl.funcs, C.GLuint(list))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEndList.xml
+func (gl *GL) EndList() {
+ C.gl1_3_glEndList(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNewList.xml
+func (gl *GL) NewList(list uint32, mode glbase.Enum) {
+ C.gl1_3_glNewList(gl.funcs, C.GLuint(list), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushClientAttrib.xml
+func (gl *GL) PushClientAttrib(mask glbase.Bitfield) {
+ C.gl1_3_glPushClientAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopClientAttrib.xml
+func (gl *GL) PopClientAttrib() {
+ C.gl1_3_glPopClientAttrib(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPrioritizeTextures.xml
+func (gl *GL) PrioritizeTextures(n int, textures []glbase.Texture, priorities []float32) {
+ C.gl1_3_glPrioritizeTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLfloat)(unsafe.Pointer(&priorities[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAreTexturesResident.xml
+func (gl *GL) AreTexturesResident(n int, textures []glbase.Texture, residences []bool) bool {
+ glresult := C.gl1_3_glAreTexturesResident(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLboolean)(unsafe.Pointer(&residences[0])))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexPointer.xml
+func (gl *GL) VertexPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glVertexPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoordPointer.xml
+func (gl *GL) TexCoordPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glTexCoordPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormalPointer.xml
+func (gl *GL) NormalPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glNormalPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInterleavedArrays.xml
+func (gl *GL) InterleavedArrays(format glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glInterleavedArrays(gl.funcs, C.GLenum(format), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexPointer.xml
+func (gl *GL) IndexPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glIndexPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnableClientState.xml
+func (gl *GL) EnableClientState(array glbase.Enum) {
+ C.gl1_3_glEnableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagPointer.xml
+func (gl *GL) EdgeFlagPointer(stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glEdgeFlagPointer(gl.funcs, C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisableClientState.xml
+func (gl *GL) DisableClientState(array glbase.Enum) {
+ C.gl1_3_glDisableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorPointer.xml
+func (gl *GL) ColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glColorPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glArrayElement.xml
+func (gl *GL) ArrayElement(i int32) {
+ C.gl1_3_glArrayElement(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glResetMinmax.xml
+func (gl *GL) ResetMinmax(target glbase.Enum) {
+ C.gl1_3_glResetMinmax(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glResetHistogram.xml
+func (gl *GL) ResetHistogram(target glbase.Enum) {
+ C.gl1_3_glResetHistogram(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMinmax.xml
+func (gl *GL) Minmax(target, internalFormat glbase.Enum, sink bool) {
+ C.gl1_3_glMinmax(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), *(*C.GLboolean)(unsafe.Pointer(&sink)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glHistogram.xml
+func (gl *GL) Histogram(target glbase.Enum, width int, internalFormat glbase.Enum, sink bool) {
+ C.gl1_3_glHistogram(gl.funcs, C.GLenum(target), C.GLsizei(width), C.GLenum(internalFormat), *(*C.GLboolean)(unsafe.Pointer(&sink)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmaxParameteriv.xml
+func (gl *GL) GetMinmaxParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_3_glGetMinmaxParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmaxParameterfv.xml
+func (gl *GL) GetMinmaxParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_3_glGetMinmaxParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmax.xml
+func (gl *GL) GetMinmax(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{}) {
+ var values_ptr unsafe.Pointer
+ var values_v = reflect.ValueOf(values)
+ if values != nil && values_v.Kind() != reflect.Slice {
+ panic("parameter values must be a slice")
+ }
+ if values != nil {
+ values_ptr = unsafe.Pointer(values_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glGetMinmax(gl.funcs, C.GLenum(target), *(*C.GLboolean)(unsafe.Pointer(&reset)), C.GLenum(format), C.GLenum(gltype), values_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogramParameteriv.xml
+func (gl *GL) GetHistogramParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_3_glGetHistogramParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogramParameterfv.xml
+func (gl *GL) GetHistogramParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_3_glGetHistogramParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogram.xml
+func (gl *GL) GetHistogram(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{}) {
+ var values_ptr unsafe.Pointer
+ var values_v = reflect.ValueOf(values)
+ if values != nil && values_v.Kind() != reflect.Slice {
+ panic("parameter values must be a slice")
+ }
+ if values != nil {
+ values_ptr = unsafe.Pointer(values_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glGetHistogram(gl.funcs, C.GLenum(target), *(*C.GLboolean)(unsafe.Pointer(&reset)), C.GLenum(format), C.GLenum(gltype), values_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSeparableFilter2D.xml
+func (gl *GL) SeparableFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, row, column interface{}) {
+ var row_ptr unsafe.Pointer
+ var row_v = reflect.ValueOf(row)
+ if row != nil && row_v.Kind() != reflect.Slice {
+ panic("parameter row must be a slice")
+ }
+ if row != nil {
+ row_ptr = unsafe.Pointer(row_v.Index(0).Addr().Pointer())
+ }
+ var column_ptr unsafe.Pointer
+ var column_v = reflect.ValueOf(column)
+ if column != nil && column_v.Kind() != reflect.Slice {
+ panic("parameter column must be a slice")
+ }
+ if column != nil {
+ column_ptr = unsafe.Pointer(column_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glSeparableFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), row_ptr, column_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetSeparableFilter.xml
+func (gl *GL) GetSeparableFilter(target, format, gltype glbase.Enum, row, column, span interface{}) {
+ var row_ptr unsafe.Pointer
+ var row_v = reflect.ValueOf(row)
+ if row != nil && row_v.Kind() != reflect.Slice {
+ panic("parameter row must be a slice")
+ }
+ if row != nil {
+ row_ptr = unsafe.Pointer(row_v.Index(0).Addr().Pointer())
+ }
+ var column_ptr unsafe.Pointer
+ var column_v = reflect.ValueOf(column)
+ if column != nil && column_v.Kind() != reflect.Slice {
+ panic("parameter column must be a slice")
+ }
+ if column != nil {
+ column_ptr = unsafe.Pointer(column_v.Index(0).Addr().Pointer())
+ }
+ var span_ptr unsafe.Pointer
+ var span_v = reflect.ValueOf(span)
+ if span != nil && span_v.Kind() != reflect.Slice {
+ panic("parameter span must be a slice")
+ }
+ if span != nil {
+ span_ptr = unsafe.Pointer(span_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glGetSeparableFilter(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), row_ptr, column_ptr, span_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionParameteriv.xml
+func (gl *GL) GetConvolutionParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_3_glGetConvolutionParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionParameterfv.xml
+func (gl *GL) GetConvolutionParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_3_glGetConvolutionParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionFilter.xml
+func (gl *GL) GetConvolutionFilter(target, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glGetConvolutionFilter(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyConvolutionFilter2D.xml
+func (gl *GL) CopyConvolutionFilter2D(target, internalFormat glbase.Enum, x, y, width, height int) {
+ C.gl1_3_glCopyConvolutionFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyConvolutionFilter1D.xml
+func (gl *GL) CopyConvolutionFilter1D(target, internalFormat glbase.Enum, x, y, width int) {
+ C.gl1_3_glCopyConvolutionFilter1D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameteriv.xml
+func (gl *GL) ConvolutionParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_3_glConvolutionParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameteri.xml
+func (gl *GL) ConvolutionParameteri(target, pname glbase.Enum, params int32) {
+ C.gl1_3_glConvolutionParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(params))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameterfv.xml
+func (gl *GL) ConvolutionParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_3_glConvolutionParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameterf.xml
+func (gl *GL) ConvolutionParameterf(target, pname glbase.Enum, params float32) {
+ C.gl1_3_glConvolutionParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(params))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionFilter2D.xml
+func (gl *GL) ConvolutionFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glConvolutionFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionFilter1D.xml
+func (gl *GL) ConvolutionFilter1D(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glConvolutionFilter1D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyColorSubTable.xml
+func (gl *GL) CopyColorSubTable(target glbase.Enum, start int32, x, y, width int) {
+ C.gl1_3_glCopyColorSubTable(gl.funcs, C.GLenum(target), C.GLsizei(start), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorSubTable.xml
+func (gl *GL) ColorSubTable(target glbase.Enum, start int32, count int, format, gltype glbase.Enum, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glColorSubTable(gl.funcs, C.GLenum(target), C.GLsizei(start), C.GLsizei(count), C.GLenum(format), C.GLenum(gltype), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTableParameteriv.xml
+func (gl *GL) GetColorTableParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_3_glGetColorTableParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTableParameterfv.xml
+func (gl *GL) GetColorTableParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_3_glGetColorTableParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTable.xml
+func (gl *GL) GetColorTable(target, format, gltype glbase.Enum, table interface{}) {
+ var table_ptr unsafe.Pointer
+ var table_v = reflect.ValueOf(table)
+ if table != nil && table_v.Kind() != reflect.Slice {
+ panic("parameter table must be a slice")
+ }
+ if table != nil {
+ table_ptr = unsafe.Pointer(table_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glGetColorTable(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), table_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyColorTable.xml
+func (gl *GL) CopyColorTable(target, internalFormat glbase.Enum, x, y, width int) {
+ C.gl1_3_glCopyColorTable(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTableParameteriv.xml
+func (gl *GL) ColorTableParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_3_glColorTableParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTableParameterfv.xml
+func (gl *GL) ColorTableParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_3_glColorTableParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTable.xml
+func (gl *GL) ColorTable(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, table interface{}) {
+ var table_ptr unsafe.Pointer
+ var table_v = reflect.ValueOf(table)
+ if table != nil && table_v.Kind() != reflect.Slice {
+ panic("parameter table must be a slice")
+ }
+ if table != nil {
+ table_ptr = unsafe.Pointer(table_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_3_glColorTable(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), table_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultTransposeMatrixd.xml
+func (gl *GL) MultTransposeMatrixd(m []float64) {
+ C.gl1_3_glMultTransposeMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultTransposeMatrixf.xml
+func (gl *GL) MultTransposeMatrixf(m []float32) {
+ C.gl1_3_glMultTransposeMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadTransposeMatrixd.xml
+func (gl *GL) LoadTransposeMatrixd(m []float64) {
+ C.gl1_3_glLoadTransposeMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadTransposeMatrixf.xml
+func (gl *GL) LoadTransposeMatrixf(m []float32) {
+ C.gl1_3_glLoadTransposeMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4sv.xml
+func (gl *GL) MultiTexCoord4sv(target glbase.Enum, v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glMultiTexCoord4sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4s.xml
+func (gl *GL) MultiTexCoord4s(target glbase.Enum, s, t, r, q int16) {
+ C.gl1_3_glMultiTexCoord4s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4iv.xml
+func (gl *GL) MultiTexCoord4iv(target glbase.Enum, v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glMultiTexCoord4iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4i.xml
+func (gl *GL) MultiTexCoord4i(target glbase.Enum, s, t, r, q int32) {
+ C.gl1_3_glMultiTexCoord4i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4fv.xml
+func (gl *GL) MultiTexCoord4fv(target glbase.Enum, v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glMultiTexCoord4fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4f.xml
+func (gl *GL) MultiTexCoord4f(target glbase.Enum, s, t, r, q float32) {
+ C.gl1_3_glMultiTexCoord4f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4dv.xml
+func (gl *GL) MultiTexCoord4dv(target glbase.Enum, v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glMultiTexCoord4dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4d.xml
+func (gl *GL) MultiTexCoord4d(target glbase.Enum, s, t, r, q float64) {
+ C.gl1_3_glMultiTexCoord4d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3sv.xml
+func (gl *GL) MultiTexCoord3sv(target glbase.Enum, v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glMultiTexCoord3sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3s.xml
+func (gl *GL) MultiTexCoord3s(target glbase.Enum, s, t, r int16) {
+ C.gl1_3_glMultiTexCoord3s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3iv.xml
+func (gl *GL) MultiTexCoord3iv(target glbase.Enum, v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glMultiTexCoord3iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3i.xml
+func (gl *GL) MultiTexCoord3i(target glbase.Enum, s, t, r int32) {
+ C.gl1_3_glMultiTexCoord3i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3fv.xml
+func (gl *GL) MultiTexCoord3fv(target glbase.Enum, v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glMultiTexCoord3fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3f.xml
+func (gl *GL) MultiTexCoord3f(target glbase.Enum, s, t, r float32) {
+ C.gl1_3_glMultiTexCoord3f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3dv.xml
+func (gl *GL) MultiTexCoord3dv(target glbase.Enum, v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glMultiTexCoord3dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3d.xml
+func (gl *GL) MultiTexCoord3d(target glbase.Enum, s, t, r float64) {
+ C.gl1_3_glMultiTexCoord3d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2sv.xml
+func (gl *GL) MultiTexCoord2sv(target glbase.Enum, v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glMultiTexCoord2sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2s.xml
+func (gl *GL) MultiTexCoord2s(target glbase.Enum, s, t int16) {
+ C.gl1_3_glMultiTexCoord2s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2iv.xml
+func (gl *GL) MultiTexCoord2iv(target glbase.Enum, v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glMultiTexCoord2iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2i.xml
+func (gl *GL) MultiTexCoord2i(target glbase.Enum, s, t int32) {
+ C.gl1_3_glMultiTexCoord2i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2fv.xml
+func (gl *GL) MultiTexCoord2fv(target glbase.Enum, v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glMultiTexCoord2fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2f.xml
+func (gl *GL) MultiTexCoord2f(target glbase.Enum, s, t float32) {
+ C.gl1_3_glMultiTexCoord2f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2dv.xml
+func (gl *GL) MultiTexCoord2dv(target glbase.Enum, v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_3_glMultiTexCoord2dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2d.xml
+func (gl *GL) MultiTexCoord2d(target glbase.Enum, s, t float64) {
+ C.gl1_3_glMultiTexCoord2d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1sv.xml
+func (gl *GL) MultiTexCoord1sv(target glbase.Enum, v []int16) {
+ C.gl1_3_glMultiTexCoord1sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1s.xml
+func (gl *GL) MultiTexCoord1s(target glbase.Enum, s int16) {
+ C.gl1_3_glMultiTexCoord1s(gl.funcs, C.GLenum(target), C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1iv.xml
+func (gl *GL) MultiTexCoord1iv(target glbase.Enum, v []int32) {
+ C.gl1_3_glMultiTexCoord1iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1i.xml
+func (gl *GL) MultiTexCoord1i(target glbase.Enum, s int32) {
+ C.gl1_3_glMultiTexCoord1i(gl.funcs, C.GLenum(target), C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1fv.xml
+func (gl *GL) MultiTexCoord1fv(target glbase.Enum, v []float32) {
+ C.gl1_3_glMultiTexCoord1fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1f.xml
+func (gl *GL) MultiTexCoord1f(target glbase.Enum, s float32) {
+ C.gl1_3_glMultiTexCoord1f(gl.funcs, C.GLenum(target), C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1dv.xml
+func (gl *GL) MultiTexCoord1dv(target glbase.Enum, v []float64) {
+ C.gl1_3_glMultiTexCoord1dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1d.xml
+func (gl *GL) MultiTexCoord1d(target glbase.Enum, s float64) {
+ C.gl1_3_glMultiTexCoord1d(gl.funcs, C.GLenum(target), C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClientActiveTexture.xml
+func (gl *GL) ClientActiveTexture(texture glbase.Enum) {
+ C.gl1_3_glClientActiveTexture(gl.funcs, C.GLenum(texture))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.4/funcs.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.4/funcs.cpp
new file mode 100644
index 000000000..0aed105f5
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.4/funcs.cpp
@@ -0,0 +1,2790 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#include <QOpenGLContext>
+#include <QtGui/qopenglfunctions_1_4.h>
+
+#include "funcs.h"
+
+void *gl1_4_funcs() {
+ QOpenGLFunctions_1_4* funcs = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_1_4>();
+ if (!funcs) {
+ return 0;
+ }
+ funcs->initializeOpenGLFunctions();
+ return funcs;
+}
+
+
+void gl1_4_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glViewport(x, y, width, height);
+}
+
+void gl1_4_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glDepthRange(nearVal, farVal);
+}
+
+GLboolean gl1_4_glIsEnabled(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ return _qglfuncs->glIsEnabled(cap);
+}
+
+void gl1_4_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameteriv(target, level, pname, params);
+}
+
+void gl1_4_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameterfv(target, level, pname, params);
+}
+
+void gl1_4_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetTexParameteriv(target, pname, params);
+}
+
+void gl1_4_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetTexParameterfv(target, pname, params);
+}
+
+void gl1_4_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetTexImage(target, level, format, gltype, pixels);
+}
+
+void gl1_4_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetIntegerv(pname, params);
+}
+
+void gl1_4_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetFloatv(pname, params);
+}
+
+GLenum gl1_4_glGetError(void *_glfuncs)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ return _qglfuncs->glGetError();
+}
+
+void gl1_4_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetDoublev(pname, params);
+}
+
+void gl1_4_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetBooleanv(pname, params);
+}
+
+void gl1_4_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glReadPixels(x, y, width, height, format, gltype, pixels);
+}
+
+void gl1_4_glReadBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glReadBuffer(mode);
+}
+
+void gl1_4_glPixelStorei(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPixelStorei(pname, param);
+}
+
+void gl1_4_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPixelStoref(pname, param);
+}
+
+void gl1_4_glDepthFunc(void *_glfuncs, GLenum glfunc)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glDepthFunc(glfunc);
+}
+
+void gl1_4_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glStencilOp(fail, zfail, zpass);
+}
+
+void gl1_4_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glStencilFunc(glfunc, ref, mask);
+}
+
+void gl1_4_glLogicOp(void *_glfuncs, GLenum opcode)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLogicOp(opcode);
+}
+
+void gl1_4_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glBlendFunc(sfactor, dfactor);
+}
+
+void gl1_4_glFlush(void *_glfuncs)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glFlush();
+}
+
+void gl1_4_glFinish(void *_glfuncs)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glFinish();
+}
+
+void gl1_4_glEnable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEnable(cap);
+}
+
+void gl1_4_glDisable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glDisable(cap);
+}
+
+void gl1_4_glDepthMask(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glDepthMask(flag);
+}
+
+void gl1_4_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColorMask(red, green, blue, alpha);
+}
+
+void gl1_4_glStencilMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glStencilMask(mask);
+}
+
+void gl1_4_glClearDepth(void *_glfuncs, GLdouble depth)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glClearDepth(depth);
+}
+
+void gl1_4_glClearStencil(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glClearStencil(s);
+}
+
+void gl1_4_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glClearColor(red, green, blue, alpha);
+}
+
+void gl1_4_glClear(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glClear(mask);
+}
+
+void gl1_4_glDrawBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glDrawBuffer(mode);
+}
+
+void gl1_4_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexImage2D(target, level, internalFormat, width, height, border, format, gltype, pixels);
+}
+
+void gl1_4_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexImage1D(target, level, internalFormat, width, border, format, gltype, pixels);
+}
+
+void gl1_4_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexParameteriv(target, pname, params);
+}
+
+void gl1_4_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexParameteri(target, pname, param);
+}
+
+void gl1_4_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexParameterfv(target, pname, params);
+}
+
+void gl1_4_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexParameterf(target, pname, param);
+}
+
+void gl1_4_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glScissor(x, y, width, height);
+}
+
+void gl1_4_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPolygonMode(face, mode);
+}
+
+void gl1_4_glPointSize(void *_glfuncs, GLfloat size)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPointSize(size);
+}
+
+void gl1_4_glLineWidth(void *_glfuncs, GLfloat width)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLineWidth(width);
+}
+
+void gl1_4_glHint(void *_glfuncs, GLenum target, GLenum mode)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glHint(target, mode);
+}
+
+void gl1_4_glFrontFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glFrontFace(mode);
+}
+
+void gl1_4_glCullFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCullFace(mode);
+}
+
+void gl1_4_glIndexubv(void *_glfuncs, const GLubyte* c)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glIndexubv(c);
+}
+
+void gl1_4_glIndexub(void *_glfuncs, GLubyte c)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glIndexub(c);
+}
+
+GLboolean gl1_4_glIsTexture(void *_glfuncs, GLuint texture)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ return _qglfuncs->glIsTexture(texture);
+}
+
+void gl1_4_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGenTextures(n, textures);
+}
+
+void gl1_4_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glDeleteTextures(n, textures);
+}
+
+void gl1_4_glBindTexture(void *_glfuncs, GLenum target, GLuint texture)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glBindTexture(target, texture);
+}
+
+void gl1_4_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, gltype, pixels);
+}
+
+void gl1_4_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexSubImage1D(target, level, xoffset, width, format, gltype, pixels);
+}
+
+void gl1_4_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
+}
+
+void gl1_4_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage1D(target, level, xoffset, x, y, width);
+}
+
+void gl1_4_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
+}
+
+void gl1_4_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCopyTexImage1D(target, level, internalFormat, x, y, width, border);
+}
+
+void gl1_4_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPolygonOffset(factor, units);
+}
+
+void gl1_4_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glDrawElements(mode, count, gltype, indices);
+}
+
+void gl1_4_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glDrawArrays(mode, first, count);
+}
+
+void gl1_4_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
+}
+
+void gl1_4_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, gltype, pixels);
+}
+
+void gl1_4_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexImage3D(target, level, internalFormat, width, height, depth, border, format, gltype, pixels);
+}
+
+void gl1_4_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glDrawRangeElements(mode, start, end, count, gltype, indices);
+}
+
+void gl1_4_glBlendEquation(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glBlendEquation(mode);
+}
+
+void gl1_4_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glBlendColor(red, green, blue, alpha);
+}
+
+void gl1_4_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetCompressedTexImage(target, level, img);
+}
+
+void gl1_4_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data);
+}
+
+void gl1_4_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
+}
+
+void gl1_4_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
+}
+
+void gl1_4_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage1D(target, level, internalFormat, width, border, imageSize, data);
+}
+
+void gl1_4_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data);
+}
+
+void gl1_4_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage3D(target, level, internalFormat, width, height, depth, border, imageSize, data);
+}
+
+void gl1_4_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSampleCoverage(value, invert);
+}
+
+void gl1_4_glActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glActiveTexture(texture);
+}
+
+void gl1_4_glPointParameteriv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPointParameteriv(pname, params);
+}
+
+void gl1_4_glPointParameteri(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPointParameteri(pname, param);
+}
+
+void gl1_4_glPointParameterfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPointParameterfv(pname, params);
+}
+
+void gl1_4_glPointParameterf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPointParameterf(pname, param);
+}
+
+void gl1_4_glMultiDrawArrays(void *_glfuncs, GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiDrawArrays(mode, first, count, drawcount);
+}
+
+void gl1_4_glBlendFuncSeparate(void *_glfuncs, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
+}
+
+void gl1_4_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTranslatef(x, y, z);
+}
+
+void gl1_4_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTranslated(x, y, z);
+}
+
+void gl1_4_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glScalef(x, y, z);
+}
+
+void gl1_4_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glScaled(x, y, z);
+}
+
+void gl1_4_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRotatef(angle, x, y, z);
+}
+
+void gl1_4_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRotated(angle, x, y, z);
+}
+
+void gl1_4_glPushMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPushMatrix();
+}
+
+void gl1_4_glPopMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPopMatrix();
+}
+
+void gl1_4_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glOrtho(left, right, bottom, top, zNear, zFar);
+}
+
+void gl1_4_glMultMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultMatrixd(m);
+}
+
+void gl1_4_glMultMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultMatrixf(m);
+}
+
+void gl1_4_glMatrixMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMatrixMode(mode);
+}
+
+void gl1_4_glLoadMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLoadMatrixd(m);
+}
+
+void gl1_4_glLoadMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLoadMatrixf(m);
+}
+
+void gl1_4_glLoadIdentity(void *_glfuncs)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLoadIdentity();
+}
+
+void gl1_4_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glFrustum(left, right, bottom, top, zNear, zFar);
+}
+
+GLboolean gl1_4_glIsList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ return _qglfuncs->glIsList(list);
+}
+
+void gl1_4_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetTexGeniv(coord, pname, params);
+}
+
+void gl1_4_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetTexGenfv(coord, pname, params);
+}
+
+void gl1_4_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetTexGendv(coord, pname, params);
+}
+
+void gl1_4_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetTexEnviv(target, pname, params);
+}
+
+void gl1_4_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetTexEnvfv(target, pname, params);
+}
+
+void gl1_4_glGetPolygonStipple(void *_glfuncs, GLubyte* mask)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetPolygonStipple(mask);
+}
+
+void gl1_4_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetPixelMapusv(glmap, values);
+}
+
+void gl1_4_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetPixelMapuiv(glmap, values);
+}
+
+void gl1_4_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetPixelMapfv(glmap, values);
+}
+
+void gl1_4_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetMaterialiv(face, pname, params);
+}
+
+void gl1_4_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetMaterialfv(face, pname, params);
+}
+
+void gl1_4_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetMapiv(target, query, v);
+}
+
+void gl1_4_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetMapfv(target, query, v);
+}
+
+void gl1_4_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetMapdv(target, query, v);
+}
+
+void gl1_4_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetLightiv(light, pname, params);
+}
+
+void gl1_4_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetLightfv(light, pname, params);
+}
+
+void gl1_4_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetClipPlane(plane, equation);
+}
+
+void gl1_4_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glDrawPixels(width, height, format, gltype, pixels);
+}
+
+void gl1_4_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCopyPixels(x, y, width, height, gltype);
+}
+
+void gl1_4_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPixelMapusv(glmap, mapsize, values);
+}
+
+void gl1_4_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPixelMapuiv(glmap, mapsize, values);
+}
+
+void gl1_4_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPixelMapfv(glmap, mapsize, values);
+}
+
+void gl1_4_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPixelTransferi(pname, param);
+}
+
+void gl1_4_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPixelTransferf(pname, param);
+}
+
+void gl1_4_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPixelZoom(xfactor, yfactor);
+}
+
+void gl1_4_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glAlphaFunc(glfunc, ref);
+}
+
+void gl1_4_glEvalPoint2(void *_glfuncs, GLint i, GLint j)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEvalPoint2(i, j);
+}
+
+void gl1_4_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEvalMesh2(mode, i1, i2, j1, j2);
+}
+
+void gl1_4_glEvalPoint1(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEvalPoint1(i);
+}
+
+void gl1_4_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEvalMesh1(mode, i1, i2);
+}
+
+void gl1_4_glEvalCoord2fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEvalCoord2fv(u);
+}
+
+void gl1_4_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEvalCoord2f(u, v);
+}
+
+void gl1_4_glEvalCoord2dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEvalCoord2dv(u);
+}
+
+void gl1_4_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEvalCoord2d(u, v);
+}
+
+void gl1_4_glEvalCoord1fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEvalCoord1fv(u);
+}
+
+void gl1_4_glEvalCoord1f(void *_glfuncs, GLfloat u)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEvalCoord1f(u);
+}
+
+void gl1_4_glEvalCoord1dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEvalCoord1dv(u);
+}
+
+void gl1_4_glEvalCoord1d(void *_glfuncs, GLdouble u)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEvalCoord1d(u);
+}
+
+void gl1_4_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMapGrid2f(un, u1, u2, vn, v1, v2);
+}
+
+void gl1_4_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMapGrid2d(un, u1, u2, vn, v1, v2);
+}
+
+void gl1_4_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMapGrid1f(un, u1, u2);
+}
+
+void gl1_4_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMapGrid1d(un, u1, u2);
+}
+
+void gl1_4_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl1_4_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl1_4_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMap1f(target, u1, u2, stride, order, points);
+}
+
+void gl1_4_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMap1d(target, u1, u2, stride, order, points);
+}
+
+void gl1_4_glPushAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPushAttrib(mask);
+}
+
+void gl1_4_glPopAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPopAttrib();
+}
+
+void gl1_4_glAccum(void *_glfuncs, GLenum op, GLfloat value)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glAccum(op, value);
+}
+
+void gl1_4_glIndexMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glIndexMask(mask);
+}
+
+void gl1_4_glClearIndex(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glClearIndex(c);
+}
+
+void gl1_4_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glClearAccum(red, green, blue, alpha);
+}
+
+void gl1_4_glPushName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPushName(name);
+}
+
+void gl1_4_glPopName(void *_glfuncs)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPopName();
+}
+
+void gl1_4_glPassThrough(void *_glfuncs, GLfloat token)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPassThrough(token);
+}
+
+void gl1_4_glLoadName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLoadName(name);
+}
+
+void gl1_4_glInitNames(void *_glfuncs)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glInitNames();
+}
+
+GLint gl1_4_glRenderMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ return _qglfuncs->glRenderMode(mode);
+}
+
+void gl1_4_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSelectBuffer(size, buffer);
+}
+
+void gl1_4_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glFeedbackBuffer(size, gltype, buffer);
+}
+
+void gl1_4_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexGeniv(coord, pname, params);
+}
+
+void gl1_4_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexGeni(coord, pname, param);
+}
+
+void gl1_4_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexGenfv(coord, pname, params);
+}
+
+void gl1_4_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexGenf(coord, pname, param);
+}
+
+void gl1_4_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexGendv(coord, pname, params);
+}
+
+void gl1_4_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexGend(coord, pname, param);
+}
+
+void gl1_4_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexEnviv(target, pname, params);
+}
+
+void gl1_4_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexEnvi(target, pname, param);
+}
+
+void gl1_4_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexEnvfv(target, pname, params);
+}
+
+void gl1_4_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexEnvf(target, pname, param);
+}
+
+void gl1_4_glShadeModel(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glShadeModel(mode);
+}
+
+void gl1_4_glPolygonStipple(void *_glfuncs, const GLubyte* mask)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPolygonStipple(mask);
+}
+
+void gl1_4_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMaterialiv(face, pname, params);
+}
+
+void gl1_4_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMateriali(face, pname, param);
+}
+
+void gl1_4_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMaterialfv(face, pname, params);
+}
+
+void gl1_4_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMaterialf(face, pname, param);
+}
+
+void gl1_4_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLineStipple(factor, pattern);
+}
+
+void gl1_4_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLightModeliv(pname, params);
+}
+
+void gl1_4_glLightModeli(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLightModeli(pname, param);
+}
+
+void gl1_4_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLightModelfv(pname, params);
+}
+
+void gl1_4_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLightModelf(pname, param);
+}
+
+void gl1_4_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLightiv(light, pname, params);
+}
+
+void gl1_4_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLighti(light, pname, param);
+}
+
+void gl1_4_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLightfv(light, pname, params);
+}
+
+void gl1_4_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLightf(light, pname, param);
+}
+
+void gl1_4_glFogiv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glFogiv(pname, params);
+}
+
+void gl1_4_glFogi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glFogi(pname, param);
+}
+
+void gl1_4_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glFogfv(pname, params);
+}
+
+void gl1_4_glFogf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glFogf(pname, param);
+}
+
+void gl1_4_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColorMaterial(face, mode);
+}
+
+void gl1_4_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glClipPlane(plane, equation);
+}
+
+void gl1_4_glVertex4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex4sv(v);
+}
+
+void gl1_4_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex4s(x, y, z, w);
+}
+
+void gl1_4_glVertex4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex4iv(v);
+}
+
+void gl1_4_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex4i(x, y, z, w);
+}
+
+void gl1_4_glVertex4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex4fv(v);
+}
+
+void gl1_4_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex4f(x, y, z, w);
+}
+
+void gl1_4_glVertex4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex4dv(v);
+}
+
+void gl1_4_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex4d(x, y, z, w);
+}
+
+void gl1_4_glVertex3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex3sv(v);
+}
+
+void gl1_4_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex3s(x, y, z);
+}
+
+void gl1_4_glVertex3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex3iv(v);
+}
+
+void gl1_4_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex3i(x, y, z);
+}
+
+void gl1_4_glVertex3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex3fv(v);
+}
+
+void gl1_4_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex3f(x, y, z);
+}
+
+void gl1_4_glVertex3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex3dv(v);
+}
+
+void gl1_4_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex3d(x, y, z);
+}
+
+void gl1_4_glVertex2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex2sv(v);
+}
+
+void gl1_4_glVertex2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex2s(x, y);
+}
+
+void gl1_4_glVertex2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex2iv(v);
+}
+
+void gl1_4_glVertex2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex2i(x, y);
+}
+
+void gl1_4_glVertex2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex2fv(v);
+}
+
+void gl1_4_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex2f(x, y);
+}
+
+void gl1_4_glVertex2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex2dv(v);
+}
+
+void gl1_4_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertex2d(x, y);
+}
+
+void gl1_4_glTexCoord4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord4sv(v);
+}
+
+void gl1_4_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord4s(s, t, r, q);
+}
+
+void gl1_4_glTexCoord4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord4iv(v);
+}
+
+void gl1_4_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord4i(s, t, r, q);
+}
+
+void gl1_4_glTexCoord4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord4fv(v);
+}
+
+void gl1_4_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord4f(s, t, r, q);
+}
+
+void gl1_4_glTexCoord4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord4dv(v);
+}
+
+void gl1_4_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord4d(s, t, r, q);
+}
+
+void gl1_4_glTexCoord3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord3sv(v);
+}
+
+void gl1_4_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord3s(s, t, r);
+}
+
+void gl1_4_glTexCoord3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord3iv(v);
+}
+
+void gl1_4_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord3i(s, t, r);
+}
+
+void gl1_4_glTexCoord3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord3fv(v);
+}
+
+void gl1_4_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord3f(s, t, r);
+}
+
+void gl1_4_glTexCoord3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord3dv(v);
+}
+
+void gl1_4_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord3d(s, t, r);
+}
+
+void gl1_4_glTexCoord2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord2sv(v);
+}
+
+void gl1_4_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord2s(s, t);
+}
+
+void gl1_4_glTexCoord2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord2iv(v);
+}
+
+void gl1_4_glTexCoord2i(void *_glfuncs, GLint s, GLint t)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord2i(s, t);
+}
+
+void gl1_4_glTexCoord2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord2fv(v);
+}
+
+void gl1_4_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord2f(s, t);
+}
+
+void gl1_4_glTexCoord2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord2dv(v);
+}
+
+void gl1_4_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord2d(s, t);
+}
+
+void gl1_4_glTexCoord1sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord1sv(v);
+}
+
+void gl1_4_glTexCoord1s(void *_glfuncs, GLshort s)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord1s(s);
+}
+
+void gl1_4_glTexCoord1iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord1iv(v);
+}
+
+void gl1_4_glTexCoord1i(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord1i(s);
+}
+
+void gl1_4_glTexCoord1fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord1fv(v);
+}
+
+void gl1_4_glTexCoord1f(void *_glfuncs, GLfloat s)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord1f(s);
+}
+
+void gl1_4_glTexCoord1dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord1dv(v);
+}
+
+void gl1_4_glTexCoord1d(void *_glfuncs, GLdouble s)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoord1d(s);
+}
+
+void gl1_4_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRectsv(v1, v2);
+}
+
+void gl1_4_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRects(x1, y1, x2, y2);
+}
+
+void gl1_4_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRectiv(v1, v2);
+}
+
+void gl1_4_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRecti(x1, y1, x2, y2);
+}
+
+void gl1_4_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRectfv(v1, v2);
+}
+
+void gl1_4_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRectf(x1, y1, x2, y2);
+}
+
+void gl1_4_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRectdv(v1, v2);
+}
+
+void gl1_4_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRectd(x1, y1, x2, y2);
+}
+
+void gl1_4_glRasterPos4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos4sv(v);
+}
+
+void gl1_4_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos4s(x, y, z, w);
+}
+
+void gl1_4_glRasterPos4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos4iv(v);
+}
+
+void gl1_4_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos4i(x, y, z, w);
+}
+
+void gl1_4_glRasterPos4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos4fv(v);
+}
+
+void gl1_4_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos4f(x, y, z, w);
+}
+
+void gl1_4_glRasterPos4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos4dv(v);
+}
+
+void gl1_4_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos4d(x, y, z, w);
+}
+
+void gl1_4_glRasterPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos3sv(v);
+}
+
+void gl1_4_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos3s(x, y, z);
+}
+
+void gl1_4_glRasterPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos3iv(v);
+}
+
+void gl1_4_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos3i(x, y, z);
+}
+
+void gl1_4_glRasterPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos3fv(v);
+}
+
+void gl1_4_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos3f(x, y, z);
+}
+
+void gl1_4_glRasterPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos3dv(v);
+}
+
+void gl1_4_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos3d(x, y, z);
+}
+
+void gl1_4_glRasterPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos2sv(v);
+}
+
+void gl1_4_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos2s(x, y);
+}
+
+void gl1_4_glRasterPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos2iv(v);
+}
+
+void gl1_4_glRasterPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos2i(x, y);
+}
+
+void gl1_4_glRasterPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos2fv(v);
+}
+
+void gl1_4_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos2f(x, y);
+}
+
+void gl1_4_glRasterPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos2dv(v);
+}
+
+void gl1_4_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glRasterPos2d(x, y);
+}
+
+void gl1_4_glNormal3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glNormal3sv(v);
+}
+
+void gl1_4_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glNormal3s(nx, ny, nz);
+}
+
+void gl1_4_glNormal3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glNormal3iv(v);
+}
+
+void gl1_4_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glNormal3i(nx, ny, nz);
+}
+
+void gl1_4_glNormal3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glNormal3fv(v);
+}
+
+void gl1_4_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glNormal3f(nx, ny, nz);
+}
+
+void gl1_4_glNormal3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glNormal3dv(v);
+}
+
+void gl1_4_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glNormal3d(nx, ny, nz);
+}
+
+void gl1_4_glNormal3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glNormal3bv(v);
+}
+
+void gl1_4_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glNormal3b(nx, ny, nz);
+}
+
+void gl1_4_glIndexsv(void *_glfuncs, const GLshort* c)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glIndexsv(c);
+}
+
+void gl1_4_glIndexs(void *_glfuncs, GLshort c)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glIndexs(c);
+}
+
+void gl1_4_glIndexiv(void *_glfuncs, const GLint* c)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glIndexiv(c);
+}
+
+void gl1_4_glIndexi(void *_glfuncs, GLint c)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glIndexi(c);
+}
+
+void gl1_4_glIndexfv(void *_glfuncs, const GLfloat* c)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glIndexfv(c);
+}
+
+void gl1_4_glIndexf(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glIndexf(c);
+}
+
+void gl1_4_glIndexdv(void *_glfuncs, const GLdouble* c)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glIndexdv(c);
+}
+
+void gl1_4_glIndexd(void *_glfuncs, GLdouble c)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glIndexd(c);
+}
+
+void gl1_4_glEnd(void *_glfuncs)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEnd();
+}
+
+void gl1_4_glEdgeFlagv(void *_glfuncs, const GLboolean* flag)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEdgeFlagv(flag);
+}
+
+void gl1_4_glEdgeFlag(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEdgeFlag(flag);
+}
+
+void gl1_4_glColor4usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4usv(v);
+}
+
+void gl1_4_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4us(red, green, blue, alpha);
+}
+
+void gl1_4_glColor4uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4uiv(v);
+}
+
+void gl1_4_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4ui(red, green, blue, alpha);
+}
+
+void gl1_4_glColor4ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4ubv(v);
+}
+
+void gl1_4_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4ub(red, green, blue, alpha);
+}
+
+void gl1_4_glColor4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4sv(v);
+}
+
+void gl1_4_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4s(red, green, blue, alpha);
+}
+
+void gl1_4_glColor4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4iv(v);
+}
+
+void gl1_4_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4i(red, green, blue, alpha);
+}
+
+void gl1_4_glColor4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4fv(v);
+}
+
+void gl1_4_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4f(red, green, blue, alpha);
+}
+
+void gl1_4_glColor4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4dv(v);
+}
+
+void gl1_4_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4d(red, green, blue, alpha);
+}
+
+void gl1_4_glColor4bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4bv(v);
+}
+
+void gl1_4_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor4b(red, green, blue, alpha);
+}
+
+void gl1_4_glColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3usv(v);
+}
+
+void gl1_4_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3us(red, green, blue);
+}
+
+void gl1_4_glColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3uiv(v);
+}
+
+void gl1_4_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3ui(red, green, blue);
+}
+
+void gl1_4_glColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3ubv(v);
+}
+
+void gl1_4_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3ub(red, green, blue);
+}
+
+void gl1_4_glColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3sv(v);
+}
+
+void gl1_4_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3s(red, green, blue);
+}
+
+void gl1_4_glColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3iv(v);
+}
+
+void gl1_4_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3i(red, green, blue);
+}
+
+void gl1_4_glColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3fv(v);
+}
+
+void gl1_4_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3f(red, green, blue);
+}
+
+void gl1_4_glColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3dv(v);
+}
+
+void gl1_4_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3d(red, green, blue);
+}
+
+void gl1_4_glColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3bv(v);
+}
+
+void gl1_4_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColor3b(red, green, blue);
+}
+
+void gl1_4_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
+}
+
+void gl1_4_glBegin(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glBegin(mode);
+}
+
+void gl1_4_glListBase(void *_glfuncs, GLuint base)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glListBase(base);
+}
+
+GLuint gl1_4_glGenLists(void *_glfuncs, GLsizei range_)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ return _qglfuncs->glGenLists(range_);
+}
+
+void gl1_4_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glDeleteLists(list, range_);
+}
+
+void gl1_4_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCallLists(n, gltype, lists);
+}
+
+void gl1_4_glCallList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCallList(list);
+}
+
+void gl1_4_glEndList(void *_glfuncs)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEndList();
+}
+
+void gl1_4_glNewList(void *_glfuncs, GLuint list, GLenum mode)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glNewList(list, mode);
+}
+
+void gl1_4_glPushClientAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPushClientAttrib(mask);
+}
+
+void gl1_4_glPopClientAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPopClientAttrib();
+}
+
+void gl1_4_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glPrioritizeTextures(n, textures, priorities);
+}
+
+GLboolean gl1_4_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ return _qglfuncs->glAreTexturesResident(n, textures, residences);
+}
+
+void gl1_4_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glVertexPointer(size, gltype, stride, pointer);
+}
+
+void gl1_4_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glTexCoordPointer(size, gltype, stride, pointer);
+}
+
+void gl1_4_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glNormalPointer(gltype, stride, pointer);
+}
+
+void gl1_4_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glInterleavedArrays(format, stride, pointer);
+}
+
+void gl1_4_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glIndexPointer(gltype, stride, pointer);
+}
+
+void gl1_4_glEnableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEnableClientState(array);
+}
+
+void gl1_4_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glEdgeFlagPointer(stride, pointer);
+}
+
+void gl1_4_glDisableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glDisableClientState(array);
+}
+
+void gl1_4_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColorPointer(size, gltype, stride, pointer);
+}
+
+void gl1_4_glArrayElement(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glArrayElement(i);
+}
+
+void gl1_4_glResetMinmax(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glResetMinmax(target);
+}
+
+void gl1_4_glResetHistogram(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glResetHistogram(target);
+}
+
+void gl1_4_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMinmax(target, internalFormat, sink);
+}
+
+void gl1_4_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glHistogram(target, width, internalFormat, sink);
+}
+
+void gl1_4_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameteriv(target, pname, params);
+}
+
+void gl1_4_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameterfv(target, pname, params);
+}
+
+void gl1_4_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetMinmax(target, reset, format, gltype, values);
+}
+
+void gl1_4_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameteriv(target, pname, params);
+}
+
+void gl1_4_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameterfv(target, pname, params);
+}
+
+void gl1_4_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetHistogram(target, reset, format, gltype, values);
+}
+
+void gl1_4_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSeparableFilter2D(target, internalFormat, width, height, format, gltype, row, column);
+}
+
+void gl1_4_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetSeparableFilter(target, format, gltype, row, column, span);
+}
+
+void gl1_4_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameteriv(target, pname, params);
+}
+
+void gl1_4_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameterfv(target, pname, params);
+}
+
+void gl1_4_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetConvolutionFilter(target, format, gltype, image);
+}
+
+void gl1_4_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter2D(target, internalFormat, x, y, width, height);
+}
+
+void gl1_4_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter1D(target, internalFormat, x, y, width);
+}
+
+void gl1_4_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteriv(target, pname, params);
+}
+
+void gl1_4_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteri(target, pname, params);
+}
+
+void gl1_4_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterfv(target, pname, params);
+}
+
+void gl1_4_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterf(target, pname, params);
+}
+
+void gl1_4_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter2D(target, internalFormat, width, height, format, gltype, image);
+}
+
+void gl1_4_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter1D(target, internalFormat, width, format, gltype, image);
+}
+
+void gl1_4_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCopyColorSubTable(target, start, x, y, width);
+}
+
+void gl1_4_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColorSubTable(target, start, count, format, gltype, data);
+}
+
+void gl1_4_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameteriv(target, pname, params);
+}
+
+void gl1_4_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameterfv(target, pname, params);
+}
+
+void gl1_4_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glGetColorTable(target, format, gltype, table);
+}
+
+void gl1_4_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glCopyColorTable(target, internalFormat, x, y, width);
+}
+
+void gl1_4_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColorTableParameteriv(target, pname, params);
+}
+
+void gl1_4_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColorTableParameterfv(target, pname, params);
+}
+
+void gl1_4_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glColorTable(target, internalFormat, width, format, gltype, table);
+}
+
+void gl1_4_glMultTransposeMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultTransposeMatrixd(m);
+}
+
+void gl1_4_glMultTransposeMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultTransposeMatrixf(m);
+}
+
+void gl1_4_glLoadTransposeMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLoadTransposeMatrixd(m);
+}
+
+void gl1_4_glLoadTransposeMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glLoadTransposeMatrixf(m);
+}
+
+void gl1_4_glMultiTexCoord4sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4sv(target, v);
+}
+
+void gl1_4_glMultiTexCoord4s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4s(target, s, t, r, q);
+}
+
+void gl1_4_glMultiTexCoord4iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4iv(target, v);
+}
+
+void gl1_4_glMultiTexCoord4i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4i(target, s, t, r, q);
+}
+
+void gl1_4_glMultiTexCoord4fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4fv(target, v);
+}
+
+void gl1_4_glMultiTexCoord4f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4f(target, s, t, r, q);
+}
+
+void gl1_4_glMultiTexCoord4dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4dv(target, v);
+}
+
+void gl1_4_glMultiTexCoord4d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4d(target, s, t, r, q);
+}
+
+void gl1_4_glMultiTexCoord3sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3sv(target, v);
+}
+
+void gl1_4_glMultiTexCoord3s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3s(target, s, t, r);
+}
+
+void gl1_4_glMultiTexCoord3iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3iv(target, v);
+}
+
+void gl1_4_glMultiTexCoord3i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3i(target, s, t, r);
+}
+
+void gl1_4_glMultiTexCoord3fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3fv(target, v);
+}
+
+void gl1_4_glMultiTexCoord3f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3f(target, s, t, r);
+}
+
+void gl1_4_glMultiTexCoord3dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3dv(target, v);
+}
+
+void gl1_4_glMultiTexCoord3d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3d(target, s, t, r);
+}
+
+void gl1_4_glMultiTexCoord2sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2sv(target, v);
+}
+
+void gl1_4_glMultiTexCoord2s(void *_glfuncs, GLenum target, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2s(target, s, t);
+}
+
+void gl1_4_glMultiTexCoord2iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2iv(target, v);
+}
+
+void gl1_4_glMultiTexCoord2i(void *_glfuncs, GLenum target, GLint s, GLint t)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2i(target, s, t);
+}
+
+void gl1_4_glMultiTexCoord2fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2fv(target, v);
+}
+
+void gl1_4_glMultiTexCoord2f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2f(target, s, t);
+}
+
+void gl1_4_glMultiTexCoord2dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2dv(target, v);
+}
+
+void gl1_4_glMultiTexCoord2d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2d(target, s, t);
+}
+
+void gl1_4_glMultiTexCoord1sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1sv(target, v);
+}
+
+void gl1_4_glMultiTexCoord1s(void *_glfuncs, GLenum target, GLshort s)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1s(target, s);
+}
+
+void gl1_4_glMultiTexCoord1iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1iv(target, v);
+}
+
+void gl1_4_glMultiTexCoord1i(void *_glfuncs, GLenum target, GLint s)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1i(target, s);
+}
+
+void gl1_4_glMultiTexCoord1fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1fv(target, v);
+}
+
+void gl1_4_glMultiTexCoord1f(void *_glfuncs, GLenum target, GLfloat s)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1f(target, s);
+}
+
+void gl1_4_glMultiTexCoord1dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1dv(target, v);
+}
+
+void gl1_4_glMultiTexCoord1d(void *_glfuncs, GLenum target, GLdouble s)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1d(target, s);
+}
+
+void gl1_4_glClientActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glClientActiveTexture(texture);
+}
+
+void gl1_4_glWindowPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos3sv(v);
+}
+
+void gl1_4_glWindowPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos3s(x, y, z);
+}
+
+void gl1_4_glWindowPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos3iv(v);
+}
+
+void gl1_4_glWindowPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos3i(x, y, z);
+}
+
+void gl1_4_glWindowPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos3fv(v);
+}
+
+void gl1_4_glWindowPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos3f(x, y, z);
+}
+
+void gl1_4_glWindowPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos3dv(v);
+}
+
+void gl1_4_glWindowPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos3d(x, y, z);
+}
+
+void gl1_4_glWindowPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos2sv(v);
+}
+
+void gl1_4_glWindowPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos2s(x, y);
+}
+
+void gl1_4_glWindowPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos2iv(v);
+}
+
+void gl1_4_glWindowPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos2i(x, y);
+}
+
+void gl1_4_glWindowPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos2fv(v);
+}
+
+void gl1_4_glWindowPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos2f(x, y);
+}
+
+void gl1_4_glWindowPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos2dv(v);
+}
+
+void gl1_4_glWindowPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glWindowPos2d(x, y);
+}
+
+void gl1_4_glSecondaryColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColorPointer(size, gltype, stride, pointer);
+}
+
+void gl1_4_glSecondaryColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3usv(v);
+}
+
+void gl1_4_glSecondaryColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3us(red, green, blue);
+}
+
+void gl1_4_glSecondaryColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3uiv(v);
+}
+
+void gl1_4_glSecondaryColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ui(red, green, blue);
+}
+
+void gl1_4_glSecondaryColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ubv(v);
+}
+
+void gl1_4_glSecondaryColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ub(red, green, blue);
+}
+
+void gl1_4_glSecondaryColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3sv(v);
+}
+
+void gl1_4_glSecondaryColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3s(red, green, blue);
+}
+
+void gl1_4_glSecondaryColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3iv(v);
+}
+
+void gl1_4_glSecondaryColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3i(red, green, blue);
+}
+
+void gl1_4_glSecondaryColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3fv(v);
+}
+
+void gl1_4_glSecondaryColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3f(red, green, blue);
+}
+
+void gl1_4_glSecondaryColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3dv(v);
+}
+
+void gl1_4_glSecondaryColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3d(red, green, blue);
+}
+
+void gl1_4_glSecondaryColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3bv(v);
+}
+
+void gl1_4_glSecondaryColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3b(red, green, blue);
+}
+
+void gl1_4_glFogCoordPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glFogCoordPointer(gltype, stride, pointer);
+}
+
+void gl1_4_glFogCoorddv(void *_glfuncs, const GLdouble* coord)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glFogCoorddv(coord);
+}
+
+void gl1_4_glFogCoordd(void *_glfuncs, GLdouble coord)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glFogCoordd(coord);
+}
+
+void gl1_4_glFogCoordfv(void *_glfuncs, const GLfloat* coord)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glFogCoordfv(coord);
+}
+
+void gl1_4_glFogCoordf(void *_glfuncs, GLfloat coord)
+{
+ QOpenGLFunctions_1_4* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_4*>(_glfuncs);
+ _qglfuncs->glFogCoordf(coord);
+}
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.4/funcs.h b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.4/funcs.h
new file mode 100644
index 000000000..ea657e080
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.4/funcs.h
@@ -0,0 +1,504 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#ifndef __cplusplus
+#include <inttypes.h>
+#include <stddef.h>
+typedef unsigned int GLenum;
+typedef unsigned char GLboolean;
+typedef unsigned int GLbitfield;
+typedef void GLvoid;
+typedef char GLchar;
+typedef signed char GLbyte; /* 1-byte signed */
+typedef short GLshort; /* 2-byte signed */
+typedef int GLint; /* 4-byte signed */
+typedef unsigned char GLubyte; /* 1-byte unsigned */
+typedef unsigned short GLushort; /* 2-byte unsigned */
+typedef unsigned int GLuint; /* 4-byte unsigned */
+typedef int GLsizei; /* 4-byte signed */
+typedef float GLfloat; /* single precision float */
+typedef float GLclampf; /* single precision float in [0,1] */
+typedef double GLdouble; /* double precision float */
+typedef double GLclampd; /* double precision float in [0,1] */
+typedef int64_t GLint64;
+typedef uint64_t GLuint64;
+typedef ptrdiff_t GLintptr;
+typedef ptrdiff_t GLsizeiptr;
+typedef ptrdiff_t GLintptrARB;
+typedef ptrdiff_t GLsizeiptrARB;
+typedef struct __GLsync *GLsync;
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *gl1_4_funcs();
+
+void gl1_4_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_4_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal);
+GLboolean gl1_4_glIsEnabled(void *_glfuncs, GLenum cap);
+void gl1_4_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params);
+void gl1_4_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params);
+void gl1_4_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_4_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_4_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl1_4_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params);
+void gl1_4_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params);
+GLenum gl1_4_glGetError(void *_glfuncs);
+void gl1_4_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params);
+void gl1_4_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params);
+void gl1_4_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl1_4_glReadBuffer(void *_glfuncs, GLenum mode);
+void gl1_4_glPixelStorei(void *_glfuncs, GLenum pname, GLint param);
+void gl1_4_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_4_glDepthFunc(void *_glfuncs, GLenum glfunc);
+void gl1_4_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass);
+void gl1_4_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask);
+void gl1_4_glLogicOp(void *_glfuncs, GLenum opcode);
+void gl1_4_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor);
+void gl1_4_glFlush(void *_glfuncs);
+void gl1_4_glFinish(void *_glfuncs);
+void gl1_4_glEnable(void *_glfuncs, GLenum cap);
+void gl1_4_glDisable(void *_glfuncs, GLenum cap);
+void gl1_4_glDepthMask(void *_glfuncs, GLboolean flag);
+void gl1_4_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+void gl1_4_glStencilMask(void *_glfuncs, GLuint mask);
+void gl1_4_glClearDepth(void *_glfuncs, GLdouble depth);
+void gl1_4_glClearStencil(void *_glfuncs, GLint s);
+void gl1_4_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_4_glClear(void *_glfuncs, GLbitfield mask);
+void gl1_4_glDrawBuffer(void *_glfuncs, GLenum mode);
+void gl1_4_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_4_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_4_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_4_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl1_4_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_4_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl1_4_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_4_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode);
+void gl1_4_glPointSize(void *_glfuncs, GLfloat size);
+void gl1_4_glLineWidth(void *_glfuncs, GLfloat width);
+void gl1_4_glHint(void *_glfuncs, GLenum target, GLenum mode);
+void gl1_4_glFrontFace(void *_glfuncs, GLenum mode);
+void gl1_4_glCullFace(void *_glfuncs, GLenum mode);
+void gl1_4_glIndexubv(void *_glfuncs, const GLubyte* c);
+void gl1_4_glIndexub(void *_glfuncs, GLubyte c);
+GLboolean gl1_4_glIsTexture(void *_glfuncs, GLuint texture);
+void gl1_4_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures);
+void gl1_4_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures);
+void gl1_4_glBindTexture(void *_glfuncs, GLenum target, GLuint texture);
+void gl1_4_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_4_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_4_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_4_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+void gl1_4_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+void gl1_4_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
+void gl1_4_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units);
+void gl1_4_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl1_4_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count);
+void gl1_4_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_4_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_4_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_4_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl1_4_glBlendEquation(void *_glfuncs, GLenum mode);
+void gl1_4_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_4_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img);
+void gl1_4_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl1_4_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl1_4_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl1_4_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl1_4_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl1_4_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl1_4_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert);
+void gl1_4_glActiveTexture(void *_glfuncs, GLenum texture);
+void gl1_4_glPointParameteriv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl1_4_glPointParameteri(void *_glfuncs, GLenum pname, GLint param);
+void gl1_4_glPointParameterfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl1_4_glPointParameterf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_4_glMultiDrawArrays(void *_glfuncs, GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount);
+void gl1_4_glBlendFuncSeparate(void *_glfuncs, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+void gl1_4_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_4_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_4_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_4_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_4_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+void gl1_4_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+void gl1_4_glPushMatrix(void *_glfuncs);
+void gl1_4_glPopMatrix(void *_glfuncs);
+void gl1_4_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+void gl1_4_glMultMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_4_glMultMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_4_glMatrixMode(void *_glfuncs, GLenum mode);
+void gl1_4_glLoadMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_4_glLoadMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_4_glLoadIdentity(void *_glfuncs);
+void gl1_4_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLboolean gl1_4_glIsList(void *_glfuncs, GLuint list);
+void gl1_4_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params);
+void gl1_4_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params);
+void gl1_4_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params);
+void gl1_4_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_4_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_4_glGetPolygonStipple(void *_glfuncs, GLubyte* mask);
+void gl1_4_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values);
+void gl1_4_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values);
+void gl1_4_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values);
+void gl1_4_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params);
+void gl1_4_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params);
+void gl1_4_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v);
+void gl1_4_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v);
+void gl1_4_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v);
+void gl1_4_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params);
+void gl1_4_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params);
+void gl1_4_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation);
+void gl1_4_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_4_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype);
+void gl1_4_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values);
+void gl1_4_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values);
+void gl1_4_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values);
+void gl1_4_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param);
+void gl1_4_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_4_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor);
+void gl1_4_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref);
+void gl1_4_glEvalPoint2(void *_glfuncs, GLint i, GLint j);
+void gl1_4_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
+void gl1_4_glEvalPoint1(void *_glfuncs, GLint i);
+void gl1_4_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2);
+void gl1_4_glEvalCoord2fv(void *_glfuncs, const GLfloat* u);
+void gl1_4_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v);
+void gl1_4_glEvalCoord2dv(void *_glfuncs, const GLdouble* u);
+void gl1_4_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v);
+void gl1_4_glEvalCoord1fv(void *_glfuncs, const GLfloat* u);
+void gl1_4_glEvalCoord1f(void *_glfuncs, GLfloat u);
+void gl1_4_glEvalCoord1dv(void *_glfuncs, const GLdouble* u);
+void gl1_4_glEvalCoord1d(void *_glfuncs, GLdouble u);
+void gl1_4_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
+void gl1_4_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
+void gl1_4_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2);
+void gl1_4_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2);
+void gl1_4_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points);
+void gl1_4_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points);
+void gl1_4_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points);
+void gl1_4_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points);
+void gl1_4_glPushAttrib(void *_glfuncs, GLbitfield mask);
+void gl1_4_glPopAttrib(void *_glfuncs);
+void gl1_4_glAccum(void *_glfuncs, GLenum op, GLfloat value);
+void gl1_4_glIndexMask(void *_glfuncs, GLuint mask);
+void gl1_4_glClearIndex(void *_glfuncs, GLfloat c);
+void gl1_4_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_4_glPushName(void *_glfuncs, GLuint name);
+void gl1_4_glPopName(void *_glfuncs);
+void gl1_4_glPassThrough(void *_glfuncs, GLfloat token);
+void gl1_4_glLoadName(void *_glfuncs, GLuint name);
+void gl1_4_glInitNames(void *_glfuncs);
+GLint gl1_4_glRenderMode(void *_glfuncs, GLenum mode);
+void gl1_4_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer);
+void gl1_4_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer);
+void gl1_4_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params);
+void gl1_4_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param);
+void gl1_4_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params);
+void gl1_4_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param);
+void gl1_4_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params);
+void gl1_4_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param);
+void gl1_4_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_4_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl1_4_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_4_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl1_4_glShadeModel(void *_glfuncs, GLenum mode);
+void gl1_4_glPolygonStipple(void *_glfuncs, const GLubyte* mask);
+void gl1_4_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params);
+void gl1_4_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param);
+void gl1_4_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params);
+void gl1_4_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param);
+void gl1_4_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern);
+void gl1_4_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl1_4_glLightModeli(void *_glfuncs, GLenum pname, GLint param);
+void gl1_4_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl1_4_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_4_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params);
+void gl1_4_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param);
+void gl1_4_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params);
+void gl1_4_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param);
+void gl1_4_glFogiv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl1_4_glFogi(void *_glfuncs, GLenum pname, GLint param);
+void gl1_4_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl1_4_glFogf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_4_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode);
+void gl1_4_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation);
+void gl1_4_glVertex4sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl1_4_glVertex4iv(void *_glfuncs, const GLint* v);
+void gl1_4_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl1_4_glVertex4fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl1_4_glVertex4dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl1_4_glVertex3sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl1_4_glVertex3iv(void *_glfuncs, const GLint* v);
+void gl1_4_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl1_4_glVertex3fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_4_glVertex3dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_4_glVertex2sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glVertex2s(void *_glfuncs, GLshort x, GLshort y);
+void gl1_4_glVertex2iv(void *_glfuncs, const GLint* v);
+void gl1_4_glVertex2i(void *_glfuncs, GLint x, GLint y);
+void gl1_4_glVertex2fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl1_4_glVertex2dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl1_4_glTexCoord4sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl1_4_glTexCoord4iv(void *_glfuncs, const GLint* v);
+void gl1_4_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q);
+void gl1_4_glTexCoord4fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl1_4_glTexCoord4dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl1_4_glTexCoord3sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r);
+void gl1_4_glTexCoord3iv(void *_glfuncs, const GLint* v);
+void gl1_4_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r);
+void gl1_4_glTexCoord3fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r);
+void gl1_4_glTexCoord3dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r);
+void gl1_4_glTexCoord2sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t);
+void gl1_4_glTexCoord2iv(void *_glfuncs, const GLint* v);
+void gl1_4_glTexCoord2i(void *_glfuncs, GLint s, GLint t);
+void gl1_4_glTexCoord2fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t);
+void gl1_4_glTexCoord2dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t);
+void gl1_4_glTexCoord1sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glTexCoord1s(void *_glfuncs, GLshort s);
+void gl1_4_glTexCoord1iv(void *_glfuncs, const GLint* v);
+void gl1_4_glTexCoord1i(void *_glfuncs, GLint s);
+void gl1_4_glTexCoord1fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glTexCoord1f(void *_glfuncs, GLfloat s);
+void gl1_4_glTexCoord1dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glTexCoord1d(void *_glfuncs, GLdouble s);
+void gl1_4_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2);
+void gl1_4_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2);
+void gl1_4_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2);
+void gl1_4_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2);
+void gl1_4_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2);
+void gl1_4_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
+void gl1_4_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2);
+void gl1_4_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
+void gl1_4_glRasterPos4sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl1_4_glRasterPos4iv(void *_glfuncs, const GLint* v);
+void gl1_4_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl1_4_glRasterPos4fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl1_4_glRasterPos4dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl1_4_glRasterPos3sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl1_4_glRasterPos3iv(void *_glfuncs, const GLint* v);
+void gl1_4_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl1_4_glRasterPos3fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_4_glRasterPos3dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_4_glRasterPos2sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl1_4_glRasterPos2iv(void *_glfuncs, const GLint* v);
+void gl1_4_glRasterPos2i(void *_glfuncs, GLint x, GLint y);
+void gl1_4_glRasterPos2fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl1_4_glRasterPos2dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl1_4_glNormal3sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz);
+void gl1_4_glNormal3iv(void *_glfuncs, const GLint* v);
+void gl1_4_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz);
+void gl1_4_glNormal3fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz);
+void gl1_4_glNormal3dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz);
+void gl1_4_glNormal3bv(void *_glfuncs, const GLbyte* v);
+void gl1_4_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz);
+void gl1_4_glIndexsv(void *_glfuncs, const GLshort* c);
+void gl1_4_glIndexs(void *_glfuncs, GLshort c);
+void gl1_4_glIndexiv(void *_glfuncs, const GLint* c);
+void gl1_4_glIndexi(void *_glfuncs, GLint c);
+void gl1_4_glIndexfv(void *_glfuncs, const GLfloat* c);
+void gl1_4_glIndexf(void *_glfuncs, GLfloat c);
+void gl1_4_glIndexdv(void *_glfuncs, const GLdouble* c);
+void gl1_4_glIndexd(void *_glfuncs, GLdouble c);
+void gl1_4_glEnd(void *_glfuncs);
+void gl1_4_glEdgeFlagv(void *_glfuncs, const GLboolean* flag);
+void gl1_4_glEdgeFlag(void *_glfuncs, GLboolean flag);
+void gl1_4_glColor4usv(void *_glfuncs, const GLushort* v);
+void gl1_4_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha);
+void gl1_4_glColor4uiv(void *_glfuncs, const GLuint* v);
+void gl1_4_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha);
+void gl1_4_glColor4ubv(void *_glfuncs, const GLubyte* v);
+void gl1_4_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
+void gl1_4_glColor4sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha);
+void gl1_4_glColor4iv(void *_glfuncs, const GLint* v);
+void gl1_4_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha);
+void gl1_4_glColor4fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_4_glColor4dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
+void gl1_4_glColor4bv(void *_glfuncs, const GLbyte* v);
+void gl1_4_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
+void gl1_4_glColor3usv(void *_glfuncs, const GLushort* v);
+void gl1_4_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl1_4_glColor3uiv(void *_glfuncs, const GLuint* v);
+void gl1_4_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl1_4_glColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl1_4_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl1_4_glColor3sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl1_4_glColor3iv(void *_glfuncs, const GLint* v);
+void gl1_4_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl1_4_glColor3fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl1_4_glColor3dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl1_4_glColor3bv(void *_glfuncs, const GLbyte* v);
+void gl1_4_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl1_4_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap);
+void gl1_4_glBegin(void *_glfuncs, GLenum mode);
+void gl1_4_glListBase(void *_glfuncs, GLuint base);
+GLuint gl1_4_glGenLists(void *_glfuncs, GLsizei range_);
+void gl1_4_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_);
+void gl1_4_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists);
+void gl1_4_glCallList(void *_glfuncs, GLuint list);
+void gl1_4_glEndList(void *_glfuncs);
+void gl1_4_glNewList(void *_glfuncs, GLuint list, GLenum mode);
+void gl1_4_glPushClientAttrib(void *_glfuncs, GLbitfield mask);
+void gl1_4_glPopClientAttrib(void *_glfuncs);
+void gl1_4_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities);
+GLboolean gl1_4_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences);
+void gl1_4_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_4_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_4_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_4_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer);
+void gl1_4_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_4_glEnableClientState(void *_glfuncs, GLenum array);
+void gl1_4_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer);
+void gl1_4_glDisableClientState(void *_glfuncs, GLenum array);
+void gl1_4_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_4_glArrayElement(void *_glfuncs, GLint i);
+void gl1_4_glResetMinmax(void *_glfuncs, GLenum target);
+void gl1_4_glResetHistogram(void *_glfuncs, GLenum target);
+void gl1_4_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink);
+void gl1_4_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink);
+void gl1_4_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_4_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_4_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl1_4_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_4_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_4_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl1_4_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column);
+void gl1_4_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span);
+void gl1_4_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_4_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_4_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image);
+void gl1_4_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_4_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl1_4_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_4_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params);
+void gl1_4_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_4_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params);
+void gl1_4_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image);
+void gl1_4_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image);
+void gl1_4_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+void gl1_4_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data);
+void gl1_4_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_4_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_4_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table);
+void gl1_4_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl1_4_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_4_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_4_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table);
+void gl1_4_glMultTransposeMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_4_glMultTransposeMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_4_glLoadTransposeMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_4_glLoadTransposeMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_4_glMultiTexCoord4sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl1_4_glMultiTexCoord4s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl1_4_glMultiTexCoord4iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl1_4_glMultiTexCoord4i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r, GLint q);
+void gl1_4_glMultiTexCoord4fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl1_4_glMultiTexCoord4f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl1_4_glMultiTexCoord4dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl1_4_glMultiTexCoord4d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl1_4_glMultiTexCoord3sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl1_4_glMultiTexCoord3s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r);
+void gl1_4_glMultiTexCoord3iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl1_4_glMultiTexCoord3i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r);
+void gl1_4_glMultiTexCoord3fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl1_4_glMultiTexCoord3f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r);
+void gl1_4_glMultiTexCoord3dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl1_4_glMultiTexCoord3d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r);
+void gl1_4_glMultiTexCoord2sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl1_4_glMultiTexCoord2s(void *_glfuncs, GLenum target, GLshort s, GLshort t);
+void gl1_4_glMultiTexCoord2iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl1_4_glMultiTexCoord2i(void *_glfuncs, GLenum target, GLint s, GLint t);
+void gl1_4_glMultiTexCoord2fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl1_4_glMultiTexCoord2f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t);
+void gl1_4_glMultiTexCoord2dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl1_4_glMultiTexCoord2d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t);
+void gl1_4_glMultiTexCoord1sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl1_4_glMultiTexCoord1s(void *_glfuncs, GLenum target, GLshort s);
+void gl1_4_glMultiTexCoord1iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl1_4_glMultiTexCoord1i(void *_glfuncs, GLenum target, GLint s);
+void gl1_4_glMultiTexCoord1fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl1_4_glMultiTexCoord1f(void *_glfuncs, GLenum target, GLfloat s);
+void gl1_4_glMultiTexCoord1dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl1_4_glMultiTexCoord1d(void *_glfuncs, GLenum target, GLdouble s);
+void gl1_4_glClientActiveTexture(void *_glfuncs, GLenum texture);
+void gl1_4_glWindowPos3sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glWindowPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl1_4_glWindowPos3iv(void *_glfuncs, const GLint* v);
+void gl1_4_glWindowPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl1_4_glWindowPos3fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glWindowPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_4_glWindowPos3dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glWindowPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_4_glWindowPos2sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glWindowPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl1_4_glWindowPos2iv(void *_glfuncs, const GLint* v);
+void gl1_4_glWindowPos2i(void *_glfuncs, GLint x, GLint y);
+void gl1_4_glWindowPos2fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glWindowPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl1_4_glWindowPos2dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glWindowPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl1_4_glSecondaryColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_4_glSecondaryColor3usv(void *_glfuncs, const GLushort* v);
+void gl1_4_glSecondaryColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl1_4_glSecondaryColor3uiv(void *_glfuncs, const GLuint* v);
+void gl1_4_glSecondaryColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl1_4_glSecondaryColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl1_4_glSecondaryColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl1_4_glSecondaryColor3sv(void *_glfuncs, const GLshort* v);
+void gl1_4_glSecondaryColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl1_4_glSecondaryColor3iv(void *_glfuncs, const GLint* v);
+void gl1_4_glSecondaryColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl1_4_glSecondaryColor3fv(void *_glfuncs, const GLfloat* v);
+void gl1_4_glSecondaryColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl1_4_glSecondaryColor3dv(void *_glfuncs, const GLdouble* v);
+void gl1_4_glSecondaryColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl1_4_glSecondaryColor3bv(void *_glfuncs, const GLbyte* v);
+void gl1_4_glSecondaryColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl1_4_glFogCoordPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_4_glFogCoorddv(void *_glfuncs, const GLdouble* coord);
+void gl1_4_glFogCoordd(void *_glfuncs, GLdouble coord);
+void gl1_4_glFogCoordfv(void *_glfuncs, const GLfloat* coord);
+void gl1_4_glFogCoordf(void *_glfuncs, GLfloat coord);
+
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.4/gl.go b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.4/gl.go
new file mode 100644
index 000000000..6ddbc2441
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.4/gl.go
@@ -0,0 +1,3892 @@
+// ** file automatically generated by glgen -- do not edit manually **
+
+package GL
+
+// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
+// #cgo LDFLAGS: -lstdc++
+// #cgo pkg-config: Qt5Core Qt5OpenGL
+//
+// #include "funcs.h"
+//
+// void free(void*);
+//
+import "C"
+
+import (
+ "fmt"
+ "reflect"
+ "unsafe"
+
+ "gopkg.in/qml.v1/gl/glbase"
+)
+
+// API returns a value that offers methods matching the OpenGL version 1.4 API.
+//
+// The returned API must not be used after the provided OpenGL context becomes invalid.
+func API(context glbase.Contexter) *GL {
+ gl := &GL{}
+ gl.funcs = C.gl1_4_funcs()
+ if gl.funcs == nil {
+ panic(fmt.Errorf("OpenGL version 1.4 is not available"))
+ }
+ return gl
+}
+
+// GL implements the OpenGL version 1.4 API. Values of this
+// type must be created via the API function, and it must not be used after
+// the associated OpenGL context becomes invalid.
+type GL struct {
+ funcs unsafe.Pointer
+}
+
+const (
+ FALSE = 0
+ TRUE = 1
+ NONE = 0
+
+ BYTE = 0x1400
+ UNSIGNED_BYTE = 0x1401
+ SHORT = 0x1402
+ UNSIGNED_SHORT = 0x1403
+ INT = 0x1404
+ UNSIGNED_INT = 0x1405
+ FLOAT = 0x1406
+ N2_BYTES = 0x1407
+ N3_BYTES = 0x1408
+ N4_BYTES = 0x1409
+ DOUBLE = 0x140A
+
+ ACCUM = 0x0100
+ LOAD = 0x0101
+ RETURN = 0x0102
+ MULT = 0x0103
+ ADD = 0x0104
+
+ ACCUM_BUFFER_BIT = 0x00000200
+ ALL_ATTRIB_BITS = 0xFFFFFFFF
+ COLOR_BUFFER_BIT = 0x00004000
+ CURRENT_BIT = 0x00000001
+ DEPTH_BUFFER_BIT = 0x00000100
+ ENABLE_BIT = 0x00002000
+ EVAL_BIT = 0x00010000
+ FOG_BIT = 0x00000080
+ HINT_BIT = 0x00008000
+ LIGHTING_BIT = 0x00000040
+ LINE_BIT = 0x00000004
+ LIST_BIT = 0x00020000
+ MULTISAMPLE_BIT = 0x20000000
+ PIXEL_MODE_BIT = 0x00000020
+ POINT_BIT = 0x00000002
+ POLYGON_BIT = 0x00000008
+ POLYGON_STIPPLE_BIT = 0x00000010
+ SCISSOR_BIT = 0x00080000
+ STENCIL_BUFFER_BIT = 0x00000400
+ TEXTURE_BIT = 0x00040000
+ TRANSFORM_BIT = 0x00001000
+ VIEWPORT_BIT = 0x00000800
+
+ ALWAYS = 0x0207
+ EQUAL = 0x0202
+ GEQUAL = 0x0206
+ GREATER = 0x0204
+ LEQUAL = 0x0203
+ LESS = 0x0201
+ NEVER = 0x0200
+ NOTEQUAL = 0x0205
+
+ LOGIC_OP = 0x0BF1
+
+ DST_ALPHA = 0x0304
+ ONE = 1
+ ONE_MINUS_DST_ALPHA = 0x0305
+ ONE_MINUS_SRC_ALPHA = 0x0303
+ ONE_MINUS_SRC_COLOR = 0x0301
+ SRC_ALPHA = 0x0302
+ SRC_COLOR = 0x0300
+ ZERO = 0
+
+ DST_COLOR = 0x0306
+ ONE_MINUS_DST_COLOR = 0x0307
+ SRC_ALPHA_SATURATE = 0x0308
+
+ CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF
+ CLIENT_PIXEL_STORE_BIT = 0x00000001
+ CLIENT_VERTEX_ARRAY_BIT = 0x00000002
+
+ CLIP_PLANE0 = 0x3000
+ CLIP_PLANE1 = 0x3001
+ CLIP_PLANE2 = 0x3002
+ CLIP_PLANE3 = 0x3003
+ CLIP_PLANE4 = 0x3004
+ CLIP_PLANE5 = 0x3005
+
+ BACK = 0x0405
+ FRONT = 0x0404
+ FRONT_AND_BACK = 0x0408
+
+ AMBIENT = 0x1200
+ AMBIENT_AND_DIFFUSE = 0x1602
+ DIFFUSE = 0x1201
+ EMISSION = 0x1600
+ SPECULAR = 0x1202
+
+ AUX0 = 0x0409
+ AUX1 = 0x040A
+ AUX2 = 0x040B
+ AUX3 = 0x040C
+ BACK_LEFT = 0x0402
+ BACK_RIGHT = 0x0403
+ FRONT_LEFT = 0x0400
+ FRONT_RIGHT = 0x0401
+ LEFT = 0x0406
+ RIGHT = 0x0407
+
+ ALPHA_TEST = 0x0BC0
+ AUTO_NORMAL = 0x0D80
+ BLEND = 0x0BE2
+ COLOR_ARRAY = 0x8076
+ COLOR_LOGIC_OP = 0x0BF2
+ COLOR_MATERIAL = 0x0B57
+ CULL_FACE = 0x0B44
+ DEPTH_TEST = 0x0B71
+ DITHER = 0x0BD0
+ EDGE_FLAG_ARRAY = 0x8079
+ FOG = 0x0B60
+ INDEX_ARRAY = 0x8077
+ INDEX_LOGIC_OP = 0x0BF1
+ LIGHT0 = 0x4000
+ LIGHT1 = 0x4001
+ LIGHT2 = 0x4002
+ LIGHT3 = 0x4003
+ LIGHT4 = 0x4004
+ LIGHT5 = 0x4005
+ LIGHT6 = 0x4006
+ LIGHT7 = 0x4007
+ LIGHTING = 0x0B50
+ LINE_SMOOTH = 0x0B20
+ LINE_STIPPLE = 0x0B24
+ MAP1_COLOR_4 = 0x0D90
+ MAP1_INDEX = 0x0D91
+ MAP1_NORMAL = 0x0D92
+ MAP1_TEXTURE_COORD_1 = 0x0D93
+ MAP1_TEXTURE_COORD_2 = 0x0D94
+ MAP1_TEXTURE_COORD_3 = 0x0D95
+ MAP1_TEXTURE_COORD_4 = 0x0D96
+ MAP1_VERTEX_3 = 0x0D97
+ MAP1_VERTEX_4 = 0x0D98
+ MAP2_COLOR_4 = 0x0DB0
+ MAP2_INDEX = 0x0DB1
+ MAP2_NORMAL = 0x0DB2
+ MAP2_TEXTURE_COORD_1 = 0x0DB3
+ MAP2_TEXTURE_COORD_2 = 0x0DB4
+ MAP2_TEXTURE_COORD_3 = 0x0DB5
+ MAP2_TEXTURE_COORD_4 = 0x0DB6
+ MAP2_VERTEX_3 = 0x0DB7
+ MAP2_VERTEX_4 = 0x0DB8
+ NORMALIZE = 0x0BA1
+ NORMAL_ARRAY = 0x8075
+ POINT_SMOOTH = 0x0B10
+ POLYGON_OFFSET_FILL = 0x8037
+ POLYGON_OFFSET_LINE = 0x2A02
+ POLYGON_OFFSET_POINT = 0x2A01
+ POLYGON_SMOOTH = 0x0B41
+ POLYGON_STIPPLE = 0x0B42
+ SCISSOR_TEST = 0x0C11
+ STENCIL_TEST = 0x0B90
+ TEXTURE_1D = 0x0DE0
+ TEXTURE_2D = 0x0DE1
+ TEXTURE_COORD_ARRAY = 0x8078
+ TEXTURE_GEN_Q = 0x0C63
+ TEXTURE_GEN_R = 0x0C62
+ TEXTURE_GEN_S = 0x0C60
+ TEXTURE_GEN_T = 0x0C61
+ VERTEX_ARRAY = 0x8074
+
+ INVALID_ENUM = 0x0500
+ INVALID_OPERATION = 0x0502
+ INVALID_VALUE = 0x0501
+ NO_ERROR = 0
+ OUT_OF_MEMORY = 0x0505
+ STACK_OVERFLOW = 0x0503
+ STACK_UNDERFLOW = 0x0504
+
+ N2D = 0x0600
+ N3D = 0x0601
+ N3D_COLOR = 0x0602
+ N3D_COLOR_TEXTURE = 0x0603
+ N4D_COLOR_TEXTURE = 0x0604
+
+ BITMAP_TOKEN = 0x0704
+ COPY_PIXEL_TOKEN = 0x0706
+ DRAW_PIXEL_TOKEN = 0x0705
+ LINE_RESET_TOKEN = 0x0707
+ LINE_TOKEN = 0x0702
+ PASS_THROUGH_TOKEN = 0x0700
+ POINT_TOKEN = 0x0701
+ POLYGON_TOKEN = 0x0703
+
+ EXP = 0x0800
+ EXP2 = 0x0801
+ LINEAR = 0x2601
+
+ FOG_COLOR = 0x0B66
+ FOG_DENSITY = 0x0B62
+ FOG_END = 0x0B64
+ FOG_INDEX = 0x0B61
+ FOG_MODE = 0x0B65
+ FOG_START = 0x0B63
+
+ CCW = 0x0901
+ CW = 0x0900
+
+ COEFF = 0x0A00
+ DOMAIN = 0x0A02
+ ORDER = 0x0A01
+
+ PIXEL_MAP_A_TO_A = 0x0C79
+ PIXEL_MAP_B_TO_B = 0x0C78
+ PIXEL_MAP_G_TO_G = 0x0C77
+ PIXEL_MAP_I_TO_A = 0x0C75
+ PIXEL_MAP_I_TO_B = 0x0C74
+ PIXEL_MAP_I_TO_G = 0x0C73
+ PIXEL_MAP_I_TO_I = 0x0C70
+ PIXEL_MAP_I_TO_R = 0x0C72
+ PIXEL_MAP_R_TO_R = 0x0C76
+ PIXEL_MAP_S_TO_S = 0x0C71
+
+ ACCUM_ALPHA_BITS = 0x0D5B
+ ACCUM_BLUE_BITS = 0x0D5A
+ ACCUM_CLEAR_VALUE = 0x0B80
+ ACCUM_GREEN_BITS = 0x0D59
+ ACCUM_RED_BITS = 0x0D58
+ ALIASED_LINE_WIDTH_RANGE = 0x846E
+ ALIASED_POINT_SIZE_RANGE = 0x846D
+ ALPHA_BIAS = 0x0D1D
+ ALPHA_BITS = 0x0D55
+ ALPHA_SCALE = 0x0D1C
+ ALPHA_TEST_FUNC = 0x0BC1
+ ALPHA_TEST_REF = 0x0BC2
+ ATTRIB_STACK_DEPTH = 0x0BB0
+ AUX_BUFFERS = 0x0C00
+ BLEND_DST = 0x0BE0
+ BLEND_SRC = 0x0BE1
+ BLUE_BIAS = 0x0D1B
+ BLUE_BITS = 0x0D54
+ BLUE_SCALE = 0x0D1A
+ CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1
+ COLOR_ARRAY_SIZE = 0x8081
+ COLOR_ARRAY_STRIDE = 0x8083
+ COLOR_ARRAY_TYPE = 0x8082
+ COLOR_CLEAR_VALUE = 0x0C22
+ COLOR_MATERIAL_FACE = 0x0B55
+ COLOR_MATERIAL_PARAMETER = 0x0B56
+ COLOR_WRITEMASK = 0x0C23
+ CULL_FACE_MODE = 0x0B45
+ CURRENT_COLOR = 0x0B00
+ CURRENT_INDEX = 0x0B01
+ CURRENT_NORMAL = 0x0B02
+ CURRENT_RASTER_COLOR = 0x0B04
+ CURRENT_RASTER_DISTANCE = 0x0B09
+ CURRENT_RASTER_INDEX = 0x0B05
+ CURRENT_RASTER_POSITION = 0x0B07
+ CURRENT_RASTER_POSITION_VALID = 0x0B08
+ CURRENT_RASTER_TEXTURE_COORDS = 0x0B06
+ CURRENT_TEXTURE_COORDS = 0x0B03
+ DEPTH_BIAS = 0x0D1F
+ DEPTH_BITS = 0x0D56
+ DEPTH_CLEAR_VALUE = 0x0B73
+ DEPTH_FUNC = 0x0B74
+ DEPTH_RANGE = 0x0B70
+ DEPTH_SCALE = 0x0D1E
+ DEPTH_WRITEMASK = 0x0B72
+ DOUBLEBUFFER = 0x0C32
+ DRAW_BUFFER = 0x0C01
+ EDGE_FLAG = 0x0B43
+ EDGE_FLAG_ARRAY_STRIDE = 0x808C
+ FEEDBACK_BUFFER_SIZE = 0x0DF1
+ FEEDBACK_BUFFER_TYPE = 0x0DF2
+ FOG_HINT = 0x0C54
+ FRONT_FACE = 0x0B46
+ GREEN_BIAS = 0x0D19
+ GREEN_BITS = 0x0D53
+ GREEN_SCALE = 0x0D18
+ INDEX_ARRAY_STRIDE = 0x8086
+ INDEX_ARRAY_TYPE = 0x8085
+ INDEX_BITS = 0x0D51
+ INDEX_CLEAR_VALUE = 0x0C20
+ INDEX_MODE = 0x0C30
+ INDEX_OFFSET = 0x0D13
+ INDEX_SHIFT = 0x0D12
+ INDEX_WRITEMASK = 0x0C21
+ LIGHT_MODEL_AMBIENT = 0x0B53
+ LIGHT_MODEL_COLOR_CONTROL = 0x81F8
+ LIGHT_MODEL_LOCAL_VIEWER = 0x0B51
+ LIGHT_MODEL_TWO_SIDE = 0x0B52
+ LINE_SMOOTH_HINT = 0x0C52
+ LINE_STIPPLE_PATTERN = 0x0B25
+ LINE_STIPPLE_REPEAT = 0x0B26
+ LINE_WIDTH = 0x0B21
+ LINE_WIDTH_GRANULARITY = 0x0B23
+ LINE_WIDTH_RANGE = 0x0B22
+ LIST_BASE = 0x0B32
+ LIST_INDEX = 0x0B33
+ LIST_MODE = 0x0B30
+ LOGIC_OP_MODE = 0x0BF0
+ MAP1_GRID_DOMAIN = 0x0DD0
+ MAP1_GRID_SEGMENTS = 0x0DD1
+ MAP2_GRID_DOMAIN = 0x0DD2
+ MAP2_GRID_SEGMENTS = 0x0DD3
+ MAP_COLOR = 0x0D10
+ MAP_STENCIL = 0x0D11
+ MATRIX_MODE = 0x0BA0
+ MAX_ATTRIB_STACK_DEPTH = 0x0D35
+ MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B
+ MAX_CLIP_PLANES = 0x0D32
+ MAX_EVAL_ORDER = 0x0D30
+ MAX_LIGHTS = 0x0D31
+ MAX_LIST_NESTING = 0x0B31
+ MAX_MODELVIEW_STACK_DEPTH = 0x0D36
+ MAX_NAME_STACK_DEPTH = 0x0D37
+ MAX_PIXEL_MAP_TABLE = 0x0D34
+ MAX_PROJECTION_STACK_DEPTH = 0x0D38
+ MAX_TEXTURE_SIZE = 0x0D33
+ MAX_TEXTURE_STACK_DEPTH = 0x0D39
+ MAX_VIEWPORT_DIMS = 0x0D3A
+ MODELVIEW_MATRIX = 0x0BA6
+ MODELVIEW_STACK_DEPTH = 0x0BA3
+ NAME_STACK_DEPTH = 0x0D70
+ NORMAL_ARRAY_STRIDE = 0x807F
+ NORMAL_ARRAY_TYPE = 0x807E
+ PACK_ALIGNMENT = 0x0D05
+ PACK_LSB_FIRST = 0x0D01
+ PACK_ROW_LENGTH = 0x0D02
+ PACK_SKIP_PIXELS = 0x0D04
+ PACK_SKIP_ROWS = 0x0D03
+ PACK_SWAP_BYTES = 0x0D00
+ PERSPECTIVE_CORRECTION_HINT = 0x0C50
+ PIXEL_MAP_A_TO_A_SIZE = 0x0CB9
+ PIXEL_MAP_B_TO_B_SIZE = 0x0CB8
+ PIXEL_MAP_G_TO_G_SIZE = 0x0CB7
+ PIXEL_MAP_I_TO_A_SIZE = 0x0CB5
+ PIXEL_MAP_I_TO_B_SIZE = 0x0CB4
+ PIXEL_MAP_I_TO_G_SIZE = 0x0CB3
+ PIXEL_MAP_I_TO_I_SIZE = 0x0CB0
+ PIXEL_MAP_I_TO_R_SIZE = 0x0CB2
+ PIXEL_MAP_R_TO_R_SIZE = 0x0CB6
+ PIXEL_MAP_S_TO_S_SIZE = 0x0CB1
+ POINT_SIZE = 0x0B11
+ POINT_SIZE_GRANULARITY = 0x0B13
+ POINT_SIZE_RANGE = 0x0B12
+ POINT_SMOOTH_HINT = 0x0C51
+ POLYGON_MODE = 0x0B40
+ POLYGON_OFFSET_FACTOR = 0x8038
+ POLYGON_OFFSET_UNITS = 0x2A00
+ POLYGON_SMOOTH_HINT = 0x0C53
+ PROJECTION_MATRIX = 0x0BA7
+ PROJECTION_STACK_DEPTH = 0x0BA4
+ READ_BUFFER = 0x0C02
+ RED_BIAS = 0x0D15
+ RED_BITS = 0x0D52
+ RED_SCALE = 0x0D14
+ RENDER_MODE = 0x0C40
+ RGBA_MODE = 0x0C31
+ SCISSOR_BOX = 0x0C10
+ SELECTION_BUFFER_SIZE = 0x0DF4
+ SHADE_MODEL = 0x0B54
+ SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23
+ SMOOTH_LINE_WIDTH_RANGE = 0x0B22
+ SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13
+ SMOOTH_POINT_SIZE_RANGE = 0x0B12
+ STENCIL_BITS = 0x0D57
+ STENCIL_CLEAR_VALUE = 0x0B91
+ STENCIL_FAIL = 0x0B94
+ STENCIL_FUNC = 0x0B92
+ STENCIL_PASS_DEPTH_FAIL = 0x0B95
+ STENCIL_PASS_DEPTH_PASS = 0x0B96
+ STENCIL_REF = 0x0B97
+ STENCIL_VALUE_MASK = 0x0B93
+ STENCIL_WRITEMASK = 0x0B98
+ STEREO = 0x0C33
+ SUBPIXEL_BITS = 0x0D50
+ TEXTURE_BINDING_1D = 0x8068
+ TEXTURE_BINDING_2D = 0x8069
+ TEXTURE_BINDING_3D = 0x806A
+ TEXTURE_COORD_ARRAY_SIZE = 0x8088
+ TEXTURE_COORD_ARRAY_STRIDE = 0x808A
+ TEXTURE_COORD_ARRAY_TYPE = 0x8089
+ TEXTURE_MATRIX = 0x0BA8
+ TEXTURE_STACK_DEPTH = 0x0BA5
+ UNPACK_ALIGNMENT = 0x0CF5
+ UNPACK_LSB_FIRST = 0x0CF1
+ UNPACK_ROW_LENGTH = 0x0CF2
+ UNPACK_SKIP_PIXELS = 0x0CF4
+ UNPACK_SKIP_ROWS = 0x0CF3
+ UNPACK_SWAP_BYTES = 0x0CF0
+ VERTEX_ARRAY_SIZE = 0x807A
+ VERTEX_ARRAY_STRIDE = 0x807C
+ VERTEX_ARRAY_TYPE = 0x807B
+ VIEWPORT = 0x0BA2
+ ZOOM_X = 0x0D16
+ ZOOM_Y = 0x0D17
+
+ COLOR_ARRAY_POINTER = 0x8090
+ EDGE_FLAG_ARRAY_POINTER = 0x8093
+ FEEDBACK_BUFFER_POINTER = 0x0DF0
+ INDEX_ARRAY_POINTER = 0x8091
+ NORMAL_ARRAY_POINTER = 0x808F
+ SELECTION_BUFFER_POINTER = 0x0DF3
+ TEXTURE_COORD_ARRAY_POINTER = 0x8092
+ VERTEX_ARRAY_POINTER = 0x808E
+
+ TEXTURE_ALPHA_SIZE = 0x805F
+ TEXTURE_BLUE_SIZE = 0x805E
+ TEXTURE_BORDER = 0x1005
+ TEXTURE_BORDER_COLOR = 0x1004
+ TEXTURE_COMPONENTS = 0x1003
+ TEXTURE_GREEN_SIZE = 0x805D
+ TEXTURE_HEIGHT = 0x1001
+ TEXTURE_INTENSITY_SIZE = 0x8061
+ TEXTURE_INTERNAL_FORMAT = 0x1003
+ TEXTURE_LUMINANCE_SIZE = 0x8060
+ TEXTURE_MAG_FILTER = 0x2800
+ TEXTURE_MIN_FILTER = 0x2801
+ TEXTURE_PRIORITY = 0x8066
+ TEXTURE_RED_SIZE = 0x805C
+ TEXTURE_RESIDENT = 0x8067
+ TEXTURE_WIDTH = 0x1000
+ TEXTURE_WRAP_S = 0x2802
+ TEXTURE_WRAP_T = 0x2803
+
+ DONT_CARE = 0x1100
+ FASTEST = 0x1101
+ NICEST = 0x1102
+
+ GENERATE_MIPMAP_HINT = 0x8192
+ TEXTURE_COMPRESSION_HINT = 0x84EF
+
+ C3F_V3F = 0x2A24
+ C4F_N3F_V3F = 0x2A26
+ C4UB_V2F = 0x2A22
+ C4UB_V3F = 0x2A23
+ N3F_V3F = 0x2A25
+ T2F_C3F_V3F = 0x2A2A
+ T2F_C4F_N3F_V3F = 0x2A2C
+ T2F_C4UB_V3F = 0x2A29
+ T2F_N3F_V3F = 0x2A2B
+ T2F_V3F = 0x2A27
+ T4F_C4F_N3F_V4F = 0x2A2D
+ T4F_V4F = 0x2A28
+ V2F = 0x2A20
+ V3F = 0x2A21
+
+ MODULATE = 0x2100
+ REPLACE = 0x1E01
+
+ SEPARATE_SPECULAR_COLOR = 0x81FA
+ SINGLE_COLOR = 0x81F9
+
+ CONSTANT_ATTENUATION = 0x1207
+ LINEAR_ATTENUATION = 0x1208
+ POSITION = 0x1203
+ QUADRATIC_ATTENUATION = 0x1209
+ SPOT_CUTOFF = 0x1206
+ SPOT_DIRECTION = 0x1204
+ SPOT_EXPONENT = 0x1205
+
+ COMPILE = 0x1300
+ COMPILE_AND_EXECUTE = 0x1301
+
+ AND = 0x1501
+ AND_INVERTED = 0x1504
+ AND_REVERSE = 0x1502
+ CLEAR = 0x1500
+ COPY = 0x1503
+ COPY_INVERTED = 0x150C
+ EQUIV = 0x1509
+ INVERT = 0x150A
+ NAND = 0x150E
+ NOOP = 0x1505
+ NOR = 0x1508
+ OR = 0x1507
+ OR_INVERTED = 0x150D
+ OR_REVERSE = 0x150B
+ SET = 0x150F
+ XOR = 0x1506
+
+ COLOR_INDEXES = 0x1603
+ SHININESS = 0x1601
+
+ MODELVIEW = 0x1700
+ PROJECTION = 0x1701
+ TEXTURE = 0x1702
+
+ LINE = 0x1B01
+ POINT = 0x1B00
+
+ FILL = 0x1B02
+
+ COLOR = 0x1800
+ DEPTH = 0x1801
+ STENCIL = 0x1802
+
+ ALPHA = 0x1906
+ BLUE = 0x1905
+ COLOR_INDEX = 0x1900
+ DEPTH_COMPONENT = 0x1902
+ GREEN = 0x1904
+ LUMINANCE = 0x1909
+ LUMINANCE_ALPHA = 0x190A
+ RED = 0x1903
+ RGB = 0x1907
+ RGBA = 0x1908
+ STENCIL_INDEX = 0x1901
+
+ ALPHA12 = 0x803D
+ ALPHA16 = 0x803E
+ ALPHA4 = 0x803B
+ ALPHA8 = 0x803C
+ INTENSITY = 0x8049
+ INTENSITY12 = 0x804C
+ INTENSITY16 = 0x804D
+ INTENSITY4 = 0x804A
+ INTENSITY8 = 0x804B
+ LUMINANCE12 = 0x8041
+ LUMINANCE12_ALPHA12 = 0x8047
+ LUMINANCE12_ALPHA4 = 0x8046
+ LUMINANCE16 = 0x8042
+ LUMINANCE16_ALPHA16 = 0x8048
+ LUMINANCE4 = 0x803F
+ LUMINANCE4_ALPHA4 = 0x8043
+ LUMINANCE6_ALPHA2 = 0x8044
+ LUMINANCE8 = 0x8040
+ LUMINANCE8_ALPHA8 = 0x8045
+ R3_G3_B2 = 0x2A10
+ RGB10 = 0x8052
+ RGB10_A2 = 0x8059
+ RGB12 = 0x8053
+ RGB16 = 0x8054
+ RGB4 = 0x804F
+ RGB5 = 0x8050
+ RGB5_A1 = 0x8057
+ RGB8 = 0x8051
+ RGBA12 = 0x805A
+ RGBA16 = 0x805B
+ RGBA2 = 0x8055
+ RGBA4 = 0x8056
+ RGBA8 = 0x8058
+
+ PACK_IMAGE_HEIGHT = 0x806C
+ PACK_SKIP_IMAGES = 0x806B
+ UNPACK_IMAGE_HEIGHT = 0x806E
+ UNPACK_SKIP_IMAGES = 0x806D
+
+ BITMAP = 0x1A00
+ UNSIGNED_BYTE_3_3_2 = 0x8032
+ UNSIGNED_INT_10_10_10_2 = 0x8036
+ UNSIGNED_INT_8_8_8_8 = 0x8035
+ UNSIGNED_SHORT_4_4_4_4 = 0x8033
+ UNSIGNED_SHORT_5_5_5_1 = 0x8034
+
+ POINT_DISTANCE_ATTENUATION = 0x8129
+ POINT_FADE_THRESHOLD_SIZE = 0x8128
+ POINT_SIZE_MAX = 0x8127
+ POINT_SIZE_MIN = 0x8126
+
+ LINES = 0x0001
+ LINE_LOOP = 0x0002
+ LINE_STRIP = 0x0003
+ POINTS = 0x0000
+ POLYGON = 0x0009
+ QUADS = 0x0007
+ QUAD_STRIP = 0x0008
+ TRIANGLES = 0x0004
+ TRIANGLE_FAN = 0x0006
+ TRIANGLE_STRIP = 0x0005
+
+ FEEDBACK = 0x1C01
+ RENDER = 0x1C00
+ SELECT = 0x1C02
+
+ FLAT = 0x1D00
+ SMOOTH = 0x1D01
+
+ DECR = 0x1E03
+ INCR = 0x1E02
+ KEEP = 0x1E00
+
+ EXTENSIONS = 0x1F03
+ RENDERER = 0x1F01
+ VENDOR = 0x1F00
+ VERSION = 0x1F02
+
+ S = 0x2000
+ T = 0x2001
+ R = 0x2002
+ Q = 0x2003
+
+ DECAL = 0x2101
+
+ TEXTURE_ENV_COLOR = 0x2201
+ TEXTURE_ENV_MODE = 0x2200
+
+ TEXTURE_ENV = 0x2300
+
+ EYE_LINEAR = 0x2400
+ OBJECT_LINEAR = 0x2401
+ SPHERE_MAP = 0x2402
+
+ EYE_PLANE = 0x2502
+ OBJECT_PLANE = 0x2501
+ TEXTURE_GEN_MODE = 0x2500
+
+ NEAREST = 0x2600
+
+ LINEAR_MIPMAP_LINEAR = 0x2703
+ LINEAR_MIPMAP_NEAREST = 0x2701
+ NEAREST_MIPMAP_LINEAR = 0x2702
+ NEAREST_MIPMAP_NEAREST = 0x2700
+
+ GENERATE_MIPMAP = 0x8191
+ TEXTURE_WRAP_R = 0x8072
+
+ PROXY_TEXTURE_1D = 0x8063
+ PROXY_TEXTURE_2D = 0x8064
+ PROXY_TEXTURE_3D = 0x8070
+ TEXTURE_3D = 0x806F
+ TEXTURE_BASE_LEVEL = 0x813C
+ TEXTURE_MAX_LEVEL = 0x813D
+ TEXTURE_MAX_LOD = 0x813B
+ TEXTURE_MIN_LOD = 0x813A
+
+ CLAMP = 0x2900
+ CLAMP_TO_BORDER = 0x812D
+ CLAMP_TO_EDGE = 0x812F
+ REPEAT = 0x2901
+
+ CONSTANT_COLOR = 0x8001
+ ONE_MINUS_CONSTANT_COLOR = 0x8002
+ CONSTANT_ALPHA = 0x8003
+ ONE_MINUS_CONSTANT_ALPHA = 0x8004
+ FUNC_ADD = 0x8006
+ MIN = 0x8007
+ MAX = 0x8008
+ FUNC_SUBTRACT = 0x800A
+ FUNC_REVERSE_SUBTRACT = 0x800B
+ RESCALE_NORMAL = 0x803A
+ TEXTURE_DEPTH = 0x8071
+ MAX_3D_TEXTURE_SIZE = 0x8073
+ MULTISAMPLE = 0x809D
+ SAMPLE_ALPHA_TO_COVERAGE = 0x809E
+ SAMPLE_ALPHA_TO_ONE = 0x809F
+ SAMPLE_COVERAGE = 0x80A0
+ SAMPLE_BUFFERS = 0x80A8
+ SAMPLES = 0x80A9
+ SAMPLE_COVERAGE_VALUE = 0x80AA
+ SAMPLE_COVERAGE_INVERT = 0x80AB
+ BLEND_DST_RGB = 0x80C8
+ BLEND_SRC_RGB = 0x80C9
+ BLEND_DST_ALPHA = 0x80CA
+ BLEND_SRC_ALPHA = 0x80CB
+ BGR = 0x80E0
+ BGRA = 0x80E1
+ MAX_ELEMENTS_VERTICES = 0x80E8
+ MAX_ELEMENTS_INDICES = 0x80E9
+ DEPTH_COMPONENT16 = 0x81A5
+ DEPTH_COMPONENT24 = 0x81A6
+ DEPTH_COMPONENT32 = 0x81A7
+ UNSIGNED_BYTE_2_3_3_REV = 0x8362
+ UNSIGNED_SHORT_5_6_5 = 0x8363
+ UNSIGNED_SHORT_5_6_5_REV = 0x8364
+ UNSIGNED_SHORT_4_4_4_4_REV = 0x8365
+ UNSIGNED_SHORT_1_5_5_5_REV = 0x8366
+ UNSIGNED_INT_8_8_8_8_REV = 0x8367
+ UNSIGNED_INT_2_10_10_10_REV = 0x8368
+ MIRRORED_REPEAT = 0x8370
+ FOG_COORDINATE_SOURCE = 0x8450
+ FOG_COORDINATE = 0x8451
+ FRAGMENT_DEPTH = 0x8452
+ CURRENT_FOG_COORDINATE = 0x8453
+ FOG_COORDINATE_ARRAY_TYPE = 0x8454
+ FOG_COORDINATE_ARRAY_STRIDE = 0x8455
+ FOG_COORDINATE_ARRAY_POINTER = 0x8456
+ FOG_COORDINATE_ARRAY = 0x8457
+ COLOR_SUM = 0x8458
+ CURRENT_SECONDARY_COLOR = 0x8459
+ SECONDARY_COLOR_ARRAY_SIZE = 0x845A
+ SECONDARY_COLOR_ARRAY_TYPE = 0x845B
+ SECONDARY_COLOR_ARRAY_STRIDE = 0x845C
+ SECONDARY_COLOR_ARRAY_POINTER = 0x845D
+ SECONDARY_COLOR_ARRAY = 0x845E
+ TEXTURE0 = 0x84C0
+ TEXTURE1 = 0x84C1
+ TEXTURE2 = 0x84C2
+ TEXTURE3 = 0x84C3
+ TEXTURE4 = 0x84C4
+ TEXTURE5 = 0x84C5
+ TEXTURE6 = 0x84C6
+ TEXTURE7 = 0x84C7
+ TEXTURE8 = 0x84C8
+ TEXTURE9 = 0x84C9
+ TEXTURE10 = 0x84CA
+ TEXTURE11 = 0x84CB
+ TEXTURE12 = 0x84CC
+ TEXTURE13 = 0x84CD
+ TEXTURE14 = 0x84CE
+ TEXTURE15 = 0x84CF
+ TEXTURE16 = 0x84D0
+ TEXTURE17 = 0x84D1
+ TEXTURE18 = 0x84D2
+ TEXTURE19 = 0x84D3
+ TEXTURE20 = 0x84D4
+ TEXTURE21 = 0x84D5
+ TEXTURE22 = 0x84D6
+ TEXTURE23 = 0x84D7
+ TEXTURE24 = 0x84D8
+ TEXTURE25 = 0x84D9
+ TEXTURE26 = 0x84DA
+ TEXTURE27 = 0x84DB
+ TEXTURE28 = 0x84DC
+ TEXTURE29 = 0x84DD
+ TEXTURE30 = 0x84DE
+ TEXTURE31 = 0x84DF
+ ACTIVE_TEXTURE = 0x84E0
+ CLIENT_ACTIVE_TEXTURE = 0x84E1
+ MAX_TEXTURE_UNITS = 0x84E2
+ TRANSPOSE_MODELVIEW_MATRIX = 0x84E3
+ TRANSPOSE_PROJECTION_MATRIX = 0x84E4
+ TRANSPOSE_TEXTURE_MATRIX = 0x84E5
+ TRANSPOSE_COLOR_MATRIX = 0x84E6
+ SUBTRACT = 0x84E7
+ COMPRESSED_ALPHA = 0x84E9
+ COMPRESSED_LUMINANCE = 0x84EA
+ COMPRESSED_LUMINANCE_ALPHA = 0x84EB
+ COMPRESSED_INTENSITY = 0x84EC
+ COMPRESSED_RGB = 0x84ED
+ COMPRESSED_RGBA = 0x84EE
+ MAX_TEXTURE_LOD_BIAS = 0x84FD
+ TEXTURE_FILTER_CONTROL = 0x8500
+ TEXTURE_LOD_BIAS = 0x8501
+ INCR_WRAP = 0x8507
+ DECR_WRAP = 0x8508
+ NORMAL_MAP = 0x8511
+ REFLECTION_MAP = 0x8512
+ TEXTURE_CUBE_MAP = 0x8513
+ TEXTURE_BINDING_CUBE_MAP = 0x8514
+ TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515
+ TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516
+ TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
+ TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518
+ TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519
+ TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A
+ PROXY_TEXTURE_CUBE_MAP = 0x851B
+ MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C
+ COMBINE = 0x8570
+ COMBINE_RGB = 0x8571
+ COMBINE_ALPHA = 0x8572
+ RGB_SCALE = 0x8573
+ ADD_SIGNED = 0x8574
+ INTERPOLATE = 0x8575
+ CONSTANT = 0x8576
+ PRIMARY_COLOR = 0x8577
+ PREVIOUS = 0x8578
+ SOURCE0_RGB = 0x8580
+ SOURCE1_RGB = 0x8581
+ SOURCE2_RGB = 0x8582
+ SOURCE0_ALPHA = 0x8588
+ SOURCE1_ALPHA = 0x8589
+ SOURCE2_ALPHA = 0x858A
+ OPERAND0_RGB = 0x8590
+ OPERAND1_RGB = 0x8591
+ OPERAND2_RGB = 0x8592
+ OPERAND0_ALPHA = 0x8598
+ OPERAND1_ALPHA = 0x8599
+ OPERAND2_ALPHA = 0x859A
+ TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0
+ TEXTURE_COMPRESSED = 0x86A1
+ NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2
+ COMPRESSED_TEXTURE_FORMATS = 0x86A3
+ DOT3_RGB = 0x86AE
+ DOT3_RGBA = 0x86AF
+ TEXTURE_DEPTH_SIZE = 0x884A
+ DEPTH_TEXTURE_MODE = 0x884B
+ TEXTURE_COMPARE_MODE = 0x884C
+ TEXTURE_COMPARE_FUNC = 0x884D
+ COMPARE_R_TO_TEXTURE = 0x884E
+)
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glViewport.xml
+func (gl *GL) Viewport(x, y, width, height int) {
+ C.gl1_4_glViewport(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// DepthRange specifies the mapping of depth values from normalized device
+// coordinates to window coordinates.
+//
+// Parameter nearVal specifies the mapping of the near clipping plane to window
+// coordinates (defaults to 0), while farVal specifies the mapping of the far
+// clipping plane to window coordinates (defaults to 1).
+//
+// After clipping and division by w, depth coordinates range from -1 to 1,
+// corresponding to the near and far clipping planes. DepthRange specifies a
+// linear mapping of the normalized depth coordinates in this range to window
+// depth coordinates. Regardless of the actual depth buffer implementation,
+// window coordinate depth values are treated as though they range from 0 through 1
+// (like color components). Thus, the values accepted by DepthRange are both
+// clamped to this range before they are accepted.
+//
+// The default setting of (0, 1) maps the near plane to 0 and the far plane to 1.
+// With this mapping, the depth buffer range is fully utilized.
+//
+// It is not necessary that nearVal be less than farVal. Reverse mappings such as
+// nearVal 1, and farVal 0 are acceptable.
+//
+// GL.INVALID_OPERATION is generated if DepthRange is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) DepthRange(nearVal, farVal float64) {
+ C.gl1_4_glDepthRange(gl.funcs, C.GLdouble(nearVal), C.GLdouble(farVal))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsEnabled.xml
+func (gl *GL) IsEnabled(cap glbase.Enum) bool {
+ glresult := C.gl1_4_glIsEnabled(gl.funcs, C.GLenum(cap))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameteriv.xml
+func (gl *GL) GetTexLevelParameteriv(target glbase.Enum, level int, pname glbase.Enum, params []int32) {
+ C.gl1_4_glGetTexLevelParameteriv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameterfv.xml
+func (gl *GL) GetTexLevelParameterfv(target glbase.Enum, level int, pname glbase.Enum, params []float32) {
+ C.gl1_4_glGetTexLevelParameterfv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameteriv.xml
+func (gl *GL) GetTexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_4_glGetTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameterfv.xml
+func (gl *GL) GetTexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_4_glGetTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexImage.xml
+func (gl *GL) GetTexImage(target glbase.Enum, level int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glGetTexImage(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetIntegerv.xml
+func (gl *GL) GetIntegerv(pname glbase.Enum, params []int32) {
+ C.gl1_4_glGetIntegerv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetFloatv.xml
+func (gl *GL) GetFloatv(pname glbase.Enum, params []float32) {
+ C.gl1_4_glGetFloatv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetError.xml
+func (gl *GL) GetError() glbase.Enum {
+ glresult := C.gl1_4_glGetError(gl.funcs)
+ return glbase.Enum(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetDoublev.xml
+func (gl *GL) GetDoublev(pname glbase.Enum, params []float64) {
+ C.gl1_4_glGetDoublev(gl.funcs, C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetBooleanv.xml
+func (gl *GL) GetBooleanv(pname glbase.Enum, params []bool) {
+ C.gl1_4_glGetBooleanv(gl.funcs, C.GLenum(pname), (*C.GLboolean)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadPixels.xml
+func (gl *GL) ReadPixels(x, y, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glReadPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadBuffer.xml
+func (gl *GL) ReadBuffer(mode glbase.Enum) {
+ C.gl1_4_glReadBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStorei.xml
+func (gl *GL) PixelStorei(pname glbase.Enum, param int32) {
+ C.gl1_4_glPixelStorei(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStoref.xml
+func (gl *GL) PixelStoref(pname glbase.Enum, param float32) {
+ C.gl1_4_glPixelStoref(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthFunc.xml
+func (gl *GL) DepthFunc(glfunc glbase.Enum) {
+ C.gl1_4_glDepthFunc(gl.funcs, C.GLenum(glfunc))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilOp.xml
+func (gl *GL) StencilOp(fail, zfail, zpass glbase.Enum) {
+ C.gl1_4_glStencilOp(gl.funcs, C.GLenum(fail), C.GLenum(zfail), C.GLenum(zpass))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilFunc.xml
+func (gl *GL) StencilFunc(glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl1_4_glStencilFunc(gl.funcs, C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLogicOp.xml
+func (gl *GL) LogicOp(opcode glbase.Enum) {
+ C.gl1_4_glLogicOp(gl.funcs, C.GLenum(opcode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendFunc.xml
+func (gl *GL) BlendFunc(sfactor, dfactor glbase.Enum) {
+ C.gl1_4_glBlendFunc(gl.funcs, C.GLenum(sfactor), C.GLenum(dfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFlush.xml
+func (gl *GL) Flush() {
+ C.gl1_4_glFlush(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFinish.xml
+func (gl *GL) Finish() {
+ C.gl1_4_glFinish(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnable.xml
+func (gl *GL) Enable(cap glbase.Enum) {
+ C.gl1_4_glEnable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisable.xml
+func (gl *GL) Disable(cap glbase.Enum) {
+ C.gl1_4_glDisable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthMask.xml
+func (gl *GL) DepthMask(flag bool) {
+ C.gl1_4_glDepthMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMask.xml
+func (gl *GL) ColorMask(red, green, blue, alpha bool) {
+ C.gl1_4_glColorMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&red)), *(*C.GLboolean)(unsafe.Pointer(&green)), *(*C.GLboolean)(unsafe.Pointer(&blue)), *(*C.GLboolean)(unsafe.Pointer(&alpha)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilMask.xml
+func (gl *GL) StencilMask(mask uint32) {
+ C.gl1_4_glStencilMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearDepth.xml
+func (gl *GL) ClearDepth(depth float64) {
+ C.gl1_4_glClearDepth(gl.funcs, C.GLdouble(depth))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearStencil.xml
+func (gl *GL) ClearStencil(s int32) {
+ C.gl1_4_glClearStencil(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearColor.xml
+func (gl *GL) ClearColor(red, green, blue, alpha float32) {
+ C.gl1_4_glClearColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClear.xml
+func (gl *GL) Clear(mask glbase.Bitfield) {
+ C.gl1_4_glClear(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawBuffer.xml
+func (gl *GL) DrawBuffer(mode glbase.Enum) {
+ C.gl1_4_glDrawBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml
+func (gl *GL) TexImage2D(target glbase.Enum, level int, internalFormat int32, width, height, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage1D.xml
+func (gl *GL) TexImage1D(target glbase.Enum, level int, internalFormat int32, width, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteriv.xml
+func (gl *GL) TexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_4_glTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteri.xml
+func (gl *GL) TexParameteri(target, pname glbase.Enum, param int32) {
+ C.gl1_4_glTexParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterfv.xml
+func (gl *GL) TexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_4_glTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterf.xml
+func (gl *GL) TexParameterf(target, pname glbase.Enum, param float32) {
+ C.gl1_4_glTexParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScissor.xml
+func (gl *GL) Scissor(x, y, width, height int) {
+ C.gl1_4_glScissor(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonMode.xml
+func (gl *GL) PolygonMode(face, mode glbase.Enum) {
+ C.gl1_4_glPolygonMode(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointSize.xml
+func (gl *GL) PointSize(size float32) {
+ C.gl1_4_glPointSize(gl.funcs, C.GLfloat(size))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineWidth.xml
+func (gl *GL) LineWidth(width float32) {
+ C.gl1_4_glLineWidth(gl.funcs, C.GLfloat(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glHint.xml
+func (gl *GL) Hint(target, mode glbase.Enum) {
+ C.gl1_4_glHint(gl.funcs, C.GLenum(target), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrontFace.xml
+func (gl *GL) FrontFace(mode glbase.Enum) {
+ C.gl1_4_glFrontFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCullFace.xml
+func (gl *GL) CullFace(mode glbase.Enum) {
+ C.gl1_4_glCullFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexubv.xml
+func (gl *GL) Indexubv(c []uint8) {
+ C.gl1_4_glIndexubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexub.xml
+func (gl *GL) Indexub(c uint8) {
+ C.gl1_4_glIndexub(gl.funcs, C.GLubyte(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsTexture.xml
+func (gl *GL) IsTexture(texture glbase.Texture) bool {
+ glresult := C.gl1_4_glIsTexture(gl.funcs, C.GLuint(texture))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenTextures returns n texture names in textures. There is no guarantee
+// that the names form a contiguous set of integers; however, it is
+// guaranteed that none of the returned names was in use immediately before
+// the call to GenTextures.
+//
+// The generated textures have no dimensionality; they assume the
+// dimensionality of the texture target to which they are first bound (see
+// BindTexture).
+//
+// Texture names returned by a call to GenTextures are not returned by
+// subsequent calls, unless they are first deleted with DeleteTextures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// GenTextures is available in GL version 2.0 or greater.
+func (gl *GL) GenTextures(n int) []glbase.Texture {
+ if n == 0 {
+ return nil
+ }
+ textures := make([]glbase.Texture, n)
+ C.gl1_4_glGenTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+ return textures
+}
+
+// DeleteTextures deletes the textures objects whose names are stored
+// in the textures slice. After a texture is deleted, it has no contents or
+// dimensionality, and its name is free for reuse (for example by
+// GenTextures). If a texture that is currently bound is deleted, the binding
+// reverts to 0 (the default texture).
+//
+// DeleteTextures silently ignores 0's and names that do not correspond to
+// existing textures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// DeleteTextures is available in GL version 2.0 or greater.
+func (gl *GL) DeleteTextures(textures []glbase.Texture) {
+ n := len(textures)
+ if n == 0 {
+ return
+ }
+ C.gl1_4_glDeleteTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBindTexture.xml
+func (gl *GL) BindTexture(target glbase.Enum, texture glbase.Texture) {
+ C.gl1_4_glBindTexture(gl.funcs, C.GLenum(target), C.GLuint(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage2D.xml
+func (gl *GL) TexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage1D.xml
+func (gl *GL) TexSubImage1D(target glbase.Enum, level, xoffset, width int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage2D.xml
+func (gl *GL) CopyTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, x, y, width, height int) {
+ C.gl1_4_glCopyTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage1D.xml
+func (gl *GL) CopyTexSubImage1D(target glbase.Enum, level, xoffset, x, y, width int) {
+ C.gl1_4_glCopyTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage2D.xml
+func (gl *GL) CopyTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, height, border int) {
+ C.gl1_4_glCopyTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage1D.xml
+func (gl *GL) CopyTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, border int) {
+ C.gl1_4_glCopyTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonOffset.xml
+func (gl *GL) PolygonOffset(factor, units float32) {
+ C.gl1_4_glPolygonOffset(gl.funcs, C.GLfloat(factor), C.GLfloat(units))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawElements.xml
+func (gl *GL) DrawElements(mode glbase.Enum, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glDrawElements(gl.funcs, C.GLenum(mode), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawArrays.xml
+func (gl *GL) DrawArrays(mode glbase.Enum, first, count int) {
+ C.gl1_4_glDrawArrays(gl.funcs, C.GLenum(mode), C.GLint(first), C.GLsizei(count))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage3D.xml
+func (gl *GL) CopyTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, x, y, width, height int) {
+ C.gl1_4_glCopyTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage3D.xml
+func (gl *GL) TexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage3D.xml
+func (gl *GL) TexImage3D(target glbase.Enum, level int, internalFormat int32, width, height int, depth int32, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawRangeElements.xml
+func (gl *GL) DrawRangeElements(mode glbase.Enum, start, end uint32, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glDrawRangeElements(gl.funcs, C.GLenum(mode), C.GLuint(start), C.GLuint(end), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendEquation.xml
+func (gl *GL) BlendEquation(mode glbase.Enum) {
+ C.gl1_4_glBlendEquation(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendColor.xml
+func (gl *GL) BlendColor(red, green, blue, alpha float32) {
+ C.gl1_4_glBlendColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetCompressedTexImage.xml
+func (gl *GL) GetCompressedTexImage(target glbase.Enum, level int, img interface{}) {
+ var img_ptr unsafe.Pointer
+ var img_v = reflect.ValueOf(img)
+ if img != nil && img_v.Kind() != reflect.Slice {
+ panic("parameter img must be a slice")
+ }
+ if img != nil {
+ img_ptr = unsafe.Pointer(img_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glGetCompressedTexImage(gl.funcs, C.GLenum(target), C.GLint(level), img_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage1D.xml
+func (gl *GL) CompressedTexSubImage1D(target glbase.Enum, level, xoffset, width int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glCompressedTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage2D.xml
+func (gl *GL) CompressedTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glCompressedTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage3D.xml
+func (gl *GL) CompressedTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glCompressedTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage1D.xml
+func (gl *GL) CompressedTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, width, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glCompressedTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage2D.xml
+func (gl *GL) CompressedTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glCompressedTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage3D.xml
+func (gl *GL) CompressedTexImage3D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height int, depth int32, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glCompressedTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSampleCoverage.xml
+func (gl *GL) SampleCoverage(value float32, invert bool) {
+ C.gl1_4_glSampleCoverage(gl.funcs, C.GLfloat(value), *(*C.GLboolean)(unsafe.Pointer(&invert)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glActiveTexture.xml
+func (gl *GL) ActiveTexture(texture glbase.Enum) {
+ C.gl1_4_glActiveTexture(gl.funcs, C.GLenum(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameteriv.xml
+func (gl *GL) PointParameteriv(pname glbase.Enum, params []int32) {
+ C.gl1_4_glPointParameteriv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameteri.xml
+func (gl *GL) PointParameteri(pname glbase.Enum, param int32) {
+ C.gl1_4_glPointParameteri(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameterfv.xml
+func (gl *GL) PointParameterfv(pname glbase.Enum, params []float32) {
+ C.gl1_4_glPointParameterfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameterf.xml
+func (gl *GL) PointParameterf(pname glbase.Enum, param float32) {
+ C.gl1_4_glPointParameterf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiDrawArrays.xml
+func (gl *GL) MultiDrawArrays(mode glbase.Enum, first, count []int, drawcount int32) {
+ C.gl1_4_glMultiDrawArrays(gl.funcs, C.GLenum(mode), (*C.GLint)(unsafe.Pointer(&first[0])), (*C.GLsizei)(unsafe.Pointer(&count[0])), C.GLsizei(drawcount))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendFuncSeparate.xml
+func (gl *GL) BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha glbase.Enum) {
+ C.gl1_4_glBlendFuncSeparate(gl.funcs, C.GLenum(sfactorRGB), C.GLenum(dfactorRGB), C.GLenum(sfactorAlpha), C.GLenum(dfactorAlpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslatef.xml
+func (gl *GL) Translatef(x, y, z float32) {
+ C.gl1_4_glTranslatef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslated.xml
+func (gl *GL) Translated(x, y, z float64) {
+ C.gl1_4_glTranslated(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScalef.xml
+func (gl *GL) Scalef(x, y, z float32) {
+ C.gl1_4_glScalef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScaled.xml
+func (gl *GL) Scaled(x, y, z float64) {
+ C.gl1_4_glScaled(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotatef.xml
+func (gl *GL) Rotatef(angle, x, y, z float32) {
+ C.gl1_4_glRotatef(gl.funcs, C.GLfloat(angle), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotated.xml
+func (gl *GL) Rotated(angle, x, y, z float64) {
+ C.gl1_4_glRotated(gl.funcs, C.GLdouble(angle), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushMatrix.xml
+func (gl *GL) PushMatrix() {
+ C.gl1_4_glPushMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopMatrix.xml
+func (gl *GL) PopMatrix() {
+ C.gl1_4_glPopMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml
+func (gl *GL) Ortho(left, right, bottom, top, zNear, zFar float64) {
+ C.gl1_4_glOrtho(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// MultMatrixd multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixd(m []float64) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl1_4_glMultMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// MultMatrixf multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixf(m []float32) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl1_4_glMultMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMatrixMode.xml
+func (gl *GL) MatrixMode(mode glbase.Enum) {
+ C.gl1_4_glMatrixMode(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixd.xml
+func (gl *GL) LoadMatrixd(m []float64) {
+ C.gl1_4_glLoadMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixf.xml
+func (gl *GL) LoadMatrixf(m []float32) {
+ C.gl1_4_glLoadMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadIdentity.xml
+func (gl *GL) LoadIdentity() {
+ C.gl1_4_glLoadIdentity(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml
+func (gl *GL) Frustum(left, right, bottom, top, zNear, zFar float64) {
+ C.gl1_4_glFrustum(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsList.xml
+func (gl *GL) IsList(list uint32) bool {
+ glresult := C.gl1_4_glIsList(gl.funcs, C.GLuint(list))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGeniv.xml
+func (gl *GL) GetTexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl1_4_glGetTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGenfv.xml
+func (gl *GL) GetTexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl1_4_glGetTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGendv.xml
+func (gl *GL) GetTexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl1_4_glGetTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnviv.xml
+func (gl *GL) GetTexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl1_4_glGetTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnvfv.xml
+func (gl *GL) GetTexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_4_glGetTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPolygonStipple.xml
+func (gl *GL) GetPolygonStipple(mask []uint8) {
+ C.gl1_4_glGetPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapusv.xml
+func (gl *GL) GetPixelMapusv(glmap glbase.Enum, values []uint16) {
+ C.gl1_4_glGetPixelMapusv(gl.funcs, C.GLenum(glmap), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapuiv.xml
+func (gl *GL) GetPixelMapuiv(glmap glbase.Enum, values []uint32) {
+ C.gl1_4_glGetPixelMapuiv(gl.funcs, C.GLenum(glmap), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapfv.xml
+func (gl *GL) GetPixelMapfv(glmap glbase.Enum, values []float32) {
+ C.gl1_4_glGetPixelMapfv(gl.funcs, C.GLenum(glmap), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialiv.xml
+func (gl *GL) GetMaterialiv(face, pname glbase.Enum, params []int32) {
+ C.gl1_4_glGetMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialfv.xml
+func (gl *GL) GetMaterialfv(face, pname glbase.Enum, params []float32) {
+ C.gl1_4_glGetMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapiv.xml
+func (gl *GL) GetMapiv(target, query glbase.Enum, v []int32) {
+ C.gl1_4_glGetMapiv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapfv.xml
+func (gl *GL) GetMapfv(target, query glbase.Enum, v []float32) {
+ C.gl1_4_glGetMapfv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapdv.xml
+func (gl *GL) GetMapdv(target, query glbase.Enum, v []float64) {
+ C.gl1_4_glGetMapdv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightiv.xml
+func (gl *GL) GetLightiv(light, pname glbase.Enum, params []int32) {
+ C.gl1_4_glGetLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightfv.xml
+func (gl *GL) GetLightfv(light, pname glbase.Enum, params []float32) {
+ C.gl1_4_glGetLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetClipPlane.xml
+func (gl *GL) GetClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl1_4_glGetClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawPixels.xml
+func (gl *GL) DrawPixels(width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glDrawPixels(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyPixels.xml
+func (gl *GL) CopyPixels(x, y, width, height int, gltype glbase.Enum) {
+ C.gl1_4_glCopyPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(gltype))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapusv.xml
+func (gl *GL) PixelMapusv(glmap glbase.Enum, mapsize int32, values []uint16) {
+ C.gl1_4_glPixelMapusv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapuiv.xml
+func (gl *GL) PixelMapuiv(glmap glbase.Enum, mapsize int32, values []uint32) {
+ C.gl1_4_glPixelMapuiv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapfv.xml
+func (gl *GL) PixelMapfv(glmap glbase.Enum, mapsize int32, values []float32) {
+ C.gl1_4_glPixelMapfv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferi.xml
+func (gl *GL) PixelTransferi(pname glbase.Enum, param int32) {
+ C.gl1_4_glPixelTransferi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferf.xml
+func (gl *GL) PixelTransferf(pname glbase.Enum, param float32) {
+ C.gl1_4_glPixelTransferf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelZoom.xml
+func (gl *GL) PixelZoom(xfactor, yfactor float32) {
+ C.gl1_4_glPixelZoom(gl.funcs, C.GLfloat(xfactor), C.GLfloat(yfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAlphaFunc.xml
+func (gl *GL) AlphaFunc(glfunc glbase.Enum, ref float32) {
+ C.gl1_4_glAlphaFunc(gl.funcs, C.GLenum(glfunc), C.GLfloat(ref))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint2.xml
+func (gl *GL) EvalPoint2(i, j int32) {
+ C.gl1_4_glEvalPoint2(gl.funcs, C.GLint(i), C.GLint(j))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh2.xml
+func (gl *GL) EvalMesh2(mode glbase.Enum, i1, i2, j1, j2 int32) {
+ C.gl1_4_glEvalMesh2(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2), C.GLint(j1), C.GLint(j2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint1.xml
+func (gl *GL) EvalPoint1(i int32) {
+ C.gl1_4_glEvalPoint1(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh1.xml
+func (gl *GL) EvalMesh1(mode glbase.Enum, i1, i2 int32) {
+ C.gl1_4_glEvalMesh1(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2fv.xml
+func (gl *GL) EvalCoord2fv(u []float32) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl1_4_glEvalCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2f.xml
+func (gl *GL) EvalCoord2f(u, v float32) {
+ C.gl1_4_glEvalCoord2f(gl.funcs, C.GLfloat(u), C.GLfloat(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2dv.xml
+func (gl *GL) EvalCoord2dv(u []float64) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl1_4_glEvalCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2d.xml
+func (gl *GL) EvalCoord2d(u, v float64) {
+ C.gl1_4_glEvalCoord2d(gl.funcs, C.GLdouble(u), C.GLdouble(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1fv.xml
+func (gl *GL) EvalCoord1fv(u []float32) {
+ C.gl1_4_glEvalCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1f.xml
+func (gl *GL) EvalCoord1f(u float32) {
+ C.gl1_4_glEvalCoord1f(gl.funcs, C.GLfloat(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1dv.xml
+func (gl *GL) EvalCoord1dv(u []float64) {
+ C.gl1_4_glEvalCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1d.xml
+func (gl *GL) EvalCoord1d(u float64) {
+ C.gl1_4_glEvalCoord1d(gl.funcs, C.GLdouble(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2f.xml
+func (gl *GL) MapGrid2f(un int32, u1, u2 float32, vn int32, v1, v2 float32) {
+ C.gl1_4_glMapGrid2f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2), C.GLint(vn), C.GLfloat(v1), C.GLfloat(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2d.xml
+func (gl *GL) MapGrid2d(un int32, u1, u2 float64, vn int32, v1, v2 float64) {
+ C.gl1_4_glMapGrid2d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2), C.GLint(vn), C.GLdouble(v1), C.GLdouble(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1f.xml
+func (gl *GL) MapGrid1f(un int32, u1, u2 float32) {
+ C.gl1_4_glMapGrid1f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1d.xml
+func (gl *GL) MapGrid1d(un int32, u1, u2 float64) {
+ C.gl1_4_glMapGrid1d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2f.xml
+func (gl *GL) Map2f(target glbase.Enum, u1, u2 float32, ustride, uorder int32, v1, v2 float32, vstride, vorder int32, points []float32) {
+ C.gl1_4_glMap2f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(ustride), C.GLint(uorder), C.GLfloat(v1), C.GLfloat(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2d.xml
+func (gl *GL) Map2d(target glbase.Enum, u1, u2 float64, ustride, uorder int32, v1, v2 float64, vstride, vorder int32, points []float64) {
+ C.gl1_4_glMap2d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(ustride), C.GLint(uorder), C.GLdouble(v1), C.GLdouble(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1f.xml
+func (gl *GL) Map1f(target glbase.Enum, u1, u2 float32, stride, order int, points []float32) {
+ C.gl1_4_glMap1f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(stride), C.GLint(order), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1d.xml
+func (gl *GL) Map1d(target glbase.Enum, u1, u2 float64, stride, order int, points []float64) {
+ C.gl1_4_glMap1d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(stride), C.GLint(order), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushAttrib.xml
+func (gl *GL) PushAttrib(mask glbase.Bitfield) {
+ C.gl1_4_glPushAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopAttrib.xml
+func (gl *GL) PopAttrib() {
+ C.gl1_4_glPopAttrib(gl.funcs)
+}
+
+// Accum executes an operation on the accumulation buffer.
+//
+// Parameter op defines the accumulation buffer operation (GL.ACCUM, GL.LOAD,
+// GL.ADD, GL.MULT, or GL.RETURN) and specifies how the value parameter is
+// used.
+//
+// The accumulation buffer is an extended-range color buffer. Images are not
+// rendered into it. Rather, images rendered into one of the color buffers
+// are added to the contents of the accumulation buffer after rendering.
+// Effects such as antialiasing (of points, lines, and polygons), motion
+// blur, and depth of field can be created by accumulating images generated
+// with different transformation matrices.
+//
+// Each pixel in the accumulation buffer consists of red, green, blue, and
+// alpha values. The number of bits per component in the accumulation buffer
+// depends on the implementation. You can examine this number by calling
+// GetIntegerv four times, with arguments GL.ACCUM_RED_BITS,
+// GL.ACCUM_GREEN_BITS, GL.ACCUM_BLUE_BITS, and GL.ACCUM_ALPHA_BITS.
+// Regardless of the number of bits per component, the range of values stored
+// by each component is (-1, 1). The accumulation buffer pixels are mapped
+// one-to-one with frame buffer pixels.
+//
+// All accumulation buffer operations are limited to the area of the current
+// scissor box and applied identically to the red, green, blue, and alpha
+// components of each pixel. If a Accum operation results in a value outside
+// the range (-1, 1), the contents of an accumulation buffer pixel component
+// are undefined.
+//
+// The operations are as follows:
+//
+// GL.ACCUM
+// Obtains R, G, B, and A values from the buffer currently selected for
+// reading (see ReadBuffer). Each component value is divided by 2 n -
+// 1 , where n is the number of bits allocated to each color component
+// in the currently selected buffer. The result is a floating-point
+// value in the range 0 1 , which is multiplied by value and added to
+// the corresponding pixel component in the accumulation buffer,
+// thereby updating the accumulation buffer.
+//
+// GL.LOAD
+// Similar to GL.ACCUM, except that the current value in the
+// accumulation buffer is not used in the calculation of the new value.
+// That is, the R, G, B, and A values from the currently selected
+// buffer are divided by 2 n - 1 , multiplied by value, and then stored
+// in the corresponding accumulation buffer cell, overwriting the
+// current value.
+//
+// GL.ADD
+// Adds value to each R, G, B, and A in the accumulation buffer.
+//
+// GL.MULT
+// Multiplies each R, G, B, and A in the accumulation buffer by value
+// and returns the scaled component to its corresponding accumulation
+// buffer location.
+//
+// GL.RETURN
+// Transfers accumulation buffer values to the color buffer or buffers
+// currently selected for writing. Each R, G, B, and A component is
+// multiplied by value, then multiplied by 2 n - 1 , clamped to the
+// range 0 2 n - 1 , and stored in the corresponding display buffer
+// cell. The only fragment operations that are applied to this transfer
+// are pixel ownership, scissor, dithering, and color writemasks.
+//
+// To clear the accumulation buffer, call ClearAccum with R, G, B, and A
+// values to set it to, then call Clear with the accumulation buffer
+// enabled.
+//
+// Error GL.INVALID_ENUM is generated if op is not an accepted value.
+// GL.INVALID_OPERATION is generated if there is no accumulation buffer.
+// GL.INVALID_OPERATION is generated if Accum is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) Accum(op glbase.Enum, value float32) {
+ C.gl1_4_glAccum(gl.funcs, C.GLenum(op), C.GLfloat(value))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexMask.xml
+func (gl *GL) IndexMask(mask uint32) {
+ C.gl1_4_glIndexMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearIndex.xml
+func (gl *GL) ClearIndex(c float32) {
+ C.gl1_4_glClearIndex(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearAccum.xml
+func (gl *GL) ClearAccum(red, green, blue, alpha float32) {
+ C.gl1_4_glClearAccum(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushName.xml
+func (gl *GL) PushName(name uint32) {
+ C.gl1_4_glPushName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopName.xml
+func (gl *GL) PopName() {
+ C.gl1_4_glPopName(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPassThrough.xml
+func (gl *GL) PassThrough(token float32) {
+ C.gl1_4_glPassThrough(gl.funcs, C.GLfloat(token))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadName.xml
+func (gl *GL) LoadName(name uint32) {
+ C.gl1_4_glLoadName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInitNames.xml
+func (gl *GL) InitNames() {
+ C.gl1_4_glInitNames(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRenderMode.xml
+func (gl *GL) RenderMode(mode glbase.Enum) int32 {
+ glresult := C.gl1_4_glRenderMode(gl.funcs, C.GLenum(mode))
+ return int32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSelectBuffer.xml
+func (gl *GL) SelectBuffer(size int, buffer []glbase.Buffer) {
+ C.gl1_4_glSelectBuffer(gl.funcs, C.GLsizei(size), (*C.GLuint)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFeedbackBuffer.xml
+func (gl *GL) FeedbackBuffer(size int, gltype glbase.Enum, buffer []float32) {
+ C.gl1_4_glFeedbackBuffer(gl.funcs, C.GLsizei(size), C.GLenum(gltype), (*C.GLfloat)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeniv.xml
+func (gl *GL) TexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl1_4_glTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeni.xml
+func (gl *GL) TexGeni(coord, pname glbase.Enum, param int32) {
+ C.gl1_4_glTexGeni(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenfv.xml
+func (gl *GL) TexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl1_4_glTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenf.xml
+func (gl *GL) TexGenf(coord, pname glbase.Enum, param float32) {
+ C.gl1_4_glTexGenf(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGendv.xml
+func (gl *GL) TexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl1_4_glTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGend.xml
+func (gl *GL) TexGend(coord, pname glbase.Enum, param float64) {
+ C.gl1_4_glTexGend(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLdouble(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnviv.xml
+func (gl *GL) TexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl1_4_glTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvi.xml
+func (gl *GL) TexEnvi(target, pname glbase.Enum, param int32) {
+ C.gl1_4_glTexEnvi(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvfv.xml
+func (gl *GL) TexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_4_glTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvf.xml
+func (gl *GL) TexEnvf(target, pname glbase.Enum, param float32) {
+ C.gl1_4_glTexEnvf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glShadeModel.xml
+func (gl *GL) ShadeModel(mode glbase.Enum) {
+ C.gl1_4_glShadeModel(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonStipple.xml
+func (gl *GL) PolygonStipple(mask []uint8) {
+ C.gl1_4_glPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialiv.xml
+func (gl *GL) Materialiv(face, pname glbase.Enum, params []int32) {
+ C.gl1_4_glMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMateriali.xml
+func (gl *GL) Materiali(face, pname glbase.Enum, param int32) {
+ C.gl1_4_glMateriali(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialfv.xml
+func (gl *GL) Materialfv(face, pname glbase.Enum, params []float32) {
+ C.gl1_4_glMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialf.xml
+func (gl *GL) Materialf(face, pname glbase.Enum, param float32) {
+ C.gl1_4_glMaterialf(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineStipple.xml
+func (gl *GL) LineStipple(factor int32, pattern uint16) {
+ C.gl1_4_glLineStipple(gl.funcs, C.GLint(factor), C.GLushort(pattern))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeliv.xml
+func (gl *GL) LightModeliv(pname glbase.Enum, params []int32) {
+ C.gl1_4_glLightModeliv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeli.xml
+func (gl *GL) LightModeli(pname glbase.Enum, param int32) {
+ C.gl1_4_glLightModeli(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelfv.xml
+func (gl *GL) LightModelfv(pname glbase.Enum, params []float32) {
+ C.gl1_4_glLightModelfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelf.xml
+func (gl *GL) LightModelf(pname glbase.Enum, param float32) {
+ C.gl1_4_glLightModelf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightiv.xml
+func (gl *GL) Lightiv(light, pname glbase.Enum, params []int32) {
+ C.gl1_4_glLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLighti.xml
+func (gl *GL) Lighti(light, pname glbase.Enum, param int32) {
+ C.gl1_4_glLighti(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightfv.xml
+func (gl *GL) Lightfv(light, pname glbase.Enum, params []float32) {
+ C.gl1_4_glLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightf.xml
+func (gl *GL) Lightf(light, pname glbase.Enum, param float32) {
+ C.gl1_4_glLightf(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogiv.xml
+func (gl *GL) Fogiv(pname glbase.Enum, params []int32) {
+ C.gl1_4_glFogiv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogi.xml
+func (gl *GL) Fogi(pname glbase.Enum, param int32) {
+ C.gl1_4_glFogi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogfv.xml
+func (gl *GL) Fogfv(pname glbase.Enum, params []float32) {
+ C.gl1_4_glFogfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogf.xml
+func (gl *GL) Fogf(pname glbase.Enum, param float32) {
+ C.gl1_4_glFogf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMaterial.xml
+func (gl *GL) ColorMaterial(face, mode glbase.Enum) {
+ C.gl1_4_glColorMaterial(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClipPlane.xml
+func (gl *GL) ClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl1_4_glClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4sv.xml
+func (gl *GL) Vertex4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glVertex4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4s.xml
+func (gl *GL) Vertex4s(x, y, z, w int16) {
+ C.gl1_4_glVertex4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4iv.xml
+func (gl *GL) Vertex4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glVertex4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4i.xml
+func (gl *GL) Vertex4i(x, y, z, w int) {
+ C.gl1_4_glVertex4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4fv.xml
+func (gl *GL) Vertex4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glVertex4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4f.xml
+func (gl *GL) Vertex4f(x, y, z, w float32) {
+ C.gl1_4_glVertex4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4dv.xml
+func (gl *GL) Vertex4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glVertex4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4d.xml
+func (gl *GL) Vertex4d(x, y, z, w float64) {
+ C.gl1_4_glVertex4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3sv.xml
+func (gl *GL) Vertex3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glVertex3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3s.xml
+func (gl *GL) Vertex3s(x, y, z int16) {
+ C.gl1_4_glVertex3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3iv.xml
+func (gl *GL) Vertex3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glVertex3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3i.xml
+func (gl *GL) Vertex3i(x, y, z int) {
+ C.gl1_4_glVertex3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3fv.xml
+func (gl *GL) Vertex3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glVertex3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3f.xml
+func (gl *GL) Vertex3f(x, y, z float32) {
+ C.gl1_4_glVertex3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3dv.xml
+func (gl *GL) Vertex3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glVertex3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3d.xml
+func (gl *GL) Vertex3d(x, y, z float64) {
+ C.gl1_4_glVertex3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2sv.xml
+func (gl *GL) Vertex2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glVertex2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2s.xml
+func (gl *GL) Vertex2s(x, y int16) {
+ C.gl1_4_glVertex2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2iv.xml
+func (gl *GL) Vertex2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glVertex2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2i.xml
+func (gl *GL) Vertex2i(x, y int) {
+ C.gl1_4_glVertex2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2fv.xml
+func (gl *GL) Vertex2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glVertex2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2f.xml
+func (gl *GL) Vertex2f(x, y float32) {
+ C.gl1_4_glVertex2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2dv.xml
+func (gl *GL) Vertex2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glVertex2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2d.xml
+func (gl *GL) Vertex2d(x, y float64) {
+ C.gl1_4_glVertex2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4sv.xml
+func (gl *GL) TexCoord4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glTexCoord4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4s.xml
+func (gl *GL) TexCoord4s(s, t, r, q int16) {
+ C.gl1_4_glTexCoord4s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4iv.xml
+func (gl *GL) TexCoord4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glTexCoord4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4i.xml
+func (gl *GL) TexCoord4i(s, t, r, q int32) {
+ C.gl1_4_glTexCoord4i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4fv.xml
+func (gl *GL) TexCoord4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glTexCoord4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4f.xml
+func (gl *GL) TexCoord4f(s, t, r, q float32) {
+ C.gl1_4_glTexCoord4f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4dv.xml
+func (gl *GL) TexCoord4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glTexCoord4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4d.xml
+func (gl *GL) TexCoord4d(s, t, r, q float64) {
+ C.gl1_4_glTexCoord4d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3sv.xml
+func (gl *GL) TexCoord3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glTexCoord3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3s.xml
+func (gl *GL) TexCoord3s(s, t, r int16) {
+ C.gl1_4_glTexCoord3s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3iv.xml
+func (gl *GL) TexCoord3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glTexCoord3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3i.xml
+func (gl *GL) TexCoord3i(s, t, r int32) {
+ C.gl1_4_glTexCoord3i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3fv.xml
+func (gl *GL) TexCoord3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glTexCoord3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3f.xml
+func (gl *GL) TexCoord3f(s, t, r float32) {
+ C.gl1_4_glTexCoord3f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3dv.xml
+func (gl *GL) TexCoord3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glTexCoord3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3d.xml
+func (gl *GL) TexCoord3d(s, t, r float64) {
+ C.gl1_4_glTexCoord3d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2sv.xml
+func (gl *GL) TexCoord2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glTexCoord2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2s.xml
+func (gl *GL) TexCoord2s(s, t int16) {
+ C.gl1_4_glTexCoord2s(gl.funcs, C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2iv.xml
+func (gl *GL) TexCoord2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glTexCoord2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2i.xml
+func (gl *GL) TexCoord2i(s, t int32) {
+ C.gl1_4_glTexCoord2i(gl.funcs, C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2fv.xml
+func (gl *GL) TexCoord2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glTexCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2f.xml
+func (gl *GL) TexCoord2f(s, t float32) {
+ C.gl1_4_glTexCoord2f(gl.funcs, C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2dv.xml
+func (gl *GL) TexCoord2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glTexCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2d.xml
+func (gl *GL) TexCoord2d(s, t float64) {
+ C.gl1_4_glTexCoord2d(gl.funcs, C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1sv.xml
+func (gl *GL) TexCoord1sv(v []int16) {
+ C.gl1_4_glTexCoord1sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1s.xml
+func (gl *GL) TexCoord1s(s int16) {
+ C.gl1_4_glTexCoord1s(gl.funcs, C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1iv.xml
+func (gl *GL) TexCoord1iv(v []int32) {
+ C.gl1_4_glTexCoord1iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1i.xml
+func (gl *GL) TexCoord1i(s int32) {
+ C.gl1_4_glTexCoord1i(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1fv.xml
+func (gl *GL) TexCoord1fv(v []float32) {
+ C.gl1_4_glTexCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1f.xml
+func (gl *GL) TexCoord1f(s float32) {
+ C.gl1_4_glTexCoord1f(gl.funcs, C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1dv.xml
+func (gl *GL) TexCoord1dv(v []float64) {
+ C.gl1_4_glTexCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1d.xml
+func (gl *GL) TexCoord1d(s float64) {
+ C.gl1_4_glTexCoord1d(gl.funcs, C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectsv.xml
+func (gl *GL) Rectsv(v1, v2 []int16) {
+ C.gl1_4_glRectsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v1[0])), (*C.GLshort)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRects.xml
+func (gl *GL) Rects(x1, y1, x2, y2 int16) {
+ C.gl1_4_glRects(gl.funcs, C.GLshort(x1), C.GLshort(y1), C.GLshort(x2), C.GLshort(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectiv.xml
+func (gl *GL) Rectiv(v1, v2 []int32) {
+ C.gl1_4_glRectiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v1[0])), (*C.GLint)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRecti.xml
+func (gl *GL) Recti(x1, y1, x2, y2 int32) {
+ C.gl1_4_glRecti(gl.funcs, C.GLint(x1), C.GLint(y1), C.GLint(x2), C.GLint(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectfv.xml
+func (gl *GL) Rectfv(v1, v2 []float32) {
+ C.gl1_4_glRectfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v1[0])), (*C.GLfloat)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectf.xml
+func (gl *GL) Rectf(x1, y1, x2, y2 float32) {
+ C.gl1_4_glRectf(gl.funcs, C.GLfloat(x1), C.GLfloat(y1), C.GLfloat(x2), C.GLfloat(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectdv.xml
+func (gl *GL) Rectdv(v1, v2 []float64) {
+ C.gl1_4_glRectdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v1[0])), (*C.GLdouble)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectd.xml
+func (gl *GL) Rectd(x1, y1, x2, y2 float64) {
+ C.gl1_4_glRectd(gl.funcs, C.GLdouble(x1), C.GLdouble(y1), C.GLdouble(x2), C.GLdouble(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4sv.xml
+func (gl *GL) RasterPos4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glRasterPos4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4s.xml
+func (gl *GL) RasterPos4s(x, y, z, w int16) {
+ C.gl1_4_glRasterPos4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4iv.xml
+func (gl *GL) RasterPos4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glRasterPos4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4i.xml
+func (gl *GL) RasterPos4i(x, y, z, w int) {
+ C.gl1_4_glRasterPos4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4fv.xml
+func (gl *GL) RasterPos4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glRasterPos4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4f.xml
+func (gl *GL) RasterPos4f(x, y, z, w float32) {
+ C.gl1_4_glRasterPos4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4dv.xml
+func (gl *GL) RasterPos4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glRasterPos4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4d.xml
+func (gl *GL) RasterPos4d(x, y, z, w float64) {
+ C.gl1_4_glRasterPos4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3sv.xml
+func (gl *GL) RasterPos3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glRasterPos3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3s.xml
+func (gl *GL) RasterPos3s(x, y, z int16) {
+ C.gl1_4_glRasterPos3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3iv.xml
+func (gl *GL) RasterPos3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glRasterPos3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3i.xml
+func (gl *GL) RasterPos3i(x, y, z int) {
+ C.gl1_4_glRasterPos3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3fv.xml
+func (gl *GL) RasterPos3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glRasterPos3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3f.xml
+func (gl *GL) RasterPos3f(x, y, z float32) {
+ C.gl1_4_glRasterPos3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3dv.xml
+func (gl *GL) RasterPos3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glRasterPos3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3d.xml
+func (gl *GL) RasterPos3d(x, y, z float64) {
+ C.gl1_4_glRasterPos3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2sv.xml
+func (gl *GL) RasterPos2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glRasterPos2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2s.xml
+func (gl *GL) RasterPos2s(x, y int16) {
+ C.gl1_4_glRasterPos2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2iv.xml
+func (gl *GL) RasterPos2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glRasterPos2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2i.xml
+func (gl *GL) RasterPos2i(x, y int) {
+ C.gl1_4_glRasterPos2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2fv.xml
+func (gl *GL) RasterPos2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glRasterPos2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2f.xml
+func (gl *GL) RasterPos2f(x, y float32) {
+ C.gl1_4_glRasterPos2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2dv.xml
+func (gl *GL) RasterPos2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glRasterPos2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2d.xml
+func (gl *GL) RasterPos2d(x, y float64) {
+ C.gl1_4_glRasterPos2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3sv.xml
+func (gl *GL) Normal3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glNormal3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3s.xml
+func (gl *GL) Normal3s(nx, ny, nz int16) {
+ C.gl1_4_glNormal3s(gl.funcs, C.GLshort(nx), C.GLshort(ny), C.GLshort(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3iv.xml
+func (gl *GL) Normal3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glNormal3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3i.xml
+func (gl *GL) Normal3i(nx, ny, nz int32) {
+ C.gl1_4_glNormal3i(gl.funcs, C.GLint(nx), C.GLint(ny), C.GLint(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3fv.xml
+func (gl *GL) Normal3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glNormal3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3f.xml
+func (gl *GL) Normal3f(nx, ny, nz float32) {
+ C.gl1_4_glNormal3f(gl.funcs, C.GLfloat(nx), C.GLfloat(ny), C.GLfloat(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3dv.xml
+func (gl *GL) Normal3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glNormal3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3d.xml
+func (gl *GL) Normal3d(nx, ny, nz float64) {
+ C.gl1_4_glNormal3d(gl.funcs, C.GLdouble(nx), C.GLdouble(ny), C.GLdouble(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3bv.xml
+func (gl *GL) Normal3bv(v []byte) {
+ C.gl1_4_glNormal3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3b.xml
+func (gl *GL) Normal3b(nx, ny, nz byte) {
+ C.gl1_4_glNormal3b(gl.funcs, C.GLbyte(nx), C.GLbyte(ny), C.GLbyte(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexsv.xml
+func (gl *GL) Indexsv(c []int16) {
+ C.gl1_4_glIndexsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexs.xml
+func (gl *GL) Indexs(c int16) {
+ C.gl1_4_glIndexs(gl.funcs, C.GLshort(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexiv.xml
+func (gl *GL) Indexiv(c []int32) {
+ C.gl1_4_glIndexiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexi.xml
+func (gl *GL) Indexi(c int32) {
+ C.gl1_4_glIndexi(gl.funcs, C.GLint(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexfv.xml
+func (gl *GL) Indexfv(c []float32) {
+ C.gl1_4_glIndexfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexf.xml
+func (gl *GL) Indexf(c float32) {
+ C.gl1_4_glIndexf(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexdv.xml
+func (gl *GL) Indexdv(c []float64) {
+ C.gl1_4_glIndexdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexd.xml
+func (gl *GL) Indexd(c float64) {
+ C.gl1_4_glIndexd(gl.funcs, C.GLdouble(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnd.xml
+func (gl *GL) End() {
+ C.gl1_4_glEnd(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagv.xml
+func (gl *GL) EdgeFlagv(flag []bool) {
+ C.gl1_4_glEdgeFlagv(gl.funcs, (*C.GLboolean)(unsafe.Pointer(&flag[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlag.xml
+func (gl *GL) EdgeFlag(flag bool) {
+ C.gl1_4_glEdgeFlag(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4usv.xml
+func (gl *GL) Color4usv(v []uint16) {
+ C.gl1_4_glColor4usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4us.xml
+func (gl *GL) Color4us(red, green, blue, alpha uint16) {
+ C.gl1_4_glColor4us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue), C.GLushort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4uiv.xml
+func (gl *GL) Color4uiv(v []uint32) {
+ C.gl1_4_glColor4uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ui.xml
+func (gl *GL) Color4ui(red, green, blue, alpha uint32) {
+ C.gl1_4_glColor4ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue), C.GLuint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ubv.xml
+func (gl *GL) Color4ubv(v []uint8) {
+ C.gl1_4_glColor4ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ub.xml
+func (gl *GL) Color4ub(red, green, blue, alpha uint8) {
+ C.gl1_4_glColor4ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue), C.GLubyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4sv.xml
+func (gl *GL) Color4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glColor4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4s.xml
+func (gl *GL) Color4s(red, green, blue, alpha int16) {
+ C.gl1_4_glColor4s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue), C.GLshort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4iv.xml
+func (gl *GL) Color4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glColor4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4i.xml
+func (gl *GL) Color4i(red, green, blue, alpha int32) {
+ C.gl1_4_glColor4i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue), C.GLint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4fv.xml
+func (gl *GL) Color4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glColor4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4f.xml
+func (gl *GL) Color4f(red, green, blue, alpha float32) {
+ C.gl1_4_glColor4f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4dv.xml
+func (gl *GL) Color4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glColor4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4d.xml
+func (gl *GL) Color4d(red, green, blue, alpha float64) {
+ C.gl1_4_glColor4d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue), C.GLdouble(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4bv.xml
+func (gl *GL) Color4bv(v []byte) {
+ C.gl1_4_glColor4bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4b.xml
+func (gl *GL) Color4b(red, green, blue, alpha byte) {
+ C.gl1_4_glColor4b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue), C.GLbyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3usv.xml
+func (gl *GL) Color3usv(v []uint16) {
+ C.gl1_4_glColor3usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3us.xml
+func (gl *GL) Color3us(red, green, blue uint16) {
+ C.gl1_4_glColor3us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3uiv.xml
+func (gl *GL) Color3uiv(v []uint32) {
+ C.gl1_4_glColor3uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ui.xml
+func (gl *GL) Color3ui(red, green, blue uint32) {
+ C.gl1_4_glColor3ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ubv.xml
+func (gl *GL) Color3ubv(v []uint8) {
+ C.gl1_4_glColor3ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ub.xml
+func (gl *GL) Color3ub(red, green, blue uint8) {
+ C.gl1_4_glColor3ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3sv.xml
+func (gl *GL) Color3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glColor3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3s.xml
+func (gl *GL) Color3s(red, green, blue int16) {
+ C.gl1_4_glColor3s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3iv.xml
+func (gl *GL) Color3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glColor3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3i.xml
+func (gl *GL) Color3i(red, green, blue int32) {
+ C.gl1_4_glColor3i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3fv.xml
+func (gl *GL) Color3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glColor3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3f.xml
+func (gl *GL) Color3f(red, green, blue float32) {
+ C.gl1_4_glColor3f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3dv.xml
+func (gl *GL) Color3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glColor3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3d.xml
+func (gl *GL) Color3d(red, green, blue float64) {
+ C.gl1_4_glColor3d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3bv.xml
+func (gl *GL) Color3bv(v []byte) {
+ C.gl1_4_glColor3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3b.xml
+func (gl *GL) Color3b(red, green, blue byte) {
+ C.gl1_4_glColor3b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBitmap.xml
+func (gl *GL) Bitmap(width, height int, xorig, yorig, xmove, ymove float32, bitmap []uint8) {
+ C.gl1_4_glBitmap(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLfloat(xorig), C.GLfloat(yorig), C.GLfloat(xmove), C.GLfloat(ymove), (*C.GLubyte)(unsafe.Pointer(&bitmap[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBegin.xml
+func (gl *GL) Begin(mode glbase.Enum) {
+ C.gl1_4_glBegin(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glListBase.xml
+func (gl *GL) ListBase(base uint32) {
+ C.gl1_4_glListBase(gl.funcs, C.GLuint(base))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGenLists.xml
+func (gl *GL) GenLists(range_ int32) uint32 {
+ glresult := C.gl1_4_glGenLists(gl.funcs, C.GLsizei(range_))
+ return uint32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDeleteLists.xml
+func (gl *GL) DeleteLists(list uint32, range_ int32) {
+ C.gl1_4_glDeleteLists(gl.funcs, C.GLuint(list), C.GLsizei(range_))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallLists.xml
+func (gl *GL) CallLists(n int, gltype glbase.Enum, lists interface{}) {
+ var lists_ptr unsafe.Pointer
+ var lists_v = reflect.ValueOf(lists)
+ if lists != nil && lists_v.Kind() != reflect.Slice {
+ panic("parameter lists must be a slice")
+ }
+ if lists != nil {
+ lists_ptr = unsafe.Pointer(lists_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glCallLists(gl.funcs, C.GLsizei(n), C.GLenum(gltype), lists_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallList.xml
+func (gl *GL) CallList(list uint32) {
+ C.gl1_4_glCallList(gl.funcs, C.GLuint(list))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEndList.xml
+func (gl *GL) EndList() {
+ C.gl1_4_glEndList(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNewList.xml
+func (gl *GL) NewList(list uint32, mode glbase.Enum) {
+ C.gl1_4_glNewList(gl.funcs, C.GLuint(list), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushClientAttrib.xml
+func (gl *GL) PushClientAttrib(mask glbase.Bitfield) {
+ C.gl1_4_glPushClientAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopClientAttrib.xml
+func (gl *GL) PopClientAttrib() {
+ C.gl1_4_glPopClientAttrib(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPrioritizeTextures.xml
+func (gl *GL) PrioritizeTextures(n int, textures []glbase.Texture, priorities []float32) {
+ C.gl1_4_glPrioritizeTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLfloat)(unsafe.Pointer(&priorities[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAreTexturesResident.xml
+func (gl *GL) AreTexturesResident(n int, textures []glbase.Texture, residences []bool) bool {
+ glresult := C.gl1_4_glAreTexturesResident(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLboolean)(unsafe.Pointer(&residences[0])))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexPointer.xml
+func (gl *GL) VertexPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glVertexPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoordPointer.xml
+func (gl *GL) TexCoordPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glTexCoordPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormalPointer.xml
+func (gl *GL) NormalPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glNormalPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInterleavedArrays.xml
+func (gl *GL) InterleavedArrays(format glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glInterleavedArrays(gl.funcs, C.GLenum(format), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexPointer.xml
+func (gl *GL) IndexPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glIndexPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnableClientState.xml
+func (gl *GL) EnableClientState(array glbase.Enum) {
+ C.gl1_4_glEnableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagPointer.xml
+func (gl *GL) EdgeFlagPointer(stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glEdgeFlagPointer(gl.funcs, C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisableClientState.xml
+func (gl *GL) DisableClientState(array glbase.Enum) {
+ C.gl1_4_glDisableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorPointer.xml
+func (gl *GL) ColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glColorPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glArrayElement.xml
+func (gl *GL) ArrayElement(i int32) {
+ C.gl1_4_glArrayElement(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glResetMinmax.xml
+func (gl *GL) ResetMinmax(target glbase.Enum) {
+ C.gl1_4_glResetMinmax(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glResetHistogram.xml
+func (gl *GL) ResetHistogram(target glbase.Enum) {
+ C.gl1_4_glResetHistogram(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMinmax.xml
+func (gl *GL) Minmax(target, internalFormat glbase.Enum, sink bool) {
+ C.gl1_4_glMinmax(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), *(*C.GLboolean)(unsafe.Pointer(&sink)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glHistogram.xml
+func (gl *GL) Histogram(target glbase.Enum, width int, internalFormat glbase.Enum, sink bool) {
+ C.gl1_4_glHistogram(gl.funcs, C.GLenum(target), C.GLsizei(width), C.GLenum(internalFormat), *(*C.GLboolean)(unsafe.Pointer(&sink)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmaxParameteriv.xml
+func (gl *GL) GetMinmaxParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_4_glGetMinmaxParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmaxParameterfv.xml
+func (gl *GL) GetMinmaxParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_4_glGetMinmaxParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmax.xml
+func (gl *GL) GetMinmax(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{}) {
+ var values_ptr unsafe.Pointer
+ var values_v = reflect.ValueOf(values)
+ if values != nil && values_v.Kind() != reflect.Slice {
+ panic("parameter values must be a slice")
+ }
+ if values != nil {
+ values_ptr = unsafe.Pointer(values_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glGetMinmax(gl.funcs, C.GLenum(target), *(*C.GLboolean)(unsafe.Pointer(&reset)), C.GLenum(format), C.GLenum(gltype), values_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogramParameteriv.xml
+func (gl *GL) GetHistogramParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_4_glGetHistogramParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogramParameterfv.xml
+func (gl *GL) GetHistogramParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_4_glGetHistogramParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogram.xml
+func (gl *GL) GetHistogram(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{}) {
+ var values_ptr unsafe.Pointer
+ var values_v = reflect.ValueOf(values)
+ if values != nil && values_v.Kind() != reflect.Slice {
+ panic("parameter values must be a slice")
+ }
+ if values != nil {
+ values_ptr = unsafe.Pointer(values_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glGetHistogram(gl.funcs, C.GLenum(target), *(*C.GLboolean)(unsafe.Pointer(&reset)), C.GLenum(format), C.GLenum(gltype), values_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSeparableFilter2D.xml
+func (gl *GL) SeparableFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, row, column interface{}) {
+ var row_ptr unsafe.Pointer
+ var row_v = reflect.ValueOf(row)
+ if row != nil && row_v.Kind() != reflect.Slice {
+ panic("parameter row must be a slice")
+ }
+ if row != nil {
+ row_ptr = unsafe.Pointer(row_v.Index(0).Addr().Pointer())
+ }
+ var column_ptr unsafe.Pointer
+ var column_v = reflect.ValueOf(column)
+ if column != nil && column_v.Kind() != reflect.Slice {
+ panic("parameter column must be a slice")
+ }
+ if column != nil {
+ column_ptr = unsafe.Pointer(column_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glSeparableFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), row_ptr, column_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetSeparableFilter.xml
+func (gl *GL) GetSeparableFilter(target, format, gltype glbase.Enum, row, column, span interface{}) {
+ var row_ptr unsafe.Pointer
+ var row_v = reflect.ValueOf(row)
+ if row != nil && row_v.Kind() != reflect.Slice {
+ panic("parameter row must be a slice")
+ }
+ if row != nil {
+ row_ptr = unsafe.Pointer(row_v.Index(0).Addr().Pointer())
+ }
+ var column_ptr unsafe.Pointer
+ var column_v = reflect.ValueOf(column)
+ if column != nil && column_v.Kind() != reflect.Slice {
+ panic("parameter column must be a slice")
+ }
+ if column != nil {
+ column_ptr = unsafe.Pointer(column_v.Index(0).Addr().Pointer())
+ }
+ var span_ptr unsafe.Pointer
+ var span_v = reflect.ValueOf(span)
+ if span != nil && span_v.Kind() != reflect.Slice {
+ panic("parameter span must be a slice")
+ }
+ if span != nil {
+ span_ptr = unsafe.Pointer(span_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glGetSeparableFilter(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), row_ptr, column_ptr, span_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionParameteriv.xml
+func (gl *GL) GetConvolutionParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_4_glGetConvolutionParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionParameterfv.xml
+func (gl *GL) GetConvolutionParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_4_glGetConvolutionParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionFilter.xml
+func (gl *GL) GetConvolutionFilter(target, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glGetConvolutionFilter(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyConvolutionFilter2D.xml
+func (gl *GL) CopyConvolutionFilter2D(target, internalFormat glbase.Enum, x, y, width, height int) {
+ C.gl1_4_glCopyConvolutionFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyConvolutionFilter1D.xml
+func (gl *GL) CopyConvolutionFilter1D(target, internalFormat glbase.Enum, x, y, width int) {
+ C.gl1_4_glCopyConvolutionFilter1D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameteriv.xml
+func (gl *GL) ConvolutionParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_4_glConvolutionParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameteri.xml
+func (gl *GL) ConvolutionParameteri(target, pname glbase.Enum, params int32) {
+ C.gl1_4_glConvolutionParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(params))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameterfv.xml
+func (gl *GL) ConvolutionParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_4_glConvolutionParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameterf.xml
+func (gl *GL) ConvolutionParameterf(target, pname glbase.Enum, params float32) {
+ C.gl1_4_glConvolutionParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(params))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionFilter2D.xml
+func (gl *GL) ConvolutionFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glConvolutionFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionFilter1D.xml
+func (gl *GL) ConvolutionFilter1D(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glConvolutionFilter1D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyColorSubTable.xml
+func (gl *GL) CopyColorSubTable(target glbase.Enum, start int32, x, y, width int) {
+ C.gl1_4_glCopyColorSubTable(gl.funcs, C.GLenum(target), C.GLsizei(start), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorSubTable.xml
+func (gl *GL) ColorSubTable(target glbase.Enum, start int32, count int, format, gltype glbase.Enum, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glColorSubTable(gl.funcs, C.GLenum(target), C.GLsizei(start), C.GLsizei(count), C.GLenum(format), C.GLenum(gltype), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTableParameteriv.xml
+func (gl *GL) GetColorTableParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_4_glGetColorTableParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTableParameterfv.xml
+func (gl *GL) GetColorTableParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_4_glGetColorTableParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTable.xml
+func (gl *GL) GetColorTable(target, format, gltype glbase.Enum, table interface{}) {
+ var table_ptr unsafe.Pointer
+ var table_v = reflect.ValueOf(table)
+ if table != nil && table_v.Kind() != reflect.Slice {
+ panic("parameter table must be a slice")
+ }
+ if table != nil {
+ table_ptr = unsafe.Pointer(table_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glGetColorTable(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), table_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyColorTable.xml
+func (gl *GL) CopyColorTable(target, internalFormat glbase.Enum, x, y, width int) {
+ C.gl1_4_glCopyColorTable(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTableParameteriv.xml
+func (gl *GL) ColorTableParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_4_glColorTableParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTableParameterfv.xml
+func (gl *GL) ColorTableParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_4_glColorTableParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTable.xml
+func (gl *GL) ColorTable(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, table interface{}) {
+ var table_ptr unsafe.Pointer
+ var table_v = reflect.ValueOf(table)
+ if table != nil && table_v.Kind() != reflect.Slice {
+ panic("parameter table must be a slice")
+ }
+ if table != nil {
+ table_ptr = unsafe.Pointer(table_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glColorTable(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), table_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultTransposeMatrixd.xml
+func (gl *GL) MultTransposeMatrixd(m []float64) {
+ C.gl1_4_glMultTransposeMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultTransposeMatrixf.xml
+func (gl *GL) MultTransposeMatrixf(m []float32) {
+ C.gl1_4_glMultTransposeMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadTransposeMatrixd.xml
+func (gl *GL) LoadTransposeMatrixd(m []float64) {
+ C.gl1_4_glLoadTransposeMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadTransposeMatrixf.xml
+func (gl *GL) LoadTransposeMatrixf(m []float32) {
+ C.gl1_4_glLoadTransposeMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4sv.xml
+func (gl *GL) MultiTexCoord4sv(target glbase.Enum, v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glMultiTexCoord4sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4s.xml
+func (gl *GL) MultiTexCoord4s(target glbase.Enum, s, t, r, q int16) {
+ C.gl1_4_glMultiTexCoord4s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4iv.xml
+func (gl *GL) MultiTexCoord4iv(target glbase.Enum, v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glMultiTexCoord4iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4i.xml
+func (gl *GL) MultiTexCoord4i(target glbase.Enum, s, t, r, q int32) {
+ C.gl1_4_glMultiTexCoord4i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4fv.xml
+func (gl *GL) MultiTexCoord4fv(target glbase.Enum, v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glMultiTexCoord4fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4f.xml
+func (gl *GL) MultiTexCoord4f(target glbase.Enum, s, t, r, q float32) {
+ C.gl1_4_glMultiTexCoord4f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4dv.xml
+func (gl *GL) MultiTexCoord4dv(target glbase.Enum, v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glMultiTexCoord4dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4d.xml
+func (gl *GL) MultiTexCoord4d(target glbase.Enum, s, t, r, q float64) {
+ C.gl1_4_glMultiTexCoord4d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3sv.xml
+func (gl *GL) MultiTexCoord3sv(target glbase.Enum, v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glMultiTexCoord3sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3s.xml
+func (gl *GL) MultiTexCoord3s(target glbase.Enum, s, t, r int16) {
+ C.gl1_4_glMultiTexCoord3s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3iv.xml
+func (gl *GL) MultiTexCoord3iv(target glbase.Enum, v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glMultiTexCoord3iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3i.xml
+func (gl *GL) MultiTexCoord3i(target glbase.Enum, s, t, r int32) {
+ C.gl1_4_glMultiTexCoord3i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3fv.xml
+func (gl *GL) MultiTexCoord3fv(target glbase.Enum, v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glMultiTexCoord3fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3f.xml
+func (gl *GL) MultiTexCoord3f(target glbase.Enum, s, t, r float32) {
+ C.gl1_4_glMultiTexCoord3f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3dv.xml
+func (gl *GL) MultiTexCoord3dv(target glbase.Enum, v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glMultiTexCoord3dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3d.xml
+func (gl *GL) MultiTexCoord3d(target glbase.Enum, s, t, r float64) {
+ C.gl1_4_glMultiTexCoord3d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2sv.xml
+func (gl *GL) MultiTexCoord2sv(target glbase.Enum, v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glMultiTexCoord2sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2s.xml
+func (gl *GL) MultiTexCoord2s(target glbase.Enum, s, t int16) {
+ C.gl1_4_glMultiTexCoord2s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2iv.xml
+func (gl *GL) MultiTexCoord2iv(target glbase.Enum, v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glMultiTexCoord2iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2i.xml
+func (gl *GL) MultiTexCoord2i(target glbase.Enum, s, t int32) {
+ C.gl1_4_glMultiTexCoord2i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2fv.xml
+func (gl *GL) MultiTexCoord2fv(target glbase.Enum, v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glMultiTexCoord2fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2f.xml
+func (gl *GL) MultiTexCoord2f(target glbase.Enum, s, t float32) {
+ C.gl1_4_glMultiTexCoord2f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2dv.xml
+func (gl *GL) MultiTexCoord2dv(target glbase.Enum, v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glMultiTexCoord2dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2d.xml
+func (gl *GL) MultiTexCoord2d(target glbase.Enum, s, t float64) {
+ C.gl1_4_glMultiTexCoord2d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1sv.xml
+func (gl *GL) MultiTexCoord1sv(target glbase.Enum, v []int16) {
+ C.gl1_4_glMultiTexCoord1sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1s.xml
+func (gl *GL) MultiTexCoord1s(target glbase.Enum, s int16) {
+ C.gl1_4_glMultiTexCoord1s(gl.funcs, C.GLenum(target), C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1iv.xml
+func (gl *GL) MultiTexCoord1iv(target glbase.Enum, v []int32) {
+ C.gl1_4_glMultiTexCoord1iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1i.xml
+func (gl *GL) MultiTexCoord1i(target glbase.Enum, s int32) {
+ C.gl1_4_glMultiTexCoord1i(gl.funcs, C.GLenum(target), C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1fv.xml
+func (gl *GL) MultiTexCoord1fv(target glbase.Enum, v []float32) {
+ C.gl1_4_glMultiTexCoord1fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1f.xml
+func (gl *GL) MultiTexCoord1f(target glbase.Enum, s float32) {
+ C.gl1_4_glMultiTexCoord1f(gl.funcs, C.GLenum(target), C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1dv.xml
+func (gl *GL) MultiTexCoord1dv(target glbase.Enum, v []float64) {
+ C.gl1_4_glMultiTexCoord1dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1d.xml
+func (gl *GL) MultiTexCoord1d(target glbase.Enum, s float64) {
+ C.gl1_4_glMultiTexCoord1d(gl.funcs, C.GLenum(target), C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClientActiveTexture.xml
+func (gl *GL) ClientActiveTexture(texture glbase.Enum) {
+ C.gl1_4_glClientActiveTexture(gl.funcs, C.GLenum(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3sv.xml
+func (gl *GL) WindowPos3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glWindowPos3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3s.xml
+func (gl *GL) WindowPos3s(x, y, z int16) {
+ C.gl1_4_glWindowPos3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3iv.xml
+func (gl *GL) WindowPos3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glWindowPos3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3i.xml
+func (gl *GL) WindowPos3i(x, y, z int) {
+ C.gl1_4_glWindowPos3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3fv.xml
+func (gl *GL) WindowPos3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glWindowPos3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3f.xml
+func (gl *GL) WindowPos3f(x, y, z float32) {
+ C.gl1_4_glWindowPos3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3dv.xml
+func (gl *GL) WindowPos3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glWindowPos3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3d.xml
+func (gl *GL) WindowPos3d(x, y, z float64) {
+ C.gl1_4_glWindowPos3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2sv.xml
+func (gl *GL) WindowPos2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glWindowPos2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2s.xml
+func (gl *GL) WindowPos2s(x, y int16) {
+ C.gl1_4_glWindowPos2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2iv.xml
+func (gl *GL) WindowPos2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glWindowPos2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2i.xml
+func (gl *GL) WindowPos2i(x, y int) {
+ C.gl1_4_glWindowPos2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2fv.xml
+func (gl *GL) WindowPos2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glWindowPos2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2f.xml
+func (gl *GL) WindowPos2f(x, y float32) {
+ C.gl1_4_glWindowPos2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2dv.xml
+func (gl *GL) WindowPos2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glWindowPos2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2d.xml
+func (gl *GL) WindowPos2d(x, y float64) {
+ C.gl1_4_glWindowPos2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColorPointer.xml
+func (gl *GL) SecondaryColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glSecondaryColorPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3usv.xml
+func (gl *GL) SecondaryColor3usv(v []uint16) {
+ C.gl1_4_glSecondaryColor3usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3us.xml
+func (gl *GL) SecondaryColor3us(red, green, blue uint16) {
+ C.gl1_4_glSecondaryColor3us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3uiv.xml
+func (gl *GL) SecondaryColor3uiv(v []uint32) {
+ C.gl1_4_glSecondaryColor3uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ui.xml
+func (gl *GL) SecondaryColor3ui(red, green, blue uint32) {
+ C.gl1_4_glSecondaryColor3ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ubv.xml
+func (gl *GL) SecondaryColor3ubv(v []uint8) {
+ C.gl1_4_glSecondaryColor3ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ub.xml
+func (gl *GL) SecondaryColor3ub(red, green, blue uint8) {
+ C.gl1_4_glSecondaryColor3ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3sv.xml
+func (gl *GL) SecondaryColor3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glSecondaryColor3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3s.xml
+func (gl *GL) SecondaryColor3s(red, green, blue int16) {
+ C.gl1_4_glSecondaryColor3s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3iv.xml
+func (gl *GL) SecondaryColor3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glSecondaryColor3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3i.xml
+func (gl *GL) SecondaryColor3i(red, green, blue int32) {
+ C.gl1_4_glSecondaryColor3i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3fv.xml
+func (gl *GL) SecondaryColor3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glSecondaryColor3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3f.xml
+func (gl *GL) SecondaryColor3f(red, green, blue float32) {
+ C.gl1_4_glSecondaryColor3f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3dv.xml
+func (gl *GL) SecondaryColor3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_4_glSecondaryColor3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3d.xml
+func (gl *GL) SecondaryColor3d(red, green, blue float64) {
+ C.gl1_4_glSecondaryColor3d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3bv.xml
+func (gl *GL) SecondaryColor3bv(v []byte) {
+ C.gl1_4_glSecondaryColor3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3b.xml
+func (gl *GL) SecondaryColor3b(red, green, blue byte) {
+ C.gl1_4_glSecondaryColor3b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordPointer.xml
+func (gl *GL) FogCoordPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_4_glFogCoordPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoorddv.xml
+func (gl *GL) FogCoorddv(coord []float64) {
+ C.gl1_4_glFogCoorddv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&coord[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordd.xml
+func (gl *GL) FogCoordd(coord float64) {
+ C.gl1_4_glFogCoordd(gl.funcs, C.GLdouble(coord))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordfv.xml
+func (gl *GL) FogCoordfv(coord []float32) {
+ C.gl1_4_glFogCoordfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&coord[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordf.xml
+func (gl *GL) FogCoordf(coord float32) {
+ C.gl1_4_glFogCoordf(gl.funcs, C.GLfloat(coord))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.5/funcs.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.5/funcs.cpp
new file mode 100644
index 000000000..6158162fc
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.5/funcs.cpp
@@ -0,0 +1,2892 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#include <QOpenGLContext>
+#include <QtGui/qopenglfunctions_1_5.h>
+
+#include "funcs.h"
+
+void *gl1_5_funcs() {
+ QOpenGLFunctions_1_5* funcs = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_1_5>();
+ if (!funcs) {
+ return 0;
+ }
+ funcs->initializeOpenGLFunctions();
+ return funcs;
+}
+
+
+void gl1_5_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glViewport(x, y, width, height);
+}
+
+void gl1_5_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glDepthRange(nearVal, farVal);
+}
+
+GLboolean gl1_5_glIsEnabled(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ return _qglfuncs->glIsEnabled(cap);
+}
+
+void gl1_5_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameteriv(target, level, pname, params);
+}
+
+void gl1_5_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameterfv(target, level, pname, params);
+}
+
+void gl1_5_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetTexParameteriv(target, pname, params);
+}
+
+void gl1_5_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetTexParameterfv(target, pname, params);
+}
+
+void gl1_5_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetTexImage(target, level, format, gltype, pixels);
+}
+
+void gl1_5_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetIntegerv(pname, params);
+}
+
+void gl1_5_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetFloatv(pname, params);
+}
+
+GLenum gl1_5_glGetError(void *_glfuncs)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ return _qglfuncs->glGetError();
+}
+
+void gl1_5_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetDoublev(pname, params);
+}
+
+void gl1_5_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetBooleanv(pname, params);
+}
+
+void gl1_5_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glReadPixels(x, y, width, height, format, gltype, pixels);
+}
+
+void gl1_5_glReadBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glReadBuffer(mode);
+}
+
+void gl1_5_glPixelStorei(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPixelStorei(pname, param);
+}
+
+void gl1_5_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPixelStoref(pname, param);
+}
+
+void gl1_5_glDepthFunc(void *_glfuncs, GLenum glfunc)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glDepthFunc(glfunc);
+}
+
+void gl1_5_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glStencilOp(fail, zfail, zpass);
+}
+
+void gl1_5_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glStencilFunc(glfunc, ref, mask);
+}
+
+void gl1_5_glLogicOp(void *_glfuncs, GLenum opcode)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLogicOp(opcode);
+}
+
+void gl1_5_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glBlendFunc(sfactor, dfactor);
+}
+
+void gl1_5_glFlush(void *_glfuncs)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glFlush();
+}
+
+void gl1_5_glFinish(void *_glfuncs)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glFinish();
+}
+
+void gl1_5_glEnable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEnable(cap);
+}
+
+void gl1_5_glDisable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glDisable(cap);
+}
+
+void gl1_5_glDepthMask(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glDepthMask(flag);
+}
+
+void gl1_5_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColorMask(red, green, blue, alpha);
+}
+
+void gl1_5_glStencilMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glStencilMask(mask);
+}
+
+void gl1_5_glClearDepth(void *_glfuncs, GLdouble depth)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glClearDepth(depth);
+}
+
+void gl1_5_glClearStencil(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glClearStencil(s);
+}
+
+void gl1_5_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glClearColor(red, green, blue, alpha);
+}
+
+void gl1_5_glClear(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glClear(mask);
+}
+
+void gl1_5_glDrawBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glDrawBuffer(mode);
+}
+
+void gl1_5_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexImage2D(target, level, internalFormat, width, height, border, format, gltype, pixels);
+}
+
+void gl1_5_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexImage1D(target, level, internalFormat, width, border, format, gltype, pixels);
+}
+
+void gl1_5_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexParameteriv(target, pname, params);
+}
+
+void gl1_5_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexParameteri(target, pname, param);
+}
+
+void gl1_5_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexParameterfv(target, pname, params);
+}
+
+void gl1_5_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexParameterf(target, pname, param);
+}
+
+void gl1_5_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glScissor(x, y, width, height);
+}
+
+void gl1_5_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPolygonMode(face, mode);
+}
+
+void gl1_5_glPointSize(void *_glfuncs, GLfloat size)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPointSize(size);
+}
+
+void gl1_5_glLineWidth(void *_glfuncs, GLfloat width)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLineWidth(width);
+}
+
+void gl1_5_glHint(void *_glfuncs, GLenum target, GLenum mode)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glHint(target, mode);
+}
+
+void gl1_5_glFrontFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glFrontFace(mode);
+}
+
+void gl1_5_glCullFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCullFace(mode);
+}
+
+void gl1_5_glIndexubv(void *_glfuncs, const GLubyte* c)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glIndexubv(c);
+}
+
+void gl1_5_glIndexub(void *_glfuncs, GLubyte c)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glIndexub(c);
+}
+
+GLboolean gl1_5_glIsTexture(void *_glfuncs, GLuint texture)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ return _qglfuncs->glIsTexture(texture);
+}
+
+void gl1_5_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGenTextures(n, textures);
+}
+
+void gl1_5_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glDeleteTextures(n, textures);
+}
+
+void gl1_5_glBindTexture(void *_glfuncs, GLenum target, GLuint texture)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glBindTexture(target, texture);
+}
+
+void gl1_5_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, gltype, pixels);
+}
+
+void gl1_5_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexSubImage1D(target, level, xoffset, width, format, gltype, pixels);
+}
+
+void gl1_5_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
+}
+
+void gl1_5_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage1D(target, level, xoffset, x, y, width);
+}
+
+void gl1_5_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
+}
+
+void gl1_5_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCopyTexImage1D(target, level, internalFormat, x, y, width, border);
+}
+
+void gl1_5_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPolygonOffset(factor, units);
+}
+
+void gl1_5_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glDrawElements(mode, count, gltype, indices);
+}
+
+void gl1_5_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glDrawArrays(mode, first, count);
+}
+
+void gl1_5_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
+}
+
+void gl1_5_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, gltype, pixels);
+}
+
+void gl1_5_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexImage3D(target, level, internalFormat, width, height, depth, border, format, gltype, pixels);
+}
+
+void gl1_5_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glDrawRangeElements(mode, start, end, count, gltype, indices);
+}
+
+void gl1_5_glBlendEquation(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glBlendEquation(mode);
+}
+
+void gl1_5_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glBlendColor(red, green, blue, alpha);
+}
+
+void gl1_5_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetCompressedTexImage(target, level, img);
+}
+
+void gl1_5_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data);
+}
+
+void gl1_5_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
+}
+
+void gl1_5_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
+}
+
+void gl1_5_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage1D(target, level, internalFormat, width, border, imageSize, data);
+}
+
+void gl1_5_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data);
+}
+
+void gl1_5_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage3D(target, level, internalFormat, width, height, depth, border, imageSize, data);
+}
+
+void gl1_5_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSampleCoverage(value, invert);
+}
+
+void gl1_5_glActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glActiveTexture(texture);
+}
+
+void gl1_5_glPointParameteriv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPointParameteriv(pname, params);
+}
+
+void gl1_5_glPointParameteri(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPointParameteri(pname, param);
+}
+
+void gl1_5_glPointParameterfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPointParameterfv(pname, params);
+}
+
+void gl1_5_glPointParameterf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPointParameterf(pname, param);
+}
+
+void gl1_5_glMultiDrawArrays(void *_glfuncs, GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiDrawArrays(mode, first, count, drawcount);
+}
+
+void gl1_5_glBlendFuncSeparate(void *_glfuncs, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
+}
+
+void gl1_5_glGetBufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetBufferParameteriv(target, pname, params);
+}
+
+GLboolean gl1_5_glUnmapBuffer(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ return _qglfuncs->glUnmapBuffer(target);
+}
+
+void gl1_5_glGetBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetBufferSubData(target, offset, size, data);
+}
+
+void gl1_5_glBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glBufferSubData(target, offset, size, data);
+}
+
+void gl1_5_glBufferData(void *_glfuncs, GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glBufferData(target, size, data, usage);
+}
+
+GLboolean gl1_5_glIsBuffer(void *_glfuncs, GLuint buffer)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ return _qglfuncs->glIsBuffer(buffer);
+}
+
+void gl1_5_glGenBuffers(void *_glfuncs, GLsizei n, GLuint* buffers)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGenBuffers(n, buffers);
+}
+
+void gl1_5_glDeleteBuffers(void *_glfuncs, GLsizei n, const GLuint* buffers)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glDeleteBuffers(n, buffers);
+}
+
+void gl1_5_glBindBuffer(void *_glfuncs, GLenum target, GLuint buffer)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glBindBuffer(target, buffer);
+}
+
+void gl1_5_glGetQueryObjectuiv(void *_glfuncs, GLuint id, GLenum pname, GLuint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetQueryObjectuiv(id, pname, params);
+}
+
+void gl1_5_glGetQueryObjectiv(void *_glfuncs, GLuint id, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetQueryObjectiv(id, pname, params);
+}
+
+void gl1_5_glGetQueryiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetQueryiv(target, pname, params);
+}
+
+void gl1_5_glEndQuery(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEndQuery(target);
+}
+
+void gl1_5_glBeginQuery(void *_glfuncs, GLenum target, GLuint id)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glBeginQuery(target, id);
+}
+
+GLboolean gl1_5_glIsQuery(void *_glfuncs, GLuint id)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ return _qglfuncs->glIsQuery(id);
+}
+
+void gl1_5_glDeleteQueries(void *_glfuncs, GLsizei n, const GLuint* ids)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glDeleteQueries(n, ids);
+}
+
+void gl1_5_glGenQueries(void *_glfuncs, GLsizei n, GLuint* ids)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGenQueries(n, ids);
+}
+
+void gl1_5_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTranslatef(x, y, z);
+}
+
+void gl1_5_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTranslated(x, y, z);
+}
+
+void gl1_5_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glScalef(x, y, z);
+}
+
+void gl1_5_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glScaled(x, y, z);
+}
+
+void gl1_5_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRotatef(angle, x, y, z);
+}
+
+void gl1_5_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRotated(angle, x, y, z);
+}
+
+void gl1_5_glPushMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPushMatrix();
+}
+
+void gl1_5_glPopMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPopMatrix();
+}
+
+void gl1_5_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glOrtho(left, right, bottom, top, zNear, zFar);
+}
+
+void gl1_5_glMultMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultMatrixd(m);
+}
+
+void gl1_5_glMultMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultMatrixf(m);
+}
+
+void gl1_5_glMatrixMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMatrixMode(mode);
+}
+
+void gl1_5_glLoadMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLoadMatrixd(m);
+}
+
+void gl1_5_glLoadMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLoadMatrixf(m);
+}
+
+void gl1_5_glLoadIdentity(void *_glfuncs)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLoadIdentity();
+}
+
+void gl1_5_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glFrustum(left, right, bottom, top, zNear, zFar);
+}
+
+GLboolean gl1_5_glIsList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ return _qglfuncs->glIsList(list);
+}
+
+void gl1_5_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetTexGeniv(coord, pname, params);
+}
+
+void gl1_5_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetTexGenfv(coord, pname, params);
+}
+
+void gl1_5_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetTexGendv(coord, pname, params);
+}
+
+void gl1_5_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetTexEnviv(target, pname, params);
+}
+
+void gl1_5_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetTexEnvfv(target, pname, params);
+}
+
+void gl1_5_glGetPolygonStipple(void *_glfuncs, GLubyte* mask)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetPolygonStipple(mask);
+}
+
+void gl1_5_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetPixelMapusv(glmap, values);
+}
+
+void gl1_5_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetPixelMapuiv(glmap, values);
+}
+
+void gl1_5_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetPixelMapfv(glmap, values);
+}
+
+void gl1_5_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetMaterialiv(face, pname, params);
+}
+
+void gl1_5_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetMaterialfv(face, pname, params);
+}
+
+void gl1_5_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetMapiv(target, query, v);
+}
+
+void gl1_5_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetMapfv(target, query, v);
+}
+
+void gl1_5_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetMapdv(target, query, v);
+}
+
+void gl1_5_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetLightiv(light, pname, params);
+}
+
+void gl1_5_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetLightfv(light, pname, params);
+}
+
+void gl1_5_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetClipPlane(plane, equation);
+}
+
+void gl1_5_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glDrawPixels(width, height, format, gltype, pixels);
+}
+
+void gl1_5_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCopyPixels(x, y, width, height, gltype);
+}
+
+void gl1_5_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPixelMapusv(glmap, mapsize, values);
+}
+
+void gl1_5_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPixelMapuiv(glmap, mapsize, values);
+}
+
+void gl1_5_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPixelMapfv(glmap, mapsize, values);
+}
+
+void gl1_5_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPixelTransferi(pname, param);
+}
+
+void gl1_5_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPixelTransferf(pname, param);
+}
+
+void gl1_5_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPixelZoom(xfactor, yfactor);
+}
+
+void gl1_5_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glAlphaFunc(glfunc, ref);
+}
+
+void gl1_5_glEvalPoint2(void *_glfuncs, GLint i, GLint j)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEvalPoint2(i, j);
+}
+
+void gl1_5_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEvalMesh2(mode, i1, i2, j1, j2);
+}
+
+void gl1_5_glEvalPoint1(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEvalPoint1(i);
+}
+
+void gl1_5_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEvalMesh1(mode, i1, i2);
+}
+
+void gl1_5_glEvalCoord2fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEvalCoord2fv(u);
+}
+
+void gl1_5_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEvalCoord2f(u, v);
+}
+
+void gl1_5_glEvalCoord2dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEvalCoord2dv(u);
+}
+
+void gl1_5_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEvalCoord2d(u, v);
+}
+
+void gl1_5_glEvalCoord1fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEvalCoord1fv(u);
+}
+
+void gl1_5_glEvalCoord1f(void *_glfuncs, GLfloat u)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEvalCoord1f(u);
+}
+
+void gl1_5_glEvalCoord1dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEvalCoord1dv(u);
+}
+
+void gl1_5_glEvalCoord1d(void *_glfuncs, GLdouble u)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEvalCoord1d(u);
+}
+
+void gl1_5_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMapGrid2f(un, u1, u2, vn, v1, v2);
+}
+
+void gl1_5_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMapGrid2d(un, u1, u2, vn, v1, v2);
+}
+
+void gl1_5_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMapGrid1f(un, u1, u2);
+}
+
+void gl1_5_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMapGrid1d(un, u1, u2);
+}
+
+void gl1_5_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl1_5_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl1_5_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMap1f(target, u1, u2, stride, order, points);
+}
+
+void gl1_5_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMap1d(target, u1, u2, stride, order, points);
+}
+
+void gl1_5_glPushAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPushAttrib(mask);
+}
+
+void gl1_5_glPopAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPopAttrib();
+}
+
+void gl1_5_glAccum(void *_glfuncs, GLenum op, GLfloat value)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glAccum(op, value);
+}
+
+void gl1_5_glIndexMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glIndexMask(mask);
+}
+
+void gl1_5_glClearIndex(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glClearIndex(c);
+}
+
+void gl1_5_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glClearAccum(red, green, blue, alpha);
+}
+
+void gl1_5_glPushName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPushName(name);
+}
+
+void gl1_5_glPopName(void *_glfuncs)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPopName();
+}
+
+void gl1_5_glPassThrough(void *_glfuncs, GLfloat token)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPassThrough(token);
+}
+
+void gl1_5_glLoadName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLoadName(name);
+}
+
+void gl1_5_glInitNames(void *_glfuncs)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glInitNames();
+}
+
+GLint gl1_5_glRenderMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ return _qglfuncs->glRenderMode(mode);
+}
+
+void gl1_5_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSelectBuffer(size, buffer);
+}
+
+void gl1_5_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glFeedbackBuffer(size, gltype, buffer);
+}
+
+void gl1_5_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexGeniv(coord, pname, params);
+}
+
+void gl1_5_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexGeni(coord, pname, param);
+}
+
+void gl1_5_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexGenfv(coord, pname, params);
+}
+
+void gl1_5_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexGenf(coord, pname, param);
+}
+
+void gl1_5_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexGendv(coord, pname, params);
+}
+
+void gl1_5_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexGend(coord, pname, param);
+}
+
+void gl1_5_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexEnviv(target, pname, params);
+}
+
+void gl1_5_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexEnvi(target, pname, param);
+}
+
+void gl1_5_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexEnvfv(target, pname, params);
+}
+
+void gl1_5_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexEnvf(target, pname, param);
+}
+
+void gl1_5_glShadeModel(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glShadeModel(mode);
+}
+
+void gl1_5_glPolygonStipple(void *_glfuncs, const GLubyte* mask)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPolygonStipple(mask);
+}
+
+void gl1_5_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMaterialiv(face, pname, params);
+}
+
+void gl1_5_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMateriali(face, pname, param);
+}
+
+void gl1_5_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMaterialfv(face, pname, params);
+}
+
+void gl1_5_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMaterialf(face, pname, param);
+}
+
+void gl1_5_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLineStipple(factor, pattern);
+}
+
+void gl1_5_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLightModeliv(pname, params);
+}
+
+void gl1_5_glLightModeli(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLightModeli(pname, param);
+}
+
+void gl1_5_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLightModelfv(pname, params);
+}
+
+void gl1_5_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLightModelf(pname, param);
+}
+
+void gl1_5_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLightiv(light, pname, params);
+}
+
+void gl1_5_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLighti(light, pname, param);
+}
+
+void gl1_5_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLightfv(light, pname, params);
+}
+
+void gl1_5_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLightf(light, pname, param);
+}
+
+void gl1_5_glFogiv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glFogiv(pname, params);
+}
+
+void gl1_5_glFogi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glFogi(pname, param);
+}
+
+void gl1_5_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glFogfv(pname, params);
+}
+
+void gl1_5_glFogf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glFogf(pname, param);
+}
+
+void gl1_5_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColorMaterial(face, mode);
+}
+
+void gl1_5_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glClipPlane(plane, equation);
+}
+
+void gl1_5_glVertex4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex4sv(v);
+}
+
+void gl1_5_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex4s(x, y, z, w);
+}
+
+void gl1_5_glVertex4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex4iv(v);
+}
+
+void gl1_5_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex4i(x, y, z, w);
+}
+
+void gl1_5_glVertex4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex4fv(v);
+}
+
+void gl1_5_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex4f(x, y, z, w);
+}
+
+void gl1_5_glVertex4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex4dv(v);
+}
+
+void gl1_5_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex4d(x, y, z, w);
+}
+
+void gl1_5_glVertex3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex3sv(v);
+}
+
+void gl1_5_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex3s(x, y, z);
+}
+
+void gl1_5_glVertex3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex3iv(v);
+}
+
+void gl1_5_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex3i(x, y, z);
+}
+
+void gl1_5_glVertex3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex3fv(v);
+}
+
+void gl1_5_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex3f(x, y, z);
+}
+
+void gl1_5_glVertex3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex3dv(v);
+}
+
+void gl1_5_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex3d(x, y, z);
+}
+
+void gl1_5_glVertex2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex2sv(v);
+}
+
+void gl1_5_glVertex2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex2s(x, y);
+}
+
+void gl1_5_glVertex2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex2iv(v);
+}
+
+void gl1_5_glVertex2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex2i(x, y);
+}
+
+void gl1_5_glVertex2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex2fv(v);
+}
+
+void gl1_5_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex2f(x, y);
+}
+
+void gl1_5_glVertex2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex2dv(v);
+}
+
+void gl1_5_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertex2d(x, y);
+}
+
+void gl1_5_glTexCoord4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord4sv(v);
+}
+
+void gl1_5_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord4s(s, t, r, q);
+}
+
+void gl1_5_glTexCoord4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord4iv(v);
+}
+
+void gl1_5_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord4i(s, t, r, q);
+}
+
+void gl1_5_glTexCoord4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord4fv(v);
+}
+
+void gl1_5_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord4f(s, t, r, q);
+}
+
+void gl1_5_glTexCoord4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord4dv(v);
+}
+
+void gl1_5_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord4d(s, t, r, q);
+}
+
+void gl1_5_glTexCoord3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord3sv(v);
+}
+
+void gl1_5_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord3s(s, t, r);
+}
+
+void gl1_5_glTexCoord3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord3iv(v);
+}
+
+void gl1_5_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord3i(s, t, r);
+}
+
+void gl1_5_glTexCoord3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord3fv(v);
+}
+
+void gl1_5_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord3f(s, t, r);
+}
+
+void gl1_5_glTexCoord3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord3dv(v);
+}
+
+void gl1_5_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord3d(s, t, r);
+}
+
+void gl1_5_glTexCoord2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord2sv(v);
+}
+
+void gl1_5_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord2s(s, t);
+}
+
+void gl1_5_glTexCoord2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord2iv(v);
+}
+
+void gl1_5_glTexCoord2i(void *_glfuncs, GLint s, GLint t)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord2i(s, t);
+}
+
+void gl1_5_glTexCoord2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord2fv(v);
+}
+
+void gl1_5_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord2f(s, t);
+}
+
+void gl1_5_glTexCoord2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord2dv(v);
+}
+
+void gl1_5_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord2d(s, t);
+}
+
+void gl1_5_glTexCoord1sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord1sv(v);
+}
+
+void gl1_5_glTexCoord1s(void *_glfuncs, GLshort s)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord1s(s);
+}
+
+void gl1_5_glTexCoord1iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord1iv(v);
+}
+
+void gl1_5_glTexCoord1i(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord1i(s);
+}
+
+void gl1_5_glTexCoord1fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord1fv(v);
+}
+
+void gl1_5_glTexCoord1f(void *_glfuncs, GLfloat s)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord1f(s);
+}
+
+void gl1_5_glTexCoord1dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord1dv(v);
+}
+
+void gl1_5_glTexCoord1d(void *_glfuncs, GLdouble s)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoord1d(s);
+}
+
+void gl1_5_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRectsv(v1, v2);
+}
+
+void gl1_5_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRects(x1, y1, x2, y2);
+}
+
+void gl1_5_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRectiv(v1, v2);
+}
+
+void gl1_5_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRecti(x1, y1, x2, y2);
+}
+
+void gl1_5_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRectfv(v1, v2);
+}
+
+void gl1_5_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRectf(x1, y1, x2, y2);
+}
+
+void gl1_5_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRectdv(v1, v2);
+}
+
+void gl1_5_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRectd(x1, y1, x2, y2);
+}
+
+void gl1_5_glRasterPos4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos4sv(v);
+}
+
+void gl1_5_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos4s(x, y, z, w);
+}
+
+void gl1_5_glRasterPos4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos4iv(v);
+}
+
+void gl1_5_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos4i(x, y, z, w);
+}
+
+void gl1_5_glRasterPos4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos4fv(v);
+}
+
+void gl1_5_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos4f(x, y, z, w);
+}
+
+void gl1_5_glRasterPos4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos4dv(v);
+}
+
+void gl1_5_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos4d(x, y, z, w);
+}
+
+void gl1_5_glRasterPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos3sv(v);
+}
+
+void gl1_5_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos3s(x, y, z);
+}
+
+void gl1_5_glRasterPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos3iv(v);
+}
+
+void gl1_5_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos3i(x, y, z);
+}
+
+void gl1_5_glRasterPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos3fv(v);
+}
+
+void gl1_5_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos3f(x, y, z);
+}
+
+void gl1_5_glRasterPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos3dv(v);
+}
+
+void gl1_5_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos3d(x, y, z);
+}
+
+void gl1_5_glRasterPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos2sv(v);
+}
+
+void gl1_5_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos2s(x, y);
+}
+
+void gl1_5_glRasterPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos2iv(v);
+}
+
+void gl1_5_glRasterPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos2i(x, y);
+}
+
+void gl1_5_glRasterPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos2fv(v);
+}
+
+void gl1_5_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos2f(x, y);
+}
+
+void gl1_5_glRasterPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos2dv(v);
+}
+
+void gl1_5_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glRasterPos2d(x, y);
+}
+
+void gl1_5_glNormal3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glNormal3sv(v);
+}
+
+void gl1_5_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glNormal3s(nx, ny, nz);
+}
+
+void gl1_5_glNormal3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glNormal3iv(v);
+}
+
+void gl1_5_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glNormal3i(nx, ny, nz);
+}
+
+void gl1_5_glNormal3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glNormal3fv(v);
+}
+
+void gl1_5_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glNormal3f(nx, ny, nz);
+}
+
+void gl1_5_glNormal3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glNormal3dv(v);
+}
+
+void gl1_5_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glNormal3d(nx, ny, nz);
+}
+
+void gl1_5_glNormal3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glNormal3bv(v);
+}
+
+void gl1_5_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glNormal3b(nx, ny, nz);
+}
+
+void gl1_5_glIndexsv(void *_glfuncs, const GLshort* c)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glIndexsv(c);
+}
+
+void gl1_5_glIndexs(void *_glfuncs, GLshort c)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glIndexs(c);
+}
+
+void gl1_5_glIndexiv(void *_glfuncs, const GLint* c)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glIndexiv(c);
+}
+
+void gl1_5_glIndexi(void *_glfuncs, GLint c)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glIndexi(c);
+}
+
+void gl1_5_glIndexfv(void *_glfuncs, const GLfloat* c)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glIndexfv(c);
+}
+
+void gl1_5_glIndexf(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glIndexf(c);
+}
+
+void gl1_5_glIndexdv(void *_glfuncs, const GLdouble* c)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glIndexdv(c);
+}
+
+void gl1_5_glIndexd(void *_glfuncs, GLdouble c)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glIndexd(c);
+}
+
+void gl1_5_glEnd(void *_glfuncs)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEnd();
+}
+
+void gl1_5_glEdgeFlagv(void *_glfuncs, const GLboolean* flag)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEdgeFlagv(flag);
+}
+
+void gl1_5_glEdgeFlag(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEdgeFlag(flag);
+}
+
+void gl1_5_glColor4usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4usv(v);
+}
+
+void gl1_5_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4us(red, green, blue, alpha);
+}
+
+void gl1_5_glColor4uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4uiv(v);
+}
+
+void gl1_5_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4ui(red, green, blue, alpha);
+}
+
+void gl1_5_glColor4ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4ubv(v);
+}
+
+void gl1_5_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4ub(red, green, blue, alpha);
+}
+
+void gl1_5_glColor4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4sv(v);
+}
+
+void gl1_5_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4s(red, green, blue, alpha);
+}
+
+void gl1_5_glColor4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4iv(v);
+}
+
+void gl1_5_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4i(red, green, blue, alpha);
+}
+
+void gl1_5_glColor4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4fv(v);
+}
+
+void gl1_5_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4f(red, green, blue, alpha);
+}
+
+void gl1_5_glColor4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4dv(v);
+}
+
+void gl1_5_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4d(red, green, blue, alpha);
+}
+
+void gl1_5_glColor4bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4bv(v);
+}
+
+void gl1_5_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor4b(red, green, blue, alpha);
+}
+
+void gl1_5_glColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3usv(v);
+}
+
+void gl1_5_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3us(red, green, blue);
+}
+
+void gl1_5_glColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3uiv(v);
+}
+
+void gl1_5_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3ui(red, green, blue);
+}
+
+void gl1_5_glColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3ubv(v);
+}
+
+void gl1_5_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3ub(red, green, blue);
+}
+
+void gl1_5_glColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3sv(v);
+}
+
+void gl1_5_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3s(red, green, blue);
+}
+
+void gl1_5_glColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3iv(v);
+}
+
+void gl1_5_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3i(red, green, blue);
+}
+
+void gl1_5_glColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3fv(v);
+}
+
+void gl1_5_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3f(red, green, blue);
+}
+
+void gl1_5_glColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3dv(v);
+}
+
+void gl1_5_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3d(red, green, blue);
+}
+
+void gl1_5_glColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3bv(v);
+}
+
+void gl1_5_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColor3b(red, green, blue);
+}
+
+void gl1_5_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
+}
+
+void gl1_5_glBegin(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glBegin(mode);
+}
+
+void gl1_5_glListBase(void *_glfuncs, GLuint base)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glListBase(base);
+}
+
+GLuint gl1_5_glGenLists(void *_glfuncs, GLsizei range_)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ return _qglfuncs->glGenLists(range_);
+}
+
+void gl1_5_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glDeleteLists(list, range_);
+}
+
+void gl1_5_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCallLists(n, gltype, lists);
+}
+
+void gl1_5_glCallList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCallList(list);
+}
+
+void gl1_5_glEndList(void *_glfuncs)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEndList();
+}
+
+void gl1_5_glNewList(void *_glfuncs, GLuint list, GLenum mode)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glNewList(list, mode);
+}
+
+void gl1_5_glPushClientAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPushClientAttrib(mask);
+}
+
+void gl1_5_glPopClientAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPopClientAttrib();
+}
+
+void gl1_5_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glPrioritizeTextures(n, textures, priorities);
+}
+
+GLboolean gl1_5_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ return _qglfuncs->glAreTexturesResident(n, textures, residences);
+}
+
+void gl1_5_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glVertexPointer(size, gltype, stride, pointer);
+}
+
+void gl1_5_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glTexCoordPointer(size, gltype, stride, pointer);
+}
+
+void gl1_5_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glNormalPointer(gltype, stride, pointer);
+}
+
+void gl1_5_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glInterleavedArrays(format, stride, pointer);
+}
+
+void gl1_5_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glIndexPointer(gltype, stride, pointer);
+}
+
+void gl1_5_glEnableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEnableClientState(array);
+}
+
+void gl1_5_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glEdgeFlagPointer(stride, pointer);
+}
+
+void gl1_5_glDisableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glDisableClientState(array);
+}
+
+void gl1_5_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColorPointer(size, gltype, stride, pointer);
+}
+
+void gl1_5_glArrayElement(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glArrayElement(i);
+}
+
+void gl1_5_glResetMinmax(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glResetMinmax(target);
+}
+
+void gl1_5_glResetHistogram(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glResetHistogram(target);
+}
+
+void gl1_5_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMinmax(target, internalFormat, sink);
+}
+
+void gl1_5_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glHistogram(target, width, internalFormat, sink);
+}
+
+void gl1_5_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameteriv(target, pname, params);
+}
+
+void gl1_5_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameterfv(target, pname, params);
+}
+
+void gl1_5_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetMinmax(target, reset, format, gltype, values);
+}
+
+void gl1_5_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameteriv(target, pname, params);
+}
+
+void gl1_5_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameterfv(target, pname, params);
+}
+
+void gl1_5_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetHistogram(target, reset, format, gltype, values);
+}
+
+void gl1_5_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSeparableFilter2D(target, internalFormat, width, height, format, gltype, row, column);
+}
+
+void gl1_5_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetSeparableFilter(target, format, gltype, row, column, span);
+}
+
+void gl1_5_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameteriv(target, pname, params);
+}
+
+void gl1_5_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameterfv(target, pname, params);
+}
+
+void gl1_5_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetConvolutionFilter(target, format, gltype, image);
+}
+
+void gl1_5_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter2D(target, internalFormat, x, y, width, height);
+}
+
+void gl1_5_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter1D(target, internalFormat, x, y, width);
+}
+
+void gl1_5_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteriv(target, pname, params);
+}
+
+void gl1_5_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteri(target, pname, params);
+}
+
+void gl1_5_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterfv(target, pname, params);
+}
+
+void gl1_5_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterf(target, pname, params);
+}
+
+void gl1_5_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter2D(target, internalFormat, width, height, format, gltype, image);
+}
+
+void gl1_5_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter1D(target, internalFormat, width, format, gltype, image);
+}
+
+void gl1_5_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCopyColorSubTable(target, start, x, y, width);
+}
+
+void gl1_5_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColorSubTable(target, start, count, format, gltype, data);
+}
+
+void gl1_5_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameteriv(target, pname, params);
+}
+
+void gl1_5_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameterfv(target, pname, params);
+}
+
+void gl1_5_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glGetColorTable(target, format, gltype, table);
+}
+
+void gl1_5_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glCopyColorTable(target, internalFormat, x, y, width);
+}
+
+void gl1_5_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColorTableParameteriv(target, pname, params);
+}
+
+void gl1_5_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColorTableParameterfv(target, pname, params);
+}
+
+void gl1_5_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glColorTable(target, internalFormat, width, format, gltype, table);
+}
+
+void gl1_5_glMultTransposeMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultTransposeMatrixd(m);
+}
+
+void gl1_5_glMultTransposeMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultTransposeMatrixf(m);
+}
+
+void gl1_5_glLoadTransposeMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLoadTransposeMatrixd(m);
+}
+
+void gl1_5_glLoadTransposeMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glLoadTransposeMatrixf(m);
+}
+
+void gl1_5_glMultiTexCoord4sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4sv(target, v);
+}
+
+void gl1_5_glMultiTexCoord4s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4s(target, s, t, r, q);
+}
+
+void gl1_5_glMultiTexCoord4iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4iv(target, v);
+}
+
+void gl1_5_glMultiTexCoord4i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4i(target, s, t, r, q);
+}
+
+void gl1_5_glMultiTexCoord4fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4fv(target, v);
+}
+
+void gl1_5_glMultiTexCoord4f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4f(target, s, t, r, q);
+}
+
+void gl1_5_glMultiTexCoord4dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4dv(target, v);
+}
+
+void gl1_5_glMultiTexCoord4d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4d(target, s, t, r, q);
+}
+
+void gl1_5_glMultiTexCoord3sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3sv(target, v);
+}
+
+void gl1_5_glMultiTexCoord3s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3s(target, s, t, r);
+}
+
+void gl1_5_glMultiTexCoord3iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3iv(target, v);
+}
+
+void gl1_5_glMultiTexCoord3i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3i(target, s, t, r);
+}
+
+void gl1_5_glMultiTexCoord3fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3fv(target, v);
+}
+
+void gl1_5_glMultiTexCoord3f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3f(target, s, t, r);
+}
+
+void gl1_5_glMultiTexCoord3dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3dv(target, v);
+}
+
+void gl1_5_glMultiTexCoord3d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3d(target, s, t, r);
+}
+
+void gl1_5_glMultiTexCoord2sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2sv(target, v);
+}
+
+void gl1_5_glMultiTexCoord2s(void *_glfuncs, GLenum target, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2s(target, s, t);
+}
+
+void gl1_5_glMultiTexCoord2iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2iv(target, v);
+}
+
+void gl1_5_glMultiTexCoord2i(void *_glfuncs, GLenum target, GLint s, GLint t)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2i(target, s, t);
+}
+
+void gl1_5_glMultiTexCoord2fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2fv(target, v);
+}
+
+void gl1_5_glMultiTexCoord2f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2f(target, s, t);
+}
+
+void gl1_5_glMultiTexCoord2dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2dv(target, v);
+}
+
+void gl1_5_glMultiTexCoord2d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2d(target, s, t);
+}
+
+void gl1_5_glMultiTexCoord1sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1sv(target, v);
+}
+
+void gl1_5_glMultiTexCoord1s(void *_glfuncs, GLenum target, GLshort s)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1s(target, s);
+}
+
+void gl1_5_glMultiTexCoord1iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1iv(target, v);
+}
+
+void gl1_5_glMultiTexCoord1i(void *_glfuncs, GLenum target, GLint s)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1i(target, s);
+}
+
+void gl1_5_glMultiTexCoord1fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1fv(target, v);
+}
+
+void gl1_5_glMultiTexCoord1f(void *_glfuncs, GLenum target, GLfloat s)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1f(target, s);
+}
+
+void gl1_5_glMultiTexCoord1dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1dv(target, v);
+}
+
+void gl1_5_glMultiTexCoord1d(void *_glfuncs, GLenum target, GLdouble s)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1d(target, s);
+}
+
+void gl1_5_glClientActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glClientActiveTexture(texture);
+}
+
+void gl1_5_glWindowPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos3sv(v);
+}
+
+void gl1_5_glWindowPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos3s(x, y, z);
+}
+
+void gl1_5_glWindowPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos3iv(v);
+}
+
+void gl1_5_glWindowPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos3i(x, y, z);
+}
+
+void gl1_5_glWindowPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos3fv(v);
+}
+
+void gl1_5_glWindowPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos3f(x, y, z);
+}
+
+void gl1_5_glWindowPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos3dv(v);
+}
+
+void gl1_5_glWindowPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos3d(x, y, z);
+}
+
+void gl1_5_glWindowPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos2sv(v);
+}
+
+void gl1_5_glWindowPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos2s(x, y);
+}
+
+void gl1_5_glWindowPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos2iv(v);
+}
+
+void gl1_5_glWindowPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos2i(x, y);
+}
+
+void gl1_5_glWindowPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos2fv(v);
+}
+
+void gl1_5_glWindowPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos2f(x, y);
+}
+
+void gl1_5_glWindowPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos2dv(v);
+}
+
+void gl1_5_glWindowPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glWindowPos2d(x, y);
+}
+
+void gl1_5_glSecondaryColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColorPointer(size, gltype, stride, pointer);
+}
+
+void gl1_5_glSecondaryColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3usv(v);
+}
+
+void gl1_5_glSecondaryColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3us(red, green, blue);
+}
+
+void gl1_5_glSecondaryColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3uiv(v);
+}
+
+void gl1_5_glSecondaryColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ui(red, green, blue);
+}
+
+void gl1_5_glSecondaryColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ubv(v);
+}
+
+void gl1_5_glSecondaryColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ub(red, green, blue);
+}
+
+void gl1_5_glSecondaryColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3sv(v);
+}
+
+void gl1_5_glSecondaryColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3s(red, green, blue);
+}
+
+void gl1_5_glSecondaryColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3iv(v);
+}
+
+void gl1_5_glSecondaryColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3i(red, green, blue);
+}
+
+void gl1_5_glSecondaryColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3fv(v);
+}
+
+void gl1_5_glSecondaryColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3f(red, green, blue);
+}
+
+void gl1_5_glSecondaryColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3dv(v);
+}
+
+void gl1_5_glSecondaryColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3d(red, green, blue);
+}
+
+void gl1_5_glSecondaryColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3bv(v);
+}
+
+void gl1_5_glSecondaryColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3b(red, green, blue);
+}
+
+void gl1_5_glFogCoordPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glFogCoordPointer(gltype, stride, pointer);
+}
+
+void gl1_5_glFogCoorddv(void *_glfuncs, const GLdouble* coord)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glFogCoorddv(coord);
+}
+
+void gl1_5_glFogCoordd(void *_glfuncs, GLdouble coord)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glFogCoordd(coord);
+}
+
+void gl1_5_glFogCoordfv(void *_glfuncs, const GLfloat* coord)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glFogCoordfv(coord);
+}
+
+void gl1_5_glFogCoordf(void *_glfuncs, GLfloat coord)
+{
+ QOpenGLFunctions_1_5* _qglfuncs = reinterpret_cast<QOpenGLFunctions_1_5*>(_glfuncs);
+ _qglfuncs->glFogCoordf(coord);
+}
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.5/funcs.h b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.5/funcs.h
new file mode 100644
index 000000000..d971f2dc3
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.5/funcs.h
@@ -0,0 +1,521 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#ifndef __cplusplus
+#include <inttypes.h>
+#include <stddef.h>
+typedef unsigned int GLenum;
+typedef unsigned char GLboolean;
+typedef unsigned int GLbitfield;
+typedef void GLvoid;
+typedef char GLchar;
+typedef signed char GLbyte; /* 1-byte signed */
+typedef short GLshort; /* 2-byte signed */
+typedef int GLint; /* 4-byte signed */
+typedef unsigned char GLubyte; /* 1-byte unsigned */
+typedef unsigned short GLushort; /* 2-byte unsigned */
+typedef unsigned int GLuint; /* 4-byte unsigned */
+typedef int GLsizei; /* 4-byte signed */
+typedef float GLfloat; /* single precision float */
+typedef float GLclampf; /* single precision float in [0,1] */
+typedef double GLdouble; /* double precision float */
+typedef double GLclampd; /* double precision float in [0,1] */
+typedef int64_t GLint64;
+typedef uint64_t GLuint64;
+typedef ptrdiff_t GLintptr;
+typedef ptrdiff_t GLsizeiptr;
+typedef ptrdiff_t GLintptrARB;
+typedef ptrdiff_t GLsizeiptrARB;
+typedef struct __GLsync *GLsync;
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *gl1_5_funcs();
+
+void gl1_5_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_5_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal);
+GLboolean gl1_5_glIsEnabled(void *_glfuncs, GLenum cap);
+void gl1_5_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params);
+void gl1_5_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params);
+void gl1_5_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_5_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_5_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl1_5_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params);
+void gl1_5_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params);
+GLenum gl1_5_glGetError(void *_glfuncs);
+void gl1_5_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params);
+void gl1_5_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params);
+void gl1_5_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl1_5_glReadBuffer(void *_glfuncs, GLenum mode);
+void gl1_5_glPixelStorei(void *_glfuncs, GLenum pname, GLint param);
+void gl1_5_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_5_glDepthFunc(void *_glfuncs, GLenum glfunc);
+void gl1_5_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass);
+void gl1_5_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask);
+void gl1_5_glLogicOp(void *_glfuncs, GLenum opcode);
+void gl1_5_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor);
+void gl1_5_glFlush(void *_glfuncs);
+void gl1_5_glFinish(void *_glfuncs);
+void gl1_5_glEnable(void *_glfuncs, GLenum cap);
+void gl1_5_glDisable(void *_glfuncs, GLenum cap);
+void gl1_5_glDepthMask(void *_glfuncs, GLboolean flag);
+void gl1_5_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+void gl1_5_glStencilMask(void *_glfuncs, GLuint mask);
+void gl1_5_glClearDepth(void *_glfuncs, GLdouble depth);
+void gl1_5_glClearStencil(void *_glfuncs, GLint s);
+void gl1_5_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_5_glClear(void *_glfuncs, GLbitfield mask);
+void gl1_5_glDrawBuffer(void *_glfuncs, GLenum mode);
+void gl1_5_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_5_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_5_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_5_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl1_5_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_5_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl1_5_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_5_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode);
+void gl1_5_glPointSize(void *_glfuncs, GLfloat size);
+void gl1_5_glLineWidth(void *_glfuncs, GLfloat width);
+void gl1_5_glHint(void *_glfuncs, GLenum target, GLenum mode);
+void gl1_5_glFrontFace(void *_glfuncs, GLenum mode);
+void gl1_5_glCullFace(void *_glfuncs, GLenum mode);
+void gl1_5_glIndexubv(void *_glfuncs, const GLubyte* c);
+void gl1_5_glIndexub(void *_glfuncs, GLubyte c);
+GLboolean gl1_5_glIsTexture(void *_glfuncs, GLuint texture);
+void gl1_5_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures);
+void gl1_5_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures);
+void gl1_5_glBindTexture(void *_glfuncs, GLenum target, GLuint texture);
+void gl1_5_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_5_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_5_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_5_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+void gl1_5_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+void gl1_5_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
+void gl1_5_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units);
+void gl1_5_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl1_5_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count);
+void gl1_5_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_5_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_5_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_5_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl1_5_glBlendEquation(void *_glfuncs, GLenum mode);
+void gl1_5_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_5_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img);
+void gl1_5_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl1_5_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl1_5_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl1_5_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl1_5_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl1_5_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl1_5_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert);
+void gl1_5_glActiveTexture(void *_glfuncs, GLenum texture);
+void gl1_5_glPointParameteriv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl1_5_glPointParameteri(void *_glfuncs, GLenum pname, GLint param);
+void gl1_5_glPointParameterfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl1_5_glPointParameterf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_5_glMultiDrawArrays(void *_glfuncs, GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount);
+void gl1_5_glBlendFuncSeparate(void *_glfuncs, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+void gl1_5_glGetBufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+GLboolean gl1_5_glUnmapBuffer(void *_glfuncs, GLenum target);
+void gl1_5_glGetBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data);
+void gl1_5_glBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data);
+void gl1_5_glBufferData(void *_glfuncs, GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
+GLboolean gl1_5_glIsBuffer(void *_glfuncs, GLuint buffer);
+void gl1_5_glGenBuffers(void *_glfuncs, GLsizei n, GLuint* buffers);
+void gl1_5_glDeleteBuffers(void *_glfuncs, GLsizei n, const GLuint* buffers);
+void gl1_5_glBindBuffer(void *_glfuncs, GLenum target, GLuint buffer);
+void gl1_5_glGetQueryObjectuiv(void *_glfuncs, GLuint id, GLenum pname, GLuint* params);
+void gl1_5_glGetQueryObjectiv(void *_glfuncs, GLuint id, GLenum pname, GLint* params);
+void gl1_5_glGetQueryiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_5_glEndQuery(void *_glfuncs, GLenum target);
+void gl1_5_glBeginQuery(void *_glfuncs, GLenum target, GLuint id);
+GLboolean gl1_5_glIsQuery(void *_glfuncs, GLuint id);
+void gl1_5_glDeleteQueries(void *_glfuncs, GLsizei n, const GLuint* ids);
+void gl1_5_glGenQueries(void *_glfuncs, GLsizei n, GLuint* ids);
+void gl1_5_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_5_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_5_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_5_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_5_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+void gl1_5_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+void gl1_5_glPushMatrix(void *_glfuncs);
+void gl1_5_glPopMatrix(void *_glfuncs);
+void gl1_5_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+void gl1_5_glMultMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_5_glMultMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_5_glMatrixMode(void *_glfuncs, GLenum mode);
+void gl1_5_glLoadMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_5_glLoadMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_5_glLoadIdentity(void *_glfuncs);
+void gl1_5_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLboolean gl1_5_glIsList(void *_glfuncs, GLuint list);
+void gl1_5_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params);
+void gl1_5_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params);
+void gl1_5_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params);
+void gl1_5_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_5_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_5_glGetPolygonStipple(void *_glfuncs, GLubyte* mask);
+void gl1_5_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values);
+void gl1_5_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values);
+void gl1_5_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values);
+void gl1_5_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params);
+void gl1_5_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params);
+void gl1_5_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v);
+void gl1_5_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v);
+void gl1_5_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v);
+void gl1_5_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params);
+void gl1_5_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params);
+void gl1_5_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation);
+void gl1_5_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl1_5_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype);
+void gl1_5_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values);
+void gl1_5_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values);
+void gl1_5_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values);
+void gl1_5_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param);
+void gl1_5_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_5_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor);
+void gl1_5_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref);
+void gl1_5_glEvalPoint2(void *_glfuncs, GLint i, GLint j);
+void gl1_5_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
+void gl1_5_glEvalPoint1(void *_glfuncs, GLint i);
+void gl1_5_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2);
+void gl1_5_glEvalCoord2fv(void *_glfuncs, const GLfloat* u);
+void gl1_5_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v);
+void gl1_5_glEvalCoord2dv(void *_glfuncs, const GLdouble* u);
+void gl1_5_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v);
+void gl1_5_glEvalCoord1fv(void *_glfuncs, const GLfloat* u);
+void gl1_5_glEvalCoord1f(void *_glfuncs, GLfloat u);
+void gl1_5_glEvalCoord1dv(void *_glfuncs, const GLdouble* u);
+void gl1_5_glEvalCoord1d(void *_glfuncs, GLdouble u);
+void gl1_5_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
+void gl1_5_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
+void gl1_5_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2);
+void gl1_5_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2);
+void gl1_5_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points);
+void gl1_5_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points);
+void gl1_5_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points);
+void gl1_5_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points);
+void gl1_5_glPushAttrib(void *_glfuncs, GLbitfield mask);
+void gl1_5_glPopAttrib(void *_glfuncs);
+void gl1_5_glAccum(void *_glfuncs, GLenum op, GLfloat value);
+void gl1_5_glIndexMask(void *_glfuncs, GLuint mask);
+void gl1_5_glClearIndex(void *_glfuncs, GLfloat c);
+void gl1_5_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_5_glPushName(void *_glfuncs, GLuint name);
+void gl1_5_glPopName(void *_glfuncs);
+void gl1_5_glPassThrough(void *_glfuncs, GLfloat token);
+void gl1_5_glLoadName(void *_glfuncs, GLuint name);
+void gl1_5_glInitNames(void *_glfuncs);
+GLint gl1_5_glRenderMode(void *_glfuncs, GLenum mode);
+void gl1_5_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer);
+void gl1_5_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer);
+void gl1_5_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params);
+void gl1_5_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param);
+void gl1_5_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params);
+void gl1_5_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param);
+void gl1_5_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params);
+void gl1_5_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param);
+void gl1_5_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_5_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl1_5_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_5_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl1_5_glShadeModel(void *_glfuncs, GLenum mode);
+void gl1_5_glPolygonStipple(void *_glfuncs, const GLubyte* mask);
+void gl1_5_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params);
+void gl1_5_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param);
+void gl1_5_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params);
+void gl1_5_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param);
+void gl1_5_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern);
+void gl1_5_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl1_5_glLightModeli(void *_glfuncs, GLenum pname, GLint param);
+void gl1_5_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl1_5_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_5_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params);
+void gl1_5_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param);
+void gl1_5_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params);
+void gl1_5_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param);
+void gl1_5_glFogiv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl1_5_glFogi(void *_glfuncs, GLenum pname, GLint param);
+void gl1_5_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl1_5_glFogf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl1_5_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode);
+void gl1_5_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation);
+void gl1_5_glVertex4sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl1_5_glVertex4iv(void *_glfuncs, const GLint* v);
+void gl1_5_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl1_5_glVertex4fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl1_5_glVertex4dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl1_5_glVertex3sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl1_5_glVertex3iv(void *_glfuncs, const GLint* v);
+void gl1_5_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl1_5_glVertex3fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_5_glVertex3dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_5_glVertex2sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glVertex2s(void *_glfuncs, GLshort x, GLshort y);
+void gl1_5_glVertex2iv(void *_glfuncs, const GLint* v);
+void gl1_5_glVertex2i(void *_glfuncs, GLint x, GLint y);
+void gl1_5_glVertex2fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl1_5_glVertex2dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl1_5_glTexCoord4sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl1_5_glTexCoord4iv(void *_glfuncs, const GLint* v);
+void gl1_5_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q);
+void gl1_5_glTexCoord4fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl1_5_glTexCoord4dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl1_5_glTexCoord3sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r);
+void gl1_5_glTexCoord3iv(void *_glfuncs, const GLint* v);
+void gl1_5_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r);
+void gl1_5_glTexCoord3fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r);
+void gl1_5_glTexCoord3dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r);
+void gl1_5_glTexCoord2sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t);
+void gl1_5_glTexCoord2iv(void *_glfuncs, const GLint* v);
+void gl1_5_glTexCoord2i(void *_glfuncs, GLint s, GLint t);
+void gl1_5_glTexCoord2fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t);
+void gl1_5_glTexCoord2dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t);
+void gl1_5_glTexCoord1sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glTexCoord1s(void *_glfuncs, GLshort s);
+void gl1_5_glTexCoord1iv(void *_glfuncs, const GLint* v);
+void gl1_5_glTexCoord1i(void *_glfuncs, GLint s);
+void gl1_5_glTexCoord1fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glTexCoord1f(void *_glfuncs, GLfloat s);
+void gl1_5_glTexCoord1dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glTexCoord1d(void *_glfuncs, GLdouble s);
+void gl1_5_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2);
+void gl1_5_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2);
+void gl1_5_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2);
+void gl1_5_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2);
+void gl1_5_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2);
+void gl1_5_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
+void gl1_5_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2);
+void gl1_5_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
+void gl1_5_glRasterPos4sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl1_5_glRasterPos4iv(void *_glfuncs, const GLint* v);
+void gl1_5_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl1_5_glRasterPos4fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl1_5_glRasterPos4dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl1_5_glRasterPos3sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl1_5_glRasterPos3iv(void *_glfuncs, const GLint* v);
+void gl1_5_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl1_5_glRasterPos3fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_5_glRasterPos3dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_5_glRasterPos2sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl1_5_glRasterPos2iv(void *_glfuncs, const GLint* v);
+void gl1_5_glRasterPos2i(void *_glfuncs, GLint x, GLint y);
+void gl1_5_glRasterPos2fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl1_5_glRasterPos2dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl1_5_glNormal3sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz);
+void gl1_5_glNormal3iv(void *_glfuncs, const GLint* v);
+void gl1_5_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz);
+void gl1_5_glNormal3fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz);
+void gl1_5_glNormal3dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz);
+void gl1_5_glNormal3bv(void *_glfuncs, const GLbyte* v);
+void gl1_5_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz);
+void gl1_5_glIndexsv(void *_glfuncs, const GLshort* c);
+void gl1_5_glIndexs(void *_glfuncs, GLshort c);
+void gl1_5_glIndexiv(void *_glfuncs, const GLint* c);
+void gl1_5_glIndexi(void *_glfuncs, GLint c);
+void gl1_5_glIndexfv(void *_glfuncs, const GLfloat* c);
+void gl1_5_glIndexf(void *_glfuncs, GLfloat c);
+void gl1_5_glIndexdv(void *_glfuncs, const GLdouble* c);
+void gl1_5_glIndexd(void *_glfuncs, GLdouble c);
+void gl1_5_glEnd(void *_glfuncs);
+void gl1_5_glEdgeFlagv(void *_glfuncs, const GLboolean* flag);
+void gl1_5_glEdgeFlag(void *_glfuncs, GLboolean flag);
+void gl1_5_glColor4usv(void *_glfuncs, const GLushort* v);
+void gl1_5_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha);
+void gl1_5_glColor4uiv(void *_glfuncs, const GLuint* v);
+void gl1_5_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha);
+void gl1_5_glColor4ubv(void *_glfuncs, const GLubyte* v);
+void gl1_5_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
+void gl1_5_glColor4sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha);
+void gl1_5_glColor4iv(void *_glfuncs, const GLint* v);
+void gl1_5_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha);
+void gl1_5_glColor4fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl1_5_glColor4dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
+void gl1_5_glColor4bv(void *_glfuncs, const GLbyte* v);
+void gl1_5_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
+void gl1_5_glColor3usv(void *_glfuncs, const GLushort* v);
+void gl1_5_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl1_5_glColor3uiv(void *_glfuncs, const GLuint* v);
+void gl1_5_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl1_5_glColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl1_5_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl1_5_glColor3sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl1_5_glColor3iv(void *_glfuncs, const GLint* v);
+void gl1_5_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl1_5_glColor3fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl1_5_glColor3dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl1_5_glColor3bv(void *_glfuncs, const GLbyte* v);
+void gl1_5_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl1_5_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap);
+void gl1_5_glBegin(void *_glfuncs, GLenum mode);
+void gl1_5_glListBase(void *_glfuncs, GLuint base);
+GLuint gl1_5_glGenLists(void *_glfuncs, GLsizei range_);
+void gl1_5_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_);
+void gl1_5_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists);
+void gl1_5_glCallList(void *_glfuncs, GLuint list);
+void gl1_5_glEndList(void *_glfuncs);
+void gl1_5_glNewList(void *_glfuncs, GLuint list, GLenum mode);
+void gl1_5_glPushClientAttrib(void *_glfuncs, GLbitfield mask);
+void gl1_5_glPopClientAttrib(void *_glfuncs);
+void gl1_5_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities);
+GLboolean gl1_5_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences);
+void gl1_5_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_5_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_5_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_5_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer);
+void gl1_5_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_5_glEnableClientState(void *_glfuncs, GLenum array);
+void gl1_5_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer);
+void gl1_5_glDisableClientState(void *_glfuncs, GLenum array);
+void gl1_5_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_5_glArrayElement(void *_glfuncs, GLint i);
+void gl1_5_glResetMinmax(void *_glfuncs, GLenum target);
+void gl1_5_glResetHistogram(void *_glfuncs, GLenum target);
+void gl1_5_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink);
+void gl1_5_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink);
+void gl1_5_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_5_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_5_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl1_5_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_5_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_5_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl1_5_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column);
+void gl1_5_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span);
+void gl1_5_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_5_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_5_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image);
+void gl1_5_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl1_5_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl1_5_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_5_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params);
+void gl1_5_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_5_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params);
+void gl1_5_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image);
+void gl1_5_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image);
+void gl1_5_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+void gl1_5_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data);
+void gl1_5_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl1_5_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl1_5_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table);
+void gl1_5_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl1_5_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl1_5_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl1_5_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table);
+void gl1_5_glMultTransposeMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_5_glMultTransposeMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_5_glLoadTransposeMatrixd(void *_glfuncs, const GLdouble* m);
+void gl1_5_glLoadTransposeMatrixf(void *_glfuncs, const GLfloat* m);
+void gl1_5_glMultiTexCoord4sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl1_5_glMultiTexCoord4s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl1_5_glMultiTexCoord4iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl1_5_glMultiTexCoord4i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r, GLint q);
+void gl1_5_glMultiTexCoord4fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl1_5_glMultiTexCoord4f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl1_5_glMultiTexCoord4dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl1_5_glMultiTexCoord4d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl1_5_glMultiTexCoord3sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl1_5_glMultiTexCoord3s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r);
+void gl1_5_glMultiTexCoord3iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl1_5_glMultiTexCoord3i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r);
+void gl1_5_glMultiTexCoord3fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl1_5_glMultiTexCoord3f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r);
+void gl1_5_glMultiTexCoord3dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl1_5_glMultiTexCoord3d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r);
+void gl1_5_glMultiTexCoord2sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl1_5_glMultiTexCoord2s(void *_glfuncs, GLenum target, GLshort s, GLshort t);
+void gl1_5_glMultiTexCoord2iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl1_5_glMultiTexCoord2i(void *_glfuncs, GLenum target, GLint s, GLint t);
+void gl1_5_glMultiTexCoord2fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl1_5_glMultiTexCoord2f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t);
+void gl1_5_glMultiTexCoord2dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl1_5_glMultiTexCoord2d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t);
+void gl1_5_glMultiTexCoord1sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl1_5_glMultiTexCoord1s(void *_glfuncs, GLenum target, GLshort s);
+void gl1_5_glMultiTexCoord1iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl1_5_glMultiTexCoord1i(void *_glfuncs, GLenum target, GLint s);
+void gl1_5_glMultiTexCoord1fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl1_5_glMultiTexCoord1f(void *_glfuncs, GLenum target, GLfloat s);
+void gl1_5_glMultiTexCoord1dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl1_5_glMultiTexCoord1d(void *_glfuncs, GLenum target, GLdouble s);
+void gl1_5_glClientActiveTexture(void *_glfuncs, GLenum texture);
+void gl1_5_glWindowPos3sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glWindowPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl1_5_glWindowPos3iv(void *_glfuncs, const GLint* v);
+void gl1_5_glWindowPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl1_5_glWindowPos3fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glWindowPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl1_5_glWindowPos3dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glWindowPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl1_5_glWindowPos2sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glWindowPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl1_5_glWindowPos2iv(void *_glfuncs, const GLint* v);
+void gl1_5_glWindowPos2i(void *_glfuncs, GLint x, GLint y);
+void gl1_5_glWindowPos2fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glWindowPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl1_5_glWindowPos2dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glWindowPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl1_5_glSecondaryColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_5_glSecondaryColor3usv(void *_glfuncs, const GLushort* v);
+void gl1_5_glSecondaryColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl1_5_glSecondaryColor3uiv(void *_glfuncs, const GLuint* v);
+void gl1_5_glSecondaryColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl1_5_glSecondaryColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl1_5_glSecondaryColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl1_5_glSecondaryColor3sv(void *_glfuncs, const GLshort* v);
+void gl1_5_glSecondaryColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl1_5_glSecondaryColor3iv(void *_glfuncs, const GLint* v);
+void gl1_5_glSecondaryColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl1_5_glSecondaryColor3fv(void *_glfuncs, const GLfloat* v);
+void gl1_5_glSecondaryColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl1_5_glSecondaryColor3dv(void *_glfuncs, const GLdouble* v);
+void gl1_5_glSecondaryColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl1_5_glSecondaryColor3bv(void *_glfuncs, const GLbyte* v);
+void gl1_5_glSecondaryColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl1_5_glFogCoordPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl1_5_glFogCoorddv(void *_glfuncs, const GLdouble* coord);
+void gl1_5_glFogCoordd(void *_glfuncs, GLdouble coord);
+void gl1_5_glFogCoordfv(void *_glfuncs, const GLfloat* coord);
+void gl1_5_glFogCoordf(void *_glfuncs, GLfloat coord);
+
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.5/gl.go b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.5/gl.go
new file mode 100644
index 000000000..463f66f40
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/1.5/gl.go
@@ -0,0 +1,4237 @@
+// ** file automatically generated by glgen -- do not edit manually **
+
+package GL
+
+// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
+// #cgo LDFLAGS: -lstdc++
+// #cgo pkg-config: Qt5Core Qt5OpenGL
+//
+// #include "funcs.h"
+//
+// void free(void*);
+//
+import "C"
+
+import (
+ "fmt"
+ "reflect"
+ "unsafe"
+
+ "gopkg.in/qml.v1/gl/glbase"
+)
+
+// API returns a value that offers methods matching the OpenGL version 1.5 API.
+//
+// The returned API must not be used after the provided OpenGL context becomes invalid.
+func API(context glbase.Contexter) *GL {
+ gl := &GL{}
+ gl.funcs = C.gl1_5_funcs()
+ if gl.funcs == nil {
+ panic(fmt.Errorf("OpenGL version 1.5 is not available"))
+ }
+ return gl
+}
+
+// GL implements the OpenGL version 1.5 API. Values of this
+// type must be created via the API function, and it must not be used after
+// the associated OpenGL context becomes invalid.
+type GL struct {
+ funcs unsafe.Pointer
+}
+
+const (
+ FALSE = 0
+ TRUE = 1
+ NONE = 0
+
+ BYTE = 0x1400
+ UNSIGNED_BYTE = 0x1401
+ SHORT = 0x1402
+ UNSIGNED_SHORT = 0x1403
+ INT = 0x1404
+ UNSIGNED_INT = 0x1405
+ FLOAT = 0x1406
+ N2_BYTES = 0x1407
+ N3_BYTES = 0x1408
+ N4_BYTES = 0x1409
+ DOUBLE = 0x140A
+
+ ACCUM = 0x0100
+ LOAD = 0x0101
+ RETURN = 0x0102
+ MULT = 0x0103
+ ADD = 0x0104
+
+ ACCUM_BUFFER_BIT = 0x00000200
+ ALL_ATTRIB_BITS = 0xFFFFFFFF
+ COLOR_BUFFER_BIT = 0x00004000
+ CURRENT_BIT = 0x00000001
+ DEPTH_BUFFER_BIT = 0x00000100
+ ENABLE_BIT = 0x00002000
+ EVAL_BIT = 0x00010000
+ FOG_BIT = 0x00000080
+ HINT_BIT = 0x00008000
+ LIGHTING_BIT = 0x00000040
+ LINE_BIT = 0x00000004
+ LIST_BIT = 0x00020000
+ MULTISAMPLE_BIT = 0x20000000
+ PIXEL_MODE_BIT = 0x00000020
+ POINT_BIT = 0x00000002
+ POLYGON_BIT = 0x00000008
+ POLYGON_STIPPLE_BIT = 0x00000010
+ SCISSOR_BIT = 0x00080000
+ STENCIL_BUFFER_BIT = 0x00000400
+ TEXTURE_BIT = 0x00040000
+ TRANSFORM_BIT = 0x00001000
+ VIEWPORT_BIT = 0x00000800
+
+ ALWAYS = 0x0207
+ EQUAL = 0x0202
+ GEQUAL = 0x0206
+ GREATER = 0x0204
+ LEQUAL = 0x0203
+ LESS = 0x0201
+ NEVER = 0x0200
+ NOTEQUAL = 0x0205
+
+ LOGIC_OP = 0x0BF1
+
+ DST_ALPHA = 0x0304
+ ONE = 1
+ ONE_MINUS_DST_ALPHA = 0x0305
+ ONE_MINUS_SRC_ALPHA = 0x0303
+ ONE_MINUS_SRC_COLOR = 0x0301
+ SRC_ALPHA = 0x0302
+ SRC_COLOR = 0x0300
+ ZERO = 0
+
+ DST_COLOR = 0x0306
+ ONE_MINUS_DST_COLOR = 0x0307
+ SRC_ALPHA_SATURATE = 0x0308
+
+ CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF
+ CLIENT_PIXEL_STORE_BIT = 0x00000001
+ CLIENT_VERTEX_ARRAY_BIT = 0x00000002
+
+ CLIP_PLANE0 = 0x3000
+ CLIP_PLANE1 = 0x3001
+ CLIP_PLANE2 = 0x3002
+ CLIP_PLANE3 = 0x3003
+ CLIP_PLANE4 = 0x3004
+ CLIP_PLANE5 = 0x3005
+
+ BACK = 0x0405
+ FRONT = 0x0404
+ FRONT_AND_BACK = 0x0408
+
+ AMBIENT = 0x1200
+ AMBIENT_AND_DIFFUSE = 0x1602
+ DIFFUSE = 0x1201
+ EMISSION = 0x1600
+ SPECULAR = 0x1202
+
+ AUX0 = 0x0409
+ AUX1 = 0x040A
+ AUX2 = 0x040B
+ AUX3 = 0x040C
+ BACK_LEFT = 0x0402
+ BACK_RIGHT = 0x0403
+ FRONT_LEFT = 0x0400
+ FRONT_RIGHT = 0x0401
+ LEFT = 0x0406
+ RIGHT = 0x0407
+
+ ALPHA_TEST = 0x0BC0
+ AUTO_NORMAL = 0x0D80
+ BLEND = 0x0BE2
+ COLOR_ARRAY = 0x8076
+ COLOR_LOGIC_OP = 0x0BF2
+ COLOR_MATERIAL = 0x0B57
+ CULL_FACE = 0x0B44
+ DEPTH_TEST = 0x0B71
+ DITHER = 0x0BD0
+ EDGE_FLAG_ARRAY = 0x8079
+ FOG = 0x0B60
+ INDEX_ARRAY = 0x8077
+ INDEX_LOGIC_OP = 0x0BF1
+ LIGHT0 = 0x4000
+ LIGHT1 = 0x4001
+ LIGHT2 = 0x4002
+ LIGHT3 = 0x4003
+ LIGHT4 = 0x4004
+ LIGHT5 = 0x4005
+ LIGHT6 = 0x4006
+ LIGHT7 = 0x4007
+ LIGHTING = 0x0B50
+ LINE_SMOOTH = 0x0B20
+ LINE_STIPPLE = 0x0B24
+ MAP1_COLOR_4 = 0x0D90
+ MAP1_INDEX = 0x0D91
+ MAP1_NORMAL = 0x0D92
+ MAP1_TEXTURE_COORD_1 = 0x0D93
+ MAP1_TEXTURE_COORD_2 = 0x0D94
+ MAP1_TEXTURE_COORD_3 = 0x0D95
+ MAP1_TEXTURE_COORD_4 = 0x0D96
+ MAP1_VERTEX_3 = 0x0D97
+ MAP1_VERTEX_4 = 0x0D98
+ MAP2_COLOR_4 = 0x0DB0
+ MAP2_INDEX = 0x0DB1
+ MAP2_NORMAL = 0x0DB2
+ MAP2_TEXTURE_COORD_1 = 0x0DB3
+ MAP2_TEXTURE_COORD_2 = 0x0DB4
+ MAP2_TEXTURE_COORD_3 = 0x0DB5
+ MAP2_TEXTURE_COORD_4 = 0x0DB6
+ MAP2_VERTEX_3 = 0x0DB7
+ MAP2_VERTEX_4 = 0x0DB8
+ NORMALIZE = 0x0BA1
+ NORMAL_ARRAY = 0x8075
+ POINT_SMOOTH = 0x0B10
+ POLYGON_OFFSET_FILL = 0x8037
+ POLYGON_OFFSET_LINE = 0x2A02
+ POLYGON_OFFSET_POINT = 0x2A01
+ POLYGON_SMOOTH = 0x0B41
+ POLYGON_STIPPLE = 0x0B42
+ SCISSOR_TEST = 0x0C11
+ STENCIL_TEST = 0x0B90
+ TEXTURE_1D = 0x0DE0
+ TEXTURE_2D = 0x0DE1
+ TEXTURE_COORD_ARRAY = 0x8078
+ TEXTURE_GEN_Q = 0x0C63
+ TEXTURE_GEN_R = 0x0C62
+ TEXTURE_GEN_S = 0x0C60
+ TEXTURE_GEN_T = 0x0C61
+ VERTEX_ARRAY = 0x8074
+
+ INVALID_ENUM = 0x0500
+ INVALID_OPERATION = 0x0502
+ INVALID_VALUE = 0x0501
+ NO_ERROR = 0
+ OUT_OF_MEMORY = 0x0505
+ STACK_OVERFLOW = 0x0503
+ STACK_UNDERFLOW = 0x0504
+
+ N2D = 0x0600
+ N3D = 0x0601
+ N3D_COLOR = 0x0602
+ N3D_COLOR_TEXTURE = 0x0603
+ N4D_COLOR_TEXTURE = 0x0604
+
+ BITMAP_TOKEN = 0x0704
+ COPY_PIXEL_TOKEN = 0x0706
+ DRAW_PIXEL_TOKEN = 0x0705
+ LINE_RESET_TOKEN = 0x0707
+ LINE_TOKEN = 0x0702
+ PASS_THROUGH_TOKEN = 0x0700
+ POINT_TOKEN = 0x0701
+ POLYGON_TOKEN = 0x0703
+
+ EXP = 0x0800
+ EXP2 = 0x0801
+ LINEAR = 0x2601
+
+ FOG_COLOR = 0x0B66
+ FOG_DENSITY = 0x0B62
+ FOG_END = 0x0B64
+ FOG_INDEX = 0x0B61
+ FOG_MODE = 0x0B65
+ FOG_START = 0x0B63
+
+ CCW = 0x0901
+ CW = 0x0900
+
+ COEFF = 0x0A00
+ DOMAIN = 0x0A02
+ ORDER = 0x0A01
+
+ PIXEL_MAP_A_TO_A = 0x0C79
+ PIXEL_MAP_B_TO_B = 0x0C78
+ PIXEL_MAP_G_TO_G = 0x0C77
+ PIXEL_MAP_I_TO_A = 0x0C75
+ PIXEL_MAP_I_TO_B = 0x0C74
+ PIXEL_MAP_I_TO_G = 0x0C73
+ PIXEL_MAP_I_TO_I = 0x0C70
+ PIXEL_MAP_I_TO_R = 0x0C72
+ PIXEL_MAP_R_TO_R = 0x0C76
+ PIXEL_MAP_S_TO_S = 0x0C71
+
+ ACCUM_ALPHA_BITS = 0x0D5B
+ ACCUM_BLUE_BITS = 0x0D5A
+ ACCUM_CLEAR_VALUE = 0x0B80
+ ACCUM_GREEN_BITS = 0x0D59
+ ACCUM_RED_BITS = 0x0D58
+ ALIASED_LINE_WIDTH_RANGE = 0x846E
+ ALIASED_POINT_SIZE_RANGE = 0x846D
+ ALPHA_BIAS = 0x0D1D
+ ALPHA_BITS = 0x0D55
+ ALPHA_SCALE = 0x0D1C
+ ALPHA_TEST_FUNC = 0x0BC1
+ ALPHA_TEST_REF = 0x0BC2
+ ATTRIB_STACK_DEPTH = 0x0BB0
+ AUX_BUFFERS = 0x0C00
+ BLEND_DST = 0x0BE0
+ BLEND_SRC = 0x0BE1
+ BLUE_BIAS = 0x0D1B
+ BLUE_BITS = 0x0D54
+ BLUE_SCALE = 0x0D1A
+ CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1
+ COLOR_ARRAY_SIZE = 0x8081
+ COLOR_ARRAY_STRIDE = 0x8083
+ COLOR_ARRAY_TYPE = 0x8082
+ COLOR_CLEAR_VALUE = 0x0C22
+ COLOR_MATERIAL_FACE = 0x0B55
+ COLOR_MATERIAL_PARAMETER = 0x0B56
+ COLOR_WRITEMASK = 0x0C23
+ CULL_FACE_MODE = 0x0B45
+ CURRENT_COLOR = 0x0B00
+ CURRENT_INDEX = 0x0B01
+ CURRENT_NORMAL = 0x0B02
+ CURRENT_RASTER_COLOR = 0x0B04
+ CURRENT_RASTER_DISTANCE = 0x0B09
+ CURRENT_RASTER_INDEX = 0x0B05
+ CURRENT_RASTER_POSITION = 0x0B07
+ CURRENT_RASTER_POSITION_VALID = 0x0B08
+ CURRENT_RASTER_TEXTURE_COORDS = 0x0B06
+ CURRENT_TEXTURE_COORDS = 0x0B03
+ DEPTH_BIAS = 0x0D1F
+ DEPTH_BITS = 0x0D56
+ DEPTH_CLEAR_VALUE = 0x0B73
+ DEPTH_FUNC = 0x0B74
+ DEPTH_RANGE = 0x0B70
+ DEPTH_SCALE = 0x0D1E
+ DEPTH_WRITEMASK = 0x0B72
+ DOUBLEBUFFER = 0x0C32
+ DRAW_BUFFER = 0x0C01
+ EDGE_FLAG = 0x0B43
+ EDGE_FLAG_ARRAY_STRIDE = 0x808C
+ FEEDBACK_BUFFER_SIZE = 0x0DF1
+ FEEDBACK_BUFFER_TYPE = 0x0DF2
+ FOG_HINT = 0x0C54
+ FRONT_FACE = 0x0B46
+ GREEN_BIAS = 0x0D19
+ GREEN_BITS = 0x0D53
+ GREEN_SCALE = 0x0D18
+ INDEX_ARRAY_STRIDE = 0x8086
+ INDEX_ARRAY_TYPE = 0x8085
+ INDEX_BITS = 0x0D51
+ INDEX_CLEAR_VALUE = 0x0C20
+ INDEX_MODE = 0x0C30
+ INDEX_OFFSET = 0x0D13
+ INDEX_SHIFT = 0x0D12
+ INDEX_WRITEMASK = 0x0C21
+ LIGHT_MODEL_AMBIENT = 0x0B53
+ LIGHT_MODEL_COLOR_CONTROL = 0x81F8
+ LIGHT_MODEL_LOCAL_VIEWER = 0x0B51
+ LIGHT_MODEL_TWO_SIDE = 0x0B52
+ LINE_SMOOTH_HINT = 0x0C52
+ LINE_STIPPLE_PATTERN = 0x0B25
+ LINE_STIPPLE_REPEAT = 0x0B26
+ LINE_WIDTH = 0x0B21
+ LINE_WIDTH_GRANULARITY = 0x0B23
+ LINE_WIDTH_RANGE = 0x0B22
+ LIST_BASE = 0x0B32
+ LIST_INDEX = 0x0B33
+ LIST_MODE = 0x0B30
+ LOGIC_OP_MODE = 0x0BF0
+ MAP1_GRID_DOMAIN = 0x0DD0
+ MAP1_GRID_SEGMENTS = 0x0DD1
+ MAP2_GRID_DOMAIN = 0x0DD2
+ MAP2_GRID_SEGMENTS = 0x0DD3
+ MAP_COLOR = 0x0D10
+ MAP_STENCIL = 0x0D11
+ MATRIX_MODE = 0x0BA0
+ MAX_ATTRIB_STACK_DEPTH = 0x0D35
+ MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B
+ MAX_CLIP_PLANES = 0x0D32
+ MAX_EVAL_ORDER = 0x0D30
+ MAX_LIGHTS = 0x0D31
+ MAX_LIST_NESTING = 0x0B31
+ MAX_MODELVIEW_STACK_DEPTH = 0x0D36
+ MAX_NAME_STACK_DEPTH = 0x0D37
+ MAX_PIXEL_MAP_TABLE = 0x0D34
+ MAX_PROJECTION_STACK_DEPTH = 0x0D38
+ MAX_TEXTURE_SIZE = 0x0D33
+ MAX_TEXTURE_STACK_DEPTH = 0x0D39
+ MAX_VIEWPORT_DIMS = 0x0D3A
+ MODELVIEW_MATRIX = 0x0BA6
+ MODELVIEW_STACK_DEPTH = 0x0BA3
+ NAME_STACK_DEPTH = 0x0D70
+ NORMAL_ARRAY_STRIDE = 0x807F
+ NORMAL_ARRAY_TYPE = 0x807E
+ PACK_ALIGNMENT = 0x0D05
+ PACK_LSB_FIRST = 0x0D01
+ PACK_ROW_LENGTH = 0x0D02
+ PACK_SKIP_PIXELS = 0x0D04
+ PACK_SKIP_ROWS = 0x0D03
+ PACK_SWAP_BYTES = 0x0D00
+ PERSPECTIVE_CORRECTION_HINT = 0x0C50
+ PIXEL_MAP_A_TO_A_SIZE = 0x0CB9
+ PIXEL_MAP_B_TO_B_SIZE = 0x0CB8
+ PIXEL_MAP_G_TO_G_SIZE = 0x0CB7
+ PIXEL_MAP_I_TO_A_SIZE = 0x0CB5
+ PIXEL_MAP_I_TO_B_SIZE = 0x0CB4
+ PIXEL_MAP_I_TO_G_SIZE = 0x0CB3
+ PIXEL_MAP_I_TO_I_SIZE = 0x0CB0
+ PIXEL_MAP_I_TO_R_SIZE = 0x0CB2
+ PIXEL_MAP_R_TO_R_SIZE = 0x0CB6
+ PIXEL_MAP_S_TO_S_SIZE = 0x0CB1
+ POINT_SIZE = 0x0B11
+ POINT_SIZE_GRANULARITY = 0x0B13
+ POINT_SIZE_RANGE = 0x0B12
+ POINT_SMOOTH_HINT = 0x0C51
+ POLYGON_MODE = 0x0B40
+ POLYGON_OFFSET_FACTOR = 0x8038
+ POLYGON_OFFSET_UNITS = 0x2A00
+ POLYGON_SMOOTH_HINT = 0x0C53
+ PROJECTION_MATRIX = 0x0BA7
+ PROJECTION_STACK_DEPTH = 0x0BA4
+ READ_BUFFER = 0x0C02
+ RED_BIAS = 0x0D15
+ RED_BITS = 0x0D52
+ RED_SCALE = 0x0D14
+ RENDER_MODE = 0x0C40
+ RGBA_MODE = 0x0C31
+ SCISSOR_BOX = 0x0C10
+ SELECTION_BUFFER_SIZE = 0x0DF4
+ SHADE_MODEL = 0x0B54
+ SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23
+ SMOOTH_LINE_WIDTH_RANGE = 0x0B22
+ SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13
+ SMOOTH_POINT_SIZE_RANGE = 0x0B12
+ STENCIL_BITS = 0x0D57
+ STENCIL_CLEAR_VALUE = 0x0B91
+ STENCIL_FAIL = 0x0B94
+ STENCIL_FUNC = 0x0B92
+ STENCIL_PASS_DEPTH_FAIL = 0x0B95
+ STENCIL_PASS_DEPTH_PASS = 0x0B96
+ STENCIL_REF = 0x0B97
+ STENCIL_VALUE_MASK = 0x0B93
+ STENCIL_WRITEMASK = 0x0B98
+ STEREO = 0x0C33
+ SUBPIXEL_BITS = 0x0D50
+ TEXTURE_BINDING_1D = 0x8068
+ TEXTURE_BINDING_2D = 0x8069
+ TEXTURE_BINDING_3D = 0x806A
+ TEXTURE_COORD_ARRAY_SIZE = 0x8088
+ TEXTURE_COORD_ARRAY_STRIDE = 0x808A
+ TEXTURE_COORD_ARRAY_TYPE = 0x8089
+ TEXTURE_MATRIX = 0x0BA8
+ TEXTURE_STACK_DEPTH = 0x0BA5
+ UNPACK_ALIGNMENT = 0x0CF5
+ UNPACK_LSB_FIRST = 0x0CF1
+ UNPACK_ROW_LENGTH = 0x0CF2
+ UNPACK_SKIP_PIXELS = 0x0CF4
+ UNPACK_SKIP_ROWS = 0x0CF3
+ UNPACK_SWAP_BYTES = 0x0CF0
+ VERTEX_ARRAY_SIZE = 0x807A
+ VERTEX_ARRAY_STRIDE = 0x807C
+ VERTEX_ARRAY_TYPE = 0x807B
+ VIEWPORT = 0x0BA2
+ ZOOM_X = 0x0D16
+ ZOOM_Y = 0x0D17
+
+ COLOR_ARRAY_POINTER = 0x8090
+ EDGE_FLAG_ARRAY_POINTER = 0x8093
+ FEEDBACK_BUFFER_POINTER = 0x0DF0
+ INDEX_ARRAY_POINTER = 0x8091
+ NORMAL_ARRAY_POINTER = 0x808F
+ SELECTION_BUFFER_POINTER = 0x0DF3
+ TEXTURE_COORD_ARRAY_POINTER = 0x8092
+ VERTEX_ARRAY_POINTER = 0x808E
+
+ TEXTURE_ALPHA_SIZE = 0x805F
+ TEXTURE_BLUE_SIZE = 0x805E
+ TEXTURE_BORDER = 0x1005
+ TEXTURE_BORDER_COLOR = 0x1004
+ TEXTURE_COMPONENTS = 0x1003
+ TEXTURE_GREEN_SIZE = 0x805D
+ TEXTURE_HEIGHT = 0x1001
+ TEXTURE_INTENSITY_SIZE = 0x8061
+ TEXTURE_INTERNAL_FORMAT = 0x1003
+ TEXTURE_LUMINANCE_SIZE = 0x8060
+ TEXTURE_MAG_FILTER = 0x2800
+ TEXTURE_MIN_FILTER = 0x2801
+ TEXTURE_PRIORITY = 0x8066
+ TEXTURE_RED_SIZE = 0x805C
+ TEXTURE_RESIDENT = 0x8067
+ TEXTURE_WIDTH = 0x1000
+ TEXTURE_WRAP_S = 0x2802
+ TEXTURE_WRAP_T = 0x2803
+
+ DONT_CARE = 0x1100
+ FASTEST = 0x1101
+ NICEST = 0x1102
+
+ GENERATE_MIPMAP_HINT = 0x8192
+ TEXTURE_COMPRESSION_HINT = 0x84EF
+
+ C3F_V3F = 0x2A24
+ C4F_N3F_V3F = 0x2A26
+ C4UB_V2F = 0x2A22
+ C4UB_V3F = 0x2A23
+ N3F_V3F = 0x2A25
+ T2F_C3F_V3F = 0x2A2A
+ T2F_C4F_N3F_V3F = 0x2A2C
+ T2F_C4UB_V3F = 0x2A29
+ T2F_N3F_V3F = 0x2A2B
+ T2F_V3F = 0x2A27
+ T4F_C4F_N3F_V4F = 0x2A2D
+ T4F_V4F = 0x2A28
+ V2F = 0x2A20
+ V3F = 0x2A21
+
+ MODULATE = 0x2100
+ REPLACE = 0x1E01
+
+ SEPARATE_SPECULAR_COLOR = 0x81FA
+ SINGLE_COLOR = 0x81F9
+
+ CONSTANT_ATTENUATION = 0x1207
+ LINEAR_ATTENUATION = 0x1208
+ POSITION = 0x1203
+ QUADRATIC_ATTENUATION = 0x1209
+ SPOT_CUTOFF = 0x1206
+ SPOT_DIRECTION = 0x1204
+ SPOT_EXPONENT = 0x1205
+
+ COMPILE = 0x1300
+ COMPILE_AND_EXECUTE = 0x1301
+
+ AND = 0x1501
+ AND_INVERTED = 0x1504
+ AND_REVERSE = 0x1502
+ CLEAR = 0x1500
+ COPY = 0x1503
+ COPY_INVERTED = 0x150C
+ EQUIV = 0x1509
+ INVERT = 0x150A
+ NAND = 0x150E
+ NOOP = 0x1505
+ NOR = 0x1508
+ OR = 0x1507
+ OR_INVERTED = 0x150D
+ OR_REVERSE = 0x150B
+ SET = 0x150F
+ XOR = 0x1506
+
+ COLOR_INDEXES = 0x1603
+ SHININESS = 0x1601
+
+ MODELVIEW = 0x1700
+ PROJECTION = 0x1701
+ TEXTURE = 0x1702
+
+ LINE = 0x1B01
+ POINT = 0x1B00
+
+ FILL = 0x1B02
+
+ COLOR = 0x1800
+ DEPTH = 0x1801
+ STENCIL = 0x1802
+
+ ALPHA = 0x1906
+ BLUE = 0x1905
+ COLOR_INDEX = 0x1900
+ DEPTH_COMPONENT = 0x1902
+ GREEN = 0x1904
+ LUMINANCE = 0x1909
+ LUMINANCE_ALPHA = 0x190A
+ RED = 0x1903
+ RGB = 0x1907
+ RGBA = 0x1908
+ STENCIL_INDEX = 0x1901
+
+ ALPHA12 = 0x803D
+ ALPHA16 = 0x803E
+ ALPHA4 = 0x803B
+ ALPHA8 = 0x803C
+ INTENSITY = 0x8049
+ INTENSITY12 = 0x804C
+ INTENSITY16 = 0x804D
+ INTENSITY4 = 0x804A
+ INTENSITY8 = 0x804B
+ LUMINANCE12 = 0x8041
+ LUMINANCE12_ALPHA12 = 0x8047
+ LUMINANCE12_ALPHA4 = 0x8046
+ LUMINANCE16 = 0x8042
+ LUMINANCE16_ALPHA16 = 0x8048
+ LUMINANCE4 = 0x803F
+ LUMINANCE4_ALPHA4 = 0x8043
+ LUMINANCE6_ALPHA2 = 0x8044
+ LUMINANCE8 = 0x8040
+ LUMINANCE8_ALPHA8 = 0x8045
+ R3_G3_B2 = 0x2A10
+ RGB10 = 0x8052
+ RGB10_A2 = 0x8059
+ RGB12 = 0x8053
+ RGB16 = 0x8054
+ RGB4 = 0x804F
+ RGB5 = 0x8050
+ RGB5_A1 = 0x8057
+ RGB8 = 0x8051
+ RGBA12 = 0x805A
+ RGBA16 = 0x805B
+ RGBA2 = 0x8055
+ RGBA4 = 0x8056
+ RGBA8 = 0x8058
+
+ PACK_IMAGE_HEIGHT = 0x806C
+ PACK_SKIP_IMAGES = 0x806B
+ UNPACK_IMAGE_HEIGHT = 0x806E
+ UNPACK_SKIP_IMAGES = 0x806D
+
+ BITMAP = 0x1A00
+ UNSIGNED_BYTE_3_3_2 = 0x8032
+ UNSIGNED_INT_10_10_10_2 = 0x8036
+ UNSIGNED_INT_8_8_8_8 = 0x8035
+ UNSIGNED_SHORT_4_4_4_4 = 0x8033
+ UNSIGNED_SHORT_5_5_5_1 = 0x8034
+
+ POINT_DISTANCE_ATTENUATION = 0x8129
+ POINT_FADE_THRESHOLD_SIZE = 0x8128
+ POINT_SIZE_MAX = 0x8127
+ POINT_SIZE_MIN = 0x8126
+
+ LINES = 0x0001
+ LINE_LOOP = 0x0002
+ LINE_STRIP = 0x0003
+ POINTS = 0x0000
+ POLYGON = 0x0009
+ QUADS = 0x0007
+ QUAD_STRIP = 0x0008
+ TRIANGLES = 0x0004
+ TRIANGLE_FAN = 0x0006
+ TRIANGLE_STRIP = 0x0005
+
+ FEEDBACK = 0x1C01
+ RENDER = 0x1C00
+ SELECT = 0x1C02
+
+ FLAT = 0x1D00
+ SMOOTH = 0x1D01
+
+ DECR = 0x1E03
+ INCR = 0x1E02
+ KEEP = 0x1E00
+
+ EXTENSIONS = 0x1F03
+ RENDERER = 0x1F01
+ VENDOR = 0x1F00
+ VERSION = 0x1F02
+
+ S = 0x2000
+ T = 0x2001
+ R = 0x2002
+ Q = 0x2003
+
+ DECAL = 0x2101
+
+ TEXTURE_ENV_COLOR = 0x2201
+ TEXTURE_ENV_MODE = 0x2200
+
+ TEXTURE_ENV = 0x2300
+
+ EYE_LINEAR = 0x2400
+ OBJECT_LINEAR = 0x2401
+ SPHERE_MAP = 0x2402
+
+ EYE_PLANE = 0x2502
+ OBJECT_PLANE = 0x2501
+ TEXTURE_GEN_MODE = 0x2500
+
+ NEAREST = 0x2600
+
+ LINEAR_MIPMAP_LINEAR = 0x2703
+ LINEAR_MIPMAP_NEAREST = 0x2701
+ NEAREST_MIPMAP_LINEAR = 0x2702
+ NEAREST_MIPMAP_NEAREST = 0x2700
+
+ GENERATE_MIPMAP = 0x8191
+ TEXTURE_WRAP_R = 0x8072
+
+ PROXY_TEXTURE_1D = 0x8063
+ PROXY_TEXTURE_2D = 0x8064
+ PROXY_TEXTURE_3D = 0x8070
+ TEXTURE_3D = 0x806F
+ TEXTURE_BASE_LEVEL = 0x813C
+ TEXTURE_MAX_LEVEL = 0x813D
+ TEXTURE_MAX_LOD = 0x813B
+ TEXTURE_MIN_LOD = 0x813A
+
+ CLAMP = 0x2900
+ CLAMP_TO_BORDER = 0x812D
+ CLAMP_TO_EDGE = 0x812F
+ REPEAT = 0x2901
+
+ CONSTANT_COLOR = 0x8001
+ ONE_MINUS_CONSTANT_COLOR = 0x8002
+ CONSTANT_ALPHA = 0x8003
+ ONE_MINUS_CONSTANT_ALPHA = 0x8004
+ FUNC_ADD = 0x8006
+ MIN = 0x8007
+ MAX = 0x8008
+ FUNC_SUBTRACT = 0x800A
+ FUNC_REVERSE_SUBTRACT = 0x800B
+ RESCALE_NORMAL = 0x803A
+ TEXTURE_DEPTH = 0x8071
+ MAX_3D_TEXTURE_SIZE = 0x8073
+ MULTISAMPLE = 0x809D
+ SAMPLE_ALPHA_TO_COVERAGE = 0x809E
+ SAMPLE_ALPHA_TO_ONE = 0x809F
+ SAMPLE_COVERAGE = 0x80A0
+ SAMPLE_BUFFERS = 0x80A8
+ SAMPLES = 0x80A9
+ SAMPLE_COVERAGE_VALUE = 0x80AA
+ SAMPLE_COVERAGE_INVERT = 0x80AB
+ BLEND_DST_RGB = 0x80C8
+ BLEND_SRC_RGB = 0x80C9
+ BLEND_DST_ALPHA = 0x80CA
+ BLEND_SRC_ALPHA = 0x80CB
+ BGR = 0x80E0
+ BGRA = 0x80E1
+ MAX_ELEMENTS_VERTICES = 0x80E8
+ MAX_ELEMENTS_INDICES = 0x80E9
+ DEPTH_COMPONENT16 = 0x81A5
+ DEPTH_COMPONENT24 = 0x81A6
+ DEPTH_COMPONENT32 = 0x81A7
+ UNSIGNED_BYTE_2_3_3_REV = 0x8362
+ UNSIGNED_SHORT_5_6_5 = 0x8363
+ UNSIGNED_SHORT_5_6_5_REV = 0x8364
+ UNSIGNED_SHORT_4_4_4_4_REV = 0x8365
+ UNSIGNED_SHORT_1_5_5_5_REV = 0x8366
+ UNSIGNED_INT_8_8_8_8_REV = 0x8367
+ UNSIGNED_INT_2_10_10_10_REV = 0x8368
+ MIRRORED_REPEAT = 0x8370
+ FOG_COORDINATE_SOURCE = 0x8450
+ FOG_COORD_SRC = 0x8450
+ FOG_COORDINATE = 0x8451
+ FOG_COORD = 0x8451
+ FRAGMENT_DEPTH = 0x8452
+ CURRENT_FOG_COORDINATE = 0x8453
+ CURRENT_FOG_COORD = 0x8453
+ FOG_COORDINATE_ARRAY_TYPE = 0x8454
+ FOG_COORD_ARRAY_TYPE = 0x8454
+ FOG_COORDINATE_ARRAY_STRIDE = 0x8455
+ FOG_COORD_ARRAY_STRIDE = 0x8455
+ FOG_COORDINATE_ARRAY_POINTER = 0x8456
+ FOG_COORD_ARRAY_POINTER = 0x8456
+ FOG_COORDINATE_ARRAY = 0x8457
+ FOG_COORD_ARRAY = 0x8457
+ COLOR_SUM = 0x8458
+ CURRENT_SECONDARY_COLOR = 0x8459
+ SECONDARY_COLOR_ARRAY_SIZE = 0x845A
+ SECONDARY_COLOR_ARRAY_TYPE = 0x845B
+ SECONDARY_COLOR_ARRAY_STRIDE = 0x845C
+ SECONDARY_COLOR_ARRAY_POINTER = 0x845D
+ SECONDARY_COLOR_ARRAY = 0x845E
+ TEXTURE0 = 0x84C0
+ TEXTURE1 = 0x84C1
+ TEXTURE2 = 0x84C2
+ TEXTURE3 = 0x84C3
+ TEXTURE4 = 0x84C4
+ TEXTURE5 = 0x84C5
+ TEXTURE6 = 0x84C6
+ TEXTURE7 = 0x84C7
+ TEXTURE8 = 0x84C8
+ TEXTURE9 = 0x84C9
+ TEXTURE10 = 0x84CA
+ TEXTURE11 = 0x84CB
+ TEXTURE12 = 0x84CC
+ TEXTURE13 = 0x84CD
+ TEXTURE14 = 0x84CE
+ TEXTURE15 = 0x84CF
+ TEXTURE16 = 0x84D0
+ TEXTURE17 = 0x84D1
+ TEXTURE18 = 0x84D2
+ TEXTURE19 = 0x84D3
+ TEXTURE20 = 0x84D4
+ TEXTURE21 = 0x84D5
+ TEXTURE22 = 0x84D6
+ TEXTURE23 = 0x84D7
+ TEXTURE24 = 0x84D8
+ TEXTURE25 = 0x84D9
+ TEXTURE26 = 0x84DA
+ TEXTURE27 = 0x84DB
+ TEXTURE28 = 0x84DC
+ TEXTURE29 = 0x84DD
+ TEXTURE30 = 0x84DE
+ TEXTURE31 = 0x84DF
+ ACTIVE_TEXTURE = 0x84E0
+ CLIENT_ACTIVE_TEXTURE = 0x84E1
+ MAX_TEXTURE_UNITS = 0x84E2
+ TRANSPOSE_MODELVIEW_MATRIX = 0x84E3
+ TRANSPOSE_PROJECTION_MATRIX = 0x84E4
+ TRANSPOSE_TEXTURE_MATRIX = 0x84E5
+ TRANSPOSE_COLOR_MATRIX = 0x84E6
+ SUBTRACT = 0x84E7
+ COMPRESSED_ALPHA = 0x84E9
+ COMPRESSED_LUMINANCE = 0x84EA
+ COMPRESSED_LUMINANCE_ALPHA = 0x84EB
+ COMPRESSED_INTENSITY = 0x84EC
+ COMPRESSED_RGB = 0x84ED
+ COMPRESSED_RGBA = 0x84EE
+ MAX_TEXTURE_LOD_BIAS = 0x84FD
+ TEXTURE_FILTER_CONTROL = 0x8500
+ TEXTURE_LOD_BIAS = 0x8501
+ INCR_WRAP = 0x8507
+ DECR_WRAP = 0x8508
+ NORMAL_MAP = 0x8511
+ REFLECTION_MAP = 0x8512
+ TEXTURE_CUBE_MAP = 0x8513
+ TEXTURE_BINDING_CUBE_MAP = 0x8514
+ TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515
+ TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516
+ TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
+ TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518
+ TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519
+ TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A
+ PROXY_TEXTURE_CUBE_MAP = 0x851B
+ MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C
+ COMBINE = 0x8570
+ COMBINE_RGB = 0x8571
+ COMBINE_ALPHA = 0x8572
+ RGB_SCALE = 0x8573
+ ADD_SIGNED = 0x8574
+ INTERPOLATE = 0x8575
+ CONSTANT = 0x8576
+ PRIMARY_COLOR = 0x8577
+ PREVIOUS = 0x8578
+ SOURCE0_RGB = 0x8580
+ SRC0_RGB = 0x8580
+ SOURCE1_RGB = 0x8581
+ SRC1_RGB = 0x8581
+ SOURCE2_RGB = 0x8582
+ SRC2_RGB = 0x8582
+ SOURCE0_ALPHA = 0x8588
+ SRC0_ALPHA = 0x8588
+ SOURCE1_ALPHA = 0x8589
+ SRC1_ALPHA = 0x8589
+ SOURCE2_ALPHA = 0x858A
+ SRC2_ALPHA = 0x858A
+ OPERAND0_RGB = 0x8590
+ OPERAND1_RGB = 0x8591
+ OPERAND2_RGB = 0x8592
+ OPERAND0_ALPHA = 0x8598
+ OPERAND1_ALPHA = 0x8599
+ OPERAND2_ALPHA = 0x859A
+ TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0
+ TEXTURE_COMPRESSED = 0x86A1
+ NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2
+ COMPRESSED_TEXTURE_FORMATS = 0x86A3
+ DOT3_RGB = 0x86AE
+ DOT3_RGBA = 0x86AF
+ BUFFER_SIZE = 0x8764
+ BUFFER_USAGE = 0x8765
+ TEXTURE_DEPTH_SIZE = 0x884A
+ DEPTH_TEXTURE_MODE = 0x884B
+ TEXTURE_COMPARE_MODE = 0x884C
+ TEXTURE_COMPARE_FUNC = 0x884D
+ COMPARE_R_TO_TEXTURE = 0x884E
+ QUERY_COUNTER_BITS = 0x8864
+ CURRENT_QUERY = 0x8865
+ QUERY_RESULT = 0x8866
+ QUERY_RESULT_AVAILABLE = 0x8867
+ ARRAY_BUFFER = 0x8892
+ ELEMENT_ARRAY_BUFFER = 0x8893
+ ARRAY_BUFFER_BINDING = 0x8894
+ ELEMENT_ARRAY_BUFFER_BINDING = 0x8895
+ VERTEX_ARRAY_BUFFER_BINDING = 0x8896
+ NORMAL_ARRAY_BUFFER_BINDING = 0x8897
+ COLOR_ARRAY_BUFFER_BINDING = 0x8898
+ INDEX_ARRAY_BUFFER_BINDING = 0x8899
+ TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A
+ EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B
+ SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C
+ FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D
+ FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D
+ WEIGHT_ARRAY_BUFFER_BINDING = 0x889E
+ VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F
+ READ_ONLY = 0x88B8
+ WRITE_ONLY = 0x88B9
+ READ_WRITE = 0x88BA
+ BUFFER_ACCESS = 0x88BB
+ BUFFER_MAPPED = 0x88BC
+ BUFFER_MAP_POINTER = 0x88BD
+ STREAM_DRAW = 0x88E0
+ STREAM_READ = 0x88E1
+ STREAM_COPY = 0x88E2
+ STATIC_DRAW = 0x88E4
+ STATIC_READ = 0x88E5
+ STATIC_COPY = 0x88E6
+ DYNAMIC_DRAW = 0x88E8
+ DYNAMIC_READ = 0x88E9
+ DYNAMIC_COPY = 0x88EA
+ SAMPLES_PASSED = 0x8914
+)
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glViewport.xml
+func (gl *GL) Viewport(x, y, width, height int) {
+ C.gl1_5_glViewport(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// DepthRange specifies the mapping of depth values from normalized device
+// coordinates to window coordinates.
+//
+// Parameter nearVal specifies the mapping of the near clipping plane to window
+// coordinates (defaults to 0), while farVal specifies the mapping of the far
+// clipping plane to window coordinates (defaults to 1).
+//
+// After clipping and division by w, depth coordinates range from -1 to 1,
+// corresponding to the near and far clipping planes. DepthRange specifies a
+// linear mapping of the normalized depth coordinates in this range to window
+// depth coordinates. Regardless of the actual depth buffer implementation,
+// window coordinate depth values are treated as though they range from 0 through 1
+// (like color components). Thus, the values accepted by DepthRange are both
+// clamped to this range before they are accepted.
+//
+// The default setting of (0, 1) maps the near plane to 0 and the far plane to 1.
+// With this mapping, the depth buffer range is fully utilized.
+//
+// It is not necessary that nearVal be less than farVal. Reverse mappings such as
+// nearVal 1, and farVal 0 are acceptable.
+//
+// GL.INVALID_OPERATION is generated if DepthRange is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) DepthRange(nearVal, farVal float64) {
+ C.gl1_5_glDepthRange(gl.funcs, C.GLdouble(nearVal), C.GLdouble(farVal))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsEnabled.xml
+func (gl *GL) IsEnabled(cap glbase.Enum) bool {
+ glresult := C.gl1_5_glIsEnabled(gl.funcs, C.GLenum(cap))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameteriv.xml
+func (gl *GL) GetTexLevelParameteriv(target glbase.Enum, level int, pname glbase.Enum, params []int32) {
+ C.gl1_5_glGetTexLevelParameteriv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameterfv.xml
+func (gl *GL) GetTexLevelParameterfv(target glbase.Enum, level int, pname glbase.Enum, params []float32) {
+ C.gl1_5_glGetTexLevelParameterfv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameteriv.xml
+func (gl *GL) GetTexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_5_glGetTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameterfv.xml
+func (gl *GL) GetTexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_5_glGetTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexImage.xml
+func (gl *GL) GetTexImage(target glbase.Enum, level int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glGetTexImage(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetIntegerv.xml
+func (gl *GL) GetIntegerv(pname glbase.Enum, params []int32) {
+ C.gl1_5_glGetIntegerv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetFloatv.xml
+func (gl *GL) GetFloatv(pname glbase.Enum, params []float32) {
+ C.gl1_5_glGetFloatv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetError.xml
+func (gl *GL) GetError() glbase.Enum {
+ glresult := C.gl1_5_glGetError(gl.funcs)
+ return glbase.Enum(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetDoublev.xml
+func (gl *GL) GetDoublev(pname glbase.Enum, params []float64) {
+ C.gl1_5_glGetDoublev(gl.funcs, C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetBooleanv.xml
+func (gl *GL) GetBooleanv(pname glbase.Enum, params []bool) {
+ C.gl1_5_glGetBooleanv(gl.funcs, C.GLenum(pname), (*C.GLboolean)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadPixels.xml
+func (gl *GL) ReadPixels(x, y, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glReadPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadBuffer.xml
+func (gl *GL) ReadBuffer(mode glbase.Enum) {
+ C.gl1_5_glReadBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStorei.xml
+func (gl *GL) PixelStorei(pname glbase.Enum, param int32) {
+ C.gl1_5_glPixelStorei(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStoref.xml
+func (gl *GL) PixelStoref(pname glbase.Enum, param float32) {
+ C.gl1_5_glPixelStoref(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthFunc.xml
+func (gl *GL) DepthFunc(glfunc glbase.Enum) {
+ C.gl1_5_glDepthFunc(gl.funcs, C.GLenum(glfunc))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilOp.xml
+func (gl *GL) StencilOp(fail, zfail, zpass glbase.Enum) {
+ C.gl1_5_glStencilOp(gl.funcs, C.GLenum(fail), C.GLenum(zfail), C.GLenum(zpass))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilFunc.xml
+func (gl *GL) StencilFunc(glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl1_5_glStencilFunc(gl.funcs, C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLogicOp.xml
+func (gl *GL) LogicOp(opcode glbase.Enum) {
+ C.gl1_5_glLogicOp(gl.funcs, C.GLenum(opcode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendFunc.xml
+func (gl *GL) BlendFunc(sfactor, dfactor glbase.Enum) {
+ C.gl1_5_glBlendFunc(gl.funcs, C.GLenum(sfactor), C.GLenum(dfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFlush.xml
+func (gl *GL) Flush() {
+ C.gl1_5_glFlush(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFinish.xml
+func (gl *GL) Finish() {
+ C.gl1_5_glFinish(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnable.xml
+func (gl *GL) Enable(cap glbase.Enum) {
+ C.gl1_5_glEnable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisable.xml
+func (gl *GL) Disable(cap glbase.Enum) {
+ C.gl1_5_glDisable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthMask.xml
+func (gl *GL) DepthMask(flag bool) {
+ C.gl1_5_glDepthMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMask.xml
+func (gl *GL) ColorMask(red, green, blue, alpha bool) {
+ C.gl1_5_glColorMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&red)), *(*C.GLboolean)(unsafe.Pointer(&green)), *(*C.GLboolean)(unsafe.Pointer(&blue)), *(*C.GLboolean)(unsafe.Pointer(&alpha)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilMask.xml
+func (gl *GL) StencilMask(mask uint32) {
+ C.gl1_5_glStencilMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearDepth.xml
+func (gl *GL) ClearDepth(depth float64) {
+ C.gl1_5_glClearDepth(gl.funcs, C.GLdouble(depth))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearStencil.xml
+func (gl *GL) ClearStencil(s int32) {
+ C.gl1_5_glClearStencil(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearColor.xml
+func (gl *GL) ClearColor(red, green, blue, alpha float32) {
+ C.gl1_5_glClearColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClear.xml
+func (gl *GL) Clear(mask glbase.Bitfield) {
+ C.gl1_5_glClear(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawBuffer.xml
+func (gl *GL) DrawBuffer(mode glbase.Enum) {
+ C.gl1_5_glDrawBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml
+func (gl *GL) TexImage2D(target glbase.Enum, level int, internalFormat int32, width, height, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage1D.xml
+func (gl *GL) TexImage1D(target glbase.Enum, level int, internalFormat int32, width, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteriv.xml
+func (gl *GL) TexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_5_glTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteri.xml
+func (gl *GL) TexParameteri(target, pname glbase.Enum, param int32) {
+ C.gl1_5_glTexParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterfv.xml
+func (gl *GL) TexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_5_glTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterf.xml
+func (gl *GL) TexParameterf(target, pname glbase.Enum, param float32) {
+ C.gl1_5_glTexParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScissor.xml
+func (gl *GL) Scissor(x, y, width, height int) {
+ C.gl1_5_glScissor(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonMode.xml
+func (gl *GL) PolygonMode(face, mode glbase.Enum) {
+ C.gl1_5_glPolygonMode(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointSize.xml
+func (gl *GL) PointSize(size float32) {
+ C.gl1_5_glPointSize(gl.funcs, C.GLfloat(size))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineWidth.xml
+func (gl *GL) LineWidth(width float32) {
+ C.gl1_5_glLineWidth(gl.funcs, C.GLfloat(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glHint.xml
+func (gl *GL) Hint(target, mode glbase.Enum) {
+ C.gl1_5_glHint(gl.funcs, C.GLenum(target), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrontFace.xml
+func (gl *GL) FrontFace(mode glbase.Enum) {
+ C.gl1_5_glFrontFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCullFace.xml
+func (gl *GL) CullFace(mode glbase.Enum) {
+ C.gl1_5_glCullFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexubv.xml
+func (gl *GL) Indexubv(c []uint8) {
+ C.gl1_5_glIndexubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexub.xml
+func (gl *GL) Indexub(c uint8) {
+ C.gl1_5_glIndexub(gl.funcs, C.GLubyte(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsTexture.xml
+func (gl *GL) IsTexture(texture glbase.Texture) bool {
+ glresult := C.gl1_5_glIsTexture(gl.funcs, C.GLuint(texture))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenTextures returns n texture names in textures. There is no guarantee
+// that the names form a contiguous set of integers; however, it is
+// guaranteed that none of the returned names was in use immediately before
+// the call to GenTextures.
+//
+// The generated textures have no dimensionality; they assume the
+// dimensionality of the texture target to which they are first bound (see
+// BindTexture).
+//
+// Texture names returned by a call to GenTextures are not returned by
+// subsequent calls, unless they are first deleted with DeleteTextures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// GenTextures is available in GL version 2.0 or greater.
+func (gl *GL) GenTextures(n int) []glbase.Texture {
+ if n == 0 {
+ return nil
+ }
+ textures := make([]glbase.Texture, n)
+ C.gl1_5_glGenTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+ return textures
+}
+
+// DeleteTextures deletes the textures objects whose names are stored
+// in the textures slice. After a texture is deleted, it has no contents or
+// dimensionality, and its name is free for reuse (for example by
+// GenTextures). If a texture that is currently bound is deleted, the binding
+// reverts to 0 (the default texture).
+//
+// DeleteTextures silently ignores 0's and names that do not correspond to
+// existing textures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// DeleteTextures is available in GL version 2.0 or greater.
+func (gl *GL) DeleteTextures(textures []glbase.Texture) {
+ n := len(textures)
+ if n == 0 {
+ return
+ }
+ C.gl1_5_glDeleteTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBindTexture.xml
+func (gl *GL) BindTexture(target glbase.Enum, texture glbase.Texture) {
+ C.gl1_5_glBindTexture(gl.funcs, C.GLenum(target), C.GLuint(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage2D.xml
+func (gl *GL) TexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage1D.xml
+func (gl *GL) TexSubImage1D(target glbase.Enum, level, xoffset, width int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage2D.xml
+func (gl *GL) CopyTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, x, y, width, height int) {
+ C.gl1_5_glCopyTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage1D.xml
+func (gl *GL) CopyTexSubImage1D(target glbase.Enum, level, xoffset, x, y, width int) {
+ C.gl1_5_glCopyTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage2D.xml
+func (gl *GL) CopyTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, height, border int) {
+ C.gl1_5_glCopyTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage1D.xml
+func (gl *GL) CopyTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, border int) {
+ C.gl1_5_glCopyTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonOffset.xml
+func (gl *GL) PolygonOffset(factor, units float32) {
+ C.gl1_5_glPolygonOffset(gl.funcs, C.GLfloat(factor), C.GLfloat(units))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawElements.xml
+func (gl *GL) DrawElements(mode glbase.Enum, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glDrawElements(gl.funcs, C.GLenum(mode), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawArrays.xml
+func (gl *GL) DrawArrays(mode glbase.Enum, first, count int) {
+ C.gl1_5_glDrawArrays(gl.funcs, C.GLenum(mode), C.GLint(first), C.GLsizei(count))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage3D.xml
+func (gl *GL) CopyTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, x, y, width, height int) {
+ C.gl1_5_glCopyTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage3D.xml
+func (gl *GL) TexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage3D.xml
+func (gl *GL) TexImage3D(target glbase.Enum, level int, internalFormat int32, width, height int, depth int32, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawRangeElements.xml
+func (gl *GL) DrawRangeElements(mode glbase.Enum, start, end uint32, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glDrawRangeElements(gl.funcs, C.GLenum(mode), C.GLuint(start), C.GLuint(end), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendEquation.xml
+func (gl *GL) BlendEquation(mode glbase.Enum) {
+ C.gl1_5_glBlendEquation(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendColor.xml
+func (gl *GL) BlendColor(red, green, blue, alpha float32) {
+ C.gl1_5_glBlendColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetCompressedTexImage.xml
+func (gl *GL) GetCompressedTexImage(target glbase.Enum, level int, img interface{}) {
+ var img_ptr unsafe.Pointer
+ var img_v = reflect.ValueOf(img)
+ if img != nil && img_v.Kind() != reflect.Slice {
+ panic("parameter img must be a slice")
+ }
+ if img != nil {
+ img_ptr = unsafe.Pointer(img_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glGetCompressedTexImage(gl.funcs, C.GLenum(target), C.GLint(level), img_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage1D.xml
+func (gl *GL) CompressedTexSubImage1D(target glbase.Enum, level, xoffset, width int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glCompressedTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage2D.xml
+func (gl *GL) CompressedTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glCompressedTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage3D.xml
+func (gl *GL) CompressedTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glCompressedTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage1D.xml
+func (gl *GL) CompressedTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, width, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glCompressedTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage2D.xml
+func (gl *GL) CompressedTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glCompressedTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage3D.xml
+func (gl *GL) CompressedTexImage3D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height int, depth int32, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glCompressedTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSampleCoverage.xml
+func (gl *GL) SampleCoverage(value float32, invert bool) {
+ C.gl1_5_glSampleCoverage(gl.funcs, C.GLfloat(value), *(*C.GLboolean)(unsafe.Pointer(&invert)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glActiveTexture.xml
+func (gl *GL) ActiveTexture(texture glbase.Enum) {
+ C.gl1_5_glActiveTexture(gl.funcs, C.GLenum(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameteriv.xml
+func (gl *GL) PointParameteriv(pname glbase.Enum, params []int32) {
+ C.gl1_5_glPointParameteriv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameteri.xml
+func (gl *GL) PointParameteri(pname glbase.Enum, param int32) {
+ C.gl1_5_glPointParameteri(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameterfv.xml
+func (gl *GL) PointParameterfv(pname glbase.Enum, params []float32) {
+ C.gl1_5_glPointParameterfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameterf.xml
+func (gl *GL) PointParameterf(pname glbase.Enum, param float32) {
+ C.gl1_5_glPointParameterf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiDrawArrays.xml
+func (gl *GL) MultiDrawArrays(mode glbase.Enum, first, count []int, drawcount int32) {
+ C.gl1_5_glMultiDrawArrays(gl.funcs, C.GLenum(mode), (*C.GLint)(unsafe.Pointer(&first[0])), (*C.GLsizei)(unsafe.Pointer(&count[0])), C.GLsizei(drawcount))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendFuncSeparate.xml
+func (gl *GL) BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha glbase.Enum) {
+ C.gl1_5_glBlendFuncSeparate(gl.funcs, C.GLenum(sfactorRGB), C.GLenum(dfactorRGB), C.GLenum(sfactorAlpha), C.GLenum(dfactorAlpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetBufferParameteriv.xml
+func (gl *GL) GetBufferParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_5_glGetBufferParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glUnmapBuffer.xml
+func (gl *GL) UnmapBuffer(target glbase.Enum) bool {
+ glresult := C.gl1_5_glUnmapBuffer(gl.funcs, C.GLenum(target))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetBufferSubData.xml
+func (gl *GL) GetBufferSubData(target glbase.Enum, offset, size int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glGetBufferSubData(gl.funcs, C.GLenum(target), C.GLintptr(offset), C.GLsizeiptr(size), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBufferSubData.xml
+func (gl *GL) BufferSubData(target glbase.Enum, offset, size int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glBufferSubData(gl.funcs, C.GLenum(target), C.GLintptr(offset), C.GLsizeiptr(size), data_ptr)
+}
+
+// BufferData creates a new data store for the buffer object currently
+// bound to target. Any pre-existing data store is deleted. The new data
+// store is created with the specified size in bytes and usage. If data is
+// not nil, it must be a slice that is used to initialize the data store.
+// In that case the size parameter is ignored and the store size will match
+// the slice data size.
+//
+// In its initial state, the new data store is not mapped, it has a NULL
+// mapped pointer, and its mapped access is GL.READ_WRITE.
+//
+// The target constant must be one of GL.ARRAY_BUFFER, GL.COPY_READ_BUFFER,
+// GL.COPY_WRITE_BUFFER, GL.ELEMENT_ARRAY_BUFFER, GL.PIXEL_PACK_BUFFER,
+// GL.PIXEL_UNPACK_BUFFER, GL.TEXTURE_BUFFER, GL.TRANSFORM_FEEDBACK_BUFFER,
+// or GL.UNIFORM_BUFFER.
+//
+// The usage parameter is a hint to the GL implementation as to how a buffer
+// object's data store will be accessed. This enables the GL implementation
+// to make more intelligent decisions that may significantly impact buffer
+// object performance. It does not, however, constrain the actual usage of
+// the data store. usage can be broken down into two parts: first, the
+// frequency of access (modification and usage), and second, the nature of
+// that access.
+//
+// A usage frequency of STREAM and nature of DRAW is specified via the
+// constant GL.STREAM_DRAW, for example.
+//
+// The usage frequency of access may be one of:
+//
+// STREAM
+// The data store contents will be modified once and used at most a few times.
+//
+// STATIC
+// The data store contents will be modified once and used many times.
+//
+// DYNAMIC
+// The data store contents will be modified repeatedly and used many times.
+//
+// The usage nature of access may be one of:
+//
+// DRAW
+// The data store contents are modified by the application, and used as
+// the source for GL drawing and image specification commands.
+//
+// READ
+// The data store contents are modified by reading data from the GL,
+// and used to return that data when queried by the application.
+//
+// COPY
+// The data store contents are modified by reading data from the GL,
+// and used as the source for GL drawing and image specification
+// commands.
+//
+// Clients must align data elements consistent with the requirements of the
+// client platform, with an additional base-level requirement that an offset
+// within a buffer to a datum comprising N bytes be a multiple of N.
+//
+// Error GL.INVALID_ENUM is generated if target is not one of the accepted
+// buffer targets. GL.INVALID_ENUM is generated if usage is not
+// GL.STREAM_DRAW, GL.STREAM_READ, GL.STREAM_COPY, GL.STATIC_DRAW,
+// GL.STATIC_READ, GL.STATIC_COPY, GL.DYNAMIC_DRAW, GL.DYNAMIC_READ, or
+// GL.DYNAMIC_COPY. GL.INVALID_VALUE is generated if size is negative.
+// GL.INVALID_OPERATION is generated if the reserved buffer object name 0 is
+// bound to target. GL.OUT_OF_MEMORY is generated if the GL is unable to
+// create a data store with the specified size.
+func (gl *GL) BufferData(target glbase.Enum, size int, data interface{}, usage glbase.Enum) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ if data != nil {
+ size = int(data_v.Type().Size()) * data_v.Len()
+ }
+ C.gl1_5_glBufferData(gl.funcs, C.GLenum(target), C.GLsizeiptr(size), data_ptr, C.GLenum(usage))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsBuffer.xml
+func (gl *GL) IsBuffer(buffer glbase.Buffer) bool {
+ glresult := C.gl1_5_glIsBuffer(gl.funcs, C.GLuint(buffer))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenBuffers returns n buffer object names. There is no guarantee that
+// the names form a contiguous set of integers; however, it is guaranteed
+// that none of the returned names was in use immediately before the call to
+// GenBuffers.
+//
+// Buffer object names returned by a call to GenBuffers are not returned by
+// subsequent calls, unless they are first deleted with DeleteBuffers.
+//
+// No buffer objects are associated with the returned buffer object names
+// until they are first bound by calling BindBuffer.
+//
+// Error GL.INVALID_VALUE is generated if n is negative. GL.INVALID_OPERATION
+// is generated if GenBuffers is executed between the execution of Begin
+// and the corresponding execution of End.
+//
+// GenBuffers is available in GL version 1.5 or greater.
+func (gl *GL) GenBuffers(n int) []glbase.Buffer {
+ if n == 0 {
+ return nil
+ }
+ buffers := make([]glbase.Buffer, n)
+ C.gl1_5_glGenBuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&buffers[0])))
+ return buffers
+}
+
+// DeleteBuffers deletes the buffer objects whose names are stored in the
+// buffers slice.
+//
+// After a buffer object is deleted, it has no contents, and its name is free
+// for reuse (for example by GenBuffers). If a buffer object that is
+// currently bound is deleted, the binding reverts to 0 (the absence of any
+// buffer object, which reverts to client memory usage).
+//
+// DeleteBuffers silently ignores 0's and names that do not correspond to
+// existing buffer objects.
+//
+// Error GL.INVALID_VALUE is generated if n is negative. GL.INVALID_OPERATION
+// is generated if DeleteBuffers is executed between the execution of Begin
+// and the corresponding execution of End.
+//
+// DeleteBuffers is available in GL version 1.5 or greater.
+func (gl *GL) DeleteBuffers(buffers []glbase.Buffer) {
+ n := len(buffers)
+ if n == 0 {
+ return
+ }
+ C.gl1_5_glDeleteBuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&buffers[0])))
+}
+
+// BindBuffer creates or puts in use a named buffer object.
+// Calling BindBuffer with target set to GL.ARRAY_BUFFER,
+// GL.ELEMENT_ARRAY_BUFFER, GL.PIXEL_PACK_BUFFER or GL.PIXEL_UNPACK_BUFFER
+// and buffer set to the name of the new buffer object binds the buffer
+// object name to the target. When a buffer object is bound to a target, the
+// previous binding for that target is automatically broken.
+//
+// Buffer object names are unsigned integers. The value zero is reserved, but
+// there is no default buffer object for each buffer object target. Instead,
+// buffer set to zero effectively unbinds any buffer object previously bound,
+// and restores client memory usage for that buffer object target. Buffer
+// object names and the corresponding buffer object contents are local to the
+// shared display-list space (see XCreateContext) of the current GL rendering
+// context; two rendering contexts share buffer object names only if they
+// also share display lists.
+//
+// GenBuffers may be called to generate a set of new buffer object names.
+//
+// The state of a buffer object immediately after it is first bound is an
+// unmapped zero-sized memory buffer with GL.READ_WRITE access and
+// GL.STATIC_DRAW usage.
+//
+// While a non-zero buffer object name is bound, GL operations on the target
+// to which it is bound affect the bound buffer object, and queries of the
+// target to which it is bound return state from the bound buffer object.
+// While buffer object name zero is bound, as in the initial state, attempts
+// to modify or query state on the target to which it is bound generates an
+// GL.INVALID_OPERATION error.
+//
+// When vertex array pointer state is changed, for example by a call to
+// NormalPointer, the current buffer object binding (GL.ARRAY_BUFFER_BINDING)
+// is copied into the corresponding client state for the vertex array type
+// being changed, for example GL.NORMAL_ARRAY_BUFFER_BINDING. While a
+// non-zero buffer object is bound to the GL.ARRAY_BUFFER target, the vertex
+// array pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory is instead interpreted as an offset within the buffer
+// object measured in basic machine units.
+//
+// While a non-zero buffer object is bound to the GL.ELEMENT_ARRAY_BUFFER
+// target, the indices parameter of DrawElements, DrawRangeElements, or
+// MultiDrawElements that is traditionally interpreted as a pointer to
+// client-side memory is instead interpreted as an offset within the buffer
+// object measured in basic machine units.
+//
+// While a non-zero buffer object is bound to the GL.PIXEL_PACK_BUFFER
+// target, the following commands are affected: GetCompressedTexImage,
+// GetConvolutionFilter, GetHistogram, GetMinmax, GetPixelMap,
+// GetPolygonStipple, GetSeparableFilter, GetTexImage, and ReadPixels. The
+// pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory where the pixels are to be packed is instead
+// interpreted as an offset within the buffer object measured in basic
+// machine units.
+//
+// While a non-zero buffer object is bound to the GL.PIXEL_UNPACK_BUFFER
+// target, the following commands are affected: Bitmap, ColorSubTable,
+// ColorTable, CompressedTexImage1D, CompressedTexImage2D,
+// CompressedTexImage3D, CompressedTexSubImage1D, CompressedTexSubImage2D,
+// CompressedTexSubImage3D, ConvolutionFilter1D, ConvolutionFilter2D,
+// DrawPixels, PixelMap, PolygonStipple, SeparableFilter2D, TexImage1D,
+// TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, and TexSubImage3D.
+// The pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory from which the pixels are to be unpacked is instead
+// interpreted as an offset within the buffer object measured in basic
+// machine units.
+//
+// A buffer object binding created with BindBuffer remains active until a
+// different buffer object name is bound to the same target, or until the
+// bound buffer object is deleted with DeleteBuffers.
+//
+// Once created, a named buffer object may be re-bound to any target as often
+// as needed. However, the GL implementation may make choices about how to
+// optimize the storage of a buffer object based on its initial binding
+// target.
+//
+// Error GL.INVALID_ENUM is generated if target is not one of the allowable
+// values. GL.INVALID_OPERATION is generated if BindBuffer is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// BindBuffer is available in GL version 1.5 or greater.
+func (gl *GL) BindBuffer(target glbase.Enum, buffer glbase.Buffer) {
+ C.gl1_5_glBindBuffer(gl.funcs, C.GLenum(target), C.GLuint(buffer))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetQueryObjectuiv.xml
+func (gl *GL) GetQueryObjectuiv(id uint32, pname glbase.Enum, params []uint32) {
+ C.gl1_5_glGetQueryObjectuiv(gl.funcs, C.GLuint(id), C.GLenum(pname), (*C.GLuint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetQueryObjectiv.xml
+func (gl *GL) GetQueryObjectiv(id uint32, pname glbase.Enum, params []int32) {
+ C.gl1_5_glGetQueryObjectiv(gl.funcs, C.GLuint(id), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetQueryiv.xml
+func (gl *GL) GetQueryiv(target, pname glbase.Enum, params []int32) {
+ C.gl1_5_glGetQueryiv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEndQuery.xml
+func (gl *GL) EndQuery(target glbase.Enum) {
+ C.gl1_5_glEndQuery(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBeginQuery.xml
+func (gl *GL) BeginQuery(target glbase.Enum, id uint32) {
+ C.gl1_5_glBeginQuery(gl.funcs, C.GLenum(target), C.GLuint(id))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsQuery.xml
+func (gl *GL) IsQuery(id uint32) bool {
+ glresult := C.gl1_5_glIsQuery(gl.funcs, C.GLuint(id))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDeleteQueries.xml
+func (gl *GL) DeleteQueries(n int, ids []uint32) {
+ C.gl1_5_glDeleteQueries(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&ids[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGenQueries.xml
+func (gl *GL) GenQueries(n int, ids []uint32) {
+ C.gl1_5_glGenQueries(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&ids[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslatef.xml
+func (gl *GL) Translatef(x, y, z float32) {
+ C.gl1_5_glTranslatef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslated.xml
+func (gl *GL) Translated(x, y, z float64) {
+ C.gl1_5_glTranslated(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScalef.xml
+func (gl *GL) Scalef(x, y, z float32) {
+ C.gl1_5_glScalef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScaled.xml
+func (gl *GL) Scaled(x, y, z float64) {
+ C.gl1_5_glScaled(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotatef.xml
+func (gl *GL) Rotatef(angle, x, y, z float32) {
+ C.gl1_5_glRotatef(gl.funcs, C.GLfloat(angle), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotated.xml
+func (gl *GL) Rotated(angle, x, y, z float64) {
+ C.gl1_5_glRotated(gl.funcs, C.GLdouble(angle), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushMatrix.xml
+func (gl *GL) PushMatrix() {
+ C.gl1_5_glPushMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopMatrix.xml
+func (gl *GL) PopMatrix() {
+ C.gl1_5_glPopMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml
+func (gl *GL) Ortho(left, right, bottom, top, zNear, zFar float64) {
+ C.gl1_5_glOrtho(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// MultMatrixd multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixd(m []float64) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl1_5_glMultMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// MultMatrixf multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixf(m []float32) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl1_5_glMultMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMatrixMode.xml
+func (gl *GL) MatrixMode(mode glbase.Enum) {
+ C.gl1_5_glMatrixMode(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixd.xml
+func (gl *GL) LoadMatrixd(m []float64) {
+ C.gl1_5_glLoadMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixf.xml
+func (gl *GL) LoadMatrixf(m []float32) {
+ C.gl1_5_glLoadMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadIdentity.xml
+func (gl *GL) LoadIdentity() {
+ C.gl1_5_glLoadIdentity(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml
+func (gl *GL) Frustum(left, right, bottom, top, zNear, zFar float64) {
+ C.gl1_5_glFrustum(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsList.xml
+func (gl *GL) IsList(list uint32) bool {
+ glresult := C.gl1_5_glIsList(gl.funcs, C.GLuint(list))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGeniv.xml
+func (gl *GL) GetTexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl1_5_glGetTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGenfv.xml
+func (gl *GL) GetTexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl1_5_glGetTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGendv.xml
+func (gl *GL) GetTexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl1_5_glGetTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnviv.xml
+func (gl *GL) GetTexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl1_5_glGetTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnvfv.xml
+func (gl *GL) GetTexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_5_glGetTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPolygonStipple.xml
+func (gl *GL) GetPolygonStipple(mask []uint8) {
+ C.gl1_5_glGetPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapusv.xml
+func (gl *GL) GetPixelMapusv(glmap glbase.Enum, values []uint16) {
+ C.gl1_5_glGetPixelMapusv(gl.funcs, C.GLenum(glmap), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapuiv.xml
+func (gl *GL) GetPixelMapuiv(glmap glbase.Enum, values []uint32) {
+ C.gl1_5_glGetPixelMapuiv(gl.funcs, C.GLenum(glmap), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapfv.xml
+func (gl *GL) GetPixelMapfv(glmap glbase.Enum, values []float32) {
+ C.gl1_5_glGetPixelMapfv(gl.funcs, C.GLenum(glmap), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialiv.xml
+func (gl *GL) GetMaterialiv(face, pname glbase.Enum, params []int32) {
+ C.gl1_5_glGetMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialfv.xml
+func (gl *GL) GetMaterialfv(face, pname glbase.Enum, params []float32) {
+ C.gl1_5_glGetMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapiv.xml
+func (gl *GL) GetMapiv(target, query glbase.Enum, v []int32) {
+ C.gl1_5_glGetMapiv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapfv.xml
+func (gl *GL) GetMapfv(target, query glbase.Enum, v []float32) {
+ C.gl1_5_glGetMapfv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapdv.xml
+func (gl *GL) GetMapdv(target, query glbase.Enum, v []float64) {
+ C.gl1_5_glGetMapdv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightiv.xml
+func (gl *GL) GetLightiv(light, pname glbase.Enum, params []int32) {
+ C.gl1_5_glGetLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightfv.xml
+func (gl *GL) GetLightfv(light, pname glbase.Enum, params []float32) {
+ C.gl1_5_glGetLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetClipPlane.xml
+func (gl *GL) GetClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl1_5_glGetClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawPixels.xml
+func (gl *GL) DrawPixels(width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glDrawPixels(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyPixels.xml
+func (gl *GL) CopyPixels(x, y, width, height int, gltype glbase.Enum) {
+ C.gl1_5_glCopyPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(gltype))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapusv.xml
+func (gl *GL) PixelMapusv(glmap glbase.Enum, mapsize int32, values []uint16) {
+ C.gl1_5_glPixelMapusv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapuiv.xml
+func (gl *GL) PixelMapuiv(glmap glbase.Enum, mapsize int32, values []uint32) {
+ C.gl1_5_glPixelMapuiv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapfv.xml
+func (gl *GL) PixelMapfv(glmap glbase.Enum, mapsize int32, values []float32) {
+ C.gl1_5_glPixelMapfv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferi.xml
+func (gl *GL) PixelTransferi(pname glbase.Enum, param int32) {
+ C.gl1_5_glPixelTransferi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferf.xml
+func (gl *GL) PixelTransferf(pname glbase.Enum, param float32) {
+ C.gl1_5_glPixelTransferf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelZoom.xml
+func (gl *GL) PixelZoom(xfactor, yfactor float32) {
+ C.gl1_5_glPixelZoom(gl.funcs, C.GLfloat(xfactor), C.GLfloat(yfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAlphaFunc.xml
+func (gl *GL) AlphaFunc(glfunc glbase.Enum, ref float32) {
+ C.gl1_5_glAlphaFunc(gl.funcs, C.GLenum(glfunc), C.GLfloat(ref))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint2.xml
+func (gl *GL) EvalPoint2(i, j int32) {
+ C.gl1_5_glEvalPoint2(gl.funcs, C.GLint(i), C.GLint(j))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh2.xml
+func (gl *GL) EvalMesh2(mode glbase.Enum, i1, i2, j1, j2 int32) {
+ C.gl1_5_glEvalMesh2(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2), C.GLint(j1), C.GLint(j2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint1.xml
+func (gl *GL) EvalPoint1(i int32) {
+ C.gl1_5_glEvalPoint1(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh1.xml
+func (gl *GL) EvalMesh1(mode glbase.Enum, i1, i2 int32) {
+ C.gl1_5_glEvalMesh1(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2fv.xml
+func (gl *GL) EvalCoord2fv(u []float32) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl1_5_glEvalCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2f.xml
+func (gl *GL) EvalCoord2f(u, v float32) {
+ C.gl1_5_glEvalCoord2f(gl.funcs, C.GLfloat(u), C.GLfloat(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2dv.xml
+func (gl *GL) EvalCoord2dv(u []float64) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl1_5_glEvalCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2d.xml
+func (gl *GL) EvalCoord2d(u, v float64) {
+ C.gl1_5_glEvalCoord2d(gl.funcs, C.GLdouble(u), C.GLdouble(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1fv.xml
+func (gl *GL) EvalCoord1fv(u []float32) {
+ C.gl1_5_glEvalCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1f.xml
+func (gl *GL) EvalCoord1f(u float32) {
+ C.gl1_5_glEvalCoord1f(gl.funcs, C.GLfloat(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1dv.xml
+func (gl *GL) EvalCoord1dv(u []float64) {
+ C.gl1_5_glEvalCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1d.xml
+func (gl *GL) EvalCoord1d(u float64) {
+ C.gl1_5_glEvalCoord1d(gl.funcs, C.GLdouble(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2f.xml
+func (gl *GL) MapGrid2f(un int32, u1, u2 float32, vn int32, v1, v2 float32) {
+ C.gl1_5_glMapGrid2f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2), C.GLint(vn), C.GLfloat(v1), C.GLfloat(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2d.xml
+func (gl *GL) MapGrid2d(un int32, u1, u2 float64, vn int32, v1, v2 float64) {
+ C.gl1_5_glMapGrid2d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2), C.GLint(vn), C.GLdouble(v1), C.GLdouble(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1f.xml
+func (gl *GL) MapGrid1f(un int32, u1, u2 float32) {
+ C.gl1_5_glMapGrid1f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1d.xml
+func (gl *GL) MapGrid1d(un int32, u1, u2 float64) {
+ C.gl1_5_glMapGrid1d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2f.xml
+func (gl *GL) Map2f(target glbase.Enum, u1, u2 float32, ustride, uorder int32, v1, v2 float32, vstride, vorder int32, points []float32) {
+ C.gl1_5_glMap2f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(ustride), C.GLint(uorder), C.GLfloat(v1), C.GLfloat(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2d.xml
+func (gl *GL) Map2d(target glbase.Enum, u1, u2 float64, ustride, uorder int32, v1, v2 float64, vstride, vorder int32, points []float64) {
+ C.gl1_5_glMap2d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(ustride), C.GLint(uorder), C.GLdouble(v1), C.GLdouble(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1f.xml
+func (gl *GL) Map1f(target glbase.Enum, u1, u2 float32, stride, order int, points []float32) {
+ C.gl1_5_glMap1f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(stride), C.GLint(order), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1d.xml
+func (gl *GL) Map1d(target glbase.Enum, u1, u2 float64, stride, order int, points []float64) {
+ C.gl1_5_glMap1d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(stride), C.GLint(order), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushAttrib.xml
+func (gl *GL) PushAttrib(mask glbase.Bitfield) {
+ C.gl1_5_glPushAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopAttrib.xml
+func (gl *GL) PopAttrib() {
+ C.gl1_5_glPopAttrib(gl.funcs)
+}
+
+// Accum executes an operation on the accumulation buffer.
+//
+// Parameter op defines the accumulation buffer operation (GL.ACCUM, GL.LOAD,
+// GL.ADD, GL.MULT, or GL.RETURN) and specifies how the value parameter is
+// used.
+//
+// The accumulation buffer is an extended-range color buffer. Images are not
+// rendered into it. Rather, images rendered into one of the color buffers
+// are added to the contents of the accumulation buffer after rendering.
+// Effects such as antialiasing (of points, lines, and polygons), motion
+// blur, and depth of field can be created by accumulating images generated
+// with different transformation matrices.
+//
+// Each pixel in the accumulation buffer consists of red, green, blue, and
+// alpha values. The number of bits per component in the accumulation buffer
+// depends on the implementation. You can examine this number by calling
+// GetIntegerv four times, with arguments GL.ACCUM_RED_BITS,
+// GL.ACCUM_GREEN_BITS, GL.ACCUM_BLUE_BITS, and GL.ACCUM_ALPHA_BITS.
+// Regardless of the number of bits per component, the range of values stored
+// by each component is (-1, 1). The accumulation buffer pixels are mapped
+// one-to-one with frame buffer pixels.
+//
+// All accumulation buffer operations are limited to the area of the current
+// scissor box and applied identically to the red, green, blue, and alpha
+// components of each pixel. If a Accum operation results in a value outside
+// the range (-1, 1), the contents of an accumulation buffer pixel component
+// are undefined.
+//
+// The operations are as follows:
+//
+// GL.ACCUM
+// Obtains R, G, B, and A values from the buffer currently selected for
+// reading (see ReadBuffer). Each component value is divided by 2 n -
+// 1 , where n is the number of bits allocated to each color component
+// in the currently selected buffer. The result is a floating-point
+// value in the range 0 1 , which is multiplied by value and added to
+// the corresponding pixel component in the accumulation buffer,
+// thereby updating the accumulation buffer.
+//
+// GL.LOAD
+// Similar to GL.ACCUM, except that the current value in the
+// accumulation buffer is not used in the calculation of the new value.
+// That is, the R, G, B, and A values from the currently selected
+// buffer are divided by 2 n - 1 , multiplied by value, and then stored
+// in the corresponding accumulation buffer cell, overwriting the
+// current value.
+//
+// GL.ADD
+// Adds value to each R, G, B, and A in the accumulation buffer.
+//
+// GL.MULT
+// Multiplies each R, G, B, and A in the accumulation buffer by value
+// and returns the scaled component to its corresponding accumulation
+// buffer location.
+//
+// GL.RETURN
+// Transfers accumulation buffer values to the color buffer or buffers
+// currently selected for writing. Each R, G, B, and A component is
+// multiplied by value, then multiplied by 2 n - 1 , clamped to the
+// range 0 2 n - 1 , and stored in the corresponding display buffer
+// cell. The only fragment operations that are applied to this transfer
+// are pixel ownership, scissor, dithering, and color writemasks.
+//
+// To clear the accumulation buffer, call ClearAccum with R, G, B, and A
+// values to set it to, then call Clear with the accumulation buffer
+// enabled.
+//
+// Error GL.INVALID_ENUM is generated if op is not an accepted value.
+// GL.INVALID_OPERATION is generated if there is no accumulation buffer.
+// GL.INVALID_OPERATION is generated if Accum is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) Accum(op glbase.Enum, value float32) {
+ C.gl1_5_glAccum(gl.funcs, C.GLenum(op), C.GLfloat(value))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexMask.xml
+func (gl *GL) IndexMask(mask uint32) {
+ C.gl1_5_glIndexMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearIndex.xml
+func (gl *GL) ClearIndex(c float32) {
+ C.gl1_5_glClearIndex(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearAccum.xml
+func (gl *GL) ClearAccum(red, green, blue, alpha float32) {
+ C.gl1_5_glClearAccum(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushName.xml
+func (gl *GL) PushName(name uint32) {
+ C.gl1_5_glPushName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopName.xml
+func (gl *GL) PopName() {
+ C.gl1_5_glPopName(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPassThrough.xml
+func (gl *GL) PassThrough(token float32) {
+ C.gl1_5_glPassThrough(gl.funcs, C.GLfloat(token))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadName.xml
+func (gl *GL) LoadName(name uint32) {
+ C.gl1_5_glLoadName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInitNames.xml
+func (gl *GL) InitNames() {
+ C.gl1_5_glInitNames(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRenderMode.xml
+func (gl *GL) RenderMode(mode glbase.Enum) int32 {
+ glresult := C.gl1_5_glRenderMode(gl.funcs, C.GLenum(mode))
+ return int32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSelectBuffer.xml
+func (gl *GL) SelectBuffer(size int, buffer []glbase.Buffer) {
+ C.gl1_5_glSelectBuffer(gl.funcs, C.GLsizei(size), (*C.GLuint)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFeedbackBuffer.xml
+func (gl *GL) FeedbackBuffer(size int, gltype glbase.Enum, buffer []float32) {
+ C.gl1_5_glFeedbackBuffer(gl.funcs, C.GLsizei(size), C.GLenum(gltype), (*C.GLfloat)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeniv.xml
+func (gl *GL) TexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl1_5_glTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeni.xml
+func (gl *GL) TexGeni(coord, pname glbase.Enum, param int32) {
+ C.gl1_5_glTexGeni(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenfv.xml
+func (gl *GL) TexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl1_5_glTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenf.xml
+func (gl *GL) TexGenf(coord, pname glbase.Enum, param float32) {
+ C.gl1_5_glTexGenf(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGendv.xml
+func (gl *GL) TexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl1_5_glTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGend.xml
+func (gl *GL) TexGend(coord, pname glbase.Enum, param float64) {
+ C.gl1_5_glTexGend(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLdouble(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnviv.xml
+func (gl *GL) TexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl1_5_glTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvi.xml
+func (gl *GL) TexEnvi(target, pname glbase.Enum, param int32) {
+ C.gl1_5_glTexEnvi(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvfv.xml
+func (gl *GL) TexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_5_glTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvf.xml
+func (gl *GL) TexEnvf(target, pname glbase.Enum, param float32) {
+ C.gl1_5_glTexEnvf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glShadeModel.xml
+func (gl *GL) ShadeModel(mode glbase.Enum) {
+ C.gl1_5_glShadeModel(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonStipple.xml
+func (gl *GL) PolygonStipple(mask []uint8) {
+ C.gl1_5_glPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialiv.xml
+func (gl *GL) Materialiv(face, pname glbase.Enum, params []int32) {
+ C.gl1_5_glMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMateriali.xml
+func (gl *GL) Materiali(face, pname glbase.Enum, param int32) {
+ C.gl1_5_glMateriali(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialfv.xml
+func (gl *GL) Materialfv(face, pname glbase.Enum, params []float32) {
+ C.gl1_5_glMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialf.xml
+func (gl *GL) Materialf(face, pname glbase.Enum, param float32) {
+ C.gl1_5_glMaterialf(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineStipple.xml
+func (gl *GL) LineStipple(factor int32, pattern uint16) {
+ C.gl1_5_glLineStipple(gl.funcs, C.GLint(factor), C.GLushort(pattern))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeliv.xml
+func (gl *GL) LightModeliv(pname glbase.Enum, params []int32) {
+ C.gl1_5_glLightModeliv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeli.xml
+func (gl *GL) LightModeli(pname glbase.Enum, param int32) {
+ C.gl1_5_glLightModeli(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelfv.xml
+func (gl *GL) LightModelfv(pname glbase.Enum, params []float32) {
+ C.gl1_5_glLightModelfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelf.xml
+func (gl *GL) LightModelf(pname glbase.Enum, param float32) {
+ C.gl1_5_glLightModelf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightiv.xml
+func (gl *GL) Lightiv(light, pname glbase.Enum, params []int32) {
+ C.gl1_5_glLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLighti.xml
+func (gl *GL) Lighti(light, pname glbase.Enum, param int32) {
+ C.gl1_5_glLighti(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightfv.xml
+func (gl *GL) Lightfv(light, pname glbase.Enum, params []float32) {
+ C.gl1_5_glLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightf.xml
+func (gl *GL) Lightf(light, pname glbase.Enum, param float32) {
+ C.gl1_5_glLightf(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogiv.xml
+func (gl *GL) Fogiv(pname glbase.Enum, params []int32) {
+ C.gl1_5_glFogiv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogi.xml
+func (gl *GL) Fogi(pname glbase.Enum, param int32) {
+ C.gl1_5_glFogi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogfv.xml
+func (gl *GL) Fogfv(pname glbase.Enum, params []float32) {
+ C.gl1_5_glFogfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogf.xml
+func (gl *GL) Fogf(pname glbase.Enum, param float32) {
+ C.gl1_5_glFogf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMaterial.xml
+func (gl *GL) ColorMaterial(face, mode glbase.Enum) {
+ C.gl1_5_glColorMaterial(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClipPlane.xml
+func (gl *GL) ClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl1_5_glClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4sv.xml
+func (gl *GL) Vertex4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glVertex4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4s.xml
+func (gl *GL) Vertex4s(x, y, z, w int16) {
+ C.gl1_5_glVertex4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4iv.xml
+func (gl *GL) Vertex4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glVertex4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4i.xml
+func (gl *GL) Vertex4i(x, y, z, w int) {
+ C.gl1_5_glVertex4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4fv.xml
+func (gl *GL) Vertex4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glVertex4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4f.xml
+func (gl *GL) Vertex4f(x, y, z, w float32) {
+ C.gl1_5_glVertex4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4dv.xml
+func (gl *GL) Vertex4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glVertex4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4d.xml
+func (gl *GL) Vertex4d(x, y, z, w float64) {
+ C.gl1_5_glVertex4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3sv.xml
+func (gl *GL) Vertex3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glVertex3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3s.xml
+func (gl *GL) Vertex3s(x, y, z int16) {
+ C.gl1_5_glVertex3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3iv.xml
+func (gl *GL) Vertex3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glVertex3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3i.xml
+func (gl *GL) Vertex3i(x, y, z int) {
+ C.gl1_5_glVertex3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3fv.xml
+func (gl *GL) Vertex3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glVertex3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3f.xml
+func (gl *GL) Vertex3f(x, y, z float32) {
+ C.gl1_5_glVertex3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3dv.xml
+func (gl *GL) Vertex3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glVertex3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3d.xml
+func (gl *GL) Vertex3d(x, y, z float64) {
+ C.gl1_5_glVertex3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2sv.xml
+func (gl *GL) Vertex2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glVertex2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2s.xml
+func (gl *GL) Vertex2s(x, y int16) {
+ C.gl1_5_glVertex2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2iv.xml
+func (gl *GL) Vertex2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glVertex2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2i.xml
+func (gl *GL) Vertex2i(x, y int) {
+ C.gl1_5_glVertex2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2fv.xml
+func (gl *GL) Vertex2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glVertex2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2f.xml
+func (gl *GL) Vertex2f(x, y float32) {
+ C.gl1_5_glVertex2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2dv.xml
+func (gl *GL) Vertex2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glVertex2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2d.xml
+func (gl *GL) Vertex2d(x, y float64) {
+ C.gl1_5_glVertex2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4sv.xml
+func (gl *GL) TexCoord4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glTexCoord4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4s.xml
+func (gl *GL) TexCoord4s(s, t, r, q int16) {
+ C.gl1_5_glTexCoord4s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4iv.xml
+func (gl *GL) TexCoord4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glTexCoord4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4i.xml
+func (gl *GL) TexCoord4i(s, t, r, q int32) {
+ C.gl1_5_glTexCoord4i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4fv.xml
+func (gl *GL) TexCoord4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glTexCoord4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4f.xml
+func (gl *GL) TexCoord4f(s, t, r, q float32) {
+ C.gl1_5_glTexCoord4f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4dv.xml
+func (gl *GL) TexCoord4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glTexCoord4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4d.xml
+func (gl *GL) TexCoord4d(s, t, r, q float64) {
+ C.gl1_5_glTexCoord4d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3sv.xml
+func (gl *GL) TexCoord3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glTexCoord3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3s.xml
+func (gl *GL) TexCoord3s(s, t, r int16) {
+ C.gl1_5_glTexCoord3s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3iv.xml
+func (gl *GL) TexCoord3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glTexCoord3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3i.xml
+func (gl *GL) TexCoord3i(s, t, r int32) {
+ C.gl1_5_glTexCoord3i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3fv.xml
+func (gl *GL) TexCoord3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glTexCoord3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3f.xml
+func (gl *GL) TexCoord3f(s, t, r float32) {
+ C.gl1_5_glTexCoord3f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3dv.xml
+func (gl *GL) TexCoord3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glTexCoord3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3d.xml
+func (gl *GL) TexCoord3d(s, t, r float64) {
+ C.gl1_5_glTexCoord3d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2sv.xml
+func (gl *GL) TexCoord2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glTexCoord2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2s.xml
+func (gl *GL) TexCoord2s(s, t int16) {
+ C.gl1_5_glTexCoord2s(gl.funcs, C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2iv.xml
+func (gl *GL) TexCoord2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glTexCoord2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2i.xml
+func (gl *GL) TexCoord2i(s, t int32) {
+ C.gl1_5_glTexCoord2i(gl.funcs, C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2fv.xml
+func (gl *GL) TexCoord2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glTexCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2f.xml
+func (gl *GL) TexCoord2f(s, t float32) {
+ C.gl1_5_glTexCoord2f(gl.funcs, C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2dv.xml
+func (gl *GL) TexCoord2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glTexCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2d.xml
+func (gl *GL) TexCoord2d(s, t float64) {
+ C.gl1_5_glTexCoord2d(gl.funcs, C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1sv.xml
+func (gl *GL) TexCoord1sv(v []int16) {
+ C.gl1_5_glTexCoord1sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1s.xml
+func (gl *GL) TexCoord1s(s int16) {
+ C.gl1_5_glTexCoord1s(gl.funcs, C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1iv.xml
+func (gl *GL) TexCoord1iv(v []int32) {
+ C.gl1_5_glTexCoord1iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1i.xml
+func (gl *GL) TexCoord1i(s int32) {
+ C.gl1_5_glTexCoord1i(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1fv.xml
+func (gl *GL) TexCoord1fv(v []float32) {
+ C.gl1_5_glTexCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1f.xml
+func (gl *GL) TexCoord1f(s float32) {
+ C.gl1_5_glTexCoord1f(gl.funcs, C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1dv.xml
+func (gl *GL) TexCoord1dv(v []float64) {
+ C.gl1_5_glTexCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1d.xml
+func (gl *GL) TexCoord1d(s float64) {
+ C.gl1_5_glTexCoord1d(gl.funcs, C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectsv.xml
+func (gl *GL) Rectsv(v1, v2 []int16) {
+ C.gl1_5_glRectsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v1[0])), (*C.GLshort)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRects.xml
+func (gl *GL) Rects(x1, y1, x2, y2 int16) {
+ C.gl1_5_glRects(gl.funcs, C.GLshort(x1), C.GLshort(y1), C.GLshort(x2), C.GLshort(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectiv.xml
+func (gl *GL) Rectiv(v1, v2 []int32) {
+ C.gl1_5_glRectiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v1[0])), (*C.GLint)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRecti.xml
+func (gl *GL) Recti(x1, y1, x2, y2 int32) {
+ C.gl1_5_glRecti(gl.funcs, C.GLint(x1), C.GLint(y1), C.GLint(x2), C.GLint(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectfv.xml
+func (gl *GL) Rectfv(v1, v2 []float32) {
+ C.gl1_5_glRectfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v1[0])), (*C.GLfloat)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectf.xml
+func (gl *GL) Rectf(x1, y1, x2, y2 float32) {
+ C.gl1_5_glRectf(gl.funcs, C.GLfloat(x1), C.GLfloat(y1), C.GLfloat(x2), C.GLfloat(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectdv.xml
+func (gl *GL) Rectdv(v1, v2 []float64) {
+ C.gl1_5_glRectdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v1[0])), (*C.GLdouble)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectd.xml
+func (gl *GL) Rectd(x1, y1, x2, y2 float64) {
+ C.gl1_5_glRectd(gl.funcs, C.GLdouble(x1), C.GLdouble(y1), C.GLdouble(x2), C.GLdouble(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4sv.xml
+func (gl *GL) RasterPos4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glRasterPos4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4s.xml
+func (gl *GL) RasterPos4s(x, y, z, w int16) {
+ C.gl1_5_glRasterPos4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4iv.xml
+func (gl *GL) RasterPos4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glRasterPos4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4i.xml
+func (gl *GL) RasterPos4i(x, y, z, w int) {
+ C.gl1_5_glRasterPos4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4fv.xml
+func (gl *GL) RasterPos4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glRasterPos4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4f.xml
+func (gl *GL) RasterPos4f(x, y, z, w float32) {
+ C.gl1_5_glRasterPos4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4dv.xml
+func (gl *GL) RasterPos4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glRasterPos4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4d.xml
+func (gl *GL) RasterPos4d(x, y, z, w float64) {
+ C.gl1_5_glRasterPos4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3sv.xml
+func (gl *GL) RasterPos3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glRasterPos3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3s.xml
+func (gl *GL) RasterPos3s(x, y, z int16) {
+ C.gl1_5_glRasterPos3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3iv.xml
+func (gl *GL) RasterPos3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glRasterPos3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3i.xml
+func (gl *GL) RasterPos3i(x, y, z int) {
+ C.gl1_5_glRasterPos3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3fv.xml
+func (gl *GL) RasterPos3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glRasterPos3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3f.xml
+func (gl *GL) RasterPos3f(x, y, z float32) {
+ C.gl1_5_glRasterPos3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3dv.xml
+func (gl *GL) RasterPos3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glRasterPos3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3d.xml
+func (gl *GL) RasterPos3d(x, y, z float64) {
+ C.gl1_5_glRasterPos3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2sv.xml
+func (gl *GL) RasterPos2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glRasterPos2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2s.xml
+func (gl *GL) RasterPos2s(x, y int16) {
+ C.gl1_5_glRasterPos2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2iv.xml
+func (gl *GL) RasterPos2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glRasterPos2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2i.xml
+func (gl *GL) RasterPos2i(x, y int) {
+ C.gl1_5_glRasterPos2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2fv.xml
+func (gl *GL) RasterPos2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glRasterPos2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2f.xml
+func (gl *GL) RasterPos2f(x, y float32) {
+ C.gl1_5_glRasterPos2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2dv.xml
+func (gl *GL) RasterPos2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glRasterPos2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2d.xml
+func (gl *GL) RasterPos2d(x, y float64) {
+ C.gl1_5_glRasterPos2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3sv.xml
+func (gl *GL) Normal3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glNormal3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3s.xml
+func (gl *GL) Normal3s(nx, ny, nz int16) {
+ C.gl1_5_glNormal3s(gl.funcs, C.GLshort(nx), C.GLshort(ny), C.GLshort(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3iv.xml
+func (gl *GL) Normal3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glNormal3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3i.xml
+func (gl *GL) Normal3i(nx, ny, nz int32) {
+ C.gl1_5_glNormal3i(gl.funcs, C.GLint(nx), C.GLint(ny), C.GLint(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3fv.xml
+func (gl *GL) Normal3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glNormal3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3f.xml
+func (gl *GL) Normal3f(nx, ny, nz float32) {
+ C.gl1_5_glNormal3f(gl.funcs, C.GLfloat(nx), C.GLfloat(ny), C.GLfloat(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3dv.xml
+func (gl *GL) Normal3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glNormal3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3d.xml
+func (gl *GL) Normal3d(nx, ny, nz float64) {
+ C.gl1_5_glNormal3d(gl.funcs, C.GLdouble(nx), C.GLdouble(ny), C.GLdouble(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3bv.xml
+func (gl *GL) Normal3bv(v []byte) {
+ C.gl1_5_glNormal3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3b.xml
+func (gl *GL) Normal3b(nx, ny, nz byte) {
+ C.gl1_5_glNormal3b(gl.funcs, C.GLbyte(nx), C.GLbyte(ny), C.GLbyte(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexsv.xml
+func (gl *GL) Indexsv(c []int16) {
+ C.gl1_5_glIndexsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexs.xml
+func (gl *GL) Indexs(c int16) {
+ C.gl1_5_glIndexs(gl.funcs, C.GLshort(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexiv.xml
+func (gl *GL) Indexiv(c []int32) {
+ C.gl1_5_glIndexiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexi.xml
+func (gl *GL) Indexi(c int32) {
+ C.gl1_5_glIndexi(gl.funcs, C.GLint(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexfv.xml
+func (gl *GL) Indexfv(c []float32) {
+ C.gl1_5_glIndexfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexf.xml
+func (gl *GL) Indexf(c float32) {
+ C.gl1_5_glIndexf(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexdv.xml
+func (gl *GL) Indexdv(c []float64) {
+ C.gl1_5_glIndexdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexd.xml
+func (gl *GL) Indexd(c float64) {
+ C.gl1_5_glIndexd(gl.funcs, C.GLdouble(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnd.xml
+func (gl *GL) End() {
+ C.gl1_5_glEnd(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagv.xml
+func (gl *GL) EdgeFlagv(flag []bool) {
+ C.gl1_5_glEdgeFlagv(gl.funcs, (*C.GLboolean)(unsafe.Pointer(&flag[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlag.xml
+func (gl *GL) EdgeFlag(flag bool) {
+ C.gl1_5_glEdgeFlag(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4usv.xml
+func (gl *GL) Color4usv(v []uint16) {
+ C.gl1_5_glColor4usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4us.xml
+func (gl *GL) Color4us(red, green, blue, alpha uint16) {
+ C.gl1_5_glColor4us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue), C.GLushort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4uiv.xml
+func (gl *GL) Color4uiv(v []uint32) {
+ C.gl1_5_glColor4uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ui.xml
+func (gl *GL) Color4ui(red, green, blue, alpha uint32) {
+ C.gl1_5_glColor4ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue), C.GLuint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ubv.xml
+func (gl *GL) Color4ubv(v []uint8) {
+ C.gl1_5_glColor4ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ub.xml
+func (gl *GL) Color4ub(red, green, blue, alpha uint8) {
+ C.gl1_5_glColor4ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue), C.GLubyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4sv.xml
+func (gl *GL) Color4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glColor4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4s.xml
+func (gl *GL) Color4s(red, green, blue, alpha int16) {
+ C.gl1_5_glColor4s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue), C.GLshort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4iv.xml
+func (gl *GL) Color4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glColor4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4i.xml
+func (gl *GL) Color4i(red, green, blue, alpha int32) {
+ C.gl1_5_glColor4i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue), C.GLint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4fv.xml
+func (gl *GL) Color4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glColor4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4f.xml
+func (gl *GL) Color4f(red, green, blue, alpha float32) {
+ C.gl1_5_glColor4f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4dv.xml
+func (gl *GL) Color4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glColor4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4d.xml
+func (gl *GL) Color4d(red, green, blue, alpha float64) {
+ C.gl1_5_glColor4d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue), C.GLdouble(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4bv.xml
+func (gl *GL) Color4bv(v []byte) {
+ C.gl1_5_glColor4bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4b.xml
+func (gl *GL) Color4b(red, green, blue, alpha byte) {
+ C.gl1_5_glColor4b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue), C.GLbyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3usv.xml
+func (gl *GL) Color3usv(v []uint16) {
+ C.gl1_5_glColor3usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3us.xml
+func (gl *GL) Color3us(red, green, blue uint16) {
+ C.gl1_5_glColor3us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3uiv.xml
+func (gl *GL) Color3uiv(v []uint32) {
+ C.gl1_5_glColor3uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ui.xml
+func (gl *GL) Color3ui(red, green, blue uint32) {
+ C.gl1_5_glColor3ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ubv.xml
+func (gl *GL) Color3ubv(v []uint8) {
+ C.gl1_5_glColor3ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ub.xml
+func (gl *GL) Color3ub(red, green, blue uint8) {
+ C.gl1_5_glColor3ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3sv.xml
+func (gl *GL) Color3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glColor3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3s.xml
+func (gl *GL) Color3s(red, green, blue int16) {
+ C.gl1_5_glColor3s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3iv.xml
+func (gl *GL) Color3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glColor3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3i.xml
+func (gl *GL) Color3i(red, green, blue int32) {
+ C.gl1_5_glColor3i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3fv.xml
+func (gl *GL) Color3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glColor3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3f.xml
+func (gl *GL) Color3f(red, green, blue float32) {
+ C.gl1_5_glColor3f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3dv.xml
+func (gl *GL) Color3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glColor3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3d.xml
+func (gl *GL) Color3d(red, green, blue float64) {
+ C.gl1_5_glColor3d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3bv.xml
+func (gl *GL) Color3bv(v []byte) {
+ C.gl1_5_glColor3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3b.xml
+func (gl *GL) Color3b(red, green, blue byte) {
+ C.gl1_5_glColor3b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBitmap.xml
+func (gl *GL) Bitmap(width, height int, xorig, yorig, xmove, ymove float32, bitmap []uint8) {
+ C.gl1_5_glBitmap(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLfloat(xorig), C.GLfloat(yorig), C.GLfloat(xmove), C.GLfloat(ymove), (*C.GLubyte)(unsafe.Pointer(&bitmap[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBegin.xml
+func (gl *GL) Begin(mode glbase.Enum) {
+ C.gl1_5_glBegin(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glListBase.xml
+func (gl *GL) ListBase(base uint32) {
+ C.gl1_5_glListBase(gl.funcs, C.GLuint(base))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGenLists.xml
+func (gl *GL) GenLists(range_ int32) uint32 {
+ glresult := C.gl1_5_glGenLists(gl.funcs, C.GLsizei(range_))
+ return uint32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDeleteLists.xml
+func (gl *GL) DeleteLists(list uint32, range_ int32) {
+ C.gl1_5_glDeleteLists(gl.funcs, C.GLuint(list), C.GLsizei(range_))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallLists.xml
+func (gl *GL) CallLists(n int, gltype glbase.Enum, lists interface{}) {
+ var lists_ptr unsafe.Pointer
+ var lists_v = reflect.ValueOf(lists)
+ if lists != nil && lists_v.Kind() != reflect.Slice {
+ panic("parameter lists must be a slice")
+ }
+ if lists != nil {
+ lists_ptr = unsafe.Pointer(lists_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glCallLists(gl.funcs, C.GLsizei(n), C.GLenum(gltype), lists_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallList.xml
+func (gl *GL) CallList(list uint32) {
+ C.gl1_5_glCallList(gl.funcs, C.GLuint(list))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEndList.xml
+func (gl *GL) EndList() {
+ C.gl1_5_glEndList(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNewList.xml
+func (gl *GL) NewList(list uint32, mode glbase.Enum) {
+ C.gl1_5_glNewList(gl.funcs, C.GLuint(list), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushClientAttrib.xml
+func (gl *GL) PushClientAttrib(mask glbase.Bitfield) {
+ C.gl1_5_glPushClientAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopClientAttrib.xml
+func (gl *GL) PopClientAttrib() {
+ C.gl1_5_glPopClientAttrib(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPrioritizeTextures.xml
+func (gl *GL) PrioritizeTextures(n int, textures []glbase.Texture, priorities []float32) {
+ C.gl1_5_glPrioritizeTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLfloat)(unsafe.Pointer(&priorities[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAreTexturesResident.xml
+func (gl *GL) AreTexturesResident(n int, textures []glbase.Texture, residences []bool) bool {
+ glresult := C.gl1_5_glAreTexturesResident(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLboolean)(unsafe.Pointer(&residences[0])))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexPointer.xml
+func (gl *GL) VertexPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glVertexPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoordPointer.xml
+func (gl *GL) TexCoordPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glTexCoordPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormalPointer.xml
+func (gl *GL) NormalPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glNormalPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInterleavedArrays.xml
+func (gl *GL) InterleavedArrays(format glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glInterleavedArrays(gl.funcs, C.GLenum(format), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexPointer.xml
+func (gl *GL) IndexPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glIndexPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnableClientState.xml
+func (gl *GL) EnableClientState(array glbase.Enum) {
+ C.gl1_5_glEnableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagPointer.xml
+func (gl *GL) EdgeFlagPointer(stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glEdgeFlagPointer(gl.funcs, C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisableClientState.xml
+func (gl *GL) DisableClientState(array glbase.Enum) {
+ C.gl1_5_glDisableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorPointer.xml
+func (gl *GL) ColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glColorPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glArrayElement.xml
+func (gl *GL) ArrayElement(i int32) {
+ C.gl1_5_glArrayElement(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glResetMinmax.xml
+func (gl *GL) ResetMinmax(target glbase.Enum) {
+ C.gl1_5_glResetMinmax(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glResetHistogram.xml
+func (gl *GL) ResetHistogram(target glbase.Enum) {
+ C.gl1_5_glResetHistogram(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMinmax.xml
+func (gl *GL) Minmax(target, internalFormat glbase.Enum, sink bool) {
+ C.gl1_5_glMinmax(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), *(*C.GLboolean)(unsafe.Pointer(&sink)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glHistogram.xml
+func (gl *GL) Histogram(target glbase.Enum, width int, internalFormat glbase.Enum, sink bool) {
+ C.gl1_5_glHistogram(gl.funcs, C.GLenum(target), C.GLsizei(width), C.GLenum(internalFormat), *(*C.GLboolean)(unsafe.Pointer(&sink)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmaxParameteriv.xml
+func (gl *GL) GetMinmaxParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_5_glGetMinmaxParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmaxParameterfv.xml
+func (gl *GL) GetMinmaxParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_5_glGetMinmaxParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmax.xml
+func (gl *GL) GetMinmax(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{}) {
+ var values_ptr unsafe.Pointer
+ var values_v = reflect.ValueOf(values)
+ if values != nil && values_v.Kind() != reflect.Slice {
+ panic("parameter values must be a slice")
+ }
+ if values != nil {
+ values_ptr = unsafe.Pointer(values_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glGetMinmax(gl.funcs, C.GLenum(target), *(*C.GLboolean)(unsafe.Pointer(&reset)), C.GLenum(format), C.GLenum(gltype), values_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogramParameteriv.xml
+func (gl *GL) GetHistogramParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_5_glGetHistogramParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogramParameterfv.xml
+func (gl *GL) GetHistogramParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_5_glGetHistogramParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogram.xml
+func (gl *GL) GetHistogram(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{}) {
+ var values_ptr unsafe.Pointer
+ var values_v = reflect.ValueOf(values)
+ if values != nil && values_v.Kind() != reflect.Slice {
+ panic("parameter values must be a slice")
+ }
+ if values != nil {
+ values_ptr = unsafe.Pointer(values_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glGetHistogram(gl.funcs, C.GLenum(target), *(*C.GLboolean)(unsafe.Pointer(&reset)), C.GLenum(format), C.GLenum(gltype), values_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSeparableFilter2D.xml
+func (gl *GL) SeparableFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, row, column interface{}) {
+ var row_ptr unsafe.Pointer
+ var row_v = reflect.ValueOf(row)
+ if row != nil && row_v.Kind() != reflect.Slice {
+ panic("parameter row must be a slice")
+ }
+ if row != nil {
+ row_ptr = unsafe.Pointer(row_v.Index(0).Addr().Pointer())
+ }
+ var column_ptr unsafe.Pointer
+ var column_v = reflect.ValueOf(column)
+ if column != nil && column_v.Kind() != reflect.Slice {
+ panic("parameter column must be a slice")
+ }
+ if column != nil {
+ column_ptr = unsafe.Pointer(column_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glSeparableFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), row_ptr, column_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetSeparableFilter.xml
+func (gl *GL) GetSeparableFilter(target, format, gltype glbase.Enum, row, column, span interface{}) {
+ var row_ptr unsafe.Pointer
+ var row_v = reflect.ValueOf(row)
+ if row != nil && row_v.Kind() != reflect.Slice {
+ panic("parameter row must be a slice")
+ }
+ if row != nil {
+ row_ptr = unsafe.Pointer(row_v.Index(0).Addr().Pointer())
+ }
+ var column_ptr unsafe.Pointer
+ var column_v = reflect.ValueOf(column)
+ if column != nil && column_v.Kind() != reflect.Slice {
+ panic("parameter column must be a slice")
+ }
+ if column != nil {
+ column_ptr = unsafe.Pointer(column_v.Index(0).Addr().Pointer())
+ }
+ var span_ptr unsafe.Pointer
+ var span_v = reflect.ValueOf(span)
+ if span != nil && span_v.Kind() != reflect.Slice {
+ panic("parameter span must be a slice")
+ }
+ if span != nil {
+ span_ptr = unsafe.Pointer(span_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glGetSeparableFilter(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), row_ptr, column_ptr, span_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionParameteriv.xml
+func (gl *GL) GetConvolutionParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_5_glGetConvolutionParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionParameterfv.xml
+func (gl *GL) GetConvolutionParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_5_glGetConvolutionParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionFilter.xml
+func (gl *GL) GetConvolutionFilter(target, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glGetConvolutionFilter(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyConvolutionFilter2D.xml
+func (gl *GL) CopyConvolutionFilter2D(target, internalFormat glbase.Enum, x, y, width, height int) {
+ C.gl1_5_glCopyConvolutionFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyConvolutionFilter1D.xml
+func (gl *GL) CopyConvolutionFilter1D(target, internalFormat glbase.Enum, x, y, width int) {
+ C.gl1_5_glCopyConvolutionFilter1D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameteriv.xml
+func (gl *GL) ConvolutionParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_5_glConvolutionParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameteri.xml
+func (gl *GL) ConvolutionParameteri(target, pname glbase.Enum, params int32) {
+ C.gl1_5_glConvolutionParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(params))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameterfv.xml
+func (gl *GL) ConvolutionParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_5_glConvolutionParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameterf.xml
+func (gl *GL) ConvolutionParameterf(target, pname glbase.Enum, params float32) {
+ C.gl1_5_glConvolutionParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(params))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionFilter2D.xml
+func (gl *GL) ConvolutionFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glConvolutionFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionFilter1D.xml
+func (gl *GL) ConvolutionFilter1D(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glConvolutionFilter1D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyColorSubTable.xml
+func (gl *GL) CopyColorSubTable(target glbase.Enum, start int32, x, y, width int) {
+ C.gl1_5_glCopyColorSubTable(gl.funcs, C.GLenum(target), C.GLsizei(start), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorSubTable.xml
+func (gl *GL) ColorSubTable(target glbase.Enum, start int32, count int, format, gltype glbase.Enum, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glColorSubTable(gl.funcs, C.GLenum(target), C.GLsizei(start), C.GLsizei(count), C.GLenum(format), C.GLenum(gltype), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTableParameteriv.xml
+func (gl *GL) GetColorTableParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_5_glGetColorTableParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTableParameterfv.xml
+func (gl *GL) GetColorTableParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_5_glGetColorTableParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTable.xml
+func (gl *GL) GetColorTable(target, format, gltype glbase.Enum, table interface{}) {
+ var table_ptr unsafe.Pointer
+ var table_v = reflect.ValueOf(table)
+ if table != nil && table_v.Kind() != reflect.Slice {
+ panic("parameter table must be a slice")
+ }
+ if table != nil {
+ table_ptr = unsafe.Pointer(table_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glGetColorTable(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), table_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyColorTable.xml
+func (gl *GL) CopyColorTable(target, internalFormat glbase.Enum, x, y, width int) {
+ C.gl1_5_glCopyColorTable(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTableParameteriv.xml
+func (gl *GL) ColorTableParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl1_5_glColorTableParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTableParameterfv.xml
+func (gl *GL) ColorTableParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl1_5_glColorTableParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTable.xml
+func (gl *GL) ColorTable(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, table interface{}) {
+ var table_ptr unsafe.Pointer
+ var table_v = reflect.ValueOf(table)
+ if table != nil && table_v.Kind() != reflect.Slice {
+ panic("parameter table must be a slice")
+ }
+ if table != nil {
+ table_ptr = unsafe.Pointer(table_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glColorTable(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), table_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultTransposeMatrixd.xml
+func (gl *GL) MultTransposeMatrixd(m []float64) {
+ C.gl1_5_glMultTransposeMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultTransposeMatrixf.xml
+func (gl *GL) MultTransposeMatrixf(m []float32) {
+ C.gl1_5_glMultTransposeMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadTransposeMatrixd.xml
+func (gl *GL) LoadTransposeMatrixd(m []float64) {
+ C.gl1_5_glLoadTransposeMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadTransposeMatrixf.xml
+func (gl *GL) LoadTransposeMatrixf(m []float32) {
+ C.gl1_5_glLoadTransposeMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4sv.xml
+func (gl *GL) MultiTexCoord4sv(target glbase.Enum, v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glMultiTexCoord4sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4s.xml
+func (gl *GL) MultiTexCoord4s(target glbase.Enum, s, t, r, q int16) {
+ C.gl1_5_glMultiTexCoord4s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4iv.xml
+func (gl *GL) MultiTexCoord4iv(target glbase.Enum, v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glMultiTexCoord4iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4i.xml
+func (gl *GL) MultiTexCoord4i(target glbase.Enum, s, t, r, q int32) {
+ C.gl1_5_glMultiTexCoord4i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4fv.xml
+func (gl *GL) MultiTexCoord4fv(target glbase.Enum, v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glMultiTexCoord4fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4f.xml
+func (gl *GL) MultiTexCoord4f(target glbase.Enum, s, t, r, q float32) {
+ C.gl1_5_glMultiTexCoord4f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4dv.xml
+func (gl *GL) MultiTexCoord4dv(target glbase.Enum, v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glMultiTexCoord4dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4d.xml
+func (gl *GL) MultiTexCoord4d(target glbase.Enum, s, t, r, q float64) {
+ C.gl1_5_glMultiTexCoord4d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3sv.xml
+func (gl *GL) MultiTexCoord3sv(target glbase.Enum, v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glMultiTexCoord3sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3s.xml
+func (gl *GL) MultiTexCoord3s(target glbase.Enum, s, t, r int16) {
+ C.gl1_5_glMultiTexCoord3s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3iv.xml
+func (gl *GL) MultiTexCoord3iv(target glbase.Enum, v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glMultiTexCoord3iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3i.xml
+func (gl *GL) MultiTexCoord3i(target glbase.Enum, s, t, r int32) {
+ C.gl1_5_glMultiTexCoord3i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3fv.xml
+func (gl *GL) MultiTexCoord3fv(target glbase.Enum, v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glMultiTexCoord3fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3f.xml
+func (gl *GL) MultiTexCoord3f(target glbase.Enum, s, t, r float32) {
+ C.gl1_5_glMultiTexCoord3f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3dv.xml
+func (gl *GL) MultiTexCoord3dv(target glbase.Enum, v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glMultiTexCoord3dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3d.xml
+func (gl *GL) MultiTexCoord3d(target glbase.Enum, s, t, r float64) {
+ C.gl1_5_glMultiTexCoord3d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2sv.xml
+func (gl *GL) MultiTexCoord2sv(target glbase.Enum, v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glMultiTexCoord2sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2s.xml
+func (gl *GL) MultiTexCoord2s(target glbase.Enum, s, t int16) {
+ C.gl1_5_glMultiTexCoord2s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2iv.xml
+func (gl *GL) MultiTexCoord2iv(target glbase.Enum, v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glMultiTexCoord2iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2i.xml
+func (gl *GL) MultiTexCoord2i(target glbase.Enum, s, t int32) {
+ C.gl1_5_glMultiTexCoord2i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2fv.xml
+func (gl *GL) MultiTexCoord2fv(target glbase.Enum, v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glMultiTexCoord2fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2f.xml
+func (gl *GL) MultiTexCoord2f(target glbase.Enum, s, t float32) {
+ C.gl1_5_glMultiTexCoord2f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2dv.xml
+func (gl *GL) MultiTexCoord2dv(target glbase.Enum, v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glMultiTexCoord2dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2d.xml
+func (gl *GL) MultiTexCoord2d(target glbase.Enum, s, t float64) {
+ C.gl1_5_glMultiTexCoord2d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1sv.xml
+func (gl *GL) MultiTexCoord1sv(target glbase.Enum, v []int16) {
+ C.gl1_5_glMultiTexCoord1sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1s.xml
+func (gl *GL) MultiTexCoord1s(target glbase.Enum, s int16) {
+ C.gl1_5_glMultiTexCoord1s(gl.funcs, C.GLenum(target), C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1iv.xml
+func (gl *GL) MultiTexCoord1iv(target glbase.Enum, v []int32) {
+ C.gl1_5_glMultiTexCoord1iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1i.xml
+func (gl *GL) MultiTexCoord1i(target glbase.Enum, s int32) {
+ C.gl1_5_glMultiTexCoord1i(gl.funcs, C.GLenum(target), C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1fv.xml
+func (gl *GL) MultiTexCoord1fv(target glbase.Enum, v []float32) {
+ C.gl1_5_glMultiTexCoord1fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1f.xml
+func (gl *GL) MultiTexCoord1f(target glbase.Enum, s float32) {
+ C.gl1_5_glMultiTexCoord1f(gl.funcs, C.GLenum(target), C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1dv.xml
+func (gl *GL) MultiTexCoord1dv(target glbase.Enum, v []float64) {
+ C.gl1_5_glMultiTexCoord1dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1d.xml
+func (gl *GL) MultiTexCoord1d(target glbase.Enum, s float64) {
+ C.gl1_5_glMultiTexCoord1d(gl.funcs, C.GLenum(target), C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClientActiveTexture.xml
+func (gl *GL) ClientActiveTexture(texture glbase.Enum) {
+ C.gl1_5_glClientActiveTexture(gl.funcs, C.GLenum(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3sv.xml
+func (gl *GL) WindowPos3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glWindowPos3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3s.xml
+func (gl *GL) WindowPos3s(x, y, z int16) {
+ C.gl1_5_glWindowPos3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3iv.xml
+func (gl *GL) WindowPos3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glWindowPos3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3i.xml
+func (gl *GL) WindowPos3i(x, y, z int) {
+ C.gl1_5_glWindowPos3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3fv.xml
+func (gl *GL) WindowPos3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glWindowPos3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3f.xml
+func (gl *GL) WindowPos3f(x, y, z float32) {
+ C.gl1_5_glWindowPos3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3dv.xml
+func (gl *GL) WindowPos3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glWindowPos3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3d.xml
+func (gl *GL) WindowPos3d(x, y, z float64) {
+ C.gl1_5_glWindowPos3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2sv.xml
+func (gl *GL) WindowPos2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glWindowPos2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2s.xml
+func (gl *GL) WindowPos2s(x, y int16) {
+ C.gl1_5_glWindowPos2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2iv.xml
+func (gl *GL) WindowPos2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glWindowPos2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2i.xml
+func (gl *GL) WindowPos2i(x, y int) {
+ C.gl1_5_glWindowPos2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2fv.xml
+func (gl *GL) WindowPos2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glWindowPos2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2f.xml
+func (gl *GL) WindowPos2f(x, y float32) {
+ C.gl1_5_glWindowPos2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2dv.xml
+func (gl *GL) WindowPos2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glWindowPos2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2d.xml
+func (gl *GL) WindowPos2d(x, y float64) {
+ C.gl1_5_glWindowPos2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColorPointer.xml
+func (gl *GL) SecondaryColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glSecondaryColorPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3usv.xml
+func (gl *GL) SecondaryColor3usv(v []uint16) {
+ C.gl1_5_glSecondaryColor3usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3us.xml
+func (gl *GL) SecondaryColor3us(red, green, blue uint16) {
+ C.gl1_5_glSecondaryColor3us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3uiv.xml
+func (gl *GL) SecondaryColor3uiv(v []uint32) {
+ C.gl1_5_glSecondaryColor3uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ui.xml
+func (gl *GL) SecondaryColor3ui(red, green, blue uint32) {
+ C.gl1_5_glSecondaryColor3ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ubv.xml
+func (gl *GL) SecondaryColor3ubv(v []uint8) {
+ C.gl1_5_glSecondaryColor3ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ub.xml
+func (gl *GL) SecondaryColor3ub(red, green, blue uint8) {
+ C.gl1_5_glSecondaryColor3ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3sv.xml
+func (gl *GL) SecondaryColor3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glSecondaryColor3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3s.xml
+func (gl *GL) SecondaryColor3s(red, green, blue int16) {
+ C.gl1_5_glSecondaryColor3s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3iv.xml
+func (gl *GL) SecondaryColor3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glSecondaryColor3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3i.xml
+func (gl *GL) SecondaryColor3i(red, green, blue int32) {
+ C.gl1_5_glSecondaryColor3i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3fv.xml
+func (gl *GL) SecondaryColor3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glSecondaryColor3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3f.xml
+func (gl *GL) SecondaryColor3f(red, green, blue float32) {
+ C.gl1_5_glSecondaryColor3f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3dv.xml
+func (gl *GL) SecondaryColor3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl1_5_glSecondaryColor3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3d.xml
+func (gl *GL) SecondaryColor3d(red, green, blue float64) {
+ C.gl1_5_glSecondaryColor3d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3bv.xml
+func (gl *GL) SecondaryColor3bv(v []byte) {
+ C.gl1_5_glSecondaryColor3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3b.xml
+func (gl *GL) SecondaryColor3b(red, green, blue byte) {
+ C.gl1_5_glSecondaryColor3b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordPointer.xml
+func (gl *GL) FogCoordPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl1_5_glFogCoordPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoorddv.xml
+func (gl *GL) FogCoorddv(coord []float64) {
+ C.gl1_5_glFogCoorddv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&coord[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordd.xml
+func (gl *GL) FogCoordd(coord float64) {
+ C.gl1_5_glFogCoordd(gl.funcs, C.GLdouble(coord))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordfv.xml
+func (gl *GL) FogCoordfv(coord []float32) {
+ C.gl1_5_glFogCoordfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&coord[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordf.xml
+func (gl *GL) FogCoordf(coord float32) {
+ C.gl1_5_glFogCoordf(gl.funcs, C.GLfloat(coord))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.0/funcs.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.0/funcs.cpp
new file mode 100644
index 000000000..622f59045
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.0/funcs.cpp
@@ -0,0 +1,3444 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#include <QOpenGLContext>
+#include <QtGui/qopenglfunctions_2_0.h>
+
+#include "funcs.h"
+
+void *gl2_0_funcs() {
+ QOpenGLFunctions_2_0* funcs = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_2_0>();
+ if (!funcs) {
+ return 0;
+ }
+ funcs->initializeOpenGLFunctions();
+ return funcs;
+}
+
+
+void gl2_0_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glViewport(x, y, width, height);
+}
+
+void gl2_0_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDepthRange(nearVal, farVal);
+}
+
+GLboolean gl2_0_glIsEnabled(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glIsEnabled(cap);
+}
+
+void gl2_0_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameteriv(target, level, pname, params);
+}
+
+void gl2_0_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameterfv(target, level, pname, params);
+}
+
+void gl2_0_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetTexParameteriv(target, pname, params);
+}
+
+void gl2_0_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetTexParameterfv(target, pname, params);
+}
+
+void gl2_0_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetTexImage(target, level, format, gltype, pixels);
+}
+
+void gl2_0_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetIntegerv(pname, params);
+}
+
+void gl2_0_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetFloatv(pname, params);
+}
+
+GLenum gl2_0_glGetError(void *_glfuncs)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glGetError();
+}
+
+void gl2_0_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetDoublev(pname, params);
+}
+
+void gl2_0_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetBooleanv(pname, params);
+}
+
+void gl2_0_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glReadPixels(x, y, width, height, format, gltype, pixels);
+}
+
+void gl2_0_glReadBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glReadBuffer(mode);
+}
+
+void gl2_0_glPixelStorei(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPixelStorei(pname, param);
+}
+
+void gl2_0_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPixelStoref(pname, param);
+}
+
+void gl2_0_glDepthFunc(void *_glfuncs, GLenum glfunc)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDepthFunc(glfunc);
+}
+
+void gl2_0_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glStencilOp(fail, zfail, zpass);
+}
+
+void gl2_0_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glStencilFunc(glfunc, ref, mask);
+}
+
+void gl2_0_glLogicOp(void *_glfuncs, GLenum opcode)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLogicOp(opcode);
+}
+
+void gl2_0_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glBlendFunc(sfactor, dfactor);
+}
+
+void gl2_0_glFlush(void *_glfuncs)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glFlush();
+}
+
+void gl2_0_glFinish(void *_glfuncs)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glFinish();
+}
+
+void gl2_0_glEnable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEnable(cap);
+}
+
+void gl2_0_glDisable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDisable(cap);
+}
+
+void gl2_0_glDepthMask(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDepthMask(flag);
+}
+
+void gl2_0_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColorMask(red, green, blue, alpha);
+}
+
+void gl2_0_glStencilMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glStencilMask(mask);
+}
+
+void gl2_0_glClearDepth(void *_glfuncs, GLdouble depth)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glClearDepth(depth);
+}
+
+void gl2_0_glClearStencil(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glClearStencil(s);
+}
+
+void gl2_0_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glClearColor(red, green, blue, alpha);
+}
+
+void gl2_0_glClear(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glClear(mask);
+}
+
+void gl2_0_glDrawBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDrawBuffer(mode);
+}
+
+void gl2_0_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexImage2D(target, level, internalFormat, width, height, border, format, gltype, pixels);
+}
+
+void gl2_0_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexImage1D(target, level, internalFormat, width, border, format, gltype, pixels);
+}
+
+void gl2_0_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexParameteriv(target, pname, params);
+}
+
+void gl2_0_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexParameteri(target, pname, param);
+}
+
+void gl2_0_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexParameterfv(target, pname, params);
+}
+
+void gl2_0_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexParameterf(target, pname, param);
+}
+
+void gl2_0_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glScissor(x, y, width, height);
+}
+
+void gl2_0_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPolygonMode(face, mode);
+}
+
+void gl2_0_glPointSize(void *_glfuncs, GLfloat size)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPointSize(size);
+}
+
+void gl2_0_glLineWidth(void *_glfuncs, GLfloat width)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLineWidth(width);
+}
+
+void gl2_0_glHint(void *_glfuncs, GLenum target, GLenum mode)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glHint(target, mode);
+}
+
+void gl2_0_glFrontFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glFrontFace(mode);
+}
+
+void gl2_0_glCullFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCullFace(mode);
+}
+
+void gl2_0_glIndexubv(void *_glfuncs, const GLubyte* c)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glIndexubv(c);
+}
+
+void gl2_0_glIndexub(void *_glfuncs, GLubyte c)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glIndexub(c);
+}
+
+GLboolean gl2_0_glIsTexture(void *_glfuncs, GLuint texture)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glIsTexture(texture);
+}
+
+void gl2_0_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGenTextures(n, textures);
+}
+
+void gl2_0_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDeleteTextures(n, textures);
+}
+
+void gl2_0_glBindTexture(void *_glfuncs, GLenum target, GLuint texture)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glBindTexture(target, texture);
+}
+
+void gl2_0_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, gltype, pixels);
+}
+
+void gl2_0_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexSubImage1D(target, level, xoffset, width, format, gltype, pixels);
+}
+
+void gl2_0_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
+}
+
+void gl2_0_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage1D(target, level, xoffset, x, y, width);
+}
+
+void gl2_0_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
+}
+
+void gl2_0_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCopyTexImage1D(target, level, internalFormat, x, y, width, border);
+}
+
+void gl2_0_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPolygonOffset(factor, units);
+}
+
+void gl2_0_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDrawElements(mode, count, gltype, indices);
+}
+
+void gl2_0_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDrawArrays(mode, first, count);
+}
+
+void gl2_0_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
+}
+
+void gl2_0_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, gltype, pixels);
+}
+
+void gl2_0_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexImage3D(target, level, internalFormat, width, height, depth, border, format, gltype, pixels);
+}
+
+void gl2_0_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDrawRangeElements(mode, start, end, count, gltype, indices);
+}
+
+void gl2_0_glBlendEquation(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glBlendEquation(mode);
+}
+
+void gl2_0_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glBlendColor(red, green, blue, alpha);
+}
+
+void gl2_0_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetCompressedTexImage(target, level, img);
+}
+
+void gl2_0_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data);
+}
+
+void gl2_0_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
+}
+
+void gl2_0_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
+}
+
+void gl2_0_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage1D(target, level, internalFormat, width, border, imageSize, data);
+}
+
+void gl2_0_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data);
+}
+
+void gl2_0_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage3D(target, level, internalFormat, width, height, depth, border, imageSize, data);
+}
+
+void gl2_0_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSampleCoverage(value, invert);
+}
+
+void gl2_0_glActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glActiveTexture(texture);
+}
+
+void gl2_0_glPointParameteriv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPointParameteriv(pname, params);
+}
+
+void gl2_0_glPointParameteri(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPointParameteri(pname, param);
+}
+
+void gl2_0_glPointParameterfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPointParameterfv(pname, params);
+}
+
+void gl2_0_glPointParameterf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPointParameterf(pname, param);
+}
+
+void gl2_0_glMultiDrawArrays(void *_glfuncs, GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiDrawArrays(mode, first, count, drawcount);
+}
+
+void gl2_0_glBlendFuncSeparate(void *_glfuncs, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
+}
+
+void gl2_0_glGetBufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetBufferParameteriv(target, pname, params);
+}
+
+GLboolean gl2_0_glUnmapBuffer(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glUnmapBuffer(target);
+}
+
+void gl2_0_glGetBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetBufferSubData(target, offset, size, data);
+}
+
+void gl2_0_glBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glBufferSubData(target, offset, size, data);
+}
+
+void gl2_0_glBufferData(void *_glfuncs, GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glBufferData(target, size, data, usage);
+}
+
+GLboolean gl2_0_glIsBuffer(void *_glfuncs, GLuint buffer)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glIsBuffer(buffer);
+}
+
+void gl2_0_glGenBuffers(void *_glfuncs, GLsizei n, GLuint* buffers)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGenBuffers(n, buffers);
+}
+
+void gl2_0_glDeleteBuffers(void *_glfuncs, GLsizei n, const GLuint* buffers)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDeleteBuffers(n, buffers);
+}
+
+void gl2_0_glBindBuffer(void *_glfuncs, GLenum target, GLuint buffer)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glBindBuffer(target, buffer);
+}
+
+void gl2_0_glGetQueryObjectuiv(void *_glfuncs, GLuint id, GLenum pname, GLuint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetQueryObjectuiv(id, pname, params);
+}
+
+void gl2_0_glGetQueryObjectiv(void *_glfuncs, GLuint id, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetQueryObjectiv(id, pname, params);
+}
+
+void gl2_0_glGetQueryiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetQueryiv(target, pname, params);
+}
+
+void gl2_0_glEndQuery(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEndQuery(target);
+}
+
+void gl2_0_glBeginQuery(void *_glfuncs, GLenum target, GLuint id)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glBeginQuery(target, id);
+}
+
+GLboolean gl2_0_glIsQuery(void *_glfuncs, GLuint id)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glIsQuery(id);
+}
+
+void gl2_0_glDeleteQueries(void *_glfuncs, GLsizei n, const GLuint* ids)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDeleteQueries(n, ids);
+}
+
+void gl2_0_glGenQueries(void *_glfuncs, GLsizei n, GLuint* ids)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGenQueries(n, ids);
+}
+
+void gl2_0_glVertexAttribPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLboolean normalized, GLsizei stride, const GLvoid* offset)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribPointer(index, size, gltype, normalized, stride, offset);
+}
+
+void gl2_0_glValidateProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glValidateProgram(program);
+}
+
+void gl2_0_glUniformMatrix4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniformMatrix4fv(location, count, transpose, value);
+}
+
+void gl2_0_glUniformMatrix3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniformMatrix3fv(location, count, transpose, value);
+}
+
+void gl2_0_glUniformMatrix2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniformMatrix2fv(location, count, transpose, value);
+}
+
+void gl2_0_glUniform4iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform4iv(location, count, value);
+}
+
+void gl2_0_glUniform3iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform3iv(location, count, value);
+}
+
+void gl2_0_glUniform2iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform2iv(location, count, value);
+}
+
+void gl2_0_glUniform1iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform1iv(location, count, value);
+}
+
+void gl2_0_glUniform4fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform4fv(location, count, value);
+}
+
+void gl2_0_glUniform3fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform3fv(location, count, value);
+}
+
+void gl2_0_glUniform2fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform2fv(location, count, value);
+}
+
+void gl2_0_glUniform1fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform1fv(location, count, value);
+}
+
+void gl2_0_glUniform4i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform4i(location, v0, v1, v2, v3);
+}
+
+void gl2_0_glUniform3i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform3i(location, v0, v1, v2);
+}
+
+void gl2_0_glUniform2i(void *_glfuncs, GLint location, GLint v0, GLint v1)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform2i(location, v0, v1);
+}
+
+void gl2_0_glUniform1i(void *_glfuncs, GLint location, GLint v0)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform1i(location, v0);
+}
+
+void gl2_0_glUniform4f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform4f(location, v0, v1, v2, v3);
+}
+
+void gl2_0_glUniform3f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform3f(location, v0, v1, v2);
+}
+
+void gl2_0_glUniform2f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform2f(location, v0, v1);
+}
+
+void gl2_0_glUniform1f(void *_glfuncs, GLint location, GLfloat v0)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUniform1f(location, v0);
+}
+
+void gl2_0_glUseProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glUseProgram(program);
+}
+
+void gl2_0_glShaderSource(void *_glfuncs, GLuint shader, GLsizei count, const GLchar** source, const GLint* length)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glShaderSource(shader, count, source, length);
+}
+
+void gl2_0_glLinkProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLinkProgram(program);
+}
+
+GLboolean gl2_0_glIsShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glIsShader(shader);
+}
+
+GLboolean gl2_0_glIsProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glIsProgram(program);
+}
+
+void gl2_0_glGetVertexAttribiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribiv(index, pname, params);
+}
+
+void gl2_0_glGetVertexAttribfv(void *_glfuncs, GLuint index, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribfv(index, pname, params);
+}
+
+void gl2_0_glGetVertexAttribdv(void *_glfuncs, GLuint index, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribdv(index, pname, params);
+}
+
+void gl2_0_glGetUniformiv(void *_glfuncs, GLuint program, GLint location, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetUniformiv(program, location, params);
+}
+
+void gl2_0_glGetUniformfv(void *_glfuncs, GLuint program, GLint location, GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetUniformfv(program, location, params);
+}
+
+GLint gl2_0_glGetUniformLocation(void *_glfuncs, GLuint program, const GLchar* name)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glGetUniformLocation(program, name);
+}
+
+void gl2_0_glGetShaderSource(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* source)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetShaderSource(shader, bufSize, length, source);
+}
+
+void gl2_0_glGetShaderInfoLog(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetShaderInfoLog(shader, bufSize, length, infoLog);
+}
+
+void gl2_0_glGetShaderiv(void *_glfuncs, GLuint shader, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetShaderiv(shader, pname, params);
+}
+
+void gl2_0_glGetProgramInfoLog(void *_glfuncs, GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetProgramInfoLog(program, bufSize, length, infoLog);
+}
+
+void gl2_0_glGetProgramiv(void *_glfuncs, GLuint program, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetProgramiv(program, pname, params);
+}
+
+GLint gl2_0_glGetAttribLocation(void *_glfuncs, GLuint program, const GLchar* name)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glGetAttribLocation(program, name);
+}
+
+void gl2_0_glGetAttachedShaders(void *_glfuncs, GLuint program, GLsizei maxCount, GLsizei* count, GLuint* obj)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetAttachedShaders(program, maxCount, count, obj);
+}
+
+void gl2_0_glGetActiveUniform(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetActiveUniform(program, index, bufSize, length, size, gltype, name);
+}
+
+void gl2_0_glGetActiveAttrib(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetActiveAttrib(program, index, bufSize, length, size, gltype, name);
+}
+
+void gl2_0_glEnableVertexAttribArray(void *_glfuncs, GLuint index)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEnableVertexAttribArray(index);
+}
+
+void gl2_0_glDisableVertexAttribArray(void *_glfuncs, GLuint index)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDisableVertexAttribArray(index);
+}
+
+void gl2_0_glDetachShader(void *_glfuncs, GLuint program, GLuint shader)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDetachShader(program, shader);
+}
+
+void gl2_0_glDeleteShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDeleteShader(shader);
+}
+
+void gl2_0_glDeleteProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDeleteProgram(program);
+}
+
+GLuint gl2_0_glCreateShader(void *_glfuncs, GLenum gltype)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glCreateShader(gltype);
+}
+
+GLuint gl2_0_glCreateProgram(void *_glfuncs)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glCreateProgram();
+}
+
+void gl2_0_glCompileShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCompileShader(shader);
+}
+
+void gl2_0_glBindAttribLocation(void *_glfuncs, GLuint program, GLuint index, const GLchar* name)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glBindAttribLocation(program, index, name);
+}
+
+void gl2_0_glAttachShader(void *_glfuncs, GLuint program, GLuint shader)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glAttachShader(program, shader);
+}
+
+void gl2_0_glStencilMaskSeparate(void *_glfuncs, GLenum face, GLuint mask)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glStencilMaskSeparate(face, mask);
+}
+
+void gl2_0_glStencilFuncSeparate(void *_glfuncs, GLenum face, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glStencilFuncSeparate(face, glfunc, ref, mask);
+}
+
+void gl2_0_glStencilOpSeparate(void *_glfuncs, GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glStencilOpSeparate(face, sfail, dpfail, dppass);
+}
+
+void gl2_0_glDrawBuffers(void *_glfuncs, GLsizei n, const GLenum* bufs)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDrawBuffers(n, bufs);
+}
+
+void gl2_0_glBlendEquationSeparate(void *_glfuncs, GLenum modeRGB, GLenum modeAlpha)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glBlendEquationSeparate(modeRGB, modeAlpha);
+}
+
+void gl2_0_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTranslatef(x, y, z);
+}
+
+void gl2_0_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTranslated(x, y, z);
+}
+
+void gl2_0_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glScalef(x, y, z);
+}
+
+void gl2_0_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glScaled(x, y, z);
+}
+
+void gl2_0_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRotatef(angle, x, y, z);
+}
+
+void gl2_0_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRotated(angle, x, y, z);
+}
+
+void gl2_0_glPushMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPushMatrix();
+}
+
+void gl2_0_glPopMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPopMatrix();
+}
+
+void gl2_0_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glOrtho(left, right, bottom, top, zNear, zFar);
+}
+
+void gl2_0_glMultMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultMatrixd(m);
+}
+
+void gl2_0_glMultMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultMatrixf(m);
+}
+
+void gl2_0_glMatrixMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMatrixMode(mode);
+}
+
+void gl2_0_glLoadMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLoadMatrixd(m);
+}
+
+void gl2_0_glLoadMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLoadMatrixf(m);
+}
+
+void gl2_0_glLoadIdentity(void *_glfuncs)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLoadIdentity();
+}
+
+void gl2_0_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glFrustum(left, right, bottom, top, zNear, zFar);
+}
+
+GLboolean gl2_0_glIsList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glIsList(list);
+}
+
+void gl2_0_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetTexGeniv(coord, pname, params);
+}
+
+void gl2_0_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetTexGenfv(coord, pname, params);
+}
+
+void gl2_0_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetTexGendv(coord, pname, params);
+}
+
+void gl2_0_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetTexEnviv(target, pname, params);
+}
+
+void gl2_0_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetTexEnvfv(target, pname, params);
+}
+
+void gl2_0_glGetPolygonStipple(void *_glfuncs, GLubyte* mask)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetPolygonStipple(mask);
+}
+
+void gl2_0_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetPixelMapusv(glmap, values);
+}
+
+void gl2_0_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetPixelMapuiv(glmap, values);
+}
+
+void gl2_0_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetPixelMapfv(glmap, values);
+}
+
+void gl2_0_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetMaterialiv(face, pname, params);
+}
+
+void gl2_0_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetMaterialfv(face, pname, params);
+}
+
+void gl2_0_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetMapiv(target, query, v);
+}
+
+void gl2_0_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetMapfv(target, query, v);
+}
+
+void gl2_0_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetMapdv(target, query, v);
+}
+
+void gl2_0_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetLightiv(light, pname, params);
+}
+
+void gl2_0_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetLightfv(light, pname, params);
+}
+
+void gl2_0_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetClipPlane(plane, equation);
+}
+
+void gl2_0_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDrawPixels(width, height, format, gltype, pixels);
+}
+
+void gl2_0_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCopyPixels(x, y, width, height, gltype);
+}
+
+void gl2_0_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPixelMapusv(glmap, mapsize, values);
+}
+
+void gl2_0_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPixelMapuiv(glmap, mapsize, values);
+}
+
+void gl2_0_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPixelMapfv(glmap, mapsize, values);
+}
+
+void gl2_0_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPixelTransferi(pname, param);
+}
+
+void gl2_0_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPixelTransferf(pname, param);
+}
+
+void gl2_0_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPixelZoom(xfactor, yfactor);
+}
+
+void gl2_0_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glAlphaFunc(glfunc, ref);
+}
+
+void gl2_0_glEvalPoint2(void *_glfuncs, GLint i, GLint j)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEvalPoint2(i, j);
+}
+
+void gl2_0_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEvalMesh2(mode, i1, i2, j1, j2);
+}
+
+void gl2_0_glEvalPoint1(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEvalPoint1(i);
+}
+
+void gl2_0_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEvalMesh1(mode, i1, i2);
+}
+
+void gl2_0_glEvalCoord2fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord2fv(u);
+}
+
+void gl2_0_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord2f(u, v);
+}
+
+void gl2_0_glEvalCoord2dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord2dv(u);
+}
+
+void gl2_0_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord2d(u, v);
+}
+
+void gl2_0_glEvalCoord1fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord1fv(u);
+}
+
+void gl2_0_glEvalCoord1f(void *_glfuncs, GLfloat u)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord1f(u);
+}
+
+void gl2_0_glEvalCoord1dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord1dv(u);
+}
+
+void gl2_0_glEvalCoord1d(void *_glfuncs, GLdouble u)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord1d(u);
+}
+
+void gl2_0_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMapGrid2f(un, u1, u2, vn, v1, v2);
+}
+
+void gl2_0_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMapGrid2d(un, u1, u2, vn, v1, v2);
+}
+
+void gl2_0_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMapGrid1f(un, u1, u2);
+}
+
+void gl2_0_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMapGrid1d(un, u1, u2);
+}
+
+void gl2_0_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl2_0_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl2_0_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMap1f(target, u1, u2, stride, order, points);
+}
+
+void gl2_0_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMap1d(target, u1, u2, stride, order, points);
+}
+
+void gl2_0_glPushAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPushAttrib(mask);
+}
+
+void gl2_0_glPopAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPopAttrib();
+}
+
+void gl2_0_glAccum(void *_glfuncs, GLenum op, GLfloat value)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glAccum(op, value);
+}
+
+void gl2_0_glIndexMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glIndexMask(mask);
+}
+
+void gl2_0_glClearIndex(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glClearIndex(c);
+}
+
+void gl2_0_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glClearAccum(red, green, blue, alpha);
+}
+
+void gl2_0_glPushName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPushName(name);
+}
+
+void gl2_0_glPopName(void *_glfuncs)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPopName();
+}
+
+void gl2_0_glPassThrough(void *_glfuncs, GLfloat token)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPassThrough(token);
+}
+
+void gl2_0_glLoadName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLoadName(name);
+}
+
+void gl2_0_glInitNames(void *_glfuncs)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glInitNames();
+}
+
+GLint gl2_0_glRenderMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glRenderMode(mode);
+}
+
+void gl2_0_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSelectBuffer(size, buffer);
+}
+
+void gl2_0_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glFeedbackBuffer(size, gltype, buffer);
+}
+
+void gl2_0_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexGeniv(coord, pname, params);
+}
+
+void gl2_0_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexGeni(coord, pname, param);
+}
+
+void gl2_0_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexGenfv(coord, pname, params);
+}
+
+void gl2_0_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexGenf(coord, pname, param);
+}
+
+void gl2_0_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexGendv(coord, pname, params);
+}
+
+void gl2_0_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexGend(coord, pname, param);
+}
+
+void gl2_0_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexEnviv(target, pname, params);
+}
+
+void gl2_0_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexEnvi(target, pname, param);
+}
+
+void gl2_0_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexEnvfv(target, pname, params);
+}
+
+void gl2_0_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexEnvf(target, pname, param);
+}
+
+void gl2_0_glShadeModel(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glShadeModel(mode);
+}
+
+void gl2_0_glPolygonStipple(void *_glfuncs, const GLubyte* mask)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPolygonStipple(mask);
+}
+
+void gl2_0_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMaterialiv(face, pname, params);
+}
+
+void gl2_0_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMateriali(face, pname, param);
+}
+
+void gl2_0_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMaterialfv(face, pname, params);
+}
+
+void gl2_0_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMaterialf(face, pname, param);
+}
+
+void gl2_0_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLineStipple(factor, pattern);
+}
+
+void gl2_0_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLightModeliv(pname, params);
+}
+
+void gl2_0_glLightModeli(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLightModeli(pname, param);
+}
+
+void gl2_0_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLightModelfv(pname, params);
+}
+
+void gl2_0_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLightModelf(pname, param);
+}
+
+void gl2_0_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLightiv(light, pname, params);
+}
+
+void gl2_0_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLighti(light, pname, param);
+}
+
+void gl2_0_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLightfv(light, pname, params);
+}
+
+void gl2_0_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLightf(light, pname, param);
+}
+
+void gl2_0_glFogiv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glFogiv(pname, params);
+}
+
+void gl2_0_glFogi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glFogi(pname, param);
+}
+
+void gl2_0_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glFogfv(pname, params);
+}
+
+void gl2_0_glFogf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glFogf(pname, param);
+}
+
+void gl2_0_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColorMaterial(face, mode);
+}
+
+void gl2_0_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glClipPlane(plane, equation);
+}
+
+void gl2_0_glVertex4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex4sv(v);
+}
+
+void gl2_0_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex4s(x, y, z, w);
+}
+
+void gl2_0_glVertex4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex4iv(v);
+}
+
+void gl2_0_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex4i(x, y, z, w);
+}
+
+void gl2_0_glVertex4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex4fv(v);
+}
+
+void gl2_0_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex4f(x, y, z, w);
+}
+
+void gl2_0_glVertex4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex4dv(v);
+}
+
+void gl2_0_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex4d(x, y, z, w);
+}
+
+void gl2_0_glVertex3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex3sv(v);
+}
+
+void gl2_0_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex3s(x, y, z);
+}
+
+void gl2_0_glVertex3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex3iv(v);
+}
+
+void gl2_0_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex3i(x, y, z);
+}
+
+void gl2_0_glVertex3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex3fv(v);
+}
+
+void gl2_0_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex3f(x, y, z);
+}
+
+void gl2_0_glVertex3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex3dv(v);
+}
+
+void gl2_0_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex3d(x, y, z);
+}
+
+void gl2_0_glVertex2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex2sv(v);
+}
+
+void gl2_0_glVertex2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex2s(x, y);
+}
+
+void gl2_0_glVertex2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex2iv(v);
+}
+
+void gl2_0_glVertex2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex2i(x, y);
+}
+
+void gl2_0_glVertex2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex2fv(v);
+}
+
+void gl2_0_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex2f(x, y);
+}
+
+void gl2_0_glVertex2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex2dv(v);
+}
+
+void gl2_0_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertex2d(x, y);
+}
+
+void gl2_0_glTexCoord4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4sv(v);
+}
+
+void gl2_0_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4s(s, t, r, q);
+}
+
+void gl2_0_glTexCoord4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4iv(v);
+}
+
+void gl2_0_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4i(s, t, r, q);
+}
+
+void gl2_0_glTexCoord4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4fv(v);
+}
+
+void gl2_0_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4f(s, t, r, q);
+}
+
+void gl2_0_glTexCoord4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4dv(v);
+}
+
+void gl2_0_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4d(s, t, r, q);
+}
+
+void gl2_0_glTexCoord3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3sv(v);
+}
+
+void gl2_0_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3s(s, t, r);
+}
+
+void gl2_0_glTexCoord3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3iv(v);
+}
+
+void gl2_0_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3i(s, t, r);
+}
+
+void gl2_0_glTexCoord3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3fv(v);
+}
+
+void gl2_0_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3f(s, t, r);
+}
+
+void gl2_0_glTexCoord3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3dv(v);
+}
+
+void gl2_0_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3d(s, t, r);
+}
+
+void gl2_0_glTexCoord2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2sv(v);
+}
+
+void gl2_0_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2s(s, t);
+}
+
+void gl2_0_glTexCoord2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2iv(v);
+}
+
+void gl2_0_glTexCoord2i(void *_glfuncs, GLint s, GLint t)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2i(s, t);
+}
+
+void gl2_0_glTexCoord2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2fv(v);
+}
+
+void gl2_0_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2f(s, t);
+}
+
+void gl2_0_glTexCoord2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2dv(v);
+}
+
+void gl2_0_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2d(s, t);
+}
+
+void gl2_0_glTexCoord1sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1sv(v);
+}
+
+void gl2_0_glTexCoord1s(void *_glfuncs, GLshort s)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1s(s);
+}
+
+void gl2_0_glTexCoord1iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1iv(v);
+}
+
+void gl2_0_glTexCoord1i(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1i(s);
+}
+
+void gl2_0_glTexCoord1fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1fv(v);
+}
+
+void gl2_0_glTexCoord1f(void *_glfuncs, GLfloat s)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1f(s);
+}
+
+void gl2_0_glTexCoord1dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1dv(v);
+}
+
+void gl2_0_glTexCoord1d(void *_glfuncs, GLdouble s)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1d(s);
+}
+
+void gl2_0_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRectsv(v1, v2);
+}
+
+void gl2_0_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRects(x1, y1, x2, y2);
+}
+
+void gl2_0_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRectiv(v1, v2);
+}
+
+void gl2_0_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRecti(x1, y1, x2, y2);
+}
+
+void gl2_0_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRectfv(v1, v2);
+}
+
+void gl2_0_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRectf(x1, y1, x2, y2);
+}
+
+void gl2_0_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRectdv(v1, v2);
+}
+
+void gl2_0_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRectd(x1, y1, x2, y2);
+}
+
+void gl2_0_glRasterPos4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4sv(v);
+}
+
+void gl2_0_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4s(x, y, z, w);
+}
+
+void gl2_0_glRasterPos4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4iv(v);
+}
+
+void gl2_0_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4i(x, y, z, w);
+}
+
+void gl2_0_glRasterPos4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4fv(v);
+}
+
+void gl2_0_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4f(x, y, z, w);
+}
+
+void gl2_0_glRasterPos4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4dv(v);
+}
+
+void gl2_0_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4d(x, y, z, w);
+}
+
+void gl2_0_glRasterPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3sv(v);
+}
+
+void gl2_0_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3s(x, y, z);
+}
+
+void gl2_0_glRasterPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3iv(v);
+}
+
+void gl2_0_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3i(x, y, z);
+}
+
+void gl2_0_glRasterPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3fv(v);
+}
+
+void gl2_0_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3f(x, y, z);
+}
+
+void gl2_0_glRasterPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3dv(v);
+}
+
+void gl2_0_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3d(x, y, z);
+}
+
+void gl2_0_glRasterPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2sv(v);
+}
+
+void gl2_0_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2s(x, y);
+}
+
+void gl2_0_glRasterPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2iv(v);
+}
+
+void gl2_0_glRasterPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2i(x, y);
+}
+
+void gl2_0_glRasterPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2fv(v);
+}
+
+void gl2_0_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2f(x, y);
+}
+
+void gl2_0_glRasterPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2dv(v);
+}
+
+void gl2_0_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2d(x, y);
+}
+
+void gl2_0_glNormal3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glNormal3sv(v);
+}
+
+void gl2_0_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glNormal3s(nx, ny, nz);
+}
+
+void gl2_0_glNormal3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glNormal3iv(v);
+}
+
+void gl2_0_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glNormal3i(nx, ny, nz);
+}
+
+void gl2_0_glNormal3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glNormal3fv(v);
+}
+
+void gl2_0_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glNormal3f(nx, ny, nz);
+}
+
+void gl2_0_glNormal3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glNormal3dv(v);
+}
+
+void gl2_0_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glNormal3d(nx, ny, nz);
+}
+
+void gl2_0_glNormal3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glNormal3bv(v);
+}
+
+void gl2_0_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glNormal3b(nx, ny, nz);
+}
+
+void gl2_0_glIndexsv(void *_glfuncs, const GLshort* c)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glIndexsv(c);
+}
+
+void gl2_0_glIndexs(void *_glfuncs, GLshort c)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glIndexs(c);
+}
+
+void gl2_0_glIndexiv(void *_glfuncs, const GLint* c)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glIndexiv(c);
+}
+
+void gl2_0_glIndexi(void *_glfuncs, GLint c)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glIndexi(c);
+}
+
+void gl2_0_glIndexfv(void *_glfuncs, const GLfloat* c)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glIndexfv(c);
+}
+
+void gl2_0_glIndexf(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glIndexf(c);
+}
+
+void gl2_0_glIndexdv(void *_glfuncs, const GLdouble* c)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glIndexdv(c);
+}
+
+void gl2_0_glIndexd(void *_glfuncs, GLdouble c)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glIndexd(c);
+}
+
+void gl2_0_glEnd(void *_glfuncs)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEnd();
+}
+
+void gl2_0_glEdgeFlagv(void *_glfuncs, const GLboolean* flag)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEdgeFlagv(flag);
+}
+
+void gl2_0_glEdgeFlag(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEdgeFlag(flag);
+}
+
+void gl2_0_glColor4usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4usv(v);
+}
+
+void gl2_0_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4us(red, green, blue, alpha);
+}
+
+void gl2_0_glColor4uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4uiv(v);
+}
+
+void gl2_0_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4ui(red, green, blue, alpha);
+}
+
+void gl2_0_glColor4ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4ubv(v);
+}
+
+void gl2_0_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4ub(red, green, blue, alpha);
+}
+
+void gl2_0_glColor4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4sv(v);
+}
+
+void gl2_0_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4s(red, green, blue, alpha);
+}
+
+void gl2_0_glColor4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4iv(v);
+}
+
+void gl2_0_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4i(red, green, blue, alpha);
+}
+
+void gl2_0_glColor4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4fv(v);
+}
+
+void gl2_0_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4f(red, green, blue, alpha);
+}
+
+void gl2_0_glColor4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4dv(v);
+}
+
+void gl2_0_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4d(red, green, blue, alpha);
+}
+
+void gl2_0_glColor4bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4bv(v);
+}
+
+void gl2_0_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor4b(red, green, blue, alpha);
+}
+
+void gl2_0_glColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3usv(v);
+}
+
+void gl2_0_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3us(red, green, blue);
+}
+
+void gl2_0_glColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3uiv(v);
+}
+
+void gl2_0_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3ui(red, green, blue);
+}
+
+void gl2_0_glColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3ubv(v);
+}
+
+void gl2_0_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3ub(red, green, blue);
+}
+
+void gl2_0_glColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3sv(v);
+}
+
+void gl2_0_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3s(red, green, blue);
+}
+
+void gl2_0_glColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3iv(v);
+}
+
+void gl2_0_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3i(red, green, blue);
+}
+
+void gl2_0_glColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3fv(v);
+}
+
+void gl2_0_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3f(red, green, blue);
+}
+
+void gl2_0_glColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3dv(v);
+}
+
+void gl2_0_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3d(red, green, blue);
+}
+
+void gl2_0_glColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3bv(v);
+}
+
+void gl2_0_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColor3b(red, green, blue);
+}
+
+void gl2_0_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
+}
+
+void gl2_0_glBegin(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glBegin(mode);
+}
+
+void gl2_0_glListBase(void *_glfuncs, GLuint base)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glListBase(base);
+}
+
+GLuint gl2_0_glGenLists(void *_glfuncs, GLsizei range_)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glGenLists(range_);
+}
+
+void gl2_0_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDeleteLists(list, range_);
+}
+
+void gl2_0_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCallLists(n, gltype, lists);
+}
+
+void gl2_0_glCallList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCallList(list);
+}
+
+void gl2_0_glEndList(void *_glfuncs)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEndList();
+}
+
+void gl2_0_glNewList(void *_glfuncs, GLuint list, GLenum mode)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glNewList(list, mode);
+}
+
+void gl2_0_glPushClientAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPushClientAttrib(mask);
+}
+
+void gl2_0_glPopClientAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPopClientAttrib();
+}
+
+void gl2_0_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glPrioritizeTextures(n, textures, priorities);
+}
+
+GLboolean gl2_0_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ return _qglfuncs->glAreTexturesResident(n, textures, residences);
+}
+
+void gl2_0_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexPointer(size, gltype, stride, pointer);
+}
+
+void gl2_0_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glTexCoordPointer(size, gltype, stride, pointer);
+}
+
+void gl2_0_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glNormalPointer(gltype, stride, pointer);
+}
+
+void gl2_0_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glInterleavedArrays(format, stride, pointer);
+}
+
+void gl2_0_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glIndexPointer(gltype, stride, pointer);
+}
+
+void gl2_0_glEnableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEnableClientState(array);
+}
+
+void gl2_0_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glEdgeFlagPointer(stride, pointer);
+}
+
+void gl2_0_glDisableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glDisableClientState(array);
+}
+
+void gl2_0_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColorPointer(size, gltype, stride, pointer);
+}
+
+void gl2_0_glArrayElement(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glArrayElement(i);
+}
+
+void gl2_0_glResetMinmax(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glResetMinmax(target);
+}
+
+void gl2_0_glResetHistogram(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glResetHistogram(target);
+}
+
+void gl2_0_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMinmax(target, internalFormat, sink);
+}
+
+void gl2_0_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glHistogram(target, width, internalFormat, sink);
+}
+
+void gl2_0_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameteriv(target, pname, params);
+}
+
+void gl2_0_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameterfv(target, pname, params);
+}
+
+void gl2_0_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetMinmax(target, reset, format, gltype, values);
+}
+
+void gl2_0_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameteriv(target, pname, params);
+}
+
+void gl2_0_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameterfv(target, pname, params);
+}
+
+void gl2_0_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetHistogram(target, reset, format, gltype, values);
+}
+
+void gl2_0_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSeparableFilter2D(target, internalFormat, width, height, format, gltype, row, column);
+}
+
+void gl2_0_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetSeparableFilter(target, format, gltype, row, column, span);
+}
+
+void gl2_0_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameteriv(target, pname, params);
+}
+
+void gl2_0_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameterfv(target, pname, params);
+}
+
+void gl2_0_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetConvolutionFilter(target, format, gltype, image);
+}
+
+void gl2_0_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter2D(target, internalFormat, x, y, width, height);
+}
+
+void gl2_0_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter1D(target, internalFormat, x, y, width);
+}
+
+void gl2_0_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteriv(target, pname, params);
+}
+
+void gl2_0_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteri(target, pname, params);
+}
+
+void gl2_0_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterfv(target, pname, params);
+}
+
+void gl2_0_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterf(target, pname, params);
+}
+
+void gl2_0_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter2D(target, internalFormat, width, height, format, gltype, image);
+}
+
+void gl2_0_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter1D(target, internalFormat, width, format, gltype, image);
+}
+
+void gl2_0_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCopyColorSubTable(target, start, x, y, width);
+}
+
+void gl2_0_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColorSubTable(target, start, count, format, gltype, data);
+}
+
+void gl2_0_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameteriv(target, pname, params);
+}
+
+void gl2_0_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameterfv(target, pname, params);
+}
+
+void gl2_0_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glGetColorTable(target, format, gltype, table);
+}
+
+void gl2_0_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glCopyColorTable(target, internalFormat, x, y, width);
+}
+
+void gl2_0_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColorTableParameteriv(target, pname, params);
+}
+
+void gl2_0_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColorTableParameterfv(target, pname, params);
+}
+
+void gl2_0_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glColorTable(target, internalFormat, width, format, gltype, table);
+}
+
+void gl2_0_glMultTransposeMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultTransposeMatrixd(m);
+}
+
+void gl2_0_glMultTransposeMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultTransposeMatrixf(m);
+}
+
+void gl2_0_glLoadTransposeMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLoadTransposeMatrixd(m);
+}
+
+void gl2_0_glLoadTransposeMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glLoadTransposeMatrixf(m);
+}
+
+void gl2_0_glMultiTexCoord4sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4sv(target, v);
+}
+
+void gl2_0_glMultiTexCoord4s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4s(target, s, t, r, q);
+}
+
+void gl2_0_glMultiTexCoord4iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4iv(target, v);
+}
+
+void gl2_0_glMultiTexCoord4i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4i(target, s, t, r, q);
+}
+
+void gl2_0_glMultiTexCoord4fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4fv(target, v);
+}
+
+void gl2_0_glMultiTexCoord4f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4f(target, s, t, r, q);
+}
+
+void gl2_0_glMultiTexCoord4dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4dv(target, v);
+}
+
+void gl2_0_glMultiTexCoord4d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4d(target, s, t, r, q);
+}
+
+void gl2_0_glMultiTexCoord3sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3sv(target, v);
+}
+
+void gl2_0_glMultiTexCoord3s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3s(target, s, t, r);
+}
+
+void gl2_0_glMultiTexCoord3iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3iv(target, v);
+}
+
+void gl2_0_glMultiTexCoord3i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3i(target, s, t, r);
+}
+
+void gl2_0_glMultiTexCoord3fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3fv(target, v);
+}
+
+void gl2_0_glMultiTexCoord3f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3f(target, s, t, r);
+}
+
+void gl2_0_glMultiTexCoord3dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3dv(target, v);
+}
+
+void gl2_0_glMultiTexCoord3d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3d(target, s, t, r);
+}
+
+void gl2_0_glMultiTexCoord2sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2sv(target, v);
+}
+
+void gl2_0_glMultiTexCoord2s(void *_glfuncs, GLenum target, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2s(target, s, t);
+}
+
+void gl2_0_glMultiTexCoord2iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2iv(target, v);
+}
+
+void gl2_0_glMultiTexCoord2i(void *_glfuncs, GLenum target, GLint s, GLint t)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2i(target, s, t);
+}
+
+void gl2_0_glMultiTexCoord2fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2fv(target, v);
+}
+
+void gl2_0_glMultiTexCoord2f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2f(target, s, t);
+}
+
+void gl2_0_glMultiTexCoord2dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2dv(target, v);
+}
+
+void gl2_0_glMultiTexCoord2d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2d(target, s, t);
+}
+
+void gl2_0_glMultiTexCoord1sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1sv(target, v);
+}
+
+void gl2_0_glMultiTexCoord1s(void *_glfuncs, GLenum target, GLshort s)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1s(target, s);
+}
+
+void gl2_0_glMultiTexCoord1iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1iv(target, v);
+}
+
+void gl2_0_glMultiTexCoord1i(void *_glfuncs, GLenum target, GLint s)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1i(target, s);
+}
+
+void gl2_0_glMultiTexCoord1fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1fv(target, v);
+}
+
+void gl2_0_glMultiTexCoord1f(void *_glfuncs, GLenum target, GLfloat s)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1f(target, s);
+}
+
+void gl2_0_glMultiTexCoord1dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1dv(target, v);
+}
+
+void gl2_0_glMultiTexCoord1d(void *_glfuncs, GLenum target, GLdouble s)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1d(target, s);
+}
+
+void gl2_0_glClientActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glClientActiveTexture(texture);
+}
+
+void gl2_0_glWindowPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3sv(v);
+}
+
+void gl2_0_glWindowPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3s(x, y, z);
+}
+
+void gl2_0_glWindowPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3iv(v);
+}
+
+void gl2_0_glWindowPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3i(x, y, z);
+}
+
+void gl2_0_glWindowPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3fv(v);
+}
+
+void gl2_0_glWindowPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3f(x, y, z);
+}
+
+void gl2_0_glWindowPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3dv(v);
+}
+
+void gl2_0_glWindowPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3d(x, y, z);
+}
+
+void gl2_0_glWindowPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2sv(v);
+}
+
+void gl2_0_glWindowPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2s(x, y);
+}
+
+void gl2_0_glWindowPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2iv(v);
+}
+
+void gl2_0_glWindowPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2i(x, y);
+}
+
+void gl2_0_glWindowPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2fv(v);
+}
+
+void gl2_0_glWindowPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2f(x, y);
+}
+
+void gl2_0_glWindowPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2dv(v);
+}
+
+void gl2_0_glWindowPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2d(x, y);
+}
+
+void gl2_0_glSecondaryColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColorPointer(size, gltype, stride, pointer);
+}
+
+void gl2_0_glSecondaryColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3usv(v);
+}
+
+void gl2_0_glSecondaryColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3us(red, green, blue);
+}
+
+void gl2_0_glSecondaryColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3uiv(v);
+}
+
+void gl2_0_glSecondaryColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ui(red, green, blue);
+}
+
+void gl2_0_glSecondaryColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ubv(v);
+}
+
+void gl2_0_glSecondaryColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ub(red, green, blue);
+}
+
+void gl2_0_glSecondaryColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3sv(v);
+}
+
+void gl2_0_glSecondaryColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3s(red, green, blue);
+}
+
+void gl2_0_glSecondaryColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3iv(v);
+}
+
+void gl2_0_glSecondaryColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3i(red, green, blue);
+}
+
+void gl2_0_glSecondaryColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3fv(v);
+}
+
+void gl2_0_glSecondaryColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3f(red, green, blue);
+}
+
+void gl2_0_glSecondaryColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3dv(v);
+}
+
+void gl2_0_glSecondaryColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3d(red, green, blue);
+}
+
+void gl2_0_glSecondaryColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3bv(v);
+}
+
+void gl2_0_glSecondaryColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3b(red, green, blue);
+}
+
+void gl2_0_glFogCoordPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glFogCoordPointer(gltype, stride, pointer);
+}
+
+void gl2_0_glFogCoorddv(void *_glfuncs, const GLdouble* coord)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glFogCoorddv(coord);
+}
+
+void gl2_0_glFogCoordd(void *_glfuncs, GLdouble coord)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glFogCoordd(coord);
+}
+
+void gl2_0_glFogCoordfv(void *_glfuncs, const GLfloat* coord)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glFogCoordfv(coord);
+}
+
+void gl2_0_glFogCoordf(void *_glfuncs, GLfloat coord)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glFogCoordf(coord);
+}
+
+void gl2_0_glVertexAttrib4usv(void *_glfuncs, GLuint index, const GLushort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4usv(index, v);
+}
+
+void gl2_0_glVertexAttrib4uiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4uiv(index, v);
+}
+
+void gl2_0_glVertexAttrib4ubv(void *_glfuncs, GLuint index, const GLubyte* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4ubv(index, v);
+}
+
+void gl2_0_glVertexAttrib4sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4sv(index, v);
+}
+
+void gl2_0_glVertexAttrib4s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4s(index, x, y, z, w);
+}
+
+void gl2_0_glVertexAttrib4iv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4iv(index, v);
+}
+
+void gl2_0_glVertexAttrib4fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4fv(index, v);
+}
+
+void gl2_0_glVertexAttrib4f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4f(index, x, y, z, w);
+}
+
+void gl2_0_glVertexAttrib4dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4dv(index, v);
+}
+
+void gl2_0_glVertexAttrib4d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4d(index, x, y, z, w);
+}
+
+void gl2_0_glVertexAttrib4bv(void *_glfuncs, GLuint index, const GLbyte* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4bv(index, v);
+}
+
+void gl2_0_glVertexAttrib4Nusv(void *_glfuncs, GLuint index, const GLushort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nusv(index, v);
+}
+
+void gl2_0_glVertexAttrib4Nuiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nuiv(index, v);
+}
+
+void gl2_0_glVertexAttrib4Nubv(void *_glfuncs, GLuint index, const GLubyte* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nubv(index, v);
+}
+
+void gl2_0_glVertexAttrib4Nub(void *_glfuncs, GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nub(index, x, y, z, w);
+}
+
+void gl2_0_glVertexAttrib4Nsv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nsv(index, v);
+}
+
+void gl2_0_glVertexAttrib4Niv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Niv(index, v);
+}
+
+void gl2_0_glVertexAttrib4Nbv(void *_glfuncs, GLuint index, const GLbyte* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nbv(index, v);
+}
+
+void gl2_0_glVertexAttrib3sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3sv(index, v);
+}
+
+void gl2_0_glVertexAttrib3s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3s(index, x, y, z);
+}
+
+void gl2_0_glVertexAttrib3fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3fv(index, v);
+}
+
+void gl2_0_glVertexAttrib3f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3f(index, x, y, z);
+}
+
+void gl2_0_glVertexAttrib3dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3dv(index, v);
+}
+
+void gl2_0_glVertexAttrib3d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3d(index, x, y, z);
+}
+
+void gl2_0_glVertexAttrib2sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2sv(index, v);
+}
+
+void gl2_0_glVertexAttrib2s(void *_glfuncs, GLuint index, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2s(index, x, y);
+}
+
+void gl2_0_glVertexAttrib2fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2fv(index, v);
+}
+
+void gl2_0_glVertexAttrib2f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2f(index, x, y);
+}
+
+void gl2_0_glVertexAttrib2dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2dv(index, v);
+}
+
+void gl2_0_glVertexAttrib2d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2d(index, x, y);
+}
+
+void gl2_0_glVertexAttrib1sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1sv(index, v);
+}
+
+void gl2_0_glVertexAttrib1s(void *_glfuncs, GLuint index, GLshort x)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1s(index, x);
+}
+
+void gl2_0_glVertexAttrib1fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1fv(index, v);
+}
+
+void gl2_0_glVertexAttrib1f(void *_glfuncs, GLuint index, GLfloat x)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1f(index, x);
+}
+
+void gl2_0_glVertexAttrib1dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1dv(index, v);
+}
+
+void gl2_0_glVertexAttrib1d(void *_glfuncs, GLuint index, GLdouble x)
+{
+ QOpenGLFunctions_2_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1d(index, x);
+}
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.0/funcs.h b/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.0/funcs.h
new file mode 100644
index 000000000..ffa1a2a83
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.0/funcs.h
@@ -0,0 +1,613 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#ifndef __cplusplus
+#include <inttypes.h>
+#include <stddef.h>
+typedef unsigned int GLenum;
+typedef unsigned char GLboolean;
+typedef unsigned int GLbitfield;
+typedef void GLvoid;
+typedef char GLchar;
+typedef signed char GLbyte; /* 1-byte signed */
+typedef short GLshort; /* 2-byte signed */
+typedef int GLint; /* 4-byte signed */
+typedef unsigned char GLubyte; /* 1-byte unsigned */
+typedef unsigned short GLushort; /* 2-byte unsigned */
+typedef unsigned int GLuint; /* 4-byte unsigned */
+typedef int GLsizei; /* 4-byte signed */
+typedef float GLfloat; /* single precision float */
+typedef float GLclampf; /* single precision float in [0,1] */
+typedef double GLdouble; /* double precision float */
+typedef double GLclampd; /* double precision float in [0,1] */
+typedef int64_t GLint64;
+typedef uint64_t GLuint64;
+typedef ptrdiff_t GLintptr;
+typedef ptrdiff_t GLsizeiptr;
+typedef ptrdiff_t GLintptrARB;
+typedef ptrdiff_t GLsizeiptrARB;
+typedef struct __GLsync *GLsync;
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *gl2_0_funcs();
+
+void gl2_0_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl2_0_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal);
+GLboolean gl2_0_glIsEnabled(void *_glfuncs, GLenum cap);
+void gl2_0_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params);
+void gl2_0_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params);
+void gl2_0_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl2_0_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl2_0_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl2_0_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params);
+void gl2_0_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params);
+GLenum gl2_0_glGetError(void *_glfuncs);
+void gl2_0_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params);
+void gl2_0_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params);
+void gl2_0_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl2_0_glReadBuffer(void *_glfuncs, GLenum mode);
+void gl2_0_glPixelStorei(void *_glfuncs, GLenum pname, GLint param);
+void gl2_0_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param);
+void gl2_0_glDepthFunc(void *_glfuncs, GLenum glfunc);
+void gl2_0_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass);
+void gl2_0_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask);
+void gl2_0_glLogicOp(void *_glfuncs, GLenum opcode);
+void gl2_0_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor);
+void gl2_0_glFlush(void *_glfuncs);
+void gl2_0_glFinish(void *_glfuncs);
+void gl2_0_glEnable(void *_glfuncs, GLenum cap);
+void gl2_0_glDisable(void *_glfuncs, GLenum cap);
+void gl2_0_glDepthMask(void *_glfuncs, GLboolean flag);
+void gl2_0_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+void gl2_0_glStencilMask(void *_glfuncs, GLuint mask);
+void gl2_0_glClearDepth(void *_glfuncs, GLdouble depth);
+void gl2_0_glClearStencil(void *_glfuncs, GLint s);
+void gl2_0_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl2_0_glClear(void *_glfuncs, GLbitfield mask);
+void gl2_0_glDrawBuffer(void *_glfuncs, GLenum mode);
+void gl2_0_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl2_0_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl2_0_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl2_0_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl2_0_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl2_0_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl2_0_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl2_0_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode);
+void gl2_0_glPointSize(void *_glfuncs, GLfloat size);
+void gl2_0_glLineWidth(void *_glfuncs, GLfloat width);
+void gl2_0_glHint(void *_glfuncs, GLenum target, GLenum mode);
+void gl2_0_glFrontFace(void *_glfuncs, GLenum mode);
+void gl2_0_glCullFace(void *_glfuncs, GLenum mode);
+void gl2_0_glIndexubv(void *_glfuncs, const GLubyte* c);
+void gl2_0_glIndexub(void *_glfuncs, GLubyte c);
+GLboolean gl2_0_glIsTexture(void *_glfuncs, GLuint texture);
+void gl2_0_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures);
+void gl2_0_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures);
+void gl2_0_glBindTexture(void *_glfuncs, GLenum target, GLuint texture);
+void gl2_0_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl2_0_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl2_0_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl2_0_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+void gl2_0_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+void gl2_0_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
+void gl2_0_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units);
+void gl2_0_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl2_0_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count);
+void gl2_0_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl2_0_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl2_0_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl2_0_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl2_0_glBlendEquation(void *_glfuncs, GLenum mode);
+void gl2_0_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl2_0_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img);
+void gl2_0_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl2_0_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl2_0_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl2_0_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl2_0_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl2_0_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl2_0_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert);
+void gl2_0_glActiveTexture(void *_glfuncs, GLenum texture);
+void gl2_0_glPointParameteriv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl2_0_glPointParameteri(void *_glfuncs, GLenum pname, GLint param);
+void gl2_0_glPointParameterfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl2_0_glPointParameterf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl2_0_glMultiDrawArrays(void *_glfuncs, GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount);
+void gl2_0_glBlendFuncSeparate(void *_glfuncs, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+void gl2_0_glGetBufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+GLboolean gl2_0_glUnmapBuffer(void *_glfuncs, GLenum target);
+void gl2_0_glGetBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data);
+void gl2_0_glBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data);
+void gl2_0_glBufferData(void *_glfuncs, GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
+GLboolean gl2_0_glIsBuffer(void *_glfuncs, GLuint buffer);
+void gl2_0_glGenBuffers(void *_glfuncs, GLsizei n, GLuint* buffers);
+void gl2_0_glDeleteBuffers(void *_glfuncs, GLsizei n, const GLuint* buffers);
+void gl2_0_glBindBuffer(void *_glfuncs, GLenum target, GLuint buffer);
+void gl2_0_glGetQueryObjectuiv(void *_glfuncs, GLuint id, GLenum pname, GLuint* params);
+void gl2_0_glGetQueryObjectiv(void *_glfuncs, GLuint id, GLenum pname, GLint* params);
+void gl2_0_glGetQueryiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl2_0_glEndQuery(void *_glfuncs, GLenum target);
+void gl2_0_glBeginQuery(void *_glfuncs, GLenum target, GLuint id);
+GLboolean gl2_0_glIsQuery(void *_glfuncs, GLuint id);
+void gl2_0_glDeleteQueries(void *_glfuncs, GLsizei n, const GLuint* ids);
+void gl2_0_glGenQueries(void *_glfuncs, GLsizei n, GLuint* ids);
+void gl2_0_glVertexAttribPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLboolean normalized, GLsizei stride, const GLvoid* offset);
+void gl2_0_glValidateProgram(void *_glfuncs, GLuint program);
+void gl2_0_glUniformMatrix4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl2_0_glUniformMatrix3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl2_0_glUniformMatrix2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl2_0_glUniform4iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl2_0_glUniform3iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl2_0_glUniform2iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl2_0_glUniform1iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl2_0_glUniform4fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl2_0_glUniform3fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl2_0_glUniform2fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl2_0_glUniform1fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl2_0_glUniform4i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+void gl2_0_glUniform3i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2);
+void gl2_0_glUniform2i(void *_glfuncs, GLint location, GLint v0, GLint v1);
+void gl2_0_glUniform1i(void *_glfuncs, GLint location, GLint v0);
+void gl2_0_glUniform4f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+void gl2_0_glUniform3f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+void gl2_0_glUniform2f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1);
+void gl2_0_glUniform1f(void *_glfuncs, GLint location, GLfloat v0);
+void gl2_0_glUseProgram(void *_glfuncs, GLuint program);
+void gl2_0_glShaderSource(void *_glfuncs, GLuint shader, GLsizei count, const GLchar** source, const GLint* length);
+void gl2_0_glLinkProgram(void *_glfuncs, GLuint program);
+GLboolean gl2_0_glIsShader(void *_glfuncs, GLuint shader);
+GLboolean gl2_0_glIsProgram(void *_glfuncs, GLuint program);
+void gl2_0_glGetVertexAttribiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params);
+void gl2_0_glGetVertexAttribfv(void *_glfuncs, GLuint index, GLenum pname, GLfloat* params);
+void gl2_0_glGetVertexAttribdv(void *_glfuncs, GLuint index, GLenum pname, GLdouble* params);
+void gl2_0_glGetUniformiv(void *_glfuncs, GLuint program, GLint location, GLint* params);
+void gl2_0_glGetUniformfv(void *_glfuncs, GLuint program, GLint location, GLfloat* params);
+GLint gl2_0_glGetUniformLocation(void *_glfuncs, GLuint program, const GLchar* name);
+void gl2_0_glGetShaderSource(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* source);
+void gl2_0_glGetShaderInfoLog(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog);
+void gl2_0_glGetShaderiv(void *_glfuncs, GLuint shader, GLenum pname, GLint* params);
+void gl2_0_glGetProgramInfoLog(void *_glfuncs, GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog);
+void gl2_0_glGetProgramiv(void *_glfuncs, GLuint program, GLenum pname, GLint* params);
+GLint gl2_0_glGetAttribLocation(void *_glfuncs, GLuint program, const GLchar* name);
+void gl2_0_glGetAttachedShaders(void *_glfuncs, GLuint program, GLsizei maxCount, GLsizei* count, GLuint* obj);
+void gl2_0_glGetActiveUniform(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name);
+void gl2_0_glGetActiveAttrib(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name);
+void gl2_0_glEnableVertexAttribArray(void *_glfuncs, GLuint index);
+void gl2_0_glDisableVertexAttribArray(void *_glfuncs, GLuint index);
+void gl2_0_glDetachShader(void *_glfuncs, GLuint program, GLuint shader);
+void gl2_0_glDeleteShader(void *_glfuncs, GLuint shader);
+void gl2_0_glDeleteProgram(void *_glfuncs, GLuint program);
+GLuint gl2_0_glCreateShader(void *_glfuncs, GLenum gltype);
+GLuint gl2_0_glCreateProgram(void *_glfuncs);
+void gl2_0_glCompileShader(void *_glfuncs, GLuint shader);
+void gl2_0_glBindAttribLocation(void *_glfuncs, GLuint program, GLuint index, const GLchar* name);
+void gl2_0_glAttachShader(void *_glfuncs, GLuint program, GLuint shader);
+void gl2_0_glStencilMaskSeparate(void *_glfuncs, GLenum face, GLuint mask);
+void gl2_0_glStencilFuncSeparate(void *_glfuncs, GLenum face, GLenum glfunc, GLint ref, GLuint mask);
+void gl2_0_glStencilOpSeparate(void *_glfuncs, GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+void gl2_0_glDrawBuffers(void *_glfuncs, GLsizei n, const GLenum* bufs);
+void gl2_0_glBlendEquationSeparate(void *_glfuncs, GLenum modeRGB, GLenum modeAlpha);
+void gl2_0_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl2_0_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl2_0_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl2_0_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl2_0_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+void gl2_0_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+void gl2_0_glPushMatrix(void *_glfuncs);
+void gl2_0_glPopMatrix(void *_glfuncs);
+void gl2_0_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+void gl2_0_glMultMatrixd(void *_glfuncs, const GLdouble* m);
+void gl2_0_glMultMatrixf(void *_glfuncs, const GLfloat* m);
+void gl2_0_glMatrixMode(void *_glfuncs, GLenum mode);
+void gl2_0_glLoadMatrixd(void *_glfuncs, const GLdouble* m);
+void gl2_0_glLoadMatrixf(void *_glfuncs, const GLfloat* m);
+void gl2_0_glLoadIdentity(void *_glfuncs);
+void gl2_0_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLboolean gl2_0_glIsList(void *_glfuncs, GLuint list);
+void gl2_0_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params);
+void gl2_0_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params);
+void gl2_0_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params);
+void gl2_0_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl2_0_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl2_0_glGetPolygonStipple(void *_glfuncs, GLubyte* mask);
+void gl2_0_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values);
+void gl2_0_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values);
+void gl2_0_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values);
+void gl2_0_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params);
+void gl2_0_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params);
+void gl2_0_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v);
+void gl2_0_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v);
+void gl2_0_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v);
+void gl2_0_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params);
+void gl2_0_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params);
+void gl2_0_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation);
+void gl2_0_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl2_0_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype);
+void gl2_0_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values);
+void gl2_0_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values);
+void gl2_0_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values);
+void gl2_0_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param);
+void gl2_0_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl2_0_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor);
+void gl2_0_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref);
+void gl2_0_glEvalPoint2(void *_glfuncs, GLint i, GLint j);
+void gl2_0_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
+void gl2_0_glEvalPoint1(void *_glfuncs, GLint i);
+void gl2_0_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2);
+void gl2_0_glEvalCoord2fv(void *_glfuncs, const GLfloat* u);
+void gl2_0_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v);
+void gl2_0_glEvalCoord2dv(void *_glfuncs, const GLdouble* u);
+void gl2_0_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v);
+void gl2_0_glEvalCoord1fv(void *_glfuncs, const GLfloat* u);
+void gl2_0_glEvalCoord1f(void *_glfuncs, GLfloat u);
+void gl2_0_glEvalCoord1dv(void *_glfuncs, const GLdouble* u);
+void gl2_0_glEvalCoord1d(void *_glfuncs, GLdouble u);
+void gl2_0_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
+void gl2_0_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
+void gl2_0_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2);
+void gl2_0_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2);
+void gl2_0_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points);
+void gl2_0_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points);
+void gl2_0_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points);
+void gl2_0_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points);
+void gl2_0_glPushAttrib(void *_glfuncs, GLbitfield mask);
+void gl2_0_glPopAttrib(void *_glfuncs);
+void gl2_0_glAccum(void *_glfuncs, GLenum op, GLfloat value);
+void gl2_0_glIndexMask(void *_glfuncs, GLuint mask);
+void gl2_0_glClearIndex(void *_glfuncs, GLfloat c);
+void gl2_0_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl2_0_glPushName(void *_glfuncs, GLuint name);
+void gl2_0_glPopName(void *_glfuncs);
+void gl2_0_glPassThrough(void *_glfuncs, GLfloat token);
+void gl2_0_glLoadName(void *_glfuncs, GLuint name);
+void gl2_0_glInitNames(void *_glfuncs);
+GLint gl2_0_glRenderMode(void *_glfuncs, GLenum mode);
+void gl2_0_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer);
+void gl2_0_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer);
+void gl2_0_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params);
+void gl2_0_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param);
+void gl2_0_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params);
+void gl2_0_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param);
+void gl2_0_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params);
+void gl2_0_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param);
+void gl2_0_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl2_0_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl2_0_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl2_0_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl2_0_glShadeModel(void *_glfuncs, GLenum mode);
+void gl2_0_glPolygonStipple(void *_glfuncs, const GLubyte* mask);
+void gl2_0_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params);
+void gl2_0_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param);
+void gl2_0_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params);
+void gl2_0_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param);
+void gl2_0_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern);
+void gl2_0_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl2_0_glLightModeli(void *_glfuncs, GLenum pname, GLint param);
+void gl2_0_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl2_0_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl2_0_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params);
+void gl2_0_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param);
+void gl2_0_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params);
+void gl2_0_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param);
+void gl2_0_glFogiv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl2_0_glFogi(void *_glfuncs, GLenum pname, GLint param);
+void gl2_0_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl2_0_glFogf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl2_0_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode);
+void gl2_0_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation);
+void gl2_0_glVertex4sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl2_0_glVertex4iv(void *_glfuncs, const GLint* v);
+void gl2_0_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl2_0_glVertex4fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl2_0_glVertex4dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl2_0_glVertex3sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl2_0_glVertex3iv(void *_glfuncs, const GLint* v);
+void gl2_0_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl2_0_glVertex3fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl2_0_glVertex3dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl2_0_glVertex2sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glVertex2s(void *_glfuncs, GLshort x, GLshort y);
+void gl2_0_glVertex2iv(void *_glfuncs, const GLint* v);
+void gl2_0_glVertex2i(void *_glfuncs, GLint x, GLint y);
+void gl2_0_glVertex2fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl2_0_glVertex2dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl2_0_glTexCoord4sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl2_0_glTexCoord4iv(void *_glfuncs, const GLint* v);
+void gl2_0_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q);
+void gl2_0_glTexCoord4fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl2_0_glTexCoord4dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl2_0_glTexCoord3sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r);
+void gl2_0_glTexCoord3iv(void *_glfuncs, const GLint* v);
+void gl2_0_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r);
+void gl2_0_glTexCoord3fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r);
+void gl2_0_glTexCoord3dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r);
+void gl2_0_glTexCoord2sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t);
+void gl2_0_glTexCoord2iv(void *_glfuncs, const GLint* v);
+void gl2_0_glTexCoord2i(void *_glfuncs, GLint s, GLint t);
+void gl2_0_glTexCoord2fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t);
+void gl2_0_glTexCoord2dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t);
+void gl2_0_glTexCoord1sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glTexCoord1s(void *_glfuncs, GLshort s);
+void gl2_0_glTexCoord1iv(void *_glfuncs, const GLint* v);
+void gl2_0_glTexCoord1i(void *_glfuncs, GLint s);
+void gl2_0_glTexCoord1fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glTexCoord1f(void *_glfuncs, GLfloat s);
+void gl2_0_glTexCoord1dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glTexCoord1d(void *_glfuncs, GLdouble s);
+void gl2_0_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2);
+void gl2_0_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2);
+void gl2_0_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2);
+void gl2_0_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2);
+void gl2_0_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2);
+void gl2_0_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
+void gl2_0_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2);
+void gl2_0_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
+void gl2_0_glRasterPos4sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl2_0_glRasterPos4iv(void *_glfuncs, const GLint* v);
+void gl2_0_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl2_0_glRasterPos4fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl2_0_glRasterPos4dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl2_0_glRasterPos3sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl2_0_glRasterPos3iv(void *_glfuncs, const GLint* v);
+void gl2_0_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl2_0_glRasterPos3fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl2_0_glRasterPos3dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl2_0_glRasterPos2sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl2_0_glRasterPos2iv(void *_glfuncs, const GLint* v);
+void gl2_0_glRasterPos2i(void *_glfuncs, GLint x, GLint y);
+void gl2_0_glRasterPos2fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl2_0_glRasterPos2dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl2_0_glNormal3sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz);
+void gl2_0_glNormal3iv(void *_glfuncs, const GLint* v);
+void gl2_0_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz);
+void gl2_0_glNormal3fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz);
+void gl2_0_glNormal3dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz);
+void gl2_0_glNormal3bv(void *_glfuncs, const GLbyte* v);
+void gl2_0_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz);
+void gl2_0_glIndexsv(void *_glfuncs, const GLshort* c);
+void gl2_0_glIndexs(void *_glfuncs, GLshort c);
+void gl2_0_glIndexiv(void *_glfuncs, const GLint* c);
+void gl2_0_glIndexi(void *_glfuncs, GLint c);
+void gl2_0_glIndexfv(void *_glfuncs, const GLfloat* c);
+void gl2_0_glIndexf(void *_glfuncs, GLfloat c);
+void gl2_0_glIndexdv(void *_glfuncs, const GLdouble* c);
+void gl2_0_glIndexd(void *_glfuncs, GLdouble c);
+void gl2_0_glEnd(void *_glfuncs);
+void gl2_0_glEdgeFlagv(void *_glfuncs, const GLboolean* flag);
+void gl2_0_glEdgeFlag(void *_glfuncs, GLboolean flag);
+void gl2_0_glColor4usv(void *_glfuncs, const GLushort* v);
+void gl2_0_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha);
+void gl2_0_glColor4uiv(void *_glfuncs, const GLuint* v);
+void gl2_0_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha);
+void gl2_0_glColor4ubv(void *_glfuncs, const GLubyte* v);
+void gl2_0_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
+void gl2_0_glColor4sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha);
+void gl2_0_glColor4iv(void *_glfuncs, const GLint* v);
+void gl2_0_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha);
+void gl2_0_glColor4fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl2_0_glColor4dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
+void gl2_0_glColor4bv(void *_glfuncs, const GLbyte* v);
+void gl2_0_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
+void gl2_0_glColor3usv(void *_glfuncs, const GLushort* v);
+void gl2_0_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl2_0_glColor3uiv(void *_glfuncs, const GLuint* v);
+void gl2_0_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl2_0_glColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl2_0_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl2_0_glColor3sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl2_0_glColor3iv(void *_glfuncs, const GLint* v);
+void gl2_0_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl2_0_glColor3fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl2_0_glColor3dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl2_0_glColor3bv(void *_glfuncs, const GLbyte* v);
+void gl2_0_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl2_0_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap);
+void gl2_0_glBegin(void *_glfuncs, GLenum mode);
+void gl2_0_glListBase(void *_glfuncs, GLuint base);
+GLuint gl2_0_glGenLists(void *_glfuncs, GLsizei range_);
+void gl2_0_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_);
+void gl2_0_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists);
+void gl2_0_glCallList(void *_glfuncs, GLuint list);
+void gl2_0_glEndList(void *_glfuncs);
+void gl2_0_glNewList(void *_glfuncs, GLuint list, GLenum mode);
+void gl2_0_glPushClientAttrib(void *_glfuncs, GLbitfield mask);
+void gl2_0_glPopClientAttrib(void *_glfuncs);
+void gl2_0_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities);
+GLboolean gl2_0_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences);
+void gl2_0_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl2_0_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl2_0_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl2_0_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer);
+void gl2_0_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl2_0_glEnableClientState(void *_glfuncs, GLenum array);
+void gl2_0_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer);
+void gl2_0_glDisableClientState(void *_glfuncs, GLenum array);
+void gl2_0_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl2_0_glArrayElement(void *_glfuncs, GLint i);
+void gl2_0_glResetMinmax(void *_glfuncs, GLenum target);
+void gl2_0_glResetHistogram(void *_glfuncs, GLenum target);
+void gl2_0_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink);
+void gl2_0_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink);
+void gl2_0_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl2_0_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl2_0_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl2_0_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl2_0_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl2_0_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl2_0_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column);
+void gl2_0_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span);
+void gl2_0_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl2_0_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl2_0_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image);
+void gl2_0_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl2_0_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl2_0_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl2_0_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params);
+void gl2_0_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl2_0_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params);
+void gl2_0_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image);
+void gl2_0_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image);
+void gl2_0_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+void gl2_0_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data);
+void gl2_0_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl2_0_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl2_0_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table);
+void gl2_0_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl2_0_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl2_0_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl2_0_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table);
+void gl2_0_glMultTransposeMatrixd(void *_glfuncs, const GLdouble* m);
+void gl2_0_glMultTransposeMatrixf(void *_glfuncs, const GLfloat* m);
+void gl2_0_glLoadTransposeMatrixd(void *_glfuncs, const GLdouble* m);
+void gl2_0_glLoadTransposeMatrixf(void *_glfuncs, const GLfloat* m);
+void gl2_0_glMultiTexCoord4sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl2_0_glMultiTexCoord4s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl2_0_glMultiTexCoord4iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl2_0_glMultiTexCoord4i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r, GLint q);
+void gl2_0_glMultiTexCoord4fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl2_0_glMultiTexCoord4f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl2_0_glMultiTexCoord4dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl2_0_glMultiTexCoord4d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl2_0_glMultiTexCoord3sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl2_0_glMultiTexCoord3s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r);
+void gl2_0_glMultiTexCoord3iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl2_0_glMultiTexCoord3i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r);
+void gl2_0_glMultiTexCoord3fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl2_0_glMultiTexCoord3f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r);
+void gl2_0_glMultiTexCoord3dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl2_0_glMultiTexCoord3d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r);
+void gl2_0_glMultiTexCoord2sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl2_0_glMultiTexCoord2s(void *_glfuncs, GLenum target, GLshort s, GLshort t);
+void gl2_0_glMultiTexCoord2iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl2_0_glMultiTexCoord2i(void *_glfuncs, GLenum target, GLint s, GLint t);
+void gl2_0_glMultiTexCoord2fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl2_0_glMultiTexCoord2f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t);
+void gl2_0_glMultiTexCoord2dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl2_0_glMultiTexCoord2d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t);
+void gl2_0_glMultiTexCoord1sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl2_0_glMultiTexCoord1s(void *_glfuncs, GLenum target, GLshort s);
+void gl2_0_glMultiTexCoord1iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl2_0_glMultiTexCoord1i(void *_glfuncs, GLenum target, GLint s);
+void gl2_0_glMultiTexCoord1fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl2_0_glMultiTexCoord1f(void *_glfuncs, GLenum target, GLfloat s);
+void gl2_0_glMultiTexCoord1dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl2_0_glMultiTexCoord1d(void *_glfuncs, GLenum target, GLdouble s);
+void gl2_0_glClientActiveTexture(void *_glfuncs, GLenum texture);
+void gl2_0_glWindowPos3sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glWindowPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl2_0_glWindowPos3iv(void *_glfuncs, const GLint* v);
+void gl2_0_glWindowPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl2_0_glWindowPos3fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glWindowPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl2_0_glWindowPos3dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glWindowPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl2_0_glWindowPos2sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glWindowPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl2_0_glWindowPos2iv(void *_glfuncs, const GLint* v);
+void gl2_0_glWindowPos2i(void *_glfuncs, GLint x, GLint y);
+void gl2_0_glWindowPos2fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glWindowPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl2_0_glWindowPos2dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glWindowPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl2_0_glSecondaryColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl2_0_glSecondaryColor3usv(void *_glfuncs, const GLushort* v);
+void gl2_0_glSecondaryColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl2_0_glSecondaryColor3uiv(void *_glfuncs, const GLuint* v);
+void gl2_0_glSecondaryColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl2_0_glSecondaryColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl2_0_glSecondaryColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl2_0_glSecondaryColor3sv(void *_glfuncs, const GLshort* v);
+void gl2_0_glSecondaryColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl2_0_glSecondaryColor3iv(void *_glfuncs, const GLint* v);
+void gl2_0_glSecondaryColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl2_0_glSecondaryColor3fv(void *_glfuncs, const GLfloat* v);
+void gl2_0_glSecondaryColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl2_0_glSecondaryColor3dv(void *_glfuncs, const GLdouble* v);
+void gl2_0_glSecondaryColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl2_0_glSecondaryColor3bv(void *_glfuncs, const GLbyte* v);
+void gl2_0_glSecondaryColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl2_0_glFogCoordPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl2_0_glFogCoorddv(void *_glfuncs, const GLdouble* coord);
+void gl2_0_glFogCoordd(void *_glfuncs, GLdouble coord);
+void gl2_0_glFogCoordfv(void *_glfuncs, const GLfloat* coord);
+void gl2_0_glFogCoordf(void *_glfuncs, GLfloat coord);
+void gl2_0_glVertexAttrib4usv(void *_glfuncs, GLuint index, const GLushort* v);
+void gl2_0_glVertexAttrib4uiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl2_0_glVertexAttrib4ubv(void *_glfuncs, GLuint index, const GLubyte* v);
+void gl2_0_glVertexAttrib4sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl2_0_glVertexAttrib4s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl2_0_glVertexAttrib4iv(void *_glfuncs, GLuint index, const GLint* v);
+void gl2_0_glVertexAttrib4fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl2_0_glVertexAttrib4f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl2_0_glVertexAttrib4dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl2_0_glVertexAttrib4d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl2_0_glVertexAttrib4bv(void *_glfuncs, GLuint index, const GLbyte* v);
+void gl2_0_glVertexAttrib4Nusv(void *_glfuncs, GLuint index, const GLushort* v);
+void gl2_0_glVertexAttrib4Nuiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl2_0_glVertexAttrib4Nubv(void *_glfuncs, GLuint index, const GLubyte* v);
+void gl2_0_glVertexAttrib4Nub(void *_glfuncs, GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+void gl2_0_glVertexAttrib4Nsv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl2_0_glVertexAttrib4Niv(void *_glfuncs, GLuint index, const GLint* v);
+void gl2_0_glVertexAttrib4Nbv(void *_glfuncs, GLuint index, const GLbyte* v);
+void gl2_0_glVertexAttrib3sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl2_0_glVertexAttrib3s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z);
+void gl2_0_glVertexAttrib3fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl2_0_glVertexAttrib3f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z);
+void gl2_0_glVertexAttrib3dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl2_0_glVertexAttrib3d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z);
+void gl2_0_glVertexAttrib2sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl2_0_glVertexAttrib2s(void *_glfuncs, GLuint index, GLshort x, GLshort y);
+void gl2_0_glVertexAttrib2fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl2_0_glVertexAttrib2f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y);
+void gl2_0_glVertexAttrib2dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl2_0_glVertexAttrib2d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y);
+void gl2_0_glVertexAttrib1sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl2_0_glVertexAttrib1s(void *_glfuncs, GLuint index, GLshort x);
+void gl2_0_glVertexAttrib1fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl2_0_glVertexAttrib1f(void *_glfuncs, GLuint index, GLfloat x);
+void gl2_0_glVertexAttrib1dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl2_0_glVertexAttrib1d(void *_glfuncs, GLuint index, GLdouble x);
+
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.0/gl.go b/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.0/gl.go
new file mode 100644
index 000000000..7bd1e1b52
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.0/gl.go
@@ -0,0 +1,6407 @@
+// ** file automatically generated by glgen -- do not edit manually **
+
+package GL
+
+// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
+// #cgo LDFLAGS: -lstdc++
+// #cgo pkg-config: Qt5Core Qt5OpenGL
+//
+// #include "funcs.h"
+//
+// void free(void*);
+//
+import "C"
+
+import (
+ "fmt"
+ "reflect"
+ "unsafe"
+
+ "gopkg.in/qml.v1/gl/glbase"
+)
+
+// API returns a value that offers methods matching the OpenGL version 2.0 API.
+//
+// The returned API must not be used after the provided OpenGL context becomes invalid.
+func API(context glbase.Contexter) *GL {
+ gl := &GL{}
+ gl.funcs = C.gl2_0_funcs()
+ if gl.funcs == nil {
+ panic(fmt.Errorf("OpenGL version 2.0 is not available"))
+ }
+ return gl
+}
+
+// GL implements the OpenGL version 2.0 API. Values of this
+// type must be created via the API function, and it must not be used after
+// the associated OpenGL context becomes invalid.
+type GL struct {
+ funcs unsafe.Pointer
+}
+
+const (
+ FALSE = 0
+ TRUE = 1
+ NONE = 0
+
+ BYTE = 0x1400
+ UNSIGNED_BYTE = 0x1401
+ SHORT = 0x1402
+ UNSIGNED_SHORT = 0x1403
+ INT = 0x1404
+ UNSIGNED_INT = 0x1405
+ FLOAT = 0x1406
+ N2_BYTES = 0x1407
+ N3_BYTES = 0x1408
+ N4_BYTES = 0x1409
+ DOUBLE = 0x140A
+
+ ACCUM = 0x0100
+ LOAD = 0x0101
+ RETURN = 0x0102
+ MULT = 0x0103
+ ADD = 0x0104
+
+ ACCUM_BUFFER_BIT = 0x00000200
+ ALL_ATTRIB_BITS = 0xFFFFFFFF
+ COLOR_BUFFER_BIT = 0x00004000
+ CURRENT_BIT = 0x00000001
+ DEPTH_BUFFER_BIT = 0x00000100
+ ENABLE_BIT = 0x00002000
+ EVAL_BIT = 0x00010000
+ FOG_BIT = 0x00000080
+ HINT_BIT = 0x00008000
+ LIGHTING_BIT = 0x00000040
+ LINE_BIT = 0x00000004
+ LIST_BIT = 0x00020000
+ MULTISAMPLE_BIT = 0x20000000
+ PIXEL_MODE_BIT = 0x00000020
+ POINT_BIT = 0x00000002
+ POLYGON_BIT = 0x00000008
+ POLYGON_STIPPLE_BIT = 0x00000010
+ SCISSOR_BIT = 0x00080000
+ STENCIL_BUFFER_BIT = 0x00000400
+ TEXTURE_BIT = 0x00040000
+ TRANSFORM_BIT = 0x00001000
+ VIEWPORT_BIT = 0x00000800
+
+ ALWAYS = 0x0207
+ EQUAL = 0x0202
+ GEQUAL = 0x0206
+ GREATER = 0x0204
+ LEQUAL = 0x0203
+ LESS = 0x0201
+ NEVER = 0x0200
+ NOTEQUAL = 0x0205
+
+ LOGIC_OP = 0x0BF1
+
+ DST_ALPHA = 0x0304
+ ONE = 1
+ ONE_MINUS_DST_ALPHA = 0x0305
+ ONE_MINUS_SRC_ALPHA = 0x0303
+ ONE_MINUS_SRC_COLOR = 0x0301
+ SRC_ALPHA = 0x0302
+ SRC_COLOR = 0x0300
+ ZERO = 0
+
+ DST_COLOR = 0x0306
+ ONE_MINUS_DST_COLOR = 0x0307
+ SRC_ALPHA_SATURATE = 0x0308
+
+ CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF
+ CLIENT_PIXEL_STORE_BIT = 0x00000001
+ CLIENT_VERTEX_ARRAY_BIT = 0x00000002
+
+ CLIP_PLANE0 = 0x3000
+ CLIP_PLANE1 = 0x3001
+ CLIP_PLANE2 = 0x3002
+ CLIP_PLANE3 = 0x3003
+ CLIP_PLANE4 = 0x3004
+ CLIP_PLANE5 = 0x3005
+
+ BACK = 0x0405
+ FRONT = 0x0404
+ FRONT_AND_BACK = 0x0408
+
+ AMBIENT = 0x1200
+ AMBIENT_AND_DIFFUSE = 0x1602
+ DIFFUSE = 0x1201
+ EMISSION = 0x1600
+ SPECULAR = 0x1202
+
+ AUX0 = 0x0409
+ AUX1 = 0x040A
+ AUX2 = 0x040B
+ AUX3 = 0x040C
+ BACK_LEFT = 0x0402
+ BACK_RIGHT = 0x0403
+ FRONT_LEFT = 0x0400
+ FRONT_RIGHT = 0x0401
+ LEFT = 0x0406
+ RIGHT = 0x0407
+
+ ALPHA_TEST = 0x0BC0
+ AUTO_NORMAL = 0x0D80
+ BLEND = 0x0BE2
+ COLOR_ARRAY = 0x8076
+ COLOR_LOGIC_OP = 0x0BF2
+ COLOR_MATERIAL = 0x0B57
+ CULL_FACE = 0x0B44
+ DEPTH_TEST = 0x0B71
+ DITHER = 0x0BD0
+ EDGE_FLAG_ARRAY = 0x8079
+ FOG = 0x0B60
+ INDEX_ARRAY = 0x8077
+ INDEX_LOGIC_OP = 0x0BF1
+ LIGHT0 = 0x4000
+ LIGHT1 = 0x4001
+ LIGHT2 = 0x4002
+ LIGHT3 = 0x4003
+ LIGHT4 = 0x4004
+ LIGHT5 = 0x4005
+ LIGHT6 = 0x4006
+ LIGHT7 = 0x4007
+ LIGHTING = 0x0B50
+ LINE_SMOOTH = 0x0B20
+ LINE_STIPPLE = 0x0B24
+ MAP1_COLOR_4 = 0x0D90
+ MAP1_INDEX = 0x0D91
+ MAP1_NORMAL = 0x0D92
+ MAP1_TEXTURE_COORD_1 = 0x0D93
+ MAP1_TEXTURE_COORD_2 = 0x0D94
+ MAP1_TEXTURE_COORD_3 = 0x0D95
+ MAP1_TEXTURE_COORD_4 = 0x0D96
+ MAP1_VERTEX_3 = 0x0D97
+ MAP1_VERTEX_4 = 0x0D98
+ MAP2_COLOR_4 = 0x0DB0
+ MAP2_INDEX = 0x0DB1
+ MAP2_NORMAL = 0x0DB2
+ MAP2_TEXTURE_COORD_1 = 0x0DB3
+ MAP2_TEXTURE_COORD_2 = 0x0DB4
+ MAP2_TEXTURE_COORD_3 = 0x0DB5
+ MAP2_TEXTURE_COORD_4 = 0x0DB6
+ MAP2_VERTEX_3 = 0x0DB7
+ MAP2_VERTEX_4 = 0x0DB8
+ NORMALIZE = 0x0BA1
+ NORMAL_ARRAY = 0x8075
+ POINT_SMOOTH = 0x0B10
+ POLYGON_OFFSET_FILL = 0x8037
+ POLYGON_OFFSET_LINE = 0x2A02
+ POLYGON_OFFSET_POINT = 0x2A01
+ POLYGON_SMOOTH = 0x0B41
+ POLYGON_STIPPLE = 0x0B42
+ SCISSOR_TEST = 0x0C11
+ STENCIL_TEST = 0x0B90
+ TEXTURE_1D = 0x0DE0
+ TEXTURE_2D = 0x0DE1
+ TEXTURE_COORD_ARRAY = 0x8078
+ TEXTURE_GEN_Q = 0x0C63
+ TEXTURE_GEN_R = 0x0C62
+ TEXTURE_GEN_S = 0x0C60
+ TEXTURE_GEN_T = 0x0C61
+ VERTEX_ARRAY = 0x8074
+
+ INVALID_ENUM = 0x0500
+ INVALID_OPERATION = 0x0502
+ INVALID_VALUE = 0x0501
+ NO_ERROR = 0
+ OUT_OF_MEMORY = 0x0505
+ STACK_OVERFLOW = 0x0503
+ STACK_UNDERFLOW = 0x0504
+
+ N2D = 0x0600
+ N3D = 0x0601
+ N3D_COLOR = 0x0602
+ N3D_COLOR_TEXTURE = 0x0603
+ N4D_COLOR_TEXTURE = 0x0604
+
+ BITMAP_TOKEN = 0x0704
+ COPY_PIXEL_TOKEN = 0x0706
+ DRAW_PIXEL_TOKEN = 0x0705
+ LINE_RESET_TOKEN = 0x0707
+ LINE_TOKEN = 0x0702
+ PASS_THROUGH_TOKEN = 0x0700
+ POINT_TOKEN = 0x0701
+ POLYGON_TOKEN = 0x0703
+
+ EXP = 0x0800
+ EXP2 = 0x0801
+ LINEAR = 0x2601
+
+ FOG_COLOR = 0x0B66
+ FOG_DENSITY = 0x0B62
+ FOG_END = 0x0B64
+ FOG_INDEX = 0x0B61
+ FOG_MODE = 0x0B65
+ FOG_START = 0x0B63
+
+ CCW = 0x0901
+ CW = 0x0900
+
+ COEFF = 0x0A00
+ DOMAIN = 0x0A02
+ ORDER = 0x0A01
+
+ PIXEL_MAP_A_TO_A = 0x0C79
+ PIXEL_MAP_B_TO_B = 0x0C78
+ PIXEL_MAP_G_TO_G = 0x0C77
+ PIXEL_MAP_I_TO_A = 0x0C75
+ PIXEL_MAP_I_TO_B = 0x0C74
+ PIXEL_MAP_I_TO_G = 0x0C73
+ PIXEL_MAP_I_TO_I = 0x0C70
+ PIXEL_MAP_I_TO_R = 0x0C72
+ PIXEL_MAP_R_TO_R = 0x0C76
+ PIXEL_MAP_S_TO_S = 0x0C71
+
+ ACCUM_ALPHA_BITS = 0x0D5B
+ ACCUM_BLUE_BITS = 0x0D5A
+ ACCUM_CLEAR_VALUE = 0x0B80
+ ACCUM_GREEN_BITS = 0x0D59
+ ACCUM_RED_BITS = 0x0D58
+ ALIASED_LINE_WIDTH_RANGE = 0x846E
+ ALIASED_POINT_SIZE_RANGE = 0x846D
+ ALPHA_BIAS = 0x0D1D
+ ALPHA_BITS = 0x0D55
+ ALPHA_SCALE = 0x0D1C
+ ALPHA_TEST_FUNC = 0x0BC1
+ ALPHA_TEST_REF = 0x0BC2
+ ATTRIB_STACK_DEPTH = 0x0BB0
+ AUX_BUFFERS = 0x0C00
+ BLEND_DST = 0x0BE0
+ BLEND_SRC = 0x0BE1
+ BLUE_BIAS = 0x0D1B
+ BLUE_BITS = 0x0D54
+ BLUE_SCALE = 0x0D1A
+ CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1
+ COLOR_ARRAY_SIZE = 0x8081
+ COLOR_ARRAY_STRIDE = 0x8083
+ COLOR_ARRAY_TYPE = 0x8082
+ COLOR_CLEAR_VALUE = 0x0C22
+ COLOR_MATERIAL_FACE = 0x0B55
+ COLOR_MATERIAL_PARAMETER = 0x0B56
+ COLOR_WRITEMASK = 0x0C23
+ CULL_FACE_MODE = 0x0B45
+ CURRENT_COLOR = 0x0B00
+ CURRENT_INDEX = 0x0B01
+ CURRENT_NORMAL = 0x0B02
+ CURRENT_RASTER_COLOR = 0x0B04
+ CURRENT_RASTER_DISTANCE = 0x0B09
+ CURRENT_RASTER_INDEX = 0x0B05
+ CURRENT_RASTER_POSITION = 0x0B07
+ CURRENT_RASTER_POSITION_VALID = 0x0B08
+ CURRENT_RASTER_TEXTURE_COORDS = 0x0B06
+ CURRENT_TEXTURE_COORDS = 0x0B03
+ DEPTH_BIAS = 0x0D1F
+ DEPTH_BITS = 0x0D56
+ DEPTH_CLEAR_VALUE = 0x0B73
+ DEPTH_FUNC = 0x0B74
+ DEPTH_RANGE = 0x0B70
+ DEPTH_SCALE = 0x0D1E
+ DEPTH_WRITEMASK = 0x0B72
+ DOUBLEBUFFER = 0x0C32
+ DRAW_BUFFER = 0x0C01
+ EDGE_FLAG = 0x0B43
+ EDGE_FLAG_ARRAY_STRIDE = 0x808C
+ FEEDBACK_BUFFER_SIZE = 0x0DF1
+ FEEDBACK_BUFFER_TYPE = 0x0DF2
+ FOG_HINT = 0x0C54
+ FRONT_FACE = 0x0B46
+ GREEN_BIAS = 0x0D19
+ GREEN_BITS = 0x0D53
+ GREEN_SCALE = 0x0D18
+ INDEX_ARRAY_STRIDE = 0x8086
+ INDEX_ARRAY_TYPE = 0x8085
+ INDEX_BITS = 0x0D51
+ INDEX_CLEAR_VALUE = 0x0C20
+ INDEX_MODE = 0x0C30
+ INDEX_OFFSET = 0x0D13
+ INDEX_SHIFT = 0x0D12
+ INDEX_WRITEMASK = 0x0C21
+ LIGHT_MODEL_AMBIENT = 0x0B53
+ LIGHT_MODEL_COLOR_CONTROL = 0x81F8
+ LIGHT_MODEL_LOCAL_VIEWER = 0x0B51
+ LIGHT_MODEL_TWO_SIDE = 0x0B52
+ LINE_SMOOTH_HINT = 0x0C52
+ LINE_STIPPLE_PATTERN = 0x0B25
+ LINE_STIPPLE_REPEAT = 0x0B26
+ LINE_WIDTH = 0x0B21
+ LINE_WIDTH_GRANULARITY = 0x0B23
+ LINE_WIDTH_RANGE = 0x0B22
+ LIST_BASE = 0x0B32
+ LIST_INDEX = 0x0B33
+ LIST_MODE = 0x0B30
+ LOGIC_OP_MODE = 0x0BF0
+ MAP1_GRID_DOMAIN = 0x0DD0
+ MAP1_GRID_SEGMENTS = 0x0DD1
+ MAP2_GRID_DOMAIN = 0x0DD2
+ MAP2_GRID_SEGMENTS = 0x0DD3
+ MAP_COLOR = 0x0D10
+ MAP_STENCIL = 0x0D11
+ MATRIX_MODE = 0x0BA0
+ MAX_ATTRIB_STACK_DEPTH = 0x0D35
+ MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B
+ MAX_CLIP_PLANES = 0x0D32
+ MAX_EVAL_ORDER = 0x0D30
+ MAX_LIGHTS = 0x0D31
+ MAX_LIST_NESTING = 0x0B31
+ MAX_MODELVIEW_STACK_DEPTH = 0x0D36
+ MAX_NAME_STACK_DEPTH = 0x0D37
+ MAX_PIXEL_MAP_TABLE = 0x0D34
+ MAX_PROJECTION_STACK_DEPTH = 0x0D38
+ MAX_TEXTURE_SIZE = 0x0D33
+ MAX_TEXTURE_STACK_DEPTH = 0x0D39
+ MAX_VIEWPORT_DIMS = 0x0D3A
+ MODELVIEW_MATRIX = 0x0BA6
+ MODELVIEW_STACK_DEPTH = 0x0BA3
+ NAME_STACK_DEPTH = 0x0D70
+ NORMAL_ARRAY_STRIDE = 0x807F
+ NORMAL_ARRAY_TYPE = 0x807E
+ PACK_ALIGNMENT = 0x0D05
+ PACK_LSB_FIRST = 0x0D01
+ PACK_ROW_LENGTH = 0x0D02
+ PACK_SKIP_PIXELS = 0x0D04
+ PACK_SKIP_ROWS = 0x0D03
+ PACK_SWAP_BYTES = 0x0D00
+ PERSPECTIVE_CORRECTION_HINT = 0x0C50
+ PIXEL_MAP_A_TO_A_SIZE = 0x0CB9
+ PIXEL_MAP_B_TO_B_SIZE = 0x0CB8
+ PIXEL_MAP_G_TO_G_SIZE = 0x0CB7
+ PIXEL_MAP_I_TO_A_SIZE = 0x0CB5
+ PIXEL_MAP_I_TO_B_SIZE = 0x0CB4
+ PIXEL_MAP_I_TO_G_SIZE = 0x0CB3
+ PIXEL_MAP_I_TO_I_SIZE = 0x0CB0
+ PIXEL_MAP_I_TO_R_SIZE = 0x0CB2
+ PIXEL_MAP_R_TO_R_SIZE = 0x0CB6
+ PIXEL_MAP_S_TO_S_SIZE = 0x0CB1
+ POINT_SIZE = 0x0B11
+ POINT_SIZE_GRANULARITY = 0x0B13
+ POINT_SIZE_RANGE = 0x0B12
+ POINT_SMOOTH_HINT = 0x0C51
+ POLYGON_MODE = 0x0B40
+ POLYGON_OFFSET_FACTOR = 0x8038
+ POLYGON_OFFSET_UNITS = 0x2A00
+ POLYGON_SMOOTH_HINT = 0x0C53
+ PROJECTION_MATRIX = 0x0BA7
+ PROJECTION_STACK_DEPTH = 0x0BA4
+ READ_BUFFER = 0x0C02
+ RED_BIAS = 0x0D15
+ RED_BITS = 0x0D52
+ RED_SCALE = 0x0D14
+ RENDER_MODE = 0x0C40
+ RGBA_MODE = 0x0C31
+ SCISSOR_BOX = 0x0C10
+ SELECTION_BUFFER_SIZE = 0x0DF4
+ SHADE_MODEL = 0x0B54
+ SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23
+ SMOOTH_LINE_WIDTH_RANGE = 0x0B22
+ SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13
+ SMOOTH_POINT_SIZE_RANGE = 0x0B12
+ STENCIL_BITS = 0x0D57
+ STENCIL_CLEAR_VALUE = 0x0B91
+ STENCIL_FAIL = 0x0B94
+ STENCIL_FUNC = 0x0B92
+ STENCIL_PASS_DEPTH_FAIL = 0x0B95
+ STENCIL_PASS_DEPTH_PASS = 0x0B96
+ STENCIL_REF = 0x0B97
+ STENCIL_VALUE_MASK = 0x0B93
+ STENCIL_WRITEMASK = 0x0B98
+ STEREO = 0x0C33
+ SUBPIXEL_BITS = 0x0D50
+ TEXTURE_BINDING_1D = 0x8068
+ TEXTURE_BINDING_2D = 0x8069
+ TEXTURE_BINDING_3D = 0x806A
+ TEXTURE_COORD_ARRAY_SIZE = 0x8088
+ TEXTURE_COORD_ARRAY_STRIDE = 0x808A
+ TEXTURE_COORD_ARRAY_TYPE = 0x8089
+ TEXTURE_MATRIX = 0x0BA8
+ TEXTURE_STACK_DEPTH = 0x0BA5
+ UNPACK_ALIGNMENT = 0x0CF5
+ UNPACK_LSB_FIRST = 0x0CF1
+ UNPACK_ROW_LENGTH = 0x0CF2
+ UNPACK_SKIP_PIXELS = 0x0CF4
+ UNPACK_SKIP_ROWS = 0x0CF3
+ UNPACK_SWAP_BYTES = 0x0CF0
+ VERTEX_ARRAY_SIZE = 0x807A
+ VERTEX_ARRAY_STRIDE = 0x807C
+ VERTEX_ARRAY_TYPE = 0x807B
+ VIEWPORT = 0x0BA2
+ ZOOM_X = 0x0D16
+ ZOOM_Y = 0x0D17
+
+ COLOR_ARRAY_POINTER = 0x8090
+ EDGE_FLAG_ARRAY_POINTER = 0x8093
+ FEEDBACK_BUFFER_POINTER = 0x0DF0
+ INDEX_ARRAY_POINTER = 0x8091
+ NORMAL_ARRAY_POINTER = 0x808F
+ SELECTION_BUFFER_POINTER = 0x0DF3
+ TEXTURE_COORD_ARRAY_POINTER = 0x8092
+ VERTEX_ARRAY_POINTER = 0x808E
+
+ TEXTURE_ALPHA_SIZE = 0x805F
+ TEXTURE_BLUE_SIZE = 0x805E
+ TEXTURE_BORDER = 0x1005
+ TEXTURE_BORDER_COLOR = 0x1004
+ TEXTURE_COMPONENTS = 0x1003
+ TEXTURE_GREEN_SIZE = 0x805D
+ TEXTURE_HEIGHT = 0x1001
+ TEXTURE_INTENSITY_SIZE = 0x8061
+ TEXTURE_INTERNAL_FORMAT = 0x1003
+ TEXTURE_LUMINANCE_SIZE = 0x8060
+ TEXTURE_MAG_FILTER = 0x2800
+ TEXTURE_MIN_FILTER = 0x2801
+ TEXTURE_PRIORITY = 0x8066
+ TEXTURE_RED_SIZE = 0x805C
+ TEXTURE_RESIDENT = 0x8067
+ TEXTURE_WIDTH = 0x1000
+ TEXTURE_WRAP_S = 0x2802
+ TEXTURE_WRAP_T = 0x2803
+
+ DONT_CARE = 0x1100
+ FASTEST = 0x1101
+ NICEST = 0x1102
+
+ FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B
+ GENERATE_MIPMAP_HINT = 0x8192
+ TEXTURE_COMPRESSION_HINT = 0x84EF
+
+ C3F_V3F = 0x2A24
+ C4F_N3F_V3F = 0x2A26
+ C4UB_V2F = 0x2A22
+ C4UB_V3F = 0x2A23
+ N3F_V3F = 0x2A25
+ T2F_C3F_V3F = 0x2A2A
+ T2F_C4F_N3F_V3F = 0x2A2C
+ T2F_C4UB_V3F = 0x2A29
+ T2F_N3F_V3F = 0x2A2B
+ T2F_V3F = 0x2A27
+ T4F_C4F_N3F_V4F = 0x2A2D
+ T4F_V4F = 0x2A28
+ V2F = 0x2A20
+ V3F = 0x2A21
+
+ MODULATE = 0x2100
+ REPLACE = 0x1E01
+
+ SEPARATE_SPECULAR_COLOR = 0x81FA
+ SINGLE_COLOR = 0x81F9
+
+ CONSTANT_ATTENUATION = 0x1207
+ LINEAR_ATTENUATION = 0x1208
+ POSITION = 0x1203
+ QUADRATIC_ATTENUATION = 0x1209
+ SPOT_CUTOFF = 0x1206
+ SPOT_DIRECTION = 0x1204
+ SPOT_EXPONENT = 0x1205
+
+ COMPILE = 0x1300
+ COMPILE_AND_EXECUTE = 0x1301
+
+ AND = 0x1501
+ AND_INVERTED = 0x1504
+ AND_REVERSE = 0x1502
+ CLEAR = 0x1500
+ COPY = 0x1503
+ COPY_INVERTED = 0x150C
+ EQUIV = 0x1509
+ INVERT = 0x150A
+ NAND = 0x150E
+ NOOP = 0x1505
+ NOR = 0x1508
+ OR = 0x1507
+ OR_INVERTED = 0x150D
+ OR_REVERSE = 0x150B
+ SET = 0x150F
+ XOR = 0x1506
+
+ COLOR_INDEXES = 0x1603
+ SHININESS = 0x1601
+
+ MODELVIEW = 0x1700
+ PROJECTION = 0x1701
+ TEXTURE = 0x1702
+
+ LINE = 0x1B01
+ POINT = 0x1B00
+
+ FILL = 0x1B02
+
+ COLOR = 0x1800
+ DEPTH = 0x1801
+ STENCIL = 0x1802
+
+ ALPHA = 0x1906
+ BLUE = 0x1905
+ COLOR_INDEX = 0x1900
+ DEPTH_COMPONENT = 0x1902
+ GREEN = 0x1904
+ LUMINANCE = 0x1909
+ LUMINANCE_ALPHA = 0x190A
+ RED = 0x1903
+ RGB = 0x1907
+ RGBA = 0x1908
+ STENCIL_INDEX = 0x1901
+
+ ALPHA12 = 0x803D
+ ALPHA16 = 0x803E
+ ALPHA4 = 0x803B
+ ALPHA8 = 0x803C
+ INTENSITY = 0x8049
+ INTENSITY12 = 0x804C
+ INTENSITY16 = 0x804D
+ INTENSITY4 = 0x804A
+ INTENSITY8 = 0x804B
+ LUMINANCE12 = 0x8041
+ LUMINANCE12_ALPHA12 = 0x8047
+ LUMINANCE12_ALPHA4 = 0x8046
+ LUMINANCE16 = 0x8042
+ LUMINANCE16_ALPHA16 = 0x8048
+ LUMINANCE4 = 0x803F
+ LUMINANCE4_ALPHA4 = 0x8043
+ LUMINANCE6_ALPHA2 = 0x8044
+ LUMINANCE8 = 0x8040
+ LUMINANCE8_ALPHA8 = 0x8045
+ R3_G3_B2 = 0x2A10
+ RGB10 = 0x8052
+ RGB10_A2 = 0x8059
+ RGB12 = 0x8053
+ RGB16 = 0x8054
+ RGB4 = 0x804F
+ RGB5 = 0x8050
+ RGB5_A1 = 0x8057
+ RGB8 = 0x8051
+ RGBA12 = 0x805A
+ RGBA16 = 0x805B
+ RGBA2 = 0x8055
+ RGBA4 = 0x8056
+ RGBA8 = 0x8058
+
+ PACK_IMAGE_HEIGHT = 0x806C
+ PACK_SKIP_IMAGES = 0x806B
+ UNPACK_IMAGE_HEIGHT = 0x806E
+ UNPACK_SKIP_IMAGES = 0x806D
+
+ BITMAP = 0x1A00
+ UNSIGNED_BYTE_3_3_2 = 0x8032
+ UNSIGNED_INT_10_10_10_2 = 0x8036
+ UNSIGNED_INT_8_8_8_8 = 0x8035
+ UNSIGNED_SHORT_4_4_4_4 = 0x8033
+ UNSIGNED_SHORT_5_5_5_1 = 0x8034
+
+ POINT_DISTANCE_ATTENUATION = 0x8129
+ POINT_FADE_THRESHOLD_SIZE = 0x8128
+ POINT_SIZE_MAX = 0x8127
+ POINT_SIZE_MIN = 0x8126
+
+ LINES = 0x0001
+ LINE_LOOP = 0x0002
+ LINE_STRIP = 0x0003
+ POINTS = 0x0000
+ POLYGON = 0x0009
+ QUADS = 0x0007
+ QUAD_STRIP = 0x0008
+ TRIANGLES = 0x0004
+ TRIANGLE_FAN = 0x0006
+ TRIANGLE_STRIP = 0x0005
+
+ FEEDBACK = 0x1C01
+ RENDER = 0x1C00
+ SELECT = 0x1C02
+
+ FLAT = 0x1D00
+ SMOOTH = 0x1D01
+
+ DECR = 0x1E03
+ INCR = 0x1E02
+ KEEP = 0x1E00
+
+ EXTENSIONS = 0x1F03
+ RENDERER = 0x1F01
+ VENDOR = 0x1F00
+ VERSION = 0x1F02
+
+ S = 0x2000
+ T = 0x2001
+ R = 0x2002
+ Q = 0x2003
+
+ DECAL = 0x2101
+
+ TEXTURE_ENV_COLOR = 0x2201
+ TEXTURE_ENV_MODE = 0x2200
+
+ TEXTURE_ENV = 0x2300
+
+ EYE_LINEAR = 0x2400
+ OBJECT_LINEAR = 0x2401
+ SPHERE_MAP = 0x2402
+
+ EYE_PLANE = 0x2502
+ OBJECT_PLANE = 0x2501
+ TEXTURE_GEN_MODE = 0x2500
+
+ NEAREST = 0x2600
+
+ LINEAR_MIPMAP_LINEAR = 0x2703
+ LINEAR_MIPMAP_NEAREST = 0x2701
+ NEAREST_MIPMAP_LINEAR = 0x2702
+ NEAREST_MIPMAP_NEAREST = 0x2700
+
+ GENERATE_MIPMAP = 0x8191
+ TEXTURE_WRAP_R = 0x8072
+
+ PROXY_TEXTURE_1D = 0x8063
+ PROXY_TEXTURE_2D = 0x8064
+ PROXY_TEXTURE_3D = 0x8070
+ TEXTURE_3D = 0x806F
+ TEXTURE_BASE_LEVEL = 0x813C
+ TEXTURE_MAX_LEVEL = 0x813D
+ TEXTURE_MAX_LOD = 0x813B
+ TEXTURE_MIN_LOD = 0x813A
+
+ CLAMP = 0x2900
+ CLAMP_TO_BORDER = 0x812D
+ CLAMP_TO_EDGE = 0x812F
+ REPEAT = 0x2901
+
+ CONSTANT_COLOR = 0x8001
+ ONE_MINUS_CONSTANT_COLOR = 0x8002
+ CONSTANT_ALPHA = 0x8003
+ ONE_MINUS_CONSTANT_ALPHA = 0x8004
+ FUNC_ADD = 0x8006
+ MIN = 0x8007
+ MAX = 0x8008
+ BLEND_EQUATION_RGB = 0x8009
+ FUNC_SUBTRACT = 0x800A
+ FUNC_REVERSE_SUBTRACT = 0x800B
+ RESCALE_NORMAL = 0x803A
+ TEXTURE_DEPTH = 0x8071
+ MAX_3D_TEXTURE_SIZE = 0x8073
+ MULTISAMPLE = 0x809D
+ SAMPLE_ALPHA_TO_COVERAGE = 0x809E
+ SAMPLE_ALPHA_TO_ONE = 0x809F
+ SAMPLE_COVERAGE = 0x80A0
+ SAMPLE_BUFFERS = 0x80A8
+ SAMPLES = 0x80A9
+ SAMPLE_COVERAGE_VALUE = 0x80AA
+ SAMPLE_COVERAGE_INVERT = 0x80AB
+ BLEND_DST_RGB = 0x80C8
+ BLEND_SRC_RGB = 0x80C9
+ BLEND_DST_ALPHA = 0x80CA
+ BLEND_SRC_ALPHA = 0x80CB
+ BGR = 0x80E0
+ BGRA = 0x80E1
+ MAX_ELEMENTS_VERTICES = 0x80E8
+ MAX_ELEMENTS_INDICES = 0x80E9
+ DEPTH_COMPONENT16 = 0x81A5
+ DEPTH_COMPONENT24 = 0x81A6
+ DEPTH_COMPONENT32 = 0x81A7
+ UNSIGNED_BYTE_2_3_3_REV = 0x8362
+ UNSIGNED_SHORT_5_6_5 = 0x8363
+ UNSIGNED_SHORT_5_6_5_REV = 0x8364
+ UNSIGNED_SHORT_4_4_4_4_REV = 0x8365
+ UNSIGNED_SHORT_1_5_5_5_REV = 0x8366
+ UNSIGNED_INT_8_8_8_8_REV = 0x8367
+ UNSIGNED_INT_2_10_10_10_REV = 0x8368
+ MIRRORED_REPEAT = 0x8370
+ FOG_COORDINATE_SOURCE = 0x8450
+ FOG_COORD_SRC = 0x8450
+ FOG_COORDINATE = 0x8451
+ FOG_COORD = 0x8451
+ FRAGMENT_DEPTH = 0x8452
+ CURRENT_FOG_COORDINATE = 0x8453
+ CURRENT_FOG_COORD = 0x8453
+ FOG_COORDINATE_ARRAY_TYPE = 0x8454
+ FOG_COORD_ARRAY_TYPE = 0x8454
+ FOG_COORDINATE_ARRAY_STRIDE = 0x8455
+ FOG_COORD_ARRAY_STRIDE = 0x8455
+ FOG_COORDINATE_ARRAY_POINTER = 0x8456
+ FOG_COORD_ARRAY_POINTER = 0x8456
+ FOG_COORDINATE_ARRAY = 0x8457
+ FOG_COORD_ARRAY = 0x8457
+ COLOR_SUM = 0x8458
+ CURRENT_SECONDARY_COLOR = 0x8459
+ SECONDARY_COLOR_ARRAY_SIZE = 0x845A
+ SECONDARY_COLOR_ARRAY_TYPE = 0x845B
+ SECONDARY_COLOR_ARRAY_STRIDE = 0x845C
+ SECONDARY_COLOR_ARRAY_POINTER = 0x845D
+ SECONDARY_COLOR_ARRAY = 0x845E
+ TEXTURE0 = 0x84C0
+ TEXTURE1 = 0x84C1
+ TEXTURE2 = 0x84C2
+ TEXTURE3 = 0x84C3
+ TEXTURE4 = 0x84C4
+ TEXTURE5 = 0x84C5
+ TEXTURE6 = 0x84C6
+ TEXTURE7 = 0x84C7
+ TEXTURE8 = 0x84C8
+ TEXTURE9 = 0x84C9
+ TEXTURE10 = 0x84CA
+ TEXTURE11 = 0x84CB
+ TEXTURE12 = 0x84CC
+ TEXTURE13 = 0x84CD
+ TEXTURE14 = 0x84CE
+ TEXTURE15 = 0x84CF
+ TEXTURE16 = 0x84D0
+ TEXTURE17 = 0x84D1
+ TEXTURE18 = 0x84D2
+ TEXTURE19 = 0x84D3
+ TEXTURE20 = 0x84D4
+ TEXTURE21 = 0x84D5
+ TEXTURE22 = 0x84D6
+ TEXTURE23 = 0x84D7
+ TEXTURE24 = 0x84D8
+ TEXTURE25 = 0x84D9
+ TEXTURE26 = 0x84DA
+ TEXTURE27 = 0x84DB
+ TEXTURE28 = 0x84DC
+ TEXTURE29 = 0x84DD
+ TEXTURE30 = 0x84DE
+ TEXTURE31 = 0x84DF
+ ACTIVE_TEXTURE = 0x84E0
+ CLIENT_ACTIVE_TEXTURE = 0x84E1
+ MAX_TEXTURE_UNITS = 0x84E2
+ TRANSPOSE_MODELVIEW_MATRIX = 0x84E3
+ TRANSPOSE_PROJECTION_MATRIX = 0x84E4
+ TRANSPOSE_TEXTURE_MATRIX = 0x84E5
+ TRANSPOSE_COLOR_MATRIX = 0x84E6
+ SUBTRACT = 0x84E7
+ COMPRESSED_ALPHA = 0x84E9
+ COMPRESSED_LUMINANCE = 0x84EA
+ COMPRESSED_LUMINANCE_ALPHA = 0x84EB
+ COMPRESSED_INTENSITY = 0x84EC
+ COMPRESSED_RGB = 0x84ED
+ COMPRESSED_RGBA = 0x84EE
+ MAX_TEXTURE_LOD_BIAS = 0x84FD
+ TEXTURE_FILTER_CONTROL = 0x8500
+ TEXTURE_LOD_BIAS = 0x8501
+ INCR_WRAP = 0x8507
+ DECR_WRAP = 0x8508
+ NORMAL_MAP = 0x8511
+ REFLECTION_MAP = 0x8512
+ TEXTURE_CUBE_MAP = 0x8513
+ TEXTURE_BINDING_CUBE_MAP = 0x8514
+ TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515
+ TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516
+ TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
+ TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518
+ TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519
+ TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A
+ PROXY_TEXTURE_CUBE_MAP = 0x851B
+ MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C
+ COMBINE = 0x8570
+ COMBINE_RGB = 0x8571
+ COMBINE_ALPHA = 0x8572
+ RGB_SCALE = 0x8573
+ ADD_SIGNED = 0x8574
+ INTERPOLATE = 0x8575
+ CONSTANT = 0x8576
+ PRIMARY_COLOR = 0x8577
+ PREVIOUS = 0x8578
+ SOURCE0_RGB = 0x8580
+ SRC0_RGB = 0x8580
+ SOURCE1_RGB = 0x8581
+ SRC1_RGB = 0x8581
+ SOURCE2_RGB = 0x8582
+ SRC2_RGB = 0x8582
+ SOURCE0_ALPHA = 0x8588
+ SRC0_ALPHA = 0x8588
+ SOURCE1_ALPHA = 0x8589
+ SRC1_ALPHA = 0x8589
+ SOURCE2_ALPHA = 0x858A
+ SRC2_ALPHA = 0x858A
+ OPERAND0_RGB = 0x8590
+ OPERAND1_RGB = 0x8591
+ OPERAND2_RGB = 0x8592
+ OPERAND0_ALPHA = 0x8598
+ OPERAND1_ALPHA = 0x8599
+ OPERAND2_ALPHA = 0x859A
+ VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622
+ VERTEX_ATTRIB_ARRAY_SIZE = 0x8623
+ VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624
+ VERTEX_ATTRIB_ARRAY_TYPE = 0x8625
+ CURRENT_VERTEX_ATTRIB = 0x8626
+ VERTEX_PROGRAM_POINT_SIZE = 0x8642
+ VERTEX_PROGRAM_TWO_SIDE = 0x8643
+ VERTEX_ATTRIB_ARRAY_POINTER = 0x8645
+ TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0
+ TEXTURE_COMPRESSED = 0x86A1
+ NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2
+ COMPRESSED_TEXTURE_FORMATS = 0x86A3
+ DOT3_RGB = 0x86AE
+ DOT3_RGBA = 0x86AF
+ BUFFER_SIZE = 0x8764
+ BUFFER_USAGE = 0x8765
+ STENCIL_BACK_FUNC = 0x8800
+ STENCIL_BACK_FAIL = 0x8801
+ STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802
+ STENCIL_BACK_PASS_DEPTH_PASS = 0x8803
+ MAX_DRAW_BUFFERS = 0x8824
+ DRAW_BUFFER0 = 0x8825
+ DRAW_BUFFER1 = 0x8826
+ DRAW_BUFFER2 = 0x8827
+ DRAW_BUFFER3 = 0x8828
+ DRAW_BUFFER4 = 0x8829
+ DRAW_BUFFER5 = 0x882A
+ DRAW_BUFFER6 = 0x882B
+ DRAW_BUFFER7 = 0x882C
+ DRAW_BUFFER8 = 0x882D
+ DRAW_BUFFER9 = 0x882E
+ DRAW_BUFFER10 = 0x882F
+ DRAW_BUFFER11 = 0x8830
+ DRAW_BUFFER12 = 0x8831
+ DRAW_BUFFER13 = 0x8832
+ DRAW_BUFFER14 = 0x8833
+ DRAW_BUFFER15 = 0x8834
+ BLEND_EQUATION_ALPHA = 0x883D
+ TEXTURE_DEPTH_SIZE = 0x884A
+ DEPTH_TEXTURE_MODE = 0x884B
+ TEXTURE_COMPARE_MODE = 0x884C
+ TEXTURE_COMPARE_FUNC = 0x884D
+ COMPARE_R_TO_TEXTURE = 0x884E
+ POINT_SPRITE = 0x8861
+ COORD_REPLACE = 0x8862
+ QUERY_COUNTER_BITS = 0x8864
+ CURRENT_QUERY = 0x8865
+ QUERY_RESULT = 0x8866
+ QUERY_RESULT_AVAILABLE = 0x8867
+ MAX_VERTEX_ATTRIBS = 0x8869
+ VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A
+ MAX_TEXTURE_COORDS = 0x8871
+ MAX_TEXTURE_IMAGE_UNITS = 0x8872
+ ARRAY_BUFFER = 0x8892
+ ELEMENT_ARRAY_BUFFER = 0x8893
+ ARRAY_BUFFER_BINDING = 0x8894
+ ELEMENT_ARRAY_BUFFER_BINDING = 0x8895
+ VERTEX_ARRAY_BUFFER_BINDING = 0x8896
+ NORMAL_ARRAY_BUFFER_BINDING = 0x8897
+ COLOR_ARRAY_BUFFER_BINDING = 0x8898
+ INDEX_ARRAY_BUFFER_BINDING = 0x8899
+ TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A
+ EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B
+ SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C
+ FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D
+ FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D
+ WEIGHT_ARRAY_BUFFER_BINDING = 0x889E
+ VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F
+ READ_ONLY = 0x88B8
+ WRITE_ONLY = 0x88B9
+ READ_WRITE = 0x88BA
+ BUFFER_ACCESS = 0x88BB
+ BUFFER_MAPPED = 0x88BC
+ BUFFER_MAP_POINTER = 0x88BD
+ STREAM_DRAW = 0x88E0
+ STREAM_READ = 0x88E1
+ STREAM_COPY = 0x88E2
+ STATIC_DRAW = 0x88E4
+ STATIC_READ = 0x88E5
+ STATIC_COPY = 0x88E6
+ DYNAMIC_DRAW = 0x88E8
+ DYNAMIC_READ = 0x88E9
+ DYNAMIC_COPY = 0x88EA
+ SAMPLES_PASSED = 0x8914
+ FRAGMENT_SHADER = 0x8B30
+ VERTEX_SHADER = 0x8B31
+ MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49
+ MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A
+ MAX_VARYING_FLOATS = 0x8B4B
+ MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C
+ MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D
+ SHADER_TYPE = 0x8B4F
+ FLOAT_VEC2 = 0x8B50
+ FLOAT_VEC3 = 0x8B51
+ FLOAT_VEC4 = 0x8B52
+ INT_VEC2 = 0x8B53
+ INT_VEC3 = 0x8B54
+ INT_VEC4 = 0x8B55
+ BOOL = 0x8B56
+ BOOL_VEC2 = 0x8B57
+ BOOL_VEC3 = 0x8B58
+ BOOL_VEC4 = 0x8B59
+ FLOAT_MAT2 = 0x8B5A
+ FLOAT_MAT3 = 0x8B5B
+ FLOAT_MAT4 = 0x8B5C
+ SAMPLER_1D = 0x8B5D
+ SAMPLER_2D = 0x8B5E
+ SAMPLER_3D = 0x8B5F
+ SAMPLER_CUBE = 0x8B60
+ SAMPLER_1D_SHADOW = 0x8B61
+ SAMPLER_2D_SHADOW = 0x8B62
+ DELETE_STATUS = 0x8B80
+ COMPILE_STATUS = 0x8B81
+ LINK_STATUS = 0x8B82
+ VALIDATE_STATUS = 0x8B83
+ INFO_LOG_LENGTH = 0x8B84
+ ATTACHED_SHADERS = 0x8B85
+ ACTIVE_UNIFORMS = 0x8B86
+ ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87
+ SHADER_SOURCE_LENGTH = 0x8B88
+ ACTIVE_ATTRIBUTES = 0x8B89
+ ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A
+ SHADING_LANGUAGE_VERSION = 0x8B8C
+ CURRENT_PROGRAM = 0x8B8D
+ POINT_SPRITE_COORD_ORIGIN = 0x8CA0
+ LOWER_LEFT = 0x8CA1
+ UPPER_LEFT = 0x8CA2
+ STENCIL_BACK_REF = 0x8CA3
+ STENCIL_BACK_VALUE_MASK = 0x8CA4
+ STENCIL_BACK_WRITEMASK = 0x8CA5
+)
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glViewport.xml
+func (gl *GL) Viewport(x, y, width, height int) {
+ C.gl2_0_glViewport(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// DepthRange specifies the mapping of depth values from normalized device
+// coordinates to window coordinates.
+//
+// Parameter nearVal specifies the mapping of the near clipping plane to window
+// coordinates (defaults to 0), while farVal specifies the mapping of the far
+// clipping plane to window coordinates (defaults to 1).
+//
+// After clipping and division by w, depth coordinates range from -1 to 1,
+// corresponding to the near and far clipping planes. DepthRange specifies a
+// linear mapping of the normalized depth coordinates in this range to window
+// depth coordinates. Regardless of the actual depth buffer implementation,
+// window coordinate depth values are treated as though they range from 0 through 1
+// (like color components). Thus, the values accepted by DepthRange are both
+// clamped to this range before they are accepted.
+//
+// The default setting of (0, 1) maps the near plane to 0 and the far plane to 1.
+// With this mapping, the depth buffer range is fully utilized.
+//
+// It is not necessary that nearVal be less than farVal. Reverse mappings such as
+// nearVal 1, and farVal 0 are acceptable.
+//
+// GL.INVALID_OPERATION is generated if DepthRange is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) DepthRange(nearVal, farVal float64) {
+ C.gl2_0_glDepthRange(gl.funcs, C.GLdouble(nearVal), C.GLdouble(farVal))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsEnabled.xml
+func (gl *GL) IsEnabled(cap glbase.Enum) bool {
+ glresult := C.gl2_0_glIsEnabled(gl.funcs, C.GLenum(cap))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameteriv.xml
+func (gl *GL) GetTexLevelParameteriv(target glbase.Enum, level int, pname glbase.Enum, params []int32) {
+ C.gl2_0_glGetTexLevelParameteriv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameterfv.xml
+func (gl *GL) GetTexLevelParameterfv(target glbase.Enum, level int, pname glbase.Enum, params []float32) {
+ C.gl2_0_glGetTexLevelParameterfv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameteriv.xml
+func (gl *GL) GetTexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_0_glGetTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameterfv.xml
+func (gl *GL) GetTexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_0_glGetTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexImage.xml
+func (gl *GL) GetTexImage(target glbase.Enum, level int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glGetTexImage(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetIntegerv.xml
+func (gl *GL) GetIntegerv(pname glbase.Enum, params []int32) {
+ C.gl2_0_glGetIntegerv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetFloatv.xml
+func (gl *GL) GetFloatv(pname glbase.Enum, params []float32) {
+ C.gl2_0_glGetFloatv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetError.xml
+func (gl *GL) GetError() glbase.Enum {
+ glresult := C.gl2_0_glGetError(gl.funcs)
+ return glbase.Enum(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetDoublev.xml
+func (gl *GL) GetDoublev(pname glbase.Enum, params []float64) {
+ C.gl2_0_glGetDoublev(gl.funcs, C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetBooleanv.xml
+func (gl *GL) GetBooleanv(pname glbase.Enum, params []bool) {
+ C.gl2_0_glGetBooleanv(gl.funcs, C.GLenum(pname), (*C.GLboolean)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadPixels.xml
+func (gl *GL) ReadPixels(x, y, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glReadPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadBuffer.xml
+func (gl *GL) ReadBuffer(mode glbase.Enum) {
+ C.gl2_0_glReadBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStorei.xml
+func (gl *GL) PixelStorei(pname glbase.Enum, param int32) {
+ C.gl2_0_glPixelStorei(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStoref.xml
+func (gl *GL) PixelStoref(pname glbase.Enum, param float32) {
+ C.gl2_0_glPixelStoref(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthFunc.xml
+func (gl *GL) DepthFunc(glfunc glbase.Enum) {
+ C.gl2_0_glDepthFunc(gl.funcs, C.GLenum(glfunc))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilOp.xml
+func (gl *GL) StencilOp(fail, zfail, zpass glbase.Enum) {
+ C.gl2_0_glStencilOp(gl.funcs, C.GLenum(fail), C.GLenum(zfail), C.GLenum(zpass))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilFunc.xml
+func (gl *GL) StencilFunc(glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl2_0_glStencilFunc(gl.funcs, C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLogicOp.xml
+func (gl *GL) LogicOp(opcode glbase.Enum) {
+ C.gl2_0_glLogicOp(gl.funcs, C.GLenum(opcode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendFunc.xml
+func (gl *GL) BlendFunc(sfactor, dfactor glbase.Enum) {
+ C.gl2_0_glBlendFunc(gl.funcs, C.GLenum(sfactor), C.GLenum(dfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFlush.xml
+func (gl *GL) Flush() {
+ C.gl2_0_glFlush(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFinish.xml
+func (gl *GL) Finish() {
+ C.gl2_0_glFinish(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnable.xml
+func (gl *GL) Enable(cap glbase.Enum) {
+ C.gl2_0_glEnable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisable.xml
+func (gl *GL) Disable(cap glbase.Enum) {
+ C.gl2_0_glDisable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthMask.xml
+func (gl *GL) DepthMask(flag bool) {
+ C.gl2_0_glDepthMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMask.xml
+func (gl *GL) ColorMask(red, green, blue, alpha bool) {
+ C.gl2_0_glColorMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&red)), *(*C.GLboolean)(unsafe.Pointer(&green)), *(*C.GLboolean)(unsafe.Pointer(&blue)), *(*C.GLboolean)(unsafe.Pointer(&alpha)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilMask.xml
+func (gl *GL) StencilMask(mask uint32) {
+ C.gl2_0_glStencilMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearDepth.xml
+func (gl *GL) ClearDepth(depth float64) {
+ C.gl2_0_glClearDepth(gl.funcs, C.GLdouble(depth))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearStencil.xml
+func (gl *GL) ClearStencil(s int32) {
+ C.gl2_0_glClearStencil(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearColor.xml
+func (gl *GL) ClearColor(red, green, blue, alpha float32) {
+ C.gl2_0_glClearColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClear.xml
+func (gl *GL) Clear(mask glbase.Bitfield) {
+ C.gl2_0_glClear(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawBuffer.xml
+func (gl *GL) DrawBuffer(mode glbase.Enum) {
+ C.gl2_0_glDrawBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml
+func (gl *GL) TexImage2D(target glbase.Enum, level int, internalFormat int32, width, height, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage1D.xml
+func (gl *GL) TexImage1D(target glbase.Enum, level int, internalFormat int32, width, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteriv.xml
+func (gl *GL) TexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_0_glTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteri.xml
+func (gl *GL) TexParameteri(target, pname glbase.Enum, param int32) {
+ C.gl2_0_glTexParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterfv.xml
+func (gl *GL) TexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_0_glTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterf.xml
+func (gl *GL) TexParameterf(target, pname glbase.Enum, param float32) {
+ C.gl2_0_glTexParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScissor.xml
+func (gl *GL) Scissor(x, y, width, height int) {
+ C.gl2_0_glScissor(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonMode.xml
+func (gl *GL) PolygonMode(face, mode glbase.Enum) {
+ C.gl2_0_glPolygonMode(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointSize.xml
+func (gl *GL) PointSize(size float32) {
+ C.gl2_0_glPointSize(gl.funcs, C.GLfloat(size))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineWidth.xml
+func (gl *GL) LineWidth(width float32) {
+ C.gl2_0_glLineWidth(gl.funcs, C.GLfloat(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glHint.xml
+func (gl *GL) Hint(target, mode glbase.Enum) {
+ C.gl2_0_glHint(gl.funcs, C.GLenum(target), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrontFace.xml
+func (gl *GL) FrontFace(mode glbase.Enum) {
+ C.gl2_0_glFrontFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCullFace.xml
+func (gl *GL) CullFace(mode glbase.Enum) {
+ C.gl2_0_glCullFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexubv.xml
+func (gl *GL) Indexubv(c []uint8) {
+ C.gl2_0_glIndexubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexub.xml
+func (gl *GL) Indexub(c uint8) {
+ C.gl2_0_glIndexub(gl.funcs, C.GLubyte(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsTexture.xml
+func (gl *GL) IsTexture(texture glbase.Texture) bool {
+ glresult := C.gl2_0_glIsTexture(gl.funcs, C.GLuint(texture))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenTextures returns n texture names in textures. There is no guarantee
+// that the names form a contiguous set of integers; however, it is
+// guaranteed that none of the returned names was in use immediately before
+// the call to GenTextures.
+//
+// The generated textures have no dimensionality; they assume the
+// dimensionality of the texture target to which they are first bound (see
+// BindTexture).
+//
+// Texture names returned by a call to GenTextures are not returned by
+// subsequent calls, unless they are first deleted with DeleteTextures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// GenTextures is available in GL version 2.0 or greater.
+func (gl *GL) GenTextures(n int) []glbase.Texture {
+ if n == 0 {
+ return nil
+ }
+ textures := make([]glbase.Texture, n)
+ C.gl2_0_glGenTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+ return textures
+}
+
+// DeleteTextures deletes the textures objects whose names are stored
+// in the textures slice. After a texture is deleted, it has no contents or
+// dimensionality, and its name is free for reuse (for example by
+// GenTextures). If a texture that is currently bound is deleted, the binding
+// reverts to 0 (the default texture).
+//
+// DeleteTextures silently ignores 0's and names that do not correspond to
+// existing textures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// DeleteTextures is available in GL version 2.0 or greater.
+func (gl *GL) DeleteTextures(textures []glbase.Texture) {
+ n := len(textures)
+ if n == 0 {
+ return
+ }
+ C.gl2_0_glDeleteTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBindTexture.xml
+func (gl *GL) BindTexture(target glbase.Enum, texture glbase.Texture) {
+ C.gl2_0_glBindTexture(gl.funcs, C.GLenum(target), C.GLuint(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage2D.xml
+func (gl *GL) TexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage1D.xml
+func (gl *GL) TexSubImage1D(target glbase.Enum, level, xoffset, width int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage2D.xml
+func (gl *GL) CopyTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, x, y, width, height int) {
+ C.gl2_0_glCopyTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage1D.xml
+func (gl *GL) CopyTexSubImage1D(target glbase.Enum, level, xoffset, x, y, width int) {
+ C.gl2_0_glCopyTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage2D.xml
+func (gl *GL) CopyTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, height, border int) {
+ C.gl2_0_glCopyTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage1D.xml
+func (gl *GL) CopyTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, border int) {
+ C.gl2_0_glCopyTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonOffset.xml
+func (gl *GL) PolygonOffset(factor, units float32) {
+ C.gl2_0_glPolygonOffset(gl.funcs, C.GLfloat(factor), C.GLfloat(units))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawElements.xml
+func (gl *GL) DrawElements(mode glbase.Enum, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glDrawElements(gl.funcs, C.GLenum(mode), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawArrays.xml
+func (gl *GL) DrawArrays(mode glbase.Enum, first, count int) {
+ C.gl2_0_glDrawArrays(gl.funcs, C.GLenum(mode), C.GLint(first), C.GLsizei(count))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage3D.xml
+func (gl *GL) CopyTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, x, y, width, height int) {
+ C.gl2_0_glCopyTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage3D.xml
+func (gl *GL) TexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage3D.xml
+func (gl *GL) TexImage3D(target glbase.Enum, level int, internalFormat int32, width, height int, depth int32, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawRangeElements.xml
+func (gl *GL) DrawRangeElements(mode glbase.Enum, start, end uint32, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glDrawRangeElements(gl.funcs, C.GLenum(mode), C.GLuint(start), C.GLuint(end), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendEquation.xml
+func (gl *GL) BlendEquation(mode glbase.Enum) {
+ C.gl2_0_glBlendEquation(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendColor.xml
+func (gl *GL) BlendColor(red, green, blue, alpha float32) {
+ C.gl2_0_glBlendColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetCompressedTexImage.xml
+func (gl *GL) GetCompressedTexImage(target glbase.Enum, level int, img interface{}) {
+ var img_ptr unsafe.Pointer
+ var img_v = reflect.ValueOf(img)
+ if img != nil && img_v.Kind() != reflect.Slice {
+ panic("parameter img must be a slice")
+ }
+ if img != nil {
+ img_ptr = unsafe.Pointer(img_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glGetCompressedTexImage(gl.funcs, C.GLenum(target), C.GLint(level), img_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage1D.xml
+func (gl *GL) CompressedTexSubImage1D(target glbase.Enum, level, xoffset, width int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glCompressedTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage2D.xml
+func (gl *GL) CompressedTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glCompressedTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage3D.xml
+func (gl *GL) CompressedTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glCompressedTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage1D.xml
+func (gl *GL) CompressedTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, width, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glCompressedTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage2D.xml
+func (gl *GL) CompressedTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glCompressedTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage3D.xml
+func (gl *GL) CompressedTexImage3D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height int, depth int32, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glCompressedTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSampleCoverage.xml
+func (gl *GL) SampleCoverage(value float32, invert bool) {
+ C.gl2_0_glSampleCoverage(gl.funcs, C.GLfloat(value), *(*C.GLboolean)(unsafe.Pointer(&invert)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glActiveTexture.xml
+func (gl *GL) ActiveTexture(texture glbase.Enum) {
+ C.gl2_0_glActiveTexture(gl.funcs, C.GLenum(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameteriv.xml
+func (gl *GL) PointParameteriv(pname glbase.Enum, params []int32) {
+ C.gl2_0_glPointParameteriv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameteri.xml
+func (gl *GL) PointParameteri(pname glbase.Enum, param int32) {
+ C.gl2_0_glPointParameteri(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameterfv.xml
+func (gl *GL) PointParameterfv(pname glbase.Enum, params []float32) {
+ C.gl2_0_glPointParameterfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameterf.xml
+func (gl *GL) PointParameterf(pname glbase.Enum, param float32) {
+ C.gl2_0_glPointParameterf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiDrawArrays.xml
+func (gl *GL) MultiDrawArrays(mode glbase.Enum, first, count []int, drawcount int32) {
+ C.gl2_0_glMultiDrawArrays(gl.funcs, C.GLenum(mode), (*C.GLint)(unsafe.Pointer(&first[0])), (*C.GLsizei)(unsafe.Pointer(&count[0])), C.GLsizei(drawcount))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendFuncSeparate.xml
+func (gl *GL) BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha glbase.Enum) {
+ C.gl2_0_glBlendFuncSeparate(gl.funcs, C.GLenum(sfactorRGB), C.GLenum(dfactorRGB), C.GLenum(sfactorAlpha), C.GLenum(dfactorAlpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetBufferParameteriv.xml
+func (gl *GL) GetBufferParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_0_glGetBufferParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glUnmapBuffer.xml
+func (gl *GL) UnmapBuffer(target glbase.Enum) bool {
+ glresult := C.gl2_0_glUnmapBuffer(gl.funcs, C.GLenum(target))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetBufferSubData.xml
+func (gl *GL) GetBufferSubData(target glbase.Enum, offset, size int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glGetBufferSubData(gl.funcs, C.GLenum(target), C.GLintptr(offset), C.GLsizeiptr(size), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBufferSubData.xml
+func (gl *GL) BufferSubData(target glbase.Enum, offset, size int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glBufferSubData(gl.funcs, C.GLenum(target), C.GLintptr(offset), C.GLsizeiptr(size), data_ptr)
+}
+
+// BufferData creates a new data store for the buffer object currently
+// bound to target. Any pre-existing data store is deleted. The new data
+// store is created with the specified size in bytes and usage. If data is
+// not nil, it must be a slice that is used to initialize the data store.
+// In that case the size parameter is ignored and the store size will match
+// the slice data size.
+//
+// In its initial state, the new data store is not mapped, it has a NULL
+// mapped pointer, and its mapped access is GL.READ_WRITE.
+//
+// The target constant must be one of GL.ARRAY_BUFFER, GL.COPY_READ_BUFFER,
+// GL.COPY_WRITE_BUFFER, GL.ELEMENT_ARRAY_BUFFER, GL.PIXEL_PACK_BUFFER,
+// GL.PIXEL_UNPACK_BUFFER, GL.TEXTURE_BUFFER, GL.TRANSFORM_FEEDBACK_BUFFER,
+// or GL.UNIFORM_BUFFER.
+//
+// The usage parameter is a hint to the GL implementation as to how a buffer
+// object's data store will be accessed. This enables the GL implementation
+// to make more intelligent decisions that may significantly impact buffer
+// object performance. It does not, however, constrain the actual usage of
+// the data store. usage can be broken down into two parts: first, the
+// frequency of access (modification and usage), and second, the nature of
+// that access.
+//
+// A usage frequency of STREAM and nature of DRAW is specified via the
+// constant GL.STREAM_DRAW, for example.
+//
+// The usage frequency of access may be one of:
+//
+// STREAM
+// The data store contents will be modified once and used at most a few times.
+//
+// STATIC
+// The data store contents will be modified once and used many times.
+//
+// DYNAMIC
+// The data store contents will be modified repeatedly and used many times.
+//
+// The usage nature of access may be one of:
+//
+// DRAW
+// The data store contents are modified by the application, and used as
+// the source for GL drawing and image specification commands.
+//
+// READ
+// The data store contents are modified by reading data from the GL,
+// and used to return that data when queried by the application.
+//
+// COPY
+// The data store contents are modified by reading data from the GL,
+// and used as the source for GL drawing and image specification
+// commands.
+//
+// Clients must align data elements consistent with the requirements of the
+// client platform, with an additional base-level requirement that an offset
+// within a buffer to a datum comprising N bytes be a multiple of N.
+//
+// Error GL.INVALID_ENUM is generated if target is not one of the accepted
+// buffer targets. GL.INVALID_ENUM is generated if usage is not
+// GL.STREAM_DRAW, GL.STREAM_READ, GL.STREAM_COPY, GL.STATIC_DRAW,
+// GL.STATIC_READ, GL.STATIC_COPY, GL.DYNAMIC_DRAW, GL.DYNAMIC_READ, or
+// GL.DYNAMIC_COPY. GL.INVALID_VALUE is generated if size is negative.
+// GL.INVALID_OPERATION is generated if the reserved buffer object name 0 is
+// bound to target. GL.OUT_OF_MEMORY is generated if the GL is unable to
+// create a data store with the specified size.
+func (gl *GL) BufferData(target glbase.Enum, size int, data interface{}, usage glbase.Enum) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ if data != nil {
+ size = int(data_v.Type().Size()) * data_v.Len()
+ }
+ C.gl2_0_glBufferData(gl.funcs, C.GLenum(target), C.GLsizeiptr(size), data_ptr, C.GLenum(usage))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsBuffer.xml
+func (gl *GL) IsBuffer(buffer glbase.Buffer) bool {
+ glresult := C.gl2_0_glIsBuffer(gl.funcs, C.GLuint(buffer))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenBuffers returns n buffer object names. There is no guarantee that
+// the names form a contiguous set of integers; however, it is guaranteed
+// that none of the returned names was in use immediately before the call to
+// GenBuffers.
+//
+// Buffer object names returned by a call to GenBuffers are not returned by
+// subsequent calls, unless they are first deleted with DeleteBuffers.
+//
+// No buffer objects are associated with the returned buffer object names
+// until they are first bound by calling BindBuffer.
+//
+// Error GL.INVALID_VALUE is generated if n is negative. GL.INVALID_OPERATION
+// is generated if GenBuffers is executed between the execution of Begin
+// and the corresponding execution of End.
+//
+// GenBuffers is available in GL version 1.5 or greater.
+func (gl *GL) GenBuffers(n int) []glbase.Buffer {
+ if n == 0 {
+ return nil
+ }
+ buffers := make([]glbase.Buffer, n)
+ C.gl2_0_glGenBuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&buffers[0])))
+ return buffers
+}
+
+// DeleteBuffers deletes the buffer objects whose names are stored in the
+// buffers slice.
+//
+// After a buffer object is deleted, it has no contents, and its name is free
+// for reuse (for example by GenBuffers). If a buffer object that is
+// currently bound is deleted, the binding reverts to 0 (the absence of any
+// buffer object, which reverts to client memory usage).
+//
+// DeleteBuffers silently ignores 0's and names that do not correspond to
+// existing buffer objects.
+//
+// Error GL.INVALID_VALUE is generated if n is negative. GL.INVALID_OPERATION
+// is generated if DeleteBuffers is executed between the execution of Begin
+// and the corresponding execution of End.
+//
+// DeleteBuffers is available in GL version 1.5 or greater.
+func (gl *GL) DeleteBuffers(buffers []glbase.Buffer) {
+ n := len(buffers)
+ if n == 0 {
+ return
+ }
+ C.gl2_0_glDeleteBuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&buffers[0])))
+}
+
+// BindBuffer creates or puts in use a named buffer object.
+// Calling BindBuffer with target set to GL.ARRAY_BUFFER,
+// GL.ELEMENT_ARRAY_BUFFER, GL.PIXEL_PACK_BUFFER or GL.PIXEL_UNPACK_BUFFER
+// and buffer set to the name of the new buffer object binds the buffer
+// object name to the target. When a buffer object is bound to a target, the
+// previous binding for that target is automatically broken.
+//
+// Buffer object names are unsigned integers. The value zero is reserved, but
+// there is no default buffer object for each buffer object target. Instead,
+// buffer set to zero effectively unbinds any buffer object previously bound,
+// and restores client memory usage for that buffer object target. Buffer
+// object names and the corresponding buffer object contents are local to the
+// shared display-list space (see XCreateContext) of the current GL rendering
+// context; two rendering contexts share buffer object names only if they
+// also share display lists.
+//
+// GenBuffers may be called to generate a set of new buffer object names.
+//
+// The state of a buffer object immediately after it is first bound is an
+// unmapped zero-sized memory buffer with GL.READ_WRITE access and
+// GL.STATIC_DRAW usage.
+//
+// While a non-zero buffer object name is bound, GL operations on the target
+// to which it is bound affect the bound buffer object, and queries of the
+// target to which it is bound return state from the bound buffer object.
+// While buffer object name zero is bound, as in the initial state, attempts
+// to modify or query state on the target to which it is bound generates an
+// GL.INVALID_OPERATION error.
+//
+// When vertex array pointer state is changed, for example by a call to
+// NormalPointer, the current buffer object binding (GL.ARRAY_BUFFER_BINDING)
+// is copied into the corresponding client state for the vertex array type
+// being changed, for example GL.NORMAL_ARRAY_BUFFER_BINDING. While a
+// non-zero buffer object is bound to the GL.ARRAY_BUFFER target, the vertex
+// array pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory is instead interpreted as an offset within the buffer
+// object measured in basic machine units.
+//
+// While a non-zero buffer object is bound to the GL.ELEMENT_ARRAY_BUFFER
+// target, the indices parameter of DrawElements, DrawRangeElements, or
+// MultiDrawElements that is traditionally interpreted as a pointer to
+// client-side memory is instead interpreted as an offset within the buffer
+// object measured in basic machine units.
+//
+// While a non-zero buffer object is bound to the GL.PIXEL_PACK_BUFFER
+// target, the following commands are affected: GetCompressedTexImage,
+// GetConvolutionFilter, GetHistogram, GetMinmax, GetPixelMap,
+// GetPolygonStipple, GetSeparableFilter, GetTexImage, and ReadPixels. The
+// pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory where the pixels are to be packed is instead
+// interpreted as an offset within the buffer object measured in basic
+// machine units.
+//
+// While a non-zero buffer object is bound to the GL.PIXEL_UNPACK_BUFFER
+// target, the following commands are affected: Bitmap, ColorSubTable,
+// ColorTable, CompressedTexImage1D, CompressedTexImage2D,
+// CompressedTexImage3D, CompressedTexSubImage1D, CompressedTexSubImage2D,
+// CompressedTexSubImage3D, ConvolutionFilter1D, ConvolutionFilter2D,
+// DrawPixels, PixelMap, PolygonStipple, SeparableFilter2D, TexImage1D,
+// TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, and TexSubImage3D.
+// The pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory from which the pixels are to be unpacked is instead
+// interpreted as an offset within the buffer object measured in basic
+// machine units.
+//
+// A buffer object binding created with BindBuffer remains active until a
+// different buffer object name is bound to the same target, or until the
+// bound buffer object is deleted with DeleteBuffers.
+//
+// Once created, a named buffer object may be re-bound to any target as often
+// as needed. However, the GL implementation may make choices about how to
+// optimize the storage of a buffer object based on its initial binding
+// target.
+//
+// Error GL.INVALID_ENUM is generated if target is not one of the allowable
+// values. GL.INVALID_OPERATION is generated if BindBuffer is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// BindBuffer is available in GL version 1.5 or greater.
+func (gl *GL) BindBuffer(target glbase.Enum, buffer glbase.Buffer) {
+ C.gl2_0_glBindBuffer(gl.funcs, C.GLenum(target), C.GLuint(buffer))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetQueryObjectuiv.xml
+func (gl *GL) GetQueryObjectuiv(id uint32, pname glbase.Enum, params []uint32) {
+ C.gl2_0_glGetQueryObjectuiv(gl.funcs, C.GLuint(id), C.GLenum(pname), (*C.GLuint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetQueryObjectiv.xml
+func (gl *GL) GetQueryObjectiv(id uint32, pname glbase.Enum, params []int32) {
+ C.gl2_0_glGetQueryObjectiv(gl.funcs, C.GLuint(id), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetQueryiv.xml
+func (gl *GL) GetQueryiv(target, pname glbase.Enum, params []int32) {
+ C.gl2_0_glGetQueryiv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEndQuery.xml
+func (gl *GL) EndQuery(target glbase.Enum) {
+ C.gl2_0_glEndQuery(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBeginQuery.xml
+func (gl *GL) BeginQuery(target glbase.Enum, id uint32) {
+ C.gl2_0_glBeginQuery(gl.funcs, C.GLenum(target), C.GLuint(id))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsQuery.xml
+func (gl *GL) IsQuery(id uint32) bool {
+ glresult := C.gl2_0_glIsQuery(gl.funcs, C.GLuint(id))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDeleteQueries.xml
+func (gl *GL) DeleteQueries(n int, ids []uint32) {
+ C.gl2_0_glDeleteQueries(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&ids[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGenQueries.xml
+func (gl *GL) GenQueries(n int, ids []uint32) {
+ C.gl2_0_glGenQueries(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&ids[0])))
+}
+
+// VertexAttribPointer specifies the location and data format of the array
+// of generic vertex attributes at index to use when rendering. size
+// specifies the number of components per attribute and must be 1, 2, 3, or
+// 4. type specifies the data type of each component, and stride specifies
+// the byte stride from one attribute to the next, allowing vertices and
+// attributes to be packed into a single array or stored in separate arrays.
+// normalized indicates whether the values stored in an integer format are
+// to be mapped to the range [-1,1] (for signed values) or [0,1]
+// (for unsigned values) when they are accessed and converted to floating
+// point; otherwise, values will be converted to floats directly without
+// normalization. offset is a byte offset into the buffer object's data
+// store, which must be bound to the GL.ARRAY_BUFFER target with BindBuffer.
+//
+// The buffer object binding (GL.ARRAY_BUFFER_BINDING) is saved as
+// generic vertex attribute array client-side state
+// (GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING) for the provided index.
+//
+// To enable and disable a generic vertex attribute array, call
+// EnableVertexAttribArray and DisableVertexAttribArray with index. If
+// enabled, the generic vertex attribute array is used when DrawArrays or
+// DrawElements is called. Each generic vertex attribute array is initially
+// disabled.
+//
+// VertexAttribPointer is typically implemented on the client side.
+//
+// Error GL.INVALID_ENUM is generated if type is not an accepted value.
+// GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_VALUE is generated if size is not 1, 2,
+// 3, or 4. GL.INVALID_VALUE is generated if stride is negative.
+func (gl *GL) VertexAttribPointer(index glbase.Attrib, size int, gltype glbase.Enum, normalized bool, stride int, offset uintptr) {
+ offset_ptr := unsafe.Pointer(offset)
+ C.gl2_0_glVertexAttribPointer(gl.funcs, C.GLuint(index), C.GLint(size), C.GLenum(gltype), *(*C.GLboolean)(unsafe.Pointer(&normalized)), C.GLsizei(stride), offset_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glValidateProgram.xml
+func (gl *GL) ValidateProgram(program glbase.Program) {
+ C.gl2_0_glValidateProgram(gl.funcs, C.GLuint(program))
+}
+
+// UniformMatrix4fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix4fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix4fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(4*4) != 0 {
+ panic("invalid value length for UniformMatrix4fv")
+ }
+ count := len(value) / (4 * 4)
+ C.gl2_0_glUniformMatrix4fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix3fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix3fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix3fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(3*3) != 0 {
+ panic("invalid value length for UniformMatrix3fv")
+ }
+ count := len(value) / (3 * 3)
+ C.gl2_0_glUniformMatrix3fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix2fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix2fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix2fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(2*2) != 0 {
+ panic("invalid value length for UniformMatrix2fv")
+ }
+ count := len(value) / (2 * 2)
+ C.gl2_0_glUniformMatrix2fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform4iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform4iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%4 != 0 {
+ panic("invalid value length for Uniform4iv")
+ }
+ count := len(value) / 4
+ C.gl2_0_glUniform4iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform3iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform3iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%3 != 0 {
+ panic("invalid value length for Uniform3iv")
+ }
+ count := len(value) / 3
+ C.gl2_0_glUniform3iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform2iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform2iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%2 != 0 {
+ panic("invalid value length for Uniform2iv")
+ }
+ count := len(value) / 2
+ C.gl2_0_glUniform2iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform1iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform1iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ count := len(value)
+ C.gl2_0_glUniform1iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform4fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform4fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%4 != 0 {
+ panic("invalid value length for Uniform4fv")
+ }
+ count := len(value) / 4
+ C.gl2_0_glUniform4fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform3fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform3fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%3 != 0 {
+ panic("invalid value length for Uniform3fv")
+ }
+ count := len(value) / 3
+ C.gl2_0_glUniform3fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform2fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform2fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%2 != 0 {
+ panic("invalid value length for Uniform2fv")
+ }
+ count := len(value) / 2
+ C.gl2_0_glUniform2fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform1fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform1fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ count := len(value)
+ C.gl2_0_glUniform1fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform4i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform4i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4i(location glbase.Uniform, v0, v1, v2, v3 int32) {
+ C.gl2_0_glUniform4i(gl.funcs, C.GLint(location), C.GLint(v0), C.GLint(v1), C.GLint(v2), C.GLint(v3))
+}
+
+// Uniform3i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform3i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3i(location glbase.Uniform, v0, v1, v2 int32) {
+ C.gl2_0_glUniform3i(gl.funcs, C.GLint(location), C.GLint(v0), C.GLint(v1), C.GLint(v2))
+}
+
+// Uniform2i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform2i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2i(location glbase.Uniform, v0, v1 int32) {
+ C.gl2_0_glUniform2i(gl.funcs, C.GLint(location), C.GLint(v0), C.GLint(v1))
+}
+
+// Uniform1i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform1i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1i(location glbase.Uniform, v0 int32) {
+ C.gl2_0_glUniform1i(gl.funcs, C.GLint(location), C.GLint(v0))
+}
+
+// Uniform4f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform4f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4f(location glbase.Uniform, v0, v1, v2, v3 float32) {
+ C.gl2_0_glUniform4f(gl.funcs, C.GLint(location), C.GLfloat(v0), C.GLfloat(v1), C.GLfloat(v2), C.GLfloat(v3))
+}
+
+// Uniform3f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform3f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3f(location glbase.Uniform, v0, v1, v2 float32) {
+ C.gl2_0_glUniform3f(gl.funcs, C.GLint(location), C.GLfloat(v0), C.GLfloat(v1), C.GLfloat(v2))
+}
+
+// Uniform2f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform2f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2f(location glbase.Uniform, v0, v1 float32) {
+ C.gl2_0_glUniform2f(gl.funcs, C.GLint(location), C.GLfloat(v0), C.GLfloat(v1))
+}
+
+// Uniform1f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform1f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1f(location glbase.Uniform, v0 float32) {
+ C.gl2_0_glUniform1f(gl.funcs, C.GLint(location), C.GLfloat(v0))
+}
+
+// UseProgram installs the program object specified by program as part of
+// current rendering state. One or more executables are created in a program
+// object by successfully attaching shader objects to it with AttachShader,
+// successfully compiling the shader objects with CompileShader, and
+// successfully linking the program object with LinkProgram.
+//
+// A program object will contain an executable that will run on the vertex
+// processor if it contains one or more shader objects of type
+// GL.VERTEX_SHADER that have been successfully compiled and linked.
+// Similarly, a program object will contain an executable that will run on
+// the fragment processor if it contains one or more shader objects of type
+// GL.FRAGMENT_SHADER that have been successfully compiled and linked.
+//
+// Successfully installing an executable on a programmable processor will
+// cause the corresponding fixed functionality of OpenGL to be disabled.
+// Specifically, if an executable is installed on the vertex processor, the
+// OpenGL fixed functionality will be disabled as follows.
+//
+// - The modelview matrix is not applied to vertex coordinates.
+//
+// - The projection matrix is not applied to vertex coordinates.
+//
+// - The texture matrices are not applied to texture coordinates.
+//
+// - Normals are not transformed to eye coordinates.
+//
+// - Normals are not rescaled or normalized.
+//
+// - Normalization of GL.AUTO_NORMAL evaluated normals is not performed.
+//
+// - Texture coordinates are not generated automatically.
+//
+// - Per-vertex lighting is not performed.
+//
+// - Color material computations are not performed.
+//
+// - Color index lighting is not performed.
+//
+// - This list also applies when setting the current raster position.
+//
+// The executable that is installed on the vertex processor is expected to
+// implement any or all of the desired functionality from the preceding list.
+// Similarly, if an executable is installed on the fragment processor, the
+// OpenGL fixed functionality will be disabled as follows.
+//
+// - Texture environment and texture functions are not applied.
+//
+// - Texture application is not applied.
+//
+// - Color sum is not applied.
+//
+// - Fog is not applied.
+//
+// Again, the fragment shader that is installed is expected to implement any
+// or all of the desired functionality from the preceding list.
+//
+// While a program object is in use, applications are free to modify attached
+// shader objects, compile attached shader objects, attach additional shader
+// objects, and detach or delete shader objects. None of these operations
+// will affect the executables that are part of the current state. However,
+// relinking the program object that is currently in use will install the
+// program object as part of the current rendering state if the link
+// operation was successful (see LinkProgram). If the program object
+// currently in use is relinked unsuccessfully, its link status will be set
+// to GL.FALSE, but the executables and associated state will remain part of
+// the current state until a subsequent call to UseProgram removes it from
+// use. After it is removed from use, it cannot be made part of current state
+// until it has been successfully relinked.
+//
+// If program contains shader objects of type GL.VERTEX_SHADER but it does
+// not contain shader objects of type GL.FRAGMENT_SHADER, an executable will
+// be installed on the vertex processor, but fixed functionality will be used
+// for fragment processing. Similarly, if program contains shader objects of
+// type GL.FRAGMENT_SHADER but it does not contain shader objects of type
+// GL.VERTEX_SHADER, an executable will be installed on the fragment
+// processor, but fixed functionality will be used for vertex processing. If
+// program is 0, the programmable processors will be disabled, and fixed
+// functionality will be used for both vertex and fragment processing.
+//
+// While a program object is in use, the state that controls the disabled
+// fixed functionality may also be updated using the normal OpenGL calls.
+//
+// Like display lists and texture objects, the name space for program objects
+// may be shared across a set of contexts, as long as the server sides of the
+// contexts share the same address space. If the name space is shared across
+// contexts, any attached objects and the data associated with those attached
+// objects are shared as well.
+//
+// Applications are responsible for providing the synchronization across API
+// calls when objects are accessed from different execution threads.
+//
+// Error GL.INVALID_VALUE is generated if program is neither 0 nor a value
+// generated by OpenGL. GL.INVALID_OPERATION is generated if program is not
+// a program object. GL.INVALID_OPERATION is generated if program could not
+// be made part of current state. GL.INVALID_OPERATION is generated if
+// UseProgram is executed between the execution of Begin and the
+// corresponding execution of End.
+//
+// UseProgram is available in GL version 2.0 or greater.
+func (gl *GL) UseProgram(program glbase.Program) {
+ C.gl2_0_glUseProgram(gl.funcs, C.GLuint(program))
+}
+
+// ShaderSource sets the source code in shader to the provided source code. Any source
+// code previously stored in the shader object is completely replaced.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader
+// object. GL.INVALID_VALUE is generated if count is less than 0.
+// GL.INVALID_OPERATION is generated if ShaderSource is executed between the
+// execution of Begin and the corresponding execution of End.
+//
+// ShaderSource is available in GL version 2.0 or greater.
+func (gl *GL) ShaderSource(shader glbase.Shader, source ...string) {
+ count := len(source)
+ length := make([]int32, count)
+ source_c := make([]unsafe.Pointer, count)
+ for i, src := range source {
+ length[i] = int32(len(src))
+ if len(src) > 0 {
+ source_c[i] = *(*unsafe.Pointer)(unsafe.Pointer(&src))
+ } else {
+ source_c[i] = unsafe.Pointer(uintptr(0))
+ }
+ }
+ C.gl2_0_glShaderSource(gl.funcs, C.GLuint(shader), C.GLsizei(count), (**C.GLchar)(unsafe.Pointer(&source_c[0])), (*C.GLint)(unsafe.Pointer(&length[0])))
+}
+
+// LinkProgram links the program object specified by program. If any shader
+// objects of type GL.VERTEX_SHADER are attached to program, they will be
+// used to create an executable that will run on the programmable vertex
+// processor. If any shader objects of type GL.FRAGMENT_SHADER are attached
+// to program, they will be used to create an executable that will run on the
+// programmable fragment processor.
+//
+// The status of the link operation will be stored as part of the program
+// object's state. This value will be set to GL.TRUE if the program object
+// was linked without errors and is ready for use, and GL.FALSE otherwise. It
+// can be queried by calling GetProgramiv with arguments program and
+// GL.LINK_STATUS.
+//
+// As a result of a successful link operation, all active user-defined
+// uniform variables belonging to program will be initialized to 0, and each
+// of the program object's active uniform variables will be assigned a
+// location that can be queried by calling GetUniformLocation. Also, any
+// active user-defined attribute variables that have not been bound to a
+// generic vertex attribute index will be bound to one at this time.
+//
+// Linking of a program object can fail for a number of reasons as specified
+// in the OpenGL Shading Language Specification. The following lists some of
+// the conditions that will cause a link error.
+//
+// - The number of active attribute variables supported by the
+// implementation has been exceeded.
+//
+// - The storage limit for uniform variables has been exceeded.
+//
+// - The number of active uniform variables supported by the implementation
+// has been exceeded.
+//
+// - The main function is missing for the vertex shader or the fragment
+// shader.
+//
+// - A varying variable actually used in the fragment shader is not
+// declared in the same way (or is not declared at all) in the vertex
+// shader.
+//
+// - A reference to a function or variable name is unresolved.
+//
+// - A shared global is declared with two different types or two different
+// initial values.
+//
+// - One or more of the attached shader objects has not been successfully
+// compiled.
+//
+// - Binding a generic attribute matrix caused some rows of the matrix to
+// fall outside the allowed maximum of GL.MAX_VERTEX_ATTRIBS.
+//
+// - Not enough contiguous vertex attribute slots could be found to bind
+// attribute matrices.
+//
+// When a program object has been successfully linked, the program object can
+// be made part of current state by calling UseProgram. Whether or not the
+// link operation was successful, the program object's information log will
+// be overwritten. The information log can be retrieved by calling
+// GetProgramInfoLog.
+//
+// LinkProgram will also install the generated executables as part of the
+// current rendering state if the link operation was successful and the
+// specified program object is already currently in use as a result of a
+// previous call to UseProgram. If the program object currently in use is
+// relinked unsuccessfully, its link status will be set to GL.FALSE , but the
+// executables and associated state will remain part of the current state
+// until a subsequent call to UseProgram removes it from use. After it is
+// removed from use, it cannot be made part of current state until it has
+// been successfully relinked.
+//
+// If program contains shader objects of type GL.VERTEX_SHADER but does not
+// contain shader objects of type GL.FRAGMENT_SHADER, the vertex shader will
+// be linked against the implicit interface for fixed functionality fragment
+// processing. Similarly, if program contains shader objects of type
+// GL.FRAGMENT_SHADER but it does not contain shader objects of type
+// GL.VERTEX_SHADER, the fragment shader will be linked against the implicit
+// interface for fixed functionality vertex processing.
+//
+// The program object's information log is updated and the program is
+// generated at the time of the link operation. After the link operation,
+// applications are free to modify attached shader objects, compile attached
+// shader objects, detach shader objects, delete shader objects, and attach
+// additional shader objects. None of these operations affects the
+// information log or the program that is part of the program object.
+//
+// If the link operation is unsuccessful, any information about a previous
+// link operation on program is lost (a failed link does not restore the
+// old state of program). Certain information can still be retrieved
+// from program even after an unsuccessful link operation. See for instance
+// GetActiveAttrib and GetActiveUniform.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program
+// object. GL.INVALID_OPERATION is generated if LinkProgram is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// LinkProgram is available in GL version 2.0 or greater.
+func (gl *GL) LinkProgram(program glbase.Program) {
+ C.gl2_0_glLinkProgram(gl.funcs, C.GLuint(program))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsShader.xml
+func (gl *GL) IsShader(shader glbase.Shader) bool {
+ glresult := C.gl2_0_glIsShader(gl.funcs, C.GLuint(shader))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsProgram.xml
+func (gl *GL) IsProgram(program glbase.Program) bool {
+ glresult := C.gl2_0_glIsProgram(gl.funcs, C.GLuint(program))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GetVertexAttribiv returns in params the value of a generic vertex attribute
+// parameter. The generic vertex attribute to be queried is specified by
+// index, and the parameter to be queried is specified by pname.
+//
+// The accepted parameter names are as follows:
+//
+// GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
+// params returns a single value, the name of the buffer object
+// currently bound to the binding point corresponding to generic vertex
+// attribute array index. If no buffer object is bound, 0 is returned.
+// The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_ENABLED
+// params returns a single value that is non-zero (true) if the vertex
+// attribute array for index is enabled and 0 (false) if it is
+// disabled. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_SIZE
+// params returns a single value, the size of the vertex attribute
+// array for index. The size is the number of values for each element
+// of the vertex attribute array, and it will be 1, 2, 3, or 4. The
+// initial value is 4.
+//
+// GL.VERTEX_ATTRIB_ARRAY_STRIDE
+// params returns a single value, the array stride for (number of bytes
+// between successive elements in) the vertex attribute array for
+// index. A value of 0 indicates that the array elements are stored
+// sequentially in memory. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_TYPE
+// params returns a single value, a symbolic constant indicating the
+// array type for the vertex attribute array for index. Possible values
+// are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
+// GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
+// GL.FLOAT.
+//
+// GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
+// params returns a single value that is non-zero (true) if fixed-point
+// data types for the vertex attribute array indicated by index are
+// normalized when they are converted to floating point, and 0 (false)
+// otherwise. The initial value is 0.
+//
+// GL.CURRENT_VERTEX_ATTRIB
+// params returns four values that represent the current value for the
+// generic vertex attribute specified by index. Generic vertex
+// attribute 0 is unique in that it has no current state, so an error
+// will be generated if index is 0. The initial value for all other
+// generic vertex attributes is (0,0,0,1).
+//
+// All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent
+// client-side state.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an
+// accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname
+// is GL.CURRENT_VERTEX_ATTRIB.
+//
+// GetVertexAttribiv is available in GL version 2.0 or greater.
+func (gl *GL) GetVertexAttribiv(index glbase.Attrib, pname glbase.Enum, params []int32) {
+ var params_c [4]int32
+ C.gl2_0_glGetVertexAttribiv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetVertexAttribfv returns in params the value of a generic vertex attribute
+// parameter. The generic vertex attribute to be queried is specified by
+// index, and the parameter to be queried is specified by pname.
+//
+// The accepted parameter names are as follows:
+//
+// GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
+// params returns a single value, the name of the buffer object
+// currently bound to the binding point corresponding to generic vertex
+// attribute array index. If no buffer object is bound, 0 is returned.
+// The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_ENABLED
+// params returns a single value that is non-zero (true) if the vertex
+// attribute array for index is enabled and 0 (false) if it is
+// disabled. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_SIZE
+// params returns a single value, the size of the vertex attribute
+// array for index. The size is the number of values for each element
+// of the vertex attribute array, and it will be 1, 2, 3, or 4. The
+// initial value is 4.
+//
+// GL.VERTEX_ATTRIB_ARRAY_STRIDE
+// params returns a single value, the array stride for (number of bytes
+// between successive elements in) the vertex attribute array for
+// index. A value of 0 indicates that the array elements are stored
+// sequentially in memory. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_TYPE
+// params returns a single value, a symbolic constant indicating the
+// array type for the vertex attribute array for index. Possible values
+// are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
+// GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
+// GL.FLOAT.
+//
+// GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
+// params returns a single value that is non-zero (true) if fixed-point
+// data types for the vertex attribute array indicated by index are
+// normalized when they are converted to floating point, and 0 (false)
+// otherwise. The initial value is 0.
+//
+// GL.CURRENT_VERTEX_ATTRIB
+// params returns four values that represent the current value for the
+// generic vertex attribute specified by index. Generic vertex
+// attribute 0 is unique in that it has no current state, so an error
+// will be generated if index is 0. The initial value for all other
+// generic vertex attributes is (0,0,0,1).
+//
+// All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent
+// client-side state.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an
+// accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname
+// is GL.CURRENT_VERTEX_ATTRIB.
+//
+// GetVertexAttribfv is available in GL version 2.0 or greater.
+func (gl *GL) GetVertexAttribfv(index glbase.Attrib, pname glbase.Enum, params []float32) {
+ var params_c [4]float32
+ C.gl2_0_glGetVertexAttribfv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetVertexAttribdv returns in params the value of a generic vertex attribute
+// parameter. The generic vertex attribute to be queried is specified by
+// index, and the parameter to be queried is specified by pname.
+//
+// The accepted parameter names are as follows:
+//
+// GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
+// params returns a single value, the name of the buffer object
+// currently bound to the binding point corresponding to generic vertex
+// attribute array index. If no buffer object is bound, 0 is returned.
+// The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_ENABLED
+// params returns a single value that is non-zero (true) if the vertex
+// attribute array for index is enabled and 0 (false) if it is
+// disabled. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_SIZE
+// params returns a single value, the size of the vertex attribute
+// array for index. The size is the number of values for each element
+// of the vertex attribute array, and it will be 1, 2, 3, or 4. The
+// initial value is 4.
+//
+// GL.VERTEX_ATTRIB_ARRAY_STRIDE
+// params returns a single value, the array stride for (number of bytes
+// between successive elements in) the vertex attribute array for
+// index. A value of 0 indicates that the array elements are stored
+// sequentially in memory. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_TYPE
+// params returns a single value, a symbolic constant indicating the
+// array type for the vertex attribute array for index. Possible values
+// are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
+// GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
+// GL.FLOAT.
+//
+// GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
+// params returns a single value that is non-zero (true) if fixed-point
+// data types for the vertex attribute array indicated by index are
+// normalized when they are converted to floating point, and 0 (false)
+// otherwise. The initial value is 0.
+//
+// GL.CURRENT_VERTEX_ATTRIB
+// params returns four values that represent the current value for the
+// generic vertex attribute specified by index. Generic vertex
+// attribute 0 is unique in that it has no current state, so an error
+// will be generated if index is 0. The initial value for all other
+// generic vertex attributes is (0,0,0,1).
+//
+// All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent
+// client-side state.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an
+// accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname
+// is GL.CURRENT_VERTEX_ATTRIB.
+//
+// GetVertexAttribdv is available in GL version 2.0 or greater.
+func (gl *GL) GetVertexAttribdv(index glbase.Attrib, pname glbase.Enum, params []float64) {
+ var params_c [4]float64
+ C.gl2_0_glGetVertexAttribdv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetUniformiv returns in params the value of the specified uniform
+// variable. The type of the uniform variable specified by location
+// determines the number of values returned. If the uniform variable is
+// defined in the shader as a boolean, int, or float, a single value will be
+// returned. If it is defined as a vec2, ivec2, or bvec2, two values will be
+// returned. If it is defined as a vec3, ivec3, or bvec3, three values will
+// be returned, and so on. To query values stored in uniform variables
+// declared as arrays, call GetUniformiv for each element of the array. To
+// query values stored in uniform variables declared as structures, call
+// GetUniformiv for each field in the structure. The values for uniform
+// variables declared as a matrix will be returned in column major order.
+//
+// The locations assigned to uniform variables are not known until the
+// program object is linked. After linking has occurred, the command
+// GetUniformLocation can be used to obtain the location of a uniform
+// variable. This location value can then be passed to GetUniformiv in order
+// to query the current value of the uniform variable. After a program object
+// has been linked successfully, the index values for uniform variables
+// remain fixed until the next link command occurs. The uniform variable
+// values can only be queried after a link if the link was successful.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program
+// object. GL.INVALID_OPERATION is generated if program has not been
+// successfully linked. GL.INVALID_OPERATION is generated if location does
+// not correspond to a valid uniform variable location for the specified
+// program object. GL.INVALID_OPERATION is generated if GetUniformiv is
+// executed between the execution of Begin and the corresponding execution of
+// End.
+//
+// GetUniformiv is available in GL version 2.0 or greater.
+func (gl *GL) GetUniformiv(program glbase.Program, location glbase.Uniform, params []int32) {
+ var params_c [4]int32
+ C.gl2_0_glGetUniformiv(gl.funcs, C.GLuint(program), C.GLint(location), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetUniformfv returns in params the value of the specified uniform
+// variable. The type of the uniform variable specified by location
+// determines the number of values returned. If the uniform variable is
+// defined in the shader as a boolean, int, or float, a single value will be
+// returned. If it is defined as a vec2, ivec2, or bvec2, two values will be
+// returned. If it is defined as a vec3, ivec3, or bvec3, three values will
+// be returned, and so on. To query values stored in uniform variables
+// declared as arrays, call GetUniformfv for each element of the array. To
+// query values stored in uniform variables declared as structures, call
+// GetUniformfv for each field in the structure. The values for uniform
+// variables declared as a matrix will be returned in column major order.
+//
+// The locations assigned to uniform variables are not known until the
+// program object is linked. After linking has occurred, the command
+// GetUniformLocation can be used to obtain the location of a uniform
+// variable. This location value can then be passed to GetUniformfv in order
+// to query the current value of the uniform variable. After a program object
+// has been linked successfully, the index values for uniform variables
+// remain fixed until the next link command occurs. The uniform variable
+// values can only be queried after a link if the link was successful.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program
+// object. GL.INVALID_OPERATION is generated if program has not been
+// successfully linked. GL.INVALID_OPERATION is generated if location does
+// not correspond to a valid uniform variable location for the specified
+// program object. GL.INVALID_OPERATION is generated if GetUniformfv is
+// executed between the execution of Begin and the corresponding execution of
+// End.
+//
+// GetUniformfv is available in GL version 2.0 or greater.
+func (gl *GL) GetUniformfv(program glbase.Program, location glbase.Uniform, params []float32) {
+ var params_c [4]float32
+ C.gl2_0_glGetUniformfv(gl.funcs, C.GLuint(program), C.GLint(location), (*C.GLfloat)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetUniformLocation returns an integer that represents the location of a
+// specific uniform variable within a program object. name must be an active
+// uniform variable name in program that is not a structure, an array of
+// structures, or a subcomponent of a vector or a matrix. This function
+// returns -1 if name does not correspond to an active uniform variable in
+// program or if name starts with the reserved prefix "gl_".
+//
+// Uniform variables that are structures or arrays of structures may be
+// queried by calling GetUniformLocation for each field within the
+// structure. The array element operator "[]" and the structure field
+// operator "." may be used in name in order to select elements within an
+// array or fields within a structure. The result of using these operators is
+// not allowed to be another structure, an array of structures, or a
+// subcomponent of a vector or a matrix. Except if the last part of name
+// indicates a uniform variable array, the location of the first element of
+// an array can be retrieved by using the name of the array, or by using the
+// name appended by "[0]".
+//
+// The actual locations assigned to uniform variables are not known until the
+// program object is linked successfully. After linking has occurred, the
+// command GetUniformLocation can be used to obtain the location of a
+// uniform variable. This location value can then be passed to Uniform to
+// set the value of the uniform variable or to GetUniform in order to query
+// the current value of the uniform variable. After a program object has been
+// linked successfully, the index values for uniform variables remain fixed
+// until the next link command occurs. Uniform variable locations and values
+// can only be queried after a link if the link was successful.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program object.
+// GL.INVALID_OPERATION is generated if program has not been successfully
+// linked. GL.INVALID_OPERATION is generated if GetUniformLocation is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// GetUniformLocation is available in GL version 2.0 or greater.
+func (gl *GL) GetUniformLocation(program glbase.Program, name string) glbase.Uniform {
+ name_cstr := C.CString(name)
+ glresult := C.gl2_0_glGetUniformLocation(gl.funcs, C.GLuint(program), (*C.GLchar)(name_cstr))
+ C.free(unsafe.Pointer(name_cstr))
+ return glbase.Uniform(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetShaderSource.xml
+func (gl *GL) GetShaderSource(shader glbase.Shader, bufSize int32, length []int32, source []byte) {
+ C.gl2_0_glGetShaderSource(gl.funcs, C.GLuint(shader), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLchar)(unsafe.Pointer(&source[0])))
+}
+
+// GetShaderInfoLog returns the information log for the specified shader
+// object. The information log for a shader object is modified when the
+// shader is compiled.
+//
+// The information log for a shader object is a string that may contain
+// diagnostic messages, warning messages, and other information about the
+// last compile operation. When a shader object is created, its information
+// log will be a string of length 0, and the size of the current log can be
+// obtained by calling GetShaderiv with the value GL.INFO_LOG_LENGTH.
+//
+// The information log for a shader object is the OpenGL implementer's
+// primary mechanism for conveying information about the compilation process.
+// Therefore, the information log can be helpful to application developers
+// during the development process, even when compilation is successful.
+// Application developers should not expect different OpenGL implementations
+// to produce identical information logs.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader
+// object. GL.INVALID_VALUE is generated if maxLength is less than 0.
+// GL.INVALID_OPERATION is generated if GetShaderInfoLog is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// GetShaderInfoLog is available in GL version 2.0 or greater.
+func (gl *GL) GetShaderInfoLog(shader glbase.Shader) []byte {
+ var params [1]int32
+ var length int32
+ gl.GetShaderiv(shader, INFO_LOG_LENGTH, params[:])
+ bufSize := params[0]
+ infoLog := make([]byte, int(bufSize))
+ C.gl2_0_glGetShaderInfoLog(gl.funcs, C.GLuint(shader), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length)), (*C.GLchar)(unsafe.Pointer(&infoLog[0])))
+ return infoLog
+}
+
+// GetShaderiv GetShader returns in params the value of a parameter for a specific
+// shader object. The following parameters are defined:
+//
+// GL.SHADER_TYPE
+// params returns GL.VERTEX_SHADER if shader is a vertex shader object,
+// and GL.FRAGMENT_SHADER if shader is a fragment shader object.
+//
+// GL.DELETE_STATUS
+// params returns GL.TRUE if shader is currently flagged for deletion,
+// and GL.FALSE otherwise.
+//
+// GL.COMPILE_STATUS
+// params returns GL.TRUE if the last compile operation on shader was
+// successful, and GL.FALSE otherwise.
+//
+// GL.INFO_LOG_LENGTH
+// params returns the number of characters in the information log for
+// shader including the null termination character (the size of the
+// character buffer required to store the information log). If shader has
+// no information log, a value of 0 is returned.
+//
+// GL.SHADER_SOURCE_LENGTH
+// params returns the length of the concatenation of the source strings
+// that make up the shader source for the shader, including the null
+// termination character. (the size of the character buffer
+// required to store the shader source). If no source code exists, 0 is
+// returned.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader does not refer to a
+// shader object. GL.INVALID_ENUM is generated if pname is not an accepted
+// value. GL.INVALID_OPERATION is generated if GetShader is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// GetShaderiv is available in GL version 2.0 or greater.
+func (gl *GL) GetShaderiv(shader glbase.Shader, pname glbase.Enum, params []int32) {
+ var params_c [4]int32
+ C.gl2_0_glGetShaderiv(gl.funcs, C.GLuint(shader), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetProgramInfoLog returns the information log for the specified program
+// object. The information log for a program object is modified when the
+// program object is linked or validated.
+//
+// The information log for a program object is either an empty string, or a
+// string containing information about the last link operation, or a string
+// containing information about the last validation operation. It may contain
+// diagnostic messages, warning messages, and other information. When a
+// program object is created, its information log will be a string of length
+// 0, and the size of the current log can be obtained by calling GetProgramiv
+// with the value GL.INFO_LOG_LENGTH.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated
+// by OpenGL. GL.INVALID_OPERATION is generated if program is not a
+// program object.
+func (gl *GL) GetProgramInfoLog(program glbase.Program) []byte {
+ var params [1]int32
+ var length int32
+ gl.GetProgramiv(program, INFO_LOG_LENGTH, params[:])
+ bufSize := params[0]
+ infoLog := make([]byte, int(bufSize))
+ C.gl2_0_glGetProgramInfoLog(gl.funcs, C.GLuint(program), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length)), (*C.GLchar)(unsafe.Pointer(&infoLog[0])))
+ return infoLog
+}
+
+// GetProgramiv returns in params the value of a parameter for a specific
+// program object. The following parameters are defined:
+//
+// GL.DELETE_STATUS
+// params returns GL.TRUE if program is currently flagged for deletion,
+// and GL.FALSE otherwise.
+//
+// GL.LINK_STATUS
+// params returns GL.TRUE if the last link operation on program was
+// successful, and GL.FALSE otherwise.
+//
+// GL.VALIDATE_STATUS
+// params returns GL.TRUE or if the last validation operation on
+// program was successful, and GL.FALSE otherwise.
+//
+// GL.INFO_LOG_LENGTH
+// params returns the number of characters in the information log for
+// program including the null termination character (the size of
+// the character buffer required to store the information log). If
+// program has no information log, a value of 0 is returned.
+//
+// GL.ATTACHED_SHADERS
+// params returns the number of shader objects attached to program.
+//
+// GL.ACTIVE_ATTRIBUTES
+// params returns the number of active attribute variables for program.
+//
+// GL.ACTIVE_ATTRIBUTE_MAX_LENGTH
+// params returns the length of the longest active attribute name for
+// program, including the null termination character (the size of
+// the character buffer required to store the longest attribute name).
+// If no active attributes exist, 0 is returned.
+//
+// GL.ACTIVE_UNIFORMS
+// params returns the number of active uniform variables for program.
+//
+// GL.ACTIVE_UNIFORM_MAX_LENGTH
+// params returns the length of the longest active uniform variable
+// name for program, including the null termination character (i.e.,
+// the size of the character buffer required to store the longest
+// uniform variable name). If no active uniform variables exist, 0 is
+// returned.
+//
+// GL.TRANSFORM_FEEDBACK_BUFFER_MODE
+// params returns a symbolic constant indicating the buffer mode used
+// when transform feedback is active. This may be GL.SEPARATE_ATTRIBS
+// or GL.INTERLEAVED_ATTRIBS.
+//
+// GL.TRANSFORM_FEEDBACK_VARYINGS
+// params returns the number of varying variables to capture in transform
+// feedback mode for the program.
+//
+// GL.TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH
+// params returns the length of the longest variable name to be used for
+// transform feedback, including the null-terminator.
+//
+// GL.GEOMETRY_VERTICES_OUT
+// params returns the maximum number of vertices that the geometry shader in
+// program will output.
+//
+// GL.GEOMETRY_INPUT_TYPE
+// params returns a symbolic constant indicating the primitive type accepted
+// as input to the geometry shader contained in program.
+//
+// GL.GEOMETRY_OUTPUT_TYPE
+// params returns a symbolic constant indicating the primitive type that will
+// be output by the geometry shader contained in program.
+//
+// GL.ACTIVE_UNIFORM_BLOCKS and GL.ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH are
+// available only if the GL version 3.1 or greater.
+//
+// GL.GEOMETRY_VERTICES_OUT, GL.GEOMETRY_INPUT_TYPE and
+// GL.GEOMETRY_OUTPUT_TYPE are accepted only if the GL version is 3.2 or
+// greater.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program does not refer to a
+// program object. GL.INVALID_OPERATION is generated if pname is
+// GL.GEOMETRY_VERTICES_OUT, GL.GEOMETRY_INPUT_TYPE, or
+// GL.GEOMETRY_OUTPUT_TYPE, and program does not contain a geometry shader.
+// GL.INVALID_ENUM is generated if pname is not an accepted value.
+func (gl *GL) GetProgramiv(program glbase.Program, pname glbase.Enum, params []int32) {
+ var params_c [4]int32
+ C.gl2_0_glGetProgramiv(gl.funcs, C.GLuint(program), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetAttribLocation queries the previously linked program object specified
+// by program for the attribute variable specified by name and returns the
+// index of the generic vertex attribute that is bound to that attribute
+// variable. If name is a matrix attribute variable, the index of the first
+// column of the matrix is returned. If the named attribute variable is not
+// an active attribute in the specified program object or if name starts with
+// the reserved prefix "gl_", a value of -1 is returned.
+//
+// The association between an attribute variable name and a generic attribute
+// index can be specified at any time by calling BindAttribLocation.
+// Attribute bindings do not go into effect until LinkProgram is called.
+// After a program object has been linked successfully, the index values for
+// attribute variables remain fixed until the next link command occurs. The
+// attribute values can only be queried after a link if the link was
+// successful. GetAttribLocation returns the binding that actually went
+// into effect the last time LinkProgram was called for the specified
+// program object. Attribute bindings that have been specified since the last
+// link operation are not returned by GetAttribLocation.
+//
+// Error GL_INVALID_OPERATION is generated if program is not a value
+// generated by OpenGL. GL_INVALID_OPERATION is generated if program is not
+// a program object. GL_INVALID_OPERATION is generated if program has not
+// been successfully linked. GL_INVALID_OPERATION is generated if
+// GetAttribLocation is executed between the execution of Begin and the
+// corresponding execution of End.
+//
+// GetAttribLocation is available in GL version 2.0 or greater.
+func (gl *GL) GetAttribLocation(program glbase.Program, name string) glbase.Attrib {
+ name_cstr := C.CString(name)
+ glresult := C.gl2_0_glGetAttribLocation(gl.funcs, C.GLuint(program), (*C.GLchar)(name_cstr))
+ C.free(unsafe.Pointer(name_cstr))
+ return glbase.Attrib(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetAttachedShaders.xml
+func (gl *GL) GetAttachedShaders(program glbase.Program, maxCount int32, count []int, obj []uint32) {
+ C.gl2_0_glGetAttachedShaders(gl.funcs, C.GLuint(program), C.GLsizei(maxCount), (*C.GLsizei)(unsafe.Pointer(&count[0])), (*C.GLuint)(unsafe.Pointer(&obj[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetActiveUniform.xml
+func (gl *GL) GetActiveUniform(program glbase.Program, index uint32, bufSize int32, length []int32, size []int, gltype []glbase.Enum, name []byte) {
+ C.gl2_0_glGetActiveUniform(gl.funcs, C.GLuint(program), C.GLuint(index), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLint)(unsafe.Pointer(&size[0])), (*C.GLenum)(unsafe.Pointer(&gltype[0])), (*C.GLchar)(unsafe.Pointer(&name[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetActiveAttrib.xml
+func (gl *GL) GetActiveAttrib(program glbase.Program, index glbase.Attrib, bufSize int32, length []int32, size []int, gltype []glbase.Enum, name []byte) {
+ C.gl2_0_glGetActiveAttrib(gl.funcs, C.GLuint(program), C.GLuint(index), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLint)(unsafe.Pointer(&size[0])), (*C.GLenum)(unsafe.Pointer(&gltype[0])), (*C.GLchar)(unsafe.Pointer(&name[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnableVertexAttribArray.xml
+func (gl *GL) EnableVertexAttribArray(index glbase.Attrib) {
+ C.gl2_0_glEnableVertexAttribArray(gl.funcs, C.GLuint(index))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisableVertexAttribArray.xml
+func (gl *GL) DisableVertexAttribArray(index glbase.Attrib) {
+ C.gl2_0_glDisableVertexAttribArray(gl.funcs, C.GLuint(index))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDetachShader.xml
+func (gl *GL) DetachShader(program glbase.Program, shader glbase.Shader) {
+ C.gl2_0_glDetachShader(gl.funcs, C.GLuint(program), C.GLuint(shader))
+}
+
+// DeleteShader frees the memory and invalidates the name associated with
+// the shader object specified by shader. This command effectively undoes the
+// effects of a call to CreateShader.
+//
+// If a shader object to be deleted is attached to a program object, it will
+// be flagged for deletion, but it will not be deleted until it is no longer
+// attached to any program object, for any rendering context (it must
+// be detached from wherever it was attached before it will be deleted). A
+// value of 0 for shader will be silently ignored.
+//
+// To determine whether an object has been flagged for deletion, call
+// GetShader with arguments shader and GL.DELETE_STATUS.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL.
+//
+// DeleteShader is available in GL version 2.0 or greater.
+func (gl *GL) DeleteShader(shader glbase.Shader) {
+ C.gl2_0_glDeleteShader(gl.funcs, C.GLuint(shader))
+}
+
+// DeleteProgram frees the memory and invalidates the name associated with
+// the program object specified by program. This command effectively undoes
+// the effects of a call to CreateProgram.
+//
+// If a program object is in use as part of current rendering state, it will
+// be flagged for deletion, but it will not be deleted until it is no longer
+// part of current state for any rendering context. If a program object to be
+// deleted has shader objects attached to it, those shader objects will be
+// automatically detached but not deleted unless they have already been
+// flagged for deletion by a previous call to DeleteShader. A value of 0
+// for program will be silently ignored.
+//
+// To determine whether a program object has been flagged for deletion, call
+// GetProgram with arguments program and GL.DELETE_STATUS.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL.
+//
+// DeleteProgram is available in GL version 2.0 or greater.
+func (gl *GL) DeleteProgram(program glbase.Program) {
+ C.gl2_0_glDeleteProgram(gl.funcs, C.GLuint(program))
+}
+
+// CreateShader creates an empty shader object and returns a non-zero value
+// by which it can be referenced. A shader object is used to maintain the
+// source code strings that define a shader. shaderType indicates the type of
+// shader to be created.
+//
+// Two types of shaders are supported. A shader of type GL.VERTEX_SHADER is a
+// shader that is intended to run on the programmable vertex processor and
+// replace the fixed functionality vertex processing in OpenGL. A shader of
+// type GL.FRAGMENT_SHADER is a shader that is intended to run on the
+// programmable fragment processor and replace the fixed functionality
+// fragment processing in OpenGL.
+//
+// When created, a shader object's GL.SHADER_TYPE parameter is set to either
+// GL.VERTEX_SHADER or GL.FRAGMENT_SHADER, depending on the value of
+// shaderType.
+//
+// Like display lists and texture objects, the name space for shader objects
+// may be shared across a set of contexts, as long as the server sides of the
+// contexts share the same address space. If the name space is shared across
+// contexts, any attached objects and the data associated with those attached
+// objects are shared as well.
+//
+// This function returns 0 if an error occurs creating the shader object.
+//
+// Error GL.INVALID_ENUM is generated if shaderType is not an accepted value.
+// GL.INVALID_OPERATION is generated if CreateShader is executed between the
+// execution of Begin and the corresponding execution of End.
+//
+// CreateShader is available in GL version 2.0 or greater.
+func (gl *GL) CreateShader(gltype glbase.Enum) glbase.Shader {
+ glresult := C.gl2_0_glCreateShader(gl.funcs, C.GLenum(gltype))
+ return glbase.Shader(glresult)
+}
+
+// CreateProgram creates an empty program object and returns a non-zero
+// value by which it can be referenced. A program object is an object to
+// which shader objects can be attached. This provides a mechanism to specify
+// the shader objects that will be linked to create a program. It also
+// provides a means for checking the compatibility of the shaders that will
+// be used to create a program (for instance, checking the compatibility
+// between a vertex shader and a fragment shader). When no longer needed as
+// part of a program object, shader objects can be detached.
+//
+// One or more executables are created in a program object by successfully
+// attaching shader objects to it with AttachShader, successfully compiling
+// the shader objects with CompileShader, and successfully linking the
+// program object with LinkProgram. These executables are made part of
+// current state when UseProgram is called. Program objects can be deleted
+// by calling DeleteProgram. The memory associated with the program object
+// will be deleted when it is no longer part of current rendering state for
+// any context.
+//
+// Like display lists and texture objects, the name space for program objects
+// may be shared across a set of contexts, as long as the server sides of the
+// contexts share the same address space. If the name space is shared across
+// contexts, any attached objects and the data associated with those attached
+// objects are shared as well.
+//
+// Applications are responsible for providing the synchronization across API
+// calls when objects are accessed from different execution threads.
+//
+// This function returns 0 if an error occurs creating the program object.
+//
+// Error GL.INVALID_OPERATION is generated if CreateProgram is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// CreateProgram is available in GL version 2.0 or greater.
+func (gl *GL) CreateProgram() glbase.Program {
+ glresult := C.gl2_0_glCreateProgram(gl.funcs)
+ return glbase.Program(glresult)
+}
+
+// CompileShader compiles the source code strings that have been stored in
+// the shader object specified by shader.
+//
+// The compilation status will be stored as part of the shader object's
+// state. This value will be set to GL.TRUE if the shader was compiled without
+// errors and is ready for use, and GL.FALSE otherwise. It can be queried by
+// calling GetShaderiv with arguments shader and GL.COMPILE_STATUS.
+//
+// Compilation of a shader can fail for a number of reasons as specified by
+// the OpenGL Shading Language Specification. Whether or not the compilation
+// was successful, information about the compilation can be obtained from the
+// shader object's information log by calling GetShaderInfoLog.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader
+// object. GL.INVALID_OPERATION is generated if CompileShader is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// CompileShader is available in GL version 2.0 or greater.
+func (gl *GL) CompileShader(shader glbase.Shader) {
+ C.gl2_0_glCompileShader(gl.funcs, C.GLuint(shader))
+}
+
+// BindAttribLocation associates a user-defined attribute variable in the program
+// object specified by program with a generic vertex attribute index. The name
+// parameter specifies the name of the vertex shader attribute variable to
+// which index is to be bound. When program is made part of the current state,
+// values provided via the generic vertex attribute index will modify the
+// value of the user-defined attribute variable specified by name.
+//
+// If name refers to a matrix attribute variable, index refers to the first
+// column of the matrix. Other matrix columns are then automatically bound to
+// locations index+1 for a matrix of type mat2; index+1 and index+2 for a
+// matrix of type mat3; and index+1, index+2, and index+3 for a matrix of
+// type mat4.
+//
+// This command makes it possible for vertex shaders to use descriptive names
+// for attribute variables rather than generic variables that are numbered
+// from 0 to GL.MAX_VERTEX_ATTRIBS-1. The values sent to each generic
+// attribute index are part of current state, just like standard vertex
+// attributes such as color, normal, and vertex position. If a different
+// program object is made current by calling UseProgram, the generic vertex
+// attributes are tracked in such a way that the same values will be observed
+// by attributes in the new program object that are also bound to index.
+//
+// Attribute variable name-to-generic attribute index bindings for a program
+// object can be explicitly assigned at any time by calling
+// BindAttribLocation. Attribute bindings do not go into effect until
+// LinkProgram is called. After a program object has been linked
+// successfully, the index values for generic attributes remain fixed (and
+// their values can be queried) until the next link command occurs.
+//
+// Applications are not allowed to bind any of the standard OpenGL vertex
+// attributes using this command, as they are bound automatically when
+// needed. Any attribute binding that occurs after the program object has
+// been linked will not take effect until the next time the program object is
+// linked.
+//
+// If name was bound previously, that information is lost. Thus you cannot
+// bind one user-defined attribute variable to multiple indices, but you can
+// bind multiple user-defined attribute variables to the same index.
+//
+// Applications are allowed to bind more than one user-defined attribute
+// variable to the same generic vertex attribute index. This is called
+// aliasing, and it is allowed only if just one of the aliased attributes is
+// active in the executable program, or if no path through the shader
+// consumes more than one attribute of a set of attributes aliased to the
+// same location. The compiler and linker are allowed to assume that no
+// aliasing is done and are free to employ optimizations that work only in
+// the absence of aliasing. OpenGL implementations are not required to do
+// error checking to detect aliasing. Because there is no way to bind
+// standard attributes, it is not possible to alias generic attributes with
+// conventional ones (except for generic attribute 0).
+//
+// BindAttribLocation can be called before any vertex shader objects are
+// bound to the specified program object. It is also permissible to bind a
+// generic attribute index to an attribute variable name that is never used
+// in a vertex shader.
+//
+// Active attributes that are not explicitly bound will be bound by the
+// linker when LinkProgram is called. The locations assigned can be queried
+// by calling GetAttribLocation.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS.
+// GL.INVALID_OPERATION is generated if name starts with the reserved prefix "gl_".
+// GL.INVALID_VALUE is generated if program is not a value generated by OpenGL.
+// GL.INVALID_OPERATION is generated if program is not a program object.
+// GL.INVALID_OPERATION is generated if BindAttribLocation is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// BindAttribLocation is available in GL version 2.0 or greater.
+func (gl *GL) BindAttribLocation(program glbase.Program, index glbase.Attrib, name string) {
+ name_cstr := C.CString(name)
+ C.gl2_0_glBindAttribLocation(gl.funcs, C.GLuint(program), C.GLuint(index), (*C.GLchar)(name_cstr))
+ C.free(unsafe.Pointer(name_cstr))
+}
+
+// AttachShader attaches a shader object to a program object.
+//
+// In order to create an executable, there must be a way to specify the list
+// of things that will be linked together. Program objects provide this
+// mechanism. Shaders that are to be linked together in a program object must
+// first be attached to that program object. This indicates that shader will
+// be included in link operations that will be performed on program.
+//
+// All operations that can be performed on a shader object are valid whether
+// or not the shader object is attached to a program object. It is
+// permissible to attach a shader object to a program object before source
+// code has been loaded into the shader object or before the shader object
+// has been compiled. It is permissible to attach multiple shader objects of
+// the same type because each may contain a portion of the complete shader.
+// It is also permissible to attach a shader object to more than one program
+// object. If a shader object is deleted while it is attached to a program
+// object, it will be flagged for deletion, and deletion will not occur until
+// DetachShader is called to detach it from all program objects to which it
+// is attached.
+//
+// Error GL.INVALID_VALUE is generated if either program or shader is not a
+// value generated by OpenGL. GL.INVALID_OPERATION is generated if program
+// is not a program object. GL.INVALID_OPERATION is generated if shader is
+// not a shader object. GL.INVALID_OPERATION is generated if shader is
+// already attached to program. GL.INVALID_OPERATION is generated if
+// AttachShader is executed between the execution of Begin and the
+// corresponding execution of End.
+//
+// AttachShader is available in GL version 2.0 or greater.
+func (gl *GL) AttachShader(program glbase.Program, shader glbase.Shader) {
+ C.gl2_0_glAttachShader(gl.funcs, C.GLuint(program), C.GLuint(shader))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilMaskSeparate.xml
+func (gl *GL) StencilMaskSeparate(face glbase.Enum, mask uint32) {
+ C.gl2_0_glStencilMaskSeparate(gl.funcs, C.GLenum(face), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilFuncSeparate.xml
+func (gl *GL) StencilFuncSeparate(face, glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl2_0_glStencilFuncSeparate(gl.funcs, C.GLenum(face), C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilOpSeparate.xml
+func (gl *GL) StencilOpSeparate(face, sfail, dpfail, dppass glbase.Enum) {
+ C.gl2_0_glStencilOpSeparate(gl.funcs, C.GLenum(face), C.GLenum(sfail), C.GLenum(dpfail), C.GLenum(dppass))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawBuffers.xml
+func (gl *GL) DrawBuffers(n int, bufs []glbase.Enum) {
+ C.gl2_0_glDrawBuffers(gl.funcs, C.GLsizei(n), (*C.GLenum)(unsafe.Pointer(&bufs[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendEquationSeparate.xml
+func (gl *GL) BlendEquationSeparate(modeRGB, modeAlpha glbase.Enum) {
+ C.gl2_0_glBlendEquationSeparate(gl.funcs, C.GLenum(modeRGB), C.GLenum(modeAlpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslatef.xml
+func (gl *GL) Translatef(x, y, z float32) {
+ C.gl2_0_glTranslatef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslated.xml
+func (gl *GL) Translated(x, y, z float64) {
+ C.gl2_0_glTranslated(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScalef.xml
+func (gl *GL) Scalef(x, y, z float32) {
+ C.gl2_0_glScalef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScaled.xml
+func (gl *GL) Scaled(x, y, z float64) {
+ C.gl2_0_glScaled(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotatef.xml
+func (gl *GL) Rotatef(angle, x, y, z float32) {
+ C.gl2_0_glRotatef(gl.funcs, C.GLfloat(angle), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotated.xml
+func (gl *GL) Rotated(angle, x, y, z float64) {
+ C.gl2_0_glRotated(gl.funcs, C.GLdouble(angle), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushMatrix.xml
+func (gl *GL) PushMatrix() {
+ C.gl2_0_glPushMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopMatrix.xml
+func (gl *GL) PopMatrix() {
+ C.gl2_0_glPopMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml
+func (gl *GL) Ortho(left, right, bottom, top, zNear, zFar float64) {
+ C.gl2_0_glOrtho(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// MultMatrixd multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixd(m []float64) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl2_0_glMultMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// MultMatrixf multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixf(m []float32) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl2_0_glMultMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMatrixMode.xml
+func (gl *GL) MatrixMode(mode glbase.Enum) {
+ C.gl2_0_glMatrixMode(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixd.xml
+func (gl *GL) LoadMatrixd(m []float64) {
+ C.gl2_0_glLoadMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixf.xml
+func (gl *GL) LoadMatrixf(m []float32) {
+ C.gl2_0_glLoadMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadIdentity.xml
+func (gl *GL) LoadIdentity() {
+ C.gl2_0_glLoadIdentity(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml
+func (gl *GL) Frustum(left, right, bottom, top, zNear, zFar float64) {
+ C.gl2_0_glFrustum(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsList.xml
+func (gl *GL) IsList(list uint32) bool {
+ glresult := C.gl2_0_glIsList(gl.funcs, C.GLuint(list))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGeniv.xml
+func (gl *GL) GetTexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl2_0_glGetTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGenfv.xml
+func (gl *GL) GetTexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl2_0_glGetTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGendv.xml
+func (gl *GL) GetTexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl2_0_glGetTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnviv.xml
+func (gl *GL) GetTexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl2_0_glGetTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnvfv.xml
+func (gl *GL) GetTexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_0_glGetTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPolygonStipple.xml
+func (gl *GL) GetPolygonStipple(mask []uint8) {
+ C.gl2_0_glGetPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapusv.xml
+func (gl *GL) GetPixelMapusv(glmap glbase.Enum, values []uint16) {
+ C.gl2_0_glGetPixelMapusv(gl.funcs, C.GLenum(glmap), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapuiv.xml
+func (gl *GL) GetPixelMapuiv(glmap glbase.Enum, values []uint32) {
+ C.gl2_0_glGetPixelMapuiv(gl.funcs, C.GLenum(glmap), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapfv.xml
+func (gl *GL) GetPixelMapfv(glmap glbase.Enum, values []float32) {
+ C.gl2_0_glGetPixelMapfv(gl.funcs, C.GLenum(glmap), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialiv.xml
+func (gl *GL) GetMaterialiv(face, pname glbase.Enum, params []int32) {
+ C.gl2_0_glGetMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialfv.xml
+func (gl *GL) GetMaterialfv(face, pname glbase.Enum, params []float32) {
+ C.gl2_0_glGetMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapiv.xml
+func (gl *GL) GetMapiv(target, query glbase.Enum, v []int32) {
+ C.gl2_0_glGetMapiv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapfv.xml
+func (gl *GL) GetMapfv(target, query glbase.Enum, v []float32) {
+ C.gl2_0_glGetMapfv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapdv.xml
+func (gl *GL) GetMapdv(target, query glbase.Enum, v []float64) {
+ C.gl2_0_glGetMapdv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightiv.xml
+func (gl *GL) GetLightiv(light, pname glbase.Enum, params []int32) {
+ C.gl2_0_glGetLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightfv.xml
+func (gl *GL) GetLightfv(light, pname glbase.Enum, params []float32) {
+ C.gl2_0_glGetLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetClipPlane.xml
+func (gl *GL) GetClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl2_0_glGetClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawPixels.xml
+func (gl *GL) DrawPixels(width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glDrawPixels(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyPixels.xml
+func (gl *GL) CopyPixels(x, y, width, height int, gltype glbase.Enum) {
+ C.gl2_0_glCopyPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(gltype))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapusv.xml
+func (gl *GL) PixelMapusv(glmap glbase.Enum, mapsize int32, values []uint16) {
+ C.gl2_0_glPixelMapusv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapuiv.xml
+func (gl *GL) PixelMapuiv(glmap glbase.Enum, mapsize int32, values []uint32) {
+ C.gl2_0_glPixelMapuiv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapfv.xml
+func (gl *GL) PixelMapfv(glmap glbase.Enum, mapsize int32, values []float32) {
+ C.gl2_0_glPixelMapfv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferi.xml
+func (gl *GL) PixelTransferi(pname glbase.Enum, param int32) {
+ C.gl2_0_glPixelTransferi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferf.xml
+func (gl *GL) PixelTransferf(pname glbase.Enum, param float32) {
+ C.gl2_0_glPixelTransferf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelZoom.xml
+func (gl *GL) PixelZoom(xfactor, yfactor float32) {
+ C.gl2_0_glPixelZoom(gl.funcs, C.GLfloat(xfactor), C.GLfloat(yfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAlphaFunc.xml
+func (gl *GL) AlphaFunc(glfunc glbase.Enum, ref float32) {
+ C.gl2_0_glAlphaFunc(gl.funcs, C.GLenum(glfunc), C.GLfloat(ref))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint2.xml
+func (gl *GL) EvalPoint2(i, j int32) {
+ C.gl2_0_glEvalPoint2(gl.funcs, C.GLint(i), C.GLint(j))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh2.xml
+func (gl *GL) EvalMesh2(mode glbase.Enum, i1, i2, j1, j2 int32) {
+ C.gl2_0_glEvalMesh2(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2), C.GLint(j1), C.GLint(j2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint1.xml
+func (gl *GL) EvalPoint1(i int32) {
+ C.gl2_0_glEvalPoint1(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh1.xml
+func (gl *GL) EvalMesh1(mode glbase.Enum, i1, i2 int32) {
+ C.gl2_0_glEvalMesh1(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2fv.xml
+func (gl *GL) EvalCoord2fv(u []float32) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl2_0_glEvalCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2f.xml
+func (gl *GL) EvalCoord2f(u, v float32) {
+ C.gl2_0_glEvalCoord2f(gl.funcs, C.GLfloat(u), C.GLfloat(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2dv.xml
+func (gl *GL) EvalCoord2dv(u []float64) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl2_0_glEvalCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2d.xml
+func (gl *GL) EvalCoord2d(u, v float64) {
+ C.gl2_0_glEvalCoord2d(gl.funcs, C.GLdouble(u), C.GLdouble(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1fv.xml
+func (gl *GL) EvalCoord1fv(u []float32) {
+ C.gl2_0_glEvalCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1f.xml
+func (gl *GL) EvalCoord1f(u float32) {
+ C.gl2_0_glEvalCoord1f(gl.funcs, C.GLfloat(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1dv.xml
+func (gl *GL) EvalCoord1dv(u []float64) {
+ C.gl2_0_glEvalCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1d.xml
+func (gl *GL) EvalCoord1d(u float64) {
+ C.gl2_0_glEvalCoord1d(gl.funcs, C.GLdouble(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2f.xml
+func (gl *GL) MapGrid2f(un int32, u1, u2 float32, vn int32, v1, v2 float32) {
+ C.gl2_0_glMapGrid2f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2), C.GLint(vn), C.GLfloat(v1), C.GLfloat(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2d.xml
+func (gl *GL) MapGrid2d(un int32, u1, u2 float64, vn int32, v1, v2 float64) {
+ C.gl2_0_glMapGrid2d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2), C.GLint(vn), C.GLdouble(v1), C.GLdouble(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1f.xml
+func (gl *GL) MapGrid1f(un int32, u1, u2 float32) {
+ C.gl2_0_glMapGrid1f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1d.xml
+func (gl *GL) MapGrid1d(un int32, u1, u2 float64) {
+ C.gl2_0_glMapGrid1d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2f.xml
+func (gl *GL) Map2f(target glbase.Enum, u1, u2 float32, ustride, uorder int32, v1, v2 float32, vstride, vorder int32, points []float32) {
+ C.gl2_0_glMap2f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(ustride), C.GLint(uorder), C.GLfloat(v1), C.GLfloat(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2d.xml
+func (gl *GL) Map2d(target glbase.Enum, u1, u2 float64, ustride, uorder int32, v1, v2 float64, vstride, vorder int32, points []float64) {
+ C.gl2_0_glMap2d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(ustride), C.GLint(uorder), C.GLdouble(v1), C.GLdouble(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1f.xml
+func (gl *GL) Map1f(target glbase.Enum, u1, u2 float32, stride, order int, points []float32) {
+ C.gl2_0_glMap1f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(stride), C.GLint(order), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1d.xml
+func (gl *GL) Map1d(target glbase.Enum, u1, u2 float64, stride, order int, points []float64) {
+ C.gl2_0_glMap1d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(stride), C.GLint(order), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushAttrib.xml
+func (gl *GL) PushAttrib(mask glbase.Bitfield) {
+ C.gl2_0_glPushAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopAttrib.xml
+func (gl *GL) PopAttrib() {
+ C.gl2_0_glPopAttrib(gl.funcs)
+}
+
+// Accum executes an operation on the accumulation buffer.
+//
+// Parameter op defines the accumulation buffer operation (GL.ACCUM, GL.LOAD,
+// GL.ADD, GL.MULT, or GL.RETURN) and specifies how the value parameter is
+// used.
+//
+// The accumulation buffer is an extended-range color buffer. Images are not
+// rendered into it. Rather, images rendered into one of the color buffers
+// are added to the contents of the accumulation buffer after rendering.
+// Effects such as antialiasing (of points, lines, and polygons), motion
+// blur, and depth of field can be created by accumulating images generated
+// with different transformation matrices.
+//
+// Each pixel in the accumulation buffer consists of red, green, blue, and
+// alpha values. The number of bits per component in the accumulation buffer
+// depends on the implementation. You can examine this number by calling
+// GetIntegerv four times, with arguments GL.ACCUM_RED_BITS,
+// GL.ACCUM_GREEN_BITS, GL.ACCUM_BLUE_BITS, and GL.ACCUM_ALPHA_BITS.
+// Regardless of the number of bits per component, the range of values stored
+// by each component is (-1, 1). The accumulation buffer pixels are mapped
+// one-to-one with frame buffer pixels.
+//
+// All accumulation buffer operations are limited to the area of the current
+// scissor box and applied identically to the red, green, blue, and alpha
+// components of each pixel. If a Accum operation results in a value outside
+// the range (-1, 1), the contents of an accumulation buffer pixel component
+// are undefined.
+//
+// The operations are as follows:
+//
+// GL.ACCUM
+// Obtains R, G, B, and A values from the buffer currently selected for
+// reading (see ReadBuffer). Each component value is divided by 2 n -
+// 1 , where n is the number of bits allocated to each color component
+// in the currently selected buffer. The result is a floating-point
+// value in the range 0 1 , which is multiplied by value and added to
+// the corresponding pixel component in the accumulation buffer,
+// thereby updating the accumulation buffer.
+//
+// GL.LOAD
+// Similar to GL.ACCUM, except that the current value in the
+// accumulation buffer is not used in the calculation of the new value.
+// That is, the R, G, B, and A values from the currently selected
+// buffer are divided by 2 n - 1 , multiplied by value, and then stored
+// in the corresponding accumulation buffer cell, overwriting the
+// current value.
+//
+// GL.ADD
+// Adds value to each R, G, B, and A in the accumulation buffer.
+//
+// GL.MULT
+// Multiplies each R, G, B, and A in the accumulation buffer by value
+// and returns the scaled component to its corresponding accumulation
+// buffer location.
+//
+// GL.RETURN
+// Transfers accumulation buffer values to the color buffer or buffers
+// currently selected for writing. Each R, G, B, and A component is
+// multiplied by value, then multiplied by 2 n - 1 , clamped to the
+// range 0 2 n - 1 , and stored in the corresponding display buffer
+// cell. The only fragment operations that are applied to this transfer
+// are pixel ownership, scissor, dithering, and color writemasks.
+//
+// To clear the accumulation buffer, call ClearAccum with R, G, B, and A
+// values to set it to, then call Clear with the accumulation buffer
+// enabled.
+//
+// Error GL.INVALID_ENUM is generated if op is not an accepted value.
+// GL.INVALID_OPERATION is generated if there is no accumulation buffer.
+// GL.INVALID_OPERATION is generated if Accum is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) Accum(op glbase.Enum, value float32) {
+ C.gl2_0_glAccum(gl.funcs, C.GLenum(op), C.GLfloat(value))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexMask.xml
+func (gl *GL) IndexMask(mask uint32) {
+ C.gl2_0_glIndexMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearIndex.xml
+func (gl *GL) ClearIndex(c float32) {
+ C.gl2_0_glClearIndex(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearAccum.xml
+func (gl *GL) ClearAccum(red, green, blue, alpha float32) {
+ C.gl2_0_glClearAccum(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushName.xml
+func (gl *GL) PushName(name uint32) {
+ C.gl2_0_glPushName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopName.xml
+func (gl *GL) PopName() {
+ C.gl2_0_glPopName(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPassThrough.xml
+func (gl *GL) PassThrough(token float32) {
+ C.gl2_0_glPassThrough(gl.funcs, C.GLfloat(token))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadName.xml
+func (gl *GL) LoadName(name uint32) {
+ C.gl2_0_glLoadName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInitNames.xml
+func (gl *GL) InitNames() {
+ C.gl2_0_glInitNames(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRenderMode.xml
+func (gl *GL) RenderMode(mode glbase.Enum) int32 {
+ glresult := C.gl2_0_glRenderMode(gl.funcs, C.GLenum(mode))
+ return int32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSelectBuffer.xml
+func (gl *GL) SelectBuffer(size int, buffer []glbase.Buffer) {
+ C.gl2_0_glSelectBuffer(gl.funcs, C.GLsizei(size), (*C.GLuint)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFeedbackBuffer.xml
+func (gl *GL) FeedbackBuffer(size int, gltype glbase.Enum, buffer []float32) {
+ C.gl2_0_glFeedbackBuffer(gl.funcs, C.GLsizei(size), C.GLenum(gltype), (*C.GLfloat)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeniv.xml
+func (gl *GL) TexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl2_0_glTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeni.xml
+func (gl *GL) TexGeni(coord, pname glbase.Enum, param int32) {
+ C.gl2_0_glTexGeni(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenfv.xml
+func (gl *GL) TexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl2_0_glTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenf.xml
+func (gl *GL) TexGenf(coord, pname glbase.Enum, param float32) {
+ C.gl2_0_glTexGenf(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGendv.xml
+func (gl *GL) TexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl2_0_glTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGend.xml
+func (gl *GL) TexGend(coord, pname glbase.Enum, param float64) {
+ C.gl2_0_glTexGend(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLdouble(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnviv.xml
+func (gl *GL) TexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl2_0_glTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvi.xml
+func (gl *GL) TexEnvi(target, pname glbase.Enum, param int32) {
+ C.gl2_0_glTexEnvi(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvfv.xml
+func (gl *GL) TexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_0_glTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvf.xml
+func (gl *GL) TexEnvf(target, pname glbase.Enum, param float32) {
+ C.gl2_0_glTexEnvf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glShadeModel.xml
+func (gl *GL) ShadeModel(mode glbase.Enum) {
+ C.gl2_0_glShadeModel(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonStipple.xml
+func (gl *GL) PolygonStipple(mask []uint8) {
+ C.gl2_0_glPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialiv.xml
+func (gl *GL) Materialiv(face, pname glbase.Enum, params []int32) {
+ C.gl2_0_glMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMateriali.xml
+func (gl *GL) Materiali(face, pname glbase.Enum, param int32) {
+ C.gl2_0_glMateriali(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialfv.xml
+func (gl *GL) Materialfv(face, pname glbase.Enum, params []float32) {
+ C.gl2_0_glMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialf.xml
+func (gl *GL) Materialf(face, pname glbase.Enum, param float32) {
+ C.gl2_0_glMaterialf(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineStipple.xml
+func (gl *GL) LineStipple(factor int32, pattern uint16) {
+ C.gl2_0_glLineStipple(gl.funcs, C.GLint(factor), C.GLushort(pattern))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeliv.xml
+func (gl *GL) LightModeliv(pname glbase.Enum, params []int32) {
+ C.gl2_0_glLightModeliv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeli.xml
+func (gl *GL) LightModeli(pname glbase.Enum, param int32) {
+ C.gl2_0_glLightModeli(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelfv.xml
+func (gl *GL) LightModelfv(pname glbase.Enum, params []float32) {
+ C.gl2_0_glLightModelfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelf.xml
+func (gl *GL) LightModelf(pname glbase.Enum, param float32) {
+ C.gl2_0_glLightModelf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightiv.xml
+func (gl *GL) Lightiv(light, pname glbase.Enum, params []int32) {
+ C.gl2_0_glLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLighti.xml
+func (gl *GL) Lighti(light, pname glbase.Enum, param int32) {
+ C.gl2_0_glLighti(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightfv.xml
+func (gl *GL) Lightfv(light, pname glbase.Enum, params []float32) {
+ C.gl2_0_glLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightf.xml
+func (gl *GL) Lightf(light, pname glbase.Enum, param float32) {
+ C.gl2_0_glLightf(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogiv.xml
+func (gl *GL) Fogiv(pname glbase.Enum, params []int32) {
+ C.gl2_0_glFogiv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogi.xml
+func (gl *GL) Fogi(pname glbase.Enum, param int32) {
+ C.gl2_0_glFogi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogfv.xml
+func (gl *GL) Fogfv(pname glbase.Enum, params []float32) {
+ C.gl2_0_glFogfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogf.xml
+func (gl *GL) Fogf(pname glbase.Enum, param float32) {
+ C.gl2_0_glFogf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMaterial.xml
+func (gl *GL) ColorMaterial(face, mode glbase.Enum) {
+ C.gl2_0_glColorMaterial(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClipPlane.xml
+func (gl *GL) ClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl2_0_glClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4sv.xml
+func (gl *GL) Vertex4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertex4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4s.xml
+func (gl *GL) Vertex4s(x, y, z, w int16) {
+ C.gl2_0_glVertex4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4iv.xml
+func (gl *GL) Vertex4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertex4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4i.xml
+func (gl *GL) Vertex4i(x, y, z, w int) {
+ C.gl2_0_glVertex4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4fv.xml
+func (gl *GL) Vertex4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertex4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4f.xml
+func (gl *GL) Vertex4f(x, y, z, w float32) {
+ C.gl2_0_glVertex4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4dv.xml
+func (gl *GL) Vertex4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertex4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4d.xml
+func (gl *GL) Vertex4d(x, y, z, w float64) {
+ C.gl2_0_glVertex4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3sv.xml
+func (gl *GL) Vertex3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertex3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3s.xml
+func (gl *GL) Vertex3s(x, y, z int16) {
+ C.gl2_0_glVertex3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3iv.xml
+func (gl *GL) Vertex3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertex3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3i.xml
+func (gl *GL) Vertex3i(x, y, z int) {
+ C.gl2_0_glVertex3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3fv.xml
+func (gl *GL) Vertex3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertex3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3f.xml
+func (gl *GL) Vertex3f(x, y, z float32) {
+ C.gl2_0_glVertex3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3dv.xml
+func (gl *GL) Vertex3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertex3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3d.xml
+func (gl *GL) Vertex3d(x, y, z float64) {
+ C.gl2_0_glVertex3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2sv.xml
+func (gl *GL) Vertex2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertex2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2s.xml
+func (gl *GL) Vertex2s(x, y int16) {
+ C.gl2_0_glVertex2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2iv.xml
+func (gl *GL) Vertex2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertex2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2i.xml
+func (gl *GL) Vertex2i(x, y int) {
+ C.gl2_0_glVertex2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2fv.xml
+func (gl *GL) Vertex2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertex2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2f.xml
+func (gl *GL) Vertex2f(x, y float32) {
+ C.gl2_0_glVertex2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2dv.xml
+func (gl *GL) Vertex2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertex2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2d.xml
+func (gl *GL) Vertex2d(x, y float64) {
+ C.gl2_0_glVertex2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4sv.xml
+func (gl *GL) TexCoord4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glTexCoord4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4s.xml
+func (gl *GL) TexCoord4s(s, t, r, q int16) {
+ C.gl2_0_glTexCoord4s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4iv.xml
+func (gl *GL) TexCoord4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glTexCoord4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4i.xml
+func (gl *GL) TexCoord4i(s, t, r, q int32) {
+ C.gl2_0_glTexCoord4i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4fv.xml
+func (gl *GL) TexCoord4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glTexCoord4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4f.xml
+func (gl *GL) TexCoord4f(s, t, r, q float32) {
+ C.gl2_0_glTexCoord4f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4dv.xml
+func (gl *GL) TexCoord4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glTexCoord4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4d.xml
+func (gl *GL) TexCoord4d(s, t, r, q float64) {
+ C.gl2_0_glTexCoord4d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3sv.xml
+func (gl *GL) TexCoord3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glTexCoord3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3s.xml
+func (gl *GL) TexCoord3s(s, t, r int16) {
+ C.gl2_0_glTexCoord3s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3iv.xml
+func (gl *GL) TexCoord3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glTexCoord3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3i.xml
+func (gl *GL) TexCoord3i(s, t, r int32) {
+ C.gl2_0_glTexCoord3i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3fv.xml
+func (gl *GL) TexCoord3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glTexCoord3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3f.xml
+func (gl *GL) TexCoord3f(s, t, r float32) {
+ C.gl2_0_glTexCoord3f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3dv.xml
+func (gl *GL) TexCoord3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glTexCoord3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3d.xml
+func (gl *GL) TexCoord3d(s, t, r float64) {
+ C.gl2_0_glTexCoord3d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2sv.xml
+func (gl *GL) TexCoord2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glTexCoord2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2s.xml
+func (gl *GL) TexCoord2s(s, t int16) {
+ C.gl2_0_glTexCoord2s(gl.funcs, C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2iv.xml
+func (gl *GL) TexCoord2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glTexCoord2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2i.xml
+func (gl *GL) TexCoord2i(s, t int32) {
+ C.gl2_0_glTexCoord2i(gl.funcs, C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2fv.xml
+func (gl *GL) TexCoord2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glTexCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2f.xml
+func (gl *GL) TexCoord2f(s, t float32) {
+ C.gl2_0_glTexCoord2f(gl.funcs, C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2dv.xml
+func (gl *GL) TexCoord2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glTexCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2d.xml
+func (gl *GL) TexCoord2d(s, t float64) {
+ C.gl2_0_glTexCoord2d(gl.funcs, C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1sv.xml
+func (gl *GL) TexCoord1sv(v []int16) {
+ C.gl2_0_glTexCoord1sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1s.xml
+func (gl *GL) TexCoord1s(s int16) {
+ C.gl2_0_glTexCoord1s(gl.funcs, C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1iv.xml
+func (gl *GL) TexCoord1iv(v []int32) {
+ C.gl2_0_glTexCoord1iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1i.xml
+func (gl *GL) TexCoord1i(s int32) {
+ C.gl2_0_glTexCoord1i(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1fv.xml
+func (gl *GL) TexCoord1fv(v []float32) {
+ C.gl2_0_glTexCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1f.xml
+func (gl *GL) TexCoord1f(s float32) {
+ C.gl2_0_glTexCoord1f(gl.funcs, C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1dv.xml
+func (gl *GL) TexCoord1dv(v []float64) {
+ C.gl2_0_glTexCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1d.xml
+func (gl *GL) TexCoord1d(s float64) {
+ C.gl2_0_glTexCoord1d(gl.funcs, C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectsv.xml
+func (gl *GL) Rectsv(v1, v2 []int16) {
+ C.gl2_0_glRectsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v1[0])), (*C.GLshort)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRects.xml
+func (gl *GL) Rects(x1, y1, x2, y2 int16) {
+ C.gl2_0_glRects(gl.funcs, C.GLshort(x1), C.GLshort(y1), C.GLshort(x2), C.GLshort(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectiv.xml
+func (gl *GL) Rectiv(v1, v2 []int32) {
+ C.gl2_0_glRectiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v1[0])), (*C.GLint)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRecti.xml
+func (gl *GL) Recti(x1, y1, x2, y2 int32) {
+ C.gl2_0_glRecti(gl.funcs, C.GLint(x1), C.GLint(y1), C.GLint(x2), C.GLint(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectfv.xml
+func (gl *GL) Rectfv(v1, v2 []float32) {
+ C.gl2_0_glRectfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v1[0])), (*C.GLfloat)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectf.xml
+func (gl *GL) Rectf(x1, y1, x2, y2 float32) {
+ C.gl2_0_glRectf(gl.funcs, C.GLfloat(x1), C.GLfloat(y1), C.GLfloat(x2), C.GLfloat(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectdv.xml
+func (gl *GL) Rectdv(v1, v2 []float64) {
+ C.gl2_0_glRectdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v1[0])), (*C.GLdouble)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectd.xml
+func (gl *GL) Rectd(x1, y1, x2, y2 float64) {
+ C.gl2_0_glRectd(gl.funcs, C.GLdouble(x1), C.GLdouble(y1), C.GLdouble(x2), C.GLdouble(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4sv.xml
+func (gl *GL) RasterPos4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glRasterPos4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4s.xml
+func (gl *GL) RasterPos4s(x, y, z, w int16) {
+ C.gl2_0_glRasterPos4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4iv.xml
+func (gl *GL) RasterPos4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glRasterPos4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4i.xml
+func (gl *GL) RasterPos4i(x, y, z, w int) {
+ C.gl2_0_glRasterPos4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4fv.xml
+func (gl *GL) RasterPos4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glRasterPos4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4f.xml
+func (gl *GL) RasterPos4f(x, y, z, w float32) {
+ C.gl2_0_glRasterPos4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4dv.xml
+func (gl *GL) RasterPos4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glRasterPos4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4d.xml
+func (gl *GL) RasterPos4d(x, y, z, w float64) {
+ C.gl2_0_glRasterPos4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3sv.xml
+func (gl *GL) RasterPos3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glRasterPos3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3s.xml
+func (gl *GL) RasterPos3s(x, y, z int16) {
+ C.gl2_0_glRasterPos3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3iv.xml
+func (gl *GL) RasterPos3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glRasterPos3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3i.xml
+func (gl *GL) RasterPos3i(x, y, z int) {
+ C.gl2_0_glRasterPos3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3fv.xml
+func (gl *GL) RasterPos3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glRasterPos3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3f.xml
+func (gl *GL) RasterPos3f(x, y, z float32) {
+ C.gl2_0_glRasterPos3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3dv.xml
+func (gl *GL) RasterPos3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glRasterPos3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3d.xml
+func (gl *GL) RasterPos3d(x, y, z float64) {
+ C.gl2_0_glRasterPos3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2sv.xml
+func (gl *GL) RasterPos2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glRasterPos2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2s.xml
+func (gl *GL) RasterPos2s(x, y int16) {
+ C.gl2_0_glRasterPos2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2iv.xml
+func (gl *GL) RasterPos2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glRasterPos2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2i.xml
+func (gl *GL) RasterPos2i(x, y int) {
+ C.gl2_0_glRasterPos2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2fv.xml
+func (gl *GL) RasterPos2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glRasterPos2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2f.xml
+func (gl *GL) RasterPos2f(x, y float32) {
+ C.gl2_0_glRasterPos2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2dv.xml
+func (gl *GL) RasterPos2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glRasterPos2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2d.xml
+func (gl *GL) RasterPos2d(x, y float64) {
+ C.gl2_0_glRasterPos2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3sv.xml
+func (gl *GL) Normal3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glNormal3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3s.xml
+func (gl *GL) Normal3s(nx, ny, nz int16) {
+ C.gl2_0_glNormal3s(gl.funcs, C.GLshort(nx), C.GLshort(ny), C.GLshort(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3iv.xml
+func (gl *GL) Normal3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glNormal3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3i.xml
+func (gl *GL) Normal3i(nx, ny, nz int32) {
+ C.gl2_0_glNormal3i(gl.funcs, C.GLint(nx), C.GLint(ny), C.GLint(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3fv.xml
+func (gl *GL) Normal3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glNormal3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3f.xml
+func (gl *GL) Normal3f(nx, ny, nz float32) {
+ C.gl2_0_glNormal3f(gl.funcs, C.GLfloat(nx), C.GLfloat(ny), C.GLfloat(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3dv.xml
+func (gl *GL) Normal3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glNormal3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3d.xml
+func (gl *GL) Normal3d(nx, ny, nz float64) {
+ C.gl2_0_glNormal3d(gl.funcs, C.GLdouble(nx), C.GLdouble(ny), C.GLdouble(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3bv.xml
+func (gl *GL) Normal3bv(v []byte) {
+ C.gl2_0_glNormal3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3b.xml
+func (gl *GL) Normal3b(nx, ny, nz byte) {
+ C.gl2_0_glNormal3b(gl.funcs, C.GLbyte(nx), C.GLbyte(ny), C.GLbyte(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexsv.xml
+func (gl *GL) Indexsv(c []int16) {
+ C.gl2_0_glIndexsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexs.xml
+func (gl *GL) Indexs(c int16) {
+ C.gl2_0_glIndexs(gl.funcs, C.GLshort(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexiv.xml
+func (gl *GL) Indexiv(c []int32) {
+ C.gl2_0_glIndexiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexi.xml
+func (gl *GL) Indexi(c int32) {
+ C.gl2_0_glIndexi(gl.funcs, C.GLint(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexfv.xml
+func (gl *GL) Indexfv(c []float32) {
+ C.gl2_0_glIndexfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexf.xml
+func (gl *GL) Indexf(c float32) {
+ C.gl2_0_glIndexf(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexdv.xml
+func (gl *GL) Indexdv(c []float64) {
+ C.gl2_0_glIndexdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexd.xml
+func (gl *GL) Indexd(c float64) {
+ C.gl2_0_glIndexd(gl.funcs, C.GLdouble(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnd.xml
+func (gl *GL) End() {
+ C.gl2_0_glEnd(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagv.xml
+func (gl *GL) EdgeFlagv(flag []bool) {
+ C.gl2_0_glEdgeFlagv(gl.funcs, (*C.GLboolean)(unsafe.Pointer(&flag[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlag.xml
+func (gl *GL) EdgeFlag(flag bool) {
+ C.gl2_0_glEdgeFlag(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4usv.xml
+func (gl *GL) Color4usv(v []uint16) {
+ C.gl2_0_glColor4usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4us.xml
+func (gl *GL) Color4us(red, green, blue, alpha uint16) {
+ C.gl2_0_glColor4us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue), C.GLushort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4uiv.xml
+func (gl *GL) Color4uiv(v []uint32) {
+ C.gl2_0_glColor4uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ui.xml
+func (gl *GL) Color4ui(red, green, blue, alpha uint32) {
+ C.gl2_0_glColor4ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue), C.GLuint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ubv.xml
+func (gl *GL) Color4ubv(v []uint8) {
+ C.gl2_0_glColor4ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ub.xml
+func (gl *GL) Color4ub(red, green, blue, alpha uint8) {
+ C.gl2_0_glColor4ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue), C.GLubyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4sv.xml
+func (gl *GL) Color4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glColor4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4s.xml
+func (gl *GL) Color4s(red, green, blue, alpha int16) {
+ C.gl2_0_glColor4s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue), C.GLshort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4iv.xml
+func (gl *GL) Color4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glColor4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4i.xml
+func (gl *GL) Color4i(red, green, blue, alpha int32) {
+ C.gl2_0_glColor4i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue), C.GLint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4fv.xml
+func (gl *GL) Color4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glColor4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4f.xml
+func (gl *GL) Color4f(red, green, blue, alpha float32) {
+ C.gl2_0_glColor4f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4dv.xml
+func (gl *GL) Color4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glColor4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4d.xml
+func (gl *GL) Color4d(red, green, blue, alpha float64) {
+ C.gl2_0_glColor4d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue), C.GLdouble(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4bv.xml
+func (gl *GL) Color4bv(v []byte) {
+ C.gl2_0_glColor4bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4b.xml
+func (gl *GL) Color4b(red, green, blue, alpha byte) {
+ C.gl2_0_glColor4b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue), C.GLbyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3usv.xml
+func (gl *GL) Color3usv(v []uint16) {
+ C.gl2_0_glColor3usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3us.xml
+func (gl *GL) Color3us(red, green, blue uint16) {
+ C.gl2_0_glColor3us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3uiv.xml
+func (gl *GL) Color3uiv(v []uint32) {
+ C.gl2_0_glColor3uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ui.xml
+func (gl *GL) Color3ui(red, green, blue uint32) {
+ C.gl2_0_glColor3ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ubv.xml
+func (gl *GL) Color3ubv(v []uint8) {
+ C.gl2_0_glColor3ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ub.xml
+func (gl *GL) Color3ub(red, green, blue uint8) {
+ C.gl2_0_glColor3ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3sv.xml
+func (gl *GL) Color3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glColor3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3s.xml
+func (gl *GL) Color3s(red, green, blue int16) {
+ C.gl2_0_glColor3s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3iv.xml
+func (gl *GL) Color3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glColor3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3i.xml
+func (gl *GL) Color3i(red, green, blue int32) {
+ C.gl2_0_glColor3i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3fv.xml
+func (gl *GL) Color3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glColor3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3f.xml
+func (gl *GL) Color3f(red, green, blue float32) {
+ C.gl2_0_glColor3f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3dv.xml
+func (gl *GL) Color3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glColor3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3d.xml
+func (gl *GL) Color3d(red, green, blue float64) {
+ C.gl2_0_glColor3d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3bv.xml
+func (gl *GL) Color3bv(v []byte) {
+ C.gl2_0_glColor3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3b.xml
+func (gl *GL) Color3b(red, green, blue byte) {
+ C.gl2_0_glColor3b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBitmap.xml
+func (gl *GL) Bitmap(width, height int, xorig, yorig, xmove, ymove float32, bitmap []uint8) {
+ C.gl2_0_glBitmap(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLfloat(xorig), C.GLfloat(yorig), C.GLfloat(xmove), C.GLfloat(ymove), (*C.GLubyte)(unsafe.Pointer(&bitmap[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBegin.xml
+func (gl *GL) Begin(mode glbase.Enum) {
+ C.gl2_0_glBegin(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glListBase.xml
+func (gl *GL) ListBase(base uint32) {
+ C.gl2_0_glListBase(gl.funcs, C.GLuint(base))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGenLists.xml
+func (gl *GL) GenLists(range_ int32) uint32 {
+ glresult := C.gl2_0_glGenLists(gl.funcs, C.GLsizei(range_))
+ return uint32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDeleteLists.xml
+func (gl *GL) DeleteLists(list uint32, range_ int32) {
+ C.gl2_0_glDeleteLists(gl.funcs, C.GLuint(list), C.GLsizei(range_))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallLists.xml
+func (gl *GL) CallLists(n int, gltype glbase.Enum, lists interface{}) {
+ var lists_ptr unsafe.Pointer
+ var lists_v = reflect.ValueOf(lists)
+ if lists != nil && lists_v.Kind() != reflect.Slice {
+ panic("parameter lists must be a slice")
+ }
+ if lists != nil {
+ lists_ptr = unsafe.Pointer(lists_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glCallLists(gl.funcs, C.GLsizei(n), C.GLenum(gltype), lists_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallList.xml
+func (gl *GL) CallList(list uint32) {
+ C.gl2_0_glCallList(gl.funcs, C.GLuint(list))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEndList.xml
+func (gl *GL) EndList() {
+ C.gl2_0_glEndList(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNewList.xml
+func (gl *GL) NewList(list uint32, mode glbase.Enum) {
+ C.gl2_0_glNewList(gl.funcs, C.GLuint(list), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushClientAttrib.xml
+func (gl *GL) PushClientAttrib(mask glbase.Bitfield) {
+ C.gl2_0_glPushClientAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopClientAttrib.xml
+func (gl *GL) PopClientAttrib() {
+ C.gl2_0_glPopClientAttrib(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPrioritizeTextures.xml
+func (gl *GL) PrioritizeTextures(n int, textures []glbase.Texture, priorities []float32) {
+ C.gl2_0_glPrioritizeTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLfloat)(unsafe.Pointer(&priorities[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAreTexturesResident.xml
+func (gl *GL) AreTexturesResident(n int, textures []glbase.Texture, residences []bool) bool {
+ glresult := C.gl2_0_glAreTexturesResident(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLboolean)(unsafe.Pointer(&residences[0])))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexPointer.xml
+func (gl *GL) VertexPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glVertexPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoordPointer.xml
+func (gl *GL) TexCoordPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glTexCoordPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormalPointer.xml
+func (gl *GL) NormalPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glNormalPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInterleavedArrays.xml
+func (gl *GL) InterleavedArrays(format glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glInterleavedArrays(gl.funcs, C.GLenum(format), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexPointer.xml
+func (gl *GL) IndexPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glIndexPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnableClientState.xml
+func (gl *GL) EnableClientState(array glbase.Enum) {
+ C.gl2_0_glEnableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagPointer.xml
+func (gl *GL) EdgeFlagPointer(stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glEdgeFlagPointer(gl.funcs, C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisableClientState.xml
+func (gl *GL) DisableClientState(array glbase.Enum) {
+ C.gl2_0_glDisableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorPointer.xml
+func (gl *GL) ColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glColorPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glArrayElement.xml
+func (gl *GL) ArrayElement(i int32) {
+ C.gl2_0_glArrayElement(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glResetMinmax.xml
+func (gl *GL) ResetMinmax(target glbase.Enum) {
+ C.gl2_0_glResetMinmax(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glResetHistogram.xml
+func (gl *GL) ResetHistogram(target glbase.Enum) {
+ C.gl2_0_glResetHistogram(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMinmax.xml
+func (gl *GL) Minmax(target, internalFormat glbase.Enum, sink bool) {
+ C.gl2_0_glMinmax(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), *(*C.GLboolean)(unsafe.Pointer(&sink)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glHistogram.xml
+func (gl *GL) Histogram(target glbase.Enum, width int, internalFormat glbase.Enum, sink bool) {
+ C.gl2_0_glHistogram(gl.funcs, C.GLenum(target), C.GLsizei(width), C.GLenum(internalFormat), *(*C.GLboolean)(unsafe.Pointer(&sink)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmaxParameteriv.xml
+func (gl *GL) GetMinmaxParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_0_glGetMinmaxParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmaxParameterfv.xml
+func (gl *GL) GetMinmaxParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_0_glGetMinmaxParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmax.xml
+func (gl *GL) GetMinmax(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{}) {
+ var values_ptr unsafe.Pointer
+ var values_v = reflect.ValueOf(values)
+ if values != nil && values_v.Kind() != reflect.Slice {
+ panic("parameter values must be a slice")
+ }
+ if values != nil {
+ values_ptr = unsafe.Pointer(values_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glGetMinmax(gl.funcs, C.GLenum(target), *(*C.GLboolean)(unsafe.Pointer(&reset)), C.GLenum(format), C.GLenum(gltype), values_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogramParameteriv.xml
+func (gl *GL) GetHistogramParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_0_glGetHistogramParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogramParameterfv.xml
+func (gl *GL) GetHistogramParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_0_glGetHistogramParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogram.xml
+func (gl *GL) GetHistogram(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{}) {
+ var values_ptr unsafe.Pointer
+ var values_v = reflect.ValueOf(values)
+ if values != nil && values_v.Kind() != reflect.Slice {
+ panic("parameter values must be a slice")
+ }
+ if values != nil {
+ values_ptr = unsafe.Pointer(values_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glGetHistogram(gl.funcs, C.GLenum(target), *(*C.GLboolean)(unsafe.Pointer(&reset)), C.GLenum(format), C.GLenum(gltype), values_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSeparableFilter2D.xml
+func (gl *GL) SeparableFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, row, column interface{}) {
+ var row_ptr unsafe.Pointer
+ var row_v = reflect.ValueOf(row)
+ if row != nil && row_v.Kind() != reflect.Slice {
+ panic("parameter row must be a slice")
+ }
+ if row != nil {
+ row_ptr = unsafe.Pointer(row_v.Index(0).Addr().Pointer())
+ }
+ var column_ptr unsafe.Pointer
+ var column_v = reflect.ValueOf(column)
+ if column != nil && column_v.Kind() != reflect.Slice {
+ panic("parameter column must be a slice")
+ }
+ if column != nil {
+ column_ptr = unsafe.Pointer(column_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glSeparableFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), row_ptr, column_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetSeparableFilter.xml
+func (gl *GL) GetSeparableFilter(target, format, gltype glbase.Enum, row, column, span interface{}) {
+ var row_ptr unsafe.Pointer
+ var row_v = reflect.ValueOf(row)
+ if row != nil && row_v.Kind() != reflect.Slice {
+ panic("parameter row must be a slice")
+ }
+ if row != nil {
+ row_ptr = unsafe.Pointer(row_v.Index(0).Addr().Pointer())
+ }
+ var column_ptr unsafe.Pointer
+ var column_v = reflect.ValueOf(column)
+ if column != nil && column_v.Kind() != reflect.Slice {
+ panic("parameter column must be a slice")
+ }
+ if column != nil {
+ column_ptr = unsafe.Pointer(column_v.Index(0).Addr().Pointer())
+ }
+ var span_ptr unsafe.Pointer
+ var span_v = reflect.ValueOf(span)
+ if span != nil && span_v.Kind() != reflect.Slice {
+ panic("parameter span must be a slice")
+ }
+ if span != nil {
+ span_ptr = unsafe.Pointer(span_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glGetSeparableFilter(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), row_ptr, column_ptr, span_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionParameteriv.xml
+func (gl *GL) GetConvolutionParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_0_glGetConvolutionParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionParameterfv.xml
+func (gl *GL) GetConvolutionParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_0_glGetConvolutionParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionFilter.xml
+func (gl *GL) GetConvolutionFilter(target, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glGetConvolutionFilter(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyConvolutionFilter2D.xml
+func (gl *GL) CopyConvolutionFilter2D(target, internalFormat glbase.Enum, x, y, width, height int) {
+ C.gl2_0_glCopyConvolutionFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyConvolutionFilter1D.xml
+func (gl *GL) CopyConvolutionFilter1D(target, internalFormat glbase.Enum, x, y, width int) {
+ C.gl2_0_glCopyConvolutionFilter1D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameteriv.xml
+func (gl *GL) ConvolutionParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_0_glConvolutionParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameteri.xml
+func (gl *GL) ConvolutionParameteri(target, pname glbase.Enum, params int32) {
+ C.gl2_0_glConvolutionParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(params))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameterfv.xml
+func (gl *GL) ConvolutionParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_0_glConvolutionParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameterf.xml
+func (gl *GL) ConvolutionParameterf(target, pname glbase.Enum, params float32) {
+ C.gl2_0_glConvolutionParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(params))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionFilter2D.xml
+func (gl *GL) ConvolutionFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glConvolutionFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionFilter1D.xml
+func (gl *GL) ConvolutionFilter1D(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glConvolutionFilter1D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyColorSubTable.xml
+func (gl *GL) CopyColorSubTable(target glbase.Enum, start int32, x, y, width int) {
+ C.gl2_0_glCopyColorSubTable(gl.funcs, C.GLenum(target), C.GLsizei(start), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorSubTable.xml
+func (gl *GL) ColorSubTable(target glbase.Enum, start int32, count int, format, gltype glbase.Enum, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glColorSubTable(gl.funcs, C.GLenum(target), C.GLsizei(start), C.GLsizei(count), C.GLenum(format), C.GLenum(gltype), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTableParameteriv.xml
+func (gl *GL) GetColorTableParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_0_glGetColorTableParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTableParameterfv.xml
+func (gl *GL) GetColorTableParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_0_glGetColorTableParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTable.xml
+func (gl *GL) GetColorTable(target, format, gltype glbase.Enum, table interface{}) {
+ var table_ptr unsafe.Pointer
+ var table_v = reflect.ValueOf(table)
+ if table != nil && table_v.Kind() != reflect.Slice {
+ panic("parameter table must be a slice")
+ }
+ if table != nil {
+ table_ptr = unsafe.Pointer(table_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glGetColorTable(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), table_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyColorTable.xml
+func (gl *GL) CopyColorTable(target, internalFormat glbase.Enum, x, y, width int) {
+ C.gl2_0_glCopyColorTable(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTableParameteriv.xml
+func (gl *GL) ColorTableParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_0_glColorTableParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTableParameterfv.xml
+func (gl *GL) ColorTableParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_0_glColorTableParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTable.xml
+func (gl *GL) ColorTable(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, table interface{}) {
+ var table_ptr unsafe.Pointer
+ var table_v = reflect.ValueOf(table)
+ if table != nil && table_v.Kind() != reflect.Slice {
+ panic("parameter table must be a slice")
+ }
+ if table != nil {
+ table_ptr = unsafe.Pointer(table_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glColorTable(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), table_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultTransposeMatrixd.xml
+func (gl *GL) MultTransposeMatrixd(m []float64) {
+ C.gl2_0_glMultTransposeMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultTransposeMatrixf.xml
+func (gl *GL) MultTransposeMatrixf(m []float32) {
+ C.gl2_0_glMultTransposeMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadTransposeMatrixd.xml
+func (gl *GL) LoadTransposeMatrixd(m []float64) {
+ C.gl2_0_glLoadTransposeMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadTransposeMatrixf.xml
+func (gl *GL) LoadTransposeMatrixf(m []float32) {
+ C.gl2_0_glLoadTransposeMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4sv.xml
+func (gl *GL) MultiTexCoord4sv(target glbase.Enum, v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glMultiTexCoord4sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4s.xml
+func (gl *GL) MultiTexCoord4s(target glbase.Enum, s, t, r, q int16) {
+ C.gl2_0_glMultiTexCoord4s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4iv.xml
+func (gl *GL) MultiTexCoord4iv(target glbase.Enum, v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glMultiTexCoord4iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4i.xml
+func (gl *GL) MultiTexCoord4i(target glbase.Enum, s, t, r, q int32) {
+ C.gl2_0_glMultiTexCoord4i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4fv.xml
+func (gl *GL) MultiTexCoord4fv(target glbase.Enum, v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glMultiTexCoord4fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4f.xml
+func (gl *GL) MultiTexCoord4f(target glbase.Enum, s, t, r, q float32) {
+ C.gl2_0_glMultiTexCoord4f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4dv.xml
+func (gl *GL) MultiTexCoord4dv(target glbase.Enum, v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glMultiTexCoord4dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4d.xml
+func (gl *GL) MultiTexCoord4d(target glbase.Enum, s, t, r, q float64) {
+ C.gl2_0_glMultiTexCoord4d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3sv.xml
+func (gl *GL) MultiTexCoord3sv(target glbase.Enum, v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glMultiTexCoord3sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3s.xml
+func (gl *GL) MultiTexCoord3s(target glbase.Enum, s, t, r int16) {
+ C.gl2_0_glMultiTexCoord3s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3iv.xml
+func (gl *GL) MultiTexCoord3iv(target glbase.Enum, v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glMultiTexCoord3iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3i.xml
+func (gl *GL) MultiTexCoord3i(target glbase.Enum, s, t, r int32) {
+ C.gl2_0_glMultiTexCoord3i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3fv.xml
+func (gl *GL) MultiTexCoord3fv(target glbase.Enum, v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glMultiTexCoord3fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3f.xml
+func (gl *GL) MultiTexCoord3f(target glbase.Enum, s, t, r float32) {
+ C.gl2_0_glMultiTexCoord3f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3dv.xml
+func (gl *GL) MultiTexCoord3dv(target glbase.Enum, v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glMultiTexCoord3dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3d.xml
+func (gl *GL) MultiTexCoord3d(target glbase.Enum, s, t, r float64) {
+ C.gl2_0_glMultiTexCoord3d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2sv.xml
+func (gl *GL) MultiTexCoord2sv(target glbase.Enum, v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glMultiTexCoord2sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2s.xml
+func (gl *GL) MultiTexCoord2s(target glbase.Enum, s, t int16) {
+ C.gl2_0_glMultiTexCoord2s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2iv.xml
+func (gl *GL) MultiTexCoord2iv(target glbase.Enum, v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glMultiTexCoord2iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2i.xml
+func (gl *GL) MultiTexCoord2i(target glbase.Enum, s, t int32) {
+ C.gl2_0_glMultiTexCoord2i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2fv.xml
+func (gl *GL) MultiTexCoord2fv(target glbase.Enum, v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glMultiTexCoord2fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2f.xml
+func (gl *GL) MultiTexCoord2f(target glbase.Enum, s, t float32) {
+ C.gl2_0_glMultiTexCoord2f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2dv.xml
+func (gl *GL) MultiTexCoord2dv(target glbase.Enum, v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glMultiTexCoord2dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2d.xml
+func (gl *GL) MultiTexCoord2d(target glbase.Enum, s, t float64) {
+ C.gl2_0_glMultiTexCoord2d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1sv.xml
+func (gl *GL) MultiTexCoord1sv(target glbase.Enum, v []int16) {
+ C.gl2_0_glMultiTexCoord1sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1s.xml
+func (gl *GL) MultiTexCoord1s(target glbase.Enum, s int16) {
+ C.gl2_0_glMultiTexCoord1s(gl.funcs, C.GLenum(target), C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1iv.xml
+func (gl *GL) MultiTexCoord1iv(target glbase.Enum, v []int32) {
+ C.gl2_0_glMultiTexCoord1iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1i.xml
+func (gl *GL) MultiTexCoord1i(target glbase.Enum, s int32) {
+ C.gl2_0_glMultiTexCoord1i(gl.funcs, C.GLenum(target), C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1fv.xml
+func (gl *GL) MultiTexCoord1fv(target glbase.Enum, v []float32) {
+ C.gl2_0_glMultiTexCoord1fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1f.xml
+func (gl *GL) MultiTexCoord1f(target glbase.Enum, s float32) {
+ C.gl2_0_glMultiTexCoord1f(gl.funcs, C.GLenum(target), C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1dv.xml
+func (gl *GL) MultiTexCoord1dv(target glbase.Enum, v []float64) {
+ C.gl2_0_glMultiTexCoord1dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1d.xml
+func (gl *GL) MultiTexCoord1d(target glbase.Enum, s float64) {
+ C.gl2_0_glMultiTexCoord1d(gl.funcs, C.GLenum(target), C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClientActiveTexture.xml
+func (gl *GL) ClientActiveTexture(texture glbase.Enum) {
+ C.gl2_0_glClientActiveTexture(gl.funcs, C.GLenum(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3sv.xml
+func (gl *GL) WindowPos3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glWindowPos3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3s.xml
+func (gl *GL) WindowPos3s(x, y, z int16) {
+ C.gl2_0_glWindowPos3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3iv.xml
+func (gl *GL) WindowPos3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glWindowPos3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3i.xml
+func (gl *GL) WindowPos3i(x, y, z int) {
+ C.gl2_0_glWindowPos3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3fv.xml
+func (gl *GL) WindowPos3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glWindowPos3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3f.xml
+func (gl *GL) WindowPos3f(x, y, z float32) {
+ C.gl2_0_glWindowPos3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3dv.xml
+func (gl *GL) WindowPos3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glWindowPos3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3d.xml
+func (gl *GL) WindowPos3d(x, y, z float64) {
+ C.gl2_0_glWindowPos3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2sv.xml
+func (gl *GL) WindowPos2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glWindowPos2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2s.xml
+func (gl *GL) WindowPos2s(x, y int16) {
+ C.gl2_0_glWindowPos2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2iv.xml
+func (gl *GL) WindowPos2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glWindowPos2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2i.xml
+func (gl *GL) WindowPos2i(x, y int) {
+ C.gl2_0_glWindowPos2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2fv.xml
+func (gl *GL) WindowPos2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glWindowPos2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2f.xml
+func (gl *GL) WindowPos2f(x, y float32) {
+ C.gl2_0_glWindowPos2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2dv.xml
+func (gl *GL) WindowPos2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glWindowPos2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2d.xml
+func (gl *GL) WindowPos2d(x, y float64) {
+ C.gl2_0_glWindowPos2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColorPointer.xml
+func (gl *GL) SecondaryColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glSecondaryColorPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3usv.xml
+func (gl *GL) SecondaryColor3usv(v []uint16) {
+ C.gl2_0_glSecondaryColor3usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3us.xml
+func (gl *GL) SecondaryColor3us(red, green, blue uint16) {
+ C.gl2_0_glSecondaryColor3us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3uiv.xml
+func (gl *GL) SecondaryColor3uiv(v []uint32) {
+ C.gl2_0_glSecondaryColor3uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ui.xml
+func (gl *GL) SecondaryColor3ui(red, green, blue uint32) {
+ C.gl2_0_glSecondaryColor3ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ubv.xml
+func (gl *GL) SecondaryColor3ubv(v []uint8) {
+ C.gl2_0_glSecondaryColor3ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ub.xml
+func (gl *GL) SecondaryColor3ub(red, green, blue uint8) {
+ C.gl2_0_glSecondaryColor3ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3sv.xml
+func (gl *GL) SecondaryColor3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glSecondaryColor3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3s.xml
+func (gl *GL) SecondaryColor3s(red, green, blue int16) {
+ C.gl2_0_glSecondaryColor3s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3iv.xml
+func (gl *GL) SecondaryColor3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glSecondaryColor3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3i.xml
+func (gl *GL) SecondaryColor3i(red, green, blue int32) {
+ C.gl2_0_glSecondaryColor3i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3fv.xml
+func (gl *GL) SecondaryColor3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glSecondaryColor3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3f.xml
+func (gl *GL) SecondaryColor3f(red, green, blue float32) {
+ C.gl2_0_glSecondaryColor3f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3dv.xml
+func (gl *GL) SecondaryColor3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glSecondaryColor3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3d.xml
+func (gl *GL) SecondaryColor3d(red, green, blue float64) {
+ C.gl2_0_glSecondaryColor3d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3bv.xml
+func (gl *GL) SecondaryColor3bv(v []byte) {
+ C.gl2_0_glSecondaryColor3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3b.xml
+func (gl *GL) SecondaryColor3b(red, green, blue byte) {
+ C.gl2_0_glSecondaryColor3b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordPointer.xml
+func (gl *GL) FogCoordPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_0_glFogCoordPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoorddv.xml
+func (gl *GL) FogCoorddv(coord []float64) {
+ C.gl2_0_glFogCoorddv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&coord[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordd.xml
+func (gl *GL) FogCoordd(coord float64) {
+ C.gl2_0_glFogCoordd(gl.funcs, C.GLdouble(coord))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordfv.xml
+func (gl *GL) FogCoordfv(coord []float32) {
+ C.gl2_0_glFogCoordfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&coord[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordf.xml
+func (gl *GL) FogCoordf(coord float32) {
+ C.gl2_0_glFogCoordf(gl.funcs, C.GLfloat(coord))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4usv.xml
+func (gl *GL) VertexAttrib4usv(index glbase.Attrib, v []uint16) {
+ C.gl2_0_glVertexAttrib4usv(gl.funcs, C.GLuint(index), (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4uiv.xml
+func (gl *GL) VertexAttrib4uiv(index glbase.Attrib, v []uint32) {
+ C.gl2_0_glVertexAttrib4uiv(gl.funcs, C.GLuint(index), (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4ubv.xml
+func (gl *GL) VertexAttrib4ubv(index glbase.Attrib, v []uint8) {
+ C.gl2_0_glVertexAttrib4ubv(gl.funcs, C.GLuint(index), (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4sv.xml
+func (gl *GL) VertexAttrib4sv(index glbase.Attrib, v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertexAttrib4sv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4s.xml
+func (gl *GL) VertexAttrib4s(index glbase.Attrib, x, y, z, w int16) {
+ C.gl2_0_glVertexAttrib4s(gl.funcs, C.GLuint(index), C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4iv.xml
+func (gl *GL) VertexAttrib4iv(index glbase.Attrib, v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertexAttrib4iv(gl.funcs, C.GLuint(index), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4fv.xml
+func (gl *GL) VertexAttrib4fv(index glbase.Attrib, v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertexAttrib4fv(gl.funcs, C.GLuint(index), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4f.xml
+func (gl *GL) VertexAttrib4f(index glbase.Attrib, x, y, z, w float32) {
+ C.gl2_0_glVertexAttrib4f(gl.funcs, C.GLuint(index), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4dv.xml
+func (gl *GL) VertexAttrib4dv(index glbase.Attrib, v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertexAttrib4dv(gl.funcs, C.GLuint(index), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4d.xml
+func (gl *GL) VertexAttrib4d(index glbase.Attrib, x, y, z, w float64) {
+ C.gl2_0_glVertexAttrib4d(gl.funcs, C.GLuint(index), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4bv.xml
+func (gl *GL) VertexAttrib4bv(index glbase.Attrib, v []byte) {
+ C.gl2_0_glVertexAttrib4bv(gl.funcs, C.GLuint(index), (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nusv.xml
+func (gl *GL) VertexAttrib4Nusv(index glbase.Attrib, v []uint16) {
+ C.gl2_0_glVertexAttrib4Nusv(gl.funcs, C.GLuint(index), (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nuiv.xml
+func (gl *GL) VertexAttrib4Nuiv(index glbase.Attrib, v []uint32) {
+ C.gl2_0_glVertexAttrib4Nuiv(gl.funcs, C.GLuint(index), (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nubv.xml
+func (gl *GL) VertexAttrib4Nubv(index glbase.Attrib, v []uint8) {
+ C.gl2_0_glVertexAttrib4Nubv(gl.funcs, C.GLuint(index), (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nub.xml
+func (gl *GL) VertexAttrib4Nub(index glbase.Attrib, x, y, z, w uint8) {
+ C.gl2_0_glVertexAttrib4Nub(gl.funcs, C.GLuint(index), C.GLubyte(x), C.GLubyte(y), C.GLubyte(z), C.GLubyte(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nsv.xml
+func (gl *GL) VertexAttrib4Nsv(index glbase.Attrib, v []int16) {
+ C.gl2_0_glVertexAttrib4Nsv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Niv.xml
+func (gl *GL) VertexAttrib4Niv(index glbase.Attrib, v []int32) {
+ C.gl2_0_glVertexAttrib4Niv(gl.funcs, C.GLuint(index), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nbv.xml
+func (gl *GL) VertexAttrib4Nbv(index glbase.Attrib, v []byte) {
+ C.gl2_0_glVertexAttrib4Nbv(gl.funcs, C.GLuint(index), (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3sv.xml
+func (gl *GL) VertexAttrib3sv(index glbase.Attrib, v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertexAttrib3sv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3s.xml
+func (gl *GL) VertexAttrib3s(index glbase.Attrib, x, y, z int16) {
+ C.gl2_0_glVertexAttrib3s(gl.funcs, C.GLuint(index), C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3fv.xml
+func (gl *GL) VertexAttrib3fv(index glbase.Attrib, v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertexAttrib3fv(gl.funcs, C.GLuint(index), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3f.xml
+func (gl *GL) VertexAttrib3f(index glbase.Attrib, x, y, z float32) {
+ C.gl2_0_glVertexAttrib3f(gl.funcs, C.GLuint(index), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3dv.xml
+func (gl *GL) VertexAttrib3dv(index glbase.Attrib, v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertexAttrib3dv(gl.funcs, C.GLuint(index), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3d.xml
+func (gl *GL) VertexAttrib3d(index glbase.Attrib, x, y, z float64) {
+ C.gl2_0_glVertexAttrib3d(gl.funcs, C.GLuint(index), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2sv.xml
+func (gl *GL) VertexAttrib2sv(index glbase.Attrib, v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertexAttrib2sv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2s.xml
+func (gl *GL) VertexAttrib2s(index glbase.Attrib, x, y int16) {
+ C.gl2_0_glVertexAttrib2s(gl.funcs, C.GLuint(index), C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2fv.xml
+func (gl *GL) VertexAttrib2fv(index glbase.Attrib, v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertexAttrib2fv(gl.funcs, C.GLuint(index), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2f.xml
+func (gl *GL) VertexAttrib2f(index glbase.Attrib, x, y float32) {
+ C.gl2_0_glVertexAttrib2f(gl.funcs, C.GLuint(index), C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2dv.xml
+func (gl *GL) VertexAttrib2dv(index glbase.Attrib, v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_0_glVertexAttrib2dv(gl.funcs, C.GLuint(index), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2d.xml
+func (gl *GL) VertexAttrib2d(index glbase.Attrib, x, y float64) {
+ C.gl2_0_glVertexAttrib2d(gl.funcs, C.GLuint(index), C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1sv.xml
+func (gl *GL) VertexAttrib1sv(index glbase.Attrib, v []int16) {
+ C.gl2_0_glVertexAttrib1sv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1s.xml
+func (gl *GL) VertexAttrib1s(index glbase.Attrib, x int16) {
+ C.gl2_0_glVertexAttrib1s(gl.funcs, C.GLuint(index), C.GLshort(x))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1fv.xml
+func (gl *GL) VertexAttrib1fv(index glbase.Attrib, v []float32) {
+ C.gl2_0_glVertexAttrib1fv(gl.funcs, C.GLuint(index), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1f.xml
+func (gl *GL) VertexAttrib1f(index glbase.Attrib, x float32) {
+ C.gl2_0_glVertexAttrib1f(gl.funcs, C.GLuint(index), C.GLfloat(x))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1dv.xml
+func (gl *GL) VertexAttrib1dv(index glbase.Attrib, v []float64) {
+ C.gl2_0_glVertexAttrib1dv(gl.funcs, C.GLuint(index), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1d.xml
+func (gl *GL) VertexAttrib1d(index glbase.Attrib, x float64) {
+ C.gl2_0_glVertexAttrib1d(gl.funcs, C.GLuint(index), C.GLdouble(x))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.1/funcs.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.1/funcs.cpp
new file mode 100644
index 000000000..6235d6e81
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.1/funcs.cpp
@@ -0,0 +1,3480 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#include <QOpenGLContext>
+#include <QtGui/qopenglfunctions_2_1.h>
+
+#include "funcs.h"
+
+void *gl2_1_funcs() {
+ QOpenGLFunctions_2_1* funcs = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_2_1>();
+ if (!funcs) {
+ return 0;
+ }
+ funcs->initializeOpenGLFunctions();
+ return funcs;
+}
+
+
+void gl2_1_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glViewport(x, y, width, height);
+}
+
+void gl2_1_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDepthRange(nearVal, farVal);
+}
+
+GLboolean gl2_1_glIsEnabled(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glIsEnabled(cap);
+}
+
+void gl2_1_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameteriv(target, level, pname, params);
+}
+
+void gl2_1_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameterfv(target, level, pname, params);
+}
+
+void gl2_1_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetTexParameteriv(target, pname, params);
+}
+
+void gl2_1_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetTexParameterfv(target, pname, params);
+}
+
+void gl2_1_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetTexImage(target, level, format, gltype, pixels);
+}
+
+void gl2_1_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetIntegerv(pname, params);
+}
+
+void gl2_1_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetFloatv(pname, params);
+}
+
+GLenum gl2_1_glGetError(void *_glfuncs)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glGetError();
+}
+
+void gl2_1_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetDoublev(pname, params);
+}
+
+void gl2_1_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetBooleanv(pname, params);
+}
+
+void gl2_1_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glReadPixels(x, y, width, height, format, gltype, pixels);
+}
+
+void gl2_1_glReadBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glReadBuffer(mode);
+}
+
+void gl2_1_glPixelStorei(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPixelStorei(pname, param);
+}
+
+void gl2_1_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPixelStoref(pname, param);
+}
+
+void gl2_1_glDepthFunc(void *_glfuncs, GLenum glfunc)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDepthFunc(glfunc);
+}
+
+void gl2_1_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glStencilOp(fail, zfail, zpass);
+}
+
+void gl2_1_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glStencilFunc(glfunc, ref, mask);
+}
+
+void gl2_1_glLogicOp(void *_glfuncs, GLenum opcode)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLogicOp(opcode);
+}
+
+void gl2_1_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glBlendFunc(sfactor, dfactor);
+}
+
+void gl2_1_glFlush(void *_glfuncs)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glFlush();
+}
+
+void gl2_1_glFinish(void *_glfuncs)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glFinish();
+}
+
+void gl2_1_glEnable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEnable(cap);
+}
+
+void gl2_1_glDisable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDisable(cap);
+}
+
+void gl2_1_glDepthMask(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDepthMask(flag);
+}
+
+void gl2_1_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColorMask(red, green, blue, alpha);
+}
+
+void gl2_1_glStencilMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glStencilMask(mask);
+}
+
+void gl2_1_glClearDepth(void *_glfuncs, GLdouble depth)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glClearDepth(depth);
+}
+
+void gl2_1_glClearStencil(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glClearStencil(s);
+}
+
+void gl2_1_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glClearColor(red, green, blue, alpha);
+}
+
+void gl2_1_glClear(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glClear(mask);
+}
+
+void gl2_1_glDrawBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDrawBuffer(mode);
+}
+
+void gl2_1_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexImage2D(target, level, internalFormat, width, height, border, format, gltype, pixels);
+}
+
+void gl2_1_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexImage1D(target, level, internalFormat, width, border, format, gltype, pixels);
+}
+
+void gl2_1_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexParameteriv(target, pname, params);
+}
+
+void gl2_1_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexParameteri(target, pname, param);
+}
+
+void gl2_1_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexParameterfv(target, pname, params);
+}
+
+void gl2_1_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexParameterf(target, pname, param);
+}
+
+void gl2_1_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glScissor(x, y, width, height);
+}
+
+void gl2_1_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPolygonMode(face, mode);
+}
+
+void gl2_1_glPointSize(void *_glfuncs, GLfloat size)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPointSize(size);
+}
+
+void gl2_1_glLineWidth(void *_glfuncs, GLfloat width)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLineWidth(width);
+}
+
+void gl2_1_glHint(void *_glfuncs, GLenum target, GLenum mode)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glHint(target, mode);
+}
+
+void gl2_1_glFrontFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glFrontFace(mode);
+}
+
+void gl2_1_glCullFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCullFace(mode);
+}
+
+void gl2_1_glIndexubv(void *_glfuncs, const GLubyte* c)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glIndexubv(c);
+}
+
+void gl2_1_glIndexub(void *_glfuncs, GLubyte c)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glIndexub(c);
+}
+
+GLboolean gl2_1_glIsTexture(void *_glfuncs, GLuint texture)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glIsTexture(texture);
+}
+
+void gl2_1_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGenTextures(n, textures);
+}
+
+void gl2_1_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDeleteTextures(n, textures);
+}
+
+void gl2_1_glBindTexture(void *_glfuncs, GLenum target, GLuint texture)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glBindTexture(target, texture);
+}
+
+void gl2_1_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, gltype, pixels);
+}
+
+void gl2_1_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexSubImage1D(target, level, xoffset, width, format, gltype, pixels);
+}
+
+void gl2_1_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
+}
+
+void gl2_1_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage1D(target, level, xoffset, x, y, width);
+}
+
+void gl2_1_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
+}
+
+void gl2_1_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCopyTexImage1D(target, level, internalFormat, x, y, width, border);
+}
+
+void gl2_1_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPolygonOffset(factor, units);
+}
+
+void gl2_1_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDrawElements(mode, count, gltype, indices);
+}
+
+void gl2_1_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDrawArrays(mode, first, count);
+}
+
+void gl2_1_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
+}
+
+void gl2_1_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, gltype, pixels);
+}
+
+void gl2_1_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexImage3D(target, level, internalFormat, width, height, depth, border, format, gltype, pixels);
+}
+
+void gl2_1_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDrawRangeElements(mode, start, end, count, gltype, indices);
+}
+
+void gl2_1_glBlendEquation(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glBlendEquation(mode);
+}
+
+void gl2_1_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glBlendColor(red, green, blue, alpha);
+}
+
+void gl2_1_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetCompressedTexImage(target, level, img);
+}
+
+void gl2_1_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data);
+}
+
+void gl2_1_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
+}
+
+void gl2_1_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
+}
+
+void gl2_1_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage1D(target, level, internalFormat, width, border, imageSize, data);
+}
+
+void gl2_1_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data);
+}
+
+void gl2_1_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage3D(target, level, internalFormat, width, height, depth, border, imageSize, data);
+}
+
+void gl2_1_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSampleCoverage(value, invert);
+}
+
+void gl2_1_glActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glActiveTexture(texture);
+}
+
+void gl2_1_glPointParameteriv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPointParameteriv(pname, params);
+}
+
+void gl2_1_glPointParameteri(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPointParameteri(pname, param);
+}
+
+void gl2_1_glPointParameterfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPointParameterfv(pname, params);
+}
+
+void gl2_1_glPointParameterf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPointParameterf(pname, param);
+}
+
+void gl2_1_glMultiDrawArrays(void *_glfuncs, GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiDrawArrays(mode, first, count, drawcount);
+}
+
+void gl2_1_glBlendFuncSeparate(void *_glfuncs, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
+}
+
+void gl2_1_glGetBufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetBufferParameteriv(target, pname, params);
+}
+
+GLboolean gl2_1_glUnmapBuffer(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glUnmapBuffer(target);
+}
+
+void gl2_1_glGetBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetBufferSubData(target, offset, size, data);
+}
+
+void gl2_1_glBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glBufferSubData(target, offset, size, data);
+}
+
+void gl2_1_glBufferData(void *_glfuncs, GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glBufferData(target, size, data, usage);
+}
+
+GLboolean gl2_1_glIsBuffer(void *_glfuncs, GLuint buffer)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glIsBuffer(buffer);
+}
+
+void gl2_1_glGenBuffers(void *_glfuncs, GLsizei n, GLuint* buffers)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGenBuffers(n, buffers);
+}
+
+void gl2_1_glDeleteBuffers(void *_glfuncs, GLsizei n, const GLuint* buffers)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDeleteBuffers(n, buffers);
+}
+
+void gl2_1_glBindBuffer(void *_glfuncs, GLenum target, GLuint buffer)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glBindBuffer(target, buffer);
+}
+
+void gl2_1_glGetQueryObjectuiv(void *_glfuncs, GLuint id, GLenum pname, GLuint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetQueryObjectuiv(id, pname, params);
+}
+
+void gl2_1_glGetQueryObjectiv(void *_glfuncs, GLuint id, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetQueryObjectiv(id, pname, params);
+}
+
+void gl2_1_glGetQueryiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetQueryiv(target, pname, params);
+}
+
+void gl2_1_glEndQuery(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEndQuery(target);
+}
+
+void gl2_1_glBeginQuery(void *_glfuncs, GLenum target, GLuint id)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glBeginQuery(target, id);
+}
+
+GLboolean gl2_1_glIsQuery(void *_glfuncs, GLuint id)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glIsQuery(id);
+}
+
+void gl2_1_glDeleteQueries(void *_glfuncs, GLsizei n, const GLuint* ids)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDeleteQueries(n, ids);
+}
+
+void gl2_1_glGenQueries(void *_glfuncs, GLsizei n, GLuint* ids)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGenQueries(n, ids);
+}
+
+void gl2_1_glVertexAttribPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLboolean normalized, GLsizei stride, const GLvoid* offset)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttribPointer(index, size, gltype, normalized, stride, offset);
+}
+
+void gl2_1_glValidateProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glValidateProgram(program);
+}
+
+void gl2_1_glUniformMatrix4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix4fv(location, count, transpose, value);
+}
+
+void gl2_1_glUniformMatrix3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix3fv(location, count, transpose, value);
+}
+
+void gl2_1_glUniformMatrix2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix2fv(location, count, transpose, value);
+}
+
+void gl2_1_glUniform4iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform4iv(location, count, value);
+}
+
+void gl2_1_glUniform3iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform3iv(location, count, value);
+}
+
+void gl2_1_glUniform2iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform2iv(location, count, value);
+}
+
+void gl2_1_glUniform1iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform1iv(location, count, value);
+}
+
+void gl2_1_glUniform4fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform4fv(location, count, value);
+}
+
+void gl2_1_glUniform3fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform3fv(location, count, value);
+}
+
+void gl2_1_glUniform2fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform2fv(location, count, value);
+}
+
+void gl2_1_glUniform1fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform1fv(location, count, value);
+}
+
+void gl2_1_glUniform4i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform4i(location, v0, v1, v2, v3);
+}
+
+void gl2_1_glUniform3i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform3i(location, v0, v1, v2);
+}
+
+void gl2_1_glUniform2i(void *_glfuncs, GLint location, GLint v0, GLint v1)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform2i(location, v0, v1);
+}
+
+void gl2_1_glUniform1i(void *_glfuncs, GLint location, GLint v0)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform1i(location, v0);
+}
+
+void gl2_1_glUniform4f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform4f(location, v0, v1, v2, v3);
+}
+
+void gl2_1_glUniform3f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform3f(location, v0, v1, v2);
+}
+
+void gl2_1_glUniform2f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform2f(location, v0, v1);
+}
+
+void gl2_1_glUniform1f(void *_glfuncs, GLint location, GLfloat v0)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniform1f(location, v0);
+}
+
+void gl2_1_glUseProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUseProgram(program);
+}
+
+void gl2_1_glShaderSource(void *_glfuncs, GLuint shader, GLsizei count, const GLchar** source, const GLint* length)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glShaderSource(shader, count, source, length);
+}
+
+void gl2_1_glLinkProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLinkProgram(program);
+}
+
+GLboolean gl2_1_glIsShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glIsShader(shader);
+}
+
+GLboolean gl2_1_glIsProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glIsProgram(program);
+}
+
+void gl2_1_glGetVertexAttribiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribiv(index, pname, params);
+}
+
+void gl2_1_glGetVertexAttribfv(void *_glfuncs, GLuint index, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribfv(index, pname, params);
+}
+
+void gl2_1_glGetVertexAttribdv(void *_glfuncs, GLuint index, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribdv(index, pname, params);
+}
+
+void gl2_1_glGetUniformiv(void *_glfuncs, GLuint program, GLint location, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetUniformiv(program, location, params);
+}
+
+void gl2_1_glGetUniformfv(void *_glfuncs, GLuint program, GLint location, GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetUniformfv(program, location, params);
+}
+
+GLint gl2_1_glGetUniformLocation(void *_glfuncs, GLuint program, const GLchar* name)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glGetUniformLocation(program, name);
+}
+
+void gl2_1_glGetShaderSource(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* source)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetShaderSource(shader, bufSize, length, source);
+}
+
+void gl2_1_glGetShaderInfoLog(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetShaderInfoLog(shader, bufSize, length, infoLog);
+}
+
+void gl2_1_glGetShaderiv(void *_glfuncs, GLuint shader, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetShaderiv(shader, pname, params);
+}
+
+void gl2_1_glGetProgramInfoLog(void *_glfuncs, GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetProgramInfoLog(program, bufSize, length, infoLog);
+}
+
+void gl2_1_glGetProgramiv(void *_glfuncs, GLuint program, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetProgramiv(program, pname, params);
+}
+
+GLint gl2_1_glGetAttribLocation(void *_glfuncs, GLuint program, const GLchar* name)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glGetAttribLocation(program, name);
+}
+
+void gl2_1_glGetAttachedShaders(void *_glfuncs, GLuint program, GLsizei maxCount, GLsizei* count, GLuint* obj)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetAttachedShaders(program, maxCount, count, obj);
+}
+
+void gl2_1_glGetActiveUniform(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetActiveUniform(program, index, bufSize, length, size, gltype, name);
+}
+
+void gl2_1_glGetActiveAttrib(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetActiveAttrib(program, index, bufSize, length, size, gltype, name);
+}
+
+void gl2_1_glEnableVertexAttribArray(void *_glfuncs, GLuint index)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEnableVertexAttribArray(index);
+}
+
+void gl2_1_glDisableVertexAttribArray(void *_glfuncs, GLuint index)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDisableVertexAttribArray(index);
+}
+
+void gl2_1_glDetachShader(void *_glfuncs, GLuint program, GLuint shader)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDetachShader(program, shader);
+}
+
+void gl2_1_glDeleteShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDeleteShader(shader);
+}
+
+void gl2_1_glDeleteProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDeleteProgram(program);
+}
+
+GLuint gl2_1_glCreateShader(void *_glfuncs, GLenum gltype)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glCreateShader(gltype);
+}
+
+GLuint gl2_1_glCreateProgram(void *_glfuncs)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glCreateProgram();
+}
+
+void gl2_1_glCompileShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCompileShader(shader);
+}
+
+void gl2_1_glBindAttribLocation(void *_glfuncs, GLuint program, GLuint index, const GLchar* name)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glBindAttribLocation(program, index, name);
+}
+
+void gl2_1_glAttachShader(void *_glfuncs, GLuint program, GLuint shader)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glAttachShader(program, shader);
+}
+
+void gl2_1_glStencilMaskSeparate(void *_glfuncs, GLenum face, GLuint mask)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glStencilMaskSeparate(face, mask);
+}
+
+void gl2_1_glStencilFuncSeparate(void *_glfuncs, GLenum face, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glStencilFuncSeparate(face, glfunc, ref, mask);
+}
+
+void gl2_1_glStencilOpSeparate(void *_glfuncs, GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glStencilOpSeparate(face, sfail, dpfail, dppass);
+}
+
+void gl2_1_glDrawBuffers(void *_glfuncs, GLsizei n, const GLenum* bufs)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDrawBuffers(n, bufs);
+}
+
+void gl2_1_glBlendEquationSeparate(void *_glfuncs, GLenum modeRGB, GLenum modeAlpha)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glBlendEquationSeparate(modeRGB, modeAlpha);
+}
+
+void gl2_1_glUniformMatrix4x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix4x3fv(location, count, transpose, value);
+}
+
+void gl2_1_glUniformMatrix3x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix3x4fv(location, count, transpose, value);
+}
+
+void gl2_1_glUniformMatrix4x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix4x2fv(location, count, transpose, value);
+}
+
+void gl2_1_glUniformMatrix2x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix2x4fv(location, count, transpose, value);
+}
+
+void gl2_1_glUniformMatrix3x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix3x2fv(location, count, transpose, value);
+}
+
+void gl2_1_glUniformMatrix2x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix2x3fv(location, count, transpose, value);
+}
+
+void gl2_1_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTranslatef(x, y, z);
+}
+
+void gl2_1_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTranslated(x, y, z);
+}
+
+void gl2_1_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glScalef(x, y, z);
+}
+
+void gl2_1_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glScaled(x, y, z);
+}
+
+void gl2_1_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRotatef(angle, x, y, z);
+}
+
+void gl2_1_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRotated(angle, x, y, z);
+}
+
+void gl2_1_glPushMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPushMatrix();
+}
+
+void gl2_1_glPopMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPopMatrix();
+}
+
+void gl2_1_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glOrtho(left, right, bottom, top, zNear, zFar);
+}
+
+void gl2_1_glMultMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultMatrixd(m);
+}
+
+void gl2_1_glMultMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultMatrixf(m);
+}
+
+void gl2_1_glMatrixMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMatrixMode(mode);
+}
+
+void gl2_1_glLoadMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLoadMatrixd(m);
+}
+
+void gl2_1_glLoadMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLoadMatrixf(m);
+}
+
+void gl2_1_glLoadIdentity(void *_glfuncs)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLoadIdentity();
+}
+
+void gl2_1_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glFrustum(left, right, bottom, top, zNear, zFar);
+}
+
+GLboolean gl2_1_glIsList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glIsList(list);
+}
+
+void gl2_1_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetTexGeniv(coord, pname, params);
+}
+
+void gl2_1_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetTexGenfv(coord, pname, params);
+}
+
+void gl2_1_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetTexGendv(coord, pname, params);
+}
+
+void gl2_1_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetTexEnviv(target, pname, params);
+}
+
+void gl2_1_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetTexEnvfv(target, pname, params);
+}
+
+void gl2_1_glGetPolygonStipple(void *_glfuncs, GLubyte* mask)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetPolygonStipple(mask);
+}
+
+void gl2_1_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetPixelMapusv(glmap, values);
+}
+
+void gl2_1_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetPixelMapuiv(glmap, values);
+}
+
+void gl2_1_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetPixelMapfv(glmap, values);
+}
+
+void gl2_1_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetMaterialiv(face, pname, params);
+}
+
+void gl2_1_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetMaterialfv(face, pname, params);
+}
+
+void gl2_1_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetMapiv(target, query, v);
+}
+
+void gl2_1_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetMapfv(target, query, v);
+}
+
+void gl2_1_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetMapdv(target, query, v);
+}
+
+void gl2_1_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetLightiv(light, pname, params);
+}
+
+void gl2_1_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetLightfv(light, pname, params);
+}
+
+void gl2_1_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetClipPlane(plane, equation);
+}
+
+void gl2_1_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDrawPixels(width, height, format, gltype, pixels);
+}
+
+void gl2_1_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCopyPixels(x, y, width, height, gltype);
+}
+
+void gl2_1_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPixelMapusv(glmap, mapsize, values);
+}
+
+void gl2_1_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPixelMapuiv(glmap, mapsize, values);
+}
+
+void gl2_1_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPixelMapfv(glmap, mapsize, values);
+}
+
+void gl2_1_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPixelTransferi(pname, param);
+}
+
+void gl2_1_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPixelTransferf(pname, param);
+}
+
+void gl2_1_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPixelZoom(xfactor, yfactor);
+}
+
+void gl2_1_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glAlphaFunc(glfunc, ref);
+}
+
+void gl2_1_glEvalPoint2(void *_glfuncs, GLint i, GLint j)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEvalPoint2(i, j);
+}
+
+void gl2_1_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEvalMesh2(mode, i1, i2, j1, j2);
+}
+
+void gl2_1_glEvalPoint1(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEvalPoint1(i);
+}
+
+void gl2_1_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEvalMesh1(mode, i1, i2);
+}
+
+void gl2_1_glEvalCoord2fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord2fv(u);
+}
+
+void gl2_1_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord2f(u, v);
+}
+
+void gl2_1_glEvalCoord2dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord2dv(u);
+}
+
+void gl2_1_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord2d(u, v);
+}
+
+void gl2_1_glEvalCoord1fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord1fv(u);
+}
+
+void gl2_1_glEvalCoord1f(void *_glfuncs, GLfloat u)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord1f(u);
+}
+
+void gl2_1_glEvalCoord1dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord1dv(u);
+}
+
+void gl2_1_glEvalCoord1d(void *_glfuncs, GLdouble u)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEvalCoord1d(u);
+}
+
+void gl2_1_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMapGrid2f(un, u1, u2, vn, v1, v2);
+}
+
+void gl2_1_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMapGrid2d(un, u1, u2, vn, v1, v2);
+}
+
+void gl2_1_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMapGrid1f(un, u1, u2);
+}
+
+void gl2_1_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMapGrid1d(un, u1, u2);
+}
+
+void gl2_1_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl2_1_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl2_1_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMap1f(target, u1, u2, stride, order, points);
+}
+
+void gl2_1_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMap1d(target, u1, u2, stride, order, points);
+}
+
+void gl2_1_glPushAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPushAttrib(mask);
+}
+
+void gl2_1_glPopAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPopAttrib();
+}
+
+void gl2_1_glAccum(void *_glfuncs, GLenum op, GLfloat value)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glAccum(op, value);
+}
+
+void gl2_1_glIndexMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glIndexMask(mask);
+}
+
+void gl2_1_glClearIndex(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glClearIndex(c);
+}
+
+void gl2_1_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glClearAccum(red, green, blue, alpha);
+}
+
+void gl2_1_glPushName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPushName(name);
+}
+
+void gl2_1_glPopName(void *_glfuncs)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPopName();
+}
+
+void gl2_1_glPassThrough(void *_glfuncs, GLfloat token)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPassThrough(token);
+}
+
+void gl2_1_glLoadName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLoadName(name);
+}
+
+void gl2_1_glInitNames(void *_glfuncs)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glInitNames();
+}
+
+GLint gl2_1_glRenderMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glRenderMode(mode);
+}
+
+void gl2_1_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSelectBuffer(size, buffer);
+}
+
+void gl2_1_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glFeedbackBuffer(size, gltype, buffer);
+}
+
+void gl2_1_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexGeniv(coord, pname, params);
+}
+
+void gl2_1_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexGeni(coord, pname, param);
+}
+
+void gl2_1_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexGenfv(coord, pname, params);
+}
+
+void gl2_1_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexGenf(coord, pname, param);
+}
+
+void gl2_1_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexGendv(coord, pname, params);
+}
+
+void gl2_1_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexGend(coord, pname, param);
+}
+
+void gl2_1_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexEnviv(target, pname, params);
+}
+
+void gl2_1_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexEnvi(target, pname, param);
+}
+
+void gl2_1_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexEnvfv(target, pname, params);
+}
+
+void gl2_1_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexEnvf(target, pname, param);
+}
+
+void gl2_1_glShadeModel(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glShadeModel(mode);
+}
+
+void gl2_1_glPolygonStipple(void *_glfuncs, const GLubyte* mask)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPolygonStipple(mask);
+}
+
+void gl2_1_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMaterialiv(face, pname, params);
+}
+
+void gl2_1_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMateriali(face, pname, param);
+}
+
+void gl2_1_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMaterialfv(face, pname, params);
+}
+
+void gl2_1_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMaterialf(face, pname, param);
+}
+
+void gl2_1_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLineStipple(factor, pattern);
+}
+
+void gl2_1_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLightModeliv(pname, params);
+}
+
+void gl2_1_glLightModeli(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLightModeli(pname, param);
+}
+
+void gl2_1_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLightModelfv(pname, params);
+}
+
+void gl2_1_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLightModelf(pname, param);
+}
+
+void gl2_1_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLightiv(light, pname, params);
+}
+
+void gl2_1_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLighti(light, pname, param);
+}
+
+void gl2_1_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLightfv(light, pname, params);
+}
+
+void gl2_1_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLightf(light, pname, param);
+}
+
+void gl2_1_glFogiv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glFogiv(pname, params);
+}
+
+void gl2_1_glFogi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glFogi(pname, param);
+}
+
+void gl2_1_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glFogfv(pname, params);
+}
+
+void gl2_1_glFogf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glFogf(pname, param);
+}
+
+void gl2_1_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColorMaterial(face, mode);
+}
+
+void gl2_1_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glClipPlane(plane, equation);
+}
+
+void gl2_1_glVertex4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex4sv(v);
+}
+
+void gl2_1_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex4s(x, y, z, w);
+}
+
+void gl2_1_glVertex4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex4iv(v);
+}
+
+void gl2_1_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex4i(x, y, z, w);
+}
+
+void gl2_1_glVertex4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex4fv(v);
+}
+
+void gl2_1_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex4f(x, y, z, w);
+}
+
+void gl2_1_glVertex4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex4dv(v);
+}
+
+void gl2_1_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex4d(x, y, z, w);
+}
+
+void gl2_1_glVertex3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex3sv(v);
+}
+
+void gl2_1_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex3s(x, y, z);
+}
+
+void gl2_1_glVertex3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex3iv(v);
+}
+
+void gl2_1_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex3i(x, y, z);
+}
+
+void gl2_1_glVertex3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex3fv(v);
+}
+
+void gl2_1_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex3f(x, y, z);
+}
+
+void gl2_1_glVertex3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex3dv(v);
+}
+
+void gl2_1_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex3d(x, y, z);
+}
+
+void gl2_1_glVertex2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex2sv(v);
+}
+
+void gl2_1_glVertex2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex2s(x, y);
+}
+
+void gl2_1_glVertex2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex2iv(v);
+}
+
+void gl2_1_glVertex2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex2i(x, y);
+}
+
+void gl2_1_glVertex2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex2fv(v);
+}
+
+void gl2_1_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex2f(x, y);
+}
+
+void gl2_1_glVertex2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex2dv(v);
+}
+
+void gl2_1_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertex2d(x, y);
+}
+
+void gl2_1_glTexCoord4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4sv(v);
+}
+
+void gl2_1_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4s(s, t, r, q);
+}
+
+void gl2_1_glTexCoord4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4iv(v);
+}
+
+void gl2_1_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4i(s, t, r, q);
+}
+
+void gl2_1_glTexCoord4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4fv(v);
+}
+
+void gl2_1_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4f(s, t, r, q);
+}
+
+void gl2_1_glTexCoord4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4dv(v);
+}
+
+void gl2_1_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord4d(s, t, r, q);
+}
+
+void gl2_1_glTexCoord3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3sv(v);
+}
+
+void gl2_1_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3s(s, t, r);
+}
+
+void gl2_1_glTexCoord3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3iv(v);
+}
+
+void gl2_1_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3i(s, t, r);
+}
+
+void gl2_1_glTexCoord3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3fv(v);
+}
+
+void gl2_1_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3f(s, t, r);
+}
+
+void gl2_1_glTexCoord3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3dv(v);
+}
+
+void gl2_1_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord3d(s, t, r);
+}
+
+void gl2_1_glTexCoord2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2sv(v);
+}
+
+void gl2_1_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2s(s, t);
+}
+
+void gl2_1_glTexCoord2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2iv(v);
+}
+
+void gl2_1_glTexCoord2i(void *_glfuncs, GLint s, GLint t)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2i(s, t);
+}
+
+void gl2_1_glTexCoord2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2fv(v);
+}
+
+void gl2_1_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2f(s, t);
+}
+
+void gl2_1_glTexCoord2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2dv(v);
+}
+
+void gl2_1_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord2d(s, t);
+}
+
+void gl2_1_glTexCoord1sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1sv(v);
+}
+
+void gl2_1_glTexCoord1s(void *_glfuncs, GLshort s)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1s(s);
+}
+
+void gl2_1_glTexCoord1iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1iv(v);
+}
+
+void gl2_1_glTexCoord1i(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1i(s);
+}
+
+void gl2_1_glTexCoord1fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1fv(v);
+}
+
+void gl2_1_glTexCoord1f(void *_glfuncs, GLfloat s)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1f(s);
+}
+
+void gl2_1_glTexCoord1dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1dv(v);
+}
+
+void gl2_1_glTexCoord1d(void *_glfuncs, GLdouble s)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoord1d(s);
+}
+
+void gl2_1_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRectsv(v1, v2);
+}
+
+void gl2_1_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRects(x1, y1, x2, y2);
+}
+
+void gl2_1_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRectiv(v1, v2);
+}
+
+void gl2_1_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRecti(x1, y1, x2, y2);
+}
+
+void gl2_1_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRectfv(v1, v2);
+}
+
+void gl2_1_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRectf(x1, y1, x2, y2);
+}
+
+void gl2_1_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRectdv(v1, v2);
+}
+
+void gl2_1_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRectd(x1, y1, x2, y2);
+}
+
+void gl2_1_glRasterPos4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4sv(v);
+}
+
+void gl2_1_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4s(x, y, z, w);
+}
+
+void gl2_1_glRasterPos4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4iv(v);
+}
+
+void gl2_1_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4i(x, y, z, w);
+}
+
+void gl2_1_glRasterPos4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4fv(v);
+}
+
+void gl2_1_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4f(x, y, z, w);
+}
+
+void gl2_1_glRasterPos4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4dv(v);
+}
+
+void gl2_1_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos4d(x, y, z, w);
+}
+
+void gl2_1_glRasterPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3sv(v);
+}
+
+void gl2_1_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3s(x, y, z);
+}
+
+void gl2_1_glRasterPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3iv(v);
+}
+
+void gl2_1_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3i(x, y, z);
+}
+
+void gl2_1_glRasterPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3fv(v);
+}
+
+void gl2_1_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3f(x, y, z);
+}
+
+void gl2_1_glRasterPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3dv(v);
+}
+
+void gl2_1_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos3d(x, y, z);
+}
+
+void gl2_1_glRasterPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2sv(v);
+}
+
+void gl2_1_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2s(x, y);
+}
+
+void gl2_1_glRasterPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2iv(v);
+}
+
+void gl2_1_glRasterPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2i(x, y);
+}
+
+void gl2_1_glRasterPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2fv(v);
+}
+
+void gl2_1_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2f(x, y);
+}
+
+void gl2_1_glRasterPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2dv(v);
+}
+
+void gl2_1_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glRasterPos2d(x, y);
+}
+
+void gl2_1_glNormal3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glNormal3sv(v);
+}
+
+void gl2_1_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glNormal3s(nx, ny, nz);
+}
+
+void gl2_1_glNormal3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glNormal3iv(v);
+}
+
+void gl2_1_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glNormal3i(nx, ny, nz);
+}
+
+void gl2_1_glNormal3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glNormal3fv(v);
+}
+
+void gl2_1_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glNormal3f(nx, ny, nz);
+}
+
+void gl2_1_glNormal3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glNormal3dv(v);
+}
+
+void gl2_1_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glNormal3d(nx, ny, nz);
+}
+
+void gl2_1_glNormal3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glNormal3bv(v);
+}
+
+void gl2_1_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glNormal3b(nx, ny, nz);
+}
+
+void gl2_1_glIndexsv(void *_glfuncs, const GLshort* c)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glIndexsv(c);
+}
+
+void gl2_1_glIndexs(void *_glfuncs, GLshort c)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glIndexs(c);
+}
+
+void gl2_1_glIndexiv(void *_glfuncs, const GLint* c)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glIndexiv(c);
+}
+
+void gl2_1_glIndexi(void *_glfuncs, GLint c)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glIndexi(c);
+}
+
+void gl2_1_glIndexfv(void *_glfuncs, const GLfloat* c)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glIndexfv(c);
+}
+
+void gl2_1_glIndexf(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glIndexf(c);
+}
+
+void gl2_1_glIndexdv(void *_glfuncs, const GLdouble* c)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glIndexdv(c);
+}
+
+void gl2_1_glIndexd(void *_glfuncs, GLdouble c)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glIndexd(c);
+}
+
+void gl2_1_glEnd(void *_glfuncs)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEnd();
+}
+
+void gl2_1_glEdgeFlagv(void *_glfuncs, const GLboolean* flag)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEdgeFlagv(flag);
+}
+
+void gl2_1_glEdgeFlag(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEdgeFlag(flag);
+}
+
+void gl2_1_glColor4usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4usv(v);
+}
+
+void gl2_1_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4us(red, green, blue, alpha);
+}
+
+void gl2_1_glColor4uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4uiv(v);
+}
+
+void gl2_1_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4ui(red, green, blue, alpha);
+}
+
+void gl2_1_glColor4ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4ubv(v);
+}
+
+void gl2_1_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4ub(red, green, blue, alpha);
+}
+
+void gl2_1_glColor4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4sv(v);
+}
+
+void gl2_1_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4s(red, green, blue, alpha);
+}
+
+void gl2_1_glColor4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4iv(v);
+}
+
+void gl2_1_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4i(red, green, blue, alpha);
+}
+
+void gl2_1_glColor4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4fv(v);
+}
+
+void gl2_1_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4f(red, green, blue, alpha);
+}
+
+void gl2_1_glColor4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4dv(v);
+}
+
+void gl2_1_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4d(red, green, blue, alpha);
+}
+
+void gl2_1_glColor4bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4bv(v);
+}
+
+void gl2_1_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor4b(red, green, blue, alpha);
+}
+
+void gl2_1_glColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3usv(v);
+}
+
+void gl2_1_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3us(red, green, blue);
+}
+
+void gl2_1_glColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3uiv(v);
+}
+
+void gl2_1_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3ui(red, green, blue);
+}
+
+void gl2_1_glColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3ubv(v);
+}
+
+void gl2_1_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3ub(red, green, blue);
+}
+
+void gl2_1_glColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3sv(v);
+}
+
+void gl2_1_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3s(red, green, blue);
+}
+
+void gl2_1_glColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3iv(v);
+}
+
+void gl2_1_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3i(red, green, blue);
+}
+
+void gl2_1_glColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3fv(v);
+}
+
+void gl2_1_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3f(red, green, blue);
+}
+
+void gl2_1_glColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3dv(v);
+}
+
+void gl2_1_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3d(red, green, blue);
+}
+
+void gl2_1_glColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3bv(v);
+}
+
+void gl2_1_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColor3b(red, green, blue);
+}
+
+void gl2_1_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
+}
+
+void gl2_1_glBegin(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glBegin(mode);
+}
+
+void gl2_1_glListBase(void *_glfuncs, GLuint base)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glListBase(base);
+}
+
+GLuint gl2_1_glGenLists(void *_glfuncs, GLsizei range_)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glGenLists(range_);
+}
+
+void gl2_1_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDeleteLists(list, range_);
+}
+
+void gl2_1_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCallLists(n, gltype, lists);
+}
+
+void gl2_1_glCallList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCallList(list);
+}
+
+void gl2_1_glEndList(void *_glfuncs)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEndList();
+}
+
+void gl2_1_glNewList(void *_glfuncs, GLuint list, GLenum mode)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glNewList(list, mode);
+}
+
+void gl2_1_glPushClientAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPushClientAttrib(mask);
+}
+
+void gl2_1_glPopClientAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPopClientAttrib();
+}
+
+void gl2_1_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glPrioritizeTextures(n, textures, priorities);
+}
+
+GLboolean gl2_1_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ return _qglfuncs->glAreTexturesResident(n, textures, residences);
+}
+
+void gl2_1_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexPointer(size, gltype, stride, pointer);
+}
+
+void gl2_1_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glTexCoordPointer(size, gltype, stride, pointer);
+}
+
+void gl2_1_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glNormalPointer(gltype, stride, pointer);
+}
+
+void gl2_1_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glInterleavedArrays(format, stride, pointer);
+}
+
+void gl2_1_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glIndexPointer(gltype, stride, pointer);
+}
+
+void gl2_1_glEnableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEnableClientState(array);
+}
+
+void gl2_1_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glEdgeFlagPointer(stride, pointer);
+}
+
+void gl2_1_glDisableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glDisableClientState(array);
+}
+
+void gl2_1_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColorPointer(size, gltype, stride, pointer);
+}
+
+void gl2_1_glArrayElement(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glArrayElement(i);
+}
+
+void gl2_1_glResetMinmax(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glResetMinmax(target);
+}
+
+void gl2_1_glResetHistogram(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glResetHistogram(target);
+}
+
+void gl2_1_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMinmax(target, internalFormat, sink);
+}
+
+void gl2_1_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glHistogram(target, width, internalFormat, sink);
+}
+
+void gl2_1_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameteriv(target, pname, params);
+}
+
+void gl2_1_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameterfv(target, pname, params);
+}
+
+void gl2_1_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetMinmax(target, reset, format, gltype, values);
+}
+
+void gl2_1_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameteriv(target, pname, params);
+}
+
+void gl2_1_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameterfv(target, pname, params);
+}
+
+void gl2_1_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetHistogram(target, reset, format, gltype, values);
+}
+
+void gl2_1_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSeparableFilter2D(target, internalFormat, width, height, format, gltype, row, column);
+}
+
+void gl2_1_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetSeparableFilter(target, format, gltype, row, column, span);
+}
+
+void gl2_1_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameteriv(target, pname, params);
+}
+
+void gl2_1_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameterfv(target, pname, params);
+}
+
+void gl2_1_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetConvolutionFilter(target, format, gltype, image);
+}
+
+void gl2_1_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter2D(target, internalFormat, x, y, width, height);
+}
+
+void gl2_1_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter1D(target, internalFormat, x, y, width);
+}
+
+void gl2_1_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteriv(target, pname, params);
+}
+
+void gl2_1_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteri(target, pname, params);
+}
+
+void gl2_1_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterfv(target, pname, params);
+}
+
+void gl2_1_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterf(target, pname, params);
+}
+
+void gl2_1_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter2D(target, internalFormat, width, height, format, gltype, image);
+}
+
+void gl2_1_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter1D(target, internalFormat, width, format, gltype, image);
+}
+
+void gl2_1_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCopyColorSubTable(target, start, x, y, width);
+}
+
+void gl2_1_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColorSubTable(target, start, count, format, gltype, data);
+}
+
+void gl2_1_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameteriv(target, pname, params);
+}
+
+void gl2_1_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameterfv(target, pname, params);
+}
+
+void gl2_1_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glGetColorTable(target, format, gltype, table);
+}
+
+void gl2_1_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glCopyColorTable(target, internalFormat, x, y, width);
+}
+
+void gl2_1_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColorTableParameteriv(target, pname, params);
+}
+
+void gl2_1_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColorTableParameterfv(target, pname, params);
+}
+
+void gl2_1_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glColorTable(target, internalFormat, width, format, gltype, table);
+}
+
+void gl2_1_glMultTransposeMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultTransposeMatrixd(m);
+}
+
+void gl2_1_glMultTransposeMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultTransposeMatrixf(m);
+}
+
+void gl2_1_glLoadTransposeMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLoadTransposeMatrixd(m);
+}
+
+void gl2_1_glLoadTransposeMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glLoadTransposeMatrixf(m);
+}
+
+void gl2_1_glMultiTexCoord4sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4sv(target, v);
+}
+
+void gl2_1_glMultiTexCoord4s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4s(target, s, t, r, q);
+}
+
+void gl2_1_glMultiTexCoord4iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4iv(target, v);
+}
+
+void gl2_1_glMultiTexCoord4i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4i(target, s, t, r, q);
+}
+
+void gl2_1_glMultiTexCoord4fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4fv(target, v);
+}
+
+void gl2_1_glMultiTexCoord4f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4f(target, s, t, r, q);
+}
+
+void gl2_1_glMultiTexCoord4dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4dv(target, v);
+}
+
+void gl2_1_glMultiTexCoord4d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4d(target, s, t, r, q);
+}
+
+void gl2_1_glMultiTexCoord3sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3sv(target, v);
+}
+
+void gl2_1_glMultiTexCoord3s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3s(target, s, t, r);
+}
+
+void gl2_1_glMultiTexCoord3iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3iv(target, v);
+}
+
+void gl2_1_glMultiTexCoord3i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3i(target, s, t, r);
+}
+
+void gl2_1_glMultiTexCoord3fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3fv(target, v);
+}
+
+void gl2_1_glMultiTexCoord3f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3f(target, s, t, r);
+}
+
+void gl2_1_glMultiTexCoord3dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3dv(target, v);
+}
+
+void gl2_1_glMultiTexCoord3d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3d(target, s, t, r);
+}
+
+void gl2_1_glMultiTexCoord2sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2sv(target, v);
+}
+
+void gl2_1_glMultiTexCoord2s(void *_glfuncs, GLenum target, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2s(target, s, t);
+}
+
+void gl2_1_glMultiTexCoord2iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2iv(target, v);
+}
+
+void gl2_1_glMultiTexCoord2i(void *_glfuncs, GLenum target, GLint s, GLint t)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2i(target, s, t);
+}
+
+void gl2_1_glMultiTexCoord2fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2fv(target, v);
+}
+
+void gl2_1_glMultiTexCoord2f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2f(target, s, t);
+}
+
+void gl2_1_glMultiTexCoord2dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2dv(target, v);
+}
+
+void gl2_1_glMultiTexCoord2d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2d(target, s, t);
+}
+
+void gl2_1_glMultiTexCoord1sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1sv(target, v);
+}
+
+void gl2_1_glMultiTexCoord1s(void *_glfuncs, GLenum target, GLshort s)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1s(target, s);
+}
+
+void gl2_1_glMultiTexCoord1iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1iv(target, v);
+}
+
+void gl2_1_glMultiTexCoord1i(void *_glfuncs, GLenum target, GLint s)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1i(target, s);
+}
+
+void gl2_1_glMultiTexCoord1fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1fv(target, v);
+}
+
+void gl2_1_glMultiTexCoord1f(void *_glfuncs, GLenum target, GLfloat s)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1f(target, s);
+}
+
+void gl2_1_glMultiTexCoord1dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1dv(target, v);
+}
+
+void gl2_1_glMultiTexCoord1d(void *_glfuncs, GLenum target, GLdouble s)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1d(target, s);
+}
+
+void gl2_1_glClientActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glClientActiveTexture(texture);
+}
+
+void gl2_1_glWindowPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos3sv(v);
+}
+
+void gl2_1_glWindowPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos3s(x, y, z);
+}
+
+void gl2_1_glWindowPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos3iv(v);
+}
+
+void gl2_1_glWindowPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos3i(x, y, z);
+}
+
+void gl2_1_glWindowPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos3fv(v);
+}
+
+void gl2_1_glWindowPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos3f(x, y, z);
+}
+
+void gl2_1_glWindowPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos3dv(v);
+}
+
+void gl2_1_glWindowPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos3d(x, y, z);
+}
+
+void gl2_1_glWindowPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos2sv(v);
+}
+
+void gl2_1_glWindowPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos2s(x, y);
+}
+
+void gl2_1_glWindowPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos2iv(v);
+}
+
+void gl2_1_glWindowPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos2i(x, y);
+}
+
+void gl2_1_glWindowPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos2fv(v);
+}
+
+void gl2_1_glWindowPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos2f(x, y);
+}
+
+void gl2_1_glWindowPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos2dv(v);
+}
+
+void gl2_1_glWindowPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glWindowPos2d(x, y);
+}
+
+void gl2_1_glSecondaryColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColorPointer(size, gltype, stride, pointer);
+}
+
+void gl2_1_glSecondaryColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3usv(v);
+}
+
+void gl2_1_glSecondaryColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3us(red, green, blue);
+}
+
+void gl2_1_glSecondaryColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3uiv(v);
+}
+
+void gl2_1_glSecondaryColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ui(red, green, blue);
+}
+
+void gl2_1_glSecondaryColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ubv(v);
+}
+
+void gl2_1_glSecondaryColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ub(red, green, blue);
+}
+
+void gl2_1_glSecondaryColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3sv(v);
+}
+
+void gl2_1_glSecondaryColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3s(red, green, blue);
+}
+
+void gl2_1_glSecondaryColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3iv(v);
+}
+
+void gl2_1_glSecondaryColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3i(red, green, blue);
+}
+
+void gl2_1_glSecondaryColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3fv(v);
+}
+
+void gl2_1_glSecondaryColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3f(red, green, blue);
+}
+
+void gl2_1_glSecondaryColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3dv(v);
+}
+
+void gl2_1_glSecondaryColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3d(red, green, blue);
+}
+
+void gl2_1_glSecondaryColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3bv(v);
+}
+
+void gl2_1_glSecondaryColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3b(red, green, blue);
+}
+
+void gl2_1_glFogCoordPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glFogCoordPointer(gltype, stride, pointer);
+}
+
+void gl2_1_glFogCoorddv(void *_glfuncs, const GLdouble* coord)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glFogCoorddv(coord);
+}
+
+void gl2_1_glFogCoordd(void *_glfuncs, GLdouble coord)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glFogCoordd(coord);
+}
+
+void gl2_1_glFogCoordfv(void *_glfuncs, const GLfloat* coord)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glFogCoordfv(coord);
+}
+
+void gl2_1_glFogCoordf(void *_glfuncs, GLfloat coord)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glFogCoordf(coord);
+}
+
+void gl2_1_glVertexAttrib4usv(void *_glfuncs, GLuint index, const GLushort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4usv(index, v);
+}
+
+void gl2_1_glVertexAttrib4uiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4uiv(index, v);
+}
+
+void gl2_1_glVertexAttrib4ubv(void *_glfuncs, GLuint index, const GLubyte* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4ubv(index, v);
+}
+
+void gl2_1_glVertexAttrib4sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4sv(index, v);
+}
+
+void gl2_1_glVertexAttrib4s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4s(index, x, y, z, w);
+}
+
+void gl2_1_glVertexAttrib4iv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4iv(index, v);
+}
+
+void gl2_1_glVertexAttrib4fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4fv(index, v);
+}
+
+void gl2_1_glVertexAttrib4f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4f(index, x, y, z, w);
+}
+
+void gl2_1_glVertexAttrib4dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4dv(index, v);
+}
+
+void gl2_1_glVertexAttrib4d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4d(index, x, y, z, w);
+}
+
+void gl2_1_glVertexAttrib4bv(void *_glfuncs, GLuint index, const GLbyte* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4bv(index, v);
+}
+
+void gl2_1_glVertexAttrib4Nusv(void *_glfuncs, GLuint index, const GLushort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nusv(index, v);
+}
+
+void gl2_1_glVertexAttrib4Nuiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nuiv(index, v);
+}
+
+void gl2_1_glVertexAttrib4Nubv(void *_glfuncs, GLuint index, const GLubyte* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nubv(index, v);
+}
+
+void gl2_1_glVertexAttrib4Nub(void *_glfuncs, GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nub(index, x, y, z, w);
+}
+
+void gl2_1_glVertexAttrib4Nsv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nsv(index, v);
+}
+
+void gl2_1_glVertexAttrib4Niv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Niv(index, v);
+}
+
+void gl2_1_glVertexAttrib4Nbv(void *_glfuncs, GLuint index, const GLbyte* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nbv(index, v);
+}
+
+void gl2_1_glVertexAttrib3sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3sv(index, v);
+}
+
+void gl2_1_glVertexAttrib3s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3s(index, x, y, z);
+}
+
+void gl2_1_glVertexAttrib3fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3fv(index, v);
+}
+
+void gl2_1_glVertexAttrib3f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3f(index, x, y, z);
+}
+
+void gl2_1_glVertexAttrib3dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3dv(index, v);
+}
+
+void gl2_1_glVertexAttrib3d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3d(index, x, y, z);
+}
+
+void gl2_1_glVertexAttrib2sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2sv(index, v);
+}
+
+void gl2_1_glVertexAttrib2s(void *_glfuncs, GLuint index, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2s(index, x, y);
+}
+
+void gl2_1_glVertexAttrib2fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2fv(index, v);
+}
+
+void gl2_1_glVertexAttrib2f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2f(index, x, y);
+}
+
+void gl2_1_glVertexAttrib2dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2dv(index, v);
+}
+
+void gl2_1_glVertexAttrib2d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2d(index, x, y);
+}
+
+void gl2_1_glVertexAttrib1sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1sv(index, v);
+}
+
+void gl2_1_glVertexAttrib1s(void *_glfuncs, GLuint index, GLshort x)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1s(index, x);
+}
+
+void gl2_1_glVertexAttrib1fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1fv(index, v);
+}
+
+void gl2_1_glVertexAttrib1f(void *_glfuncs, GLuint index, GLfloat x)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1f(index, x);
+}
+
+void gl2_1_glVertexAttrib1dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1dv(index, v);
+}
+
+void gl2_1_glVertexAttrib1d(void *_glfuncs, GLuint index, GLdouble x)
+{
+ QOpenGLFunctions_2_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_2_1*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1d(index, x);
+}
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.1/funcs.h b/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.1/funcs.h
new file mode 100644
index 000000000..399784504
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.1/funcs.h
@@ -0,0 +1,619 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#ifndef __cplusplus
+#include <inttypes.h>
+#include <stddef.h>
+typedef unsigned int GLenum;
+typedef unsigned char GLboolean;
+typedef unsigned int GLbitfield;
+typedef void GLvoid;
+typedef char GLchar;
+typedef signed char GLbyte; /* 1-byte signed */
+typedef short GLshort; /* 2-byte signed */
+typedef int GLint; /* 4-byte signed */
+typedef unsigned char GLubyte; /* 1-byte unsigned */
+typedef unsigned short GLushort; /* 2-byte unsigned */
+typedef unsigned int GLuint; /* 4-byte unsigned */
+typedef int GLsizei; /* 4-byte signed */
+typedef float GLfloat; /* single precision float */
+typedef float GLclampf; /* single precision float in [0,1] */
+typedef double GLdouble; /* double precision float */
+typedef double GLclampd; /* double precision float in [0,1] */
+typedef int64_t GLint64;
+typedef uint64_t GLuint64;
+typedef ptrdiff_t GLintptr;
+typedef ptrdiff_t GLsizeiptr;
+typedef ptrdiff_t GLintptrARB;
+typedef ptrdiff_t GLsizeiptrARB;
+typedef struct __GLsync *GLsync;
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *gl2_1_funcs();
+
+void gl2_1_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl2_1_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal);
+GLboolean gl2_1_glIsEnabled(void *_glfuncs, GLenum cap);
+void gl2_1_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params);
+void gl2_1_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params);
+void gl2_1_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl2_1_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl2_1_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl2_1_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params);
+void gl2_1_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params);
+GLenum gl2_1_glGetError(void *_glfuncs);
+void gl2_1_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params);
+void gl2_1_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params);
+void gl2_1_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl2_1_glReadBuffer(void *_glfuncs, GLenum mode);
+void gl2_1_glPixelStorei(void *_glfuncs, GLenum pname, GLint param);
+void gl2_1_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param);
+void gl2_1_glDepthFunc(void *_glfuncs, GLenum glfunc);
+void gl2_1_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass);
+void gl2_1_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask);
+void gl2_1_glLogicOp(void *_glfuncs, GLenum opcode);
+void gl2_1_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor);
+void gl2_1_glFlush(void *_glfuncs);
+void gl2_1_glFinish(void *_glfuncs);
+void gl2_1_glEnable(void *_glfuncs, GLenum cap);
+void gl2_1_glDisable(void *_glfuncs, GLenum cap);
+void gl2_1_glDepthMask(void *_glfuncs, GLboolean flag);
+void gl2_1_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+void gl2_1_glStencilMask(void *_glfuncs, GLuint mask);
+void gl2_1_glClearDepth(void *_glfuncs, GLdouble depth);
+void gl2_1_glClearStencil(void *_glfuncs, GLint s);
+void gl2_1_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl2_1_glClear(void *_glfuncs, GLbitfield mask);
+void gl2_1_glDrawBuffer(void *_glfuncs, GLenum mode);
+void gl2_1_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl2_1_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl2_1_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl2_1_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl2_1_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl2_1_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl2_1_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl2_1_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode);
+void gl2_1_glPointSize(void *_glfuncs, GLfloat size);
+void gl2_1_glLineWidth(void *_glfuncs, GLfloat width);
+void gl2_1_glHint(void *_glfuncs, GLenum target, GLenum mode);
+void gl2_1_glFrontFace(void *_glfuncs, GLenum mode);
+void gl2_1_glCullFace(void *_glfuncs, GLenum mode);
+void gl2_1_glIndexubv(void *_glfuncs, const GLubyte* c);
+void gl2_1_glIndexub(void *_glfuncs, GLubyte c);
+GLboolean gl2_1_glIsTexture(void *_glfuncs, GLuint texture);
+void gl2_1_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures);
+void gl2_1_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures);
+void gl2_1_glBindTexture(void *_glfuncs, GLenum target, GLuint texture);
+void gl2_1_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl2_1_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl2_1_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl2_1_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+void gl2_1_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+void gl2_1_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
+void gl2_1_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units);
+void gl2_1_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl2_1_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count);
+void gl2_1_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl2_1_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl2_1_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl2_1_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl2_1_glBlendEquation(void *_glfuncs, GLenum mode);
+void gl2_1_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl2_1_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img);
+void gl2_1_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl2_1_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl2_1_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl2_1_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl2_1_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl2_1_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl2_1_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert);
+void gl2_1_glActiveTexture(void *_glfuncs, GLenum texture);
+void gl2_1_glPointParameteriv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl2_1_glPointParameteri(void *_glfuncs, GLenum pname, GLint param);
+void gl2_1_glPointParameterfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl2_1_glPointParameterf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl2_1_glMultiDrawArrays(void *_glfuncs, GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount);
+void gl2_1_glBlendFuncSeparate(void *_glfuncs, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+void gl2_1_glGetBufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+GLboolean gl2_1_glUnmapBuffer(void *_glfuncs, GLenum target);
+void gl2_1_glGetBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data);
+void gl2_1_glBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data);
+void gl2_1_glBufferData(void *_glfuncs, GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
+GLboolean gl2_1_glIsBuffer(void *_glfuncs, GLuint buffer);
+void gl2_1_glGenBuffers(void *_glfuncs, GLsizei n, GLuint* buffers);
+void gl2_1_glDeleteBuffers(void *_glfuncs, GLsizei n, const GLuint* buffers);
+void gl2_1_glBindBuffer(void *_glfuncs, GLenum target, GLuint buffer);
+void gl2_1_glGetQueryObjectuiv(void *_glfuncs, GLuint id, GLenum pname, GLuint* params);
+void gl2_1_glGetQueryObjectiv(void *_glfuncs, GLuint id, GLenum pname, GLint* params);
+void gl2_1_glGetQueryiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl2_1_glEndQuery(void *_glfuncs, GLenum target);
+void gl2_1_glBeginQuery(void *_glfuncs, GLenum target, GLuint id);
+GLboolean gl2_1_glIsQuery(void *_glfuncs, GLuint id);
+void gl2_1_glDeleteQueries(void *_glfuncs, GLsizei n, const GLuint* ids);
+void gl2_1_glGenQueries(void *_glfuncs, GLsizei n, GLuint* ids);
+void gl2_1_glVertexAttribPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLboolean normalized, GLsizei stride, const GLvoid* offset);
+void gl2_1_glValidateProgram(void *_glfuncs, GLuint program);
+void gl2_1_glUniformMatrix4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl2_1_glUniformMatrix3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl2_1_glUniformMatrix2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl2_1_glUniform4iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl2_1_glUniform3iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl2_1_glUniform2iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl2_1_glUniform1iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl2_1_glUniform4fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl2_1_glUniform3fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl2_1_glUniform2fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl2_1_glUniform1fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl2_1_glUniform4i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+void gl2_1_glUniform3i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2);
+void gl2_1_glUniform2i(void *_glfuncs, GLint location, GLint v0, GLint v1);
+void gl2_1_glUniform1i(void *_glfuncs, GLint location, GLint v0);
+void gl2_1_glUniform4f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+void gl2_1_glUniform3f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+void gl2_1_glUniform2f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1);
+void gl2_1_glUniform1f(void *_glfuncs, GLint location, GLfloat v0);
+void gl2_1_glUseProgram(void *_glfuncs, GLuint program);
+void gl2_1_glShaderSource(void *_glfuncs, GLuint shader, GLsizei count, const GLchar** source, const GLint* length);
+void gl2_1_glLinkProgram(void *_glfuncs, GLuint program);
+GLboolean gl2_1_glIsShader(void *_glfuncs, GLuint shader);
+GLboolean gl2_1_glIsProgram(void *_glfuncs, GLuint program);
+void gl2_1_glGetVertexAttribiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params);
+void gl2_1_glGetVertexAttribfv(void *_glfuncs, GLuint index, GLenum pname, GLfloat* params);
+void gl2_1_glGetVertexAttribdv(void *_glfuncs, GLuint index, GLenum pname, GLdouble* params);
+void gl2_1_glGetUniformiv(void *_glfuncs, GLuint program, GLint location, GLint* params);
+void gl2_1_glGetUniformfv(void *_glfuncs, GLuint program, GLint location, GLfloat* params);
+GLint gl2_1_glGetUniformLocation(void *_glfuncs, GLuint program, const GLchar* name);
+void gl2_1_glGetShaderSource(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* source);
+void gl2_1_glGetShaderInfoLog(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog);
+void gl2_1_glGetShaderiv(void *_glfuncs, GLuint shader, GLenum pname, GLint* params);
+void gl2_1_glGetProgramInfoLog(void *_glfuncs, GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog);
+void gl2_1_glGetProgramiv(void *_glfuncs, GLuint program, GLenum pname, GLint* params);
+GLint gl2_1_glGetAttribLocation(void *_glfuncs, GLuint program, const GLchar* name);
+void gl2_1_glGetAttachedShaders(void *_glfuncs, GLuint program, GLsizei maxCount, GLsizei* count, GLuint* obj);
+void gl2_1_glGetActiveUniform(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name);
+void gl2_1_glGetActiveAttrib(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name);
+void gl2_1_glEnableVertexAttribArray(void *_glfuncs, GLuint index);
+void gl2_1_glDisableVertexAttribArray(void *_glfuncs, GLuint index);
+void gl2_1_glDetachShader(void *_glfuncs, GLuint program, GLuint shader);
+void gl2_1_glDeleteShader(void *_glfuncs, GLuint shader);
+void gl2_1_glDeleteProgram(void *_glfuncs, GLuint program);
+GLuint gl2_1_glCreateShader(void *_glfuncs, GLenum gltype);
+GLuint gl2_1_glCreateProgram(void *_glfuncs);
+void gl2_1_glCompileShader(void *_glfuncs, GLuint shader);
+void gl2_1_glBindAttribLocation(void *_glfuncs, GLuint program, GLuint index, const GLchar* name);
+void gl2_1_glAttachShader(void *_glfuncs, GLuint program, GLuint shader);
+void gl2_1_glStencilMaskSeparate(void *_glfuncs, GLenum face, GLuint mask);
+void gl2_1_glStencilFuncSeparate(void *_glfuncs, GLenum face, GLenum glfunc, GLint ref, GLuint mask);
+void gl2_1_glStencilOpSeparate(void *_glfuncs, GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+void gl2_1_glDrawBuffers(void *_glfuncs, GLsizei n, const GLenum* bufs);
+void gl2_1_glBlendEquationSeparate(void *_glfuncs, GLenum modeRGB, GLenum modeAlpha);
+void gl2_1_glUniformMatrix4x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl2_1_glUniformMatrix3x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl2_1_glUniformMatrix4x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl2_1_glUniformMatrix2x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl2_1_glUniformMatrix3x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl2_1_glUniformMatrix2x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl2_1_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl2_1_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl2_1_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl2_1_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl2_1_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+void gl2_1_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+void gl2_1_glPushMatrix(void *_glfuncs);
+void gl2_1_glPopMatrix(void *_glfuncs);
+void gl2_1_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+void gl2_1_glMultMatrixd(void *_glfuncs, const GLdouble* m);
+void gl2_1_glMultMatrixf(void *_glfuncs, const GLfloat* m);
+void gl2_1_glMatrixMode(void *_glfuncs, GLenum mode);
+void gl2_1_glLoadMatrixd(void *_glfuncs, const GLdouble* m);
+void gl2_1_glLoadMatrixf(void *_glfuncs, const GLfloat* m);
+void gl2_1_glLoadIdentity(void *_glfuncs);
+void gl2_1_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLboolean gl2_1_glIsList(void *_glfuncs, GLuint list);
+void gl2_1_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params);
+void gl2_1_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params);
+void gl2_1_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params);
+void gl2_1_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl2_1_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl2_1_glGetPolygonStipple(void *_glfuncs, GLubyte* mask);
+void gl2_1_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values);
+void gl2_1_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values);
+void gl2_1_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values);
+void gl2_1_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params);
+void gl2_1_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params);
+void gl2_1_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v);
+void gl2_1_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v);
+void gl2_1_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v);
+void gl2_1_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params);
+void gl2_1_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params);
+void gl2_1_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation);
+void gl2_1_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl2_1_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype);
+void gl2_1_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values);
+void gl2_1_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values);
+void gl2_1_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values);
+void gl2_1_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param);
+void gl2_1_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl2_1_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor);
+void gl2_1_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref);
+void gl2_1_glEvalPoint2(void *_glfuncs, GLint i, GLint j);
+void gl2_1_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
+void gl2_1_glEvalPoint1(void *_glfuncs, GLint i);
+void gl2_1_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2);
+void gl2_1_glEvalCoord2fv(void *_glfuncs, const GLfloat* u);
+void gl2_1_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v);
+void gl2_1_glEvalCoord2dv(void *_glfuncs, const GLdouble* u);
+void gl2_1_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v);
+void gl2_1_glEvalCoord1fv(void *_glfuncs, const GLfloat* u);
+void gl2_1_glEvalCoord1f(void *_glfuncs, GLfloat u);
+void gl2_1_glEvalCoord1dv(void *_glfuncs, const GLdouble* u);
+void gl2_1_glEvalCoord1d(void *_glfuncs, GLdouble u);
+void gl2_1_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
+void gl2_1_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
+void gl2_1_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2);
+void gl2_1_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2);
+void gl2_1_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points);
+void gl2_1_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points);
+void gl2_1_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points);
+void gl2_1_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points);
+void gl2_1_glPushAttrib(void *_glfuncs, GLbitfield mask);
+void gl2_1_glPopAttrib(void *_glfuncs);
+void gl2_1_glAccum(void *_glfuncs, GLenum op, GLfloat value);
+void gl2_1_glIndexMask(void *_glfuncs, GLuint mask);
+void gl2_1_glClearIndex(void *_glfuncs, GLfloat c);
+void gl2_1_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl2_1_glPushName(void *_glfuncs, GLuint name);
+void gl2_1_glPopName(void *_glfuncs);
+void gl2_1_glPassThrough(void *_glfuncs, GLfloat token);
+void gl2_1_glLoadName(void *_glfuncs, GLuint name);
+void gl2_1_glInitNames(void *_glfuncs);
+GLint gl2_1_glRenderMode(void *_glfuncs, GLenum mode);
+void gl2_1_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer);
+void gl2_1_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer);
+void gl2_1_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params);
+void gl2_1_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param);
+void gl2_1_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params);
+void gl2_1_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param);
+void gl2_1_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params);
+void gl2_1_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param);
+void gl2_1_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl2_1_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl2_1_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl2_1_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl2_1_glShadeModel(void *_glfuncs, GLenum mode);
+void gl2_1_glPolygonStipple(void *_glfuncs, const GLubyte* mask);
+void gl2_1_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params);
+void gl2_1_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param);
+void gl2_1_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params);
+void gl2_1_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param);
+void gl2_1_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern);
+void gl2_1_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl2_1_glLightModeli(void *_glfuncs, GLenum pname, GLint param);
+void gl2_1_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl2_1_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl2_1_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params);
+void gl2_1_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param);
+void gl2_1_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params);
+void gl2_1_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param);
+void gl2_1_glFogiv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl2_1_glFogi(void *_glfuncs, GLenum pname, GLint param);
+void gl2_1_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl2_1_glFogf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl2_1_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode);
+void gl2_1_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation);
+void gl2_1_glVertex4sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl2_1_glVertex4iv(void *_glfuncs, const GLint* v);
+void gl2_1_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl2_1_glVertex4fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl2_1_glVertex4dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl2_1_glVertex3sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl2_1_glVertex3iv(void *_glfuncs, const GLint* v);
+void gl2_1_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl2_1_glVertex3fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl2_1_glVertex3dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl2_1_glVertex2sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glVertex2s(void *_glfuncs, GLshort x, GLshort y);
+void gl2_1_glVertex2iv(void *_glfuncs, const GLint* v);
+void gl2_1_glVertex2i(void *_glfuncs, GLint x, GLint y);
+void gl2_1_glVertex2fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl2_1_glVertex2dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl2_1_glTexCoord4sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl2_1_glTexCoord4iv(void *_glfuncs, const GLint* v);
+void gl2_1_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q);
+void gl2_1_glTexCoord4fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl2_1_glTexCoord4dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl2_1_glTexCoord3sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r);
+void gl2_1_glTexCoord3iv(void *_glfuncs, const GLint* v);
+void gl2_1_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r);
+void gl2_1_glTexCoord3fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r);
+void gl2_1_glTexCoord3dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r);
+void gl2_1_glTexCoord2sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t);
+void gl2_1_glTexCoord2iv(void *_glfuncs, const GLint* v);
+void gl2_1_glTexCoord2i(void *_glfuncs, GLint s, GLint t);
+void gl2_1_glTexCoord2fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t);
+void gl2_1_glTexCoord2dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t);
+void gl2_1_glTexCoord1sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glTexCoord1s(void *_glfuncs, GLshort s);
+void gl2_1_glTexCoord1iv(void *_glfuncs, const GLint* v);
+void gl2_1_glTexCoord1i(void *_glfuncs, GLint s);
+void gl2_1_glTexCoord1fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glTexCoord1f(void *_glfuncs, GLfloat s);
+void gl2_1_glTexCoord1dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glTexCoord1d(void *_glfuncs, GLdouble s);
+void gl2_1_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2);
+void gl2_1_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2);
+void gl2_1_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2);
+void gl2_1_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2);
+void gl2_1_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2);
+void gl2_1_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
+void gl2_1_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2);
+void gl2_1_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
+void gl2_1_glRasterPos4sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl2_1_glRasterPos4iv(void *_glfuncs, const GLint* v);
+void gl2_1_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl2_1_glRasterPos4fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl2_1_glRasterPos4dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl2_1_glRasterPos3sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl2_1_glRasterPos3iv(void *_glfuncs, const GLint* v);
+void gl2_1_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl2_1_glRasterPos3fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl2_1_glRasterPos3dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl2_1_glRasterPos2sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl2_1_glRasterPos2iv(void *_glfuncs, const GLint* v);
+void gl2_1_glRasterPos2i(void *_glfuncs, GLint x, GLint y);
+void gl2_1_glRasterPos2fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl2_1_glRasterPos2dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl2_1_glNormal3sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz);
+void gl2_1_glNormal3iv(void *_glfuncs, const GLint* v);
+void gl2_1_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz);
+void gl2_1_glNormal3fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz);
+void gl2_1_glNormal3dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz);
+void gl2_1_glNormal3bv(void *_glfuncs, const GLbyte* v);
+void gl2_1_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz);
+void gl2_1_glIndexsv(void *_glfuncs, const GLshort* c);
+void gl2_1_glIndexs(void *_glfuncs, GLshort c);
+void gl2_1_glIndexiv(void *_glfuncs, const GLint* c);
+void gl2_1_glIndexi(void *_glfuncs, GLint c);
+void gl2_1_glIndexfv(void *_glfuncs, const GLfloat* c);
+void gl2_1_glIndexf(void *_glfuncs, GLfloat c);
+void gl2_1_glIndexdv(void *_glfuncs, const GLdouble* c);
+void gl2_1_glIndexd(void *_glfuncs, GLdouble c);
+void gl2_1_glEnd(void *_glfuncs);
+void gl2_1_glEdgeFlagv(void *_glfuncs, const GLboolean* flag);
+void gl2_1_glEdgeFlag(void *_glfuncs, GLboolean flag);
+void gl2_1_glColor4usv(void *_glfuncs, const GLushort* v);
+void gl2_1_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha);
+void gl2_1_glColor4uiv(void *_glfuncs, const GLuint* v);
+void gl2_1_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha);
+void gl2_1_glColor4ubv(void *_glfuncs, const GLubyte* v);
+void gl2_1_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
+void gl2_1_glColor4sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha);
+void gl2_1_glColor4iv(void *_glfuncs, const GLint* v);
+void gl2_1_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha);
+void gl2_1_glColor4fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl2_1_glColor4dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
+void gl2_1_glColor4bv(void *_glfuncs, const GLbyte* v);
+void gl2_1_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
+void gl2_1_glColor3usv(void *_glfuncs, const GLushort* v);
+void gl2_1_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl2_1_glColor3uiv(void *_glfuncs, const GLuint* v);
+void gl2_1_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl2_1_glColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl2_1_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl2_1_glColor3sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl2_1_glColor3iv(void *_glfuncs, const GLint* v);
+void gl2_1_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl2_1_glColor3fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl2_1_glColor3dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl2_1_glColor3bv(void *_glfuncs, const GLbyte* v);
+void gl2_1_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl2_1_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap);
+void gl2_1_glBegin(void *_glfuncs, GLenum mode);
+void gl2_1_glListBase(void *_glfuncs, GLuint base);
+GLuint gl2_1_glGenLists(void *_glfuncs, GLsizei range_);
+void gl2_1_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_);
+void gl2_1_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists);
+void gl2_1_glCallList(void *_glfuncs, GLuint list);
+void gl2_1_glEndList(void *_glfuncs);
+void gl2_1_glNewList(void *_glfuncs, GLuint list, GLenum mode);
+void gl2_1_glPushClientAttrib(void *_glfuncs, GLbitfield mask);
+void gl2_1_glPopClientAttrib(void *_glfuncs);
+void gl2_1_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities);
+GLboolean gl2_1_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences);
+void gl2_1_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl2_1_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl2_1_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl2_1_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer);
+void gl2_1_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl2_1_glEnableClientState(void *_glfuncs, GLenum array);
+void gl2_1_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer);
+void gl2_1_glDisableClientState(void *_glfuncs, GLenum array);
+void gl2_1_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl2_1_glArrayElement(void *_glfuncs, GLint i);
+void gl2_1_glResetMinmax(void *_glfuncs, GLenum target);
+void gl2_1_glResetHistogram(void *_glfuncs, GLenum target);
+void gl2_1_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink);
+void gl2_1_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink);
+void gl2_1_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl2_1_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl2_1_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl2_1_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl2_1_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl2_1_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl2_1_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column);
+void gl2_1_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span);
+void gl2_1_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl2_1_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl2_1_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image);
+void gl2_1_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl2_1_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl2_1_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl2_1_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params);
+void gl2_1_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl2_1_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params);
+void gl2_1_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image);
+void gl2_1_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image);
+void gl2_1_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+void gl2_1_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data);
+void gl2_1_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl2_1_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl2_1_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table);
+void gl2_1_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl2_1_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl2_1_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl2_1_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table);
+void gl2_1_glMultTransposeMatrixd(void *_glfuncs, const GLdouble* m);
+void gl2_1_glMultTransposeMatrixf(void *_glfuncs, const GLfloat* m);
+void gl2_1_glLoadTransposeMatrixd(void *_glfuncs, const GLdouble* m);
+void gl2_1_glLoadTransposeMatrixf(void *_glfuncs, const GLfloat* m);
+void gl2_1_glMultiTexCoord4sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl2_1_glMultiTexCoord4s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl2_1_glMultiTexCoord4iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl2_1_glMultiTexCoord4i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r, GLint q);
+void gl2_1_glMultiTexCoord4fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl2_1_glMultiTexCoord4f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl2_1_glMultiTexCoord4dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl2_1_glMultiTexCoord4d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl2_1_glMultiTexCoord3sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl2_1_glMultiTexCoord3s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r);
+void gl2_1_glMultiTexCoord3iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl2_1_glMultiTexCoord3i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r);
+void gl2_1_glMultiTexCoord3fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl2_1_glMultiTexCoord3f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r);
+void gl2_1_glMultiTexCoord3dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl2_1_glMultiTexCoord3d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r);
+void gl2_1_glMultiTexCoord2sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl2_1_glMultiTexCoord2s(void *_glfuncs, GLenum target, GLshort s, GLshort t);
+void gl2_1_glMultiTexCoord2iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl2_1_glMultiTexCoord2i(void *_glfuncs, GLenum target, GLint s, GLint t);
+void gl2_1_glMultiTexCoord2fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl2_1_glMultiTexCoord2f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t);
+void gl2_1_glMultiTexCoord2dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl2_1_glMultiTexCoord2d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t);
+void gl2_1_glMultiTexCoord1sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl2_1_glMultiTexCoord1s(void *_glfuncs, GLenum target, GLshort s);
+void gl2_1_glMultiTexCoord1iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl2_1_glMultiTexCoord1i(void *_glfuncs, GLenum target, GLint s);
+void gl2_1_glMultiTexCoord1fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl2_1_glMultiTexCoord1f(void *_glfuncs, GLenum target, GLfloat s);
+void gl2_1_glMultiTexCoord1dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl2_1_glMultiTexCoord1d(void *_glfuncs, GLenum target, GLdouble s);
+void gl2_1_glClientActiveTexture(void *_glfuncs, GLenum texture);
+void gl2_1_glWindowPos3sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glWindowPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl2_1_glWindowPos3iv(void *_glfuncs, const GLint* v);
+void gl2_1_glWindowPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl2_1_glWindowPos3fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glWindowPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl2_1_glWindowPos3dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glWindowPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl2_1_glWindowPos2sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glWindowPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl2_1_glWindowPos2iv(void *_glfuncs, const GLint* v);
+void gl2_1_glWindowPos2i(void *_glfuncs, GLint x, GLint y);
+void gl2_1_glWindowPos2fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glWindowPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl2_1_glWindowPos2dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glWindowPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl2_1_glSecondaryColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl2_1_glSecondaryColor3usv(void *_glfuncs, const GLushort* v);
+void gl2_1_glSecondaryColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl2_1_glSecondaryColor3uiv(void *_glfuncs, const GLuint* v);
+void gl2_1_glSecondaryColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl2_1_glSecondaryColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl2_1_glSecondaryColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl2_1_glSecondaryColor3sv(void *_glfuncs, const GLshort* v);
+void gl2_1_glSecondaryColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl2_1_glSecondaryColor3iv(void *_glfuncs, const GLint* v);
+void gl2_1_glSecondaryColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl2_1_glSecondaryColor3fv(void *_glfuncs, const GLfloat* v);
+void gl2_1_glSecondaryColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl2_1_glSecondaryColor3dv(void *_glfuncs, const GLdouble* v);
+void gl2_1_glSecondaryColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl2_1_glSecondaryColor3bv(void *_glfuncs, const GLbyte* v);
+void gl2_1_glSecondaryColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl2_1_glFogCoordPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl2_1_glFogCoorddv(void *_glfuncs, const GLdouble* coord);
+void gl2_1_glFogCoordd(void *_glfuncs, GLdouble coord);
+void gl2_1_glFogCoordfv(void *_glfuncs, const GLfloat* coord);
+void gl2_1_glFogCoordf(void *_glfuncs, GLfloat coord);
+void gl2_1_glVertexAttrib4usv(void *_glfuncs, GLuint index, const GLushort* v);
+void gl2_1_glVertexAttrib4uiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl2_1_glVertexAttrib4ubv(void *_glfuncs, GLuint index, const GLubyte* v);
+void gl2_1_glVertexAttrib4sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl2_1_glVertexAttrib4s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl2_1_glVertexAttrib4iv(void *_glfuncs, GLuint index, const GLint* v);
+void gl2_1_glVertexAttrib4fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl2_1_glVertexAttrib4f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl2_1_glVertexAttrib4dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl2_1_glVertexAttrib4d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl2_1_glVertexAttrib4bv(void *_glfuncs, GLuint index, const GLbyte* v);
+void gl2_1_glVertexAttrib4Nusv(void *_glfuncs, GLuint index, const GLushort* v);
+void gl2_1_glVertexAttrib4Nuiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl2_1_glVertexAttrib4Nubv(void *_glfuncs, GLuint index, const GLubyte* v);
+void gl2_1_glVertexAttrib4Nub(void *_glfuncs, GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+void gl2_1_glVertexAttrib4Nsv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl2_1_glVertexAttrib4Niv(void *_glfuncs, GLuint index, const GLint* v);
+void gl2_1_glVertexAttrib4Nbv(void *_glfuncs, GLuint index, const GLbyte* v);
+void gl2_1_glVertexAttrib3sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl2_1_glVertexAttrib3s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z);
+void gl2_1_glVertexAttrib3fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl2_1_glVertexAttrib3f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z);
+void gl2_1_glVertexAttrib3dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl2_1_glVertexAttrib3d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z);
+void gl2_1_glVertexAttrib2sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl2_1_glVertexAttrib2s(void *_glfuncs, GLuint index, GLshort x, GLshort y);
+void gl2_1_glVertexAttrib2fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl2_1_glVertexAttrib2f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y);
+void gl2_1_glVertexAttrib2dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl2_1_glVertexAttrib2d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y);
+void gl2_1_glVertexAttrib1sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl2_1_glVertexAttrib1s(void *_glfuncs, GLuint index, GLshort x);
+void gl2_1_glVertexAttrib1fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl2_1_glVertexAttrib1f(void *_glfuncs, GLuint index, GLfloat x);
+void gl2_1_glVertexAttrib1dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl2_1_glVertexAttrib1d(void *_glfuncs, GLuint index, GLdouble x);
+
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.1/gl.go b/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.1/gl.go
new file mode 100644
index 000000000..718d258a3
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/2.1/gl.go
@@ -0,0 +1,6652 @@
+// ** file automatically generated by glgen -- do not edit manually **
+
+package GL
+
+// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
+// #cgo LDFLAGS: -lstdc++
+// #cgo pkg-config: Qt5Core Qt5OpenGL
+//
+// #include "funcs.h"
+//
+// void free(void*);
+//
+import "C"
+
+import (
+ "fmt"
+ "reflect"
+ "unsafe"
+
+ "gopkg.in/qml.v1/gl/glbase"
+)
+
+// API returns a value that offers methods matching the OpenGL version 2.1 API.
+//
+// The returned API must not be used after the provided OpenGL context becomes invalid.
+func API(context glbase.Contexter) *GL {
+ gl := &GL{}
+ gl.funcs = C.gl2_1_funcs()
+ if gl.funcs == nil {
+ panic(fmt.Errorf("OpenGL version 2.1 is not available"))
+ }
+ return gl
+}
+
+// GL implements the OpenGL version 2.1 API. Values of this
+// type must be created via the API function, and it must not be used after
+// the associated OpenGL context becomes invalid.
+type GL struct {
+ funcs unsafe.Pointer
+}
+
+const (
+ FALSE = 0
+ TRUE = 1
+ NONE = 0
+
+ BYTE = 0x1400
+ UNSIGNED_BYTE = 0x1401
+ SHORT = 0x1402
+ UNSIGNED_SHORT = 0x1403
+ INT = 0x1404
+ UNSIGNED_INT = 0x1405
+ FLOAT = 0x1406
+ N2_BYTES = 0x1407
+ N3_BYTES = 0x1408
+ N4_BYTES = 0x1409
+ DOUBLE = 0x140A
+
+ ACCUM = 0x0100
+ LOAD = 0x0101
+ RETURN = 0x0102
+ MULT = 0x0103
+ ADD = 0x0104
+
+ ACCUM_BUFFER_BIT = 0x00000200
+ ALL_ATTRIB_BITS = 0xFFFFFFFF
+ COLOR_BUFFER_BIT = 0x00004000
+ CURRENT_BIT = 0x00000001
+ DEPTH_BUFFER_BIT = 0x00000100
+ ENABLE_BIT = 0x00002000
+ EVAL_BIT = 0x00010000
+ FOG_BIT = 0x00000080
+ HINT_BIT = 0x00008000
+ LIGHTING_BIT = 0x00000040
+ LINE_BIT = 0x00000004
+ LIST_BIT = 0x00020000
+ MULTISAMPLE_BIT = 0x20000000
+ PIXEL_MODE_BIT = 0x00000020
+ POINT_BIT = 0x00000002
+ POLYGON_BIT = 0x00000008
+ POLYGON_STIPPLE_BIT = 0x00000010
+ SCISSOR_BIT = 0x00080000
+ STENCIL_BUFFER_BIT = 0x00000400
+ TEXTURE_BIT = 0x00040000
+ TRANSFORM_BIT = 0x00001000
+ VIEWPORT_BIT = 0x00000800
+
+ ALWAYS = 0x0207
+ EQUAL = 0x0202
+ GEQUAL = 0x0206
+ GREATER = 0x0204
+ LEQUAL = 0x0203
+ LESS = 0x0201
+ NEVER = 0x0200
+ NOTEQUAL = 0x0205
+
+ LOGIC_OP = 0x0BF1
+
+ DST_ALPHA = 0x0304
+ ONE = 1
+ ONE_MINUS_DST_ALPHA = 0x0305
+ ONE_MINUS_SRC_ALPHA = 0x0303
+ ONE_MINUS_SRC_COLOR = 0x0301
+ SRC_ALPHA = 0x0302
+ SRC_COLOR = 0x0300
+ ZERO = 0
+
+ DST_COLOR = 0x0306
+ ONE_MINUS_DST_COLOR = 0x0307
+ SRC_ALPHA_SATURATE = 0x0308
+
+ CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF
+ CLIENT_PIXEL_STORE_BIT = 0x00000001
+ CLIENT_VERTEX_ARRAY_BIT = 0x00000002
+
+ CLIP_PLANE0 = 0x3000
+ CLIP_PLANE1 = 0x3001
+ CLIP_PLANE2 = 0x3002
+ CLIP_PLANE3 = 0x3003
+ CLIP_PLANE4 = 0x3004
+ CLIP_PLANE5 = 0x3005
+
+ BACK = 0x0405
+ FRONT = 0x0404
+ FRONT_AND_BACK = 0x0408
+
+ AMBIENT = 0x1200
+ AMBIENT_AND_DIFFUSE = 0x1602
+ DIFFUSE = 0x1201
+ EMISSION = 0x1600
+ SPECULAR = 0x1202
+
+ AUX0 = 0x0409
+ AUX1 = 0x040A
+ AUX2 = 0x040B
+ AUX3 = 0x040C
+ BACK_LEFT = 0x0402
+ BACK_RIGHT = 0x0403
+ FRONT_LEFT = 0x0400
+ FRONT_RIGHT = 0x0401
+ LEFT = 0x0406
+ RIGHT = 0x0407
+
+ ALPHA_TEST = 0x0BC0
+ AUTO_NORMAL = 0x0D80
+ BLEND = 0x0BE2
+ COLOR_ARRAY = 0x8076
+ COLOR_LOGIC_OP = 0x0BF2
+ COLOR_MATERIAL = 0x0B57
+ CULL_FACE = 0x0B44
+ DEPTH_TEST = 0x0B71
+ DITHER = 0x0BD0
+ EDGE_FLAG_ARRAY = 0x8079
+ FOG = 0x0B60
+ INDEX_ARRAY = 0x8077
+ INDEX_LOGIC_OP = 0x0BF1
+ LIGHT0 = 0x4000
+ LIGHT1 = 0x4001
+ LIGHT2 = 0x4002
+ LIGHT3 = 0x4003
+ LIGHT4 = 0x4004
+ LIGHT5 = 0x4005
+ LIGHT6 = 0x4006
+ LIGHT7 = 0x4007
+ LIGHTING = 0x0B50
+ LINE_SMOOTH = 0x0B20
+ LINE_STIPPLE = 0x0B24
+ MAP1_COLOR_4 = 0x0D90
+ MAP1_INDEX = 0x0D91
+ MAP1_NORMAL = 0x0D92
+ MAP1_TEXTURE_COORD_1 = 0x0D93
+ MAP1_TEXTURE_COORD_2 = 0x0D94
+ MAP1_TEXTURE_COORD_3 = 0x0D95
+ MAP1_TEXTURE_COORD_4 = 0x0D96
+ MAP1_VERTEX_3 = 0x0D97
+ MAP1_VERTEX_4 = 0x0D98
+ MAP2_COLOR_4 = 0x0DB0
+ MAP2_INDEX = 0x0DB1
+ MAP2_NORMAL = 0x0DB2
+ MAP2_TEXTURE_COORD_1 = 0x0DB3
+ MAP2_TEXTURE_COORD_2 = 0x0DB4
+ MAP2_TEXTURE_COORD_3 = 0x0DB5
+ MAP2_TEXTURE_COORD_4 = 0x0DB6
+ MAP2_VERTEX_3 = 0x0DB7
+ MAP2_VERTEX_4 = 0x0DB8
+ NORMALIZE = 0x0BA1
+ NORMAL_ARRAY = 0x8075
+ POINT_SMOOTH = 0x0B10
+ POLYGON_OFFSET_FILL = 0x8037
+ POLYGON_OFFSET_LINE = 0x2A02
+ POLYGON_OFFSET_POINT = 0x2A01
+ POLYGON_SMOOTH = 0x0B41
+ POLYGON_STIPPLE = 0x0B42
+ SCISSOR_TEST = 0x0C11
+ STENCIL_TEST = 0x0B90
+ TEXTURE_1D = 0x0DE0
+ TEXTURE_2D = 0x0DE1
+ TEXTURE_COORD_ARRAY = 0x8078
+ TEXTURE_GEN_Q = 0x0C63
+ TEXTURE_GEN_R = 0x0C62
+ TEXTURE_GEN_S = 0x0C60
+ TEXTURE_GEN_T = 0x0C61
+ VERTEX_ARRAY = 0x8074
+
+ INVALID_ENUM = 0x0500
+ INVALID_OPERATION = 0x0502
+ INVALID_VALUE = 0x0501
+ NO_ERROR = 0
+ OUT_OF_MEMORY = 0x0505
+ STACK_OVERFLOW = 0x0503
+ STACK_UNDERFLOW = 0x0504
+
+ N2D = 0x0600
+ N3D = 0x0601
+ N3D_COLOR = 0x0602
+ N3D_COLOR_TEXTURE = 0x0603
+ N4D_COLOR_TEXTURE = 0x0604
+
+ BITMAP_TOKEN = 0x0704
+ COPY_PIXEL_TOKEN = 0x0706
+ DRAW_PIXEL_TOKEN = 0x0705
+ LINE_RESET_TOKEN = 0x0707
+ LINE_TOKEN = 0x0702
+ PASS_THROUGH_TOKEN = 0x0700
+ POINT_TOKEN = 0x0701
+ POLYGON_TOKEN = 0x0703
+
+ EXP = 0x0800
+ EXP2 = 0x0801
+ LINEAR = 0x2601
+
+ FOG_COLOR = 0x0B66
+ FOG_DENSITY = 0x0B62
+ FOG_END = 0x0B64
+ FOG_INDEX = 0x0B61
+ FOG_MODE = 0x0B65
+ FOG_START = 0x0B63
+
+ CCW = 0x0901
+ CW = 0x0900
+
+ COEFF = 0x0A00
+ DOMAIN = 0x0A02
+ ORDER = 0x0A01
+
+ PIXEL_MAP_A_TO_A = 0x0C79
+ PIXEL_MAP_B_TO_B = 0x0C78
+ PIXEL_MAP_G_TO_G = 0x0C77
+ PIXEL_MAP_I_TO_A = 0x0C75
+ PIXEL_MAP_I_TO_B = 0x0C74
+ PIXEL_MAP_I_TO_G = 0x0C73
+ PIXEL_MAP_I_TO_I = 0x0C70
+ PIXEL_MAP_I_TO_R = 0x0C72
+ PIXEL_MAP_R_TO_R = 0x0C76
+ PIXEL_MAP_S_TO_S = 0x0C71
+
+ ACCUM_ALPHA_BITS = 0x0D5B
+ ACCUM_BLUE_BITS = 0x0D5A
+ ACCUM_CLEAR_VALUE = 0x0B80
+ ACCUM_GREEN_BITS = 0x0D59
+ ACCUM_RED_BITS = 0x0D58
+ ALIASED_LINE_WIDTH_RANGE = 0x846E
+ ALIASED_POINT_SIZE_RANGE = 0x846D
+ ALPHA_BIAS = 0x0D1D
+ ALPHA_BITS = 0x0D55
+ ALPHA_SCALE = 0x0D1C
+ ALPHA_TEST_FUNC = 0x0BC1
+ ALPHA_TEST_REF = 0x0BC2
+ ATTRIB_STACK_DEPTH = 0x0BB0
+ AUX_BUFFERS = 0x0C00
+ BLEND_DST = 0x0BE0
+ BLEND_SRC = 0x0BE1
+ BLUE_BIAS = 0x0D1B
+ BLUE_BITS = 0x0D54
+ BLUE_SCALE = 0x0D1A
+ CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1
+ COLOR_ARRAY_SIZE = 0x8081
+ COLOR_ARRAY_STRIDE = 0x8083
+ COLOR_ARRAY_TYPE = 0x8082
+ COLOR_CLEAR_VALUE = 0x0C22
+ COLOR_MATERIAL_FACE = 0x0B55
+ COLOR_MATERIAL_PARAMETER = 0x0B56
+ COLOR_WRITEMASK = 0x0C23
+ CULL_FACE_MODE = 0x0B45
+ CURRENT_COLOR = 0x0B00
+ CURRENT_INDEX = 0x0B01
+ CURRENT_NORMAL = 0x0B02
+ CURRENT_RASTER_COLOR = 0x0B04
+ CURRENT_RASTER_DISTANCE = 0x0B09
+ CURRENT_RASTER_INDEX = 0x0B05
+ CURRENT_RASTER_POSITION = 0x0B07
+ CURRENT_RASTER_POSITION_VALID = 0x0B08
+ CURRENT_RASTER_TEXTURE_COORDS = 0x0B06
+ CURRENT_TEXTURE_COORDS = 0x0B03
+ DEPTH_BIAS = 0x0D1F
+ DEPTH_BITS = 0x0D56
+ DEPTH_CLEAR_VALUE = 0x0B73
+ DEPTH_FUNC = 0x0B74
+ DEPTH_RANGE = 0x0B70
+ DEPTH_SCALE = 0x0D1E
+ DEPTH_WRITEMASK = 0x0B72
+ DOUBLEBUFFER = 0x0C32
+ DRAW_BUFFER = 0x0C01
+ EDGE_FLAG = 0x0B43
+ EDGE_FLAG_ARRAY_STRIDE = 0x808C
+ FEEDBACK_BUFFER_SIZE = 0x0DF1
+ FEEDBACK_BUFFER_TYPE = 0x0DF2
+ FOG_HINT = 0x0C54
+ FRONT_FACE = 0x0B46
+ GREEN_BIAS = 0x0D19
+ GREEN_BITS = 0x0D53
+ GREEN_SCALE = 0x0D18
+ INDEX_ARRAY_STRIDE = 0x8086
+ INDEX_ARRAY_TYPE = 0x8085
+ INDEX_BITS = 0x0D51
+ INDEX_CLEAR_VALUE = 0x0C20
+ INDEX_MODE = 0x0C30
+ INDEX_OFFSET = 0x0D13
+ INDEX_SHIFT = 0x0D12
+ INDEX_WRITEMASK = 0x0C21
+ LIGHT_MODEL_AMBIENT = 0x0B53
+ LIGHT_MODEL_COLOR_CONTROL = 0x81F8
+ LIGHT_MODEL_LOCAL_VIEWER = 0x0B51
+ LIGHT_MODEL_TWO_SIDE = 0x0B52
+ LINE_SMOOTH_HINT = 0x0C52
+ LINE_STIPPLE_PATTERN = 0x0B25
+ LINE_STIPPLE_REPEAT = 0x0B26
+ LINE_WIDTH = 0x0B21
+ LINE_WIDTH_GRANULARITY = 0x0B23
+ LINE_WIDTH_RANGE = 0x0B22
+ LIST_BASE = 0x0B32
+ LIST_INDEX = 0x0B33
+ LIST_MODE = 0x0B30
+ LOGIC_OP_MODE = 0x0BF0
+ MAP1_GRID_DOMAIN = 0x0DD0
+ MAP1_GRID_SEGMENTS = 0x0DD1
+ MAP2_GRID_DOMAIN = 0x0DD2
+ MAP2_GRID_SEGMENTS = 0x0DD3
+ MAP_COLOR = 0x0D10
+ MAP_STENCIL = 0x0D11
+ MATRIX_MODE = 0x0BA0
+ MAX_ATTRIB_STACK_DEPTH = 0x0D35
+ MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B
+ MAX_CLIP_PLANES = 0x0D32
+ MAX_EVAL_ORDER = 0x0D30
+ MAX_LIGHTS = 0x0D31
+ MAX_LIST_NESTING = 0x0B31
+ MAX_MODELVIEW_STACK_DEPTH = 0x0D36
+ MAX_NAME_STACK_DEPTH = 0x0D37
+ MAX_PIXEL_MAP_TABLE = 0x0D34
+ MAX_PROJECTION_STACK_DEPTH = 0x0D38
+ MAX_TEXTURE_SIZE = 0x0D33
+ MAX_TEXTURE_STACK_DEPTH = 0x0D39
+ MAX_VIEWPORT_DIMS = 0x0D3A
+ MODELVIEW_MATRIX = 0x0BA6
+ MODELVIEW_STACK_DEPTH = 0x0BA3
+ NAME_STACK_DEPTH = 0x0D70
+ NORMAL_ARRAY_STRIDE = 0x807F
+ NORMAL_ARRAY_TYPE = 0x807E
+ PACK_ALIGNMENT = 0x0D05
+ PACK_LSB_FIRST = 0x0D01
+ PACK_ROW_LENGTH = 0x0D02
+ PACK_SKIP_PIXELS = 0x0D04
+ PACK_SKIP_ROWS = 0x0D03
+ PACK_SWAP_BYTES = 0x0D00
+ PERSPECTIVE_CORRECTION_HINT = 0x0C50
+ PIXEL_MAP_A_TO_A_SIZE = 0x0CB9
+ PIXEL_MAP_B_TO_B_SIZE = 0x0CB8
+ PIXEL_MAP_G_TO_G_SIZE = 0x0CB7
+ PIXEL_MAP_I_TO_A_SIZE = 0x0CB5
+ PIXEL_MAP_I_TO_B_SIZE = 0x0CB4
+ PIXEL_MAP_I_TO_G_SIZE = 0x0CB3
+ PIXEL_MAP_I_TO_I_SIZE = 0x0CB0
+ PIXEL_MAP_I_TO_R_SIZE = 0x0CB2
+ PIXEL_MAP_R_TO_R_SIZE = 0x0CB6
+ PIXEL_MAP_S_TO_S_SIZE = 0x0CB1
+ POINT_SIZE = 0x0B11
+ POINT_SIZE_GRANULARITY = 0x0B13
+ POINT_SIZE_RANGE = 0x0B12
+ POINT_SMOOTH_HINT = 0x0C51
+ POLYGON_MODE = 0x0B40
+ POLYGON_OFFSET_FACTOR = 0x8038
+ POLYGON_OFFSET_UNITS = 0x2A00
+ POLYGON_SMOOTH_HINT = 0x0C53
+ PROJECTION_MATRIX = 0x0BA7
+ PROJECTION_STACK_DEPTH = 0x0BA4
+ READ_BUFFER = 0x0C02
+ RED_BIAS = 0x0D15
+ RED_BITS = 0x0D52
+ RED_SCALE = 0x0D14
+ RENDER_MODE = 0x0C40
+ RGBA_MODE = 0x0C31
+ SCISSOR_BOX = 0x0C10
+ SELECTION_BUFFER_SIZE = 0x0DF4
+ SHADE_MODEL = 0x0B54
+ SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23
+ SMOOTH_LINE_WIDTH_RANGE = 0x0B22
+ SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13
+ SMOOTH_POINT_SIZE_RANGE = 0x0B12
+ STENCIL_BITS = 0x0D57
+ STENCIL_CLEAR_VALUE = 0x0B91
+ STENCIL_FAIL = 0x0B94
+ STENCIL_FUNC = 0x0B92
+ STENCIL_PASS_DEPTH_FAIL = 0x0B95
+ STENCIL_PASS_DEPTH_PASS = 0x0B96
+ STENCIL_REF = 0x0B97
+ STENCIL_VALUE_MASK = 0x0B93
+ STENCIL_WRITEMASK = 0x0B98
+ STEREO = 0x0C33
+ SUBPIXEL_BITS = 0x0D50
+ TEXTURE_BINDING_1D = 0x8068
+ TEXTURE_BINDING_2D = 0x8069
+ TEXTURE_BINDING_3D = 0x806A
+ TEXTURE_COORD_ARRAY_SIZE = 0x8088
+ TEXTURE_COORD_ARRAY_STRIDE = 0x808A
+ TEXTURE_COORD_ARRAY_TYPE = 0x8089
+ TEXTURE_MATRIX = 0x0BA8
+ TEXTURE_STACK_DEPTH = 0x0BA5
+ UNPACK_ALIGNMENT = 0x0CF5
+ UNPACK_LSB_FIRST = 0x0CF1
+ UNPACK_ROW_LENGTH = 0x0CF2
+ UNPACK_SKIP_PIXELS = 0x0CF4
+ UNPACK_SKIP_ROWS = 0x0CF3
+ UNPACK_SWAP_BYTES = 0x0CF0
+ VERTEX_ARRAY_SIZE = 0x807A
+ VERTEX_ARRAY_STRIDE = 0x807C
+ VERTEX_ARRAY_TYPE = 0x807B
+ VIEWPORT = 0x0BA2
+ ZOOM_X = 0x0D16
+ ZOOM_Y = 0x0D17
+
+ COLOR_ARRAY_POINTER = 0x8090
+ EDGE_FLAG_ARRAY_POINTER = 0x8093
+ FEEDBACK_BUFFER_POINTER = 0x0DF0
+ INDEX_ARRAY_POINTER = 0x8091
+ NORMAL_ARRAY_POINTER = 0x808F
+ SELECTION_BUFFER_POINTER = 0x0DF3
+ TEXTURE_COORD_ARRAY_POINTER = 0x8092
+ VERTEX_ARRAY_POINTER = 0x808E
+
+ TEXTURE_ALPHA_SIZE = 0x805F
+ TEXTURE_BLUE_SIZE = 0x805E
+ TEXTURE_BORDER = 0x1005
+ TEXTURE_BORDER_COLOR = 0x1004
+ TEXTURE_COMPONENTS = 0x1003
+ TEXTURE_GREEN_SIZE = 0x805D
+ TEXTURE_HEIGHT = 0x1001
+ TEXTURE_INTENSITY_SIZE = 0x8061
+ TEXTURE_INTERNAL_FORMAT = 0x1003
+ TEXTURE_LUMINANCE_SIZE = 0x8060
+ TEXTURE_MAG_FILTER = 0x2800
+ TEXTURE_MIN_FILTER = 0x2801
+ TEXTURE_PRIORITY = 0x8066
+ TEXTURE_RED_SIZE = 0x805C
+ TEXTURE_RESIDENT = 0x8067
+ TEXTURE_WIDTH = 0x1000
+ TEXTURE_WRAP_S = 0x2802
+ TEXTURE_WRAP_T = 0x2803
+
+ DONT_CARE = 0x1100
+ FASTEST = 0x1101
+ NICEST = 0x1102
+
+ FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B
+ GENERATE_MIPMAP_HINT = 0x8192
+ TEXTURE_COMPRESSION_HINT = 0x84EF
+
+ C3F_V3F = 0x2A24
+ C4F_N3F_V3F = 0x2A26
+ C4UB_V2F = 0x2A22
+ C4UB_V3F = 0x2A23
+ N3F_V3F = 0x2A25
+ T2F_C3F_V3F = 0x2A2A
+ T2F_C4F_N3F_V3F = 0x2A2C
+ T2F_C4UB_V3F = 0x2A29
+ T2F_N3F_V3F = 0x2A2B
+ T2F_V3F = 0x2A27
+ T4F_C4F_N3F_V4F = 0x2A2D
+ T4F_V4F = 0x2A28
+ V2F = 0x2A20
+ V3F = 0x2A21
+
+ MODULATE = 0x2100
+ REPLACE = 0x1E01
+
+ SEPARATE_SPECULAR_COLOR = 0x81FA
+ SINGLE_COLOR = 0x81F9
+
+ CONSTANT_ATTENUATION = 0x1207
+ LINEAR_ATTENUATION = 0x1208
+ POSITION = 0x1203
+ QUADRATIC_ATTENUATION = 0x1209
+ SPOT_CUTOFF = 0x1206
+ SPOT_DIRECTION = 0x1204
+ SPOT_EXPONENT = 0x1205
+
+ COMPILE = 0x1300
+ COMPILE_AND_EXECUTE = 0x1301
+
+ AND = 0x1501
+ AND_INVERTED = 0x1504
+ AND_REVERSE = 0x1502
+ CLEAR = 0x1500
+ COPY = 0x1503
+ COPY_INVERTED = 0x150C
+ EQUIV = 0x1509
+ INVERT = 0x150A
+ NAND = 0x150E
+ NOOP = 0x1505
+ NOR = 0x1508
+ OR = 0x1507
+ OR_INVERTED = 0x150D
+ OR_REVERSE = 0x150B
+ SET = 0x150F
+ XOR = 0x1506
+
+ COLOR_INDEXES = 0x1603
+ SHININESS = 0x1601
+
+ MODELVIEW = 0x1700
+ PROJECTION = 0x1701
+ TEXTURE = 0x1702
+
+ LINE = 0x1B01
+ POINT = 0x1B00
+
+ FILL = 0x1B02
+
+ COLOR = 0x1800
+ DEPTH = 0x1801
+ STENCIL = 0x1802
+
+ ALPHA = 0x1906
+ BLUE = 0x1905
+ COLOR_INDEX = 0x1900
+ DEPTH_COMPONENT = 0x1902
+ GREEN = 0x1904
+ LUMINANCE = 0x1909
+ LUMINANCE_ALPHA = 0x190A
+ RED = 0x1903
+ RGB = 0x1907
+ RGBA = 0x1908
+ STENCIL_INDEX = 0x1901
+
+ ALPHA12 = 0x803D
+ ALPHA16 = 0x803E
+ ALPHA4 = 0x803B
+ ALPHA8 = 0x803C
+ INTENSITY = 0x8049
+ INTENSITY12 = 0x804C
+ INTENSITY16 = 0x804D
+ INTENSITY4 = 0x804A
+ INTENSITY8 = 0x804B
+ LUMINANCE12 = 0x8041
+ LUMINANCE12_ALPHA12 = 0x8047
+ LUMINANCE12_ALPHA4 = 0x8046
+ LUMINANCE16 = 0x8042
+ LUMINANCE16_ALPHA16 = 0x8048
+ LUMINANCE4 = 0x803F
+ LUMINANCE4_ALPHA4 = 0x8043
+ LUMINANCE6_ALPHA2 = 0x8044
+ LUMINANCE8 = 0x8040
+ LUMINANCE8_ALPHA8 = 0x8045
+ R3_G3_B2 = 0x2A10
+ RGB10 = 0x8052
+ RGB10_A2 = 0x8059
+ RGB12 = 0x8053
+ RGB16 = 0x8054
+ RGB4 = 0x804F
+ RGB5 = 0x8050
+ RGB5_A1 = 0x8057
+ RGB8 = 0x8051
+ RGBA12 = 0x805A
+ RGBA16 = 0x805B
+ RGBA2 = 0x8055
+ RGBA4 = 0x8056
+ RGBA8 = 0x8058
+
+ PACK_IMAGE_HEIGHT = 0x806C
+ PACK_SKIP_IMAGES = 0x806B
+ UNPACK_IMAGE_HEIGHT = 0x806E
+ UNPACK_SKIP_IMAGES = 0x806D
+
+ BITMAP = 0x1A00
+ UNSIGNED_BYTE_3_3_2 = 0x8032
+ UNSIGNED_INT_10_10_10_2 = 0x8036
+ UNSIGNED_INT_8_8_8_8 = 0x8035
+ UNSIGNED_SHORT_4_4_4_4 = 0x8033
+ UNSIGNED_SHORT_5_5_5_1 = 0x8034
+
+ POINT_DISTANCE_ATTENUATION = 0x8129
+ POINT_FADE_THRESHOLD_SIZE = 0x8128
+ POINT_SIZE_MAX = 0x8127
+ POINT_SIZE_MIN = 0x8126
+
+ LINES = 0x0001
+ LINE_LOOP = 0x0002
+ LINE_STRIP = 0x0003
+ POINTS = 0x0000
+ POLYGON = 0x0009
+ QUADS = 0x0007
+ QUAD_STRIP = 0x0008
+ TRIANGLES = 0x0004
+ TRIANGLE_FAN = 0x0006
+ TRIANGLE_STRIP = 0x0005
+
+ FEEDBACK = 0x1C01
+ RENDER = 0x1C00
+ SELECT = 0x1C02
+
+ FLAT = 0x1D00
+ SMOOTH = 0x1D01
+
+ DECR = 0x1E03
+ INCR = 0x1E02
+ KEEP = 0x1E00
+
+ EXTENSIONS = 0x1F03
+ RENDERER = 0x1F01
+ VENDOR = 0x1F00
+ VERSION = 0x1F02
+
+ S = 0x2000
+ T = 0x2001
+ R = 0x2002
+ Q = 0x2003
+
+ DECAL = 0x2101
+
+ TEXTURE_ENV_COLOR = 0x2201
+ TEXTURE_ENV_MODE = 0x2200
+
+ TEXTURE_ENV = 0x2300
+
+ EYE_LINEAR = 0x2400
+ OBJECT_LINEAR = 0x2401
+ SPHERE_MAP = 0x2402
+
+ EYE_PLANE = 0x2502
+ OBJECT_PLANE = 0x2501
+ TEXTURE_GEN_MODE = 0x2500
+
+ NEAREST = 0x2600
+
+ LINEAR_MIPMAP_LINEAR = 0x2703
+ LINEAR_MIPMAP_NEAREST = 0x2701
+ NEAREST_MIPMAP_LINEAR = 0x2702
+ NEAREST_MIPMAP_NEAREST = 0x2700
+
+ GENERATE_MIPMAP = 0x8191
+ TEXTURE_WRAP_R = 0x8072
+
+ PROXY_TEXTURE_1D = 0x8063
+ PROXY_TEXTURE_2D = 0x8064
+ PROXY_TEXTURE_3D = 0x8070
+ TEXTURE_3D = 0x806F
+ TEXTURE_BASE_LEVEL = 0x813C
+ TEXTURE_MAX_LEVEL = 0x813D
+ TEXTURE_MAX_LOD = 0x813B
+ TEXTURE_MIN_LOD = 0x813A
+
+ CLAMP = 0x2900
+ CLAMP_TO_BORDER = 0x812D
+ CLAMP_TO_EDGE = 0x812F
+ REPEAT = 0x2901
+
+ CONSTANT_COLOR = 0x8001
+ ONE_MINUS_CONSTANT_COLOR = 0x8002
+ CONSTANT_ALPHA = 0x8003
+ ONE_MINUS_CONSTANT_ALPHA = 0x8004
+ FUNC_ADD = 0x8006
+ MIN = 0x8007
+ MAX = 0x8008
+ BLEND_EQUATION_RGB = 0x8009
+ FUNC_SUBTRACT = 0x800A
+ FUNC_REVERSE_SUBTRACT = 0x800B
+ RESCALE_NORMAL = 0x803A
+ TEXTURE_DEPTH = 0x8071
+ MAX_3D_TEXTURE_SIZE = 0x8073
+ MULTISAMPLE = 0x809D
+ SAMPLE_ALPHA_TO_COVERAGE = 0x809E
+ SAMPLE_ALPHA_TO_ONE = 0x809F
+ SAMPLE_COVERAGE = 0x80A0
+ SAMPLE_BUFFERS = 0x80A8
+ SAMPLES = 0x80A9
+ SAMPLE_COVERAGE_VALUE = 0x80AA
+ SAMPLE_COVERAGE_INVERT = 0x80AB
+ BLEND_DST_RGB = 0x80C8
+ BLEND_SRC_RGB = 0x80C9
+ BLEND_DST_ALPHA = 0x80CA
+ BLEND_SRC_ALPHA = 0x80CB
+ BGR = 0x80E0
+ BGRA = 0x80E1
+ MAX_ELEMENTS_VERTICES = 0x80E8
+ MAX_ELEMENTS_INDICES = 0x80E9
+ DEPTH_COMPONENT16 = 0x81A5
+ DEPTH_COMPONENT24 = 0x81A6
+ DEPTH_COMPONENT32 = 0x81A7
+ UNSIGNED_BYTE_2_3_3_REV = 0x8362
+ UNSIGNED_SHORT_5_6_5 = 0x8363
+ UNSIGNED_SHORT_5_6_5_REV = 0x8364
+ UNSIGNED_SHORT_4_4_4_4_REV = 0x8365
+ UNSIGNED_SHORT_1_5_5_5_REV = 0x8366
+ UNSIGNED_INT_8_8_8_8_REV = 0x8367
+ UNSIGNED_INT_2_10_10_10_REV = 0x8368
+ MIRRORED_REPEAT = 0x8370
+ FOG_COORDINATE_SOURCE = 0x8450
+ FOG_COORD_SRC = 0x8450
+ FOG_COORDINATE = 0x8451
+ FOG_COORD = 0x8451
+ FRAGMENT_DEPTH = 0x8452
+ CURRENT_FOG_COORDINATE = 0x8453
+ CURRENT_FOG_COORD = 0x8453
+ FOG_COORDINATE_ARRAY_TYPE = 0x8454
+ FOG_COORD_ARRAY_TYPE = 0x8454
+ FOG_COORDINATE_ARRAY_STRIDE = 0x8455
+ FOG_COORD_ARRAY_STRIDE = 0x8455
+ FOG_COORDINATE_ARRAY_POINTER = 0x8456
+ FOG_COORD_ARRAY_POINTER = 0x8456
+ FOG_COORDINATE_ARRAY = 0x8457
+ FOG_COORD_ARRAY = 0x8457
+ COLOR_SUM = 0x8458
+ CURRENT_SECONDARY_COLOR = 0x8459
+ SECONDARY_COLOR_ARRAY_SIZE = 0x845A
+ SECONDARY_COLOR_ARRAY_TYPE = 0x845B
+ SECONDARY_COLOR_ARRAY_STRIDE = 0x845C
+ SECONDARY_COLOR_ARRAY_POINTER = 0x845D
+ SECONDARY_COLOR_ARRAY = 0x845E
+ CURRENT_RASTER_SECONDARY_COLOR = 0x845F
+ TEXTURE0 = 0x84C0
+ TEXTURE1 = 0x84C1
+ TEXTURE2 = 0x84C2
+ TEXTURE3 = 0x84C3
+ TEXTURE4 = 0x84C4
+ TEXTURE5 = 0x84C5
+ TEXTURE6 = 0x84C6
+ TEXTURE7 = 0x84C7
+ TEXTURE8 = 0x84C8
+ TEXTURE9 = 0x84C9
+ TEXTURE10 = 0x84CA
+ TEXTURE11 = 0x84CB
+ TEXTURE12 = 0x84CC
+ TEXTURE13 = 0x84CD
+ TEXTURE14 = 0x84CE
+ TEXTURE15 = 0x84CF
+ TEXTURE16 = 0x84D0
+ TEXTURE17 = 0x84D1
+ TEXTURE18 = 0x84D2
+ TEXTURE19 = 0x84D3
+ TEXTURE20 = 0x84D4
+ TEXTURE21 = 0x84D5
+ TEXTURE22 = 0x84D6
+ TEXTURE23 = 0x84D7
+ TEXTURE24 = 0x84D8
+ TEXTURE25 = 0x84D9
+ TEXTURE26 = 0x84DA
+ TEXTURE27 = 0x84DB
+ TEXTURE28 = 0x84DC
+ TEXTURE29 = 0x84DD
+ TEXTURE30 = 0x84DE
+ TEXTURE31 = 0x84DF
+ ACTIVE_TEXTURE = 0x84E0
+ CLIENT_ACTIVE_TEXTURE = 0x84E1
+ MAX_TEXTURE_UNITS = 0x84E2
+ TRANSPOSE_MODELVIEW_MATRIX = 0x84E3
+ TRANSPOSE_PROJECTION_MATRIX = 0x84E4
+ TRANSPOSE_TEXTURE_MATRIX = 0x84E5
+ TRANSPOSE_COLOR_MATRIX = 0x84E6
+ SUBTRACT = 0x84E7
+ COMPRESSED_ALPHA = 0x84E9
+ COMPRESSED_LUMINANCE = 0x84EA
+ COMPRESSED_LUMINANCE_ALPHA = 0x84EB
+ COMPRESSED_INTENSITY = 0x84EC
+ COMPRESSED_RGB = 0x84ED
+ COMPRESSED_RGBA = 0x84EE
+ MAX_TEXTURE_LOD_BIAS = 0x84FD
+ TEXTURE_FILTER_CONTROL = 0x8500
+ TEXTURE_LOD_BIAS = 0x8501
+ INCR_WRAP = 0x8507
+ DECR_WRAP = 0x8508
+ NORMAL_MAP = 0x8511
+ REFLECTION_MAP = 0x8512
+ TEXTURE_CUBE_MAP = 0x8513
+ TEXTURE_BINDING_CUBE_MAP = 0x8514
+ TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515
+ TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516
+ TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
+ TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518
+ TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519
+ TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A
+ PROXY_TEXTURE_CUBE_MAP = 0x851B
+ MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C
+ COMBINE = 0x8570
+ COMBINE_RGB = 0x8571
+ COMBINE_ALPHA = 0x8572
+ RGB_SCALE = 0x8573
+ ADD_SIGNED = 0x8574
+ INTERPOLATE = 0x8575
+ CONSTANT = 0x8576
+ PRIMARY_COLOR = 0x8577
+ PREVIOUS = 0x8578
+ SOURCE0_RGB = 0x8580
+ SRC0_RGB = 0x8580
+ SOURCE1_RGB = 0x8581
+ SRC1_RGB = 0x8581
+ SOURCE2_RGB = 0x8582
+ SRC2_RGB = 0x8582
+ SOURCE0_ALPHA = 0x8588
+ SRC0_ALPHA = 0x8588
+ SOURCE1_ALPHA = 0x8589
+ SRC1_ALPHA = 0x8589
+ SOURCE2_ALPHA = 0x858A
+ SRC2_ALPHA = 0x858A
+ OPERAND0_RGB = 0x8590
+ OPERAND1_RGB = 0x8591
+ OPERAND2_RGB = 0x8592
+ OPERAND0_ALPHA = 0x8598
+ OPERAND1_ALPHA = 0x8599
+ OPERAND2_ALPHA = 0x859A
+ VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622
+ VERTEX_ATTRIB_ARRAY_SIZE = 0x8623
+ VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624
+ VERTEX_ATTRIB_ARRAY_TYPE = 0x8625
+ CURRENT_VERTEX_ATTRIB = 0x8626
+ VERTEX_PROGRAM_POINT_SIZE = 0x8642
+ VERTEX_PROGRAM_TWO_SIDE = 0x8643
+ VERTEX_ATTRIB_ARRAY_POINTER = 0x8645
+ TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0
+ TEXTURE_COMPRESSED = 0x86A1
+ NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2
+ COMPRESSED_TEXTURE_FORMATS = 0x86A3
+ DOT3_RGB = 0x86AE
+ DOT3_RGBA = 0x86AF
+ BUFFER_SIZE = 0x8764
+ BUFFER_USAGE = 0x8765
+ STENCIL_BACK_FUNC = 0x8800
+ STENCIL_BACK_FAIL = 0x8801
+ STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802
+ STENCIL_BACK_PASS_DEPTH_PASS = 0x8803
+ MAX_DRAW_BUFFERS = 0x8824
+ DRAW_BUFFER0 = 0x8825
+ DRAW_BUFFER1 = 0x8826
+ DRAW_BUFFER2 = 0x8827
+ DRAW_BUFFER3 = 0x8828
+ DRAW_BUFFER4 = 0x8829
+ DRAW_BUFFER5 = 0x882A
+ DRAW_BUFFER6 = 0x882B
+ DRAW_BUFFER7 = 0x882C
+ DRAW_BUFFER8 = 0x882D
+ DRAW_BUFFER9 = 0x882E
+ DRAW_BUFFER10 = 0x882F
+ DRAW_BUFFER11 = 0x8830
+ DRAW_BUFFER12 = 0x8831
+ DRAW_BUFFER13 = 0x8832
+ DRAW_BUFFER14 = 0x8833
+ DRAW_BUFFER15 = 0x8834
+ BLEND_EQUATION_ALPHA = 0x883D
+ TEXTURE_DEPTH_SIZE = 0x884A
+ DEPTH_TEXTURE_MODE = 0x884B
+ TEXTURE_COMPARE_MODE = 0x884C
+ TEXTURE_COMPARE_FUNC = 0x884D
+ COMPARE_R_TO_TEXTURE = 0x884E
+ POINT_SPRITE = 0x8861
+ COORD_REPLACE = 0x8862
+ QUERY_COUNTER_BITS = 0x8864
+ CURRENT_QUERY = 0x8865
+ QUERY_RESULT = 0x8866
+ QUERY_RESULT_AVAILABLE = 0x8867
+ MAX_VERTEX_ATTRIBS = 0x8869
+ VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A
+ MAX_TEXTURE_COORDS = 0x8871
+ MAX_TEXTURE_IMAGE_UNITS = 0x8872
+ ARRAY_BUFFER = 0x8892
+ ELEMENT_ARRAY_BUFFER = 0x8893
+ ARRAY_BUFFER_BINDING = 0x8894
+ ELEMENT_ARRAY_BUFFER_BINDING = 0x8895
+ VERTEX_ARRAY_BUFFER_BINDING = 0x8896
+ NORMAL_ARRAY_BUFFER_BINDING = 0x8897
+ COLOR_ARRAY_BUFFER_BINDING = 0x8898
+ INDEX_ARRAY_BUFFER_BINDING = 0x8899
+ TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A
+ EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B
+ SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C
+ FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D
+ FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D
+ WEIGHT_ARRAY_BUFFER_BINDING = 0x889E
+ VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F
+ READ_ONLY = 0x88B8
+ WRITE_ONLY = 0x88B9
+ READ_WRITE = 0x88BA
+ BUFFER_ACCESS = 0x88BB
+ BUFFER_MAPPED = 0x88BC
+ BUFFER_MAP_POINTER = 0x88BD
+ STREAM_DRAW = 0x88E0
+ STREAM_READ = 0x88E1
+ STREAM_COPY = 0x88E2
+ STATIC_DRAW = 0x88E4
+ STATIC_READ = 0x88E5
+ STATIC_COPY = 0x88E6
+ DYNAMIC_DRAW = 0x88E8
+ DYNAMIC_READ = 0x88E9
+ DYNAMIC_COPY = 0x88EA
+ PIXEL_PACK_BUFFER = 0x88EB
+ PIXEL_UNPACK_BUFFER = 0x88EC
+ PIXEL_PACK_BUFFER_BINDING = 0x88ED
+ PIXEL_UNPACK_BUFFER_BINDING = 0x88EF
+ SAMPLES_PASSED = 0x8914
+ FRAGMENT_SHADER = 0x8B30
+ VERTEX_SHADER = 0x8B31
+ MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49
+ MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A
+ MAX_VARYING_FLOATS = 0x8B4B
+ MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C
+ MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D
+ SHADER_TYPE = 0x8B4F
+ FLOAT_VEC2 = 0x8B50
+ FLOAT_VEC3 = 0x8B51
+ FLOAT_VEC4 = 0x8B52
+ INT_VEC2 = 0x8B53
+ INT_VEC3 = 0x8B54
+ INT_VEC4 = 0x8B55
+ BOOL = 0x8B56
+ BOOL_VEC2 = 0x8B57
+ BOOL_VEC3 = 0x8B58
+ BOOL_VEC4 = 0x8B59
+ FLOAT_MAT2 = 0x8B5A
+ FLOAT_MAT3 = 0x8B5B
+ FLOAT_MAT4 = 0x8B5C
+ SAMPLER_1D = 0x8B5D
+ SAMPLER_2D = 0x8B5E
+ SAMPLER_3D = 0x8B5F
+ SAMPLER_CUBE = 0x8B60
+ SAMPLER_1D_SHADOW = 0x8B61
+ SAMPLER_2D_SHADOW = 0x8B62
+ FLOAT_MAT2x3 = 0x8B65
+ FLOAT_MAT2x4 = 0x8B66
+ FLOAT_MAT3x2 = 0x8B67
+ FLOAT_MAT3x4 = 0x8B68
+ FLOAT_MAT4x2 = 0x8B69
+ FLOAT_MAT4x3 = 0x8B6A
+ DELETE_STATUS = 0x8B80
+ COMPILE_STATUS = 0x8B81
+ LINK_STATUS = 0x8B82
+ VALIDATE_STATUS = 0x8B83
+ INFO_LOG_LENGTH = 0x8B84
+ ATTACHED_SHADERS = 0x8B85
+ ACTIVE_UNIFORMS = 0x8B86
+ ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87
+ SHADER_SOURCE_LENGTH = 0x8B88
+ ACTIVE_ATTRIBUTES = 0x8B89
+ ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A
+ SHADING_LANGUAGE_VERSION = 0x8B8C
+ CURRENT_PROGRAM = 0x8B8D
+ SRGB = 0x8C40
+ SRGB8 = 0x8C41
+ SRGB_ALPHA = 0x8C42
+ SRGB8_ALPHA8 = 0x8C43
+ SLUMINANCE_ALPHA = 0x8C44
+ SLUMINANCE8_ALPHA8 = 0x8C45
+ SLUMINANCE = 0x8C46
+ SLUMINANCE8 = 0x8C47
+ COMPRESSED_SRGB = 0x8C48
+ COMPRESSED_SRGB_ALPHA = 0x8C49
+ COMPRESSED_SLUMINANCE = 0x8C4A
+ COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B
+ POINT_SPRITE_COORD_ORIGIN = 0x8CA0
+ LOWER_LEFT = 0x8CA1
+ UPPER_LEFT = 0x8CA2
+ STENCIL_BACK_REF = 0x8CA3
+ STENCIL_BACK_VALUE_MASK = 0x8CA4
+ STENCIL_BACK_WRITEMASK = 0x8CA5
+)
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glViewport.xml
+func (gl *GL) Viewport(x, y, width, height int) {
+ C.gl2_1_glViewport(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// DepthRange specifies the mapping of depth values from normalized device
+// coordinates to window coordinates.
+//
+// Parameter nearVal specifies the mapping of the near clipping plane to window
+// coordinates (defaults to 0), while farVal specifies the mapping of the far
+// clipping plane to window coordinates (defaults to 1).
+//
+// After clipping and division by w, depth coordinates range from -1 to 1,
+// corresponding to the near and far clipping planes. DepthRange specifies a
+// linear mapping of the normalized depth coordinates in this range to window
+// depth coordinates. Regardless of the actual depth buffer implementation,
+// window coordinate depth values are treated as though they range from 0 through 1
+// (like color components). Thus, the values accepted by DepthRange are both
+// clamped to this range before they are accepted.
+//
+// The default setting of (0, 1) maps the near plane to 0 and the far plane to 1.
+// With this mapping, the depth buffer range is fully utilized.
+//
+// It is not necessary that nearVal be less than farVal. Reverse mappings such as
+// nearVal 1, and farVal 0 are acceptable.
+//
+// GL.INVALID_OPERATION is generated if DepthRange is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) DepthRange(nearVal, farVal float64) {
+ C.gl2_1_glDepthRange(gl.funcs, C.GLdouble(nearVal), C.GLdouble(farVal))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsEnabled.xml
+func (gl *GL) IsEnabled(cap glbase.Enum) bool {
+ glresult := C.gl2_1_glIsEnabled(gl.funcs, C.GLenum(cap))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameteriv.xml
+func (gl *GL) GetTexLevelParameteriv(target glbase.Enum, level int, pname glbase.Enum, params []int32) {
+ C.gl2_1_glGetTexLevelParameteriv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexLevelParameterfv.xml
+func (gl *GL) GetTexLevelParameterfv(target glbase.Enum, level int, pname glbase.Enum, params []float32) {
+ C.gl2_1_glGetTexLevelParameterfv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameteriv.xml
+func (gl *GL) GetTexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_1_glGetTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexParameterfv.xml
+func (gl *GL) GetTexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_1_glGetTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexImage.xml
+func (gl *GL) GetTexImage(target glbase.Enum, level int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glGetTexImage(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetIntegerv.xml
+func (gl *GL) GetIntegerv(pname glbase.Enum, params []int32) {
+ C.gl2_1_glGetIntegerv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetFloatv.xml
+func (gl *GL) GetFloatv(pname glbase.Enum, params []float32) {
+ C.gl2_1_glGetFloatv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetError.xml
+func (gl *GL) GetError() glbase.Enum {
+ glresult := C.gl2_1_glGetError(gl.funcs)
+ return glbase.Enum(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetDoublev.xml
+func (gl *GL) GetDoublev(pname glbase.Enum, params []float64) {
+ C.gl2_1_glGetDoublev(gl.funcs, C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetBooleanv.xml
+func (gl *GL) GetBooleanv(pname glbase.Enum, params []bool) {
+ C.gl2_1_glGetBooleanv(gl.funcs, C.GLenum(pname), (*C.GLboolean)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadPixels.xml
+func (gl *GL) ReadPixels(x, y, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glReadPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glReadBuffer.xml
+func (gl *GL) ReadBuffer(mode glbase.Enum) {
+ C.gl2_1_glReadBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStorei.xml
+func (gl *GL) PixelStorei(pname glbase.Enum, param int32) {
+ C.gl2_1_glPixelStorei(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelStoref.xml
+func (gl *GL) PixelStoref(pname glbase.Enum, param float32) {
+ C.gl2_1_glPixelStoref(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthFunc.xml
+func (gl *GL) DepthFunc(glfunc glbase.Enum) {
+ C.gl2_1_glDepthFunc(gl.funcs, C.GLenum(glfunc))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilOp.xml
+func (gl *GL) StencilOp(fail, zfail, zpass glbase.Enum) {
+ C.gl2_1_glStencilOp(gl.funcs, C.GLenum(fail), C.GLenum(zfail), C.GLenum(zpass))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilFunc.xml
+func (gl *GL) StencilFunc(glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl2_1_glStencilFunc(gl.funcs, C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLogicOp.xml
+func (gl *GL) LogicOp(opcode glbase.Enum) {
+ C.gl2_1_glLogicOp(gl.funcs, C.GLenum(opcode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendFunc.xml
+func (gl *GL) BlendFunc(sfactor, dfactor glbase.Enum) {
+ C.gl2_1_glBlendFunc(gl.funcs, C.GLenum(sfactor), C.GLenum(dfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFlush.xml
+func (gl *GL) Flush() {
+ C.gl2_1_glFlush(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFinish.xml
+func (gl *GL) Finish() {
+ C.gl2_1_glFinish(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnable.xml
+func (gl *GL) Enable(cap glbase.Enum) {
+ C.gl2_1_glEnable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisable.xml
+func (gl *GL) Disable(cap glbase.Enum) {
+ C.gl2_1_glDisable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDepthMask.xml
+func (gl *GL) DepthMask(flag bool) {
+ C.gl2_1_glDepthMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMask.xml
+func (gl *GL) ColorMask(red, green, blue, alpha bool) {
+ C.gl2_1_glColorMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&red)), *(*C.GLboolean)(unsafe.Pointer(&green)), *(*C.GLboolean)(unsafe.Pointer(&blue)), *(*C.GLboolean)(unsafe.Pointer(&alpha)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilMask.xml
+func (gl *GL) StencilMask(mask uint32) {
+ C.gl2_1_glStencilMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearDepth.xml
+func (gl *GL) ClearDepth(depth float64) {
+ C.gl2_1_glClearDepth(gl.funcs, C.GLdouble(depth))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearStencil.xml
+func (gl *GL) ClearStencil(s int32) {
+ C.gl2_1_glClearStencil(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearColor.xml
+func (gl *GL) ClearColor(red, green, blue, alpha float32) {
+ C.gl2_1_glClearColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClear.xml
+func (gl *GL) Clear(mask glbase.Bitfield) {
+ C.gl2_1_glClear(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawBuffer.xml
+func (gl *GL) DrawBuffer(mode glbase.Enum) {
+ C.gl2_1_glDrawBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage2D.xml
+func (gl *GL) TexImage2D(target glbase.Enum, level int, internalFormat int32, width, height, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage1D.xml
+func (gl *GL) TexImage1D(target glbase.Enum, level int, internalFormat int32, width, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteriv.xml
+func (gl *GL) TexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_1_glTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameteri.xml
+func (gl *GL) TexParameteri(target, pname glbase.Enum, param int32) {
+ C.gl2_1_glTexParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterfv.xml
+func (gl *GL) TexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_1_glTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexParameterf.xml
+func (gl *GL) TexParameterf(target, pname glbase.Enum, param float32) {
+ C.gl2_1_glTexParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScissor.xml
+func (gl *GL) Scissor(x, y, width, height int) {
+ C.gl2_1_glScissor(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonMode.xml
+func (gl *GL) PolygonMode(face, mode glbase.Enum) {
+ C.gl2_1_glPolygonMode(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointSize.xml
+func (gl *GL) PointSize(size float32) {
+ C.gl2_1_glPointSize(gl.funcs, C.GLfloat(size))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineWidth.xml
+func (gl *GL) LineWidth(width float32) {
+ C.gl2_1_glLineWidth(gl.funcs, C.GLfloat(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glHint.xml
+func (gl *GL) Hint(target, mode glbase.Enum) {
+ C.gl2_1_glHint(gl.funcs, C.GLenum(target), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrontFace.xml
+func (gl *GL) FrontFace(mode glbase.Enum) {
+ C.gl2_1_glFrontFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCullFace.xml
+func (gl *GL) CullFace(mode glbase.Enum) {
+ C.gl2_1_glCullFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexubv.xml
+func (gl *GL) Indexubv(c []uint8) {
+ C.gl2_1_glIndexubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexub.xml
+func (gl *GL) Indexub(c uint8) {
+ C.gl2_1_glIndexub(gl.funcs, C.GLubyte(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsTexture.xml
+func (gl *GL) IsTexture(texture glbase.Texture) bool {
+ glresult := C.gl2_1_glIsTexture(gl.funcs, C.GLuint(texture))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenTextures returns n texture names in textures. There is no guarantee
+// that the names form a contiguous set of integers; however, it is
+// guaranteed that none of the returned names was in use immediately before
+// the call to GenTextures.
+//
+// The generated textures have no dimensionality; they assume the
+// dimensionality of the texture target to which they are first bound (see
+// BindTexture).
+//
+// Texture names returned by a call to GenTextures are not returned by
+// subsequent calls, unless they are first deleted with DeleteTextures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// GenTextures is available in GL version 2.0 or greater.
+func (gl *GL) GenTextures(n int) []glbase.Texture {
+ if n == 0 {
+ return nil
+ }
+ textures := make([]glbase.Texture, n)
+ C.gl2_1_glGenTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+ return textures
+}
+
+// DeleteTextures deletes the textures objects whose names are stored
+// in the textures slice. After a texture is deleted, it has no contents or
+// dimensionality, and its name is free for reuse (for example by
+// GenTextures). If a texture that is currently bound is deleted, the binding
+// reverts to 0 (the default texture).
+//
+// DeleteTextures silently ignores 0's and names that do not correspond to
+// existing textures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// DeleteTextures is available in GL version 2.0 or greater.
+func (gl *GL) DeleteTextures(textures []glbase.Texture) {
+ n := len(textures)
+ if n == 0 {
+ return
+ }
+ C.gl2_1_glDeleteTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBindTexture.xml
+func (gl *GL) BindTexture(target glbase.Enum, texture glbase.Texture) {
+ C.gl2_1_glBindTexture(gl.funcs, C.GLenum(target), C.GLuint(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage2D.xml
+func (gl *GL) TexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage1D.xml
+func (gl *GL) TexSubImage1D(target glbase.Enum, level, xoffset, width int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage2D.xml
+func (gl *GL) CopyTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, x, y, width, height int) {
+ C.gl2_1_glCopyTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage1D.xml
+func (gl *GL) CopyTexSubImage1D(target glbase.Enum, level, xoffset, x, y, width int) {
+ C.gl2_1_glCopyTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage2D.xml
+func (gl *GL) CopyTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, height, border int) {
+ C.gl2_1_glCopyTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexImage1D.xml
+func (gl *GL) CopyTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, border int) {
+ C.gl2_1_glCopyTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonOffset.xml
+func (gl *GL) PolygonOffset(factor, units float32) {
+ C.gl2_1_glPolygonOffset(gl.funcs, C.GLfloat(factor), C.GLfloat(units))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawElements.xml
+func (gl *GL) DrawElements(mode glbase.Enum, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glDrawElements(gl.funcs, C.GLenum(mode), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawArrays.xml
+func (gl *GL) DrawArrays(mode glbase.Enum, first, count int) {
+ C.gl2_1_glDrawArrays(gl.funcs, C.GLenum(mode), C.GLint(first), C.GLsizei(count))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyTexSubImage3D.xml
+func (gl *GL) CopyTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, x, y, width, height int) {
+ C.gl2_1_glCopyTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexSubImage3D.xml
+func (gl *GL) TexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexImage3D.xml
+func (gl *GL) TexImage3D(target glbase.Enum, level int, internalFormat int32, width, height int, depth int32, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawRangeElements.xml
+func (gl *GL) DrawRangeElements(mode glbase.Enum, start, end uint32, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glDrawRangeElements(gl.funcs, C.GLenum(mode), C.GLuint(start), C.GLuint(end), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendEquation.xml
+func (gl *GL) BlendEquation(mode glbase.Enum) {
+ C.gl2_1_glBlendEquation(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendColor.xml
+func (gl *GL) BlendColor(red, green, blue, alpha float32) {
+ C.gl2_1_glBlendColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetCompressedTexImage.xml
+func (gl *GL) GetCompressedTexImage(target glbase.Enum, level int, img interface{}) {
+ var img_ptr unsafe.Pointer
+ var img_v = reflect.ValueOf(img)
+ if img != nil && img_v.Kind() != reflect.Slice {
+ panic("parameter img must be a slice")
+ }
+ if img != nil {
+ img_ptr = unsafe.Pointer(img_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glGetCompressedTexImage(gl.funcs, C.GLenum(target), C.GLint(level), img_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage1D.xml
+func (gl *GL) CompressedTexSubImage1D(target glbase.Enum, level, xoffset, width int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glCompressedTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage2D.xml
+func (gl *GL) CompressedTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glCompressedTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexSubImage3D.xml
+func (gl *GL) CompressedTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glCompressedTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage1D.xml
+func (gl *GL) CompressedTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, width, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glCompressedTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage2D.xml
+func (gl *GL) CompressedTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glCompressedTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCompressedTexImage3D.xml
+func (gl *GL) CompressedTexImage3D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height int, depth int32, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glCompressedTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSampleCoverage.xml
+func (gl *GL) SampleCoverage(value float32, invert bool) {
+ C.gl2_1_glSampleCoverage(gl.funcs, C.GLfloat(value), *(*C.GLboolean)(unsafe.Pointer(&invert)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glActiveTexture.xml
+func (gl *GL) ActiveTexture(texture glbase.Enum) {
+ C.gl2_1_glActiveTexture(gl.funcs, C.GLenum(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameteriv.xml
+func (gl *GL) PointParameteriv(pname glbase.Enum, params []int32) {
+ C.gl2_1_glPointParameteriv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameteri.xml
+func (gl *GL) PointParameteri(pname glbase.Enum, param int32) {
+ C.gl2_1_glPointParameteri(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameterfv.xml
+func (gl *GL) PointParameterfv(pname glbase.Enum, params []float32) {
+ C.gl2_1_glPointParameterfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPointParameterf.xml
+func (gl *GL) PointParameterf(pname glbase.Enum, param float32) {
+ C.gl2_1_glPointParameterf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiDrawArrays.xml
+func (gl *GL) MultiDrawArrays(mode glbase.Enum, first, count []int, drawcount int32) {
+ C.gl2_1_glMultiDrawArrays(gl.funcs, C.GLenum(mode), (*C.GLint)(unsafe.Pointer(&first[0])), (*C.GLsizei)(unsafe.Pointer(&count[0])), C.GLsizei(drawcount))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendFuncSeparate.xml
+func (gl *GL) BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha glbase.Enum) {
+ C.gl2_1_glBlendFuncSeparate(gl.funcs, C.GLenum(sfactorRGB), C.GLenum(dfactorRGB), C.GLenum(sfactorAlpha), C.GLenum(dfactorAlpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetBufferParameteriv.xml
+func (gl *GL) GetBufferParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_1_glGetBufferParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glUnmapBuffer.xml
+func (gl *GL) UnmapBuffer(target glbase.Enum) bool {
+ glresult := C.gl2_1_glUnmapBuffer(gl.funcs, C.GLenum(target))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetBufferSubData.xml
+func (gl *GL) GetBufferSubData(target glbase.Enum, offset, size int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glGetBufferSubData(gl.funcs, C.GLenum(target), C.GLintptr(offset), C.GLsizeiptr(size), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBufferSubData.xml
+func (gl *GL) BufferSubData(target glbase.Enum, offset, size int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glBufferSubData(gl.funcs, C.GLenum(target), C.GLintptr(offset), C.GLsizeiptr(size), data_ptr)
+}
+
+// BufferData creates a new data store for the buffer object currently
+// bound to target. Any pre-existing data store is deleted. The new data
+// store is created with the specified size in bytes and usage. If data is
+// not nil, it must be a slice that is used to initialize the data store.
+// In that case the size parameter is ignored and the store size will match
+// the slice data size.
+//
+// In its initial state, the new data store is not mapped, it has a NULL
+// mapped pointer, and its mapped access is GL.READ_WRITE.
+//
+// The target constant must be one of GL.ARRAY_BUFFER, GL.COPY_READ_BUFFER,
+// GL.COPY_WRITE_BUFFER, GL.ELEMENT_ARRAY_BUFFER, GL.PIXEL_PACK_BUFFER,
+// GL.PIXEL_UNPACK_BUFFER, GL.TEXTURE_BUFFER, GL.TRANSFORM_FEEDBACK_BUFFER,
+// or GL.UNIFORM_BUFFER.
+//
+// The usage parameter is a hint to the GL implementation as to how a buffer
+// object's data store will be accessed. This enables the GL implementation
+// to make more intelligent decisions that may significantly impact buffer
+// object performance. It does not, however, constrain the actual usage of
+// the data store. usage can be broken down into two parts: first, the
+// frequency of access (modification and usage), and second, the nature of
+// that access.
+//
+// A usage frequency of STREAM and nature of DRAW is specified via the
+// constant GL.STREAM_DRAW, for example.
+//
+// The usage frequency of access may be one of:
+//
+// STREAM
+// The data store contents will be modified once and used at most a few times.
+//
+// STATIC
+// The data store contents will be modified once and used many times.
+//
+// DYNAMIC
+// The data store contents will be modified repeatedly and used many times.
+//
+// The usage nature of access may be one of:
+//
+// DRAW
+// The data store contents are modified by the application, and used as
+// the source for GL drawing and image specification commands.
+//
+// READ
+// The data store contents are modified by reading data from the GL,
+// and used to return that data when queried by the application.
+//
+// COPY
+// The data store contents are modified by reading data from the GL,
+// and used as the source for GL drawing and image specification
+// commands.
+//
+// Clients must align data elements consistent with the requirements of the
+// client platform, with an additional base-level requirement that an offset
+// within a buffer to a datum comprising N bytes be a multiple of N.
+//
+// Error GL.INVALID_ENUM is generated if target is not one of the accepted
+// buffer targets. GL.INVALID_ENUM is generated if usage is not
+// GL.STREAM_DRAW, GL.STREAM_READ, GL.STREAM_COPY, GL.STATIC_DRAW,
+// GL.STATIC_READ, GL.STATIC_COPY, GL.DYNAMIC_DRAW, GL.DYNAMIC_READ, or
+// GL.DYNAMIC_COPY. GL.INVALID_VALUE is generated if size is negative.
+// GL.INVALID_OPERATION is generated if the reserved buffer object name 0 is
+// bound to target. GL.OUT_OF_MEMORY is generated if the GL is unable to
+// create a data store with the specified size.
+func (gl *GL) BufferData(target glbase.Enum, size int, data interface{}, usage glbase.Enum) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ if data != nil {
+ size = int(data_v.Type().Size()) * data_v.Len()
+ }
+ C.gl2_1_glBufferData(gl.funcs, C.GLenum(target), C.GLsizeiptr(size), data_ptr, C.GLenum(usage))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsBuffer.xml
+func (gl *GL) IsBuffer(buffer glbase.Buffer) bool {
+ glresult := C.gl2_1_glIsBuffer(gl.funcs, C.GLuint(buffer))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenBuffers returns n buffer object names. There is no guarantee that
+// the names form a contiguous set of integers; however, it is guaranteed
+// that none of the returned names was in use immediately before the call to
+// GenBuffers.
+//
+// Buffer object names returned by a call to GenBuffers are not returned by
+// subsequent calls, unless they are first deleted with DeleteBuffers.
+//
+// No buffer objects are associated with the returned buffer object names
+// until they are first bound by calling BindBuffer.
+//
+// Error GL.INVALID_VALUE is generated if n is negative. GL.INVALID_OPERATION
+// is generated if GenBuffers is executed between the execution of Begin
+// and the corresponding execution of End.
+//
+// GenBuffers is available in GL version 1.5 or greater.
+func (gl *GL) GenBuffers(n int) []glbase.Buffer {
+ if n == 0 {
+ return nil
+ }
+ buffers := make([]glbase.Buffer, n)
+ C.gl2_1_glGenBuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&buffers[0])))
+ return buffers
+}
+
+// DeleteBuffers deletes the buffer objects whose names are stored in the
+// buffers slice.
+//
+// After a buffer object is deleted, it has no contents, and its name is free
+// for reuse (for example by GenBuffers). If a buffer object that is
+// currently bound is deleted, the binding reverts to 0 (the absence of any
+// buffer object, which reverts to client memory usage).
+//
+// DeleteBuffers silently ignores 0's and names that do not correspond to
+// existing buffer objects.
+//
+// Error GL.INVALID_VALUE is generated if n is negative. GL.INVALID_OPERATION
+// is generated if DeleteBuffers is executed between the execution of Begin
+// and the corresponding execution of End.
+//
+// DeleteBuffers is available in GL version 1.5 or greater.
+func (gl *GL) DeleteBuffers(buffers []glbase.Buffer) {
+ n := len(buffers)
+ if n == 0 {
+ return
+ }
+ C.gl2_1_glDeleteBuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&buffers[0])))
+}
+
+// BindBuffer creates or puts in use a named buffer object.
+// Calling BindBuffer with target set to GL.ARRAY_BUFFER,
+// GL.ELEMENT_ARRAY_BUFFER, GL.PIXEL_PACK_BUFFER or GL.PIXEL_UNPACK_BUFFER
+// and buffer set to the name of the new buffer object binds the buffer
+// object name to the target. When a buffer object is bound to a target, the
+// previous binding for that target is automatically broken.
+//
+// Buffer object names are unsigned integers. The value zero is reserved, but
+// there is no default buffer object for each buffer object target. Instead,
+// buffer set to zero effectively unbinds any buffer object previously bound,
+// and restores client memory usage for that buffer object target. Buffer
+// object names and the corresponding buffer object contents are local to the
+// shared display-list space (see XCreateContext) of the current GL rendering
+// context; two rendering contexts share buffer object names only if they
+// also share display lists.
+//
+// GenBuffers may be called to generate a set of new buffer object names.
+//
+// The state of a buffer object immediately after it is first bound is an
+// unmapped zero-sized memory buffer with GL.READ_WRITE access and
+// GL.STATIC_DRAW usage.
+//
+// While a non-zero buffer object name is bound, GL operations on the target
+// to which it is bound affect the bound buffer object, and queries of the
+// target to which it is bound return state from the bound buffer object.
+// While buffer object name zero is bound, as in the initial state, attempts
+// to modify or query state on the target to which it is bound generates an
+// GL.INVALID_OPERATION error.
+//
+// When vertex array pointer state is changed, for example by a call to
+// NormalPointer, the current buffer object binding (GL.ARRAY_BUFFER_BINDING)
+// is copied into the corresponding client state for the vertex array type
+// being changed, for example GL.NORMAL_ARRAY_BUFFER_BINDING. While a
+// non-zero buffer object is bound to the GL.ARRAY_BUFFER target, the vertex
+// array pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory is instead interpreted as an offset within the buffer
+// object measured in basic machine units.
+//
+// While a non-zero buffer object is bound to the GL.ELEMENT_ARRAY_BUFFER
+// target, the indices parameter of DrawElements, DrawRangeElements, or
+// MultiDrawElements that is traditionally interpreted as a pointer to
+// client-side memory is instead interpreted as an offset within the buffer
+// object measured in basic machine units.
+//
+// While a non-zero buffer object is bound to the GL.PIXEL_PACK_BUFFER
+// target, the following commands are affected: GetCompressedTexImage,
+// GetConvolutionFilter, GetHistogram, GetMinmax, GetPixelMap,
+// GetPolygonStipple, GetSeparableFilter, GetTexImage, and ReadPixels. The
+// pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory where the pixels are to be packed is instead
+// interpreted as an offset within the buffer object measured in basic
+// machine units.
+//
+// While a non-zero buffer object is bound to the GL.PIXEL_UNPACK_BUFFER
+// target, the following commands are affected: Bitmap, ColorSubTable,
+// ColorTable, CompressedTexImage1D, CompressedTexImage2D,
+// CompressedTexImage3D, CompressedTexSubImage1D, CompressedTexSubImage2D,
+// CompressedTexSubImage3D, ConvolutionFilter1D, ConvolutionFilter2D,
+// DrawPixels, PixelMap, PolygonStipple, SeparableFilter2D, TexImage1D,
+// TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, and TexSubImage3D.
+// The pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory from which the pixels are to be unpacked is instead
+// interpreted as an offset within the buffer object measured in basic
+// machine units.
+//
+// A buffer object binding created with BindBuffer remains active until a
+// different buffer object name is bound to the same target, or until the
+// bound buffer object is deleted with DeleteBuffers.
+//
+// Once created, a named buffer object may be re-bound to any target as often
+// as needed. However, the GL implementation may make choices about how to
+// optimize the storage of a buffer object based on its initial binding
+// target.
+//
+// Error GL.INVALID_ENUM is generated if target is not one of the allowable
+// values. GL.INVALID_OPERATION is generated if BindBuffer is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// BindBuffer is available in GL version 1.5 or greater.
+func (gl *GL) BindBuffer(target glbase.Enum, buffer glbase.Buffer) {
+ C.gl2_1_glBindBuffer(gl.funcs, C.GLenum(target), C.GLuint(buffer))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetQueryObjectuiv.xml
+func (gl *GL) GetQueryObjectuiv(id uint32, pname glbase.Enum, params []uint32) {
+ C.gl2_1_glGetQueryObjectuiv(gl.funcs, C.GLuint(id), C.GLenum(pname), (*C.GLuint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetQueryObjectiv.xml
+func (gl *GL) GetQueryObjectiv(id uint32, pname glbase.Enum, params []int32) {
+ C.gl2_1_glGetQueryObjectiv(gl.funcs, C.GLuint(id), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetQueryiv.xml
+func (gl *GL) GetQueryiv(target, pname glbase.Enum, params []int32) {
+ C.gl2_1_glGetQueryiv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEndQuery.xml
+func (gl *GL) EndQuery(target glbase.Enum) {
+ C.gl2_1_glEndQuery(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBeginQuery.xml
+func (gl *GL) BeginQuery(target glbase.Enum, id uint32) {
+ C.gl2_1_glBeginQuery(gl.funcs, C.GLenum(target), C.GLuint(id))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsQuery.xml
+func (gl *GL) IsQuery(id uint32) bool {
+ glresult := C.gl2_1_glIsQuery(gl.funcs, C.GLuint(id))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDeleteQueries.xml
+func (gl *GL) DeleteQueries(n int, ids []uint32) {
+ C.gl2_1_glDeleteQueries(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&ids[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGenQueries.xml
+func (gl *GL) GenQueries(n int, ids []uint32) {
+ C.gl2_1_glGenQueries(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&ids[0])))
+}
+
+// VertexAttribPointer specifies the location and data format of the array
+// of generic vertex attributes at index to use when rendering. size
+// specifies the number of components per attribute and must be 1, 2, 3, or
+// 4. type specifies the data type of each component, and stride specifies
+// the byte stride from one attribute to the next, allowing vertices and
+// attributes to be packed into a single array or stored in separate arrays.
+// normalized indicates whether the values stored in an integer format are
+// to be mapped to the range [-1,1] (for signed values) or [0,1]
+// (for unsigned values) when they are accessed and converted to floating
+// point; otherwise, values will be converted to floats directly without
+// normalization. offset is a byte offset into the buffer object's data
+// store, which must be bound to the GL.ARRAY_BUFFER target with BindBuffer.
+//
+// The buffer object binding (GL.ARRAY_BUFFER_BINDING) is saved as
+// generic vertex attribute array client-side state
+// (GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING) for the provided index.
+//
+// To enable and disable a generic vertex attribute array, call
+// EnableVertexAttribArray and DisableVertexAttribArray with index. If
+// enabled, the generic vertex attribute array is used when DrawArrays or
+// DrawElements is called. Each generic vertex attribute array is initially
+// disabled.
+//
+// VertexAttribPointer is typically implemented on the client side.
+//
+// Error GL.INVALID_ENUM is generated if type is not an accepted value.
+// GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_VALUE is generated if size is not 1, 2,
+// 3, or 4. GL.INVALID_VALUE is generated if stride is negative.
+func (gl *GL) VertexAttribPointer(index glbase.Attrib, size int, gltype glbase.Enum, normalized bool, stride int, offset uintptr) {
+ offset_ptr := unsafe.Pointer(offset)
+ C.gl2_1_glVertexAttribPointer(gl.funcs, C.GLuint(index), C.GLint(size), C.GLenum(gltype), *(*C.GLboolean)(unsafe.Pointer(&normalized)), C.GLsizei(stride), offset_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glValidateProgram.xml
+func (gl *GL) ValidateProgram(program glbase.Program) {
+ C.gl2_1_glValidateProgram(gl.funcs, C.GLuint(program))
+}
+
+// UniformMatrix4fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix4fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix4fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(4*4) != 0 {
+ panic("invalid value length for UniformMatrix4fv")
+ }
+ count := len(value) / (4 * 4)
+ C.gl2_1_glUniformMatrix4fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix3fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix3fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix3fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(3*3) != 0 {
+ panic("invalid value length for UniformMatrix3fv")
+ }
+ count := len(value) / (3 * 3)
+ C.gl2_1_glUniformMatrix3fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix2fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix2fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix2fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(2*2) != 0 {
+ panic("invalid value length for UniformMatrix2fv")
+ }
+ count := len(value) / (2 * 2)
+ C.gl2_1_glUniformMatrix2fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform4iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform4iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%4 != 0 {
+ panic("invalid value length for Uniform4iv")
+ }
+ count := len(value) / 4
+ C.gl2_1_glUniform4iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform3iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform3iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%3 != 0 {
+ panic("invalid value length for Uniform3iv")
+ }
+ count := len(value) / 3
+ C.gl2_1_glUniform3iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform2iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform2iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%2 != 0 {
+ panic("invalid value length for Uniform2iv")
+ }
+ count := len(value) / 2
+ C.gl2_1_glUniform2iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform1iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform1iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ count := len(value)
+ C.gl2_1_glUniform1iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform4fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform4fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%4 != 0 {
+ panic("invalid value length for Uniform4fv")
+ }
+ count := len(value) / 4
+ C.gl2_1_glUniform4fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform3fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform3fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%3 != 0 {
+ panic("invalid value length for Uniform3fv")
+ }
+ count := len(value) / 3
+ C.gl2_1_glUniform3fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform2fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform2fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%2 != 0 {
+ panic("invalid value length for Uniform2fv")
+ }
+ count := len(value) / 2
+ C.gl2_1_glUniform2fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform1fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform1fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ count := len(value)
+ C.gl2_1_glUniform1fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform4i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform4i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4i(location glbase.Uniform, v0, v1, v2, v3 int32) {
+ C.gl2_1_glUniform4i(gl.funcs, C.GLint(location), C.GLint(v0), C.GLint(v1), C.GLint(v2), C.GLint(v3))
+}
+
+// Uniform3i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform3i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3i(location glbase.Uniform, v0, v1, v2 int32) {
+ C.gl2_1_glUniform3i(gl.funcs, C.GLint(location), C.GLint(v0), C.GLint(v1), C.GLint(v2))
+}
+
+// Uniform2i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform2i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2i(location glbase.Uniform, v0, v1 int32) {
+ C.gl2_1_glUniform2i(gl.funcs, C.GLint(location), C.GLint(v0), C.GLint(v1))
+}
+
+// Uniform1i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform1i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1i(location glbase.Uniform, v0 int32) {
+ C.gl2_1_glUniform1i(gl.funcs, C.GLint(location), C.GLint(v0))
+}
+
+// Uniform4f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform4f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4f(location glbase.Uniform, v0, v1, v2, v3 float32) {
+ C.gl2_1_glUniform4f(gl.funcs, C.GLint(location), C.GLfloat(v0), C.GLfloat(v1), C.GLfloat(v2), C.GLfloat(v3))
+}
+
+// Uniform3f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform3f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3f(location glbase.Uniform, v0, v1, v2 float32) {
+ C.gl2_1_glUniform3f(gl.funcs, C.GLint(location), C.GLfloat(v0), C.GLfloat(v1), C.GLfloat(v2))
+}
+
+// Uniform2f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform2f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2f(location glbase.Uniform, v0, v1 float32) {
+ C.gl2_1_glUniform2f(gl.funcs, C.GLint(location), C.GLfloat(v0), C.GLfloat(v1))
+}
+
+// Uniform1f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform1f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1f(location glbase.Uniform, v0 float32) {
+ C.gl2_1_glUniform1f(gl.funcs, C.GLint(location), C.GLfloat(v0))
+}
+
+// UseProgram installs the program object specified by program as part of
+// current rendering state. One or more executables are created in a program
+// object by successfully attaching shader objects to it with AttachShader,
+// successfully compiling the shader objects with CompileShader, and
+// successfully linking the program object with LinkProgram.
+//
+// A program object will contain an executable that will run on the vertex
+// processor if it contains one or more shader objects of type
+// GL.VERTEX_SHADER that have been successfully compiled and linked.
+// Similarly, a program object will contain an executable that will run on
+// the fragment processor if it contains one or more shader objects of type
+// GL.FRAGMENT_SHADER that have been successfully compiled and linked.
+//
+// Successfully installing an executable on a programmable processor will
+// cause the corresponding fixed functionality of OpenGL to be disabled.
+// Specifically, if an executable is installed on the vertex processor, the
+// OpenGL fixed functionality will be disabled as follows.
+//
+// - The modelview matrix is not applied to vertex coordinates.
+//
+// - The projection matrix is not applied to vertex coordinates.
+//
+// - The texture matrices are not applied to texture coordinates.
+//
+// - Normals are not transformed to eye coordinates.
+//
+// - Normals are not rescaled or normalized.
+//
+// - Normalization of GL.AUTO_NORMAL evaluated normals is not performed.
+//
+// - Texture coordinates are not generated automatically.
+//
+// - Per-vertex lighting is not performed.
+//
+// - Color material computations are not performed.
+//
+// - Color index lighting is not performed.
+//
+// - This list also applies when setting the current raster position.
+//
+// The executable that is installed on the vertex processor is expected to
+// implement any or all of the desired functionality from the preceding list.
+// Similarly, if an executable is installed on the fragment processor, the
+// OpenGL fixed functionality will be disabled as follows.
+//
+// - Texture environment and texture functions are not applied.
+//
+// - Texture application is not applied.
+//
+// - Color sum is not applied.
+//
+// - Fog is not applied.
+//
+// Again, the fragment shader that is installed is expected to implement any
+// or all of the desired functionality from the preceding list.
+//
+// While a program object is in use, applications are free to modify attached
+// shader objects, compile attached shader objects, attach additional shader
+// objects, and detach or delete shader objects. None of these operations
+// will affect the executables that are part of the current state. However,
+// relinking the program object that is currently in use will install the
+// program object as part of the current rendering state if the link
+// operation was successful (see LinkProgram). If the program object
+// currently in use is relinked unsuccessfully, its link status will be set
+// to GL.FALSE, but the executables and associated state will remain part of
+// the current state until a subsequent call to UseProgram removes it from
+// use. After it is removed from use, it cannot be made part of current state
+// until it has been successfully relinked.
+//
+// If program contains shader objects of type GL.VERTEX_SHADER but it does
+// not contain shader objects of type GL.FRAGMENT_SHADER, an executable will
+// be installed on the vertex processor, but fixed functionality will be used
+// for fragment processing. Similarly, if program contains shader objects of
+// type GL.FRAGMENT_SHADER but it does not contain shader objects of type
+// GL.VERTEX_SHADER, an executable will be installed on the fragment
+// processor, but fixed functionality will be used for vertex processing. If
+// program is 0, the programmable processors will be disabled, and fixed
+// functionality will be used for both vertex and fragment processing.
+//
+// While a program object is in use, the state that controls the disabled
+// fixed functionality may also be updated using the normal OpenGL calls.
+//
+// Like display lists and texture objects, the name space for program objects
+// may be shared across a set of contexts, as long as the server sides of the
+// contexts share the same address space. If the name space is shared across
+// contexts, any attached objects and the data associated with those attached
+// objects are shared as well.
+//
+// Applications are responsible for providing the synchronization across API
+// calls when objects are accessed from different execution threads.
+//
+// Error GL.INVALID_VALUE is generated if program is neither 0 nor a value
+// generated by OpenGL. GL.INVALID_OPERATION is generated if program is not
+// a program object. GL.INVALID_OPERATION is generated if program could not
+// be made part of current state. GL.INVALID_OPERATION is generated if
+// UseProgram is executed between the execution of Begin and the
+// corresponding execution of End.
+//
+// UseProgram is available in GL version 2.0 or greater.
+func (gl *GL) UseProgram(program glbase.Program) {
+ C.gl2_1_glUseProgram(gl.funcs, C.GLuint(program))
+}
+
+// ShaderSource sets the source code in shader to the provided source code. Any source
+// code previously stored in the shader object is completely replaced.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader
+// object. GL.INVALID_VALUE is generated if count is less than 0.
+// GL.INVALID_OPERATION is generated if ShaderSource is executed between the
+// execution of Begin and the corresponding execution of End.
+//
+// ShaderSource is available in GL version 2.0 or greater.
+func (gl *GL) ShaderSource(shader glbase.Shader, source ...string) {
+ count := len(source)
+ length := make([]int32, count)
+ source_c := make([]unsafe.Pointer, count)
+ for i, src := range source {
+ length[i] = int32(len(src))
+ if len(src) > 0 {
+ source_c[i] = *(*unsafe.Pointer)(unsafe.Pointer(&src))
+ } else {
+ source_c[i] = unsafe.Pointer(uintptr(0))
+ }
+ }
+ C.gl2_1_glShaderSource(gl.funcs, C.GLuint(shader), C.GLsizei(count), (**C.GLchar)(unsafe.Pointer(&source_c[0])), (*C.GLint)(unsafe.Pointer(&length[0])))
+}
+
+// LinkProgram links the program object specified by program. If any shader
+// objects of type GL.VERTEX_SHADER are attached to program, they will be
+// used to create an executable that will run on the programmable vertex
+// processor. If any shader objects of type GL.FRAGMENT_SHADER are attached
+// to program, they will be used to create an executable that will run on the
+// programmable fragment processor.
+//
+// The status of the link operation will be stored as part of the program
+// object's state. This value will be set to GL.TRUE if the program object
+// was linked without errors and is ready for use, and GL.FALSE otherwise. It
+// can be queried by calling GetProgramiv with arguments program and
+// GL.LINK_STATUS.
+//
+// As a result of a successful link operation, all active user-defined
+// uniform variables belonging to program will be initialized to 0, and each
+// of the program object's active uniform variables will be assigned a
+// location that can be queried by calling GetUniformLocation. Also, any
+// active user-defined attribute variables that have not been bound to a
+// generic vertex attribute index will be bound to one at this time.
+//
+// Linking of a program object can fail for a number of reasons as specified
+// in the OpenGL Shading Language Specification. The following lists some of
+// the conditions that will cause a link error.
+//
+// - The number of active attribute variables supported by the
+// implementation has been exceeded.
+//
+// - The storage limit for uniform variables has been exceeded.
+//
+// - The number of active uniform variables supported by the implementation
+// has been exceeded.
+//
+// - The main function is missing for the vertex shader or the fragment
+// shader.
+//
+// - A varying variable actually used in the fragment shader is not
+// declared in the same way (or is not declared at all) in the vertex
+// shader.
+//
+// - A reference to a function or variable name is unresolved.
+//
+// - A shared global is declared with two different types or two different
+// initial values.
+//
+// - One or more of the attached shader objects has not been successfully
+// compiled.
+//
+// - Binding a generic attribute matrix caused some rows of the matrix to
+// fall outside the allowed maximum of GL.MAX_VERTEX_ATTRIBS.
+//
+// - Not enough contiguous vertex attribute slots could be found to bind
+// attribute matrices.
+//
+// When a program object has been successfully linked, the program object can
+// be made part of current state by calling UseProgram. Whether or not the
+// link operation was successful, the program object's information log will
+// be overwritten. The information log can be retrieved by calling
+// GetProgramInfoLog.
+//
+// LinkProgram will also install the generated executables as part of the
+// current rendering state if the link operation was successful and the
+// specified program object is already currently in use as a result of a
+// previous call to UseProgram. If the program object currently in use is
+// relinked unsuccessfully, its link status will be set to GL.FALSE , but the
+// executables and associated state will remain part of the current state
+// until a subsequent call to UseProgram removes it from use. After it is
+// removed from use, it cannot be made part of current state until it has
+// been successfully relinked.
+//
+// If program contains shader objects of type GL.VERTEX_SHADER but does not
+// contain shader objects of type GL.FRAGMENT_SHADER, the vertex shader will
+// be linked against the implicit interface for fixed functionality fragment
+// processing. Similarly, if program contains shader objects of type
+// GL.FRAGMENT_SHADER but it does not contain shader objects of type
+// GL.VERTEX_SHADER, the fragment shader will be linked against the implicit
+// interface for fixed functionality vertex processing.
+//
+// The program object's information log is updated and the program is
+// generated at the time of the link operation. After the link operation,
+// applications are free to modify attached shader objects, compile attached
+// shader objects, detach shader objects, delete shader objects, and attach
+// additional shader objects. None of these operations affects the
+// information log or the program that is part of the program object.
+//
+// If the link operation is unsuccessful, any information about a previous
+// link operation on program is lost (a failed link does not restore the
+// old state of program). Certain information can still be retrieved
+// from program even after an unsuccessful link operation. See for instance
+// GetActiveAttrib and GetActiveUniform.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program
+// object. GL.INVALID_OPERATION is generated if LinkProgram is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// LinkProgram is available in GL version 2.0 or greater.
+func (gl *GL) LinkProgram(program glbase.Program) {
+ C.gl2_1_glLinkProgram(gl.funcs, C.GLuint(program))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsShader.xml
+func (gl *GL) IsShader(shader glbase.Shader) bool {
+ glresult := C.gl2_1_glIsShader(gl.funcs, C.GLuint(shader))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsProgram.xml
+func (gl *GL) IsProgram(program glbase.Program) bool {
+ glresult := C.gl2_1_glIsProgram(gl.funcs, C.GLuint(program))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GetVertexAttribiv returns in params the value of a generic vertex attribute
+// parameter. The generic vertex attribute to be queried is specified by
+// index, and the parameter to be queried is specified by pname.
+//
+// The accepted parameter names are as follows:
+//
+// GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
+// params returns a single value, the name of the buffer object
+// currently bound to the binding point corresponding to generic vertex
+// attribute array index. If no buffer object is bound, 0 is returned.
+// The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_ENABLED
+// params returns a single value that is non-zero (true) if the vertex
+// attribute array for index is enabled and 0 (false) if it is
+// disabled. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_SIZE
+// params returns a single value, the size of the vertex attribute
+// array for index. The size is the number of values for each element
+// of the vertex attribute array, and it will be 1, 2, 3, or 4. The
+// initial value is 4.
+//
+// GL.VERTEX_ATTRIB_ARRAY_STRIDE
+// params returns a single value, the array stride for (number of bytes
+// between successive elements in) the vertex attribute array for
+// index. A value of 0 indicates that the array elements are stored
+// sequentially in memory. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_TYPE
+// params returns a single value, a symbolic constant indicating the
+// array type for the vertex attribute array for index. Possible values
+// are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
+// GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
+// GL.FLOAT.
+//
+// GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
+// params returns a single value that is non-zero (true) if fixed-point
+// data types for the vertex attribute array indicated by index are
+// normalized when they are converted to floating point, and 0 (false)
+// otherwise. The initial value is 0.
+//
+// GL.CURRENT_VERTEX_ATTRIB
+// params returns four values that represent the current value for the
+// generic vertex attribute specified by index. Generic vertex
+// attribute 0 is unique in that it has no current state, so an error
+// will be generated if index is 0. The initial value for all other
+// generic vertex attributes is (0,0,0,1).
+//
+// All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent
+// client-side state.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an
+// accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname
+// is GL.CURRENT_VERTEX_ATTRIB.
+//
+// GetVertexAttribiv is available in GL version 2.0 or greater.
+func (gl *GL) GetVertexAttribiv(index glbase.Attrib, pname glbase.Enum, params []int32) {
+ var params_c [4]int32
+ C.gl2_1_glGetVertexAttribiv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetVertexAttribfv returns in params the value of a generic vertex attribute
+// parameter. The generic vertex attribute to be queried is specified by
+// index, and the parameter to be queried is specified by pname.
+//
+// The accepted parameter names are as follows:
+//
+// GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
+// params returns a single value, the name of the buffer object
+// currently bound to the binding point corresponding to generic vertex
+// attribute array index. If no buffer object is bound, 0 is returned.
+// The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_ENABLED
+// params returns a single value that is non-zero (true) if the vertex
+// attribute array for index is enabled and 0 (false) if it is
+// disabled. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_SIZE
+// params returns a single value, the size of the vertex attribute
+// array for index. The size is the number of values for each element
+// of the vertex attribute array, and it will be 1, 2, 3, or 4. The
+// initial value is 4.
+//
+// GL.VERTEX_ATTRIB_ARRAY_STRIDE
+// params returns a single value, the array stride for (number of bytes
+// between successive elements in) the vertex attribute array for
+// index. A value of 0 indicates that the array elements are stored
+// sequentially in memory. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_TYPE
+// params returns a single value, a symbolic constant indicating the
+// array type for the vertex attribute array for index. Possible values
+// are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
+// GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
+// GL.FLOAT.
+//
+// GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
+// params returns a single value that is non-zero (true) if fixed-point
+// data types for the vertex attribute array indicated by index are
+// normalized when they are converted to floating point, and 0 (false)
+// otherwise. The initial value is 0.
+//
+// GL.CURRENT_VERTEX_ATTRIB
+// params returns four values that represent the current value for the
+// generic vertex attribute specified by index. Generic vertex
+// attribute 0 is unique in that it has no current state, so an error
+// will be generated if index is 0. The initial value for all other
+// generic vertex attributes is (0,0,0,1).
+//
+// All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent
+// client-side state.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an
+// accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname
+// is GL.CURRENT_VERTEX_ATTRIB.
+//
+// GetVertexAttribfv is available in GL version 2.0 or greater.
+func (gl *GL) GetVertexAttribfv(index glbase.Attrib, pname glbase.Enum, params []float32) {
+ var params_c [4]float32
+ C.gl2_1_glGetVertexAttribfv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetVertexAttribdv returns in params the value of a generic vertex attribute
+// parameter. The generic vertex attribute to be queried is specified by
+// index, and the parameter to be queried is specified by pname.
+//
+// The accepted parameter names are as follows:
+//
+// GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
+// params returns a single value, the name of the buffer object
+// currently bound to the binding point corresponding to generic vertex
+// attribute array index. If no buffer object is bound, 0 is returned.
+// The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_ENABLED
+// params returns a single value that is non-zero (true) if the vertex
+// attribute array for index is enabled and 0 (false) if it is
+// disabled. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_SIZE
+// params returns a single value, the size of the vertex attribute
+// array for index. The size is the number of values for each element
+// of the vertex attribute array, and it will be 1, 2, 3, or 4. The
+// initial value is 4.
+//
+// GL.VERTEX_ATTRIB_ARRAY_STRIDE
+// params returns a single value, the array stride for (number of bytes
+// between successive elements in) the vertex attribute array for
+// index. A value of 0 indicates that the array elements are stored
+// sequentially in memory. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_TYPE
+// params returns a single value, a symbolic constant indicating the
+// array type for the vertex attribute array for index. Possible values
+// are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
+// GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
+// GL.FLOAT.
+//
+// GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
+// params returns a single value that is non-zero (true) if fixed-point
+// data types for the vertex attribute array indicated by index are
+// normalized when they are converted to floating point, and 0 (false)
+// otherwise. The initial value is 0.
+//
+// GL.CURRENT_VERTEX_ATTRIB
+// params returns four values that represent the current value for the
+// generic vertex attribute specified by index. Generic vertex
+// attribute 0 is unique in that it has no current state, so an error
+// will be generated if index is 0. The initial value for all other
+// generic vertex attributes is (0,0,0,1).
+//
+// All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent
+// client-side state.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an
+// accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname
+// is GL.CURRENT_VERTEX_ATTRIB.
+//
+// GetVertexAttribdv is available in GL version 2.0 or greater.
+func (gl *GL) GetVertexAttribdv(index glbase.Attrib, pname glbase.Enum, params []float64) {
+ var params_c [4]float64
+ C.gl2_1_glGetVertexAttribdv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetUniformiv returns in params the value of the specified uniform
+// variable. The type of the uniform variable specified by location
+// determines the number of values returned. If the uniform variable is
+// defined in the shader as a boolean, int, or float, a single value will be
+// returned. If it is defined as a vec2, ivec2, or bvec2, two values will be
+// returned. If it is defined as a vec3, ivec3, or bvec3, three values will
+// be returned, and so on. To query values stored in uniform variables
+// declared as arrays, call GetUniformiv for each element of the array. To
+// query values stored in uniform variables declared as structures, call
+// GetUniformiv for each field in the structure. The values for uniform
+// variables declared as a matrix will be returned in column major order.
+//
+// The locations assigned to uniform variables are not known until the
+// program object is linked. After linking has occurred, the command
+// GetUniformLocation can be used to obtain the location of a uniform
+// variable. This location value can then be passed to GetUniformiv in order
+// to query the current value of the uniform variable. After a program object
+// has been linked successfully, the index values for uniform variables
+// remain fixed until the next link command occurs. The uniform variable
+// values can only be queried after a link if the link was successful.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program
+// object. GL.INVALID_OPERATION is generated if program has not been
+// successfully linked. GL.INVALID_OPERATION is generated if location does
+// not correspond to a valid uniform variable location for the specified
+// program object. GL.INVALID_OPERATION is generated if GetUniformiv is
+// executed between the execution of Begin and the corresponding execution of
+// End.
+//
+// GetUniformiv is available in GL version 2.0 or greater.
+func (gl *GL) GetUniformiv(program glbase.Program, location glbase.Uniform, params []int32) {
+ var params_c [4]int32
+ C.gl2_1_glGetUniformiv(gl.funcs, C.GLuint(program), C.GLint(location), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetUniformfv returns in params the value of the specified uniform
+// variable. The type of the uniform variable specified by location
+// determines the number of values returned. If the uniform variable is
+// defined in the shader as a boolean, int, or float, a single value will be
+// returned. If it is defined as a vec2, ivec2, or bvec2, two values will be
+// returned. If it is defined as a vec3, ivec3, or bvec3, three values will
+// be returned, and so on. To query values stored in uniform variables
+// declared as arrays, call GetUniformfv for each element of the array. To
+// query values stored in uniform variables declared as structures, call
+// GetUniformfv for each field in the structure. The values for uniform
+// variables declared as a matrix will be returned in column major order.
+//
+// The locations assigned to uniform variables are not known until the
+// program object is linked. After linking has occurred, the command
+// GetUniformLocation can be used to obtain the location of a uniform
+// variable. This location value can then be passed to GetUniformfv in order
+// to query the current value of the uniform variable. After a program object
+// has been linked successfully, the index values for uniform variables
+// remain fixed until the next link command occurs. The uniform variable
+// values can only be queried after a link if the link was successful.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program
+// object. GL.INVALID_OPERATION is generated if program has not been
+// successfully linked. GL.INVALID_OPERATION is generated if location does
+// not correspond to a valid uniform variable location for the specified
+// program object. GL.INVALID_OPERATION is generated if GetUniformfv is
+// executed between the execution of Begin and the corresponding execution of
+// End.
+//
+// GetUniformfv is available in GL version 2.0 or greater.
+func (gl *GL) GetUniformfv(program glbase.Program, location glbase.Uniform, params []float32) {
+ var params_c [4]float32
+ C.gl2_1_glGetUniformfv(gl.funcs, C.GLuint(program), C.GLint(location), (*C.GLfloat)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetUniformLocation returns an integer that represents the location of a
+// specific uniform variable within a program object. name must be an active
+// uniform variable name in program that is not a structure, an array of
+// structures, or a subcomponent of a vector or a matrix. This function
+// returns -1 if name does not correspond to an active uniform variable in
+// program or if name starts with the reserved prefix "gl_".
+//
+// Uniform variables that are structures or arrays of structures may be
+// queried by calling GetUniformLocation for each field within the
+// structure. The array element operator "[]" and the structure field
+// operator "." may be used in name in order to select elements within an
+// array or fields within a structure. The result of using these operators is
+// not allowed to be another structure, an array of structures, or a
+// subcomponent of a vector or a matrix. Except if the last part of name
+// indicates a uniform variable array, the location of the first element of
+// an array can be retrieved by using the name of the array, or by using the
+// name appended by "[0]".
+//
+// The actual locations assigned to uniform variables are not known until the
+// program object is linked successfully. After linking has occurred, the
+// command GetUniformLocation can be used to obtain the location of a
+// uniform variable. This location value can then be passed to Uniform to
+// set the value of the uniform variable or to GetUniform in order to query
+// the current value of the uniform variable. After a program object has been
+// linked successfully, the index values for uniform variables remain fixed
+// until the next link command occurs. Uniform variable locations and values
+// can only be queried after a link if the link was successful.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program object.
+// GL.INVALID_OPERATION is generated if program has not been successfully
+// linked. GL.INVALID_OPERATION is generated if GetUniformLocation is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// GetUniformLocation is available in GL version 2.0 or greater.
+func (gl *GL) GetUniformLocation(program glbase.Program, name string) glbase.Uniform {
+ name_cstr := C.CString(name)
+ glresult := C.gl2_1_glGetUniformLocation(gl.funcs, C.GLuint(program), (*C.GLchar)(name_cstr))
+ C.free(unsafe.Pointer(name_cstr))
+ return glbase.Uniform(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetShaderSource.xml
+func (gl *GL) GetShaderSource(shader glbase.Shader, bufSize int32, length []int32, source []byte) {
+ C.gl2_1_glGetShaderSource(gl.funcs, C.GLuint(shader), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLchar)(unsafe.Pointer(&source[0])))
+}
+
+// GetShaderInfoLog returns the information log for the specified shader
+// object. The information log for a shader object is modified when the
+// shader is compiled.
+//
+// The information log for a shader object is a string that may contain
+// diagnostic messages, warning messages, and other information about the
+// last compile operation. When a shader object is created, its information
+// log will be a string of length 0, and the size of the current log can be
+// obtained by calling GetShaderiv with the value GL.INFO_LOG_LENGTH.
+//
+// The information log for a shader object is the OpenGL implementer's
+// primary mechanism for conveying information about the compilation process.
+// Therefore, the information log can be helpful to application developers
+// during the development process, even when compilation is successful.
+// Application developers should not expect different OpenGL implementations
+// to produce identical information logs.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader
+// object. GL.INVALID_VALUE is generated if maxLength is less than 0.
+// GL.INVALID_OPERATION is generated if GetShaderInfoLog is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// GetShaderInfoLog is available in GL version 2.0 or greater.
+func (gl *GL) GetShaderInfoLog(shader glbase.Shader) []byte {
+ var params [1]int32
+ var length int32
+ gl.GetShaderiv(shader, INFO_LOG_LENGTH, params[:])
+ bufSize := params[0]
+ infoLog := make([]byte, int(bufSize))
+ C.gl2_1_glGetShaderInfoLog(gl.funcs, C.GLuint(shader), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length)), (*C.GLchar)(unsafe.Pointer(&infoLog[0])))
+ return infoLog
+}
+
+// GetShaderiv GetShader returns in params the value of a parameter for a specific
+// shader object. The following parameters are defined:
+//
+// GL.SHADER_TYPE
+// params returns GL.VERTEX_SHADER if shader is a vertex shader object,
+// and GL.FRAGMENT_SHADER if shader is a fragment shader object.
+//
+// GL.DELETE_STATUS
+// params returns GL.TRUE if shader is currently flagged for deletion,
+// and GL.FALSE otherwise.
+//
+// GL.COMPILE_STATUS
+// params returns GL.TRUE if the last compile operation on shader was
+// successful, and GL.FALSE otherwise.
+//
+// GL.INFO_LOG_LENGTH
+// params returns the number of characters in the information log for
+// shader including the null termination character (the size of the
+// character buffer required to store the information log). If shader has
+// no information log, a value of 0 is returned.
+//
+// GL.SHADER_SOURCE_LENGTH
+// params returns the length of the concatenation of the source strings
+// that make up the shader source for the shader, including the null
+// termination character. (the size of the character buffer
+// required to store the shader source). If no source code exists, 0 is
+// returned.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader does not refer to a
+// shader object. GL.INVALID_ENUM is generated if pname is not an accepted
+// value. GL.INVALID_OPERATION is generated if GetShader is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// GetShaderiv is available in GL version 2.0 or greater.
+func (gl *GL) GetShaderiv(shader glbase.Shader, pname glbase.Enum, params []int32) {
+ var params_c [4]int32
+ C.gl2_1_glGetShaderiv(gl.funcs, C.GLuint(shader), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetProgramInfoLog returns the information log for the specified program
+// object. The information log for a program object is modified when the
+// program object is linked or validated.
+//
+// The information log for a program object is either an empty string, or a
+// string containing information about the last link operation, or a string
+// containing information about the last validation operation. It may contain
+// diagnostic messages, warning messages, and other information. When a
+// program object is created, its information log will be a string of length
+// 0, and the size of the current log can be obtained by calling GetProgramiv
+// with the value GL.INFO_LOG_LENGTH.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated
+// by OpenGL. GL.INVALID_OPERATION is generated if program is not a
+// program object.
+func (gl *GL) GetProgramInfoLog(program glbase.Program) []byte {
+ var params [1]int32
+ var length int32
+ gl.GetProgramiv(program, INFO_LOG_LENGTH, params[:])
+ bufSize := params[0]
+ infoLog := make([]byte, int(bufSize))
+ C.gl2_1_glGetProgramInfoLog(gl.funcs, C.GLuint(program), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length)), (*C.GLchar)(unsafe.Pointer(&infoLog[0])))
+ return infoLog
+}
+
+// GetProgramiv returns in params the value of a parameter for a specific
+// program object. The following parameters are defined:
+//
+// GL.DELETE_STATUS
+// params returns GL.TRUE if program is currently flagged for deletion,
+// and GL.FALSE otherwise.
+//
+// GL.LINK_STATUS
+// params returns GL.TRUE if the last link operation on program was
+// successful, and GL.FALSE otherwise.
+//
+// GL.VALIDATE_STATUS
+// params returns GL.TRUE or if the last validation operation on
+// program was successful, and GL.FALSE otherwise.
+//
+// GL.INFO_LOG_LENGTH
+// params returns the number of characters in the information log for
+// program including the null termination character (the size of
+// the character buffer required to store the information log). If
+// program has no information log, a value of 0 is returned.
+//
+// GL.ATTACHED_SHADERS
+// params returns the number of shader objects attached to program.
+//
+// GL.ACTIVE_ATTRIBUTES
+// params returns the number of active attribute variables for program.
+//
+// GL.ACTIVE_ATTRIBUTE_MAX_LENGTH
+// params returns the length of the longest active attribute name for
+// program, including the null termination character (the size of
+// the character buffer required to store the longest attribute name).
+// If no active attributes exist, 0 is returned.
+//
+// GL.ACTIVE_UNIFORMS
+// params returns the number of active uniform variables for program.
+//
+// GL.ACTIVE_UNIFORM_MAX_LENGTH
+// params returns the length of the longest active uniform variable
+// name for program, including the null termination character (i.e.,
+// the size of the character buffer required to store the longest
+// uniform variable name). If no active uniform variables exist, 0 is
+// returned.
+//
+// GL.TRANSFORM_FEEDBACK_BUFFER_MODE
+// params returns a symbolic constant indicating the buffer mode used
+// when transform feedback is active. This may be GL.SEPARATE_ATTRIBS
+// or GL.INTERLEAVED_ATTRIBS.
+//
+// GL.TRANSFORM_FEEDBACK_VARYINGS
+// params returns the number of varying variables to capture in transform
+// feedback mode for the program.
+//
+// GL.TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH
+// params returns the length of the longest variable name to be used for
+// transform feedback, including the null-terminator.
+//
+// GL.GEOMETRY_VERTICES_OUT
+// params returns the maximum number of vertices that the geometry shader in
+// program will output.
+//
+// GL.GEOMETRY_INPUT_TYPE
+// params returns a symbolic constant indicating the primitive type accepted
+// as input to the geometry shader contained in program.
+//
+// GL.GEOMETRY_OUTPUT_TYPE
+// params returns a symbolic constant indicating the primitive type that will
+// be output by the geometry shader contained in program.
+//
+// GL.ACTIVE_UNIFORM_BLOCKS and GL.ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH are
+// available only if the GL version 3.1 or greater.
+//
+// GL.GEOMETRY_VERTICES_OUT, GL.GEOMETRY_INPUT_TYPE and
+// GL.GEOMETRY_OUTPUT_TYPE are accepted only if the GL version is 3.2 or
+// greater.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program does not refer to a
+// program object. GL.INVALID_OPERATION is generated if pname is
+// GL.GEOMETRY_VERTICES_OUT, GL.GEOMETRY_INPUT_TYPE, or
+// GL.GEOMETRY_OUTPUT_TYPE, and program does not contain a geometry shader.
+// GL.INVALID_ENUM is generated if pname is not an accepted value.
+func (gl *GL) GetProgramiv(program glbase.Program, pname glbase.Enum, params []int32) {
+ var params_c [4]int32
+ C.gl2_1_glGetProgramiv(gl.funcs, C.GLuint(program), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetAttribLocation queries the previously linked program object specified
+// by program for the attribute variable specified by name and returns the
+// index of the generic vertex attribute that is bound to that attribute
+// variable. If name is a matrix attribute variable, the index of the first
+// column of the matrix is returned. If the named attribute variable is not
+// an active attribute in the specified program object or if name starts with
+// the reserved prefix "gl_", a value of -1 is returned.
+//
+// The association between an attribute variable name and a generic attribute
+// index can be specified at any time by calling BindAttribLocation.
+// Attribute bindings do not go into effect until LinkProgram is called.
+// After a program object has been linked successfully, the index values for
+// attribute variables remain fixed until the next link command occurs. The
+// attribute values can only be queried after a link if the link was
+// successful. GetAttribLocation returns the binding that actually went
+// into effect the last time LinkProgram was called for the specified
+// program object. Attribute bindings that have been specified since the last
+// link operation are not returned by GetAttribLocation.
+//
+// Error GL_INVALID_OPERATION is generated if program is not a value
+// generated by OpenGL. GL_INVALID_OPERATION is generated if program is not
+// a program object. GL_INVALID_OPERATION is generated if program has not
+// been successfully linked. GL_INVALID_OPERATION is generated if
+// GetAttribLocation is executed between the execution of Begin and the
+// corresponding execution of End.
+//
+// GetAttribLocation is available in GL version 2.0 or greater.
+func (gl *GL) GetAttribLocation(program glbase.Program, name string) glbase.Attrib {
+ name_cstr := C.CString(name)
+ glresult := C.gl2_1_glGetAttribLocation(gl.funcs, C.GLuint(program), (*C.GLchar)(name_cstr))
+ C.free(unsafe.Pointer(name_cstr))
+ return glbase.Attrib(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetAttachedShaders.xml
+func (gl *GL) GetAttachedShaders(program glbase.Program, maxCount int32, count []int, obj []uint32) {
+ C.gl2_1_glGetAttachedShaders(gl.funcs, C.GLuint(program), C.GLsizei(maxCount), (*C.GLsizei)(unsafe.Pointer(&count[0])), (*C.GLuint)(unsafe.Pointer(&obj[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetActiveUniform.xml
+func (gl *GL) GetActiveUniform(program glbase.Program, index uint32, bufSize int32, length []int32, size []int, gltype []glbase.Enum, name []byte) {
+ C.gl2_1_glGetActiveUniform(gl.funcs, C.GLuint(program), C.GLuint(index), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLint)(unsafe.Pointer(&size[0])), (*C.GLenum)(unsafe.Pointer(&gltype[0])), (*C.GLchar)(unsafe.Pointer(&name[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetActiveAttrib.xml
+func (gl *GL) GetActiveAttrib(program glbase.Program, index glbase.Attrib, bufSize int32, length []int32, size []int, gltype []glbase.Enum, name []byte) {
+ C.gl2_1_glGetActiveAttrib(gl.funcs, C.GLuint(program), C.GLuint(index), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLint)(unsafe.Pointer(&size[0])), (*C.GLenum)(unsafe.Pointer(&gltype[0])), (*C.GLchar)(unsafe.Pointer(&name[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnableVertexAttribArray.xml
+func (gl *GL) EnableVertexAttribArray(index glbase.Attrib) {
+ C.gl2_1_glEnableVertexAttribArray(gl.funcs, C.GLuint(index))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisableVertexAttribArray.xml
+func (gl *GL) DisableVertexAttribArray(index glbase.Attrib) {
+ C.gl2_1_glDisableVertexAttribArray(gl.funcs, C.GLuint(index))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDetachShader.xml
+func (gl *GL) DetachShader(program glbase.Program, shader glbase.Shader) {
+ C.gl2_1_glDetachShader(gl.funcs, C.GLuint(program), C.GLuint(shader))
+}
+
+// DeleteShader frees the memory and invalidates the name associated with
+// the shader object specified by shader. This command effectively undoes the
+// effects of a call to CreateShader.
+//
+// If a shader object to be deleted is attached to a program object, it will
+// be flagged for deletion, but it will not be deleted until it is no longer
+// attached to any program object, for any rendering context (it must
+// be detached from wherever it was attached before it will be deleted). A
+// value of 0 for shader will be silently ignored.
+//
+// To determine whether an object has been flagged for deletion, call
+// GetShader with arguments shader and GL.DELETE_STATUS.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL.
+//
+// DeleteShader is available in GL version 2.0 or greater.
+func (gl *GL) DeleteShader(shader glbase.Shader) {
+ C.gl2_1_glDeleteShader(gl.funcs, C.GLuint(shader))
+}
+
+// DeleteProgram frees the memory and invalidates the name associated with
+// the program object specified by program. This command effectively undoes
+// the effects of a call to CreateProgram.
+//
+// If a program object is in use as part of current rendering state, it will
+// be flagged for deletion, but it will not be deleted until it is no longer
+// part of current state for any rendering context. If a program object to be
+// deleted has shader objects attached to it, those shader objects will be
+// automatically detached but not deleted unless they have already been
+// flagged for deletion by a previous call to DeleteShader. A value of 0
+// for program will be silently ignored.
+//
+// To determine whether a program object has been flagged for deletion, call
+// GetProgram with arguments program and GL.DELETE_STATUS.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL.
+//
+// DeleteProgram is available in GL version 2.0 or greater.
+func (gl *GL) DeleteProgram(program glbase.Program) {
+ C.gl2_1_glDeleteProgram(gl.funcs, C.GLuint(program))
+}
+
+// CreateShader creates an empty shader object and returns a non-zero value
+// by which it can be referenced. A shader object is used to maintain the
+// source code strings that define a shader. shaderType indicates the type of
+// shader to be created.
+//
+// Two types of shaders are supported. A shader of type GL.VERTEX_SHADER is a
+// shader that is intended to run on the programmable vertex processor and
+// replace the fixed functionality vertex processing in OpenGL. A shader of
+// type GL.FRAGMENT_SHADER is a shader that is intended to run on the
+// programmable fragment processor and replace the fixed functionality
+// fragment processing in OpenGL.
+//
+// When created, a shader object's GL.SHADER_TYPE parameter is set to either
+// GL.VERTEX_SHADER or GL.FRAGMENT_SHADER, depending on the value of
+// shaderType.
+//
+// Like display lists and texture objects, the name space for shader objects
+// may be shared across a set of contexts, as long as the server sides of the
+// contexts share the same address space. If the name space is shared across
+// contexts, any attached objects and the data associated with those attached
+// objects are shared as well.
+//
+// This function returns 0 if an error occurs creating the shader object.
+//
+// Error GL.INVALID_ENUM is generated if shaderType is not an accepted value.
+// GL.INVALID_OPERATION is generated if CreateShader is executed between the
+// execution of Begin and the corresponding execution of End.
+//
+// CreateShader is available in GL version 2.0 or greater.
+func (gl *GL) CreateShader(gltype glbase.Enum) glbase.Shader {
+ glresult := C.gl2_1_glCreateShader(gl.funcs, C.GLenum(gltype))
+ return glbase.Shader(glresult)
+}
+
+// CreateProgram creates an empty program object and returns a non-zero
+// value by which it can be referenced. A program object is an object to
+// which shader objects can be attached. This provides a mechanism to specify
+// the shader objects that will be linked to create a program. It also
+// provides a means for checking the compatibility of the shaders that will
+// be used to create a program (for instance, checking the compatibility
+// between a vertex shader and a fragment shader). When no longer needed as
+// part of a program object, shader objects can be detached.
+//
+// One or more executables are created in a program object by successfully
+// attaching shader objects to it with AttachShader, successfully compiling
+// the shader objects with CompileShader, and successfully linking the
+// program object with LinkProgram. These executables are made part of
+// current state when UseProgram is called. Program objects can be deleted
+// by calling DeleteProgram. The memory associated with the program object
+// will be deleted when it is no longer part of current rendering state for
+// any context.
+//
+// Like display lists and texture objects, the name space for program objects
+// may be shared across a set of contexts, as long as the server sides of the
+// contexts share the same address space. If the name space is shared across
+// contexts, any attached objects and the data associated with those attached
+// objects are shared as well.
+//
+// Applications are responsible for providing the synchronization across API
+// calls when objects are accessed from different execution threads.
+//
+// This function returns 0 if an error occurs creating the program object.
+//
+// Error GL.INVALID_OPERATION is generated if CreateProgram is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// CreateProgram is available in GL version 2.0 or greater.
+func (gl *GL) CreateProgram() glbase.Program {
+ glresult := C.gl2_1_glCreateProgram(gl.funcs)
+ return glbase.Program(glresult)
+}
+
+// CompileShader compiles the source code strings that have been stored in
+// the shader object specified by shader.
+//
+// The compilation status will be stored as part of the shader object's
+// state. This value will be set to GL.TRUE if the shader was compiled without
+// errors and is ready for use, and GL.FALSE otherwise. It can be queried by
+// calling GetShaderiv with arguments shader and GL.COMPILE_STATUS.
+//
+// Compilation of a shader can fail for a number of reasons as specified by
+// the OpenGL Shading Language Specification. Whether or not the compilation
+// was successful, information about the compilation can be obtained from the
+// shader object's information log by calling GetShaderInfoLog.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader
+// object. GL.INVALID_OPERATION is generated if CompileShader is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// CompileShader is available in GL version 2.0 or greater.
+func (gl *GL) CompileShader(shader glbase.Shader) {
+ C.gl2_1_glCompileShader(gl.funcs, C.GLuint(shader))
+}
+
+// BindAttribLocation associates a user-defined attribute variable in the program
+// object specified by program with a generic vertex attribute index. The name
+// parameter specifies the name of the vertex shader attribute variable to
+// which index is to be bound. When program is made part of the current state,
+// values provided via the generic vertex attribute index will modify the
+// value of the user-defined attribute variable specified by name.
+//
+// If name refers to a matrix attribute variable, index refers to the first
+// column of the matrix. Other matrix columns are then automatically bound to
+// locations index+1 for a matrix of type mat2; index+1 and index+2 for a
+// matrix of type mat3; and index+1, index+2, and index+3 for a matrix of
+// type mat4.
+//
+// This command makes it possible for vertex shaders to use descriptive names
+// for attribute variables rather than generic variables that are numbered
+// from 0 to GL.MAX_VERTEX_ATTRIBS-1. The values sent to each generic
+// attribute index are part of current state, just like standard vertex
+// attributes such as color, normal, and vertex position. If a different
+// program object is made current by calling UseProgram, the generic vertex
+// attributes are tracked in such a way that the same values will be observed
+// by attributes in the new program object that are also bound to index.
+//
+// Attribute variable name-to-generic attribute index bindings for a program
+// object can be explicitly assigned at any time by calling
+// BindAttribLocation. Attribute bindings do not go into effect until
+// LinkProgram is called. After a program object has been linked
+// successfully, the index values for generic attributes remain fixed (and
+// their values can be queried) until the next link command occurs.
+//
+// Applications are not allowed to bind any of the standard OpenGL vertex
+// attributes using this command, as they are bound automatically when
+// needed. Any attribute binding that occurs after the program object has
+// been linked will not take effect until the next time the program object is
+// linked.
+//
+// If name was bound previously, that information is lost. Thus you cannot
+// bind one user-defined attribute variable to multiple indices, but you can
+// bind multiple user-defined attribute variables to the same index.
+//
+// Applications are allowed to bind more than one user-defined attribute
+// variable to the same generic vertex attribute index. This is called
+// aliasing, and it is allowed only if just one of the aliased attributes is
+// active in the executable program, or if no path through the shader
+// consumes more than one attribute of a set of attributes aliased to the
+// same location. The compiler and linker are allowed to assume that no
+// aliasing is done and are free to employ optimizations that work only in
+// the absence of aliasing. OpenGL implementations are not required to do
+// error checking to detect aliasing. Because there is no way to bind
+// standard attributes, it is not possible to alias generic attributes with
+// conventional ones (except for generic attribute 0).
+//
+// BindAttribLocation can be called before any vertex shader objects are
+// bound to the specified program object. It is also permissible to bind a
+// generic attribute index to an attribute variable name that is never used
+// in a vertex shader.
+//
+// Active attributes that are not explicitly bound will be bound by the
+// linker when LinkProgram is called. The locations assigned can be queried
+// by calling GetAttribLocation.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS.
+// GL.INVALID_OPERATION is generated if name starts with the reserved prefix "gl_".
+// GL.INVALID_VALUE is generated if program is not a value generated by OpenGL.
+// GL.INVALID_OPERATION is generated if program is not a program object.
+// GL.INVALID_OPERATION is generated if BindAttribLocation is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// BindAttribLocation is available in GL version 2.0 or greater.
+func (gl *GL) BindAttribLocation(program glbase.Program, index glbase.Attrib, name string) {
+ name_cstr := C.CString(name)
+ C.gl2_1_glBindAttribLocation(gl.funcs, C.GLuint(program), C.GLuint(index), (*C.GLchar)(name_cstr))
+ C.free(unsafe.Pointer(name_cstr))
+}
+
+// AttachShader attaches a shader object to a program object.
+//
+// In order to create an executable, there must be a way to specify the list
+// of things that will be linked together. Program objects provide this
+// mechanism. Shaders that are to be linked together in a program object must
+// first be attached to that program object. This indicates that shader will
+// be included in link operations that will be performed on program.
+//
+// All operations that can be performed on a shader object are valid whether
+// or not the shader object is attached to a program object. It is
+// permissible to attach a shader object to a program object before source
+// code has been loaded into the shader object or before the shader object
+// has been compiled. It is permissible to attach multiple shader objects of
+// the same type because each may contain a portion of the complete shader.
+// It is also permissible to attach a shader object to more than one program
+// object. If a shader object is deleted while it is attached to a program
+// object, it will be flagged for deletion, and deletion will not occur until
+// DetachShader is called to detach it from all program objects to which it
+// is attached.
+//
+// Error GL.INVALID_VALUE is generated if either program or shader is not a
+// value generated by OpenGL. GL.INVALID_OPERATION is generated if program
+// is not a program object. GL.INVALID_OPERATION is generated if shader is
+// not a shader object. GL.INVALID_OPERATION is generated if shader is
+// already attached to program. GL.INVALID_OPERATION is generated if
+// AttachShader is executed between the execution of Begin and the
+// corresponding execution of End.
+//
+// AttachShader is available in GL version 2.0 or greater.
+func (gl *GL) AttachShader(program glbase.Program, shader glbase.Shader) {
+ C.gl2_1_glAttachShader(gl.funcs, C.GLuint(program), C.GLuint(shader))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilMaskSeparate.xml
+func (gl *GL) StencilMaskSeparate(face glbase.Enum, mask uint32) {
+ C.gl2_1_glStencilMaskSeparate(gl.funcs, C.GLenum(face), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilFuncSeparate.xml
+func (gl *GL) StencilFuncSeparate(face, glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl2_1_glStencilFuncSeparate(gl.funcs, C.GLenum(face), C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glStencilOpSeparate.xml
+func (gl *GL) StencilOpSeparate(face, sfail, dpfail, dppass glbase.Enum) {
+ C.gl2_1_glStencilOpSeparate(gl.funcs, C.GLenum(face), C.GLenum(sfail), C.GLenum(dpfail), C.GLenum(dppass))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawBuffers.xml
+func (gl *GL) DrawBuffers(n int, bufs []glbase.Enum) {
+ C.gl2_1_glDrawBuffers(gl.funcs, C.GLsizei(n), (*C.GLenum)(unsafe.Pointer(&bufs[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBlendEquationSeparate.xml
+func (gl *GL) BlendEquationSeparate(modeRGB, modeAlpha glbase.Enum) {
+ C.gl2_1_glBlendEquationSeparate(gl.funcs, C.GLenum(modeRGB), C.GLenum(modeAlpha))
+}
+
+// UniformMatrix4x3fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix4x3fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix4x3fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(4*3) != 0 {
+ panic("invalid value length for UniformMatrix4x3fv")
+ }
+ count := len(value) / (4 * 3)
+ C.gl2_1_glUniformMatrix4x3fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix3x4fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix3x4fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix3x4fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(3*4) != 0 {
+ panic("invalid value length for UniformMatrix3x4fv")
+ }
+ count := len(value) / (3 * 4)
+ C.gl2_1_glUniformMatrix3x4fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix4x2fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix4x2fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix4x2fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(4*2) != 0 {
+ panic("invalid value length for UniformMatrix4x2fv")
+ }
+ count := len(value) / (4 * 2)
+ C.gl2_1_glUniformMatrix4x2fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix2x4fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix2x4fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix2x4fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(2*4) != 0 {
+ panic("invalid value length for UniformMatrix2x4fv")
+ }
+ count := len(value) / (2 * 4)
+ C.gl2_1_glUniformMatrix2x4fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix3x2fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix3x2fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix3x2fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(3*2) != 0 {
+ panic("invalid value length for UniformMatrix3x2fv")
+ }
+ count := len(value) / (3 * 2)
+ C.gl2_1_glUniformMatrix3x2fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix2x3fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix2x3fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix2x3fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(2*3) != 0 {
+ panic("invalid value length for UniformMatrix2x3fv")
+ }
+ count := len(value) / (2 * 3)
+ C.gl2_1_glUniformMatrix2x3fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslatef.xml
+func (gl *GL) Translatef(x, y, z float32) {
+ C.gl2_1_glTranslatef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTranslated.xml
+func (gl *GL) Translated(x, y, z float64) {
+ C.gl2_1_glTranslated(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScalef.xml
+func (gl *GL) Scalef(x, y, z float32) {
+ C.gl2_1_glScalef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glScaled.xml
+func (gl *GL) Scaled(x, y, z float64) {
+ C.gl2_1_glScaled(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotatef.xml
+func (gl *GL) Rotatef(angle, x, y, z float32) {
+ C.gl2_1_glRotatef(gl.funcs, C.GLfloat(angle), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRotated.xml
+func (gl *GL) Rotated(angle, x, y, z float64) {
+ C.gl2_1_glRotated(gl.funcs, C.GLdouble(angle), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushMatrix.xml
+func (gl *GL) PushMatrix() {
+ C.gl2_1_glPushMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopMatrix.xml
+func (gl *GL) PopMatrix() {
+ C.gl2_1_glPopMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml
+func (gl *GL) Ortho(left, right, bottom, top, zNear, zFar float64) {
+ C.gl2_1_glOrtho(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// MultMatrixd multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixd(m []float64) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl2_1_glMultMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// MultMatrixf multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixf(m []float32) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl2_1_glMultMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMatrixMode.xml
+func (gl *GL) MatrixMode(mode glbase.Enum) {
+ C.gl2_1_glMatrixMode(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixd.xml
+func (gl *GL) LoadMatrixd(m []float64) {
+ C.gl2_1_glLoadMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadMatrixf.xml
+func (gl *GL) LoadMatrixf(m []float32) {
+ C.gl2_1_glLoadMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadIdentity.xml
+func (gl *GL) LoadIdentity() {
+ C.gl2_1_glLoadIdentity(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml
+func (gl *GL) Frustum(left, right, bottom, top, zNear, zFar float64) {
+ C.gl2_1_glFrustum(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIsList.xml
+func (gl *GL) IsList(list uint32) bool {
+ glresult := C.gl2_1_glIsList(gl.funcs, C.GLuint(list))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGeniv.xml
+func (gl *GL) GetTexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl2_1_glGetTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGenfv.xml
+func (gl *GL) GetTexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl2_1_glGetTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexGendv.xml
+func (gl *GL) GetTexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl2_1_glGetTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnviv.xml
+func (gl *GL) GetTexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl2_1_glGetTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetTexEnvfv.xml
+func (gl *GL) GetTexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_1_glGetTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPolygonStipple.xml
+func (gl *GL) GetPolygonStipple(mask []uint8) {
+ C.gl2_1_glGetPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapusv.xml
+func (gl *GL) GetPixelMapusv(glmap glbase.Enum, values []uint16) {
+ C.gl2_1_glGetPixelMapusv(gl.funcs, C.GLenum(glmap), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapuiv.xml
+func (gl *GL) GetPixelMapuiv(glmap glbase.Enum, values []uint32) {
+ C.gl2_1_glGetPixelMapuiv(gl.funcs, C.GLenum(glmap), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetPixelMapfv.xml
+func (gl *GL) GetPixelMapfv(glmap glbase.Enum, values []float32) {
+ C.gl2_1_glGetPixelMapfv(gl.funcs, C.GLenum(glmap), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialiv.xml
+func (gl *GL) GetMaterialiv(face, pname glbase.Enum, params []int32) {
+ C.gl2_1_glGetMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMaterialfv.xml
+func (gl *GL) GetMaterialfv(face, pname glbase.Enum, params []float32) {
+ C.gl2_1_glGetMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapiv.xml
+func (gl *GL) GetMapiv(target, query glbase.Enum, v []int32) {
+ C.gl2_1_glGetMapiv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapfv.xml
+func (gl *GL) GetMapfv(target, query glbase.Enum, v []float32) {
+ C.gl2_1_glGetMapfv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMapdv.xml
+func (gl *GL) GetMapdv(target, query glbase.Enum, v []float64) {
+ C.gl2_1_glGetMapdv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightiv.xml
+func (gl *GL) GetLightiv(light, pname glbase.Enum, params []int32) {
+ C.gl2_1_glGetLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetLightfv.xml
+func (gl *GL) GetLightfv(light, pname glbase.Enum, params []float32) {
+ C.gl2_1_glGetLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetClipPlane.xml
+func (gl *GL) GetClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl2_1_glGetClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDrawPixels.xml
+func (gl *GL) DrawPixels(width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glDrawPixels(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyPixels.xml
+func (gl *GL) CopyPixels(x, y, width, height int, gltype glbase.Enum) {
+ C.gl2_1_glCopyPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(gltype))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapusv.xml
+func (gl *GL) PixelMapusv(glmap glbase.Enum, mapsize int32, values []uint16) {
+ C.gl2_1_glPixelMapusv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapuiv.xml
+func (gl *GL) PixelMapuiv(glmap glbase.Enum, mapsize int32, values []uint32) {
+ C.gl2_1_glPixelMapuiv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelMapfv.xml
+func (gl *GL) PixelMapfv(glmap glbase.Enum, mapsize int32, values []float32) {
+ C.gl2_1_glPixelMapfv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferi.xml
+func (gl *GL) PixelTransferi(pname glbase.Enum, param int32) {
+ C.gl2_1_glPixelTransferi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelTransferf.xml
+func (gl *GL) PixelTransferf(pname glbase.Enum, param float32) {
+ C.gl2_1_glPixelTransferf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPixelZoom.xml
+func (gl *GL) PixelZoom(xfactor, yfactor float32) {
+ C.gl2_1_glPixelZoom(gl.funcs, C.GLfloat(xfactor), C.GLfloat(yfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAlphaFunc.xml
+func (gl *GL) AlphaFunc(glfunc glbase.Enum, ref float32) {
+ C.gl2_1_glAlphaFunc(gl.funcs, C.GLenum(glfunc), C.GLfloat(ref))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint2.xml
+func (gl *GL) EvalPoint2(i, j int32) {
+ C.gl2_1_glEvalPoint2(gl.funcs, C.GLint(i), C.GLint(j))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh2.xml
+func (gl *GL) EvalMesh2(mode glbase.Enum, i1, i2, j1, j2 int32) {
+ C.gl2_1_glEvalMesh2(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2), C.GLint(j1), C.GLint(j2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalPoint1.xml
+func (gl *GL) EvalPoint1(i int32) {
+ C.gl2_1_glEvalPoint1(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalMesh1.xml
+func (gl *GL) EvalMesh1(mode glbase.Enum, i1, i2 int32) {
+ C.gl2_1_glEvalMesh1(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2fv.xml
+func (gl *GL) EvalCoord2fv(u []float32) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl2_1_glEvalCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2f.xml
+func (gl *GL) EvalCoord2f(u, v float32) {
+ C.gl2_1_glEvalCoord2f(gl.funcs, C.GLfloat(u), C.GLfloat(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2dv.xml
+func (gl *GL) EvalCoord2dv(u []float64) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl2_1_glEvalCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord2d.xml
+func (gl *GL) EvalCoord2d(u, v float64) {
+ C.gl2_1_glEvalCoord2d(gl.funcs, C.GLdouble(u), C.GLdouble(v))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1fv.xml
+func (gl *GL) EvalCoord1fv(u []float32) {
+ C.gl2_1_glEvalCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1f.xml
+func (gl *GL) EvalCoord1f(u float32) {
+ C.gl2_1_glEvalCoord1f(gl.funcs, C.GLfloat(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1dv.xml
+func (gl *GL) EvalCoord1dv(u []float64) {
+ C.gl2_1_glEvalCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEvalCoord1d.xml
+func (gl *GL) EvalCoord1d(u float64) {
+ C.gl2_1_glEvalCoord1d(gl.funcs, C.GLdouble(u))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2f.xml
+func (gl *GL) MapGrid2f(un int32, u1, u2 float32, vn int32, v1, v2 float32) {
+ C.gl2_1_glMapGrid2f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2), C.GLint(vn), C.GLfloat(v1), C.GLfloat(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid2d.xml
+func (gl *GL) MapGrid2d(un int32, u1, u2 float64, vn int32, v1, v2 float64) {
+ C.gl2_1_glMapGrid2d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2), C.GLint(vn), C.GLdouble(v1), C.GLdouble(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1f.xml
+func (gl *GL) MapGrid1f(un int32, u1, u2 float32) {
+ C.gl2_1_glMapGrid1f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMapGrid1d.xml
+func (gl *GL) MapGrid1d(un int32, u1, u2 float64) {
+ C.gl2_1_glMapGrid1d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2f.xml
+func (gl *GL) Map2f(target glbase.Enum, u1, u2 float32, ustride, uorder int32, v1, v2 float32, vstride, vorder int32, points []float32) {
+ C.gl2_1_glMap2f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(ustride), C.GLint(uorder), C.GLfloat(v1), C.GLfloat(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap2d.xml
+func (gl *GL) Map2d(target glbase.Enum, u1, u2 float64, ustride, uorder int32, v1, v2 float64, vstride, vorder int32, points []float64) {
+ C.gl2_1_glMap2d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(ustride), C.GLint(uorder), C.GLdouble(v1), C.GLdouble(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1f.xml
+func (gl *GL) Map1f(target glbase.Enum, u1, u2 float32, stride, order int, points []float32) {
+ C.gl2_1_glMap1f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(stride), C.GLint(order), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMap1d.xml
+func (gl *GL) Map1d(target glbase.Enum, u1, u2 float64, stride, order int, points []float64) {
+ C.gl2_1_glMap1d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(stride), C.GLint(order), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushAttrib.xml
+func (gl *GL) PushAttrib(mask glbase.Bitfield) {
+ C.gl2_1_glPushAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopAttrib.xml
+func (gl *GL) PopAttrib() {
+ C.gl2_1_glPopAttrib(gl.funcs)
+}
+
+// Accum executes an operation on the accumulation buffer.
+//
+// Parameter op defines the accumulation buffer operation (GL.ACCUM, GL.LOAD,
+// GL.ADD, GL.MULT, or GL.RETURN) and specifies how the value parameter is
+// used.
+//
+// The accumulation buffer is an extended-range color buffer. Images are not
+// rendered into it. Rather, images rendered into one of the color buffers
+// are added to the contents of the accumulation buffer after rendering.
+// Effects such as antialiasing (of points, lines, and polygons), motion
+// blur, and depth of field can be created by accumulating images generated
+// with different transformation matrices.
+//
+// Each pixel in the accumulation buffer consists of red, green, blue, and
+// alpha values. The number of bits per component in the accumulation buffer
+// depends on the implementation. You can examine this number by calling
+// GetIntegerv four times, with arguments GL.ACCUM_RED_BITS,
+// GL.ACCUM_GREEN_BITS, GL.ACCUM_BLUE_BITS, and GL.ACCUM_ALPHA_BITS.
+// Regardless of the number of bits per component, the range of values stored
+// by each component is (-1, 1). The accumulation buffer pixels are mapped
+// one-to-one with frame buffer pixels.
+//
+// All accumulation buffer operations are limited to the area of the current
+// scissor box and applied identically to the red, green, blue, and alpha
+// components of each pixel. If a Accum operation results in a value outside
+// the range (-1, 1), the contents of an accumulation buffer pixel component
+// are undefined.
+//
+// The operations are as follows:
+//
+// GL.ACCUM
+// Obtains R, G, B, and A values from the buffer currently selected for
+// reading (see ReadBuffer). Each component value is divided by 2 n -
+// 1 , where n is the number of bits allocated to each color component
+// in the currently selected buffer. The result is a floating-point
+// value in the range 0 1 , which is multiplied by value and added to
+// the corresponding pixel component in the accumulation buffer,
+// thereby updating the accumulation buffer.
+//
+// GL.LOAD
+// Similar to GL.ACCUM, except that the current value in the
+// accumulation buffer is not used in the calculation of the new value.
+// That is, the R, G, B, and A values from the currently selected
+// buffer are divided by 2 n - 1 , multiplied by value, and then stored
+// in the corresponding accumulation buffer cell, overwriting the
+// current value.
+//
+// GL.ADD
+// Adds value to each R, G, B, and A in the accumulation buffer.
+//
+// GL.MULT
+// Multiplies each R, G, B, and A in the accumulation buffer by value
+// and returns the scaled component to its corresponding accumulation
+// buffer location.
+//
+// GL.RETURN
+// Transfers accumulation buffer values to the color buffer or buffers
+// currently selected for writing. Each R, G, B, and A component is
+// multiplied by value, then multiplied by 2 n - 1 , clamped to the
+// range 0 2 n - 1 , and stored in the corresponding display buffer
+// cell. The only fragment operations that are applied to this transfer
+// are pixel ownership, scissor, dithering, and color writemasks.
+//
+// To clear the accumulation buffer, call ClearAccum with R, G, B, and A
+// values to set it to, then call Clear with the accumulation buffer
+// enabled.
+//
+// Error GL.INVALID_ENUM is generated if op is not an accepted value.
+// GL.INVALID_OPERATION is generated if there is no accumulation buffer.
+// GL.INVALID_OPERATION is generated if Accum is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) Accum(op glbase.Enum, value float32) {
+ C.gl2_1_glAccum(gl.funcs, C.GLenum(op), C.GLfloat(value))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexMask.xml
+func (gl *GL) IndexMask(mask uint32) {
+ C.gl2_1_glIndexMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearIndex.xml
+func (gl *GL) ClearIndex(c float32) {
+ C.gl2_1_glClearIndex(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClearAccum.xml
+func (gl *GL) ClearAccum(red, green, blue, alpha float32) {
+ C.gl2_1_glClearAccum(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushName.xml
+func (gl *GL) PushName(name uint32) {
+ C.gl2_1_glPushName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopName.xml
+func (gl *GL) PopName() {
+ C.gl2_1_glPopName(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPassThrough.xml
+func (gl *GL) PassThrough(token float32) {
+ C.gl2_1_glPassThrough(gl.funcs, C.GLfloat(token))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadName.xml
+func (gl *GL) LoadName(name uint32) {
+ C.gl2_1_glLoadName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInitNames.xml
+func (gl *GL) InitNames() {
+ C.gl2_1_glInitNames(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRenderMode.xml
+func (gl *GL) RenderMode(mode glbase.Enum) int32 {
+ glresult := C.gl2_1_glRenderMode(gl.funcs, C.GLenum(mode))
+ return int32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSelectBuffer.xml
+func (gl *GL) SelectBuffer(size int, buffer []glbase.Buffer) {
+ C.gl2_1_glSelectBuffer(gl.funcs, C.GLsizei(size), (*C.GLuint)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFeedbackBuffer.xml
+func (gl *GL) FeedbackBuffer(size int, gltype glbase.Enum, buffer []float32) {
+ C.gl2_1_glFeedbackBuffer(gl.funcs, C.GLsizei(size), C.GLenum(gltype), (*C.GLfloat)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeniv.xml
+func (gl *GL) TexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl2_1_glTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGeni.xml
+func (gl *GL) TexGeni(coord, pname glbase.Enum, param int32) {
+ C.gl2_1_glTexGeni(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenfv.xml
+func (gl *GL) TexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl2_1_glTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGenf.xml
+func (gl *GL) TexGenf(coord, pname glbase.Enum, param float32) {
+ C.gl2_1_glTexGenf(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGendv.xml
+func (gl *GL) TexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl2_1_glTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexGend.xml
+func (gl *GL) TexGend(coord, pname glbase.Enum, param float64) {
+ C.gl2_1_glTexGend(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLdouble(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnviv.xml
+func (gl *GL) TexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl2_1_glTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvi.xml
+func (gl *GL) TexEnvi(target, pname glbase.Enum, param int32) {
+ C.gl2_1_glTexEnvi(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvfv.xml
+func (gl *GL) TexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_1_glTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnvf.xml
+func (gl *GL) TexEnvf(target, pname glbase.Enum, param float32) {
+ C.gl2_1_glTexEnvf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glShadeModel.xml
+func (gl *GL) ShadeModel(mode glbase.Enum) {
+ C.gl2_1_glShadeModel(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPolygonStipple.xml
+func (gl *GL) PolygonStipple(mask []uint8) {
+ C.gl2_1_glPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialiv.xml
+func (gl *GL) Materialiv(face, pname glbase.Enum, params []int32) {
+ C.gl2_1_glMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMateriali.xml
+func (gl *GL) Materiali(face, pname glbase.Enum, param int32) {
+ C.gl2_1_glMateriali(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialfv.xml
+func (gl *GL) Materialfv(face, pname glbase.Enum, params []float32) {
+ C.gl2_1_glMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMaterialf.xml
+func (gl *GL) Materialf(face, pname glbase.Enum, param float32) {
+ C.gl2_1_glMaterialf(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLineStipple.xml
+func (gl *GL) LineStipple(factor int32, pattern uint16) {
+ C.gl2_1_glLineStipple(gl.funcs, C.GLint(factor), C.GLushort(pattern))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeliv.xml
+func (gl *GL) LightModeliv(pname glbase.Enum, params []int32) {
+ C.gl2_1_glLightModeliv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModeli.xml
+func (gl *GL) LightModeli(pname glbase.Enum, param int32) {
+ C.gl2_1_glLightModeli(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelfv.xml
+func (gl *GL) LightModelfv(pname glbase.Enum, params []float32) {
+ C.gl2_1_glLightModelfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightModelf.xml
+func (gl *GL) LightModelf(pname glbase.Enum, param float32) {
+ C.gl2_1_glLightModelf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightiv.xml
+func (gl *GL) Lightiv(light, pname glbase.Enum, params []int32) {
+ C.gl2_1_glLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLighti.xml
+func (gl *GL) Lighti(light, pname glbase.Enum, param int32) {
+ C.gl2_1_glLighti(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightfv.xml
+func (gl *GL) Lightfv(light, pname glbase.Enum, params []float32) {
+ C.gl2_1_glLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLightf.xml
+func (gl *GL) Lightf(light, pname glbase.Enum, param float32) {
+ C.gl2_1_glLightf(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogiv.xml
+func (gl *GL) Fogiv(pname glbase.Enum, params []int32) {
+ C.gl2_1_glFogiv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogi.xml
+func (gl *GL) Fogi(pname glbase.Enum, param int32) {
+ C.gl2_1_glFogi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogfv.xml
+func (gl *GL) Fogfv(pname glbase.Enum, params []float32) {
+ C.gl2_1_glFogfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogf.xml
+func (gl *GL) Fogf(pname glbase.Enum, param float32) {
+ C.gl2_1_glFogf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorMaterial.xml
+func (gl *GL) ColorMaterial(face, mode glbase.Enum) {
+ C.gl2_1_glColorMaterial(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClipPlane.xml
+func (gl *GL) ClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl2_1_glClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4sv.xml
+func (gl *GL) Vertex4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertex4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4s.xml
+func (gl *GL) Vertex4s(x, y, z, w int16) {
+ C.gl2_1_glVertex4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4iv.xml
+func (gl *GL) Vertex4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertex4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4i.xml
+func (gl *GL) Vertex4i(x, y, z, w int) {
+ C.gl2_1_glVertex4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4fv.xml
+func (gl *GL) Vertex4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertex4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4f.xml
+func (gl *GL) Vertex4f(x, y, z, w float32) {
+ C.gl2_1_glVertex4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4dv.xml
+func (gl *GL) Vertex4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertex4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex4d.xml
+func (gl *GL) Vertex4d(x, y, z, w float64) {
+ C.gl2_1_glVertex4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3sv.xml
+func (gl *GL) Vertex3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertex3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3s.xml
+func (gl *GL) Vertex3s(x, y, z int16) {
+ C.gl2_1_glVertex3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3iv.xml
+func (gl *GL) Vertex3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertex3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3i.xml
+func (gl *GL) Vertex3i(x, y, z int) {
+ C.gl2_1_glVertex3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3fv.xml
+func (gl *GL) Vertex3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertex3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3f.xml
+func (gl *GL) Vertex3f(x, y, z float32) {
+ C.gl2_1_glVertex3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3dv.xml
+func (gl *GL) Vertex3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertex3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex3d.xml
+func (gl *GL) Vertex3d(x, y, z float64) {
+ C.gl2_1_glVertex3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2sv.xml
+func (gl *GL) Vertex2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertex2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2s.xml
+func (gl *GL) Vertex2s(x, y int16) {
+ C.gl2_1_glVertex2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2iv.xml
+func (gl *GL) Vertex2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertex2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2i.xml
+func (gl *GL) Vertex2i(x, y int) {
+ C.gl2_1_glVertex2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2fv.xml
+func (gl *GL) Vertex2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertex2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2f.xml
+func (gl *GL) Vertex2f(x, y float32) {
+ C.gl2_1_glVertex2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2dv.xml
+func (gl *GL) Vertex2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertex2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertex2d.xml
+func (gl *GL) Vertex2d(x, y float64) {
+ C.gl2_1_glVertex2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4sv.xml
+func (gl *GL) TexCoord4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glTexCoord4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4s.xml
+func (gl *GL) TexCoord4s(s, t, r, q int16) {
+ C.gl2_1_glTexCoord4s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4iv.xml
+func (gl *GL) TexCoord4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glTexCoord4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4i.xml
+func (gl *GL) TexCoord4i(s, t, r, q int32) {
+ C.gl2_1_glTexCoord4i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4fv.xml
+func (gl *GL) TexCoord4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glTexCoord4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4f.xml
+func (gl *GL) TexCoord4f(s, t, r, q float32) {
+ C.gl2_1_glTexCoord4f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4dv.xml
+func (gl *GL) TexCoord4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glTexCoord4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord4d.xml
+func (gl *GL) TexCoord4d(s, t, r, q float64) {
+ C.gl2_1_glTexCoord4d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3sv.xml
+func (gl *GL) TexCoord3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glTexCoord3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3s.xml
+func (gl *GL) TexCoord3s(s, t, r int16) {
+ C.gl2_1_glTexCoord3s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3iv.xml
+func (gl *GL) TexCoord3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glTexCoord3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3i.xml
+func (gl *GL) TexCoord3i(s, t, r int32) {
+ C.gl2_1_glTexCoord3i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3fv.xml
+func (gl *GL) TexCoord3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glTexCoord3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3f.xml
+func (gl *GL) TexCoord3f(s, t, r float32) {
+ C.gl2_1_glTexCoord3f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3dv.xml
+func (gl *GL) TexCoord3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glTexCoord3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord3d.xml
+func (gl *GL) TexCoord3d(s, t, r float64) {
+ C.gl2_1_glTexCoord3d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2sv.xml
+func (gl *GL) TexCoord2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glTexCoord2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2s.xml
+func (gl *GL) TexCoord2s(s, t int16) {
+ C.gl2_1_glTexCoord2s(gl.funcs, C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2iv.xml
+func (gl *GL) TexCoord2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glTexCoord2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2i.xml
+func (gl *GL) TexCoord2i(s, t int32) {
+ C.gl2_1_glTexCoord2i(gl.funcs, C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2fv.xml
+func (gl *GL) TexCoord2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glTexCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2f.xml
+func (gl *GL) TexCoord2f(s, t float32) {
+ C.gl2_1_glTexCoord2f(gl.funcs, C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2dv.xml
+func (gl *GL) TexCoord2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glTexCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord2d.xml
+func (gl *GL) TexCoord2d(s, t float64) {
+ C.gl2_1_glTexCoord2d(gl.funcs, C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1sv.xml
+func (gl *GL) TexCoord1sv(v []int16) {
+ C.gl2_1_glTexCoord1sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1s.xml
+func (gl *GL) TexCoord1s(s int16) {
+ C.gl2_1_glTexCoord1s(gl.funcs, C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1iv.xml
+func (gl *GL) TexCoord1iv(v []int32) {
+ C.gl2_1_glTexCoord1iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1i.xml
+func (gl *GL) TexCoord1i(s int32) {
+ C.gl2_1_glTexCoord1i(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1fv.xml
+func (gl *GL) TexCoord1fv(v []float32) {
+ C.gl2_1_glTexCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1f.xml
+func (gl *GL) TexCoord1f(s float32) {
+ C.gl2_1_glTexCoord1f(gl.funcs, C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1dv.xml
+func (gl *GL) TexCoord1dv(v []float64) {
+ C.gl2_1_glTexCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoord1d.xml
+func (gl *GL) TexCoord1d(s float64) {
+ C.gl2_1_glTexCoord1d(gl.funcs, C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectsv.xml
+func (gl *GL) Rectsv(v1, v2 []int16) {
+ C.gl2_1_glRectsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v1[0])), (*C.GLshort)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRects.xml
+func (gl *GL) Rects(x1, y1, x2, y2 int16) {
+ C.gl2_1_glRects(gl.funcs, C.GLshort(x1), C.GLshort(y1), C.GLshort(x2), C.GLshort(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectiv.xml
+func (gl *GL) Rectiv(v1, v2 []int32) {
+ C.gl2_1_glRectiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v1[0])), (*C.GLint)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRecti.xml
+func (gl *GL) Recti(x1, y1, x2, y2 int32) {
+ C.gl2_1_glRecti(gl.funcs, C.GLint(x1), C.GLint(y1), C.GLint(x2), C.GLint(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectfv.xml
+func (gl *GL) Rectfv(v1, v2 []float32) {
+ C.gl2_1_glRectfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v1[0])), (*C.GLfloat)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectf.xml
+func (gl *GL) Rectf(x1, y1, x2, y2 float32) {
+ C.gl2_1_glRectf(gl.funcs, C.GLfloat(x1), C.GLfloat(y1), C.GLfloat(x2), C.GLfloat(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectdv.xml
+func (gl *GL) Rectdv(v1, v2 []float64) {
+ C.gl2_1_glRectdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v1[0])), (*C.GLdouble)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRectd.xml
+func (gl *GL) Rectd(x1, y1, x2, y2 float64) {
+ C.gl2_1_glRectd(gl.funcs, C.GLdouble(x1), C.GLdouble(y1), C.GLdouble(x2), C.GLdouble(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4sv.xml
+func (gl *GL) RasterPos4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glRasterPos4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4s.xml
+func (gl *GL) RasterPos4s(x, y, z, w int16) {
+ C.gl2_1_glRasterPos4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4iv.xml
+func (gl *GL) RasterPos4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glRasterPos4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4i.xml
+func (gl *GL) RasterPos4i(x, y, z, w int) {
+ C.gl2_1_glRasterPos4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4fv.xml
+func (gl *GL) RasterPos4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glRasterPos4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4f.xml
+func (gl *GL) RasterPos4f(x, y, z, w float32) {
+ C.gl2_1_glRasterPos4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4dv.xml
+func (gl *GL) RasterPos4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glRasterPos4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos4d.xml
+func (gl *GL) RasterPos4d(x, y, z, w float64) {
+ C.gl2_1_glRasterPos4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3sv.xml
+func (gl *GL) RasterPos3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glRasterPos3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3s.xml
+func (gl *GL) RasterPos3s(x, y, z int16) {
+ C.gl2_1_glRasterPos3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3iv.xml
+func (gl *GL) RasterPos3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glRasterPos3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3i.xml
+func (gl *GL) RasterPos3i(x, y, z int) {
+ C.gl2_1_glRasterPos3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3fv.xml
+func (gl *GL) RasterPos3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glRasterPos3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3f.xml
+func (gl *GL) RasterPos3f(x, y, z float32) {
+ C.gl2_1_glRasterPos3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3dv.xml
+func (gl *GL) RasterPos3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glRasterPos3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos3d.xml
+func (gl *GL) RasterPos3d(x, y, z float64) {
+ C.gl2_1_glRasterPos3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2sv.xml
+func (gl *GL) RasterPos2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glRasterPos2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2s.xml
+func (gl *GL) RasterPos2s(x, y int16) {
+ C.gl2_1_glRasterPos2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2iv.xml
+func (gl *GL) RasterPos2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glRasterPos2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2i.xml
+func (gl *GL) RasterPos2i(x, y int) {
+ C.gl2_1_glRasterPos2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2fv.xml
+func (gl *GL) RasterPos2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glRasterPos2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2f.xml
+func (gl *GL) RasterPos2f(x, y float32) {
+ C.gl2_1_glRasterPos2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2dv.xml
+func (gl *GL) RasterPos2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glRasterPos2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glRasterPos2d.xml
+func (gl *GL) RasterPos2d(x, y float64) {
+ C.gl2_1_glRasterPos2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3sv.xml
+func (gl *GL) Normal3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glNormal3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3s.xml
+func (gl *GL) Normal3s(nx, ny, nz int16) {
+ C.gl2_1_glNormal3s(gl.funcs, C.GLshort(nx), C.GLshort(ny), C.GLshort(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3iv.xml
+func (gl *GL) Normal3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glNormal3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3i.xml
+func (gl *GL) Normal3i(nx, ny, nz int32) {
+ C.gl2_1_glNormal3i(gl.funcs, C.GLint(nx), C.GLint(ny), C.GLint(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3fv.xml
+func (gl *GL) Normal3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glNormal3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3f.xml
+func (gl *GL) Normal3f(nx, ny, nz float32) {
+ C.gl2_1_glNormal3f(gl.funcs, C.GLfloat(nx), C.GLfloat(ny), C.GLfloat(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3dv.xml
+func (gl *GL) Normal3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glNormal3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3d.xml
+func (gl *GL) Normal3d(nx, ny, nz float64) {
+ C.gl2_1_glNormal3d(gl.funcs, C.GLdouble(nx), C.GLdouble(ny), C.GLdouble(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3bv.xml
+func (gl *GL) Normal3bv(v []byte) {
+ C.gl2_1_glNormal3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormal3b.xml
+func (gl *GL) Normal3b(nx, ny, nz byte) {
+ C.gl2_1_glNormal3b(gl.funcs, C.GLbyte(nx), C.GLbyte(ny), C.GLbyte(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexsv.xml
+func (gl *GL) Indexsv(c []int16) {
+ C.gl2_1_glIndexsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexs.xml
+func (gl *GL) Indexs(c int16) {
+ C.gl2_1_glIndexs(gl.funcs, C.GLshort(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexiv.xml
+func (gl *GL) Indexiv(c []int32) {
+ C.gl2_1_glIndexiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexi.xml
+func (gl *GL) Indexi(c int32) {
+ C.gl2_1_glIndexi(gl.funcs, C.GLint(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexfv.xml
+func (gl *GL) Indexfv(c []float32) {
+ C.gl2_1_glIndexfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexf.xml
+func (gl *GL) Indexf(c float32) {
+ C.gl2_1_glIndexf(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexdv.xml
+func (gl *GL) Indexdv(c []float64) {
+ C.gl2_1_glIndexdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexd.xml
+func (gl *GL) Indexd(c float64) {
+ C.gl2_1_glIndexd(gl.funcs, C.GLdouble(c))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnd.xml
+func (gl *GL) End() {
+ C.gl2_1_glEnd(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagv.xml
+func (gl *GL) EdgeFlagv(flag []bool) {
+ C.gl2_1_glEdgeFlagv(gl.funcs, (*C.GLboolean)(unsafe.Pointer(&flag[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlag.xml
+func (gl *GL) EdgeFlag(flag bool) {
+ C.gl2_1_glEdgeFlag(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4usv.xml
+func (gl *GL) Color4usv(v []uint16) {
+ C.gl2_1_glColor4usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4us.xml
+func (gl *GL) Color4us(red, green, blue, alpha uint16) {
+ C.gl2_1_glColor4us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue), C.GLushort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4uiv.xml
+func (gl *GL) Color4uiv(v []uint32) {
+ C.gl2_1_glColor4uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ui.xml
+func (gl *GL) Color4ui(red, green, blue, alpha uint32) {
+ C.gl2_1_glColor4ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue), C.GLuint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ubv.xml
+func (gl *GL) Color4ubv(v []uint8) {
+ C.gl2_1_glColor4ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4ub.xml
+func (gl *GL) Color4ub(red, green, blue, alpha uint8) {
+ C.gl2_1_glColor4ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue), C.GLubyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4sv.xml
+func (gl *GL) Color4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glColor4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4s.xml
+func (gl *GL) Color4s(red, green, blue, alpha int16) {
+ C.gl2_1_glColor4s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue), C.GLshort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4iv.xml
+func (gl *GL) Color4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glColor4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4i.xml
+func (gl *GL) Color4i(red, green, blue, alpha int32) {
+ C.gl2_1_glColor4i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue), C.GLint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4fv.xml
+func (gl *GL) Color4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glColor4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4f.xml
+func (gl *GL) Color4f(red, green, blue, alpha float32) {
+ C.gl2_1_glColor4f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4dv.xml
+func (gl *GL) Color4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glColor4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4d.xml
+func (gl *GL) Color4d(red, green, blue, alpha float64) {
+ C.gl2_1_glColor4d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue), C.GLdouble(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4bv.xml
+func (gl *GL) Color4bv(v []byte) {
+ C.gl2_1_glColor4bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor4b.xml
+func (gl *GL) Color4b(red, green, blue, alpha byte) {
+ C.gl2_1_glColor4b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue), C.GLbyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3usv.xml
+func (gl *GL) Color3usv(v []uint16) {
+ C.gl2_1_glColor3usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3us.xml
+func (gl *GL) Color3us(red, green, blue uint16) {
+ C.gl2_1_glColor3us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3uiv.xml
+func (gl *GL) Color3uiv(v []uint32) {
+ C.gl2_1_glColor3uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ui.xml
+func (gl *GL) Color3ui(red, green, blue uint32) {
+ C.gl2_1_glColor3ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ubv.xml
+func (gl *GL) Color3ubv(v []uint8) {
+ C.gl2_1_glColor3ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3ub.xml
+func (gl *GL) Color3ub(red, green, blue uint8) {
+ C.gl2_1_glColor3ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3sv.xml
+func (gl *GL) Color3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glColor3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3s.xml
+func (gl *GL) Color3s(red, green, blue int16) {
+ C.gl2_1_glColor3s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3iv.xml
+func (gl *GL) Color3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glColor3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3i.xml
+func (gl *GL) Color3i(red, green, blue int32) {
+ C.gl2_1_glColor3i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3fv.xml
+func (gl *GL) Color3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glColor3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3f.xml
+func (gl *GL) Color3f(red, green, blue float32) {
+ C.gl2_1_glColor3f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3dv.xml
+func (gl *GL) Color3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glColor3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3d.xml
+func (gl *GL) Color3d(red, green, blue float64) {
+ C.gl2_1_glColor3d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3bv.xml
+func (gl *GL) Color3bv(v []byte) {
+ C.gl2_1_glColor3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColor3b.xml
+func (gl *GL) Color3b(red, green, blue byte) {
+ C.gl2_1_glColor3b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBitmap.xml
+func (gl *GL) Bitmap(width, height int, xorig, yorig, xmove, ymove float32, bitmap []uint8) {
+ C.gl2_1_glBitmap(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLfloat(xorig), C.GLfloat(yorig), C.GLfloat(xmove), C.GLfloat(ymove), (*C.GLubyte)(unsafe.Pointer(&bitmap[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glBegin.xml
+func (gl *GL) Begin(mode glbase.Enum) {
+ C.gl2_1_glBegin(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glListBase.xml
+func (gl *GL) ListBase(base uint32) {
+ C.gl2_1_glListBase(gl.funcs, C.GLuint(base))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGenLists.xml
+func (gl *GL) GenLists(range_ int32) uint32 {
+ glresult := C.gl2_1_glGenLists(gl.funcs, C.GLsizei(range_))
+ return uint32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDeleteLists.xml
+func (gl *GL) DeleteLists(list uint32, range_ int32) {
+ C.gl2_1_glDeleteLists(gl.funcs, C.GLuint(list), C.GLsizei(range_))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallLists.xml
+func (gl *GL) CallLists(n int, gltype glbase.Enum, lists interface{}) {
+ var lists_ptr unsafe.Pointer
+ var lists_v = reflect.ValueOf(lists)
+ if lists != nil && lists_v.Kind() != reflect.Slice {
+ panic("parameter lists must be a slice")
+ }
+ if lists != nil {
+ lists_ptr = unsafe.Pointer(lists_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glCallLists(gl.funcs, C.GLsizei(n), C.GLenum(gltype), lists_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCallList.xml
+func (gl *GL) CallList(list uint32) {
+ C.gl2_1_glCallList(gl.funcs, C.GLuint(list))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEndList.xml
+func (gl *GL) EndList() {
+ C.gl2_1_glEndList(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNewList.xml
+func (gl *GL) NewList(list uint32, mode glbase.Enum) {
+ C.gl2_1_glNewList(gl.funcs, C.GLuint(list), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPushClientAttrib.xml
+func (gl *GL) PushClientAttrib(mask glbase.Bitfield) {
+ C.gl2_1_glPushClientAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPopClientAttrib.xml
+func (gl *GL) PopClientAttrib() {
+ C.gl2_1_glPopClientAttrib(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glPrioritizeTextures.xml
+func (gl *GL) PrioritizeTextures(n int, textures []glbase.Texture, priorities []float32) {
+ C.gl2_1_glPrioritizeTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLfloat)(unsafe.Pointer(&priorities[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glAreTexturesResident.xml
+func (gl *GL) AreTexturesResident(n int, textures []glbase.Texture, residences []bool) bool {
+ glresult := C.gl2_1_glAreTexturesResident(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLboolean)(unsafe.Pointer(&residences[0])))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexPointer.xml
+func (gl *GL) VertexPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glVertexPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glTexCoordPointer.xml
+func (gl *GL) TexCoordPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glTexCoordPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glNormalPointer.xml
+func (gl *GL) NormalPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glNormalPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glInterleavedArrays.xml
+func (gl *GL) InterleavedArrays(format glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glInterleavedArrays(gl.funcs, C.GLenum(format), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glIndexPointer.xml
+func (gl *GL) IndexPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glIndexPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEnableClientState.xml
+func (gl *GL) EnableClientState(array glbase.Enum) {
+ C.gl2_1_glEnableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glEdgeFlagPointer.xml
+func (gl *GL) EdgeFlagPointer(stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glEdgeFlagPointer(gl.funcs, C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glDisableClientState.xml
+func (gl *GL) DisableClientState(array glbase.Enum) {
+ C.gl2_1_glDisableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorPointer.xml
+func (gl *GL) ColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glColorPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glArrayElement.xml
+func (gl *GL) ArrayElement(i int32) {
+ C.gl2_1_glArrayElement(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glResetMinmax.xml
+func (gl *GL) ResetMinmax(target glbase.Enum) {
+ C.gl2_1_glResetMinmax(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glResetHistogram.xml
+func (gl *GL) ResetHistogram(target glbase.Enum) {
+ C.gl2_1_glResetHistogram(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMinmax.xml
+func (gl *GL) Minmax(target, internalFormat glbase.Enum, sink bool) {
+ C.gl2_1_glMinmax(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), *(*C.GLboolean)(unsafe.Pointer(&sink)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glHistogram.xml
+func (gl *GL) Histogram(target glbase.Enum, width int, internalFormat glbase.Enum, sink bool) {
+ C.gl2_1_glHistogram(gl.funcs, C.GLenum(target), C.GLsizei(width), C.GLenum(internalFormat), *(*C.GLboolean)(unsafe.Pointer(&sink)))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmaxParameteriv.xml
+func (gl *GL) GetMinmaxParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_1_glGetMinmaxParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmaxParameterfv.xml
+func (gl *GL) GetMinmaxParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_1_glGetMinmaxParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetMinmax.xml
+func (gl *GL) GetMinmax(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{}) {
+ var values_ptr unsafe.Pointer
+ var values_v = reflect.ValueOf(values)
+ if values != nil && values_v.Kind() != reflect.Slice {
+ panic("parameter values must be a slice")
+ }
+ if values != nil {
+ values_ptr = unsafe.Pointer(values_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glGetMinmax(gl.funcs, C.GLenum(target), *(*C.GLboolean)(unsafe.Pointer(&reset)), C.GLenum(format), C.GLenum(gltype), values_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogramParameteriv.xml
+func (gl *GL) GetHistogramParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_1_glGetHistogramParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogramParameterfv.xml
+func (gl *GL) GetHistogramParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_1_glGetHistogramParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetHistogram.xml
+func (gl *GL) GetHistogram(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{}) {
+ var values_ptr unsafe.Pointer
+ var values_v = reflect.ValueOf(values)
+ if values != nil && values_v.Kind() != reflect.Slice {
+ panic("parameter values must be a slice")
+ }
+ if values != nil {
+ values_ptr = unsafe.Pointer(values_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glGetHistogram(gl.funcs, C.GLenum(target), *(*C.GLboolean)(unsafe.Pointer(&reset)), C.GLenum(format), C.GLenum(gltype), values_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSeparableFilter2D.xml
+func (gl *GL) SeparableFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, row, column interface{}) {
+ var row_ptr unsafe.Pointer
+ var row_v = reflect.ValueOf(row)
+ if row != nil && row_v.Kind() != reflect.Slice {
+ panic("parameter row must be a slice")
+ }
+ if row != nil {
+ row_ptr = unsafe.Pointer(row_v.Index(0).Addr().Pointer())
+ }
+ var column_ptr unsafe.Pointer
+ var column_v = reflect.ValueOf(column)
+ if column != nil && column_v.Kind() != reflect.Slice {
+ panic("parameter column must be a slice")
+ }
+ if column != nil {
+ column_ptr = unsafe.Pointer(column_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glSeparableFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), row_ptr, column_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetSeparableFilter.xml
+func (gl *GL) GetSeparableFilter(target, format, gltype glbase.Enum, row, column, span interface{}) {
+ var row_ptr unsafe.Pointer
+ var row_v = reflect.ValueOf(row)
+ if row != nil && row_v.Kind() != reflect.Slice {
+ panic("parameter row must be a slice")
+ }
+ if row != nil {
+ row_ptr = unsafe.Pointer(row_v.Index(0).Addr().Pointer())
+ }
+ var column_ptr unsafe.Pointer
+ var column_v = reflect.ValueOf(column)
+ if column != nil && column_v.Kind() != reflect.Slice {
+ panic("parameter column must be a slice")
+ }
+ if column != nil {
+ column_ptr = unsafe.Pointer(column_v.Index(0).Addr().Pointer())
+ }
+ var span_ptr unsafe.Pointer
+ var span_v = reflect.ValueOf(span)
+ if span != nil && span_v.Kind() != reflect.Slice {
+ panic("parameter span must be a slice")
+ }
+ if span != nil {
+ span_ptr = unsafe.Pointer(span_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glGetSeparableFilter(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), row_ptr, column_ptr, span_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionParameteriv.xml
+func (gl *GL) GetConvolutionParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_1_glGetConvolutionParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionParameterfv.xml
+func (gl *GL) GetConvolutionParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_1_glGetConvolutionParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetConvolutionFilter.xml
+func (gl *GL) GetConvolutionFilter(target, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glGetConvolutionFilter(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyConvolutionFilter2D.xml
+func (gl *GL) CopyConvolutionFilter2D(target, internalFormat glbase.Enum, x, y, width, height int) {
+ C.gl2_1_glCopyConvolutionFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyConvolutionFilter1D.xml
+func (gl *GL) CopyConvolutionFilter1D(target, internalFormat glbase.Enum, x, y, width int) {
+ C.gl2_1_glCopyConvolutionFilter1D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameteriv.xml
+func (gl *GL) ConvolutionParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_1_glConvolutionParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameteri.xml
+func (gl *GL) ConvolutionParameteri(target, pname glbase.Enum, params int32) {
+ C.gl2_1_glConvolutionParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(params))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameterfv.xml
+func (gl *GL) ConvolutionParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_1_glConvolutionParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionParameterf.xml
+func (gl *GL) ConvolutionParameterf(target, pname glbase.Enum, params float32) {
+ C.gl2_1_glConvolutionParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(params))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionFilter2D.xml
+func (gl *GL) ConvolutionFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glConvolutionFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glConvolutionFilter1D.xml
+func (gl *GL) ConvolutionFilter1D(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glConvolutionFilter1D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyColorSubTable.xml
+func (gl *GL) CopyColorSubTable(target glbase.Enum, start int32, x, y, width int) {
+ C.gl2_1_glCopyColorSubTable(gl.funcs, C.GLenum(target), C.GLsizei(start), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorSubTable.xml
+func (gl *GL) ColorSubTable(target glbase.Enum, start int32, count int, format, gltype glbase.Enum, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glColorSubTable(gl.funcs, C.GLenum(target), C.GLsizei(start), C.GLsizei(count), C.GLenum(format), C.GLenum(gltype), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTableParameteriv.xml
+func (gl *GL) GetColorTableParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_1_glGetColorTableParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTableParameterfv.xml
+func (gl *GL) GetColorTableParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_1_glGetColorTableParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glGetColorTable.xml
+func (gl *GL) GetColorTable(target, format, gltype glbase.Enum, table interface{}) {
+ var table_ptr unsafe.Pointer
+ var table_v = reflect.ValueOf(table)
+ if table != nil && table_v.Kind() != reflect.Slice {
+ panic("parameter table must be a slice")
+ }
+ if table != nil {
+ table_ptr = unsafe.Pointer(table_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glGetColorTable(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), table_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glCopyColorTable.xml
+func (gl *GL) CopyColorTable(target, internalFormat glbase.Enum, x, y, width int) {
+ C.gl2_1_glCopyColorTable(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTableParameteriv.xml
+func (gl *GL) ColorTableParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl2_1_glColorTableParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTableParameterfv.xml
+func (gl *GL) ColorTableParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl2_1_glColorTableParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glColorTable.xml
+func (gl *GL) ColorTable(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, table interface{}) {
+ var table_ptr unsafe.Pointer
+ var table_v = reflect.ValueOf(table)
+ if table != nil && table_v.Kind() != reflect.Slice {
+ panic("parameter table must be a slice")
+ }
+ if table != nil {
+ table_ptr = unsafe.Pointer(table_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glColorTable(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), table_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultTransposeMatrixd.xml
+func (gl *GL) MultTransposeMatrixd(m []float64) {
+ C.gl2_1_glMultTransposeMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultTransposeMatrixf.xml
+func (gl *GL) MultTransposeMatrixf(m []float32) {
+ C.gl2_1_glMultTransposeMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadTransposeMatrixd.xml
+func (gl *GL) LoadTransposeMatrixd(m []float64) {
+ C.gl2_1_glLoadTransposeMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glLoadTransposeMatrixf.xml
+func (gl *GL) LoadTransposeMatrixf(m []float32) {
+ C.gl2_1_glLoadTransposeMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4sv.xml
+func (gl *GL) MultiTexCoord4sv(target glbase.Enum, v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glMultiTexCoord4sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4s.xml
+func (gl *GL) MultiTexCoord4s(target glbase.Enum, s, t, r, q int16) {
+ C.gl2_1_glMultiTexCoord4s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4iv.xml
+func (gl *GL) MultiTexCoord4iv(target glbase.Enum, v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glMultiTexCoord4iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4i.xml
+func (gl *GL) MultiTexCoord4i(target glbase.Enum, s, t, r, q int32) {
+ C.gl2_1_glMultiTexCoord4i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4fv.xml
+func (gl *GL) MultiTexCoord4fv(target glbase.Enum, v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glMultiTexCoord4fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4f.xml
+func (gl *GL) MultiTexCoord4f(target glbase.Enum, s, t, r, q float32) {
+ C.gl2_1_glMultiTexCoord4f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4dv.xml
+func (gl *GL) MultiTexCoord4dv(target glbase.Enum, v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glMultiTexCoord4dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord4d.xml
+func (gl *GL) MultiTexCoord4d(target glbase.Enum, s, t, r, q float64) {
+ C.gl2_1_glMultiTexCoord4d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3sv.xml
+func (gl *GL) MultiTexCoord3sv(target glbase.Enum, v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glMultiTexCoord3sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3s.xml
+func (gl *GL) MultiTexCoord3s(target glbase.Enum, s, t, r int16) {
+ C.gl2_1_glMultiTexCoord3s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3iv.xml
+func (gl *GL) MultiTexCoord3iv(target glbase.Enum, v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glMultiTexCoord3iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3i.xml
+func (gl *GL) MultiTexCoord3i(target glbase.Enum, s, t, r int32) {
+ C.gl2_1_glMultiTexCoord3i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3fv.xml
+func (gl *GL) MultiTexCoord3fv(target glbase.Enum, v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glMultiTexCoord3fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3f.xml
+func (gl *GL) MultiTexCoord3f(target glbase.Enum, s, t, r float32) {
+ C.gl2_1_glMultiTexCoord3f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3dv.xml
+func (gl *GL) MultiTexCoord3dv(target glbase.Enum, v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glMultiTexCoord3dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord3d.xml
+func (gl *GL) MultiTexCoord3d(target glbase.Enum, s, t, r float64) {
+ C.gl2_1_glMultiTexCoord3d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2sv.xml
+func (gl *GL) MultiTexCoord2sv(target glbase.Enum, v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glMultiTexCoord2sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2s.xml
+func (gl *GL) MultiTexCoord2s(target glbase.Enum, s, t int16) {
+ C.gl2_1_glMultiTexCoord2s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2iv.xml
+func (gl *GL) MultiTexCoord2iv(target glbase.Enum, v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glMultiTexCoord2iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2i.xml
+func (gl *GL) MultiTexCoord2i(target glbase.Enum, s, t int32) {
+ C.gl2_1_glMultiTexCoord2i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2fv.xml
+func (gl *GL) MultiTexCoord2fv(target glbase.Enum, v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glMultiTexCoord2fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2f.xml
+func (gl *GL) MultiTexCoord2f(target glbase.Enum, s, t float32) {
+ C.gl2_1_glMultiTexCoord2f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2dv.xml
+func (gl *GL) MultiTexCoord2dv(target glbase.Enum, v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glMultiTexCoord2dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord2d.xml
+func (gl *GL) MultiTexCoord2d(target glbase.Enum, s, t float64) {
+ C.gl2_1_glMultiTexCoord2d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1sv.xml
+func (gl *GL) MultiTexCoord1sv(target glbase.Enum, v []int16) {
+ C.gl2_1_glMultiTexCoord1sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1s.xml
+func (gl *GL) MultiTexCoord1s(target glbase.Enum, s int16) {
+ C.gl2_1_glMultiTexCoord1s(gl.funcs, C.GLenum(target), C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1iv.xml
+func (gl *GL) MultiTexCoord1iv(target glbase.Enum, v []int32) {
+ C.gl2_1_glMultiTexCoord1iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1i.xml
+func (gl *GL) MultiTexCoord1i(target glbase.Enum, s int32) {
+ C.gl2_1_glMultiTexCoord1i(gl.funcs, C.GLenum(target), C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1fv.xml
+func (gl *GL) MultiTexCoord1fv(target glbase.Enum, v []float32) {
+ C.gl2_1_glMultiTexCoord1fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1f.xml
+func (gl *GL) MultiTexCoord1f(target glbase.Enum, s float32) {
+ C.gl2_1_glMultiTexCoord1f(gl.funcs, C.GLenum(target), C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1dv.xml
+func (gl *GL) MultiTexCoord1dv(target glbase.Enum, v []float64) {
+ C.gl2_1_glMultiTexCoord1dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glMultiTexCoord1d.xml
+func (gl *GL) MultiTexCoord1d(target glbase.Enum, s float64) {
+ C.gl2_1_glMultiTexCoord1d(gl.funcs, C.GLenum(target), C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glClientActiveTexture.xml
+func (gl *GL) ClientActiveTexture(texture glbase.Enum) {
+ C.gl2_1_glClientActiveTexture(gl.funcs, C.GLenum(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3sv.xml
+func (gl *GL) WindowPos3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glWindowPos3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3s.xml
+func (gl *GL) WindowPos3s(x, y, z int16) {
+ C.gl2_1_glWindowPos3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3iv.xml
+func (gl *GL) WindowPos3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glWindowPos3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3i.xml
+func (gl *GL) WindowPos3i(x, y, z int) {
+ C.gl2_1_glWindowPos3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3fv.xml
+func (gl *GL) WindowPos3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glWindowPos3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3f.xml
+func (gl *GL) WindowPos3f(x, y, z float32) {
+ C.gl2_1_glWindowPos3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3dv.xml
+func (gl *GL) WindowPos3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glWindowPos3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos3d.xml
+func (gl *GL) WindowPos3d(x, y, z float64) {
+ C.gl2_1_glWindowPos3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2sv.xml
+func (gl *GL) WindowPos2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glWindowPos2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2s.xml
+func (gl *GL) WindowPos2s(x, y int16) {
+ C.gl2_1_glWindowPos2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2iv.xml
+func (gl *GL) WindowPos2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glWindowPos2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2i.xml
+func (gl *GL) WindowPos2i(x, y int) {
+ C.gl2_1_glWindowPos2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2fv.xml
+func (gl *GL) WindowPos2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glWindowPos2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2f.xml
+func (gl *GL) WindowPos2f(x, y float32) {
+ C.gl2_1_glWindowPos2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2dv.xml
+func (gl *GL) WindowPos2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glWindowPos2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glWindowPos2d.xml
+func (gl *GL) WindowPos2d(x, y float64) {
+ C.gl2_1_glWindowPos2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColorPointer.xml
+func (gl *GL) SecondaryColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glSecondaryColorPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3usv.xml
+func (gl *GL) SecondaryColor3usv(v []uint16) {
+ C.gl2_1_glSecondaryColor3usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3us.xml
+func (gl *GL) SecondaryColor3us(red, green, blue uint16) {
+ C.gl2_1_glSecondaryColor3us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3uiv.xml
+func (gl *GL) SecondaryColor3uiv(v []uint32) {
+ C.gl2_1_glSecondaryColor3uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ui.xml
+func (gl *GL) SecondaryColor3ui(red, green, blue uint32) {
+ C.gl2_1_glSecondaryColor3ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ubv.xml
+func (gl *GL) SecondaryColor3ubv(v []uint8) {
+ C.gl2_1_glSecondaryColor3ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3ub.xml
+func (gl *GL) SecondaryColor3ub(red, green, blue uint8) {
+ C.gl2_1_glSecondaryColor3ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3sv.xml
+func (gl *GL) SecondaryColor3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glSecondaryColor3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3s.xml
+func (gl *GL) SecondaryColor3s(red, green, blue int16) {
+ C.gl2_1_glSecondaryColor3s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3iv.xml
+func (gl *GL) SecondaryColor3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glSecondaryColor3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3i.xml
+func (gl *GL) SecondaryColor3i(red, green, blue int32) {
+ C.gl2_1_glSecondaryColor3i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3fv.xml
+func (gl *GL) SecondaryColor3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glSecondaryColor3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3f.xml
+func (gl *GL) SecondaryColor3f(red, green, blue float32) {
+ C.gl2_1_glSecondaryColor3f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3dv.xml
+func (gl *GL) SecondaryColor3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glSecondaryColor3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3d.xml
+func (gl *GL) SecondaryColor3d(red, green, blue float64) {
+ C.gl2_1_glSecondaryColor3d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3bv.xml
+func (gl *GL) SecondaryColor3bv(v []byte) {
+ C.gl2_1_glSecondaryColor3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glSecondaryColor3b.xml
+func (gl *GL) SecondaryColor3b(red, green, blue byte) {
+ C.gl2_1_glSecondaryColor3b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordPointer.xml
+func (gl *GL) FogCoordPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl2_1_glFogCoordPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoorddv.xml
+func (gl *GL) FogCoorddv(coord []float64) {
+ C.gl2_1_glFogCoorddv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&coord[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordd.xml
+func (gl *GL) FogCoordd(coord float64) {
+ C.gl2_1_glFogCoordd(gl.funcs, C.GLdouble(coord))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordfv.xml
+func (gl *GL) FogCoordfv(coord []float32) {
+ C.gl2_1_glFogCoordfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&coord[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glFogCoordf.xml
+func (gl *GL) FogCoordf(coord float32) {
+ C.gl2_1_glFogCoordf(gl.funcs, C.GLfloat(coord))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4usv.xml
+func (gl *GL) VertexAttrib4usv(index glbase.Attrib, v []uint16) {
+ C.gl2_1_glVertexAttrib4usv(gl.funcs, C.GLuint(index), (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4uiv.xml
+func (gl *GL) VertexAttrib4uiv(index glbase.Attrib, v []uint32) {
+ C.gl2_1_glVertexAttrib4uiv(gl.funcs, C.GLuint(index), (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4ubv.xml
+func (gl *GL) VertexAttrib4ubv(index glbase.Attrib, v []uint8) {
+ C.gl2_1_glVertexAttrib4ubv(gl.funcs, C.GLuint(index), (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4sv.xml
+func (gl *GL) VertexAttrib4sv(index glbase.Attrib, v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertexAttrib4sv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4s.xml
+func (gl *GL) VertexAttrib4s(index glbase.Attrib, x, y, z, w int16) {
+ C.gl2_1_glVertexAttrib4s(gl.funcs, C.GLuint(index), C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4iv.xml
+func (gl *GL) VertexAttrib4iv(index glbase.Attrib, v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertexAttrib4iv(gl.funcs, C.GLuint(index), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4fv.xml
+func (gl *GL) VertexAttrib4fv(index glbase.Attrib, v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertexAttrib4fv(gl.funcs, C.GLuint(index), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4f.xml
+func (gl *GL) VertexAttrib4f(index glbase.Attrib, x, y, z, w float32) {
+ C.gl2_1_glVertexAttrib4f(gl.funcs, C.GLuint(index), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4dv.xml
+func (gl *GL) VertexAttrib4dv(index glbase.Attrib, v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertexAttrib4dv(gl.funcs, C.GLuint(index), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4d.xml
+func (gl *GL) VertexAttrib4d(index glbase.Attrib, x, y, z, w float64) {
+ C.gl2_1_glVertexAttrib4d(gl.funcs, C.GLuint(index), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4bv.xml
+func (gl *GL) VertexAttrib4bv(index glbase.Attrib, v []byte) {
+ C.gl2_1_glVertexAttrib4bv(gl.funcs, C.GLuint(index), (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nusv.xml
+func (gl *GL) VertexAttrib4Nusv(index glbase.Attrib, v []uint16) {
+ C.gl2_1_glVertexAttrib4Nusv(gl.funcs, C.GLuint(index), (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nuiv.xml
+func (gl *GL) VertexAttrib4Nuiv(index glbase.Attrib, v []uint32) {
+ C.gl2_1_glVertexAttrib4Nuiv(gl.funcs, C.GLuint(index), (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nubv.xml
+func (gl *GL) VertexAttrib4Nubv(index glbase.Attrib, v []uint8) {
+ C.gl2_1_glVertexAttrib4Nubv(gl.funcs, C.GLuint(index), (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nub.xml
+func (gl *GL) VertexAttrib4Nub(index glbase.Attrib, x, y, z, w uint8) {
+ C.gl2_1_glVertexAttrib4Nub(gl.funcs, C.GLuint(index), C.GLubyte(x), C.GLubyte(y), C.GLubyte(z), C.GLubyte(w))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nsv.xml
+func (gl *GL) VertexAttrib4Nsv(index glbase.Attrib, v []int16) {
+ C.gl2_1_glVertexAttrib4Nsv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Niv.xml
+func (gl *GL) VertexAttrib4Niv(index glbase.Attrib, v []int32) {
+ C.gl2_1_glVertexAttrib4Niv(gl.funcs, C.GLuint(index), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib4Nbv.xml
+func (gl *GL) VertexAttrib4Nbv(index glbase.Attrib, v []byte) {
+ C.gl2_1_glVertexAttrib4Nbv(gl.funcs, C.GLuint(index), (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3sv.xml
+func (gl *GL) VertexAttrib3sv(index glbase.Attrib, v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertexAttrib3sv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3s.xml
+func (gl *GL) VertexAttrib3s(index glbase.Attrib, x, y, z int16) {
+ C.gl2_1_glVertexAttrib3s(gl.funcs, C.GLuint(index), C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3fv.xml
+func (gl *GL) VertexAttrib3fv(index glbase.Attrib, v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertexAttrib3fv(gl.funcs, C.GLuint(index), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3f.xml
+func (gl *GL) VertexAttrib3f(index glbase.Attrib, x, y, z float32) {
+ C.gl2_1_glVertexAttrib3f(gl.funcs, C.GLuint(index), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3dv.xml
+func (gl *GL) VertexAttrib3dv(index glbase.Attrib, v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertexAttrib3dv(gl.funcs, C.GLuint(index), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib3d.xml
+func (gl *GL) VertexAttrib3d(index glbase.Attrib, x, y, z float64) {
+ C.gl2_1_glVertexAttrib3d(gl.funcs, C.GLuint(index), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2sv.xml
+func (gl *GL) VertexAttrib2sv(index glbase.Attrib, v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertexAttrib2sv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2s.xml
+func (gl *GL) VertexAttrib2s(index glbase.Attrib, x, y int16) {
+ C.gl2_1_glVertexAttrib2s(gl.funcs, C.GLuint(index), C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2fv.xml
+func (gl *GL) VertexAttrib2fv(index glbase.Attrib, v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertexAttrib2fv(gl.funcs, C.GLuint(index), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2f.xml
+func (gl *GL) VertexAttrib2f(index glbase.Attrib, x, y float32) {
+ C.gl2_1_glVertexAttrib2f(gl.funcs, C.GLuint(index), C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2dv.xml
+func (gl *GL) VertexAttrib2dv(index glbase.Attrib, v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl2_1_glVertexAttrib2dv(gl.funcs, C.GLuint(index), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib2d.xml
+func (gl *GL) VertexAttrib2d(index glbase.Attrib, x, y float64) {
+ C.gl2_1_glVertexAttrib2d(gl.funcs, C.GLuint(index), C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1sv.xml
+func (gl *GL) VertexAttrib1sv(index glbase.Attrib, v []int16) {
+ C.gl2_1_glVertexAttrib1sv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1s.xml
+func (gl *GL) VertexAttrib1s(index glbase.Attrib, x int16) {
+ C.gl2_1_glVertexAttrib1s(gl.funcs, C.GLuint(index), C.GLshort(x))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1fv.xml
+func (gl *GL) VertexAttrib1fv(index glbase.Attrib, v []float32) {
+ C.gl2_1_glVertexAttrib1fv(gl.funcs, C.GLuint(index), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1f.xml
+func (gl *GL) VertexAttrib1f(index glbase.Attrib, x float32) {
+ C.gl2_1_glVertexAttrib1f(gl.funcs, C.GLuint(index), C.GLfloat(x))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1dv.xml
+func (gl *GL) VertexAttrib1dv(index glbase.Attrib, v []float64) {
+ C.gl2_1_glVertexAttrib1dv(gl.funcs, C.GLuint(index), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man2/xhtml/glVertexAttrib1d.xml
+func (gl *GL) VertexAttrib1d(index glbase.Attrib, x float64) {
+ C.gl2_1_glVertexAttrib1d(gl.funcs, C.GLuint(index), C.GLdouble(x))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.0/funcs.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.0/funcs.cpp
new file mode 100644
index 000000000..8d4262f9c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.0/funcs.cpp
@@ -0,0 +1,3966 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#include <QOpenGLContext>
+#include <QtGui/qopenglfunctions_3_0.h>
+
+#include "funcs.h"
+
+void *gl3_0_funcs() {
+ QOpenGLFunctions_3_0* funcs = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_3_0>();
+ if (!funcs) {
+ return 0;
+ }
+ funcs->initializeOpenGLFunctions();
+ return funcs;
+}
+
+
+void gl3_0_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glViewport(x, y, width, height);
+}
+
+void gl3_0_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDepthRange(nearVal, farVal);
+}
+
+GLboolean gl3_0_glIsEnabled(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glIsEnabled(cap);
+}
+
+void gl3_0_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameteriv(target, level, pname, params);
+}
+
+void gl3_0_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameterfv(target, level, pname, params);
+}
+
+void gl3_0_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetTexParameteriv(target, pname, params);
+}
+
+void gl3_0_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetTexParameterfv(target, pname, params);
+}
+
+void gl3_0_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetTexImage(target, level, format, gltype, pixels);
+}
+
+void gl3_0_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetIntegerv(pname, params);
+}
+
+void gl3_0_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetFloatv(pname, params);
+}
+
+GLenum gl3_0_glGetError(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glGetError();
+}
+
+void gl3_0_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetDoublev(pname, params);
+}
+
+void gl3_0_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetBooleanv(pname, params);
+}
+
+void gl3_0_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glReadPixels(x, y, width, height, format, gltype, pixels);
+}
+
+void gl3_0_glReadBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glReadBuffer(mode);
+}
+
+void gl3_0_glPixelStorei(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPixelStorei(pname, param);
+}
+
+void gl3_0_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPixelStoref(pname, param);
+}
+
+void gl3_0_glDepthFunc(void *_glfuncs, GLenum glfunc)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDepthFunc(glfunc);
+}
+
+void gl3_0_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glStencilOp(fail, zfail, zpass);
+}
+
+void gl3_0_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glStencilFunc(glfunc, ref, mask);
+}
+
+void gl3_0_glLogicOp(void *_glfuncs, GLenum opcode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLogicOp(opcode);
+}
+
+void gl3_0_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBlendFunc(sfactor, dfactor);
+}
+
+void gl3_0_glFlush(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFlush();
+}
+
+void gl3_0_glFinish(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFinish();
+}
+
+void gl3_0_glEnable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEnable(cap);
+}
+
+void gl3_0_glDisable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDisable(cap);
+}
+
+void gl3_0_glDepthMask(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDepthMask(flag);
+}
+
+void gl3_0_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColorMask(red, green, blue, alpha);
+}
+
+void gl3_0_glStencilMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glStencilMask(mask);
+}
+
+void gl3_0_glClearDepth(void *_glfuncs, GLdouble depth)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glClearDepth(depth);
+}
+
+void gl3_0_glClearStencil(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glClearStencil(s);
+}
+
+void gl3_0_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glClearColor(red, green, blue, alpha);
+}
+
+void gl3_0_glClear(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glClear(mask);
+}
+
+void gl3_0_glDrawBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDrawBuffer(mode);
+}
+
+void gl3_0_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexImage2D(target, level, internalFormat, width, height, border, format, gltype, pixels);
+}
+
+void gl3_0_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexImage1D(target, level, internalFormat, width, border, format, gltype, pixels);
+}
+
+void gl3_0_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexParameteriv(target, pname, params);
+}
+
+void gl3_0_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexParameteri(target, pname, param);
+}
+
+void gl3_0_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexParameterfv(target, pname, params);
+}
+
+void gl3_0_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexParameterf(target, pname, param);
+}
+
+void gl3_0_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glScissor(x, y, width, height);
+}
+
+void gl3_0_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPolygonMode(face, mode);
+}
+
+void gl3_0_glPointSize(void *_glfuncs, GLfloat size)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPointSize(size);
+}
+
+void gl3_0_glLineWidth(void *_glfuncs, GLfloat width)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLineWidth(width);
+}
+
+void gl3_0_glHint(void *_glfuncs, GLenum target, GLenum mode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glHint(target, mode);
+}
+
+void gl3_0_glFrontFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFrontFace(mode);
+}
+
+void gl3_0_glCullFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCullFace(mode);
+}
+
+void gl3_0_glIndexubv(void *_glfuncs, const GLubyte* c)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glIndexubv(c);
+}
+
+void gl3_0_glIndexub(void *_glfuncs, GLubyte c)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glIndexub(c);
+}
+
+GLboolean gl3_0_glIsTexture(void *_glfuncs, GLuint texture)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glIsTexture(texture);
+}
+
+void gl3_0_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGenTextures(n, textures);
+}
+
+void gl3_0_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDeleteTextures(n, textures);
+}
+
+void gl3_0_glBindTexture(void *_glfuncs, GLenum target, GLuint texture)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBindTexture(target, texture);
+}
+
+void gl3_0_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, gltype, pixels);
+}
+
+void gl3_0_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexSubImage1D(target, level, xoffset, width, format, gltype, pixels);
+}
+
+void gl3_0_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
+}
+
+void gl3_0_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage1D(target, level, xoffset, x, y, width);
+}
+
+void gl3_0_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
+}
+
+void gl3_0_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCopyTexImage1D(target, level, internalFormat, x, y, width, border);
+}
+
+void gl3_0_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPolygonOffset(factor, units);
+}
+
+void gl3_0_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDrawElements(mode, count, gltype, indices);
+}
+
+void gl3_0_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDrawArrays(mode, first, count);
+}
+
+void gl3_0_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
+}
+
+void gl3_0_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, gltype, pixels);
+}
+
+void gl3_0_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexImage3D(target, level, internalFormat, width, height, depth, border, format, gltype, pixels);
+}
+
+void gl3_0_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDrawRangeElements(mode, start, end, count, gltype, indices);
+}
+
+void gl3_0_glBlendEquation(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBlendEquation(mode);
+}
+
+void gl3_0_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBlendColor(red, green, blue, alpha);
+}
+
+void gl3_0_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetCompressedTexImage(target, level, img);
+}
+
+void gl3_0_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data);
+}
+
+void gl3_0_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
+}
+
+void gl3_0_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
+}
+
+void gl3_0_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage1D(target, level, internalFormat, width, border, imageSize, data);
+}
+
+void gl3_0_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data);
+}
+
+void gl3_0_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage3D(target, level, internalFormat, width, height, depth, border, imageSize, data);
+}
+
+void gl3_0_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSampleCoverage(value, invert);
+}
+
+void gl3_0_glActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glActiveTexture(texture);
+}
+
+void gl3_0_glPointParameteriv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPointParameteriv(pname, params);
+}
+
+void gl3_0_glPointParameteri(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPointParameteri(pname, param);
+}
+
+void gl3_0_glPointParameterfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPointParameterfv(pname, params);
+}
+
+void gl3_0_glPointParameterf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPointParameterf(pname, param);
+}
+
+void gl3_0_glMultiDrawArrays(void *_glfuncs, GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiDrawArrays(mode, first, count, drawcount);
+}
+
+void gl3_0_glBlendFuncSeparate(void *_glfuncs, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
+}
+
+void gl3_0_glGetBufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetBufferParameteriv(target, pname, params);
+}
+
+GLboolean gl3_0_glUnmapBuffer(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glUnmapBuffer(target);
+}
+
+void gl3_0_glGetBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetBufferSubData(target, offset, size, data);
+}
+
+void gl3_0_glBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBufferSubData(target, offset, size, data);
+}
+
+void gl3_0_glBufferData(void *_glfuncs, GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBufferData(target, size, data, usage);
+}
+
+GLboolean gl3_0_glIsBuffer(void *_glfuncs, GLuint buffer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glIsBuffer(buffer);
+}
+
+void gl3_0_glGenBuffers(void *_glfuncs, GLsizei n, GLuint* buffers)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGenBuffers(n, buffers);
+}
+
+void gl3_0_glDeleteBuffers(void *_glfuncs, GLsizei n, const GLuint* buffers)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDeleteBuffers(n, buffers);
+}
+
+void gl3_0_glBindBuffer(void *_glfuncs, GLenum target, GLuint buffer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBindBuffer(target, buffer);
+}
+
+void gl3_0_glGetQueryObjectuiv(void *_glfuncs, GLuint id, GLenum pname, GLuint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetQueryObjectuiv(id, pname, params);
+}
+
+void gl3_0_glGetQueryObjectiv(void *_glfuncs, GLuint id, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetQueryObjectiv(id, pname, params);
+}
+
+void gl3_0_glGetQueryiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetQueryiv(target, pname, params);
+}
+
+void gl3_0_glEndQuery(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEndQuery(target);
+}
+
+void gl3_0_glBeginQuery(void *_glfuncs, GLenum target, GLuint id)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBeginQuery(target, id);
+}
+
+GLboolean gl3_0_glIsQuery(void *_glfuncs, GLuint id)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glIsQuery(id);
+}
+
+void gl3_0_glDeleteQueries(void *_glfuncs, GLsizei n, const GLuint* ids)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDeleteQueries(n, ids);
+}
+
+void gl3_0_glGenQueries(void *_glfuncs, GLsizei n, GLuint* ids)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGenQueries(n, ids);
+}
+
+void gl3_0_glVertexAttribPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLboolean normalized, GLsizei stride, const GLvoid* offset)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribPointer(index, size, gltype, normalized, stride, offset);
+}
+
+void gl3_0_glValidateProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glValidateProgram(program);
+}
+
+void gl3_0_glUniformMatrix4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniformMatrix4fv(location, count, transpose, value);
+}
+
+void gl3_0_glUniformMatrix3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniformMatrix3fv(location, count, transpose, value);
+}
+
+void gl3_0_glUniformMatrix2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniformMatrix2fv(location, count, transpose, value);
+}
+
+void gl3_0_glUniform4iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform4iv(location, count, value);
+}
+
+void gl3_0_glUniform3iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform3iv(location, count, value);
+}
+
+void gl3_0_glUniform2iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform2iv(location, count, value);
+}
+
+void gl3_0_glUniform1iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform1iv(location, count, value);
+}
+
+void gl3_0_glUniform4fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform4fv(location, count, value);
+}
+
+void gl3_0_glUniform3fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform3fv(location, count, value);
+}
+
+void gl3_0_glUniform2fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform2fv(location, count, value);
+}
+
+void gl3_0_glUniform1fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform1fv(location, count, value);
+}
+
+void gl3_0_glUniform4i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform4i(location, v0, v1, v2, v3);
+}
+
+void gl3_0_glUniform3i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform3i(location, v0, v1, v2);
+}
+
+void gl3_0_glUniform2i(void *_glfuncs, GLint location, GLint v0, GLint v1)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform2i(location, v0, v1);
+}
+
+void gl3_0_glUniform1i(void *_glfuncs, GLint location, GLint v0)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform1i(location, v0);
+}
+
+void gl3_0_glUniform4f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform4f(location, v0, v1, v2, v3);
+}
+
+void gl3_0_glUniform3f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform3f(location, v0, v1, v2);
+}
+
+void gl3_0_glUniform2f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform2f(location, v0, v1);
+}
+
+void gl3_0_glUniform1f(void *_glfuncs, GLint location, GLfloat v0)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform1f(location, v0);
+}
+
+void gl3_0_glUseProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUseProgram(program);
+}
+
+void gl3_0_glShaderSource(void *_glfuncs, GLuint shader, GLsizei count, const GLchar** source, const GLint* length)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glShaderSource(shader, count, source, length);
+}
+
+void gl3_0_glLinkProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLinkProgram(program);
+}
+
+GLboolean gl3_0_glIsShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glIsShader(shader);
+}
+
+GLboolean gl3_0_glIsProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glIsProgram(program);
+}
+
+void gl3_0_glGetVertexAttribiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribiv(index, pname, params);
+}
+
+void gl3_0_glGetVertexAttribfv(void *_glfuncs, GLuint index, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribfv(index, pname, params);
+}
+
+void gl3_0_glGetVertexAttribdv(void *_glfuncs, GLuint index, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribdv(index, pname, params);
+}
+
+void gl3_0_glGetUniformiv(void *_glfuncs, GLuint program, GLint location, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetUniformiv(program, location, params);
+}
+
+void gl3_0_glGetUniformfv(void *_glfuncs, GLuint program, GLint location, GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetUniformfv(program, location, params);
+}
+
+GLint gl3_0_glGetUniformLocation(void *_glfuncs, GLuint program, const GLchar* name)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glGetUniformLocation(program, name);
+}
+
+void gl3_0_glGetShaderSource(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* source)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetShaderSource(shader, bufSize, length, source);
+}
+
+void gl3_0_glGetShaderInfoLog(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetShaderInfoLog(shader, bufSize, length, infoLog);
+}
+
+void gl3_0_glGetShaderiv(void *_glfuncs, GLuint shader, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetShaderiv(shader, pname, params);
+}
+
+void gl3_0_glGetProgramInfoLog(void *_glfuncs, GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetProgramInfoLog(program, bufSize, length, infoLog);
+}
+
+void gl3_0_glGetProgramiv(void *_glfuncs, GLuint program, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetProgramiv(program, pname, params);
+}
+
+GLint gl3_0_glGetAttribLocation(void *_glfuncs, GLuint program, const GLchar* name)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glGetAttribLocation(program, name);
+}
+
+void gl3_0_glGetAttachedShaders(void *_glfuncs, GLuint program, GLsizei maxCount, GLsizei* count, GLuint* obj)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetAttachedShaders(program, maxCount, count, obj);
+}
+
+void gl3_0_glGetActiveUniform(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetActiveUniform(program, index, bufSize, length, size, gltype, name);
+}
+
+void gl3_0_glGetActiveAttrib(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetActiveAttrib(program, index, bufSize, length, size, gltype, name);
+}
+
+void gl3_0_glEnableVertexAttribArray(void *_glfuncs, GLuint index)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEnableVertexAttribArray(index);
+}
+
+void gl3_0_glDisableVertexAttribArray(void *_glfuncs, GLuint index)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDisableVertexAttribArray(index);
+}
+
+void gl3_0_glDetachShader(void *_glfuncs, GLuint program, GLuint shader)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDetachShader(program, shader);
+}
+
+void gl3_0_glDeleteShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDeleteShader(shader);
+}
+
+void gl3_0_glDeleteProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDeleteProgram(program);
+}
+
+GLuint gl3_0_glCreateShader(void *_glfuncs, GLenum gltype)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glCreateShader(gltype);
+}
+
+GLuint gl3_0_glCreateProgram(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glCreateProgram();
+}
+
+void gl3_0_glCompileShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCompileShader(shader);
+}
+
+void gl3_0_glBindAttribLocation(void *_glfuncs, GLuint program, GLuint index, const GLchar* name)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBindAttribLocation(program, index, name);
+}
+
+void gl3_0_glAttachShader(void *_glfuncs, GLuint program, GLuint shader)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glAttachShader(program, shader);
+}
+
+void gl3_0_glStencilMaskSeparate(void *_glfuncs, GLenum face, GLuint mask)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glStencilMaskSeparate(face, mask);
+}
+
+void gl3_0_glStencilFuncSeparate(void *_glfuncs, GLenum face, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glStencilFuncSeparate(face, glfunc, ref, mask);
+}
+
+void gl3_0_glStencilOpSeparate(void *_glfuncs, GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glStencilOpSeparate(face, sfail, dpfail, dppass);
+}
+
+void gl3_0_glDrawBuffers(void *_glfuncs, GLsizei n, const GLenum* bufs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDrawBuffers(n, bufs);
+}
+
+void gl3_0_glBlendEquationSeparate(void *_glfuncs, GLenum modeRGB, GLenum modeAlpha)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBlendEquationSeparate(modeRGB, modeAlpha);
+}
+
+void gl3_0_glUniformMatrix4x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniformMatrix4x3fv(location, count, transpose, value);
+}
+
+void gl3_0_glUniformMatrix3x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniformMatrix3x4fv(location, count, transpose, value);
+}
+
+void gl3_0_glUniformMatrix4x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniformMatrix4x2fv(location, count, transpose, value);
+}
+
+void gl3_0_glUniformMatrix2x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniformMatrix2x4fv(location, count, transpose, value);
+}
+
+void gl3_0_glUniformMatrix3x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniformMatrix3x2fv(location, count, transpose, value);
+}
+
+void gl3_0_glUniformMatrix2x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniformMatrix2x3fv(location, count, transpose, value);
+}
+
+GLboolean gl3_0_glIsVertexArray(void *_glfuncs, GLuint array)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glIsVertexArray(array);
+}
+
+void gl3_0_glGenVertexArrays(void *_glfuncs, GLsizei n, GLuint* arrays)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGenVertexArrays(n, arrays);
+}
+
+void gl3_0_glDeleteVertexArrays(void *_glfuncs, GLsizei n, const GLuint* arrays)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDeleteVertexArrays(n, arrays);
+}
+
+void gl3_0_glBindVertexArray(void *_glfuncs, GLuint array)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBindVertexArray(array);
+}
+
+void gl3_0_glFlushMappedBufferRange(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr length)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFlushMappedBufferRange(target, offset, length);
+}
+
+void gl3_0_glFramebufferTextureLayer(void *_glfuncs, GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFramebufferTextureLayer(target, attachment, texture, level, layer);
+}
+
+void gl3_0_glRenderbufferStorageMultisample(void *_glfuncs, GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRenderbufferStorageMultisample(target, samples, internalFormat, width, height);
+}
+
+void gl3_0_glBlitFramebuffer(void *_glfuncs, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
+}
+
+void gl3_0_glGenerateMipmap(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGenerateMipmap(target);
+}
+
+void gl3_0_glGetFramebufferAttachmentParameteriv(void *_glfuncs, GLenum target, GLenum attachment, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetFramebufferAttachmentParameteriv(target, attachment, pname, params);
+}
+
+void gl3_0_glFramebufferRenderbuffer(void *_glfuncs, GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
+}
+
+void gl3_0_glFramebufferTexture3D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFramebufferTexture3D(target, attachment, textarget, texture, level, zoffset);
+}
+
+void gl3_0_glFramebufferTexture2D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFramebufferTexture2D(target, attachment, textarget, texture, level);
+}
+
+void gl3_0_glFramebufferTexture1D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFramebufferTexture1D(target, attachment, textarget, texture, level);
+}
+
+GLenum gl3_0_glCheckFramebufferStatus(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glCheckFramebufferStatus(target);
+}
+
+void gl3_0_glGenFramebuffers(void *_glfuncs, GLsizei n, GLuint* framebuffers)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGenFramebuffers(n, framebuffers);
+}
+
+void gl3_0_glDeleteFramebuffers(void *_glfuncs, GLsizei n, const GLuint* framebuffers)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDeleteFramebuffers(n, framebuffers);
+}
+
+void gl3_0_glBindFramebuffer(void *_glfuncs, GLenum target, GLuint framebuffer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBindFramebuffer(target, framebuffer);
+}
+
+GLboolean gl3_0_glIsFramebuffer(void *_glfuncs, GLuint framebuffer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glIsFramebuffer(framebuffer);
+}
+
+void gl3_0_glGetRenderbufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetRenderbufferParameteriv(target, pname, params);
+}
+
+void gl3_0_glRenderbufferStorage(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRenderbufferStorage(target, internalFormat, width, height);
+}
+
+void gl3_0_glGenRenderbuffers(void *_glfuncs, GLsizei n, GLuint* renderbuffers)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGenRenderbuffers(n, renderbuffers);
+}
+
+void gl3_0_glDeleteRenderbuffers(void *_glfuncs, GLsizei n, const GLuint* renderbuffers)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDeleteRenderbuffers(n, renderbuffers);
+}
+
+void gl3_0_glBindRenderbuffer(void *_glfuncs, GLenum target, GLuint renderbuffer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBindRenderbuffer(target, renderbuffer);
+}
+
+GLboolean gl3_0_glIsRenderbuffer(void *_glfuncs, GLuint renderbuffer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glIsRenderbuffer(renderbuffer);
+}
+
+void gl3_0_glClearBufferfi(void *_glfuncs, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glClearBufferfi(buffer, drawbuffer, depth, stencil);
+}
+
+void gl3_0_glClearBufferfv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLfloat* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glClearBufferfv(buffer, drawbuffer, value);
+}
+
+void gl3_0_glClearBufferuiv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLuint* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glClearBufferuiv(buffer, drawbuffer, value);
+}
+
+void gl3_0_glClearBufferiv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLint* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glClearBufferiv(buffer, drawbuffer, value);
+}
+
+void gl3_0_glGetTexParameterIuiv(void *_glfuncs, GLenum target, GLenum pname, GLuint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetTexParameterIuiv(target, pname, params);
+}
+
+void gl3_0_glGetTexParameterIiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetTexParameterIiv(target, pname, params);
+}
+
+void gl3_0_glTexParameterIuiv(void *_glfuncs, GLenum target, GLenum pname, const GLuint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexParameterIuiv(target, pname, params);
+}
+
+void gl3_0_glTexParameterIiv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexParameterIiv(target, pname, params);
+}
+
+void gl3_0_glUniform4uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform4uiv(location, count, value);
+}
+
+void gl3_0_glUniform3uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform3uiv(location, count, value);
+}
+
+void gl3_0_glUniform2uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform2uiv(location, count, value);
+}
+
+void gl3_0_glUniform1uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform1uiv(location, count, value);
+}
+
+void gl3_0_glUniform4ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform4ui(location, v0, v1, v2, v3);
+}
+
+void gl3_0_glUniform3ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1, GLuint v2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform3ui(location, v0, v1, v2);
+}
+
+void gl3_0_glUniform2ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform2ui(location, v0, v1);
+}
+
+void gl3_0_glUniform1ui(void *_glfuncs, GLint location, GLuint v0)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glUniform1ui(location, v0);
+}
+
+GLint gl3_0_glGetFragDataLocation(void *_glfuncs, GLuint program, const GLchar* name)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glGetFragDataLocation(program, name);
+}
+
+void gl3_0_glBindFragDataLocation(void *_glfuncs, GLuint program, GLuint color, const GLchar* name)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBindFragDataLocation(program, color, name);
+}
+
+void gl3_0_glGetUniformuiv(void *_glfuncs, GLuint program, GLint location, GLuint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetUniformuiv(program, location, params);
+}
+
+void gl3_0_glGetVertexAttribIuiv(void *_glfuncs, GLuint index, GLenum pname, GLuint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribIuiv(index, pname, params);
+}
+
+void gl3_0_glGetVertexAttribIiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribIiv(index, pname, params);
+}
+
+void gl3_0_glVertexAttribIPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribIPointer(index, size, gltype, stride, pointer);
+}
+
+void gl3_0_glEndConditionalRender(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEndConditionalRender();
+}
+
+void gl3_0_glBeginConditionalRender(void *_glfuncs, GLuint id, GLenum mode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBeginConditionalRender(id, mode);
+}
+
+void gl3_0_glClampColor(void *_glfuncs, GLenum target, GLenum clamp)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glClampColor(target, clamp);
+}
+
+void gl3_0_glGetTransformFeedbackVarying(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* gltype, GLchar* name)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetTransformFeedbackVarying(program, index, bufSize, length, size, gltype, name);
+}
+
+void gl3_0_glBindBufferBase(void *_glfuncs, GLenum target, GLuint index, GLuint buffer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBindBufferBase(target, index, buffer);
+}
+
+void gl3_0_glBindBufferRange(void *_glfuncs, GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBindBufferRange(target, index, buffer, offset, size);
+}
+
+void gl3_0_glEndTransformFeedback(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEndTransformFeedback();
+}
+
+void gl3_0_glBeginTransformFeedback(void *_glfuncs, GLenum primitiveMode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBeginTransformFeedback(primitiveMode);
+}
+
+GLboolean gl3_0_glIsEnabledi(void *_glfuncs, GLenum target, GLuint index)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glIsEnabledi(target, index);
+}
+
+void gl3_0_glDisablei(void *_glfuncs, GLenum target, GLuint index)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDisablei(target, index);
+}
+
+void gl3_0_glEnablei(void *_glfuncs, GLenum target, GLuint index)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEnablei(target, index);
+}
+
+void gl3_0_glGetIntegeri_v(void *_glfuncs, GLenum target, GLuint index, GLint* data)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetIntegeri_v(target, index, data);
+}
+
+void gl3_0_glGetBooleani_v(void *_glfuncs, GLenum target, GLuint index, GLboolean* data)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetBooleani_v(target, index, data);
+}
+
+void gl3_0_glColorMaski(void *_glfuncs, GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColorMaski(index, r, g, b, a);
+}
+
+void gl3_0_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTranslatef(x, y, z);
+}
+
+void gl3_0_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTranslated(x, y, z);
+}
+
+void gl3_0_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glScalef(x, y, z);
+}
+
+void gl3_0_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glScaled(x, y, z);
+}
+
+void gl3_0_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRotatef(angle, x, y, z);
+}
+
+void gl3_0_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRotated(angle, x, y, z);
+}
+
+void gl3_0_glPushMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPushMatrix();
+}
+
+void gl3_0_glPopMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPopMatrix();
+}
+
+void gl3_0_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glOrtho(left, right, bottom, top, zNear, zFar);
+}
+
+void gl3_0_glMultMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultMatrixd(m);
+}
+
+void gl3_0_glMultMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultMatrixf(m);
+}
+
+void gl3_0_glMatrixMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMatrixMode(mode);
+}
+
+void gl3_0_glLoadMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLoadMatrixd(m);
+}
+
+void gl3_0_glLoadMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLoadMatrixf(m);
+}
+
+void gl3_0_glLoadIdentity(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLoadIdentity();
+}
+
+void gl3_0_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFrustum(left, right, bottom, top, zNear, zFar);
+}
+
+GLboolean gl3_0_glIsList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glIsList(list);
+}
+
+void gl3_0_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetTexGeniv(coord, pname, params);
+}
+
+void gl3_0_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetTexGenfv(coord, pname, params);
+}
+
+void gl3_0_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetTexGendv(coord, pname, params);
+}
+
+void gl3_0_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetTexEnviv(target, pname, params);
+}
+
+void gl3_0_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetTexEnvfv(target, pname, params);
+}
+
+void gl3_0_glGetPolygonStipple(void *_glfuncs, GLubyte* mask)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetPolygonStipple(mask);
+}
+
+void gl3_0_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetPixelMapusv(glmap, values);
+}
+
+void gl3_0_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetPixelMapuiv(glmap, values);
+}
+
+void gl3_0_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetPixelMapfv(glmap, values);
+}
+
+void gl3_0_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetMaterialiv(face, pname, params);
+}
+
+void gl3_0_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetMaterialfv(face, pname, params);
+}
+
+void gl3_0_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetMapiv(target, query, v);
+}
+
+void gl3_0_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetMapfv(target, query, v);
+}
+
+void gl3_0_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetMapdv(target, query, v);
+}
+
+void gl3_0_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetLightiv(light, pname, params);
+}
+
+void gl3_0_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetLightfv(light, pname, params);
+}
+
+void gl3_0_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetClipPlane(plane, equation);
+}
+
+void gl3_0_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDrawPixels(width, height, format, gltype, pixels);
+}
+
+void gl3_0_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCopyPixels(x, y, width, height, gltype);
+}
+
+void gl3_0_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPixelMapusv(glmap, mapsize, values);
+}
+
+void gl3_0_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPixelMapuiv(glmap, mapsize, values);
+}
+
+void gl3_0_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPixelMapfv(glmap, mapsize, values);
+}
+
+void gl3_0_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPixelTransferi(pname, param);
+}
+
+void gl3_0_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPixelTransferf(pname, param);
+}
+
+void gl3_0_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPixelZoom(xfactor, yfactor);
+}
+
+void gl3_0_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glAlphaFunc(glfunc, ref);
+}
+
+void gl3_0_glEvalPoint2(void *_glfuncs, GLint i, GLint j)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEvalPoint2(i, j);
+}
+
+void gl3_0_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEvalMesh2(mode, i1, i2, j1, j2);
+}
+
+void gl3_0_glEvalPoint1(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEvalPoint1(i);
+}
+
+void gl3_0_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEvalMesh1(mode, i1, i2);
+}
+
+void gl3_0_glEvalCoord2fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord2fv(u);
+}
+
+void gl3_0_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord2f(u, v);
+}
+
+void gl3_0_glEvalCoord2dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord2dv(u);
+}
+
+void gl3_0_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord2d(u, v);
+}
+
+void gl3_0_glEvalCoord1fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord1fv(u);
+}
+
+void gl3_0_glEvalCoord1f(void *_glfuncs, GLfloat u)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord1f(u);
+}
+
+void gl3_0_glEvalCoord1dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord1dv(u);
+}
+
+void gl3_0_glEvalCoord1d(void *_glfuncs, GLdouble u)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEvalCoord1d(u);
+}
+
+void gl3_0_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMapGrid2f(un, u1, u2, vn, v1, v2);
+}
+
+void gl3_0_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMapGrid2d(un, u1, u2, vn, v1, v2);
+}
+
+void gl3_0_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMapGrid1f(un, u1, u2);
+}
+
+void gl3_0_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMapGrid1d(un, u1, u2);
+}
+
+void gl3_0_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl3_0_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl3_0_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMap1f(target, u1, u2, stride, order, points);
+}
+
+void gl3_0_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMap1d(target, u1, u2, stride, order, points);
+}
+
+void gl3_0_glPushAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPushAttrib(mask);
+}
+
+void gl3_0_glPopAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPopAttrib();
+}
+
+void gl3_0_glAccum(void *_glfuncs, GLenum op, GLfloat value)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glAccum(op, value);
+}
+
+void gl3_0_glIndexMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glIndexMask(mask);
+}
+
+void gl3_0_glClearIndex(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glClearIndex(c);
+}
+
+void gl3_0_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glClearAccum(red, green, blue, alpha);
+}
+
+void gl3_0_glPushName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPushName(name);
+}
+
+void gl3_0_glPopName(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPopName();
+}
+
+void gl3_0_glPassThrough(void *_glfuncs, GLfloat token)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPassThrough(token);
+}
+
+void gl3_0_glLoadName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLoadName(name);
+}
+
+void gl3_0_glInitNames(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glInitNames();
+}
+
+GLint gl3_0_glRenderMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glRenderMode(mode);
+}
+
+void gl3_0_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSelectBuffer(size, buffer);
+}
+
+void gl3_0_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFeedbackBuffer(size, gltype, buffer);
+}
+
+void gl3_0_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexGeniv(coord, pname, params);
+}
+
+void gl3_0_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexGeni(coord, pname, param);
+}
+
+void gl3_0_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexGenfv(coord, pname, params);
+}
+
+void gl3_0_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexGenf(coord, pname, param);
+}
+
+void gl3_0_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexGendv(coord, pname, params);
+}
+
+void gl3_0_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexGend(coord, pname, param);
+}
+
+void gl3_0_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexEnviv(target, pname, params);
+}
+
+void gl3_0_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexEnvi(target, pname, param);
+}
+
+void gl3_0_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexEnvfv(target, pname, params);
+}
+
+void gl3_0_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexEnvf(target, pname, param);
+}
+
+void gl3_0_glShadeModel(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glShadeModel(mode);
+}
+
+void gl3_0_glPolygonStipple(void *_glfuncs, const GLubyte* mask)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPolygonStipple(mask);
+}
+
+void gl3_0_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMaterialiv(face, pname, params);
+}
+
+void gl3_0_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMateriali(face, pname, param);
+}
+
+void gl3_0_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMaterialfv(face, pname, params);
+}
+
+void gl3_0_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMaterialf(face, pname, param);
+}
+
+void gl3_0_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLineStipple(factor, pattern);
+}
+
+void gl3_0_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLightModeliv(pname, params);
+}
+
+void gl3_0_glLightModeli(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLightModeli(pname, param);
+}
+
+void gl3_0_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLightModelfv(pname, params);
+}
+
+void gl3_0_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLightModelf(pname, param);
+}
+
+void gl3_0_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLightiv(light, pname, params);
+}
+
+void gl3_0_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLighti(light, pname, param);
+}
+
+void gl3_0_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLightfv(light, pname, params);
+}
+
+void gl3_0_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLightf(light, pname, param);
+}
+
+void gl3_0_glFogiv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFogiv(pname, params);
+}
+
+void gl3_0_glFogi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFogi(pname, param);
+}
+
+void gl3_0_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFogfv(pname, params);
+}
+
+void gl3_0_glFogf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFogf(pname, param);
+}
+
+void gl3_0_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColorMaterial(face, mode);
+}
+
+void gl3_0_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glClipPlane(plane, equation);
+}
+
+void gl3_0_glVertex4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex4sv(v);
+}
+
+void gl3_0_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex4s(x, y, z, w);
+}
+
+void gl3_0_glVertex4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex4iv(v);
+}
+
+void gl3_0_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex4i(x, y, z, w);
+}
+
+void gl3_0_glVertex4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex4fv(v);
+}
+
+void gl3_0_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex4f(x, y, z, w);
+}
+
+void gl3_0_glVertex4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex4dv(v);
+}
+
+void gl3_0_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex4d(x, y, z, w);
+}
+
+void gl3_0_glVertex3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex3sv(v);
+}
+
+void gl3_0_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex3s(x, y, z);
+}
+
+void gl3_0_glVertex3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex3iv(v);
+}
+
+void gl3_0_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex3i(x, y, z);
+}
+
+void gl3_0_glVertex3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex3fv(v);
+}
+
+void gl3_0_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex3f(x, y, z);
+}
+
+void gl3_0_glVertex3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex3dv(v);
+}
+
+void gl3_0_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex3d(x, y, z);
+}
+
+void gl3_0_glVertex2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex2sv(v);
+}
+
+void gl3_0_glVertex2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex2s(x, y);
+}
+
+void gl3_0_glVertex2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex2iv(v);
+}
+
+void gl3_0_glVertex2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex2i(x, y);
+}
+
+void gl3_0_glVertex2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex2fv(v);
+}
+
+void gl3_0_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex2f(x, y);
+}
+
+void gl3_0_glVertex2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex2dv(v);
+}
+
+void gl3_0_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertex2d(x, y);
+}
+
+void gl3_0_glTexCoord4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4sv(v);
+}
+
+void gl3_0_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4s(s, t, r, q);
+}
+
+void gl3_0_glTexCoord4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4iv(v);
+}
+
+void gl3_0_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4i(s, t, r, q);
+}
+
+void gl3_0_glTexCoord4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4fv(v);
+}
+
+void gl3_0_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4f(s, t, r, q);
+}
+
+void gl3_0_glTexCoord4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4dv(v);
+}
+
+void gl3_0_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord4d(s, t, r, q);
+}
+
+void gl3_0_glTexCoord3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3sv(v);
+}
+
+void gl3_0_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3s(s, t, r);
+}
+
+void gl3_0_glTexCoord3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3iv(v);
+}
+
+void gl3_0_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3i(s, t, r);
+}
+
+void gl3_0_glTexCoord3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3fv(v);
+}
+
+void gl3_0_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3f(s, t, r);
+}
+
+void gl3_0_glTexCoord3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3dv(v);
+}
+
+void gl3_0_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord3d(s, t, r);
+}
+
+void gl3_0_glTexCoord2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2sv(v);
+}
+
+void gl3_0_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2s(s, t);
+}
+
+void gl3_0_glTexCoord2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2iv(v);
+}
+
+void gl3_0_glTexCoord2i(void *_glfuncs, GLint s, GLint t)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2i(s, t);
+}
+
+void gl3_0_glTexCoord2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2fv(v);
+}
+
+void gl3_0_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2f(s, t);
+}
+
+void gl3_0_glTexCoord2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2dv(v);
+}
+
+void gl3_0_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord2d(s, t);
+}
+
+void gl3_0_glTexCoord1sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1sv(v);
+}
+
+void gl3_0_glTexCoord1s(void *_glfuncs, GLshort s)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1s(s);
+}
+
+void gl3_0_glTexCoord1iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1iv(v);
+}
+
+void gl3_0_glTexCoord1i(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1i(s);
+}
+
+void gl3_0_glTexCoord1fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1fv(v);
+}
+
+void gl3_0_glTexCoord1f(void *_glfuncs, GLfloat s)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1f(s);
+}
+
+void gl3_0_glTexCoord1dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1dv(v);
+}
+
+void gl3_0_glTexCoord1d(void *_glfuncs, GLdouble s)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoord1d(s);
+}
+
+void gl3_0_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRectsv(v1, v2);
+}
+
+void gl3_0_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRects(x1, y1, x2, y2);
+}
+
+void gl3_0_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRectiv(v1, v2);
+}
+
+void gl3_0_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRecti(x1, y1, x2, y2);
+}
+
+void gl3_0_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRectfv(v1, v2);
+}
+
+void gl3_0_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRectf(x1, y1, x2, y2);
+}
+
+void gl3_0_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRectdv(v1, v2);
+}
+
+void gl3_0_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRectd(x1, y1, x2, y2);
+}
+
+void gl3_0_glRasterPos4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4sv(v);
+}
+
+void gl3_0_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4s(x, y, z, w);
+}
+
+void gl3_0_glRasterPos4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4iv(v);
+}
+
+void gl3_0_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4i(x, y, z, w);
+}
+
+void gl3_0_glRasterPos4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4fv(v);
+}
+
+void gl3_0_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4f(x, y, z, w);
+}
+
+void gl3_0_glRasterPos4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4dv(v);
+}
+
+void gl3_0_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos4d(x, y, z, w);
+}
+
+void gl3_0_glRasterPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3sv(v);
+}
+
+void gl3_0_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3s(x, y, z);
+}
+
+void gl3_0_glRasterPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3iv(v);
+}
+
+void gl3_0_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3i(x, y, z);
+}
+
+void gl3_0_glRasterPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3fv(v);
+}
+
+void gl3_0_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3f(x, y, z);
+}
+
+void gl3_0_glRasterPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3dv(v);
+}
+
+void gl3_0_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos3d(x, y, z);
+}
+
+void gl3_0_glRasterPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2sv(v);
+}
+
+void gl3_0_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2s(x, y);
+}
+
+void gl3_0_glRasterPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2iv(v);
+}
+
+void gl3_0_glRasterPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2i(x, y);
+}
+
+void gl3_0_glRasterPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2fv(v);
+}
+
+void gl3_0_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2f(x, y);
+}
+
+void gl3_0_glRasterPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2dv(v);
+}
+
+void gl3_0_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glRasterPos2d(x, y);
+}
+
+void gl3_0_glNormal3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glNormal3sv(v);
+}
+
+void gl3_0_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glNormal3s(nx, ny, nz);
+}
+
+void gl3_0_glNormal3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glNormal3iv(v);
+}
+
+void gl3_0_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glNormal3i(nx, ny, nz);
+}
+
+void gl3_0_glNormal3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glNormal3fv(v);
+}
+
+void gl3_0_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glNormal3f(nx, ny, nz);
+}
+
+void gl3_0_glNormal3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glNormal3dv(v);
+}
+
+void gl3_0_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glNormal3d(nx, ny, nz);
+}
+
+void gl3_0_glNormal3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glNormal3bv(v);
+}
+
+void gl3_0_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glNormal3b(nx, ny, nz);
+}
+
+void gl3_0_glIndexsv(void *_glfuncs, const GLshort* c)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glIndexsv(c);
+}
+
+void gl3_0_glIndexs(void *_glfuncs, GLshort c)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glIndexs(c);
+}
+
+void gl3_0_glIndexiv(void *_glfuncs, const GLint* c)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glIndexiv(c);
+}
+
+void gl3_0_glIndexi(void *_glfuncs, GLint c)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glIndexi(c);
+}
+
+void gl3_0_glIndexfv(void *_glfuncs, const GLfloat* c)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glIndexfv(c);
+}
+
+void gl3_0_glIndexf(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glIndexf(c);
+}
+
+void gl3_0_glIndexdv(void *_glfuncs, const GLdouble* c)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glIndexdv(c);
+}
+
+void gl3_0_glIndexd(void *_glfuncs, GLdouble c)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glIndexd(c);
+}
+
+void gl3_0_glEnd(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEnd();
+}
+
+void gl3_0_glEdgeFlagv(void *_glfuncs, const GLboolean* flag)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEdgeFlagv(flag);
+}
+
+void gl3_0_glEdgeFlag(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEdgeFlag(flag);
+}
+
+void gl3_0_glColor4usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4usv(v);
+}
+
+void gl3_0_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4us(red, green, blue, alpha);
+}
+
+void gl3_0_glColor4uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4uiv(v);
+}
+
+void gl3_0_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4ui(red, green, blue, alpha);
+}
+
+void gl3_0_glColor4ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4ubv(v);
+}
+
+void gl3_0_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4ub(red, green, blue, alpha);
+}
+
+void gl3_0_glColor4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4sv(v);
+}
+
+void gl3_0_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4s(red, green, blue, alpha);
+}
+
+void gl3_0_glColor4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4iv(v);
+}
+
+void gl3_0_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4i(red, green, blue, alpha);
+}
+
+void gl3_0_glColor4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4fv(v);
+}
+
+void gl3_0_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4f(red, green, blue, alpha);
+}
+
+void gl3_0_glColor4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4dv(v);
+}
+
+void gl3_0_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4d(red, green, blue, alpha);
+}
+
+void gl3_0_glColor4bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4bv(v);
+}
+
+void gl3_0_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor4b(red, green, blue, alpha);
+}
+
+void gl3_0_glColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3usv(v);
+}
+
+void gl3_0_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3us(red, green, blue);
+}
+
+void gl3_0_glColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3uiv(v);
+}
+
+void gl3_0_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3ui(red, green, blue);
+}
+
+void gl3_0_glColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3ubv(v);
+}
+
+void gl3_0_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3ub(red, green, blue);
+}
+
+void gl3_0_glColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3sv(v);
+}
+
+void gl3_0_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3s(red, green, blue);
+}
+
+void gl3_0_glColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3iv(v);
+}
+
+void gl3_0_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3i(red, green, blue);
+}
+
+void gl3_0_glColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3fv(v);
+}
+
+void gl3_0_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3f(red, green, blue);
+}
+
+void gl3_0_glColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3dv(v);
+}
+
+void gl3_0_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3d(red, green, blue);
+}
+
+void gl3_0_glColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3bv(v);
+}
+
+void gl3_0_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColor3b(red, green, blue);
+}
+
+void gl3_0_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
+}
+
+void gl3_0_glBegin(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glBegin(mode);
+}
+
+void gl3_0_glListBase(void *_glfuncs, GLuint base)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glListBase(base);
+}
+
+GLuint gl3_0_glGenLists(void *_glfuncs, GLsizei range_)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glGenLists(range_);
+}
+
+void gl3_0_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDeleteLists(list, range_);
+}
+
+void gl3_0_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCallLists(n, gltype, lists);
+}
+
+void gl3_0_glCallList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCallList(list);
+}
+
+void gl3_0_glEndList(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEndList();
+}
+
+void gl3_0_glNewList(void *_glfuncs, GLuint list, GLenum mode)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glNewList(list, mode);
+}
+
+void gl3_0_glPushClientAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPushClientAttrib(mask);
+}
+
+void gl3_0_glPopClientAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPopClientAttrib();
+}
+
+void gl3_0_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glPrioritizeTextures(n, textures, priorities);
+}
+
+GLboolean gl3_0_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ return _qglfuncs->glAreTexturesResident(n, textures, residences);
+}
+
+void gl3_0_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexPointer(size, gltype, stride, pointer);
+}
+
+void gl3_0_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glTexCoordPointer(size, gltype, stride, pointer);
+}
+
+void gl3_0_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glNormalPointer(gltype, stride, pointer);
+}
+
+void gl3_0_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glInterleavedArrays(format, stride, pointer);
+}
+
+void gl3_0_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glIndexPointer(gltype, stride, pointer);
+}
+
+void gl3_0_glEnableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEnableClientState(array);
+}
+
+void gl3_0_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glEdgeFlagPointer(stride, pointer);
+}
+
+void gl3_0_glDisableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glDisableClientState(array);
+}
+
+void gl3_0_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColorPointer(size, gltype, stride, pointer);
+}
+
+void gl3_0_glArrayElement(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glArrayElement(i);
+}
+
+void gl3_0_glResetMinmax(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glResetMinmax(target);
+}
+
+void gl3_0_glResetHistogram(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glResetHistogram(target);
+}
+
+void gl3_0_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMinmax(target, internalFormat, sink);
+}
+
+void gl3_0_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glHistogram(target, width, internalFormat, sink);
+}
+
+void gl3_0_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameteriv(target, pname, params);
+}
+
+void gl3_0_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameterfv(target, pname, params);
+}
+
+void gl3_0_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetMinmax(target, reset, format, gltype, values);
+}
+
+void gl3_0_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameteriv(target, pname, params);
+}
+
+void gl3_0_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameterfv(target, pname, params);
+}
+
+void gl3_0_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetHistogram(target, reset, format, gltype, values);
+}
+
+void gl3_0_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSeparableFilter2D(target, internalFormat, width, height, format, gltype, row, column);
+}
+
+void gl3_0_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetSeparableFilter(target, format, gltype, row, column, span);
+}
+
+void gl3_0_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameteriv(target, pname, params);
+}
+
+void gl3_0_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameterfv(target, pname, params);
+}
+
+void gl3_0_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetConvolutionFilter(target, format, gltype, image);
+}
+
+void gl3_0_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter2D(target, internalFormat, x, y, width, height);
+}
+
+void gl3_0_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter1D(target, internalFormat, x, y, width);
+}
+
+void gl3_0_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteriv(target, pname, params);
+}
+
+void gl3_0_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteri(target, pname, params);
+}
+
+void gl3_0_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterfv(target, pname, params);
+}
+
+void gl3_0_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterf(target, pname, params);
+}
+
+void gl3_0_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter2D(target, internalFormat, width, height, format, gltype, image);
+}
+
+void gl3_0_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter1D(target, internalFormat, width, format, gltype, image);
+}
+
+void gl3_0_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCopyColorSubTable(target, start, x, y, width);
+}
+
+void gl3_0_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColorSubTable(target, start, count, format, gltype, data);
+}
+
+void gl3_0_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameteriv(target, pname, params);
+}
+
+void gl3_0_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameterfv(target, pname, params);
+}
+
+void gl3_0_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glGetColorTable(target, format, gltype, table);
+}
+
+void gl3_0_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glCopyColorTable(target, internalFormat, x, y, width);
+}
+
+void gl3_0_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColorTableParameteriv(target, pname, params);
+}
+
+void gl3_0_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColorTableParameterfv(target, pname, params);
+}
+
+void gl3_0_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glColorTable(target, internalFormat, width, format, gltype, table);
+}
+
+void gl3_0_glMultTransposeMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultTransposeMatrixd(m);
+}
+
+void gl3_0_glMultTransposeMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultTransposeMatrixf(m);
+}
+
+void gl3_0_glLoadTransposeMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLoadTransposeMatrixd(m);
+}
+
+void gl3_0_glLoadTransposeMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glLoadTransposeMatrixf(m);
+}
+
+void gl3_0_glMultiTexCoord4sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4sv(target, v);
+}
+
+void gl3_0_glMultiTexCoord4s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4s(target, s, t, r, q);
+}
+
+void gl3_0_glMultiTexCoord4iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4iv(target, v);
+}
+
+void gl3_0_glMultiTexCoord4i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4i(target, s, t, r, q);
+}
+
+void gl3_0_glMultiTexCoord4fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4fv(target, v);
+}
+
+void gl3_0_glMultiTexCoord4f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4f(target, s, t, r, q);
+}
+
+void gl3_0_glMultiTexCoord4dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4dv(target, v);
+}
+
+void gl3_0_glMultiTexCoord4d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4d(target, s, t, r, q);
+}
+
+void gl3_0_glMultiTexCoord3sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3sv(target, v);
+}
+
+void gl3_0_glMultiTexCoord3s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3s(target, s, t, r);
+}
+
+void gl3_0_glMultiTexCoord3iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3iv(target, v);
+}
+
+void gl3_0_glMultiTexCoord3i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3i(target, s, t, r);
+}
+
+void gl3_0_glMultiTexCoord3fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3fv(target, v);
+}
+
+void gl3_0_glMultiTexCoord3f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3f(target, s, t, r);
+}
+
+void gl3_0_glMultiTexCoord3dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3dv(target, v);
+}
+
+void gl3_0_glMultiTexCoord3d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3d(target, s, t, r);
+}
+
+void gl3_0_glMultiTexCoord2sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2sv(target, v);
+}
+
+void gl3_0_glMultiTexCoord2s(void *_glfuncs, GLenum target, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2s(target, s, t);
+}
+
+void gl3_0_glMultiTexCoord2iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2iv(target, v);
+}
+
+void gl3_0_glMultiTexCoord2i(void *_glfuncs, GLenum target, GLint s, GLint t)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2i(target, s, t);
+}
+
+void gl3_0_glMultiTexCoord2fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2fv(target, v);
+}
+
+void gl3_0_glMultiTexCoord2f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2f(target, s, t);
+}
+
+void gl3_0_glMultiTexCoord2dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2dv(target, v);
+}
+
+void gl3_0_glMultiTexCoord2d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2d(target, s, t);
+}
+
+void gl3_0_glMultiTexCoord1sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1sv(target, v);
+}
+
+void gl3_0_glMultiTexCoord1s(void *_glfuncs, GLenum target, GLshort s)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1s(target, s);
+}
+
+void gl3_0_glMultiTexCoord1iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1iv(target, v);
+}
+
+void gl3_0_glMultiTexCoord1i(void *_glfuncs, GLenum target, GLint s)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1i(target, s);
+}
+
+void gl3_0_glMultiTexCoord1fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1fv(target, v);
+}
+
+void gl3_0_glMultiTexCoord1f(void *_glfuncs, GLenum target, GLfloat s)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1f(target, s);
+}
+
+void gl3_0_glMultiTexCoord1dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1dv(target, v);
+}
+
+void gl3_0_glMultiTexCoord1d(void *_glfuncs, GLenum target, GLdouble s)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1d(target, s);
+}
+
+void gl3_0_glClientActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glClientActiveTexture(texture);
+}
+
+void gl3_0_glWindowPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3sv(v);
+}
+
+void gl3_0_glWindowPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3s(x, y, z);
+}
+
+void gl3_0_glWindowPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3iv(v);
+}
+
+void gl3_0_glWindowPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3i(x, y, z);
+}
+
+void gl3_0_glWindowPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3fv(v);
+}
+
+void gl3_0_glWindowPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3f(x, y, z);
+}
+
+void gl3_0_glWindowPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3dv(v);
+}
+
+void gl3_0_glWindowPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos3d(x, y, z);
+}
+
+void gl3_0_glWindowPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2sv(v);
+}
+
+void gl3_0_glWindowPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2s(x, y);
+}
+
+void gl3_0_glWindowPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2iv(v);
+}
+
+void gl3_0_glWindowPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2i(x, y);
+}
+
+void gl3_0_glWindowPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2fv(v);
+}
+
+void gl3_0_glWindowPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2f(x, y);
+}
+
+void gl3_0_glWindowPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2dv(v);
+}
+
+void gl3_0_glWindowPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glWindowPos2d(x, y);
+}
+
+void gl3_0_glSecondaryColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColorPointer(size, gltype, stride, pointer);
+}
+
+void gl3_0_glSecondaryColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3usv(v);
+}
+
+void gl3_0_glSecondaryColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3us(red, green, blue);
+}
+
+void gl3_0_glSecondaryColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3uiv(v);
+}
+
+void gl3_0_glSecondaryColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ui(red, green, blue);
+}
+
+void gl3_0_glSecondaryColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ubv(v);
+}
+
+void gl3_0_glSecondaryColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ub(red, green, blue);
+}
+
+void gl3_0_glSecondaryColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3sv(v);
+}
+
+void gl3_0_glSecondaryColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3s(red, green, blue);
+}
+
+void gl3_0_glSecondaryColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3iv(v);
+}
+
+void gl3_0_glSecondaryColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3i(red, green, blue);
+}
+
+void gl3_0_glSecondaryColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3fv(v);
+}
+
+void gl3_0_glSecondaryColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3f(red, green, blue);
+}
+
+void gl3_0_glSecondaryColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3dv(v);
+}
+
+void gl3_0_glSecondaryColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3d(red, green, blue);
+}
+
+void gl3_0_glSecondaryColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3bv(v);
+}
+
+void gl3_0_glSecondaryColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3b(red, green, blue);
+}
+
+void gl3_0_glFogCoordPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFogCoordPointer(gltype, stride, pointer);
+}
+
+void gl3_0_glFogCoorddv(void *_glfuncs, const GLdouble* coord)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFogCoorddv(coord);
+}
+
+void gl3_0_glFogCoordd(void *_glfuncs, GLdouble coord)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFogCoordd(coord);
+}
+
+void gl3_0_glFogCoordfv(void *_glfuncs, const GLfloat* coord)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFogCoordfv(coord);
+}
+
+void gl3_0_glFogCoordf(void *_glfuncs, GLfloat coord)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glFogCoordf(coord);
+}
+
+void gl3_0_glVertexAttrib4usv(void *_glfuncs, GLuint index, const GLushort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4usv(index, v);
+}
+
+void gl3_0_glVertexAttrib4uiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4uiv(index, v);
+}
+
+void gl3_0_glVertexAttrib4ubv(void *_glfuncs, GLuint index, const GLubyte* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4ubv(index, v);
+}
+
+void gl3_0_glVertexAttrib4sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4sv(index, v);
+}
+
+void gl3_0_glVertexAttrib4s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4s(index, x, y, z, w);
+}
+
+void gl3_0_glVertexAttrib4iv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4iv(index, v);
+}
+
+void gl3_0_glVertexAttrib4fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4fv(index, v);
+}
+
+void gl3_0_glVertexAttrib4f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4f(index, x, y, z, w);
+}
+
+void gl3_0_glVertexAttrib4dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4dv(index, v);
+}
+
+void gl3_0_glVertexAttrib4d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4d(index, x, y, z, w);
+}
+
+void gl3_0_glVertexAttrib4bv(void *_glfuncs, GLuint index, const GLbyte* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4bv(index, v);
+}
+
+void gl3_0_glVertexAttrib4Nusv(void *_glfuncs, GLuint index, const GLushort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nusv(index, v);
+}
+
+void gl3_0_glVertexAttrib4Nuiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nuiv(index, v);
+}
+
+void gl3_0_glVertexAttrib4Nubv(void *_glfuncs, GLuint index, const GLubyte* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nubv(index, v);
+}
+
+void gl3_0_glVertexAttrib4Nub(void *_glfuncs, GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nub(index, x, y, z, w);
+}
+
+void gl3_0_glVertexAttrib4Nsv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nsv(index, v);
+}
+
+void gl3_0_glVertexAttrib4Niv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Niv(index, v);
+}
+
+void gl3_0_glVertexAttrib4Nbv(void *_glfuncs, GLuint index, const GLbyte* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nbv(index, v);
+}
+
+void gl3_0_glVertexAttrib3sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3sv(index, v);
+}
+
+void gl3_0_glVertexAttrib3s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3s(index, x, y, z);
+}
+
+void gl3_0_glVertexAttrib3fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3fv(index, v);
+}
+
+void gl3_0_glVertexAttrib3f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3f(index, x, y, z);
+}
+
+void gl3_0_glVertexAttrib3dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3dv(index, v);
+}
+
+void gl3_0_glVertexAttrib3d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3d(index, x, y, z);
+}
+
+void gl3_0_glVertexAttrib2sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2sv(index, v);
+}
+
+void gl3_0_glVertexAttrib2s(void *_glfuncs, GLuint index, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2s(index, x, y);
+}
+
+void gl3_0_glVertexAttrib2fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2fv(index, v);
+}
+
+void gl3_0_glVertexAttrib2f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2f(index, x, y);
+}
+
+void gl3_0_glVertexAttrib2dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2dv(index, v);
+}
+
+void gl3_0_glVertexAttrib2d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2d(index, x, y);
+}
+
+void gl3_0_glVertexAttrib1sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1sv(index, v);
+}
+
+void gl3_0_glVertexAttrib1s(void *_glfuncs, GLuint index, GLshort x)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1s(index, x);
+}
+
+void gl3_0_glVertexAttrib1fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1fv(index, v);
+}
+
+void gl3_0_glVertexAttrib1f(void *_glfuncs, GLuint index, GLfloat x)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1f(index, x);
+}
+
+void gl3_0_glVertexAttrib1dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1dv(index, v);
+}
+
+void gl3_0_glVertexAttrib1d(void *_glfuncs, GLuint index, GLdouble x)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1d(index, x);
+}
+
+void gl3_0_glVertexAttribI4usv(void *_glfuncs, GLuint index, const GLushort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4usv(index, v);
+}
+
+void gl3_0_glVertexAttribI4ubv(void *_glfuncs, GLuint index, const GLubyte* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4ubv(index, v);
+}
+
+void gl3_0_glVertexAttribI4sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4sv(index, v);
+}
+
+void gl3_0_glVertexAttribI4bv(void *_glfuncs, GLuint index, const GLbyte* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4bv(index, v);
+}
+
+void gl3_0_glVertexAttribI4uiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4uiv(index, v);
+}
+
+void gl3_0_glVertexAttribI3uiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI3uiv(index, v);
+}
+
+void gl3_0_glVertexAttribI2uiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI2uiv(index, v);
+}
+
+void gl3_0_glVertexAttribI1uiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI1uiv(index, v);
+}
+
+void gl3_0_glVertexAttribI4iv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4iv(index, v);
+}
+
+void gl3_0_glVertexAttribI3iv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI3iv(index, v);
+}
+
+void gl3_0_glVertexAttribI2iv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI2iv(index, v);
+}
+
+void gl3_0_glVertexAttribI1iv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI1iv(index, v);
+}
+
+void gl3_0_glVertexAttribI4ui(void *_glfuncs, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4ui(index, x, y, z, w);
+}
+
+void gl3_0_glVertexAttribI3ui(void *_glfuncs, GLuint index, GLuint x, GLuint y, GLuint z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI3ui(index, x, y, z);
+}
+
+void gl3_0_glVertexAttribI2ui(void *_glfuncs, GLuint index, GLuint x, GLuint y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI2ui(index, x, y);
+}
+
+void gl3_0_glVertexAttribI1ui(void *_glfuncs, GLuint index, GLuint x)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI1ui(index, x);
+}
+
+void gl3_0_glVertexAttribI4i(void *_glfuncs, GLuint index, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4i(index, x, y, z, w);
+}
+
+void gl3_0_glVertexAttribI3i(void *_glfuncs, GLuint index, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI3i(index, x, y, z);
+}
+
+void gl3_0_glVertexAttribI2i(void *_glfuncs, GLuint index, GLint x, GLint y)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI2i(index, x, y);
+}
+
+void gl3_0_glVertexAttribI1i(void *_glfuncs, GLuint index, GLint x)
+{
+ QOpenGLFunctions_3_0* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_0*>(_glfuncs);
+ _qglfuncs->glVertexAttribI1i(index, x);
+}
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.0/funcs.h b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.0/funcs.h
new file mode 100644
index 000000000..81db33a9b
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.0/funcs.h
@@ -0,0 +1,700 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#ifndef __cplusplus
+#include <inttypes.h>
+#include <stddef.h>
+typedef unsigned int GLenum;
+typedef unsigned char GLboolean;
+typedef unsigned int GLbitfield;
+typedef void GLvoid;
+typedef char GLchar;
+typedef signed char GLbyte; /* 1-byte signed */
+typedef short GLshort; /* 2-byte signed */
+typedef int GLint; /* 4-byte signed */
+typedef unsigned char GLubyte; /* 1-byte unsigned */
+typedef unsigned short GLushort; /* 2-byte unsigned */
+typedef unsigned int GLuint; /* 4-byte unsigned */
+typedef int GLsizei; /* 4-byte signed */
+typedef float GLfloat; /* single precision float */
+typedef float GLclampf; /* single precision float in [0,1] */
+typedef double GLdouble; /* double precision float */
+typedef double GLclampd; /* double precision float in [0,1] */
+typedef int64_t GLint64;
+typedef uint64_t GLuint64;
+typedef ptrdiff_t GLintptr;
+typedef ptrdiff_t GLsizeiptr;
+typedef ptrdiff_t GLintptrARB;
+typedef ptrdiff_t GLsizeiptrARB;
+typedef struct __GLsync *GLsync;
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *gl3_0_funcs();
+
+void gl3_0_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl3_0_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal);
+GLboolean gl3_0_glIsEnabled(void *_glfuncs, GLenum cap);
+void gl3_0_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params);
+void gl3_0_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params);
+void gl3_0_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_0_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl3_0_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl3_0_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params);
+void gl3_0_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params);
+GLenum gl3_0_glGetError(void *_glfuncs);
+void gl3_0_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params);
+void gl3_0_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params);
+void gl3_0_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl3_0_glReadBuffer(void *_glfuncs, GLenum mode);
+void gl3_0_glPixelStorei(void *_glfuncs, GLenum pname, GLint param);
+void gl3_0_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param);
+void gl3_0_glDepthFunc(void *_glfuncs, GLenum glfunc);
+void gl3_0_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass);
+void gl3_0_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask);
+void gl3_0_glLogicOp(void *_glfuncs, GLenum opcode);
+void gl3_0_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor);
+void gl3_0_glFlush(void *_glfuncs);
+void gl3_0_glFinish(void *_glfuncs);
+void gl3_0_glEnable(void *_glfuncs, GLenum cap);
+void gl3_0_glDisable(void *_glfuncs, GLenum cap);
+void gl3_0_glDepthMask(void *_glfuncs, GLboolean flag);
+void gl3_0_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+void gl3_0_glStencilMask(void *_glfuncs, GLuint mask);
+void gl3_0_glClearDepth(void *_glfuncs, GLdouble depth);
+void gl3_0_glClearStencil(void *_glfuncs, GLint s);
+void gl3_0_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl3_0_glClear(void *_glfuncs, GLbitfield mask);
+void gl3_0_glDrawBuffer(void *_glfuncs, GLenum mode);
+void gl3_0_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_0_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_0_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl3_0_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl3_0_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl3_0_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl3_0_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl3_0_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode);
+void gl3_0_glPointSize(void *_glfuncs, GLfloat size);
+void gl3_0_glLineWidth(void *_glfuncs, GLfloat width);
+void gl3_0_glHint(void *_glfuncs, GLenum target, GLenum mode);
+void gl3_0_glFrontFace(void *_glfuncs, GLenum mode);
+void gl3_0_glCullFace(void *_glfuncs, GLenum mode);
+void gl3_0_glIndexubv(void *_glfuncs, const GLubyte* c);
+void gl3_0_glIndexub(void *_glfuncs, GLubyte c);
+GLboolean gl3_0_glIsTexture(void *_glfuncs, GLuint texture);
+void gl3_0_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures);
+void gl3_0_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures);
+void gl3_0_glBindTexture(void *_glfuncs, GLenum target, GLuint texture);
+void gl3_0_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_0_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_0_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl3_0_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+void gl3_0_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+void gl3_0_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
+void gl3_0_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units);
+void gl3_0_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl3_0_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count);
+void gl3_0_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl3_0_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_0_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_0_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl3_0_glBlendEquation(void *_glfuncs, GLenum mode);
+void gl3_0_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl3_0_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img);
+void gl3_0_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl3_0_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl3_0_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl3_0_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl3_0_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl3_0_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl3_0_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert);
+void gl3_0_glActiveTexture(void *_glfuncs, GLenum texture);
+void gl3_0_glPointParameteriv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl3_0_glPointParameteri(void *_glfuncs, GLenum pname, GLint param);
+void gl3_0_glPointParameterfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl3_0_glPointParameterf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl3_0_glMultiDrawArrays(void *_glfuncs, GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount);
+void gl3_0_glBlendFuncSeparate(void *_glfuncs, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+void gl3_0_glGetBufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+GLboolean gl3_0_glUnmapBuffer(void *_glfuncs, GLenum target);
+void gl3_0_glGetBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data);
+void gl3_0_glBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data);
+void gl3_0_glBufferData(void *_glfuncs, GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
+GLboolean gl3_0_glIsBuffer(void *_glfuncs, GLuint buffer);
+void gl3_0_glGenBuffers(void *_glfuncs, GLsizei n, GLuint* buffers);
+void gl3_0_glDeleteBuffers(void *_glfuncs, GLsizei n, const GLuint* buffers);
+void gl3_0_glBindBuffer(void *_glfuncs, GLenum target, GLuint buffer);
+void gl3_0_glGetQueryObjectuiv(void *_glfuncs, GLuint id, GLenum pname, GLuint* params);
+void gl3_0_glGetQueryObjectiv(void *_glfuncs, GLuint id, GLenum pname, GLint* params);
+void gl3_0_glGetQueryiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_0_glEndQuery(void *_glfuncs, GLenum target);
+void gl3_0_glBeginQuery(void *_glfuncs, GLenum target, GLuint id);
+GLboolean gl3_0_glIsQuery(void *_glfuncs, GLuint id);
+void gl3_0_glDeleteQueries(void *_glfuncs, GLsizei n, const GLuint* ids);
+void gl3_0_glGenQueries(void *_glfuncs, GLsizei n, GLuint* ids);
+void gl3_0_glVertexAttribPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLboolean normalized, GLsizei stride, const GLvoid* offset);
+void gl3_0_glValidateProgram(void *_glfuncs, GLuint program);
+void gl3_0_glUniformMatrix4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_0_glUniformMatrix3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_0_glUniformMatrix2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_0_glUniform4iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl3_0_glUniform3iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl3_0_glUniform2iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl3_0_glUniform1iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl3_0_glUniform4fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl3_0_glUniform3fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl3_0_glUniform2fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl3_0_glUniform1fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl3_0_glUniform4i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+void gl3_0_glUniform3i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2);
+void gl3_0_glUniform2i(void *_glfuncs, GLint location, GLint v0, GLint v1);
+void gl3_0_glUniform1i(void *_glfuncs, GLint location, GLint v0);
+void gl3_0_glUniform4f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+void gl3_0_glUniform3f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+void gl3_0_glUniform2f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1);
+void gl3_0_glUniform1f(void *_glfuncs, GLint location, GLfloat v0);
+void gl3_0_glUseProgram(void *_glfuncs, GLuint program);
+void gl3_0_glShaderSource(void *_glfuncs, GLuint shader, GLsizei count, const GLchar** source, const GLint* length);
+void gl3_0_glLinkProgram(void *_glfuncs, GLuint program);
+GLboolean gl3_0_glIsShader(void *_glfuncs, GLuint shader);
+GLboolean gl3_0_glIsProgram(void *_glfuncs, GLuint program);
+void gl3_0_glGetVertexAttribiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params);
+void gl3_0_glGetVertexAttribfv(void *_glfuncs, GLuint index, GLenum pname, GLfloat* params);
+void gl3_0_glGetVertexAttribdv(void *_glfuncs, GLuint index, GLenum pname, GLdouble* params);
+void gl3_0_glGetUniformiv(void *_glfuncs, GLuint program, GLint location, GLint* params);
+void gl3_0_glGetUniformfv(void *_glfuncs, GLuint program, GLint location, GLfloat* params);
+GLint gl3_0_glGetUniformLocation(void *_glfuncs, GLuint program, const GLchar* name);
+void gl3_0_glGetShaderSource(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* source);
+void gl3_0_glGetShaderInfoLog(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog);
+void gl3_0_glGetShaderiv(void *_glfuncs, GLuint shader, GLenum pname, GLint* params);
+void gl3_0_glGetProgramInfoLog(void *_glfuncs, GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog);
+void gl3_0_glGetProgramiv(void *_glfuncs, GLuint program, GLenum pname, GLint* params);
+GLint gl3_0_glGetAttribLocation(void *_glfuncs, GLuint program, const GLchar* name);
+void gl3_0_glGetAttachedShaders(void *_glfuncs, GLuint program, GLsizei maxCount, GLsizei* count, GLuint* obj);
+void gl3_0_glGetActiveUniform(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name);
+void gl3_0_glGetActiveAttrib(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name);
+void gl3_0_glEnableVertexAttribArray(void *_glfuncs, GLuint index);
+void gl3_0_glDisableVertexAttribArray(void *_glfuncs, GLuint index);
+void gl3_0_glDetachShader(void *_glfuncs, GLuint program, GLuint shader);
+void gl3_0_glDeleteShader(void *_glfuncs, GLuint shader);
+void gl3_0_glDeleteProgram(void *_glfuncs, GLuint program);
+GLuint gl3_0_glCreateShader(void *_glfuncs, GLenum gltype);
+GLuint gl3_0_glCreateProgram(void *_glfuncs);
+void gl3_0_glCompileShader(void *_glfuncs, GLuint shader);
+void gl3_0_glBindAttribLocation(void *_glfuncs, GLuint program, GLuint index, const GLchar* name);
+void gl3_0_glAttachShader(void *_glfuncs, GLuint program, GLuint shader);
+void gl3_0_glStencilMaskSeparate(void *_glfuncs, GLenum face, GLuint mask);
+void gl3_0_glStencilFuncSeparate(void *_glfuncs, GLenum face, GLenum glfunc, GLint ref, GLuint mask);
+void gl3_0_glStencilOpSeparate(void *_glfuncs, GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+void gl3_0_glDrawBuffers(void *_glfuncs, GLsizei n, const GLenum* bufs);
+void gl3_0_glBlendEquationSeparate(void *_glfuncs, GLenum modeRGB, GLenum modeAlpha);
+void gl3_0_glUniformMatrix4x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_0_glUniformMatrix3x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_0_glUniformMatrix4x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_0_glUniformMatrix2x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_0_glUniformMatrix3x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_0_glUniformMatrix2x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+GLboolean gl3_0_glIsVertexArray(void *_glfuncs, GLuint array);
+void gl3_0_glGenVertexArrays(void *_glfuncs, GLsizei n, GLuint* arrays);
+void gl3_0_glDeleteVertexArrays(void *_glfuncs, GLsizei n, const GLuint* arrays);
+void gl3_0_glBindVertexArray(void *_glfuncs, GLuint array);
+void gl3_0_glFlushMappedBufferRange(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr length);
+void gl3_0_glFramebufferTextureLayer(void *_glfuncs, GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+void gl3_0_glRenderbufferStorageMultisample(void *_glfuncs, GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height);
+void gl3_0_glBlitFramebuffer(void *_glfuncs, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+void gl3_0_glGenerateMipmap(void *_glfuncs, GLenum target);
+void gl3_0_glGetFramebufferAttachmentParameteriv(void *_glfuncs, GLenum target, GLenum attachment, GLenum pname, GLint* params);
+void gl3_0_glFramebufferRenderbuffer(void *_glfuncs, GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+void gl3_0_glFramebufferTexture3D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+void gl3_0_glFramebufferTexture2D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+void gl3_0_glFramebufferTexture1D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLenum gl3_0_glCheckFramebufferStatus(void *_glfuncs, GLenum target);
+void gl3_0_glGenFramebuffers(void *_glfuncs, GLsizei n, GLuint* framebuffers);
+void gl3_0_glDeleteFramebuffers(void *_glfuncs, GLsizei n, const GLuint* framebuffers);
+void gl3_0_glBindFramebuffer(void *_glfuncs, GLenum target, GLuint framebuffer);
+GLboolean gl3_0_glIsFramebuffer(void *_glfuncs, GLuint framebuffer);
+void gl3_0_glGetRenderbufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_0_glRenderbufferStorage(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height);
+void gl3_0_glGenRenderbuffers(void *_glfuncs, GLsizei n, GLuint* renderbuffers);
+void gl3_0_glDeleteRenderbuffers(void *_glfuncs, GLsizei n, const GLuint* renderbuffers);
+void gl3_0_glBindRenderbuffer(void *_glfuncs, GLenum target, GLuint renderbuffer);
+GLboolean gl3_0_glIsRenderbuffer(void *_glfuncs, GLuint renderbuffer);
+void gl3_0_glClearBufferfi(void *_glfuncs, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
+void gl3_0_glClearBufferfv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLfloat* value);
+void gl3_0_glClearBufferuiv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLuint* value);
+void gl3_0_glClearBufferiv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLint* value);
+void gl3_0_glGetTexParameterIuiv(void *_glfuncs, GLenum target, GLenum pname, GLuint* params);
+void gl3_0_glGetTexParameterIiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_0_glTexParameterIuiv(void *_glfuncs, GLenum target, GLenum pname, const GLuint* params);
+void gl3_0_glTexParameterIiv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl3_0_glUniform4uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value);
+void gl3_0_glUniform3uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value);
+void gl3_0_glUniform2uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value);
+void gl3_0_glUniform1uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value);
+void gl3_0_glUniform4ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+void gl3_0_glUniform3ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1, GLuint v2);
+void gl3_0_glUniform2ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1);
+void gl3_0_glUniform1ui(void *_glfuncs, GLint location, GLuint v0);
+GLint gl3_0_glGetFragDataLocation(void *_glfuncs, GLuint program, const GLchar* name);
+void gl3_0_glBindFragDataLocation(void *_glfuncs, GLuint program, GLuint color, const GLchar* name);
+void gl3_0_glGetUniformuiv(void *_glfuncs, GLuint program, GLint location, GLuint* params);
+void gl3_0_glGetVertexAttribIuiv(void *_glfuncs, GLuint index, GLenum pname, GLuint* params);
+void gl3_0_glGetVertexAttribIiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params);
+void gl3_0_glVertexAttribIPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_0_glEndConditionalRender(void *_glfuncs);
+void gl3_0_glBeginConditionalRender(void *_glfuncs, GLuint id, GLenum mode);
+void gl3_0_glClampColor(void *_glfuncs, GLenum target, GLenum clamp);
+void gl3_0_glGetTransformFeedbackVarying(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* gltype, GLchar* name);
+void gl3_0_glBindBufferBase(void *_glfuncs, GLenum target, GLuint index, GLuint buffer);
+void gl3_0_glBindBufferRange(void *_glfuncs, GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+void gl3_0_glEndTransformFeedback(void *_glfuncs);
+void gl3_0_glBeginTransformFeedback(void *_glfuncs, GLenum primitiveMode);
+GLboolean gl3_0_glIsEnabledi(void *_glfuncs, GLenum target, GLuint index);
+void gl3_0_glDisablei(void *_glfuncs, GLenum target, GLuint index);
+void gl3_0_glEnablei(void *_glfuncs, GLenum target, GLuint index);
+void gl3_0_glGetIntegeri_v(void *_glfuncs, GLenum target, GLuint index, GLint* data);
+void gl3_0_glGetBooleani_v(void *_glfuncs, GLenum target, GLuint index, GLboolean* data);
+void gl3_0_glColorMaski(void *_glfuncs, GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+void gl3_0_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl3_0_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl3_0_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl3_0_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl3_0_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+void gl3_0_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+void gl3_0_glPushMatrix(void *_glfuncs);
+void gl3_0_glPopMatrix(void *_glfuncs);
+void gl3_0_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+void gl3_0_glMultMatrixd(void *_glfuncs, const GLdouble* m);
+void gl3_0_glMultMatrixf(void *_glfuncs, const GLfloat* m);
+void gl3_0_glMatrixMode(void *_glfuncs, GLenum mode);
+void gl3_0_glLoadMatrixd(void *_glfuncs, const GLdouble* m);
+void gl3_0_glLoadMatrixf(void *_glfuncs, const GLfloat* m);
+void gl3_0_glLoadIdentity(void *_glfuncs);
+void gl3_0_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLboolean gl3_0_glIsList(void *_glfuncs, GLuint list);
+void gl3_0_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params);
+void gl3_0_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params);
+void gl3_0_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params);
+void gl3_0_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_0_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl3_0_glGetPolygonStipple(void *_glfuncs, GLubyte* mask);
+void gl3_0_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values);
+void gl3_0_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values);
+void gl3_0_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values);
+void gl3_0_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params);
+void gl3_0_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params);
+void gl3_0_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v);
+void gl3_0_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v);
+void gl3_0_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v);
+void gl3_0_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params);
+void gl3_0_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params);
+void gl3_0_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation);
+void gl3_0_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_0_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype);
+void gl3_0_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values);
+void gl3_0_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values);
+void gl3_0_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values);
+void gl3_0_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param);
+void gl3_0_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl3_0_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor);
+void gl3_0_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref);
+void gl3_0_glEvalPoint2(void *_glfuncs, GLint i, GLint j);
+void gl3_0_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
+void gl3_0_glEvalPoint1(void *_glfuncs, GLint i);
+void gl3_0_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2);
+void gl3_0_glEvalCoord2fv(void *_glfuncs, const GLfloat* u);
+void gl3_0_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v);
+void gl3_0_glEvalCoord2dv(void *_glfuncs, const GLdouble* u);
+void gl3_0_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v);
+void gl3_0_glEvalCoord1fv(void *_glfuncs, const GLfloat* u);
+void gl3_0_glEvalCoord1f(void *_glfuncs, GLfloat u);
+void gl3_0_glEvalCoord1dv(void *_glfuncs, const GLdouble* u);
+void gl3_0_glEvalCoord1d(void *_glfuncs, GLdouble u);
+void gl3_0_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
+void gl3_0_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
+void gl3_0_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2);
+void gl3_0_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2);
+void gl3_0_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points);
+void gl3_0_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points);
+void gl3_0_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points);
+void gl3_0_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points);
+void gl3_0_glPushAttrib(void *_glfuncs, GLbitfield mask);
+void gl3_0_glPopAttrib(void *_glfuncs);
+void gl3_0_glAccum(void *_glfuncs, GLenum op, GLfloat value);
+void gl3_0_glIndexMask(void *_glfuncs, GLuint mask);
+void gl3_0_glClearIndex(void *_glfuncs, GLfloat c);
+void gl3_0_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl3_0_glPushName(void *_glfuncs, GLuint name);
+void gl3_0_glPopName(void *_glfuncs);
+void gl3_0_glPassThrough(void *_glfuncs, GLfloat token);
+void gl3_0_glLoadName(void *_glfuncs, GLuint name);
+void gl3_0_glInitNames(void *_glfuncs);
+GLint gl3_0_glRenderMode(void *_glfuncs, GLenum mode);
+void gl3_0_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer);
+void gl3_0_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer);
+void gl3_0_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params);
+void gl3_0_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param);
+void gl3_0_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params);
+void gl3_0_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param);
+void gl3_0_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params);
+void gl3_0_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param);
+void gl3_0_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl3_0_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl3_0_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl3_0_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl3_0_glShadeModel(void *_glfuncs, GLenum mode);
+void gl3_0_glPolygonStipple(void *_glfuncs, const GLubyte* mask);
+void gl3_0_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params);
+void gl3_0_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param);
+void gl3_0_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params);
+void gl3_0_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param);
+void gl3_0_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern);
+void gl3_0_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl3_0_glLightModeli(void *_glfuncs, GLenum pname, GLint param);
+void gl3_0_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl3_0_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl3_0_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params);
+void gl3_0_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param);
+void gl3_0_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params);
+void gl3_0_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param);
+void gl3_0_glFogiv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl3_0_glFogi(void *_glfuncs, GLenum pname, GLint param);
+void gl3_0_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl3_0_glFogf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl3_0_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode);
+void gl3_0_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation);
+void gl3_0_glVertex4sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl3_0_glVertex4iv(void *_glfuncs, const GLint* v);
+void gl3_0_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl3_0_glVertex4fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl3_0_glVertex4dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl3_0_glVertex3sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl3_0_glVertex3iv(void *_glfuncs, const GLint* v);
+void gl3_0_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl3_0_glVertex3fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl3_0_glVertex3dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl3_0_glVertex2sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glVertex2s(void *_glfuncs, GLshort x, GLshort y);
+void gl3_0_glVertex2iv(void *_glfuncs, const GLint* v);
+void gl3_0_glVertex2i(void *_glfuncs, GLint x, GLint y);
+void gl3_0_glVertex2fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl3_0_glVertex2dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl3_0_glTexCoord4sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl3_0_glTexCoord4iv(void *_glfuncs, const GLint* v);
+void gl3_0_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q);
+void gl3_0_glTexCoord4fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl3_0_glTexCoord4dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl3_0_glTexCoord3sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r);
+void gl3_0_glTexCoord3iv(void *_glfuncs, const GLint* v);
+void gl3_0_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r);
+void gl3_0_glTexCoord3fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r);
+void gl3_0_glTexCoord3dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r);
+void gl3_0_glTexCoord2sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t);
+void gl3_0_glTexCoord2iv(void *_glfuncs, const GLint* v);
+void gl3_0_glTexCoord2i(void *_glfuncs, GLint s, GLint t);
+void gl3_0_glTexCoord2fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t);
+void gl3_0_glTexCoord2dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t);
+void gl3_0_glTexCoord1sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glTexCoord1s(void *_glfuncs, GLshort s);
+void gl3_0_glTexCoord1iv(void *_glfuncs, const GLint* v);
+void gl3_0_glTexCoord1i(void *_glfuncs, GLint s);
+void gl3_0_glTexCoord1fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glTexCoord1f(void *_glfuncs, GLfloat s);
+void gl3_0_glTexCoord1dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glTexCoord1d(void *_glfuncs, GLdouble s);
+void gl3_0_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2);
+void gl3_0_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2);
+void gl3_0_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2);
+void gl3_0_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2);
+void gl3_0_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2);
+void gl3_0_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
+void gl3_0_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2);
+void gl3_0_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
+void gl3_0_glRasterPos4sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl3_0_glRasterPos4iv(void *_glfuncs, const GLint* v);
+void gl3_0_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl3_0_glRasterPos4fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl3_0_glRasterPos4dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl3_0_glRasterPos3sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl3_0_glRasterPos3iv(void *_glfuncs, const GLint* v);
+void gl3_0_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl3_0_glRasterPos3fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl3_0_glRasterPos3dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl3_0_glRasterPos2sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl3_0_glRasterPos2iv(void *_glfuncs, const GLint* v);
+void gl3_0_glRasterPos2i(void *_glfuncs, GLint x, GLint y);
+void gl3_0_glRasterPos2fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl3_0_glRasterPos2dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl3_0_glNormal3sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz);
+void gl3_0_glNormal3iv(void *_glfuncs, const GLint* v);
+void gl3_0_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz);
+void gl3_0_glNormal3fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz);
+void gl3_0_glNormal3dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz);
+void gl3_0_glNormal3bv(void *_glfuncs, const GLbyte* v);
+void gl3_0_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz);
+void gl3_0_glIndexsv(void *_glfuncs, const GLshort* c);
+void gl3_0_glIndexs(void *_glfuncs, GLshort c);
+void gl3_0_glIndexiv(void *_glfuncs, const GLint* c);
+void gl3_0_glIndexi(void *_glfuncs, GLint c);
+void gl3_0_glIndexfv(void *_glfuncs, const GLfloat* c);
+void gl3_0_glIndexf(void *_glfuncs, GLfloat c);
+void gl3_0_glIndexdv(void *_glfuncs, const GLdouble* c);
+void gl3_0_glIndexd(void *_glfuncs, GLdouble c);
+void gl3_0_glEnd(void *_glfuncs);
+void gl3_0_glEdgeFlagv(void *_glfuncs, const GLboolean* flag);
+void gl3_0_glEdgeFlag(void *_glfuncs, GLboolean flag);
+void gl3_0_glColor4usv(void *_glfuncs, const GLushort* v);
+void gl3_0_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha);
+void gl3_0_glColor4uiv(void *_glfuncs, const GLuint* v);
+void gl3_0_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha);
+void gl3_0_glColor4ubv(void *_glfuncs, const GLubyte* v);
+void gl3_0_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
+void gl3_0_glColor4sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha);
+void gl3_0_glColor4iv(void *_glfuncs, const GLint* v);
+void gl3_0_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha);
+void gl3_0_glColor4fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl3_0_glColor4dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
+void gl3_0_glColor4bv(void *_glfuncs, const GLbyte* v);
+void gl3_0_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
+void gl3_0_glColor3usv(void *_glfuncs, const GLushort* v);
+void gl3_0_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl3_0_glColor3uiv(void *_glfuncs, const GLuint* v);
+void gl3_0_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl3_0_glColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl3_0_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl3_0_glColor3sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl3_0_glColor3iv(void *_glfuncs, const GLint* v);
+void gl3_0_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl3_0_glColor3fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl3_0_glColor3dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl3_0_glColor3bv(void *_glfuncs, const GLbyte* v);
+void gl3_0_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl3_0_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap);
+void gl3_0_glBegin(void *_glfuncs, GLenum mode);
+void gl3_0_glListBase(void *_glfuncs, GLuint base);
+GLuint gl3_0_glGenLists(void *_glfuncs, GLsizei range_);
+void gl3_0_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_);
+void gl3_0_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists);
+void gl3_0_glCallList(void *_glfuncs, GLuint list);
+void gl3_0_glEndList(void *_glfuncs);
+void gl3_0_glNewList(void *_glfuncs, GLuint list, GLenum mode);
+void gl3_0_glPushClientAttrib(void *_glfuncs, GLbitfield mask);
+void gl3_0_glPopClientAttrib(void *_glfuncs);
+void gl3_0_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities);
+GLboolean gl3_0_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences);
+void gl3_0_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_0_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_0_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_0_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer);
+void gl3_0_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_0_glEnableClientState(void *_glfuncs, GLenum array);
+void gl3_0_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer);
+void gl3_0_glDisableClientState(void *_glfuncs, GLenum array);
+void gl3_0_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_0_glArrayElement(void *_glfuncs, GLint i);
+void gl3_0_glResetMinmax(void *_glfuncs, GLenum target);
+void gl3_0_glResetHistogram(void *_glfuncs, GLenum target);
+void gl3_0_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink);
+void gl3_0_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink);
+void gl3_0_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_0_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl3_0_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl3_0_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_0_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl3_0_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl3_0_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column);
+void gl3_0_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span);
+void gl3_0_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_0_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl3_0_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image);
+void gl3_0_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl3_0_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl3_0_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl3_0_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params);
+void gl3_0_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl3_0_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params);
+void gl3_0_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image);
+void gl3_0_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image);
+void gl3_0_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+void gl3_0_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data);
+void gl3_0_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_0_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl3_0_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table);
+void gl3_0_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl3_0_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl3_0_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl3_0_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table);
+void gl3_0_glMultTransposeMatrixd(void *_glfuncs, const GLdouble* m);
+void gl3_0_glMultTransposeMatrixf(void *_glfuncs, const GLfloat* m);
+void gl3_0_glLoadTransposeMatrixd(void *_glfuncs, const GLdouble* m);
+void gl3_0_glLoadTransposeMatrixf(void *_glfuncs, const GLfloat* m);
+void gl3_0_glMultiTexCoord4sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl3_0_glMultiTexCoord4s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl3_0_glMultiTexCoord4iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl3_0_glMultiTexCoord4i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r, GLint q);
+void gl3_0_glMultiTexCoord4fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl3_0_glMultiTexCoord4f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl3_0_glMultiTexCoord4dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl3_0_glMultiTexCoord4d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl3_0_glMultiTexCoord3sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl3_0_glMultiTexCoord3s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r);
+void gl3_0_glMultiTexCoord3iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl3_0_glMultiTexCoord3i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r);
+void gl3_0_glMultiTexCoord3fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl3_0_glMultiTexCoord3f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r);
+void gl3_0_glMultiTexCoord3dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl3_0_glMultiTexCoord3d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r);
+void gl3_0_glMultiTexCoord2sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl3_0_glMultiTexCoord2s(void *_glfuncs, GLenum target, GLshort s, GLshort t);
+void gl3_0_glMultiTexCoord2iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl3_0_glMultiTexCoord2i(void *_glfuncs, GLenum target, GLint s, GLint t);
+void gl3_0_glMultiTexCoord2fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl3_0_glMultiTexCoord2f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t);
+void gl3_0_glMultiTexCoord2dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl3_0_glMultiTexCoord2d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t);
+void gl3_0_glMultiTexCoord1sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl3_0_glMultiTexCoord1s(void *_glfuncs, GLenum target, GLshort s);
+void gl3_0_glMultiTexCoord1iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl3_0_glMultiTexCoord1i(void *_glfuncs, GLenum target, GLint s);
+void gl3_0_glMultiTexCoord1fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl3_0_glMultiTexCoord1f(void *_glfuncs, GLenum target, GLfloat s);
+void gl3_0_glMultiTexCoord1dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl3_0_glMultiTexCoord1d(void *_glfuncs, GLenum target, GLdouble s);
+void gl3_0_glClientActiveTexture(void *_glfuncs, GLenum texture);
+void gl3_0_glWindowPos3sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glWindowPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl3_0_glWindowPos3iv(void *_glfuncs, const GLint* v);
+void gl3_0_glWindowPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl3_0_glWindowPos3fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glWindowPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl3_0_glWindowPos3dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glWindowPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl3_0_glWindowPos2sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glWindowPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl3_0_glWindowPos2iv(void *_glfuncs, const GLint* v);
+void gl3_0_glWindowPos2i(void *_glfuncs, GLint x, GLint y);
+void gl3_0_glWindowPos2fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glWindowPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl3_0_glWindowPos2dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glWindowPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl3_0_glSecondaryColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_0_glSecondaryColor3usv(void *_glfuncs, const GLushort* v);
+void gl3_0_glSecondaryColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl3_0_glSecondaryColor3uiv(void *_glfuncs, const GLuint* v);
+void gl3_0_glSecondaryColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl3_0_glSecondaryColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl3_0_glSecondaryColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl3_0_glSecondaryColor3sv(void *_glfuncs, const GLshort* v);
+void gl3_0_glSecondaryColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl3_0_glSecondaryColor3iv(void *_glfuncs, const GLint* v);
+void gl3_0_glSecondaryColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl3_0_glSecondaryColor3fv(void *_glfuncs, const GLfloat* v);
+void gl3_0_glSecondaryColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl3_0_glSecondaryColor3dv(void *_glfuncs, const GLdouble* v);
+void gl3_0_glSecondaryColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl3_0_glSecondaryColor3bv(void *_glfuncs, const GLbyte* v);
+void gl3_0_glSecondaryColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl3_0_glFogCoordPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_0_glFogCoorddv(void *_glfuncs, const GLdouble* coord);
+void gl3_0_glFogCoordd(void *_glfuncs, GLdouble coord);
+void gl3_0_glFogCoordfv(void *_glfuncs, const GLfloat* coord);
+void gl3_0_glFogCoordf(void *_glfuncs, GLfloat coord);
+void gl3_0_glVertexAttrib4usv(void *_glfuncs, GLuint index, const GLushort* v);
+void gl3_0_glVertexAttrib4uiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl3_0_glVertexAttrib4ubv(void *_glfuncs, GLuint index, const GLubyte* v);
+void gl3_0_glVertexAttrib4sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl3_0_glVertexAttrib4s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl3_0_glVertexAttrib4iv(void *_glfuncs, GLuint index, const GLint* v);
+void gl3_0_glVertexAttrib4fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl3_0_glVertexAttrib4f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl3_0_glVertexAttrib4dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl3_0_glVertexAttrib4d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl3_0_glVertexAttrib4bv(void *_glfuncs, GLuint index, const GLbyte* v);
+void gl3_0_glVertexAttrib4Nusv(void *_glfuncs, GLuint index, const GLushort* v);
+void gl3_0_glVertexAttrib4Nuiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl3_0_glVertexAttrib4Nubv(void *_glfuncs, GLuint index, const GLubyte* v);
+void gl3_0_glVertexAttrib4Nub(void *_glfuncs, GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+void gl3_0_glVertexAttrib4Nsv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl3_0_glVertexAttrib4Niv(void *_glfuncs, GLuint index, const GLint* v);
+void gl3_0_glVertexAttrib4Nbv(void *_glfuncs, GLuint index, const GLbyte* v);
+void gl3_0_glVertexAttrib3sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl3_0_glVertexAttrib3s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z);
+void gl3_0_glVertexAttrib3fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl3_0_glVertexAttrib3f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z);
+void gl3_0_glVertexAttrib3dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl3_0_glVertexAttrib3d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z);
+void gl3_0_glVertexAttrib2sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl3_0_glVertexAttrib2s(void *_glfuncs, GLuint index, GLshort x, GLshort y);
+void gl3_0_glVertexAttrib2fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl3_0_glVertexAttrib2f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y);
+void gl3_0_glVertexAttrib2dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl3_0_glVertexAttrib2d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y);
+void gl3_0_glVertexAttrib1sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl3_0_glVertexAttrib1s(void *_glfuncs, GLuint index, GLshort x);
+void gl3_0_glVertexAttrib1fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl3_0_glVertexAttrib1f(void *_glfuncs, GLuint index, GLfloat x);
+void gl3_0_glVertexAttrib1dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl3_0_glVertexAttrib1d(void *_glfuncs, GLuint index, GLdouble x);
+void gl3_0_glVertexAttribI4usv(void *_glfuncs, GLuint index, const GLushort* v);
+void gl3_0_glVertexAttribI4ubv(void *_glfuncs, GLuint index, const GLubyte* v);
+void gl3_0_glVertexAttribI4sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl3_0_glVertexAttribI4bv(void *_glfuncs, GLuint index, const GLbyte* v);
+void gl3_0_glVertexAttribI4uiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl3_0_glVertexAttribI3uiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl3_0_glVertexAttribI2uiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl3_0_glVertexAttribI1uiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl3_0_glVertexAttribI4iv(void *_glfuncs, GLuint index, const GLint* v);
+void gl3_0_glVertexAttribI3iv(void *_glfuncs, GLuint index, const GLint* v);
+void gl3_0_glVertexAttribI2iv(void *_glfuncs, GLuint index, const GLint* v);
+void gl3_0_glVertexAttribI1iv(void *_glfuncs, GLuint index, const GLint* v);
+void gl3_0_glVertexAttribI4ui(void *_glfuncs, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+void gl3_0_glVertexAttribI3ui(void *_glfuncs, GLuint index, GLuint x, GLuint y, GLuint z);
+void gl3_0_glVertexAttribI2ui(void *_glfuncs, GLuint index, GLuint x, GLuint y);
+void gl3_0_glVertexAttribI1ui(void *_glfuncs, GLuint index, GLuint x);
+void gl3_0_glVertexAttribI4i(void *_glfuncs, GLuint index, GLint x, GLint y, GLint z, GLint w);
+void gl3_0_glVertexAttribI3i(void *_glfuncs, GLuint index, GLint x, GLint y, GLint z);
+void gl3_0_glVertexAttribI2i(void *_glfuncs, GLuint index, GLint x, GLint y);
+void gl3_0_glVertexAttribI1i(void *_glfuncs, GLuint index, GLint x);
+
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.0/gl.go b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.0/gl.go
new file mode 100644
index 000000000..a8509aecd
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.0/gl.go
@@ -0,0 +1,7663 @@
+// ** file automatically generated by glgen -- do not edit manually **
+
+package GL
+
+// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
+// #cgo LDFLAGS: -lstdc++
+// #cgo pkg-config: Qt5Core Qt5OpenGL
+//
+// #include "funcs.h"
+//
+// void free(void*);
+//
+import "C"
+
+import (
+ "fmt"
+ "reflect"
+ "unsafe"
+
+ "gopkg.in/qml.v1/gl/glbase"
+)
+
+// API returns a value that offers methods matching the OpenGL version 3.0 API.
+//
+// The returned API must not be used after the provided OpenGL context becomes invalid.
+func API(context glbase.Contexter) *GL {
+ gl := &GL{}
+ gl.funcs = C.gl3_0_funcs()
+ if gl.funcs == nil {
+ panic(fmt.Errorf("OpenGL version 3.0 is not available"))
+ }
+ return gl
+}
+
+// GL implements the OpenGL version 3.0 API. Values of this
+// type must be created via the API function, and it must not be used after
+// the associated OpenGL context becomes invalid.
+type GL struct {
+ funcs unsafe.Pointer
+}
+
+const (
+ FALSE = 0
+ TRUE = 1
+ NONE = 0
+
+ BYTE = 0x1400
+ UNSIGNED_BYTE = 0x1401
+ SHORT = 0x1402
+ UNSIGNED_SHORT = 0x1403
+ INT = 0x1404
+ UNSIGNED_INT = 0x1405
+ FLOAT = 0x1406
+ N2_BYTES = 0x1407
+ N3_BYTES = 0x1408
+ N4_BYTES = 0x1409
+ DOUBLE = 0x140A
+ HALF_FLOAT = 0x140B
+
+ ACCUM = 0x0100
+ LOAD = 0x0101
+ RETURN = 0x0102
+ MULT = 0x0103
+ ADD = 0x0104
+
+ ACCUM_BUFFER_BIT = 0x00000200
+ ALL_ATTRIB_BITS = 0xFFFFFFFF
+ COLOR_BUFFER_BIT = 0x00004000
+ CURRENT_BIT = 0x00000001
+ DEPTH_BUFFER_BIT = 0x00000100
+ ENABLE_BIT = 0x00002000
+ EVAL_BIT = 0x00010000
+ FOG_BIT = 0x00000080
+ HINT_BIT = 0x00008000
+ LIGHTING_BIT = 0x00000040
+ LINE_BIT = 0x00000004
+ LIST_BIT = 0x00020000
+ MULTISAMPLE_BIT = 0x20000000
+ PIXEL_MODE_BIT = 0x00000020
+ POINT_BIT = 0x00000002
+ POLYGON_BIT = 0x00000008
+ POLYGON_STIPPLE_BIT = 0x00000010
+ SCISSOR_BIT = 0x00080000
+ STENCIL_BUFFER_BIT = 0x00000400
+ TEXTURE_BIT = 0x00040000
+ TRANSFORM_BIT = 0x00001000
+ VIEWPORT_BIT = 0x00000800
+
+ ALWAYS = 0x0207
+ EQUAL = 0x0202
+ GEQUAL = 0x0206
+ GREATER = 0x0204
+ LEQUAL = 0x0203
+ LESS = 0x0201
+ NEVER = 0x0200
+ NOTEQUAL = 0x0205
+
+ LOGIC_OP = 0x0BF1
+
+ DST_ALPHA = 0x0304
+ ONE = 1
+ ONE_MINUS_DST_ALPHA = 0x0305
+ ONE_MINUS_SRC_ALPHA = 0x0303
+ ONE_MINUS_SRC_COLOR = 0x0301
+ SRC_ALPHA = 0x0302
+ SRC_COLOR = 0x0300
+ ZERO = 0
+
+ DST_COLOR = 0x0306
+ ONE_MINUS_DST_COLOR = 0x0307
+ SRC_ALPHA_SATURATE = 0x0308
+
+ CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF
+ CLIENT_PIXEL_STORE_BIT = 0x00000001
+ CLIENT_VERTEX_ARRAY_BIT = 0x00000002
+
+ CLIP_DISTANCE0 = 0x3000
+ CLIP_DISTANCE1 = 0x3001
+ CLIP_DISTANCE2 = 0x3002
+ CLIP_DISTANCE3 = 0x3003
+ CLIP_DISTANCE4 = 0x3004
+ CLIP_DISTANCE5 = 0x3005
+ CLIP_DISTANCE6 = 0x3006
+ CLIP_DISTANCE7 = 0x3007
+ CLIP_PLANE0 = 0x3000
+ CLIP_PLANE1 = 0x3001
+ CLIP_PLANE2 = 0x3002
+ CLIP_PLANE3 = 0x3003
+ CLIP_PLANE4 = 0x3004
+ CLIP_PLANE5 = 0x3005
+
+ BACK = 0x0405
+ FRONT = 0x0404
+ FRONT_AND_BACK = 0x0408
+
+ AMBIENT = 0x1200
+ AMBIENT_AND_DIFFUSE = 0x1602
+ DIFFUSE = 0x1201
+ EMISSION = 0x1600
+ SPECULAR = 0x1202
+
+ CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x00000001
+
+ AUX0 = 0x0409
+ AUX1 = 0x040A
+ AUX2 = 0x040B
+ AUX3 = 0x040C
+ BACK_LEFT = 0x0402
+ BACK_RIGHT = 0x0403
+ FRONT_LEFT = 0x0400
+ FRONT_RIGHT = 0x0401
+ LEFT = 0x0406
+ RIGHT = 0x0407
+
+ ALPHA_TEST = 0x0BC0
+ AUTO_NORMAL = 0x0D80
+ BLEND = 0x0BE2
+ COLOR_ARRAY = 0x8076
+ COLOR_LOGIC_OP = 0x0BF2
+ COLOR_MATERIAL = 0x0B57
+ CULL_FACE = 0x0B44
+ DEPTH_TEST = 0x0B71
+ DITHER = 0x0BD0
+ EDGE_FLAG_ARRAY = 0x8079
+ FOG = 0x0B60
+ INDEX_ARRAY = 0x8077
+ INDEX_LOGIC_OP = 0x0BF1
+ LIGHT0 = 0x4000
+ LIGHT1 = 0x4001
+ LIGHT2 = 0x4002
+ LIGHT3 = 0x4003
+ LIGHT4 = 0x4004
+ LIGHT5 = 0x4005
+ LIGHT6 = 0x4006
+ LIGHT7 = 0x4007
+ LIGHTING = 0x0B50
+ LINE_SMOOTH = 0x0B20
+ LINE_STIPPLE = 0x0B24
+ MAP1_COLOR_4 = 0x0D90
+ MAP1_INDEX = 0x0D91
+ MAP1_NORMAL = 0x0D92
+ MAP1_TEXTURE_COORD_1 = 0x0D93
+ MAP1_TEXTURE_COORD_2 = 0x0D94
+ MAP1_TEXTURE_COORD_3 = 0x0D95
+ MAP1_TEXTURE_COORD_4 = 0x0D96
+ MAP1_VERTEX_3 = 0x0D97
+ MAP1_VERTEX_4 = 0x0D98
+ MAP2_COLOR_4 = 0x0DB0
+ MAP2_INDEX = 0x0DB1
+ MAP2_NORMAL = 0x0DB2
+ MAP2_TEXTURE_COORD_1 = 0x0DB3
+ MAP2_TEXTURE_COORD_2 = 0x0DB4
+ MAP2_TEXTURE_COORD_3 = 0x0DB5
+ MAP2_TEXTURE_COORD_4 = 0x0DB6
+ MAP2_VERTEX_3 = 0x0DB7
+ MAP2_VERTEX_4 = 0x0DB8
+ NORMALIZE = 0x0BA1
+ NORMAL_ARRAY = 0x8075
+ POINT_SMOOTH = 0x0B10
+ POLYGON_OFFSET_FILL = 0x8037
+ POLYGON_OFFSET_LINE = 0x2A02
+ POLYGON_OFFSET_POINT = 0x2A01
+ POLYGON_SMOOTH = 0x0B41
+ POLYGON_STIPPLE = 0x0B42
+ SCISSOR_TEST = 0x0C11
+ STENCIL_TEST = 0x0B90
+ TEXTURE_1D = 0x0DE0
+ TEXTURE_2D = 0x0DE1
+ TEXTURE_COORD_ARRAY = 0x8078
+ TEXTURE_GEN_Q = 0x0C63
+ TEXTURE_GEN_R = 0x0C62
+ TEXTURE_GEN_S = 0x0C60
+ TEXTURE_GEN_T = 0x0C61
+ VERTEX_ARRAY = 0x8074
+
+ INVALID_ENUM = 0x0500
+ INVALID_FRAMEBUFFER_OPERATION = 0x0506
+ INVALID_OPERATION = 0x0502
+ INVALID_VALUE = 0x0501
+ NO_ERROR = 0
+ OUT_OF_MEMORY = 0x0505
+ STACK_OVERFLOW = 0x0503
+ STACK_UNDERFLOW = 0x0504
+
+ N2D = 0x0600
+ N3D = 0x0601
+ N3D_COLOR = 0x0602
+ N3D_COLOR_TEXTURE = 0x0603
+ N4D_COLOR_TEXTURE = 0x0604
+
+ BITMAP_TOKEN = 0x0704
+ COPY_PIXEL_TOKEN = 0x0706
+ DRAW_PIXEL_TOKEN = 0x0705
+ LINE_RESET_TOKEN = 0x0707
+ LINE_TOKEN = 0x0702
+ PASS_THROUGH_TOKEN = 0x0700
+ POINT_TOKEN = 0x0701
+ POLYGON_TOKEN = 0x0703
+
+ EXP = 0x0800
+ EXP2 = 0x0801
+ LINEAR = 0x2601
+
+ FOG_COLOR = 0x0B66
+ FOG_DENSITY = 0x0B62
+ FOG_END = 0x0B64
+ FOG_INDEX = 0x0B61
+ FOG_MODE = 0x0B65
+ FOG_START = 0x0B63
+
+ CCW = 0x0901
+ CW = 0x0900
+
+ COEFF = 0x0A00
+ DOMAIN = 0x0A02
+ ORDER = 0x0A01
+
+ PIXEL_MAP_A_TO_A = 0x0C79
+ PIXEL_MAP_B_TO_B = 0x0C78
+ PIXEL_MAP_G_TO_G = 0x0C77
+ PIXEL_MAP_I_TO_A = 0x0C75
+ PIXEL_MAP_I_TO_B = 0x0C74
+ PIXEL_MAP_I_TO_G = 0x0C73
+ PIXEL_MAP_I_TO_I = 0x0C70
+ PIXEL_MAP_I_TO_R = 0x0C72
+ PIXEL_MAP_R_TO_R = 0x0C76
+ PIXEL_MAP_S_TO_S = 0x0C71
+
+ ACCUM_ALPHA_BITS = 0x0D5B
+ ACCUM_BLUE_BITS = 0x0D5A
+ ACCUM_CLEAR_VALUE = 0x0B80
+ ACCUM_GREEN_BITS = 0x0D59
+ ACCUM_RED_BITS = 0x0D58
+ ALIASED_LINE_WIDTH_RANGE = 0x846E
+ ALIASED_POINT_SIZE_RANGE = 0x846D
+ ALPHA_BIAS = 0x0D1D
+ ALPHA_BITS = 0x0D55
+ ALPHA_SCALE = 0x0D1C
+ ALPHA_TEST_FUNC = 0x0BC1
+ ALPHA_TEST_REF = 0x0BC2
+ ATTRIB_STACK_DEPTH = 0x0BB0
+ AUX_BUFFERS = 0x0C00
+ BLEND_DST = 0x0BE0
+ BLEND_SRC = 0x0BE1
+ BLUE_BIAS = 0x0D1B
+ BLUE_BITS = 0x0D54
+ BLUE_SCALE = 0x0D1A
+ CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1
+ COLOR_ARRAY_SIZE = 0x8081
+ COLOR_ARRAY_STRIDE = 0x8083
+ COLOR_ARRAY_TYPE = 0x8082
+ COLOR_CLEAR_VALUE = 0x0C22
+ COLOR_MATERIAL_FACE = 0x0B55
+ COLOR_MATERIAL_PARAMETER = 0x0B56
+ COLOR_WRITEMASK = 0x0C23
+ CULL_FACE_MODE = 0x0B45
+ CURRENT_COLOR = 0x0B00
+ CURRENT_INDEX = 0x0B01
+ CURRENT_NORMAL = 0x0B02
+ CURRENT_RASTER_COLOR = 0x0B04
+ CURRENT_RASTER_DISTANCE = 0x0B09
+ CURRENT_RASTER_INDEX = 0x0B05
+ CURRENT_RASTER_POSITION = 0x0B07
+ CURRENT_RASTER_POSITION_VALID = 0x0B08
+ CURRENT_RASTER_TEXTURE_COORDS = 0x0B06
+ CURRENT_TEXTURE_COORDS = 0x0B03
+ DEPTH_BIAS = 0x0D1F
+ DEPTH_BITS = 0x0D56
+ DEPTH_CLEAR_VALUE = 0x0B73
+ DEPTH_FUNC = 0x0B74
+ DEPTH_RANGE = 0x0B70
+ DEPTH_SCALE = 0x0D1E
+ DEPTH_WRITEMASK = 0x0B72
+ DOUBLEBUFFER = 0x0C32
+ DRAW_BUFFER = 0x0C01
+ EDGE_FLAG = 0x0B43
+ EDGE_FLAG_ARRAY_STRIDE = 0x808C
+ FEEDBACK_BUFFER_SIZE = 0x0DF1
+ FEEDBACK_BUFFER_TYPE = 0x0DF2
+ FOG_HINT = 0x0C54
+ FRONT_FACE = 0x0B46
+ GREEN_BIAS = 0x0D19
+ GREEN_BITS = 0x0D53
+ GREEN_SCALE = 0x0D18
+ INDEX_ARRAY_STRIDE = 0x8086
+ INDEX_ARRAY_TYPE = 0x8085
+ INDEX_BITS = 0x0D51
+ INDEX_CLEAR_VALUE = 0x0C20
+ INDEX_MODE = 0x0C30
+ INDEX_OFFSET = 0x0D13
+ INDEX_SHIFT = 0x0D12
+ INDEX_WRITEMASK = 0x0C21
+ LIGHT_MODEL_AMBIENT = 0x0B53
+ LIGHT_MODEL_COLOR_CONTROL = 0x81F8
+ LIGHT_MODEL_LOCAL_VIEWER = 0x0B51
+ LIGHT_MODEL_TWO_SIDE = 0x0B52
+ LINE_SMOOTH_HINT = 0x0C52
+ LINE_STIPPLE_PATTERN = 0x0B25
+ LINE_STIPPLE_REPEAT = 0x0B26
+ LINE_WIDTH = 0x0B21
+ LINE_WIDTH_GRANULARITY = 0x0B23
+ LINE_WIDTH_RANGE = 0x0B22
+ LIST_BASE = 0x0B32
+ LIST_INDEX = 0x0B33
+ LIST_MODE = 0x0B30
+ LOGIC_OP_MODE = 0x0BF0
+ MAP1_GRID_DOMAIN = 0x0DD0
+ MAP1_GRID_SEGMENTS = 0x0DD1
+ MAP2_GRID_DOMAIN = 0x0DD2
+ MAP2_GRID_SEGMENTS = 0x0DD3
+ MAP_COLOR = 0x0D10
+ MAP_STENCIL = 0x0D11
+ MATRIX_MODE = 0x0BA0
+ MAX_ATTRIB_STACK_DEPTH = 0x0D35
+ MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B
+ MAX_CLIP_DISTANCES = 0x0D32
+ MAX_CLIP_PLANES = 0x0D32
+ MAX_EVAL_ORDER = 0x0D30
+ MAX_LIGHTS = 0x0D31
+ MAX_LIST_NESTING = 0x0B31
+ MAX_MODELVIEW_STACK_DEPTH = 0x0D36
+ MAX_NAME_STACK_DEPTH = 0x0D37
+ MAX_PIXEL_MAP_TABLE = 0x0D34
+ MAX_PROJECTION_STACK_DEPTH = 0x0D38
+ MAX_TEXTURE_SIZE = 0x0D33
+ MAX_TEXTURE_STACK_DEPTH = 0x0D39
+ MAX_VIEWPORT_DIMS = 0x0D3A
+ MODELVIEW_MATRIX = 0x0BA6
+ MODELVIEW_STACK_DEPTH = 0x0BA3
+ NAME_STACK_DEPTH = 0x0D70
+ NORMAL_ARRAY_STRIDE = 0x807F
+ NORMAL_ARRAY_TYPE = 0x807E
+ PACK_ALIGNMENT = 0x0D05
+ PACK_LSB_FIRST = 0x0D01
+ PACK_ROW_LENGTH = 0x0D02
+ PACK_SKIP_PIXELS = 0x0D04
+ PACK_SKIP_ROWS = 0x0D03
+ PACK_SWAP_BYTES = 0x0D00
+ PERSPECTIVE_CORRECTION_HINT = 0x0C50
+ PIXEL_MAP_A_TO_A_SIZE = 0x0CB9
+ PIXEL_MAP_B_TO_B_SIZE = 0x0CB8
+ PIXEL_MAP_G_TO_G_SIZE = 0x0CB7
+ PIXEL_MAP_I_TO_A_SIZE = 0x0CB5
+ PIXEL_MAP_I_TO_B_SIZE = 0x0CB4
+ PIXEL_MAP_I_TO_G_SIZE = 0x0CB3
+ PIXEL_MAP_I_TO_I_SIZE = 0x0CB0
+ PIXEL_MAP_I_TO_R_SIZE = 0x0CB2
+ PIXEL_MAP_R_TO_R_SIZE = 0x0CB6
+ PIXEL_MAP_S_TO_S_SIZE = 0x0CB1
+ POINT_SIZE = 0x0B11
+ POINT_SIZE_GRANULARITY = 0x0B13
+ POINT_SIZE_RANGE = 0x0B12
+ POINT_SMOOTH_HINT = 0x0C51
+ POLYGON_MODE = 0x0B40
+ POLYGON_OFFSET_FACTOR = 0x8038
+ POLYGON_OFFSET_UNITS = 0x2A00
+ POLYGON_SMOOTH_HINT = 0x0C53
+ PROJECTION_MATRIX = 0x0BA7
+ PROJECTION_STACK_DEPTH = 0x0BA4
+ READ_BUFFER = 0x0C02
+ RED_BIAS = 0x0D15
+ RED_BITS = 0x0D52
+ RED_SCALE = 0x0D14
+ RENDER_MODE = 0x0C40
+ RGBA_MODE = 0x0C31
+ SCISSOR_BOX = 0x0C10
+ SELECTION_BUFFER_SIZE = 0x0DF4
+ SHADE_MODEL = 0x0B54
+ SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23
+ SMOOTH_LINE_WIDTH_RANGE = 0x0B22
+ SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13
+ SMOOTH_POINT_SIZE_RANGE = 0x0B12
+ STENCIL_BITS = 0x0D57
+ STENCIL_CLEAR_VALUE = 0x0B91
+ STENCIL_FAIL = 0x0B94
+ STENCIL_FUNC = 0x0B92
+ STENCIL_PASS_DEPTH_FAIL = 0x0B95
+ STENCIL_PASS_DEPTH_PASS = 0x0B96
+ STENCIL_REF = 0x0B97
+ STENCIL_VALUE_MASK = 0x0B93
+ STENCIL_WRITEMASK = 0x0B98
+ STEREO = 0x0C33
+ SUBPIXEL_BITS = 0x0D50
+ TEXTURE_BINDING_1D = 0x8068
+ TEXTURE_BINDING_2D = 0x8069
+ TEXTURE_BINDING_3D = 0x806A
+ TEXTURE_COORD_ARRAY_SIZE = 0x8088
+ TEXTURE_COORD_ARRAY_STRIDE = 0x808A
+ TEXTURE_COORD_ARRAY_TYPE = 0x8089
+ TEXTURE_MATRIX = 0x0BA8
+ TEXTURE_STACK_DEPTH = 0x0BA5
+ UNPACK_ALIGNMENT = 0x0CF5
+ UNPACK_LSB_FIRST = 0x0CF1
+ UNPACK_ROW_LENGTH = 0x0CF2
+ UNPACK_SKIP_PIXELS = 0x0CF4
+ UNPACK_SKIP_ROWS = 0x0CF3
+ UNPACK_SWAP_BYTES = 0x0CF0
+ VERTEX_ARRAY_SIZE = 0x807A
+ VERTEX_ARRAY_STRIDE = 0x807C
+ VERTEX_ARRAY_TYPE = 0x807B
+ VIEWPORT = 0x0BA2
+ ZOOM_X = 0x0D16
+ ZOOM_Y = 0x0D17
+
+ COLOR_ARRAY_POINTER = 0x8090
+ EDGE_FLAG_ARRAY_POINTER = 0x8093
+ FEEDBACK_BUFFER_POINTER = 0x0DF0
+ INDEX_ARRAY_POINTER = 0x8091
+ NORMAL_ARRAY_POINTER = 0x808F
+ SELECTION_BUFFER_POINTER = 0x0DF3
+ TEXTURE_COORD_ARRAY_POINTER = 0x8092
+ VERTEX_ARRAY_POINTER = 0x808E
+
+ TEXTURE_ALPHA_SIZE = 0x805F
+ TEXTURE_BLUE_SIZE = 0x805E
+ TEXTURE_BORDER = 0x1005
+ TEXTURE_BORDER_COLOR = 0x1004
+ TEXTURE_COMPONENTS = 0x1003
+ TEXTURE_GREEN_SIZE = 0x805D
+ TEXTURE_HEIGHT = 0x1001
+ TEXTURE_INTENSITY_SIZE = 0x8061
+ TEXTURE_INTERNAL_FORMAT = 0x1003
+ TEXTURE_LUMINANCE_SIZE = 0x8060
+ TEXTURE_MAG_FILTER = 0x2800
+ TEXTURE_MIN_FILTER = 0x2801
+ TEXTURE_PRIORITY = 0x8066
+ TEXTURE_RED_SIZE = 0x805C
+ TEXTURE_RESIDENT = 0x8067
+ TEXTURE_WIDTH = 0x1000
+ TEXTURE_WRAP_S = 0x2802
+ TEXTURE_WRAP_T = 0x2803
+
+ DONT_CARE = 0x1100
+ FASTEST = 0x1101
+ NICEST = 0x1102
+
+ FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B
+ GENERATE_MIPMAP_HINT = 0x8192
+ TEXTURE_COMPRESSION_HINT = 0x84EF
+
+ C3F_V3F = 0x2A24
+ C4F_N3F_V3F = 0x2A26
+ C4UB_V2F = 0x2A22
+ C4UB_V3F = 0x2A23
+ N3F_V3F = 0x2A25
+ T2F_C3F_V3F = 0x2A2A
+ T2F_C4F_N3F_V3F = 0x2A2C
+ T2F_C4UB_V3F = 0x2A29
+ T2F_N3F_V3F = 0x2A2B
+ T2F_V3F = 0x2A27
+ T4F_C4F_N3F_V4F = 0x2A2D
+ T4F_V4F = 0x2A28
+ V2F = 0x2A20
+ V3F = 0x2A21
+
+ MODULATE = 0x2100
+ REPLACE = 0x1E01
+
+ SEPARATE_SPECULAR_COLOR = 0x81FA
+ SINGLE_COLOR = 0x81F9
+
+ CONSTANT_ATTENUATION = 0x1207
+ LINEAR_ATTENUATION = 0x1208
+ POSITION = 0x1203
+ QUADRATIC_ATTENUATION = 0x1209
+ SPOT_CUTOFF = 0x1206
+ SPOT_DIRECTION = 0x1204
+ SPOT_EXPONENT = 0x1205
+
+ COMPILE = 0x1300
+ COMPILE_AND_EXECUTE = 0x1301
+
+ AND = 0x1501
+ AND_INVERTED = 0x1504
+ AND_REVERSE = 0x1502
+ CLEAR = 0x1500
+ COPY = 0x1503
+ COPY_INVERTED = 0x150C
+ EQUIV = 0x1509
+ INVERT = 0x150A
+ NAND = 0x150E
+ NOOP = 0x1505
+ NOR = 0x1508
+ OR = 0x1507
+ OR_INVERTED = 0x150D
+ OR_REVERSE = 0x150B
+ SET = 0x150F
+ XOR = 0x1506
+
+ MAP_FLUSH_EXPLICIT_BIT = 0x0010
+ MAP_INVALIDATE_BUFFER_BIT = 0x0008
+ MAP_INVALIDATE_RANGE_BIT = 0x0004
+ MAP_READ_BIT = 0x0001
+ MAP_UNSYNCHRONIZED_BIT = 0x0020
+ MAP_WRITE_BIT = 0x0002
+
+ COLOR_INDEXES = 0x1603
+ SHININESS = 0x1601
+
+ MODELVIEW = 0x1700
+ PROJECTION = 0x1701
+ TEXTURE = 0x1702
+
+ LINE = 0x1B01
+ POINT = 0x1B00
+
+ FILL = 0x1B02
+
+ COLOR = 0x1800
+ DEPTH = 0x1801
+ STENCIL = 0x1802
+
+ ALPHA = 0x1906
+ BLUE = 0x1905
+ COLOR_INDEX = 0x1900
+ DEPTH_COMPONENT = 0x1902
+ GREEN = 0x1904
+ LUMINANCE = 0x1909
+ LUMINANCE_ALPHA = 0x190A
+ RED = 0x1903
+ RGB = 0x1907
+ RGBA = 0x1908
+ STENCIL_INDEX = 0x1901
+
+ ALPHA12 = 0x803D
+ ALPHA16 = 0x803E
+ ALPHA4 = 0x803B
+ ALPHA8 = 0x803C
+ INTENSITY = 0x8049
+ INTENSITY12 = 0x804C
+ INTENSITY16 = 0x804D
+ INTENSITY4 = 0x804A
+ INTENSITY8 = 0x804B
+ LUMINANCE12 = 0x8041
+ LUMINANCE12_ALPHA12 = 0x8047
+ LUMINANCE12_ALPHA4 = 0x8046
+ LUMINANCE16 = 0x8042
+ LUMINANCE16_ALPHA16 = 0x8048
+ LUMINANCE4 = 0x803F
+ LUMINANCE4_ALPHA4 = 0x8043
+ LUMINANCE6_ALPHA2 = 0x8044
+ LUMINANCE8 = 0x8040
+ LUMINANCE8_ALPHA8 = 0x8045
+ R3_G3_B2 = 0x2A10
+ RGB10 = 0x8052
+ RGB10_A2 = 0x8059
+ RGB12 = 0x8053
+ RGB16 = 0x8054
+ RGB4 = 0x804F
+ RGB5 = 0x8050
+ RGB5_A1 = 0x8057
+ RGB8 = 0x8051
+ RGBA12 = 0x805A
+ RGBA16 = 0x805B
+ RGBA2 = 0x8055
+ RGBA4 = 0x8056
+ RGBA8 = 0x8058
+
+ PACK_IMAGE_HEIGHT = 0x806C
+ PACK_SKIP_IMAGES = 0x806B
+ UNPACK_IMAGE_HEIGHT = 0x806E
+ UNPACK_SKIP_IMAGES = 0x806D
+
+ BITMAP = 0x1A00
+ UNSIGNED_BYTE_3_3_2 = 0x8032
+ UNSIGNED_INT_10_10_10_2 = 0x8036
+ UNSIGNED_INT_8_8_8_8 = 0x8035
+ UNSIGNED_SHORT_4_4_4_4 = 0x8033
+ UNSIGNED_SHORT_5_5_5_1 = 0x8034
+
+ POINT_DISTANCE_ATTENUATION = 0x8129
+ POINT_FADE_THRESHOLD_SIZE = 0x8128
+ POINT_SIZE_MAX = 0x8127
+ POINT_SIZE_MIN = 0x8126
+
+ LINES = 0x0001
+ LINE_LOOP = 0x0002
+ LINE_STRIP = 0x0003
+ POINTS = 0x0000
+ POLYGON = 0x0009
+ QUADS = 0x0007
+ QUAD_STRIP = 0x0008
+ TRIANGLES = 0x0004
+ TRIANGLE_FAN = 0x0006
+ TRIANGLE_STRIP = 0x0005
+
+ FEEDBACK = 0x1C01
+ RENDER = 0x1C00
+ SELECT = 0x1C02
+
+ FLAT = 0x1D00
+ SMOOTH = 0x1D01
+
+ DECR = 0x1E03
+ INCR = 0x1E02
+ KEEP = 0x1E00
+
+ EXTENSIONS = 0x1F03
+ RENDERER = 0x1F01
+ VENDOR = 0x1F00
+ VERSION = 0x1F02
+
+ S = 0x2000
+ T = 0x2001
+ R = 0x2002
+ Q = 0x2003
+
+ DECAL = 0x2101
+
+ TEXTURE_ENV_COLOR = 0x2201
+ TEXTURE_ENV_MODE = 0x2200
+
+ TEXTURE_ENV = 0x2300
+
+ EYE_LINEAR = 0x2400
+ OBJECT_LINEAR = 0x2401
+ SPHERE_MAP = 0x2402
+
+ EYE_PLANE = 0x2502
+ OBJECT_PLANE = 0x2501
+ TEXTURE_GEN_MODE = 0x2500
+
+ NEAREST = 0x2600
+
+ LINEAR_MIPMAP_LINEAR = 0x2703
+ LINEAR_MIPMAP_NEAREST = 0x2701
+ NEAREST_MIPMAP_LINEAR = 0x2702
+ NEAREST_MIPMAP_NEAREST = 0x2700
+
+ GENERATE_MIPMAP = 0x8191
+ TEXTURE_WRAP_R = 0x8072
+
+ PROXY_TEXTURE_1D = 0x8063
+ PROXY_TEXTURE_2D = 0x8064
+ PROXY_TEXTURE_3D = 0x8070
+ TEXTURE_3D = 0x806F
+ TEXTURE_BASE_LEVEL = 0x813C
+ TEXTURE_MAX_LEVEL = 0x813D
+ TEXTURE_MAX_LOD = 0x813B
+ TEXTURE_MIN_LOD = 0x813A
+
+ CLAMP = 0x2900
+ CLAMP_TO_BORDER = 0x812D
+ CLAMP_TO_EDGE = 0x812F
+ REPEAT = 0x2901
+
+ CONSTANT_COLOR = 0x8001
+ ONE_MINUS_CONSTANT_COLOR = 0x8002
+ CONSTANT_ALPHA = 0x8003
+ ONE_MINUS_CONSTANT_ALPHA = 0x8004
+ FUNC_ADD = 0x8006
+ MIN = 0x8007
+ MAX = 0x8008
+ BLEND_EQUATION_RGB = 0x8009
+ FUNC_SUBTRACT = 0x800A
+ FUNC_REVERSE_SUBTRACT = 0x800B
+ RESCALE_NORMAL = 0x803A
+ TEXTURE_DEPTH = 0x8071
+ MAX_3D_TEXTURE_SIZE = 0x8073
+ MULTISAMPLE = 0x809D
+ SAMPLE_ALPHA_TO_COVERAGE = 0x809E
+ SAMPLE_ALPHA_TO_ONE = 0x809F
+ SAMPLE_COVERAGE = 0x80A0
+ SAMPLE_BUFFERS = 0x80A8
+ SAMPLES = 0x80A9
+ SAMPLE_COVERAGE_VALUE = 0x80AA
+ SAMPLE_COVERAGE_INVERT = 0x80AB
+ BLEND_DST_RGB = 0x80C8
+ BLEND_SRC_RGB = 0x80C9
+ BLEND_DST_ALPHA = 0x80CA
+ BLEND_SRC_ALPHA = 0x80CB
+ BGR = 0x80E0
+ BGRA = 0x80E1
+ MAX_ELEMENTS_VERTICES = 0x80E8
+ MAX_ELEMENTS_INDICES = 0x80E9
+ DEPTH_COMPONENT16 = 0x81A5
+ DEPTH_COMPONENT24 = 0x81A6
+ DEPTH_COMPONENT32 = 0x81A7
+ FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210
+ FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211
+ FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212
+ FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213
+ FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214
+ FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215
+ FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216
+ FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217
+ FRAMEBUFFER_DEFAULT = 0x8218
+ FRAMEBUFFER_UNDEFINED = 0x8219
+ DEPTH_STENCIL_ATTACHMENT = 0x821A
+ MAJOR_VERSION = 0x821B
+ MINOR_VERSION = 0x821C
+ NUM_EXTENSIONS = 0x821D
+ CONTEXT_FLAGS = 0x821E
+ COMPRESSED_RED = 0x8225
+ COMPRESSED_RG = 0x8226
+ RG = 0x8227
+ RG_INTEGER = 0x8228
+ R8 = 0x8229
+ R16 = 0x822A
+ RG8 = 0x822B
+ RG16 = 0x822C
+ R16F = 0x822D
+ R32F = 0x822E
+ RG16F = 0x822F
+ RG32F = 0x8230
+ R8I = 0x8231
+ R8UI = 0x8232
+ R16I = 0x8233
+ R16UI = 0x8234
+ R32I = 0x8235
+ R32UI = 0x8236
+ RG8I = 0x8237
+ RG8UI = 0x8238
+ RG16I = 0x8239
+ RG16UI = 0x823A
+ RG32I = 0x823B
+ RG32UI = 0x823C
+ UNSIGNED_BYTE_2_3_3_REV = 0x8362
+ UNSIGNED_SHORT_5_6_5 = 0x8363
+ UNSIGNED_SHORT_5_6_5_REV = 0x8364
+ UNSIGNED_SHORT_4_4_4_4_REV = 0x8365
+ UNSIGNED_SHORT_1_5_5_5_REV = 0x8366
+ UNSIGNED_INT_8_8_8_8_REV = 0x8367
+ UNSIGNED_INT_2_10_10_10_REV = 0x8368
+ MIRRORED_REPEAT = 0x8370
+ FOG_COORDINATE_SOURCE = 0x8450
+ FOG_COORD_SRC = 0x8450
+ FOG_COORDINATE = 0x8451
+ FOG_COORD = 0x8451
+ FRAGMENT_DEPTH = 0x8452
+ CURRENT_FOG_COORDINATE = 0x8453
+ CURRENT_FOG_COORD = 0x8453
+ FOG_COORDINATE_ARRAY_TYPE = 0x8454
+ FOG_COORD_ARRAY_TYPE = 0x8454
+ FOG_COORDINATE_ARRAY_STRIDE = 0x8455
+ FOG_COORD_ARRAY_STRIDE = 0x8455
+ FOG_COORDINATE_ARRAY_POINTER = 0x8456
+ FOG_COORD_ARRAY_POINTER = 0x8456
+ FOG_COORDINATE_ARRAY = 0x8457
+ FOG_COORD_ARRAY = 0x8457
+ COLOR_SUM = 0x8458
+ CURRENT_SECONDARY_COLOR = 0x8459
+ SECONDARY_COLOR_ARRAY_SIZE = 0x845A
+ SECONDARY_COLOR_ARRAY_TYPE = 0x845B
+ SECONDARY_COLOR_ARRAY_STRIDE = 0x845C
+ SECONDARY_COLOR_ARRAY_POINTER = 0x845D
+ SECONDARY_COLOR_ARRAY = 0x845E
+ CURRENT_RASTER_SECONDARY_COLOR = 0x845F
+ TEXTURE0 = 0x84C0
+ TEXTURE1 = 0x84C1
+ TEXTURE2 = 0x84C2
+ TEXTURE3 = 0x84C3
+ TEXTURE4 = 0x84C4
+ TEXTURE5 = 0x84C5
+ TEXTURE6 = 0x84C6
+ TEXTURE7 = 0x84C7
+ TEXTURE8 = 0x84C8
+ TEXTURE9 = 0x84C9
+ TEXTURE10 = 0x84CA
+ TEXTURE11 = 0x84CB
+ TEXTURE12 = 0x84CC
+ TEXTURE13 = 0x84CD
+ TEXTURE14 = 0x84CE
+ TEXTURE15 = 0x84CF
+ TEXTURE16 = 0x84D0
+ TEXTURE17 = 0x84D1
+ TEXTURE18 = 0x84D2
+ TEXTURE19 = 0x84D3
+ TEXTURE20 = 0x84D4
+ TEXTURE21 = 0x84D5
+ TEXTURE22 = 0x84D6
+ TEXTURE23 = 0x84D7
+ TEXTURE24 = 0x84D8
+ TEXTURE25 = 0x84D9
+ TEXTURE26 = 0x84DA
+ TEXTURE27 = 0x84DB
+ TEXTURE28 = 0x84DC
+ TEXTURE29 = 0x84DD
+ TEXTURE30 = 0x84DE
+ TEXTURE31 = 0x84DF
+ ACTIVE_TEXTURE = 0x84E0
+ CLIENT_ACTIVE_TEXTURE = 0x84E1
+ MAX_TEXTURE_UNITS = 0x84E2
+ TRANSPOSE_MODELVIEW_MATRIX = 0x84E3
+ TRANSPOSE_PROJECTION_MATRIX = 0x84E4
+ TRANSPOSE_TEXTURE_MATRIX = 0x84E5
+ TRANSPOSE_COLOR_MATRIX = 0x84E6
+ SUBTRACT = 0x84E7
+ MAX_RENDERBUFFER_SIZE = 0x84E8
+ COMPRESSED_ALPHA = 0x84E9
+ COMPRESSED_LUMINANCE = 0x84EA
+ COMPRESSED_LUMINANCE_ALPHA = 0x84EB
+ COMPRESSED_INTENSITY = 0x84EC
+ COMPRESSED_RGB = 0x84ED
+ COMPRESSED_RGBA = 0x84EE
+ DEPTH_STENCIL = 0x84F9
+ UNSIGNED_INT_24_8 = 0x84FA
+ MAX_TEXTURE_LOD_BIAS = 0x84FD
+ TEXTURE_FILTER_CONTROL = 0x8500
+ TEXTURE_LOD_BIAS = 0x8501
+ INCR_WRAP = 0x8507
+ DECR_WRAP = 0x8508
+ NORMAL_MAP = 0x8511
+ REFLECTION_MAP = 0x8512
+ TEXTURE_CUBE_MAP = 0x8513
+ TEXTURE_BINDING_CUBE_MAP = 0x8514
+ TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515
+ TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516
+ TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
+ TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518
+ TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519
+ TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A
+ PROXY_TEXTURE_CUBE_MAP = 0x851B
+ MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C
+ COMBINE = 0x8570
+ COMBINE_RGB = 0x8571
+ COMBINE_ALPHA = 0x8572
+ RGB_SCALE = 0x8573
+ ADD_SIGNED = 0x8574
+ INTERPOLATE = 0x8575
+ CONSTANT = 0x8576
+ PRIMARY_COLOR = 0x8577
+ PREVIOUS = 0x8578
+ SOURCE0_RGB = 0x8580
+ SRC0_RGB = 0x8580
+ SOURCE1_RGB = 0x8581
+ SRC1_RGB = 0x8581
+ SOURCE2_RGB = 0x8582
+ SRC2_RGB = 0x8582
+ SOURCE0_ALPHA = 0x8588
+ SRC0_ALPHA = 0x8588
+ SOURCE1_ALPHA = 0x8589
+ SRC1_ALPHA = 0x8589
+ SOURCE2_ALPHA = 0x858A
+ SRC2_ALPHA = 0x858A
+ OPERAND0_RGB = 0x8590
+ OPERAND1_RGB = 0x8591
+ OPERAND2_RGB = 0x8592
+ OPERAND0_ALPHA = 0x8598
+ OPERAND1_ALPHA = 0x8599
+ OPERAND2_ALPHA = 0x859A
+ VERTEX_ARRAY_BINDING = 0x85B5
+ VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622
+ VERTEX_ATTRIB_ARRAY_SIZE = 0x8623
+ VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624
+ VERTEX_ATTRIB_ARRAY_TYPE = 0x8625
+ CURRENT_VERTEX_ATTRIB = 0x8626
+ VERTEX_PROGRAM_POINT_SIZE = 0x8642
+ VERTEX_PROGRAM_TWO_SIDE = 0x8643
+ VERTEX_ATTRIB_ARRAY_POINTER = 0x8645
+ TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0
+ TEXTURE_COMPRESSED = 0x86A1
+ NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2
+ COMPRESSED_TEXTURE_FORMATS = 0x86A3
+ DOT3_RGB = 0x86AE
+ DOT3_RGBA = 0x86AF
+ BUFFER_SIZE = 0x8764
+ BUFFER_USAGE = 0x8765
+ STENCIL_BACK_FUNC = 0x8800
+ STENCIL_BACK_FAIL = 0x8801
+ STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802
+ STENCIL_BACK_PASS_DEPTH_PASS = 0x8803
+ RGBA32F = 0x8814
+ RGB32F = 0x8815
+ RGBA16F = 0x881A
+ RGB16F = 0x881B
+ MAX_DRAW_BUFFERS = 0x8824
+ DRAW_BUFFER0 = 0x8825
+ DRAW_BUFFER1 = 0x8826
+ DRAW_BUFFER2 = 0x8827
+ DRAW_BUFFER3 = 0x8828
+ DRAW_BUFFER4 = 0x8829
+ DRAW_BUFFER5 = 0x882A
+ DRAW_BUFFER6 = 0x882B
+ DRAW_BUFFER7 = 0x882C
+ DRAW_BUFFER8 = 0x882D
+ DRAW_BUFFER9 = 0x882E
+ DRAW_BUFFER10 = 0x882F
+ DRAW_BUFFER11 = 0x8830
+ DRAW_BUFFER12 = 0x8831
+ DRAW_BUFFER13 = 0x8832
+ DRAW_BUFFER14 = 0x8833
+ DRAW_BUFFER15 = 0x8834
+ BLEND_EQUATION_ALPHA = 0x883D
+ TEXTURE_DEPTH_SIZE = 0x884A
+ DEPTH_TEXTURE_MODE = 0x884B
+ TEXTURE_COMPARE_MODE = 0x884C
+ TEXTURE_COMPARE_FUNC = 0x884D
+ COMPARE_R_TO_TEXTURE = 0x884E
+ COMPARE_REF_TO_TEXTURE = 0x884E
+ POINT_SPRITE = 0x8861
+ COORD_REPLACE = 0x8862
+ QUERY_COUNTER_BITS = 0x8864
+ CURRENT_QUERY = 0x8865
+ QUERY_RESULT = 0x8866
+ QUERY_RESULT_AVAILABLE = 0x8867
+ MAX_VERTEX_ATTRIBS = 0x8869
+ VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A
+ MAX_TEXTURE_COORDS = 0x8871
+ MAX_TEXTURE_IMAGE_UNITS = 0x8872
+ ARRAY_BUFFER = 0x8892
+ ELEMENT_ARRAY_BUFFER = 0x8893
+ ARRAY_BUFFER_BINDING = 0x8894
+ ELEMENT_ARRAY_BUFFER_BINDING = 0x8895
+ VERTEX_ARRAY_BUFFER_BINDING = 0x8896
+ NORMAL_ARRAY_BUFFER_BINDING = 0x8897
+ COLOR_ARRAY_BUFFER_BINDING = 0x8898
+ INDEX_ARRAY_BUFFER_BINDING = 0x8899
+ TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A
+ EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B
+ SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C
+ FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D
+ FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D
+ WEIGHT_ARRAY_BUFFER_BINDING = 0x889E
+ VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F
+ READ_ONLY = 0x88B8
+ WRITE_ONLY = 0x88B9
+ READ_WRITE = 0x88BA
+ BUFFER_ACCESS = 0x88BB
+ BUFFER_MAPPED = 0x88BC
+ BUFFER_MAP_POINTER = 0x88BD
+ STREAM_DRAW = 0x88E0
+ STREAM_READ = 0x88E1
+ STREAM_COPY = 0x88E2
+ STATIC_DRAW = 0x88E4
+ STATIC_READ = 0x88E5
+ STATIC_COPY = 0x88E6
+ DYNAMIC_DRAW = 0x88E8
+ DYNAMIC_READ = 0x88E9
+ DYNAMIC_COPY = 0x88EA
+ PIXEL_PACK_BUFFER = 0x88EB
+ PIXEL_UNPACK_BUFFER = 0x88EC
+ PIXEL_PACK_BUFFER_BINDING = 0x88ED
+ PIXEL_UNPACK_BUFFER_BINDING = 0x88EF
+ DEPTH24_STENCIL8 = 0x88F0
+ TEXTURE_STENCIL_SIZE = 0x88F1
+ VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD
+ MAX_ARRAY_TEXTURE_LAYERS = 0x88FF
+ MIN_PROGRAM_TEXEL_OFFSET = 0x8904
+ MAX_PROGRAM_TEXEL_OFFSET = 0x8905
+ SAMPLES_PASSED = 0x8914
+ CLAMP_VERTEX_COLOR = 0x891A
+ CLAMP_FRAGMENT_COLOR = 0x891B
+ CLAMP_READ_COLOR = 0x891C
+ FIXED_ONLY = 0x891D
+ FRAGMENT_SHADER = 0x8B30
+ VERTEX_SHADER = 0x8B31
+ MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49
+ MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A
+ MAX_VARYING_FLOATS = 0x8B4B
+ MAX_VARYING_COMPONENTS = 0x8B4B
+ MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C
+ MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D
+ SHADER_TYPE = 0x8B4F
+ FLOAT_VEC2 = 0x8B50
+ FLOAT_VEC3 = 0x8B51
+ FLOAT_VEC4 = 0x8B52
+ INT_VEC2 = 0x8B53
+ INT_VEC3 = 0x8B54
+ INT_VEC4 = 0x8B55
+ BOOL = 0x8B56
+ BOOL_VEC2 = 0x8B57
+ BOOL_VEC3 = 0x8B58
+ BOOL_VEC4 = 0x8B59
+ FLOAT_MAT2 = 0x8B5A
+ FLOAT_MAT3 = 0x8B5B
+ FLOAT_MAT4 = 0x8B5C
+ SAMPLER_1D = 0x8B5D
+ SAMPLER_2D = 0x8B5E
+ SAMPLER_3D = 0x8B5F
+ SAMPLER_CUBE = 0x8B60
+ SAMPLER_1D_SHADOW = 0x8B61
+ SAMPLER_2D_SHADOW = 0x8B62
+ FLOAT_MAT2x3 = 0x8B65
+ FLOAT_MAT2x4 = 0x8B66
+ FLOAT_MAT3x2 = 0x8B67
+ FLOAT_MAT3x4 = 0x8B68
+ FLOAT_MAT4x2 = 0x8B69
+ FLOAT_MAT4x3 = 0x8B6A
+ DELETE_STATUS = 0x8B80
+ COMPILE_STATUS = 0x8B81
+ LINK_STATUS = 0x8B82
+ VALIDATE_STATUS = 0x8B83
+ INFO_LOG_LENGTH = 0x8B84
+ ATTACHED_SHADERS = 0x8B85
+ ACTIVE_UNIFORMS = 0x8B86
+ ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87
+ SHADER_SOURCE_LENGTH = 0x8B88
+ ACTIVE_ATTRIBUTES = 0x8B89
+ ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A
+ SHADING_LANGUAGE_VERSION = 0x8B8C
+ CURRENT_PROGRAM = 0x8B8D
+ TEXTURE_RED_TYPE = 0x8C10
+ TEXTURE_GREEN_TYPE = 0x8C11
+ TEXTURE_BLUE_TYPE = 0x8C12
+ TEXTURE_ALPHA_TYPE = 0x8C13
+ TEXTURE_DEPTH_TYPE = 0x8C16
+ UNSIGNED_NORMALIZED = 0x8C17
+ TEXTURE_1D_ARRAY = 0x8C18
+ PROXY_TEXTURE_1D_ARRAY = 0x8C19
+ TEXTURE_2D_ARRAY = 0x8C1A
+ PROXY_TEXTURE_2D_ARRAY = 0x8C1B
+ TEXTURE_BINDING_1D_ARRAY = 0x8C1C
+ TEXTURE_BINDING_2D_ARRAY = 0x8C1D
+ R11F_G11F_B10F = 0x8C3A
+ UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B
+ RGB9_E5 = 0x8C3D
+ UNSIGNED_INT_5_9_9_9_REV = 0x8C3E
+ TEXTURE_SHARED_SIZE = 0x8C3F
+ SRGB = 0x8C40
+ SRGB8 = 0x8C41
+ SRGB_ALPHA = 0x8C42
+ SRGB8_ALPHA8 = 0x8C43
+ SLUMINANCE_ALPHA = 0x8C44
+ SLUMINANCE8_ALPHA8 = 0x8C45
+ SLUMINANCE = 0x8C46
+ SLUMINANCE8 = 0x8C47
+ COMPRESSED_SRGB = 0x8C48
+ COMPRESSED_SRGB_ALPHA = 0x8C49
+ COMPRESSED_SLUMINANCE = 0x8C4A
+ COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B
+ TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76
+ TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F
+ MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80
+ TRANSFORM_FEEDBACK_VARYINGS = 0x8C83
+ TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84
+ TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85
+ PRIMITIVES_GENERATED = 0x8C87
+ TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88
+ RASTERIZER_DISCARD = 0x8C89
+ MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A
+ MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B
+ INTERLEAVED_ATTRIBS = 0x8C8C
+ SEPARATE_ATTRIBS = 0x8C8D
+ TRANSFORM_FEEDBACK_BUFFER = 0x8C8E
+ TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F
+ POINT_SPRITE_COORD_ORIGIN = 0x8CA0
+ LOWER_LEFT = 0x8CA1
+ UPPER_LEFT = 0x8CA2
+ STENCIL_BACK_REF = 0x8CA3
+ STENCIL_BACK_VALUE_MASK = 0x8CA4
+ STENCIL_BACK_WRITEMASK = 0x8CA5
+ DRAW_FRAMEBUFFER_BINDING = 0x8CA6
+ FRAMEBUFFER_BINDING = 0x8CA6
+ RENDERBUFFER_BINDING = 0x8CA7
+ READ_FRAMEBUFFER = 0x8CA8
+ DRAW_FRAMEBUFFER = 0x8CA9
+ READ_FRAMEBUFFER_BINDING = 0x8CAA
+ RENDERBUFFER_SAMPLES = 0x8CAB
+ DEPTH_COMPONENT32F = 0x8CAC
+ DEPTH32F_STENCIL8 = 0x8CAD
+ FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0
+ FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1
+ FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2
+ FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3
+ FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4
+ FRAMEBUFFER_COMPLETE = 0x8CD5
+ FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6
+ FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7
+ FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB
+ FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC
+ FRAMEBUFFER_UNSUPPORTED = 0x8CDD
+ MAX_COLOR_ATTACHMENTS = 0x8CDF
+ COLOR_ATTACHMENT0 = 0x8CE0
+ COLOR_ATTACHMENT1 = 0x8CE1
+ COLOR_ATTACHMENT2 = 0x8CE2
+ COLOR_ATTACHMENT3 = 0x8CE3
+ COLOR_ATTACHMENT4 = 0x8CE4
+ COLOR_ATTACHMENT5 = 0x8CE5
+ COLOR_ATTACHMENT6 = 0x8CE6
+ COLOR_ATTACHMENT7 = 0x8CE7
+ COLOR_ATTACHMENT8 = 0x8CE8
+ COLOR_ATTACHMENT9 = 0x8CE9
+ COLOR_ATTACHMENT10 = 0x8CEA
+ COLOR_ATTACHMENT11 = 0x8CEB
+ COLOR_ATTACHMENT12 = 0x8CEC
+ COLOR_ATTACHMENT13 = 0x8CED
+ COLOR_ATTACHMENT14 = 0x8CEE
+ COLOR_ATTACHMENT15 = 0x8CEF
+ DEPTH_ATTACHMENT = 0x8D00
+ STENCIL_ATTACHMENT = 0x8D20
+ FRAMEBUFFER = 0x8D40
+ RENDERBUFFER = 0x8D41
+ RENDERBUFFER_WIDTH = 0x8D42
+ RENDERBUFFER_HEIGHT = 0x8D43
+ RENDERBUFFER_INTERNAL_FORMAT = 0x8D44
+ STENCIL_INDEX1 = 0x8D46
+ STENCIL_INDEX4 = 0x8D47
+ STENCIL_INDEX8 = 0x8D48
+ STENCIL_INDEX16 = 0x8D49
+ RENDERBUFFER_RED_SIZE = 0x8D50
+ RENDERBUFFER_GREEN_SIZE = 0x8D51
+ RENDERBUFFER_BLUE_SIZE = 0x8D52
+ RENDERBUFFER_ALPHA_SIZE = 0x8D53
+ RENDERBUFFER_DEPTH_SIZE = 0x8D54
+ RENDERBUFFER_STENCIL_SIZE = 0x8D55
+ FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56
+ MAX_SAMPLES = 0x8D57
+ RGBA32UI = 0x8D70
+ RGB32UI = 0x8D71
+ RGBA16UI = 0x8D76
+ RGB16UI = 0x8D77
+ RGBA8UI = 0x8D7C
+ RGB8UI = 0x8D7D
+ RGBA32I = 0x8D82
+ RGB32I = 0x8D83
+ RGBA16I = 0x8D88
+ RGB16I = 0x8D89
+ RGBA8I = 0x8D8E
+ RGB8I = 0x8D8F
+ RED_INTEGER = 0x8D94
+ GREEN_INTEGER = 0x8D95
+ BLUE_INTEGER = 0x8D96
+ ALPHA_INTEGER = 0x8D97
+ RGB_INTEGER = 0x8D98
+ RGBA_INTEGER = 0x8D99
+ BGR_INTEGER = 0x8D9A
+ BGRA_INTEGER = 0x8D9B
+ FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD
+ FRAMEBUFFER_SRGB = 0x8DB9
+ COMPRESSED_RED_RGTC1 = 0x8DBB
+ COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC
+ COMPRESSED_RG_RGTC2 = 0x8DBD
+ COMPRESSED_SIGNED_RG_RGTC2 = 0x8DBE
+ SAMPLER_1D_ARRAY = 0x8DC0
+ SAMPLER_2D_ARRAY = 0x8DC1
+ SAMPLER_1D_ARRAY_SHADOW = 0x8DC3
+ SAMPLER_2D_ARRAY_SHADOW = 0x8DC4
+ SAMPLER_CUBE_SHADOW = 0x8DC5
+ UNSIGNED_INT_VEC2 = 0x8DC6
+ UNSIGNED_INT_VEC3 = 0x8DC7
+ UNSIGNED_INT_VEC4 = 0x8DC8
+ INT_SAMPLER_1D = 0x8DC9
+ INT_SAMPLER_2D = 0x8DCA
+ INT_SAMPLER_3D = 0x8DCB
+ INT_SAMPLER_CUBE = 0x8DCC
+ INT_SAMPLER_1D_ARRAY = 0x8DCE
+ INT_SAMPLER_2D_ARRAY = 0x8DCF
+ UNSIGNED_INT_SAMPLER_1D = 0x8DD1
+ UNSIGNED_INT_SAMPLER_2D = 0x8DD2
+ UNSIGNED_INT_SAMPLER_3D = 0x8DD3
+ UNSIGNED_INT_SAMPLER_CUBE = 0x8DD4
+ UNSIGNED_INT_SAMPLER_1D_ARRAY = 0x8DD6
+ UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8DD7
+ QUERY_WAIT = 0x8E13
+ QUERY_NO_WAIT = 0x8E14
+ QUERY_BY_REGION_WAIT = 0x8E15
+ QUERY_BY_REGION_NO_WAIT = 0x8E16
+ BUFFER_ACCESS_FLAGS = 0x911F
+ BUFFER_MAP_LENGTH = 0x9120
+ BUFFER_MAP_OFFSET = 0x9121
+)
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glViewport.xml
+func (gl *GL) Viewport(x, y, width, height int) {
+ C.gl3_0_glViewport(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// DepthRange specifies the mapping of depth values from normalized device
+// coordinates to window coordinates.
+//
+// Parameter nearVal specifies the mapping of the near clipping plane to window
+// coordinates (defaults to 0), while farVal specifies the mapping of the far
+// clipping plane to window coordinates (defaults to 1).
+//
+// After clipping and division by w, depth coordinates range from -1 to 1,
+// corresponding to the near and far clipping planes. DepthRange specifies a
+// linear mapping of the normalized depth coordinates in this range to window
+// depth coordinates. Regardless of the actual depth buffer implementation,
+// window coordinate depth values are treated as though they range from 0 through 1
+// (like color components). Thus, the values accepted by DepthRange are both
+// clamped to this range before they are accepted.
+//
+// The default setting of (0, 1) maps the near plane to 0 and the far plane to 1.
+// With this mapping, the depth buffer range is fully utilized.
+//
+// It is not necessary that nearVal be less than farVal. Reverse mappings such as
+// nearVal 1, and farVal 0 are acceptable.
+//
+// GL.INVALID_OPERATION is generated if DepthRange is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) DepthRange(nearVal, farVal float64) {
+ C.gl3_0_glDepthRange(gl.funcs, C.GLdouble(nearVal), C.GLdouble(farVal))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsEnabled.xml
+func (gl *GL) IsEnabled(cap glbase.Enum) bool {
+ glresult := C.gl3_0_glIsEnabled(gl.funcs, C.GLenum(cap))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexLevelParameteriv.xml
+func (gl *GL) GetTexLevelParameteriv(target glbase.Enum, level int, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetTexLevelParameteriv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexLevelParameterfv.xml
+func (gl *GL) GetTexLevelParameterfv(target glbase.Enum, level int, pname glbase.Enum, params []float32) {
+ C.gl3_0_glGetTexLevelParameterfv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexParameteriv.xml
+func (gl *GL) GetTexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexParameterfv.xml
+func (gl *GL) GetTexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl3_0_glGetTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexImage.xml
+func (gl *GL) GetTexImage(target glbase.Enum, level int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glGetTexImage(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetIntegerv.xml
+func (gl *GL) GetIntegerv(pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetIntegerv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetFloatv.xml
+func (gl *GL) GetFloatv(pname glbase.Enum, params []float32) {
+ C.gl3_0_glGetFloatv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetError.xml
+func (gl *GL) GetError() glbase.Enum {
+ glresult := C.gl3_0_glGetError(gl.funcs)
+ return glbase.Enum(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetDoublev.xml
+func (gl *GL) GetDoublev(pname glbase.Enum, params []float64) {
+ C.gl3_0_glGetDoublev(gl.funcs, C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetBooleanv.xml
+func (gl *GL) GetBooleanv(pname glbase.Enum, params []bool) {
+ C.gl3_0_glGetBooleanv(gl.funcs, C.GLenum(pname), (*C.GLboolean)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glReadPixels.xml
+func (gl *GL) ReadPixels(x, y, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glReadPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glReadBuffer.xml
+func (gl *GL) ReadBuffer(mode glbase.Enum) {
+ C.gl3_0_glReadBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPixelStorei.xml
+func (gl *GL) PixelStorei(pname glbase.Enum, param int32) {
+ C.gl3_0_glPixelStorei(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPixelStoref.xml
+func (gl *GL) PixelStoref(pname glbase.Enum, param float32) {
+ C.gl3_0_glPixelStoref(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDepthFunc.xml
+func (gl *GL) DepthFunc(glfunc glbase.Enum) {
+ C.gl3_0_glDepthFunc(gl.funcs, C.GLenum(glfunc))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilOp.xml
+func (gl *GL) StencilOp(fail, zfail, zpass glbase.Enum) {
+ C.gl3_0_glStencilOp(gl.funcs, C.GLenum(fail), C.GLenum(zfail), C.GLenum(zpass))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilFunc.xml
+func (gl *GL) StencilFunc(glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl3_0_glStencilFunc(gl.funcs, C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLogicOp.xml
+func (gl *GL) LogicOp(opcode glbase.Enum) {
+ C.gl3_0_glLogicOp(gl.funcs, C.GLenum(opcode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlendFunc.xml
+func (gl *GL) BlendFunc(sfactor, dfactor glbase.Enum) {
+ C.gl3_0_glBlendFunc(gl.funcs, C.GLenum(sfactor), C.GLenum(dfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFlush.xml
+func (gl *GL) Flush() {
+ C.gl3_0_glFlush(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFinish.xml
+func (gl *GL) Finish() {
+ C.gl3_0_glFinish(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEnable.xml
+func (gl *GL) Enable(cap glbase.Enum) {
+ C.gl3_0_glEnable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDisable.xml
+func (gl *GL) Disable(cap glbase.Enum) {
+ C.gl3_0_glDisable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDepthMask.xml
+func (gl *GL) DepthMask(flag bool) {
+ C.gl3_0_glDepthMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColorMask.xml
+func (gl *GL) ColorMask(red, green, blue, alpha bool) {
+ C.gl3_0_glColorMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&red)), *(*C.GLboolean)(unsafe.Pointer(&green)), *(*C.GLboolean)(unsafe.Pointer(&blue)), *(*C.GLboolean)(unsafe.Pointer(&alpha)))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilMask.xml
+func (gl *GL) StencilMask(mask uint32) {
+ C.gl3_0_glStencilMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearDepth.xml
+func (gl *GL) ClearDepth(depth float64) {
+ C.gl3_0_glClearDepth(gl.funcs, C.GLdouble(depth))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearStencil.xml
+func (gl *GL) ClearStencil(s int32) {
+ C.gl3_0_glClearStencil(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearColor.xml
+func (gl *GL) ClearColor(red, green, blue, alpha float32) {
+ C.gl3_0_glClearColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClear.xml
+func (gl *GL) Clear(mask glbase.Bitfield) {
+ C.gl3_0_glClear(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawBuffer.xml
+func (gl *GL) DrawBuffer(mode glbase.Enum) {
+ C.gl3_0_glDrawBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexImage2D.xml
+func (gl *GL) TexImage2D(target glbase.Enum, level int, internalFormat int32, width, height, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexImage1D.xml
+func (gl *GL) TexImage1D(target glbase.Enum, level int, internalFormat int32, width, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameteriv.xml
+func (gl *GL) TexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameteri.xml
+func (gl *GL) TexParameteri(target, pname glbase.Enum, param int32) {
+ C.gl3_0_glTexParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameterfv.xml
+func (gl *GL) TexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl3_0_glTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameterf.xml
+func (gl *GL) TexParameterf(target, pname glbase.Enum, param float32) {
+ C.gl3_0_glTexParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glScissor.xml
+func (gl *GL) Scissor(x, y, width, height int) {
+ C.gl3_0_glScissor(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPolygonMode.xml
+func (gl *GL) PolygonMode(face, mode glbase.Enum) {
+ C.gl3_0_glPolygonMode(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointSize.xml
+func (gl *GL) PointSize(size float32) {
+ C.gl3_0_glPointSize(gl.funcs, C.GLfloat(size))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLineWidth.xml
+func (gl *GL) LineWidth(width float32) {
+ C.gl3_0_glLineWidth(gl.funcs, C.GLfloat(width))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glHint.xml
+func (gl *GL) Hint(target, mode glbase.Enum) {
+ C.gl3_0_glHint(gl.funcs, C.GLenum(target), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFrontFace.xml
+func (gl *GL) FrontFace(mode glbase.Enum) {
+ C.gl3_0_glFrontFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCullFace.xml
+func (gl *GL) CullFace(mode glbase.Enum) {
+ C.gl3_0_glCullFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexubv.xml
+func (gl *GL) Indexubv(c []uint8) {
+ C.gl3_0_glIndexubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexub.xml
+func (gl *GL) Indexub(c uint8) {
+ C.gl3_0_glIndexub(gl.funcs, C.GLubyte(c))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsTexture.xml
+func (gl *GL) IsTexture(texture glbase.Texture) bool {
+ glresult := C.gl3_0_glIsTexture(gl.funcs, C.GLuint(texture))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenTextures returns n texture names in textures. There is no guarantee
+// that the names form a contiguous set of integers; however, it is
+// guaranteed that none of the returned names was in use immediately before
+// the call to GenTextures.
+//
+// The generated textures have no dimensionality; they assume the
+// dimensionality of the texture target to which they are first bound (see
+// BindTexture).
+//
+// Texture names returned by a call to GenTextures are not returned by
+// subsequent calls, unless they are first deleted with DeleteTextures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// GenTextures is available in GL version 2.0 or greater.
+func (gl *GL) GenTextures(n int) []glbase.Texture {
+ if n == 0 {
+ return nil
+ }
+ textures := make([]glbase.Texture, n)
+ C.gl3_0_glGenTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+ return textures
+}
+
+// DeleteTextures deletes the textures objects whose names are stored
+// in the textures slice. After a texture is deleted, it has no contents or
+// dimensionality, and its name is free for reuse (for example by
+// GenTextures). If a texture that is currently bound is deleted, the binding
+// reverts to 0 (the default texture).
+//
+// DeleteTextures silently ignores 0's and names that do not correspond to
+// existing textures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// DeleteTextures is available in GL version 2.0 or greater.
+func (gl *GL) DeleteTextures(textures []glbase.Texture) {
+ n := len(textures)
+ if n == 0 {
+ return
+ }
+ C.gl3_0_glDeleteTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindTexture.xml
+func (gl *GL) BindTexture(target glbase.Enum, texture glbase.Texture) {
+ C.gl3_0_glBindTexture(gl.funcs, C.GLenum(target), C.GLuint(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexSubImage2D.xml
+func (gl *GL) TexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexSubImage1D.xml
+func (gl *GL) TexSubImage1D(target glbase.Enum, level, xoffset, width int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexSubImage2D.xml
+func (gl *GL) CopyTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, x, y, width, height int) {
+ C.gl3_0_glCopyTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexSubImage1D.xml
+func (gl *GL) CopyTexSubImage1D(target glbase.Enum, level, xoffset, x, y, width int) {
+ C.gl3_0_glCopyTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexImage2D.xml
+func (gl *GL) CopyTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, height, border int) {
+ C.gl3_0_glCopyTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexImage1D.xml
+func (gl *GL) CopyTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, border int) {
+ C.gl3_0_glCopyTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPolygonOffset.xml
+func (gl *GL) PolygonOffset(factor, units float32) {
+ C.gl3_0_glPolygonOffset(gl.funcs, C.GLfloat(factor), C.GLfloat(units))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawElements.xml
+func (gl *GL) DrawElements(mode glbase.Enum, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glDrawElements(gl.funcs, C.GLenum(mode), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawArrays.xml
+func (gl *GL) DrawArrays(mode glbase.Enum, first, count int) {
+ C.gl3_0_glDrawArrays(gl.funcs, C.GLenum(mode), C.GLint(first), C.GLsizei(count))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexSubImage3D.xml
+func (gl *GL) CopyTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, x, y, width, height int) {
+ C.gl3_0_glCopyTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexSubImage3D.xml
+func (gl *GL) TexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexImage3D.xml
+func (gl *GL) TexImage3D(target glbase.Enum, level int, internalFormat int32, width, height int, depth int32, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawRangeElements.xml
+func (gl *GL) DrawRangeElements(mode glbase.Enum, start, end uint32, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glDrawRangeElements(gl.funcs, C.GLenum(mode), C.GLuint(start), C.GLuint(end), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlendEquation.xml
+func (gl *GL) BlendEquation(mode glbase.Enum) {
+ C.gl3_0_glBlendEquation(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlendColor.xml
+func (gl *GL) BlendColor(red, green, blue, alpha float32) {
+ C.gl3_0_glBlendColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetCompressedTexImage.xml
+func (gl *GL) GetCompressedTexImage(target glbase.Enum, level int, img interface{}) {
+ var img_ptr unsafe.Pointer
+ var img_v = reflect.ValueOf(img)
+ if img != nil && img_v.Kind() != reflect.Slice {
+ panic("parameter img must be a slice")
+ }
+ if img != nil {
+ img_ptr = unsafe.Pointer(img_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glGetCompressedTexImage(gl.funcs, C.GLenum(target), C.GLint(level), img_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexSubImage1D.xml
+func (gl *GL) CompressedTexSubImage1D(target glbase.Enum, level, xoffset, width int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glCompressedTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexSubImage2D.xml
+func (gl *GL) CompressedTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glCompressedTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexSubImage3D.xml
+func (gl *GL) CompressedTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glCompressedTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexImage1D.xml
+func (gl *GL) CompressedTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, width, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glCompressedTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexImage2D.xml
+func (gl *GL) CompressedTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glCompressedTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexImage3D.xml
+func (gl *GL) CompressedTexImage3D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height int, depth int32, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glCompressedTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSampleCoverage.xml
+func (gl *GL) SampleCoverage(value float32, invert bool) {
+ C.gl3_0_glSampleCoverage(gl.funcs, C.GLfloat(value), *(*C.GLboolean)(unsafe.Pointer(&invert)))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glActiveTexture.xml
+func (gl *GL) ActiveTexture(texture glbase.Enum) {
+ C.gl3_0_glActiveTexture(gl.funcs, C.GLenum(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointParameteriv.xml
+func (gl *GL) PointParameteriv(pname glbase.Enum, params []int32) {
+ C.gl3_0_glPointParameteriv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointParameteri.xml
+func (gl *GL) PointParameteri(pname glbase.Enum, param int32) {
+ C.gl3_0_glPointParameteri(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointParameterfv.xml
+func (gl *GL) PointParameterfv(pname glbase.Enum, params []float32) {
+ C.gl3_0_glPointParameterfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointParameterf.xml
+func (gl *GL) PointParameterf(pname glbase.Enum, param float32) {
+ C.gl3_0_glPointParameterf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiDrawArrays.xml
+func (gl *GL) MultiDrawArrays(mode glbase.Enum, first, count []int, drawcount int32) {
+ C.gl3_0_glMultiDrawArrays(gl.funcs, C.GLenum(mode), (*C.GLint)(unsafe.Pointer(&first[0])), (*C.GLsizei)(unsafe.Pointer(&count[0])), C.GLsizei(drawcount))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlendFuncSeparate.xml
+func (gl *GL) BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha glbase.Enum) {
+ C.gl3_0_glBlendFuncSeparate(gl.funcs, C.GLenum(sfactorRGB), C.GLenum(dfactorRGB), C.GLenum(sfactorAlpha), C.GLenum(dfactorAlpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetBufferParameteriv.xml
+func (gl *GL) GetBufferParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetBufferParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glUnmapBuffer.xml
+func (gl *GL) UnmapBuffer(target glbase.Enum) bool {
+ glresult := C.gl3_0_glUnmapBuffer(gl.funcs, C.GLenum(target))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetBufferSubData.xml
+func (gl *GL) GetBufferSubData(target glbase.Enum, offset, size int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glGetBufferSubData(gl.funcs, C.GLenum(target), C.GLintptr(offset), C.GLsizeiptr(size), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBufferSubData.xml
+func (gl *GL) BufferSubData(target glbase.Enum, offset, size int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glBufferSubData(gl.funcs, C.GLenum(target), C.GLintptr(offset), C.GLsizeiptr(size), data_ptr)
+}
+
+// BufferData creates a new data store for the buffer object currently
+// bound to target. Any pre-existing data store is deleted. The new data
+// store is created with the specified size in bytes and usage. If data is
+// not nil, it must be a slice that is used to initialize the data store.
+// In that case the size parameter is ignored and the store size will match
+// the slice data size.
+//
+// In its initial state, the new data store is not mapped, it has a NULL
+// mapped pointer, and its mapped access is GL.READ_WRITE.
+//
+// The target constant must be one of GL.ARRAY_BUFFER, GL.COPY_READ_BUFFER,
+// GL.COPY_WRITE_BUFFER, GL.ELEMENT_ARRAY_BUFFER, GL.PIXEL_PACK_BUFFER,
+// GL.PIXEL_UNPACK_BUFFER, GL.TEXTURE_BUFFER, GL.TRANSFORM_FEEDBACK_BUFFER,
+// or GL.UNIFORM_BUFFER.
+//
+// The usage parameter is a hint to the GL implementation as to how a buffer
+// object's data store will be accessed. This enables the GL implementation
+// to make more intelligent decisions that may significantly impact buffer
+// object performance. It does not, however, constrain the actual usage of
+// the data store. usage can be broken down into two parts: first, the
+// frequency of access (modification and usage), and second, the nature of
+// that access.
+//
+// A usage frequency of STREAM and nature of DRAW is specified via the
+// constant GL.STREAM_DRAW, for example.
+//
+// The usage frequency of access may be one of:
+//
+// STREAM
+// The data store contents will be modified once and used at most a few times.
+//
+// STATIC
+// The data store contents will be modified once and used many times.
+//
+// DYNAMIC
+// The data store contents will be modified repeatedly and used many times.
+//
+// The usage nature of access may be one of:
+//
+// DRAW
+// The data store contents are modified by the application, and used as
+// the source for GL drawing and image specification commands.
+//
+// READ
+// The data store contents are modified by reading data from the GL,
+// and used to return that data when queried by the application.
+//
+// COPY
+// The data store contents are modified by reading data from the GL,
+// and used as the source for GL drawing and image specification
+// commands.
+//
+// Clients must align data elements consistent with the requirements of the
+// client platform, with an additional base-level requirement that an offset
+// within a buffer to a datum comprising N bytes be a multiple of N.
+//
+// Error GL.INVALID_ENUM is generated if target is not one of the accepted
+// buffer targets. GL.INVALID_ENUM is generated if usage is not
+// GL.STREAM_DRAW, GL.STREAM_READ, GL.STREAM_COPY, GL.STATIC_DRAW,
+// GL.STATIC_READ, GL.STATIC_COPY, GL.DYNAMIC_DRAW, GL.DYNAMIC_READ, or
+// GL.DYNAMIC_COPY. GL.INVALID_VALUE is generated if size is negative.
+// GL.INVALID_OPERATION is generated if the reserved buffer object name 0 is
+// bound to target. GL.OUT_OF_MEMORY is generated if the GL is unable to
+// create a data store with the specified size.
+func (gl *GL) BufferData(target glbase.Enum, size int, data interface{}, usage glbase.Enum) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ if data != nil {
+ size = int(data_v.Type().Size()) * data_v.Len()
+ }
+ C.gl3_0_glBufferData(gl.funcs, C.GLenum(target), C.GLsizeiptr(size), data_ptr, C.GLenum(usage))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsBuffer.xml
+func (gl *GL) IsBuffer(buffer glbase.Buffer) bool {
+ glresult := C.gl3_0_glIsBuffer(gl.funcs, C.GLuint(buffer))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenBuffers returns n buffer object names. There is no guarantee that
+// the names form a contiguous set of integers; however, it is guaranteed
+// that none of the returned names was in use immediately before the call to
+// GenBuffers.
+//
+// Buffer object names returned by a call to GenBuffers are not returned by
+// subsequent calls, unless they are first deleted with DeleteBuffers.
+//
+// No buffer objects are associated with the returned buffer object names
+// until they are first bound by calling BindBuffer.
+//
+// Error GL.INVALID_VALUE is generated if n is negative. GL.INVALID_OPERATION
+// is generated if GenBuffers is executed between the execution of Begin
+// and the corresponding execution of End.
+//
+// GenBuffers is available in GL version 1.5 or greater.
+func (gl *GL) GenBuffers(n int) []glbase.Buffer {
+ if n == 0 {
+ return nil
+ }
+ buffers := make([]glbase.Buffer, n)
+ C.gl3_0_glGenBuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&buffers[0])))
+ return buffers
+}
+
+// DeleteBuffers deletes the buffer objects whose names are stored in the
+// buffers slice.
+//
+// After a buffer object is deleted, it has no contents, and its name is free
+// for reuse (for example by GenBuffers). If a buffer object that is
+// currently bound is deleted, the binding reverts to 0 (the absence of any
+// buffer object, which reverts to client memory usage).
+//
+// DeleteBuffers silently ignores 0's and names that do not correspond to
+// existing buffer objects.
+//
+// Error GL.INVALID_VALUE is generated if n is negative. GL.INVALID_OPERATION
+// is generated if DeleteBuffers is executed between the execution of Begin
+// and the corresponding execution of End.
+//
+// DeleteBuffers is available in GL version 1.5 or greater.
+func (gl *GL) DeleteBuffers(buffers []glbase.Buffer) {
+ n := len(buffers)
+ if n == 0 {
+ return
+ }
+ C.gl3_0_glDeleteBuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&buffers[0])))
+}
+
+// BindBuffer creates or puts in use a named buffer object.
+// Calling BindBuffer with target set to GL.ARRAY_BUFFER,
+// GL.ELEMENT_ARRAY_BUFFER, GL.PIXEL_PACK_BUFFER or GL.PIXEL_UNPACK_BUFFER
+// and buffer set to the name of the new buffer object binds the buffer
+// object name to the target. When a buffer object is bound to a target, the
+// previous binding for that target is automatically broken.
+//
+// Buffer object names are unsigned integers. The value zero is reserved, but
+// there is no default buffer object for each buffer object target. Instead,
+// buffer set to zero effectively unbinds any buffer object previously bound,
+// and restores client memory usage for that buffer object target. Buffer
+// object names and the corresponding buffer object contents are local to the
+// shared display-list space (see XCreateContext) of the current GL rendering
+// context; two rendering contexts share buffer object names only if they
+// also share display lists.
+//
+// GenBuffers may be called to generate a set of new buffer object names.
+//
+// The state of a buffer object immediately after it is first bound is an
+// unmapped zero-sized memory buffer with GL.READ_WRITE access and
+// GL.STATIC_DRAW usage.
+//
+// While a non-zero buffer object name is bound, GL operations on the target
+// to which it is bound affect the bound buffer object, and queries of the
+// target to which it is bound return state from the bound buffer object.
+// While buffer object name zero is bound, as in the initial state, attempts
+// to modify or query state on the target to which it is bound generates an
+// GL.INVALID_OPERATION error.
+//
+// When vertex array pointer state is changed, for example by a call to
+// NormalPointer, the current buffer object binding (GL.ARRAY_BUFFER_BINDING)
+// is copied into the corresponding client state for the vertex array type
+// being changed, for example GL.NORMAL_ARRAY_BUFFER_BINDING. While a
+// non-zero buffer object is bound to the GL.ARRAY_BUFFER target, the vertex
+// array pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory is instead interpreted as an offset within the buffer
+// object measured in basic machine units.
+//
+// While a non-zero buffer object is bound to the GL.ELEMENT_ARRAY_BUFFER
+// target, the indices parameter of DrawElements, DrawRangeElements, or
+// MultiDrawElements that is traditionally interpreted as a pointer to
+// client-side memory is instead interpreted as an offset within the buffer
+// object measured in basic machine units.
+//
+// While a non-zero buffer object is bound to the GL.PIXEL_PACK_BUFFER
+// target, the following commands are affected: GetCompressedTexImage,
+// GetConvolutionFilter, GetHistogram, GetMinmax, GetPixelMap,
+// GetPolygonStipple, GetSeparableFilter, GetTexImage, and ReadPixels. The
+// pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory where the pixels are to be packed is instead
+// interpreted as an offset within the buffer object measured in basic
+// machine units.
+//
+// While a non-zero buffer object is bound to the GL.PIXEL_UNPACK_BUFFER
+// target, the following commands are affected: Bitmap, ColorSubTable,
+// ColorTable, CompressedTexImage1D, CompressedTexImage2D,
+// CompressedTexImage3D, CompressedTexSubImage1D, CompressedTexSubImage2D,
+// CompressedTexSubImage3D, ConvolutionFilter1D, ConvolutionFilter2D,
+// DrawPixels, PixelMap, PolygonStipple, SeparableFilter2D, TexImage1D,
+// TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, and TexSubImage3D.
+// The pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory from which the pixels are to be unpacked is instead
+// interpreted as an offset within the buffer object measured in basic
+// machine units.
+//
+// A buffer object binding created with BindBuffer remains active until a
+// different buffer object name is bound to the same target, or until the
+// bound buffer object is deleted with DeleteBuffers.
+//
+// Once created, a named buffer object may be re-bound to any target as often
+// as needed. However, the GL implementation may make choices about how to
+// optimize the storage of a buffer object based on its initial binding
+// target.
+//
+// Error GL.INVALID_ENUM is generated if target is not one of the allowable
+// values. GL.INVALID_OPERATION is generated if BindBuffer is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// BindBuffer is available in GL version 1.5 or greater.
+func (gl *GL) BindBuffer(target glbase.Enum, buffer glbase.Buffer) {
+ C.gl3_0_glBindBuffer(gl.funcs, C.GLenum(target), C.GLuint(buffer))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetQueryObjectuiv.xml
+func (gl *GL) GetQueryObjectuiv(id uint32, pname glbase.Enum, params []uint32) {
+ C.gl3_0_glGetQueryObjectuiv(gl.funcs, C.GLuint(id), C.GLenum(pname), (*C.GLuint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetQueryObjectiv.xml
+func (gl *GL) GetQueryObjectiv(id uint32, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetQueryObjectiv(gl.funcs, C.GLuint(id), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetQueryiv.xml
+func (gl *GL) GetQueryiv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetQueryiv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEndQuery.xml
+func (gl *GL) EndQuery(target glbase.Enum) {
+ C.gl3_0_glEndQuery(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBeginQuery.xml
+func (gl *GL) BeginQuery(target glbase.Enum, id uint32) {
+ C.gl3_0_glBeginQuery(gl.funcs, C.GLenum(target), C.GLuint(id))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsQuery.xml
+func (gl *GL) IsQuery(id uint32) bool {
+ glresult := C.gl3_0_glIsQuery(gl.funcs, C.GLuint(id))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDeleteQueries.xml
+func (gl *GL) DeleteQueries(n int, ids []uint32) {
+ C.gl3_0_glDeleteQueries(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&ids[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGenQueries.xml
+func (gl *GL) GenQueries(n int, ids []uint32) {
+ C.gl3_0_glGenQueries(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&ids[0])))
+}
+
+// VertexAttribPointer specifies the location and data format of the array
+// of generic vertex attributes at index to use when rendering. size
+// specifies the number of components per attribute and must be 1, 2, 3, or
+// 4. type specifies the data type of each component, and stride specifies
+// the byte stride from one attribute to the next, allowing vertices and
+// attributes to be packed into a single array or stored in separate arrays.
+// normalized indicates whether the values stored in an integer format are
+// to be mapped to the range [-1,1] (for signed values) or [0,1]
+// (for unsigned values) when they are accessed and converted to floating
+// point; otherwise, values will be converted to floats directly without
+// normalization. offset is a byte offset into the buffer object's data
+// store, which must be bound to the GL.ARRAY_BUFFER target with BindBuffer.
+//
+// The buffer object binding (GL.ARRAY_BUFFER_BINDING) is saved as
+// generic vertex attribute array client-side state
+// (GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING) for the provided index.
+//
+// To enable and disable a generic vertex attribute array, call
+// EnableVertexAttribArray and DisableVertexAttribArray with index. If
+// enabled, the generic vertex attribute array is used when DrawArrays or
+// DrawElements is called. Each generic vertex attribute array is initially
+// disabled.
+//
+// VertexAttribPointer is typically implemented on the client side.
+//
+// Error GL.INVALID_ENUM is generated if type is not an accepted value.
+// GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_VALUE is generated if size is not 1, 2,
+// 3, or 4. GL.INVALID_VALUE is generated if stride is negative.
+func (gl *GL) VertexAttribPointer(index glbase.Attrib, size int, gltype glbase.Enum, normalized bool, stride int, offset uintptr) {
+ offset_ptr := unsafe.Pointer(offset)
+ C.gl3_0_glVertexAttribPointer(gl.funcs, C.GLuint(index), C.GLint(size), C.GLenum(gltype), *(*C.GLboolean)(unsafe.Pointer(&normalized)), C.GLsizei(stride), offset_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glValidateProgram.xml
+func (gl *GL) ValidateProgram(program glbase.Program) {
+ C.gl3_0_glValidateProgram(gl.funcs, C.GLuint(program))
+}
+
+// UniformMatrix4fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix4fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix4fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(4*4) != 0 {
+ panic("invalid value length for UniformMatrix4fv")
+ }
+ count := len(value) / (4 * 4)
+ C.gl3_0_glUniformMatrix4fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix3fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix3fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix3fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(3*3) != 0 {
+ panic("invalid value length for UniformMatrix3fv")
+ }
+ count := len(value) / (3 * 3)
+ C.gl3_0_glUniformMatrix3fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix2fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix2fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix2fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(2*2) != 0 {
+ panic("invalid value length for UniformMatrix2fv")
+ }
+ count := len(value) / (2 * 2)
+ C.gl3_0_glUniformMatrix2fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform4iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform4iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%4 != 0 {
+ panic("invalid value length for Uniform4iv")
+ }
+ count := len(value) / 4
+ C.gl3_0_glUniform4iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform3iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform3iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%3 != 0 {
+ panic("invalid value length for Uniform3iv")
+ }
+ count := len(value) / 3
+ C.gl3_0_glUniform3iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform2iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform2iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%2 != 0 {
+ panic("invalid value length for Uniform2iv")
+ }
+ count := len(value) / 2
+ C.gl3_0_glUniform2iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform1iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform1iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ count := len(value)
+ C.gl3_0_glUniform1iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform4fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform4fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%4 != 0 {
+ panic("invalid value length for Uniform4fv")
+ }
+ count := len(value) / 4
+ C.gl3_0_glUniform4fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform3fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform3fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%3 != 0 {
+ panic("invalid value length for Uniform3fv")
+ }
+ count := len(value) / 3
+ C.gl3_0_glUniform3fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform2fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform2fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%2 != 0 {
+ panic("invalid value length for Uniform2fv")
+ }
+ count := len(value) / 2
+ C.gl3_0_glUniform2fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform1fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform1fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ count := len(value)
+ C.gl3_0_glUniform1fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform4i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform4i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4i(location glbase.Uniform, v0, v1, v2, v3 int32) {
+ C.gl3_0_glUniform4i(gl.funcs, C.GLint(location), C.GLint(v0), C.GLint(v1), C.GLint(v2), C.GLint(v3))
+}
+
+// Uniform3i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform3i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3i(location glbase.Uniform, v0, v1, v2 int32) {
+ C.gl3_0_glUniform3i(gl.funcs, C.GLint(location), C.GLint(v0), C.GLint(v1), C.GLint(v2))
+}
+
+// Uniform2i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform2i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2i(location glbase.Uniform, v0, v1 int32) {
+ C.gl3_0_glUniform2i(gl.funcs, C.GLint(location), C.GLint(v0), C.GLint(v1))
+}
+
+// Uniform1i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform1i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1i(location glbase.Uniform, v0 int32) {
+ C.gl3_0_glUniform1i(gl.funcs, C.GLint(location), C.GLint(v0))
+}
+
+// Uniform4f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform4f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4f(location glbase.Uniform, v0, v1, v2, v3 float32) {
+ C.gl3_0_glUniform4f(gl.funcs, C.GLint(location), C.GLfloat(v0), C.GLfloat(v1), C.GLfloat(v2), C.GLfloat(v3))
+}
+
+// Uniform3f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform3f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3f(location glbase.Uniform, v0, v1, v2 float32) {
+ C.gl3_0_glUniform3f(gl.funcs, C.GLint(location), C.GLfloat(v0), C.GLfloat(v1), C.GLfloat(v2))
+}
+
+// Uniform2f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform2f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2f(location glbase.Uniform, v0, v1 float32) {
+ C.gl3_0_glUniform2f(gl.funcs, C.GLint(location), C.GLfloat(v0), C.GLfloat(v1))
+}
+
+// Uniform1f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform1f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1f(location glbase.Uniform, v0 float32) {
+ C.gl3_0_glUniform1f(gl.funcs, C.GLint(location), C.GLfloat(v0))
+}
+
+// UseProgram installs the program object specified by program as part of
+// current rendering state. One or more executables are created in a program
+// object by successfully attaching shader objects to it with AttachShader,
+// successfully compiling the shader objects with CompileShader, and
+// successfully linking the program object with LinkProgram.
+//
+// A program object will contain an executable that will run on the vertex
+// processor if it contains one or more shader objects of type
+// GL.VERTEX_SHADER that have been successfully compiled and linked.
+// Similarly, a program object will contain an executable that will run on
+// the fragment processor if it contains one or more shader objects of type
+// GL.FRAGMENT_SHADER that have been successfully compiled and linked.
+//
+// Successfully installing an executable on a programmable processor will
+// cause the corresponding fixed functionality of OpenGL to be disabled.
+// Specifically, if an executable is installed on the vertex processor, the
+// OpenGL fixed functionality will be disabled as follows.
+//
+// - The modelview matrix is not applied to vertex coordinates.
+//
+// - The projection matrix is not applied to vertex coordinates.
+//
+// - The texture matrices are not applied to texture coordinates.
+//
+// - Normals are not transformed to eye coordinates.
+//
+// - Normals are not rescaled or normalized.
+//
+// - Normalization of GL.AUTO_NORMAL evaluated normals is not performed.
+//
+// - Texture coordinates are not generated automatically.
+//
+// - Per-vertex lighting is not performed.
+//
+// - Color material computations are not performed.
+//
+// - Color index lighting is not performed.
+//
+// - This list also applies when setting the current raster position.
+//
+// The executable that is installed on the vertex processor is expected to
+// implement any or all of the desired functionality from the preceding list.
+// Similarly, if an executable is installed on the fragment processor, the
+// OpenGL fixed functionality will be disabled as follows.
+//
+// - Texture environment and texture functions are not applied.
+//
+// - Texture application is not applied.
+//
+// - Color sum is not applied.
+//
+// - Fog is not applied.
+//
+// Again, the fragment shader that is installed is expected to implement any
+// or all of the desired functionality from the preceding list.
+//
+// While a program object is in use, applications are free to modify attached
+// shader objects, compile attached shader objects, attach additional shader
+// objects, and detach or delete shader objects. None of these operations
+// will affect the executables that are part of the current state. However,
+// relinking the program object that is currently in use will install the
+// program object as part of the current rendering state if the link
+// operation was successful (see LinkProgram). If the program object
+// currently in use is relinked unsuccessfully, its link status will be set
+// to GL.FALSE, but the executables and associated state will remain part of
+// the current state until a subsequent call to UseProgram removes it from
+// use. After it is removed from use, it cannot be made part of current state
+// until it has been successfully relinked.
+//
+// If program contains shader objects of type GL.VERTEX_SHADER but it does
+// not contain shader objects of type GL.FRAGMENT_SHADER, an executable will
+// be installed on the vertex processor, but fixed functionality will be used
+// for fragment processing. Similarly, if program contains shader objects of
+// type GL.FRAGMENT_SHADER but it does not contain shader objects of type
+// GL.VERTEX_SHADER, an executable will be installed on the fragment
+// processor, but fixed functionality will be used for vertex processing. If
+// program is 0, the programmable processors will be disabled, and fixed
+// functionality will be used for both vertex and fragment processing.
+//
+// While a program object is in use, the state that controls the disabled
+// fixed functionality may also be updated using the normal OpenGL calls.
+//
+// Like display lists and texture objects, the name space for program objects
+// may be shared across a set of contexts, as long as the server sides of the
+// contexts share the same address space. If the name space is shared across
+// contexts, any attached objects and the data associated with those attached
+// objects are shared as well.
+//
+// Applications are responsible for providing the synchronization across API
+// calls when objects are accessed from different execution threads.
+//
+// Error GL.INVALID_VALUE is generated if program is neither 0 nor a value
+// generated by OpenGL. GL.INVALID_OPERATION is generated if program is not
+// a program object. GL.INVALID_OPERATION is generated if program could not
+// be made part of current state. GL.INVALID_OPERATION is generated if
+// UseProgram is executed between the execution of Begin and the
+// corresponding execution of End.
+//
+// UseProgram is available in GL version 2.0 or greater.
+func (gl *GL) UseProgram(program glbase.Program) {
+ C.gl3_0_glUseProgram(gl.funcs, C.GLuint(program))
+}
+
+// ShaderSource sets the source code in shader to the provided source code. Any source
+// code previously stored in the shader object is completely replaced.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader
+// object. GL.INVALID_VALUE is generated if count is less than 0.
+// GL.INVALID_OPERATION is generated if ShaderSource is executed between the
+// execution of Begin and the corresponding execution of End.
+//
+// ShaderSource is available in GL version 2.0 or greater.
+func (gl *GL) ShaderSource(shader glbase.Shader, source ...string) {
+ count := len(source)
+ length := make([]int32, count)
+ source_c := make([]unsafe.Pointer, count)
+ for i, src := range source {
+ length[i] = int32(len(src))
+ if len(src) > 0 {
+ source_c[i] = *(*unsafe.Pointer)(unsafe.Pointer(&src))
+ } else {
+ source_c[i] = unsafe.Pointer(uintptr(0))
+ }
+ }
+ C.gl3_0_glShaderSource(gl.funcs, C.GLuint(shader), C.GLsizei(count), (**C.GLchar)(unsafe.Pointer(&source_c[0])), (*C.GLint)(unsafe.Pointer(&length[0])))
+}
+
+// LinkProgram links the program object specified by program. If any shader
+// objects of type GL.VERTEX_SHADER are attached to program, they will be
+// used to create an executable that will run on the programmable vertex
+// processor. If any shader objects of type GL.FRAGMENT_SHADER are attached
+// to program, they will be used to create an executable that will run on the
+// programmable fragment processor.
+//
+// The status of the link operation will be stored as part of the program
+// object's state. This value will be set to GL.TRUE if the program object
+// was linked without errors and is ready for use, and GL.FALSE otherwise. It
+// can be queried by calling GetProgramiv with arguments program and
+// GL.LINK_STATUS.
+//
+// As a result of a successful link operation, all active user-defined
+// uniform variables belonging to program will be initialized to 0, and each
+// of the program object's active uniform variables will be assigned a
+// location that can be queried by calling GetUniformLocation. Also, any
+// active user-defined attribute variables that have not been bound to a
+// generic vertex attribute index will be bound to one at this time.
+//
+// Linking of a program object can fail for a number of reasons as specified
+// in the OpenGL Shading Language Specification. The following lists some of
+// the conditions that will cause a link error.
+//
+// - The number of active attribute variables supported by the
+// implementation has been exceeded.
+//
+// - The storage limit for uniform variables has been exceeded.
+//
+// - The number of active uniform variables supported by the implementation
+// has been exceeded.
+//
+// - The main function is missing for the vertex shader or the fragment
+// shader.
+//
+// - A varying variable actually used in the fragment shader is not
+// declared in the same way (or is not declared at all) in the vertex
+// shader.
+//
+// - A reference to a function or variable name is unresolved.
+//
+// - A shared global is declared with two different types or two different
+// initial values.
+//
+// - One or more of the attached shader objects has not been successfully
+// compiled.
+//
+// - Binding a generic attribute matrix caused some rows of the matrix to
+// fall outside the allowed maximum of GL.MAX_VERTEX_ATTRIBS.
+//
+// - Not enough contiguous vertex attribute slots could be found to bind
+// attribute matrices.
+//
+// When a program object has been successfully linked, the program object can
+// be made part of current state by calling UseProgram. Whether or not the
+// link operation was successful, the program object's information log will
+// be overwritten. The information log can be retrieved by calling
+// GetProgramInfoLog.
+//
+// LinkProgram will also install the generated executables as part of the
+// current rendering state if the link operation was successful and the
+// specified program object is already currently in use as a result of a
+// previous call to UseProgram. If the program object currently in use is
+// relinked unsuccessfully, its link status will be set to GL.FALSE , but the
+// executables and associated state will remain part of the current state
+// until a subsequent call to UseProgram removes it from use. After it is
+// removed from use, it cannot be made part of current state until it has
+// been successfully relinked.
+//
+// If program contains shader objects of type GL.VERTEX_SHADER but does not
+// contain shader objects of type GL.FRAGMENT_SHADER, the vertex shader will
+// be linked against the implicit interface for fixed functionality fragment
+// processing. Similarly, if program contains shader objects of type
+// GL.FRAGMENT_SHADER but it does not contain shader objects of type
+// GL.VERTEX_SHADER, the fragment shader will be linked against the implicit
+// interface for fixed functionality vertex processing.
+//
+// The program object's information log is updated and the program is
+// generated at the time of the link operation. After the link operation,
+// applications are free to modify attached shader objects, compile attached
+// shader objects, detach shader objects, delete shader objects, and attach
+// additional shader objects. None of these operations affects the
+// information log or the program that is part of the program object.
+//
+// If the link operation is unsuccessful, any information about a previous
+// link operation on program is lost (a failed link does not restore the
+// old state of program). Certain information can still be retrieved
+// from program even after an unsuccessful link operation. See for instance
+// GetActiveAttrib and GetActiveUniform.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program
+// object. GL.INVALID_OPERATION is generated if LinkProgram is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// LinkProgram is available in GL version 2.0 or greater.
+func (gl *GL) LinkProgram(program glbase.Program) {
+ C.gl3_0_glLinkProgram(gl.funcs, C.GLuint(program))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsShader.xml
+func (gl *GL) IsShader(shader glbase.Shader) bool {
+ glresult := C.gl3_0_glIsShader(gl.funcs, C.GLuint(shader))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsProgram.xml
+func (gl *GL) IsProgram(program glbase.Program) bool {
+ glresult := C.gl3_0_glIsProgram(gl.funcs, C.GLuint(program))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GetVertexAttribiv returns in params the value of a generic vertex attribute
+// parameter. The generic vertex attribute to be queried is specified by
+// index, and the parameter to be queried is specified by pname.
+//
+// The accepted parameter names are as follows:
+//
+// GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
+// params returns a single value, the name of the buffer object
+// currently bound to the binding point corresponding to generic vertex
+// attribute array index. If no buffer object is bound, 0 is returned.
+// The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_ENABLED
+// params returns a single value that is non-zero (true) if the vertex
+// attribute array for index is enabled and 0 (false) if it is
+// disabled. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_SIZE
+// params returns a single value, the size of the vertex attribute
+// array for index. The size is the number of values for each element
+// of the vertex attribute array, and it will be 1, 2, 3, or 4. The
+// initial value is 4.
+//
+// GL.VERTEX_ATTRIB_ARRAY_STRIDE
+// params returns a single value, the array stride for (number of bytes
+// between successive elements in) the vertex attribute array for
+// index. A value of 0 indicates that the array elements are stored
+// sequentially in memory. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_TYPE
+// params returns a single value, a symbolic constant indicating the
+// array type for the vertex attribute array for index. Possible values
+// are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
+// GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
+// GL.FLOAT.
+//
+// GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
+// params returns a single value that is non-zero (true) if fixed-point
+// data types for the vertex attribute array indicated by index are
+// normalized when they are converted to floating point, and 0 (false)
+// otherwise. The initial value is 0.
+//
+// GL.CURRENT_VERTEX_ATTRIB
+// params returns four values that represent the current value for the
+// generic vertex attribute specified by index. Generic vertex
+// attribute 0 is unique in that it has no current state, so an error
+// will be generated if index is 0. The initial value for all other
+// generic vertex attributes is (0,0,0,1).
+//
+// All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent
+// client-side state.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an
+// accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname
+// is GL.CURRENT_VERTEX_ATTRIB.
+//
+// GetVertexAttribiv is available in GL version 2.0 or greater.
+func (gl *GL) GetVertexAttribiv(index glbase.Attrib, pname glbase.Enum, params []int32) {
+ var params_c [4]int32
+ C.gl3_0_glGetVertexAttribiv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetVertexAttribfv returns in params the value of a generic vertex attribute
+// parameter. The generic vertex attribute to be queried is specified by
+// index, and the parameter to be queried is specified by pname.
+//
+// The accepted parameter names are as follows:
+//
+// GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
+// params returns a single value, the name of the buffer object
+// currently bound to the binding point corresponding to generic vertex
+// attribute array index. If no buffer object is bound, 0 is returned.
+// The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_ENABLED
+// params returns a single value that is non-zero (true) if the vertex
+// attribute array for index is enabled and 0 (false) if it is
+// disabled. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_SIZE
+// params returns a single value, the size of the vertex attribute
+// array for index. The size is the number of values for each element
+// of the vertex attribute array, and it will be 1, 2, 3, or 4. The
+// initial value is 4.
+//
+// GL.VERTEX_ATTRIB_ARRAY_STRIDE
+// params returns a single value, the array stride for (number of bytes
+// between successive elements in) the vertex attribute array for
+// index. A value of 0 indicates that the array elements are stored
+// sequentially in memory. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_TYPE
+// params returns a single value, a symbolic constant indicating the
+// array type for the vertex attribute array for index. Possible values
+// are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
+// GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
+// GL.FLOAT.
+//
+// GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
+// params returns a single value that is non-zero (true) if fixed-point
+// data types for the vertex attribute array indicated by index are
+// normalized when they are converted to floating point, and 0 (false)
+// otherwise. The initial value is 0.
+//
+// GL.CURRENT_VERTEX_ATTRIB
+// params returns four values that represent the current value for the
+// generic vertex attribute specified by index. Generic vertex
+// attribute 0 is unique in that it has no current state, so an error
+// will be generated if index is 0. The initial value for all other
+// generic vertex attributes is (0,0,0,1).
+//
+// All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent
+// client-side state.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an
+// accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname
+// is GL.CURRENT_VERTEX_ATTRIB.
+//
+// GetVertexAttribfv is available in GL version 2.0 or greater.
+func (gl *GL) GetVertexAttribfv(index glbase.Attrib, pname glbase.Enum, params []float32) {
+ var params_c [4]float32
+ C.gl3_0_glGetVertexAttribfv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetVertexAttribdv returns in params the value of a generic vertex attribute
+// parameter. The generic vertex attribute to be queried is specified by
+// index, and the parameter to be queried is specified by pname.
+//
+// The accepted parameter names are as follows:
+//
+// GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
+// params returns a single value, the name of the buffer object
+// currently bound to the binding point corresponding to generic vertex
+// attribute array index. If no buffer object is bound, 0 is returned.
+// The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_ENABLED
+// params returns a single value that is non-zero (true) if the vertex
+// attribute array for index is enabled and 0 (false) if it is
+// disabled. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_SIZE
+// params returns a single value, the size of the vertex attribute
+// array for index. The size is the number of values for each element
+// of the vertex attribute array, and it will be 1, 2, 3, or 4. The
+// initial value is 4.
+//
+// GL.VERTEX_ATTRIB_ARRAY_STRIDE
+// params returns a single value, the array stride for (number of bytes
+// between successive elements in) the vertex attribute array for
+// index. A value of 0 indicates that the array elements are stored
+// sequentially in memory. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_TYPE
+// params returns a single value, a symbolic constant indicating the
+// array type for the vertex attribute array for index. Possible values
+// are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
+// GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
+// GL.FLOAT.
+//
+// GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
+// params returns a single value that is non-zero (true) if fixed-point
+// data types for the vertex attribute array indicated by index are
+// normalized when they are converted to floating point, and 0 (false)
+// otherwise. The initial value is 0.
+//
+// GL.CURRENT_VERTEX_ATTRIB
+// params returns four values that represent the current value for the
+// generic vertex attribute specified by index. Generic vertex
+// attribute 0 is unique in that it has no current state, so an error
+// will be generated if index is 0. The initial value for all other
+// generic vertex attributes is (0,0,0,1).
+//
+// All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent
+// client-side state.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an
+// accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname
+// is GL.CURRENT_VERTEX_ATTRIB.
+//
+// GetVertexAttribdv is available in GL version 2.0 or greater.
+func (gl *GL) GetVertexAttribdv(index glbase.Attrib, pname glbase.Enum, params []float64) {
+ var params_c [4]float64
+ C.gl3_0_glGetVertexAttribdv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetUniformiv returns in params the value of the specified uniform
+// variable. The type of the uniform variable specified by location
+// determines the number of values returned. If the uniform variable is
+// defined in the shader as a boolean, int, or float, a single value will be
+// returned. If it is defined as a vec2, ivec2, or bvec2, two values will be
+// returned. If it is defined as a vec3, ivec3, or bvec3, three values will
+// be returned, and so on. To query values stored in uniform variables
+// declared as arrays, call GetUniformiv for each element of the array. To
+// query values stored in uniform variables declared as structures, call
+// GetUniformiv for each field in the structure. The values for uniform
+// variables declared as a matrix will be returned in column major order.
+//
+// The locations assigned to uniform variables are not known until the
+// program object is linked. After linking has occurred, the command
+// GetUniformLocation can be used to obtain the location of a uniform
+// variable. This location value can then be passed to GetUniformiv in order
+// to query the current value of the uniform variable. After a program object
+// has been linked successfully, the index values for uniform variables
+// remain fixed until the next link command occurs. The uniform variable
+// values can only be queried after a link if the link was successful.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program
+// object. GL.INVALID_OPERATION is generated if program has not been
+// successfully linked. GL.INVALID_OPERATION is generated if location does
+// not correspond to a valid uniform variable location for the specified
+// program object. GL.INVALID_OPERATION is generated if GetUniformiv is
+// executed between the execution of Begin and the corresponding execution of
+// End.
+//
+// GetUniformiv is available in GL version 2.0 or greater.
+func (gl *GL) GetUniformiv(program glbase.Program, location glbase.Uniform, params []int32) {
+ var params_c [4]int32
+ C.gl3_0_glGetUniformiv(gl.funcs, C.GLuint(program), C.GLint(location), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetUniformfv returns in params the value of the specified uniform
+// variable. The type of the uniform variable specified by location
+// determines the number of values returned. If the uniform variable is
+// defined in the shader as a boolean, int, or float, a single value will be
+// returned. If it is defined as a vec2, ivec2, or bvec2, two values will be
+// returned. If it is defined as a vec3, ivec3, or bvec3, three values will
+// be returned, and so on. To query values stored in uniform variables
+// declared as arrays, call GetUniformfv for each element of the array. To
+// query values stored in uniform variables declared as structures, call
+// GetUniformfv for each field in the structure. The values for uniform
+// variables declared as a matrix will be returned in column major order.
+//
+// The locations assigned to uniform variables are not known until the
+// program object is linked. After linking has occurred, the command
+// GetUniformLocation can be used to obtain the location of a uniform
+// variable. This location value can then be passed to GetUniformfv in order
+// to query the current value of the uniform variable. After a program object
+// has been linked successfully, the index values for uniform variables
+// remain fixed until the next link command occurs. The uniform variable
+// values can only be queried after a link if the link was successful.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program
+// object. GL.INVALID_OPERATION is generated if program has not been
+// successfully linked. GL.INVALID_OPERATION is generated if location does
+// not correspond to a valid uniform variable location for the specified
+// program object. GL.INVALID_OPERATION is generated if GetUniformfv is
+// executed between the execution of Begin and the corresponding execution of
+// End.
+//
+// GetUniformfv is available in GL version 2.0 or greater.
+func (gl *GL) GetUniformfv(program glbase.Program, location glbase.Uniform, params []float32) {
+ var params_c [4]float32
+ C.gl3_0_glGetUniformfv(gl.funcs, C.GLuint(program), C.GLint(location), (*C.GLfloat)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetUniformLocation returns an integer that represents the location of a
+// specific uniform variable within a program object. name must be an active
+// uniform variable name in program that is not a structure, an array of
+// structures, or a subcomponent of a vector or a matrix. This function
+// returns -1 if name does not correspond to an active uniform variable in
+// program or if name starts with the reserved prefix "gl_".
+//
+// Uniform variables that are structures or arrays of structures may be
+// queried by calling GetUniformLocation for each field within the
+// structure. The array element operator "[]" and the structure field
+// operator "." may be used in name in order to select elements within an
+// array or fields within a structure. The result of using these operators is
+// not allowed to be another structure, an array of structures, or a
+// subcomponent of a vector or a matrix. Except if the last part of name
+// indicates a uniform variable array, the location of the first element of
+// an array can be retrieved by using the name of the array, or by using the
+// name appended by "[0]".
+//
+// The actual locations assigned to uniform variables are not known until the
+// program object is linked successfully. After linking has occurred, the
+// command GetUniformLocation can be used to obtain the location of a
+// uniform variable. This location value can then be passed to Uniform to
+// set the value of the uniform variable or to GetUniform in order to query
+// the current value of the uniform variable. After a program object has been
+// linked successfully, the index values for uniform variables remain fixed
+// until the next link command occurs. Uniform variable locations and values
+// can only be queried after a link if the link was successful.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program object.
+// GL.INVALID_OPERATION is generated if program has not been successfully
+// linked. GL.INVALID_OPERATION is generated if GetUniformLocation is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// GetUniformLocation is available in GL version 2.0 or greater.
+func (gl *GL) GetUniformLocation(program glbase.Program, name string) glbase.Uniform {
+ name_cstr := C.CString(name)
+ glresult := C.gl3_0_glGetUniformLocation(gl.funcs, C.GLuint(program), (*C.GLchar)(name_cstr))
+ C.free(unsafe.Pointer(name_cstr))
+ return glbase.Uniform(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetShaderSource.xml
+func (gl *GL) GetShaderSource(shader glbase.Shader, bufSize int32, length []int32, source []byte) {
+ C.gl3_0_glGetShaderSource(gl.funcs, C.GLuint(shader), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLchar)(unsafe.Pointer(&source[0])))
+}
+
+// GetShaderInfoLog returns the information log for the specified shader
+// object. The information log for a shader object is modified when the
+// shader is compiled.
+//
+// The information log for a shader object is a string that may contain
+// diagnostic messages, warning messages, and other information about the
+// last compile operation. When a shader object is created, its information
+// log will be a string of length 0, and the size of the current log can be
+// obtained by calling GetShaderiv with the value GL.INFO_LOG_LENGTH.
+//
+// The information log for a shader object is the OpenGL implementer's
+// primary mechanism for conveying information about the compilation process.
+// Therefore, the information log can be helpful to application developers
+// during the development process, even when compilation is successful.
+// Application developers should not expect different OpenGL implementations
+// to produce identical information logs.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader
+// object. GL.INVALID_VALUE is generated if maxLength is less than 0.
+// GL.INVALID_OPERATION is generated if GetShaderInfoLog is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// GetShaderInfoLog is available in GL version 2.0 or greater.
+func (gl *GL) GetShaderInfoLog(shader glbase.Shader) []byte {
+ var params [1]int32
+ var length int32
+ gl.GetShaderiv(shader, INFO_LOG_LENGTH, params[:])
+ bufSize := params[0]
+ infoLog := make([]byte, int(bufSize))
+ C.gl3_0_glGetShaderInfoLog(gl.funcs, C.GLuint(shader), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length)), (*C.GLchar)(unsafe.Pointer(&infoLog[0])))
+ return infoLog
+}
+
+// GetShaderiv GetShader returns in params the value of a parameter for a specific
+// shader object. The following parameters are defined:
+//
+// GL.SHADER_TYPE
+// params returns GL.VERTEX_SHADER if shader is a vertex shader object,
+// and GL.FRAGMENT_SHADER if shader is a fragment shader object.
+//
+// GL.DELETE_STATUS
+// params returns GL.TRUE if shader is currently flagged for deletion,
+// and GL.FALSE otherwise.
+//
+// GL.COMPILE_STATUS
+// params returns GL.TRUE if the last compile operation on shader was
+// successful, and GL.FALSE otherwise.
+//
+// GL.INFO_LOG_LENGTH
+// params returns the number of characters in the information log for
+// shader including the null termination character (the size of the
+// character buffer required to store the information log). If shader has
+// no information log, a value of 0 is returned.
+//
+// GL.SHADER_SOURCE_LENGTH
+// params returns the length of the concatenation of the source strings
+// that make up the shader source for the shader, including the null
+// termination character. (the size of the character buffer
+// required to store the shader source). If no source code exists, 0 is
+// returned.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader does not refer to a
+// shader object. GL.INVALID_ENUM is generated if pname is not an accepted
+// value. GL.INVALID_OPERATION is generated if GetShader is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// GetShaderiv is available in GL version 2.0 or greater.
+func (gl *GL) GetShaderiv(shader glbase.Shader, pname glbase.Enum, params []int32) {
+ var params_c [4]int32
+ C.gl3_0_glGetShaderiv(gl.funcs, C.GLuint(shader), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetProgramInfoLog returns the information log for the specified program
+// object. The information log for a program object is modified when the
+// program object is linked or validated.
+//
+// The information log for a program object is either an empty string, or a
+// string containing information about the last link operation, or a string
+// containing information about the last validation operation. It may contain
+// diagnostic messages, warning messages, and other information. When a
+// program object is created, its information log will be a string of length
+// 0, and the size of the current log can be obtained by calling GetProgramiv
+// with the value GL.INFO_LOG_LENGTH.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated
+// by OpenGL. GL.INVALID_OPERATION is generated if program is not a
+// program object.
+func (gl *GL) GetProgramInfoLog(program glbase.Program) []byte {
+ var params [1]int32
+ var length int32
+ gl.GetProgramiv(program, INFO_LOG_LENGTH, params[:])
+ bufSize := params[0]
+ infoLog := make([]byte, int(bufSize))
+ C.gl3_0_glGetProgramInfoLog(gl.funcs, C.GLuint(program), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length)), (*C.GLchar)(unsafe.Pointer(&infoLog[0])))
+ return infoLog
+}
+
+// GetProgramiv returns in params the value of a parameter for a specific
+// program object. The following parameters are defined:
+//
+// GL.DELETE_STATUS
+// params returns GL.TRUE if program is currently flagged for deletion,
+// and GL.FALSE otherwise.
+//
+// GL.LINK_STATUS
+// params returns GL.TRUE if the last link operation on program was
+// successful, and GL.FALSE otherwise.
+//
+// GL.VALIDATE_STATUS
+// params returns GL.TRUE or if the last validation operation on
+// program was successful, and GL.FALSE otherwise.
+//
+// GL.INFO_LOG_LENGTH
+// params returns the number of characters in the information log for
+// program including the null termination character (the size of
+// the character buffer required to store the information log). If
+// program has no information log, a value of 0 is returned.
+//
+// GL.ATTACHED_SHADERS
+// params returns the number of shader objects attached to program.
+//
+// GL.ACTIVE_ATTRIBUTES
+// params returns the number of active attribute variables for program.
+//
+// GL.ACTIVE_ATTRIBUTE_MAX_LENGTH
+// params returns the length of the longest active attribute name for
+// program, including the null termination character (the size of
+// the character buffer required to store the longest attribute name).
+// If no active attributes exist, 0 is returned.
+//
+// GL.ACTIVE_UNIFORMS
+// params returns the number of active uniform variables for program.
+//
+// GL.ACTIVE_UNIFORM_MAX_LENGTH
+// params returns the length of the longest active uniform variable
+// name for program, including the null termination character (i.e.,
+// the size of the character buffer required to store the longest
+// uniform variable name). If no active uniform variables exist, 0 is
+// returned.
+//
+// GL.TRANSFORM_FEEDBACK_BUFFER_MODE
+// params returns a symbolic constant indicating the buffer mode used
+// when transform feedback is active. This may be GL.SEPARATE_ATTRIBS
+// or GL.INTERLEAVED_ATTRIBS.
+//
+// GL.TRANSFORM_FEEDBACK_VARYINGS
+// params returns the number of varying variables to capture in transform
+// feedback mode for the program.
+//
+// GL.TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH
+// params returns the length of the longest variable name to be used for
+// transform feedback, including the null-terminator.
+//
+// GL.GEOMETRY_VERTICES_OUT
+// params returns the maximum number of vertices that the geometry shader in
+// program will output.
+//
+// GL.GEOMETRY_INPUT_TYPE
+// params returns a symbolic constant indicating the primitive type accepted
+// as input to the geometry shader contained in program.
+//
+// GL.GEOMETRY_OUTPUT_TYPE
+// params returns a symbolic constant indicating the primitive type that will
+// be output by the geometry shader contained in program.
+//
+// GL.ACTIVE_UNIFORM_BLOCKS and GL.ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH are
+// available only if the GL version 3.1 or greater.
+//
+// GL.GEOMETRY_VERTICES_OUT, GL.GEOMETRY_INPUT_TYPE and
+// GL.GEOMETRY_OUTPUT_TYPE are accepted only if the GL version is 3.2 or
+// greater.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program does not refer to a
+// program object. GL.INVALID_OPERATION is generated if pname is
+// GL.GEOMETRY_VERTICES_OUT, GL.GEOMETRY_INPUT_TYPE, or
+// GL.GEOMETRY_OUTPUT_TYPE, and program does not contain a geometry shader.
+// GL.INVALID_ENUM is generated if pname is not an accepted value.
+func (gl *GL) GetProgramiv(program glbase.Program, pname glbase.Enum, params []int32) {
+ var params_c [4]int32
+ C.gl3_0_glGetProgramiv(gl.funcs, C.GLuint(program), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetAttribLocation queries the previously linked program object specified
+// by program for the attribute variable specified by name and returns the
+// index of the generic vertex attribute that is bound to that attribute
+// variable. If name is a matrix attribute variable, the index of the first
+// column of the matrix is returned. If the named attribute variable is not
+// an active attribute in the specified program object or if name starts with
+// the reserved prefix "gl_", a value of -1 is returned.
+//
+// The association between an attribute variable name and a generic attribute
+// index can be specified at any time by calling BindAttribLocation.
+// Attribute bindings do not go into effect until LinkProgram is called.
+// After a program object has been linked successfully, the index values for
+// attribute variables remain fixed until the next link command occurs. The
+// attribute values can only be queried after a link if the link was
+// successful. GetAttribLocation returns the binding that actually went
+// into effect the last time LinkProgram was called for the specified
+// program object. Attribute bindings that have been specified since the last
+// link operation are not returned by GetAttribLocation.
+//
+// Error GL_INVALID_OPERATION is generated if program is not a value
+// generated by OpenGL. GL_INVALID_OPERATION is generated if program is not
+// a program object. GL_INVALID_OPERATION is generated if program has not
+// been successfully linked. GL_INVALID_OPERATION is generated if
+// GetAttribLocation is executed between the execution of Begin and the
+// corresponding execution of End.
+//
+// GetAttribLocation is available in GL version 2.0 or greater.
+func (gl *GL) GetAttribLocation(program glbase.Program, name string) glbase.Attrib {
+ name_cstr := C.CString(name)
+ glresult := C.gl3_0_glGetAttribLocation(gl.funcs, C.GLuint(program), (*C.GLchar)(name_cstr))
+ C.free(unsafe.Pointer(name_cstr))
+ return glbase.Attrib(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetAttachedShaders.xml
+func (gl *GL) GetAttachedShaders(program glbase.Program, maxCount int32, count []int, obj []uint32) {
+ C.gl3_0_glGetAttachedShaders(gl.funcs, C.GLuint(program), C.GLsizei(maxCount), (*C.GLsizei)(unsafe.Pointer(&count[0])), (*C.GLuint)(unsafe.Pointer(&obj[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetActiveUniform.xml
+func (gl *GL) GetActiveUniform(program glbase.Program, index uint32, bufSize int32, length []int32, size []int, gltype []glbase.Enum, name []byte) {
+ C.gl3_0_glGetActiveUniform(gl.funcs, C.GLuint(program), C.GLuint(index), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLint)(unsafe.Pointer(&size[0])), (*C.GLenum)(unsafe.Pointer(&gltype[0])), (*C.GLchar)(unsafe.Pointer(&name[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetActiveAttrib.xml
+func (gl *GL) GetActiveAttrib(program glbase.Program, index glbase.Attrib, bufSize int32, length []int32, size []int, gltype []glbase.Enum, name []byte) {
+ C.gl3_0_glGetActiveAttrib(gl.funcs, C.GLuint(program), C.GLuint(index), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLint)(unsafe.Pointer(&size[0])), (*C.GLenum)(unsafe.Pointer(&gltype[0])), (*C.GLchar)(unsafe.Pointer(&name[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEnableVertexAttribArray.xml
+func (gl *GL) EnableVertexAttribArray(index glbase.Attrib) {
+ C.gl3_0_glEnableVertexAttribArray(gl.funcs, C.GLuint(index))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDisableVertexAttribArray.xml
+func (gl *GL) DisableVertexAttribArray(index glbase.Attrib) {
+ C.gl3_0_glDisableVertexAttribArray(gl.funcs, C.GLuint(index))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDetachShader.xml
+func (gl *GL) DetachShader(program glbase.Program, shader glbase.Shader) {
+ C.gl3_0_glDetachShader(gl.funcs, C.GLuint(program), C.GLuint(shader))
+}
+
+// DeleteShader frees the memory and invalidates the name associated with
+// the shader object specified by shader. This command effectively undoes the
+// effects of a call to CreateShader.
+//
+// If a shader object to be deleted is attached to a program object, it will
+// be flagged for deletion, but it will not be deleted until it is no longer
+// attached to any program object, for any rendering context (it must
+// be detached from wherever it was attached before it will be deleted). A
+// value of 0 for shader will be silently ignored.
+//
+// To determine whether an object has been flagged for deletion, call
+// GetShader with arguments shader and GL.DELETE_STATUS.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL.
+//
+// DeleteShader is available in GL version 2.0 or greater.
+func (gl *GL) DeleteShader(shader glbase.Shader) {
+ C.gl3_0_glDeleteShader(gl.funcs, C.GLuint(shader))
+}
+
+// DeleteProgram frees the memory and invalidates the name associated with
+// the program object specified by program. This command effectively undoes
+// the effects of a call to CreateProgram.
+//
+// If a program object is in use as part of current rendering state, it will
+// be flagged for deletion, but it will not be deleted until it is no longer
+// part of current state for any rendering context. If a program object to be
+// deleted has shader objects attached to it, those shader objects will be
+// automatically detached but not deleted unless they have already been
+// flagged for deletion by a previous call to DeleteShader. A value of 0
+// for program will be silently ignored.
+//
+// To determine whether a program object has been flagged for deletion, call
+// GetProgram with arguments program and GL.DELETE_STATUS.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL.
+//
+// DeleteProgram is available in GL version 2.0 or greater.
+func (gl *GL) DeleteProgram(program glbase.Program) {
+ C.gl3_0_glDeleteProgram(gl.funcs, C.GLuint(program))
+}
+
+// CreateShader creates an empty shader object and returns a non-zero value
+// by which it can be referenced. A shader object is used to maintain the
+// source code strings that define a shader. shaderType indicates the type of
+// shader to be created.
+//
+// Two types of shaders are supported. A shader of type GL.VERTEX_SHADER is a
+// shader that is intended to run on the programmable vertex processor and
+// replace the fixed functionality vertex processing in OpenGL. A shader of
+// type GL.FRAGMENT_SHADER is a shader that is intended to run on the
+// programmable fragment processor and replace the fixed functionality
+// fragment processing in OpenGL.
+//
+// When created, a shader object's GL.SHADER_TYPE parameter is set to either
+// GL.VERTEX_SHADER or GL.FRAGMENT_SHADER, depending on the value of
+// shaderType.
+//
+// Like display lists and texture objects, the name space for shader objects
+// may be shared across a set of contexts, as long as the server sides of the
+// contexts share the same address space. If the name space is shared across
+// contexts, any attached objects and the data associated with those attached
+// objects are shared as well.
+//
+// This function returns 0 if an error occurs creating the shader object.
+//
+// Error GL.INVALID_ENUM is generated if shaderType is not an accepted value.
+// GL.INVALID_OPERATION is generated if CreateShader is executed between the
+// execution of Begin and the corresponding execution of End.
+//
+// CreateShader is available in GL version 2.0 or greater.
+func (gl *GL) CreateShader(gltype glbase.Enum) glbase.Shader {
+ glresult := C.gl3_0_glCreateShader(gl.funcs, C.GLenum(gltype))
+ return glbase.Shader(glresult)
+}
+
+// CreateProgram creates an empty program object and returns a non-zero
+// value by which it can be referenced. A program object is an object to
+// which shader objects can be attached. This provides a mechanism to specify
+// the shader objects that will be linked to create a program. It also
+// provides a means for checking the compatibility of the shaders that will
+// be used to create a program (for instance, checking the compatibility
+// between a vertex shader and a fragment shader). When no longer needed as
+// part of a program object, shader objects can be detached.
+//
+// One or more executables are created in a program object by successfully
+// attaching shader objects to it with AttachShader, successfully compiling
+// the shader objects with CompileShader, and successfully linking the
+// program object with LinkProgram. These executables are made part of
+// current state when UseProgram is called. Program objects can be deleted
+// by calling DeleteProgram. The memory associated with the program object
+// will be deleted when it is no longer part of current rendering state for
+// any context.
+//
+// Like display lists and texture objects, the name space for program objects
+// may be shared across a set of contexts, as long as the server sides of the
+// contexts share the same address space. If the name space is shared across
+// contexts, any attached objects and the data associated with those attached
+// objects are shared as well.
+//
+// Applications are responsible for providing the synchronization across API
+// calls when objects are accessed from different execution threads.
+//
+// This function returns 0 if an error occurs creating the program object.
+//
+// Error GL.INVALID_OPERATION is generated if CreateProgram is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// CreateProgram is available in GL version 2.0 or greater.
+func (gl *GL) CreateProgram() glbase.Program {
+ glresult := C.gl3_0_glCreateProgram(gl.funcs)
+ return glbase.Program(glresult)
+}
+
+// CompileShader compiles the source code strings that have been stored in
+// the shader object specified by shader.
+//
+// The compilation status will be stored as part of the shader object's
+// state. This value will be set to GL.TRUE if the shader was compiled without
+// errors and is ready for use, and GL.FALSE otherwise. It can be queried by
+// calling GetShaderiv with arguments shader and GL.COMPILE_STATUS.
+//
+// Compilation of a shader can fail for a number of reasons as specified by
+// the OpenGL Shading Language Specification. Whether or not the compilation
+// was successful, information about the compilation can be obtained from the
+// shader object's information log by calling GetShaderInfoLog.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader
+// object. GL.INVALID_OPERATION is generated if CompileShader is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// CompileShader is available in GL version 2.0 or greater.
+func (gl *GL) CompileShader(shader glbase.Shader) {
+ C.gl3_0_glCompileShader(gl.funcs, C.GLuint(shader))
+}
+
+// BindAttribLocation associates a user-defined attribute variable in the program
+// object specified by program with a generic vertex attribute index. The name
+// parameter specifies the name of the vertex shader attribute variable to
+// which index is to be bound. When program is made part of the current state,
+// values provided via the generic vertex attribute index will modify the
+// value of the user-defined attribute variable specified by name.
+//
+// If name refers to a matrix attribute variable, index refers to the first
+// column of the matrix. Other matrix columns are then automatically bound to
+// locations index+1 for a matrix of type mat2; index+1 and index+2 for a
+// matrix of type mat3; and index+1, index+2, and index+3 for a matrix of
+// type mat4.
+//
+// This command makes it possible for vertex shaders to use descriptive names
+// for attribute variables rather than generic variables that are numbered
+// from 0 to GL.MAX_VERTEX_ATTRIBS-1. The values sent to each generic
+// attribute index are part of current state, just like standard vertex
+// attributes such as color, normal, and vertex position. If a different
+// program object is made current by calling UseProgram, the generic vertex
+// attributes are tracked in such a way that the same values will be observed
+// by attributes in the new program object that are also bound to index.
+//
+// Attribute variable name-to-generic attribute index bindings for a program
+// object can be explicitly assigned at any time by calling
+// BindAttribLocation. Attribute bindings do not go into effect until
+// LinkProgram is called. After a program object has been linked
+// successfully, the index values for generic attributes remain fixed (and
+// their values can be queried) until the next link command occurs.
+//
+// Applications are not allowed to bind any of the standard OpenGL vertex
+// attributes using this command, as they are bound automatically when
+// needed. Any attribute binding that occurs after the program object has
+// been linked will not take effect until the next time the program object is
+// linked.
+//
+// If name was bound previously, that information is lost. Thus you cannot
+// bind one user-defined attribute variable to multiple indices, but you can
+// bind multiple user-defined attribute variables to the same index.
+//
+// Applications are allowed to bind more than one user-defined attribute
+// variable to the same generic vertex attribute index. This is called
+// aliasing, and it is allowed only if just one of the aliased attributes is
+// active in the executable program, or if no path through the shader
+// consumes more than one attribute of a set of attributes aliased to the
+// same location. The compiler and linker are allowed to assume that no
+// aliasing is done and are free to employ optimizations that work only in
+// the absence of aliasing. OpenGL implementations are not required to do
+// error checking to detect aliasing. Because there is no way to bind
+// standard attributes, it is not possible to alias generic attributes with
+// conventional ones (except for generic attribute 0).
+//
+// BindAttribLocation can be called before any vertex shader objects are
+// bound to the specified program object. It is also permissible to bind a
+// generic attribute index to an attribute variable name that is never used
+// in a vertex shader.
+//
+// Active attributes that are not explicitly bound will be bound by the
+// linker when LinkProgram is called. The locations assigned can be queried
+// by calling GetAttribLocation.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS.
+// GL.INVALID_OPERATION is generated if name starts with the reserved prefix "gl_".
+// GL.INVALID_VALUE is generated if program is not a value generated by OpenGL.
+// GL.INVALID_OPERATION is generated if program is not a program object.
+// GL.INVALID_OPERATION is generated if BindAttribLocation is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// BindAttribLocation is available in GL version 2.0 or greater.
+func (gl *GL) BindAttribLocation(program glbase.Program, index glbase.Attrib, name string) {
+ name_cstr := C.CString(name)
+ C.gl3_0_glBindAttribLocation(gl.funcs, C.GLuint(program), C.GLuint(index), (*C.GLchar)(name_cstr))
+ C.free(unsafe.Pointer(name_cstr))
+}
+
+// AttachShader attaches a shader object to a program object.
+//
+// In order to create an executable, there must be a way to specify the list
+// of things that will be linked together. Program objects provide this
+// mechanism. Shaders that are to be linked together in a program object must
+// first be attached to that program object. This indicates that shader will
+// be included in link operations that will be performed on program.
+//
+// All operations that can be performed on a shader object are valid whether
+// or not the shader object is attached to a program object. It is
+// permissible to attach a shader object to a program object before source
+// code has been loaded into the shader object or before the shader object
+// has been compiled. It is permissible to attach multiple shader objects of
+// the same type because each may contain a portion of the complete shader.
+// It is also permissible to attach a shader object to more than one program
+// object. If a shader object is deleted while it is attached to a program
+// object, it will be flagged for deletion, and deletion will not occur until
+// DetachShader is called to detach it from all program objects to which it
+// is attached.
+//
+// Error GL.INVALID_VALUE is generated if either program or shader is not a
+// value generated by OpenGL. GL.INVALID_OPERATION is generated if program
+// is not a program object. GL.INVALID_OPERATION is generated if shader is
+// not a shader object. GL.INVALID_OPERATION is generated if shader is
+// already attached to program. GL.INVALID_OPERATION is generated if
+// AttachShader is executed between the execution of Begin and the
+// corresponding execution of End.
+//
+// AttachShader is available in GL version 2.0 or greater.
+func (gl *GL) AttachShader(program glbase.Program, shader glbase.Shader) {
+ C.gl3_0_glAttachShader(gl.funcs, C.GLuint(program), C.GLuint(shader))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilMaskSeparate.xml
+func (gl *GL) StencilMaskSeparate(face glbase.Enum, mask uint32) {
+ C.gl3_0_glStencilMaskSeparate(gl.funcs, C.GLenum(face), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilFuncSeparate.xml
+func (gl *GL) StencilFuncSeparate(face, glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl3_0_glStencilFuncSeparate(gl.funcs, C.GLenum(face), C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilOpSeparate.xml
+func (gl *GL) StencilOpSeparate(face, sfail, dpfail, dppass glbase.Enum) {
+ C.gl3_0_glStencilOpSeparate(gl.funcs, C.GLenum(face), C.GLenum(sfail), C.GLenum(dpfail), C.GLenum(dppass))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawBuffers.xml
+func (gl *GL) DrawBuffers(n int, bufs []glbase.Enum) {
+ C.gl3_0_glDrawBuffers(gl.funcs, C.GLsizei(n), (*C.GLenum)(unsafe.Pointer(&bufs[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlendEquationSeparate.xml
+func (gl *GL) BlendEquationSeparate(modeRGB, modeAlpha glbase.Enum) {
+ C.gl3_0_glBlendEquationSeparate(gl.funcs, C.GLenum(modeRGB), C.GLenum(modeAlpha))
+}
+
+// UniformMatrix4x3fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix4x3fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix4x3fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(4*3) != 0 {
+ panic("invalid value length for UniformMatrix4x3fv")
+ }
+ count := len(value) / (4 * 3)
+ C.gl3_0_glUniformMatrix4x3fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix3x4fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix3x4fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix3x4fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(3*4) != 0 {
+ panic("invalid value length for UniformMatrix3x4fv")
+ }
+ count := len(value) / (3 * 4)
+ C.gl3_0_glUniformMatrix3x4fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix4x2fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix4x2fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix4x2fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(4*2) != 0 {
+ panic("invalid value length for UniformMatrix4x2fv")
+ }
+ count := len(value) / (4 * 2)
+ C.gl3_0_glUniformMatrix4x2fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix2x4fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix2x4fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix2x4fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(2*4) != 0 {
+ panic("invalid value length for UniformMatrix2x4fv")
+ }
+ count := len(value) / (2 * 4)
+ C.gl3_0_glUniformMatrix2x4fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix3x2fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix3x2fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix3x2fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(3*2) != 0 {
+ panic("invalid value length for UniformMatrix3x2fv")
+ }
+ count := len(value) / (3 * 2)
+ C.gl3_0_glUniformMatrix3x2fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix2x3fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix2x3fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix2x3fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(2*3) != 0 {
+ panic("invalid value length for UniformMatrix2x3fv")
+ }
+ count := len(value) / (2 * 3)
+ C.gl3_0_glUniformMatrix2x3fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsVertexArray.xml
+func (gl *GL) IsVertexArray(array uint32) bool {
+ glresult := C.gl3_0_glIsVertexArray(gl.funcs, C.GLuint(array))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGenVertexArrays.xml
+func (gl *GL) GenVertexArrays(n int, arrays []uint32) {
+ C.gl3_0_glGenVertexArrays(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&arrays[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDeleteVertexArrays.xml
+func (gl *GL) DeleteVertexArrays(n int, arrays []uint32) {
+ C.gl3_0_glDeleteVertexArrays(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&arrays[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindVertexArray.xml
+func (gl *GL) BindVertexArray(array uint32) {
+ C.gl3_0_glBindVertexArray(gl.funcs, C.GLuint(array))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFlushMappedBufferRange.xml
+func (gl *GL) FlushMappedBufferRange(target glbase.Enum, offset, length int) {
+ C.gl3_0_glFlushMappedBufferRange(gl.funcs, C.GLenum(target), C.GLintptr(offset), C.GLsizeiptr(length))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFramebufferTextureLayer.xml
+func (gl *GL) FramebufferTextureLayer(target, attachment glbase.Enum, texture glbase.Texture, level int, layer int32) {
+ C.gl3_0_glFramebufferTextureLayer(gl.funcs, C.GLenum(target), C.GLenum(attachment), C.GLuint(texture), C.GLint(level), C.GLint(layer))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRenderbufferStorageMultisample.xml
+func (gl *GL) RenderbufferStorageMultisample(target glbase.Enum, samples int32, internalFormat glbase.Enum, width, height int) {
+ C.gl3_0_glRenderbufferStorageMultisample(gl.funcs, C.GLenum(target), C.GLsizei(samples), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlitFramebuffer.xml
+func (gl *GL) BlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1 int32, mask glbase.Bitfield, filter glbase.Enum) {
+ C.gl3_0_glBlitFramebuffer(gl.funcs, C.GLint(srcX0), C.GLint(srcY0), C.GLint(srcX1), C.GLint(srcY1), C.GLint(dstX0), C.GLint(dstY0), C.GLint(dstX1), C.GLint(dstY1), C.GLbitfield(mask), C.GLenum(filter))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGenerateMipmap.xml
+func (gl *GL) GenerateMipmap(target glbase.Enum) {
+ C.gl3_0_glGenerateMipmap(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetFramebufferAttachmentParameteriv.xml
+func (gl *GL) GetFramebufferAttachmentParameteriv(target, attachment, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetFramebufferAttachmentParameteriv(gl.funcs, C.GLenum(target), C.GLenum(attachment), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFramebufferRenderbuffer.xml
+func (gl *GL) FramebufferRenderbuffer(target, attachment, renderbuffertarget glbase.Enum, renderbuffer glbase.Renderbuffer) {
+ C.gl3_0_glFramebufferRenderbuffer(gl.funcs, C.GLenum(target), C.GLenum(attachment), C.GLenum(renderbuffertarget), C.GLuint(renderbuffer))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFramebufferTexture3D.xml
+func (gl *GL) FramebufferTexture3D(target, attachment, textarget glbase.Enum, texture glbase.Texture, level int, zoffset int32) {
+ C.gl3_0_glFramebufferTexture3D(gl.funcs, C.GLenum(target), C.GLenum(attachment), C.GLenum(textarget), C.GLuint(texture), C.GLint(level), C.GLint(zoffset))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFramebufferTexture2D.xml
+func (gl *GL) FramebufferTexture2D(target, attachment, textarget glbase.Enum, texture glbase.Texture, level int) {
+ C.gl3_0_glFramebufferTexture2D(gl.funcs, C.GLenum(target), C.GLenum(attachment), C.GLenum(textarget), C.GLuint(texture), C.GLint(level))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFramebufferTexture1D.xml
+func (gl *GL) FramebufferTexture1D(target, attachment, textarget glbase.Enum, texture glbase.Texture, level int) {
+ C.gl3_0_glFramebufferTexture1D(gl.funcs, C.GLenum(target), C.GLenum(attachment), C.GLenum(textarget), C.GLuint(texture), C.GLint(level))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCheckFramebufferStatus.xml
+func (gl *GL) CheckFramebufferStatus(target glbase.Enum) glbase.Enum {
+ glresult := C.gl3_0_glCheckFramebufferStatus(gl.funcs, C.GLenum(target))
+ return glbase.Enum(glresult)
+}
+
+// GenFramebuffers returns n framebuffer object names in ids. There is no
+// guarantee that the names form a contiguous set of integers; however, it is
+// guaranteed that none of the returned names was in use immediately before
+// the call to GenFramebuffers.
+//
+// Framebuffer object names returned by a call to GenFramebuffers are not
+// returned by subsequent calls, unless they are first deleted with
+// DeleteFramebuffers.
+//
+// The names returned in ids are marked as used, for the purposes of
+// GenFramebuffers only, but they acquire state and type only when they are
+// first bound.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+func (gl *GL) GenFramebuffers(n int) []glbase.Framebuffer {
+ if n == 0 {
+ return nil
+ }
+ framebuffers := make([]glbase.Framebuffer, n)
+ C.gl3_0_glGenFramebuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&framebuffers[0])))
+ return framebuffers
+}
+
+// DeleteFramebuffers deletes the framebuffer objects whose names are
+// stored in the framebuffers slice. The name zero is reserved by the GL and
+// is silently ignored, should it occur in framebuffers, as are other unused
+// names. Once a framebuffer object is deleted, its name is again unused and
+// it has no attachments. If a framebuffer that is currently bound to one or
+// more of the targets GL.DRAW_FRAMEBUFFER or GL.READ_FRAMEBUFFER is deleted,
+// it is as though BindFramebuffer had been executed with the corresponding
+// target and framebuffer zero.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// DeleteFramebuffers is available in GL version 3.0 or greater.
+func (gl *GL) DeleteFramebuffers(framebuffers []glbase.Framebuffer) {
+ n := len(framebuffers)
+ if n == 0 {
+ return
+ }
+ C.gl3_0_glDeleteFramebuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&framebuffers[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindFramebuffer.xml
+func (gl *GL) BindFramebuffer(target glbase.Enum, framebuffer glbase.Framebuffer) {
+ C.gl3_0_glBindFramebuffer(gl.funcs, C.GLenum(target), C.GLuint(framebuffer))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsFramebuffer.xml
+func (gl *GL) IsFramebuffer(framebuffer glbase.Framebuffer) bool {
+ glresult := C.gl3_0_glIsFramebuffer(gl.funcs, C.GLuint(framebuffer))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetRenderbufferParameteriv.xml
+func (gl *GL) GetRenderbufferParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetRenderbufferParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRenderbufferStorage.xml
+func (gl *GL) RenderbufferStorage(target, internalFormat glbase.Enum, width, height int) {
+ C.gl3_0_glRenderbufferStorage(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height))
+}
+
+// GenRenderbuffers returns n renderbuffer object names in renderbuffers.
+// There is no guarantee that the names form a contiguous set of integers;
+// however, it is guaranteed that none of the returned names was in use
+// immediately before the call to GenRenderbuffers.
+//
+// Renderbuffer object names returned by a call to GenRenderbuffers are not
+// returned by subsequent calls, unless they are first deleted with
+// DeleteRenderbuffers.
+//
+// The names returned in renderbuffers are marked as used, for the purposes
+// of GenRenderbuffers only, but they acquire state and type only when they
+// are first bound.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// GenRenderbuffers is available in GL version 3.0 or greater.
+func (gl *GL) GenRenderbuffers(n int) []glbase.Renderbuffer {
+ if n == 0 {
+ return nil
+ }
+ renderbuffers := make([]glbase.Renderbuffer, n)
+ C.gl3_0_glGenRenderbuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&renderbuffers[0])))
+ return renderbuffers
+}
+
+// DeleteRenderbuffers deletes the renderbuffer objects whose names are stored
+// in the renderbuffers slice. The name zero is reserved by the GL and
+// is silently ignored, should it occur in renderbuffers, as are other unused
+// names. Once a renderbuffer object is deleted, its name is again unused and
+// it has no contents. If a renderbuffer that is currently bound to the
+// target GL.RENDERBUFFER is deleted, it is as though BindRenderbuffer had
+// been executed with a target of GL.RENDERBUFFER and a name of zero.
+//
+// If a renderbuffer object is attached to one or more attachment points in
+// the currently bound framebuffer, then it as if FramebufferRenderbuffer
+// had been called, with a renderbuffer of zero for each attachment point to
+// which this image was attached in the currently bound framebuffer. In other
+// words, this renderbuffer object is first detached from all attachment
+// ponits in the currently bound framebuffer. Note that the renderbuffer
+// image is specifically not detached from any non-bound framebuffers.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// DeleteRenderbuffers is available in GL version 3.0 or greater.
+func (gl *GL) DeleteRenderbuffers(renderbuffers []glbase.Renderbuffer) {
+ n := len(renderbuffers)
+ if n == 0 {
+ return
+ }
+ C.gl3_0_glDeleteRenderbuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&renderbuffers[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindRenderbuffer.xml
+func (gl *GL) BindRenderbuffer(target glbase.Enum, renderbuffer glbase.Renderbuffer) {
+ C.gl3_0_glBindRenderbuffer(gl.funcs, C.GLenum(target), C.GLuint(renderbuffer))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsRenderbuffer.xml
+func (gl *GL) IsRenderbuffer(renderbuffer glbase.Renderbuffer) bool {
+ glresult := C.gl3_0_glIsRenderbuffer(gl.funcs, C.GLuint(renderbuffer))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearBufferfi.xml
+func (gl *GL) ClearBufferfi(buffer glbase.Enum, drawbuffer int32, depth float32, stencil int32) {
+ C.gl3_0_glClearBufferfi(gl.funcs, C.GLenum(buffer), C.GLint(drawbuffer), C.GLfloat(depth), C.GLint(stencil))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearBufferfv.xml
+func (gl *GL) ClearBufferfv(buffer glbase.Enum, drawbuffer int32, value []float32) {
+ C.gl3_0_glClearBufferfv(gl.funcs, C.GLenum(buffer), C.GLint(drawbuffer), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearBufferuiv.xml
+func (gl *GL) ClearBufferuiv(buffer glbase.Enum, drawbuffer int32, value []uint32) {
+ C.gl3_0_glClearBufferuiv(gl.funcs, C.GLenum(buffer), C.GLint(drawbuffer), (*C.GLuint)(unsafe.Pointer(&value[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearBufferiv.xml
+func (gl *GL) ClearBufferiv(buffer glbase.Enum, drawbuffer int32, value []int32) {
+ C.gl3_0_glClearBufferiv(gl.funcs, C.GLenum(buffer), C.GLint(drawbuffer), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexParameterIuiv.xml
+func (gl *GL) GetTexParameterIuiv(target, pname glbase.Enum, params []uint32) {
+ C.gl3_0_glGetTexParameterIuiv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLuint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexParameterIiv.xml
+func (gl *GL) GetTexParameterIiv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetTexParameterIiv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameterIuiv.xml
+func (gl *GL) TexParameterIuiv(target, pname glbase.Enum, params []uint32) {
+ C.gl3_0_glTexParameterIuiv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLuint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameterIiv.xml
+func (gl *GL) TexParameterIiv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glTexParameterIiv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// Uniform4uiv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform4uiv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4uiv(location glbase.Uniform, value []uint32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%4 != 0 {
+ panic("invalid value length for Uniform4uiv")
+ }
+ count := len(value) / 4
+ C.gl3_0_glUniform4uiv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLuint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform3uiv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform3uiv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3uiv(location glbase.Uniform, value []uint32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%3 != 0 {
+ panic("invalid value length for Uniform3uiv")
+ }
+ count := len(value) / 3
+ C.gl3_0_glUniform3uiv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLuint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform2uiv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform2uiv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2uiv(location glbase.Uniform, value []uint32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%2 != 0 {
+ panic("invalid value length for Uniform2uiv")
+ }
+ count := len(value) / 2
+ C.gl3_0_glUniform2uiv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLuint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform1uiv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform1uiv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1uiv(location glbase.Uniform, value []uint32) {
+ if len(value) == 0 {
+ return
+ }
+ count := len(value)
+ C.gl3_0_glUniform1uiv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLuint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform4ui modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform4ui operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4ui(location glbase.Uniform, v0, v1, v2, v3 uint32) {
+ C.gl3_0_glUniform4ui(gl.funcs, C.GLint(location), C.GLuint(v0), C.GLuint(v1), C.GLuint(v2), C.GLuint(v3))
+}
+
+// Uniform3ui modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform3ui operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3ui(location glbase.Uniform, v0, v1, v2 uint32) {
+ C.gl3_0_glUniform3ui(gl.funcs, C.GLint(location), C.GLuint(v0), C.GLuint(v1), C.GLuint(v2))
+}
+
+// Uniform2ui modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform2ui operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2ui(location glbase.Uniform, v0, v1 uint32) {
+ C.gl3_0_glUniform2ui(gl.funcs, C.GLint(location), C.GLuint(v0), C.GLuint(v1))
+}
+
+// Uniform1ui modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform1ui operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1ui(location glbase.Uniform, v0 uint32) {
+ C.gl3_0_glUniform1ui(gl.funcs, C.GLint(location), C.GLuint(v0))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetFragDataLocation.xml
+func (gl *GL) GetFragDataLocation(program glbase.Program, name []byte) int32 {
+ glresult := C.gl3_0_glGetFragDataLocation(gl.funcs, C.GLuint(program), (*C.GLchar)(unsafe.Pointer(&name[0])))
+ return int32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindFragDataLocation.xml
+func (gl *GL) BindFragDataLocation(program glbase.Program, color uint32, name []byte) {
+ C.gl3_0_glBindFragDataLocation(gl.funcs, C.GLuint(program), C.GLuint(color), (*C.GLchar)(unsafe.Pointer(&name[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetUniformuiv.xml
+func (gl *GL) GetUniformuiv(program glbase.Program, location glbase.Uniform, params []uint32) {
+ C.gl3_0_glGetUniformuiv(gl.funcs, C.GLuint(program), C.GLint(location), (*C.GLuint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetVertexAttribIuiv.xml
+func (gl *GL) GetVertexAttribIuiv(index glbase.Attrib, pname glbase.Enum, params []uint32) {
+ C.gl3_0_glGetVertexAttribIuiv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLuint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetVertexAttribIiv.xml
+func (gl *GL) GetVertexAttribIiv(index glbase.Attrib, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetVertexAttribIiv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribIPointer.xml
+func (gl *GL) VertexAttribIPointer(index glbase.Attrib, size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glVertexAttribIPointer(gl.funcs, C.GLuint(index), C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEndConditionalRender.xml
+func (gl *GL) EndConditionalRender() {
+ C.gl3_0_glEndConditionalRender(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBeginConditionalRender.xml
+func (gl *GL) BeginConditionalRender(id uint32, mode glbase.Enum) {
+ C.gl3_0_glBeginConditionalRender(gl.funcs, C.GLuint(id), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClampColor.xml
+func (gl *GL) ClampColor(target, clamp glbase.Enum) {
+ C.gl3_0_glClampColor(gl.funcs, C.GLenum(target), C.GLenum(clamp))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTransformFeedbackVarying.xml
+func (gl *GL) GetTransformFeedbackVarying(program glbase.Program, index uint32, bufSize int32, length []int32, size []int, gltype []glbase.Enum, name []byte) {
+ C.gl3_0_glGetTransformFeedbackVarying(gl.funcs, C.GLuint(program), C.GLuint(index), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLsizei)(unsafe.Pointer(&size[0])), (*C.GLenum)(unsafe.Pointer(&gltype[0])), (*C.GLchar)(unsafe.Pointer(&name[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindBufferBase.xml
+func (gl *GL) BindBufferBase(target glbase.Enum, index uint32, buffer glbase.Buffer) {
+ C.gl3_0_glBindBufferBase(gl.funcs, C.GLenum(target), C.GLuint(index), C.GLuint(buffer))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindBufferRange.xml
+func (gl *GL) BindBufferRange(target glbase.Enum, index uint32, buffer glbase.Buffer, offset, size int) {
+ C.gl3_0_glBindBufferRange(gl.funcs, C.GLenum(target), C.GLuint(index), C.GLuint(buffer), C.GLintptr(offset), C.GLsizeiptr(size))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEndTransformFeedback.xml
+func (gl *GL) EndTransformFeedback() {
+ C.gl3_0_glEndTransformFeedback(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBeginTransformFeedback.xml
+func (gl *GL) BeginTransformFeedback(primitiveMode glbase.Enum) {
+ C.gl3_0_glBeginTransformFeedback(gl.funcs, C.GLenum(primitiveMode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsEnabledi.xml
+func (gl *GL) IsEnabledi(target glbase.Enum, index uint32) bool {
+ glresult := C.gl3_0_glIsEnabledi(gl.funcs, C.GLenum(target), C.GLuint(index))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDisablei.xml
+func (gl *GL) Disablei(target glbase.Enum, index uint32) {
+ C.gl3_0_glDisablei(gl.funcs, C.GLenum(target), C.GLuint(index))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEnablei.xml
+func (gl *GL) Enablei(target glbase.Enum, index uint32) {
+ C.gl3_0_glEnablei(gl.funcs, C.GLenum(target), C.GLuint(index))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetIntegeri_v.xml
+func (gl *GL) GetIntegeri_v(target glbase.Enum, index uint32, data []int32) {
+ C.gl3_0_glGetIntegeri_v(gl.funcs, C.GLenum(target), C.GLuint(index), (*C.GLint)(unsafe.Pointer(&data[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetBooleani_v.xml
+func (gl *GL) GetBooleani_v(target glbase.Enum, index uint32, data []bool) {
+ C.gl3_0_glGetBooleani_v(gl.funcs, C.GLenum(target), C.GLuint(index), (*C.GLboolean)(unsafe.Pointer(&data[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColorMaski.xml
+func (gl *GL) ColorMaski(index uint32, r, g, b, a bool) {
+ C.gl3_0_glColorMaski(gl.funcs, C.GLuint(index), *(*C.GLboolean)(unsafe.Pointer(&r)), *(*C.GLboolean)(unsafe.Pointer(&g)), *(*C.GLboolean)(unsafe.Pointer(&b)), *(*C.GLboolean)(unsafe.Pointer(&a)))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTranslatef.xml
+func (gl *GL) Translatef(x, y, z float32) {
+ C.gl3_0_glTranslatef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTranslated.xml
+func (gl *GL) Translated(x, y, z float64) {
+ C.gl3_0_glTranslated(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glScalef.xml
+func (gl *GL) Scalef(x, y, z float32) {
+ C.gl3_0_glScalef(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glScaled.xml
+func (gl *GL) Scaled(x, y, z float64) {
+ C.gl3_0_glScaled(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRotatef.xml
+func (gl *GL) Rotatef(angle, x, y, z float32) {
+ C.gl3_0_glRotatef(gl.funcs, C.GLfloat(angle), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRotated.xml
+func (gl *GL) Rotated(angle, x, y, z float64) {
+ C.gl3_0_glRotated(gl.funcs, C.GLdouble(angle), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPushMatrix.xml
+func (gl *GL) PushMatrix() {
+ C.gl3_0_glPushMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPopMatrix.xml
+func (gl *GL) PopMatrix() {
+ C.gl3_0_glPopMatrix(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glOrtho.xml
+func (gl *GL) Ortho(left, right, bottom, top, zNear, zFar float64) {
+ C.gl3_0_glOrtho(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// MultMatrixd multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixd(m []float64) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl3_0_glMultMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// MultMatrixf multiplies the current matrix with the provided matrix.
+//
+// The m parameter must hold 16 consecutive elements of a 4x4 column-major matrix.
+//
+// The current matrix is determined by the current matrix mode (see
+// MatrixMode). It is either the projection matrix, modelview matrix, or the
+// texture matrix.
+//
+// For example, if the current matrix is C and the coordinates to be transformed
+// are v = (v[0], v[1], v[2], v[3]), then the current transformation is C × v, or
+//
+// c[0] c[4] c[8] c[12] v[0]
+// c[1] c[5] c[9] c[13] v[1]
+// c[2] c[6] c[10] c[14] X v[2]
+// c[3] c[7] c[11] c[15] v[3]
+//
+// Calling MultMatrix with an argument of m = m[0], m[1], ..., m[15]
+// replaces the current transformation with (C X M) x v, or
+//
+// c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
+// c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
+// c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
+// c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
+//
+// Where 'X' denotes matrix multiplication, and v is represented as a 4x1 matrix.
+//
+// While the elements of the matrix may be specified with single or double
+// precision, the GL may store or operate on these values in less-than-single
+// precision.
+//
+// In many computer languages, 4×4 arrays are represented in row-major
+// order. The transformations just described represent these matrices in
+// column-major order. The order of the multiplication is important. For
+// example, if the current transformation is a rotation, and MultMatrix is
+// called with a translation matrix, the translation is done directly on the
+// coordinates to be transformed, while the rotation is done on the results
+// of that translation.
+//
+// GL.INVALID_OPERATION is generated if MultMatrix is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) MultMatrixf(m []float32) {
+ if len(m) != 16 {
+ panic("parameter m must have length 16 for the 4x4 matrix")
+ }
+ C.gl3_0_glMultMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMatrixMode.xml
+func (gl *GL) MatrixMode(mode glbase.Enum) {
+ C.gl3_0_glMatrixMode(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLoadMatrixd.xml
+func (gl *GL) LoadMatrixd(m []float64) {
+ C.gl3_0_glLoadMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLoadMatrixf.xml
+func (gl *GL) LoadMatrixf(m []float32) {
+ C.gl3_0_glLoadMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLoadIdentity.xml
+func (gl *GL) LoadIdentity() {
+ C.gl3_0_glLoadIdentity(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFrustum.xml
+func (gl *GL) Frustum(left, right, bottom, top, zNear, zFar float64) {
+ C.gl3_0_glFrustum(gl.funcs, C.GLdouble(left), C.GLdouble(right), C.GLdouble(bottom), C.GLdouble(top), C.GLdouble(zNear), C.GLdouble(zFar))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsList.xml
+func (gl *GL) IsList(list uint32) bool {
+ glresult := C.gl3_0_glIsList(gl.funcs, C.GLuint(list))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexGeniv.xml
+func (gl *GL) GetTexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexGenfv.xml
+func (gl *GL) GetTexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl3_0_glGetTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexGendv.xml
+func (gl *GL) GetTexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl3_0_glGetTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexEnviv.xml
+func (gl *GL) GetTexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexEnvfv.xml
+func (gl *GL) GetTexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl3_0_glGetTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetPolygonStipple.xml
+func (gl *GL) GetPolygonStipple(mask []uint8) {
+ C.gl3_0_glGetPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetPixelMapusv.xml
+func (gl *GL) GetPixelMapusv(glmap glbase.Enum, values []uint16) {
+ C.gl3_0_glGetPixelMapusv(gl.funcs, C.GLenum(glmap), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetPixelMapuiv.xml
+func (gl *GL) GetPixelMapuiv(glmap glbase.Enum, values []uint32) {
+ C.gl3_0_glGetPixelMapuiv(gl.funcs, C.GLenum(glmap), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetPixelMapfv.xml
+func (gl *GL) GetPixelMapfv(glmap glbase.Enum, values []float32) {
+ C.gl3_0_glGetPixelMapfv(gl.funcs, C.GLenum(glmap), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetMaterialiv.xml
+func (gl *GL) GetMaterialiv(face, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetMaterialfv.xml
+func (gl *GL) GetMaterialfv(face, pname glbase.Enum, params []float32) {
+ C.gl3_0_glGetMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetMapiv.xml
+func (gl *GL) GetMapiv(target, query glbase.Enum, v []int32) {
+ C.gl3_0_glGetMapiv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetMapfv.xml
+func (gl *GL) GetMapfv(target, query glbase.Enum, v []float32) {
+ C.gl3_0_glGetMapfv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetMapdv.xml
+func (gl *GL) GetMapdv(target, query glbase.Enum, v []float64) {
+ C.gl3_0_glGetMapdv(gl.funcs, C.GLenum(target), C.GLenum(query), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetLightiv.xml
+func (gl *GL) GetLightiv(light, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetLightfv.xml
+func (gl *GL) GetLightfv(light, pname glbase.Enum, params []float32) {
+ C.gl3_0_glGetLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetClipPlane.xml
+func (gl *GL) GetClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl3_0_glGetClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawPixels.xml
+func (gl *GL) DrawPixels(width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glDrawPixels(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyPixels.xml
+func (gl *GL) CopyPixels(x, y, width, height int, gltype glbase.Enum) {
+ C.gl3_0_glCopyPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(gltype))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPixelMapusv.xml
+func (gl *GL) PixelMapusv(glmap glbase.Enum, mapsize int32, values []uint16) {
+ C.gl3_0_glPixelMapusv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLushort)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPixelMapuiv.xml
+func (gl *GL) PixelMapuiv(glmap glbase.Enum, mapsize int32, values []uint32) {
+ C.gl3_0_glPixelMapuiv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLuint)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPixelMapfv.xml
+func (gl *GL) PixelMapfv(glmap glbase.Enum, mapsize int32, values []float32) {
+ C.gl3_0_glPixelMapfv(gl.funcs, C.GLenum(glmap), C.GLint(mapsize), (*C.GLfloat)(unsafe.Pointer(&values[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPixelTransferi.xml
+func (gl *GL) PixelTransferi(pname glbase.Enum, param int32) {
+ C.gl3_0_glPixelTransferi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPixelTransferf.xml
+func (gl *GL) PixelTransferf(pname glbase.Enum, param float32) {
+ C.gl3_0_glPixelTransferf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPixelZoom.xml
+func (gl *GL) PixelZoom(xfactor, yfactor float32) {
+ C.gl3_0_glPixelZoom(gl.funcs, C.GLfloat(xfactor), C.GLfloat(yfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glAlphaFunc.xml
+func (gl *GL) AlphaFunc(glfunc glbase.Enum, ref float32) {
+ C.gl3_0_glAlphaFunc(gl.funcs, C.GLenum(glfunc), C.GLfloat(ref))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEvalPoint2.xml
+func (gl *GL) EvalPoint2(i, j int32) {
+ C.gl3_0_glEvalPoint2(gl.funcs, C.GLint(i), C.GLint(j))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEvalMesh2.xml
+func (gl *GL) EvalMesh2(mode glbase.Enum, i1, i2, j1, j2 int32) {
+ C.gl3_0_glEvalMesh2(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2), C.GLint(j1), C.GLint(j2))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEvalPoint1.xml
+func (gl *GL) EvalPoint1(i int32) {
+ C.gl3_0_glEvalPoint1(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEvalMesh1.xml
+func (gl *GL) EvalMesh1(mode glbase.Enum, i1, i2 int32) {
+ C.gl3_0_glEvalMesh1(gl.funcs, C.GLenum(mode), C.GLint(i1), C.GLint(i2))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEvalCoord2fv.xml
+func (gl *GL) EvalCoord2fv(u []float32) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl3_0_glEvalCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEvalCoord2f.xml
+func (gl *GL) EvalCoord2f(u, v float32) {
+ C.gl3_0_glEvalCoord2f(gl.funcs, C.GLfloat(u), C.GLfloat(v))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEvalCoord2dv.xml
+func (gl *GL) EvalCoord2dv(u []float64) {
+ if len(u) != 2 {
+ panic("parameter u has incorrect length")
+ }
+ C.gl3_0_glEvalCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEvalCoord2d.xml
+func (gl *GL) EvalCoord2d(u, v float64) {
+ C.gl3_0_glEvalCoord2d(gl.funcs, C.GLdouble(u), C.GLdouble(v))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEvalCoord1fv.xml
+func (gl *GL) EvalCoord1fv(u []float32) {
+ C.gl3_0_glEvalCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEvalCoord1f.xml
+func (gl *GL) EvalCoord1f(u float32) {
+ C.gl3_0_glEvalCoord1f(gl.funcs, C.GLfloat(u))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEvalCoord1dv.xml
+func (gl *GL) EvalCoord1dv(u []float64) {
+ C.gl3_0_glEvalCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&u[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEvalCoord1d.xml
+func (gl *GL) EvalCoord1d(u float64) {
+ C.gl3_0_glEvalCoord1d(gl.funcs, C.GLdouble(u))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMapGrid2f.xml
+func (gl *GL) MapGrid2f(un int32, u1, u2 float32, vn int32, v1, v2 float32) {
+ C.gl3_0_glMapGrid2f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2), C.GLint(vn), C.GLfloat(v1), C.GLfloat(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMapGrid2d.xml
+func (gl *GL) MapGrid2d(un int32, u1, u2 float64, vn int32, v1, v2 float64) {
+ C.gl3_0_glMapGrid2d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2), C.GLint(vn), C.GLdouble(v1), C.GLdouble(v2))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMapGrid1f.xml
+func (gl *GL) MapGrid1f(un int32, u1, u2 float32) {
+ C.gl3_0_glMapGrid1f(gl.funcs, C.GLint(un), C.GLfloat(u1), C.GLfloat(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMapGrid1d.xml
+func (gl *GL) MapGrid1d(un int32, u1, u2 float64) {
+ C.gl3_0_glMapGrid1d(gl.funcs, C.GLint(un), C.GLdouble(u1), C.GLdouble(u2))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMap2f.xml
+func (gl *GL) Map2f(target glbase.Enum, u1, u2 float32, ustride, uorder int32, v1, v2 float32, vstride, vorder int32, points []float32) {
+ C.gl3_0_glMap2f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(ustride), C.GLint(uorder), C.GLfloat(v1), C.GLfloat(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMap2d.xml
+func (gl *GL) Map2d(target glbase.Enum, u1, u2 float64, ustride, uorder int32, v1, v2 float64, vstride, vorder int32, points []float64) {
+ C.gl3_0_glMap2d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(ustride), C.GLint(uorder), C.GLdouble(v1), C.GLdouble(v2), C.GLint(vstride), C.GLint(vorder), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMap1f.xml
+func (gl *GL) Map1f(target glbase.Enum, u1, u2 float32, stride, order int, points []float32) {
+ C.gl3_0_glMap1f(gl.funcs, C.GLenum(target), C.GLfloat(u1), C.GLfloat(u2), C.GLint(stride), C.GLint(order), (*C.GLfloat)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMap1d.xml
+func (gl *GL) Map1d(target glbase.Enum, u1, u2 float64, stride, order int, points []float64) {
+ C.gl3_0_glMap1d(gl.funcs, C.GLenum(target), C.GLdouble(u1), C.GLdouble(u2), C.GLint(stride), C.GLint(order), (*C.GLdouble)(unsafe.Pointer(&points[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPushAttrib.xml
+func (gl *GL) PushAttrib(mask glbase.Bitfield) {
+ C.gl3_0_glPushAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPopAttrib.xml
+func (gl *GL) PopAttrib() {
+ C.gl3_0_glPopAttrib(gl.funcs)
+}
+
+// Accum executes an operation on the accumulation buffer.
+//
+// Parameter op defines the accumulation buffer operation (GL.ACCUM, GL.LOAD,
+// GL.ADD, GL.MULT, or GL.RETURN) and specifies how the value parameter is
+// used.
+//
+// The accumulation buffer is an extended-range color buffer. Images are not
+// rendered into it. Rather, images rendered into one of the color buffers
+// are added to the contents of the accumulation buffer after rendering.
+// Effects such as antialiasing (of points, lines, and polygons), motion
+// blur, and depth of field can be created by accumulating images generated
+// with different transformation matrices.
+//
+// Each pixel in the accumulation buffer consists of red, green, blue, and
+// alpha values. The number of bits per component in the accumulation buffer
+// depends on the implementation. You can examine this number by calling
+// GetIntegerv four times, with arguments GL.ACCUM_RED_BITS,
+// GL.ACCUM_GREEN_BITS, GL.ACCUM_BLUE_BITS, and GL.ACCUM_ALPHA_BITS.
+// Regardless of the number of bits per component, the range of values stored
+// by each component is (-1, 1). The accumulation buffer pixels are mapped
+// one-to-one with frame buffer pixels.
+//
+// All accumulation buffer operations are limited to the area of the current
+// scissor box and applied identically to the red, green, blue, and alpha
+// components of each pixel. If a Accum operation results in a value outside
+// the range (-1, 1), the contents of an accumulation buffer pixel component
+// are undefined.
+//
+// The operations are as follows:
+//
+// GL.ACCUM
+// Obtains R, G, B, and A values from the buffer currently selected for
+// reading (see ReadBuffer). Each component value is divided by 2 n -
+// 1 , where n is the number of bits allocated to each color component
+// in the currently selected buffer. The result is a floating-point
+// value in the range 0 1 , which is multiplied by value and added to
+// the corresponding pixel component in the accumulation buffer,
+// thereby updating the accumulation buffer.
+//
+// GL.LOAD
+// Similar to GL.ACCUM, except that the current value in the
+// accumulation buffer is not used in the calculation of the new value.
+// That is, the R, G, B, and A values from the currently selected
+// buffer are divided by 2 n - 1 , multiplied by value, and then stored
+// in the corresponding accumulation buffer cell, overwriting the
+// current value.
+//
+// GL.ADD
+// Adds value to each R, G, B, and A in the accumulation buffer.
+//
+// GL.MULT
+// Multiplies each R, G, B, and A in the accumulation buffer by value
+// and returns the scaled component to its corresponding accumulation
+// buffer location.
+//
+// GL.RETURN
+// Transfers accumulation buffer values to the color buffer or buffers
+// currently selected for writing. Each R, G, B, and A component is
+// multiplied by value, then multiplied by 2 n - 1 , clamped to the
+// range 0 2 n - 1 , and stored in the corresponding display buffer
+// cell. The only fragment operations that are applied to this transfer
+// are pixel ownership, scissor, dithering, and color writemasks.
+//
+// To clear the accumulation buffer, call ClearAccum with R, G, B, and A
+// values to set it to, then call Clear with the accumulation buffer
+// enabled.
+//
+// Error GL.INVALID_ENUM is generated if op is not an accepted value.
+// GL.INVALID_OPERATION is generated if there is no accumulation buffer.
+// GL.INVALID_OPERATION is generated if Accum is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) Accum(op glbase.Enum, value float32) {
+ C.gl3_0_glAccum(gl.funcs, C.GLenum(op), C.GLfloat(value))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexMask.xml
+func (gl *GL) IndexMask(mask uint32) {
+ C.gl3_0_glIndexMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearIndex.xml
+func (gl *GL) ClearIndex(c float32) {
+ C.gl3_0_glClearIndex(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearAccum.xml
+func (gl *GL) ClearAccum(red, green, blue, alpha float32) {
+ C.gl3_0_glClearAccum(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPushName.xml
+func (gl *GL) PushName(name uint32) {
+ C.gl3_0_glPushName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPopName.xml
+func (gl *GL) PopName() {
+ C.gl3_0_glPopName(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPassThrough.xml
+func (gl *GL) PassThrough(token float32) {
+ C.gl3_0_glPassThrough(gl.funcs, C.GLfloat(token))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLoadName.xml
+func (gl *GL) LoadName(name uint32) {
+ C.gl3_0_glLoadName(gl.funcs, C.GLuint(name))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glInitNames.xml
+func (gl *GL) InitNames() {
+ C.gl3_0_glInitNames(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRenderMode.xml
+func (gl *GL) RenderMode(mode glbase.Enum) int32 {
+ glresult := C.gl3_0_glRenderMode(gl.funcs, C.GLenum(mode))
+ return int32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSelectBuffer.xml
+func (gl *GL) SelectBuffer(size int, buffer []glbase.Buffer) {
+ C.gl3_0_glSelectBuffer(gl.funcs, C.GLsizei(size), (*C.GLuint)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFeedbackBuffer.xml
+func (gl *GL) FeedbackBuffer(size int, gltype glbase.Enum, buffer []float32) {
+ C.gl3_0_glFeedbackBuffer(gl.funcs, C.GLsizei(size), C.GLenum(gltype), (*C.GLfloat)(unsafe.Pointer(&buffer[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexGeniv.xml
+func (gl *GL) TexGeniv(coord, pname glbase.Enum, params []int32) {
+ C.gl3_0_glTexGeniv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexGeni.xml
+func (gl *GL) TexGeni(coord, pname glbase.Enum, param int32) {
+ C.gl3_0_glTexGeni(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexGenfv.xml
+func (gl *GL) TexGenfv(coord, pname glbase.Enum, params []float32) {
+ C.gl3_0_glTexGenfv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexGenf.xml
+func (gl *GL) TexGenf(coord, pname glbase.Enum, param float32) {
+ C.gl3_0_glTexGenf(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexGendv.xml
+func (gl *GL) TexGendv(coord, pname glbase.Enum, params []float64) {
+ C.gl3_0_glTexGendv(gl.funcs, C.GLenum(coord), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexGend.xml
+func (gl *GL) TexGend(coord, pname glbase.Enum, param float64) {
+ C.gl3_0_glTexGend(gl.funcs, C.GLenum(coord), C.GLenum(pname), C.GLdouble(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexEnviv.xml
+func (gl *GL) TexEnviv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glTexEnviv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexEnvi.xml
+func (gl *GL) TexEnvi(target, pname glbase.Enum, param int32) {
+ C.gl3_0_glTexEnvi(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexEnvfv.xml
+func (gl *GL) TexEnvfv(target, pname glbase.Enum, params []float32) {
+ C.gl3_0_glTexEnvfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexEnvf.xml
+func (gl *GL) TexEnvf(target, pname glbase.Enum, param float32) {
+ C.gl3_0_glTexEnvf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glShadeModel.xml
+func (gl *GL) ShadeModel(mode glbase.Enum) {
+ C.gl3_0_glShadeModel(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPolygonStipple.xml
+func (gl *GL) PolygonStipple(mask []uint8) {
+ C.gl3_0_glPolygonStipple(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&mask[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMaterialiv.xml
+func (gl *GL) Materialiv(face, pname glbase.Enum, params []int32) {
+ C.gl3_0_glMaterialiv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMateriali.xml
+func (gl *GL) Materiali(face, pname glbase.Enum, param int32) {
+ C.gl3_0_glMateriali(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMaterialfv.xml
+func (gl *GL) Materialfv(face, pname glbase.Enum, params []float32) {
+ C.gl3_0_glMaterialfv(gl.funcs, C.GLenum(face), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMaterialf.xml
+func (gl *GL) Materialf(face, pname glbase.Enum, param float32) {
+ C.gl3_0_glMaterialf(gl.funcs, C.GLenum(face), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLineStipple.xml
+func (gl *GL) LineStipple(factor int32, pattern uint16) {
+ C.gl3_0_glLineStipple(gl.funcs, C.GLint(factor), C.GLushort(pattern))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLightModeliv.xml
+func (gl *GL) LightModeliv(pname glbase.Enum, params []int32) {
+ C.gl3_0_glLightModeliv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLightModeli.xml
+func (gl *GL) LightModeli(pname glbase.Enum, param int32) {
+ C.gl3_0_glLightModeli(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLightModelfv.xml
+func (gl *GL) LightModelfv(pname glbase.Enum, params []float32) {
+ C.gl3_0_glLightModelfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLightModelf.xml
+func (gl *GL) LightModelf(pname glbase.Enum, param float32) {
+ C.gl3_0_glLightModelf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLightiv.xml
+func (gl *GL) Lightiv(light, pname glbase.Enum, params []int32) {
+ C.gl3_0_glLightiv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLighti.xml
+func (gl *GL) Lighti(light, pname glbase.Enum, param int32) {
+ C.gl3_0_glLighti(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLightfv.xml
+func (gl *GL) Lightfv(light, pname glbase.Enum, params []float32) {
+ C.gl3_0_glLightfv(gl.funcs, C.GLenum(light), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLightf.xml
+func (gl *GL) Lightf(light, pname glbase.Enum, param float32) {
+ C.gl3_0_glLightf(gl.funcs, C.GLenum(light), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFogiv.xml
+func (gl *GL) Fogiv(pname glbase.Enum, params []int32) {
+ C.gl3_0_glFogiv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFogi.xml
+func (gl *GL) Fogi(pname glbase.Enum, param int32) {
+ C.gl3_0_glFogi(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFogfv.xml
+func (gl *GL) Fogfv(pname glbase.Enum, params []float32) {
+ C.gl3_0_glFogfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFogf.xml
+func (gl *GL) Fogf(pname glbase.Enum, param float32) {
+ C.gl3_0_glFogf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColorMaterial.xml
+func (gl *GL) ColorMaterial(face, mode glbase.Enum) {
+ C.gl3_0_glColorMaterial(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClipPlane.xml
+func (gl *GL) ClipPlane(plane glbase.Enum, equation []float64) {
+ C.gl3_0_glClipPlane(gl.funcs, C.GLenum(plane), (*C.GLdouble)(unsafe.Pointer(&equation[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex4sv.xml
+func (gl *GL) Vertex4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertex4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex4s.xml
+func (gl *GL) Vertex4s(x, y, z, w int16) {
+ C.gl3_0_glVertex4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex4iv.xml
+func (gl *GL) Vertex4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertex4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex4i.xml
+func (gl *GL) Vertex4i(x, y, z, w int) {
+ C.gl3_0_glVertex4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex4fv.xml
+func (gl *GL) Vertex4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertex4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex4f.xml
+func (gl *GL) Vertex4f(x, y, z, w float32) {
+ C.gl3_0_glVertex4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex4dv.xml
+func (gl *GL) Vertex4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertex4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex4d.xml
+func (gl *GL) Vertex4d(x, y, z, w float64) {
+ C.gl3_0_glVertex4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex3sv.xml
+func (gl *GL) Vertex3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertex3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex3s.xml
+func (gl *GL) Vertex3s(x, y, z int16) {
+ C.gl3_0_glVertex3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex3iv.xml
+func (gl *GL) Vertex3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertex3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex3i.xml
+func (gl *GL) Vertex3i(x, y, z int) {
+ C.gl3_0_glVertex3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex3fv.xml
+func (gl *GL) Vertex3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertex3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex3f.xml
+func (gl *GL) Vertex3f(x, y, z float32) {
+ C.gl3_0_glVertex3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex3dv.xml
+func (gl *GL) Vertex3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertex3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex3d.xml
+func (gl *GL) Vertex3d(x, y, z float64) {
+ C.gl3_0_glVertex3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex2sv.xml
+func (gl *GL) Vertex2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertex2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex2s.xml
+func (gl *GL) Vertex2s(x, y int16) {
+ C.gl3_0_glVertex2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex2iv.xml
+func (gl *GL) Vertex2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertex2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex2i.xml
+func (gl *GL) Vertex2i(x, y int) {
+ C.gl3_0_glVertex2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex2fv.xml
+func (gl *GL) Vertex2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertex2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex2f.xml
+func (gl *GL) Vertex2f(x, y float32) {
+ C.gl3_0_glVertex2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex2dv.xml
+func (gl *GL) Vertex2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertex2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertex2d.xml
+func (gl *GL) Vertex2d(x, y float64) {
+ C.gl3_0_glVertex2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord4sv.xml
+func (gl *GL) TexCoord4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glTexCoord4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord4s.xml
+func (gl *GL) TexCoord4s(s, t, r, q int16) {
+ C.gl3_0_glTexCoord4s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord4iv.xml
+func (gl *GL) TexCoord4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glTexCoord4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord4i.xml
+func (gl *GL) TexCoord4i(s, t, r, q int32) {
+ C.gl3_0_glTexCoord4i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord4fv.xml
+func (gl *GL) TexCoord4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glTexCoord4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord4f.xml
+func (gl *GL) TexCoord4f(s, t, r, q float32) {
+ C.gl3_0_glTexCoord4f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord4dv.xml
+func (gl *GL) TexCoord4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glTexCoord4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord4d.xml
+func (gl *GL) TexCoord4d(s, t, r, q float64) {
+ C.gl3_0_glTexCoord4d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord3sv.xml
+func (gl *GL) TexCoord3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glTexCoord3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord3s.xml
+func (gl *GL) TexCoord3s(s, t, r int16) {
+ C.gl3_0_glTexCoord3s(gl.funcs, C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord3iv.xml
+func (gl *GL) TexCoord3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glTexCoord3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord3i.xml
+func (gl *GL) TexCoord3i(s, t, r int32) {
+ C.gl3_0_glTexCoord3i(gl.funcs, C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord3fv.xml
+func (gl *GL) TexCoord3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glTexCoord3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord3f.xml
+func (gl *GL) TexCoord3f(s, t, r float32) {
+ C.gl3_0_glTexCoord3f(gl.funcs, C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord3dv.xml
+func (gl *GL) TexCoord3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glTexCoord3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord3d.xml
+func (gl *GL) TexCoord3d(s, t, r float64) {
+ C.gl3_0_glTexCoord3d(gl.funcs, C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord2sv.xml
+func (gl *GL) TexCoord2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glTexCoord2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord2s.xml
+func (gl *GL) TexCoord2s(s, t int16) {
+ C.gl3_0_glTexCoord2s(gl.funcs, C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord2iv.xml
+func (gl *GL) TexCoord2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glTexCoord2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord2i.xml
+func (gl *GL) TexCoord2i(s, t int32) {
+ C.gl3_0_glTexCoord2i(gl.funcs, C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord2fv.xml
+func (gl *GL) TexCoord2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glTexCoord2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord2f.xml
+func (gl *GL) TexCoord2f(s, t float32) {
+ C.gl3_0_glTexCoord2f(gl.funcs, C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord2dv.xml
+func (gl *GL) TexCoord2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glTexCoord2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord2d.xml
+func (gl *GL) TexCoord2d(s, t float64) {
+ C.gl3_0_glTexCoord2d(gl.funcs, C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord1sv.xml
+func (gl *GL) TexCoord1sv(v []int16) {
+ C.gl3_0_glTexCoord1sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord1s.xml
+func (gl *GL) TexCoord1s(s int16) {
+ C.gl3_0_glTexCoord1s(gl.funcs, C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord1iv.xml
+func (gl *GL) TexCoord1iv(v []int32) {
+ C.gl3_0_glTexCoord1iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord1i.xml
+func (gl *GL) TexCoord1i(s int32) {
+ C.gl3_0_glTexCoord1i(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord1fv.xml
+func (gl *GL) TexCoord1fv(v []float32) {
+ C.gl3_0_glTexCoord1fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord1f.xml
+func (gl *GL) TexCoord1f(s float32) {
+ C.gl3_0_glTexCoord1f(gl.funcs, C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord1dv.xml
+func (gl *GL) TexCoord1dv(v []float64) {
+ C.gl3_0_glTexCoord1dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoord1d.xml
+func (gl *GL) TexCoord1d(s float64) {
+ C.gl3_0_glTexCoord1d(gl.funcs, C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRectsv.xml
+func (gl *GL) Rectsv(v1, v2 []int16) {
+ C.gl3_0_glRectsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v1[0])), (*C.GLshort)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRects.xml
+func (gl *GL) Rects(x1, y1, x2, y2 int16) {
+ C.gl3_0_glRects(gl.funcs, C.GLshort(x1), C.GLshort(y1), C.GLshort(x2), C.GLshort(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRectiv.xml
+func (gl *GL) Rectiv(v1, v2 []int32) {
+ C.gl3_0_glRectiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v1[0])), (*C.GLint)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRecti.xml
+func (gl *GL) Recti(x1, y1, x2, y2 int32) {
+ C.gl3_0_glRecti(gl.funcs, C.GLint(x1), C.GLint(y1), C.GLint(x2), C.GLint(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRectfv.xml
+func (gl *GL) Rectfv(v1, v2 []float32) {
+ C.gl3_0_glRectfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v1[0])), (*C.GLfloat)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRectf.xml
+func (gl *GL) Rectf(x1, y1, x2, y2 float32) {
+ C.gl3_0_glRectf(gl.funcs, C.GLfloat(x1), C.GLfloat(y1), C.GLfloat(x2), C.GLfloat(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRectdv.xml
+func (gl *GL) Rectdv(v1, v2 []float64) {
+ C.gl3_0_glRectdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v1[0])), (*C.GLdouble)(unsafe.Pointer(&v2[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRectd.xml
+func (gl *GL) Rectd(x1, y1, x2, y2 float64) {
+ C.gl3_0_glRectd(gl.funcs, C.GLdouble(x1), C.GLdouble(y1), C.GLdouble(x2), C.GLdouble(y2))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos4sv.xml
+func (gl *GL) RasterPos4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glRasterPos4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos4s.xml
+func (gl *GL) RasterPos4s(x, y, z, w int16) {
+ C.gl3_0_glRasterPos4s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos4iv.xml
+func (gl *GL) RasterPos4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glRasterPos4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos4i.xml
+func (gl *GL) RasterPos4i(x, y, z, w int) {
+ C.gl3_0_glRasterPos4i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos4fv.xml
+func (gl *GL) RasterPos4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glRasterPos4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos4f.xml
+func (gl *GL) RasterPos4f(x, y, z, w float32) {
+ C.gl3_0_glRasterPos4f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos4dv.xml
+func (gl *GL) RasterPos4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glRasterPos4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos4d.xml
+func (gl *GL) RasterPos4d(x, y, z, w float64) {
+ C.gl3_0_glRasterPos4d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos3sv.xml
+func (gl *GL) RasterPos3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glRasterPos3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos3s.xml
+func (gl *GL) RasterPos3s(x, y, z int16) {
+ C.gl3_0_glRasterPos3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos3iv.xml
+func (gl *GL) RasterPos3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glRasterPos3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos3i.xml
+func (gl *GL) RasterPos3i(x, y, z int) {
+ C.gl3_0_glRasterPos3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos3fv.xml
+func (gl *GL) RasterPos3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glRasterPos3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos3f.xml
+func (gl *GL) RasterPos3f(x, y, z float32) {
+ C.gl3_0_glRasterPos3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos3dv.xml
+func (gl *GL) RasterPos3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glRasterPos3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos3d.xml
+func (gl *GL) RasterPos3d(x, y, z float64) {
+ C.gl3_0_glRasterPos3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos2sv.xml
+func (gl *GL) RasterPos2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glRasterPos2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos2s.xml
+func (gl *GL) RasterPos2s(x, y int16) {
+ C.gl3_0_glRasterPos2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos2iv.xml
+func (gl *GL) RasterPos2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glRasterPos2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos2i.xml
+func (gl *GL) RasterPos2i(x, y int) {
+ C.gl3_0_glRasterPos2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos2fv.xml
+func (gl *GL) RasterPos2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glRasterPos2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos2f.xml
+func (gl *GL) RasterPos2f(x, y float32) {
+ C.gl3_0_glRasterPos2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos2dv.xml
+func (gl *GL) RasterPos2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glRasterPos2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRasterPos2d.xml
+func (gl *GL) RasterPos2d(x, y float64) {
+ C.gl3_0_glRasterPos2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glNormal3sv.xml
+func (gl *GL) Normal3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glNormal3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glNormal3s.xml
+func (gl *GL) Normal3s(nx, ny, nz int16) {
+ C.gl3_0_glNormal3s(gl.funcs, C.GLshort(nx), C.GLshort(ny), C.GLshort(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glNormal3iv.xml
+func (gl *GL) Normal3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glNormal3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glNormal3i.xml
+func (gl *GL) Normal3i(nx, ny, nz int32) {
+ C.gl3_0_glNormal3i(gl.funcs, C.GLint(nx), C.GLint(ny), C.GLint(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glNormal3fv.xml
+func (gl *GL) Normal3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glNormal3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glNormal3f.xml
+func (gl *GL) Normal3f(nx, ny, nz float32) {
+ C.gl3_0_glNormal3f(gl.funcs, C.GLfloat(nx), C.GLfloat(ny), C.GLfloat(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glNormal3dv.xml
+func (gl *GL) Normal3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glNormal3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glNormal3d.xml
+func (gl *GL) Normal3d(nx, ny, nz float64) {
+ C.gl3_0_glNormal3d(gl.funcs, C.GLdouble(nx), C.GLdouble(ny), C.GLdouble(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glNormal3bv.xml
+func (gl *GL) Normal3bv(v []byte) {
+ C.gl3_0_glNormal3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glNormal3b.xml
+func (gl *GL) Normal3b(nx, ny, nz byte) {
+ C.gl3_0_glNormal3b(gl.funcs, C.GLbyte(nx), C.GLbyte(ny), C.GLbyte(nz))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexsv.xml
+func (gl *GL) Indexsv(c []int16) {
+ C.gl3_0_glIndexsv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexs.xml
+func (gl *GL) Indexs(c int16) {
+ C.gl3_0_glIndexs(gl.funcs, C.GLshort(c))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexiv.xml
+func (gl *GL) Indexiv(c []int32) {
+ C.gl3_0_glIndexiv(gl.funcs, (*C.GLint)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexi.xml
+func (gl *GL) Indexi(c int32) {
+ C.gl3_0_glIndexi(gl.funcs, C.GLint(c))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexfv.xml
+func (gl *GL) Indexfv(c []float32) {
+ C.gl3_0_glIndexfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexf.xml
+func (gl *GL) Indexf(c float32) {
+ C.gl3_0_glIndexf(gl.funcs, C.GLfloat(c))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexdv.xml
+func (gl *GL) Indexdv(c []float64) {
+ C.gl3_0_glIndexdv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexd.xml
+func (gl *GL) Indexd(c float64) {
+ C.gl3_0_glIndexd(gl.funcs, C.GLdouble(c))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEnd.xml
+func (gl *GL) End() {
+ C.gl3_0_glEnd(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEdgeFlagv.xml
+func (gl *GL) EdgeFlagv(flag []bool) {
+ C.gl3_0_glEdgeFlagv(gl.funcs, (*C.GLboolean)(unsafe.Pointer(&flag[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEdgeFlag.xml
+func (gl *GL) EdgeFlag(flag bool) {
+ C.gl3_0_glEdgeFlag(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4usv.xml
+func (gl *GL) Color4usv(v []uint16) {
+ C.gl3_0_glColor4usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4us.xml
+func (gl *GL) Color4us(red, green, blue, alpha uint16) {
+ C.gl3_0_glColor4us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue), C.GLushort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4uiv.xml
+func (gl *GL) Color4uiv(v []uint32) {
+ C.gl3_0_glColor4uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4ui.xml
+func (gl *GL) Color4ui(red, green, blue, alpha uint32) {
+ C.gl3_0_glColor4ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue), C.GLuint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4ubv.xml
+func (gl *GL) Color4ubv(v []uint8) {
+ C.gl3_0_glColor4ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4ub.xml
+func (gl *GL) Color4ub(red, green, blue, alpha uint8) {
+ C.gl3_0_glColor4ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue), C.GLubyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4sv.xml
+func (gl *GL) Color4sv(v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glColor4sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4s.xml
+func (gl *GL) Color4s(red, green, blue, alpha int16) {
+ C.gl3_0_glColor4s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue), C.GLshort(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4iv.xml
+func (gl *GL) Color4iv(v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glColor4iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4i.xml
+func (gl *GL) Color4i(red, green, blue, alpha int32) {
+ C.gl3_0_glColor4i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue), C.GLint(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4fv.xml
+func (gl *GL) Color4fv(v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glColor4fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4f.xml
+func (gl *GL) Color4f(red, green, blue, alpha float32) {
+ C.gl3_0_glColor4f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4dv.xml
+func (gl *GL) Color4dv(v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glColor4dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4d.xml
+func (gl *GL) Color4d(red, green, blue, alpha float64) {
+ C.gl3_0_glColor4d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue), C.GLdouble(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4bv.xml
+func (gl *GL) Color4bv(v []byte) {
+ C.gl3_0_glColor4bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor4b.xml
+func (gl *GL) Color4b(red, green, blue, alpha byte) {
+ C.gl3_0_glColor4b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue), C.GLbyte(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3usv.xml
+func (gl *GL) Color3usv(v []uint16) {
+ C.gl3_0_glColor3usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3us.xml
+func (gl *GL) Color3us(red, green, blue uint16) {
+ C.gl3_0_glColor3us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3uiv.xml
+func (gl *GL) Color3uiv(v []uint32) {
+ C.gl3_0_glColor3uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3ui.xml
+func (gl *GL) Color3ui(red, green, blue uint32) {
+ C.gl3_0_glColor3ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3ubv.xml
+func (gl *GL) Color3ubv(v []uint8) {
+ C.gl3_0_glColor3ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3ub.xml
+func (gl *GL) Color3ub(red, green, blue uint8) {
+ C.gl3_0_glColor3ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3sv.xml
+func (gl *GL) Color3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glColor3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3s.xml
+func (gl *GL) Color3s(red, green, blue int16) {
+ C.gl3_0_glColor3s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3iv.xml
+func (gl *GL) Color3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glColor3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3i.xml
+func (gl *GL) Color3i(red, green, blue int32) {
+ C.gl3_0_glColor3i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3fv.xml
+func (gl *GL) Color3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glColor3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3f.xml
+func (gl *GL) Color3f(red, green, blue float32) {
+ C.gl3_0_glColor3f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3dv.xml
+func (gl *GL) Color3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glColor3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3d.xml
+func (gl *GL) Color3d(red, green, blue float64) {
+ C.gl3_0_glColor3d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3bv.xml
+func (gl *GL) Color3bv(v []byte) {
+ C.gl3_0_glColor3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColor3b.xml
+func (gl *GL) Color3b(red, green, blue byte) {
+ C.gl3_0_glColor3b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBitmap.xml
+func (gl *GL) Bitmap(width, height int, xorig, yorig, xmove, ymove float32, bitmap []uint8) {
+ C.gl3_0_glBitmap(gl.funcs, C.GLsizei(width), C.GLsizei(height), C.GLfloat(xorig), C.GLfloat(yorig), C.GLfloat(xmove), C.GLfloat(ymove), (*C.GLubyte)(unsafe.Pointer(&bitmap[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBegin.xml
+func (gl *GL) Begin(mode glbase.Enum) {
+ C.gl3_0_glBegin(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glListBase.xml
+func (gl *GL) ListBase(base uint32) {
+ C.gl3_0_glListBase(gl.funcs, C.GLuint(base))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGenLists.xml
+func (gl *GL) GenLists(range_ int32) uint32 {
+ glresult := C.gl3_0_glGenLists(gl.funcs, C.GLsizei(range_))
+ return uint32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDeleteLists.xml
+func (gl *GL) DeleteLists(list uint32, range_ int32) {
+ C.gl3_0_glDeleteLists(gl.funcs, C.GLuint(list), C.GLsizei(range_))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCallLists.xml
+func (gl *GL) CallLists(n int, gltype glbase.Enum, lists interface{}) {
+ var lists_ptr unsafe.Pointer
+ var lists_v = reflect.ValueOf(lists)
+ if lists != nil && lists_v.Kind() != reflect.Slice {
+ panic("parameter lists must be a slice")
+ }
+ if lists != nil {
+ lists_ptr = unsafe.Pointer(lists_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glCallLists(gl.funcs, C.GLsizei(n), C.GLenum(gltype), lists_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCallList.xml
+func (gl *GL) CallList(list uint32) {
+ C.gl3_0_glCallList(gl.funcs, C.GLuint(list))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEndList.xml
+func (gl *GL) EndList() {
+ C.gl3_0_glEndList(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glNewList.xml
+func (gl *GL) NewList(list uint32, mode glbase.Enum) {
+ C.gl3_0_glNewList(gl.funcs, C.GLuint(list), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPushClientAttrib.xml
+func (gl *GL) PushClientAttrib(mask glbase.Bitfield) {
+ C.gl3_0_glPushClientAttrib(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPopClientAttrib.xml
+func (gl *GL) PopClientAttrib() {
+ C.gl3_0_glPopClientAttrib(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPrioritizeTextures.xml
+func (gl *GL) PrioritizeTextures(n int, textures []glbase.Texture, priorities []float32) {
+ C.gl3_0_glPrioritizeTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLfloat)(unsafe.Pointer(&priorities[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glAreTexturesResident.xml
+func (gl *GL) AreTexturesResident(n int, textures []glbase.Texture, residences []bool) bool {
+ glresult := C.gl3_0_glAreTexturesResident(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])), (*C.GLboolean)(unsafe.Pointer(&residences[0])))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexPointer.xml
+func (gl *GL) VertexPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glVertexPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexCoordPointer.xml
+func (gl *GL) TexCoordPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glTexCoordPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glNormalPointer.xml
+func (gl *GL) NormalPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glNormalPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glInterleavedArrays.xml
+func (gl *GL) InterleavedArrays(format glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glInterleavedArrays(gl.funcs, C.GLenum(format), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexPointer.xml
+func (gl *GL) IndexPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glIndexPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEnableClientState.xml
+func (gl *GL) EnableClientState(array glbase.Enum) {
+ C.gl3_0_glEnableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEdgeFlagPointer.xml
+func (gl *GL) EdgeFlagPointer(stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glEdgeFlagPointer(gl.funcs, C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDisableClientState.xml
+func (gl *GL) DisableClientState(array glbase.Enum) {
+ C.gl3_0_glDisableClientState(gl.funcs, C.GLenum(array))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColorPointer.xml
+func (gl *GL) ColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glColorPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glArrayElement.xml
+func (gl *GL) ArrayElement(i int32) {
+ C.gl3_0_glArrayElement(gl.funcs, C.GLint(i))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glResetMinmax.xml
+func (gl *GL) ResetMinmax(target glbase.Enum) {
+ C.gl3_0_glResetMinmax(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glResetHistogram.xml
+func (gl *GL) ResetHistogram(target glbase.Enum) {
+ C.gl3_0_glResetHistogram(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMinmax.xml
+func (gl *GL) Minmax(target, internalFormat glbase.Enum, sink bool) {
+ C.gl3_0_glMinmax(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), *(*C.GLboolean)(unsafe.Pointer(&sink)))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glHistogram.xml
+func (gl *GL) Histogram(target glbase.Enum, width int, internalFormat glbase.Enum, sink bool) {
+ C.gl3_0_glHistogram(gl.funcs, C.GLenum(target), C.GLsizei(width), C.GLenum(internalFormat), *(*C.GLboolean)(unsafe.Pointer(&sink)))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetMinmaxParameteriv.xml
+func (gl *GL) GetMinmaxParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetMinmaxParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetMinmaxParameterfv.xml
+func (gl *GL) GetMinmaxParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl3_0_glGetMinmaxParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetMinmax.xml
+func (gl *GL) GetMinmax(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{}) {
+ var values_ptr unsafe.Pointer
+ var values_v = reflect.ValueOf(values)
+ if values != nil && values_v.Kind() != reflect.Slice {
+ panic("parameter values must be a slice")
+ }
+ if values != nil {
+ values_ptr = unsafe.Pointer(values_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glGetMinmax(gl.funcs, C.GLenum(target), *(*C.GLboolean)(unsafe.Pointer(&reset)), C.GLenum(format), C.GLenum(gltype), values_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetHistogramParameteriv.xml
+func (gl *GL) GetHistogramParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetHistogramParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetHistogramParameterfv.xml
+func (gl *GL) GetHistogramParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl3_0_glGetHistogramParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetHistogram.xml
+func (gl *GL) GetHistogram(target glbase.Enum, reset bool, format, gltype glbase.Enum, values interface{}) {
+ var values_ptr unsafe.Pointer
+ var values_v = reflect.ValueOf(values)
+ if values != nil && values_v.Kind() != reflect.Slice {
+ panic("parameter values must be a slice")
+ }
+ if values != nil {
+ values_ptr = unsafe.Pointer(values_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glGetHistogram(gl.funcs, C.GLenum(target), *(*C.GLboolean)(unsafe.Pointer(&reset)), C.GLenum(format), C.GLenum(gltype), values_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSeparableFilter2D.xml
+func (gl *GL) SeparableFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, row, column interface{}) {
+ var row_ptr unsafe.Pointer
+ var row_v = reflect.ValueOf(row)
+ if row != nil && row_v.Kind() != reflect.Slice {
+ panic("parameter row must be a slice")
+ }
+ if row != nil {
+ row_ptr = unsafe.Pointer(row_v.Index(0).Addr().Pointer())
+ }
+ var column_ptr unsafe.Pointer
+ var column_v = reflect.ValueOf(column)
+ if column != nil && column_v.Kind() != reflect.Slice {
+ panic("parameter column must be a slice")
+ }
+ if column != nil {
+ column_ptr = unsafe.Pointer(column_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glSeparableFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), row_ptr, column_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetSeparableFilter.xml
+func (gl *GL) GetSeparableFilter(target, format, gltype glbase.Enum, row, column, span interface{}) {
+ var row_ptr unsafe.Pointer
+ var row_v = reflect.ValueOf(row)
+ if row != nil && row_v.Kind() != reflect.Slice {
+ panic("parameter row must be a slice")
+ }
+ if row != nil {
+ row_ptr = unsafe.Pointer(row_v.Index(0).Addr().Pointer())
+ }
+ var column_ptr unsafe.Pointer
+ var column_v = reflect.ValueOf(column)
+ if column != nil && column_v.Kind() != reflect.Slice {
+ panic("parameter column must be a slice")
+ }
+ if column != nil {
+ column_ptr = unsafe.Pointer(column_v.Index(0).Addr().Pointer())
+ }
+ var span_ptr unsafe.Pointer
+ var span_v = reflect.ValueOf(span)
+ if span != nil && span_v.Kind() != reflect.Slice {
+ panic("parameter span must be a slice")
+ }
+ if span != nil {
+ span_ptr = unsafe.Pointer(span_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glGetSeparableFilter(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), row_ptr, column_ptr, span_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetConvolutionParameteriv.xml
+func (gl *GL) GetConvolutionParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetConvolutionParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetConvolutionParameterfv.xml
+func (gl *GL) GetConvolutionParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl3_0_glGetConvolutionParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetConvolutionFilter.xml
+func (gl *GL) GetConvolutionFilter(target, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glGetConvolutionFilter(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyConvolutionFilter2D.xml
+func (gl *GL) CopyConvolutionFilter2D(target, internalFormat glbase.Enum, x, y, width, height int) {
+ C.gl3_0_glCopyConvolutionFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyConvolutionFilter1D.xml
+func (gl *GL) CopyConvolutionFilter1D(target, internalFormat glbase.Enum, x, y, width int) {
+ C.gl3_0_glCopyConvolutionFilter1D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glConvolutionParameteriv.xml
+func (gl *GL) ConvolutionParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glConvolutionParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glConvolutionParameteri.xml
+func (gl *GL) ConvolutionParameteri(target, pname glbase.Enum, params int32) {
+ C.gl3_0_glConvolutionParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(params))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glConvolutionParameterfv.xml
+func (gl *GL) ConvolutionParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl3_0_glConvolutionParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glConvolutionParameterf.xml
+func (gl *GL) ConvolutionParameterf(target, pname glbase.Enum, params float32) {
+ C.gl3_0_glConvolutionParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(params))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glConvolutionFilter2D.xml
+func (gl *GL) ConvolutionFilter2D(target, internalFormat glbase.Enum, width, height int, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glConvolutionFilter2D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glConvolutionFilter1D.xml
+func (gl *GL) ConvolutionFilter1D(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, image interface{}) {
+ var image_ptr unsafe.Pointer
+ var image_v = reflect.ValueOf(image)
+ if image != nil && image_v.Kind() != reflect.Slice {
+ panic("parameter image must be a slice")
+ }
+ if image != nil {
+ image_ptr = unsafe.Pointer(image_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glConvolutionFilter1D(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), image_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyColorSubTable.xml
+func (gl *GL) CopyColorSubTable(target glbase.Enum, start int32, x, y, width int) {
+ C.gl3_0_glCopyColorSubTable(gl.funcs, C.GLenum(target), C.GLsizei(start), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColorSubTable.xml
+func (gl *GL) ColorSubTable(target glbase.Enum, start int32, count int, format, gltype glbase.Enum, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glColorSubTable(gl.funcs, C.GLenum(target), C.GLsizei(start), C.GLsizei(count), C.GLenum(format), C.GLenum(gltype), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetColorTableParameteriv.xml
+func (gl *GL) GetColorTableParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glGetColorTableParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetColorTableParameterfv.xml
+func (gl *GL) GetColorTableParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl3_0_glGetColorTableParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetColorTable.xml
+func (gl *GL) GetColorTable(target, format, gltype glbase.Enum, table interface{}) {
+ var table_ptr unsafe.Pointer
+ var table_v = reflect.ValueOf(table)
+ if table != nil && table_v.Kind() != reflect.Slice {
+ panic("parameter table must be a slice")
+ }
+ if table != nil {
+ table_ptr = unsafe.Pointer(table_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glGetColorTable(gl.funcs, C.GLenum(target), C.GLenum(format), C.GLenum(gltype), table_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyColorTable.xml
+func (gl *GL) CopyColorTable(target, internalFormat glbase.Enum, x, y, width int) {
+ C.gl3_0_glCopyColorTable(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColorTableParameteriv.xml
+func (gl *GL) ColorTableParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_0_glColorTableParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColorTableParameterfv.xml
+func (gl *GL) ColorTableParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl3_0_glColorTableParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColorTable.xml
+func (gl *GL) ColorTable(target, internalFormat glbase.Enum, width int, format, gltype glbase.Enum, table interface{}) {
+ var table_ptr unsafe.Pointer
+ var table_v = reflect.ValueOf(table)
+ if table != nil && table_v.Kind() != reflect.Slice {
+ panic("parameter table must be a slice")
+ }
+ if table != nil {
+ table_ptr = unsafe.Pointer(table_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glColorTable(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), table_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultTransposeMatrixd.xml
+func (gl *GL) MultTransposeMatrixd(m []float64) {
+ C.gl3_0_glMultTransposeMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultTransposeMatrixf.xml
+func (gl *GL) MultTransposeMatrixf(m []float32) {
+ C.gl3_0_glMultTransposeMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLoadTransposeMatrixd.xml
+func (gl *GL) LoadTransposeMatrixd(m []float64) {
+ C.gl3_0_glLoadTransposeMatrixd(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLoadTransposeMatrixf.xml
+func (gl *GL) LoadTransposeMatrixf(m []float32) {
+ C.gl3_0_glLoadTransposeMatrixf(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&m[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord4sv.xml
+func (gl *GL) MultiTexCoord4sv(target glbase.Enum, v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glMultiTexCoord4sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord4s.xml
+func (gl *GL) MultiTexCoord4s(target glbase.Enum, s, t, r, q int16) {
+ C.gl3_0_glMultiTexCoord4s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t), C.GLshort(r), C.GLshort(q))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord4iv.xml
+func (gl *GL) MultiTexCoord4iv(target glbase.Enum, v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glMultiTexCoord4iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord4i.xml
+func (gl *GL) MultiTexCoord4i(target glbase.Enum, s, t, r, q int32) {
+ C.gl3_0_glMultiTexCoord4i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t), C.GLint(r), C.GLint(q))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord4fv.xml
+func (gl *GL) MultiTexCoord4fv(target glbase.Enum, v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glMultiTexCoord4fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord4f.xml
+func (gl *GL) MultiTexCoord4f(target glbase.Enum, s, t, r, q float32) {
+ C.gl3_0_glMultiTexCoord4f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t), C.GLfloat(r), C.GLfloat(q))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord4dv.xml
+func (gl *GL) MultiTexCoord4dv(target glbase.Enum, v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glMultiTexCoord4dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord4d.xml
+func (gl *GL) MultiTexCoord4d(target glbase.Enum, s, t, r, q float64) {
+ C.gl3_0_glMultiTexCoord4d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t), C.GLdouble(r), C.GLdouble(q))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord3sv.xml
+func (gl *GL) MultiTexCoord3sv(target glbase.Enum, v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glMultiTexCoord3sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord3s.xml
+func (gl *GL) MultiTexCoord3s(target glbase.Enum, s, t, r int16) {
+ C.gl3_0_glMultiTexCoord3s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t), C.GLshort(r))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord3iv.xml
+func (gl *GL) MultiTexCoord3iv(target glbase.Enum, v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glMultiTexCoord3iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord3i.xml
+func (gl *GL) MultiTexCoord3i(target glbase.Enum, s, t, r int32) {
+ C.gl3_0_glMultiTexCoord3i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t), C.GLint(r))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord3fv.xml
+func (gl *GL) MultiTexCoord3fv(target glbase.Enum, v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glMultiTexCoord3fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord3f.xml
+func (gl *GL) MultiTexCoord3f(target glbase.Enum, s, t, r float32) {
+ C.gl3_0_glMultiTexCoord3f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t), C.GLfloat(r))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord3dv.xml
+func (gl *GL) MultiTexCoord3dv(target glbase.Enum, v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glMultiTexCoord3dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord3d.xml
+func (gl *GL) MultiTexCoord3d(target glbase.Enum, s, t, r float64) {
+ C.gl3_0_glMultiTexCoord3d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t), C.GLdouble(r))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord2sv.xml
+func (gl *GL) MultiTexCoord2sv(target glbase.Enum, v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glMultiTexCoord2sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord2s.xml
+func (gl *GL) MultiTexCoord2s(target glbase.Enum, s, t int16) {
+ C.gl3_0_glMultiTexCoord2s(gl.funcs, C.GLenum(target), C.GLshort(s), C.GLshort(t))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord2iv.xml
+func (gl *GL) MultiTexCoord2iv(target glbase.Enum, v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glMultiTexCoord2iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord2i.xml
+func (gl *GL) MultiTexCoord2i(target glbase.Enum, s, t int32) {
+ C.gl3_0_glMultiTexCoord2i(gl.funcs, C.GLenum(target), C.GLint(s), C.GLint(t))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord2fv.xml
+func (gl *GL) MultiTexCoord2fv(target glbase.Enum, v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glMultiTexCoord2fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord2f.xml
+func (gl *GL) MultiTexCoord2f(target glbase.Enum, s, t float32) {
+ C.gl3_0_glMultiTexCoord2f(gl.funcs, C.GLenum(target), C.GLfloat(s), C.GLfloat(t))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord2dv.xml
+func (gl *GL) MultiTexCoord2dv(target glbase.Enum, v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glMultiTexCoord2dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord2d.xml
+func (gl *GL) MultiTexCoord2d(target glbase.Enum, s, t float64) {
+ C.gl3_0_glMultiTexCoord2d(gl.funcs, C.GLenum(target), C.GLdouble(s), C.GLdouble(t))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord1sv.xml
+func (gl *GL) MultiTexCoord1sv(target glbase.Enum, v []int16) {
+ C.gl3_0_glMultiTexCoord1sv(gl.funcs, C.GLenum(target), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord1s.xml
+func (gl *GL) MultiTexCoord1s(target glbase.Enum, s int16) {
+ C.gl3_0_glMultiTexCoord1s(gl.funcs, C.GLenum(target), C.GLshort(s))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord1iv.xml
+func (gl *GL) MultiTexCoord1iv(target glbase.Enum, v []int32) {
+ C.gl3_0_glMultiTexCoord1iv(gl.funcs, C.GLenum(target), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord1i.xml
+func (gl *GL) MultiTexCoord1i(target glbase.Enum, s int32) {
+ C.gl3_0_glMultiTexCoord1i(gl.funcs, C.GLenum(target), C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord1fv.xml
+func (gl *GL) MultiTexCoord1fv(target glbase.Enum, v []float32) {
+ C.gl3_0_glMultiTexCoord1fv(gl.funcs, C.GLenum(target), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord1f.xml
+func (gl *GL) MultiTexCoord1f(target glbase.Enum, s float32) {
+ C.gl3_0_glMultiTexCoord1f(gl.funcs, C.GLenum(target), C.GLfloat(s))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord1dv.xml
+func (gl *GL) MultiTexCoord1dv(target glbase.Enum, v []float64) {
+ C.gl3_0_glMultiTexCoord1dv(gl.funcs, C.GLenum(target), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiTexCoord1d.xml
+func (gl *GL) MultiTexCoord1d(target glbase.Enum, s float64) {
+ C.gl3_0_glMultiTexCoord1d(gl.funcs, C.GLenum(target), C.GLdouble(s))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClientActiveTexture.xml
+func (gl *GL) ClientActiveTexture(texture glbase.Enum) {
+ C.gl3_0_glClientActiveTexture(gl.funcs, C.GLenum(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos3sv.xml
+func (gl *GL) WindowPos3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glWindowPos3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos3s.xml
+func (gl *GL) WindowPos3s(x, y, z int16) {
+ C.gl3_0_glWindowPos3s(gl.funcs, C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos3iv.xml
+func (gl *GL) WindowPos3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glWindowPos3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos3i.xml
+func (gl *GL) WindowPos3i(x, y, z int) {
+ C.gl3_0_glWindowPos3i(gl.funcs, C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos3fv.xml
+func (gl *GL) WindowPos3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glWindowPos3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos3f.xml
+func (gl *GL) WindowPos3f(x, y, z float32) {
+ C.gl3_0_glWindowPos3f(gl.funcs, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos3dv.xml
+func (gl *GL) WindowPos3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glWindowPos3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos3d.xml
+func (gl *GL) WindowPos3d(x, y, z float64) {
+ C.gl3_0_glWindowPos3d(gl.funcs, C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos2sv.xml
+func (gl *GL) WindowPos2sv(v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glWindowPos2sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos2s.xml
+func (gl *GL) WindowPos2s(x, y int16) {
+ C.gl3_0_glWindowPos2s(gl.funcs, C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos2iv.xml
+func (gl *GL) WindowPos2iv(v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glWindowPos2iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos2i.xml
+func (gl *GL) WindowPos2i(x, y int) {
+ C.gl3_0_glWindowPos2i(gl.funcs, C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos2fv.xml
+func (gl *GL) WindowPos2fv(v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glWindowPos2fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos2f.xml
+func (gl *GL) WindowPos2f(x, y float32) {
+ C.gl3_0_glWindowPos2f(gl.funcs, C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos2dv.xml
+func (gl *GL) WindowPos2dv(v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glWindowPos2dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glWindowPos2d.xml
+func (gl *GL) WindowPos2d(x, y float64) {
+ C.gl3_0_glWindowPos2d(gl.funcs, C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColorPointer.xml
+func (gl *GL) SecondaryColorPointer(size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glSecondaryColorPointer(gl.funcs, C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3usv.xml
+func (gl *GL) SecondaryColor3usv(v []uint16) {
+ C.gl3_0_glSecondaryColor3usv(gl.funcs, (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3us.xml
+func (gl *GL) SecondaryColor3us(red, green, blue uint16) {
+ C.gl3_0_glSecondaryColor3us(gl.funcs, C.GLushort(red), C.GLushort(green), C.GLushort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3uiv.xml
+func (gl *GL) SecondaryColor3uiv(v []uint32) {
+ C.gl3_0_glSecondaryColor3uiv(gl.funcs, (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3ui.xml
+func (gl *GL) SecondaryColor3ui(red, green, blue uint32) {
+ C.gl3_0_glSecondaryColor3ui(gl.funcs, C.GLuint(red), C.GLuint(green), C.GLuint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3ubv.xml
+func (gl *GL) SecondaryColor3ubv(v []uint8) {
+ C.gl3_0_glSecondaryColor3ubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3ub.xml
+func (gl *GL) SecondaryColor3ub(red, green, blue uint8) {
+ C.gl3_0_glSecondaryColor3ub(gl.funcs, C.GLubyte(red), C.GLubyte(green), C.GLubyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3sv.xml
+func (gl *GL) SecondaryColor3sv(v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glSecondaryColor3sv(gl.funcs, (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3s.xml
+func (gl *GL) SecondaryColor3s(red, green, blue int16) {
+ C.gl3_0_glSecondaryColor3s(gl.funcs, C.GLshort(red), C.GLshort(green), C.GLshort(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3iv.xml
+func (gl *GL) SecondaryColor3iv(v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glSecondaryColor3iv(gl.funcs, (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3i.xml
+func (gl *GL) SecondaryColor3i(red, green, blue int32) {
+ C.gl3_0_glSecondaryColor3i(gl.funcs, C.GLint(red), C.GLint(green), C.GLint(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3fv.xml
+func (gl *GL) SecondaryColor3fv(v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glSecondaryColor3fv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3f.xml
+func (gl *GL) SecondaryColor3f(red, green, blue float32) {
+ C.gl3_0_glSecondaryColor3f(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3dv.xml
+func (gl *GL) SecondaryColor3dv(v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glSecondaryColor3dv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3d.xml
+func (gl *GL) SecondaryColor3d(red, green, blue float64) {
+ C.gl3_0_glSecondaryColor3d(gl.funcs, C.GLdouble(red), C.GLdouble(green), C.GLdouble(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3bv.xml
+func (gl *GL) SecondaryColor3bv(v []byte) {
+ C.gl3_0_glSecondaryColor3bv(gl.funcs, (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSecondaryColor3b.xml
+func (gl *GL) SecondaryColor3b(red, green, blue byte) {
+ C.gl3_0_glSecondaryColor3b(gl.funcs, C.GLbyte(red), C.GLbyte(green), C.GLbyte(blue))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFogCoordPointer.xml
+func (gl *GL) FogCoordPointer(gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_0_glFogCoordPointer(gl.funcs, C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFogCoorddv.xml
+func (gl *GL) FogCoorddv(coord []float64) {
+ C.gl3_0_glFogCoorddv(gl.funcs, (*C.GLdouble)(unsafe.Pointer(&coord[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFogCoordd.xml
+func (gl *GL) FogCoordd(coord float64) {
+ C.gl3_0_glFogCoordd(gl.funcs, C.GLdouble(coord))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFogCoordfv.xml
+func (gl *GL) FogCoordfv(coord []float32) {
+ C.gl3_0_glFogCoordfv(gl.funcs, (*C.GLfloat)(unsafe.Pointer(&coord[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFogCoordf.xml
+func (gl *GL) FogCoordf(coord float32) {
+ C.gl3_0_glFogCoordf(gl.funcs, C.GLfloat(coord))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4usv.xml
+func (gl *GL) VertexAttrib4usv(index glbase.Attrib, v []uint16) {
+ C.gl3_0_glVertexAttrib4usv(gl.funcs, C.GLuint(index), (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4uiv.xml
+func (gl *GL) VertexAttrib4uiv(index glbase.Attrib, v []uint32) {
+ C.gl3_0_glVertexAttrib4uiv(gl.funcs, C.GLuint(index), (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4ubv.xml
+func (gl *GL) VertexAttrib4ubv(index glbase.Attrib, v []uint8) {
+ C.gl3_0_glVertexAttrib4ubv(gl.funcs, C.GLuint(index), (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4sv.xml
+func (gl *GL) VertexAttrib4sv(index glbase.Attrib, v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertexAttrib4sv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4s.xml
+func (gl *GL) VertexAttrib4s(index glbase.Attrib, x, y, z, w int16) {
+ C.gl3_0_glVertexAttrib4s(gl.funcs, C.GLuint(index), C.GLshort(x), C.GLshort(y), C.GLshort(z), C.GLshort(w))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4iv.xml
+func (gl *GL) VertexAttrib4iv(index glbase.Attrib, v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertexAttrib4iv(gl.funcs, C.GLuint(index), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4fv.xml
+func (gl *GL) VertexAttrib4fv(index glbase.Attrib, v []float32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertexAttrib4fv(gl.funcs, C.GLuint(index), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4f.xml
+func (gl *GL) VertexAttrib4f(index glbase.Attrib, x, y, z, w float32) {
+ C.gl3_0_glVertexAttrib4f(gl.funcs, C.GLuint(index), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4dv.xml
+func (gl *GL) VertexAttrib4dv(index glbase.Attrib, v []float64) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertexAttrib4dv(gl.funcs, C.GLuint(index), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4d.xml
+func (gl *GL) VertexAttrib4d(index glbase.Attrib, x, y, z, w float64) {
+ C.gl3_0_glVertexAttrib4d(gl.funcs, C.GLuint(index), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z), C.GLdouble(w))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4bv.xml
+func (gl *GL) VertexAttrib4bv(index glbase.Attrib, v []byte) {
+ C.gl3_0_glVertexAttrib4bv(gl.funcs, C.GLuint(index), (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4Nusv.xml
+func (gl *GL) VertexAttrib4Nusv(index glbase.Attrib, v []uint16) {
+ C.gl3_0_glVertexAttrib4Nusv(gl.funcs, C.GLuint(index), (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4Nuiv.xml
+func (gl *GL) VertexAttrib4Nuiv(index glbase.Attrib, v []uint32) {
+ C.gl3_0_glVertexAttrib4Nuiv(gl.funcs, C.GLuint(index), (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4Nubv.xml
+func (gl *GL) VertexAttrib4Nubv(index glbase.Attrib, v []uint8) {
+ C.gl3_0_glVertexAttrib4Nubv(gl.funcs, C.GLuint(index), (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4Nub.xml
+func (gl *GL) VertexAttrib4Nub(index glbase.Attrib, x, y, z, w uint8) {
+ C.gl3_0_glVertexAttrib4Nub(gl.funcs, C.GLuint(index), C.GLubyte(x), C.GLubyte(y), C.GLubyte(z), C.GLubyte(w))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4Nsv.xml
+func (gl *GL) VertexAttrib4Nsv(index glbase.Attrib, v []int16) {
+ C.gl3_0_glVertexAttrib4Nsv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4Niv.xml
+func (gl *GL) VertexAttrib4Niv(index glbase.Attrib, v []int32) {
+ C.gl3_0_glVertexAttrib4Niv(gl.funcs, C.GLuint(index), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib4Nbv.xml
+func (gl *GL) VertexAttrib4Nbv(index glbase.Attrib, v []byte) {
+ C.gl3_0_glVertexAttrib4Nbv(gl.funcs, C.GLuint(index), (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib3sv.xml
+func (gl *GL) VertexAttrib3sv(index glbase.Attrib, v []int16) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertexAttrib3sv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib3s.xml
+func (gl *GL) VertexAttrib3s(index glbase.Attrib, x, y, z int16) {
+ C.gl3_0_glVertexAttrib3s(gl.funcs, C.GLuint(index), C.GLshort(x), C.GLshort(y), C.GLshort(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib3fv.xml
+func (gl *GL) VertexAttrib3fv(index glbase.Attrib, v []float32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertexAttrib3fv(gl.funcs, C.GLuint(index), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib3f.xml
+func (gl *GL) VertexAttrib3f(index glbase.Attrib, x, y, z float32) {
+ C.gl3_0_glVertexAttrib3f(gl.funcs, C.GLuint(index), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib3dv.xml
+func (gl *GL) VertexAttrib3dv(index glbase.Attrib, v []float64) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertexAttrib3dv(gl.funcs, C.GLuint(index), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib3d.xml
+func (gl *GL) VertexAttrib3d(index glbase.Attrib, x, y, z float64) {
+ C.gl3_0_glVertexAttrib3d(gl.funcs, C.GLuint(index), C.GLdouble(x), C.GLdouble(y), C.GLdouble(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib2sv.xml
+func (gl *GL) VertexAttrib2sv(index glbase.Attrib, v []int16) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertexAttrib2sv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib2s.xml
+func (gl *GL) VertexAttrib2s(index glbase.Attrib, x, y int16) {
+ C.gl3_0_glVertexAttrib2s(gl.funcs, C.GLuint(index), C.GLshort(x), C.GLshort(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib2fv.xml
+func (gl *GL) VertexAttrib2fv(index glbase.Attrib, v []float32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertexAttrib2fv(gl.funcs, C.GLuint(index), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib2f.xml
+func (gl *GL) VertexAttrib2f(index glbase.Attrib, x, y float32) {
+ C.gl3_0_glVertexAttrib2f(gl.funcs, C.GLuint(index), C.GLfloat(x), C.GLfloat(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib2dv.xml
+func (gl *GL) VertexAttrib2dv(index glbase.Attrib, v []float64) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertexAttrib2dv(gl.funcs, C.GLuint(index), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib2d.xml
+func (gl *GL) VertexAttrib2d(index glbase.Attrib, x, y float64) {
+ C.gl3_0_glVertexAttrib2d(gl.funcs, C.GLuint(index), C.GLdouble(x), C.GLdouble(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib1sv.xml
+func (gl *GL) VertexAttrib1sv(index glbase.Attrib, v []int16) {
+ C.gl3_0_glVertexAttrib1sv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib1s.xml
+func (gl *GL) VertexAttrib1s(index glbase.Attrib, x int16) {
+ C.gl3_0_glVertexAttrib1s(gl.funcs, C.GLuint(index), C.GLshort(x))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib1fv.xml
+func (gl *GL) VertexAttrib1fv(index glbase.Attrib, v []float32) {
+ C.gl3_0_glVertexAttrib1fv(gl.funcs, C.GLuint(index), (*C.GLfloat)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib1f.xml
+func (gl *GL) VertexAttrib1f(index glbase.Attrib, x float32) {
+ C.gl3_0_glVertexAttrib1f(gl.funcs, C.GLuint(index), C.GLfloat(x))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib1dv.xml
+func (gl *GL) VertexAttrib1dv(index glbase.Attrib, v []float64) {
+ C.gl3_0_glVertexAttrib1dv(gl.funcs, C.GLuint(index), (*C.GLdouble)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttrib1d.xml
+func (gl *GL) VertexAttrib1d(index glbase.Attrib, x float64) {
+ C.gl3_0_glVertexAttrib1d(gl.funcs, C.GLuint(index), C.GLdouble(x))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI4usv.xml
+func (gl *GL) VertexAttribI4usv(index glbase.Attrib, v []uint16) {
+ C.gl3_0_glVertexAttribI4usv(gl.funcs, C.GLuint(index), (*C.GLushort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI4ubv.xml
+func (gl *GL) VertexAttribI4ubv(index glbase.Attrib, v []uint8) {
+ C.gl3_0_glVertexAttribI4ubv(gl.funcs, C.GLuint(index), (*C.GLubyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI4sv.xml
+func (gl *GL) VertexAttribI4sv(index glbase.Attrib, v []int16) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertexAttribI4sv(gl.funcs, C.GLuint(index), (*C.GLshort)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI4bv.xml
+func (gl *GL) VertexAttribI4bv(index glbase.Attrib, v []byte) {
+ C.gl3_0_glVertexAttribI4bv(gl.funcs, C.GLuint(index), (*C.GLbyte)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI4uiv.xml
+func (gl *GL) VertexAttribI4uiv(index glbase.Attrib, v []uint32) {
+ C.gl3_0_glVertexAttribI4uiv(gl.funcs, C.GLuint(index), (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI3uiv.xml
+func (gl *GL) VertexAttribI3uiv(index glbase.Attrib, v []uint32) {
+ C.gl3_0_glVertexAttribI3uiv(gl.funcs, C.GLuint(index), (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI2uiv.xml
+func (gl *GL) VertexAttribI2uiv(index glbase.Attrib, v []uint32) {
+ C.gl3_0_glVertexAttribI2uiv(gl.funcs, C.GLuint(index), (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI1uiv.xml
+func (gl *GL) VertexAttribI1uiv(index glbase.Attrib, v []uint32) {
+ C.gl3_0_glVertexAttribI1uiv(gl.funcs, C.GLuint(index), (*C.GLuint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI4iv.xml
+func (gl *GL) VertexAttribI4iv(index glbase.Attrib, v []int32) {
+ if len(v) != 4 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertexAttribI4iv(gl.funcs, C.GLuint(index), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI3iv.xml
+func (gl *GL) VertexAttribI3iv(index glbase.Attrib, v []int32) {
+ if len(v) != 3 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertexAttribI3iv(gl.funcs, C.GLuint(index), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI2iv.xml
+func (gl *GL) VertexAttribI2iv(index glbase.Attrib, v []int32) {
+ if len(v) != 2 {
+ panic("parameter v has incorrect length")
+ }
+ C.gl3_0_glVertexAttribI2iv(gl.funcs, C.GLuint(index), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI1iv.xml
+func (gl *GL) VertexAttribI1iv(index glbase.Attrib, v []int32) {
+ C.gl3_0_glVertexAttribI1iv(gl.funcs, C.GLuint(index), (*C.GLint)(unsafe.Pointer(&v[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI4ui.xml
+func (gl *GL) VertexAttribI4ui(index glbase.Attrib, x, y, z, w uint32) {
+ C.gl3_0_glVertexAttribI4ui(gl.funcs, C.GLuint(index), C.GLuint(x), C.GLuint(y), C.GLuint(z), C.GLuint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI3ui.xml
+func (gl *GL) VertexAttribI3ui(index glbase.Attrib, x, y, z uint32) {
+ C.gl3_0_glVertexAttribI3ui(gl.funcs, C.GLuint(index), C.GLuint(x), C.GLuint(y), C.GLuint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI2ui.xml
+func (gl *GL) VertexAttribI2ui(index glbase.Attrib, x, y uint32) {
+ C.gl3_0_glVertexAttribI2ui(gl.funcs, C.GLuint(index), C.GLuint(x), C.GLuint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI1ui.xml
+func (gl *GL) VertexAttribI1ui(index glbase.Attrib, x uint32) {
+ C.gl3_0_glVertexAttribI1ui(gl.funcs, C.GLuint(index), C.GLuint(x))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI4i.xml
+func (gl *GL) VertexAttribI4i(index glbase.Attrib, x, y, z, w int) {
+ C.gl3_0_glVertexAttribI4i(gl.funcs, C.GLuint(index), C.GLint(x), C.GLint(y), C.GLint(z), C.GLint(w))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI3i.xml
+func (gl *GL) VertexAttribI3i(index glbase.Attrib, x, y, z int) {
+ C.gl3_0_glVertexAttribI3i(gl.funcs, C.GLuint(index), C.GLint(x), C.GLint(y), C.GLint(z))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI2i.xml
+func (gl *GL) VertexAttribI2i(index glbase.Attrib, x, y int) {
+ C.gl3_0_glVertexAttribI2i(gl.funcs, C.GLuint(index), C.GLint(x), C.GLint(y))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribI1i.xml
+func (gl *GL) VertexAttribI1i(index glbase.Attrib, x int) {
+ C.gl3_0_glVertexAttribI1i(gl.funcs, C.GLuint(index), C.GLint(x))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.1/funcs.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.1/funcs.cpp
new file mode 100644
index 000000000..7f9846760
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.1/funcs.cpp
@@ -0,0 +1,1422 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#include <QOpenGLContext>
+#include <QtGui/qopenglfunctions_3_1.h>
+
+#include "funcs.h"
+
+void *gl3_1_funcs() {
+ QOpenGLFunctions_3_1* funcs = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_3_1>();
+ if (!funcs) {
+ return 0;
+ }
+ funcs->initializeOpenGLFunctions();
+ return funcs;
+}
+
+
+void gl3_1_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glViewport(x, y, width, height);
+}
+
+void gl3_1_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDepthRange(nearVal, farVal);
+}
+
+GLboolean gl3_1_glIsEnabled(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glIsEnabled(cap);
+}
+
+void gl3_1_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameteriv(target, level, pname, params);
+}
+
+void gl3_1_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameterfv(target, level, pname, params);
+}
+
+void gl3_1_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetTexParameteriv(target, pname, params);
+}
+
+void gl3_1_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetTexParameterfv(target, pname, params);
+}
+
+void gl3_1_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetTexImage(target, level, format, gltype, pixels);
+}
+
+void gl3_1_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetIntegerv(pname, params);
+}
+
+void gl3_1_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetFloatv(pname, params);
+}
+
+GLenum gl3_1_glGetError(void *_glfuncs)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glGetError();
+}
+
+void gl3_1_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetDoublev(pname, params);
+}
+
+void gl3_1_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetBooleanv(pname, params);
+}
+
+void gl3_1_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glReadPixels(x, y, width, height, format, gltype, pixels);
+}
+
+void gl3_1_glReadBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glReadBuffer(mode);
+}
+
+void gl3_1_glPixelStorei(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glPixelStorei(pname, param);
+}
+
+void gl3_1_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glPixelStoref(pname, param);
+}
+
+void gl3_1_glDepthFunc(void *_glfuncs, GLenum glfunc)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDepthFunc(glfunc);
+}
+
+void gl3_1_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glStencilOp(fail, zfail, zpass);
+}
+
+void gl3_1_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glStencilFunc(glfunc, ref, mask);
+}
+
+void gl3_1_glLogicOp(void *_glfuncs, GLenum opcode)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glLogicOp(opcode);
+}
+
+void gl3_1_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBlendFunc(sfactor, dfactor);
+}
+
+void gl3_1_glFlush(void *_glfuncs)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glFlush();
+}
+
+void gl3_1_glFinish(void *_glfuncs)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glFinish();
+}
+
+void gl3_1_glEnable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glEnable(cap);
+}
+
+void gl3_1_glDisable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDisable(cap);
+}
+
+void gl3_1_glDepthMask(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDepthMask(flag);
+}
+
+void gl3_1_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glColorMask(red, green, blue, alpha);
+}
+
+void gl3_1_glStencilMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glStencilMask(mask);
+}
+
+void gl3_1_glClearDepth(void *_glfuncs, GLdouble depth)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glClearDepth(depth);
+}
+
+void gl3_1_glClearStencil(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glClearStencil(s);
+}
+
+void gl3_1_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glClearColor(red, green, blue, alpha);
+}
+
+void gl3_1_glClear(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glClear(mask);
+}
+
+void gl3_1_glDrawBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDrawBuffer(mode);
+}
+
+void gl3_1_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glTexImage2D(target, level, internalFormat, width, height, border, format, gltype, pixels);
+}
+
+void gl3_1_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glTexImage1D(target, level, internalFormat, width, border, format, gltype, pixels);
+}
+
+void gl3_1_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glTexParameteriv(target, pname, params);
+}
+
+void gl3_1_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glTexParameteri(target, pname, param);
+}
+
+void gl3_1_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glTexParameterfv(target, pname, params);
+}
+
+void gl3_1_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glTexParameterf(target, pname, param);
+}
+
+void gl3_1_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glScissor(x, y, width, height);
+}
+
+void gl3_1_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glPolygonMode(face, mode);
+}
+
+void gl3_1_glPointSize(void *_glfuncs, GLfloat size)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glPointSize(size);
+}
+
+void gl3_1_glLineWidth(void *_glfuncs, GLfloat width)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glLineWidth(width);
+}
+
+void gl3_1_glHint(void *_glfuncs, GLenum target, GLenum mode)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glHint(target, mode);
+}
+
+void gl3_1_glFrontFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glFrontFace(mode);
+}
+
+void gl3_1_glCullFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glCullFace(mode);
+}
+
+void gl3_1_glIndexubv(void *_glfuncs, const GLubyte* c)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glIndexubv(c);
+}
+
+void gl3_1_glIndexub(void *_glfuncs, GLubyte c)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glIndexub(c);
+}
+
+GLboolean gl3_1_glIsTexture(void *_glfuncs, GLuint texture)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glIsTexture(texture);
+}
+
+void gl3_1_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGenTextures(n, textures);
+}
+
+void gl3_1_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDeleteTextures(n, textures);
+}
+
+void gl3_1_glBindTexture(void *_glfuncs, GLenum target, GLuint texture)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBindTexture(target, texture);
+}
+
+void gl3_1_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, gltype, pixels);
+}
+
+void gl3_1_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glTexSubImage1D(target, level, xoffset, width, format, gltype, pixels);
+}
+
+void gl3_1_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
+}
+
+void gl3_1_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage1D(target, level, xoffset, x, y, width);
+}
+
+void gl3_1_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
+}
+
+void gl3_1_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glCopyTexImage1D(target, level, internalFormat, x, y, width, border);
+}
+
+void gl3_1_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glPolygonOffset(factor, units);
+}
+
+void gl3_1_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDrawElements(mode, count, gltype, indices);
+}
+
+void gl3_1_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDrawArrays(mode, first, count);
+}
+
+void gl3_1_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
+}
+
+void gl3_1_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, gltype, pixels);
+}
+
+void gl3_1_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glTexImage3D(target, level, internalFormat, width, height, depth, border, format, gltype, pixels);
+}
+
+void gl3_1_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDrawRangeElements(mode, start, end, count, gltype, indices);
+}
+
+void gl3_1_glBlendEquation(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBlendEquation(mode);
+}
+
+void gl3_1_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBlendColor(red, green, blue, alpha);
+}
+
+void gl3_1_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetCompressedTexImage(target, level, img);
+}
+
+void gl3_1_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data);
+}
+
+void gl3_1_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
+}
+
+void gl3_1_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
+}
+
+void gl3_1_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage1D(target, level, internalFormat, width, border, imageSize, data);
+}
+
+void gl3_1_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data);
+}
+
+void gl3_1_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage3D(target, level, internalFormat, width, height, depth, border, imageSize, data);
+}
+
+void gl3_1_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glSampleCoverage(value, invert);
+}
+
+void gl3_1_glActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glActiveTexture(texture);
+}
+
+void gl3_1_glPointParameteriv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glPointParameteriv(pname, params);
+}
+
+void gl3_1_glPointParameteri(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glPointParameteri(pname, param);
+}
+
+void gl3_1_glPointParameterfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glPointParameterfv(pname, params);
+}
+
+void gl3_1_glPointParameterf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glPointParameterf(pname, param);
+}
+
+void gl3_1_glMultiDrawArrays(void *_glfuncs, GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glMultiDrawArrays(mode, first, count, drawcount);
+}
+
+void gl3_1_glBlendFuncSeparate(void *_glfuncs, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
+}
+
+void gl3_1_glGetBufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetBufferParameteriv(target, pname, params);
+}
+
+GLboolean gl3_1_glUnmapBuffer(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glUnmapBuffer(target);
+}
+
+void gl3_1_glGetBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetBufferSubData(target, offset, size, data);
+}
+
+void gl3_1_glBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBufferSubData(target, offset, size, data);
+}
+
+void gl3_1_glBufferData(void *_glfuncs, GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBufferData(target, size, data, usage);
+}
+
+GLboolean gl3_1_glIsBuffer(void *_glfuncs, GLuint buffer)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glIsBuffer(buffer);
+}
+
+void gl3_1_glGenBuffers(void *_glfuncs, GLsizei n, GLuint* buffers)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGenBuffers(n, buffers);
+}
+
+void gl3_1_glDeleteBuffers(void *_glfuncs, GLsizei n, const GLuint* buffers)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDeleteBuffers(n, buffers);
+}
+
+void gl3_1_glBindBuffer(void *_glfuncs, GLenum target, GLuint buffer)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBindBuffer(target, buffer);
+}
+
+void gl3_1_glGetQueryObjectuiv(void *_glfuncs, GLuint id, GLenum pname, GLuint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetQueryObjectuiv(id, pname, params);
+}
+
+void gl3_1_glGetQueryObjectiv(void *_glfuncs, GLuint id, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetQueryObjectiv(id, pname, params);
+}
+
+void gl3_1_glGetQueryiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetQueryiv(target, pname, params);
+}
+
+void gl3_1_glEndQuery(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glEndQuery(target);
+}
+
+void gl3_1_glBeginQuery(void *_glfuncs, GLenum target, GLuint id)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBeginQuery(target, id);
+}
+
+GLboolean gl3_1_glIsQuery(void *_glfuncs, GLuint id)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glIsQuery(id);
+}
+
+void gl3_1_glDeleteQueries(void *_glfuncs, GLsizei n, const GLuint* ids)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDeleteQueries(n, ids);
+}
+
+void gl3_1_glGenQueries(void *_glfuncs, GLsizei n, GLuint* ids)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGenQueries(n, ids);
+}
+
+void gl3_1_glVertexAttribPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLboolean normalized, GLsizei stride, const GLvoid* offset)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glVertexAttribPointer(index, size, gltype, normalized, stride, offset);
+}
+
+void gl3_1_glValidateProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glValidateProgram(program);
+}
+
+void gl3_1_glUniformMatrix4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix4fv(location, count, transpose, value);
+}
+
+void gl3_1_glUniformMatrix3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix3fv(location, count, transpose, value);
+}
+
+void gl3_1_glUniformMatrix2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix2fv(location, count, transpose, value);
+}
+
+void gl3_1_glUniform4iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform4iv(location, count, value);
+}
+
+void gl3_1_glUniform3iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform3iv(location, count, value);
+}
+
+void gl3_1_glUniform2iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform2iv(location, count, value);
+}
+
+void gl3_1_glUniform1iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform1iv(location, count, value);
+}
+
+void gl3_1_glUniform4fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform4fv(location, count, value);
+}
+
+void gl3_1_glUniform3fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform3fv(location, count, value);
+}
+
+void gl3_1_glUniform2fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform2fv(location, count, value);
+}
+
+void gl3_1_glUniform1fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform1fv(location, count, value);
+}
+
+void gl3_1_glUniform4i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform4i(location, v0, v1, v2, v3);
+}
+
+void gl3_1_glUniform3i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform3i(location, v0, v1, v2);
+}
+
+void gl3_1_glUniform2i(void *_glfuncs, GLint location, GLint v0, GLint v1)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform2i(location, v0, v1);
+}
+
+void gl3_1_glUniform1i(void *_glfuncs, GLint location, GLint v0)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform1i(location, v0);
+}
+
+void gl3_1_glUniform4f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform4f(location, v0, v1, v2, v3);
+}
+
+void gl3_1_glUniform3f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform3f(location, v0, v1, v2);
+}
+
+void gl3_1_glUniform2f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform2f(location, v0, v1);
+}
+
+void gl3_1_glUniform1f(void *_glfuncs, GLint location, GLfloat v0)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform1f(location, v0);
+}
+
+void gl3_1_glUseProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUseProgram(program);
+}
+
+void gl3_1_glShaderSource(void *_glfuncs, GLuint shader, GLsizei count, const GLchar** source, const GLint* length)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glShaderSource(shader, count, source, length);
+}
+
+void gl3_1_glLinkProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glLinkProgram(program);
+}
+
+GLboolean gl3_1_glIsShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glIsShader(shader);
+}
+
+GLboolean gl3_1_glIsProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glIsProgram(program);
+}
+
+void gl3_1_glGetVertexAttribiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribiv(index, pname, params);
+}
+
+void gl3_1_glGetVertexAttribfv(void *_glfuncs, GLuint index, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribfv(index, pname, params);
+}
+
+void gl3_1_glGetVertexAttribdv(void *_glfuncs, GLuint index, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribdv(index, pname, params);
+}
+
+void gl3_1_glGetUniformiv(void *_glfuncs, GLuint program, GLint location, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetUniformiv(program, location, params);
+}
+
+void gl3_1_glGetUniformfv(void *_glfuncs, GLuint program, GLint location, GLfloat* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetUniformfv(program, location, params);
+}
+
+GLint gl3_1_glGetUniformLocation(void *_glfuncs, GLuint program, const GLchar* name)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glGetUniformLocation(program, name);
+}
+
+void gl3_1_glGetShaderSource(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* source)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetShaderSource(shader, bufSize, length, source);
+}
+
+void gl3_1_glGetShaderInfoLog(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetShaderInfoLog(shader, bufSize, length, infoLog);
+}
+
+void gl3_1_glGetShaderiv(void *_glfuncs, GLuint shader, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetShaderiv(shader, pname, params);
+}
+
+void gl3_1_glGetProgramInfoLog(void *_glfuncs, GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetProgramInfoLog(program, bufSize, length, infoLog);
+}
+
+void gl3_1_glGetProgramiv(void *_glfuncs, GLuint program, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetProgramiv(program, pname, params);
+}
+
+GLint gl3_1_glGetAttribLocation(void *_glfuncs, GLuint program, const GLchar* name)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glGetAttribLocation(program, name);
+}
+
+void gl3_1_glGetAttachedShaders(void *_glfuncs, GLuint program, GLsizei maxCount, GLsizei* count, GLuint* obj)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetAttachedShaders(program, maxCount, count, obj);
+}
+
+void gl3_1_glGetActiveUniform(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetActiveUniform(program, index, bufSize, length, size, gltype, name);
+}
+
+void gl3_1_glGetActiveAttrib(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetActiveAttrib(program, index, bufSize, length, size, gltype, name);
+}
+
+void gl3_1_glEnableVertexAttribArray(void *_glfuncs, GLuint index)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glEnableVertexAttribArray(index);
+}
+
+void gl3_1_glDisableVertexAttribArray(void *_glfuncs, GLuint index)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDisableVertexAttribArray(index);
+}
+
+void gl3_1_glDetachShader(void *_glfuncs, GLuint program, GLuint shader)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDetachShader(program, shader);
+}
+
+void gl3_1_glDeleteShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDeleteShader(shader);
+}
+
+void gl3_1_glDeleteProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDeleteProgram(program);
+}
+
+GLuint gl3_1_glCreateShader(void *_glfuncs, GLenum gltype)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glCreateShader(gltype);
+}
+
+GLuint gl3_1_glCreateProgram(void *_glfuncs)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glCreateProgram();
+}
+
+void gl3_1_glCompileShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glCompileShader(shader);
+}
+
+void gl3_1_glBindAttribLocation(void *_glfuncs, GLuint program, GLuint index, const GLchar* name)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBindAttribLocation(program, index, name);
+}
+
+void gl3_1_glAttachShader(void *_glfuncs, GLuint program, GLuint shader)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glAttachShader(program, shader);
+}
+
+void gl3_1_glStencilMaskSeparate(void *_glfuncs, GLenum face, GLuint mask)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glStencilMaskSeparate(face, mask);
+}
+
+void gl3_1_glStencilFuncSeparate(void *_glfuncs, GLenum face, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glStencilFuncSeparate(face, glfunc, ref, mask);
+}
+
+void gl3_1_glStencilOpSeparate(void *_glfuncs, GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glStencilOpSeparate(face, sfail, dpfail, dppass);
+}
+
+void gl3_1_glDrawBuffers(void *_glfuncs, GLsizei n, const GLenum* bufs)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDrawBuffers(n, bufs);
+}
+
+void gl3_1_glBlendEquationSeparate(void *_glfuncs, GLenum modeRGB, GLenum modeAlpha)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBlendEquationSeparate(modeRGB, modeAlpha);
+}
+
+void gl3_1_glUniformMatrix4x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix4x3fv(location, count, transpose, value);
+}
+
+void gl3_1_glUniformMatrix3x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix3x4fv(location, count, transpose, value);
+}
+
+void gl3_1_glUniformMatrix4x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix4x2fv(location, count, transpose, value);
+}
+
+void gl3_1_glUniformMatrix2x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix2x4fv(location, count, transpose, value);
+}
+
+void gl3_1_glUniformMatrix3x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix3x2fv(location, count, transpose, value);
+}
+
+void gl3_1_glUniformMatrix2x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniformMatrix2x3fv(location, count, transpose, value);
+}
+
+GLboolean gl3_1_glIsVertexArray(void *_glfuncs, GLuint array)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glIsVertexArray(array);
+}
+
+void gl3_1_glGenVertexArrays(void *_glfuncs, GLsizei n, GLuint* arrays)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGenVertexArrays(n, arrays);
+}
+
+void gl3_1_glDeleteVertexArrays(void *_glfuncs, GLsizei n, const GLuint* arrays)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDeleteVertexArrays(n, arrays);
+}
+
+void gl3_1_glBindVertexArray(void *_glfuncs, GLuint array)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBindVertexArray(array);
+}
+
+void gl3_1_glFlushMappedBufferRange(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr length)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glFlushMappedBufferRange(target, offset, length);
+}
+
+void gl3_1_glFramebufferTextureLayer(void *_glfuncs, GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glFramebufferTextureLayer(target, attachment, texture, level, layer);
+}
+
+void gl3_1_glRenderbufferStorageMultisample(void *_glfuncs, GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glRenderbufferStorageMultisample(target, samples, internalFormat, width, height);
+}
+
+void gl3_1_glBlitFramebuffer(void *_glfuncs, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
+}
+
+void gl3_1_glGenerateMipmap(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGenerateMipmap(target);
+}
+
+void gl3_1_glGetFramebufferAttachmentParameteriv(void *_glfuncs, GLenum target, GLenum attachment, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetFramebufferAttachmentParameteriv(target, attachment, pname, params);
+}
+
+void gl3_1_glFramebufferRenderbuffer(void *_glfuncs, GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
+}
+
+void gl3_1_glFramebufferTexture3D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glFramebufferTexture3D(target, attachment, textarget, texture, level, zoffset);
+}
+
+void gl3_1_glFramebufferTexture2D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glFramebufferTexture2D(target, attachment, textarget, texture, level);
+}
+
+void gl3_1_glFramebufferTexture1D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glFramebufferTexture1D(target, attachment, textarget, texture, level);
+}
+
+GLenum gl3_1_glCheckFramebufferStatus(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glCheckFramebufferStatus(target);
+}
+
+void gl3_1_glGenFramebuffers(void *_glfuncs, GLsizei n, GLuint* framebuffers)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGenFramebuffers(n, framebuffers);
+}
+
+void gl3_1_glDeleteFramebuffers(void *_glfuncs, GLsizei n, const GLuint* framebuffers)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDeleteFramebuffers(n, framebuffers);
+}
+
+void gl3_1_glBindFramebuffer(void *_glfuncs, GLenum target, GLuint framebuffer)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBindFramebuffer(target, framebuffer);
+}
+
+GLboolean gl3_1_glIsFramebuffer(void *_glfuncs, GLuint framebuffer)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glIsFramebuffer(framebuffer);
+}
+
+void gl3_1_glGetRenderbufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetRenderbufferParameteriv(target, pname, params);
+}
+
+void gl3_1_glRenderbufferStorage(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glRenderbufferStorage(target, internalFormat, width, height);
+}
+
+void gl3_1_glGenRenderbuffers(void *_glfuncs, GLsizei n, GLuint* renderbuffers)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGenRenderbuffers(n, renderbuffers);
+}
+
+void gl3_1_glDeleteRenderbuffers(void *_glfuncs, GLsizei n, const GLuint* renderbuffers)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDeleteRenderbuffers(n, renderbuffers);
+}
+
+void gl3_1_glBindRenderbuffer(void *_glfuncs, GLenum target, GLuint renderbuffer)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBindRenderbuffer(target, renderbuffer);
+}
+
+GLboolean gl3_1_glIsRenderbuffer(void *_glfuncs, GLuint renderbuffer)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glIsRenderbuffer(renderbuffer);
+}
+
+void gl3_1_glClearBufferfi(void *_glfuncs, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glClearBufferfi(buffer, drawbuffer, depth, stencil);
+}
+
+void gl3_1_glClearBufferfv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLfloat* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glClearBufferfv(buffer, drawbuffer, value);
+}
+
+void gl3_1_glClearBufferuiv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLuint* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glClearBufferuiv(buffer, drawbuffer, value);
+}
+
+void gl3_1_glClearBufferiv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLint* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glClearBufferiv(buffer, drawbuffer, value);
+}
+
+void gl3_1_glGetTexParameterIuiv(void *_glfuncs, GLenum target, GLenum pname, GLuint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetTexParameterIuiv(target, pname, params);
+}
+
+void gl3_1_glGetTexParameterIiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetTexParameterIiv(target, pname, params);
+}
+
+void gl3_1_glTexParameterIuiv(void *_glfuncs, GLenum target, GLenum pname, const GLuint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glTexParameterIuiv(target, pname, params);
+}
+
+void gl3_1_glTexParameterIiv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glTexParameterIiv(target, pname, params);
+}
+
+void gl3_1_glUniform4uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform4uiv(location, count, value);
+}
+
+void gl3_1_glUniform3uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform3uiv(location, count, value);
+}
+
+void gl3_1_glUniform2uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform2uiv(location, count, value);
+}
+
+void gl3_1_glUniform1uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform1uiv(location, count, value);
+}
+
+void gl3_1_glUniform4ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform4ui(location, v0, v1, v2, v3);
+}
+
+void gl3_1_glUniform3ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1, GLuint v2)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform3ui(location, v0, v1, v2);
+}
+
+void gl3_1_glUniform2ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform2ui(location, v0, v1);
+}
+
+void gl3_1_glUniform1ui(void *_glfuncs, GLint location, GLuint v0)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniform1ui(location, v0);
+}
+
+GLint gl3_1_glGetFragDataLocation(void *_glfuncs, GLuint program, const GLchar* name)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glGetFragDataLocation(program, name);
+}
+
+void gl3_1_glBindFragDataLocation(void *_glfuncs, GLuint program, GLuint color, const GLchar* name)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBindFragDataLocation(program, color, name);
+}
+
+void gl3_1_glGetUniformuiv(void *_glfuncs, GLuint program, GLint location, GLuint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetUniformuiv(program, location, params);
+}
+
+void gl3_1_glGetVertexAttribIuiv(void *_glfuncs, GLuint index, GLenum pname, GLuint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribIuiv(index, pname, params);
+}
+
+void gl3_1_glGetVertexAttribIiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribIiv(index, pname, params);
+}
+
+void gl3_1_glVertexAttribIPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glVertexAttribIPointer(index, size, gltype, stride, pointer);
+}
+
+void gl3_1_glEndConditionalRender(void *_glfuncs)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glEndConditionalRender();
+}
+
+void gl3_1_glBeginConditionalRender(void *_glfuncs, GLuint id, GLenum mode)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBeginConditionalRender(id, mode);
+}
+
+void gl3_1_glClampColor(void *_glfuncs, GLenum target, GLenum clamp)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glClampColor(target, clamp);
+}
+
+void gl3_1_glGetTransformFeedbackVarying(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* gltype, GLchar* name)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetTransformFeedbackVarying(program, index, bufSize, length, size, gltype, name);
+}
+
+void gl3_1_glBindBufferBase(void *_glfuncs, GLenum target, GLuint index, GLuint buffer)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBindBufferBase(target, index, buffer);
+}
+
+void gl3_1_glBindBufferRange(void *_glfuncs, GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBindBufferRange(target, index, buffer, offset, size);
+}
+
+void gl3_1_glEndTransformFeedback(void *_glfuncs)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glEndTransformFeedback();
+}
+
+void gl3_1_glBeginTransformFeedback(void *_glfuncs, GLenum primitiveMode)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glBeginTransformFeedback(primitiveMode);
+}
+
+GLboolean gl3_1_glIsEnabledi(void *_glfuncs, GLenum target, GLuint index)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glIsEnabledi(target, index);
+}
+
+void gl3_1_glDisablei(void *_glfuncs, GLenum target, GLuint index)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDisablei(target, index);
+}
+
+void gl3_1_glEnablei(void *_glfuncs, GLenum target, GLuint index)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glEnablei(target, index);
+}
+
+void gl3_1_glGetIntegeri_v(void *_glfuncs, GLenum target, GLuint index, GLint* data)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetIntegeri_v(target, index, data);
+}
+
+void gl3_1_glGetBooleani_v(void *_glfuncs, GLenum target, GLuint index, GLboolean* data)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetBooleani_v(target, index, data);
+}
+
+void gl3_1_glColorMaski(void *_glfuncs, GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glColorMaski(index, r, g, b, a);
+}
+
+void gl3_1_glCopyBufferSubData(void *_glfuncs, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glCopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size);
+}
+
+void gl3_1_glUniformBlockBinding(void *_glfuncs, GLuint program, GLuint v0, GLuint v1)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glUniformBlockBinding(program, v0, v1);
+}
+
+void gl3_1_glGetActiveUniformBlockName(void *_glfuncs, GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformBlockName)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetActiveUniformBlockName(program, uniformBlockIndex, bufSize, length, uniformBlockName);
+}
+
+void gl3_1_glGetActiveUniformBlockiv(void *_glfuncs, GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetActiveUniformBlockiv(program, uniformBlockIndex, pname, params);
+}
+
+GLuint gl3_1_glGetUniformBlockIndex(void *_glfuncs, GLuint program, const GLchar* uniformBlockName)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ return _qglfuncs->glGetUniformBlockIndex(program, uniformBlockName);
+}
+
+void gl3_1_glGetActiveUniformName(void *_glfuncs, GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformName)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetActiveUniformName(program, uniformIndex, bufSize, length, uniformName);
+}
+
+void gl3_1_glGetActiveUniformsiv(void *_glfuncs, GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glGetActiveUniformsiv(program, uniformCount, uniformIndices, pname, params);
+}
+
+void gl3_1_glPrimitiveRestartIndex(void *_glfuncs, GLuint index)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glPrimitiveRestartIndex(index);
+}
+
+void gl3_1_glTexBuffer(void *_glfuncs, GLenum target, GLenum internalFormat, GLuint buffer)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glTexBuffer(target, internalFormat, buffer);
+}
+
+void gl3_1_glDrawElementsInstanced(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices, GLsizei instancecount)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDrawElementsInstanced(mode, count, gltype, indices, instancecount);
+}
+
+void gl3_1_glDrawArraysInstanced(void *_glfuncs, GLenum mode, GLint first, GLsizei count, GLsizei instancecount)
+{
+ QOpenGLFunctions_3_1* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_1*>(_glfuncs);
+ _qglfuncs->glDrawArraysInstanced(mode, first, count, instancecount);
+}
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.1/funcs.h b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.1/funcs.h
new file mode 100644
index 000000000..b06680d6e
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.1/funcs.h
@@ -0,0 +1,276 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#ifndef __cplusplus
+#include <inttypes.h>
+#include <stddef.h>
+typedef unsigned int GLenum;
+typedef unsigned char GLboolean;
+typedef unsigned int GLbitfield;
+typedef void GLvoid;
+typedef char GLchar;
+typedef signed char GLbyte; /* 1-byte signed */
+typedef short GLshort; /* 2-byte signed */
+typedef int GLint; /* 4-byte signed */
+typedef unsigned char GLubyte; /* 1-byte unsigned */
+typedef unsigned short GLushort; /* 2-byte unsigned */
+typedef unsigned int GLuint; /* 4-byte unsigned */
+typedef int GLsizei; /* 4-byte signed */
+typedef float GLfloat; /* single precision float */
+typedef float GLclampf; /* single precision float in [0,1] */
+typedef double GLdouble; /* double precision float */
+typedef double GLclampd; /* double precision float in [0,1] */
+typedef int64_t GLint64;
+typedef uint64_t GLuint64;
+typedef ptrdiff_t GLintptr;
+typedef ptrdiff_t GLsizeiptr;
+typedef ptrdiff_t GLintptrARB;
+typedef ptrdiff_t GLsizeiptrARB;
+typedef struct __GLsync *GLsync;
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *gl3_1_funcs();
+
+void gl3_1_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl3_1_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal);
+GLboolean gl3_1_glIsEnabled(void *_glfuncs, GLenum cap);
+void gl3_1_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params);
+void gl3_1_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params);
+void gl3_1_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_1_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl3_1_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl3_1_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params);
+void gl3_1_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params);
+GLenum gl3_1_glGetError(void *_glfuncs);
+void gl3_1_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params);
+void gl3_1_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params);
+void gl3_1_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl3_1_glReadBuffer(void *_glfuncs, GLenum mode);
+void gl3_1_glPixelStorei(void *_glfuncs, GLenum pname, GLint param);
+void gl3_1_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param);
+void gl3_1_glDepthFunc(void *_glfuncs, GLenum glfunc);
+void gl3_1_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass);
+void gl3_1_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask);
+void gl3_1_glLogicOp(void *_glfuncs, GLenum opcode);
+void gl3_1_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor);
+void gl3_1_glFlush(void *_glfuncs);
+void gl3_1_glFinish(void *_glfuncs);
+void gl3_1_glEnable(void *_glfuncs, GLenum cap);
+void gl3_1_glDisable(void *_glfuncs, GLenum cap);
+void gl3_1_glDepthMask(void *_glfuncs, GLboolean flag);
+void gl3_1_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+void gl3_1_glStencilMask(void *_glfuncs, GLuint mask);
+void gl3_1_glClearDepth(void *_glfuncs, GLdouble depth);
+void gl3_1_glClearStencil(void *_glfuncs, GLint s);
+void gl3_1_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl3_1_glClear(void *_glfuncs, GLbitfield mask);
+void gl3_1_glDrawBuffer(void *_glfuncs, GLenum mode);
+void gl3_1_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_1_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_1_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl3_1_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl3_1_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl3_1_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl3_1_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl3_1_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode);
+void gl3_1_glPointSize(void *_glfuncs, GLfloat size);
+void gl3_1_glLineWidth(void *_glfuncs, GLfloat width);
+void gl3_1_glHint(void *_glfuncs, GLenum target, GLenum mode);
+void gl3_1_glFrontFace(void *_glfuncs, GLenum mode);
+void gl3_1_glCullFace(void *_glfuncs, GLenum mode);
+void gl3_1_glIndexubv(void *_glfuncs, const GLubyte* c);
+void gl3_1_glIndexub(void *_glfuncs, GLubyte c);
+GLboolean gl3_1_glIsTexture(void *_glfuncs, GLuint texture);
+void gl3_1_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures);
+void gl3_1_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures);
+void gl3_1_glBindTexture(void *_glfuncs, GLenum target, GLuint texture);
+void gl3_1_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_1_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_1_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl3_1_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+void gl3_1_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+void gl3_1_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
+void gl3_1_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units);
+void gl3_1_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl3_1_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count);
+void gl3_1_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl3_1_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_1_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_1_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl3_1_glBlendEquation(void *_glfuncs, GLenum mode);
+void gl3_1_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl3_1_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img);
+void gl3_1_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl3_1_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl3_1_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl3_1_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl3_1_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl3_1_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl3_1_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert);
+void gl3_1_glActiveTexture(void *_glfuncs, GLenum texture);
+void gl3_1_glPointParameteriv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl3_1_glPointParameteri(void *_glfuncs, GLenum pname, GLint param);
+void gl3_1_glPointParameterfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl3_1_glPointParameterf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl3_1_glMultiDrawArrays(void *_glfuncs, GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount);
+void gl3_1_glBlendFuncSeparate(void *_glfuncs, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+void gl3_1_glGetBufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+GLboolean gl3_1_glUnmapBuffer(void *_glfuncs, GLenum target);
+void gl3_1_glGetBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data);
+void gl3_1_glBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data);
+void gl3_1_glBufferData(void *_glfuncs, GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
+GLboolean gl3_1_glIsBuffer(void *_glfuncs, GLuint buffer);
+void gl3_1_glGenBuffers(void *_glfuncs, GLsizei n, GLuint* buffers);
+void gl3_1_glDeleteBuffers(void *_glfuncs, GLsizei n, const GLuint* buffers);
+void gl3_1_glBindBuffer(void *_glfuncs, GLenum target, GLuint buffer);
+void gl3_1_glGetQueryObjectuiv(void *_glfuncs, GLuint id, GLenum pname, GLuint* params);
+void gl3_1_glGetQueryObjectiv(void *_glfuncs, GLuint id, GLenum pname, GLint* params);
+void gl3_1_glGetQueryiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_1_glEndQuery(void *_glfuncs, GLenum target);
+void gl3_1_glBeginQuery(void *_glfuncs, GLenum target, GLuint id);
+GLboolean gl3_1_glIsQuery(void *_glfuncs, GLuint id);
+void gl3_1_glDeleteQueries(void *_glfuncs, GLsizei n, const GLuint* ids);
+void gl3_1_glGenQueries(void *_glfuncs, GLsizei n, GLuint* ids);
+void gl3_1_glVertexAttribPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLboolean normalized, GLsizei stride, const GLvoid* offset);
+void gl3_1_glValidateProgram(void *_glfuncs, GLuint program);
+void gl3_1_glUniformMatrix4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_1_glUniformMatrix3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_1_glUniformMatrix2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_1_glUniform4iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl3_1_glUniform3iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl3_1_glUniform2iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl3_1_glUniform1iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl3_1_glUniform4fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl3_1_glUniform3fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl3_1_glUniform2fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl3_1_glUniform1fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl3_1_glUniform4i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+void gl3_1_glUniform3i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2);
+void gl3_1_glUniform2i(void *_glfuncs, GLint location, GLint v0, GLint v1);
+void gl3_1_glUniform1i(void *_glfuncs, GLint location, GLint v0);
+void gl3_1_glUniform4f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+void gl3_1_glUniform3f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+void gl3_1_glUniform2f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1);
+void gl3_1_glUniform1f(void *_glfuncs, GLint location, GLfloat v0);
+void gl3_1_glUseProgram(void *_glfuncs, GLuint program);
+void gl3_1_glShaderSource(void *_glfuncs, GLuint shader, GLsizei count, const GLchar** source, const GLint* length);
+void gl3_1_glLinkProgram(void *_glfuncs, GLuint program);
+GLboolean gl3_1_glIsShader(void *_glfuncs, GLuint shader);
+GLboolean gl3_1_glIsProgram(void *_glfuncs, GLuint program);
+void gl3_1_glGetVertexAttribiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params);
+void gl3_1_glGetVertexAttribfv(void *_glfuncs, GLuint index, GLenum pname, GLfloat* params);
+void gl3_1_glGetVertexAttribdv(void *_glfuncs, GLuint index, GLenum pname, GLdouble* params);
+void gl3_1_glGetUniformiv(void *_glfuncs, GLuint program, GLint location, GLint* params);
+void gl3_1_glGetUniformfv(void *_glfuncs, GLuint program, GLint location, GLfloat* params);
+GLint gl3_1_glGetUniformLocation(void *_glfuncs, GLuint program, const GLchar* name);
+void gl3_1_glGetShaderSource(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* source);
+void gl3_1_glGetShaderInfoLog(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog);
+void gl3_1_glGetShaderiv(void *_glfuncs, GLuint shader, GLenum pname, GLint* params);
+void gl3_1_glGetProgramInfoLog(void *_glfuncs, GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog);
+void gl3_1_glGetProgramiv(void *_glfuncs, GLuint program, GLenum pname, GLint* params);
+GLint gl3_1_glGetAttribLocation(void *_glfuncs, GLuint program, const GLchar* name);
+void gl3_1_glGetAttachedShaders(void *_glfuncs, GLuint program, GLsizei maxCount, GLsizei* count, GLuint* obj);
+void gl3_1_glGetActiveUniform(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name);
+void gl3_1_glGetActiveAttrib(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name);
+void gl3_1_glEnableVertexAttribArray(void *_glfuncs, GLuint index);
+void gl3_1_glDisableVertexAttribArray(void *_glfuncs, GLuint index);
+void gl3_1_glDetachShader(void *_glfuncs, GLuint program, GLuint shader);
+void gl3_1_glDeleteShader(void *_glfuncs, GLuint shader);
+void gl3_1_glDeleteProgram(void *_glfuncs, GLuint program);
+GLuint gl3_1_glCreateShader(void *_glfuncs, GLenum gltype);
+GLuint gl3_1_glCreateProgram(void *_glfuncs);
+void gl3_1_glCompileShader(void *_glfuncs, GLuint shader);
+void gl3_1_glBindAttribLocation(void *_glfuncs, GLuint program, GLuint index, const GLchar* name);
+void gl3_1_glAttachShader(void *_glfuncs, GLuint program, GLuint shader);
+void gl3_1_glStencilMaskSeparate(void *_glfuncs, GLenum face, GLuint mask);
+void gl3_1_glStencilFuncSeparate(void *_glfuncs, GLenum face, GLenum glfunc, GLint ref, GLuint mask);
+void gl3_1_glStencilOpSeparate(void *_glfuncs, GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+void gl3_1_glDrawBuffers(void *_glfuncs, GLsizei n, const GLenum* bufs);
+void gl3_1_glBlendEquationSeparate(void *_glfuncs, GLenum modeRGB, GLenum modeAlpha);
+void gl3_1_glUniformMatrix4x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_1_glUniformMatrix3x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_1_glUniformMatrix4x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_1_glUniformMatrix2x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_1_glUniformMatrix3x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_1_glUniformMatrix2x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+GLboolean gl3_1_glIsVertexArray(void *_glfuncs, GLuint array);
+void gl3_1_glGenVertexArrays(void *_glfuncs, GLsizei n, GLuint* arrays);
+void gl3_1_glDeleteVertexArrays(void *_glfuncs, GLsizei n, const GLuint* arrays);
+void gl3_1_glBindVertexArray(void *_glfuncs, GLuint array);
+void gl3_1_glFlushMappedBufferRange(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr length);
+void gl3_1_glFramebufferTextureLayer(void *_glfuncs, GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+void gl3_1_glRenderbufferStorageMultisample(void *_glfuncs, GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height);
+void gl3_1_glBlitFramebuffer(void *_glfuncs, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+void gl3_1_glGenerateMipmap(void *_glfuncs, GLenum target);
+void gl3_1_glGetFramebufferAttachmentParameteriv(void *_glfuncs, GLenum target, GLenum attachment, GLenum pname, GLint* params);
+void gl3_1_glFramebufferRenderbuffer(void *_glfuncs, GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+void gl3_1_glFramebufferTexture3D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+void gl3_1_glFramebufferTexture2D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+void gl3_1_glFramebufferTexture1D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLenum gl3_1_glCheckFramebufferStatus(void *_glfuncs, GLenum target);
+void gl3_1_glGenFramebuffers(void *_glfuncs, GLsizei n, GLuint* framebuffers);
+void gl3_1_glDeleteFramebuffers(void *_glfuncs, GLsizei n, const GLuint* framebuffers);
+void gl3_1_glBindFramebuffer(void *_glfuncs, GLenum target, GLuint framebuffer);
+GLboolean gl3_1_glIsFramebuffer(void *_glfuncs, GLuint framebuffer);
+void gl3_1_glGetRenderbufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_1_glRenderbufferStorage(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height);
+void gl3_1_glGenRenderbuffers(void *_glfuncs, GLsizei n, GLuint* renderbuffers);
+void gl3_1_glDeleteRenderbuffers(void *_glfuncs, GLsizei n, const GLuint* renderbuffers);
+void gl3_1_glBindRenderbuffer(void *_glfuncs, GLenum target, GLuint renderbuffer);
+GLboolean gl3_1_glIsRenderbuffer(void *_glfuncs, GLuint renderbuffer);
+void gl3_1_glClearBufferfi(void *_glfuncs, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
+void gl3_1_glClearBufferfv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLfloat* value);
+void gl3_1_glClearBufferuiv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLuint* value);
+void gl3_1_glClearBufferiv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLint* value);
+void gl3_1_glGetTexParameterIuiv(void *_glfuncs, GLenum target, GLenum pname, GLuint* params);
+void gl3_1_glGetTexParameterIiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_1_glTexParameterIuiv(void *_glfuncs, GLenum target, GLenum pname, const GLuint* params);
+void gl3_1_glTexParameterIiv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl3_1_glUniform4uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value);
+void gl3_1_glUniform3uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value);
+void gl3_1_glUniform2uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value);
+void gl3_1_glUniform1uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value);
+void gl3_1_glUniform4ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+void gl3_1_glUniform3ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1, GLuint v2);
+void gl3_1_glUniform2ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1);
+void gl3_1_glUniform1ui(void *_glfuncs, GLint location, GLuint v0);
+GLint gl3_1_glGetFragDataLocation(void *_glfuncs, GLuint program, const GLchar* name);
+void gl3_1_glBindFragDataLocation(void *_glfuncs, GLuint program, GLuint color, const GLchar* name);
+void gl3_1_glGetUniformuiv(void *_glfuncs, GLuint program, GLint location, GLuint* params);
+void gl3_1_glGetVertexAttribIuiv(void *_glfuncs, GLuint index, GLenum pname, GLuint* params);
+void gl3_1_glGetVertexAttribIiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params);
+void gl3_1_glVertexAttribIPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_1_glEndConditionalRender(void *_glfuncs);
+void gl3_1_glBeginConditionalRender(void *_glfuncs, GLuint id, GLenum mode);
+void gl3_1_glClampColor(void *_glfuncs, GLenum target, GLenum clamp);
+void gl3_1_glGetTransformFeedbackVarying(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* gltype, GLchar* name);
+void gl3_1_glBindBufferBase(void *_glfuncs, GLenum target, GLuint index, GLuint buffer);
+void gl3_1_glBindBufferRange(void *_glfuncs, GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+void gl3_1_glEndTransformFeedback(void *_glfuncs);
+void gl3_1_glBeginTransformFeedback(void *_glfuncs, GLenum primitiveMode);
+GLboolean gl3_1_glIsEnabledi(void *_glfuncs, GLenum target, GLuint index);
+void gl3_1_glDisablei(void *_glfuncs, GLenum target, GLuint index);
+void gl3_1_glEnablei(void *_glfuncs, GLenum target, GLuint index);
+void gl3_1_glGetIntegeri_v(void *_glfuncs, GLenum target, GLuint index, GLint* data);
+void gl3_1_glGetBooleani_v(void *_glfuncs, GLenum target, GLuint index, GLboolean* data);
+void gl3_1_glColorMaski(void *_glfuncs, GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+void gl3_1_glCopyBufferSubData(void *_glfuncs, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+void gl3_1_glUniformBlockBinding(void *_glfuncs, GLuint program, GLuint v0, GLuint v1);
+void gl3_1_glGetActiveUniformBlockName(void *_glfuncs, GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformBlockName);
+void gl3_1_glGetActiveUniformBlockiv(void *_glfuncs, GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params);
+GLuint gl3_1_glGetUniformBlockIndex(void *_glfuncs, GLuint program, const GLchar* uniformBlockName);
+void gl3_1_glGetActiveUniformName(void *_glfuncs, GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformName);
+void gl3_1_glGetActiveUniformsiv(void *_glfuncs, GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params);
+void gl3_1_glPrimitiveRestartIndex(void *_glfuncs, GLuint index);
+void gl3_1_glTexBuffer(void *_glfuncs, GLenum target, GLenum internalFormat, GLuint buffer);
+void gl3_1_glDrawElementsInstanced(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices, GLsizei instancecount);
+void gl3_1_glDrawArraysInstanced(void *_glfuncs, GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
+
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.1/gl.go b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.1/gl.go
new file mode 100644
index 000000000..495e07b3c
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.1/gl.go
@@ -0,0 +1,4999 @@
+// ** file automatically generated by glgen -- do not edit manually **
+
+package GL
+
+// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
+// #cgo LDFLAGS: -lstdc++
+// #cgo pkg-config: Qt5Core Qt5OpenGL
+//
+// #include "funcs.h"
+//
+// void free(void*);
+//
+import "C"
+
+import (
+ "fmt"
+ "reflect"
+ "unsafe"
+
+ "gopkg.in/qml.v1/gl/glbase"
+)
+
+// API returns a value that offers methods matching the OpenGL version 3.1 API.
+//
+// The returned API must not be used after the provided OpenGL context becomes invalid.
+func API(context glbase.Contexter) *GL {
+ gl := &GL{}
+ gl.funcs = C.gl3_1_funcs()
+ if gl.funcs == nil {
+ panic(fmt.Errorf("OpenGL version 3.1 is not available"))
+ }
+ return gl
+}
+
+// GL implements the OpenGL version 3.1 API. Values of this
+// type must be created via the API function, and it must not be used after
+// the associated OpenGL context becomes invalid.
+type GL struct {
+ funcs unsafe.Pointer
+}
+
+const (
+ FALSE = 0
+ TRUE = 1
+ NONE = 0
+
+ BYTE = 0x1400
+ UNSIGNED_BYTE = 0x1401
+ SHORT = 0x1402
+ UNSIGNED_SHORT = 0x1403
+ INT = 0x1404
+ UNSIGNED_INT = 0x1405
+ FLOAT = 0x1406
+ N2_BYTES = 0x1407
+ N3_BYTES = 0x1408
+ N4_BYTES = 0x1409
+ DOUBLE = 0x140A
+ HALF_FLOAT = 0x140B
+
+ ACCUM = 0x0100
+ LOAD = 0x0101
+ RETURN = 0x0102
+ MULT = 0x0103
+ ADD = 0x0104
+
+ ACCUM_BUFFER_BIT = 0x00000200
+ ALL_ATTRIB_BITS = 0xFFFFFFFF
+ COLOR_BUFFER_BIT = 0x00004000
+ CURRENT_BIT = 0x00000001
+ DEPTH_BUFFER_BIT = 0x00000100
+ ENABLE_BIT = 0x00002000
+ EVAL_BIT = 0x00010000
+ FOG_BIT = 0x00000080
+ HINT_BIT = 0x00008000
+ LIGHTING_BIT = 0x00000040
+ LINE_BIT = 0x00000004
+ LIST_BIT = 0x00020000
+ MULTISAMPLE_BIT = 0x20000000
+ PIXEL_MODE_BIT = 0x00000020
+ POINT_BIT = 0x00000002
+ POLYGON_BIT = 0x00000008
+ POLYGON_STIPPLE_BIT = 0x00000010
+ SCISSOR_BIT = 0x00080000
+ STENCIL_BUFFER_BIT = 0x00000400
+ TEXTURE_BIT = 0x00040000
+ TRANSFORM_BIT = 0x00001000
+ VIEWPORT_BIT = 0x00000800
+
+ ALWAYS = 0x0207
+ EQUAL = 0x0202
+ GEQUAL = 0x0206
+ GREATER = 0x0204
+ LEQUAL = 0x0203
+ LESS = 0x0201
+ NEVER = 0x0200
+ NOTEQUAL = 0x0205
+
+ LOGIC_OP = 0x0BF1
+
+ DST_ALPHA = 0x0304
+ ONE = 1
+ ONE_MINUS_DST_ALPHA = 0x0305
+ ONE_MINUS_SRC_ALPHA = 0x0303
+ ONE_MINUS_SRC_COLOR = 0x0301
+ SRC_ALPHA = 0x0302
+ SRC_COLOR = 0x0300
+ ZERO = 0
+
+ DST_COLOR = 0x0306
+ ONE_MINUS_DST_COLOR = 0x0307
+ SRC_ALPHA_SATURATE = 0x0308
+
+ CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF
+ CLIENT_PIXEL_STORE_BIT = 0x00000001
+ CLIENT_VERTEX_ARRAY_BIT = 0x00000002
+
+ CLIP_DISTANCE0 = 0x3000
+ CLIP_DISTANCE1 = 0x3001
+ CLIP_DISTANCE2 = 0x3002
+ CLIP_DISTANCE3 = 0x3003
+ CLIP_DISTANCE4 = 0x3004
+ CLIP_DISTANCE5 = 0x3005
+ CLIP_DISTANCE6 = 0x3006
+ CLIP_DISTANCE7 = 0x3007
+ CLIP_PLANE0 = 0x3000
+ CLIP_PLANE1 = 0x3001
+ CLIP_PLANE2 = 0x3002
+ CLIP_PLANE3 = 0x3003
+ CLIP_PLANE4 = 0x3004
+ CLIP_PLANE5 = 0x3005
+
+ BACK = 0x0405
+ FRONT = 0x0404
+ FRONT_AND_BACK = 0x0408
+
+ AMBIENT = 0x1200
+ AMBIENT_AND_DIFFUSE = 0x1602
+ DIFFUSE = 0x1201
+ EMISSION = 0x1600
+ SPECULAR = 0x1202
+
+ CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x00000001
+
+ AUX0 = 0x0409
+ AUX1 = 0x040A
+ AUX2 = 0x040B
+ AUX3 = 0x040C
+ BACK_LEFT = 0x0402
+ BACK_RIGHT = 0x0403
+ FRONT_LEFT = 0x0400
+ FRONT_RIGHT = 0x0401
+ LEFT = 0x0406
+ RIGHT = 0x0407
+
+ ALPHA_TEST = 0x0BC0
+ AUTO_NORMAL = 0x0D80
+ BLEND = 0x0BE2
+ COLOR_ARRAY = 0x8076
+ COLOR_LOGIC_OP = 0x0BF2
+ COLOR_MATERIAL = 0x0B57
+ CULL_FACE = 0x0B44
+ DEPTH_TEST = 0x0B71
+ DITHER = 0x0BD0
+ EDGE_FLAG_ARRAY = 0x8079
+ FOG = 0x0B60
+ INDEX_ARRAY = 0x8077
+ INDEX_LOGIC_OP = 0x0BF1
+ LIGHT0 = 0x4000
+ LIGHT1 = 0x4001
+ LIGHT2 = 0x4002
+ LIGHT3 = 0x4003
+ LIGHT4 = 0x4004
+ LIGHT5 = 0x4005
+ LIGHT6 = 0x4006
+ LIGHT7 = 0x4007
+ LIGHTING = 0x0B50
+ LINE_SMOOTH = 0x0B20
+ LINE_STIPPLE = 0x0B24
+ MAP1_COLOR_4 = 0x0D90
+ MAP1_INDEX = 0x0D91
+ MAP1_NORMAL = 0x0D92
+ MAP1_TEXTURE_COORD_1 = 0x0D93
+ MAP1_TEXTURE_COORD_2 = 0x0D94
+ MAP1_TEXTURE_COORD_3 = 0x0D95
+ MAP1_TEXTURE_COORD_4 = 0x0D96
+ MAP1_VERTEX_3 = 0x0D97
+ MAP1_VERTEX_4 = 0x0D98
+ MAP2_COLOR_4 = 0x0DB0
+ MAP2_INDEX = 0x0DB1
+ MAP2_NORMAL = 0x0DB2
+ MAP2_TEXTURE_COORD_1 = 0x0DB3
+ MAP2_TEXTURE_COORD_2 = 0x0DB4
+ MAP2_TEXTURE_COORD_3 = 0x0DB5
+ MAP2_TEXTURE_COORD_4 = 0x0DB6
+ MAP2_VERTEX_3 = 0x0DB7
+ MAP2_VERTEX_4 = 0x0DB8
+ NORMALIZE = 0x0BA1
+ NORMAL_ARRAY = 0x8075
+ POINT_SMOOTH = 0x0B10
+ POLYGON_OFFSET_FILL = 0x8037
+ POLYGON_OFFSET_LINE = 0x2A02
+ POLYGON_OFFSET_POINT = 0x2A01
+ POLYGON_SMOOTH = 0x0B41
+ POLYGON_STIPPLE = 0x0B42
+ SCISSOR_TEST = 0x0C11
+ STENCIL_TEST = 0x0B90
+ TEXTURE_1D = 0x0DE0
+ TEXTURE_2D = 0x0DE1
+ TEXTURE_COORD_ARRAY = 0x8078
+ TEXTURE_GEN_Q = 0x0C63
+ TEXTURE_GEN_R = 0x0C62
+ TEXTURE_GEN_S = 0x0C60
+ TEXTURE_GEN_T = 0x0C61
+ VERTEX_ARRAY = 0x8074
+
+ INVALID_ENUM = 0x0500
+ INVALID_FRAMEBUFFER_OPERATION = 0x0506
+ INVALID_OPERATION = 0x0502
+ INVALID_VALUE = 0x0501
+ NO_ERROR = 0
+ OUT_OF_MEMORY = 0x0505
+ STACK_OVERFLOW = 0x0503
+ STACK_UNDERFLOW = 0x0504
+
+ N2D = 0x0600
+ N3D = 0x0601
+ N3D_COLOR = 0x0602
+ N3D_COLOR_TEXTURE = 0x0603
+ N4D_COLOR_TEXTURE = 0x0604
+
+ BITMAP_TOKEN = 0x0704
+ COPY_PIXEL_TOKEN = 0x0706
+ DRAW_PIXEL_TOKEN = 0x0705
+ LINE_RESET_TOKEN = 0x0707
+ LINE_TOKEN = 0x0702
+ PASS_THROUGH_TOKEN = 0x0700
+ POINT_TOKEN = 0x0701
+ POLYGON_TOKEN = 0x0703
+
+ EXP = 0x0800
+ EXP2 = 0x0801
+ LINEAR = 0x2601
+
+ FOG_COLOR = 0x0B66
+ FOG_DENSITY = 0x0B62
+ FOG_END = 0x0B64
+ FOG_INDEX = 0x0B61
+ FOG_MODE = 0x0B65
+ FOG_START = 0x0B63
+
+ CCW = 0x0901
+ CW = 0x0900
+
+ COEFF = 0x0A00
+ DOMAIN = 0x0A02
+ ORDER = 0x0A01
+
+ PIXEL_MAP_A_TO_A = 0x0C79
+ PIXEL_MAP_B_TO_B = 0x0C78
+ PIXEL_MAP_G_TO_G = 0x0C77
+ PIXEL_MAP_I_TO_A = 0x0C75
+ PIXEL_MAP_I_TO_B = 0x0C74
+ PIXEL_MAP_I_TO_G = 0x0C73
+ PIXEL_MAP_I_TO_I = 0x0C70
+ PIXEL_MAP_I_TO_R = 0x0C72
+ PIXEL_MAP_R_TO_R = 0x0C76
+ PIXEL_MAP_S_TO_S = 0x0C71
+
+ ACCUM_ALPHA_BITS = 0x0D5B
+ ACCUM_BLUE_BITS = 0x0D5A
+ ACCUM_CLEAR_VALUE = 0x0B80
+ ACCUM_GREEN_BITS = 0x0D59
+ ACCUM_RED_BITS = 0x0D58
+ ALIASED_LINE_WIDTH_RANGE = 0x846E
+ ALIASED_POINT_SIZE_RANGE = 0x846D
+ ALPHA_BIAS = 0x0D1D
+ ALPHA_BITS = 0x0D55
+ ALPHA_SCALE = 0x0D1C
+ ALPHA_TEST_FUNC = 0x0BC1
+ ALPHA_TEST_REF = 0x0BC2
+ ATTRIB_STACK_DEPTH = 0x0BB0
+ AUX_BUFFERS = 0x0C00
+ BLEND_DST = 0x0BE0
+ BLEND_SRC = 0x0BE1
+ BLUE_BIAS = 0x0D1B
+ BLUE_BITS = 0x0D54
+ BLUE_SCALE = 0x0D1A
+ CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1
+ COLOR_ARRAY_SIZE = 0x8081
+ COLOR_ARRAY_STRIDE = 0x8083
+ COLOR_ARRAY_TYPE = 0x8082
+ COLOR_CLEAR_VALUE = 0x0C22
+ COLOR_MATERIAL_FACE = 0x0B55
+ COLOR_MATERIAL_PARAMETER = 0x0B56
+ COLOR_WRITEMASK = 0x0C23
+ CULL_FACE_MODE = 0x0B45
+ CURRENT_COLOR = 0x0B00
+ CURRENT_INDEX = 0x0B01
+ CURRENT_NORMAL = 0x0B02
+ CURRENT_RASTER_COLOR = 0x0B04
+ CURRENT_RASTER_DISTANCE = 0x0B09
+ CURRENT_RASTER_INDEX = 0x0B05
+ CURRENT_RASTER_POSITION = 0x0B07
+ CURRENT_RASTER_POSITION_VALID = 0x0B08
+ CURRENT_RASTER_TEXTURE_COORDS = 0x0B06
+ CURRENT_TEXTURE_COORDS = 0x0B03
+ DEPTH_BIAS = 0x0D1F
+ DEPTH_BITS = 0x0D56
+ DEPTH_CLEAR_VALUE = 0x0B73
+ DEPTH_FUNC = 0x0B74
+ DEPTH_RANGE = 0x0B70
+ DEPTH_SCALE = 0x0D1E
+ DEPTH_WRITEMASK = 0x0B72
+ DOUBLEBUFFER = 0x0C32
+ DRAW_BUFFER = 0x0C01
+ EDGE_FLAG = 0x0B43
+ EDGE_FLAG_ARRAY_STRIDE = 0x808C
+ FEEDBACK_BUFFER_SIZE = 0x0DF1
+ FEEDBACK_BUFFER_TYPE = 0x0DF2
+ FOG_HINT = 0x0C54
+ FRONT_FACE = 0x0B46
+ GREEN_BIAS = 0x0D19
+ GREEN_BITS = 0x0D53
+ GREEN_SCALE = 0x0D18
+ INDEX_ARRAY_STRIDE = 0x8086
+ INDEX_ARRAY_TYPE = 0x8085
+ INDEX_BITS = 0x0D51
+ INDEX_CLEAR_VALUE = 0x0C20
+ INDEX_MODE = 0x0C30
+ INDEX_OFFSET = 0x0D13
+ INDEX_SHIFT = 0x0D12
+ INDEX_WRITEMASK = 0x0C21
+ LIGHT_MODEL_AMBIENT = 0x0B53
+ LIGHT_MODEL_COLOR_CONTROL = 0x81F8
+ LIGHT_MODEL_LOCAL_VIEWER = 0x0B51
+ LIGHT_MODEL_TWO_SIDE = 0x0B52
+ LINE_SMOOTH_HINT = 0x0C52
+ LINE_STIPPLE_PATTERN = 0x0B25
+ LINE_STIPPLE_REPEAT = 0x0B26
+ LINE_WIDTH = 0x0B21
+ LINE_WIDTH_GRANULARITY = 0x0B23
+ LINE_WIDTH_RANGE = 0x0B22
+ LIST_BASE = 0x0B32
+ LIST_INDEX = 0x0B33
+ LIST_MODE = 0x0B30
+ LOGIC_OP_MODE = 0x0BF0
+ MAP1_GRID_DOMAIN = 0x0DD0
+ MAP1_GRID_SEGMENTS = 0x0DD1
+ MAP2_GRID_DOMAIN = 0x0DD2
+ MAP2_GRID_SEGMENTS = 0x0DD3
+ MAP_COLOR = 0x0D10
+ MAP_STENCIL = 0x0D11
+ MATRIX_MODE = 0x0BA0
+ MAX_ATTRIB_STACK_DEPTH = 0x0D35
+ MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B
+ MAX_CLIP_DISTANCES = 0x0D32
+ MAX_CLIP_PLANES = 0x0D32
+ MAX_EVAL_ORDER = 0x0D30
+ MAX_LIGHTS = 0x0D31
+ MAX_LIST_NESTING = 0x0B31
+ MAX_MODELVIEW_STACK_DEPTH = 0x0D36
+ MAX_NAME_STACK_DEPTH = 0x0D37
+ MAX_PIXEL_MAP_TABLE = 0x0D34
+ MAX_PROJECTION_STACK_DEPTH = 0x0D38
+ MAX_TEXTURE_SIZE = 0x0D33
+ MAX_TEXTURE_STACK_DEPTH = 0x0D39
+ MAX_VIEWPORT_DIMS = 0x0D3A
+ MODELVIEW_MATRIX = 0x0BA6
+ MODELVIEW_STACK_DEPTH = 0x0BA3
+ NAME_STACK_DEPTH = 0x0D70
+ NORMAL_ARRAY_STRIDE = 0x807F
+ NORMAL_ARRAY_TYPE = 0x807E
+ PACK_ALIGNMENT = 0x0D05
+ PACK_LSB_FIRST = 0x0D01
+ PACK_ROW_LENGTH = 0x0D02
+ PACK_SKIP_PIXELS = 0x0D04
+ PACK_SKIP_ROWS = 0x0D03
+ PACK_SWAP_BYTES = 0x0D00
+ PERSPECTIVE_CORRECTION_HINT = 0x0C50
+ PIXEL_MAP_A_TO_A_SIZE = 0x0CB9
+ PIXEL_MAP_B_TO_B_SIZE = 0x0CB8
+ PIXEL_MAP_G_TO_G_SIZE = 0x0CB7
+ PIXEL_MAP_I_TO_A_SIZE = 0x0CB5
+ PIXEL_MAP_I_TO_B_SIZE = 0x0CB4
+ PIXEL_MAP_I_TO_G_SIZE = 0x0CB3
+ PIXEL_MAP_I_TO_I_SIZE = 0x0CB0
+ PIXEL_MAP_I_TO_R_SIZE = 0x0CB2
+ PIXEL_MAP_R_TO_R_SIZE = 0x0CB6
+ PIXEL_MAP_S_TO_S_SIZE = 0x0CB1
+ POINT_SIZE = 0x0B11
+ POINT_SIZE_GRANULARITY = 0x0B13
+ POINT_SIZE_RANGE = 0x0B12
+ POINT_SMOOTH_HINT = 0x0C51
+ POLYGON_MODE = 0x0B40
+ POLYGON_OFFSET_FACTOR = 0x8038
+ POLYGON_OFFSET_UNITS = 0x2A00
+ POLYGON_SMOOTH_HINT = 0x0C53
+ PROJECTION_MATRIX = 0x0BA7
+ PROJECTION_STACK_DEPTH = 0x0BA4
+ READ_BUFFER = 0x0C02
+ RED_BIAS = 0x0D15
+ RED_BITS = 0x0D52
+ RED_SCALE = 0x0D14
+ RENDER_MODE = 0x0C40
+ RGBA_MODE = 0x0C31
+ SCISSOR_BOX = 0x0C10
+ SELECTION_BUFFER_SIZE = 0x0DF4
+ SHADE_MODEL = 0x0B54
+ SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23
+ SMOOTH_LINE_WIDTH_RANGE = 0x0B22
+ SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13
+ SMOOTH_POINT_SIZE_RANGE = 0x0B12
+ STENCIL_BITS = 0x0D57
+ STENCIL_CLEAR_VALUE = 0x0B91
+ STENCIL_FAIL = 0x0B94
+ STENCIL_FUNC = 0x0B92
+ STENCIL_PASS_DEPTH_FAIL = 0x0B95
+ STENCIL_PASS_DEPTH_PASS = 0x0B96
+ STENCIL_REF = 0x0B97
+ STENCIL_VALUE_MASK = 0x0B93
+ STENCIL_WRITEMASK = 0x0B98
+ STEREO = 0x0C33
+ SUBPIXEL_BITS = 0x0D50
+ TEXTURE_BINDING_1D = 0x8068
+ TEXTURE_BINDING_2D = 0x8069
+ TEXTURE_BINDING_3D = 0x806A
+ TEXTURE_COORD_ARRAY_SIZE = 0x8088
+ TEXTURE_COORD_ARRAY_STRIDE = 0x808A
+ TEXTURE_COORD_ARRAY_TYPE = 0x8089
+ TEXTURE_MATRIX = 0x0BA8
+ TEXTURE_STACK_DEPTH = 0x0BA5
+ UNPACK_ALIGNMENT = 0x0CF5
+ UNPACK_LSB_FIRST = 0x0CF1
+ UNPACK_ROW_LENGTH = 0x0CF2
+ UNPACK_SKIP_PIXELS = 0x0CF4
+ UNPACK_SKIP_ROWS = 0x0CF3
+ UNPACK_SWAP_BYTES = 0x0CF0
+ VERTEX_ARRAY_SIZE = 0x807A
+ VERTEX_ARRAY_STRIDE = 0x807C
+ VERTEX_ARRAY_TYPE = 0x807B
+ VIEWPORT = 0x0BA2
+ ZOOM_X = 0x0D16
+ ZOOM_Y = 0x0D17
+
+ COLOR_ARRAY_POINTER = 0x8090
+ EDGE_FLAG_ARRAY_POINTER = 0x8093
+ FEEDBACK_BUFFER_POINTER = 0x0DF0
+ INDEX_ARRAY_POINTER = 0x8091
+ NORMAL_ARRAY_POINTER = 0x808F
+ SELECTION_BUFFER_POINTER = 0x0DF3
+ TEXTURE_COORD_ARRAY_POINTER = 0x8092
+ VERTEX_ARRAY_POINTER = 0x808E
+
+ TEXTURE_ALPHA_SIZE = 0x805F
+ TEXTURE_BLUE_SIZE = 0x805E
+ TEXTURE_BORDER = 0x1005
+ TEXTURE_BORDER_COLOR = 0x1004
+ TEXTURE_COMPONENTS = 0x1003
+ TEXTURE_GREEN_SIZE = 0x805D
+ TEXTURE_HEIGHT = 0x1001
+ TEXTURE_INTENSITY_SIZE = 0x8061
+ TEXTURE_INTERNAL_FORMAT = 0x1003
+ TEXTURE_LUMINANCE_SIZE = 0x8060
+ TEXTURE_MAG_FILTER = 0x2800
+ TEXTURE_MIN_FILTER = 0x2801
+ TEXTURE_PRIORITY = 0x8066
+ TEXTURE_RED_SIZE = 0x805C
+ TEXTURE_RESIDENT = 0x8067
+ TEXTURE_WIDTH = 0x1000
+ TEXTURE_WRAP_S = 0x2802
+ TEXTURE_WRAP_T = 0x2803
+
+ DONT_CARE = 0x1100
+ FASTEST = 0x1101
+ NICEST = 0x1102
+
+ FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B
+ GENERATE_MIPMAP_HINT = 0x8192
+ TEXTURE_COMPRESSION_HINT = 0x84EF
+
+ C3F_V3F = 0x2A24
+ C4F_N3F_V3F = 0x2A26
+ C4UB_V2F = 0x2A22
+ C4UB_V3F = 0x2A23
+ N3F_V3F = 0x2A25
+ T2F_C3F_V3F = 0x2A2A
+ T2F_C4F_N3F_V3F = 0x2A2C
+ T2F_C4UB_V3F = 0x2A29
+ T2F_N3F_V3F = 0x2A2B
+ T2F_V3F = 0x2A27
+ T4F_C4F_N3F_V4F = 0x2A2D
+ T4F_V4F = 0x2A28
+ V2F = 0x2A20
+ V3F = 0x2A21
+
+ MODULATE = 0x2100
+ REPLACE = 0x1E01
+
+ SEPARATE_SPECULAR_COLOR = 0x81FA
+ SINGLE_COLOR = 0x81F9
+
+ CONSTANT_ATTENUATION = 0x1207
+ LINEAR_ATTENUATION = 0x1208
+ POSITION = 0x1203
+ QUADRATIC_ATTENUATION = 0x1209
+ SPOT_CUTOFF = 0x1206
+ SPOT_DIRECTION = 0x1204
+ SPOT_EXPONENT = 0x1205
+
+ COMPILE = 0x1300
+ COMPILE_AND_EXECUTE = 0x1301
+
+ AND = 0x1501
+ AND_INVERTED = 0x1504
+ AND_REVERSE = 0x1502
+ CLEAR = 0x1500
+ COPY = 0x1503
+ COPY_INVERTED = 0x150C
+ EQUIV = 0x1509
+ INVERT = 0x150A
+ NAND = 0x150E
+ NOOP = 0x1505
+ NOR = 0x1508
+ OR = 0x1507
+ OR_INVERTED = 0x150D
+ OR_REVERSE = 0x150B
+ SET = 0x150F
+ XOR = 0x1506
+
+ MAP_FLUSH_EXPLICIT_BIT = 0x0010
+ MAP_INVALIDATE_BUFFER_BIT = 0x0008
+ MAP_INVALIDATE_RANGE_BIT = 0x0004
+ MAP_READ_BIT = 0x0001
+ MAP_UNSYNCHRONIZED_BIT = 0x0020
+ MAP_WRITE_BIT = 0x0002
+
+ COLOR_INDEXES = 0x1603
+ SHININESS = 0x1601
+
+ MODELVIEW = 0x1700
+ PROJECTION = 0x1701
+ TEXTURE = 0x1702
+
+ LINE = 0x1B01
+ POINT = 0x1B00
+
+ FILL = 0x1B02
+
+ COLOR = 0x1800
+ DEPTH = 0x1801
+ STENCIL = 0x1802
+
+ ALPHA = 0x1906
+ BLUE = 0x1905
+ COLOR_INDEX = 0x1900
+ DEPTH_COMPONENT = 0x1902
+ GREEN = 0x1904
+ LUMINANCE = 0x1909
+ LUMINANCE_ALPHA = 0x190A
+ RED = 0x1903
+ RGB = 0x1907
+ RGBA = 0x1908
+ STENCIL_INDEX = 0x1901
+
+ ALPHA12 = 0x803D
+ ALPHA16 = 0x803E
+ ALPHA4 = 0x803B
+ ALPHA8 = 0x803C
+ INTENSITY = 0x8049
+ INTENSITY12 = 0x804C
+ INTENSITY16 = 0x804D
+ INTENSITY4 = 0x804A
+ INTENSITY8 = 0x804B
+ LUMINANCE12 = 0x8041
+ LUMINANCE12_ALPHA12 = 0x8047
+ LUMINANCE12_ALPHA4 = 0x8046
+ LUMINANCE16 = 0x8042
+ LUMINANCE16_ALPHA16 = 0x8048
+ LUMINANCE4 = 0x803F
+ LUMINANCE4_ALPHA4 = 0x8043
+ LUMINANCE6_ALPHA2 = 0x8044
+ LUMINANCE8 = 0x8040
+ LUMINANCE8_ALPHA8 = 0x8045
+ R3_G3_B2 = 0x2A10
+ RGB10 = 0x8052
+ RGB10_A2 = 0x8059
+ RGB12 = 0x8053
+ RGB16 = 0x8054
+ RGB4 = 0x804F
+ RGB5 = 0x8050
+ RGB5_A1 = 0x8057
+ RGB8 = 0x8051
+ RGBA12 = 0x805A
+ RGBA16 = 0x805B
+ RGBA2 = 0x8055
+ RGBA4 = 0x8056
+ RGBA8 = 0x8058
+
+ PACK_IMAGE_HEIGHT = 0x806C
+ PACK_SKIP_IMAGES = 0x806B
+ UNPACK_IMAGE_HEIGHT = 0x806E
+ UNPACK_SKIP_IMAGES = 0x806D
+
+ BITMAP = 0x1A00
+ UNSIGNED_BYTE_3_3_2 = 0x8032
+ UNSIGNED_INT_10_10_10_2 = 0x8036
+ UNSIGNED_INT_8_8_8_8 = 0x8035
+ UNSIGNED_SHORT_4_4_4_4 = 0x8033
+ UNSIGNED_SHORT_5_5_5_1 = 0x8034
+
+ POINT_DISTANCE_ATTENUATION = 0x8129
+ POINT_FADE_THRESHOLD_SIZE = 0x8128
+ POINT_SIZE_MAX = 0x8127
+ POINT_SIZE_MIN = 0x8126
+
+ LINES = 0x0001
+ LINE_LOOP = 0x0002
+ LINE_STRIP = 0x0003
+ POINTS = 0x0000
+ POLYGON = 0x0009
+ QUADS = 0x0007
+ QUAD_STRIP = 0x0008
+ TRIANGLES = 0x0004
+ TRIANGLE_FAN = 0x0006
+ TRIANGLE_STRIP = 0x0005
+
+ FEEDBACK = 0x1C01
+ RENDER = 0x1C00
+ SELECT = 0x1C02
+
+ FLAT = 0x1D00
+ SMOOTH = 0x1D01
+
+ DECR = 0x1E03
+ INCR = 0x1E02
+ KEEP = 0x1E00
+
+ EXTENSIONS = 0x1F03
+ RENDERER = 0x1F01
+ VENDOR = 0x1F00
+ VERSION = 0x1F02
+
+ S = 0x2000
+ T = 0x2001
+ R = 0x2002
+ Q = 0x2003
+
+ DECAL = 0x2101
+
+ TEXTURE_ENV_COLOR = 0x2201
+ TEXTURE_ENV_MODE = 0x2200
+
+ TEXTURE_ENV = 0x2300
+
+ EYE_LINEAR = 0x2400
+ OBJECT_LINEAR = 0x2401
+ SPHERE_MAP = 0x2402
+
+ EYE_PLANE = 0x2502
+ OBJECT_PLANE = 0x2501
+ TEXTURE_GEN_MODE = 0x2500
+
+ NEAREST = 0x2600
+
+ LINEAR_MIPMAP_LINEAR = 0x2703
+ LINEAR_MIPMAP_NEAREST = 0x2701
+ NEAREST_MIPMAP_LINEAR = 0x2702
+ NEAREST_MIPMAP_NEAREST = 0x2700
+
+ GENERATE_MIPMAP = 0x8191
+ TEXTURE_WRAP_R = 0x8072
+
+ PROXY_TEXTURE_1D = 0x8063
+ PROXY_TEXTURE_2D = 0x8064
+ PROXY_TEXTURE_3D = 0x8070
+ TEXTURE_3D = 0x806F
+ TEXTURE_BASE_LEVEL = 0x813C
+ TEXTURE_MAX_LEVEL = 0x813D
+ TEXTURE_MAX_LOD = 0x813B
+ TEXTURE_MIN_LOD = 0x813A
+
+ CLAMP = 0x2900
+ CLAMP_TO_BORDER = 0x812D
+ CLAMP_TO_EDGE = 0x812F
+ REPEAT = 0x2901
+
+ INVALID_INDEX = 0xFFFFFFFF
+ CONSTANT_COLOR = 0x8001
+ ONE_MINUS_CONSTANT_COLOR = 0x8002
+ CONSTANT_ALPHA = 0x8003
+ ONE_MINUS_CONSTANT_ALPHA = 0x8004
+ FUNC_ADD = 0x8006
+ MIN = 0x8007
+ MAX = 0x8008
+ BLEND_EQUATION_RGB = 0x8009
+ FUNC_SUBTRACT = 0x800A
+ FUNC_REVERSE_SUBTRACT = 0x800B
+ RESCALE_NORMAL = 0x803A
+ TEXTURE_DEPTH = 0x8071
+ MAX_3D_TEXTURE_SIZE = 0x8073
+ MULTISAMPLE = 0x809D
+ SAMPLE_ALPHA_TO_COVERAGE = 0x809E
+ SAMPLE_ALPHA_TO_ONE = 0x809F
+ SAMPLE_COVERAGE = 0x80A0
+ SAMPLE_BUFFERS = 0x80A8
+ SAMPLES = 0x80A9
+ SAMPLE_COVERAGE_VALUE = 0x80AA
+ SAMPLE_COVERAGE_INVERT = 0x80AB
+ BLEND_DST_RGB = 0x80C8
+ BLEND_SRC_RGB = 0x80C9
+ BLEND_DST_ALPHA = 0x80CA
+ BLEND_SRC_ALPHA = 0x80CB
+ BGR = 0x80E0
+ BGRA = 0x80E1
+ MAX_ELEMENTS_VERTICES = 0x80E8
+ MAX_ELEMENTS_INDICES = 0x80E9
+ DEPTH_COMPONENT16 = 0x81A5
+ DEPTH_COMPONENT24 = 0x81A6
+ DEPTH_COMPONENT32 = 0x81A7
+ FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210
+ FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211
+ FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212
+ FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213
+ FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214
+ FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215
+ FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216
+ FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217
+ FRAMEBUFFER_DEFAULT = 0x8218
+ FRAMEBUFFER_UNDEFINED = 0x8219
+ DEPTH_STENCIL_ATTACHMENT = 0x821A
+ MAJOR_VERSION = 0x821B
+ MINOR_VERSION = 0x821C
+ NUM_EXTENSIONS = 0x821D
+ CONTEXT_FLAGS = 0x821E
+ COMPRESSED_RED = 0x8225
+ COMPRESSED_RG = 0x8226
+ RG = 0x8227
+ RG_INTEGER = 0x8228
+ R8 = 0x8229
+ R16 = 0x822A
+ RG8 = 0x822B
+ RG16 = 0x822C
+ R16F = 0x822D
+ R32F = 0x822E
+ RG16F = 0x822F
+ RG32F = 0x8230
+ R8I = 0x8231
+ R8UI = 0x8232
+ R16I = 0x8233
+ R16UI = 0x8234
+ R32I = 0x8235
+ R32UI = 0x8236
+ RG8I = 0x8237
+ RG8UI = 0x8238
+ RG16I = 0x8239
+ RG16UI = 0x823A
+ RG32I = 0x823B
+ RG32UI = 0x823C
+ UNSIGNED_BYTE_2_3_3_REV = 0x8362
+ UNSIGNED_SHORT_5_6_5 = 0x8363
+ UNSIGNED_SHORT_5_6_5_REV = 0x8364
+ UNSIGNED_SHORT_4_4_4_4_REV = 0x8365
+ UNSIGNED_SHORT_1_5_5_5_REV = 0x8366
+ UNSIGNED_INT_8_8_8_8_REV = 0x8367
+ UNSIGNED_INT_2_10_10_10_REV = 0x8368
+ MIRRORED_REPEAT = 0x8370
+ FOG_COORDINATE_SOURCE = 0x8450
+ FOG_COORD_SRC = 0x8450
+ FOG_COORDINATE = 0x8451
+ FOG_COORD = 0x8451
+ FRAGMENT_DEPTH = 0x8452
+ CURRENT_FOG_COORDINATE = 0x8453
+ CURRENT_FOG_COORD = 0x8453
+ FOG_COORDINATE_ARRAY_TYPE = 0x8454
+ FOG_COORD_ARRAY_TYPE = 0x8454
+ FOG_COORDINATE_ARRAY_STRIDE = 0x8455
+ FOG_COORD_ARRAY_STRIDE = 0x8455
+ FOG_COORDINATE_ARRAY_POINTER = 0x8456
+ FOG_COORD_ARRAY_POINTER = 0x8456
+ FOG_COORDINATE_ARRAY = 0x8457
+ FOG_COORD_ARRAY = 0x8457
+ COLOR_SUM = 0x8458
+ CURRENT_SECONDARY_COLOR = 0x8459
+ SECONDARY_COLOR_ARRAY_SIZE = 0x845A
+ SECONDARY_COLOR_ARRAY_TYPE = 0x845B
+ SECONDARY_COLOR_ARRAY_STRIDE = 0x845C
+ SECONDARY_COLOR_ARRAY_POINTER = 0x845D
+ SECONDARY_COLOR_ARRAY = 0x845E
+ CURRENT_RASTER_SECONDARY_COLOR = 0x845F
+ TEXTURE0 = 0x84C0
+ TEXTURE1 = 0x84C1
+ TEXTURE2 = 0x84C2
+ TEXTURE3 = 0x84C3
+ TEXTURE4 = 0x84C4
+ TEXTURE5 = 0x84C5
+ TEXTURE6 = 0x84C6
+ TEXTURE7 = 0x84C7
+ TEXTURE8 = 0x84C8
+ TEXTURE9 = 0x84C9
+ TEXTURE10 = 0x84CA
+ TEXTURE11 = 0x84CB
+ TEXTURE12 = 0x84CC
+ TEXTURE13 = 0x84CD
+ TEXTURE14 = 0x84CE
+ TEXTURE15 = 0x84CF
+ TEXTURE16 = 0x84D0
+ TEXTURE17 = 0x84D1
+ TEXTURE18 = 0x84D2
+ TEXTURE19 = 0x84D3
+ TEXTURE20 = 0x84D4
+ TEXTURE21 = 0x84D5
+ TEXTURE22 = 0x84D6
+ TEXTURE23 = 0x84D7
+ TEXTURE24 = 0x84D8
+ TEXTURE25 = 0x84D9
+ TEXTURE26 = 0x84DA
+ TEXTURE27 = 0x84DB
+ TEXTURE28 = 0x84DC
+ TEXTURE29 = 0x84DD
+ TEXTURE30 = 0x84DE
+ TEXTURE31 = 0x84DF
+ ACTIVE_TEXTURE = 0x84E0
+ CLIENT_ACTIVE_TEXTURE = 0x84E1
+ MAX_TEXTURE_UNITS = 0x84E2
+ TRANSPOSE_MODELVIEW_MATRIX = 0x84E3
+ TRANSPOSE_PROJECTION_MATRIX = 0x84E4
+ TRANSPOSE_TEXTURE_MATRIX = 0x84E5
+ TRANSPOSE_COLOR_MATRIX = 0x84E6
+ SUBTRACT = 0x84E7
+ MAX_RENDERBUFFER_SIZE = 0x84E8
+ COMPRESSED_ALPHA = 0x84E9
+ COMPRESSED_LUMINANCE = 0x84EA
+ COMPRESSED_LUMINANCE_ALPHA = 0x84EB
+ COMPRESSED_INTENSITY = 0x84EC
+ COMPRESSED_RGB = 0x84ED
+ COMPRESSED_RGBA = 0x84EE
+ TEXTURE_RECTANGLE = 0x84F5
+ TEXTURE_BINDING_RECTANGLE = 0x84F6
+ PROXY_TEXTURE_RECTANGLE = 0x84F7
+ MAX_RECTANGLE_TEXTURE_SIZE = 0x84F8
+ DEPTH_STENCIL = 0x84F9
+ UNSIGNED_INT_24_8 = 0x84FA
+ MAX_TEXTURE_LOD_BIAS = 0x84FD
+ TEXTURE_FILTER_CONTROL = 0x8500
+ TEXTURE_LOD_BIAS = 0x8501
+ INCR_WRAP = 0x8507
+ DECR_WRAP = 0x8508
+ NORMAL_MAP = 0x8511
+ REFLECTION_MAP = 0x8512
+ TEXTURE_CUBE_MAP = 0x8513
+ TEXTURE_BINDING_CUBE_MAP = 0x8514
+ TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515
+ TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516
+ TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
+ TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518
+ TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519
+ TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A
+ PROXY_TEXTURE_CUBE_MAP = 0x851B
+ MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C
+ COMBINE = 0x8570
+ COMBINE_RGB = 0x8571
+ COMBINE_ALPHA = 0x8572
+ RGB_SCALE = 0x8573
+ ADD_SIGNED = 0x8574
+ INTERPOLATE = 0x8575
+ CONSTANT = 0x8576
+ PRIMARY_COLOR = 0x8577
+ PREVIOUS = 0x8578
+ SOURCE0_RGB = 0x8580
+ SRC0_RGB = 0x8580
+ SOURCE1_RGB = 0x8581
+ SRC1_RGB = 0x8581
+ SOURCE2_RGB = 0x8582
+ SRC2_RGB = 0x8582
+ SOURCE0_ALPHA = 0x8588
+ SRC0_ALPHA = 0x8588
+ SOURCE1_ALPHA = 0x8589
+ SRC1_ALPHA = 0x8589
+ SOURCE2_ALPHA = 0x858A
+ SRC2_ALPHA = 0x858A
+ OPERAND0_RGB = 0x8590
+ OPERAND1_RGB = 0x8591
+ OPERAND2_RGB = 0x8592
+ OPERAND0_ALPHA = 0x8598
+ OPERAND1_ALPHA = 0x8599
+ OPERAND2_ALPHA = 0x859A
+ VERTEX_ARRAY_BINDING = 0x85B5
+ VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622
+ VERTEX_ATTRIB_ARRAY_SIZE = 0x8623
+ VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624
+ VERTEX_ATTRIB_ARRAY_TYPE = 0x8625
+ CURRENT_VERTEX_ATTRIB = 0x8626
+ VERTEX_PROGRAM_POINT_SIZE = 0x8642
+ VERTEX_PROGRAM_TWO_SIDE = 0x8643
+ VERTEX_ATTRIB_ARRAY_POINTER = 0x8645
+ TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0
+ TEXTURE_COMPRESSED = 0x86A1
+ NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2
+ COMPRESSED_TEXTURE_FORMATS = 0x86A3
+ DOT3_RGB = 0x86AE
+ DOT3_RGBA = 0x86AF
+ BUFFER_SIZE = 0x8764
+ BUFFER_USAGE = 0x8765
+ STENCIL_BACK_FUNC = 0x8800
+ STENCIL_BACK_FAIL = 0x8801
+ STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802
+ STENCIL_BACK_PASS_DEPTH_PASS = 0x8803
+ RGBA32F = 0x8814
+ RGB32F = 0x8815
+ RGBA16F = 0x881A
+ RGB16F = 0x881B
+ MAX_DRAW_BUFFERS = 0x8824
+ DRAW_BUFFER0 = 0x8825
+ DRAW_BUFFER1 = 0x8826
+ DRAW_BUFFER2 = 0x8827
+ DRAW_BUFFER3 = 0x8828
+ DRAW_BUFFER4 = 0x8829
+ DRAW_BUFFER5 = 0x882A
+ DRAW_BUFFER6 = 0x882B
+ DRAW_BUFFER7 = 0x882C
+ DRAW_BUFFER8 = 0x882D
+ DRAW_BUFFER9 = 0x882E
+ DRAW_BUFFER10 = 0x882F
+ DRAW_BUFFER11 = 0x8830
+ DRAW_BUFFER12 = 0x8831
+ DRAW_BUFFER13 = 0x8832
+ DRAW_BUFFER14 = 0x8833
+ DRAW_BUFFER15 = 0x8834
+ BLEND_EQUATION_ALPHA = 0x883D
+ TEXTURE_DEPTH_SIZE = 0x884A
+ DEPTH_TEXTURE_MODE = 0x884B
+ TEXTURE_COMPARE_MODE = 0x884C
+ TEXTURE_COMPARE_FUNC = 0x884D
+ COMPARE_R_TO_TEXTURE = 0x884E
+ COMPARE_REF_TO_TEXTURE = 0x884E
+ POINT_SPRITE = 0x8861
+ COORD_REPLACE = 0x8862
+ QUERY_COUNTER_BITS = 0x8864
+ CURRENT_QUERY = 0x8865
+ QUERY_RESULT = 0x8866
+ QUERY_RESULT_AVAILABLE = 0x8867
+ MAX_VERTEX_ATTRIBS = 0x8869
+ VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A
+ MAX_TEXTURE_COORDS = 0x8871
+ MAX_TEXTURE_IMAGE_UNITS = 0x8872
+ ARRAY_BUFFER = 0x8892
+ ELEMENT_ARRAY_BUFFER = 0x8893
+ ARRAY_BUFFER_BINDING = 0x8894
+ ELEMENT_ARRAY_BUFFER_BINDING = 0x8895
+ VERTEX_ARRAY_BUFFER_BINDING = 0x8896
+ NORMAL_ARRAY_BUFFER_BINDING = 0x8897
+ COLOR_ARRAY_BUFFER_BINDING = 0x8898
+ INDEX_ARRAY_BUFFER_BINDING = 0x8899
+ TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A
+ EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B
+ SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C
+ FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D
+ FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D
+ WEIGHT_ARRAY_BUFFER_BINDING = 0x889E
+ VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F
+ READ_ONLY = 0x88B8
+ WRITE_ONLY = 0x88B9
+ READ_WRITE = 0x88BA
+ BUFFER_ACCESS = 0x88BB
+ BUFFER_MAPPED = 0x88BC
+ BUFFER_MAP_POINTER = 0x88BD
+ STREAM_DRAW = 0x88E0
+ STREAM_READ = 0x88E1
+ STREAM_COPY = 0x88E2
+ STATIC_DRAW = 0x88E4
+ STATIC_READ = 0x88E5
+ STATIC_COPY = 0x88E6
+ DYNAMIC_DRAW = 0x88E8
+ DYNAMIC_READ = 0x88E9
+ DYNAMIC_COPY = 0x88EA
+ PIXEL_PACK_BUFFER = 0x88EB
+ PIXEL_UNPACK_BUFFER = 0x88EC
+ PIXEL_PACK_BUFFER_BINDING = 0x88ED
+ PIXEL_UNPACK_BUFFER_BINDING = 0x88EF
+ DEPTH24_STENCIL8 = 0x88F0
+ TEXTURE_STENCIL_SIZE = 0x88F1
+ VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD
+ MAX_ARRAY_TEXTURE_LAYERS = 0x88FF
+ MIN_PROGRAM_TEXEL_OFFSET = 0x8904
+ MAX_PROGRAM_TEXEL_OFFSET = 0x8905
+ SAMPLES_PASSED = 0x8914
+ CLAMP_VERTEX_COLOR = 0x891A
+ CLAMP_FRAGMENT_COLOR = 0x891B
+ CLAMP_READ_COLOR = 0x891C
+ FIXED_ONLY = 0x891D
+ UNIFORM_BUFFER = 0x8A11
+ UNIFORM_BUFFER_BINDING = 0x8A28
+ UNIFORM_BUFFER_START = 0x8A29
+ UNIFORM_BUFFER_SIZE = 0x8A2A
+ MAX_VERTEX_UNIFORM_BLOCKS = 0x8A2B
+ MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C
+ MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8A2D
+ MAX_COMBINED_UNIFORM_BLOCKS = 0x8A2E
+ MAX_UNIFORM_BUFFER_BINDINGS = 0x8A2F
+ MAX_UNIFORM_BLOCK_SIZE = 0x8A30
+ MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31
+ MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32
+ MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33
+ UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34
+ ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35
+ ACTIVE_UNIFORM_BLOCKS = 0x8A36
+ UNIFORM_TYPE = 0x8A37
+ UNIFORM_SIZE = 0x8A38
+ UNIFORM_NAME_LENGTH = 0x8A39
+ UNIFORM_BLOCK_INDEX = 0x8A3A
+ UNIFORM_OFFSET = 0x8A3B
+ UNIFORM_ARRAY_STRIDE = 0x8A3C
+ UNIFORM_MATRIX_STRIDE = 0x8A3D
+ UNIFORM_IS_ROW_MAJOR = 0x8A3E
+ UNIFORM_BLOCK_BINDING = 0x8A3F
+ UNIFORM_BLOCK_DATA_SIZE = 0x8A40
+ UNIFORM_BLOCK_NAME_LENGTH = 0x8A41
+ UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42
+ UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43
+ UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44
+ UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45
+ UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46
+ FRAGMENT_SHADER = 0x8B30
+ VERTEX_SHADER = 0x8B31
+ MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49
+ MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A
+ MAX_VARYING_FLOATS = 0x8B4B
+ MAX_VARYING_COMPONENTS = 0x8B4B
+ MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C
+ MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D
+ SHADER_TYPE = 0x8B4F
+ FLOAT_VEC2 = 0x8B50
+ FLOAT_VEC3 = 0x8B51
+ FLOAT_VEC4 = 0x8B52
+ INT_VEC2 = 0x8B53
+ INT_VEC3 = 0x8B54
+ INT_VEC4 = 0x8B55
+ BOOL = 0x8B56
+ BOOL_VEC2 = 0x8B57
+ BOOL_VEC3 = 0x8B58
+ BOOL_VEC4 = 0x8B59
+ FLOAT_MAT2 = 0x8B5A
+ FLOAT_MAT3 = 0x8B5B
+ FLOAT_MAT4 = 0x8B5C
+ SAMPLER_1D = 0x8B5D
+ SAMPLER_2D = 0x8B5E
+ SAMPLER_3D = 0x8B5F
+ SAMPLER_CUBE = 0x8B60
+ SAMPLER_1D_SHADOW = 0x8B61
+ SAMPLER_2D_SHADOW = 0x8B62
+ SAMPLER_2D_RECT = 0x8B63
+ SAMPLER_2D_RECT_SHADOW = 0x8B64
+ FLOAT_MAT2x3 = 0x8B65
+ FLOAT_MAT2x4 = 0x8B66
+ FLOAT_MAT3x2 = 0x8B67
+ FLOAT_MAT3x4 = 0x8B68
+ FLOAT_MAT4x2 = 0x8B69
+ FLOAT_MAT4x3 = 0x8B6A
+ DELETE_STATUS = 0x8B80
+ COMPILE_STATUS = 0x8B81
+ LINK_STATUS = 0x8B82
+ VALIDATE_STATUS = 0x8B83
+ INFO_LOG_LENGTH = 0x8B84
+ ATTACHED_SHADERS = 0x8B85
+ ACTIVE_UNIFORMS = 0x8B86
+ ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87
+ SHADER_SOURCE_LENGTH = 0x8B88
+ ACTIVE_ATTRIBUTES = 0x8B89
+ ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A
+ SHADING_LANGUAGE_VERSION = 0x8B8C
+ CURRENT_PROGRAM = 0x8B8D
+ TEXTURE_RED_TYPE = 0x8C10
+ TEXTURE_GREEN_TYPE = 0x8C11
+ TEXTURE_BLUE_TYPE = 0x8C12
+ TEXTURE_ALPHA_TYPE = 0x8C13
+ TEXTURE_DEPTH_TYPE = 0x8C16
+ UNSIGNED_NORMALIZED = 0x8C17
+ TEXTURE_1D_ARRAY = 0x8C18
+ PROXY_TEXTURE_1D_ARRAY = 0x8C19
+ TEXTURE_2D_ARRAY = 0x8C1A
+ PROXY_TEXTURE_2D_ARRAY = 0x8C1B
+ TEXTURE_BINDING_1D_ARRAY = 0x8C1C
+ TEXTURE_BINDING_2D_ARRAY = 0x8C1D
+ TEXTURE_BUFFER = 0x8C2A
+ MAX_TEXTURE_BUFFER_SIZE = 0x8C2B
+ TEXTURE_BINDING_BUFFER = 0x8C2C
+ TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D
+ R11F_G11F_B10F = 0x8C3A
+ UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B
+ RGB9_E5 = 0x8C3D
+ UNSIGNED_INT_5_9_9_9_REV = 0x8C3E
+ TEXTURE_SHARED_SIZE = 0x8C3F
+ SRGB = 0x8C40
+ SRGB8 = 0x8C41
+ SRGB_ALPHA = 0x8C42
+ SRGB8_ALPHA8 = 0x8C43
+ SLUMINANCE_ALPHA = 0x8C44
+ SLUMINANCE8_ALPHA8 = 0x8C45
+ SLUMINANCE = 0x8C46
+ SLUMINANCE8 = 0x8C47
+ COMPRESSED_SRGB = 0x8C48
+ COMPRESSED_SRGB_ALPHA = 0x8C49
+ COMPRESSED_SLUMINANCE = 0x8C4A
+ COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B
+ TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76
+ TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F
+ MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80
+ TRANSFORM_FEEDBACK_VARYINGS = 0x8C83
+ TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84
+ TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85
+ PRIMITIVES_GENERATED = 0x8C87
+ TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88
+ RASTERIZER_DISCARD = 0x8C89
+ MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A
+ MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B
+ INTERLEAVED_ATTRIBS = 0x8C8C
+ SEPARATE_ATTRIBS = 0x8C8D
+ TRANSFORM_FEEDBACK_BUFFER = 0x8C8E
+ TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F
+ POINT_SPRITE_COORD_ORIGIN = 0x8CA0
+ LOWER_LEFT = 0x8CA1
+ UPPER_LEFT = 0x8CA2
+ STENCIL_BACK_REF = 0x8CA3
+ STENCIL_BACK_VALUE_MASK = 0x8CA4
+ STENCIL_BACK_WRITEMASK = 0x8CA5
+ DRAW_FRAMEBUFFER_BINDING = 0x8CA6
+ FRAMEBUFFER_BINDING = 0x8CA6
+ RENDERBUFFER_BINDING = 0x8CA7
+ READ_FRAMEBUFFER = 0x8CA8
+ DRAW_FRAMEBUFFER = 0x8CA9
+ READ_FRAMEBUFFER_BINDING = 0x8CAA
+ RENDERBUFFER_SAMPLES = 0x8CAB
+ DEPTH_COMPONENT32F = 0x8CAC
+ DEPTH32F_STENCIL8 = 0x8CAD
+ FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0
+ FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1
+ FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2
+ FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3
+ FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4
+ FRAMEBUFFER_COMPLETE = 0x8CD5
+ FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6
+ FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7
+ FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB
+ FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC
+ FRAMEBUFFER_UNSUPPORTED = 0x8CDD
+ MAX_COLOR_ATTACHMENTS = 0x8CDF
+ COLOR_ATTACHMENT0 = 0x8CE0
+ COLOR_ATTACHMENT1 = 0x8CE1
+ COLOR_ATTACHMENT2 = 0x8CE2
+ COLOR_ATTACHMENT3 = 0x8CE3
+ COLOR_ATTACHMENT4 = 0x8CE4
+ COLOR_ATTACHMENT5 = 0x8CE5
+ COLOR_ATTACHMENT6 = 0x8CE6
+ COLOR_ATTACHMENT7 = 0x8CE7
+ COLOR_ATTACHMENT8 = 0x8CE8
+ COLOR_ATTACHMENT9 = 0x8CE9
+ COLOR_ATTACHMENT10 = 0x8CEA
+ COLOR_ATTACHMENT11 = 0x8CEB
+ COLOR_ATTACHMENT12 = 0x8CEC
+ COLOR_ATTACHMENT13 = 0x8CED
+ COLOR_ATTACHMENT14 = 0x8CEE
+ COLOR_ATTACHMENT15 = 0x8CEF
+ DEPTH_ATTACHMENT = 0x8D00
+ STENCIL_ATTACHMENT = 0x8D20
+ FRAMEBUFFER = 0x8D40
+ RENDERBUFFER = 0x8D41
+ RENDERBUFFER_WIDTH = 0x8D42
+ RENDERBUFFER_HEIGHT = 0x8D43
+ RENDERBUFFER_INTERNAL_FORMAT = 0x8D44
+ STENCIL_INDEX1 = 0x8D46
+ STENCIL_INDEX4 = 0x8D47
+ STENCIL_INDEX8 = 0x8D48
+ STENCIL_INDEX16 = 0x8D49
+ RENDERBUFFER_RED_SIZE = 0x8D50
+ RENDERBUFFER_GREEN_SIZE = 0x8D51
+ RENDERBUFFER_BLUE_SIZE = 0x8D52
+ RENDERBUFFER_ALPHA_SIZE = 0x8D53
+ RENDERBUFFER_DEPTH_SIZE = 0x8D54
+ RENDERBUFFER_STENCIL_SIZE = 0x8D55
+ FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56
+ MAX_SAMPLES = 0x8D57
+ RGBA32UI = 0x8D70
+ RGB32UI = 0x8D71
+ RGBA16UI = 0x8D76
+ RGB16UI = 0x8D77
+ RGBA8UI = 0x8D7C
+ RGB8UI = 0x8D7D
+ RGBA32I = 0x8D82
+ RGB32I = 0x8D83
+ RGBA16I = 0x8D88
+ RGB16I = 0x8D89
+ RGBA8I = 0x8D8E
+ RGB8I = 0x8D8F
+ RED_INTEGER = 0x8D94
+ GREEN_INTEGER = 0x8D95
+ BLUE_INTEGER = 0x8D96
+ ALPHA_INTEGER = 0x8D97
+ RGB_INTEGER = 0x8D98
+ RGBA_INTEGER = 0x8D99
+ BGR_INTEGER = 0x8D9A
+ BGRA_INTEGER = 0x8D9B
+ FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD
+ FRAMEBUFFER_SRGB = 0x8DB9
+ COMPRESSED_RED_RGTC1 = 0x8DBB
+ COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC
+ COMPRESSED_RG_RGTC2 = 0x8DBD
+ COMPRESSED_SIGNED_RG_RGTC2 = 0x8DBE
+ SAMPLER_1D_ARRAY = 0x8DC0
+ SAMPLER_2D_ARRAY = 0x8DC1
+ SAMPLER_BUFFER = 0x8DC2
+ SAMPLER_1D_ARRAY_SHADOW = 0x8DC3
+ SAMPLER_2D_ARRAY_SHADOW = 0x8DC4
+ SAMPLER_CUBE_SHADOW = 0x8DC5
+ UNSIGNED_INT_VEC2 = 0x8DC6
+ UNSIGNED_INT_VEC3 = 0x8DC7
+ UNSIGNED_INT_VEC4 = 0x8DC8
+ INT_SAMPLER_1D = 0x8DC9
+ INT_SAMPLER_2D = 0x8DCA
+ INT_SAMPLER_3D = 0x8DCB
+ INT_SAMPLER_CUBE = 0x8DCC
+ INT_SAMPLER_2D_RECT = 0x8DCD
+ INT_SAMPLER_1D_ARRAY = 0x8DCE
+ INT_SAMPLER_2D_ARRAY = 0x8DCF
+ INT_SAMPLER_BUFFER = 0x8DD0
+ UNSIGNED_INT_SAMPLER_1D = 0x8DD1
+ UNSIGNED_INT_SAMPLER_2D = 0x8DD2
+ UNSIGNED_INT_SAMPLER_3D = 0x8DD3
+ UNSIGNED_INT_SAMPLER_CUBE = 0x8DD4
+ UNSIGNED_INT_SAMPLER_2D_RECT = 0x8DD5
+ UNSIGNED_INT_SAMPLER_1D_ARRAY = 0x8DD6
+ UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8DD7
+ UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8
+ QUERY_WAIT = 0x8E13
+ QUERY_NO_WAIT = 0x8E14
+ QUERY_BY_REGION_WAIT = 0x8E15
+ QUERY_BY_REGION_NO_WAIT = 0x8E16
+ COPY_READ_BUFFER = 0x8F36
+ COPY_WRITE_BUFFER = 0x8F37
+ R8_SNORM = 0x8F94
+ RG8_SNORM = 0x8F95
+ RGB8_SNORM = 0x8F96
+ RGBA8_SNORM = 0x8F97
+ R16_SNORM = 0x8F98
+ RG16_SNORM = 0x8F99
+ RGB16_SNORM = 0x8F9A
+ RGBA16_SNORM = 0x8F9B
+ SIGNED_NORMALIZED = 0x8F9C
+ PRIMITIVE_RESTART = 0x8F9D
+ PRIMITIVE_RESTART_INDEX = 0x8F9E
+ BUFFER_ACCESS_FLAGS = 0x911F
+ BUFFER_MAP_LENGTH = 0x9120
+ BUFFER_MAP_OFFSET = 0x9121
+)
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glViewport.xml
+func (gl *GL) Viewport(x, y, width, height int) {
+ C.gl3_1_glViewport(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// DepthRange specifies the mapping of depth values from normalized device
+// coordinates to window coordinates.
+//
+// Parameter nearVal specifies the mapping of the near clipping plane to window
+// coordinates (defaults to 0), while farVal specifies the mapping of the far
+// clipping plane to window coordinates (defaults to 1).
+//
+// After clipping and division by w, depth coordinates range from -1 to 1,
+// corresponding to the near and far clipping planes. DepthRange specifies a
+// linear mapping of the normalized depth coordinates in this range to window
+// depth coordinates. Regardless of the actual depth buffer implementation,
+// window coordinate depth values are treated as though they range from 0 through 1
+// (like color components). Thus, the values accepted by DepthRange are both
+// clamped to this range before they are accepted.
+//
+// The default setting of (0, 1) maps the near plane to 0 and the far plane to 1.
+// With this mapping, the depth buffer range is fully utilized.
+//
+// It is not necessary that nearVal be less than farVal. Reverse mappings such as
+// nearVal 1, and farVal 0 are acceptable.
+//
+// GL.INVALID_OPERATION is generated if DepthRange is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) DepthRange(nearVal, farVal float64) {
+ C.gl3_1_glDepthRange(gl.funcs, C.GLdouble(nearVal), C.GLdouble(farVal))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsEnabled.xml
+func (gl *GL) IsEnabled(cap glbase.Enum) bool {
+ glresult := C.gl3_1_glIsEnabled(gl.funcs, C.GLenum(cap))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexLevelParameteriv.xml
+func (gl *GL) GetTexLevelParameteriv(target glbase.Enum, level int, pname glbase.Enum, params []int32) {
+ C.gl3_1_glGetTexLevelParameteriv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexLevelParameterfv.xml
+func (gl *GL) GetTexLevelParameterfv(target glbase.Enum, level int, pname glbase.Enum, params []float32) {
+ C.gl3_1_glGetTexLevelParameterfv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexParameteriv.xml
+func (gl *GL) GetTexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_1_glGetTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexParameterfv.xml
+func (gl *GL) GetTexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl3_1_glGetTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexImage.xml
+func (gl *GL) GetTexImage(target glbase.Enum, level int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glGetTexImage(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetIntegerv.xml
+func (gl *GL) GetIntegerv(pname glbase.Enum, params []int32) {
+ C.gl3_1_glGetIntegerv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetFloatv.xml
+func (gl *GL) GetFloatv(pname glbase.Enum, params []float32) {
+ C.gl3_1_glGetFloatv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetError.xml
+func (gl *GL) GetError() glbase.Enum {
+ glresult := C.gl3_1_glGetError(gl.funcs)
+ return glbase.Enum(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetDoublev.xml
+func (gl *GL) GetDoublev(pname glbase.Enum, params []float64) {
+ C.gl3_1_glGetDoublev(gl.funcs, C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetBooleanv.xml
+func (gl *GL) GetBooleanv(pname glbase.Enum, params []bool) {
+ C.gl3_1_glGetBooleanv(gl.funcs, C.GLenum(pname), (*C.GLboolean)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glReadPixels.xml
+func (gl *GL) ReadPixels(x, y, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glReadPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glReadBuffer.xml
+func (gl *GL) ReadBuffer(mode glbase.Enum) {
+ C.gl3_1_glReadBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPixelStorei.xml
+func (gl *GL) PixelStorei(pname glbase.Enum, param int32) {
+ C.gl3_1_glPixelStorei(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPixelStoref.xml
+func (gl *GL) PixelStoref(pname glbase.Enum, param float32) {
+ C.gl3_1_glPixelStoref(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDepthFunc.xml
+func (gl *GL) DepthFunc(glfunc glbase.Enum) {
+ C.gl3_1_glDepthFunc(gl.funcs, C.GLenum(glfunc))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilOp.xml
+func (gl *GL) StencilOp(fail, zfail, zpass glbase.Enum) {
+ C.gl3_1_glStencilOp(gl.funcs, C.GLenum(fail), C.GLenum(zfail), C.GLenum(zpass))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilFunc.xml
+func (gl *GL) StencilFunc(glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl3_1_glStencilFunc(gl.funcs, C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLogicOp.xml
+func (gl *GL) LogicOp(opcode glbase.Enum) {
+ C.gl3_1_glLogicOp(gl.funcs, C.GLenum(opcode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlendFunc.xml
+func (gl *GL) BlendFunc(sfactor, dfactor glbase.Enum) {
+ C.gl3_1_glBlendFunc(gl.funcs, C.GLenum(sfactor), C.GLenum(dfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFlush.xml
+func (gl *GL) Flush() {
+ C.gl3_1_glFlush(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFinish.xml
+func (gl *GL) Finish() {
+ C.gl3_1_glFinish(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEnable.xml
+func (gl *GL) Enable(cap glbase.Enum) {
+ C.gl3_1_glEnable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDisable.xml
+func (gl *GL) Disable(cap glbase.Enum) {
+ C.gl3_1_glDisable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDepthMask.xml
+func (gl *GL) DepthMask(flag bool) {
+ C.gl3_1_glDepthMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColorMask.xml
+func (gl *GL) ColorMask(red, green, blue, alpha bool) {
+ C.gl3_1_glColorMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&red)), *(*C.GLboolean)(unsafe.Pointer(&green)), *(*C.GLboolean)(unsafe.Pointer(&blue)), *(*C.GLboolean)(unsafe.Pointer(&alpha)))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilMask.xml
+func (gl *GL) StencilMask(mask uint32) {
+ C.gl3_1_glStencilMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearDepth.xml
+func (gl *GL) ClearDepth(depth float64) {
+ C.gl3_1_glClearDepth(gl.funcs, C.GLdouble(depth))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearStencil.xml
+func (gl *GL) ClearStencil(s int32) {
+ C.gl3_1_glClearStencil(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearColor.xml
+func (gl *GL) ClearColor(red, green, blue, alpha float32) {
+ C.gl3_1_glClearColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClear.xml
+func (gl *GL) Clear(mask glbase.Bitfield) {
+ C.gl3_1_glClear(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawBuffer.xml
+func (gl *GL) DrawBuffer(mode glbase.Enum) {
+ C.gl3_1_glDrawBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexImage2D.xml
+func (gl *GL) TexImage2D(target glbase.Enum, level int, internalFormat int32, width, height, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexImage1D.xml
+func (gl *GL) TexImage1D(target glbase.Enum, level int, internalFormat int32, width, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameteriv.xml
+func (gl *GL) TexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_1_glTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameteri.xml
+func (gl *GL) TexParameteri(target, pname glbase.Enum, param int32) {
+ C.gl3_1_glTexParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameterfv.xml
+func (gl *GL) TexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl3_1_glTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameterf.xml
+func (gl *GL) TexParameterf(target, pname glbase.Enum, param float32) {
+ C.gl3_1_glTexParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glScissor.xml
+func (gl *GL) Scissor(x, y, width, height int) {
+ C.gl3_1_glScissor(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPolygonMode.xml
+func (gl *GL) PolygonMode(face, mode glbase.Enum) {
+ C.gl3_1_glPolygonMode(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointSize.xml
+func (gl *GL) PointSize(size float32) {
+ C.gl3_1_glPointSize(gl.funcs, C.GLfloat(size))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLineWidth.xml
+func (gl *GL) LineWidth(width float32) {
+ C.gl3_1_glLineWidth(gl.funcs, C.GLfloat(width))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glHint.xml
+func (gl *GL) Hint(target, mode glbase.Enum) {
+ C.gl3_1_glHint(gl.funcs, C.GLenum(target), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFrontFace.xml
+func (gl *GL) FrontFace(mode glbase.Enum) {
+ C.gl3_1_glFrontFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCullFace.xml
+func (gl *GL) CullFace(mode glbase.Enum) {
+ C.gl3_1_glCullFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexubv.xml
+func (gl *GL) Indexubv(c []uint8) {
+ C.gl3_1_glIndexubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexub.xml
+func (gl *GL) Indexub(c uint8) {
+ C.gl3_1_glIndexub(gl.funcs, C.GLubyte(c))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsTexture.xml
+func (gl *GL) IsTexture(texture glbase.Texture) bool {
+ glresult := C.gl3_1_glIsTexture(gl.funcs, C.GLuint(texture))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenTextures returns n texture names in textures. There is no guarantee
+// that the names form a contiguous set of integers; however, it is
+// guaranteed that none of the returned names was in use immediately before
+// the call to GenTextures.
+//
+// The generated textures have no dimensionality; they assume the
+// dimensionality of the texture target to which they are first bound (see
+// BindTexture).
+//
+// Texture names returned by a call to GenTextures are not returned by
+// subsequent calls, unless they are first deleted with DeleteTextures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// GenTextures is available in GL version 2.0 or greater.
+func (gl *GL) GenTextures(n int) []glbase.Texture {
+ if n == 0 {
+ return nil
+ }
+ textures := make([]glbase.Texture, n)
+ C.gl3_1_glGenTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+ return textures
+}
+
+// DeleteTextures deletes the textures objects whose names are stored
+// in the textures slice. After a texture is deleted, it has no contents or
+// dimensionality, and its name is free for reuse (for example by
+// GenTextures). If a texture that is currently bound is deleted, the binding
+// reverts to 0 (the default texture).
+//
+// DeleteTextures silently ignores 0's and names that do not correspond to
+// existing textures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// DeleteTextures is available in GL version 2.0 or greater.
+func (gl *GL) DeleteTextures(textures []glbase.Texture) {
+ n := len(textures)
+ if n == 0 {
+ return
+ }
+ C.gl3_1_glDeleteTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindTexture.xml
+func (gl *GL) BindTexture(target glbase.Enum, texture glbase.Texture) {
+ C.gl3_1_glBindTexture(gl.funcs, C.GLenum(target), C.GLuint(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexSubImage2D.xml
+func (gl *GL) TexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexSubImage1D.xml
+func (gl *GL) TexSubImage1D(target glbase.Enum, level, xoffset, width int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexSubImage2D.xml
+func (gl *GL) CopyTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, x, y, width, height int) {
+ C.gl3_1_glCopyTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexSubImage1D.xml
+func (gl *GL) CopyTexSubImage1D(target glbase.Enum, level, xoffset, x, y, width int) {
+ C.gl3_1_glCopyTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexImage2D.xml
+func (gl *GL) CopyTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, height, border int) {
+ C.gl3_1_glCopyTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexImage1D.xml
+func (gl *GL) CopyTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, border int) {
+ C.gl3_1_glCopyTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPolygonOffset.xml
+func (gl *GL) PolygonOffset(factor, units float32) {
+ C.gl3_1_glPolygonOffset(gl.funcs, C.GLfloat(factor), C.GLfloat(units))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawElements.xml
+func (gl *GL) DrawElements(mode glbase.Enum, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glDrawElements(gl.funcs, C.GLenum(mode), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawArrays.xml
+func (gl *GL) DrawArrays(mode glbase.Enum, first, count int) {
+ C.gl3_1_glDrawArrays(gl.funcs, C.GLenum(mode), C.GLint(first), C.GLsizei(count))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexSubImage3D.xml
+func (gl *GL) CopyTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, x, y, width, height int) {
+ C.gl3_1_glCopyTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexSubImage3D.xml
+func (gl *GL) TexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexImage3D.xml
+func (gl *GL) TexImage3D(target glbase.Enum, level int, internalFormat int32, width, height int, depth int32, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawRangeElements.xml
+func (gl *GL) DrawRangeElements(mode glbase.Enum, start, end uint32, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glDrawRangeElements(gl.funcs, C.GLenum(mode), C.GLuint(start), C.GLuint(end), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlendEquation.xml
+func (gl *GL) BlendEquation(mode glbase.Enum) {
+ C.gl3_1_glBlendEquation(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlendColor.xml
+func (gl *GL) BlendColor(red, green, blue, alpha float32) {
+ C.gl3_1_glBlendColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetCompressedTexImage.xml
+func (gl *GL) GetCompressedTexImage(target glbase.Enum, level int, img interface{}) {
+ var img_ptr unsafe.Pointer
+ var img_v = reflect.ValueOf(img)
+ if img != nil && img_v.Kind() != reflect.Slice {
+ panic("parameter img must be a slice")
+ }
+ if img != nil {
+ img_ptr = unsafe.Pointer(img_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glGetCompressedTexImage(gl.funcs, C.GLenum(target), C.GLint(level), img_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexSubImage1D.xml
+func (gl *GL) CompressedTexSubImage1D(target glbase.Enum, level, xoffset, width int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glCompressedTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexSubImage2D.xml
+func (gl *GL) CompressedTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glCompressedTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexSubImage3D.xml
+func (gl *GL) CompressedTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glCompressedTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexImage1D.xml
+func (gl *GL) CompressedTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, width, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glCompressedTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexImage2D.xml
+func (gl *GL) CompressedTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glCompressedTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexImage3D.xml
+func (gl *GL) CompressedTexImage3D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height int, depth int32, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glCompressedTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSampleCoverage.xml
+func (gl *GL) SampleCoverage(value float32, invert bool) {
+ C.gl3_1_glSampleCoverage(gl.funcs, C.GLfloat(value), *(*C.GLboolean)(unsafe.Pointer(&invert)))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glActiveTexture.xml
+func (gl *GL) ActiveTexture(texture glbase.Enum) {
+ C.gl3_1_glActiveTexture(gl.funcs, C.GLenum(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointParameteriv.xml
+func (gl *GL) PointParameteriv(pname glbase.Enum, params []int32) {
+ C.gl3_1_glPointParameteriv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointParameteri.xml
+func (gl *GL) PointParameteri(pname glbase.Enum, param int32) {
+ C.gl3_1_glPointParameteri(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointParameterfv.xml
+func (gl *GL) PointParameterfv(pname glbase.Enum, params []float32) {
+ C.gl3_1_glPointParameterfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointParameterf.xml
+func (gl *GL) PointParameterf(pname glbase.Enum, param float32) {
+ C.gl3_1_glPointParameterf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiDrawArrays.xml
+func (gl *GL) MultiDrawArrays(mode glbase.Enum, first, count []int, drawcount int32) {
+ C.gl3_1_glMultiDrawArrays(gl.funcs, C.GLenum(mode), (*C.GLint)(unsafe.Pointer(&first[0])), (*C.GLsizei)(unsafe.Pointer(&count[0])), C.GLsizei(drawcount))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlendFuncSeparate.xml
+func (gl *GL) BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha glbase.Enum) {
+ C.gl3_1_glBlendFuncSeparate(gl.funcs, C.GLenum(sfactorRGB), C.GLenum(dfactorRGB), C.GLenum(sfactorAlpha), C.GLenum(dfactorAlpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetBufferParameteriv.xml
+func (gl *GL) GetBufferParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_1_glGetBufferParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glUnmapBuffer.xml
+func (gl *GL) UnmapBuffer(target glbase.Enum) bool {
+ glresult := C.gl3_1_glUnmapBuffer(gl.funcs, C.GLenum(target))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetBufferSubData.xml
+func (gl *GL) GetBufferSubData(target glbase.Enum, offset, size int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glGetBufferSubData(gl.funcs, C.GLenum(target), C.GLintptr(offset), C.GLsizeiptr(size), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBufferSubData.xml
+func (gl *GL) BufferSubData(target glbase.Enum, offset, size int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glBufferSubData(gl.funcs, C.GLenum(target), C.GLintptr(offset), C.GLsizeiptr(size), data_ptr)
+}
+
+// BufferData creates a new data store for the buffer object currently
+// bound to target. Any pre-existing data store is deleted. The new data
+// store is created with the specified size in bytes and usage. If data is
+// not nil, it must be a slice that is used to initialize the data store.
+// In that case the size parameter is ignored and the store size will match
+// the slice data size.
+//
+// In its initial state, the new data store is not mapped, it has a NULL
+// mapped pointer, and its mapped access is GL.READ_WRITE.
+//
+// The target constant must be one of GL.ARRAY_BUFFER, GL.COPY_READ_BUFFER,
+// GL.COPY_WRITE_BUFFER, GL.ELEMENT_ARRAY_BUFFER, GL.PIXEL_PACK_BUFFER,
+// GL.PIXEL_UNPACK_BUFFER, GL.TEXTURE_BUFFER, GL.TRANSFORM_FEEDBACK_BUFFER,
+// or GL.UNIFORM_BUFFER.
+//
+// The usage parameter is a hint to the GL implementation as to how a buffer
+// object's data store will be accessed. This enables the GL implementation
+// to make more intelligent decisions that may significantly impact buffer
+// object performance. It does not, however, constrain the actual usage of
+// the data store. usage can be broken down into two parts: first, the
+// frequency of access (modification and usage), and second, the nature of
+// that access.
+//
+// A usage frequency of STREAM and nature of DRAW is specified via the
+// constant GL.STREAM_DRAW, for example.
+//
+// The usage frequency of access may be one of:
+//
+// STREAM
+// The data store contents will be modified once and used at most a few times.
+//
+// STATIC
+// The data store contents will be modified once and used many times.
+//
+// DYNAMIC
+// The data store contents will be modified repeatedly and used many times.
+//
+// The usage nature of access may be one of:
+//
+// DRAW
+// The data store contents are modified by the application, and used as
+// the source for GL drawing and image specification commands.
+//
+// READ
+// The data store contents are modified by reading data from the GL,
+// and used to return that data when queried by the application.
+//
+// COPY
+// The data store contents are modified by reading data from the GL,
+// and used as the source for GL drawing and image specification
+// commands.
+//
+// Clients must align data elements consistent with the requirements of the
+// client platform, with an additional base-level requirement that an offset
+// within a buffer to a datum comprising N bytes be a multiple of N.
+//
+// Error GL.INVALID_ENUM is generated if target is not one of the accepted
+// buffer targets. GL.INVALID_ENUM is generated if usage is not
+// GL.STREAM_DRAW, GL.STREAM_READ, GL.STREAM_COPY, GL.STATIC_DRAW,
+// GL.STATIC_READ, GL.STATIC_COPY, GL.DYNAMIC_DRAW, GL.DYNAMIC_READ, or
+// GL.DYNAMIC_COPY. GL.INVALID_VALUE is generated if size is negative.
+// GL.INVALID_OPERATION is generated if the reserved buffer object name 0 is
+// bound to target. GL.OUT_OF_MEMORY is generated if the GL is unable to
+// create a data store with the specified size.
+func (gl *GL) BufferData(target glbase.Enum, size int, data interface{}, usage glbase.Enum) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ if data != nil {
+ size = int(data_v.Type().Size()) * data_v.Len()
+ }
+ C.gl3_1_glBufferData(gl.funcs, C.GLenum(target), C.GLsizeiptr(size), data_ptr, C.GLenum(usage))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsBuffer.xml
+func (gl *GL) IsBuffer(buffer glbase.Buffer) bool {
+ glresult := C.gl3_1_glIsBuffer(gl.funcs, C.GLuint(buffer))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenBuffers returns n buffer object names. There is no guarantee that
+// the names form a contiguous set of integers; however, it is guaranteed
+// that none of the returned names was in use immediately before the call to
+// GenBuffers.
+//
+// Buffer object names returned by a call to GenBuffers are not returned by
+// subsequent calls, unless they are first deleted with DeleteBuffers.
+//
+// No buffer objects are associated with the returned buffer object names
+// until they are first bound by calling BindBuffer.
+//
+// Error GL.INVALID_VALUE is generated if n is negative. GL.INVALID_OPERATION
+// is generated if GenBuffers is executed between the execution of Begin
+// and the corresponding execution of End.
+//
+// GenBuffers is available in GL version 1.5 or greater.
+func (gl *GL) GenBuffers(n int) []glbase.Buffer {
+ if n == 0 {
+ return nil
+ }
+ buffers := make([]glbase.Buffer, n)
+ C.gl3_1_glGenBuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&buffers[0])))
+ return buffers
+}
+
+// DeleteBuffers deletes the buffer objects whose names are stored in the
+// buffers slice.
+//
+// After a buffer object is deleted, it has no contents, and its name is free
+// for reuse (for example by GenBuffers). If a buffer object that is
+// currently bound is deleted, the binding reverts to 0 (the absence of any
+// buffer object, which reverts to client memory usage).
+//
+// DeleteBuffers silently ignores 0's and names that do not correspond to
+// existing buffer objects.
+//
+// Error GL.INVALID_VALUE is generated if n is negative. GL.INVALID_OPERATION
+// is generated if DeleteBuffers is executed between the execution of Begin
+// and the corresponding execution of End.
+//
+// DeleteBuffers is available in GL version 1.5 or greater.
+func (gl *GL) DeleteBuffers(buffers []glbase.Buffer) {
+ n := len(buffers)
+ if n == 0 {
+ return
+ }
+ C.gl3_1_glDeleteBuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&buffers[0])))
+}
+
+// BindBuffer creates or puts in use a named buffer object.
+// Calling BindBuffer with target set to GL.ARRAY_BUFFER,
+// GL.ELEMENT_ARRAY_BUFFER, GL.PIXEL_PACK_BUFFER or GL.PIXEL_UNPACK_BUFFER
+// and buffer set to the name of the new buffer object binds the buffer
+// object name to the target. When a buffer object is bound to a target, the
+// previous binding for that target is automatically broken.
+//
+// Buffer object names are unsigned integers. The value zero is reserved, but
+// there is no default buffer object for each buffer object target. Instead,
+// buffer set to zero effectively unbinds any buffer object previously bound,
+// and restores client memory usage for that buffer object target. Buffer
+// object names and the corresponding buffer object contents are local to the
+// shared display-list space (see XCreateContext) of the current GL rendering
+// context; two rendering contexts share buffer object names only if they
+// also share display lists.
+//
+// GenBuffers may be called to generate a set of new buffer object names.
+//
+// The state of a buffer object immediately after it is first bound is an
+// unmapped zero-sized memory buffer with GL.READ_WRITE access and
+// GL.STATIC_DRAW usage.
+//
+// While a non-zero buffer object name is bound, GL operations on the target
+// to which it is bound affect the bound buffer object, and queries of the
+// target to which it is bound return state from the bound buffer object.
+// While buffer object name zero is bound, as in the initial state, attempts
+// to modify or query state on the target to which it is bound generates an
+// GL.INVALID_OPERATION error.
+//
+// When vertex array pointer state is changed, for example by a call to
+// NormalPointer, the current buffer object binding (GL.ARRAY_BUFFER_BINDING)
+// is copied into the corresponding client state for the vertex array type
+// being changed, for example GL.NORMAL_ARRAY_BUFFER_BINDING. While a
+// non-zero buffer object is bound to the GL.ARRAY_BUFFER target, the vertex
+// array pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory is instead interpreted as an offset within the buffer
+// object measured in basic machine units.
+//
+// While a non-zero buffer object is bound to the GL.ELEMENT_ARRAY_BUFFER
+// target, the indices parameter of DrawElements, DrawRangeElements, or
+// MultiDrawElements that is traditionally interpreted as a pointer to
+// client-side memory is instead interpreted as an offset within the buffer
+// object measured in basic machine units.
+//
+// While a non-zero buffer object is bound to the GL.PIXEL_PACK_BUFFER
+// target, the following commands are affected: GetCompressedTexImage,
+// GetConvolutionFilter, GetHistogram, GetMinmax, GetPixelMap,
+// GetPolygonStipple, GetSeparableFilter, GetTexImage, and ReadPixels. The
+// pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory where the pixels are to be packed is instead
+// interpreted as an offset within the buffer object measured in basic
+// machine units.
+//
+// While a non-zero buffer object is bound to the GL.PIXEL_UNPACK_BUFFER
+// target, the following commands are affected: Bitmap, ColorSubTable,
+// ColorTable, CompressedTexImage1D, CompressedTexImage2D,
+// CompressedTexImage3D, CompressedTexSubImage1D, CompressedTexSubImage2D,
+// CompressedTexSubImage3D, ConvolutionFilter1D, ConvolutionFilter2D,
+// DrawPixels, PixelMap, PolygonStipple, SeparableFilter2D, TexImage1D,
+// TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, and TexSubImage3D.
+// The pointer parameter that is traditionally interpreted as a pointer to
+// client-side memory from which the pixels are to be unpacked is instead
+// interpreted as an offset within the buffer object measured in basic
+// machine units.
+//
+// A buffer object binding created with BindBuffer remains active until a
+// different buffer object name is bound to the same target, or until the
+// bound buffer object is deleted with DeleteBuffers.
+//
+// Once created, a named buffer object may be re-bound to any target as often
+// as needed. However, the GL implementation may make choices about how to
+// optimize the storage of a buffer object based on its initial binding
+// target.
+//
+// Error GL.INVALID_ENUM is generated if target is not one of the allowable
+// values. GL.INVALID_OPERATION is generated if BindBuffer is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// BindBuffer is available in GL version 1.5 or greater.
+func (gl *GL) BindBuffer(target glbase.Enum, buffer glbase.Buffer) {
+ C.gl3_1_glBindBuffer(gl.funcs, C.GLenum(target), C.GLuint(buffer))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetQueryObjectuiv.xml
+func (gl *GL) GetQueryObjectuiv(id uint32, pname glbase.Enum, params []uint32) {
+ C.gl3_1_glGetQueryObjectuiv(gl.funcs, C.GLuint(id), C.GLenum(pname), (*C.GLuint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetQueryObjectiv.xml
+func (gl *GL) GetQueryObjectiv(id uint32, pname glbase.Enum, params []int32) {
+ C.gl3_1_glGetQueryObjectiv(gl.funcs, C.GLuint(id), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetQueryiv.xml
+func (gl *GL) GetQueryiv(target, pname glbase.Enum, params []int32) {
+ C.gl3_1_glGetQueryiv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEndQuery.xml
+func (gl *GL) EndQuery(target glbase.Enum) {
+ C.gl3_1_glEndQuery(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBeginQuery.xml
+func (gl *GL) BeginQuery(target glbase.Enum, id uint32) {
+ C.gl3_1_glBeginQuery(gl.funcs, C.GLenum(target), C.GLuint(id))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsQuery.xml
+func (gl *GL) IsQuery(id uint32) bool {
+ glresult := C.gl3_1_glIsQuery(gl.funcs, C.GLuint(id))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDeleteQueries.xml
+func (gl *GL) DeleteQueries(n int, ids []uint32) {
+ C.gl3_1_glDeleteQueries(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&ids[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGenQueries.xml
+func (gl *GL) GenQueries(n int, ids []uint32) {
+ C.gl3_1_glGenQueries(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&ids[0])))
+}
+
+// VertexAttribPointer specifies the location and data format of the array
+// of generic vertex attributes at index to use when rendering. size
+// specifies the number of components per attribute and must be 1, 2, 3, or
+// 4. type specifies the data type of each component, and stride specifies
+// the byte stride from one attribute to the next, allowing vertices and
+// attributes to be packed into a single array or stored in separate arrays.
+// normalized indicates whether the values stored in an integer format are
+// to be mapped to the range [-1,1] (for signed values) or [0,1]
+// (for unsigned values) when they are accessed and converted to floating
+// point; otherwise, values will be converted to floats directly without
+// normalization. offset is a byte offset into the buffer object's data
+// store, which must be bound to the GL.ARRAY_BUFFER target with BindBuffer.
+//
+// The buffer object binding (GL.ARRAY_BUFFER_BINDING) is saved as
+// generic vertex attribute array client-side state
+// (GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING) for the provided index.
+//
+// To enable and disable a generic vertex attribute array, call
+// EnableVertexAttribArray and DisableVertexAttribArray with index. If
+// enabled, the generic vertex attribute array is used when DrawArrays or
+// DrawElements is called. Each generic vertex attribute array is initially
+// disabled.
+//
+// VertexAttribPointer is typically implemented on the client side.
+//
+// Error GL.INVALID_ENUM is generated if type is not an accepted value.
+// GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_VALUE is generated if size is not 1, 2,
+// 3, or 4. GL.INVALID_VALUE is generated if stride is negative.
+func (gl *GL) VertexAttribPointer(index glbase.Attrib, size int, gltype glbase.Enum, normalized bool, stride int, offset uintptr) {
+ offset_ptr := unsafe.Pointer(offset)
+ C.gl3_1_glVertexAttribPointer(gl.funcs, C.GLuint(index), C.GLint(size), C.GLenum(gltype), *(*C.GLboolean)(unsafe.Pointer(&normalized)), C.GLsizei(stride), offset_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glValidateProgram.xml
+func (gl *GL) ValidateProgram(program glbase.Program) {
+ C.gl3_1_glValidateProgram(gl.funcs, C.GLuint(program))
+}
+
+// UniformMatrix4fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix4fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix4fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(4*4) != 0 {
+ panic("invalid value length for UniformMatrix4fv")
+ }
+ count := len(value) / (4 * 4)
+ C.gl3_1_glUniformMatrix4fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix3fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix3fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix3fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(3*3) != 0 {
+ panic("invalid value length for UniformMatrix3fv")
+ }
+ count := len(value) / (3 * 3)
+ C.gl3_1_glUniformMatrix3fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix2fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix2fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix2fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(2*2) != 0 {
+ panic("invalid value length for UniformMatrix2fv")
+ }
+ count := len(value) / (2 * 2)
+ C.gl3_1_glUniformMatrix2fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform4iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform4iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%4 != 0 {
+ panic("invalid value length for Uniform4iv")
+ }
+ count := len(value) / 4
+ C.gl3_1_glUniform4iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform3iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform3iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%3 != 0 {
+ panic("invalid value length for Uniform3iv")
+ }
+ count := len(value) / 3
+ C.gl3_1_glUniform3iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform2iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform2iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%2 != 0 {
+ panic("invalid value length for Uniform2iv")
+ }
+ count := len(value) / 2
+ C.gl3_1_glUniform2iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform1iv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform1iv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1iv(location glbase.Uniform, value []int32) {
+ if len(value) == 0 {
+ return
+ }
+ count := len(value)
+ C.gl3_1_glUniform1iv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform4fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform4fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%4 != 0 {
+ panic("invalid value length for Uniform4fv")
+ }
+ count := len(value) / 4
+ C.gl3_1_glUniform4fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform3fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform3fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%3 != 0 {
+ panic("invalid value length for Uniform3fv")
+ }
+ count := len(value) / 3
+ C.gl3_1_glUniform3fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform2fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform2fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%2 != 0 {
+ panic("invalid value length for Uniform2fv")
+ }
+ count := len(value) / 2
+ C.gl3_1_glUniform2fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform1fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform1fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1fv(location glbase.Uniform, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ count := len(value)
+ C.gl3_1_glUniform1fv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform4i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform4i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4i(location glbase.Uniform, v0, v1, v2, v3 int32) {
+ C.gl3_1_glUniform4i(gl.funcs, C.GLint(location), C.GLint(v0), C.GLint(v1), C.GLint(v2), C.GLint(v3))
+}
+
+// Uniform3i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform3i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3i(location glbase.Uniform, v0, v1, v2 int32) {
+ C.gl3_1_glUniform3i(gl.funcs, C.GLint(location), C.GLint(v0), C.GLint(v1), C.GLint(v2))
+}
+
+// Uniform2i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform2i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2i(location glbase.Uniform, v0, v1 int32) {
+ C.gl3_1_glUniform2i(gl.funcs, C.GLint(location), C.GLint(v0), C.GLint(v1))
+}
+
+// Uniform1i modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform1i operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1i(location glbase.Uniform, v0 int32) {
+ C.gl3_1_glUniform1i(gl.funcs, C.GLint(location), C.GLint(v0))
+}
+
+// Uniform4f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform4f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4f(location glbase.Uniform, v0, v1, v2, v3 float32) {
+ C.gl3_1_glUniform4f(gl.funcs, C.GLint(location), C.GLfloat(v0), C.GLfloat(v1), C.GLfloat(v2), C.GLfloat(v3))
+}
+
+// Uniform3f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform3f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3f(location glbase.Uniform, v0, v1, v2 float32) {
+ C.gl3_1_glUniform3f(gl.funcs, C.GLint(location), C.GLfloat(v0), C.GLfloat(v1), C.GLfloat(v2))
+}
+
+// Uniform2f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform2f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2f(location glbase.Uniform, v0, v1 float32) {
+ C.gl3_1_glUniform2f(gl.funcs, C.GLint(location), C.GLfloat(v0), C.GLfloat(v1))
+}
+
+// Uniform1f modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform1f operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1f(location glbase.Uniform, v0 float32) {
+ C.gl3_1_glUniform1f(gl.funcs, C.GLint(location), C.GLfloat(v0))
+}
+
+// UseProgram installs the program object specified by program as part of
+// current rendering state. One or more executables are created in a program
+// object by successfully attaching shader objects to it with AttachShader,
+// successfully compiling the shader objects with CompileShader, and
+// successfully linking the program object with LinkProgram.
+//
+// A program object will contain an executable that will run on the vertex
+// processor if it contains one or more shader objects of type
+// GL.VERTEX_SHADER that have been successfully compiled and linked.
+// Similarly, a program object will contain an executable that will run on
+// the fragment processor if it contains one or more shader objects of type
+// GL.FRAGMENT_SHADER that have been successfully compiled and linked.
+//
+// Successfully installing an executable on a programmable processor will
+// cause the corresponding fixed functionality of OpenGL to be disabled.
+// Specifically, if an executable is installed on the vertex processor, the
+// OpenGL fixed functionality will be disabled as follows.
+//
+// - The modelview matrix is not applied to vertex coordinates.
+//
+// - The projection matrix is not applied to vertex coordinates.
+//
+// - The texture matrices are not applied to texture coordinates.
+//
+// - Normals are not transformed to eye coordinates.
+//
+// - Normals are not rescaled or normalized.
+//
+// - Normalization of GL.AUTO_NORMAL evaluated normals is not performed.
+//
+// - Texture coordinates are not generated automatically.
+//
+// - Per-vertex lighting is not performed.
+//
+// - Color material computations are not performed.
+//
+// - Color index lighting is not performed.
+//
+// - This list also applies when setting the current raster position.
+//
+// The executable that is installed on the vertex processor is expected to
+// implement any or all of the desired functionality from the preceding list.
+// Similarly, if an executable is installed on the fragment processor, the
+// OpenGL fixed functionality will be disabled as follows.
+//
+// - Texture environment and texture functions are not applied.
+//
+// - Texture application is not applied.
+//
+// - Color sum is not applied.
+//
+// - Fog is not applied.
+//
+// Again, the fragment shader that is installed is expected to implement any
+// or all of the desired functionality from the preceding list.
+//
+// While a program object is in use, applications are free to modify attached
+// shader objects, compile attached shader objects, attach additional shader
+// objects, and detach or delete shader objects. None of these operations
+// will affect the executables that are part of the current state. However,
+// relinking the program object that is currently in use will install the
+// program object as part of the current rendering state if the link
+// operation was successful (see LinkProgram). If the program object
+// currently in use is relinked unsuccessfully, its link status will be set
+// to GL.FALSE, but the executables and associated state will remain part of
+// the current state until a subsequent call to UseProgram removes it from
+// use. After it is removed from use, it cannot be made part of current state
+// until it has been successfully relinked.
+//
+// If program contains shader objects of type GL.VERTEX_SHADER but it does
+// not contain shader objects of type GL.FRAGMENT_SHADER, an executable will
+// be installed on the vertex processor, but fixed functionality will be used
+// for fragment processing. Similarly, if program contains shader objects of
+// type GL.FRAGMENT_SHADER but it does not contain shader objects of type
+// GL.VERTEX_SHADER, an executable will be installed on the fragment
+// processor, but fixed functionality will be used for vertex processing. If
+// program is 0, the programmable processors will be disabled, and fixed
+// functionality will be used for both vertex and fragment processing.
+//
+// While a program object is in use, the state that controls the disabled
+// fixed functionality may also be updated using the normal OpenGL calls.
+//
+// Like display lists and texture objects, the name space for program objects
+// may be shared across a set of contexts, as long as the server sides of the
+// contexts share the same address space. If the name space is shared across
+// contexts, any attached objects and the data associated with those attached
+// objects are shared as well.
+//
+// Applications are responsible for providing the synchronization across API
+// calls when objects are accessed from different execution threads.
+//
+// Error GL.INVALID_VALUE is generated if program is neither 0 nor a value
+// generated by OpenGL. GL.INVALID_OPERATION is generated if program is not
+// a program object. GL.INVALID_OPERATION is generated if program could not
+// be made part of current state. GL.INVALID_OPERATION is generated if
+// UseProgram is executed between the execution of Begin and the
+// corresponding execution of End.
+//
+// UseProgram is available in GL version 2.0 or greater.
+func (gl *GL) UseProgram(program glbase.Program) {
+ C.gl3_1_glUseProgram(gl.funcs, C.GLuint(program))
+}
+
+// ShaderSource sets the source code in shader to the provided source code. Any source
+// code previously stored in the shader object is completely replaced.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader
+// object. GL.INVALID_VALUE is generated if count is less than 0.
+// GL.INVALID_OPERATION is generated if ShaderSource is executed between the
+// execution of Begin and the corresponding execution of End.
+//
+// ShaderSource is available in GL version 2.0 or greater.
+func (gl *GL) ShaderSource(shader glbase.Shader, source ...string) {
+ count := len(source)
+ length := make([]int32, count)
+ source_c := make([]unsafe.Pointer, count)
+ for i, src := range source {
+ length[i] = int32(len(src))
+ if len(src) > 0 {
+ source_c[i] = *(*unsafe.Pointer)(unsafe.Pointer(&src))
+ } else {
+ source_c[i] = unsafe.Pointer(uintptr(0))
+ }
+ }
+ C.gl3_1_glShaderSource(gl.funcs, C.GLuint(shader), C.GLsizei(count), (**C.GLchar)(unsafe.Pointer(&source_c[0])), (*C.GLint)(unsafe.Pointer(&length[0])))
+}
+
+// LinkProgram links the program object specified by program. If any shader
+// objects of type GL.VERTEX_SHADER are attached to program, they will be
+// used to create an executable that will run on the programmable vertex
+// processor. If any shader objects of type GL.FRAGMENT_SHADER are attached
+// to program, they will be used to create an executable that will run on the
+// programmable fragment processor.
+//
+// The status of the link operation will be stored as part of the program
+// object's state. This value will be set to GL.TRUE if the program object
+// was linked without errors and is ready for use, and GL.FALSE otherwise. It
+// can be queried by calling GetProgramiv with arguments program and
+// GL.LINK_STATUS.
+//
+// As a result of a successful link operation, all active user-defined
+// uniform variables belonging to program will be initialized to 0, and each
+// of the program object's active uniform variables will be assigned a
+// location that can be queried by calling GetUniformLocation. Also, any
+// active user-defined attribute variables that have not been bound to a
+// generic vertex attribute index will be bound to one at this time.
+//
+// Linking of a program object can fail for a number of reasons as specified
+// in the OpenGL Shading Language Specification. The following lists some of
+// the conditions that will cause a link error.
+//
+// - The number of active attribute variables supported by the
+// implementation has been exceeded.
+//
+// - The storage limit for uniform variables has been exceeded.
+//
+// - The number of active uniform variables supported by the implementation
+// has been exceeded.
+//
+// - The main function is missing for the vertex shader or the fragment
+// shader.
+//
+// - A varying variable actually used in the fragment shader is not
+// declared in the same way (or is not declared at all) in the vertex
+// shader.
+//
+// - A reference to a function or variable name is unresolved.
+//
+// - A shared global is declared with two different types or two different
+// initial values.
+//
+// - One or more of the attached shader objects has not been successfully
+// compiled.
+//
+// - Binding a generic attribute matrix caused some rows of the matrix to
+// fall outside the allowed maximum of GL.MAX_VERTEX_ATTRIBS.
+//
+// - Not enough contiguous vertex attribute slots could be found to bind
+// attribute matrices.
+//
+// When a program object has been successfully linked, the program object can
+// be made part of current state by calling UseProgram. Whether or not the
+// link operation was successful, the program object's information log will
+// be overwritten. The information log can be retrieved by calling
+// GetProgramInfoLog.
+//
+// LinkProgram will also install the generated executables as part of the
+// current rendering state if the link operation was successful and the
+// specified program object is already currently in use as a result of a
+// previous call to UseProgram. If the program object currently in use is
+// relinked unsuccessfully, its link status will be set to GL.FALSE , but the
+// executables and associated state will remain part of the current state
+// until a subsequent call to UseProgram removes it from use. After it is
+// removed from use, it cannot be made part of current state until it has
+// been successfully relinked.
+//
+// If program contains shader objects of type GL.VERTEX_SHADER but does not
+// contain shader objects of type GL.FRAGMENT_SHADER, the vertex shader will
+// be linked against the implicit interface for fixed functionality fragment
+// processing. Similarly, if program contains shader objects of type
+// GL.FRAGMENT_SHADER but it does not contain shader objects of type
+// GL.VERTEX_SHADER, the fragment shader will be linked against the implicit
+// interface for fixed functionality vertex processing.
+//
+// The program object's information log is updated and the program is
+// generated at the time of the link operation. After the link operation,
+// applications are free to modify attached shader objects, compile attached
+// shader objects, detach shader objects, delete shader objects, and attach
+// additional shader objects. None of these operations affects the
+// information log or the program that is part of the program object.
+//
+// If the link operation is unsuccessful, any information about a previous
+// link operation on program is lost (a failed link does not restore the
+// old state of program). Certain information can still be retrieved
+// from program even after an unsuccessful link operation. See for instance
+// GetActiveAttrib and GetActiveUniform.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program
+// object. GL.INVALID_OPERATION is generated if LinkProgram is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// LinkProgram is available in GL version 2.0 or greater.
+func (gl *GL) LinkProgram(program glbase.Program) {
+ C.gl3_1_glLinkProgram(gl.funcs, C.GLuint(program))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsShader.xml
+func (gl *GL) IsShader(shader glbase.Shader) bool {
+ glresult := C.gl3_1_glIsShader(gl.funcs, C.GLuint(shader))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsProgram.xml
+func (gl *GL) IsProgram(program glbase.Program) bool {
+ glresult := C.gl3_1_glIsProgram(gl.funcs, C.GLuint(program))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GetVertexAttribiv returns in params the value of a generic vertex attribute
+// parameter. The generic vertex attribute to be queried is specified by
+// index, and the parameter to be queried is specified by pname.
+//
+// The accepted parameter names are as follows:
+//
+// GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
+// params returns a single value, the name of the buffer object
+// currently bound to the binding point corresponding to generic vertex
+// attribute array index. If no buffer object is bound, 0 is returned.
+// The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_ENABLED
+// params returns a single value that is non-zero (true) if the vertex
+// attribute array for index is enabled and 0 (false) if it is
+// disabled. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_SIZE
+// params returns a single value, the size of the vertex attribute
+// array for index. The size is the number of values for each element
+// of the vertex attribute array, and it will be 1, 2, 3, or 4. The
+// initial value is 4.
+//
+// GL.VERTEX_ATTRIB_ARRAY_STRIDE
+// params returns a single value, the array stride for (number of bytes
+// between successive elements in) the vertex attribute array for
+// index. A value of 0 indicates that the array elements are stored
+// sequentially in memory. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_TYPE
+// params returns a single value, a symbolic constant indicating the
+// array type for the vertex attribute array for index. Possible values
+// are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
+// GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
+// GL.FLOAT.
+//
+// GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
+// params returns a single value that is non-zero (true) if fixed-point
+// data types for the vertex attribute array indicated by index are
+// normalized when they are converted to floating point, and 0 (false)
+// otherwise. The initial value is 0.
+//
+// GL.CURRENT_VERTEX_ATTRIB
+// params returns four values that represent the current value for the
+// generic vertex attribute specified by index. Generic vertex
+// attribute 0 is unique in that it has no current state, so an error
+// will be generated if index is 0. The initial value for all other
+// generic vertex attributes is (0,0,0,1).
+//
+// All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent
+// client-side state.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an
+// accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname
+// is GL.CURRENT_VERTEX_ATTRIB.
+//
+// GetVertexAttribiv is available in GL version 2.0 or greater.
+func (gl *GL) GetVertexAttribiv(index glbase.Attrib, pname glbase.Enum, params []int32) {
+ var params_c [4]int32
+ C.gl3_1_glGetVertexAttribiv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetVertexAttribfv returns in params the value of a generic vertex attribute
+// parameter. The generic vertex attribute to be queried is specified by
+// index, and the parameter to be queried is specified by pname.
+//
+// The accepted parameter names are as follows:
+//
+// GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
+// params returns a single value, the name of the buffer object
+// currently bound to the binding point corresponding to generic vertex
+// attribute array index. If no buffer object is bound, 0 is returned.
+// The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_ENABLED
+// params returns a single value that is non-zero (true) if the vertex
+// attribute array for index is enabled and 0 (false) if it is
+// disabled. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_SIZE
+// params returns a single value, the size of the vertex attribute
+// array for index. The size is the number of values for each element
+// of the vertex attribute array, and it will be 1, 2, 3, or 4. The
+// initial value is 4.
+//
+// GL.VERTEX_ATTRIB_ARRAY_STRIDE
+// params returns a single value, the array stride for (number of bytes
+// between successive elements in) the vertex attribute array for
+// index. A value of 0 indicates that the array elements are stored
+// sequentially in memory. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_TYPE
+// params returns a single value, a symbolic constant indicating the
+// array type for the vertex attribute array for index. Possible values
+// are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
+// GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
+// GL.FLOAT.
+//
+// GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
+// params returns a single value that is non-zero (true) if fixed-point
+// data types for the vertex attribute array indicated by index are
+// normalized when they are converted to floating point, and 0 (false)
+// otherwise. The initial value is 0.
+//
+// GL.CURRENT_VERTEX_ATTRIB
+// params returns four values that represent the current value for the
+// generic vertex attribute specified by index. Generic vertex
+// attribute 0 is unique in that it has no current state, so an error
+// will be generated if index is 0. The initial value for all other
+// generic vertex attributes is (0,0,0,1).
+//
+// All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent
+// client-side state.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an
+// accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname
+// is GL.CURRENT_VERTEX_ATTRIB.
+//
+// GetVertexAttribfv is available in GL version 2.0 or greater.
+func (gl *GL) GetVertexAttribfv(index glbase.Attrib, pname glbase.Enum, params []float32) {
+ var params_c [4]float32
+ C.gl3_1_glGetVertexAttribfv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetVertexAttribdv returns in params the value of a generic vertex attribute
+// parameter. The generic vertex attribute to be queried is specified by
+// index, and the parameter to be queried is specified by pname.
+//
+// The accepted parameter names are as follows:
+//
+// GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
+// params returns a single value, the name of the buffer object
+// currently bound to the binding point corresponding to generic vertex
+// attribute array index. If no buffer object is bound, 0 is returned.
+// The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_ENABLED
+// params returns a single value that is non-zero (true) if the vertex
+// attribute array for index is enabled and 0 (false) if it is
+// disabled. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_SIZE
+// params returns a single value, the size of the vertex attribute
+// array for index. The size is the number of values for each element
+// of the vertex attribute array, and it will be 1, 2, 3, or 4. The
+// initial value is 4.
+//
+// GL.VERTEX_ATTRIB_ARRAY_STRIDE
+// params returns a single value, the array stride for (number of bytes
+// between successive elements in) the vertex attribute array for
+// index. A value of 0 indicates that the array elements are stored
+// sequentially in memory. The initial value is 0.
+//
+// GL.VERTEX_ATTRIB_ARRAY_TYPE
+// params returns a single value, a symbolic constant indicating the
+// array type for the vertex attribute array for index. Possible values
+// are GL.BYTE, GL.UNSIGNED_BYTE, GL.SHORT, GL.UNSIGNED_SHORT, GL.INT,
+// GL.UNSIGNED_INT, GL.FLOAT, and GL.DOUBLE. The initial value is
+// GL.FLOAT.
+//
+// GL.VERTEX_ATTRIB_ARRAY_NORMALIZED
+// params returns a single value that is non-zero (true) if fixed-point
+// data types for the vertex attribute array indicated by index are
+// normalized when they are converted to floating point, and 0 (false)
+// otherwise. The initial value is 0.
+//
+// GL.CURRENT_VERTEX_ATTRIB
+// params returns four values that represent the current value for the
+// generic vertex attribute specified by index. Generic vertex
+// attribute 0 is unique in that it has no current state, so an error
+// will be generated if index is 0. The initial value for all other
+// generic vertex attributes is (0,0,0,1).
+//
+// All of the parameters except GL.CURRENT_VERTEX_ATTRIB represent
+// client-side state.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS. GL.INVALID_ENUM is generated if pname is not an
+// accepted value. GL.INVALID_OPERATION is generated if index is 0 and pname
+// is GL.CURRENT_VERTEX_ATTRIB.
+//
+// GetVertexAttribdv is available in GL version 2.0 or greater.
+func (gl *GL) GetVertexAttribdv(index glbase.Attrib, pname glbase.Enum, params []float64) {
+ var params_c [4]float64
+ C.gl3_1_glGetVertexAttribdv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetUniformiv returns in params the value of the specified uniform
+// variable. The type of the uniform variable specified by location
+// determines the number of values returned. If the uniform variable is
+// defined in the shader as a boolean, int, or float, a single value will be
+// returned. If it is defined as a vec2, ivec2, or bvec2, two values will be
+// returned. If it is defined as a vec3, ivec3, or bvec3, three values will
+// be returned, and so on. To query values stored in uniform variables
+// declared as arrays, call GetUniformiv for each element of the array. To
+// query values stored in uniform variables declared as structures, call
+// GetUniformiv for each field in the structure. The values for uniform
+// variables declared as a matrix will be returned in column major order.
+//
+// The locations assigned to uniform variables are not known until the
+// program object is linked. After linking has occurred, the command
+// GetUniformLocation can be used to obtain the location of a uniform
+// variable. This location value can then be passed to GetUniformiv in order
+// to query the current value of the uniform variable. After a program object
+// has been linked successfully, the index values for uniform variables
+// remain fixed until the next link command occurs. The uniform variable
+// values can only be queried after a link if the link was successful.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program
+// object. GL.INVALID_OPERATION is generated if program has not been
+// successfully linked. GL.INVALID_OPERATION is generated if location does
+// not correspond to a valid uniform variable location for the specified
+// program object. GL.INVALID_OPERATION is generated if GetUniformiv is
+// executed between the execution of Begin and the corresponding execution of
+// End.
+//
+// GetUniformiv is available in GL version 2.0 or greater.
+func (gl *GL) GetUniformiv(program glbase.Program, location glbase.Uniform, params []int32) {
+ var params_c [4]int32
+ C.gl3_1_glGetUniformiv(gl.funcs, C.GLuint(program), C.GLint(location), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetUniformfv returns in params the value of the specified uniform
+// variable. The type of the uniform variable specified by location
+// determines the number of values returned. If the uniform variable is
+// defined in the shader as a boolean, int, or float, a single value will be
+// returned. If it is defined as a vec2, ivec2, or bvec2, two values will be
+// returned. If it is defined as a vec3, ivec3, or bvec3, three values will
+// be returned, and so on. To query values stored in uniform variables
+// declared as arrays, call GetUniformfv for each element of the array. To
+// query values stored in uniform variables declared as structures, call
+// GetUniformfv for each field in the structure. The values for uniform
+// variables declared as a matrix will be returned in column major order.
+//
+// The locations assigned to uniform variables are not known until the
+// program object is linked. After linking has occurred, the command
+// GetUniformLocation can be used to obtain the location of a uniform
+// variable. This location value can then be passed to GetUniformfv in order
+// to query the current value of the uniform variable. After a program object
+// has been linked successfully, the index values for uniform variables
+// remain fixed until the next link command occurs. The uniform variable
+// values can only be queried after a link if the link was successful.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program
+// object. GL.INVALID_OPERATION is generated if program has not been
+// successfully linked. GL.INVALID_OPERATION is generated if location does
+// not correspond to a valid uniform variable location for the specified
+// program object. GL.INVALID_OPERATION is generated if GetUniformfv is
+// executed between the execution of Begin and the corresponding execution of
+// End.
+//
+// GetUniformfv is available in GL version 2.0 or greater.
+func (gl *GL) GetUniformfv(program glbase.Program, location glbase.Uniform, params []float32) {
+ var params_c [4]float32
+ C.gl3_1_glGetUniformfv(gl.funcs, C.GLuint(program), C.GLint(location), (*C.GLfloat)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetUniformLocation returns an integer that represents the location of a
+// specific uniform variable within a program object. name must be an active
+// uniform variable name in program that is not a structure, an array of
+// structures, or a subcomponent of a vector or a matrix. This function
+// returns -1 if name does not correspond to an active uniform variable in
+// program or if name starts with the reserved prefix "gl_".
+//
+// Uniform variables that are structures or arrays of structures may be
+// queried by calling GetUniformLocation for each field within the
+// structure. The array element operator "[]" and the structure field
+// operator "." may be used in name in order to select elements within an
+// array or fields within a structure. The result of using these operators is
+// not allowed to be another structure, an array of structures, or a
+// subcomponent of a vector or a matrix. Except if the last part of name
+// indicates a uniform variable array, the location of the first element of
+// an array can be retrieved by using the name of the array, or by using the
+// name appended by "[0]".
+//
+// The actual locations assigned to uniform variables are not known until the
+// program object is linked successfully. After linking has occurred, the
+// command GetUniformLocation can be used to obtain the location of a
+// uniform variable. This location value can then be passed to Uniform to
+// set the value of the uniform variable or to GetUniform in order to query
+// the current value of the uniform variable. After a program object has been
+// linked successfully, the index values for uniform variables remain fixed
+// until the next link command occurs. Uniform variable locations and values
+// can only be queried after a link if the link was successful.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program is not a program object.
+// GL.INVALID_OPERATION is generated if program has not been successfully
+// linked. GL.INVALID_OPERATION is generated if GetUniformLocation is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// GetUniformLocation is available in GL version 2.0 or greater.
+func (gl *GL) GetUniformLocation(program glbase.Program, name string) glbase.Uniform {
+ name_cstr := C.CString(name)
+ glresult := C.gl3_1_glGetUniformLocation(gl.funcs, C.GLuint(program), (*C.GLchar)(name_cstr))
+ C.free(unsafe.Pointer(name_cstr))
+ return glbase.Uniform(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetShaderSource.xml
+func (gl *GL) GetShaderSource(shader glbase.Shader, bufSize int32, length []int32, source []byte) {
+ C.gl3_1_glGetShaderSource(gl.funcs, C.GLuint(shader), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLchar)(unsafe.Pointer(&source[0])))
+}
+
+// GetShaderInfoLog returns the information log for the specified shader
+// object. The information log for a shader object is modified when the
+// shader is compiled.
+//
+// The information log for a shader object is a string that may contain
+// diagnostic messages, warning messages, and other information about the
+// last compile operation. When a shader object is created, its information
+// log will be a string of length 0, and the size of the current log can be
+// obtained by calling GetShaderiv with the value GL.INFO_LOG_LENGTH.
+//
+// The information log for a shader object is the OpenGL implementer's
+// primary mechanism for conveying information about the compilation process.
+// Therefore, the information log can be helpful to application developers
+// during the development process, even when compilation is successful.
+// Application developers should not expect different OpenGL implementations
+// to produce identical information logs.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader
+// object. GL.INVALID_VALUE is generated if maxLength is less than 0.
+// GL.INVALID_OPERATION is generated if GetShaderInfoLog is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// GetShaderInfoLog is available in GL version 2.0 or greater.
+func (gl *GL) GetShaderInfoLog(shader glbase.Shader) []byte {
+ var params [1]int32
+ var length int32
+ gl.GetShaderiv(shader, INFO_LOG_LENGTH, params[:])
+ bufSize := params[0]
+ infoLog := make([]byte, int(bufSize))
+ C.gl3_1_glGetShaderInfoLog(gl.funcs, C.GLuint(shader), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length)), (*C.GLchar)(unsafe.Pointer(&infoLog[0])))
+ return infoLog
+}
+
+// GetShaderiv GetShader returns in params the value of a parameter for a specific
+// shader object. The following parameters are defined:
+//
+// GL.SHADER_TYPE
+// params returns GL.VERTEX_SHADER if shader is a vertex shader object,
+// and GL.FRAGMENT_SHADER if shader is a fragment shader object.
+//
+// GL.DELETE_STATUS
+// params returns GL.TRUE if shader is currently flagged for deletion,
+// and GL.FALSE otherwise.
+//
+// GL.COMPILE_STATUS
+// params returns GL.TRUE if the last compile operation on shader was
+// successful, and GL.FALSE otherwise.
+//
+// GL.INFO_LOG_LENGTH
+// params returns the number of characters in the information log for
+// shader including the null termination character (the size of the
+// character buffer required to store the information log). If shader has
+// no information log, a value of 0 is returned.
+//
+// GL.SHADER_SOURCE_LENGTH
+// params returns the length of the concatenation of the source strings
+// that make up the shader source for the shader, including the null
+// termination character. (the size of the character buffer
+// required to store the shader source). If no source code exists, 0 is
+// returned.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader does not refer to a
+// shader object. GL.INVALID_ENUM is generated if pname is not an accepted
+// value. GL.INVALID_OPERATION is generated if GetShader is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// GetShaderiv is available in GL version 2.0 or greater.
+func (gl *GL) GetShaderiv(shader glbase.Shader, pname glbase.Enum, params []int32) {
+ var params_c [4]int32
+ C.gl3_1_glGetShaderiv(gl.funcs, C.GLuint(shader), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetProgramInfoLog returns the information log for the specified program
+// object. The information log for a program object is modified when the
+// program object is linked or validated.
+//
+// The information log for a program object is either an empty string, or a
+// string containing information about the last link operation, or a string
+// containing information about the last validation operation. It may contain
+// diagnostic messages, warning messages, and other information. When a
+// program object is created, its information log will be a string of length
+// 0, and the size of the current log can be obtained by calling GetProgramiv
+// with the value GL.INFO_LOG_LENGTH.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated
+// by OpenGL. GL.INVALID_OPERATION is generated if program is not a
+// program object.
+func (gl *GL) GetProgramInfoLog(program glbase.Program) []byte {
+ var params [1]int32
+ var length int32
+ gl.GetProgramiv(program, INFO_LOG_LENGTH, params[:])
+ bufSize := params[0]
+ infoLog := make([]byte, int(bufSize))
+ C.gl3_1_glGetProgramInfoLog(gl.funcs, C.GLuint(program), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length)), (*C.GLchar)(unsafe.Pointer(&infoLog[0])))
+ return infoLog
+}
+
+// GetProgramiv returns in params the value of a parameter for a specific
+// program object. The following parameters are defined:
+//
+// GL.DELETE_STATUS
+// params returns GL.TRUE if program is currently flagged for deletion,
+// and GL.FALSE otherwise.
+//
+// GL.LINK_STATUS
+// params returns GL.TRUE if the last link operation on program was
+// successful, and GL.FALSE otherwise.
+//
+// GL.VALIDATE_STATUS
+// params returns GL.TRUE or if the last validation operation on
+// program was successful, and GL.FALSE otherwise.
+//
+// GL.INFO_LOG_LENGTH
+// params returns the number of characters in the information log for
+// program including the null termination character (the size of
+// the character buffer required to store the information log). If
+// program has no information log, a value of 0 is returned.
+//
+// GL.ATTACHED_SHADERS
+// params returns the number of shader objects attached to program.
+//
+// GL.ACTIVE_ATTRIBUTES
+// params returns the number of active attribute variables for program.
+//
+// GL.ACTIVE_ATTRIBUTE_MAX_LENGTH
+// params returns the length of the longest active attribute name for
+// program, including the null termination character (the size of
+// the character buffer required to store the longest attribute name).
+// If no active attributes exist, 0 is returned.
+//
+// GL.ACTIVE_UNIFORMS
+// params returns the number of active uniform variables for program.
+//
+// GL.ACTIVE_UNIFORM_MAX_LENGTH
+// params returns the length of the longest active uniform variable
+// name for program, including the null termination character (i.e.,
+// the size of the character buffer required to store the longest
+// uniform variable name). If no active uniform variables exist, 0 is
+// returned.
+//
+// GL.TRANSFORM_FEEDBACK_BUFFER_MODE
+// params returns a symbolic constant indicating the buffer mode used
+// when transform feedback is active. This may be GL.SEPARATE_ATTRIBS
+// or GL.INTERLEAVED_ATTRIBS.
+//
+// GL.TRANSFORM_FEEDBACK_VARYINGS
+// params returns the number of varying variables to capture in transform
+// feedback mode for the program.
+//
+// GL.TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH
+// params returns the length of the longest variable name to be used for
+// transform feedback, including the null-terminator.
+//
+// GL.GEOMETRY_VERTICES_OUT
+// params returns the maximum number of vertices that the geometry shader in
+// program will output.
+//
+// GL.GEOMETRY_INPUT_TYPE
+// params returns a symbolic constant indicating the primitive type accepted
+// as input to the geometry shader contained in program.
+//
+// GL.GEOMETRY_OUTPUT_TYPE
+// params returns a symbolic constant indicating the primitive type that will
+// be output by the geometry shader contained in program.
+//
+// GL.ACTIVE_UNIFORM_BLOCKS and GL.ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH are
+// available only if the GL version 3.1 or greater.
+//
+// GL.GEOMETRY_VERTICES_OUT, GL.GEOMETRY_INPUT_TYPE and
+// GL.GEOMETRY_OUTPUT_TYPE are accepted only if the GL version is 3.2 or
+// greater.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if program does not refer to a
+// program object. GL.INVALID_OPERATION is generated if pname is
+// GL.GEOMETRY_VERTICES_OUT, GL.GEOMETRY_INPUT_TYPE, or
+// GL.GEOMETRY_OUTPUT_TYPE, and program does not contain a geometry shader.
+// GL.INVALID_ENUM is generated if pname is not an accepted value.
+func (gl *GL) GetProgramiv(program glbase.Program, pname glbase.Enum, params []int32) {
+ var params_c [4]int32
+ C.gl3_1_glGetProgramiv(gl.funcs, C.GLuint(program), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params_c[0])))
+ copy(params, params_c[:])
+}
+
+// GetAttribLocation queries the previously linked program object specified
+// by program for the attribute variable specified by name and returns the
+// index of the generic vertex attribute that is bound to that attribute
+// variable. If name is a matrix attribute variable, the index of the first
+// column of the matrix is returned. If the named attribute variable is not
+// an active attribute in the specified program object or if name starts with
+// the reserved prefix "gl_", a value of -1 is returned.
+//
+// The association between an attribute variable name and a generic attribute
+// index can be specified at any time by calling BindAttribLocation.
+// Attribute bindings do not go into effect until LinkProgram is called.
+// After a program object has been linked successfully, the index values for
+// attribute variables remain fixed until the next link command occurs. The
+// attribute values can only be queried after a link if the link was
+// successful. GetAttribLocation returns the binding that actually went
+// into effect the last time LinkProgram was called for the specified
+// program object. Attribute bindings that have been specified since the last
+// link operation are not returned by GetAttribLocation.
+//
+// Error GL_INVALID_OPERATION is generated if program is not a value
+// generated by OpenGL. GL_INVALID_OPERATION is generated if program is not
+// a program object. GL_INVALID_OPERATION is generated if program has not
+// been successfully linked. GL_INVALID_OPERATION is generated if
+// GetAttribLocation is executed between the execution of Begin and the
+// corresponding execution of End.
+//
+// GetAttribLocation is available in GL version 2.0 or greater.
+func (gl *GL) GetAttribLocation(program glbase.Program, name string) glbase.Attrib {
+ name_cstr := C.CString(name)
+ glresult := C.gl3_1_glGetAttribLocation(gl.funcs, C.GLuint(program), (*C.GLchar)(name_cstr))
+ C.free(unsafe.Pointer(name_cstr))
+ return glbase.Attrib(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetAttachedShaders.xml
+func (gl *GL) GetAttachedShaders(program glbase.Program, maxCount int32, count []int, obj []uint32) {
+ C.gl3_1_glGetAttachedShaders(gl.funcs, C.GLuint(program), C.GLsizei(maxCount), (*C.GLsizei)(unsafe.Pointer(&count[0])), (*C.GLuint)(unsafe.Pointer(&obj[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetActiveUniform.xml
+func (gl *GL) GetActiveUniform(program glbase.Program, index uint32, bufSize int32, length []int32, size []int, gltype []glbase.Enum, name []byte) {
+ C.gl3_1_glGetActiveUniform(gl.funcs, C.GLuint(program), C.GLuint(index), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLint)(unsafe.Pointer(&size[0])), (*C.GLenum)(unsafe.Pointer(&gltype[0])), (*C.GLchar)(unsafe.Pointer(&name[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetActiveAttrib.xml
+func (gl *GL) GetActiveAttrib(program glbase.Program, index glbase.Attrib, bufSize int32, length []int32, size []int, gltype []glbase.Enum, name []byte) {
+ C.gl3_1_glGetActiveAttrib(gl.funcs, C.GLuint(program), C.GLuint(index), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLint)(unsafe.Pointer(&size[0])), (*C.GLenum)(unsafe.Pointer(&gltype[0])), (*C.GLchar)(unsafe.Pointer(&name[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEnableVertexAttribArray.xml
+func (gl *GL) EnableVertexAttribArray(index glbase.Attrib) {
+ C.gl3_1_glEnableVertexAttribArray(gl.funcs, C.GLuint(index))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDisableVertexAttribArray.xml
+func (gl *GL) DisableVertexAttribArray(index glbase.Attrib) {
+ C.gl3_1_glDisableVertexAttribArray(gl.funcs, C.GLuint(index))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDetachShader.xml
+func (gl *GL) DetachShader(program glbase.Program, shader glbase.Shader) {
+ C.gl3_1_glDetachShader(gl.funcs, C.GLuint(program), C.GLuint(shader))
+}
+
+// DeleteShader frees the memory and invalidates the name associated with
+// the shader object specified by shader. This command effectively undoes the
+// effects of a call to CreateShader.
+//
+// If a shader object to be deleted is attached to a program object, it will
+// be flagged for deletion, but it will not be deleted until it is no longer
+// attached to any program object, for any rendering context (it must
+// be detached from wherever it was attached before it will be deleted). A
+// value of 0 for shader will be silently ignored.
+//
+// To determine whether an object has been flagged for deletion, call
+// GetShader with arguments shader and GL.DELETE_STATUS.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL.
+//
+// DeleteShader is available in GL version 2.0 or greater.
+func (gl *GL) DeleteShader(shader glbase.Shader) {
+ C.gl3_1_glDeleteShader(gl.funcs, C.GLuint(shader))
+}
+
+// DeleteProgram frees the memory and invalidates the name associated with
+// the program object specified by program. This command effectively undoes
+// the effects of a call to CreateProgram.
+//
+// If a program object is in use as part of current rendering state, it will
+// be flagged for deletion, but it will not be deleted until it is no longer
+// part of current state for any rendering context. If a program object to be
+// deleted has shader objects attached to it, those shader objects will be
+// automatically detached but not deleted unless they have already been
+// flagged for deletion by a previous call to DeleteShader. A value of 0
+// for program will be silently ignored.
+//
+// To determine whether a program object has been flagged for deletion, call
+// GetProgram with arguments program and GL.DELETE_STATUS.
+//
+// Error GL.INVALID_VALUE is generated if program is not a value generated by
+// OpenGL.
+//
+// DeleteProgram is available in GL version 2.0 or greater.
+func (gl *GL) DeleteProgram(program glbase.Program) {
+ C.gl3_1_glDeleteProgram(gl.funcs, C.GLuint(program))
+}
+
+// CreateShader creates an empty shader object and returns a non-zero value
+// by which it can be referenced. A shader object is used to maintain the
+// source code strings that define a shader. shaderType indicates the type of
+// shader to be created.
+//
+// Two types of shaders are supported. A shader of type GL.VERTEX_SHADER is a
+// shader that is intended to run on the programmable vertex processor and
+// replace the fixed functionality vertex processing in OpenGL. A shader of
+// type GL.FRAGMENT_SHADER is a shader that is intended to run on the
+// programmable fragment processor and replace the fixed functionality
+// fragment processing in OpenGL.
+//
+// When created, a shader object's GL.SHADER_TYPE parameter is set to either
+// GL.VERTEX_SHADER or GL.FRAGMENT_SHADER, depending on the value of
+// shaderType.
+//
+// Like display lists and texture objects, the name space for shader objects
+// may be shared across a set of contexts, as long as the server sides of the
+// contexts share the same address space. If the name space is shared across
+// contexts, any attached objects and the data associated with those attached
+// objects are shared as well.
+//
+// This function returns 0 if an error occurs creating the shader object.
+//
+// Error GL.INVALID_ENUM is generated if shaderType is not an accepted value.
+// GL.INVALID_OPERATION is generated if CreateShader is executed between the
+// execution of Begin and the corresponding execution of End.
+//
+// CreateShader is available in GL version 2.0 or greater.
+func (gl *GL) CreateShader(gltype glbase.Enum) glbase.Shader {
+ glresult := C.gl3_1_glCreateShader(gl.funcs, C.GLenum(gltype))
+ return glbase.Shader(glresult)
+}
+
+// CreateProgram creates an empty program object and returns a non-zero
+// value by which it can be referenced. A program object is an object to
+// which shader objects can be attached. This provides a mechanism to specify
+// the shader objects that will be linked to create a program. It also
+// provides a means for checking the compatibility of the shaders that will
+// be used to create a program (for instance, checking the compatibility
+// between a vertex shader and a fragment shader). When no longer needed as
+// part of a program object, shader objects can be detached.
+//
+// One or more executables are created in a program object by successfully
+// attaching shader objects to it with AttachShader, successfully compiling
+// the shader objects with CompileShader, and successfully linking the
+// program object with LinkProgram. These executables are made part of
+// current state when UseProgram is called. Program objects can be deleted
+// by calling DeleteProgram. The memory associated with the program object
+// will be deleted when it is no longer part of current rendering state for
+// any context.
+//
+// Like display lists and texture objects, the name space for program objects
+// may be shared across a set of contexts, as long as the server sides of the
+// contexts share the same address space. If the name space is shared across
+// contexts, any attached objects and the data associated with those attached
+// objects are shared as well.
+//
+// Applications are responsible for providing the synchronization across API
+// calls when objects are accessed from different execution threads.
+//
+// This function returns 0 if an error occurs creating the program object.
+//
+// Error GL.INVALID_OPERATION is generated if CreateProgram is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// CreateProgram is available in GL version 2.0 or greater.
+func (gl *GL) CreateProgram() glbase.Program {
+ glresult := C.gl3_1_glCreateProgram(gl.funcs)
+ return glbase.Program(glresult)
+}
+
+// CompileShader compiles the source code strings that have been stored in
+// the shader object specified by shader.
+//
+// The compilation status will be stored as part of the shader object's
+// state. This value will be set to GL.TRUE if the shader was compiled without
+// errors and is ready for use, and GL.FALSE otherwise. It can be queried by
+// calling GetShaderiv with arguments shader and GL.COMPILE_STATUS.
+//
+// Compilation of a shader can fail for a number of reasons as specified by
+// the OpenGL Shading Language Specification. Whether or not the compilation
+// was successful, information about the compilation can be obtained from the
+// shader object's information log by calling GetShaderInfoLog.
+//
+// Error GL.INVALID_VALUE is generated if shader is not a value generated by
+// OpenGL. GL.INVALID_OPERATION is generated if shader is not a shader
+// object. GL.INVALID_OPERATION is generated if CompileShader is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// CompileShader is available in GL version 2.0 or greater.
+func (gl *GL) CompileShader(shader glbase.Shader) {
+ C.gl3_1_glCompileShader(gl.funcs, C.GLuint(shader))
+}
+
+// BindAttribLocation associates a user-defined attribute variable in the program
+// object specified by program with a generic vertex attribute index. The name
+// parameter specifies the name of the vertex shader attribute variable to
+// which index is to be bound. When program is made part of the current state,
+// values provided via the generic vertex attribute index will modify the
+// value of the user-defined attribute variable specified by name.
+//
+// If name refers to a matrix attribute variable, index refers to the first
+// column of the matrix. Other matrix columns are then automatically bound to
+// locations index+1 for a matrix of type mat2; index+1 and index+2 for a
+// matrix of type mat3; and index+1, index+2, and index+3 for a matrix of
+// type mat4.
+//
+// This command makes it possible for vertex shaders to use descriptive names
+// for attribute variables rather than generic variables that are numbered
+// from 0 to GL.MAX_VERTEX_ATTRIBS-1. The values sent to each generic
+// attribute index are part of current state, just like standard vertex
+// attributes such as color, normal, and vertex position. If a different
+// program object is made current by calling UseProgram, the generic vertex
+// attributes are tracked in such a way that the same values will be observed
+// by attributes in the new program object that are also bound to index.
+//
+// Attribute variable name-to-generic attribute index bindings for a program
+// object can be explicitly assigned at any time by calling
+// BindAttribLocation. Attribute bindings do not go into effect until
+// LinkProgram is called. After a program object has been linked
+// successfully, the index values for generic attributes remain fixed (and
+// their values can be queried) until the next link command occurs.
+//
+// Applications are not allowed to bind any of the standard OpenGL vertex
+// attributes using this command, as they are bound automatically when
+// needed. Any attribute binding that occurs after the program object has
+// been linked will not take effect until the next time the program object is
+// linked.
+//
+// If name was bound previously, that information is lost. Thus you cannot
+// bind one user-defined attribute variable to multiple indices, but you can
+// bind multiple user-defined attribute variables to the same index.
+//
+// Applications are allowed to bind more than one user-defined attribute
+// variable to the same generic vertex attribute index. This is called
+// aliasing, and it is allowed only if just one of the aliased attributes is
+// active in the executable program, or if no path through the shader
+// consumes more than one attribute of a set of attributes aliased to the
+// same location. The compiler and linker are allowed to assume that no
+// aliasing is done and are free to employ optimizations that work only in
+// the absence of aliasing. OpenGL implementations are not required to do
+// error checking to detect aliasing. Because there is no way to bind
+// standard attributes, it is not possible to alias generic attributes with
+// conventional ones (except for generic attribute 0).
+//
+// BindAttribLocation can be called before any vertex shader objects are
+// bound to the specified program object. It is also permissible to bind a
+// generic attribute index to an attribute variable name that is never used
+// in a vertex shader.
+//
+// Active attributes that are not explicitly bound will be bound by the
+// linker when LinkProgram is called. The locations assigned can be queried
+// by calling GetAttribLocation.
+//
+// Error GL.INVALID_VALUE is generated if index is greater than or equal to
+// GL.MAX_VERTEX_ATTRIBS.
+// GL.INVALID_OPERATION is generated if name starts with the reserved prefix "gl_".
+// GL.INVALID_VALUE is generated if program is not a value generated by OpenGL.
+// GL.INVALID_OPERATION is generated if program is not a program object.
+// GL.INVALID_OPERATION is generated if BindAttribLocation is executed
+// between the execution of Begin and the corresponding execution of End.
+//
+// BindAttribLocation is available in GL version 2.0 or greater.
+func (gl *GL) BindAttribLocation(program glbase.Program, index glbase.Attrib, name string) {
+ name_cstr := C.CString(name)
+ C.gl3_1_glBindAttribLocation(gl.funcs, C.GLuint(program), C.GLuint(index), (*C.GLchar)(name_cstr))
+ C.free(unsafe.Pointer(name_cstr))
+}
+
+// AttachShader attaches a shader object to a program object.
+//
+// In order to create an executable, there must be a way to specify the list
+// of things that will be linked together. Program objects provide this
+// mechanism. Shaders that are to be linked together in a program object must
+// first be attached to that program object. This indicates that shader will
+// be included in link operations that will be performed on program.
+//
+// All operations that can be performed on a shader object are valid whether
+// or not the shader object is attached to a program object. It is
+// permissible to attach a shader object to a program object before source
+// code has been loaded into the shader object or before the shader object
+// has been compiled. It is permissible to attach multiple shader objects of
+// the same type because each may contain a portion of the complete shader.
+// It is also permissible to attach a shader object to more than one program
+// object. If a shader object is deleted while it is attached to a program
+// object, it will be flagged for deletion, and deletion will not occur until
+// DetachShader is called to detach it from all program objects to which it
+// is attached.
+//
+// Error GL.INVALID_VALUE is generated if either program or shader is not a
+// value generated by OpenGL. GL.INVALID_OPERATION is generated if program
+// is not a program object. GL.INVALID_OPERATION is generated if shader is
+// not a shader object. GL.INVALID_OPERATION is generated if shader is
+// already attached to program. GL.INVALID_OPERATION is generated if
+// AttachShader is executed between the execution of Begin and the
+// corresponding execution of End.
+//
+// AttachShader is available in GL version 2.0 or greater.
+func (gl *GL) AttachShader(program glbase.Program, shader glbase.Shader) {
+ C.gl3_1_glAttachShader(gl.funcs, C.GLuint(program), C.GLuint(shader))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilMaskSeparate.xml
+func (gl *GL) StencilMaskSeparate(face glbase.Enum, mask uint32) {
+ C.gl3_1_glStencilMaskSeparate(gl.funcs, C.GLenum(face), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilFuncSeparate.xml
+func (gl *GL) StencilFuncSeparate(face, glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl3_1_glStencilFuncSeparate(gl.funcs, C.GLenum(face), C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilOpSeparate.xml
+func (gl *GL) StencilOpSeparate(face, sfail, dpfail, dppass glbase.Enum) {
+ C.gl3_1_glStencilOpSeparate(gl.funcs, C.GLenum(face), C.GLenum(sfail), C.GLenum(dpfail), C.GLenum(dppass))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawBuffers.xml
+func (gl *GL) DrawBuffers(n int, bufs []glbase.Enum) {
+ C.gl3_1_glDrawBuffers(gl.funcs, C.GLsizei(n), (*C.GLenum)(unsafe.Pointer(&bufs[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlendEquationSeparate.xml
+func (gl *GL) BlendEquationSeparate(modeRGB, modeAlpha glbase.Enum) {
+ C.gl3_1_glBlendEquationSeparate(gl.funcs, C.GLenum(modeRGB), C.GLenum(modeAlpha))
+}
+
+// UniformMatrix4x3fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix4x3fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix4x3fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(4*3) != 0 {
+ panic("invalid value length for UniformMatrix4x3fv")
+ }
+ count := len(value) / (4 * 3)
+ C.gl3_1_glUniformMatrix4x3fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix3x4fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix3x4fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix3x4fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(3*4) != 0 {
+ panic("invalid value length for UniformMatrix3x4fv")
+ }
+ count := len(value) / (3 * 4)
+ C.gl3_1_glUniformMatrix3x4fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix4x2fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix4x2fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix4x2fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(4*2) != 0 {
+ panic("invalid value length for UniformMatrix4x2fv")
+ }
+ count := len(value) / (4 * 2)
+ C.gl3_1_glUniformMatrix4x2fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix2x4fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix2x4fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix2x4fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(2*4) != 0 {
+ panic("invalid value length for UniformMatrix2x4fv")
+ }
+ count := len(value) / (2 * 4)
+ C.gl3_1_glUniformMatrix2x4fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix3x2fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix3x2fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix3x2fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(3*2) != 0 {
+ panic("invalid value length for UniformMatrix3x2fv")
+ }
+ count := len(value) / (3 * 2)
+ C.gl3_1_glUniformMatrix3x2fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// UniformMatrix2x3fv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// UniformMatrix2x3fv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions UniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv are used to
+// modify a matrix or an array of matrices. The numbers in the function name
+// are interpreted as the dimensionality of the matrix. The number 2
+// indicates a 2x2 matrix (4 values), the number 3 indicates a 3x3 matrix (9
+// values), and the number 4 indicates a 4x4 matrix (16 values). Non-square
+// matrix dimensionality is explicit, with the first number representing the
+// number of columns and the second number representing the number of rows.
+// For example, 2x4 indicates a 2x4 matrix with 2 columns and 4 rows (8
+// values). The length of the provided slice must be a multiple of the number
+// of values per matrix, to update one or more consecutive matrices.
+//
+// If transpose is false, each matrix is assumed to be supplied in column
+// major order. If transpose is true, each matrix is assumed to be supplied
+// in row major order.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) UniformMatrix2x3fv(location glbase.Uniform, transpose bool, value []float32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%(2*3) != 0 {
+ panic("invalid value length for UniformMatrix2x3fv")
+ }
+ count := len(value) / (2 * 3)
+ C.gl3_1_glUniformMatrix2x3fv(gl.funcs, C.GLint(location), C.GLsizei(count), *(*C.GLboolean)(unsafe.Pointer(&transpose)), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsVertexArray.xml
+func (gl *GL) IsVertexArray(array uint32) bool {
+ glresult := C.gl3_1_glIsVertexArray(gl.funcs, C.GLuint(array))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGenVertexArrays.xml
+func (gl *GL) GenVertexArrays(n int, arrays []uint32) {
+ C.gl3_1_glGenVertexArrays(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&arrays[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDeleteVertexArrays.xml
+func (gl *GL) DeleteVertexArrays(n int, arrays []uint32) {
+ C.gl3_1_glDeleteVertexArrays(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&arrays[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindVertexArray.xml
+func (gl *GL) BindVertexArray(array uint32) {
+ C.gl3_1_glBindVertexArray(gl.funcs, C.GLuint(array))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFlushMappedBufferRange.xml
+func (gl *GL) FlushMappedBufferRange(target glbase.Enum, offset, length int) {
+ C.gl3_1_glFlushMappedBufferRange(gl.funcs, C.GLenum(target), C.GLintptr(offset), C.GLsizeiptr(length))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFramebufferTextureLayer.xml
+func (gl *GL) FramebufferTextureLayer(target, attachment glbase.Enum, texture glbase.Texture, level int, layer int32) {
+ C.gl3_1_glFramebufferTextureLayer(gl.funcs, C.GLenum(target), C.GLenum(attachment), C.GLuint(texture), C.GLint(level), C.GLint(layer))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRenderbufferStorageMultisample.xml
+func (gl *GL) RenderbufferStorageMultisample(target glbase.Enum, samples int32, internalFormat glbase.Enum, width, height int) {
+ C.gl3_1_glRenderbufferStorageMultisample(gl.funcs, C.GLenum(target), C.GLsizei(samples), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlitFramebuffer.xml
+func (gl *GL) BlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1 int32, mask glbase.Bitfield, filter glbase.Enum) {
+ C.gl3_1_glBlitFramebuffer(gl.funcs, C.GLint(srcX0), C.GLint(srcY0), C.GLint(srcX1), C.GLint(srcY1), C.GLint(dstX0), C.GLint(dstY0), C.GLint(dstX1), C.GLint(dstY1), C.GLbitfield(mask), C.GLenum(filter))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGenerateMipmap.xml
+func (gl *GL) GenerateMipmap(target glbase.Enum) {
+ C.gl3_1_glGenerateMipmap(gl.funcs, C.GLenum(target))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetFramebufferAttachmentParameteriv.xml
+func (gl *GL) GetFramebufferAttachmentParameteriv(target, attachment, pname glbase.Enum, params []int32) {
+ C.gl3_1_glGetFramebufferAttachmentParameteriv(gl.funcs, C.GLenum(target), C.GLenum(attachment), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFramebufferRenderbuffer.xml
+func (gl *GL) FramebufferRenderbuffer(target, attachment, renderbuffertarget glbase.Enum, renderbuffer glbase.Renderbuffer) {
+ C.gl3_1_glFramebufferRenderbuffer(gl.funcs, C.GLenum(target), C.GLenum(attachment), C.GLenum(renderbuffertarget), C.GLuint(renderbuffer))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFramebufferTexture3D.xml
+func (gl *GL) FramebufferTexture3D(target, attachment, textarget glbase.Enum, texture glbase.Texture, level int, zoffset int32) {
+ C.gl3_1_glFramebufferTexture3D(gl.funcs, C.GLenum(target), C.GLenum(attachment), C.GLenum(textarget), C.GLuint(texture), C.GLint(level), C.GLint(zoffset))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFramebufferTexture2D.xml
+func (gl *GL) FramebufferTexture2D(target, attachment, textarget glbase.Enum, texture glbase.Texture, level int) {
+ C.gl3_1_glFramebufferTexture2D(gl.funcs, C.GLenum(target), C.GLenum(attachment), C.GLenum(textarget), C.GLuint(texture), C.GLint(level))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFramebufferTexture1D.xml
+func (gl *GL) FramebufferTexture1D(target, attachment, textarget glbase.Enum, texture glbase.Texture, level int) {
+ C.gl3_1_glFramebufferTexture1D(gl.funcs, C.GLenum(target), C.GLenum(attachment), C.GLenum(textarget), C.GLuint(texture), C.GLint(level))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCheckFramebufferStatus.xml
+func (gl *GL) CheckFramebufferStatus(target glbase.Enum) glbase.Enum {
+ glresult := C.gl3_1_glCheckFramebufferStatus(gl.funcs, C.GLenum(target))
+ return glbase.Enum(glresult)
+}
+
+// GenFramebuffers returns n framebuffer object names in ids. There is no
+// guarantee that the names form a contiguous set of integers; however, it is
+// guaranteed that none of the returned names was in use immediately before
+// the call to GenFramebuffers.
+//
+// Framebuffer object names returned by a call to GenFramebuffers are not
+// returned by subsequent calls, unless they are first deleted with
+// DeleteFramebuffers.
+//
+// The names returned in ids are marked as used, for the purposes of
+// GenFramebuffers only, but they acquire state and type only when they are
+// first bound.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+func (gl *GL) GenFramebuffers(n int) []glbase.Framebuffer {
+ if n == 0 {
+ return nil
+ }
+ framebuffers := make([]glbase.Framebuffer, n)
+ C.gl3_1_glGenFramebuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&framebuffers[0])))
+ return framebuffers
+}
+
+// DeleteFramebuffers deletes the framebuffer objects whose names are
+// stored in the framebuffers slice. The name zero is reserved by the GL and
+// is silently ignored, should it occur in framebuffers, as are other unused
+// names. Once a framebuffer object is deleted, its name is again unused and
+// it has no attachments. If a framebuffer that is currently bound to one or
+// more of the targets GL.DRAW_FRAMEBUFFER or GL.READ_FRAMEBUFFER is deleted,
+// it is as though BindFramebuffer had been executed with the corresponding
+// target and framebuffer zero.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// DeleteFramebuffers is available in GL version 3.0 or greater.
+func (gl *GL) DeleteFramebuffers(framebuffers []glbase.Framebuffer) {
+ n := len(framebuffers)
+ if n == 0 {
+ return
+ }
+ C.gl3_1_glDeleteFramebuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&framebuffers[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindFramebuffer.xml
+func (gl *GL) BindFramebuffer(target glbase.Enum, framebuffer glbase.Framebuffer) {
+ C.gl3_1_glBindFramebuffer(gl.funcs, C.GLenum(target), C.GLuint(framebuffer))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsFramebuffer.xml
+func (gl *GL) IsFramebuffer(framebuffer glbase.Framebuffer) bool {
+ glresult := C.gl3_1_glIsFramebuffer(gl.funcs, C.GLuint(framebuffer))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetRenderbufferParameteriv.xml
+func (gl *GL) GetRenderbufferParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_1_glGetRenderbufferParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glRenderbufferStorage.xml
+func (gl *GL) RenderbufferStorage(target, internalFormat glbase.Enum, width, height int) {
+ C.gl3_1_glRenderbufferStorage(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height))
+}
+
+// GenRenderbuffers returns n renderbuffer object names in renderbuffers.
+// There is no guarantee that the names form a contiguous set of integers;
+// however, it is guaranteed that none of the returned names was in use
+// immediately before the call to GenRenderbuffers.
+//
+// Renderbuffer object names returned by a call to GenRenderbuffers are not
+// returned by subsequent calls, unless they are first deleted with
+// DeleteRenderbuffers.
+//
+// The names returned in renderbuffers are marked as used, for the purposes
+// of GenRenderbuffers only, but they acquire state and type only when they
+// are first bound.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// GenRenderbuffers is available in GL version 3.0 or greater.
+func (gl *GL) GenRenderbuffers(n int) []glbase.Renderbuffer {
+ if n == 0 {
+ return nil
+ }
+ renderbuffers := make([]glbase.Renderbuffer, n)
+ C.gl3_1_glGenRenderbuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&renderbuffers[0])))
+ return renderbuffers
+}
+
+// DeleteRenderbuffers deletes the renderbuffer objects whose names are stored
+// in the renderbuffers slice. The name zero is reserved by the GL and
+// is silently ignored, should it occur in renderbuffers, as are other unused
+// names. Once a renderbuffer object is deleted, its name is again unused and
+// it has no contents. If a renderbuffer that is currently bound to the
+// target GL.RENDERBUFFER is deleted, it is as though BindRenderbuffer had
+// been executed with a target of GL.RENDERBUFFER and a name of zero.
+//
+// If a renderbuffer object is attached to one or more attachment points in
+// the currently bound framebuffer, then it as if FramebufferRenderbuffer
+// had been called, with a renderbuffer of zero for each attachment point to
+// which this image was attached in the currently bound framebuffer. In other
+// words, this renderbuffer object is first detached from all attachment
+// ponits in the currently bound framebuffer. Note that the renderbuffer
+// image is specifically not detached from any non-bound framebuffers.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// DeleteRenderbuffers is available in GL version 3.0 or greater.
+func (gl *GL) DeleteRenderbuffers(renderbuffers []glbase.Renderbuffer) {
+ n := len(renderbuffers)
+ if n == 0 {
+ return
+ }
+ C.gl3_1_glDeleteRenderbuffers(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&renderbuffers[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindRenderbuffer.xml
+func (gl *GL) BindRenderbuffer(target glbase.Enum, renderbuffer glbase.Renderbuffer) {
+ C.gl3_1_glBindRenderbuffer(gl.funcs, C.GLenum(target), C.GLuint(renderbuffer))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsRenderbuffer.xml
+func (gl *GL) IsRenderbuffer(renderbuffer glbase.Renderbuffer) bool {
+ glresult := C.gl3_1_glIsRenderbuffer(gl.funcs, C.GLuint(renderbuffer))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearBufferfi.xml
+func (gl *GL) ClearBufferfi(buffer glbase.Enum, drawbuffer int32, depth float32, stencil int32) {
+ C.gl3_1_glClearBufferfi(gl.funcs, C.GLenum(buffer), C.GLint(drawbuffer), C.GLfloat(depth), C.GLint(stencil))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearBufferfv.xml
+func (gl *GL) ClearBufferfv(buffer glbase.Enum, drawbuffer int32, value []float32) {
+ C.gl3_1_glClearBufferfv(gl.funcs, C.GLenum(buffer), C.GLint(drawbuffer), (*C.GLfloat)(unsafe.Pointer(&value[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearBufferuiv.xml
+func (gl *GL) ClearBufferuiv(buffer glbase.Enum, drawbuffer int32, value []uint32) {
+ C.gl3_1_glClearBufferuiv(gl.funcs, C.GLenum(buffer), C.GLint(drawbuffer), (*C.GLuint)(unsafe.Pointer(&value[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearBufferiv.xml
+func (gl *GL) ClearBufferiv(buffer glbase.Enum, drawbuffer int32, value []int32) {
+ C.gl3_1_glClearBufferiv(gl.funcs, C.GLenum(buffer), C.GLint(drawbuffer), (*C.GLint)(unsafe.Pointer(&value[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexParameterIuiv.xml
+func (gl *GL) GetTexParameterIuiv(target, pname glbase.Enum, params []uint32) {
+ C.gl3_1_glGetTexParameterIuiv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLuint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexParameterIiv.xml
+func (gl *GL) GetTexParameterIiv(target, pname glbase.Enum, params []int32) {
+ C.gl3_1_glGetTexParameterIiv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameterIuiv.xml
+func (gl *GL) TexParameterIuiv(target, pname glbase.Enum, params []uint32) {
+ C.gl3_1_glTexParameterIuiv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLuint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameterIiv.xml
+func (gl *GL) TexParameterIiv(target, pname glbase.Enum, params []int32) {
+ C.gl3_1_glTexParameterIiv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// Uniform4uiv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform4uiv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4uiv(location glbase.Uniform, value []uint32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%4 != 0 {
+ panic("invalid value length for Uniform4uiv")
+ }
+ count := len(value) / 4
+ C.gl3_1_glUniform4uiv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLuint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform3uiv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform3uiv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3uiv(location glbase.Uniform, value []uint32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%3 != 0 {
+ panic("invalid value length for Uniform3uiv")
+ }
+ count := len(value) / 3
+ C.gl3_1_glUniform3uiv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLuint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform2uiv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform2uiv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2uiv(location glbase.Uniform, value []uint32) {
+ if len(value) == 0 {
+ return
+ }
+ if len(value)%2 != 0 {
+ panic("invalid value length for Uniform2uiv")
+ }
+ count := len(value) / 2
+ C.gl3_1_glUniform2uiv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLuint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform1uiv modifies the value of a uniform variable or a uniform
+// variable array. The location of the uniform variable to be modified is
+// specified by location, which should be a value returned by GetUniformLocation.
+// Uniform1uiv operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui}v can be used to modify a single
+// uniform variable or a uniform variable array. These functions receive a
+// slice with the values to be loaded into a uniform variable or a uniform
+// variable array. A slice with length 1 should be used if modifying the value
+// of a single uniform variable, and a length of 1 or greater can be used to
+// modify an entire array or part of an array. When loading n elements
+// starting at an arbitrary position m in a uniform variable array, elements
+// m + n - 1 in the array will be replaced with the new values. If m + n - 1
+// is larger than the size of the uniform variable array, values for all
+// array elements beyond the end of the array will be ignored. The number
+// specified in the name of the command indicates the number of components
+// for each element in value, and it should match the number of components in
+// the data type of the specified uniform variable (1 for float, int, bool;
+// 2 for vec2, ivec2, bvec2, etc.). The data type specified in the name
+// of the command must match the data type for the specified uniform variable
+// as described for Uniform{1|2|3|4}{f|i|ui}.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1uiv(location glbase.Uniform, value []uint32) {
+ if len(value) == 0 {
+ return
+ }
+ count := len(value)
+ C.gl3_1_glUniform1uiv(gl.funcs, C.GLint(location), C.GLsizei(count), (*C.GLuint)(unsafe.Pointer(&value[0])))
+}
+
+// Uniform4ui modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform4ui operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform4ui(location glbase.Uniform, v0, v1, v2, v3 uint32) {
+ C.gl3_1_glUniform4ui(gl.funcs, C.GLint(location), C.GLuint(v0), C.GLuint(v1), C.GLuint(v2), C.GLuint(v3))
+}
+
+// Uniform3ui modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform3ui operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform3ui(location glbase.Uniform, v0, v1, v2 uint32) {
+ C.gl3_1_glUniform3ui(gl.funcs, C.GLint(location), C.GLuint(v0), C.GLuint(v1), C.GLuint(v2))
+}
+
+// Uniform2ui modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform2ui operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform2ui(location glbase.Uniform, v0, v1 uint32) {
+ C.gl3_1_glUniform2ui(gl.funcs, C.GLint(location), C.GLuint(v0), C.GLuint(v1))
+}
+
+// Uniform1ui modifies the value of a single uniform variable.
+// The location of the uniform variable to be modified is specified by
+// location, which should be a value returned by GetUniformLocation.
+// Uniform1ui operates on the program object that was made part of
+// current state by calling UseProgram.
+//
+// The functions Uniform{1|2|3|4}{f|i|ui} are used to change the value of the
+// uniform variable specified by location using the values passed as
+// arguments. The number specified in the function should match the number of
+// components in the data type of the specified uniform variable (1 for
+// float, int, unsigned int, bool; 2 for vec2, ivec2, uvec2, bvec2, etc.).
+// The suffix f indicates that floating-point values are being passed; the
+// suffix i indicates that integer values are being passed; the suffix ui
+// indicates that unsigned integer values are being passed, and this type
+// should also match the data type of the specified uniform variable. The i
+// variants of this function should be used to provide values for uniform
+// variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The ui
+// variants of this function should be used to provide values for uniform
+// variables defined as unsigned int, uvec2, uvec3, uvec4, or arrays of
+// these. The f variants should be used to provide values for uniform
+// variables of type float, vec2, vec3, vec4, or arrays of these. Either the
+// i, ui or f variants may be used to provide values for uniform variables of
+// type bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable
+// will be set to false if the input value is 0 or 0.0f, and it will be set
+// to true otherwise.
+//
+// Uniform1i and Uniform1iv are the only two functions that may be used to
+// load uniform variables defined as sampler types. Loading samplers with any
+// other function will result in a GL.INVALID_OPERATION error.
+//
+// All active uniform variables defined in a program object are initialized
+// to 0 when the program object is linked successfully. They retain the
+// values assigned to them by a call to Uniform* until the next successful
+// link operation occurs on the program object, when they are once again
+// initialized to 0.
+func (gl *GL) Uniform1ui(location glbase.Uniform, v0 uint32) {
+ C.gl3_1_glUniform1ui(gl.funcs, C.GLint(location), C.GLuint(v0))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetFragDataLocation.xml
+func (gl *GL) GetFragDataLocation(program glbase.Program, name []byte) int32 {
+ glresult := C.gl3_1_glGetFragDataLocation(gl.funcs, C.GLuint(program), (*C.GLchar)(unsafe.Pointer(&name[0])))
+ return int32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindFragDataLocation.xml
+func (gl *GL) BindFragDataLocation(program glbase.Program, color uint32, name []byte) {
+ C.gl3_1_glBindFragDataLocation(gl.funcs, C.GLuint(program), C.GLuint(color), (*C.GLchar)(unsafe.Pointer(&name[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetUniformuiv.xml
+func (gl *GL) GetUniformuiv(program glbase.Program, location glbase.Uniform, params []uint32) {
+ C.gl3_1_glGetUniformuiv(gl.funcs, C.GLuint(program), C.GLint(location), (*C.GLuint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetVertexAttribIuiv.xml
+func (gl *GL) GetVertexAttribIuiv(index glbase.Attrib, pname glbase.Enum, params []uint32) {
+ C.gl3_1_glGetVertexAttribIuiv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLuint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetVertexAttribIiv.xml
+func (gl *GL) GetVertexAttribIiv(index glbase.Attrib, pname glbase.Enum, params []int32) {
+ C.gl3_1_glGetVertexAttribIiv(gl.funcs, C.GLuint(index), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glVertexAttribIPointer.xml
+func (gl *GL) VertexAttribIPointer(index glbase.Attrib, size int, gltype glbase.Enum, stride int, pointer interface{}) {
+ var pointer_ptr unsafe.Pointer
+ var pointer_v = reflect.ValueOf(pointer)
+ if pointer != nil && pointer_v.Kind() != reflect.Slice {
+ panic("parameter pointer must be a slice")
+ }
+ if pointer != nil {
+ pointer_ptr = unsafe.Pointer(pointer_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glVertexAttribIPointer(gl.funcs, C.GLuint(index), C.GLint(size), C.GLenum(gltype), C.GLsizei(stride), pointer_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEndConditionalRender.xml
+func (gl *GL) EndConditionalRender() {
+ C.gl3_1_glEndConditionalRender(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBeginConditionalRender.xml
+func (gl *GL) BeginConditionalRender(id uint32, mode glbase.Enum) {
+ C.gl3_1_glBeginConditionalRender(gl.funcs, C.GLuint(id), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClampColor.xml
+func (gl *GL) ClampColor(target, clamp glbase.Enum) {
+ C.gl3_1_glClampColor(gl.funcs, C.GLenum(target), C.GLenum(clamp))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTransformFeedbackVarying.xml
+func (gl *GL) GetTransformFeedbackVarying(program glbase.Program, index uint32, bufSize int32, length []int32, size []int, gltype []glbase.Enum, name []byte) {
+ C.gl3_1_glGetTransformFeedbackVarying(gl.funcs, C.GLuint(program), C.GLuint(index), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLsizei)(unsafe.Pointer(&size[0])), (*C.GLenum)(unsafe.Pointer(&gltype[0])), (*C.GLchar)(unsafe.Pointer(&name[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindBufferBase.xml
+func (gl *GL) BindBufferBase(target glbase.Enum, index uint32, buffer glbase.Buffer) {
+ C.gl3_1_glBindBufferBase(gl.funcs, C.GLenum(target), C.GLuint(index), C.GLuint(buffer))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindBufferRange.xml
+func (gl *GL) BindBufferRange(target glbase.Enum, index uint32, buffer glbase.Buffer, offset, size int) {
+ C.gl3_1_glBindBufferRange(gl.funcs, C.GLenum(target), C.GLuint(index), C.GLuint(buffer), C.GLintptr(offset), C.GLsizeiptr(size))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEndTransformFeedback.xml
+func (gl *GL) EndTransformFeedback() {
+ C.gl3_1_glEndTransformFeedback(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBeginTransformFeedback.xml
+func (gl *GL) BeginTransformFeedback(primitiveMode glbase.Enum) {
+ C.gl3_1_glBeginTransformFeedback(gl.funcs, C.GLenum(primitiveMode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsEnabledi.xml
+func (gl *GL) IsEnabledi(target glbase.Enum, index uint32) bool {
+ glresult := C.gl3_1_glIsEnabledi(gl.funcs, C.GLenum(target), C.GLuint(index))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDisablei.xml
+func (gl *GL) Disablei(target glbase.Enum, index uint32) {
+ C.gl3_1_glDisablei(gl.funcs, C.GLenum(target), C.GLuint(index))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEnablei.xml
+func (gl *GL) Enablei(target glbase.Enum, index uint32) {
+ C.gl3_1_glEnablei(gl.funcs, C.GLenum(target), C.GLuint(index))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetIntegeri_v.xml
+func (gl *GL) GetIntegeri_v(target glbase.Enum, index uint32, data []int32) {
+ C.gl3_1_glGetIntegeri_v(gl.funcs, C.GLenum(target), C.GLuint(index), (*C.GLint)(unsafe.Pointer(&data[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetBooleani_v.xml
+func (gl *GL) GetBooleani_v(target glbase.Enum, index uint32, data []bool) {
+ C.gl3_1_glGetBooleani_v(gl.funcs, C.GLenum(target), C.GLuint(index), (*C.GLboolean)(unsafe.Pointer(&data[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColorMaski.xml
+func (gl *GL) ColorMaski(index uint32, r, g, b, a bool) {
+ C.gl3_1_glColorMaski(gl.funcs, C.GLuint(index), *(*C.GLboolean)(unsafe.Pointer(&r)), *(*C.GLboolean)(unsafe.Pointer(&g)), *(*C.GLboolean)(unsafe.Pointer(&b)), *(*C.GLboolean)(unsafe.Pointer(&a)))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyBufferSubData.xml
+func (gl *GL) CopyBufferSubData(readTarget, writeTarget glbase.Enum, readOffset, writeOffset, size int) {
+ C.gl3_1_glCopyBufferSubData(gl.funcs, C.GLenum(readTarget), C.GLenum(writeTarget), C.GLintptr(readOffset), C.GLintptr(writeOffset), C.GLsizeiptr(size))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glUniformBlockBinding.xml
+func (gl *GL) UniformBlockBinding(program glbase.Program, v0, v1 uint32) {
+ C.gl3_1_glUniformBlockBinding(gl.funcs, C.GLuint(program), C.GLuint(v0), C.GLuint(v1))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetActiveUniformBlockName.xml
+func (gl *GL) GetActiveUniformBlockName(program glbase.Program, uniformBlockIndex uint32, bufSize int32, length []int32, uniformBlockName []byte) {
+ C.gl3_1_glGetActiveUniformBlockName(gl.funcs, C.GLuint(program), C.GLuint(uniformBlockIndex), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLchar)(unsafe.Pointer(&uniformBlockName[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetActiveUniformBlockiv.xml
+func (gl *GL) GetActiveUniformBlockiv(program glbase.Program, uniformBlockIndex uint32, pname glbase.Enum, params []int32) {
+ C.gl3_1_glGetActiveUniformBlockiv(gl.funcs, C.GLuint(program), C.GLuint(uniformBlockIndex), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetUniformBlockIndex.xml
+func (gl *GL) GetUniformBlockIndex(program glbase.Program, uniformBlockName []byte) uint32 {
+ glresult := C.gl3_1_glGetUniformBlockIndex(gl.funcs, C.GLuint(program), (*C.GLchar)(unsafe.Pointer(&uniformBlockName[0])))
+ return uint32(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetActiveUniformName.xml
+func (gl *GL) GetActiveUniformName(program glbase.Program, uniformIndex uint32, bufSize int32, length []int32, uniformName []byte) {
+ C.gl3_1_glGetActiveUniformName(gl.funcs, C.GLuint(program), C.GLuint(uniformIndex), C.GLsizei(bufSize), (*C.GLsizei)(unsafe.Pointer(&length[0])), (*C.GLchar)(unsafe.Pointer(&uniformName[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetActiveUniformsiv.xml
+func (gl *GL) GetActiveUniformsiv(program glbase.Program, uniformCount int32, uniformIndices []uint32, pname glbase.Enum, params []int32) {
+ C.gl3_1_glGetActiveUniformsiv(gl.funcs, C.GLuint(program), C.GLsizei(uniformCount), (*C.GLuint)(unsafe.Pointer(&uniformIndices[0])), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPrimitiveRestartIndex.xml
+func (gl *GL) PrimitiveRestartIndex(index uint32) {
+ C.gl3_1_glPrimitiveRestartIndex(gl.funcs, C.GLuint(index))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexBuffer.xml
+func (gl *GL) TexBuffer(target, internalFormat glbase.Enum, buffer glbase.Buffer) {
+ C.gl3_1_glTexBuffer(gl.funcs, C.GLenum(target), C.GLenum(internalFormat), C.GLuint(buffer))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawElementsInstanced.xml
+func (gl *GL) DrawElementsInstanced(mode glbase.Enum, count int, gltype glbase.Enum, indices interface{}, instancecount int32) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_1_glDrawElementsInstanced(gl.funcs, C.GLenum(mode), C.GLsizei(count), C.GLenum(gltype), indices_ptr, C.GLsizei(instancecount))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawArraysInstanced.xml
+func (gl *GL) DrawArraysInstanced(mode glbase.Enum, first, count int, instancecount int32) {
+ C.gl3_1_glDrawArraysInstanced(gl.funcs, C.GLenum(mode), C.GLint(first), C.GLsizei(count), C.GLsizei(instancecount))
+}
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2compat/funcs.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2compat/funcs.cpp
new file mode 100644
index 000000000..c35066eba
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2compat/funcs.cpp
@@ -0,0 +1,4140 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#include <QOpenGLContext>
+#include <QtGui/qopenglfunctions_3_2_compatibility.h>
+
+#include "funcs.h"
+
+void *gl3_2compat_funcs() {
+ QOpenGLFunctions_3_2_Compatibility* funcs = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_3_2_Compatibility>();
+ if (!funcs) {
+ return 0;
+ }
+ funcs->initializeOpenGLFunctions();
+ return funcs;
+}
+
+
+void gl3_2compat_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glViewport(x, y, width, height);
+}
+
+void gl3_2compat_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDepthRange(nearVal, farVal);
+}
+
+GLboolean gl3_2compat_glIsEnabled(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glIsEnabled(cap);
+}
+
+void gl3_2compat_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameteriv(target, level, pname, params);
+}
+
+void gl3_2compat_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetTexLevelParameterfv(target, level, pname, params);
+}
+
+void gl3_2compat_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetTexParameteriv(target, pname, params);
+}
+
+void gl3_2compat_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetTexParameterfv(target, pname, params);
+}
+
+void gl3_2compat_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetTexImage(target, level, format, gltype, pixels);
+}
+
+void gl3_2compat_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetIntegerv(pname, params);
+}
+
+void gl3_2compat_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetFloatv(pname, params);
+}
+
+GLenum gl3_2compat_glGetError(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glGetError();
+}
+
+void gl3_2compat_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetDoublev(pname, params);
+}
+
+void gl3_2compat_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetBooleanv(pname, params);
+}
+
+void gl3_2compat_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glReadPixels(x, y, width, height, format, gltype, pixels);
+}
+
+void gl3_2compat_glReadBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glReadBuffer(mode);
+}
+
+void gl3_2compat_glPixelStorei(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPixelStorei(pname, param);
+}
+
+void gl3_2compat_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPixelStoref(pname, param);
+}
+
+void gl3_2compat_glDepthFunc(void *_glfuncs, GLenum glfunc)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDepthFunc(glfunc);
+}
+
+void gl3_2compat_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glStencilOp(fail, zfail, zpass);
+}
+
+void gl3_2compat_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glStencilFunc(glfunc, ref, mask);
+}
+
+void gl3_2compat_glLogicOp(void *_glfuncs, GLenum opcode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLogicOp(opcode);
+}
+
+void gl3_2compat_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBlendFunc(sfactor, dfactor);
+}
+
+void gl3_2compat_glFlush(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFlush();
+}
+
+void gl3_2compat_glFinish(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFinish();
+}
+
+void gl3_2compat_glEnable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEnable(cap);
+}
+
+void gl3_2compat_glDisable(void *_glfuncs, GLenum cap)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDisable(cap);
+}
+
+void gl3_2compat_glDepthMask(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDepthMask(flag);
+}
+
+void gl3_2compat_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColorMask(red, green, blue, alpha);
+}
+
+void gl3_2compat_glStencilMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glStencilMask(mask);
+}
+
+void gl3_2compat_glClearDepth(void *_glfuncs, GLdouble depth)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glClearDepth(depth);
+}
+
+void gl3_2compat_glClearStencil(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glClearStencil(s);
+}
+
+void gl3_2compat_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glClearColor(red, green, blue, alpha);
+}
+
+void gl3_2compat_glClear(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glClear(mask);
+}
+
+void gl3_2compat_glDrawBuffer(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDrawBuffer(mode);
+}
+
+void gl3_2compat_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexImage2D(target, level, internalFormat, width, height, border, format, gltype, pixels);
+}
+
+void gl3_2compat_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexImage1D(target, level, internalFormat, width, border, format, gltype, pixels);
+}
+
+void gl3_2compat_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexParameteriv(target, pname, params);
+}
+
+void gl3_2compat_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexParameteri(target, pname, param);
+}
+
+void gl3_2compat_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexParameterfv(target, pname, params);
+}
+
+void gl3_2compat_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexParameterf(target, pname, param);
+}
+
+void gl3_2compat_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glScissor(x, y, width, height);
+}
+
+void gl3_2compat_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPolygonMode(face, mode);
+}
+
+void gl3_2compat_glPointSize(void *_glfuncs, GLfloat size)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPointSize(size);
+}
+
+void gl3_2compat_glLineWidth(void *_glfuncs, GLfloat width)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLineWidth(width);
+}
+
+void gl3_2compat_glHint(void *_glfuncs, GLenum target, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glHint(target, mode);
+}
+
+void gl3_2compat_glFrontFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFrontFace(mode);
+}
+
+void gl3_2compat_glCullFace(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCullFace(mode);
+}
+
+void gl3_2compat_glIndexubv(void *_glfuncs, const GLubyte* c)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glIndexubv(c);
+}
+
+void gl3_2compat_glIndexub(void *_glfuncs, GLubyte c)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glIndexub(c);
+}
+
+GLboolean gl3_2compat_glIsTexture(void *_glfuncs, GLuint texture)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glIsTexture(texture);
+}
+
+void gl3_2compat_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGenTextures(n, textures);
+}
+
+void gl3_2compat_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDeleteTextures(n, textures);
+}
+
+void gl3_2compat_glBindTexture(void *_glfuncs, GLenum target, GLuint texture)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBindTexture(target, texture);
+}
+
+void gl3_2compat_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, gltype, pixels);
+}
+
+void gl3_2compat_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexSubImage1D(target, level, xoffset, width, format, gltype, pixels);
+}
+
+void gl3_2compat_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
+}
+
+void gl3_2compat_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage1D(target, level, xoffset, x, y, width);
+}
+
+void gl3_2compat_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
+}
+
+void gl3_2compat_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCopyTexImage1D(target, level, internalFormat, x, y, width, border);
+}
+
+void gl3_2compat_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPolygonOffset(factor, units);
+}
+
+void gl3_2compat_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDrawElements(mode, count, gltype, indices);
+}
+
+void gl3_2compat_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDrawArrays(mode, first, count);
+}
+
+void gl3_2compat_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
+}
+
+void gl3_2compat_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, gltype, pixels);
+}
+
+void gl3_2compat_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexImage3D(target, level, internalFormat, width, height, depth, border, format, gltype, pixels);
+}
+
+void gl3_2compat_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDrawRangeElements(mode, start, end, count, gltype, indices);
+}
+
+void gl3_2compat_glBlendEquation(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBlendEquation(mode);
+}
+
+void gl3_2compat_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBlendColor(red, green, blue, alpha);
+}
+
+void gl3_2compat_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetCompressedTexImage(target, level, img);
+}
+
+void gl3_2compat_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data);
+}
+
+void gl3_2compat_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
+}
+
+void gl3_2compat_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
+}
+
+void gl3_2compat_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage1D(target, level, internalFormat, width, border, imageSize, data);
+}
+
+void gl3_2compat_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data);
+}
+
+void gl3_2compat_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCompressedTexImage3D(target, level, internalFormat, width, height, depth, border, imageSize, data);
+}
+
+void gl3_2compat_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSampleCoverage(value, invert);
+}
+
+void gl3_2compat_glActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glActiveTexture(texture);
+}
+
+void gl3_2compat_glPointParameteriv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPointParameteriv(pname, params);
+}
+
+void gl3_2compat_glPointParameteri(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPointParameteri(pname, param);
+}
+
+void gl3_2compat_glPointParameterfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPointParameterfv(pname, params);
+}
+
+void gl3_2compat_glPointParameterf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPointParameterf(pname, param);
+}
+
+void gl3_2compat_glMultiDrawArrays(void *_glfuncs, GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiDrawArrays(mode, first, count, drawcount);
+}
+
+void gl3_2compat_glBlendFuncSeparate(void *_glfuncs, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
+}
+
+void gl3_2compat_glGetBufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetBufferParameteriv(target, pname, params);
+}
+
+GLboolean gl3_2compat_glUnmapBuffer(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glUnmapBuffer(target);
+}
+
+void gl3_2compat_glGetBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetBufferSubData(target, offset, size, data);
+}
+
+void gl3_2compat_glBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBufferSubData(target, offset, size, data);
+}
+
+void gl3_2compat_glBufferData(void *_glfuncs, GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBufferData(target, size, data, usage);
+}
+
+GLboolean gl3_2compat_glIsBuffer(void *_glfuncs, GLuint buffer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glIsBuffer(buffer);
+}
+
+void gl3_2compat_glGenBuffers(void *_glfuncs, GLsizei n, GLuint* buffers)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGenBuffers(n, buffers);
+}
+
+void gl3_2compat_glDeleteBuffers(void *_glfuncs, GLsizei n, const GLuint* buffers)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDeleteBuffers(n, buffers);
+}
+
+void gl3_2compat_glBindBuffer(void *_glfuncs, GLenum target, GLuint buffer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBindBuffer(target, buffer);
+}
+
+void gl3_2compat_glGetQueryObjectuiv(void *_glfuncs, GLuint id, GLenum pname, GLuint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetQueryObjectuiv(id, pname, params);
+}
+
+void gl3_2compat_glGetQueryObjectiv(void *_glfuncs, GLuint id, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetQueryObjectiv(id, pname, params);
+}
+
+void gl3_2compat_glGetQueryiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetQueryiv(target, pname, params);
+}
+
+void gl3_2compat_glEndQuery(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEndQuery(target);
+}
+
+void gl3_2compat_glBeginQuery(void *_glfuncs, GLenum target, GLuint id)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBeginQuery(target, id);
+}
+
+GLboolean gl3_2compat_glIsQuery(void *_glfuncs, GLuint id)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glIsQuery(id);
+}
+
+void gl3_2compat_glDeleteQueries(void *_glfuncs, GLsizei n, const GLuint* ids)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDeleteQueries(n, ids);
+}
+
+void gl3_2compat_glGenQueries(void *_glfuncs, GLsizei n, GLuint* ids)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGenQueries(n, ids);
+}
+
+void gl3_2compat_glVertexAttribPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLboolean normalized, GLsizei stride, const GLvoid* offset)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribPointer(index, size, gltype, normalized, stride, offset);
+}
+
+void gl3_2compat_glValidateProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glValidateProgram(program);
+}
+
+void gl3_2compat_glUniformMatrix4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniformMatrix4fv(location, count, transpose, value);
+}
+
+void gl3_2compat_glUniformMatrix3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniformMatrix3fv(location, count, transpose, value);
+}
+
+void gl3_2compat_glUniformMatrix2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniformMatrix2fv(location, count, transpose, value);
+}
+
+void gl3_2compat_glUniform4iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform4iv(location, count, value);
+}
+
+void gl3_2compat_glUniform3iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform3iv(location, count, value);
+}
+
+void gl3_2compat_glUniform2iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform2iv(location, count, value);
+}
+
+void gl3_2compat_glUniform1iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform1iv(location, count, value);
+}
+
+void gl3_2compat_glUniform4fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform4fv(location, count, value);
+}
+
+void gl3_2compat_glUniform3fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform3fv(location, count, value);
+}
+
+void gl3_2compat_glUniform2fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform2fv(location, count, value);
+}
+
+void gl3_2compat_glUniform1fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform1fv(location, count, value);
+}
+
+void gl3_2compat_glUniform4i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform4i(location, v0, v1, v2, v3);
+}
+
+void gl3_2compat_glUniform3i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform3i(location, v0, v1, v2);
+}
+
+void gl3_2compat_glUniform2i(void *_glfuncs, GLint location, GLint v0, GLint v1)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform2i(location, v0, v1);
+}
+
+void gl3_2compat_glUniform1i(void *_glfuncs, GLint location, GLint v0)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform1i(location, v0);
+}
+
+void gl3_2compat_glUniform4f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform4f(location, v0, v1, v2, v3);
+}
+
+void gl3_2compat_glUniform3f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform3f(location, v0, v1, v2);
+}
+
+void gl3_2compat_glUniform2f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform2f(location, v0, v1);
+}
+
+void gl3_2compat_glUniform1f(void *_glfuncs, GLint location, GLfloat v0)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform1f(location, v0);
+}
+
+void gl3_2compat_glUseProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUseProgram(program);
+}
+
+void gl3_2compat_glShaderSource(void *_glfuncs, GLuint shader, GLsizei count, const GLchar** source, const GLint* length)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glShaderSource(shader, count, source, length);
+}
+
+void gl3_2compat_glLinkProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLinkProgram(program);
+}
+
+GLboolean gl3_2compat_glIsShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glIsShader(shader);
+}
+
+GLboolean gl3_2compat_glIsProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glIsProgram(program);
+}
+
+void gl3_2compat_glGetVertexAttribiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribiv(index, pname, params);
+}
+
+void gl3_2compat_glGetVertexAttribfv(void *_glfuncs, GLuint index, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribfv(index, pname, params);
+}
+
+void gl3_2compat_glGetVertexAttribdv(void *_glfuncs, GLuint index, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribdv(index, pname, params);
+}
+
+void gl3_2compat_glGetUniformiv(void *_glfuncs, GLuint program, GLint location, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetUniformiv(program, location, params);
+}
+
+void gl3_2compat_glGetUniformfv(void *_glfuncs, GLuint program, GLint location, GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetUniformfv(program, location, params);
+}
+
+GLint gl3_2compat_glGetUniformLocation(void *_glfuncs, GLuint program, const GLchar* name)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glGetUniformLocation(program, name);
+}
+
+void gl3_2compat_glGetShaderSource(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* source)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetShaderSource(shader, bufSize, length, source);
+}
+
+void gl3_2compat_glGetShaderInfoLog(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetShaderInfoLog(shader, bufSize, length, infoLog);
+}
+
+void gl3_2compat_glGetShaderiv(void *_glfuncs, GLuint shader, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetShaderiv(shader, pname, params);
+}
+
+void gl3_2compat_glGetProgramInfoLog(void *_glfuncs, GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetProgramInfoLog(program, bufSize, length, infoLog);
+}
+
+void gl3_2compat_glGetProgramiv(void *_glfuncs, GLuint program, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetProgramiv(program, pname, params);
+}
+
+GLint gl3_2compat_glGetAttribLocation(void *_glfuncs, GLuint program, const GLchar* name)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glGetAttribLocation(program, name);
+}
+
+void gl3_2compat_glGetAttachedShaders(void *_glfuncs, GLuint program, GLsizei maxCount, GLsizei* count, GLuint* obj)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetAttachedShaders(program, maxCount, count, obj);
+}
+
+void gl3_2compat_glGetActiveUniform(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetActiveUniform(program, index, bufSize, length, size, gltype, name);
+}
+
+void gl3_2compat_glGetActiveAttrib(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetActiveAttrib(program, index, bufSize, length, size, gltype, name);
+}
+
+void gl3_2compat_glEnableVertexAttribArray(void *_glfuncs, GLuint index)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEnableVertexAttribArray(index);
+}
+
+void gl3_2compat_glDisableVertexAttribArray(void *_glfuncs, GLuint index)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDisableVertexAttribArray(index);
+}
+
+void gl3_2compat_glDetachShader(void *_glfuncs, GLuint program, GLuint shader)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDetachShader(program, shader);
+}
+
+void gl3_2compat_glDeleteShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDeleteShader(shader);
+}
+
+void gl3_2compat_glDeleteProgram(void *_glfuncs, GLuint program)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDeleteProgram(program);
+}
+
+GLuint gl3_2compat_glCreateShader(void *_glfuncs, GLenum gltype)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glCreateShader(gltype);
+}
+
+GLuint gl3_2compat_glCreateProgram(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glCreateProgram();
+}
+
+void gl3_2compat_glCompileShader(void *_glfuncs, GLuint shader)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCompileShader(shader);
+}
+
+void gl3_2compat_glBindAttribLocation(void *_glfuncs, GLuint program, GLuint index, const GLchar* name)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBindAttribLocation(program, index, name);
+}
+
+void gl3_2compat_glAttachShader(void *_glfuncs, GLuint program, GLuint shader)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glAttachShader(program, shader);
+}
+
+void gl3_2compat_glStencilMaskSeparate(void *_glfuncs, GLenum face, GLuint mask)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glStencilMaskSeparate(face, mask);
+}
+
+void gl3_2compat_glStencilFuncSeparate(void *_glfuncs, GLenum face, GLenum glfunc, GLint ref, GLuint mask)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glStencilFuncSeparate(face, glfunc, ref, mask);
+}
+
+void gl3_2compat_glStencilOpSeparate(void *_glfuncs, GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glStencilOpSeparate(face, sfail, dpfail, dppass);
+}
+
+void gl3_2compat_glDrawBuffers(void *_glfuncs, GLsizei n, const GLenum* bufs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDrawBuffers(n, bufs);
+}
+
+void gl3_2compat_glBlendEquationSeparate(void *_glfuncs, GLenum modeRGB, GLenum modeAlpha)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBlendEquationSeparate(modeRGB, modeAlpha);
+}
+
+void gl3_2compat_glUniformMatrix4x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniformMatrix4x3fv(location, count, transpose, value);
+}
+
+void gl3_2compat_glUniformMatrix3x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniformMatrix3x4fv(location, count, transpose, value);
+}
+
+void gl3_2compat_glUniformMatrix4x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniformMatrix4x2fv(location, count, transpose, value);
+}
+
+void gl3_2compat_glUniformMatrix2x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniformMatrix2x4fv(location, count, transpose, value);
+}
+
+void gl3_2compat_glUniformMatrix3x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniformMatrix3x2fv(location, count, transpose, value);
+}
+
+void gl3_2compat_glUniformMatrix2x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniformMatrix2x3fv(location, count, transpose, value);
+}
+
+GLboolean gl3_2compat_glIsVertexArray(void *_glfuncs, GLuint array)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glIsVertexArray(array);
+}
+
+void gl3_2compat_glGenVertexArrays(void *_glfuncs, GLsizei n, GLuint* arrays)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGenVertexArrays(n, arrays);
+}
+
+void gl3_2compat_glDeleteVertexArrays(void *_glfuncs, GLsizei n, const GLuint* arrays)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDeleteVertexArrays(n, arrays);
+}
+
+void gl3_2compat_glBindVertexArray(void *_glfuncs, GLuint array)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBindVertexArray(array);
+}
+
+void gl3_2compat_glFlushMappedBufferRange(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr length)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFlushMappedBufferRange(target, offset, length);
+}
+
+void gl3_2compat_glFramebufferTextureLayer(void *_glfuncs, GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFramebufferTextureLayer(target, attachment, texture, level, layer);
+}
+
+void gl3_2compat_glRenderbufferStorageMultisample(void *_glfuncs, GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRenderbufferStorageMultisample(target, samples, internalFormat, width, height);
+}
+
+void gl3_2compat_glBlitFramebuffer(void *_glfuncs, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
+}
+
+void gl3_2compat_glGenerateMipmap(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGenerateMipmap(target);
+}
+
+void gl3_2compat_glGetFramebufferAttachmentParameteriv(void *_glfuncs, GLenum target, GLenum attachment, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetFramebufferAttachmentParameteriv(target, attachment, pname, params);
+}
+
+void gl3_2compat_glFramebufferRenderbuffer(void *_glfuncs, GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
+}
+
+void gl3_2compat_glFramebufferTexture3D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFramebufferTexture3D(target, attachment, textarget, texture, level, zoffset);
+}
+
+void gl3_2compat_glFramebufferTexture2D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFramebufferTexture2D(target, attachment, textarget, texture, level);
+}
+
+void gl3_2compat_glFramebufferTexture1D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFramebufferTexture1D(target, attachment, textarget, texture, level);
+}
+
+GLenum gl3_2compat_glCheckFramebufferStatus(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glCheckFramebufferStatus(target);
+}
+
+void gl3_2compat_glGenFramebuffers(void *_glfuncs, GLsizei n, GLuint* framebuffers)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGenFramebuffers(n, framebuffers);
+}
+
+void gl3_2compat_glDeleteFramebuffers(void *_glfuncs, GLsizei n, const GLuint* framebuffers)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDeleteFramebuffers(n, framebuffers);
+}
+
+void gl3_2compat_glBindFramebuffer(void *_glfuncs, GLenum target, GLuint framebuffer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBindFramebuffer(target, framebuffer);
+}
+
+GLboolean gl3_2compat_glIsFramebuffer(void *_glfuncs, GLuint framebuffer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glIsFramebuffer(framebuffer);
+}
+
+void gl3_2compat_glGetRenderbufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetRenderbufferParameteriv(target, pname, params);
+}
+
+void gl3_2compat_glRenderbufferStorage(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRenderbufferStorage(target, internalFormat, width, height);
+}
+
+void gl3_2compat_glGenRenderbuffers(void *_glfuncs, GLsizei n, GLuint* renderbuffers)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGenRenderbuffers(n, renderbuffers);
+}
+
+void gl3_2compat_glDeleteRenderbuffers(void *_glfuncs, GLsizei n, const GLuint* renderbuffers)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDeleteRenderbuffers(n, renderbuffers);
+}
+
+void gl3_2compat_glBindRenderbuffer(void *_glfuncs, GLenum target, GLuint renderbuffer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBindRenderbuffer(target, renderbuffer);
+}
+
+GLboolean gl3_2compat_glIsRenderbuffer(void *_glfuncs, GLuint renderbuffer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glIsRenderbuffer(renderbuffer);
+}
+
+void gl3_2compat_glClearBufferfi(void *_glfuncs, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glClearBufferfi(buffer, drawbuffer, depth, stencil);
+}
+
+void gl3_2compat_glClearBufferfv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLfloat* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glClearBufferfv(buffer, drawbuffer, value);
+}
+
+void gl3_2compat_glClearBufferuiv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLuint* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glClearBufferuiv(buffer, drawbuffer, value);
+}
+
+void gl3_2compat_glClearBufferiv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLint* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glClearBufferiv(buffer, drawbuffer, value);
+}
+
+void gl3_2compat_glGetTexParameterIuiv(void *_glfuncs, GLenum target, GLenum pname, GLuint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetTexParameterIuiv(target, pname, params);
+}
+
+void gl3_2compat_glGetTexParameterIiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetTexParameterIiv(target, pname, params);
+}
+
+void gl3_2compat_glTexParameterIuiv(void *_glfuncs, GLenum target, GLenum pname, const GLuint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexParameterIuiv(target, pname, params);
+}
+
+void gl3_2compat_glTexParameterIiv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexParameterIiv(target, pname, params);
+}
+
+void gl3_2compat_glUniform4uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform4uiv(location, count, value);
+}
+
+void gl3_2compat_glUniform3uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform3uiv(location, count, value);
+}
+
+void gl3_2compat_glUniform2uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform2uiv(location, count, value);
+}
+
+void gl3_2compat_glUniform1uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform1uiv(location, count, value);
+}
+
+void gl3_2compat_glUniform4ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform4ui(location, v0, v1, v2, v3);
+}
+
+void gl3_2compat_glUniform3ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1, GLuint v2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform3ui(location, v0, v1, v2);
+}
+
+void gl3_2compat_glUniform2ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform2ui(location, v0, v1);
+}
+
+void gl3_2compat_glUniform1ui(void *_glfuncs, GLint location, GLuint v0)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniform1ui(location, v0);
+}
+
+GLint gl3_2compat_glGetFragDataLocation(void *_glfuncs, GLuint program, const GLchar* name)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glGetFragDataLocation(program, name);
+}
+
+void gl3_2compat_glBindFragDataLocation(void *_glfuncs, GLuint program, GLuint color, const GLchar* name)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBindFragDataLocation(program, color, name);
+}
+
+void gl3_2compat_glGetUniformuiv(void *_glfuncs, GLuint program, GLint location, GLuint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetUniformuiv(program, location, params);
+}
+
+void gl3_2compat_glGetVertexAttribIuiv(void *_glfuncs, GLuint index, GLenum pname, GLuint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribIuiv(index, pname, params);
+}
+
+void gl3_2compat_glGetVertexAttribIiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetVertexAttribIiv(index, pname, params);
+}
+
+void gl3_2compat_glVertexAttribIPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribIPointer(index, size, gltype, stride, pointer);
+}
+
+void gl3_2compat_glEndConditionalRender(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEndConditionalRender();
+}
+
+void gl3_2compat_glBeginConditionalRender(void *_glfuncs, GLuint id, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBeginConditionalRender(id, mode);
+}
+
+void gl3_2compat_glClampColor(void *_glfuncs, GLenum target, GLenum clamp)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glClampColor(target, clamp);
+}
+
+void gl3_2compat_glGetTransformFeedbackVarying(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* gltype, GLchar* name)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetTransformFeedbackVarying(program, index, bufSize, length, size, gltype, name);
+}
+
+void gl3_2compat_glBindBufferBase(void *_glfuncs, GLenum target, GLuint index, GLuint buffer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBindBufferBase(target, index, buffer);
+}
+
+void gl3_2compat_glBindBufferRange(void *_glfuncs, GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBindBufferRange(target, index, buffer, offset, size);
+}
+
+void gl3_2compat_glEndTransformFeedback(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEndTransformFeedback();
+}
+
+void gl3_2compat_glBeginTransformFeedback(void *_glfuncs, GLenum primitiveMode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBeginTransformFeedback(primitiveMode);
+}
+
+GLboolean gl3_2compat_glIsEnabledi(void *_glfuncs, GLenum target, GLuint index)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glIsEnabledi(target, index);
+}
+
+void gl3_2compat_glDisablei(void *_glfuncs, GLenum target, GLuint index)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDisablei(target, index);
+}
+
+void gl3_2compat_glEnablei(void *_glfuncs, GLenum target, GLuint index)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEnablei(target, index);
+}
+
+void gl3_2compat_glGetIntegeri_v(void *_glfuncs, GLenum target, GLuint index, GLint* data)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetIntegeri_v(target, index, data);
+}
+
+void gl3_2compat_glGetBooleani_v(void *_glfuncs, GLenum target, GLuint index, GLboolean* data)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetBooleani_v(target, index, data);
+}
+
+void gl3_2compat_glColorMaski(void *_glfuncs, GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColorMaski(index, r, g, b, a);
+}
+
+void gl3_2compat_glCopyBufferSubData(void *_glfuncs, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size);
+}
+
+void gl3_2compat_glUniformBlockBinding(void *_glfuncs, GLuint program, GLuint v0, GLuint v1)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glUniformBlockBinding(program, v0, v1);
+}
+
+void gl3_2compat_glGetActiveUniformBlockName(void *_glfuncs, GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformBlockName)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetActiveUniformBlockName(program, uniformBlockIndex, bufSize, length, uniformBlockName);
+}
+
+void gl3_2compat_glGetActiveUniformBlockiv(void *_glfuncs, GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetActiveUniformBlockiv(program, uniformBlockIndex, pname, params);
+}
+
+GLuint gl3_2compat_glGetUniformBlockIndex(void *_glfuncs, GLuint program, const GLchar* uniformBlockName)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glGetUniformBlockIndex(program, uniformBlockName);
+}
+
+void gl3_2compat_glGetActiveUniformName(void *_glfuncs, GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformName)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetActiveUniformName(program, uniformIndex, bufSize, length, uniformName);
+}
+
+void gl3_2compat_glGetActiveUniformsiv(void *_glfuncs, GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetActiveUniformsiv(program, uniformCount, uniformIndices, pname, params);
+}
+
+void gl3_2compat_glPrimitiveRestartIndex(void *_glfuncs, GLuint index)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPrimitiveRestartIndex(index);
+}
+
+void gl3_2compat_glTexBuffer(void *_glfuncs, GLenum target, GLenum internalFormat, GLuint buffer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexBuffer(target, internalFormat, buffer);
+}
+
+void gl3_2compat_glDrawElementsInstanced(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices, GLsizei instancecount)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDrawElementsInstanced(mode, count, gltype, indices, instancecount);
+}
+
+void gl3_2compat_glDrawArraysInstanced(void *_glfuncs, GLenum mode, GLint first, GLsizei count, GLsizei instancecount)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDrawArraysInstanced(mode, first, count, instancecount);
+}
+
+void gl3_2compat_glSampleMaski(void *_glfuncs, GLuint index, GLbitfield mask)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSampleMaski(index, mask);
+}
+
+void gl3_2compat_glGetMultisamplefv(void *_glfuncs, GLenum pname, GLuint index, GLfloat* val)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetMultisamplefv(pname, index, val);
+}
+
+void gl3_2compat_glTexImage3DMultisample(void *_glfuncs, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexImage3DMultisample(target, samples, internalFormat, width, height, depth, fixedsamplelocations);
+}
+
+void gl3_2compat_glTexImage2DMultisample(void *_glfuncs, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexImage2DMultisample(target, samples, internalFormat, width, height, fixedsamplelocations);
+}
+
+void gl3_2compat_glGetSynciv(void *_glfuncs, GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length, GLint* values)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetSynciv(sync, pname, bufSize, length, values);
+}
+
+void gl3_2compat_glGetInteger64v(void *_glfuncs, GLenum pname, GLint64* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetInteger64v(pname, params);
+}
+
+void gl3_2compat_glWaitSync(void *_glfuncs, GLsync sync, GLbitfield flags, GLuint64 timeout)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWaitSync(sync, flags, timeout);
+}
+
+GLenum gl3_2compat_glClientWaitSync(void *_glfuncs, GLsync sync, GLbitfield flags, GLuint64 timeout)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glClientWaitSync(sync, flags, timeout);
+}
+
+void gl3_2compat_glDeleteSync(void *_glfuncs, GLsync sync)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDeleteSync(sync);
+}
+
+GLboolean gl3_2compat_glIsSync(void *_glfuncs, GLsync sync)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glIsSync(sync);
+}
+
+GLsync gl3_2compat_glFenceSync(void *_glfuncs, GLenum condition, GLbitfield flags)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glFenceSync(condition, flags);
+}
+
+void gl3_2compat_glProvokingVertex(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glProvokingVertex(mode);
+}
+
+void gl3_2compat_glDrawElementsInstancedBaseVertex(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices, GLsizei instancecount, GLint basevertex)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDrawElementsInstancedBaseVertex(mode, count, gltype, indices, instancecount, basevertex);
+}
+
+void gl3_2compat_glDrawRangeElementsBaseVertex(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices, GLint basevertex)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDrawRangeElementsBaseVertex(mode, start, end, count, gltype, indices, basevertex);
+}
+
+void gl3_2compat_glDrawElementsBaseVertex(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices, GLint basevertex)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDrawElementsBaseVertex(mode, count, gltype, indices, basevertex);
+}
+
+void gl3_2compat_glFramebufferTexture(void *_glfuncs, GLenum target, GLenum attachment, GLuint texture, GLint level)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFramebufferTexture(target, attachment, texture, level);
+}
+
+void gl3_2compat_glGetBufferParameteri64v(void *_glfuncs, GLenum target, GLenum pname, GLint64* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetBufferParameteri64v(target, pname, params);
+}
+
+void gl3_2compat_glGetInteger64i_v(void *_glfuncs, GLenum target, GLuint index, GLint64* data)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetInteger64i_v(target, index, data);
+}
+
+void gl3_2compat_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTranslatef(x, y, z);
+}
+
+void gl3_2compat_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTranslated(x, y, z);
+}
+
+void gl3_2compat_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glScalef(x, y, z);
+}
+
+void gl3_2compat_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glScaled(x, y, z);
+}
+
+void gl3_2compat_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRotatef(angle, x, y, z);
+}
+
+void gl3_2compat_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRotated(angle, x, y, z);
+}
+
+void gl3_2compat_glPushMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPushMatrix();
+}
+
+void gl3_2compat_glPopMatrix(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPopMatrix();
+}
+
+void gl3_2compat_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glOrtho(left, right, bottom, top, zNear, zFar);
+}
+
+void gl3_2compat_glMultMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultMatrixd(m);
+}
+
+void gl3_2compat_glMultMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultMatrixf(m);
+}
+
+void gl3_2compat_glMatrixMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMatrixMode(mode);
+}
+
+void gl3_2compat_glLoadMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLoadMatrixd(m);
+}
+
+void gl3_2compat_glLoadMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLoadMatrixf(m);
+}
+
+void gl3_2compat_glLoadIdentity(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLoadIdentity();
+}
+
+void gl3_2compat_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFrustum(left, right, bottom, top, zNear, zFar);
+}
+
+GLboolean gl3_2compat_glIsList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glIsList(list);
+}
+
+void gl3_2compat_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetTexGeniv(coord, pname, params);
+}
+
+void gl3_2compat_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetTexGenfv(coord, pname, params);
+}
+
+void gl3_2compat_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetTexGendv(coord, pname, params);
+}
+
+void gl3_2compat_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetTexEnviv(target, pname, params);
+}
+
+void gl3_2compat_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetTexEnvfv(target, pname, params);
+}
+
+void gl3_2compat_glGetPolygonStipple(void *_glfuncs, GLubyte* mask)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetPolygonStipple(mask);
+}
+
+void gl3_2compat_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetPixelMapusv(glmap, values);
+}
+
+void gl3_2compat_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetPixelMapuiv(glmap, values);
+}
+
+void gl3_2compat_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetPixelMapfv(glmap, values);
+}
+
+void gl3_2compat_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetMaterialiv(face, pname, params);
+}
+
+void gl3_2compat_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetMaterialfv(face, pname, params);
+}
+
+void gl3_2compat_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetMapiv(target, query, v);
+}
+
+void gl3_2compat_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetMapfv(target, query, v);
+}
+
+void gl3_2compat_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetMapdv(target, query, v);
+}
+
+void gl3_2compat_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetLightiv(light, pname, params);
+}
+
+void gl3_2compat_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetLightfv(light, pname, params);
+}
+
+void gl3_2compat_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetClipPlane(plane, equation);
+}
+
+void gl3_2compat_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDrawPixels(width, height, format, gltype, pixels);
+}
+
+void gl3_2compat_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCopyPixels(x, y, width, height, gltype);
+}
+
+void gl3_2compat_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPixelMapusv(glmap, mapsize, values);
+}
+
+void gl3_2compat_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPixelMapuiv(glmap, mapsize, values);
+}
+
+void gl3_2compat_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPixelMapfv(glmap, mapsize, values);
+}
+
+void gl3_2compat_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPixelTransferi(pname, param);
+}
+
+void gl3_2compat_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPixelTransferf(pname, param);
+}
+
+void gl3_2compat_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPixelZoom(xfactor, yfactor);
+}
+
+void gl3_2compat_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glAlphaFunc(glfunc, ref);
+}
+
+void gl3_2compat_glEvalPoint2(void *_glfuncs, GLint i, GLint j)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEvalPoint2(i, j);
+}
+
+void gl3_2compat_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEvalMesh2(mode, i1, i2, j1, j2);
+}
+
+void gl3_2compat_glEvalPoint1(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEvalPoint1(i);
+}
+
+void gl3_2compat_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEvalMesh1(mode, i1, i2);
+}
+
+void gl3_2compat_glEvalCoord2fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEvalCoord2fv(u);
+}
+
+void gl3_2compat_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEvalCoord2f(u, v);
+}
+
+void gl3_2compat_glEvalCoord2dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEvalCoord2dv(u);
+}
+
+void gl3_2compat_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEvalCoord2d(u, v);
+}
+
+void gl3_2compat_glEvalCoord1fv(void *_glfuncs, const GLfloat* u)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEvalCoord1fv(u);
+}
+
+void gl3_2compat_glEvalCoord1f(void *_glfuncs, GLfloat u)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEvalCoord1f(u);
+}
+
+void gl3_2compat_glEvalCoord1dv(void *_glfuncs, const GLdouble* u)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEvalCoord1dv(u);
+}
+
+void gl3_2compat_glEvalCoord1d(void *_glfuncs, GLdouble u)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEvalCoord1d(u);
+}
+
+void gl3_2compat_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMapGrid2f(un, u1, u2, vn, v1, v2);
+}
+
+void gl3_2compat_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMapGrid2d(un, u1, u2, vn, v1, v2);
+}
+
+void gl3_2compat_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMapGrid1f(un, u1, u2);
+}
+
+void gl3_2compat_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMapGrid1d(un, u1, u2);
+}
+
+void gl3_2compat_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl3_2compat_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
+}
+
+void gl3_2compat_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMap1f(target, u1, u2, stride, order, points);
+}
+
+void gl3_2compat_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMap1d(target, u1, u2, stride, order, points);
+}
+
+void gl3_2compat_glPushAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPushAttrib(mask);
+}
+
+void gl3_2compat_glPopAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPopAttrib();
+}
+
+void gl3_2compat_glAccum(void *_glfuncs, GLenum op, GLfloat value)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glAccum(op, value);
+}
+
+void gl3_2compat_glIndexMask(void *_glfuncs, GLuint mask)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glIndexMask(mask);
+}
+
+void gl3_2compat_glClearIndex(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glClearIndex(c);
+}
+
+void gl3_2compat_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glClearAccum(red, green, blue, alpha);
+}
+
+void gl3_2compat_glPushName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPushName(name);
+}
+
+void gl3_2compat_glPopName(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPopName();
+}
+
+void gl3_2compat_glPassThrough(void *_glfuncs, GLfloat token)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPassThrough(token);
+}
+
+void gl3_2compat_glLoadName(void *_glfuncs, GLuint name)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLoadName(name);
+}
+
+void gl3_2compat_glInitNames(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glInitNames();
+}
+
+GLint gl3_2compat_glRenderMode(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glRenderMode(mode);
+}
+
+void gl3_2compat_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSelectBuffer(size, buffer);
+}
+
+void gl3_2compat_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFeedbackBuffer(size, gltype, buffer);
+}
+
+void gl3_2compat_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexGeniv(coord, pname, params);
+}
+
+void gl3_2compat_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexGeni(coord, pname, param);
+}
+
+void gl3_2compat_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexGenfv(coord, pname, params);
+}
+
+void gl3_2compat_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexGenf(coord, pname, param);
+}
+
+void gl3_2compat_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexGendv(coord, pname, params);
+}
+
+void gl3_2compat_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexGend(coord, pname, param);
+}
+
+void gl3_2compat_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexEnviv(target, pname, params);
+}
+
+void gl3_2compat_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexEnvi(target, pname, param);
+}
+
+void gl3_2compat_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexEnvfv(target, pname, params);
+}
+
+void gl3_2compat_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexEnvf(target, pname, param);
+}
+
+void gl3_2compat_glShadeModel(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glShadeModel(mode);
+}
+
+void gl3_2compat_glPolygonStipple(void *_glfuncs, const GLubyte* mask)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPolygonStipple(mask);
+}
+
+void gl3_2compat_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMaterialiv(face, pname, params);
+}
+
+void gl3_2compat_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMateriali(face, pname, param);
+}
+
+void gl3_2compat_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMaterialfv(face, pname, params);
+}
+
+void gl3_2compat_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMaterialf(face, pname, param);
+}
+
+void gl3_2compat_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLineStipple(factor, pattern);
+}
+
+void gl3_2compat_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLightModeliv(pname, params);
+}
+
+void gl3_2compat_glLightModeli(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLightModeli(pname, param);
+}
+
+void gl3_2compat_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLightModelfv(pname, params);
+}
+
+void gl3_2compat_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLightModelf(pname, param);
+}
+
+void gl3_2compat_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLightiv(light, pname, params);
+}
+
+void gl3_2compat_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLighti(light, pname, param);
+}
+
+void gl3_2compat_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLightfv(light, pname, params);
+}
+
+void gl3_2compat_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLightf(light, pname, param);
+}
+
+void gl3_2compat_glFogiv(void *_glfuncs, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFogiv(pname, params);
+}
+
+void gl3_2compat_glFogi(void *_glfuncs, GLenum pname, GLint param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFogi(pname, param);
+}
+
+void gl3_2compat_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFogfv(pname, params);
+}
+
+void gl3_2compat_glFogf(void *_glfuncs, GLenum pname, GLfloat param)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFogf(pname, param);
+}
+
+void gl3_2compat_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColorMaterial(face, mode);
+}
+
+void gl3_2compat_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glClipPlane(plane, equation);
+}
+
+void gl3_2compat_glVertex4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex4sv(v);
+}
+
+void gl3_2compat_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex4s(x, y, z, w);
+}
+
+void gl3_2compat_glVertex4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex4iv(v);
+}
+
+void gl3_2compat_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex4i(x, y, z, w);
+}
+
+void gl3_2compat_glVertex4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex4fv(v);
+}
+
+void gl3_2compat_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex4f(x, y, z, w);
+}
+
+void gl3_2compat_glVertex4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex4dv(v);
+}
+
+void gl3_2compat_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex4d(x, y, z, w);
+}
+
+void gl3_2compat_glVertex3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex3sv(v);
+}
+
+void gl3_2compat_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex3s(x, y, z);
+}
+
+void gl3_2compat_glVertex3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex3iv(v);
+}
+
+void gl3_2compat_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex3i(x, y, z);
+}
+
+void gl3_2compat_glVertex3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex3fv(v);
+}
+
+void gl3_2compat_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex3f(x, y, z);
+}
+
+void gl3_2compat_glVertex3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex3dv(v);
+}
+
+void gl3_2compat_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex3d(x, y, z);
+}
+
+void gl3_2compat_glVertex2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex2sv(v);
+}
+
+void gl3_2compat_glVertex2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex2s(x, y);
+}
+
+void gl3_2compat_glVertex2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex2iv(v);
+}
+
+void gl3_2compat_glVertex2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex2i(x, y);
+}
+
+void gl3_2compat_glVertex2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex2fv(v);
+}
+
+void gl3_2compat_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex2f(x, y);
+}
+
+void gl3_2compat_glVertex2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex2dv(v);
+}
+
+void gl3_2compat_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertex2d(x, y);
+}
+
+void gl3_2compat_glTexCoord4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord4sv(v);
+}
+
+void gl3_2compat_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord4s(s, t, r, q);
+}
+
+void gl3_2compat_glTexCoord4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord4iv(v);
+}
+
+void gl3_2compat_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord4i(s, t, r, q);
+}
+
+void gl3_2compat_glTexCoord4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord4fv(v);
+}
+
+void gl3_2compat_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord4f(s, t, r, q);
+}
+
+void gl3_2compat_glTexCoord4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord4dv(v);
+}
+
+void gl3_2compat_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord4d(s, t, r, q);
+}
+
+void gl3_2compat_glTexCoord3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord3sv(v);
+}
+
+void gl3_2compat_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord3s(s, t, r);
+}
+
+void gl3_2compat_glTexCoord3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord3iv(v);
+}
+
+void gl3_2compat_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord3i(s, t, r);
+}
+
+void gl3_2compat_glTexCoord3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord3fv(v);
+}
+
+void gl3_2compat_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord3f(s, t, r);
+}
+
+void gl3_2compat_glTexCoord3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord3dv(v);
+}
+
+void gl3_2compat_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord3d(s, t, r);
+}
+
+void gl3_2compat_glTexCoord2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord2sv(v);
+}
+
+void gl3_2compat_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord2s(s, t);
+}
+
+void gl3_2compat_glTexCoord2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord2iv(v);
+}
+
+void gl3_2compat_glTexCoord2i(void *_glfuncs, GLint s, GLint t)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord2i(s, t);
+}
+
+void gl3_2compat_glTexCoord2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord2fv(v);
+}
+
+void gl3_2compat_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord2f(s, t);
+}
+
+void gl3_2compat_glTexCoord2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord2dv(v);
+}
+
+void gl3_2compat_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord2d(s, t);
+}
+
+void gl3_2compat_glTexCoord1sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord1sv(v);
+}
+
+void gl3_2compat_glTexCoord1s(void *_glfuncs, GLshort s)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord1s(s);
+}
+
+void gl3_2compat_glTexCoord1iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord1iv(v);
+}
+
+void gl3_2compat_glTexCoord1i(void *_glfuncs, GLint s)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord1i(s);
+}
+
+void gl3_2compat_glTexCoord1fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord1fv(v);
+}
+
+void gl3_2compat_glTexCoord1f(void *_glfuncs, GLfloat s)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord1f(s);
+}
+
+void gl3_2compat_glTexCoord1dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord1dv(v);
+}
+
+void gl3_2compat_glTexCoord1d(void *_glfuncs, GLdouble s)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoord1d(s);
+}
+
+void gl3_2compat_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRectsv(v1, v2);
+}
+
+void gl3_2compat_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRects(x1, y1, x2, y2);
+}
+
+void gl3_2compat_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRectiv(v1, v2);
+}
+
+void gl3_2compat_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRecti(x1, y1, x2, y2);
+}
+
+void gl3_2compat_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRectfv(v1, v2);
+}
+
+void gl3_2compat_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRectf(x1, y1, x2, y2);
+}
+
+void gl3_2compat_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRectdv(v1, v2);
+}
+
+void gl3_2compat_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRectd(x1, y1, x2, y2);
+}
+
+void gl3_2compat_glRasterPos4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos4sv(v);
+}
+
+void gl3_2compat_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos4s(x, y, z, w);
+}
+
+void gl3_2compat_glRasterPos4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos4iv(v);
+}
+
+void gl3_2compat_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos4i(x, y, z, w);
+}
+
+void gl3_2compat_glRasterPos4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos4fv(v);
+}
+
+void gl3_2compat_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos4f(x, y, z, w);
+}
+
+void gl3_2compat_glRasterPos4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos4dv(v);
+}
+
+void gl3_2compat_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos4d(x, y, z, w);
+}
+
+void gl3_2compat_glRasterPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos3sv(v);
+}
+
+void gl3_2compat_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos3s(x, y, z);
+}
+
+void gl3_2compat_glRasterPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos3iv(v);
+}
+
+void gl3_2compat_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos3i(x, y, z);
+}
+
+void gl3_2compat_glRasterPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos3fv(v);
+}
+
+void gl3_2compat_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos3f(x, y, z);
+}
+
+void gl3_2compat_glRasterPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos3dv(v);
+}
+
+void gl3_2compat_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos3d(x, y, z);
+}
+
+void gl3_2compat_glRasterPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos2sv(v);
+}
+
+void gl3_2compat_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos2s(x, y);
+}
+
+void gl3_2compat_glRasterPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos2iv(v);
+}
+
+void gl3_2compat_glRasterPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos2i(x, y);
+}
+
+void gl3_2compat_glRasterPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos2fv(v);
+}
+
+void gl3_2compat_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos2f(x, y);
+}
+
+void gl3_2compat_glRasterPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos2dv(v);
+}
+
+void gl3_2compat_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glRasterPos2d(x, y);
+}
+
+void gl3_2compat_glNormal3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glNormal3sv(v);
+}
+
+void gl3_2compat_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glNormal3s(nx, ny, nz);
+}
+
+void gl3_2compat_glNormal3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glNormal3iv(v);
+}
+
+void gl3_2compat_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glNormal3i(nx, ny, nz);
+}
+
+void gl3_2compat_glNormal3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glNormal3fv(v);
+}
+
+void gl3_2compat_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glNormal3f(nx, ny, nz);
+}
+
+void gl3_2compat_glNormal3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glNormal3dv(v);
+}
+
+void gl3_2compat_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glNormal3d(nx, ny, nz);
+}
+
+void gl3_2compat_glNormal3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glNormal3bv(v);
+}
+
+void gl3_2compat_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glNormal3b(nx, ny, nz);
+}
+
+void gl3_2compat_glIndexsv(void *_glfuncs, const GLshort* c)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glIndexsv(c);
+}
+
+void gl3_2compat_glIndexs(void *_glfuncs, GLshort c)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glIndexs(c);
+}
+
+void gl3_2compat_glIndexiv(void *_glfuncs, const GLint* c)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glIndexiv(c);
+}
+
+void gl3_2compat_glIndexi(void *_glfuncs, GLint c)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glIndexi(c);
+}
+
+void gl3_2compat_glIndexfv(void *_glfuncs, const GLfloat* c)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glIndexfv(c);
+}
+
+void gl3_2compat_glIndexf(void *_glfuncs, GLfloat c)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glIndexf(c);
+}
+
+void gl3_2compat_glIndexdv(void *_glfuncs, const GLdouble* c)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glIndexdv(c);
+}
+
+void gl3_2compat_glIndexd(void *_glfuncs, GLdouble c)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glIndexd(c);
+}
+
+void gl3_2compat_glEnd(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEnd();
+}
+
+void gl3_2compat_glEdgeFlagv(void *_glfuncs, const GLboolean* flag)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEdgeFlagv(flag);
+}
+
+void gl3_2compat_glEdgeFlag(void *_glfuncs, GLboolean flag)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEdgeFlag(flag);
+}
+
+void gl3_2compat_glColor4usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4usv(v);
+}
+
+void gl3_2compat_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4us(red, green, blue, alpha);
+}
+
+void gl3_2compat_glColor4uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4uiv(v);
+}
+
+void gl3_2compat_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4ui(red, green, blue, alpha);
+}
+
+void gl3_2compat_glColor4ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4ubv(v);
+}
+
+void gl3_2compat_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4ub(red, green, blue, alpha);
+}
+
+void gl3_2compat_glColor4sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4sv(v);
+}
+
+void gl3_2compat_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4s(red, green, blue, alpha);
+}
+
+void gl3_2compat_glColor4iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4iv(v);
+}
+
+void gl3_2compat_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4i(red, green, blue, alpha);
+}
+
+void gl3_2compat_glColor4fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4fv(v);
+}
+
+void gl3_2compat_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4f(red, green, blue, alpha);
+}
+
+void gl3_2compat_glColor4dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4dv(v);
+}
+
+void gl3_2compat_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4d(red, green, blue, alpha);
+}
+
+void gl3_2compat_glColor4bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4bv(v);
+}
+
+void gl3_2compat_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor4b(red, green, blue, alpha);
+}
+
+void gl3_2compat_glColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3usv(v);
+}
+
+void gl3_2compat_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3us(red, green, blue);
+}
+
+void gl3_2compat_glColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3uiv(v);
+}
+
+void gl3_2compat_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3ui(red, green, blue);
+}
+
+void gl3_2compat_glColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3ubv(v);
+}
+
+void gl3_2compat_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3ub(red, green, blue);
+}
+
+void gl3_2compat_glColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3sv(v);
+}
+
+void gl3_2compat_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3s(red, green, blue);
+}
+
+void gl3_2compat_glColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3iv(v);
+}
+
+void gl3_2compat_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3i(red, green, blue);
+}
+
+void gl3_2compat_glColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3fv(v);
+}
+
+void gl3_2compat_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3f(red, green, blue);
+}
+
+void gl3_2compat_glColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3dv(v);
+}
+
+void gl3_2compat_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3d(red, green, blue);
+}
+
+void gl3_2compat_glColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3bv(v);
+}
+
+void gl3_2compat_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColor3b(red, green, blue);
+}
+
+void gl3_2compat_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
+}
+
+void gl3_2compat_glBegin(void *_glfuncs, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glBegin(mode);
+}
+
+void gl3_2compat_glListBase(void *_glfuncs, GLuint base)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glListBase(base);
+}
+
+GLuint gl3_2compat_glGenLists(void *_glfuncs, GLsizei range_)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glGenLists(range_);
+}
+
+void gl3_2compat_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDeleteLists(list, range_);
+}
+
+void gl3_2compat_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCallLists(n, gltype, lists);
+}
+
+void gl3_2compat_glCallList(void *_glfuncs, GLuint list)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCallList(list);
+}
+
+void gl3_2compat_glEndList(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEndList();
+}
+
+void gl3_2compat_glNewList(void *_glfuncs, GLuint list, GLenum mode)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glNewList(list, mode);
+}
+
+void gl3_2compat_glPushClientAttrib(void *_glfuncs, GLbitfield mask)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPushClientAttrib(mask);
+}
+
+void gl3_2compat_glPopClientAttrib(void *_glfuncs)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPopClientAttrib();
+}
+
+void gl3_2compat_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glPrioritizeTextures(n, textures, priorities);
+}
+
+GLboolean gl3_2compat_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ return _qglfuncs->glAreTexturesResident(n, textures, residences);
+}
+
+void gl3_2compat_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexPointer(size, gltype, stride, pointer);
+}
+
+void gl3_2compat_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glTexCoordPointer(size, gltype, stride, pointer);
+}
+
+void gl3_2compat_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glNormalPointer(gltype, stride, pointer);
+}
+
+void gl3_2compat_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glInterleavedArrays(format, stride, pointer);
+}
+
+void gl3_2compat_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glIndexPointer(gltype, stride, pointer);
+}
+
+void gl3_2compat_glEnableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEnableClientState(array);
+}
+
+void gl3_2compat_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glEdgeFlagPointer(stride, pointer);
+}
+
+void gl3_2compat_glDisableClientState(void *_glfuncs, GLenum array)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glDisableClientState(array);
+}
+
+void gl3_2compat_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColorPointer(size, gltype, stride, pointer);
+}
+
+void gl3_2compat_glArrayElement(void *_glfuncs, GLint i)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glArrayElement(i);
+}
+
+void gl3_2compat_glResetMinmax(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glResetMinmax(target);
+}
+
+void gl3_2compat_glResetHistogram(void *_glfuncs, GLenum target)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glResetHistogram(target);
+}
+
+void gl3_2compat_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMinmax(target, internalFormat, sink);
+}
+
+void gl3_2compat_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glHistogram(target, width, internalFormat, sink);
+}
+
+void gl3_2compat_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameteriv(target, pname, params);
+}
+
+void gl3_2compat_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetMinmaxParameterfv(target, pname, params);
+}
+
+void gl3_2compat_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetMinmax(target, reset, format, gltype, values);
+}
+
+void gl3_2compat_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameteriv(target, pname, params);
+}
+
+void gl3_2compat_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetHistogramParameterfv(target, pname, params);
+}
+
+void gl3_2compat_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetHistogram(target, reset, format, gltype, values);
+}
+
+void gl3_2compat_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSeparableFilter2D(target, internalFormat, width, height, format, gltype, row, column);
+}
+
+void gl3_2compat_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetSeparableFilter(target, format, gltype, row, column, span);
+}
+
+void gl3_2compat_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameteriv(target, pname, params);
+}
+
+void gl3_2compat_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetConvolutionParameterfv(target, pname, params);
+}
+
+void gl3_2compat_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetConvolutionFilter(target, format, gltype, image);
+}
+
+void gl3_2compat_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter2D(target, internalFormat, x, y, width, height);
+}
+
+void gl3_2compat_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCopyConvolutionFilter1D(target, internalFormat, x, y, width);
+}
+
+void gl3_2compat_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteriv(target, pname, params);
+}
+
+void gl3_2compat_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glConvolutionParameteri(target, pname, params);
+}
+
+void gl3_2compat_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterfv(target, pname, params);
+}
+
+void gl3_2compat_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glConvolutionParameterf(target, pname, params);
+}
+
+void gl3_2compat_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter2D(target, internalFormat, width, height, format, gltype, image);
+}
+
+void gl3_2compat_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glConvolutionFilter1D(target, internalFormat, width, format, gltype, image);
+}
+
+void gl3_2compat_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCopyColorSubTable(target, start, x, y, width);
+}
+
+void gl3_2compat_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColorSubTable(target, start, count, format, gltype, data);
+}
+
+void gl3_2compat_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameteriv(target, pname, params);
+}
+
+void gl3_2compat_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetColorTableParameterfv(target, pname, params);
+}
+
+void gl3_2compat_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glGetColorTable(target, format, gltype, table);
+}
+
+void gl3_2compat_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glCopyColorTable(target, internalFormat, x, y, width);
+}
+
+void gl3_2compat_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColorTableParameteriv(target, pname, params);
+}
+
+void gl3_2compat_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColorTableParameterfv(target, pname, params);
+}
+
+void gl3_2compat_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glColorTable(target, internalFormat, width, format, gltype, table);
+}
+
+void gl3_2compat_glMultTransposeMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultTransposeMatrixd(m);
+}
+
+void gl3_2compat_glMultTransposeMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultTransposeMatrixf(m);
+}
+
+void gl3_2compat_glLoadTransposeMatrixd(void *_glfuncs, const GLdouble* m)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLoadTransposeMatrixd(m);
+}
+
+void gl3_2compat_glLoadTransposeMatrixf(void *_glfuncs, const GLfloat* m)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glLoadTransposeMatrixf(m);
+}
+
+void gl3_2compat_glMultiTexCoord4sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4sv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord4s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4s(target, s, t, r, q);
+}
+
+void gl3_2compat_glMultiTexCoord4iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4iv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord4i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r, GLint q)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4i(target, s, t, r, q);
+}
+
+void gl3_2compat_glMultiTexCoord4fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4fv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord4f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4f(target, s, t, r, q);
+}
+
+void gl3_2compat_glMultiTexCoord4dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4dv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord4d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord4d(target, s, t, r, q);
+}
+
+void gl3_2compat_glMultiTexCoord3sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3sv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord3s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3s(target, s, t, r);
+}
+
+void gl3_2compat_glMultiTexCoord3iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3iv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord3i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3i(target, s, t, r);
+}
+
+void gl3_2compat_glMultiTexCoord3fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3fv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord3f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3f(target, s, t, r);
+}
+
+void gl3_2compat_glMultiTexCoord3dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3dv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord3d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord3d(target, s, t, r);
+}
+
+void gl3_2compat_glMultiTexCoord2sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2sv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord2s(void *_glfuncs, GLenum target, GLshort s, GLshort t)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2s(target, s, t);
+}
+
+void gl3_2compat_glMultiTexCoord2iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2iv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord2i(void *_glfuncs, GLenum target, GLint s, GLint t)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2i(target, s, t);
+}
+
+void gl3_2compat_glMultiTexCoord2fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2fv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord2f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2f(target, s, t);
+}
+
+void gl3_2compat_glMultiTexCoord2dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2dv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord2d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord2d(target, s, t);
+}
+
+void gl3_2compat_glMultiTexCoord1sv(void *_glfuncs, GLenum target, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1sv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord1s(void *_glfuncs, GLenum target, GLshort s)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1s(target, s);
+}
+
+void gl3_2compat_glMultiTexCoord1iv(void *_glfuncs, GLenum target, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1iv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord1i(void *_glfuncs, GLenum target, GLint s)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1i(target, s);
+}
+
+void gl3_2compat_glMultiTexCoord1fv(void *_glfuncs, GLenum target, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1fv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord1f(void *_glfuncs, GLenum target, GLfloat s)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1f(target, s);
+}
+
+void gl3_2compat_glMultiTexCoord1dv(void *_glfuncs, GLenum target, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1dv(target, v);
+}
+
+void gl3_2compat_glMultiTexCoord1d(void *_glfuncs, GLenum target, GLdouble s)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glMultiTexCoord1d(target, s);
+}
+
+void gl3_2compat_glClientActiveTexture(void *_glfuncs, GLenum texture)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glClientActiveTexture(texture);
+}
+
+void gl3_2compat_glWindowPos3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos3sv(v);
+}
+
+void gl3_2compat_glWindowPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos3s(x, y, z);
+}
+
+void gl3_2compat_glWindowPos3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos3iv(v);
+}
+
+void gl3_2compat_glWindowPos3i(void *_glfuncs, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos3i(x, y, z);
+}
+
+void gl3_2compat_glWindowPos3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos3fv(v);
+}
+
+void gl3_2compat_glWindowPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos3f(x, y, z);
+}
+
+void gl3_2compat_glWindowPos3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos3dv(v);
+}
+
+void gl3_2compat_glWindowPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos3d(x, y, z);
+}
+
+void gl3_2compat_glWindowPos2sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos2sv(v);
+}
+
+void gl3_2compat_glWindowPos2s(void *_glfuncs, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos2s(x, y);
+}
+
+void gl3_2compat_glWindowPos2iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos2iv(v);
+}
+
+void gl3_2compat_glWindowPos2i(void *_glfuncs, GLint x, GLint y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos2i(x, y);
+}
+
+void gl3_2compat_glWindowPos2fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos2fv(v);
+}
+
+void gl3_2compat_glWindowPos2f(void *_glfuncs, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos2f(x, y);
+}
+
+void gl3_2compat_glWindowPos2dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos2dv(v);
+}
+
+void gl3_2compat_glWindowPos2d(void *_glfuncs, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glWindowPos2d(x, y);
+}
+
+void gl3_2compat_glSecondaryColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColorPointer(size, gltype, stride, pointer);
+}
+
+void gl3_2compat_glSecondaryColor3usv(void *_glfuncs, const GLushort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3usv(v);
+}
+
+void gl3_2compat_glSecondaryColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3us(red, green, blue);
+}
+
+void gl3_2compat_glSecondaryColor3uiv(void *_glfuncs, const GLuint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3uiv(v);
+}
+
+void gl3_2compat_glSecondaryColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ui(red, green, blue);
+}
+
+void gl3_2compat_glSecondaryColor3ubv(void *_glfuncs, const GLubyte* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ubv(v);
+}
+
+void gl3_2compat_glSecondaryColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3ub(red, green, blue);
+}
+
+void gl3_2compat_glSecondaryColor3sv(void *_glfuncs, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3sv(v);
+}
+
+void gl3_2compat_glSecondaryColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3s(red, green, blue);
+}
+
+void gl3_2compat_glSecondaryColor3iv(void *_glfuncs, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3iv(v);
+}
+
+void gl3_2compat_glSecondaryColor3i(void *_glfuncs, GLint red, GLint green, GLint blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3i(red, green, blue);
+}
+
+void gl3_2compat_glSecondaryColor3fv(void *_glfuncs, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3fv(v);
+}
+
+void gl3_2compat_glSecondaryColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3f(red, green, blue);
+}
+
+void gl3_2compat_glSecondaryColor3dv(void *_glfuncs, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3dv(v);
+}
+
+void gl3_2compat_glSecondaryColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3d(red, green, blue);
+}
+
+void gl3_2compat_glSecondaryColor3bv(void *_glfuncs, const GLbyte* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3bv(v);
+}
+
+void gl3_2compat_glSecondaryColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glSecondaryColor3b(red, green, blue);
+}
+
+void gl3_2compat_glFogCoordPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFogCoordPointer(gltype, stride, pointer);
+}
+
+void gl3_2compat_glFogCoorddv(void *_glfuncs, const GLdouble* coord)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFogCoorddv(coord);
+}
+
+void gl3_2compat_glFogCoordd(void *_glfuncs, GLdouble coord)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFogCoordd(coord);
+}
+
+void gl3_2compat_glFogCoordfv(void *_glfuncs, const GLfloat* coord)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFogCoordfv(coord);
+}
+
+void gl3_2compat_glFogCoordf(void *_glfuncs, GLfloat coord)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glFogCoordf(coord);
+}
+
+void gl3_2compat_glVertexAttrib4usv(void *_glfuncs, GLuint index, const GLushort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4usv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib4uiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4uiv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib4ubv(void *_glfuncs, GLuint index, const GLubyte* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4ubv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib4sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4sv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib4s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z, GLshort w)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4s(index, x, y, z, w);
+}
+
+void gl3_2compat_glVertexAttrib4iv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4iv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib4fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4fv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib4f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4f(index, x, y, z, w);
+}
+
+void gl3_2compat_glVertexAttrib4dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4dv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib4d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4d(index, x, y, z, w);
+}
+
+void gl3_2compat_glVertexAttrib4bv(void *_glfuncs, GLuint index, const GLbyte* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4bv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib4Nusv(void *_glfuncs, GLuint index, const GLushort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nusv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib4Nuiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nuiv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib4Nubv(void *_glfuncs, GLuint index, const GLubyte* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nubv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib4Nub(void *_glfuncs, GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nub(index, x, y, z, w);
+}
+
+void gl3_2compat_glVertexAttrib4Nsv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nsv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib4Niv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Niv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib4Nbv(void *_glfuncs, GLuint index, const GLbyte* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib4Nbv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib3sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3sv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib3s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3s(index, x, y, z);
+}
+
+void gl3_2compat_glVertexAttrib3fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3fv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib3f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3f(index, x, y, z);
+}
+
+void gl3_2compat_glVertexAttrib3dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3dv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib3d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib3d(index, x, y, z);
+}
+
+void gl3_2compat_glVertexAttrib2sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2sv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib2s(void *_glfuncs, GLuint index, GLshort x, GLshort y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2s(index, x, y);
+}
+
+void gl3_2compat_glVertexAttrib2fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2fv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib2f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2f(index, x, y);
+}
+
+void gl3_2compat_glVertexAttrib2dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2dv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib2d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib2d(index, x, y);
+}
+
+void gl3_2compat_glVertexAttrib1sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1sv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib1s(void *_glfuncs, GLuint index, GLshort x)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1s(index, x);
+}
+
+void gl3_2compat_glVertexAttrib1fv(void *_glfuncs, GLuint index, const GLfloat* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1fv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib1f(void *_glfuncs, GLuint index, GLfloat x)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1f(index, x);
+}
+
+void gl3_2compat_glVertexAttrib1dv(void *_glfuncs, GLuint index, const GLdouble* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1dv(index, v);
+}
+
+void gl3_2compat_glVertexAttrib1d(void *_glfuncs, GLuint index, GLdouble x)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttrib1d(index, x);
+}
+
+void gl3_2compat_glVertexAttribI4usv(void *_glfuncs, GLuint index, const GLushort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4usv(index, v);
+}
+
+void gl3_2compat_glVertexAttribI4ubv(void *_glfuncs, GLuint index, const GLubyte* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4ubv(index, v);
+}
+
+void gl3_2compat_glVertexAttribI4sv(void *_glfuncs, GLuint index, const GLshort* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4sv(index, v);
+}
+
+void gl3_2compat_glVertexAttribI4bv(void *_glfuncs, GLuint index, const GLbyte* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4bv(index, v);
+}
+
+void gl3_2compat_glVertexAttribI4uiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4uiv(index, v);
+}
+
+void gl3_2compat_glVertexAttribI3uiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI3uiv(index, v);
+}
+
+void gl3_2compat_glVertexAttribI2uiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI2uiv(index, v);
+}
+
+void gl3_2compat_glVertexAttribI1uiv(void *_glfuncs, GLuint index, const GLuint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI1uiv(index, v);
+}
+
+void gl3_2compat_glVertexAttribI4iv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4iv(index, v);
+}
+
+void gl3_2compat_glVertexAttribI3iv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI3iv(index, v);
+}
+
+void gl3_2compat_glVertexAttribI2iv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI2iv(index, v);
+}
+
+void gl3_2compat_glVertexAttribI1iv(void *_glfuncs, GLuint index, const GLint* v)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI1iv(index, v);
+}
+
+void gl3_2compat_glVertexAttribI4ui(void *_glfuncs, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4ui(index, x, y, z, w);
+}
+
+void gl3_2compat_glVertexAttribI3ui(void *_glfuncs, GLuint index, GLuint x, GLuint y, GLuint z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI3ui(index, x, y, z);
+}
+
+void gl3_2compat_glVertexAttribI2ui(void *_glfuncs, GLuint index, GLuint x, GLuint y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI2ui(index, x, y);
+}
+
+void gl3_2compat_glVertexAttribI1ui(void *_glfuncs, GLuint index, GLuint x)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI1ui(index, x);
+}
+
+void gl3_2compat_glVertexAttribI4i(void *_glfuncs, GLuint index, GLint x, GLint y, GLint z, GLint w)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI4i(index, x, y, z, w);
+}
+
+void gl3_2compat_glVertexAttribI3i(void *_glfuncs, GLuint index, GLint x, GLint y, GLint z)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI3i(index, x, y, z);
+}
+
+void gl3_2compat_glVertexAttribI2i(void *_glfuncs, GLuint index, GLint x, GLint y)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI2i(index, x, y);
+}
+
+void gl3_2compat_glVertexAttribI1i(void *_glfuncs, GLuint index, GLint x)
+{
+ QOpenGLFunctions_3_2_Compatibility* _qglfuncs = reinterpret_cast<QOpenGLFunctions_3_2_Compatibility*>(_glfuncs);
+ _qglfuncs->glVertexAttribI1i(index, x);
+}
+
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2compat/funcs.h b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2compat/funcs.h
new file mode 100644
index 000000000..17fa70e2e
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2compat/funcs.h
@@ -0,0 +1,729 @@
+
+// ** file automatically generated by glgen -- do not edit manually **
+
+#ifndef __cplusplus
+#include <inttypes.h>
+#include <stddef.h>
+typedef unsigned int GLenum;
+typedef unsigned char GLboolean;
+typedef unsigned int GLbitfield;
+typedef void GLvoid;
+typedef char GLchar;
+typedef signed char GLbyte; /* 1-byte signed */
+typedef short GLshort; /* 2-byte signed */
+typedef int GLint; /* 4-byte signed */
+typedef unsigned char GLubyte; /* 1-byte unsigned */
+typedef unsigned short GLushort; /* 2-byte unsigned */
+typedef unsigned int GLuint; /* 4-byte unsigned */
+typedef int GLsizei; /* 4-byte signed */
+typedef float GLfloat; /* single precision float */
+typedef float GLclampf; /* single precision float in [0,1] */
+typedef double GLdouble; /* double precision float */
+typedef double GLclampd; /* double precision float in [0,1] */
+typedef int64_t GLint64;
+typedef uint64_t GLuint64;
+typedef ptrdiff_t GLintptr;
+typedef ptrdiff_t GLsizeiptr;
+typedef ptrdiff_t GLintptrARB;
+typedef ptrdiff_t GLsizeiptrARB;
+typedef struct __GLsync *GLsync;
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *gl3_2compat_funcs();
+
+void gl3_2compat_glViewport(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl3_2compat_glDepthRange(void *_glfuncs, GLdouble nearVal, GLdouble farVal);
+GLboolean gl3_2compat_glIsEnabled(void *_glfuncs, GLenum cap);
+void gl3_2compat_glGetTexLevelParameteriv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLint* params);
+void gl3_2compat_glGetTexLevelParameterfv(void *_glfuncs, GLenum target, GLint level, GLenum pname, GLfloat* params);
+void gl3_2compat_glGetTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_2compat_glGetTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl3_2compat_glGetTexImage(void *_glfuncs, GLenum target, GLint level, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl3_2compat_glGetIntegerv(void *_glfuncs, GLenum pname, GLint* params);
+void gl3_2compat_glGetFloatv(void *_glfuncs, GLenum pname, GLfloat* params);
+GLenum gl3_2compat_glGetError(void *_glfuncs);
+void gl3_2compat_glGetDoublev(void *_glfuncs, GLenum pname, GLdouble* params);
+void gl3_2compat_glGetBooleanv(void *_glfuncs, GLenum pname, GLboolean* params);
+void gl3_2compat_glReadPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum gltype, GLvoid* pixels);
+void gl3_2compat_glReadBuffer(void *_glfuncs, GLenum mode);
+void gl3_2compat_glPixelStorei(void *_glfuncs, GLenum pname, GLint param);
+void gl3_2compat_glPixelStoref(void *_glfuncs, GLenum pname, GLfloat param);
+void gl3_2compat_glDepthFunc(void *_glfuncs, GLenum glfunc);
+void gl3_2compat_glStencilOp(void *_glfuncs, GLenum fail, GLenum zfail, GLenum zpass);
+void gl3_2compat_glStencilFunc(void *_glfuncs, GLenum glfunc, GLint ref, GLuint mask);
+void gl3_2compat_glLogicOp(void *_glfuncs, GLenum opcode);
+void gl3_2compat_glBlendFunc(void *_glfuncs, GLenum sfactor, GLenum dfactor);
+void gl3_2compat_glFlush(void *_glfuncs);
+void gl3_2compat_glFinish(void *_glfuncs);
+void gl3_2compat_glEnable(void *_glfuncs, GLenum cap);
+void gl3_2compat_glDisable(void *_glfuncs, GLenum cap);
+void gl3_2compat_glDepthMask(void *_glfuncs, GLboolean flag);
+void gl3_2compat_glColorMask(void *_glfuncs, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+void gl3_2compat_glStencilMask(void *_glfuncs, GLuint mask);
+void gl3_2compat_glClearDepth(void *_glfuncs, GLdouble depth);
+void gl3_2compat_glClearStencil(void *_glfuncs, GLint s);
+void gl3_2compat_glClearColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl3_2compat_glClear(void *_glfuncs, GLbitfield mask);
+void gl3_2compat_glDrawBuffer(void *_glfuncs, GLenum mode);
+void gl3_2compat_glTexImage2D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_2compat_glTexImage1D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_2compat_glTexParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl3_2compat_glTexParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl3_2compat_glTexParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl3_2compat_glTexParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl3_2compat_glScissor(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl3_2compat_glPolygonMode(void *_glfuncs, GLenum face, GLenum mode);
+void gl3_2compat_glPointSize(void *_glfuncs, GLfloat size);
+void gl3_2compat_glLineWidth(void *_glfuncs, GLfloat width);
+void gl3_2compat_glHint(void *_glfuncs, GLenum target, GLenum mode);
+void gl3_2compat_glFrontFace(void *_glfuncs, GLenum mode);
+void gl3_2compat_glCullFace(void *_glfuncs, GLenum mode);
+void gl3_2compat_glIndexubv(void *_glfuncs, const GLubyte* c);
+void gl3_2compat_glIndexub(void *_glfuncs, GLubyte c);
+GLboolean gl3_2compat_glIsTexture(void *_glfuncs, GLuint texture);
+void gl3_2compat_glGenTextures(void *_glfuncs, GLsizei n, GLuint* textures);
+void gl3_2compat_glDeleteTextures(void *_glfuncs, GLsizei n, const GLuint* textures);
+void gl3_2compat_glBindTexture(void *_glfuncs, GLenum target, GLuint texture);
+void gl3_2compat_glTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_2compat_glTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_2compat_glCopyTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl3_2compat_glCopyTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+void gl3_2compat_glCopyTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+void gl3_2compat_glCopyTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
+void gl3_2compat_glPolygonOffset(void *_glfuncs, GLfloat factor, GLfloat units);
+void gl3_2compat_glDrawElements(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl3_2compat_glDrawArrays(void *_glfuncs, GLenum mode, GLint first, GLsizei count);
+void gl3_2compat_glCopyTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl3_2compat_glTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_2compat_glTexImage3D(void *_glfuncs, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_2compat_glDrawRangeElements(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices);
+void gl3_2compat_glBlendEquation(void *_glfuncs, GLenum mode);
+void gl3_2compat_glBlendColor(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl3_2compat_glGetCompressedTexImage(void *_glfuncs, GLenum target, GLint level, GLvoid* img);
+void gl3_2compat_glCompressedTexSubImage1D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl3_2compat_glCompressedTexSubImage2D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl3_2compat_glCompressedTexSubImage3D(void *_glfuncs, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data);
+void gl3_2compat_glCompressedTexImage1D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl3_2compat_glCompressedTexImage2D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl3_2compat_glCompressedTexImage3D(void *_glfuncs, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
+void gl3_2compat_glSampleCoverage(void *_glfuncs, GLfloat value, GLboolean invert);
+void gl3_2compat_glActiveTexture(void *_glfuncs, GLenum texture);
+void gl3_2compat_glPointParameteriv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl3_2compat_glPointParameteri(void *_glfuncs, GLenum pname, GLint param);
+void gl3_2compat_glPointParameterfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl3_2compat_glPointParameterf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl3_2compat_glMultiDrawArrays(void *_glfuncs, GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount);
+void gl3_2compat_glBlendFuncSeparate(void *_glfuncs, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+void gl3_2compat_glGetBufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+GLboolean gl3_2compat_glUnmapBuffer(void *_glfuncs, GLenum target);
+void gl3_2compat_glGetBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data);
+void gl3_2compat_glBufferSubData(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data);
+void gl3_2compat_glBufferData(void *_glfuncs, GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
+GLboolean gl3_2compat_glIsBuffer(void *_glfuncs, GLuint buffer);
+void gl3_2compat_glGenBuffers(void *_glfuncs, GLsizei n, GLuint* buffers);
+void gl3_2compat_glDeleteBuffers(void *_glfuncs, GLsizei n, const GLuint* buffers);
+void gl3_2compat_glBindBuffer(void *_glfuncs, GLenum target, GLuint buffer);
+void gl3_2compat_glGetQueryObjectuiv(void *_glfuncs, GLuint id, GLenum pname, GLuint* params);
+void gl3_2compat_glGetQueryObjectiv(void *_glfuncs, GLuint id, GLenum pname, GLint* params);
+void gl3_2compat_glGetQueryiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_2compat_glEndQuery(void *_glfuncs, GLenum target);
+void gl3_2compat_glBeginQuery(void *_glfuncs, GLenum target, GLuint id);
+GLboolean gl3_2compat_glIsQuery(void *_glfuncs, GLuint id);
+void gl3_2compat_glDeleteQueries(void *_glfuncs, GLsizei n, const GLuint* ids);
+void gl3_2compat_glGenQueries(void *_glfuncs, GLsizei n, GLuint* ids);
+void gl3_2compat_glVertexAttribPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLboolean normalized, GLsizei stride, const GLvoid* offset);
+void gl3_2compat_glValidateProgram(void *_glfuncs, GLuint program);
+void gl3_2compat_glUniformMatrix4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_2compat_glUniformMatrix3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_2compat_glUniformMatrix2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_2compat_glUniform4iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl3_2compat_glUniform3iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl3_2compat_glUniform2iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl3_2compat_glUniform1iv(void *_glfuncs, GLint location, GLsizei count, const GLint* value);
+void gl3_2compat_glUniform4fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl3_2compat_glUniform3fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl3_2compat_glUniform2fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl3_2compat_glUniform1fv(void *_glfuncs, GLint location, GLsizei count, const GLfloat* value);
+void gl3_2compat_glUniform4i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+void gl3_2compat_glUniform3i(void *_glfuncs, GLint location, GLint v0, GLint v1, GLint v2);
+void gl3_2compat_glUniform2i(void *_glfuncs, GLint location, GLint v0, GLint v1);
+void gl3_2compat_glUniform1i(void *_glfuncs, GLint location, GLint v0);
+void gl3_2compat_glUniform4f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+void gl3_2compat_glUniform3f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+void gl3_2compat_glUniform2f(void *_glfuncs, GLint location, GLfloat v0, GLfloat v1);
+void gl3_2compat_glUniform1f(void *_glfuncs, GLint location, GLfloat v0);
+void gl3_2compat_glUseProgram(void *_glfuncs, GLuint program);
+void gl3_2compat_glShaderSource(void *_glfuncs, GLuint shader, GLsizei count, const GLchar** source, const GLint* length);
+void gl3_2compat_glLinkProgram(void *_glfuncs, GLuint program);
+GLboolean gl3_2compat_glIsShader(void *_glfuncs, GLuint shader);
+GLboolean gl3_2compat_glIsProgram(void *_glfuncs, GLuint program);
+void gl3_2compat_glGetVertexAttribiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params);
+void gl3_2compat_glGetVertexAttribfv(void *_glfuncs, GLuint index, GLenum pname, GLfloat* params);
+void gl3_2compat_glGetVertexAttribdv(void *_glfuncs, GLuint index, GLenum pname, GLdouble* params);
+void gl3_2compat_glGetUniformiv(void *_glfuncs, GLuint program, GLint location, GLint* params);
+void gl3_2compat_glGetUniformfv(void *_glfuncs, GLuint program, GLint location, GLfloat* params);
+GLint gl3_2compat_glGetUniformLocation(void *_glfuncs, GLuint program, const GLchar* name);
+void gl3_2compat_glGetShaderSource(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* source);
+void gl3_2compat_glGetShaderInfoLog(void *_glfuncs, GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog);
+void gl3_2compat_glGetShaderiv(void *_glfuncs, GLuint shader, GLenum pname, GLint* params);
+void gl3_2compat_glGetProgramInfoLog(void *_glfuncs, GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog);
+void gl3_2compat_glGetProgramiv(void *_glfuncs, GLuint program, GLenum pname, GLint* params);
+GLint gl3_2compat_glGetAttribLocation(void *_glfuncs, GLuint program, const GLchar* name);
+void gl3_2compat_glGetAttachedShaders(void *_glfuncs, GLuint program, GLsizei maxCount, GLsizei* count, GLuint* obj);
+void gl3_2compat_glGetActiveUniform(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name);
+void gl3_2compat_glGetActiveAttrib(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* gltype, GLchar* name);
+void gl3_2compat_glEnableVertexAttribArray(void *_glfuncs, GLuint index);
+void gl3_2compat_glDisableVertexAttribArray(void *_glfuncs, GLuint index);
+void gl3_2compat_glDetachShader(void *_glfuncs, GLuint program, GLuint shader);
+void gl3_2compat_glDeleteShader(void *_glfuncs, GLuint shader);
+void gl3_2compat_glDeleteProgram(void *_glfuncs, GLuint program);
+GLuint gl3_2compat_glCreateShader(void *_glfuncs, GLenum gltype);
+GLuint gl3_2compat_glCreateProgram(void *_glfuncs);
+void gl3_2compat_glCompileShader(void *_glfuncs, GLuint shader);
+void gl3_2compat_glBindAttribLocation(void *_glfuncs, GLuint program, GLuint index, const GLchar* name);
+void gl3_2compat_glAttachShader(void *_glfuncs, GLuint program, GLuint shader);
+void gl3_2compat_glStencilMaskSeparate(void *_glfuncs, GLenum face, GLuint mask);
+void gl3_2compat_glStencilFuncSeparate(void *_glfuncs, GLenum face, GLenum glfunc, GLint ref, GLuint mask);
+void gl3_2compat_glStencilOpSeparate(void *_glfuncs, GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+void gl3_2compat_glDrawBuffers(void *_glfuncs, GLsizei n, const GLenum* bufs);
+void gl3_2compat_glBlendEquationSeparate(void *_glfuncs, GLenum modeRGB, GLenum modeAlpha);
+void gl3_2compat_glUniformMatrix4x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_2compat_glUniformMatrix3x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_2compat_glUniformMatrix4x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_2compat_glUniformMatrix2x4fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_2compat_glUniformMatrix3x2fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+void gl3_2compat_glUniformMatrix2x3fv(void *_glfuncs, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
+GLboolean gl3_2compat_glIsVertexArray(void *_glfuncs, GLuint array);
+void gl3_2compat_glGenVertexArrays(void *_glfuncs, GLsizei n, GLuint* arrays);
+void gl3_2compat_glDeleteVertexArrays(void *_glfuncs, GLsizei n, const GLuint* arrays);
+void gl3_2compat_glBindVertexArray(void *_glfuncs, GLuint array);
+void gl3_2compat_glFlushMappedBufferRange(void *_glfuncs, GLenum target, GLintptr offset, GLsizeiptr length);
+void gl3_2compat_glFramebufferTextureLayer(void *_glfuncs, GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
+void gl3_2compat_glRenderbufferStorageMultisample(void *_glfuncs, GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height);
+void gl3_2compat_glBlitFramebuffer(void *_glfuncs, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+void gl3_2compat_glGenerateMipmap(void *_glfuncs, GLenum target);
+void gl3_2compat_glGetFramebufferAttachmentParameteriv(void *_glfuncs, GLenum target, GLenum attachment, GLenum pname, GLint* params);
+void gl3_2compat_glFramebufferRenderbuffer(void *_glfuncs, GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+void gl3_2compat_glFramebufferTexture3D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+void gl3_2compat_glFramebufferTexture2D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+void gl3_2compat_glFramebufferTexture1D(void *_glfuncs, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GLenum gl3_2compat_glCheckFramebufferStatus(void *_glfuncs, GLenum target);
+void gl3_2compat_glGenFramebuffers(void *_glfuncs, GLsizei n, GLuint* framebuffers);
+void gl3_2compat_glDeleteFramebuffers(void *_glfuncs, GLsizei n, const GLuint* framebuffers);
+void gl3_2compat_glBindFramebuffer(void *_glfuncs, GLenum target, GLuint framebuffer);
+GLboolean gl3_2compat_glIsFramebuffer(void *_glfuncs, GLuint framebuffer);
+void gl3_2compat_glGetRenderbufferParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_2compat_glRenderbufferStorage(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height);
+void gl3_2compat_glGenRenderbuffers(void *_glfuncs, GLsizei n, GLuint* renderbuffers);
+void gl3_2compat_glDeleteRenderbuffers(void *_glfuncs, GLsizei n, const GLuint* renderbuffers);
+void gl3_2compat_glBindRenderbuffer(void *_glfuncs, GLenum target, GLuint renderbuffer);
+GLboolean gl3_2compat_glIsRenderbuffer(void *_glfuncs, GLuint renderbuffer);
+void gl3_2compat_glClearBufferfi(void *_glfuncs, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
+void gl3_2compat_glClearBufferfv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLfloat* value);
+void gl3_2compat_glClearBufferuiv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLuint* value);
+void gl3_2compat_glClearBufferiv(void *_glfuncs, GLenum buffer, GLint drawbuffer, const GLint* value);
+void gl3_2compat_glGetTexParameterIuiv(void *_glfuncs, GLenum target, GLenum pname, GLuint* params);
+void gl3_2compat_glGetTexParameterIiv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_2compat_glTexParameterIuiv(void *_glfuncs, GLenum target, GLenum pname, const GLuint* params);
+void gl3_2compat_glTexParameterIiv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl3_2compat_glUniform4uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value);
+void gl3_2compat_glUniform3uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value);
+void gl3_2compat_glUniform2uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value);
+void gl3_2compat_glUniform1uiv(void *_glfuncs, GLint location, GLsizei count, const GLuint* value);
+void gl3_2compat_glUniform4ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+void gl3_2compat_glUniform3ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1, GLuint v2);
+void gl3_2compat_glUniform2ui(void *_glfuncs, GLint location, GLuint v0, GLuint v1);
+void gl3_2compat_glUniform1ui(void *_glfuncs, GLint location, GLuint v0);
+GLint gl3_2compat_glGetFragDataLocation(void *_glfuncs, GLuint program, const GLchar* name);
+void gl3_2compat_glBindFragDataLocation(void *_glfuncs, GLuint program, GLuint color, const GLchar* name);
+void gl3_2compat_glGetUniformuiv(void *_glfuncs, GLuint program, GLint location, GLuint* params);
+void gl3_2compat_glGetVertexAttribIuiv(void *_glfuncs, GLuint index, GLenum pname, GLuint* params);
+void gl3_2compat_glGetVertexAttribIiv(void *_glfuncs, GLuint index, GLenum pname, GLint* params);
+void gl3_2compat_glVertexAttribIPointer(void *_glfuncs, GLuint index, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_2compat_glEndConditionalRender(void *_glfuncs);
+void gl3_2compat_glBeginConditionalRender(void *_glfuncs, GLuint id, GLenum mode);
+void gl3_2compat_glClampColor(void *_glfuncs, GLenum target, GLenum clamp);
+void gl3_2compat_glGetTransformFeedbackVarying(void *_glfuncs, GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* gltype, GLchar* name);
+void gl3_2compat_glBindBufferBase(void *_glfuncs, GLenum target, GLuint index, GLuint buffer);
+void gl3_2compat_glBindBufferRange(void *_glfuncs, GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
+void gl3_2compat_glEndTransformFeedback(void *_glfuncs);
+void gl3_2compat_glBeginTransformFeedback(void *_glfuncs, GLenum primitiveMode);
+GLboolean gl3_2compat_glIsEnabledi(void *_glfuncs, GLenum target, GLuint index);
+void gl3_2compat_glDisablei(void *_glfuncs, GLenum target, GLuint index);
+void gl3_2compat_glEnablei(void *_glfuncs, GLenum target, GLuint index);
+void gl3_2compat_glGetIntegeri_v(void *_glfuncs, GLenum target, GLuint index, GLint* data);
+void gl3_2compat_glGetBooleani_v(void *_glfuncs, GLenum target, GLuint index, GLboolean* data);
+void gl3_2compat_glColorMaski(void *_glfuncs, GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+void gl3_2compat_glCopyBufferSubData(void *_glfuncs, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+void gl3_2compat_glUniformBlockBinding(void *_glfuncs, GLuint program, GLuint v0, GLuint v1);
+void gl3_2compat_glGetActiveUniformBlockName(void *_glfuncs, GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformBlockName);
+void gl3_2compat_glGetActiveUniformBlockiv(void *_glfuncs, GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params);
+GLuint gl3_2compat_glGetUniformBlockIndex(void *_glfuncs, GLuint program, const GLchar* uniformBlockName);
+void gl3_2compat_glGetActiveUniformName(void *_glfuncs, GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformName);
+void gl3_2compat_glGetActiveUniformsiv(void *_glfuncs, GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params);
+void gl3_2compat_glPrimitiveRestartIndex(void *_glfuncs, GLuint index);
+void gl3_2compat_glTexBuffer(void *_glfuncs, GLenum target, GLenum internalFormat, GLuint buffer);
+void gl3_2compat_glDrawElementsInstanced(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices, GLsizei instancecount);
+void gl3_2compat_glDrawArraysInstanced(void *_glfuncs, GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
+void gl3_2compat_glSampleMaski(void *_glfuncs, GLuint index, GLbitfield mask);
+void gl3_2compat_glGetMultisamplefv(void *_glfuncs, GLenum pname, GLuint index, GLfloat* val);
+void gl3_2compat_glTexImage3DMultisample(void *_glfuncs, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+void gl3_2compat_glTexImage2DMultisample(void *_glfuncs, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
+void gl3_2compat_glGetSynciv(void *_glfuncs, GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length, GLint* values);
+void gl3_2compat_glGetInteger64v(void *_glfuncs, GLenum pname, GLint64* params);
+void gl3_2compat_glWaitSync(void *_glfuncs, GLsync sync, GLbitfield flags, GLuint64 timeout);
+GLenum gl3_2compat_glClientWaitSync(void *_glfuncs, GLsync sync, GLbitfield flags, GLuint64 timeout);
+void gl3_2compat_glDeleteSync(void *_glfuncs, GLsync sync);
+GLboolean gl3_2compat_glIsSync(void *_glfuncs, GLsync sync);
+GLsync gl3_2compat_glFenceSync(void *_glfuncs, GLenum condition, GLbitfield flags);
+void gl3_2compat_glProvokingVertex(void *_glfuncs, GLenum mode);
+void gl3_2compat_glDrawElementsInstancedBaseVertex(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices, GLsizei instancecount, GLint basevertex);
+void gl3_2compat_glDrawRangeElementsBaseVertex(void *_glfuncs, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum gltype, const GLvoid* indices, GLint basevertex);
+void gl3_2compat_glDrawElementsBaseVertex(void *_glfuncs, GLenum mode, GLsizei count, GLenum gltype, const GLvoid* indices, GLint basevertex);
+void gl3_2compat_glFramebufferTexture(void *_glfuncs, GLenum target, GLenum attachment, GLuint texture, GLint level);
+void gl3_2compat_glGetBufferParameteri64v(void *_glfuncs, GLenum target, GLenum pname, GLint64* params);
+void gl3_2compat_glGetInteger64i_v(void *_glfuncs, GLenum target, GLuint index, GLint64* data);
+void gl3_2compat_glTranslatef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl3_2compat_glTranslated(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl3_2compat_glScalef(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl3_2compat_glScaled(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl3_2compat_glRotatef(void *_glfuncs, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+void gl3_2compat_glRotated(void *_glfuncs, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+void gl3_2compat_glPushMatrix(void *_glfuncs);
+void gl3_2compat_glPopMatrix(void *_glfuncs);
+void gl3_2compat_glOrtho(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+void gl3_2compat_glMultMatrixd(void *_glfuncs, const GLdouble* m);
+void gl3_2compat_glMultMatrixf(void *_glfuncs, const GLfloat* m);
+void gl3_2compat_glMatrixMode(void *_glfuncs, GLenum mode);
+void gl3_2compat_glLoadMatrixd(void *_glfuncs, const GLdouble* m);
+void gl3_2compat_glLoadMatrixf(void *_glfuncs, const GLfloat* m);
+void gl3_2compat_glLoadIdentity(void *_glfuncs);
+void gl3_2compat_glFrustum(void *_glfuncs, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+GLboolean gl3_2compat_glIsList(void *_glfuncs, GLuint list);
+void gl3_2compat_glGetTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, GLint* params);
+void gl3_2compat_glGetTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, GLfloat* params);
+void gl3_2compat_glGetTexGendv(void *_glfuncs, GLenum coord, GLenum pname, GLdouble* params);
+void gl3_2compat_glGetTexEnviv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_2compat_glGetTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl3_2compat_glGetPolygonStipple(void *_glfuncs, GLubyte* mask);
+void gl3_2compat_glGetPixelMapusv(void *_glfuncs, GLenum glmap, GLushort* values);
+void gl3_2compat_glGetPixelMapuiv(void *_glfuncs, GLenum glmap, GLuint* values);
+void gl3_2compat_glGetPixelMapfv(void *_glfuncs, GLenum glmap, GLfloat* values);
+void gl3_2compat_glGetMaterialiv(void *_glfuncs, GLenum face, GLenum pname, GLint* params);
+void gl3_2compat_glGetMaterialfv(void *_glfuncs, GLenum face, GLenum pname, GLfloat* params);
+void gl3_2compat_glGetMapiv(void *_glfuncs, GLenum target, GLenum query, GLint* v);
+void gl3_2compat_glGetMapfv(void *_glfuncs, GLenum target, GLenum query, GLfloat* v);
+void gl3_2compat_glGetMapdv(void *_glfuncs, GLenum target, GLenum query, GLdouble* v);
+void gl3_2compat_glGetLightiv(void *_glfuncs, GLenum light, GLenum pname, GLint* params);
+void gl3_2compat_glGetLightfv(void *_glfuncs, GLenum light, GLenum pname, GLfloat* params);
+void gl3_2compat_glGetClipPlane(void *_glfuncs, GLenum plane, GLdouble* equation);
+void gl3_2compat_glDrawPixels(void *_glfuncs, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* pixels);
+void gl3_2compat_glCopyPixels(void *_glfuncs, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gltype);
+void gl3_2compat_glPixelMapusv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLushort* values);
+void gl3_2compat_glPixelMapuiv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLuint* values);
+void gl3_2compat_glPixelMapfv(void *_glfuncs, GLenum glmap, GLint mapsize, const GLfloat* values);
+void gl3_2compat_glPixelTransferi(void *_glfuncs, GLenum pname, GLint param);
+void gl3_2compat_glPixelTransferf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl3_2compat_glPixelZoom(void *_glfuncs, GLfloat xfactor, GLfloat yfactor);
+void gl3_2compat_glAlphaFunc(void *_glfuncs, GLenum glfunc, GLfloat ref);
+void gl3_2compat_glEvalPoint2(void *_glfuncs, GLint i, GLint j);
+void gl3_2compat_glEvalMesh2(void *_glfuncs, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
+void gl3_2compat_glEvalPoint1(void *_glfuncs, GLint i);
+void gl3_2compat_glEvalMesh1(void *_glfuncs, GLenum mode, GLint i1, GLint i2);
+void gl3_2compat_glEvalCoord2fv(void *_glfuncs, const GLfloat* u);
+void gl3_2compat_glEvalCoord2f(void *_glfuncs, GLfloat u, GLfloat v);
+void gl3_2compat_glEvalCoord2dv(void *_glfuncs, const GLdouble* u);
+void gl3_2compat_glEvalCoord2d(void *_glfuncs, GLdouble u, GLdouble v);
+void gl3_2compat_glEvalCoord1fv(void *_glfuncs, const GLfloat* u);
+void gl3_2compat_glEvalCoord1f(void *_glfuncs, GLfloat u);
+void gl3_2compat_glEvalCoord1dv(void *_glfuncs, const GLdouble* u);
+void gl3_2compat_glEvalCoord1d(void *_glfuncs, GLdouble u);
+void gl3_2compat_glMapGrid2f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
+void gl3_2compat_glMapGrid2d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
+void gl3_2compat_glMapGrid1f(void *_glfuncs, GLint un, GLfloat u1, GLfloat u2);
+void gl3_2compat_glMapGrid1d(void *_glfuncs, GLint un, GLdouble u1, GLdouble u2);
+void gl3_2compat_glMap2f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points);
+void gl3_2compat_glMap2d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points);
+void gl3_2compat_glMap1f(void *_glfuncs, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points);
+void gl3_2compat_glMap1d(void *_glfuncs, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points);
+void gl3_2compat_glPushAttrib(void *_glfuncs, GLbitfield mask);
+void gl3_2compat_glPopAttrib(void *_glfuncs);
+void gl3_2compat_glAccum(void *_glfuncs, GLenum op, GLfloat value);
+void gl3_2compat_glIndexMask(void *_glfuncs, GLuint mask);
+void gl3_2compat_glClearIndex(void *_glfuncs, GLfloat c);
+void gl3_2compat_glClearAccum(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl3_2compat_glPushName(void *_glfuncs, GLuint name);
+void gl3_2compat_glPopName(void *_glfuncs);
+void gl3_2compat_glPassThrough(void *_glfuncs, GLfloat token);
+void gl3_2compat_glLoadName(void *_glfuncs, GLuint name);
+void gl3_2compat_glInitNames(void *_glfuncs);
+GLint gl3_2compat_glRenderMode(void *_glfuncs, GLenum mode);
+void gl3_2compat_glSelectBuffer(void *_glfuncs, GLsizei size, GLuint* buffer);
+void gl3_2compat_glFeedbackBuffer(void *_glfuncs, GLsizei size, GLenum gltype, GLfloat* buffer);
+void gl3_2compat_glTexGeniv(void *_glfuncs, GLenum coord, GLenum pname, const GLint* params);
+void gl3_2compat_glTexGeni(void *_glfuncs, GLenum coord, GLenum pname, GLint param);
+void gl3_2compat_glTexGenfv(void *_glfuncs, GLenum coord, GLenum pname, const GLfloat* params);
+void gl3_2compat_glTexGenf(void *_glfuncs, GLenum coord, GLenum pname, GLfloat param);
+void gl3_2compat_glTexGendv(void *_glfuncs, GLenum coord, GLenum pname, const GLdouble* params);
+void gl3_2compat_glTexGend(void *_glfuncs, GLenum coord, GLenum pname, GLdouble param);
+void gl3_2compat_glTexEnviv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl3_2compat_glTexEnvi(void *_glfuncs, GLenum target, GLenum pname, GLint param);
+void gl3_2compat_glTexEnvfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl3_2compat_glTexEnvf(void *_glfuncs, GLenum target, GLenum pname, GLfloat param);
+void gl3_2compat_glShadeModel(void *_glfuncs, GLenum mode);
+void gl3_2compat_glPolygonStipple(void *_glfuncs, const GLubyte* mask);
+void gl3_2compat_glMaterialiv(void *_glfuncs, GLenum face, GLenum pname, const GLint* params);
+void gl3_2compat_glMateriali(void *_glfuncs, GLenum face, GLenum pname, GLint param);
+void gl3_2compat_glMaterialfv(void *_glfuncs, GLenum face, GLenum pname, const GLfloat* params);
+void gl3_2compat_glMaterialf(void *_glfuncs, GLenum face, GLenum pname, GLfloat param);
+void gl3_2compat_glLineStipple(void *_glfuncs, GLint factor, GLushort pattern);
+void gl3_2compat_glLightModeliv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl3_2compat_glLightModeli(void *_glfuncs, GLenum pname, GLint param);
+void gl3_2compat_glLightModelfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl3_2compat_glLightModelf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl3_2compat_glLightiv(void *_glfuncs, GLenum light, GLenum pname, const GLint* params);
+void gl3_2compat_glLighti(void *_glfuncs, GLenum light, GLenum pname, GLint param);
+void gl3_2compat_glLightfv(void *_glfuncs, GLenum light, GLenum pname, const GLfloat* params);
+void gl3_2compat_glLightf(void *_glfuncs, GLenum light, GLenum pname, GLfloat param);
+void gl3_2compat_glFogiv(void *_glfuncs, GLenum pname, const GLint* params);
+void gl3_2compat_glFogi(void *_glfuncs, GLenum pname, GLint param);
+void gl3_2compat_glFogfv(void *_glfuncs, GLenum pname, const GLfloat* params);
+void gl3_2compat_glFogf(void *_glfuncs, GLenum pname, GLfloat param);
+void gl3_2compat_glColorMaterial(void *_glfuncs, GLenum face, GLenum mode);
+void gl3_2compat_glClipPlane(void *_glfuncs, GLenum plane, const GLdouble* equation);
+void gl3_2compat_glVertex4sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glVertex4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl3_2compat_glVertex4iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glVertex4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl3_2compat_glVertex4fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glVertex4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl3_2compat_glVertex4dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glVertex4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl3_2compat_glVertex3sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glVertex3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl3_2compat_glVertex3iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glVertex3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl3_2compat_glVertex3fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glVertex3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl3_2compat_glVertex3dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glVertex3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl3_2compat_glVertex2sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glVertex2s(void *_glfuncs, GLshort x, GLshort y);
+void gl3_2compat_glVertex2iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glVertex2i(void *_glfuncs, GLint x, GLint y);
+void gl3_2compat_glVertex2fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glVertex2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl3_2compat_glVertex2dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glVertex2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl3_2compat_glTexCoord4sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glTexCoord4s(void *_glfuncs, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl3_2compat_glTexCoord4iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glTexCoord4i(void *_glfuncs, GLint s, GLint t, GLint r, GLint q);
+void gl3_2compat_glTexCoord4fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glTexCoord4f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl3_2compat_glTexCoord4dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glTexCoord4d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl3_2compat_glTexCoord3sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glTexCoord3s(void *_glfuncs, GLshort s, GLshort t, GLshort r);
+void gl3_2compat_glTexCoord3iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glTexCoord3i(void *_glfuncs, GLint s, GLint t, GLint r);
+void gl3_2compat_glTexCoord3fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glTexCoord3f(void *_glfuncs, GLfloat s, GLfloat t, GLfloat r);
+void gl3_2compat_glTexCoord3dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glTexCoord3d(void *_glfuncs, GLdouble s, GLdouble t, GLdouble r);
+void gl3_2compat_glTexCoord2sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glTexCoord2s(void *_glfuncs, GLshort s, GLshort t);
+void gl3_2compat_glTexCoord2iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glTexCoord2i(void *_glfuncs, GLint s, GLint t);
+void gl3_2compat_glTexCoord2fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glTexCoord2f(void *_glfuncs, GLfloat s, GLfloat t);
+void gl3_2compat_glTexCoord2dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glTexCoord2d(void *_glfuncs, GLdouble s, GLdouble t);
+void gl3_2compat_glTexCoord1sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glTexCoord1s(void *_glfuncs, GLshort s);
+void gl3_2compat_glTexCoord1iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glTexCoord1i(void *_glfuncs, GLint s);
+void gl3_2compat_glTexCoord1fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glTexCoord1f(void *_glfuncs, GLfloat s);
+void gl3_2compat_glTexCoord1dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glTexCoord1d(void *_glfuncs, GLdouble s);
+void gl3_2compat_glRectsv(void *_glfuncs, const GLshort* v1, const GLshort* v2);
+void gl3_2compat_glRects(void *_glfuncs, GLshort x1, GLshort y1, GLshort x2, GLshort y2);
+void gl3_2compat_glRectiv(void *_glfuncs, const GLint* v1, const GLint* v2);
+void gl3_2compat_glRecti(void *_glfuncs, GLint x1, GLint y1, GLint x2, GLint y2);
+void gl3_2compat_glRectfv(void *_glfuncs, const GLfloat* v1, const GLfloat* v2);
+void gl3_2compat_glRectf(void *_glfuncs, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
+void gl3_2compat_glRectdv(void *_glfuncs, const GLdouble* v1, const GLdouble* v2);
+void gl3_2compat_glRectd(void *_glfuncs, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
+void gl3_2compat_glRasterPos4sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glRasterPos4s(void *_glfuncs, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl3_2compat_glRasterPos4iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glRasterPos4i(void *_glfuncs, GLint x, GLint y, GLint z, GLint w);
+void gl3_2compat_glRasterPos4fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glRasterPos4f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl3_2compat_glRasterPos4dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glRasterPos4d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl3_2compat_glRasterPos3sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glRasterPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl3_2compat_glRasterPos3iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glRasterPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl3_2compat_glRasterPos3fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glRasterPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl3_2compat_glRasterPos3dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glRasterPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl3_2compat_glRasterPos2sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glRasterPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl3_2compat_glRasterPos2iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glRasterPos2i(void *_glfuncs, GLint x, GLint y);
+void gl3_2compat_glRasterPos2fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glRasterPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl3_2compat_glRasterPos2dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glRasterPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl3_2compat_glNormal3sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glNormal3s(void *_glfuncs, GLshort nx, GLshort ny, GLshort nz);
+void gl3_2compat_glNormal3iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glNormal3i(void *_glfuncs, GLint nx, GLint ny, GLint nz);
+void gl3_2compat_glNormal3fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glNormal3f(void *_glfuncs, GLfloat nx, GLfloat ny, GLfloat nz);
+void gl3_2compat_glNormal3dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glNormal3d(void *_glfuncs, GLdouble nx, GLdouble ny, GLdouble nz);
+void gl3_2compat_glNormal3bv(void *_glfuncs, const GLbyte* v);
+void gl3_2compat_glNormal3b(void *_glfuncs, GLbyte nx, GLbyte ny, GLbyte nz);
+void gl3_2compat_glIndexsv(void *_glfuncs, const GLshort* c);
+void gl3_2compat_glIndexs(void *_glfuncs, GLshort c);
+void gl3_2compat_glIndexiv(void *_glfuncs, const GLint* c);
+void gl3_2compat_glIndexi(void *_glfuncs, GLint c);
+void gl3_2compat_glIndexfv(void *_glfuncs, const GLfloat* c);
+void gl3_2compat_glIndexf(void *_glfuncs, GLfloat c);
+void gl3_2compat_glIndexdv(void *_glfuncs, const GLdouble* c);
+void gl3_2compat_glIndexd(void *_glfuncs, GLdouble c);
+void gl3_2compat_glEnd(void *_glfuncs);
+void gl3_2compat_glEdgeFlagv(void *_glfuncs, const GLboolean* flag);
+void gl3_2compat_glEdgeFlag(void *_glfuncs, GLboolean flag);
+void gl3_2compat_glColor4usv(void *_glfuncs, const GLushort* v);
+void gl3_2compat_glColor4us(void *_glfuncs, GLushort red, GLushort green, GLushort blue, GLushort alpha);
+void gl3_2compat_glColor4uiv(void *_glfuncs, const GLuint* v);
+void gl3_2compat_glColor4ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue, GLuint alpha);
+void gl3_2compat_glColor4ubv(void *_glfuncs, const GLubyte* v);
+void gl3_2compat_glColor4ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
+void gl3_2compat_glColor4sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glColor4s(void *_glfuncs, GLshort red, GLshort green, GLshort blue, GLshort alpha);
+void gl3_2compat_glColor4iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glColor4i(void *_glfuncs, GLint red, GLint green, GLint blue, GLint alpha);
+void gl3_2compat_glColor4fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glColor4f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void gl3_2compat_glColor4dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glColor4d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
+void gl3_2compat_glColor4bv(void *_glfuncs, const GLbyte* v);
+void gl3_2compat_glColor4b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
+void gl3_2compat_glColor3usv(void *_glfuncs, const GLushort* v);
+void gl3_2compat_glColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl3_2compat_glColor3uiv(void *_glfuncs, const GLuint* v);
+void gl3_2compat_glColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl3_2compat_glColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl3_2compat_glColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl3_2compat_glColor3sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl3_2compat_glColor3iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl3_2compat_glColor3fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl3_2compat_glColor3dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl3_2compat_glColor3bv(void *_glfuncs, const GLbyte* v);
+void gl3_2compat_glColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl3_2compat_glBitmap(void *_glfuncs, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap);
+void gl3_2compat_glBegin(void *_glfuncs, GLenum mode);
+void gl3_2compat_glListBase(void *_glfuncs, GLuint base);
+GLuint gl3_2compat_glGenLists(void *_glfuncs, GLsizei range_);
+void gl3_2compat_glDeleteLists(void *_glfuncs, GLuint list, GLsizei range_);
+void gl3_2compat_glCallLists(void *_glfuncs, GLsizei n, GLenum gltype, const GLvoid* lists);
+void gl3_2compat_glCallList(void *_glfuncs, GLuint list);
+void gl3_2compat_glEndList(void *_glfuncs);
+void gl3_2compat_glNewList(void *_glfuncs, GLuint list, GLenum mode);
+void gl3_2compat_glPushClientAttrib(void *_glfuncs, GLbitfield mask);
+void gl3_2compat_glPopClientAttrib(void *_glfuncs);
+void gl3_2compat_glPrioritizeTextures(void *_glfuncs, GLsizei n, const GLuint* textures, const GLfloat* priorities);
+GLboolean gl3_2compat_glAreTexturesResident(void *_glfuncs, GLsizei n, const GLuint* textures, GLboolean* residences);
+void gl3_2compat_glVertexPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_2compat_glTexCoordPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_2compat_glNormalPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_2compat_glInterleavedArrays(void *_glfuncs, GLenum format, GLsizei stride, const GLvoid* pointer);
+void gl3_2compat_glIndexPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_2compat_glEnableClientState(void *_glfuncs, GLenum array);
+void gl3_2compat_glEdgeFlagPointer(void *_glfuncs, GLsizei stride, const GLvoid* pointer);
+void gl3_2compat_glDisableClientState(void *_glfuncs, GLenum array);
+void gl3_2compat_glColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_2compat_glArrayElement(void *_glfuncs, GLint i);
+void gl3_2compat_glResetMinmax(void *_glfuncs, GLenum target);
+void gl3_2compat_glResetHistogram(void *_glfuncs, GLenum target);
+void gl3_2compat_glMinmax(void *_glfuncs, GLenum target, GLenum internalFormat, GLboolean sink);
+void gl3_2compat_glHistogram(void *_glfuncs, GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink);
+void gl3_2compat_glGetMinmaxParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_2compat_glGetMinmaxParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl3_2compat_glGetMinmax(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl3_2compat_glGetHistogramParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_2compat_glGetHistogramParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl3_2compat_glGetHistogram(void *_glfuncs, GLenum target, GLboolean reset, GLenum format, GLenum gltype, GLvoid* values);
+void gl3_2compat_glSeparableFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* row, const GLvoid* column);
+void gl3_2compat_glGetSeparableFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* row, GLvoid* column, GLvoid* span);
+void gl3_2compat_glGetConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_2compat_glGetConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl3_2compat_glGetConvolutionFilter(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* image);
+void gl3_2compat_glCopyConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height);
+void gl3_2compat_glCopyConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl3_2compat_glConvolutionParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl3_2compat_glConvolutionParameteri(void *_glfuncs, GLenum target, GLenum pname, GLint params);
+void gl3_2compat_glConvolutionParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl3_2compat_glConvolutionParameterf(void *_glfuncs, GLenum target, GLenum pname, GLfloat params);
+void gl3_2compat_glConvolutionFilter2D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum gltype, const GLvoid* image);
+void gl3_2compat_glConvolutionFilter1D(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* image);
+void gl3_2compat_glCopyColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+void gl3_2compat_glColorSubTable(void *_glfuncs, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum gltype, const GLvoid* data);
+void gl3_2compat_glGetColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, GLint* params);
+void gl3_2compat_glGetColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, GLfloat* params);
+void gl3_2compat_glGetColorTable(void *_glfuncs, GLenum target, GLenum format, GLenum gltype, GLvoid* table);
+void gl3_2compat_glCopyColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+void gl3_2compat_glColorTableParameteriv(void *_glfuncs, GLenum target, GLenum pname, const GLint* params);
+void gl3_2compat_glColorTableParameterfv(void *_glfuncs, GLenum target, GLenum pname, const GLfloat* params);
+void gl3_2compat_glColorTable(void *_glfuncs, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum gltype, const GLvoid* table);
+void gl3_2compat_glMultTransposeMatrixd(void *_glfuncs, const GLdouble* m);
+void gl3_2compat_glMultTransposeMatrixf(void *_glfuncs, const GLfloat* m);
+void gl3_2compat_glLoadTransposeMatrixd(void *_glfuncs, const GLdouble* m);
+void gl3_2compat_glLoadTransposeMatrixf(void *_glfuncs, const GLfloat* m);
+void gl3_2compat_glMultiTexCoord4sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl3_2compat_glMultiTexCoord4s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+void gl3_2compat_glMultiTexCoord4iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl3_2compat_glMultiTexCoord4i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r, GLint q);
+void gl3_2compat_glMultiTexCoord4fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl3_2compat_glMultiTexCoord4f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void gl3_2compat_glMultiTexCoord4dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl3_2compat_glMultiTexCoord4d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+void gl3_2compat_glMultiTexCoord3sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl3_2compat_glMultiTexCoord3s(void *_glfuncs, GLenum target, GLshort s, GLshort t, GLshort r);
+void gl3_2compat_glMultiTexCoord3iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl3_2compat_glMultiTexCoord3i(void *_glfuncs, GLenum target, GLint s, GLint t, GLint r);
+void gl3_2compat_glMultiTexCoord3fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl3_2compat_glMultiTexCoord3f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t, GLfloat r);
+void gl3_2compat_glMultiTexCoord3dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl3_2compat_glMultiTexCoord3d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t, GLdouble r);
+void gl3_2compat_glMultiTexCoord2sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl3_2compat_glMultiTexCoord2s(void *_glfuncs, GLenum target, GLshort s, GLshort t);
+void gl3_2compat_glMultiTexCoord2iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl3_2compat_glMultiTexCoord2i(void *_glfuncs, GLenum target, GLint s, GLint t);
+void gl3_2compat_glMultiTexCoord2fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl3_2compat_glMultiTexCoord2f(void *_glfuncs, GLenum target, GLfloat s, GLfloat t);
+void gl3_2compat_glMultiTexCoord2dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl3_2compat_glMultiTexCoord2d(void *_glfuncs, GLenum target, GLdouble s, GLdouble t);
+void gl3_2compat_glMultiTexCoord1sv(void *_glfuncs, GLenum target, const GLshort* v);
+void gl3_2compat_glMultiTexCoord1s(void *_glfuncs, GLenum target, GLshort s);
+void gl3_2compat_glMultiTexCoord1iv(void *_glfuncs, GLenum target, const GLint* v);
+void gl3_2compat_glMultiTexCoord1i(void *_glfuncs, GLenum target, GLint s);
+void gl3_2compat_glMultiTexCoord1fv(void *_glfuncs, GLenum target, const GLfloat* v);
+void gl3_2compat_glMultiTexCoord1f(void *_glfuncs, GLenum target, GLfloat s);
+void gl3_2compat_glMultiTexCoord1dv(void *_glfuncs, GLenum target, const GLdouble* v);
+void gl3_2compat_glMultiTexCoord1d(void *_glfuncs, GLenum target, GLdouble s);
+void gl3_2compat_glClientActiveTexture(void *_glfuncs, GLenum texture);
+void gl3_2compat_glWindowPos3sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glWindowPos3s(void *_glfuncs, GLshort x, GLshort y, GLshort z);
+void gl3_2compat_glWindowPos3iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glWindowPos3i(void *_glfuncs, GLint x, GLint y, GLint z);
+void gl3_2compat_glWindowPos3fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glWindowPos3f(void *_glfuncs, GLfloat x, GLfloat y, GLfloat z);
+void gl3_2compat_glWindowPos3dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glWindowPos3d(void *_glfuncs, GLdouble x, GLdouble y, GLdouble z);
+void gl3_2compat_glWindowPos2sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glWindowPos2s(void *_glfuncs, GLshort x, GLshort y);
+void gl3_2compat_glWindowPos2iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glWindowPos2i(void *_glfuncs, GLint x, GLint y);
+void gl3_2compat_glWindowPos2fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glWindowPos2f(void *_glfuncs, GLfloat x, GLfloat y);
+void gl3_2compat_glWindowPos2dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glWindowPos2d(void *_glfuncs, GLdouble x, GLdouble y);
+void gl3_2compat_glSecondaryColorPointer(void *_glfuncs, GLint size, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_2compat_glSecondaryColor3usv(void *_glfuncs, const GLushort* v);
+void gl3_2compat_glSecondaryColor3us(void *_glfuncs, GLushort red, GLushort green, GLushort blue);
+void gl3_2compat_glSecondaryColor3uiv(void *_glfuncs, const GLuint* v);
+void gl3_2compat_glSecondaryColor3ui(void *_glfuncs, GLuint red, GLuint green, GLuint blue);
+void gl3_2compat_glSecondaryColor3ubv(void *_glfuncs, const GLubyte* v);
+void gl3_2compat_glSecondaryColor3ub(void *_glfuncs, GLubyte red, GLubyte green, GLubyte blue);
+void gl3_2compat_glSecondaryColor3sv(void *_glfuncs, const GLshort* v);
+void gl3_2compat_glSecondaryColor3s(void *_glfuncs, GLshort red, GLshort green, GLshort blue);
+void gl3_2compat_glSecondaryColor3iv(void *_glfuncs, const GLint* v);
+void gl3_2compat_glSecondaryColor3i(void *_glfuncs, GLint red, GLint green, GLint blue);
+void gl3_2compat_glSecondaryColor3fv(void *_glfuncs, const GLfloat* v);
+void gl3_2compat_glSecondaryColor3f(void *_glfuncs, GLfloat red, GLfloat green, GLfloat blue);
+void gl3_2compat_glSecondaryColor3dv(void *_glfuncs, const GLdouble* v);
+void gl3_2compat_glSecondaryColor3d(void *_glfuncs, GLdouble red, GLdouble green, GLdouble blue);
+void gl3_2compat_glSecondaryColor3bv(void *_glfuncs, const GLbyte* v);
+void gl3_2compat_glSecondaryColor3b(void *_glfuncs, GLbyte red, GLbyte green, GLbyte blue);
+void gl3_2compat_glFogCoordPointer(void *_glfuncs, GLenum gltype, GLsizei stride, const GLvoid* pointer);
+void gl3_2compat_glFogCoorddv(void *_glfuncs, const GLdouble* coord);
+void gl3_2compat_glFogCoordd(void *_glfuncs, GLdouble coord);
+void gl3_2compat_glFogCoordfv(void *_glfuncs, const GLfloat* coord);
+void gl3_2compat_glFogCoordf(void *_glfuncs, GLfloat coord);
+void gl3_2compat_glVertexAttrib4usv(void *_glfuncs, GLuint index, const GLushort* v);
+void gl3_2compat_glVertexAttrib4uiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl3_2compat_glVertexAttrib4ubv(void *_glfuncs, GLuint index, const GLubyte* v);
+void gl3_2compat_glVertexAttrib4sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl3_2compat_glVertexAttrib4s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
+void gl3_2compat_glVertexAttrib4iv(void *_glfuncs, GLuint index, const GLint* v);
+void gl3_2compat_glVertexAttrib4fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl3_2compat_glVertexAttrib4f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+void gl3_2compat_glVertexAttrib4dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl3_2compat_glVertexAttrib4d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+void gl3_2compat_glVertexAttrib4bv(void *_glfuncs, GLuint index, const GLbyte* v);
+void gl3_2compat_glVertexAttrib4Nusv(void *_glfuncs, GLuint index, const GLushort* v);
+void gl3_2compat_glVertexAttrib4Nuiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl3_2compat_glVertexAttrib4Nubv(void *_glfuncs, GLuint index, const GLubyte* v);
+void gl3_2compat_glVertexAttrib4Nub(void *_glfuncs, GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
+void gl3_2compat_glVertexAttrib4Nsv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl3_2compat_glVertexAttrib4Niv(void *_glfuncs, GLuint index, const GLint* v);
+void gl3_2compat_glVertexAttrib4Nbv(void *_glfuncs, GLuint index, const GLbyte* v);
+void gl3_2compat_glVertexAttrib3sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl3_2compat_glVertexAttrib3s(void *_glfuncs, GLuint index, GLshort x, GLshort y, GLshort z);
+void gl3_2compat_glVertexAttrib3fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl3_2compat_glVertexAttrib3f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y, GLfloat z);
+void gl3_2compat_glVertexAttrib3dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl3_2compat_glVertexAttrib3d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y, GLdouble z);
+void gl3_2compat_glVertexAttrib2sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl3_2compat_glVertexAttrib2s(void *_glfuncs, GLuint index, GLshort x, GLshort y);
+void gl3_2compat_glVertexAttrib2fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl3_2compat_glVertexAttrib2f(void *_glfuncs, GLuint index, GLfloat x, GLfloat y);
+void gl3_2compat_glVertexAttrib2dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl3_2compat_glVertexAttrib2d(void *_glfuncs, GLuint index, GLdouble x, GLdouble y);
+void gl3_2compat_glVertexAttrib1sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl3_2compat_glVertexAttrib1s(void *_glfuncs, GLuint index, GLshort x);
+void gl3_2compat_glVertexAttrib1fv(void *_glfuncs, GLuint index, const GLfloat* v);
+void gl3_2compat_glVertexAttrib1f(void *_glfuncs, GLuint index, GLfloat x);
+void gl3_2compat_glVertexAttrib1dv(void *_glfuncs, GLuint index, const GLdouble* v);
+void gl3_2compat_glVertexAttrib1d(void *_glfuncs, GLuint index, GLdouble x);
+void gl3_2compat_glVertexAttribI4usv(void *_glfuncs, GLuint index, const GLushort* v);
+void gl3_2compat_glVertexAttribI4ubv(void *_glfuncs, GLuint index, const GLubyte* v);
+void gl3_2compat_glVertexAttribI4sv(void *_glfuncs, GLuint index, const GLshort* v);
+void gl3_2compat_glVertexAttribI4bv(void *_glfuncs, GLuint index, const GLbyte* v);
+void gl3_2compat_glVertexAttribI4uiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl3_2compat_glVertexAttribI3uiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl3_2compat_glVertexAttribI2uiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl3_2compat_glVertexAttribI1uiv(void *_glfuncs, GLuint index, const GLuint* v);
+void gl3_2compat_glVertexAttribI4iv(void *_glfuncs, GLuint index, const GLint* v);
+void gl3_2compat_glVertexAttribI3iv(void *_glfuncs, GLuint index, const GLint* v);
+void gl3_2compat_glVertexAttribI2iv(void *_glfuncs, GLuint index, const GLint* v);
+void gl3_2compat_glVertexAttribI1iv(void *_glfuncs, GLuint index, const GLint* v);
+void gl3_2compat_glVertexAttribI4ui(void *_glfuncs, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
+void gl3_2compat_glVertexAttribI3ui(void *_glfuncs, GLuint index, GLuint x, GLuint y, GLuint z);
+void gl3_2compat_glVertexAttribI2ui(void *_glfuncs, GLuint index, GLuint x, GLuint y);
+void gl3_2compat_glVertexAttribI1ui(void *_glfuncs, GLuint index, GLuint x);
+void gl3_2compat_glVertexAttribI4i(void *_glfuncs, GLuint index, GLint x, GLint y, GLint z, GLint w);
+void gl3_2compat_glVertexAttribI3i(void *_glfuncs, GLuint index, GLint x, GLint y, GLint z);
+void gl3_2compat_glVertexAttribI2i(void *_glfuncs, GLuint index, GLint x, GLint y);
+void gl3_2compat_glVertexAttribI1i(void *_glfuncs, GLuint index, GLint x);
+
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2compat/gl.go b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2compat/gl.go
new file mode 100644
index 000000000..3cf74a01e
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/obscuren/qml/gl/3.2compat/gl.go
@@ -0,0 +1,7973 @@
+// ** file automatically generated by glgen -- do not edit manually **
+
+package GL
+
+// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
+// #cgo LDFLAGS: -lstdc++
+// #cgo pkg-config: Qt5Core Qt5OpenGL
+//
+// #include "funcs.h"
+//
+// void free(void*);
+//
+import "C"
+
+import (
+ "fmt"
+ "reflect"
+ "unsafe"
+
+ "gopkg.in/qml.v1/gl/glbase"
+)
+
+// API returns a value that offers methods matching the OpenGL version 3.2 API.
+//
+// The returned API must not be used after the provided OpenGL context becomes invalid.
+func API(context glbase.Contexter) *GL {
+ gl := &GL{}
+ gl.funcs = C.gl3_2compat_funcs()
+ if gl.funcs == nil {
+ panic(fmt.Errorf("OpenGL version 3.2 is not available"))
+ }
+ return gl
+}
+
+// GL implements the OpenGL version 3.2 API. Values of this
+// type must be created via the API function, and it must not be used after
+// the associated OpenGL context becomes invalid.
+type GL struct {
+ funcs unsafe.Pointer
+}
+
+const (
+ FALSE = 0
+ TRUE = 1
+ NONE = 0
+
+ BYTE = 0x1400
+ UNSIGNED_BYTE = 0x1401
+ SHORT = 0x1402
+ UNSIGNED_SHORT = 0x1403
+ INT = 0x1404
+ UNSIGNED_INT = 0x1405
+ FLOAT = 0x1406
+ N2_BYTES = 0x1407
+ N3_BYTES = 0x1408
+ N4_BYTES = 0x1409
+ DOUBLE = 0x140A
+ HALF_FLOAT = 0x140B
+
+ ACCUM = 0x0100
+ LOAD = 0x0101
+ RETURN = 0x0102
+ MULT = 0x0103
+ ADD = 0x0104
+
+ ACCUM_BUFFER_BIT = 0x00000200
+ ALL_ATTRIB_BITS = 0xFFFFFFFF
+ COLOR_BUFFER_BIT = 0x00004000
+ CURRENT_BIT = 0x00000001
+ DEPTH_BUFFER_BIT = 0x00000100
+ ENABLE_BIT = 0x00002000
+ EVAL_BIT = 0x00010000
+ FOG_BIT = 0x00000080
+ HINT_BIT = 0x00008000
+ LIGHTING_BIT = 0x00000040
+ LINE_BIT = 0x00000004
+ LIST_BIT = 0x00020000
+ MULTISAMPLE_BIT = 0x20000000
+ PIXEL_MODE_BIT = 0x00000020
+ POINT_BIT = 0x00000002
+ POLYGON_BIT = 0x00000008
+ POLYGON_STIPPLE_BIT = 0x00000010
+ SCISSOR_BIT = 0x00080000
+ STENCIL_BUFFER_BIT = 0x00000400
+ TEXTURE_BIT = 0x00040000
+ TRANSFORM_BIT = 0x00001000
+ VIEWPORT_BIT = 0x00000800
+
+ ALWAYS = 0x0207
+ EQUAL = 0x0202
+ GEQUAL = 0x0206
+ GREATER = 0x0204
+ LEQUAL = 0x0203
+ LESS = 0x0201
+ NEVER = 0x0200
+ NOTEQUAL = 0x0205
+
+ LOGIC_OP = 0x0BF1
+
+ DST_ALPHA = 0x0304
+ ONE = 1
+ ONE_MINUS_DST_ALPHA = 0x0305
+ ONE_MINUS_SRC_ALPHA = 0x0303
+ ONE_MINUS_SRC_COLOR = 0x0301
+ SRC_ALPHA = 0x0302
+ SRC_COLOR = 0x0300
+ ZERO = 0
+
+ DST_COLOR = 0x0306
+ ONE_MINUS_DST_COLOR = 0x0307
+ SRC_ALPHA_SATURATE = 0x0308
+
+ CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF
+ CLIENT_PIXEL_STORE_BIT = 0x00000001
+ CLIENT_VERTEX_ARRAY_BIT = 0x00000002
+
+ CLIP_DISTANCE0 = 0x3000
+ CLIP_DISTANCE1 = 0x3001
+ CLIP_DISTANCE2 = 0x3002
+ CLIP_DISTANCE3 = 0x3003
+ CLIP_DISTANCE4 = 0x3004
+ CLIP_DISTANCE5 = 0x3005
+ CLIP_DISTANCE6 = 0x3006
+ CLIP_DISTANCE7 = 0x3007
+ CLIP_PLANE0 = 0x3000
+ CLIP_PLANE1 = 0x3001
+ CLIP_PLANE2 = 0x3002
+ CLIP_PLANE3 = 0x3003
+ CLIP_PLANE4 = 0x3004
+ CLIP_PLANE5 = 0x3005
+
+ BACK = 0x0405
+ FRONT = 0x0404
+ FRONT_AND_BACK = 0x0408
+
+ AMBIENT = 0x1200
+ AMBIENT_AND_DIFFUSE = 0x1602
+ DIFFUSE = 0x1201
+ EMISSION = 0x1600
+ SPECULAR = 0x1202
+
+ CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x00000001
+
+ CONTEXT_COMPATIBILITY_PROFILE_BIT = 0x00000002
+ CONTEXT_CORE_PROFILE_BIT = 0x00000001
+
+ AUX0 = 0x0409
+ AUX1 = 0x040A
+ AUX2 = 0x040B
+ AUX3 = 0x040C
+ BACK_LEFT = 0x0402
+ BACK_RIGHT = 0x0403
+ FRONT_LEFT = 0x0400
+ FRONT_RIGHT = 0x0401
+ LEFT = 0x0406
+ RIGHT = 0x0407
+
+ ALPHA_TEST = 0x0BC0
+ AUTO_NORMAL = 0x0D80
+ BLEND = 0x0BE2
+ COLOR_ARRAY = 0x8076
+ COLOR_LOGIC_OP = 0x0BF2
+ COLOR_MATERIAL = 0x0B57
+ CULL_FACE = 0x0B44
+ DEPTH_TEST = 0x0B71
+ DITHER = 0x0BD0
+ EDGE_FLAG_ARRAY = 0x8079
+ FOG = 0x0B60
+ INDEX_ARRAY = 0x8077
+ INDEX_LOGIC_OP = 0x0BF1
+ LIGHT0 = 0x4000
+ LIGHT1 = 0x4001
+ LIGHT2 = 0x4002
+ LIGHT3 = 0x4003
+ LIGHT4 = 0x4004
+ LIGHT5 = 0x4005
+ LIGHT6 = 0x4006
+ LIGHT7 = 0x4007
+ LIGHTING = 0x0B50
+ LINE_SMOOTH = 0x0B20
+ LINE_STIPPLE = 0x0B24
+ MAP1_COLOR_4 = 0x0D90
+ MAP1_INDEX = 0x0D91
+ MAP1_NORMAL = 0x0D92
+ MAP1_TEXTURE_COORD_1 = 0x0D93
+ MAP1_TEXTURE_COORD_2 = 0x0D94
+ MAP1_TEXTURE_COORD_3 = 0x0D95
+ MAP1_TEXTURE_COORD_4 = 0x0D96
+ MAP1_VERTEX_3 = 0x0D97
+ MAP1_VERTEX_4 = 0x0D98
+ MAP2_COLOR_4 = 0x0DB0
+ MAP2_INDEX = 0x0DB1
+ MAP2_NORMAL = 0x0DB2
+ MAP2_TEXTURE_COORD_1 = 0x0DB3
+ MAP2_TEXTURE_COORD_2 = 0x0DB4
+ MAP2_TEXTURE_COORD_3 = 0x0DB5
+ MAP2_TEXTURE_COORD_4 = 0x0DB6
+ MAP2_VERTEX_3 = 0x0DB7
+ MAP2_VERTEX_4 = 0x0DB8
+ NORMALIZE = 0x0BA1
+ NORMAL_ARRAY = 0x8075
+ POINT_SMOOTH = 0x0B10
+ POLYGON_OFFSET_FILL = 0x8037
+ POLYGON_OFFSET_LINE = 0x2A02
+ POLYGON_OFFSET_POINT = 0x2A01
+ POLYGON_SMOOTH = 0x0B41
+ POLYGON_STIPPLE = 0x0B42
+ SCISSOR_TEST = 0x0C11
+ STENCIL_TEST = 0x0B90
+ TEXTURE_1D = 0x0DE0
+ TEXTURE_2D = 0x0DE1
+ TEXTURE_COORD_ARRAY = 0x8078
+ TEXTURE_GEN_Q = 0x0C63
+ TEXTURE_GEN_R = 0x0C62
+ TEXTURE_GEN_S = 0x0C60
+ TEXTURE_GEN_T = 0x0C61
+ VERTEX_ARRAY = 0x8074
+
+ INVALID_ENUM = 0x0500
+ INVALID_FRAMEBUFFER_OPERATION = 0x0506
+ INVALID_OPERATION = 0x0502
+ INVALID_VALUE = 0x0501
+ NO_ERROR = 0
+ OUT_OF_MEMORY = 0x0505
+ STACK_OVERFLOW = 0x0503
+ STACK_UNDERFLOW = 0x0504
+
+ N2D = 0x0600
+ N3D = 0x0601
+ N3D_COLOR = 0x0602
+ N3D_COLOR_TEXTURE = 0x0603
+ N4D_COLOR_TEXTURE = 0x0604
+
+ BITMAP_TOKEN = 0x0704
+ COPY_PIXEL_TOKEN = 0x0706
+ DRAW_PIXEL_TOKEN = 0x0705
+ LINE_RESET_TOKEN = 0x0707
+ LINE_TOKEN = 0x0702
+ PASS_THROUGH_TOKEN = 0x0700
+ POINT_TOKEN = 0x0701
+ POLYGON_TOKEN = 0x0703
+
+ EXP = 0x0800
+ EXP2 = 0x0801
+ LINEAR = 0x2601
+
+ FOG_COLOR = 0x0B66
+ FOG_DENSITY = 0x0B62
+ FOG_END = 0x0B64
+ FOG_INDEX = 0x0B61
+ FOG_MODE = 0x0B65
+ FOG_START = 0x0B63
+
+ CCW = 0x0901
+ CW = 0x0900
+
+ COEFF = 0x0A00
+ DOMAIN = 0x0A02
+ ORDER = 0x0A01
+
+ PIXEL_MAP_A_TO_A = 0x0C79
+ PIXEL_MAP_B_TO_B = 0x0C78
+ PIXEL_MAP_G_TO_G = 0x0C77
+ PIXEL_MAP_I_TO_A = 0x0C75
+ PIXEL_MAP_I_TO_B = 0x0C74
+ PIXEL_MAP_I_TO_G = 0x0C73
+ PIXEL_MAP_I_TO_I = 0x0C70
+ PIXEL_MAP_I_TO_R = 0x0C72
+ PIXEL_MAP_R_TO_R = 0x0C76
+ PIXEL_MAP_S_TO_S = 0x0C71
+
+ ACCUM_ALPHA_BITS = 0x0D5B
+ ACCUM_BLUE_BITS = 0x0D5A
+ ACCUM_CLEAR_VALUE = 0x0B80
+ ACCUM_GREEN_BITS = 0x0D59
+ ACCUM_RED_BITS = 0x0D58
+ ALIASED_LINE_WIDTH_RANGE = 0x846E
+ ALIASED_POINT_SIZE_RANGE = 0x846D
+ ALPHA_BIAS = 0x0D1D
+ ALPHA_BITS = 0x0D55
+ ALPHA_SCALE = 0x0D1C
+ ALPHA_TEST_FUNC = 0x0BC1
+ ALPHA_TEST_REF = 0x0BC2
+ ATTRIB_STACK_DEPTH = 0x0BB0
+ AUX_BUFFERS = 0x0C00
+ BLEND_DST = 0x0BE0
+ BLEND_SRC = 0x0BE1
+ BLUE_BIAS = 0x0D1B
+ BLUE_BITS = 0x0D54
+ BLUE_SCALE = 0x0D1A
+ CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1
+ COLOR_ARRAY_SIZE = 0x8081
+ COLOR_ARRAY_STRIDE = 0x8083
+ COLOR_ARRAY_TYPE = 0x8082
+ COLOR_CLEAR_VALUE = 0x0C22
+ COLOR_MATERIAL_FACE = 0x0B55
+ COLOR_MATERIAL_PARAMETER = 0x0B56
+ COLOR_WRITEMASK = 0x0C23
+ CULL_FACE_MODE = 0x0B45
+ CURRENT_COLOR = 0x0B00
+ CURRENT_INDEX = 0x0B01
+ CURRENT_NORMAL = 0x0B02
+ CURRENT_RASTER_COLOR = 0x0B04
+ CURRENT_RASTER_DISTANCE = 0x0B09
+ CURRENT_RASTER_INDEX = 0x0B05
+ CURRENT_RASTER_POSITION = 0x0B07
+ CURRENT_RASTER_POSITION_VALID = 0x0B08
+ CURRENT_RASTER_TEXTURE_COORDS = 0x0B06
+ CURRENT_TEXTURE_COORDS = 0x0B03
+ DEPTH_BIAS = 0x0D1F
+ DEPTH_BITS = 0x0D56
+ DEPTH_CLEAR_VALUE = 0x0B73
+ DEPTH_FUNC = 0x0B74
+ DEPTH_RANGE = 0x0B70
+ DEPTH_SCALE = 0x0D1E
+ DEPTH_WRITEMASK = 0x0B72
+ DOUBLEBUFFER = 0x0C32
+ DRAW_BUFFER = 0x0C01
+ EDGE_FLAG = 0x0B43
+ EDGE_FLAG_ARRAY_STRIDE = 0x808C
+ FEEDBACK_BUFFER_SIZE = 0x0DF1
+ FEEDBACK_BUFFER_TYPE = 0x0DF2
+ FOG_HINT = 0x0C54
+ FRONT_FACE = 0x0B46
+ GREEN_BIAS = 0x0D19
+ GREEN_BITS = 0x0D53
+ GREEN_SCALE = 0x0D18
+ INDEX_ARRAY_STRIDE = 0x8086
+ INDEX_ARRAY_TYPE = 0x8085
+ INDEX_BITS = 0x0D51
+ INDEX_CLEAR_VALUE = 0x0C20
+ INDEX_MODE = 0x0C30
+ INDEX_OFFSET = 0x0D13
+ INDEX_SHIFT = 0x0D12
+ INDEX_WRITEMASK = 0x0C21
+ LIGHT_MODEL_AMBIENT = 0x0B53
+ LIGHT_MODEL_COLOR_CONTROL = 0x81F8
+ LIGHT_MODEL_LOCAL_VIEWER = 0x0B51
+ LIGHT_MODEL_TWO_SIDE = 0x0B52
+ LINE_SMOOTH_HINT = 0x0C52
+ LINE_STIPPLE_PATTERN = 0x0B25
+ LINE_STIPPLE_REPEAT = 0x0B26
+ LINE_WIDTH = 0x0B21
+ LINE_WIDTH_GRANULARITY = 0x0B23
+ LINE_WIDTH_RANGE = 0x0B22
+ LIST_BASE = 0x0B32
+ LIST_INDEX = 0x0B33
+ LIST_MODE = 0x0B30
+ LOGIC_OP_MODE = 0x0BF0
+ MAP1_GRID_DOMAIN = 0x0DD0
+ MAP1_GRID_SEGMENTS = 0x0DD1
+ MAP2_GRID_DOMAIN = 0x0DD2
+ MAP2_GRID_SEGMENTS = 0x0DD3
+ MAP_COLOR = 0x0D10
+ MAP_STENCIL = 0x0D11
+ MATRIX_MODE = 0x0BA0
+ MAX_ATTRIB_STACK_DEPTH = 0x0D35
+ MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B
+ MAX_CLIP_DISTANCES = 0x0D32
+ MAX_CLIP_PLANES = 0x0D32
+ MAX_EVAL_ORDER = 0x0D30
+ MAX_LIGHTS = 0x0D31
+ MAX_LIST_NESTING = 0x0B31
+ MAX_MODELVIEW_STACK_DEPTH = 0x0D36
+ MAX_NAME_STACK_DEPTH = 0x0D37
+ MAX_PIXEL_MAP_TABLE = 0x0D34
+ MAX_PROJECTION_STACK_DEPTH = 0x0D38
+ MAX_TEXTURE_SIZE = 0x0D33
+ MAX_TEXTURE_STACK_DEPTH = 0x0D39
+ MAX_VIEWPORT_DIMS = 0x0D3A
+ MODELVIEW_MATRIX = 0x0BA6
+ MODELVIEW_STACK_DEPTH = 0x0BA3
+ NAME_STACK_DEPTH = 0x0D70
+ NORMAL_ARRAY_STRIDE = 0x807F
+ NORMAL_ARRAY_TYPE = 0x807E
+ PACK_ALIGNMENT = 0x0D05
+ PACK_LSB_FIRST = 0x0D01
+ PACK_ROW_LENGTH = 0x0D02
+ PACK_SKIP_PIXELS = 0x0D04
+ PACK_SKIP_ROWS = 0x0D03
+ PACK_SWAP_BYTES = 0x0D00
+ PERSPECTIVE_CORRECTION_HINT = 0x0C50
+ PIXEL_MAP_A_TO_A_SIZE = 0x0CB9
+ PIXEL_MAP_B_TO_B_SIZE = 0x0CB8
+ PIXEL_MAP_G_TO_G_SIZE = 0x0CB7
+ PIXEL_MAP_I_TO_A_SIZE = 0x0CB5
+ PIXEL_MAP_I_TO_B_SIZE = 0x0CB4
+ PIXEL_MAP_I_TO_G_SIZE = 0x0CB3
+ PIXEL_MAP_I_TO_I_SIZE = 0x0CB0
+ PIXEL_MAP_I_TO_R_SIZE = 0x0CB2
+ PIXEL_MAP_R_TO_R_SIZE = 0x0CB6
+ PIXEL_MAP_S_TO_S_SIZE = 0x0CB1
+ POINT_SIZE = 0x0B11
+ POINT_SIZE_GRANULARITY = 0x0B13
+ POINT_SIZE_RANGE = 0x0B12
+ POINT_SMOOTH_HINT = 0x0C51
+ POLYGON_MODE = 0x0B40
+ POLYGON_OFFSET_FACTOR = 0x8038
+ POLYGON_OFFSET_UNITS = 0x2A00
+ POLYGON_SMOOTH_HINT = 0x0C53
+ PROJECTION_MATRIX = 0x0BA7
+ PROJECTION_STACK_DEPTH = 0x0BA4
+ READ_BUFFER = 0x0C02
+ RED_BIAS = 0x0D15
+ RED_BITS = 0x0D52
+ RED_SCALE = 0x0D14
+ RENDER_MODE = 0x0C40
+ RGBA_MODE = 0x0C31
+ SCISSOR_BOX = 0x0C10
+ SELECTION_BUFFER_SIZE = 0x0DF4
+ SHADE_MODEL = 0x0B54
+ SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23
+ SMOOTH_LINE_WIDTH_RANGE = 0x0B22
+ SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13
+ SMOOTH_POINT_SIZE_RANGE = 0x0B12
+ STENCIL_BITS = 0x0D57
+ STENCIL_CLEAR_VALUE = 0x0B91
+ STENCIL_FAIL = 0x0B94
+ STENCIL_FUNC = 0x0B92
+ STENCIL_PASS_DEPTH_FAIL = 0x0B95
+ STENCIL_PASS_DEPTH_PASS = 0x0B96
+ STENCIL_REF = 0x0B97
+ STENCIL_VALUE_MASK = 0x0B93
+ STENCIL_WRITEMASK = 0x0B98
+ STEREO = 0x0C33
+ SUBPIXEL_BITS = 0x0D50
+ TEXTURE_BINDING_1D = 0x8068
+ TEXTURE_BINDING_2D = 0x8069
+ TEXTURE_BINDING_3D = 0x806A
+ TEXTURE_COORD_ARRAY_SIZE = 0x8088
+ TEXTURE_COORD_ARRAY_STRIDE = 0x808A
+ TEXTURE_COORD_ARRAY_TYPE = 0x8089
+ TEXTURE_MATRIX = 0x0BA8
+ TEXTURE_STACK_DEPTH = 0x0BA5
+ UNPACK_ALIGNMENT = 0x0CF5
+ UNPACK_LSB_FIRST = 0x0CF1
+ UNPACK_ROW_LENGTH = 0x0CF2
+ UNPACK_SKIP_PIXELS = 0x0CF4
+ UNPACK_SKIP_ROWS = 0x0CF3
+ UNPACK_SWAP_BYTES = 0x0CF0
+ VERTEX_ARRAY_SIZE = 0x807A
+ VERTEX_ARRAY_STRIDE = 0x807C
+ VERTEX_ARRAY_TYPE = 0x807B
+ VIEWPORT = 0x0BA2
+ ZOOM_X = 0x0D16
+ ZOOM_Y = 0x0D17
+
+ COLOR_ARRAY_POINTER = 0x8090
+ EDGE_FLAG_ARRAY_POINTER = 0x8093
+ FEEDBACK_BUFFER_POINTER = 0x0DF0
+ INDEX_ARRAY_POINTER = 0x8091
+ NORMAL_ARRAY_POINTER = 0x808F
+ SELECTION_BUFFER_POINTER = 0x0DF3
+ TEXTURE_COORD_ARRAY_POINTER = 0x8092
+ VERTEX_ARRAY_POINTER = 0x808E
+
+ TEXTURE_ALPHA_SIZE = 0x805F
+ TEXTURE_BLUE_SIZE = 0x805E
+ TEXTURE_BORDER = 0x1005
+ TEXTURE_BORDER_COLOR = 0x1004
+ TEXTURE_COMPONENTS = 0x1003
+ TEXTURE_GREEN_SIZE = 0x805D
+ TEXTURE_HEIGHT = 0x1001
+ TEXTURE_INTENSITY_SIZE = 0x8061
+ TEXTURE_INTERNAL_FORMAT = 0x1003
+ TEXTURE_LUMINANCE_SIZE = 0x8060
+ TEXTURE_MAG_FILTER = 0x2800
+ TEXTURE_MIN_FILTER = 0x2801
+ TEXTURE_PRIORITY = 0x8066
+ TEXTURE_RED_SIZE = 0x805C
+ TEXTURE_RESIDENT = 0x8067
+ TEXTURE_WIDTH = 0x1000
+ TEXTURE_WRAP_S = 0x2802
+ TEXTURE_WRAP_T = 0x2803
+
+ DONT_CARE = 0x1100
+ FASTEST = 0x1101
+ NICEST = 0x1102
+
+ FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B
+ GENERATE_MIPMAP_HINT = 0x8192
+ TEXTURE_COMPRESSION_HINT = 0x84EF
+
+ C3F_V3F = 0x2A24
+ C4F_N3F_V3F = 0x2A26
+ C4UB_V2F = 0x2A22
+ C4UB_V3F = 0x2A23
+ N3F_V3F = 0x2A25
+ T2F_C3F_V3F = 0x2A2A
+ T2F_C4F_N3F_V3F = 0x2A2C
+ T2F_C4UB_V3F = 0x2A29
+ T2F_N3F_V3F = 0x2A2B
+ T2F_V3F = 0x2A27
+ T4F_C4F_N3F_V4F = 0x2A2D
+ T4F_V4F = 0x2A28
+ V2F = 0x2A20
+ V3F = 0x2A21
+
+ MODULATE = 0x2100
+ REPLACE = 0x1E01
+
+ SEPARATE_SPECULAR_COLOR = 0x81FA
+ SINGLE_COLOR = 0x81F9
+
+ CONSTANT_ATTENUATION = 0x1207
+ LINEAR_ATTENUATION = 0x1208
+ POSITION = 0x1203
+ QUADRATIC_ATTENUATION = 0x1209
+ SPOT_CUTOFF = 0x1206
+ SPOT_DIRECTION = 0x1204
+ SPOT_EXPONENT = 0x1205
+
+ COMPILE = 0x1300
+ COMPILE_AND_EXECUTE = 0x1301
+
+ AND = 0x1501
+ AND_INVERTED = 0x1504
+ AND_REVERSE = 0x1502
+ CLEAR = 0x1500
+ COPY = 0x1503
+ COPY_INVERTED = 0x150C
+ EQUIV = 0x1509
+ INVERT = 0x150A
+ NAND = 0x150E
+ NOOP = 0x1505
+ NOR = 0x1508
+ OR = 0x1507
+ OR_INVERTED = 0x150D
+ OR_REVERSE = 0x150B
+ SET = 0x150F
+ XOR = 0x1506
+
+ MAP_FLUSH_EXPLICIT_BIT = 0x0010
+ MAP_INVALIDATE_BUFFER_BIT = 0x0008
+ MAP_INVALIDATE_RANGE_BIT = 0x0004
+ MAP_READ_BIT = 0x0001
+ MAP_UNSYNCHRONIZED_BIT = 0x0020
+ MAP_WRITE_BIT = 0x0002
+
+ COLOR_INDEXES = 0x1603
+ SHININESS = 0x1601
+
+ MODELVIEW = 0x1700
+ PROJECTION = 0x1701
+ TEXTURE = 0x1702
+
+ LINE = 0x1B01
+ POINT = 0x1B00
+
+ FILL = 0x1B02
+
+ COLOR = 0x1800
+ DEPTH = 0x1801
+ STENCIL = 0x1802
+
+ ALPHA = 0x1906
+ BLUE = 0x1905
+ COLOR_INDEX = 0x1900
+ DEPTH_COMPONENT = 0x1902
+ GREEN = 0x1904
+ LUMINANCE = 0x1909
+ LUMINANCE_ALPHA = 0x190A
+ RED = 0x1903
+ RGB = 0x1907
+ RGBA = 0x1908
+ STENCIL_INDEX = 0x1901
+
+ ALPHA12 = 0x803D
+ ALPHA16 = 0x803E
+ ALPHA4 = 0x803B
+ ALPHA8 = 0x803C
+ INTENSITY = 0x8049
+ INTENSITY12 = 0x804C
+ INTENSITY16 = 0x804D
+ INTENSITY4 = 0x804A
+ INTENSITY8 = 0x804B
+ LUMINANCE12 = 0x8041
+ LUMINANCE12_ALPHA12 = 0x8047
+ LUMINANCE12_ALPHA4 = 0x8046
+ LUMINANCE16 = 0x8042
+ LUMINANCE16_ALPHA16 = 0x8048
+ LUMINANCE4 = 0x803F
+ LUMINANCE4_ALPHA4 = 0x8043
+ LUMINANCE6_ALPHA2 = 0x8044
+ LUMINANCE8 = 0x8040
+ LUMINANCE8_ALPHA8 = 0x8045
+ R3_G3_B2 = 0x2A10
+ RGB10 = 0x8052
+ RGB10_A2 = 0x8059
+ RGB12 = 0x8053
+ RGB16 = 0x8054
+ RGB4 = 0x804F
+ RGB5 = 0x8050
+ RGB5_A1 = 0x8057
+ RGB8 = 0x8051
+ RGBA12 = 0x805A
+ RGBA16 = 0x805B
+ RGBA2 = 0x8055
+ RGBA4 = 0x8056
+ RGBA8 = 0x8058
+
+ PACK_IMAGE_HEIGHT = 0x806C
+ PACK_SKIP_IMAGES = 0x806B
+ UNPACK_IMAGE_HEIGHT = 0x806E
+ UNPACK_SKIP_IMAGES = 0x806D
+
+ BITMAP = 0x1A00
+ UNSIGNED_BYTE_3_3_2 = 0x8032
+ UNSIGNED_INT_10_10_10_2 = 0x8036
+ UNSIGNED_INT_8_8_8_8 = 0x8035
+ UNSIGNED_SHORT_4_4_4_4 = 0x8033
+ UNSIGNED_SHORT_5_5_5_1 = 0x8034
+
+ POINT_DISTANCE_ATTENUATION = 0x8129
+ POINT_FADE_THRESHOLD_SIZE = 0x8128
+ POINT_SIZE_MAX = 0x8127
+ POINT_SIZE_MIN = 0x8126
+
+ LINES = 0x0001
+ LINES_ADJACENCY = 0x000A
+ LINE_LOOP = 0x0002
+ LINE_STRIP = 0x0003
+ LINE_STRIP_ADJACENCY = 0x000B
+ POINTS = 0x0000
+ POLYGON = 0x0009
+ QUADS = 0x0007
+ QUAD_STRIP = 0x0008
+ TRIANGLES = 0x0004
+ TRIANGLES_ADJACENCY = 0x000C
+ TRIANGLE_FAN = 0x0006
+ TRIANGLE_STRIP = 0x0005
+ TRIANGLE_STRIP_ADJACENCY = 0x000D
+
+ FEEDBACK = 0x1C01
+ RENDER = 0x1C00
+ SELECT = 0x1C02
+
+ FLAT = 0x1D00
+ SMOOTH = 0x1D01
+
+ DECR = 0x1E03
+ INCR = 0x1E02
+ KEEP = 0x1E00
+
+ EXTENSIONS = 0x1F03
+ RENDERER = 0x1F01
+ VENDOR = 0x1F00
+ VERSION = 0x1F02
+
+ S = 0x2000
+ T = 0x2001
+ R = 0x2002
+ Q = 0x2003
+
+ DECAL = 0x2101
+
+ TEXTURE_ENV_COLOR = 0x2201
+ TEXTURE_ENV_MODE = 0x2200
+
+ TEXTURE_ENV = 0x2300
+
+ EYE_LINEAR = 0x2400
+ OBJECT_LINEAR = 0x2401
+ SPHERE_MAP = 0x2402
+
+ EYE_PLANE = 0x2502
+ OBJECT_PLANE = 0x2501
+ TEXTURE_GEN_MODE = 0x2500
+
+ NEAREST = 0x2600
+
+ LINEAR_MIPMAP_LINEAR = 0x2703
+ LINEAR_MIPMAP_NEAREST = 0x2701
+ NEAREST_MIPMAP_LINEAR = 0x2702
+ NEAREST_MIPMAP_NEAREST = 0x2700
+
+ GENERATE_MIPMAP = 0x8191
+ TEXTURE_WRAP_R = 0x8072
+
+ PROXY_TEXTURE_1D = 0x8063
+ PROXY_TEXTURE_2D = 0x8064
+ PROXY_TEXTURE_3D = 0x8070
+ TEXTURE_3D = 0x806F
+ TEXTURE_BASE_LEVEL = 0x813C
+ TEXTURE_MAX_LEVEL = 0x813D
+ TEXTURE_MAX_LOD = 0x813B
+ TEXTURE_MIN_LOD = 0x813A
+
+ CLAMP = 0x2900
+ CLAMP_TO_BORDER = 0x812D
+ CLAMP_TO_EDGE = 0x812F
+ REPEAT = 0x2901
+
+ SYNC_FLUSH_COMMANDS_BIT = 0x00000001
+ INVALID_INDEX = 0xFFFFFFFF
+ TIMEOUT_IGNORED = 0xFFFFFFFFFFFFFFFF
+ CONSTANT_COLOR = 0x8001
+ ONE_MINUS_CONSTANT_COLOR = 0x8002
+ CONSTANT_ALPHA = 0x8003
+ ONE_MINUS_CONSTANT_ALPHA = 0x8004
+ FUNC_ADD = 0x8006
+ MIN = 0x8007
+ MAX = 0x8008
+ BLEND_EQUATION_RGB = 0x8009
+ FUNC_SUBTRACT = 0x800A
+ FUNC_REVERSE_SUBTRACT = 0x800B
+ RESCALE_NORMAL = 0x803A
+ TEXTURE_DEPTH = 0x8071
+ MAX_3D_TEXTURE_SIZE = 0x8073
+ MULTISAMPLE = 0x809D
+ SAMPLE_ALPHA_TO_COVERAGE = 0x809E
+ SAMPLE_ALPHA_TO_ONE = 0x809F
+ SAMPLE_COVERAGE = 0x80A0
+ SAMPLE_BUFFERS = 0x80A8
+ SAMPLES = 0x80A9
+ SAMPLE_COVERAGE_VALUE = 0x80AA
+ SAMPLE_COVERAGE_INVERT = 0x80AB
+ BLEND_DST_RGB = 0x80C8
+ BLEND_SRC_RGB = 0x80C9
+ BLEND_DST_ALPHA = 0x80CA
+ BLEND_SRC_ALPHA = 0x80CB
+ BGR = 0x80E0
+ BGRA = 0x80E1
+ MAX_ELEMENTS_VERTICES = 0x80E8
+ MAX_ELEMENTS_INDICES = 0x80E9
+ DEPTH_COMPONENT16 = 0x81A5
+ DEPTH_COMPONENT24 = 0x81A6
+ DEPTH_COMPONENT32 = 0x81A7
+ FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210
+ FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211
+ FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212
+ FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213
+ FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214
+ FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215
+ FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216
+ FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217
+ FRAMEBUFFER_DEFAULT = 0x8218
+ FRAMEBUFFER_UNDEFINED = 0x8219
+ DEPTH_STENCIL_ATTACHMENT = 0x821A
+ MAJOR_VERSION = 0x821B
+ MINOR_VERSION = 0x821C
+ NUM_EXTENSIONS = 0x821D
+ CONTEXT_FLAGS = 0x821E
+ INDEX = 0x8222
+ COMPRESSED_RED = 0x8225
+ COMPRESSED_RG = 0x8226
+ RG = 0x8227
+ RG_INTEGER = 0x8228
+ R8 = 0x8229
+ R16 = 0x822A
+ RG8 = 0x822B
+ RG16 = 0x822C
+ R16F = 0x822D
+ R32F = 0x822E
+ RG16F = 0x822F
+ RG32F = 0x8230
+ R8I = 0x8231
+ R8UI = 0x8232
+ R16I = 0x8233
+ R16UI = 0x8234
+ R32I = 0x8235
+ R32UI = 0x8236
+ RG8I = 0x8237
+ RG8UI = 0x8238
+ RG16I = 0x8239
+ RG16UI = 0x823A
+ RG32I = 0x823B
+ RG32UI = 0x823C
+ UNSIGNED_BYTE_2_3_3_REV = 0x8362
+ UNSIGNED_SHORT_5_6_5 = 0x8363
+ UNSIGNED_SHORT_5_6_5_REV = 0x8364
+ UNSIGNED_SHORT_4_4_4_4_REV = 0x8365
+ UNSIGNED_SHORT_1_5_5_5_REV = 0x8366
+ UNSIGNED_INT_8_8_8_8_REV = 0x8367
+ UNSIGNED_INT_2_10_10_10_REV = 0x8368
+ MIRRORED_REPEAT = 0x8370
+ FOG_COORDINATE_SOURCE = 0x8450
+ FOG_COORD_SRC = 0x8450
+ FOG_COORDINATE = 0x8451
+ FOG_COORD = 0x8451
+ FRAGMENT_DEPTH = 0x8452
+ CURRENT_FOG_COORDINATE = 0x8453
+ CURRENT_FOG_COORD = 0x8453
+ FOG_COORDINATE_ARRAY_TYPE = 0x8454
+ FOG_COORD_ARRAY_TYPE = 0x8454
+ FOG_COORDINATE_ARRAY_STRIDE = 0x8455
+ FOG_COORD_ARRAY_STRIDE = 0x8455
+ FOG_COORDINATE_ARRAY_POINTER = 0x8456
+ FOG_COORD_ARRAY_POINTER = 0x8456
+ FOG_COORDINATE_ARRAY = 0x8457
+ FOG_COORD_ARRAY = 0x8457
+ COLOR_SUM = 0x8458
+ CURRENT_SECONDARY_COLOR = 0x8459
+ SECONDARY_COLOR_ARRAY_SIZE = 0x845A
+ SECONDARY_COLOR_ARRAY_TYPE = 0x845B
+ SECONDARY_COLOR_ARRAY_STRIDE = 0x845C
+ SECONDARY_COLOR_ARRAY_POINTER = 0x845D
+ SECONDARY_COLOR_ARRAY = 0x845E
+ CURRENT_RASTER_SECONDARY_COLOR = 0x845F
+ TEXTURE0 = 0x84C0
+ TEXTURE1 = 0x84C1
+ TEXTURE2 = 0x84C2
+ TEXTURE3 = 0x84C3
+ TEXTURE4 = 0x84C4
+ TEXTURE5 = 0x84C5
+ TEXTURE6 = 0x84C6
+ TEXTURE7 = 0x84C7
+ TEXTURE8 = 0x84C8
+ TEXTURE9 = 0x84C9
+ TEXTURE10 = 0x84CA
+ TEXTURE11 = 0x84CB
+ TEXTURE12 = 0x84CC
+ TEXTURE13 = 0x84CD
+ TEXTURE14 = 0x84CE
+ TEXTURE15 = 0x84CF
+ TEXTURE16 = 0x84D0
+ TEXTURE17 = 0x84D1
+ TEXTURE18 = 0x84D2
+ TEXTURE19 = 0x84D3
+ TEXTURE20 = 0x84D4
+ TEXTURE21 = 0x84D5
+ TEXTURE22 = 0x84D6
+ TEXTURE23 = 0x84D7
+ TEXTURE24 = 0x84D8
+ TEXTURE25 = 0x84D9
+ TEXTURE26 = 0x84DA
+ TEXTURE27 = 0x84DB
+ TEXTURE28 = 0x84DC
+ TEXTURE29 = 0x84DD
+ TEXTURE30 = 0x84DE
+ TEXTURE31 = 0x84DF
+ ACTIVE_TEXTURE = 0x84E0
+ CLIENT_ACTIVE_TEXTURE = 0x84E1
+ MAX_TEXTURE_UNITS = 0x84E2
+ TRANSPOSE_MODELVIEW_MATRIX = 0x84E3
+ TRANSPOSE_PROJECTION_MATRIX = 0x84E4
+ TRANSPOSE_TEXTURE_MATRIX = 0x84E5
+ TRANSPOSE_COLOR_MATRIX = 0x84E6
+ SUBTRACT = 0x84E7
+ MAX_RENDERBUFFER_SIZE = 0x84E8
+ COMPRESSED_ALPHA = 0x84E9
+ COMPRESSED_LUMINANCE = 0x84EA
+ COMPRESSED_LUMINANCE_ALPHA = 0x84EB
+ COMPRESSED_INTENSITY = 0x84EC
+ COMPRESSED_RGB = 0x84ED
+ COMPRESSED_RGBA = 0x84EE
+ TEXTURE_RECTANGLE = 0x84F5
+ TEXTURE_BINDING_RECTANGLE = 0x84F6
+ PROXY_TEXTURE_RECTANGLE = 0x84F7
+ MAX_RECTANGLE_TEXTURE_SIZE = 0x84F8
+ DEPTH_STENCIL = 0x84F9
+ UNSIGNED_INT_24_8 = 0x84FA
+ MAX_TEXTURE_LOD_BIAS = 0x84FD
+ TEXTURE_FILTER_CONTROL = 0x8500
+ TEXTURE_LOD_BIAS = 0x8501
+ INCR_WRAP = 0x8507
+ DECR_WRAP = 0x8508
+ NORMAL_MAP = 0x8511
+ REFLECTION_MAP = 0x8512
+ TEXTURE_CUBE_MAP = 0x8513
+ TEXTURE_BINDING_CUBE_MAP = 0x8514
+ TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515
+ TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516
+ TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
+ TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518
+ TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519
+ TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A
+ PROXY_TEXTURE_CUBE_MAP = 0x851B
+ MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C
+ COMBINE = 0x8570
+ COMBINE_RGB = 0x8571
+ COMBINE_ALPHA = 0x8572
+ RGB_SCALE = 0x8573
+ ADD_SIGNED = 0x8574
+ INTERPOLATE = 0x8575
+ CONSTANT = 0x8576
+ PRIMARY_COLOR = 0x8577
+ PREVIOUS = 0x8578
+ SOURCE0_RGB = 0x8580
+ SRC0_RGB = 0x8580
+ SOURCE1_RGB = 0x8581
+ SRC1_RGB = 0x8581
+ SOURCE2_RGB = 0x8582
+ SRC2_RGB = 0x8582
+ SOURCE0_ALPHA = 0x8588
+ SRC0_ALPHA = 0x8588
+ SOURCE1_ALPHA = 0x8589
+ SRC1_ALPHA = 0x8589
+ SOURCE2_ALPHA = 0x858A
+ SRC2_ALPHA = 0x858A
+ OPERAND0_RGB = 0x8590
+ OPERAND1_RGB = 0x8591
+ OPERAND2_RGB = 0x8592
+ OPERAND0_ALPHA = 0x8598
+ OPERAND1_ALPHA = 0x8599
+ OPERAND2_ALPHA = 0x859A
+ VERTEX_ARRAY_BINDING = 0x85B5
+ VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622
+ VERTEX_ATTRIB_ARRAY_SIZE = 0x8623
+ VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624
+ VERTEX_ATTRIB_ARRAY_TYPE = 0x8625
+ CURRENT_VERTEX_ATTRIB = 0x8626
+ VERTEX_PROGRAM_POINT_SIZE = 0x8642
+ PROGRAM_POINT_SIZE = 0x8642
+ VERTEX_PROGRAM_TWO_SIDE = 0x8643
+ VERTEX_ATTRIB_ARRAY_POINTER = 0x8645
+ DEPTH_CLAMP = 0x864F
+ TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0
+ TEXTURE_COMPRESSED = 0x86A1
+ NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2
+ COMPRESSED_TEXTURE_FORMATS = 0x86A3
+ DOT3_RGB = 0x86AE
+ DOT3_RGBA = 0x86AF
+ BUFFER_SIZE = 0x8764
+ BUFFER_USAGE = 0x8765
+ STENCIL_BACK_FUNC = 0x8800
+ STENCIL_BACK_FAIL = 0x8801
+ STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802
+ STENCIL_BACK_PASS_DEPTH_PASS = 0x8803
+ RGBA32F = 0x8814
+ RGB32F = 0x8815
+ RGBA16F = 0x881A
+ RGB16F = 0x881B
+ MAX_DRAW_BUFFERS = 0x8824
+ DRAW_BUFFER0 = 0x8825
+ DRAW_BUFFER1 = 0x8826
+ DRAW_BUFFER2 = 0x8827
+ DRAW_BUFFER3 = 0x8828
+ DRAW_BUFFER4 = 0x8829
+ DRAW_BUFFER5 = 0x882A
+ DRAW_BUFFER6 = 0x882B
+ DRAW_BUFFER7 = 0x882C
+ DRAW_BUFFER8 = 0x882D
+ DRAW_BUFFER9 = 0x882E
+ DRAW_BUFFER10 = 0x882F
+ DRAW_BUFFER11 = 0x8830
+ DRAW_BUFFER12 = 0x8831
+ DRAW_BUFFER13 = 0x8832
+ DRAW_BUFFER14 = 0x8833
+ DRAW_BUFFER15 = 0x8834
+ BLEND_EQUATION_ALPHA = 0x883D
+ TEXTURE_DEPTH_SIZE = 0x884A
+ DEPTH_TEXTURE_MODE = 0x884B
+ TEXTURE_COMPARE_MODE = 0x884C
+ TEXTURE_COMPARE_FUNC = 0x884D
+ COMPARE_R_TO_TEXTURE = 0x884E
+ COMPARE_REF_TO_TEXTURE = 0x884E
+ TEXTURE_CUBE_MAP_SEAMLESS = 0x884F
+ POINT_SPRITE = 0x8861
+ COORD_REPLACE = 0x8862
+ QUERY_COUNTER_BITS = 0x8864
+ CURRENT_QUERY = 0x8865
+ QUERY_RESULT = 0x8866
+ QUERY_RESULT_AVAILABLE = 0x8867
+ MAX_VERTEX_ATTRIBS = 0x8869
+ VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A
+ MAX_TEXTURE_COORDS = 0x8871
+ MAX_TEXTURE_IMAGE_UNITS = 0x8872
+ ARRAY_BUFFER = 0x8892
+ ELEMENT_ARRAY_BUFFER = 0x8893
+ ARRAY_BUFFER_BINDING = 0x8894
+ ELEMENT_ARRAY_BUFFER_BINDING = 0x8895
+ VERTEX_ARRAY_BUFFER_BINDING = 0x8896
+ NORMAL_ARRAY_BUFFER_BINDING = 0x8897
+ COLOR_ARRAY_BUFFER_BINDING = 0x8898
+ INDEX_ARRAY_BUFFER_BINDING = 0x8899
+ TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A
+ EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B
+ SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C
+ FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D
+ FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D
+ WEIGHT_ARRAY_BUFFER_BINDING = 0x889E
+ VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F
+ READ_ONLY = 0x88B8
+ WRITE_ONLY = 0x88B9
+ READ_WRITE = 0x88BA
+ BUFFER_ACCESS = 0x88BB
+ BUFFER_MAPPED = 0x88BC
+ BUFFER_MAP_POINTER = 0x88BD
+ STREAM_DRAW = 0x88E0
+ STREAM_READ = 0x88E1
+ STREAM_COPY = 0x88E2
+ STATIC_DRAW = 0x88E4
+ STATIC_READ = 0x88E5
+ STATIC_COPY = 0x88E6
+ DYNAMIC_DRAW = 0x88E8
+ DYNAMIC_READ = 0x88E9
+ DYNAMIC_COPY = 0x88EA
+ PIXEL_PACK_BUFFER = 0x88EB
+ PIXEL_UNPACK_BUFFER = 0x88EC
+ PIXEL_PACK_BUFFER_BINDING = 0x88ED
+ PIXEL_UNPACK_BUFFER_BINDING = 0x88EF
+ DEPTH24_STENCIL8 = 0x88F0
+ TEXTURE_STENCIL_SIZE = 0x88F1
+ VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD
+ MAX_ARRAY_TEXTURE_LAYERS = 0x88FF
+ MIN_PROGRAM_TEXEL_OFFSET = 0x8904
+ MAX_PROGRAM_TEXEL_OFFSET = 0x8905
+ SAMPLES_PASSED = 0x8914
+ GEOMETRY_VERTICES_OUT = 0x8916
+ GEOMETRY_INPUT_TYPE = 0x8917
+ GEOMETRY_OUTPUT_TYPE = 0x8918
+ CLAMP_VERTEX_COLOR = 0x891A
+ CLAMP_FRAGMENT_COLOR = 0x891B
+ CLAMP_READ_COLOR = 0x891C
+ FIXED_ONLY = 0x891D
+ UNIFORM_BUFFER = 0x8A11
+ UNIFORM_BUFFER_BINDING = 0x8A28
+ UNIFORM_BUFFER_START = 0x8A29
+ UNIFORM_BUFFER_SIZE = 0x8A2A
+ MAX_VERTEX_UNIFORM_BLOCKS = 0x8A2B
+ MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C
+ MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8A2D
+ MAX_COMBINED_UNIFORM_BLOCKS = 0x8A2E
+ MAX_UNIFORM_BUFFER_BINDINGS = 0x8A2F
+ MAX_UNIFORM_BLOCK_SIZE = 0x8A30
+ MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31
+ MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32
+ MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33
+ UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34
+ ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35
+ ACTIVE_UNIFORM_BLOCKS = 0x8A36
+ UNIFORM_TYPE = 0x8A37
+ UNIFORM_SIZE = 0x8A38
+ UNIFORM_NAME_LENGTH = 0x8A39
+ UNIFORM_BLOCK_INDEX = 0x8A3A
+ UNIFORM_OFFSET = 0x8A3B
+ UNIFORM_ARRAY_STRIDE = 0x8A3C
+ UNIFORM_MATRIX_STRIDE = 0x8A3D
+ UNIFORM_IS_ROW_MAJOR = 0x8A3E
+ UNIFORM_BLOCK_BINDING = 0x8A3F
+ UNIFORM_BLOCK_DATA_SIZE = 0x8A40
+ UNIFORM_BLOCK_NAME_LENGTH = 0x8A41
+ UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42
+ UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43
+ UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44
+ UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45
+ UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46
+ FRAGMENT_SHADER = 0x8B30
+ VERTEX_SHADER = 0x8B31
+ MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49
+ MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A
+ MAX_VARYING_FLOATS = 0x8B4B
+ MAX_VARYING_COMPONENTS = 0x8B4B
+ MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C
+ MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D
+ SHADER_TYPE = 0x8B4F
+ FLOAT_VEC2 = 0x8B50
+ FLOAT_VEC3 = 0x8B51
+ FLOAT_VEC4 = 0x8B52
+ INT_VEC2 = 0x8B53
+ INT_VEC3 = 0x8B54
+ INT_VEC4 = 0x8B55
+ BOOL = 0x8B56
+ BOOL_VEC2 = 0x8B57
+ BOOL_VEC3 = 0x8B58
+ BOOL_VEC4 = 0x8B59
+ FLOAT_MAT2 = 0x8B5A
+ FLOAT_MAT3 = 0x8B5B
+ FLOAT_MAT4 = 0x8B5C
+ SAMPLER_1D = 0x8B5D
+ SAMPLER_2D = 0x8B5E
+ SAMPLER_3D = 0x8B5F
+ SAMPLER_CUBE = 0x8B60
+ SAMPLER_1D_SHADOW = 0x8B61
+ SAMPLER_2D_SHADOW = 0x8B62
+ SAMPLER_2D_RECT = 0x8B63
+ SAMPLER_2D_RECT_SHADOW = 0x8B64
+ FLOAT_MAT2x3 = 0x8B65
+ FLOAT_MAT2x4 = 0x8B66
+ FLOAT_MAT3x2 = 0x8B67
+ FLOAT_MAT3x4 = 0x8B68
+ FLOAT_MAT4x2 = 0x8B69
+ FLOAT_MAT4x3 = 0x8B6A
+ DELETE_STATUS = 0x8B80
+ COMPILE_STATUS = 0x8B81
+ LINK_STATUS = 0x8B82
+ VALIDATE_STATUS = 0x8B83
+ INFO_LOG_LENGTH = 0x8B84
+ ATTACHED_SHADERS = 0x8B85
+ ACTIVE_UNIFORMS = 0x8B86
+ ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87
+ SHADER_SOURCE_LENGTH = 0x8B88
+ ACTIVE_ATTRIBUTES = 0x8B89
+ ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A
+ SHADING_LANGUAGE_VERSION = 0x8B8C
+ CURRENT_PROGRAM = 0x8B8D
+ TEXTURE_RED_TYPE = 0x8C10
+ TEXTURE_GREEN_TYPE = 0x8C11
+ TEXTURE_BLUE_TYPE = 0x8C12
+ TEXTURE_ALPHA_TYPE = 0x8C13
+ TEXTURE_LUMINANCE_TYPE = 0x8C14
+ TEXTURE_INTENSITY_TYPE = 0x8C15
+ TEXTURE_DEPTH_TYPE = 0x8C16
+ UNSIGNED_NORMALIZED = 0x8C17
+ TEXTURE_1D_ARRAY = 0x8C18
+ PROXY_TEXTURE_1D_ARRAY = 0x8C19
+ TEXTURE_2D_ARRAY = 0x8C1A
+ PROXY_TEXTURE_2D_ARRAY = 0x8C1B
+ TEXTURE_BINDING_1D_ARRAY = 0x8C1C
+ TEXTURE_BINDING_2D_ARRAY = 0x8C1D
+ MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29
+ TEXTURE_BUFFER = 0x8C2A
+ MAX_TEXTURE_BUFFER_SIZE = 0x8C2B
+ TEXTURE_BINDING_BUFFER = 0x8C2C
+ TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D
+ R11F_G11F_B10F = 0x8C3A
+ UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B
+ RGB9_E5 = 0x8C3D
+ UNSIGNED_INT_5_9_9_9_REV = 0x8C3E
+ TEXTURE_SHARED_SIZE = 0x8C3F
+ SRGB = 0x8C40
+ SRGB8 = 0x8C41
+ SRGB_ALPHA = 0x8C42
+ SRGB8_ALPHA8 = 0x8C43
+ SLUMINANCE_ALPHA = 0x8C44
+ SLUMINANCE8_ALPHA8 = 0x8C45
+ SLUMINANCE = 0x8C46
+ SLUMINANCE8 = 0x8C47
+ COMPRESSED_SRGB = 0x8C48
+ COMPRESSED_SRGB_ALPHA = 0x8C49
+ COMPRESSED_SLUMINANCE = 0x8C4A
+ COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B
+ TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76
+ TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F
+ MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80
+ TRANSFORM_FEEDBACK_VARYINGS = 0x8C83
+ TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84
+ TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85
+ PRIMITIVES_GENERATED = 0x8C87
+ TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88
+ RASTERIZER_DISCARD = 0x8C89
+ MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A
+ MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B
+ INTERLEAVED_ATTRIBS = 0x8C8C
+ SEPARATE_ATTRIBS = 0x8C8D
+ TRANSFORM_FEEDBACK_BUFFER = 0x8C8E
+ TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F
+ POINT_SPRITE_COORD_ORIGIN = 0x8CA0
+ LOWER_LEFT = 0x8CA1
+ UPPER_LEFT = 0x8CA2
+ STENCIL_BACK_REF = 0x8CA3
+ STENCIL_BACK_VALUE_MASK = 0x8CA4
+ STENCIL_BACK_WRITEMASK = 0x8CA5
+ DRAW_FRAMEBUFFER_BINDING = 0x8CA6
+ FRAMEBUFFER_BINDING = 0x8CA6
+ RENDERBUFFER_BINDING = 0x8CA7
+ READ_FRAMEBUFFER = 0x8CA8
+ DRAW_FRAMEBUFFER = 0x8CA9
+ READ_FRAMEBUFFER_BINDING = 0x8CAA
+ RENDERBUFFER_SAMPLES = 0x8CAB
+ DEPTH_COMPONENT32F = 0x8CAC
+ DEPTH32F_STENCIL8 = 0x8CAD
+ FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0
+ FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1
+ FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2
+ FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3
+ FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4
+ FRAMEBUFFER_COMPLETE = 0x8CD5
+ FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6
+ FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7
+ FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB
+ FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC
+ FRAMEBUFFER_UNSUPPORTED = 0x8CDD
+ MAX_COLOR_ATTACHMENTS = 0x8CDF
+ COLOR_ATTACHMENT0 = 0x8CE0
+ COLOR_ATTACHMENT1 = 0x8CE1
+ COLOR_ATTACHMENT2 = 0x8CE2
+ COLOR_ATTACHMENT3 = 0x8CE3
+ COLOR_ATTACHMENT4 = 0x8CE4
+ COLOR_ATTACHMENT5 = 0x8CE5
+ COLOR_ATTACHMENT6 = 0x8CE6
+ COLOR_ATTACHMENT7 = 0x8CE7
+ COLOR_ATTACHMENT8 = 0x8CE8
+ COLOR_ATTACHMENT9 = 0x8CE9
+ COLOR_ATTACHMENT10 = 0x8CEA
+ COLOR_ATTACHMENT11 = 0x8CEB
+ COLOR_ATTACHMENT12 = 0x8CEC
+ COLOR_ATTACHMENT13 = 0x8CED
+ COLOR_ATTACHMENT14 = 0x8CEE
+ COLOR_ATTACHMENT15 = 0x8CEF
+ DEPTH_ATTACHMENT = 0x8D00
+ STENCIL_ATTACHMENT = 0x8D20
+ FRAMEBUFFER = 0x8D40
+ RENDERBUFFER = 0x8D41
+ RENDERBUFFER_WIDTH = 0x8D42
+ RENDERBUFFER_HEIGHT = 0x8D43
+ RENDERBUFFER_INTERNAL_FORMAT = 0x8D44
+ STENCIL_INDEX1 = 0x8D46
+ STENCIL_INDEX4 = 0x8D47
+ STENCIL_INDEX8 = 0x8D48
+ STENCIL_INDEX16 = 0x8D49
+ RENDERBUFFER_RED_SIZE = 0x8D50
+ RENDERBUFFER_GREEN_SIZE = 0x8D51
+ RENDERBUFFER_BLUE_SIZE = 0x8D52
+ RENDERBUFFER_ALPHA_SIZE = 0x8D53
+ RENDERBUFFER_DEPTH_SIZE = 0x8D54
+ RENDERBUFFER_STENCIL_SIZE = 0x8D55
+ FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56
+ MAX_SAMPLES = 0x8D57
+ RGBA32UI = 0x8D70
+ RGB32UI = 0x8D71
+ RGBA16UI = 0x8D76
+ RGB16UI = 0x8D77
+ RGBA8UI = 0x8D7C
+ RGB8UI = 0x8D7D
+ RGBA32I = 0x8D82
+ RGB32I = 0x8D83
+ RGBA16I = 0x8D88
+ RGB16I = 0x8D89
+ RGBA8I = 0x8D8E
+ RGB8I = 0x8D8F
+ RED_INTEGER = 0x8D94
+ GREEN_INTEGER = 0x8D95
+ BLUE_INTEGER = 0x8D96
+ ALPHA_INTEGER = 0x8D97
+ RGB_INTEGER = 0x8D98
+ RGBA_INTEGER = 0x8D99
+ BGR_INTEGER = 0x8D9A
+ BGRA_INTEGER = 0x8D9B
+ FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7
+ FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8
+ FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD
+ FRAMEBUFFER_SRGB = 0x8DB9
+ COMPRESSED_RED_RGTC1 = 0x8DBB
+ COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC
+ COMPRESSED_RG_RGTC2 = 0x8DBD
+ COMPRESSED_SIGNED_RG_RGTC2 = 0x8DBE
+ SAMPLER_1D_ARRAY = 0x8DC0
+ SAMPLER_2D_ARRAY = 0x8DC1
+ SAMPLER_BUFFER = 0x8DC2
+ SAMPLER_1D_ARRAY_SHADOW = 0x8DC3
+ SAMPLER_2D_ARRAY_SHADOW = 0x8DC4
+ SAMPLER_CUBE_SHADOW = 0x8DC5
+ UNSIGNED_INT_VEC2 = 0x8DC6
+ UNSIGNED_INT_VEC3 = 0x8DC7
+ UNSIGNED_INT_VEC4 = 0x8DC8
+ INT_SAMPLER_1D = 0x8DC9
+ INT_SAMPLER_2D = 0x8DCA
+ INT_SAMPLER_3D = 0x8DCB
+ INT_SAMPLER_CUBE = 0x8DCC
+ INT_SAMPLER_2D_RECT = 0x8DCD
+ INT_SAMPLER_1D_ARRAY = 0x8DCE
+ INT_SAMPLER_2D_ARRAY = 0x8DCF
+ INT_SAMPLER_BUFFER = 0x8DD0
+ UNSIGNED_INT_SAMPLER_1D = 0x8DD1
+ UNSIGNED_INT_SAMPLER_2D = 0x8DD2
+ UNSIGNED_INT_SAMPLER_3D = 0x8DD3
+ UNSIGNED_INT_SAMPLER_CUBE = 0x8DD4
+ UNSIGNED_INT_SAMPLER_2D_RECT = 0x8DD5
+ UNSIGNED_INT_SAMPLER_1D_ARRAY = 0x8DD6
+ UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8DD7
+ UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8
+ GEOMETRY_SHADER = 0x8DD9
+ MAX_GEOMETRY_UNIFORM_COMPONENTS = 0x8DDF
+ MAX_GEOMETRY_OUTPUT_VERTICES = 0x8DE0
+ MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = 0x8DE1
+ QUERY_WAIT = 0x8E13
+ QUERY_NO_WAIT = 0x8E14
+ QUERY_BY_REGION_WAIT = 0x8E15
+ QUERY_BY_REGION_NO_WAIT = 0x8E16
+ QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4C
+ FIRST_VERTEX_CONVENTION = 0x8E4D
+ LAST_VERTEX_CONVENTION = 0x8E4E
+ PROVOKING_VERTEX = 0x8E4F
+ SAMPLE_POSITION = 0x8E50
+ SAMPLE_MASK = 0x8E51
+ SAMPLE_MASK_VALUE = 0x8E52
+ MAX_SAMPLE_MASK_WORDS = 0x8E59
+ COPY_READ_BUFFER = 0x8F36
+ COPY_WRITE_BUFFER = 0x8F37
+ R8_SNORM = 0x8F94
+ RG8_SNORM = 0x8F95
+ RGB8_SNORM = 0x8F96
+ RGBA8_SNORM = 0x8F97
+ R16_SNORM = 0x8F98
+ RG16_SNORM = 0x8F99
+ RGB16_SNORM = 0x8F9A
+ RGBA16_SNORM = 0x8F9B
+ SIGNED_NORMALIZED = 0x8F9C
+ PRIMITIVE_RESTART = 0x8F9D
+ PRIMITIVE_RESTART_INDEX = 0x8F9E
+ TEXTURE_2D_MULTISAMPLE = 0x9100
+ PROXY_TEXTURE_2D_MULTISAMPLE = 0x9101
+ TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102
+ PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9103
+ TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104
+ TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105
+ TEXTURE_SAMPLES = 0x9106
+ TEXTURE_FIXED_SAMPLE_LOCATIONS = 0x9107
+ SAMPLER_2D_MULTISAMPLE = 0x9108
+ INT_SAMPLER_2D_MULTISAMPLE = 0x9109
+ UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = 0x910A
+ SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B
+ INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C
+ UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D
+ MAX_COLOR_TEXTURE_SAMPLES = 0x910E
+ MAX_DEPTH_TEXTURE_SAMPLES = 0x910F
+ MAX_INTEGER_SAMPLES = 0x9110
+ MAX_SERVER_WAIT_TIMEOUT = 0x9111
+ OBJECT_TYPE = 0x9112
+ SYNC_CONDITION = 0x9113
+ SYNC_STATUS = 0x9114
+ SYNC_FLAGS = 0x9115
+ SYNC_FENCE = 0x9116
+ SYNC_GPU_COMMANDS_COMPLETE = 0x9117
+ UNSIGNALED = 0x9118
+ SIGNALED = 0x9119
+ ALREADY_SIGNALED = 0x911A
+ TIMEOUT_EXPIRED = 0x911B
+ CONDITION_SATISFIED = 0x911C
+ WAIT_FAILED = 0x911D
+ BUFFER_ACCESS_FLAGS = 0x911F
+ BUFFER_MAP_LENGTH = 0x9120
+ BUFFER_MAP_OFFSET = 0x9121
+ MAX_VERTEX_OUTPUT_COMPONENTS = 0x9122
+ MAX_GEOMETRY_INPUT_COMPONENTS = 0x9123
+ MAX_GEOMETRY_OUTPUT_COMPONENTS = 0x9124
+ MAX_FRAGMENT_INPUT_COMPONENTS = 0x9125
+ CONTEXT_PROFILE_MASK = 0x9126
+)
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glViewport.xml
+func (gl *GL) Viewport(x, y, width, height int) {
+ C.gl3_2compat_glViewport(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// DepthRange specifies the mapping of depth values from normalized device
+// coordinates to window coordinates.
+//
+// Parameter nearVal specifies the mapping of the near clipping plane to window
+// coordinates (defaults to 0), while farVal specifies the mapping of the far
+// clipping plane to window coordinates (defaults to 1).
+//
+// After clipping and division by w, depth coordinates range from -1 to 1,
+// corresponding to the near and far clipping planes. DepthRange specifies a
+// linear mapping of the normalized depth coordinates in this range to window
+// depth coordinates. Regardless of the actual depth buffer implementation,
+// window coordinate depth values are treated as though they range from 0 through 1
+// (like color components). Thus, the values accepted by DepthRange are both
+// clamped to this range before they are accepted.
+//
+// The default setting of (0, 1) maps the near plane to 0 and the far plane to 1.
+// With this mapping, the depth buffer range is fully utilized.
+//
+// It is not necessary that nearVal be less than farVal. Reverse mappings such as
+// nearVal 1, and farVal 0 are acceptable.
+//
+// GL.INVALID_OPERATION is generated if DepthRange is executed between the
+// execution of Begin and the corresponding execution of End.
+func (gl *GL) DepthRange(nearVal, farVal float64) {
+ C.gl3_2compat_glDepthRange(gl.funcs, C.GLdouble(nearVal), C.GLdouble(farVal))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsEnabled.xml
+func (gl *GL) IsEnabled(cap glbase.Enum) bool {
+ glresult := C.gl3_2compat_glIsEnabled(gl.funcs, C.GLenum(cap))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexLevelParameteriv.xml
+func (gl *GL) GetTexLevelParameteriv(target glbase.Enum, level int, pname glbase.Enum, params []int32) {
+ C.gl3_2compat_glGetTexLevelParameteriv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexLevelParameterfv.xml
+func (gl *GL) GetTexLevelParameterfv(target glbase.Enum, level int, pname glbase.Enum, params []float32) {
+ C.gl3_2compat_glGetTexLevelParameterfv(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexParameteriv.xml
+func (gl *GL) GetTexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_2compat_glGetTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexParameterfv.xml
+func (gl *GL) GetTexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl3_2compat_glGetTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetTexImage.xml
+func (gl *GL) GetTexImage(target glbase.Enum, level int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glGetTexImage(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetIntegerv.xml
+func (gl *GL) GetIntegerv(pname glbase.Enum, params []int32) {
+ C.gl3_2compat_glGetIntegerv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetFloatv.xml
+func (gl *GL) GetFloatv(pname glbase.Enum, params []float32) {
+ C.gl3_2compat_glGetFloatv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetError.xml
+func (gl *GL) GetError() glbase.Enum {
+ glresult := C.gl3_2compat_glGetError(gl.funcs)
+ return glbase.Enum(glresult)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetDoublev.xml
+func (gl *GL) GetDoublev(pname glbase.Enum, params []float64) {
+ C.gl3_2compat_glGetDoublev(gl.funcs, C.GLenum(pname), (*C.GLdouble)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetBooleanv.xml
+func (gl *GL) GetBooleanv(pname glbase.Enum, params []bool) {
+ C.gl3_2compat_glGetBooleanv(gl.funcs, C.GLenum(pname), (*C.GLboolean)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glReadPixels.xml
+func (gl *GL) ReadPixels(x, y, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glReadPixels(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glReadBuffer.xml
+func (gl *GL) ReadBuffer(mode glbase.Enum) {
+ C.gl3_2compat_glReadBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPixelStorei.xml
+func (gl *GL) PixelStorei(pname glbase.Enum, param int32) {
+ C.gl3_2compat_glPixelStorei(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPixelStoref.xml
+func (gl *GL) PixelStoref(pname glbase.Enum, param float32) {
+ C.gl3_2compat_glPixelStoref(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDepthFunc.xml
+func (gl *GL) DepthFunc(glfunc glbase.Enum) {
+ C.gl3_2compat_glDepthFunc(gl.funcs, C.GLenum(glfunc))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilOp.xml
+func (gl *GL) StencilOp(fail, zfail, zpass glbase.Enum) {
+ C.gl3_2compat_glStencilOp(gl.funcs, C.GLenum(fail), C.GLenum(zfail), C.GLenum(zpass))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilFunc.xml
+func (gl *GL) StencilFunc(glfunc glbase.Enum, ref int32, mask uint32) {
+ C.gl3_2compat_glStencilFunc(gl.funcs, C.GLenum(glfunc), C.GLint(ref), C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLogicOp.xml
+func (gl *GL) LogicOp(opcode glbase.Enum) {
+ C.gl3_2compat_glLogicOp(gl.funcs, C.GLenum(opcode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlendFunc.xml
+func (gl *GL) BlendFunc(sfactor, dfactor glbase.Enum) {
+ C.gl3_2compat_glBlendFunc(gl.funcs, C.GLenum(sfactor), C.GLenum(dfactor))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFlush.xml
+func (gl *GL) Flush() {
+ C.gl3_2compat_glFlush(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFinish.xml
+func (gl *GL) Finish() {
+ C.gl3_2compat_glFinish(gl.funcs)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glEnable.xml
+func (gl *GL) Enable(cap glbase.Enum) {
+ C.gl3_2compat_glEnable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDisable.xml
+func (gl *GL) Disable(cap glbase.Enum) {
+ C.gl3_2compat_glDisable(gl.funcs, C.GLenum(cap))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDepthMask.xml
+func (gl *GL) DepthMask(flag bool) {
+ C.gl3_2compat_glDepthMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&flag)))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glColorMask.xml
+func (gl *GL) ColorMask(red, green, blue, alpha bool) {
+ C.gl3_2compat_glColorMask(gl.funcs, *(*C.GLboolean)(unsafe.Pointer(&red)), *(*C.GLboolean)(unsafe.Pointer(&green)), *(*C.GLboolean)(unsafe.Pointer(&blue)), *(*C.GLboolean)(unsafe.Pointer(&alpha)))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glStencilMask.xml
+func (gl *GL) StencilMask(mask uint32) {
+ C.gl3_2compat_glStencilMask(gl.funcs, C.GLuint(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearDepth.xml
+func (gl *GL) ClearDepth(depth float64) {
+ C.gl3_2compat_glClearDepth(gl.funcs, C.GLdouble(depth))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearStencil.xml
+func (gl *GL) ClearStencil(s int32) {
+ C.gl3_2compat_glClearStencil(gl.funcs, C.GLint(s))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClearColor.xml
+func (gl *GL) ClearColor(red, green, blue, alpha float32) {
+ C.gl3_2compat_glClearColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glClear.xml
+func (gl *GL) Clear(mask glbase.Bitfield) {
+ C.gl3_2compat_glClear(gl.funcs, C.GLbitfield(mask))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawBuffer.xml
+func (gl *GL) DrawBuffer(mode glbase.Enum) {
+ C.gl3_2compat_glDrawBuffer(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexImage2D.xml
+func (gl *GL) TexImage2D(target glbase.Enum, level int, internalFormat int32, width, height, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexImage1D.xml
+func (gl *GL) TexImage1D(target glbase.Enum, level int, internalFormat int32, width, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameteriv.xml
+func (gl *GL) TexParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_2compat_glTexParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameteri.xml
+func (gl *GL) TexParameteri(target, pname glbase.Enum, param int32) {
+ C.gl3_2compat_glTexParameteri(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameterfv.xml
+func (gl *GL) TexParameterfv(target, pname glbase.Enum, params []float32) {
+ C.gl3_2compat_glTexParameterfv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexParameterf.xml
+func (gl *GL) TexParameterf(target, pname glbase.Enum, param float32) {
+ C.gl3_2compat_glTexParameterf(gl.funcs, C.GLenum(target), C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glScissor.xml
+func (gl *GL) Scissor(x, y, width, height int) {
+ C.gl3_2compat_glScissor(gl.funcs, C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPolygonMode.xml
+func (gl *GL) PolygonMode(face, mode glbase.Enum) {
+ C.gl3_2compat_glPolygonMode(gl.funcs, C.GLenum(face), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointSize.xml
+func (gl *GL) PointSize(size float32) {
+ C.gl3_2compat_glPointSize(gl.funcs, C.GLfloat(size))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glLineWidth.xml
+func (gl *GL) LineWidth(width float32) {
+ C.gl3_2compat_glLineWidth(gl.funcs, C.GLfloat(width))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glHint.xml
+func (gl *GL) Hint(target, mode glbase.Enum) {
+ C.gl3_2compat_glHint(gl.funcs, C.GLenum(target), C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glFrontFace.xml
+func (gl *GL) FrontFace(mode glbase.Enum) {
+ C.gl3_2compat_glFrontFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCullFace.xml
+func (gl *GL) CullFace(mode glbase.Enum) {
+ C.gl3_2compat_glCullFace(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexubv.xml
+func (gl *GL) Indexubv(c []uint8) {
+ C.gl3_2compat_glIndexubv(gl.funcs, (*C.GLubyte)(unsafe.Pointer(&c[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIndexub.xml
+func (gl *GL) Indexub(c uint8) {
+ C.gl3_2compat_glIndexub(gl.funcs, C.GLubyte(c))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glIsTexture.xml
+func (gl *GL) IsTexture(texture glbase.Texture) bool {
+ glresult := C.gl3_2compat_glIsTexture(gl.funcs, C.GLuint(texture))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// GenTextures returns n texture names in textures. There is no guarantee
+// that the names form a contiguous set of integers; however, it is
+// guaranteed that none of the returned names was in use immediately before
+// the call to GenTextures.
+//
+// The generated textures have no dimensionality; they assume the
+// dimensionality of the texture target to which they are first bound (see
+// BindTexture).
+//
+// Texture names returned by a call to GenTextures are not returned by
+// subsequent calls, unless they are first deleted with DeleteTextures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// GenTextures is available in GL version 2.0 or greater.
+func (gl *GL) GenTextures(n int) []glbase.Texture {
+ if n == 0 {
+ return nil
+ }
+ textures := make([]glbase.Texture, n)
+ C.gl3_2compat_glGenTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+ return textures
+}
+
+// DeleteTextures deletes the textures objects whose names are stored
+// in the textures slice. After a texture is deleted, it has no contents or
+// dimensionality, and its name is free for reuse (for example by
+// GenTextures). If a texture that is currently bound is deleted, the binding
+// reverts to 0 (the default texture).
+//
+// DeleteTextures silently ignores 0's and names that do not correspond to
+// existing textures.
+//
+// Error GL.INVALID_VALUE is generated if n is negative.
+//
+// DeleteTextures is available in GL version 2.0 or greater.
+func (gl *GL) DeleteTextures(textures []glbase.Texture) {
+ n := len(textures)
+ if n == 0 {
+ return
+ }
+ C.gl3_2compat_glDeleteTextures(gl.funcs, C.GLsizei(n), (*C.GLuint)(unsafe.Pointer(&textures[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBindTexture.xml
+func (gl *GL) BindTexture(target glbase.Enum, texture glbase.Texture) {
+ C.gl3_2compat_glBindTexture(gl.funcs, C.GLenum(target), C.GLuint(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexSubImage2D.xml
+func (gl *GL) TexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexSubImage1D.xml
+func (gl *GL) TexSubImage1D(target glbase.Enum, level, xoffset, width int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexSubImage2D.xml
+func (gl *GL) CopyTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, x, y, width, height int) {
+ C.gl3_2compat_glCopyTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexSubImage1D.xml
+func (gl *GL) CopyTexSubImage1D(target glbase.Enum, level, xoffset, x, y, width int) {
+ C.gl3_2compat_glCopyTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(x), C.GLint(y), C.GLsizei(width))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexImage2D.xml
+func (gl *GL) CopyTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, height, border int) {
+ C.gl3_2compat_glCopyTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexImage1D.xml
+func (gl *GL) CopyTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, x, y, width, border int) {
+ C.gl3_2compat_glCopyTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLint(border))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPolygonOffset.xml
+func (gl *GL) PolygonOffset(factor, units float32) {
+ C.gl3_2compat_glPolygonOffset(gl.funcs, C.GLfloat(factor), C.GLfloat(units))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawElements.xml
+func (gl *GL) DrawElements(mode glbase.Enum, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glDrawElements(gl.funcs, C.GLenum(mode), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawArrays.xml
+func (gl *GL) DrawArrays(mode glbase.Enum, first, count int) {
+ C.gl3_2compat_glDrawArrays(gl.funcs, C.GLenum(mode), C.GLint(first), C.GLsizei(count))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCopyTexSubImage3D.xml
+func (gl *GL) CopyTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, x, y, width, height int) {
+ C.gl3_2compat_glCopyTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexSubImage3D.xml
+func (gl *GL) TexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glTexImage3D.xml
+func (gl *GL) TexImage3D(target glbase.Enum, level int, internalFormat int32, width, height int, depth int32, border int, format, gltype glbase.Enum, pixels interface{}) {
+ var pixels_ptr unsafe.Pointer
+ var pixels_v = reflect.ValueOf(pixels)
+ if pixels != nil && pixels_v.Kind() != reflect.Slice {
+ panic("parameter pixels must be a slice")
+ }
+ if pixels != nil {
+ pixels_ptr = unsafe.Pointer(pixels_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLenum(format), C.GLenum(gltype), pixels_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glDrawRangeElements.xml
+func (gl *GL) DrawRangeElements(mode glbase.Enum, start, end uint32, count int, gltype glbase.Enum, indices interface{}) {
+ var indices_ptr unsafe.Pointer
+ var indices_v = reflect.ValueOf(indices)
+ if indices != nil && indices_v.Kind() != reflect.Slice {
+ panic("parameter indices must be a slice")
+ }
+ if indices != nil {
+ indices_ptr = unsafe.Pointer(indices_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glDrawRangeElements(gl.funcs, C.GLenum(mode), C.GLuint(start), C.GLuint(end), C.GLsizei(count), C.GLenum(gltype), indices_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlendEquation.xml
+func (gl *GL) BlendEquation(mode glbase.Enum) {
+ C.gl3_2compat_glBlendEquation(gl.funcs, C.GLenum(mode))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlendColor.xml
+func (gl *GL) BlendColor(red, green, blue, alpha float32) {
+ C.gl3_2compat_glBlendColor(gl.funcs, C.GLfloat(red), C.GLfloat(green), C.GLfloat(blue), C.GLfloat(alpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetCompressedTexImage.xml
+func (gl *GL) GetCompressedTexImage(target glbase.Enum, level int, img interface{}) {
+ var img_ptr unsafe.Pointer
+ var img_v = reflect.ValueOf(img)
+ if img != nil && img_v.Kind() != reflect.Slice {
+ panic("parameter img must be a slice")
+ }
+ if img != nil {
+ img_ptr = unsafe.Pointer(img_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glGetCompressedTexImage(gl.funcs, C.GLenum(target), C.GLint(level), img_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexSubImage1D.xml
+func (gl *GL) CompressedTexSubImage1D(target glbase.Enum, level, xoffset, width int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glCompressedTexSubImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLsizei(width), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexSubImage2D.xml
+func (gl *GL) CompressedTexSubImage2D(target glbase.Enum, level, xoffset, yoffset, width, height int, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glCompressedTexSubImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexSubImage3D.xml
+func (gl *GL) CompressedTexSubImage3D(target glbase.Enum, level, xoffset, yoffset int, zoffset int32, width, height int, depth int32, format glbase.Enum, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glCompressedTexSubImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(zoffset), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLenum(format), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexImage1D.xml
+func (gl *GL) CompressedTexImage1D(target glbase.Enum, level int, internalFormat glbase.Enum, width, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glCompressedTexImage1D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexImage2D.xml
+func (gl *GL) CompressedTexImage2D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glCompressedTexImage2D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glCompressedTexImage3D.xml
+func (gl *GL) CompressedTexImage3D(target glbase.Enum, level int, internalFormat glbase.Enum, width, height int, depth int32, border, imageSize int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glCompressedTexImage3D(gl.funcs, C.GLenum(target), C.GLint(level), C.GLenum(internalFormat), C.GLsizei(width), C.GLsizei(height), C.GLsizei(depth), C.GLint(border), C.GLsizei(imageSize), data_ptr)
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glSampleCoverage.xml
+func (gl *GL) SampleCoverage(value float32, invert bool) {
+ C.gl3_2compat_glSampleCoverage(gl.funcs, C.GLfloat(value), *(*C.GLboolean)(unsafe.Pointer(&invert)))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glActiveTexture.xml
+func (gl *GL) ActiveTexture(texture glbase.Enum) {
+ C.gl3_2compat_glActiveTexture(gl.funcs, C.GLenum(texture))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointParameteriv.xml
+func (gl *GL) PointParameteriv(pname glbase.Enum, params []int32) {
+ C.gl3_2compat_glPointParameteriv(gl.funcs, C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointParameteri.xml
+func (gl *GL) PointParameteri(pname glbase.Enum, param int32) {
+ C.gl3_2compat_glPointParameteri(gl.funcs, C.GLenum(pname), C.GLint(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointParameterfv.xml
+func (gl *GL) PointParameterfv(pname glbase.Enum, params []float32) {
+ C.gl3_2compat_glPointParameterfv(gl.funcs, C.GLenum(pname), (*C.GLfloat)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glPointParameterf.xml
+func (gl *GL) PointParameterf(pname glbase.Enum, param float32) {
+ C.gl3_2compat_glPointParameterf(gl.funcs, C.GLenum(pname), C.GLfloat(param))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glMultiDrawArrays.xml
+func (gl *GL) MultiDrawArrays(mode glbase.Enum, first, count []int, drawcount int32) {
+ C.gl3_2compat_glMultiDrawArrays(gl.funcs, C.GLenum(mode), (*C.GLint)(unsafe.Pointer(&first[0])), (*C.GLsizei)(unsafe.Pointer(&count[0])), C.GLsizei(drawcount))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glBlendFuncSeparate.xml
+func (gl *GL) BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha glbase.Enum) {
+ C.gl3_2compat_glBlendFuncSeparate(gl.funcs, C.GLenum(sfactorRGB), C.GLenum(dfactorRGB), C.GLenum(sfactorAlpha), C.GLenum(dfactorAlpha))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetBufferParameteriv.xml
+func (gl *GL) GetBufferParameteriv(target, pname glbase.Enum, params []int32) {
+ C.gl3_2compat_glGetBufferParameteriv(gl.funcs, C.GLenum(target), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&params[0])))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glUnmapBuffer.xml
+func (gl *GL) UnmapBuffer(target glbase.Enum) bool {
+ glresult := C.gl3_2compat_glUnmapBuffer(gl.funcs, C.GLenum(target))
+ return *(*bool)(unsafe.Pointer(&glresult))
+}
+
+// https://www.opengl.org/sdk/docs/man3/xhtml/glGetBufferSubData.xml
+func (gl *GL) GetBufferSubData(target glbase.Enum, offset, size int, data interface{}) {
+ var data_ptr unsafe.Pointer
+ var data_v = reflect.ValueOf(data)
+ if data != nil && data_v.Kind() != reflect.Slice {
+ panic("parameter data must be a slice")
+ }
+ if data != nil {
+ data_ptr = unsafe.Pointer(data_v.Index(0).Addr().Pointer())
+ }
+ C.gl3_2compat_glGetBufferSubData(gl.funcs, C.GLenum(target), C.GLintptr(offset), C.GLsizeiptr(size), data_ptr)
+}
+