blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
146
content_id
stringlengths
40
40
detected_licenses
listlengths
0
7
license_type
stringclasses
2 values
repo_name
stringlengths
6
79
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
4 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.07k
426M
star_events_count
int64
0
27
fork_events_count
int64
0
12
gha_license_id
stringclasses
3 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
6 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
1 class
length_bytes
int64
20
6.28M
extension
stringclasses
20 values
content
stringlengths
20
6.28M
authors
listlengths
1
16
author_lines
listlengths
1
16
e5c764bd5b5965d8b1dae13a8ded4b3939fe6540
4d838ba98a21fc4593652e66eb7df0fac6282ef6
/CaveProj/RenderWindow.cpp
dbef3ba9503309637c7c49a7aa9cf4593b553dd5
[]
no_license
davidhart/ProceduralCaveEditor
39ed0cf4ab4acb420fa2ad4af10f9546c138a83a
31264591f2dcd250299049c826aeca18fc52880e
refs/heads/master
2021-01-17T15:10:09.100572
2011-05-03T19:24:06
2011-05-03T19:24:06
69,302,913
0
0
null
null
null
null
UTF-8
C++
false
false
7,718
cpp
#include "RenderWindow.h" #include "Application.h" #include <D3DX10.h> #include <iostream> const char* RenderWindow::WINDOW_CLASS_NAME = "DXWindow"; RenderWindow::RenderWindow() : _hwnd(0), _size(1280, 720), _isOpen(false), _windowTitle("RenderWindow") { _input.SetWindow(this); } bool RenderWindow::IsOpen() { return _isOpen; } void RenderWindow::DoEvents(Application& application) { _input.UpdateStep(); MSG msg; while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) { if (!application.HandleMessage(msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } _input.PostEvents(); } bool RenderWindow::Create() { if (!CreateWnd()) return false; if (!CreateDX()) { CleanupWnd(); return false; } _isOpen = true; ShowWindow(_hwnd, TRUE); return true; } void RenderWindow::Clear() { float ClearColor[4] = { 0.0f, 0.0f, 0.0f, 1.0f }; _d3dDevice->ClearRenderTargetView( _renderTargetView, ClearColor ); _d3dDevice->ClearDepthStencilView( _depthStencilView, D3D10_CLEAR_DEPTH, 1.0f, 0 ); } void RenderWindow::Present() { _d3dSwapChain->Present(0,0); } void RenderWindow::Close() { if (_isOpen) { DestroyWindow(_hwnd); } } bool RenderWindow::CreateWnd() { WNDCLASSEX wc; wc.cbSize = sizeof(WNDCLASSEX); wc.style = CS_HREDRAW | CS_VREDRAW; wc.lpfnWndProc = StaticWindowProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = GetModuleHandle(0); wc.hIcon = 0; wc.hCursor = LoadCursor(0, IDC_ARROW); wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH); wc.lpszMenuName = 0; wc.lpszClassName = WINDOW_CLASS_NAME; wc.hIconSm = 0; if (RegisterClassEx(&wc) == 0) return false; DWORD winStyle = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_CLIPCHILDREN | WS_CLIPSIBLINGS; DWORD winStyleEx = WS_EX_APPWINDOW | WS_EX_WINDOWEDGE; RECT r; r.left = 0; r.top = 0; r.right = _size.x; r.bottom = _size.y; AdjustWindowRectEx(&r, winStyle, FALSE, winStyleEx); if ((_hwnd = CreateWindowEx(winStyleEx, WINDOW_CLASS_NAME, _windowTitle.c_str(), winStyle, CW_USEDEFAULT, CW_USEDEFAULT, r.right - r.left, r.bottom - r.top, 0, 0, GetModuleHandle(0), this)) == 0) { UnregisterClass(WINDOW_CLASS_NAME, GetModuleHandle(0)); return false; } return true; } void RenderWindow::CleanupWnd() { DestroyWindow(_hwnd); _hwnd = 0; UnregisterClass(WINDOW_CLASS_NAME, GetModuleHandle(0)); } bool RenderWindow::CreateDX() { DXGI_SWAP_CHAIN_DESC sd; ZeroMemory( &sd, sizeof( sd ) ); sd.BufferCount = 1; sd.BufferDesc.Width = _size.x; sd.BufferDesc.Height = _size.y; sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; sd.BufferDesc.RefreshRate.Numerator = 60; sd.BufferDesc.RefreshRate.Denominator = 1; sd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; sd.OutputWindow = _hwnd; sd.SampleDesc.Count = 1; sd.SampleDesc.Quality = 0; sd.Windowed = TRUE; if (FAILED(D3D10CreateDeviceAndSwapChain(0, D3D10_DRIVER_TYPE_HARDWARE, 0, D3D10_CREATE_DEVICE_DEBUG, // can specify debug here D3D10_SDK_VERSION, &sd, &_d3dSwapChain, &_d3dDevice))) { return false; } ID3D10Texture2D* backBuffer; if (FAILED(_d3dSwapChain->GetBuffer(0, __uuidof(ID3D10Texture2D), (void**)&backBuffer))) { _d3dSwapChain->Release(); _d3dSwapChain = 0; _d3dDevice->Release(); _d3dDevice = 0; return false; } HRESULT hr = _d3dDevice->CreateRenderTargetView(backBuffer, 0, &_renderTargetView); backBuffer->Release(); if (FAILED(hr)) { _d3dSwapChain->Release(); _d3dSwapChain = 0; _d3dDevice->Release(); _d3dDevice = 0; return false; } D3D10_TEXTURE2D_DESC descDepth; ZeroMemory(&descDepth, sizeof(descDepth)); descDepth.Width = _size.x; descDepth.Height = _size.y; descDepth.MipLevels = 1; descDepth.ArraySize = 1; descDepth.Format = DXGI_FORMAT_D24_UNORM_S8_UINT; descDepth.SampleDesc.Count = 1; descDepth.SampleDesc.Quality = 0; descDepth.Usage = D3D10_USAGE_DEFAULT; descDepth.BindFlags = D3D10_BIND_DEPTH_STENCIL; descDepth.CPUAccessFlags = 0; descDepth.MiscFlags = 0; hr = _d3dDevice->CreateTexture2D( &descDepth, NULL, &_depthStencil ); if (FAILED(hr)) { _d3dSwapChain->Release(); _d3dSwapChain = 0; _d3dDevice->Release(); _d3dDevice = 0; _renderTargetView->Release(); _renderTargetView = 0; } D3D10_DEPTH_STENCIL_VIEW_DESC descDSV; ZeroMemory(&descDSV, sizeof(descDSV)); descDSV.Format = descDepth.Format; descDSV.ViewDimension = D3D10_DSV_DIMENSION_TEXTURE2D; descDSV.Texture2D.MipSlice = 0; hr = _d3dDevice->CreateDepthStencilView( _depthStencil, &descDSV, &_depthStencilView ); if (FAILED(hr)) { MessageBox(0, "Error", "Error", MB_OK); } _d3dDevice->OMSetRenderTargets(1, &_renderTargetView, _depthStencilView); D3D10_VIEWPORT vp; vp.Width = _size.x; vp.Height = _size.y; vp.MinDepth = 0.0f; vp.MaxDepth = 1.0f; vp.TopLeftX = 0; vp.TopLeftY = 0; _d3dDevice->RSSetViewports(1, &vp); return true; } void RenderWindow::CleanupDX() { if (_renderTargetView != 0) { _renderTargetView->Release(); _renderTargetView = 0; } if (_d3dSwapChain != 0) { _d3dSwapChain->Release(); _d3dSwapChain = 0; } if (_d3dDevice != 0) { _d3dDevice->Release(); _d3dDevice = 0; } } void RenderWindow::Cleanup() { CleanupDX(); CleanupWnd(); } LRESULT CALLBACK RenderWindow::StaticWindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { if (msg == WM_NCCREATE) { SetWindowLong(hwnd, GWL_USERDATA, (LONG_PTR)((LPCREATESTRUCT)lparam)->lpCreateParams); return DefWindowProc(hwnd, msg, wparam, lparam); } else { RenderWindow* window = (RenderWindow*)GetWindowLongPtr(hwnd, GWL_USERDATA); return window->WindowProc(hwnd, msg, wparam, lparam); } } LRESULT CALLBACK RenderWindow::WindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { switch (msg) { case WM_DESTROY: if (_isOpen) { PostQuitMessage(0); Cleanup(); _isOpen = false; } break; case WM_MOUSEMOVE: { Vector2f mousePos (LOWORD(lparam), HIWORD(lparam)); _input.MouseMoveEvent(mousePos); } break; case WM_SETFOCUS: _input.SetFocusEvent(); break; case WM_KILLFOCUS: _input.LostFocusEvent(); break; case WM_LBUTTONDOWN: _input.MouseDownEvent(Input::BUTTON_LEFT); break; case WM_MBUTTONDOWN: _input.MouseDownEvent(Input::BUTTON_MID); break; case WM_RBUTTONDOWN: _input.MouseDownEvent(Input::BUTTON_RIGHT); break; case WM_LBUTTONUP: _input.MouseUpEvent(Input::BUTTON_LEFT); break; case WM_MBUTTONUP: _input.MouseUpEvent(Input::BUTTON_MID); break; case WM_RBUTTONUP: _input.MouseUpEvent(Input::BUTTON_RIGHT); break; case WM_KEYDOWN: if (wparam >= 0 && wparam < 256) _input.KeyDownEvent((Input::eKey)wparam); break; case WM_KEYUP: if (wparam >= 0 && wparam < 256) _input.KeyUpEvent((Input::eKey)wparam); break; } return DefWindowProc(hwnd, msg, wparam, lparam); } void RenderWindow::SetTitle(const std::string& title) { _windowTitle = title; if (_isOpen) { SetWindowText(_hwnd, title.c_str()); } } void RenderWindow::GetScreenRect(RECT &r) const { GetClientRect(_hwnd, &r); ClientToScreen(_hwnd, (LPPOINT)&r.left); ClientToScreen(_hwnd, (LPPOINT)&r.right); }
[ [ [ 1, 354 ] ] ]
55c036aa08d21bcd02d531d8c33814ef5167138e
a4756c3232fd88a74df199acc84ab70ec48d7875
/FileManagerClient/receivefilecommand.h
6f3dfb84ea351a0530343342afc24ae139c6df45
[]
no_license
raygray/filemanagermlf
a7a0cdd14cd558657116b6ae641bcb743084ba37
0648183e9c88d6e883861f1f1dcbe67550e5c11f
refs/heads/master
2021-01-10T05:03:12.702335
2010-07-14T13:31:02
2010-07-14T13:31:02
49,008,746
0
0
null
null
null
null
UTF-8
C++
false
false
446
h
#ifndef RECEIVEFILECOMMAND_H #define RECEIVEFILECOMMAND_H #include "clientcommand.h" #include "receivefilethread.h" class ReceiveFileCommand : public ClientCommand { public: explicit ReceiveFileCommand(const char *fileName, int transId); ~ReceiveFileThread(); QString getFileName() const; int getTransId() const; public: void doCommand(); //virtual fun private: }; #endif // RECEIVEFILECOMMAND_H
[ "malongfei88@0a542be3-54de-31ef-7baa-42960c810bab" ]
[ [ [ 1, 23 ] ] ]
05ffae97a7c93f58fe2746177ebd4c93c31e7c23
bef7d0477a5cac485b4b3921a718394d5c2cf700
/nanobots/src/demo/GameInfo.cpp
2c08a9675ddbe9d2971d8735218fc266f98dd1cf
[ "MIT" ]
permissive
TomLeeLive/aras-p-dingus
ed91127790a604e0813cd4704acba742d3485400
22ef90c2bf01afd53c0b5b045f4dd0b59fe83009
refs/heads/master
2023-04-19T20:45:14.410448
2011-10-04T10:51:13
2011-10-04T10:51:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,961
cpp
#include "stdafx.h" #include "GameInfo.h" //#include "map/GameMap.h" #include "map/LevelMesh.h" #include "map/PointsMesh.h" #include "game/GameDesc.h" #include "game/GameState.h" #include "entity/EntityManager.h" #include "MinimapRenderer.h" #include "EntityInfoRenderer.h" #include "StreamImpostorsRenderer.h" #include "net/NetInterface.h" #include "net/NetMessages.h" std::string gErrorMsg = ""; // -------------------------------------------------------------------------- // singleton CGameInfo* CGameInfo::mSingleInstance = 0; void CGameInfo::initialize( const std::string& server, int port, HWND wnd ) { assert( !mSingleInstance ); mSingleInstance = new CGameInfo( server, port, wnd ); } void CGameInfo::finalize() { assert( mSingleInstance ); delete mSingleInstance; } // -------------------------------------------------------------------------- // multi-step initialization const char* CGameInfo::initBegin() { return "Connecting to server..."; gErrorMsg = ""; } const char* CGameInfo::initStep() { gErrorMsg = ""; // connect to server? if( !net::isConnected() ) { try { net::initialize( mServerName.c_str(), mServerPort, mWindow ); } catch( const net::ENetException& e ) { gErrorMsg = e.what(); return NULL; } return "Requesting game desc..."; } // request game desc? if( !mGameDesc ) { mGameDesc = net::receiveGameDesc( gErrorMsg ); if( !gErrorMsg.empty() ) { return NULL; } mState = new CGameState(); return "Calculating level mesh..."; } // calculate level mesh? if( !mLevelMesh ) { // TBD: error processing mLevelMesh = new CLevelMesh( mGameDesc->getMap() ); return "Initializing level points mesh..."; } assert( mLevelMesh ); // calculate level points mesh? if( !mPointsMesh ) { // TBD: error processing mPointsMesh = new CPointsMesh( mGameDesc->getMap(), *mLevelMesh ); return "Creating renderers..."; } assert( mPointsMesh ); // create renderers? if( !mMinimapRenderer ) { mMinimapRenderer = new CMinimapRenderer( *RGET_IB(RID_IB_QUADS) ); mEntityBlobsRenderer = new CMinimapRenderer( *RGET_IB(RID_IB_QUADS) ); mEntityInfoRenderer = new CEntityInfoRenderer( *RGET_IB(RID_IB_QUADS) ); mStreamImpostorsRenderer = new CStreamImpostorsRenderer( *RGET_IB(RID_IB_QUADS) ); return "Creating entities..."; } // create entity manager? if( !mEntities ) { mEntities = new CEntityManager(); return NULL; // all done! } assert( false ); // shouldn't get here... return NULL; } CGameInfo::CGameInfo( const std::string& server, int port, HWND wnd ) : mServerName(server) , mServerPort(port) , mWindow( wnd ) , mGameDesc(NULL) , mState(NULL) , mLevelMesh(NULL), mPointsMesh(NULL), mMinimapRenderer(NULL), mEntityBlobsRenderer(NULL), mEntityInfoRenderer(NULL), mStreamImpostorsRenderer(NULL), mEntities(NULL) { } CGameInfo::~CGameInfo() { safeDelete( mEntities ); safeDelete( mMinimapRenderer ); safeDelete( mEntityBlobsRenderer ); safeDelete( mEntityInfoRenderer ); safeDelete( mStreamImpostorsRenderer ); safeDelete( mPointsMesh ); safeDelete( mLevelMesh ); safeDelete( mState ); safeDelete( mGameDesc ); net::shutdown(); } // -------------------------------------------------------------------------- // general notifications void CGameInfo::onNewEntity( const CGameEntity& e ) { mEntities->onNewGameEntity( e ); } void CGameInfo::onNewInjectionPoint( int player, int x, int y ) { const CGameMap::SPoint& pt = mGameDesc->getMap().addInjectionPoint( player, x, y, NULL ); mEntities->onNewInjectionPoint( pt ); } void CGameInfo::onHideInjectionPoint( int pointIndex ) { assert( pointIndex >= 0 && pointIndex < mGameDesc->getMap().getPointCount() ); const CGameMap::SPoint& pt = mGameDesc->getMap().getPoint( pointIndex ); mEntities->onHideInjectionPoint( pt ); }
[ [ [ 1, 158 ] ] ]
1ec4dfb38d15b720d76d6cd2553629341a5112b8
332b40f51efaafde525f2526b4b257639b569ce5
/src/algorithms/codebook.cpp
4e3d77058eace6a3419ce20d2f84e6488f6067ff
[]
no_license
kod3r/EagleEye
d62de5ed2ba8c84cb31555c6b34536e0dc8e4185
4fb48de8f46e675a18ab866b8ec262fcbe64911b
refs/heads/master
2020-12-24T12:47:26.509951
2010-01-13T21:00:41
2010-01-13T21:00:41
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,700
cpp
#include "codebook.h" CodeBook::CodeBook(IplImage* videoFrame) { initialModel(videoFrame); } CodeBook::~CodeBook() { if (model) cvReleaseBGCodeBookModel(&model); if (yuvFrame) cvReleaseImage(&yuvFrame); if (mask) cvReleaseImage(&mask); } void CodeBook::initialModel(IplImage* videoFrame) { nframes=1; nframesToLearnBG=10; model= cvCreateBGCodeBookModel(); //Set color thresholds to default values model->modMin[0] = 30; model->modMin[1] = model->modMin[2] = 30; model->modMax[0] = 100; model->modMax[1] = model->modMax[2] = 100; model->cbBounds[0] = model->cbBounds[1] = model->cbBounds[2] = 100; yuvFrame = cvCloneImage(videoFrame); dstFrame = cvCloneImage(videoFrame); cvCvtColor(videoFrame, yuvFrame, CV_BGR2YCrCb ); cvBGCodeBookUpdate(model, yuvFrame); mask = cvCreateImage(cvGetSize(videoFrame), IPL_DEPTH_8U, 1 ); cvSet(mask,cvScalar(255)); } void CodeBook::updateModel(IplImage* videoFrame) { cvCvtColor(videoFrame, yuvFrame, CV_BGR2YCrCb );//YUV For codebook method //This is where we build our background model if( nframes-1 < nframesToLearnBG ) cvBGCodeBookUpdate( model, yuvFrame ); if( nframes-1 == nframesToLearnBG ) cvBGCodeBookClearStale( model, model->t/2 ); if( nframes-1 >= nframesToLearnBG ) { // Find foreground by codebook method cvBGCodeBookDiff( model, yuvFrame, mask); cvThreshold( mask, mask, 1, 255, CV_THRESH_BINARY ); cvSegmentFGMask(mask); emit { output(mask); output(mask, videoFrame); } } nframes++; } void CodeBook::input(IplImage* videoFrame) { updateModel(videoFrame); }
[ [ [ 1, 71 ] ] ]
6ae1083ce9e02f6a1cd83a25ee51144baf326658
10bac563fc7e174d8f7c79c8777e4eb8460bc49e
/core/detail/jpeg_decoder_impl.cpp
e6a3bf74470b5739b8a9f3656231992d8aca5011
[]
no_license
chenbk85/alcordev
41154355a837ebd15db02ecaeaca6726e722892a
bdb9d0928c80315d24299000ca6d8c492808f1d5
refs/heads/master
2021-01-10T13:36:29.338077
2008-10-22T15:57:50
2008-10-22T15:57:50
44,953,286
0
1
null
null
null
null
UTF-8
C++
false
false
4,719
cpp
//######################################################################## #include "alcor/core/core.h" #include "alcor/core/image_utils.h" #include "alcor.extern/jpeg-c++/jpegDecompress.h" #include <sstream> using std::istringstream; //######################################################################## namespace all { namespace core { namespace detail { //######################################################################## struct jpeg_decoder_impl { /// jpeg_decoder_impl(){}; /// jpeg::Decompress decoder_; /// all::core::jpeg_data_t decode_( core::uint8_sarr byte_stream , size_t byte_lenght , bool toplanar = true); ///Overload ... takes a rawpointer. all::core::jpeg_data_t decode_( core::uint8_ptr byte_stream , size_t byte_lenght , bool toplanar = true); /// bool verify_crc_(core::uint8_sarr byte_stream, size_t byte_lenght, boost::crc_32_type::value_type crc); ///verify_crc_ overload. Takes a raw pointer bool verify_crc_(core::uint8_ptr byte_stream, size_t byte_lenght, boost::crc_32_type::value_type crc); /// boost::crc_32_type crc_result; /// int h_; /// int w_; /// int d_; }; //######################################################################## inline all::core::jpeg_data_t jpeg_decoder_impl::decode_( core::uint8_sarr byte_stream , size_t byte_lenght , bool toplanar) { // std::string temp(reinterpret_cast<char*>(byte_stream.get()), byte_lenght); // istringstream jpeg_stream(temp); // decoder_.setInputStream(jpeg_stream); // decoder_.readHeader(w_,h_,d_); // core::uint8_sarr jarr(new core::uint8_t[h_*w_*d_]); // decoder_.readImage(jarr.get()); if (d_>1 && toplanar) { //CONVERT TO PLANAR core::change_ordering::to_planar(jarr, h_, w_, d_); } // jpeg_data_t jpeg_data; jpeg_data.height = h_; jpeg_data.width = w_; jpeg_data.depth = d_; // jpeg_data.size = h_*w_*d_; jpeg_data.data = jarr; // return jpeg_data; } //######################################################################## ///Overload ... takes a rawpointer. all::core::jpeg_data_t jpeg_decoder_impl::decode_( core::uint8_ptr byte_stream , size_t byte_lenght , bool toplanar) { // std::string temp(reinterpret_cast<char*>(byte_stream), byte_lenght); // istringstream jpeg_stream(temp); // decoder_.setInputStream(jpeg_stream); // decoder_.readHeader(w_,h_,d_); // core::uint8_sarr jarr(new core::uint8_t[h_*w_*d_]); // decoder_.readImage(jarr.get()); if (d_>1 && toplanar) { //CONVERT TO PLANAR core::change_ordering::to_planar(jarr, h_, w_, d_); } // jpeg_data_t jpeg_data; jpeg_data.height = h_; jpeg_data.width = w_; jpeg_data.depth = d_; // jpeg_data.size = h_*w_*d_; jpeg_data.data = jarr; // return jpeg_data; } //######################################################################## inline bool jpeg_decoder_impl::verify_crc_(core::uint8_sarr byte_stream, size_t byte_lenght, boost::crc_32_type::value_type crc) { //printf("Verifying CRC %x\n", crc); crc_result.reset(); crc_result.process_bytes( byte_stream.get(), byte_lenght); return (crc == crc_result.checksum() ); } //######################################################################## inline bool jpeg_decoder_impl::verify_crc_(core::uint8_ptr byte_stream_ptr, size_t byte_lenght, boost::crc_32_type::value_type crc) { //printf("Verifying CRC %x\n", crc); crc_result.reset(); crc_result.process_bytes( byte_stream_ptr, byte_lenght); return (crc == crc_result.checksum() ); } //######################################################################## }}}//all::core::detail //########################################################################
[ "andrea.carbone@1c7d64d3-9b28-0410-bae3-039769c3cb81", "stefano.marra@1c7d64d3-9b28-0410-bae3-039769c3cb81" ]
[ [ [ 1, 125 ], [ 129, 145 ] ], [ [ 126, 128 ] ] ]
a35625b91846ec084bd3344e7a1e0c5875cbd291
ddc9569f4950c83f98000a01dff485aa8fa67920
/naikai/windowing/src/win32/nkWindowingModule.cpp
b728346ef409ecd03d036689161e1c8c5f8ea474
[]
no_license
chadaustin/naikai
0a291ddabe725504cdd80c6e2c7ccb85dc5109da
83b590b049a7e8a62faca2b0ca1d7d33e2013301
refs/heads/master
2021-01-10T13:28:48.743787
2003-02-19T19:56:24
2003-02-19T19:56:24
36,420,940
0
0
null
null
null
null
UTF-8
C++
false
false
394
cpp
#include "nsIGenericFactory.h" #include "nkWindowingService.h" NS_GENERIC_FACTORY_CONSTRUCTOR(nkWindowingService) static nsModuleComponentInfo components[] = { { "Naikai Windowing System (Win32) Component", NK_WINDOWING_SERVICE_CID, NK_WINDOWING_SERVICE_CONTRACTID, nkWindowingServiceConstructor, } }; NS_IMPL_NSGETMODULE(nkWindowingSystemModule, components)
[ "aegis@ed5ae262-7be1-47e3-824f-6ab8bb33c1ce" ]
[ [ [ 1, 19 ] ] ]
90344ca2b8a7f5a4a8fedc92e132fe01e8f05abb
d6dbf57842d0b5121b3ece85f7b8ffc195519d51
/OgreMax/OgreMaxScene.cpp
122f73cdcd7f234a319978c09d0bb0ab89a9b9eb
[]
no_license
tunnuz/cel-language
3f0baddaa04a51afa10cf2fed4a47f4c93bb28a8
afaa3f201d56c33099e7787b1613daeab21cf027
refs/heads/master
2020-05-18T12:55:56.785687
2010-07-06T12:51:15
2010-07-06T12:51:15
32,117,063
0
0
null
null
null
null
UTF-8
C++
false
false
130,811
cpp
/* * OgreMaxViewer - An Ogre 3D-based viewer for .scene and .mesh files * Copyright 2008 Derek Nedelman * * This code is available under the OgreMax Free License: * -You may use this code for any purpose, commercial or non-commercial. * -If distributing derived works (that use this source code) in binary or source code form, * you must give the following credit in your work's end-user documentation: * "Portions of this work provided by OgreMax (www.ogremax.com)" * * Derek Nedelman assumes no responsibility for any harm caused by using this code. * * OgreMaxViewer was written by Derek Nedelman and released at www.ogremax.com */ //Includes--------------------------------------------------------------------- #include "OgreMaxScene.hpp" #include "OgreMaxUtilities.hpp" #include <OgreHardwarePixelBuffer.h> #include <OgreRenderTarget.h> #include <OgreRenderTexture.h> #include <OgreMaterialManager.h> #include <OgreRoot.h> #include <OgreRenderSystem.h> #include <OgreRenderWindow.h> #include <OgreSubEntity.h> #include <OgreBillboard.h> #include <OgreShadowCameraSetupFocused.h> #include <OgreShadowCameraSetupLiSPSM.h> #include <OgreShadowCameraSetupPlaneOptimal.h> using namespace Ogre; using namespace OgreMax; using namespace OgreMax::Types; //Local classes---------------------------------------------------------------- /** * Internal model loading callback used when creating an instance of a model * It translates model callbacks to scene callbacks */ class SceneModelInstanceCallback : public OgreMaxModelInstanceCallback { public: SceneModelInstanceCallback(OgreMaxScene* scene, OgreMaxSceneCallback* sceneCallback) { this->scene = scene; this->sceneCallback = sceneCallback; } virtual void CreatedLight(const OgreMaxModel* model, Light* light) { if (this->sceneCallback != 0) this->sceneCallback->CreatedLight(this->scene, light); CreatedMovableObject(model, light); } virtual void CreatedCamera(const OgreMaxModel* model, Camera* camera) { if (this->sceneCallback != 0) this->sceneCallback->CreatedCamera(this->scene, camera); CreatedMovableObject(model, camera); } virtual void CreatedMesh(const OgreMaxModel* model, Mesh* mesh) { if (this->sceneCallback != 0) this->sceneCallback->CreatedMesh(this->scene, mesh); } virtual void CreatedEntity(const OgreMaxModel* model, Entity* entity) { if (this->sceneCallback != 0) this->sceneCallback->CreatedEntity(this->scene, entity); CreatedMovableObject(model, entity); } virtual void CreatedParticleSystem(const OgreMaxModel* model, ParticleSystem* particleSystem) { if (this->sceneCallback != 0) this->sceneCallback->CreatedParticleSystem(this->scene, particleSystem); CreatedMovableObject(model, particleSystem); } virtual void CreatedBillboardSet(const OgreMaxModel* model, BillboardSet* billboardSet) { if (this->sceneCallback != 0) this->sceneCallback->CreatedBillboardSet(this->scene, billboardSet); CreatedMovableObject(model, billboardSet); } virtual void CreatedPlane(const OgreMaxModel* model, const Plane& plane, Entity* entity) { if (this->sceneCallback != 0) this->sceneCallback->CreatedPlane(this->scene, plane, entity); CreatedMovableObject(model, entity); } virtual void CreatedMovableObject(const OgreMaxModel* model, MovableObject* object) { if (this->sceneCallback != 0) this->sceneCallback->CreatedMovableObject(this->scene, object); } virtual void CreatedNodeAnimationTrack(const OgreMaxModel* model, SceneNode* node, AnimationTrack* animationTrack, bool enabled, bool looping) { if (this->sceneCallback != 0) this->sceneCallback->CreatedNodeAnimationTrack(this->scene, node, animationTrack, enabled, looping); } virtual void CreatedNodeAnimationState(const OgreMaxModel* model, SceneNode* node, AnimationState* animationState) { if (this->sceneCallback != 0) this->sceneCallback->CreatedNodeAnimationState(this->scene, node, animationState); } virtual void StartedCreatingNode(const OgreMaxModel* model, SceneNode* node) { node->setFixedYawAxis(false, this->scene->GetUpAxis() == UP_AXIS_Y ? Vector3::UNIT_Y : Vector3::UNIT_Z); if (this->sceneCallback != 0) this->sceneCallback->StartedCreatingNode(this->scene, node); } virtual void FinishedCreatingNode(const OgreMaxModel* model, SceneNode* node) { if (this->sceneCallback != 0) this->sceneCallback->FinishedCreatingNode(this->scene, node); } virtual void HandleObjectExtraData(ObjectExtraDataPtr objectExtraData) { this->scene->HandleNewObjectExtraData(objectExtraData); } private: OgreMaxScene* scene; OgreMaxSceneCallback* sceneCallback; }; //Implementation--------------------------------------------------------------- OgreMaxScene::OgreMaxScene() { this->sceneManager = 0; this->rootNode = 0; this->callback = 0; this->upAxis = UP_AXIS_Y; this->unitsPerMeter = 0; this->environmentNear = 0; this->environmentFar = 10000; this->shadowOptimalPlane = 0; this->backgroundColor = ColourValue::Black; this->loadedRenderTextures.reserve(32); this->currentRenderTextureIndex = 0; this->loadedFromFileSystem = false; } OgreMaxScene::~OgreMaxScene() { Destroy(); } void OgreMaxScene::Load ( const String& fileName, RenderWindow* renderWindow, LoadOptions loadOptions, SceneManager* sceneManager, SceneNode* rootNode, OgreMaxSceneCallback* callback, const String& defaultResourceGroupName ) { OgreMaxOneRenderWindow oneRenderWindow(renderWindow); Load(fileName, oneRenderWindow, loadOptions, sceneManager, rootNode, callback, defaultResourceGroupName); } void OgreMaxScene::Load ( const String& fileNameOrContent, OgreMaxRenderWindowIterator& renderWindows, LoadOptions loadOptions, SceneManager* sceneManager, SceneNode* rootNode, OgreMaxSceneCallback* callback, const String& defaultResourceGroupName ) { bool isFileName = (loadOptions & FILE_NAME_CONTAINS_CONTENT) == 0; //Parse the directory and file base name from the input file name, if it's a file name String directory, fileBaseName; if (isFileName) { StringUtil::splitFilename(fileNameOrContent, fileBaseName, directory); if (!directory.empty()) { //A full path was passed in. Assume the caller wants the directory to be added as //a resource location and that the directory be the base all other resource //locations are relative to SetBaseResourceLocation(directory); } } //Notify callback, possibly getting a new resource group name String resourceGroupName = defaultResourceGroupName; if (callback != 0) callback->LoadingSceneFile(this, fileBaseName, resourceGroupName); //Load the XML document TiXmlDocument document; if (isFileName) { //Load it from a file String absoluteFileName = OgreMaxUtilities::JoinPath(this->baseResourceLocation, fileBaseName); if (loadOptions & NO_FILE_SYSTEM_CHECK) { //Caller wants to load from the Ogre resource system OgreMaxUtilities::LoadXmlDocument(fileBaseName, document, resourceGroupName); } else if (OgreMaxUtilities::IsFileReadable(absoluteFileName)) { //Load from disk if (document.LoadFile(absoluteFileName.c_str())) { //The file was successfully loaded. Enable the use of the resource locations in the file this->loadedFromFileSystem = true; } else { StringUtil::StrStreamType errorMessage; errorMessage << "Unable to load OgreMax scene file: " << absoluteFileName; OGRE_EXCEPT ( Exception::ERR_INVALID_STATE, errorMessage.str(), "OgreMaxScene::Load" ); } } else if (!this->baseResourceLocation.empty()) { //File isn't readable and the caller wanted it to be StringUtil::StrStreamType errorMessage; errorMessage << "Unable to read OgreMax scene file: " << absoluteFileName; OGRE_EXCEPT ( Exception::ERR_FILE_NOT_FOUND, errorMessage.str(), "OgreMaxScene::Load" ); } else { //Everything else failed. Load from the Ogre resource system OgreMaxUtilities::LoadXmlDocument(fileBaseName, document, resourceGroupName); } } else { //Load it from memory document.Parse(fileNameOrContent.c_str()); if (document.Error()) { StringUtil::StrStreamType errorMessage; errorMessage << "There was an error parsing the scene XML content: " << document.ErrorDesc(); OGRE_EXCEPT ( Exception::ERR_INVALIDPARAMS, errorMessage.str(), "OgreMaxScene::Load" ); } } Load(document.RootElement(), renderWindows, loadOptions, sceneManager, rootNode, callback, resourceGroupName); } void OgreMaxScene::Load ( TiXmlElement* objectElement, OgreMaxRenderWindowIterator& renderWindows, LoadOptions loadOptions, SceneManager* sceneManager, SceneNode* rootNode, OgreMaxSceneCallback* callback, const String& defaultResourceGroupName ) { this->renderWindows = &renderWindows; this->loadOptions = loadOptions; this->sceneManager = sceneManager; this->rootNode = rootNode; this->callback = callback; this->defaultResourceGroupName = defaultResourceGroupName; //Send "start" notification to callback if (this->callback != 0) this->callback->StartedLoad(this); try { //Perform scene loading LoadScene(objectElement); } catch (...) { //Send "ended with failure" notification to callback if (this->callback != 0) this->callback->FinishedLoad(this, false); throw; } //Send "ended with success" notification to callback if (this->callback != 0) this->callback->FinishedLoad(this, true); } void OgreMaxScene::Update(Real elapsedTime) { //Update managed animation states for (AnimationStates::iterator stateIterator = this->animationStates.begin(); stateIterator != this->animationStates.end(); ++stateIterator) { AnimationState* animationState = stateIterator->second; if (animationState->getEnabled()) animationState->addTime(elapsedTime); } } const String& OgreMaxScene::GetBaseResourceLocation() const { return this->baseResourceLocation; } void OgreMaxScene::SetBaseResourceLocation(const String& directory) { this->baseResourceLocation = directory; } void OgreMaxScene::Destroy() { //Delete planes delete this->shadowOptimalPlane; this->shadowOptimalPlane = 0; for (MovablePlanesMap::iterator plane = this->movablePlanes.begin(); plane != this->movablePlanes.end(); ++plane) { delete plane->second; } this->movablePlanes.clear(); //Delete render textures //Note that this does not destroy the Ogre resources that the render textures use for (size_t renderTextureIndex = 0; renderTextureIndex < this->loadedRenderTextures.size(); renderTextureIndex++) { LoadedRenderTexture* loadedRenderTexture = this->loadedRenderTextures[renderTextureIndex]; size_t faceCount = loadedRenderTexture->renderTexture->getNumFaces(); for (size_t faceIndex = 0; faceIndex < faceCount; faceIndex++) { RenderTarget* renderTarget = loadedRenderTexture->renderTexture->getBuffer(faceIndex)->getRenderTarget(); renderTarget->removeListener(this); renderTarget->removeAllViewports(); } delete loadedRenderTexture; } this->loadedRenderTextures.clear(); //Delete the extra object data this->allObjectExtraData.clear(); //Delete the models for (ModelMap::iterator item = this->modelMap.begin(); item != this->modelMap.end(); ++item) { delete item->second; } this->modelMap.clear(); //Clear out some lists this->externalItems.clear(); this->loadedObjects.clear(); this->animationStates.clear(); this->renderTargets.clear(); this->queryFlags.clear(); this->visibilityFlags.clear(); this->resourceLocations.clear(); //Reset some variables this->currentRenderTextureIndex = 0; this->baseResourceLocation = StringUtil::BLANK; this->loadedFromFileSystem = false; } void OgreMaxScene::SetNamePrefix(const String& name, WhichNamePrefix prefixes) { if (prefixes & OBJECT_NAME_PREFIX) this->objectNamePrefix = name; if (prefixes & NODE_NAME_PREFIX) this->nodeNamePrefix = name; if (prefixes & NODE_ANIMATION_NAME_PREFIX) this->nodeAnimationNamePrefix = name; } SceneManager* OgreMaxScene::GetSceneManager() { return this->sceneManager; } SceneNode* OgreMaxScene::GetRootNode() { return this->rootNode; } SceneNode* OgreMaxScene::GetSceneNode(const String& name, bool nameIncludesPrefix) { if (nameIncludesPrefix) return this->sceneManager->getSceneNode(name); else { String prefixedName = this->nodeNamePrefix; prefixedName += name; return this->sceneManager->getSceneNode(name); } } UpAxis OgreMaxScene::GetUpAxis() const { return this->upAxis; } const Vector3& OgreMaxScene::GetUpVector() const { return this->upAxis == UP_AXIS_Y ? Vector3::UNIT_Y : Vector3::UNIT_Z; } Real OgreMaxScene::GetUnitsPerMeter() { return this->unitsPerMeter; } const String OgreMaxScene::GetUnitType() { return this->unitType; } const ObjectExtraData& OgreMaxScene::GetSceneExtraData() const { return this->sceneExtraData; } const ObjectExtraData& OgreMaxScene::GetTerrainExtraData() const { return this->terrainExtraData; } const ObjectExtraData& OgreMaxScene::GetSkyBoxExtraData() const { return this->skyBoxExtraData; } const ObjectExtraData& OgreMaxScene::GetSkyDomeExtraData() const { return this->skyDomeExtraData; } const ObjectExtraData& OgreMaxScene::GetSkyPlaneExtraData() const { return this->skyPlaneExtraData; } const OgreMaxScene::ExternalItemList& OgreMaxScene::GetExternalItems() const { return this->externalItems; } const ColourValue& OgreMaxScene::GetBackgroundColor() const { return this->backgroundColor; } Real OgreMaxScene::GetEnvironmentNear() const { return this->environmentNear; } const FogParameters& OgreMaxScene::GetFogParameters() const { return this->fogParameters; } Real OgreMaxScene::GetEnvironmentFar() const { return this->environmentFar; } MovablePlane* OgreMaxScene::GetShadowOptimalPlane() { return this->shadowOptimalPlane; } MovablePlane* OgreMaxScene::GetMovablePlane(const String& name) { MovablePlane* plane = 0; String movablePlaneName; OgreMaxUtilities::CreateMovablePlaneName(movablePlaneName, name); MovablePlanesMap::iterator planeIterator = this->movablePlanes.find(movablePlaneName); if (planeIterator != this->movablePlanes.end()) plane = planeIterator->second; return plane; } OgreMaxScene::AnimationStates& OgreMaxScene::GetAnimationStates() { return this->animationStates; } AnimationState* OgreMaxScene::GetAnimationState(const String& animationName) { AnimationStates::iterator stateIterator = this->animationStates.find(animationName); if (stateIterator != this->animationStates.end()) return stateIterator->second; else return 0; } OgreMaxScene::ObjectExtraDataMap& OgreMaxScene::GetAllObjectExtraData() { return this->allObjectExtraData; } OgreMaxScene::NodeObjectExtraDataMap& OgreMaxScene::GetAllNodeObjectExtraData() { return this->allNodeObjectExtraData; } const OgreMaxScene::ModelMap& OgreMaxScene::GetModelMap() const { return this->modelMap; } OgreMaxModel* OgreMaxScene::GetModel(const String& fileName) { //Look up item and return it if found ModelMap::iterator item = this->modelMap.find(fileName); if (item != this->modelMap.end()) return item->second; //Model couldn't be found, so load it OgreMaxModel* model = new OgreMaxModel; try { model->Load(fileName, this->defaultResourceGroupName); } catch (...) { delete model; throw; } //If we're here, the model was loaded. Add it to the lookup this->modelMap[fileName] = model; return model; } const FlagAliases& OgreMaxScene::GetQueryFlagAliases() const { return this->queryFlags; } const FlagAliases& OgreMaxScene::GetVisibilityFlagAliases() const { return this->visibilityFlags; } ObjectExtraData* OgreMaxScene::GetObjectExtraData(const MovableObject* object) const { ObjectExtraDataMap::const_iterator item = this->allObjectExtraData.find(object); if (item != this->allObjectExtraData.end()) return item->second.getPointer(); else return 0; } Types::ObjectExtraData* OgreMaxScene::GetObjectExtraData(const Ogre::Node* node) const { NodeObjectExtraDataMap::const_iterator item = this->allNodeObjectExtraData.find(node); if (item != this->allNodeObjectExtraData.end()) return item->second.getPointer(); else return 0; } const OgreMaxScene::ResourceLocations& OgreMaxScene::GetResourceLocations() const { return this->resourceLocations; } void OgreMaxScene::HandleNewObjectExtraData(ObjectExtraDataPtr objectExtraData) { bool hasOwner = objectExtraData->object != 0 || objectExtraData->node != 0; if (hasOwner && this->callback != 0) this->callback->HandleObjectExtraData(objectExtraData); //Store the object extra data if there is an object associated with it if (objectExtraData->object != 0) this->allObjectExtraData[objectExtraData->object] = objectExtraData; else if (objectExtraData->node != 0) this->allNodeObjectExtraData[objectExtraData->node] = objectExtraData; } void OgreMaxScene::DestroyedSceneNode(const SceneNode* node) { NodeObjectExtraDataMap::iterator extraDataIterator = this->allNodeObjectExtraData.find(node); if (extraDataIterator != this->allNodeObjectExtraData.end()) this->allNodeObjectExtraData.erase(extraDataIterator); } void OgreMaxScene::DestroyedObject(const MovableObject* object) { ObjectExtraDataMap::iterator extraDataIterator = this->allObjectExtraData.find(object); if (extraDataIterator != this->allObjectExtraData.end()) this->allObjectExtraData.erase(extraDataIterator); } void OgreMaxScene::preRenderTargetUpdate(const RenderTargetEvent& e) { RenderTargetMap::iterator renderTarget = this->renderTargets.find(e.source); if (renderTarget != this->renderTargets.end()) { LoadedRenderTexture& loadedRenderTexture = *renderTarget->second; RenderTextureParameters& params = loadedRenderTexture.parameters; //Set scheme this->previousActiveScheme = MaterialManager::getSingleton().getActiveScheme(); if (params.scheme.empty()) MaterialManager::getSingleton().setActiveScheme(MaterialManager::DEFAULT_SCHEME_NAME); else MaterialManager::getSingleton().setActiveScheme(params.scheme); //Hide all the hidden objects if (loadedRenderTexture.renderObjectNode != 0 && params.hideRenderObject) loadedRenderTexture.renderObjectNode->setVisible(false, false); loadedRenderTexture.hiddenObjects.Hide(); //Show all the exclusive objects loadedRenderTexture.exclusiveObjects.Show(); //If render target is for a cube map texture, update cube face camera positions if (params.textureType == TEX_TYPE_CUBE_MAP) { //Get the position from which the cube map will be rendered Vector3 position; loadedRenderTexture.GetReferencePosition(position); //Set position into cube face cameras size_t faceCount = loadedRenderTexture.renderTexture->getNumFaces(); for (size_t faceIndex = 0; faceIndex < faceCount; faceIndex++) loadedRenderTexture.cubeFaceCameras[faceIndex]->setPosition(position); } } } void OgreMaxScene::postRenderTargetUpdate(const RenderTargetEvent& e) { RenderTargetMap::iterator renderTarget = this->renderTargets.find(e.source); if (renderTarget != this->renderTargets.end()) { LoadedRenderTexture& loadedRenderTexture = *renderTarget->second; RenderTextureParameters& params = loadedRenderTexture.parameters; //Restore scheme MaterialManager::getSingleton().setActiveScheme(this->previousActiveScheme); //Show all the hidden objects if (loadedRenderTexture.renderObjectNode != 0 && params.hideRenderObject) loadedRenderTexture.renderObjectNode->setVisible(true, false); loadedRenderTexture.hiddenObjects.Show(); //Hide all the exclusive objects loadedRenderTexture.exclusiveObjects.Hide(); } } String OgreMaxScene::GetNewObjectName(const TiXmlElement* objectElement, SceneNode* node) { //Get the name from either the "name" attribute or the node String name = OgreMaxUtilities::GetStringAttribute(objectElement, "name"); if (name.empty() && node != 0) name = node->getName(); String prefixedName = this->objectNamePrefix; prefixedName += name; //Make sure the name is unique if (this->loadedObjects.find(prefixedName) != this->loadedObjects.end()) { StringUtil::StrStreamType errorMessage; errorMessage << "Duplicate object name: " << prefixedName; OGRE_EXCEPT ( Exception::ERR_DUPLICATE_ITEM, errorMessage.str(), "OgreMaxScene::GetNewObjectName" ); } return prefixedName; } void OgreMaxScene::UpdateLoadProgress(ProgressCalculator* calculator, Real amount) { //Update the specified calculator calculator->Update(amount); //Send progress notification to callback if (this->callback != 0) this->callback->UpdatedLoadProgress(this, this->loadProgress.GetProgress()); } void OgreMaxScene::LoadScene(const TiXmlElement* objectElement) { static const Version CURRENT_OGRE_VERSION(OGRE_VERSION_MAJOR, OGRE_VERSION_MINOR, OGRE_VERSION_PATCH); static const String CURRENT_OGRE_VERSION_STRING = CURRENT_OGRE_VERSION.ToString(); this->sceneExtraData.id = OgreMaxUtilities::GetStringAttribute(objectElement, "id"); this->formatVersion = Version(OgreMaxUtilities::GetStringAttribute(objectElement, "formatVersion")); this->minOgreVersion = Version(OgreMaxUtilities::GetStringAttribute(objectElement, "minOgreVersion")); this->author = OgreMaxUtilities::GetStringAttribute(objectElement, "author"); String upAxisText = OgreMaxUtilities::GetStringAttribute(objectElement, "upAxis"); if (!upAxisText.empty()) this->upAxis = OgreMaxUtilities::ParseUpAxis(upAxisText); this->unitsPerMeter = OgreMaxUtilities::GetRealAttribute(objectElement, "unitsPerMeter", 0); this->unitType = OgreMaxUtilities::GetStringAttribute(objectElement, "unitType"); //Make sure the Ogre version used to compile this viewer supports the Ogre version //required by the scene file if (this->minOgreVersion > CURRENT_OGRE_VERSION) { StringUtil::StrStreamType errorMessage; errorMessage << "The scene file's required Ogre version (" << this->minOgreVersion.ToString() << ") is not supported by the Ogre version this viewer uses ( " << CURRENT_OGRE_VERSION_STRING << ")"; OGRE_EXCEPT ( Exception::ERR_NOT_IMPLEMENTED, errorMessage.str(), "OgreMaxScene::LoadScene" ); } //Create scene manager if (this->sceneManager == 0) { //Create the scene manager String sceneManager = OgreMaxUtilities::GetStringAttribute(objectElement, "sceneManager", "generic"); SceneType sceneType; if (OgreMaxUtilities::ParseSceneManager(sceneManager, sceneType)) this->sceneManager = Root::getSingleton().createSceneManager(sceneType, this->sceneExtraData.id); else this->sceneManager = Root::getSingleton().createSceneManager(sceneManager, this->sceneExtraData.id); //Notify callback if (this->callback != 0) this->callback->CreatedSceneManager(this, this->sceneManager); } //Get the root node if (this->rootNode == 0) this->rootNode = this->sceneManager->getRootSceneNode(); //Load scene user data const TiXmlElement* userDataReferenceElement = objectElement->FirstChildElement("userDataReference"); const TiXmlElement* userDataElement = objectElement->FirstChildElement("userData"); if (userDataReferenceElement != 0 || userDataElement != 0) { if (userDataReferenceElement != 0) OgreMaxUtilities::LoadUserDataReference(userDataReferenceElement, this->sceneExtraData.userDataReference); if (userDataElement != 0) OgreMaxUtilities::GetChildText(userDataElement, this->sceneExtraData.userData); if (this->callback != 0) this->callback->LoadedUserData(this, this->sceneExtraData.userDataReference, this->sceneExtraData.userData); } //Load resource locations if ((this->loadOptions & SKIP_RESOURCE_LOCATIONS) == 0) { const TiXmlElement* resourceLocationsElement = objectElement->FirstChildElement("resourceLocations"); if (resourceLocationsElement != 0 || this->loadedFromFileSystem) { //Notify callback if (this->callback != 0) this->callback->LoadingResourceLocations(this); LoadResourceLocations(resourceLocationsElement); //If necessary, add the base resource directory if (this->loadedFromFileSystem) { String baseResourceLocation = !this->baseResourceLocation.empty() ? this->baseResourceLocation : "./"; ResourceLocation resourceLocation(baseResourceLocation, "FileSystem"); AddResourceLocation(resourceLocation); } //Commit new resource locations CommitResourceLocations(); //Notify callback if (this->callback != 0) this->callback->LoadedResourceLocations(this, this->resourceLocations); } } //Load environment settings const TiXmlElement* environmentElement = objectElement->FirstChildElement("environment"); if (environmentElement != 0) LoadEnvironment(environmentElement); //Create render textures const TiXmlElement* renderTexturesElement = objectElement->FirstChildElement("renderTextures"); if (renderTexturesElement != 0) LoadRenderTextures(renderTexturesElement); //Parse child elements const TiXmlElement* instancedGeometriesElement = 0; const TiXmlElement* staticGeometriesElement = 0; const TiXmlElement* portalConnectedZonesElement = 0; String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "nodes") LoadNodes(childElement); else if (elementName == "externals") LoadExternals(childElement); else if (elementName == "terrain") LoadTerrain(childElement); else if (elementName == "octree") LoadOctree(childElement); else if (elementName == "light") LoadLight(childElement, MovableObjectOwner()); else if (elementName == "camera") LoadCamera(childElement, MovableObjectOwner()); else if (elementName == "queryFlags") LoadQueryFlagAliases(childElement); else if (elementName == "visibilityFlags") LoadVisibilityFlagAliases(childElement); else if (elementName == "instancedGeometries") instancedGeometriesElement = childElement; else if (elementName == "staticGeometries") staticGeometriesElement = childElement; else if (elementName == "portalConnectedZones") portalConnectedZonesElement = childElement; } //Set default lighting if necessary if (this->loadOptions & SET_DEFAULT_LIGHTING) OgreMaxUtilities::SetDefaultLighting(this->sceneManager, this->upAxis); //Load instanced geometries if (instancedGeometriesElement != 0) LoadInstancedGeometries(instancedGeometriesElement); //Load static geometries if (staticGeometriesElement != 0) LoadStaticGeometries(staticGeometriesElement); //Load portal connected zones if (portalConnectedZonesElement == 0) LoadPortalConnectedZones(portalConnectedZonesElement); //Perform final steps for look and tracking targets FinishLoadingLookAndTrackTargets(); //Perform final steps for render textures FinishLoadingRenderTextures(); } void OgreMaxScene::FinishLoadingLookAndTrackTargets() { //Resolve look targets for (LookTargetList::iterator lookTarget = this->lookTargets.begin(); lookTarget != this->lookTargets.end(); ++lookTarget) { SceneNode* lookTargetNode = GetSceneNode(lookTarget->nodeName, false); //Get position Vector3 position; if (lookTarget->isPositionSet) position = lookTarget->position; else { lookTarget->relativeTo = Node::TS_WORLD; position = lookTargetNode->_getDerivedPosition(); } //Set look at depending on whether we have a node or camera if (lookTarget->sourceNode != 0) lookTarget->sourceNode->lookAt(position, lookTarget->relativeTo, lookTarget->localDirection); else if (lookTarget->sourceCamera != 0) lookTarget->sourceCamera->lookAt(position); } this->lookTargets.clear(); //Resolve track targets for (TrackTargetList::iterator trackTarget = this->trackTargets.begin(); trackTarget != this->trackTargets.end(); ++trackTarget) { SceneNode* trackTargetNode = GetSceneNode(trackTarget->nodeName, false); //Set tracking depending on whether we have a node or camera if (trackTarget->sourceNode != 0) trackTarget->sourceNode->setAutoTracking(true, trackTargetNode, trackTarget->localDirection, trackTarget->offset); else if (trackTarget->sourceCamera != 0) trackTarget->sourceCamera->setAutoTracking(true, trackTargetNode, trackTarget->offset); } this->trackTargets.clear(); } void OgreMaxScene::LoadInstancedGeometries(const TiXmlElement* objectElement) { //Ensure instancing is supported if (!Root::getSingleton().getRenderSystem()->getCapabilities()->hasCapability(RSC_VERTEX_PROGRAM)) { OGRE_EXCEPT ( Exception::ERR_INVALIDPARAMS, "Instanced geometry is not supported by the current render system and/or video card", "OgreMaxScene::LoadInstancedGeometry" ); } //Read all the instanced geometries String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "instancedGeometry") LoadInstancedGeometry(childElement); } } void OgreMaxScene::LoadInstancedGeometry(const TiXmlElement* objectElement) { String name = OgreMaxUtilities::GetStringAttribute(objectElement, "name"); bool castShadows = OgreMaxUtilities::GetBoolAttribute(objectElement, "castShadows", true); ObjectVisibility visibility = OgreMaxUtilities::GetObjectVisibilityAttribute(objectElement, "visible"); unsigned int batchCount = OgreMaxUtilities::GetUIntAttribute(objectElement, "batchCount", 0); String renderQueue = OgreMaxUtilities::GetStringAttribute(objectElement, "renderQueue"); Real renderingDistance = OgreMaxUtilities::GetRealAttribute(objectElement, "renderingDistance", 0); Vector3 origin = Vector3::ZERO; Vector3 dimensions(1000000, 1000000, 1000000); const TiXmlElement* entitiesElement = 0; //Iterate over all the child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "origin") origin = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "dimensions") dimensions = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "entities") entitiesElement = childElement; } //Create the instanced geometry InstancedGeometry* instancedGeometry = this->sceneManager->createInstancedGeometry(name); instancedGeometry->setCastShadows(castShadows); OgreMaxUtilities::SetObjectVisibility(instancedGeometry, visibility); instancedGeometry->setOrigin(origin); instancedGeometry->setBatchInstanceDimensions(dimensions); if (!renderQueue.empty()) instancedGeometry->setRenderQueueGroup(OgreMaxUtilities::ParseRenderQueue(renderQueue)); instancedGeometry->setRenderingDistance(renderingDistance); //Add the entities childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(entitiesElement, childElement)) { elementName = childElement->Value(); if (elementName == "entity") LoadInstancedGeometryEntity(childElement, instancedGeometry); } //Build the instanced geometry instancedGeometry->build(); //Add additional batch instances for (unsigned int batchIndex = 0; batchIndex < batchCount; batchIndex++) instancedGeometry->addBatchInstance(); } void OgreMaxScene::LoadInstancedGeometryEntity(const TiXmlElement* objectElement, InstancedGeometry* instancedGeometry) { static const String TEMP_ENTITY_NAME("__instancedGeometryEntity"); String meshFile = OgreMaxUtilities::GetStringAttribute(objectElement, "meshFile"); Vector3 position = Vector3::ZERO; Quaternion rotation = Quaternion::IDENTITY; Vector3 scale = Vector3::UNIT_SCALE; std::vector<EntityParameters::Subentity> subentities; String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "position") position = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "rotation") rotation = OgreMaxUtilities::LoadRotation(childElement); else if (elementName == "scale") scale = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "subentities") OgreMaxUtilities::LoadSubentities(childElement, subentities); } if (!meshFile.empty()) { //Create temporary entity Entity* entity = OgreMaxUtilities::CreateEntity(this->sceneManager, TEMP_ENTITY_NAME, meshFile, subentities); //Add entity to the static geometry instancedGeometry->addEntity(entity, position, rotation, scale); //Destroy entity this->sceneManager->destroyEntity(entity); } } void OgreMaxScene::LoadStaticGeometries(const TiXmlElement* objectElement) { //Read all the static geometries String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "staticGeometry") LoadStaticGeometry(childElement); } } void OgreMaxScene::LoadStaticGeometry(const TiXmlElement* objectElement) { String name = OgreMaxUtilities::GetStringAttribute(objectElement, "name"); bool castShadows = OgreMaxUtilities::GetBoolAttribute(objectElement, "castShadows", true); ObjectVisibility visibility = OgreMaxUtilities::GetObjectVisibilityAttribute(objectElement, "visible"); String renderQueue = OgreMaxUtilities::GetStringAttribute(objectElement, "renderQueue"); Real renderingDistance = OgreMaxUtilities::GetRealAttribute(objectElement, "renderingDistance", 0); Vector3 origin = Vector3::ZERO; Vector3 dimensions(1000000, 1000000, 1000000); const TiXmlElement* entitiesElement = 0; //Iterate over all the child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "origin") origin = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "dimensions") dimensions = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "entities") entitiesElement = childElement; } //Create the instanced geometry StaticGeometry* staticGeometry = this->sceneManager->createStaticGeometry(name); staticGeometry->setCastShadows(castShadows); OgreMaxUtilities::SetObjectVisibility(staticGeometry, visibility); staticGeometry->setOrigin(origin); staticGeometry->setRegionDimensions(dimensions); if (!renderQueue.empty()) staticGeometry->setRenderQueueGroup(OgreMaxUtilities::ParseRenderQueue(renderQueue)); staticGeometry->setRenderingDistance(renderingDistance); //Add the entities childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(entitiesElement, childElement)) { elementName = childElement->Value(); if (elementName == "entity") LoadStaticGeometryEntity(childElement, staticGeometry); } //Build the static geometry staticGeometry->build(); } void OgreMaxScene::LoadStaticGeometryEntity(const TiXmlElement* objectElement, StaticGeometry* staticGeometry) { static const String TEMP_ENTITY_NAME("__staticGeometryEntity"); String meshFile = OgreMaxUtilities::GetStringAttribute(objectElement, "meshFile"); Vector3 position = Vector3::ZERO; Quaternion rotation = Quaternion::IDENTITY; Vector3 scale = Vector3::UNIT_SCALE; std::vector<EntityParameters::Subentity> subentities; String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "position") position = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "rotation") rotation = OgreMaxUtilities::LoadRotation(childElement); else if (elementName == "scale") scale = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "subentities") OgreMaxUtilities::LoadSubentities(childElement, subentities); } if (!meshFile.empty()) { //Create temporary entity Entity* entity = OgreMaxUtilities::CreateEntity(this->sceneManager, TEMP_ENTITY_NAME, meshFile, subentities); //Add entity to the static geometry staticGeometry->addEntity(entity, position, rotation, scale); //Destroy entity this->sceneManager->destroyEntity(entity); } } void OgreMaxScene::LoadPortalConnectedZones(const TiXmlElement* objectElement) { #if OGRE_VERSION_MAJOR > 1 && OGRE_VERSION_MINOR >= 5 //TODO: Implement this #endif } bool OgreMaxScene::LoadResourceLocations(const TiXmlElement* objectElement) { //Exit early if resource locations are not allowed if (!this->loadedFromFileSystem) return false; size_t locationCount = 0; ResourceLocation resourceLocation; //Iterate over all the resource groups String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "resourceLocation") { //Name resourceLocation.name = OgreMaxUtilities::GetStringAttribute(childElement, "name"); if (!this->baseResourceLocation.empty()) resourceLocation.name = OgreMaxUtilities::JoinPath(this->baseResourceLocation, resourceLocation.name); //Type resourceLocation.type = OgreMaxUtilities::GetStringAttribute(childElement, "type"); //Recursive resourceLocation.recursive = OgreMaxUtilities::GetBoolAttribute(childElement, "recursive", false); //Add location if (AddResourceLocation(resourceLocation)) locationCount++; } } return locationCount > 0; } bool OgreMaxScene::AddResourceLocation(const ResourceLocation& resourceLocation) { //Normalize the resource location by expanding the name to a full path ResourceLocation normalizedResourceLocation = resourceLocation; OgreMaxUtilities::MakeFullPath(normalizedResourceLocation.name); //Determine whether resource location has already been added bool isNewResourceLocation = this->resourceLocations.find(normalizedResourceLocation) == this->resourceLocations.end(); //Add resource location if it's new if (isNewResourceLocation) { //Hold onto the resource location for later this->resourceLocations.insert(normalizedResourceLocation); } return isNewResourceLocation; } void OgreMaxScene::CommitResourceLocations() { //Count the number of uninitialized locations int newResourceLocationCount = 0; for (ResourceLocations::iterator resourceLocationIterator = this->resourceLocations.begin(); resourceLocationIterator != this->resourceLocations.end(); ++resourceLocationIterator) { if (!resourceLocationIterator->initialized) { newResourceLocationCount++; //Add resource location to Ogre ResourceGroupManager::getSingleton().addResourceLocation ( resourceLocationIterator->name, resourceLocationIterator->type, this->defaultResourceGroupName, resourceLocationIterator->recursive ); //The resource location is no longer uninitialized //This seems to fix a compiler error with GCC const_cast<ResourceLocation&>(*resourceLocationIterator).initialized = true; } } if (newResourceLocationCount > 0) ResourceGroupManager::getSingleton().initialiseAllResourceGroups(); } void OgreMaxScene::LoadQueryFlagAliases(const TiXmlElement* objectElement) { //Exit early if skip option is set if ((this->loadOptions & SKIP_QUERY_FLAG_ALIASES) != 0) return; //Allocate the query flags size_t queryFlagCount = OgreMaxUtilities::GetElementCount(objectElement, "queryFlag"); this->queryFlags.resize(queryFlagCount); //Iterate over all the query flags size_t index = 0; String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { this->queryFlags[index].name = OgreMaxUtilities::GetStringAttribute(childElement, "name"); this->queryFlags[index].bit = OgreMaxUtilities::GetIntAttribute(childElement, "bit", 0); index++; } } void OgreMaxScene::LoadVisibilityFlagAliases(const TiXmlElement* objectElement) { //Exit early if skip option is set if ((this->loadOptions & SKIP_VISIBILITY_FLAG_ALIASES) != 0) return; //Allocate the visibility flags size_t visibilityFlagCount = OgreMaxUtilities::GetElementCount(objectElement, "visibilityFlag"); this->visibilityFlags.resize(visibilityFlagCount); //Iterate over all the visibility flags size_t index = 0; String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { this->visibilityFlags[index].name = OgreMaxUtilities::GetStringAttribute(childElement, "name"); this->visibilityFlags[index].bit = OgreMaxUtilities::GetIntAttribute(childElement, "bit", 0); index++; } } void OgreMaxScene::LoadNodes(const TiXmlElement* objectElement) { //Exit early if skip option is set if ((this->loadOptions & SKIP_NODES) != 0) return; //Initialize progress counters size_t nodeCount = OgreMaxUtilities::GetElementCount(objectElement, "node"); this->loadProgress.nodes->SetRange(nodeCount); //Iterate over all the node children String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "node" || elementName == "modelInstance") LoadNode(childElement, this->rootNode); else if (elementName == "position") this->rootNode->setPosition(OgreMaxUtilities::LoadXYZ(childElement)); else if (elementName == "rotation") this->rootNode->setOrientation(OgreMaxUtilities::LoadRotation(childElement)); else if (elementName == "scale") this->rootNode->setScale(OgreMaxUtilities::LoadXYZ(childElement)); } this->rootNode->setInitialState(); } void OgreMaxScene::LoadExternals(const TiXmlElement* objectElement) { //Exit early if skip option is set if ((this->loadOptions & SKIP_EXTERNALS) != 0) return; //Initialize progress counter size_t itemCount = OgreMaxUtilities::GetChildElementCount(objectElement, "item"); this->loadProgress.externals->SetRange(itemCount); //Iterate over all the node children String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "item") LoadExternalItem(childElement); } } void OgreMaxScene::LoadEnvironment(const TiXmlElement* objectElement) { //Exit early if skip option is set if ((this->loadOptions & SKIP_ENVIRONMENT) != 0) return; //Iterate over all the node children String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "fog") LoadFog(childElement); else if (elementName == "skyBox") LoadSkyBox(childElement); else if (elementName == "skyDome") LoadSkyDome(childElement); else if (elementName == "skyPlane") LoadSkyPlane(childElement); else if (elementName == "clipping") OgreMaxUtilities::LoadClipping(childElement, this->environmentNear, this->environmentFar); else if (elementName == "colourAmbient") this->sceneManager->setAmbientLight(OgreMaxUtilities::LoadColor(childElement)); else if (elementName == "colourBackground") { this->backgroundColor = OgreMaxUtilities::LoadColor(childElement); //Set all viewports to the specified background color if (this->renderWindows->Start()) { do { RenderWindow* renderWindow = this->renderWindows->GetCurrent(); unsigned short viewportCount = renderWindow->getNumViewports(); for (unsigned short viewportIndex = 0; viewportIndex < viewportCount; viewportIndex++) renderWindow->getViewport(viewportIndex)->setBackgroundColour(backgroundColor); }while (this->renderWindows->MoveNext()); } } else if (elementName == "shadows") LoadShadows(childElement); } //Set fog parameters into scene manager Real linearStart = this->fogParameters.linearStart * this->environmentFar; Real linearEnd = this->fogParameters.linearEnd * this->environmentFar; this->sceneManager->setFog ( this->fogParameters.mode, this->fogParameters.color, this->fogParameters.expDensity, linearStart, linearEnd ); } void OgreMaxScene::LoadRenderTextures(const TiXmlElement* objectElement) { //Get default pixel format //It's unlikely that this would vary among render windows, but just take the minimum anyway unsigned int bestColorDepth = 32; if (this->renderWindows->Start()) { do { bestColorDepth = std::min(this->renderWindows->GetCurrent()->getColourDepth(), bestColorDepth); }while (this->renderWindows->MoveNext()); } PixelFormat defaultPixelFormat = (bestColorDepth == 16) ? PF_A4R4G4B4 : PF_A8R8G8B8; //Read all the render textures const TiXmlElement* renderTextureElement = 0; while (renderTextureElement = OgreMaxUtilities::IterateChildElements(objectElement, renderTextureElement)) { LoadedRenderTexture* loadedRenderTexture = new LoadedRenderTexture; this->loadedRenderTextures.push_back(loadedRenderTexture); RenderTextureParameters& renderTextureParams = loadedRenderTexture->parameters; renderTextureParams.name = OgreMaxUtilities::GetStringAttribute(renderTextureElement, "name"); renderTextureParams.width = OgreMaxUtilities::GetIntAttribute(renderTextureElement, "width", 512); renderTextureParams.height = OgreMaxUtilities::GetIntAttribute(renderTextureElement, "height", 512); renderTextureParams.pixelFormat = OgreMaxUtilities::GetPixelFormatAttribute(renderTextureElement, "pixelFormat", defaultPixelFormat); renderTextureParams.textureType = OgreMaxUtilities::GetTextureTypeAttribute(renderTextureElement, "textureType", renderTextureParams.textureType); renderTextureParams.cameraName = OgreMaxUtilities::GetStringAttribute(renderTextureElement, "camera"); renderTextureParams.scheme = OgreMaxUtilities::GetStringAttribute(renderTextureElement, "scheme"); renderTextureParams.clearEveryFrame = OgreMaxUtilities::GetBoolAttribute(renderTextureElement, "clearEveryFrame", renderTextureParams.clearEveryFrame); renderTextureParams.autoUpdate = OgreMaxUtilities::GetBoolAttribute(renderTextureElement, "autoUpdate", renderTextureParams.autoUpdate); renderTextureParams.hideRenderObject = OgreMaxUtilities::GetBoolAttribute(renderTextureElement, "hideRenderObject", renderTextureParams.hideRenderObject); renderTextureParams.renderObjectName = OgreMaxUtilities::GetStringAttribute(renderTextureElement, "renderObjectName"); renderTextureParams.backgroundColor = this->backgroundColor; renderTextureParams.resourceGroupName = this->defaultResourceGroupName; String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(renderTextureElement, childElement)) { elementName = childElement->Value(); if (elementName == "backgroundColor") renderTextureParams.backgroundColor = OgreMaxUtilities::LoadColor(childElement); else if (elementName == "materials") { size_t materialCount = OgreMaxUtilities::GetElementCount(childElement, "material"); renderTextureParams.materials.resize(materialCount); LoadRenderTextureMaterials(childElement, renderTextureParams.materials); } else if (elementName == "hiddenObjects") LoadObjectNames(childElement, "hiddenObject", renderTextureParams.hiddenObjects); else if (elementName == "exclusiveObjects") LoadObjectNames(childElement, "exclusiveObject", renderTextureParams.exclusiveObjects); else if (elementName == "renderPlane") renderTextureParams.renderPlane = OgreMaxUtilities::LoadPlane(childElement); } //Notify callback if (this->callback != 0) this->callback->LoadingRenderTexture(this, renderTextureParams); //Create the render texture loadedRenderTexture->renderTexture = TextureManager::getSingleton().createManual ( renderTextureParams.name, renderTextureParams.resourceGroupName, renderTextureParams.textureType, renderTextureParams.width, renderTextureParams.height, 0, renderTextureParams.pixelFormat, TU_RENDERTARGET ); //Initialize all the texture's render targets size_t faceCount = loadedRenderTexture->renderTexture->getNumFaces(); for (size_t faceIndex = 0; faceIndex < faceCount; faceIndex++) { RenderTarget* renderTarget = loadedRenderTexture->renderTexture->getBuffer(faceIndex)->getRenderTarget(); renderTarget->setAutoUpdated(renderTextureParams.autoUpdate); renderTarget->addListener(this); this->renderTargets[renderTarget] = loadedRenderTexture; } } } void OgreMaxScene::FinishLoadingRenderTextures() { static const Quaternion CUBE_FACE_CAMERA_ORIENTATIONS[] = { Quaternion(0.707107, 0, -0.707107, 0), Quaternion(-0.707107, 0, -0.707107, 0), Quaternion(0.707107, 0.707107, 0, 0), Quaternion(0.707107, -0.707107, 0, 0), Quaternion(1, 0, 0, 0), Quaternion(0, 0, -1, 0) }; for (; this->currentRenderTextureIndex < this->loadedRenderTextures.size(); this->currentRenderTextureIndex++) { LoadedRenderTexture* loadedRenderTexture = this->loadedRenderTextures[this->currentRenderTextureIndex]; const RenderTextureParameters& renderTextureParams = loadedRenderTexture->parameters; //Create the scheme if (!renderTextureParams.scheme.empty()) MaterialManager::getSingleton()._getSchemeIndex(renderTextureParams.scheme); //Get the camera //First try the camera callback if (this->callback != 0) loadedRenderTexture->camera = this->callback->GetRenderTextureCamera(this, renderTextureParams); //If there's no camera yet, get the camera from the scene if (loadedRenderTexture->camera == 0 && !renderTextureParams.cameraName.empty() && this->sceneManager->hasCamera(renderTextureParams.cameraName)) { loadedRenderTexture->camera = this->sceneManager->getCamera(renderTextureParams.cameraName); } //Set up viewport and render object (either a reflection plane for 2D, or an object for 3D) size_t faceCount = loadedRenderTexture->renderTexture->getNumFaces(); if (renderTextureParams.textureType == TEX_TYPE_2D) { Viewport* viewport = 0; if (loadedRenderTexture->camera != 0) { RenderTarget* renderTarget = loadedRenderTexture->renderTexture->getBuffer()->getRenderTarget(); //Add viewport Viewport* viewport = renderTarget->addViewport(loadedRenderTexture->camera); viewport->setClearEveryFrame(renderTextureParams.clearEveryFrame); viewport->setBackgroundColour(renderTextureParams.backgroundColor); viewport->setMaterialScheme(renderTextureParams.scheme); loadedRenderTexture->viewports[0] = viewport; //Set up render object (reflection plane) if (!renderTextureParams.renderObjectName.empty()) { //Build the plane name String movablePlaneName; OgreMaxUtilities::CreateMovablePlaneName(movablePlaneName, renderTextureParams.renderObjectName); //Get or create the render plane MovablePlanesMap::iterator planeIterator = this->movablePlanes.find(movablePlaneName); if (planeIterator != this->movablePlanes.end()) { //Found an existing movable plane loadedRenderTexture->renderPlane = planeIterator->second; loadedRenderTexture->renderObjectNode = (SceneNode*)loadedRenderTexture->renderPlane->getParentNode(); } else { //Create a new movable plane loadedRenderTexture->renderPlane = new MovablePlane(movablePlaneName); this->movablePlanes[movablePlaneName] = loadedRenderTexture->renderPlane; loadedRenderTexture->renderPlane->normal = renderTextureParams.renderPlane.normal; loadedRenderTexture->renderPlane->d = renderTextureParams.renderPlane.d; } //Configure reflection for (size_t materialIndex = 0; materialIndex < renderTextureParams.materials.size(); materialIndex++) { const RenderTextureParameters::Material& renderTextureMaterial = renderTextureParams.materials[materialIndex]; MaterialPtr material = MaterialManager::getSingleton().getByName(renderTextureMaterial.name); if (!material.isNull()) { if (renderTextureMaterial.techniqueIndex < material->getNumTechniques()) { Technique* technique = material->getTechnique(renderTextureMaterial.techniqueIndex); if (renderTextureMaterial.passIndex < technique->getNumPasses()) { Pass* pass = technique->getPass(renderTextureMaterial.passIndex); if (renderTextureMaterial.textureUnitIndex < pass->getNumTextureUnitStates()) { TextureUnitState* textureUnit = pass->getTextureUnitState(renderTextureMaterial.textureUnitIndex); textureUnit->setProjectiveTexturing(true, loadedRenderTexture->camera); } } } } } loadedRenderTexture->camera->enableReflection(loadedRenderTexture->renderPlane); loadedRenderTexture->camera->enableCustomNearClipPlane(loadedRenderTexture->renderPlane); } } } else if (renderTextureParams.textureType == TEX_TYPE_CUBE_MAP) { //Get the render object, if any if (!renderTextureParams.renderObjectName.empty() && this->sceneManager->hasSceneNode(renderTextureParams.renderObjectName)) loadedRenderTexture->renderObjectNode = GetSceneNode(renderTextureParams.renderObjectName, false); //Get the position from which the cube map will be rendered Vector3 position; loadedRenderTexture->GetReferencePosition(position); //Create a camera and viewport for each cube face String cameraName; for (size_t faceIndex = 0; faceIndex < faceCount; faceIndex++) { //Build a unique camera name cameraName = loadedRenderTexture->camera->getName() + "_CubeFaceCamera" + StringConverter::toString(faceIndex); //Create camera Camera* cubeFaceCamera = this->sceneManager->createCamera(cameraName); cubeFaceCamera->setAspectRatio(1); cubeFaceCamera->setFOVy(Degree(90)); cubeFaceCamera->setPosition(position); cubeFaceCamera->setOrientation(CUBE_FACE_CAMERA_ORIENTATIONS[faceIndex]); //Use the reference camera's clip distances, if possible if (loadedRenderTexture->camera != 0) { cubeFaceCamera->setNearClipDistance(loadedRenderTexture->camera->getNearClipDistance()); cubeFaceCamera->setFarClipDistance(loadedRenderTexture->camera->getFarClipDistance()); } loadedRenderTexture->cubeFaceCameras[faceIndex] = cubeFaceCamera; //Add viewport RenderTarget* renderTarget = loadedRenderTexture->renderTexture->getBuffer(faceIndex)->getRenderTarget(); Viewport* viewport = renderTarget->addViewport(cubeFaceCamera); viewport->setClearEveryFrame(renderTextureParams.clearEveryFrame); viewport->setBackgroundColour(renderTextureParams.backgroundColor); viewport->setMaterialScheme(renderTextureParams.scheme); loadedRenderTexture->viewports[faceIndex] = viewport; } } GetRenderTextureObjects(loadedRenderTexture); //Notify callback if (this->callback != 0) this->callback->CreatedRenderTexture(this, loadedRenderTexture); } } void OgreMaxScene::GetRenderTextureObjects(LoadedRenderTexture* loadedRenderTexture) { const RenderTextureParameters& renderTextureParams = loadedRenderTexture->parameters; //Get hidden objects loadedRenderTexture->hiddenObjects.reserve(renderTextureParams.hiddenObjects.size()); for (size_t hiddenIndex = 0; hiddenIndex < renderTextureParams.hiddenObjects.size(); hiddenIndex++) { if (this->sceneManager->hasSceneNode(renderTextureParams.hiddenObjects[hiddenIndex])) { SceneNode* node = GetSceneNode(renderTextureParams.hiddenObjects[hiddenIndex], false); loadedRenderTexture->hiddenObjects.push_back(node); } } loadedRenderTexture->hiddenObjects.Hide(); //Get exclusive objects loadedRenderTexture->exclusiveObjects.reserve(renderTextureParams.exclusiveObjects.size()); for (size_t exclusiveIndex = 0; exclusiveIndex < renderTextureParams.exclusiveObjects.size(); exclusiveIndex++) { if (this->sceneManager->hasSceneNode(renderTextureParams.exclusiveObjects[exclusiveIndex])) { SceneNode* node = GetSceneNode(renderTextureParams.exclusiveObjects[exclusiveIndex], false); loadedRenderTexture->exclusiveObjects.push_back(node); } } loadedRenderTexture->exclusiveObjects.Hide(); } void OgreMaxScene::LoadTerrain(const TiXmlElement* objectElement) { //Exit early if skip option is set if ((this->loadOptions & SKIP_TERRAIN) != 0) return; String renderQueue = OgreMaxUtilities::GetStringAttribute(objectElement, "renderQueue"); String dataFile = OgreMaxUtilities::GetStringAttribute(objectElement, "dataFile"); if (!dataFile.empty()) { this->sceneManager->setWorldGeometry(dataFile); if (!renderQueue.empty()) this->sceneManager->setWorldGeometryRenderQueue(OgreMaxUtilities::ParseRenderQueue(renderQueue)); } //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "rotation") { SceneNode* terrainNode = this->sceneManager->getSceneNode("Terrain"); Quaternion rotation = OgreMaxUtilities::LoadRotation(childElement); terrainNode->setOrientation(rotation); } else if (elementName == "userDataReference") OgreMaxUtilities::LoadUserDataReference(childElement, this->terrainExtraData.userDataReference); else if (elementName == "userData") OgreMaxUtilities::GetChildText(childElement, this->terrainExtraData.userData); } //Notify callback if (this->callback != 0) this->callback->CreatedTerrain(this, dataFile); } void OgreMaxScene::LoadOctree(const TiXmlElement* objectElement) { //Exit early if skip option is set if ((this->loadOptions & SKIP_OCTREE) != 0) return; //TODO: Implement this? } void OgreMaxScene::LoadNode(const TiXmlElement* objectElement, SceneNode* parentNode) { ObjectExtraData extraData; String name = this->nodeNamePrefix; name += OgreMaxUtilities::GetStringAttribute(objectElement, "name"); //Get/load the model String modelFileName = OgreMaxUtilities::GetStringAttribute(objectElement, "modelFile"); if (modelFileName.empty()) modelFileName = OgreMaxUtilities::GetStringAttribute(objectElement, "modelName"); OgreMaxModel* model = modelFileName.empty() ? 0 : GetModel(modelFileName); extraData.id = OgreMaxUtilities::GetStringAttribute(objectElement, "id"); //Create the node SceneNode* node = name.empty() ? parentNode->createChildSceneNode() : parentNode->createChildSceneNode(name); //Notify callback if (this->callback != 0) this->callback->StartedCreatingNode(this, node); //Create the model instance if there is one if (model != 0) { //Determine options OgreMaxModel::InstanceOptions instanceOptions = OgreMaxModel::NO_INITIAL_TRANSFORMATION; if (this->loadOptions & NO_ANIMATION_STATES) instanceOptions |= OgreMaxModel::NO_ANIMATION_STATES; //Create the node that will contain the instance SceneNode* modelNode = node->createChildSceneNode(); //Create the instance SceneModelInstanceCallback sceneModelInstanceCallback(this, this->callback); model->CreateInstance ( this->sceneManager, name, (this->callback != 0) ? &sceneModelInstanceCallback : 0, instanceOptions, node, this->defaultResourceGroupName, modelNode, this ); } //Iterate over all the node children bool isInitialStateSet = false; String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "userDataReference") OgreMaxUtilities::LoadUserDataReference(childElement, extraData.userDataReference); else if (elementName == "userData") OgreMaxUtilities::GetChildText(childElement, extraData.userData); else if (elementName == "position") node->setPosition(OgreMaxUtilities::LoadXYZ(childElement)); else if (elementName == "rotation") node->setOrientation(OgreMaxUtilities::LoadRotation(childElement)); else if (elementName == "scale") node->setScale(OgreMaxUtilities::LoadXYZ(childElement)); else if (elementName == "lookTarget") LoadLookTarget(childElement, node, 0); else if (elementName == "trackTarget") LoadTrackTarget(childElement, node, 0); else if (elementName == "node" || elementName == "modelInstance") LoadNode(childElement, node); else if (elementName == "entity") LoadEntity(childElement, node); else if (elementName == "light") LoadLight(childElement, node); else if (elementName == "camera") LoadCamera(childElement, node); else if (elementName == "particleSystem") LoadParticleSystem(childElement, node); else if (elementName == "billboardSet") LoadBillboardSet(childElement, node); else if (elementName == "plane") LoadPlane(childElement, node); else if (elementName == "animations") { LoadNodeAnimations(childElement, node); OgreMaxUtilities::SetIdentityInitialState(node); isInitialStateSet = true; } } //Set the initial state if it hasn't already been set if (!isInitialStateSet) node->setInitialState(); //Set the node's visibility String visibilityText = OgreMaxUtilities::GetStringAttribute(objectElement, "visibility"); NodeVisibility visibility = OgreMaxUtilities::ParseNodeVisibility(visibilityText); OgreMaxUtilities::SetNodeVisibility(node, visibility); //Handle node extra data if (extraData.HasUserData()) { ObjectExtraDataPtr objectExtraData(new ObjectExtraData(extraData)); //Set extra data owner node objectExtraData->node = node; //Process the extra data HandleNewObjectExtraData(objectExtraData); } //Notify callback if (this->callback != 0) this->callback->FinishedCreatingNode(this, node); //Update progress counter UpdateLoadProgress(this->loadProgress.nodes, 1); } void OgreMaxScene::LoadFog(const TiXmlElement* objectElement) { this->fogParameters.expDensity = OgreMaxUtilities::GetRealAttribute(objectElement, "expDensity", this->fogParameters.expDensity); this->fogParameters.linearStart = OgreMaxUtilities::GetRealAttribute(objectElement, "linearStart", this->fogParameters.linearStart); this->fogParameters.linearEnd = OgreMaxUtilities::GetRealAttribute(objectElement, "linearEnd", this->fogParameters.linearEnd); String fogModeText = OgreMaxUtilities::GetStringAttribute(objectElement, "mode", "none"); if (!fogModeText.empty()) this->fogParameters.mode = OgreMaxUtilities::ParseFogMode(fogModeText); const TiXmlElement* colorElement = objectElement->FirstChildElement("colourDiffuse"); if (colorElement != 0) this->fogParameters.color = OgreMaxUtilities::LoadColor(colorElement); } void OgreMaxScene::LoadSkyBox(const TiXmlElement* objectElement) { //Exit early if skip option is set if ((this->loadOptions & SKIP_SKY) != 0) return; SkyBoxParameters parameters; parameters.enabled = OgreMaxUtilities::GetBoolAttribute(objectElement, "enable", true); parameters.material = OgreMaxUtilities::GetStringAttribute(objectElement, "material"); parameters.distance = OgreMaxUtilities::GetRealAttribute(objectElement, "distance", 5000); parameters.drawFirst = OgreMaxUtilities::GetBoolAttribute(objectElement, "drawFirst", true); parameters.resourceGroupName = this->defaultResourceGroupName; //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "rotation") parameters.rotation = OgreMaxUtilities::LoadRotation(childElement); else if (elementName == "userDataReference") OgreMaxUtilities::LoadUserDataReference(childElement, parameters.extraData.userDataReference); else if (elementName == "userData") OgreMaxUtilities::GetChildText(childElement, parameters.extraData.userData); } //Notify callback if (this->callback != 0) this->callback->LoadingSkyBox(this, parameters); //Hold onto extra data this->skyBoxExtraData = parameters.extraData; this->sceneManager->setSkyBox ( parameters.enabled, parameters.material, parameters.distance, parameters.drawFirst, parameters.rotation, parameters.resourceGroupName ); } void OgreMaxScene::LoadSkyDome(const TiXmlElement* objectElement) { //Exit early if skip option is set if ((this->loadOptions & SKIP_SKY) != 0) return; SkyDomeParameters parameters; parameters.enabled = OgreMaxUtilities::GetBoolAttribute(objectElement, "enable", true); parameters.material = OgreMaxUtilities::GetStringAttribute(objectElement, "material"); parameters.curvature = OgreMaxUtilities::GetRealAttribute(objectElement, "curvature", 10); parameters.tiling = OgreMaxUtilities::GetRealAttribute(objectElement, "tiling", 8); parameters.distance = OgreMaxUtilities::GetRealAttribute(objectElement, "distance", 4000); parameters.drawFirst = OgreMaxUtilities::GetBoolAttribute(objectElement, "drawFirst", true); parameters.xSegments = OgreMaxUtilities::GetIntAttribute(objectElement, "xSegments", 16); parameters.ySegments = OgreMaxUtilities::GetIntAttribute(objectElement, "ySegments", 16); parameters.resourceGroupName = this->defaultResourceGroupName; //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "rotation") parameters.rotation = OgreMaxUtilities::LoadRotation(childElement); else if (elementName == "userDataReference") OgreMaxUtilities::LoadUserDataReference(childElement, parameters.extraData.userDataReference); else if (elementName == "userData") OgreMaxUtilities::GetChildText(childElement, parameters.extraData.userData); } //Notify callback if (this->callback != 0) this->callback->LoadingSkyDome(this, parameters); //Hold onto extra data this->skyDomeExtraData = parameters.extraData; this->sceneManager->setSkyDome ( parameters.enabled, parameters.material, parameters.curvature, parameters.tiling, parameters.distance, parameters.drawFirst, parameters.rotation, parameters.xSegments, parameters.ySegments, -1, parameters.resourceGroupName ); } void OgreMaxScene::LoadSkyPlane(const TiXmlElement* objectElement) { //Exit early if skip option is set if ((this->loadOptions & SKIP_SKY) != 0) return; SkyPlaneParameters parameters; parameters.enabled = OgreMaxUtilities::GetBoolAttribute(objectElement, "enable", true); parameters.material = OgreMaxUtilities::GetStringAttribute(objectElement, "material"); parameters.plane = OgreMaxUtilities::GetPlaneAttributes(objectElement, 0, -1, 0, 5000); parameters.scale = OgreMaxUtilities::GetRealAttribute(objectElement, "scale", 1000); parameters.bow = OgreMaxUtilities::GetRealAttribute(objectElement, "bow", 0); parameters.tiling = OgreMaxUtilities::GetRealAttribute(objectElement, "tiling", 10); parameters.drawFirst = OgreMaxUtilities::GetBoolAttribute(objectElement, "drawFirst", true); parameters.xSegments = OgreMaxUtilities::GetIntAttribute(objectElement, "xSegments", 1); parameters.ySegments = OgreMaxUtilities::GetIntAttribute(objectElement, "ySegments", 1); parameters.resourceGroupName = this->defaultResourceGroupName; //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "userDataReference") OgreMaxUtilities::LoadUserDataReference(childElement, parameters.extraData.userDataReference); else if (elementName == "userData") OgreMaxUtilities::GetChildText(childElement, parameters.extraData.userData); } //Notify callback if (this->callback != 0) this->callback->LoadingSkyPlane(this, parameters); //Hold onto extra data this->skyPlaneExtraData = parameters.extraData; this->sceneManager->setSkyPlane ( parameters.enabled, parameters.plane, parameters.material, parameters.scale, parameters.tiling, parameters.drawFirst, parameters.bow, parameters.xSegments, parameters.ySegments, parameters.resourceGroupName ); } void OgreMaxScene::LoadShadows(const TiXmlElement* objectElement) { //Exit early if skip option is set if ((this->loadOptions & SKIP_SHADOWS) != 0) return; ShadowParameters params; String techniqueText = OgreMaxUtilities::GetStringAttribute(objectElement, "technique", "none"); if (!techniqueText.empty()) params.shadowTechnique = OgreMaxUtilities::ParseShadowTechnique(techniqueText); params.selfShadow = OgreMaxUtilities::GetBoolAttribute(objectElement, "selfShadow", params.selfShadow); params.farDistance = OgreMaxUtilities::GetRealAttribute(objectElement, "farDistance", params.farDistance); //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "shadowTextures") { params.textureSize = OgreMaxUtilities::GetIntAttribute(childElement, "size", params.textureSize); params.textureCount = OgreMaxUtilities::GetIntAttribute(childElement, "count", params.textureCount); params.textureOffset = OgreMaxUtilities::GetRealAttribute(childElement, "offset", params.textureOffset); params.textureFadeStart = OgreMaxUtilities::GetRealAttribute(childElement, "fadeStart", params.textureFadeStart); params.textureFadeEnd = OgreMaxUtilities::GetRealAttribute(childElement, "fadeEnd", params.textureFadeEnd); params.textureShadowCasterMaterial = OgreMaxUtilities::GetStringAttribute(childElement, "shadowCasterMaterial"); params.textureShadowReceiverMaterial = OgreMaxUtilities::GetStringAttribute(childElement, "shadowReceiverMaterial"); } else if (elementName == "colourShadow") params.shadowColor = OgreMaxUtilities::LoadColor(childElement); else if (elementName == "shadowCameraSetup") { params.cameraSetup = OgreMaxUtilities::GetStringAttribute(childElement, "type", "lispsm"); const Vector3& upVector = GetUpVector(); params.optimalPlane = OgreMaxUtilities::GetPlaneAttributes(objectElement, upVector.x, upVector.y, upVector.z, 0); } } //Set the shadow parameters if (params.shadowTechnique == SHADOWTYPE_NONE) { //Turn off shadows this->sceneManager->setShadowTechnique(SHADOWTYPE_NONE); } else { //Turn on shadows this->sceneManager->setShadowTechnique(params.shadowTechnique); this->sceneManager->setShadowTextureSelfShadow(params.selfShadow); this->sceneManager->setShadowColour(params.shadowColor); if (params.farDistance > 0) this->sceneManager->setShadowFarDistance(params.farDistance); //Set shadow texture parameters if necessary if (this->sceneManager->isShadowTechniqueTextureBased()) { RenderSystem* renderSystem = Root::getSingleton().getRenderSystem(); //Determine texture size if (!renderSystem->getCapabilities()->hasCapability(RSC_HWRENDER_TO_TEXTURE)) { //Render to texture not supported, so ensure the shadow texture //size doesn't exceed the window size //Take minimum render window dimension as window size int windowSize = 4096; if (this->renderWindows->Start()) { do { RenderWindow* renderWindow = this->renderWindows->GetCurrent(); windowSize = (int)std::min(renderWindow->getWidth(), renderWindow->getHeight()); }while (this->renderWindows->MoveNext()); } //Use the lesser of the texture and window sizes params.textureSize = std::min(params.textureSize, windowSize); } //If necessary, make sure the texture size is a power of two if (!OgreMaxUtilities::IsPowerOfTwo(params.textureSize) && !renderSystem->getCapabilities()->hasCapability(RSC_NON_POWER_OF_2_TEXTURES)) { params.textureSize = OgreMaxUtilities::NextSmallestPowerOfTwo(params.textureSize); } //Determine texture pixel format if (this->callback != 0) this->callback->CreatingShadowTextures(this, params); if (params.pixelFormat == PF_UNKNOWN) { //Choose a default format if (renderSystem->getName().find("GL") != String::npos) { //OpenGL performs better with a half-float format params.pixelFormat = PF_FLOAT16_R; } else { //D3D is the opposite - if you ask for PF_FLOAT16_R you //get an integer format instead. You can ask for PF_FLOAT16_GR //but the precision doesn't work well params.pixelFormat = PF_FLOAT32_R; } } //Set texture size, count, pixel format this->sceneManager->setShadowTextureSettings(params.textureSize, params.textureCount, params.pixelFormat); //Set other texture settings this->sceneManager->setShadowDirLightTextureOffset(params.textureOffset); this->sceneManager->setShadowTextureFadeStart(params.textureFadeStart); this->sceneManager->setShadowTextureFadeEnd(params.textureFadeEnd); this->sceneManager->setShadowTextureCasterMaterial(params.textureShadowCasterMaterial); this->sceneManager->setShadowTextureReceiverMaterial(params.textureShadowReceiverMaterial); } //Set shadow camera setup ShadowCameraSetupPtr shadowCameraSetupPtr; if (!params.cameraSetup.empty()) { //Use the specified setup shadowCameraSetupPtr = ShadowCameraSetupPtr(ParseShadowCameraSetup(params.cameraSetup, params.optimalPlane)); } else { //Create the appropriate default setup shadowCameraSetupPtr = ShadowCameraSetupPtr(new DefaultShadowCameraSetup()); } this->sceneManager->setShadowCameraSetup(shadowCameraSetupPtr); } } void OgreMaxScene::LoadExternalItem(const TiXmlElement* objectElement) { ExternalItem item; item.name = OgreMaxUtilities::GetStringAttribute(objectElement, "name"); item.type = OgreMaxUtilities::GetStringAttribute(objectElement, "type"); //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "file") item.file = OgreMaxUtilities::GetStringAttribute(childElement, "name"); else if (elementName == "position") item.position = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "rotation") item.rotation = OgreMaxUtilities::LoadRotation(childElement); else if (elementName == "scale") item.scale = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "boundingVolume") OgreMaxUtilities::LoadBoundingVolume(childElement, item.boundingVolume); else if (elementName == "userDataReference") OgreMaxUtilities::LoadUserDataReference(childElement, item.userDataReference); else if (elementName == "userData") OgreMaxUtilities::GetChildText(childElement, item.userData); else if (elementName == "noteTracks") OgreMaxUtilities::LoadNoteTracks(childElement, item.noteTracks); } //Notify callback if (this->callback != 0) this->callback->CreatedExternal(this, item); //Store external if necessary if ((this->loadOptions & NO_EXTERNALS) == 0) this->externalItems.push_back(item); //Update progress counter UpdateLoadProgress(this->loadProgress.externals, 1); } void OgreMaxScene::LoadEntity(const TiXmlElement* objectElement, const MovableObjectOwner& owner) { ObjectExtraDataPtr objectExtraData(new ObjectExtraData); EntityParameters parameters; parameters.name = GetNewObjectName(objectElement, owner.node); parameters.queryFlags = OgreMaxUtilities::GetUIntAttribute(objectElement, "queryFlags", 0); parameters.visibilityFlags = OgreMaxUtilities::GetUIntAttribute(objectElement, "visibilityFlags", 0); parameters.visibility = OgreMaxUtilities::GetObjectVisibilityAttribute(objectElement, "visible"); parameters.meshFile = OgreMaxUtilities::GetStringAttribute(objectElement, "meshFile"); parameters.materialFile = OgreMaxUtilities::GetStringAttribute(objectElement, "materialFile"); parameters.castShadows = OgreMaxUtilities::GetBoolAttribute(objectElement, "castShadows", true); String renderQueue = OgreMaxUtilities::GetStringAttribute(objectElement, "renderQueue"); parameters.renderQueue = OgreMaxUtilities::ParseRenderQueue(renderQueue); parameters.renderingDistance = OgreMaxUtilities::GetRealAttribute(objectElement, "renderingDistance", 0); parameters.resourceGroupName = this->defaultResourceGroupName; objectExtraData->id = OgreMaxUtilities::GetStringAttribute(objectElement, "id"); objectExtraData->receiveShadows = OgreMaxUtilities::GetBoolAttribute(objectElement, "receiveShadows", true); //Parse child elements const TiXmlElement* boneAttachmentsElement = 0; String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "vertexBuffer") OgreMaxUtilities::LoadBufferUsage(childElement, parameters.vertexBufferUsage, parameters.vertexBufferShadowed); else if (elementName == "indexBuffer") OgreMaxUtilities::LoadBufferUsage(childElement, parameters.indexBufferUsage, parameters.indexBufferShadowed); else if (elementName == "userDataReference") OgreMaxUtilities::LoadUserDataReference(childElement, objectExtraData->userDataReference); else if (elementName == "userData") OgreMaxUtilities::GetChildText(childElement, objectExtraData->userData); else if (elementName == "noteTracks") { objectExtraData->noteTracks = SharedPtr<NoteTracks>(new NoteTracks); OgreMaxUtilities::LoadNoteTracks(childElement, *objectExtraData->noteTracks.get()); } else if (elementName == "customParameters") OgreMaxUtilities::LoadCustomParameters(childElement, parameters.customParameters); else if (elementName == "subentities") OgreMaxUtilities::LoadSubentities(childElement, parameters.subentities); else if (elementName == "boneAttachments") boneAttachmentsElement = childElement; } parameters.extraData = objectExtraData; //Notify callback if (this->callback != 0) this->callback->LoadingEntity(this, parameters); //Load the mesh bool isNewMesh = !MeshManager::getSingleton().resourceExists(parameters.meshFile); MeshPtr mesh = MeshManager::getSingleton().load ( parameters.meshFile, parameters.resourceGroupName, parameters.vertexBufferUsage, parameters.indexBufferUsage, parameters.vertexBufferShadowed, parameters.indexBufferShadowed ); //Notify callback if the mesh was just loaded if (isNewMesh && this->callback != 0) this->callback->CreatedMesh(this, mesh.getPointer()); //Create entity Entity* entity = this->sceneManager->createEntity(parameters.name, parameters.meshFile); if (parameters.queryFlags != 0) entity->setQueryFlags(parameters.queryFlags); if (parameters.visibilityFlags != 0) entity->setVisibilityFlags(parameters.visibilityFlags); OgreMaxUtilities::SetObjectVisibility(entity, parameters.visibility); entity->setCastShadows(parameters.castShadows); entity->setRenderQueueGroup(parameters.renderQueue); entity->setRenderingDistance(parameters.renderingDistance); OgreMaxUtilities::SetCustomParameters(entity, parameters.customParameters); if (!parameters.materialFile.empty()) entity->setMaterialName(parameters.materialFile); objectExtraData->object = entity; //Set subentity materials size_t subentityCount = std::min(parameters.subentities.size(), (size_t)entity->getNumSubEntities()); for (size_t subentityIndex = 0; subentityIndex < subentityCount; subentityIndex++) { SubEntity* subentity = entity->getSubEntity((unsigned int)subentityIndex); if (!parameters.subentities[subentityIndex].materialName.empty()) subentity->setMaterialName(parameters.subentities[subentityIndex].materialName); } //Attach entity to the owner owner.Attach(entity); //Load bone attachments if (boneAttachmentsElement != 0) LoadBoneAttachments(boneAttachmentsElement, entity); //Add to loaded objects map this->loadedObjects[parameters.name] = entity; //Process the extra data HandleNewObjectExtraData(objectExtraData); //Notify callback if (this->callback != 0) this->callback->CreatedEntity(this, entity); } void OgreMaxScene::LoadLight(const TiXmlElement* objectElement, const MovableObjectOwner& owner) { //Exit early if skip option is set if (owner.node == 0 && (this->loadOptions & SKIP_SCENE_LIGHT) != 0) return; ObjectExtraDataPtr objectExtraData(new ObjectExtraData); String name = GetNewObjectName(objectElement, owner.node); objectExtraData->id = OgreMaxUtilities::GetStringAttribute(objectElement, "id"); uint32 queryFlags = OgreMaxUtilities::GetUIntAttribute(objectElement, "queryFlags", 0); uint32 visibilityFlags = OgreMaxUtilities::GetUIntAttribute(objectElement, "visibilityFlags", 0); ObjectVisibility visibility = OgreMaxUtilities::GetObjectVisibilityAttribute(objectElement, "visible"); String type = OgreMaxUtilities::GetStringAttribute(objectElement, "type", "point"); bool castShadows = OgreMaxUtilities::GetBoolAttribute(objectElement, "castShadows", true); float power = OgreMaxUtilities::GetRealAttribute(objectElement, "power", 1); //Create the light Light* light = this->sceneManager->createLight(name); if (queryFlags != 0) light->setQueryFlags(queryFlags); if (visibilityFlags != 0) light->setVisibilityFlags(visibilityFlags); OgreMaxUtilities::SetObjectVisibility(light, visibility); light->setType(OgreMaxUtilities::ParseLightType(type)); light->setCastShadows(castShadows); light->setPowerScale(power); //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "colourDiffuse") light->setDiffuseColour(OgreMaxUtilities::LoadColor(childElement)); else if (elementName == "colourSpecular") light->setSpecularColour(OgreMaxUtilities::LoadColor(childElement)); else if (elementName == "lightRange") LoadLightRange(childElement, light); else if (elementName == "lightAttenuation") LoadLightAttenuation(childElement, light); else if (elementName == "position") light->setPosition(OgreMaxUtilities::LoadXYZ(childElement)); else if (elementName == "normal") light->setDirection(OgreMaxUtilities::LoadXYZ(childElement)); else if (elementName == "userDataReference") OgreMaxUtilities::LoadUserDataReference(childElement, objectExtraData->userDataReference); else if (elementName == "userData") OgreMaxUtilities::GetChildText(childElement, objectExtraData->userData); else if (elementName == "noteTracks") { objectExtraData->noteTracks = SharedPtr<NoteTracks>(new NoteTracks); OgreMaxUtilities::LoadNoteTracks(childElement, *objectExtraData->noteTracks.get()); } } //Set extra data owner object objectExtraData->object = light; //Attach light to the node owner.Attach(light); //Add to loaded objects map this->loadedObjects[name] = light; //Process the extra data HandleNewObjectExtraData(objectExtraData); //Notify callback if (this->callback != 0) this->callback->CreatedLight(this, light); //A light was loaded, so there's no need for the default lighting flag to be set this->loadOptions = this->loadOptions & ~SET_DEFAULT_LIGHTING; } void OgreMaxScene::LoadCamera(const TiXmlElement* objectElement, const MovableObjectOwner& owner) { //Exit early if skip option is set if (owner.node == 0 && (this->loadOptions & SKIP_SCENE_CAMERA) != 0) return; ObjectExtraDataPtr objectExtraData(new ObjectExtraData); String name = GetNewObjectName(objectElement, owner.node); objectExtraData->id = OgreMaxUtilities::GetStringAttribute(objectElement, "id"); uint32 queryFlags = OgreMaxUtilities::GetUIntAttribute(objectElement, "queryFlags", 0); uint32 visibilityFlags = OgreMaxUtilities::GetUIntAttribute(objectElement, "visibilityFlags", 0); ObjectVisibility visibility = OgreMaxUtilities::GetObjectVisibilityAttribute(objectElement, "visible"); Real fov = OgreMaxUtilities::GetRealAttribute(objectElement, "fov", 1.57079632); Real aspectRatio = OgreMaxUtilities::GetRealAttribute(objectElement, "aspectRatio", (Real)1.33); String projectionType = OgreMaxUtilities::GetStringAttribute(objectElement, "type", "perspective"); //Create the camera Camera* camera = this->sceneManager->createCamera(name); if (queryFlags != 0) camera->setQueryFlags(queryFlags); if (visibilityFlags != 0) camera->setVisibilityFlags(visibilityFlags); OgreMaxUtilities::SetObjectVisibility(camera, visibility); camera->setFOVy(Radian(fov)); camera->setAspectRatio(aspectRatio); camera->setProjectionType(OgreMaxUtilities::ParseProjectionType(projectionType)); //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "clipping") { Real nearClip, farClip; OgreMaxUtilities::LoadClipping(childElement, nearClip, farClip); camera->setNearClipDistance(nearClip); camera->setFarClipDistance(farClip); } else if (elementName == "position") camera->setPosition(OgreMaxUtilities::LoadXYZ(childElement)); else if (elementName == "rotation") camera->setOrientation(OgreMaxUtilities::LoadRotation(childElement)); else if (elementName == "normal") camera->setDirection(OgreMaxUtilities::LoadXYZ(childElement)); else if (elementName == "lookTarget") LoadLookTarget(childElement, 0, camera); else if (elementName == "trackTarget") LoadTrackTarget(childElement, 0, camera); else if (elementName == "userDataReference") OgreMaxUtilities::LoadUserDataReference(childElement, objectExtraData->userDataReference); else if (elementName == "userData") OgreMaxUtilities::GetChildText(childElement, objectExtraData->userData); else if (elementName == "noteTracks") { objectExtraData->noteTracks = SharedPtr<NoteTracks>(new NoteTracks); OgreMaxUtilities::LoadNoteTracks(childElement, *objectExtraData->noteTracks.get()); } } //Set extra data owner object objectExtraData->object = camera; //Attach camera to the node owner.Attach(camera); //Add to loaded objects map this->loadedObjects[name] = camera; //Process the extra data HandleNewObjectExtraData(objectExtraData); //Notify callback if (this->callback != 0) this->callback->CreatedCamera(this, camera); } void OgreMaxScene::LoadParticleSystem(const TiXmlElement* objectElement, const MovableObjectOwner& owner) { ObjectExtraDataPtr objectExtraData(new ObjectExtraData); String name = GetNewObjectName(objectElement, owner.node); objectExtraData->id = OgreMaxUtilities::GetStringAttribute(objectElement, "id"); uint32 queryFlags = OgreMaxUtilities::GetUIntAttribute(objectElement, "queryFlags", 0); uint32 visibilityFlags = OgreMaxUtilities::GetUIntAttribute(objectElement, "visibilityFlags", 0); ObjectVisibility visibility = OgreMaxUtilities::GetObjectVisibilityAttribute(objectElement, "visible"); String renderQueue = OgreMaxUtilities::GetStringAttribute(objectElement, "renderQueue"); Real renderingDistance = OgreMaxUtilities::GetRealAttribute(objectElement, "renderingDistance", 0); String file = OgreMaxUtilities::GetStringAttribute(objectElement, "file"); //Create the particle system ParticleSystem* particleSystem = this->sceneManager->createParticleSystem(name, file); if (queryFlags != 0) particleSystem->setQueryFlags(queryFlags); if (visibilityFlags != 0) particleSystem->setVisibilityFlags(visibilityFlags); OgreMaxUtilities::SetObjectVisibility(particleSystem, visibility); particleSystem->setRenderQueueGroup(OgreMaxUtilities::ParseRenderQueue(renderQueue)); particleSystem->setRenderingDistance(renderingDistance); //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "userDataReference") OgreMaxUtilities::LoadUserDataReference(childElement, objectExtraData->userDataReference); else if (elementName == "userData") OgreMaxUtilities::GetChildText(childElement, objectExtraData->userData); else if (elementName == "noteTracks") { objectExtraData->noteTracks = SharedPtr<NoteTracks>(new NoteTracks); OgreMaxUtilities::LoadNoteTracks(childElement, *objectExtraData->noteTracks.get()); } } //Set extra data owner object objectExtraData->object = particleSystem; //Attach particle system to the node owner.Attach(particleSystem); //Add to loaded objects map this->loadedObjects[name] = particleSystem; //Process the extra data HandleNewObjectExtraData(objectExtraData); //Notify callback if (this->callback != 0) this->callback->CreatedParticleSystem(this, particleSystem); } void OgreMaxScene::LoadBillboardSet(const TiXmlElement* objectElement, const MovableObjectOwner& owner) { ObjectExtraDataPtr objectExtraData(new ObjectExtraData); String name = GetNewObjectName(objectElement, owner.node); objectExtraData->id = OgreMaxUtilities::GetStringAttribute(objectElement, "id"); uint32 queryFlags = OgreMaxUtilities::GetUIntAttribute(objectElement, "queryFlags", 0); uint32 visibilityFlags = OgreMaxUtilities::GetUIntAttribute(objectElement, "visibilityFlags", 0); ObjectVisibility visibility = OgreMaxUtilities::GetObjectVisibilityAttribute(objectElement, "visible"); String material = OgreMaxUtilities::GetStringAttribute(objectElement, "material"); Real width = OgreMaxUtilities::GetRealAttribute(objectElement, "width", 10); Real height = OgreMaxUtilities::GetRealAttribute(objectElement, "height", 10); String type = OgreMaxUtilities::GetStringAttribute(objectElement, "type", "point"); String origin = OgreMaxUtilities::GetStringAttribute(objectElement, "origin", "center"); String rotationType = OgreMaxUtilities::GetStringAttribute(objectElement, "rotationType", "vertex"); uint32 poolSize = OgreMaxUtilities::GetUIntAttribute(objectElement, "poolSize", 0); bool autoExtendPool = OgreMaxUtilities::GetBoolAttribute(objectElement, "autoExtendPool", true); bool cullIndividual = OgreMaxUtilities::GetBoolAttribute(objectElement, "cullIndividual", false); bool sort = OgreMaxUtilities::GetBoolAttribute(objectElement, "sort", false); bool accurateFacing = OgreMaxUtilities::GetBoolAttribute(objectElement, "accurateFacing", false); String renderQueue = OgreMaxUtilities::GetStringAttribute(objectElement, "renderQueue"); Real renderingDistance = OgreMaxUtilities::GetRealAttribute(objectElement, "renderingDistance", 0); std::vector<CustomParameter> customParameters; //Create the particle system BillboardSet* billboardSet = this->sceneManager->createBillboardSet(name); if (queryFlags != 0) billboardSet->setQueryFlags(queryFlags); if (visibilityFlags != 0) billboardSet->setVisibilityFlags(visibilityFlags); OgreMaxUtilities::SetObjectVisibility(billboardSet, visibility); billboardSet->setRenderQueueGroup(OgreMaxUtilities::ParseRenderQueue(renderQueue)); billboardSet->setRenderingDistance(renderingDistance); if (!material.empty()) billboardSet->setMaterialName(material); billboardSet->setDefaultWidth(width); billboardSet->setDefaultHeight(height); billboardSet->setBillboardType(OgreMaxUtilities::ParseBillboardType(type)); billboardSet->setBillboardOrigin(OgreMaxUtilities::ParseBillboardOrigin(origin)); billboardSet->setBillboardRotationType(OgreMaxUtilities::ParseBillboardRotationType(rotationType)); if (poolSize > 0) billboardSet->setPoolSize(poolSize); billboardSet->setAutoextend(autoExtendPool); billboardSet->setCullIndividually(cullIndividual); billboardSet->setSortingEnabled(sort); billboardSet->setUseAccurateFacing(accurateFacing); //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "billboard") LoadBillboard(childElement, billboardSet); else if (elementName == "commonDirection") { Vector3 commonDirection = OgreMaxUtilities::LoadXYZ(childElement); billboardSet->setCommonDirection(commonDirection); } else if (elementName == "commonUpVector") { Vector3 commonUpVector = OgreMaxUtilities::LoadXYZ(childElement); billboardSet->setCommonUpVector(commonUpVector); } else if (elementName == "userDataReference") OgreMaxUtilities::LoadUserDataReference(childElement, objectExtraData->userDataReference); else if (elementName == "userData") OgreMaxUtilities::GetChildText(childElement, objectExtraData->userData); else if (elementName == "noteTracks") { objectExtraData->noteTracks = SharedPtr<NoteTracks>(new NoteTracks); OgreMaxUtilities::LoadNoteTracks(childElement, *objectExtraData->noteTracks.get()); } else if (elementName == "customParameters") OgreMaxUtilities::LoadCustomParameters(childElement, customParameters); } OgreMaxUtilities::SetCustomParameters(billboardSet, customParameters); //Set extra data owner object objectExtraData->object = billboardSet; //Attach billboard set to the node owner.Attach(billboardSet); //Add to loaded objects map this->loadedObjects[name] = billboardSet; //Process the extra data HandleNewObjectExtraData(objectExtraData); //Notify callback if (this->callback != 0) this->callback->CreatedBillboardSet(this, billboardSet); } void OgreMaxScene::LoadPlane(const TiXmlElement* objectElement, const MovableObjectOwner& owner) { ObjectExtraDataPtr objectExtraData(new ObjectExtraData); PlaneParameters parameters; parameters.name = GetNewObjectName(objectElement, owner.node); parameters.queryFlags = OgreMaxUtilities::GetUIntAttribute(objectElement, "queryFlags", 0); parameters.visibilityFlags = OgreMaxUtilities::GetUIntAttribute(objectElement, "visibilityFlags", 0); parameters.visibility = OgreMaxUtilities::GetObjectVisibilityAttribute(objectElement, "visible"); parameters.planeName = parameters.name; parameters.distance = OgreMaxUtilities::GetRealAttribute(objectElement, "distance", 0); parameters.width = OgreMaxUtilities::GetRealAttribute(objectElement, "width", 10); parameters.height = OgreMaxUtilities::GetRealAttribute(objectElement, "height", 10); parameters.xSegments = OgreMaxUtilities::GetIntAttribute(objectElement, "xSegments", 1); parameters.ySegments = OgreMaxUtilities::GetIntAttribute(objectElement, "ySegments", 1); parameters.numTexCoordSets = OgreMaxUtilities::GetIntAttribute(objectElement, "numTexCoordSets", 1); parameters.uTile = OgreMaxUtilities::GetRealAttribute(objectElement, "uTile", 1); parameters.vTile = OgreMaxUtilities::GetRealAttribute(objectElement, "vTile", 1); parameters.material = OgreMaxUtilities::GetStringAttribute(objectElement, "material"); parameters.normals = OgreMaxUtilities::GetBoolAttribute(objectElement, "normals", true); parameters.createMovablePlane = OgreMaxUtilities::GetBoolAttribute(objectElement, "movablePlane", true); parameters.castShadows = OgreMaxUtilities::GetBoolAttribute(objectElement, "castShadows", true); parameters.resourceGroupName = this->defaultResourceGroupName; String renderQueue = OgreMaxUtilities::GetStringAttribute(objectElement, "renderQueue"); parameters.renderQueue = OgreMaxUtilities::ParseRenderQueue(renderQueue); parameters.renderingDistance = OgreMaxUtilities::GetRealAttribute(objectElement, "renderingDistance", 0); objectExtraData->id = OgreMaxUtilities::GetStringAttribute(objectElement, "id"); objectExtraData->receiveShadows = OgreMaxUtilities::GetBoolAttribute(objectElement, "receiveShadows", true); //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "normal") parameters.normal = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "upVector") parameters.upVector = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "vertexBuffer") OgreMaxUtilities::LoadBufferUsage(childElement, parameters.vertexBufferUsage, parameters.vertexBufferShadowed); else if (elementName == "indexBuffer") OgreMaxUtilities::LoadBufferUsage(childElement, parameters.indexBufferUsage, parameters.indexBufferShadowed); else if (elementName == "userDataReference") OgreMaxUtilities::LoadUserDataReference(childElement, objectExtraData->userDataReference); else if (elementName == "userData") OgreMaxUtilities::GetChildText(childElement, objectExtraData->userData); else if (elementName == "noteTracks") { objectExtraData->noteTracks = SharedPtr<NoteTracks>(new NoteTracks); OgreMaxUtilities::LoadNoteTracks(childElement, *objectExtraData->noteTracks.get()); } else if (elementName == "customParameters") OgreMaxUtilities::LoadCustomParameters(childElement, parameters.customParameters); } parameters.extraData = objectExtraData; //Notify callback if (this->callback != 0) this->callback->LoadingPlane(this, parameters); //Create movable plane if the name hasn't already been used MovablePlane* movablePlane = 0; if (parameters.createMovablePlane) { String movablePlaneName; OgreMaxUtilities::CreateMovablePlaneName(movablePlaneName, parameters.planeName); if (this->movablePlanes.find(movablePlaneName) == this->movablePlanes.end()) { movablePlane = new MovablePlane(movablePlaneName); this->movablePlanes[movablePlaneName] = movablePlane; movablePlane->normal = parameters.normal; movablePlane->d = parameters.distance; } } //Create plane mesh Plane plane(parameters.normal, parameters.distance); MeshManager::getSingleton().createPlane ( parameters.planeName, parameters.resourceGroupName, plane, parameters.width, parameters.height, parameters.xSegments, parameters.ySegments, parameters.normals, parameters.numTexCoordSets, parameters.uTile, parameters.vTile, parameters.upVector, parameters.vertexBufferUsage, parameters.indexBufferUsage, parameters.vertexBufferShadowed, parameters.indexBufferShadowed ); //Create plane entity Entity* entity = this->sceneManager->createEntity(parameters.name, parameters.planeName); if (parameters.queryFlags != 0) entity->setQueryFlags(parameters.queryFlags); if (parameters.visibilityFlags != 0) entity->setVisibilityFlags(parameters.visibilityFlags); OgreMaxUtilities::SetObjectVisibility(entity, parameters.visibility); entity->setCastShadows(parameters.castShadows); entity->setRenderQueueGroup(parameters.renderQueue); entity->setRenderingDistance(parameters.renderingDistance); OgreMaxUtilities::SetCustomParameters(entity, parameters.customParameters); if (!parameters.material.empty()) entity->setMaterialName(parameters.material); objectExtraData->object = entity; //Attach plane entity and movable object to the node owner.Attach(entity); if (movablePlane != 0) owner.Attach(movablePlane); //Add to loaded objects map this->loadedObjects[parameters.name] = entity; //Process the extra data HandleNewObjectExtraData(objectExtraData); //Notify callback if (this->callback != 0) this->callback->CreatedPlane(this, plane, entity); } void OgreMaxScene::LoadBoneAttachments(const TiXmlElement* objectElement, Entity* entity) { const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) LoadBoneAttachment(childElement, entity); } void OgreMaxScene::LoadBoneAttachment(const TiXmlElement* objectElement, Entity* entity) { bool attachedSomething = false; MovableObjectOwner owner(entity); String name = OgreMaxUtilities::GetStringAttribute(objectElement, "name"); owner.boneName = OgreMaxUtilities::GetStringAttribute(objectElement, "bone"); String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "position") owner.attachPosition = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "rotation") owner.attachRotation = OgreMaxUtilities::LoadRotation(childElement); else if (elementName == "scale") owner.attachScale = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "entity") { LoadEntity(childElement, owner); attachedSomething = true; } else if (elementName == "light") { LoadLight(childElement, owner); attachedSomething = true; } else if (elementName == "camera") { LoadCamera(childElement, owner); attachedSomething = true; } else if (elementName == "particleSystem") { LoadParticleSystem(childElement, owner); attachedSomething = true; } else if (elementName == "billboardSet") { LoadBillboardSet(childElement, owner); attachedSomething = true; } else if (elementName == "plane") { LoadPlane(childElement, owner); attachedSomething = true; } } if (!attachedSomething) owner.AttachEmpty(name); } void OgreMaxScene::LoadLookTarget(const TiXmlElement* objectElement, SceneNode* node, Camera* camera) { LookTarget lookTarget(node, camera); lookTarget.nodeName = OgreMaxUtilities::GetStringAttribute(objectElement, "nodeName"); String relativeTo = OgreMaxUtilities::GetStringAttribute(objectElement, "relativeTo"); if (!relativeTo.empty()) lookTarget.relativeTo = OgreMaxUtilities::ParseTransformSpace(relativeTo); //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "position") { lookTarget.position = OgreMaxUtilities::LoadXYZ(childElement); lookTarget.isPositionSet = true; } else if (elementName == "localDirection") lookTarget.localDirection = OgreMaxUtilities::LoadXYZ(childElement); } //Store look target information for later this->lookTargets.push_back(lookTarget); } void OgreMaxScene::LoadTrackTarget(const TiXmlElement* objectElement, SceneNode* node, Camera* camera) { TrackTarget trackTarget(node, camera); trackTarget.nodeName = OgreMaxUtilities::GetStringAttribute(objectElement, "nodeName"); //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "offset") trackTarget.offset = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "localDirection") trackTarget.localDirection = OgreMaxUtilities::LoadXYZ(childElement); } //Store track target information for later this->trackTargets.push_back(trackTarget); } void OgreMaxScene::LoadBillboard(const TiXmlElement* objectElement, BillboardSet* billboardSet) { Real width = OgreMaxUtilities::GetRealAttribute(objectElement, "width", 0); Real height = OgreMaxUtilities::GetRealAttribute(objectElement, "height", 0); Radian rotationAngle = Radian(OgreMaxUtilities::GetRealAttribute(objectElement, "rotation", 0)); Vector3 position = Vector3::ZERO; ColourValue color = ColourValue::White; FloatRect texCoordRectangle(0, 0, 0, 0); //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "position") position = OgreMaxUtilities::LoadXYZ(childElement); else if (elementName == "rotation") { Quaternion rotation = OgreMaxUtilities::LoadRotation(childElement); Vector3 rotationAxis; rotation.ToAngleAxis(rotationAngle, rotationAxis); } else if (elementName == "colourDiffuse") color = OgreMaxUtilities::LoadColor(childElement); else if (elementName == "texCoordRectangle") texCoordRectangle = OgreMaxUtilities::LoadFloatRectangle(childElement); } //Create the billboard Billboard* billboard = billboardSet->createBillboard(position, color); //Set rotation angle if (rotationAngle.valueRadians() != 0) billboard->setRotation(rotationAngle); //Set dimensions if (width != 0 && height != 0) billboard->setDimensions(width, height); //Set texture coordinate rectangle if (texCoordRectangle.width() != 0 && texCoordRectangle.height() != 0) billboard->setTexcoordRect(texCoordRectangle); } void OgreMaxScene::LoadLightRange(const TiXmlElement* objectElement, Light* light) { if (light->getType() == Light::LT_SPOTLIGHT) { String value; value = OgreMaxUtilities::GetStringAttribute(objectElement, "inner"); if (!value.empty()) light->setSpotlightInnerAngle(Radian(StringConverter::parseReal(value))); value = OgreMaxUtilities::GetStringAttribute(objectElement, "outer"); if (!value.empty()) light->setSpotlightOuterAngle(Radian(StringConverter::parseReal(value))); value = OgreMaxUtilities::GetStringAttribute(objectElement, "falloff"); if (!value.empty()) light->setSpotlightFalloff(StringConverter::parseReal(value)); } } void OgreMaxScene::LoadLightAttenuation(const TiXmlElement* objectElement, Light* light) { String value; value = OgreMaxUtilities::GetStringAttribute(objectElement, "range"); Real range = value.empty() ? light->getAttenuationRange() : StringConverter::parseReal(value); value = OgreMaxUtilities::GetStringAttribute(objectElement, "constant"); Real constant = value.empty() ? light->getAttenuationConstant() : StringConverter::parseReal(value); value = OgreMaxUtilities::GetStringAttribute(objectElement, "linear"); Real linear = value.empty() ? light->getAttenuationLinear() : StringConverter::parseReal(value); value = OgreMaxUtilities::GetStringAttribute(objectElement, "quadric"); Real quadric = value.empty() ? light->getAttenuationQuadric() : StringConverter::parseReal(value); light->setAttenuation(range, constant, linear, quadric); } void OgreMaxScene::LoadNodeAnimations(const TiXmlElement* objectElement, SceneNode* node) { //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "animation") LoadNodeAnimation(childElement, node); } } void OgreMaxScene::LoadNodeAnimation(const TiXmlElement* objectElement, SceneNode* node) { Types::NodeAnimationParameters params; //Get enabled and looping states params.enable = OgreMaxUtilities::GetBoolAttribute(objectElement, "enable", params.enable); params.looping = OgreMaxUtilities::GetBoolAttribute(objectElement, "loop", params.looping); //Animation name params.name = this->nodeAnimationNamePrefix; params.name += OgreMaxUtilities::GetStringAttribute(objectElement, "name"); //Get existing animation or create new one Animation* animation; if (this->sceneManager->hasAnimation(params.name)) animation = this->sceneManager->getAnimation(params.name); else { //Length params.length = OgreMaxUtilities::GetRealAttribute(objectElement, "length", 0); //Interpolation mode String interpolationModeText = OgreMaxUtilities::GetStringAttribute(objectElement, "interpolationMode"); if (!interpolationModeText.empty()) params.interpolationMode = OgreMaxUtilities::ParseAnimationInterpolationMode(interpolationModeText); //Rotation interpolation mode String rotationInterpolationModeText = OgreMaxUtilities::GetStringAttribute(objectElement, "rotationInterpolationMode"); if (!rotationInterpolationModeText.empty()) params.rotationInterpolationMode = OgreMaxUtilities::ParseAnimationRotationInterpolationMode(rotationInterpolationModeText); //Notify the callback if (this->callback != 0) this->callback->LoadingNodeAnimation(this, params); //Create animation animation = this->sceneManager->createAnimation(params.name, params.length); animation->setInterpolationMode(params.interpolationMode); animation->setRotationInterpolationMode(params.rotationInterpolationMode); //Notify the callback if (this->callback != 0) this->callback->CreatedNodeAnimation(this, node, animation); } //Create animation track for node NodeAnimationTrack* animationTrack = animation->createNodeTrack(animation->getNumNodeTracks() + 1, node); //Load animation keyframes String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "keyframe") LoadNodeAnimationKeyFrame(childElement, animationTrack); } //Notify callback if (this->callback != 0) this->callback->CreatedNodeAnimationTrack(this, node, animationTrack, params.enable, params.looping); if ((this->loadOptions & NO_ANIMATION_STATES) == 0) { //Create a new animation state to track the animation if (GetAnimationState(params.name) == 0) { //No animation state has been created for the animation yet AnimationState* animationState = this->sceneManager->createAnimationState(params.name); this->animationStates[params.name] = animationState; animationState->setEnabled(params.enable); animationState->setLoop(params.looping); //Notify callback if (this->callback != 0) this->callback->CreatedNodeAnimationState(this, node, animationState); } } } void OgreMaxScene::LoadNodeAnimationKeyFrame(const TiXmlElement* objectElement, NodeAnimationTrack* animationTrack) { //Key time Real keyTime = OgreMaxUtilities::GetRealAttribute(objectElement, "time", 0); //Create the key frame TransformKeyFrame* keyFrame = animationTrack->createNodeKeyFrame(keyTime); //Parse child elements String elementName; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { elementName = childElement->Value(); if (elementName == "translation") keyFrame->setTranslate(OgreMaxUtilities::LoadXYZ(childElement)); else if (elementName == "rotation") keyFrame->setRotation(OgreMaxUtilities::LoadRotation(childElement)); else if (elementName == "scale") keyFrame->setScale(OgreMaxUtilities::LoadXYZ(childElement)); } } void OgreMaxScene::LoadObjectNames(const TiXmlElement* objectElement, const String& elementName, std::vector<String>& names) { size_t objectCount = OgreMaxUtilities::GetElementCount(objectElement, elementName); names.resize(objectCount); size_t index = 0; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { names[index++] = childElement->Attribute("name"); } } void OgreMaxScene::LoadRenderTextureMaterials ( const TiXmlElement* objectElement, std::vector<RenderTextureParameters::Material>& materials ) { size_t index = 0; const TiXmlElement* childElement = 0; while (childElement = OgreMaxUtilities::IterateChildElements(objectElement, childElement)) { RenderTextureParameters::Material& material = materials[index++]; material.name = childElement->Attribute("name"); material.techniqueIndex = OgreMaxUtilities::GetIntAttribute(childElement, "technique", 0); material.passIndex = OgreMaxUtilities::GetIntAttribute(childElement, "pass", 0); material.textureUnitIndex = OgreMaxUtilities::GetIntAttribute(childElement, "textureUnit", 0); } } ShadowCameraSetup* OgreMaxScene::ParseShadowCameraSetup(const String& type, Plane optimalPlane) { String typeLower = type; StringUtil::toLowerCase(typeLower); if (typeLower == "uniform") return new DefaultShadowCameraSetup; else if (typeLower == "uniformfocused") return new FocusedShadowCameraSetup; else if (typeLower == "lispsm") return new LiSPSMShadowCameraSetup; else if (typeLower == "planeoptimal") { //The plane optimal setup requires a plane. //Create one if it hasn't already been created if (this->shadowOptimalPlane == 0) this->shadowOptimalPlane = new MovablePlane("_shadowOptimalPlane"); //Update plane *(Plane*)this->shadowOptimalPlane = optimalPlane; return new PlaneOptimalShadowCameraSetup(this->shadowOptimalPlane); } StringUtil::StrStreamType errorMessage; errorMessage << "Invalid shadow camera setup specified: " << type; OGRE_EXCEPT ( Exception::ERR_INVALIDPARAMS, errorMessage.str(), "OgreMaxScene::ParseShadowCameraSetup" ); }
[ "tunnuz@5541800f-1273-12b8-a6ef-86c1fc29b7c3" ]
[ [ [ 1, 3164 ] ] ]
7a5d0716ec0c43d56be463b63f355276f12be4ab
fcdddf0f27e52ece3f594c14fd47d1123f4ac863
/TeCom/src/Graphics/Source Files/TdkGdiPoint.cpp
fb24c7898d068dca8aab17b2e13d2fbb25085744
[]
no_license
radtek/terra-printer
32a2568b1e92cb5a0495c651d7048db6b2bbc8e5
959241e52562128d196ccb806b51fda17d7342ae
refs/heads/master
2020-06-11T01:49:15.043478
2011-12-12T13:31:19
2011-12-12T13:31:19
null
0
0
null
null
null
null
ISO-8859-2
C++
false
false
10,214
cpp
#include "TdkGdiPoint.h" /////////////////////////////////////////////////////////////////////////////// //Constructor //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// TdkGdiPoint::TdkGdiPoint() { _pointSize=10; _pointChar='R'; _pointPen=new Pen(Color(0,0,255)); _pointBrush=new SolidBrush(Color(0,0,255)); _fontCaracter=new Font(L"Verdana",10); _pointType=CIRCLE; _pointDecorator=NULL; } /////////////////////////////////////////////////////////////////////////////// //Destructor //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// TdkGdiPoint::~TdkGdiPoint() { if(_pointPen) delete _pointPen; if(_pointBrush) delete _pointBrush; if(_fontCaracter) delete _fontCaracter; if(_pointDecorator) delete _pointDecorator; _pointPen=NULL; _pointDecorator=NULL; } /////////////////////////////////////////////////////////////////////////////// //draw Caracter //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::drawCaracter(const double &x, const double &y, Graphics *graphic) { WCHAR caracter; StringFormat format(StringAlignmentCenter); PointF pt((REAL)x,(REAL)y); if((graphic!=NULL) && (_pointBrush!=NULL) && (_fontCaracter!=NULL)) { caracter=_pointChar; graphic->DrawString(&caracter,1,_fontCaracter,pt,_pointBrush); } } /////////////////////////////////////////////////////////////////////////////// //Draw the cross //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::drawCross(const double &x, const double &y, Graphics *graphic) { PointF pX[2]; PointF pY[2]; if((graphic!=NULL) && (_pointPen!=NULL)) { pX[0]=PointF((REAL)(x - (_pointSize/2.0)),(REAL)y); pX[1]=PointF((REAL)(x + (_pointSize/2.0)),(REAL)y); pY[0]=PointF((REAL)x,(REAL)(y - _pointSize/2.0)); pY[1]=PointF((REAL)x,(REAL)(y + _pointSize/2.0)); graphic->DrawLine(_pointPen,pX[0],pX[1]); graphic->DrawLine(_pointPen,pY[0],pY[1]); } } /////////////////////////////////////////////////////////////////////////////// //Draw a diagonal cross //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::drawDiagonalCross(const double &x, const double &y, Graphics *graphic) { PointF pDown[2]; PointF pUp[2]; if((graphic!=NULL) && (_pointPen!=NULL)) { pDown[0]=PointF((REAL)(x - (_pointSize/2.0)),(REAL)(y - (_pointSize/2.0))); pDown[1]=PointF((REAL)(x + (_pointSize/2.0)),(REAL)(y + (_pointSize/2.0))); pUp[0]=PointF((REAL)(x - (_pointSize/2.0)),(REAL)(y + (_pointSize/2.0))); pUp[1]=PointF((REAL)(x + (_pointSize/2.0)),(REAL)(y - (_pointSize/2.0))); graphic->DrawLine(_pointPen,pDown[0],pDown[1]); graphic->DrawLine(_pointPen,pUp[0],pUp[1]); } } /////////////////////////////////////////////////////////////////////////////// //draw a hollow square //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::drawSquare(const double &x, const double &y, Graphics *graphic) { if((graphic!=NULL) && (_pointPen!=NULL)) { graphic->DrawRectangle(_pointPen,(REAL)(x - (_pointSize/2.0)), \ (REAL)(y - (_pointSize/2.0)),(REAL)_pointSize,(REAL)_pointSize); } } /////////////////////////////////////////////////////////////////////////////// //Draw a fill square //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::drawFillSquare(const double &x, const double &y, Graphics *graphic) { if((graphic!=NULL) && (_pointBrush!=NULL)) { graphic->FillRectangle(_pointBrush,(REAL)(x - (_pointSize/2.0)), \ (REAL)(y - (_pointSize/2.0)),(REAL)_pointSize,(REAL)_pointSize); } } /////////////////////////////////////////////////////////////////////////////// //Draw a hollow circle //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::drawCircle(const double &x, const double &y, Graphics *graphic) { if((graphic!=NULL) && (_pointPen!=NULL)) { graphic->DrawEllipse(_pointPen,(REAL)(x - (_pointSize/2.0)),(REAL)(y - (_pointSize/2.0)), \ (REAL)(_pointSize),(REAL)(_pointSize)); } } /////////////////////////////////////////////////////////////////////////////// //Draw a fill square //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::drawFillCircle(const double &x, const double &y, Graphics *graphic) { if((graphic!=NULL) && (_pointBrush!=NULL)) { graphic->FillEllipse(_pointBrush,(REAL)(x - (_pointSize/2.0)),(REAL)(y - (_pointSize/2.0)), \ (REAL)(_pointSize),(REAL)(_pointSize)); } } /////////////////////////////////////////////////////////////////////////////// //Draw a hollow diamond //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::drawDiamond(const double &x, const double &y, Graphics *graphic) { if((graphic!=NULL) && (_pointPen!=NULL)) { graphic->TranslateTransform((REAL)(x - (_pointSize/2.0)),(REAL)(y - (_pointSize/2.0))); graphic->RotateTransform(45); graphic->DrawRectangle(_pointPen,0.0,0.0,(REAL)_pointSize,(REAL)_pointSize); graphic->ResetTransform(); } } /////////////////////////////////////////////////////////////////////////////// //Draw a fill diamond //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::drawFillDiamond(const double &x, const double &y, Graphics *graphic) { if((graphic!=NULL) && (_pointBrush!=NULL)) { graphic->TranslateTransform((REAL)(x - (_pointSize/2.0)),(REAL)(y - (_pointSize/2.0))); graphic->RotateTransform(45); graphic->FillRectangle(_pointBrush,0.0,0.0,(REAL)_pointSize,(REAL)_pointSize); graphic->ResetTransform(); } } /////////////////////////////////////////////////////////////////////////////// //Draw a point //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::draw(const double &x, const double &y,Graphics *graphic) { switch(_pointType) { case CROSS: drawCross(x,y,graphic); break; case CIRCLE: drawCircle(x,y,graphic); break; case DIAGONAL_CROSS: drawDiagonalCross(x,y,graphic); break; case SQUARE: drawSquare(x,y,graphic); break; case FILL_CIRCLE: drawFillCircle(x,y,graphic); break; case FILL_SQUARE: drawFillSquare(x,y,graphic); break; case CARACTER: drawCaracter(x,y,graphic); break; case DIAMOND: drawDiamond(x,y,graphic); break; case FILL_DIAMOND: drawFillDiamond(x,y,graphic); break; case UNKNOW: break; default: drawCircle(x,y,graphic); } if(_pointDecorator) { _pointDecorator->draw(x,y,graphic); } } /////////////////////////////////////////////////////////////////////////////// //Draw a fill square //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::addDecorator(TdkGdiPoint *dec) { if(_pointDecorator) delete _pointDecorator; _pointDecorator=dec; } /////////////////////////////////////////////////////////////////////////////// //Sets point color //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::setColor(const Color &color) { if((_pointPen!=NULL) && (_pointBrush!=NULL)) { _pointPen->SetColor(color); ((SolidBrush*)_pointBrush)->SetColor(color); } } /////////////////////////////////////////////////////////////////////////////// //Sets the point size //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::setSize(const int &size) { _pointSize=size; } /////////////////////////////////////////////////////////////////////////////// //sets set the point caracter //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::setChar(const char &caracter) { _pointChar=caracter; } /////////////////////////////////////////////////////////////////////////////// //Sets the point type //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::setType(const pointType &type) { _pointType=type; } /////////////////////////////////////////////////////////////////////////////// //Set the alpha color to point //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::setAlpha(const int &alpha) { Color color; if((_pointPen!=NULL) && (_pointBrush!=NULL)) { _pointPen->GetColor(&color); _pointPen->SetColor(Color(alpha,color.GetR(),color.GetG(),color.GetB())); ((SolidBrush*)_pointBrush)->SetColor(Color(alpha,color.GetR(),color.GetG(),color.GetB())); } } /////////////////////////////////////////////////////////////////////////////// //Clear decorator //Author : Rui Mauricio Gregório //Date : 08/2009 /////////////////////////////////////////////////////////////////////////////// void TdkGdiPoint::clearDecorator() { if(_pointDecorator) delete _pointDecorator; _pointDecorator=NULL; }
[ "[email protected]@58180da6-ba8b-8960-36a5-00cc02a3ddec" ]
[ [ [ 1, 308 ] ] ]
e606303ce86c269689faa7a786585dc30dcae1db
fad23a4547e6708146e98b6661acf36f0b4adae4
/src/common/mograph.hpp
ec4042b475db1e89dfc4dd41cc5791808928b773
[]
no_license
mikolalysenko/skeletal-anim-838
dfd736b3dd28dc5bfd2bc41cc71609472e1bec9c
b3b007588f48a0dfb7b1a9d2329d75dd3c28ea93
refs/heads/master
2023-08-23T00:14:33.696992
2009-05-12T02:47:28
2009-05-12T02:47:28
32,553,630
0
0
null
null
null
null
UTF-8
C++
false
false
3,091
hpp
#ifndef MOGRAPH_H #define MOGRAPH_H //Vector arithmetic #include <Eigen/Core> #include <Eigen/StdVector> #include <Eigen/Geometry> //STL #include <iostream> #include <string> #include <vector> #include <cassert> //Project #include <misc.hpp> #include <skeleton.hpp> namespace Skeletal { using namespace std; using namespace Eigen; //A motion graph data structure struct MotionGraph { Joint skeleton; double frame_time; vector<Frame> frames; vector< vector< int > > graph; //Ctors MotionGraph() {} MotionGraph(const Joint& skeleton) : skeleton(skeleton) {} MotionGraph(const MotionGraph& other) : skeleton(other.skeleton), frame_time(other.frame_time), frames(other.frames), graph(other.graph) {} //Assignment MotionGraph operator=(const MotionGraph& other) { skeleton = other.skeleton; frame_time = other.frame_time; frames = other.frames; graph = other.graph; return *this; } //Inserts a motion into the motion graph void insert_motion(const Motion& motion, double threshold, double window_size, int window_res, double (*window_func)(double)); //Does an approximate insertion in O(n) time void insert_motion_fast(const Motion& motion, double threshold, double window_size, int window_res, double (*window_func)(double)); //Removes all dead ends from the motion graph, returning a list of strongly connected components vector<MotionGraph> extract_scc() const; //Synthesizes a motion Motion synthesize_motion(const vector<int> frame_seq, const Transform3d& base_pose) const; //Synthesize a random motion with l frames Motion random_motion(int l) const; //Synthesizes a motion which follows a path Motion follow_path(Vector2f (*path_func)(double), double max_d, double dur) const; //Finds a path along a segment Motion path_segment(const Transform2f& start_pt, const Vector2f& finish_pt, int start_f = -1) const; //Extracts a linear submotion from the motion graph Motion submotion(int start, int end) const; //Pulls out a local window frame about the frame f aligned<Vector4d>::vector point_cloud(int f, double w, int n, double (*wind_func)(double)) const; //Create point cloud map void create_point_cloud_map(MatrixXd& data, double& max_distance, double window_size, int window_res, double (*window_func)(double)); }; //Point cloud distance metric double cloud_distance(const aligned<Vector4d>::vector& a, const aligned<Vector4d>::vector& b, const Transform3d& x); //Point cloud alignment Transform3d relative_xform(const aligned<Vector4d>::vector& a, const aligned<Vector4d>::vector& b); //Serialization MotionGraph parseMotionGraph(istream& is); void writeMotionGraph(ostream& os, const MotionGraph& g); }; #endif
[ "mikolalysenko@643bfc8c-1e2e-11de-b69a-45dc1c5e4070", "kongyang80@643bfc8c-1e2e-11de-b69a-45dc1c5e4070" ]
[ [ [ 1, 6 ], [ 8, 86 ], [ 94, 107 ] ], [ [ 7, 7 ], [ 87, 93 ] ] ]
168b0d03ec40edbca22ea1f87e8872b5edc44c1e
823afcea9ac0705f6262ccffdff65d687822fe93
/RayTracing/Src/Material.cpp
6474d22a96806d06de5b12f29caa981865cbafdb
[]
no_license
shourav9884/raytracing99999
02b405759edf7eb5021496f87af8fa8157e972be
19c5e3a236dc1356f6b4ec38efcc05827acb9e04
refs/heads/master
2016-09-10T03:30:54.820034
2006-10-15T21:49:19
2006-10-15T21:49:19
null
0
0
null
null
null
null
UTF-8
C++
false
false
373
cpp
#include "Material.h" Material::Material( void ) { this->initBaseAttributes(); } Material::Material( const ColorRGBf& aDiffuseColor, const ColorRGBf& aSpecularColor, const ColorRGBf& aAmbientColor) : diffuseColor(aDiffuseColor), specularColor(aSpecularColor), ambientColor(aAmbientColor) { this->initBaseAttributes(); } Material::~Material(void) { }
[ "saulopessoa@34b68867-b01b-0410-ab61-0f167d00cb52" ]
[ [ [ 1, 17 ] ] ]
078bd2b67a553eafaf8dcd8d5571ac5fb647cb33
47f89380f778b6ee8311678e48970ea710e8c1a8
/atask/Build.cpp
f534037004d577e7c6c1909fb90570b92d95a982
[]
no_license
hoijui/E323AI
f53a0fb388b67557fc92f38835343a85ef01135a
c4fcac72b77cff352350326c01ecab2d0ba9b388
refs/heads/master
2021-01-17T23:26:30.279240
2010-12-17T00:35:34
2010-12-17T00:35:34
358,032
0
0
null
null
null
null
UTF-8
C++
false
false
4,418
cpp
#include "Build.h" #include "../CUnit.h" #include "../CGroup.h" #include "../CUnitTable.h" #include "../CPathfinder.h" #include "../CEconomy.h" #include "../CTaskHandler.h" std::map<buildType, std::string> BuildTask::buildStr; BuildTask::BuildTask(AIClasses *_ai, buildType build, UnitType *toBuild, CGroup &group, float3 &pos): ATask(_ai) { if (buildStr.empty()) { buildStr[BUILD_MPROVIDER] = std::string("MPROVIDER"); buildStr[BUILD_EPROVIDER] = std::string("EPROVIDER"); buildStr[BUILD_AA_DEFENSE] = std::string("AA_DEFENSE"); buildStr[BUILD_AG_DEFENSE] = std::string("AG_DEFENSE"); buildStr[BUILD_UW_DEFENSE] = std::string("UW_DEFENSE"); buildStr[BUILD_FACTORY] = std::string("FACTORY"); buildStr[BUILD_MSTORAGE] = std::string("MSTORAGE"); buildStr[BUILD_ESTORAGE] = std::string("ESTORAGE"); buildStr[BUILD_MISC_DEFENSE] = std::string("MISC_DEFENSE"); buildStr[BUILD_IMP_DEFENSE] = std::string("IMPORTANT_DEFENSE"); } this->t = TASK_BUILD; this->pos = pos; this->bt = build; this->toBuild = toBuild; float eta = ai->pathfinder->getETA(group, pos); if (eta == std::numeric_limits<float>::max()) this->eta = 0; else this->eta = int((eta + 100.0f) * 1.2f); this->building = false; addGroup(group); } bool BuildTask::onValidate() { if (isMoving) { // decline task if metal spot is occupied by firendly unit if ((toBuild->cats&MEXTRACTOR).any()) { int numUnits = ai->cb->GetFriendlyUnits(&ai->unitIDs[0], pos, 1.1f * ai->cb->GetExtractorRadius()); for (int i = 0; i < numUnits; i++) { const int uid = ai->unitIDs[i]; const UnitDef *ud = ai->cb->GetUnitDef(uid); if ((UC(ud->id)&MEXTRACTOR).any()) { return false; } } } } else { CGroup *group = firstGroup(); if (ai->economy->hasFinishedBuilding(*group)) return false; if (lifeFrames() > eta && !ai->economy->hasBegunBuilding(*group)) { LOG_WW("BuildTask::update assuming buildpos blocked for group " << (*group)) return false; } } return true; } void BuildTask::onUpdate() { CGroup *group = firstGroup(); if (group->isMicroing()) { if (group->isIdle()) { CUnit* unit = group->firstUnit(); group->micro(false); // if idle, our micro is done eta += unit->microingFrames; unit->microingFrames = 0; // reset } else return; // if microing, break } if (!building) { if (isMoving) { if (!resourceScan()) { const float3 gpos = group->pos(); if (gpos.distance2D(pos) <= group->buildRange) { isMoving = false; ai->pathfinder->remove(*group); } else repairScan(); } } if (!isMoving && !group->isMicroing()) { if (group->build(pos, toBuild)) { building = true; group->micro(true); } } } if (group->isIdle()) { // make builder react faster when job is finished if (!onValidate()) remove(); } } bool BuildTask::assistable(CGroup &assister, float &travelTime) const { if (!toBuild->def->canBeAssisted) return false; if (isMoving) return false; if (assisters.size() > 1 && (bt == BUILD_AG_DEFENSE || bt == BUILD_AG_DEFENSE || bt == BUILD_MISC_DEFENSE)) return false; CGroup *group = firstGroup(); float buildSpeed = group->buildSpeed; std::list<ATask*>::const_iterator it; for (it = assisters.begin(); it != assisters.end(); ++it) buildSpeed += (*it)->firstGroup()->buildSpeed; // NOTE: we should calculate distance to group position instead of target // position because build place can be reachable within build range only float3 gpos = group->pos(); float buildTime = (toBuild->def->buildTime / buildSpeed) * 32.0f; /* travelTime + 5 seconds to make it worth the trip */ travelTime = ai->pathfinder->getETA(assister, gpos) + 150.0f; return (buildTime > travelTime); } void BuildTask::onUnitDestroyed(int uid, int attacker) { if (ai->cb->UnitBeingBuilt(uid)) { CUnit* unit = ai->unittable->getUnit(uid); if (unit && unit->builtBy == firstGroup()->firstUnit()->key) remove(); } } void BuildTask::toStream(std::ostream& out) const { out << "BuildTask(" << key << ") " << buildStr[bt]; out << "(" << toBuild->def->humanName << ") ETA(" << eta << ")"; out << " lifetime(" << lifeFrames() << ") "; CGroup *group = firstGroup(); if (group) out << (*group); }
[ [ [ 1, 153 ] ] ]
046b51e56488a2ade5654b8ca1eb87dc642cc369
2a3952c00a7835e6cb61b9cb371ce4fb6e78dc83
/BasicOgreFramework/PhysxSDK/Samples/SampleRBHSM/src/SampleRBHSM.cpp
9db76aabf6b0d198e10f5b9aae1ca418281a3910
[]
no_license
mgq812/simengines-g2-code
5908d397ef2186e1988b1d14fa8b73f4674f96ea
699cb29145742c1768857945dc59ef283810d511
refs/heads/master
2016-09-01T22:57:54.845817
2010-01-11T19:26:51
2010-01-11T19:26:51
32,267,377
0
0
null
null
null
null
UTF-8
C++
false
false
11,870
cpp
// =============================================================================== // // AGEIA PhysX SDK Sample Program // // Title: Sample of RigidBody "Hardware Scene Manager" (HSM) // Description: This sample program shows how to create some simple dynamic objects // in a scene and in an attached managed hardware scene, and how they // interact // // =============================================================================== #include <stdio.h> #include <GL/glut.h> #include "NxPhysics.h" #include "ErrorStream.h" #include "PerfRenderer.h" #include "DebugRenderer.h" #include "Utilities.h" #include "SamplesVRDSettings.h" // Physics static NxPhysicsSDK* gPhysicsSDK = NULL; static NxScene* gScene = NULL; static NxCompartment * gCompartment = NULL; static PerfRenderer gPerfRenderer; // Rendering static NxVec3 gEye(50.0f, 50.0f, 50.0f); static NxVec3 gDir(-0.6f,-0.2f,-0.7f); static NxVec3 gViewY; static int gMouseX = 0; static int gMouseY = 0; static const unsigned int HW_ACTOR = (1<<31); //Flag set in userdata to identify HW actors static bool gWarnedAboutHardware = false; static bool InitNx() { // Initialize PhysicsSDK NxPhysicsSDKDesc desc; NxSDKCreateError errorCode = NXCE_NO_ERROR; gPhysicsSDK = NxCreatePhysicsSDK(NX_PHYSICS_SDK_VERSION, NULL, new ErrorStream(), desc, &errorCode); if(gPhysicsSDK == NULL) { printf("\nSDK create error (%d - %s).\nUnable to initialize the PhysX SDK, exiting the sample.\n\n", errorCode, getNxSDKCreateError(errorCode)); return false; } #if SAMPLES_USE_VRD // The settings for the VRD host and port are found in SampleCommonCode/SamplesVRDSettings.h if (gPhysicsSDK->getFoundationSDK().getRemoteDebugger() && !gPhysicsSDK->getFoundationSDK().getRemoteDebugger()->isConnected()) gPhysicsSDK->getFoundationSDK().getRemoteDebugger()->connect(SAMPLES_VRD_HOST, SAMPLES_VRD_PORT, SAMPLES_VRD_EVENTMASK); #endif //We now support software compartments on consoles. #if defined(WIN32) && !defined(_XBOX) NxHWVersion hwCheck = gPhysicsSDK->getHWVersion(); if (hwCheck == NX_HW_VERSION_NONE) { printf("Unable to find any AGEIA PhysX hardware, this sample requires hardware physics to run. Please make sure that you have correctly installed the latest version of the AGEIA PhysX SDK.\n"); exit(1); } #endif gPhysicsSDK->setParameter(NX_SKIN_WIDTH, 0.05f); // Create a scene NxSceneDesc sceneDesc; sceneDesc.gravity = NxVec3(0.0f, -9.81f, 0.0f); gScene = gPhysicsSDK->createScene(sceneDesc); if(gScene == NULL) { printf("\nError: Unable to create a PhysX scene, exiting the sample.\n\n"); return false; } //Create a managed hardware scene attached to this scene NxCompartmentDesc cdesc; cdesc.type = NX_SCT_RIGIDBODY; #if defined(WIN32) && !defined(_XBOX) cdesc.deviceCode = NX_DC_PPU_AUTO_ASSIGN; #else cdesc.deviceCode = NX_DC_CPU; #endif gCompartment = gScene->createCompartment(cdesc); // Set default material NxMaterial* defaultMaterial = gScene->getMaterialFromIndex(0); defaultMaterial->setRestitution(0.0f); defaultMaterial->setStaticFriction(0.5f); defaultMaterial->setDynamicFriction(0.5f); // Create ground plane NxPlaneShapeDesc planeDesc; NxActorDesc actorDesc; actorDesc.shapes.pushBack(&planeDesc); gScene->createActor(actorDesc); return true; } static void ExitNx() { if(gPhysicsSDK != NULL) { if(gScene != NULL) gPhysicsSDK->releaseScene(*gScene); gScene = NULL; NxReleasePhysicsSDK(gPhysicsSDK); gPhysicsSDK = NULL; } } static void CreateCube(const NxVec3& pos, int size=2, const NxVec3* initialVelocity=NULL, bool hwScene = false) { if(gScene == NULL) return; // Create body NxBodyDesc bodyDesc; bodyDesc.angularDamping = 0.5f; if(initialVelocity) bodyDesc.linearVelocity = *initialVelocity; NxBoxShapeDesc boxDesc; boxDesc.dimensions = NxVec3((float)size, (float)size, (float)size); NxActorDesc actorDesc; actorDesc.shapes.pushBack(&boxDesc); actorDesc.body = &bodyDesc; actorDesc.density = 10.0f; actorDesc.globalPose.t = pos; size_t userData = size_t(size); if(hwScene) { // If flagged to be created in hw-scene, set the actor flag actorDesc.compartment = gCompartment; // To identify the actor when render it, set a bit in the userdata userData |= HW_ACTOR; } NxActor* actor = gScene->createActor(actorDesc); if (!actor) { if (hwScene) { if (!gWarnedAboutHardware) printf("\nUnable to create a hardware scene actor. Please make sure that you have correctly installed the latest version of the AGEIA PhysX SDK.\n\n"); gWarnedAboutHardware = true; } return; } actor->userData = (void*)userData; //printf("Total: %d actors\n", gScene->getNbActors()); } static void CreateCubeFromEye(int size, bool hwScene = false) { NxVec3 t = gEye; NxVec3 vel = gDir; vel.normalize(); vel*=200.0f; CreateCube(t, size, &vel, hwScene); } static void CreateStack(int size, const NxVec3& offset, bool hwScene = false) { const float cubeSize = 2.0f; const float spacing = 0.0001f; NxVec3 pos(0.0f, cubeSize, 0.0f); float boxoffset = -size * (cubeSize * 2.0f + spacing) * 0.5f; while(size) { for(int i=0;i<size;i++) { pos.x = boxoffset + (float)i * (cubeSize * 2.0f + spacing); CreateCube(pos + offset, (int)cubeSize, NULL, hwScene); } boxoffset += cubeSize; pos.y += (cubeSize * 2.0f + spacing); size--; } } static void CreateTower(int size, const NxVec3& offset, bool hwScene = false) { const float cubeSize = 2.0f; const float spacing = 0.01f; NxVec3 pos(0.0f, cubeSize, 0.0f); while(size) { CreateCube(pos + offset, (int)cubeSize, NULL, hwScene); pos.y += (cubeSize * 2.0f + spacing); size--; } } static void KeyboardCallback(unsigned char key, int x, int y) { switch(key) { case 27: exit(0); break; case '0': gPerfRenderer.toggleEnable(); break; case 't': case 'T': CreateCube(NxVec3(0.0f, 20.0f, 0.0f),1); break; case 'g': case 'G': CreateCube(NxVec3(0.0f, 20.0f, 0.0f),1, NULL, true); break; case 'y': case 'Y': CreateStack(10, NxVec3(0.0f, 0.0f, 10.0f)); break; case 'h': case 'H': CreateStack(10, NxVec3(0.0f, 0.0f, -10.0f), true); break; case 'u': case 'U': CreateStack(30, NxVec3(0.0f, 0.0f, 10.0f)); break; case 'j': case 'J': CreateStack(30, NxVec3(0.0f, 0.0f, -10.0f), true); break; case 'i': case 'I': CreateTower(10, NxVec3(0.0f, 0.0f, 10.0f)); break; case 'k': case 'K': CreateTower(10, NxVec3(0.0f, 0.0f, -10.0f), true); break; case 'o': case 'O': CreateCubeFromEye(8); break; case 'l': case 'L': CreateCubeFromEye(8, true); break; case 'q': case 'Q': { NxActor** actors = gScene->getActors(); if(gScene->getNbActors() > 1){ gScene->releaseActor(*actors[gScene->getNbActors()-1]); } } break; //Navigation keys case 'w': case '8': gEye += gDir*2.0f; break; case 's': case '2': gEye -= gDir*2.0f; break; case 'a': case '4': gEye -= gViewY*2.0f; break; case 'd': case '6': gEye += gViewY*2.0f; break; } } static void ArrowKeyCallback(int key, int x, int y) { KeyboardCallback(key,x,y); } static void MouseCallback(int button, int state, int x, int y) { gMouseX = x; gMouseY = y; } static void MotionCallback(int x, int y) { int dx = gMouseX - x; int dy = gMouseY - y; gDir.normalize(); gViewY.cross(gDir, NxVec3(0,1,0)); NxQuat qx(NxPiF32 * dx * 20/ 180.0f, NxVec3(0,1,0)); qx.rotate(gDir); NxQuat qy(NxPiF32 * dy * 20/ 180.0f, gViewY); qy.rotate(gDir); gMouseX = x; gMouseY = y; } static void RenderCallback() { if(gScene == NULL) return; // Start simulation (non blocking) gScene->simulate(1.0f/60.0f); // Clear buffers glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); // Setup projection matrix glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(60.0f, (float)glutGet(GLUT_WINDOW_WIDTH)/(float)glutGet(GLUT_WINDOW_HEIGHT), 1.0f, 10000.0f); gluLookAt(gEye.x, gEye.y, gEye.z, gEye.x + gDir.x, gEye.y + gDir.y, gEye.z + gDir.z, 0.0f, 1.0f, 0.0f); // Setup modelview matrix glMatrixMode(GL_MODELVIEW); glLoadIdentity(); // Render all actors int nbActors = gScene->getNbActors(); NxActor** actors = gScene->getActors(); while(nbActors--) { NxActor* actor = *actors++; if(!actor->userData) continue; size_t userData = size_t(actor->userData); if (userData & HW_ACTOR) { // Make HW-actors green glColor4f(0.5f, 1.0f, 0.5f, 1.0f); userData &= ~HW_ACTOR; //clear flag for rendering code below } else { glColor4f(1.0f, 1.0f, 1.0f, 1.0f); } // Render actor glPushMatrix(); float glMat[16]; actor->getGlobalPose().getColumnMajor44(glMat); glMultMatrixf(glMat); glutSolidCube(float(userData)*2.0f); glPopMatrix(); // Render shadow glPushMatrix(); const static float shadowMat[]={ 1,0,0,0, 0,0,0,0, 0,0,1,0, 0,0,0,1 }; glMultMatrixf(shadowMat); glMultMatrixf(glMat); glDisable(GL_LIGHTING); glColor4f(0.1f, 0.2f, 0.3f, 1.0f); glutSolidCube(float(userData)*2.0f); glEnable(GL_LIGHTING); glPopMatrix(); } // Fetch simulation results gScene->flushStream(); gScene->fetchResults(NX_RIGID_BODY_FINISHED, true); // Print profile results (if enabled) gPerfRenderer.render(gScene->readProfileData(true), glutGet(GLUT_WINDOW_WIDTH), glutGet(GLUT_WINDOW_HEIGHT)); glutSwapBuffers(); } static void ReshapeCallback(int width, int height) { glViewport(0, 0, width, height); } static void IdleCallback() { glutPostRedisplay(); } int main(int argc, char** argv) { // Initialize glut printf("HSM RB Sample\n" "Create software objects: \n" "[t] Single cube\n" "[y] Pyramid with 55 cubes\n" "[u] Pyramid with 465 cubes\n" "[i] Tower with 10 cubes\n" "[o] Shoot cube from camera into scene\n" "\n" "Create hardware objects: \n" "[g] Single cube\n" "[h] Pyramid with 55 cubes\n" "[j] Pyramid with 465 cubes\n" "[k] Tower with 10 cubes\n" "[l] Shoot cube from camera into scene\n" "\n" "[0] Toggle profiler\n" "[q] Remove the last thing created\n" "\n" ); printf("Use the w, a, s, d or 8, 4, 2 and 6 to move the camera.\n"); printf("Use the mouse to rotate the camera.\n"); glutInit(&argc, argv); glutInitWindowSize(512, 512); glutInitDisplayMode(GLUT_RGB|GLUT_DOUBLE|GLUT_DEPTH); int mainHandle = glutCreateWindow("SampleRBHSM"); glutSetWindow(mainHandle); glutDisplayFunc(RenderCallback); glutReshapeFunc(ReshapeCallback); glutIdleFunc(IdleCallback); glutKeyboardFunc(KeyboardCallback); glutSpecialFunc(ArrowKeyCallback); glutMouseFunc(MouseCallback); glutMotionFunc(MotionCallback); MotionCallback(0,0); atexit(ExitNx); // Setup default render states glClearColor(0.3f, 0.4f, 0.5f, 1.0); glEnable(GL_DEPTH_TEST); glEnable(GL_COLOR_MATERIAL); // Setup lighting glEnable(GL_LIGHTING); float ambientColor[] = { 0.0f, 0.1f, 0.2f, 0.0f }; float diffuseColor[] = { 1.0f, 1.0f, 1.0f, 0.0f }; float specularColor[] = { 0.0f, 0.0f, 0.0f, 0.0f }; float position[] = { 100.0f, 100.0f, 400.0f, 1.0f }; glLightfv(GL_LIGHT0, GL_AMBIENT, ambientColor); glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuseColor); glLightfv(GL_LIGHT0, GL_SPECULAR, specularColor); glLightfv(GL_LIGHT0, GL_POSITION, position); glEnable(GL_LIGHT0); // Initialize physics scene and start the application main loop if scene was created if (InitNx()) glutMainLoop(); return 0; }
[ "erucarno@789472dc-e1c3-11de-81d3-db62269da9c1" ]
[ [ [ 1, 454 ] ] ]
c15af21be3042f3b2e43f34b3cf4df1f9fd41f90
bef7d0477a5cac485b4b3921a718394d5c2cf700
/dingus/dingus/resource/SharedVolumeBundle.cpp
b28094061482a756c2426c647b7e87455c7a493c
[ "MIT" ]
permissive
TomLeeLive/aras-p-dingus
ed91127790a604e0813cd4704acba742d3485400
22ef90c2bf01afd53c0b5b045f4dd0b59fe83009
refs/heads/master
2023-04-19T20:45:14.410448
2011-10-04T10:51:13
2011-10-04T10:51:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,482
cpp
// -------------------------------------------------------------------------- // Dingus project - a collection of subsystems for game/graphics applications // -------------------------------------------------------------------------- #include "stdafx.h" #include "SharedVolumeBundle.h" #include "../utils/Errors.h" #include "../kernel/D3DDevice.h" using namespace dingus; void CSharedVolumeBundle::registerVolume( CResourceId const& id, IVolumeCreator& creator ) { assert( &creator ); IDirect3DVolumeTexture9* tex = creator.createTexture(); registerResource( id, *(new CD3DVolumeTexture(tex)), &creator ); } void CSharedVolumeBundle::createResource() { } void CSharedVolumeBundle::activateResource() { // recreate all objects TResourceMap::iterator it; for( it = mResourceMap.begin(); it != mResourceMap.end(); ++it ) { IVolumeCreator& creator = *it->second.first; assert( &creator ); CD3DVolumeTexture& res = *it->second.second; if( !res.isNull() ) continue; // kind of HACK res.setObject( creator.createTexture() ); assert( !res.isNull() ); } } void CSharedVolumeBundle::passivateResource() { // unload all objects TResourceMap::iterator it; for( it = mResourceMap.begin(); it != mResourceMap.end(); ++it ) { CD3DVolumeTexture& res = *it->second.second; assert( !res.isNull() ); res.getObject()->Release(); res.setObject( NULL ); } } void CSharedVolumeBundle::deleteResource() { }
[ [ [ 1, 55 ] ] ]
3bc994cdf7586ba84be0633cd222714f4ea6b0ec
21f3bb253e400e0e84c19b5013ddbce5f62a56c5
/WORLDcodes.cpp
2fe2d473500afcfa0cd13f03758935ace83cdb03
[]
no_license
imrehg/tvbgone-arduino
f348fb57f266f3fc69fb9a218d7b19823a90e69a
b8426d8569d96d7b8163baf4837f9ed312134e4c
refs/heads/master
2021-01-18T08:37:03.259918
2010-10-17T15:59:50
2010-10-17T15:59:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
132,080
cpp
/* TV-B-Gone for Arduino version 0.001 Ported to Arduino by Ken Shirriff, Dec 3, 2009 http://arcfn.com The original code is: TV-B-Gone Firmware version 1.2 for use with ATtiny85v and v1.2 hardware (c) Mitch Altman + Limor Fried 2009 */ #include "main.h" //Codes captured from Generation 3 TV-B-Gone by Limor Fried & Mitch Altman // table of POWER codes #ifdef NA_CODES const uint16_t code_na000Times[] PROGMEM = { 60, 60, 60, 2700, 120, 60, 240, 60, }; const uint8_t code_na000Codes[] PROGMEM = { 0xE2, 0x20, 0x80, 0x78, 0x88, 0x20, 0x10, }; const struct IrCode code_na000Code PROGMEM = { freq_to_timerval(38400), 26, // # of pairs 2, // # of bits per index code_na000Times, code_na000Codes }; const uint16_t code_na001Times[] PROGMEM = { 50, 100, 50, 200, 50, 800, 400, 400, }; const uint8_t code_na001Codes[] PROGMEM = { 0xD5, 0x41, 0x11, 0x00, 0x14, 0x44, 0x6D, 0x54, 0x11, 0x10, 0x01, 0x44, 0x45, }; const struct IrCode code_na001Code PROGMEM = { freq_to_timerval(57143), 52, // # of pairs 2, // # of bits per index code_na001Times, code_na001Codes }; const uint16_t code_na002Times[] PROGMEM = { 42, 46, 42, 133, 42, 7519, 347, 176, 347, 177, }; const uint8_t code_na002Codes[] PROGMEM = { 0x60, 0x80, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x04, 0x12, 0x48, 0x04, 0x12, 0x48, 0x2A, 0x02, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x49, 0x20, 0x10, 0x49, 0x20, 0x80, }; const struct IrCode code_na002Code PROGMEM = { freq_to_timerval(37037), 100, // # of pairs 3, // # of bits per index code_na002Times, code_na002Codes }; const uint16_t code_na003Times[] PROGMEM = { 26, 185, 27, 80, 27, 185, 27, 4549, }; const uint8_t code_na003Codes[] PROGMEM = { 0x15, 0x5A, 0x65, 0x67, 0x95, 0x65, 0x9A, 0x9B, 0x95, 0x5A, 0x65, 0x67, 0x95, 0x65, 0x9A, 0x99, }; const struct IrCode code_na003Code PROGMEM = { freq_to_timerval(38610), 64, // # of pairs 2, // # of bits per index code_na003Times, code_na003Codes }; const uint16_t code_na004Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; const uint8_t code_na004Codes[] PROGMEM = { 0xA0, 0x00, 0x01, 0x04, 0x92, 0x48, 0x20, 0x80, 0x40, 0x04, 0x12, 0x09, 0x2B, 0x3D, 0x00, }; const struct IrCode code_na004Code PROGMEM = { freq_to_timerval(38610), 38, // # of pairs 3, // # of bits per index code_na004Times, code_na004Codes }; const uint16_t code_na005Times[] PROGMEM = { 88, 90, 88, 91, 88, 181, 88, 8976, 177, 91, }; const uint8_t code_na005Codes[] PROGMEM = { 0x10, 0x92, 0x49, 0x46, 0x33, 0x09, 0x24, 0x94, 0x60, }; const struct IrCode code_na005Code PROGMEM = { freq_to_timerval(35714), 24, // # of pairs 3, // # of bits per index code_na005Times, code_na005Codes }; const uint16_t code_na006Times[] PROGMEM = { 50, 62, 50, 172, 50, 4541, 448, 466, 450, 465, }; const uint8_t code_na006Codes[] PROGMEM = { 0x64, 0x90, 0x00, 0x04, 0x90, 0x00, 0x00, 0x80, 0x00, 0x04, 0x12, 0x49, 0x2A, 0x12, 0x40, 0x00, 0x12, 0x40, 0x00, 0x02, 0x00, 0x00, 0x10, 0x49, 0x24, 0x90, }; const struct IrCode code_na006Code PROGMEM = { freq_to_timerval(38462), 68, // # of pairs 3, // # of bits per index code_na006Times, code_na006Codes }; const uint16_t code_na007Times[] PROGMEM = { 49, 49, 49, 50, 49, 410, 49, 510, 49, 12107, }; const uint8_t code_na007Codes[] PROGMEM = { 0x09, 0x94, 0x53, 0x29, 0x94, 0xD9, 0x85, 0x32, 0x8A, 0x65, 0x32, 0x9B, 0x20, }; const struct IrCode code_na007Code PROGMEM = { freq_to_timerval(39216), 34, // # of pairs 3, // # of bits per index code_na007Times, code_na007Codes }; const uint16_t code_na008Times[] PROGMEM = { 56, 58, 56, 170, 56, 4011, 898, 450, 900, 449, }; const uint8_t code_na008Codes[] PROGMEM = { 0x64, 0x00, 0x49, 0x00, 0x92, 0x00, 0x20, 0x82, 0x01, 0x04, 0x10, 0x48, 0x2A, 0x10, 0x01, 0x24, 0x02, 0x48, 0x00, 0x82, 0x08, 0x04, 0x10, 0x41, 0x20, 0x90, }; const struct IrCode code_na008Code PROGMEM = { freq_to_timerval(38462), 68, // # of pairs 3, // # of bits per index code_na008Times, code_na008Codes }; const uint16_t code_na009Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; const uint8_t code_na009Codes[] PROGMEM = { 0x84, 0x90, 0x00, 0x20, 0x80, 0x08, 0x00, 0x00, 0x09, 0x24, 0x92, 0x40, 0x0A, 0xBA, 0x40, }; const struct IrCode code_na009Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na009Times, code_na009Codes }; const uint16_t code_na010Times[] PROGMEM = { 51, 55, 51, 158, 51, 2286, 841, 419, }; const uint8_t code_na010Codes[] PROGMEM = { 0xD4, 0x00, 0x15, 0x10, 0x25, 0x00, 0x05, 0x44, 0x09, 0x40, 0x01, 0x51, 0x01, }; const struct IrCode code_na010Code PROGMEM = { freq_to_timerval(38462), 52, // # of pairs 2, // # of bits per index code_na010Times, code_na010Codes }; const uint16_t code_na011Times[] PROGMEM = { 55, 55, 55, 172, 55, 4039, 55, 9348, 56, 0, 884, 442, 885, 225, }; const uint8_t code_na011Codes[] PROGMEM = { 0xA0, 0x00, 0x41, 0x04, 0x92, 0x08, 0x24, 0x90, 0x40, 0x00, 0x02, 0x09, 0x2B, 0x3D, 0x00, }; const struct IrCode code_na011Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na011Times, code_na011Codes }; const uint16_t code_na012Times[] PROGMEM = { 81, 87, 81, 254, 81, 3280, 331, 336, 331, 337, }; const uint8_t code_na012Codes[] PROGMEM = { 0x64, 0x12, 0x08, 0x24, 0x00, 0x08, 0x20, 0x10, 0x09, 0x2A, 0x10, 0x48, 0x20, 0x90, 0x00, 0x20, 0x80, 0x40, 0x24, 0x90, }; const struct IrCode code_na012Code PROGMEM = { freq_to_timerval(38462), 52, // # of pairs 3, // # of bits per index code_na012Times, code_na012Codes }; const uint16_t code_na013Times[] PROGMEM = { 53, 55, 53, 167, 53, 2304, 53, 9369, 893, 448, 895, 447, }; const uint8_t code_na013Codes[] PROGMEM = { 0x80, 0x12, 0x40, 0x04, 0x00, 0x09, 0x00, 0x12, 0x41, 0x24, 0x82, 0x01, 0x00, 0x10, 0x48, 0x24, 0xAA, 0xE8, }; const struct IrCode code_na013Code PROGMEM = { freq_to_timerval(38462), 48, // # of pairs 3, // # of bits per index code_na013Times, code_na013Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_na014Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_na014Codes[] PROGMEM = { 0xA0, 0x00, 0x09, 0x04, 0x92, 0x40, 0x24, 0x80, 0x00, 0x00, 0x12, 0x49, 0x2B, 0x3D, 0x00, }; const struct IrCode code_na014Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_na014Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_na015Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_na015Codes[] PROGMEM = { 0xA0, 0x80, 0x01, 0x04, 0x12, 0x48, 0x24, 0x00, 0x00, 0x00, 0x92, 0x49, 0x2B, 0x3D, 0x00, }; const struct IrCode code_na015Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_na015Codes }; const uint16_t code_na016Times[] PROGMEM = { 28, 90, 28, 211, 28, 2507, }; const uint8_t code_na016Codes[] PROGMEM = { 0x54, 0x04, 0x10, 0x00, 0x95, 0x01, 0x04, 0x00, 0x10, }; const struct IrCode code_na016Code PROGMEM = { freq_to_timerval(34483), 34, // # of pairs 2, // # of bits per index code_na016Times, code_na016Codes }; const uint16_t code_na017Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; const uint8_t code_na017Codes[] PROGMEM = { 0xA0, 0x02, 0x48, 0x04, 0x90, 0x01, 0x20, 0x80, 0x40, 0x04, 0x12, 0x09, 0x2A, 0x38, 0x00, }; const struct IrCode code_na017Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na017Codes }; const uint16_t code_na018Times[] PROGMEM = { 51, 55, 51, 161, 51, 2566, 849, 429, 849, 430, }; const uint8_t code_na018Codes[] PROGMEM = { 0x60, 0x82, 0x08, 0x24, 0x10, 0x41, 0x00, 0x12, 0x40, 0x04, 0x80, 0x09, 0x2A, 0x02, 0x08, 0x20, 0x90, 0x41, 0x04, 0x00, 0x49, 0x00, 0x12, 0x00, 0x24, 0xA8, 0x08, 0x20, 0x82, 0x41, 0x04, 0x10, 0x01, 0x24, 0x00, 0x48, 0x00, 0x92, 0xA0, 0x20, 0x82, 0x09, 0x04, 0x10, 0x40, 0x04, 0x90, 0x01, 0x20, 0x02, 0x48, }; const struct IrCode code_na018Code PROGMEM = { freq_to_timerval(38462), 136, // # of pairs 3, // # of bits per index code_na018Times, code_na018Codes }; const uint16_t code_na019Times[] PROGMEM = { 40, 42, 40, 124, 40, 4601, 325, 163, 326, 163, }; const uint8_t code_na019Codes[] PROGMEM = { 0x60, 0x10, 0x40, 0x04, 0x80, 0x09, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x20, 0x10, 0x00, 0x20, 0x80, 0x00, 0x0A, 0x00, 0x41, 0x00, 0x12, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x80, 0x40, 0x00, 0x82, 0x00, 0x00, 0x00, }; const struct IrCode code_na019Code PROGMEM = { freq_to_timerval(38462), 100, // # of pairs 3, // # of bits per index code_na019Times, code_na019Codes }; const uint16_t code_na020Times[] PROGMEM = { 60, 55, 60, 163, 60, 4099, 60, 9698, 61, 0, 898, 461, 900, 230, }; const uint8_t code_na020Codes[] PROGMEM = { 0xA0, 0x10, 0x00, 0x04, 0x82, 0x49, 0x20, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2B, 0x3D, 0x00, }; const struct IrCode code_na020Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na020Times, code_na020Codes }; const uint16_t code_na021Times[] PROGMEM = { 48, 52, 48, 160, 48, 400, 48, 2335, 799, 400, }; const uint8_t code_na021Codes[] PROGMEM = { 0x80, 0x10, 0x40, 0x08, 0x82, 0x08, 0x01, 0xC0, 0x08, 0x20, 0x04, 0x41, 0x04, 0x00, 0x00, }; const struct IrCode code_na021Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na021Times, code_na021Codes }; const uint16_t code_na022Times[] PROGMEM = { 53, 60, 53, 175, 53, 4463, 53, 9453, 892, 450, 895, 225, }; const uint8_t code_na022Codes[] PROGMEM = { 0x80, 0x02, 0x40, 0x00, 0x02, 0x40, 0x00, 0x00, 0x01, 0x24, 0x92, 0x48, 0x0A, 0xBA, 0x00, }; const struct IrCode code_na022Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na022Times, code_na022Codes }; const uint16_t code_na023Times[] PROGMEM = { 48, 52, 48, 409, 48, 504, 48, 10461, }; const uint8_t code_na023Codes[] PROGMEM = { 0xA1, 0x18, 0x61, 0xA1, 0x18, 0x7A, 0x11, 0x86, 0x1A, 0x11, 0x86, }; const struct IrCode code_na023Code PROGMEM = { freq_to_timerval(40000), 44, // # of pairs 2, // # of bits per index code_na023Times, code_na023Codes }; const uint16_t code_na024Times[] PROGMEM = { 58, 60, 58, 2569, 118, 60, 237, 60, 238, 60, }; const uint8_t code_na024Codes[] PROGMEM = { 0x69, 0x24, 0x10, 0x40, 0x03, 0x12, 0x48, 0x20, 0x80, 0x00, }; const struct IrCode code_na024Code PROGMEM = { freq_to_timerval(38462), 26, // # of pairs 3, // # of bits per index code_na024Times, code_na024Codes }; const uint16_t code_na025Times[] PROGMEM = { 84, 90, 84, 264, 84, 3470, 346, 350, 347, 350, }; const uint8_t code_na025Codes[] PROGMEM = { 0x64, 0x92, 0x49, 0x00, 0x00, 0x00, 0x00, 0x02, 0x49, 0x2A, 0x12, 0x49, 0x24, 0x00, 0x00, 0x00, 0x00, 0x09, 0x24, 0x90, }; const struct IrCode code_na025Code PROGMEM = { freq_to_timerval(38462), 52, // # of pairs 3, // # of bits per index code_na025Times, code_na025Codes }; const uint16_t code_na026Times[] PROGMEM = { 49, 49, 49, 50, 49, 410, 49, 510, 49, 12582, }; const uint8_t code_na026Codes[] PROGMEM = { 0x09, 0x94, 0x53, 0x65, 0x32, 0x99, 0x85, 0x32, 0x8A, 0x6C, 0xA6, 0x53, 0x20, }; const struct IrCode code_na026Code PROGMEM = { freq_to_timerval(39216), 34, // # of pairs 3, // # of bits per index code_na026Times, code_na026Codes }; /* Duplicate timing table, same as na001 ! const uint16_t code_na027Times[] PROGMEM = { 50, 100, 50, 200, 50, 800, 400, 400, }; */ const uint8_t code_na027Codes[] PROGMEM = { 0xC5, 0x41, 0x11, 0x10, 0x14, 0x44, 0x6C, 0x54, 0x11, 0x11, 0x01, 0x44, 0x44, }; const struct IrCode code_na027Code PROGMEM = { freq_to_timerval(57143), 52, // # of pairs 2, // # of bits per index code_na001Times, code_na027Codes }; const uint16_t code_na028Times[] PROGMEM = { 118, 121, 118, 271, 118, 4750, 258, 271, }; const uint8_t code_na028Codes[] PROGMEM = { 0xC4, 0x45, 0x14, 0x04, 0x6C, 0x44, 0x51, 0x40, 0x44, }; const struct IrCode code_na028Code PROGMEM = { freq_to_timerval(38610), 36, // # of pairs 2, // # of bits per index code_na028Times, code_na028Codes }; const uint16_t code_na029Times[] PROGMEM = { 88, 90, 88, 91, 88, 181, 177, 91, 177, 8976, }; const uint8_t code_na029Codes[] PROGMEM = { 0x0C, 0x92, 0x53, 0x46, 0x16, 0x49, 0x29, 0xA2, 0xC0, }; const struct IrCode code_na029Code PROGMEM = { freq_to_timerval(35842), 22, // # of pairs 3, // # of bits per index code_na029Times, code_na029Codes }; /* Duplicate timing table, same as na009 ! const uint16_t code_na030Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; */ const uint8_t code_na030Codes[] PROGMEM = { 0x80, 0x00, 0x41, 0x04, 0x12, 0x08, 0x20, 0x00, 0x00, 0x04, 0x92, 0x49, 0x2A, 0xBA, 0x00, }; const struct IrCode code_na030Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na009Times, code_na030Codes }; const uint16_t code_na031Times[] PROGMEM = { 88, 89, 88, 90, 88, 179, 88, 8977, 177, 90, }; const uint8_t code_na031Codes[] PROGMEM = { 0x06, 0x12, 0x49, 0x46, 0x32, 0x61, 0x24, 0x94, 0x60, }; const struct IrCode code_na031Code PROGMEM = { freq_to_timerval(35842), 24, // # of pairs 3, // # of bits per index code_na031Times, code_na031Codes }; /* Duplicate timing table, same as na009 ! const uint16_t code_na032Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; */ const uint8_t code_na032Codes[] PROGMEM = { 0x80, 0x00, 0x41, 0x04, 0x12, 0x08, 0x20, 0x80, 0x00, 0x04, 0x12, 0x49, 0x2A, 0xBA, 0x00, }; const struct IrCode code_na032Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na009Times, code_na032Codes }; const uint16_t code_na033Times[] PROGMEM = { 40, 43, 40, 122, 40, 5297, 334, 156, 336, 155, }; const uint8_t code_na033Codes[] PROGMEM = { 0x60, 0x10, 0x40, 0x04, 0x80, 0x09, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x20, 0x82, 0x00, 0x20, 0x00, 0x00, 0x0A, 0x00, 0x41, 0x00, 0x12, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x82, 0x08, 0x00, 0x80, 0x00, 0x00, 0x00, }; const struct IrCode code_na033Code PROGMEM = { freq_to_timerval(38462), 100, // # of pairs 3, // # of bits per index code_na033Times, code_na033Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_na034Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_na034Codes[] PROGMEM = { 0xA0, 0x00, 0x41, 0x04, 0x92, 0x08, 0x24, 0x92, 0x48, 0x00, 0x00, 0x01, 0x2B, 0x3D, 0x00, }; const struct IrCode code_na034Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_na034Codes }; const uint16_t code_na035Times[] PROGMEM = { 96, 93, 97, 93, 97, 287, 97, 3431, }; const uint8_t code_na035Codes[] PROGMEM = { 0x16, 0x66, 0x5D, 0x59, 0x99, 0x50, }; const struct IrCode code_na035Code PROGMEM = { freq_to_timerval(41667), 22, // # of pairs 2, // # of bits per index code_na035Times, code_na035Codes }; const uint16_t code_na036Times[] PROGMEM = { 82, 581, 84, 250, 84, 580, 85, 0, }; const uint8_t code_na036Codes[] PROGMEM = { 0x15, 0x9A, 0x9C, }; const struct IrCode code_na036Code PROGMEM = { freq_to_timerval(37037), 11, // # of pairs 2, // # of bits per index code_na036Times, code_na036Codes }; const uint16_t code_na037Times[] PROGMEM = { 39, 263, 164, 163, 514, 164, }; const uint8_t code_na037Codes[] PROGMEM = { 0x80, 0x45, 0x00, }; const struct IrCode code_na037Code PROGMEM = { freq_to_timerval(41667), 11, // # of pairs 2, // # of bits per index code_na037Times, code_na037Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na038Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na038Codes[] PROGMEM = { 0xA4, 0x10, 0x40, 0x00, 0x82, 0x09, 0x20, 0x80, 0x40, 0x04, 0x12, 0x09, 0x2A, 0x38, 0x40, }; const struct IrCode code_na038Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na038Codes }; const uint16_t code_na039Times[] PROGMEM = { 113, 101, 688, 2707, }; const uint8_t code_na039Codes[] PROGMEM = { 0x11, }; const struct IrCode code_na039Code PROGMEM = { freq_to_timerval(40000), 4, // # of pairs 2, // # of bits per index code_na039Times, code_na039Codes }; const uint16_t code_na040Times[] PROGMEM = { 113, 101, 113, 201, 113, 2707, }; const uint8_t code_na040Codes[] PROGMEM = { 0x06, 0x04, }; const struct IrCode code_na040Code PROGMEM = { freq_to_timerval(40000), 8, // # of pairs 2, // # of bits per index code_na040Times, code_na040Codes }; const uint16_t code_na041Times[] PROGMEM = { 58, 62, 58, 2746, 117, 62, 242, 62, }; const uint8_t code_na041Codes[] PROGMEM = { 0xE2, 0x20, 0x80, 0x78, 0x88, 0x20, 0x00, }; const struct IrCode code_na041Code PROGMEM = { freq_to_timerval(76923), 26, // # of pairs 2, // # of bits per index code_na041Times, code_na041Codes }; const uint16_t code_na042Times[] PROGMEM = { 54, 65, 54, 170, 54, 4099, 54, 8668, 899, 226, 899, 421, }; const uint8_t code_na042Codes[] PROGMEM = { 0xA4, 0x80, 0x00, 0x20, 0x82, 0x49, 0x00, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2A, 0x38, 0x40, }; const struct IrCode code_na042Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na042Times, code_na042Codes }; const uint16_t code_na043Times[] PROGMEM = { 43, 120, 43, 121, 43, 3491, 131, 45, }; const uint8_t code_na043Codes[] PROGMEM = { 0x15, 0x75, 0x56, 0x55, 0x75, 0x54, }; const struct IrCode code_na043Code PROGMEM = { freq_to_timerval(40000), 24, // # of pairs 2, // # of bits per index code_na043Times, code_na043Codes }; const uint16_t code_na044Times[] PROGMEM = { 51, 51, 51, 160, 51, 4096, 51, 9513, 431, 436, 883, 219, }; const uint8_t code_na044Codes[] PROGMEM = { 0x84, 0x90, 0x00, 0x00, 0x02, 0x49, 0x20, 0x80, 0x00, 0x04, 0x12, 0x49, 0x2A, 0xBA, 0x40, }; const struct IrCode code_na044Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na044Times, code_na044Codes }; const uint16_t code_na045Times[] PROGMEM = { 58, 53, 58, 167, 58, 4494, 58, 9679, 455, 449, 456, 449, }; const uint8_t code_na045Codes[] PROGMEM = { 0x80, 0x90, 0x00, 0x00, 0x90, 0x00, 0x04, 0x92, 0x00, 0x00, 0x00, 0x49, 0x2A, 0x97, 0x48, }; const struct IrCode code_na045Code PROGMEM = { freq_to_timerval(38462), 40, // # of pairs 3, // # of bits per index code_na045Times, code_na045Codes }; const uint16_t code_na046Times[] PROGMEM = { 51, 277, 52, 53, 52, 105, 52, 277, 52, 2527, 52, 12809, 103, 54, }; const uint8_t code_na046Codes[] PROGMEM = { 0x0B, 0x12, 0x63, 0x44, 0x92, 0x6B, 0x44, 0x92, 0x50, }; const struct IrCode code_na046Code PROGMEM = { freq_to_timerval(29412), 23, // # of pairs 3, // # of bits per index code_na046Times, code_na046Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na047Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na047Codes[] PROGMEM = { 0xA0, 0x00, 0x40, 0x04, 0x92, 0x09, 0x24, 0x92, 0x09, 0x20, 0x00, 0x40, 0x0A, 0x38, 0x00, }; const struct IrCode code_na047Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na047Codes }; /* Duplicate timing table, same as na044 ! const uint16_t code_na048Times[] PROGMEM = { 51, 51, 51, 160, 51, 4096, 51, 9513, 431, 436, 883, 219, }; */ const uint8_t code_na048Codes[] PROGMEM = { 0x80, 0x00, 0x00, 0x04, 0x92, 0x49, 0x24, 0x92, 0x00, 0x00, 0x00, 0x49, 0x2A, 0xBA, 0x00, }; const struct IrCode code_na048Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na044Times, code_na048Codes }; const uint16_t code_na049Times[] PROGMEM = { 274, 854, 274, 1986, }; const uint8_t code_na049Codes[] PROGMEM = { 0x14, 0x11, 0x40, }; const struct IrCode code_na049Code PROGMEM = { freq_to_timerval(45455), 11, // # of pairs 2, // # of bits per index code_na049Times, code_na049Codes }; const uint16_t code_na050Times[] PROGMEM = { 80, 88, 80, 254, 80, 3750, 359, 331, }; const uint8_t code_na050Codes[] PROGMEM = { 0xC0, 0x00, 0x01, 0x55, 0x55, 0x52, 0xC0, 0x00, 0x01, 0x55, 0x55, 0x50, }; const struct IrCode code_na050Code PROGMEM = { freq_to_timerval(55556), 48, // # of pairs 2, // # of bits per index code_na050Times, code_na050Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na051Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na051Codes[] PROGMEM = { 0xA0, 0x10, 0x01, 0x24, 0x82, 0x48, 0x00, 0x02, 0x40, 0x04, 0x90, 0x09, 0x2A, 0x38, 0x00, }; const struct IrCode code_na051Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na051Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na052Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na052Codes[] PROGMEM = { 0xA4, 0x90, 0x48, 0x00, 0x02, 0x01, 0x20, 0x80, 0x40, 0x04, 0x12, 0x09, 0x2A, 0x38, 0x40, }; const struct IrCode code_na052Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na052Codes }; const uint16_t code_na053Times[] PROGMEM = { 51, 232, 51, 512, 51, 792, 51, 2883, }; const uint8_t code_na053Codes[] PROGMEM = { 0x22, 0x21, 0x40, 0x1C, 0x88, 0x85, 0x00, 0x40, }; const struct IrCode code_na053Code PROGMEM = { freq_to_timerval(55556), 30, // # of pairs 2, // # of bits per index code_na053Times, code_na053Codes }; /* Duplicate timing table, same as na053 ! const uint16_t code_na054Times[] PROGMEM = { 51, 232, 51, 512, 51, 792, 51, 2883, }; */ const uint8_t code_na054Codes[] PROGMEM = { 0x22, 0x20, 0x15, 0x72, 0x22, 0x01, 0x54, }; const struct IrCode code_na054Code PROGMEM = { freq_to_timerval(55556), 28, // # of pairs 2, // # of bits per index code_na053Times, code_na054Codes }; const uint16_t code_na055Times[] PROGMEM = { 3, 10, 3, 20, 3, 30, 3, 12778, }; const uint8_t code_na055Codes[] PROGMEM = { 0x81, 0x51, 0x14, 0xB8, 0x15, 0x11, 0x44, }; const struct IrCode code_na055Code PROGMEM = { 0, // Non-pulsed code 27, // # of pairs 2, // # of bits per index code_na055Times, code_na055Codes }; const uint16_t code_na056Times[] PROGMEM = { 55, 193, 57, 192, 57, 384, 58, 0, }; const uint8_t code_na056Codes[] PROGMEM = { 0x2A, 0x57, }; const struct IrCode code_na056Code PROGMEM = { freq_to_timerval(37175), 8, // # of pairs 2, // # of bits per index code_na056Times, code_na056Codes }; const uint16_t code_na057Times[] PROGMEM = { 45, 148, 46, 148, 46, 351, 46, 2781, }; const uint8_t code_na057Codes[] PROGMEM = { 0x2A, 0x5D, 0xA9, 0x60, }; const struct IrCode code_na057Code PROGMEM = { freq_to_timerval(40000), 14, // # of pairs 2, // # of bits per index code_na057Times, code_na057Codes }; const uint16_t code_na058Times[] PROGMEM = { 22, 101, 22, 219, 23, 101, 23, 219, 31, 218, }; const uint8_t code_na058Codes[] PROGMEM = { 0x8D, 0xA4, 0x08, 0x04, 0x04, 0x92, 0x4C, }; const struct IrCode code_na058Code PROGMEM = { freq_to_timerval(33333), 18, // # of pairs 3, // # of bits per index code_na058Times, code_na058Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na059Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na059Codes[] PROGMEM = { 0xA4, 0x12, 0x09, 0x00, 0x80, 0x40, 0x20, 0x10, 0x40, 0x04, 0x82, 0x09, 0x2A, 0x38, 0x40, }; const struct IrCode code_na059Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na059Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na060Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na060Codes[] PROGMEM = { 0xA0, 0x00, 0x08, 0x04, 0x92, 0x41, 0x24, 0x00, 0x40, 0x00, 0x92, 0x09, 0x2A, 0x38, 0x00, }; const struct IrCode code_na060Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na060Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na061Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na061Codes[] PROGMEM = { 0xA0, 0x00, 0x08, 0x24, 0x92, 0x41, 0x04, 0x82, 0x00, 0x00, 0x10, 0x49, 0x2A, 0x38, 0x00, }; const struct IrCode code_na061Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na061Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na062Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na062Codes[] PROGMEM = { 0xA0, 0x02, 0x08, 0x04, 0x90, 0x41, 0x24, 0x82, 0x00, 0x00, 0x10, 0x49, 0x2A, 0x38, 0x00, }; const struct IrCode code_na062Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na062Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na063Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na063Codes[] PROGMEM = { 0xA4, 0x92, 0x49, 0x20, 0x00, 0x00, 0x04, 0x92, 0x48, 0x00, 0x00, 0x01, 0x2A, 0x38, 0x40, }; const struct IrCode code_na063Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na063Codes }; /* Duplicate timing table, same as na001 ! const uint16_t code_na064Times[] PROGMEM = { 50, 100, 50, 200, 50, 800, 400, 400, }; */ const uint8_t code_na064Codes[] PROGMEM = { 0xC0, 0x01, 0x51, 0x55, 0x54, 0x04, 0x2C, 0x00, 0x15, 0x15, 0x55, 0x40, 0x40, }; const struct IrCode code_na064Code PROGMEM = { freq_to_timerval(57143), 52, // # of pairs 2, // # of bits per index code_na001Times, code_na064Codes }; const uint16_t code_na065Times[] PROGMEM = { 48, 98, 48, 197, 98, 846, 395, 392, 1953, 392, }; const uint8_t code_na065Codes[] PROGMEM = { 0x84, 0x92, 0x01, 0x24, 0x12, 0x00, 0x04, 0x80, 0x08, 0x09, 0x92, 0x48, 0x04, 0x90, 0x48, 0x00, 0x12, 0x00, 0x20, 0x26, 0x49, 0x20, 0x12, 0x41, 0x20, 0x00, 0x48, 0x00, 0x80, 0x80, }; const struct IrCode code_na065Code PROGMEM = { freq_to_timerval(59172), 78, // # of pairs 3, // # of bits per index code_na065Times, code_na065Codes }; const uint16_t code_na066Times[] PROGMEM = { 38, 276, 165, 154, 415, 155, 742, 154, }; const uint8_t code_na066Codes[] PROGMEM = { 0xC0, 0x45, 0x02, 0x01, 0x14, 0x08, 0x04, 0x50, 0x00, }; const struct IrCode code_na066Code PROGMEM = { freq_to_timerval(38462), 33, // # of pairs 2, // # of bits per index code_na066Times, code_na066Codes }; /* Duplicate timing table, same as na044 ! const uint16_t code_na067Times[] PROGMEM = { 51, 51, 51, 160, 51, 4096, 51, 9513, 431, 436, 883, 219, }; */ const uint8_t code_na067Codes[] PROGMEM = { 0x80, 0x02, 0x49, 0x24, 0x90, 0x00, 0x00, 0x80, 0x00, 0x04, 0x12, 0x49, 0x2A, 0xBA, 0x00, }; const struct IrCode code_na067Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na044Times, code_na067Codes }; const uint16_t code_na068Times[] PROGMEM = { 43, 121, 43, 9437, 130, 45, 131, 45, }; const uint8_t code_na068Codes[] PROGMEM = { 0x8C, 0x30, 0x0D, 0xCC, 0x30, 0x0C, }; const struct IrCode code_na068Code PROGMEM = { freq_to_timerval(40000), 24, // # of pairs 2, // # of bits per index code_na068Times, code_na068Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na069Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na069Codes[] PROGMEM = { 0xA0, 0x00, 0x00, 0x04, 0x92, 0x49, 0x24, 0x82, 0x00, 0x00, 0x10, 0x49, 0x2A, 0x38, 0x00, }; const struct IrCode code_na069Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na069Codes }; const uint16_t code_na070Times[] PROGMEM = { 27, 76, 27, 182, 27, 183, 27, 3199, }; const uint8_t code_na070Codes[] PROGMEM = { 0x40, 0x02, 0x08, 0xA2, 0xE0, 0x00, 0x82, 0x28, 0x40, }; const struct IrCode code_na070Code PROGMEM = { freq_to_timerval(38462), 33, // # of pairs 2, // # of bits per index code_na070Times, code_na070Codes }; const uint16_t code_na071Times[] PROGMEM = { 37, 181, 37, 272, }; const uint8_t code_na071Codes[] PROGMEM = { 0x11, 0x40, }; const struct IrCode code_na071Code PROGMEM = { freq_to_timerval(55556), 8, // # of pairs 2, // # of bits per index code_na071Times, code_na071Codes }; /* Duplicate timing table, same as na042 ! const uint16_t code_na072Times[] PROGMEM = { 54, 65, 54, 170, 54, 4099, 54, 8668, 899, 226, 899, 421, }; */ const uint8_t code_na072Codes[] PROGMEM = { 0xA0, 0x90, 0x00, 0x00, 0x90, 0x00, 0x00, 0x10, 0x40, 0x04, 0x82, 0x09, 0x2A, 0x38, 0x00, }; const struct IrCode code_na072Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na042Times, code_na072Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na073Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na073Codes[] PROGMEM = { 0xA0, 0x82, 0x08, 0x24, 0x10, 0x41, 0x00, 0x00, 0x00, 0x24, 0x92, 0x49, 0x0A, 0x38, 0x00, }; const struct IrCode code_na073Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na073Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na074Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na074Codes[] PROGMEM = { 0xA4, 0x00, 0x41, 0x00, 0x92, 0x08, 0x20, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2A, 0x38, 0x40, }; const struct IrCode code_na074Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na074Codes }; const uint16_t code_na075Times[] PROGMEM = { 51, 98, 51, 194, 102, 931, 390, 390, 390, 391, }; const uint8_t code_na075Codes[] PROGMEM = { 0x60, 0x00, 0x01, 0x04, 0x10, 0x49, 0x24, 0x82, 0x08, 0x2A, 0x00, 0x00, 0x04, 0x10, 0x41, 0x24, 0x92, 0x08, 0x20, 0xA0, }; const struct IrCode code_na075Code PROGMEM = { freq_to_timerval(41667), 52, // # of pairs 3, // # of bits per index code_na075Times, code_na075Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na076Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na076Codes[] PROGMEM = { 0xA0, 0x92, 0x09, 0x04, 0x00, 0x40, 0x20, 0x10, 0x40, 0x04, 0x82, 0x09, 0x2A, 0x38, 0x00, }; const struct IrCode code_na076Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na076Codes }; /* Duplicate timing table, same as na031 ! const uint16_t code_na077Times[] PROGMEM = { 88, 89, 88, 90, 88, 179, 88, 8977, 177, 90, }; */ const uint8_t code_na077Codes[] PROGMEM = { 0x10, 0xA2, 0x62, 0x31, 0x98, 0x51, 0x31, 0x18, 0x00, }; const struct IrCode code_na077Code PROGMEM = { freq_to_timerval(35714), 22, // # of pairs 3, // # of bits per index code_na031Times, code_na077Codes }; const uint16_t code_na078Times[] PROGMEM = { 40, 275, 160, 154, 480, 155, }; const uint8_t code_na078Codes[] PROGMEM = { 0x80, 0x45, 0x04, 0x01, 0x14, 0x10, 0x04, 0x50, 0x40, }; const struct IrCode code_na078Code PROGMEM = { freq_to_timerval(38462), 34, // # of pairs 2, // # of bits per index code_na078Times, code_na078Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na079Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na079Codes[] PROGMEM = { 0xA0, 0x82, 0x08, 0x24, 0x10, 0x41, 0x04, 0x90, 0x08, 0x20, 0x02, 0x41, 0x0A, 0x38, 0x00, }; const struct IrCode code_na079Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na079Codes }; /* Duplicate timing table, same as na055 ! const uint16_t code_na080Times[] PROGMEM = { 3, 10, 3, 20, 3, 30, 3, 12778, }; */ const uint8_t code_na080Codes[] PROGMEM = { 0x81, 0x50, 0x40, 0xB8, 0x15, 0x04, 0x08, }; const struct IrCode code_na080Code PROGMEM = { 0, // Non-pulsed code 27, // # of pairs 2, // # of bits per index code_na055Times, code_na080Codes }; const uint16_t code_na081Times[] PROGMEM = { 48, 52, 48, 409, 48, 504, 48, 9978, }; const uint8_t code_na081Codes[] PROGMEM = { 0x18, 0x46, 0x18, 0x68, 0x47, 0x18, 0x46, 0x18, 0x68, 0x44, }; const struct IrCode code_na081Code PROGMEM = { freq_to_timerval(40000), 40, // # of pairs 2, // # of bits per index code_na081Times, code_na081Codes }; const uint16_t code_na082Times[] PROGMEM = { 88, 89, 88, 90, 88, 179, 88, 8888, 177, 90, 177, 179, }; const uint8_t code_na082Codes[] PROGMEM = { 0x0A, 0x12, 0x49, 0x2A, 0xB2, 0xA1, 0x24, 0x92, 0xA8, }; const struct IrCode code_na082Code PROGMEM = { freq_to_timerval(35714), 24, // # of pairs 3, // # of bits per index code_na082Times, code_na082Codes }; /* Duplicate timing table, same as na031 ! const uint16_t code_na083Times[] PROGMEM = { 88, 89, 88, 90, 88, 179, 88, 8977, 177, 90, }; */ const uint8_t code_na083Codes[] PROGMEM = { 0x10, 0x92, 0x49, 0x46, 0x33, 0x09, 0x24, 0x94, 0x60, }; const struct IrCode code_na083Code PROGMEM = { freq_to_timerval(35714), 24, // # of pairs 3, // # of bits per index code_na031Times, code_na083Codes }; const uint16_t code_na084Times[] PROGMEM = { 41, 43, 41, 128, 41, 7476, 336, 171, 338, 169, }; const uint8_t code_na084Codes[] PROGMEM = { 0x60, 0x80, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x40, 0x20, 0x00, 0x00, 0x04, 0x12, 0x48, 0x04, 0x12, 0x08, 0x2A, 0x02, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x01, 0x00, 0x80, 0x00, 0x00, 0x10, 0x49, 0x20, 0x10, 0x48, 0x20, 0x80, }; const struct IrCode code_na084Code PROGMEM = { freq_to_timerval(37037), 100, // # of pairs 3, // # of bits per index code_na084Times, code_na084Codes }; const uint16_t code_na085Times[] PROGMEM = { 55, 60, 55, 165, 55, 2284, 445, 437, 448, 436, }; const uint8_t code_na085Codes[] PROGMEM = { 0x64, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x80, 0xA1, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x20, 0x10, }; const struct IrCode code_na085Code PROGMEM = { freq_to_timerval(38462), 44, // # of pairs 3, // # of bits per index code_na085Times, code_na085Codes }; const uint16_t code_na086Times[] PROGMEM = { 42, 46, 42, 126, 42, 6989, 347, 176, 347, 177, }; const uint8_t code_na086Codes[] PROGMEM = { 0x60, 0x82, 0x08, 0x20, 0x82, 0x41, 0x04, 0x92, 0x00, 0x20, 0x80, 0x40, 0x00, 0x90, 0x40, 0x04, 0x00, 0x41, 0x2A, 0x02, 0x08, 0x20, 0x82, 0x09, 0x04, 0x12, 0x48, 0x00, 0x82, 0x01, 0x00, 0x02, 0x41, 0x00, 0x10, 0x01, 0x04, 0x80, }; const struct IrCode code_na086Code PROGMEM = { freq_to_timerval(37175), 100, // # of pairs 3, // # of bits per index code_na086Times, code_na086Codes }; const uint16_t code_na087Times[] PROGMEM = { 56, 69, 56, 174, 56, 4165, 56, 9585, 880, 222, 880, 435, }; const uint8_t code_na087Codes[] PROGMEM = { 0xA0, 0x02, 0x40, 0x04, 0x90, 0x09, 0x20, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2A, 0x38, 0x00, }; const struct IrCode code_na087Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na087Times, code_na087Codes }; /* Duplicate timing table, same as na009 ! const uint16_t code_na088Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; */ const uint8_t code_na088Codes[] PROGMEM = { 0x80, 0x00, 0x40, 0x04, 0x12, 0x08, 0x04, 0x92, 0x40, 0x00, 0x00, 0x09, 0x2A, 0xBA, 0x00, }; const struct IrCode code_na088Code PROGMEM = { freq_to_timerval(38610), 38, // # of pairs 3, // # of bits per index code_na009Times, code_na088Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_na089Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_na089Codes[] PROGMEM = { 0xA0, 0x02, 0x00, 0x04, 0x90, 0x49, 0x20, 0x80, 0x40, 0x04, 0x12, 0x09, 0x2B, 0x3D, 0x00, }; const struct IrCode code_na089Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_na089Codes }; const uint16_t code_na090Times[] PROGMEM = { 88, 90, 88, 91, 88, 181, 88, 8976, 177, 91, 177, 181, }; const uint8_t code_na090Codes[] PROGMEM = { 0x10, 0xAB, 0x11, 0x8C, 0xC2, 0xAC, 0x46, 0x00, }; const struct IrCode code_na090Code PROGMEM = { freq_to_timerval(35714), 20, // # of pairs 3, // # of bits per index code_na090Times, code_na090Codes }; const uint16_t code_na091Times[] PROGMEM = { 48, 100, 48, 200, 48, 1050, 400, 400, }; const uint8_t code_na091Codes[] PROGMEM = { 0xD5, 0x41, 0x51, 0x40, 0x14, 0x04, 0x2D, 0x54, 0x15, 0x14, 0x01, 0x40, 0x41, }; const struct IrCode code_na091Code PROGMEM = { freq_to_timerval(58824), 52, // # of pairs 2, // # of bits per index code_na091Times, code_na091Codes }; const uint16_t code_na092Times[] PROGMEM = { 54, 56, 54, 170, 54, 4927, 451, 447, }; const uint8_t code_na092Codes[] PROGMEM = { 0xD1, 0x00, 0x11, 0x00, 0x04, 0x00, 0x11, 0x55, 0x6D, 0x10, 0x01, 0x10, 0x00, 0x40, 0x01, 0x15, 0x55, }; const struct IrCode code_na092Code PROGMEM = { freq_to_timerval(38462), 68, // # of pairs 2, // # of bits per index code_na092Times, code_na092Codes }; const uint16_t code_na093Times[] PROGMEM = { 55, 57, 55, 167, 55, 4400, 895, 448, 897, 447, }; const uint8_t code_na093Codes[] PROGMEM = { 0x60, 0x90, 0x00, 0x20, 0x80, 0x00, 0x04, 0x02, 0x01, 0x00, 0x90, 0x48, 0x2A, 0x02, 0x40, 0x00, 0x82, 0x00, 0x00, 0x10, 0x08, 0x04, 0x02, 0x41, 0x20, 0x80, }; const struct IrCode code_na093Code PROGMEM = { freq_to_timerval(38462), 68, // # of pairs 3, // # of bits per index code_na093Times, code_na093Codes }; /* Duplicate timing table, same as na005 ! const uint16_t code_na094Times[] PROGMEM = { 88, 90, 88, 91, 88, 181, 88, 8976, 177, 91, }; */ const uint8_t code_na094Codes[] PROGMEM = { 0x10, 0x94, 0x62, 0x31, 0x98, 0x4A, 0x31, 0x18, 0x00, }; const struct IrCode code_na094Code PROGMEM = { freq_to_timerval(35714), 22, // # of pairs 3, // # of bits per index code_na005Times, code_na094Codes }; const uint16_t code_na095Times[] PROGMEM = { 56, 58, 56, 174, 56, 4549, 56, 9448, 440, 446, }; const uint8_t code_na095Codes[] PROGMEM = { 0x80, 0x02, 0x00, 0x00, 0x02, 0x00, 0x04, 0x82, 0x00, 0x00, 0x10, 0x49, 0x2A, 0x17, 0x08, }; const struct IrCode code_na095Code PROGMEM = { freq_to_timerval(38462), 40, // # of pairs 3, // # of bits per index code_na095Times, code_na095Codes }; /* Duplicate timing table, same as na009 ! const uint16_t code_na096Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; */ const uint8_t code_na096Codes[] PROGMEM = { 0x80, 0x80, 0x40, 0x04, 0x92, 0x49, 0x20, 0x92, 0x00, 0x04, 0x00, 0x49, 0x2A, 0xBA, 0x00, }; const struct IrCode code_na096Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na009Times, code_na096Codes }; /* Duplicate timing table, same as na009 ! const uint16_t code_na097Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; */ const uint8_t code_na097Codes[] PROGMEM = { 0x84, 0x80, 0x00, 0x24, 0x10, 0x41, 0x00, 0x80, 0x01, 0x24, 0x12, 0x48, 0x0A, 0xBA, 0x40, }; const struct IrCode code_na097Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na009Times, code_na097Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_na098Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_na098Codes[] PROGMEM = { 0xA0, 0x00, 0x00, 0x04, 0x92, 0x49, 0x24, 0x00, 0x41, 0x00, 0x92, 0x08, 0x2B, 0x3D, 0x00, }; const struct IrCode code_na098Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_na098Codes }; /* Duplicate timing table, same as na009 ! const uint16_t code_na099Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; */ const uint8_t code_na099Codes[] PROGMEM = { 0x80, 0x00, 0x00, 0x04, 0x12, 0x48, 0x24, 0x00, 0x00, 0x00, 0x92, 0x49, 0x2A, 0xBA, 0x00, }; const struct IrCode code_na099Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na009Times, code_na099Codes }; const uint16_t code_na100Times[] PROGMEM = { 43, 171, 45, 60, 45, 170, 54, 2301, }; const uint8_t code_na100Codes[] PROGMEM = { 0x29, 0x59, 0x65, 0x55, 0xEA, 0x56, 0x59, 0x55, 0x70, }; const struct IrCode code_na100Code PROGMEM = { freq_to_timerval(35842), 34, // # of pairs 2, // # of bits per index code_na100Times, code_na100Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_na101Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_na101Codes[] PROGMEM = { 0xA0, 0x00, 0x09, 0x04, 0x92, 0x40, 0x20, 0x00, 0x00, 0x04, 0x92, 0x49, 0x2B, 0x3D, 0x00, }; const struct IrCode code_na101Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_na101Codes }; const uint16_t code_na102Times[] PROGMEM = { 86, 87, 86, 258, 86, 3338, 346, 348, 348, 347, }; const uint8_t code_na102Codes[] PROGMEM = { 0x64, 0x02, 0x08, 0x00, 0x02, 0x09, 0x04, 0x12, 0x49, 0x0A, 0x10, 0x08, 0x20, 0x00, 0x08, 0x24, 0x10, 0x49, 0x24, 0x10, }; const struct IrCode code_na102Code PROGMEM = { freq_to_timerval(40000), 52, // # of pairs 3, // # of bits per index code_na102Times, code_na102Codes }; /* Duplicate timing table, same as na045 ! const uint16_t code_na103Times[] PROGMEM = { 58, 53, 58, 167, 58, 4494, 58, 9679, 455, 449, 456, 449, }; */ const uint8_t code_na103Codes[] PROGMEM = { 0x80, 0x02, 0x00, 0x00, 0x02, 0x00, 0x04, 0x92, 0x00, 0x00, 0x00, 0x49, 0x2A, 0x97, 0x48, }; const struct IrCode code_na103Code PROGMEM = { freq_to_timerval(38462), 40, // # of pairs 3, // # of bits per index code_na045Times, code_na103Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na104Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na104Codes[] PROGMEM = { 0xA4, 0x00, 0x49, 0x00, 0x92, 0x00, 0x20, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2A, 0x38, 0x40, }; const struct IrCode code_na104Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na104Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na105Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na105Codes[] PROGMEM = { 0xA4, 0x80, 0x00, 0x20, 0x12, 0x49, 0x04, 0x92, 0x49, 0x20, 0x00, 0x00, 0x0A, 0x38, 0x40, }; const struct IrCode code_na105Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na105Codes }; /* Duplicate timing table, same as na044 ! const uint16_t code_na106Times[] PROGMEM = { 51, 51, 51, 160, 51, 4096, 51, 9513, 431, 436, 883, 219, }; */ const uint8_t code_na106Codes[] PROGMEM = { 0x80, 0x02, 0x00, 0x04, 0x90, 0x49, 0x24, 0x92, 0x00, 0x00, 0x00, 0x49, 0x2A, 0xBA, 0x00, }; const struct IrCode code_na106Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na044Times, code_na106Codes }; /* Duplicate timing table, same as na045 ! const uint16_t code_na107Times[] PROGMEM = { 58, 53, 58, 167, 58, 4494, 58, 9679, 455, 449, 456, 449, }; */ const uint8_t code_na107Codes[] PROGMEM = { 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x92, 0x00, 0x00, 0x00, 0x49, 0x2A, 0x97, 0x48, }; const struct IrCode code_na107Code PROGMEM = { freq_to_timerval(38462), 40, // # of pairs 3, // # of bits per index code_na045Times, code_na107Codes }; /* Duplicate timing table, same as na045 ! const uint16_t code_na108Times[] PROGMEM = { 58, 53, 58, 167, 58, 4494, 58, 9679, 455, 449, 456, 449, }; */ const uint8_t code_na108Codes[] PROGMEM = { 0x80, 0x90, 0x40, 0x00, 0x90, 0x40, 0x04, 0x92, 0x00, 0x00, 0x00, 0x49, 0x2A, 0x97, 0x48, }; const struct IrCode code_na108Code PROGMEM = { freq_to_timerval(38462), 40, // # of pairs 3, // # of bits per index code_na045Times, code_na108Codes }; const uint16_t code_na109Times[] PROGMEM = { 58, 61, 58, 211, 58, 9582, 73, 4164, 883, 211, 1050, 494, }; const uint8_t code_na109Codes[] PROGMEM = { 0xA0, 0x00, 0x08, 0x24, 0x92, 0x41, 0x00, 0x82, 0x00, 0x04, 0x10, 0x49, 0x2E, 0x28, 0x00, }; const struct IrCode code_na109Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na109Times, code_na109Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na110Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na110Codes[] PROGMEM = { 0xA4, 0x80, 0x00, 0x20, 0x12, 0x49, 0x00, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2A, 0x38, 0x40, }; const struct IrCode code_na110Code PROGMEM = { freq_to_timerval(40161), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na110Codes }; /* Duplicate timing table, same as na044 ! const uint16_t code_na111Times[] PROGMEM = { 51, 51, 51, 160, 51, 4096, 51, 9513, 431, 436, 883, 219, }; */ const uint8_t code_na111Codes[] PROGMEM = { 0x84, 0x92, 0x49, 0x20, 0x00, 0x00, 0x04, 0x92, 0x00, 0x00, 0x00, 0x49, 0x2A, 0xBA, 0x40, }; const struct IrCode code_na111Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na044Times, code_na111Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_na112Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_na112Codes[] PROGMEM = { 0xA4, 0x00, 0x00, 0x00, 0x92, 0x49, 0x24, 0x00, 0x00, 0x00, 0x92, 0x49, 0x2B, 0x3D, 0x00, }; const struct IrCode code_na112Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_na112Codes }; const uint16_t code_na113Times[] PROGMEM = { 56, 54, 56, 166, 56, 3945, 896, 442, 896, 443, }; const uint8_t code_na113Codes[] PROGMEM = { 0x60, 0x00, 0x00, 0x20, 0x02, 0x09, 0x04, 0x02, 0x01, 0x00, 0x90, 0x48, 0x2A, 0x00, 0x00, 0x00, 0x80, 0x08, 0x24, 0x10, 0x08, 0x04, 0x02, 0x41, 0x20, 0x80, }; const struct IrCode code_na113Code PROGMEM = { freq_to_timerval(40000), 68, // # of pairs 3, // # of bits per index code_na113Times, code_na113Codes }; const uint16_t code_na114Times[] PROGMEM = { 44, 50, 44, 147, 44, 447, 44, 2236, 791, 398, 793, 397, }; const uint8_t code_na114Codes[] PROGMEM = { 0x84, 0x10, 0x40, 0x08, 0x82, 0x08, 0x01, 0xD2, 0x08, 0x20, 0x04, 0x41, 0x04, 0x00, 0x40, }; const struct IrCode code_na114Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na114Times, code_na114Codes }; #ifndef EU_CODES const uint16_t code_na115Times[] PROGMEM = { 81, 86, 81, 296, 81, 3349, 328, 331, 329, 331, }; const uint8_t code_na115Codes[] PROGMEM = { 0x60, 0x82, 0x00, 0x20, 0x80, 0x41, 0x04, 0x90, 0x41, 0x2A, 0x02, 0x08, 0x00, 0x82, 0x01, 0x04, 0x12, 0x41, 0x04, 0x80, }; const struct IrCode code_na115Code PROGMEM = { freq_to_timerval(40000), 52, // # of pairs 3, // # of bits per index code_na115Times, code_na115Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na116Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na116Codes[] PROGMEM = { 0xA0, 0x00, 0x40, 0x04, 0x92, 0x09, 0x24, 0x00, 0x40, 0x00, 0x92, 0x09, 0x2A, 0x38, 0x00, }; const struct IrCode code_na116Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na116Codes }; const uint16_t code_na117Times[] PROGMEM = { 49, 54, 49, 158, 49, 420, 49, 2446, 819, 420, 821, 419, }; const uint8_t code_na117Codes[] PROGMEM = { 0x84, 0x00, 0x00, 0x08, 0x12, 0x40, 0x01, 0xD2, 0x00, 0x00, 0x04, 0x09, 0x20, 0x00, 0x40, }; const struct IrCode code_na117Code PROGMEM = { freq_to_timerval(41667), 38, // # of pairs 3, // # of bits per index code_na117Times, code_na117Codes }; /* Duplicate timing table, same as na044 ! const uint16_t code_na118Times[] PROGMEM = { 51, 51, 51, 160, 51, 4096, 51, 9513, 431, 436, 883, 219, }; */ const uint8_t code_na118Codes[] PROGMEM = { 0x84, 0x90, 0x49, 0x20, 0x02, 0x00, 0x04, 0x92, 0x00, 0x00, 0x00, 0x49, 0x2A, 0xBA, 0x40, }; const struct IrCode code_na118Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na044Times, code_na118Codes }; const uint16_t code_na119Times[] PROGMEM = { 55, 63, 55, 171, 55, 4094, 55, 9508, 881, 219, 881, 438, }; const uint8_t code_na119Codes[] PROGMEM = { 0xA0, 0x10, 0x00, 0x04, 0x82, 0x49, 0x20, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2A, 0x38, 0x00, }; const struct IrCode code_na119Code PROGMEM = { freq_to_timerval(55556), 38, // # of pairs 3, // # of bits per index code_na119Times, code_na119Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na120Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na120Codes[] PROGMEM = { 0xA0, 0x12, 0x00, 0x04, 0x80, 0x49, 0x24, 0x92, 0x40, 0x00, 0x00, 0x09, 0x2A, 0x38, 0x00, }; const struct IrCode code_na120Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na120Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na121Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na121Codes[] PROGMEM = { 0xA0, 0x00, 0x40, 0x04, 0x92, 0x09, 0x20, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2A, 0x38, 0x00, }; const struct IrCode code_na121Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na121Codes }; const uint16_t code_na122Times[] PROGMEM = { 80, 95, 80, 249, 80, 3867, 81, 0, 329, 322, }; const uint8_t code_na122Codes[] PROGMEM = { 0x80, 0x00, 0x00, 0x00, 0x12, 0x49, 0x24, 0x90, 0x0A, 0x80, 0x00, 0x00, 0x00, 0x12, 0x49, 0x24, 0x90, 0x0B, }; const struct IrCode code_na122Code PROGMEM = { freq_to_timerval(52632), 48, // # of pairs 3, // # of bits per index code_na122Times, code_na122Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na123Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na123Codes[] PROGMEM = { 0xA0, 0x02, 0x48, 0x04, 0x90, 0x01, 0x20, 0x12, 0x40, 0x04, 0x80, 0x09, 0x2A, 0x38, 0x00, }; const struct IrCode code_na123Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na123Codes }; const uint16_t code_na124Times[] PROGMEM = { 54, 56, 54, 151, 54, 4092, 54, 8677, 900, 421, 901, 226, }; const uint8_t code_na124Codes[] PROGMEM = { 0x80, 0x00, 0x48, 0x04, 0x92, 0x01, 0x20, 0x00, 0x00, 0x04, 0x92, 0x49, 0x2A, 0xBA, 0x00, }; const struct IrCode code_na124Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na124Times, code_na124Codes }; /* Duplicate timing table, same as na119 ! const uint16_t code_na125Times[] PROGMEM = { 55, 63, 55, 171, 55, 4094, 55, 9508, 881, 219, 881, 438, }; */ const uint8_t code_na125Codes[] PROGMEM = { 0xA0, 0x02, 0x48, 0x04, 0x90, 0x01, 0x20, 0x80, 0x40, 0x04, 0x12, 0x09, 0x2A, 0x38, 0x00, }; const struct IrCode code_na125Code PROGMEM = { freq_to_timerval(55556), 38, // # of pairs 3, // # of bits per index code_na119Times, code_na125Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na126Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na126Codes[] PROGMEM = { 0xA4, 0x10, 0x00, 0x20, 0x82, 0x49, 0x00, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2A, 0x38, 0x40, }; const struct IrCode code_na126Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na126Codes }; const uint16_t code_na127Times[] PROGMEM = { 114, 100, 115, 100, 115, 200, 115, 2706, }; const uint8_t code_na127Codes[] PROGMEM = { 0x1B, 0x59, }; const struct IrCode code_na127Code PROGMEM = { freq_to_timerval(25641), 8, // # of pairs 2, // # of bits per index code_na127Times, code_na127Codes }; /* Duplicate timing table, same as na102 ! const uint16_t code_na128Times[] PROGMEM = { 86, 87, 86, 258, 86, 3338, 346, 348, 348, 347, }; */ const uint8_t code_na128Codes[] PROGMEM = { 0x60, 0x02, 0x08, 0x00, 0x02, 0x49, 0x04, 0x12, 0x49, 0x0A, 0x00, 0x08, 0x20, 0x00, 0x09, 0x24, 0x10, 0x49, 0x24, 0x00, }; const struct IrCode code_na128Code PROGMEM = { freq_to_timerval(40000), 52, // # of pairs 3, // # of bits per index code_na102Times, code_na128Codes }; /* Duplicate timing table, same as na017 ! const uint16_t code_na129Times[] PROGMEM = { 56, 57, 56, 175, 56, 4150, 56, 9499, 898, 227, 898, 449, }; */ const uint8_t code_na129Codes[] PROGMEM = { 0xA4, 0x92, 0x49, 0x20, 0x00, 0x00, 0x00, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2A, 0x38, 0x40, }; const struct IrCode code_na129Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na017Times, code_na129Codes }; const uint16_t code_na130Times[] PROGMEM = { 88, 90, 88, 258, 88, 2247, 358, 349, 358, 350, }; const uint8_t code_na130Codes[] PROGMEM = { 0x64, 0x00, 0x08, 0x24, 0x82, 0x09, 0x24, 0x10, 0x01, 0x0A, 0x10, 0x00, 0x20, 0x92, 0x08, 0x24, 0x90, 0x40, 0x04, 0x10, }; const struct IrCode code_na130Code PROGMEM = { freq_to_timerval(37037), 52, // # of pairs 3, // # of bits per index code_na130Times, code_na130Codes }; /* Duplicate timing table, same as na042 ! const uint16_t code_na131Times[] PROGMEM = { 54, 65, 54, 170, 54, 4099, 54, 8668, 899, 226, 899, 421, }; */ const uint8_t code_na131Codes[] PROGMEM = { 0xA0, 0x10, 0x40, 0x04, 0x82, 0x09, 0x24, 0x82, 0x40, 0x00, 0x10, 0x09, 0x2A, 0x38, 0x00, }; const struct IrCode code_na131Code PROGMEM = { freq_to_timerval(40000), 38, // # of pairs 3, // # of bits per index code_na042Times, code_na131Codes }; const uint16_t code_na132Times[] PROGMEM = { 28, 106, 28, 238, 28, 370, 28, 1173, }; const uint8_t code_na132Codes[] PROGMEM = { 0x22, 0x20, 0x00, 0x17, 0x22, 0x20, 0x00, 0x14, }; const struct IrCode code_na132Code PROGMEM = { freq_to_timerval(83333), 32, // # of pairs 2, // # of bits per index code_na132Times, code_na132Codes }; const uint16_t code_na133Times[] PROGMEM = { 13, 741, 15, 489, 15, 740, 17, 4641, 18, 0, }; const uint8_t code_na133Codes[] PROGMEM = { 0x09, 0x24, 0x49, 0x48, 0xB4, 0x92, 0x44, 0x94, 0x8C, }; const struct IrCode code_na133Code PROGMEM = { freq_to_timerval(41667), 24, // # of pairs 3, // # of bits per index code_na133Times, code_na133Codes }; /* Duplicate timing table, same as na113 ! const uint16_t code_na134Times[] PROGMEM = { 56, 54, 56, 166, 56, 3945, 896, 442, 896, 443, }; */ const uint8_t code_na134Codes[] PROGMEM = { 0x60, 0x90, 0x00, 0x24, 0x10, 0x00, 0x04, 0x92, 0x00, 0x00, 0x00, 0x49, 0x2A, 0x02, 0x40, 0x00, 0x90, 0x40, 0x00, 0x12, 0x48, 0x00, 0x00, 0x01, 0x24, 0x80, }; const struct IrCode code_na134Code PROGMEM = { freq_to_timerval(40000), 68, // # of pairs 3, // # of bits per index code_na113Times, code_na134Codes }; const uint16_t code_na135Times[] PROGMEM = { 53, 59, 53, 171, 53, 2301, 892, 450, 895, 448, }; const uint8_t code_na135Codes[] PROGMEM = { 0x60, 0x12, 0x49, 0x00, 0x00, 0x09, 0x00, 0x00, 0x49, 0x24, 0x80, 0x00, 0x00, 0x12, 0x49, 0x24, 0xA8, 0x01, 0x24, 0x90, 0x00, 0x00, 0x90, 0x00, 0x04, 0x92, 0x48, 0x00, 0x00, 0x01, 0x24, 0x92, 0x48, }; const struct IrCode code_na135Code PROGMEM = { freq_to_timerval(38462), 88, // # of pairs 3, // # of bits per index code_na135Times, code_na135Codes }; const uint16_t code_na136Times[] PROGMEM = { 53, 59, 53, 171, 53, 2301, 55, 0, 892, 450, 895, 448, }; const uint8_t code_na136Codes[] PROGMEM = { 0x84, 0x82, 0x49, 0x00, 0x00, 0x00, 0x20, 0x00, 0x49, 0x24, 0x80, 0x00, 0x00, 0x12, 0x49, 0x24, 0xAA, 0x48, 0x24, 0x90, 0x00, 0x00, 0x02, 0x00, 0x04, 0x92, 0x48, 0x00, 0x00, 0x01, 0x24, 0x92, 0x4B, }; const struct IrCode code_na136Code PROGMEM = { freq_to_timerval(38610), 88, // # of pairs 3, // # of bits per index code_na136Times, code_na136Codes }; #endif #endif #ifdef EU_CODES #ifndef NA_CODES const uint16_t code_na000Times[] PROGMEM = { 60, 60, 60, 2700, 120, 60, 240, 60, }; const uint8_t code_na000Codes[] PROGMEM = { 0xE2, 0x20, 0x80, 0x78, 0x88, 0x20, 0x10, }; const struct IrCode code_na000Code PROGMEM = { freq_to_timerval(38400), 26, // # of pairs 2, // # of bits per index code_na000Times, code_na000Codes }; const uint16_t code_na004Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; const uint8_t code_na004Codes[] PROGMEM = { 0xA0, 0x00, 0x01, 0x04, 0x92, 0x48, 0x20, 0x80, 0x40, 0x04, 0x12, 0x09, 0x2B, 0x3D, 0x00, }; const struct IrCode code_na004Code PROGMEM = { freq_to_timerval(38610), 38, // # of pairs 3, // # of bits per index code_na004Times, code_na004Codes }; const uint16_t code_na005Times[] PROGMEM = { 88, 90, 88, 91, 88, 181, 88, 8976, 177, 91, }; const uint8_t code_na005Codes[] PROGMEM = { 0x10, 0x92, 0x49, 0x46, 0x33, 0x09, 0x24, 0x94, 0x60, }; const struct IrCode code_na005Code PROGMEM = { freq_to_timerval(35714), 24, // # of pairs 3, // # of bits per index code_na005Times, code_na005Codes }; const uint16_t code_na009Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; const uint16_t code_na021Times[] PROGMEM = { 48, 52, 48, 160, 48, 400, 48, 2335, 799, 400, }; const uint8_t code_na021Codes[] PROGMEM = { 0x80, 0x10, 0x40, 0x08, 0x82, 0x08, 0x01, 0xC0, 0x08, 0x20, 0x04, 0x41, 0x04, 0x00, 0x00, }; const struct IrCode code_na021Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na021Times, code_na021Codes }; const uint16_t code_na022Times[] PROGMEM = { 53, 60, 53, 175, 53, 4463, 53, 9453, 892, 450, 895, 225, }; const uint8_t code_na022Codes[] PROGMEM = { 0x80, 0x02, 0x40, 0x00, 0x02, 0x40, 0x00, 0x00, 0x01, 0x24, 0x92, 0x48, 0x0A, 0xBA, 0x00, }; const struct IrCode code_na022Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na022Times, code_na022Codes }; const uint16_t code_na031Times[] PROGMEM = { 88, 89, 88, 90, 88, 179, 88, 8977, 177, 90, }; #endif const uint16_t code_eu000Times[] PROGMEM = { 43, 47, 43, 91, 43, 8324, 88, 47, 133, 133, 264, 90, 264, 91, }; const uint8_t code_eu000Codes[] PROGMEM = { 0xA4, 0x08, 0x00, 0x00, 0x00, 0x00, 0x64, 0x2C, 0x40, 0x80, 0x00, 0x00, 0x00, 0x06, 0x41, }; const struct IrCode code_eu000Code PROGMEM = { freq_to_timerval(35714), 40, // # of pairs 3, // # of bits per index code_eu000Times, code_eu000Codes }; const uint16_t code_eu001Times[] PROGMEM = { 47, 265, 51, 54, 51, 108, 51, 263, 51, 2053, 51, 11647, 100, 109, }; const uint8_t code_eu001Codes[] PROGMEM = { 0x04, 0x92, 0x49, 0x26, 0x35, 0x89, 0x24, 0x9A, 0xD6, 0x24, 0x92, 0x48, }; const struct IrCode code_eu001Code PROGMEM = { freq_to_timerval(30303), 31, // # of pairs 3, // # of bits per index code_eu001Times, code_eu001Codes }; const uint16_t code_eu002Times[] PROGMEM = { 43, 206, 46, 204, 46, 456, 46, 3488, }; const uint8_t code_eu002Codes[] PROGMEM = { 0x1A, 0x56, 0xA6, 0xD6, 0x95, 0xA9, 0x90, }; const struct IrCode code_eu002Code PROGMEM = { freq_to_timerval(33333), 26, // # of pairs 2, // # of bits per index code_eu002Times, code_eu002Codes }; /* Duplicate timing table, same as na000 ! const uint16_t code_eu003Times[] PROGMEM = { 58, 60, 58, 2687, 118, 60, 237, 60, 238, 60, }; */ /* const uint8_t code_eu003Codes[] PROGMEM = { 0x68, 0x20, 0x80, 0x40, 0x03, 0x10, 0x41, 0x00, 0x80, 0x00, }; const struct IrCode code_eu003Code PROGMEM = { freq_to_timerval(38462), 26, // # of pairs 3, // # of bits per index code_na000Times, code_eu003Codes };// Duplicate IR Code - same as na000 */ const uint16_t code_eu004Times[] PROGMEM = { 44, 45, 44, 131, 44, 7462, 346, 176, 346, 178, }; const uint8_t code_eu004Codes[] PROGMEM = { 0x60, 0x80, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x04, 0x12, 0x48, 0x04, 0x12, 0x48, 0x2A, 0x02, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x49, 0x20, 0x10, 0x49, 0x20, 0x80, }; const struct IrCode code_eu004Code PROGMEM = { freq_to_timerval(37037), 100, // # of pairs 3, // # of bits per index code_eu004Times, code_eu004Codes };// Duplicate IR Code? Similar to NA002 const uint16_t code_eu005Times[] PROGMEM = { 24, 190, 25, 80, 25, 190, 25, 4199, 25, 4799, }; const uint8_t code_eu005Codes[] PROGMEM = { 0x04, 0x92, 0x52, 0x28, 0x92, 0x8C, 0x44, 0x92, 0x89, 0x45, 0x24, 0x53, 0x44, 0x92, 0x52, 0x28, 0x92, 0x8C, 0x44, 0x92, 0x89, 0x45, 0x24, 0x51, }; const struct IrCode code_eu005Code PROGMEM = { freq_to_timerval(38610), 64, // # of pairs 3, // # of bits per index code_eu005Times, code_eu005Codes }; const uint16_t code_eu006Times[] PROGMEM = { 53, 63, 53, 172, 53, 4472, 54, 0, 455, 468, }; const uint8_t code_eu006Codes[] PROGMEM = { 0x84, 0x90, 0x00, 0x04, 0x90, 0x00, 0x00, 0x80, 0x00, 0x04, 0x12, 0x49, 0x2A, 0x12, 0x40, 0x00, 0x12, 0x40, 0x00, 0x02, 0x00, 0x00, 0x10, 0x49, 0x24, 0xB0, }; const struct IrCode code_eu006Code PROGMEM = { freq_to_timerval(38462), 68, // # of pairs 3, // # of bits per index code_eu006Times, code_eu006Codes }; const uint16_t code_eu007Times[] PROGMEM = { 50, 54, 50, 159, 50, 2307, 838, 422, }; const uint8_t code_eu007Codes[] PROGMEM = { 0xD4, 0x00, 0x15, 0x10, 0x25, 0x00, 0x05, 0x44, 0x09, 0x40, 0x01, 0x51, 0x01, }; const struct IrCode code_eu007Code PROGMEM = { freq_to_timerval(38462), 52, // # of pairs 2, // # of bits per index code_eu007Times, code_eu007Codes };// Duplicate IR Code? - Similar to NA010 /* Duplicate timing table, same as na004 ! const uint16_t code_eu008Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_eu008Codes[] PROGMEM = { 0xA0, 0x00, 0x41, 0x04, 0x92, 0x08, 0x24, 0x90, 0x40, 0x00, 0x02, 0x09, 0x2B, 0x3D, 0x00, }; const struct IrCode code_eu008Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_eu008Codes }; /* Duplicate timing table, same as na005 ! const uint16_t code_eu009Times[] PROGMEM = { 88, 90, 88, 91, 88, 181, 88, 8976, 177, 91, }; */ /* const uint8_t code_eu009Codes[] PROGMEM = { 0x10, 0x92, 0x49, 0x46, 0x33, 0x09, 0x24, 0x94, 0x60, }; const struct IrCode code_eu009Code PROGMEM = { freq_to_timerval(35714), 24, // # of pairs 3, // # of bits per index code_na005Times, code_eu009Codes };// Duplicate IR Code - same as na005 */ /* Duplicate timing table, same as na004 ! const uint16_t code_eu010Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ /* const uint8_t code_eu010Codes[] PROGMEM = { 0xA0, 0x00, 0x01, 0x04, 0x92, 0x48, 0x20, 0x80, 0x40, 0x04, 0x12, 0x09, 0x2B, 0x3D, 0x00, }; const struct IrCode code_eu010Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_eu010Codes };// Duplicate IR Code - same as NA004 */ /* Duplicate timing table, same as na009 ! const uint16_t code_eu011Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; */ const uint8_t code_eu011Codes[] PROGMEM = { 0x84, 0x00, 0x48, 0x04, 0x02, 0x01, 0x04, 0x80, 0x09, 0x00, 0x12, 0x40, 0x2A, 0xBA, 0x40, }; const struct IrCode code_eu011Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na009Times, code_eu011Codes }; const uint16_t code_eu012Times[] PROGMEM = { 46, 206, 46, 459, 46, 3447, }; const uint8_t code_eu012Codes[] PROGMEM = { 0x05, 0x01, 0x51, 0x81, 0x40, 0x54, 0x40, }; const struct IrCode code_eu012Code PROGMEM = { freq_to_timerval(33445), 26, // # of pairs 2, // # of bits per index code_eu012Times, code_eu012Codes }; const uint16_t code_eu013Times[] PROGMEM = { 53, 59, 53, 171, 53, 2302, 895, 449, }; const uint8_t code_eu013Codes[] PROGMEM = { 0xD4, 0x55, 0x00, 0x00, 0x40, 0x15, 0x54, 0x00, 0x01, 0x55, 0x56, 0xD4, 0x55, 0x00, 0x00, 0x40, 0x15, 0x54, 0x00, 0x01, 0x55, 0x55, }; const struct IrCode code_eu013Code PROGMEM = { freq_to_timerval(38462), 88, // # of pairs 2, // # of bits per index code_eu013Times, code_eu013Codes }; /* Duplicate timing table, same as na021 ! const uint16_t code_eu014Times[] PROGMEM = { 48, 52, 48, 160, 48, 400, 48, 2335, 799, 400, }; */ /* const uint8_t code_eu014Codes[] PROGMEM = { 0x80, 0x10, 0x40, 0x08, 0x82, 0x08, 0x01, 0xC0, 0x08, 0x20, 0x04, 0x41, 0x04, 0x00, 0x00, }; const struct IrCode code_eu014Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na021Times, code_eu014Codes };// Duplicate IR Code - same as NA021 */ const uint16_t code_eu015Times[] PROGMEM = { 53, 54, 53, 156, 53, 2542, 851, 425, 853, 424, }; const uint8_t code_eu015Codes[] PROGMEM = { 0x60, 0x82, 0x08, 0x24, 0x10, 0x41, 0x00, 0x12, 0x40, 0x04, 0x80, 0x09, 0x2A, 0x02, 0x08, 0x20, 0x90, 0x41, 0x04, 0x00, 0x49, 0x00, 0x12, 0x00, 0x24, 0xA8, 0x08, 0x20, 0x82, 0x41, 0x04, 0x10, 0x01, 0x24, 0x00, 0x48, 0x00, 0x92, 0xA0, 0x20, 0x82, 0x09, 0x04, 0x10, 0x40, 0x04, 0x90, 0x01, 0x20, 0x02, 0x48, }; const struct IrCode code_eu015Code PROGMEM = { freq_to_timerval(38462), 136, // # of pairs 3, // # of bits per index code_eu015Times, code_eu015Codes };// Duplicate IR Code? - Similar to NA018 const uint16_t code_eu016Times[] PROGMEM = { 28, 92, 28, 213, 28, 214, 28, 2771, }; const uint8_t code_eu016Codes[] PROGMEM = { 0x68, 0x08, 0x20, 0x00, 0xEA, 0x02, 0x08, 0x00, 0x10, }; const struct IrCode code_eu016Code PROGMEM = { freq_to_timerval(33333), 34, // # of pairs 2, // # of bits per index code_eu016Times, code_eu016Codes }; const uint16_t code_eu017Times[] PROGMEM = { 15, 844, 16, 557, 16, 844, 16, 5224, }; const uint8_t code_eu017Codes[] PROGMEM = { 0x1A, 0x9A, 0x9B, 0x9A, 0x9A, 0x99, }; const struct IrCode code_eu017Code PROGMEM = { freq_to_timerval(33333), 24, // # of pairs 2, // # of bits per index code_eu017Times, code_eu017Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_eu018Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_eu018Codes[] PROGMEM = { 0xA0, 0x02, 0x48, 0x04, 0x90, 0x01, 0x20, 0x12, 0x40, 0x04, 0x80, 0x09, 0x2B, 0x3D, 0x00, }; const struct IrCode code_eu018Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_eu018Codes }; const uint16_t code_eu019Times[] PROGMEM = { 50, 54, 50, 158, 50, 418, 50, 2443, 843, 418, }; const uint8_t code_eu019Codes[] PROGMEM = { 0x80, 0x80, 0x00, 0x08, 0x12, 0x40, 0x01, 0xC0, 0x40, 0x00, 0x04, 0x09, 0x20, 0x00, 0x00, }; const struct IrCode code_eu019Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_eu019Times, code_eu019Codes }; const uint16_t code_eu020Times[] PROGMEM = { 48, 301, 48, 651, 48, 1001, 48, 3001, }; const uint8_t code_eu020Codes[] PROGMEM = { 0x22, 0x20, 0x00, 0x01, 0xC8, 0x88, 0x00, 0x00, 0x40, }; const struct IrCode code_eu020Code PROGMEM = { freq_to_timerval(35714), 34, // # of pairs 2, // # of bits per index code_eu020Times, code_eu020Codes }; /* Duplicate timing table, same as na009 ! const uint16_t code_eu021Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; */ const uint8_t code_eu021Codes[] PROGMEM = { 0x84, 0x80, 0x00, 0x20, 0x82, 0x49, 0x00, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2A, 0xBA, 0x40, }; const struct IrCode code_eu021Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na009Times, code_eu021Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_eu022Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_eu022Codes[] PROGMEM = { 0xA4, 0x80, 0x41, 0x00, 0x12, 0x08, 0x24, 0x90, 0x40, 0x00, 0x02, 0x09, 0x2B, 0x3D, 0x00, }; const struct IrCode code_eu022Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_eu022Codes }; /* Duplicate timing table, same as na022 ! const uint16_t code_eu023Times[] PROGMEM = { 53, 60, 53, 175, 53, 4463, 53, 9453, 892, 450, 895, 225, }; */ /* const uint8_t code_eu023Codes[] PROGMEM = { 0x80, 0x02, 0x40, 0x00, 0x02, 0x40, 0x00, 0x00, 0x01, 0x24, 0x92, 0x48, 0x0A, 0xBA, 0x00, }; const struct IrCode code_eu023Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na022Times, code_eu023Codes };// Duplicate IR Code - Same as NA022 */ /* Duplicate timing table, same as na004 ! const uint16_t code_eu024Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_eu024Codes[] PROGMEM = { 0xA0, 0x02, 0x48, 0x04, 0x90, 0x01, 0x20, 0x00, 0x40, 0x04, 0x92, 0x09, 0x2B, 0x3D, 0x00, }; const struct IrCode code_eu024Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_eu024Codes }; const uint16_t code_eu025Times[] PROGMEM = { 49, 52, 49, 102, 49, 250, 49, 252, 49, 2377, 49, 12009, 100, 52, 100, 102, }; const uint8_t code_eu025Codes[] PROGMEM = { 0x47, 0x00, 0x23, 0x3C, 0x01, 0x59, 0xE0, 0x04, }; const struct IrCode code_eu025Code PROGMEM = { freq_to_timerval(31250), 21, // # of pairs 3, // # of bits per index code_eu025Times, code_eu025Codes }; const uint16_t code_eu026Times[] PROGMEM = { 14, 491, 14, 743, 14, 4926, }; const uint8_t code_eu026Codes[] PROGMEM = { 0x55, 0x40, 0x42, 0x55, 0x40, 0x41, }; const struct IrCode code_eu026Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu026Times, code_eu026Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_eu027Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_eu027Codes[] PROGMEM = { 0xA0, 0x82, 0x08, 0x24, 0x10, 0x41, 0x04, 0x10, 0x01, 0x20, 0x82, 0x48, 0x0B, 0x3D, 0x00, }; const struct IrCode code_eu027Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_eu027Codes }; const uint16_t code_eu028Times[] PROGMEM = { 47, 267, 50, 55, 50, 110, 50, 265, 50, 2055, 50, 12117, 100, 57, }; const uint8_t code_eu028Codes[] PROGMEM = { 0x04, 0x92, 0x49, 0x26, 0x34, 0x72, 0x24, 0x9A, 0xD1, 0xC8, 0x92, 0x48, }; const struct IrCode code_eu028Code PROGMEM = { freq_to_timerval(30303), 31, // # of pairs 3, // # of bits per index code_eu028Times, code_eu028Codes }; const uint16_t code_eu029Times[] PROGMEM = { 50, 50, 50, 99, 50, 251, 50, 252, 50, 1445, 50, 11014, 102, 49, 102, 98, }; const uint8_t code_eu029Codes[] PROGMEM = { 0x47, 0x00, 0x00, 0x00, 0x00, 0x04, 0x64, 0x62, 0x00, 0xE0, 0x00, 0x2B, 0x23, 0x10, 0x07, 0x00, 0x00, 0x80, }; const struct IrCode code_eu029Code PROGMEM = { freq_to_timerval(34483), 46, // # of pairs 3, // # of bits per index code_eu029Times, code_eu029Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_eu030Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_eu030Codes[] PROGMEM = { 0xA0, 0x10, 0x00, 0x04, 0x82, 0x49, 0x20, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2B, 0x3D, 0x00, }; const struct IrCode code_eu030Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_eu030Codes };// Duplicate IR Code? - Smilar to NA020 const uint16_t code_eu031Times[] PROGMEM = { 53, 53, 53, 160, 53, 1697, 838, 422, }; const uint8_t code_eu031Codes[] PROGMEM = { 0xD5, 0x50, 0x15, 0x11, 0x65, 0x54, 0x05, 0x44, 0x59, 0x55, 0x01, 0x51, 0x15, }; const struct IrCode code_eu031Code PROGMEM = { freq_to_timerval(38462), 52, // # of pairs 2, // # of bits per index code_eu031Times, code_eu031Codes }; const uint16_t code_eu032Times[] PROGMEM = { 49, 205, 49, 206, 49, 456, 49, 3690, }; const uint8_t code_eu032Codes[] PROGMEM = { 0x1A, 0x56, 0xA5, 0xD6, 0x95, 0xA9, 0x40, }; const struct IrCode code_eu032Code PROGMEM = { freq_to_timerval(33333), 26, // # of pairs 2, // # of bits per index code_eu032Times, code_eu032Codes }; const uint16_t code_eu033Times[] PROGMEM = { 48, 150, 50, 149, 50, 347, 50, 2936, }; const uint8_t code_eu033Codes[] PROGMEM = { 0x2A, 0x5D, 0xA9, 0x60, }; const struct IrCode code_eu033Code PROGMEM = { freq_to_timerval(38462), 14, // # of pairs 2, // # of bits per index code_eu033Times, code_eu033Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_eu034Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_eu034Codes[] PROGMEM = { 0xA0, 0x02, 0x40, 0x04, 0x90, 0x09, 0x20, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2B, 0x3D, 0x00, }; const struct IrCode code_eu034Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_eu034Codes }; /* Duplicate timing table, same as na005 ! const uint16_t code_eu035Times[] PROGMEM = { 88, 90, 88, 91, 88, 181, 88, 8976, 177, 91, }; */ /* const uint8_t code_eu035Codes[] PROGMEM = { 0x10, 0x92, 0x49, 0x46, 0x33, 0x09, 0x24, 0x94, 0x60, }; const struct IrCode code_eu035Code PROGMEM = { freq_to_timerval(35714), 24, // # of pairs 3, // # of bits per index code_na005Times, code_eu035Codes };// Duplicate IR Code - same as eu009! */ /* Duplicate timing table, same as na004 ! const uint16_t code_eu036Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_eu036Codes[] PROGMEM = { 0xA4, 0x00, 0x49, 0x00, 0x92, 0x00, 0x20, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2B, 0x3D, 0x00, }; const struct IrCode code_eu036Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_eu036Codes }; const uint16_t code_eu037Times[] PROGMEM = { 14, 491, 14, 743, 14, 5178, }; const uint8_t code_eu037Codes[] PROGMEM = { 0x45, 0x50, 0x02, 0x45, 0x50, 0x01, }; const struct IrCode code_eu037Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu037Times, code_eu037Codes }; const uint16_t code_eu038Times[] PROGMEM = { 3, 1002, 3, 1495, 3, 3059, }; const uint8_t code_eu038Codes[] PROGMEM = { 0x05, 0x60, 0x54, }; const struct IrCode code_eu038Code PROGMEM = { 0, // Non-pulsed code 11, // # of pairs 2, // # of bits per index code_eu038Times, code_eu038Codes }; const uint16_t code_eu039Times[] PROGMEM = { 13, 445, 13, 674, 13, 675, 13, 4583, }; const uint8_t code_eu039Codes[] PROGMEM = { 0x6A, 0x82, 0x83, 0xAA, 0x82, 0x81, }; const struct IrCode code_eu039Code PROGMEM = { freq_to_timerval(40161), 24, // # of pairs 2, // # of bits per index code_eu039Times, code_eu039Codes }; const uint16_t code_eu040Times[] PROGMEM = { 85, 89, 85, 264, 85, 3402, 347, 350, 348, 350, }; const uint8_t code_eu040Codes[] PROGMEM = { 0x60, 0x90, 0x40, 0x20, 0x80, 0x40, 0x20, 0x90, 0x41, 0x2A, 0x02, 0x41, 0x00, 0x82, 0x01, 0x00, 0x82, 0x41, 0x04, 0x80, }; const struct IrCode code_eu040Code PROGMEM = { freq_to_timerval(35714), 52, // # of pairs 3, // # of bits per index code_eu040Times, code_eu040Codes }; const uint16_t code_eu041Times[] PROGMEM = { 46, 300, 49, 298, 49, 648, 49, 997, 49, 3056, }; const uint8_t code_eu041Codes[] PROGMEM = { 0x0C, 0xB2, 0xCA, 0x49, 0x13, 0x0B, 0x2C, 0xB2, 0x92, 0x44, 0xB0, }; const struct IrCode code_eu041Code PROGMEM = { freq_to_timerval(33333), 28, // # of pairs 3, // # of bits per index code_eu041Times, code_eu041Codes }; /* Duplicate timing table, same as na009 ! const uint16_t code_eu042Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; */ const uint8_t code_eu042Codes[] PROGMEM = { 0x80, 0x00, 0x00, 0x24, 0x92, 0x09, 0x00, 0x82, 0x00, 0x04, 0x10, 0x49, 0x2A, 0xBA, 0x00, }; const struct IrCode code_eu042Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na009Times, code_eu042Codes }; const uint16_t code_eu043Times[] PROGMEM = { 1037, 4216, 1040, 0, }; const uint8_t code_eu043Codes[] PROGMEM = { 0x10, }; const struct IrCode code_eu043Code PROGMEM = { freq_to_timerval(41667), 2, // # of pairs 2, // # of bits per index code_eu043Times, code_eu043Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_eu044Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_eu044Codes[] PROGMEM = { 0xA0, 0x02, 0x01, 0x04, 0x90, 0x48, 0x20, 0x00, 0x00, 0x04, 0x92, 0x49, 0x2B, 0x3D, 0x00, }; const struct IrCode code_eu044Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_eu044Codes }; const uint16_t code_eu045Times[] PROGMEM = { 152, 471, 154, 156, 154, 469, 154, 2947, }; const uint8_t code_eu045Codes[] PROGMEM = { 0x16, 0xE5, 0x90, }; const struct IrCode code_eu045Code PROGMEM = { freq_to_timerval(41667), 10, // # of pairs 2, // # of bits per index code_eu045Times, code_eu045Codes }; const uint16_t code_eu046Times[] PROGMEM = { 15, 493, 16, 493, 16, 698, 16, 1414, }; const uint8_t code_eu046Codes[] PROGMEM = { 0x16, 0xAB, 0x56, 0xA9, }; const struct IrCode code_eu046Code PROGMEM = { freq_to_timerval(34602), 16, // # of pairs 2, // # of bits per index code_eu046Times, code_eu046Codes }; const uint16_t code_eu047Times[] PROGMEM = { 3, 496, 3, 745, 3, 1488, }; const uint8_t code_eu047Codes[] PROGMEM = { 0x41, 0x24, 0x12, 0x41, 0x00, }; const struct IrCode code_eu047Code PROGMEM = { 0, // Non-pulsed code 17, // # of pairs 2, // # of bits per index code_eu047Times, code_eu047Codes }; /* Duplicate timing table, same as na009 ! const uint16_t code_eu048Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; */ const uint8_t code_eu048Codes[] PROGMEM = { 0x80, 0x00, 0x00, 0x24, 0x82, 0x49, 0x04, 0x80, 0x40, 0x00, 0x12, 0x09, 0x2A, 0xBA, 0x00, }; const struct IrCode code_eu048Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na009Times, code_eu048Codes }; const uint16_t code_eu049Times[] PROGMEM = { 55, 55, 55, 167, 55, 4577, 55, 9506, 448, 445, 450, 444, }; const uint8_t code_eu049Codes[] PROGMEM = { 0x80, 0x92, 0x00, 0x00, 0x92, 0x00, 0x00, 0x10, 0x40, 0x04, 0x82, 0x09, 0x2A, 0x97, 0x48, }; const struct IrCode code_eu049Code PROGMEM = { freq_to_timerval(38462), 40, // # of pairs 3, // # of bits per index code_eu049Times, code_eu049Codes }; const uint16_t code_eu050Times[] PROGMEM = { 91, 88, 91, 267, 91, 3621, 361, 358, 361, 359, }; const uint8_t code_eu050Codes[] PROGMEM = { 0x60, 0x00, 0x00, 0x00, 0x12, 0x49, 0x24, 0x92, 0x42, 0x80, 0x00, 0x00, 0x00, 0x12, 0x49, 0x24, 0x92, 0x40, }; const struct IrCode code_eu050Code PROGMEM = { freq_to_timerval(33333), 48, // # of pairs 3, // # of bits per index code_eu050Times, code_eu050Codes }; const uint16_t code_eu051Times[] PROGMEM = { 84, 88, 84, 261, 84, 3360, 347, 347, 347, 348, }; const uint8_t code_eu051Codes[] PROGMEM = { 0x60, 0x82, 0x00, 0x20, 0x80, 0x41, 0x04, 0x90, 0x41, 0x2A, 0x02, 0x08, 0x00, 0x82, 0x01, 0x04, 0x12, 0x41, 0x04, 0x80, }; const struct IrCode code_eu051Code PROGMEM = { freq_to_timerval(38462), 52, // # of pairs 3, // # of bits per index code_eu051Times, code_eu051Codes };// Duplicate IR Code? - Similar to NA115 const uint16_t code_eu052Times[] PROGMEM = { 16, 838, 17, 558, 17, 839, 17, 6328, }; const uint8_t code_eu052Codes[] PROGMEM = { 0x1A, 0x9A, 0x9B, 0x9A, 0x9A, 0x99, }; const struct IrCode code_eu052Code PROGMEM = { freq_to_timerval(31250), 24, // # of pairs 2, // # of bits per index code_eu052Times, code_eu052Codes };// Duplicate IR Code? - Similar to EU017 /* Duplicate timing table, same as eu046 ! const uint16_t code_eu053Times[] PROGMEM = { 15, 493, 16, 493, 16, 698, 16, 1414, }; */ const uint8_t code_eu053Codes[] PROGMEM = { 0x26, 0xAB, 0x66, 0xAA, }; const struct IrCode code_eu053Code PROGMEM = { freq_to_timerval(34483), 16, // # of pairs 2, // # of bits per index code_eu046Times, code_eu053Codes }; const uint16_t code_eu054Times[] PROGMEM = { 49, 53, 49, 104, 49, 262, 49, 264, 49, 8030, 100, 103, }; const uint8_t code_eu054Codes[] PROGMEM = { 0x40, 0x1A, 0x23, 0x00, 0xD0, 0x80, }; const struct IrCode code_eu054Code PROGMEM = { freq_to_timerval(31250), 14, // # of pairs 3, // # of bits per index code_eu054Times, code_eu054Codes }; /* Duplicate timing table, same as na009 ! const uint16_t code_eu055Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; */ const uint8_t code_eu055Codes[] PROGMEM = { 0x80, 0x00, 0x00, 0x20, 0x92, 0x49, 0x00, 0x02, 0x40, 0x04, 0x90, 0x09, 0x2A, 0xBA, 0x00, }; const struct IrCode code_eu055Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na009Times, code_eu055Codes }; const uint16_t code_eu056Times[] PROGMEM = { 112, 107, 113, 107, 677, 2766, }; const uint8_t code_eu056Codes[] PROGMEM = { 0x26, }; const struct IrCode code_eu056Code PROGMEM = { freq_to_timerval(38462), 4, // # of pairs 2, // # of bits per index code_eu056Times, code_eu056Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_eu057Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ /* const uint8_t code_eu057Codes[] PROGMEM = { 0xA0, 0x00, 0x41, 0x04, 0x92, 0x08, 0x20, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2B, 0x3D, 0x00, }; const struct IrCode code_eu057Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_eu057Codes }; // Duplicate IR code - same as EU008 */ /* Duplicate timing table, same as na009 ! const uint16_t code_eu058Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; */ const uint8_t code_eu058Codes[] PROGMEM = { 0x80, 0x00, 0x00, 0x24, 0x10, 0x49, 0x00, 0x82, 0x00, 0x04, 0x10, 0x49, 0x2A, 0xBA, 0x00, }; const struct IrCode code_eu058Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na009Times, code_eu058Codes }; const uint16_t code_eu059Times[] PROGMEM = { 310, 613, 310, 614, 622, 8312, }; const uint8_t code_eu059Codes[] PROGMEM = { 0x26, }; const struct IrCode code_eu059Code PROGMEM = { freq_to_timerval(41667), 4, // # of pairs 2, // # of bits per index code_eu059Times, code_eu059Codes };// Duplicate IR Code? - Similar to EU056 const uint16_t code_eu060Times[] PROGMEM = { 50, 158, 53, 51, 53, 156, 53, 2180, }; const uint8_t code_eu060Codes[] PROGMEM = { 0x25, 0x59, 0x9A, 0x5A, 0xE9, 0x56, 0x66, 0x96, 0xA0, }; const struct IrCode code_eu060Code PROGMEM = { freq_to_timerval(38462), 34, // # of pairs 2, // # of bits per index code_eu060Times, code_eu060Codes }; /* Duplicate timing table, same as na005 ! const uint16_t code_eu061Times[] PROGMEM = { 88, 90, 88, 91, 88, 181, 88, 8976, 177, 91, }; */ const uint8_t code_eu061Codes[] PROGMEM = { 0x10, 0x92, 0x54, 0x24, 0xB3, 0x09, 0x25, 0x42, 0x48, }; const struct IrCode code_eu061Code PROGMEM = { freq_to_timerval(35714), 24, // # of pairs 3, // # of bits per index code_na005Times, code_eu061Codes }; /* Duplicate timing table, same as eu060 ! const uint16_t code_eu062Times[] PROGMEM = { 50, 158, 53, 51, 53, 156, 53, 2180, }; */ const uint8_t code_eu062Codes[] PROGMEM = { 0x25, 0x99, 0x9A, 0x5A, 0xE9, 0x66, 0x66, 0x96, 0xA0, }; const struct IrCode code_eu062Code PROGMEM = { freq_to_timerval(38462), 34, // # of pairs 2, // # of bits per index code_eu060Times, code_eu062Codes }; /* Duplicate timing table, same as na009 ! const uint16_t code_eu063Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; */ const uint8_t code_eu063Codes[] PROGMEM = { 0x80, 0x00, 0x00, 0x24, 0x90, 0x41, 0x00, 0x82, 0x00, 0x04, 0x10, 0x49, 0x2A, 0xBA, 0x00, }; const struct IrCode code_eu063Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na009Times, code_eu063Codes }; const uint16_t code_eu064Times[] PROGMEM = { 47, 267, 50, 55, 50, 110, 50, 265, 50, 2055, 50, 12117, 100, 57, 100, 112, }; const uint8_t code_eu064Codes[] PROGMEM = { 0x04, 0x92, 0x49, 0x26, 0x32, 0x51, 0xCB, 0xD6, 0x4A, 0x39, 0x72, }; const struct IrCode code_eu064Code PROGMEM = { freq_to_timerval(30395), 29, // # of pairs 3, // # of bits per index code_eu064Times, code_eu064Codes }; const uint16_t code_eu065Times[] PROGMEM = { 47, 267, 50, 55, 50, 110, 50, 265, 50, 2055, 50, 12117, 100, 112, }; const uint8_t code_eu065Codes[] PROGMEM = { 0x04, 0x92, 0x49, 0x26, 0x32, 0x4A, 0x38, 0x9A, 0xC9, 0x28, 0xE2, 0x48, }; const struct IrCode code_eu065Code PROGMEM = { freq_to_timerval(30303), 31, // # of pairs 3, // # of bits per index code_eu065Times, code_eu065Codes }; /* Duplicate timing table, same as eu049 ! const uint16_t code_eu066Times[] PROGMEM = { 55, 55, 55, 167, 55, 4577, 55, 9506, 448, 445, 450, 444, }; */ const uint8_t code_eu066Codes[] PROGMEM = { 0x84, 0x82, 0x00, 0x04, 0x82, 0x00, 0x00, 0x82, 0x00, 0x04, 0x10, 0x49, 0x2A, 0x87, 0x41, }; const struct IrCode code_eu066Code PROGMEM = { freq_to_timerval(38462), 40, // # of pairs 3, // # of bits per index code_eu049Times, code_eu066Codes }; const uint16_t code_eu067Times[] PROGMEM = { 94, 473, 94, 728, 102, 1637, }; const uint8_t code_eu067Codes[] PROGMEM = { 0x41, 0x24, 0x12, }; const struct IrCode code_eu067Code PROGMEM = { freq_to_timerval(38462), 12, // # of pairs 2, // # of bits per index code_eu067Times, code_eu067Codes }; const uint16_t code_eu068Times[] PROGMEM = { 49, 263, 50, 54, 50, 108, 50, 263, 50, 2029, 50, 10199, 100, 110, }; const uint8_t code_eu068Codes[] PROGMEM = { 0x04, 0x92, 0x49, 0x26, 0x34, 0x49, 0x38, 0x9A, 0xD1, 0x24, 0xE2, 0x48, }; const struct IrCode code_eu068Code PROGMEM = { freq_to_timerval(38610), 31, // # of pairs 3, // # of bits per index code_eu068Times, code_eu068Codes }; const uint16_t code_eu069Times[] PROGMEM = { 4, 499, 4, 750, 4, 4999, }; const uint8_t code_eu069Codes[] PROGMEM = { 0x05, 0x54, 0x06, 0x05, 0x54, 0x04, }; const struct IrCode code_eu069Code PROGMEM = { 0, // Non-pulsed code 23, // # of pairs 2, // # of bits per index code_eu069Times, code_eu069Codes }; /* Duplicate timing table, same as eu069 ! const uint16_t code_eu070Times[] PROGMEM = { 4, 499, 4, 750, 4, 4999, }; */ const uint8_t code_eu070Codes[] PROGMEM = { 0x14, 0x54, 0x06, 0x14, 0x54, 0x04, }; const struct IrCode code_eu070Code PROGMEM = { 0, // Non-pulsed code 23, // # of pairs 2, // # of bits per index code_eu069Times, code_eu070Codes }; const uint16_t code_eu071Times[] PROGMEM = { 14, 491, 14, 743, 14, 4422, }; const uint8_t code_eu071Codes[] PROGMEM = { 0x45, 0x44, 0x56, 0x45, 0x44, 0x55, }; const struct IrCode code_eu071Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu071Times, code_eu071Codes }; const uint16_t code_eu072Times[] PROGMEM = { 5, 568, 5, 854, 5, 4999, }; const uint8_t code_eu072Codes[] PROGMEM = { 0x55, 0x45, 0x46, 0x55, 0x45, 0x44, }; const struct IrCode code_eu072Code PROGMEM = { 0, // Non-pulsed code 23, // # of pairs 2, // # of bits per index code_eu072Times, code_eu072Codes }; /* Duplicate timing table, same as eu046 ! const uint16_t code_eu073Times[] PROGMEM = { 15, 493, 16, 493, 16, 698, 16, 1414, }; */ const uint8_t code_eu073Codes[] PROGMEM = { 0x19, 0x57, 0x59, 0x55, }; const struct IrCode code_eu073Code PROGMEM = { freq_to_timerval(34483), 16, // # of pairs 2, // # of bits per index code_eu046Times, code_eu073Codes }; /* Duplicate timing table, same as na031 ! const uint16_t code_eu074Times[] PROGMEM = { 88, 89, 88, 90, 88, 179, 88, 8977, 177, 90, }; */ const uint8_t code_eu074Codes[] PROGMEM = { 0x04, 0x92, 0x49, 0x28, 0xC6, 0x49, 0x24, 0x92, 0x51, 0x80, }; const struct IrCode code_eu074Code PROGMEM = { freq_to_timerval(35714), 26, // # of pairs 3, // # of bits per index code_na031Times, code_eu074Codes }; const uint16_t code_eu075Times[] PROGMEM = { 6, 566, 6, 851, 6, 5474, }; const uint8_t code_eu075Codes[] PROGMEM = { 0x05, 0x45, 0x46, 0x05, 0x45, 0x44, }; const struct IrCode code_eu075Code PROGMEM = { 0, // Non-pulsed code 23, // # of pairs 2, // # of bits per index code_eu075Times, code_eu075Codes }; const uint16_t code_eu076Times[] PROGMEM = { 14, 843, 16, 555, 16, 841, 16, 4911, }; const uint8_t code_eu076Codes[] PROGMEM = { 0x2A, 0x9A, 0x9B, 0xAA, 0x9A, 0x9A, }; const struct IrCode code_eu076Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu076Times, code_eu076Codes }; /* Duplicate timing table, same as eu028 ! const uint16_t code_eu077Times[] PROGMEM = { 47, 267, 50, 55, 50, 110, 50, 265, 50, 2055, 50, 12117, 100, 57, }; */ const uint8_t code_eu077Codes[] PROGMEM = { 0x04, 0x92, 0x49, 0x26, 0x32, 0x51, 0xC8, 0x9A, 0xC9, 0x47, 0x22, 0x48, }; const struct IrCode code_eu077Code PROGMEM = { freq_to_timerval(30303), 31, // # of pairs 3, // # of bits per index code_eu028Times, code_eu077Codes }; const uint16_t code_eu078Times[] PROGMEM = { 6, 925, 6, 1339, 6, 2098, 6, 2787, }; const uint8_t code_eu078Codes[] PROGMEM = { 0x90, 0x0D, 0x00, }; const struct IrCode code_eu078Code PROGMEM = { 0, // Non-pulsed code 12, // # of pairs 2, // # of bits per index code_eu078Times, code_eu078Codes }; const uint16_t code_eu079Times[] PROGMEM = { 53, 59, 53, 170, 53, 4359, 892, 448, 893, 448, }; const uint8_t code_eu079Codes[] PROGMEM = { 0x60, 0x00, 0x00, 0x24, 0x80, 0x09, 0x04, 0x92, 0x00, 0x00, 0x00, 0x49, 0x2A, 0x00, 0x00, 0x00, 0x92, 0x00, 0x24, 0x12, 0x48, 0x00, 0x00, 0x01, 0x24, 0x80, }; const struct IrCode code_eu079Code PROGMEM = { freq_to_timerval(38462), 68, // # of pairs 3, // # of bits per index code_eu079Times, code_eu079Codes }; const uint16_t code_eu080Times[] PROGMEM = { 55, 57, 55, 167, 55, 4416, 895, 448, 897, 447, }; const uint8_t code_eu080Codes[] PROGMEM = { 0x60, 0x00, 0x00, 0x20, 0x10, 0x09, 0x04, 0x02, 0x01, 0x00, 0x90, 0x48, 0x2A, 0x00, 0x00, 0x00, 0x80, 0x40, 0x24, 0x10, 0x08, 0x04, 0x02, 0x41, 0x20, 0x80, }; const struct IrCode code_eu080Code PROGMEM = { freq_to_timerval(38462), 68, // # of pairs 3, // # of bits per index code_eu080Times, code_eu080Codes }; const uint16_t code_eu081Times[] PROGMEM = { 26, 185, 27, 80, 27, 185, 27, 4249, }; const uint8_t code_eu081Codes[] PROGMEM = { 0x1A, 0x5A, 0x65, 0x67, 0x9A, 0x65, 0x9A, 0x9B, 0x9A, 0x5A, 0x65, 0x67, 0x9A, 0x65, 0x9A, 0x9B, 0x9A, 0x5A, 0x65, 0x65, }; const struct IrCode code_eu081Code PROGMEM = { freq_to_timerval(38462), 80, // # of pairs 2, // # of bits per index code_eu081Times, code_eu081Codes }; const uint16_t code_eu082Times[] PROGMEM = { 51, 56, 51, 162, 51, 2842, 848, 430, 850, 429, }; const uint8_t code_eu082Codes[] PROGMEM = { 0x60, 0x82, 0x08, 0x24, 0x10, 0x41, 0x04, 0x82, 0x40, 0x00, 0x10, 0x09, 0x2A, 0x02, 0x08, 0x20, 0x90, 0x41, 0x04, 0x12, 0x09, 0x00, 0x00, 0x40, 0x24, 0x80, }; const struct IrCode code_eu082Code PROGMEM = { freq_to_timerval(40000), 68, // # of pairs 3, // # of bits per index code_eu082Times, code_eu082Codes }; const uint16_t code_eu083Times[] PROGMEM = { 16, 559, 16, 847, 16, 5900, 17, 559, 17, 847, }; const uint8_t code_eu083Codes[] PROGMEM = { 0x0E, 0x38, 0x21, 0x82, 0x26, 0x20, 0x82, 0x48, 0x23, }; const struct IrCode code_eu083Code PROGMEM = { freq_to_timerval(33333), 24, // # of pairs 3, // # of bits per index code_eu083Times, code_eu083Codes }; const uint16_t code_eu084Times[] PROGMEM = { 16, 484, 16, 738, 16, 739, 16, 4795, }; const uint8_t code_eu084Codes[] PROGMEM = { 0x6A, 0xA0, 0x03, 0xAA, 0xA0, 0x01, }; const struct IrCode code_eu084Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu084Times, code_eu084Codes }; const uint16_t code_eu085Times[] PROGMEM = { 48, 52, 48, 160, 48, 400, 48, 2120, 799, 400, }; const uint8_t code_eu085Codes[] PROGMEM = { 0x84, 0x82, 0x40, 0x08, 0x92, 0x48, 0x01, 0xC2, 0x41, 0x20, 0x04, 0x49, 0x24, 0x00, 0x40, }; const struct IrCode code_eu085Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_eu085Times, code_eu085Codes }; const uint16_t code_eu086Times[] PROGMEM = { 16, 851, 17, 554, 17, 850, 17, 851, 17, 4847, }; const uint8_t code_eu086Codes[] PROGMEM = { 0x45, 0x86, 0x5B, 0x05, 0xC6, 0x5B, 0x05, 0xB0, 0x42, }; const struct IrCode code_eu086Code PROGMEM = { freq_to_timerval(33333), 24, // # of pairs 3, // # of bits per index code_eu086Times, code_eu086Codes }; const uint16_t code_eu087Times[] PROGMEM = { 14, 491, 14, 743, 14, 5126, }; const uint8_t code_eu087Codes[] PROGMEM = { 0x55, 0x50, 0x02, 0x55, 0x50, 0x01, }; const struct IrCode code_eu087Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu087Times, code_eu087Codes }; const uint16_t code_eu088Times[] PROGMEM = { 14, 491, 14, 743, 14, 4874, }; const uint8_t code_eu088Codes[] PROGMEM = { 0x45, 0x54, 0x42, 0x45, 0x54, 0x41, }; const struct IrCode code_eu088Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu088Times, code_eu088Codes }; /* Duplicate timing table, same as na021 ! const uint16_t code_eu089Times[] PROGMEM = { 48, 52, 48, 160, 48, 400, 48, 2335, 799, 400, }; */ const uint8_t code_eu089Codes[] PROGMEM = { 0x84, 0x10, 0x40, 0x08, 0x82, 0x08, 0x01, 0xC2, 0x08, 0x20, 0x04, 0x41, 0x04, 0x00, 0x40, }; const struct IrCode code_eu089Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na021Times, code_eu089Codes }; const uint16_t code_eu090Times[] PROGMEM = { 3, 9, 3, 19, 3, 29, 3, 39, 3, 9968, }; const uint8_t code_eu090Codes[] PROGMEM = { 0x60, 0x00, 0x88, 0x00, 0x02, 0xE3, 0x00, 0x04, 0x40, 0x00, 0x16, }; const struct IrCode code_eu090Code PROGMEM = { 0, // Non-pulsed code 29, // # of pairs 3, // # of bits per index code_eu090Times, code_eu090Codes }; const uint16_t code_eu091Times[] PROGMEM = { 15, 138, 15, 446, 15, 605, 15, 6565, }; const uint8_t code_eu091Codes[] PROGMEM = { 0x80, 0x01, 0x00, 0x2E, 0x00, 0x04, 0x00, 0xA0, }; const struct IrCode code_eu091Code PROGMEM = { freq_to_timerval(38462), 30, // # of pairs 2, // # of bits per index code_eu091Times, code_eu091Codes }; const uint16_t code_eu092Times[] PROGMEM = { 48, 50, 48, 148, 48, 149, 48, 1424, }; const uint8_t code_eu092Codes[] PROGMEM = { 0x48, 0x80, 0x0E, 0x22, 0x00, 0x10, }; const struct IrCode code_eu092Code PROGMEM = { freq_to_timerval(40000), 22, // # of pairs 2, // # of bits per index code_eu092Times, code_eu092Codes }; const uint16_t code_eu093Times[] PROGMEM = { 87, 639, 88, 275, 88, 639, }; const uint8_t code_eu093Codes[] PROGMEM = { 0x15, 0x9A, 0x94, }; const struct IrCode code_eu093Code PROGMEM = { freq_to_timerval(35714), 11, // # of pairs 2, // # of bits per index code_eu093Times, code_eu093Codes }; const uint16_t code_eu094Times[] PROGMEM = { 3, 8, 3, 18, 3, 24, 3, 38, 3, 9969, }; const uint8_t code_eu094Codes[] PROGMEM = { 0x60, 0x80, 0x88, 0x00, 0x00, 0xE3, 0x04, 0x04, 0x40, 0x00, 0x06, }; const struct IrCode code_eu094Code PROGMEM = { 0, // Non-pulsed code 29, // # of pairs 3, // # of bits per index code_eu094Times, code_eu094Codes }; /* Duplicate timing table, same as eu046 ! const uint16_t code_eu095Times[] PROGMEM = { 15, 493, 16, 493, 16, 698, 16, 1414, }; */ const uint8_t code_eu095Codes[] PROGMEM = { 0x2A, 0xAB, 0x6A, 0xAA, }; const struct IrCode code_eu095Code PROGMEM = { freq_to_timerval(34483), 16, // # of pairs 2, // # of bits per index code_eu046Times, code_eu095Codes }; const uint16_t code_eu096Times[] PROGMEM = { 13, 608, 14, 141, 14, 296, 14, 451, 14, 606, 14, 608, 14, 6207, }; const uint8_t code_eu096Codes[] PROGMEM = { 0x04, 0x94, 0x4B, 0x24, 0x95, 0x35, 0x24, 0xA2, 0x59, 0x24, 0xA8, 0x40, }; const struct IrCode code_eu096Code PROGMEM = { freq_to_timerval(38462), 30, // # of pairs 3, // # of bits per index code_eu096Times, code_eu096Codes }; /* Duplicate timing table, same as eu046 ! const uint16_t code_eu097Times[] PROGMEM = { 15, 493, 16, 493, 16, 698, 16, 1414, }; */ const uint8_t code_eu097Codes[] PROGMEM = { 0x19, 0xAB, 0x59, 0xA9, }; const struct IrCode code_eu097Code PROGMEM = { freq_to_timerval(34483), 16, // # of pairs 2, // # of bits per index code_eu046Times, code_eu097Codes }; const uint16_t code_eu098Times[] PROGMEM = { 3, 8, 3, 18, 3, 28, 3, 12731, }; const uint8_t code_eu098Codes[] PROGMEM = { 0x80, 0x01, 0x00, 0xB8, 0x55, 0x10, 0x08, }; const struct IrCode code_eu098Code PROGMEM = { 0, // Non-pulsed code 27, // # of pairs 2, // # of bits per index code_eu098Times, code_eu098Codes }; const uint16_t code_eu099Times[] PROGMEM = { 46, 53, 46, 106, 46, 260, 46, 1502, 46, 10962, 93, 53, 93, 106, }; const uint8_t code_eu099Codes[] PROGMEM = { 0x46, 0x80, 0x00, 0x00, 0x00, 0x03, 0x44, 0x52, 0x00, 0x00, 0x0C, 0x22, 0x22, 0x90, 0x00, 0x00, 0x60, 0x80, }; const struct IrCode code_eu099Code PROGMEM = { freq_to_timerval(35714), 46, // # of pairs 3, // # of bits per index code_eu099Times, code_eu099Codes }; /* Duplicate timing table, same as eu098 ! const uint16_t code_eu100Times[] PROGMEM = { 3, 8, 3, 18, 3, 28, 3, 12731, }; */ const uint8_t code_eu100Codes[] PROGMEM = { 0x80, 0x04, 0x00, 0xB8, 0x55, 0x40, 0x08, }; const struct IrCode code_eu100Code PROGMEM = { 0, // Non-pulsed code 27, // # of pairs 2, // # of bits per index code_eu098Times, code_eu100Codes }; const uint16_t code_eu101Times[] PROGMEM = { 14, 491, 14, 743, 14, 4674, }; const uint8_t code_eu101Codes[] PROGMEM = { 0x55, 0x50, 0x06, 0x55, 0x50, 0x05, }; const struct IrCode code_eu101Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu101Times, code_eu101Codes }; /* Duplicate timing table, same as eu087 ! const uint16_t code_eu102Times[] PROGMEM = { 14, 491, 14, 743, 14, 5126, }; */ const uint8_t code_eu102Codes[] PROGMEM = { 0x45, 0x54, 0x02, 0x45, 0x54, 0x01, }; const struct IrCode code_eu102Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu087Times, code_eu102Codes }; const uint16_t code_eu103Times[] PROGMEM = { 44, 815, 45, 528, 45, 815, 45, 5000, }; const uint8_t code_eu103Codes[] PROGMEM = { 0x29, 0x9A, 0x9B, 0xA9, 0x9A, 0x9A, }; const struct IrCode code_eu103Code PROGMEM = { freq_to_timerval(34483), 24, // # of pairs 2, // # of bits per index code_eu103Times, code_eu103Codes }; const uint16_t code_eu104Times[] PROGMEM = { 14, 491, 14, 743, 14, 5881, }; const uint8_t code_eu104Codes[] PROGMEM = { 0x44, 0x40, 0x02, 0x44, 0x40, 0x01, }; const struct IrCode code_eu104Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu104Times, code_eu104Codes }; /* Duplicate timing table, same as na009 ! const uint16_t code_eu105Times[] PROGMEM = { 53, 56, 53, 171, 53, 3950, 53, 9599, 898, 451, 900, 226, }; */ const uint8_t code_eu105Codes[] PROGMEM = { 0x84, 0x10, 0x00, 0x20, 0x90, 0x01, 0x00, 0x80, 0x40, 0x04, 0x12, 0x09, 0x2A, 0xBA, 0x40, }; const struct IrCode code_eu105Code PROGMEM = { freq_to_timerval(38610), 38, // # of pairs 3, // # of bits per index code_na009Times, code_eu105Codes }; const uint16_t code_eu106Times[] PROGMEM = { 48, 246, 50, 47, 50, 94, 50, 245, 50, 1488, 50, 10970, 100, 47, 100, 94, }; const uint8_t code_eu106Codes[] PROGMEM = { 0x0B, 0x12, 0x49, 0x24, 0x92, 0x49, 0x8D, 0x1C, 0x89, 0x27, 0xFC, 0xAB, 0x47, 0x22, 0x49, 0xFF, 0x2A, 0xD1, 0xC8, 0x92, 0x7F, 0xC9, 0x00, }; const struct IrCode code_eu106Code PROGMEM = { freq_to_timerval(38462), 59, // # of pairs 3, // # of bits per index code_eu106Times, code_eu106Codes }; const uint16_t code_eu107Times[] PROGMEM = { 16, 847, 16, 5900, 17, 559, 17, 846, 17, 847, }; const uint8_t code_eu107Codes[] PROGMEM = { 0x62, 0x08, 0xA0, 0x8A, 0x19, 0x04, 0x08, 0x40, 0x83, }; const struct IrCode code_eu107Code PROGMEM = { freq_to_timerval(33333), 24, // # of pairs 3, // # of bits per index code_eu107Times, code_eu107Codes }; const uint16_t code_eu108Times[] PROGMEM = { 14, 491, 14, 743, 14, 4622, }; const uint8_t code_eu108Codes[] PROGMEM = { 0x45, 0x54, 0x16, 0x45, 0x54, 0x15, }; const struct IrCode code_eu108Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu108Times, code_eu108Codes }; const uint16_t code_eu109Times[] PROGMEM = { 24, 185, 27, 78, 27, 183, 27, 1542, }; const uint8_t code_eu109Codes[] PROGMEM = { 0x19, 0x95, 0x5E, 0x66, 0x55, 0x50, }; const struct IrCode code_eu109Code PROGMEM = { freq_to_timerval(38462), 22, // # of pairs 2, // # of bits per index code_eu109Times, code_eu109Codes }; const uint16_t code_eu110Times[] PROGMEM = { 56, 55, 56, 168, 56, 4850, 447, 453, 448, 453, }; const uint8_t code_eu110Codes[] PROGMEM = { 0x64, 0x10, 0x00, 0x04, 0x10, 0x00, 0x00, 0x80, 0x00, 0x04, 0x12, 0x49, 0x2A, 0x10, 0x40, 0x00, 0x10, 0x40, 0x00, 0x02, 0x00, 0x00, 0x10, 0x49, 0x24, 0x90, }; const struct IrCode code_eu110Code PROGMEM = { freq_to_timerval(38462), 68, // # of pairs 3, // # of bits per index code_eu110Times, code_eu110Codes }; const uint16_t code_eu111Times[] PROGMEM = { 49, 52, 49, 250, 49, 252, 49, 2377, 49, 12009, 100, 52, 100, 102, }; const uint8_t code_eu111Codes[] PROGMEM = { 0x22, 0x80, 0x1A, 0x18, 0x01, 0x10, 0xC0, 0x02, }; const struct IrCode code_eu111Code PROGMEM = { freq_to_timerval(31250), 21, // # of pairs 3, // # of bits per index code_eu111Times, code_eu111Codes }; const uint16_t code_eu112Times[] PROGMEM = { 55, 55, 55, 167, 55, 5023, 55, 9506, 448, 445, 450, 444, }; const uint8_t code_eu112Codes[] PROGMEM = { 0x80, 0x02, 0x00, 0x00, 0x02, 0x00, 0x04, 0x92, 0x00, 0x00, 0x00, 0x49, 0x2A, 0x97, 0x48, }; const struct IrCode code_eu112Code PROGMEM = { freq_to_timerval(38462), 40, // # of pairs 3, // # of bits per index code_eu112Times, code_eu112Codes }; /* Duplicate timing table, same as eu054 ! const uint16_t code_eu113Times[] PROGMEM = { 49, 53, 49, 104, 49, 262, 49, 264, 49, 8030, 100, 103, }; */ const uint8_t code_eu113Codes[] PROGMEM = { 0x46, 0x80, 0x23, 0x34, 0x00, 0x80, }; const struct IrCode code_eu113Code PROGMEM = { freq_to_timerval(31250), 14, // # of pairs 3, // # of bits per index code_eu054Times, code_eu113Codes }; /* Duplicate timing table, same as eu028 ! const uint16_t code_eu114Times[] PROGMEM = { 47, 267, 50, 55, 50, 110, 50, 265, 50, 2055, 50, 12117, 100, 57, }; */ const uint8_t code_eu114Codes[] PROGMEM = { 0x04, 0x92, 0x49, 0x26, 0x34, 0x71, 0x44, 0x9A, 0xD1, 0xC5, 0x12, 0x48, }; const struct IrCode code_eu114Code PROGMEM = { freq_to_timerval(30303), 31, // # of pairs 3, // # of bits per index code_eu028Times, code_eu114Codes }; #ifndef NA_CODES const uint16_t code_eu115Times[] PROGMEM = { 48, 98, 48, 196, 97, 836, 395, 388, 1931, 389, }; const uint8_t code_eu115Codes[] PROGMEM = { 0x84, 0x92, 0x01, 0x24, 0x12, 0x00, 0x04, 0x80, 0x08, 0x09, 0x92, 0x48, 0x04, 0x90, 0x48, 0x00, 0x12, 0x00, 0x20, 0x26, 0x49, 0x20, 0x12, 0x41, 0x20, 0x00, 0x48, 0x00, 0x82, }; const struct IrCode code_eu115Code PROGMEM = { freq_to_timerval(58824), 77, // # of pairs 3, // # of bits per index code_eu115Times, code_eu115Codes }; const uint16_t code_eu116Times[] PROGMEM = { 3, 9, 3, 31, 3, 42, 3, 10957, }; const uint8_t code_eu116Codes[] PROGMEM = { 0x80, 0x01, 0x00, 0x2E, 0x00, 0x04, 0x00, 0x80, }; const struct IrCode code_eu116Code PROGMEM = { 0, // Non-pulsed code 29, // # of pairs 2, // # of bits per index code_eu116Times, code_eu116Codes }; const uint16_t code_eu117Times[] PROGMEM = { 49, 53, 49, 262, 49, 264, 49, 8030, 100, 103, }; const uint8_t code_eu117Codes[] PROGMEM = { 0x22, 0x00, 0x1A, 0x10, 0x00, 0x40, }; const struct IrCode code_eu117Code PROGMEM = { freq_to_timerval(31250), 14, // # of pairs 3, // # of bits per index code_eu117Times, code_eu117Codes }; const uint16_t code_eu118Times[] PROGMEM = { 44, 815, 45, 528, 45, 815, 45, 4713, }; const uint8_t code_eu118Codes[] PROGMEM = { 0x2A, 0x9A, 0x9B, 0xAA, 0x9A, 0x9A, }; const struct IrCode code_eu118Code PROGMEM = { freq_to_timerval(34483), 24, // # of pairs 2, // # of bits per index code_eu118Times, code_eu118Codes }; const uint16_t code_eu119Times[] PROGMEM = { 14, 491, 14, 743, 14, 5430, }; const uint8_t code_eu119Codes[] PROGMEM = { 0x44, 0x44, 0x02, 0x44, 0x44, 0x01, }; const struct IrCode code_eu119Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu119Times, code_eu119Codes }; const uint16_t code_eu120Times[] PROGMEM = { 19, 78, 21, 27, 21, 77, 21, 3785, 22, 0, }; const uint8_t code_eu120Codes[] PROGMEM = { 0x09, 0x24, 0x92, 0x49, 0x12, 0x4A, 0x24, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x94, 0x89, 0x69, 0x24, 0x92, 0x49, 0x22, 0x49, 0x44, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x91, 0x30, }; const struct IrCode code_eu120Code PROGMEM = { freq_to_timerval(38462), 82, // # of pairs 3, // # of bits per index code_eu120Times, code_eu120Codes }; /* Duplicate timing table, same as eu051 ! const uint16_t code_eu121Times[] PROGMEM = { 84, 88, 84, 261, 84, 3360, 347, 347, 347, 348, }; */ const uint8_t code_eu121Codes[] PROGMEM = { 0x64, 0x00, 0x09, 0x24, 0x00, 0x09, 0x24, 0x00, 0x09, 0x2A, 0x10, 0x00, 0x24, 0x90, 0x00, 0x24, 0x90, 0x00, 0x24, 0x90, }; const struct IrCode code_eu121Code PROGMEM = { freq_to_timerval(38462), 52, // # of pairs 3, // # of bits per index code_eu051Times, code_eu121Codes }; /* Duplicate timing table, same as eu120 ! const uint16_t code_eu122Times[] PROGMEM = { 19, 78, 21, 27, 21, 77, 21, 3785, 22, 0, }; */ const uint8_t code_eu122Codes[] PROGMEM = { 0x04, 0xA4, 0x92, 0x49, 0x22, 0x49, 0x48, 0x92, 0x49, 0x24, 0x92, 0x49, 0x24, 0x94, 0x89, 0x68, 0x94, 0x92, 0x49, 0x24, 0x49, 0x29, 0x12, 0x49, 0x24, 0x92, 0x49, 0x24, 0x92, 0x91, 0x30, }; const struct IrCode code_eu122Code PROGMEM = { freq_to_timerval(38462), 82, // # of pairs 3, // # of bits per index code_eu120Times, code_eu122Codes }; const uint16_t code_eu123Times[] PROGMEM = { 13, 490, 13, 741, 13, 742, 13, 5443, }; const uint8_t code_eu123Codes[] PROGMEM = { 0x6A, 0xA0, 0x0B, 0xAA, 0xA0, 0x09, }; const struct IrCode code_eu123Code PROGMEM = { freq_to_timerval(40000), 24, // # of pairs 2, // # of bits per index code_eu123Times, code_eu123Codes }; const uint16_t code_eu124Times[] PROGMEM = { 50, 54, 50, 158, 50, 407, 50, 2153, 843, 407, }; const uint8_t code_eu124Codes[] PROGMEM = { 0x80, 0x10, 0x40, 0x08, 0x92, 0x48, 0x01, 0xC0, 0x08, 0x20, 0x04, 0x49, 0x24, 0x00, 0x00, }; const struct IrCode code_eu124Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_eu124Times, code_eu124Codes }; const uint16_t code_eu125Times[] PROGMEM = { 55, 56, 55, 168, 55, 3929, 56, 0, 882, 454, 884, 452, }; const uint8_t code_eu125Codes[] PROGMEM = { 0x84, 0x80, 0x00, 0x20, 0x82, 0x49, 0x00, 0x02, 0x00, 0x04, 0x90, 0x49, 0x2A, 0x92, 0x00, 0x00, 0x82, 0x09, 0x24, 0x00, 0x08, 0x00, 0x12, 0x41, 0x24, 0xB0, }; const struct IrCode code_eu125Code PROGMEM = { freq_to_timerval(38462), 68, // # of pairs 3, // # of bits per index code_eu125Times, code_eu125Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_eu126Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_eu126Codes[] PROGMEM = { 0xA0, 0x00, 0x00, 0x04, 0x92, 0x49, 0x20, 0x00, 0x00, 0x04, 0x92, 0x49, 0x2B, 0x3D, 0x00, }; const struct IrCode code_eu126Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_eu126Codes }; /* Duplicate timing table, same as eu087 ! const uint16_t code_eu127Times[] PROGMEM = { 14, 491, 14, 743, 14, 5126, }; */ const uint8_t code_eu127Codes[] PROGMEM = { 0x44, 0x40, 0x56, 0x44, 0x40, 0x55, }; const struct IrCode code_eu127Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu087Times, code_eu127Codes }; const uint16_t code_eu128Times[] PROGMEM = { 152, 471, 154, 156, 154, 469, 154, 782, 154, 2947, }; const uint8_t code_eu128Codes[] PROGMEM = { 0x05, 0xC4, 0x59, }; const struct IrCode code_eu128Code PROGMEM = { freq_to_timerval(41667), 8, // # of pairs 3, // # of bits per index code_eu128Times, code_eu128Codes }; const uint16_t code_eu129Times[] PROGMEM = { 50, 50, 50, 99, 50, 251, 50, 252, 50, 1449, 50, 11014, 102, 49, 102, 98, }; const uint8_t code_eu129Codes[] PROGMEM = { 0x47, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8C, 0x8C, 0x40, 0x03, 0xF1, 0xEB, 0x23, 0x10, 0x00, 0xFC, 0x74, }; const struct IrCode code_eu129Code PROGMEM = { freq_to_timerval(38462), 45, // # of pairs 3, // # of bits per index code_eu129Times, code_eu129Codes }; /* Duplicate timing table, same as eu129 ! const uint16_t code_eu130Times[] PROGMEM = { 50, 50, 50, 99, 50, 251, 50, 252, 50, 1449, 50, 11014, 102, 49, 102, 98, }; */ const uint8_t code_eu130Codes[] PROGMEM = { 0x47, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8C, 0x8C, 0x40, 0x03, 0xE3, 0xEB, 0x23, 0x10, 0x00, 0xF8, 0xF4, }; const struct IrCode code_eu130Code PROGMEM = { freq_to_timerval(38462), 45, // # of pairs 3, // # of bits per index code_eu129Times, code_eu130Codes }; const uint16_t code_eu131Times[] PROGMEM = { 14, 491, 14, 743, 14, 4170, }; const uint8_t code_eu131Codes[] PROGMEM = { 0x55, 0x55, 0x42, 0x55, 0x55, 0x41, }; const struct IrCode code_eu131Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu131Times, code_eu131Codes }; /* Duplicate timing table, same as eu069 ! const uint16_t code_eu132Times[] PROGMEM = { 4, 499, 4, 750, 4, 4999, }; */ const uint8_t code_eu132Codes[] PROGMEM = { 0x05, 0x50, 0x06, 0x05, 0x50, 0x04, }; const struct IrCode code_eu132Code PROGMEM = { 0, // Non-pulsed code 23, // # of pairs 2, // # of bits per index code_eu069Times, code_eu132Codes }; /* Duplicate timing table, same as eu071 ! const uint16_t code_eu133Times[] PROGMEM = { 14, 491, 14, 743, 14, 4422, }; */ const uint8_t code_eu133Codes[] PROGMEM = { 0x55, 0x54, 0x12, 0x55, 0x54, 0x11, }; const struct IrCode code_eu133Code PROGMEM = { freq_to_timerval(38462), 24, // # of pairs 2, // # of bits per index code_eu071Times, code_eu133Codes }; const uint16_t code_eu134Times[] PROGMEM = { 13, 490, 13, 741, 13, 742, 13, 5939, }; const uint8_t code_eu134Codes[] PROGMEM = { 0x40, 0x0A, 0x83, 0x80, 0x0A, 0x81, }; const struct IrCode code_eu134Code PROGMEM = { freq_to_timerval(40000), 24, // # of pairs 2, // # of bits per index code_eu134Times, code_eu134Codes }; const uint16_t code_eu135Times[] PROGMEM = { 6, 566, 6, 851, 6, 5188, }; const uint8_t code_eu135Codes[] PROGMEM = { 0x54, 0x45, 0x46, 0x54, 0x45, 0x44, }; const struct IrCode code_eu135Code PROGMEM = { 0, // Non-pulsed code 23, // # of pairs 2, // # of bits per index code_eu135Times, code_eu135Codes }; /* Duplicate timing table, same as na004 ! const uint16_t code_eu136Times[] PROGMEM = { 55, 57, 55, 170, 55, 3949, 55, 9623, 56, 0, 898, 453, 900, 226, }; */ const uint8_t code_eu136Codes[] PROGMEM = { 0xA0, 0x00, 0x00, 0x04, 0x92, 0x49, 0x24, 0x00, 0x00, 0x00, 0x92, 0x49, 0x2B, 0x3D, 0x00, }; const struct IrCode code_eu136Code PROGMEM = { freq_to_timerval(38462), 38, // # of pairs 3, // # of bits per index code_na004Times, code_eu136Codes }; const uint16_t code_eu137Times[] PROGMEM = { 86, 91, 87, 90, 87, 180, 87, 8868, 88, 0, 174, 90, }; const uint8_t code_eu137Codes[] PROGMEM = { 0x14, 0x95, 0x4A, 0x35, 0x9A, 0x4A, 0xA5, 0x1B, 0x00, }; const struct IrCode code_eu137Code PROGMEM = { freq_to_timerval(35714), 22, // # of pairs 3, // # of bits per index code_eu137Times, code_eu137Codes }; const uint16_t code_eu138Times[] PROGMEM = { 4, 1036, 4, 1507, 4, 3005, }; const uint8_t code_eu138Codes[] PROGMEM = { 0x05, 0x60, 0x54, }; const struct IrCode code_eu138Code PROGMEM = { 0, // Non-pulsed code 11, // # of pairs 2, // # of bits per index code_eu138Times, code_eu138Codes }; const uint16_t code_eu139Times[] PROGMEM = { 0, 0, 14, 141, 14, 452, 14, 607, 14, 6310, }; const uint8_t code_eu139Codes[] PROGMEM = { 0x64, 0x92, 0x4A, 0x24, 0x92, 0xE3, 0x24, 0x92, 0x51, 0x24, 0x96, 0x00, }; const struct IrCode code_eu139Code PROGMEM = { 0, // Non-pulsed code 30, // # of pairs 3, // # of bits per index code_eu139Times, code_eu139Codes }; #endif #endif //////////////////////////////////////////////////////////////// const struct IrCode *NApowerCodes[] PROGMEM = { #ifdef NA_CODES &code_na000Code, &code_na001Code, &code_na002Code, &code_na003Code, &code_na004Code, &code_na005Code, &code_na006Code, &code_na007Code, &code_na008Code, &code_na009Code, &code_na010Code, &code_na011Code, &code_na012Code, &code_na013Code, &code_na014Code, &code_na015Code, &code_na016Code, &code_na017Code, &code_na018Code, &code_na019Code, &code_na020Code, &code_na021Code, &code_na022Code, &code_na023Code, &code_na024Code, &code_na025Code, &code_na026Code, &code_na027Code, &code_na028Code, &code_na029Code, &code_na030Code, &code_na031Code, &code_na032Code, &code_na033Code, &code_na034Code, &code_na035Code, &code_na036Code, &code_na037Code, &code_na038Code, &code_na039Code, &code_na040Code, &code_na041Code, &code_na042Code, &code_na043Code, &code_na044Code, &code_na045Code, &code_na046Code, &code_na047Code, &code_na048Code, &code_na049Code, &code_na050Code, &code_na051Code, &code_na052Code, &code_na053Code, &code_na054Code, &code_na055Code, &code_na056Code, &code_na057Code, &code_na058Code, &code_na059Code, &code_na060Code, &code_na061Code, &code_na062Code, &code_na063Code, &code_na064Code, &code_na065Code, &code_na066Code, &code_na067Code, &code_na068Code, &code_na069Code, &code_na070Code, &code_na071Code, &code_na072Code, &code_na073Code, &code_na074Code, &code_na075Code, &code_na076Code, &code_na077Code, &code_na078Code, &code_na079Code, &code_na080Code, &code_na081Code, &code_na082Code, &code_na083Code, &code_na084Code, &code_na085Code, &code_na086Code, &code_na087Code, &code_na088Code, &code_na089Code, &code_na090Code, &code_na091Code, &code_na092Code, &code_na093Code, &code_na094Code, &code_na095Code, &code_na096Code, &code_na097Code, &code_na098Code, &code_na099Code, &code_na100Code, &code_na101Code, &code_na102Code, &code_na103Code, &code_na104Code, &code_na105Code, &code_na106Code, &code_na107Code, &code_na108Code, &code_na109Code, &code_na110Code, &code_na111Code, &code_na112Code, &code_na113Code, &code_na114Code, #ifndef EU_CODES &code_na115Code, &code_na116Code, &code_na117Code, &code_na118Code, &code_na119Code, &code_na120Code, &code_na121Code, &code_na122Code, &code_na123Code, &code_na124Code, &code_na125Code, &code_na126Code, &code_na127Code, &code_na128Code, &code_na129Code, &code_na130Code, &code_na131Code, &code_na132Code, &code_na133Code, &code_na134Code, &code_na135Code, &code_na136Code, #endif #endif }; const struct IrCode *EUpowerCodes[] PROGMEM = { #ifdef EU_CODES &code_eu000Code, &code_eu001Code, &code_eu002Code, &code_na000Code, // same as &code_eu003Code &code_eu004Code, &code_eu005Code, &code_eu006Code, &code_eu007Code, &code_eu008Code, &code_na005Code, // same as &code_eu009Code &code_na004Code, // same as &code_eu010Code &code_eu011Code, &code_eu012Code, &code_eu013Code, &code_na021Code, // same as &code_eu014Code &code_eu015Code, &code_eu016Code, &code_eu017Code, &code_eu018Code, &code_eu019Code, &code_eu020Code, &code_eu021Code, &code_eu022Code, &code_na022Code, // same as &code_eu023Code &code_eu024Code, &code_eu025Code, &code_eu026Code, &code_eu027Code, &code_eu028Code, &code_eu029Code, &code_eu030Code, &code_eu031Code, &code_eu032Code, &code_eu033Code, &code_eu034Code, //&code_eu035Code, same as eu009 &code_eu036Code, &code_eu037Code, &code_eu038Code, &code_eu039Code, &code_eu040Code, &code_eu041Code, &code_eu042Code, &code_eu043Code, &code_eu044Code, &code_eu045Code, &code_eu046Code, &code_eu047Code, &code_eu048Code, &code_eu049Code, &code_eu050Code, &code_eu051Code, &code_eu052Code, &code_eu053Code, &code_eu054Code, &code_eu055Code, &code_eu056Code, //&code_eu057Code, same as eu008 &code_eu058Code, &code_eu059Code, &code_eu060Code, &code_eu061Code, &code_eu062Code, &code_eu063Code, &code_eu064Code, &code_eu065Code, &code_eu066Code, &code_eu067Code, &code_eu068Code, &code_eu069Code, &code_eu070Code, &code_eu071Code, &code_eu072Code, &code_eu073Code, &code_eu074Code, &code_eu075Code, &code_eu076Code, &code_eu077Code, &code_eu078Code, &code_eu079Code, &code_eu080Code, &code_eu081Code, &code_eu082Code, &code_eu083Code, &code_eu084Code, &code_eu085Code, &code_eu086Code, &code_eu087Code, &code_eu088Code, &code_eu089Code, &code_eu090Code, &code_eu091Code, &code_eu092Code, &code_eu093Code, &code_eu094Code, &code_eu095Code, &code_eu096Code, &code_eu097Code, &code_eu098Code, &code_eu099Code, &code_eu100Code, &code_eu101Code, &code_eu102Code, &code_eu103Code, &code_eu104Code, &code_eu105Code, &code_eu106Code, &code_eu107Code, &code_eu108Code, &code_eu109Code, &code_eu110Code, &code_eu111Code, &code_eu112Code, &code_eu113Code, &code_eu114Code, #ifndef NA_CODES &code_eu115Code, &code_eu116Code, &code_eu117Code, &code_eu118Code, &code_eu119Code, &code_eu120Code, &code_eu121Code, &code_eu122Code, &code_eu123Code, &code_eu124Code, &code_eu125Code, &code_eu126Code, &code_eu127Code, &code_eu128Code, &code_eu129Code, &code_eu130Code, &code_eu131Code, &code_eu132Code, &code_eu133Code, &code_eu134Code, &code_eu135Code, &code_eu136Code, &code_eu137Code, &code_eu138Code, &code_eu139Code, #endif #endif }; uint8_t num_NAcodes = NUM_ELEM(NApowerCodes); uint8_t num_EUcodes = NUM_ELEM(EUpowerCodes);
[ [ [ 1, 8976 ] ] ]
13c912bd7beab2a434fdaeb09762cf41cb2da481
10dae5a20816dba197ecf76d6200fd1a9763ef97
/src/tree.h
a28e90bbe23936d0802de37c1147338dedabfd7f
[]
no_license
peterdfields/quantiNEMO_Taylor2010
fd43aba9b1fcf504132494ff63d08a9b45b3f683
611b46bf89836c4327fe64abd7b4008815152c9f
refs/heads/master
2020-02-26T17:33:24.396350
2011-02-08T23:08:34
2011-02-08T23:08:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,738
h
/** @file tree.h * * Copyright (C) 2006 Frederic Guillaume <[email protected]> * Copyright (C) 2008 Samuel Neuenschwander <[email protected]> * * quantiNEMO: * quantiNEMO is an individual-based, genetically explicit stochastic * simulation program. It was developed to investigate the effects of * selection, mutation, recombination, and drift on quantitative traits * with varying architectures in structured populations connected by * migration and located in a heterogeneous habitat. * * quantiNEMO is built on the evolutionary and population genetics * programming framework NEMO (Guillaume and Rougemont, 2006, Bioinformatics). * * * Licensing: * This file is part of quantiNEMO. * * quantiNEMO is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * quantiNEMO is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with quantiNEMO. If not, see <http://www.gnu.org/licenses/>. */ #ifndef treeH #define treeH #include <iostream> using namespace std; #include "node.h" #include "output.h" /**A class to compute phenotypes with epitasis, is an aggregate of Node.*/ template <class T> class Tree { private: /**The depth of the tree as determined by the number of locus of the trait*/ unsigned int _nb_locus; /**The number of branches per node, determined by the number of possible genotypes at a locus.*/ unsigned int _nb_branches; /**The number of allelic states of the trait.*/ unsigned int _nb_all; /**The first Node, root of the tree.*/ Node _root; /**A nb_all x nb_all matrix used to convert a locus genotype into a unique value (the coordinate of that locus).*/ unsigned int** _mapper; /**a _nb_branches*ploidy matrix to get back the allelic combination from the _coord.*/ T** _un_mapper; /**A table of length = number of locus, the coordinate of the genotype in the tree after its mapping.*/ unsigned int * _coord; public: Tree (unsigned int nbloc, unsigned int nball); ~Tree (); /**Gives the phenotype of the genotype given in argument.*/ double get_value(T** genotype); double get_first(T** genotype); double get_next (T** genotype); void set_value(T** genotype, double value); }; #endif //TREE_H
[ [ [ 1, 77 ] ] ]
3bde5b3e48ac3adba717f8f0b816c36721d051ac
1ab9457b2e2183ec8275a9713d8c7cbb48c835d1
/Source/Common/BWAPI/include/BWTA/RectangleArray.h
44f774feeedbce0b0ca01fa61e555faa743f4906
[]
no_license
ianfinley89/emapf-starcraft-ai
0f6ca09560092e798873b6b5dda01d463fa71518
b1bf992dff681a7feb618b7a781bacc61d2d477d
refs/heads/master
2020-05-19T20:52:17.080667
2011-03-04T11:59:46
2011-03-04T11:59:46
32,126,953
1
0
null
null
null
null
UTF-8
C++
false
false
9,259
h
#pragma once namespace BWTA { /** * Template used for work with dynamically initialized array with dimension 2. */ template <class Type> class RectangleArray { public : /** * Creates the array with the specified proportions. * @param width Width of the new array. * @param height Height of the new array. */ RectangleArray(unsigned int width = 1, unsigned int height = 1, Type* data = NULL); /** Copy constructor */ RectangleArray(const RectangleArray<Type>& rectangleArray); /** Destorys the array and deletes all content of array. */ ~RectangleArray(void); /** * Gets the width of the array. * @return width of the array. */ unsigned int getWidth(void) const; /** * Gets the height of the array. * @return height of the array. */ unsigned int getHeight(void) const; /** * Gets item of the array on the specified position. * @param x horizontal index of the array position. * @param y vertical index of the array position. * @return item on the specified position. */ Type* getItem(unsigned int x, unsigned int y); inline Type* operator[](int i) { return this->getColumn(i); } inline Type const * const operator[](int i) const {return this->getColumn(i); } /** * Sets item of the array on the specified position. * @param x horizontal index of the array position. * @param y vertical index of the array position. * @param item new value of the field. */ void setItem(unsigned int x, unsigned int y, Type *item); void resize(unsigned int width, unsigned int height); void printToFile(FILE* f); void saveToFile(const std::string& fileName); /** Sets all fields of the array to the specified value */ void setTo(const Type& value); void setBorderTo(const Type& value); private : bool owner; /** width of array */ unsigned int width; /** height of array */ unsigned int height; /** Array data, stored as linear array of size width*height */ Type *data; /** Pointers to begins of lines*/ Type **columns; /** * Gets data item on the specified index * @param index index of the data to be returned. */ Type getData(unsigned int index); /** * Gets the pointer in data to the beginning of line with the specified * index. * @param index index of the line. */ Type *getColumn(unsigned int index); /** * Gets the pointer in data to the beginning of line with the specified * index. * @param index index of the line. */ const Type *getColumn(unsigned int index) const; /** * Sets the width of the array. * @param width New width of the array. */ void setWidth(unsigned int width); /** * Sets the height of the array. * @param height New height of the array. */ void setHeight(unsigned int height); }; //---------------------------------------------- CONSTRUCTOR ----------------------------------------------- template <class Type> RectangleArray<Type>::RectangleArray(unsigned int width, unsigned int height, Type* data) { this->setWidth(width); this->setHeight(height); this->owner = (data == NULL); if (this->owner) this->data = new Type[this->getWidth()*this->getHeight()]; else this->data = data; columns = new Type*[this->getWidth()]; unsigned int i = 0; for (unsigned int position = 0;i < width; i ++,position += height) columns[i] = &this->data[position]; } //---------------------------------------------- CONSTRUCTOR ----------------------------------------------- template <class Type> RectangleArray<Type>::RectangleArray(const RectangleArray<Type>& rectangleArray) :owner(true) { this->setWidth(rectangleArray.getWidth()); this->setHeight(rectangleArray.getHeight()); this->data = new Type[this->getWidth()*this->getHeight()]; columns = new Type*[this->getWidth()]; unsigned int i = 0; for (unsigned int position = 0;i < width; i ++,position += height) columns[i] = &data[position]; memcpy(this->data, rectangleArray.data, sizeof(Type)*this->getWidth()*this->getHeight()); } //----------------------------------------------- DESTRUCTOR ----------------------------------------------- template <class Type> RectangleArray<Type>::~RectangleArray(void) { delete [] columns; if (this->owner) delete [] data; } //----------------------------------------------- GET WIDTH ------------------------------------------------ template <class Type> unsigned int RectangleArray<Type>::getWidth(void) const { return this->width; } //----------------------------------------------- SET WIDTH ------------------------------------------------ template <class Type> void RectangleArray<Type>::setWidth(unsigned int width) { this->width = width; } //----------------------------------------------- GET HEIGHT ----------------------------------------------- template <class Type> unsigned int RectangleArray<Type>::getHeight(void) const { return this->height; } //----------------------------------------------- SET HEIGHT ----------------------------------------------- template <class Type> void RectangleArray<Type>::setHeight(unsigned int height) { this->height = height; } //------------------------------------------------ GET ITEM ------------------------------------------------ template <class Type> Type* RectangleArray<Type>::getItem(unsigned int x, unsigned int y) { return &(this->getColumn(x)[y]); } //------------------------------------------------ SET ITEM ------------------------------------------------ template <class Type> void RectangleArray<Type>::setItem(unsigned int x, unsigned int y, Type* item) { this->getColumn(x)[y] = *item; } //------------------------------------------------ GET LINE ------------------------------------------------ template <class Type> Type* RectangleArray<Type>::getColumn(unsigned int index) { return columns[index]; } //------------------------------------------------ GET LINE ------------------------------------------------ template <class Type> const Type* RectangleArray<Type>::getColumn(unsigned int index) const { return columns[index]; } //------------------------------------------------- RESIZE ------------------------------------------------- template <class Type> void RectangleArray<Type>::resize(unsigned int width, unsigned int height) { if (this->getWidth() == width && this->getHeight() == height) return; delete [] this->columns; delete [] this->data; this->setWidth(width); this->setHeight(height); this->data = new Type[this->width * this->height]; this->columns = new Type*[this->width]; unsigned int i = 0; for (unsigned int position = 0;i < this->width; i ++,position += this->height) columns[i] = &data[position]; } //--------------------------------------------- PRINT TO FILE ---------------------------------------------- template <class Type> void RectangleArray<Type>::printToFile(FILE* f) { for (unsigned int y = 0; y < this->getHeight(); y++) { for (unsigned int x = 0; x < this->getWidth(); x++) { char ch = (char) this->getColumn(x)[y]; fprintf_s(f, "%c", ch); } fprintf_s(f, "\n"); } } //---------------------------------------------- SAVE TO FILE ---------------------------------------------- template <class Type> void RectangleArray<Type>::saveToFile(const std::string& fileName) { FILE* f = fopen(fileName.c_str(), "wt"); if (!f) exit(1); this->printToFile(f); fclose(f); } //------------------------------------------------- SET TO ------------------------------------------------- template <class Type> void RectangleArray<Type>::setTo(const Type& value) { for (unsigned int i = 0; i < this->getWidth()*this->getHeight(); i++) this->data[i] = value; } //--------------------------------------------- SET BORDER TO ---------------------------------------------- template <class Type> void RectangleArray<Type>::setBorderTo(const Type& value) { for (unsigned int i = 0; i < this->width; i++) { this->getColumn(i)[0] = value; this->getColumn(i)[this->height - 1] = value; } for (unsigned int i = 0; i < this->height; i++) { this->getColumn(0)[i] = value; this->getColumn(this->width - 1)[i] = value; } } //---------------------------------------------------------------------------------------------------------- }
[ "[email protected]@26a4d94b-85da-9150-e52c-6e401ef01510" ]
[ [ [ 1, 248 ] ] ]
b7fb40a704cab622fc7db2dde75bcddd3e7e274c
0c5fd443401312fafae18ea6a9d17bac9ee61474
/code/engine/AudioBlaster/StreamWatch.cpp
f270cd9edc385bfc906de181b5fc332cc70775ef
[]
no_license
nurF/Brute-Force-Game-Engine
fcfebc997d6ab487508a5706b849e9d7bc66792d
b930472429ec6d6f691230e36076cd2c868d853d
refs/heads/master
2021-01-18T09:29:44.038036
2011-12-02T17:31:59
2011-12-02T17:31:59
2,877,061
1
0
null
null
null
null
UTF-8
C++
false
false
5,715
cpp
/* ___ _________ ____ __ / _ )/ __/ ___/____/ __/___ ___ _/_/___ ___ / _ / _// (_ //___/ _/ / _ | _ `/ // _ | -_) /____/_/ \___/ /___//_//_|_, /_//_//_|__/ /___/ This file is part of the Brute-Force Game Engine, BFG-Engine For the latest info, see http://www.brute-force-games.com Copyright (c) 2011 Brute-Force Games GbR The BFG-Engine is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The BFG-Engine is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the BFG-Engine. If not, see <http://www.gnu.org/licenses/>. */ #include <AudioBlaster/StreamWatch.h> #include <boost/foreach.hpp> #include <Base/Cpp.h> #include <Base/CLogger.h> #include <Core/ClockUtils.h> #include <AudioBlaster/HelperFunctions.h> namespace BFG { namespace Audio { StreamWatch::StreamWatch(const std::vector<std::string>& fileList): mEventLoop(true, new EventSystem::BoostThread<>("StreamWatchWorkerThread.")) { init(fileList); mEventLoop.addEntryPoint(new Base::CEntryPoint(pseudoEntryPoint)); mEventLoop.registerLoopEventListener(this, &StreamWatch::loopEventHandler); mEventLoop.run(); mState = RUNNING; }; StreamWatch::~StreamWatch() { mEventLoop.setExitFlag(true); mEventLoop.doLoop(); // Let a little time for the event system to clean up it's stuff dbglog << "StreamWatch instance deleted."; boost::this_thread::sleep(boost::posix_time::milliseconds(200)); mBusyStreams.clear(); mReadyStreams.clear(); } void StreamWatch::init(const std::vector<std::string>& filelist) { BOOST_FOREACH(std::string str, filelist) { ReadyStreamsT::iterator it = mReadyStreams.find(str); if (it == mReadyStreams.end()) createStream(str); } } void StreamWatch::createStream(const std::string& streamName) { dbglog << "Lookup if ready stream already exists."; boost::mutex::scoped_lock lock(mMutex); ReadyStreamsT::iterator it = mReadyStreams.find(streamName); if (it != mReadyStreams.end()) { dbglog << "Stream of that file already exists. Continue without creating new stream object."; return; } dbglog << "Creating stream of: "+streamName; mReadyStreams[streamName] = boost::shared_ptr<Stream>(new Stream(streamName)); dbglog << "Stream created"; } ALuint StreamWatch::demandStream(const std::string& streamName, boost::function<void (void)> onFinishCallback, ALuint aSourceId) { ReadyStreamsT::iterator it = mReadyStreams.find(streamName); if (it == mReadyStreams.end()) throw std::logic_error("Stream ID not known at StreamWatch::demandStream."); boost::shared_ptr<Stream> tempPtr = it->second; ALuint sourceId; if (!aSourceId) { // Read error memory to get a valid result. ALenum error = alGetError(); alGenSources(1, &sourceId); error = alGetError(); if (error != AL_NO_ERROR) throw std::logic_error("Creation of OpenAl source failed at StreamWatch::demandStream. AL_Error: "+stringifyAlError(error)); } else sourceId = aSourceId; if(!alIsSource(sourceId)) throw std::logic_error("Generated sourceID is no valid sourceID. Problem with OpenAL. Error at StreamWatch::demandStream."); tempPtr->startStream(sourceId, onFinishCallback); try { boost::mutex::scoped_lock lock(mMutex); dbglog << "Put stream to busy stream list."; mBusyStreams.push_back(tempPtr); dbglog << "Remove stream from ready stream list."; mReadyStreams.erase(it); } catch (std::exception e) { throw std::logic_error("Exception occurred while demanding a new stream."); } // Create a new stream with state 'ready'. If a stream of this file will requested again, a ready stream stands ready. createStream(streamName); return sourceId; } void StreamWatch::loopEventHandler(LoopEvent* loopEvent) { boost::this_thread::sleep(boost::posix_time::millisec(2)); // dbglog << "Enter loopEventHandler"; try { boost::mutex::scoped_lock lock(mMutex); erase_if(mBusyStreams, boost::bind(&Stream::state, _1) == Stream::FINISHED); } catch (std::exception e) { errlog << "Exception occurred while deleting finished stream with erase_if(..)"; throw std::logic_error("Exception occurred while deleting finished stream with erase_if(..)"); } StreamsT::iterator it = mBusyStreams.begin(); for(; it != mBusyStreams.end(); ++it) { //dbglog << "Next stream step."; boost::mutex::scoped_lock lock(mMutex); (*it)->nextStreamStep(); } } void StreamWatch::idle() { if (mState == RUNNING) { mEventLoop.unregisterLoopEventListener(this); mBusyStreams.clear(); mState = IDLE; } else throw std::logic_error("Calling StreamWatch::idle() not allowed while state is not RUNNING."); } void StreamWatch::freeze() { if (mState == RUNNING) { mEventLoop.unregisterLoopEventListener(this); mState = FREEZED; } else throw std::logic_error("Calling StreamWatch::freeze() not allowed while state is not RUNNING."); } void StreamWatch::reactivate() { mEventLoop.registerLoopEventListener(this, &StreamWatch::loopEventHandler); mState = RUNNING; } } // namespace AudioBlaster } // namespace BFG
[ [ [ 1, 199 ] ] ]
9345fbbf8112612c105ad9b27c46553bb8d24fa3
fcdddf0f27e52ece3f594c14fd47d1123f4ac863
/TeCom/src/Tdk/Header Files/TdkAbstractClipboard.h
bf007e1caf4a17700f948a2978b3304a703db7a5
[]
no_license
radtek/terra-printer
32a2568b1e92cb5a0495c651d7048db6b2bbc8e5
959241e52562128d196ccb806b51fda17d7342ae
refs/heads/master
2020-06-11T01:49:15.043478
2011-12-12T13:31:19
2011-12-12T13:31:19
null
0
0
null
null
null
null
ISO-8859-2
C++
false
false
1,527
h
/****************************************************************************** * FUNCATE - GIS development team * * TerraLib Components - TeCOM * * @(#) TdkAbstractClipboard.h * ******************************************************************************* * * $Rev$: * * $Author: rui.gregorio $: * * $Date: 2010/09/14 18:19:47 $: * ******************************************************************************/ // Elaborated by Rui Mauricio Gregório #ifndef __TDK_CLIPBOARD_H #define __TDK_CLIPBOARD_H //! \class TdkAbstractClipboard /*! Abstract class to manipulate the clipboard */ class TdkAbstractClipboard { protected: //! \brief registerFormat /*! Method to register the proprietary format */ virtual bool registerFormat() = 0; public : //! \brief Constructor TdkAbstractClipboard(); //! \brief Destructor virtual ~TdkAbstractClipboard(); //! \brief copy /*! Copy the unsigned char array to clipboard area \param buff unsigned char array \param size size array \return returns true whether sucess */ virtual bool copy(unsigned char *buff, const unsigned int &size) = 0; //! \brief paste /*! Paste the unsigned char arrray from clipboard area \param size size arrya \return returns the unsigned char array */ virtual unsigned char *paste(unsigned int &size) = 0; //! \brief isEmpty /*! Returns if clipboard has a layout object */ virtual bool isEmpty() = 0; }; #endif // end __TDK_CLIPBOARD_H
[ "[email protected]@58180da6-ba8b-8960-36a5-00cc02a3ddec" ]
[ [ [ 1, 69 ] ] ]
1a7aa18822d8038c61c01849f30088c62e721e4b
4aadb120c23f44519fbd5254e56fc91c0eb3772c
/Source/opensteer/src/PluginRegistry.cpp
de6dcef728f96fb1f6f73844e25d329a6c49d7c1
[ "MIT" ]
permissive
janfietz/edunetgames
d06cfb021d8f24cdcf3848a59cab694fbfd9c0ba
04d787b0afca7c99b0f4c0692002b4abb8eea410
refs/heads/master
2016-09-10T19:24:04.051842
2011-04-17T11:00:09
2011-04-17T11:00:09
33,568,741
0
0
null
null
null
null
UTF-8
C++
false
false
8,879
cpp
//----------------------------------------------------------------------------- // Copyright (c) 2009, Jan Fietz, Cyrus Preuss // 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 EduNetGames 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 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. //----------------------------------------------------------------------------- #include "OpenSteer/PluginRegistry.h" #include "OpenSteer/Camera.h" #include "OpenSteer/SimpleVehicle.h" #include "OpenSteer/GlobalData.h" //----------------------------------------------------------------------------- namespace OpenSteer { PluginRegistry::PluginRegistry( void ): m_pkSelectedPlugin(NULL), m_itemsInRegistry(0), m_on_plugin_selected_func(NULL) { } PluginRegistry::~PluginRegistry( void ) { } PluginRegistry* PluginRegistry::accessInstance( void ) { return GlobalData::accessPluginRegistry(); } //------------------------------------------------------------------------- OpenSteer::AbstractPlugin* PluginRegistry::findNextPlugin( const AbstractPlugin* pkThis ) const { for (size_t i = 0; i < this->m_itemsInRegistry; i++) { if (pkThis == this->m_registry[i]) { const bool atEnd = (i == (this->m_itemsInRegistry - 1)); return this->m_registry [atEnd ? 0 : i + 1]; } } return NULL; } //------------------------------------------------------------------------- int PluginRegistry::getPluginIdx( const AbstractPlugin* pkPlugin ) const { for (size_t i = 0; i < this->m_itemsInRegistry; ++i) { if (pkPlugin == this->m_registry[i]) { return i; } } return -1; } //------------------------------------------------------------------------- // search the class this->m_registry for a Plugin with the given name // returns NULL if none is found OpenSteer::AbstractPlugin* PluginRegistry::findByName (const char* string) const { if ( string && string[0] ) { for (size_t i = 0; i < this->m_itemsInRegistry; i++) { AbstractPlugin* pi = this->m_registry[i]; AbstractEntity* pe = dynamic_cast<AbstractEntity*>(pi); if( pe != NULL ) { const char* s = pe->name(); if (s && (strcmp (string, s) == 0)) return pi; } } } return NULL; } //------------------------------------------------------------------------- // apply a given function to all Plugins in the this->m_registry void PluginRegistry::applyToAll( plugInCallBackFunction f ) { for (size_t i = 0; i < this->m_itemsInRegistry; i++) { f(*this->m_registry[i]); } } //------------------------------------------------------------------------- // sort Plugin this->m_registry by "selection order" // // XXX replace with STL utilities void PluginRegistry::sortBySelectionOrder (void) { // I know, I know, just what the world needs: // another inline shell sort implementation... // starting at each of the first n-1 elements of the array for (size_t i = 0; i < this->m_itemsInRegistry-1; i++) { // scan over subsequent pairs, swapping if larger value is first for (size_t j = i+1; j < this->m_itemsInRegistry; j++) { const float iKey = this->m_registry[i]->selectionOrderSortKey (); const float jKey = this->m_registry[j]->selectionOrderSortKey (); if (iKey > jKey) { AbstractPlugin* temporary = this->m_registry[i]; this->m_registry[i] = this->m_registry[j]; this->m_registry[j] = temporary; } } } } //------------------------------------------------------------------------- // returns pointer to default Plugin (currently, first in this->m_registry) OpenSteer::AbstractPlugin* PluginRegistry::findDefault (void) const { // return NULL if no PlugIns exist if (this->m_itemsInRegistry == 0) return NULL; // otherwise, return the first Plugin that requests initial selection for (size_t i = 0; i < this->m_itemsInRegistry; i++) { if (this->m_registry[i]->requestInitialSelection ()) return this->m_registry[i]; } // otherwise, return the "first" Plugin (in "selection order") return this->m_registry[0]; } //------------------------------------------------------------------------- // save this instance in the class's this->m_registry of instances // (for use by contractors) void PluginRegistry::addToRegistry (AbstractPlugin* pkPlugin) { // save this instance in the this->m_registry this->m_registry[this->m_itemsInRegistry++] = pkPlugin; } //------------------------------------------------------------------------- // return a group (an STL vector of AbstractVehicle pointers) of all // vehicles(/agents/characters) defined by the currently selected Plugin const OpenSteer::AVGroup& PluginRegistry::allVehiclesOfSelectedPlugin (void) const { static OpenSteer::AVGroup kTrash; if(this->getSelectedPlugin() ) return this->getSelectedPlugin()->allVehicles (); else return kTrash; } //------------------------------------------------------------------------- void PluginRegistry::selectPlugin( AbstractPlugin* pkPlugin ) { if( pkPlugin == this->getSelectedPlugin() ) { return; } if( NULL != this->getSelectedPlugin() ) { this->getSelectedPlugin()->close(); } // selected vehicle SimpleVehicle::setSelectedVehicle( NULL ); this->setSelectedPlugin( pkPlugin ); if( NULL != this->getSelectedPlugin() ) { this->getSelectedPlugin()->prepareOpen(); // note: call the application // might initialize the gui if( NULL != this->m_on_plugin_selected_func ) { this->m_on_plugin_selected_func( this->getSelectedPlugin() ); } this->getSelectedPlugin()->open(); } } //------------------------------------------------------------------------- // select the "next" plug-in, cycling through "plug-in selection order" void PluginRegistry::selectNextPlugin (void) { if( NULL == this->getSelectedPlugin() ) { return; } this->selectPlugin( this->getSelectedPlugin()->next () ); } //------------------------------------------------------------------------- // select the plug-in by index void PluginRegistry::selectPluginByIndex (size_t idx) { AbstractPlugin* p = this->getPluginAt( idx ); if( ( NULL != p ) && (p != this->getSelectedPlugin()) ) { this->selectPlugin( p ); } } //------------------------------------------------------------------------- // handle function keys an a per-plug-in basis void PluginRegistry::functionKeyForPlugin( int keyNumber ) const { if( NULL == this->getSelectedPlugin() ) { return; } this->getSelectedPlugin()->handleFunctionKeys (keyNumber); } //------------------------------------------------------------------------- // return name of currently selected plug-in const char* PluginRegistry::nameOfSelectedPlugin (void) const { return (this->getSelectedPlugin() ? this->getSelectedPlugin()->pluginName() : "no Plugin"); } //------------------------------------------------------------------------- // reset the currently selected plug-in void PluginRegistry::resetSelectedPlugin (void) { if( NULL == this->getSelectedPlugin() ) { return; } // selected vehicle SimpleVehicle::setSelectedVehicle( NULL ); this->getSelectedPlugin()->reset (); } } //! namespace OpenSteer
[ "janfietz@localhost" ]
[ [ [ 1, 276 ] ] ]
c64800c58ce9b5fe8ab3905f9a52a78cb65e2cb8
dde32744a06bb6697823975956a757bd6c666e87
/bwapi/SCProjects/BTHAIModule/Source/AgentFactory.h
fc0a99143da3053d936bf5a5bccc784be6a4ba45
[]
no_license
zarac/tgspu-bthai
30070aa8f72585354ab9724298b17eb6df4810af
1c7e06ca02e8b606e7164e74d010df66162c532f
refs/heads/master
2021-01-10T21:29:19.519754
2011-11-16T16:21:51
2011-11-16T16:21:51
2,533,389
0
0
null
null
null
null
UTF-8
C++
false
false
1,240
h
#ifndef __AGENTFACTORY_H__ #define __AGENTFACTORY_H__ #include "BaseAgent.h" using namespace BWAPI; using namespace std; /** The agent system is built from a single base agent where all specific agents extends the base agent indirectly or directly. * The AgentFactory class is a factory that creates the correct BaseAgent instance for a specific unit. This class shall always * be used when a new agent is requested. * * The AgentFactory is implemented as a singleton class. Each class that needs to access AgentFactory can request an instance, * and all classes shares the same AgentFactory instance. * * Author: Johan Hagelback ([email protected]) */ class AgentFactory { private: AgentFactory(); static AgentFactory* instance; static bool instanceFlag; BaseAgent* createTerranAgent(Unit* unit); BaseAgent* createProtossAgent(Unit* unit); BaseAgent* createZergAgent(Unit* unit); public: ~AgentFactory(); /** Returns the instance to the class. */ static AgentFactory* getInstance(); /** Creates the BaseAgent */ BaseAgent* createAgent(Unit* unit); /** Returns true if the unit is of the specified type. */ bool isOfType(Unit* unit, UnitType type); }; #endif
[ "rymdpung@.(none)", "[email protected]" ]
[ [ [ 1, 25 ], [ 27, 42 ] ], [ [ 26, 26 ] ] ]
a6293a8054afdf8f948e0229aa2678dd0bf969c2
23e9e5636c692364688bc9e4df59cb68e2447a58
/Dream/src/Game/YGECEGUIAdapter.cpp
4aecd56c3be3b1206631b531a0591783eb192244
[]
no_license
yestein/dream-of-idle
e492af2a4758776958b43e4bf0e4db859a224c40
4e362ab98f232d68535ea26f2fab7b3cbf7bc867
refs/heads/master
2016-09-09T19:49:18.215943
2010-04-23T07:24:19
2010-04-23T07:24:19
34,108,886
0
0
null
null
null
null
UTF-8
C++
false
false
336
cpp
/************************************************************************ filename: YGECEGUIAdapter.h created: 2010/4/4 author: Yulei purpose: A Adapter for Cegui ************************************************************************/ #include "YGECEGUIAdapter.h" bool YGECEGUIAdpater::CEGUIInit( ) { return true; }
[ "yestein86@6bb0ce84-d3d1-71f5-47c4-2d9a3e80541b" ]
[ [ [ 1, 14 ] ] ]
2bc4547ae24f0a0c97820e47706774b16fa410d8
df238aa31eb8c74e2c208188109813272472beec
/BCGInclude/BCGPRibbonQuickAccessToolbar.h
81207f4bdf1f076d09a207dffcc78f0cc395167e
[]
no_license
myme5261314/plugin-system
d3166f36972c73f74768faae00ac9b6e0d58d862
be490acba46c7f0d561adc373acd840201c0570c
refs/heads/master
2020-03-29T20:00:01.155206
2011-06-27T15:23:30
2011-06-27T15:23:30
39,724,191
0
0
null
null
null
null
UTF-8
C++
false
false
3,113
h
//******************************************************************************* // COPYRIGHT NOTES // --------------- // This is a part of BCGControlBar Library Professional Edition // Copyright (C) 1998-2008 BCGSoft Ltd. // All rights reserved. // // This source code can be used, distributed or modified // only under terms and conditions // of the accompanying license agreement. //******************************************************************************* // // BCGPRibbonQuickAccessToolbar.h: interface for the CBCGPRibbonQuickAccessToolbar class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_BCGPRIBBONQUICKACCESSTOOLBAR_H__07D110EE_3743_4DE1_A7BC_53DA14E7089B__INCLUDED_) #define AFX_BCGPRIBBONQUICKACCESSTOOLBAR_H__07D110EE_3743_4DE1_A7BC_53DA14E7089B__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "BCGCBPro.h" #ifndef BCGP_EXCLUDE_RIBBON #include "BCGPRibbonButtonsGroup.h" #include "BCGPRibbonButton.h" //////////////////////////////////////////////////////// // CBCGPRibbonQuickAccessToolbar class class CBCGPRibbonQuickAccessCustomizeButton; class BCGCBPRODLLEXPORT CBCGPRibbonQATDefaultState { friend class CBCGPRibbonQuickAccessToolbar; friend class CBCGPRibbonBar; public: CBCGPRibbonQATDefaultState(); void AddCommand (UINT uiCmd, BOOL bIsVisible = TRUE); void RemoveAll (); void CopyFrom (const CBCGPRibbonQATDefaultState& src); protected: CArray<UINT,UINT> m_arCommands; CArray<BOOL,BOOL> m_arVisibleState; }; class BCGCBPRODLLEXPORT CBCGPRibbonQuickAccessToolbar : public CBCGPRibbonButtonsGroup { DECLARE_DYNCREATE(CBCGPRibbonQuickAccessToolbar) friend class CBCGPRibbonBar; friend class CBCGPRibbonQuickAccessCustomizeButton; friend class CBCGPBaseRibbonElement; friend class CBCGPRibbonCustomizePage; public: CBCGPRibbonQuickAccessToolbar(); virtual ~CBCGPRibbonQuickAccessToolbar(); protected: void SetCommands ( CBCGPRibbonBar* pRibbonBar, const CList<UINT,UINT>& lstCommands, LPCTSTR lpszToolTip); void SetCommands ( CBCGPRibbonBar* pRibbonBar, const CList<UINT,UINT>& lstCommands, CBCGPRibbonQuickAccessCustomizeButton* pCustButton); void GetCommands (CList<UINT,UINT>& lstCommands); void GetDefaultCommands (CList<UINT,UINT>& lstCommands); void ReplaceCommands (const CList<UINT,UINT>& lstCommands); void ResetCommands (); int GetActualWidth () const; virtual CSize GetRegularSize (CDC* pDC); virtual void OnAfterChangeRect (CDC* pDC); virtual BOOL IsQAT () const { return TRUE; } void Add (CBCGPBaseRibbonElement* pElem); void Remove (CBCGPBaseRibbonElement* pElem); void RebuildHiddenItems (); CRect GetCommandsRect () const { return m_rectCommands; } void RebuildKeys (); protected: CBCGPRibbonQATDefaultState m_DefaultState; CRect m_rectCommands; }; #endif // BCGP_EXCLUDE_RIBBON #endif // !defined(AFX_BCGPRIBBONQUICKACCESSTOOLBAR_H__07D110EE_3743_4DE1_A7BC_53DA14E7089B__INCLUDED_)
[ "myme5261314@ec588229-7da7-b333-41f6-0e1ebc3afda5" ]
[ [ [ 1, 112 ] ] ]
07e56d5d58c75231f74d34cfc63dac594121ce2a
0045750d824d633aba04e1d92987e91fb87e0ee7
/settings.h
3b62b5c9e201abd2ba3b3e46e053202c384824af
[]
no_license
mirelon/vlaciky
eaab3cbae7d7438c4fcb87d2b5582b0492676efc
30f5155479a3f3556199aa2d845fcac0c9a2d225
refs/heads/master
2020-05-23T15:05:26.370548
2010-06-16T18:55:52
2010-06-16T18:55:52
33,381,959
0
0
null
null
null
null
UTF-8
C++
false
false
684
h
#ifndef SETTINGS_H #define SETTINGS_H #include <QSettings> #include <QFile> class Settings { public: Settings(); void init(); void load(); QVariant getProp(QString propName,QVariant def=NULL); bool isset(QString propName); bool getBool(QString propName); int getInt(QString propName); QString getString(QString propName); void setProp(QString propName,QVariant value=1); /** * toggles value of property between 0 and 1 * */ void toggle(QString propName); void increment(QString propName,int value=1); void decrement(QString propName,int value=1); private: QSettings* s; QMap<QString,QVariant> prop; }; #endif // SETTINGS_H
[ "mirelon@a6d88fff-da04-0f23-7c93-28760c376c6a" ]
[ [ [ 1, 31 ] ] ]
4bb4d38f74de3bc69e8f0ec508738f4fd2d64b5c
2a3952c00a7835e6cb61b9cb371ce4fb6e78dc83
/BasicOgreFramework/Extensions/Graphic/RotatingSkyObject.cpp
6c6f763b9b9e0572a2ea9e21f9e09cb538f43ed4
[]
no_license
mgq812/simengines-g2-code
5908d397ef2186e1988b1d14fa8b73f4674f96ea
699cb29145742c1768857945dc59ef283810d511
refs/heads/master
2016-09-01T22:57:54.845817
2010-01-11T19:26:51
2010-01-11T19:26:51
32,267,377
0
0
null
null
null
null
UTF-8
C++
false
false
1,012
cpp
#include "RotatingSkyObject.h" using namespace Ogre; namespace CartoonCaelum { RotatingSkyObject::RotatingSkyObject ( SceneNode *pNode, int nDistance, Radian pitch ): m_pObjectNode(pNode), m_previousRotation(Radian(0)), m_nObjectDistance(nDistance), m_cyclePitch(pitch) { } RotatingSkyObject::~RotatingSkyObject() { } void RotatingSkyObject::moveObject(Radian degrees) { //add degree to the previously accumulated rotation, and calculate new position of object. m_previousRotation += degrees; int _newX = InternalUtilities::round(m_nObjectDistance*(Math::Sin(m_previousRotation, false))); int _newY = InternalUtilities::round(m_nObjectDistance*(Math::Cos(m_previousRotation, false))); int _newZ = InternalUtilities::round(_newY*(Math::Sin(m_cyclePitch, false))); m_pObjectNode->setPosition(Vector3(_newX, _newY, _newZ)); m_pObjectNode->lookAt(Vector3(0,0,0), Node::TransformSpace::TS_WORLD, Vector3::NEGATIVE_UNIT_Y); } }
[ "[email protected]@789472dc-e1c3-11de-81d3-db62269da9c1" ]
[ [ [ 1, 38 ] ] ]
06c3a242a4edb65b7ac5003beea2ee59611cce02
993635387a5f4868e442df7d4a0d87cc215069c1
/OMV/OMV/ReflectiveUI.cpp
0b58f6dce8ede468da56e879776d2b76326ffb4f
[]
no_license
windrobin/ogremeshviewer
90475b25f53f9d1aee821c150a8517ee4ee4d37d
679a2979320af09469894a6d99a90ec1adc5f658
refs/heads/master
2021-01-10T02:18:50.523143
2011-02-16T01:06:03
2011-02-16T01:06:03
43,444,741
0
2
null
null
null
null
UTF-8
C++
false
false
13,826
cpp
/* ----------------------------------------------------------------------------- This source file is part of Tiger Viewer(An Ogre Mesh Viewer) For the latest info, see http://code.google.com/p/ogremeshviewer/ Copyright (c) 2010 Zhang Kun([email protected]) This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, or go to http://www.gnu.org/copyleft/lesser.txt. ----------------------------------------------------------------------------- This software also uses Microsoft Fluent UI. License terms to copy, use or distribute the Fluent UI are available separately. To learn more about our Fluent UI licensing program, please visit http://msdn.microsoft.com/officeui. Generally speaking, Fluent UI is free, if you do not use it make a contest software like Office. ----------------------------------------------------------------------------- */ */ #include "stdafx.h" #include "ReflectiveUI.h" #include "GString.h" using namespace std; using namespace PropertySys; //------------------------------------------------------------------------------------- void CPropertyGrid::OnPropertyChanged(CMFCPropertyGridProperty* pProp) const { if (_pPropertyChanged) { _pPropertyChanged->OnPropertyChanged(pProp); } } #if 0 // MFC bug, this does not work! // Details : can not retrieve the data just input. BOOL CPropertyGrid::ValidateItemData(CMFCPropertyGridProperty* pProp) { if (_pPropertyChanged) { return _pPropertyChanged->ValidateItemData(pProp); } return FALSE; } #endif //------------------------------------------------------------------------------------- CReflectiveUI::CReflectiveUI() { } template<class T> void CReflectiveUI::AddPropertyToGrid(CMFCPropertyGridProperty* root, RTTIObject* pObject, BaseProperty* pProp) { CMFCPropertyGridProperty* pGrid; TypedProperty<T>* pTypedProperty = (TypedProperty<T>*)pProp; EValueSpecify e = pProp->GetValueSpecify(); const std::vector<std::string>& Values = pProp->GetSpeValues(); if ( e == eValueRange ) { T s = TypeValueFromString<T>(Values[0]); T e = TypeValueFromString<T>(Values[1]); pGrid = new CMFCPropertyGridProperty( pTypedProperty->GetName().c_str() , (_variant_t)pTypedProperty->GetValue( pObject ) , pTypedProperty->GetDescription().c_str() ); pGrid->EnableSpinControl(TRUE, s, e); } else if ( e == eValueList ) { pGrid = new CMFCPropertyGridProperty( pTypedProperty->GetName().c_str() , (_variant_t)pTypedProperty->GetValue( pObject ) , pTypedProperty->GetDescription().c_str() ); for (size_t t = 0; t < Values.size(); ++t) { pGrid->AddOption(Values[t].c_str()); } pGrid->AllowEdit(FALSE); } else if ( e == eFilePathName ) { pGrid = new CMFCPropertyGridFileProperty( pTypedProperty->GetName().c_str() , (_variant_t)pTypedProperty->GetValue( pObject ) , pTypedProperty->GetDescription().c_str() ); } else if ( e == eValueColor ) { } else { pGrid = new CMFCPropertyGridProperty( pTypedProperty->GetName().c_str() , (_variant_t)pTypedProperty->GetValue( pObject ) , pTypedProperty->GetDescription().c_str() ); } root->AddSubItem( pGrid ); CReflectiveUI::SPropertyObject PO(pProp, pObject); _GridPropertyMap[pGrid] = PO; } template<class T> void CReflectiveUI::AddPropertyToGrid_AsString(CMFCPropertyGridProperty* root, PropertySys::RTTIObject* pObject, PropertySys::BaseProperty* pProp) { CMFCPropertyGridProperty* pGrid; TypedProperty<T>* pTypedProperty = (TypedProperty<T>*)pProp; EValueSpecify e = pProp->GetValueSpecify(); const std::vector<std::string>& Values = pProp->GetSpeValues(); if ( e == eValueRange ) { } else if ( e == eValueList ) { pGrid = new CMFCPropertyGridProperty( pTypedProperty->GetName().c_str() , (_variant_t)(pTypedProperty->GetValueAsString( pObject ).c_str()) , pTypedProperty->GetDescription().c_str() ); for (size_t t = 0; t < Values.size(); ++t) { pGrid->AddOption(Values[t].c_str()); } pGrid->AllowEdit(FALSE); } else if ( e == eFilePathName ) { pGrid = new CMFCPropertyGridFileProperty( pTypedProperty->GetName().c_str() , (_variant_t)(pTypedProperty->GetValueAsString( pObject ).c_str()) , pTypedProperty->GetDescription().c_str() ); } else if ( e == eValueColor ) { } else { pGrid = new CMFCPropertyGridProperty( pTypedProperty->GetName().c_str() , (_variant_t)(pTypedProperty->GetValueAsString( pObject ).c_str()) , pTypedProperty->GetDescription().c_str() ); } root->AddSubItem( pGrid ); CReflectiveUI::SPropertyObject PO(pProp, pObject); _GridPropertyMap[pGrid] = PO; } void CReflectiveUI::BuildUIForObject(CMFCPropertyGridProperty* root, RTTIObject* pObject, const char* szName ) { CMFCPropertyGridProperty* pRoot = new CMFCPropertyGridProperty(szName); if (root) { root->AddSubItem( pRoot ); } else { m_pGrid->AddProperty(pRoot); } std::vector<BaseProperty*> Properties; pObject->GetRTTI()->EnumProperties( Properties ); for ( size_t i = 0; i < Properties.size(); i++ ) { switch ( Properties[i]->GetTypeID() ) { case eptBool: { AddPropertyToGrid<bool>(pRoot, pObject, Properties[i]); break; } case eptByte: { AddPropertyToGrid<char>(pRoot, pObject, Properties[i]); break; } case eptInt: { AddPropertyToGrid<int>(pRoot, pObject, Properties[i]); break; } case eptShort: { AddPropertyToGrid<short>(pRoot, pObject, Properties[i]); break; } case eptLong : { AddPropertyToGrid<long>(pRoot, pObject, Properties[i]); break; } case eptPtr: { TypedProperty<RTTIObject*>* pTypedProperty = (TypedProperty<RTTIObject*>*)Properties[i]; BuildUIForObject(pRoot , pTypedProperty->GetValue( pObject ) , pTypedProperty->GetName().c_str() ); break; } case eptOgreReal: { AddPropertyToGrid<Ogre::Real>(pRoot, pObject, Properties[i]); break; } case eptOgreString: { AddPropertyToGrid_AsString<Ogre::String>(pRoot, pObject, Properties[i]); break; } case eptOgreVector2: { AddPropertyToGrid_AsString<Ogre::Vector2>(pRoot, pObject, Properties[i]); } break; case eptOgreVector3: { AddPropertyToGrid_AsString<Ogre::Vector3>(pRoot, pObject, Properties[i]); } break; case eptOgreVector4: { AddPropertyToGrid_AsString<Ogre::Vector4>(pRoot, pObject, Properties[i]); } break; case eptOgreColorValue: { TypedProperty<Ogre::ColourValue>* pTypedProperty = (TypedProperty<Ogre::ColourValue>*)Properties[i]; Ogre::ColourValue val = pTypedProperty->GetValue(pObject); CMFCPropertyGridProperty* pGrid = new CMFCPropertyGridColorProperty( pTypedProperty->GetName().c_str() , val.getAsRGBA() , 0 , pTypedProperty->GetDescription().c_str() ); pRoot->AddSubItem( pGrid ); CReflectiveUI::SPropertyObject PO(Properties[i], pObject); _GridPropertyMap[pGrid] = PO; } break; case eptOgreQuaternion: { AddPropertyToGrid_AsString<Ogre::Quaternion>(pRoot, pObject, Properties[i]); } break; case eptOgreMatrix3: { AddPropertyToGrid_AsString<Ogre::Matrix3>(pRoot, pObject, Properties[i]); } break; case eptOgreMatrix4: { AddPropertyToGrid_AsString<Ogre::Matrix4>(pRoot, pObject, Properties[i]); } break; }; } pRoot->Expand(); } void CReflectiveUI::OnPropertyChanged(CMFCPropertyGridProperty* pProp) { //if (!ValidateItemData(pProp)) //{ // return; //} CMFCPropertyGridProperty* pItem = pProp; const COleVariant variant = pItem->GetValue(); assert( _GridPropertyMap.find(pItem) != _GridPropertyMap.end() ); SPropertyObject PO = _GridPropertyMap[pItem]; switch ( PO._pProperty->GetTypeID() ) { case eptBool: { TypedProperty<bool>* pTypedProperty = (TypedProperty<bool>*)PO._pProperty; pTypedProperty->SetValue( PO._pObject, pItem->GetValue().boolVal != 0); break; } case eptByte: { TypedProperty<char>* pTypedProperty = (TypedProperty<char>*)PO._pProperty; pTypedProperty->SetValue( PO._pObject, pItem->GetValue().bVal ); break; } case eptShort: { TypedProperty<short>* pTypedProperty = (TypedProperty<short>*)PO._pProperty; pTypedProperty->SetValue( PO._pObject, pItem->GetValue().iVal ); break; } case eptInt: { TypedProperty<int>* pTypedProperty = (TypedProperty<int>*)PO._pProperty; pTypedProperty->SetValue( PO._pObject, pItem->GetValue().intVal ); break; } case eptLong: { TypedProperty<long>* pTypedProperty = (TypedProperty<long>*)PO._pProperty; pTypedProperty->SetValue( PO._pObject, pItem->GetValue().lVal ); break; } case eptPtr: { break; } case eptOgreReal: { TypedProperty<Ogre::Real>* pTypedProperty = (TypedProperty<Ogre::Real>*)PO._pProperty; pTypedProperty->SetValue( PO._pObject, pItem->GetValue().fltVal ); break; } case eptOgreString: { TypedProperty<Ogre::String>* pTypedProperty = (TypedProperty<Ogre::String>*)PO._pProperty; GString gStr(pItem->GetValue().bstrVal); pTypedProperty->SetValueFromString( PO._pObject, gStr.ToMbcs() ); break; } case eptOgreVector2: { TypedProperty<Ogre::Vector2>* pTypedProperty = (TypedProperty<Ogre::Vector2>*)PO._pProperty; GString gStr(pItem->GetValue().bstrVal); pTypedProperty->SetValueFromString( PO._pObject, gStr.ToMbcs() ); } break; case eptOgreVector3: { TypedProperty<Ogre::Vector3>* pTypedProperty = (TypedProperty<Ogre::Vector3>*)PO._pProperty; GString gStr(pItem->GetValue().bstrVal); pTypedProperty->SetValueFromString( PO._pObject, gStr.ToMbcs() ); } break; case eptOgreVector4: { TypedProperty<Ogre::Vector4>* pTypedProperty = (TypedProperty<Ogre::Vector4>*)PO._pProperty; GString gStr(pItem->GetValue().bstrVal); pTypedProperty->SetValueFromString( PO._pObject, gStr.ToMbcs() ); } break; case eptOgreColorValue: { TypedProperty<Ogre::ColourValue>* pTypedProperty = (TypedProperty<Ogre::ColourValue>*)PO._pProperty; Ogre::ColourValue val; val.setAsABGR(pItem->GetValue().intVal); pTypedProperty->SetValue( PO._pObject, val); } break; case eptOgreQuaternion: { TypedProperty<Ogre::Quaternion>* pTypedProperty = (TypedProperty<Ogre::Quaternion>*)PO._pProperty; GString gStr(pItem->GetValue().bstrVal); pTypedProperty->SetValueFromString( PO._pObject, gStr.ToMbcs() ); } break; case eptOgreMatrix3: { TypedProperty<Ogre::Matrix3>* pTypedProperty = (TypedProperty<Ogre::Matrix3>*)PO._pProperty; GString gStr(pItem->GetValue().bstrVal); pTypedProperty->SetValueFromString( PO._pObject, gStr.ToMbcs() ); } break; case eptOgreMatrix4: { TypedProperty<Ogre::Matrix4>* pTypedProperty = (TypedProperty<Ogre::Matrix4>*)PO._pProperty; GString gStr(pItem->GetValue().bstrVal); pTypedProperty->SetValueFromString( PO._pObject, gStr.ToMbcs() ); } break; }; } #if 0 // MFC bug, this does not work! // Details : can not retrieve the data just input. bool CReflectiveUI::ValidateItemData(CMFCPropertyGridProperty* pProp) { CMFCPropertyGridProperty* pItem = pProp; assert( _GridPropertyMap.find(pItem) != _GridPropertyMap.end() ); SPropertyObject PO = _GridPropertyMap[pItem]; bool bValid = true; switch ( PO._pProperty->GetTypeID() ) { case eptBool: { TypedProperty<bool>* pTypedProperty = (TypedProperty<bool>*)PO._pProperty; bValid = pTypedProperty->ValidateValue( pItem->GetValue().boolVal != 0); break; } case eptByte: { TypedProperty<char>* pTypedProperty = (TypedProperty<char>*)PO._pProperty; bValid = pTypedProperty->ValidateValue( pItem->GetValue().bVal ); break; } case eptShort: { TypedProperty<short>* pTypedProperty = (TypedProperty<short>*)PO._pProperty; bValid = pTypedProperty->ValidateValue( pItem->GetValue().iVal ); break; } case eptInt: { TypedProperty<int>* pTypedProperty = (TypedProperty<int>*)PO._pProperty; bValid = pTypedProperty->ValidateValue( pItem->GetValue().intVal ); break; } case eptLong: { TypedProperty<long>* pTypedProperty = (TypedProperty<long>*)PO._pProperty; bValid = pTypedProperty->ValidateValue( pItem->GetValue().lVal ); break; } case eptPtr: { break; } case eptOgreReal: { TypedProperty<Ogre::Real>* pTypedProperty = (TypedProperty<Ogre::Real>*)PO._pProperty; bValid = pTypedProperty->ValidateValue( pItem->GetValue().fltVal ); break; } case eptOgreString: { TypedProperty<Ogre::String>* pTypedProperty = (TypedProperty<Ogre::String>*)PO._pProperty; GString gStr(pItem->GetValue().bstrVal); bValid = pTypedProperty->ValidateValue( gStr.ToMbcs() ); break; } }; if (!bValid) { pItem->SetValue(pItem->GetOriginalValue()); } return bValid; } #endif
[ "zhk.tiger@b3cfb0ba-c873-51ca-4d9f-db82523f9d23" ]
[ [ [ 1, 491 ] ] ]
8c0fbfca7f11d193efb01ad8f0949a3b37a5f123
5ac13fa1746046451f1989b5b8734f40d6445322
/minimangalore/Nebula2/code/contrib/nmax/src/pluginlibs/nmaxutilityobj.cc
6db39275acffd6efe7bc609d7e81b8b5591f8e88
[]
no_license
moltenguy1/minimangalore
9f2edf7901e7392490cc22486a7cf13c1790008d
4d849672a6f25d8e441245d374b6bde4b59cbd48
refs/heads/master
2020-04-23T08:57:16.492734
2009-08-01T09:13:33
2009-08-01T09:13:33
35,933,330
0
0
null
null
null
null
UTF-8
C++
false
false
2,387
cc
//------------------------------------------------------------------------------ // nmaxutilityobj.cc // // (c)2004 Kim, Hyoun Woo //------------------------------------------------------------------------------ #include "pluginlibs/nmaxutilityobj.h" #include "pluginlibs/nmaxoptionparammapdlg.h" #include "../res/nmaxtoolbox.h" IParamMap* nMaxUtilityObj::optionParamMap = 0; //------------------------------------------------------------------------------ /** */ nMaxUtilityObj::nMaxUtilityObj() { flags = ROLLUP_EXPORTOPTIONS_OPEN; } //------------------------------------------------------------------------------ /** */ nMaxUtilityObj::~nMaxUtilityObj() { } //------------------------------------------------------------------------------ /** Create Nebula2 utility panel plugin to support options. - 21-Mar-05 kims changed to check nMaxOptionParamMapDlg is correctly created. (used native 'new' instead of 'n_new' cause destroying its instance is depends on 3dsmax side) */ void nMaxUtilityObj::BeginEditParams(Interface* intf, IUtil* iutil) { // create nebula utility panel dialog. optionParamMap = CreateCPParamMap( NULL, 0,//1, this, intf, maxUtilityObjInterfaceClassDesc2.HInstance(), MAKEINTRESOURCE(IDD_UTILITY_OPTION), "Nebula Export Options", (flags & ROLLUP_EXPORTOPTIONS_OPEN) ? 0 : APPENDROLL_CLOSED); if (optionParamMap) { ParamMapUserDlgProc* paramMapDlgProc = new nMaxOptionParamMapDlg(); if (paramMapDlgProc) { optionParamMap->SetUserDlgProc(paramMapDlgProc); } else { n_message("Failed to create option panel of utility."); return; } } } //------------------------------------------------------------------------------ /** Release created utility panel dialog when Nebula2 utility panel is closed. */ void nMaxUtilityObj::EndEditParams(Interface* intf, IUtil* iutil) { if (optionParamMap) { // destroy nebula utility panel dialog. if (IsRollupPanelOpen(optionParamMap->GetHWnd())) flags |= ROLLUP_EXPORTOPTIONS_OPEN; DestroyCPParamMap(optionParamMap); optionParamMap = NULL; } }
[ "BawooiT@d1c0eb94-fc07-11dd-a7be-4b3ef3b0700c" ]
[ [ [ 1, 78 ] ] ]
99c457a12125c433d33bc2da34d16218bef2ae86
ad0076b418469ad3433daa809acba5fd2a9410e9
/mersenne.h
1b948a88bde145f351ec452d3022bb0a602592f2
[]
no_license
PlumpMath/ergo
e3e8a4c43a81cb48671a13d6c7124e019b855fb7
dc2e9a96d23b46120af94aeedcbe81e8d602c640
refs/heads/master
2021-01-18T20:06:09.564888
2008-11-03T09:09:15
2008-11-03T09:09:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,844
h
#ifndef _MERSENNE_H #define _MERSENNE_H #include <time.h> #include <math.h> #include <limits.h> class Mersenne { private: typedef unsigned long uint32; // unsigned integer type, at least 32 bits enum { N = 624 }; // length of state vector enum { SAVE = N + 1 }; // length of array for save() enum { M = 397 }; // period parameter uint32 _state[N]; // internal state uint32 *_p_next; // next value to get from state int _left; // number of values left before reload needed public: Mersenne() { seed( hash(time(NULL), clock()) ); } void seed(const uint32 seed) { initialize(seed); reload(); } uint32 hash( time_t t, clock_t c ) { static uint32 differ = 0; // guarantee time-based seeds will change uint32 h1 = 0; unsigned char *p = (unsigned char *) &t; for( size_t i = 0; i < sizeof(t); ++i ) { h1 *= UCHAR_MAX + 2U; h1 += p[i]; } uint32 h2 = 0; p = (unsigned char *) &c; for( size_t j = 0; j < sizeof(c); ++j ) { h2 *= UCHAR_MAX + 2U; h2 += p[j]; } return ( h1 + differ++ ) ^ h2; } uint32 rand(unsigned int n) { uint32 used = n; used |= used >> 1; used |= used >> 2; used |= used >> 4; used |= used >> 8; used |= used >> 16; // Draw numbers until one is found in [0,n] uint32 i; do i = rand() & used; // toss unused bits to shorten search while( i > n ); assert(0 <= i && i <= n); return i; } uint32 rand() { if( _left == 0 ) reload(); --_left; register uint32 s1; s1 = *_p_next++; s1 ^= (s1 >> 11); s1 ^= (s1 << 7) & 0x9d2c5680UL; s1 ^= (s1 << 15) & 0xefc60000UL; return ( s1 ^ (s1 >> 18) ); } private: uint32 hiBit( const uint32& u ) const { return u & 0x80000000UL; } uint32 loBit( const uint32& u ) const { return u & 0x00000001UL; } uint32 loBits( const uint32& u ) const { return u & 0x7fffffffUL; } uint32 mixBits( const uint32& u, const uint32& v ) const { return hiBit(u) | loBits(v); } uint32 twist( const uint32& m, const uint32& s0, const uint32& s1 ) const { return m ^ (mixBits(s0,s1)>>1) ^ (loBit(s1) & 0x9908b0dfUL); } void initialize(const uint32 seed) { register uint32 *s = _state; register uint32 *r = _state; register int i = 1; *s++ = seed & 0xffffffffUL; for( ; i < N; ++i ) { *s++ = ( 1812433253UL *( *r ^ (*r >> 30) ) + i ) & 0xffffffffUL; r++; } } void reload() { register uint32 *p = _state; register int i; for( i = N - M; i--; ++p ) { *p = twist( p[M], p[0], p[1] ); } for( i = M; --i; ++p ) { *p = twist( p[M-N], p[0], p[1] ); } *p = twist( p[M-N], p[0], _state[0] ); _left = N, _p_next = _state; } }; #endif
[ [ [ 1, 144 ] ] ]
8ee65d7760bd090636ee0e8c1de95be73d4964dc
ea12fed4c32e9c7992956419eb3e2bace91f063a
/zombie/code/zombie/tutorials/src/signals_tutorial/nsignaltestemitter_main.cc
5a1b083132c6cc4e781201fcbd473ae990eb549f
[]
no_license
ugozapad/TheZombieEngine
832492930df28c28cd349673f79f3609b1fe7190
8e8c3e6225c2ed93e07287356def9fbdeacf3d6a
refs/heads/master
2020-04-30T11:35:36.258363
2011-02-24T14:18:43
2011-02-24T14:18:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
206
cc
#include "kernel/nkernelserver.h" #include "signals/nsignal.h" #include "signals/nsignalbinding.h" #include "signals_tutorial/nsignaltestemitter.h" nNebulaScriptClass(nSignalTestEmitter, "nroot");
[ "magarcias@c1fa4281-9647-0410-8f2c-f027dd5e0a91" ]
[ [ [ 1, 7 ] ] ]
131e418a99be22d51e3018233c55dc961ef56693
7b4e708809905ae003d0cb355bf53e4d16c9cbbc
/JuceLibraryCode/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp
a5061bc1db5eebe386268ad3fed035a37cfef8c3
[]
no_license
sonic59/JulesText
ce6507014e4cba7fb0b67597600d1cee48a973a5
986cbea68447ace080bf34ac2b94ac3ab46faca4
refs/heads/master
2016-09-06T06:10:01.815928
2011-11-18T01:19:26
2011-11-18T01:19:26
2,796,827
0
0
null
null
null
null
UTF-8
C++
false
false
10,135
cpp
/* ============================================================================== This file is part of the JUCE library - "Jules' Utility Class Extensions" Copyright 2004-11 by Raw Material Software Ltd. ------------------------------------------------------------------------------ JUCE can be redistributed and/or modified under the terms of the GNU General Public License (Version 2), as published by the Free Software Foundation. A copy of the license is included in the JUCE distribution, or can be found online at www.gnu.org/licenses. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ------------------------------------------------------------------------------ To release a closed-source product which uses JUCE, commercial licenses are available: visit www.rawmaterialsoftware.com/juce for more information. ============================================================================== */ BEGIN_JUCE_NAMESPACE //============================================================================== AudioProcessor::AudioProcessor() : playHead (nullptr), sampleRate (0), blockSize (0), numInputChannels (0), numOutputChannels (0), latencySamples (0), suspended (false), nonRealtime (false) { } AudioProcessor::~AudioProcessor() { // ooh, nasty - the editor should have been deleted before the filter // that it refers to is deleted.. jassert (activeEditor == nullptr); #if JUCE_DEBUG // This will fail if you've called beginParameterChangeGesture() for one // or more parameters without having made a corresponding call to endParameterChangeGesture... jassert (changingParams.countNumberOfSetBits() == 0); #endif } void AudioProcessor::setPlayHead (AudioPlayHead* const newPlayHead) noexcept { playHead = newPlayHead; } void AudioProcessor::addListener (AudioProcessorListener* const newListener) { const ScopedLock sl (listenerLock); listeners.addIfNotAlreadyThere (newListener); } void AudioProcessor::removeListener (AudioProcessorListener* const listenerToRemove) { const ScopedLock sl (listenerLock); listeners.removeValue (listenerToRemove); } void AudioProcessor::setPlayConfigDetails (const int numIns, const int numOuts, const double sampleRate_, const int blockSize_) noexcept { numInputChannels = numIns; numOutputChannels = numOuts; sampleRate = sampleRate_; blockSize = blockSize_; } void AudioProcessor::setNonRealtime (const bool nonRealtime_) noexcept { nonRealtime = nonRealtime_; } void AudioProcessor::setLatencySamples (const int newLatency) { if (latencySamples != newLatency) { latencySamples = newLatency; updateHostDisplay(); } } void AudioProcessor::setParameterNotifyingHost (const int parameterIndex, const float newValue) { setParameter (parameterIndex, newValue); sendParamChangeMessageToListeners (parameterIndex, newValue); } void AudioProcessor::sendParamChangeMessageToListeners (const int parameterIndex, const float newValue) { jassert (isPositiveAndBelow (parameterIndex, getNumParameters())); for (int i = listeners.size(); --i >= 0;) { AudioProcessorListener* l; { const ScopedLock sl (listenerLock); l = listeners [i]; } if (l != nullptr) l->audioProcessorParameterChanged (this, parameterIndex, newValue); } } void AudioProcessor::beginParameterChangeGesture (int parameterIndex) { jassert (isPositiveAndBelow (parameterIndex, getNumParameters())); #if JUCE_DEBUG // This means you've called beginParameterChangeGesture twice in succession without a matching // call to endParameterChangeGesture. That might be fine in most hosts, but better to avoid doing it. jassert (! changingParams [parameterIndex]); changingParams.setBit (parameterIndex); #endif for (int i = listeners.size(); --i >= 0;) { AudioProcessorListener* l; { const ScopedLock sl (listenerLock); l = listeners [i]; } if (l != nullptr) l->audioProcessorParameterChangeGestureBegin (this, parameterIndex); } } void AudioProcessor::endParameterChangeGesture (int parameterIndex) { jassert (isPositiveAndBelow (parameterIndex, getNumParameters())); #if JUCE_DEBUG // This means you've called endParameterChangeGesture without having previously called // endParameterChangeGesture. That might be fine in most hosts, but better to keep the // calls matched correctly. jassert (changingParams [parameterIndex]); changingParams.clearBit (parameterIndex); #endif for (int i = listeners.size(); --i >= 0;) { AudioProcessorListener* l; { const ScopedLock sl (listenerLock); l = listeners [i]; } if (l != nullptr) l->audioProcessorParameterChangeGestureEnd (this, parameterIndex); } } void AudioProcessor::updateHostDisplay() { for (int i = listeners.size(); --i >= 0;) { AudioProcessorListener* l; { const ScopedLock sl (listenerLock); l = listeners [i]; } if (l != nullptr) l->audioProcessorChanged (this); } } bool AudioProcessor::isParameterAutomatable (int /*parameterIndex*/) const { return true; } bool AudioProcessor::isMetaParameter (int /*parameterIndex*/) const { return false; } void AudioProcessor::suspendProcessing (const bool shouldBeSuspended) { const ScopedLock sl (callbackLock); suspended = shouldBeSuspended; } void AudioProcessor::reset() { } //============================================================================== void AudioProcessor::editorBeingDeleted (AudioProcessorEditor* const editor) noexcept { const ScopedLock sl (callbackLock); if (activeEditor == editor) activeEditor = nullptr; } AudioProcessorEditor* AudioProcessor::createEditorIfNeeded() { if (activeEditor != nullptr) return activeEditor; AudioProcessorEditor* const ed = createEditor(); // You must make your hasEditor() method return a consistent result! jassert (hasEditor() == (ed != nullptr)); if (ed != nullptr) { // you must give your editor comp a size before returning it.. jassert (ed->getWidth() > 0 && ed->getHeight() > 0); const ScopedLock sl (callbackLock); activeEditor = ed; } return ed; } //============================================================================== void AudioProcessor::getCurrentProgramStateInformation (juce::MemoryBlock& destData) { getStateInformation (destData); } void AudioProcessor::setCurrentProgramStateInformation (const void* data, int sizeInBytes) { setStateInformation (data, sizeInBytes); } //============================================================================== // magic number to identify memory blocks that we've stored as XML const uint32 magicXmlNumber = 0x21324356; void AudioProcessor::copyXmlToBinary (const XmlElement& xml, juce::MemoryBlock& destData) { const String xmlString (xml.createDocument (String::empty, true, false)); const int stringLength = xmlString.getNumBytesAsUTF8(); destData.setSize ((size_t) stringLength + 10); char* const d = static_cast<char*> (destData.getData()); *(uint32*) d = ByteOrder::swapIfBigEndian ((const uint32) magicXmlNumber); *(uint32*) (d + 4) = ByteOrder::swapIfBigEndian ((const uint32) stringLength); xmlString.copyToUTF8 (d + 8, stringLength + 1); } XmlElement* AudioProcessor::getXmlFromBinary (const void* data, const int sizeInBytes) { if (sizeInBytes > 8 && ByteOrder::littleEndianInt (data) == magicXmlNumber) { const int stringLength = (int) ByteOrder::littleEndianInt (addBytesToPointer (data, 4)); if (stringLength > 0) return XmlDocument::parse (String::fromUTF8 (static_cast<const char*> (data) + 8, jmin ((sizeInBytes - 8), stringLength))); } return nullptr; } //============================================================================== void AudioProcessorListener::audioProcessorParameterChangeGestureBegin (AudioProcessor*, int) {} void AudioProcessorListener::audioProcessorParameterChangeGestureEnd (AudioProcessor*, int) {} //============================================================================== bool AudioPlayHead::CurrentPositionInfo::operator== (const CurrentPositionInfo& other) const noexcept { return timeInSeconds == other.timeInSeconds && ppqPosition == other.ppqPosition && editOriginTime == other.editOriginTime && ppqPositionOfLastBarStart == other.ppqPositionOfLastBarStart && frameRate == other.frameRate && isPlaying == other.isPlaying && isRecording == other.isRecording && bpm == other.bpm && timeSigNumerator == other.timeSigNumerator && timeSigDenominator == other.timeSigDenominator; } bool AudioPlayHead::CurrentPositionInfo::operator!= (const CurrentPositionInfo& other) const noexcept { return ! operator== (other); } void AudioPlayHead::CurrentPositionInfo::resetToDefault() { zerostruct (*this); timeSigNumerator = 4; timeSigDenominator = 4; bpm = 120; } END_JUCE_NAMESPACE
[ [ [ 1, 317 ] ] ]
612a45fb8b9add150026881c6381546c8825527b
1e976ee65d326c2d9ed11c3235a9f4e2693557cf
/Taggers/TagLibTagger.h
bbf9ac049fb3bb3b91a1415873d0f53c1ebec063
[]
no_license
outcast1000/Jaangle
062c7d8d06e058186cb65bdade68a2ad8d5e7e65
18feb537068f1f3be6ecaa8a4b663b917c429e3d
refs/heads/master
2020-04-08T20:04:56.875651
2010-12-25T10:44:38
2010-12-25T10:44:38
19,334,292
3
0
null
null
null
null
UTF-8
C++
false
false
1,413
h
// /* // * // * Copyright (C) 2003-2010 Alexandros Economou // * // * This file is part of Jaangle (http://www.jaangle.com) // * // * This Program is free software; you can redistribute it and/or modify // * it under the terms of the GNU General Public License as published by // * the Free Software Foundation; either version 2, or (at your option) // * any later version. // * // * This Program is distributed in the hope that it will be useful, // * but WITHOUT ANY WARRANTY; without even the implied warranty of // * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // * GNU General Public License for more details. // * // * You should have received a copy of the GNU General Public License // * along with GNU Make; see the file COPYING. If not, write to // * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. // * http://www.gnu.org/copyleft/gpl.html // * // */ #ifndef _TagLibTagger_h_ #define _TagLibTagger_h_ #include "FileTagger.h" class TagLibTagger: public FileTagger { public: TagLibTagger() {} virtual ~TagLibTagger() {} virtual UINT Read(LPCTSTR fileName, TagInfo& info); virtual UINT Write(LPCTSTR fileName, TagInfo& info); virtual BOOL ClearTags(LPCTSTR fileName); virtual void SetConfig(Config conf, INT val) {}; virtual INT GetConfig(Config conf) {return -1;}; }; #endif
[ "outcast1000@dc1b949e-fa36-4f9e-8e5c-de004ec35678" ]
[ [ [ 1, 45 ] ] ]
e00f4595f390eb7b3bbe9960b59ad6626dbf1653
0b66a94448cb545504692eafa3a32f435cdf92fa
/tags/0.6/cbear.berlios.de/windows/lpstr.hpp
d7fa7a68c2662ea90349616455dcb0f3666700e9
[ "MIT" ]
permissive
BackupTheBerlios/cbear-svn
e6629dfa5175776fbc41510e2f46ff4ff4280f08
0109296039b505d71dc215a0b256f73b1a60b3af
refs/heads/master
2021-03-12T22:51:43.491728
2007-09-28T01:13:48
2007-09-28T01:13:48
40,608,034
0
0
null
null
null
null
UTF-8
C++
false
false
2,493
hpp
/* The MIT License Copyright (c) 2005 C Bear (http://cbear.berlios.de) 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. */ #ifndef CBEAR_BERLIOS_DE_WINDOWS_LPSTR_HPP_INCLUDED #define CBEAR_BERLIOS_DE_WINDOWS_LPSTR_HPP_INCLUDED #include <cbear.berlios.de/windows/base.hpp> #include <cbear.berlios.de/policy/main.hpp> namespace cbear_berlios_de { namespace windows { // Pointer to a null-terminated string template<class Char> class basic_lpstr: public base::initialized<Char *> { public: typedef base::initialized<Char *> base_t; typedef Char *internal_type; basic_lpstr() { } template<class T> basic_lpstr(const T &X): base_t(X.c_str()) { } basic_lpstr(internal_type X): base_t(X) { } }; // Pointer to a null-terminated string of 8-bit Windows (ANSI) characters. typedef basic_lpstr<char_t> lpstr_t; // Pointer to a constant null-terminated string of 8-bit Windows (ANSI) // characters. typedef basic_lpstr<const char_t> lpcstr_t; // Pointer to a null-terminated string of 16-bit Unicode characters. typedef basic_lpstr<wchar_t_> lpwstr_t; // Pointer to a constant null-terminated string of 16-bit Unicode characters. typedef basic_lpstr<const wchar_t_> lpcwstr_t; template<class Char> basic_lpstr<Char> make_lpstr(Char *P) { return basic_lpstr<Char>(P); } typedef OLECHAR olechar_t; typedef basic_lpstr<olechar_t> lpolestr_t; typedef basic_lpstr<const olechar_t> lpcolestr_t; } } #endif
[ "sergey_shandar@e6e9985e-9100-0410-869a-e199dc1b6838" ]
[ [ [ 1, 82 ] ] ]
191a4447072190457b35690eecd74e8e08678b0a
90a4cfec47e3795acd3ce6e414f51d988193b48a
/VlcFaceReco.cpp
cf55b3d66210e94061fc56667c17d303e7989385
[]
no_license
zhouqilin/facereco
8f1cdea9607ece0fcf8dfe4ea6358c3f921ba8c4
206f6a25e716890f139bb7f6bc917d4efce27c0a
refs/heads/master
2021-01-24T22:36:10.340482
2011-02-28T07:54:20
2011-02-28T07:54:20
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,412
cpp
#include "VlcFaceReco.h" VlcFaceReco::~VlcFaceReco() {} VlcFaceReco::VlcFaceReco( const char *haarPath) : reco(haarPath) , state(NEUTRAL) , thresh(0.835f) , id(0) , name("") , confidence(0) {} cv::Mat VlcFaceReco::processImg( cv::Mat & img ) { cv::Mat frame; cv::resize( img, frame, cv::Size(400,300) ); if ( state != NEUTRAL ) { cv::Rect rect; cv::Mat face = reco.detect( frame, rect ); if ( !face.empty() ) { if ( state == DETECT ) { reco.classify( face, id, name, confidence ); char *pre = ( confidence > thresh ) ? "*** " : " "; printf( "%s(%3.3f) : %2d %-12s [%3d %3d %3d %3d]\n", pre, confidence, id, name.c_str(), rect.x, rect.y, rect.width, rect.height ); if ( confidence > thresh ) { char text[256]; sprintf(text, "%s %3.3f", name.c_str(), confidence); cv::putText(frame, text, cvPoint(rect.x, rect.y + rect.height + 15),CV_FONT_HERSHEY_PLAIN,1.0, CV_RGB(0,255,255)); } } if ( state == RECORD ) { static int _let_them_move_a_bit=0; if ( ++ _let_them_move_a_bit % 3 == 1 ) { printf("."); records.push_back( face ); } } // green rects.. cv::rectangle( frame, cv::Point(rect.x,rect.y),cv::Point(rect.x+rect.width,rect.y+rect.height),cv::Scalar(0,255,0)); } } // cv::imshow( ";)",frame); return frame; }
[ [ [ 1, 60 ] ] ]
0a4a0543551e1f30cd88ff31fd492b0ac8fe8079
db4b7dac5ea1593f60229f4dd916e4d275d2f6ac
/MyStrUtil.h
0ff7c79ce1c991001b99b4476e2b044f33155ff5
[]
no_license
riyuexing/virtualdrafter
77337e757ea41bb2e3b184a123627a69cc47b5e6
1e8de27bb176b395c2220de71f8360424d85be9a
refs/heads/master
2022-04-05T12:19:08.060306
2009-05-09T11:21:02
2018-01-07T20:11:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
124
h
#ifndef MyStrUtilH #define MyStrUtilH #include <string> string ExtractWord(string& s, string Delimiters); #endif
[ [ [ 1, 8 ] ] ]
2666e20fa1e2c58fe0aa087bd1eb073c169eacb1
645201f7ea1b4234feb4510f61e7bdd757573175
/TestData.h
87c58932f0b08fa57cdbaf39986311cb0b5d3873
[]
no_license
mfantonidas/datafusion_new
ed62b9af8f3726c3ebcdf09d8190b7bc1735952c
6c637502200daf7dad0260e27a6a7410d666daee
refs/heads/master
2020-05-21T13:16:14.899257
2010-11-30T13:49:48
2010-11-30T13:49:48
697,420
0
0
null
null
null
null
UTF-8
C++
false
false
427
h
#ifndef TESTDATA_H #define TESTDATA_H #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/file.h> #include <sys/time.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> extern int tempdata[256]; class TestData{ public: TestData(); ~TestData(); void get_randoms(void *buf, int nbytes); int get_random_data(); }; #endif //TESTDATA_H
[ [ [ 1, 24 ] ] ]
03f2351d130cbdaa294ad5906e9720bcaf153047
6e563096253fe45a51956dde69e96c73c5ed3c18
/dhnetsdk/TPLayer_IOCP/ITPListener.h
5633b42548f13a572a24b4538ae6b410613d19e8
[]
no_license
15831944/phoebemail
0931b76a5c52324669f902176c8477e3bd69f9b1
e10140c36153aa00d0251f94bde576c16cab61bd
refs/heads/master
2023-03-16T00:47:40.484758
2010-10-11T02:31:02
2010-10-11T02:31:02
null
0
0
null
null
null
null
GB18030
C++
false
false
1,465
h
/* * Copyright (c) 2008, 浙江亿蛙技术股份有限公司 * All rights reserved. * * 文件名称:ITPListener.h * 摘  要:传输层监听器接口 * * 取代版本:0.1 * 原作者 :Peng Dongfeng * 完成日期:2008年6月16日 * 修订记录:创建 */ ////////////////////////////////////////////////////////////////////// #ifndef _ITPLISTENER_H_ #define _ITPLISTENER_H_ class ITPListener { public: // 接收到数据后往缓冲里仍,该函数的处理时间会影响接收性能 virtual int onData(int nEngineId, int nConnId, unsigned char* data, int nLen) = 0; // 处理缓冲数据(解析数据),返回值:0:忙;1:空闲 virtual int onDealData(int nEngineId, int nConnId, unsigned char* buffer, int nLen) = 0; // 发送完成回调,可以用来删除上层的发送队列 virtual int onSendDataAck(int nEngineId, int nConnId, int nId) = 0; // 返回值为0表示接受此连接,返回值为1表示拒绝接受 virtual int onConnect(int nEngineId, int nConnId, char* szIp, int nPort) = 0; // 作为服务器类才回调,表示客户端连接断开 virtual int onClose(int nEngineId, int nConnId) = 0; // 作为客户端类才回调,表示连接断开 virtual int onDisconnect(int nEngineId, int nConnId) = 0; // 作为客户端类才回调,表示已重新连接 virtual int onReconnect(int nEngineId, int nConnId) = 0; }; #endif //_ITPLISTENER_H_
[ "guoqiao@a83c37f4-16cc-5f24-7598-dca3a346d5dd" ]
[ [ [ 1, 44 ] ] ]
c411ee0d6ac70ad4ff1c4ad7ed505102b942a02c
eb0b8f9d3bb244ad033c052041b8189e0c1ac461
/iPhoneAugmentedVideo/Classes/NyARToolkitCPP-2.5.4/src/core/NyARColorPatt_O3.cpp
439d58f773022aae2bdb90be3be3d4be9aa1fbc7
[]
no_license
nickthedude/iPhone-Stuff
66bacc8eb89238b3f2852bb821348ecdad6fc590
b85111dec18a4fbd98f81240f37bd5b5b8efe141
refs/heads/master
2021-01-01T17:16:30.540264
2010-12-14T17:07:19
2010-12-14T17:07:19
null
0
0
null
null
null
null
SHIFT_JIS
C++
false
false
10,651
cpp
/* * PROJECT: NyARToolkitCPP * -------------------------------------------------------------------------------- * * The NyARToolkitCPP is C++ version NyARToolkit class library. * Copyright (C)2008-2009 Ryo Iizuka * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * For further information please contact. * http://nyatla.jp/nyatoolkit/ * <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp> * */ #include "NyARColorPatt_O3.h" #include "nyarcore.h" #include <cstring> #include <cstdio> #define AR_PATT_SAMPLE_NUM 64 #define LT_POS 102.5 #define SQ_SIZE 5.0 namespace NyARToolkitCPP { NyARColorPatt_O3::NyARColorPatt_O3(int i_width, int i_height) { this->_size.h=i_height; this->_size.w=i_width; //////////////////// this->_patdata = new int[i_height*i_width]; this->_pixelreader=new NyARRgbPixelReader_INT1D_X8R8G8B8_32(&(this->_size),this->_patdata); //////////////////// this->__get_cpara_a=new NyARMat(8, 8); this->__get_cpara_b=new NyARMat(8, 1); this->__pickFromRaster_cpara = new NyARMat(8, 1); // this->__updateExtpat=new T__updateExtpat_struct_t(); //////////////////// this->__updateExtpat_rgbset=NULL; this->__updateExtpat_xc=NULL; this->__updateExtpat_yc=NULL; this->__updateExtpat_xw=NULL; this->__updateExtpat_yw=NULL; this->_last_pix_resolution_x=0; this->_last_pix_resolution_y=0; return; } NyARColorPatt_O3::~NyARColorPatt_O3() { NyAR_SAFE_DELETE(this->_pixelreader); NyAR_SAFE_ARRAY_DELETE(this->_patdata); //////////////////// NyAR_SAFE_DELETE(this->__get_cpara_a); NyAR_SAFE_DELETE(this->__get_cpara_b); NyAR_SAFE_DELETE(this->__pickFromRaster_cpara); //////////////////// NyAR_SAFE_ARRAY_DELETE(this->__updateExtpat_rgbset); NyAR_SAFE_ARRAY_DELETE(this->__updateExtpat_xc); NyAR_SAFE_ARRAY_DELETE(this->__updateExtpat_yc); NyAR_SAFE_ARRAY_DELETE(this->__updateExtpat_xw); NyAR_SAFE_ARRAY_DELETE(this->__updateExtpat_yw); return; } int NyARColorPatt_O3::getWidth()const { return this->_size.w; } int NyARColorPatt_O3::getHeight()const { return this->_size.h; } const TNyARIntSize& NyARColorPatt_O3::getSize()const { return this->_size; } void* NyARColorPatt_O3::getBuffer()const { return this->_patdata; } int NyARColorPatt_O3::getBufferType()const { return BUFFER_FORMAT; } bool NyARColorPatt_O3::isEqualBufferType(int i_type_value)const { return BUFFER_FORMAT==i_type_value; } bool NyARColorPatt_O3::hasBuffer()const { return this->_patdata!=NULL; } void wrapBuffer(void* i_ref_buf) { NyARException::notImplement(); } INyARRgbPixelReader& NyARColorPatt_O3::getRgbPixelReader() { return *(this->_pixelreader); } /** * @param world * @param vertex * @param o_para * @throws NyARException */ bool NyARColorPatt_O3::get_cpara(const TNyARIntPoint2d i_vertex[], NyARMat& o_para) { const static int world[4][2]={// double world[4][2]; { 100, 100 }, { 100 + 10, 100 }, { 100 + 10, 100 + 10 }, { 100, 100 + 10 }}; NyARMat* a = this->__get_cpara_a;// 次処理で値を設定するので、初期化不要// new NyARMat( 8, 8 ); NyARMat* b = this->__get_cpara_b;// 次処理で値を設定するので、初期化不要// new NyARMat( 8, 1 ); double* a_array = a->getArray(); double* b_array = b->getArray(); for (int i = 0; i < 4; i++) { double* a_pt0 = a_array+(i * 2)*8; double* a_pt1 = a_array+(i * 2 + 1)*8; const int* world_pti = world[i]; a_pt0[0] = (double) world_pti[0];// a->m[i*16+0] = world[i][0]; a_pt0[1] = (double) world_pti[1];// a->m[i*16+1] = world[i][1]; a_pt0[2] = 1.0;// a->m[i*16+2] = 1.0; a_pt0[3] = 0.0;// a->m[i*16+3] = 0.0; a_pt0[4] = 0.0;// a->m[i*16+4] = 0.0; a_pt0[5] = 0.0;// a->m[i*16+5] = 0.0; a_pt0[6] = (double) (-world_pti[0] * i_vertex[i].x);// a->m[i*16+6]= -world[i][0]*vertex[i][0]; a_pt0[7] = (double) (-world_pti[1] * i_vertex[i].x);// a->m[i*16+7]=-world[i][1]*vertex[i][0]; a_pt1[0] = 0.0;// a->m[i*16+8] = 0.0; a_pt1[1] = 0.0;// a->m[i*16+9] = 0.0; a_pt1[2] = 0.0;// a->m[i*16+10] = 0.0; a_pt1[3] = (double) world_pti[0];// a->m[i*16+11] = world[i][0]; a_pt1[4] = (double) world_pti[1];// a->m[i*16+12] = world[i][1]; a_pt1[5] = 1.0;// a->m[i*16+13] = 1.0; a_pt1[6] = (double) (-world_pti[0] * i_vertex[i].y);// a->m[i*16+14]=-world[i][0]*vertex[i][1]; a_pt1[7] = (double) (-world_pti[1] * i_vertex[i].y);// a->m[i*16+15]=-world[i][1]*vertex[i][1]; b_array[(i * 2 + 0)*1+0] = (double) i_vertex[i].x;// b->m[i*2+0] =vertex[i][0]; b_array[(i * 2 + 1)*1+0] = (double) i_vertex[i].y;// b->m[i*2+1] =vertex[i][1]; } if (!a->matrixSelfInv()) { return false; } o_para.matrixMul(*a,*b); return true; } /** * imageから、i_markerの位置にあるパターンを切り出して、保持します。 Optimize:STEP[769->750] * * @param image * @param i_marker * @throws Exception */ bool NyARColorPatt_O3::pickFromRaster(const INyARRgbRaster& image,const TNyARIntPoint2d i_vertexs[]) { NyARMat& cpara = *(this->__pickFromRaster_cpara); // xdiv2,ydiv2の計算 int xdiv2, ydiv2; int l1, l2; int w1, w2; // x計算 w1 = i_vertexs[0].x - i_vertexs[1].x; w2 = i_vertexs[0].y - i_vertexs[1].y; l1 = (w1 * w1 + w2 * w2); w1 = i_vertexs[2].x - i_vertexs[3].x; w2 = i_vertexs[2].y - i_vertexs[3].y; l2 = (w1 * w1 + w2 * w2); if (l2 > l1) { l1 = l2; } l1 = l1 / 4; xdiv2 = this->_size.w; while (xdiv2 * xdiv2 < l1) { xdiv2 *= 2; } if (xdiv2 > AR_PATT_SAMPLE_NUM) { xdiv2 = AR_PATT_SAMPLE_NUM; } // y計算 w1 = i_vertexs[1].x - i_vertexs[2].x; w2 = i_vertexs[1].y - i_vertexs[2].y; l1 = (w1 * w1 + w2 * w2); w1 = i_vertexs[3].x - i_vertexs[0].x; w2 = i_vertexs[3].y - i_vertexs[0].y; l2 = (w1 * w1 + w2 * w2); if (l2 > l1) { l1 = l2; } ydiv2 = this->_size.h; l1 = l1 / 4; while (ydiv2 * ydiv2 < l1) { ydiv2 *= 2; } if (ydiv2 > AR_PATT_SAMPLE_NUM) { ydiv2 = AR_PATT_SAMPLE_NUM; } // cparaの計算 if (!get_cpara(i_vertexs,cpara)) { return false; } updateExtpat(image,cpara, xdiv2, ydiv2); return true; } void NyARColorPatt_O3::reservWorkBuffers(int i_xdiv,int i_ydiv) { if(this->_last_pix_resolution_x<i_xdiv || this->_last_pix_resolution_y<i_ydiv){ NyAR_SAFE_ARRAY_DELETE(this->__updateExtpat_rgbset); NyAR_SAFE_ARRAY_DELETE(this->__updateExtpat_xc); NyAR_SAFE_ARRAY_DELETE(this->__updateExtpat_yc); NyAR_SAFE_ARRAY_DELETE(this->__updateExtpat_xw); NyAR_SAFE_ARRAY_DELETE(this->__updateExtpat_yw); this->__updateExtpat_xc=new int[i_xdiv*i_ydiv]; this->__updateExtpat_yc=new int[i_xdiv*i_ydiv]; this->__updateExtpat_xw=new double[i_xdiv]; this->__updateExtpat_yw=new double[i_ydiv]; this->__updateExtpat_rgbset=new int[i_xdiv*i_ydiv*3]; this->_last_pix_resolution_x=i_xdiv; this->_last_pix_resolution_y=i_ydiv; } return; } //分割数16未満になると少し遅くなるかも。 void NyARColorPatt_O3::updateExtpat(const INyARRgbRaster& image, const NyARMat& i_cpara, int i_xdiv2,int i_ydiv2) { int i,j; int r,g,b; //ピクセルリーダーを取得 const int pat_size_w=this->_size.w; const int xdiv = i_xdiv2 / pat_size_w;// xdiv = xdiv2/Config.AR_PATT_SIZE_X; const int ydiv = i_ydiv2 / this->_size.h;// ydiv = ydiv2/Config.AR_PATT_SIZE_Y; const int xdiv_x_ydiv = xdiv * ydiv; double reciprocal; const double* para=i_cpara.getArray(); const double para00=para[(0*3+0)*1+0]; const double para01=para[(0*3+1)*1+0]; const double para02=para[(0*3+2)*1+0]; const double para10=para[(1*3+0)*1+0]; const double para11=para[(1*3+1)*1+0]; const double para12=para[(1*3+2)*1+0]; const double para20=para[(2*3+0)*1+0]; const double para21=para[(2*3+1)*1+0]; const INyARRgbPixelReader& reader=image.getRgbPixelReader(); const int img_width=image.getWidth(); const int img_height=image.getHeight(); //ワークバッファの準備 reservWorkBuffers(xdiv,ydiv); double* xw=this->__updateExtpat_xw; double* yw=this->__updateExtpat_yw; int* xc=this->__updateExtpat_xc; int* yc=this->__updateExtpat_yc; int* rgb_set = this->__updateExtpat_rgbset; for(int iy=this->_size.h-1;iy>=0;iy--){ for(int ix=pat_size_w-1;ix>=0;ix--){ //xw,ywマップを作成 reciprocal= 1.0 / i_xdiv2; for(i=xdiv-1;i>=0;i--){ xw[i]=LT_POS + SQ_SIZE * (ix*xdiv+i + 0.5) * reciprocal; } reciprocal= 1.0 / i_ydiv2; for(i=ydiv-1;i>=0;i--){ yw[i]=LT_POS + SQ_SIZE * (iy*ydiv+i + 0.5) * reciprocal; } //1ピクセルを構成するピクセル座標の集合をxc,yc配列に取得 int number_of_pix=0; for(i=ydiv-1;i>=0;i--) { const double para01_x_yw_para02=para01 * yw[i] + para02; const double para11_x_yw_para12=para11 * yw[i] + para12; const double para12_x_yw_para22=para21 * yw[i]+ 1.0; for(j=xdiv-1;j>=0;j--){ const double d = para20 * xw[j] + para12_x_yw_para22; if (d == 0) { throw NyARException(); } const int xcw= (int) ((para00 * xw[j] + para01_x_yw_para02) / d); const int ycw= (int) ((para10 * xw[j] + para11_x_yw_para12) / d); if(xcw<0 || xcw>=img_width || ycw<0 ||ycw>=img_height){ continue; } xc[number_of_pix] =xcw; yc[number_of_pix] =ycw; number_of_pix++; } } //1ピクセル分の配列を取得 reader.getPixelSet(xc,yc,number_of_pix, rgb_set); r=g=b=0; for(i=number_of_pix*3-1;i>=0;i-=3){ r += rgb_set[i-2];// R g += rgb_set[i-1];// G b += rgb_set[i];// B } //1ピクセル確定 this->_patdata[iy*pat_size_w+ix]=(((r / xdiv_x_ydiv)&0xff)<<16)|(((g / xdiv_x_ydiv)&0xff)<<8)|(((b / xdiv_x_ydiv)&0xff)); } } return; } }
[ [ [ 1, 330 ] ] ]
23c29db6d28d38fbe85781e876e419e8b14041ce
097c5aee657c0a538c001d7af10ed466a9d48bce
/miniBenchArm/cQueens.h
fa45a4d0e5de71794452c548a10f4ceed142d7ce
[]
no_license
sspeng/miniBench
711380a27c0a93960fb20a7d9ff902c6e40659cd
d37e76188beb9861106baee68d0a7f901b35c710
refs/heads/master
2020-03-20T09:05:52.929763
2011-08-15T05:29:11
2011-08-15T05:29:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
521
h
#ifndef CQUEENS_H_INCLUDED #define CQUEENS_H_INCLUDED #include "cShortTests.h" #include "cStopwatch.h" //#include <omp.h> #include "omp.h" class cQueens // from CLIBench { public: long DoQueen( long iterations ); private: void Attempt( int i ); bool a[9],b[17],c[15]; int x[9]; }; class cQueensTest : public cTest { public: cQueensTest(int aIterations); protected: void RunTest(); int fIterations; private: int fQueensIterations; }; #endif // CQUEENS_H_INCLUDED
[ [ [ 1, 31 ] ] ]
4c0f3e30a25e7ff88e038a52ec31e90838766792
bef7d0477a5cac485b4b3921a718394d5c2cf700
/dingus/dingus/resource/SkinMeshBundle.h
2a62aef2a073b67c61a269822e33db1986026715
[ "MIT" ]
permissive
TomLeeLive/aras-p-dingus
ed91127790a604e0813cd4704acba742d3485400
22ef90c2bf01afd53c0b5b045f4dd0b59fe83009
refs/heads/master
2023-04-19T20:45:14.410448
2011-10-04T10:51:13
2011-10-04T10:51:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,463
h
// -------------------------------------------------------------------------- // Dingus project - a collection of subsystems for game/graphics applications // -------------------------------------------------------------------------- #ifndef __SKINMESH_BUNDLE_H #define __SKINMESH_BUNDLE_H #include "StorageResourceBundle.h" #include "DeviceResource.h" #include "../gfx/skeleton/SkinMesh.h" #include "../utils/Singleton.h" namespace dingus { class CSkinMeshBundle : public CStorageResourceBundle<CSkinMesh>, public CSingleton<CSkinMeshBundle>, public IDeviceResource { public: virtual void createResource(); virtual void activateResource(); virtual void passivateResource(); virtual void deleteResource(); protected: virtual CSkinMesh* tryLoadResourceById( const CResourceId& id ); virtual CSkinMesh* loadResourceById( const CResourceId& id, const CResourceId& fullName ); virtual void deleteResource( CSkinMesh& resource ) { if( resource.isCreated() ) resource.deleteResource(); delete &resource; } private: IMPLEMENT_SIMPLE_SINGLETON(CSkinMeshBundle); CSkinMeshBundle(); virtual ~CSkinMeshBundle() { clear(); }; /// @return false on not found bool loadMesh( const CResourceId& id, const CResourceId& fullName, CSkinMesh& mesh ) const; }; }; // namespace /// Shortcut macro #define RGET_SKIN(rid) dingus::CSkinMeshBundle::getInstance().getResourceById(rid) #endif
[ [ [ 1, 52 ] ] ]
d536e3a5943e276fb9584cfae6b9a2568b41a5de
42b578d005c2e8870a03fe02807e5607fec68f40
/src/dockbar.h
02ae542e7e382aa5cf8bcedf125458fdbe5f4e82
[ "MIT" ]
permissive
hylom/xom
e2b02470cd984d0539ded408d13f9945af6e5f6f
a38841cfe50c3e076b07b86700dfd01644bf4d4a
refs/heads/master
2021-01-23T02:29:51.908501
2009-10-30T08:41:30
2009-10-30T08:41:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
14,353
h
#ifndef _dockbar_h_ #define _dockbar_h_ #ifndef TBSTYLE_FLAT #define TBSTYLE_FLAT 0x0800 #endif #ifndef TCS_BOTTOM #define TCS_BOTTOM 2 #define TCS_RIGHT 2 #define TCS_HOTTRACK 0x40 #define TCS_VERTICAL 0x80 #endif #include "xlist.h" class dock_frame; class dock_bar: public xlist_node <dock_bar> { public: HWND b_hwnd; private: friend dock_frame; RECT b_rect; POINT b_required; WNDPROC b_wndproc; protected: dock_frame &b_frame; lisp b_lname; enum {TTBUFSIZE = 256}; static char b_ttbuf[TTBUFSIZE]; private: u_char b_edge; u_char b_border; u_char b_dockable; u_char b_status; static const char b_dock_bar_prop[]; public: enum { DOCK_STAT_NEW = 1, DOCK_STAT_NOREDRAW = 2 }; enum { HORZ_LEFT_PAD = 10, HORZ_RIGHT_PAD = 3, HORZ_TOP_PAD = 3, HORZ_BOTTOM_PAD = 1, VERT_LEFT_PAD = 2, VERT_RIGHT_PAD = 1, VERT_TOP_PAD = 8, VERT_BOTTOM_PAD = 4 }; enum { EDGE_LEFT, EDGE_TOP, EDGE_RIGHT, EDGE_BOTTOM, EDGE_MAX }; enum { BORDER_LEFT = 1 << EDGE_LEFT, BORDER_TOP = 1 << EDGE_TOP, BORDER_RIGHT = 1 << EDGE_RIGHT, BORDER_BOTTOM = 1 << EDGE_BOTTOM, BORDER_ALL = BORDER_LEFT | BORDER_TOP | BORDER_RIGHT | BORDER_BOTTOM }; enum { DOCKABLE_LEFT = BORDER_LEFT, DOCKABLE_TOP = BORDER_TOP, DOCKABLE_RIGHT = BORDER_RIGHT, DOCKABLE_BOTTOM = BORDER_BOTTOM, DOCKABLE_ALL = BORDER_ALL }; enum {DOCK_BAR_CLIENT_HEIGHT = 22}; //enum {DOCK_BAR_DEFAULT_HEIGHT = DOCK_BAR_CLIENT_HEIGHT + HORZ_TOP_PAD + HORZ_BOTTOM_PAD}; enum {DOCK_LENGTH_INFINITE = 0x7fff}; protected: dock_bar (dock_frame &, lisp, int); virtual ~dock_bar (); static int new_comctl_p () {return sysdep.comctl32_version >= PACK_VERSION (4, 70);} private: static LRESULT CALLBACK wndproc (HWND, UINT, WPARAM, LPARAM); protected: virtual LRESULT wndproc (UINT, WPARAM, LPARAM); int subclass (); void unsubclass (); void erase_non_client () const; void draw_borders (HDC, RECT &) const; void draw_gripper (HDC, const RECT &) const; virtual void adjust_gripper (HDC, RECT &, const RECT &) const {} int nc_calc_size (RECT &) const; int lbtn_down (int, int); void modify_dock_edge (int edge) {b_edge = edge;} virtual void dock_edge () {} virtual void post_nc_destroy () {} virtual int do_context_menu (const POINT *) {return 0;} private: RECT &rect () {return b_rect;} void modify_border (int remove, int add) {b_border = (b_border & ~remove) | add;} void modify_status (int remove, int add) {b_status = (b_status & ~remove) | add;} public: const RECT &rect () const {return b_rect;} static dock_bar *from_hwnd (HWND hwnd) {return (dock_bar *)GetProp (hwnd, b_dock_bar_prop);} LRESULT sendmsg (UINT msg, WPARAM wparam, LPARAM lparam) const {return CallWindowProc (b_wndproc, b_hwnd, msg, wparam, lparam);} int create (DWORD exstyle, const char *class_name, const char *window_name, DWORD style, int x, int y, int cx, int cy, HWND hwnd_parent, HMENU hmenu, HINSTANCE hinst, void *param) { b_hwnd = CreateWindowEx (exstyle, class_name, window_name, style, x, y, cx, cy, hwnd_parent, hmenu, hinst, param); return b_hwnd && subclass (); } long style () const {return GetWindowLong (b_hwnd, GWL_STYLE);} void set_style (long x) const {SetWindowLong (b_hwnd, GWL_STYLE, x);} void modify_style (long remove, long add) const {set_style ((style () & ~remove) | add);} static int vert_edge_p (int edge) {return (1 << edge) & ((1 << EDGE_LEFT) | (1 << EDGE_RIGHT));} int dock_vert_p () const {return vert_edge_p (edge ());} int edge () const {return b_edge;} int check_edge (int) const; int border () const {return b_border;} int dockable () const {return b_dockable;} int status () const {return b_status;} static void set_tooltip_no_prefix (HWND hwnd_tt) {SetWindowLong (hwnd_tt, GWL_STYLE, GetWindowLong (hwnd_tt, GWL_STYLE) | TTS_NOPREFIX);} virtual void calc_window_size (SIZE &, int) const; virtual void calc_client_size (SIZE &, int) const = 0; virtual void reload_settings () {} virtual int notify (NMHDR *, LRESULT &) {return 0;} virtual int need_text (TOOLTIPTEXT &) {return 0;} void set_redraw (); void set_no_redraw (); virtual void draw_item (DRAWITEMSTRUCT *) {} virtual void update_ui () {} virtual lisp lookup_command (int) const {return 0;} lisp name () const {return b_lname;} virtual void gc_mark (void (*f)(lisp)) {(*f)(b_lname);} virtual void *ident () const {return 0;} virtual int focus () const {return 0;} virtual void color_changed () const {} virtual int set_horz_text_p (int) {return 0;} virtual int horz_width () const {return -1;} virtual void set_horz_width (int) {} }; class tool_bm { public: class bm_node: public xlist_node <bm_node> { HBITMAP b_hbm; int b_ref; const char *b_path; bm_node () : b_hbm (0), b_ref (0), b_path (0) {} ~bm_node () { if (b_hbm) DeleteObject (b_hbm); xfree ((void *)b_path); } void incref () {b_ref++;} int decref () {return --b_ref;} friend tool_bm; public: operator HBITMAP () const {return b_hbm;} }; enum { LMB_NO_ERRORS, LMB_OPEN_FILE = Ecannot_open_bmp_file, LMB_BAD_FORMAT = Ebad_bmp_format, LMB_UNSUPPORTED = Eunsupported_bmp_format, LMB_NOMEM = Estorage_condition, LMB_FAILED = Ecannot_create_bitmap }; private: xlist <bm_node> bm_list; protected: static int load_mapped_bitmap (const char *, HBITMAP &); public: const bm_node *load (const char *, int &); void release (const bm_node *); void reload (); }; class tool_bar: public dock_bar { protected: SIZE t_button_size; SIZE t_bitmap_size; const tool_bm::bm_node *t_bm; protected: virtual void dock_edge (); void set_bitmap (); int nc_calc_size (RECT &) const; virtual LRESULT wndproc (UINT, WPARAM, LPARAM); int tb_flat_p () const {return new_comctl_p () && style () & TBSTYLE_FLAT;} void erase_bkgnd (HDC) const; public: tool_bar (dock_frame &, lisp); ~tool_bar (); int create (HWND, DWORD, UINT); int set_bitmap_size (int cx, int cy) { t_bitmap_size.cx = cx; t_bitmap_size.cy = cy; return sendmsg (TB_SETBITMAPSIZE, 0, MAKELONG (cx, cy)); } int set_button_size (int cx, int cy) { t_button_size.cx = cx; t_button_size.cy = cy; return sendmsg (TB_SETBUTTONSIZE, 0, MAKELONG (cx, cy)); } int add_bitmap (const TBADDBITMAP &tbab, int n) {return sendmsg (TB_ADDBITMAP, n, LPARAM (&tbab));} int button_count () const {return sendmsg (TB_BUTTONCOUNT, 0, 0);} int add_buttons (int n, const TBBUTTON *b) {return sendmsg (TB_ADDBUTTONS, n, LPARAM (b));} HWND get_tooltips () const {return HWND (sendmsg (TB_GETTOOLTIPS, 0, 0));} int get_button (int i, TBBUTTON &b) const {return sendmsg (TB_GETBUTTON, i, LPARAM (&b));} int insert_button (int i, const TBBUTTON &b) {return sendmsg (TB_INSERTBUTTON, i, LPARAM (&b));} int delete_button (int i) {return sendmsg (TB_DELETEBUTTON, i, 0);} void set_button (int, const TBBUTTON &, int = 0); int item_rect (int i, RECT &r) {return sendmsg (TB_GETITEMRECT, i, LPARAM (&r));} int get_state (int id) {return sendmsg (TB_GETSTATE, id, 0);} int set_state (int id, int state) {return sendmsg (TB_SETSTATE, id, MAKELONG (state, 0));} int enable_button (int id, int f) {return sendmsg (TB_ENABLEBUTTON, id, MAKELONG (f ? 1 : 0, 0));} int check_button (int id, int f) {return sendmsg (TB_CHECKBUTTON, id, MAKELONG (f ? 1 : 0, 0));} int press_button (int id, int f) {return sendmsg (TB_PRESSBUTTON, id, MAKELONG (f ? 1 : 0, 0));} virtual void calc_client_size (SIZE &, int) const; int load_bitmap (const char *); virtual void reload_settings (); }; class tab_bar: public dock_bar { protected: int t_tab_height; int t_horz_text; int t_horz_width; int t_horz_height; private: int t_erasebkgnd_called; int t_dots; static const char b_tab_bar_spin_prop[]; protected: enum {IDC_TAB_SPIN = 1}; enum {GRIPPER_SIZE = 3}; enum {MIN_WIDTH = 20}; struct draw_item_struct { HDC hdc; int state; RECT r; DWORD data; }; virtual LRESULT wndproc (UINT, WPARAM, LPARAM); int nc_calc_size (RECT &) const; void paint (); void erase_bkgnd (HDC); int inverse_p () const {return style () & TCS_BOTTOM;} virtual void dock_edge (); void draw_item (const draw_item_struct &, char *, int, COLORREF, COLORREF) const; virtual void draw_item (const draw_item_struct &) {} virtual void update_ui (); int abbrev_text (HDC, char *, int, int) const; virtual void adjust_gripper (HDC, RECT &, const RECT &) const; int lbtn_down (int, int); int move_tab (int, int); int set_cursor (WPARAM, LPARAM); virtual int do_context_menu (const POINT *); virtual lisp context_menu (int) {return Qnil;} private: void modify_spin (); void paint_left (HDC, const RECT &, const RECT &, int); void paint_top (HDC, const RECT &, const RECT &, int); void paint_right (HDC, const RECT &, const RECT &, int); void paint_bottom (HDC, const RECT &, const RECT &, int); int notify_spin (NMHDR *, LRESULT &) const; static void parent_notify (UINT, UINT, HWND); static LRESULT CALLBACK spin_wndproc (HWND, UINT, WPARAM, LPARAM); public: tab_bar (dock_frame &, lisp); ~tab_bar () {} int create (HWND hwnd_parent, DWORD style, UINT id) { return dock_bar::create (0, WC_TABCONTROL, "", style, 0, 0, 0, 0, hwnd_parent, (HMENU)id, app.hinst, 0); } int create (HWND); virtual void calc_client_size (SIZE &, int) const; void calc_tab_height (); void set_font (HFONT hf) {sendmsg (WM_SETFONT, WPARAM (hf), 0);} int insert_item (int i, const TC_ITEM &ti) {return sendmsg (TCM_INSERTITEM, i, LPARAM (&ti));} int delete_item (int i) {return sendmsg (TCM_DELETEITEM, i, 0);} int set_item (int i, const TC_ITEM &ti) {return sendmsg (TCM_SETITEM, i, LPARAM (&ti));} int get_item (int i, TC_ITEM &ti) const {return sendmsg (TCM_GETITEM, i, LPARAM (&ti));} void set_padding (int cx, int cy) const {sendmsg (TCM_SETPADDING, 0, MAKELONG (cx, cy));} void adjust_rect (int f, RECT &r) const {sendmsg (TCM_ADJUSTRECT, f, LPARAM (&r));} int item_count () const {return sendmsg (TCM_GETITEMCOUNT, 0, 0);} int set_cursel (int i) {return sendmsg (TCM_SETCURSEL, i, 0);} int get_cursel () const {return sendmsg (TCM_GETCURSEL, 0, 0);} HWND get_tooltips () const {return (HWND)sendmsg (TCM_GETTOOLTIPS, 0, 0);} int get_item_rect (int i, RECT &r) const {return sendmsg (TCM_GETITEMRECT, i, LPARAM (&r));} int set_item_size (int cx, int cy) {return sendmsg (TCM_SETITEMSIZE, 0, MAKELPARAM (cx, cy));} int hit_test (TC_HITTESTINFO &info) {return sendmsg (TCM_HITTEST, 0, LPARAM (&info));} DWORD nth (int) const; virtual int focus () const { if (style () & TCS_FOCUSNEVER) return 0; SetFocus (b_hwnd); return 1; } virtual void color_changed () const {InvalidateRect (b_hwnd, 0, 0);} int horz_text_p () const {return t_horz_text;} virtual int set_horz_text_p (int x) { if (t_horz_text ? x : !x) return 0; t_horz_text = !t_horz_text; return 1; } virtual int horz_width () const {return t_horz_width;} virtual void set_horz_width (int w) {t_horz_width = max (MIN_WIDTH, w);} }; class dock_frame { public: enum { EDGE_LEFT = dock_bar::EDGE_LEFT, EDGE_TOP = dock_bar::EDGE_TOP, EDGE_RIGHT = dock_bar::EDGE_RIGHT, EDGE_BOTTOM = dock_bar::EDGE_BOTTOM, EDGE_INVALID, EDGE_MAX = EDGE_INVALID }; private: typedef xlist <dock_bar> dock_bar_list; HWND f_hwnd; HWND f_hwnd_frame; dock_bar_list f_bars[EDGE_MAX + 1]; RECT f_edge_rect[EDGE_MAX]; int f_arrange; tool_bm f_bm; enum {MIN_SIZE = 32}; static LONG arrange_horz (const dock_bar_list &, LONG); static LONG arrange_vert (const dock_bar_list &, LONG); static LONG horz_max (const dock_bar_list &, LONG); static LONG vert_max (const dock_bar_list &, LONG); static void dock_edge (dock_bar *, int, int); int defer_window_pos (HDWP &, HWND &, int); void set_window_pos (HWND &, int); static void limit_range (SIZE &, const RECT &, const RECT &); static void drag_rect (RECT &, int, int, const POINT &, const SIZE *, const SIZE &, const SIZE &); int on_edge (const RECT &, int, int, int &) const; int on_edge_p (const RECT &, int, int) const; void move_bar (dock_bar *, RECT &, int); public: dock_frame (); ~dock_frame (); tool_bm &bm () {return f_bm;} void init (HWND hwnd, HWND hwnd_frame) {f_hwnd = hwnd; f_hwnd_frame = hwnd_frame;} HWND hwnd_frame () const {return f_hwnd_frame;} void add (dock_bar *); void show (dock_bar *, int, const POINT *, int); void hide (dock_bar *); void remove (dock_bar *); void calc_layout (RECT &, HWND); int move_bar (dock_bar *, int, int); void reload_settings (); int notify (NMHDR *, LRESULT &); void cleanup (); int modified () const {return f_arrange;} void arrange_bar (const dock_bar *bar) {f_arrange |= 1 << bar->edge ();} int draw_item (DRAWITEMSTRUCT *); dock_bar *find (lisp) const; void update_ui (); lisp lookup_command (int) const; void gc_mark (void (*)(lisp)); lisp list_bars () const; int focus_next (const dock_bar *) const; int focus_prev (const dock_bar *) const; void color_changed () const; void refresh (); virtual void recalc_layout () = 0; }; #endif /* _dockbar_h_ */
[ [ [ 1, 441 ] ] ]
df49e5de6b26ef209f5b06a4300fa0c8476c2872
b4d726a0321649f907923cc57323942a1e45915b
/CODE/GAMEHELP/contexthelp.cpp
c17597eb68115366f24964bcf92a468eeb3ed8ea
[]
no_license
chief1983/Imperial-Alliance
f1aa664d91f32c9e244867aaac43fffdf42199dc
6db0102a8897deac845a8bd2a7aa2e1b25086448
refs/heads/master
2016-09-06T02:40:39.069630
2010-10-06T22:06:24
2010-10-06T22:06:24
967,775
2
0
null
null
null
null
UTF-8
C++
false
false
28,737
cpp
/* * Copyright (C) Volition, Inc. 1999. All rights reserved. * * All source code herein is the property of Volition, Inc. You may not sell * or otherwise commercially exploit the source or things you created based on the * source. * */ /* * $Logfile: /Freespace2/code/GameHelp/ContextHelp.cpp $ * $Revision: 1.1.1.1 $ * $Date: 2004/08/13 22:47:40 $ * $Author: Spearhawk $ * * Functions to drive the context-sensitive help * * $Log: contexthelp.cpp,v $ * Revision 1.1.1.1 2004/08/13 22:47:40 Spearhawk * no message * * Revision 1.1.1.1 2004/08/13 20:45:00 Darkhill * no message * * Revision 2.4 2004/03/08 22:02:38 Kazan * Lobby GUI screen restored * * Revision 2.3 2004/03/05 09:01:58 Goober5000 * Uber pass at reducing #includes * --Goober5000 * * Revision 2.2 2004/02/20 04:29:54 bobboau * pluged memory leaks, * 3D HTL lasers (they work perfictly) * and posably fixed Turnsky's shinemap bug * * Revision 2.1 2002/08/01 01:41:04 penguin * The big include file move * * Revision 2.0 2002/06/03 04:02:22 penguin * Warpcore CVS sync * * Revision 1.2 2002/05/03 22:07:08 mharris * got some stuff to compile * * Revision 1.1 2002/05/02 18:03:07 mharris * Initial checkin - converted filenames and includes to lower case * * * 16 8/22/99 4:22p Jefff * removed 2nd tech room overlay stuff * * 15 8/09/99 5:54p Jefff * tech room overlay changes * * 14 7/27/99 7:18p Jefff * fixed a debug function for adjsuting overlays in-game * * 13 7/20/99 1:49p Dave * Peter Drake build. Fixed some release build warnings. * * 12 7/16/99 10:07a Jefff * Removed legacy bitmap overlay code * * 11 7/16/99 10:04a Jefff * * 10 7/15/99 9:20a Andsager * FS2_DEMO initial checkin * * 9 7/11/99 6:40p Jefff * * 8 7/08/99 6:25p Jefff * got new help system working * * 7 6/03/99 10:15p Dave * Put in temporary main hall screen. * * 6 3/25/99 8:32p Neilk * temporary barracks help removal * * 5 2/15/99 9:37a Dave * Removed infinite loop from context help parse code. * * 4 2/11/99 4:05p Neilk * Temporary checkin * * 3 1/29/99 2:37p Neilk * foundation for a new help system * * 2 10/07/98 10:52a Dave * Initial checkin. * * 1 10/07/98 10:48a Dave * * 92 5/06/98 11:49p Lawrance * Add help overlay for command brief * * 91 5/05/98 1:49a Lawrance * Add in missing help overlays * * 90 4/25/98 2:00p Dave * Installed a bunch of multiplayer context help screens. Reworked ingame * join ship select screen. Fix places where network timestamps get hosed. * * 89 4/20/98 12:03a Lawrance * make gray help shader lighter * * 88 4/11/98 7:59p Lawrance * Add support for help overlays * * 87 3/12/98 5:36p John * Took out any unused shaders. Made shader code take rgbc instead of * matrix and vector since noone used it like a matrix and it would have * been impossible to do in hardware. Made Glide implement a basic * shader for online help. * * 86 3/09/98 9:55p Lawrance * split off gameplay help, rip out obsolete code * * 85 3/05/98 11:15p Hoffoss * Changed non-game key checking to use game_check_key() instead of * game_poll(). * * 84 2/28/98 9:47p Lawrance * Fix couple of typos * * 83 2/28/98 7:02p Lawrance * overhaul on-line help * */ #include <string.h> #include <setjmp.h> #include "gamehelp/contexthelp.h" #include "gamesequence/gamesequence.h" #include "menuui/mainhallmenu.h" #include "graphics/2d.h" #include "parse/parselo.h" #include "localization/localize.h" #include "globalincs/alphacolors.h" #include "globalincs/systemvars.h" //////////////////////////////////////////////////////////////////// // private function prototypes / structs //////////////////////////////////////////////////////////////////// void parse_helptbl(); void help_overlay_blit(int overlay_id); void help_overlay_init(); typedef struct { int x_begin, y_begin, x_end, y_end; } help_line; typedef struct { vector vtx[HELP_MAX_PLINE_VERTICES]; vector *pvtx[HELP_MAX_PLINE_VERTICES]; int vtxcount; } help_pline; typedef struct { int x_coord, y_coord; char* string; } help_text; typedef struct { int x_coord, y_coord; } help_left_bracket; typedef struct { int x_coord, y_coord; } help_right_bracket; typedef struct { help_pline plinelist[GR_NUM_RESOLUTIONS][HELP_MAX_ITEM]; help_text textlist[GR_NUM_RESOLUTIONS][HELP_MAX_ITEM]; help_left_bracket lbracketlist[GR_NUM_RESOLUTIONS][HELP_MAX_ITEM]; help_right_bracket rbracketlist[GR_NUM_RESOLUTIONS][HELP_MAX_ITEM]; int plinecount; int textcount; int lbracketcount; int rbracketcount; } help_overlay; // new help.tbl file way char *help_overlay_section_names[MAX_HELP_OVERLAYS] = { "$ship", // ship_help "$weapon", // weapon_help "$briefing", // briefing "$main", // main help overlay "$barracks", // barracks "$control", // control help "$debrief", // debrief help "$multicreate", // multicreate help "$multistart", // multistart help "$multijoin", // multijoin help "$main2", // main help overlay2 "$hotkey", // hotkey help "$campaign", // campaign help "$simulator", // simulator help "$tech", // tech help "$command" // command help }; //////////////////////////////////////////////////////////////////// // Game-wide globals //////////////////////////////////////////////////////////////////// shader Grey_shader; //////////////////////////////////////////////////////////////////// // Module globals //////////////////////////////////////////////////////////////////// static int help_left_bracket_bitmap; static int help_right_bracket_bitmap; static help_overlay help_overlaylist[MAX_HELP_OVERLAYS]; static int current_helpid = -1; // the currently active overlay_id, only really used for the debug console funxions int Help_overlay_flags; static int Source_game_state; // state from where F1 was pressed //////////////////////////////////////////////////////////////////// // Public Functions //////////////////////////////////////////////////////////////////// // query whether a help overlay is active (ie being displayed) int help_overlay_active(int overlay_id) { Assert(overlay_id >= 0 && overlay_id < MAX_HELP_OVERLAYS); return Help_overlay_flags & (1<<overlay_id); } // stop displaying a help overlay void help_overlay_set_state(int overlay_id, int state) { Assert(overlay_id >= 0 && overlay_id < MAX_HELP_OVERLAYS); if ( state > 0 ) { Help_overlay_flags |= (1<<overlay_id); current_helpid = overlay_id; } else { Help_overlay_flags &= ~(1<<overlay_id); //current_helpid = -1; } } // load in the bitmap for a help overlay // FIXME - leftover from the old bitmap overlay days - prune this out sometime void help_overlay_load(int overlay_id) { return; } // unload a bitmap of a help overlay // FIXME - leftover from the old bitmap overlay days - prune this out sometime void help_overlay_unload(int overlay_id) { return; } // maybe blit a bitmap of a help overlay to the screen void help_overlay_maybe_blit(int overlay_id) { Assert(overlay_id >= 0 && overlay_id < MAX_HELP_OVERLAYS); if ( Help_overlay_flags & (1<<overlay_id) ) { context_help_grey_screen(); help_overlay_blit(overlay_id); } } // reset the flags for the help overlays void help_overlay_reset_all() { Help_overlay_flags = 0; } // Set up Grey_shader, which is used game-wide to grey out background when using help overlays void create_grey_shader() { float tmp,c; tmp = 0.4f/3.0f; // The c matrix brightens everything a bit. // c = 0.125f; c = 0.110f; gr_create_shader( &Grey_shader, tmp, tmp, tmp, c ); } // called at game startup to init all help related data void context_help_init() { create_grey_shader(); help_overlay_reset_all(); help_overlay_init(); } void context_help_grey_screen() { gr_set_shader(&Grey_shader); gr_shade(0,0,gr_screen.clip_width, gr_screen.clip_height); } // launch_context_help() will switch to a context sensitive help state void launch_context_help() { // look at the state the game was in when F1 was pressed Source_game_state = gameseq_get_state(); switch (Source_game_state) { case GS_STATE_MAIN_MENU: #if !defined(PRESS_TOUR_BUILD) && !defined(PD_BUILD) int main_hall_num; main_hall_num = (main_hall_id() == 0) ? MH_OVERLAY : MH2_OVERLAY; if ( !help_overlay_active(main_hall_num) ) { help_overlay_set_state(main_hall_num, 1); } else { help_overlay_set_state(main_hall_num, 0); } #endif break; case GS_STATE_GAME_PLAY: case GS_STATE_GAME_PAUSED: case GS_STATE_TRAINING_PAUSED: gameseq_post_event(GS_EVENT_GAMEPLAY_HELP); break; case GS_STATE_BRIEFING: if ( !help_overlay_active(BR_OVERLAY) ) { help_overlay_set_state(BR_OVERLAY, 1); } else { help_overlay_set_state(BR_OVERLAY, 0); } break; case GS_STATE_SHIP_SELECT: if ( !help_overlay_active(SS_OVERLAY) ) { help_overlay_set_state(SS_OVERLAY, 1); } else { help_overlay_set_state(SS_OVERLAY, 0); } break; case GS_STATE_WEAPON_SELECT: if ( !help_overlay_active(WL_OVERLAY) ) { help_overlay_set_state(WL_OVERLAY, 1); } else { help_overlay_set_state(WL_OVERLAY, 0); } break; case GS_STATE_BARRACKS_MENU: if ( !help_overlay_active(BARRACKS_OVERLAY) ) { help_overlay_set_state(BARRACKS_OVERLAY, 1); } else { help_overlay_set_state(BARRACKS_OVERLAY, 0); } break; case GS_STATE_CONTROL_CONFIG: if ( !help_overlay_active(CONTROL_CONFIG_OVERLAY) ) { help_overlay_set_state(CONTROL_CONFIG_OVERLAY, 1); } else { help_overlay_set_state(CONTROL_CONFIG_OVERLAY, 0); } break; case GS_STATE_DEBRIEF: if ( !help_overlay_active(DEBRIEFING_OVERLAY) ) { help_overlay_set_state(DEBRIEFING_OVERLAY, 1); } else { help_overlay_set_state(DEBRIEFING_OVERLAY, 0); } break; case GS_STATE_MULTI_HOST_SETUP: if ( !help_overlay_active(MULTI_CREATE_OVERLAY) ) { help_overlay_set_state(MULTI_CREATE_OVERLAY, 1); } else { help_overlay_set_state(MULTI_CREATE_OVERLAY, 0); } break; case GS_STATE_MULTI_START_GAME: if ( !help_overlay_active(MULTI_START_OVERLAY) ) { help_overlay_set_state(MULTI_START_OVERLAY, 1); } else { help_overlay_set_state(MULTI_START_OVERLAY, 0); } break; /* case GS_STATE_NET_CHAT: if (!help_overlay_active(FS2OX_OVERLAY) ) { help_overlay_set_state(FS2OX_OVERLAY, 1); } else { help_overlay_set_state(FS2OX_OVERLAY, 1); } break; */ case GS_STATE_MULTI_JOIN_GAME: if ( !help_overlay_active(MULTI_JOIN_OVERLAY) ) { help_overlay_set_state(MULTI_JOIN_OVERLAY, 1); } else { help_overlay_set_state(MULTI_JOIN_OVERLAY, 0); } break; case GS_STATE_HOTKEY_SCREEN: if ( !help_overlay_active(HOTKEY_OVERLAY) ) { help_overlay_set_state(HOTKEY_OVERLAY, 1); } else { help_overlay_set_state(HOTKEY_OVERLAY, 0); } break; case GS_STATE_CAMPAIGN_ROOM: if ( !help_overlay_active(CAMPAIGN_ROOM_OVERLAY) ) { help_overlay_set_state(CAMPAIGN_ROOM_OVERLAY, 1); } else { help_overlay_set_state(CAMPAIGN_ROOM_OVERLAY, 0); } break; case GS_STATE_SIMULATOR_ROOM: if ( !help_overlay_active(SIM_ROOM_OVERLAY) ) { help_overlay_set_state(SIM_ROOM_OVERLAY, 1); } else { help_overlay_set_state(SIM_ROOM_OVERLAY, 0); } break; case GS_STATE_TECH_MENU: { if ( !help_overlay_active(TECH_ROOM_OVERLAY) ) { help_overlay_set_state(TECH_ROOM_OVERLAY, 1); } else { help_overlay_set_state(TECH_ROOM_OVERLAY, 0); } break; } case GS_STATE_CMD_BRIEF: if ( !help_overlay_active(CMD_BRIEF_OVERLAY) ) { help_overlay_set_state(CMD_BRIEF_OVERLAY, 1); } else { help_overlay_set_state(CMD_BRIEF_OVERLAY, 0); } break; default: nprintf(("Warning","WARNING ==> There is no context help available for state %s\n", GS_state_text[Source_game_state-1])); break; } // end switch } void close_help(){ for (int overlay_id=0; overlay_id<MAX_HELP_OVERLAYS; overlay_id++){ for(int i = 0; i<HELP_MAX_ITEM; i++) safe_kill(help_overlaylist[overlay_id].textlist[GR_640][i].string); } } // Called once at the beginning of the game to load help bitmaps & data void help_overlay_init() { // load right_bracket bitmap help_right_bracket_bitmap = bm_load("right_bracket"); if(help_right_bracket_bitmap < 0){ // we failed to load the bitmap - this is very bad Int3(); } // load left_bracket bitmap help_left_bracket_bitmap = bm_load("left_bracket"); if(help_left_bracket_bitmap < 0){ // we failed to load the bitmap - this is very bad Int3(); } atexit(close_help); // parse help.tbl parse_helptbl(); } // parses help.tbl and populates help_overlaylist[] void parse_helptbl() { int overlay_id, currcount; char buf[HELP_MAX_STRING_LENGTH + 1]; int i; // open localization lcl_ext_open(); read_file_text(HELP_OVERLAY_FILENAME); // for each overlay... for (overlay_id=0; overlay_id<MAX_HELP_OVERLAYS; overlay_id++) { reset_parse(); skip_to_string(help_overlay_section_names[overlay_id]); // clear out counters in the overlay struct help_overlaylist[overlay_id].plinecount = 0; help_overlaylist[overlay_id].textcount = 0; help_overlaylist[overlay_id].rbracketcount = 0; help_overlaylist[overlay_id].lbracketcount = 0; // read in all elements for this overlay while (!(check_for_string("$end"))) { if (optional_string("+pline")) { currcount = help_overlaylist[overlay_id].plinecount; int a, b; // temp vars to read in int before cast to float; if (currcount < HELP_MAX_ITEM) { // read number of pline vertices stuff_int(&help_overlaylist[overlay_id].plinelist[GR_640][currcount].vtxcount); // note that it is read into GR_640 // help_overlaylist[overlay_id].plinelist[GR_1024][currcount].vtxcount = help_overlaylist[overlay_id].plinelist[GR_640][currcount].vtxcount; // set equal to 1024 version vertex count to prevent bugs Assert(help_overlaylist[overlay_id].plinelist[GR_640][currcount].vtxcount <= HELP_MAX_PLINE_VERTICES); // get 640x480 vertex coordinates for (i=0; i<help_overlaylist[overlay_id].plinelist[GR_640][currcount].vtxcount; i++) { stuff_int(&a); stuff_int(&b); help_overlaylist[overlay_id].plinelist[GR_640][currcount].vtx[i].xyz.x = (float)a; help_overlaylist[overlay_id].plinelist[GR_640][currcount].vtx[i].xyz.y = (float)b; help_overlaylist[overlay_id].plinelist[GR_640][currcount].vtx[i].xyz.z = 0.0f; help_overlaylist[overlay_id].plinelist[GR_640][currcount].pvtx[i] = &help_overlaylist[overlay_id].plinelist[GR_640][currcount].vtx[i]; } // get 1024x768 vertex coordinates for (i=0; i<help_overlaylist[overlay_id].plinelist[GR_640][currcount].vtxcount; i++) { stuff_int(&a); stuff_int(&b); help_overlaylist[overlay_id].plinelist[GR_1024][currcount].vtx[i].xyz.x = (float)a; help_overlaylist[overlay_id].plinelist[GR_1024][currcount].vtx[i].xyz.y = (float)b; help_overlaylist[overlay_id].plinelist[GR_1024][currcount].vtx[i].xyz.z = 0.0f; help_overlaylist[overlay_id].plinelist[GR_1024][currcount].pvtx[i] = &help_overlaylist[overlay_id].plinelist[GR_1024][currcount].vtx[i]; } } //mprintf(("Found pline - start location (%f,%f), end location (%f,%f)\n", help_overlaylist[overlay_id].plinelist[GR_640][currcount].vtx[0].xyz.x, help_overlaylist[overlay_id].plinelist[GR_640][currcount].vtx[0].xyz.y, help_overlaylist[overlay_id].plinelist[GR_640][currcount].vtx[2].xyz.x, help_overlaylist[overlay_id].plinelist[GR_640][currcount].vtx[2].xyz.y)); help_overlaylist[overlay_id].plinecount++; } else if (optional_string("+text")) { currcount = help_overlaylist[overlay_id].textcount; if (currcount < HELP_MAX_ITEM) { // get 640x480 coordinates stuff_int(&(help_overlaylist[overlay_id].textlist[GR_640][currcount].x_coord)); stuff_int(&(help_overlaylist[overlay_id].textlist[GR_640][currcount].y_coord)); // get 1024x768 coordinates stuff_int(&(help_overlaylist[overlay_id].textlist[GR_1024][currcount].x_coord)); stuff_int(&(help_overlaylist[overlay_id].textlist[GR_1024][currcount].y_coord)); // get string (always use the GR_640 one) stuff_string(buf, F_MESSAGE, NULL); help_overlaylist[overlay_id].textlist[GR_640][currcount].string = strdup(buf); //mprintf(("Found text %d on overlay %d - location (%d,%d) @ 640x480 :: location (%d,%d) @ 1024x768\n", currcount, overlay_id, help_overlaylist[overlay_id].textlist[GR_640][currcount].x_coord, help_overlaylist[overlay_id].textlist[GR_640][currcount].y_coord, help_overlaylist[overlay_id].textlist[GR_1024][currcount].x_coord, help_overlaylist[overlay_id].textlist[GR_1024][currcount].x_coord)); help_overlaylist[overlay_id].textcount++; } } else if (optional_string("+right_bracket")) { currcount = help_overlaylist[overlay_id].rbracketcount; if (currcount < HELP_MAX_ITEM) { // get 640x480 coordinates stuff_int(&(help_overlaylist[overlay_id].rbracketlist[GR_640][currcount].x_coord)); stuff_int(&(help_overlaylist[overlay_id].rbracketlist[GR_640][currcount].y_coord)); // get 1024x768 coordinates stuff_int(&(help_overlaylist[overlay_id].rbracketlist[GR_1024][currcount].x_coord)); stuff_int(&(help_overlaylist[overlay_id].rbracketlist[GR_1024][currcount].y_coord)); //mprintf(("Found rbracket %d on overlay %d - location (%d,%d) @ 640x480 :: location (%d,%d) @ 1024x768\n", currcount, overlay_id, help_overlaylist[overlay_id].rbracketlist[GR_640][currcount].x_coord, help_overlaylist[overlay_id].rbracketlist[GR_640][currcount].y_coord, help_overlaylist[overlay_id].rbracketlist[GR_1024][currcount].x_coord, help_overlaylist[overlay_id].rbracketlist[GR_1024][currcount].y_coord)); help_overlaylist[overlay_id].rbracketcount++; } } else if (optional_string("+left_bracket")) { currcount = help_overlaylist[overlay_id].lbracketcount; if (currcount < HELP_MAX_ITEM) { // get 640x480 coordinates stuff_int(&(help_overlaylist[overlay_id].lbracketlist[GR_640][currcount].x_coord)); stuff_int(&(help_overlaylist[overlay_id].lbracketlist[GR_640][currcount].y_coord)); // get 1024x768 coordinates stuff_int(&(help_overlaylist[overlay_id].lbracketlist[GR_1024][currcount].x_coord)); stuff_int(&(help_overlaylist[overlay_id].lbracketlist[GR_1024][currcount].y_coord)); //mprintf(("Found lbracket %d on overlay %d - location (%d,%d) @ 640x480 :: location (%d,%d) @ 1024x768\n", currcount, overlay_id, help_overlaylist[overlay_id].lbracketlist[GR_640][currcount].x_coord, help_overlaylist[overlay_id].lbracketlist[GR_640][currcount].y_coord, help_overlaylist[overlay_id].lbracketlist[GR_1024][currcount].x_coord, help_overlaylist[overlay_id].lbracketlist[GR_1024][currcount].y_coord)); help_overlaylist[overlay_id].lbracketcount++; } } else { // help.tbl is corrupt Assert(0); } // end if } // end while } // end for // close localization lcl_ext_close(); } // draw overlay on the screen void help_overlay_blit(int overlay_id) { int idx, width, height; int plinecount = help_overlaylist[overlay_id].plinecount; int textcount = help_overlaylist[overlay_id].textcount; int rbracketcount = help_overlaylist[overlay_id].rbracketcount; int lbracketcount = help_overlaylist[overlay_id].lbracketcount; Assert(overlay_id >= 0 && overlay_id < MAX_HELP_OVERLAYS); // this draws each line of help text with white on black text (use the GR_640 index for the string) for (idx = 0; idx < textcount; idx++) { gr_set_color_fast(&Color_black); gr_get_string_size(&width, &height, help_overlaylist[overlay_id].textlist[GR_640][idx].string, strlen(help_overlaylist[overlay_id].textlist[GR_640][idx].string)); gr_rect(help_overlaylist[overlay_id].textlist[gr_screen.res][idx].x_coord-2*HELP_PADDING, help_overlaylist[overlay_id].textlist[gr_screen.res][idx].y_coord-3*HELP_PADDING, width+4*HELP_PADDING, height+4*HELP_PADDING); gr_set_color_fast(&Color_bright_white); gr_printf(help_overlaylist[overlay_id].textlist[gr_screen.res][idx].x_coord, help_overlaylist[overlay_id].textlist[gr_screen.res][idx].y_coord, help_overlaylist[overlay_id].textlist[GR_640][idx].string); } // this draws each right bracket for (idx = 0; idx < rbracketcount; idx++) { gr_set_bitmap(help_right_bracket_bitmap); gr_bitmap(help_overlaylist[overlay_id].rbracketlist[gr_screen.res][idx].x_coord, help_overlaylist[overlay_id].rbracketlist[gr_screen.res][idx].y_coord); } // this draws each left bracket for (idx = 0; idx < lbracketcount; idx++) { gr_set_bitmap(help_left_bracket_bitmap); gr_bitmap(help_overlaylist[overlay_id].lbracketlist[gr_screen.res][idx].x_coord, help_overlaylist[overlay_id].lbracketlist[gr_screen.res][idx].y_coord); } // this draws each 2d line for the help screen //gr_set_color_fast(&Color_yellow); gr_set_color(255, 255, 0); for (idx = 0; idx<plinecount; idx++) { gr_pline_special(help_overlaylist[overlay_id].plinelist[gr_screen.res][idx].pvtx , help_overlaylist[overlay_id].plinelist[GR_640][idx].vtxcount, HELP_PLINE_THICKNESS); } } // -------------------------------------------------- // DEBUGGING STUFF // -------------------------------------------------- DCF(help_reload, "Reloads help overlay data from help.tbl") { if (Dc_command) { parse_helptbl(); } if (Dc_help) { dc_printf( "Usage: sample\nCrashes your machine.\n" ); } if (Dc_status) { dc_printf( "Yes, my master." ); } } int h_textnum=0, h_amt=0, h_vtx = 0; void nudgetext_x(int textnum, int amount) { help_overlaylist[current_helpid].textlist[gr_screen.res][textnum].x_coord += amount; } void nudgetext_y(int textnum, int amount) { help_overlaylist[current_helpid].textlist[gr_screen.res][textnum].y_coord += amount; } void nudgepline_x(int plinenum, int plinevert, int amount) { help_overlaylist[current_helpid].plinelist[gr_screen.res][plinenum].vtx[plinevert].xyz.x += amount; } void nudgepline_y(int plinenum, int plinevert, int amount) { help_overlaylist[current_helpid].plinelist[gr_screen.res][plinenum].vtx[plinevert].xyz.y += amount; } void nudgerbracket_x(int num, int amount) { help_overlaylist[current_helpid].rbracketlist[gr_screen.res][num].x_coord += amount; } void nudgerbracket_y(int num, int amount) { help_overlaylist[current_helpid].rbracketlist[gr_screen.res][num].y_coord += amount; } void nudgelbracket_x(int num, int amount) { help_overlaylist[current_helpid].lbracketlist[gr_screen.res][num].x_coord += amount; } void nudgelbracket_y(int num, int amount) { help_overlaylist[current_helpid].lbracketlist[gr_screen.res][num].y_coord += amount; } void showtextpos(int textnum) { dc_printf("text %d is now located at (%d, %d)", textnum, help_overlaylist[current_helpid].textlist[gr_screen.res][textnum].x_coord, help_overlaylist[current_helpid].textlist[gr_screen.res][textnum].y_coord ); } void showrbracketpos(int num) { dc_printf("rbracket %d is now located at (%d, %d)", num, help_overlaylist[current_helpid].rbracketlist[gr_screen.res][num].x_coord, help_overlaylist[current_helpid].rbracketlist[gr_screen.res][num].y_coord ); } void showlbracketpos(int num) { dc_printf("lbracket %d on overlay %d is now located at (%d, %d)", num, current_helpid, help_overlaylist[current_helpid].lbracketlist[gr_screen.res][num].x_coord, help_overlaylist[current_helpid].lbracketlist[gr_screen.res][num].y_coord ); } void showplinepos(int plinenum) { int i; dc_printf("pline %d on overlay %d vertices are now ", plinenum, current_helpid, help_overlaylist[current_helpid].textlist[gr_screen.res][plinenum].y_coord ); for (i=0; i<help_overlaylist[current_helpid].plinelist[GR_640][plinenum].vtxcount; i++) { dc_printf("(%3.0f %3.0f) ", help_overlaylist[current_helpid].plinelist[gr_screen.res][plinenum].vtx[i].xyz.x, help_overlaylist[current_helpid].plinelist[gr_screen.res][plinenum].vtx[i].xyz.y); } } DCF(help_nudgetext_x, "Use to visually position overlay text.") { if (Dc_command) { dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_textnum = Dc_arg_int; } dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_amt = Dc_arg_int; } nudgetext_x(h_textnum, h_amt); } if (Dc_help) { dc_printf( "Usage: sample\nCrashes your machine.\n" ); } if (Dc_status) { showtextpos(h_textnum); } } DCF(help_nudgetext_y, "Use to visually position overlay text.") { if (Dc_command) { dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_textnum = Dc_arg_int; } dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_amt = Dc_arg_int; } nudgetext_y(h_textnum, h_amt); } if (Dc_help) { dc_printf( "Usage: sample\nCrashes your machine.\n" ); } if (Dc_status) { showtextpos(h_textnum); } } DCF(help_nudgepline_x, "Use to visually position overlay polylines.") { if (Dc_command) { dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_textnum = Dc_arg_int; } dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_vtx = Dc_arg_int; } dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_amt = Dc_arg_int; } nudgepline_x(h_textnum, h_vtx, h_amt); } if (Dc_help) { dc_printf( "Usage: help_nudgepline [pline_number] [vertex_number] [distance]\n" ); } if (Dc_status) { showplinepos(h_textnum); } } DCF(help_nudgepline_y, "Use to visually position overlay polylines.") { if (Dc_command) { dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_textnum = Dc_arg_int; } dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_vtx = Dc_arg_int; } dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_amt = Dc_arg_int; } nudgepline_y(h_textnum, h_vtx, h_amt); } if (Dc_help) { dc_printf( "Usage: help_nudgepline [pline_number] [vertex_number] [distance]\n" ); } if (Dc_status) { showplinepos(h_textnum); } } DCF(help_nudgerbracket_x, "Use to visually position overlay right bracket.") { if (Dc_command) { dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_textnum = Dc_arg_int; } dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_amt = Dc_arg_int; } nudgerbracket_x(h_textnum, h_amt); } if (Dc_help) { dc_printf( "Usage: help_nudgerbracket_x [num] [amount]\n" ); } if (Dc_status) { showrbracketpos(h_textnum); } } DCF(help_nudgerbracket_y, "Use to visually position overlay right bracket.") { if (Dc_command) { dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_textnum = Dc_arg_int; } dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_amt = Dc_arg_int; } nudgerbracket_y(h_textnum, h_amt); } if (Dc_help) { dc_printf( "Usage: help_nudgerbracket_y [num] [amount]\n" ); } if (Dc_status) { showrbracketpos(h_textnum); } } DCF(help_nudgelbracket_x, "Use to visually position overlay left bracket.") { if (Dc_command) { dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_textnum = Dc_arg_int; } dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_amt = Dc_arg_int; } nudgelbracket_x(h_textnum, h_amt); } if (Dc_help) { dc_printf( "Usage: help_nudgelbracket_x [num] [amount]\n" ); } if (Dc_status) { showlbracketpos(h_textnum); } } DCF(help_nudgelbracket_y, "Use to visually position overlay left bracket.") { if (Dc_command) { dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_textnum = Dc_arg_int; } dc_get_arg(ARG_INT); if(Dc_arg_type & ARG_INT){ h_amt = Dc_arg_int; } nudgelbracket_y(h_textnum, h_amt); } if (Dc_help) { dc_printf( "Usage: help_nudgelbracket_y [num] [amount]\n" ); } if (Dc_status) { showlbracketpos(h_textnum); } }
[ [ [ 1, 945 ] ] ]
2a9bdec9552e846e5198246d3200bb878dd271ac
21737c1ff12ead3baf7bcf8bedbadb69b5f7ff1a
/streamInfo.h
18b6b23fd57148ebfac04096de9ef52a4ae443f9
[]
no_license
abdo5520/RTGen
941272322e4d92b5b014a3154e53dbe6b1d7e8cf
8d0bf859a5e601b4df775f0a21eadc07820f4414
refs/heads/master
2020-12-25T08:50:56.058621
2011-04-07T19:22:15
2011-04-07T19:22:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,362
h
/** \file StreamInfo... **/ #include "packet.h" #include <iostream> #include <list> #include <fstream> #include "logger.h" #include <sstream> using namespace std; #ifndef STREAMINFO_H #define STREAMINFO_H enum PacketAction {ONTIME, LATE, DROP, OOO}; class StreamInfo { private: struct timeval beginTime; list<Packet*> packetList ; pthread_mutex_t mutex ; u_long streamId ; u_long packetSize; u_long initSequenceNumber ; u_long nextSequenceNumber ; u_short processingTime ; u_short playingTime; u_long finalSequenceNumber ; u_short initBufferCount ; bool allDone ; Logger * logger ; u_long ontimeCount, lateCount, dropCount, oooCount ; void LogPacket ( Packet *, enum PacketAction ) ; void LogStreamStart ( string IP ) ; void LogStreamStop () ; void LogStreamStats ( ) ; public: void PrintInfo( ) ; StreamInfo ( Packet * packet, Logger * , char isNRT, string IP) ; ~StreamInfo( ) ; string sender; u_long GetStreamId ( ) ; void QueuePacket ( Packet * packet ) ; pthread_t thread ; pthread_cond_t packetReceive; char RT; void NRTProcess(); void Process () ; void CleanUp() ; bool Finished() ; void process_pkt(u_long); u_long process_nPacket(u_long); void packet_signal(); void GetStatus(); unsigned char info[16]; }; #endif
[ [ [ 1, 64 ] ] ]
f946113b9bdcf006d42d1a7af128a2e00b12136f
bf19f77fdef85e76a7ebdedfa04a207ba7afcada
/MainMenuState.h
9784d01fcde8b2715f19f0edd3045933bfbe1f00
[]
no_license
marvelman610/tmntactis
2aa3176d913a72ed985709843634933b80d7cb4a
a4e290960510e5f23ff7dbc1e805e130ee9bb57d
refs/heads/master
2020-12-24T13:36:54.332385
2010-07-12T08:08:12
2010-07-12T08:08:12
39,046,976
0
0
null
null
null
null
UTF-8
C++
false
false
2,368
h
////////////////////////////////////////////////////////////////////////// // Filename : MainMenuState.h // // Author : Ramon Johannessen (RJ) // // Purpose : The Main Menu will be the first menu loaded when the game // starts. It will display all menu selections available. ////////////////////////////////////////////////////////////////////////// #ifndef CMAINMENU_H #define CMAINMENU_H #include "BaseMenuState.h" enum {PLAY, HOWTOPLAY, LOAD, OPTIONS, CREDITS, EXIT, NULL_END }; class CMainMenuState : CBaseMenuState { private: CMainMenuState(); ~CMainMenuState(); CMainMenuState(const CMainMenuState&); CMainMenuState& operator= (const CMainMenuState&); public: ////////////////////////////////////////////////////////////////////////// // Function : GetInstance // // Purpose : Return the only instance of this object ////////////////////////////////////////////////////////////////////////// CMainMenuState* GetInstance(); ////////////////////////////////////////////////////////////////////////// // Function : Update // // Purpose : Update the main menu ////////////////////////////////////////////////////////////////////////// void Update(float fElapsedTime); ////////////////////////////////////////////////////////////////////////// // Function : Render // // Purpose : Render the main menu ////////////////////////////////////////////////////////////////////////// void Render(); ////////////////////////////////////////////////////////////////////////// // Function : Input // // Purpose : Handle any user input for this menu state, mouse or keyboard // // Return : true/false, false if we are exiting the game ////////////////////////////////////////////////////////////////////////// bool Input(); ////////////////////////////////////////////////////////////////////////// // Function : Enter // // Purpose : Load the bg image, set up the sound, and all singletons used ////////////////////////////////////////////////////////////////////////// void Enter(); ////////////////////////////////////////////////////////////////////////// // Function : Exit // // Purpose : Clean up any dynamic memory, release textures, etc... ////////////////////////////////////////////////////////////////////////// void Exit(); }; #endif
[ "AllThingsCandid@7dc79cba-3e6d-11de-b8bc-ddcf2599578a" ]
[ [ [ 1, 67 ] ] ]
29da18eebaec8d78a0dee93bfd8479b27634051a
9a48be80edc7692df4918c0222a1640545384dbb
/Libraries/Boost1.40/libs/asio/example/echo/async_tcp_echo_server.cpp
c6d25dd9a08f0bd76cde0406f688723c8931023f
[ "BSL-1.0" ]
permissive
fcrick/RepSnapper
05e4fb1157f634acad575fffa2029f7f655b7940
a5809843f37b7162f19765e852b968648b33b694
refs/heads/master
2021-01-17T21:42:29.537504
2010-06-07T05:38:05
2010-06-07T05:38:05
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,069
cpp
// // async_tcp_echo_server.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <cstdlib> #include <iostream> #include <boost/bind.hpp> #include <boost/asio.hpp> using boost::asio::ip::tcp; class session { public: session(boost::asio::io_service& io_service) : socket_(io_service) { } tcp::socket& socket() { return socket_; } void start() { socket_.async_read_some(boost::asio::buffer(data_, max_length), boost::bind(&session::handle_read, this, boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred)); } void handle_read(const boost::system::error_code& error, size_t bytes_transferred) { if (!error) { boost::asio::async_write(socket_, boost::asio::buffer(data_, bytes_transferred), boost::bind(&session::handle_write, this, boost::asio::placeholders::error)); } else { delete this; } } void handle_write(const boost::system::error_code& error) { if (!error) { socket_.async_read_some(boost::asio::buffer(data_, max_length), boost::bind(&session::handle_read, this, boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred)); } else { delete this; } } private: tcp::socket socket_; enum { max_length = 1024 }; char data_[max_length]; }; class server { public: server(boost::asio::io_service& io_service, short port) : io_service_(io_service), acceptor_(io_service, tcp::endpoint(tcp::v4(), port)) { session* new_session = new session(io_service_); acceptor_.async_accept(new_session->socket(), boost::bind(&server::handle_accept, this, new_session, boost::asio::placeholders::error)); } void handle_accept(session* new_session, const boost::system::error_code& error) { if (!error) { new_session->start(); new_session = new session(io_service_); acceptor_.async_accept(new_session->socket(), boost::bind(&server::handle_accept, this, new_session, boost::asio::placeholders::error)); } else { delete new_session; } } private: boost::asio::io_service& io_service_; tcp::acceptor acceptor_; }; int main(int argc, char* argv[]) { try { if (argc != 2) { std::cerr << "Usage: async_tcp_echo_server <port>\n"; return 1; } boost::asio::io_service io_service; using namespace std; // For atoi. server s(io_service, atoi(argv[1])); io_service.run(); } catch (std::exception& e) { std::cerr << "Exception: " << e.what() << "\n"; } return 0; }
[ "metrix@Blended.(none)" ]
[ [ [ 1, 134 ] ] ]
0ede12c2e8943aaba7799f4f543549ded8277792
bd89d3607e32d7ebb8898f5e2d3445d524010850
/adaptationlayer/tsy/nokiatsy_dll/src/cmmbroadmesshandler.cpp
0771f02b3b01044776d811d6c4b090c428430c91
[]
no_license
wannaphong/symbian-incubation-projects.fcl-modemadaptation
9b9c61ba714ca8a786db01afda8f5a066420c0db
0e6894da14b3b096cffe0182cedecc9b6dac7b8d
refs/heads/master
2021-05-30T05:09:10.980036
2010-10-19T10:16:20
2010-10-19T10:16:20
null
0
0
null
null
null
null
UTF-8
C++
false
false
21,119
cpp
/* * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of the License "Eclipse Public License v1.0" * which accompanies this distribution, and is available * at the URL "http://www.eclipse.org/legal/epl-v10.html". * * Initial Contributors: * Nokia Corporation - initial contribution. * * Contributors: * * Description: * */ // INCLUDE FILES #include <ctsy/pluginapi/cmmdatapackage.h> #include <ctsy/serviceapi/mmtsy_ipcdefs.h> #include <tisi.h> #include <smsisi.h> #include "cmmbroadmesshandler.h" #include "cmmmessagerouter.h" #include "tsylogger.h" #include "cmmphonetsender.h" #include "cmmstaticutility.h" #include "OstTraceDefinitions.h" #ifdef OST_TRACE_COMPILER_IN_USE #include "cmmbroadmesshandlerTraces.h" #endif // EXTERNAL DATA STRUCTURES //none // EXTERNAL FUNCTION PROTOTYPES //none // CONSTANTS const TUint8 KBroadPadding( 0x00 ); // MACROS //none // LOCAL CONSTANTS AND MACROS //none // MODULE DATA STRUCTURES //none // LOCAL FUNCTION PROTOTYPES //none // FORWARD DECLARATIONS //none // ============================= LOCAL FUNCTIONS =============================== //none // ============================ MEMBER FUNCTIONS =============================== // ----------------------------------------------------------------------------- // CMmBroadMessHandler::CMmBroadMessHandler // C++ constructor // ----------------------------------------------------------------------------- // CMmBroadMessHandler::CMmBroadMessHandler() { TFLOGSTRING("TSY: CMmBroadMessHandler::CMmBroadMessHandler"); OstTrace0( TRACE_NORMAL, CMMBROADMESSHANDLER_CMMBROADMESSHANDLER_TD, "CMmBroadMessHandler::CMmBroadMessHandler" ); } // ----------------------------------------------------------------------------- // CMmSmsMessHandler::ConstructL // Symbian 2nd phase constructor can leave. // ----------------------------------------------------------------------------- // void CMmBroadMessHandler::ConstructL() { TFLOGSTRING("TSY: CMmBroadMessHandler::ConstructL"); OstTrace0( TRACE_NORMAL, CMMBROADMESSHANDLER_CONSTRUCTL_TD, "CMmBroadMessHandler::ConstructL" ); // Initialise the array. Maximun of pages in a WCDMA CBS message is 15 iCbsMsg = new( ELeave ) CArrayPtrFlat< TWcdmaCbsMsg >( 10 ); // Cb subscription number. iCbSubscriptionNumber = SMS_NEW_SUBSCRIPTION; } // ----------------------------------------------------------------------------- // CMmBroadMessHandler:: NewL // Two-phased constructor. // Creates a new MessageHandler object instance // ----------------------------------------------------------------------------- // CMmBroadMessHandler* CMmBroadMessHandler::NewL ( CMmPhoNetSender* aPhoNetSender, // a pointer to the PhonetSender CMmPhoNetReceiver* aPhoNetReceiver, // a pointer to the phonetReceiver CMmMessageRouter* aMessageRouter // a pointer to the Message router ) { TFLOGSTRING("TSY: CMmBroadMessHandler::NewL"); OstTrace0( TRACE_NORMAL, CMMBROADMESSHANDLER_NEWL_TD, "CMmBroadMessHandler::NewL" ); CMmBroadMessHandler* mmBroadMessHandler = new( ELeave ) CMmBroadMessHandler(); CleanupStack::PushL( mmBroadMessHandler ); mmBroadMessHandler->iPhoNetSender = aPhoNetSender; mmBroadMessHandler->iMessageRouter = aMessageRouter; aPhoNetReceiver->RegisterL( mmBroadMessHandler, PN_SMS, SMS_CB_ROUTING_RESP ); aPhoNetReceiver->RegisterL( mmBroadMessHandler, PN_SMS, SMS_CB_ROUTING_IND ); mmBroadMessHandler->ConstructL(); CleanupStack::Pop( mmBroadMessHandler ); return mmBroadMessHandler; } // ----------------------------------------------------------------------------- // CMmBroadMessHandler:: ~CMmBroadMessHandler // C++ destructor destroys all objects which are used // ----------------------------------------------------------------------------- // CMmBroadMessHandler::~CMmBroadMessHandler() { TFLOGSTRING("TSY: CMmBroadMessHandler::~CMmBroadMessHandler"); OstTrace0( TRACE_NORMAL, DUP1_CMMBROADMESSHANDLER_CMMBROADMESSHANDLER_TD, "CMmBroadMessHandler::~CMmBroadMessHandler" ); if ( iCbsMsg ) { iCbsMsg->ResetAndDestroy(); delete iCbsMsg; } } // ----------------------------------------------------------------------------- // CMmBroadMessHandler:: ReceiveMessageL // Called by PhonetReceiver when an ISI message has been received // ----------------------------------------------------------------------------- // void CMmBroadMessHandler::ReceiveMessageL( const TIsiReceiveC& aIsiMessage ) { TUint8 resource( aIsiMessage.Get8bit( ISI_HEADER_OFFSET_RESOURCEID ) ); TUint8 messageId( aIsiMessage.Get8bit( ISI_HEADER_OFFSET_MESSAGEID ) ); TFLOGSTRING3("TSY: CMmBroadMessHandler::ReceiveMessageL. Resource:%d, MsgId:%d", resource,messageId); OstTraceExt2( TRACE_NORMAL, CMMBROADMESSHANDLER_RECEIVEMESSAGEL_TD, "CMmBroadMessHandler::ReceiveMessageL;resource=%hhd;messageId=%hhx", resource, messageId ); switch ( resource ) { case PN_SMS: { TFLOGSTRING("TSY: CMmBroadMessHandler::ReceiveMessageL - PN_SMS"); OstTrace0( TRACE_NORMAL, DUP1_CMMBROADMESSHANDLER_RECEIVEMESSAGEL_TD, "CMmBroadMessHandler::ReceiveMessageL - PN_SMS" ); switch( messageId ) { case SMS_CB_ROUTING_RESP: { SmsCbRoutingResp( aIsiMessage ); break; } case SMS_CB_ROUTING_IND: { SmsCbRoutingIndL( aIsiMessage ); break; } default: { TFLOGSTRING("TSY: CMmBroadMessHandler::ReceiveMessageL - PN_SMS - default"); OstTrace0( TRACE_NORMAL, DUP3_CMMBROADMESSHANDLER_RECEIVEMESSAGEL_TD, "CMmBroadMessHandler::ReceiveMessageL - PN_SMS - default" ); // No appropriate handler methods for ISI-message found. break; } } break; } default: { TFLOGSTRING("TSY: CMmBroadMessHandler::ReceiveMessageL. Switch resource case default"); OstTrace0( TRACE_NORMAL, DUP2_CMMBROADMESSHANDLER_RECEIVEMESSAGEL_TD, "CMmBroadMessHandler::ReceiveMessageL. Switch resource case default" ); // No appropriate handler methods for ISI-message found. break; } } return; } // ----------------------------------------------------------------------------- // CMmBroadMessHandler:: SmsCbRoutingRequest // Send CB message routing request to the SMS server // ----------------------------------------------------------------------------- // TInt CMmBroadMessHandler::SmsCbRoutingRequest ( TUint8 aTransId, // Transaction ID const CMmDataPackage* aDataPackage // Data Package ) { TFLOGSTRING("TSY: CMmBroadMessHandler::SmsCbRoutingRequest"); OstTrace0( TRACE_NORMAL, CMMBROADMESSHANDLER_SMSCBROUTINGREQUEST_TD, "CMmBroadMessHandler::SmsCbRoutingRequest" ); // Variable for the routing command initialized TUint8 routingCommand( 0 ); // Contents of the data package TCbsCbmiAndLangAndFilter data; // Unpack data aDataPackage->UnPackData( data ); if ( RMobileBroadcastMessaging::EBroadcastAcceptNone == data.iSetting ) { // Release routing TFLOGSTRING("TSY:CMmBroadMessHandler::SmsCbRoutingRequest:CB routing will be released."); OstTrace0( TRACE_NORMAL, DUP1_CMMBROADMESSHANDLER_SMSCBROUTINGREQUEST_TD, "CMmBroadMessHandler::SmsCbRoutingRequest:CB routing will be released." ); routingCommand = SMS_ROUTING_RELEASE; } else if ( RMobileBroadcastMessaging::EBroadcastAcceptAll == data.iSetting ) { // Activate routing TFLOGSTRING("TSY:CMmBroadMessHandler::SmsCbRoutingRequest:CB routing will be activated."); OstTrace0( TRACE_NORMAL, DUP2_CMMBROADMESSHANDLER_SMSCBROUTINGREQUEST_TD, "CMmBroadMessHandler::SmsCbRoutingRequest:CB routing will be activated." ); routingCommand = SMS_ROUTING_SET; } else { TFLOGSTRING2("TSY:CMmBroadMessHandler::SmsCbRoutingRequest:Unsupported filter 0x%x.",data.iSetting); // Following lines flagged out just get rid of compiler warning when trace // compiler is not in use. #ifdef OST_TRACE_COMPILER_IN_USE TUint tempValue = data.iSetting; // Parameter just for tracing OstTraceExt1( TRACE_NORMAL, DUP3_CMMBROADMESSHANDLER_SMSCBROUTINGREQUEST_TD, "CMmBroadMessHandler::SmsCbRoutingRequest;data.iSetting=%hhx", tempValue ); #endif // OST_TRACE_COMPILER_IN_USE return KErrArgument; } // Create a buffer to hold the request TBuf8<SIZE_SMS_CB_ROUTING_REQ> dataBuffer; dataBuffer.Append( routingCommand ); // Routing command if ( SMS_ROUTING_RELEASE == routingCommand ) { // Subscription number dataBuffer.Append( iCbSubscriptionNumber ); } else if ( SMS_ROUTING_SET == routingCommand ) { // Subscription number dataBuffer.Append( SMS_NEW_SUBSCRIPTION ); } dataBuffer.Append( SMS_TYPE_DEFAULT ); // Subscription type dataBuffer.Append( KBroadPadding ); // Filler dataBuffer.Append( KBroadPadding ); // Filler dataBuffer.Append( 0 ); // Number of subblocks return iPhoNetSender->Send( PN_SMS, aTransId, SMS_CB_ROUTING_REQ, dataBuffer ); } // ----------------------------------------------------------------------------- // CMmBroadMessHandler:: SmsCbRoutingResp // Response for SmsCbRoutingReq. // Response doesn't include CB message // ----------------------------------------------------------------------------- // void CMmBroadMessHandler::SmsCbRoutingResp ( const TIsiReceiveC& aSmsCbRoutingResp // Received isimsg ) { TInt ipc( 0 ); // Initialize to zero TUint8 traid( aSmsCbRoutingResp.Get8bit( ISI_HEADER_SIZE + SMS_CB_ROUTING_RESP_OFFSET_TRANSID ) ); if( EBroadcastMessagingReceiveMessage == traid || EBroadcastMessagingReceiveMessageCancel == traid || EBroadcastMessagingSetFilterSetting == traid ) { TFLOGSTRING("TSY: CMmBroadMessHandler::SmsCbRoutingResp"); OstTrace0( TRACE_NORMAL, CMMBROADMESSHANDLER_SMSGSMCBROUTINGRESP_TD, "CMmBroadMessHandler::SmsCbRoutingResp" ); iCbSubscriptionNumber = aSmsCbRoutingResp.Get8bit( ISI_HEADER_SIZE + SMS_CB_ROUTING_RESP_OFFSET_SUBSCRIPTIONNUMBER ); TUint8 isiCause( aSmsCbRoutingResp.Get8bit( ISI_HEADER_SIZE + SMS_CB_ROUTING_RESP_OFFSET_SMSCAUSE ) ); TInt cause( CMmStaticUtility::CSCauseToEpocError( PN_SMS, SMS_CAUSE_TYPE_COMMON, isiCause ) ); // Response for SmsGsmCbRoutingReq (receive message) if ( EBroadcastMessagingReceiveMessage == traid ) { ipc = EMobileBroadcastMessagingReceiveMessage; } // Response for SmsGsmCbRoutingReq (receive message cancel) else if ( EBroadcastMessagingReceiveMessageCancel == traid ) { ipc = EMobileBroadcastMessagingReceiveMessageCancel; } // Response for SmsGsmCbRoutingReq (set filter setting) else if ( EBroadcastMessagingSetFilterSetting == traid ) { ipc = EMobileBroadcastMessagingSetFilterSetting; } // Complete status change indication, if ipc is set if ( 0 != ipc ) { iMessageRouter->Complete( ipc, cause ); } } } // ----------------------------------------------------------------------------- // CMmBroadMessHandler:: SmsCbRoutingInd // Incoming CB message. When the SMS Server receives a CB message // from the network and routing of this CB message has been // accepted, the server shall send message to the client // ----------------------------------------------------------------------------- // void CMmBroadMessHandler::SmsCbRoutingIndL ( const TIsiReceiveC& aSmsCbRoutingInd // Received ISI message ) { TFLOGSTRING("TSY: CMmBroadMessHandler::SmsCbRoutingInd"); OstTrace0( TRACE_NORMAL, CMMBROADMESSHANDLER_SMSGSMCBROUTINGNTFL_TD, "CMmBroadMessHandler::SmsCbRoutingIndL" ); CMmDataPackage data; TInt error ( KErrNone ); // Get the number of subblocks TUint sbNumber( aSmsCbRoutingInd.Get8bit( ISI_HEADER_SIZE + SMS_CB_ROUTING_IND_OFFSET_SUBBLOCKCOUNT ) ); // Check the info length of the 1st SMS_SB_CB_MESSAGE subblock to // know if it is a WCDMA CBS message or a GSM one TUint firstSbOffset( 0 ); TInt sbFound( aSmsCbRoutingInd.FindSubBlockOffsetById( ISI_HEADER_SIZE + SIZE_SMS_CB_ROUTING_IND, SMS_SB_CB_MESSAGE, EIsiSubBlockTypeId16Len16, firstSbOffset ) ); TUint8 infoLength( SMS_CB_MESSAGE_CONTENT_SIZE + 1 ); // Illegal value if ( KErrNone == sbFound ) { infoLength = aSmsCbRoutingInd.Get8bit( firstSbOffset + SMS_SB_CB_MESSAGE_OFFSET_INFOLENGTH ); } TFLOGSTRING2("TSY: CMmBroadMessHandler::SmsCbRoutingIndL. infoLength:%d",infoLength); OstTraceExt1( TRACE_NORMAL, DUP1_CMMBROADMESSHANDLER_SMSGSMCBROUTINGNTFL_TD, "CMmBroadMessHandler::SmsCbRoutingIndL;infoLength=%hhu", infoLength ); // Reset and destroy the array iCbsMsg->ResetAndDestroy(); // GSM mode, don't care of info length if ( KInfoLengthIgnored == infoLength ) { // GSM CB Message. First SMS_SB_CB_MESSAGE sub block is the only one. TGsmCbsMsg cbsMsg; // Get serial number TUint16 serialNumber( aSmsCbRoutingInd.Get16bit( firstSbOffset + SMS_SB_CB_MESSAGE_OFFSET_SERIALNUMBER ) ); // Append MSB bits from serial number cbsMsg.iCbsMsg.Append( serialNumber >> 8 ); // Append LSB bits from serial number cbsMsg.iCbsMsg.Append( serialNumber & 0x00FF ); // Get message ID TUint16 messageId( aSmsCbRoutingInd.Get16bit( firstSbOffset + SMS_SB_CB_MESSAGE_OFFSET_CBMESSAGEID ) ); // Append MSB bits from message ID cbsMsg.iCbsMsg.Append( messageId >> 8 ); // Append LSB bits from message ID cbsMsg.iCbsMsg.Append( messageId & 0x00FF ); // Data coding scheme cbsMsg.iCbsMsg.Append( aSmsCbRoutingInd.Get8bit( firstSbOffset + SMS_SB_CB_MESSAGE_OFFSET_DATACODINGSCHEME ) ); // Number of pages cbsMsg.iCbsMsg.Append( aSmsCbRoutingInd.Get8bit( firstSbOffset + SMS_SB_CB_MESSAGE_OFFSET_PAGE ) ); // Content of the message cbsMsg.iCbsMsg.Append( aSmsCbRoutingInd.GetData( firstSbOffset + SMS_SB_CB_MESSAGE_OFFSET_CONTENTOFMESSAGE, SMS_CB_MESSAGE_CONTENT_SIZE ) ); // Pack data data.PackData( &cbsMsg ); // Complete iMessageRouter->Complete( EMmTsyGsmBroadcastNotifyMessageReceived, &data, error ); } // WCDMA mode,take care of info length and number of subblocks should be // less or equal to 15 else if ( ( SMS_CB_MESSAGE_CONTENT_SIZE >= infoLength ) && ( KWcdmaCbsNumberOfSbMax >= sbNumber ) ) { TUint currSbOffset( ISI_HEADER_SIZE + SIZE_SMS_CB_ROUTING_IND ); // Search all SMS_SB_CB_MESSAGE subblocks while ( KErrNone == aSmsCbRoutingInd.FindSubBlockOffsetById( currSbOffset, SMS_SB_CB_MESSAGE, EIsiSubBlockTypeId16Len16, currSbOffset ) ) { TWcdmaCbsMsg* wcdmaCbsMsg = new ( ELeave ) TWcdmaCbsMsg; CleanupStack::PushL( wcdmaCbsMsg ); // Total number of subblocks in SMS_CB_ROUTING_IND wcdmaCbsMsg->iSbNumber = sbNumber; // Serial number wcdmaCbsMsg->iSerialNum = aSmsCbRoutingInd.Get16bit( currSbOffset + SMS_SB_CB_MESSAGE_OFFSET_SERIALNUMBER ); // Message ID wcdmaCbsMsg->iMessageId = aSmsCbRoutingInd.Get16bit( currSbOffset + SMS_SB_CB_MESSAGE_OFFSET_CBMESSAGEID ); // Data coding scheme wcdmaCbsMsg->iDCS = aSmsCbRoutingInd.Get8bit( currSbOffset + SMS_SB_CB_MESSAGE_OFFSET_DATACODINGSCHEME ); // Number of pages wcdmaCbsMsg->iNumberOfPages = static_cast<TInt>( aSmsCbRoutingInd.Get8bit( currSbOffset + SMS_SB_CB_MESSAGE_OFFSET_PAGE ) ); // Information length wcdmaCbsMsg->iInfoLength = aSmsCbRoutingInd.Get8bit( currSbOffset + SMS_SB_CB_MESSAGE_OFFSET_INFOLENGTH ); // Message type is here CBS Message // (see spec 3GPP 25.324 v6.1 chapter 11.1.2) wcdmaCbsMsg->iMessageType = KCbsMessageType; // Content of the message TBuf8<RMobileBroadcastMessaging::KBroadcastPageSize> wcdmaCbsDataTemp = aSmsCbRoutingInd.GetData( currSbOffset + SMS_SB_CB_MESSAGE_OFFSET_CONTENTOFMESSAGE, SMS_CB_MESSAGE_CONTENT_SIZE ); // Append data portion from beginning to info length wcdmaCbsMsg->iWcdmaCbsData.Append( wcdmaCbsDataTemp.Mid ( 0, wcdmaCbsMsg->iInfoLength ) ); iCbsMsg->AppendL( wcdmaCbsMsg ); currSbOffset += SIZE_SMS_SB_CB_MESSAGE; // Pop wcdmaCbsMsg but don't destroy it CleanupStack::Pop( wcdmaCbsMsg ); //note: Lint doesn't understand the use of PopAndDestroy and 'thinks' //that there is a memory leak for wcdmaCbsMsg, we disable that warning with //the following command //lint -e429 } // Pack data data.PackData( &iCbsMsg, &sbNumber ); // Complete iMessageRouter->Complete( EMmTsyWcdmaBroadcastNotifyMessageReceived, &data, error ); } else // Illegal value ( e.g network is not working correctly ) { TFLOGSTRING("TSY: CMmBroadMessHandler::SmsGsmCbRoutingNtfL illegal value (e.g network problem )"); OstTrace0( TRACE_NORMAL, DUP2_CMMBROADMESSHANDLER_SMSGSMCBROUTINGNTFL_TD, "CMmBroadMessHandler::SmsGsmCbRoutingNtfL-illegal value (e.g network problem" ); error = KErrGeneral; // Complete. We could complete with either ipc // EMmTsyWcdmaBroadcastNotifyMessageReceived or // EMmTsyGsmBroadcastNotifyMessageReceived but as it doesn't matter, // we arbitrarily decide to complete with a GSM CBS ipc iMessageRouter->Complete( EMmTsyGsmBroadcastNotifyMessageReceived, &data, error ); } return; } // ----------------------------------------------------------------------------- // CMmBroadMessHandler::ExtFuncL // Dispatches Etel requests to DOS level handlers // ----------------------------------------------------------------------------- // TInt CMmBroadMessHandler::ExtFuncL ( TInt aIpc, // IPC number const CMmDataPackage* aDataPackage // packed data ) { TFLOGSTRING("TSY: CMmBroadMessHandler::ExtFuncL"); OstTrace0( TRACE_NORMAL, CMMBROADMESSHANDLER_EXTFUNCL_TD, "CMmBroadMessHandler::ExtFuncL" ); TInt ret( KErrNone ); TUint8 transId( 0 ); // Initialize to zero switch ( aIpc ) { case EMobileBroadcastMessagingReceiveMessage: { transId = EBroadcastMessagingReceiveMessage; break; } case EMobileBroadcastMessagingReceiveMessageCancel: { transId = EBroadcastMessagingReceiveMessageCancel; break; } case EMobileBroadcastMessagingSetFilterSetting: { transId = EBroadcastMessagingSetFilterSetting; break; } default: { // This method should only be called for Broadcast cases TFLOGSTRING2("TSY: CMmBroadMessHandler::ExtFuncL - Unknown IPC: %d", aIpc); OstTrace1( TRACE_NORMAL, DUP1_CMMBROADMESSHANDLER_EXTFUNCL_TD, "CMmBroadMessHandler::ExtFuncL;aIpc=%d", aIpc ); ret = KErrArgument; break; } } if ( EBroadcastMessagingUnknown != transId ) { ret = SmsCbRoutingRequest( transId, aDataPackage ); } return ret; } // End of the file
[ "dalarub@localhost", "mikaruus@localhost", "[email protected]" ]
[ [ [ 1, 1 ], [ 3, 13 ], [ 15, 30 ], [ 32, 32 ], [ 34, 72 ], [ 74, 83 ], [ 85, 86 ], [ 90, 105 ], [ 107, 136 ], [ 138, 155 ], [ 157, 162 ], [ 164, 179 ], [ 181, 189 ], [ 191, 210 ], [ 212, 223 ], [ 225, 230 ], [ 232, 240 ], [ 242, 248 ], [ 261, 289 ], [ 293, 293 ], [ 296, 296 ], [ 299, 299 ], [ 330, 344 ], [ 346, 370 ], [ 372, 425 ], [ 433, 497 ], [ 499, 524 ], [ 526, 550 ], [ 552, 565 ] ], [ [ 2, 2 ], [ 14, 14 ], [ 73, 73 ], [ 84, 84 ], [ 106, 106 ], [ 137, 137 ], [ 156, 156 ], [ 163, 163 ], [ 180, 180 ], [ 190, 190 ], [ 211, 211 ], [ 224, 224 ], [ 231, 231 ], [ 241, 241 ], [ 290, 292 ], [ 294, 295 ], [ 297, 298 ], [ 300, 329 ], [ 345, 345 ], [ 371, 371 ], [ 426, 432 ], [ 498, 498 ], [ 525, 525 ], [ 551, 551 ] ], [ [ 31, 31 ], [ 33, 33 ], [ 87, 89 ], [ 249, 260 ] ] ]
31d0e14ad58e154b38eb1814d9a30b9d8b0d95f1
d609fb08e21c8583e5ad1453df04a70573fdd531
/trunk/MMXCheck/MMXCheckDlg.h
a3b91b3cd7cec865e361930d581cddc53548cad9
[]
no_license
svn2github/openxp
d68b991301eaddb7582b8a5efd30bc40e87f2ac3
56db08136bcf6be6c4f199f4ac2a0850cd9c7327
refs/heads/master
2021-01-19T10:29:42.455818
2011-09-17T10:27:15
2011-09-17T10:27:15
21,675,919
0
1
null
null
null
null
GB18030
C++
false
false
1,189
h
#pragma once #include "afxcmn.h" #include "afxwin.h" #include <map> using namespace std; typedef struct tagXML { TCHAR szName[260]; TCHAR szFunc[1024]; TCHAR szIntro[1024]; }Xml,*pXml; class CMMXCheckDlg : public CDialog { public: CMMXCheckDlg(CWnd* pParent = NULL); ~CMMXCheckDlg(); enum { IDD = IDD_MMXCHECK_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX); protected: virtual BOOL OnInitDialog(); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); afx_msg void OnBnClickedButton1(); HRESULT OnHitListCtrl(WPARAM wParam,LPARAM lParam); virtual BOOL PreTranslateMessage(MSG* pMsg); DECLARE_MESSAGE_MAP() protected: void InitDlgItem();//初始化Dlg控件 void ReadOSInfo();//读取OS信息 void LoadMMX();//导入mmx指令说明 public: HICON m_hIcon; HListCtrl m_lcInfo; HEdit m_ecIn; CEdit m_ecFunc; HButton m_btCheck; CEdit m_ecIntro; HXMLConfig m_xmlLoad; map<int,pXml> m_mapXML; CImage m_ImgBK; HAnimationGif m_gifLogo; CString m_strAppName; CString m_strAppName1; };
[ "[email protected]@f92b348d-55a1-4afa-8193-148a6675784b" ]
[ [ [ 1, 52 ] ] ]
84d26bf521ddc8e358e1d198796f450fdf8b3eb9
36fea6c98ecabcd5e932f2b7854b3282cdb571ee
/mainwindow.h
751a8e5a3c2fdd6bab51232d664f8d464d08a2f4
[]
no_license
doomfrawen/visualcommand
976adaae69303d8b4ffc228106a1db9504e4a4e4
f7bc1d590444ff6811f84232f5c6480449228e19
refs/heads/master
2016-09-06T17:40:57.775379
2009-07-28T22:48:23
2009-07-28T22:48:23
32,345,504
0
0
null
null
null
null
UTF-8
C++
false
false
1,410
h
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QtGui/QMainWindow> #include "dialogsearch.h" #include <QPluginLoader> #include <QListWidgetItem> #include "globals.h" #include "qttreepropertybrowser.h" #include "arguments/argumentinterface.h" namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = 0); ~MainWindow(); private: Ui::MainWindow *ui; QtTreePropertyBrowser browser; void LoadPlugins(); QMap<QString, ArgumentInterface*> Arguments; QString Title; QString AppName; QString AppWebsite; QString Description; QList<QString> Tags; bool Windows; bool Mac; bool Linux; QString boolToString(bool in); void AddTab(QString name); void LoadNoPlugin(); void read_settings(); void write_settings(); QString regularMode; QString adminMode; private slots: void LaunchSearch(); void LaunchUpload(); void ChangeText(); //Edit Stufff void EditAddTab(); void EditRemoveTab(int Index); void SwitchMode(bool runMode); void EditAddWidget(QListWidgetItem*); void ChangePropertyBrowser(ArgumentInterface* Control); void FileSave(); void FileOpen(); void RunCommand(); void LaunchAbout(); void EditSettings(); }; #endif // MAINWINDOW_H
[ "flouger@13a168e0-7ae3-11de-a146-1f7e517e55b8" ]
[ [ [ 1, 64 ] ] ]
4b0d7975f07382419dfbeba223a8392bd27a1e24
7d4527b094cfe62d9cd99efeed2aff7a8e8eae88
/TalkTom/TalkTom/stdafx.cpp
b99fa7578a2bf83b1a71b1b819ab80eba492e4ff
[]
no_license
Evans22/talktotom
a828894df42f520730e6c47830946c8341b230dc
4e72ba6021fdb3a918af1df30bfe8642f03b1f07
refs/heads/master
2021-01-10T17:11:10.132971
2011-02-15T12:53:00
2011-02-15T12:53:00
52,947,431
1
0
null
null
null
null
UTF-8
C++
false
false
294
cpp
// stdafx.cpp : source file that includes just the standard includes // TalkTom.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
[ "aicrosoft1104@61e0f6aa-79d2-64b1-0467-50e2521aa597" ]
[ [ [ 1, 8 ] ] ]
516124d577537a2ba7fc440f6631efdb5a587838
91b964984762870246a2a71cb32187eb9e85d74e
/SRC/OFFI SRC!/boost_1_34_1/boost_1_34_1/libs/serialization/test/test_derived_class.cpp
33720ef0dfea2eb02d508926f2340f5b0cf50731
[ "BSL-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
willrebuild/flyffsf
e5911fb412221e00a20a6867fd00c55afca593c7
d38cc11790480d617b38bb5fc50729d676aef80d
refs/heads/master
2021-01-19T20:27:35.200154
2011-02-10T12:34:43
2011-02-10T12:34:43
32,710,780
3
0
null
null
null
null
UTF-8
C++
false
false
1,288
cpp
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // test_derived_class.cpp // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // should pass compilation and execution #include <fstream> #include <cstdio> // remove #include <boost/config.hpp> #if defined(BOOST_NO_STDC_NAMESPACE) namespace std{ using ::remove; } #endif #include "test_tools.hpp" #include <boost/preprocessor/stringize.hpp> #include BOOST_PP_STRINGIZE(BOOST_ARCHIVE_TEST) #include "B.hpp" int test_main( int argc, char* argv[] ) { const char * testfile = boost::archive::tmpnam(NULL); BOOST_REQUIRE(NULL != testfile); B b, b1; { test_ostream os(testfile, TEST_STREAM_FLAGS); test_oarchive oa(os); oa << boost::serialization::make_nvp("b", b); } { test_istream is(testfile, TEST_STREAM_FLAGS); test_iarchive ia(is); ia >> boost::serialization::make_nvp("b1", b1); } BOOST_CHECK(b == b1); std::remove(testfile); return EXIT_SUCCESS; } // EOF
[ "[email protected]@e2c90bd7-ee55-cca0-76d2-bbf4e3699278" ]
[ [ [ 1, 50 ] ] ]
cf9930ba273c6b04d5592e1e4ec02cf692d59942
6397eabfb8610d3b56c49f7d61bfc6f8636e6e09
/classes/SMS20.h
fdf87da82bcc499f82d2ba10ed0c02cae989e214
[]
no_license
ForjaOMF/OMF-WindowsMFCSDK
947638d047f352ec958623a03d6ab470eae9cedd
cb6e6d1b6b90f91cb3668bc2bc831119b38b0011
refs/heads/master
2020-04-06T06:40:54.080051
2009-10-27T12:22:40
2009-10-27T12:22:40
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,592
h
// SMS20.h : header file // #ifndef _SMS20_ #define _SMS20_ #include <msxml2.h> class CInternetSession; class CHttpFile; ///////////////////////////////////////////////////////////////////////////// // Class CSMS20Contact class CSMS20Contact : public CObject { CString m_csUserID; CString m_csAlias; bool m_bPresent; public: CSMS20Contact(); CSMS20Contact(CString csUserID, CString csAlias, bool bPresent=false); // Constructor ~CSMS20Contact(); void SetUserID(CString csUserID){m_csUserID=csUserID;}; void SetAlias(CString csAlias){m_csAlias=csAlias;}; void MakePresent(bool bPresent){m_bPresent=bPresent;}; CString GetUserID(){return m_csUserID;}; CString GetAlias(){return m_csAlias;}; bool IsPresent(){return m_bPresent;}; }; ///////////////////////////////////////////////////////////////////////////// // Class CSMS20Helper class CSMS20Helper : public CObject { CString SearchValue(CString csData, CString csTag, UINT& nEndPos); public: CSMS20Helper(); CString ASCII2UTF8(CString csText); CString UTF82ASCII(CString csUTF8Text); CMapStringToString* GetContactPresence(CString csData); CString SearchAuthorizePresence(CString csData); CString SearchTransactionId(CString csData); CString SearchMessage(CString csData); }; ///////////////////////////////////////////////////////////////////////////// // Class CSMS20 class CSMS20 : public CObject { CInternetSession* m_pSession; UINT m_nTransId; CString m_csSessionID; CString m_csMyAlias; // Headers and URL are always the same except in Login CString m_csHeaders; CString m_csURL; CString SearchValue(CString csData, CString csTag, UINT& nEndPos); CString GetAlias(CString csData, CString csLogin); CMapStringToOb* GetContactList(CString csDatos); CMapStringToOb* GetPresenceList(CString csDatos); CString ReadData(CHttpFile* pFile); UINT PostHTTP(CString csURL, BYTE* strPostData, long lDataSize, CString csHeaders, CString& csRetHeaders, CString& csRetData); public: CSMS20(); // Constructor ~CSMS20(); CString GetMyAlias(){return m_csMyAlias;}; CString Login(CString csLog, CString csPassw); CMapStringToOb* Connect(CString csLog, CString csNickname); CString Polling(); CString AddContact(CString csLog, CString csContact); void AuthorizeContact(CString csUser, CString csTransaction); void DeleteContact(CString csLog, CString csContact); void SendMessage(CString csLog, CString csDestination, CString csMessage); void Disconnect(); }; #endif // _SMS20_
[ [ [ 1, 97 ] ] ]
fb57202c6979ebe950ae95b10ec52a452abec7ab
b56d3cd618f3c371f752da59ef2dbf4f55d0794a
/include/ray/opencl/ocl_device_properties.h
4c622377677e7811befcfeffe17dce0d438c694a
[ "MIT" ]
permissive
G-Node/opencl-toolbox
0ce4d0fbb2644d21c6b0076627d07324e0b0b9bf
41cea3ec9f244264552ae52c98db8d491d141613
refs/heads/master
2020-06-06T12:53:55.392313
2011-09-19T22:13:49
2011-09-19T22:13:49
2,404,786
5
6
null
null
null
null
UTF-8
C++
false
false
2,452
h
#ifndef _RAY_OPENCL_OCL_DEVICE_PROPERTIES_H_ #define _RAY_OPENCL_OCL_DEVICE_PROPERTIES_H_ /* * OpenCL Device object properties * Author: Radford Juang * Date: 4.28.2010 * Email: rayver /_at_/ hkn (dot) berkeley (dot) edu */ // Device information available: #include <ray/opencl/opencl.h> #include <string> #include <vector> namespace ray { namespace opencl { typedef struct _ocl_device_properties { cl_device_type type; cl_uint vendor_id; cl_uint max_compute_units; cl_uint max_work_item_dimensions; size_t max_work_group_size; std::vector<size_t> max_work_item_sizes; cl_uint preferred_vector_width_char; cl_uint preferred_vector_width_short; cl_uint preferred_vector_width_int; cl_uint preferred_vector_width_long; cl_uint preferred_vector_width_float; cl_uint preferred_vector_width_double; cl_uint max_clock_frequency; cl_platform_id platform; cl_bitfield address_bits; cl_uint max_read_image_args; cl_uint max_write_image_args; cl_long max_mem_alloc_size; size_t image2d_max_width; size_t image2d_max_height; size_t image3d_max_width; size_t image3d_max_height; size_t image3d_max_depth; cl_uint image_support; size_t max_parameter_size; cl_uint max_samplers; cl_uint mem_base_addr_align; cl_uint min_data_type_align_size; cl_device_fp_config single_fp_config; cl_device_mem_cache_type global_mem_cache_type; cl_uint global_mem_cacheline_size; cl_ulong global_mem_cache_size; cl_ulong global_mem_size; cl_ulong max_constant_buffer_size; cl_uint max_constant_args; cl_device_local_mem_type local_mem_type; cl_ulong local_mem_size; cl_bool error_correction_support; size_t profiling_timer_resolution; cl_bool endian_little; cl_bool available; cl_bool compiler_available; cl_device_exec_capabilities execution_capabilities; cl_command_queue_properties queue_properties; std::string name; std::string vendor; std::string version; std::string driver_version; std::string profile; std::string extensions; } ocl_device_properties; }} #endif
[ [ [ 1, 11 ], [ 14, 14 ], [ 16, 75 ] ], [ [ 12, 13 ], [ 15, 15 ] ] ]
da35da509e430e74fe74236aa995173b7f21b0d6
e2e49023f5a82922cb9b134e93ae926ed69675a1
/tools/aoslcpp/include/aosl/resource_type_generic.inl
03c2204ebf0709fbb24ad93eb68e43842985ce44
[]
no_license
invy/mjklaim-freewindows
c93c867e93f0e2fe1d33f207306c0b9538ac61d6
30de8e3dfcde4e81a57e9059dfaf54c98cc1135b
refs/heads/master
2021-01-10T10:21:51.579762
2011-12-12T18:56:43
2011-12-12T18:56:43
54,794,395
1
0
null
null
null
null
UTF-8
C++
false
false
1,679
inl
// Copyright (C) 2005-2010 Code Synthesis Tools CC // // This program was generated by CodeSynthesis XSD, an XML Schema // to C++ data binding compiler, in the Proprietary License mode. // You should have received a proprietary license from Code Synthesis // Tools CC prior to generating this code. See the license text for // conditions. // #ifndef AOSLCPP_AOSL__RESOURCE_TYPE_GENERIC_INL #define AOSLCPP_AOSL__RESOURCE_TYPE_GENERIC_INL // Begin prologue. // // // End prologue. namespace aosl { // Resource_type_generic // inline Resource_type_generic:: Resource_type_generic (Value v) : ::xml_schema::String (_xsd_Resource_type_generic_literals_[v]) { } inline Resource_type_generic:: Resource_type_generic (const char* v) : ::xml_schema::String (v) { } inline Resource_type_generic:: Resource_type_generic (const ::std::string& v) : ::xml_schema::String (v) { } inline Resource_type_generic:: Resource_type_generic (const ::xml_schema::String& v) : ::xml_schema::String (v) { } inline Resource_type_generic:: Resource_type_generic (const Resource_type_generic& v, ::xml_schema::Flags f, ::xml_schema::Container* c) : ::xml_schema::String (v, f, c) { } inline Resource_type_generic& Resource_type_generic:: operator= (Value v) { static_cast< ::xml_schema::String& > (*this) = ::xml_schema::String (_xsd_Resource_type_generic_literals_[v]); return *this; } } // Begin epilogue. // // // End epilogue. #endif // AOSLCPP_AOSL__RESOURCE_TYPE_GENERIC_INL
[ "klaim@localhost" ]
[ [ [ 1, 76 ] ] ]
69dab18d2a8831a4c16ad6eaef1b81d453c54ff0
68bfdfc18f1345d1ff394b8115681110644d5794
/Examples/Example01/Reference.h
921e04e17c25dff1a6a6bd78c9e47adc20b2f078
[]
no_license
y-gupta/glwar3
43afa1efe475d937ce0439464b165c745e1ec4b1
bea5135bd13f9791b276b66490db76d866696f9a
refs/heads/master
2021-05-28T12:20:41.532727
2010-12-09T07:52:12
2010-12-09T07:52:12
32,911,819
1
0
null
null
null
null
UTF-8
C++
false
false
4,983
h
#pragma once //+----------------------------------------------------------------------------- //| Included files //+----------------------------------------------------------------------------- #include "ReferenceObject.h" //+----------------------------------------------------------------------------- //| Reference class //+----------------------------------------------------------------------------- template <class TYPE, class OBJECT_TYPE> class REFERENCE { public: CONSTRUCTOR REFERENCE(); CONSTRUCTOR REFERENCE(CONST REFERENCE<TYPE, OBJECT_TYPE>& CopyObject); DESTRUCTOR ~REFERENCE(); CONST REFERENCE<TYPE, OBJECT_TYPE>& operator =(CONST REFERENCE<TYPE, OBJECT_TYPE>& CopyObject); VOID SetData(TYPE NewData); TYPE GetData() CONST; OBJECT_TYPE GetObjectData() CONST; VOID Attach(REFERENCE_OBJECT<TYPE, OBJECT_TYPE>& NewReferenceObject); VOID Detach(); BOOL IsAttached() CONST; protected: REFERENCE_OBJECT<TYPE, OBJECT_TYPE>* ReferenceObject; REFERENCE<TYPE, OBJECT_TYPE>* NextReference; REFERENCE<TYPE, OBJECT_TYPE>* PrevReference; TYPE Data; friend class REFERENCE_OBJECT<TYPE, OBJECT_TYPE>; }; //+----------------------------------------------------------------------------- //| Constructor //+----------------------------------------------------------------------------- template <class TYPE, class OBJECT_TYPE> REFERENCE<TYPE, OBJECT_TYPE>::REFERENCE() { ReferenceObject = NULL; NextReference = NULL; PrevReference = NULL; } //+----------------------------------------------------------------------------- //| Copy constructor //+----------------------------------------------------------------------------- template <class TYPE, class OBJECT_TYPE> REFERENCE<TYPE, OBJECT_TYPE>::REFERENCE(CONST REFERENCE<TYPE, OBJECT_TYPE>& CopyObject) { ReferenceObject = NULL; NextReference = NULL; PrevReference = NULL; if (CopyObject.IsAttached()) Attach(*CopyObject.GetObjectData()); } //+----------------------------------------------------------------------------- //| Destructor //+----------------------------------------------------------------------------- template <class TYPE, class OBJECT_TYPE> REFERENCE<TYPE, OBJECT_TYPE>::~REFERENCE() { Detach(); } //+----------------------------------------------------------------------------- //| Assignment operator //+----------------------------------------------------------------------------- template <class TYPE, class OBJECT_TYPE> CONST REFERENCE<TYPE, OBJECT_TYPE>& REFERENCE<TYPE, OBJECT_TYPE>::operator =(CONST REFERENCE<TYPE, OBJECT_TYPE>& CopyObject) { Detach(); if (CopyObject.IsAttached()) Attach(*CopyObject.GetObjectData()); return (*this); } //+----------------------------------------------------------------------------- //| Sets a new data //+----------------------------------------------------------------------------- template <class TYPE, class OBJECT_TYPE> VOID REFERENCE<TYPE, OBJECT_TYPE>::SetData(TYPE NewData) { Data = NewData; } //+----------------------------------------------------------------------------- //| Returns the data //+----------------------------------------------------------------------------- template <class TYPE, class OBJECT_TYPE> TYPE REFERENCE<TYPE, OBJECT_TYPE>::GetData() CONST { return Data; } //+----------------------------------------------------------------------------- //| Returns the object data //+----------------------------------------------------------------------------- template <class TYPE, class OBJECT_TYPE> OBJECT_TYPE REFERENCE<TYPE, OBJECT_TYPE>::GetObjectData() CONST { return ReferenceObject->GetData(); } //+----------------------------------------------------------------------------- //| Attaches the reference to a reference object //+----------------------------------------------------------------------------- template <class TYPE, class OBJECT_TYPE> VOID REFERENCE<TYPE, OBJECT_TYPE>::Attach(REFERENCE_OBJECT<TYPE, OBJECT_TYPE>& NewReferenceObject) { Detach(); ReferenceObject = &NewReferenceObject; ReferenceObject->Add(this); } //+----------------------------------------------------------------------------- //| Detaches the reference from its reference object //+----------------------------------------------------------------------------- template <class TYPE, class OBJECT_TYPE> VOID REFERENCE<TYPE, OBJECT_TYPE>::Detach() { if (ReferenceObject != NULL) { ReferenceObject->Remove(this); ReferenceObject = NULL; } NextReference = NULL; PrevReference = NULL; } //+----------------------------------------------------------------------------- //| Checks if the reference is attached //+----------------------------------------------------------------------------- template <class TYPE, class OBJECT_TYPE> BOOL REFERENCE<TYPE, OBJECT_TYPE>::IsAttached() CONST { return (ReferenceObject != NULL); }
[ "sihan6677@deb3bc48-0ee2-faf5-68d7-13371a682d83" ]
[ [ [ 1, 163 ] ] ]
bdf825aefbfb99c06ccc9354a20f0a00f6909888
e8c9bfda96c507c814b3378a571b56de914eedd4
/engineTest/ktcGame.cpp
f8b1414b1a45dce77f744612bf38f2e2553ebbc0
[]
no_license
VirtuosoChris/quakethecan
e2826f832b1a32c9d52fb7f6cf2d972717c4275d
3159a75117335f8e8296f699edcfe87f20d97720
refs/heads/master
2021-01-18T09:20:44.959838
2009-04-20T13:32:36
2009-04-20T13:32:36
32,121,382
0
0
null
null
null
null
UTF-8
C++
false
false
17,220
cpp
#include "ktcGame.h" #include "player.h" //todo code //entities[1]->setPathList(this->generateDefenseArc(0,2*3.14, 120,8)); //#define COVER_OBJECT_GENERATOR using namespace irr; using namespace irr::scene; using namespace irr::core; using std::cout; //initializing the playerList std::vector<GamePlayer *> ktcGame::playerList; extern std::vector<irr::scene::ISceneNode*> specialWalls; //plan for guard can behavior //a* to the can //do while(time) // generate path from a random one of the 8 compass directions to the one 180 degrees away -- // that is, nodes in a circular arc of constant radius // go to center //end while std::list<irr::core::vector3df> ktcGame::generateDefenseArc(double startAngle, double endAngle, double radius, double nodeCount){ std::list<irr::core::vector3df> result(nodeCount); const irr::core::vector3df& canPos = this->can.getSceneNode()->getPosition(); double increment = (startAngle - endAngle) / nodeCount; for(int i = 0; i < nodeCount; i++){ double currentAngle = endAngle + increment*i; result.push_back( vector3df(0, -canPos.Y + this->spawnPointList[0].Y,0)+radius*vector3df( cos(currentAngle) ,0,sin(currentAngle) ) + canPos); //irr::scene::ISceneNode* a = this->smgr->addSphereSceneNode(5); //a->setPosition(result.back()); } return result; } //#define NODE_MESH_GENERATOR //is the program in node mesh generation mode //-442,351,-863 //-528.744751 0.024357 102.937782 ktcGame::ktcGame(irr::IrrlichtDevice *device, irr::scene::ITriangleSelector* selector, irrklang::ISoundEngine *soundEngine):can (device), graph (device, "NODE_LIST.txt","ADJACENCY_LIST.txt","EXCLUDE.txt"), agent2 (Model("../media/chuckie.MD2","../media/Chuckie.pcx", device), irr::core::vector3df(0,0,0), 15000, 10000, PREY, core::vector3df(-528.744751, 0.024357, 102.937782), device->getSceneManager(), &graph), plyr(device, irr::core::vector3df(0,0,0), 15000, 0, PREDATOR, soundEngine){ graph.selector = selector; graph.toggleDebugOutput(false); dMode = NONE; //Instantiate the Irrlicht Engine Device this->device = device; //Instantiate the IrrKlang Sound Engine this->soundEngine = soundEngine; reviveSound = soundEngine->addSoundSourceFromFile("../media/sounds/effects/yay.wav"); reviveSound->setDefaultVolume(0.3f); //set up state machine GameStateMachine = new StateMachine<ktcGame>(*this); plyr.setSpeed(); playerList.push_back(&plyr); //Instantiate the Irrlicht Engine Scene Manager smgr = device->getSceneManager(); //Instantiate the GameHUD Device this->display = gameHUD::getInstance(); //Setup Initial Player Scores player1Score = 0; player2Score = 200; player3Score = 5678; player4Score = 100000000; player5Score = 73829; //Setup Who Has Gun whoHasGun = 1; display->setGunMarker(1); CHUCKIE = agent2.getModel(); FILE* fp = fopen("SPAWN_POINTS.txt", "r"); if(fp){ float a[3]; while(!feof(fp)){ fscanf(fp, "%f %f %f\n", a, &a[1], &a[2]); this->spawnPointList.push_back(irr::core::vector3df(a[0],a[1],a[2])); //irr::scene::ISceneNode* b; //b = smgr->addSphereSceneNode(1); //b->setMaterialFlag(irr::video::EMF_LIGHTING, true); //b->setPosition(irr::core::vector3df(a[0], a[1], a[2])); } fclose(fp); } fp = fopen("COVER_OBJECTS.txt", "r"); if(fp){ float a[3]; while(!feof(fp)){ fscanf(fp, "%f %f %f\n", a, &a[1], &a[2]); this->coverObjectList.push_back(new coverObject(vector3df(a[0], a[1], a[2]), device)); } fclose(fp); } else cout << "Bad pointer.\n"; //can=(device); //gun = gunEntity(device, camera); /****************LOAD IN MODELS*******************************/ CARTMAN = createModel("../media/ERIC.MD2","../media/ERIC.pcx",device, 1.0f); CYBERDEMON = createModel("../media/cyber.md2","../media/cyber.pcx",device,3.0f); Agent::setAgentList(&entities); Agent::setCoverObjectList(&coverObjectList); plyr.setIt(&agent2); agent2.setIt(&agent2); //agent2.setSpotted(&plyr); agent2.getSceneNode()->setPosition(spawnPointList[2]); agent2.setPosition(spawnPointList[2]); agent2.createCollisionAnimator(selector, smgr); //agent2.GetFSM()->ChangeState(Hide::GetInstance()); agent2.setSpawnPoint(spawnPointList[2]); entities.push_back(&agent2); agent2.setSpeed(); playerList.push_back(&agent2); //Initialize game into Pre-Play State and sync the clock this->GetFSM()->SetCurrentState(PrePlay::getInstance()); this->GetFSM()->StartCurrentState(); this->setLastTime(device->getTimer()->getTime()); //camera = //smgr->addCameraSceneNodeFPS();// addCameraSceneNodeFPS(); //CPTODO: REPLACE HARD CODED CONSTANT WITH SOMETHING BETTER //camera->setPosition(core::vector3df(-280,288,-830)); plyr.setSpawnPoint(spawnPointList[0]); plyr.getSceneNode()->setPosition( spawnPointList[0] ); //agent2.createPatrolRoute(&graph); scene::ISceneNodeAnimator *nodeAnimator = smgr->createCollisionResponseAnimator(selector,//geometry for collision plyr.getSceneNode(), //scene node to apply collision to/ CHUCKIE.mesh->getBoundingBox().getExtent(), core::vector3df(0,-10,0),//gravity CHUCKIE.mesh->getBoundingBox().getCenter()//core::vector3df(0,30,0) ); //collision volume position if(!nodeAnimator){throw new std::string("Error creating node animator");} plyr.getSceneNode()->addAnimator(nodeAnimator); nodeAnimator->drop(); plyr.getSceneNode()->addAnimator( smgr->createCollisionResponseAnimator( smgr->createTriangleSelectorFromBoundingBox(((irr::scene::IAnimatedMeshSceneNode*)agent2.getSceneNode())),plyr.getSceneNode(),((irr::scene::IAnimatedMeshSceneNode*)agent2.getSceneNode())->getBoundingBox().getExtent(), vector3df(0,0,0),((irr::scene::IAnimatedMeshSceneNode*)agent2.getSceneNode())->getBoundingBox().getCenter()) ); //make the camera collide with cover for(int i = 0; i < this->coverObjectList.size(); i++){ plyr.getSceneNode()->addAnimator( smgr->createCollisionResponseAnimator( smgr->createTriangleSelectorFromBoundingBox( coverObjectList[i]->getSceneNode()), plyr.getSceneNode(),CHUCKIE.mesh->getBoundingBox().getExtent(), vector3df(0,0,0), CHUCKIE.mesh->getBoundingBox().getCenter() ) ); agent2.getSceneNode()->addAnimator( smgr->createCollisionResponseAnimator( smgr->createTriangleSelectorFromBoundingBox(coverObjectList[i]->getSceneNode()),agent2.getSceneNode(),CHUCKIE.mesh->getBoundingBox().getExtent(), vector3df(0,0,0), CHUCKIE.mesh->getBoundingBox().getCenter() ) ); } for(int i = 0; i < specialWalls.size(); i++){ plyr.getSceneNode()->addAnimator( smgr->createCollisionResponseAnimator( smgr->createTriangleSelectorFromBoundingBox( specialWalls[i]), plyr.getSceneNode(),CHUCKIE.mesh->getBoundingBox().getExtent(), vector3df(0,0,0), CHUCKIE.mesh->getBoundingBox().getCenter() ) ); agent2.getSceneNode()->addAnimator( smgr->createCollisionResponseAnimator( smgr->createTriangleSelectorFromBoundingBox(specialWalls[i]),agent2.getSceneNode(),CHUCKIE.mesh->getBoundingBox().getExtent(), vector3df(0,0,0), CHUCKIE.mesh->getBoundingBox().getCenter()) ); scene::ISceneNodeAnimator *nodeAnimator = smgr->createCollisionResponseAnimator(selector,//geometry for collision specialWalls[i], //scene node to apply collision to/ specialWalls[i]->getBoundingBox().getExtent(), core::vector3df(0,-10,0),//gravity specialWalls[i]->getBoundingBox().getCenter()//core::vector3df(0,30,0) ); //collision volume position if(!nodeAnimator){throw new std::string("Error creating node animator");} specialWalls[i]->addAnimator(nodeAnimator); nodeAnimator->drop(); } Agent::setCan(&this->can); GamePlayer::setPlayerList(&playerList); RoundRobin(playerList); } void ktcGame::update(const irr::ITimer* timer){ int allPlayerScores[5]; allPlayerScores[0] = player1Score; allPlayerScores[1] = player2Score; allPlayerScores[2] = player3Score; allPlayerScores[3] = player4Score; allPlayerScores[4] = player5Score; display->updateScores(allPlayerScores); /*//if time is up, then round robin shit so that we get new predator and prey if(plyr.pl_time.getTime() <= 0){ RoundRobin(playerList); for(int i = 0; i < playerList.size(); i++) { (*playerList[i]).setInvTimer(5000); (*playerList[i]).setTimer(45000); } //Set last time for offset this->setLastTime(timer->getTime()); //Change to Play State GameStateMachine->ChangeState(RoundBreak::getInstance()); }*/ /* if(agent2.getPlayerType() == PREY) std::cout << "I'm an agent and i'm PREY\n"; else std::cout << "I'm an agent and i'm a PREDATOR\n"; if(plyr.getPlayerType() == PREY) std::cout << "I'm a player and i'm PREY\n"; else std::cout << "I'm a player and i'm a PREDATOR\n"; */ device->getVideoDriver()->beginScene(true, true, video::SColor(255,100,101,140)); smgr->drawAll(); //draw 3d objects display->render(); //for(int i = 0; i < this->coverObjectList.size(); i++){ //coverObjectList[i]->getCoverPosition(agent2.getIt()); //} plyr.getGun().render(); //end drawing device->getVideoDriver()->endScene(); if(InputHandler::getInstance()->unprocessedMouseMessageLMB){ #ifdef NODE_MESH_GENERATOR graph.addNode(camera->getPosition()); #endif #ifdef SPAWN_POINT_CREATOR this->spawnPointList.push_back(camera->getPosition()); FILE *fp = fopen("SPAWN_POINTS.txt", "a"); fprintf(fp, "%f %f %f\n", this->camera->getPosition().X, this->camera->getPosition().Y, this->camera->getPosition().Z); fclose(fp); #endif #ifdef COVER_OBJECT_GENERATOR irr::scene::ISceneNode* t= smgr->addCubeSceneNode(1); t->setPosition(camera->getPosition()); //irr::scene::ILightSceneNode *lightscenenode = smgr->addLightSceneNode(0, irr::core::vector3df(1.25,0,0), irr::video::SColor(255,255, 255, 255),100); //t->addChild(lightscenenode); //irr::scene::ILightSceneNode *lightscenenode2 = smgr->addLightSceneNode(0, irr::core::vector3df(0,0,-1.25), irr::video::SColor(255, 255, 255, 255),100); //t->addChild(lightscenenode2); //irr::scene::ISceneNode* a = smgr->addSphereSceneNode(1); //a->setPosition(irr::core::vector3df(1.1,1.1,1.1)); //t->addChild(a); t->setScale(vector3df(50,75,50)); coverObjectList.push_back(camera->getPosition()); t->setMaterialTexture(0, device->getVideoDriver()->getTexture("../media/crate.jpg")); t->setMaterialTexture(1, device->getVideoDriver()->getTexture("../media/cratebump.jpg")); t->setMaterialFlag(video::EMF_LIGHTING, true); t->setMaterialFlag(video::EMF_FOG_ENABLE, true); t->setMaterialType(video::EMT_LIGHTMAP_LIGHTING_M4); //t->getMaterial(0).AmbientColor = video::SColor(255,25,25,25); //t->getMaterial(1).AmbientColor = video::SColor(255,25,25,25); #endif //Gun Mechanics - Make sure animation is complete if(plyr.getGun().isReady() && plyr.getPlayerType() == PREDATOR){ MessageHandler::getInstance()->postMessage(KTC_PLAYER_LEFT_MOUSE_CLICK, 0, this, &plyr.getGun(), timer); //Make sure gun has passed the firing time limitation //if(display->getGunReady()){ for(int i = 0; i < entities.size(); i++){ if(this->pointing() == entities[i]->getSceneNode()){ MessageHandler::getInstance()->postMessage(KTC_KILL, 0, this, entities[i], device->getTimer()); MessageHandler::getInstance()->postMessage(KTC_KILL, 0, this, &can, device->getTimer()); break; } } //} } if(plyr.getPlayerType() == PREY && this->pointing() == can.getSceneNode() && (plyr.getSceneNode()->getPosition() - can.getSceneNode()->getPosition()).getLength() <= 100.0f){ for(int i = 0; i < entities.size(); i++){ MessageHandler::getInstance()->postMessage(KTC_REVIVE, 0, this, entities[i], device->getTimer()); } } InputHandler::getInstance()->unprocessedMouseMessageLMB = false; } if(InputHandler::getInstance()->unprocessedMouseMessageRMB){ //graph.output(); #ifdef COVER_OBJECT_GENERATOR FILE *fp = fopen("COVER_OBJECTS.txt", "w"); for(int i = 0; i < this->coverObjectList.size(); i++){ fprintf(fp, "%f %f %f\n", coverObjectList[i].X, coverObjectList[i].Y, coverObjectList[i].Z); } fclose(fp); #endif InputHandler::getInstance()->unprocessedMouseMessageRMB = false; } //Toggle the render output of the Debug visible objects if(InputHandler::getInstance()->isTKeyPressed()){ graph.toggleDebugOutput(!graph.isDebugOutput()); } //Toggle the render output of the GUI scoring mechanism //if(InputHandler::getInstance()->isTabKeyPressed()){ // graph.toggleScoreOutput(!graph.isScoreOutput()); //} can.update(timer); plyr.update(timer); #ifndef NODE_MESH_GENERATOR static mapGraph* mintree = graph.minimumSpanningTree(0); //graph.minimumSpanningTree(0)->render(device->getVideoDriver()); switch(this->dMode){ case NONE: break; case FULLGRAPH: graph.render(device->getVideoDriver()); break; case MINSPANNINGTREE: mintree->render(device->getVideoDriver()); break; } for(int i = 0; i < (int)entities.size();i++){ if(entities[i]){ entities[i]->update(timer); if(graph.isDebugOutput()){ //entities[i]->drawPieSlices(device->getVideoDriver()); } } } #endif //update all entities //agent2.walk(agent2.followPath(timer)); //agent2.walk(agent2.seek(agent2.getCurrentSeekTarget()) + agent2.wallAvoidance()); //agent2.walk(2*agent2.avoid(&plyr)+ 10*agent2.wallAvoidance()); //agent2.walk(agent2.pursue(&plyr));//);+ agent2.wallAvoidance()); //agent2.walk(2*agent2.seek(plyr.getPosition())+ agent2.wallAvoidance()); ///gun.gun->setPosition(camera->getPosition()); //gun.gun->setRotation(camera->getRotation() + vector3df(0,270,0)); //scene::ISceneNode* SceneNodeSeen; //SceneNodeSeen = ktcGame::pointing(); //if(SceneNodeSeen == agent2.getSceneNode()){ // std::cout << "I'm looking at Chuckie;\n"; //} } void ktcGame::RoundRobin(std::vector<GamePlayer *> plst){ for(int i = 0; i < plst.size(); i++){ //if i'm a predator, set me to prey if( ( (*plst[i]).getPlayerType() == PREDATOR) && (i+1 != plst.size()) ){ (*plst[i]).setPlayerType(PREY); (*plst[i]).setSpeed(); (*plst[i]).setInvTimer(5000); (*plst[i]).setTimer(1500000); //change state to init of pred and prey (*plst[i+1]).setPlayerType(PREDATOR); (*plst[i+1]).setSpeed(); (*plst[i+1]).setInvTimer(5000); (*plst[i+1]).setTimer(1500000); for(int x = 0; x < playerList.size(); x++){ (*plst[x]).setIt(plst[i+1]); } break; } //if i'm a predator at the end of the list, do special indexing shit else if( ((*plst[i]).getPlayerType() == PREDATOR) && ( (i+1) == plst.size() ) ){ //change state to init of pred and prey (*plst[i]).setPlayerType(PREY); (*plst[i]).setSpeed(); (*plst[i]).setInvTimer(5000); (*plst[i]).setTimer(1500000); (*plst[i% (plst.size() - 1) ]).setPlayerType(PREDATOR); (*plst[i% (plst.size() - 1) ]).setSpeed(); (*plst[i% (plst.size() - 1) ]).setInvTimer(5000); (*plst[i% (plst.size() - 1) ]).setTimer(1500000); for(int x = 0; x < playerList.size(); x++){ (*plst[x]).setIt(plst[i% (plst.size() - 1) ]); } break; } /* //if an agent in the agent list is the same as a player in the player list then we can cast it to a player and set its state for(int x = 0; x < entities.size(); x++){ if((*plst[i]).getSceneNode() == entities[x]->getSceneNode()){ Agent* ap = (Agent*)(&((*plst[i]))); if((*plst[i]).getPlayerType() == PREDATOR){ // exit(0); ap->GetFSM()->ChangeState(Patrol::GetInstance()); }else if ((*plst[i]).getPlayerType() == PREY){ //exit(0); ap->GetFSM()->ChangeState(Hide::GetInstance()); } } } */ }//end javids for loop } bool ktcGame::processMessage(const Message* m){ return true; } ISceneNode* ktcGame::pointing(){ ISceneNode* selectedSceneNode; ISceneNode* returnedSceneNode; //get the scene node that the camera is looking at selectedSceneNode = smgr->getSceneCollisionManager()->getSceneNodeFromCameraBB((irr::scene::ICameraSceneNode*)plyr.getSceneNode()); returnedSceneNode = ktcGame::GetCan(selectedSceneNode); if(returnedSceneNode){ //std::cout << "I'm looking at the can.\n"; return returnedSceneNode; } returnedSceneNode = ktcGame::GetAgent(selectedSceneNode); if(returnedSceneNode){ //std::cout << "I'm looking at an agent.\n"; return returnedSceneNode; } return 0; } ISceneNode* ktcGame::GetCan(ISceneNode * node){ if(node == can.getSceneNode()) return node; else return 0; } ISceneNode* ktcGame::GetAgent(ISceneNode * node){ for(int i = 0; i < entities.size(); i++){ if(node == entities[i]->getSceneNode()) return node; } return 0; } ktcGame::~ktcGame(){}
[ "cthomas.mail@f96ad80a-2d29-11de-ba44-d58fe8a9ce33", "javidscool@f96ad80a-2d29-11de-ba44-d58fe8a9ce33", "chrispugh666@f96ad80a-2d29-11de-ba44-d58fe8a9ce33" ]
[ [ [ 1, 2 ], [ 4, 42 ], [ 44, 52 ], [ 55, 55 ], [ 57, 67 ], [ 70, 71 ], [ 73, 104 ], [ 106, 107 ], [ 121, 125 ], [ 127, 127 ], [ 130, 132 ], [ 135, 135 ], [ 139, 139 ], [ 142, 142 ], [ 145, 145 ], [ 147, 147 ], [ 151, 157 ], [ 159, 159 ], [ 162, 162 ], [ 165, 165 ], [ 167, 167 ], [ 175, 175 ], [ 179, 180 ], [ 204, 205 ], [ 232, 232 ], [ 235, 235 ], [ 239, 246 ], [ 248, 262 ], [ 264, 270 ], [ 275, 275 ], [ 282, 282 ], [ 285, 285 ], [ 289, 289 ], [ 291, 291 ], [ 294, 294 ], [ 296, 296 ], [ 333, 333 ], [ 346, 348 ], [ 353, 353 ], [ 358, 360 ], [ 369, 384 ], [ 388, 388 ], [ 402, 403 ], [ 405, 405 ], [ 407, 429 ], [ 432, 433 ], [ 435, 436 ], [ 438, 438 ], [ 442, 443 ], [ 445, 447 ], [ 449, 451 ], [ 453, 453 ], [ 485, 531 ] ], [ [ 3, 3 ], [ 43, 43 ], [ 53, 54 ], [ 56, 56 ], [ 68, 69 ], [ 72, 72 ], [ 105, 105 ], [ 108, 120 ], [ 126, 126 ], [ 128, 129 ], [ 133, 134 ], [ 140, 141 ], [ 143, 143 ], [ 146, 146 ], [ 148, 150 ], [ 158, 158 ], [ 160, 161 ], [ 163, 164 ], [ 166, 166 ], [ 168, 174 ], [ 176, 178 ], [ 181, 203 ], [ 206, 231 ], [ 247, 247 ], [ 280, 281 ], [ 283, 284 ], [ 286, 288 ], [ 290, 290 ], [ 292, 293 ], [ 295, 295 ], [ 297, 330 ], [ 332, 332 ], [ 336, 336 ], [ 338, 340 ], [ 342, 344 ], [ 350, 352 ], [ 354, 357 ], [ 361, 368 ], [ 385, 387 ], [ 389, 401 ], [ 404, 404 ], [ 406, 406 ], [ 430, 431 ], [ 434, 434 ], [ 437, 437 ], [ 444, 444 ], [ 448, 448 ], [ 452, 452 ], [ 457, 459 ], [ 532, 532 ] ], [ [ 136, 138 ], [ 144, 144 ], [ 233, 234 ], [ 236, 238 ], [ 263, 263 ], [ 271, 274 ], [ 276, 279 ], [ 331, 331 ], [ 334, 335 ], [ 337, 337 ], [ 341, 341 ], [ 345, 345 ], [ 349, 349 ], [ 439, 441 ], [ 454, 456 ], [ 460, 484 ] ] ]
7a6ef043e3fd242846c2b9e390410d22aa2c68ed
cd0987589d3815de1dea8529a7705caac479e7e9
/webkit/WebKit/chromium/src/WebElement.cpp
f4613d0b5af6ec7e0ccbb1984e6827e1598a3b80
[ "BSD-2-Clause" ]
permissive
azrul2202/WebKit-Smartphone
0aab1ff641d74f15c0623f00c56806dbc9b59fc1
023d6fe819445369134dee793b69de36748e71d7
refs/heads/master
2021-01-15T09:24:31.288774
2011-07-11T11:12:44
2011-07-11T11:12:44
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,427
cpp
/* * 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. */ #include "config.h" #include "WebElement.h" #include "Element.h" #include "RenderBoxModelObject.h" #include "RenderObject.h" #include <wtf/PassRefPtr.h> #include "WebNamedNodeMap.h" using namespace WebCore; namespace WebKit { bool WebElement::isFormControlElement() const { return constUnwrap<Element>()->isFormControlElement(); } WebString WebElement::tagName() const { return constUnwrap<Element>()->tagName(); } bool WebElement::hasTagName(const WebString& tagName) const { return equalIgnoringCase(constUnwrap<Element>()->tagName(), tagName.operator String()); } bool WebElement::hasAttribute(const WebString& attrName) const { return constUnwrap<Element>()->hasAttribute(attrName); } WebString WebElement::getAttribute(const WebString& attrName) const { return constUnwrap<Element>()->getAttribute(attrName); } bool WebElement::setAttribute(const WebString& attrName, const WebString& attrValue) { ExceptionCode exceptionCode = 0; unwrap<Element>()->setAttribute(attrName, attrValue, exceptionCode); return !exceptionCode; } WebNamedNodeMap WebElement::attributes() const { return WebNamedNodeMap(m_private->attributes()); } WebString WebElement::innerText() const { return constUnwrap<Element>()->innerText(); } WebString WebElement::computeInheritedLanguage() const { return WebString(constUnwrap<Element>()->computeInheritedLanguage()); } WebElement::WebElement(const PassRefPtr<Element>& elem) : WebNode(elem) { } WebElement& WebElement::operator=(const PassRefPtr<Element>& elem) { m_private = elem; return *this; } WebElement::operator PassRefPtr<Element>() const { return static_cast<Element*>(m_private.get()); } } // namespace WebKit
[ [ [ 1, 109 ] ] ]
8b1e15fa23814d60e818abdbbbba324234cf3dba
ed8cbdeb94cdc3364586c6e73d48427eab3dd624
/benchmarks/win32/Programming Projects/Columbia/VC/include/EvtLogger.h
33ad73ef59a622214fc124f8a38a033b48c4cdec
[]
no_license
Programming-Systems-Lab/archived-events
3b5281b1f3013cc4a3943e52cfd616d2daeba6f2
61d521b39996393ad7ad6d9430dbcdab4b2b36c6
refs/heads/master
2020-09-17T23:37:34.037734
2002-12-20T15:45:08
2002-12-20T15:45:08
67,139,857
0
0
null
null
null
null
UTF-8
C++
false
false
3,200
h
// EvtLogger.h: interface for the EvtLogger class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_EVTLOGGER_H__3398113C_542A_11D5_80B8_0050DAC00BBC__INCLUDED_) #define AFX_EVTLOGGER_H__3398113C_542A_11D5_80B8_0050DAC00BBC__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include <exports.h> #include <AString.h> #include <afxmt.h> #include <windows.h> const AString SZ_MESSAGE_DLL = "genmsg.dll"; class CommonExport EvtLogger { public: EvtLogger( AString szSource ); virtual ~EvtLogger(); /* Function cleans up an EvtLogger Instance. Return values: returns TRUE */ BOOL CleanupInstance( void ); /* Function initializes and EvtLogger instance. Input parameters: szSource - name of source to initialize an instance with. Return values: On Success returns TRUE On Error returns FALSE */ BOOL InitInstance( AString szSource ); /* Function logs an error event in the system event log . Input parameters: szFile - the source file where event occurred lngLine - the line of the source file where event occurred szMsg - the message to log Return values: On Success returns TRUE On Error returns FALSE */ BOOL ReportError( char* szFile, long lngLine, AString szMsg ); /* Function logs an info event in the system event log . Input parameters: szFile - the source file where event occurred lngLine - the line of the source file where event occurred szMsg - the message to log Return values: On Success returns TRUE On Error returns FALSE */ BOOL ReportInfo( char* szFile, long lngLine, AString szMsg ); /* Function logs a warning event in the system event log . Input parameters: szFile - the source file where event occurred lngLine - the line of the source file where event occurred szMsg - the message to log Return values: On Success returns TRUE On Error returns FALSE */ BOOL ReportWarning( char* szFile, long lngLine, AString szMsg ); /* Function gets the error message associated with the last system error that occurred. Input parameters: szError - a reference to an AString to store the system error message. Return values: returns TRUE. */ static BOOL LastError( AString& szError ); /* Write data to Tracefile. Tracefile protected by named mutex created when evtLogger instance created. Input Parameters: char* szFile - source file originating trace long lngLine - line in source file of trace AString szData - string data to write to file Return values: returns 0 */ long Trace( char* szFile, long lngLine, AString szData ); BOOL WriteInfoEvent( AString szData ); BOOL WriteErrorEvent( AString szData ); BOOL WriteWarningEvent( AString szData ); AString GetTraceFileFullQName( void ); AString GetSourceName( void ); private: AString m_szSource; HANDLE m_hSource; AString m_szTraceFile; }; #endif // !defined(AFX_EVTLOGGER_H__3398113C_542A_11D5_80B8_0050DAC00BBC__INCLUDED_)
[ "jjp32" ]
[ [ [ 1, 102 ] ] ]
49fa923431230021ae66efde5d67c355c2a32eba
0b66a94448cb545504692eafa3a32f435cdf92fa
/tags/0.3/cbear.berlios.de/range/iterator_range.hpp
e9dfc21b56141a931e69f40d930ab8510ec2164a
[ "MIT" ]
permissive
BackupTheBerlios/cbear-svn
e6629dfa5175776fbc41510e2f46ff4ff4280f08
0109296039b505d71dc215a0b256f73b1a60b3af
refs/heads/master
2021-03-12T22:51:43.491728
2007-09-28T01:13:48
2007-09-28T01:13:48
40,608,034
0
0
null
null
null
null
UTF-8
C++
false
false
4,209
hpp
/* The MIT License Copyright (c) 2005 C Bear (http://cbear.berlios.de) 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. */ #ifndef CBEAR_BERLIOS_DE_RANGE_ITERATOR_RANGE_HPP_INCLUDED #define CBEAR_BERLIOS_DE_RANGE_ITERATOR_RANGE_HPP_INCLUDED #include <cbear.berlios.de/policy/main.hpp> #include <cbear.berlios.de/range/traits.hpp> #include <cbear.berlios.de/range/helper.hpp> #include <cbear.berlios.de/range/begin.hpp> #include <cbear.berlios.de/range/end.hpp> namespace cbear_berlios_de { namespace range { template<class Iterator> class iterator_range; namespace detail { template<class Iterator> struct iterator_range_traits { typedef iterator_range<Iterator> type; typedef std::pair<Iterator, Iterator> internal_type; typedef policy::wrap<type, internal_type> wrap_type; typedef helper<type, Iterator, Iterator> helper_type; }; } template<class Iterator> class iterator_range: public detail::iterator_range_traits<Iterator>::wrap_type, public detail::iterator_range_traits<Iterator>::helper_type { public: typedef typename detail::iterator_range_traits<Iterator>::wrap_type wrap_type; typedef typename wrap_type::internal_type internal_type; typedef typename detail::iterator_range_traits<Iterator>::helper_type helper_type; typedef typename helper_type::size_type size_type; iterator_range() {} explicit iterator_range(const internal_type &X): wrap_type(X) {} typedef Iterator iterator; typedef Iterator const_iterator; iterator_range(const iterator &Begin, const iterator &End): wrap_type(internal_type(Begin, End)) { } iterator_range(const iterator &Begin, const size_type &Size): wrap_type(internal_type(Begin, Begin + Size)) { } iterator &begin() { return this->internal().first; } iterator &end() { return this->internal().second; } const iterator &begin() const { return this->internal().first; } const iterator &end() const { return this->internal().second; } template<class Range> explicit iterator_range(Range &R): wrap_type(internal_type(iterator(range::begin(R)), iterator(range::end(R)))) { } template<class Range> explicit iterator_range(const Range &R): wrap_type(internal_type(iterator(range::begin(R)), iterator(range::end(R)))) { } }; template<class Iterator> iterator_range<Iterator> make_iterator_range( const Iterator &B, const Iterator &E) { return iterator_range<Iterator>::type(B, E); } template<class Iterator, class SizeType> iterator_range<Iterator> make_iterator_range( const Iterator &B, const SizeType &Size) { return iterator_range<Iterator>::type(B, Size); } template<class Iterator> iterator_range<Iterator> make_iterator_range( const std::pair<Iterator, Iterator> &P) { return iterator_range<Iterator>(P); } template<class Range> iterator_range<typename iterator<Range>::type> make_iterator_range( Range &R) { return iterator_range<typename iterator<Range>::type>(R); } template<class Range> iterator_range<typename iterator<const Range>::type> make_iterator_range( const Range &R) { return iterator_range<typename iterator<const Range>::type>(R); } } } #endif
[ "sergey_shandar@e6e9985e-9100-0410-869a-e199dc1b6838" ]
[ [ [ 1, 139 ] ] ]
e96df11fa06493532bb87703253700355f65c246
e580637678397200ed79532cd34ef78983e9aacd
/Grapplon/Hook.h
d613d393cd240fadb1fba32b7cbf9ac705f905f5
[]
no_license
TimToxopeus/grapplon2
03520bf6b5feb2c6fcb0c5ddb135abe55d3f344b
60f0564bdeda7d4c6e1b97148b5d060ab84c8bd5
refs/heads/master
2021-01-10T21:11:59.438625
2008-07-13T06:49:06
2008-07-13T06:49:06
41,954,527
0
0
null
null
null
null
UTF-8
C++
false
false
1,971
h
#pragma once #include "BaseObject.h" #include <ode/ode.h> class CPlayerObject; class CChainLink; class CAnimatedTexture; enum HookState { CONNECTED, EJECTING, HOMING, GRASPING, SWINGING, THROWING, RETRACTING }; class CHook : public CBaseObject { private: CPlayerObject *m_pOwner; // The player std::vector<CChainLink*> chainLinks; // Collection of chain links std::vector<dJointID> chainJoints; // Collection of chain joints dJointID m_pLastChainJoint; // Last joint on the chain, used to connect to ship/hook dJointID m_oMiddleChainJoint; // Middle joint on the chain, used to half the length for swinging dJointID m_oHookGrabJoint; // Joint between hook and object dJointID m_oAngleJoint; // Joint between hook and ship, keeps hook at a fixed length bool m_bHasAutoAim; // Should throwing be auto-aimed? CAnimatedTexture* m_pFrozenImage; public: CHook( CPlayerObject *pOwner ); ~CHook(); HookState m_eHookState; // The current state of the hook PhysicsData *m_pGrabbedObject; // Grabbed object bool m_bIsRadialCorrected; // Lies the hook on a fixed radius? (in swinging mode) void SetVisibility(float alpha); bool IsDisconnected() { return m_eHookState != CONNECTED; } void Eject(); // Release the hook from the ship in order to grasp objects void Grasp(); // Grasp the object void SetGrasped(PhysicsData*); // Grasp the object in next update void Swing(); // Swing the object void Throw(bool playerDied = false); // Throw the object void Retract(bool playerDied = false); // Retract the hook back to the ship void AddChainForce(float x_force, float y_force); void adjustPos(Vector displacement); void HandlePlayerDied(); virtual void ApplyForceFront(); virtual void Update( float fTime ); virtual void SetAlpha( float fAlpha ); virtual void SetInvincibleTime( float fTime ); virtual void Render(); };
[ [ [ 1, 24 ], [ 26, 31 ], [ 37, 42 ], [ 44, 54 ] ], [ [ 25, 25 ], [ 32, 36 ], [ 43, 43 ] ] ]
a24166f5768c5248b65e0388179e8a17370b0aed
89b720ca3097d4e5ca81f78500eca5ee83c23fdb
/3dGame/engine/MyView.cpp
7c15361fd90e570bdce9c72a12f62e491ad075b1
[]
no_license
BackupTheBerlios/vrrace-svn
3a95635c63b08cfa0bb26ae295d35d2f7b4f14e4
078b0fa532d84586be3ccd0535776686ed19f126
refs/heads/master
2021-01-19T15:40:47.631561
2005-03-30T17:09:07
2005-03-30T17:09:07
40,748,970
0
0
null
null
null
null
UTF-8
C++
false
false
2,341
cpp
#include "MyView.h" MyView::MyView(void) { m_pPosition = new MyVertex(); m_pLocalPos = new MyVertex(); m_pViewPoint = new MyVertex(); m_pUpVector = new MyVertex(); m_pDirection = new MyVertex(); m_pMaster = NULL; } MyVertex* MyView::getLP() { return m_pLocalPos; } MyVertex* MyView::getPos() { return m_pPosition; } MyVertex* MyView::getVP() { return m_pViewPoint; } MyVertex* MyView::getUV() { return m_pUpVector; } MyVertex* MyView::getDirection() { return m_pDirection; } MyView::~MyView(void) { delete m_pPosition; delete m_pLocalPos; delete m_pViewPoint; delete m_pUpVector; delete m_pDirection; m_pPosition = NULL; m_pLocalPos = NULL; m_pViewPoint = NULL; m_pUpVector = NULL; m_pMaster = NULL; m_pDirection = NULL; } void MyView::setMaster(MyMasterPosition* givenMaster) { if (m_pMaster != NULL) { m_pMaster->m_bIsCam = false; } m_pMaster = givenMaster; m_pViewPoint->setPValues( m_pMaster->getAbsolutePosition()->getPX(), m_pMaster->getAbsolutePosition()->getPY(), m_pMaster->getAbsolutePosition()->getPZ()); m_pDirection->setPValues( m_pMaster->m_pDirection->getPX(), m_pMaster->m_pDirection->getPY(), m_pMaster->m_pDirection->getPZ()); m_pMaster->m_bIsCam = true; } MyMasterPosition* MyView::getMaster() { return m_pMaster; } void MyView::move() { // D3DXMATRIX tempTransLP; // D3DXMATRIX tempTransb; D3DXVECTOR4 pOut; if (m_pMaster != NULL) { /* D3DXMatrixTranslation( &tempTransLP, m_pLocalPos->getX(), m_pLocalPos->getY(), m_pLocalPos->getZ() ); D3DXMatrixMultiply( &tempTransb, &tempTransLP, m_pMaster->getRotationMatrix()); */ //D3DXVec3Transform(&pOut, &D3DXVECTOR3(0.0f, 0.0f, 0.0f), &tempTransb); D3DXVec3Transform(&pOut, &D3DXVECTOR3(m_pLocalPos->getX(), m_pLocalPos->getY(), m_pLocalPos->getZ()), m_pMaster->getRotationMatrix()); m_pPosition->setValues( m_pMaster->getAbsolutePosition()->getX() + pOut.x, m_pMaster->getAbsolutePosition()->getY() + pOut.y, m_pMaster->getAbsolutePosition()->getZ() + pOut.z); } } void MyView::rotate() { D3DXVECTOR4 pOut; D3DXVec3Transform(&pOut, &D3DXVECTOR3(0.0f, 1.0f, 0.0f), m_pMaster->getRotationMatrix()); m_pUpVector->setValues(pOut.x, pOut.y, pOut.z); }
[ "lxorg@b1670157-89ef-0310-b5f9-fe94102b68b0", "eisbaer@b1670157-89ef-0310-b5f9-fe94102b68b0" ]
[ [ [ 1, 8 ], [ 10, 32 ], [ 38, 43 ], [ 45, 50 ], [ 52, 64 ], [ 69, 112 ] ], [ [ 9, 9 ], [ 33, 37 ], [ 44, 44 ], [ 51, 51 ], [ 65, 68 ] ] ]
eacd40e3f31085c71bf03a3b5891ac2a5bad55ee
d37a1d5e50105d82427e8bf3642ba6f3e56e06b8
/DVR/HaohanITPlayer/private/DVR/StreamParser.cpp
ed6e7755a0884371a19ed32e933f7a1f79d10386
[]
no_license
080278/dvrmd-filter
176f4406dbb437fb5e67159b6cdce8c0f48fe0ca
b9461f3bf4a07b4c16e337e9c1d5683193498227
refs/heads/master
2016-09-10T21:14:44.669128
2011-10-17T09:18:09
2011-10-17T09:18:09
32,274,136
0
0
null
null
null
null
GB18030
C++
false
false
5,706
cpp
// StreamParser.cpp: implementation of the CStreamParser class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "StreamParser.h" #include <assert.h> ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CStreamParser::CStreamParser() { m_sk = NULL; m_DataLeft = 0; memset( m_StreamData, 0x00, sizeof(m_StreamData) ); memset( m_synTempBuf, 0x00, sizeof(m_synTempBuf) ); } CStreamParser::~CStreamParser() { } void CStreamParser::SetSocketPara( CComSocket* sk ) { m_sk = sk; } void CStreamParser::ClearBuf() { m_DataLeft = 0; } //每帧数据中增加了尾标识 //int CStreamParser::GetOneFrame( BYTE * dst , FRAME_HEADER * frameHeader ) //{ // int ret = GetOneFrameAndTail( dst , frameHeader ); // if( ret <= 0 ) // return ret; // DWORD *tail = (DWORD*)(dst + ret - 4); // while( *tail != SYN_TAIL ) // { // ret = GetOneFrameAndTail( dst , frameHeader ); // if( ret <= 0 ) // return ret; // tail = (DWORD*)(dst + ret - 4); // } // return ret - 4; // // GetOneFrame // 从内部数据区解析一帧(包括4个字节的尾部),如果失去同步,则自动进行同步处理 // //int CStreamParser::GetOneFrameAndTail( BYTE * dst , FRAME_HEADER * frameHeader ) //增加同步头,无同步尾 int CStreamParser::GetOneFrame( BYTE * dst , FRAME_HEADER * frameHeader ) { FRAME_HEADER * head ; BYTE *pBuf ; int ret ; int len = 0 ; int retval = 0; //先填充一个帧头长的数据 if( m_DataLeft < sizeof(FRAME_HEADER) ) { BYTE* pData = m_StreamData + m_DataLeft ; ret = ReadCacheData( pData , sizeof(FRAME_HEADER) - m_DataLeft ) ; if( ret <= 0 ) { //TRACE(_T("ReadCacheData return:%d \r\n",ret); return ret; } m_DataLeft += ret ; } head = ( FRAME_HEADER * ) m_StreamData ; pBuf = ( BYTE * )( head + 1 ) ; while(1) { if ( head->SyncFlag == SYN_HEADER ) { if( m_DataLeft < sizeof(FRAME_HEADER) )//缓冲中不够一个帧头的长度 { ReadCacheData( m_StreamData + m_DataLeft, sizeof(FRAME_HEADER) - m_DataLeft ); m_DataLeft = sizeof( FRAME_HEADER ); } len = htonl( head->FrameLength) ; ret = len ; memcpy( frameHeader, head, sizeof(FRAME_HEADER) ); m_DataLeft -= sizeof( FRAME_HEADER ); if( ret <= 0 ) { //TRACE(_T("帧长度异常为负数 ret = %d\r\n", ret ); return ret; } if( ret > (MAX_FRAME_LENGTH - 1024 * 1024) ) { //TRACE(_T("帧太长 ret = %d\r\n", ret ); return -1; } if( len <= m_DataLeft )//如果缓冲中有数据 { //最后的剩余数据 assert( len > 0 ); memcpy( dst , pBuf , len ) ; //Adjust the internal buffer m_DataLeft -= len ; pBuf += len ; assert( m_DataLeft >= 0 ); memmove( m_StreamData , pBuf , m_DataLeft ) ; if( ret <= 0 ) { //TRACE(_T("GetOneFrame::ret = %d\r\n", ret); } return ret ; } //data is not enough, we should read more if(m_DataLeft < 0) m_DataLeft = 0; assert( m_DataLeft >= 0 ); if( m_DataLeft > 0 ) memcpy( dst , pBuf , m_DataLeft ) ; len -= m_DataLeft ; dst += m_DataLeft ; m_DataLeft = 0 ; while( len > 0 )//不可能死循环 { //接下来从直接从Cache中读数据 retval = ReadCacheData( dst, len ); if( retval <= 0 ) return retval; len -= retval; dst += retval; } return ret; } //帧没有同步上,开始进行同步搜索 ret = MpegStreamSync( NULL ); if( ret <= 0 ) { //TRACE(_T("GetOneFrame::MpegStreamSync return 0\r\n"); return ret ; } head = ( FRAME_HEADER * ) m_StreamData ; pBuf = ( BYTE * )( head + 1 ) ; } } int CStreamParser::MpegStreamSync( __int64 * checked ) { BYTE *ptr ; FRAME_HEADER * head ; DWORD synced ; int count ; int ret = 0; //Copy to temp buffer if( m_DataLeft < 0 ) { //TRACE( "CStreamParser::MpegStreamSync m_Dataleft = %d\r\n\r\n", m_DataLeft ); return 0; } assert( m_DataLeft >= 0 ); memcpy( m_synTempBuf , m_StreamData , m_DataLeft ) ; head = ( FRAME_HEADER * ) m_StreamData ; head->SyncFlag = SYN_HEADER ; count = m_DataLeft ; //shift = 0xFFFFFFFF ; synced = 0 ; //DWORD SyncFlag = SYN_HEADER; while(1) { ptr = m_synTempBuf ; while( count > 4 ) { if( *(DWORD*)ptr == SYN_HEADER ) { assert( count >= 0 ); memcpy( m_StreamData , ptr , count ) ; m_DataLeft = count ; //int test = ( synced - 4 ); if( checked ) *checked = ( synced ) ; return 1 ; } ptr++; count--; synced++ ;//同步掉的字节数,即从当前字节直到找到SYN_HEADER字节扔掉的字节数 } //Copy剩下的四个字节 memcpy( m_synTempBuf, ptr, count ); ptr = m_synTempBuf + count; ret = ReadCacheData( ptr , MAX_STREAM_BUFFER_LEN - count ) ; //同步时尽量多读点 if( ret <= 0 ) return ret; count += ret; } //return 0 ; } int CStreamParser::ReadCacheData( BYTE* buf, int size ) { return 0; }
[ "[email protected]@27769579-7047-b306-4d6f-d36f87483bb3" ]
[ [ [ 1, 219 ] ] ]
193d9c514219af4695c1cc2463936d8106b1acee
021e8c48a44a56571c07dd9830d8bf86d68507cb
/build/vtk/vtkgl.h
3df5bb2abec1288ed8d1b597a6ceea338d51b8f7
[ "BSD-3-Clause" ]
permissive
Electrofire/QdevelopVset
c67ae1b30b0115d5c2045e3ca82199394081b733
f88344d0d89beeec46f5dc72c20c0fdd9ef4c0b5
refs/heads/master
2021-01-18T10:44:01.451029
2011-05-01T23:52:15
2011-05-01T23:52:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
839,145
h
// -*- c++ -*- //DO NOT EDIT! //This file was created with ../bin/vtkParseOGLExt //from /home/ganondorf/vsetgit/QdevelopVset/build/vtk/Rendering /home/ganondorf/vsetgit/QdevelopVset/build/vtk/Utilities/ParseOGLExt/headers/glext.h /home/ganondorf/vsetgit/QdevelopVset/build/vtk/Utilities/ParseOGLExt/headers/glxext.h /home/ganondorf/vsetgit/QdevelopVset/build/vtk/Utilities/ParseOGLExt/headers/wglext.h /* * Copyright 2003 Sandia Corporation. * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive * license for use of this work by or on behalf of the * U.S. Government. Redistribution and use in source and binary forms, with * or without modification, are permitted provided that this Notice and any * statement of authorship are reproduced on all copies. */ #ifndef __vtkgl_h #define __vtkgl_h #include "vtkToolkits.h" #include "vtkSystemIncludes.h" #include "vtkWindows.h" #include "vtkOpenGL.h" #include <stddef.h> #ifdef VTK_USE_X /* To prevent glx.h to include glxext.h from the OS */ #define GLX_GLXEXT_LEGACY #include <GL/glx.h> #endif class vtkOpenGLExtensionManager; #ifndef APIENTRY #define APIENTRY #define VTKGL_APIENTRY_DEFINED #endif #ifndef APIENTRYP #define APIENTRYP APIENTRY * #define VTKGL_APIENTRYP_DEFINED #endif /* Undefine all constants to avoid name conflicts. They should be defined */ /* with GL_, GLX_, or WGL_ preprended to them anyway, but sometimes you run */ /* into a header file that gets it wrong. */ #ifdef SAMPLE_BUFFERS_3DFX #undef SAMPLE_BUFFERS_3DFX #endif #ifdef SAMPLES_3DFX #undef SAMPLES_3DFX #endif #ifdef CONTEXT_DEBUG_BIT_ARB #undef CONTEXT_DEBUG_BIT_ARB #endif #ifdef CONTEXT_FORWARD_COMPATIBLE_BIT_ARB #undef CONTEXT_FORWARD_COMPATIBLE_BIT_ARB #endif #ifdef CONTEXT_MAJOR_VERSION_ARB #undef CONTEXT_MAJOR_VERSION_ARB #endif #ifdef CONTEXT_MINOR_VERSION_ARB #undef CONTEXT_MINOR_VERSION_ARB #endif #ifdef CONTEXT_FLAGS_ARB #undef CONTEXT_FLAGS_ARB #endif #ifdef CONTEXT_CORE_PROFILE_BIT_ARB #undef CONTEXT_CORE_PROFILE_BIT_ARB #endif #ifdef CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB #undef CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB #endif #ifdef CONTEXT_PROFILE_MASK_ARB #undef CONTEXT_PROFILE_MASK_ARB #endif #ifdef RGBA_FLOAT_TYPE_ARB #undef RGBA_FLOAT_TYPE_ARB #endif #ifdef RGBA_FLOAT_BIT_ARB #undef RGBA_FLOAT_BIT_ARB #endif #ifdef SAMPLE_BUFFERS_ARB #undef SAMPLE_BUFFERS_ARB #endif #ifdef SAMPLES_ARB #undef SAMPLES_ARB #endif #ifdef RGBA_UNSIGNED_FLOAT_TYPE_EXT #undef RGBA_UNSIGNED_FLOAT_TYPE_EXT #endif #ifdef RGBA_UNSIGNED_FLOAT_BIT_EXT #undef RGBA_UNSIGNED_FLOAT_BIT_EXT #endif #ifdef FRAMEBUFFER_SRGB_CAPABLE_EXT #undef FRAMEBUFFER_SRGB_CAPABLE_EXT #endif #ifdef SHARE_CONTEXT_EXT #undef SHARE_CONTEXT_EXT #endif #ifdef VISUAL_ID_EXT #undef VISUAL_ID_EXT #endif #ifdef SCREEN_EXT #undef SCREEN_EXT #endif #ifdef SWAP_INTERVAL_EXT #undef SWAP_INTERVAL_EXT #endif #ifdef MAX_SWAP_INTERVAL_EXT #undef MAX_SWAP_INTERVAL_EXT #endif #ifdef TEXTURE_1D_BIT_EXT #undef TEXTURE_1D_BIT_EXT #endif #ifdef TEXTURE_2D_BIT_EXT #undef TEXTURE_2D_BIT_EXT #endif #ifdef TEXTURE_RECTANGLE_BIT_EXT #undef TEXTURE_RECTANGLE_BIT_EXT #endif #ifdef BIND_TO_TEXTURE_RGB_EXT #undef BIND_TO_TEXTURE_RGB_EXT #endif #ifdef BIND_TO_TEXTURE_RGBA_EXT #undef BIND_TO_TEXTURE_RGBA_EXT #endif #ifdef BIND_TO_MIPMAP_TEXTURE_EXT #undef BIND_TO_MIPMAP_TEXTURE_EXT #endif #ifdef BIND_TO_TEXTURE_TARGETS_EXT #undef BIND_TO_TEXTURE_TARGETS_EXT #endif #ifdef Y_INVERTED_EXT #undef Y_INVERTED_EXT #endif #ifdef TEXTURE_FORMAT_EXT #undef TEXTURE_FORMAT_EXT #endif #ifdef TEXTURE_TARGET_EXT #undef TEXTURE_TARGET_EXT #endif #ifdef MIPMAP_TEXTURE_EXT #undef MIPMAP_TEXTURE_EXT #endif #ifdef TEXTURE_FORMAT_NONE_EXT #undef TEXTURE_FORMAT_NONE_EXT #endif #ifdef TEXTURE_FORMAT_RGB_EXT #undef TEXTURE_FORMAT_RGB_EXT #endif #ifdef TEXTURE_FORMAT_RGBA_EXT #undef TEXTURE_FORMAT_RGBA_EXT #endif #ifdef TEXTURE_1D_EXT #undef TEXTURE_1D_EXT #endif #ifdef TEXTURE_2D_EXT #undef TEXTURE_2D_EXT #endif #ifdef TEXTURE_RECTANGLE_EXT #undef TEXTURE_RECTANGLE_EXT #endif #ifdef FRONT_LEFT_EXT #undef FRONT_LEFT_EXT #endif #ifdef FRONT_RIGHT_EXT #undef FRONT_RIGHT_EXT #endif #ifdef BACK_LEFT_EXT #undef BACK_LEFT_EXT #endif #ifdef BACK_RIGHT_EXT #undef BACK_RIGHT_EXT #endif #ifdef FRONT_EXT #undef FRONT_EXT #endif #ifdef BACK_EXT #undef BACK_EXT #endif #ifdef AUX0_EXT #undef AUX0_EXT #endif #ifdef AUX1_EXT #undef AUX1_EXT #endif #ifdef AUX2_EXT #undef AUX2_EXT #endif #ifdef AUX3_EXT #undef AUX3_EXT #endif #ifdef AUX4_EXT #undef AUX4_EXT #endif #ifdef AUX5_EXT #undef AUX5_EXT #endif #ifdef AUX6_EXT #undef AUX6_EXT #endif #ifdef AUX7_EXT #undef AUX7_EXT #endif #ifdef AUX8_EXT #undef AUX8_EXT #endif #ifdef AUX9_EXT #undef AUX9_EXT #endif #ifdef X_VISUAL_TYPE_EXT #undef X_VISUAL_TYPE_EXT #endif #ifdef TRANSPARENT_TYPE_EXT #undef TRANSPARENT_TYPE_EXT #endif #ifdef TRANSPARENT_INDEX_VALUE_EXT #undef TRANSPARENT_INDEX_VALUE_EXT #endif #ifdef TRANSPARENT_RED_VALUE_EXT #undef TRANSPARENT_RED_VALUE_EXT #endif #ifdef TRANSPARENT_GREEN_VALUE_EXT #undef TRANSPARENT_GREEN_VALUE_EXT #endif #ifdef TRANSPARENT_BLUE_VALUE_EXT #undef TRANSPARENT_BLUE_VALUE_EXT #endif #ifdef TRANSPARENT_ALPHA_VALUE_EXT #undef TRANSPARENT_ALPHA_VALUE_EXT #endif #ifdef NONE_EXT #undef NONE_EXT #endif #ifdef TRUE_COLOR_EXT #undef TRUE_COLOR_EXT #endif #ifdef DIRECT_COLOR_EXT #undef DIRECT_COLOR_EXT #endif #ifdef PSEUDO_COLOR_EXT #undef PSEUDO_COLOR_EXT #endif #ifdef STATIC_COLOR_EXT #undef STATIC_COLOR_EXT #endif #ifdef GRAY_SCALE_EXT #undef GRAY_SCALE_EXT #endif #ifdef STATIC_GRAY_EXT #undef STATIC_GRAY_EXT #endif #ifdef TRANSPARENT_RGB_EXT #undef TRANSPARENT_RGB_EXT #endif #ifdef TRANSPARENT_INDEX_EXT #undef TRANSPARENT_INDEX_EXT #endif #ifdef VISUAL_CAVEAT_EXT #undef VISUAL_CAVEAT_EXT #endif #ifdef SLOW_VISUAL_EXT #undef SLOW_VISUAL_EXT #endif #ifdef NON_CONFORMANT_VISUAL_EXT #undef NON_CONFORMANT_VISUAL_EXT #endif #ifdef BUFFER_SWAP_COMPLETE_INTEL_MASK #undef BUFFER_SWAP_COMPLETE_INTEL_MASK #endif #ifdef EXCHANGE_COMPLETE_INTEL #undef EXCHANGE_COMPLETE_INTEL #endif #ifdef COPY_COMPLETE_INTEL #undef COPY_COMPLETE_INTEL #endif #ifdef FLIP_COMPLETE_INTEL #undef FLIP_COMPLETE_INTEL #endif #ifdef _3DFX_WINDOW_MODE_MESA #undef _3DFX_WINDOW_MODE_MESA #endif #ifdef _3DFX_FULLSCREEN_MODE_MESA #undef _3DFX_FULLSCREEN_MODE_MESA #endif #ifdef FLOAT_COMPONENTS_NV #undef FLOAT_COMPONENTS_NV #endif #ifdef NUM_VIDEO_SLOTS_NV #undef NUM_VIDEO_SLOTS_NV #endif #ifdef DEVICE_ID_NV #undef DEVICE_ID_NV #endif #ifdef UNIQUE_ID_NV #undef UNIQUE_ID_NV #endif #ifdef NUM_VIDEO_CAPTURE_SLOTS_NV #undef NUM_VIDEO_CAPTURE_SLOTS_NV #endif #ifdef VIDEO_OUT_COLOR_NV #undef VIDEO_OUT_COLOR_NV #endif #ifdef VIDEO_OUT_ALPHA_NV #undef VIDEO_OUT_ALPHA_NV #endif #ifdef VIDEO_OUT_DEPTH_NV #undef VIDEO_OUT_DEPTH_NV #endif #ifdef VIDEO_OUT_COLOR_AND_ALPHA_NV #undef VIDEO_OUT_COLOR_AND_ALPHA_NV #endif #ifdef VIDEO_OUT_COLOR_AND_DEPTH_NV #undef VIDEO_OUT_COLOR_AND_DEPTH_NV #endif #ifdef VIDEO_OUT_FRAME_NV #undef VIDEO_OUT_FRAME_NV #endif #ifdef VIDEO_OUT_FIELD_1_NV #undef VIDEO_OUT_FIELD_1_NV #endif #ifdef VIDEO_OUT_FIELD_2_NV #undef VIDEO_OUT_FIELD_2_NV #endif #ifdef VIDEO_OUT_STACKED_FIELDS_1_2_NV #undef VIDEO_OUT_STACKED_FIELDS_1_2_NV #endif #ifdef VIDEO_OUT_STACKED_FIELDS_2_1_NV #undef VIDEO_OUT_STACKED_FIELDS_2_1_NV #endif #ifdef SWAP_METHOD_OML #undef SWAP_METHOD_OML #endif #ifdef SWAP_EXCHANGE_OML #undef SWAP_EXCHANGE_OML #endif #ifdef SWAP_COPY_OML #undef SWAP_COPY_OML #endif #ifdef SWAP_UNDEFINED_OML #undef SWAP_UNDEFINED_OML #endif #ifdef BLENDED_RGBA_SGIS #undef BLENDED_RGBA_SGIS #endif #ifdef SAMPLE_BUFFERS_SGIS #undef SAMPLE_BUFFERS_SGIS #endif #ifdef SAMPLES_SGIS #undef SAMPLES_SGIS #endif #ifdef MULTISAMPLE_SUB_RECT_WIDTH_SGIS #undef MULTISAMPLE_SUB_RECT_WIDTH_SGIS #endif #ifdef MULTISAMPLE_SUB_RECT_HEIGHT_SGIS #undef MULTISAMPLE_SUB_RECT_HEIGHT_SGIS #endif #ifdef WINDOW_BIT_SGIX #undef WINDOW_BIT_SGIX #endif #ifdef PIXMAP_BIT_SGIX #undef PIXMAP_BIT_SGIX #endif #ifdef RGBA_BIT_SGIX #undef RGBA_BIT_SGIX #endif #ifdef COLOR_INDEX_BIT_SGIX #undef COLOR_INDEX_BIT_SGIX #endif #ifdef DRAWABLE_TYPE_SGIX #undef DRAWABLE_TYPE_SGIX #endif #ifdef RENDER_TYPE_SGIX #undef RENDER_TYPE_SGIX #endif #ifdef X_RENDERABLE_SGIX #undef X_RENDERABLE_SGIX #endif #ifdef FBCONFIG_ID_SGIX #undef FBCONFIG_ID_SGIX #endif #ifdef RGBA_TYPE_SGIX #undef RGBA_TYPE_SGIX #endif #ifdef COLOR_INDEX_TYPE_SGIX #undef COLOR_INDEX_TYPE_SGIX #endif #ifdef PBUFFER_BIT_SGIX #undef PBUFFER_BIT_SGIX #endif #ifdef BUFFER_CLOBBER_MASK_SGIX #undef BUFFER_CLOBBER_MASK_SGIX #endif #ifdef FRONT_LEFT_BUFFER_BIT_SGIX #undef FRONT_LEFT_BUFFER_BIT_SGIX #endif #ifdef FRONT_RIGHT_BUFFER_BIT_SGIX #undef FRONT_RIGHT_BUFFER_BIT_SGIX #endif #ifdef BACK_LEFT_BUFFER_BIT_SGIX #undef BACK_LEFT_BUFFER_BIT_SGIX #endif #ifdef BACK_RIGHT_BUFFER_BIT_SGIX #undef BACK_RIGHT_BUFFER_BIT_SGIX #endif #ifdef AUX_BUFFERS_BIT_SGIX #undef AUX_BUFFERS_BIT_SGIX #endif #ifdef DEPTH_BUFFER_BIT_SGIX #undef DEPTH_BUFFER_BIT_SGIX #endif #ifdef STENCIL_BUFFER_BIT_SGIX #undef STENCIL_BUFFER_BIT_SGIX #endif #ifdef ACCUM_BUFFER_BIT_SGIX #undef ACCUM_BUFFER_BIT_SGIX #endif #ifdef SAMPLE_BUFFERS_BIT_SGIX #undef SAMPLE_BUFFERS_BIT_SGIX #endif #ifdef MAX_PBUFFER_WIDTH_SGIX #undef MAX_PBUFFER_WIDTH_SGIX #endif #ifdef MAX_PBUFFER_HEIGHT_SGIX #undef MAX_PBUFFER_HEIGHT_SGIX #endif #ifdef MAX_PBUFFER_PIXELS_SGIX #undef MAX_PBUFFER_PIXELS_SGIX #endif #ifdef OPTIMAL_PBUFFER_WIDTH_SGIX #undef OPTIMAL_PBUFFER_WIDTH_SGIX #endif #ifdef OPTIMAL_PBUFFER_HEIGHT_SGIX #undef OPTIMAL_PBUFFER_HEIGHT_SGIX #endif #ifdef PRESERVED_CONTENTS_SGIX #undef PRESERVED_CONTENTS_SGIX #endif #ifdef LARGEST_PBUFFER_SGIX #undef LARGEST_PBUFFER_SGIX #endif #ifdef WIDTH_SGIX #undef WIDTH_SGIX #endif #ifdef HEIGHT_SGIX #undef HEIGHT_SGIX #endif #ifdef EVENT_MASK_SGIX #undef EVENT_MASK_SGIX #endif #ifdef DAMAGED_SGIX #undef DAMAGED_SGIX #endif #ifdef SAVED_SGIX #undef SAVED_SGIX #endif #ifdef WINDOW_SGIX #undef WINDOW_SGIX #endif #ifdef PBUFFER_SGIX #undef PBUFFER_SGIX #endif #ifdef SYNC_FRAME_SGIX #undef SYNC_FRAME_SGIX #endif #ifdef SYNC_SWAP_SGIX #undef SYNC_SWAP_SGIX #endif #ifdef VISUAL_SELECT_GROUP_SGIX #undef VISUAL_SELECT_GROUP_SGIX #endif #ifdef WINDOW_BIT #undef WINDOW_BIT #endif #ifdef PIXMAP_BIT #undef PIXMAP_BIT #endif #ifdef PBUFFER_BIT #undef PBUFFER_BIT #endif #ifdef RGBA_BIT #undef RGBA_BIT #endif #ifdef COLOR_INDEX_BIT #undef COLOR_INDEX_BIT #endif #ifdef PBUFFER_CLOBBER_MASK #undef PBUFFER_CLOBBER_MASK #endif #ifdef FRONT_LEFT_BUFFER_BIT #undef FRONT_LEFT_BUFFER_BIT #endif #ifdef FRONT_RIGHT_BUFFER_BIT #undef FRONT_RIGHT_BUFFER_BIT #endif #ifdef BACK_LEFT_BUFFER_BIT #undef BACK_LEFT_BUFFER_BIT #endif #ifdef BACK_RIGHT_BUFFER_BIT #undef BACK_RIGHT_BUFFER_BIT #endif #ifdef AUX_BUFFERS_BIT #undef AUX_BUFFERS_BIT #endif #ifdef DEPTH_BUFFER_BIT #undef DEPTH_BUFFER_BIT #endif #ifdef STENCIL_BUFFER_BIT #undef STENCIL_BUFFER_BIT #endif #ifdef ACCUM_BUFFER_BIT #undef ACCUM_BUFFER_BIT #endif #ifdef CONFIG_CAVEAT #undef CONFIG_CAVEAT #endif #ifdef X_VISUAL_TYPE #undef X_VISUAL_TYPE #endif #ifdef TRANSPARENT_TYPE #undef TRANSPARENT_TYPE #endif #ifdef TRANSPARENT_INDEX_VALUE #undef TRANSPARENT_INDEX_VALUE #endif #ifdef TRANSPARENT_RED_VALUE #undef TRANSPARENT_RED_VALUE #endif #ifdef TRANSPARENT_GREEN_VALUE #undef TRANSPARENT_GREEN_VALUE #endif #ifdef TRANSPARENT_BLUE_VALUE #undef TRANSPARENT_BLUE_VALUE #endif #ifdef TRANSPARENT_ALPHA_VALUE #undef TRANSPARENT_ALPHA_VALUE #endif #ifdef DONT_CARE #undef DONT_CARE #endif #ifdef NONE #undef NONE #endif #ifdef SLOW_CONFIG #undef SLOW_CONFIG #endif #ifdef TRUE_COLOR #undef TRUE_COLOR #endif #ifdef DIRECT_COLOR #undef DIRECT_COLOR #endif #ifdef PSEUDO_COLOR #undef PSEUDO_COLOR #endif #ifdef STATIC_COLOR #undef STATIC_COLOR #endif #ifdef GRAY_SCALE #undef GRAY_SCALE #endif #ifdef STATIC_GRAY #undef STATIC_GRAY #endif #ifdef TRANSPARENT_RGB #undef TRANSPARENT_RGB #endif #ifdef TRANSPARENT_INDEX #undef TRANSPARENT_INDEX #endif #ifdef VISUAL_ID #undef VISUAL_ID #endif #ifdef SCREEN #undef SCREEN #endif #ifdef NON_CONFORMANT_CONFIG #undef NON_CONFORMANT_CONFIG #endif #ifdef DRAWABLE_TYPE #undef DRAWABLE_TYPE #endif #ifdef RENDER_TYPE #undef RENDER_TYPE #endif #ifdef X_RENDERABLE #undef X_RENDERABLE #endif #ifdef FBCONFIG_ID #undef FBCONFIG_ID #endif #ifdef RGBA_TYPE #undef RGBA_TYPE #endif #ifdef COLOR_INDEX_TYPE #undef COLOR_INDEX_TYPE #endif #ifdef MAX_PBUFFER_WIDTH #undef MAX_PBUFFER_WIDTH #endif #ifdef MAX_PBUFFER_HEIGHT #undef MAX_PBUFFER_HEIGHT #endif #ifdef MAX_PBUFFER_PIXELS #undef MAX_PBUFFER_PIXELS #endif #ifdef PRESERVED_CONTENTS #undef PRESERVED_CONTENTS #endif #ifdef LARGEST_PBUFFER #undef LARGEST_PBUFFER #endif #ifdef WIDTH #undef WIDTH #endif #ifdef HEIGHT #undef HEIGHT #endif #ifdef EVENT_MASK #undef EVENT_MASK #endif #ifdef DAMAGED #undef DAMAGED #endif #ifdef SAVED #undef SAVED #endif #ifdef WINDOW #undef WINDOW #endif #ifdef PBUFFER #undef PBUFFER #endif #ifdef PBUFFER_HEIGHT #undef PBUFFER_HEIGHT #endif #ifdef PBUFFER_WIDTH #undef PBUFFER_WIDTH #endif #ifdef SAMPLE_BUFFERS #undef SAMPLE_BUFFERS #endif #ifdef SAMPLES #undef SAMPLES #endif #ifdef MULTISAMPLE_3DFX #undef MULTISAMPLE_3DFX #endif #ifdef SAMPLE_BUFFERS_3DFX #undef SAMPLE_BUFFERS_3DFX #endif #ifdef SAMPLES_3DFX #undef SAMPLES_3DFX #endif #ifdef MULTISAMPLE_BIT_3DFX #undef MULTISAMPLE_BIT_3DFX #endif #ifdef COMPRESSED_RGB_FXT1_3DFX #undef COMPRESSED_RGB_FXT1_3DFX #endif #ifdef COMPRESSED_RGBA_FXT1_3DFX #undef COMPRESSED_RGBA_FXT1_3DFX #endif #ifdef COUNTER_TYPE_AMD #undef COUNTER_TYPE_AMD #endif #ifdef COUNTER_RANGE_AMD #undef COUNTER_RANGE_AMD #endif #ifdef UNSIGNED_INT64_AMD #undef UNSIGNED_INT64_AMD #endif #ifdef PERCENTAGE_AMD #undef PERCENTAGE_AMD #endif #ifdef PERFMON_RESULT_AVAILABLE_AMD #undef PERFMON_RESULT_AVAILABLE_AMD #endif #ifdef PERFMON_RESULT_SIZE_AMD #undef PERFMON_RESULT_SIZE_AMD #endif #ifdef PERFMON_RESULT_AMD #undef PERFMON_RESULT_AMD #endif #ifdef SAMPLER_BUFFER_AMD #undef SAMPLER_BUFFER_AMD #endif #ifdef INT_SAMPLER_BUFFER_AMD #undef INT_SAMPLER_BUFFER_AMD #endif #ifdef UNSIGNED_INT_SAMPLER_BUFFER_AMD #undef UNSIGNED_INT_SAMPLER_BUFFER_AMD #endif #ifdef TESSELLATION_MODE_AMD #undef TESSELLATION_MODE_AMD #endif #ifdef TESSELLATION_FACTOR_AMD #undef TESSELLATION_FACTOR_AMD #endif #ifdef DISCRETE_AMD #undef DISCRETE_AMD #endif #ifdef CONTINUOUS_AMD #undef CONTINUOUS_AMD #endif #ifdef AUX_DEPTH_STENCIL_APPLE #undef AUX_DEPTH_STENCIL_APPLE #endif #ifdef UNPACK_CLIENT_STORAGE_APPLE #undef UNPACK_CLIENT_STORAGE_APPLE #endif #ifdef ELEMENT_ARRAY_APPLE #undef ELEMENT_ARRAY_APPLE #endif #ifdef ELEMENT_ARRAY_TYPE_APPLE #undef ELEMENT_ARRAY_TYPE_APPLE #endif #ifdef ELEMENT_ARRAY_POINTER_APPLE #undef ELEMENT_ARRAY_POINTER_APPLE #endif #ifdef DRAW_PIXELS_APPLE #undef DRAW_PIXELS_APPLE #endif #ifdef FENCE_APPLE #undef FENCE_APPLE #endif #ifdef HALF_APPLE #undef HALF_APPLE #endif #ifdef RGBA_FLOAT32_APPLE #undef RGBA_FLOAT32_APPLE #endif #ifdef RGB_FLOAT32_APPLE #undef RGB_FLOAT32_APPLE #endif #ifdef ALPHA_FLOAT32_APPLE #undef ALPHA_FLOAT32_APPLE #endif #ifdef INTENSITY_FLOAT32_APPLE #undef INTENSITY_FLOAT32_APPLE #endif #ifdef LUMINANCE_FLOAT32_APPLE #undef LUMINANCE_FLOAT32_APPLE #endif #ifdef LUMINANCE_ALPHA_FLOAT32_APPLE #undef LUMINANCE_ALPHA_FLOAT32_APPLE #endif #ifdef RGBA_FLOAT16_APPLE #undef RGBA_FLOAT16_APPLE #endif #ifdef RGB_FLOAT16_APPLE #undef RGB_FLOAT16_APPLE #endif #ifdef ALPHA_FLOAT16_APPLE #undef ALPHA_FLOAT16_APPLE #endif #ifdef INTENSITY_FLOAT16_APPLE #undef INTENSITY_FLOAT16_APPLE #endif #ifdef LUMINANCE_FLOAT16_APPLE #undef LUMINANCE_FLOAT16_APPLE #endif #ifdef LUMINANCE_ALPHA_FLOAT16_APPLE #undef LUMINANCE_ALPHA_FLOAT16_APPLE #endif #ifdef COLOR_FLOAT_APPLE #undef COLOR_FLOAT_APPLE #endif #ifdef BUFFER_SERIALIZED_MODIFY_APPLE #undef BUFFER_SERIALIZED_MODIFY_APPLE #endif #ifdef BUFFER_FLUSHING_UNMAP_APPLE #undef BUFFER_FLUSHING_UNMAP_APPLE #endif #ifdef BUFFER_OBJECT_APPLE #undef BUFFER_OBJECT_APPLE #endif #ifdef RELEASED_APPLE #undef RELEASED_APPLE #endif #ifdef VOLATILE_APPLE #undef VOLATILE_APPLE #endif #ifdef RETAINED_APPLE #undef RETAINED_APPLE #endif #ifdef UNDEFINED_APPLE #undef UNDEFINED_APPLE #endif #ifdef PURGEABLE_APPLE #undef PURGEABLE_APPLE #endif #ifdef RGB_422_APPLE #undef RGB_422_APPLE #endif #ifdef PACK_ROW_BYTES_APPLE #undef PACK_ROW_BYTES_APPLE #endif #ifdef UNPACK_ROW_BYTES_APPLE #undef UNPACK_ROW_BYTES_APPLE #endif #ifdef LIGHT_MODEL_SPECULAR_VECTOR_APPLE #undef LIGHT_MODEL_SPECULAR_VECTOR_APPLE #endif #ifdef TEXTURE_RANGE_LENGTH_APPLE #undef TEXTURE_RANGE_LENGTH_APPLE #endif #ifdef TEXTURE_RANGE_POINTER_APPLE #undef TEXTURE_RANGE_POINTER_APPLE #endif #ifdef TEXTURE_STORAGE_HINT_APPLE #undef TEXTURE_STORAGE_HINT_APPLE #endif #ifdef STORAGE_PRIVATE_APPLE #undef STORAGE_PRIVATE_APPLE #endif #ifdef TRANSFORM_HINT_APPLE #undef TRANSFORM_HINT_APPLE #endif #ifdef VERTEX_ARRAY_BINDING_APPLE #undef VERTEX_ARRAY_BINDING_APPLE #endif #ifdef VERTEX_ARRAY_RANGE_APPLE #undef VERTEX_ARRAY_RANGE_APPLE #endif #ifdef VERTEX_ARRAY_RANGE_LENGTH_APPLE #undef VERTEX_ARRAY_RANGE_LENGTH_APPLE #endif #ifdef VERTEX_ARRAY_STORAGE_HINT_APPLE #undef VERTEX_ARRAY_STORAGE_HINT_APPLE #endif #ifdef VERTEX_ARRAY_RANGE_POINTER_APPLE #undef VERTEX_ARRAY_RANGE_POINTER_APPLE #endif #ifdef STORAGE_CACHED_APPLE #undef STORAGE_CACHED_APPLE #endif #ifdef STORAGE_SHARED_APPLE #undef STORAGE_SHARED_APPLE #endif #ifdef VERTEX_ATTRIB_MAP1_APPLE #undef VERTEX_ATTRIB_MAP1_APPLE #endif #ifdef VERTEX_ATTRIB_MAP2_APPLE #undef VERTEX_ATTRIB_MAP2_APPLE #endif #ifdef VERTEX_ATTRIB_MAP1_SIZE_APPLE #undef VERTEX_ATTRIB_MAP1_SIZE_APPLE #endif #ifdef VERTEX_ATTRIB_MAP1_COEFF_APPLE #undef VERTEX_ATTRIB_MAP1_COEFF_APPLE #endif #ifdef VERTEX_ATTRIB_MAP1_ORDER_APPLE #undef VERTEX_ATTRIB_MAP1_ORDER_APPLE #endif #ifdef VERTEX_ATTRIB_MAP1_DOMAIN_APPLE #undef VERTEX_ATTRIB_MAP1_DOMAIN_APPLE #endif #ifdef VERTEX_ATTRIB_MAP2_SIZE_APPLE #undef VERTEX_ATTRIB_MAP2_SIZE_APPLE #endif #ifdef VERTEX_ATTRIB_MAP2_COEFF_APPLE #undef VERTEX_ATTRIB_MAP2_COEFF_APPLE #endif #ifdef VERTEX_ATTRIB_MAP2_ORDER_APPLE #undef VERTEX_ATTRIB_MAP2_ORDER_APPLE #endif #ifdef VERTEX_ATTRIB_MAP2_DOMAIN_APPLE #undef VERTEX_ATTRIB_MAP2_DOMAIN_APPLE #endif #ifdef YCBCR_422_APPLE #undef YCBCR_422_APPLE #endif #ifdef UNSIGNED_SHORT_8_8_APPLE #undef UNSIGNED_SHORT_8_8_APPLE #endif #ifdef UNSIGNED_SHORT_8_8_REV_APPLE #undef UNSIGNED_SHORT_8_8_REV_APPLE #endif #ifdef SRC1_COLOR #undef SRC1_COLOR #endif #ifdef ONE_MINUS_SRC1_COLOR #undef ONE_MINUS_SRC1_COLOR #endif #ifdef ONE_MINUS_SRC1_ALPHA #undef ONE_MINUS_SRC1_ALPHA #endif #ifdef MAX_DUAL_SOURCE_DRAW_BUFFERS #undef MAX_DUAL_SOURCE_DRAW_BUFFERS #endif #ifdef RGBA_FLOAT_MODE_ARB #undef RGBA_FLOAT_MODE_ARB #endif #ifdef CLAMP_VERTEX_COLOR_ARB #undef CLAMP_VERTEX_COLOR_ARB #endif #ifdef CLAMP_FRAGMENT_COLOR_ARB #undef CLAMP_FRAGMENT_COLOR_ARB #endif #ifdef CLAMP_READ_COLOR_ARB #undef CLAMP_READ_COLOR_ARB #endif #ifdef FIXED_ONLY_ARB #undef FIXED_ONLY_ARB #endif #ifdef COPY_READ_BUFFER #undef COPY_READ_BUFFER #endif #ifdef COPY_WRITE_BUFFER #undef COPY_WRITE_BUFFER #endif #ifdef DEPTH_COMPONENT32F #undef DEPTH_COMPONENT32F #endif #ifdef DEPTH32F_STENCIL8 #undef DEPTH32F_STENCIL8 #endif #ifdef FLOAT_32_UNSIGNED_INT_24_8_REV #undef FLOAT_32_UNSIGNED_INT_24_8_REV #endif #ifdef DEPTH_CLAMP #undef DEPTH_CLAMP #endif #ifdef DEPTH_COMPONENT16_ARB #undef DEPTH_COMPONENT16_ARB #endif #ifdef DEPTH_COMPONENT24_ARB #undef DEPTH_COMPONENT24_ARB #endif #ifdef DEPTH_COMPONENT32_ARB #undef DEPTH_COMPONENT32_ARB #endif #ifdef TEXTURE_DEPTH_SIZE_ARB #undef TEXTURE_DEPTH_SIZE_ARB #endif #ifdef DEPTH_TEXTURE_MODE_ARB #undef DEPTH_TEXTURE_MODE_ARB #endif #ifdef MAX_DRAW_BUFFERS_ARB #undef MAX_DRAW_BUFFERS_ARB #endif #ifdef DRAW_BUFFER0_ARB #undef DRAW_BUFFER0_ARB #endif #ifdef DRAW_BUFFER1_ARB #undef DRAW_BUFFER1_ARB #endif #ifdef DRAW_BUFFER2_ARB #undef DRAW_BUFFER2_ARB #endif #ifdef DRAW_BUFFER3_ARB #undef DRAW_BUFFER3_ARB #endif #ifdef DRAW_BUFFER4_ARB #undef DRAW_BUFFER4_ARB #endif #ifdef DRAW_BUFFER5_ARB #undef DRAW_BUFFER5_ARB #endif #ifdef DRAW_BUFFER6_ARB #undef DRAW_BUFFER6_ARB #endif #ifdef DRAW_BUFFER7_ARB #undef DRAW_BUFFER7_ARB #endif #ifdef DRAW_BUFFER8_ARB #undef DRAW_BUFFER8_ARB #endif #ifdef DRAW_BUFFER9_ARB #undef DRAW_BUFFER9_ARB #endif #ifdef DRAW_BUFFER10_ARB #undef DRAW_BUFFER10_ARB #endif #ifdef DRAW_BUFFER11_ARB #undef DRAW_BUFFER11_ARB #endif #ifdef DRAW_BUFFER12_ARB #undef DRAW_BUFFER12_ARB #endif #ifdef DRAW_BUFFER13_ARB #undef DRAW_BUFFER13_ARB #endif #ifdef DRAW_BUFFER14_ARB #undef DRAW_BUFFER14_ARB #endif #ifdef DRAW_BUFFER15_ARB #undef DRAW_BUFFER15_ARB #endif #ifdef DRAW_INDIRECT_BUFFER #undef DRAW_INDIRECT_BUFFER #endif #ifdef DRAW_INDIRECT_BUFFER_BINDING #undef DRAW_INDIRECT_BUFFER_BINDING #endif #ifdef FRAGMENT_PROGRAM_ARB #undef FRAGMENT_PROGRAM_ARB #endif #ifdef PROGRAM_ALU_INSTRUCTIONS_ARB #undef PROGRAM_ALU_INSTRUCTIONS_ARB #endif #ifdef PROGRAM_TEX_INSTRUCTIONS_ARB #undef PROGRAM_TEX_INSTRUCTIONS_ARB #endif #ifdef PROGRAM_TEX_INDIRECTIONS_ARB #undef PROGRAM_TEX_INDIRECTIONS_ARB #endif #ifdef PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB #undef PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB #endif #ifdef PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB #undef PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB #endif #ifdef PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB #undef PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB #endif #ifdef MAX_PROGRAM_ALU_INSTRUCTIONS_ARB #undef MAX_PROGRAM_ALU_INSTRUCTIONS_ARB #endif #ifdef MAX_PROGRAM_TEX_INSTRUCTIONS_ARB #undef MAX_PROGRAM_TEX_INSTRUCTIONS_ARB #endif #ifdef MAX_PROGRAM_TEX_INDIRECTIONS_ARB #undef MAX_PROGRAM_TEX_INDIRECTIONS_ARB #endif #ifdef MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB #undef MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB #endif #ifdef MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB #undef MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB #endif #ifdef MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB #undef MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB #endif #ifdef MAX_TEXTURE_COORDS_ARB #undef MAX_TEXTURE_COORDS_ARB #endif #ifdef MAX_TEXTURE_IMAGE_UNITS_ARB #undef MAX_TEXTURE_IMAGE_UNITS_ARB #endif #ifdef FRAGMENT_SHADER_ARB #undef FRAGMENT_SHADER_ARB #endif #ifdef MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB #undef MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB #endif #ifdef FRAGMENT_SHADER_DERIVATIVE_HINT_ARB #undef FRAGMENT_SHADER_DERIVATIVE_HINT_ARB #endif #ifdef INVALID_FRAMEBUFFER_OPERATION #undef INVALID_FRAMEBUFFER_OPERATION #endif #ifdef FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING #undef FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING #endif #ifdef FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE #undef FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE #endif #ifdef FRAMEBUFFER_ATTACHMENT_RED_SIZE #undef FRAMEBUFFER_ATTACHMENT_RED_SIZE #endif #ifdef FRAMEBUFFER_ATTACHMENT_GREEN_SIZE #undef FRAMEBUFFER_ATTACHMENT_GREEN_SIZE #endif #ifdef FRAMEBUFFER_ATTACHMENT_BLUE_SIZE #undef FRAMEBUFFER_ATTACHMENT_BLUE_SIZE #endif #ifdef FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE #undef FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE #endif #ifdef FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE #undef FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE #endif #ifdef FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE #undef FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE #endif #ifdef FRAMEBUFFER_DEFAULT #undef FRAMEBUFFER_DEFAULT #endif #ifdef FRAMEBUFFER_UNDEFINED #undef FRAMEBUFFER_UNDEFINED #endif #ifdef DEPTH_STENCIL_ATTACHMENT #undef DEPTH_STENCIL_ATTACHMENT #endif #ifdef MAX_RENDERBUFFER_SIZE #undef MAX_RENDERBUFFER_SIZE #endif #ifdef DEPTH_STENCIL #undef DEPTH_STENCIL #endif #ifdef UNSIGNED_INT_24_8 #undef UNSIGNED_INT_24_8 #endif #ifdef DEPTH24_STENCIL8 #undef DEPTH24_STENCIL8 #endif #ifdef TEXTURE_STENCIL_SIZE #undef TEXTURE_STENCIL_SIZE #endif #ifdef TEXTURE_RED_TYPE #undef TEXTURE_RED_TYPE #endif #ifdef TEXTURE_GREEN_TYPE #undef TEXTURE_GREEN_TYPE #endif #ifdef TEXTURE_BLUE_TYPE #undef TEXTURE_BLUE_TYPE #endif #ifdef TEXTURE_ALPHA_TYPE #undef TEXTURE_ALPHA_TYPE #endif #ifdef TEXTURE_DEPTH_TYPE #undef TEXTURE_DEPTH_TYPE #endif #ifdef UNSIGNED_NORMALIZED #undef UNSIGNED_NORMALIZED #endif #ifdef FRAMEBUFFER_BINDING #undef FRAMEBUFFER_BINDING #endif #ifdef DRAW_FRAMEBUFFER_BINDING #undef DRAW_FRAMEBUFFER_BINDING #endif #ifdef RENDERBUFFER_BINDING #undef RENDERBUFFER_BINDING #endif #ifdef READ_FRAMEBUFFER #undef READ_FRAMEBUFFER #endif #ifdef DRAW_FRAMEBUFFER #undef DRAW_FRAMEBUFFER #endif #ifdef READ_FRAMEBUFFER_BINDING #undef READ_FRAMEBUFFER_BINDING #endif #ifdef RENDERBUFFER_SAMPLES #undef RENDERBUFFER_SAMPLES #endif #ifdef FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE #undef FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE #endif #ifdef FRAMEBUFFER_ATTACHMENT_OBJECT_NAME #undef FRAMEBUFFER_ATTACHMENT_OBJECT_NAME #endif #ifdef FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL #undef FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL #endif #ifdef FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE #undef FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE #endif #ifdef FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER #undef FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER #endif #ifdef FRAMEBUFFER_COMPLETE #undef FRAMEBUFFER_COMPLETE #endif #ifdef FRAMEBUFFER_INCOMPLETE_ATTACHMENT #undef FRAMEBUFFER_INCOMPLETE_ATTACHMENT #endif #ifdef FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT #undef FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT #endif #ifdef FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER #undef FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER #endif #ifdef FRAMEBUFFER_INCOMPLETE_READ_BUFFER #undef FRAMEBUFFER_INCOMPLETE_READ_BUFFER #endif #ifdef FRAMEBUFFER_UNSUPPORTED #undef FRAMEBUFFER_UNSUPPORTED #endif #ifdef MAX_COLOR_ATTACHMENTS #undef MAX_COLOR_ATTACHMENTS #endif #ifdef COLOR_ATTACHMENT0 #undef COLOR_ATTACHMENT0 #endif #ifdef COLOR_ATTACHMENT1 #undef COLOR_ATTACHMENT1 #endif #ifdef COLOR_ATTACHMENT2 #undef COLOR_ATTACHMENT2 #endif #ifdef COLOR_ATTACHMENT3 #undef COLOR_ATTACHMENT3 #endif #ifdef COLOR_ATTACHMENT4 #undef COLOR_ATTACHMENT4 #endif #ifdef COLOR_ATTACHMENT5 #undef COLOR_ATTACHMENT5 #endif #ifdef COLOR_ATTACHMENT6 #undef COLOR_ATTACHMENT6 #endif #ifdef COLOR_ATTACHMENT7 #undef COLOR_ATTACHMENT7 #endif #ifdef COLOR_ATTACHMENT8 #undef COLOR_ATTACHMENT8 #endif #ifdef COLOR_ATTACHMENT9 #undef COLOR_ATTACHMENT9 #endif #ifdef COLOR_ATTACHMENT10 #undef COLOR_ATTACHMENT10 #endif #ifdef COLOR_ATTACHMENT11 #undef COLOR_ATTACHMENT11 #endif #ifdef COLOR_ATTACHMENT12 #undef COLOR_ATTACHMENT12 #endif #ifdef COLOR_ATTACHMENT13 #undef COLOR_ATTACHMENT13 #endif #ifdef COLOR_ATTACHMENT14 #undef COLOR_ATTACHMENT14 #endif #ifdef COLOR_ATTACHMENT15 #undef COLOR_ATTACHMENT15 #endif #ifdef DEPTH_ATTACHMENT #undef DEPTH_ATTACHMENT #endif #ifdef STENCIL_ATTACHMENT #undef STENCIL_ATTACHMENT #endif #ifdef FRAMEBUFFER #undef FRAMEBUFFER #endif #ifdef RENDERBUFFER #undef RENDERBUFFER #endif #ifdef RENDERBUFFER_WIDTH #undef RENDERBUFFER_WIDTH #endif #ifdef RENDERBUFFER_HEIGHT #undef RENDERBUFFER_HEIGHT #endif #ifdef RENDERBUFFER_INTERNAL_FORMAT #undef RENDERBUFFER_INTERNAL_FORMAT #endif #ifdef STENCIL_INDEX1 #undef STENCIL_INDEX1 #endif #ifdef STENCIL_INDEX4 #undef STENCIL_INDEX4 #endif #ifdef STENCIL_INDEX8 #undef STENCIL_INDEX8 #endif #ifdef STENCIL_INDEX16 #undef STENCIL_INDEX16 #endif #ifdef RENDERBUFFER_RED_SIZE #undef RENDERBUFFER_RED_SIZE #endif #ifdef RENDERBUFFER_GREEN_SIZE #undef RENDERBUFFER_GREEN_SIZE #endif #ifdef RENDERBUFFER_BLUE_SIZE #undef RENDERBUFFER_BLUE_SIZE #endif #ifdef RENDERBUFFER_ALPHA_SIZE #undef RENDERBUFFER_ALPHA_SIZE #endif #ifdef RENDERBUFFER_DEPTH_SIZE #undef RENDERBUFFER_DEPTH_SIZE #endif #ifdef RENDERBUFFER_STENCIL_SIZE #undef RENDERBUFFER_STENCIL_SIZE #endif #ifdef FRAMEBUFFER_INCOMPLETE_MULTISAMPLE #undef FRAMEBUFFER_INCOMPLETE_MULTISAMPLE #endif #ifdef MAX_SAMPLES #undef MAX_SAMPLES #endif #ifdef INDEX #undef INDEX #endif #ifdef TEXTURE_LUMINANCE_TYPE #undef TEXTURE_LUMINANCE_TYPE #endif #ifdef TEXTURE_INTENSITY_TYPE #undef TEXTURE_INTENSITY_TYPE #endif #ifdef FRAMEBUFFER_SRGB #undef FRAMEBUFFER_SRGB #endif #ifdef LINES_ADJACENCY_ARB #undef LINES_ADJACENCY_ARB #endif #ifdef LINE_STRIP_ADJACENCY_ARB #undef LINE_STRIP_ADJACENCY_ARB #endif #ifdef TRIANGLES_ADJACENCY_ARB #undef TRIANGLES_ADJACENCY_ARB #endif #ifdef TRIANGLE_STRIP_ADJACENCY_ARB #undef TRIANGLE_STRIP_ADJACENCY_ARB #endif #ifdef PROGRAM_POINT_SIZE_ARB #undef PROGRAM_POINT_SIZE_ARB #endif #ifdef MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB #undef MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB #endif #ifdef FRAMEBUFFER_ATTACHMENT_LAYERED_ARB #undef FRAMEBUFFER_ATTACHMENT_LAYERED_ARB #endif #ifdef FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB #undef FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB #endif #ifdef FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB #undef FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB #endif #ifdef GEOMETRY_SHADER_ARB #undef GEOMETRY_SHADER_ARB #endif #ifdef GEOMETRY_VERTICES_OUT_ARB #undef GEOMETRY_VERTICES_OUT_ARB #endif #ifdef GEOMETRY_INPUT_TYPE_ARB #undef GEOMETRY_INPUT_TYPE_ARB #endif #ifdef GEOMETRY_OUTPUT_TYPE_ARB #undef GEOMETRY_OUTPUT_TYPE_ARB #endif #ifdef MAX_GEOMETRY_VARYING_COMPONENTS_ARB #undef MAX_GEOMETRY_VARYING_COMPONENTS_ARB #endif #ifdef MAX_VERTEX_VARYING_COMPONENTS_ARB #undef MAX_VERTEX_VARYING_COMPONENTS_ARB #endif #ifdef MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB #undef MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB #endif #ifdef MAX_GEOMETRY_OUTPUT_VERTICES_ARB #undef MAX_GEOMETRY_OUTPUT_VERTICES_ARB #endif #ifdef MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB #undef MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB #endif #ifdef GEOMETRY_SHADER_INVOCATIONS #undef GEOMETRY_SHADER_INVOCATIONS #endif #ifdef MAX_GEOMETRY_SHADER_INVOCATIONS #undef MAX_GEOMETRY_SHADER_INVOCATIONS #endif #ifdef MIN_FRAGMENT_INTERPOLATION_OFFSET #undef MIN_FRAGMENT_INTERPOLATION_OFFSET #endif #ifdef MAX_FRAGMENT_INTERPOLATION_OFFSET #undef MAX_FRAGMENT_INTERPOLATION_OFFSET #endif #ifdef FRAGMENT_INTERPOLATION_OFFSET_BITS #undef FRAGMENT_INTERPOLATION_OFFSET_BITS #endif #ifdef MAX_VERTEX_STREAMS #undef MAX_VERTEX_STREAMS #endif #ifdef DOUBLE_VEC2 #undef DOUBLE_VEC2 #endif #ifdef DOUBLE_VEC3 #undef DOUBLE_VEC3 #endif #ifdef DOUBLE_VEC4 #undef DOUBLE_VEC4 #endif #ifdef DOUBLE_MAT2 #undef DOUBLE_MAT2 #endif #ifdef DOUBLE_MAT3 #undef DOUBLE_MAT3 #endif #ifdef DOUBLE_MAT4 #undef DOUBLE_MAT4 #endif #ifdef DOUBLE_MAT2x3 #undef DOUBLE_MAT2x3 #endif #ifdef DOUBLE_MAT2x4 #undef DOUBLE_MAT2x4 #endif #ifdef DOUBLE_MAT3x2 #undef DOUBLE_MAT3x2 #endif #ifdef DOUBLE_MAT3x4 #undef DOUBLE_MAT3x4 #endif #ifdef DOUBLE_MAT4x2 #undef DOUBLE_MAT4x2 #endif #ifdef DOUBLE_MAT4x3 #undef DOUBLE_MAT4x3 #endif #ifdef HALF_FLOAT_ARB #undef HALF_FLOAT_ARB #endif #ifdef HALF_FLOAT #undef HALF_FLOAT #endif #ifdef CONSTANT_COLOR #undef CONSTANT_COLOR #endif #ifdef ONE_MINUS_CONSTANT_COLOR #undef ONE_MINUS_CONSTANT_COLOR #endif #ifdef CONSTANT_ALPHA #undef CONSTANT_ALPHA #endif #ifdef ONE_MINUS_CONSTANT_ALPHA #undef ONE_MINUS_CONSTANT_ALPHA #endif #ifdef BLEND_COLOR #undef BLEND_COLOR #endif #ifdef FUNC_ADD #undef FUNC_ADD #endif #ifdef MIN #undef MIN #endif #ifdef MAX #undef MAX #endif #ifdef BLEND_EQUATION #undef BLEND_EQUATION #endif #ifdef FUNC_SUBTRACT #undef FUNC_SUBTRACT #endif #ifdef FUNC_REVERSE_SUBTRACT #undef FUNC_REVERSE_SUBTRACT #endif #ifdef CONVOLUTION_1D #undef CONVOLUTION_1D #endif #ifdef CONVOLUTION_2D #undef CONVOLUTION_2D #endif #ifdef SEPARABLE_2D #undef SEPARABLE_2D #endif #ifdef CONVOLUTION_BORDER_MODE #undef CONVOLUTION_BORDER_MODE #endif #ifdef CONVOLUTION_FILTER_SCALE #undef CONVOLUTION_FILTER_SCALE #endif #ifdef CONVOLUTION_FILTER_BIAS #undef CONVOLUTION_FILTER_BIAS #endif #ifdef REDUCE #undef REDUCE #endif #ifdef CONVOLUTION_FORMAT #undef CONVOLUTION_FORMAT #endif #ifdef CONVOLUTION_WIDTH #undef CONVOLUTION_WIDTH #endif #ifdef CONVOLUTION_HEIGHT #undef CONVOLUTION_HEIGHT #endif #ifdef MAX_CONVOLUTION_WIDTH #undef MAX_CONVOLUTION_WIDTH #endif #ifdef MAX_CONVOLUTION_HEIGHT #undef MAX_CONVOLUTION_HEIGHT #endif #ifdef POST_CONVOLUTION_RED_SCALE #undef POST_CONVOLUTION_RED_SCALE #endif #ifdef POST_CONVOLUTION_GREEN_SCALE #undef POST_CONVOLUTION_GREEN_SCALE #endif #ifdef POST_CONVOLUTION_BLUE_SCALE #undef POST_CONVOLUTION_BLUE_SCALE #endif #ifdef POST_CONVOLUTION_ALPHA_SCALE #undef POST_CONVOLUTION_ALPHA_SCALE #endif #ifdef POST_CONVOLUTION_RED_BIAS #undef POST_CONVOLUTION_RED_BIAS #endif #ifdef POST_CONVOLUTION_GREEN_BIAS #undef POST_CONVOLUTION_GREEN_BIAS #endif #ifdef POST_CONVOLUTION_BLUE_BIAS #undef POST_CONVOLUTION_BLUE_BIAS #endif #ifdef POST_CONVOLUTION_ALPHA_BIAS #undef POST_CONVOLUTION_ALPHA_BIAS #endif #ifdef HISTOGRAM #undef HISTOGRAM #endif #ifdef PROXY_HISTOGRAM #undef PROXY_HISTOGRAM #endif #ifdef HISTOGRAM_WIDTH #undef HISTOGRAM_WIDTH #endif #ifdef HISTOGRAM_FORMAT #undef HISTOGRAM_FORMAT #endif #ifdef HISTOGRAM_RED_SIZE #undef HISTOGRAM_RED_SIZE #endif #ifdef HISTOGRAM_GREEN_SIZE #undef HISTOGRAM_GREEN_SIZE #endif #ifdef HISTOGRAM_BLUE_SIZE #undef HISTOGRAM_BLUE_SIZE #endif #ifdef HISTOGRAM_ALPHA_SIZE #undef HISTOGRAM_ALPHA_SIZE #endif #ifdef HISTOGRAM_LUMINANCE_SIZE #undef HISTOGRAM_LUMINANCE_SIZE #endif #ifdef HISTOGRAM_SINK #undef HISTOGRAM_SINK #endif #ifdef MINMAX #undef MINMAX #endif #ifdef MINMAX_FORMAT #undef MINMAX_FORMAT #endif #ifdef MINMAX_SINK #undef MINMAX_SINK #endif #ifdef TABLE_TOO_LARGE #undef TABLE_TOO_LARGE #endif #ifdef COLOR_MATRIX #undef COLOR_MATRIX #endif #ifdef COLOR_MATRIX_STACK_DEPTH #undef COLOR_MATRIX_STACK_DEPTH #endif #ifdef MAX_COLOR_MATRIX_STACK_DEPTH #undef MAX_COLOR_MATRIX_STACK_DEPTH #endif #ifdef POST_COLOR_MATRIX_RED_SCALE #undef POST_COLOR_MATRIX_RED_SCALE #endif #ifdef POST_COLOR_MATRIX_GREEN_SCALE #undef POST_COLOR_MATRIX_GREEN_SCALE #endif #ifdef POST_COLOR_MATRIX_BLUE_SCALE #undef POST_COLOR_MATRIX_BLUE_SCALE #endif #ifdef POST_COLOR_MATRIX_ALPHA_SCALE #undef POST_COLOR_MATRIX_ALPHA_SCALE #endif #ifdef POST_COLOR_MATRIX_RED_BIAS #undef POST_COLOR_MATRIX_RED_BIAS #endif #ifdef POST_COLOR_MATRIX_GREEN_BIAS #undef POST_COLOR_MATRIX_GREEN_BIAS #endif #ifdef POST_COLOR_MATRIX_BLUE_BIAS #undef POST_COLOR_MATRIX_BLUE_BIAS #endif #ifdef POST_COLOR_MATRIX_ALPHA_BIAS #undef POST_COLOR_MATRIX_ALPHA_BIAS #endif #ifdef COLOR_TABLE #undef COLOR_TABLE #endif #ifdef POST_CONVOLUTION_COLOR_TABLE #undef POST_CONVOLUTION_COLOR_TABLE #endif #ifdef POST_COLOR_MATRIX_COLOR_TABLE #undef POST_COLOR_MATRIX_COLOR_TABLE #endif #ifdef PROXY_COLOR_TABLE #undef PROXY_COLOR_TABLE #endif #ifdef PROXY_POST_CONVOLUTION_COLOR_TABLE #undef PROXY_POST_CONVOLUTION_COLOR_TABLE #endif #ifdef PROXY_POST_COLOR_MATRIX_COLOR_TABLE #undef PROXY_POST_COLOR_MATRIX_COLOR_TABLE #endif #ifdef COLOR_TABLE_SCALE #undef COLOR_TABLE_SCALE #endif #ifdef COLOR_TABLE_BIAS #undef COLOR_TABLE_BIAS #endif #ifdef COLOR_TABLE_FORMAT #undef COLOR_TABLE_FORMAT #endif #ifdef COLOR_TABLE_WIDTH #undef COLOR_TABLE_WIDTH #endif #ifdef COLOR_TABLE_RED_SIZE #undef COLOR_TABLE_RED_SIZE #endif #ifdef COLOR_TABLE_GREEN_SIZE #undef COLOR_TABLE_GREEN_SIZE #endif #ifdef COLOR_TABLE_BLUE_SIZE #undef COLOR_TABLE_BLUE_SIZE #endif #ifdef COLOR_TABLE_ALPHA_SIZE #undef COLOR_TABLE_ALPHA_SIZE #endif #ifdef COLOR_TABLE_LUMINANCE_SIZE #undef COLOR_TABLE_LUMINANCE_SIZE #endif #ifdef COLOR_TABLE_INTENSITY_SIZE #undef COLOR_TABLE_INTENSITY_SIZE #endif #ifdef CONSTANT_BORDER #undef CONSTANT_BORDER #endif #ifdef REPLICATE_BORDER #undef REPLICATE_BORDER #endif #ifdef CONVOLUTION_BORDER_COLOR #undef CONVOLUTION_BORDER_COLOR #endif #ifdef VERTEX_ATTRIB_ARRAY_DIVISOR_ARB #undef VERTEX_ATTRIB_ARRAY_DIVISOR_ARB #endif #ifdef MAP_READ_BIT #undef MAP_READ_BIT #endif #ifdef MAP_WRITE_BIT #undef MAP_WRITE_BIT #endif #ifdef MAP_INVALIDATE_RANGE_BIT #undef MAP_INVALIDATE_RANGE_BIT #endif #ifdef MAP_INVALIDATE_BUFFER_BIT #undef MAP_INVALIDATE_BUFFER_BIT #endif #ifdef MAP_FLUSH_EXPLICIT_BIT #undef MAP_FLUSH_EXPLICIT_BIT #endif #ifdef MAP_UNSYNCHRONIZED_BIT #undef MAP_UNSYNCHRONIZED_BIT #endif #ifdef MATRIX_PALETTE_ARB #undef MATRIX_PALETTE_ARB #endif #ifdef MAX_MATRIX_PALETTE_STACK_DEPTH_ARB #undef MAX_MATRIX_PALETTE_STACK_DEPTH_ARB #endif #ifdef MAX_PALETTE_MATRICES_ARB #undef MAX_PALETTE_MATRICES_ARB #endif #ifdef CURRENT_PALETTE_MATRIX_ARB #undef CURRENT_PALETTE_MATRIX_ARB #endif #ifdef MATRIX_INDEX_ARRAY_ARB #undef MATRIX_INDEX_ARRAY_ARB #endif #ifdef CURRENT_MATRIX_INDEX_ARB #undef CURRENT_MATRIX_INDEX_ARB #endif #ifdef MATRIX_INDEX_ARRAY_SIZE_ARB #undef MATRIX_INDEX_ARRAY_SIZE_ARB #endif #ifdef MATRIX_INDEX_ARRAY_TYPE_ARB #undef MATRIX_INDEX_ARRAY_TYPE_ARB #endif #ifdef MATRIX_INDEX_ARRAY_STRIDE_ARB #undef MATRIX_INDEX_ARRAY_STRIDE_ARB #endif #ifdef MATRIX_INDEX_ARRAY_POINTER_ARB #undef MATRIX_INDEX_ARRAY_POINTER_ARB #endif #ifdef MULTISAMPLE_ARB #undef MULTISAMPLE_ARB #endif #ifdef SAMPLE_ALPHA_TO_COVERAGE_ARB #undef SAMPLE_ALPHA_TO_COVERAGE_ARB #endif #ifdef SAMPLE_ALPHA_TO_ONE_ARB #undef SAMPLE_ALPHA_TO_ONE_ARB #endif #ifdef SAMPLE_COVERAGE_ARB #undef SAMPLE_COVERAGE_ARB #endif #ifdef SAMPLE_BUFFERS_ARB #undef SAMPLE_BUFFERS_ARB #endif #ifdef SAMPLES_ARB #undef SAMPLES_ARB #endif #ifdef SAMPLE_COVERAGE_VALUE_ARB #undef SAMPLE_COVERAGE_VALUE_ARB #endif #ifdef SAMPLE_COVERAGE_INVERT_ARB #undef SAMPLE_COVERAGE_INVERT_ARB #endif #ifdef MULTISAMPLE_BIT_ARB #undef MULTISAMPLE_BIT_ARB #endif #ifdef TEXTURE0_ARB #undef TEXTURE0_ARB #endif #ifdef TEXTURE1_ARB #undef TEXTURE1_ARB #endif #ifdef TEXTURE2_ARB #undef TEXTURE2_ARB #endif #ifdef TEXTURE3_ARB #undef TEXTURE3_ARB #endif #ifdef TEXTURE4_ARB #undef TEXTURE4_ARB #endif #ifdef TEXTURE5_ARB #undef TEXTURE5_ARB #endif #ifdef TEXTURE6_ARB #undef TEXTURE6_ARB #endif #ifdef TEXTURE7_ARB #undef TEXTURE7_ARB #endif #ifdef TEXTURE8_ARB #undef TEXTURE8_ARB #endif #ifdef TEXTURE9_ARB #undef TEXTURE9_ARB #endif #ifdef TEXTURE10_ARB #undef TEXTURE10_ARB #endif #ifdef TEXTURE11_ARB #undef TEXTURE11_ARB #endif #ifdef TEXTURE12_ARB #undef TEXTURE12_ARB #endif #ifdef TEXTURE13_ARB #undef TEXTURE13_ARB #endif #ifdef TEXTURE14_ARB #undef TEXTURE14_ARB #endif #ifdef TEXTURE15_ARB #undef TEXTURE15_ARB #endif #ifdef TEXTURE16_ARB #undef TEXTURE16_ARB #endif #ifdef TEXTURE17_ARB #undef TEXTURE17_ARB #endif #ifdef TEXTURE18_ARB #undef TEXTURE18_ARB #endif #ifdef TEXTURE19_ARB #undef TEXTURE19_ARB #endif #ifdef TEXTURE20_ARB #undef TEXTURE20_ARB #endif #ifdef TEXTURE21_ARB #undef TEXTURE21_ARB #endif #ifdef TEXTURE22_ARB #undef TEXTURE22_ARB #endif #ifdef TEXTURE23_ARB #undef TEXTURE23_ARB #endif #ifdef TEXTURE24_ARB #undef TEXTURE24_ARB #endif #ifdef TEXTURE25_ARB #undef TEXTURE25_ARB #endif #ifdef TEXTURE26_ARB #undef TEXTURE26_ARB #endif #ifdef TEXTURE27_ARB #undef TEXTURE27_ARB #endif #ifdef TEXTURE28_ARB #undef TEXTURE28_ARB #endif #ifdef TEXTURE29_ARB #undef TEXTURE29_ARB #endif #ifdef TEXTURE30_ARB #undef TEXTURE30_ARB #endif #ifdef TEXTURE31_ARB #undef TEXTURE31_ARB #endif #ifdef ACTIVE_TEXTURE_ARB #undef ACTIVE_TEXTURE_ARB #endif #ifdef CLIENT_ACTIVE_TEXTURE_ARB #undef CLIENT_ACTIVE_TEXTURE_ARB #endif #ifdef MAX_TEXTURE_UNITS_ARB #undef MAX_TEXTURE_UNITS_ARB #endif #ifdef QUERY_COUNTER_BITS_ARB #undef QUERY_COUNTER_BITS_ARB #endif #ifdef CURRENT_QUERY_ARB #undef CURRENT_QUERY_ARB #endif #ifdef QUERY_RESULT_ARB #undef QUERY_RESULT_ARB #endif #ifdef QUERY_RESULT_AVAILABLE_ARB #undef QUERY_RESULT_AVAILABLE_ARB #endif #ifdef SAMPLES_PASSED_ARB #undef SAMPLES_PASSED_ARB #endif #ifdef ANY_SAMPLES_PASSED #undef ANY_SAMPLES_PASSED #endif #ifdef PIXEL_PACK_BUFFER_ARB #undef PIXEL_PACK_BUFFER_ARB #endif #ifdef PIXEL_UNPACK_BUFFER_ARB #undef PIXEL_UNPACK_BUFFER_ARB #endif #ifdef PIXEL_PACK_BUFFER_BINDING_ARB #undef PIXEL_PACK_BUFFER_BINDING_ARB #endif #ifdef PIXEL_UNPACK_BUFFER_BINDING_ARB #undef PIXEL_UNPACK_BUFFER_BINDING_ARB #endif #ifdef POINT_SIZE_MIN_ARB #undef POINT_SIZE_MIN_ARB #endif #ifdef POINT_SIZE_MAX_ARB #undef POINT_SIZE_MAX_ARB #endif #ifdef POINT_FADE_THRESHOLD_SIZE_ARB #undef POINT_FADE_THRESHOLD_SIZE_ARB #endif #ifdef POINT_DISTANCE_ATTENUATION_ARB #undef POINT_DISTANCE_ATTENUATION_ARB #endif #ifdef POINT_SPRITE_ARB #undef POINT_SPRITE_ARB #endif #ifdef COORD_REPLACE_ARB #undef COORD_REPLACE_ARB #endif #ifdef QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION #undef QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION #endif #ifdef FIRST_VERTEX_CONVENTION #undef FIRST_VERTEX_CONVENTION #endif #ifdef LAST_VERTEX_CONVENTION #undef LAST_VERTEX_CONVENTION #endif #ifdef PROVOKING_VERTEX #undef PROVOKING_VERTEX #endif #ifdef SAMPLE_SHADING #undef SAMPLE_SHADING #endif #ifdef MIN_SAMPLE_SHADING_VALUE #undef MIN_SAMPLE_SHADING_VALUE #endif #ifdef SAMPLER_BINDING #undef SAMPLER_BINDING #endif #ifdef TEXTURE_CUBE_MAP_SEAMLESS #undef TEXTURE_CUBE_MAP_SEAMLESS #endif #ifdef PROGRAM_OBJECT_ARB #undef PROGRAM_OBJECT_ARB #endif #ifdef SHADER_OBJECT_ARB #undef SHADER_OBJECT_ARB #endif #ifdef OBJECT_TYPE_ARB #undef OBJECT_TYPE_ARB #endif #ifdef OBJECT_SUBTYPE_ARB #undef OBJECT_SUBTYPE_ARB #endif #ifdef FLOAT_VEC2_ARB #undef FLOAT_VEC2_ARB #endif #ifdef FLOAT_VEC3_ARB #undef FLOAT_VEC3_ARB #endif #ifdef FLOAT_VEC4_ARB #undef FLOAT_VEC4_ARB #endif #ifdef INT_VEC2_ARB #undef INT_VEC2_ARB #endif #ifdef INT_VEC3_ARB #undef INT_VEC3_ARB #endif #ifdef INT_VEC4_ARB #undef INT_VEC4_ARB #endif #ifdef BOOL_ARB #undef BOOL_ARB #endif #ifdef BOOL_VEC2_ARB #undef BOOL_VEC2_ARB #endif #ifdef BOOL_VEC3_ARB #undef BOOL_VEC3_ARB #endif #ifdef BOOL_VEC4_ARB #undef BOOL_VEC4_ARB #endif #ifdef FLOAT_MAT2_ARB #undef FLOAT_MAT2_ARB #endif #ifdef FLOAT_MAT3_ARB #undef FLOAT_MAT3_ARB #endif #ifdef FLOAT_MAT4_ARB #undef FLOAT_MAT4_ARB #endif #ifdef SAMPLER_1D_ARB #undef SAMPLER_1D_ARB #endif #ifdef SAMPLER_2D_ARB #undef SAMPLER_2D_ARB #endif #ifdef SAMPLER_3D_ARB #undef SAMPLER_3D_ARB #endif #ifdef SAMPLER_CUBE_ARB #undef SAMPLER_CUBE_ARB #endif #ifdef SAMPLER_1D_SHADOW_ARB #undef SAMPLER_1D_SHADOW_ARB #endif #ifdef SAMPLER_2D_SHADOW_ARB #undef SAMPLER_2D_SHADOW_ARB #endif #ifdef SAMPLER_2D_RECT_ARB #undef SAMPLER_2D_RECT_ARB #endif #ifdef SAMPLER_2D_RECT_SHADOW_ARB #undef SAMPLER_2D_RECT_SHADOW_ARB #endif #ifdef OBJECT_DELETE_STATUS_ARB #undef OBJECT_DELETE_STATUS_ARB #endif #ifdef OBJECT_COMPILE_STATUS_ARB #undef OBJECT_COMPILE_STATUS_ARB #endif #ifdef OBJECT_LINK_STATUS_ARB #undef OBJECT_LINK_STATUS_ARB #endif #ifdef OBJECT_VALIDATE_STATUS_ARB #undef OBJECT_VALIDATE_STATUS_ARB #endif #ifdef OBJECT_INFO_LOG_LENGTH_ARB #undef OBJECT_INFO_LOG_LENGTH_ARB #endif #ifdef OBJECT_ATTACHED_OBJECTS_ARB #undef OBJECT_ATTACHED_OBJECTS_ARB #endif #ifdef OBJECT_ACTIVE_UNIFORMS_ARB #undef OBJECT_ACTIVE_UNIFORMS_ARB #endif #ifdef OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB #undef OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB #endif #ifdef OBJECT_SHADER_SOURCE_LENGTH_ARB #undef OBJECT_SHADER_SOURCE_LENGTH_ARB #endif #ifdef ACTIVE_SUBROUTINES #undef ACTIVE_SUBROUTINES #endif #ifdef ACTIVE_SUBROUTINE_UNIFORMS #undef ACTIVE_SUBROUTINE_UNIFORMS #endif #ifdef ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS #undef ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS #endif #ifdef ACTIVE_SUBROUTINE_MAX_LENGTH #undef ACTIVE_SUBROUTINE_MAX_LENGTH #endif #ifdef ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH #undef ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH #endif #ifdef MAX_SUBROUTINES #undef MAX_SUBROUTINES #endif #ifdef MAX_SUBROUTINE_UNIFORM_LOCATIONS #undef MAX_SUBROUTINE_UNIFORM_LOCATIONS #endif #ifdef NUM_COMPATIBLE_SUBROUTINES #undef NUM_COMPATIBLE_SUBROUTINES #endif #ifdef COMPATIBLE_SUBROUTINES #undef COMPATIBLE_SUBROUTINES #endif #ifdef SHADING_LANGUAGE_VERSION_ARB #undef SHADING_LANGUAGE_VERSION_ARB #endif #ifdef SHADER_INCLUDE_ARB #undef SHADER_INCLUDE_ARB #endif #ifdef NAMED_STRING_LENGTH_ARB #undef NAMED_STRING_LENGTH_ARB #endif #ifdef NAMED_STRING_TYPE_ARB #undef NAMED_STRING_TYPE_ARB #endif #ifdef TEXTURE_COMPARE_MODE_ARB #undef TEXTURE_COMPARE_MODE_ARB #endif #ifdef TEXTURE_COMPARE_FUNC_ARB #undef TEXTURE_COMPARE_FUNC_ARB #endif #ifdef COMPARE_R_TO_TEXTURE_ARB #undef COMPARE_R_TO_TEXTURE_ARB #endif #ifdef TEXTURE_COMPARE_FAIL_VALUE_ARB #undef TEXTURE_COMPARE_FAIL_VALUE_ARB #endif #ifdef MAX_SERVER_WAIT_TIMEOUT #undef MAX_SERVER_WAIT_TIMEOUT #endif #ifdef OBJECT_TYPE #undef OBJECT_TYPE #endif #ifdef SYNC_CONDITION #undef SYNC_CONDITION #endif #ifdef SYNC_STATUS #undef SYNC_STATUS #endif #ifdef SYNC_FLAGS #undef SYNC_FLAGS #endif #ifdef SYNC_FENCE #undef SYNC_FENCE #endif #ifdef SYNC_GPU_COMMANDS_COMPLETE #undef SYNC_GPU_COMMANDS_COMPLETE #endif #ifdef UNSIGNALED #undef UNSIGNALED #endif #ifdef SIGNALED #undef SIGNALED #endif #ifdef ALREADY_SIGNALED #undef ALREADY_SIGNALED #endif #ifdef TIMEOUT_EXPIRED #undef TIMEOUT_EXPIRED #endif #ifdef CONDITION_SATISFIED #undef CONDITION_SATISFIED #endif #ifdef WAIT_FAILED #undef WAIT_FAILED #endif #ifdef SYNC_FLUSH_COMMANDS_BIT #undef SYNC_FLUSH_COMMANDS_BIT #endif #ifdef TIMEOUT_IGNORED #undef TIMEOUT_IGNORED #endif #ifdef PATCHES #undef PATCHES #endif #ifdef PATCH_VERTICES #undef PATCH_VERTICES #endif #ifdef PATCH_DEFAULT_INNER_LEVEL #undef PATCH_DEFAULT_INNER_LEVEL #endif #ifdef PATCH_DEFAULT_OUTER_LEVEL #undef PATCH_DEFAULT_OUTER_LEVEL #endif #ifdef TESS_CONTROL_OUTPUT_VERTICES #undef TESS_CONTROL_OUTPUT_VERTICES #endif #ifdef TESS_GEN_MODE #undef TESS_GEN_MODE #endif #ifdef TESS_GEN_SPACING #undef TESS_GEN_SPACING #endif #ifdef TESS_GEN_VERTEX_ORDER #undef TESS_GEN_VERTEX_ORDER #endif #ifdef TESS_GEN_POINT_MODE #undef TESS_GEN_POINT_MODE #endif #ifdef ISOLINES #undef ISOLINES #endif #ifdef FRACTIONAL_ODD #undef FRACTIONAL_ODD #endif #ifdef FRACTIONAL_EVEN #undef FRACTIONAL_EVEN #endif #ifdef MAX_PATCH_VERTICES #undef MAX_PATCH_VERTICES #endif #ifdef MAX_TESS_GEN_LEVEL #undef MAX_TESS_GEN_LEVEL #endif #ifdef MAX_TESS_CONTROL_UNIFORM_COMPONENTS #undef MAX_TESS_CONTROL_UNIFORM_COMPONENTS #endif #ifdef MAX_TESS_EVALUATION_UNIFORM_COMPONENTS #undef MAX_TESS_EVALUATION_UNIFORM_COMPONENTS #endif #ifdef MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS #undef MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS #endif #ifdef MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS #undef MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS #endif #ifdef MAX_TESS_CONTROL_OUTPUT_COMPONENTS #undef MAX_TESS_CONTROL_OUTPUT_COMPONENTS #endif #ifdef MAX_TESS_PATCH_COMPONENTS #undef MAX_TESS_PATCH_COMPONENTS #endif #ifdef MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS #undef MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS #endif #ifdef MAX_TESS_EVALUATION_OUTPUT_COMPONENTS #undef MAX_TESS_EVALUATION_OUTPUT_COMPONENTS #endif #ifdef MAX_TESS_CONTROL_UNIFORM_BLOCKS #undef MAX_TESS_CONTROL_UNIFORM_BLOCKS #endif #ifdef MAX_TESS_EVALUATION_UNIFORM_BLOCKS #undef MAX_TESS_EVALUATION_UNIFORM_BLOCKS #endif #ifdef MAX_TESS_CONTROL_INPUT_COMPONENTS #undef MAX_TESS_CONTROL_INPUT_COMPONENTS #endif #ifdef MAX_TESS_EVALUATION_INPUT_COMPONENTS #undef MAX_TESS_EVALUATION_INPUT_COMPONENTS #endif #ifdef MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS #undef MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS #endif #ifdef MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS #undef MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS #endif #ifdef UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER #undef UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER #endif #ifdef UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER #undef UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER #endif #ifdef TESS_EVALUATION_SHADER #undef TESS_EVALUATION_SHADER #endif #ifdef TESS_CONTROL_SHADER #undef TESS_CONTROL_SHADER #endif #ifdef CLAMP_TO_BORDER_ARB #undef CLAMP_TO_BORDER_ARB #endif #ifdef TEXTURE_BUFFER_ARB #undef TEXTURE_BUFFER_ARB #endif #ifdef MAX_TEXTURE_BUFFER_SIZE_ARB #undef MAX_TEXTURE_BUFFER_SIZE_ARB #endif #ifdef TEXTURE_BINDING_BUFFER_ARB #undef TEXTURE_BINDING_BUFFER_ARB #endif #ifdef TEXTURE_BUFFER_DATA_STORE_BINDING_ARB #undef TEXTURE_BUFFER_DATA_STORE_BINDING_ARB #endif #ifdef TEXTURE_BUFFER_FORMAT_ARB #undef TEXTURE_BUFFER_FORMAT_ARB #endif #ifdef COMPRESSED_ALPHA_ARB #undef COMPRESSED_ALPHA_ARB #endif #ifdef COMPRESSED_LUMINANCE_ARB #undef COMPRESSED_LUMINANCE_ARB #endif #ifdef COMPRESSED_LUMINANCE_ALPHA_ARB #undef COMPRESSED_LUMINANCE_ALPHA_ARB #endif #ifdef COMPRESSED_INTENSITY_ARB #undef COMPRESSED_INTENSITY_ARB #endif #ifdef COMPRESSED_RGB_ARB #undef COMPRESSED_RGB_ARB #endif #ifdef COMPRESSED_RGBA_ARB #undef COMPRESSED_RGBA_ARB #endif #ifdef TEXTURE_COMPRESSION_HINT_ARB #undef TEXTURE_COMPRESSION_HINT_ARB #endif #ifdef TEXTURE_COMPRESSED_IMAGE_SIZE_ARB #undef TEXTURE_COMPRESSED_IMAGE_SIZE_ARB #endif #ifdef TEXTURE_COMPRESSED_ARB #undef TEXTURE_COMPRESSED_ARB #endif #ifdef NUM_COMPRESSED_TEXTURE_FORMATS_ARB #undef NUM_COMPRESSED_TEXTURE_FORMATS_ARB #endif #ifdef COMPRESSED_TEXTURE_FORMATS_ARB #undef COMPRESSED_TEXTURE_FORMATS_ARB #endif #ifdef COMPRESSED_RGBA_BPTC_UNORM_ARB #undef COMPRESSED_RGBA_BPTC_UNORM_ARB #endif #ifdef COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB #undef COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB #endif #ifdef COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB #undef COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB #endif #ifdef COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB #undef COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB #endif #ifdef COMPRESSED_RED_RGTC1 #undef COMPRESSED_RED_RGTC1 #endif #ifdef COMPRESSED_SIGNED_RED_RGTC1 #undef COMPRESSED_SIGNED_RED_RGTC1 #endif #ifdef COMPRESSED_RG_RGTC2 #undef COMPRESSED_RG_RGTC2 #endif #ifdef COMPRESSED_SIGNED_RG_RGTC2 #undef COMPRESSED_SIGNED_RG_RGTC2 #endif #ifdef NORMAL_MAP_ARB #undef NORMAL_MAP_ARB #endif #ifdef REFLECTION_MAP_ARB #undef REFLECTION_MAP_ARB #endif #ifdef TEXTURE_CUBE_MAP_ARB #undef TEXTURE_CUBE_MAP_ARB #endif #ifdef TEXTURE_BINDING_CUBE_MAP_ARB #undef TEXTURE_BINDING_CUBE_MAP_ARB #endif #ifdef TEXTURE_CUBE_MAP_POSITIVE_X_ARB #undef TEXTURE_CUBE_MAP_POSITIVE_X_ARB #endif #ifdef TEXTURE_CUBE_MAP_NEGATIVE_X_ARB #undef TEXTURE_CUBE_MAP_NEGATIVE_X_ARB #endif #ifdef TEXTURE_CUBE_MAP_POSITIVE_Y_ARB #undef TEXTURE_CUBE_MAP_POSITIVE_Y_ARB #endif #ifdef TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB #undef TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB #endif #ifdef TEXTURE_CUBE_MAP_POSITIVE_Z_ARB #undef TEXTURE_CUBE_MAP_POSITIVE_Z_ARB #endif #ifdef TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB #undef TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB #endif #ifdef PROXY_TEXTURE_CUBE_MAP_ARB #undef PROXY_TEXTURE_CUBE_MAP_ARB #endif #ifdef MAX_CUBE_MAP_TEXTURE_SIZE_ARB #undef MAX_CUBE_MAP_TEXTURE_SIZE_ARB #endif #ifdef TEXTURE_CUBE_MAP_ARRAY #undef TEXTURE_CUBE_MAP_ARRAY #endif #ifdef TEXTURE_BINDING_CUBE_MAP_ARRAY #undef TEXTURE_BINDING_CUBE_MAP_ARRAY #endif #ifdef PROXY_TEXTURE_CUBE_MAP_ARRAY #undef PROXY_TEXTURE_CUBE_MAP_ARRAY #endif #ifdef SAMPLER_CUBE_MAP_ARRAY #undef SAMPLER_CUBE_MAP_ARRAY #endif #ifdef SAMPLER_CUBE_MAP_ARRAY_SHADOW #undef SAMPLER_CUBE_MAP_ARRAY_SHADOW #endif #ifdef INT_SAMPLER_CUBE_MAP_ARRAY #undef INT_SAMPLER_CUBE_MAP_ARRAY #endif #ifdef UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY #undef UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY #endif #ifdef COMBINE_ARB #undef COMBINE_ARB #endif #ifdef COMBINE_RGB_ARB #undef COMBINE_RGB_ARB #endif #ifdef COMBINE_ALPHA_ARB #undef COMBINE_ALPHA_ARB #endif #ifdef SOURCE0_RGB_ARB #undef SOURCE0_RGB_ARB #endif #ifdef SOURCE1_RGB_ARB #undef SOURCE1_RGB_ARB #endif #ifdef SOURCE2_RGB_ARB #undef SOURCE2_RGB_ARB #endif #ifdef SOURCE0_ALPHA_ARB #undef SOURCE0_ALPHA_ARB #endif #ifdef SOURCE1_ALPHA_ARB #undef SOURCE1_ALPHA_ARB #endif #ifdef SOURCE2_ALPHA_ARB #undef SOURCE2_ALPHA_ARB #endif #ifdef OPERAND0_RGB_ARB #undef OPERAND0_RGB_ARB #endif #ifdef OPERAND1_RGB_ARB #undef OPERAND1_RGB_ARB #endif #ifdef OPERAND2_RGB_ARB #undef OPERAND2_RGB_ARB #endif #ifdef OPERAND0_ALPHA_ARB #undef OPERAND0_ALPHA_ARB #endif #ifdef OPERAND1_ALPHA_ARB #undef OPERAND1_ALPHA_ARB #endif #ifdef OPERAND2_ALPHA_ARB #undef OPERAND2_ALPHA_ARB #endif #ifdef RGB_SCALE_ARB #undef RGB_SCALE_ARB #endif #ifdef ADD_SIGNED_ARB #undef ADD_SIGNED_ARB #endif #ifdef INTERPOLATE_ARB #undef INTERPOLATE_ARB #endif #ifdef SUBTRACT_ARB #undef SUBTRACT_ARB #endif #ifdef CONSTANT_ARB #undef CONSTANT_ARB #endif #ifdef PRIMARY_COLOR_ARB #undef PRIMARY_COLOR_ARB #endif #ifdef PREVIOUS_ARB #undef PREVIOUS_ARB #endif #ifdef DOT3_RGB_ARB #undef DOT3_RGB_ARB #endif #ifdef DOT3_RGBA_ARB #undef DOT3_RGBA_ARB #endif #ifdef TEXTURE_RED_TYPE_ARB #undef TEXTURE_RED_TYPE_ARB #endif #ifdef TEXTURE_GREEN_TYPE_ARB #undef TEXTURE_GREEN_TYPE_ARB #endif #ifdef TEXTURE_BLUE_TYPE_ARB #undef TEXTURE_BLUE_TYPE_ARB #endif #ifdef TEXTURE_ALPHA_TYPE_ARB #undef TEXTURE_ALPHA_TYPE_ARB #endif #ifdef TEXTURE_LUMINANCE_TYPE_ARB #undef TEXTURE_LUMINANCE_TYPE_ARB #endif #ifdef TEXTURE_INTENSITY_TYPE_ARB #undef TEXTURE_INTENSITY_TYPE_ARB #endif #ifdef TEXTURE_DEPTH_TYPE_ARB #undef TEXTURE_DEPTH_TYPE_ARB #endif #ifdef UNSIGNED_NORMALIZED_ARB #undef UNSIGNED_NORMALIZED_ARB #endif #ifdef RGBA32F_ARB #undef RGBA32F_ARB #endif #ifdef RGB32F_ARB #undef RGB32F_ARB #endif #ifdef ALPHA32F_ARB #undef ALPHA32F_ARB #endif #ifdef INTENSITY32F_ARB #undef INTENSITY32F_ARB #endif #ifdef LUMINANCE32F_ARB #undef LUMINANCE32F_ARB #endif #ifdef LUMINANCE_ALPHA32F_ARB #undef LUMINANCE_ALPHA32F_ARB #endif #ifdef RGBA16F_ARB #undef RGBA16F_ARB #endif #ifdef RGB16F_ARB #undef RGB16F_ARB #endif #ifdef ALPHA16F_ARB #undef ALPHA16F_ARB #endif #ifdef INTENSITY16F_ARB #undef INTENSITY16F_ARB #endif #ifdef LUMINANCE16F_ARB #undef LUMINANCE16F_ARB #endif #ifdef LUMINANCE_ALPHA16F_ARB #undef LUMINANCE_ALPHA16F_ARB #endif #ifdef MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB #undef MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB #endif #ifdef MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB #undef MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB #endif #ifdef MIRRORED_REPEAT_ARB #undef MIRRORED_REPEAT_ARB #endif #ifdef SAMPLE_POSITION #undef SAMPLE_POSITION #endif #ifdef SAMPLE_MASK #undef SAMPLE_MASK #endif #ifdef SAMPLE_MASK_VALUE #undef SAMPLE_MASK_VALUE #endif #ifdef MAX_SAMPLE_MASK_WORDS #undef MAX_SAMPLE_MASK_WORDS #endif #ifdef TEXTURE_2D_MULTISAMPLE #undef TEXTURE_2D_MULTISAMPLE #endif #ifdef PROXY_TEXTURE_2D_MULTISAMPLE #undef PROXY_TEXTURE_2D_MULTISAMPLE #endif #ifdef TEXTURE_2D_MULTISAMPLE_ARRAY #undef TEXTURE_2D_MULTISAMPLE_ARRAY #endif #ifdef PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY #undef PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY #endif #ifdef TEXTURE_BINDING_2D_MULTISAMPLE #undef TEXTURE_BINDING_2D_MULTISAMPLE #endif #ifdef TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY #undef TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY #endif #ifdef TEXTURE_SAMPLES #undef TEXTURE_SAMPLES #endif #ifdef TEXTURE_FIXED_SAMPLE_LOCATIONS #undef TEXTURE_FIXED_SAMPLE_LOCATIONS #endif #ifdef SAMPLER_2D_MULTISAMPLE #undef SAMPLER_2D_MULTISAMPLE #endif #ifdef INT_SAMPLER_2D_MULTISAMPLE #undef INT_SAMPLER_2D_MULTISAMPLE #endif #ifdef UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE #undef UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE #endif #ifdef SAMPLER_2D_MULTISAMPLE_ARRAY #undef SAMPLER_2D_MULTISAMPLE_ARRAY #endif #ifdef INT_SAMPLER_2D_MULTISAMPLE_ARRAY #undef INT_SAMPLER_2D_MULTISAMPLE_ARRAY #endif #ifdef UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY #undef UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY #endif #ifdef MAX_COLOR_TEXTURE_SAMPLES #undef MAX_COLOR_TEXTURE_SAMPLES #endif #ifdef MAX_DEPTH_TEXTURE_SAMPLES #undef MAX_DEPTH_TEXTURE_SAMPLES #endif #ifdef MAX_INTEGER_SAMPLES #undef MAX_INTEGER_SAMPLES #endif #ifdef TEXTURE_RECTANGLE_ARB #undef TEXTURE_RECTANGLE_ARB #endif #ifdef TEXTURE_BINDING_RECTANGLE_ARB #undef TEXTURE_BINDING_RECTANGLE_ARB #endif #ifdef PROXY_TEXTURE_RECTANGLE_ARB #undef PROXY_TEXTURE_RECTANGLE_ARB #endif #ifdef MAX_RECTANGLE_TEXTURE_SIZE_ARB #undef MAX_RECTANGLE_TEXTURE_SIZE_ARB #endif #ifdef RG #undef RG #endif #ifdef RG_INTEGER #undef RG_INTEGER #endif #ifdef R8 #undef R8 #endif #ifdef R16 #undef R16 #endif #ifdef RG8 #undef RG8 #endif #ifdef RG16 #undef RG16 #endif #ifdef R16F #undef R16F #endif #ifdef R32F #undef R32F #endif #ifdef RG16F #undef RG16F #endif #ifdef RG32F #undef RG32F #endif #ifdef R8I #undef R8I #endif #ifdef R8UI #undef R8UI #endif #ifdef R16I #undef R16I #endif #ifdef R16UI #undef R16UI #endif #ifdef R32I #undef R32I #endif #ifdef R32UI #undef R32UI #endif #ifdef RG8I #undef RG8I #endif #ifdef RG8UI #undef RG8UI #endif #ifdef RG16I #undef RG16I #endif #ifdef RG16UI #undef RG16UI #endif #ifdef RG32I #undef RG32I #endif #ifdef RG32UI #undef RG32UI #endif #ifdef RGB10_A2UI #undef RGB10_A2UI #endif #ifdef TEXTURE_SWIZZLE_R #undef TEXTURE_SWIZZLE_R #endif #ifdef TEXTURE_SWIZZLE_G #undef TEXTURE_SWIZZLE_G #endif #ifdef TEXTURE_SWIZZLE_B #undef TEXTURE_SWIZZLE_B #endif #ifdef TEXTURE_SWIZZLE_A #undef TEXTURE_SWIZZLE_A #endif #ifdef TEXTURE_SWIZZLE_RGBA #undef TEXTURE_SWIZZLE_RGBA #endif #ifdef TIME_ELAPSED #undef TIME_ELAPSED #endif #ifdef TIMESTAMP #undef TIMESTAMP #endif #ifdef TRANSFORM_FEEDBACK #undef TRANSFORM_FEEDBACK #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_PAUSED #undef TRANSFORM_FEEDBACK_BUFFER_PAUSED #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_ACTIVE #undef TRANSFORM_FEEDBACK_BUFFER_ACTIVE #endif #ifdef TRANSFORM_FEEDBACK_BINDING #undef TRANSFORM_FEEDBACK_BINDING #endif #ifdef MAX_TRANSFORM_FEEDBACK_BUFFERS #undef MAX_TRANSFORM_FEEDBACK_BUFFERS #endif #ifdef TRANSPOSE_MODELVIEW_MATRIX_ARB #undef TRANSPOSE_MODELVIEW_MATRIX_ARB #endif #ifdef TRANSPOSE_PROJECTION_MATRIX_ARB #undef TRANSPOSE_PROJECTION_MATRIX_ARB #endif #ifdef TRANSPOSE_TEXTURE_MATRIX_ARB #undef TRANSPOSE_TEXTURE_MATRIX_ARB #endif #ifdef TRANSPOSE_COLOR_MATRIX_ARB #undef TRANSPOSE_COLOR_MATRIX_ARB #endif #ifdef UNIFORM_BUFFER #undef UNIFORM_BUFFER #endif #ifdef UNIFORM_BUFFER_BINDING #undef UNIFORM_BUFFER_BINDING #endif #ifdef UNIFORM_BUFFER_START #undef UNIFORM_BUFFER_START #endif #ifdef UNIFORM_BUFFER_SIZE #undef UNIFORM_BUFFER_SIZE #endif #ifdef MAX_VERTEX_UNIFORM_BLOCKS #undef MAX_VERTEX_UNIFORM_BLOCKS #endif #ifdef MAX_GEOMETRY_UNIFORM_BLOCKS #undef MAX_GEOMETRY_UNIFORM_BLOCKS #endif #ifdef MAX_FRAGMENT_UNIFORM_BLOCKS #undef MAX_FRAGMENT_UNIFORM_BLOCKS #endif #ifdef MAX_COMBINED_UNIFORM_BLOCKS #undef MAX_COMBINED_UNIFORM_BLOCKS #endif #ifdef MAX_UNIFORM_BUFFER_BINDINGS #undef MAX_UNIFORM_BUFFER_BINDINGS #endif #ifdef MAX_UNIFORM_BLOCK_SIZE #undef MAX_UNIFORM_BLOCK_SIZE #endif #ifdef MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS #undef MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS #endif #ifdef MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS #undef MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS #endif #ifdef MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS #undef MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS #endif #ifdef UNIFORM_BUFFER_OFFSET_ALIGNMENT #undef UNIFORM_BUFFER_OFFSET_ALIGNMENT #endif #ifdef ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH #undef ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH #endif #ifdef ACTIVE_UNIFORM_BLOCKS #undef ACTIVE_UNIFORM_BLOCKS #endif #ifdef UNIFORM_TYPE #undef UNIFORM_TYPE #endif #ifdef UNIFORM_SIZE #undef UNIFORM_SIZE #endif #ifdef UNIFORM_NAME_LENGTH #undef UNIFORM_NAME_LENGTH #endif #ifdef UNIFORM_BLOCK_INDEX #undef UNIFORM_BLOCK_INDEX #endif #ifdef UNIFORM_OFFSET #undef UNIFORM_OFFSET #endif #ifdef UNIFORM_ARRAY_STRIDE #undef UNIFORM_ARRAY_STRIDE #endif #ifdef UNIFORM_MATRIX_STRIDE #undef UNIFORM_MATRIX_STRIDE #endif #ifdef UNIFORM_IS_ROW_MAJOR #undef UNIFORM_IS_ROW_MAJOR #endif #ifdef UNIFORM_BLOCK_BINDING #undef UNIFORM_BLOCK_BINDING #endif #ifdef UNIFORM_BLOCK_DATA_SIZE #undef UNIFORM_BLOCK_DATA_SIZE #endif #ifdef UNIFORM_BLOCK_NAME_LENGTH #undef UNIFORM_BLOCK_NAME_LENGTH #endif #ifdef UNIFORM_BLOCK_ACTIVE_UNIFORMS #undef UNIFORM_BLOCK_ACTIVE_UNIFORMS #endif #ifdef UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES #undef UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES #endif #ifdef UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER #undef UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER #endif #ifdef UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER #undef UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER #endif #ifdef UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER #undef UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER #endif #ifdef INVALID_INDEX #undef INVALID_INDEX #endif #ifdef VERTEX_ARRAY_BINDING #undef VERTEX_ARRAY_BINDING #endif #ifdef MAX_VERTEX_UNITS_ARB #undef MAX_VERTEX_UNITS_ARB #endif #ifdef ACTIVE_VERTEX_UNITS_ARB #undef ACTIVE_VERTEX_UNITS_ARB #endif #ifdef WEIGHT_SUM_UNITY_ARB #undef WEIGHT_SUM_UNITY_ARB #endif #ifdef VERTEX_BLEND_ARB #undef VERTEX_BLEND_ARB #endif #ifdef CURRENT_WEIGHT_ARB #undef CURRENT_WEIGHT_ARB #endif #ifdef WEIGHT_ARRAY_TYPE_ARB #undef WEIGHT_ARRAY_TYPE_ARB #endif #ifdef WEIGHT_ARRAY_STRIDE_ARB #undef WEIGHT_ARRAY_STRIDE_ARB #endif #ifdef WEIGHT_ARRAY_SIZE_ARB #undef WEIGHT_ARRAY_SIZE_ARB #endif #ifdef WEIGHT_ARRAY_POINTER_ARB #undef WEIGHT_ARRAY_POINTER_ARB #endif #ifdef WEIGHT_ARRAY_ARB #undef WEIGHT_ARRAY_ARB #endif #ifdef MODELVIEW0_ARB #undef MODELVIEW0_ARB #endif #ifdef MODELVIEW1_ARB #undef MODELVIEW1_ARB #endif #ifdef MODELVIEW2_ARB #undef MODELVIEW2_ARB #endif #ifdef MODELVIEW3_ARB #undef MODELVIEW3_ARB #endif #ifdef MODELVIEW4_ARB #undef MODELVIEW4_ARB #endif #ifdef MODELVIEW5_ARB #undef MODELVIEW5_ARB #endif #ifdef MODELVIEW6_ARB #undef MODELVIEW6_ARB #endif #ifdef MODELVIEW7_ARB #undef MODELVIEW7_ARB #endif #ifdef MODELVIEW8_ARB #undef MODELVIEW8_ARB #endif #ifdef MODELVIEW9_ARB #undef MODELVIEW9_ARB #endif #ifdef MODELVIEW10_ARB #undef MODELVIEW10_ARB #endif #ifdef MODELVIEW11_ARB #undef MODELVIEW11_ARB #endif #ifdef MODELVIEW12_ARB #undef MODELVIEW12_ARB #endif #ifdef MODELVIEW13_ARB #undef MODELVIEW13_ARB #endif #ifdef MODELVIEW14_ARB #undef MODELVIEW14_ARB #endif #ifdef MODELVIEW15_ARB #undef MODELVIEW15_ARB #endif #ifdef MODELVIEW16_ARB #undef MODELVIEW16_ARB #endif #ifdef MODELVIEW17_ARB #undef MODELVIEW17_ARB #endif #ifdef MODELVIEW18_ARB #undef MODELVIEW18_ARB #endif #ifdef MODELVIEW19_ARB #undef MODELVIEW19_ARB #endif #ifdef MODELVIEW20_ARB #undef MODELVIEW20_ARB #endif #ifdef MODELVIEW21_ARB #undef MODELVIEW21_ARB #endif #ifdef MODELVIEW22_ARB #undef MODELVIEW22_ARB #endif #ifdef MODELVIEW23_ARB #undef MODELVIEW23_ARB #endif #ifdef MODELVIEW24_ARB #undef MODELVIEW24_ARB #endif #ifdef MODELVIEW25_ARB #undef MODELVIEW25_ARB #endif #ifdef MODELVIEW26_ARB #undef MODELVIEW26_ARB #endif #ifdef MODELVIEW27_ARB #undef MODELVIEW27_ARB #endif #ifdef MODELVIEW28_ARB #undef MODELVIEW28_ARB #endif #ifdef MODELVIEW29_ARB #undef MODELVIEW29_ARB #endif #ifdef MODELVIEW30_ARB #undef MODELVIEW30_ARB #endif #ifdef MODELVIEW31_ARB #undef MODELVIEW31_ARB #endif #ifdef BUFFER_SIZE_ARB #undef BUFFER_SIZE_ARB #endif #ifdef BUFFER_USAGE_ARB #undef BUFFER_USAGE_ARB #endif #ifdef ARRAY_BUFFER_ARB #undef ARRAY_BUFFER_ARB #endif #ifdef ELEMENT_ARRAY_BUFFER_ARB #undef ELEMENT_ARRAY_BUFFER_ARB #endif #ifdef ARRAY_BUFFER_BINDING_ARB #undef ARRAY_BUFFER_BINDING_ARB #endif #ifdef ELEMENT_ARRAY_BUFFER_BINDING_ARB #undef ELEMENT_ARRAY_BUFFER_BINDING_ARB #endif #ifdef VERTEX_ARRAY_BUFFER_BINDING_ARB #undef VERTEX_ARRAY_BUFFER_BINDING_ARB #endif #ifdef NORMAL_ARRAY_BUFFER_BINDING_ARB #undef NORMAL_ARRAY_BUFFER_BINDING_ARB #endif #ifdef COLOR_ARRAY_BUFFER_BINDING_ARB #undef COLOR_ARRAY_BUFFER_BINDING_ARB #endif #ifdef INDEX_ARRAY_BUFFER_BINDING_ARB #undef INDEX_ARRAY_BUFFER_BINDING_ARB #endif #ifdef TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB #undef TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB #endif #ifdef EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB #undef EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB #endif #ifdef SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB #undef SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB #endif #ifdef FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB #undef FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB #endif #ifdef WEIGHT_ARRAY_BUFFER_BINDING_ARB #undef WEIGHT_ARRAY_BUFFER_BINDING_ARB #endif #ifdef VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB #undef VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB #endif #ifdef READ_ONLY_ARB #undef READ_ONLY_ARB #endif #ifdef WRITE_ONLY_ARB #undef WRITE_ONLY_ARB #endif #ifdef READ_WRITE_ARB #undef READ_WRITE_ARB #endif #ifdef BUFFER_ACCESS_ARB #undef BUFFER_ACCESS_ARB #endif #ifdef BUFFER_MAPPED_ARB #undef BUFFER_MAPPED_ARB #endif #ifdef BUFFER_MAP_POINTER_ARB #undef BUFFER_MAP_POINTER_ARB #endif #ifdef STREAM_DRAW_ARB #undef STREAM_DRAW_ARB #endif #ifdef STREAM_READ_ARB #undef STREAM_READ_ARB #endif #ifdef STREAM_COPY_ARB #undef STREAM_COPY_ARB #endif #ifdef STATIC_DRAW_ARB #undef STATIC_DRAW_ARB #endif #ifdef STATIC_READ_ARB #undef STATIC_READ_ARB #endif #ifdef STATIC_COPY_ARB #undef STATIC_COPY_ARB #endif #ifdef DYNAMIC_DRAW_ARB #undef DYNAMIC_DRAW_ARB #endif #ifdef DYNAMIC_READ_ARB #undef DYNAMIC_READ_ARB #endif #ifdef DYNAMIC_COPY_ARB #undef DYNAMIC_COPY_ARB #endif #ifdef COLOR_SUM_ARB #undef COLOR_SUM_ARB #endif #ifdef VERTEX_PROGRAM_ARB #undef VERTEX_PROGRAM_ARB #endif #ifdef VERTEX_ATTRIB_ARRAY_ENABLED_ARB #undef VERTEX_ATTRIB_ARRAY_ENABLED_ARB #endif #ifdef VERTEX_ATTRIB_ARRAY_SIZE_ARB #undef VERTEX_ATTRIB_ARRAY_SIZE_ARB #endif #ifdef VERTEX_ATTRIB_ARRAY_STRIDE_ARB #undef VERTEX_ATTRIB_ARRAY_STRIDE_ARB #endif #ifdef VERTEX_ATTRIB_ARRAY_TYPE_ARB #undef VERTEX_ATTRIB_ARRAY_TYPE_ARB #endif #ifdef CURRENT_VERTEX_ATTRIB_ARB #undef CURRENT_VERTEX_ATTRIB_ARB #endif #ifdef PROGRAM_LENGTH_ARB #undef PROGRAM_LENGTH_ARB #endif #ifdef PROGRAM_STRING_ARB #undef PROGRAM_STRING_ARB #endif #ifdef MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB #undef MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB #endif #ifdef MAX_PROGRAM_MATRICES_ARB #undef MAX_PROGRAM_MATRICES_ARB #endif #ifdef CURRENT_MATRIX_STACK_DEPTH_ARB #undef CURRENT_MATRIX_STACK_DEPTH_ARB #endif #ifdef CURRENT_MATRIX_ARB #undef CURRENT_MATRIX_ARB #endif #ifdef VERTEX_PROGRAM_POINT_SIZE_ARB #undef VERTEX_PROGRAM_POINT_SIZE_ARB #endif #ifdef VERTEX_PROGRAM_TWO_SIDE_ARB #undef VERTEX_PROGRAM_TWO_SIDE_ARB #endif #ifdef VERTEX_ATTRIB_ARRAY_POINTER_ARB #undef VERTEX_ATTRIB_ARRAY_POINTER_ARB #endif #ifdef PROGRAM_ERROR_POSITION_ARB #undef PROGRAM_ERROR_POSITION_ARB #endif #ifdef PROGRAM_BINDING_ARB #undef PROGRAM_BINDING_ARB #endif #ifdef MAX_VERTEX_ATTRIBS_ARB #undef MAX_VERTEX_ATTRIBS_ARB #endif #ifdef VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB #undef VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB #endif #ifdef PROGRAM_ERROR_STRING_ARB #undef PROGRAM_ERROR_STRING_ARB #endif #ifdef PROGRAM_FORMAT_ASCII_ARB #undef PROGRAM_FORMAT_ASCII_ARB #endif #ifdef PROGRAM_FORMAT_ARB #undef PROGRAM_FORMAT_ARB #endif #ifdef PROGRAM_INSTRUCTIONS_ARB #undef PROGRAM_INSTRUCTIONS_ARB #endif #ifdef MAX_PROGRAM_INSTRUCTIONS_ARB #undef MAX_PROGRAM_INSTRUCTIONS_ARB #endif #ifdef PROGRAM_NATIVE_INSTRUCTIONS_ARB #undef PROGRAM_NATIVE_INSTRUCTIONS_ARB #endif #ifdef MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB #undef MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB #endif #ifdef PROGRAM_TEMPORARIES_ARB #undef PROGRAM_TEMPORARIES_ARB #endif #ifdef MAX_PROGRAM_TEMPORARIES_ARB #undef MAX_PROGRAM_TEMPORARIES_ARB #endif #ifdef PROGRAM_NATIVE_TEMPORARIES_ARB #undef PROGRAM_NATIVE_TEMPORARIES_ARB #endif #ifdef MAX_PROGRAM_NATIVE_TEMPORARIES_ARB #undef MAX_PROGRAM_NATIVE_TEMPORARIES_ARB #endif #ifdef PROGRAM_PARAMETERS_ARB #undef PROGRAM_PARAMETERS_ARB #endif #ifdef MAX_PROGRAM_PARAMETERS_ARB #undef MAX_PROGRAM_PARAMETERS_ARB #endif #ifdef PROGRAM_NATIVE_PARAMETERS_ARB #undef PROGRAM_NATIVE_PARAMETERS_ARB #endif #ifdef MAX_PROGRAM_NATIVE_PARAMETERS_ARB #undef MAX_PROGRAM_NATIVE_PARAMETERS_ARB #endif #ifdef PROGRAM_ATTRIBS_ARB #undef PROGRAM_ATTRIBS_ARB #endif #ifdef MAX_PROGRAM_ATTRIBS_ARB #undef MAX_PROGRAM_ATTRIBS_ARB #endif #ifdef PROGRAM_NATIVE_ATTRIBS_ARB #undef PROGRAM_NATIVE_ATTRIBS_ARB #endif #ifdef MAX_PROGRAM_NATIVE_ATTRIBS_ARB #undef MAX_PROGRAM_NATIVE_ATTRIBS_ARB #endif #ifdef PROGRAM_ADDRESS_REGISTERS_ARB #undef PROGRAM_ADDRESS_REGISTERS_ARB #endif #ifdef MAX_PROGRAM_ADDRESS_REGISTERS_ARB #undef MAX_PROGRAM_ADDRESS_REGISTERS_ARB #endif #ifdef PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB #undef PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB #endif #ifdef MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB #undef MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB #endif #ifdef MAX_PROGRAM_LOCAL_PARAMETERS_ARB #undef MAX_PROGRAM_LOCAL_PARAMETERS_ARB #endif #ifdef MAX_PROGRAM_ENV_PARAMETERS_ARB #undef MAX_PROGRAM_ENV_PARAMETERS_ARB #endif #ifdef PROGRAM_UNDER_NATIVE_LIMITS_ARB #undef PROGRAM_UNDER_NATIVE_LIMITS_ARB #endif #ifdef TRANSPOSE_CURRENT_MATRIX_ARB #undef TRANSPOSE_CURRENT_MATRIX_ARB #endif #ifdef MATRIX0_ARB #undef MATRIX0_ARB #endif #ifdef MATRIX1_ARB #undef MATRIX1_ARB #endif #ifdef MATRIX2_ARB #undef MATRIX2_ARB #endif #ifdef MATRIX3_ARB #undef MATRIX3_ARB #endif #ifdef MATRIX4_ARB #undef MATRIX4_ARB #endif #ifdef MATRIX5_ARB #undef MATRIX5_ARB #endif #ifdef MATRIX6_ARB #undef MATRIX6_ARB #endif #ifdef MATRIX7_ARB #undef MATRIX7_ARB #endif #ifdef MATRIX8_ARB #undef MATRIX8_ARB #endif #ifdef MATRIX9_ARB #undef MATRIX9_ARB #endif #ifdef MATRIX10_ARB #undef MATRIX10_ARB #endif #ifdef MATRIX11_ARB #undef MATRIX11_ARB #endif #ifdef MATRIX12_ARB #undef MATRIX12_ARB #endif #ifdef MATRIX13_ARB #undef MATRIX13_ARB #endif #ifdef MATRIX14_ARB #undef MATRIX14_ARB #endif #ifdef MATRIX15_ARB #undef MATRIX15_ARB #endif #ifdef MATRIX16_ARB #undef MATRIX16_ARB #endif #ifdef MATRIX17_ARB #undef MATRIX17_ARB #endif #ifdef MATRIX18_ARB #undef MATRIX18_ARB #endif #ifdef MATRIX19_ARB #undef MATRIX19_ARB #endif #ifdef MATRIX20_ARB #undef MATRIX20_ARB #endif #ifdef MATRIX21_ARB #undef MATRIX21_ARB #endif #ifdef MATRIX22_ARB #undef MATRIX22_ARB #endif #ifdef MATRIX23_ARB #undef MATRIX23_ARB #endif #ifdef MATRIX24_ARB #undef MATRIX24_ARB #endif #ifdef MATRIX25_ARB #undef MATRIX25_ARB #endif #ifdef MATRIX26_ARB #undef MATRIX26_ARB #endif #ifdef MATRIX27_ARB #undef MATRIX27_ARB #endif #ifdef MATRIX28_ARB #undef MATRIX28_ARB #endif #ifdef MATRIX29_ARB #undef MATRIX29_ARB #endif #ifdef MATRIX30_ARB #undef MATRIX30_ARB #endif #ifdef MATRIX31_ARB #undef MATRIX31_ARB #endif #ifdef VERTEX_SHADER_ARB #undef VERTEX_SHADER_ARB #endif #ifdef MAX_VERTEX_UNIFORM_COMPONENTS_ARB #undef MAX_VERTEX_UNIFORM_COMPONENTS_ARB #endif #ifdef MAX_VARYING_FLOATS_ARB #undef MAX_VARYING_FLOATS_ARB #endif #ifdef MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB #undef MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB #endif #ifdef MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB #undef MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB #endif #ifdef OBJECT_ACTIVE_ATTRIBUTES_ARB #undef OBJECT_ACTIVE_ATTRIBUTES_ARB #endif #ifdef OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB #undef OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB #endif #ifdef INT_2_10_10_10_REV #undef INT_2_10_10_10_REV #endif #ifdef MAX_DRAW_BUFFERS_ATI #undef MAX_DRAW_BUFFERS_ATI #endif #ifdef DRAW_BUFFER0_ATI #undef DRAW_BUFFER0_ATI #endif #ifdef DRAW_BUFFER1_ATI #undef DRAW_BUFFER1_ATI #endif #ifdef DRAW_BUFFER2_ATI #undef DRAW_BUFFER2_ATI #endif #ifdef DRAW_BUFFER3_ATI #undef DRAW_BUFFER3_ATI #endif #ifdef DRAW_BUFFER4_ATI #undef DRAW_BUFFER4_ATI #endif #ifdef DRAW_BUFFER5_ATI #undef DRAW_BUFFER5_ATI #endif #ifdef DRAW_BUFFER6_ATI #undef DRAW_BUFFER6_ATI #endif #ifdef DRAW_BUFFER7_ATI #undef DRAW_BUFFER7_ATI #endif #ifdef DRAW_BUFFER8_ATI #undef DRAW_BUFFER8_ATI #endif #ifdef DRAW_BUFFER9_ATI #undef DRAW_BUFFER9_ATI #endif #ifdef DRAW_BUFFER10_ATI #undef DRAW_BUFFER10_ATI #endif #ifdef DRAW_BUFFER11_ATI #undef DRAW_BUFFER11_ATI #endif #ifdef DRAW_BUFFER12_ATI #undef DRAW_BUFFER12_ATI #endif #ifdef DRAW_BUFFER13_ATI #undef DRAW_BUFFER13_ATI #endif #ifdef DRAW_BUFFER14_ATI #undef DRAW_BUFFER14_ATI #endif #ifdef DRAW_BUFFER15_ATI #undef DRAW_BUFFER15_ATI #endif #ifdef ELEMENT_ARRAY_ATI #undef ELEMENT_ARRAY_ATI #endif #ifdef ELEMENT_ARRAY_TYPE_ATI #undef ELEMENT_ARRAY_TYPE_ATI #endif #ifdef ELEMENT_ARRAY_POINTER_ATI #undef ELEMENT_ARRAY_POINTER_ATI #endif #ifdef BUMP_ROT_MATRIX_ATI #undef BUMP_ROT_MATRIX_ATI #endif #ifdef BUMP_ROT_MATRIX_SIZE_ATI #undef BUMP_ROT_MATRIX_SIZE_ATI #endif #ifdef BUMP_NUM_TEX_UNITS_ATI #undef BUMP_NUM_TEX_UNITS_ATI #endif #ifdef BUMP_TEX_UNITS_ATI #undef BUMP_TEX_UNITS_ATI #endif #ifdef DUDV_ATI #undef DUDV_ATI #endif #ifdef DU8DV8_ATI #undef DU8DV8_ATI #endif #ifdef BUMP_ENVMAP_ATI #undef BUMP_ENVMAP_ATI #endif #ifdef BUMP_TARGET_ATI #undef BUMP_TARGET_ATI #endif #ifdef FRAGMENT_SHADER_ATI #undef FRAGMENT_SHADER_ATI #endif #ifdef REG_0_ATI #undef REG_0_ATI #endif #ifdef REG_1_ATI #undef REG_1_ATI #endif #ifdef REG_2_ATI #undef REG_2_ATI #endif #ifdef REG_3_ATI #undef REG_3_ATI #endif #ifdef REG_4_ATI #undef REG_4_ATI #endif #ifdef REG_5_ATI #undef REG_5_ATI #endif #ifdef REG_6_ATI #undef REG_6_ATI #endif #ifdef REG_7_ATI #undef REG_7_ATI #endif #ifdef REG_8_ATI #undef REG_8_ATI #endif #ifdef REG_9_ATI #undef REG_9_ATI #endif #ifdef REG_10_ATI #undef REG_10_ATI #endif #ifdef REG_11_ATI #undef REG_11_ATI #endif #ifdef REG_12_ATI #undef REG_12_ATI #endif #ifdef REG_13_ATI #undef REG_13_ATI #endif #ifdef REG_14_ATI #undef REG_14_ATI #endif #ifdef REG_15_ATI #undef REG_15_ATI #endif #ifdef REG_16_ATI #undef REG_16_ATI #endif #ifdef REG_17_ATI #undef REG_17_ATI #endif #ifdef REG_18_ATI #undef REG_18_ATI #endif #ifdef REG_19_ATI #undef REG_19_ATI #endif #ifdef REG_20_ATI #undef REG_20_ATI #endif #ifdef REG_21_ATI #undef REG_21_ATI #endif #ifdef REG_22_ATI #undef REG_22_ATI #endif #ifdef REG_23_ATI #undef REG_23_ATI #endif #ifdef REG_24_ATI #undef REG_24_ATI #endif #ifdef REG_25_ATI #undef REG_25_ATI #endif #ifdef REG_26_ATI #undef REG_26_ATI #endif #ifdef REG_27_ATI #undef REG_27_ATI #endif #ifdef REG_28_ATI #undef REG_28_ATI #endif #ifdef REG_29_ATI #undef REG_29_ATI #endif #ifdef REG_30_ATI #undef REG_30_ATI #endif #ifdef REG_31_ATI #undef REG_31_ATI #endif #ifdef CON_0_ATI #undef CON_0_ATI #endif #ifdef CON_1_ATI #undef CON_1_ATI #endif #ifdef CON_2_ATI #undef CON_2_ATI #endif #ifdef CON_3_ATI #undef CON_3_ATI #endif #ifdef CON_4_ATI #undef CON_4_ATI #endif #ifdef CON_5_ATI #undef CON_5_ATI #endif #ifdef CON_6_ATI #undef CON_6_ATI #endif #ifdef CON_7_ATI #undef CON_7_ATI #endif #ifdef CON_8_ATI #undef CON_8_ATI #endif #ifdef CON_9_ATI #undef CON_9_ATI #endif #ifdef CON_10_ATI #undef CON_10_ATI #endif #ifdef CON_11_ATI #undef CON_11_ATI #endif #ifdef CON_12_ATI #undef CON_12_ATI #endif #ifdef CON_13_ATI #undef CON_13_ATI #endif #ifdef CON_14_ATI #undef CON_14_ATI #endif #ifdef CON_15_ATI #undef CON_15_ATI #endif #ifdef CON_16_ATI #undef CON_16_ATI #endif #ifdef CON_17_ATI #undef CON_17_ATI #endif #ifdef CON_18_ATI #undef CON_18_ATI #endif #ifdef CON_19_ATI #undef CON_19_ATI #endif #ifdef CON_20_ATI #undef CON_20_ATI #endif #ifdef CON_21_ATI #undef CON_21_ATI #endif #ifdef CON_22_ATI #undef CON_22_ATI #endif #ifdef CON_23_ATI #undef CON_23_ATI #endif #ifdef CON_24_ATI #undef CON_24_ATI #endif #ifdef CON_25_ATI #undef CON_25_ATI #endif #ifdef CON_26_ATI #undef CON_26_ATI #endif #ifdef CON_27_ATI #undef CON_27_ATI #endif #ifdef CON_28_ATI #undef CON_28_ATI #endif #ifdef CON_29_ATI #undef CON_29_ATI #endif #ifdef CON_30_ATI #undef CON_30_ATI #endif #ifdef CON_31_ATI #undef CON_31_ATI #endif #ifdef MOV_ATI #undef MOV_ATI #endif #ifdef ADD_ATI #undef ADD_ATI #endif #ifdef MUL_ATI #undef MUL_ATI #endif #ifdef SUB_ATI #undef SUB_ATI #endif #ifdef DOT3_ATI #undef DOT3_ATI #endif #ifdef DOT4_ATI #undef DOT4_ATI #endif #ifdef MAD_ATI #undef MAD_ATI #endif #ifdef LERP_ATI #undef LERP_ATI #endif #ifdef CND_ATI #undef CND_ATI #endif #ifdef CND0_ATI #undef CND0_ATI #endif #ifdef DOT2_ADD_ATI #undef DOT2_ADD_ATI #endif #ifdef SECONDARY_INTERPOLATOR_ATI #undef SECONDARY_INTERPOLATOR_ATI #endif #ifdef NUM_FRAGMENT_REGISTERS_ATI #undef NUM_FRAGMENT_REGISTERS_ATI #endif #ifdef NUM_FRAGMENT_CONSTANTS_ATI #undef NUM_FRAGMENT_CONSTANTS_ATI #endif #ifdef NUM_PASSES_ATI #undef NUM_PASSES_ATI #endif #ifdef NUM_INSTRUCTIONS_PER_PASS_ATI #undef NUM_INSTRUCTIONS_PER_PASS_ATI #endif #ifdef NUM_INSTRUCTIONS_TOTAL_ATI #undef NUM_INSTRUCTIONS_TOTAL_ATI #endif #ifdef NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI #undef NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI #endif #ifdef NUM_LOOPBACK_COMPONENTS_ATI #undef NUM_LOOPBACK_COMPONENTS_ATI #endif #ifdef COLOR_ALPHA_PAIRING_ATI #undef COLOR_ALPHA_PAIRING_ATI #endif #ifdef SWIZZLE_STR_ATI #undef SWIZZLE_STR_ATI #endif #ifdef SWIZZLE_STQ_ATI #undef SWIZZLE_STQ_ATI #endif #ifdef SWIZZLE_STR_DR_ATI #undef SWIZZLE_STR_DR_ATI #endif #ifdef SWIZZLE_STQ_DQ_ATI #undef SWIZZLE_STQ_DQ_ATI #endif #ifdef SWIZZLE_STRQ_ATI #undef SWIZZLE_STRQ_ATI #endif #ifdef SWIZZLE_STRQ_DQ_ATI #undef SWIZZLE_STRQ_DQ_ATI #endif #ifdef RED_BIT_ATI #undef RED_BIT_ATI #endif #ifdef GREEN_BIT_ATI #undef GREEN_BIT_ATI #endif #ifdef BLUE_BIT_ATI #undef BLUE_BIT_ATI #endif #ifdef _2X_BIT_ATI #undef _2X_BIT_ATI #endif #ifdef _4X_BIT_ATI #undef _4X_BIT_ATI #endif #ifdef _8X_BIT_ATI #undef _8X_BIT_ATI #endif #ifdef HALF_BIT_ATI #undef HALF_BIT_ATI #endif #ifdef QUARTER_BIT_ATI #undef QUARTER_BIT_ATI #endif #ifdef EIGHTH_BIT_ATI #undef EIGHTH_BIT_ATI #endif #ifdef SATURATE_BIT_ATI #undef SATURATE_BIT_ATI #endif #ifdef COMP_BIT_ATI #undef COMP_BIT_ATI #endif #ifdef NEGATE_BIT_ATI #undef NEGATE_BIT_ATI #endif #ifdef BIAS_BIT_ATI #undef BIAS_BIT_ATI #endif #ifdef VBO_FREE_MEMORY_ATI #undef VBO_FREE_MEMORY_ATI #endif #ifdef TEXTURE_FREE_MEMORY_ATI #undef TEXTURE_FREE_MEMORY_ATI #endif #ifdef RENDERBUFFER_FREE_MEMORY_ATI #undef RENDERBUFFER_FREE_MEMORY_ATI #endif #ifdef TYPE_RGBA_FLOAT_ATI #undef TYPE_RGBA_FLOAT_ATI #endif #ifdef COLOR_CLEAR_UNCLAMPED_VALUE_ATI #undef COLOR_CLEAR_UNCLAMPED_VALUE_ATI #endif #ifdef PN_TRIANGLES_ATI #undef PN_TRIANGLES_ATI #endif #ifdef MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI #undef MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI #endif #ifdef PN_TRIANGLES_POINT_MODE_ATI #undef PN_TRIANGLES_POINT_MODE_ATI #endif #ifdef PN_TRIANGLES_NORMAL_MODE_ATI #undef PN_TRIANGLES_NORMAL_MODE_ATI #endif #ifdef PN_TRIANGLES_TESSELATION_LEVEL_ATI #undef PN_TRIANGLES_TESSELATION_LEVEL_ATI #endif #ifdef PN_TRIANGLES_POINT_MODE_LINEAR_ATI #undef PN_TRIANGLES_POINT_MODE_LINEAR_ATI #endif #ifdef PN_TRIANGLES_POINT_MODE_CUBIC_ATI #undef PN_TRIANGLES_POINT_MODE_CUBIC_ATI #endif #ifdef PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI #undef PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI #endif #ifdef PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI #undef PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI #endif #ifdef STENCIL_BACK_FUNC_ATI #undef STENCIL_BACK_FUNC_ATI #endif #ifdef STENCIL_BACK_FAIL_ATI #undef STENCIL_BACK_FAIL_ATI #endif #ifdef STENCIL_BACK_PASS_DEPTH_FAIL_ATI #undef STENCIL_BACK_PASS_DEPTH_FAIL_ATI #endif #ifdef STENCIL_BACK_PASS_DEPTH_PASS_ATI #undef STENCIL_BACK_PASS_DEPTH_PASS_ATI #endif #ifdef TEXT_FRAGMENT_SHADER_ATI #undef TEXT_FRAGMENT_SHADER_ATI #endif #ifdef MODULATE_ADD_ATI #undef MODULATE_ADD_ATI #endif #ifdef MODULATE_SIGNED_ADD_ATI #undef MODULATE_SIGNED_ADD_ATI #endif #ifdef MODULATE_SUBTRACT_ATI #undef MODULATE_SUBTRACT_ATI #endif #ifdef RGBA_FLOAT32_ATI #undef RGBA_FLOAT32_ATI #endif #ifdef RGB_FLOAT32_ATI #undef RGB_FLOAT32_ATI #endif #ifdef ALPHA_FLOAT32_ATI #undef ALPHA_FLOAT32_ATI #endif #ifdef INTENSITY_FLOAT32_ATI #undef INTENSITY_FLOAT32_ATI #endif #ifdef LUMINANCE_FLOAT32_ATI #undef LUMINANCE_FLOAT32_ATI #endif #ifdef LUMINANCE_ALPHA_FLOAT32_ATI #undef LUMINANCE_ALPHA_FLOAT32_ATI #endif #ifdef RGBA_FLOAT16_ATI #undef RGBA_FLOAT16_ATI #endif #ifdef RGB_FLOAT16_ATI #undef RGB_FLOAT16_ATI #endif #ifdef ALPHA_FLOAT16_ATI #undef ALPHA_FLOAT16_ATI #endif #ifdef INTENSITY_FLOAT16_ATI #undef INTENSITY_FLOAT16_ATI #endif #ifdef LUMINANCE_FLOAT16_ATI #undef LUMINANCE_FLOAT16_ATI #endif #ifdef LUMINANCE_ALPHA_FLOAT16_ATI #undef LUMINANCE_ALPHA_FLOAT16_ATI #endif #ifdef MIRROR_CLAMP_ATI #undef MIRROR_CLAMP_ATI #endif #ifdef MIRROR_CLAMP_TO_EDGE_ATI #undef MIRROR_CLAMP_TO_EDGE_ATI #endif #ifdef STATIC_ATI #undef STATIC_ATI #endif #ifdef DYNAMIC_ATI #undef DYNAMIC_ATI #endif #ifdef PRESERVE_ATI #undef PRESERVE_ATI #endif #ifdef DISCARD_ATI #undef DISCARD_ATI #endif #ifdef OBJECT_BUFFER_SIZE_ATI #undef OBJECT_BUFFER_SIZE_ATI #endif #ifdef OBJECT_BUFFER_USAGE_ATI #undef OBJECT_BUFFER_USAGE_ATI #endif #ifdef ARRAY_OBJECT_BUFFER_ATI #undef ARRAY_OBJECT_BUFFER_ATI #endif #ifdef ARRAY_OBJECT_OFFSET_ATI #undef ARRAY_OBJECT_OFFSET_ATI #endif #ifdef MAX_VERTEX_STREAMS_ATI #undef MAX_VERTEX_STREAMS_ATI #endif #ifdef VERTEX_STREAM0_ATI #undef VERTEX_STREAM0_ATI #endif #ifdef VERTEX_STREAM1_ATI #undef VERTEX_STREAM1_ATI #endif #ifdef VERTEX_STREAM2_ATI #undef VERTEX_STREAM2_ATI #endif #ifdef VERTEX_STREAM3_ATI #undef VERTEX_STREAM3_ATI #endif #ifdef VERTEX_STREAM4_ATI #undef VERTEX_STREAM4_ATI #endif #ifdef VERTEX_STREAM5_ATI #undef VERTEX_STREAM5_ATI #endif #ifdef VERTEX_STREAM6_ATI #undef VERTEX_STREAM6_ATI #endif #ifdef VERTEX_STREAM7_ATI #undef VERTEX_STREAM7_ATI #endif #ifdef VERTEX_SOURCE_ATI #undef VERTEX_SOURCE_ATI #endif #ifdef _422_EXT #undef _422_EXT #endif #ifdef _422_REV_EXT #undef _422_REV_EXT #endif #ifdef _422_AVERAGE_EXT #undef _422_AVERAGE_EXT #endif #ifdef _422_REV_AVERAGE_EXT #undef _422_REV_AVERAGE_EXT #endif #ifdef ABGR_EXT #undef ABGR_EXT #endif #ifdef BGR_EXT #undef BGR_EXT #endif #ifdef BGRA_EXT #undef BGRA_EXT #endif #ifdef MAX_VERTEX_BINDABLE_UNIFORMS_EXT #undef MAX_VERTEX_BINDABLE_UNIFORMS_EXT #endif #ifdef MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT #undef MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT #endif #ifdef MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT #undef MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT #endif #ifdef MAX_BINDABLE_UNIFORM_SIZE_EXT #undef MAX_BINDABLE_UNIFORM_SIZE_EXT #endif #ifdef UNIFORM_BUFFER_EXT #undef UNIFORM_BUFFER_EXT #endif #ifdef UNIFORM_BUFFER_BINDING_EXT #undef UNIFORM_BUFFER_BINDING_EXT #endif #ifdef CONSTANT_COLOR_EXT #undef CONSTANT_COLOR_EXT #endif #ifdef ONE_MINUS_CONSTANT_COLOR_EXT #undef ONE_MINUS_CONSTANT_COLOR_EXT #endif #ifdef CONSTANT_ALPHA_EXT #undef CONSTANT_ALPHA_EXT #endif #ifdef ONE_MINUS_CONSTANT_ALPHA_EXT #undef ONE_MINUS_CONSTANT_ALPHA_EXT #endif #ifdef BLEND_COLOR_EXT #undef BLEND_COLOR_EXT #endif #ifdef BLEND_EQUATION_RGB_EXT #undef BLEND_EQUATION_RGB_EXT #endif #ifdef BLEND_EQUATION_ALPHA_EXT #undef BLEND_EQUATION_ALPHA_EXT #endif #ifdef BLEND_DST_RGB_EXT #undef BLEND_DST_RGB_EXT #endif #ifdef BLEND_SRC_RGB_EXT #undef BLEND_SRC_RGB_EXT #endif #ifdef BLEND_DST_ALPHA_EXT #undef BLEND_DST_ALPHA_EXT #endif #ifdef BLEND_SRC_ALPHA_EXT #undef BLEND_SRC_ALPHA_EXT #endif #ifdef FUNC_ADD_EXT #undef FUNC_ADD_EXT #endif #ifdef MIN_EXT #undef MIN_EXT #endif #ifdef MAX_EXT #undef MAX_EXT #endif #ifdef BLEND_EQUATION_EXT #undef BLEND_EQUATION_EXT #endif #ifdef FUNC_SUBTRACT_EXT #undef FUNC_SUBTRACT_EXT #endif #ifdef FUNC_REVERSE_SUBTRACT_EXT #undef FUNC_REVERSE_SUBTRACT_EXT #endif #ifdef CLIP_VOLUME_CLIPPING_HINT_EXT #undef CLIP_VOLUME_CLIPPING_HINT_EXT #endif #ifdef CMYK_EXT #undef CMYK_EXT #endif #ifdef CMYKA_EXT #undef CMYKA_EXT #endif #ifdef PACK_CMYK_HINT_EXT #undef PACK_CMYK_HINT_EXT #endif #ifdef UNPACK_CMYK_HINT_EXT #undef UNPACK_CMYK_HINT_EXT #endif #ifdef ARRAY_ELEMENT_LOCK_FIRST_EXT #undef ARRAY_ELEMENT_LOCK_FIRST_EXT #endif #ifdef ARRAY_ELEMENT_LOCK_COUNT_EXT #undef ARRAY_ELEMENT_LOCK_COUNT_EXT #endif #ifdef CONVOLUTION_1D_EXT #undef CONVOLUTION_1D_EXT #endif #ifdef CONVOLUTION_2D_EXT #undef CONVOLUTION_2D_EXT #endif #ifdef SEPARABLE_2D_EXT #undef SEPARABLE_2D_EXT #endif #ifdef CONVOLUTION_BORDER_MODE_EXT #undef CONVOLUTION_BORDER_MODE_EXT #endif #ifdef CONVOLUTION_FILTER_SCALE_EXT #undef CONVOLUTION_FILTER_SCALE_EXT #endif #ifdef CONVOLUTION_FILTER_BIAS_EXT #undef CONVOLUTION_FILTER_BIAS_EXT #endif #ifdef REDUCE_EXT #undef REDUCE_EXT #endif #ifdef CONVOLUTION_FORMAT_EXT #undef CONVOLUTION_FORMAT_EXT #endif #ifdef CONVOLUTION_WIDTH_EXT #undef CONVOLUTION_WIDTH_EXT #endif #ifdef CONVOLUTION_HEIGHT_EXT #undef CONVOLUTION_HEIGHT_EXT #endif #ifdef MAX_CONVOLUTION_WIDTH_EXT #undef MAX_CONVOLUTION_WIDTH_EXT #endif #ifdef MAX_CONVOLUTION_HEIGHT_EXT #undef MAX_CONVOLUTION_HEIGHT_EXT #endif #ifdef POST_CONVOLUTION_RED_SCALE_EXT #undef POST_CONVOLUTION_RED_SCALE_EXT #endif #ifdef POST_CONVOLUTION_GREEN_SCALE_EXT #undef POST_CONVOLUTION_GREEN_SCALE_EXT #endif #ifdef POST_CONVOLUTION_BLUE_SCALE_EXT #undef POST_CONVOLUTION_BLUE_SCALE_EXT #endif #ifdef POST_CONVOLUTION_ALPHA_SCALE_EXT #undef POST_CONVOLUTION_ALPHA_SCALE_EXT #endif #ifdef POST_CONVOLUTION_RED_BIAS_EXT #undef POST_CONVOLUTION_RED_BIAS_EXT #endif #ifdef POST_CONVOLUTION_GREEN_BIAS_EXT #undef POST_CONVOLUTION_GREEN_BIAS_EXT #endif #ifdef POST_CONVOLUTION_BLUE_BIAS_EXT #undef POST_CONVOLUTION_BLUE_BIAS_EXT #endif #ifdef POST_CONVOLUTION_ALPHA_BIAS_EXT #undef POST_CONVOLUTION_ALPHA_BIAS_EXT #endif #ifdef TANGENT_ARRAY_EXT #undef TANGENT_ARRAY_EXT #endif #ifdef BINORMAL_ARRAY_EXT #undef BINORMAL_ARRAY_EXT #endif #ifdef CURRENT_TANGENT_EXT #undef CURRENT_TANGENT_EXT #endif #ifdef CURRENT_BINORMAL_EXT #undef CURRENT_BINORMAL_EXT #endif #ifdef TANGENT_ARRAY_TYPE_EXT #undef TANGENT_ARRAY_TYPE_EXT #endif #ifdef TANGENT_ARRAY_STRIDE_EXT #undef TANGENT_ARRAY_STRIDE_EXT #endif #ifdef BINORMAL_ARRAY_TYPE_EXT #undef BINORMAL_ARRAY_TYPE_EXT #endif #ifdef BINORMAL_ARRAY_STRIDE_EXT #undef BINORMAL_ARRAY_STRIDE_EXT #endif #ifdef TANGENT_ARRAY_POINTER_EXT #undef TANGENT_ARRAY_POINTER_EXT #endif #ifdef BINORMAL_ARRAY_POINTER_EXT #undef BINORMAL_ARRAY_POINTER_EXT #endif #ifdef MAP1_TANGENT_EXT #undef MAP1_TANGENT_EXT #endif #ifdef MAP2_TANGENT_EXT #undef MAP2_TANGENT_EXT #endif #ifdef MAP1_BINORMAL_EXT #undef MAP1_BINORMAL_EXT #endif #ifdef MAP2_BINORMAL_EXT #undef MAP2_BINORMAL_EXT #endif #ifdef CULL_VERTEX_EXT #undef CULL_VERTEX_EXT #endif #ifdef CULL_VERTEX_EYE_POSITION_EXT #undef CULL_VERTEX_EYE_POSITION_EXT #endif #ifdef CULL_VERTEX_OBJECT_POSITION_EXT #undef CULL_VERTEX_OBJECT_POSITION_EXT #endif #ifdef DEPTH_BOUNDS_TEST_EXT #undef DEPTH_BOUNDS_TEST_EXT #endif #ifdef DEPTH_BOUNDS_EXT #undef DEPTH_BOUNDS_EXT #endif #ifdef PROGRAM_MATRIX_EXT #undef PROGRAM_MATRIX_EXT #endif #ifdef TRANSPOSE_PROGRAM_MATRIX_EXT #undef TRANSPOSE_PROGRAM_MATRIX_EXT #endif #ifdef PROGRAM_MATRIX_STACK_DEPTH_EXT #undef PROGRAM_MATRIX_STACK_DEPTH_EXT #endif #ifdef MAX_ELEMENTS_VERTICES_EXT #undef MAX_ELEMENTS_VERTICES_EXT #endif #ifdef MAX_ELEMENTS_INDICES_EXT #undef MAX_ELEMENTS_INDICES_EXT #endif #ifdef FOG_COORDINATE_SOURCE_EXT #undef FOG_COORDINATE_SOURCE_EXT #endif #ifdef FOG_COORDINATE_EXT #undef FOG_COORDINATE_EXT #endif #ifdef FRAGMENT_DEPTH_EXT #undef FRAGMENT_DEPTH_EXT #endif #ifdef CURRENT_FOG_COORDINATE_EXT #undef CURRENT_FOG_COORDINATE_EXT #endif #ifdef FOG_COORDINATE_ARRAY_TYPE_EXT #undef FOG_COORDINATE_ARRAY_TYPE_EXT #endif #ifdef FOG_COORDINATE_ARRAY_STRIDE_EXT #undef FOG_COORDINATE_ARRAY_STRIDE_EXT #endif #ifdef FOG_COORDINATE_ARRAY_POINTER_EXT #undef FOG_COORDINATE_ARRAY_POINTER_EXT #endif #ifdef FOG_COORDINATE_ARRAY_EXT #undef FOG_COORDINATE_ARRAY_EXT #endif #ifdef READ_FRAMEBUFFER_EXT #undef READ_FRAMEBUFFER_EXT #endif #ifdef DRAW_FRAMEBUFFER_EXT #undef DRAW_FRAMEBUFFER_EXT #endif #ifdef DRAW_FRAMEBUFFER_BINDING_EXT #undef DRAW_FRAMEBUFFER_BINDING_EXT #endif #ifdef READ_FRAMEBUFFER_BINDING_EXT #undef READ_FRAMEBUFFER_BINDING_EXT #endif #ifdef RENDERBUFFER_SAMPLES_EXT #undef RENDERBUFFER_SAMPLES_EXT #endif #ifdef FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT #undef FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT #endif #ifdef MAX_SAMPLES_EXT #undef MAX_SAMPLES_EXT #endif #ifdef INVALID_FRAMEBUFFER_OPERATION_EXT #undef INVALID_FRAMEBUFFER_OPERATION_EXT #endif #ifdef MAX_RENDERBUFFER_SIZE_EXT #undef MAX_RENDERBUFFER_SIZE_EXT #endif #ifdef FRAMEBUFFER_BINDING_EXT #undef FRAMEBUFFER_BINDING_EXT #endif #ifdef RENDERBUFFER_BINDING_EXT #undef RENDERBUFFER_BINDING_EXT #endif #ifdef FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT #undef FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT #endif #ifdef FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT #undef FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT #endif #ifdef FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT #undef FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT #endif #ifdef FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT #undef FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT #endif #ifdef FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT #undef FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT #endif #ifdef FRAMEBUFFER_COMPLETE_EXT #undef FRAMEBUFFER_COMPLETE_EXT #endif #ifdef FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT #undef FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT #endif #ifdef FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT #undef FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT #endif #ifdef FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT #undef FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT #endif #ifdef FRAMEBUFFER_INCOMPLETE_FORMATS_EXT #undef FRAMEBUFFER_INCOMPLETE_FORMATS_EXT #endif #ifdef FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT #undef FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT #endif #ifdef FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT #undef FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT #endif #ifdef FRAMEBUFFER_UNSUPPORTED_EXT #undef FRAMEBUFFER_UNSUPPORTED_EXT #endif #ifdef MAX_COLOR_ATTACHMENTS_EXT #undef MAX_COLOR_ATTACHMENTS_EXT #endif #ifdef COLOR_ATTACHMENT0_EXT #undef COLOR_ATTACHMENT0_EXT #endif #ifdef COLOR_ATTACHMENT1_EXT #undef COLOR_ATTACHMENT1_EXT #endif #ifdef COLOR_ATTACHMENT2_EXT #undef COLOR_ATTACHMENT2_EXT #endif #ifdef COLOR_ATTACHMENT3_EXT #undef COLOR_ATTACHMENT3_EXT #endif #ifdef COLOR_ATTACHMENT4_EXT #undef COLOR_ATTACHMENT4_EXT #endif #ifdef COLOR_ATTACHMENT5_EXT #undef COLOR_ATTACHMENT5_EXT #endif #ifdef COLOR_ATTACHMENT6_EXT #undef COLOR_ATTACHMENT6_EXT #endif #ifdef COLOR_ATTACHMENT7_EXT #undef COLOR_ATTACHMENT7_EXT #endif #ifdef COLOR_ATTACHMENT8_EXT #undef COLOR_ATTACHMENT8_EXT #endif #ifdef COLOR_ATTACHMENT9_EXT #undef COLOR_ATTACHMENT9_EXT #endif #ifdef COLOR_ATTACHMENT10_EXT #undef COLOR_ATTACHMENT10_EXT #endif #ifdef COLOR_ATTACHMENT11_EXT #undef COLOR_ATTACHMENT11_EXT #endif #ifdef COLOR_ATTACHMENT12_EXT #undef COLOR_ATTACHMENT12_EXT #endif #ifdef COLOR_ATTACHMENT13_EXT #undef COLOR_ATTACHMENT13_EXT #endif #ifdef COLOR_ATTACHMENT14_EXT #undef COLOR_ATTACHMENT14_EXT #endif #ifdef COLOR_ATTACHMENT15_EXT #undef COLOR_ATTACHMENT15_EXT #endif #ifdef DEPTH_ATTACHMENT_EXT #undef DEPTH_ATTACHMENT_EXT #endif #ifdef STENCIL_ATTACHMENT_EXT #undef STENCIL_ATTACHMENT_EXT #endif #ifdef FRAMEBUFFER_EXT #undef FRAMEBUFFER_EXT #endif #ifdef RENDERBUFFER_EXT #undef RENDERBUFFER_EXT #endif #ifdef RENDERBUFFER_WIDTH_EXT #undef RENDERBUFFER_WIDTH_EXT #endif #ifdef RENDERBUFFER_HEIGHT_EXT #undef RENDERBUFFER_HEIGHT_EXT #endif #ifdef RENDERBUFFER_INTERNAL_FORMAT_EXT #undef RENDERBUFFER_INTERNAL_FORMAT_EXT #endif #ifdef STENCIL_INDEX1_EXT #undef STENCIL_INDEX1_EXT #endif #ifdef STENCIL_INDEX4_EXT #undef STENCIL_INDEX4_EXT #endif #ifdef STENCIL_INDEX8_EXT #undef STENCIL_INDEX8_EXT #endif #ifdef STENCIL_INDEX16_EXT #undef STENCIL_INDEX16_EXT #endif #ifdef RENDERBUFFER_RED_SIZE_EXT #undef RENDERBUFFER_RED_SIZE_EXT #endif #ifdef RENDERBUFFER_GREEN_SIZE_EXT #undef RENDERBUFFER_GREEN_SIZE_EXT #endif #ifdef RENDERBUFFER_BLUE_SIZE_EXT #undef RENDERBUFFER_BLUE_SIZE_EXT #endif #ifdef RENDERBUFFER_ALPHA_SIZE_EXT #undef RENDERBUFFER_ALPHA_SIZE_EXT #endif #ifdef RENDERBUFFER_DEPTH_SIZE_EXT #undef RENDERBUFFER_DEPTH_SIZE_EXT #endif #ifdef RENDERBUFFER_STENCIL_SIZE_EXT #undef RENDERBUFFER_STENCIL_SIZE_EXT #endif #ifdef FRAMEBUFFER_SRGB_EXT #undef FRAMEBUFFER_SRGB_EXT #endif #ifdef FRAMEBUFFER_SRGB_CAPABLE_EXT #undef FRAMEBUFFER_SRGB_CAPABLE_EXT #endif #ifdef GEOMETRY_SHADER_EXT #undef GEOMETRY_SHADER_EXT #endif #ifdef MAX_GEOMETRY_VARYING_COMPONENTS_EXT #undef MAX_GEOMETRY_VARYING_COMPONENTS_EXT #endif #ifdef MAX_VERTEX_VARYING_COMPONENTS_EXT #undef MAX_VERTEX_VARYING_COMPONENTS_EXT #endif #ifdef MAX_VARYING_COMPONENTS_EXT #undef MAX_VARYING_COMPONENTS_EXT #endif #ifdef MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT #undef MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT #endif #ifdef MAX_GEOMETRY_OUTPUT_VERTICES_EXT #undef MAX_GEOMETRY_OUTPUT_VERTICES_EXT #endif #ifdef MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT #undef MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT #endif #ifdef SAMPLER_1D_ARRAY_EXT #undef SAMPLER_1D_ARRAY_EXT #endif #ifdef SAMPLER_2D_ARRAY_EXT #undef SAMPLER_2D_ARRAY_EXT #endif #ifdef SAMPLER_BUFFER_EXT #undef SAMPLER_BUFFER_EXT #endif #ifdef SAMPLER_1D_ARRAY_SHADOW_EXT #undef SAMPLER_1D_ARRAY_SHADOW_EXT #endif #ifdef SAMPLER_2D_ARRAY_SHADOW_EXT #undef SAMPLER_2D_ARRAY_SHADOW_EXT #endif #ifdef SAMPLER_CUBE_SHADOW_EXT #undef SAMPLER_CUBE_SHADOW_EXT #endif #ifdef UNSIGNED_INT_VEC2_EXT #undef UNSIGNED_INT_VEC2_EXT #endif #ifdef UNSIGNED_INT_VEC3_EXT #undef UNSIGNED_INT_VEC3_EXT #endif #ifdef UNSIGNED_INT_VEC4_EXT #undef UNSIGNED_INT_VEC4_EXT #endif #ifdef INT_SAMPLER_1D_EXT #undef INT_SAMPLER_1D_EXT #endif #ifdef INT_SAMPLER_2D_EXT #undef INT_SAMPLER_2D_EXT #endif #ifdef INT_SAMPLER_3D_EXT #undef INT_SAMPLER_3D_EXT #endif #ifdef INT_SAMPLER_CUBE_EXT #undef INT_SAMPLER_CUBE_EXT #endif #ifdef INT_SAMPLER_2D_RECT_EXT #undef INT_SAMPLER_2D_RECT_EXT #endif #ifdef INT_SAMPLER_1D_ARRAY_EXT #undef INT_SAMPLER_1D_ARRAY_EXT #endif #ifdef INT_SAMPLER_2D_ARRAY_EXT #undef INT_SAMPLER_2D_ARRAY_EXT #endif #ifdef INT_SAMPLER_BUFFER_EXT #undef INT_SAMPLER_BUFFER_EXT #endif #ifdef UNSIGNED_INT_SAMPLER_1D_EXT #undef UNSIGNED_INT_SAMPLER_1D_EXT #endif #ifdef UNSIGNED_INT_SAMPLER_2D_EXT #undef UNSIGNED_INT_SAMPLER_2D_EXT #endif #ifdef UNSIGNED_INT_SAMPLER_3D_EXT #undef UNSIGNED_INT_SAMPLER_3D_EXT #endif #ifdef UNSIGNED_INT_SAMPLER_CUBE_EXT #undef UNSIGNED_INT_SAMPLER_CUBE_EXT #endif #ifdef UNSIGNED_INT_SAMPLER_2D_RECT_EXT #undef UNSIGNED_INT_SAMPLER_2D_RECT_EXT #endif #ifdef UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT #undef UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT #endif #ifdef UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT #undef UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT #endif #ifdef UNSIGNED_INT_SAMPLER_BUFFER_EXT #undef UNSIGNED_INT_SAMPLER_BUFFER_EXT #endif #ifdef HISTOGRAM_EXT #undef HISTOGRAM_EXT #endif #ifdef PROXY_HISTOGRAM_EXT #undef PROXY_HISTOGRAM_EXT #endif #ifdef HISTOGRAM_WIDTH_EXT #undef HISTOGRAM_WIDTH_EXT #endif #ifdef HISTOGRAM_FORMAT_EXT #undef HISTOGRAM_FORMAT_EXT #endif #ifdef HISTOGRAM_RED_SIZE_EXT #undef HISTOGRAM_RED_SIZE_EXT #endif #ifdef HISTOGRAM_GREEN_SIZE_EXT #undef HISTOGRAM_GREEN_SIZE_EXT #endif #ifdef HISTOGRAM_BLUE_SIZE_EXT #undef HISTOGRAM_BLUE_SIZE_EXT #endif #ifdef HISTOGRAM_ALPHA_SIZE_EXT #undef HISTOGRAM_ALPHA_SIZE_EXT #endif #ifdef HISTOGRAM_LUMINANCE_SIZE_EXT #undef HISTOGRAM_LUMINANCE_SIZE_EXT #endif #ifdef HISTOGRAM_SINK_EXT #undef HISTOGRAM_SINK_EXT #endif #ifdef MINMAX_EXT #undef MINMAX_EXT #endif #ifdef MINMAX_FORMAT_EXT #undef MINMAX_FORMAT_EXT #endif #ifdef MINMAX_SINK_EXT #undef MINMAX_SINK_EXT #endif #ifdef TABLE_TOO_LARGE_EXT #undef TABLE_TOO_LARGE_EXT #endif #ifdef IUI_V2F_EXT #undef IUI_V2F_EXT #endif #ifdef IUI_V3F_EXT #undef IUI_V3F_EXT #endif #ifdef IUI_N3F_V2F_EXT #undef IUI_N3F_V2F_EXT #endif #ifdef IUI_N3F_V3F_EXT #undef IUI_N3F_V3F_EXT #endif #ifdef T2F_IUI_V2F_EXT #undef T2F_IUI_V2F_EXT #endif #ifdef T2F_IUI_V3F_EXT #undef T2F_IUI_V3F_EXT #endif #ifdef T2F_IUI_N3F_V2F_EXT #undef T2F_IUI_N3F_V2F_EXT #endif #ifdef T2F_IUI_N3F_V3F_EXT #undef T2F_IUI_N3F_V3F_EXT #endif #ifdef INDEX_TEST_EXT #undef INDEX_TEST_EXT #endif #ifdef INDEX_TEST_FUNC_EXT #undef INDEX_TEST_FUNC_EXT #endif #ifdef INDEX_TEST_REF_EXT #undef INDEX_TEST_REF_EXT #endif #ifdef INDEX_MATERIAL_EXT #undef INDEX_MATERIAL_EXT #endif #ifdef INDEX_MATERIAL_PARAMETER_EXT #undef INDEX_MATERIAL_PARAMETER_EXT #endif #ifdef INDEX_MATERIAL_FACE_EXT #undef INDEX_MATERIAL_FACE_EXT #endif #ifdef FRAGMENT_MATERIAL_EXT #undef FRAGMENT_MATERIAL_EXT #endif #ifdef FRAGMENT_NORMAL_EXT #undef FRAGMENT_NORMAL_EXT #endif #ifdef FRAGMENT_COLOR_EXT #undef FRAGMENT_COLOR_EXT #endif #ifdef ATTENUATION_EXT #undef ATTENUATION_EXT #endif #ifdef SHADOW_ATTENUATION_EXT #undef SHADOW_ATTENUATION_EXT #endif #ifdef TEXTURE_APPLICATION_MODE_EXT #undef TEXTURE_APPLICATION_MODE_EXT #endif #ifdef TEXTURE_LIGHT_EXT #undef TEXTURE_LIGHT_EXT #endif #ifdef TEXTURE_MATERIAL_FACE_EXT #undef TEXTURE_MATERIAL_FACE_EXT #endif #ifdef TEXTURE_MATERIAL_PARAMETER_EXT #undef TEXTURE_MATERIAL_PARAMETER_EXT #endif #ifdef MULTISAMPLE_EXT #undef MULTISAMPLE_EXT #endif #ifdef SAMPLE_ALPHA_TO_MASK_EXT #undef SAMPLE_ALPHA_TO_MASK_EXT #endif #ifdef SAMPLE_ALPHA_TO_ONE_EXT #undef SAMPLE_ALPHA_TO_ONE_EXT #endif #ifdef SAMPLE_MASK_EXT #undef SAMPLE_MASK_EXT #endif #ifdef _1PASS_EXT #undef _1PASS_EXT #endif #ifdef _2PASS_0_EXT #undef _2PASS_0_EXT #endif #ifdef _2PASS_1_EXT #undef _2PASS_1_EXT #endif #ifdef _4PASS_0_EXT #undef _4PASS_0_EXT #endif #ifdef _4PASS_1_EXT #undef _4PASS_1_EXT #endif #ifdef _4PASS_2_EXT #undef _4PASS_2_EXT #endif #ifdef _4PASS_3_EXT #undef _4PASS_3_EXT #endif #ifdef SAMPLE_BUFFERS_EXT #undef SAMPLE_BUFFERS_EXT #endif #ifdef SAMPLES_EXT #undef SAMPLES_EXT #endif #ifdef SAMPLE_MASK_VALUE_EXT #undef SAMPLE_MASK_VALUE_EXT #endif #ifdef SAMPLE_MASK_INVERT_EXT #undef SAMPLE_MASK_INVERT_EXT #endif #ifdef SAMPLE_PATTERN_EXT #undef SAMPLE_PATTERN_EXT #endif #ifdef MULTISAMPLE_BIT_EXT #undef MULTISAMPLE_BIT_EXT #endif #ifdef DEPTH_STENCIL_EXT #undef DEPTH_STENCIL_EXT #endif #ifdef UNSIGNED_INT_24_8_EXT #undef UNSIGNED_INT_24_8_EXT #endif #ifdef DEPTH24_STENCIL8_EXT #undef DEPTH24_STENCIL8_EXT #endif #ifdef TEXTURE_STENCIL_SIZE_EXT #undef TEXTURE_STENCIL_SIZE_EXT #endif #ifdef R11F_G11F_B10F_EXT #undef R11F_G11F_B10F_EXT #endif #ifdef UNSIGNED_INT_10F_11F_11F_REV_EXT #undef UNSIGNED_INT_10F_11F_11F_REV_EXT #endif #ifdef RGBA_SIGNED_COMPONENTS_EXT #undef RGBA_SIGNED_COMPONENTS_EXT #endif #ifdef UNSIGNED_BYTE_3_3_2_EXT #undef UNSIGNED_BYTE_3_3_2_EXT #endif #ifdef UNSIGNED_SHORT_4_4_4_4_EXT #undef UNSIGNED_SHORT_4_4_4_4_EXT #endif #ifdef UNSIGNED_SHORT_5_5_5_1_EXT #undef UNSIGNED_SHORT_5_5_5_1_EXT #endif #ifdef UNSIGNED_INT_8_8_8_8_EXT #undef UNSIGNED_INT_8_8_8_8_EXT #endif #ifdef UNSIGNED_INT_10_10_10_2_EXT #undef UNSIGNED_INT_10_10_10_2_EXT #endif #ifdef COLOR_INDEX1_EXT #undef COLOR_INDEX1_EXT #endif #ifdef COLOR_INDEX2_EXT #undef COLOR_INDEX2_EXT #endif #ifdef COLOR_INDEX4_EXT #undef COLOR_INDEX4_EXT #endif #ifdef COLOR_INDEX8_EXT #undef COLOR_INDEX8_EXT #endif #ifdef COLOR_INDEX12_EXT #undef COLOR_INDEX12_EXT #endif #ifdef COLOR_INDEX16_EXT #undef COLOR_INDEX16_EXT #endif #ifdef TEXTURE_INDEX_SIZE_EXT #undef TEXTURE_INDEX_SIZE_EXT #endif #ifdef PIXEL_PACK_BUFFER_EXT #undef PIXEL_PACK_BUFFER_EXT #endif #ifdef PIXEL_UNPACK_BUFFER_EXT #undef PIXEL_UNPACK_BUFFER_EXT #endif #ifdef PIXEL_PACK_BUFFER_BINDING_EXT #undef PIXEL_PACK_BUFFER_BINDING_EXT #endif #ifdef PIXEL_UNPACK_BUFFER_BINDING_EXT #undef PIXEL_UNPACK_BUFFER_BINDING_EXT #endif #ifdef PIXEL_TRANSFORM_2D_EXT #undef PIXEL_TRANSFORM_2D_EXT #endif #ifdef PIXEL_MAG_FILTER_EXT #undef PIXEL_MAG_FILTER_EXT #endif #ifdef PIXEL_MIN_FILTER_EXT #undef PIXEL_MIN_FILTER_EXT #endif #ifdef PIXEL_CUBIC_WEIGHT_EXT #undef PIXEL_CUBIC_WEIGHT_EXT #endif #ifdef CUBIC_EXT #undef CUBIC_EXT #endif #ifdef AVERAGE_EXT #undef AVERAGE_EXT #endif #ifdef PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT #undef PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT #endif #ifdef MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT #undef MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT #endif #ifdef PIXEL_TRANSFORM_2D_MATRIX_EXT #undef PIXEL_TRANSFORM_2D_MATRIX_EXT #endif #ifdef POINT_SIZE_MIN_EXT #undef POINT_SIZE_MIN_EXT #endif #ifdef POINT_SIZE_MAX_EXT #undef POINT_SIZE_MAX_EXT #endif #ifdef POINT_FADE_THRESHOLD_SIZE_EXT #undef POINT_FADE_THRESHOLD_SIZE_EXT #endif #ifdef DISTANCE_ATTENUATION_EXT #undef DISTANCE_ATTENUATION_EXT #endif #ifdef POLYGON_OFFSET_EXT #undef POLYGON_OFFSET_EXT #endif #ifdef POLYGON_OFFSET_FACTOR_EXT #undef POLYGON_OFFSET_FACTOR_EXT #endif #ifdef POLYGON_OFFSET_BIAS_EXT #undef POLYGON_OFFSET_BIAS_EXT #endif #ifdef QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT #undef QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT #endif #ifdef FIRST_VERTEX_CONVENTION_EXT #undef FIRST_VERTEX_CONVENTION_EXT #endif #ifdef LAST_VERTEX_CONVENTION_EXT #undef LAST_VERTEX_CONVENTION_EXT #endif #ifdef PROVOKING_VERTEX_EXT #undef PROVOKING_VERTEX_EXT #endif #ifdef RESCALE_NORMAL_EXT #undef RESCALE_NORMAL_EXT #endif #ifdef COLOR_SUM_EXT #undef COLOR_SUM_EXT #endif #ifdef CURRENT_SECONDARY_COLOR_EXT #undef CURRENT_SECONDARY_COLOR_EXT #endif #ifdef SECONDARY_COLOR_ARRAY_SIZE_EXT #undef SECONDARY_COLOR_ARRAY_SIZE_EXT #endif #ifdef SECONDARY_COLOR_ARRAY_TYPE_EXT #undef SECONDARY_COLOR_ARRAY_TYPE_EXT #endif #ifdef SECONDARY_COLOR_ARRAY_STRIDE_EXT #undef SECONDARY_COLOR_ARRAY_STRIDE_EXT #endif #ifdef SECONDARY_COLOR_ARRAY_POINTER_EXT #undef SECONDARY_COLOR_ARRAY_POINTER_EXT #endif #ifdef SECONDARY_COLOR_ARRAY_EXT #undef SECONDARY_COLOR_ARRAY_EXT #endif #ifdef ACTIVE_PROGRAM_EXT #undef ACTIVE_PROGRAM_EXT #endif #ifdef LIGHT_MODEL_COLOR_CONTROL_EXT #undef LIGHT_MODEL_COLOR_CONTROL_EXT #endif #ifdef SINGLE_COLOR_EXT #undef SINGLE_COLOR_EXT #endif #ifdef SEPARATE_SPECULAR_COLOR_EXT #undef SEPARATE_SPECULAR_COLOR_EXT #endif #ifdef SHARED_TEXTURE_PALETTE_EXT #undef SHARED_TEXTURE_PALETTE_EXT #endif #ifdef STENCIL_TAG_BITS_EXT #undef STENCIL_TAG_BITS_EXT #endif #ifdef STENCIL_CLEAR_TAG_VALUE_EXT #undef STENCIL_CLEAR_TAG_VALUE_EXT #endif #ifdef STENCIL_TEST_TWO_SIDE_EXT #undef STENCIL_TEST_TWO_SIDE_EXT #endif #ifdef ACTIVE_STENCIL_FACE_EXT #undef ACTIVE_STENCIL_FACE_EXT #endif #ifdef INCR_WRAP_EXT #undef INCR_WRAP_EXT #endif #ifdef DECR_WRAP_EXT #undef DECR_WRAP_EXT #endif #ifdef ALPHA4_EXT #undef ALPHA4_EXT #endif #ifdef ALPHA8_EXT #undef ALPHA8_EXT #endif #ifdef ALPHA12_EXT #undef ALPHA12_EXT #endif #ifdef ALPHA16_EXT #undef ALPHA16_EXT #endif #ifdef LUMINANCE4_EXT #undef LUMINANCE4_EXT #endif #ifdef LUMINANCE8_EXT #undef LUMINANCE8_EXT #endif #ifdef LUMINANCE12_EXT #undef LUMINANCE12_EXT #endif #ifdef LUMINANCE16_EXT #undef LUMINANCE16_EXT #endif #ifdef LUMINANCE4_ALPHA4_EXT #undef LUMINANCE4_ALPHA4_EXT #endif #ifdef LUMINANCE6_ALPHA2_EXT #undef LUMINANCE6_ALPHA2_EXT #endif #ifdef LUMINANCE8_ALPHA8_EXT #undef LUMINANCE8_ALPHA8_EXT #endif #ifdef LUMINANCE12_ALPHA4_EXT #undef LUMINANCE12_ALPHA4_EXT #endif #ifdef LUMINANCE12_ALPHA12_EXT #undef LUMINANCE12_ALPHA12_EXT #endif #ifdef LUMINANCE16_ALPHA16_EXT #undef LUMINANCE16_ALPHA16_EXT #endif #ifdef INTENSITY_EXT #undef INTENSITY_EXT #endif #ifdef INTENSITY4_EXT #undef INTENSITY4_EXT #endif #ifdef INTENSITY8_EXT #undef INTENSITY8_EXT #endif #ifdef INTENSITY12_EXT #undef INTENSITY12_EXT #endif #ifdef INTENSITY16_EXT #undef INTENSITY16_EXT #endif #ifdef RGB2_EXT #undef RGB2_EXT #endif #ifdef RGB4_EXT #undef RGB4_EXT #endif #ifdef RGB5_EXT #undef RGB5_EXT #endif #ifdef RGB8_EXT #undef RGB8_EXT #endif #ifdef RGB10_EXT #undef RGB10_EXT #endif #ifdef RGB12_EXT #undef RGB12_EXT #endif #ifdef RGB16_EXT #undef RGB16_EXT #endif #ifdef RGBA2_EXT #undef RGBA2_EXT #endif #ifdef RGBA4_EXT #undef RGBA4_EXT #endif #ifdef RGB5_A1_EXT #undef RGB5_A1_EXT #endif #ifdef RGBA8_EXT #undef RGBA8_EXT #endif #ifdef RGB10_A2_EXT #undef RGB10_A2_EXT #endif #ifdef RGBA12_EXT #undef RGBA12_EXT #endif #ifdef RGBA16_EXT #undef RGBA16_EXT #endif #ifdef TEXTURE_RED_SIZE_EXT #undef TEXTURE_RED_SIZE_EXT #endif #ifdef TEXTURE_GREEN_SIZE_EXT #undef TEXTURE_GREEN_SIZE_EXT #endif #ifdef TEXTURE_BLUE_SIZE_EXT #undef TEXTURE_BLUE_SIZE_EXT #endif #ifdef TEXTURE_ALPHA_SIZE_EXT #undef TEXTURE_ALPHA_SIZE_EXT #endif #ifdef TEXTURE_LUMINANCE_SIZE_EXT #undef TEXTURE_LUMINANCE_SIZE_EXT #endif #ifdef TEXTURE_INTENSITY_SIZE_EXT #undef TEXTURE_INTENSITY_SIZE_EXT #endif #ifdef REPLACE_EXT #undef REPLACE_EXT #endif #ifdef PROXY_TEXTURE_1D_EXT #undef PROXY_TEXTURE_1D_EXT #endif #ifdef PROXY_TEXTURE_2D_EXT #undef PROXY_TEXTURE_2D_EXT #endif #ifdef TEXTURE_TOO_LARGE_EXT #undef TEXTURE_TOO_LARGE_EXT #endif #ifdef PACK_SKIP_IMAGES_EXT #undef PACK_SKIP_IMAGES_EXT #endif #ifdef PACK_IMAGE_HEIGHT_EXT #undef PACK_IMAGE_HEIGHT_EXT #endif #ifdef UNPACK_SKIP_IMAGES_EXT #undef UNPACK_SKIP_IMAGES_EXT #endif #ifdef UNPACK_IMAGE_HEIGHT_EXT #undef UNPACK_IMAGE_HEIGHT_EXT #endif #ifdef TEXTURE_3D_EXT #undef TEXTURE_3D_EXT #endif #ifdef PROXY_TEXTURE_3D_EXT #undef PROXY_TEXTURE_3D_EXT #endif #ifdef TEXTURE_DEPTH_EXT #undef TEXTURE_DEPTH_EXT #endif #ifdef TEXTURE_WRAP_R_EXT #undef TEXTURE_WRAP_R_EXT #endif #ifdef MAX_3D_TEXTURE_SIZE_EXT #undef MAX_3D_TEXTURE_SIZE_EXT #endif #ifdef TEXTURE_1D_ARRAY_EXT #undef TEXTURE_1D_ARRAY_EXT #endif #ifdef PROXY_TEXTURE_1D_ARRAY_EXT #undef PROXY_TEXTURE_1D_ARRAY_EXT #endif #ifdef TEXTURE_2D_ARRAY_EXT #undef TEXTURE_2D_ARRAY_EXT #endif #ifdef PROXY_TEXTURE_2D_ARRAY_EXT #undef PROXY_TEXTURE_2D_ARRAY_EXT #endif #ifdef TEXTURE_BINDING_1D_ARRAY_EXT #undef TEXTURE_BINDING_1D_ARRAY_EXT #endif #ifdef TEXTURE_BINDING_2D_ARRAY_EXT #undef TEXTURE_BINDING_2D_ARRAY_EXT #endif #ifdef MAX_ARRAY_TEXTURE_LAYERS_EXT #undef MAX_ARRAY_TEXTURE_LAYERS_EXT #endif #ifdef COMPARE_REF_DEPTH_TO_TEXTURE_EXT #undef COMPARE_REF_DEPTH_TO_TEXTURE_EXT #endif #ifdef TEXTURE_BUFFER_EXT #undef TEXTURE_BUFFER_EXT #endif #ifdef MAX_TEXTURE_BUFFER_SIZE_EXT #undef MAX_TEXTURE_BUFFER_SIZE_EXT #endif #ifdef TEXTURE_BINDING_BUFFER_EXT #undef TEXTURE_BINDING_BUFFER_EXT #endif #ifdef TEXTURE_BUFFER_DATA_STORE_BINDING_EXT #undef TEXTURE_BUFFER_DATA_STORE_BINDING_EXT #endif #ifdef TEXTURE_BUFFER_FORMAT_EXT #undef TEXTURE_BUFFER_FORMAT_EXT #endif #ifdef COMPRESSED_LUMINANCE_LATC1_EXT #undef COMPRESSED_LUMINANCE_LATC1_EXT #endif #ifdef COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT #undef COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT #endif #ifdef COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT #undef COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT #endif #ifdef COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT #undef COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT #endif #ifdef COMPRESSED_RED_RGTC1_EXT #undef COMPRESSED_RED_RGTC1_EXT #endif #ifdef COMPRESSED_SIGNED_RED_RGTC1_EXT #undef COMPRESSED_SIGNED_RED_RGTC1_EXT #endif #ifdef COMPRESSED_RED_GREEN_RGTC2_EXT #undef COMPRESSED_RED_GREEN_RGTC2_EXT #endif #ifdef COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT #undef COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT #endif #ifdef COMPRESSED_RGB_S3TC_DXT1_EXT #undef COMPRESSED_RGB_S3TC_DXT1_EXT #endif #ifdef COMPRESSED_RGBA_S3TC_DXT1_EXT #undef COMPRESSED_RGBA_S3TC_DXT1_EXT #endif #ifdef COMPRESSED_RGBA_S3TC_DXT3_EXT #undef COMPRESSED_RGBA_S3TC_DXT3_EXT #endif #ifdef COMPRESSED_RGBA_S3TC_DXT5_EXT #undef COMPRESSED_RGBA_S3TC_DXT5_EXT #endif #ifdef NORMAL_MAP_EXT #undef NORMAL_MAP_EXT #endif #ifdef REFLECTION_MAP_EXT #undef REFLECTION_MAP_EXT #endif #ifdef TEXTURE_CUBE_MAP_EXT #undef TEXTURE_CUBE_MAP_EXT #endif #ifdef TEXTURE_BINDING_CUBE_MAP_EXT #undef TEXTURE_BINDING_CUBE_MAP_EXT #endif #ifdef TEXTURE_CUBE_MAP_POSITIVE_X_EXT #undef TEXTURE_CUBE_MAP_POSITIVE_X_EXT #endif #ifdef TEXTURE_CUBE_MAP_NEGATIVE_X_EXT #undef TEXTURE_CUBE_MAP_NEGATIVE_X_EXT #endif #ifdef TEXTURE_CUBE_MAP_POSITIVE_Y_EXT #undef TEXTURE_CUBE_MAP_POSITIVE_Y_EXT #endif #ifdef TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT #undef TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT #endif #ifdef TEXTURE_CUBE_MAP_POSITIVE_Z_EXT #undef TEXTURE_CUBE_MAP_POSITIVE_Z_EXT #endif #ifdef TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT #undef TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT #endif #ifdef PROXY_TEXTURE_CUBE_MAP_EXT #undef PROXY_TEXTURE_CUBE_MAP_EXT #endif #ifdef MAX_CUBE_MAP_TEXTURE_SIZE_EXT #undef MAX_CUBE_MAP_TEXTURE_SIZE_EXT #endif #ifdef COMBINE_EXT #undef COMBINE_EXT #endif #ifdef COMBINE_RGB_EXT #undef COMBINE_RGB_EXT #endif #ifdef COMBINE_ALPHA_EXT #undef COMBINE_ALPHA_EXT #endif #ifdef RGB_SCALE_EXT #undef RGB_SCALE_EXT #endif #ifdef ADD_SIGNED_EXT #undef ADD_SIGNED_EXT #endif #ifdef INTERPOLATE_EXT #undef INTERPOLATE_EXT #endif #ifdef CONSTANT_EXT #undef CONSTANT_EXT #endif #ifdef PRIMARY_COLOR_EXT #undef PRIMARY_COLOR_EXT #endif #ifdef PREVIOUS_EXT #undef PREVIOUS_EXT #endif #ifdef SOURCE0_RGB_EXT #undef SOURCE0_RGB_EXT #endif #ifdef SOURCE1_RGB_EXT #undef SOURCE1_RGB_EXT #endif #ifdef SOURCE2_RGB_EXT #undef SOURCE2_RGB_EXT #endif #ifdef SOURCE0_ALPHA_EXT #undef SOURCE0_ALPHA_EXT #endif #ifdef SOURCE1_ALPHA_EXT #undef SOURCE1_ALPHA_EXT #endif #ifdef SOURCE2_ALPHA_EXT #undef SOURCE2_ALPHA_EXT #endif #ifdef OPERAND0_RGB_EXT #undef OPERAND0_RGB_EXT #endif #ifdef OPERAND1_RGB_EXT #undef OPERAND1_RGB_EXT #endif #ifdef OPERAND2_RGB_EXT #undef OPERAND2_RGB_EXT #endif #ifdef OPERAND0_ALPHA_EXT #undef OPERAND0_ALPHA_EXT #endif #ifdef OPERAND1_ALPHA_EXT #undef OPERAND1_ALPHA_EXT #endif #ifdef OPERAND2_ALPHA_EXT #undef OPERAND2_ALPHA_EXT #endif #ifdef DOT3_RGB_EXT #undef DOT3_RGB_EXT #endif #ifdef DOT3_RGBA_EXT #undef DOT3_RGBA_EXT #endif #ifdef TEXTURE_MAX_ANISOTROPY_EXT #undef TEXTURE_MAX_ANISOTROPY_EXT #endif #ifdef MAX_TEXTURE_MAX_ANISOTROPY_EXT #undef MAX_TEXTURE_MAX_ANISOTROPY_EXT #endif #ifdef RGBA32UI_EXT #undef RGBA32UI_EXT #endif #ifdef RGB32UI_EXT #undef RGB32UI_EXT #endif #ifdef ALPHA32UI_EXT #undef ALPHA32UI_EXT #endif #ifdef INTENSITY32UI_EXT #undef INTENSITY32UI_EXT #endif #ifdef LUMINANCE32UI_EXT #undef LUMINANCE32UI_EXT #endif #ifdef LUMINANCE_ALPHA32UI_EXT #undef LUMINANCE_ALPHA32UI_EXT #endif #ifdef RGBA16UI_EXT #undef RGBA16UI_EXT #endif #ifdef RGB16UI_EXT #undef RGB16UI_EXT #endif #ifdef ALPHA16UI_EXT #undef ALPHA16UI_EXT #endif #ifdef INTENSITY16UI_EXT #undef INTENSITY16UI_EXT #endif #ifdef LUMINANCE16UI_EXT #undef LUMINANCE16UI_EXT #endif #ifdef LUMINANCE_ALPHA16UI_EXT #undef LUMINANCE_ALPHA16UI_EXT #endif #ifdef RGBA8UI_EXT #undef RGBA8UI_EXT #endif #ifdef RGB8UI_EXT #undef RGB8UI_EXT #endif #ifdef ALPHA8UI_EXT #undef ALPHA8UI_EXT #endif #ifdef INTENSITY8UI_EXT #undef INTENSITY8UI_EXT #endif #ifdef LUMINANCE8UI_EXT #undef LUMINANCE8UI_EXT #endif #ifdef LUMINANCE_ALPHA8UI_EXT #undef LUMINANCE_ALPHA8UI_EXT #endif #ifdef RGBA32I_EXT #undef RGBA32I_EXT #endif #ifdef RGB32I_EXT #undef RGB32I_EXT #endif #ifdef ALPHA32I_EXT #undef ALPHA32I_EXT #endif #ifdef INTENSITY32I_EXT #undef INTENSITY32I_EXT #endif #ifdef LUMINANCE32I_EXT #undef LUMINANCE32I_EXT #endif #ifdef LUMINANCE_ALPHA32I_EXT #undef LUMINANCE_ALPHA32I_EXT #endif #ifdef RGBA16I_EXT #undef RGBA16I_EXT #endif #ifdef RGB16I_EXT #undef RGB16I_EXT #endif #ifdef ALPHA16I_EXT #undef ALPHA16I_EXT #endif #ifdef INTENSITY16I_EXT #undef INTENSITY16I_EXT #endif #ifdef LUMINANCE16I_EXT #undef LUMINANCE16I_EXT #endif #ifdef LUMINANCE_ALPHA16I_EXT #undef LUMINANCE_ALPHA16I_EXT #endif #ifdef RGBA8I_EXT #undef RGBA8I_EXT #endif #ifdef RGB8I_EXT #undef RGB8I_EXT #endif #ifdef ALPHA8I_EXT #undef ALPHA8I_EXT #endif #ifdef INTENSITY8I_EXT #undef INTENSITY8I_EXT #endif #ifdef LUMINANCE8I_EXT #undef LUMINANCE8I_EXT #endif #ifdef LUMINANCE_ALPHA8I_EXT #undef LUMINANCE_ALPHA8I_EXT #endif #ifdef RED_INTEGER_EXT #undef RED_INTEGER_EXT #endif #ifdef GREEN_INTEGER_EXT #undef GREEN_INTEGER_EXT #endif #ifdef BLUE_INTEGER_EXT #undef BLUE_INTEGER_EXT #endif #ifdef ALPHA_INTEGER_EXT #undef ALPHA_INTEGER_EXT #endif #ifdef RGB_INTEGER_EXT #undef RGB_INTEGER_EXT #endif #ifdef RGBA_INTEGER_EXT #undef RGBA_INTEGER_EXT #endif #ifdef BGR_INTEGER_EXT #undef BGR_INTEGER_EXT #endif #ifdef BGRA_INTEGER_EXT #undef BGRA_INTEGER_EXT #endif #ifdef LUMINANCE_INTEGER_EXT #undef LUMINANCE_INTEGER_EXT #endif #ifdef LUMINANCE_ALPHA_INTEGER_EXT #undef LUMINANCE_ALPHA_INTEGER_EXT #endif #ifdef RGBA_INTEGER_MODE_EXT #undef RGBA_INTEGER_MODE_EXT #endif #ifdef MAX_TEXTURE_LOD_BIAS_EXT #undef MAX_TEXTURE_LOD_BIAS_EXT #endif #ifdef TEXTURE_FILTER_CONTROL_EXT #undef TEXTURE_FILTER_CONTROL_EXT #endif #ifdef TEXTURE_LOD_BIAS_EXT #undef TEXTURE_LOD_BIAS_EXT #endif #ifdef MIRROR_CLAMP_EXT #undef MIRROR_CLAMP_EXT #endif #ifdef MIRROR_CLAMP_TO_EDGE_EXT #undef MIRROR_CLAMP_TO_EDGE_EXT #endif #ifdef MIRROR_CLAMP_TO_BORDER_EXT #undef MIRROR_CLAMP_TO_BORDER_EXT #endif #ifdef TEXTURE_PRIORITY_EXT #undef TEXTURE_PRIORITY_EXT #endif #ifdef TEXTURE_RESIDENT_EXT #undef TEXTURE_RESIDENT_EXT #endif #ifdef TEXTURE_1D_BINDING_EXT #undef TEXTURE_1D_BINDING_EXT #endif #ifdef TEXTURE_2D_BINDING_EXT #undef TEXTURE_2D_BINDING_EXT #endif #ifdef TEXTURE_3D_BINDING_EXT #undef TEXTURE_3D_BINDING_EXT #endif #ifdef PERTURB_EXT #undef PERTURB_EXT #endif #ifdef TEXTURE_NORMAL_EXT #undef TEXTURE_NORMAL_EXT #endif #ifdef SRGB_EXT #undef SRGB_EXT #endif #ifdef SRGB8_EXT #undef SRGB8_EXT #endif #ifdef SRGB_ALPHA_EXT #undef SRGB_ALPHA_EXT #endif #ifdef SRGB8_ALPHA8_EXT #undef SRGB8_ALPHA8_EXT #endif #ifdef SLUMINANCE_ALPHA_EXT #undef SLUMINANCE_ALPHA_EXT #endif #ifdef SLUMINANCE8_ALPHA8_EXT #undef SLUMINANCE8_ALPHA8_EXT #endif #ifdef SLUMINANCE_EXT #undef SLUMINANCE_EXT #endif #ifdef SLUMINANCE8_EXT #undef SLUMINANCE8_EXT #endif #ifdef COMPRESSED_SRGB_EXT #undef COMPRESSED_SRGB_EXT #endif #ifdef COMPRESSED_SRGB_ALPHA_EXT #undef COMPRESSED_SRGB_ALPHA_EXT #endif #ifdef COMPRESSED_SLUMINANCE_EXT #undef COMPRESSED_SLUMINANCE_EXT #endif #ifdef COMPRESSED_SLUMINANCE_ALPHA_EXT #undef COMPRESSED_SLUMINANCE_ALPHA_EXT #endif #ifdef COMPRESSED_SRGB_S3TC_DXT1_EXT #undef COMPRESSED_SRGB_S3TC_DXT1_EXT #endif #ifdef COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT #undef COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT #endif #ifdef COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT #undef COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT #endif #ifdef COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT #undef COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT #endif #ifdef RGB9_E5_EXT #undef RGB9_E5_EXT #endif #ifdef UNSIGNED_INT_5_9_9_9_REV_EXT #undef UNSIGNED_INT_5_9_9_9_REV_EXT #endif #ifdef TEXTURE_SHARED_SIZE_EXT #undef TEXTURE_SHARED_SIZE_EXT #endif #ifdef ALPHA_SNORM #undef ALPHA_SNORM #endif #ifdef LUMINANCE_SNORM #undef LUMINANCE_SNORM #endif #ifdef LUMINANCE_ALPHA_SNORM #undef LUMINANCE_ALPHA_SNORM #endif #ifdef INTENSITY_SNORM #undef INTENSITY_SNORM #endif #ifdef ALPHA8_SNORM #undef ALPHA8_SNORM #endif #ifdef LUMINANCE8_SNORM #undef LUMINANCE8_SNORM #endif #ifdef LUMINANCE8_ALPHA8_SNORM #undef LUMINANCE8_ALPHA8_SNORM #endif #ifdef INTENSITY8_SNORM #undef INTENSITY8_SNORM #endif #ifdef ALPHA16_SNORM #undef ALPHA16_SNORM #endif #ifdef LUMINANCE16_SNORM #undef LUMINANCE16_SNORM #endif #ifdef LUMINANCE16_ALPHA16_SNORM #undef LUMINANCE16_ALPHA16_SNORM #endif #ifdef INTENSITY16_SNORM #undef INTENSITY16_SNORM #endif #ifdef TEXTURE_SWIZZLE_R_EXT #undef TEXTURE_SWIZZLE_R_EXT #endif #ifdef TEXTURE_SWIZZLE_G_EXT #undef TEXTURE_SWIZZLE_G_EXT #endif #ifdef TEXTURE_SWIZZLE_B_EXT #undef TEXTURE_SWIZZLE_B_EXT #endif #ifdef TEXTURE_SWIZZLE_A_EXT #undef TEXTURE_SWIZZLE_A_EXT #endif #ifdef TEXTURE_SWIZZLE_RGBA_EXT #undef TEXTURE_SWIZZLE_RGBA_EXT #endif #ifdef TIME_ELAPSED_EXT #undef TIME_ELAPSED_EXT #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_EXT #undef TRANSFORM_FEEDBACK_BUFFER_EXT #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_START_EXT #undef TRANSFORM_FEEDBACK_BUFFER_START_EXT #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT #undef TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT #undef TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT #endif #ifdef INTERLEAVED_ATTRIBS_EXT #undef INTERLEAVED_ATTRIBS_EXT #endif #ifdef SEPARATE_ATTRIBS_EXT #undef SEPARATE_ATTRIBS_EXT #endif #ifdef PRIMITIVES_GENERATED_EXT #undef PRIMITIVES_GENERATED_EXT #endif #ifdef TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT #undef TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT #endif #ifdef RASTERIZER_DISCARD_EXT #undef RASTERIZER_DISCARD_EXT #endif #ifdef MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT #undef MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT #endif #ifdef MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT #undef MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT #endif #ifdef MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT #undef MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT #endif #ifdef TRANSFORM_FEEDBACK_VARYINGS_EXT #undef TRANSFORM_FEEDBACK_VARYINGS_EXT #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_MODE_EXT #undef TRANSFORM_FEEDBACK_BUFFER_MODE_EXT #endif #ifdef TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT #undef TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT #endif #ifdef VERTEX_ARRAY_EXT #undef VERTEX_ARRAY_EXT #endif #ifdef NORMAL_ARRAY_EXT #undef NORMAL_ARRAY_EXT #endif #ifdef COLOR_ARRAY_EXT #undef COLOR_ARRAY_EXT #endif #ifdef INDEX_ARRAY_EXT #undef INDEX_ARRAY_EXT #endif #ifdef TEXTURE_COORD_ARRAY_EXT #undef TEXTURE_COORD_ARRAY_EXT #endif #ifdef EDGE_FLAG_ARRAY_EXT #undef EDGE_FLAG_ARRAY_EXT #endif #ifdef VERTEX_ARRAY_SIZE_EXT #undef VERTEX_ARRAY_SIZE_EXT #endif #ifdef VERTEX_ARRAY_TYPE_EXT #undef VERTEX_ARRAY_TYPE_EXT #endif #ifdef VERTEX_ARRAY_STRIDE_EXT #undef VERTEX_ARRAY_STRIDE_EXT #endif #ifdef VERTEX_ARRAY_COUNT_EXT #undef VERTEX_ARRAY_COUNT_EXT #endif #ifdef NORMAL_ARRAY_TYPE_EXT #undef NORMAL_ARRAY_TYPE_EXT #endif #ifdef NORMAL_ARRAY_STRIDE_EXT #undef NORMAL_ARRAY_STRIDE_EXT #endif #ifdef NORMAL_ARRAY_COUNT_EXT #undef NORMAL_ARRAY_COUNT_EXT #endif #ifdef COLOR_ARRAY_SIZE_EXT #undef COLOR_ARRAY_SIZE_EXT #endif #ifdef COLOR_ARRAY_TYPE_EXT #undef COLOR_ARRAY_TYPE_EXT #endif #ifdef COLOR_ARRAY_STRIDE_EXT #undef COLOR_ARRAY_STRIDE_EXT #endif #ifdef COLOR_ARRAY_COUNT_EXT #undef COLOR_ARRAY_COUNT_EXT #endif #ifdef INDEX_ARRAY_TYPE_EXT #undef INDEX_ARRAY_TYPE_EXT #endif #ifdef INDEX_ARRAY_STRIDE_EXT #undef INDEX_ARRAY_STRIDE_EXT #endif #ifdef INDEX_ARRAY_COUNT_EXT #undef INDEX_ARRAY_COUNT_EXT #endif #ifdef TEXTURE_COORD_ARRAY_SIZE_EXT #undef TEXTURE_COORD_ARRAY_SIZE_EXT #endif #ifdef TEXTURE_COORD_ARRAY_TYPE_EXT #undef TEXTURE_COORD_ARRAY_TYPE_EXT #endif #ifdef TEXTURE_COORD_ARRAY_STRIDE_EXT #undef TEXTURE_COORD_ARRAY_STRIDE_EXT #endif #ifdef TEXTURE_COORD_ARRAY_COUNT_EXT #undef TEXTURE_COORD_ARRAY_COUNT_EXT #endif #ifdef EDGE_FLAG_ARRAY_STRIDE_EXT #undef EDGE_FLAG_ARRAY_STRIDE_EXT #endif #ifdef EDGE_FLAG_ARRAY_COUNT_EXT #undef EDGE_FLAG_ARRAY_COUNT_EXT #endif #ifdef VERTEX_ARRAY_POINTER_EXT #undef VERTEX_ARRAY_POINTER_EXT #endif #ifdef NORMAL_ARRAY_POINTER_EXT #undef NORMAL_ARRAY_POINTER_EXT #endif #ifdef COLOR_ARRAY_POINTER_EXT #undef COLOR_ARRAY_POINTER_EXT #endif #ifdef INDEX_ARRAY_POINTER_EXT #undef INDEX_ARRAY_POINTER_EXT #endif #ifdef TEXTURE_COORD_ARRAY_POINTER_EXT #undef TEXTURE_COORD_ARRAY_POINTER_EXT #endif #ifdef EDGE_FLAG_ARRAY_POINTER_EXT #undef EDGE_FLAG_ARRAY_POINTER_EXT #endif #ifdef VERTEX_SHADER_EXT #undef VERTEX_SHADER_EXT #endif #ifdef VERTEX_SHADER_BINDING_EXT #undef VERTEX_SHADER_BINDING_EXT #endif #ifdef OP_INDEX_EXT #undef OP_INDEX_EXT #endif #ifdef OP_NEGATE_EXT #undef OP_NEGATE_EXT #endif #ifdef OP_DOT3_EXT #undef OP_DOT3_EXT #endif #ifdef OP_DOT4_EXT #undef OP_DOT4_EXT #endif #ifdef OP_MUL_EXT #undef OP_MUL_EXT #endif #ifdef OP_ADD_EXT #undef OP_ADD_EXT #endif #ifdef OP_MADD_EXT #undef OP_MADD_EXT #endif #ifdef OP_FRAC_EXT #undef OP_FRAC_EXT #endif #ifdef OP_MAX_EXT #undef OP_MAX_EXT #endif #ifdef OP_MIN_EXT #undef OP_MIN_EXT #endif #ifdef OP_SET_GE_EXT #undef OP_SET_GE_EXT #endif #ifdef OP_SET_LT_EXT #undef OP_SET_LT_EXT #endif #ifdef OP_CLAMP_EXT #undef OP_CLAMP_EXT #endif #ifdef OP_FLOOR_EXT #undef OP_FLOOR_EXT #endif #ifdef OP_ROUND_EXT #undef OP_ROUND_EXT #endif #ifdef OP_EXP_BASE_2_EXT #undef OP_EXP_BASE_2_EXT #endif #ifdef OP_LOG_BASE_2_EXT #undef OP_LOG_BASE_2_EXT #endif #ifdef OP_POWER_EXT #undef OP_POWER_EXT #endif #ifdef OP_RECIP_EXT #undef OP_RECIP_EXT #endif #ifdef OP_RECIP_SQRT_EXT #undef OP_RECIP_SQRT_EXT #endif #ifdef OP_SUB_EXT #undef OP_SUB_EXT #endif #ifdef OP_CROSS_PRODUCT_EXT #undef OP_CROSS_PRODUCT_EXT #endif #ifdef OP_MULTIPLY_MATRIX_EXT #undef OP_MULTIPLY_MATRIX_EXT #endif #ifdef OP_MOV_EXT #undef OP_MOV_EXT #endif #ifdef OUTPUT_VERTEX_EXT #undef OUTPUT_VERTEX_EXT #endif #ifdef OUTPUT_COLOR0_EXT #undef OUTPUT_COLOR0_EXT #endif #ifdef OUTPUT_COLOR1_EXT #undef OUTPUT_COLOR1_EXT #endif #ifdef OUTPUT_TEXTURE_COORD0_EXT #undef OUTPUT_TEXTURE_COORD0_EXT #endif #ifdef OUTPUT_TEXTURE_COORD1_EXT #undef OUTPUT_TEXTURE_COORD1_EXT #endif #ifdef OUTPUT_TEXTURE_COORD2_EXT #undef OUTPUT_TEXTURE_COORD2_EXT #endif #ifdef OUTPUT_TEXTURE_COORD3_EXT #undef OUTPUT_TEXTURE_COORD3_EXT #endif #ifdef OUTPUT_TEXTURE_COORD4_EXT #undef OUTPUT_TEXTURE_COORD4_EXT #endif #ifdef OUTPUT_TEXTURE_COORD5_EXT #undef OUTPUT_TEXTURE_COORD5_EXT #endif #ifdef OUTPUT_TEXTURE_COORD6_EXT #undef OUTPUT_TEXTURE_COORD6_EXT #endif #ifdef OUTPUT_TEXTURE_COORD7_EXT #undef OUTPUT_TEXTURE_COORD7_EXT #endif #ifdef OUTPUT_TEXTURE_COORD8_EXT #undef OUTPUT_TEXTURE_COORD8_EXT #endif #ifdef OUTPUT_TEXTURE_COORD9_EXT #undef OUTPUT_TEXTURE_COORD9_EXT #endif #ifdef OUTPUT_TEXTURE_COORD10_EXT #undef OUTPUT_TEXTURE_COORD10_EXT #endif #ifdef OUTPUT_TEXTURE_COORD11_EXT #undef OUTPUT_TEXTURE_COORD11_EXT #endif #ifdef OUTPUT_TEXTURE_COORD12_EXT #undef OUTPUT_TEXTURE_COORD12_EXT #endif #ifdef OUTPUT_TEXTURE_COORD13_EXT #undef OUTPUT_TEXTURE_COORD13_EXT #endif #ifdef OUTPUT_TEXTURE_COORD14_EXT #undef OUTPUT_TEXTURE_COORD14_EXT #endif #ifdef OUTPUT_TEXTURE_COORD15_EXT #undef OUTPUT_TEXTURE_COORD15_EXT #endif #ifdef OUTPUT_TEXTURE_COORD16_EXT #undef OUTPUT_TEXTURE_COORD16_EXT #endif #ifdef OUTPUT_TEXTURE_COORD17_EXT #undef OUTPUT_TEXTURE_COORD17_EXT #endif #ifdef OUTPUT_TEXTURE_COORD18_EXT #undef OUTPUT_TEXTURE_COORD18_EXT #endif #ifdef OUTPUT_TEXTURE_COORD19_EXT #undef OUTPUT_TEXTURE_COORD19_EXT #endif #ifdef OUTPUT_TEXTURE_COORD20_EXT #undef OUTPUT_TEXTURE_COORD20_EXT #endif #ifdef OUTPUT_TEXTURE_COORD21_EXT #undef OUTPUT_TEXTURE_COORD21_EXT #endif #ifdef OUTPUT_TEXTURE_COORD22_EXT #undef OUTPUT_TEXTURE_COORD22_EXT #endif #ifdef OUTPUT_TEXTURE_COORD23_EXT #undef OUTPUT_TEXTURE_COORD23_EXT #endif #ifdef OUTPUT_TEXTURE_COORD24_EXT #undef OUTPUT_TEXTURE_COORD24_EXT #endif #ifdef OUTPUT_TEXTURE_COORD25_EXT #undef OUTPUT_TEXTURE_COORD25_EXT #endif #ifdef OUTPUT_TEXTURE_COORD26_EXT #undef OUTPUT_TEXTURE_COORD26_EXT #endif #ifdef OUTPUT_TEXTURE_COORD27_EXT #undef OUTPUT_TEXTURE_COORD27_EXT #endif #ifdef OUTPUT_TEXTURE_COORD28_EXT #undef OUTPUT_TEXTURE_COORD28_EXT #endif #ifdef OUTPUT_TEXTURE_COORD29_EXT #undef OUTPUT_TEXTURE_COORD29_EXT #endif #ifdef OUTPUT_TEXTURE_COORD30_EXT #undef OUTPUT_TEXTURE_COORD30_EXT #endif #ifdef OUTPUT_TEXTURE_COORD31_EXT #undef OUTPUT_TEXTURE_COORD31_EXT #endif #ifdef OUTPUT_FOG_EXT #undef OUTPUT_FOG_EXT #endif #ifdef SCALAR_EXT #undef SCALAR_EXT #endif #ifdef VECTOR_EXT #undef VECTOR_EXT #endif #ifdef MATRIX_EXT #undef MATRIX_EXT #endif #ifdef VARIANT_EXT #undef VARIANT_EXT #endif #ifdef INVARIANT_EXT #undef INVARIANT_EXT #endif #ifdef LOCAL_CONSTANT_EXT #undef LOCAL_CONSTANT_EXT #endif #ifdef LOCAL_EXT #undef LOCAL_EXT #endif #ifdef MAX_VERTEX_SHADER_INSTRUCTIONS_EXT #undef MAX_VERTEX_SHADER_INSTRUCTIONS_EXT #endif #ifdef MAX_VERTEX_SHADER_VARIANTS_EXT #undef MAX_VERTEX_SHADER_VARIANTS_EXT #endif #ifdef MAX_VERTEX_SHADER_INVARIANTS_EXT #undef MAX_VERTEX_SHADER_INVARIANTS_EXT #endif #ifdef MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT #undef MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT #endif #ifdef MAX_VERTEX_SHADER_LOCALS_EXT #undef MAX_VERTEX_SHADER_LOCALS_EXT #endif #ifdef MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT #undef MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT #endif #ifdef MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT #undef MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT #endif #ifdef MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT #undef MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT #endif #ifdef MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT #undef MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT #endif #ifdef MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT #undef MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT #endif #ifdef VERTEX_SHADER_INSTRUCTIONS_EXT #undef VERTEX_SHADER_INSTRUCTIONS_EXT #endif #ifdef VERTEX_SHADER_VARIANTS_EXT #undef VERTEX_SHADER_VARIANTS_EXT #endif #ifdef VERTEX_SHADER_INVARIANTS_EXT #undef VERTEX_SHADER_INVARIANTS_EXT #endif #ifdef VERTEX_SHADER_LOCAL_CONSTANTS_EXT #undef VERTEX_SHADER_LOCAL_CONSTANTS_EXT #endif #ifdef VERTEX_SHADER_LOCALS_EXT #undef VERTEX_SHADER_LOCALS_EXT #endif #ifdef VERTEX_SHADER_OPTIMIZED_EXT #undef VERTEX_SHADER_OPTIMIZED_EXT #endif #ifdef X_EXT #undef X_EXT #endif #ifdef Y_EXT #undef Y_EXT #endif #ifdef Z_EXT #undef Z_EXT #endif #ifdef W_EXT #undef W_EXT #endif #ifdef NEGATIVE_X_EXT #undef NEGATIVE_X_EXT #endif #ifdef NEGATIVE_Y_EXT #undef NEGATIVE_Y_EXT #endif #ifdef NEGATIVE_Z_EXT #undef NEGATIVE_Z_EXT #endif #ifdef NEGATIVE_W_EXT #undef NEGATIVE_W_EXT #endif #ifdef ZERO_EXT #undef ZERO_EXT #endif #ifdef ONE_EXT #undef ONE_EXT #endif #ifdef NEGATIVE_ONE_EXT #undef NEGATIVE_ONE_EXT #endif #ifdef NORMALIZED_RANGE_EXT #undef NORMALIZED_RANGE_EXT #endif #ifdef FULL_RANGE_EXT #undef FULL_RANGE_EXT #endif #ifdef CURRENT_VERTEX_EXT #undef CURRENT_VERTEX_EXT #endif #ifdef MVP_MATRIX_EXT #undef MVP_MATRIX_EXT #endif #ifdef VARIANT_VALUE_EXT #undef VARIANT_VALUE_EXT #endif #ifdef VARIANT_DATATYPE_EXT #undef VARIANT_DATATYPE_EXT #endif #ifdef VARIANT_ARRAY_STRIDE_EXT #undef VARIANT_ARRAY_STRIDE_EXT #endif #ifdef VARIANT_ARRAY_TYPE_EXT #undef VARIANT_ARRAY_TYPE_EXT #endif #ifdef VARIANT_ARRAY_EXT #undef VARIANT_ARRAY_EXT #endif #ifdef VARIANT_ARRAY_POINTER_EXT #undef VARIANT_ARRAY_POINTER_EXT #endif #ifdef INVARIANT_VALUE_EXT #undef INVARIANT_VALUE_EXT #endif #ifdef INVARIANT_DATATYPE_EXT #undef INVARIANT_DATATYPE_EXT #endif #ifdef LOCAL_CONSTANT_VALUE_EXT #undef LOCAL_CONSTANT_VALUE_EXT #endif #ifdef LOCAL_CONSTANT_DATATYPE_EXT #undef LOCAL_CONSTANT_DATATYPE_EXT #endif #ifdef MODELVIEW0_STACK_DEPTH_EXT #undef MODELVIEW0_STACK_DEPTH_EXT #endif #ifdef MODELVIEW1_STACK_DEPTH_EXT #undef MODELVIEW1_STACK_DEPTH_EXT #endif #ifdef MODELVIEW0_MATRIX_EXT #undef MODELVIEW0_MATRIX_EXT #endif #ifdef MODELVIEW1_MATRIX_EXT #undef MODELVIEW1_MATRIX_EXT #endif #ifdef VERTEX_WEIGHTING_EXT #undef VERTEX_WEIGHTING_EXT #endif #ifdef MODELVIEW0_EXT #undef MODELVIEW0_EXT #endif #ifdef MODELVIEW1_EXT #undef MODELVIEW1_EXT #endif #ifdef CURRENT_VERTEX_WEIGHT_EXT #undef CURRENT_VERTEX_WEIGHT_EXT #endif #ifdef VERTEX_WEIGHT_ARRAY_EXT #undef VERTEX_WEIGHT_ARRAY_EXT #endif #ifdef VERTEX_WEIGHT_ARRAY_SIZE_EXT #undef VERTEX_WEIGHT_ARRAY_SIZE_EXT #endif #ifdef VERTEX_WEIGHT_ARRAY_TYPE_EXT #undef VERTEX_WEIGHT_ARRAY_TYPE_EXT #endif #ifdef VERTEX_WEIGHT_ARRAY_STRIDE_EXT #undef VERTEX_WEIGHT_ARRAY_STRIDE_EXT #endif #ifdef VERTEX_WEIGHT_ARRAY_POINTER_EXT #undef VERTEX_WEIGHT_ARRAY_POINTER_EXT #endif #ifdef TEXTURE_DEFORMATION_BIT_SGIX #undef TEXTURE_DEFORMATION_BIT_SGIX #endif #ifdef GEOMETRY_DEFORMATION_BIT_SGIX #undef GEOMETRY_DEFORMATION_BIT_SGIX #endif #ifdef IGNORE_BORDER_HP #undef IGNORE_BORDER_HP #endif #ifdef CONSTANT_BORDER_HP #undef CONSTANT_BORDER_HP #endif #ifdef REPLICATE_BORDER_HP #undef REPLICATE_BORDER_HP #endif #ifdef CONVOLUTION_BORDER_COLOR_HP #undef CONVOLUTION_BORDER_COLOR_HP #endif #ifdef IMAGE_SCALE_X_HP #undef IMAGE_SCALE_X_HP #endif #ifdef IMAGE_SCALE_Y_HP #undef IMAGE_SCALE_Y_HP #endif #ifdef IMAGE_TRANSLATE_X_HP #undef IMAGE_TRANSLATE_X_HP #endif #ifdef IMAGE_TRANSLATE_Y_HP #undef IMAGE_TRANSLATE_Y_HP #endif #ifdef IMAGE_ROTATE_ANGLE_HP #undef IMAGE_ROTATE_ANGLE_HP #endif #ifdef IMAGE_ROTATE_ORIGIN_X_HP #undef IMAGE_ROTATE_ORIGIN_X_HP #endif #ifdef IMAGE_ROTATE_ORIGIN_Y_HP #undef IMAGE_ROTATE_ORIGIN_Y_HP #endif #ifdef IMAGE_MAG_FILTER_HP #undef IMAGE_MAG_FILTER_HP #endif #ifdef IMAGE_MIN_FILTER_HP #undef IMAGE_MIN_FILTER_HP #endif #ifdef IMAGE_CUBIC_WEIGHT_HP #undef IMAGE_CUBIC_WEIGHT_HP #endif #ifdef CUBIC_HP #undef CUBIC_HP #endif #ifdef AVERAGE_HP #undef AVERAGE_HP #endif #ifdef IMAGE_TRANSFORM_2D_HP #undef IMAGE_TRANSFORM_2D_HP #endif #ifdef POST_IMAGE_TRANSFORM_COLOR_TABLE_HP #undef POST_IMAGE_TRANSFORM_COLOR_TABLE_HP #endif #ifdef PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP #undef PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP #endif #ifdef OCCLUSION_TEST_HP #undef OCCLUSION_TEST_HP #endif #ifdef OCCLUSION_TEST_RESULT_HP #undef OCCLUSION_TEST_RESULT_HP #endif #ifdef TEXTURE_LIGHTING_MODE_HP #undef TEXTURE_LIGHTING_MODE_HP #endif #ifdef TEXTURE_POST_SPECULAR_HP #undef TEXTURE_POST_SPECULAR_HP #endif #ifdef TEXTURE_PRE_SPECULAR_HP #undef TEXTURE_PRE_SPECULAR_HP #endif #ifdef CULL_VERTEX_IBM #undef CULL_VERTEX_IBM #endif #ifdef RASTER_POSITION_UNCLIPPED_IBM #undef RASTER_POSITION_UNCLIPPED_IBM #endif #ifdef MIRRORED_REPEAT_IBM #undef MIRRORED_REPEAT_IBM #endif #ifdef VERTEX_ARRAY_LIST_IBM #undef VERTEX_ARRAY_LIST_IBM #endif #ifdef NORMAL_ARRAY_LIST_IBM #undef NORMAL_ARRAY_LIST_IBM #endif #ifdef COLOR_ARRAY_LIST_IBM #undef COLOR_ARRAY_LIST_IBM #endif #ifdef INDEX_ARRAY_LIST_IBM #undef INDEX_ARRAY_LIST_IBM #endif #ifdef TEXTURE_COORD_ARRAY_LIST_IBM #undef TEXTURE_COORD_ARRAY_LIST_IBM #endif #ifdef EDGE_FLAG_ARRAY_LIST_IBM #undef EDGE_FLAG_ARRAY_LIST_IBM #endif #ifdef FOG_COORDINATE_ARRAY_LIST_IBM #undef FOG_COORDINATE_ARRAY_LIST_IBM #endif #ifdef SECONDARY_COLOR_ARRAY_LIST_IBM #undef SECONDARY_COLOR_ARRAY_LIST_IBM #endif #ifdef VERTEX_ARRAY_LIST_STRIDE_IBM #undef VERTEX_ARRAY_LIST_STRIDE_IBM #endif #ifdef NORMAL_ARRAY_LIST_STRIDE_IBM #undef NORMAL_ARRAY_LIST_STRIDE_IBM #endif #ifdef COLOR_ARRAY_LIST_STRIDE_IBM #undef COLOR_ARRAY_LIST_STRIDE_IBM #endif #ifdef INDEX_ARRAY_LIST_STRIDE_IBM #undef INDEX_ARRAY_LIST_STRIDE_IBM #endif #ifdef TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM #undef TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM #endif #ifdef EDGE_FLAG_ARRAY_LIST_STRIDE_IBM #undef EDGE_FLAG_ARRAY_LIST_STRIDE_IBM #endif #ifdef FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM #undef FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM #endif #ifdef SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM #undef SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM #endif #ifdef RED_MIN_CLAMP_INGR #undef RED_MIN_CLAMP_INGR #endif #ifdef GREEN_MIN_CLAMP_INGR #undef GREEN_MIN_CLAMP_INGR #endif #ifdef BLUE_MIN_CLAMP_INGR #undef BLUE_MIN_CLAMP_INGR #endif #ifdef ALPHA_MIN_CLAMP_INGR #undef ALPHA_MIN_CLAMP_INGR #endif #ifdef RED_MAX_CLAMP_INGR #undef RED_MAX_CLAMP_INGR #endif #ifdef GREEN_MAX_CLAMP_INGR #undef GREEN_MAX_CLAMP_INGR #endif #ifdef BLUE_MAX_CLAMP_INGR #undef BLUE_MAX_CLAMP_INGR #endif #ifdef ALPHA_MAX_CLAMP_INGR #undef ALPHA_MAX_CLAMP_INGR #endif #ifdef INTERLACE_READ_INGR #undef INTERLACE_READ_INGR #endif #ifdef PARALLEL_ARRAYS_INTEL #undef PARALLEL_ARRAYS_INTEL #endif #ifdef VERTEX_ARRAY_PARALLEL_POINTERS_INTEL #undef VERTEX_ARRAY_PARALLEL_POINTERS_INTEL #endif #ifdef NORMAL_ARRAY_PARALLEL_POINTERS_INTEL #undef NORMAL_ARRAY_PARALLEL_POINTERS_INTEL #endif #ifdef COLOR_ARRAY_PARALLEL_POINTERS_INTEL #undef COLOR_ARRAY_PARALLEL_POINTERS_INTEL #endif #ifdef TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL #undef TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL #endif #ifdef TEXTURE_1D_STACK_MESAX #undef TEXTURE_1D_STACK_MESAX #endif #ifdef TEXTURE_2D_STACK_MESAX #undef TEXTURE_2D_STACK_MESAX #endif #ifdef PROXY_TEXTURE_1D_STACK_MESAX #undef PROXY_TEXTURE_1D_STACK_MESAX #endif #ifdef PROXY_TEXTURE_2D_STACK_MESAX #undef PROXY_TEXTURE_2D_STACK_MESAX #endif #ifdef TEXTURE_1D_STACK_BINDING_MESAX #undef TEXTURE_1D_STACK_BINDING_MESAX #endif #ifdef TEXTURE_2D_STACK_BINDING_MESAX #undef TEXTURE_2D_STACK_BINDING_MESAX #endif #ifdef PACK_INVERT_MESA #undef PACK_INVERT_MESA #endif #ifdef UNSIGNED_SHORT_8_8_MESA #undef UNSIGNED_SHORT_8_8_MESA #endif #ifdef UNSIGNED_SHORT_8_8_REV_MESA #undef UNSIGNED_SHORT_8_8_REV_MESA #endif #ifdef YCBCR_MESA #undef YCBCR_MESA #endif #ifdef QUERY_WAIT_NV #undef QUERY_WAIT_NV #endif #ifdef QUERY_NO_WAIT_NV #undef QUERY_NO_WAIT_NV #endif #ifdef QUERY_BY_REGION_WAIT_NV #undef QUERY_BY_REGION_WAIT_NV #endif #ifdef QUERY_BY_REGION_NO_WAIT_NV #undef QUERY_BY_REGION_NO_WAIT_NV #endif #ifdef DEPTH_STENCIL_TO_RGBA_NV #undef DEPTH_STENCIL_TO_RGBA_NV #endif #ifdef DEPTH_STENCIL_TO_BGRA_NV #undef DEPTH_STENCIL_TO_BGRA_NV #endif #ifdef DEPTH_COMPONENT32F_NV #undef DEPTH_COMPONENT32F_NV #endif #ifdef DEPTH32F_STENCIL8_NV #undef DEPTH32F_STENCIL8_NV #endif #ifdef FLOAT_32_UNSIGNED_INT_24_8_REV_NV #undef FLOAT_32_UNSIGNED_INT_24_8_REV_NV #endif #ifdef DEPTH_BUFFER_FLOAT_MODE_NV #undef DEPTH_BUFFER_FLOAT_MODE_NV #endif #ifdef DEPTH_CLAMP_NV #undef DEPTH_CLAMP_NV #endif #ifdef EVAL_2D_NV #undef EVAL_2D_NV #endif #ifdef EVAL_TRIANGULAR_2D_NV #undef EVAL_TRIANGULAR_2D_NV #endif #ifdef MAP_TESSELLATION_NV #undef MAP_TESSELLATION_NV #endif #ifdef MAP_ATTRIB_U_ORDER_NV #undef MAP_ATTRIB_U_ORDER_NV #endif #ifdef MAP_ATTRIB_V_ORDER_NV #undef MAP_ATTRIB_V_ORDER_NV #endif #ifdef EVAL_FRACTIONAL_TESSELLATION_NV #undef EVAL_FRACTIONAL_TESSELLATION_NV #endif #ifdef EVAL_VERTEX_ATTRIB0_NV #undef EVAL_VERTEX_ATTRIB0_NV #endif #ifdef EVAL_VERTEX_ATTRIB1_NV #undef EVAL_VERTEX_ATTRIB1_NV #endif #ifdef EVAL_VERTEX_ATTRIB2_NV #undef EVAL_VERTEX_ATTRIB2_NV #endif #ifdef EVAL_VERTEX_ATTRIB3_NV #undef EVAL_VERTEX_ATTRIB3_NV #endif #ifdef EVAL_VERTEX_ATTRIB4_NV #undef EVAL_VERTEX_ATTRIB4_NV #endif #ifdef EVAL_VERTEX_ATTRIB5_NV #undef EVAL_VERTEX_ATTRIB5_NV #endif #ifdef EVAL_VERTEX_ATTRIB6_NV #undef EVAL_VERTEX_ATTRIB6_NV #endif #ifdef EVAL_VERTEX_ATTRIB7_NV #undef EVAL_VERTEX_ATTRIB7_NV #endif #ifdef EVAL_VERTEX_ATTRIB8_NV #undef EVAL_VERTEX_ATTRIB8_NV #endif #ifdef EVAL_VERTEX_ATTRIB9_NV #undef EVAL_VERTEX_ATTRIB9_NV #endif #ifdef EVAL_VERTEX_ATTRIB10_NV #undef EVAL_VERTEX_ATTRIB10_NV #endif #ifdef EVAL_VERTEX_ATTRIB11_NV #undef EVAL_VERTEX_ATTRIB11_NV #endif #ifdef EVAL_VERTEX_ATTRIB12_NV #undef EVAL_VERTEX_ATTRIB12_NV #endif #ifdef EVAL_VERTEX_ATTRIB13_NV #undef EVAL_VERTEX_ATTRIB13_NV #endif #ifdef EVAL_VERTEX_ATTRIB14_NV #undef EVAL_VERTEX_ATTRIB14_NV #endif #ifdef EVAL_VERTEX_ATTRIB15_NV #undef EVAL_VERTEX_ATTRIB15_NV #endif #ifdef MAX_MAP_TESSELLATION_NV #undef MAX_MAP_TESSELLATION_NV #endif #ifdef MAX_RATIONAL_EVAL_ORDER_NV #undef MAX_RATIONAL_EVAL_ORDER_NV #endif #ifdef SAMPLE_POSITION_NV #undef SAMPLE_POSITION_NV #endif #ifdef SAMPLE_MASK_NV #undef SAMPLE_MASK_NV #endif #ifdef SAMPLE_MASK_VALUE_NV #undef SAMPLE_MASK_VALUE_NV #endif #ifdef TEXTURE_BINDING_RENDERBUFFER_NV #undef TEXTURE_BINDING_RENDERBUFFER_NV #endif #ifdef TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV #undef TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV #endif #ifdef TEXTURE_RENDERBUFFER_NV #undef TEXTURE_RENDERBUFFER_NV #endif #ifdef SAMPLER_RENDERBUFFER_NV #undef SAMPLER_RENDERBUFFER_NV #endif #ifdef INT_SAMPLER_RENDERBUFFER_NV #undef INT_SAMPLER_RENDERBUFFER_NV #endif #ifdef UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV #undef UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV #endif #ifdef MAX_SAMPLE_MASK_WORDS_NV #undef MAX_SAMPLE_MASK_WORDS_NV #endif #ifdef ALL_COMPLETED_NV #undef ALL_COMPLETED_NV #endif #ifdef FENCE_STATUS_NV #undef FENCE_STATUS_NV #endif #ifdef FENCE_CONDITION_NV #undef FENCE_CONDITION_NV #endif #ifdef FLOAT_R_NV #undef FLOAT_R_NV #endif #ifdef FLOAT_RG_NV #undef FLOAT_RG_NV #endif #ifdef FLOAT_RGB_NV #undef FLOAT_RGB_NV #endif #ifdef FLOAT_RGBA_NV #undef FLOAT_RGBA_NV #endif #ifdef FLOAT_R16_NV #undef FLOAT_R16_NV #endif #ifdef FLOAT_R32_NV #undef FLOAT_R32_NV #endif #ifdef FLOAT_RG16_NV #undef FLOAT_RG16_NV #endif #ifdef FLOAT_RG32_NV #undef FLOAT_RG32_NV #endif #ifdef FLOAT_RGB16_NV #undef FLOAT_RGB16_NV #endif #ifdef FLOAT_RGB32_NV #undef FLOAT_RGB32_NV #endif #ifdef FLOAT_RGBA16_NV #undef FLOAT_RGBA16_NV #endif #ifdef FLOAT_RGBA32_NV #undef FLOAT_RGBA32_NV #endif #ifdef TEXTURE_FLOAT_COMPONENTS_NV #undef TEXTURE_FLOAT_COMPONENTS_NV #endif #ifdef FLOAT_CLEAR_COLOR_VALUE_NV #undef FLOAT_CLEAR_COLOR_VALUE_NV #endif #ifdef FLOAT_RGBA_MODE_NV #undef FLOAT_RGBA_MODE_NV #endif #ifdef FOG_DISTANCE_MODE_NV #undef FOG_DISTANCE_MODE_NV #endif #ifdef EYE_RADIAL_NV #undef EYE_RADIAL_NV #endif #ifdef EYE_PLANE_ABSOLUTE_NV #undef EYE_PLANE_ABSOLUTE_NV #endif #ifdef MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV #undef MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV #endif #ifdef FRAGMENT_PROGRAM_NV #undef FRAGMENT_PROGRAM_NV #endif #ifdef MAX_TEXTURE_COORDS_NV #undef MAX_TEXTURE_COORDS_NV #endif #ifdef MAX_TEXTURE_IMAGE_UNITS_NV #undef MAX_TEXTURE_IMAGE_UNITS_NV #endif #ifdef FRAGMENT_PROGRAM_BINDING_NV #undef FRAGMENT_PROGRAM_BINDING_NV #endif #ifdef PROGRAM_ERROR_STRING_NV #undef PROGRAM_ERROR_STRING_NV #endif #ifdef MAX_PROGRAM_EXEC_INSTRUCTIONS_NV #undef MAX_PROGRAM_EXEC_INSTRUCTIONS_NV #endif #ifdef MAX_PROGRAM_CALL_DEPTH_NV #undef MAX_PROGRAM_CALL_DEPTH_NV #endif #ifdef MAX_PROGRAM_IF_DEPTH_NV #undef MAX_PROGRAM_IF_DEPTH_NV #endif #ifdef MAX_PROGRAM_LOOP_DEPTH_NV #undef MAX_PROGRAM_LOOP_DEPTH_NV #endif #ifdef MAX_PROGRAM_LOOP_COUNT_NV #undef MAX_PROGRAM_LOOP_COUNT_NV #endif #ifdef RENDERBUFFER_COVERAGE_SAMPLES_NV #undef RENDERBUFFER_COVERAGE_SAMPLES_NV #endif #ifdef RENDERBUFFER_COLOR_SAMPLES_NV #undef RENDERBUFFER_COLOR_SAMPLES_NV #endif #ifdef MAX_MULTISAMPLE_COVERAGE_MODES_NV #undef MAX_MULTISAMPLE_COVERAGE_MODES_NV #endif #ifdef MULTISAMPLE_COVERAGE_MODES_NV #undef MULTISAMPLE_COVERAGE_MODES_NV #endif #ifdef LINES_ADJACENCY_EXT #undef LINES_ADJACENCY_EXT #endif #ifdef LINE_STRIP_ADJACENCY_EXT #undef LINE_STRIP_ADJACENCY_EXT #endif #ifdef TRIANGLES_ADJACENCY_EXT #undef TRIANGLES_ADJACENCY_EXT #endif #ifdef TRIANGLE_STRIP_ADJACENCY_EXT #undef TRIANGLE_STRIP_ADJACENCY_EXT #endif #ifdef GEOMETRY_PROGRAM_NV #undef GEOMETRY_PROGRAM_NV #endif #ifdef MAX_PROGRAM_OUTPUT_VERTICES_NV #undef MAX_PROGRAM_OUTPUT_VERTICES_NV #endif #ifdef MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV #undef MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV #endif #ifdef GEOMETRY_VERTICES_OUT_EXT #undef GEOMETRY_VERTICES_OUT_EXT #endif #ifdef GEOMETRY_INPUT_TYPE_EXT #undef GEOMETRY_INPUT_TYPE_EXT #endif #ifdef GEOMETRY_OUTPUT_TYPE_EXT #undef GEOMETRY_OUTPUT_TYPE_EXT #endif #ifdef MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT #undef MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT #endif #ifdef FRAMEBUFFER_ATTACHMENT_LAYERED_EXT #undef FRAMEBUFFER_ATTACHMENT_LAYERED_EXT #endif #ifdef FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT #undef FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT #endif #ifdef FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT #undef FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT #endif #ifdef FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT #undef FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT #endif #ifdef PROGRAM_POINT_SIZE_EXT #undef PROGRAM_POINT_SIZE_EXT #endif #ifdef MIN_PROGRAM_TEXEL_OFFSET_NV #undef MIN_PROGRAM_TEXEL_OFFSET_NV #endif #ifdef MAX_PROGRAM_TEXEL_OFFSET_NV #undef MAX_PROGRAM_TEXEL_OFFSET_NV #endif #ifdef PROGRAM_ATTRIB_COMPONENTS_NV #undef PROGRAM_ATTRIB_COMPONENTS_NV #endif #ifdef PROGRAM_RESULT_COMPONENTS_NV #undef PROGRAM_RESULT_COMPONENTS_NV #endif #ifdef MAX_PROGRAM_ATTRIB_COMPONENTS_NV #undef MAX_PROGRAM_ATTRIB_COMPONENTS_NV #endif #ifdef MAX_PROGRAM_RESULT_COMPONENTS_NV #undef MAX_PROGRAM_RESULT_COMPONENTS_NV #endif #ifdef MAX_PROGRAM_GENERIC_ATTRIBS_NV #undef MAX_PROGRAM_GENERIC_ATTRIBS_NV #endif #ifdef MAX_PROGRAM_GENERIC_RESULTS_NV #undef MAX_PROGRAM_GENERIC_RESULTS_NV #endif #ifdef HALF_FLOAT_NV #undef HALF_FLOAT_NV #endif #ifdef MAX_SHININESS_NV #undef MAX_SHININESS_NV #endif #ifdef MAX_SPOT_EXPONENT_NV #undef MAX_SPOT_EXPONENT_NV #endif #ifdef MULTISAMPLE_FILTER_HINT_NV #undef MULTISAMPLE_FILTER_HINT_NV #endif #ifdef PIXEL_COUNTER_BITS_NV #undef PIXEL_COUNTER_BITS_NV #endif #ifdef CURRENT_OCCLUSION_QUERY_ID_NV #undef CURRENT_OCCLUSION_QUERY_ID_NV #endif #ifdef PIXEL_COUNT_NV #undef PIXEL_COUNT_NV #endif #ifdef PIXEL_COUNT_AVAILABLE_NV #undef PIXEL_COUNT_AVAILABLE_NV #endif #ifdef DEPTH_STENCIL_NV #undef DEPTH_STENCIL_NV #endif #ifdef UNSIGNED_INT_24_8_NV #undef UNSIGNED_INT_24_8_NV #endif #ifdef MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV #undef MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV #endif #ifdef MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV #undef MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV #endif #ifdef VERTEX_PROGRAM_PARAMETER_BUFFER_NV #undef VERTEX_PROGRAM_PARAMETER_BUFFER_NV #endif #ifdef GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV #undef GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV #endif #ifdef FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV #undef FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV #endif #ifdef WRITE_PIXEL_DATA_RANGE_NV #undef WRITE_PIXEL_DATA_RANGE_NV #endif #ifdef READ_PIXEL_DATA_RANGE_NV #undef READ_PIXEL_DATA_RANGE_NV #endif #ifdef WRITE_PIXEL_DATA_RANGE_LENGTH_NV #undef WRITE_PIXEL_DATA_RANGE_LENGTH_NV #endif #ifdef READ_PIXEL_DATA_RANGE_LENGTH_NV #undef READ_PIXEL_DATA_RANGE_LENGTH_NV #endif #ifdef WRITE_PIXEL_DATA_RANGE_POINTER_NV #undef WRITE_PIXEL_DATA_RANGE_POINTER_NV #endif #ifdef READ_PIXEL_DATA_RANGE_POINTER_NV #undef READ_PIXEL_DATA_RANGE_POINTER_NV #endif #ifdef POINT_SPRITE_NV #undef POINT_SPRITE_NV #endif #ifdef COORD_REPLACE_NV #undef COORD_REPLACE_NV #endif #ifdef POINT_SPRITE_R_MODE_NV #undef POINT_SPRITE_R_MODE_NV #endif #ifdef FRAME_NV #undef FRAME_NV #endif #ifdef FIELDS_NV #undef FIELDS_NV #endif #ifdef CURRENT_TIME_NV #undef CURRENT_TIME_NV #endif #ifdef NUM_FILL_STREAMS_NV #undef NUM_FILL_STREAMS_NV #endif #ifdef PRESENT_TIME_NV #undef PRESENT_TIME_NV #endif #ifdef PRESENT_DURATION_NV #undef PRESENT_DURATION_NV #endif #ifdef PRIMITIVE_RESTART_NV #undef PRIMITIVE_RESTART_NV #endif #ifdef PRIMITIVE_RESTART_INDEX_NV #undef PRIMITIVE_RESTART_INDEX_NV #endif #ifdef REGISTER_COMBINERS_NV #undef REGISTER_COMBINERS_NV #endif #ifdef VARIABLE_A_NV #undef VARIABLE_A_NV #endif #ifdef VARIABLE_B_NV #undef VARIABLE_B_NV #endif #ifdef VARIABLE_C_NV #undef VARIABLE_C_NV #endif #ifdef VARIABLE_D_NV #undef VARIABLE_D_NV #endif #ifdef VARIABLE_E_NV #undef VARIABLE_E_NV #endif #ifdef VARIABLE_F_NV #undef VARIABLE_F_NV #endif #ifdef VARIABLE_G_NV #undef VARIABLE_G_NV #endif #ifdef CONSTANT_COLOR0_NV #undef CONSTANT_COLOR0_NV #endif #ifdef CONSTANT_COLOR1_NV #undef CONSTANT_COLOR1_NV #endif #ifdef PRIMARY_COLOR_NV #undef PRIMARY_COLOR_NV #endif #ifdef SECONDARY_COLOR_NV #undef SECONDARY_COLOR_NV #endif #ifdef SPARE0_NV #undef SPARE0_NV #endif #ifdef SPARE1_NV #undef SPARE1_NV #endif #ifdef DISCARD_NV #undef DISCARD_NV #endif #ifdef E_TIMES_F_NV #undef E_TIMES_F_NV #endif #ifdef SPARE0_PLUS_SECONDARY_COLOR_NV #undef SPARE0_PLUS_SECONDARY_COLOR_NV #endif #ifdef UNSIGNED_IDENTITY_NV #undef UNSIGNED_IDENTITY_NV #endif #ifdef UNSIGNED_INVERT_NV #undef UNSIGNED_INVERT_NV #endif #ifdef EXPAND_NORMAL_NV #undef EXPAND_NORMAL_NV #endif #ifdef EXPAND_NEGATE_NV #undef EXPAND_NEGATE_NV #endif #ifdef HALF_BIAS_NORMAL_NV #undef HALF_BIAS_NORMAL_NV #endif #ifdef HALF_BIAS_NEGATE_NV #undef HALF_BIAS_NEGATE_NV #endif #ifdef SIGNED_IDENTITY_NV #undef SIGNED_IDENTITY_NV #endif #ifdef SIGNED_NEGATE_NV #undef SIGNED_NEGATE_NV #endif #ifdef SCALE_BY_TWO_NV #undef SCALE_BY_TWO_NV #endif #ifdef SCALE_BY_FOUR_NV #undef SCALE_BY_FOUR_NV #endif #ifdef SCALE_BY_ONE_HALF_NV #undef SCALE_BY_ONE_HALF_NV #endif #ifdef BIAS_BY_NEGATIVE_ONE_HALF_NV #undef BIAS_BY_NEGATIVE_ONE_HALF_NV #endif #ifdef COMBINER_INPUT_NV #undef COMBINER_INPUT_NV #endif #ifdef COMBINER_MAPPING_NV #undef COMBINER_MAPPING_NV #endif #ifdef COMBINER_COMPONENT_USAGE_NV #undef COMBINER_COMPONENT_USAGE_NV #endif #ifdef COMBINER_AB_DOT_PRODUCT_NV #undef COMBINER_AB_DOT_PRODUCT_NV #endif #ifdef COMBINER_CD_DOT_PRODUCT_NV #undef COMBINER_CD_DOT_PRODUCT_NV #endif #ifdef COMBINER_MUX_SUM_NV #undef COMBINER_MUX_SUM_NV #endif #ifdef COMBINER_SCALE_NV #undef COMBINER_SCALE_NV #endif #ifdef COMBINER_BIAS_NV #undef COMBINER_BIAS_NV #endif #ifdef COMBINER_AB_OUTPUT_NV #undef COMBINER_AB_OUTPUT_NV #endif #ifdef COMBINER_CD_OUTPUT_NV #undef COMBINER_CD_OUTPUT_NV #endif #ifdef COMBINER_SUM_OUTPUT_NV #undef COMBINER_SUM_OUTPUT_NV #endif #ifdef MAX_GENERAL_COMBINERS_NV #undef MAX_GENERAL_COMBINERS_NV #endif #ifdef NUM_GENERAL_COMBINERS_NV #undef NUM_GENERAL_COMBINERS_NV #endif #ifdef COLOR_SUM_CLAMP_NV #undef COLOR_SUM_CLAMP_NV #endif #ifdef COMBINER0_NV #undef COMBINER0_NV #endif #ifdef COMBINER1_NV #undef COMBINER1_NV #endif #ifdef COMBINER2_NV #undef COMBINER2_NV #endif #ifdef COMBINER3_NV #undef COMBINER3_NV #endif #ifdef COMBINER4_NV #undef COMBINER4_NV #endif #ifdef COMBINER5_NV #undef COMBINER5_NV #endif #ifdef COMBINER6_NV #undef COMBINER6_NV #endif #ifdef COMBINER7_NV #undef COMBINER7_NV #endif #ifdef PER_STAGE_CONSTANTS_NV #undef PER_STAGE_CONSTANTS_NV #endif #ifdef BUFFER_GPU_ADDRESS_NV #undef BUFFER_GPU_ADDRESS_NV #endif #ifdef GPU_ADDRESS_NV #undef GPU_ADDRESS_NV #endif #ifdef MAX_SHADER_BUFFER_ADDRESS_NV #undef MAX_SHADER_BUFFER_ADDRESS_NV #endif #ifdef EMBOSS_LIGHT_NV #undef EMBOSS_LIGHT_NV #endif #ifdef EMBOSS_CONSTANT_NV #undef EMBOSS_CONSTANT_NV #endif #ifdef EMBOSS_MAP_NV #undef EMBOSS_MAP_NV #endif #ifdef NORMAL_MAP_NV #undef NORMAL_MAP_NV #endif #ifdef REFLECTION_MAP_NV #undef REFLECTION_MAP_NV #endif #ifdef COMBINE4_NV #undef COMBINE4_NV #endif #ifdef SOURCE3_RGB_NV #undef SOURCE3_RGB_NV #endif #ifdef SOURCE3_ALPHA_NV #undef SOURCE3_ALPHA_NV #endif #ifdef OPERAND3_RGB_NV #undef OPERAND3_RGB_NV #endif #ifdef OPERAND3_ALPHA_NV #undef OPERAND3_ALPHA_NV #endif #ifdef TEXTURE_UNSIGNED_REMAP_MODE_NV #undef TEXTURE_UNSIGNED_REMAP_MODE_NV #endif #ifdef TEXTURE_RECTANGLE_NV #undef TEXTURE_RECTANGLE_NV #endif #ifdef TEXTURE_BINDING_RECTANGLE_NV #undef TEXTURE_BINDING_RECTANGLE_NV #endif #ifdef PROXY_TEXTURE_RECTANGLE_NV #undef PROXY_TEXTURE_RECTANGLE_NV #endif #ifdef MAX_RECTANGLE_TEXTURE_SIZE_NV #undef MAX_RECTANGLE_TEXTURE_SIZE_NV #endif #ifdef OFFSET_TEXTURE_RECTANGLE_NV #undef OFFSET_TEXTURE_RECTANGLE_NV #endif #ifdef OFFSET_TEXTURE_RECTANGLE_SCALE_NV #undef OFFSET_TEXTURE_RECTANGLE_SCALE_NV #endif #ifdef DOT_PRODUCT_TEXTURE_RECTANGLE_NV #undef DOT_PRODUCT_TEXTURE_RECTANGLE_NV #endif #ifdef RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV #undef RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV #endif #ifdef UNSIGNED_INT_S8_S8_8_8_NV #undef UNSIGNED_INT_S8_S8_8_8_NV #endif #ifdef UNSIGNED_INT_8_8_S8_S8_REV_NV #undef UNSIGNED_INT_8_8_S8_S8_REV_NV #endif #ifdef DSDT_MAG_INTENSITY_NV #undef DSDT_MAG_INTENSITY_NV #endif #ifdef SHADER_CONSISTENT_NV #undef SHADER_CONSISTENT_NV #endif #ifdef TEXTURE_SHADER_NV #undef TEXTURE_SHADER_NV #endif #ifdef SHADER_OPERATION_NV #undef SHADER_OPERATION_NV #endif #ifdef CULL_MODES_NV #undef CULL_MODES_NV #endif #ifdef OFFSET_TEXTURE_MATRIX_NV #undef OFFSET_TEXTURE_MATRIX_NV #endif #ifdef OFFSET_TEXTURE_SCALE_NV #undef OFFSET_TEXTURE_SCALE_NV #endif #ifdef OFFSET_TEXTURE_BIAS_NV #undef OFFSET_TEXTURE_BIAS_NV #endif #ifdef OFFSET_TEXTURE_2D_MATRIX_NV #undef OFFSET_TEXTURE_2D_MATRIX_NV #endif #ifdef OFFSET_TEXTURE_2D_SCALE_NV #undef OFFSET_TEXTURE_2D_SCALE_NV #endif #ifdef OFFSET_TEXTURE_2D_BIAS_NV #undef OFFSET_TEXTURE_2D_BIAS_NV #endif #ifdef PREVIOUS_TEXTURE_INPUT_NV #undef PREVIOUS_TEXTURE_INPUT_NV #endif #ifdef CONST_EYE_NV #undef CONST_EYE_NV #endif #ifdef PASS_THROUGH_NV #undef PASS_THROUGH_NV #endif #ifdef CULL_FRAGMENT_NV #undef CULL_FRAGMENT_NV #endif #ifdef OFFSET_TEXTURE_2D_NV #undef OFFSET_TEXTURE_2D_NV #endif #ifdef DEPENDENT_AR_TEXTURE_2D_NV #undef DEPENDENT_AR_TEXTURE_2D_NV #endif #ifdef DEPENDENT_GB_TEXTURE_2D_NV #undef DEPENDENT_GB_TEXTURE_2D_NV #endif #ifdef DOT_PRODUCT_NV #undef DOT_PRODUCT_NV #endif #ifdef DOT_PRODUCT_DEPTH_REPLACE_NV #undef DOT_PRODUCT_DEPTH_REPLACE_NV #endif #ifdef DOT_PRODUCT_TEXTURE_2D_NV #undef DOT_PRODUCT_TEXTURE_2D_NV #endif #ifdef DOT_PRODUCT_TEXTURE_CUBE_MAP_NV #undef DOT_PRODUCT_TEXTURE_CUBE_MAP_NV #endif #ifdef DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV #undef DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV #endif #ifdef DOT_PRODUCT_REFLECT_CUBE_MAP_NV #undef DOT_PRODUCT_REFLECT_CUBE_MAP_NV #endif #ifdef DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV #undef DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV #endif #ifdef HILO_NV #undef HILO_NV #endif #ifdef DSDT_NV #undef DSDT_NV #endif #ifdef DSDT_MAG_NV #undef DSDT_MAG_NV #endif #ifdef DSDT_MAG_VIB_NV #undef DSDT_MAG_VIB_NV #endif #ifdef HILO16_NV #undef HILO16_NV #endif #ifdef SIGNED_HILO_NV #undef SIGNED_HILO_NV #endif #ifdef SIGNED_HILO16_NV #undef SIGNED_HILO16_NV #endif #ifdef SIGNED_RGBA_NV #undef SIGNED_RGBA_NV #endif #ifdef SIGNED_RGBA8_NV #undef SIGNED_RGBA8_NV #endif #ifdef SIGNED_RGB_NV #undef SIGNED_RGB_NV #endif #ifdef SIGNED_RGB8_NV #undef SIGNED_RGB8_NV #endif #ifdef SIGNED_LUMINANCE_NV #undef SIGNED_LUMINANCE_NV #endif #ifdef SIGNED_LUMINANCE8_NV #undef SIGNED_LUMINANCE8_NV #endif #ifdef SIGNED_LUMINANCE_ALPHA_NV #undef SIGNED_LUMINANCE_ALPHA_NV #endif #ifdef SIGNED_LUMINANCE8_ALPHA8_NV #undef SIGNED_LUMINANCE8_ALPHA8_NV #endif #ifdef SIGNED_ALPHA_NV #undef SIGNED_ALPHA_NV #endif #ifdef SIGNED_ALPHA8_NV #undef SIGNED_ALPHA8_NV #endif #ifdef SIGNED_INTENSITY_NV #undef SIGNED_INTENSITY_NV #endif #ifdef SIGNED_INTENSITY8_NV #undef SIGNED_INTENSITY8_NV #endif #ifdef DSDT8_NV #undef DSDT8_NV #endif #ifdef DSDT8_MAG8_NV #undef DSDT8_MAG8_NV #endif #ifdef DSDT8_MAG8_INTENSITY8_NV #undef DSDT8_MAG8_INTENSITY8_NV #endif #ifdef SIGNED_RGB_UNSIGNED_ALPHA_NV #undef SIGNED_RGB_UNSIGNED_ALPHA_NV #endif #ifdef SIGNED_RGB8_UNSIGNED_ALPHA8_NV #undef SIGNED_RGB8_UNSIGNED_ALPHA8_NV #endif #ifdef HI_SCALE_NV #undef HI_SCALE_NV #endif #ifdef LO_SCALE_NV #undef LO_SCALE_NV #endif #ifdef DS_SCALE_NV #undef DS_SCALE_NV #endif #ifdef DT_SCALE_NV #undef DT_SCALE_NV #endif #ifdef MAGNITUDE_SCALE_NV #undef MAGNITUDE_SCALE_NV #endif #ifdef VIBRANCE_SCALE_NV #undef VIBRANCE_SCALE_NV #endif #ifdef HI_BIAS_NV #undef HI_BIAS_NV #endif #ifdef LO_BIAS_NV #undef LO_BIAS_NV #endif #ifdef DS_BIAS_NV #undef DS_BIAS_NV #endif #ifdef DT_BIAS_NV #undef DT_BIAS_NV #endif #ifdef MAGNITUDE_BIAS_NV #undef MAGNITUDE_BIAS_NV #endif #ifdef VIBRANCE_BIAS_NV #undef VIBRANCE_BIAS_NV #endif #ifdef TEXTURE_BORDER_VALUES_NV #undef TEXTURE_BORDER_VALUES_NV #endif #ifdef TEXTURE_HI_SIZE_NV #undef TEXTURE_HI_SIZE_NV #endif #ifdef TEXTURE_LO_SIZE_NV #undef TEXTURE_LO_SIZE_NV #endif #ifdef TEXTURE_DS_SIZE_NV #undef TEXTURE_DS_SIZE_NV #endif #ifdef TEXTURE_DT_SIZE_NV #undef TEXTURE_DT_SIZE_NV #endif #ifdef TEXTURE_MAG_SIZE_NV #undef TEXTURE_MAG_SIZE_NV #endif #ifdef DOT_PRODUCT_TEXTURE_3D_NV #undef DOT_PRODUCT_TEXTURE_3D_NV #endif #ifdef OFFSET_PROJECTIVE_TEXTURE_2D_NV #undef OFFSET_PROJECTIVE_TEXTURE_2D_NV #endif #ifdef OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV #undef OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV #endif #ifdef OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV #undef OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV #endif #ifdef OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV #undef OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV #endif #ifdef OFFSET_HILO_TEXTURE_2D_NV #undef OFFSET_HILO_TEXTURE_2D_NV #endif #ifdef OFFSET_HILO_TEXTURE_RECTANGLE_NV #undef OFFSET_HILO_TEXTURE_RECTANGLE_NV #endif #ifdef OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV #undef OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV #endif #ifdef OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV #undef OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV #endif #ifdef DEPENDENT_HILO_TEXTURE_2D_NV #undef DEPENDENT_HILO_TEXTURE_2D_NV #endif #ifdef DEPENDENT_RGB_TEXTURE_3D_NV #undef DEPENDENT_RGB_TEXTURE_3D_NV #endif #ifdef DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV #undef DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV #endif #ifdef DOT_PRODUCT_PASS_THROUGH_NV #undef DOT_PRODUCT_PASS_THROUGH_NV #endif #ifdef DOT_PRODUCT_TEXTURE_1D_NV #undef DOT_PRODUCT_TEXTURE_1D_NV #endif #ifdef DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV #undef DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV #endif #ifdef HILO8_NV #undef HILO8_NV #endif #ifdef SIGNED_HILO8_NV #undef SIGNED_HILO8_NV #endif #ifdef FORCE_BLUE_TO_ONE_NV #undef FORCE_BLUE_TO_ONE_NV #endif #ifdef BACK_PRIMARY_COLOR_NV #undef BACK_PRIMARY_COLOR_NV #endif #ifdef BACK_SECONDARY_COLOR_NV #undef BACK_SECONDARY_COLOR_NV #endif #ifdef TEXTURE_COORD_NV #undef TEXTURE_COORD_NV #endif #ifdef CLIP_DISTANCE_NV #undef CLIP_DISTANCE_NV #endif #ifdef VERTEX_ID_NV #undef VERTEX_ID_NV #endif #ifdef PRIMITIVE_ID_NV #undef PRIMITIVE_ID_NV #endif #ifdef GENERIC_ATTRIB_NV #undef GENERIC_ATTRIB_NV #endif #ifdef TRANSFORM_FEEDBACK_ATTRIBS_NV #undef TRANSFORM_FEEDBACK_ATTRIBS_NV #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_MODE_NV #undef TRANSFORM_FEEDBACK_BUFFER_MODE_NV #endif #ifdef MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV #undef MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV #endif #ifdef ACTIVE_VARYINGS_NV #undef ACTIVE_VARYINGS_NV #endif #ifdef ACTIVE_VARYING_MAX_LENGTH_NV #undef ACTIVE_VARYING_MAX_LENGTH_NV #endif #ifdef TRANSFORM_FEEDBACK_VARYINGS_NV #undef TRANSFORM_FEEDBACK_VARYINGS_NV #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_START_NV #undef TRANSFORM_FEEDBACK_BUFFER_START_NV #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_SIZE_NV #undef TRANSFORM_FEEDBACK_BUFFER_SIZE_NV #endif #ifdef TRANSFORM_FEEDBACK_RECORD_NV #undef TRANSFORM_FEEDBACK_RECORD_NV #endif #ifdef PRIMITIVES_GENERATED_NV #undef PRIMITIVES_GENERATED_NV #endif #ifdef TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV #undef TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV #endif #ifdef RASTERIZER_DISCARD_NV #undef RASTERIZER_DISCARD_NV #endif #ifdef MAX_TRANSFORM_FEEDBACK_INTERLEAVED_ATTRIBS_NV #undef MAX_TRANSFORM_FEEDBACK_INTERLEAVED_ATTRIBS_NV #endif #ifdef MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV #undef MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV #endif #ifdef INTERLEAVED_ATTRIBS_NV #undef INTERLEAVED_ATTRIBS_NV #endif #ifdef SEPARATE_ATTRIBS_NV #undef SEPARATE_ATTRIBS_NV #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_NV #undef TRANSFORM_FEEDBACK_BUFFER_NV #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_BINDING_NV #undef TRANSFORM_FEEDBACK_BUFFER_BINDING_NV #endif #ifdef TRANSFORM_FEEDBACK_NV #undef TRANSFORM_FEEDBACK_NV #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV #undef TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV #undef TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV #endif #ifdef TRANSFORM_FEEDBACK_BINDING_NV #undef TRANSFORM_FEEDBACK_BINDING_NV #endif #ifdef VERTEX_ARRAY_RANGE_NV #undef VERTEX_ARRAY_RANGE_NV #endif #ifdef VERTEX_ARRAY_RANGE_LENGTH_NV #undef VERTEX_ARRAY_RANGE_LENGTH_NV #endif #ifdef VERTEX_ARRAY_RANGE_VALID_NV #undef VERTEX_ARRAY_RANGE_VALID_NV #endif #ifdef MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV #undef MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV #endif #ifdef VERTEX_ARRAY_RANGE_POINTER_NV #undef VERTEX_ARRAY_RANGE_POINTER_NV #endif #ifdef VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV #undef VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV #endif #ifdef VERTEX_ATTRIB_ARRAY_UNIFIED_NV #undef VERTEX_ATTRIB_ARRAY_UNIFIED_NV #endif #ifdef ELEMENT_ARRAY_UNIFIED_NV #undef ELEMENT_ARRAY_UNIFIED_NV #endif #ifdef VERTEX_ATTRIB_ARRAY_ADDRESS_NV #undef VERTEX_ATTRIB_ARRAY_ADDRESS_NV #endif #ifdef VERTEX_ARRAY_ADDRESS_NV #undef VERTEX_ARRAY_ADDRESS_NV #endif #ifdef NORMAL_ARRAY_ADDRESS_NV #undef NORMAL_ARRAY_ADDRESS_NV #endif #ifdef COLOR_ARRAY_ADDRESS_NV #undef COLOR_ARRAY_ADDRESS_NV #endif #ifdef INDEX_ARRAY_ADDRESS_NV #undef INDEX_ARRAY_ADDRESS_NV #endif #ifdef TEXTURE_COORD_ARRAY_ADDRESS_NV #undef TEXTURE_COORD_ARRAY_ADDRESS_NV #endif #ifdef EDGE_FLAG_ARRAY_ADDRESS_NV #undef EDGE_FLAG_ARRAY_ADDRESS_NV #endif #ifdef SECONDARY_COLOR_ARRAY_ADDRESS_NV #undef SECONDARY_COLOR_ARRAY_ADDRESS_NV #endif #ifdef FOG_COORD_ARRAY_ADDRESS_NV #undef FOG_COORD_ARRAY_ADDRESS_NV #endif #ifdef ELEMENT_ARRAY_ADDRESS_NV #undef ELEMENT_ARRAY_ADDRESS_NV #endif #ifdef VERTEX_ATTRIB_ARRAY_LENGTH_NV #undef VERTEX_ATTRIB_ARRAY_LENGTH_NV #endif #ifdef VERTEX_ARRAY_LENGTH_NV #undef VERTEX_ARRAY_LENGTH_NV #endif #ifdef NORMAL_ARRAY_LENGTH_NV #undef NORMAL_ARRAY_LENGTH_NV #endif #ifdef COLOR_ARRAY_LENGTH_NV #undef COLOR_ARRAY_LENGTH_NV #endif #ifdef INDEX_ARRAY_LENGTH_NV #undef INDEX_ARRAY_LENGTH_NV #endif #ifdef TEXTURE_COORD_ARRAY_LENGTH_NV #undef TEXTURE_COORD_ARRAY_LENGTH_NV #endif #ifdef EDGE_FLAG_ARRAY_LENGTH_NV #undef EDGE_FLAG_ARRAY_LENGTH_NV #endif #ifdef SECONDARY_COLOR_ARRAY_LENGTH_NV #undef SECONDARY_COLOR_ARRAY_LENGTH_NV #endif #ifdef FOG_COORD_ARRAY_LENGTH_NV #undef FOG_COORD_ARRAY_LENGTH_NV #endif #ifdef ELEMENT_ARRAY_LENGTH_NV #undef ELEMENT_ARRAY_LENGTH_NV #endif #ifdef VERTEX_PROGRAM_NV #undef VERTEX_PROGRAM_NV #endif #ifdef VERTEX_STATE_PROGRAM_NV #undef VERTEX_STATE_PROGRAM_NV #endif #ifdef ATTRIB_ARRAY_SIZE_NV #undef ATTRIB_ARRAY_SIZE_NV #endif #ifdef ATTRIB_ARRAY_STRIDE_NV #undef ATTRIB_ARRAY_STRIDE_NV #endif #ifdef ATTRIB_ARRAY_TYPE_NV #undef ATTRIB_ARRAY_TYPE_NV #endif #ifdef CURRENT_ATTRIB_NV #undef CURRENT_ATTRIB_NV #endif #ifdef PROGRAM_LENGTH_NV #undef PROGRAM_LENGTH_NV #endif #ifdef PROGRAM_STRING_NV #undef PROGRAM_STRING_NV #endif #ifdef MODELVIEW_PROJECTION_NV #undef MODELVIEW_PROJECTION_NV #endif #ifdef IDENTITY_NV #undef IDENTITY_NV #endif #ifdef INVERSE_NV #undef INVERSE_NV #endif #ifdef TRANSPOSE_NV #undef TRANSPOSE_NV #endif #ifdef INVERSE_TRANSPOSE_NV #undef INVERSE_TRANSPOSE_NV #endif #ifdef MAX_TRACK_MATRIX_STACK_DEPTH_NV #undef MAX_TRACK_MATRIX_STACK_DEPTH_NV #endif #ifdef MAX_TRACK_MATRICES_NV #undef MAX_TRACK_MATRICES_NV #endif #ifdef MATRIX0_NV #undef MATRIX0_NV #endif #ifdef MATRIX1_NV #undef MATRIX1_NV #endif #ifdef MATRIX2_NV #undef MATRIX2_NV #endif #ifdef MATRIX3_NV #undef MATRIX3_NV #endif #ifdef MATRIX4_NV #undef MATRIX4_NV #endif #ifdef MATRIX5_NV #undef MATRIX5_NV #endif #ifdef MATRIX6_NV #undef MATRIX6_NV #endif #ifdef MATRIX7_NV #undef MATRIX7_NV #endif #ifdef CURRENT_MATRIX_STACK_DEPTH_NV #undef CURRENT_MATRIX_STACK_DEPTH_NV #endif #ifdef CURRENT_MATRIX_NV #undef CURRENT_MATRIX_NV #endif #ifdef VERTEX_PROGRAM_POINT_SIZE_NV #undef VERTEX_PROGRAM_POINT_SIZE_NV #endif #ifdef VERTEX_PROGRAM_TWO_SIDE_NV #undef VERTEX_PROGRAM_TWO_SIDE_NV #endif #ifdef PROGRAM_PARAMETER_NV #undef PROGRAM_PARAMETER_NV #endif #ifdef ATTRIB_ARRAY_POINTER_NV #undef ATTRIB_ARRAY_POINTER_NV #endif #ifdef PROGRAM_TARGET_NV #undef PROGRAM_TARGET_NV #endif #ifdef PROGRAM_RESIDENT_NV #undef PROGRAM_RESIDENT_NV #endif #ifdef TRACK_MATRIX_NV #undef TRACK_MATRIX_NV #endif #ifdef TRACK_MATRIX_TRANSFORM_NV #undef TRACK_MATRIX_TRANSFORM_NV #endif #ifdef VERTEX_PROGRAM_BINDING_NV #undef VERTEX_PROGRAM_BINDING_NV #endif #ifdef PROGRAM_ERROR_POSITION_NV #undef PROGRAM_ERROR_POSITION_NV #endif #ifdef VERTEX_ATTRIB_ARRAY0_NV #undef VERTEX_ATTRIB_ARRAY0_NV #endif #ifdef VERTEX_ATTRIB_ARRAY1_NV #undef VERTEX_ATTRIB_ARRAY1_NV #endif #ifdef VERTEX_ATTRIB_ARRAY2_NV #undef VERTEX_ATTRIB_ARRAY2_NV #endif #ifdef VERTEX_ATTRIB_ARRAY3_NV #undef VERTEX_ATTRIB_ARRAY3_NV #endif #ifdef VERTEX_ATTRIB_ARRAY4_NV #undef VERTEX_ATTRIB_ARRAY4_NV #endif #ifdef VERTEX_ATTRIB_ARRAY5_NV #undef VERTEX_ATTRIB_ARRAY5_NV #endif #ifdef VERTEX_ATTRIB_ARRAY6_NV #undef VERTEX_ATTRIB_ARRAY6_NV #endif #ifdef VERTEX_ATTRIB_ARRAY7_NV #undef VERTEX_ATTRIB_ARRAY7_NV #endif #ifdef VERTEX_ATTRIB_ARRAY8_NV #undef VERTEX_ATTRIB_ARRAY8_NV #endif #ifdef VERTEX_ATTRIB_ARRAY9_NV #undef VERTEX_ATTRIB_ARRAY9_NV #endif #ifdef VERTEX_ATTRIB_ARRAY10_NV #undef VERTEX_ATTRIB_ARRAY10_NV #endif #ifdef VERTEX_ATTRIB_ARRAY11_NV #undef VERTEX_ATTRIB_ARRAY11_NV #endif #ifdef VERTEX_ATTRIB_ARRAY12_NV #undef VERTEX_ATTRIB_ARRAY12_NV #endif #ifdef VERTEX_ATTRIB_ARRAY13_NV #undef VERTEX_ATTRIB_ARRAY13_NV #endif #ifdef VERTEX_ATTRIB_ARRAY14_NV #undef VERTEX_ATTRIB_ARRAY14_NV #endif #ifdef VERTEX_ATTRIB_ARRAY15_NV #undef VERTEX_ATTRIB_ARRAY15_NV #endif #ifdef MAP1_VERTEX_ATTRIB0_4_NV #undef MAP1_VERTEX_ATTRIB0_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB1_4_NV #undef MAP1_VERTEX_ATTRIB1_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB2_4_NV #undef MAP1_VERTEX_ATTRIB2_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB3_4_NV #undef MAP1_VERTEX_ATTRIB3_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB4_4_NV #undef MAP1_VERTEX_ATTRIB4_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB5_4_NV #undef MAP1_VERTEX_ATTRIB5_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB6_4_NV #undef MAP1_VERTEX_ATTRIB6_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB7_4_NV #undef MAP1_VERTEX_ATTRIB7_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB8_4_NV #undef MAP1_VERTEX_ATTRIB8_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB9_4_NV #undef MAP1_VERTEX_ATTRIB9_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB10_4_NV #undef MAP1_VERTEX_ATTRIB10_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB11_4_NV #undef MAP1_VERTEX_ATTRIB11_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB12_4_NV #undef MAP1_VERTEX_ATTRIB12_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB13_4_NV #undef MAP1_VERTEX_ATTRIB13_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB14_4_NV #undef MAP1_VERTEX_ATTRIB14_4_NV #endif #ifdef MAP1_VERTEX_ATTRIB15_4_NV #undef MAP1_VERTEX_ATTRIB15_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB0_4_NV #undef MAP2_VERTEX_ATTRIB0_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB1_4_NV #undef MAP2_VERTEX_ATTRIB1_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB2_4_NV #undef MAP2_VERTEX_ATTRIB2_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB3_4_NV #undef MAP2_VERTEX_ATTRIB3_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB4_4_NV #undef MAP2_VERTEX_ATTRIB4_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB5_4_NV #undef MAP2_VERTEX_ATTRIB5_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB6_4_NV #undef MAP2_VERTEX_ATTRIB6_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB7_4_NV #undef MAP2_VERTEX_ATTRIB7_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB8_4_NV #undef MAP2_VERTEX_ATTRIB8_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB9_4_NV #undef MAP2_VERTEX_ATTRIB9_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB10_4_NV #undef MAP2_VERTEX_ATTRIB10_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB11_4_NV #undef MAP2_VERTEX_ATTRIB11_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB12_4_NV #undef MAP2_VERTEX_ATTRIB12_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB13_4_NV #undef MAP2_VERTEX_ATTRIB13_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB14_4_NV #undef MAP2_VERTEX_ATTRIB14_4_NV #endif #ifdef MAP2_VERTEX_ATTRIB15_4_NV #undef MAP2_VERTEX_ATTRIB15_4_NV #endif #ifdef VERTEX_ATTRIB_ARRAY_INTEGER_NV #undef VERTEX_ATTRIB_ARRAY_INTEGER_NV #endif #ifdef VIDEO_BUFFER_NV #undef VIDEO_BUFFER_NV #endif #ifdef VIDEO_BUFFER_BINDING_NV #undef VIDEO_BUFFER_BINDING_NV #endif #ifdef FIELD_UPPER_NV #undef FIELD_UPPER_NV #endif #ifdef FIELD_LOWER_NV #undef FIELD_LOWER_NV #endif #ifdef NUM_VIDEO_CAPTURE_STREAMS_NV #undef NUM_VIDEO_CAPTURE_STREAMS_NV #endif #ifdef NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV #undef NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV #endif #ifdef VIDEO_CAPTURE_TO_422_SUPPORTED_NV #undef VIDEO_CAPTURE_TO_422_SUPPORTED_NV #endif #ifdef LAST_VIDEO_CAPTURE_STATUS_NV #undef LAST_VIDEO_CAPTURE_STATUS_NV #endif #ifdef VIDEO_BUFFER_PITCH_NV #undef VIDEO_BUFFER_PITCH_NV #endif #ifdef VIDEO_COLOR_CONVERSION_MATRIX_NV #undef VIDEO_COLOR_CONVERSION_MATRIX_NV #endif #ifdef VIDEO_COLOR_CONVERSION_MAX_NV #undef VIDEO_COLOR_CONVERSION_MAX_NV #endif #ifdef VIDEO_COLOR_CONVERSION_MIN_NV #undef VIDEO_COLOR_CONVERSION_MIN_NV #endif #ifdef VIDEO_COLOR_CONVERSION_OFFSET_NV #undef VIDEO_COLOR_CONVERSION_OFFSET_NV #endif #ifdef VIDEO_BUFFER_INTERNAL_FORMAT_NV #undef VIDEO_BUFFER_INTERNAL_FORMAT_NV #endif #ifdef PARTIAL_SUCCESS_NV #undef PARTIAL_SUCCESS_NV #endif #ifdef SUCCESS_NV #undef SUCCESS_NV #endif #ifdef FAILURE_NV #undef FAILURE_NV #endif #ifdef YCBYCR8_422_NV #undef YCBYCR8_422_NV #endif #ifdef YCBAYCR8A_4224_NV #undef YCBAYCR8A_4224_NV #endif #ifdef Z6Y10Z6CB10Z6Y10Z6CR10_422_NV #undef Z6Y10Z6CB10Z6Y10Z6CR10_422_NV #endif #ifdef Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV #undef Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV #endif #ifdef Z4Y12Z4CB12Z4Y12Z4CR12_422_NV #undef Z4Y12Z4CB12Z4Y12Z4CR12_422_NV #endif #ifdef Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV #undef Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV #endif #ifdef Z4Y12Z4CB12Z4CR12_444_NV #undef Z4Y12Z4CB12Z4CR12_444_NV #endif #ifdef VIDEO_CAPTURE_FRAME_WIDTH_NV #undef VIDEO_CAPTURE_FRAME_WIDTH_NV #endif #ifdef VIDEO_CAPTURE_FRAME_HEIGHT_NV #undef VIDEO_CAPTURE_FRAME_HEIGHT_NV #endif #ifdef VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV #undef VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV #endif #ifdef VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV #undef VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV #endif #ifdef VIDEO_CAPTURE_SURFACE_ORIGIN_NV #undef VIDEO_CAPTURE_SURFACE_ORIGIN_NV #endif #ifdef IMPLEMENTATION_COLOR_READ_TYPE_OES #undef IMPLEMENTATION_COLOR_READ_TYPE_OES #endif #ifdef IMPLEMENTATION_COLOR_READ_FORMAT_OES #undef IMPLEMENTATION_COLOR_READ_FORMAT_OES #endif #ifdef INTERLACE_OML #undef INTERLACE_OML #endif #ifdef INTERLACE_READ_OML #undef INTERLACE_READ_OML #endif #ifdef PACK_RESAMPLE_OML #undef PACK_RESAMPLE_OML #endif #ifdef UNPACK_RESAMPLE_OML #undef UNPACK_RESAMPLE_OML #endif #ifdef RESAMPLE_REPLICATE_OML #undef RESAMPLE_REPLICATE_OML #endif #ifdef RESAMPLE_ZERO_FILL_OML #undef RESAMPLE_ZERO_FILL_OML #endif #ifdef RESAMPLE_AVERAGE_OML #undef RESAMPLE_AVERAGE_OML #endif #ifdef RESAMPLE_DECIMATE_OML #undef RESAMPLE_DECIMATE_OML #endif #ifdef FORMAT_SUBSAMPLE_24_24_OML #undef FORMAT_SUBSAMPLE_24_24_OML #endif #ifdef FORMAT_SUBSAMPLE_244_244_OML #undef FORMAT_SUBSAMPLE_244_244_OML #endif #ifdef PREFER_DOUBLEBUFFER_HINT_PGI #undef PREFER_DOUBLEBUFFER_HINT_PGI #endif #ifdef CONSERVE_MEMORY_HINT_PGI #undef CONSERVE_MEMORY_HINT_PGI #endif #ifdef RECLAIM_MEMORY_HINT_PGI #undef RECLAIM_MEMORY_HINT_PGI #endif #ifdef NATIVE_GRAPHICS_HANDLE_PGI #undef NATIVE_GRAPHICS_HANDLE_PGI #endif #ifdef NATIVE_GRAPHICS_BEGIN_HINT_PGI #undef NATIVE_GRAPHICS_BEGIN_HINT_PGI #endif #ifdef NATIVE_GRAPHICS_END_HINT_PGI #undef NATIVE_GRAPHICS_END_HINT_PGI #endif #ifdef ALWAYS_FAST_HINT_PGI #undef ALWAYS_FAST_HINT_PGI #endif #ifdef ALWAYS_SOFT_HINT_PGI #undef ALWAYS_SOFT_HINT_PGI #endif #ifdef ALLOW_DRAW_OBJ_HINT_PGI #undef ALLOW_DRAW_OBJ_HINT_PGI #endif #ifdef ALLOW_DRAW_WIN_HINT_PGI #undef ALLOW_DRAW_WIN_HINT_PGI #endif #ifdef ALLOW_DRAW_FRG_HINT_PGI #undef ALLOW_DRAW_FRG_HINT_PGI #endif #ifdef ALLOW_DRAW_MEM_HINT_PGI #undef ALLOW_DRAW_MEM_HINT_PGI #endif #ifdef STRICT_DEPTHFUNC_HINT_PGI #undef STRICT_DEPTHFUNC_HINT_PGI #endif #ifdef STRICT_LIGHTING_HINT_PGI #undef STRICT_LIGHTING_HINT_PGI #endif #ifdef STRICT_SCISSOR_HINT_PGI #undef STRICT_SCISSOR_HINT_PGI #endif #ifdef FULL_STIPPLE_HINT_PGI #undef FULL_STIPPLE_HINT_PGI #endif #ifdef CLIP_NEAR_HINT_PGI #undef CLIP_NEAR_HINT_PGI #endif #ifdef CLIP_FAR_HINT_PGI #undef CLIP_FAR_HINT_PGI #endif #ifdef WIDE_LINE_HINT_PGI #undef WIDE_LINE_HINT_PGI #endif #ifdef BACK_NORMALS_HINT_PGI #undef BACK_NORMALS_HINT_PGI #endif #ifdef VERTEX_DATA_HINT_PGI #undef VERTEX_DATA_HINT_PGI #endif #ifdef VERTEX_CONSISTENT_HINT_PGI #undef VERTEX_CONSISTENT_HINT_PGI #endif #ifdef MATERIAL_SIDE_HINT_PGI #undef MATERIAL_SIDE_HINT_PGI #endif #ifdef MAX_VERTEX_HINT_PGI #undef MAX_VERTEX_HINT_PGI #endif #ifdef COLOR3_BIT_PGI #undef COLOR3_BIT_PGI #endif #ifdef COLOR4_BIT_PGI #undef COLOR4_BIT_PGI #endif #ifdef EDGEFLAG_BIT_PGI #undef EDGEFLAG_BIT_PGI #endif #ifdef INDEX_BIT_PGI #undef INDEX_BIT_PGI #endif #ifdef MAT_AMBIENT_BIT_PGI #undef MAT_AMBIENT_BIT_PGI #endif #ifdef MAT_AMBIENT_AND_DIFFUSE_BIT_PGI #undef MAT_AMBIENT_AND_DIFFUSE_BIT_PGI #endif #ifdef MAT_DIFFUSE_BIT_PGI #undef MAT_DIFFUSE_BIT_PGI #endif #ifdef MAT_EMISSION_BIT_PGI #undef MAT_EMISSION_BIT_PGI #endif #ifdef MAT_COLOR_INDEXES_BIT_PGI #undef MAT_COLOR_INDEXES_BIT_PGI #endif #ifdef MAT_SHININESS_BIT_PGI #undef MAT_SHININESS_BIT_PGI #endif #ifdef MAT_SPECULAR_BIT_PGI #undef MAT_SPECULAR_BIT_PGI #endif #ifdef NORMAL_BIT_PGI #undef NORMAL_BIT_PGI #endif #ifdef TEXCOORD1_BIT_PGI #undef TEXCOORD1_BIT_PGI #endif #ifdef TEXCOORD2_BIT_PGI #undef TEXCOORD2_BIT_PGI #endif #ifdef TEXCOORD3_BIT_PGI #undef TEXCOORD3_BIT_PGI #endif #ifdef TEXCOORD4_BIT_PGI #undef TEXCOORD4_BIT_PGI #endif #ifdef VERTEX23_BIT_PGI #undef VERTEX23_BIT_PGI #endif #ifdef VERTEX4_BIT_PGI #undef VERTEX4_BIT_PGI #endif #ifdef SCREEN_COORDINATES_REND #undef SCREEN_COORDINATES_REND #endif #ifdef INVERTED_SCREEN_W_REND #undef INVERTED_SCREEN_W_REND #endif #ifdef RGB_S3TC #undef RGB_S3TC #endif #ifdef RGB4_S3TC #undef RGB4_S3TC #endif #ifdef RGBA_S3TC #undef RGBA_S3TC #endif #ifdef RGBA4_S3TC #undef RGBA4_S3TC #endif #ifdef DETAIL_TEXTURE_2D_SGIS #undef DETAIL_TEXTURE_2D_SGIS #endif #ifdef DETAIL_TEXTURE_2D_BINDING_SGIS #undef DETAIL_TEXTURE_2D_BINDING_SGIS #endif #ifdef LINEAR_DETAIL_SGIS #undef LINEAR_DETAIL_SGIS #endif #ifdef LINEAR_DETAIL_ALPHA_SGIS #undef LINEAR_DETAIL_ALPHA_SGIS #endif #ifdef LINEAR_DETAIL_COLOR_SGIS #undef LINEAR_DETAIL_COLOR_SGIS #endif #ifdef DETAIL_TEXTURE_LEVEL_SGIS #undef DETAIL_TEXTURE_LEVEL_SGIS #endif #ifdef DETAIL_TEXTURE_MODE_SGIS #undef DETAIL_TEXTURE_MODE_SGIS #endif #ifdef DETAIL_TEXTURE_FUNC_POINTS_SGIS #undef DETAIL_TEXTURE_FUNC_POINTS_SGIS #endif #ifdef FOG_FUNC_SGIS #undef FOG_FUNC_SGIS #endif #ifdef FOG_FUNC_POINTS_SGIS #undef FOG_FUNC_POINTS_SGIS #endif #ifdef MAX_FOG_FUNC_POINTS_SGIS #undef MAX_FOG_FUNC_POINTS_SGIS #endif #ifdef GENERATE_MIPMAP_SGIS #undef GENERATE_MIPMAP_SGIS #endif #ifdef GENERATE_MIPMAP_HINT_SGIS #undef GENERATE_MIPMAP_HINT_SGIS #endif #ifdef MULTISAMPLE_SGIS #undef MULTISAMPLE_SGIS #endif #ifdef SAMPLE_ALPHA_TO_MASK_SGIS #undef SAMPLE_ALPHA_TO_MASK_SGIS #endif #ifdef SAMPLE_ALPHA_TO_ONE_SGIS #undef SAMPLE_ALPHA_TO_ONE_SGIS #endif #ifdef SAMPLE_MASK_SGIS #undef SAMPLE_MASK_SGIS #endif #ifdef _1PASS_SGIS #undef _1PASS_SGIS #endif #ifdef _2PASS_0_SGIS #undef _2PASS_0_SGIS #endif #ifdef _2PASS_1_SGIS #undef _2PASS_1_SGIS #endif #ifdef _4PASS_0_SGIS #undef _4PASS_0_SGIS #endif #ifdef _4PASS_1_SGIS #undef _4PASS_1_SGIS #endif #ifdef _4PASS_2_SGIS #undef _4PASS_2_SGIS #endif #ifdef _4PASS_3_SGIS #undef _4PASS_3_SGIS #endif #ifdef SAMPLE_BUFFERS_SGIS #undef SAMPLE_BUFFERS_SGIS #endif #ifdef SAMPLES_SGIS #undef SAMPLES_SGIS #endif #ifdef SAMPLE_MASK_VALUE_SGIS #undef SAMPLE_MASK_VALUE_SGIS #endif #ifdef SAMPLE_MASK_INVERT_SGIS #undef SAMPLE_MASK_INVERT_SGIS #endif #ifdef SAMPLE_PATTERN_SGIS #undef SAMPLE_PATTERN_SGIS #endif #ifdef PIXEL_TEXTURE_SGIS #undef PIXEL_TEXTURE_SGIS #endif #ifdef PIXEL_FRAGMENT_RGB_SOURCE_SGIS #undef PIXEL_FRAGMENT_RGB_SOURCE_SGIS #endif #ifdef PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS #undef PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS #endif #ifdef PIXEL_GROUP_COLOR_SGIS #undef PIXEL_GROUP_COLOR_SGIS #endif #ifdef EYE_DISTANCE_TO_POINT_SGIS #undef EYE_DISTANCE_TO_POINT_SGIS #endif #ifdef OBJECT_DISTANCE_TO_POINT_SGIS #undef OBJECT_DISTANCE_TO_POINT_SGIS #endif #ifdef EYE_DISTANCE_TO_LINE_SGIS #undef EYE_DISTANCE_TO_LINE_SGIS #endif #ifdef OBJECT_DISTANCE_TO_LINE_SGIS #undef OBJECT_DISTANCE_TO_LINE_SGIS #endif #ifdef EYE_POINT_SGIS #undef EYE_POINT_SGIS #endif #ifdef OBJECT_POINT_SGIS #undef OBJECT_POINT_SGIS #endif #ifdef EYE_LINE_SGIS #undef EYE_LINE_SGIS #endif #ifdef OBJECT_LINE_SGIS #undef OBJECT_LINE_SGIS #endif #ifdef POINT_SIZE_MIN_SGIS #undef POINT_SIZE_MIN_SGIS #endif #ifdef POINT_SIZE_MAX_SGIS #undef POINT_SIZE_MAX_SGIS #endif #ifdef POINT_FADE_THRESHOLD_SIZE_SGIS #undef POINT_FADE_THRESHOLD_SIZE_SGIS #endif #ifdef DISTANCE_ATTENUATION_SGIS #undef DISTANCE_ATTENUATION_SGIS #endif #ifdef LINEAR_SHARPEN_SGIS #undef LINEAR_SHARPEN_SGIS #endif #ifdef LINEAR_SHARPEN_ALPHA_SGIS #undef LINEAR_SHARPEN_ALPHA_SGIS #endif #ifdef LINEAR_SHARPEN_COLOR_SGIS #undef LINEAR_SHARPEN_COLOR_SGIS #endif #ifdef SHARPEN_TEXTURE_FUNC_POINTS_SGIS #undef SHARPEN_TEXTURE_FUNC_POINTS_SGIS #endif #ifdef PACK_SKIP_VOLUMES_SGIS #undef PACK_SKIP_VOLUMES_SGIS #endif #ifdef PACK_IMAGE_DEPTH_SGIS #undef PACK_IMAGE_DEPTH_SGIS #endif #ifdef UNPACK_SKIP_VOLUMES_SGIS #undef UNPACK_SKIP_VOLUMES_SGIS #endif #ifdef UNPACK_IMAGE_DEPTH_SGIS #undef UNPACK_IMAGE_DEPTH_SGIS #endif #ifdef TEXTURE_4D_SGIS #undef TEXTURE_4D_SGIS #endif #ifdef PROXY_TEXTURE_4D_SGIS #undef PROXY_TEXTURE_4D_SGIS #endif #ifdef TEXTURE_4DSIZE_SGIS #undef TEXTURE_4DSIZE_SGIS #endif #ifdef TEXTURE_WRAP_Q_SGIS #undef TEXTURE_WRAP_Q_SGIS #endif #ifdef MAX_4D_TEXTURE_SIZE_SGIS #undef MAX_4D_TEXTURE_SIZE_SGIS #endif #ifdef TEXTURE_4D_BINDING_SGIS #undef TEXTURE_4D_BINDING_SGIS #endif #ifdef CLAMP_TO_BORDER_SGIS #undef CLAMP_TO_BORDER_SGIS #endif #ifdef TEXTURE_COLOR_WRITEMASK_SGIS #undef TEXTURE_COLOR_WRITEMASK_SGIS #endif #ifdef CLAMP_TO_EDGE_SGIS #undef CLAMP_TO_EDGE_SGIS #endif #ifdef FILTER4_SGIS #undef FILTER4_SGIS #endif #ifdef TEXTURE_FILTER4_SIZE_SGIS #undef TEXTURE_FILTER4_SIZE_SGIS #endif #ifdef TEXTURE_MIN_LOD_SGIS #undef TEXTURE_MIN_LOD_SGIS #endif #ifdef TEXTURE_MAX_LOD_SGIS #undef TEXTURE_MAX_LOD_SGIS #endif #ifdef TEXTURE_BASE_LEVEL_SGIS #undef TEXTURE_BASE_LEVEL_SGIS #endif #ifdef TEXTURE_MAX_LEVEL_SGIS #undef TEXTURE_MAX_LEVEL_SGIS #endif #ifdef DUAL_ALPHA4_SGIS #undef DUAL_ALPHA4_SGIS #endif #ifdef DUAL_ALPHA8_SGIS #undef DUAL_ALPHA8_SGIS #endif #ifdef DUAL_ALPHA12_SGIS #undef DUAL_ALPHA12_SGIS #endif #ifdef DUAL_ALPHA16_SGIS #undef DUAL_ALPHA16_SGIS #endif #ifdef DUAL_LUMINANCE4_SGIS #undef DUAL_LUMINANCE4_SGIS #endif #ifdef DUAL_LUMINANCE8_SGIS #undef DUAL_LUMINANCE8_SGIS #endif #ifdef DUAL_LUMINANCE12_SGIS #undef DUAL_LUMINANCE12_SGIS #endif #ifdef DUAL_LUMINANCE16_SGIS #undef DUAL_LUMINANCE16_SGIS #endif #ifdef DUAL_INTENSITY4_SGIS #undef DUAL_INTENSITY4_SGIS #endif #ifdef DUAL_INTENSITY8_SGIS #undef DUAL_INTENSITY8_SGIS #endif #ifdef DUAL_INTENSITY12_SGIS #undef DUAL_INTENSITY12_SGIS #endif #ifdef DUAL_INTENSITY16_SGIS #undef DUAL_INTENSITY16_SGIS #endif #ifdef DUAL_LUMINANCE_ALPHA4_SGIS #undef DUAL_LUMINANCE_ALPHA4_SGIS #endif #ifdef DUAL_LUMINANCE_ALPHA8_SGIS #undef DUAL_LUMINANCE_ALPHA8_SGIS #endif #ifdef QUAD_ALPHA4_SGIS #undef QUAD_ALPHA4_SGIS #endif #ifdef QUAD_ALPHA8_SGIS #undef QUAD_ALPHA8_SGIS #endif #ifdef QUAD_LUMINANCE4_SGIS #undef QUAD_LUMINANCE4_SGIS #endif #ifdef QUAD_LUMINANCE8_SGIS #undef QUAD_LUMINANCE8_SGIS #endif #ifdef QUAD_INTENSITY4_SGIS #undef QUAD_INTENSITY4_SGIS #endif #ifdef QUAD_INTENSITY8_SGIS #undef QUAD_INTENSITY8_SGIS #endif #ifdef DUAL_TEXTURE_SELECT_SGIS #undef DUAL_TEXTURE_SELECT_SGIS #endif #ifdef QUAD_TEXTURE_SELECT_SGIS #undef QUAD_TEXTURE_SELECT_SGIS #endif #ifdef ASYNC_MARKER_SGIX #undef ASYNC_MARKER_SGIX #endif #ifdef ASYNC_HISTOGRAM_SGIX #undef ASYNC_HISTOGRAM_SGIX #endif #ifdef MAX_ASYNC_HISTOGRAM_SGIX #undef MAX_ASYNC_HISTOGRAM_SGIX #endif #ifdef ASYNC_TEX_IMAGE_SGIX #undef ASYNC_TEX_IMAGE_SGIX #endif #ifdef ASYNC_DRAW_PIXELS_SGIX #undef ASYNC_DRAW_PIXELS_SGIX #endif #ifdef ASYNC_READ_PIXELS_SGIX #undef ASYNC_READ_PIXELS_SGIX #endif #ifdef MAX_ASYNC_TEX_IMAGE_SGIX #undef MAX_ASYNC_TEX_IMAGE_SGIX #endif #ifdef MAX_ASYNC_DRAW_PIXELS_SGIX #undef MAX_ASYNC_DRAW_PIXELS_SGIX #endif #ifdef MAX_ASYNC_READ_PIXELS_SGIX #undef MAX_ASYNC_READ_PIXELS_SGIX #endif #ifdef ALPHA_MIN_SGIX #undef ALPHA_MIN_SGIX #endif #ifdef ALPHA_MAX_SGIX #undef ALPHA_MAX_SGIX #endif #ifdef CALLIGRAPHIC_FRAGMENT_SGIX #undef CALLIGRAPHIC_FRAGMENT_SGIX #endif #ifdef LINEAR_CLIPMAP_LINEAR_SGIX #undef LINEAR_CLIPMAP_LINEAR_SGIX #endif #ifdef TEXTURE_CLIPMAP_CENTER_SGIX #undef TEXTURE_CLIPMAP_CENTER_SGIX #endif #ifdef TEXTURE_CLIPMAP_FRAME_SGIX #undef TEXTURE_CLIPMAP_FRAME_SGIX #endif #ifdef TEXTURE_CLIPMAP_OFFSET_SGIX #undef TEXTURE_CLIPMAP_OFFSET_SGIX #endif #ifdef TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX #undef TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX #endif #ifdef TEXTURE_CLIPMAP_LOD_OFFSET_SGIX #undef TEXTURE_CLIPMAP_LOD_OFFSET_SGIX #endif #ifdef TEXTURE_CLIPMAP_DEPTH_SGIX #undef TEXTURE_CLIPMAP_DEPTH_SGIX #endif #ifdef MAX_CLIPMAP_DEPTH_SGIX #undef MAX_CLIPMAP_DEPTH_SGIX #endif #ifdef MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX #undef MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX #endif #ifdef NEAREST_CLIPMAP_NEAREST_SGIX #undef NEAREST_CLIPMAP_NEAREST_SGIX #endif #ifdef NEAREST_CLIPMAP_LINEAR_SGIX #undef NEAREST_CLIPMAP_LINEAR_SGIX #endif #ifdef LINEAR_CLIPMAP_NEAREST_SGIX #undef LINEAR_CLIPMAP_NEAREST_SGIX #endif #ifdef CONVOLUTION_HINT_SGIX #undef CONVOLUTION_HINT_SGIX #endif #ifdef DEPTH_COMPONENT16_SGIX #undef DEPTH_COMPONENT16_SGIX #endif #ifdef DEPTH_COMPONENT24_SGIX #undef DEPTH_COMPONENT24_SGIX #endif #ifdef DEPTH_COMPONENT32_SGIX #undef DEPTH_COMPONENT32_SGIX #endif #ifdef FOG_OFFSET_SGIX #undef FOG_OFFSET_SGIX #endif #ifdef FOG_OFFSET_VALUE_SGIX #undef FOG_OFFSET_VALUE_SGIX #endif #ifdef FOG_SCALE_SGIX #undef FOG_SCALE_SGIX #endif #ifdef FOG_SCALE_VALUE_SGIX #undef FOG_SCALE_VALUE_SGIX #endif #ifdef FRAGMENT_LIGHTING_SGIX #undef FRAGMENT_LIGHTING_SGIX #endif #ifdef FRAGMENT_COLOR_MATERIAL_SGIX #undef FRAGMENT_COLOR_MATERIAL_SGIX #endif #ifdef FRAGMENT_COLOR_MATERIAL_FACE_SGIX #undef FRAGMENT_COLOR_MATERIAL_FACE_SGIX #endif #ifdef FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX #undef FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX #endif #ifdef MAX_FRAGMENT_LIGHTS_SGIX #undef MAX_FRAGMENT_LIGHTS_SGIX #endif #ifdef MAX_ACTIVE_LIGHTS_SGIX #undef MAX_ACTIVE_LIGHTS_SGIX #endif #ifdef CURRENT_RASTER_NORMAL_SGIX #undef CURRENT_RASTER_NORMAL_SGIX #endif #ifdef LIGHT_ENV_MODE_SGIX #undef LIGHT_ENV_MODE_SGIX #endif #ifdef FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX #undef FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX #endif #ifdef FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX #undef FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX #endif #ifdef FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX #undef FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX #endif #ifdef FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX #undef FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX #endif #ifdef FRAGMENT_LIGHT0_SGIX #undef FRAGMENT_LIGHT0_SGIX #endif #ifdef FRAGMENT_LIGHT1_SGIX #undef FRAGMENT_LIGHT1_SGIX #endif #ifdef FRAGMENT_LIGHT2_SGIX #undef FRAGMENT_LIGHT2_SGIX #endif #ifdef FRAGMENT_LIGHT3_SGIX #undef FRAGMENT_LIGHT3_SGIX #endif #ifdef FRAGMENT_LIGHT4_SGIX #undef FRAGMENT_LIGHT4_SGIX #endif #ifdef FRAGMENT_LIGHT5_SGIX #undef FRAGMENT_LIGHT5_SGIX #endif #ifdef FRAGMENT_LIGHT6_SGIX #undef FRAGMENT_LIGHT6_SGIX #endif #ifdef FRAGMENT_LIGHT7_SGIX #undef FRAGMENT_LIGHT7_SGIX #endif #ifdef FRAMEZOOM_SGIX #undef FRAMEZOOM_SGIX #endif #ifdef FRAMEZOOM_FACTOR_SGIX #undef FRAMEZOOM_FACTOR_SGIX #endif #ifdef MAX_FRAMEZOOM_FACTOR_SGIX #undef MAX_FRAMEZOOM_FACTOR_SGIX #endif #ifdef PIXEL_TEX_GEN_Q_CEILING_SGIX #undef PIXEL_TEX_GEN_Q_CEILING_SGIX #endif #ifdef PIXEL_TEX_GEN_Q_ROUND_SGIX #undef PIXEL_TEX_GEN_Q_ROUND_SGIX #endif #ifdef PIXEL_TEX_GEN_Q_FLOOR_SGIX #undef PIXEL_TEX_GEN_Q_FLOOR_SGIX #endif #ifdef PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX #undef PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX #endif #ifdef PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX #undef PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX #endif #ifdef PIXEL_TEX_GEN_ALPHA_LS_SGIX #undef PIXEL_TEX_GEN_ALPHA_LS_SGIX #endif #ifdef PIXEL_TEX_GEN_ALPHA_MS_SGIX #undef PIXEL_TEX_GEN_ALPHA_MS_SGIX #endif #ifdef INSTRUMENT_BUFFER_POINTER_SGIX #undef INSTRUMENT_BUFFER_POINTER_SGIX #endif #ifdef INSTRUMENT_MEASUREMENTS_SGIX #undef INSTRUMENT_MEASUREMENTS_SGIX #endif #ifdef INTERLACE_SGIX #undef INTERLACE_SGIX #endif #ifdef IR_INSTRUMENT1_SGIX #undef IR_INSTRUMENT1_SGIX #endif #ifdef LIST_PRIORITY_SGIX #undef LIST_PRIORITY_SGIX #endif #ifdef PIXEL_TEX_GEN_SGIX #undef PIXEL_TEX_GEN_SGIX #endif #ifdef PIXEL_TEX_GEN_MODE_SGIX #undef PIXEL_TEX_GEN_MODE_SGIX #endif #ifdef PIXEL_TILE_BEST_ALIGNMENT_SGIX #undef PIXEL_TILE_BEST_ALIGNMENT_SGIX #endif #ifdef PIXEL_TILE_CACHE_INCREMENT_SGIX #undef PIXEL_TILE_CACHE_INCREMENT_SGIX #endif #ifdef PIXEL_TILE_WIDTH_SGIX #undef PIXEL_TILE_WIDTH_SGIX #endif #ifdef PIXEL_TILE_HEIGHT_SGIX #undef PIXEL_TILE_HEIGHT_SGIX #endif #ifdef PIXEL_TILE_GRID_WIDTH_SGIX #undef PIXEL_TILE_GRID_WIDTH_SGIX #endif #ifdef PIXEL_TILE_GRID_HEIGHT_SGIX #undef PIXEL_TILE_GRID_HEIGHT_SGIX #endif #ifdef PIXEL_TILE_GRID_DEPTH_SGIX #undef PIXEL_TILE_GRID_DEPTH_SGIX #endif #ifdef PIXEL_TILE_CACHE_SIZE_SGIX #undef PIXEL_TILE_CACHE_SIZE_SGIX #endif #ifdef GEOMETRY_DEFORMATION_SGIX #undef GEOMETRY_DEFORMATION_SGIX #endif #ifdef TEXTURE_DEFORMATION_SGIX #undef TEXTURE_DEFORMATION_SGIX #endif #ifdef DEFORMATIONS_MASK_SGIX #undef DEFORMATIONS_MASK_SGIX #endif #ifdef MAX_DEFORMATION_ORDER_SGIX #undef MAX_DEFORMATION_ORDER_SGIX #endif #ifdef REFERENCE_PLANE_SGIX #undef REFERENCE_PLANE_SGIX #endif #ifdef REFERENCE_PLANE_EQUATION_SGIX #undef REFERENCE_PLANE_EQUATION_SGIX #endif #ifdef PACK_RESAMPLE_SGIX #undef PACK_RESAMPLE_SGIX #endif #ifdef UNPACK_RESAMPLE_SGIX #undef UNPACK_RESAMPLE_SGIX #endif #ifdef RESAMPLE_REPLICATE_SGIX #undef RESAMPLE_REPLICATE_SGIX #endif #ifdef RESAMPLE_ZERO_FILL_SGIX #undef RESAMPLE_ZERO_FILL_SGIX #endif #ifdef RESAMPLE_DECIMATE_SGIX #undef RESAMPLE_DECIMATE_SGIX #endif #ifdef SCALEBIAS_HINT_SGIX #undef SCALEBIAS_HINT_SGIX #endif #ifdef TEXTURE_COMPARE_SGIX #undef TEXTURE_COMPARE_SGIX #endif #ifdef TEXTURE_COMPARE_OPERATOR_SGIX #undef TEXTURE_COMPARE_OPERATOR_SGIX #endif #ifdef TEXTURE_LEQUAL_R_SGIX #undef TEXTURE_LEQUAL_R_SGIX #endif #ifdef TEXTURE_GEQUAL_R_SGIX #undef TEXTURE_GEQUAL_R_SGIX #endif #ifdef SHADOW_AMBIENT_SGIX #undef SHADOW_AMBIENT_SGIX #endif #ifdef SPRITE_SGIX #undef SPRITE_SGIX #endif #ifdef SPRITE_MODE_SGIX #undef SPRITE_MODE_SGIX #endif #ifdef SPRITE_AXIS_SGIX #undef SPRITE_AXIS_SGIX #endif #ifdef SPRITE_TRANSLATION_SGIX #undef SPRITE_TRANSLATION_SGIX #endif #ifdef SPRITE_AXIAL_SGIX #undef SPRITE_AXIAL_SGIX #endif #ifdef SPRITE_OBJECT_ALIGNED_SGIX #undef SPRITE_OBJECT_ALIGNED_SGIX #endif #ifdef SPRITE_EYE_ALIGNED_SGIX #undef SPRITE_EYE_ALIGNED_SGIX #endif #ifdef PACK_SUBSAMPLE_RATE_SGIX #undef PACK_SUBSAMPLE_RATE_SGIX #endif #ifdef UNPACK_SUBSAMPLE_RATE_SGIX #undef UNPACK_SUBSAMPLE_RATE_SGIX #endif #ifdef PIXEL_SUBSAMPLE_4444_SGIX #undef PIXEL_SUBSAMPLE_4444_SGIX #endif #ifdef PIXEL_SUBSAMPLE_2424_SGIX #undef PIXEL_SUBSAMPLE_2424_SGIX #endif #ifdef PIXEL_SUBSAMPLE_4242_SGIX #undef PIXEL_SUBSAMPLE_4242_SGIX #endif #ifdef TEXTURE_ENV_BIAS_SGIX #undef TEXTURE_ENV_BIAS_SGIX #endif #ifdef TEXTURE_MAX_CLAMP_S_SGIX #undef TEXTURE_MAX_CLAMP_S_SGIX #endif #ifdef TEXTURE_MAX_CLAMP_T_SGIX #undef TEXTURE_MAX_CLAMP_T_SGIX #endif #ifdef TEXTURE_MAX_CLAMP_R_SGIX #undef TEXTURE_MAX_CLAMP_R_SGIX #endif #ifdef TEXTURE_LOD_BIAS_S_SGIX #undef TEXTURE_LOD_BIAS_S_SGIX #endif #ifdef TEXTURE_LOD_BIAS_T_SGIX #undef TEXTURE_LOD_BIAS_T_SGIX #endif #ifdef TEXTURE_LOD_BIAS_R_SGIX #undef TEXTURE_LOD_BIAS_R_SGIX #endif #ifdef TEXTURE_MULTI_BUFFER_HINT_SGIX #undef TEXTURE_MULTI_BUFFER_HINT_SGIX #endif #ifdef POST_TEXTURE_FILTER_BIAS_SGIX #undef POST_TEXTURE_FILTER_BIAS_SGIX #endif #ifdef POST_TEXTURE_FILTER_SCALE_SGIX #undef POST_TEXTURE_FILTER_SCALE_SGIX #endif #ifdef POST_TEXTURE_FILTER_BIAS_RANGE_SGIX #undef POST_TEXTURE_FILTER_BIAS_RANGE_SGIX #endif #ifdef POST_TEXTURE_FILTER_SCALE_RANGE_SGIX #undef POST_TEXTURE_FILTER_SCALE_RANGE_SGIX #endif #ifdef VERTEX_PRECLIP_SGIX #undef VERTEX_PRECLIP_SGIX #endif #ifdef VERTEX_PRECLIP_HINT_SGIX #undef VERTEX_PRECLIP_HINT_SGIX #endif #ifdef YCRCB_422_SGIX #undef YCRCB_422_SGIX #endif #ifdef YCRCB_444_SGIX #undef YCRCB_444_SGIX #endif #ifdef YCRCB_SGIX #undef YCRCB_SGIX #endif #ifdef YCRCBA_SGIX #undef YCRCBA_SGIX #endif #ifdef COLOR_MATRIX_SGI #undef COLOR_MATRIX_SGI #endif #ifdef COLOR_MATRIX_STACK_DEPTH_SGI #undef COLOR_MATRIX_STACK_DEPTH_SGI #endif #ifdef MAX_COLOR_MATRIX_STACK_DEPTH_SGI #undef MAX_COLOR_MATRIX_STACK_DEPTH_SGI #endif #ifdef POST_COLOR_MATRIX_RED_SCALE_SGI #undef POST_COLOR_MATRIX_RED_SCALE_SGI #endif #ifdef POST_COLOR_MATRIX_GREEN_SCALE_SGI #undef POST_COLOR_MATRIX_GREEN_SCALE_SGI #endif #ifdef POST_COLOR_MATRIX_BLUE_SCALE_SGI #undef POST_COLOR_MATRIX_BLUE_SCALE_SGI #endif #ifdef POST_COLOR_MATRIX_ALPHA_SCALE_SGI #undef POST_COLOR_MATRIX_ALPHA_SCALE_SGI #endif #ifdef POST_COLOR_MATRIX_RED_BIAS_SGI #undef POST_COLOR_MATRIX_RED_BIAS_SGI #endif #ifdef POST_COLOR_MATRIX_GREEN_BIAS_SGI #undef POST_COLOR_MATRIX_GREEN_BIAS_SGI #endif #ifdef POST_COLOR_MATRIX_BLUE_BIAS_SGI #undef POST_COLOR_MATRIX_BLUE_BIAS_SGI #endif #ifdef POST_COLOR_MATRIX_ALPHA_BIAS_SGI #undef POST_COLOR_MATRIX_ALPHA_BIAS_SGI #endif #ifdef COLOR_TABLE_SGI #undef COLOR_TABLE_SGI #endif #ifdef POST_CONVOLUTION_COLOR_TABLE_SGI #undef POST_CONVOLUTION_COLOR_TABLE_SGI #endif #ifdef POST_COLOR_MATRIX_COLOR_TABLE_SGI #undef POST_COLOR_MATRIX_COLOR_TABLE_SGI #endif #ifdef PROXY_COLOR_TABLE_SGI #undef PROXY_COLOR_TABLE_SGI #endif #ifdef PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI #undef PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI #endif #ifdef PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI #undef PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI #endif #ifdef COLOR_TABLE_SCALE_SGI #undef COLOR_TABLE_SCALE_SGI #endif #ifdef COLOR_TABLE_BIAS_SGI #undef COLOR_TABLE_BIAS_SGI #endif #ifdef COLOR_TABLE_FORMAT_SGI #undef COLOR_TABLE_FORMAT_SGI #endif #ifdef COLOR_TABLE_WIDTH_SGI #undef COLOR_TABLE_WIDTH_SGI #endif #ifdef COLOR_TABLE_RED_SIZE_SGI #undef COLOR_TABLE_RED_SIZE_SGI #endif #ifdef COLOR_TABLE_GREEN_SIZE_SGI #undef COLOR_TABLE_GREEN_SIZE_SGI #endif #ifdef COLOR_TABLE_BLUE_SIZE_SGI #undef COLOR_TABLE_BLUE_SIZE_SGI #endif #ifdef COLOR_TABLE_ALPHA_SIZE_SGI #undef COLOR_TABLE_ALPHA_SIZE_SGI #endif #ifdef COLOR_TABLE_LUMINANCE_SIZE_SGI #undef COLOR_TABLE_LUMINANCE_SIZE_SGI #endif #ifdef COLOR_TABLE_INTENSITY_SIZE_SGI #undef COLOR_TABLE_INTENSITY_SIZE_SGI #endif #ifdef DEPTH_PASS_INSTRUMENT_SGIX #undef DEPTH_PASS_INSTRUMENT_SGIX #endif #ifdef DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX #undef DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX #endif #ifdef DEPTH_PASS_INSTRUMENT_MAX_SGIX #undef DEPTH_PASS_INSTRUMENT_MAX_SGIX #endif #ifdef TEXTURE_COLOR_TABLE_SGI #undef TEXTURE_COLOR_TABLE_SGI #endif #ifdef PROXY_TEXTURE_COLOR_TABLE_SGI #undef PROXY_TEXTURE_COLOR_TABLE_SGI #endif #ifdef UNPACK_CONSTANT_DATA_SUNX #undef UNPACK_CONSTANT_DATA_SUNX #endif #ifdef TEXTURE_CONSTANT_DATA_SUNX #undef TEXTURE_CONSTANT_DATA_SUNX #endif #ifdef WRAP_BORDER_SUN #undef WRAP_BORDER_SUN #endif #ifdef GLOBAL_ALPHA_SUN #undef GLOBAL_ALPHA_SUN #endif #ifdef GLOBAL_ALPHA_FACTOR_SUN #undef GLOBAL_ALPHA_FACTOR_SUN #endif #ifdef QUAD_MESH_SUN #undef QUAD_MESH_SUN #endif #ifdef TRIANGLE_MESH_SUN #undef TRIANGLE_MESH_SUN #endif #ifdef SLICE_ACCUM_SUN #undef SLICE_ACCUM_SUN #endif #ifdef RESTART_SUN #undef RESTART_SUN #endif #ifdef REPLACE_MIDDLE_SUN #undef REPLACE_MIDDLE_SUN #endif #ifdef REPLACE_OLDEST_SUN #undef REPLACE_OLDEST_SUN #endif #ifdef TRIANGLE_LIST_SUN #undef TRIANGLE_LIST_SUN #endif #ifdef REPLACEMENT_CODE_SUN #undef REPLACEMENT_CODE_SUN #endif #ifdef REPLACEMENT_CODE_ARRAY_SUN #undef REPLACEMENT_CODE_ARRAY_SUN #endif #ifdef REPLACEMENT_CODE_ARRAY_TYPE_SUN #undef REPLACEMENT_CODE_ARRAY_TYPE_SUN #endif #ifdef REPLACEMENT_CODE_ARRAY_STRIDE_SUN #undef REPLACEMENT_CODE_ARRAY_STRIDE_SUN #endif #ifdef REPLACEMENT_CODE_ARRAY_POINTER_SUN #undef REPLACEMENT_CODE_ARRAY_POINTER_SUN #endif #ifdef R1UI_V3F_SUN #undef R1UI_V3F_SUN #endif #ifdef R1UI_C4UB_V3F_SUN #undef R1UI_C4UB_V3F_SUN #endif #ifdef R1UI_C3F_V3F_SUN #undef R1UI_C3F_V3F_SUN #endif #ifdef R1UI_N3F_V3F_SUN #undef R1UI_N3F_V3F_SUN #endif #ifdef R1UI_C4F_N3F_V3F_SUN #undef R1UI_C4F_N3F_V3F_SUN #endif #ifdef R1UI_T2F_V3F_SUN #undef R1UI_T2F_V3F_SUN #endif #ifdef R1UI_T2F_N3F_V3F_SUN #undef R1UI_T2F_N3F_V3F_SUN #endif #ifdef R1UI_T2F_C4F_N3F_V3F_SUN #undef R1UI_T2F_C4F_N3F_V3F_SUN #endif #ifdef UNSIGNED_BYTE_3_3_2 #undef UNSIGNED_BYTE_3_3_2 #endif #ifdef UNSIGNED_SHORT_4_4_4_4 #undef UNSIGNED_SHORT_4_4_4_4 #endif #ifdef UNSIGNED_SHORT_5_5_5_1 #undef UNSIGNED_SHORT_5_5_5_1 #endif #ifdef UNSIGNED_INT_8_8_8_8 #undef UNSIGNED_INT_8_8_8_8 #endif #ifdef UNSIGNED_INT_10_10_10_2 #undef UNSIGNED_INT_10_10_10_2 #endif #ifdef TEXTURE_BINDING_3D #undef TEXTURE_BINDING_3D #endif #ifdef PACK_SKIP_IMAGES #undef PACK_SKIP_IMAGES #endif #ifdef PACK_IMAGE_HEIGHT #undef PACK_IMAGE_HEIGHT #endif #ifdef UNPACK_SKIP_IMAGES #undef UNPACK_SKIP_IMAGES #endif #ifdef UNPACK_IMAGE_HEIGHT #undef UNPACK_IMAGE_HEIGHT #endif #ifdef TEXTURE_3D #undef TEXTURE_3D #endif #ifdef PROXY_TEXTURE_3D #undef PROXY_TEXTURE_3D #endif #ifdef TEXTURE_DEPTH #undef TEXTURE_DEPTH #endif #ifdef TEXTURE_WRAP_R #undef TEXTURE_WRAP_R #endif #ifdef MAX_3D_TEXTURE_SIZE #undef MAX_3D_TEXTURE_SIZE #endif #ifdef UNSIGNED_BYTE_2_3_3_REV #undef UNSIGNED_BYTE_2_3_3_REV #endif #ifdef UNSIGNED_SHORT_5_6_5 #undef UNSIGNED_SHORT_5_6_5 #endif #ifdef UNSIGNED_SHORT_5_6_5_REV #undef UNSIGNED_SHORT_5_6_5_REV #endif #ifdef UNSIGNED_SHORT_4_4_4_4_REV #undef UNSIGNED_SHORT_4_4_4_4_REV #endif #ifdef UNSIGNED_SHORT_1_5_5_5_REV #undef UNSIGNED_SHORT_1_5_5_5_REV #endif #ifdef UNSIGNED_INT_8_8_8_8_REV #undef UNSIGNED_INT_8_8_8_8_REV #endif #ifdef UNSIGNED_INT_2_10_10_10_REV #undef UNSIGNED_INT_2_10_10_10_REV #endif #ifdef BGR #undef BGR #endif #ifdef BGRA #undef BGRA #endif #ifdef MAX_ELEMENTS_VERTICES #undef MAX_ELEMENTS_VERTICES #endif #ifdef MAX_ELEMENTS_INDICES #undef MAX_ELEMENTS_INDICES #endif #ifdef CLAMP_TO_EDGE #undef CLAMP_TO_EDGE #endif #ifdef TEXTURE_MIN_LOD #undef TEXTURE_MIN_LOD #endif #ifdef TEXTURE_MAX_LOD #undef TEXTURE_MAX_LOD #endif #ifdef TEXTURE_BASE_LEVEL #undef TEXTURE_BASE_LEVEL #endif #ifdef TEXTURE_MAX_LEVEL #undef TEXTURE_MAX_LEVEL #endif #ifdef SMOOTH_POINT_SIZE_RANGE #undef SMOOTH_POINT_SIZE_RANGE #endif #ifdef SMOOTH_POINT_SIZE_GRANULARITY #undef SMOOTH_POINT_SIZE_GRANULARITY #endif #ifdef SMOOTH_LINE_WIDTH_RANGE #undef SMOOTH_LINE_WIDTH_RANGE #endif #ifdef SMOOTH_LINE_WIDTH_GRANULARITY #undef SMOOTH_LINE_WIDTH_GRANULARITY #endif #ifdef ALIASED_LINE_WIDTH_RANGE #undef ALIASED_LINE_WIDTH_RANGE #endif #ifdef RESCALE_NORMAL #undef RESCALE_NORMAL #endif #ifdef LIGHT_MODEL_COLOR_CONTROL #undef LIGHT_MODEL_COLOR_CONTROL #endif #ifdef SINGLE_COLOR #undef SINGLE_COLOR #endif #ifdef SEPARATE_SPECULAR_COLOR #undef SEPARATE_SPECULAR_COLOR #endif #ifdef ALIASED_POINT_SIZE_RANGE #undef ALIASED_POINT_SIZE_RANGE #endif #ifdef TEXTURE0 #undef TEXTURE0 #endif #ifdef TEXTURE1 #undef TEXTURE1 #endif #ifdef TEXTURE2 #undef TEXTURE2 #endif #ifdef TEXTURE3 #undef TEXTURE3 #endif #ifdef TEXTURE4 #undef TEXTURE4 #endif #ifdef TEXTURE5 #undef TEXTURE5 #endif #ifdef TEXTURE6 #undef TEXTURE6 #endif #ifdef TEXTURE7 #undef TEXTURE7 #endif #ifdef TEXTURE8 #undef TEXTURE8 #endif #ifdef TEXTURE9 #undef TEXTURE9 #endif #ifdef TEXTURE10 #undef TEXTURE10 #endif #ifdef TEXTURE11 #undef TEXTURE11 #endif #ifdef TEXTURE12 #undef TEXTURE12 #endif #ifdef TEXTURE13 #undef TEXTURE13 #endif #ifdef TEXTURE14 #undef TEXTURE14 #endif #ifdef TEXTURE15 #undef TEXTURE15 #endif #ifdef TEXTURE16 #undef TEXTURE16 #endif #ifdef TEXTURE17 #undef TEXTURE17 #endif #ifdef TEXTURE18 #undef TEXTURE18 #endif #ifdef TEXTURE19 #undef TEXTURE19 #endif #ifdef TEXTURE20 #undef TEXTURE20 #endif #ifdef TEXTURE21 #undef TEXTURE21 #endif #ifdef TEXTURE22 #undef TEXTURE22 #endif #ifdef TEXTURE23 #undef TEXTURE23 #endif #ifdef TEXTURE24 #undef TEXTURE24 #endif #ifdef TEXTURE25 #undef TEXTURE25 #endif #ifdef TEXTURE26 #undef TEXTURE26 #endif #ifdef TEXTURE27 #undef TEXTURE27 #endif #ifdef TEXTURE28 #undef TEXTURE28 #endif #ifdef TEXTURE29 #undef TEXTURE29 #endif #ifdef TEXTURE30 #undef TEXTURE30 #endif #ifdef TEXTURE31 #undef TEXTURE31 #endif #ifdef ACTIVE_TEXTURE #undef ACTIVE_TEXTURE #endif #ifdef MULTISAMPLE #undef MULTISAMPLE #endif #ifdef SAMPLE_ALPHA_TO_COVERAGE #undef SAMPLE_ALPHA_TO_COVERAGE #endif #ifdef SAMPLE_ALPHA_TO_ONE #undef SAMPLE_ALPHA_TO_ONE #endif #ifdef SAMPLE_COVERAGE #undef SAMPLE_COVERAGE #endif #ifdef SAMPLE_BUFFERS #undef SAMPLE_BUFFERS #endif #ifdef SAMPLES #undef SAMPLES #endif #ifdef SAMPLE_COVERAGE_VALUE #undef SAMPLE_COVERAGE_VALUE #endif #ifdef SAMPLE_COVERAGE_INVERT #undef SAMPLE_COVERAGE_INVERT #endif #ifdef TEXTURE_CUBE_MAP #undef TEXTURE_CUBE_MAP #endif #ifdef TEXTURE_BINDING_CUBE_MAP #undef TEXTURE_BINDING_CUBE_MAP #endif #ifdef TEXTURE_CUBE_MAP_POSITIVE_X #undef TEXTURE_CUBE_MAP_POSITIVE_X #endif #ifdef TEXTURE_CUBE_MAP_NEGATIVE_X #undef TEXTURE_CUBE_MAP_NEGATIVE_X #endif #ifdef TEXTURE_CUBE_MAP_POSITIVE_Y #undef TEXTURE_CUBE_MAP_POSITIVE_Y #endif #ifdef TEXTURE_CUBE_MAP_NEGATIVE_Y #undef TEXTURE_CUBE_MAP_NEGATIVE_Y #endif #ifdef TEXTURE_CUBE_MAP_POSITIVE_Z #undef TEXTURE_CUBE_MAP_POSITIVE_Z #endif #ifdef TEXTURE_CUBE_MAP_NEGATIVE_Z #undef TEXTURE_CUBE_MAP_NEGATIVE_Z #endif #ifdef PROXY_TEXTURE_CUBE_MAP #undef PROXY_TEXTURE_CUBE_MAP #endif #ifdef MAX_CUBE_MAP_TEXTURE_SIZE #undef MAX_CUBE_MAP_TEXTURE_SIZE #endif #ifdef COMPRESSED_RGB #undef COMPRESSED_RGB #endif #ifdef COMPRESSED_RGBA #undef COMPRESSED_RGBA #endif #ifdef TEXTURE_COMPRESSION_HINT #undef TEXTURE_COMPRESSION_HINT #endif #ifdef TEXTURE_COMPRESSED_IMAGE_SIZE #undef TEXTURE_COMPRESSED_IMAGE_SIZE #endif #ifdef TEXTURE_COMPRESSED #undef TEXTURE_COMPRESSED #endif #ifdef NUM_COMPRESSED_TEXTURE_FORMATS #undef NUM_COMPRESSED_TEXTURE_FORMATS #endif #ifdef COMPRESSED_TEXTURE_FORMATS #undef COMPRESSED_TEXTURE_FORMATS #endif #ifdef CLAMP_TO_BORDER #undef CLAMP_TO_BORDER #endif #ifdef CLIENT_ACTIVE_TEXTURE #undef CLIENT_ACTIVE_TEXTURE #endif #ifdef MAX_TEXTURE_UNITS #undef MAX_TEXTURE_UNITS #endif #ifdef TRANSPOSE_MODELVIEW_MATRIX #undef TRANSPOSE_MODELVIEW_MATRIX #endif #ifdef TRANSPOSE_PROJECTION_MATRIX #undef TRANSPOSE_PROJECTION_MATRIX #endif #ifdef TRANSPOSE_TEXTURE_MATRIX #undef TRANSPOSE_TEXTURE_MATRIX #endif #ifdef TRANSPOSE_COLOR_MATRIX #undef TRANSPOSE_COLOR_MATRIX #endif #ifdef MULTISAMPLE_BIT #undef MULTISAMPLE_BIT #endif #ifdef NORMAL_MAP #undef NORMAL_MAP #endif #ifdef REFLECTION_MAP #undef REFLECTION_MAP #endif #ifdef COMPRESSED_ALPHA #undef COMPRESSED_ALPHA #endif #ifdef COMPRESSED_LUMINANCE #undef COMPRESSED_LUMINANCE #endif #ifdef COMPRESSED_LUMINANCE_ALPHA #undef COMPRESSED_LUMINANCE_ALPHA #endif #ifdef COMPRESSED_INTENSITY #undef COMPRESSED_INTENSITY #endif #ifdef COMBINE #undef COMBINE #endif #ifdef COMBINE_RGB #undef COMBINE_RGB #endif #ifdef COMBINE_ALPHA #undef COMBINE_ALPHA #endif #ifdef SOURCE0_RGB #undef SOURCE0_RGB #endif #ifdef SOURCE1_RGB #undef SOURCE1_RGB #endif #ifdef SOURCE2_RGB #undef SOURCE2_RGB #endif #ifdef SOURCE0_ALPHA #undef SOURCE0_ALPHA #endif #ifdef SOURCE1_ALPHA #undef SOURCE1_ALPHA #endif #ifdef SOURCE2_ALPHA #undef SOURCE2_ALPHA #endif #ifdef OPERAND0_RGB #undef OPERAND0_RGB #endif #ifdef OPERAND1_RGB #undef OPERAND1_RGB #endif #ifdef OPERAND2_RGB #undef OPERAND2_RGB #endif #ifdef OPERAND0_ALPHA #undef OPERAND0_ALPHA #endif #ifdef OPERAND1_ALPHA #undef OPERAND1_ALPHA #endif #ifdef OPERAND2_ALPHA #undef OPERAND2_ALPHA #endif #ifdef RGB_SCALE #undef RGB_SCALE #endif #ifdef ADD_SIGNED #undef ADD_SIGNED #endif #ifdef INTERPOLATE #undef INTERPOLATE #endif #ifdef SUBTRACT #undef SUBTRACT #endif #ifdef CONSTANT #undef CONSTANT #endif #ifdef PRIMARY_COLOR #undef PRIMARY_COLOR #endif #ifdef PREVIOUS #undef PREVIOUS #endif #ifdef DOT3_RGB #undef DOT3_RGB #endif #ifdef DOT3_RGBA #undef DOT3_RGBA #endif #ifdef BLEND_DST_RGB #undef BLEND_DST_RGB #endif #ifdef BLEND_SRC_RGB #undef BLEND_SRC_RGB #endif #ifdef BLEND_DST_ALPHA #undef BLEND_DST_ALPHA #endif #ifdef BLEND_SRC_ALPHA #undef BLEND_SRC_ALPHA #endif #ifdef POINT_FADE_THRESHOLD_SIZE #undef POINT_FADE_THRESHOLD_SIZE #endif #ifdef DEPTH_COMPONENT16 #undef DEPTH_COMPONENT16 #endif #ifdef DEPTH_COMPONENT24 #undef DEPTH_COMPONENT24 #endif #ifdef DEPTH_COMPONENT32 #undef DEPTH_COMPONENT32 #endif #ifdef MIRRORED_REPEAT #undef MIRRORED_REPEAT #endif #ifdef MAX_TEXTURE_LOD_BIAS #undef MAX_TEXTURE_LOD_BIAS #endif #ifdef TEXTURE_LOD_BIAS #undef TEXTURE_LOD_BIAS #endif #ifdef INCR_WRAP #undef INCR_WRAP #endif #ifdef DECR_WRAP #undef DECR_WRAP #endif #ifdef TEXTURE_DEPTH_SIZE #undef TEXTURE_DEPTH_SIZE #endif #ifdef TEXTURE_COMPARE_MODE #undef TEXTURE_COMPARE_MODE #endif #ifdef TEXTURE_COMPARE_FUNC #undef TEXTURE_COMPARE_FUNC #endif #ifdef POINT_SIZE_MIN #undef POINT_SIZE_MIN #endif #ifdef POINT_SIZE_MAX #undef POINT_SIZE_MAX #endif #ifdef POINT_DISTANCE_ATTENUATION #undef POINT_DISTANCE_ATTENUATION #endif #ifdef GENERATE_MIPMAP #undef GENERATE_MIPMAP #endif #ifdef GENERATE_MIPMAP_HINT #undef GENERATE_MIPMAP_HINT #endif #ifdef FOG_COORDINATE_SOURCE #undef FOG_COORDINATE_SOURCE #endif #ifdef FOG_COORDINATE #undef FOG_COORDINATE #endif #ifdef FRAGMENT_DEPTH #undef FRAGMENT_DEPTH #endif #ifdef CURRENT_FOG_COORDINATE #undef CURRENT_FOG_COORDINATE #endif #ifdef FOG_COORDINATE_ARRAY_TYPE #undef FOG_COORDINATE_ARRAY_TYPE #endif #ifdef FOG_COORDINATE_ARRAY_STRIDE #undef FOG_COORDINATE_ARRAY_STRIDE #endif #ifdef FOG_COORDINATE_ARRAY_POINTER #undef FOG_COORDINATE_ARRAY_POINTER #endif #ifdef FOG_COORDINATE_ARRAY #undef FOG_COORDINATE_ARRAY #endif #ifdef COLOR_SUM #undef COLOR_SUM #endif #ifdef CURRENT_SECONDARY_COLOR #undef CURRENT_SECONDARY_COLOR #endif #ifdef SECONDARY_COLOR_ARRAY_SIZE #undef SECONDARY_COLOR_ARRAY_SIZE #endif #ifdef SECONDARY_COLOR_ARRAY_TYPE #undef SECONDARY_COLOR_ARRAY_TYPE #endif #ifdef SECONDARY_COLOR_ARRAY_STRIDE #undef SECONDARY_COLOR_ARRAY_STRIDE #endif #ifdef SECONDARY_COLOR_ARRAY_POINTER #undef SECONDARY_COLOR_ARRAY_POINTER #endif #ifdef SECONDARY_COLOR_ARRAY #undef SECONDARY_COLOR_ARRAY #endif #ifdef TEXTURE_FILTER_CONTROL #undef TEXTURE_FILTER_CONTROL #endif #ifdef DEPTH_TEXTURE_MODE #undef DEPTH_TEXTURE_MODE #endif #ifdef COMPARE_R_TO_TEXTURE #undef COMPARE_R_TO_TEXTURE #endif #ifdef BUFFER_SIZE #undef BUFFER_SIZE #endif #ifdef BUFFER_USAGE #undef BUFFER_USAGE #endif #ifdef QUERY_COUNTER_BITS #undef QUERY_COUNTER_BITS #endif #ifdef CURRENT_QUERY #undef CURRENT_QUERY #endif #ifdef QUERY_RESULT #undef QUERY_RESULT #endif #ifdef QUERY_RESULT_AVAILABLE #undef QUERY_RESULT_AVAILABLE #endif #ifdef ARRAY_BUFFER #undef ARRAY_BUFFER #endif #ifdef ELEMENT_ARRAY_BUFFER #undef ELEMENT_ARRAY_BUFFER #endif #ifdef ARRAY_BUFFER_BINDING #undef ARRAY_BUFFER_BINDING #endif #ifdef ELEMENT_ARRAY_BUFFER_BINDING #undef ELEMENT_ARRAY_BUFFER_BINDING #endif #ifdef VERTEX_ATTRIB_ARRAY_BUFFER_BINDING #undef VERTEX_ATTRIB_ARRAY_BUFFER_BINDING #endif #ifdef READ_ONLY #undef READ_ONLY #endif #ifdef WRITE_ONLY #undef WRITE_ONLY #endif #ifdef READ_WRITE #undef READ_WRITE #endif #ifdef BUFFER_ACCESS #undef BUFFER_ACCESS #endif #ifdef BUFFER_MAPPED #undef BUFFER_MAPPED #endif #ifdef BUFFER_MAP_POINTER #undef BUFFER_MAP_POINTER #endif #ifdef STREAM_DRAW #undef STREAM_DRAW #endif #ifdef STREAM_READ #undef STREAM_READ #endif #ifdef STREAM_COPY #undef STREAM_COPY #endif #ifdef STATIC_DRAW #undef STATIC_DRAW #endif #ifdef STATIC_READ #undef STATIC_READ #endif #ifdef STATIC_COPY #undef STATIC_COPY #endif #ifdef DYNAMIC_DRAW #undef DYNAMIC_DRAW #endif #ifdef DYNAMIC_READ #undef DYNAMIC_READ #endif #ifdef DYNAMIC_COPY #undef DYNAMIC_COPY #endif #ifdef SAMPLES_PASSED #undef SAMPLES_PASSED #endif #ifdef VERTEX_ARRAY_BUFFER_BINDING #undef VERTEX_ARRAY_BUFFER_BINDING #endif #ifdef NORMAL_ARRAY_BUFFER_BINDING #undef NORMAL_ARRAY_BUFFER_BINDING #endif #ifdef COLOR_ARRAY_BUFFER_BINDING #undef COLOR_ARRAY_BUFFER_BINDING #endif #ifdef INDEX_ARRAY_BUFFER_BINDING #undef INDEX_ARRAY_BUFFER_BINDING #endif #ifdef TEXTURE_COORD_ARRAY_BUFFER_BINDING #undef TEXTURE_COORD_ARRAY_BUFFER_BINDING #endif #ifdef EDGE_FLAG_ARRAY_BUFFER_BINDING #undef EDGE_FLAG_ARRAY_BUFFER_BINDING #endif #ifdef SECONDARY_COLOR_ARRAY_BUFFER_BINDING #undef SECONDARY_COLOR_ARRAY_BUFFER_BINDING #endif #ifdef FOG_COORDINATE_ARRAY_BUFFER_BINDING #undef FOG_COORDINATE_ARRAY_BUFFER_BINDING #endif #ifdef WEIGHT_ARRAY_BUFFER_BINDING #undef WEIGHT_ARRAY_BUFFER_BINDING #endif #ifdef FOG_COORD_SRC #undef FOG_COORD_SRC #endif #ifdef FOG_COORD #undef FOG_COORD #endif #ifdef CURRENT_FOG_COORD #undef CURRENT_FOG_COORD #endif #ifdef FOG_COORD_ARRAY_TYPE #undef FOG_COORD_ARRAY_TYPE #endif #ifdef FOG_COORD_ARRAY_STRIDE #undef FOG_COORD_ARRAY_STRIDE #endif #ifdef FOG_COORD_ARRAY_POINTER #undef FOG_COORD_ARRAY_POINTER #endif #ifdef FOG_COORD_ARRAY #undef FOG_COORD_ARRAY #endif #ifdef FOG_COORD_ARRAY_BUFFER_BINDING #undef FOG_COORD_ARRAY_BUFFER_BINDING #endif #ifdef SRC0_RGB #undef SRC0_RGB #endif #ifdef SRC1_RGB #undef SRC1_RGB #endif #ifdef SRC2_RGB #undef SRC2_RGB #endif #ifdef SRC0_ALPHA #undef SRC0_ALPHA #endif #ifdef SRC1_ALPHA #undef SRC1_ALPHA #endif #ifdef SRC2_ALPHA #undef SRC2_ALPHA #endif #ifdef BLEND_EQUATION_RGB #undef BLEND_EQUATION_RGB #endif #ifdef VERTEX_ATTRIB_ARRAY_ENABLED #undef VERTEX_ATTRIB_ARRAY_ENABLED #endif #ifdef VERTEX_ATTRIB_ARRAY_SIZE #undef VERTEX_ATTRIB_ARRAY_SIZE #endif #ifdef VERTEX_ATTRIB_ARRAY_STRIDE #undef VERTEX_ATTRIB_ARRAY_STRIDE #endif #ifdef VERTEX_ATTRIB_ARRAY_TYPE #undef VERTEX_ATTRIB_ARRAY_TYPE #endif #ifdef CURRENT_VERTEX_ATTRIB #undef CURRENT_VERTEX_ATTRIB #endif #ifdef VERTEX_PROGRAM_POINT_SIZE #undef VERTEX_PROGRAM_POINT_SIZE #endif #ifdef VERTEX_ATTRIB_ARRAY_POINTER #undef VERTEX_ATTRIB_ARRAY_POINTER #endif #ifdef STENCIL_BACK_FUNC #undef STENCIL_BACK_FUNC #endif #ifdef STENCIL_BACK_FAIL #undef STENCIL_BACK_FAIL #endif #ifdef STENCIL_BACK_PASS_DEPTH_FAIL #undef STENCIL_BACK_PASS_DEPTH_FAIL #endif #ifdef STENCIL_BACK_PASS_DEPTH_PASS #undef STENCIL_BACK_PASS_DEPTH_PASS #endif #ifdef MAX_DRAW_BUFFERS #undef MAX_DRAW_BUFFERS #endif #ifdef DRAW_BUFFER0 #undef DRAW_BUFFER0 #endif #ifdef DRAW_BUFFER1 #undef DRAW_BUFFER1 #endif #ifdef DRAW_BUFFER2 #undef DRAW_BUFFER2 #endif #ifdef DRAW_BUFFER3 #undef DRAW_BUFFER3 #endif #ifdef DRAW_BUFFER4 #undef DRAW_BUFFER4 #endif #ifdef DRAW_BUFFER5 #undef DRAW_BUFFER5 #endif #ifdef DRAW_BUFFER6 #undef DRAW_BUFFER6 #endif #ifdef DRAW_BUFFER7 #undef DRAW_BUFFER7 #endif #ifdef DRAW_BUFFER8 #undef DRAW_BUFFER8 #endif #ifdef DRAW_BUFFER9 #undef DRAW_BUFFER9 #endif #ifdef DRAW_BUFFER10 #undef DRAW_BUFFER10 #endif #ifdef DRAW_BUFFER11 #undef DRAW_BUFFER11 #endif #ifdef DRAW_BUFFER12 #undef DRAW_BUFFER12 #endif #ifdef DRAW_BUFFER13 #undef DRAW_BUFFER13 #endif #ifdef DRAW_BUFFER14 #undef DRAW_BUFFER14 #endif #ifdef DRAW_BUFFER15 #undef DRAW_BUFFER15 #endif #ifdef BLEND_EQUATION_ALPHA #undef BLEND_EQUATION_ALPHA #endif #ifdef MAX_VERTEX_ATTRIBS #undef MAX_VERTEX_ATTRIBS #endif #ifdef VERTEX_ATTRIB_ARRAY_NORMALIZED #undef VERTEX_ATTRIB_ARRAY_NORMALIZED #endif #ifdef MAX_TEXTURE_IMAGE_UNITS #undef MAX_TEXTURE_IMAGE_UNITS #endif #ifdef FRAGMENT_SHADER #undef FRAGMENT_SHADER #endif #ifdef VERTEX_SHADER #undef VERTEX_SHADER #endif #ifdef MAX_FRAGMENT_UNIFORM_COMPONENTS #undef MAX_FRAGMENT_UNIFORM_COMPONENTS #endif #ifdef MAX_VERTEX_UNIFORM_COMPONENTS #undef MAX_VERTEX_UNIFORM_COMPONENTS #endif #ifdef MAX_VARYING_FLOATS #undef MAX_VARYING_FLOATS #endif #ifdef MAX_VERTEX_TEXTURE_IMAGE_UNITS #undef MAX_VERTEX_TEXTURE_IMAGE_UNITS #endif #ifdef MAX_COMBINED_TEXTURE_IMAGE_UNITS #undef MAX_COMBINED_TEXTURE_IMAGE_UNITS #endif #ifdef SHADER_TYPE #undef SHADER_TYPE #endif #ifdef FLOAT_VEC2 #undef FLOAT_VEC2 #endif #ifdef FLOAT_VEC3 #undef FLOAT_VEC3 #endif #ifdef FLOAT_VEC4 #undef FLOAT_VEC4 #endif #ifdef INT_VEC2 #undef INT_VEC2 #endif #ifdef INT_VEC3 #undef INT_VEC3 #endif #ifdef INT_VEC4 #undef INT_VEC4 #endif #ifdef BOOL #undef BOOL #endif #ifdef BOOL_VEC2 #undef BOOL_VEC2 #endif #ifdef BOOL_VEC3 #undef BOOL_VEC3 #endif #ifdef BOOL_VEC4 #undef BOOL_VEC4 #endif #ifdef FLOAT_MAT2 #undef FLOAT_MAT2 #endif #ifdef FLOAT_MAT3 #undef FLOAT_MAT3 #endif #ifdef FLOAT_MAT4 #undef FLOAT_MAT4 #endif #ifdef SAMPLER_1D #undef SAMPLER_1D #endif #ifdef SAMPLER_2D #undef SAMPLER_2D #endif #ifdef SAMPLER_3D #undef SAMPLER_3D #endif #ifdef SAMPLER_CUBE #undef SAMPLER_CUBE #endif #ifdef SAMPLER_1D_SHADOW #undef SAMPLER_1D_SHADOW #endif #ifdef SAMPLER_2D_SHADOW #undef SAMPLER_2D_SHADOW #endif #ifdef DELETE_STATUS #undef DELETE_STATUS #endif #ifdef COMPILE_STATUS #undef COMPILE_STATUS #endif #ifdef LINK_STATUS #undef LINK_STATUS #endif #ifdef VALIDATE_STATUS #undef VALIDATE_STATUS #endif #ifdef INFO_LOG_LENGTH #undef INFO_LOG_LENGTH #endif #ifdef ATTACHED_SHADERS #undef ATTACHED_SHADERS #endif #ifdef ACTIVE_UNIFORMS #undef ACTIVE_UNIFORMS #endif #ifdef ACTIVE_UNIFORM_MAX_LENGTH #undef ACTIVE_UNIFORM_MAX_LENGTH #endif #ifdef SHADER_SOURCE_LENGTH #undef SHADER_SOURCE_LENGTH #endif #ifdef ACTIVE_ATTRIBUTES #undef ACTIVE_ATTRIBUTES #endif #ifdef ACTIVE_ATTRIBUTE_MAX_LENGTH #undef ACTIVE_ATTRIBUTE_MAX_LENGTH #endif #ifdef FRAGMENT_SHADER_DERIVATIVE_HINT #undef FRAGMENT_SHADER_DERIVATIVE_HINT #endif #ifdef SHADING_LANGUAGE_VERSION #undef SHADING_LANGUAGE_VERSION #endif #ifdef CURRENT_PROGRAM #undef CURRENT_PROGRAM #endif #ifdef POINT_SPRITE_COORD_ORIGIN #undef POINT_SPRITE_COORD_ORIGIN #endif #ifdef LOWER_LEFT #undef LOWER_LEFT #endif #ifdef UPPER_LEFT #undef UPPER_LEFT #endif #ifdef STENCIL_BACK_REF #undef STENCIL_BACK_REF #endif #ifdef STENCIL_BACK_VALUE_MASK #undef STENCIL_BACK_VALUE_MASK #endif #ifdef STENCIL_BACK_WRITEMASK #undef STENCIL_BACK_WRITEMASK #endif #ifdef VERTEX_PROGRAM_TWO_SIDE #undef VERTEX_PROGRAM_TWO_SIDE #endif #ifdef POINT_SPRITE #undef POINT_SPRITE #endif #ifdef COORD_REPLACE #undef COORD_REPLACE #endif #ifdef MAX_TEXTURE_COORDS #undef MAX_TEXTURE_COORDS #endif #ifdef PIXEL_PACK_BUFFER #undef PIXEL_PACK_BUFFER #endif #ifdef PIXEL_UNPACK_BUFFER #undef PIXEL_UNPACK_BUFFER #endif #ifdef PIXEL_PACK_BUFFER_BINDING #undef PIXEL_PACK_BUFFER_BINDING #endif #ifdef PIXEL_UNPACK_BUFFER_BINDING #undef PIXEL_UNPACK_BUFFER_BINDING #endif #ifdef FLOAT_MAT2x3 #undef FLOAT_MAT2x3 #endif #ifdef FLOAT_MAT2x4 #undef FLOAT_MAT2x4 #endif #ifdef FLOAT_MAT3x2 #undef FLOAT_MAT3x2 #endif #ifdef FLOAT_MAT3x4 #undef FLOAT_MAT3x4 #endif #ifdef FLOAT_MAT4x2 #undef FLOAT_MAT4x2 #endif #ifdef FLOAT_MAT4x3 #undef FLOAT_MAT4x3 #endif #ifdef SRGB #undef SRGB #endif #ifdef SRGB8 #undef SRGB8 #endif #ifdef SRGB_ALPHA #undef SRGB_ALPHA #endif #ifdef SRGB8_ALPHA8 #undef SRGB8_ALPHA8 #endif #ifdef COMPRESSED_SRGB #undef COMPRESSED_SRGB #endif #ifdef COMPRESSED_SRGB_ALPHA #undef COMPRESSED_SRGB_ALPHA #endif #ifdef CURRENT_RASTER_SECONDARY_COLOR #undef CURRENT_RASTER_SECONDARY_COLOR #endif #ifdef SLUMINANCE_ALPHA #undef SLUMINANCE_ALPHA #endif #ifdef SLUMINANCE8_ALPHA8 #undef SLUMINANCE8_ALPHA8 #endif #ifdef SLUMINANCE #undef SLUMINANCE #endif #ifdef SLUMINANCE8 #undef SLUMINANCE8 #endif #ifdef COMPRESSED_SLUMINANCE #undef COMPRESSED_SLUMINANCE #endif #ifdef COMPRESSED_SLUMINANCE_ALPHA #undef COMPRESSED_SLUMINANCE_ALPHA #endif #ifdef COMPARE_REF_TO_TEXTURE #undef COMPARE_REF_TO_TEXTURE #endif #ifdef CLIP_DISTANCE0 #undef CLIP_DISTANCE0 #endif #ifdef CLIP_DISTANCE1 #undef CLIP_DISTANCE1 #endif #ifdef CLIP_DISTANCE2 #undef CLIP_DISTANCE2 #endif #ifdef CLIP_DISTANCE3 #undef CLIP_DISTANCE3 #endif #ifdef CLIP_DISTANCE4 #undef CLIP_DISTANCE4 #endif #ifdef CLIP_DISTANCE5 #undef CLIP_DISTANCE5 #endif #ifdef CLIP_DISTANCE6 #undef CLIP_DISTANCE6 #endif #ifdef CLIP_DISTANCE7 #undef CLIP_DISTANCE7 #endif #ifdef MAX_CLIP_DISTANCES #undef MAX_CLIP_DISTANCES #endif #ifdef MAJOR_VERSION #undef MAJOR_VERSION #endif #ifdef MINOR_VERSION #undef MINOR_VERSION #endif #ifdef NUM_EXTENSIONS #undef NUM_EXTENSIONS #endif #ifdef CONTEXT_FLAGS #undef CONTEXT_FLAGS #endif #ifdef DEPTH_BUFFER #undef DEPTH_BUFFER #endif #ifdef STENCIL_BUFFER #undef STENCIL_BUFFER #endif #ifdef COMPRESSED_RED #undef COMPRESSED_RED #endif #ifdef COMPRESSED_RG #undef COMPRESSED_RG #endif #ifdef CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT #undef CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT #endif #ifdef RGBA32F #undef RGBA32F #endif #ifdef RGB32F #undef RGB32F #endif #ifdef RGBA16F #undef RGBA16F #endif #ifdef RGB16F #undef RGB16F #endif #ifdef VERTEX_ATTRIB_ARRAY_INTEGER #undef VERTEX_ATTRIB_ARRAY_INTEGER #endif #ifdef MAX_ARRAY_TEXTURE_LAYERS #undef MAX_ARRAY_TEXTURE_LAYERS #endif #ifdef MIN_PROGRAM_TEXEL_OFFSET #undef MIN_PROGRAM_TEXEL_OFFSET #endif #ifdef MAX_PROGRAM_TEXEL_OFFSET #undef MAX_PROGRAM_TEXEL_OFFSET #endif #ifdef CLAMP_READ_COLOR #undef CLAMP_READ_COLOR #endif #ifdef FIXED_ONLY #undef FIXED_ONLY #endif #ifdef MAX_VARYING_COMPONENTS #undef MAX_VARYING_COMPONENTS #endif #ifdef TEXTURE_1D_ARRAY #undef TEXTURE_1D_ARRAY #endif #ifdef PROXY_TEXTURE_1D_ARRAY #undef PROXY_TEXTURE_1D_ARRAY #endif #ifdef TEXTURE_2D_ARRAY #undef TEXTURE_2D_ARRAY #endif #ifdef PROXY_TEXTURE_2D_ARRAY #undef PROXY_TEXTURE_2D_ARRAY #endif #ifdef TEXTURE_BINDING_1D_ARRAY #undef TEXTURE_BINDING_1D_ARRAY #endif #ifdef TEXTURE_BINDING_2D_ARRAY #undef TEXTURE_BINDING_2D_ARRAY #endif #ifdef R11F_G11F_B10F #undef R11F_G11F_B10F #endif #ifdef UNSIGNED_INT_10F_11F_11F_REV #undef UNSIGNED_INT_10F_11F_11F_REV #endif #ifdef RGB9_E5 #undef RGB9_E5 #endif #ifdef UNSIGNED_INT_5_9_9_9_REV #undef UNSIGNED_INT_5_9_9_9_REV #endif #ifdef TEXTURE_SHARED_SIZE #undef TEXTURE_SHARED_SIZE #endif #ifdef TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH #undef TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_MODE #undef TRANSFORM_FEEDBACK_BUFFER_MODE #endif #ifdef MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS #undef MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS #endif #ifdef TRANSFORM_FEEDBACK_VARYINGS #undef TRANSFORM_FEEDBACK_VARYINGS #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_START #undef TRANSFORM_FEEDBACK_BUFFER_START #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_SIZE #undef TRANSFORM_FEEDBACK_BUFFER_SIZE #endif #ifdef PRIMITIVES_GENERATED #undef PRIMITIVES_GENERATED #endif #ifdef TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN #undef TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN #endif #ifdef RASTERIZER_DISCARD #undef RASTERIZER_DISCARD #endif #ifdef MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS #undef MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS #endif #ifdef MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS #undef MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS #endif #ifdef INTERLEAVED_ATTRIBS #undef INTERLEAVED_ATTRIBS #endif #ifdef SEPARATE_ATTRIBS #undef SEPARATE_ATTRIBS #endif #ifdef TRANSFORM_FEEDBACK_BUFFER #undef TRANSFORM_FEEDBACK_BUFFER #endif #ifdef TRANSFORM_FEEDBACK_BUFFER_BINDING #undef TRANSFORM_FEEDBACK_BUFFER_BINDING #endif #ifdef RGBA32UI #undef RGBA32UI #endif #ifdef RGB32UI #undef RGB32UI #endif #ifdef RGBA16UI #undef RGBA16UI #endif #ifdef RGB16UI #undef RGB16UI #endif #ifdef RGBA8UI #undef RGBA8UI #endif #ifdef RGB8UI #undef RGB8UI #endif #ifdef RGBA32I #undef RGBA32I #endif #ifdef RGB32I #undef RGB32I #endif #ifdef RGBA16I #undef RGBA16I #endif #ifdef RGB16I #undef RGB16I #endif #ifdef RGBA8I #undef RGBA8I #endif #ifdef RGB8I #undef RGB8I #endif #ifdef RED_INTEGER #undef RED_INTEGER #endif #ifdef GREEN_INTEGER #undef GREEN_INTEGER #endif #ifdef BLUE_INTEGER #undef BLUE_INTEGER #endif #ifdef RGB_INTEGER #undef RGB_INTEGER #endif #ifdef RGBA_INTEGER #undef RGBA_INTEGER #endif #ifdef BGR_INTEGER #undef BGR_INTEGER #endif #ifdef BGRA_INTEGER #undef BGRA_INTEGER #endif #ifdef SAMPLER_1D_ARRAY #undef SAMPLER_1D_ARRAY #endif #ifdef SAMPLER_2D_ARRAY #undef SAMPLER_2D_ARRAY #endif #ifdef SAMPLER_1D_ARRAY_SHADOW #undef SAMPLER_1D_ARRAY_SHADOW #endif #ifdef SAMPLER_2D_ARRAY_SHADOW #undef SAMPLER_2D_ARRAY_SHADOW #endif #ifdef SAMPLER_CUBE_SHADOW #undef SAMPLER_CUBE_SHADOW #endif #ifdef UNSIGNED_INT_VEC2 #undef UNSIGNED_INT_VEC2 #endif #ifdef UNSIGNED_INT_VEC3 #undef UNSIGNED_INT_VEC3 #endif #ifdef UNSIGNED_INT_VEC4 #undef UNSIGNED_INT_VEC4 #endif #ifdef INT_SAMPLER_1D #undef INT_SAMPLER_1D #endif #ifdef INT_SAMPLER_2D #undef INT_SAMPLER_2D #endif #ifdef INT_SAMPLER_3D #undef INT_SAMPLER_3D #endif #ifdef INT_SAMPLER_CUBE #undef INT_SAMPLER_CUBE #endif #ifdef INT_SAMPLER_1D_ARRAY #undef INT_SAMPLER_1D_ARRAY #endif #ifdef INT_SAMPLER_2D_ARRAY #undef INT_SAMPLER_2D_ARRAY #endif #ifdef UNSIGNED_INT_SAMPLER_1D #undef UNSIGNED_INT_SAMPLER_1D #endif #ifdef UNSIGNED_INT_SAMPLER_2D #undef UNSIGNED_INT_SAMPLER_2D #endif #ifdef UNSIGNED_INT_SAMPLER_3D #undef UNSIGNED_INT_SAMPLER_3D #endif #ifdef UNSIGNED_INT_SAMPLER_CUBE #undef UNSIGNED_INT_SAMPLER_CUBE #endif #ifdef UNSIGNED_INT_SAMPLER_1D_ARRAY #undef UNSIGNED_INT_SAMPLER_1D_ARRAY #endif #ifdef UNSIGNED_INT_SAMPLER_2D_ARRAY #undef UNSIGNED_INT_SAMPLER_2D_ARRAY #endif #ifdef QUERY_WAIT #undef QUERY_WAIT #endif #ifdef QUERY_NO_WAIT #undef QUERY_NO_WAIT #endif #ifdef QUERY_BY_REGION_WAIT #undef QUERY_BY_REGION_WAIT #endif #ifdef QUERY_BY_REGION_NO_WAIT #undef QUERY_BY_REGION_NO_WAIT #endif #ifdef BUFFER_ACCESS_FLAGS #undef BUFFER_ACCESS_FLAGS #endif #ifdef BUFFER_MAP_LENGTH #undef BUFFER_MAP_LENGTH #endif #ifdef BUFFER_MAP_OFFSET #undef BUFFER_MAP_OFFSET #endif #ifdef CLAMP_VERTEX_COLOR #undef CLAMP_VERTEX_COLOR #endif #ifdef CLAMP_FRAGMENT_COLOR #undef CLAMP_FRAGMENT_COLOR #endif #ifdef ALPHA_INTEGER #undef ALPHA_INTEGER #endif #ifdef SAMPLER_2D_RECT #undef SAMPLER_2D_RECT #endif #ifdef SAMPLER_2D_RECT_SHADOW #undef SAMPLER_2D_RECT_SHADOW #endif #ifdef SAMPLER_BUFFER #undef SAMPLER_BUFFER #endif #ifdef INT_SAMPLER_2D_RECT #undef INT_SAMPLER_2D_RECT #endif #ifdef INT_SAMPLER_BUFFER #undef INT_SAMPLER_BUFFER #endif #ifdef UNSIGNED_INT_SAMPLER_2D_RECT #undef UNSIGNED_INT_SAMPLER_2D_RECT #endif #ifdef UNSIGNED_INT_SAMPLER_BUFFER #undef UNSIGNED_INT_SAMPLER_BUFFER #endif #ifdef TEXTURE_BUFFER #undef TEXTURE_BUFFER #endif #ifdef MAX_TEXTURE_BUFFER_SIZE #undef MAX_TEXTURE_BUFFER_SIZE #endif #ifdef TEXTURE_BINDING_BUFFER #undef TEXTURE_BINDING_BUFFER #endif #ifdef TEXTURE_BUFFER_DATA_STORE_BINDING #undef TEXTURE_BUFFER_DATA_STORE_BINDING #endif #ifdef TEXTURE_BUFFER_FORMAT #undef TEXTURE_BUFFER_FORMAT #endif #ifdef TEXTURE_RECTANGLE #undef TEXTURE_RECTANGLE #endif #ifdef TEXTURE_BINDING_RECTANGLE #undef TEXTURE_BINDING_RECTANGLE #endif #ifdef PROXY_TEXTURE_RECTANGLE #undef PROXY_TEXTURE_RECTANGLE #endif #ifdef MAX_RECTANGLE_TEXTURE_SIZE #undef MAX_RECTANGLE_TEXTURE_SIZE #endif #ifdef RED_SNORM #undef RED_SNORM #endif #ifdef RG_SNORM #undef RG_SNORM #endif #ifdef RGB_SNORM #undef RGB_SNORM #endif #ifdef RGBA_SNORM #undef RGBA_SNORM #endif #ifdef R8_SNORM #undef R8_SNORM #endif #ifdef RG8_SNORM #undef RG8_SNORM #endif #ifdef RGB8_SNORM #undef RGB8_SNORM #endif #ifdef RGBA8_SNORM #undef RGBA8_SNORM #endif #ifdef R16_SNORM #undef R16_SNORM #endif #ifdef RG16_SNORM #undef RG16_SNORM #endif #ifdef RGB16_SNORM #undef RGB16_SNORM #endif #ifdef RGBA16_SNORM #undef RGBA16_SNORM #endif #ifdef SIGNED_NORMALIZED #undef SIGNED_NORMALIZED #endif #ifdef PRIMITIVE_RESTART #undef PRIMITIVE_RESTART #endif #ifdef PRIMITIVE_RESTART_INDEX #undef PRIMITIVE_RESTART_INDEX #endif #ifdef CONTEXT_CORE_PROFILE_BIT #undef CONTEXT_CORE_PROFILE_BIT #endif #ifdef CONTEXT_COMPATIBILITY_PROFILE_BIT #undef CONTEXT_COMPATIBILITY_PROFILE_BIT #endif #ifdef LINES_ADJACENCY #undef LINES_ADJACENCY #endif #ifdef LINE_STRIP_ADJACENCY #undef LINE_STRIP_ADJACENCY #endif #ifdef TRIANGLES_ADJACENCY #undef TRIANGLES_ADJACENCY #endif #ifdef TRIANGLE_STRIP_ADJACENCY #undef TRIANGLE_STRIP_ADJACENCY #endif #ifdef PROGRAM_POINT_SIZE #undef PROGRAM_POINT_SIZE #endif #ifdef MAX_GEOMETRY_TEXTURE_IMAGE_UNITS #undef MAX_GEOMETRY_TEXTURE_IMAGE_UNITS #endif #ifdef FRAMEBUFFER_ATTACHMENT_LAYERED #undef FRAMEBUFFER_ATTACHMENT_LAYERED #endif #ifdef FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS #undef FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS #endif #ifdef GEOMETRY_SHADER #undef GEOMETRY_SHADER #endif #ifdef GEOMETRY_VERTICES_OUT #undef GEOMETRY_VERTICES_OUT #endif #ifdef GEOMETRY_INPUT_TYPE #undef GEOMETRY_INPUT_TYPE #endif #ifdef GEOMETRY_OUTPUT_TYPE #undef GEOMETRY_OUTPUT_TYPE #endif #ifdef MAX_GEOMETRY_UNIFORM_COMPONENTS #undef MAX_GEOMETRY_UNIFORM_COMPONENTS #endif #ifdef MAX_GEOMETRY_OUTPUT_VERTICES #undef MAX_GEOMETRY_OUTPUT_VERTICES #endif #ifdef MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS #undef MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS #endif #ifdef MAX_VERTEX_OUTPUT_COMPONENTS #undef MAX_VERTEX_OUTPUT_COMPONENTS #endif #ifdef MAX_GEOMETRY_INPUT_COMPONENTS #undef MAX_GEOMETRY_INPUT_COMPONENTS #endif #ifdef MAX_GEOMETRY_OUTPUT_COMPONENTS #undef MAX_GEOMETRY_OUTPUT_COMPONENTS #endif #ifdef MAX_FRAGMENT_INPUT_COMPONENTS #undef MAX_FRAGMENT_INPUT_COMPONENTS #endif #ifdef CONTEXT_PROFILE_MASK #undef CONTEXT_PROFILE_MASK #endif #ifdef PHONG_WIN #undef PHONG_WIN #endif #ifdef PHONG_HINT_WIN #undef PHONG_HINT_WIN #endif #ifdef FOG_SPECULAR_TEXTURE_WIN #undef FOG_SPECULAR_TEXTURE_WIN #endif #ifdef SAMPLE_BUFFERS_3DFX #undef SAMPLE_BUFFERS_3DFX #endif #ifdef SAMPLES_3DFX #undef SAMPLES_3DFX #endif #ifdef STEREO_EMITTER_ENABLE_3DL #undef STEREO_EMITTER_ENABLE_3DL #endif #ifdef STEREO_EMITTER_DISABLE_3DL #undef STEREO_EMITTER_DISABLE_3DL #endif #ifdef STEREO_POLARITY_NORMAL_3DL #undef STEREO_POLARITY_NORMAL_3DL #endif #ifdef STEREO_POLARITY_INVERT_3DL #undef STEREO_POLARITY_INVERT_3DL #endif #ifdef FRONT_COLOR_BUFFER_BIT_ARB #undef FRONT_COLOR_BUFFER_BIT_ARB #endif #ifdef BACK_COLOR_BUFFER_BIT_ARB #undef BACK_COLOR_BUFFER_BIT_ARB #endif #ifdef DEPTH_BUFFER_BIT_ARB #undef DEPTH_BUFFER_BIT_ARB #endif #ifdef STENCIL_BUFFER_BIT_ARB #undef STENCIL_BUFFER_BIT_ARB #endif #ifdef CONTEXT_DEBUG_BIT_ARB #undef CONTEXT_DEBUG_BIT_ARB #endif #ifdef CONTEXT_FORWARD_COMPATIBLE_BIT_ARB #undef CONTEXT_FORWARD_COMPATIBLE_BIT_ARB #endif #ifdef CONTEXT_MAJOR_VERSION_ARB #undef CONTEXT_MAJOR_VERSION_ARB #endif #ifdef CONTEXT_MINOR_VERSION_ARB #undef CONTEXT_MINOR_VERSION_ARB #endif #ifdef CONTEXT_LAYER_PLANE_ARB #undef CONTEXT_LAYER_PLANE_ARB #endif #ifdef CONTEXT_FLAGS_ARB #undef CONTEXT_FLAGS_ARB #endif #ifdef SAMPLE_BUFFERS_ARB #undef SAMPLE_BUFFERS_ARB #endif #ifdef SAMPLES_ARB #undef SAMPLES_ARB #endif #ifdef DRAW_TO_PBUFFER_ARB #undef DRAW_TO_PBUFFER_ARB #endif #ifdef MAX_PBUFFER_PIXELS_ARB #undef MAX_PBUFFER_PIXELS_ARB #endif #ifdef MAX_PBUFFER_WIDTH_ARB #undef MAX_PBUFFER_WIDTH_ARB #endif #ifdef MAX_PBUFFER_HEIGHT_ARB #undef MAX_PBUFFER_HEIGHT_ARB #endif #ifdef PBUFFER_LARGEST_ARB #undef PBUFFER_LARGEST_ARB #endif #ifdef PBUFFER_WIDTH_ARB #undef PBUFFER_WIDTH_ARB #endif #ifdef PBUFFER_HEIGHT_ARB #undef PBUFFER_HEIGHT_ARB #endif #ifdef PBUFFER_LOST_ARB #undef PBUFFER_LOST_ARB #endif #ifdef NUMBER_PIXEL_FORMATS_ARB #undef NUMBER_PIXEL_FORMATS_ARB #endif #ifdef DRAW_TO_WINDOW_ARB #undef DRAW_TO_WINDOW_ARB #endif #ifdef DRAW_TO_BITMAP_ARB #undef DRAW_TO_BITMAP_ARB #endif #ifdef ACCELERATION_ARB #undef ACCELERATION_ARB #endif #ifdef NEED_PALETTE_ARB #undef NEED_PALETTE_ARB #endif #ifdef NEED_SYSTEM_PALETTE_ARB #undef NEED_SYSTEM_PALETTE_ARB #endif #ifdef SWAP_LAYER_BUFFERS_ARB #undef SWAP_LAYER_BUFFERS_ARB #endif #ifdef SWAP_METHOD_ARB #undef SWAP_METHOD_ARB #endif #ifdef NUMBER_OVERLAYS_ARB #undef NUMBER_OVERLAYS_ARB #endif #ifdef NUMBER_UNDERLAYS_ARB #undef NUMBER_UNDERLAYS_ARB #endif #ifdef TRANSPARENT_ARB #undef TRANSPARENT_ARB #endif #ifdef TRANSPARENT_RED_VALUE_ARB #undef TRANSPARENT_RED_VALUE_ARB #endif #ifdef TRANSPARENT_GREEN_VALUE_ARB #undef TRANSPARENT_GREEN_VALUE_ARB #endif #ifdef TRANSPARENT_BLUE_VALUE_ARB #undef TRANSPARENT_BLUE_VALUE_ARB #endif #ifdef TRANSPARENT_ALPHA_VALUE_ARB #undef TRANSPARENT_ALPHA_VALUE_ARB #endif #ifdef TRANSPARENT_INDEX_VALUE_ARB #undef TRANSPARENT_INDEX_VALUE_ARB #endif #ifdef SHARE_DEPTH_ARB #undef SHARE_DEPTH_ARB #endif #ifdef SHARE_STENCIL_ARB #undef SHARE_STENCIL_ARB #endif #ifdef SHARE_ACCUM_ARB #undef SHARE_ACCUM_ARB #endif #ifdef SUPPORT_GDI_ARB #undef SUPPORT_GDI_ARB #endif #ifdef SUPPORT_OPENGL_ARB #undef SUPPORT_OPENGL_ARB #endif #ifdef DOUBLE_BUFFER_ARB #undef DOUBLE_BUFFER_ARB #endif #ifdef STEREO_ARB #undef STEREO_ARB #endif #ifdef PIXEL_TYPE_ARB #undef PIXEL_TYPE_ARB #endif #ifdef COLOR_BITS_ARB #undef COLOR_BITS_ARB #endif #ifdef RED_BITS_ARB #undef RED_BITS_ARB #endif #ifdef RED_SHIFT_ARB #undef RED_SHIFT_ARB #endif #ifdef GREEN_BITS_ARB #undef GREEN_BITS_ARB #endif #ifdef GREEN_SHIFT_ARB #undef GREEN_SHIFT_ARB #endif #ifdef BLUE_BITS_ARB #undef BLUE_BITS_ARB #endif #ifdef BLUE_SHIFT_ARB #undef BLUE_SHIFT_ARB #endif #ifdef ALPHA_BITS_ARB #undef ALPHA_BITS_ARB #endif #ifdef ALPHA_SHIFT_ARB #undef ALPHA_SHIFT_ARB #endif #ifdef ACCUM_BITS_ARB #undef ACCUM_BITS_ARB #endif #ifdef ACCUM_RED_BITS_ARB #undef ACCUM_RED_BITS_ARB #endif #ifdef ACCUM_GREEN_BITS_ARB #undef ACCUM_GREEN_BITS_ARB #endif #ifdef ACCUM_BLUE_BITS_ARB #undef ACCUM_BLUE_BITS_ARB #endif #ifdef ACCUM_ALPHA_BITS_ARB #undef ACCUM_ALPHA_BITS_ARB #endif #ifdef DEPTH_BITS_ARB #undef DEPTH_BITS_ARB #endif #ifdef STENCIL_BITS_ARB #undef STENCIL_BITS_ARB #endif #ifdef AUX_BUFFERS_ARB #undef AUX_BUFFERS_ARB #endif #ifdef NO_ACCELERATION_ARB #undef NO_ACCELERATION_ARB #endif #ifdef GENERIC_ACCELERATION_ARB #undef GENERIC_ACCELERATION_ARB #endif #ifdef FULL_ACCELERATION_ARB #undef FULL_ACCELERATION_ARB #endif #ifdef SWAP_EXCHANGE_ARB #undef SWAP_EXCHANGE_ARB #endif #ifdef SWAP_COPY_ARB #undef SWAP_COPY_ARB #endif #ifdef SWAP_UNDEFINED_ARB #undef SWAP_UNDEFINED_ARB #endif #ifdef TYPE_RGBA_ARB #undef TYPE_RGBA_ARB #endif #ifdef TYPE_COLORINDEX_ARB #undef TYPE_COLORINDEX_ARB #endif #ifdef TYPE_RGBA_FLOAT_ARB #undef TYPE_RGBA_FLOAT_ARB #endif #ifdef BIND_TO_TEXTURE_RGB_ARB #undef BIND_TO_TEXTURE_RGB_ARB #endif #ifdef BIND_TO_TEXTURE_RGBA_ARB #undef BIND_TO_TEXTURE_RGBA_ARB #endif #ifdef TEXTURE_FORMAT_ARB #undef TEXTURE_FORMAT_ARB #endif #ifdef TEXTURE_TARGET_ARB #undef TEXTURE_TARGET_ARB #endif #ifdef MIPMAP_TEXTURE_ARB #undef MIPMAP_TEXTURE_ARB #endif #ifdef TEXTURE_RGB_ARB #undef TEXTURE_RGB_ARB #endif #ifdef TEXTURE_RGBA_ARB #undef TEXTURE_RGBA_ARB #endif #ifdef NO_TEXTURE_ARB #undef NO_TEXTURE_ARB #endif #ifdef TEXTURE_CUBE_MAP_ARB #undef TEXTURE_CUBE_MAP_ARB #endif #ifdef TEXTURE_1D_ARB #undef TEXTURE_1D_ARB #endif #ifdef TEXTURE_2D_ARB #undef TEXTURE_2D_ARB #endif #ifdef MIPMAP_LEVEL_ARB #undef MIPMAP_LEVEL_ARB #endif #ifdef CUBE_MAP_FACE_ARB #undef CUBE_MAP_FACE_ARB #endif #ifdef TEXTURE_CUBE_MAP_POSITIVE_X_ARB #undef TEXTURE_CUBE_MAP_POSITIVE_X_ARB #endif #ifdef TEXTURE_CUBE_MAP_NEGATIVE_X_ARB #undef TEXTURE_CUBE_MAP_NEGATIVE_X_ARB #endif #ifdef TEXTURE_CUBE_MAP_POSITIVE_Y_ARB #undef TEXTURE_CUBE_MAP_POSITIVE_Y_ARB #endif #ifdef TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB #undef TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB #endif #ifdef TEXTURE_CUBE_MAP_POSITIVE_Z_ARB #undef TEXTURE_CUBE_MAP_POSITIVE_Z_ARB #endif #ifdef TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB #undef TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB #endif #ifdef FRONT_LEFT_ARB #undef FRONT_LEFT_ARB #endif #ifdef FRONT_RIGHT_ARB #undef FRONT_RIGHT_ARB #endif #ifdef BACK_LEFT_ARB #undef BACK_LEFT_ARB #endif #ifdef BACK_RIGHT_ARB #undef BACK_RIGHT_ARB #endif #ifdef AUX0_ARB #undef AUX0_ARB #endif #ifdef AUX1_ARB #undef AUX1_ARB #endif #ifdef AUX2_ARB #undef AUX2_ARB #endif #ifdef AUX3_ARB #undef AUX3_ARB #endif #ifdef AUX4_ARB #undef AUX4_ARB #endif #ifdef AUX5_ARB #undef AUX5_ARB #endif #ifdef AUX6_ARB #undef AUX6_ARB #endif #ifdef AUX7_ARB #undef AUX7_ARB #endif #ifdef AUX8_ARB #undef AUX8_ARB #endif #ifdef AUX9_ARB #undef AUX9_ARB #endif #ifdef TYPE_RGBA_FLOAT_ATI #undef TYPE_RGBA_FLOAT_ATI #endif #ifdef DEPTH_FLOAT_EXT #undef DEPTH_FLOAT_EXT #endif #ifdef FRAMEBUFFER_SRGB_CAPABLE_EXT #undef FRAMEBUFFER_SRGB_CAPABLE_EXT #endif #ifdef SAMPLE_BUFFERS_EXT #undef SAMPLE_BUFFERS_EXT #endif #ifdef SAMPLES_EXT #undef SAMPLES_EXT #endif #ifdef DRAW_TO_PBUFFER_EXT #undef DRAW_TO_PBUFFER_EXT #endif #ifdef MAX_PBUFFER_PIXELS_EXT #undef MAX_PBUFFER_PIXELS_EXT #endif #ifdef MAX_PBUFFER_WIDTH_EXT #undef MAX_PBUFFER_WIDTH_EXT #endif #ifdef MAX_PBUFFER_HEIGHT_EXT #undef MAX_PBUFFER_HEIGHT_EXT #endif #ifdef OPTIMAL_PBUFFER_WIDTH_EXT #undef OPTIMAL_PBUFFER_WIDTH_EXT #endif #ifdef OPTIMAL_PBUFFER_HEIGHT_EXT #undef OPTIMAL_PBUFFER_HEIGHT_EXT #endif #ifdef PBUFFER_LARGEST_EXT #undef PBUFFER_LARGEST_EXT #endif #ifdef PBUFFER_WIDTH_EXT #undef PBUFFER_WIDTH_EXT #endif #ifdef PBUFFER_HEIGHT_EXT #undef PBUFFER_HEIGHT_EXT #endif #ifdef NUMBER_PIXEL_FORMATS_EXT #undef NUMBER_PIXEL_FORMATS_EXT #endif #ifdef DRAW_TO_WINDOW_EXT #undef DRAW_TO_WINDOW_EXT #endif #ifdef DRAW_TO_BITMAP_EXT #undef DRAW_TO_BITMAP_EXT #endif #ifdef ACCELERATION_EXT #undef ACCELERATION_EXT #endif #ifdef NEED_PALETTE_EXT #undef NEED_PALETTE_EXT #endif #ifdef NEED_SYSTEM_PALETTE_EXT #undef NEED_SYSTEM_PALETTE_EXT #endif #ifdef SWAP_LAYER_BUFFERS_EXT #undef SWAP_LAYER_BUFFERS_EXT #endif #ifdef SWAP_METHOD_EXT #undef SWAP_METHOD_EXT #endif #ifdef NUMBER_OVERLAYS_EXT #undef NUMBER_OVERLAYS_EXT #endif #ifdef NUMBER_UNDERLAYS_EXT #undef NUMBER_UNDERLAYS_EXT #endif #ifdef TRANSPARENT_EXT #undef TRANSPARENT_EXT #endif #ifdef TRANSPARENT_VALUE_EXT #undef TRANSPARENT_VALUE_EXT #endif #ifdef SHARE_DEPTH_EXT #undef SHARE_DEPTH_EXT #endif #ifdef SHARE_STENCIL_EXT #undef SHARE_STENCIL_EXT #endif #ifdef SHARE_ACCUM_EXT #undef SHARE_ACCUM_EXT #endif #ifdef SUPPORT_GDI_EXT #undef SUPPORT_GDI_EXT #endif #ifdef SUPPORT_OPENGL_EXT #undef SUPPORT_OPENGL_EXT #endif #ifdef DOUBLE_BUFFER_EXT #undef DOUBLE_BUFFER_EXT #endif #ifdef STEREO_EXT #undef STEREO_EXT #endif #ifdef PIXEL_TYPE_EXT #undef PIXEL_TYPE_EXT #endif #ifdef COLOR_BITS_EXT #undef COLOR_BITS_EXT #endif #ifdef RED_BITS_EXT #undef RED_BITS_EXT #endif #ifdef RED_SHIFT_EXT #undef RED_SHIFT_EXT #endif #ifdef GREEN_BITS_EXT #undef GREEN_BITS_EXT #endif #ifdef GREEN_SHIFT_EXT #undef GREEN_SHIFT_EXT #endif #ifdef BLUE_BITS_EXT #undef BLUE_BITS_EXT #endif #ifdef BLUE_SHIFT_EXT #undef BLUE_SHIFT_EXT #endif #ifdef ALPHA_BITS_EXT #undef ALPHA_BITS_EXT #endif #ifdef ALPHA_SHIFT_EXT #undef ALPHA_SHIFT_EXT #endif #ifdef ACCUM_BITS_EXT #undef ACCUM_BITS_EXT #endif #ifdef ACCUM_RED_BITS_EXT #undef ACCUM_RED_BITS_EXT #endif #ifdef ACCUM_GREEN_BITS_EXT #undef ACCUM_GREEN_BITS_EXT #endif #ifdef ACCUM_BLUE_BITS_EXT #undef ACCUM_BLUE_BITS_EXT #endif #ifdef ACCUM_ALPHA_BITS_EXT #undef ACCUM_ALPHA_BITS_EXT #endif #ifdef DEPTH_BITS_EXT #undef DEPTH_BITS_EXT #endif #ifdef STENCIL_BITS_EXT #undef STENCIL_BITS_EXT #endif #ifdef AUX_BUFFERS_EXT #undef AUX_BUFFERS_EXT #endif #ifdef NO_ACCELERATION_EXT #undef NO_ACCELERATION_EXT #endif #ifdef GENERIC_ACCELERATION_EXT #undef GENERIC_ACCELERATION_EXT #endif #ifdef FULL_ACCELERATION_EXT #undef FULL_ACCELERATION_EXT #endif #ifdef SWAP_EXCHANGE_EXT #undef SWAP_EXCHANGE_EXT #endif #ifdef SWAP_COPY_EXT #undef SWAP_COPY_EXT #endif #ifdef SWAP_UNDEFINED_EXT #undef SWAP_UNDEFINED_EXT #endif #ifdef TYPE_RGBA_EXT #undef TYPE_RGBA_EXT #endif #ifdef TYPE_COLORINDEX_EXT #undef TYPE_COLORINDEX_EXT #endif #ifdef TYPE_RGBA_UNSIGNED_FLOAT_EXT #undef TYPE_RGBA_UNSIGNED_FLOAT_EXT #endif #ifdef DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D #undef DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D #endif #ifdef DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D #undef DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D #endif #ifdef DIGITAL_VIDEO_CURSOR_INCLUDED_I3D #undef DIGITAL_VIDEO_CURSOR_INCLUDED_I3D #endif #ifdef DIGITAL_VIDEO_GAMMA_CORRECTED_I3D #undef DIGITAL_VIDEO_GAMMA_CORRECTED_I3D #endif #ifdef GAMMA_TABLE_SIZE_I3D #undef GAMMA_TABLE_SIZE_I3D #endif #ifdef GAMMA_EXCLUDE_DESKTOP_I3D #undef GAMMA_EXCLUDE_DESKTOP_I3D #endif #ifdef GENLOCK_SOURCE_MULTIVIEW_I3D #undef GENLOCK_SOURCE_MULTIVIEW_I3D #endif #ifdef GENLOCK_SOURCE_EXTENAL_SYNC_I3D #undef GENLOCK_SOURCE_EXTENAL_SYNC_I3D #endif #ifdef GENLOCK_SOURCE_EXTENAL_FIELD_I3D #undef GENLOCK_SOURCE_EXTENAL_FIELD_I3D #endif #ifdef GENLOCK_SOURCE_EXTENAL_TTL_I3D #undef GENLOCK_SOURCE_EXTENAL_TTL_I3D #endif #ifdef GENLOCK_SOURCE_DIGITAL_SYNC_I3D #undef GENLOCK_SOURCE_DIGITAL_SYNC_I3D #endif #ifdef GENLOCK_SOURCE_DIGITAL_FIELD_I3D #undef GENLOCK_SOURCE_DIGITAL_FIELD_I3D #endif #ifdef GENLOCK_SOURCE_EDGE_FALLING_I3D #undef GENLOCK_SOURCE_EDGE_FALLING_I3D #endif #ifdef GENLOCK_SOURCE_EDGE_RISING_I3D #undef GENLOCK_SOURCE_EDGE_RISING_I3D #endif #ifdef GENLOCK_SOURCE_EDGE_BOTH_I3D #undef GENLOCK_SOURCE_EDGE_BOTH_I3D #endif #ifdef IMAGE_BUFFER_MIN_ACCESS_I3D #undef IMAGE_BUFFER_MIN_ACCESS_I3D #endif #ifdef IMAGE_BUFFER_LOCK_I3D #undef IMAGE_BUFFER_LOCK_I3D #endif #ifdef FLOAT_COMPONENTS_NV #undef FLOAT_COMPONENTS_NV #endif #ifdef BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV #undef BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV #endif #ifdef BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV #undef BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV #endif #ifdef BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV #undef BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV #endif #ifdef BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV #undef BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV #endif #ifdef TEXTURE_FLOAT_R_NV #undef TEXTURE_FLOAT_R_NV #endif #ifdef TEXTURE_FLOAT_RG_NV #undef TEXTURE_FLOAT_RG_NV #endif #ifdef TEXTURE_FLOAT_RGB_NV #undef TEXTURE_FLOAT_RGB_NV #endif #ifdef TEXTURE_FLOAT_RGBA_NV #undef TEXTURE_FLOAT_RGBA_NV #endif #ifdef NUM_VIDEO_SLOTS_NV #undef NUM_VIDEO_SLOTS_NV #endif #ifdef BIND_TO_TEXTURE_DEPTH_NV #undef BIND_TO_TEXTURE_DEPTH_NV #endif #ifdef BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV #undef BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV #endif #ifdef DEPTH_TEXTURE_FORMAT_NV #undef DEPTH_TEXTURE_FORMAT_NV #endif #ifdef TEXTURE_DEPTH_COMPONENT_NV #undef TEXTURE_DEPTH_COMPONENT_NV #endif #ifdef DEPTH_COMPONENT_NV #undef DEPTH_COMPONENT_NV #endif #ifdef BIND_TO_TEXTURE_RECTANGLE_RGB_NV #undef BIND_TO_TEXTURE_RECTANGLE_RGB_NV #endif #ifdef BIND_TO_TEXTURE_RECTANGLE_RGBA_NV #undef BIND_TO_TEXTURE_RECTANGLE_RGBA_NV #endif #ifdef TEXTURE_RECTANGLE_NV #undef TEXTURE_RECTANGLE_NV #endif #ifdef BIND_TO_VIDEO_RGB_NV #undef BIND_TO_VIDEO_RGB_NV #endif #ifdef BIND_TO_VIDEO_RGBA_NV #undef BIND_TO_VIDEO_RGBA_NV #endif #ifdef BIND_TO_VIDEO_RGB_AND_DEPTH_NV #undef BIND_TO_VIDEO_RGB_AND_DEPTH_NV #endif #ifdef VIDEO_OUT_COLOR_NV #undef VIDEO_OUT_COLOR_NV #endif #ifdef VIDEO_OUT_ALPHA_NV #undef VIDEO_OUT_ALPHA_NV #endif #ifdef VIDEO_OUT_DEPTH_NV #undef VIDEO_OUT_DEPTH_NV #endif #ifdef VIDEO_OUT_COLOR_AND_ALPHA_NV #undef VIDEO_OUT_COLOR_AND_ALPHA_NV #endif #ifdef VIDEO_OUT_COLOR_AND_DEPTH_NV #undef VIDEO_OUT_COLOR_AND_DEPTH_NV #endif #ifdef VIDEO_OUT_FRAME #undef VIDEO_OUT_FRAME #endif #ifdef VIDEO_OUT_FIELD_1 #undef VIDEO_OUT_FIELD_1 #endif #ifdef VIDEO_OUT_FIELD_2 #undef VIDEO_OUT_FIELD_2 #endif #ifdef VIDEO_OUT_STACKED_FIELDS_1_2 #undef VIDEO_OUT_STACKED_FIELDS_1_2 #endif #ifdef VIDEO_OUT_STACKED_FIELDS_2_1 #undef VIDEO_OUT_STACKED_FIELDS_2_1 #endif namespace vtkgl { //Define int32_t, int64_t, and uint64_t. typedef vtkTypeInt32 int32_t; typedef vtkTypeInt64 int64_t; typedef vtkTypeUInt64 uint64_t; typedef int64_t GLint64; typedef uint64_t GLuint64; typedef struct __GLsync *GLsync; //Definitions for GL_VERSION_1_2 const GLenum UNSIGNED_BYTE_3_3_2 = static_cast<GLenum>(0x8032); const GLenum UNSIGNED_SHORT_4_4_4_4 = static_cast<GLenum>(0x8033); const GLenum UNSIGNED_SHORT_5_5_5_1 = static_cast<GLenum>(0x8034); const GLenum UNSIGNED_INT_8_8_8_8 = static_cast<GLenum>(0x8035); const GLenum UNSIGNED_INT_10_10_10_2 = static_cast<GLenum>(0x8036); const GLenum TEXTURE_BINDING_3D = static_cast<GLenum>(0x806A); const GLenum PACK_SKIP_IMAGES = static_cast<GLenum>(0x806B); const GLenum PACK_IMAGE_HEIGHT = static_cast<GLenum>(0x806C); const GLenum UNPACK_SKIP_IMAGES = static_cast<GLenum>(0x806D); const GLenum UNPACK_IMAGE_HEIGHT = static_cast<GLenum>(0x806E); const GLenum TEXTURE_3D = static_cast<GLenum>(0x806F); const GLenum PROXY_TEXTURE_3D = static_cast<GLenum>(0x8070); const GLenum TEXTURE_DEPTH = static_cast<GLenum>(0x8071); const GLenum TEXTURE_WRAP_R = static_cast<GLenum>(0x8072); const GLenum MAX_3D_TEXTURE_SIZE = static_cast<GLenum>(0x8073); const GLenum UNSIGNED_BYTE_2_3_3_REV = static_cast<GLenum>(0x8362); const GLenum UNSIGNED_SHORT_5_6_5 = static_cast<GLenum>(0x8363); const GLenum UNSIGNED_SHORT_5_6_5_REV = static_cast<GLenum>(0x8364); const GLenum UNSIGNED_SHORT_4_4_4_4_REV = static_cast<GLenum>(0x8365); const GLenum UNSIGNED_SHORT_1_5_5_5_REV = static_cast<GLenum>(0x8366); const GLenum UNSIGNED_INT_8_8_8_8_REV = static_cast<GLenum>(0x8367); const GLenum UNSIGNED_INT_2_10_10_10_REV = static_cast<GLenum>(0x8368); const GLenum BGR = static_cast<GLenum>(0x80E0); const GLenum BGRA = static_cast<GLenum>(0x80E1); const GLenum MAX_ELEMENTS_VERTICES = static_cast<GLenum>(0x80E8); const GLenum MAX_ELEMENTS_INDICES = static_cast<GLenum>(0x80E9); const GLenum CLAMP_TO_EDGE = static_cast<GLenum>(0x812F); const GLenum TEXTURE_MIN_LOD = static_cast<GLenum>(0x813A); const GLenum TEXTURE_MAX_LOD = static_cast<GLenum>(0x813B); const GLenum TEXTURE_BASE_LEVEL = static_cast<GLenum>(0x813C); const GLenum TEXTURE_MAX_LEVEL = static_cast<GLenum>(0x813D); const GLenum SMOOTH_POINT_SIZE_RANGE = static_cast<GLenum>(0x0B12); const GLenum SMOOTH_POINT_SIZE_GRANULARITY = static_cast<GLenum>(0x0B13); const GLenum SMOOTH_LINE_WIDTH_RANGE = static_cast<GLenum>(0x0B22); const GLenum SMOOTH_LINE_WIDTH_GRANULARITY = static_cast<GLenum>(0x0B23); const GLenum ALIASED_LINE_WIDTH_RANGE = static_cast<GLenum>(0x846E); typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode); typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); extern VTK_RENDERING_EXPORT PFNGLBLENDCOLORPROC BlendColor; extern VTK_RENDERING_EXPORT PFNGLBLENDEQUATIONPROC BlendEquation; extern VTK_RENDERING_EXPORT PFNGLDRAWRANGEELEMENTSPROC DrawRangeElements; extern VTK_RENDERING_EXPORT PFNGLTEXIMAGE3DPROC TexImage3D; extern VTK_RENDERING_EXPORT PFNGLTEXSUBIMAGE3DPROC TexSubImage3D; extern VTK_RENDERING_EXPORT PFNGLCOPYTEXSUBIMAGE3DPROC CopyTexSubImage3D; //Definitions for GL_VERSION_1_2_DEPRECATED const GLenum RESCALE_NORMAL = static_cast<GLenum>(0x803A); const GLenum LIGHT_MODEL_COLOR_CONTROL = static_cast<GLenum>(0x81F8); const GLenum SINGLE_COLOR = static_cast<GLenum>(0x81F9); const GLenum SEPARATE_SPECULAR_COLOR = static_cast<GLenum>(0x81FA); const GLenum ALIASED_POINT_SIZE_RANGE = static_cast<GLenum>(0x846D); typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table); typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params); typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params); typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image); typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column); typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink); typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target); typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target); extern VTK_RENDERING_EXPORT PFNGLCOLORTABLEPROC ColorTable; extern VTK_RENDERING_EXPORT PFNGLCOLORTABLEPARAMETERFVPROC ColorTableParameterfv; extern VTK_RENDERING_EXPORT PFNGLCOLORTABLEPARAMETERIVPROC ColorTableParameteriv; extern VTK_RENDERING_EXPORT PFNGLCOPYCOLORTABLEPROC CopyColorTable; extern VTK_RENDERING_EXPORT PFNGLGETCOLORTABLEPROC GetColorTable; extern VTK_RENDERING_EXPORT PFNGLGETCOLORTABLEPARAMETERFVPROC GetColorTableParameterfv; extern VTK_RENDERING_EXPORT PFNGLGETCOLORTABLEPARAMETERIVPROC GetColorTableParameteriv; extern VTK_RENDERING_EXPORT PFNGLCOLORSUBTABLEPROC ColorSubTable; extern VTK_RENDERING_EXPORT PFNGLCOPYCOLORSUBTABLEPROC CopyColorSubTable; extern VTK_RENDERING_EXPORT PFNGLCONVOLUTIONFILTER1DPROC ConvolutionFilter1D; extern VTK_RENDERING_EXPORT PFNGLCONVOLUTIONFILTER2DPROC ConvolutionFilter2D; extern VTK_RENDERING_EXPORT PFNGLCONVOLUTIONPARAMETERFPROC ConvolutionParameterf; extern VTK_RENDERING_EXPORT PFNGLCONVOLUTIONPARAMETERFVPROC ConvolutionParameterfv; extern VTK_RENDERING_EXPORT PFNGLCONVOLUTIONPARAMETERIPROC ConvolutionParameteri; extern VTK_RENDERING_EXPORT PFNGLCONVOLUTIONPARAMETERIVPROC ConvolutionParameteriv; extern VTK_RENDERING_EXPORT PFNGLCOPYCONVOLUTIONFILTER1DPROC CopyConvolutionFilter1D; extern VTK_RENDERING_EXPORT PFNGLCOPYCONVOLUTIONFILTER2DPROC CopyConvolutionFilter2D; extern VTK_RENDERING_EXPORT PFNGLGETCONVOLUTIONFILTERPROC GetConvolutionFilter; extern VTK_RENDERING_EXPORT PFNGLGETCONVOLUTIONPARAMETERFVPROC GetConvolutionParameterfv; extern VTK_RENDERING_EXPORT PFNGLGETCONVOLUTIONPARAMETERIVPROC GetConvolutionParameteriv; extern VTK_RENDERING_EXPORT PFNGLGETSEPARABLEFILTERPROC GetSeparableFilter; extern VTK_RENDERING_EXPORT PFNGLSEPARABLEFILTER2DPROC SeparableFilter2D; extern VTK_RENDERING_EXPORT PFNGLGETHISTOGRAMPROC GetHistogram; extern VTK_RENDERING_EXPORT PFNGLGETHISTOGRAMPARAMETERFVPROC GetHistogramParameterfv; extern VTK_RENDERING_EXPORT PFNGLGETHISTOGRAMPARAMETERIVPROC GetHistogramParameteriv; extern VTK_RENDERING_EXPORT PFNGLGETMINMAXPROC GetMinmax; extern VTK_RENDERING_EXPORT PFNGLGETMINMAXPARAMETERFVPROC GetMinmaxParameterfv; extern VTK_RENDERING_EXPORT PFNGLGETMINMAXPARAMETERIVPROC GetMinmaxParameteriv; extern VTK_RENDERING_EXPORT PFNGLHISTOGRAMPROC Histogram; extern VTK_RENDERING_EXPORT PFNGLMINMAXPROC Minmax; extern VTK_RENDERING_EXPORT PFNGLRESETHISTOGRAMPROC ResetHistogram; extern VTK_RENDERING_EXPORT PFNGLRESETMINMAXPROC ResetMinmax; //Definitions for GL_ARB_imaging const GLenum CONSTANT_COLOR = static_cast<GLenum>(0x8001); const GLenum ONE_MINUS_CONSTANT_COLOR = static_cast<GLenum>(0x8002); const GLenum CONSTANT_ALPHA = static_cast<GLenum>(0x8003); const GLenum ONE_MINUS_CONSTANT_ALPHA = static_cast<GLenum>(0x8004); const GLenum BLEND_COLOR = static_cast<GLenum>(0x8005); const GLenum FUNC_ADD = static_cast<GLenum>(0x8006); const GLenum MIN = static_cast<GLenum>(0x8007); const GLenum MAX = static_cast<GLenum>(0x8008); const GLenum BLEND_EQUATION = static_cast<GLenum>(0x8009); const GLenum FUNC_SUBTRACT = static_cast<GLenum>(0x800A); const GLenum FUNC_REVERSE_SUBTRACT = static_cast<GLenum>(0x800B); //Definitions for GL_ARB_imaging_DEPRECATED const GLenum CONVOLUTION_1D = static_cast<GLenum>(0x8010); const GLenum CONVOLUTION_2D = static_cast<GLenum>(0x8011); const GLenum SEPARABLE_2D = static_cast<GLenum>(0x8012); const GLenum CONVOLUTION_BORDER_MODE = static_cast<GLenum>(0x8013); const GLenum CONVOLUTION_FILTER_SCALE = static_cast<GLenum>(0x8014); const GLenum CONVOLUTION_FILTER_BIAS = static_cast<GLenum>(0x8015); const GLenum REDUCE = static_cast<GLenum>(0x8016); const GLenum CONVOLUTION_FORMAT = static_cast<GLenum>(0x8017); const GLenum CONVOLUTION_WIDTH = static_cast<GLenum>(0x8018); const GLenum CONVOLUTION_HEIGHT = static_cast<GLenum>(0x8019); const GLenum MAX_CONVOLUTION_WIDTH = static_cast<GLenum>(0x801A); const GLenum MAX_CONVOLUTION_HEIGHT = static_cast<GLenum>(0x801B); const GLenum POST_CONVOLUTION_RED_SCALE = static_cast<GLenum>(0x801C); const GLenum POST_CONVOLUTION_GREEN_SCALE = static_cast<GLenum>(0x801D); const GLenum POST_CONVOLUTION_BLUE_SCALE = static_cast<GLenum>(0x801E); const GLenum POST_CONVOLUTION_ALPHA_SCALE = static_cast<GLenum>(0x801F); const GLenum POST_CONVOLUTION_RED_BIAS = static_cast<GLenum>(0x8020); const GLenum POST_CONVOLUTION_GREEN_BIAS = static_cast<GLenum>(0x8021); const GLenum POST_CONVOLUTION_BLUE_BIAS = static_cast<GLenum>(0x8022); const GLenum POST_CONVOLUTION_ALPHA_BIAS = static_cast<GLenum>(0x8023); const GLenum HISTOGRAM = static_cast<GLenum>(0x8024); const GLenum PROXY_HISTOGRAM = static_cast<GLenum>(0x8025); const GLenum HISTOGRAM_WIDTH = static_cast<GLenum>(0x8026); const GLenum HISTOGRAM_FORMAT = static_cast<GLenum>(0x8027); const GLenum HISTOGRAM_RED_SIZE = static_cast<GLenum>(0x8028); const GLenum HISTOGRAM_GREEN_SIZE = static_cast<GLenum>(0x8029); const GLenum HISTOGRAM_BLUE_SIZE = static_cast<GLenum>(0x802A); const GLenum HISTOGRAM_ALPHA_SIZE = static_cast<GLenum>(0x802B); const GLenum HISTOGRAM_LUMINANCE_SIZE = static_cast<GLenum>(0x802C); const GLenum HISTOGRAM_SINK = static_cast<GLenum>(0x802D); const GLenum MINMAX = static_cast<GLenum>(0x802E); const GLenum MINMAX_FORMAT = static_cast<GLenum>(0x802F); const GLenum MINMAX_SINK = static_cast<GLenum>(0x8030); const GLenum TABLE_TOO_LARGE = static_cast<GLenum>(0x8031); const GLenum COLOR_MATRIX = static_cast<GLenum>(0x80B1); const GLenum COLOR_MATRIX_STACK_DEPTH = static_cast<GLenum>(0x80B2); const GLenum MAX_COLOR_MATRIX_STACK_DEPTH = static_cast<GLenum>(0x80B3); const GLenum POST_COLOR_MATRIX_RED_SCALE = static_cast<GLenum>(0x80B4); const GLenum POST_COLOR_MATRIX_GREEN_SCALE = static_cast<GLenum>(0x80B5); const GLenum POST_COLOR_MATRIX_BLUE_SCALE = static_cast<GLenum>(0x80B6); const GLenum POST_COLOR_MATRIX_ALPHA_SCALE = static_cast<GLenum>(0x80B7); const GLenum POST_COLOR_MATRIX_RED_BIAS = static_cast<GLenum>(0x80B8); const GLenum POST_COLOR_MATRIX_GREEN_BIAS = static_cast<GLenum>(0x80B9); const GLenum POST_COLOR_MATRIX_BLUE_BIAS = static_cast<GLenum>(0x80BA); const GLenum POST_COLOR_MATRIX_ALPHA_BIAS = static_cast<GLenum>(0x80BB); const GLenum COLOR_TABLE = static_cast<GLenum>(0x80D0); const GLenum POST_CONVOLUTION_COLOR_TABLE = static_cast<GLenum>(0x80D1); const GLenum POST_COLOR_MATRIX_COLOR_TABLE = static_cast<GLenum>(0x80D2); const GLenum PROXY_COLOR_TABLE = static_cast<GLenum>(0x80D3); const GLenum PROXY_POST_CONVOLUTION_COLOR_TABLE = static_cast<GLenum>(0x80D4); const GLenum PROXY_POST_COLOR_MATRIX_COLOR_TABLE = static_cast<GLenum>(0x80D5); const GLenum COLOR_TABLE_SCALE = static_cast<GLenum>(0x80D6); const GLenum COLOR_TABLE_BIAS = static_cast<GLenum>(0x80D7); const GLenum COLOR_TABLE_FORMAT = static_cast<GLenum>(0x80D8); const GLenum COLOR_TABLE_WIDTH = static_cast<GLenum>(0x80D9); const GLenum COLOR_TABLE_RED_SIZE = static_cast<GLenum>(0x80DA); const GLenum COLOR_TABLE_GREEN_SIZE = static_cast<GLenum>(0x80DB); const GLenum COLOR_TABLE_BLUE_SIZE = static_cast<GLenum>(0x80DC); const GLenum COLOR_TABLE_ALPHA_SIZE = static_cast<GLenum>(0x80DD); const GLenum COLOR_TABLE_LUMINANCE_SIZE = static_cast<GLenum>(0x80DE); const GLenum COLOR_TABLE_INTENSITY_SIZE = static_cast<GLenum>(0x80DF); const GLenum CONSTANT_BORDER = static_cast<GLenum>(0x8151); const GLenum REPLICATE_BORDER = static_cast<GLenum>(0x8153); const GLenum CONVOLUTION_BORDER_COLOR = static_cast<GLenum>(0x8154); //Definitions for GL_VERSION_1_3 const GLenum TEXTURE0 = static_cast<GLenum>(0x84C0); const GLenum TEXTURE1 = static_cast<GLenum>(0x84C1); const GLenum TEXTURE2 = static_cast<GLenum>(0x84C2); const GLenum TEXTURE3 = static_cast<GLenum>(0x84C3); const GLenum TEXTURE4 = static_cast<GLenum>(0x84C4); const GLenum TEXTURE5 = static_cast<GLenum>(0x84C5); const GLenum TEXTURE6 = static_cast<GLenum>(0x84C6); const GLenum TEXTURE7 = static_cast<GLenum>(0x84C7); const GLenum TEXTURE8 = static_cast<GLenum>(0x84C8); const GLenum TEXTURE9 = static_cast<GLenum>(0x84C9); const GLenum TEXTURE10 = static_cast<GLenum>(0x84CA); const GLenum TEXTURE11 = static_cast<GLenum>(0x84CB); const GLenum TEXTURE12 = static_cast<GLenum>(0x84CC); const GLenum TEXTURE13 = static_cast<GLenum>(0x84CD); const GLenum TEXTURE14 = static_cast<GLenum>(0x84CE); const GLenum TEXTURE15 = static_cast<GLenum>(0x84CF); const GLenum TEXTURE16 = static_cast<GLenum>(0x84D0); const GLenum TEXTURE17 = static_cast<GLenum>(0x84D1); const GLenum TEXTURE18 = static_cast<GLenum>(0x84D2); const GLenum TEXTURE19 = static_cast<GLenum>(0x84D3); const GLenum TEXTURE20 = static_cast<GLenum>(0x84D4); const GLenum TEXTURE21 = static_cast<GLenum>(0x84D5); const GLenum TEXTURE22 = static_cast<GLenum>(0x84D6); const GLenum TEXTURE23 = static_cast<GLenum>(0x84D7); const GLenum TEXTURE24 = static_cast<GLenum>(0x84D8); const GLenum TEXTURE25 = static_cast<GLenum>(0x84D9); const GLenum TEXTURE26 = static_cast<GLenum>(0x84DA); const GLenum TEXTURE27 = static_cast<GLenum>(0x84DB); const GLenum TEXTURE28 = static_cast<GLenum>(0x84DC); const GLenum TEXTURE29 = static_cast<GLenum>(0x84DD); const GLenum TEXTURE30 = static_cast<GLenum>(0x84DE); const GLenum TEXTURE31 = static_cast<GLenum>(0x84DF); const GLenum ACTIVE_TEXTURE = static_cast<GLenum>(0x84E0); const GLenum MULTISAMPLE = static_cast<GLenum>(0x809D); const GLenum SAMPLE_ALPHA_TO_COVERAGE = static_cast<GLenum>(0x809E); const GLenum SAMPLE_ALPHA_TO_ONE = static_cast<GLenum>(0x809F); const GLenum SAMPLE_COVERAGE = static_cast<GLenum>(0x80A0); const GLenum SAMPLE_BUFFERS = static_cast<GLenum>(0x80A8); const GLenum SAMPLES = static_cast<GLenum>(0x80A9); const GLenum SAMPLE_COVERAGE_VALUE = static_cast<GLenum>(0x80AA); const GLenum SAMPLE_COVERAGE_INVERT = static_cast<GLenum>(0x80AB); const GLenum TEXTURE_CUBE_MAP = static_cast<GLenum>(0x8513); const GLenum TEXTURE_BINDING_CUBE_MAP = static_cast<GLenum>(0x8514); const GLenum TEXTURE_CUBE_MAP_POSITIVE_X = static_cast<GLenum>(0x8515); const GLenum TEXTURE_CUBE_MAP_NEGATIVE_X = static_cast<GLenum>(0x8516); const GLenum TEXTURE_CUBE_MAP_POSITIVE_Y = static_cast<GLenum>(0x8517); const GLenum TEXTURE_CUBE_MAP_NEGATIVE_Y = static_cast<GLenum>(0x8518); const GLenum TEXTURE_CUBE_MAP_POSITIVE_Z = static_cast<GLenum>(0x8519); const GLenum TEXTURE_CUBE_MAP_NEGATIVE_Z = static_cast<GLenum>(0x851A); const GLenum PROXY_TEXTURE_CUBE_MAP = static_cast<GLenum>(0x851B); const GLenum MAX_CUBE_MAP_TEXTURE_SIZE = static_cast<GLenum>(0x851C); const GLenum COMPRESSED_RGB = static_cast<GLenum>(0x84ED); const GLenum COMPRESSED_RGBA = static_cast<GLenum>(0x84EE); const GLenum TEXTURE_COMPRESSION_HINT = static_cast<GLenum>(0x84EF); const GLenum TEXTURE_COMPRESSED_IMAGE_SIZE = static_cast<GLenum>(0x86A0); const GLenum TEXTURE_COMPRESSED = static_cast<GLenum>(0x86A1); const GLenum NUM_COMPRESSED_TEXTURE_FORMATS = static_cast<GLenum>(0x86A2); const GLenum COMPRESSED_TEXTURE_FORMATS = static_cast<GLenum>(0x86A3); const GLenum CLAMP_TO_BORDER = static_cast<GLenum>(0x812D); typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img); extern VTK_RENDERING_EXPORT PFNGLACTIVETEXTUREPROC ActiveTexture; extern VTK_RENDERING_EXPORT PFNGLSAMPLECOVERAGEPROC SampleCoverage; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXIMAGE3DPROC CompressedTexImage3D; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXIMAGE2DPROC CompressedTexImage2D; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXIMAGE1DPROC CompressedTexImage1D; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC CompressedTexSubImage3D; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC CompressedTexSubImage2D; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC CompressedTexSubImage1D; extern VTK_RENDERING_EXPORT PFNGLGETCOMPRESSEDTEXIMAGEPROC GetCompressedTexImage; //Definitions for GL_VERSION_1_3_DEPRECATED const GLenum CLIENT_ACTIVE_TEXTURE = static_cast<GLenum>(0x84E1); const GLenum MAX_TEXTURE_UNITS = static_cast<GLenum>(0x84E2); const GLenum TRANSPOSE_MODELVIEW_MATRIX = static_cast<GLenum>(0x84E3); const GLenum TRANSPOSE_PROJECTION_MATRIX = static_cast<GLenum>(0x84E4); const GLenum TRANSPOSE_TEXTURE_MATRIX = static_cast<GLenum>(0x84E5); const GLenum TRANSPOSE_COLOR_MATRIX = static_cast<GLenum>(0x84E6); const GLenum MULTISAMPLE_BIT = static_cast<GLenum>(0x20000000); const GLenum NORMAL_MAP = static_cast<GLenum>(0x8511); const GLenum REFLECTION_MAP = static_cast<GLenum>(0x8512); const GLenum COMPRESSED_ALPHA = static_cast<GLenum>(0x84E9); const GLenum COMPRESSED_LUMINANCE = static_cast<GLenum>(0x84EA); const GLenum COMPRESSED_LUMINANCE_ALPHA = static_cast<GLenum>(0x84EB); const GLenum COMPRESSED_INTENSITY = static_cast<GLenum>(0x84EC); const GLenum COMBINE = static_cast<GLenum>(0x8570); const GLenum COMBINE_RGB = static_cast<GLenum>(0x8571); const GLenum COMBINE_ALPHA = static_cast<GLenum>(0x8572); const GLenum SOURCE0_RGB = static_cast<GLenum>(0x8580); const GLenum SOURCE1_RGB = static_cast<GLenum>(0x8581); const GLenum SOURCE2_RGB = static_cast<GLenum>(0x8582); const GLenum SOURCE0_ALPHA = static_cast<GLenum>(0x8588); const GLenum SOURCE1_ALPHA = static_cast<GLenum>(0x8589); const GLenum SOURCE2_ALPHA = static_cast<GLenum>(0x858A); const GLenum OPERAND0_RGB = static_cast<GLenum>(0x8590); const GLenum OPERAND1_RGB = static_cast<GLenum>(0x8591); const GLenum OPERAND2_RGB = static_cast<GLenum>(0x8592); const GLenum OPERAND0_ALPHA = static_cast<GLenum>(0x8598); const GLenum OPERAND1_ALPHA = static_cast<GLenum>(0x8599); const GLenum OPERAND2_ALPHA = static_cast<GLenum>(0x859A); const GLenum RGB_SCALE = static_cast<GLenum>(0x8573); const GLenum ADD_SIGNED = static_cast<GLenum>(0x8574); const GLenum INTERPOLATE = static_cast<GLenum>(0x8575); const GLenum SUBTRACT = static_cast<GLenum>(0x84E7); const GLenum CONSTANT = static_cast<GLenum>(0x8576); const GLenum PRIMARY_COLOR = static_cast<GLenum>(0x8577); const GLenum PREVIOUS = static_cast<GLenum>(0x8578); const GLenum DOT3_RGB = static_cast<GLenum>(0x86AE); const GLenum DOT3_RGBA = static_cast<GLenum>(0x86AF); typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture); typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s); typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s); typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s); typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s); typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t); typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t); typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t); typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t); typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r); typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r); typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v); typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m); typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m); typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m); typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m); extern VTK_RENDERING_EXPORT PFNGLCLIENTACTIVETEXTUREPROC ClientActiveTexture; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1DPROC MultiTexCoord1d; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1DVPROC MultiTexCoord1dv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1FPROC MultiTexCoord1f; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1FVPROC MultiTexCoord1fv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1IPROC MultiTexCoord1i; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1IVPROC MultiTexCoord1iv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1SPROC MultiTexCoord1s; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1SVPROC MultiTexCoord1sv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2DPROC MultiTexCoord2d; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2DVPROC MultiTexCoord2dv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2FPROC MultiTexCoord2f; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2FVPROC MultiTexCoord2fv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2IPROC MultiTexCoord2i; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2IVPROC MultiTexCoord2iv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2SPROC MultiTexCoord2s; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2SVPROC MultiTexCoord2sv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3DPROC MultiTexCoord3d; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3DVPROC MultiTexCoord3dv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3FPROC MultiTexCoord3f; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3FVPROC MultiTexCoord3fv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3IPROC MultiTexCoord3i; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3IVPROC MultiTexCoord3iv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3SPROC MultiTexCoord3s; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3SVPROC MultiTexCoord3sv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4DPROC MultiTexCoord4d; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4DVPROC MultiTexCoord4dv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4FPROC MultiTexCoord4f; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4FVPROC MultiTexCoord4fv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4IPROC MultiTexCoord4i; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4IVPROC MultiTexCoord4iv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4SPROC MultiTexCoord4s; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4SVPROC MultiTexCoord4sv; extern VTK_RENDERING_EXPORT PFNGLLOADTRANSPOSEMATRIXFPROC LoadTransposeMatrixf; extern VTK_RENDERING_EXPORT PFNGLLOADTRANSPOSEMATRIXDPROC LoadTransposeMatrixd; extern VTK_RENDERING_EXPORT PFNGLMULTTRANSPOSEMATRIXFPROC MultTransposeMatrixf; extern VTK_RENDERING_EXPORT PFNGLMULTTRANSPOSEMATRIXDPROC MultTransposeMatrixd; //Definitions for GL_VERSION_1_4 const GLenum BLEND_DST_RGB = static_cast<GLenum>(0x80C8); const GLenum BLEND_SRC_RGB = static_cast<GLenum>(0x80C9); const GLenum BLEND_DST_ALPHA = static_cast<GLenum>(0x80CA); const GLenum BLEND_SRC_ALPHA = static_cast<GLenum>(0x80CB); const GLenum POINT_FADE_THRESHOLD_SIZE = static_cast<GLenum>(0x8128); const GLenum DEPTH_COMPONENT16 = static_cast<GLenum>(0x81A5); const GLenum DEPTH_COMPONENT24 = static_cast<GLenum>(0x81A6); const GLenum DEPTH_COMPONENT32 = static_cast<GLenum>(0x81A7); const GLenum MIRRORED_REPEAT = static_cast<GLenum>(0x8370); const GLenum MAX_TEXTURE_LOD_BIAS = static_cast<GLenum>(0x84FD); const GLenum TEXTURE_LOD_BIAS = static_cast<GLenum>(0x8501); const GLenum INCR_WRAP = static_cast<GLenum>(0x8507); const GLenum DECR_WRAP = static_cast<GLenum>(0x8508); const GLenum TEXTURE_DEPTH_SIZE = static_cast<GLenum>(0x884A); const GLenum TEXTURE_COMPARE_MODE = static_cast<GLenum>(0x884C); const GLenum TEXTURE_COMPARE_FUNC = static_cast<GLenum>(0x884D); typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount); typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param); typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params); extern VTK_RENDERING_EXPORT PFNGLBLENDFUNCSEPARATEPROC BlendFuncSeparate; extern VTK_RENDERING_EXPORT PFNGLMULTIDRAWARRAYSPROC MultiDrawArrays; extern VTK_RENDERING_EXPORT PFNGLMULTIDRAWELEMENTSPROC MultiDrawElements; extern VTK_RENDERING_EXPORT PFNGLPOINTPARAMETERFPROC PointParameterf; extern VTK_RENDERING_EXPORT PFNGLPOINTPARAMETERFVPROC PointParameterfv; extern VTK_RENDERING_EXPORT PFNGLPOINTPARAMETERIPROC PointParameteri; extern VTK_RENDERING_EXPORT PFNGLPOINTPARAMETERIVPROC PointParameteriv; //Definitions for GL_VERSION_1_4_DEPRECATED const GLenum POINT_SIZE_MIN = static_cast<GLenum>(0x8126); const GLenum POINT_SIZE_MAX = static_cast<GLenum>(0x8127); const GLenum POINT_DISTANCE_ATTENUATION = static_cast<GLenum>(0x8129); const GLenum GENERATE_MIPMAP = static_cast<GLenum>(0x8191); const GLenum GENERATE_MIPMAP_HINT = static_cast<GLenum>(0x8192); const GLenum FOG_COORDINATE_SOURCE = static_cast<GLenum>(0x8450); const GLenum FOG_COORDINATE = static_cast<GLenum>(0x8451); const GLenum FRAGMENT_DEPTH = static_cast<GLenum>(0x8452); const GLenum CURRENT_FOG_COORDINATE = static_cast<GLenum>(0x8453); const GLenum FOG_COORDINATE_ARRAY_TYPE = static_cast<GLenum>(0x8454); const GLenum FOG_COORDINATE_ARRAY_STRIDE = static_cast<GLenum>(0x8455); const GLenum FOG_COORDINATE_ARRAY_POINTER = static_cast<GLenum>(0x8456); const GLenum FOG_COORDINATE_ARRAY = static_cast<GLenum>(0x8457); const GLenum COLOR_SUM = static_cast<GLenum>(0x8458); const GLenum CURRENT_SECONDARY_COLOR = static_cast<GLenum>(0x8459); const GLenum SECONDARY_COLOR_ARRAY_SIZE = static_cast<GLenum>(0x845A); const GLenum SECONDARY_COLOR_ARRAY_TYPE = static_cast<GLenum>(0x845B); const GLenum SECONDARY_COLOR_ARRAY_STRIDE = static_cast<GLenum>(0x845C); const GLenum SECONDARY_COLOR_ARRAY_POINTER = static_cast<GLenum>(0x845D); const GLenum SECONDARY_COLOR_ARRAY = static_cast<GLenum>(0x845E); const GLenum TEXTURE_FILTER_CONTROL = static_cast<GLenum>(0x8500); const GLenum DEPTH_TEXTURE_MODE = static_cast<GLenum>(0x884B); const GLenum COMPARE_R_TO_TEXTURE = static_cast<GLenum>(0x884E); typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord); typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat *coord); typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord); typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble *coord); typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v); typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y); typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble *v); typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y); typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat *v); typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y); typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint *v); typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y); typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort *v); typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble *v); typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat *v); typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z); typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint *v); typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z); typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort *v); extern VTK_RENDERING_EXPORT PFNGLFOGCOORDFPROC FogCoordf; extern VTK_RENDERING_EXPORT PFNGLFOGCOORDFVPROC FogCoordfv; extern VTK_RENDERING_EXPORT PFNGLFOGCOORDDPROC FogCoordd; extern VTK_RENDERING_EXPORT PFNGLFOGCOORDDVPROC FogCoorddv; extern VTK_RENDERING_EXPORT PFNGLFOGCOORDPOINTERPROC FogCoordPointer; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3BPROC SecondaryColor3b; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3BVPROC SecondaryColor3bv; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3DPROC SecondaryColor3d; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3DVPROC SecondaryColor3dv; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3FPROC SecondaryColor3f; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3FVPROC SecondaryColor3fv; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3IPROC SecondaryColor3i; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3IVPROC SecondaryColor3iv; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3SPROC SecondaryColor3s; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3SVPROC SecondaryColor3sv; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3UBPROC SecondaryColor3ub; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3UBVPROC SecondaryColor3ubv; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3UIPROC SecondaryColor3ui; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3UIVPROC SecondaryColor3uiv; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3USPROC SecondaryColor3us; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3USVPROC SecondaryColor3usv; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLORPOINTERPROC SecondaryColorPointer; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2DPROC WindowPos2d; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2DVPROC WindowPos2dv; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2FPROC WindowPos2f; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2FVPROC WindowPos2fv; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2IPROC WindowPos2i; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2IVPROC WindowPos2iv; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2SPROC WindowPos2s; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2SVPROC WindowPos2sv; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3DPROC WindowPos3d; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3DVPROC WindowPos3dv; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3FPROC WindowPos3f; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3FVPROC WindowPos3fv; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3IPROC WindowPos3i; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3IVPROC WindowPos3iv; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3SPROC WindowPos3s; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3SVPROC WindowPos3sv; //Definitions for GL_VERSION_1_5 const GLenum BUFFER_SIZE = static_cast<GLenum>(0x8764); const GLenum BUFFER_USAGE = static_cast<GLenum>(0x8765); const GLenum QUERY_COUNTER_BITS = static_cast<GLenum>(0x8864); const GLenum CURRENT_QUERY = static_cast<GLenum>(0x8865); const GLenum QUERY_RESULT = static_cast<GLenum>(0x8866); const GLenum QUERY_RESULT_AVAILABLE = static_cast<GLenum>(0x8867); const GLenum ARRAY_BUFFER = static_cast<GLenum>(0x8892); const GLenum ELEMENT_ARRAY_BUFFER = static_cast<GLenum>(0x8893); const GLenum ARRAY_BUFFER_BINDING = static_cast<GLenum>(0x8894); const GLenum ELEMENT_ARRAY_BUFFER_BINDING = static_cast<GLenum>(0x8895); const GLenum VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = static_cast<GLenum>(0x889F); const GLenum READ_ONLY = static_cast<GLenum>(0x88B8); const GLenum WRITE_ONLY = static_cast<GLenum>(0x88B9); const GLenum READ_WRITE = static_cast<GLenum>(0x88BA); const GLenum BUFFER_ACCESS = static_cast<GLenum>(0x88BB); const GLenum BUFFER_MAPPED = static_cast<GLenum>(0x88BC); const GLenum BUFFER_MAP_POINTER = static_cast<GLenum>(0x88BD); const GLenum STREAM_DRAW = static_cast<GLenum>(0x88E0); const GLenum STREAM_READ = static_cast<GLenum>(0x88E1); const GLenum STREAM_COPY = static_cast<GLenum>(0x88E2); const GLenum STATIC_DRAW = static_cast<GLenum>(0x88E4); const GLenum STATIC_READ = static_cast<GLenum>(0x88E5); const GLenum STATIC_COPY = static_cast<GLenum>(0x88E6); const GLenum DYNAMIC_DRAW = static_cast<GLenum>(0x88E8); const GLenum DYNAMIC_READ = static_cast<GLenum>(0x88E9); const GLenum DYNAMIC_COPY = static_cast<GLenum>(0x88EA); const GLenum SAMPLES_PASSED = static_cast<GLenum>(0x8914); typedef ptrdiff_t GLintptr; typedef ptrdiff_t GLsizeiptr; typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids); typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids); typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id); typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id); typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target); typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params); typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer); typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers); typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers); typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer); typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage); typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data); typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data); typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access); typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target); typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params); extern VTK_RENDERING_EXPORT PFNGLGENQUERIESPROC GenQueries; extern VTK_RENDERING_EXPORT PFNGLDELETEQUERIESPROC DeleteQueries; extern VTK_RENDERING_EXPORT PFNGLISQUERYPROC IsQuery; extern VTK_RENDERING_EXPORT PFNGLBEGINQUERYPROC BeginQuery; extern VTK_RENDERING_EXPORT PFNGLENDQUERYPROC EndQuery; extern VTK_RENDERING_EXPORT PFNGLGETQUERYIVPROC GetQueryiv; extern VTK_RENDERING_EXPORT PFNGLGETQUERYOBJECTIVPROC GetQueryObjectiv; extern VTK_RENDERING_EXPORT PFNGLGETQUERYOBJECTUIVPROC GetQueryObjectuiv; extern VTK_RENDERING_EXPORT PFNGLBINDBUFFERPROC BindBuffer; extern VTK_RENDERING_EXPORT PFNGLDELETEBUFFERSPROC DeleteBuffers; extern VTK_RENDERING_EXPORT PFNGLGENBUFFERSPROC GenBuffers; extern VTK_RENDERING_EXPORT PFNGLISBUFFERPROC IsBuffer; extern VTK_RENDERING_EXPORT PFNGLBUFFERDATAPROC BufferData; extern VTK_RENDERING_EXPORT PFNGLBUFFERSUBDATAPROC BufferSubData; extern VTK_RENDERING_EXPORT PFNGLGETBUFFERSUBDATAPROC GetBufferSubData; extern VTK_RENDERING_EXPORT PFNGLMAPBUFFERPROC MapBuffer; extern VTK_RENDERING_EXPORT PFNGLUNMAPBUFFERPROC UnmapBuffer; extern VTK_RENDERING_EXPORT PFNGLGETBUFFERPARAMETERIVPROC GetBufferParameteriv; extern VTK_RENDERING_EXPORT PFNGLGETBUFFERPOINTERVPROC GetBufferPointerv; //Definitions for GL_VERSION_1_5_DEPRECATED const GLenum VERTEX_ARRAY_BUFFER_BINDING = static_cast<GLenum>(0x8896); const GLenum NORMAL_ARRAY_BUFFER_BINDING = static_cast<GLenum>(0x8897); const GLenum COLOR_ARRAY_BUFFER_BINDING = static_cast<GLenum>(0x8898); const GLenum INDEX_ARRAY_BUFFER_BINDING = static_cast<GLenum>(0x8899); const GLenum TEXTURE_COORD_ARRAY_BUFFER_BINDING = static_cast<GLenum>(0x889A); const GLenum EDGE_FLAG_ARRAY_BUFFER_BINDING = static_cast<GLenum>(0x889B); const GLenum SECONDARY_COLOR_ARRAY_BUFFER_BINDING = static_cast<GLenum>(0x889C); const GLenum FOG_COORDINATE_ARRAY_BUFFER_BINDING = static_cast<GLenum>(0x889D); const GLenum WEIGHT_ARRAY_BUFFER_BINDING = static_cast<GLenum>(0x889E); const GLenum FOG_COORD_SRC = static_cast<GLenum>(0x8450); const GLenum FOG_COORD = static_cast<GLenum>(0x8451); const GLenum CURRENT_FOG_COORD = static_cast<GLenum>(0x8453); const GLenum FOG_COORD_ARRAY_TYPE = static_cast<GLenum>(0x8454); const GLenum FOG_COORD_ARRAY_STRIDE = static_cast<GLenum>(0x8455); const GLenum FOG_COORD_ARRAY_POINTER = static_cast<GLenum>(0x8456); const GLenum FOG_COORD_ARRAY = static_cast<GLenum>(0x8457); const GLenum FOG_COORD_ARRAY_BUFFER_BINDING = static_cast<GLenum>(0x889D); const GLenum SRC0_RGB = static_cast<GLenum>(0x8580); const GLenum SRC1_RGB = static_cast<GLenum>(0x8581); const GLenum SRC2_RGB = static_cast<GLenum>(0x8582); const GLenum SRC0_ALPHA = static_cast<GLenum>(0x8588); const GLenum SRC1_ALPHA = static_cast<GLenum>(0x8589); const GLenum SRC2_ALPHA = static_cast<GLenum>(0x858A); //Definitions for GL_VERSION_2_0 const GLenum BLEND_EQUATION_RGB = static_cast<GLenum>(0x8009); const GLenum VERTEX_ATTRIB_ARRAY_ENABLED = static_cast<GLenum>(0x8622); const GLenum VERTEX_ATTRIB_ARRAY_SIZE = static_cast<GLenum>(0x8623); const GLenum VERTEX_ATTRIB_ARRAY_STRIDE = static_cast<GLenum>(0x8624); const GLenum VERTEX_ATTRIB_ARRAY_TYPE = static_cast<GLenum>(0x8625); const GLenum CURRENT_VERTEX_ATTRIB = static_cast<GLenum>(0x8626); const GLenum VERTEX_PROGRAM_POINT_SIZE = static_cast<GLenum>(0x8642); const GLenum VERTEX_ATTRIB_ARRAY_POINTER = static_cast<GLenum>(0x8645); const GLenum STENCIL_BACK_FUNC = static_cast<GLenum>(0x8800); const GLenum STENCIL_BACK_FAIL = static_cast<GLenum>(0x8801); const GLenum STENCIL_BACK_PASS_DEPTH_FAIL = static_cast<GLenum>(0x8802); const GLenum STENCIL_BACK_PASS_DEPTH_PASS = static_cast<GLenum>(0x8803); const GLenum MAX_DRAW_BUFFERS = static_cast<GLenum>(0x8824); const GLenum DRAW_BUFFER0 = static_cast<GLenum>(0x8825); const GLenum DRAW_BUFFER1 = static_cast<GLenum>(0x8826); const GLenum DRAW_BUFFER2 = static_cast<GLenum>(0x8827); const GLenum DRAW_BUFFER3 = static_cast<GLenum>(0x8828); const GLenum DRAW_BUFFER4 = static_cast<GLenum>(0x8829); const GLenum DRAW_BUFFER5 = static_cast<GLenum>(0x882A); const GLenum DRAW_BUFFER6 = static_cast<GLenum>(0x882B); const GLenum DRAW_BUFFER7 = static_cast<GLenum>(0x882C); const GLenum DRAW_BUFFER8 = static_cast<GLenum>(0x882D); const GLenum DRAW_BUFFER9 = static_cast<GLenum>(0x882E); const GLenum DRAW_BUFFER10 = static_cast<GLenum>(0x882F); const GLenum DRAW_BUFFER11 = static_cast<GLenum>(0x8830); const GLenum DRAW_BUFFER12 = static_cast<GLenum>(0x8831); const GLenum DRAW_BUFFER13 = static_cast<GLenum>(0x8832); const GLenum DRAW_BUFFER14 = static_cast<GLenum>(0x8833); const GLenum DRAW_BUFFER15 = static_cast<GLenum>(0x8834); const GLenum BLEND_EQUATION_ALPHA = static_cast<GLenum>(0x883D); const GLenum MAX_VERTEX_ATTRIBS = static_cast<GLenum>(0x8869); const GLenum VERTEX_ATTRIB_ARRAY_NORMALIZED = static_cast<GLenum>(0x886A); const GLenum MAX_TEXTURE_IMAGE_UNITS = static_cast<GLenum>(0x8872); const GLenum FRAGMENT_SHADER = static_cast<GLenum>(0x8B30); const GLenum VERTEX_SHADER = static_cast<GLenum>(0x8B31); const GLenum MAX_FRAGMENT_UNIFORM_COMPONENTS = static_cast<GLenum>(0x8B49); const GLenum MAX_VERTEX_UNIFORM_COMPONENTS = static_cast<GLenum>(0x8B4A); const GLenum MAX_VARYING_FLOATS = static_cast<GLenum>(0x8B4B); const GLenum MAX_VERTEX_TEXTURE_IMAGE_UNITS = static_cast<GLenum>(0x8B4C); const GLenum MAX_COMBINED_TEXTURE_IMAGE_UNITS = static_cast<GLenum>(0x8B4D); const GLenum SHADER_TYPE = static_cast<GLenum>(0x8B4F); const GLenum FLOAT_VEC2 = static_cast<GLenum>(0x8B50); const GLenum FLOAT_VEC3 = static_cast<GLenum>(0x8B51); const GLenum FLOAT_VEC4 = static_cast<GLenum>(0x8B52); const GLenum INT_VEC2 = static_cast<GLenum>(0x8B53); const GLenum INT_VEC3 = static_cast<GLenum>(0x8B54); const GLenum INT_VEC4 = static_cast<GLenum>(0x8B55); const GLenum BOOL = static_cast<GLenum>(0x8B56); const GLenum BOOL_VEC2 = static_cast<GLenum>(0x8B57); const GLenum BOOL_VEC3 = static_cast<GLenum>(0x8B58); const GLenum BOOL_VEC4 = static_cast<GLenum>(0x8B59); const GLenum FLOAT_MAT2 = static_cast<GLenum>(0x8B5A); const GLenum FLOAT_MAT3 = static_cast<GLenum>(0x8B5B); const GLenum FLOAT_MAT4 = static_cast<GLenum>(0x8B5C); const GLenum SAMPLER_1D = static_cast<GLenum>(0x8B5D); const GLenum SAMPLER_2D = static_cast<GLenum>(0x8B5E); const GLenum SAMPLER_3D = static_cast<GLenum>(0x8B5F); const GLenum SAMPLER_CUBE = static_cast<GLenum>(0x8B60); const GLenum SAMPLER_1D_SHADOW = static_cast<GLenum>(0x8B61); const GLenum SAMPLER_2D_SHADOW = static_cast<GLenum>(0x8B62); const GLenum DELETE_STATUS = static_cast<GLenum>(0x8B80); const GLenum COMPILE_STATUS = static_cast<GLenum>(0x8B81); const GLenum LINK_STATUS = static_cast<GLenum>(0x8B82); const GLenum VALIDATE_STATUS = static_cast<GLenum>(0x8B83); const GLenum INFO_LOG_LENGTH = static_cast<GLenum>(0x8B84); const GLenum ATTACHED_SHADERS = static_cast<GLenum>(0x8B85); const GLenum ACTIVE_UNIFORMS = static_cast<GLenum>(0x8B86); const GLenum ACTIVE_UNIFORM_MAX_LENGTH = static_cast<GLenum>(0x8B87); const GLenum SHADER_SOURCE_LENGTH = static_cast<GLenum>(0x8B88); const GLenum ACTIVE_ATTRIBUTES = static_cast<GLenum>(0x8B89); const GLenum ACTIVE_ATTRIBUTE_MAX_LENGTH = static_cast<GLenum>(0x8B8A); const GLenum FRAGMENT_SHADER_DERIVATIVE_HINT = static_cast<GLenum>(0x8B8B); const GLenum SHADING_LANGUAGE_VERSION = static_cast<GLenum>(0x8B8C); const GLenum CURRENT_PROGRAM = static_cast<GLenum>(0x8B8D); const GLenum POINT_SPRITE_COORD_ORIGIN = static_cast<GLenum>(0x8CA0); const GLenum LOWER_LEFT = static_cast<GLenum>(0x8CA1); const GLenum UPPER_LEFT = static_cast<GLenum>(0x8CA2); const GLenum STENCIL_BACK_REF = static_cast<GLenum>(0x8CA3); const GLenum STENCIL_BACK_VALUE_MASK = static_cast<GLenum>(0x8CA4); const GLenum STENCIL_BACK_WRITEMASK = static_cast<GLenum>(0x8CA5); typedef char GLchar; typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha); typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs); typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask); typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader); typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name); typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader); typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void); typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type); typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program); typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader); typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader); typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index); typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index); typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj); typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name); typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name); typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params); typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, GLvoid* *pointer); typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program); typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader); typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program); typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length); typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program); typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0); typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1); typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0); typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1); typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2); typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value); typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value); typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value); typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program); typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x); typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x); typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x); typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y); typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y); typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y); typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z); typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); extern VTK_RENDERING_EXPORT PFNGLBLENDEQUATIONSEPARATEPROC BlendEquationSeparate; extern VTK_RENDERING_EXPORT PFNGLDRAWBUFFERSPROC DrawBuffers; extern VTK_RENDERING_EXPORT PFNGLSTENCILOPSEPARATEPROC StencilOpSeparate; extern VTK_RENDERING_EXPORT PFNGLSTENCILFUNCSEPARATEPROC StencilFuncSeparate; extern VTK_RENDERING_EXPORT PFNGLSTENCILMASKSEPARATEPROC StencilMaskSeparate; extern VTK_RENDERING_EXPORT PFNGLATTACHSHADERPROC AttachShader; extern VTK_RENDERING_EXPORT PFNGLBINDATTRIBLOCATIONPROC BindAttribLocation; extern VTK_RENDERING_EXPORT PFNGLCOMPILESHADERPROC CompileShader; extern VTK_RENDERING_EXPORT PFNGLCREATEPROGRAMPROC CreateProgram; extern VTK_RENDERING_EXPORT PFNGLCREATESHADERPROC CreateShader; extern VTK_RENDERING_EXPORT PFNGLDELETEPROGRAMPROC DeleteProgram; extern VTK_RENDERING_EXPORT PFNGLDELETESHADERPROC DeleteShader; extern VTK_RENDERING_EXPORT PFNGLDETACHSHADERPROC DetachShader; extern VTK_RENDERING_EXPORT PFNGLDISABLEVERTEXATTRIBARRAYPROC DisableVertexAttribArray; extern VTK_RENDERING_EXPORT PFNGLENABLEVERTEXATTRIBARRAYPROC EnableVertexAttribArray; extern VTK_RENDERING_EXPORT PFNGLGETACTIVEATTRIBPROC GetActiveAttrib; extern VTK_RENDERING_EXPORT PFNGLGETACTIVEUNIFORMPROC GetActiveUniform; extern VTK_RENDERING_EXPORT PFNGLGETATTACHEDSHADERSPROC GetAttachedShaders; extern VTK_RENDERING_EXPORT PFNGLGETATTRIBLOCATIONPROC GetAttribLocation; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMIVPROC GetProgramiv; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMINFOLOGPROC GetProgramInfoLog; extern VTK_RENDERING_EXPORT PFNGLGETSHADERIVPROC GetShaderiv; extern VTK_RENDERING_EXPORT PFNGLGETSHADERINFOLOGPROC GetShaderInfoLog; extern VTK_RENDERING_EXPORT PFNGLGETSHADERSOURCEPROC GetShaderSource; extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMLOCATIONPROC GetUniformLocation; extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMFVPROC GetUniformfv; extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMIVPROC GetUniformiv; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBDVPROC GetVertexAttribdv; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBFVPROC GetVertexAttribfv; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBIVPROC GetVertexAttribiv; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBPOINTERVPROC GetVertexAttribPointerv; extern VTK_RENDERING_EXPORT PFNGLISPROGRAMPROC IsProgram; extern VTK_RENDERING_EXPORT PFNGLISSHADERPROC IsShader; extern VTK_RENDERING_EXPORT PFNGLLINKPROGRAMPROC LinkProgram; extern VTK_RENDERING_EXPORT PFNGLSHADERSOURCEPROC ShaderSource; extern VTK_RENDERING_EXPORT PFNGLUSEPROGRAMPROC UseProgram; extern VTK_RENDERING_EXPORT PFNGLUNIFORM1FPROC Uniform1f; extern VTK_RENDERING_EXPORT PFNGLUNIFORM2FPROC Uniform2f; extern VTK_RENDERING_EXPORT PFNGLUNIFORM3FPROC Uniform3f; extern VTK_RENDERING_EXPORT PFNGLUNIFORM4FPROC Uniform4f; extern VTK_RENDERING_EXPORT PFNGLUNIFORM1IPROC Uniform1i; extern VTK_RENDERING_EXPORT PFNGLUNIFORM2IPROC Uniform2i; extern VTK_RENDERING_EXPORT PFNGLUNIFORM3IPROC Uniform3i; extern VTK_RENDERING_EXPORT PFNGLUNIFORM4IPROC Uniform4i; extern VTK_RENDERING_EXPORT PFNGLUNIFORM1FVPROC Uniform1fv; extern VTK_RENDERING_EXPORT PFNGLUNIFORM2FVPROC Uniform2fv; extern VTK_RENDERING_EXPORT PFNGLUNIFORM3FVPROC Uniform3fv; extern VTK_RENDERING_EXPORT PFNGLUNIFORM4FVPROC Uniform4fv; extern VTK_RENDERING_EXPORT PFNGLUNIFORM1IVPROC Uniform1iv; extern VTK_RENDERING_EXPORT PFNGLUNIFORM2IVPROC Uniform2iv; extern VTK_RENDERING_EXPORT PFNGLUNIFORM3IVPROC Uniform3iv; extern VTK_RENDERING_EXPORT PFNGLUNIFORM4IVPROC Uniform4iv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX2FVPROC UniformMatrix2fv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX3FVPROC UniformMatrix3fv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX4FVPROC UniformMatrix4fv; extern VTK_RENDERING_EXPORT PFNGLVALIDATEPROGRAMPROC ValidateProgram; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1DPROC VertexAttrib1d; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1DVPROC VertexAttrib1dv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1FPROC VertexAttrib1f; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1FVPROC VertexAttrib1fv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1SPROC VertexAttrib1s; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1SVPROC VertexAttrib1sv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2DPROC VertexAttrib2d; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2DVPROC VertexAttrib2dv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2FPROC VertexAttrib2f; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2FVPROC VertexAttrib2fv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2SPROC VertexAttrib2s; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2SVPROC VertexAttrib2sv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3DPROC VertexAttrib3d; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3DVPROC VertexAttrib3dv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3FPROC VertexAttrib3f; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3FVPROC VertexAttrib3fv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3SPROC VertexAttrib3s; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3SVPROC VertexAttrib3sv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4NBVPROC VertexAttrib4Nbv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4NIVPROC VertexAttrib4Niv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4NSVPROC VertexAttrib4Nsv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4NUBPROC VertexAttrib4Nub; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4NUBVPROC VertexAttrib4Nubv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4NUIVPROC VertexAttrib4Nuiv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4NUSVPROC VertexAttrib4Nusv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4BVPROC VertexAttrib4bv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4DPROC VertexAttrib4d; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4DVPROC VertexAttrib4dv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4FPROC VertexAttrib4f; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4FVPROC VertexAttrib4fv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4IVPROC VertexAttrib4iv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4SPROC VertexAttrib4s; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4SVPROC VertexAttrib4sv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4UBVPROC VertexAttrib4ubv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4UIVPROC VertexAttrib4uiv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4USVPROC VertexAttrib4usv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBPOINTERPROC VertexAttribPointer; //Definitions for GL_VERSION_2_0_DEPRECATED const GLenum VERTEX_PROGRAM_TWO_SIDE = static_cast<GLenum>(0x8643); const GLenum POINT_SPRITE = static_cast<GLenum>(0x8861); const GLenum COORD_REPLACE = static_cast<GLenum>(0x8862); const GLenum MAX_TEXTURE_COORDS = static_cast<GLenum>(0x8871); //Definitions for GL_VERSION_2_1 const GLenum PIXEL_PACK_BUFFER = static_cast<GLenum>(0x88EB); const GLenum PIXEL_UNPACK_BUFFER = static_cast<GLenum>(0x88EC); const GLenum PIXEL_PACK_BUFFER_BINDING = static_cast<GLenum>(0x88ED); const GLenum PIXEL_UNPACK_BUFFER_BINDING = static_cast<GLenum>(0x88EF); const GLenum FLOAT_MAT2x3 = static_cast<GLenum>(0x8B65); const GLenum FLOAT_MAT2x4 = static_cast<GLenum>(0x8B66); const GLenum FLOAT_MAT3x2 = static_cast<GLenum>(0x8B67); const GLenum FLOAT_MAT3x4 = static_cast<GLenum>(0x8B68); const GLenum FLOAT_MAT4x2 = static_cast<GLenum>(0x8B69); const GLenum FLOAT_MAT4x3 = static_cast<GLenum>(0x8B6A); const GLenum SRGB = static_cast<GLenum>(0x8C40); const GLenum SRGB8 = static_cast<GLenum>(0x8C41); const GLenum SRGB_ALPHA = static_cast<GLenum>(0x8C42); const GLenum SRGB8_ALPHA8 = static_cast<GLenum>(0x8C43); const GLenum COMPRESSED_SRGB = static_cast<GLenum>(0x8C48); const GLenum COMPRESSED_SRGB_ALPHA = static_cast<GLenum>(0x8C49); typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX2X3FVPROC UniformMatrix2x3fv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX3X2FVPROC UniformMatrix3x2fv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX2X4FVPROC UniformMatrix2x4fv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX4X2FVPROC UniformMatrix4x2fv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX3X4FVPROC UniformMatrix3x4fv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX4X3FVPROC UniformMatrix4x3fv; //Definitions for GL_VERSION_2_1_DEPRECATED const GLenum CURRENT_RASTER_SECONDARY_COLOR = static_cast<GLenum>(0x845F); const GLenum SLUMINANCE_ALPHA = static_cast<GLenum>(0x8C44); const GLenum SLUMINANCE8_ALPHA8 = static_cast<GLenum>(0x8C45); const GLenum SLUMINANCE = static_cast<GLenum>(0x8C46); const GLenum SLUMINANCE8 = static_cast<GLenum>(0x8C47); const GLenum COMPRESSED_SLUMINANCE = static_cast<GLenum>(0x8C4A); const GLenum COMPRESSED_SLUMINANCE_ALPHA = static_cast<GLenum>(0x8C4B); //Definitions for GL_VERSION_3_0 const GLenum COMPARE_REF_TO_TEXTURE = static_cast<GLenum>(0x884E); const GLenum CLIP_DISTANCE0 = static_cast<GLenum>(0x3000); const GLenum CLIP_DISTANCE1 = static_cast<GLenum>(0x3001); const GLenum CLIP_DISTANCE2 = static_cast<GLenum>(0x3002); const GLenum CLIP_DISTANCE3 = static_cast<GLenum>(0x3003); const GLenum CLIP_DISTANCE4 = static_cast<GLenum>(0x3004); const GLenum CLIP_DISTANCE5 = static_cast<GLenum>(0x3005); const GLenum CLIP_DISTANCE6 = static_cast<GLenum>(0x3006); const GLenum CLIP_DISTANCE7 = static_cast<GLenum>(0x3007); const GLenum MAX_CLIP_DISTANCES = static_cast<GLenum>(0x0D32); const GLenum MAJOR_VERSION = static_cast<GLenum>(0x821B); const GLenum MINOR_VERSION = static_cast<GLenum>(0x821C); const GLenum NUM_EXTENSIONS = static_cast<GLenum>(0x821D); const GLenum CONTEXT_FLAGS = static_cast<GLenum>(0x821E); const GLenum DEPTH_BUFFER = static_cast<GLenum>(0x8223); const GLenum STENCIL_BUFFER = static_cast<GLenum>(0x8224); const GLenum COMPRESSED_RED = static_cast<GLenum>(0x8225); const GLenum COMPRESSED_RG = static_cast<GLenum>(0x8226); const GLenum CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = static_cast<GLenum>(0x0001); const GLenum RGBA32F = static_cast<GLenum>(0x8814); const GLenum RGB32F = static_cast<GLenum>(0x8815); const GLenum RGBA16F = static_cast<GLenum>(0x881A); const GLenum RGB16F = static_cast<GLenum>(0x881B); const GLenum VERTEX_ATTRIB_ARRAY_INTEGER = static_cast<GLenum>(0x88FD); const GLenum MAX_ARRAY_TEXTURE_LAYERS = static_cast<GLenum>(0x88FF); const GLenum MIN_PROGRAM_TEXEL_OFFSET = static_cast<GLenum>(0x8904); const GLenum MAX_PROGRAM_TEXEL_OFFSET = static_cast<GLenum>(0x8905); const GLenum CLAMP_READ_COLOR = static_cast<GLenum>(0x891C); const GLenum FIXED_ONLY = static_cast<GLenum>(0x891D); const GLenum MAX_VARYING_COMPONENTS = static_cast<GLenum>(0x8B4B); const GLenum TEXTURE_1D_ARRAY = static_cast<GLenum>(0x8C18); const GLenum PROXY_TEXTURE_1D_ARRAY = static_cast<GLenum>(0x8C19); const GLenum TEXTURE_2D_ARRAY = static_cast<GLenum>(0x8C1A); const GLenum PROXY_TEXTURE_2D_ARRAY = static_cast<GLenum>(0x8C1B); const GLenum TEXTURE_BINDING_1D_ARRAY = static_cast<GLenum>(0x8C1C); const GLenum TEXTURE_BINDING_2D_ARRAY = static_cast<GLenum>(0x8C1D); const GLenum R11F_G11F_B10F = static_cast<GLenum>(0x8C3A); const GLenum UNSIGNED_INT_10F_11F_11F_REV = static_cast<GLenum>(0x8C3B); const GLenum RGB9_E5 = static_cast<GLenum>(0x8C3D); const GLenum UNSIGNED_INT_5_9_9_9_REV = static_cast<GLenum>(0x8C3E); const GLenum TEXTURE_SHARED_SIZE = static_cast<GLenum>(0x8C3F); const GLenum TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = static_cast<GLenum>(0x8C76); const GLenum TRANSFORM_FEEDBACK_BUFFER_MODE = static_cast<GLenum>(0x8C7F); const GLenum MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = static_cast<GLenum>(0x8C80); const GLenum TRANSFORM_FEEDBACK_VARYINGS = static_cast<GLenum>(0x8C83); const GLenum TRANSFORM_FEEDBACK_BUFFER_START = static_cast<GLenum>(0x8C84); const GLenum TRANSFORM_FEEDBACK_BUFFER_SIZE = static_cast<GLenum>(0x8C85); const GLenum PRIMITIVES_GENERATED = static_cast<GLenum>(0x8C87); const GLenum TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = static_cast<GLenum>(0x8C88); const GLenum RASTERIZER_DISCARD = static_cast<GLenum>(0x8C89); const GLenum MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = static_cast<GLenum>(0x8C8A); const GLenum MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = static_cast<GLenum>(0x8C8B); const GLenum INTERLEAVED_ATTRIBS = static_cast<GLenum>(0x8C8C); const GLenum SEPARATE_ATTRIBS = static_cast<GLenum>(0x8C8D); const GLenum TRANSFORM_FEEDBACK_BUFFER = static_cast<GLenum>(0x8C8E); const GLenum TRANSFORM_FEEDBACK_BUFFER_BINDING = static_cast<GLenum>(0x8C8F); const GLenum RGBA32UI = static_cast<GLenum>(0x8D70); const GLenum RGB32UI = static_cast<GLenum>(0x8D71); const GLenum RGBA16UI = static_cast<GLenum>(0x8D76); const GLenum RGB16UI = static_cast<GLenum>(0x8D77); const GLenum RGBA8UI = static_cast<GLenum>(0x8D7C); const GLenum RGB8UI = static_cast<GLenum>(0x8D7D); const GLenum RGBA32I = static_cast<GLenum>(0x8D82); const GLenum RGB32I = static_cast<GLenum>(0x8D83); const GLenum RGBA16I = static_cast<GLenum>(0x8D88); const GLenum RGB16I = static_cast<GLenum>(0x8D89); const GLenum RGBA8I = static_cast<GLenum>(0x8D8E); const GLenum RGB8I = static_cast<GLenum>(0x8D8F); const GLenum RED_INTEGER = static_cast<GLenum>(0x8D94); const GLenum GREEN_INTEGER = static_cast<GLenum>(0x8D95); const GLenum BLUE_INTEGER = static_cast<GLenum>(0x8D96); const GLenum RGB_INTEGER = static_cast<GLenum>(0x8D98); const GLenum RGBA_INTEGER = static_cast<GLenum>(0x8D99); const GLenum BGR_INTEGER = static_cast<GLenum>(0x8D9A); const GLenum BGRA_INTEGER = static_cast<GLenum>(0x8D9B); const GLenum SAMPLER_1D_ARRAY = static_cast<GLenum>(0x8DC0); const GLenum SAMPLER_2D_ARRAY = static_cast<GLenum>(0x8DC1); const GLenum SAMPLER_1D_ARRAY_SHADOW = static_cast<GLenum>(0x8DC3); const GLenum SAMPLER_2D_ARRAY_SHADOW = static_cast<GLenum>(0x8DC4); const GLenum SAMPLER_CUBE_SHADOW = static_cast<GLenum>(0x8DC5); const GLenum UNSIGNED_INT_VEC2 = static_cast<GLenum>(0x8DC6); const GLenum UNSIGNED_INT_VEC3 = static_cast<GLenum>(0x8DC7); const GLenum UNSIGNED_INT_VEC4 = static_cast<GLenum>(0x8DC8); const GLenum INT_SAMPLER_1D = static_cast<GLenum>(0x8DC9); const GLenum INT_SAMPLER_2D = static_cast<GLenum>(0x8DCA); const GLenum INT_SAMPLER_3D = static_cast<GLenum>(0x8DCB); const GLenum INT_SAMPLER_CUBE = static_cast<GLenum>(0x8DCC); const GLenum INT_SAMPLER_1D_ARRAY = static_cast<GLenum>(0x8DCE); const GLenum INT_SAMPLER_2D_ARRAY = static_cast<GLenum>(0x8DCF); const GLenum UNSIGNED_INT_SAMPLER_1D = static_cast<GLenum>(0x8DD1); const GLenum UNSIGNED_INT_SAMPLER_2D = static_cast<GLenum>(0x8DD2); const GLenum UNSIGNED_INT_SAMPLER_3D = static_cast<GLenum>(0x8DD3); const GLenum UNSIGNED_INT_SAMPLER_CUBE = static_cast<GLenum>(0x8DD4); const GLenum UNSIGNED_INT_SAMPLER_1D_ARRAY = static_cast<GLenum>(0x8DD6); const GLenum UNSIGNED_INT_SAMPLER_2D_ARRAY = static_cast<GLenum>(0x8DD7); const GLenum QUERY_WAIT = static_cast<GLenum>(0x8E13); const GLenum QUERY_NO_WAIT = static_cast<GLenum>(0x8E14); const GLenum QUERY_BY_REGION_WAIT = static_cast<GLenum>(0x8E15); const GLenum QUERY_BY_REGION_NO_WAIT = static_cast<GLenum>(0x8E16); const GLenum BUFFER_ACCESS_FLAGS = static_cast<GLenum>(0x911F); const GLenum BUFFER_MAP_LENGTH = static_cast<GLenum>(0x9120); const GLenum BUFFER_MAP_OFFSET = static_cast<GLenum>(0x9121); typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data); typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data); typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index); typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index); typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index); typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode); typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void); typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer); typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode); typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp); typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode); typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void); typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params); typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x); typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y); typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x); typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y); typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v); typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params); typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name); typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name); typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0); typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1); typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value); typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value); typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value); typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value); typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params); typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params); typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value); typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value); typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value); typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index); extern VTK_RENDERING_EXPORT PFNGLCOLORMASKIPROC ColorMaski; extern VTK_RENDERING_EXPORT PFNGLGETBOOLEANI_VPROC GetBooleani_v; extern VTK_RENDERING_EXPORT PFNGLGETINTEGERI_VPROC GetIntegeri_v; extern VTK_RENDERING_EXPORT PFNGLENABLEIPROC Enablei; extern VTK_RENDERING_EXPORT PFNGLDISABLEIPROC Disablei; extern VTK_RENDERING_EXPORT PFNGLISENABLEDIPROC IsEnabledi; extern VTK_RENDERING_EXPORT PFNGLBEGINTRANSFORMFEEDBACKPROC BeginTransformFeedback; extern VTK_RENDERING_EXPORT PFNGLENDTRANSFORMFEEDBACKPROC EndTransformFeedback; extern VTK_RENDERING_EXPORT PFNGLBINDBUFFERRANGEPROC BindBufferRange; extern VTK_RENDERING_EXPORT PFNGLBINDBUFFERBASEPROC BindBufferBase; extern VTK_RENDERING_EXPORT PFNGLTRANSFORMFEEDBACKVARYINGSPROC TransformFeedbackVaryings; extern VTK_RENDERING_EXPORT PFNGLGETTRANSFORMFEEDBACKVARYINGPROC GetTransformFeedbackVarying; extern VTK_RENDERING_EXPORT PFNGLCLAMPCOLORPROC ClampColor; extern VTK_RENDERING_EXPORT PFNGLBEGINCONDITIONALRENDERPROC BeginConditionalRender; extern VTK_RENDERING_EXPORT PFNGLENDCONDITIONALRENDERPROC EndConditionalRender; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBIPOINTERPROC VertexAttribIPointer; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBIIVPROC GetVertexAttribIiv; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBIUIVPROC GetVertexAttribIuiv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI1IPROC VertexAttribI1i; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI2IPROC VertexAttribI2i; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI3IPROC VertexAttribI3i; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4IPROC VertexAttribI4i; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI1UIPROC VertexAttribI1ui; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI2UIPROC VertexAttribI2ui; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI3UIPROC VertexAttribI3ui; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4UIPROC VertexAttribI4ui; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI1IVPROC VertexAttribI1iv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI2IVPROC VertexAttribI2iv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI3IVPROC VertexAttribI3iv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4IVPROC VertexAttribI4iv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI1UIVPROC VertexAttribI1uiv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI2UIVPROC VertexAttribI2uiv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI3UIVPROC VertexAttribI3uiv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4UIVPROC VertexAttribI4uiv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4BVPROC VertexAttribI4bv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4SVPROC VertexAttribI4sv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4UBVPROC VertexAttribI4ubv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4USVPROC VertexAttribI4usv; extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMUIVPROC GetUniformuiv; extern VTK_RENDERING_EXPORT PFNGLBINDFRAGDATALOCATIONPROC BindFragDataLocation; extern VTK_RENDERING_EXPORT PFNGLGETFRAGDATALOCATIONPROC GetFragDataLocation; extern VTK_RENDERING_EXPORT PFNGLUNIFORM1UIPROC Uniform1ui; extern VTK_RENDERING_EXPORT PFNGLUNIFORM2UIPROC Uniform2ui; extern VTK_RENDERING_EXPORT PFNGLUNIFORM3UIPROC Uniform3ui; extern VTK_RENDERING_EXPORT PFNGLUNIFORM4UIPROC Uniform4ui; extern VTK_RENDERING_EXPORT PFNGLUNIFORM1UIVPROC Uniform1uiv; extern VTK_RENDERING_EXPORT PFNGLUNIFORM2UIVPROC Uniform2uiv; extern VTK_RENDERING_EXPORT PFNGLUNIFORM3UIVPROC Uniform3uiv; extern VTK_RENDERING_EXPORT PFNGLUNIFORM4UIVPROC Uniform4uiv; extern VTK_RENDERING_EXPORT PFNGLTEXPARAMETERIIVPROC TexParameterIiv; extern VTK_RENDERING_EXPORT PFNGLTEXPARAMETERIUIVPROC TexParameterIuiv; extern VTK_RENDERING_EXPORT PFNGLGETTEXPARAMETERIIVPROC GetTexParameterIiv; extern VTK_RENDERING_EXPORT PFNGLGETTEXPARAMETERIUIVPROC GetTexParameterIuiv; extern VTK_RENDERING_EXPORT PFNGLCLEARBUFFERIVPROC ClearBufferiv; extern VTK_RENDERING_EXPORT PFNGLCLEARBUFFERUIVPROC ClearBufferuiv; extern VTK_RENDERING_EXPORT PFNGLCLEARBUFFERFVPROC ClearBufferfv; extern VTK_RENDERING_EXPORT PFNGLCLEARBUFFERFIPROC ClearBufferfi; extern VTK_RENDERING_EXPORT PFNGLGETSTRINGIPROC GetStringi; //Definitions for GL_VERSION_3_0_DEPRECATED const GLenum CLAMP_VERTEX_COLOR = static_cast<GLenum>(0x891A); const GLenum CLAMP_FRAGMENT_COLOR = static_cast<GLenum>(0x891B); const GLenum ALPHA_INTEGER = static_cast<GLenum>(0x8D97); //Definitions for GL_VERSION_3_1 const GLenum SAMPLER_2D_RECT = static_cast<GLenum>(0x8B63); const GLenum SAMPLER_2D_RECT_SHADOW = static_cast<GLenum>(0x8B64); const GLenum SAMPLER_BUFFER = static_cast<GLenum>(0x8DC2); const GLenum INT_SAMPLER_2D_RECT = static_cast<GLenum>(0x8DCD); const GLenum INT_SAMPLER_BUFFER = static_cast<GLenum>(0x8DD0); const GLenum UNSIGNED_INT_SAMPLER_2D_RECT = static_cast<GLenum>(0x8DD5); const GLenum UNSIGNED_INT_SAMPLER_BUFFER = static_cast<GLenum>(0x8DD8); const GLenum TEXTURE_BUFFER = static_cast<GLenum>(0x8C2A); const GLenum MAX_TEXTURE_BUFFER_SIZE = static_cast<GLenum>(0x8C2B); const GLenum TEXTURE_BINDING_BUFFER = static_cast<GLenum>(0x8C2C); const GLenum TEXTURE_BUFFER_DATA_STORE_BINDING = static_cast<GLenum>(0x8C2D); const GLenum TEXTURE_BUFFER_FORMAT = static_cast<GLenum>(0x8C2E); const GLenum TEXTURE_RECTANGLE = static_cast<GLenum>(0x84F5); const GLenum TEXTURE_BINDING_RECTANGLE = static_cast<GLenum>(0x84F6); const GLenum PROXY_TEXTURE_RECTANGLE = static_cast<GLenum>(0x84F7); const GLenum MAX_RECTANGLE_TEXTURE_SIZE = static_cast<GLenum>(0x84F8); const GLenum RED_SNORM = static_cast<GLenum>(0x8F90); const GLenum RG_SNORM = static_cast<GLenum>(0x8F91); const GLenum RGB_SNORM = static_cast<GLenum>(0x8F92); const GLenum RGBA_SNORM = static_cast<GLenum>(0x8F93); const GLenum R8_SNORM = static_cast<GLenum>(0x8F94); const GLenum RG8_SNORM = static_cast<GLenum>(0x8F95); const GLenum RGB8_SNORM = static_cast<GLenum>(0x8F96); const GLenum RGBA8_SNORM = static_cast<GLenum>(0x8F97); const GLenum R16_SNORM = static_cast<GLenum>(0x8F98); const GLenum RG16_SNORM = static_cast<GLenum>(0x8F99); const GLenum RGB16_SNORM = static_cast<GLenum>(0x8F9A); const GLenum RGBA16_SNORM = static_cast<GLenum>(0x8F9B); const GLenum SIGNED_NORMALIZED = static_cast<GLenum>(0x8F9C); const GLenum PRIMITIVE_RESTART = static_cast<GLenum>(0x8F9D); const GLenum PRIMITIVE_RESTART_INDEX = static_cast<GLenum>(0x8F9E); typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount); typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount); typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer); typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index); extern VTK_RENDERING_EXPORT PFNGLDRAWARRAYSINSTANCEDPROC DrawArraysInstanced; extern VTK_RENDERING_EXPORT PFNGLDRAWELEMENTSINSTANCEDPROC DrawElementsInstanced; extern VTK_RENDERING_EXPORT PFNGLTEXBUFFERPROC TexBuffer; extern VTK_RENDERING_EXPORT PFNGLPRIMITIVERESTARTINDEXPROC PrimitiveRestartIndex; //Definitions for GL_VERSION_3_2 const GLenum CONTEXT_CORE_PROFILE_BIT = static_cast<GLenum>(0x00000001); const GLenum CONTEXT_COMPATIBILITY_PROFILE_BIT = static_cast<GLenum>(0x00000002); const GLenum LINES_ADJACENCY = static_cast<GLenum>(0x000A); const GLenum LINE_STRIP_ADJACENCY = static_cast<GLenum>(0x000B); const GLenum TRIANGLES_ADJACENCY = static_cast<GLenum>(0x000C); const GLenum TRIANGLE_STRIP_ADJACENCY = static_cast<GLenum>(0x000D); const GLenum PROGRAM_POINT_SIZE = static_cast<GLenum>(0x8642); const GLenum MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = static_cast<GLenum>(0x8C29); const GLenum FRAMEBUFFER_ATTACHMENT_LAYERED = static_cast<GLenum>(0x8DA7); const GLenum FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = static_cast<GLenum>(0x8DA8); const GLenum GEOMETRY_SHADER = static_cast<GLenum>(0x8DD9); const GLenum GEOMETRY_VERTICES_OUT = static_cast<GLenum>(0x8916); const GLenum GEOMETRY_INPUT_TYPE = static_cast<GLenum>(0x8917); const GLenum GEOMETRY_OUTPUT_TYPE = static_cast<GLenum>(0x8918); const GLenum MAX_GEOMETRY_UNIFORM_COMPONENTS = static_cast<GLenum>(0x8DDF); const GLenum MAX_GEOMETRY_OUTPUT_VERTICES = static_cast<GLenum>(0x8DE0); const GLenum MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = static_cast<GLenum>(0x8DE1); const GLenum MAX_VERTEX_OUTPUT_COMPONENTS = static_cast<GLenum>(0x9122); const GLenum MAX_GEOMETRY_INPUT_COMPONENTS = static_cast<GLenum>(0x9123); const GLenum MAX_GEOMETRY_OUTPUT_COMPONENTS = static_cast<GLenum>(0x9124); const GLenum MAX_FRAGMENT_INPUT_COMPONENTS = static_cast<GLenum>(0x9125); const GLenum CONTEXT_PROFILE_MASK = static_cast<GLenum>(0x9126); typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data); typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params); typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value); typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); extern VTK_RENDERING_EXPORT PFNGLGETINTEGER64I_VPROC GetInteger64i_v; extern VTK_RENDERING_EXPORT PFNGLGETBUFFERPARAMETERI64VPROC GetBufferParameteri64v; extern VTK_RENDERING_EXPORT PFNGLPROGRAMPARAMETERIPROC ProgramParameteri; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERTEXTUREPROC FramebufferTexture; //Definitions for GL_VERSION_3_3 //Definitions for GL_VERSION_4_0 //Definitions for GL_ARB_multitexture const GLenum TEXTURE0_ARB = static_cast<GLenum>(0x84C0); const GLenum TEXTURE1_ARB = static_cast<GLenum>(0x84C1); const GLenum TEXTURE2_ARB = static_cast<GLenum>(0x84C2); const GLenum TEXTURE3_ARB = static_cast<GLenum>(0x84C3); const GLenum TEXTURE4_ARB = static_cast<GLenum>(0x84C4); const GLenum TEXTURE5_ARB = static_cast<GLenum>(0x84C5); const GLenum TEXTURE6_ARB = static_cast<GLenum>(0x84C6); const GLenum TEXTURE7_ARB = static_cast<GLenum>(0x84C7); const GLenum TEXTURE8_ARB = static_cast<GLenum>(0x84C8); const GLenum TEXTURE9_ARB = static_cast<GLenum>(0x84C9); const GLenum TEXTURE10_ARB = static_cast<GLenum>(0x84CA); const GLenum TEXTURE11_ARB = static_cast<GLenum>(0x84CB); const GLenum TEXTURE12_ARB = static_cast<GLenum>(0x84CC); const GLenum TEXTURE13_ARB = static_cast<GLenum>(0x84CD); const GLenum TEXTURE14_ARB = static_cast<GLenum>(0x84CE); const GLenum TEXTURE15_ARB = static_cast<GLenum>(0x84CF); const GLenum TEXTURE16_ARB = static_cast<GLenum>(0x84D0); const GLenum TEXTURE17_ARB = static_cast<GLenum>(0x84D1); const GLenum TEXTURE18_ARB = static_cast<GLenum>(0x84D2); const GLenum TEXTURE19_ARB = static_cast<GLenum>(0x84D3); const GLenum TEXTURE20_ARB = static_cast<GLenum>(0x84D4); const GLenum TEXTURE21_ARB = static_cast<GLenum>(0x84D5); const GLenum TEXTURE22_ARB = static_cast<GLenum>(0x84D6); const GLenum TEXTURE23_ARB = static_cast<GLenum>(0x84D7); const GLenum TEXTURE24_ARB = static_cast<GLenum>(0x84D8); const GLenum TEXTURE25_ARB = static_cast<GLenum>(0x84D9); const GLenum TEXTURE26_ARB = static_cast<GLenum>(0x84DA); const GLenum TEXTURE27_ARB = static_cast<GLenum>(0x84DB); const GLenum TEXTURE28_ARB = static_cast<GLenum>(0x84DC); const GLenum TEXTURE29_ARB = static_cast<GLenum>(0x84DD); const GLenum TEXTURE30_ARB = static_cast<GLenum>(0x84DE); const GLenum TEXTURE31_ARB = static_cast<GLenum>(0x84DF); const GLenum ACTIVE_TEXTURE_ARB = static_cast<GLenum>(0x84E0); const GLenum CLIENT_ACTIVE_TEXTURE_ARB = static_cast<GLenum>(0x84E1); const GLenum MAX_TEXTURE_UNITS_ARB = static_cast<GLenum>(0x84E2); typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture); typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture); typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s); typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s); typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s); typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s); typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t); typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t); typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t); typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t); typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r); typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r); typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v); extern VTK_RENDERING_EXPORT PFNGLACTIVETEXTUREARBPROC ActiveTextureARB; extern VTK_RENDERING_EXPORT PFNGLCLIENTACTIVETEXTUREARBPROC ClientActiveTextureARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1DARBPROC MultiTexCoord1dARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1DVARBPROC MultiTexCoord1dvARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1FARBPROC MultiTexCoord1fARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1FVARBPROC MultiTexCoord1fvARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1IARBPROC MultiTexCoord1iARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1IVARBPROC MultiTexCoord1ivARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1SARBPROC MultiTexCoord1sARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1SVARBPROC MultiTexCoord1svARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2DARBPROC MultiTexCoord2dARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2DVARBPROC MultiTexCoord2dvARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2FARBPROC MultiTexCoord2fARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2FVARBPROC MultiTexCoord2fvARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2IARBPROC MultiTexCoord2iARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2IVARBPROC MultiTexCoord2ivARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2SARBPROC MultiTexCoord2sARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2SVARBPROC MultiTexCoord2svARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3DARBPROC MultiTexCoord3dARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3DVARBPROC MultiTexCoord3dvARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3FARBPROC MultiTexCoord3fARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3FVARBPROC MultiTexCoord3fvARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3IARBPROC MultiTexCoord3iARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3IVARBPROC MultiTexCoord3ivARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3SARBPROC MultiTexCoord3sARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3SVARBPROC MultiTexCoord3svARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4DARBPROC MultiTexCoord4dARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4DVARBPROC MultiTexCoord4dvARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4FARBPROC MultiTexCoord4fARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4FVARBPROC MultiTexCoord4fvARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4IARBPROC MultiTexCoord4iARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4IVARBPROC MultiTexCoord4ivARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4SARBPROC MultiTexCoord4sARB; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4SVARBPROC MultiTexCoord4svARB; //Definitions for GL_ARB_transpose_matrix const GLenum TRANSPOSE_MODELVIEW_MATRIX_ARB = static_cast<GLenum>(0x84E3); const GLenum TRANSPOSE_PROJECTION_MATRIX_ARB = static_cast<GLenum>(0x84E4); const GLenum TRANSPOSE_TEXTURE_MATRIX_ARB = static_cast<GLenum>(0x84E5); const GLenum TRANSPOSE_COLOR_MATRIX_ARB = static_cast<GLenum>(0x84E6); typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m); typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m); typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m); typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m); extern VTK_RENDERING_EXPORT PFNGLLOADTRANSPOSEMATRIXFARBPROC LoadTransposeMatrixfARB; extern VTK_RENDERING_EXPORT PFNGLLOADTRANSPOSEMATRIXDARBPROC LoadTransposeMatrixdARB; extern VTK_RENDERING_EXPORT PFNGLMULTTRANSPOSEMATRIXFARBPROC MultTransposeMatrixfARB; extern VTK_RENDERING_EXPORT PFNGLMULTTRANSPOSEMATRIXDARBPROC MultTransposeMatrixdARB; //Definitions for GL_ARB_multisample const GLenum MULTISAMPLE_ARB = static_cast<GLenum>(0x809D); const GLenum SAMPLE_ALPHA_TO_COVERAGE_ARB = static_cast<GLenum>(0x809E); const GLenum SAMPLE_ALPHA_TO_ONE_ARB = static_cast<GLenum>(0x809F); const GLenum SAMPLE_COVERAGE_ARB = static_cast<GLenum>(0x80A0); const GLenum SAMPLE_BUFFERS_ARB = static_cast<GLenum>(0x80A8); const GLenum SAMPLES_ARB = static_cast<GLenum>(0x80A9); const GLenum SAMPLE_COVERAGE_VALUE_ARB = static_cast<GLenum>(0x80AA); const GLenum SAMPLE_COVERAGE_INVERT_ARB = static_cast<GLenum>(0x80AB); const GLenum MULTISAMPLE_BIT_ARB = static_cast<GLenum>(0x20000000); typedef void (APIENTRYP PFNGLSAMPLECOVERAGEARBPROC) (GLclampf value, GLboolean invert); extern VTK_RENDERING_EXPORT PFNGLSAMPLECOVERAGEARBPROC SampleCoverageARB; //Definitions for GL_ARB_texture_env_add //Definitions for GL_ARB_texture_cube_map const GLenum NORMAL_MAP_ARB = static_cast<GLenum>(0x8511); const GLenum REFLECTION_MAP_ARB = static_cast<GLenum>(0x8512); const GLenum TEXTURE_CUBE_MAP_ARB = static_cast<GLenum>(0x8513); const GLenum TEXTURE_BINDING_CUBE_MAP_ARB = static_cast<GLenum>(0x8514); const GLenum TEXTURE_CUBE_MAP_POSITIVE_X_ARB = static_cast<GLenum>(0x8515); const GLenum TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = static_cast<GLenum>(0x8516); const GLenum TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = static_cast<GLenum>(0x8517); const GLenum TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = static_cast<GLenum>(0x8518); const GLenum TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = static_cast<GLenum>(0x8519); const GLenum TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = static_cast<GLenum>(0x851A); const GLenum PROXY_TEXTURE_CUBE_MAP_ARB = static_cast<GLenum>(0x851B); const GLenum MAX_CUBE_MAP_TEXTURE_SIZE_ARB = static_cast<GLenum>(0x851C); //Definitions for GL_ARB_texture_compression const GLenum COMPRESSED_ALPHA_ARB = static_cast<GLenum>(0x84E9); const GLenum COMPRESSED_LUMINANCE_ARB = static_cast<GLenum>(0x84EA); const GLenum COMPRESSED_LUMINANCE_ALPHA_ARB = static_cast<GLenum>(0x84EB); const GLenum COMPRESSED_INTENSITY_ARB = static_cast<GLenum>(0x84EC); const GLenum COMPRESSED_RGB_ARB = static_cast<GLenum>(0x84ED); const GLenum COMPRESSED_RGBA_ARB = static_cast<GLenum>(0x84EE); const GLenum TEXTURE_COMPRESSION_HINT_ARB = static_cast<GLenum>(0x84EF); const GLenum TEXTURE_COMPRESSED_IMAGE_SIZE_ARB = static_cast<GLenum>(0x86A0); const GLenum TEXTURE_COMPRESSED_ARB = static_cast<GLenum>(0x86A1); const GLenum NUM_COMPRESSED_TEXTURE_FORMATS_ARB = static_cast<GLenum>(0x86A2); const GLenum COMPRESSED_TEXTURE_FORMATS_ARB = static_cast<GLenum>(0x86A3); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, GLvoid *img); extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXIMAGE3DARBPROC CompressedTexImage3DARB; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXIMAGE2DARBPROC CompressedTexImage2DARB; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXIMAGE1DARBPROC CompressedTexImage1DARB; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC CompressedTexSubImage3DARB; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC CompressedTexSubImage2DARB; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC CompressedTexSubImage1DARB; extern VTK_RENDERING_EXPORT PFNGLGETCOMPRESSEDTEXIMAGEARBPROC GetCompressedTexImageARB; //Definitions for GL_ARB_texture_border_clamp const GLenum CLAMP_TO_BORDER_ARB = static_cast<GLenum>(0x812D); //Definitions for GL_ARB_point_parameters const GLenum POINT_SIZE_MIN_ARB = static_cast<GLenum>(0x8126); const GLenum POINT_SIZE_MAX_ARB = static_cast<GLenum>(0x8127); const GLenum POINT_FADE_THRESHOLD_SIZE_ARB = static_cast<GLenum>(0x8128); const GLenum POINT_DISTANCE_ATTENUATION_ARB = static_cast<GLenum>(0x8129); typedef void (APIENTRYP PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat *params); extern VTK_RENDERING_EXPORT PFNGLPOINTPARAMETERFARBPROC PointParameterfARB; extern VTK_RENDERING_EXPORT PFNGLPOINTPARAMETERFVARBPROC PointParameterfvARB; //Definitions for GL_ARB_vertex_blend const GLenum MAX_VERTEX_UNITS_ARB = static_cast<GLenum>(0x86A4); const GLenum ACTIVE_VERTEX_UNITS_ARB = static_cast<GLenum>(0x86A5); const GLenum WEIGHT_SUM_UNITY_ARB = static_cast<GLenum>(0x86A6); const GLenum VERTEX_BLEND_ARB = static_cast<GLenum>(0x86A7); const GLenum CURRENT_WEIGHT_ARB = static_cast<GLenum>(0x86A8); const GLenum WEIGHT_ARRAY_TYPE_ARB = static_cast<GLenum>(0x86A9); const GLenum WEIGHT_ARRAY_STRIDE_ARB = static_cast<GLenum>(0x86AA); const GLenum WEIGHT_ARRAY_SIZE_ARB = static_cast<GLenum>(0x86AB); const GLenum WEIGHT_ARRAY_POINTER_ARB = static_cast<GLenum>(0x86AC); const GLenum WEIGHT_ARRAY_ARB = static_cast<GLenum>(0x86AD); const GLenum MODELVIEW0_ARB = static_cast<GLenum>(0x1700); const GLenum MODELVIEW1_ARB = static_cast<GLenum>(0x850A); const GLenum MODELVIEW2_ARB = static_cast<GLenum>(0x8722); const GLenum MODELVIEW3_ARB = static_cast<GLenum>(0x8723); const GLenum MODELVIEW4_ARB = static_cast<GLenum>(0x8724); const GLenum MODELVIEW5_ARB = static_cast<GLenum>(0x8725); const GLenum MODELVIEW6_ARB = static_cast<GLenum>(0x8726); const GLenum MODELVIEW7_ARB = static_cast<GLenum>(0x8727); const GLenum MODELVIEW8_ARB = static_cast<GLenum>(0x8728); const GLenum MODELVIEW9_ARB = static_cast<GLenum>(0x8729); const GLenum MODELVIEW10_ARB = static_cast<GLenum>(0x872A); const GLenum MODELVIEW11_ARB = static_cast<GLenum>(0x872B); const GLenum MODELVIEW12_ARB = static_cast<GLenum>(0x872C); const GLenum MODELVIEW13_ARB = static_cast<GLenum>(0x872D); const GLenum MODELVIEW14_ARB = static_cast<GLenum>(0x872E); const GLenum MODELVIEW15_ARB = static_cast<GLenum>(0x872F); const GLenum MODELVIEW16_ARB = static_cast<GLenum>(0x8730); const GLenum MODELVIEW17_ARB = static_cast<GLenum>(0x8731); const GLenum MODELVIEW18_ARB = static_cast<GLenum>(0x8732); const GLenum MODELVIEW19_ARB = static_cast<GLenum>(0x8733); const GLenum MODELVIEW20_ARB = static_cast<GLenum>(0x8734); const GLenum MODELVIEW21_ARB = static_cast<GLenum>(0x8735); const GLenum MODELVIEW22_ARB = static_cast<GLenum>(0x8736); const GLenum MODELVIEW23_ARB = static_cast<GLenum>(0x8737); const GLenum MODELVIEW24_ARB = static_cast<GLenum>(0x8738); const GLenum MODELVIEW25_ARB = static_cast<GLenum>(0x8739); const GLenum MODELVIEW26_ARB = static_cast<GLenum>(0x873A); const GLenum MODELVIEW27_ARB = static_cast<GLenum>(0x873B); const GLenum MODELVIEW28_ARB = static_cast<GLenum>(0x873C); const GLenum MODELVIEW29_ARB = static_cast<GLenum>(0x873D); const GLenum MODELVIEW30_ARB = static_cast<GLenum>(0x873E); const GLenum MODELVIEW31_ARB = static_cast<GLenum>(0x873F); typedef void (APIENTRYP PFNGLWEIGHTBVARBPROC) (GLint size, const GLbyte *weights); typedef void (APIENTRYP PFNGLWEIGHTSVARBPROC) (GLint size, const GLshort *weights); typedef void (APIENTRYP PFNGLWEIGHTIVARBPROC) (GLint size, const GLint *weights); typedef void (APIENTRYP PFNGLWEIGHTFVARBPROC) (GLint size, const GLfloat *weights); typedef void (APIENTRYP PFNGLWEIGHTDVARBPROC) (GLint size, const GLdouble *weights); typedef void (APIENTRYP PFNGLWEIGHTUBVARBPROC) (GLint size, const GLubyte *weights); typedef void (APIENTRYP PFNGLWEIGHTUSVARBPROC) (GLint size, const GLushort *weights); typedef void (APIENTRYP PFNGLWEIGHTUIVARBPROC) (GLint size, const GLuint *weights); typedef void (APIENTRYP PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRYP PFNGLVERTEXBLENDARBPROC) (GLint count); extern VTK_RENDERING_EXPORT PFNGLWEIGHTBVARBPROC WeightbvARB; extern VTK_RENDERING_EXPORT PFNGLWEIGHTSVARBPROC WeightsvARB; extern VTK_RENDERING_EXPORT PFNGLWEIGHTIVARBPROC WeightivARB; extern VTK_RENDERING_EXPORT PFNGLWEIGHTFVARBPROC WeightfvARB; extern VTK_RENDERING_EXPORT PFNGLWEIGHTDVARBPROC WeightdvARB; extern VTK_RENDERING_EXPORT PFNGLWEIGHTUBVARBPROC WeightubvARB; extern VTK_RENDERING_EXPORT PFNGLWEIGHTUSVARBPROC WeightusvARB; extern VTK_RENDERING_EXPORT PFNGLWEIGHTUIVARBPROC WeightuivARB; extern VTK_RENDERING_EXPORT PFNGLWEIGHTPOINTERARBPROC WeightPointerARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXBLENDARBPROC VertexBlendARB; //Definitions for GL_ARB_matrix_palette const GLenum MATRIX_PALETTE_ARB = static_cast<GLenum>(0x8840); const GLenum MAX_MATRIX_PALETTE_STACK_DEPTH_ARB = static_cast<GLenum>(0x8841); const GLenum MAX_PALETTE_MATRICES_ARB = static_cast<GLenum>(0x8842); const GLenum CURRENT_PALETTE_MATRIX_ARB = static_cast<GLenum>(0x8843); const GLenum MATRIX_INDEX_ARRAY_ARB = static_cast<GLenum>(0x8844); const GLenum CURRENT_MATRIX_INDEX_ARB = static_cast<GLenum>(0x8845); const GLenum MATRIX_INDEX_ARRAY_SIZE_ARB = static_cast<GLenum>(0x8846); const GLenum MATRIX_INDEX_ARRAY_TYPE_ARB = static_cast<GLenum>(0x8847); const GLenum MATRIX_INDEX_ARRAY_STRIDE_ARB = static_cast<GLenum>(0x8848); const GLenum MATRIX_INDEX_ARRAY_POINTER_ARB = static_cast<GLenum>(0x8849); typedef void (APIENTRYP PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index); typedef void (APIENTRYP PFNGLMATRIXINDEXUBVARBPROC) (GLint size, const GLubyte *indices); typedef void (APIENTRYP PFNGLMATRIXINDEXUSVARBPROC) (GLint size, const GLushort *indices); typedef void (APIENTRYP PFNGLMATRIXINDEXUIVARBPROC) (GLint size, const GLuint *indices); typedef void (APIENTRYP PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); extern VTK_RENDERING_EXPORT PFNGLCURRENTPALETTEMATRIXARBPROC CurrentPaletteMatrixARB; extern VTK_RENDERING_EXPORT PFNGLMATRIXINDEXUBVARBPROC MatrixIndexubvARB; extern VTK_RENDERING_EXPORT PFNGLMATRIXINDEXUSVARBPROC MatrixIndexusvARB; extern VTK_RENDERING_EXPORT PFNGLMATRIXINDEXUIVARBPROC MatrixIndexuivARB; extern VTK_RENDERING_EXPORT PFNGLMATRIXINDEXPOINTERARBPROC MatrixIndexPointerARB; //Definitions for GL_ARB_texture_env_combine const GLenum COMBINE_ARB = static_cast<GLenum>(0x8570); const GLenum COMBINE_RGB_ARB = static_cast<GLenum>(0x8571); const GLenum COMBINE_ALPHA_ARB = static_cast<GLenum>(0x8572); const GLenum SOURCE0_RGB_ARB = static_cast<GLenum>(0x8580); const GLenum SOURCE1_RGB_ARB = static_cast<GLenum>(0x8581); const GLenum SOURCE2_RGB_ARB = static_cast<GLenum>(0x8582); const GLenum SOURCE0_ALPHA_ARB = static_cast<GLenum>(0x8588); const GLenum SOURCE1_ALPHA_ARB = static_cast<GLenum>(0x8589); const GLenum SOURCE2_ALPHA_ARB = static_cast<GLenum>(0x858A); const GLenum OPERAND0_RGB_ARB = static_cast<GLenum>(0x8590); const GLenum OPERAND1_RGB_ARB = static_cast<GLenum>(0x8591); const GLenum OPERAND2_RGB_ARB = static_cast<GLenum>(0x8592); const GLenum OPERAND0_ALPHA_ARB = static_cast<GLenum>(0x8598); const GLenum OPERAND1_ALPHA_ARB = static_cast<GLenum>(0x8599); const GLenum OPERAND2_ALPHA_ARB = static_cast<GLenum>(0x859A); const GLenum RGB_SCALE_ARB = static_cast<GLenum>(0x8573); const GLenum ADD_SIGNED_ARB = static_cast<GLenum>(0x8574); const GLenum INTERPOLATE_ARB = static_cast<GLenum>(0x8575); const GLenum SUBTRACT_ARB = static_cast<GLenum>(0x84E7); const GLenum CONSTANT_ARB = static_cast<GLenum>(0x8576); const GLenum PRIMARY_COLOR_ARB = static_cast<GLenum>(0x8577); const GLenum PREVIOUS_ARB = static_cast<GLenum>(0x8578); //Definitions for GL_ARB_texture_env_crossbar //Definitions for GL_ARB_texture_env_dot3 const GLenum DOT3_RGB_ARB = static_cast<GLenum>(0x86AE); const GLenum DOT3_RGBA_ARB = static_cast<GLenum>(0x86AF); //Definitions for GL_ARB_texture_mirrored_repeat const GLenum MIRRORED_REPEAT_ARB = static_cast<GLenum>(0x8370); //Definitions for GL_ARB_depth_texture const GLenum DEPTH_COMPONENT16_ARB = static_cast<GLenum>(0x81A5); const GLenum DEPTH_COMPONENT24_ARB = static_cast<GLenum>(0x81A6); const GLenum DEPTH_COMPONENT32_ARB = static_cast<GLenum>(0x81A7); const GLenum TEXTURE_DEPTH_SIZE_ARB = static_cast<GLenum>(0x884A); const GLenum DEPTH_TEXTURE_MODE_ARB = static_cast<GLenum>(0x884B); //Definitions for GL_ARB_shadow const GLenum TEXTURE_COMPARE_MODE_ARB = static_cast<GLenum>(0x884C); const GLenum TEXTURE_COMPARE_FUNC_ARB = static_cast<GLenum>(0x884D); const GLenum COMPARE_R_TO_TEXTURE_ARB = static_cast<GLenum>(0x884E); //Definitions for GL_ARB_shadow_ambient const GLenum TEXTURE_COMPARE_FAIL_VALUE_ARB = static_cast<GLenum>(0x80BF); //Definitions for GL_ARB_window_pos typedef void (APIENTRYP PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y); typedef void (APIENTRYP PFNGLWINDOWPOS2DVARBPROC) (const GLdouble *v); typedef void (APIENTRYP PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y); typedef void (APIENTRYP PFNGLWINDOWPOS2FVARBPROC) (const GLfloat *v); typedef void (APIENTRYP PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y); typedef void (APIENTRYP PFNGLWINDOWPOS2IVARBPROC) (const GLint *v); typedef void (APIENTRYP PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y); typedef void (APIENTRYP PFNGLWINDOWPOS2SVARBPROC) (const GLshort *v); typedef void (APIENTRYP PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRYP PFNGLWINDOWPOS3DVARBPROC) (const GLdouble *v); typedef void (APIENTRYP PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLWINDOWPOS3FVARBPROC) (const GLfloat *v); typedef void (APIENTRYP PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z); typedef void (APIENTRYP PFNGLWINDOWPOS3IVARBPROC) (const GLint *v); typedef void (APIENTRYP PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z); typedef void (APIENTRYP PFNGLWINDOWPOS3SVARBPROC) (const GLshort *v); extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2DARBPROC WindowPos2dARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2DVARBPROC WindowPos2dvARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2FARBPROC WindowPos2fARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2FVARBPROC WindowPos2fvARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2IARBPROC WindowPos2iARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2IVARBPROC WindowPos2ivARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2SARBPROC WindowPos2sARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2SVARBPROC WindowPos2svARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3DARBPROC WindowPos3dARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3DVARBPROC WindowPos3dvARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3FARBPROC WindowPos3fARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3FVARBPROC WindowPos3fvARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3IARBPROC WindowPos3iARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3IVARBPROC WindowPos3ivARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3SARBPROC WindowPos3sARB; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3SVARBPROC WindowPos3svARB; //Definitions for GL_ARB_vertex_program const GLenum COLOR_SUM_ARB = static_cast<GLenum>(0x8458); const GLenum VERTEX_PROGRAM_ARB = static_cast<GLenum>(0x8620); const GLenum VERTEX_ATTRIB_ARRAY_ENABLED_ARB = static_cast<GLenum>(0x8622); const GLenum VERTEX_ATTRIB_ARRAY_SIZE_ARB = static_cast<GLenum>(0x8623); const GLenum VERTEX_ATTRIB_ARRAY_STRIDE_ARB = static_cast<GLenum>(0x8624); const GLenum VERTEX_ATTRIB_ARRAY_TYPE_ARB = static_cast<GLenum>(0x8625); const GLenum CURRENT_VERTEX_ATTRIB_ARB = static_cast<GLenum>(0x8626); const GLenum PROGRAM_LENGTH_ARB = static_cast<GLenum>(0x8627); const GLenum PROGRAM_STRING_ARB = static_cast<GLenum>(0x8628); const GLenum MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = static_cast<GLenum>(0x862E); const GLenum MAX_PROGRAM_MATRICES_ARB = static_cast<GLenum>(0x862F); const GLenum CURRENT_MATRIX_STACK_DEPTH_ARB = static_cast<GLenum>(0x8640); const GLenum CURRENT_MATRIX_ARB = static_cast<GLenum>(0x8641); const GLenum VERTEX_PROGRAM_POINT_SIZE_ARB = static_cast<GLenum>(0x8642); const GLenum VERTEX_PROGRAM_TWO_SIDE_ARB = static_cast<GLenum>(0x8643); const GLenum VERTEX_ATTRIB_ARRAY_POINTER_ARB = static_cast<GLenum>(0x8645); const GLenum PROGRAM_ERROR_POSITION_ARB = static_cast<GLenum>(0x864B); const GLenum PROGRAM_BINDING_ARB = static_cast<GLenum>(0x8677); const GLenum MAX_VERTEX_ATTRIBS_ARB = static_cast<GLenum>(0x8869); const GLenum VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = static_cast<GLenum>(0x886A); const GLenum PROGRAM_ERROR_STRING_ARB = static_cast<GLenum>(0x8874); const GLenum PROGRAM_FORMAT_ASCII_ARB = static_cast<GLenum>(0x8875); const GLenum PROGRAM_FORMAT_ARB = static_cast<GLenum>(0x8876); const GLenum PROGRAM_INSTRUCTIONS_ARB = static_cast<GLenum>(0x88A0); const GLenum MAX_PROGRAM_INSTRUCTIONS_ARB = static_cast<GLenum>(0x88A1); const GLenum PROGRAM_NATIVE_INSTRUCTIONS_ARB = static_cast<GLenum>(0x88A2); const GLenum MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = static_cast<GLenum>(0x88A3); const GLenum PROGRAM_TEMPORARIES_ARB = static_cast<GLenum>(0x88A4); const GLenum MAX_PROGRAM_TEMPORARIES_ARB = static_cast<GLenum>(0x88A5); const GLenum PROGRAM_NATIVE_TEMPORARIES_ARB = static_cast<GLenum>(0x88A6); const GLenum MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = static_cast<GLenum>(0x88A7); const GLenum PROGRAM_PARAMETERS_ARB = static_cast<GLenum>(0x88A8); const GLenum MAX_PROGRAM_PARAMETERS_ARB = static_cast<GLenum>(0x88A9); const GLenum PROGRAM_NATIVE_PARAMETERS_ARB = static_cast<GLenum>(0x88AA); const GLenum MAX_PROGRAM_NATIVE_PARAMETERS_ARB = static_cast<GLenum>(0x88AB); const GLenum PROGRAM_ATTRIBS_ARB = static_cast<GLenum>(0x88AC); const GLenum MAX_PROGRAM_ATTRIBS_ARB = static_cast<GLenum>(0x88AD); const GLenum PROGRAM_NATIVE_ATTRIBS_ARB = static_cast<GLenum>(0x88AE); const GLenum MAX_PROGRAM_NATIVE_ATTRIBS_ARB = static_cast<GLenum>(0x88AF); const GLenum PROGRAM_ADDRESS_REGISTERS_ARB = static_cast<GLenum>(0x88B0); const GLenum MAX_PROGRAM_ADDRESS_REGISTERS_ARB = static_cast<GLenum>(0x88B1); const GLenum PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = static_cast<GLenum>(0x88B2); const GLenum MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = static_cast<GLenum>(0x88B3); const GLenum MAX_PROGRAM_LOCAL_PARAMETERS_ARB = static_cast<GLenum>(0x88B4); const GLenum MAX_PROGRAM_ENV_PARAMETERS_ARB = static_cast<GLenum>(0x88B5); const GLenum PROGRAM_UNDER_NATIVE_LIMITS_ARB = static_cast<GLenum>(0x88B6); const GLenum TRANSPOSE_CURRENT_MATRIX_ARB = static_cast<GLenum>(0x88B7); const GLenum MATRIX0_ARB = static_cast<GLenum>(0x88C0); const GLenum MATRIX1_ARB = static_cast<GLenum>(0x88C1); const GLenum MATRIX2_ARB = static_cast<GLenum>(0x88C2); const GLenum MATRIX3_ARB = static_cast<GLenum>(0x88C3); const GLenum MATRIX4_ARB = static_cast<GLenum>(0x88C4); const GLenum MATRIX5_ARB = static_cast<GLenum>(0x88C5); const GLenum MATRIX6_ARB = static_cast<GLenum>(0x88C6); const GLenum MATRIX7_ARB = static_cast<GLenum>(0x88C7); const GLenum MATRIX8_ARB = static_cast<GLenum>(0x88C8); const GLenum MATRIX9_ARB = static_cast<GLenum>(0x88C9); const GLenum MATRIX10_ARB = static_cast<GLenum>(0x88CA); const GLenum MATRIX11_ARB = static_cast<GLenum>(0x88CB); const GLenum MATRIX12_ARB = static_cast<GLenum>(0x88CC); const GLenum MATRIX13_ARB = static_cast<GLenum>(0x88CD); const GLenum MATRIX14_ARB = static_cast<GLenum>(0x88CE); const GLenum MATRIX15_ARB = static_cast<GLenum>(0x88CF); const GLenum MATRIX16_ARB = static_cast<GLenum>(0x88D0); const GLenum MATRIX17_ARB = static_cast<GLenum>(0x88D1); const GLenum MATRIX18_ARB = static_cast<GLenum>(0x88D2); const GLenum MATRIX19_ARB = static_cast<GLenum>(0x88D3); const GLenum MATRIX20_ARB = static_cast<GLenum>(0x88D4); const GLenum MATRIX21_ARB = static_cast<GLenum>(0x88D5); const GLenum MATRIX22_ARB = static_cast<GLenum>(0x88D6); const GLenum MATRIX23_ARB = static_cast<GLenum>(0x88D7); const GLenum MATRIX24_ARB = static_cast<GLenum>(0x88D8); const GLenum MATRIX25_ARB = static_cast<GLenum>(0x88D9); const GLenum MATRIX26_ARB = static_cast<GLenum>(0x88DA); const GLenum MATRIX27_ARB = static_cast<GLenum>(0x88DB); const GLenum MATRIX28_ARB = static_cast<GLenum>(0x88DC); const GLenum MATRIX29_ARB = static_cast<GLenum>(0x88DD); const GLenum MATRIX30_ARB = static_cast<GLenum>(0x88DE); const GLenum MATRIX31_ARB = static_cast<GLenum>(0x88DF); typedef void (APIENTRYP PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x); typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x); typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x); typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y); typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y); typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y); typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z); typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); typedef void (APIENTRYP PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const GLvoid *string); typedef void (APIENTRYP PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program); typedef void (APIENTRYP PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs); typedef void (APIENTRYP PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs); typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params); typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params); typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params); typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params); typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params); typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params); typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params); typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params); typedef void (APIENTRYP PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, GLvoid *string); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble *params); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, GLvoid* *pointer); typedef GLboolean (APIENTRYP PFNGLISPROGRAMARBPROC) (GLuint program); extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1DARBPROC VertexAttrib1dARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1DVARBPROC VertexAttrib1dvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1FARBPROC VertexAttrib1fARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1FVARBPROC VertexAttrib1fvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1SARBPROC VertexAttrib1sARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1SVARBPROC VertexAttrib1svARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2DARBPROC VertexAttrib2dARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2DVARBPROC VertexAttrib2dvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2FARBPROC VertexAttrib2fARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2FVARBPROC VertexAttrib2fvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2SARBPROC VertexAttrib2sARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2SVARBPROC VertexAttrib2svARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3DARBPROC VertexAttrib3dARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3DVARBPROC VertexAttrib3dvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3FARBPROC VertexAttrib3fARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3FVARBPROC VertexAttrib3fvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3SARBPROC VertexAttrib3sARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3SVARBPROC VertexAttrib3svARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4NBVARBPROC VertexAttrib4NbvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4NIVARBPROC VertexAttrib4NivARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4NSVARBPROC VertexAttrib4NsvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4NUBARBPROC VertexAttrib4NubARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4NUBVARBPROC VertexAttrib4NubvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4NUIVARBPROC VertexAttrib4NuivARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4NUSVARBPROC VertexAttrib4NusvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4BVARBPROC VertexAttrib4bvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4DARBPROC VertexAttrib4dARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4DVARBPROC VertexAttrib4dvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4FARBPROC VertexAttrib4fARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4FVARBPROC VertexAttrib4fvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4IVARBPROC VertexAttrib4ivARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4SARBPROC VertexAttrib4sARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4SVARBPROC VertexAttrib4svARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4UBVARBPROC VertexAttrib4ubvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4UIVARBPROC VertexAttrib4uivARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4USVARBPROC VertexAttrib4usvARB; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBPOINTERARBPROC VertexAttribPointerARB; extern VTK_RENDERING_EXPORT PFNGLENABLEVERTEXATTRIBARRAYARBPROC EnableVertexAttribArrayARB; extern VTK_RENDERING_EXPORT PFNGLDISABLEVERTEXATTRIBARRAYARBPROC DisableVertexAttribArrayARB; extern VTK_RENDERING_EXPORT PFNGLPROGRAMSTRINGARBPROC ProgramStringARB; extern VTK_RENDERING_EXPORT PFNGLBINDPROGRAMARBPROC BindProgramARB; extern VTK_RENDERING_EXPORT PFNGLDELETEPROGRAMSARBPROC DeleteProgramsARB; extern VTK_RENDERING_EXPORT PFNGLGENPROGRAMSARBPROC GenProgramsARB; extern VTK_RENDERING_EXPORT PFNGLPROGRAMENVPARAMETER4DARBPROC ProgramEnvParameter4dARB; extern VTK_RENDERING_EXPORT PFNGLPROGRAMENVPARAMETER4DVARBPROC ProgramEnvParameter4dvARB; extern VTK_RENDERING_EXPORT PFNGLPROGRAMENVPARAMETER4FARBPROC ProgramEnvParameter4fARB; extern VTK_RENDERING_EXPORT PFNGLPROGRAMENVPARAMETER4FVARBPROC ProgramEnvParameter4fvARB; extern VTK_RENDERING_EXPORT PFNGLPROGRAMLOCALPARAMETER4DARBPROC ProgramLocalParameter4dARB; extern VTK_RENDERING_EXPORT PFNGLPROGRAMLOCALPARAMETER4DVARBPROC ProgramLocalParameter4dvARB; extern VTK_RENDERING_EXPORT PFNGLPROGRAMLOCALPARAMETER4FARBPROC ProgramLocalParameter4fARB; extern VTK_RENDERING_EXPORT PFNGLPROGRAMLOCALPARAMETER4FVARBPROC ProgramLocalParameter4fvARB; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMENVPARAMETERDVARBPROC GetProgramEnvParameterdvARB; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMENVPARAMETERFVARBPROC GetProgramEnvParameterfvARB; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC GetProgramLocalParameterdvARB; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC GetProgramLocalParameterfvARB; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMIVARBPROC GetProgramivARB; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMSTRINGARBPROC GetProgramStringARB; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBDVARBPROC GetVertexAttribdvARB; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBFVARBPROC GetVertexAttribfvARB; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBIVARBPROC GetVertexAttribivARB; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBPOINTERVARBPROC GetVertexAttribPointervARB; extern VTK_RENDERING_EXPORT PFNGLISPROGRAMARBPROC IsProgramARB; //Definitions for GL_ARB_fragment_program const GLenum FRAGMENT_PROGRAM_ARB = static_cast<GLenum>(0x8804); const GLenum PROGRAM_ALU_INSTRUCTIONS_ARB = static_cast<GLenum>(0x8805); const GLenum PROGRAM_TEX_INSTRUCTIONS_ARB = static_cast<GLenum>(0x8806); const GLenum PROGRAM_TEX_INDIRECTIONS_ARB = static_cast<GLenum>(0x8807); const GLenum PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = static_cast<GLenum>(0x8808); const GLenum PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = static_cast<GLenum>(0x8809); const GLenum PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = static_cast<GLenum>(0x880A); const GLenum MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = static_cast<GLenum>(0x880B); const GLenum MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = static_cast<GLenum>(0x880C); const GLenum MAX_PROGRAM_TEX_INDIRECTIONS_ARB = static_cast<GLenum>(0x880D); const GLenum MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = static_cast<GLenum>(0x880E); const GLenum MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = static_cast<GLenum>(0x880F); const GLenum MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = static_cast<GLenum>(0x8810); const GLenum MAX_TEXTURE_COORDS_ARB = static_cast<GLenum>(0x8871); const GLenum MAX_TEXTURE_IMAGE_UNITS_ARB = static_cast<GLenum>(0x8872); //Definitions for GL_ARB_vertex_buffer_object const GLenum BUFFER_SIZE_ARB = static_cast<GLenum>(0x8764); const GLenum BUFFER_USAGE_ARB = static_cast<GLenum>(0x8765); const GLenum ARRAY_BUFFER_ARB = static_cast<GLenum>(0x8892); const GLenum ELEMENT_ARRAY_BUFFER_ARB = static_cast<GLenum>(0x8893); const GLenum ARRAY_BUFFER_BINDING_ARB = static_cast<GLenum>(0x8894); const GLenum ELEMENT_ARRAY_BUFFER_BINDING_ARB = static_cast<GLenum>(0x8895); const GLenum VERTEX_ARRAY_BUFFER_BINDING_ARB = static_cast<GLenum>(0x8896); const GLenum NORMAL_ARRAY_BUFFER_BINDING_ARB = static_cast<GLenum>(0x8897); const GLenum COLOR_ARRAY_BUFFER_BINDING_ARB = static_cast<GLenum>(0x8898); const GLenum INDEX_ARRAY_BUFFER_BINDING_ARB = static_cast<GLenum>(0x8899); const GLenum TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB = static_cast<GLenum>(0x889A); const GLenum EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB = static_cast<GLenum>(0x889B); const GLenum SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB = static_cast<GLenum>(0x889C); const GLenum FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB = static_cast<GLenum>(0x889D); const GLenum WEIGHT_ARRAY_BUFFER_BINDING_ARB = static_cast<GLenum>(0x889E); const GLenum VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB = static_cast<GLenum>(0x889F); const GLenum READ_ONLY_ARB = static_cast<GLenum>(0x88B8); const GLenum WRITE_ONLY_ARB = static_cast<GLenum>(0x88B9); const GLenum READ_WRITE_ARB = static_cast<GLenum>(0x88BA); const GLenum BUFFER_ACCESS_ARB = static_cast<GLenum>(0x88BB); const GLenum BUFFER_MAPPED_ARB = static_cast<GLenum>(0x88BC); const GLenum BUFFER_MAP_POINTER_ARB = static_cast<GLenum>(0x88BD); const GLenum STREAM_DRAW_ARB = static_cast<GLenum>(0x88E0); const GLenum STREAM_READ_ARB = static_cast<GLenum>(0x88E1); const GLenum STREAM_COPY_ARB = static_cast<GLenum>(0x88E2); const GLenum STATIC_DRAW_ARB = static_cast<GLenum>(0x88E4); const GLenum STATIC_READ_ARB = static_cast<GLenum>(0x88E5); const GLenum STATIC_COPY_ARB = static_cast<GLenum>(0x88E6); const GLenum DYNAMIC_DRAW_ARB = static_cast<GLenum>(0x88E8); const GLenum DYNAMIC_READ_ARB = static_cast<GLenum>(0x88E9); const GLenum DYNAMIC_COPY_ARB = static_cast<GLenum>(0x88EA); typedef ptrdiff_t GLintptrARB; typedef ptrdiff_t GLsizeiptrARB; typedef void (APIENTRYP PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer); typedef void (APIENTRYP PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint *buffers); typedef void (APIENTRYP PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint *buffers); typedef GLboolean (APIENTRYP PFNGLISBUFFERARBPROC) (GLuint buffer); typedef void (APIENTRYP PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage); typedef void (APIENTRYP PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data); typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data); typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access); typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERARBPROC) (GLenum target); typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, GLvoid* *params); extern VTK_RENDERING_EXPORT PFNGLBINDBUFFERARBPROC BindBufferARB; extern VTK_RENDERING_EXPORT PFNGLDELETEBUFFERSARBPROC DeleteBuffersARB; extern VTK_RENDERING_EXPORT PFNGLGENBUFFERSARBPROC GenBuffersARB; extern VTK_RENDERING_EXPORT PFNGLISBUFFERARBPROC IsBufferARB; extern VTK_RENDERING_EXPORT PFNGLBUFFERDATAARBPROC BufferDataARB; extern VTK_RENDERING_EXPORT PFNGLBUFFERSUBDATAARBPROC BufferSubDataARB; extern VTK_RENDERING_EXPORT PFNGLGETBUFFERSUBDATAARBPROC GetBufferSubDataARB; extern VTK_RENDERING_EXPORT PFNGLMAPBUFFERARBPROC MapBufferARB; extern VTK_RENDERING_EXPORT PFNGLUNMAPBUFFERARBPROC UnmapBufferARB; extern VTK_RENDERING_EXPORT PFNGLGETBUFFERPARAMETERIVARBPROC GetBufferParameterivARB; extern VTK_RENDERING_EXPORT PFNGLGETBUFFERPOINTERVARBPROC GetBufferPointervARB; //Definitions for GL_ARB_occlusion_query const GLenum QUERY_COUNTER_BITS_ARB = static_cast<GLenum>(0x8864); const GLenum CURRENT_QUERY_ARB = static_cast<GLenum>(0x8865); const GLenum QUERY_RESULT_ARB = static_cast<GLenum>(0x8866); const GLenum QUERY_RESULT_AVAILABLE_ARB = static_cast<GLenum>(0x8867); const GLenum SAMPLES_PASSED_ARB = static_cast<GLenum>(0x8914); typedef void (APIENTRYP PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint *ids); typedef void (APIENTRYP PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint *ids); typedef GLboolean (APIENTRYP PFNGLISQUERYARBPROC) (GLuint id); typedef void (APIENTRYP PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id); typedef void (APIENTRYP PFNGLENDQUERYARBPROC) (GLenum target); typedef void (APIENTRYP PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint *params); extern VTK_RENDERING_EXPORT PFNGLGENQUERIESARBPROC GenQueriesARB; extern VTK_RENDERING_EXPORT PFNGLDELETEQUERIESARBPROC DeleteQueriesARB; extern VTK_RENDERING_EXPORT PFNGLISQUERYARBPROC IsQueryARB; extern VTK_RENDERING_EXPORT PFNGLBEGINQUERYARBPROC BeginQueryARB; extern VTK_RENDERING_EXPORT PFNGLENDQUERYARBPROC EndQueryARB; extern VTK_RENDERING_EXPORT PFNGLGETQUERYIVARBPROC GetQueryivARB; extern VTK_RENDERING_EXPORT PFNGLGETQUERYOBJECTIVARBPROC GetQueryObjectivARB; extern VTK_RENDERING_EXPORT PFNGLGETQUERYOBJECTUIVARBPROC GetQueryObjectuivARB; //Definitions for GL_ARB_shader_objects const GLenum PROGRAM_OBJECT_ARB = static_cast<GLenum>(0x8B40); const GLenum SHADER_OBJECT_ARB = static_cast<GLenum>(0x8B48); const GLenum OBJECT_TYPE_ARB = static_cast<GLenum>(0x8B4E); const GLenum OBJECT_SUBTYPE_ARB = static_cast<GLenum>(0x8B4F); const GLenum FLOAT_VEC2_ARB = static_cast<GLenum>(0x8B50); const GLenum FLOAT_VEC3_ARB = static_cast<GLenum>(0x8B51); const GLenum FLOAT_VEC4_ARB = static_cast<GLenum>(0x8B52); const GLenum INT_VEC2_ARB = static_cast<GLenum>(0x8B53); const GLenum INT_VEC3_ARB = static_cast<GLenum>(0x8B54); const GLenum INT_VEC4_ARB = static_cast<GLenum>(0x8B55); const GLenum BOOL_ARB = static_cast<GLenum>(0x8B56); const GLenum BOOL_VEC2_ARB = static_cast<GLenum>(0x8B57); const GLenum BOOL_VEC3_ARB = static_cast<GLenum>(0x8B58); const GLenum BOOL_VEC4_ARB = static_cast<GLenum>(0x8B59); const GLenum FLOAT_MAT2_ARB = static_cast<GLenum>(0x8B5A); const GLenum FLOAT_MAT3_ARB = static_cast<GLenum>(0x8B5B); const GLenum FLOAT_MAT4_ARB = static_cast<GLenum>(0x8B5C); const GLenum SAMPLER_1D_ARB = static_cast<GLenum>(0x8B5D); const GLenum SAMPLER_2D_ARB = static_cast<GLenum>(0x8B5E); const GLenum SAMPLER_3D_ARB = static_cast<GLenum>(0x8B5F); const GLenum SAMPLER_CUBE_ARB = static_cast<GLenum>(0x8B60); const GLenum SAMPLER_1D_SHADOW_ARB = static_cast<GLenum>(0x8B61); const GLenum SAMPLER_2D_SHADOW_ARB = static_cast<GLenum>(0x8B62); const GLenum SAMPLER_2D_RECT_ARB = static_cast<GLenum>(0x8B63); const GLenum SAMPLER_2D_RECT_SHADOW_ARB = static_cast<GLenum>(0x8B64); const GLenum OBJECT_DELETE_STATUS_ARB = static_cast<GLenum>(0x8B80); const GLenum OBJECT_COMPILE_STATUS_ARB = static_cast<GLenum>(0x8B81); const GLenum OBJECT_LINK_STATUS_ARB = static_cast<GLenum>(0x8B82); const GLenum OBJECT_VALIDATE_STATUS_ARB = static_cast<GLenum>(0x8B83); const GLenum OBJECT_INFO_LOG_LENGTH_ARB = static_cast<GLenum>(0x8B84); const GLenum OBJECT_ATTACHED_OBJECTS_ARB = static_cast<GLenum>(0x8B85); const GLenum OBJECT_ACTIVE_UNIFORMS_ARB = static_cast<GLenum>(0x8B86); const GLenum OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = static_cast<GLenum>(0x8B87); const GLenum OBJECT_SHADER_SOURCE_LENGTH_ARB = static_cast<GLenum>(0x8B88); typedef char GLcharARB; typedef unsigned int GLhandleARB; typedef void (APIENTRYP PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj); typedef GLhandleARB (APIENTRYP PFNGLGETHANDLEARBPROC) (GLenum pname); typedef void (APIENTRYP PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj); typedef GLhandleARB (APIENTRYP PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType); typedef void (APIENTRYP PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB* *string, const GLint *length); typedef void (APIENTRYP PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj); typedef GLhandleARB (APIENTRYP PFNGLCREATEPROGRAMOBJECTARBPROC) (void); typedef void (APIENTRYP PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj); typedef void (APIENTRYP PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj); typedef void (APIENTRYP PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj); typedef void (APIENTRYP PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj); typedef void (APIENTRYP PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0); typedef void (APIENTRYP PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1); typedef void (APIENTRYP PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); typedef void (APIENTRYP PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); typedef void (APIENTRYP PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0); typedef void (APIENTRYP PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1); typedef void (APIENTRYP PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2); typedef void (APIENTRYP PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); typedef void (APIENTRYP PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint *value); typedef void (APIENTRYP PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint *value); typedef void (APIENTRYP PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint *value); typedef void (APIENTRYP PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog); typedef void (APIENTRYP PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj); typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name); typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); typedef void (APIENTRYP PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat *params); typedef void (APIENTRYP PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint *params); typedef void (APIENTRYP PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source); extern VTK_RENDERING_EXPORT PFNGLDELETEOBJECTARBPROC DeleteObjectARB; extern VTK_RENDERING_EXPORT PFNGLGETHANDLEARBPROC GetHandleARB; extern VTK_RENDERING_EXPORT PFNGLDETACHOBJECTARBPROC DetachObjectARB; extern VTK_RENDERING_EXPORT PFNGLCREATESHADEROBJECTARBPROC CreateShaderObjectARB; extern VTK_RENDERING_EXPORT PFNGLSHADERSOURCEARBPROC ShaderSourceARB; extern VTK_RENDERING_EXPORT PFNGLCOMPILESHADERARBPROC CompileShaderARB; extern VTK_RENDERING_EXPORT PFNGLCREATEPROGRAMOBJECTARBPROC CreateProgramObjectARB; extern VTK_RENDERING_EXPORT PFNGLATTACHOBJECTARBPROC AttachObjectARB; extern VTK_RENDERING_EXPORT PFNGLLINKPROGRAMARBPROC LinkProgramARB; extern VTK_RENDERING_EXPORT PFNGLUSEPROGRAMOBJECTARBPROC UseProgramObjectARB; extern VTK_RENDERING_EXPORT PFNGLVALIDATEPROGRAMARBPROC ValidateProgramARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM1FARBPROC Uniform1fARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM2FARBPROC Uniform2fARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM3FARBPROC Uniform3fARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM4FARBPROC Uniform4fARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM1IARBPROC Uniform1iARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM2IARBPROC Uniform2iARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM3IARBPROC Uniform3iARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM4IARBPROC Uniform4iARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM1FVARBPROC Uniform1fvARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM2FVARBPROC Uniform2fvARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM3FVARBPROC Uniform3fvARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM4FVARBPROC Uniform4fvARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM1IVARBPROC Uniform1ivARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM2IVARBPROC Uniform2ivARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM3IVARBPROC Uniform3ivARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORM4IVARBPROC Uniform4ivARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX2FVARBPROC UniformMatrix2fvARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX3FVARBPROC UniformMatrix3fvARB; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX4FVARBPROC UniformMatrix4fvARB; extern VTK_RENDERING_EXPORT PFNGLGETOBJECTPARAMETERFVARBPROC GetObjectParameterfvARB; extern VTK_RENDERING_EXPORT PFNGLGETOBJECTPARAMETERIVARBPROC GetObjectParameterivARB; extern VTK_RENDERING_EXPORT PFNGLGETINFOLOGARBPROC GetInfoLogARB; extern VTK_RENDERING_EXPORT PFNGLGETATTACHEDOBJECTSARBPROC GetAttachedObjectsARB; extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMLOCATIONARBPROC GetUniformLocationARB; extern VTK_RENDERING_EXPORT PFNGLGETACTIVEUNIFORMARBPROC GetActiveUniformARB; extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMFVARBPROC GetUniformfvARB; extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMIVARBPROC GetUniformivARB; extern VTK_RENDERING_EXPORT PFNGLGETSHADERSOURCEARBPROC GetShaderSourceARB; //Definitions for GL_ARB_vertex_shader const GLenum VERTEX_SHADER_ARB = static_cast<GLenum>(0x8B31); const GLenum MAX_VERTEX_UNIFORM_COMPONENTS_ARB = static_cast<GLenum>(0x8B4A); const GLenum MAX_VARYING_FLOATS_ARB = static_cast<GLenum>(0x8B4B); const GLenum MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = static_cast<GLenum>(0x8B4C); const GLenum MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB = static_cast<GLenum>(0x8B4D); const GLenum OBJECT_ACTIVE_ATTRIBUTES_ARB = static_cast<GLenum>(0x8B89); const GLenum OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB = static_cast<GLenum>(0x8B8A); typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB *name); typedef void (APIENTRYP PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name); extern VTK_RENDERING_EXPORT PFNGLBINDATTRIBLOCATIONARBPROC BindAttribLocationARB; extern VTK_RENDERING_EXPORT PFNGLGETACTIVEATTRIBARBPROC GetActiveAttribARB; extern VTK_RENDERING_EXPORT PFNGLGETATTRIBLOCATIONARBPROC GetAttribLocationARB; //Definitions for GL_ARB_fragment_shader const GLenum FRAGMENT_SHADER_ARB = static_cast<GLenum>(0x8B30); const GLenum MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = static_cast<GLenum>(0x8B49); const GLenum FRAGMENT_SHADER_DERIVATIVE_HINT_ARB = static_cast<GLenum>(0x8B8B); //Definitions for GL_ARB_shading_language_100 const GLenum SHADING_LANGUAGE_VERSION_ARB = static_cast<GLenum>(0x8B8C); //Definitions for GL_ARB_texture_non_power_of_two //Definitions for GL_ARB_point_sprite const GLenum POINT_SPRITE_ARB = static_cast<GLenum>(0x8861); const GLenum COORD_REPLACE_ARB = static_cast<GLenum>(0x8862); //Definitions for GL_ARB_fragment_program_shadow //Definitions for GL_ARB_draw_buffers const GLenum MAX_DRAW_BUFFERS_ARB = static_cast<GLenum>(0x8824); const GLenum DRAW_BUFFER0_ARB = static_cast<GLenum>(0x8825); const GLenum DRAW_BUFFER1_ARB = static_cast<GLenum>(0x8826); const GLenum DRAW_BUFFER2_ARB = static_cast<GLenum>(0x8827); const GLenum DRAW_BUFFER3_ARB = static_cast<GLenum>(0x8828); const GLenum DRAW_BUFFER4_ARB = static_cast<GLenum>(0x8829); const GLenum DRAW_BUFFER5_ARB = static_cast<GLenum>(0x882A); const GLenum DRAW_BUFFER6_ARB = static_cast<GLenum>(0x882B); const GLenum DRAW_BUFFER7_ARB = static_cast<GLenum>(0x882C); const GLenum DRAW_BUFFER8_ARB = static_cast<GLenum>(0x882D); const GLenum DRAW_BUFFER9_ARB = static_cast<GLenum>(0x882E); const GLenum DRAW_BUFFER10_ARB = static_cast<GLenum>(0x882F); const GLenum DRAW_BUFFER11_ARB = static_cast<GLenum>(0x8830); const GLenum DRAW_BUFFER12_ARB = static_cast<GLenum>(0x8831); const GLenum DRAW_BUFFER13_ARB = static_cast<GLenum>(0x8832); const GLenum DRAW_BUFFER14_ARB = static_cast<GLenum>(0x8833); const GLenum DRAW_BUFFER15_ARB = static_cast<GLenum>(0x8834); typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs); extern VTK_RENDERING_EXPORT PFNGLDRAWBUFFERSARBPROC DrawBuffersARB; //Definitions for GL_ARB_texture_rectangle const GLenum TEXTURE_RECTANGLE_ARB = static_cast<GLenum>(0x84F5); const GLenum TEXTURE_BINDING_RECTANGLE_ARB = static_cast<GLenum>(0x84F6); const GLenum PROXY_TEXTURE_RECTANGLE_ARB = static_cast<GLenum>(0x84F7); const GLenum MAX_RECTANGLE_TEXTURE_SIZE_ARB = static_cast<GLenum>(0x84F8); //Definitions for GL_ARB_color_buffer_float const GLenum RGBA_FLOAT_MODE_ARB = static_cast<GLenum>(0x8820); const GLenum CLAMP_VERTEX_COLOR_ARB = static_cast<GLenum>(0x891A); const GLenum CLAMP_FRAGMENT_COLOR_ARB = static_cast<GLenum>(0x891B); const GLenum CLAMP_READ_COLOR_ARB = static_cast<GLenum>(0x891C); const GLenum FIXED_ONLY_ARB = static_cast<GLenum>(0x891D); typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp); extern VTK_RENDERING_EXPORT PFNGLCLAMPCOLORARBPROC ClampColorARB; //Definitions for GL_ARB_half_float_pixel const GLenum HALF_FLOAT_ARB = static_cast<GLenum>(0x140B); typedef unsigned short GLhalfARB; //Definitions for GL_ARB_texture_float const GLenum TEXTURE_RED_TYPE_ARB = static_cast<GLenum>(0x8C10); const GLenum TEXTURE_GREEN_TYPE_ARB = static_cast<GLenum>(0x8C11); const GLenum TEXTURE_BLUE_TYPE_ARB = static_cast<GLenum>(0x8C12); const GLenum TEXTURE_ALPHA_TYPE_ARB = static_cast<GLenum>(0x8C13); const GLenum TEXTURE_LUMINANCE_TYPE_ARB = static_cast<GLenum>(0x8C14); const GLenum TEXTURE_INTENSITY_TYPE_ARB = static_cast<GLenum>(0x8C15); const GLenum TEXTURE_DEPTH_TYPE_ARB = static_cast<GLenum>(0x8C16); const GLenum UNSIGNED_NORMALIZED_ARB = static_cast<GLenum>(0x8C17); const GLenum RGBA32F_ARB = static_cast<GLenum>(0x8814); const GLenum RGB32F_ARB = static_cast<GLenum>(0x8815); const GLenum ALPHA32F_ARB = static_cast<GLenum>(0x8816); const GLenum INTENSITY32F_ARB = static_cast<GLenum>(0x8817); const GLenum LUMINANCE32F_ARB = static_cast<GLenum>(0x8818); const GLenum LUMINANCE_ALPHA32F_ARB = static_cast<GLenum>(0x8819); const GLenum RGBA16F_ARB = static_cast<GLenum>(0x881A); const GLenum RGB16F_ARB = static_cast<GLenum>(0x881B); const GLenum ALPHA16F_ARB = static_cast<GLenum>(0x881C); const GLenum INTENSITY16F_ARB = static_cast<GLenum>(0x881D); const GLenum LUMINANCE16F_ARB = static_cast<GLenum>(0x881E); const GLenum LUMINANCE_ALPHA16F_ARB = static_cast<GLenum>(0x881F); //Definitions for GL_ARB_pixel_buffer_object const GLenum PIXEL_PACK_BUFFER_ARB = static_cast<GLenum>(0x88EB); const GLenum PIXEL_UNPACK_BUFFER_ARB = static_cast<GLenum>(0x88EC); const GLenum PIXEL_PACK_BUFFER_BINDING_ARB = static_cast<GLenum>(0x88ED); const GLenum PIXEL_UNPACK_BUFFER_BINDING_ARB = static_cast<GLenum>(0x88EF); //Definitions for GL_ARB_depth_buffer_float const GLenum DEPTH_COMPONENT32F = static_cast<GLenum>(0x8CAC); const GLenum DEPTH32F_STENCIL8 = static_cast<GLenum>(0x8CAD); const GLenum FLOAT_32_UNSIGNED_INT_24_8_REV = static_cast<GLenum>(0x8DAD); //Definitions for GL_ARB_draw_instanced typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount); typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount); extern VTK_RENDERING_EXPORT PFNGLDRAWARRAYSINSTANCEDARBPROC DrawArraysInstancedARB; extern VTK_RENDERING_EXPORT PFNGLDRAWELEMENTSINSTANCEDARBPROC DrawElementsInstancedARB; //Definitions for GL_ARB_framebuffer_object const GLenum INVALID_FRAMEBUFFER_OPERATION = static_cast<GLenum>(0x0506); const GLenum FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = static_cast<GLenum>(0x8210); const GLenum FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = static_cast<GLenum>(0x8211); const GLenum FRAMEBUFFER_ATTACHMENT_RED_SIZE = static_cast<GLenum>(0x8212); const GLenum FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = static_cast<GLenum>(0x8213); const GLenum FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = static_cast<GLenum>(0x8214); const GLenum FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = static_cast<GLenum>(0x8215); const GLenum FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = static_cast<GLenum>(0x8216); const GLenum FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = static_cast<GLenum>(0x8217); const GLenum FRAMEBUFFER_DEFAULT = static_cast<GLenum>(0x8218); const GLenum FRAMEBUFFER_UNDEFINED = static_cast<GLenum>(0x8219); const GLenum DEPTH_STENCIL_ATTACHMENT = static_cast<GLenum>(0x821A); const GLenum MAX_RENDERBUFFER_SIZE = static_cast<GLenum>(0x84E8); const GLenum DEPTH_STENCIL = static_cast<GLenum>(0x84F9); const GLenum UNSIGNED_INT_24_8 = static_cast<GLenum>(0x84FA); const GLenum DEPTH24_STENCIL8 = static_cast<GLenum>(0x88F0); const GLenum TEXTURE_STENCIL_SIZE = static_cast<GLenum>(0x88F1); const GLenum TEXTURE_RED_TYPE = static_cast<GLenum>(0x8C10); const GLenum TEXTURE_GREEN_TYPE = static_cast<GLenum>(0x8C11); const GLenum TEXTURE_BLUE_TYPE = static_cast<GLenum>(0x8C12); const GLenum TEXTURE_ALPHA_TYPE = static_cast<GLenum>(0x8C13); const GLenum TEXTURE_DEPTH_TYPE = static_cast<GLenum>(0x8C16); const GLenum UNSIGNED_NORMALIZED = static_cast<GLenum>(0x8C17); const GLenum FRAMEBUFFER_BINDING = static_cast<GLenum>(0x8CA6); const GLenum DRAW_FRAMEBUFFER_BINDING = static_cast<GLenum>(0x8CA6); const GLenum RENDERBUFFER_BINDING = static_cast<GLenum>(0x8CA7); const GLenum READ_FRAMEBUFFER = static_cast<GLenum>(0x8CA8); const GLenum DRAW_FRAMEBUFFER = static_cast<GLenum>(0x8CA9); const GLenum READ_FRAMEBUFFER_BINDING = static_cast<GLenum>(0x8CAA); const GLenum RENDERBUFFER_SAMPLES = static_cast<GLenum>(0x8CAB); const GLenum FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = static_cast<GLenum>(0x8CD0); const GLenum FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = static_cast<GLenum>(0x8CD1); const GLenum FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = static_cast<GLenum>(0x8CD2); const GLenum FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = static_cast<GLenum>(0x8CD3); const GLenum FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = static_cast<GLenum>(0x8CD4); const GLenum FRAMEBUFFER_COMPLETE = static_cast<GLenum>(0x8CD5); const GLenum FRAMEBUFFER_INCOMPLETE_ATTACHMENT = static_cast<GLenum>(0x8CD6); const GLenum FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = static_cast<GLenum>(0x8CD7); const GLenum FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = static_cast<GLenum>(0x8CDB); const GLenum FRAMEBUFFER_INCOMPLETE_READ_BUFFER = static_cast<GLenum>(0x8CDC); const GLenum FRAMEBUFFER_UNSUPPORTED = static_cast<GLenum>(0x8CDD); const GLenum MAX_COLOR_ATTACHMENTS = static_cast<GLenum>(0x8CDF); const GLenum COLOR_ATTACHMENT0 = static_cast<GLenum>(0x8CE0); const GLenum COLOR_ATTACHMENT1 = static_cast<GLenum>(0x8CE1); const GLenum COLOR_ATTACHMENT2 = static_cast<GLenum>(0x8CE2); const GLenum COLOR_ATTACHMENT3 = static_cast<GLenum>(0x8CE3); const GLenum COLOR_ATTACHMENT4 = static_cast<GLenum>(0x8CE4); const GLenum COLOR_ATTACHMENT5 = static_cast<GLenum>(0x8CE5); const GLenum COLOR_ATTACHMENT6 = static_cast<GLenum>(0x8CE6); const GLenum COLOR_ATTACHMENT7 = static_cast<GLenum>(0x8CE7); const GLenum COLOR_ATTACHMENT8 = static_cast<GLenum>(0x8CE8); const GLenum COLOR_ATTACHMENT9 = static_cast<GLenum>(0x8CE9); const GLenum COLOR_ATTACHMENT10 = static_cast<GLenum>(0x8CEA); const GLenum COLOR_ATTACHMENT11 = static_cast<GLenum>(0x8CEB); const GLenum COLOR_ATTACHMENT12 = static_cast<GLenum>(0x8CEC); const GLenum COLOR_ATTACHMENT13 = static_cast<GLenum>(0x8CED); const GLenum COLOR_ATTACHMENT14 = static_cast<GLenum>(0x8CEE); const GLenum COLOR_ATTACHMENT15 = static_cast<GLenum>(0x8CEF); const GLenum DEPTH_ATTACHMENT = static_cast<GLenum>(0x8D00); const GLenum STENCIL_ATTACHMENT = static_cast<GLenum>(0x8D20); const GLenum FRAMEBUFFER = static_cast<GLenum>(0x8D40); const GLenum RENDERBUFFER = static_cast<GLenum>(0x8D41); const GLenum RENDERBUFFER_WIDTH = static_cast<GLenum>(0x8D42); const GLenum RENDERBUFFER_HEIGHT = static_cast<GLenum>(0x8D43); const GLenum RENDERBUFFER_INTERNAL_FORMAT = static_cast<GLenum>(0x8D44); const GLenum STENCIL_INDEX1 = static_cast<GLenum>(0x8D46); const GLenum STENCIL_INDEX4 = static_cast<GLenum>(0x8D47); const GLenum STENCIL_INDEX8 = static_cast<GLenum>(0x8D48); const GLenum STENCIL_INDEX16 = static_cast<GLenum>(0x8D49); const GLenum RENDERBUFFER_RED_SIZE = static_cast<GLenum>(0x8D50); const GLenum RENDERBUFFER_GREEN_SIZE = static_cast<GLenum>(0x8D51); const GLenum RENDERBUFFER_BLUE_SIZE = static_cast<GLenum>(0x8D52); const GLenum RENDERBUFFER_ALPHA_SIZE = static_cast<GLenum>(0x8D53); const GLenum RENDERBUFFER_DEPTH_SIZE = static_cast<GLenum>(0x8D54); const GLenum RENDERBUFFER_STENCIL_SIZE = static_cast<GLenum>(0x8D55); const GLenum FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = static_cast<GLenum>(0x8D56); const GLenum MAX_SAMPLES = static_cast<GLenum>(0x8D57); typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer); typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer); typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers); typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers); typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer); typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer); typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers); typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers); typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target); typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target); typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); extern VTK_RENDERING_EXPORT PFNGLISRENDERBUFFERPROC IsRenderbuffer; extern VTK_RENDERING_EXPORT PFNGLBINDRENDERBUFFERPROC BindRenderbuffer; extern VTK_RENDERING_EXPORT PFNGLDELETERENDERBUFFERSPROC DeleteRenderbuffers; extern VTK_RENDERING_EXPORT PFNGLGENRENDERBUFFERSPROC GenRenderbuffers; extern VTK_RENDERING_EXPORT PFNGLRENDERBUFFERSTORAGEPROC RenderbufferStorage; extern VTK_RENDERING_EXPORT PFNGLGETRENDERBUFFERPARAMETERIVPROC GetRenderbufferParameteriv; extern VTK_RENDERING_EXPORT PFNGLISFRAMEBUFFERPROC IsFramebuffer; extern VTK_RENDERING_EXPORT PFNGLBINDFRAMEBUFFERPROC BindFramebuffer; extern VTK_RENDERING_EXPORT PFNGLDELETEFRAMEBUFFERSPROC DeleteFramebuffers; extern VTK_RENDERING_EXPORT PFNGLGENFRAMEBUFFERSPROC GenFramebuffers; extern VTK_RENDERING_EXPORT PFNGLCHECKFRAMEBUFFERSTATUSPROC CheckFramebufferStatus; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERTEXTURE1DPROC FramebufferTexture1D; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERTEXTURE2DPROC FramebufferTexture2D; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERTEXTURE3DPROC FramebufferTexture3D; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERRENDERBUFFERPROC FramebufferRenderbuffer; extern VTK_RENDERING_EXPORT PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC GetFramebufferAttachmentParameteriv; extern VTK_RENDERING_EXPORT PFNGLGENERATEMIPMAPPROC GenerateMipmap; extern VTK_RENDERING_EXPORT PFNGLBLITFRAMEBUFFERPROC BlitFramebuffer; extern VTK_RENDERING_EXPORT PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC RenderbufferStorageMultisample; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERTEXTURELAYERPROC FramebufferTextureLayer; //Definitions for GL_ARB_framebuffer_object_DEPRECATED const GLenum INDEX = static_cast<GLenum>(0x8222); const GLenum TEXTURE_LUMINANCE_TYPE = static_cast<GLenum>(0x8C14); const GLenum TEXTURE_INTENSITY_TYPE = static_cast<GLenum>(0x8C15); //Definitions for GL_ARB_framebuffer_sRGB const GLenum FRAMEBUFFER_SRGB = static_cast<GLenum>(0x8DB9); //Definitions for GL_ARB_geometry_shader4 const GLenum LINES_ADJACENCY_ARB = static_cast<GLenum>(0x000A); const GLenum LINE_STRIP_ADJACENCY_ARB = static_cast<GLenum>(0x000B); const GLenum TRIANGLES_ADJACENCY_ARB = static_cast<GLenum>(0x000C); const GLenum TRIANGLE_STRIP_ADJACENCY_ARB = static_cast<GLenum>(0x000D); const GLenum PROGRAM_POINT_SIZE_ARB = static_cast<GLenum>(0x8642); const GLenum MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB = static_cast<GLenum>(0x8C29); const GLenum FRAMEBUFFER_ATTACHMENT_LAYERED_ARB = static_cast<GLenum>(0x8DA7); const GLenum FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB = static_cast<GLenum>(0x8DA8); const GLenum FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB = static_cast<GLenum>(0x8DA9); const GLenum GEOMETRY_SHADER_ARB = static_cast<GLenum>(0x8DD9); const GLenum GEOMETRY_VERTICES_OUT_ARB = static_cast<GLenum>(0x8DDA); const GLenum GEOMETRY_INPUT_TYPE_ARB = static_cast<GLenum>(0x8DDB); const GLenum GEOMETRY_OUTPUT_TYPE_ARB = static_cast<GLenum>(0x8DDC); const GLenum MAX_GEOMETRY_VARYING_COMPONENTS_ARB = static_cast<GLenum>(0x8DDD); const GLenum MAX_VERTEX_VARYING_COMPONENTS_ARB = static_cast<GLenum>(0x8DDE); const GLenum MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB = static_cast<GLenum>(0x8DDF); const GLenum MAX_GEOMETRY_OUTPUT_VERTICES_ARB = static_cast<GLenum>(0x8DE0); const GLenum MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB = static_cast<GLenum>(0x8DE1); typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value); typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); extern VTK_RENDERING_EXPORT PFNGLPROGRAMPARAMETERIARBPROC ProgramParameteriARB; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERTEXTUREARBPROC FramebufferTextureARB; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERTEXTURELAYERARBPROC FramebufferTextureLayerARB; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERTEXTUREFACEARBPROC FramebufferTextureFaceARB; //Definitions for GL_ARB_half_float_vertex const GLenum HALF_FLOAT = static_cast<GLenum>(0x140B); //Definitions for GL_ARB_instanced_arrays const GLenum VERTEX_ATTRIB_ARRAY_DIVISOR_ARB = static_cast<GLenum>(0x88FE); typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor); extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBDIVISORARBPROC VertexAttribDivisorARB; //Definitions for GL_ARB_map_buffer_range const GLenum MAP_READ_BIT = static_cast<GLenum>(0x0001); const GLenum MAP_WRITE_BIT = static_cast<GLenum>(0x0002); const GLenum MAP_INVALIDATE_RANGE_BIT = static_cast<GLenum>(0x0004); const GLenum MAP_INVALIDATE_BUFFER_BIT = static_cast<GLenum>(0x0008); const GLenum MAP_FLUSH_EXPLICIT_BIT = static_cast<GLenum>(0x0010); const GLenum MAP_UNSYNCHRONIZED_BIT = static_cast<GLenum>(0x0020); typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length); extern VTK_RENDERING_EXPORT PFNGLMAPBUFFERRANGEPROC MapBufferRange; extern VTK_RENDERING_EXPORT PFNGLFLUSHMAPPEDBUFFERRANGEPROC FlushMappedBufferRange; //Definitions for GL_ARB_texture_buffer_object const GLenum TEXTURE_BUFFER_ARB = static_cast<GLenum>(0x8C2A); const GLenum MAX_TEXTURE_BUFFER_SIZE_ARB = static_cast<GLenum>(0x8C2B); const GLenum TEXTURE_BINDING_BUFFER_ARB = static_cast<GLenum>(0x8C2C); const GLenum TEXTURE_BUFFER_DATA_STORE_BINDING_ARB = static_cast<GLenum>(0x8C2D); const GLenum TEXTURE_BUFFER_FORMAT_ARB = static_cast<GLenum>(0x8C2E); typedef void (APIENTRYP PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer); extern VTK_RENDERING_EXPORT PFNGLTEXBUFFERARBPROC TexBufferARB; //Definitions for GL_ARB_texture_compression_rgtc const GLenum COMPRESSED_RED_RGTC1 = static_cast<GLenum>(0x8DBB); const GLenum COMPRESSED_SIGNED_RED_RGTC1 = static_cast<GLenum>(0x8DBC); const GLenum COMPRESSED_RG_RGTC2 = static_cast<GLenum>(0x8DBD); const GLenum COMPRESSED_SIGNED_RG_RGTC2 = static_cast<GLenum>(0x8DBE); //Definitions for GL_ARB_texture_rg const GLenum RG = static_cast<GLenum>(0x8227); const GLenum RG_INTEGER = static_cast<GLenum>(0x8228); const GLenum R8 = static_cast<GLenum>(0x8229); const GLenum R16 = static_cast<GLenum>(0x822A); const GLenum RG8 = static_cast<GLenum>(0x822B); const GLenum RG16 = static_cast<GLenum>(0x822C); const GLenum R16F = static_cast<GLenum>(0x822D); const GLenum R32F = static_cast<GLenum>(0x822E); const GLenum RG16F = static_cast<GLenum>(0x822F); const GLenum RG32F = static_cast<GLenum>(0x8230); const GLenum R8I = static_cast<GLenum>(0x8231); const GLenum R8UI = static_cast<GLenum>(0x8232); const GLenum R16I = static_cast<GLenum>(0x8233); const GLenum R16UI = static_cast<GLenum>(0x8234); const GLenum R32I = static_cast<GLenum>(0x8235); const GLenum R32UI = static_cast<GLenum>(0x8236); const GLenum RG8I = static_cast<GLenum>(0x8237); const GLenum RG8UI = static_cast<GLenum>(0x8238); const GLenum RG16I = static_cast<GLenum>(0x8239); const GLenum RG16UI = static_cast<GLenum>(0x823A); const GLenum RG32I = static_cast<GLenum>(0x823B); const GLenum RG32UI = static_cast<GLenum>(0x823C); //Definitions for GL_ARB_vertex_array_object const GLenum VERTEX_ARRAY_BINDING = static_cast<GLenum>(0x85B5); typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array); typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays); typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays); typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array); extern VTK_RENDERING_EXPORT PFNGLBINDVERTEXARRAYPROC BindVertexArray; extern VTK_RENDERING_EXPORT PFNGLDELETEVERTEXARRAYSPROC DeleteVertexArrays; extern VTK_RENDERING_EXPORT PFNGLGENVERTEXARRAYSPROC GenVertexArrays; extern VTK_RENDERING_EXPORT PFNGLISVERTEXARRAYPROC IsVertexArray; //Definitions for GL_ARB_uniform_buffer_object const GLenum UNIFORM_BUFFER = static_cast<GLenum>(0x8A11); const GLenum UNIFORM_BUFFER_BINDING = static_cast<GLenum>(0x8A28); const GLenum UNIFORM_BUFFER_START = static_cast<GLenum>(0x8A29); const GLenum UNIFORM_BUFFER_SIZE = static_cast<GLenum>(0x8A2A); const GLenum MAX_VERTEX_UNIFORM_BLOCKS = static_cast<GLenum>(0x8A2B); const GLenum MAX_GEOMETRY_UNIFORM_BLOCKS = static_cast<GLenum>(0x8A2C); const GLenum MAX_FRAGMENT_UNIFORM_BLOCKS = static_cast<GLenum>(0x8A2D); const GLenum MAX_COMBINED_UNIFORM_BLOCKS = static_cast<GLenum>(0x8A2E); const GLenum MAX_UNIFORM_BUFFER_BINDINGS = static_cast<GLenum>(0x8A2F); const GLenum MAX_UNIFORM_BLOCK_SIZE = static_cast<GLenum>(0x8A30); const GLenum MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = static_cast<GLenum>(0x8A31); const GLenum MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = static_cast<GLenum>(0x8A32); const GLenum MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = static_cast<GLenum>(0x8A33); const GLenum UNIFORM_BUFFER_OFFSET_ALIGNMENT = static_cast<GLenum>(0x8A34); const GLenum ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = static_cast<GLenum>(0x8A35); const GLenum ACTIVE_UNIFORM_BLOCKS = static_cast<GLenum>(0x8A36); const GLenum UNIFORM_TYPE = static_cast<GLenum>(0x8A37); const GLenum UNIFORM_SIZE = static_cast<GLenum>(0x8A38); const GLenum UNIFORM_NAME_LENGTH = static_cast<GLenum>(0x8A39); const GLenum UNIFORM_BLOCK_INDEX = static_cast<GLenum>(0x8A3A); const GLenum UNIFORM_OFFSET = static_cast<GLenum>(0x8A3B); const GLenum UNIFORM_ARRAY_STRIDE = static_cast<GLenum>(0x8A3C); const GLenum UNIFORM_MATRIX_STRIDE = static_cast<GLenum>(0x8A3D); const GLenum UNIFORM_IS_ROW_MAJOR = static_cast<GLenum>(0x8A3E); const GLenum UNIFORM_BLOCK_BINDING = static_cast<GLenum>(0x8A3F); const GLenum UNIFORM_BLOCK_DATA_SIZE = static_cast<GLenum>(0x8A40); const GLenum UNIFORM_BLOCK_NAME_LENGTH = static_cast<GLenum>(0x8A41); const GLenum UNIFORM_BLOCK_ACTIVE_UNIFORMS = static_cast<GLenum>(0x8A42); const GLenum UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = static_cast<GLenum>(0x8A43); const GLenum UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = static_cast<GLenum>(0x8A44); const GLenum UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = static_cast<GLenum>(0x8A45); const GLenum UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = static_cast<GLenum>(0x8A46); const GLenum INVALID_INDEX = static_cast<GLenum>(0xFFFFFFFFu); typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar* *uniformNames, GLuint *uniformIndices); typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName); typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName); typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName); typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMINDICESPROC GetUniformIndices; extern VTK_RENDERING_EXPORT PFNGLGETACTIVEUNIFORMSIVPROC GetActiveUniformsiv; extern VTK_RENDERING_EXPORT PFNGLGETACTIVEUNIFORMNAMEPROC GetActiveUniformName; extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMBLOCKINDEXPROC GetUniformBlockIndex; extern VTK_RENDERING_EXPORT PFNGLGETACTIVEUNIFORMBLOCKIVPROC GetActiveUniformBlockiv; extern VTK_RENDERING_EXPORT PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC GetActiveUniformBlockName; extern VTK_RENDERING_EXPORT PFNGLUNIFORMBLOCKBINDINGPROC UniformBlockBinding; //Definitions for GL_ARB_compatibility //Definitions for GL_ARB_copy_buffer const GLenum COPY_READ_BUFFER = static_cast<GLenum>(0x8F36); const GLenum COPY_WRITE_BUFFER = static_cast<GLenum>(0x8F37); typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); extern VTK_RENDERING_EXPORT PFNGLCOPYBUFFERSUBDATAPROC CopyBufferSubData; //Definitions for GL_ARB_shader_texture_lod //Definitions for GL_ARB_depth_clamp const GLenum DEPTH_CLAMP = static_cast<GLenum>(0x864F); //Definitions for GL_ARB_draw_elements_base_vertex typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex); typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex); typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount, GLint basevertex); typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount, const GLint *basevertex); extern VTK_RENDERING_EXPORT PFNGLDRAWELEMENTSBASEVERTEXPROC DrawElementsBaseVertex; extern VTK_RENDERING_EXPORT PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC DrawRangeElementsBaseVertex; extern VTK_RENDERING_EXPORT PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC DrawElementsInstancedBaseVertex; extern VTK_RENDERING_EXPORT PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC MultiDrawElementsBaseVertex; //Definitions for GL_ARB_fragment_coord_conventions //Definitions for GL_ARB_provoking_vertex const GLenum QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = static_cast<GLenum>(0x8E4C); const GLenum FIRST_VERTEX_CONVENTION = static_cast<GLenum>(0x8E4D); const GLenum LAST_VERTEX_CONVENTION = static_cast<GLenum>(0x8E4E); const GLenum PROVOKING_VERTEX = static_cast<GLenum>(0x8E4F); typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode); extern VTK_RENDERING_EXPORT PFNGLPROVOKINGVERTEXPROC ProvokingVertex; //Definitions for GL_ARB_seamless_cube_map const GLenum TEXTURE_CUBE_MAP_SEAMLESS = static_cast<GLenum>(0x884F); //Definitions for GL_ARB_sync const GLenum MAX_SERVER_WAIT_TIMEOUT = static_cast<GLenum>(0x9111); const GLenum OBJECT_TYPE = static_cast<GLenum>(0x9112); const GLenum SYNC_CONDITION = static_cast<GLenum>(0x9113); const GLenum SYNC_STATUS = static_cast<GLenum>(0x9114); const GLenum SYNC_FLAGS = static_cast<GLenum>(0x9115); const GLenum SYNC_FENCE = static_cast<GLenum>(0x9116); const GLenum SYNC_GPU_COMMANDS_COMPLETE = static_cast<GLenum>(0x9117); const GLenum UNSIGNALED = static_cast<GLenum>(0x9118); const GLenum SIGNALED = static_cast<GLenum>(0x9119); const GLenum ALREADY_SIGNALED = static_cast<GLenum>(0x911A); const GLenum TIMEOUT_EXPIRED = static_cast<GLenum>(0x911B); const GLenum CONDITION_SATISFIED = static_cast<GLenum>(0x911C); const GLenum WAIT_FAILED = static_cast<GLenum>(0x911D); const GLenum SYNC_FLUSH_COMMANDS_BIT = static_cast<GLenum>(0x00000001); #if !defined(__BORLANDC__) && (!defined(_MSC_VER) || (defined(_MSC_VER) && _MSC_VER>=1310)) const GLenum TIMEOUT_IGNORED = static_cast<GLenum>(0xFFFFFFFFFFFFFFFFull); #endif /* only for C99 compilers */ typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags); typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync); typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync); typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout); typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout); typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *params); typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); extern VTK_RENDERING_EXPORT PFNGLFENCESYNCPROC FenceSync; extern VTK_RENDERING_EXPORT PFNGLISSYNCPROC IsSync; extern VTK_RENDERING_EXPORT PFNGLDELETESYNCPROC DeleteSync; extern VTK_RENDERING_EXPORT PFNGLCLIENTWAITSYNCPROC ClientWaitSync; extern VTK_RENDERING_EXPORT PFNGLWAITSYNCPROC WaitSync; extern VTK_RENDERING_EXPORT PFNGLGETINTEGER64VPROC GetInteger64v; extern VTK_RENDERING_EXPORT PFNGLGETSYNCIVPROC GetSynciv; //Definitions for GL_ARB_texture_multisample const GLenum SAMPLE_POSITION = static_cast<GLenum>(0x8E50); const GLenum SAMPLE_MASK = static_cast<GLenum>(0x8E51); const GLenum SAMPLE_MASK_VALUE = static_cast<GLenum>(0x8E52); const GLenum MAX_SAMPLE_MASK_WORDS = static_cast<GLenum>(0x8E59); const GLenum TEXTURE_2D_MULTISAMPLE = static_cast<GLenum>(0x9100); const GLenum PROXY_TEXTURE_2D_MULTISAMPLE = static_cast<GLenum>(0x9101); const GLenum TEXTURE_2D_MULTISAMPLE_ARRAY = static_cast<GLenum>(0x9102); const GLenum PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = static_cast<GLenum>(0x9103); const GLenum TEXTURE_BINDING_2D_MULTISAMPLE = static_cast<GLenum>(0x9104); const GLenum TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = static_cast<GLenum>(0x9105); const GLenum TEXTURE_SAMPLES = static_cast<GLenum>(0x9106); const GLenum TEXTURE_FIXED_SAMPLE_LOCATIONS = static_cast<GLenum>(0x9107); const GLenum SAMPLER_2D_MULTISAMPLE = static_cast<GLenum>(0x9108); const GLenum INT_SAMPLER_2D_MULTISAMPLE = static_cast<GLenum>(0x9109); const GLenum UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = static_cast<GLenum>(0x910A); const GLenum SAMPLER_2D_MULTISAMPLE_ARRAY = static_cast<GLenum>(0x910B); const GLenum INT_SAMPLER_2D_MULTISAMPLE_ARRAY = static_cast<GLenum>(0x910C); const GLenum UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = static_cast<GLenum>(0x910D); const GLenum MAX_COLOR_TEXTURE_SAMPLES = static_cast<GLenum>(0x910E); const GLenum MAX_DEPTH_TEXTURE_SAMPLES = static_cast<GLenum>(0x910F); const GLenum MAX_INTEGER_SAMPLES = static_cast<GLenum>(0x9110); typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val); typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint index, GLbitfield mask); extern VTK_RENDERING_EXPORT PFNGLTEXIMAGE2DMULTISAMPLEPROC TexImage2DMultisample; extern VTK_RENDERING_EXPORT PFNGLTEXIMAGE3DMULTISAMPLEPROC TexImage3DMultisample; extern VTK_RENDERING_EXPORT PFNGLGETMULTISAMPLEFVPROC GetMultisamplefv; extern VTK_RENDERING_EXPORT PFNGLSAMPLEMASKIPROC SampleMaski; //Definitions for GL_ARB_vertex_array_bgra //Definitions for GL_ARB_draw_buffers_blend typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode); typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst); typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); extern VTK_RENDERING_EXPORT PFNGLBLENDEQUATIONIPROC BlendEquationi; extern VTK_RENDERING_EXPORT PFNGLBLENDEQUATIONSEPARATEIPROC BlendEquationSeparatei; extern VTK_RENDERING_EXPORT PFNGLBLENDFUNCIPROC BlendFunci; extern VTK_RENDERING_EXPORT PFNGLBLENDFUNCSEPARATEIPROC BlendFuncSeparatei; //Definitions for GL_ARB_sample_shading const GLenum SAMPLE_SHADING = static_cast<GLenum>(0x8C36); const GLenum MIN_SAMPLE_SHADING_VALUE = static_cast<GLenum>(0x8C37); typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLclampf value); extern VTK_RENDERING_EXPORT PFNGLMINSAMPLESHADINGPROC MinSampleShading; //Definitions for GL_ARB_texture_cube_map_array const GLenum TEXTURE_CUBE_MAP_ARRAY = static_cast<GLenum>(0x9009); const GLenum TEXTURE_BINDING_CUBE_MAP_ARRAY = static_cast<GLenum>(0x900A); const GLenum PROXY_TEXTURE_CUBE_MAP_ARRAY = static_cast<GLenum>(0x900B); const GLenum SAMPLER_CUBE_MAP_ARRAY = static_cast<GLenum>(0x900C); const GLenum SAMPLER_CUBE_MAP_ARRAY_SHADOW = static_cast<GLenum>(0x900D); const GLenum INT_SAMPLER_CUBE_MAP_ARRAY = static_cast<GLenum>(0x900E); const GLenum UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = static_cast<GLenum>(0x900F); //Definitions for GL_ARB_texture_gather const GLenum MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = static_cast<GLenum>(0x8E5E); const GLenum MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = static_cast<GLenum>(0x8E5F); //Definitions for GL_ARB_texture_query_lod //Definitions for GL_ARB_shading_language_include const GLenum SHADER_INCLUDE_ARB = static_cast<GLenum>(0x8DAE); const GLenum NAMED_STRING_LENGTH_ARB = static_cast<GLenum>(0x8DE9); const GLenum NAMED_STRING_TYPE_ARB = static_cast<GLenum>(0x8DEA); typedef void (APIENTRYP PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string); typedef void (APIENTRYP PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name); typedef void (APIENTRYP PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const GLchar* *path, const GLint *length); typedef GLboolean (APIENTRYP PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name); typedef void (APIENTRYP PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string); typedef void (APIENTRYP PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const GLchar *name, GLenum pname, GLint *params); extern VTK_RENDERING_EXPORT PFNGLNAMEDSTRINGARBPROC NamedStringARB; extern VTK_RENDERING_EXPORT PFNGLDELETENAMEDSTRINGARBPROC DeleteNamedStringARB; extern VTK_RENDERING_EXPORT PFNGLCOMPILESHADERINCLUDEARBPROC CompileShaderIncludeARB; extern VTK_RENDERING_EXPORT PFNGLISNAMEDSTRINGARBPROC IsNamedStringARB; extern VTK_RENDERING_EXPORT PFNGLGETNAMEDSTRINGARBPROC GetNamedStringARB; extern VTK_RENDERING_EXPORT PFNGLGETNAMEDSTRINGIVARBPROC GetNamedStringivARB; //Definitions for GL_ARB_texture_compression_bptc const GLenum COMPRESSED_RGBA_BPTC_UNORM_ARB = static_cast<GLenum>(0x8E8C); const GLenum COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB = static_cast<GLenum>(0x8E8D); const GLenum COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB = static_cast<GLenum>(0x8E8E); const GLenum COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB = static_cast<GLenum>(0x8E8F); //Definitions for GL_ARB_blend_func_extended const GLenum SRC1_COLOR = static_cast<GLenum>(0x88F9); const GLenum ONE_MINUS_SRC1_COLOR = static_cast<GLenum>(0x88FA); const GLenum ONE_MINUS_SRC1_ALPHA = static_cast<GLenum>(0x88FB); const GLenum MAX_DUAL_SOURCE_DRAW_BUFFERS = static_cast<GLenum>(0x88FC); typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name); typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name); extern VTK_RENDERING_EXPORT PFNGLBINDFRAGDATALOCATIONINDEXEDPROC BindFragDataLocationIndexed; extern VTK_RENDERING_EXPORT PFNGLGETFRAGDATAINDEXPROC GetFragDataIndex; //Definitions for GL_ARB_explicit_attrib_location //Definitions for GL_ARB_occlusion_query2 const GLenum ANY_SAMPLES_PASSED = static_cast<GLenum>(0x8C2F); //Definitions for GL_ARB_sampler_objects const GLenum SAMPLER_BINDING = static_cast<GLenum>(0x8919); typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers); typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers); typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler); typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLenum unit, GLuint sampler); typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param); typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param); typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param); typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param); typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param); typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIFVPROC) (GLuint sampler, GLenum pname, GLfloat *params); extern VTK_RENDERING_EXPORT PFNGLGENSAMPLERSPROC GenSamplers; extern VTK_RENDERING_EXPORT PFNGLDELETESAMPLERSPROC DeleteSamplers; extern VTK_RENDERING_EXPORT PFNGLISSAMPLERPROC IsSampler; extern VTK_RENDERING_EXPORT PFNGLBINDSAMPLERPROC BindSampler; extern VTK_RENDERING_EXPORT PFNGLSAMPLERPARAMETERIPROC SamplerParameteri; extern VTK_RENDERING_EXPORT PFNGLSAMPLERPARAMETERIVPROC SamplerParameteriv; extern VTK_RENDERING_EXPORT PFNGLSAMPLERPARAMETERFPROC SamplerParameterf; extern VTK_RENDERING_EXPORT PFNGLSAMPLERPARAMETERFVPROC SamplerParameterfv; extern VTK_RENDERING_EXPORT PFNGLSAMPLERPARAMETERIIVPROC SamplerParameterIiv; extern VTK_RENDERING_EXPORT PFNGLSAMPLERPARAMETERIUIVPROC SamplerParameterIuiv; extern VTK_RENDERING_EXPORT PFNGLGETSAMPLERPARAMETERIVPROC GetSamplerParameteriv; extern VTK_RENDERING_EXPORT PFNGLGETSAMPLERPARAMETERIIVPROC GetSamplerParameterIiv; extern VTK_RENDERING_EXPORT PFNGLGETSAMPLERPARAMETERFVPROC GetSamplerParameterfv; extern VTK_RENDERING_EXPORT PFNGLGETSAMPLERPARAMETERIFVPROC GetSamplerParameterIfv; //Definitions for GL_ARB_shader_bit_encoding //Definitions for GL_ARB_texture_rgb10_a2ui const GLenum RGB10_A2UI = static_cast<GLenum>(0x906F); //Definitions for GL_ARB_texture_swizzle const GLenum TEXTURE_SWIZZLE_R = static_cast<GLenum>(0x8E42); const GLenum TEXTURE_SWIZZLE_G = static_cast<GLenum>(0x8E43); const GLenum TEXTURE_SWIZZLE_B = static_cast<GLenum>(0x8E44); const GLenum TEXTURE_SWIZZLE_A = static_cast<GLenum>(0x8E45); const GLenum TEXTURE_SWIZZLE_RGBA = static_cast<GLenum>(0x8E46); //Definitions for GL_ARB_timer_query const GLenum TIME_ELAPSED = static_cast<GLenum>(0x88BF); const GLenum TIMESTAMP = static_cast<GLenum>(0x8E28); typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target); typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params); typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params); extern VTK_RENDERING_EXPORT PFNGLQUERYCOUNTERPROC QueryCounter; extern VTK_RENDERING_EXPORT PFNGLGETQUERYOBJECTI64VPROC GetQueryObjecti64v; extern VTK_RENDERING_EXPORT PFNGLGETQUERYOBJECTUI64VPROC GetQueryObjectui64v; //Definitions for GL_ARB_vertex_type_2_10_10_10_rev const GLenum INT_2_10_10_10_REV = static_cast<GLenum>(0x8D9F); typedef void (APIENTRYP PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value); typedef void (APIENTRYP PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint *value); typedef void (APIENTRYP PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value); typedef void (APIENTRYP PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint *value); typedef void (APIENTRYP PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value); typedef void (APIENTRYP PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint *value); typedef void (APIENTRYP PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords); typedef void (APIENTRYP PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint *coords); typedef void (APIENTRYP PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords); typedef void (APIENTRYP PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint *coords); typedef void (APIENTRYP PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords); typedef void (APIENTRYP PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint *coords); typedef void (APIENTRYP PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords); typedef void (APIENTRYP PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint *coords); typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords); typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint *coords); typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords); typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint *coords); typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords); typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint *coords); typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords); typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint *coords); typedef void (APIENTRYP PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords); typedef void (APIENTRYP PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint *coords); typedef void (APIENTRYP PFNGLCOLORP3UIPROC) (GLenum type, GLuint color); typedef void (APIENTRYP PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint *color); typedef void (APIENTRYP PFNGLCOLORP4UIPROC) (GLenum type, GLuint color); typedef void (APIENTRYP PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint *color); typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color); typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint *color); typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); extern VTK_RENDERING_EXPORT PFNGLVERTEXP2UIPROC VertexP2ui; extern VTK_RENDERING_EXPORT PFNGLVERTEXP2UIVPROC VertexP2uiv; extern VTK_RENDERING_EXPORT PFNGLVERTEXP3UIPROC VertexP3ui; extern VTK_RENDERING_EXPORT PFNGLVERTEXP3UIVPROC VertexP3uiv; extern VTK_RENDERING_EXPORT PFNGLVERTEXP4UIPROC VertexP4ui; extern VTK_RENDERING_EXPORT PFNGLVERTEXP4UIVPROC VertexP4uiv; extern VTK_RENDERING_EXPORT PFNGLTEXCOORDP1UIPROC TexCoordP1ui; extern VTK_RENDERING_EXPORT PFNGLTEXCOORDP1UIVPROC TexCoordP1uiv; extern VTK_RENDERING_EXPORT PFNGLTEXCOORDP2UIPROC TexCoordP2ui; extern VTK_RENDERING_EXPORT PFNGLTEXCOORDP2UIVPROC TexCoordP2uiv; extern VTK_RENDERING_EXPORT PFNGLTEXCOORDP3UIPROC TexCoordP3ui; extern VTK_RENDERING_EXPORT PFNGLTEXCOORDP3UIVPROC TexCoordP3uiv; extern VTK_RENDERING_EXPORT PFNGLTEXCOORDP4UIPROC TexCoordP4ui; extern VTK_RENDERING_EXPORT PFNGLTEXCOORDP4UIVPROC TexCoordP4uiv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORDP1UIPROC MultiTexCoordP1ui; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORDP1UIVPROC MultiTexCoordP1uiv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORDP2UIPROC MultiTexCoordP2ui; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORDP2UIVPROC MultiTexCoordP2uiv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORDP3UIPROC MultiTexCoordP3ui; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORDP3UIVPROC MultiTexCoordP3uiv; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORDP4UIPROC MultiTexCoordP4ui; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORDP4UIVPROC MultiTexCoordP4uiv; extern VTK_RENDERING_EXPORT PFNGLNORMALP3UIPROC NormalP3ui; extern VTK_RENDERING_EXPORT PFNGLNORMALP3UIVPROC NormalP3uiv; extern VTK_RENDERING_EXPORT PFNGLCOLORP3UIPROC ColorP3ui; extern VTK_RENDERING_EXPORT PFNGLCOLORP3UIVPROC ColorP3uiv; extern VTK_RENDERING_EXPORT PFNGLCOLORP4UIPROC ColorP4ui; extern VTK_RENDERING_EXPORT PFNGLCOLORP4UIVPROC ColorP4uiv; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLORP3UIPROC SecondaryColorP3ui; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLORP3UIVPROC SecondaryColorP3uiv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBP1UIPROC VertexAttribP1ui; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBP1UIVPROC VertexAttribP1uiv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBP2UIPROC VertexAttribP2ui; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBP2UIVPROC VertexAttribP2uiv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBP3UIPROC VertexAttribP3ui; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBP3UIVPROC VertexAttribP3uiv; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBP4UIPROC VertexAttribP4ui; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBP4UIVPROC VertexAttribP4uiv; //Definitions for GL_ARB_draw_indirect const GLenum DRAW_INDIRECT_BUFFER = static_cast<GLenum>(0x8F3F); const GLenum DRAW_INDIRECT_BUFFER_BINDING = static_cast<GLenum>(0x8F43); typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const GLvoid *indirect); typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const GLvoid *indirect); extern VTK_RENDERING_EXPORT PFNGLDRAWARRAYSINDIRECTPROC DrawArraysIndirect; extern VTK_RENDERING_EXPORT PFNGLDRAWELEMENTSINDIRECTPROC DrawElementsIndirect; //Definitions for GL_ARB_gpu_shader5 const GLenum GEOMETRY_SHADER_INVOCATIONS = static_cast<GLenum>(0x887F); const GLenum MAX_GEOMETRY_SHADER_INVOCATIONS = static_cast<GLenum>(0x8E5A); const GLenum MIN_FRAGMENT_INTERPOLATION_OFFSET = static_cast<GLenum>(0x8E5B); const GLenum MAX_FRAGMENT_INTERPOLATION_OFFSET = static_cast<GLenum>(0x8E5C); const GLenum FRAGMENT_INTERPOLATION_OFFSET_BITS = static_cast<GLenum>(0x8E5D); const GLenum MAX_VERTEX_STREAMS = static_cast<GLenum>(0x8E71); //Definitions for GL_ARB_gpu_shader_fp64 const GLenum DOUBLE_VEC2 = static_cast<GLenum>(0x8FFC); const GLenum DOUBLE_VEC3 = static_cast<GLenum>(0x8FFD); const GLenum DOUBLE_VEC4 = static_cast<GLenum>(0x8FFE); const GLenum DOUBLE_MAT2 = static_cast<GLenum>(0x8F46); const GLenum DOUBLE_MAT3 = static_cast<GLenum>(0x8F47); const GLenum DOUBLE_MAT4 = static_cast<GLenum>(0x8F48); const GLenum DOUBLE_MAT2x3 = static_cast<GLenum>(0x8F49); const GLenum DOUBLE_MAT2x4 = static_cast<GLenum>(0x8F4A); const GLenum DOUBLE_MAT3x2 = static_cast<GLenum>(0x8F4B); const GLenum DOUBLE_MAT3x4 = static_cast<GLenum>(0x8F4C); const GLenum DOUBLE_MAT4x2 = static_cast<GLenum>(0x8F4D); const GLenum DOUBLE_MAT4x3 = static_cast<GLenum>(0x8F4E); typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x); typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y); typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value); typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value); typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value); typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DEXTPROC) (GLuint program, GLint location, GLdouble x); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); extern VTK_RENDERING_EXPORT PFNGLUNIFORM1DPROC Uniform1d; extern VTK_RENDERING_EXPORT PFNGLUNIFORM2DPROC Uniform2d; extern VTK_RENDERING_EXPORT PFNGLUNIFORM3DPROC Uniform3d; extern VTK_RENDERING_EXPORT PFNGLUNIFORM4DPROC Uniform4d; extern VTK_RENDERING_EXPORT PFNGLUNIFORM1DVPROC Uniform1dv; extern VTK_RENDERING_EXPORT PFNGLUNIFORM2DVPROC Uniform2dv; extern VTK_RENDERING_EXPORT PFNGLUNIFORM3DVPROC Uniform3dv; extern VTK_RENDERING_EXPORT PFNGLUNIFORM4DVPROC Uniform4dv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX2DVPROC UniformMatrix2dv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX3DVPROC UniformMatrix3dv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX4DVPROC UniformMatrix4dv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX2X3DVPROC UniformMatrix2x3dv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX2X4DVPROC UniformMatrix2x4dv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX3X2DVPROC UniformMatrix3x2dv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX3X4DVPROC UniformMatrix3x4dv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX4X2DVPROC UniformMatrix4x2dv; extern VTK_RENDERING_EXPORT PFNGLUNIFORMMATRIX4X3DVPROC UniformMatrix4x3dv; extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMDVPROC GetUniformdv; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM1DEXTPROC ProgramUniform1dEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM2DEXTPROC ProgramUniform2dEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM3DEXTPROC ProgramUniform3dEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM4DEXTPROC ProgramUniform4dEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM1DVEXTPROC ProgramUniform1dvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM2DVEXTPROC ProgramUniform2dvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM3DVEXTPROC ProgramUniform3dvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM4DVEXTPROC ProgramUniform4dvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC ProgramUniformMatrix2dvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC ProgramUniformMatrix3dvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC ProgramUniformMatrix4dvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC ProgramUniformMatrix2x3dvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC ProgramUniformMatrix2x4dvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC ProgramUniformMatrix3x2dvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC ProgramUniformMatrix3x4dvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC ProgramUniformMatrix4x2dvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC ProgramUniformMatrix4x3dvEXT; //Definitions for GL_ARB_shader_subroutine const GLenum ACTIVE_SUBROUTINES = static_cast<GLenum>(0x8DE5); const GLenum ACTIVE_SUBROUTINE_UNIFORMS = static_cast<GLenum>(0x8DE6); const GLenum ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = static_cast<GLenum>(0x8E47); const GLenum ACTIVE_SUBROUTINE_MAX_LENGTH = static_cast<GLenum>(0x8E48); const GLenum ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = static_cast<GLenum>(0x8E49); const GLenum MAX_SUBROUTINES = static_cast<GLenum>(0x8DE7); const GLenum MAX_SUBROUTINE_UNIFORM_LOCATIONS = static_cast<GLenum>(0x8DE8); const GLenum NUM_COMPATIBLE_SUBROUTINES = static_cast<GLenum>(0x8E4A); const GLenum COMPATIBLE_SUBROUTINES = static_cast<GLenum>(0x8E4B); typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name); typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name); typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values); typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name); typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name); typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices); typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params); typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values); extern VTK_RENDERING_EXPORT PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC GetSubroutineUniformLocation; extern VTK_RENDERING_EXPORT PFNGLGETSUBROUTINEINDEXPROC GetSubroutineIndex; extern VTK_RENDERING_EXPORT PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC GetActiveSubroutineUniformiv; extern VTK_RENDERING_EXPORT PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC GetActiveSubroutineUniformName; extern VTK_RENDERING_EXPORT PFNGLGETACTIVESUBROUTINENAMEPROC GetActiveSubroutineName; extern VTK_RENDERING_EXPORT PFNGLUNIFORMSUBROUTINESUIVPROC UniformSubroutinesuiv; extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMSUBROUTINEUIVPROC GetUniformSubroutineuiv; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMSTAGEIVPROC GetProgramStageiv; //Definitions for GL_ARB_tessellation_shader const GLenum PATCHES = static_cast<GLenum>(0x000E); const GLenum PATCH_VERTICES = static_cast<GLenum>(0x8E72); const GLenum PATCH_DEFAULT_INNER_LEVEL = static_cast<GLenum>(0x8E73); const GLenum PATCH_DEFAULT_OUTER_LEVEL = static_cast<GLenum>(0x8E74); const GLenum TESS_CONTROL_OUTPUT_VERTICES = static_cast<GLenum>(0x8E75); const GLenum TESS_GEN_MODE = static_cast<GLenum>(0x8E76); const GLenum TESS_GEN_SPACING = static_cast<GLenum>(0x8E77); const GLenum TESS_GEN_VERTEX_ORDER = static_cast<GLenum>(0x8E78); const GLenum TESS_GEN_POINT_MODE = static_cast<GLenum>(0x8E79); const GLenum ISOLINES = static_cast<GLenum>(0x8E7A); const GLenum FRACTIONAL_ODD = static_cast<GLenum>(0x8E7B); const GLenum FRACTIONAL_EVEN = static_cast<GLenum>(0x8E7C); const GLenum MAX_PATCH_VERTICES = static_cast<GLenum>(0x8E7D); const GLenum MAX_TESS_GEN_LEVEL = static_cast<GLenum>(0x8E7E); const GLenum MAX_TESS_CONTROL_UNIFORM_COMPONENTS = static_cast<GLenum>(0x8E7F); const GLenum MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = static_cast<GLenum>(0x8E80); const GLenum MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = static_cast<GLenum>(0x8E81); const GLenum MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = static_cast<GLenum>(0x8E82); const GLenum MAX_TESS_CONTROL_OUTPUT_COMPONENTS = static_cast<GLenum>(0x8E83); const GLenum MAX_TESS_PATCH_COMPONENTS = static_cast<GLenum>(0x8E84); const GLenum MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = static_cast<GLenum>(0x8E85); const GLenum MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = static_cast<GLenum>(0x8E86); const GLenum MAX_TESS_CONTROL_UNIFORM_BLOCKS = static_cast<GLenum>(0x8E89); const GLenum MAX_TESS_EVALUATION_UNIFORM_BLOCKS = static_cast<GLenum>(0x8E8A); const GLenum MAX_TESS_CONTROL_INPUT_COMPONENTS = static_cast<GLenum>(0x886C); const GLenum MAX_TESS_EVALUATION_INPUT_COMPONENTS = static_cast<GLenum>(0x886D); const GLenum MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = static_cast<GLenum>(0x8E1E); const GLenum MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = static_cast<GLenum>(0x8E1F); const GLenum UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = static_cast<GLenum>(0x84F0); const GLenum UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = static_cast<GLenum>(0x84F1); const GLenum TESS_EVALUATION_SHADER = static_cast<GLenum>(0x8E87); const GLenum TESS_CONTROL_SHADER = static_cast<GLenum>(0x8E88); typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value); typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values); extern VTK_RENDERING_EXPORT PFNGLPATCHPARAMETERIPROC PatchParameteri; extern VTK_RENDERING_EXPORT PFNGLPATCHPARAMETERFVPROC PatchParameterfv; //Definitions for GL_ARB_texture_buffer_object_rgb32 //Definitions for GL_ARB_transform_feedback2 const GLenum TRANSFORM_FEEDBACK = static_cast<GLenum>(0x8E22); const GLenum TRANSFORM_FEEDBACK_BUFFER_PAUSED = static_cast<GLenum>(0x8E23); const GLenum TRANSFORM_FEEDBACK_BUFFER_ACTIVE = static_cast<GLenum>(0x8E24); const GLenum TRANSFORM_FEEDBACK_BINDING = static_cast<GLenum>(0x8E25); typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id); typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids); typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids); typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id); typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void); typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void); typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id); extern VTK_RENDERING_EXPORT PFNGLBINDTRANSFORMFEEDBACKPROC BindTransformFeedback; extern VTK_RENDERING_EXPORT PFNGLDELETETRANSFORMFEEDBACKSPROC DeleteTransformFeedbacks; extern VTK_RENDERING_EXPORT PFNGLGENTRANSFORMFEEDBACKSPROC GenTransformFeedbacks; extern VTK_RENDERING_EXPORT PFNGLISTRANSFORMFEEDBACKPROC IsTransformFeedback; extern VTK_RENDERING_EXPORT PFNGLPAUSETRANSFORMFEEDBACKPROC PauseTransformFeedback; extern VTK_RENDERING_EXPORT PFNGLRESUMETRANSFORMFEEDBACKPROC ResumeTransformFeedback; extern VTK_RENDERING_EXPORT PFNGLDRAWTRANSFORMFEEDBACKPROC DrawTransformFeedback; //Definitions for GL_ARB_transform_feedback3 const GLenum MAX_TRANSFORM_FEEDBACK_BUFFERS = static_cast<GLenum>(0x8E70); typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream); typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id); typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index); typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params); extern VTK_RENDERING_EXPORT PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC DrawTransformFeedbackStream; extern VTK_RENDERING_EXPORT PFNGLBEGINQUERYINDEXEDPROC BeginQueryIndexed; extern VTK_RENDERING_EXPORT PFNGLENDQUERYINDEXEDPROC EndQueryIndexed; extern VTK_RENDERING_EXPORT PFNGLGETQUERYINDEXEDIVPROC GetQueryIndexediv; //Definitions for GL_EXT_abgr const GLenum ABGR_EXT = static_cast<GLenum>(0x8000); //Definitions for GL_EXT_blend_color const GLenum CONSTANT_COLOR_EXT = static_cast<GLenum>(0x8001); const GLenum ONE_MINUS_CONSTANT_COLOR_EXT = static_cast<GLenum>(0x8002); const GLenum CONSTANT_ALPHA_EXT = static_cast<GLenum>(0x8003); const GLenum ONE_MINUS_CONSTANT_ALPHA_EXT = static_cast<GLenum>(0x8004); const GLenum BLEND_COLOR_EXT = static_cast<GLenum>(0x8005); typedef void (APIENTRYP PFNGLBLENDCOLOREXTPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); extern VTK_RENDERING_EXPORT PFNGLBLENDCOLOREXTPROC BlendColorEXT; //Definitions for GL_EXT_polygon_offset const GLenum POLYGON_OFFSET_EXT = static_cast<GLenum>(0x8037); const GLenum POLYGON_OFFSET_FACTOR_EXT = static_cast<GLenum>(0x8038); const GLenum POLYGON_OFFSET_BIAS_EXT = static_cast<GLenum>(0x8039); typedef void (APIENTRYP PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias); extern VTK_RENDERING_EXPORT PFNGLPOLYGONOFFSETEXTPROC PolygonOffsetEXT; //Definitions for GL_EXT_texture const GLenum ALPHA4_EXT = static_cast<GLenum>(0x803B); const GLenum ALPHA8_EXT = static_cast<GLenum>(0x803C); const GLenum ALPHA12_EXT = static_cast<GLenum>(0x803D); const GLenum ALPHA16_EXT = static_cast<GLenum>(0x803E); const GLenum LUMINANCE4_EXT = static_cast<GLenum>(0x803F); const GLenum LUMINANCE8_EXT = static_cast<GLenum>(0x8040); const GLenum LUMINANCE12_EXT = static_cast<GLenum>(0x8041); const GLenum LUMINANCE16_EXT = static_cast<GLenum>(0x8042); const GLenum LUMINANCE4_ALPHA4_EXT = static_cast<GLenum>(0x8043); const GLenum LUMINANCE6_ALPHA2_EXT = static_cast<GLenum>(0x8044); const GLenum LUMINANCE8_ALPHA8_EXT = static_cast<GLenum>(0x8045); const GLenum LUMINANCE12_ALPHA4_EXT = static_cast<GLenum>(0x8046); const GLenum LUMINANCE12_ALPHA12_EXT = static_cast<GLenum>(0x8047); const GLenum LUMINANCE16_ALPHA16_EXT = static_cast<GLenum>(0x8048); const GLenum INTENSITY_EXT = static_cast<GLenum>(0x8049); const GLenum INTENSITY4_EXT = static_cast<GLenum>(0x804A); const GLenum INTENSITY8_EXT = static_cast<GLenum>(0x804B); const GLenum INTENSITY12_EXT = static_cast<GLenum>(0x804C); const GLenum INTENSITY16_EXT = static_cast<GLenum>(0x804D); const GLenum RGB2_EXT = static_cast<GLenum>(0x804E); const GLenum RGB4_EXT = static_cast<GLenum>(0x804F); const GLenum RGB5_EXT = static_cast<GLenum>(0x8050); const GLenum RGB8_EXT = static_cast<GLenum>(0x8051); const GLenum RGB10_EXT = static_cast<GLenum>(0x8052); const GLenum RGB12_EXT = static_cast<GLenum>(0x8053); const GLenum RGB16_EXT = static_cast<GLenum>(0x8054); const GLenum RGBA2_EXT = static_cast<GLenum>(0x8055); const GLenum RGBA4_EXT = static_cast<GLenum>(0x8056); const GLenum RGB5_A1_EXT = static_cast<GLenum>(0x8057); const GLenum RGBA8_EXT = static_cast<GLenum>(0x8058); const GLenum RGB10_A2_EXT = static_cast<GLenum>(0x8059); const GLenum RGBA12_EXT = static_cast<GLenum>(0x805A); const GLenum RGBA16_EXT = static_cast<GLenum>(0x805B); const GLenum TEXTURE_RED_SIZE_EXT = static_cast<GLenum>(0x805C); const GLenum TEXTURE_GREEN_SIZE_EXT = static_cast<GLenum>(0x805D); const GLenum TEXTURE_BLUE_SIZE_EXT = static_cast<GLenum>(0x805E); const GLenum TEXTURE_ALPHA_SIZE_EXT = static_cast<GLenum>(0x805F); const GLenum TEXTURE_LUMINANCE_SIZE_EXT = static_cast<GLenum>(0x8060); const GLenum TEXTURE_INTENSITY_SIZE_EXT = static_cast<GLenum>(0x8061); const GLenum REPLACE_EXT = static_cast<GLenum>(0x8062); const GLenum PROXY_TEXTURE_1D_EXT = static_cast<GLenum>(0x8063); const GLenum PROXY_TEXTURE_2D_EXT = static_cast<GLenum>(0x8064); const GLenum TEXTURE_TOO_LARGE_EXT = static_cast<GLenum>(0x8065); //Definitions for GL_EXT_texture3D const GLenum PACK_SKIP_IMAGES_EXT = static_cast<GLenum>(0x806B); const GLenum PACK_IMAGE_HEIGHT_EXT = static_cast<GLenum>(0x806C); const GLenum UNPACK_SKIP_IMAGES_EXT = static_cast<GLenum>(0x806D); const GLenum UNPACK_IMAGE_HEIGHT_EXT = static_cast<GLenum>(0x806E); const GLenum TEXTURE_3D_EXT = static_cast<GLenum>(0x806F); const GLenum PROXY_TEXTURE_3D_EXT = static_cast<GLenum>(0x8070); const GLenum TEXTURE_DEPTH_EXT = static_cast<GLenum>(0x8071); const GLenum TEXTURE_WRAP_R_EXT = static_cast<GLenum>(0x8072); const GLenum MAX_3D_TEXTURE_SIZE_EXT = static_cast<GLenum>(0x8073); typedef void (APIENTRYP PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); extern VTK_RENDERING_EXPORT PFNGLTEXIMAGE3DEXTPROC TexImage3DEXT; extern VTK_RENDERING_EXPORT PFNGLTEXSUBIMAGE3DEXTPROC TexSubImage3DEXT; //Definitions for GL_SGIS_texture_filter4 const GLenum FILTER4_SGIS = static_cast<GLenum>(0x8146); const GLenum TEXTURE_FILTER4_SIZE_SGIS = static_cast<GLenum>(0x8147); typedef void (APIENTRYP PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat *weights); typedef void (APIENTRYP PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights); extern VTK_RENDERING_EXPORT PFNGLGETTEXFILTERFUNCSGISPROC GetTexFilterFuncSGIS; extern VTK_RENDERING_EXPORT PFNGLTEXFILTERFUNCSGISPROC TexFilterFuncSGIS; //Definitions for GL_EXT_subtexture typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); extern VTK_RENDERING_EXPORT PFNGLTEXSUBIMAGE1DEXTPROC TexSubImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLTEXSUBIMAGE2DEXTPROC TexSubImage2DEXT; //Definitions for GL_EXT_copy_texture typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); extern VTK_RENDERING_EXPORT PFNGLCOPYTEXIMAGE1DEXTPROC CopyTexImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYTEXIMAGE2DEXTPROC CopyTexImage2DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYTEXSUBIMAGE1DEXTPROC CopyTexSubImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYTEXSUBIMAGE2DEXTPROC CopyTexSubImage2DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYTEXSUBIMAGE3DEXTPROC CopyTexSubImage3DEXT; //Definitions for GL_EXT_histogram const GLenum HISTOGRAM_EXT = static_cast<GLenum>(0x8024); const GLenum PROXY_HISTOGRAM_EXT = static_cast<GLenum>(0x8025); const GLenum HISTOGRAM_WIDTH_EXT = static_cast<GLenum>(0x8026); const GLenum HISTOGRAM_FORMAT_EXT = static_cast<GLenum>(0x8027); const GLenum HISTOGRAM_RED_SIZE_EXT = static_cast<GLenum>(0x8028); const GLenum HISTOGRAM_GREEN_SIZE_EXT = static_cast<GLenum>(0x8029); const GLenum HISTOGRAM_BLUE_SIZE_EXT = static_cast<GLenum>(0x802A); const GLenum HISTOGRAM_ALPHA_SIZE_EXT = static_cast<GLenum>(0x802B); const GLenum HISTOGRAM_LUMINANCE_SIZE_EXT = static_cast<GLenum>(0x802C); const GLenum HISTOGRAM_SINK_EXT = static_cast<GLenum>(0x802D); const GLenum MINMAX_EXT = static_cast<GLenum>(0x802E); const GLenum MINMAX_FORMAT_EXT = static_cast<GLenum>(0x802F); const GLenum MINMAX_SINK_EXT = static_cast<GLenum>(0x8030); const GLenum TABLE_TOO_LARGE_EXT = static_cast<GLenum>(0x8031); typedef void (APIENTRYP PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); typedef void (APIENTRYP PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink); typedef void (APIENTRYP PFNGLRESETHISTOGRAMEXTPROC) (GLenum target); typedef void (APIENTRYP PFNGLRESETMINMAXEXTPROC) (GLenum target); extern VTK_RENDERING_EXPORT PFNGLGETHISTOGRAMEXTPROC GetHistogramEXT; extern VTK_RENDERING_EXPORT PFNGLGETHISTOGRAMPARAMETERFVEXTPROC GetHistogramParameterfvEXT; extern VTK_RENDERING_EXPORT PFNGLGETHISTOGRAMPARAMETERIVEXTPROC GetHistogramParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLGETMINMAXEXTPROC GetMinmaxEXT; extern VTK_RENDERING_EXPORT PFNGLGETMINMAXPARAMETERFVEXTPROC GetMinmaxParameterfvEXT; extern VTK_RENDERING_EXPORT PFNGLGETMINMAXPARAMETERIVEXTPROC GetMinmaxParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLHISTOGRAMEXTPROC HistogramEXT; extern VTK_RENDERING_EXPORT PFNGLMINMAXEXTPROC MinmaxEXT; extern VTK_RENDERING_EXPORT PFNGLRESETHISTOGRAMEXTPROC ResetHistogramEXT; extern VTK_RENDERING_EXPORT PFNGLRESETMINMAXEXTPROC ResetMinmaxEXT; //Definitions for GL_EXT_convolution const GLenum CONVOLUTION_1D_EXT = static_cast<GLenum>(0x8010); const GLenum CONVOLUTION_2D_EXT = static_cast<GLenum>(0x8011); const GLenum SEPARABLE_2D_EXT = static_cast<GLenum>(0x8012); const GLenum CONVOLUTION_BORDER_MODE_EXT = static_cast<GLenum>(0x8013); const GLenum CONVOLUTION_FILTER_SCALE_EXT = static_cast<GLenum>(0x8014); const GLenum CONVOLUTION_FILTER_BIAS_EXT = static_cast<GLenum>(0x8015); const GLenum REDUCE_EXT = static_cast<GLenum>(0x8016); const GLenum CONVOLUTION_FORMAT_EXT = static_cast<GLenum>(0x8017); const GLenum CONVOLUTION_WIDTH_EXT = static_cast<GLenum>(0x8018); const GLenum CONVOLUTION_HEIGHT_EXT = static_cast<GLenum>(0x8019); const GLenum MAX_CONVOLUTION_WIDTH_EXT = static_cast<GLenum>(0x801A); const GLenum MAX_CONVOLUTION_HEIGHT_EXT = static_cast<GLenum>(0x801B); const GLenum POST_CONVOLUTION_RED_SCALE_EXT = static_cast<GLenum>(0x801C); const GLenum POST_CONVOLUTION_GREEN_SCALE_EXT = static_cast<GLenum>(0x801D); const GLenum POST_CONVOLUTION_BLUE_SCALE_EXT = static_cast<GLenum>(0x801E); const GLenum POST_CONVOLUTION_ALPHA_SCALE_EXT = static_cast<GLenum>(0x801F); const GLenum POST_CONVOLUTION_RED_BIAS_EXT = static_cast<GLenum>(0x8020); const GLenum POST_CONVOLUTION_GREEN_BIAS_EXT = static_cast<GLenum>(0x8021); const GLenum POST_CONVOLUTION_BLUE_BIAS_EXT = static_cast<GLenum>(0x8022); const GLenum POST_CONVOLUTION_ALPHA_BIAS_EXT = static_cast<GLenum>(0x8023); typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat params); typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint params); typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image); typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column); extern VTK_RENDERING_EXPORT PFNGLCONVOLUTIONFILTER1DEXTPROC ConvolutionFilter1DEXT; extern VTK_RENDERING_EXPORT PFNGLCONVOLUTIONFILTER2DEXTPROC ConvolutionFilter2DEXT; extern VTK_RENDERING_EXPORT PFNGLCONVOLUTIONPARAMETERFEXTPROC ConvolutionParameterfEXT; extern VTK_RENDERING_EXPORT PFNGLCONVOLUTIONPARAMETERFVEXTPROC ConvolutionParameterfvEXT; extern VTK_RENDERING_EXPORT PFNGLCONVOLUTIONPARAMETERIEXTPROC ConvolutionParameteriEXT; extern VTK_RENDERING_EXPORT PFNGLCONVOLUTIONPARAMETERIVEXTPROC ConvolutionParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC CopyConvolutionFilter1DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC CopyConvolutionFilter2DEXT; extern VTK_RENDERING_EXPORT PFNGLGETCONVOLUTIONFILTEREXTPROC GetConvolutionFilterEXT; extern VTK_RENDERING_EXPORT PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC GetConvolutionParameterfvEXT; extern VTK_RENDERING_EXPORT PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC GetConvolutionParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLGETSEPARABLEFILTEREXTPROC GetSeparableFilterEXT; extern VTK_RENDERING_EXPORT PFNGLSEPARABLEFILTER2DEXTPROC SeparableFilter2DEXT; //Definitions for GL_SGI_color_matrix const GLenum COLOR_MATRIX_SGI = static_cast<GLenum>(0x80B1); const GLenum COLOR_MATRIX_STACK_DEPTH_SGI = static_cast<GLenum>(0x80B2); const GLenum MAX_COLOR_MATRIX_STACK_DEPTH_SGI = static_cast<GLenum>(0x80B3); const GLenum POST_COLOR_MATRIX_RED_SCALE_SGI = static_cast<GLenum>(0x80B4); const GLenum POST_COLOR_MATRIX_GREEN_SCALE_SGI = static_cast<GLenum>(0x80B5); const GLenum POST_COLOR_MATRIX_BLUE_SCALE_SGI = static_cast<GLenum>(0x80B6); const GLenum POST_COLOR_MATRIX_ALPHA_SCALE_SGI = static_cast<GLenum>(0x80B7); const GLenum POST_COLOR_MATRIX_RED_BIAS_SGI = static_cast<GLenum>(0x80B8); const GLenum POST_COLOR_MATRIX_GREEN_BIAS_SGI = static_cast<GLenum>(0x80B9); const GLenum POST_COLOR_MATRIX_BLUE_BIAS_SGI = static_cast<GLenum>(0x80BA); const GLenum POST_COLOR_MATRIX_ALPHA_BIAS_SGI = static_cast<GLenum>(0x80BB); //Definitions for GL_SGI_color_table const GLenum COLOR_TABLE_SGI = static_cast<GLenum>(0x80D0); const GLenum POST_CONVOLUTION_COLOR_TABLE_SGI = static_cast<GLenum>(0x80D1); const GLenum POST_COLOR_MATRIX_COLOR_TABLE_SGI = static_cast<GLenum>(0x80D2); const GLenum PROXY_COLOR_TABLE_SGI = static_cast<GLenum>(0x80D3); const GLenum PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI = static_cast<GLenum>(0x80D4); const GLenum PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI = static_cast<GLenum>(0x80D5); const GLenum COLOR_TABLE_SCALE_SGI = static_cast<GLenum>(0x80D6); const GLenum COLOR_TABLE_BIAS_SGI = static_cast<GLenum>(0x80D7); const GLenum COLOR_TABLE_FORMAT_SGI = static_cast<GLenum>(0x80D8); const GLenum COLOR_TABLE_WIDTH_SGI = static_cast<GLenum>(0x80D9); const GLenum COLOR_TABLE_RED_SIZE_SGI = static_cast<GLenum>(0x80DA); const GLenum COLOR_TABLE_GREEN_SIZE_SGI = static_cast<GLenum>(0x80DB); const GLenum COLOR_TABLE_BLUE_SIZE_SGI = static_cast<GLenum>(0x80DC); const GLenum COLOR_TABLE_ALPHA_SIZE_SGI = static_cast<GLenum>(0x80DD); const GLenum COLOR_TABLE_LUMINANCE_SIZE_SGI = static_cast<GLenum>(0x80DE); const GLenum COLOR_TABLE_INTENSITY_SIZE_SGI = static_cast<GLenum>(0x80DF); typedef void (APIENTRYP PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); typedef void (APIENTRYP PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table); typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint *params); extern VTK_RENDERING_EXPORT PFNGLCOLORTABLESGIPROC ColorTableSGI; extern VTK_RENDERING_EXPORT PFNGLCOLORTABLEPARAMETERFVSGIPROC ColorTableParameterfvSGI; extern VTK_RENDERING_EXPORT PFNGLCOLORTABLEPARAMETERIVSGIPROC ColorTableParameterivSGI; extern VTK_RENDERING_EXPORT PFNGLCOPYCOLORTABLESGIPROC CopyColorTableSGI; extern VTK_RENDERING_EXPORT PFNGLGETCOLORTABLESGIPROC GetColorTableSGI; extern VTK_RENDERING_EXPORT PFNGLGETCOLORTABLEPARAMETERFVSGIPROC GetColorTableParameterfvSGI; extern VTK_RENDERING_EXPORT PFNGLGETCOLORTABLEPARAMETERIVSGIPROC GetColorTableParameterivSGI; //Definitions for GL_SGIS_pixel_texture const GLenum PIXEL_TEXTURE_SGIS = static_cast<GLenum>(0x8353); const GLenum PIXEL_FRAGMENT_RGB_SOURCE_SGIS = static_cast<GLenum>(0x8354); const GLenum PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS = static_cast<GLenum>(0x8355); const GLenum PIXEL_GROUP_COLOR_SGIS = static_cast<GLenum>(0x8356); typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum pname, GLint param); typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, GLfloat *params); extern VTK_RENDERING_EXPORT PFNGLPIXELTEXGENPARAMETERISGISPROC PixelTexGenParameteriSGIS; extern VTK_RENDERING_EXPORT PFNGLPIXELTEXGENPARAMETERIVSGISPROC PixelTexGenParameterivSGIS; extern VTK_RENDERING_EXPORT PFNGLPIXELTEXGENPARAMETERFSGISPROC PixelTexGenParameterfSGIS; extern VTK_RENDERING_EXPORT PFNGLPIXELTEXGENPARAMETERFVSGISPROC PixelTexGenParameterfvSGIS; extern VTK_RENDERING_EXPORT PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC GetPixelTexGenParameterivSGIS; extern VTK_RENDERING_EXPORT PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC GetPixelTexGenParameterfvSGIS; //Definitions for GL_SGIX_pixel_texture const GLenum PIXEL_TEX_GEN_SGIX = static_cast<GLenum>(0x8139); const GLenum PIXEL_TEX_GEN_MODE_SGIX = static_cast<GLenum>(0x832B); typedef void (APIENTRYP PFNGLPIXELTEXGENSGIXPROC) (GLenum mode); extern VTK_RENDERING_EXPORT PFNGLPIXELTEXGENSGIXPROC PixelTexGenSGIX; //Definitions for GL_SGIS_texture4D const GLenum PACK_SKIP_VOLUMES_SGIS = static_cast<GLenum>(0x8130); const GLenum PACK_IMAGE_DEPTH_SGIS = static_cast<GLenum>(0x8131); const GLenum UNPACK_SKIP_VOLUMES_SGIS = static_cast<GLenum>(0x8132); const GLenum UNPACK_IMAGE_DEPTH_SGIS = static_cast<GLenum>(0x8133); const GLenum TEXTURE_4D_SGIS = static_cast<GLenum>(0x8134); const GLenum PROXY_TEXTURE_4D_SGIS = static_cast<GLenum>(0x8135); const GLenum TEXTURE_4DSIZE_SGIS = static_cast<GLenum>(0x8136); const GLenum TEXTURE_WRAP_Q_SGIS = static_cast<GLenum>(0x8137); const GLenum MAX_4D_TEXTURE_SIZE_SGIS = static_cast<GLenum>(0x8138); const GLenum TEXTURE_4D_BINDING_SGIS = static_cast<GLenum>(0x814F); typedef void (APIENTRYP PFNGLTEXIMAGE4DSGISPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const GLvoid *pixels); extern VTK_RENDERING_EXPORT PFNGLTEXIMAGE4DSGISPROC TexImage4DSGIS; extern VTK_RENDERING_EXPORT PFNGLTEXSUBIMAGE4DSGISPROC TexSubImage4DSGIS; //Definitions for GL_SGI_texture_color_table const GLenum TEXTURE_COLOR_TABLE_SGI = static_cast<GLenum>(0x80BC); const GLenum PROXY_TEXTURE_COLOR_TABLE_SGI = static_cast<GLenum>(0x80BD); //Definitions for GL_EXT_cmyka const GLenum CMYK_EXT = static_cast<GLenum>(0x800C); const GLenum CMYKA_EXT = static_cast<GLenum>(0x800D); const GLenum PACK_CMYK_HINT_EXT = static_cast<GLenum>(0x800E); const GLenum UNPACK_CMYK_HINT_EXT = static_cast<GLenum>(0x800F); //Definitions for GL_EXT_texture_object const GLenum TEXTURE_PRIORITY_EXT = static_cast<GLenum>(0x8066); const GLenum TEXTURE_RESIDENT_EXT = static_cast<GLenum>(0x8067); const GLenum TEXTURE_1D_BINDING_EXT = static_cast<GLenum>(0x8068); const GLenum TEXTURE_2D_BINDING_EXT = static_cast<GLenum>(0x8069); const GLenum TEXTURE_3D_BINDING_EXT = static_cast<GLenum>(0x806A); typedef GLboolean (APIENTRYP PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint *textures, GLboolean *residences); typedef void (APIENTRYP PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture); typedef void (APIENTRYP PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint *textures); typedef void (APIENTRYP PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint *textures); typedef GLboolean (APIENTRYP PFNGLISTEXTUREEXTPROC) (GLuint texture); typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities); extern VTK_RENDERING_EXPORT PFNGLARETEXTURESRESIDENTEXTPROC AreTexturesResidentEXT; extern VTK_RENDERING_EXPORT PFNGLBINDTEXTUREEXTPROC BindTextureEXT; extern VTK_RENDERING_EXPORT PFNGLDELETETEXTURESEXTPROC DeleteTexturesEXT; extern VTK_RENDERING_EXPORT PFNGLGENTEXTURESEXTPROC GenTexturesEXT; extern VTK_RENDERING_EXPORT PFNGLISTEXTUREEXTPROC IsTextureEXT; extern VTK_RENDERING_EXPORT PFNGLPRIORITIZETEXTURESEXTPROC PrioritizeTexturesEXT; //Definitions for GL_SGIS_detail_texture const GLenum DETAIL_TEXTURE_2D_SGIS = static_cast<GLenum>(0x8095); const GLenum DETAIL_TEXTURE_2D_BINDING_SGIS = static_cast<GLenum>(0x8096); const GLenum LINEAR_DETAIL_SGIS = static_cast<GLenum>(0x8097); const GLenum LINEAR_DETAIL_ALPHA_SGIS = static_cast<GLenum>(0x8098); const GLenum LINEAR_DETAIL_COLOR_SGIS = static_cast<GLenum>(0x8099); const GLenum DETAIL_TEXTURE_LEVEL_SGIS = static_cast<GLenum>(0x809A); const GLenum DETAIL_TEXTURE_MODE_SGIS = static_cast<GLenum>(0x809B); const GLenum DETAIL_TEXTURE_FUNC_POINTS_SGIS = static_cast<GLenum>(0x809C); typedef void (APIENTRYP PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points); typedef void (APIENTRYP PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat *points); extern VTK_RENDERING_EXPORT PFNGLDETAILTEXFUNCSGISPROC DetailTexFuncSGIS; extern VTK_RENDERING_EXPORT PFNGLGETDETAILTEXFUNCSGISPROC GetDetailTexFuncSGIS; //Definitions for GL_SGIS_sharpen_texture const GLenum LINEAR_SHARPEN_SGIS = static_cast<GLenum>(0x80AD); const GLenum LINEAR_SHARPEN_ALPHA_SGIS = static_cast<GLenum>(0x80AE); const GLenum LINEAR_SHARPEN_COLOR_SGIS = static_cast<GLenum>(0x80AF); const GLenum SHARPEN_TEXTURE_FUNC_POINTS_SGIS = static_cast<GLenum>(0x80B0); typedef void (APIENTRYP PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points); typedef void (APIENTRYP PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat *points); extern VTK_RENDERING_EXPORT PFNGLSHARPENTEXFUNCSGISPROC SharpenTexFuncSGIS; extern VTK_RENDERING_EXPORT PFNGLGETSHARPENTEXFUNCSGISPROC GetSharpenTexFuncSGIS; //Definitions for GL_EXT_packed_pixels const GLenum UNSIGNED_BYTE_3_3_2_EXT = static_cast<GLenum>(0x8032); const GLenum UNSIGNED_SHORT_4_4_4_4_EXT = static_cast<GLenum>(0x8033); const GLenum UNSIGNED_SHORT_5_5_5_1_EXT = static_cast<GLenum>(0x8034); const GLenum UNSIGNED_INT_8_8_8_8_EXT = static_cast<GLenum>(0x8035); const GLenum UNSIGNED_INT_10_10_10_2_EXT = static_cast<GLenum>(0x8036); //Definitions for GL_SGIS_texture_lod const GLenum TEXTURE_MIN_LOD_SGIS = static_cast<GLenum>(0x813A); const GLenum TEXTURE_MAX_LOD_SGIS = static_cast<GLenum>(0x813B); const GLenum TEXTURE_BASE_LEVEL_SGIS = static_cast<GLenum>(0x813C); const GLenum TEXTURE_MAX_LEVEL_SGIS = static_cast<GLenum>(0x813D); //Definitions for GL_SGIS_multisample const GLenum MULTISAMPLE_SGIS = static_cast<GLenum>(0x809D); const GLenum SAMPLE_ALPHA_TO_MASK_SGIS = static_cast<GLenum>(0x809E); const GLenum SAMPLE_ALPHA_TO_ONE_SGIS = static_cast<GLenum>(0x809F); const GLenum SAMPLE_MASK_SGIS = static_cast<GLenum>(0x80A0); const GLenum _1PASS_SGIS = static_cast<GLenum>(0x80A1); const GLenum _2PASS_0_SGIS = static_cast<GLenum>(0x80A2); const GLenum _2PASS_1_SGIS = static_cast<GLenum>(0x80A3); const GLenum _4PASS_0_SGIS = static_cast<GLenum>(0x80A4); const GLenum _4PASS_1_SGIS = static_cast<GLenum>(0x80A5); const GLenum _4PASS_2_SGIS = static_cast<GLenum>(0x80A6); const GLenum _4PASS_3_SGIS = static_cast<GLenum>(0x80A7); const GLenum SAMPLE_BUFFERS_SGIS = static_cast<GLenum>(0x80A8); const GLenum SAMPLES_SGIS = static_cast<GLenum>(0x80A9); const GLenum SAMPLE_MASK_VALUE_SGIS = static_cast<GLenum>(0x80AA); const GLenum SAMPLE_MASK_INVERT_SGIS = static_cast<GLenum>(0x80AB); const GLenum SAMPLE_PATTERN_SGIS = static_cast<GLenum>(0x80AC); typedef void (APIENTRYP PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert); typedef void (APIENTRYP PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern); extern VTK_RENDERING_EXPORT PFNGLSAMPLEMASKSGISPROC SampleMaskSGIS; extern VTK_RENDERING_EXPORT PFNGLSAMPLEPATTERNSGISPROC SamplePatternSGIS; //Definitions for GL_EXT_rescale_normal const GLenum RESCALE_NORMAL_EXT = static_cast<GLenum>(0x803A); //Definitions for GL_EXT_vertex_array const GLenum VERTEX_ARRAY_EXT = static_cast<GLenum>(0x8074); const GLenum NORMAL_ARRAY_EXT = static_cast<GLenum>(0x8075); const GLenum COLOR_ARRAY_EXT = static_cast<GLenum>(0x8076); const GLenum INDEX_ARRAY_EXT = static_cast<GLenum>(0x8077); const GLenum TEXTURE_COORD_ARRAY_EXT = static_cast<GLenum>(0x8078); const GLenum EDGE_FLAG_ARRAY_EXT = static_cast<GLenum>(0x8079); const GLenum VERTEX_ARRAY_SIZE_EXT = static_cast<GLenum>(0x807A); const GLenum VERTEX_ARRAY_TYPE_EXT = static_cast<GLenum>(0x807B); const GLenum VERTEX_ARRAY_STRIDE_EXT = static_cast<GLenum>(0x807C); const GLenum VERTEX_ARRAY_COUNT_EXT = static_cast<GLenum>(0x807D); const GLenum NORMAL_ARRAY_TYPE_EXT = static_cast<GLenum>(0x807E); const GLenum NORMAL_ARRAY_STRIDE_EXT = static_cast<GLenum>(0x807F); const GLenum NORMAL_ARRAY_COUNT_EXT = static_cast<GLenum>(0x8080); const GLenum COLOR_ARRAY_SIZE_EXT = static_cast<GLenum>(0x8081); const GLenum COLOR_ARRAY_TYPE_EXT = static_cast<GLenum>(0x8082); const GLenum COLOR_ARRAY_STRIDE_EXT = static_cast<GLenum>(0x8083); const GLenum COLOR_ARRAY_COUNT_EXT = static_cast<GLenum>(0x8084); const GLenum INDEX_ARRAY_TYPE_EXT = static_cast<GLenum>(0x8085); const GLenum INDEX_ARRAY_STRIDE_EXT = static_cast<GLenum>(0x8086); const GLenum INDEX_ARRAY_COUNT_EXT = static_cast<GLenum>(0x8087); const GLenum TEXTURE_COORD_ARRAY_SIZE_EXT = static_cast<GLenum>(0x8088); const GLenum TEXTURE_COORD_ARRAY_TYPE_EXT = static_cast<GLenum>(0x8089); const GLenum TEXTURE_COORD_ARRAY_STRIDE_EXT = static_cast<GLenum>(0x808A); const GLenum TEXTURE_COORD_ARRAY_COUNT_EXT = static_cast<GLenum>(0x808B); const GLenum EDGE_FLAG_ARRAY_STRIDE_EXT = static_cast<GLenum>(0x808C); const GLenum EDGE_FLAG_ARRAY_COUNT_EXT = static_cast<GLenum>(0x808D); const GLenum VERTEX_ARRAY_POINTER_EXT = static_cast<GLenum>(0x808E); const GLenum NORMAL_ARRAY_POINTER_EXT = static_cast<GLenum>(0x808F); const GLenum COLOR_ARRAY_POINTER_EXT = static_cast<GLenum>(0x8090); const GLenum INDEX_ARRAY_POINTER_EXT = static_cast<GLenum>(0x8091); const GLenum TEXTURE_COORD_ARRAY_POINTER_EXT = static_cast<GLenum>(0x8092); const GLenum EDGE_FLAG_ARRAY_POINTER_EXT = static_cast<GLenum>(0x8093); typedef void (APIENTRYP PFNGLARRAYELEMENTEXTPROC) (GLint i); typedef void (APIENTRYP PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); typedef void (APIENTRYP PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count); typedef void (APIENTRYP PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer); typedef void (APIENTRYP PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params); typedef void (APIENTRYP PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); typedef void (APIENTRYP PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); typedef void (APIENTRYP PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); typedef void (APIENTRYP PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); extern VTK_RENDERING_EXPORT PFNGLARRAYELEMENTEXTPROC ArrayElementEXT; extern VTK_RENDERING_EXPORT PFNGLCOLORPOINTEREXTPROC ColorPointerEXT; extern VTK_RENDERING_EXPORT PFNGLDRAWARRAYSEXTPROC DrawArraysEXT; extern VTK_RENDERING_EXPORT PFNGLEDGEFLAGPOINTEREXTPROC EdgeFlagPointerEXT; extern VTK_RENDERING_EXPORT PFNGLGETPOINTERVEXTPROC GetPointervEXT; extern VTK_RENDERING_EXPORT PFNGLINDEXPOINTEREXTPROC IndexPointerEXT; extern VTK_RENDERING_EXPORT PFNGLNORMALPOINTEREXTPROC NormalPointerEXT; extern VTK_RENDERING_EXPORT PFNGLTEXCOORDPOINTEREXTPROC TexCoordPointerEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXPOINTEREXTPROC VertexPointerEXT; //Definitions for GL_EXT_misc_attribute //Definitions for GL_SGIS_generate_mipmap const GLenum GENERATE_MIPMAP_SGIS = static_cast<GLenum>(0x8191); const GLenum GENERATE_MIPMAP_HINT_SGIS = static_cast<GLenum>(0x8192); //Definitions for GL_SGIX_clipmap const GLenum LINEAR_CLIPMAP_LINEAR_SGIX = static_cast<GLenum>(0x8170); const GLenum TEXTURE_CLIPMAP_CENTER_SGIX = static_cast<GLenum>(0x8171); const GLenum TEXTURE_CLIPMAP_FRAME_SGIX = static_cast<GLenum>(0x8172); const GLenum TEXTURE_CLIPMAP_OFFSET_SGIX = static_cast<GLenum>(0x8173); const GLenum TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX = static_cast<GLenum>(0x8174); const GLenum TEXTURE_CLIPMAP_LOD_OFFSET_SGIX = static_cast<GLenum>(0x8175); const GLenum TEXTURE_CLIPMAP_DEPTH_SGIX = static_cast<GLenum>(0x8176); const GLenum MAX_CLIPMAP_DEPTH_SGIX = static_cast<GLenum>(0x8177); const GLenum MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX = static_cast<GLenum>(0x8178); const GLenum NEAREST_CLIPMAP_NEAREST_SGIX = static_cast<GLenum>(0x844D); const GLenum NEAREST_CLIPMAP_LINEAR_SGIX = static_cast<GLenum>(0x844E); const GLenum LINEAR_CLIPMAP_NEAREST_SGIX = static_cast<GLenum>(0x844F); //Definitions for GL_SGIX_shadow const GLenum TEXTURE_COMPARE_SGIX = static_cast<GLenum>(0x819A); const GLenum TEXTURE_COMPARE_OPERATOR_SGIX = static_cast<GLenum>(0x819B); const GLenum TEXTURE_LEQUAL_R_SGIX = static_cast<GLenum>(0x819C); const GLenum TEXTURE_GEQUAL_R_SGIX = static_cast<GLenum>(0x819D); //Definitions for GL_SGIS_texture_edge_clamp const GLenum CLAMP_TO_EDGE_SGIS = static_cast<GLenum>(0x812F); //Definitions for GL_SGIS_texture_border_clamp const GLenum CLAMP_TO_BORDER_SGIS = static_cast<GLenum>(0x812D); //Definitions for GL_EXT_blend_minmax const GLenum FUNC_ADD_EXT = static_cast<GLenum>(0x8006); const GLenum MIN_EXT = static_cast<GLenum>(0x8007); const GLenum MAX_EXT = static_cast<GLenum>(0x8008); const GLenum BLEND_EQUATION_EXT = static_cast<GLenum>(0x8009); typedef void (APIENTRYP PFNGLBLENDEQUATIONEXTPROC) (GLenum mode); extern VTK_RENDERING_EXPORT PFNGLBLENDEQUATIONEXTPROC BlendEquationEXT; //Definitions for GL_EXT_blend_subtract const GLenum FUNC_SUBTRACT_EXT = static_cast<GLenum>(0x800A); const GLenum FUNC_REVERSE_SUBTRACT_EXT = static_cast<GLenum>(0x800B); //Definitions for GL_EXT_blend_logic_op //Definitions for GL_SGIX_interlace const GLenum INTERLACE_SGIX = static_cast<GLenum>(0x8094); //Definitions for GL_SGIX_pixel_tiles const GLenum PIXEL_TILE_BEST_ALIGNMENT_SGIX = static_cast<GLenum>(0x813E); const GLenum PIXEL_TILE_CACHE_INCREMENT_SGIX = static_cast<GLenum>(0x813F); const GLenum PIXEL_TILE_WIDTH_SGIX = static_cast<GLenum>(0x8140); const GLenum PIXEL_TILE_HEIGHT_SGIX = static_cast<GLenum>(0x8141); const GLenum PIXEL_TILE_GRID_WIDTH_SGIX = static_cast<GLenum>(0x8142); const GLenum PIXEL_TILE_GRID_HEIGHT_SGIX = static_cast<GLenum>(0x8143); const GLenum PIXEL_TILE_GRID_DEPTH_SGIX = static_cast<GLenum>(0x8144); const GLenum PIXEL_TILE_CACHE_SIZE_SGIX = static_cast<GLenum>(0x8145); //Definitions for GL_SGIS_texture_select const GLenum DUAL_ALPHA4_SGIS = static_cast<GLenum>(0x8110); const GLenum DUAL_ALPHA8_SGIS = static_cast<GLenum>(0x8111); const GLenum DUAL_ALPHA12_SGIS = static_cast<GLenum>(0x8112); const GLenum DUAL_ALPHA16_SGIS = static_cast<GLenum>(0x8113); const GLenum DUAL_LUMINANCE4_SGIS = static_cast<GLenum>(0x8114); const GLenum DUAL_LUMINANCE8_SGIS = static_cast<GLenum>(0x8115); const GLenum DUAL_LUMINANCE12_SGIS = static_cast<GLenum>(0x8116); const GLenum DUAL_LUMINANCE16_SGIS = static_cast<GLenum>(0x8117); const GLenum DUAL_INTENSITY4_SGIS = static_cast<GLenum>(0x8118); const GLenum DUAL_INTENSITY8_SGIS = static_cast<GLenum>(0x8119); const GLenum DUAL_INTENSITY12_SGIS = static_cast<GLenum>(0x811A); const GLenum DUAL_INTENSITY16_SGIS = static_cast<GLenum>(0x811B); const GLenum DUAL_LUMINANCE_ALPHA4_SGIS = static_cast<GLenum>(0x811C); const GLenum DUAL_LUMINANCE_ALPHA8_SGIS = static_cast<GLenum>(0x811D); const GLenum QUAD_ALPHA4_SGIS = static_cast<GLenum>(0x811E); const GLenum QUAD_ALPHA8_SGIS = static_cast<GLenum>(0x811F); const GLenum QUAD_LUMINANCE4_SGIS = static_cast<GLenum>(0x8120); const GLenum QUAD_LUMINANCE8_SGIS = static_cast<GLenum>(0x8121); const GLenum QUAD_INTENSITY4_SGIS = static_cast<GLenum>(0x8122); const GLenum QUAD_INTENSITY8_SGIS = static_cast<GLenum>(0x8123); const GLenum DUAL_TEXTURE_SELECT_SGIS = static_cast<GLenum>(0x8124); const GLenum QUAD_TEXTURE_SELECT_SGIS = static_cast<GLenum>(0x8125); //Definitions for GL_SGIX_sprite const GLenum SPRITE_SGIX = static_cast<GLenum>(0x8148); const GLenum SPRITE_MODE_SGIX = static_cast<GLenum>(0x8149); const GLenum SPRITE_AXIS_SGIX = static_cast<GLenum>(0x814A); const GLenum SPRITE_TRANSLATION_SGIX = static_cast<GLenum>(0x814B); const GLenum SPRITE_AXIAL_SGIX = static_cast<GLenum>(0x814C); const GLenum SPRITE_OBJECT_ALIGNED_SGIX = static_cast<GLenum>(0x814D); const GLenum SPRITE_EYE_ALIGNED_SGIX = static_cast<GLenum>(0x814E); typedef void (APIENTRYP PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param); typedef void (APIENTRYP PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, const GLint *params); extern VTK_RENDERING_EXPORT PFNGLSPRITEPARAMETERFSGIXPROC SpriteParameterfSGIX; extern VTK_RENDERING_EXPORT PFNGLSPRITEPARAMETERFVSGIXPROC SpriteParameterfvSGIX; extern VTK_RENDERING_EXPORT PFNGLSPRITEPARAMETERISGIXPROC SpriteParameteriSGIX; extern VTK_RENDERING_EXPORT PFNGLSPRITEPARAMETERIVSGIXPROC SpriteParameterivSGIX; //Definitions for GL_SGIX_texture_multi_buffer const GLenum TEXTURE_MULTI_BUFFER_HINT_SGIX = static_cast<GLenum>(0x812E); //Definitions for GL_EXT_point_parameters const GLenum POINT_SIZE_MIN_EXT = static_cast<GLenum>(0x8126); const GLenum POINT_SIZE_MAX_EXT = static_cast<GLenum>(0x8127); const GLenum POINT_FADE_THRESHOLD_SIZE_EXT = static_cast<GLenum>(0x8128); const GLenum DISTANCE_ATTENUATION_EXT = static_cast<GLenum>(0x8129); typedef void (APIENTRYP PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params); extern VTK_RENDERING_EXPORT PFNGLPOINTPARAMETERFEXTPROC PointParameterfEXT; extern VTK_RENDERING_EXPORT PFNGLPOINTPARAMETERFVEXTPROC PointParameterfvEXT; //Definitions for GL_SGIS_point_parameters const GLenum POINT_SIZE_MIN_SGIS = static_cast<GLenum>(0x8126); const GLenum POINT_SIZE_MAX_SGIS = static_cast<GLenum>(0x8127); const GLenum POINT_FADE_THRESHOLD_SIZE_SGIS = static_cast<GLenum>(0x8128); const GLenum DISTANCE_ATTENUATION_SGIS = static_cast<GLenum>(0x8129); typedef void (APIENTRYP PFNGLPOINTPARAMETERFSGISPROC) (GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLPOINTPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params); extern VTK_RENDERING_EXPORT PFNGLPOINTPARAMETERFSGISPROC PointParameterfSGIS; extern VTK_RENDERING_EXPORT PFNGLPOINTPARAMETERFVSGISPROC PointParameterfvSGIS; //Definitions for GL_SGIX_instruments const GLenum INSTRUMENT_BUFFER_POINTER_SGIX = static_cast<GLenum>(0x8180); const GLenum INSTRUMENT_MEASUREMENTS_SGIX = static_cast<GLenum>(0x8181); typedef GLint (APIENTRYP PFNGLGETINSTRUMENTSSGIXPROC) (void); typedef void (APIENTRYP PFNGLINSTRUMENTSBUFFERSGIXPROC) (GLsizei size, GLint *buffer); typedef GLint (APIENTRYP PFNGLPOLLINSTRUMENTSSGIXPROC) (GLint *marker_p); typedef void (APIENTRYP PFNGLREADINSTRUMENTSSGIXPROC) (GLint marker); typedef void (APIENTRYP PFNGLSTARTINSTRUMENTSSGIXPROC) (void); typedef void (APIENTRYP PFNGLSTOPINSTRUMENTSSGIXPROC) (GLint marker); extern VTK_RENDERING_EXPORT PFNGLGETINSTRUMENTSSGIXPROC GetInstrumentsSGIX; extern VTK_RENDERING_EXPORT PFNGLINSTRUMENTSBUFFERSGIXPROC InstrumentsBufferSGIX; extern VTK_RENDERING_EXPORT PFNGLPOLLINSTRUMENTSSGIXPROC PollInstrumentsSGIX; extern VTK_RENDERING_EXPORT PFNGLREADINSTRUMENTSSGIXPROC ReadInstrumentsSGIX; extern VTK_RENDERING_EXPORT PFNGLSTARTINSTRUMENTSSGIXPROC StartInstrumentsSGIX; extern VTK_RENDERING_EXPORT PFNGLSTOPINSTRUMENTSSGIXPROC StopInstrumentsSGIX; //Definitions for GL_SGIX_texture_scale_bias const GLenum POST_TEXTURE_FILTER_BIAS_SGIX = static_cast<GLenum>(0x8179); const GLenum POST_TEXTURE_FILTER_SCALE_SGIX = static_cast<GLenum>(0x817A); const GLenum POST_TEXTURE_FILTER_BIAS_RANGE_SGIX = static_cast<GLenum>(0x817B); const GLenum POST_TEXTURE_FILTER_SCALE_RANGE_SGIX = static_cast<GLenum>(0x817C); //Definitions for GL_SGIX_framezoom const GLenum FRAMEZOOM_SGIX = static_cast<GLenum>(0x818B); const GLenum FRAMEZOOM_FACTOR_SGIX = static_cast<GLenum>(0x818C); const GLenum MAX_FRAMEZOOM_FACTOR_SGIX = static_cast<GLenum>(0x818D); typedef void (APIENTRYP PFNGLFRAMEZOOMSGIXPROC) (GLint factor); extern VTK_RENDERING_EXPORT PFNGLFRAMEZOOMSGIXPROC FrameZoomSGIX; //Definitions for GL_SGIX_tag_sample_buffer typedef void (APIENTRYP PFNGLTAGSAMPLEBUFFERSGIXPROC) (void); extern VTK_RENDERING_EXPORT PFNGLTAGSAMPLEBUFFERSGIXPROC TagSampleBufferSGIX; //Definitions for GL_FfdMaskSGIX const GLenum TEXTURE_DEFORMATION_BIT_SGIX = static_cast<GLenum>(0x00000001); const GLenum GEOMETRY_DEFORMATION_BIT_SGIX = static_cast<GLenum>(0x00000002); //Definitions for GL_SGIX_polynomial_ffd const GLenum GEOMETRY_DEFORMATION_SGIX = static_cast<GLenum>(0x8194); const GLenum TEXTURE_DEFORMATION_SGIX = static_cast<GLenum>(0x8195); const GLenum DEFORMATIONS_MASK_SGIX = static_cast<GLenum>(0x8196); const GLenum MAX_DEFORMATION_ORDER_SGIX = static_cast<GLenum>(0x8197); typedef void (APIENTRYP PFNGLDEFORMATIONMAP3DSGIXPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points); typedef void (APIENTRYP PFNGLDEFORMATIONMAP3FSGIXPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points); typedef void (APIENTRYP PFNGLDEFORMSGIXPROC) (GLbitfield mask); typedef void (APIENTRYP PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC) (GLbitfield mask); extern VTK_RENDERING_EXPORT PFNGLDEFORMATIONMAP3DSGIXPROC DeformationMap3dSGIX; extern VTK_RENDERING_EXPORT PFNGLDEFORMATIONMAP3FSGIXPROC DeformationMap3fSGIX; extern VTK_RENDERING_EXPORT PFNGLDEFORMSGIXPROC DeformSGIX; extern VTK_RENDERING_EXPORT PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC LoadIdentityDeformationMapSGIX; //Definitions for GL_SGIX_reference_plane const GLenum REFERENCE_PLANE_SGIX = static_cast<GLenum>(0x817D); const GLenum REFERENCE_PLANE_EQUATION_SGIX = static_cast<GLenum>(0x817E); typedef void (APIENTRYP PFNGLREFERENCEPLANESGIXPROC) (const GLdouble *equation); extern VTK_RENDERING_EXPORT PFNGLREFERENCEPLANESGIXPROC ReferencePlaneSGIX; //Definitions for GL_SGIX_flush_raster typedef void (APIENTRYP PFNGLFLUSHRASTERSGIXPROC) (void); extern VTK_RENDERING_EXPORT PFNGLFLUSHRASTERSGIXPROC FlushRasterSGIX; //Definitions for GL_SGIX_depth_texture const GLenum DEPTH_COMPONENT16_SGIX = static_cast<GLenum>(0x81A5); const GLenum DEPTH_COMPONENT24_SGIX = static_cast<GLenum>(0x81A6); const GLenum DEPTH_COMPONENT32_SGIX = static_cast<GLenum>(0x81A7); //Definitions for GL_SGIS_fog_function const GLenum FOG_FUNC_SGIS = static_cast<GLenum>(0x812A); const GLenum FOG_FUNC_POINTS_SGIS = static_cast<GLenum>(0x812B); const GLenum MAX_FOG_FUNC_POINTS_SGIS = static_cast<GLenum>(0x812C); typedef void (APIENTRYP PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat *points); typedef void (APIENTRYP PFNGLGETFOGFUNCSGISPROC) (GLfloat *points); extern VTK_RENDERING_EXPORT PFNGLFOGFUNCSGISPROC FogFuncSGIS; extern VTK_RENDERING_EXPORT PFNGLGETFOGFUNCSGISPROC GetFogFuncSGIS; //Definitions for GL_SGIX_fog_offset const GLenum FOG_OFFSET_SGIX = static_cast<GLenum>(0x8198); const GLenum FOG_OFFSET_VALUE_SGIX = static_cast<GLenum>(0x8199); //Definitions for GL_HP_image_transform const GLenum IMAGE_SCALE_X_HP = static_cast<GLenum>(0x8155); const GLenum IMAGE_SCALE_Y_HP = static_cast<GLenum>(0x8156); const GLenum IMAGE_TRANSLATE_X_HP = static_cast<GLenum>(0x8157); const GLenum IMAGE_TRANSLATE_Y_HP = static_cast<GLenum>(0x8158); const GLenum IMAGE_ROTATE_ANGLE_HP = static_cast<GLenum>(0x8159); const GLenum IMAGE_ROTATE_ORIGIN_X_HP = static_cast<GLenum>(0x815A); const GLenum IMAGE_ROTATE_ORIGIN_Y_HP = static_cast<GLenum>(0x815B); const GLenum IMAGE_MAG_FILTER_HP = static_cast<GLenum>(0x815C); const GLenum IMAGE_MIN_FILTER_HP = static_cast<GLenum>(0x815D); const GLenum IMAGE_CUBIC_WEIGHT_HP = static_cast<GLenum>(0x815E); const GLenum CUBIC_HP = static_cast<GLenum>(0x815F); const GLenum AVERAGE_HP = static_cast<GLenum>(0x8160); const GLenum IMAGE_TRANSFORM_2D_HP = static_cast<GLenum>(0x8161); const GLenum POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = static_cast<GLenum>(0x8162); const GLenum PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = static_cast<GLenum>(0x8163); typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, GLint param); typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, GLfloat *params); extern VTK_RENDERING_EXPORT PFNGLIMAGETRANSFORMPARAMETERIHPPROC ImageTransformParameteriHP; extern VTK_RENDERING_EXPORT PFNGLIMAGETRANSFORMPARAMETERFHPPROC ImageTransformParameterfHP; extern VTK_RENDERING_EXPORT PFNGLIMAGETRANSFORMPARAMETERIVHPPROC ImageTransformParameterivHP; extern VTK_RENDERING_EXPORT PFNGLIMAGETRANSFORMPARAMETERFVHPPROC ImageTransformParameterfvHP; extern VTK_RENDERING_EXPORT PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC GetImageTransformParameterivHP; extern VTK_RENDERING_EXPORT PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC GetImageTransformParameterfvHP; //Definitions for GL_HP_convolution_border_modes const GLenum IGNORE_BORDER_HP = static_cast<GLenum>(0x8150); const GLenum CONSTANT_BORDER_HP = static_cast<GLenum>(0x8151); const GLenum REPLICATE_BORDER_HP = static_cast<GLenum>(0x8153); const GLenum CONVOLUTION_BORDER_COLOR_HP = static_cast<GLenum>(0x8154); //Definitions for GL_INGR_palette_buffer //Definitions for GL_SGIX_texture_add_env const GLenum TEXTURE_ENV_BIAS_SGIX = static_cast<GLenum>(0x80BE); //Definitions for GL_EXT_color_subtable typedef void (APIENTRYP PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); extern VTK_RENDERING_EXPORT PFNGLCOLORSUBTABLEEXTPROC ColorSubTableEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYCOLORSUBTABLEEXTPROC CopyColorSubTableEXT; //Definitions for GL_PGI_vertex_hints const GLenum VERTEX_DATA_HINT_PGI = static_cast<GLenum>(0x1A22A); const GLenum VERTEX_CONSISTENT_HINT_PGI = static_cast<GLenum>(0x1A22B); const GLenum MATERIAL_SIDE_HINT_PGI = static_cast<GLenum>(0x1A22C); const GLenum MAX_VERTEX_HINT_PGI = static_cast<GLenum>(0x1A22D); const GLenum COLOR3_BIT_PGI = static_cast<GLenum>(0x00010000); const GLenum COLOR4_BIT_PGI = static_cast<GLenum>(0x00020000); const GLenum EDGEFLAG_BIT_PGI = static_cast<GLenum>(0x00040000); const GLenum INDEX_BIT_PGI = static_cast<GLenum>(0x00080000); const GLenum MAT_AMBIENT_BIT_PGI = static_cast<GLenum>(0x00100000); const GLenum MAT_AMBIENT_AND_DIFFUSE_BIT_PGI = static_cast<GLenum>(0x00200000); const GLenum MAT_DIFFUSE_BIT_PGI = static_cast<GLenum>(0x00400000); const GLenum MAT_EMISSION_BIT_PGI = static_cast<GLenum>(0x00800000); const GLenum MAT_COLOR_INDEXES_BIT_PGI = static_cast<GLenum>(0x01000000); const GLenum MAT_SHININESS_BIT_PGI = static_cast<GLenum>(0x02000000); const GLenum MAT_SPECULAR_BIT_PGI = static_cast<GLenum>(0x04000000); const GLenum NORMAL_BIT_PGI = static_cast<GLenum>(0x08000000); const GLenum TEXCOORD1_BIT_PGI = static_cast<GLenum>(0x10000000); const GLenum TEXCOORD2_BIT_PGI = static_cast<GLenum>(0x20000000); const GLenum TEXCOORD3_BIT_PGI = static_cast<GLenum>(0x40000000); const GLenum TEXCOORD4_BIT_PGI = static_cast<GLenum>(0x80000000); const GLenum VERTEX23_BIT_PGI = static_cast<GLenum>(0x00000004); const GLenum VERTEX4_BIT_PGI = static_cast<GLenum>(0x00000008); //Definitions for GL_PGI_misc_hints const GLenum PREFER_DOUBLEBUFFER_HINT_PGI = static_cast<GLenum>(0x1A1F8); const GLenum CONSERVE_MEMORY_HINT_PGI = static_cast<GLenum>(0x1A1FD); const GLenum RECLAIM_MEMORY_HINT_PGI = static_cast<GLenum>(0x1A1FE); const GLenum NATIVE_GRAPHICS_HANDLE_PGI = static_cast<GLenum>(0x1A202); const GLenum NATIVE_GRAPHICS_BEGIN_HINT_PGI = static_cast<GLenum>(0x1A203); const GLenum NATIVE_GRAPHICS_END_HINT_PGI = static_cast<GLenum>(0x1A204); const GLenum ALWAYS_FAST_HINT_PGI = static_cast<GLenum>(0x1A20C); const GLenum ALWAYS_SOFT_HINT_PGI = static_cast<GLenum>(0x1A20D); const GLenum ALLOW_DRAW_OBJ_HINT_PGI = static_cast<GLenum>(0x1A20E); const GLenum ALLOW_DRAW_WIN_HINT_PGI = static_cast<GLenum>(0x1A20F); const GLenum ALLOW_DRAW_FRG_HINT_PGI = static_cast<GLenum>(0x1A210); const GLenum ALLOW_DRAW_MEM_HINT_PGI = static_cast<GLenum>(0x1A211); const GLenum STRICT_DEPTHFUNC_HINT_PGI = static_cast<GLenum>(0x1A216); const GLenum STRICT_LIGHTING_HINT_PGI = static_cast<GLenum>(0x1A217); const GLenum STRICT_SCISSOR_HINT_PGI = static_cast<GLenum>(0x1A218); const GLenum FULL_STIPPLE_HINT_PGI = static_cast<GLenum>(0x1A219); const GLenum CLIP_NEAR_HINT_PGI = static_cast<GLenum>(0x1A220); const GLenum CLIP_FAR_HINT_PGI = static_cast<GLenum>(0x1A221); const GLenum WIDE_LINE_HINT_PGI = static_cast<GLenum>(0x1A222); const GLenum BACK_NORMALS_HINT_PGI = static_cast<GLenum>(0x1A223); typedef void (APIENTRYP PFNGLHINTPGIPROC) (GLenum target, GLint mode); extern VTK_RENDERING_EXPORT PFNGLHINTPGIPROC HintPGI; //Definitions for GL_EXT_paletted_texture const GLenum COLOR_INDEX1_EXT = static_cast<GLenum>(0x80E2); const GLenum COLOR_INDEX2_EXT = static_cast<GLenum>(0x80E3); const GLenum COLOR_INDEX4_EXT = static_cast<GLenum>(0x80E4); const GLenum COLOR_INDEX8_EXT = static_cast<GLenum>(0x80E5); const GLenum COLOR_INDEX12_EXT = static_cast<GLenum>(0x80E6); const GLenum COLOR_INDEX16_EXT = static_cast<GLenum>(0x80E7); const GLenum TEXTURE_INDEX_SIZE_EXT = static_cast<GLenum>(0x80ED); typedef void (APIENTRYP PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); typedef void (APIENTRYP PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *data); typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); extern VTK_RENDERING_EXPORT PFNGLCOLORTABLEEXTPROC ColorTableEXT; extern VTK_RENDERING_EXPORT PFNGLGETCOLORTABLEEXTPROC GetColorTableEXT; extern VTK_RENDERING_EXPORT PFNGLGETCOLORTABLEPARAMETERIVEXTPROC GetColorTableParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLGETCOLORTABLEPARAMETERFVEXTPROC GetColorTableParameterfvEXT; //Definitions for GL_EXT_clip_volume_hint const GLenum CLIP_VOLUME_CLIPPING_HINT_EXT = static_cast<GLenum>(0x80F0); //Definitions for GL_SGIX_list_priority const GLenum LIST_PRIORITY_SGIX = static_cast<GLenum>(0x8182); typedef void (APIENTRYP PFNGLGETLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLLISTPARAMETERFSGIXPROC) (GLuint list, GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLLISTPARAMETERISGIXPROC) (GLuint list, GLenum pname, GLint param); typedef void (APIENTRYP PFNGLLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, const GLint *params); extern VTK_RENDERING_EXPORT PFNGLGETLISTPARAMETERFVSGIXPROC GetListParameterfvSGIX; extern VTK_RENDERING_EXPORT PFNGLGETLISTPARAMETERIVSGIXPROC GetListParameterivSGIX; extern VTK_RENDERING_EXPORT PFNGLLISTPARAMETERFSGIXPROC ListParameterfSGIX; extern VTK_RENDERING_EXPORT PFNGLLISTPARAMETERFVSGIXPROC ListParameterfvSGIX; extern VTK_RENDERING_EXPORT PFNGLLISTPARAMETERISGIXPROC ListParameteriSGIX; extern VTK_RENDERING_EXPORT PFNGLLISTPARAMETERIVSGIXPROC ListParameterivSGIX; //Definitions for GL_SGIX_ir_instrument1 const GLenum IR_INSTRUMENT1_SGIX = static_cast<GLenum>(0x817F); //Definitions for GL_SGIX_calligraphic_fragment const GLenum CALLIGRAPHIC_FRAGMENT_SGIX = static_cast<GLenum>(0x8183); //Definitions for GL_SGIX_texture_lod_bias const GLenum TEXTURE_LOD_BIAS_S_SGIX = static_cast<GLenum>(0x818E); const GLenum TEXTURE_LOD_BIAS_T_SGIX = static_cast<GLenum>(0x818F); const GLenum TEXTURE_LOD_BIAS_R_SGIX = static_cast<GLenum>(0x8190); //Definitions for GL_SGIX_shadow_ambient const GLenum SHADOW_AMBIENT_SGIX = static_cast<GLenum>(0x80BF); //Definitions for GL_EXT_index_texture //Definitions for GL_EXT_index_material const GLenum INDEX_MATERIAL_EXT = static_cast<GLenum>(0x81B8); const GLenum INDEX_MATERIAL_PARAMETER_EXT = static_cast<GLenum>(0x81B9); const GLenum INDEX_MATERIAL_FACE_EXT = static_cast<GLenum>(0x81BA); typedef void (APIENTRYP PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode); extern VTK_RENDERING_EXPORT PFNGLINDEXMATERIALEXTPROC IndexMaterialEXT; //Definitions for GL_EXT_index_func const GLenum INDEX_TEST_EXT = static_cast<GLenum>(0x81B5); const GLenum INDEX_TEST_FUNC_EXT = static_cast<GLenum>(0x81B6); const GLenum INDEX_TEST_REF_EXT = static_cast<GLenum>(0x81B7); typedef void (APIENTRYP PFNGLINDEXFUNCEXTPROC) (GLenum func, GLclampf ref); extern VTK_RENDERING_EXPORT PFNGLINDEXFUNCEXTPROC IndexFuncEXT; //Definitions for GL_EXT_index_array_formats const GLenum IUI_V2F_EXT = static_cast<GLenum>(0x81AD); const GLenum IUI_V3F_EXT = static_cast<GLenum>(0x81AE); const GLenum IUI_N3F_V2F_EXT = static_cast<GLenum>(0x81AF); const GLenum IUI_N3F_V3F_EXT = static_cast<GLenum>(0x81B0); const GLenum T2F_IUI_V2F_EXT = static_cast<GLenum>(0x81B1); const GLenum T2F_IUI_V3F_EXT = static_cast<GLenum>(0x81B2); const GLenum T2F_IUI_N3F_V2F_EXT = static_cast<GLenum>(0x81B3); const GLenum T2F_IUI_N3F_V3F_EXT = static_cast<GLenum>(0x81B4); //Definitions for GL_EXT_compiled_vertex_array const GLenum ARRAY_ELEMENT_LOCK_FIRST_EXT = static_cast<GLenum>(0x81A8); const GLenum ARRAY_ELEMENT_LOCK_COUNT_EXT = static_cast<GLenum>(0x81A9); typedef void (APIENTRYP PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count); typedef void (APIENTRYP PFNGLUNLOCKARRAYSEXTPROC) (void); extern VTK_RENDERING_EXPORT PFNGLLOCKARRAYSEXTPROC LockArraysEXT; extern VTK_RENDERING_EXPORT PFNGLUNLOCKARRAYSEXTPROC UnlockArraysEXT; //Definitions for GL_EXT_cull_vertex const GLenum CULL_VERTEX_EXT = static_cast<GLenum>(0x81AA); const GLenum CULL_VERTEX_EYE_POSITION_EXT = static_cast<GLenum>(0x81AB); const GLenum CULL_VERTEX_OBJECT_POSITION_EXT = static_cast<GLenum>(0x81AC); typedef void (APIENTRYP PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble *params); typedef void (APIENTRYP PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat *params); extern VTK_RENDERING_EXPORT PFNGLCULLPARAMETERDVEXTPROC CullParameterdvEXT; extern VTK_RENDERING_EXPORT PFNGLCULLPARAMETERFVEXTPROC CullParameterfvEXT; //Definitions for GL_SGIX_ycrcb const GLenum YCRCB_422_SGIX = static_cast<GLenum>(0x81BB); const GLenum YCRCB_444_SGIX = static_cast<GLenum>(0x81BC); //Definitions for GL_SGIX_fragment_lighting const GLenum FRAGMENT_LIGHTING_SGIX = static_cast<GLenum>(0x8400); const GLenum FRAGMENT_COLOR_MATERIAL_SGIX = static_cast<GLenum>(0x8401); const GLenum FRAGMENT_COLOR_MATERIAL_FACE_SGIX = static_cast<GLenum>(0x8402); const GLenum FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX = static_cast<GLenum>(0x8403); const GLenum MAX_FRAGMENT_LIGHTS_SGIX = static_cast<GLenum>(0x8404); const GLenum MAX_ACTIVE_LIGHTS_SGIX = static_cast<GLenum>(0x8405); const GLenum CURRENT_RASTER_NORMAL_SGIX = static_cast<GLenum>(0x8406); const GLenum LIGHT_ENV_MODE_SGIX = static_cast<GLenum>(0x8407); const GLenum FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX = static_cast<GLenum>(0x8408); const GLenum FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX = static_cast<GLenum>(0x8409); const GLenum FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX = static_cast<GLenum>(0x840A); const GLenum FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX = static_cast<GLenum>(0x840B); const GLenum FRAGMENT_LIGHT0_SGIX = static_cast<GLenum>(0x840C); const GLenum FRAGMENT_LIGHT1_SGIX = static_cast<GLenum>(0x840D); const GLenum FRAGMENT_LIGHT2_SGIX = static_cast<GLenum>(0x840E); const GLenum FRAGMENT_LIGHT3_SGIX = static_cast<GLenum>(0x840F); const GLenum FRAGMENT_LIGHT4_SGIX = static_cast<GLenum>(0x8410); const GLenum FRAGMENT_LIGHT5_SGIX = static_cast<GLenum>(0x8411); const GLenum FRAGMENT_LIGHT6_SGIX = static_cast<GLenum>(0x8412); const GLenum FRAGMENT_LIGHT7_SGIX = static_cast<GLenum>(0x8413); typedef void (APIENTRYP PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode); typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param); typedef void (APIENTRYP PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param); typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param); typedef void (APIENTRYP PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLLIGHTENVISGIXPROC) (GLenum pname, GLint param); extern VTK_RENDERING_EXPORT PFNGLFRAGMENTCOLORMATERIALSGIXPROC FragmentColorMaterialSGIX; extern VTK_RENDERING_EXPORT PFNGLFRAGMENTLIGHTFSGIXPROC FragmentLightfSGIX; extern VTK_RENDERING_EXPORT PFNGLFRAGMENTLIGHTFVSGIXPROC FragmentLightfvSGIX; extern VTK_RENDERING_EXPORT PFNGLFRAGMENTLIGHTISGIXPROC FragmentLightiSGIX; extern VTK_RENDERING_EXPORT PFNGLFRAGMENTLIGHTIVSGIXPROC FragmentLightivSGIX; extern VTK_RENDERING_EXPORT PFNGLFRAGMENTLIGHTMODELFSGIXPROC FragmentLightModelfSGIX; extern VTK_RENDERING_EXPORT PFNGLFRAGMENTLIGHTMODELFVSGIXPROC FragmentLightModelfvSGIX; extern VTK_RENDERING_EXPORT PFNGLFRAGMENTLIGHTMODELISGIXPROC FragmentLightModeliSGIX; extern VTK_RENDERING_EXPORT PFNGLFRAGMENTLIGHTMODELIVSGIXPROC FragmentLightModelivSGIX; extern VTK_RENDERING_EXPORT PFNGLFRAGMENTMATERIALFSGIXPROC FragmentMaterialfSGIX; extern VTK_RENDERING_EXPORT PFNGLFRAGMENTMATERIALFVSGIXPROC FragmentMaterialfvSGIX; extern VTK_RENDERING_EXPORT PFNGLFRAGMENTMATERIALISGIXPROC FragmentMaterialiSGIX; extern VTK_RENDERING_EXPORT PFNGLFRAGMENTMATERIALIVSGIXPROC FragmentMaterialivSGIX; extern VTK_RENDERING_EXPORT PFNGLGETFRAGMENTLIGHTFVSGIXPROC GetFragmentLightfvSGIX; extern VTK_RENDERING_EXPORT PFNGLGETFRAGMENTLIGHTIVSGIXPROC GetFragmentLightivSGIX; extern VTK_RENDERING_EXPORT PFNGLGETFRAGMENTMATERIALFVSGIXPROC GetFragmentMaterialfvSGIX; extern VTK_RENDERING_EXPORT PFNGLGETFRAGMENTMATERIALIVSGIXPROC GetFragmentMaterialivSGIX; extern VTK_RENDERING_EXPORT PFNGLLIGHTENVISGIXPROC LightEnviSGIX; //Definitions for GL_IBM_rasterpos_clip const GLenum RASTER_POSITION_UNCLIPPED_IBM = static_cast<GLenum>(0x19262); //Definitions for GL_HP_texture_lighting const GLenum TEXTURE_LIGHTING_MODE_HP = static_cast<GLenum>(0x8167); const GLenum TEXTURE_POST_SPECULAR_HP = static_cast<GLenum>(0x8168); const GLenum TEXTURE_PRE_SPECULAR_HP = static_cast<GLenum>(0x8169); //Definitions for GL_EXT_draw_range_elements const GLenum MAX_ELEMENTS_VERTICES_EXT = static_cast<GLenum>(0x80E8); const GLenum MAX_ELEMENTS_INDICES_EXT = static_cast<GLenum>(0x80E9); typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); extern VTK_RENDERING_EXPORT PFNGLDRAWRANGEELEMENTSEXTPROC DrawRangeElementsEXT; //Definitions for GL_WIN_phong_shading const GLenum PHONG_WIN = static_cast<GLenum>(0x80EA); const GLenum PHONG_HINT_WIN = static_cast<GLenum>(0x80EB); //Definitions for GL_WIN_specular_fog const GLenum FOG_SPECULAR_TEXTURE_WIN = static_cast<GLenum>(0x80EC); //Definitions for GL_EXT_light_texture const GLenum FRAGMENT_MATERIAL_EXT = static_cast<GLenum>(0x8349); const GLenum FRAGMENT_NORMAL_EXT = static_cast<GLenum>(0x834A); const GLenum FRAGMENT_COLOR_EXT = static_cast<GLenum>(0x834C); const GLenum ATTENUATION_EXT = static_cast<GLenum>(0x834D); const GLenum SHADOW_ATTENUATION_EXT = static_cast<GLenum>(0x834E); const GLenum TEXTURE_APPLICATION_MODE_EXT = static_cast<GLenum>(0x834F); const GLenum TEXTURE_LIGHT_EXT = static_cast<GLenum>(0x8350); const GLenum TEXTURE_MATERIAL_FACE_EXT = static_cast<GLenum>(0x8351); const GLenum TEXTURE_MATERIAL_PARAMETER_EXT = static_cast<GLenum>(0x8352); typedef void (APIENTRYP PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode); typedef void (APIENTRYP PFNGLTEXTURELIGHTEXTPROC) (GLenum pname); typedef void (APIENTRYP PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode); extern VTK_RENDERING_EXPORT PFNGLAPPLYTEXTUREEXTPROC ApplyTextureEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTURELIGHTEXTPROC TextureLightEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTUREMATERIALEXTPROC TextureMaterialEXT; //Definitions for GL_SGIX_blend_alpha_minmax const GLenum ALPHA_MIN_SGIX = static_cast<GLenum>(0x8320); const GLenum ALPHA_MAX_SGIX = static_cast<GLenum>(0x8321); //Definitions for GL_SGIX_impact_pixel_texture const GLenum PIXEL_TEX_GEN_Q_CEILING_SGIX = static_cast<GLenum>(0x8184); const GLenum PIXEL_TEX_GEN_Q_ROUND_SGIX = static_cast<GLenum>(0x8185); const GLenum PIXEL_TEX_GEN_Q_FLOOR_SGIX = static_cast<GLenum>(0x8186); const GLenum PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX = static_cast<GLenum>(0x8187); const GLenum PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX = static_cast<GLenum>(0x8188); const GLenum PIXEL_TEX_GEN_ALPHA_LS_SGIX = static_cast<GLenum>(0x8189); const GLenum PIXEL_TEX_GEN_ALPHA_MS_SGIX = static_cast<GLenum>(0x818A); //Definitions for GL_EXT_bgra const GLenum BGR_EXT = static_cast<GLenum>(0x80E0); const GLenum BGRA_EXT = static_cast<GLenum>(0x80E1); //Definitions for GL_SGIX_async const GLenum ASYNC_MARKER_SGIX = static_cast<GLenum>(0x8329); typedef void (APIENTRYP PFNGLASYNCMARKERSGIXPROC) (GLuint marker); typedef GLint (APIENTRYP PFNGLFINISHASYNCSGIXPROC) (GLuint *markerp); typedef GLint (APIENTRYP PFNGLPOLLASYNCSGIXPROC) (GLuint *markerp); typedef GLuint (APIENTRYP PFNGLGENASYNCMARKERSSGIXPROC) (GLsizei range); typedef void (APIENTRYP PFNGLDELETEASYNCMARKERSSGIXPROC) (GLuint marker, GLsizei range); typedef GLboolean (APIENTRYP PFNGLISASYNCMARKERSGIXPROC) (GLuint marker); extern VTK_RENDERING_EXPORT PFNGLASYNCMARKERSGIXPROC AsyncMarkerSGIX; extern VTK_RENDERING_EXPORT PFNGLFINISHASYNCSGIXPROC FinishAsyncSGIX; extern VTK_RENDERING_EXPORT PFNGLPOLLASYNCSGIXPROC PollAsyncSGIX; extern VTK_RENDERING_EXPORT PFNGLGENASYNCMARKERSSGIXPROC GenAsyncMarkersSGIX; extern VTK_RENDERING_EXPORT PFNGLDELETEASYNCMARKERSSGIXPROC DeleteAsyncMarkersSGIX; extern VTK_RENDERING_EXPORT PFNGLISASYNCMARKERSGIXPROC IsAsyncMarkerSGIX; //Definitions for GL_SGIX_async_pixel const GLenum ASYNC_TEX_IMAGE_SGIX = static_cast<GLenum>(0x835C); const GLenum ASYNC_DRAW_PIXELS_SGIX = static_cast<GLenum>(0x835D); const GLenum ASYNC_READ_PIXELS_SGIX = static_cast<GLenum>(0x835E); const GLenum MAX_ASYNC_TEX_IMAGE_SGIX = static_cast<GLenum>(0x835F); const GLenum MAX_ASYNC_DRAW_PIXELS_SGIX = static_cast<GLenum>(0x8360); const GLenum MAX_ASYNC_READ_PIXELS_SGIX = static_cast<GLenum>(0x8361); //Definitions for GL_SGIX_async_histogram const GLenum ASYNC_HISTOGRAM_SGIX = static_cast<GLenum>(0x832C); const GLenum MAX_ASYNC_HISTOGRAM_SGIX = static_cast<GLenum>(0x832D); //Definitions for GL_INTEL_texture_scissor //Definitions for GL_INTEL_parallel_arrays const GLenum PARALLEL_ARRAYS_INTEL = static_cast<GLenum>(0x83F4); const GLenum VERTEX_ARRAY_PARALLEL_POINTERS_INTEL = static_cast<GLenum>(0x83F5); const GLenum NORMAL_ARRAY_PARALLEL_POINTERS_INTEL = static_cast<GLenum>(0x83F6); const GLenum COLOR_ARRAY_PARALLEL_POINTERS_INTEL = static_cast<GLenum>(0x83F7); const GLenum TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL = static_cast<GLenum>(0x83F8); typedef void (APIENTRYP PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); typedef void (APIENTRYP PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const GLvoid* *pointer); typedef void (APIENTRYP PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); typedef void (APIENTRYP PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); extern VTK_RENDERING_EXPORT PFNGLVERTEXPOINTERVINTELPROC VertexPointervINTEL; extern VTK_RENDERING_EXPORT PFNGLNORMALPOINTERVINTELPROC NormalPointervINTEL; extern VTK_RENDERING_EXPORT PFNGLCOLORPOINTERVINTELPROC ColorPointervINTEL; extern VTK_RENDERING_EXPORT PFNGLTEXCOORDPOINTERVINTELPROC TexCoordPointervINTEL; //Definitions for GL_HP_occlusion_test const GLenum OCCLUSION_TEST_HP = static_cast<GLenum>(0x8165); const GLenum OCCLUSION_TEST_RESULT_HP = static_cast<GLenum>(0x8166); //Definitions for GL_EXT_pixel_transform const GLenum PIXEL_TRANSFORM_2D_EXT = static_cast<GLenum>(0x8330); const GLenum PIXEL_MAG_FILTER_EXT = static_cast<GLenum>(0x8331); const GLenum PIXEL_MIN_FILTER_EXT = static_cast<GLenum>(0x8332); const GLenum PIXEL_CUBIC_WEIGHT_EXT = static_cast<GLenum>(0x8333); const GLenum CUBIC_EXT = static_cast<GLenum>(0x8334); const GLenum AVERAGE_EXT = static_cast<GLenum>(0x8335); const GLenum PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = static_cast<GLenum>(0x8336); const GLenum MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = static_cast<GLenum>(0x8337); const GLenum PIXEL_TRANSFORM_2D_MATRIX_EXT = static_cast<GLenum>(0x8338); typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param); typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params); extern VTK_RENDERING_EXPORT PFNGLPIXELTRANSFORMPARAMETERIEXTPROC PixelTransformParameteriEXT; extern VTK_RENDERING_EXPORT PFNGLPIXELTRANSFORMPARAMETERFEXTPROC PixelTransformParameterfEXT; extern VTK_RENDERING_EXPORT PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC PixelTransformParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC PixelTransformParameterfvEXT; //Definitions for GL_EXT_pixel_transform_color_table //Definitions for GL_EXT_shared_texture_palette const GLenum SHARED_TEXTURE_PALETTE_EXT = static_cast<GLenum>(0x81FB); //Definitions for GL_EXT_separate_specular_color const GLenum LIGHT_MODEL_COLOR_CONTROL_EXT = static_cast<GLenum>(0x81F8); const GLenum SINGLE_COLOR_EXT = static_cast<GLenum>(0x81F9); const GLenum SEPARATE_SPECULAR_COLOR_EXT = static_cast<GLenum>(0x81FA); //Definitions for GL_EXT_secondary_color const GLenum COLOR_SUM_EXT = static_cast<GLenum>(0x8458); const GLenum CURRENT_SECONDARY_COLOR_EXT = static_cast<GLenum>(0x8459); const GLenum SECONDARY_COLOR_ARRAY_SIZE_EXT = static_cast<GLenum>(0x845A); const GLenum SECONDARY_COLOR_ARRAY_TYPE_EXT = static_cast<GLenum>(0x845B); const GLenum SECONDARY_COLOR_ARRAY_STRIDE_EXT = static_cast<GLenum>(0x845C); const GLenum SECONDARY_COLOR_ARRAY_POINTER_EXT = static_cast<GLenum>(0x845D); const GLenum SECONDARY_COLOR_ARRAY_EXT = static_cast<GLenum>(0x845E); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte *v); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint *v); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort *v); typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3BEXTPROC SecondaryColor3bEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3BVEXTPROC SecondaryColor3bvEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3DEXTPROC SecondaryColor3dEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3DVEXTPROC SecondaryColor3dvEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3FEXTPROC SecondaryColor3fEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3FVEXTPROC SecondaryColor3fvEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3IEXTPROC SecondaryColor3iEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3IVEXTPROC SecondaryColor3ivEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3SEXTPROC SecondaryColor3sEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3SVEXTPROC SecondaryColor3svEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3UBEXTPROC SecondaryColor3ubEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3UBVEXTPROC SecondaryColor3ubvEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3UIEXTPROC SecondaryColor3uiEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3UIVEXTPROC SecondaryColor3uivEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3USEXTPROC SecondaryColor3usEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3USVEXTPROC SecondaryColor3usvEXT; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLORPOINTEREXTPROC SecondaryColorPointerEXT; //Definitions for GL_EXT_texture_perturb_normal const GLenum PERTURB_EXT = static_cast<GLenum>(0x85AE); const GLenum TEXTURE_NORMAL_EXT = static_cast<GLenum>(0x85AF); typedef void (APIENTRYP PFNGLTEXTURENORMALEXTPROC) (GLenum mode); extern VTK_RENDERING_EXPORT PFNGLTEXTURENORMALEXTPROC TextureNormalEXT; //Definitions for GL_EXT_multi_draw_arrays typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount); extern VTK_RENDERING_EXPORT PFNGLMULTIDRAWARRAYSEXTPROC MultiDrawArraysEXT; extern VTK_RENDERING_EXPORT PFNGLMULTIDRAWELEMENTSEXTPROC MultiDrawElementsEXT; //Definitions for GL_EXT_fog_coord const GLenum FOG_COORDINATE_SOURCE_EXT = static_cast<GLenum>(0x8450); const GLenum FOG_COORDINATE_EXT = static_cast<GLenum>(0x8451); const GLenum FRAGMENT_DEPTH_EXT = static_cast<GLenum>(0x8452); const GLenum CURRENT_FOG_COORDINATE_EXT = static_cast<GLenum>(0x8453); const GLenum FOG_COORDINATE_ARRAY_TYPE_EXT = static_cast<GLenum>(0x8454); const GLenum FOG_COORDINATE_ARRAY_STRIDE_EXT = static_cast<GLenum>(0x8455); const GLenum FOG_COORDINATE_ARRAY_POINTER_EXT = static_cast<GLenum>(0x8456); const GLenum FOG_COORDINATE_ARRAY_EXT = static_cast<GLenum>(0x8457); typedef void (APIENTRYP PFNGLFOGCOORDFEXTPROC) (GLfloat coord); typedef void (APIENTRYP PFNGLFOGCOORDFVEXTPROC) (const GLfloat *coord); typedef void (APIENTRYP PFNGLFOGCOORDDEXTPROC) (GLdouble coord); typedef void (APIENTRYP PFNGLFOGCOORDDVEXTPROC) (const GLdouble *coord); typedef void (APIENTRYP PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); extern VTK_RENDERING_EXPORT PFNGLFOGCOORDFEXTPROC FogCoordfEXT; extern VTK_RENDERING_EXPORT PFNGLFOGCOORDFVEXTPROC FogCoordfvEXT; extern VTK_RENDERING_EXPORT PFNGLFOGCOORDDEXTPROC FogCoorddEXT; extern VTK_RENDERING_EXPORT PFNGLFOGCOORDDVEXTPROC FogCoorddvEXT; extern VTK_RENDERING_EXPORT PFNGLFOGCOORDPOINTEREXTPROC FogCoordPointerEXT; //Definitions for GL_REND_screen_coordinates const GLenum SCREEN_COORDINATES_REND = static_cast<GLenum>(0x8490); const GLenum INVERTED_SCREEN_W_REND = static_cast<GLenum>(0x8491); //Definitions for GL_EXT_coordinate_frame const GLenum TANGENT_ARRAY_EXT = static_cast<GLenum>(0x8439); const GLenum BINORMAL_ARRAY_EXT = static_cast<GLenum>(0x843A); const GLenum CURRENT_TANGENT_EXT = static_cast<GLenum>(0x843B); const GLenum CURRENT_BINORMAL_EXT = static_cast<GLenum>(0x843C); const GLenum TANGENT_ARRAY_TYPE_EXT = static_cast<GLenum>(0x843E); const GLenum TANGENT_ARRAY_STRIDE_EXT = static_cast<GLenum>(0x843F); const GLenum BINORMAL_ARRAY_TYPE_EXT = static_cast<GLenum>(0x8440); const GLenum BINORMAL_ARRAY_STRIDE_EXT = static_cast<GLenum>(0x8441); const GLenum TANGENT_ARRAY_POINTER_EXT = static_cast<GLenum>(0x8442); const GLenum BINORMAL_ARRAY_POINTER_EXT = static_cast<GLenum>(0x8443); const GLenum MAP1_TANGENT_EXT = static_cast<GLenum>(0x8444); const GLenum MAP2_TANGENT_EXT = static_cast<GLenum>(0x8445); const GLenum MAP1_BINORMAL_EXT = static_cast<GLenum>(0x8446); const GLenum MAP2_BINORMAL_EXT = static_cast<GLenum>(0x8447); typedef void (APIENTRYP PFNGLTANGENT3BEXTPROC) (GLbyte tx, GLbyte ty, GLbyte tz); typedef void (APIENTRYP PFNGLTANGENT3BVEXTPROC) (const GLbyte *v); typedef void (APIENTRYP PFNGLTANGENT3DEXTPROC) (GLdouble tx, GLdouble ty, GLdouble tz); typedef void (APIENTRYP PFNGLTANGENT3DVEXTPROC) (const GLdouble *v); typedef void (APIENTRYP PFNGLTANGENT3FEXTPROC) (GLfloat tx, GLfloat ty, GLfloat tz); typedef void (APIENTRYP PFNGLTANGENT3FVEXTPROC) (const GLfloat *v); typedef void (APIENTRYP PFNGLTANGENT3IEXTPROC) (GLint tx, GLint ty, GLint tz); typedef void (APIENTRYP PFNGLTANGENT3IVEXTPROC) (const GLint *v); typedef void (APIENTRYP PFNGLTANGENT3SEXTPROC) (GLshort tx, GLshort ty, GLshort tz); typedef void (APIENTRYP PFNGLTANGENT3SVEXTPROC) (const GLshort *v); typedef void (APIENTRYP PFNGLBINORMAL3BEXTPROC) (GLbyte bx, GLbyte by, GLbyte bz); typedef void (APIENTRYP PFNGLBINORMAL3BVEXTPROC) (const GLbyte *v); typedef void (APIENTRYP PFNGLBINORMAL3DEXTPROC) (GLdouble bx, GLdouble by, GLdouble bz); typedef void (APIENTRYP PFNGLBINORMAL3DVEXTPROC) (const GLdouble *v); typedef void (APIENTRYP PFNGLBINORMAL3FEXTPROC) (GLfloat bx, GLfloat by, GLfloat bz); typedef void (APIENTRYP PFNGLBINORMAL3FVEXTPROC) (const GLfloat *v); typedef void (APIENTRYP PFNGLBINORMAL3IEXTPROC) (GLint bx, GLint by, GLint bz); typedef void (APIENTRYP PFNGLBINORMAL3IVEXTPROC) (const GLint *v); typedef void (APIENTRYP PFNGLBINORMAL3SEXTPROC) (GLshort bx, GLshort by, GLshort bz); typedef void (APIENTRYP PFNGLBINORMAL3SVEXTPROC) (const GLshort *v); typedef void (APIENTRYP PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRYP PFNGLBINORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); extern VTK_RENDERING_EXPORT PFNGLTANGENT3BEXTPROC Tangent3bEXT; extern VTK_RENDERING_EXPORT PFNGLTANGENT3BVEXTPROC Tangent3bvEXT; extern VTK_RENDERING_EXPORT PFNGLTANGENT3DEXTPROC Tangent3dEXT; extern VTK_RENDERING_EXPORT PFNGLTANGENT3DVEXTPROC Tangent3dvEXT; extern VTK_RENDERING_EXPORT PFNGLTANGENT3FEXTPROC Tangent3fEXT; extern VTK_RENDERING_EXPORT PFNGLTANGENT3FVEXTPROC Tangent3fvEXT; extern VTK_RENDERING_EXPORT PFNGLTANGENT3IEXTPROC Tangent3iEXT; extern VTK_RENDERING_EXPORT PFNGLTANGENT3IVEXTPROC Tangent3ivEXT; extern VTK_RENDERING_EXPORT PFNGLTANGENT3SEXTPROC Tangent3sEXT; extern VTK_RENDERING_EXPORT PFNGLTANGENT3SVEXTPROC Tangent3svEXT; extern VTK_RENDERING_EXPORT PFNGLBINORMAL3BEXTPROC Binormal3bEXT; extern VTK_RENDERING_EXPORT PFNGLBINORMAL3BVEXTPROC Binormal3bvEXT; extern VTK_RENDERING_EXPORT PFNGLBINORMAL3DEXTPROC Binormal3dEXT; extern VTK_RENDERING_EXPORT PFNGLBINORMAL3DVEXTPROC Binormal3dvEXT; extern VTK_RENDERING_EXPORT PFNGLBINORMAL3FEXTPROC Binormal3fEXT; extern VTK_RENDERING_EXPORT PFNGLBINORMAL3FVEXTPROC Binormal3fvEXT; extern VTK_RENDERING_EXPORT PFNGLBINORMAL3IEXTPROC Binormal3iEXT; extern VTK_RENDERING_EXPORT PFNGLBINORMAL3IVEXTPROC Binormal3ivEXT; extern VTK_RENDERING_EXPORT PFNGLBINORMAL3SEXTPROC Binormal3sEXT; extern VTK_RENDERING_EXPORT PFNGLBINORMAL3SVEXTPROC Binormal3svEXT; extern VTK_RENDERING_EXPORT PFNGLTANGENTPOINTEREXTPROC TangentPointerEXT; extern VTK_RENDERING_EXPORT PFNGLBINORMALPOINTEREXTPROC BinormalPointerEXT; //Definitions for GL_EXT_texture_env_combine const GLenum COMBINE_EXT = static_cast<GLenum>(0x8570); const GLenum COMBINE_RGB_EXT = static_cast<GLenum>(0x8571); const GLenum COMBINE_ALPHA_EXT = static_cast<GLenum>(0x8572); const GLenum RGB_SCALE_EXT = static_cast<GLenum>(0x8573); const GLenum ADD_SIGNED_EXT = static_cast<GLenum>(0x8574); const GLenum INTERPOLATE_EXT = static_cast<GLenum>(0x8575); const GLenum CONSTANT_EXT = static_cast<GLenum>(0x8576); const GLenum PRIMARY_COLOR_EXT = static_cast<GLenum>(0x8577); const GLenum PREVIOUS_EXT = static_cast<GLenum>(0x8578); const GLenum SOURCE0_RGB_EXT = static_cast<GLenum>(0x8580); const GLenum SOURCE1_RGB_EXT = static_cast<GLenum>(0x8581); const GLenum SOURCE2_RGB_EXT = static_cast<GLenum>(0x8582); const GLenum SOURCE0_ALPHA_EXT = static_cast<GLenum>(0x8588); const GLenum SOURCE1_ALPHA_EXT = static_cast<GLenum>(0x8589); const GLenum SOURCE2_ALPHA_EXT = static_cast<GLenum>(0x858A); const GLenum OPERAND0_RGB_EXT = static_cast<GLenum>(0x8590); const GLenum OPERAND1_RGB_EXT = static_cast<GLenum>(0x8591); const GLenum OPERAND2_RGB_EXT = static_cast<GLenum>(0x8592); const GLenum OPERAND0_ALPHA_EXT = static_cast<GLenum>(0x8598); const GLenum OPERAND1_ALPHA_EXT = static_cast<GLenum>(0x8599); const GLenum OPERAND2_ALPHA_EXT = static_cast<GLenum>(0x859A); //Definitions for GL_APPLE_specular_vector const GLenum LIGHT_MODEL_SPECULAR_VECTOR_APPLE = static_cast<GLenum>(0x85B0); //Definitions for GL_APPLE_transform_hint const GLenum TRANSFORM_HINT_APPLE = static_cast<GLenum>(0x85B1); //Definitions for GL_SGIX_fog_scale const GLenum FOG_SCALE_SGIX = static_cast<GLenum>(0x81FC); const GLenum FOG_SCALE_VALUE_SGIX = static_cast<GLenum>(0x81FD); //Definitions for GL_SUNX_constant_data const GLenum UNPACK_CONSTANT_DATA_SUNX = static_cast<GLenum>(0x81D5); const GLenum TEXTURE_CONSTANT_DATA_SUNX = static_cast<GLenum>(0x81D6); typedef void (APIENTRYP PFNGLFINISHTEXTURESUNXPROC) (void); extern VTK_RENDERING_EXPORT PFNGLFINISHTEXTURESUNXPROC FinishTextureSUNX; //Definitions for GL_SUN_global_alpha const GLenum GLOBAL_ALPHA_SUN = static_cast<GLenum>(0x81D9); const GLenum GLOBAL_ALPHA_FACTOR_SUN = static_cast<GLenum>(0x81DA); typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor); typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor); typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor); typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor); typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor); typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor); typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor); typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor); extern VTK_RENDERING_EXPORT PFNGLGLOBALALPHAFACTORBSUNPROC GlobalAlphaFactorbSUN; extern VTK_RENDERING_EXPORT PFNGLGLOBALALPHAFACTORSSUNPROC GlobalAlphaFactorsSUN; extern VTK_RENDERING_EXPORT PFNGLGLOBALALPHAFACTORISUNPROC GlobalAlphaFactoriSUN; extern VTK_RENDERING_EXPORT PFNGLGLOBALALPHAFACTORFSUNPROC GlobalAlphaFactorfSUN; extern VTK_RENDERING_EXPORT PFNGLGLOBALALPHAFACTORDSUNPROC GlobalAlphaFactordSUN; extern VTK_RENDERING_EXPORT PFNGLGLOBALALPHAFACTORUBSUNPROC GlobalAlphaFactorubSUN; extern VTK_RENDERING_EXPORT PFNGLGLOBALALPHAFACTORUSSUNPROC GlobalAlphaFactorusSUN; extern VTK_RENDERING_EXPORT PFNGLGLOBALALPHAFACTORUISUNPROC GlobalAlphaFactoruiSUN; //Definitions for GL_SUN_triangle_list const GLenum RESTART_SUN = static_cast<GLenum>(0x0001); const GLenum REPLACE_MIDDLE_SUN = static_cast<GLenum>(0x0002); const GLenum REPLACE_OLDEST_SUN = static_cast<GLenum>(0x0003); const GLenum TRIANGLE_LIST_SUN = static_cast<GLenum>(0x81D7); const GLenum REPLACEMENT_CODE_SUN = static_cast<GLenum>(0x81D8); const GLenum REPLACEMENT_CODE_ARRAY_SUN = static_cast<GLenum>(0x85C0); const GLenum REPLACEMENT_CODE_ARRAY_TYPE_SUN = static_cast<GLenum>(0x85C1); const GLenum REPLACEMENT_CODE_ARRAY_STRIDE_SUN = static_cast<GLenum>(0x85C2); const GLenum REPLACEMENT_CODE_ARRAY_POINTER_SUN = static_cast<GLenum>(0x85C3); const GLenum R1UI_V3F_SUN = static_cast<GLenum>(0x85C4); const GLenum R1UI_C4UB_V3F_SUN = static_cast<GLenum>(0x85C5); const GLenum R1UI_C3F_V3F_SUN = static_cast<GLenum>(0x85C6); const GLenum R1UI_N3F_V3F_SUN = static_cast<GLenum>(0x85C7); const GLenum R1UI_C4F_N3F_V3F_SUN = static_cast<GLenum>(0x85C8); const GLenum R1UI_T2F_V3F_SUN = static_cast<GLenum>(0x85C9); const GLenum R1UI_T2F_N3F_V3F_SUN = static_cast<GLenum>(0x85CA); const GLenum R1UI_T2F_C4F_N3F_V3F_SUN = static_cast<GLenum>(0x85CB); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint *code); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort *code); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte *code); typedef void (APIENTRYP PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const GLvoid* *pointer); extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUISUNPROC ReplacementCodeuiSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUSSUNPROC ReplacementCodeusSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUBSUNPROC ReplacementCodeubSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUIVSUNPROC ReplacementCodeuivSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUSVSUNPROC ReplacementCodeusvSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUBVSUNPROC ReplacementCodeubvSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEPOINTERSUNPROC ReplacementCodePointerSUN; //Definitions for GL_SUN_vertex typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y); typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte *c, const GLfloat *v); typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte *c, const GLfloat *v); typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *v); typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *n, const GLfloat *v); typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *n, const GLfloat *v); typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *v); typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w); typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *v); typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat *tc, const GLubyte *c, const GLfloat *v); typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *v); typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *n, const GLfloat *v); typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w); typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLuint rc, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *v); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLuint *rc, const GLubyte *c, const GLfloat *v); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *v); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *n, const GLfloat *v); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *v); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); extern VTK_RENDERING_EXPORT PFNGLCOLOR4UBVERTEX2FSUNPROC Color4ubVertex2fSUN; extern VTK_RENDERING_EXPORT PFNGLCOLOR4UBVERTEX2FVSUNPROC Color4ubVertex2fvSUN; extern VTK_RENDERING_EXPORT PFNGLCOLOR4UBVERTEX3FSUNPROC Color4ubVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLCOLOR4UBVERTEX3FVSUNPROC Color4ubVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLCOLOR3FVERTEX3FSUNPROC Color3fVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLCOLOR3FVERTEX3FVSUNPROC Color3fVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLNORMAL3FVERTEX3FSUNPROC Normal3fVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLNORMAL3FVERTEX3FVSUNPROC Normal3fVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC Color4fNormal3fVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC Color4fNormal3fVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD2FVERTEX3FSUNPROC TexCoord2fVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD2FVERTEX3FVSUNPROC TexCoord2fVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD4FVERTEX4FSUNPROC TexCoord4fVertex4fSUN; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD4FVERTEX4FVSUNPROC TexCoord4fVertex4fvSUN; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC TexCoord2fColor4ubVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC TexCoord2fColor4ubVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC TexCoord2fColor3fVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC TexCoord2fColor3fVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC TexCoord2fNormal3fVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC TexCoord2fNormal3fVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC TexCoord2fColor4fNormal3fVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC TexCoord2fColor4fNormal3fVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC TexCoord4fColor4fNormal3fVertex4fSUN; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC TexCoord4fColor4fNormal3fVertex4fvSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC ReplacementCodeuiVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC ReplacementCodeuiVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC ReplacementCodeuiColor4ubVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC ReplacementCodeuiColor4ubVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC ReplacementCodeuiColor3fVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC ReplacementCodeuiColor3fVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC ReplacementCodeuiNormal3fVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC ReplacementCodeuiNormal3fVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC ReplacementCodeuiColor4fNormal3fVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC ReplacementCodeuiColor4fNormal3fVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC ReplacementCodeuiTexCoord2fVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC ReplacementCodeuiTexCoord2fVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC ReplacementCodeuiTexCoord2fNormal3fVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC ReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN; extern VTK_RENDERING_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN; //Definitions for GL_EXT_blend_func_separate const GLenum BLEND_DST_RGB_EXT = static_cast<GLenum>(0x80C8); const GLenum BLEND_SRC_RGB_EXT = static_cast<GLenum>(0x80C9); const GLenum BLEND_DST_ALPHA_EXT = static_cast<GLenum>(0x80CA); const GLenum BLEND_SRC_ALPHA_EXT = static_cast<GLenum>(0x80CB); typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); extern VTK_RENDERING_EXPORT PFNGLBLENDFUNCSEPARATEEXTPROC BlendFuncSeparateEXT; //Definitions for GL_INGR_color_clamp const GLenum RED_MIN_CLAMP_INGR = static_cast<GLenum>(0x8560); const GLenum GREEN_MIN_CLAMP_INGR = static_cast<GLenum>(0x8561); const GLenum BLUE_MIN_CLAMP_INGR = static_cast<GLenum>(0x8562); const GLenum ALPHA_MIN_CLAMP_INGR = static_cast<GLenum>(0x8563); const GLenum RED_MAX_CLAMP_INGR = static_cast<GLenum>(0x8564); const GLenum GREEN_MAX_CLAMP_INGR = static_cast<GLenum>(0x8565); const GLenum BLUE_MAX_CLAMP_INGR = static_cast<GLenum>(0x8566); const GLenum ALPHA_MAX_CLAMP_INGR = static_cast<GLenum>(0x8567); //Definitions for GL_INGR_interlace_read const GLenum INTERLACE_READ_INGR = static_cast<GLenum>(0x8568); //Definitions for GL_EXT_stencil_wrap const GLenum INCR_WRAP_EXT = static_cast<GLenum>(0x8507); const GLenum DECR_WRAP_EXT = static_cast<GLenum>(0x8508); //Definitions for GL_EXT_422_pixels const GLenum _422_EXT = static_cast<GLenum>(0x80CC); const GLenum _422_REV_EXT = static_cast<GLenum>(0x80CD); const GLenum _422_AVERAGE_EXT = static_cast<GLenum>(0x80CE); const GLenum _422_REV_AVERAGE_EXT = static_cast<GLenum>(0x80CF); //Definitions for GL_NV_texgen_reflection const GLenum NORMAL_MAP_NV = static_cast<GLenum>(0x8511); const GLenum REFLECTION_MAP_NV = static_cast<GLenum>(0x8512); //Definitions for GL_EXT_texture_cube_map const GLenum NORMAL_MAP_EXT = static_cast<GLenum>(0x8511); const GLenum REFLECTION_MAP_EXT = static_cast<GLenum>(0x8512); const GLenum TEXTURE_CUBE_MAP_EXT = static_cast<GLenum>(0x8513); const GLenum TEXTURE_BINDING_CUBE_MAP_EXT = static_cast<GLenum>(0x8514); const GLenum TEXTURE_CUBE_MAP_POSITIVE_X_EXT = static_cast<GLenum>(0x8515); const GLenum TEXTURE_CUBE_MAP_NEGATIVE_X_EXT = static_cast<GLenum>(0x8516); const GLenum TEXTURE_CUBE_MAP_POSITIVE_Y_EXT = static_cast<GLenum>(0x8517); const GLenum TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT = static_cast<GLenum>(0x8518); const GLenum TEXTURE_CUBE_MAP_POSITIVE_Z_EXT = static_cast<GLenum>(0x8519); const GLenum TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT = static_cast<GLenum>(0x851A); const GLenum PROXY_TEXTURE_CUBE_MAP_EXT = static_cast<GLenum>(0x851B); const GLenum MAX_CUBE_MAP_TEXTURE_SIZE_EXT = static_cast<GLenum>(0x851C); //Definitions for GL_SUN_convolution_border_modes const GLenum WRAP_BORDER_SUN = static_cast<GLenum>(0x81D4); //Definitions for GL_EXT_texture_env_add //Definitions for GL_EXT_texture_lod_bias const GLenum MAX_TEXTURE_LOD_BIAS_EXT = static_cast<GLenum>(0x84FD); const GLenum TEXTURE_FILTER_CONTROL_EXT = static_cast<GLenum>(0x8500); const GLenum TEXTURE_LOD_BIAS_EXT = static_cast<GLenum>(0x8501); //Definitions for GL_EXT_texture_filter_anisotropic const GLenum TEXTURE_MAX_ANISOTROPY_EXT = static_cast<GLenum>(0x84FE); const GLenum MAX_TEXTURE_MAX_ANISOTROPY_EXT = static_cast<GLenum>(0x84FF); //Definitions for GL_EXT_vertex_weighting const GLenum MODELVIEW0_STACK_DEPTH_EXT = static_cast<GLenum>(GL_MODELVIEW_STACK_DEPTH); const GLenum MODELVIEW1_STACK_DEPTH_EXT = static_cast<GLenum>(0x8502); const GLenum MODELVIEW0_MATRIX_EXT = static_cast<GLenum>(GL_MODELVIEW_MATRIX); const GLenum MODELVIEW1_MATRIX_EXT = static_cast<GLenum>(0x8506); const GLenum VERTEX_WEIGHTING_EXT = static_cast<GLenum>(0x8509); const GLenum MODELVIEW0_EXT = static_cast<GLenum>(GL_MODELVIEW); const GLenum MODELVIEW1_EXT = static_cast<GLenum>(0x850A); const GLenum CURRENT_VERTEX_WEIGHT_EXT = static_cast<GLenum>(0x850B); const GLenum VERTEX_WEIGHT_ARRAY_EXT = static_cast<GLenum>(0x850C); const GLenum VERTEX_WEIGHT_ARRAY_SIZE_EXT = static_cast<GLenum>(0x850D); const GLenum VERTEX_WEIGHT_ARRAY_TYPE_EXT = static_cast<GLenum>(0x850E); const GLenum VERTEX_WEIGHT_ARRAY_STRIDE_EXT = static_cast<GLenum>(0x850F); const GLenum VERTEX_WEIGHT_ARRAY_POINTER_EXT = static_cast<GLenum>(0x8510); typedef void (APIENTRYP PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight); typedef void (APIENTRYP PFNGLVERTEXWEIGHTFVEXTPROC) (const GLfloat *weight); typedef void (APIENTRYP PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLsizei size, GLenum type, GLsizei stride, const GLvoid *pointer); extern VTK_RENDERING_EXPORT PFNGLVERTEXWEIGHTFEXTPROC VertexWeightfEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXWEIGHTFVEXTPROC VertexWeightfvEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXWEIGHTPOINTEREXTPROC VertexWeightPointerEXT; //Definitions for GL_NV_light_max_exponent const GLenum MAX_SHININESS_NV = static_cast<GLenum>(0x8504); const GLenum MAX_SPOT_EXPONENT_NV = static_cast<GLenum>(0x8505); //Definitions for GL_NV_vertex_array_range const GLenum VERTEX_ARRAY_RANGE_NV = static_cast<GLenum>(0x851D); const GLenum VERTEX_ARRAY_RANGE_LENGTH_NV = static_cast<GLenum>(0x851E); const GLenum VERTEX_ARRAY_RANGE_VALID_NV = static_cast<GLenum>(0x851F); const GLenum MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = static_cast<GLenum>(0x8520); const GLenum VERTEX_ARRAY_RANGE_POINTER_NV = static_cast<GLenum>(0x8521); typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void); typedef void (APIENTRYP PFNGLVERTEXARRAYRANGENVPROC) (GLsizei length, const GLvoid *pointer); extern VTK_RENDERING_EXPORT PFNGLFLUSHVERTEXARRAYRANGENVPROC FlushVertexArrayRangeNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXARRAYRANGENVPROC VertexArrayRangeNV; //Definitions for GL_NV_register_combiners const GLenum REGISTER_COMBINERS_NV = static_cast<GLenum>(0x8522); const GLenum VARIABLE_A_NV = static_cast<GLenum>(0x8523); const GLenum VARIABLE_B_NV = static_cast<GLenum>(0x8524); const GLenum VARIABLE_C_NV = static_cast<GLenum>(0x8525); const GLenum VARIABLE_D_NV = static_cast<GLenum>(0x8526); const GLenum VARIABLE_E_NV = static_cast<GLenum>(0x8527); const GLenum VARIABLE_F_NV = static_cast<GLenum>(0x8528); const GLenum VARIABLE_G_NV = static_cast<GLenum>(0x8529); const GLenum CONSTANT_COLOR0_NV = static_cast<GLenum>(0x852A); const GLenum CONSTANT_COLOR1_NV = static_cast<GLenum>(0x852B); const GLenum PRIMARY_COLOR_NV = static_cast<GLenum>(0x852C); const GLenum SECONDARY_COLOR_NV = static_cast<GLenum>(0x852D); const GLenum SPARE0_NV = static_cast<GLenum>(0x852E); const GLenum SPARE1_NV = static_cast<GLenum>(0x852F); const GLenum DISCARD_NV = static_cast<GLenum>(0x8530); const GLenum E_TIMES_F_NV = static_cast<GLenum>(0x8531); const GLenum SPARE0_PLUS_SECONDARY_COLOR_NV = static_cast<GLenum>(0x8532); const GLenum UNSIGNED_IDENTITY_NV = static_cast<GLenum>(0x8536); const GLenum UNSIGNED_INVERT_NV = static_cast<GLenum>(0x8537); const GLenum EXPAND_NORMAL_NV = static_cast<GLenum>(0x8538); const GLenum EXPAND_NEGATE_NV = static_cast<GLenum>(0x8539); const GLenum HALF_BIAS_NORMAL_NV = static_cast<GLenum>(0x853A); const GLenum HALF_BIAS_NEGATE_NV = static_cast<GLenum>(0x853B); const GLenum SIGNED_IDENTITY_NV = static_cast<GLenum>(0x853C); const GLenum SIGNED_NEGATE_NV = static_cast<GLenum>(0x853D); const GLenum SCALE_BY_TWO_NV = static_cast<GLenum>(0x853E); const GLenum SCALE_BY_FOUR_NV = static_cast<GLenum>(0x853F); const GLenum SCALE_BY_ONE_HALF_NV = static_cast<GLenum>(0x8540); const GLenum BIAS_BY_NEGATIVE_ONE_HALF_NV = static_cast<GLenum>(0x8541); const GLenum COMBINER_INPUT_NV = static_cast<GLenum>(0x8542); const GLenum COMBINER_MAPPING_NV = static_cast<GLenum>(0x8543); const GLenum COMBINER_COMPONENT_USAGE_NV = static_cast<GLenum>(0x8544); const GLenum COMBINER_AB_DOT_PRODUCT_NV = static_cast<GLenum>(0x8545); const GLenum COMBINER_CD_DOT_PRODUCT_NV = static_cast<GLenum>(0x8546); const GLenum COMBINER_MUX_SUM_NV = static_cast<GLenum>(0x8547); const GLenum COMBINER_SCALE_NV = static_cast<GLenum>(0x8548); const GLenum COMBINER_BIAS_NV = static_cast<GLenum>(0x8549); const GLenum COMBINER_AB_OUTPUT_NV = static_cast<GLenum>(0x854A); const GLenum COMBINER_CD_OUTPUT_NV = static_cast<GLenum>(0x854B); const GLenum COMBINER_SUM_OUTPUT_NV = static_cast<GLenum>(0x854C); const GLenum MAX_GENERAL_COMBINERS_NV = static_cast<GLenum>(0x854D); const GLenum NUM_GENERAL_COMBINERS_NV = static_cast<GLenum>(0x854E); const GLenum COLOR_SUM_CLAMP_NV = static_cast<GLenum>(0x854F); const GLenum COMBINER0_NV = static_cast<GLenum>(0x8550); const GLenum COMBINER1_NV = static_cast<GLenum>(0x8551); const GLenum COMBINER2_NV = static_cast<GLenum>(0x8552); const GLenum COMBINER3_NV = static_cast<GLenum>(0x8553); const GLenum COMBINER4_NV = static_cast<GLenum>(0x8554); const GLenum COMBINER5_NV = static_cast<GLenum>(0x8555); const GLenum COMBINER6_NV = static_cast<GLenum>(0x8556); const GLenum COMBINER7_NV = static_cast<GLenum>(0x8557); typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param); typedef void (APIENTRYP PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); typedef void (APIENTRYP PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum); typedef void (APIENTRYP PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint *params); extern VTK_RENDERING_EXPORT PFNGLCOMBINERPARAMETERFVNVPROC CombinerParameterfvNV; extern VTK_RENDERING_EXPORT PFNGLCOMBINERPARAMETERFNVPROC CombinerParameterfNV; extern VTK_RENDERING_EXPORT PFNGLCOMBINERPARAMETERIVNVPROC CombinerParameterivNV; extern VTK_RENDERING_EXPORT PFNGLCOMBINERPARAMETERINVPROC CombinerParameteriNV; extern VTK_RENDERING_EXPORT PFNGLCOMBINERINPUTNVPROC CombinerInputNV; extern VTK_RENDERING_EXPORT PFNGLCOMBINEROUTPUTNVPROC CombinerOutputNV; extern VTK_RENDERING_EXPORT PFNGLFINALCOMBINERINPUTNVPROC FinalCombinerInputNV; extern VTK_RENDERING_EXPORT PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC GetCombinerInputParameterfvNV; extern VTK_RENDERING_EXPORT PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC GetCombinerInputParameterivNV; extern VTK_RENDERING_EXPORT PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC GetCombinerOutputParameterfvNV; extern VTK_RENDERING_EXPORT PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC GetCombinerOutputParameterivNV; extern VTK_RENDERING_EXPORT PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC GetFinalCombinerInputParameterfvNV; extern VTK_RENDERING_EXPORT PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC GetFinalCombinerInputParameterivNV; //Definitions for GL_NV_fog_distance const GLenum FOG_DISTANCE_MODE_NV = static_cast<GLenum>(0x855A); const GLenum EYE_RADIAL_NV = static_cast<GLenum>(0x855B); const GLenum EYE_PLANE_ABSOLUTE_NV = static_cast<GLenum>(0x855C); //Definitions for GL_NV_texgen_emboss const GLenum EMBOSS_LIGHT_NV = static_cast<GLenum>(0x855D); const GLenum EMBOSS_CONSTANT_NV = static_cast<GLenum>(0x855E); const GLenum EMBOSS_MAP_NV = static_cast<GLenum>(0x855F); //Definitions for GL_NV_blend_square //Definitions for GL_NV_texture_env_combine4 const GLenum COMBINE4_NV = static_cast<GLenum>(0x8503); const GLenum SOURCE3_RGB_NV = static_cast<GLenum>(0x8583); const GLenum SOURCE3_ALPHA_NV = static_cast<GLenum>(0x858B); const GLenum OPERAND3_RGB_NV = static_cast<GLenum>(0x8593); const GLenum OPERAND3_ALPHA_NV = static_cast<GLenum>(0x859B); //Definitions for GL_MESA_resize_buffers typedef void (APIENTRYP PFNGLRESIZEBUFFERSMESAPROC) (void); extern VTK_RENDERING_EXPORT PFNGLRESIZEBUFFERSMESAPROC ResizeBuffersMESA; //Definitions for GL_MESA_window_pos typedef void (APIENTRYP PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y); typedef void (APIENTRYP PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble *v); typedef void (APIENTRYP PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y); typedef void (APIENTRYP PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat *v); typedef void (APIENTRYP PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y); typedef void (APIENTRYP PFNGLWINDOWPOS2IVMESAPROC) (const GLint *v); typedef void (APIENTRYP PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y); typedef void (APIENTRYP PFNGLWINDOWPOS2SVMESAPROC) (const GLshort *v); typedef void (APIENTRYP PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRYP PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble *v); typedef void (APIENTRYP PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat *v); typedef void (APIENTRYP PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z); typedef void (APIENTRYP PFNGLWINDOWPOS3IVMESAPROC) (const GLint *v); typedef void (APIENTRYP PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z); typedef void (APIENTRYP PFNGLWINDOWPOS3SVMESAPROC) (const GLshort *v); typedef void (APIENTRYP PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w); typedef void (APIENTRYP PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble *v); typedef void (APIENTRYP PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); typedef void (APIENTRYP PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat *v); typedef void (APIENTRYP PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w); typedef void (APIENTRYP PFNGLWINDOWPOS4IVMESAPROC) (const GLint *v); typedef void (APIENTRYP PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w); typedef void (APIENTRYP PFNGLWINDOWPOS4SVMESAPROC) (const GLshort *v); extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2DMESAPROC WindowPos2dMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2DVMESAPROC WindowPos2dvMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2FMESAPROC WindowPos2fMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2FVMESAPROC WindowPos2fvMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2IMESAPROC WindowPos2iMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2IVMESAPROC WindowPos2ivMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2SMESAPROC WindowPos2sMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS2SVMESAPROC WindowPos2svMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3DMESAPROC WindowPos3dMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3DVMESAPROC WindowPos3dvMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3FMESAPROC WindowPos3fMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3FVMESAPROC WindowPos3fvMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3IMESAPROC WindowPos3iMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3IVMESAPROC WindowPos3ivMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3SMESAPROC WindowPos3sMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS3SVMESAPROC WindowPos3svMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS4DMESAPROC WindowPos4dMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS4DVMESAPROC WindowPos4dvMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS4FMESAPROC WindowPos4fMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS4FVMESAPROC WindowPos4fvMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS4IMESAPROC WindowPos4iMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS4IVMESAPROC WindowPos4ivMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS4SMESAPROC WindowPos4sMESA; extern VTK_RENDERING_EXPORT PFNGLWINDOWPOS4SVMESAPROC WindowPos4svMESA; //Definitions for GL_EXT_texture_compression_s3tc const GLenum COMPRESSED_RGB_S3TC_DXT1_EXT = static_cast<GLenum>(0x83F0); const GLenum COMPRESSED_RGBA_S3TC_DXT1_EXT = static_cast<GLenum>(0x83F1); const GLenum COMPRESSED_RGBA_S3TC_DXT3_EXT = static_cast<GLenum>(0x83F2); const GLenum COMPRESSED_RGBA_S3TC_DXT5_EXT = static_cast<GLenum>(0x83F3); //Definitions for GL_IBM_cull_vertex const GLenum CULL_VERTEX_IBM = static_cast<GLenum>(103050); //Definitions for GL_IBM_multimode_draw_arrays typedef void (APIENTRYP PFNGLMULTIMODEDRAWARRAYSIBMPROC) (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride); typedef void (APIENTRYP PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum *mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei primcount, GLint modestride); extern VTK_RENDERING_EXPORT PFNGLMULTIMODEDRAWARRAYSIBMPROC MultiModeDrawArraysIBM; extern VTK_RENDERING_EXPORT PFNGLMULTIMODEDRAWELEMENTSIBMPROC MultiModeDrawElementsIBM; //Definitions for GL_IBM_vertex_array_lists const GLenum VERTEX_ARRAY_LIST_IBM = static_cast<GLenum>(103070); const GLenum NORMAL_ARRAY_LIST_IBM = static_cast<GLenum>(103071); const GLenum COLOR_ARRAY_LIST_IBM = static_cast<GLenum>(103072); const GLenum INDEX_ARRAY_LIST_IBM = static_cast<GLenum>(103073); const GLenum TEXTURE_COORD_ARRAY_LIST_IBM = static_cast<GLenum>(103074); const GLenum EDGE_FLAG_ARRAY_LIST_IBM = static_cast<GLenum>(103075); const GLenum FOG_COORDINATE_ARRAY_LIST_IBM = static_cast<GLenum>(103076); const GLenum SECONDARY_COLOR_ARRAY_LIST_IBM = static_cast<GLenum>(103077); const GLenum VERTEX_ARRAY_LIST_STRIDE_IBM = static_cast<GLenum>(103080); const GLenum NORMAL_ARRAY_LIST_STRIDE_IBM = static_cast<GLenum>(103081); const GLenum COLOR_ARRAY_LIST_STRIDE_IBM = static_cast<GLenum>(103082); const GLenum INDEX_ARRAY_LIST_STRIDE_IBM = static_cast<GLenum>(103083); const GLenum TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM = static_cast<GLenum>(103084); const GLenum EDGE_FLAG_ARRAY_LIST_STRIDE_IBM = static_cast<GLenum>(103085); const GLenum FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM = static_cast<GLenum>(103086); const GLenum SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM = static_cast<GLenum>(103087); typedef void (APIENTRYP PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); typedef void (APIENTRYP PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean* *pointer, GLint ptrstride); typedef void (APIENTRYP PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); typedef void (APIENTRYP PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); typedef void (APIENTRYP PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); typedef void (APIENTRYP PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); typedef void (APIENTRYP PFNGLVERTEXPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); extern VTK_RENDERING_EXPORT PFNGLCOLORPOINTERLISTIBMPROC ColorPointerListIBM; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLORPOINTERLISTIBMPROC SecondaryColorPointerListIBM; extern VTK_RENDERING_EXPORT PFNGLEDGEFLAGPOINTERLISTIBMPROC EdgeFlagPointerListIBM; extern VTK_RENDERING_EXPORT PFNGLFOGCOORDPOINTERLISTIBMPROC FogCoordPointerListIBM; extern VTK_RENDERING_EXPORT PFNGLINDEXPOINTERLISTIBMPROC IndexPointerListIBM; extern VTK_RENDERING_EXPORT PFNGLNORMALPOINTERLISTIBMPROC NormalPointerListIBM; extern VTK_RENDERING_EXPORT PFNGLTEXCOORDPOINTERLISTIBMPROC TexCoordPointerListIBM; extern VTK_RENDERING_EXPORT PFNGLVERTEXPOINTERLISTIBMPROC VertexPointerListIBM; //Definitions for GL_SGIX_subsample const GLenum PACK_SUBSAMPLE_RATE_SGIX = static_cast<GLenum>(0x85A0); const GLenum UNPACK_SUBSAMPLE_RATE_SGIX = static_cast<GLenum>(0x85A1); const GLenum PIXEL_SUBSAMPLE_4444_SGIX = static_cast<GLenum>(0x85A2); const GLenum PIXEL_SUBSAMPLE_2424_SGIX = static_cast<GLenum>(0x85A3); const GLenum PIXEL_SUBSAMPLE_4242_SGIX = static_cast<GLenum>(0x85A4); //Definitions for GL_SGIX_ycrcb_subsample //Definitions for GL_SGIX_ycrcba const GLenum YCRCB_SGIX = static_cast<GLenum>(0x8318); const GLenum YCRCBA_SGIX = static_cast<GLenum>(0x8319); //Definitions for GL_SGI_depth_pass_instrument const GLenum DEPTH_PASS_INSTRUMENT_SGIX = static_cast<GLenum>(0x8310); const GLenum DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX = static_cast<GLenum>(0x8311); const GLenum DEPTH_PASS_INSTRUMENT_MAX_SGIX = static_cast<GLenum>(0x8312); //Definitions for GL_3DFX_texture_compression_FXT1 const GLenum COMPRESSED_RGB_FXT1_3DFX = static_cast<GLenum>(0x86B0); const GLenum COMPRESSED_RGBA_FXT1_3DFX = static_cast<GLenum>(0x86B1); //Definitions for GL_3DFX_multisample const GLenum MULTISAMPLE_3DFX = static_cast<GLenum>(0x86B2); const GLenum SAMPLE_BUFFERS_3DFX = static_cast<GLenum>(0x86B3); const GLenum SAMPLES_3DFX = static_cast<GLenum>(0x86B4); const GLenum MULTISAMPLE_BIT_3DFX = static_cast<GLenum>(0x20000000); //Definitions for GL_3DFX_tbuffer typedef void (APIENTRYP PFNGLTBUFFERMASK3DFXPROC) (GLuint mask); extern VTK_RENDERING_EXPORT PFNGLTBUFFERMASK3DFXPROC TbufferMask3DFX; //Definitions for GL_EXT_multisample const GLenum MULTISAMPLE_EXT = static_cast<GLenum>(0x809D); const GLenum SAMPLE_ALPHA_TO_MASK_EXT = static_cast<GLenum>(0x809E); const GLenum SAMPLE_ALPHA_TO_ONE_EXT = static_cast<GLenum>(0x809F); const GLenum SAMPLE_MASK_EXT = static_cast<GLenum>(0x80A0); const GLenum _1PASS_EXT = static_cast<GLenum>(0x80A1); const GLenum _2PASS_0_EXT = static_cast<GLenum>(0x80A2); const GLenum _2PASS_1_EXT = static_cast<GLenum>(0x80A3); const GLenum _4PASS_0_EXT = static_cast<GLenum>(0x80A4); const GLenum _4PASS_1_EXT = static_cast<GLenum>(0x80A5); const GLenum _4PASS_2_EXT = static_cast<GLenum>(0x80A6); const GLenum _4PASS_3_EXT = static_cast<GLenum>(0x80A7); const GLenum SAMPLE_BUFFERS_EXT = static_cast<GLenum>(0x80A8); const GLenum SAMPLES_EXT = static_cast<GLenum>(0x80A9); const GLenum SAMPLE_MASK_VALUE_EXT = static_cast<GLenum>(0x80AA); const GLenum SAMPLE_MASK_INVERT_EXT = static_cast<GLenum>(0x80AB); const GLenum SAMPLE_PATTERN_EXT = static_cast<GLenum>(0x80AC); const GLenum MULTISAMPLE_BIT_EXT = static_cast<GLenum>(0x20000000); typedef void (APIENTRYP PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert); typedef void (APIENTRYP PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern); extern VTK_RENDERING_EXPORT PFNGLSAMPLEMASKEXTPROC SampleMaskEXT; extern VTK_RENDERING_EXPORT PFNGLSAMPLEPATTERNEXTPROC SamplePatternEXT; //Definitions for GL_SGIX_vertex_preclip const GLenum VERTEX_PRECLIP_SGIX = static_cast<GLenum>(0x83EE); const GLenum VERTEX_PRECLIP_HINT_SGIX = static_cast<GLenum>(0x83EF); //Definitions for GL_SGIX_convolution_accuracy const GLenum CONVOLUTION_HINT_SGIX = static_cast<GLenum>(0x8316); //Definitions for GL_SGIX_resample const GLenum PACK_RESAMPLE_SGIX = static_cast<GLenum>(0x842C); const GLenum UNPACK_RESAMPLE_SGIX = static_cast<GLenum>(0x842D); const GLenum RESAMPLE_REPLICATE_SGIX = static_cast<GLenum>(0x842E); const GLenum RESAMPLE_ZERO_FILL_SGIX = static_cast<GLenum>(0x842F); const GLenum RESAMPLE_DECIMATE_SGIX = static_cast<GLenum>(0x8430); //Definitions for GL_SGIS_point_line_texgen const GLenum EYE_DISTANCE_TO_POINT_SGIS = static_cast<GLenum>(0x81F0); const GLenum OBJECT_DISTANCE_TO_POINT_SGIS = static_cast<GLenum>(0x81F1); const GLenum EYE_DISTANCE_TO_LINE_SGIS = static_cast<GLenum>(0x81F2); const GLenum OBJECT_DISTANCE_TO_LINE_SGIS = static_cast<GLenum>(0x81F3); const GLenum EYE_POINT_SGIS = static_cast<GLenum>(0x81F4); const GLenum OBJECT_POINT_SGIS = static_cast<GLenum>(0x81F5); const GLenum EYE_LINE_SGIS = static_cast<GLenum>(0x81F6); const GLenum OBJECT_LINE_SGIS = static_cast<GLenum>(0x81F7); //Definitions for GL_SGIS_texture_color_mask const GLenum TEXTURE_COLOR_WRITEMASK_SGIS = static_cast<GLenum>(0x81EF); typedef void (APIENTRYP PFNGLTEXTURECOLORMASKSGISPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); extern VTK_RENDERING_EXPORT PFNGLTEXTURECOLORMASKSGISPROC TextureColorMaskSGIS; //Definitions for GL_EXT_texture_env_dot3 const GLenum DOT3_RGB_EXT = static_cast<GLenum>(0x8740); const GLenum DOT3_RGBA_EXT = static_cast<GLenum>(0x8741); //Definitions for GL_ATI_texture_mirror_once const GLenum MIRROR_CLAMP_ATI = static_cast<GLenum>(0x8742); const GLenum MIRROR_CLAMP_TO_EDGE_ATI = static_cast<GLenum>(0x8743); //Definitions for GL_NV_fence const GLenum ALL_COMPLETED_NV = static_cast<GLenum>(0x84F2); const GLenum FENCE_STATUS_NV = static_cast<GLenum>(0x84F3); const GLenum FENCE_CONDITION_NV = static_cast<GLenum>(0x84F4); typedef void (APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences); typedef void (APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences); typedef GLboolean (APIENTRYP PFNGLISFENCENVPROC) (GLuint fence); typedef GLboolean (APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence); typedef void (APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence); typedef void (APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition); extern VTK_RENDERING_EXPORT PFNGLDELETEFENCESNVPROC DeleteFencesNV; extern VTK_RENDERING_EXPORT PFNGLGENFENCESNVPROC GenFencesNV; extern VTK_RENDERING_EXPORT PFNGLISFENCENVPROC IsFenceNV; extern VTK_RENDERING_EXPORT PFNGLTESTFENCENVPROC TestFenceNV; extern VTK_RENDERING_EXPORT PFNGLGETFENCEIVNVPROC GetFenceivNV; extern VTK_RENDERING_EXPORT PFNGLFINISHFENCENVPROC FinishFenceNV; extern VTK_RENDERING_EXPORT PFNGLSETFENCENVPROC SetFenceNV; //Definitions for GL_IBM_texture_mirrored_repeat const GLenum MIRRORED_REPEAT_IBM = static_cast<GLenum>(0x8370); //Definitions for GL_NV_evaluators const GLenum EVAL_2D_NV = static_cast<GLenum>(0x86C0); const GLenum EVAL_TRIANGULAR_2D_NV = static_cast<GLenum>(0x86C1); const GLenum MAP_TESSELLATION_NV = static_cast<GLenum>(0x86C2); const GLenum MAP_ATTRIB_U_ORDER_NV = static_cast<GLenum>(0x86C3); const GLenum MAP_ATTRIB_V_ORDER_NV = static_cast<GLenum>(0x86C4); const GLenum EVAL_FRACTIONAL_TESSELLATION_NV = static_cast<GLenum>(0x86C5); const GLenum EVAL_VERTEX_ATTRIB0_NV = static_cast<GLenum>(0x86C6); const GLenum EVAL_VERTEX_ATTRIB1_NV = static_cast<GLenum>(0x86C7); const GLenum EVAL_VERTEX_ATTRIB2_NV = static_cast<GLenum>(0x86C8); const GLenum EVAL_VERTEX_ATTRIB3_NV = static_cast<GLenum>(0x86C9); const GLenum EVAL_VERTEX_ATTRIB4_NV = static_cast<GLenum>(0x86CA); const GLenum EVAL_VERTEX_ATTRIB5_NV = static_cast<GLenum>(0x86CB); const GLenum EVAL_VERTEX_ATTRIB6_NV = static_cast<GLenum>(0x86CC); const GLenum EVAL_VERTEX_ATTRIB7_NV = static_cast<GLenum>(0x86CD); const GLenum EVAL_VERTEX_ATTRIB8_NV = static_cast<GLenum>(0x86CE); const GLenum EVAL_VERTEX_ATTRIB9_NV = static_cast<GLenum>(0x86CF); const GLenum EVAL_VERTEX_ATTRIB10_NV = static_cast<GLenum>(0x86D0); const GLenum EVAL_VERTEX_ATTRIB11_NV = static_cast<GLenum>(0x86D1); const GLenum EVAL_VERTEX_ATTRIB12_NV = static_cast<GLenum>(0x86D2); const GLenum EVAL_VERTEX_ATTRIB13_NV = static_cast<GLenum>(0x86D3); const GLenum EVAL_VERTEX_ATTRIB14_NV = static_cast<GLenum>(0x86D4); const GLenum EVAL_VERTEX_ATTRIB15_NV = static_cast<GLenum>(0x86D5); const GLenum MAX_MAP_TESSELLATION_NV = static_cast<GLenum>(0x86D6); const GLenum MAX_RATIONAL_EVAL_ORDER_NV = static_cast<GLenum>(0x86D7); typedef void (APIENTRYP PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid *points); typedef void (APIENTRYP PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, GLvoid *points); typedef void (APIENTRYP PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode); extern VTK_RENDERING_EXPORT PFNGLMAPCONTROLPOINTSNVPROC MapControlPointsNV; extern VTK_RENDERING_EXPORT PFNGLMAPPARAMETERIVNVPROC MapParameterivNV; extern VTK_RENDERING_EXPORT PFNGLMAPPARAMETERFVNVPROC MapParameterfvNV; extern VTK_RENDERING_EXPORT PFNGLGETMAPCONTROLPOINTSNVPROC GetMapControlPointsNV; extern VTK_RENDERING_EXPORT PFNGLGETMAPPARAMETERIVNVPROC GetMapParameterivNV; extern VTK_RENDERING_EXPORT PFNGLGETMAPPARAMETERFVNVPROC GetMapParameterfvNV; extern VTK_RENDERING_EXPORT PFNGLGETMAPATTRIBPARAMETERIVNVPROC GetMapAttribParameterivNV; extern VTK_RENDERING_EXPORT PFNGLGETMAPATTRIBPARAMETERFVNVPROC GetMapAttribParameterfvNV; extern VTK_RENDERING_EXPORT PFNGLEVALMAPSNVPROC EvalMapsNV; //Definitions for GL_NV_packed_depth_stencil const GLenum DEPTH_STENCIL_NV = static_cast<GLenum>(0x84F9); const GLenum UNSIGNED_INT_24_8_NV = static_cast<GLenum>(0x84FA); //Definitions for GL_NV_register_combiners2 const GLenum PER_STAGE_CONSTANTS_NV = static_cast<GLenum>(0x8535); typedef void (APIENTRYP PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat *params); extern VTK_RENDERING_EXPORT PFNGLCOMBINERSTAGEPARAMETERFVNVPROC CombinerStageParameterfvNV; extern VTK_RENDERING_EXPORT PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC GetCombinerStageParameterfvNV; //Definitions for GL_NV_texture_compression_vtc //Definitions for GL_NV_texture_rectangle const GLenum TEXTURE_RECTANGLE_NV = static_cast<GLenum>(0x84F5); const GLenum TEXTURE_BINDING_RECTANGLE_NV = static_cast<GLenum>(0x84F6); const GLenum PROXY_TEXTURE_RECTANGLE_NV = static_cast<GLenum>(0x84F7); const GLenum MAX_RECTANGLE_TEXTURE_SIZE_NV = static_cast<GLenum>(0x84F8); //Definitions for GL_NV_texture_shader const GLenum OFFSET_TEXTURE_RECTANGLE_NV = static_cast<GLenum>(0x864C); const GLenum OFFSET_TEXTURE_RECTANGLE_SCALE_NV = static_cast<GLenum>(0x864D); const GLenum DOT_PRODUCT_TEXTURE_RECTANGLE_NV = static_cast<GLenum>(0x864E); const GLenum RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV = static_cast<GLenum>(0x86D9); const GLenum UNSIGNED_INT_S8_S8_8_8_NV = static_cast<GLenum>(0x86DA); const GLenum UNSIGNED_INT_8_8_S8_S8_REV_NV = static_cast<GLenum>(0x86DB); const GLenum DSDT_MAG_INTENSITY_NV = static_cast<GLenum>(0x86DC); const GLenum SHADER_CONSISTENT_NV = static_cast<GLenum>(0x86DD); const GLenum TEXTURE_SHADER_NV = static_cast<GLenum>(0x86DE); const GLenum SHADER_OPERATION_NV = static_cast<GLenum>(0x86DF); const GLenum CULL_MODES_NV = static_cast<GLenum>(0x86E0); const GLenum OFFSET_TEXTURE_MATRIX_NV = static_cast<GLenum>(0x86E1); const GLenum OFFSET_TEXTURE_SCALE_NV = static_cast<GLenum>(0x86E2); const GLenum OFFSET_TEXTURE_BIAS_NV = static_cast<GLenum>(0x86E3); const GLenum OFFSET_TEXTURE_2D_MATRIX_NV = static_cast<GLenum>(0x86E1); const GLenum OFFSET_TEXTURE_2D_SCALE_NV = static_cast<GLenum>(0x86E2); const GLenum OFFSET_TEXTURE_2D_BIAS_NV = static_cast<GLenum>(0x86E3); const GLenum PREVIOUS_TEXTURE_INPUT_NV = static_cast<GLenum>(0x86E4); const GLenum CONST_EYE_NV = static_cast<GLenum>(0x86E5); const GLenum PASS_THROUGH_NV = static_cast<GLenum>(0x86E6); const GLenum CULL_FRAGMENT_NV = static_cast<GLenum>(0x86E7); const GLenum OFFSET_TEXTURE_2D_NV = static_cast<GLenum>(0x86E8); const GLenum DEPENDENT_AR_TEXTURE_2D_NV = static_cast<GLenum>(0x86E9); const GLenum DEPENDENT_GB_TEXTURE_2D_NV = static_cast<GLenum>(0x86EA); const GLenum DOT_PRODUCT_NV = static_cast<GLenum>(0x86EC); const GLenum DOT_PRODUCT_DEPTH_REPLACE_NV = static_cast<GLenum>(0x86ED); const GLenum DOT_PRODUCT_TEXTURE_2D_NV = static_cast<GLenum>(0x86EE); const GLenum DOT_PRODUCT_TEXTURE_CUBE_MAP_NV = static_cast<GLenum>(0x86F0); const GLenum DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV = static_cast<GLenum>(0x86F1); const GLenum DOT_PRODUCT_REFLECT_CUBE_MAP_NV = static_cast<GLenum>(0x86F2); const GLenum DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV = static_cast<GLenum>(0x86F3); const GLenum HILO_NV = static_cast<GLenum>(0x86F4); const GLenum DSDT_NV = static_cast<GLenum>(0x86F5); const GLenum DSDT_MAG_NV = static_cast<GLenum>(0x86F6); const GLenum DSDT_MAG_VIB_NV = static_cast<GLenum>(0x86F7); const GLenum HILO16_NV = static_cast<GLenum>(0x86F8); const GLenum SIGNED_HILO_NV = static_cast<GLenum>(0x86F9); const GLenum SIGNED_HILO16_NV = static_cast<GLenum>(0x86FA); const GLenum SIGNED_RGBA_NV = static_cast<GLenum>(0x86FB); const GLenum SIGNED_RGBA8_NV = static_cast<GLenum>(0x86FC); const GLenum SIGNED_RGB_NV = static_cast<GLenum>(0x86FE); const GLenum SIGNED_RGB8_NV = static_cast<GLenum>(0x86FF); const GLenum SIGNED_LUMINANCE_NV = static_cast<GLenum>(0x8701); const GLenum SIGNED_LUMINANCE8_NV = static_cast<GLenum>(0x8702); const GLenum SIGNED_LUMINANCE_ALPHA_NV = static_cast<GLenum>(0x8703); const GLenum SIGNED_LUMINANCE8_ALPHA8_NV = static_cast<GLenum>(0x8704); const GLenum SIGNED_ALPHA_NV = static_cast<GLenum>(0x8705); const GLenum SIGNED_ALPHA8_NV = static_cast<GLenum>(0x8706); const GLenum SIGNED_INTENSITY_NV = static_cast<GLenum>(0x8707); const GLenum SIGNED_INTENSITY8_NV = static_cast<GLenum>(0x8708); const GLenum DSDT8_NV = static_cast<GLenum>(0x8709); const GLenum DSDT8_MAG8_NV = static_cast<GLenum>(0x870A); const GLenum DSDT8_MAG8_INTENSITY8_NV = static_cast<GLenum>(0x870B); const GLenum SIGNED_RGB_UNSIGNED_ALPHA_NV = static_cast<GLenum>(0x870C); const GLenum SIGNED_RGB8_UNSIGNED_ALPHA8_NV = static_cast<GLenum>(0x870D); const GLenum HI_SCALE_NV = static_cast<GLenum>(0x870E); const GLenum LO_SCALE_NV = static_cast<GLenum>(0x870F); const GLenum DS_SCALE_NV = static_cast<GLenum>(0x8710); const GLenum DT_SCALE_NV = static_cast<GLenum>(0x8711); const GLenum MAGNITUDE_SCALE_NV = static_cast<GLenum>(0x8712); const GLenum VIBRANCE_SCALE_NV = static_cast<GLenum>(0x8713); const GLenum HI_BIAS_NV = static_cast<GLenum>(0x8714); const GLenum LO_BIAS_NV = static_cast<GLenum>(0x8715); const GLenum DS_BIAS_NV = static_cast<GLenum>(0x8716); const GLenum DT_BIAS_NV = static_cast<GLenum>(0x8717); const GLenum MAGNITUDE_BIAS_NV = static_cast<GLenum>(0x8718); const GLenum VIBRANCE_BIAS_NV = static_cast<GLenum>(0x8719); const GLenum TEXTURE_BORDER_VALUES_NV = static_cast<GLenum>(0x871A); const GLenum TEXTURE_HI_SIZE_NV = static_cast<GLenum>(0x871B); const GLenum TEXTURE_LO_SIZE_NV = static_cast<GLenum>(0x871C); const GLenum TEXTURE_DS_SIZE_NV = static_cast<GLenum>(0x871D); const GLenum TEXTURE_DT_SIZE_NV = static_cast<GLenum>(0x871E); const GLenum TEXTURE_MAG_SIZE_NV = static_cast<GLenum>(0x871F); //Definitions for GL_NV_texture_shader2 const GLenum DOT_PRODUCT_TEXTURE_3D_NV = static_cast<GLenum>(0x86EF); //Definitions for GL_NV_vertex_array_range2 const GLenum VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV = static_cast<GLenum>(0x8533); //Definitions for GL_NV_vertex_program const GLenum VERTEX_PROGRAM_NV = static_cast<GLenum>(0x8620); const GLenum VERTEX_STATE_PROGRAM_NV = static_cast<GLenum>(0x8621); const GLenum ATTRIB_ARRAY_SIZE_NV = static_cast<GLenum>(0x8623); const GLenum ATTRIB_ARRAY_STRIDE_NV = static_cast<GLenum>(0x8624); const GLenum ATTRIB_ARRAY_TYPE_NV = static_cast<GLenum>(0x8625); const GLenum CURRENT_ATTRIB_NV = static_cast<GLenum>(0x8626); const GLenum PROGRAM_LENGTH_NV = static_cast<GLenum>(0x8627); const GLenum PROGRAM_STRING_NV = static_cast<GLenum>(0x8628); const GLenum MODELVIEW_PROJECTION_NV = static_cast<GLenum>(0x8629); const GLenum IDENTITY_NV = static_cast<GLenum>(0x862A); const GLenum INVERSE_NV = static_cast<GLenum>(0x862B); const GLenum TRANSPOSE_NV = static_cast<GLenum>(0x862C); const GLenum INVERSE_TRANSPOSE_NV = static_cast<GLenum>(0x862D); const GLenum MAX_TRACK_MATRIX_STACK_DEPTH_NV = static_cast<GLenum>(0x862E); const GLenum MAX_TRACK_MATRICES_NV = static_cast<GLenum>(0x862F); const GLenum MATRIX0_NV = static_cast<GLenum>(0x8630); const GLenum MATRIX1_NV = static_cast<GLenum>(0x8631); const GLenum MATRIX2_NV = static_cast<GLenum>(0x8632); const GLenum MATRIX3_NV = static_cast<GLenum>(0x8633); const GLenum MATRIX4_NV = static_cast<GLenum>(0x8634); const GLenum MATRIX5_NV = static_cast<GLenum>(0x8635); const GLenum MATRIX6_NV = static_cast<GLenum>(0x8636); const GLenum MATRIX7_NV = static_cast<GLenum>(0x8637); const GLenum CURRENT_MATRIX_STACK_DEPTH_NV = static_cast<GLenum>(0x8640); const GLenum CURRENT_MATRIX_NV = static_cast<GLenum>(0x8641); const GLenum VERTEX_PROGRAM_POINT_SIZE_NV = static_cast<GLenum>(0x8642); const GLenum VERTEX_PROGRAM_TWO_SIDE_NV = static_cast<GLenum>(0x8643); const GLenum PROGRAM_PARAMETER_NV = static_cast<GLenum>(0x8644); const GLenum ATTRIB_ARRAY_POINTER_NV = static_cast<GLenum>(0x8645); const GLenum PROGRAM_TARGET_NV = static_cast<GLenum>(0x8646); const GLenum PROGRAM_RESIDENT_NV = static_cast<GLenum>(0x8647); const GLenum TRACK_MATRIX_NV = static_cast<GLenum>(0x8648); const GLenum TRACK_MATRIX_TRANSFORM_NV = static_cast<GLenum>(0x8649); const GLenum VERTEX_PROGRAM_BINDING_NV = static_cast<GLenum>(0x864A); const GLenum PROGRAM_ERROR_POSITION_NV = static_cast<GLenum>(0x864B); const GLenum VERTEX_ATTRIB_ARRAY0_NV = static_cast<GLenum>(0x8650); const GLenum VERTEX_ATTRIB_ARRAY1_NV = static_cast<GLenum>(0x8651); const GLenum VERTEX_ATTRIB_ARRAY2_NV = static_cast<GLenum>(0x8652); const GLenum VERTEX_ATTRIB_ARRAY3_NV = static_cast<GLenum>(0x8653); const GLenum VERTEX_ATTRIB_ARRAY4_NV = static_cast<GLenum>(0x8654); const GLenum VERTEX_ATTRIB_ARRAY5_NV = static_cast<GLenum>(0x8655); const GLenum VERTEX_ATTRIB_ARRAY6_NV = static_cast<GLenum>(0x8656); const GLenum VERTEX_ATTRIB_ARRAY7_NV = static_cast<GLenum>(0x8657); const GLenum VERTEX_ATTRIB_ARRAY8_NV = static_cast<GLenum>(0x8658); const GLenum VERTEX_ATTRIB_ARRAY9_NV = static_cast<GLenum>(0x8659); const GLenum VERTEX_ATTRIB_ARRAY10_NV = static_cast<GLenum>(0x865A); const GLenum VERTEX_ATTRIB_ARRAY11_NV = static_cast<GLenum>(0x865B); const GLenum VERTEX_ATTRIB_ARRAY12_NV = static_cast<GLenum>(0x865C); const GLenum VERTEX_ATTRIB_ARRAY13_NV = static_cast<GLenum>(0x865D); const GLenum VERTEX_ATTRIB_ARRAY14_NV = static_cast<GLenum>(0x865E); const GLenum VERTEX_ATTRIB_ARRAY15_NV = static_cast<GLenum>(0x865F); const GLenum MAP1_VERTEX_ATTRIB0_4_NV = static_cast<GLenum>(0x8660); const GLenum MAP1_VERTEX_ATTRIB1_4_NV = static_cast<GLenum>(0x8661); const GLenum MAP1_VERTEX_ATTRIB2_4_NV = static_cast<GLenum>(0x8662); const GLenum MAP1_VERTEX_ATTRIB3_4_NV = static_cast<GLenum>(0x8663); const GLenum MAP1_VERTEX_ATTRIB4_4_NV = static_cast<GLenum>(0x8664); const GLenum MAP1_VERTEX_ATTRIB5_4_NV = static_cast<GLenum>(0x8665); const GLenum MAP1_VERTEX_ATTRIB6_4_NV = static_cast<GLenum>(0x8666); const GLenum MAP1_VERTEX_ATTRIB7_4_NV = static_cast<GLenum>(0x8667); const GLenum MAP1_VERTEX_ATTRIB8_4_NV = static_cast<GLenum>(0x8668); const GLenum MAP1_VERTEX_ATTRIB9_4_NV = static_cast<GLenum>(0x8669); const GLenum MAP1_VERTEX_ATTRIB10_4_NV = static_cast<GLenum>(0x866A); const GLenum MAP1_VERTEX_ATTRIB11_4_NV = static_cast<GLenum>(0x866B); const GLenum MAP1_VERTEX_ATTRIB12_4_NV = static_cast<GLenum>(0x866C); const GLenum MAP1_VERTEX_ATTRIB13_4_NV = static_cast<GLenum>(0x866D); const GLenum MAP1_VERTEX_ATTRIB14_4_NV = static_cast<GLenum>(0x866E); const GLenum MAP1_VERTEX_ATTRIB15_4_NV = static_cast<GLenum>(0x866F); const GLenum MAP2_VERTEX_ATTRIB0_4_NV = static_cast<GLenum>(0x8670); const GLenum MAP2_VERTEX_ATTRIB1_4_NV = static_cast<GLenum>(0x8671); const GLenum MAP2_VERTEX_ATTRIB2_4_NV = static_cast<GLenum>(0x8672); const GLenum MAP2_VERTEX_ATTRIB3_4_NV = static_cast<GLenum>(0x8673); const GLenum MAP2_VERTEX_ATTRIB4_4_NV = static_cast<GLenum>(0x8674); const GLenum MAP2_VERTEX_ATTRIB5_4_NV = static_cast<GLenum>(0x8675); const GLenum MAP2_VERTEX_ATTRIB6_4_NV = static_cast<GLenum>(0x8676); const GLenum MAP2_VERTEX_ATTRIB7_4_NV = static_cast<GLenum>(0x8677); const GLenum MAP2_VERTEX_ATTRIB8_4_NV = static_cast<GLenum>(0x8678); const GLenum MAP2_VERTEX_ATTRIB9_4_NV = static_cast<GLenum>(0x8679); const GLenum MAP2_VERTEX_ATTRIB10_4_NV = static_cast<GLenum>(0x867A); const GLenum MAP2_VERTEX_ATTRIB11_4_NV = static_cast<GLenum>(0x867B); const GLenum MAP2_VERTEX_ATTRIB12_4_NV = static_cast<GLenum>(0x867C); const GLenum MAP2_VERTEX_ATTRIB13_4_NV = static_cast<GLenum>(0x867D); const GLenum MAP2_VERTEX_ATTRIB14_4_NV = static_cast<GLenum>(0x867E); const GLenum MAP2_VERTEX_ATTRIB15_4_NV = static_cast<GLenum>(0x867F); typedef GLboolean (APIENTRYP PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint *programs, GLboolean *residences); typedef void (APIENTRYP PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id); typedef void (APIENTRYP PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); typedef void (APIENTRYP PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat *params); typedef void (APIENTRYP PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint *programs); typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble *params); typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte *program); typedef void (APIENTRYP PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble *params); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, GLvoid* *pointer); typedef GLboolean (APIENTRYP PFNGLISPROGRAMNVPROC) (GLuint id); typedef void (APIENTRYP PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte *program); typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble *v); typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat *v); typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLuint count, const GLdouble *v); typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLuint count, const GLfloat *v); typedef void (APIENTRYP PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); typedef void (APIENTRYP PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform); typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint fsize, GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRYP PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x); typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x); typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x); typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y); typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y); typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y); typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z); typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte *v); extern VTK_RENDERING_EXPORT PFNGLAREPROGRAMSRESIDENTNVPROC AreProgramsResidentNV; extern VTK_RENDERING_EXPORT PFNGLBINDPROGRAMNVPROC BindProgramNV; extern VTK_RENDERING_EXPORT PFNGLDELETEPROGRAMSNVPROC DeleteProgramsNV; extern VTK_RENDERING_EXPORT PFNGLEXECUTEPROGRAMNVPROC ExecuteProgramNV; extern VTK_RENDERING_EXPORT PFNGLGENPROGRAMSNVPROC GenProgramsNV; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMPARAMETERDVNVPROC GetProgramParameterdvNV; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMPARAMETERFVNVPROC GetProgramParameterfvNV; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMIVNVPROC GetProgramivNV; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMSTRINGNVPROC GetProgramStringNV; extern VTK_RENDERING_EXPORT PFNGLGETTRACKMATRIXIVNVPROC GetTrackMatrixivNV; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBDVNVPROC GetVertexAttribdvNV; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBFVNVPROC GetVertexAttribfvNV; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBIVNVPROC GetVertexAttribivNV; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBPOINTERVNVPROC GetVertexAttribPointervNV; extern VTK_RENDERING_EXPORT PFNGLISPROGRAMNVPROC IsProgramNV; extern VTK_RENDERING_EXPORT PFNGLLOADPROGRAMNVPROC LoadProgramNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMPARAMETER4DNVPROC ProgramParameter4dNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMPARAMETER4DVNVPROC ProgramParameter4dvNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMPARAMETER4FNVPROC ProgramParameter4fNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMPARAMETER4FVNVPROC ProgramParameter4fvNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMPARAMETERS4DVNVPROC ProgramParameters4dvNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMPARAMETERS4FVNVPROC ProgramParameters4fvNV; extern VTK_RENDERING_EXPORT PFNGLREQUESTRESIDENTPROGRAMSNVPROC RequestResidentProgramsNV; extern VTK_RENDERING_EXPORT PFNGLTRACKMATRIXNVPROC TrackMatrixNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBPOINTERNVPROC VertexAttribPointerNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1DNVPROC VertexAttrib1dNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1DVNVPROC VertexAttrib1dvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1FNVPROC VertexAttrib1fNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1FVNVPROC VertexAttrib1fvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1SNVPROC VertexAttrib1sNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1SVNVPROC VertexAttrib1svNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2DNVPROC VertexAttrib2dNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2DVNVPROC VertexAttrib2dvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2FNVPROC VertexAttrib2fNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2FVNVPROC VertexAttrib2fvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2SNVPROC VertexAttrib2sNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2SVNVPROC VertexAttrib2svNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3DNVPROC VertexAttrib3dNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3DVNVPROC VertexAttrib3dvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3FNVPROC VertexAttrib3fNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3FVNVPROC VertexAttrib3fvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3SNVPROC VertexAttrib3sNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3SVNVPROC VertexAttrib3svNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4DNVPROC VertexAttrib4dNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4DVNVPROC VertexAttrib4dvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4FNVPROC VertexAttrib4fNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4FVNVPROC VertexAttrib4fvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4SNVPROC VertexAttrib4sNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4SVNVPROC VertexAttrib4svNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4UBNVPROC VertexAttrib4ubNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4UBVNVPROC VertexAttrib4ubvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS1DVNVPROC VertexAttribs1dvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS1FVNVPROC VertexAttribs1fvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS1SVNVPROC VertexAttribs1svNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS2DVNVPROC VertexAttribs2dvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS2FVNVPROC VertexAttribs2fvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS2SVNVPROC VertexAttribs2svNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS3DVNVPROC VertexAttribs3dvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS3FVNVPROC VertexAttribs3fvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS3SVNVPROC VertexAttribs3svNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS4DVNVPROC VertexAttribs4dvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS4FVNVPROC VertexAttribs4fvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS4SVNVPROC VertexAttribs4svNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS4UBVNVPROC VertexAttribs4ubvNV; //Definitions for GL_SGIX_texture_coordinate_clamp const GLenum TEXTURE_MAX_CLAMP_S_SGIX = static_cast<GLenum>(0x8369); const GLenum TEXTURE_MAX_CLAMP_T_SGIX = static_cast<GLenum>(0x836A); const GLenum TEXTURE_MAX_CLAMP_R_SGIX = static_cast<GLenum>(0x836B); //Definitions for GL_SGIX_scalebias_hint const GLenum SCALEBIAS_HINT_SGIX = static_cast<GLenum>(0x8322); //Definitions for GL_OML_interlace const GLenum INTERLACE_OML = static_cast<GLenum>(0x8980); const GLenum INTERLACE_READ_OML = static_cast<GLenum>(0x8981); //Definitions for GL_OML_subsample const GLenum FORMAT_SUBSAMPLE_24_24_OML = static_cast<GLenum>(0x8982); const GLenum FORMAT_SUBSAMPLE_244_244_OML = static_cast<GLenum>(0x8983); //Definitions for GL_OML_resample const GLenum PACK_RESAMPLE_OML = static_cast<GLenum>(0x8984); const GLenum UNPACK_RESAMPLE_OML = static_cast<GLenum>(0x8985); const GLenum RESAMPLE_REPLICATE_OML = static_cast<GLenum>(0x8986); const GLenum RESAMPLE_ZERO_FILL_OML = static_cast<GLenum>(0x8987); const GLenum RESAMPLE_AVERAGE_OML = static_cast<GLenum>(0x8988); const GLenum RESAMPLE_DECIMATE_OML = static_cast<GLenum>(0x8989); //Definitions for GL_NV_copy_depth_to_color const GLenum DEPTH_STENCIL_TO_RGBA_NV = static_cast<GLenum>(0x886E); const GLenum DEPTH_STENCIL_TO_BGRA_NV = static_cast<GLenum>(0x886F); //Definitions for GL_ATI_envmap_bumpmap const GLenum BUMP_ROT_MATRIX_ATI = static_cast<GLenum>(0x8775); const GLenum BUMP_ROT_MATRIX_SIZE_ATI = static_cast<GLenum>(0x8776); const GLenum BUMP_NUM_TEX_UNITS_ATI = static_cast<GLenum>(0x8777); const GLenum BUMP_TEX_UNITS_ATI = static_cast<GLenum>(0x8778); const GLenum DUDV_ATI = static_cast<GLenum>(0x8779); const GLenum DU8DV8_ATI = static_cast<GLenum>(0x877A); const GLenum BUMP_ENVMAP_ATI = static_cast<GLenum>(0x877B); const GLenum BUMP_TARGET_ATI = static_cast<GLenum>(0x877C); typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, const GLint *param); typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, const GLfloat *param); typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param); typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param); extern VTK_RENDERING_EXPORT PFNGLTEXBUMPPARAMETERIVATIPROC TexBumpParameterivATI; extern VTK_RENDERING_EXPORT PFNGLTEXBUMPPARAMETERFVATIPROC TexBumpParameterfvATI; extern VTK_RENDERING_EXPORT PFNGLGETTEXBUMPPARAMETERIVATIPROC GetTexBumpParameterivATI; extern VTK_RENDERING_EXPORT PFNGLGETTEXBUMPPARAMETERFVATIPROC GetTexBumpParameterfvATI; //Definitions for GL_ATI_fragment_shader const GLenum FRAGMENT_SHADER_ATI = static_cast<GLenum>(0x8920); const GLenum REG_0_ATI = static_cast<GLenum>(0x8921); const GLenum REG_1_ATI = static_cast<GLenum>(0x8922); const GLenum REG_2_ATI = static_cast<GLenum>(0x8923); const GLenum REG_3_ATI = static_cast<GLenum>(0x8924); const GLenum REG_4_ATI = static_cast<GLenum>(0x8925); const GLenum REG_5_ATI = static_cast<GLenum>(0x8926); const GLenum REG_6_ATI = static_cast<GLenum>(0x8927); const GLenum REG_7_ATI = static_cast<GLenum>(0x8928); const GLenum REG_8_ATI = static_cast<GLenum>(0x8929); const GLenum REG_9_ATI = static_cast<GLenum>(0x892A); const GLenum REG_10_ATI = static_cast<GLenum>(0x892B); const GLenum REG_11_ATI = static_cast<GLenum>(0x892C); const GLenum REG_12_ATI = static_cast<GLenum>(0x892D); const GLenum REG_13_ATI = static_cast<GLenum>(0x892E); const GLenum REG_14_ATI = static_cast<GLenum>(0x892F); const GLenum REG_15_ATI = static_cast<GLenum>(0x8930); const GLenum REG_16_ATI = static_cast<GLenum>(0x8931); const GLenum REG_17_ATI = static_cast<GLenum>(0x8932); const GLenum REG_18_ATI = static_cast<GLenum>(0x8933); const GLenum REG_19_ATI = static_cast<GLenum>(0x8934); const GLenum REG_20_ATI = static_cast<GLenum>(0x8935); const GLenum REG_21_ATI = static_cast<GLenum>(0x8936); const GLenum REG_22_ATI = static_cast<GLenum>(0x8937); const GLenum REG_23_ATI = static_cast<GLenum>(0x8938); const GLenum REG_24_ATI = static_cast<GLenum>(0x8939); const GLenum REG_25_ATI = static_cast<GLenum>(0x893A); const GLenum REG_26_ATI = static_cast<GLenum>(0x893B); const GLenum REG_27_ATI = static_cast<GLenum>(0x893C); const GLenum REG_28_ATI = static_cast<GLenum>(0x893D); const GLenum REG_29_ATI = static_cast<GLenum>(0x893E); const GLenum REG_30_ATI = static_cast<GLenum>(0x893F); const GLenum REG_31_ATI = static_cast<GLenum>(0x8940); const GLenum CON_0_ATI = static_cast<GLenum>(0x8941); const GLenum CON_1_ATI = static_cast<GLenum>(0x8942); const GLenum CON_2_ATI = static_cast<GLenum>(0x8943); const GLenum CON_3_ATI = static_cast<GLenum>(0x8944); const GLenum CON_4_ATI = static_cast<GLenum>(0x8945); const GLenum CON_5_ATI = static_cast<GLenum>(0x8946); const GLenum CON_6_ATI = static_cast<GLenum>(0x8947); const GLenum CON_7_ATI = static_cast<GLenum>(0x8948); const GLenum CON_8_ATI = static_cast<GLenum>(0x8949); const GLenum CON_9_ATI = static_cast<GLenum>(0x894A); const GLenum CON_10_ATI = static_cast<GLenum>(0x894B); const GLenum CON_11_ATI = static_cast<GLenum>(0x894C); const GLenum CON_12_ATI = static_cast<GLenum>(0x894D); const GLenum CON_13_ATI = static_cast<GLenum>(0x894E); const GLenum CON_14_ATI = static_cast<GLenum>(0x894F); const GLenum CON_15_ATI = static_cast<GLenum>(0x8950); const GLenum CON_16_ATI = static_cast<GLenum>(0x8951); const GLenum CON_17_ATI = static_cast<GLenum>(0x8952); const GLenum CON_18_ATI = static_cast<GLenum>(0x8953); const GLenum CON_19_ATI = static_cast<GLenum>(0x8954); const GLenum CON_20_ATI = static_cast<GLenum>(0x8955); const GLenum CON_21_ATI = static_cast<GLenum>(0x8956); const GLenum CON_22_ATI = static_cast<GLenum>(0x8957); const GLenum CON_23_ATI = static_cast<GLenum>(0x8958); const GLenum CON_24_ATI = static_cast<GLenum>(0x8959); const GLenum CON_25_ATI = static_cast<GLenum>(0x895A); const GLenum CON_26_ATI = static_cast<GLenum>(0x895B); const GLenum CON_27_ATI = static_cast<GLenum>(0x895C); const GLenum CON_28_ATI = static_cast<GLenum>(0x895D); const GLenum CON_29_ATI = static_cast<GLenum>(0x895E); const GLenum CON_30_ATI = static_cast<GLenum>(0x895F); const GLenum CON_31_ATI = static_cast<GLenum>(0x8960); const GLenum MOV_ATI = static_cast<GLenum>(0x8961); const GLenum ADD_ATI = static_cast<GLenum>(0x8963); const GLenum MUL_ATI = static_cast<GLenum>(0x8964); const GLenum SUB_ATI = static_cast<GLenum>(0x8965); const GLenum DOT3_ATI = static_cast<GLenum>(0x8966); const GLenum DOT4_ATI = static_cast<GLenum>(0x8967); const GLenum MAD_ATI = static_cast<GLenum>(0x8968); const GLenum LERP_ATI = static_cast<GLenum>(0x8969); const GLenum CND_ATI = static_cast<GLenum>(0x896A); const GLenum CND0_ATI = static_cast<GLenum>(0x896B); const GLenum DOT2_ADD_ATI = static_cast<GLenum>(0x896C); const GLenum SECONDARY_INTERPOLATOR_ATI = static_cast<GLenum>(0x896D); const GLenum NUM_FRAGMENT_REGISTERS_ATI = static_cast<GLenum>(0x896E); const GLenum NUM_FRAGMENT_CONSTANTS_ATI = static_cast<GLenum>(0x896F); const GLenum NUM_PASSES_ATI = static_cast<GLenum>(0x8970); const GLenum NUM_INSTRUCTIONS_PER_PASS_ATI = static_cast<GLenum>(0x8971); const GLenum NUM_INSTRUCTIONS_TOTAL_ATI = static_cast<GLenum>(0x8972); const GLenum NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI = static_cast<GLenum>(0x8973); const GLenum NUM_LOOPBACK_COMPONENTS_ATI = static_cast<GLenum>(0x8974); const GLenum COLOR_ALPHA_PAIRING_ATI = static_cast<GLenum>(0x8975); const GLenum SWIZZLE_STR_ATI = static_cast<GLenum>(0x8976); const GLenum SWIZZLE_STQ_ATI = static_cast<GLenum>(0x8977); const GLenum SWIZZLE_STR_DR_ATI = static_cast<GLenum>(0x8978); const GLenum SWIZZLE_STQ_DQ_ATI = static_cast<GLenum>(0x8979); const GLenum SWIZZLE_STRQ_ATI = static_cast<GLenum>(0x897A); const GLenum SWIZZLE_STRQ_DQ_ATI = static_cast<GLenum>(0x897B); const GLenum RED_BIT_ATI = static_cast<GLenum>(0x00000001); const GLenum GREEN_BIT_ATI = static_cast<GLenum>(0x00000002); const GLenum BLUE_BIT_ATI = static_cast<GLenum>(0x00000004); const GLenum _2X_BIT_ATI = static_cast<GLenum>(0x00000001); const GLenum _4X_BIT_ATI = static_cast<GLenum>(0x00000002); const GLenum _8X_BIT_ATI = static_cast<GLenum>(0x00000004); const GLenum HALF_BIT_ATI = static_cast<GLenum>(0x00000008); const GLenum QUARTER_BIT_ATI = static_cast<GLenum>(0x00000010); const GLenum EIGHTH_BIT_ATI = static_cast<GLenum>(0x00000020); const GLenum SATURATE_BIT_ATI = static_cast<GLenum>(0x00000040); const GLenum COMP_BIT_ATI = static_cast<GLenum>(0x00000002); const GLenum NEGATE_BIT_ATI = static_cast<GLenum>(0x00000004); const GLenum BIAS_BIT_ATI = static_cast<GLenum>(0x00000008); typedef GLuint (APIENTRYP PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range); typedef void (APIENTRYP PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id); typedef void (APIENTRYP PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id); typedef void (APIENTRYP PFNGLBEGINFRAGMENTSHADERATIPROC) (void); typedef void (APIENTRYP PFNGLENDFRAGMENTSHADERATIPROC) (void); typedef void (APIENTRYP PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle); typedef void (APIENTRYP PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle); typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); typedef void (APIENTRYP PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat *value); extern VTK_RENDERING_EXPORT PFNGLGENFRAGMENTSHADERSATIPROC GenFragmentShadersATI; extern VTK_RENDERING_EXPORT PFNGLBINDFRAGMENTSHADERATIPROC BindFragmentShaderATI; extern VTK_RENDERING_EXPORT PFNGLDELETEFRAGMENTSHADERATIPROC DeleteFragmentShaderATI; extern VTK_RENDERING_EXPORT PFNGLBEGINFRAGMENTSHADERATIPROC BeginFragmentShaderATI; extern VTK_RENDERING_EXPORT PFNGLENDFRAGMENTSHADERATIPROC EndFragmentShaderATI; extern VTK_RENDERING_EXPORT PFNGLPASSTEXCOORDATIPROC PassTexCoordATI; extern VTK_RENDERING_EXPORT PFNGLSAMPLEMAPATIPROC SampleMapATI; extern VTK_RENDERING_EXPORT PFNGLCOLORFRAGMENTOP1ATIPROC ColorFragmentOp1ATI; extern VTK_RENDERING_EXPORT PFNGLCOLORFRAGMENTOP2ATIPROC ColorFragmentOp2ATI; extern VTK_RENDERING_EXPORT PFNGLCOLORFRAGMENTOP3ATIPROC ColorFragmentOp3ATI; extern VTK_RENDERING_EXPORT PFNGLALPHAFRAGMENTOP1ATIPROC AlphaFragmentOp1ATI; extern VTK_RENDERING_EXPORT PFNGLALPHAFRAGMENTOP2ATIPROC AlphaFragmentOp2ATI; extern VTK_RENDERING_EXPORT PFNGLALPHAFRAGMENTOP3ATIPROC AlphaFragmentOp3ATI; extern VTK_RENDERING_EXPORT PFNGLSETFRAGMENTSHADERCONSTANTATIPROC SetFragmentShaderConstantATI; //Definitions for GL_ATI_pn_triangles const GLenum PN_TRIANGLES_ATI = static_cast<GLenum>(0x87F0); const GLenum MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = static_cast<GLenum>(0x87F1); const GLenum PN_TRIANGLES_POINT_MODE_ATI = static_cast<GLenum>(0x87F2); const GLenum PN_TRIANGLES_NORMAL_MODE_ATI = static_cast<GLenum>(0x87F3); const GLenum PN_TRIANGLES_TESSELATION_LEVEL_ATI = static_cast<GLenum>(0x87F4); const GLenum PN_TRIANGLES_POINT_MODE_LINEAR_ATI = static_cast<GLenum>(0x87F5); const GLenum PN_TRIANGLES_POINT_MODE_CUBIC_ATI = static_cast<GLenum>(0x87F6); const GLenum PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = static_cast<GLenum>(0x87F7); const GLenum PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = static_cast<GLenum>(0x87F8); typedef void (APIENTRYP PFNGLPNTRIANGLESIATIPROC) (GLenum pname, GLint param); typedef void (APIENTRYP PFNGLPNTRIANGLESFATIPROC) (GLenum pname, GLfloat param); extern VTK_RENDERING_EXPORT PFNGLPNTRIANGLESIATIPROC PNTrianglesiATI; extern VTK_RENDERING_EXPORT PFNGLPNTRIANGLESFATIPROC PNTrianglesfATI; //Definitions for GL_ATI_vertex_array_object const GLenum STATIC_ATI = static_cast<GLenum>(0x8760); const GLenum DYNAMIC_ATI = static_cast<GLenum>(0x8761); const GLenum PRESERVE_ATI = static_cast<GLenum>(0x8762); const GLenum DISCARD_ATI = static_cast<GLenum>(0x8763); const GLenum OBJECT_BUFFER_SIZE_ATI = static_cast<GLenum>(0x8764); const GLenum OBJECT_BUFFER_USAGE_ATI = static_cast<GLenum>(0x8765); const GLenum ARRAY_OBJECT_BUFFER_ATI = static_cast<GLenum>(0x8766); const GLenum ARRAY_OBJECT_OFFSET_ATI = static_cast<GLenum>(0x8767); typedef GLuint (APIENTRYP PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const GLvoid *pointer, GLenum usage); typedef GLboolean (APIENTRYP PFNGLISOBJECTBUFFERATIPROC) (GLuint buffer); typedef void (APIENTRYP PFNGLUPDATEOBJECTBUFFERATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const GLvoid *pointer, GLenum preserve); typedef void (APIENTRYP PFNGLGETOBJECTBUFFERFVATIPROC) (GLuint buffer, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETOBJECTBUFFERIVATIPROC) (GLuint buffer, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLFREEOBJECTBUFFERATIPROC) (GLuint buffer); typedef void (APIENTRYP PFNGLARRAYOBJECTATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); typedef void (APIENTRYP PFNGLGETARRAYOBJECTFVATIPROC) (GLenum array, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETARRAYOBJECTIVATIPROC) (GLenum array, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLVARIANTARRAYOBJECTATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTFVATIPROC) (GLuint id, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTIVATIPROC) (GLuint id, GLenum pname, GLint *params); extern VTK_RENDERING_EXPORT PFNGLNEWOBJECTBUFFERATIPROC NewObjectBufferATI; extern VTK_RENDERING_EXPORT PFNGLISOBJECTBUFFERATIPROC IsObjectBufferATI; extern VTK_RENDERING_EXPORT PFNGLUPDATEOBJECTBUFFERATIPROC UpdateObjectBufferATI; extern VTK_RENDERING_EXPORT PFNGLGETOBJECTBUFFERFVATIPROC GetObjectBufferfvATI; extern VTK_RENDERING_EXPORT PFNGLGETOBJECTBUFFERIVATIPROC GetObjectBufferivATI; extern VTK_RENDERING_EXPORT PFNGLFREEOBJECTBUFFERATIPROC FreeObjectBufferATI; extern VTK_RENDERING_EXPORT PFNGLARRAYOBJECTATIPROC ArrayObjectATI; extern VTK_RENDERING_EXPORT PFNGLGETARRAYOBJECTFVATIPROC GetArrayObjectfvATI; extern VTK_RENDERING_EXPORT PFNGLGETARRAYOBJECTIVATIPROC GetArrayObjectivATI; extern VTK_RENDERING_EXPORT PFNGLVARIANTARRAYOBJECTATIPROC VariantArrayObjectATI; extern VTK_RENDERING_EXPORT PFNGLGETVARIANTARRAYOBJECTFVATIPROC GetVariantArrayObjectfvATI; extern VTK_RENDERING_EXPORT PFNGLGETVARIANTARRAYOBJECTIVATIPROC GetVariantArrayObjectivATI; //Definitions for GL_EXT_vertex_shader const GLenum VERTEX_SHADER_EXT = static_cast<GLenum>(0x8780); const GLenum VERTEX_SHADER_BINDING_EXT = static_cast<GLenum>(0x8781); const GLenum OP_INDEX_EXT = static_cast<GLenum>(0x8782); const GLenum OP_NEGATE_EXT = static_cast<GLenum>(0x8783); const GLenum OP_DOT3_EXT = static_cast<GLenum>(0x8784); const GLenum OP_DOT4_EXT = static_cast<GLenum>(0x8785); const GLenum OP_MUL_EXT = static_cast<GLenum>(0x8786); const GLenum OP_ADD_EXT = static_cast<GLenum>(0x8787); const GLenum OP_MADD_EXT = static_cast<GLenum>(0x8788); const GLenum OP_FRAC_EXT = static_cast<GLenum>(0x8789); const GLenum OP_MAX_EXT = static_cast<GLenum>(0x878A); const GLenum OP_MIN_EXT = static_cast<GLenum>(0x878B); const GLenum OP_SET_GE_EXT = static_cast<GLenum>(0x878C); const GLenum OP_SET_LT_EXT = static_cast<GLenum>(0x878D); const GLenum OP_CLAMP_EXT = static_cast<GLenum>(0x878E); const GLenum OP_FLOOR_EXT = static_cast<GLenum>(0x878F); const GLenum OP_ROUND_EXT = static_cast<GLenum>(0x8790); const GLenum OP_EXP_BASE_2_EXT = static_cast<GLenum>(0x8791); const GLenum OP_LOG_BASE_2_EXT = static_cast<GLenum>(0x8792); const GLenum OP_POWER_EXT = static_cast<GLenum>(0x8793); const GLenum OP_RECIP_EXT = static_cast<GLenum>(0x8794); const GLenum OP_RECIP_SQRT_EXT = static_cast<GLenum>(0x8795); const GLenum OP_SUB_EXT = static_cast<GLenum>(0x8796); const GLenum OP_CROSS_PRODUCT_EXT = static_cast<GLenum>(0x8797); const GLenum OP_MULTIPLY_MATRIX_EXT = static_cast<GLenum>(0x8798); const GLenum OP_MOV_EXT = static_cast<GLenum>(0x8799); const GLenum OUTPUT_VERTEX_EXT = static_cast<GLenum>(0x879A); const GLenum OUTPUT_COLOR0_EXT = static_cast<GLenum>(0x879B); const GLenum OUTPUT_COLOR1_EXT = static_cast<GLenum>(0x879C); const GLenum OUTPUT_TEXTURE_COORD0_EXT = static_cast<GLenum>(0x879D); const GLenum OUTPUT_TEXTURE_COORD1_EXT = static_cast<GLenum>(0x879E); const GLenum OUTPUT_TEXTURE_COORD2_EXT = static_cast<GLenum>(0x879F); const GLenum OUTPUT_TEXTURE_COORD3_EXT = static_cast<GLenum>(0x87A0); const GLenum OUTPUT_TEXTURE_COORD4_EXT = static_cast<GLenum>(0x87A1); const GLenum OUTPUT_TEXTURE_COORD5_EXT = static_cast<GLenum>(0x87A2); const GLenum OUTPUT_TEXTURE_COORD6_EXT = static_cast<GLenum>(0x87A3); const GLenum OUTPUT_TEXTURE_COORD7_EXT = static_cast<GLenum>(0x87A4); const GLenum OUTPUT_TEXTURE_COORD8_EXT = static_cast<GLenum>(0x87A5); const GLenum OUTPUT_TEXTURE_COORD9_EXT = static_cast<GLenum>(0x87A6); const GLenum OUTPUT_TEXTURE_COORD10_EXT = static_cast<GLenum>(0x87A7); const GLenum OUTPUT_TEXTURE_COORD11_EXT = static_cast<GLenum>(0x87A8); const GLenum OUTPUT_TEXTURE_COORD12_EXT = static_cast<GLenum>(0x87A9); const GLenum OUTPUT_TEXTURE_COORD13_EXT = static_cast<GLenum>(0x87AA); const GLenum OUTPUT_TEXTURE_COORD14_EXT = static_cast<GLenum>(0x87AB); const GLenum OUTPUT_TEXTURE_COORD15_EXT = static_cast<GLenum>(0x87AC); const GLenum OUTPUT_TEXTURE_COORD16_EXT = static_cast<GLenum>(0x87AD); const GLenum OUTPUT_TEXTURE_COORD17_EXT = static_cast<GLenum>(0x87AE); const GLenum OUTPUT_TEXTURE_COORD18_EXT = static_cast<GLenum>(0x87AF); const GLenum OUTPUT_TEXTURE_COORD19_EXT = static_cast<GLenum>(0x87B0); const GLenum OUTPUT_TEXTURE_COORD20_EXT = static_cast<GLenum>(0x87B1); const GLenum OUTPUT_TEXTURE_COORD21_EXT = static_cast<GLenum>(0x87B2); const GLenum OUTPUT_TEXTURE_COORD22_EXT = static_cast<GLenum>(0x87B3); const GLenum OUTPUT_TEXTURE_COORD23_EXT = static_cast<GLenum>(0x87B4); const GLenum OUTPUT_TEXTURE_COORD24_EXT = static_cast<GLenum>(0x87B5); const GLenum OUTPUT_TEXTURE_COORD25_EXT = static_cast<GLenum>(0x87B6); const GLenum OUTPUT_TEXTURE_COORD26_EXT = static_cast<GLenum>(0x87B7); const GLenum OUTPUT_TEXTURE_COORD27_EXT = static_cast<GLenum>(0x87B8); const GLenum OUTPUT_TEXTURE_COORD28_EXT = static_cast<GLenum>(0x87B9); const GLenum OUTPUT_TEXTURE_COORD29_EXT = static_cast<GLenum>(0x87BA); const GLenum OUTPUT_TEXTURE_COORD30_EXT = static_cast<GLenum>(0x87BB); const GLenum OUTPUT_TEXTURE_COORD31_EXT = static_cast<GLenum>(0x87BC); const GLenum OUTPUT_FOG_EXT = static_cast<GLenum>(0x87BD); const GLenum SCALAR_EXT = static_cast<GLenum>(0x87BE); const GLenum VECTOR_EXT = static_cast<GLenum>(0x87BF); const GLenum MATRIX_EXT = static_cast<GLenum>(0x87C0); const GLenum VARIANT_EXT = static_cast<GLenum>(0x87C1); const GLenum INVARIANT_EXT = static_cast<GLenum>(0x87C2); const GLenum LOCAL_CONSTANT_EXT = static_cast<GLenum>(0x87C3); const GLenum LOCAL_EXT = static_cast<GLenum>(0x87C4); const GLenum MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = static_cast<GLenum>(0x87C5); const GLenum MAX_VERTEX_SHADER_VARIANTS_EXT = static_cast<GLenum>(0x87C6); const GLenum MAX_VERTEX_SHADER_INVARIANTS_EXT = static_cast<GLenum>(0x87C7); const GLenum MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = static_cast<GLenum>(0x87C8); const GLenum MAX_VERTEX_SHADER_LOCALS_EXT = static_cast<GLenum>(0x87C9); const GLenum MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = static_cast<GLenum>(0x87CA); const GLenum MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = static_cast<GLenum>(0x87CB); const GLenum MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = static_cast<GLenum>(0x87CC); const GLenum MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = static_cast<GLenum>(0x87CD); const GLenum MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = static_cast<GLenum>(0x87CE); const GLenum VERTEX_SHADER_INSTRUCTIONS_EXT = static_cast<GLenum>(0x87CF); const GLenum VERTEX_SHADER_VARIANTS_EXT = static_cast<GLenum>(0x87D0); const GLenum VERTEX_SHADER_INVARIANTS_EXT = static_cast<GLenum>(0x87D1); const GLenum VERTEX_SHADER_LOCAL_CONSTANTS_EXT = static_cast<GLenum>(0x87D2); const GLenum VERTEX_SHADER_LOCALS_EXT = static_cast<GLenum>(0x87D3); const GLenum VERTEX_SHADER_OPTIMIZED_EXT = static_cast<GLenum>(0x87D4); const GLenum X_EXT = static_cast<GLenum>(0x87D5); const GLenum Y_EXT = static_cast<GLenum>(0x87D6); const GLenum Z_EXT = static_cast<GLenum>(0x87D7); const GLenum W_EXT = static_cast<GLenum>(0x87D8); const GLenum NEGATIVE_X_EXT = static_cast<GLenum>(0x87D9); const GLenum NEGATIVE_Y_EXT = static_cast<GLenum>(0x87DA); const GLenum NEGATIVE_Z_EXT = static_cast<GLenum>(0x87DB); const GLenum NEGATIVE_W_EXT = static_cast<GLenum>(0x87DC); const GLenum ZERO_EXT = static_cast<GLenum>(0x87DD); const GLenum ONE_EXT = static_cast<GLenum>(0x87DE); const GLenum NEGATIVE_ONE_EXT = static_cast<GLenum>(0x87DF); const GLenum NORMALIZED_RANGE_EXT = static_cast<GLenum>(0x87E0); const GLenum FULL_RANGE_EXT = static_cast<GLenum>(0x87E1); const GLenum CURRENT_VERTEX_EXT = static_cast<GLenum>(0x87E2); const GLenum MVP_MATRIX_EXT = static_cast<GLenum>(0x87E3); const GLenum VARIANT_VALUE_EXT = static_cast<GLenum>(0x87E4); const GLenum VARIANT_DATATYPE_EXT = static_cast<GLenum>(0x87E5); const GLenum VARIANT_ARRAY_STRIDE_EXT = static_cast<GLenum>(0x87E6); const GLenum VARIANT_ARRAY_TYPE_EXT = static_cast<GLenum>(0x87E7); const GLenum VARIANT_ARRAY_EXT = static_cast<GLenum>(0x87E8); const GLenum VARIANT_ARRAY_POINTER_EXT = static_cast<GLenum>(0x87E9); const GLenum INVARIANT_VALUE_EXT = static_cast<GLenum>(0x87EA); const GLenum INVARIANT_DATATYPE_EXT = static_cast<GLenum>(0x87EB); const GLenum LOCAL_CONSTANT_VALUE_EXT = static_cast<GLenum>(0x87EC); const GLenum LOCAL_CONSTANT_DATATYPE_EXT = static_cast<GLenum>(0x87ED); typedef void (APIENTRYP PFNGLBEGINVERTEXSHADEREXTPROC) (void); typedef void (APIENTRYP PFNGLENDVERTEXSHADEREXTPROC) (void); typedef void (APIENTRYP PFNGLBINDVERTEXSHADEREXTPROC) (GLuint id); typedef GLuint (APIENTRYP PFNGLGENVERTEXSHADERSEXTPROC) (GLuint range); typedef void (APIENTRYP PFNGLDELETEVERTEXSHADEREXTPROC) (GLuint id); typedef void (APIENTRYP PFNGLSHADEROP1EXTPROC) (GLenum op, GLuint res, GLuint arg1); typedef void (APIENTRYP PFNGLSHADEROP2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2); typedef void (APIENTRYP PFNGLSHADEROP3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); typedef void (APIENTRYP PFNGLSWIZZLEEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); typedef void (APIENTRYP PFNGLWRITEMASKEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); typedef void (APIENTRYP PFNGLINSERTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); typedef void (APIENTRYP PFNGLEXTRACTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); typedef GLuint (APIENTRYP PFNGLGENSYMBOLSEXTPROC) (GLenum datatype, GLenum storagetype, GLenum range, GLuint components); typedef void (APIENTRYP PFNGLSETINVARIANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr); typedef void (APIENTRYP PFNGLSETLOCALCONSTANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr); typedef void (APIENTRYP PFNGLVARIANTBVEXTPROC) (GLuint id, const GLbyte *addr); typedef void (APIENTRYP PFNGLVARIANTSVEXTPROC) (GLuint id, const GLshort *addr); typedef void (APIENTRYP PFNGLVARIANTIVEXTPROC) (GLuint id, const GLint *addr); typedef void (APIENTRYP PFNGLVARIANTFVEXTPROC) (GLuint id, const GLfloat *addr); typedef void (APIENTRYP PFNGLVARIANTDVEXTPROC) (GLuint id, const GLdouble *addr); typedef void (APIENTRYP PFNGLVARIANTUBVEXTPROC) (GLuint id, const GLubyte *addr); typedef void (APIENTRYP PFNGLVARIANTUSVEXTPROC) (GLuint id, const GLushort *addr); typedef void (APIENTRYP PFNGLVARIANTUIVEXTPROC) (GLuint id, const GLuint *addr); typedef void (APIENTRYP PFNGLVARIANTPOINTEREXTPROC) (GLuint id, GLenum type, GLuint stride, const GLvoid *addr); typedef void (APIENTRYP PFNGLENABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); typedef void (APIENTRYP PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); typedef GLuint (APIENTRYP PFNGLBINDLIGHTPARAMETEREXTPROC) (GLenum light, GLenum value); typedef GLuint (APIENTRYP PFNGLBINDMATERIALPARAMETEREXTPROC) (GLenum face, GLenum value); typedef GLuint (APIENTRYP PFNGLBINDTEXGENPARAMETEREXTPROC) (GLenum unit, GLenum coord, GLenum value); typedef GLuint (APIENTRYP PFNGLBINDTEXTUREUNITPARAMETEREXTPROC) (GLenum unit, GLenum value); typedef GLuint (APIENTRYP PFNGLBINDPARAMETEREXTPROC) (GLenum value); typedef GLboolean (APIENTRYP PFNGLISVARIANTENABLEDEXTPROC) (GLuint id, GLenum cap); typedef void (APIENTRYP PFNGLGETVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); typedef void (APIENTRYP PFNGLGETVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); typedef void (APIENTRYP PFNGLGETVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); typedef void (APIENTRYP PFNGLGETVARIANTPOINTERVEXTPROC) (GLuint id, GLenum value, GLvoid* *data); typedef void (APIENTRYP PFNGLGETINVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); typedef void (APIENTRYP PFNGLGETINVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); typedef void (APIENTRYP PFNGLGETINVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); typedef void (APIENTRYP PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); typedef void (APIENTRYP PFNGLGETLOCALCONSTANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); typedef void (APIENTRYP PFNGLGETLOCALCONSTANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); extern VTK_RENDERING_EXPORT PFNGLBEGINVERTEXSHADEREXTPROC BeginVertexShaderEXT; extern VTK_RENDERING_EXPORT PFNGLENDVERTEXSHADEREXTPROC EndVertexShaderEXT; extern VTK_RENDERING_EXPORT PFNGLBINDVERTEXSHADEREXTPROC BindVertexShaderEXT; extern VTK_RENDERING_EXPORT PFNGLGENVERTEXSHADERSEXTPROC GenVertexShadersEXT; extern VTK_RENDERING_EXPORT PFNGLDELETEVERTEXSHADEREXTPROC DeleteVertexShaderEXT; extern VTK_RENDERING_EXPORT PFNGLSHADEROP1EXTPROC ShaderOp1EXT; extern VTK_RENDERING_EXPORT PFNGLSHADEROP2EXTPROC ShaderOp2EXT; extern VTK_RENDERING_EXPORT PFNGLSHADEROP3EXTPROC ShaderOp3EXT; extern VTK_RENDERING_EXPORT PFNGLSWIZZLEEXTPROC SwizzleEXT; extern VTK_RENDERING_EXPORT PFNGLWRITEMASKEXTPROC WriteMaskEXT; extern VTK_RENDERING_EXPORT PFNGLINSERTCOMPONENTEXTPROC InsertComponentEXT; extern VTK_RENDERING_EXPORT PFNGLEXTRACTCOMPONENTEXTPROC ExtractComponentEXT; extern VTK_RENDERING_EXPORT PFNGLGENSYMBOLSEXTPROC GenSymbolsEXT; extern VTK_RENDERING_EXPORT PFNGLSETINVARIANTEXTPROC SetInvariantEXT; extern VTK_RENDERING_EXPORT PFNGLSETLOCALCONSTANTEXTPROC SetLocalConstantEXT; extern VTK_RENDERING_EXPORT PFNGLVARIANTBVEXTPROC VariantbvEXT; extern VTK_RENDERING_EXPORT PFNGLVARIANTSVEXTPROC VariantsvEXT; extern VTK_RENDERING_EXPORT PFNGLVARIANTIVEXTPROC VariantivEXT; extern VTK_RENDERING_EXPORT PFNGLVARIANTFVEXTPROC VariantfvEXT; extern VTK_RENDERING_EXPORT PFNGLVARIANTDVEXTPROC VariantdvEXT; extern VTK_RENDERING_EXPORT PFNGLVARIANTUBVEXTPROC VariantubvEXT; extern VTK_RENDERING_EXPORT PFNGLVARIANTUSVEXTPROC VariantusvEXT; extern VTK_RENDERING_EXPORT PFNGLVARIANTUIVEXTPROC VariantuivEXT; extern VTK_RENDERING_EXPORT PFNGLVARIANTPOINTEREXTPROC VariantPointerEXT; extern VTK_RENDERING_EXPORT PFNGLENABLEVARIANTCLIENTSTATEEXTPROC EnableVariantClientStateEXT; extern VTK_RENDERING_EXPORT PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC DisableVariantClientStateEXT; extern VTK_RENDERING_EXPORT PFNGLBINDLIGHTPARAMETEREXTPROC BindLightParameterEXT; extern VTK_RENDERING_EXPORT PFNGLBINDMATERIALPARAMETEREXTPROC BindMaterialParameterEXT; extern VTK_RENDERING_EXPORT PFNGLBINDTEXGENPARAMETEREXTPROC BindTexGenParameterEXT; extern VTK_RENDERING_EXPORT PFNGLBINDTEXTUREUNITPARAMETEREXTPROC BindTextureUnitParameterEXT; extern VTK_RENDERING_EXPORT PFNGLBINDPARAMETEREXTPROC BindParameterEXT; extern VTK_RENDERING_EXPORT PFNGLISVARIANTENABLEDEXTPROC IsVariantEnabledEXT; extern VTK_RENDERING_EXPORT PFNGLGETVARIANTBOOLEANVEXTPROC GetVariantBooleanvEXT; extern VTK_RENDERING_EXPORT PFNGLGETVARIANTINTEGERVEXTPROC GetVariantIntegervEXT; extern VTK_RENDERING_EXPORT PFNGLGETVARIANTFLOATVEXTPROC GetVariantFloatvEXT; extern VTK_RENDERING_EXPORT PFNGLGETVARIANTPOINTERVEXTPROC GetVariantPointervEXT; extern VTK_RENDERING_EXPORT PFNGLGETINVARIANTBOOLEANVEXTPROC GetInvariantBooleanvEXT; extern VTK_RENDERING_EXPORT PFNGLGETINVARIANTINTEGERVEXTPROC GetInvariantIntegervEXT; extern VTK_RENDERING_EXPORT PFNGLGETINVARIANTFLOATVEXTPROC GetInvariantFloatvEXT; extern VTK_RENDERING_EXPORT PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC GetLocalConstantBooleanvEXT; extern VTK_RENDERING_EXPORT PFNGLGETLOCALCONSTANTINTEGERVEXTPROC GetLocalConstantIntegervEXT; extern VTK_RENDERING_EXPORT PFNGLGETLOCALCONSTANTFLOATVEXTPROC GetLocalConstantFloatvEXT; //Definitions for GL_ATI_vertex_streams const GLenum MAX_VERTEX_STREAMS_ATI = static_cast<GLenum>(0x876B); const GLenum VERTEX_STREAM0_ATI = static_cast<GLenum>(0x876C); const GLenum VERTEX_STREAM1_ATI = static_cast<GLenum>(0x876D); const GLenum VERTEX_STREAM2_ATI = static_cast<GLenum>(0x876E); const GLenum VERTEX_STREAM3_ATI = static_cast<GLenum>(0x876F); const GLenum VERTEX_STREAM4_ATI = static_cast<GLenum>(0x8770); const GLenum VERTEX_STREAM5_ATI = static_cast<GLenum>(0x8771); const GLenum VERTEX_STREAM6_ATI = static_cast<GLenum>(0x8772); const GLenum VERTEX_STREAM7_ATI = static_cast<GLenum>(0x8773); const GLenum VERTEX_SOURCE_ATI = static_cast<GLenum>(0x8774); typedef void (APIENTRYP PFNGLVERTEXSTREAM1SATIPROC) (GLenum stream, GLshort x); typedef void (APIENTRYP PFNGLVERTEXSTREAM1SVATIPROC) (GLenum stream, const GLshort *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM1IATIPROC) (GLenum stream, GLint x); typedef void (APIENTRYP PFNGLVERTEXSTREAM1IVATIPROC) (GLenum stream, const GLint *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM1FATIPROC) (GLenum stream, GLfloat x); typedef void (APIENTRYP PFNGLVERTEXSTREAM1FVATIPROC) (GLenum stream, const GLfloat *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM1DATIPROC) (GLenum stream, GLdouble x); typedef void (APIENTRYP PFNGLVERTEXSTREAM1DVATIPROC) (GLenum stream, const GLdouble *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM2SATIPROC) (GLenum stream, GLshort x, GLshort y); typedef void (APIENTRYP PFNGLVERTEXSTREAM2SVATIPROC) (GLenum stream, const GLshort *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM2IATIPROC) (GLenum stream, GLint x, GLint y); typedef void (APIENTRYP PFNGLVERTEXSTREAM2IVATIPROC) (GLenum stream, const GLint *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM2FATIPROC) (GLenum stream, GLfloat x, GLfloat y); typedef void (APIENTRYP PFNGLVERTEXSTREAM2FVATIPROC) (GLenum stream, const GLfloat *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM2DATIPROC) (GLenum stream, GLdouble x, GLdouble y); typedef void (APIENTRYP PFNGLVERTEXSTREAM2DVATIPROC) (GLenum stream, const GLdouble *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z); typedef void (APIENTRYP PFNGLVERTEXSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z); typedef void (APIENTRYP PFNGLVERTEXSTREAM3IVATIPROC) (GLenum stream, const GLint *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLVERTEXSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRYP PFNGLVERTEXSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM4SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w); typedef void (APIENTRYP PFNGLVERTEXSTREAM4SVATIPROC) (GLenum stream, const GLshort *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM4IATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w); typedef void (APIENTRYP PFNGLVERTEXSTREAM4IVATIPROC) (GLenum stream, const GLint *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM4FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w); typedef void (APIENTRYP PFNGLVERTEXSTREAM4FVATIPROC) (GLenum stream, const GLfloat *coords); typedef void (APIENTRYP PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w); typedef void (APIENTRYP PFNGLVERTEXSTREAM4DVATIPROC) (GLenum stream, const GLdouble *coords); typedef void (APIENTRYP PFNGLNORMALSTREAM3BATIPROC) (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz); typedef void (APIENTRYP PFNGLNORMALSTREAM3BVATIPROC) (GLenum stream, const GLbyte *coords); typedef void (APIENTRYP PFNGLNORMALSTREAM3SATIPROC) (GLenum stream, GLshort nx, GLshort ny, GLshort nz); typedef void (APIENTRYP PFNGLNORMALSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords); typedef void (APIENTRYP PFNGLNORMALSTREAM3IATIPROC) (GLenum stream, GLint nx, GLint ny, GLint nz); typedef void (APIENTRYP PFNGLNORMALSTREAM3IVATIPROC) (GLenum stream, const GLint *coords); typedef void (APIENTRYP PFNGLNORMALSTREAM3FATIPROC) (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz); typedef void (APIENTRYP PFNGLNORMALSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords); typedef void (APIENTRYP PFNGLNORMALSTREAM3DATIPROC) (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz); typedef void (APIENTRYP PFNGLNORMALSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords); typedef void (APIENTRYP PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC) (GLenum stream); typedef void (APIENTRYP PFNGLVERTEXBLENDENVIATIPROC) (GLenum pname, GLint param); typedef void (APIENTRYP PFNGLVERTEXBLENDENVFATIPROC) (GLenum pname, GLfloat param); extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM1SATIPROC VertexStream1sATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM1SVATIPROC VertexStream1svATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM1IATIPROC VertexStream1iATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM1IVATIPROC VertexStream1ivATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM1FATIPROC VertexStream1fATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM1FVATIPROC VertexStream1fvATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM1DATIPROC VertexStream1dATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM1DVATIPROC VertexStream1dvATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM2SATIPROC VertexStream2sATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM2SVATIPROC VertexStream2svATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM2IATIPROC VertexStream2iATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM2IVATIPROC VertexStream2ivATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM2FATIPROC VertexStream2fATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM2FVATIPROC VertexStream2fvATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM2DATIPROC VertexStream2dATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM2DVATIPROC VertexStream2dvATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM3SATIPROC VertexStream3sATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM3SVATIPROC VertexStream3svATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM3IATIPROC VertexStream3iATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM3IVATIPROC VertexStream3ivATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM3FATIPROC VertexStream3fATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM3FVATIPROC VertexStream3fvATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM3DATIPROC VertexStream3dATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM3DVATIPROC VertexStream3dvATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM4SATIPROC VertexStream4sATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM4SVATIPROC VertexStream4svATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM4IATIPROC VertexStream4iATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM4IVATIPROC VertexStream4ivATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM4FATIPROC VertexStream4fATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM4FVATIPROC VertexStream4fvATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM4DATIPROC VertexStream4dATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXSTREAM4DVATIPROC VertexStream4dvATI; extern VTK_RENDERING_EXPORT PFNGLNORMALSTREAM3BATIPROC NormalStream3bATI; extern VTK_RENDERING_EXPORT PFNGLNORMALSTREAM3BVATIPROC NormalStream3bvATI; extern VTK_RENDERING_EXPORT PFNGLNORMALSTREAM3SATIPROC NormalStream3sATI; extern VTK_RENDERING_EXPORT PFNGLNORMALSTREAM3SVATIPROC NormalStream3svATI; extern VTK_RENDERING_EXPORT PFNGLNORMALSTREAM3IATIPROC NormalStream3iATI; extern VTK_RENDERING_EXPORT PFNGLNORMALSTREAM3IVATIPROC NormalStream3ivATI; extern VTK_RENDERING_EXPORT PFNGLNORMALSTREAM3FATIPROC NormalStream3fATI; extern VTK_RENDERING_EXPORT PFNGLNORMALSTREAM3FVATIPROC NormalStream3fvATI; extern VTK_RENDERING_EXPORT PFNGLNORMALSTREAM3DATIPROC NormalStream3dATI; extern VTK_RENDERING_EXPORT PFNGLNORMALSTREAM3DVATIPROC NormalStream3dvATI; extern VTK_RENDERING_EXPORT PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC ClientActiveVertexStreamATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXBLENDENVIATIPROC VertexBlendEnviATI; extern VTK_RENDERING_EXPORT PFNGLVERTEXBLENDENVFATIPROC VertexBlendEnvfATI; //Definitions for GL_ATI_element_array const GLenum ELEMENT_ARRAY_ATI = static_cast<GLenum>(0x8768); const GLenum ELEMENT_ARRAY_TYPE_ATI = static_cast<GLenum>(0x8769); const GLenum ELEMENT_ARRAY_POINTER_ATI = static_cast<GLenum>(0x876A); typedef void (APIENTRYP PFNGLELEMENTPOINTERATIPROC) (GLenum type, const GLvoid *pointer); typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count); typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count); extern VTK_RENDERING_EXPORT PFNGLELEMENTPOINTERATIPROC ElementPointerATI; extern VTK_RENDERING_EXPORT PFNGLDRAWELEMENTARRAYATIPROC DrawElementArrayATI; extern VTK_RENDERING_EXPORT PFNGLDRAWRANGEELEMENTARRAYATIPROC DrawRangeElementArrayATI; //Definitions for GL_SUN_mesh_array const GLenum QUAD_MESH_SUN = static_cast<GLenum>(0x8614); const GLenum TRIANGLE_MESH_SUN = static_cast<GLenum>(0x8615); typedef void (APIENTRYP PFNGLDRAWMESHARRAYSSUNPROC) (GLenum mode, GLint first, GLsizei count, GLsizei width); extern VTK_RENDERING_EXPORT PFNGLDRAWMESHARRAYSSUNPROC DrawMeshArraysSUN; //Definitions for GL_SUN_slice_accum const GLenum SLICE_ACCUM_SUN = static_cast<GLenum>(0x85CC); //Definitions for GL_NV_multisample_filter_hint const GLenum MULTISAMPLE_FILTER_HINT_NV = static_cast<GLenum>(0x8534); //Definitions for GL_NV_depth_clamp const GLenum DEPTH_CLAMP_NV = static_cast<GLenum>(0x864F); //Definitions for GL_NV_occlusion_query const GLenum PIXEL_COUNTER_BITS_NV = static_cast<GLenum>(0x8864); const GLenum CURRENT_OCCLUSION_QUERY_ID_NV = static_cast<GLenum>(0x8865); const GLenum PIXEL_COUNT_NV = static_cast<GLenum>(0x8866); const GLenum PIXEL_COUNT_AVAILABLE_NV = static_cast<GLenum>(0x8867); typedef void (APIENTRYP PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint *ids); typedef void (APIENTRYP PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids); typedef GLboolean (APIENTRYP PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id); typedef void (APIENTRYP PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id); typedef void (APIENTRYP PFNGLENDOCCLUSIONQUERYNVPROC) (void); typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params); extern VTK_RENDERING_EXPORT PFNGLGENOCCLUSIONQUERIESNVPROC GenOcclusionQueriesNV; extern VTK_RENDERING_EXPORT PFNGLDELETEOCCLUSIONQUERIESNVPROC DeleteOcclusionQueriesNV; extern VTK_RENDERING_EXPORT PFNGLISOCCLUSIONQUERYNVPROC IsOcclusionQueryNV; extern VTK_RENDERING_EXPORT PFNGLBEGINOCCLUSIONQUERYNVPROC BeginOcclusionQueryNV; extern VTK_RENDERING_EXPORT PFNGLENDOCCLUSIONQUERYNVPROC EndOcclusionQueryNV; extern VTK_RENDERING_EXPORT PFNGLGETOCCLUSIONQUERYIVNVPROC GetOcclusionQueryivNV; extern VTK_RENDERING_EXPORT PFNGLGETOCCLUSIONQUERYUIVNVPROC GetOcclusionQueryuivNV; //Definitions for GL_NV_point_sprite const GLenum POINT_SPRITE_NV = static_cast<GLenum>(0x8861); const GLenum COORD_REPLACE_NV = static_cast<GLenum>(0x8862); const GLenum POINT_SPRITE_R_MODE_NV = static_cast<GLenum>(0x8863); typedef void (APIENTRYP PFNGLPOINTPARAMETERINVPROC) (GLenum pname, GLint param); typedef void (APIENTRYP PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const GLint *params); extern VTK_RENDERING_EXPORT PFNGLPOINTPARAMETERINVPROC PointParameteriNV; extern VTK_RENDERING_EXPORT PFNGLPOINTPARAMETERIVNVPROC PointParameterivNV; //Definitions for GL_NV_texture_shader3 const GLenum OFFSET_PROJECTIVE_TEXTURE_2D_NV = static_cast<GLenum>(0x8850); const GLenum OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV = static_cast<GLenum>(0x8851); const GLenum OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV = static_cast<GLenum>(0x8852); const GLenum OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV = static_cast<GLenum>(0x8853); const GLenum OFFSET_HILO_TEXTURE_2D_NV = static_cast<GLenum>(0x8854); const GLenum OFFSET_HILO_TEXTURE_RECTANGLE_NV = static_cast<GLenum>(0x8855); const GLenum OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV = static_cast<GLenum>(0x8856); const GLenum OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV = static_cast<GLenum>(0x8857); const GLenum DEPENDENT_HILO_TEXTURE_2D_NV = static_cast<GLenum>(0x8858); const GLenum DEPENDENT_RGB_TEXTURE_3D_NV = static_cast<GLenum>(0x8859); const GLenum DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV = static_cast<GLenum>(0x885A); const GLenum DOT_PRODUCT_PASS_THROUGH_NV = static_cast<GLenum>(0x885B); const GLenum DOT_PRODUCT_TEXTURE_1D_NV = static_cast<GLenum>(0x885C); const GLenum DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV = static_cast<GLenum>(0x885D); const GLenum HILO8_NV = static_cast<GLenum>(0x885E); const GLenum SIGNED_HILO8_NV = static_cast<GLenum>(0x885F); const GLenum FORCE_BLUE_TO_ONE_NV = static_cast<GLenum>(0x8860); //Definitions for GL_NV_vertex_program1_1 //Definitions for GL_EXT_shadow_funcs //Definitions for GL_EXT_stencil_two_side const GLenum STENCIL_TEST_TWO_SIDE_EXT = static_cast<GLenum>(0x8910); const GLenum ACTIVE_STENCIL_FACE_EXT = static_cast<GLenum>(0x8911); typedef void (APIENTRYP PFNGLACTIVESTENCILFACEEXTPROC) (GLenum face); extern VTK_RENDERING_EXPORT PFNGLACTIVESTENCILFACEEXTPROC ActiveStencilFaceEXT; //Definitions for GL_ATI_text_fragment_shader const GLenum TEXT_FRAGMENT_SHADER_ATI = static_cast<GLenum>(0x8200); //Definitions for GL_APPLE_client_storage const GLenum UNPACK_CLIENT_STORAGE_APPLE = static_cast<GLenum>(0x85B2); //Definitions for GL_APPLE_element_array const GLenum ELEMENT_ARRAY_APPLE = static_cast<GLenum>(0x8768); const GLenum ELEMENT_ARRAY_TYPE_APPLE = static_cast<GLenum>(0x8769); const GLenum ELEMENT_ARRAY_POINTER_APPLE = static_cast<GLenum>(0x876A); typedef void (APIENTRYP PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const GLvoid *pointer); typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count); typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count); typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount); typedef void (APIENTRYP PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount); extern VTK_RENDERING_EXPORT PFNGLELEMENTPOINTERAPPLEPROC ElementPointerAPPLE; extern VTK_RENDERING_EXPORT PFNGLDRAWELEMENTARRAYAPPLEPROC DrawElementArrayAPPLE; extern VTK_RENDERING_EXPORT PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC DrawRangeElementArrayAPPLE; extern VTK_RENDERING_EXPORT PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC MultiDrawElementArrayAPPLE; extern VTK_RENDERING_EXPORT PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC MultiDrawRangeElementArrayAPPLE; //Definitions for GL_APPLE_fence const GLenum DRAW_PIXELS_APPLE = static_cast<GLenum>(0x8A0A); const GLenum FENCE_APPLE = static_cast<GLenum>(0x8A0B); typedef void (APIENTRYP PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint *fences); typedef void (APIENTRYP PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint *fences); typedef void (APIENTRYP PFNGLSETFENCEAPPLEPROC) (GLuint fence); typedef GLboolean (APIENTRYP PFNGLISFENCEAPPLEPROC) (GLuint fence); typedef GLboolean (APIENTRYP PFNGLTESTFENCEAPPLEPROC) (GLuint fence); typedef void (APIENTRYP PFNGLFINISHFENCEAPPLEPROC) (GLuint fence); typedef GLboolean (APIENTRYP PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name); typedef void (APIENTRYP PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name); extern VTK_RENDERING_EXPORT PFNGLGENFENCESAPPLEPROC GenFencesAPPLE; extern VTK_RENDERING_EXPORT PFNGLDELETEFENCESAPPLEPROC DeleteFencesAPPLE; extern VTK_RENDERING_EXPORT PFNGLSETFENCEAPPLEPROC SetFenceAPPLE; extern VTK_RENDERING_EXPORT PFNGLISFENCEAPPLEPROC IsFenceAPPLE; extern VTK_RENDERING_EXPORT PFNGLTESTFENCEAPPLEPROC TestFenceAPPLE; extern VTK_RENDERING_EXPORT PFNGLFINISHFENCEAPPLEPROC FinishFenceAPPLE; extern VTK_RENDERING_EXPORT PFNGLTESTOBJECTAPPLEPROC TestObjectAPPLE; extern VTK_RENDERING_EXPORT PFNGLFINISHOBJECTAPPLEPROC FinishObjectAPPLE; //Definitions for GL_APPLE_vertex_array_object const GLenum VERTEX_ARRAY_BINDING_APPLE = static_cast<GLenum>(0x85B5); typedef void (APIENTRYP PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array); typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint *arrays); typedef void (APIENTRYP PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, GLuint *arrays); typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array); extern VTK_RENDERING_EXPORT PFNGLBINDVERTEXARRAYAPPLEPROC BindVertexArrayAPPLE; extern VTK_RENDERING_EXPORT PFNGLDELETEVERTEXARRAYSAPPLEPROC DeleteVertexArraysAPPLE; extern VTK_RENDERING_EXPORT PFNGLGENVERTEXARRAYSAPPLEPROC GenVertexArraysAPPLE; extern VTK_RENDERING_EXPORT PFNGLISVERTEXARRAYAPPLEPROC IsVertexArrayAPPLE; //Definitions for GL_APPLE_vertex_array_range const GLenum VERTEX_ARRAY_RANGE_APPLE = static_cast<GLenum>(0x851D); const GLenum VERTEX_ARRAY_RANGE_LENGTH_APPLE = static_cast<GLenum>(0x851E); const GLenum VERTEX_ARRAY_STORAGE_HINT_APPLE = static_cast<GLenum>(0x851F); const GLenum VERTEX_ARRAY_RANGE_POINTER_APPLE = static_cast<GLenum>(0x8521); const GLenum STORAGE_CACHED_APPLE = static_cast<GLenum>(0x85BE); const GLenum STORAGE_SHARED_APPLE = static_cast<GLenum>(0x85BF); typedef void (APIENTRYP PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer); typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer); typedef void (APIENTRYP PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param); extern VTK_RENDERING_EXPORT PFNGLVERTEXARRAYRANGEAPPLEPROC VertexArrayRangeAPPLE; extern VTK_RENDERING_EXPORT PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC FlushVertexArrayRangeAPPLE; extern VTK_RENDERING_EXPORT PFNGLVERTEXARRAYPARAMETERIAPPLEPROC VertexArrayParameteriAPPLE; //Definitions for GL_APPLE_ycbcr_422 const GLenum YCBCR_422_APPLE = static_cast<GLenum>(0x85B9); const GLenum UNSIGNED_SHORT_8_8_APPLE = static_cast<GLenum>(0x85BA); const GLenum UNSIGNED_SHORT_8_8_REV_APPLE = static_cast<GLenum>(0x85BB); //Definitions for GL_S3_s3tc const GLenum RGB_S3TC = static_cast<GLenum>(0x83A0); const GLenum RGB4_S3TC = static_cast<GLenum>(0x83A1); const GLenum RGBA_S3TC = static_cast<GLenum>(0x83A2); const GLenum RGBA4_S3TC = static_cast<GLenum>(0x83A3); //Definitions for GL_ATI_draw_buffers const GLenum MAX_DRAW_BUFFERS_ATI = static_cast<GLenum>(0x8824); const GLenum DRAW_BUFFER0_ATI = static_cast<GLenum>(0x8825); const GLenum DRAW_BUFFER1_ATI = static_cast<GLenum>(0x8826); const GLenum DRAW_BUFFER2_ATI = static_cast<GLenum>(0x8827); const GLenum DRAW_BUFFER3_ATI = static_cast<GLenum>(0x8828); const GLenum DRAW_BUFFER4_ATI = static_cast<GLenum>(0x8829); const GLenum DRAW_BUFFER5_ATI = static_cast<GLenum>(0x882A); const GLenum DRAW_BUFFER6_ATI = static_cast<GLenum>(0x882B); const GLenum DRAW_BUFFER7_ATI = static_cast<GLenum>(0x882C); const GLenum DRAW_BUFFER8_ATI = static_cast<GLenum>(0x882D); const GLenum DRAW_BUFFER9_ATI = static_cast<GLenum>(0x882E); const GLenum DRAW_BUFFER10_ATI = static_cast<GLenum>(0x882F); const GLenum DRAW_BUFFER11_ATI = static_cast<GLenum>(0x8830); const GLenum DRAW_BUFFER12_ATI = static_cast<GLenum>(0x8831); const GLenum DRAW_BUFFER13_ATI = static_cast<GLenum>(0x8832); const GLenum DRAW_BUFFER14_ATI = static_cast<GLenum>(0x8833); const GLenum DRAW_BUFFER15_ATI = static_cast<GLenum>(0x8834); typedef void (APIENTRYP PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs); extern VTK_RENDERING_EXPORT PFNGLDRAWBUFFERSATIPROC DrawBuffersATI; //Definitions for GL_ATI_pixel_format_float const GLenum TYPE_RGBA_FLOAT_ATI = static_cast<GLenum>(0x8820); const GLenum COLOR_CLEAR_UNCLAMPED_VALUE_ATI = static_cast<GLenum>(0x8835); //Definitions for GL_ATI_texture_env_combine3 const GLenum MODULATE_ADD_ATI = static_cast<GLenum>(0x8744); const GLenum MODULATE_SIGNED_ADD_ATI = static_cast<GLenum>(0x8745); const GLenum MODULATE_SUBTRACT_ATI = static_cast<GLenum>(0x8746); //Definitions for GL_ATI_texture_float const GLenum RGBA_FLOAT32_ATI = static_cast<GLenum>(0x8814); const GLenum RGB_FLOAT32_ATI = static_cast<GLenum>(0x8815); const GLenum ALPHA_FLOAT32_ATI = static_cast<GLenum>(0x8816); const GLenum INTENSITY_FLOAT32_ATI = static_cast<GLenum>(0x8817); const GLenum LUMINANCE_FLOAT32_ATI = static_cast<GLenum>(0x8818); const GLenum LUMINANCE_ALPHA_FLOAT32_ATI = static_cast<GLenum>(0x8819); const GLenum RGBA_FLOAT16_ATI = static_cast<GLenum>(0x881A); const GLenum RGB_FLOAT16_ATI = static_cast<GLenum>(0x881B); const GLenum ALPHA_FLOAT16_ATI = static_cast<GLenum>(0x881C); const GLenum INTENSITY_FLOAT16_ATI = static_cast<GLenum>(0x881D); const GLenum LUMINANCE_FLOAT16_ATI = static_cast<GLenum>(0x881E); const GLenum LUMINANCE_ALPHA_FLOAT16_ATI = static_cast<GLenum>(0x881F); //Definitions for GL_NV_float_buffer const GLenum FLOAT_R_NV = static_cast<GLenum>(0x8880); const GLenum FLOAT_RG_NV = static_cast<GLenum>(0x8881); const GLenum FLOAT_RGB_NV = static_cast<GLenum>(0x8882); const GLenum FLOAT_RGBA_NV = static_cast<GLenum>(0x8883); const GLenum FLOAT_R16_NV = static_cast<GLenum>(0x8884); const GLenum FLOAT_R32_NV = static_cast<GLenum>(0x8885); const GLenum FLOAT_RG16_NV = static_cast<GLenum>(0x8886); const GLenum FLOAT_RG32_NV = static_cast<GLenum>(0x8887); const GLenum FLOAT_RGB16_NV = static_cast<GLenum>(0x8888); const GLenum FLOAT_RGB32_NV = static_cast<GLenum>(0x8889); const GLenum FLOAT_RGBA16_NV = static_cast<GLenum>(0x888A); const GLenum FLOAT_RGBA32_NV = static_cast<GLenum>(0x888B); const GLenum TEXTURE_FLOAT_COMPONENTS_NV = static_cast<GLenum>(0x888C); const GLenum FLOAT_CLEAR_COLOR_VALUE_NV = static_cast<GLenum>(0x888D); const GLenum FLOAT_RGBA_MODE_NV = static_cast<GLenum>(0x888E); //Definitions for GL_NV_fragment_program const GLenum MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = static_cast<GLenum>(0x8868); const GLenum FRAGMENT_PROGRAM_NV = static_cast<GLenum>(0x8870); const GLenum MAX_TEXTURE_COORDS_NV = static_cast<GLenum>(0x8871); const GLenum MAX_TEXTURE_IMAGE_UNITS_NV = static_cast<GLenum>(0x8872); const GLenum FRAGMENT_PROGRAM_BINDING_NV = static_cast<GLenum>(0x8873); const GLenum PROGRAM_ERROR_STRING_NV = static_cast<GLenum>(0x8874); typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w); typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w); typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v); typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v); typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params); typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params); extern VTK_RENDERING_EXPORT PFNGLPROGRAMNAMEDPARAMETER4FNVPROC ProgramNamedParameter4fNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMNAMEDPARAMETER4DNVPROC ProgramNamedParameter4dNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC ProgramNamedParameter4fvNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC ProgramNamedParameter4dvNV; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC GetProgramNamedParameterfvNV; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC GetProgramNamedParameterdvNV; //Definitions for GL_NV_half_float const GLenum HALF_FLOAT_NV = static_cast<GLenum>(0x140B); typedef unsigned short GLhalfNV; typedef void (APIENTRYP PFNGLVERTEX2HNVPROC) (GLhalfNV x, GLhalfNV y); typedef void (APIENTRYP PFNGLVERTEX2HVNVPROC) (const GLhalfNV *v); typedef void (APIENTRYP PFNGLVERTEX3HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z); typedef void (APIENTRYP PFNGLVERTEX3HVNVPROC) (const GLhalfNV *v); typedef void (APIENTRYP PFNGLVERTEX4HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); typedef void (APIENTRYP PFNGLVERTEX4HVNVPROC) (const GLhalfNV *v); typedef void (APIENTRYP PFNGLNORMAL3HNVPROC) (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz); typedef void (APIENTRYP PFNGLNORMAL3HVNVPROC) (const GLhalfNV *v); typedef void (APIENTRYP PFNGLCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue); typedef void (APIENTRYP PFNGLCOLOR3HVNVPROC) (const GLhalfNV *v); typedef void (APIENTRYP PFNGLCOLOR4HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha); typedef void (APIENTRYP PFNGLCOLOR4HVNVPROC) (const GLhalfNV *v); typedef void (APIENTRYP PFNGLTEXCOORD1HNVPROC) (GLhalfNV s); typedef void (APIENTRYP PFNGLTEXCOORD1HVNVPROC) (const GLhalfNV *v); typedef void (APIENTRYP PFNGLTEXCOORD2HNVPROC) (GLhalfNV s, GLhalfNV t); typedef void (APIENTRYP PFNGLTEXCOORD2HVNVPROC) (const GLhalfNV *v); typedef void (APIENTRYP PFNGLTEXCOORD3HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r); typedef void (APIENTRYP PFNGLTEXCOORD3HVNVPROC) (const GLhalfNV *v); typedef void (APIENTRYP PFNGLTEXCOORD4HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); typedef void (APIENTRYP PFNGLTEXCOORD4HVNVPROC) (const GLhalfNV *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalfNV s); typedef void (APIENTRYP PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalfNV *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t); typedef void (APIENTRYP PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalfNV *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r); typedef void (APIENTRYP PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalfNV *v); typedef void (APIENTRYP PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); typedef void (APIENTRYP PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalfNV *v); typedef void (APIENTRYP PFNGLFOGCOORDHNVPROC) (GLhalfNV fog); typedef void (APIENTRYP PFNGLFOGCOORDHVNVPROC) (const GLhalfNV *fog); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue); typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalfNV *v); typedef void (APIENTRYP PFNGLVERTEXWEIGHTHNVPROC) (GLhalfNV weight); typedef void (APIENTRYP PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalfNV *weight); typedef void (APIENTRYP PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalfNV x); typedef void (APIENTRYP PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalfNV *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y); typedef void (APIENTRYP PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalfNV *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z); typedef void (APIENTRYP PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalfNV *v); typedef void (APIENTRYP PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); typedef void (APIENTRYP PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalfNV *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); extern VTK_RENDERING_EXPORT PFNGLVERTEX2HNVPROC Vertex2hNV; extern VTK_RENDERING_EXPORT PFNGLVERTEX2HVNVPROC Vertex2hvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEX3HNVPROC Vertex3hNV; extern VTK_RENDERING_EXPORT PFNGLVERTEX3HVNVPROC Vertex3hvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEX4HNVPROC Vertex4hNV; extern VTK_RENDERING_EXPORT PFNGLVERTEX4HVNVPROC Vertex4hvNV; extern VTK_RENDERING_EXPORT PFNGLNORMAL3HNVPROC Normal3hNV; extern VTK_RENDERING_EXPORT PFNGLNORMAL3HVNVPROC Normal3hvNV; extern VTK_RENDERING_EXPORT PFNGLCOLOR3HNVPROC Color3hNV; extern VTK_RENDERING_EXPORT PFNGLCOLOR3HVNVPROC Color3hvNV; extern VTK_RENDERING_EXPORT PFNGLCOLOR4HNVPROC Color4hNV; extern VTK_RENDERING_EXPORT PFNGLCOLOR4HVNVPROC Color4hvNV; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD1HNVPROC TexCoord1hNV; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD1HVNVPROC TexCoord1hvNV; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD2HNVPROC TexCoord2hNV; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD2HVNVPROC TexCoord2hvNV; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD3HNVPROC TexCoord3hNV; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD3HVNVPROC TexCoord3hvNV; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD4HNVPROC TexCoord4hNV; extern VTK_RENDERING_EXPORT PFNGLTEXCOORD4HVNVPROC TexCoord4hvNV; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1HNVPROC MultiTexCoord1hNV; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD1HVNVPROC MultiTexCoord1hvNV; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2HNVPROC MultiTexCoord2hNV; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD2HVNVPROC MultiTexCoord2hvNV; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3HNVPROC MultiTexCoord3hNV; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD3HVNVPROC MultiTexCoord3hvNV; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4HNVPROC MultiTexCoord4hNV; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORD4HVNVPROC MultiTexCoord4hvNV; extern VTK_RENDERING_EXPORT PFNGLFOGCOORDHNVPROC FogCoordhNV; extern VTK_RENDERING_EXPORT PFNGLFOGCOORDHVNVPROC FogCoordhvNV; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3HNVPROC SecondaryColor3hNV; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLOR3HVNVPROC SecondaryColor3hvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXWEIGHTHNVPROC VertexWeighthNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXWEIGHTHVNVPROC VertexWeighthvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1HNVPROC VertexAttrib1hNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB1HVNVPROC VertexAttrib1hvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2HNVPROC VertexAttrib2hNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB2HVNVPROC VertexAttrib2hvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3HNVPROC VertexAttrib3hNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB3HVNVPROC VertexAttrib3hvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4HNVPROC VertexAttrib4hNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIB4HVNVPROC VertexAttrib4hvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS1HVNVPROC VertexAttribs1hvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS2HVNVPROC VertexAttribs2hvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS3HVNVPROC VertexAttribs3hvNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBS4HVNVPROC VertexAttribs4hvNV; //Definitions for GL_NV_pixel_data_range const GLenum WRITE_PIXEL_DATA_RANGE_NV = static_cast<GLenum>(0x8878); const GLenum READ_PIXEL_DATA_RANGE_NV = static_cast<GLenum>(0x8879); const GLenum WRITE_PIXEL_DATA_RANGE_LENGTH_NV = static_cast<GLenum>(0x887A); const GLenum READ_PIXEL_DATA_RANGE_LENGTH_NV = static_cast<GLenum>(0x887B); const GLenum WRITE_PIXEL_DATA_RANGE_POINTER_NV = static_cast<GLenum>(0x887C); const GLenum READ_PIXEL_DATA_RANGE_POINTER_NV = static_cast<GLenum>(0x887D); typedef void (APIENTRYP PFNGLPIXELDATARANGENVPROC) (GLenum target, GLsizei length, GLvoid *pointer); typedef void (APIENTRYP PFNGLFLUSHPIXELDATARANGENVPROC) (GLenum target); extern VTK_RENDERING_EXPORT PFNGLPIXELDATARANGENVPROC PixelDataRangeNV; extern VTK_RENDERING_EXPORT PFNGLFLUSHPIXELDATARANGENVPROC FlushPixelDataRangeNV; //Definitions for GL_NV_primitive_restart const GLenum PRIMITIVE_RESTART_NV = static_cast<GLenum>(0x8558); const GLenum PRIMITIVE_RESTART_INDEX_NV = static_cast<GLenum>(0x8559); typedef void (APIENTRYP PFNGLPRIMITIVERESTARTNVPROC) (void); typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index); extern VTK_RENDERING_EXPORT PFNGLPRIMITIVERESTARTNVPROC PrimitiveRestartNV; extern VTK_RENDERING_EXPORT PFNGLPRIMITIVERESTARTINDEXNVPROC PrimitiveRestartIndexNV; //Definitions for GL_NV_texture_expand_normal const GLenum TEXTURE_UNSIGNED_REMAP_MODE_NV = static_cast<GLenum>(0x888F); //Definitions for GL_NV_vertex_program2 //Definitions for GL_ATI_map_object_buffer typedef GLvoid* (APIENTRYP PFNGLMAPOBJECTBUFFERATIPROC) (GLuint buffer); typedef void (APIENTRYP PFNGLUNMAPOBJECTBUFFERATIPROC) (GLuint buffer); extern VTK_RENDERING_EXPORT PFNGLMAPOBJECTBUFFERATIPROC MapObjectBufferATI; extern VTK_RENDERING_EXPORT PFNGLUNMAPOBJECTBUFFERATIPROC UnmapObjectBufferATI; //Definitions for GL_ATI_separate_stencil const GLenum STENCIL_BACK_FUNC_ATI = static_cast<GLenum>(0x8800); const GLenum STENCIL_BACK_FAIL_ATI = static_cast<GLenum>(0x8801); const GLenum STENCIL_BACK_PASS_DEPTH_FAIL_ATI = static_cast<GLenum>(0x8802); const GLenum STENCIL_BACK_PASS_DEPTH_PASS_ATI = static_cast<GLenum>(0x8803); typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); extern VTK_RENDERING_EXPORT PFNGLSTENCILOPSEPARATEATIPROC StencilOpSeparateATI; extern VTK_RENDERING_EXPORT PFNGLSTENCILFUNCSEPARATEATIPROC StencilFuncSeparateATI; //Definitions for GL_ATI_vertex_attrib_array_object typedef void (APIENTRYP PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint *params); extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBARRAYOBJECTATIPROC VertexAttribArrayObjectATI; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC GetVertexAttribArrayObjectfvATI; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC GetVertexAttribArrayObjectivATI; //Definitions for GL_OES_read_format const GLenum IMPLEMENTATION_COLOR_READ_TYPE_OES = static_cast<GLenum>(0x8B9A); const GLenum IMPLEMENTATION_COLOR_READ_FORMAT_OES = static_cast<GLenum>(0x8B9B); //Definitions for GL_EXT_depth_bounds_test const GLenum DEPTH_BOUNDS_TEST_EXT = static_cast<GLenum>(0x8890); const GLenum DEPTH_BOUNDS_EXT = static_cast<GLenum>(0x8891); typedef void (APIENTRYP PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax); extern VTK_RENDERING_EXPORT PFNGLDEPTHBOUNDSEXTPROC DepthBoundsEXT; //Definitions for GL_EXT_texture_mirror_clamp const GLenum MIRROR_CLAMP_EXT = static_cast<GLenum>(0x8742); const GLenum MIRROR_CLAMP_TO_EDGE_EXT = static_cast<GLenum>(0x8743); const GLenum MIRROR_CLAMP_TO_BORDER_EXT = static_cast<GLenum>(0x8912); //Definitions for GL_EXT_blend_equation_separate const GLenum BLEND_EQUATION_RGB_EXT = static_cast<GLenum>(0x8009); const GLenum BLEND_EQUATION_ALPHA_EXT = static_cast<GLenum>(0x883D); typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEEXTPROC) (GLenum modeRGB, GLenum modeAlpha); extern VTK_RENDERING_EXPORT PFNGLBLENDEQUATIONSEPARATEEXTPROC BlendEquationSeparateEXT; //Definitions for GL_MESA_pack_invert const GLenum PACK_INVERT_MESA = static_cast<GLenum>(0x8758); //Definitions for GL_MESA_ycbcr_texture const GLenum UNSIGNED_SHORT_8_8_MESA = static_cast<GLenum>(0x85BA); const GLenum UNSIGNED_SHORT_8_8_REV_MESA = static_cast<GLenum>(0x85BB); const GLenum YCBCR_MESA = static_cast<GLenum>(0x8757); //Definitions for GL_EXT_pixel_buffer_object const GLenum PIXEL_PACK_BUFFER_EXT = static_cast<GLenum>(0x88EB); const GLenum PIXEL_UNPACK_BUFFER_EXT = static_cast<GLenum>(0x88EC); const GLenum PIXEL_PACK_BUFFER_BINDING_EXT = static_cast<GLenum>(0x88ED); const GLenum PIXEL_UNPACK_BUFFER_BINDING_EXT = static_cast<GLenum>(0x88EF); //Definitions for GL_NV_fragment_program_option //Definitions for GL_NV_fragment_program2 const GLenum MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = static_cast<GLenum>(0x88F4); const GLenum MAX_PROGRAM_CALL_DEPTH_NV = static_cast<GLenum>(0x88F5); const GLenum MAX_PROGRAM_IF_DEPTH_NV = static_cast<GLenum>(0x88F6); const GLenum MAX_PROGRAM_LOOP_DEPTH_NV = static_cast<GLenum>(0x88F7); const GLenum MAX_PROGRAM_LOOP_COUNT_NV = static_cast<GLenum>(0x88F8); //Definitions for GL_NV_vertex_program2_option //Definitions for GL_NV_vertex_program3 //Definitions for GL_EXT_framebuffer_object const GLenum INVALID_FRAMEBUFFER_OPERATION_EXT = static_cast<GLenum>(0x0506); const GLenum MAX_RENDERBUFFER_SIZE_EXT = static_cast<GLenum>(0x84E8); const GLenum FRAMEBUFFER_BINDING_EXT = static_cast<GLenum>(0x8CA6); const GLenum RENDERBUFFER_BINDING_EXT = static_cast<GLenum>(0x8CA7); const GLenum FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT = static_cast<GLenum>(0x8CD0); const GLenum FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT = static_cast<GLenum>(0x8CD1); const GLenum FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT = static_cast<GLenum>(0x8CD2); const GLenum FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT = static_cast<GLenum>(0x8CD3); const GLenum FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT = static_cast<GLenum>(0x8CD4); const GLenum FRAMEBUFFER_COMPLETE_EXT = static_cast<GLenum>(0x8CD5); const GLenum FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT = static_cast<GLenum>(0x8CD6); const GLenum FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT = static_cast<GLenum>(0x8CD7); const GLenum FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT = static_cast<GLenum>(0x8CD9); const GLenum FRAMEBUFFER_INCOMPLETE_FORMATS_EXT = static_cast<GLenum>(0x8CDA); const GLenum FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT = static_cast<GLenum>(0x8CDB); const GLenum FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT = static_cast<GLenum>(0x8CDC); const GLenum FRAMEBUFFER_UNSUPPORTED_EXT = static_cast<GLenum>(0x8CDD); const GLenum MAX_COLOR_ATTACHMENTS_EXT = static_cast<GLenum>(0x8CDF); const GLenum COLOR_ATTACHMENT0_EXT = static_cast<GLenum>(0x8CE0); const GLenum COLOR_ATTACHMENT1_EXT = static_cast<GLenum>(0x8CE1); const GLenum COLOR_ATTACHMENT2_EXT = static_cast<GLenum>(0x8CE2); const GLenum COLOR_ATTACHMENT3_EXT = static_cast<GLenum>(0x8CE3); const GLenum COLOR_ATTACHMENT4_EXT = static_cast<GLenum>(0x8CE4); const GLenum COLOR_ATTACHMENT5_EXT = static_cast<GLenum>(0x8CE5); const GLenum COLOR_ATTACHMENT6_EXT = static_cast<GLenum>(0x8CE6); const GLenum COLOR_ATTACHMENT7_EXT = static_cast<GLenum>(0x8CE7); const GLenum COLOR_ATTACHMENT8_EXT = static_cast<GLenum>(0x8CE8); const GLenum COLOR_ATTACHMENT9_EXT = static_cast<GLenum>(0x8CE9); const GLenum COLOR_ATTACHMENT10_EXT = static_cast<GLenum>(0x8CEA); const GLenum COLOR_ATTACHMENT11_EXT = static_cast<GLenum>(0x8CEB); const GLenum COLOR_ATTACHMENT12_EXT = static_cast<GLenum>(0x8CEC); const GLenum COLOR_ATTACHMENT13_EXT = static_cast<GLenum>(0x8CED); const GLenum COLOR_ATTACHMENT14_EXT = static_cast<GLenum>(0x8CEE); const GLenum COLOR_ATTACHMENT15_EXT = static_cast<GLenum>(0x8CEF); const GLenum DEPTH_ATTACHMENT_EXT = static_cast<GLenum>(0x8D00); const GLenum STENCIL_ATTACHMENT_EXT = static_cast<GLenum>(0x8D20); const GLenum FRAMEBUFFER_EXT = static_cast<GLenum>(0x8D40); const GLenum RENDERBUFFER_EXT = static_cast<GLenum>(0x8D41); const GLenum RENDERBUFFER_WIDTH_EXT = static_cast<GLenum>(0x8D42); const GLenum RENDERBUFFER_HEIGHT_EXT = static_cast<GLenum>(0x8D43); const GLenum RENDERBUFFER_INTERNAL_FORMAT_EXT = static_cast<GLenum>(0x8D44); const GLenum STENCIL_INDEX1_EXT = static_cast<GLenum>(0x8D46); const GLenum STENCIL_INDEX4_EXT = static_cast<GLenum>(0x8D47); const GLenum STENCIL_INDEX8_EXT = static_cast<GLenum>(0x8D48); const GLenum STENCIL_INDEX16_EXT = static_cast<GLenum>(0x8D49); const GLenum RENDERBUFFER_RED_SIZE_EXT = static_cast<GLenum>(0x8D50); const GLenum RENDERBUFFER_GREEN_SIZE_EXT = static_cast<GLenum>(0x8D51); const GLenum RENDERBUFFER_BLUE_SIZE_EXT = static_cast<GLenum>(0x8D52); const GLenum RENDERBUFFER_ALPHA_SIZE_EXT = static_cast<GLenum>(0x8D53); const GLenum RENDERBUFFER_DEPTH_SIZE_EXT = static_cast<GLenum>(0x8D54); const GLenum RENDERBUFFER_STENCIL_SIZE_EXT = static_cast<GLenum>(0x8D55); typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFEREXTPROC) (GLuint renderbuffer); typedef void (APIENTRYP PFNGLBINDRENDERBUFFEREXTPROC) (GLenum target, GLuint renderbuffer); typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSEXTPROC) (GLsizei n, const GLuint *renderbuffers); typedef void (APIENTRYP PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n, GLuint *renderbuffers); typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFEREXTPROC) (GLuint framebuffer); typedef void (APIENTRYP PFNGLBINDFRAMEBUFFEREXTPROC) (GLenum target, GLuint framebuffer); typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSEXTPROC) (GLsizei n, const GLuint *framebuffers); typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSEXTPROC) (GLsizei n, GLuint *framebuffers); typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) (GLenum target); typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGENERATEMIPMAPEXTPROC) (GLenum target); extern VTK_RENDERING_EXPORT PFNGLISRENDERBUFFEREXTPROC IsRenderbufferEXT; extern VTK_RENDERING_EXPORT PFNGLBINDRENDERBUFFEREXTPROC BindRenderbufferEXT; extern VTK_RENDERING_EXPORT PFNGLDELETERENDERBUFFERSEXTPROC DeleteRenderbuffersEXT; extern VTK_RENDERING_EXPORT PFNGLGENRENDERBUFFERSEXTPROC GenRenderbuffersEXT; extern VTK_RENDERING_EXPORT PFNGLRENDERBUFFERSTORAGEEXTPROC RenderbufferStorageEXT; extern VTK_RENDERING_EXPORT PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC GetRenderbufferParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLISFRAMEBUFFEREXTPROC IsFramebufferEXT; extern VTK_RENDERING_EXPORT PFNGLBINDFRAMEBUFFEREXTPROC BindFramebufferEXT; extern VTK_RENDERING_EXPORT PFNGLDELETEFRAMEBUFFERSEXTPROC DeleteFramebuffersEXT; extern VTK_RENDERING_EXPORT PFNGLGENFRAMEBUFFERSEXTPROC GenFramebuffersEXT; extern VTK_RENDERING_EXPORT PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC CheckFramebufferStatusEXT; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERTEXTURE1DEXTPROC FramebufferTexture1DEXT; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERTEXTURE2DEXTPROC FramebufferTexture2DEXT; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERTEXTURE3DEXTPROC FramebufferTexture3DEXT; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC FramebufferRenderbufferEXT; extern VTK_RENDERING_EXPORT PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC GetFramebufferAttachmentParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLGENERATEMIPMAPEXTPROC GenerateMipmapEXT; //Definitions for GL_GREMEDY_string_marker typedef void (APIENTRYP PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const GLvoid *string); extern VTK_RENDERING_EXPORT PFNGLSTRINGMARKERGREMEDYPROC StringMarkerGREMEDY; //Definitions for GL_EXT_packed_depth_stencil const GLenum DEPTH_STENCIL_EXT = static_cast<GLenum>(0x84F9); const GLenum UNSIGNED_INT_24_8_EXT = static_cast<GLenum>(0x84FA); const GLenum DEPTH24_STENCIL8_EXT = static_cast<GLenum>(0x88F0); const GLenum TEXTURE_STENCIL_SIZE_EXT = static_cast<GLenum>(0x88F1); //Definitions for GL_EXT_stencil_clear_tag const GLenum STENCIL_TAG_BITS_EXT = static_cast<GLenum>(0x88F2); const GLenum STENCIL_CLEAR_TAG_VALUE_EXT = static_cast<GLenum>(0x88F3); typedef void (APIENTRYP PFNGLSTENCILCLEARTAGEXTPROC) (GLsizei stencilTagBits, GLuint stencilClearTag); extern VTK_RENDERING_EXPORT PFNGLSTENCILCLEARTAGEXTPROC StencilClearTagEXT; //Definitions for GL_EXT_texture_sRGB const GLenum SRGB_EXT = static_cast<GLenum>(0x8C40); const GLenum SRGB8_EXT = static_cast<GLenum>(0x8C41); const GLenum SRGB_ALPHA_EXT = static_cast<GLenum>(0x8C42); const GLenum SRGB8_ALPHA8_EXT = static_cast<GLenum>(0x8C43); const GLenum SLUMINANCE_ALPHA_EXT = static_cast<GLenum>(0x8C44); const GLenum SLUMINANCE8_ALPHA8_EXT = static_cast<GLenum>(0x8C45); const GLenum SLUMINANCE_EXT = static_cast<GLenum>(0x8C46); const GLenum SLUMINANCE8_EXT = static_cast<GLenum>(0x8C47); const GLenum COMPRESSED_SRGB_EXT = static_cast<GLenum>(0x8C48); const GLenum COMPRESSED_SRGB_ALPHA_EXT = static_cast<GLenum>(0x8C49); const GLenum COMPRESSED_SLUMINANCE_EXT = static_cast<GLenum>(0x8C4A); const GLenum COMPRESSED_SLUMINANCE_ALPHA_EXT = static_cast<GLenum>(0x8C4B); const GLenum COMPRESSED_SRGB_S3TC_DXT1_EXT = static_cast<GLenum>(0x8C4C); const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = static_cast<GLenum>(0x8C4D); const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = static_cast<GLenum>(0x8C4E); const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = static_cast<GLenum>(0x8C4F); //Definitions for GL_EXT_framebuffer_blit const GLenum READ_FRAMEBUFFER_EXT = static_cast<GLenum>(0x8CA8); const GLenum DRAW_FRAMEBUFFER_EXT = static_cast<GLenum>(0x8CA9); const GLenum DRAW_FRAMEBUFFER_BINDING_EXT = static_cast<GLenum>(0x8CA6); const GLenum READ_FRAMEBUFFER_BINDING_EXT = static_cast<GLenum>(0x8CAA); typedef void (APIENTRYP PFNGLBLITFRAMEBUFFEREXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); extern VTK_RENDERING_EXPORT PFNGLBLITFRAMEBUFFEREXTPROC BlitFramebufferEXT; //Definitions for GL_EXT_framebuffer_multisample const GLenum RENDERBUFFER_SAMPLES_EXT = static_cast<GLenum>(0x8CAB); const GLenum FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT = static_cast<GLenum>(0x8D56); const GLenum MAX_SAMPLES_EXT = static_cast<GLenum>(0x8D57); typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); extern VTK_RENDERING_EXPORT PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC RenderbufferStorageMultisampleEXT; //Definitions for GL_MESAX_texture_stack const GLenum TEXTURE_1D_STACK_MESAX = static_cast<GLenum>(0x8759); const GLenum TEXTURE_2D_STACK_MESAX = static_cast<GLenum>(0x875A); const GLenum PROXY_TEXTURE_1D_STACK_MESAX = static_cast<GLenum>(0x875B); const GLenum PROXY_TEXTURE_2D_STACK_MESAX = static_cast<GLenum>(0x875C); const GLenum TEXTURE_1D_STACK_BINDING_MESAX = static_cast<GLenum>(0x875D); const GLenum TEXTURE_2D_STACK_BINDING_MESAX = static_cast<GLenum>(0x875E); //Definitions for GL_EXT_timer_query const GLenum TIME_ELAPSED_EXT = static_cast<GLenum>(0x88BF); typedef int64_t GLint64EXT; typedef uint64_t GLuint64EXT; typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64EXT *params); typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64EXT *params); extern VTK_RENDERING_EXPORT PFNGLGETQUERYOBJECTI64VEXTPROC GetQueryObjecti64vEXT; extern VTK_RENDERING_EXPORT PFNGLGETQUERYOBJECTUI64VEXTPROC GetQueryObjectui64vEXT; //Definitions for GL_EXT_gpu_program_parameters typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params); typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params); extern VTK_RENDERING_EXPORT PFNGLPROGRAMENVPARAMETERS4FVEXTPROC ProgramEnvParameters4fvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC ProgramLocalParameters4fvEXT; //Definitions for GL_APPLE_flush_buffer_range const GLenum BUFFER_SERIALIZED_MODIFY_APPLE = static_cast<GLenum>(0x8A12); const GLenum BUFFER_FLUSHING_UNMAP_APPLE = static_cast<GLenum>(0x8A13); typedef void (APIENTRYP PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param); typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size); extern VTK_RENDERING_EXPORT PFNGLBUFFERPARAMETERIAPPLEPROC BufferParameteriAPPLE; extern VTK_RENDERING_EXPORT PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC FlushMappedBufferRangeAPPLE; //Definitions for GL_NV_gpu_program4 const GLenum MIN_PROGRAM_TEXEL_OFFSET_NV = static_cast<GLenum>(0x8904); const GLenum MAX_PROGRAM_TEXEL_OFFSET_NV = static_cast<GLenum>(0x8905); const GLenum PROGRAM_ATTRIB_COMPONENTS_NV = static_cast<GLenum>(0x8906); const GLenum PROGRAM_RESULT_COMPONENTS_NV = static_cast<GLenum>(0x8907); const GLenum MAX_PROGRAM_ATTRIB_COMPONENTS_NV = static_cast<GLenum>(0x8908); const GLenum MAX_PROGRAM_RESULT_COMPONENTS_NV = static_cast<GLenum>(0x8909); const GLenum MAX_PROGRAM_GENERIC_ATTRIBS_NV = static_cast<GLenum>(0x8DA5); const GLenum MAX_PROGRAM_GENERIC_RESULTS_NV = static_cast<GLenum>(0x8DA6); typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params); typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params); typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params); typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params); typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params); typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params); typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params); typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params); typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params); typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params); typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params); typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params); extern VTK_RENDERING_EXPORT PFNGLPROGRAMLOCALPARAMETERI4INVPROC ProgramLocalParameterI4iNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC ProgramLocalParameterI4ivNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC ProgramLocalParametersI4ivNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMLOCALPARAMETERI4UINVPROC ProgramLocalParameterI4uiNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC ProgramLocalParameterI4uivNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC ProgramLocalParametersI4uivNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMENVPARAMETERI4INVPROC ProgramEnvParameterI4iNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMENVPARAMETERI4IVNVPROC ProgramEnvParameterI4ivNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMENVPARAMETERSI4IVNVPROC ProgramEnvParametersI4ivNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMENVPARAMETERI4UINVPROC ProgramEnvParameterI4uiNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMENVPARAMETERI4UIVNVPROC ProgramEnvParameterI4uivNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC ProgramEnvParametersI4uivNV; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC GetProgramLocalParameterIivNV; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC GetProgramLocalParameterIuivNV; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMENVPARAMETERIIVNVPROC GetProgramEnvParameterIivNV; extern VTK_RENDERING_EXPORT PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC GetProgramEnvParameterIuivNV; //Definitions for GL_NV_geometry_program4 const GLenum LINES_ADJACENCY_EXT = static_cast<GLenum>(0x000A); const GLenum LINE_STRIP_ADJACENCY_EXT = static_cast<GLenum>(0x000B); const GLenum TRIANGLES_ADJACENCY_EXT = static_cast<GLenum>(0x000C); const GLenum TRIANGLE_STRIP_ADJACENCY_EXT = static_cast<GLenum>(0x000D); const GLenum GEOMETRY_PROGRAM_NV = static_cast<GLenum>(0x8C26); const GLenum MAX_PROGRAM_OUTPUT_VERTICES_NV = static_cast<GLenum>(0x8C27); const GLenum MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV = static_cast<GLenum>(0x8C28); const GLenum GEOMETRY_VERTICES_OUT_EXT = static_cast<GLenum>(0x8DDA); const GLenum GEOMETRY_INPUT_TYPE_EXT = static_cast<GLenum>(0x8DDB); const GLenum GEOMETRY_OUTPUT_TYPE_EXT = static_cast<GLenum>(0x8DDC); const GLenum MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = static_cast<GLenum>(0x8C29); const GLenum FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = static_cast<GLenum>(0x8DA7); const GLenum FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = static_cast<GLenum>(0x8DA8); const GLenum FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = static_cast<GLenum>(0x8DA9); const GLenum FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = static_cast<GLenum>(0x8CD4); const GLenum PROGRAM_POINT_SIZE_EXT = static_cast<GLenum>(0x8642); typedef void (APIENTRYP PFNGLPROGRAMVERTEXLIMITNVPROC) (GLenum target, GLint limit); typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); extern VTK_RENDERING_EXPORT PFNGLPROGRAMVERTEXLIMITNVPROC ProgramVertexLimitNV; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERTEXTUREEXTPROC FramebufferTextureEXT; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC FramebufferTextureLayerEXT; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC FramebufferTextureFaceEXT; //Definitions for GL_EXT_geometry_shader4 const GLenum GEOMETRY_SHADER_EXT = static_cast<GLenum>(0x8DD9); const GLenum MAX_GEOMETRY_VARYING_COMPONENTS_EXT = static_cast<GLenum>(0x8DDD); const GLenum MAX_VERTEX_VARYING_COMPONENTS_EXT = static_cast<GLenum>(0x8DDE); const GLenum MAX_VARYING_COMPONENTS_EXT = static_cast<GLenum>(0x8B4B); const GLenum MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT = static_cast<GLenum>(0x8DDF); const GLenum MAX_GEOMETRY_OUTPUT_VERTICES_EXT = static_cast<GLenum>(0x8DE0); const GLenum MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT = static_cast<GLenum>(0x8DE1); typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value); extern VTK_RENDERING_EXPORT PFNGLPROGRAMPARAMETERIEXTPROC ProgramParameteriEXT; //Definitions for GL_NV_vertex_program4 const GLenum VERTEX_ATTRIB_ARRAY_INTEGER_NV = static_cast<GLenum>(0x88FD); typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IEXTPROC) (GLuint index, GLint x); typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IEXTPROC) (GLuint index, GLint x, GLint y); typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IEXTPROC) (GLuint index, GLint x, GLint y, GLint z); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IEXTPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIEXTPROC) (GLuint index, GLuint x); typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIEXTPROC) (GLuint index, GLuint x, GLuint y); typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVEXTPROC) (GLuint index, const GLint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVEXTPROC) (GLuint index, const GLint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVEXTPROC) (GLuint index, const GLint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVEXTPROC) (GLuint index, const GLint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVEXTPROC) (GLuint index, const GLuint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVEXTPROC) (GLuint index, const GLuint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVEXTPROC) (GLuint index, const GLuint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVEXTPROC) (GLuint index, const GLuint *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVEXTPROC) (GLuint index, const GLbyte *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVEXTPROC) (GLuint index, const GLshort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVEXTPROC) (GLuint index, const GLubyte *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVEXTPROC) (GLuint index, const GLushort *v); typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVEXTPROC) (GLuint index, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVEXTPROC) (GLuint index, GLenum pname, GLuint *params); extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI1IEXTPROC VertexAttribI1iEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI2IEXTPROC VertexAttribI2iEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI3IEXTPROC VertexAttribI3iEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4IEXTPROC VertexAttribI4iEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI1UIEXTPROC VertexAttribI1uiEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI2UIEXTPROC VertexAttribI2uiEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI3UIEXTPROC VertexAttribI3uiEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4UIEXTPROC VertexAttribI4uiEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI1IVEXTPROC VertexAttribI1ivEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI2IVEXTPROC VertexAttribI2ivEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI3IVEXTPROC VertexAttribI3ivEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4IVEXTPROC VertexAttribI4ivEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI1UIVEXTPROC VertexAttribI1uivEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI2UIVEXTPROC VertexAttribI2uivEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI3UIVEXTPROC VertexAttribI3uivEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4UIVEXTPROC VertexAttribI4uivEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4BVEXTPROC VertexAttribI4bvEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4SVEXTPROC VertexAttribI4svEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4UBVEXTPROC VertexAttribI4ubvEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBI4USVEXTPROC VertexAttribI4usvEXT; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBIPOINTEREXTPROC VertexAttribIPointerEXT; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBIIVEXTPROC GetVertexAttribIivEXT; extern VTK_RENDERING_EXPORT PFNGLGETVERTEXATTRIBIUIVEXTPROC GetVertexAttribIuivEXT; //Definitions for GL_EXT_gpu_shader4 const GLenum SAMPLER_1D_ARRAY_EXT = static_cast<GLenum>(0x8DC0); const GLenum SAMPLER_2D_ARRAY_EXT = static_cast<GLenum>(0x8DC1); const GLenum SAMPLER_BUFFER_EXT = static_cast<GLenum>(0x8DC2); const GLenum SAMPLER_1D_ARRAY_SHADOW_EXT = static_cast<GLenum>(0x8DC3); const GLenum SAMPLER_2D_ARRAY_SHADOW_EXT = static_cast<GLenum>(0x8DC4); const GLenum SAMPLER_CUBE_SHADOW_EXT = static_cast<GLenum>(0x8DC5); const GLenum UNSIGNED_INT_VEC2_EXT = static_cast<GLenum>(0x8DC6); const GLenum UNSIGNED_INT_VEC3_EXT = static_cast<GLenum>(0x8DC7); const GLenum UNSIGNED_INT_VEC4_EXT = static_cast<GLenum>(0x8DC8); const GLenum INT_SAMPLER_1D_EXT = static_cast<GLenum>(0x8DC9); const GLenum INT_SAMPLER_2D_EXT = static_cast<GLenum>(0x8DCA); const GLenum INT_SAMPLER_3D_EXT = static_cast<GLenum>(0x8DCB); const GLenum INT_SAMPLER_CUBE_EXT = static_cast<GLenum>(0x8DCC); const GLenum INT_SAMPLER_2D_RECT_EXT = static_cast<GLenum>(0x8DCD); const GLenum INT_SAMPLER_1D_ARRAY_EXT = static_cast<GLenum>(0x8DCE); const GLenum INT_SAMPLER_2D_ARRAY_EXT = static_cast<GLenum>(0x8DCF); const GLenum INT_SAMPLER_BUFFER_EXT = static_cast<GLenum>(0x8DD0); const GLenum UNSIGNED_INT_SAMPLER_1D_EXT = static_cast<GLenum>(0x8DD1); const GLenum UNSIGNED_INT_SAMPLER_2D_EXT = static_cast<GLenum>(0x8DD2); const GLenum UNSIGNED_INT_SAMPLER_3D_EXT = static_cast<GLenum>(0x8DD3); const GLenum UNSIGNED_INT_SAMPLER_CUBE_EXT = static_cast<GLenum>(0x8DD4); const GLenum UNSIGNED_INT_SAMPLER_2D_RECT_EXT = static_cast<GLenum>(0x8DD5); const GLenum UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = static_cast<GLenum>(0x8DD6); const GLenum UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = static_cast<GLenum>(0x8DD7); const GLenum UNSIGNED_INT_SAMPLER_BUFFER_EXT = static_cast<GLenum>(0x8DD8); typedef void (APIENTRYP PFNGLGETUNIFORMUIVEXTPROC) (GLuint program, GLint location, GLuint *params); typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONEXTPROC) (GLuint program, GLuint color, const GLchar *name); typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONEXTPROC) (GLuint program, const GLchar *name); typedef void (APIENTRYP PFNGLUNIFORM1UIEXTPROC) (GLint location, GLuint v0); typedef void (APIENTRYP PFNGLUNIFORM2UIEXTPROC) (GLint location, GLuint v0, GLuint v1); typedef void (APIENTRYP PFNGLUNIFORM3UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); typedef void (APIENTRYP PFNGLUNIFORM4UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); typedef void (APIENTRYP PFNGLUNIFORM1UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); typedef void (APIENTRYP PFNGLUNIFORM2UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); typedef void (APIENTRYP PFNGLUNIFORM3UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); typedef void (APIENTRYP PFNGLUNIFORM4UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMUIVEXTPROC GetUniformuivEXT; extern VTK_RENDERING_EXPORT PFNGLBINDFRAGDATALOCATIONEXTPROC BindFragDataLocationEXT; extern VTK_RENDERING_EXPORT PFNGLGETFRAGDATALOCATIONEXTPROC GetFragDataLocationEXT; extern VTK_RENDERING_EXPORT PFNGLUNIFORM1UIEXTPROC Uniform1uiEXT; extern VTK_RENDERING_EXPORT PFNGLUNIFORM2UIEXTPROC Uniform2uiEXT; extern VTK_RENDERING_EXPORT PFNGLUNIFORM3UIEXTPROC Uniform3uiEXT; extern VTK_RENDERING_EXPORT PFNGLUNIFORM4UIEXTPROC Uniform4uiEXT; extern VTK_RENDERING_EXPORT PFNGLUNIFORM1UIVEXTPROC Uniform1uivEXT; extern VTK_RENDERING_EXPORT PFNGLUNIFORM2UIVEXTPROC Uniform2uivEXT; extern VTK_RENDERING_EXPORT PFNGLUNIFORM3UIVEXTPROC Uniform3uivEXT; extern VTK_RENDERING_EXPORT PFNGLUNIFORM4UIVEXTPROC Uniform4uivEXT; //Definitions for GL_EXT_draw_instanced typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount); typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount); extern VTK_RENDERING_EXPORT PFNGLDRAWARRAYSINSTANCEDEXTPROC DrawArraysInstancedEXT; extern VTK_RENDERING_EXPORT PFNGLDRAWELEMENTSINSTANCEDEXTPROC DrawElementsInstancedEXT; //Definitions for GL_EXT_packed_float const GLenum R11F_G11F_B10F_EXT = static_cast<GLenum>(0x8C3A); const GLenum UNSIGNED_INT_10F_11F_11F_REV_EXT = static_cast<GLenum>(0x8C3B); const GLenum RGBA_SIGNED_COMPONENTS_EXT = static_cast<GLenum>(0x8C3C); //Definitions for GL_EXT_texture_array const GLenum TEXTURE_1D_ARRAY_EXT = static_cast<GLenum>(0x8C18); const GLenum PROXY_TEXTURE_1D_ARRAY_EXT = static_cast<GLenum>(0x8C19); const GLenum TEXTURE_2D_ARRAY_EXT = static_cast<GLenum>(0x8C1A); const GLenum PROXY_TEXTURE_2D_ARRAY_EXT = static_cast<GLenum>(0x8C1B); const GLenum TEXTURE_BINDING_1D_ARRAY_EXT = static_cast<GLenum>(0x8C1C); const GLenum TEXTURE_BINDING_2D_ARRAY_EXT = static_cast<GLenum>(0x8C1D); const GLenum MAX_ARRAY_TEXTURE_LAYERS_EXT = static_cast<GLenum>(0x88FF); const GLenum COMPARE_REF_DEPTH_TO_TEXTURE_EXT = static_cast<GLenum>(0x884E); //Definitions for GL_EXT_texture_buffer_object const GLenum TEXTURE_BUFFER_EXT = static_cast<GLenum>(0x8C2A); const GLenum MAX_TEXTURE_BUFFER_SIZE_EXT = static_cast<GLenum>(0x8C2B); const GLenum TEXTURE_BINDING_BUFFER_EXT = static_cast<GLenum>(0x8C2C); const GLenum TEXTURE_BUFFER_DATA_STORE_BINDING_EXT = static_cast<GLenum>(0x8C2D); const GLenum TEXTURE_BUFFER_FORMAT_EXT = static_cast<GLenum>(0x8C2E); typedef void (APIENTRYP PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer); extern VTK_RENDERING_EXPORT PFNGLTEXBUFFEREXTPROC TexBufferEXT; //Definitions for GL_EXT_texture_compression_latc const GLenum COMPRESSED_LUMINANCE_LATC1_EXT = static_cast<GLenum>(0x8C70); const GLenum COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = static_cast<GLenum>(0x8C71); const GLenum COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = static_cast<GLenum>(0x8C72); const GLenum COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = static_cast<GLenum>(0x8C73); //Definitions for GL_EXT_texture_compression_rgtc const GLenum COMPRESSED_RED_RGTC1_EXT = static_cast<GLenum>(0x8DBB); const GLenum COMPRESSED_SIGNED_RED_RGTC1_EXT = static_cast<GLenum>(0x8DBC); const GLenum COMPRESSED_RED_GREEN_RGTC2_EXT = static_cast<GLenum>(0x8DBD); const GLenum COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = static_cast<GLenum>(0x8DBE); //Definitions for GL_EXT_texture_shared_exponent const GLenum RGB9_E5_EXT = static_cast<GLenum>(0x8C3D); const GLenum UNSIGNED_INT_5_9_9_9_REV_EXT = static_cast<GLenum>(0x8C3E); const GLenum TEXTURE_SHARED_SIZE_EXT = static_cast<GLenum>(0x8C3F); //Definitions for GL_NV_depth_buffer_float const GLenum DEPTH_COMPONENT32F_NV = static_cast<GLenum>(0x8DAB); const GLenum DEPTH32F_STENCIL8_NV = static_cast<GLenum>(0x8DAC); const GLenum FLOAT_32_UNSIGNED_INT_24_8_REV_NV = static_cast<GLenum>(0x8DAD); const GLenum DEPTH_BUFFER_FLOAT_MODE_NV = static_cast<GLenum>(0x8DAF); typedef void (APIENTRYP PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar); typedef void (APIENTRYP PFNGLCLEARDEPTHDNVPROC) (GLdouble depth); typedef void (APIENTRYP PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax); extern VTK_RENDERING_EXPORT PFNGLDEPTHRANGEDNVPROC DepthRangedNV; extern VTK_RENDERING_EXPORT PFNGLCLEARDEPTHDNVPROC ClearDepthdNV; extern VTK_RENDERING_EXPORT PFNGLDEPTHBOUNDSDNVPROC DepthBoundsdNV; //Definitions for GL_NV_fragment_program4 //Definitions for GL_NV_framebuffer_multisample_coverage const GLenum RENDERBUFFER_COVERAGE_SAMPLES_NV = static_cast<GLenum>(0x8CAB); const GLenum RENDERBUFFER_COLOR_SAMPLES_NV = static_cast<GLenum>(0x8E10); const GLenum MAX_MULTISAMPLE_COVERAGE_MODES_NV = static_cast<GLenum>(0x8E11); const GLenum MULTISAMPLE_COVERAGE_MODES_NV = static_cast<GLenum>(0x8E12); typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); extern VTK_RENDERING_EXPORT PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC RenderbufferStorageMultisampleCoverageNV; //Definitions for GL_EXT_framebuffer_sRGB const GLenum FRAMEBUFFER_SRGB_EXT = static_cast<GLenum>(0x8DB9); const GLenum FRAMEBUFFER_SRGB_CAPABLE_EXT = static_cast<GLenum>(0x8DBA); //Definitions for GL_NV_geometry_shader4 //Definitions for GL_NV_parameter_buffer_object const GLenum MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV = static_cast<GLenum>(0x8DA0); const GLenum MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV = static_cast<GLenum>(0x8DA1); const GLenum VERTEX_PROGRAM_PARAMETER_BUFFER_NV = static_cast<GLenum>(0x8DA2); const GLenum GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = static_cast<GLenum>(0x8DA3); const GLenum FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = static_cast<GLenum>(0x8DA4); typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLfloat *params); typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLint *params); typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLuint *params); extern VTK_RENDERING_EXPORT PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC ProgramBufferParametersfvNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC ProgramBufferParametersIivNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC ProgramBufferParametersIuivNV; //Definitions for GL_EXT_draw_buffers2 typedef void (APIENTRYP PFNGLCOLORMASKINDEXEDEXTPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); typedef void (APIENTRYP PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum target, GLuint index, GLboolean *data); typedef void (APIENTRYP PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLint *data); typedef void (APIENTRYP PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index); typedef void (APIENTRYP PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index); typedef GLboolean (APIENTRYP PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index); extern VTK_RENDERING_EXPORT PFNGLCOLORMASKINDEXEDEXTPROC ColorMaskIndexedEXT; extern VTK_RENDERING_EXPORT PFNGLGETBOOLEANINDEXEDVEXTPROC GetBooleanIndexedvEXT; extern VTK_RENDERING_EXPORT PFNGLGETINTEGERINDEXEDVEXTPROC GetIntegerIndexedvEXT; extern VTK_RENDERING_EXPORT PFNGLENABLEINDEXEDEXTPROC EnableIndexedEXT; extern VTK_RENDERING_EXPORT PFNGLDISABLEINDEXEDEXTPROC DisableIndexedEXT; extern VTK_RENDERING_EXPORT PFNGLISENABLEDINDEXEDEXTPROC IsEnabledIndexedEXT; //Definitions for GL_NV_transform_feedback const GLenum BACK_PRIMARY_COLOR_NV = static_cast<GLenum>(0x8C77); const GLenum BACK_SECONDARY_COLOR_NV = static_cast<GLenum>(0x8C78); const GLenum TEXTURE_COORD_NV = static_cast<GLenum>(0x8C79); const GLenum CLIP_DISTANCE_NV = static_cast<GLenum>(0x8C7A); const GLenum VERTEX_ID_NV = static_cast<GLenum>(0x8C7B); const GLenum PRIMITIVE_ID_NV = static_cast<GLenum>(0x8C7C); const GLenum GENERIC_ATTRIB_NV = static_cast<GLenum>(0x8C7D); const GLenum TRANSFORM_FEEDBACK_ATTRIBS_NV = static_cast<GLenum>(0x8C7E); const GLenum TRANSFORM_FEEDBACK_BUFFER_MODE_NV = static_cast<GLenum>(0x8C7F); const GLenum MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = static_cast<GLenum>(0x8C80); const GLenum ACTIVE_VARYINGS_NV = static_cast<GLenum>(0x8C81); const GLenum ACTIVE_VARYING_MAX_LENGTH_NV = static_cast<GLenum>(0x8C82); const GLenum TRANSFORM_FEEDBACK_VARYINGS_NV = static_cast<GLenum>(0x8C83); const GLenum TRANSFORM_FEEDBACK_BUFFER_START_NV = static_cast<GLenum>(0x8C84); const GLenum TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = static_cast<GLenum>(0x8C85); const GLenum TRANSFORM_FEEDBACK_RECORD_NV = static_cast<GLenum>(0x8C86); const GLenum PRIMITIVES_GENERATED_NV = static_cast<GLenum>(0x8C87); const GLenum TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = static_cast<GLenum>(0x8C88); const GLenum RASTERIZER_DISCARD_NV = static_cast<GLenum>(0x8C89); const GLenum MAX_TRANSFORM_FEEDBACK_INTERLEAVED_ATTRIBS_NV = static_cast<GLenum>(0x8C8A); const GLenum MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = static_cast<GLenum>(0x8C8B); const GLenum INTERLEAVED_ATTRIBS_NV = static_cast<GLenum>(0x8C8C); const GLenum SEPARATE_ATTRIBS_NV = static_cast<GLenum>(0x8C8D); const GLenum TRANSFORM_FEEDBACK_BUFFER_NV = static_cast<GLenum>(0x8C8E); const GLenum TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = static_cast<GLenum>(0x8C8F); typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKNVPROC) (GLenum primitiveMode); typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKNVPROC) (void); typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC) (GLuint count, const GLint *attribs, GLenum bufferMode); typedef void (APIENTRYP PFNGLBINDBUFFERRANGENVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); typedef void (APIENTRYP PFNGLBINDBUFFERBASENVPROC) (GLenum target, GLuint index, GLuint buffer); typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC) (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode); typedef void (APIENTRYP PFNGLACTIVEVARYINGNVPROC) (GLuint program, const GLchar *name); typedef GLint (APIENTRYP PFNGLGETVARYINGLOCATIONNVPROC) (GLuint program, const GLchar *name); typedef void (APIENTRYP PFNGLGETACTIVEVARYINGNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC) (GLuint program, GLuint index, GLint *location); extern VTK_RENDERING_EXPORT PFNGLBEGINTRANSFORMFEEDBACKNVPROC BeginTransformFeedbackNV; extern VTK_RENDERING_EXPORT PFNGLENDTRANSFORMFEEDBACKNVPROC EndTransformFeedbackNV; extern VTK_RENDERING_EXPORT PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC TransformFeedbackAttribsNV; extern VTK_RENDERING_EXPORT PFNGLBINDBUFFERRANGENVPROC BindBufferRangeNV; extern VTK_RENDERING_EXPORT PFNGLBINDBUFFEROFFSETNVPROC BindBufferOffsetNV; extern VTK_RENDERING_EXPORT PFNGLBINDBUFFERBASENVPROC BindBufferBaseNV; extern VTK_RENDERING_EXPORT PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC TransformFeedbackVaryingsNV; extern VTK_RENDERING_EXPORT PFNGLACTIVEVARYINGNVPROC ActiveVaryingNV; extern VTK_RENDERING_EXPORT PFNGLGETVARYINGLOCATIONNVPROC GetVaryingLocationNV; extern VTK_RENDERING_EXPORT PFNGLGETACTIVEVARYINGNVPROC GetActiveVaryingNV; extern VTK_RENDERING_EXPORT PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC GetTransformFeedbackVaryingNV; //Definitions for GL_EXT_bindable_uniform const GLenum MAX_VERTEX_BINDABLE_UNIFORMS_EXT = static_cast<GLenum>(0x8DE2); const GLenum MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = static_cast<GLenum>(0x8DE3); const GLenum MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = static_cast<GLenum>(0x8DE4); const GLenum MAX_BINDABLE_UNIFORM_SIZE_EXT = static_cast<GLenum>(0x8DED); const GLenum UNIFORM_BUFFER_EXT = static_cast<GLenum>(0x8DEE); const GLenum UNIFORM_BUFFER_BINDING_EXT = static_cast<GLenum>(0x8DEF); typedef void (APIENTRYP PFNGLUNIFORMBUFFEREXTPROC) (GLuint program, GLint location, GLuint buffer); typedef GLint (APIENTRYP PFNGLGETUNIFORMBUFFERSIZEEXTPROC) (GLuint program, GLint location); typedef GLintptr (APIENTRYP PFNGLGETUNIFORMOFFSETEXTPROC) (GLuint program, GLint location); extern VTK_RENDERING_EXPORT PFNGLUNIFORMBUFFEREXTPROC UniformBufferEXT; extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMBUFFERSIZEEXTPROC GetUniformBufferSizeEXT; extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMOFFSETEXTPROC GetUniformOffsetEXT; //Definitions for GL_EXT_texture_integer const GLenum RGBA32UI_EXT = static_cast<GLenum>(0x8D70); const GLenum RGB32UI_EXT = static_cast<GLenum>(0x8D71); const GLenum ALPHA32UI_EXT = static_cast<GLenum>(0x8D72); const GLenum INTENSITY32UI_EXT = static_cast<GLenum>(0x8D73); const GLenum LUMINANCE32UI_EXT = static_cast<GLenum>(0x8D74); const GLenum LUMINANCE_ALPHA32UI_EXT = static_cast<GLenum>(0x8D75); const GLenum RGBA16UI_EXT = static_cast<GLenum>(0x8D76); const GLenum RGB16UI_EXT = static_cast<GLenum>(0x8D77); const GLenum ALPHA16UI_EXT = static_cast<GLenum>(0x8D78); const GLenum INTENSITY16UI_EXT = static_cast<GLenum>(0x8D79); const GLenum LUMINANCE16UI_EXT = static_cast<GLenum>(0x8D7A); const GLenum LUMINANCE_ALPHA16UI_EXT = static_cast<GLenum>(0x8D7B); const GLenum RGBA8UI_EXT = static_cast<GLenum>(0x8D7C); const GLenum RGB8UI_EXT = static_cast<GLenum>(0x8D7D); const GLenum ALPHA8UI_EXT = static_cast<GLenum>(0x8D7E); const GLenum INTENSITY8UI_EXT = static_cast<GLenum>(0x8D7F); const GLenum LUMINANCE8UI_EXT = static_cast<GLenum>(0x8D80); const GLenum LUMINANCE_ALPHA8UI_EXT = static_cast<GLenum>(0x8D81); const GLenum RGBA32I_EXT = static_cast<GLenum>(0x8D82); const GLenum RGB32I_EXT = static_cast<GLenum>(0x8D83); const GLenum ALPHA32I_EXT = static_cast<GLenum>(0x8D84); const GLenum INTENSITY32I_EXT = static_cast<GLenum>(0x8D85); const GLenum LUMINANCE32I_EXT = static_cast<GLenum>(0x8D86); const GLenum LUMINANCE_ALPHA32I_EXT = static_cast<GLenum>(0x8D87); const GLenum RGBA16I_EXT = static_cast<GLenum>(0x8D88); const GLenum RGB16I_EXT = static_cast<GLenum>(0x8D89); const GLenum ALPHA16I_EXT = static_cast<GLenum>(0x8D8A); const GLenum INTENSITY16I_EXT = static_cast<GLenum>(0x8D8B); const GLenum LUMINANCE16I_EXT = static_cast<GLenum>(0x8D8C); const GLenum LUMINANCE_ALPHA16I_EXT = static_cast<GLenum>(0x8D8D); const GLenum RGBA8I_EXT = static_cast<GLenum>(0x8D8E); const GLenum RGB8I_EXT = static_cast<GLenum>(0x8D8F); const GLenum ALPHA8I_EXT = static_cast<GLenum>(0x8D90); const GLenum INTENSITY8I_EXT = static_cast<GLenum>(0x8D91); const GLenum LUMINANCE8I_EXT = static_cast<GLenum>(0x8D92); const GLenum LUMINANCE_ALPHA8I_EXT = static_cast<GLenum>(0x8D93); const GLenum RED_INTEGER_EXT = static_cast<GLenum>(0x8D94); const GLenum GREEN_INTEGER_EXT = static_cast<GLenum>(0x8D95); const GLenum BLUE_INTEGER_EXT = static_cast<GLenum>(0x8D96); const GLenum ALPHA_INTEGER_EXT = static_cast<GLenum>(0x8D97); const GLenum RGB_INTEGER_EXT = static_cast<GLenum>(0x8D98); const GLenum RGBA_INTEGER_EXT = static_cast<GLenum>(0x8D99); const GLenum BGR_INTEGER_EXT = static_cast<GLenum>(0x8D9A); const GLenum BGRA_INTEGER_EXT = static_cast<GLenum>(0x8D9B); const GLenum LUMINANCE_INTEGER_EXT = static_cast<GLenum>(0x8D9C); const GLenum LUMINANCE_ALPHA_INTEGER_EXT = static_cast<GLenum>(0x8D9D); const GLenum RGBA_INTEGER_MODE_EXT = static_cast<GLenum>(0x8D9E); typedef void (APIENTRYP PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint *params); typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint *params); typedef void (APIENTRYP PFNGLCLEARCOLORIIEXTPROC) (GLint red, GLint green, GLint blue, GLint alpha); typedef void (APIENTRYP PFNGLCLEARCOLORIUIEXTPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha); extern VTK_RENDERING_EXPORT PFNGLTEXPARAMETERIIVEXTPROC TexParameterIivEXT; extern VTK_RENDERING_EXPORT PFNGLTEXPARAMETERIUIVEXTPROC TexParameterIuivEXT; extern VTK_RENDERING_EXPORT PFNGLGETTEXPARAMETERIIVEXTPROC GetTexParameterIivEXT; extern VTK_RENDERING_EXPORT PFNGLGETTEXPARAMETERIUIVEXTPROC GetTexParameterIuivEXT; extern VTK_RENDERING_EXPORT PFNGLCLEARCOLORIIEXTPROC ClearColorIiEXT; extern VTK_RENDERING_EXPORT PFNGLCLEARCOLORIUIEXTPROC ClearColorIuiEXT; //Definitions for GL_GREMEDY_frame_terminator typedef void (APIENTRYP PFNGLFRAMETERMINATORGREMEDYPROC) (void); extern VTK_RENDERING_EXPORT PFNGLFRAMETERMINATORGREMEDYPROC FrameTerminatorGREMEDY; //Definitions for GL_NV_conditional_render const GLenum QUERY_WAIT_NV = static_cast<GLenum>(0x8E13); const GLenum QUERY_NO_WAIT_NV = static_cast<GLenum>(0x8E14); const GLenum QUERY_BY_REGION_WAIT_NV = static_cast<GLenum>(0x8E15); const GLenum QUERY_BY_REGION_NO_WAIT_NV = static_cast<GLenum>(0x8E16); typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode); typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVPROC) (void); extern VTK_RENDERING_EXPORT PFNGLBEGINCONDITIONALRENDERNVPROC BeginConditionalRenderNV; extern VTK_RENDERING_EXPORT PFNGLENDCONDITIONALRENDERNVPROC EndConditionalRenderNV; //Definitions for GL_NV_present_video const GLenum FRAME_NV = static_cast<GLenum>(0x8E26); const GLenum FIELDS_NV = static_cast<GLenum>(0x8E27); const GLenum CURRENT_TIME_NV = static_cast<GLenum>(0x8E28); const GLenum NUM_FILL_STREAMS_NV = static_cast<GLenum>(0x8E29); const GLenum PRESENT_TIME_NV = static_cast<GLenum>(0x8E2A); const GLenum PRESENT_DURATION_NV = static_cast<GLenum>(0x8E2B); typedef void (APIENTRYP PFNGLPRESENTFRAMEKEYEDNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1); typedef void (APIENTRYP PFNGLPRESENTFRAMEDUALFILLNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3); typedef void (APIENTRYP PFNGLGETVIDEOIVNVPROC) (GLuint video_slot, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETVIDEOUIVNVPROC) (GLuint video_slot, GLenum pname, GLuint *params); typedef void (APIENTRYP PFNGLGETVIDEOI64VNVPROC) (GLuint video_slot, GLenum pname, GLint64EXT *params); typedef void (APIENTRYP PFNGLGETVIDEOUI64VNVPROC) (GLuint video_slot, GLenum pname, GLuint64EXT *params); extern VTK_RENDERING_EXPORT PFNGLPRESENTFRAMEKEYEDNVPROC PresentFrameKeyedNV; extern VTK_RENDERING_EXPORT PFNGLPRESENTFRAMEDUALFILLNVPROC PresentFrameDualFillNV; extern VTK_RENDERING_EXPORT PFNGLGETVIDEOIVNVPROC GetVideoivNV; extern VTK_RENDERING_EXPORT PFNGLGETVIDEOUIVNVPROC GetVideouivNV; extern VTK_RENDERING_EXPORT PFNGLGETVIDEOI64VNVPROC GetVideoi64vNV; extern VTK_RENDERING_EXPORT PFNGLGETVIDEOUI64VNVPROC GetVideoui64vNV; //Definitions for GL_EXT_transform_feedback const GLenum TRANSFORM_FEEDBACK_BUFFER_EXT = static_cast<GLenum>(0x8C8E); const GLenum TRANSFORM_FEEDBACK_BUFFER_START_EXT = static_cast<GLenum>(0x8C84); const GLenum TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT = static_cast<GLenum>(0x8C85); const GLenum TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT = static_cast<GLenum>(0x8C8F); const GLenum INTERLEAVED_ATTRIBS_EXT = static_cast<GLenum>(0x8C8C); const GLenum SEPARATE_ATTRIBS_EXT = static_cast<GLenum>(0x8C8D); const GLenum PRIMITIVES_GENERATED_EXT = static_cast<GLenum>(0x8C87); const GLenum TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT = static_cast<GLenum>(0x8C88); const GLenum RASTERIZER_DISCARD_EXT = static_cast<GLenum>(0x8C89); const GLenum MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT = static_cast<GLenum>(0x8C8A); const GLenum MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT = static_cast<GLenum>(0x8C8B); const GLenum MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT = static_cast<GLenum>(0x8C80); const GLenum TRANSFORM_FEEDBACK_VARYINGS_EXT = static_cast<GLenum>(0x8C83); const GLenum TRANSFORM_FEEDBACK_BUFFER_MODE_EXT = static_cast<GLenum>(0x8C7F); const GLenum TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT = static_cast<GLenum>(0x8C76); typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKEXTPROC) (GLenum primitiveMode); typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKEXTPROC) (void); typedef void (APIENTRYP PFNGLBINDBUFFERRANGEEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); typedef void (APIENTRYP PFNGLBINDBUFFERBASEEXTPROC) (GLenum target, GLuint index, GLuint buffer); typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC) (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode); typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); extern VTK_RENDERING_EXPORT PFNGLBEGINTRANSFORMFEEDBACKEXTPROC BeginTransformFeedbackEXT; extern VTK_RENDERING_EXPORT PFNGLENDTRANSFORMFEEDBACKEXTPROC EndTransformFeedbackEXT; extern VTK_RENDERING_EXPORT PFNGLBINDBUFFERRANGEEXTPROC BindBufferRangeEXT; extern VTK_RENDERING_EXPORT PFNGLBINDBUFFEROFFSETEXTPROC BindBufferOffsetEXT; extern VTK_RENDERING_EXPORT PFNGLBINDBUFFERBASEEXTPROC BindBufferBaseEXT; extern VTK_RENDERING_EXPORT PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC TransformFeedbackVaryingsEXT; extern VTK_RENDERING_EXPORT PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC GetTransformFeedbackVaryingEXT; //Definitions for GL_EXT_direct_state_access const GLenum PROGRAM_MATRIX_EXT = static_cast<GLenum>(0x8E2D); const GLenum TRANSPOSE_PROGRAM_MATRIX_EXT = static_cast<GLenum>(0x8E2E); const GLenum PROGRAM_MATRIX_STACK_DEPTH_EXT = static_cast<GLenum>(0x8E2F); typedef void (APIENTRYP PFNGLCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); typedef void (APIENTRYP PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); typedef void (APIENTRYP PFNGLMATRIXLOADFEXTPROC) (GLenum mode, const GLfloat *m); typedef void (APIENTRYP PFNGLMATRIXLOADDEXTPROC) (GLenum mode, const GLdouble *m); typedef void (APIENTRYP PFNGLMATRIXMULTFEXTPROC) (GLenum mode, const GLfloat *m); typedef void (APIENTRYP PFNGLMATRIXMULTDEXTPROC) (GLenum mode, const GLdouble *m); typedef void (APIENTRYP PFNGLMATRIXLOADIDENTITYEXTPROC) (GLenum mode); typedef void (APIENTRYP PFNGLMATRIXROTATEFEXTPROC) (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLMATRIXROTATEDEXTPROC) (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRYP PFNGLMATRIXSCALEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLMATRIXSCALEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRYP PFNGLMATRIXTRANSLATEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRYP PFNGLMATRIXTRANSLATEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRYP PFNGLMATRIXFRUSTUMEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); typedef void (APIENTRYP PFNGLMATRIXORTHOEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); typedef void (APIENTRYP PFNGLMATRIXPOPEXTPROC) (GLenum mode); typedef void (APIENTRYP PFNGLMATRIXPUSHEXTPROC) (GLenum mode); typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m); typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m); typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m); typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m); typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint param); typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); typedef void (APIENTRYP PFNGLGETMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); typedef void (APIENTRYP PFNGLBINDMULTITEXTUREEXTPROC) (GLenum texunit, GLenum target, GLuint texture); typedef void (APIENTRYP PFNGLENABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); typedef void (APIENTRYP PFNGLMULTITEXCOORDPOINTEREXTPROC) (GLenum texunit, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRYP PFNGLMULTITEXENVFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLMULTITEXENVIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); typedef void (APIENTRYP PFNGLMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLMULTITEXGENDEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble param); typedef void (APIENTRYP PFNGLMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params); typedef void (APIENTRYP PFNGLMULTITEXGENFEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat param); typedef void (APIENTRYP PFNGLMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLMULTITEXGENIEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint param); typedef void (APIENTRYP PFNGLMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLGETMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params); typedef void (APIENTRYP PFNGLGETMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETFLOATINDEXEDVEXTPROC) (GLenum target, GLuint index, GLfloat *data); typedef void (APIENTRYP PFNGLGETDOUBLEINDEXEDVEXTPROC) (GLenum target, GLuint index, GLdouble *data); typedef void (APIENTRYP PFNGLGETPOINTERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLvoid* *data); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *bits); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *bits); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *bits); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *bits); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *bits); typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *bits); typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint lod, GLvoid *img); typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *bits); typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *bits); typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *bits); typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *bits); typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *bits); typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *bits); typedef void (APIENTRYP PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint lod, GLvoid *img); typedef void (APIENTRYP PFNGLNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum format, GLsizei len, const GLvoid *string); typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLdouble *params); typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLfloat *params); typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble *params); typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat *params); typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMIVEXTPROC) (GLuint program, GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum pname, GLvoid *string); typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params); typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC) (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLint *params); typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params); typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLuint *params); typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params); typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLint *params); typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint *params); typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLuint *params); typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLuint *params); typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLuint *params); typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLuint *params); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLsizeiptr size, const GLvoid *data, GLenum usage); typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const GLvoid *data); typedef GLvoid* (APIENTRYP PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access); typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFEREXTPROC) (GLuint buffer); typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC) (GLuint buffer, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVEXTPROC) (GLuint buffer, GLenum pname, GLvoid* *params); typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLvoid *data); typedef void (APIENTRYP PFNGLTEXTUREBUFFEREXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer); typedef void (APIENTRYP PFNGLMULTITEXBUFFEREXTPROC) (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer); typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC) (GLuint renderbuffer, GLenum pname, GLint *params); typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC) (GLuint framebuffer, GLenum target); typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPEXTPROC) (GLuint texture, GLenum target); typedef void (APIENTRYP PFNGLGENERATEMULTITEXMIPMAPEXTPROC) (GLenum texunit, GLenum target); typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs); typedef void (APIENTRYP PFNGLFRAMEBUFFERREADBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC) (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face); typedef void (APIENTRYP PFNGLTEXTURERENDERBUFFEREXTPROC) (GLuint texture, GLenum target, GLuint renderbuffer); typedef void (APIENTRYP PFNGLMULTITEXRENDERBUFFEREXTPROC) (GLenum texunit, GLenum target, GLuint renderbuffer); extern VTK_RENDERING_EXPORT PFNGLCLIENTATTRIBDEFAULTEXTPROC ClientAttribDefaultEXT; extern VTK_RENDERING_EXPORT PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC PushClientAttribDefaultEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXLOADFEXTPROC MatrixLoadfEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXLOADDEXTPROC MatrixLoaddEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXMULTFEXTPROC MatrixMultfEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXMULTDEXTPROC MatrixMultdEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXLOADIDENTITYEXTPROC MatrixLoadIdentityEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXROTATEFEXTPROC MatrixRotatefEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXROTATEDEXTPROC MatrixRotatedEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXSCALEFEXTPROC MatrixScalefEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXSCALEDEXTPROC MatrixScaledEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXTRANSLATEFEXTPROC MatrixTranslatefEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXTRANSLATEDEXTPROC MatrixTranslatedEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXFRUSTUMEXTPROC MatrixFrustumEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXORTHOEXTPROC MatrixOrthoEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXPOPEXTPROC MatrixPopEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXPUSHEXTPROC MatrixPushEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXLOADTRANSPOSEFEXTPROC MatrixLoadTransposefEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXLOADTRANSPOSEDEXTPROC MatrixLoadTransposedEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXMULTTRANSPOSEFEXTPROC MatrixMultTransposefEXT; extern VTK_RENDERING_EXPORT PFNGLMATRIXMULTTRANSPOSEDEXTPROC MatrixMultTransposedEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTUREPARAMETERFEXTPROC TextureParameterfEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTUREPARAMETERFVEXTPROC TextureParameterfvEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTUREPARAMETERIEXTPROC TextureParameteriEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTUREPARAMETERIVEXTPROC TextureParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTUREIMAGE1DEXTPROC TextureImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTUREIMAGE2DEXTPROC TextureImage2DEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTURESUBIMAGE1DEXTPROC TextureSubImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTURESUBIMAGE2DEXTPROC TextureSubImage2DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYTEXTUREIMAGE1DEXTPROC CopyTextureImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYTEXTUREIMAGE2DEXTPROC CopyTextureImage2DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC CopyTextureSubImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC CopyTextureSubImage2DEXT; extern VTK_RENDERING_EXPORT PFNGLGETTEXTUREIMAGEEXTPROC GetTextureImageEXT; extern VTK_RENDERING_EXPORT PFNGLGETTEXTUREPARAMETERFVEXTPROC GetTextureParameterfvEXT; extern VTK_RENDERING_EXPORT PFNGLGETTEXTUREPARAMETERIVEXTPROC GetTextureParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC GetTextureLevelParameterfvEXT; extern VTK_RENDERING_EXPORT PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC GetTextureLevelParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTUREIMAGE3DEXTPROC TextureImage3DEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTURESUBIMAGE3DEXTPROC TextureSubImage3DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC CopyTextureSubImage3DEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXPARAMETERFEXTPROC MultiTexParameterfEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXPARAMETERFVEXTPROC MultiTexParameterfvEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXPARAMETERIEXTPROC MultiTexParameteriEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXPARAMETERIVEXTPROC MultiTexParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXIMAGE1DEXTPROC MultiTexImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXIMAGE2DEXTPROC MultiTexImage2DEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXSUBIMAGE1DEXTPROC MultiTexSubImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXSUBIMAGE2DEXTPROC MultiTexSubImage2DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYMULTITEXIMAGE1DEXTPROC CopyMultiTexImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYMULTITEXIMAGE2DEXTPROC CopyMultiTexImage2DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC CopyMultiTexSubImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC CopyMultiTexSubImage2DEXT; extern VTK_RENDERING_EXPORT PFNGLGETMULTITEXIMAGEEXTPROC GetMultiTexImageEXT; extern VTK_RENDERING_EXPORT PFNGLGETMULTITEXPARAMETERFVEXTPROC GetMultiTexParameterfvEXT; extern VTK_RENDERING_EXPORT PFNGLGETMULTITEXPARAMETERIVEXTPROC GetMultiTexParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC GetMultiTexLevelParameterfvEXT; extern VTK_RENDERING_EXPORT PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC GetMultiTexLevelParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXIMAGE3DEXTPROC MultiTexImage3DEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXSUBIMAGE3DEXTPROC MultiTexSubImage3DEXT; extern VTK_RENDERING_EXPORT PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC CopyMultiTexSubImage3DEXT; extern VTK_RENDERING_EXPORT PFNGLBINDMULTITEXTUREEXTPROC BindMultiTextureEXT; extern VTK_RENDERING_EXPORT PFNGLENABLECLIENTSTATEINDEXEDEXTPROC EnableClientStateIndexedEXT; extern VTK_RENDERING_EXPORT PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC DisableClientStateIndexedEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXCOORDPOINTEREXTPROC MultiTexCoordPointerEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXENVFEXTPROC MultiTexEnvfEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXENVFVEXTPROC MultiTexEnvfvEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXENVIEXTPROC MultiTexEnviEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXENVIVEXTPROC MultiTexEnvivEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXGENDEXTPROC MultiTexGendEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXGENDVEXTPROC MultiTexGendvEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXGENFEXTPROC MultiTexGenfEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXGENFVEXTPROC MultiTexGenfvEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXGENIEXTPROC MultiTexGeniEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXGENIVEXTPROC MultiTexGenivEXT; extern VTK_RENDERING_EXPORT PFNGLGETMULTITEXENVFVEXTPROC GetMultiTexEnvfvEXT; extern VTK_RENDERING_EXPORT PFNGLGETMULTITEXENVIVEXTPROC GetMultiTexEnvivEXT; extern VTK_RENDERING_EXPORT PFNGLGETMULTITEXGENDVEXTPROC GetMultiTexGendvEXT; extern VTK_RENDERING_EXPORT PFNGLGETMULTITEXGENFVEXTPROC GetMultiTexGenfvEXT; extern VTK_RENDERING_EXPORT PFNGLGETMULTITEXGENIVEXTPROC GetMultiTexGenivEXT; extern VTK_RENDERING_EXPORT PFNGLGETFLOATINDEXEDVEXTPROC GetFloatIndexedvEXT; extern VTK_RENDERING_EXPORT PFNGLGETDOUBLEINDEXEDVEXTPROC GetDoubleIndexedvEXT; extern VTK_RENDERING_EXPORT PFNGLGETPOINTERINDEXEDVEXTPROC GetPointerIndexedvEXT; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC CompressedTextureImage3DEXT; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC CompressedTextureImage2DEXT; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC CompressedTextureImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC CompressedTextureSubImage3DEXT; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC CompressedTextureSubImage2DEXT; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC CompressedTextureSubImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC GetCompressedTextureImageEXT; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC CompressedMultiTexImage3DEXT; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC CompressedMultiTexImage2DEXT; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC CompressedMultiTexImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC CompressedMultiTexSubImage3DEXT; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC CompressedMultiTexSubImage2DEXT; extern VTK_RENDERING_EXPORT PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC CompressedMultiTexSubImage1DEXT; extern VTK_RENDERING_EXPORT PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC GetCompressedMultiTexImageEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDPROGRAMSTRINGEXTPROC NamedProgramStringEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC NamedProgramLocalParameter4dEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC NamedProgramLocalParameter4dvEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC NamedProgramLocalParameter4fEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC NamedProgramLocalParameter4fvEXT; extern VTK_RENDERING_EXPORT PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC GetNamedProgramLocalParameterdvEXT; extern VTK_RENDERING_EXPORT PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC GetNamedProgramLocalParameterfvEXT; extern VTK_RENDERING_EXPORT PFNGLGETNAMEDPROGRAMIVEXTPROC GetNamedProgramivEXT; extern VTK_RENDERING_EXPORT PFNGLGETNAMEDPROGRAMSTRINGEXTPROC GetNamedProgramStringEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC NamedProgramLocalParameters4fvEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC NamedProgramLocalParameterI4iEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC NamedProgramLocalParameterI4ivEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC NamedProgramLocalParametersI4ivEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC NamedProgramLocalParameterI4uiEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC NamedProgramLocalParameterI4uivEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC NamedProgramLocalParametersI4uivEXT; extern VTK_RENDERING_EXPORT PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC GetNamedProgramLocalParameterIivEXT; extern VTK_RENDERING_EXPORT PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC GetNamedProgramLocalParameterIuivEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTUREPARAMETERIIVEXTPROC TextureParameterIivEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTUREPARAMETERIUIVEXTPROC TextureParameterIuivEXT; extern VTK_RENDERING_EXPORT PFNGLGETTEXTUREPARAMETERIIVEXTPROC GetTextureParameterIivEXT; extern VTK_RENDERING_EXPORT PFNGLGETTEXTUREPARAMETERIUIVEXTPROC GetTextureParameterIuivEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXPARAMETERIIVEXTPROC MultiTexParameterIivEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXPARAMETERIUIVEXTPROC MultiTexParameterIuivEXT; extern VTK_RENDERING_EXPORT PFNGLGETMULTITEXPARAMETERIIVEXTPROC GetMultiTexParameterIivEXT; extern VTK_RENDERING_EXPORT PFNGLGETMULTITEXPARAMETERIUIVEXTPROC GetMultiTexParameterIuivEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM1FEXTPROC ProgramUniform1fEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM2FEXTPROC ProgramUniform2fEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM3FEXTPROC ProgramUniform3fEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM4FEXTPROC ProgramUniform4fEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM1IEXTPROC ProgramUniform1iEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM2IEXTPROC ProgramUniform2iEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM3IEXTPROC ProgramUniform3iEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM4IEXTPROC ProgramUniform4iEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM1FVEXTPROC ProgramUniform1fvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM2FVEXTPROC ProgramUniform2fvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM3FVEXTPROC ProgramUniform3fvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM4FVEXTPROC ProgramUniform4fvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM1IVEXTPROC ProgramUniform1ivEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM2IVEXTPROC ProgramUniform2ivEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM3IVEXTPROC ProgramUniform3ivEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM4IVEXTPROC ProgramUniform4ivEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC ProgramUniformMatrix2fvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC ProgramUniformMatrix3fvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC ProgramUniformMatrix4fvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC ProgramUniformMatrix2x3fvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC ProgramUniformMatrix3x2fvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC ProgramUniformMatrix2x4fvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC ProgramUniformMatrix4x2fvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC ProgramUniformMatrix3x4fvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC ProgramUniformMatrix4x3fvEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM1UIEXTPROC ProgramUniform1uiEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM2UIEXTPROC ProgramUniform2uiEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM3UIEXTPROC ProgramUniform3uiEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM4UIEXTPROC ProgramUniform4uiEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM1UIVEXTPROC ProgramUniform1uivEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM2UIVEXTPROC ProgramUniform2uivEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM3UIVEXTPROC ProgramUniform3uivEXT; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORM4UIVEXTPROC ProgramUniform4uivEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDBUFFERDATAEXTPROC NamedBufferDataEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDBUFFERSUBDATAEXTPROC NamedBufferSubDataEXT; extern VTK_RENDERING_EXPORT PFNGLMAPNAMEDBUFFEREXTPROC MapNamedBufferEXT; extern VTK_RENDERING_EXPORT PFNGLUNMAPNAMEDBUFFEREXTPROC UnmapNamedBufferEXT; extern VTK_RENDERING_EXPORT PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC GetNamedBufferParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLGETNAMEDBUFFERPOINTERVEXTPROC GetNamedBufferPointervEXT; extern VTK_RENDERING_EXPORT PFNGLGETNAMEDBUFFERSUBDATAEXTPROC GetNamedBufferSubDataEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTUREBUFFEREXTPROC TextureBufferEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXBUFFEREXTPROC MultiTexBufferEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC NamedRenderbufferStorageEXT; extern VTK_RENDERING_EXPORT PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC GetNamedRenderbufferParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC CheckNamedFramebufferStatusEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC NamedFramebufferTexture1DEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC NamedFramebufferTexture2DEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC NamedFramebufferTexture3DEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC NamedFramebufferRenderbufferEXT; extern VTK_RENDERING_EXPORT PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC GetNamedFramebufferAttachmentParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLGENERATETEXTUREMIPMAPEXTPROC GenerateTextureMipmapEXT; extern VTK_RENDERING_EXPORT PFNGLGENERATEMULTITEXMIPMAPEXTPROC GenerateMultiTexMipmapEXT; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC FramebufferDrawBufferEXT; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC FramebufferDrawBuffersEXT; extern VTK_RENDERING_EXPORT PFNGLFRAMEBUFFERREADBUFFEREXTPROC FramebufferReadBufferEXT; extern VTK_RENDERING_EXPORT PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC GetFramebufferParameterivEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC NamedRenderbufferStorageMultisampleEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC NamedRenderbufferStorageMultisampleCoverageEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC NamedFramebufferTextureEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC NamedFramebufferTextureLayerEXT; extern VTK_RENDERING_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC NamedFramebufferTextureFaceEXT; extern VTK_RENDERING_EXPORT PFNGLTEXTURERENDERBUFFEREXTPROC TextureRenderbufferEXT; extern VTK_RENDERING_EXPORT PFNGLMULTITEXRENDERBUFFEREXTPROC MultiTexRenderbufferEXT; //Definitions for GL_EXT_vertex_array_bgra //Definitions for GL_EXT_texture_swizzle const GLenum TEXTURE_SWIZZLE_R_EXT = static_cast<GLenum>(0x8E42); const GLenum TEXTURE_SWIZZLE_G_EXT = static_cast<GLenum>(0x8E43); const GLenum TEXTURE_SWIZZLE_B_EXT = static_cast<GLenum>(0x8E44); const GLenum TEXTURE_SWIZZLE_A_EXT = static_cast<GLenum>(0x8E45); const GLenum TEXTURE_SWIZZLE_RGBA_EXT = static_cast<GLenum>(0x8E46); //Definitions for GL_NV_explicit_multisample const GLenum SAMPLE_POSITION_NV = static_cast<GLenum>(0x8E50); const GLenum SAMPLE_MASK_NV = static_cast<GLenum>(0x8E51); const GLenum SAMPLE_MASK_VALUE_NV = static_cast<GLenum>(0x8E52); const GLenum TEXTURE_BINDING_RENDERBUFFER_NV = static_cast<GLenum>(0x8E53); const GLenum TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV = static_cast<GLenum>(0x8E54); const GLenum TEXTURE_RENDERBUFFER_NV = static_cast<GLenum>(0x8E55); const GLenum SAMPLER_RENDERBUFFER_NV = static_cast<GLenum>(0x8E56); const GLenum INT_SAMPLER_RENDERBUFFER_NV = static_cast<GLenum>(0x8E57); const GLenum UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV = static_cast<GLenum>(0x8E58); const GLenum MAX_SAMPLE_MASK_WORDS_NV = static_cast<GLenum>(0x8E59); typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVNVPROC) (GLenum pname, GLuint index, GLfloat *val); typedef void (APIENTRYP PFNGLSAMPLEMASKINDEXEDNVPROC) (GLuint index, GLbitfield mask); typedef void (APIENTRYP PFNGLTEXRENDERBUFFERNVPROC) (GLenum target, GLuint renderbuffer); extern VTK_RENDERING_EXPORT PFNGLGETMULTISAMPLEFVNVPROC GetMultisamplefvNV; extern VTK_RENDERING_EXPORT PFNGLSAMPLEMASKINDEXEDNVPROC SampleMaskIndexedNV; extern VTK_RENDERING_EXPORT PFNGLTEXRENDERBUFFERNVPROC TexRenderbufferNV; //Definitions for GL_NV_transform_feedback2 const GLenum TRANSFORM_FEEDBACK_NV = static_cast<GLenum>(0x8E22); const GLenum TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV = static_cast<GLenum>(0x8E23); const GLenum TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV = static_cast<GLenum>(0x8E24); const GLenum TRANSFORM_FEEDBACK_BINDING_NV = static_cast<GLenum>(0x8E25); typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKNVPROC) (GLenum target, GLuint id); typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSNVPROC) (GLsizei n, const GLuint *ids); typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSNVPROC) (GLsizei n, GLuint *ids); typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKNVPROC) (GLuint id); typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKNVPROC) (void); typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKNVPROC) (void); typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKNVPROC) (GLenum mode, GLuint id); extern VTK_RENDERING_EXPORT PFNGLBINDTRANSFORMFEEDBACKNVPROC BindTransformFeedbackNV; extern VTK_RENDERING_EXPORT PFNGLDELETETRANSFORMFEEDBACKSNVPROC DeleteTransformFeedbacksNV; extern VTK_RENDERING_EXPORT PFNGLGENTRANSFORMFEEDBACKSNVPROC GenTransformFeedbacksNV; extern VTK_RENDERING_EXPORT PFNGLISTRANSFORMFEEDBACKNVPROC IsTransformFeedbackNV; extern VTK_RENDERING_EXPORT PFNGLPAUSETRANSFORMFEEDBACKNVPROC PauseTransformFeedbackNV; extern VTK_RENDERING_EXPORT PFNGLRESUMETRANSFORMFEEDBACKNVPROC ResumeTransformFeedbackNV; extern VTK_RENDERING_EXPORT PFNGLDRAWTRANSFORMFEEDBACKNVPROC DrawTransformFeedbackNV; //Definitions for GL_ATI_meminfo const GLenum VBO_FREE_MEMORY_ATI = static_cast<GLenum>(0x87FB); const GLenum TEXTURE_FREE_MEMORY_ATI = static_cast<GLenum>(0x87FC); const GLenum RENDERBUFFER_FREE_MEMORY_ATI = static_cast<GLenum>(0x87FD); //Definitions for GL_AMD_performance_monitor const GLenum COUNTER_TYPE_AMD = static_cast<GLenum>(0x8BC0); const GLenum COUNTER_RANGE_AMD = static_cast<GLenum>(0x8BC1); const GLenum UNSIGNED_INT64_AMD = static_cast<GLenum>(0x8BC2); const GLenum PERCENTAGE_AMD = static_cast<GLenum>(0x8BC3); const GLenum PERFMON_RESULT_AVAILABLE_AMD = static_cast<GLenum>(0x8BC4); const GLenum PERFMON_RESULT_SIZE_AMD = static_cast<GLenum>(0x8BC5); const GLenum PERFMON_RESULT_AMD = static_cast<GLenum>(0x8BC6); typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups); typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters); typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString); typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString); typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void *data); typedef void (APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors); typedef void (APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors); typedef void (APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList); typedef void (APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor); typedef void (APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor); typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten); extern VTK_RENDERING_EXPORT PFNGLGETPERFMONITORGROUPSAMDPROC GetPerfMonitorGroupsAMD; extern VTK_RENDERING_EXPORT PFNGLGETPERFMONITORCOUNTERSAMDPROC GetPerfMonitorCountersAMD; extern VTK_RENDERING_EXPORT PFNGLGETPERFMONITORGROUPSTRINGAMDPROC GetPerfMonitorGroupStringAMD; extern VTK_RENDERING_EXPORT PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC GetPerfMonitorCounterStringAMD; extern VTK_RENDERING_EXPORT PFNGLGETPERFMONITORCOUNTERINFOAMDPROC GetPerfMonitorCounterInfoAMD; extern VTK_RENDERING_EXPORT PFNGLGENPERFMONITORSAMDPROC GenPerfMonitorsAMD; extern VTK_RENDERING_EXPORT PFNGLDELETEPERFMONITORSAMDPROC DeletePerfMonitorsAMD; extern VTK_RENDERING_EXPORT PFNGLSELECTPERFMONITORCOUNTERSAMDPROC SelectPerfMonitorCountersAMD; extern VTK_RENDERING_EXPORT PFNGLBEGINPERFMONITORAMDPROC BeginPerfMonitorAMD; extern VTK_RENDERING_EXPORT PFNGLENDPERFMONITORAMDPROC EndPerfMonitorAMD; extern VTK_RENDERING_EXPORT PFNGLGETPERFMONITORCOUNTERDATAAMDPROC GetPerfMonitorCounterDataAMD; //Definitions for GL_AMD_texture_texture4 //Definitions for GL_AMD_vertex_shader_tesselator const GLenum SAMPLER_BUFFER_AMD = static_cast<GLenum>(0x9001); const GLenum INT_SAMPLER_BUFFER_AMD = static_cast<GLenum>(0x9002); const GLenum UNSIGNED_INT_SAMPLER_BUFFER_AMD = static_cast<GLenum>(0x9003); const GLenum TESSELLATION_MODE_AMD = static_cast<GLenum>(0x9004); const GLenum TESSELLATION_FACTOR_AMD = static_cast<GLenum>(0x9005); const GLenum DISCRETE_AMD = static_cast<GLenum>(0x9006); const GLenum CONTINUOUS_AMD = static_cast<GLenum>(0x9007); typedef void (APIENTRYP PFNGLTESSELLATIONFACTORAMDPROC) (GLfloat factor); typedef void (APIENTRYP PFNGLTESSELLATIONMODEAMDPROC) (GLenum mode); extern VTK_RENDERING_EXPORT PFNGLTESSELLATIONFACTORAMDPROC TessellationFactorAMD; extern VTK_RENDERING_EXPORT PFNGLTESSELLATIONMODEAMDPROC TessellationModeAMD; //Definitions for GL_EXT_provoking_vertex const GLenum QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT = static_cast<GLenum>(0x8E4C); const GLenum FIRST_VERTEX_CONVENTION_EXT = static_cast<GLenum>(0x8E4D); const GLenum LAST_VERTEX_CONVENTION_EXT = static_cast<GLenum>(0x8E4E); const GLenum PROVOKING_VERTEX_EXT = static_cast<GLenum>(0x8E4F); typedef void (APIENTRYP PFNGLPROVOKINGVERTEXEXTPROC) (GLenum mode); extern VTK_RENDERING_EXPORT PFNGLPROVOKINGVERTEXEXTPROC ProvokingVertexEXT; //Definitions for GL_EXT_texture_snorm const GLenum ALPHA_SNORM = static_cast<GLenum>(0x9010); const GLenum LUMINANCE_SNORM = static_cast<GLenum>(0x9011); const GLenum LUMINANCE_ALPHA_SNORM = static_cast<GLenum>(0x9012); const GLenum INTENSITY_SNORM = static_cast<GLenum>(0x9013); const GLenum ALPHA8_SNORM = static_cast<GLenum>(0x9014); const GLenum LUMINANCE8_SNORM = static_cast<GLenum>(0x9015); const GLenum LUMINANCE8_ALPHA8_SNORM = static_cast<GLenum>(0x9016); const GLenum INTENSITY8_SNORM = static_cast<GLenum>(0x9017); const GLenum ALPHA16_SNORM = static_cast<GLenum>(0x9018); const GLenum LUMINANCE16_SNORM = static_cast<GLenum>(0x9019); const GLenum LUMINANCE16_ALPHA16_SNORM = static_cast<GLenum>(0x901A); const GLenum INTENSITY16_SNORM = static_cast<GLenum>(0x901B); //Definitions for GL_AMD_draw_buffers_blend typedef void (APIENTRYP PFNGLBLENDFUNCINDEXEDAMDPROC) (GLuint buf, GLenum src, GLenum dst); typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); typedef void (APIENTRYP PFNGLBLENDEQUATIONINDEXEDAMDPROC) (GLuint buf, GLenum mode); typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); extern VTK_RENDERING_EXPORT PFNGLBLENDFUNCINDEXEDAMDPROC BlendFuncIndexedAMD; extern VTK_RENDERING_EXPORT PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC BlendFuncSeparateIndexedAMD; extern VTK_RENDERING_EXPORT PFNGLBLENDEQUATIONINDEXEDAMDPROC BlendEquationIndexedAMD; extern VTK_RENDERING_EXPORT PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC BlendEquationSeparateIndexedAMD; //Definitions for GL_APPLE_texture_range const GLenum TEXTURE_RANGE_LENGTH_APPLE = static_cast<GLenum>(0x85B7); const GLenum TEXTURE_RANGE_POINTER_APPLE = static_cast<GLenum>(0x85B8); const GLenum TEXTURE_STORAGE_HINT_APPLE = static_cast<GLenum>(0x85BC); const GLenum STORAGE_PRIVATE_APPLE = static_cast<GLenum>(0x85BD); typedef void (APIENTRYP PFNGLTEXTURERANGEAPPLEPROC) (GLenum target, GLsizei length, const GLvoid *pointer); typedef void (APIENTRYP PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC) (GLenum target, GLenum pname, GLvoid* *params); extern VTK_RENDERING_EXPORT PFNGLTEXTURERANGEAPPLEPROC TextureRangeAPPLE; extern VTK_RENDERING_EXPORT PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC GetTexParameterPointervAPPLE; //Definitions for GL_APPLE_float_pixels const GLenum HALF_APPLE = static_cast<GLenum>(0x140B); const GLenum RGBA_FLOAT32_APPLE = static_cast<GLenum>(0x8814); const GLenum RGB_FLOAT32_APPLE = static_cast<GLenum>(0x8815); const GLenum ALPHA_FLOAT32_APPLE = static_cast<GLenum>(0x8816); const GLenum INTENSITY_FLOAT32_APPLE = static_cast<GLenum>(0x8817); const GLenum LUMINANCE_FLOAT32_APPLE = static_cast<GLenum>(0x8818); const GLenum LUMINANCE_ALPHA_FLOAT32_APPLE = static_cast<GLenum>(0x8819); const GLenum RGBA_FLOAT16_APPLE = static_cast<GLenum>(0x881A); const GLenum RGB_FLOAT16_APPLE = static_cast<GLenum>(0x881B); const GLenum ALPHA_FLOAT16_APPLE = static_cast<GLenum>(0x881C); const GLenum INTENSITY_FLOAT16_APPLE = static_cast<GLenum>(0x881D); const GLenum LUMINANCE_FLOAT16_APPLE = static_cast<GLenum>(0x881E); const GLenum LUMINANCE_ALPHA_FLOAT16_APPLE = static_cast<GLenum>(0x881F); const GLenum COLOR_FLOAT_APPLE = static_cast<GLenum>(0x8A0F); //Definitions for GL_APPLE_vertex_program_evaluators const GLenum VERTEX_ATTRIB_MAP1_APPLE = static_cast<GLenum>(0x8A00); const GLenum VERTEX_ATTRIB_MAP2_APPLE = static_cast<GLenum>(0x8A01); const GLenum VERTEX_ATTRIB_MAP1_SIZE_APPLE = static_cast<GLenum>(0x8A02); const GLenum VERTEX_ATTRIB_MAP1_COEFF_APPLE = static_cast<GLenum>(0x8A03); const GLenum VERTEX_ATTRIB_MAP1_ORDER_APPLE = static_cast<GLenum>(0x8A04); const GLenum VERTEX_ATTRIB_MAP1_DOMAIN_APPLE = static_cast<GLenum>(0x8A05); const GLenum VERTEX_ATTRIB_MAP2_SIZE_APPLE = static_cast<GLenum>(0x8A06); const GLenum VERTEX_ATTRIB_MAP2_COEFF_APPLE = static_cast<GLenum>(0x8A07); const GLenum VERTEX_ATTRIB_MAP2_ORDER_APPLE = static_cast<GLenum>(0x8A08); const GLenum VERTEX_ATTRIB_MAP2_DOMAIN_APPLE = static_cast<GLenum>(0x8A09); typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname); typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname); typedef GLboolean (APIENTRYP PFNGLISVERTEXATTRIBENABLEDAPPLEPROC) (GLuint index, GLenum pname); typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); extern VTK_RENDERING_EXPORT PFNGLENABLEVERTEXATTRIBAPPLEPROC EnableVertexAttribAPPLE; extern VTK_RENDERING_EXPORT PFNGLDISABLEVERTEXATTRIBAPPLEPROC DisableVertexAttribAPPLE; extern VTK_RENDERING_EXPORT PFNGLISVERTEXATTRIBENABLEDAPPLEPROC IsVertexAttribEnabledAPPLE; extern VTK_RENDERING_EXPORT PFNGLMAPVERTEXATTRIB1DAPPLEPROC MapVertexAttrib1dAPPLE; extern VTK_RENDERING_EXPORT PFNGLMAPVERTEXATTRIB1FAPPLEPROC MapVertexAttrib1fAPPLE; extern VTK_RENDERING_EXPORT PFNGLMAPVERTEXATTRIB2DAPPLEPROC MapVertexAttrib2dAPPLE; extern VTK_RENDERING_EXPORT PFNGLMAPVERTEXATTRIB2FAPPLEPROC MapVertexAttrib2fAPPLE; //Definitions for GL_APPLE_aux_depth_stencil const GLenum AUX_DEPTH_STENCIL_APPLE = static_cast<GLenum>(0x8A14); //Definitions for GL_APPLE_object_purgeable const GLenum BUFFER_OBJECT_APPLE = static_cast<GLenum>(0x85B3); const GLenum RELEASED_APPLE = static_cast<GLenum>(0x8A19); const GLenum VOLATILE_APPLE = static_cast<GLenum>(0x8A1A); const GLenum RETAINED_APPLE = static_cast<GLenum>(0x8A1B); const GLenum UNDEFINED_APPLE = static_cast<GLenum>(0x8A1C); const GLenum PURGEABLE_APPLE = static_cast<GLenum>(0x8A1D); typedef GLenum (APIENTRYP PFNGLOBJECTPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option); typedef GLenum (APIENTRYP PFNGLOBJECTUNPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option); typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVAPPLEPROC) (GLenum objectType, GLuint name, GLenum pname, GLint *params); extern VTK_RENDERING_EXPORT PFNGLOBJECTPURGEABLEAPPLEPROC ObjectPurgeableAPPLE; extern VTK_RENDERING_EXPORT PFNGLOBJECTUNPURGEABLEAPPLEPROC ObjectUnpurgeableAPPLE; extern VTK_RENDERING_EXPORT PFNGLGETOBJECTPARAMETERIVAPPLEPROC GetObjectParameterivAPPLE; //Definitions for GL_APPLE_row_bytes const GLenum PACK_ROW_BYTES_APPLE = static_cast<GLenum>(0x8A15); const GLenum UNPACK_ROW_BYTES_APPLE = static_cast<GLenum>(0x8A16); //Definitions for GL_APPLE_rgb_422 const GLenum RGB_422_APPLE = static_cast<GLenum>(0x8A1F); //Definitions for GL_NV_video_capture const GLenum VIDEO_BUFFER_NV = static_cast<GLenum>(0x9020); const GLenum VIDEO_BUFFER_BINDING_NV = static_cast<GLenum>(0x9021); const GLenum FIELD_UPPER_NV = static_cast<GLenum>(0x9022); const GLenum FIELD_LOWER_NV = static_cast<GLenum>(0x9023); const GLenum NUM_VIDEO_CAPTURE_STREAMS_NV = static_cast<GLenum>(0x9024); const GLenum NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV = static_cast<GLenum>(0x9025); const GLenum VIDEO_CAPTURE_TO_422_SUPPORTED_NV = static_cast<GLenum>(0x9026); const GLenum LAST_VIDEO_CAPTURE_STATUS_NV = static_cast<GLenum>(0x9027); const GLenum VIDEO_BUFFER_PITCH_NV = static_cast<GLenum>(0x9028); const GLenum VIDEO_COLOR_CONVERSION_MATRIX_NV = static_cast<GLenum>(0x9029); const GLenum VIDEO_COLOR_CONVERSION_MAX_NV = static_cast<GLenum>(0x902A); const GLenum VIDEO_COLOR_CONVERSION_MIN_NV = static_cast<GLenum>(0x902B); const GLenum VIDEO_COLOR_CONVERSION_OFFSET_NV = static_cast<GLenum>(0x902C); const GLenum VIDEO_BUFFER_INTERNAL_FORMAT_NV = static_cast<GLenum>(0x902D); const GLenum PARTIAL_SUCCESS_NV = static_cast<GLenum>(0x902E); const GLenum SUCCESS_NV = static_cast<GLenum>(0x902F); const GLenum FAILURE_NV = static_cast<GLenum>(0x9030); const GLenum YCBYCR8_422_NV = static_cast<GLenum>(0x9031); const GLenum YCBAYCR8A_4224_NV = static_cast<GLenum>(0x9032); const GLenum Z6Y10Z6CB10Z6Y10Z6CR10_422_NV = static_cast<GLenum>(0x9033); const GLenum Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV = static_cast<GLenum>(0x9034); const GLenum Z4Y12Z4CB12Z4Y12Z4CR12_422_NV = static_cast<GLenum>(0x9035); const GLenum Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV = static_cast<GLenum>(0x9036); const GLenum Z4Y12Z4CB12Z4CR12_444_NV = static_cast<GLenum>(0x9037); const GLenum VIDEO_CAPTURE_FRAME_WIDTH_NV = static_cast<GLenum>(0x9038); const GLenum VIDEO_CAPTURE_FRAME_HEIGHT_NV = static_cast<GLenum>(0x9039); const GLenum VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV = static_cast<GLenum>(0x903A); const GLenum VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV = static_cast<GLenum>(0x903B); const GLenum VIDEO_CAPTURE_SURFACE_ORIGIN_NV = static_cast<GLenum>(0x903C); typedef void (APIENTRYP PFNGLBEGINVIDEOCAPTURENVPROC) (GLuint video_capture_slot); typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset); typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture); typedef void (APIENTRYP PFNGLENDVIDEOCAPTURENVPROC) (GLuint video_capture_slot); typedef void (APIENTRYP PFNGLGETVIDEOCAPTUREIVNVPROC) (GLuint video_capture_slot, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint *params); typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat *params); typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble *params); typedef GLenum (APIENTRYP PFNGLVIDEOCAPTURENVPROC) (GLuint video_capture_slot, GLuint *sequence_num, GLuint64EXT *capture_time); typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint *params); typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat *params); typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble *params); extern VTK_RENDERING_EXPORT PFNGLBEGINVIDEOCAPTURENVPROC BeginVideoCaptureNV; extern VTK_RENDERING_EXPORT PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC BindVideoCaptureStreamBufferNV; extern VTK_RENDERING_EXPORT PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC BindVideoCaptureStreamTextureNV; extern VTK_RENDERING_EXPORT PFNGLENDVIDEOCAPTURENVPROC EndVideoCaptureNV; extern VTK_RENDERING_EXPORT PFNGLGETVIDEOCAPTUREIVNVPROC GetVideoCaptureivNV; extern VTK_RENDERING_EXPORT PFNGLGETVIDEOCAPTURESTREAMIVNVPROC GetVideoCaptureStreamivNV; extern VTK_RENDERING_EXPORT PFNGLGETVIDEOCAPTURESTREAMFVNVPROC GetVideoCaptureStreamfvNV; extern VTK_RENDERING_EXPORT PFNGLGETVIDEOCAPTURESTREAMDVNVPROC GetVideoCaptureStreamdvNV; extern VTK_RENDERING_EXPORT PFNGLVIDEOCAPTURENVPROC VideoCaptureNV; extern VTK_RENDERING_EXPORT PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC VideoCaptureStreamParameterivNV; extern VTK_RENDERING_EXPORT PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC VideoCaptureStreamParameterfvNV; extern VTK_RENDERING_EXPORT PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC VideoCaptureStreamParameterdvNV; //Definitions for GL_NV_copy_image typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATANVPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); extern VTK_RENDERING_EXPORT PFNGLCOPYIMAGESUBDATANVPROC CopyImageSubDataNV; //Definitions for GL_EXT_separate_shader_objects const GLenum ACTIVE_PROGRAM_EXT = static_cast<GLenum>(0x8B8D); typedef void (APIENTRYP PFNGLUSESHADERPROGRAMEXTPROC) (GLenum type, GLuint program); typedef void (APIENTRYP PFNGLACTIVEPROGRAMEXTPROC) (GLuint program); typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMEXTPROC) (GLenum type, const GLchar *string); extern VTK_RENDERING_EXPORT PFNGLUSESHADERPROGRAMEXTPROC UseShaderProgramEXT; extern VTK_RENDERING_EXPORT PFNGLACTIVEPROGRAMEXTPROC ActiveProgramEXT; extern VTK_RENDERING_EXPORT PFNGLCREATESHADERPROGRAMEXTPROC CreateShaderProgramEXT; //Definitions for GL_NV_parameter_buffer_object2 //Definitions for GL_NV_shader_buffer_load const GLenum BUFFER_GPU_ADDRESS_NV = static_cast<GLenum>(0x8F1D); const GLenum GPU_ADDRESS_NV = static_cast<GLenum>(0x8F34); const GLenum MAX_SHADER_BUFFER_ADDRESS_NV = static_cast<GLenum>(0x8F35); typedef void (APIENTRYP PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access); typedef void (APIENTRYP PFNGLMAKEBUFFERNONRESIDENTNVPROC) (GLenum target); typedef GLboolean (APIENTRYP PFNGLISBUFFERRESIDENTNVPROC) (GLenum target); typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access); typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC) (GLuint buffer); typedef GLboolean (APIENTRYP PFNGLISNAMEDBUFFERRESIDENTNVPROC) (GLuint buffer); typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERUI64VNVPROC) (GLenum target, GLenum pname, GLuint64EXT *params); typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC) (GLuint buffer, GLenum pname, GLuint64EXT *params); typedef void (APIENTRYP PFNGLGETINTEGERUI64VNVPROC) (GLenum value, GLuint64EXT *result); typedef void (APIENTRYP PFNGLUNIFORMUI64NVPROC) (GLint location, GLuint64EXT value); typedef void (APIENTRYP PFNGLUNIFORMUI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); typedef void (APIENTRYP PFNGLGETUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLuint64EXT *params); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64NVPROC) (GLuint program, GLint location, GLuint64EXT value); typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); extern VTK_RENDERING_EXPORT PFNGLMAKEBUFFERRESIDENTNVPROC MakeBufferResidentNV; extern VTK_RENDERING_EXPORT PFNGLMAKEBUFFERNONRESIDENTNVPROC MakeBufferNonResidentNV; extern VTK_RENDERING_EXPORT PFNGLISBUFFERRESIDENTNVPROC IsBufferResidentNV; extern VTK_RENDERING_EXPORT PFNGLMAKENAMEDBUFFERRESIDENTNVPROC MakeNamedBufferResidentNV; extern VTK_RENDERING_EXPORT PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC MakeNamedBufferNonResidentNV; extern VTK_RENDERING_EXPORT PFNGLISNAMEDBUFFERRESIDENTNVPROC IsNamedBufferResidentNV; extern VTK_RENDERING_EXPORT PFNGLGETBUFFERPARAMETERUI64VNVPROC GetBufferParameterui64vNV; extern VTK_RENDERING_EXPORT PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC GetNamedBufferParameterui64vNV; extern VTK_RENDERING_EXPORT PFNGLGETINTEGERUI64VNVPROC GetIntegerui64vNV; extern VTK_RENDERING_EXPORT PFNGLUNIFORMUI64NVPROC Uniformui64NV; extern VTK_RENDERING_EXPORT PFNGLUNIFORMUI64VNVPROC Uniformui64vNV; extern VTK_RENDERING_EXPORT PFNGLGETUNIFORMUI64VNVPROC GetUniformui64vNV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMUI64NVPROC ProgramUniformui64NV; extern VTK_RENDERING_EXPORT PFNGLPROGRAMUNIFORMUI64VNVPROC ProgramUniformui64vNV; //Definitions for GL_NV_vertex_buffer_unified_memory const GLenum VERTEX_ATTRIB_ARRAY_UNIFIED_NV = static_cast<GLenum>(0x8F1E); const GLenum ELEMENT_ARRAY_UNIFIED_NV = static_cast<GLenum>(0x8F1F); const GLenum VERTEX_ATTRIB_ARRAY_ADDRESS_NV = static_cast<GLenum>(0x8F20); const GLenum VERTEX_ARRAY_ADDRESS_NV = static_cast<GLenum>(0x8F21); const GLenum NORMAL_ARRAY_ADDRESS_NV = static_cast<GLenum>(0x8F22); const GLenum COLOR_ARRAY_ADDRESS_NV = static_cast<GLenum>(0x8F23); const GLenum INDEX_ARRAY_ADDRESS_NV = static_cast<GLenum>(0x8F24); const GLenum TEXTURE_COORD_ARRAY_ADDRESS_NV = static_cast<GLenum>(0x8F25); const GLenum EDGE_FLAG_ARRAY_ADDRESS_NV = static_cast<GLenum>(0x8F26); const GLenum SECONDARY_COLOR_ARRAY_ADDRESS_NV = static_cast<GLenum>(0x8F27); const GLenum FOG_COORD_ARRAY_ADDRESS_NV = static_cast<GLenum>(0x8F28); const GLenum ELEMENT_ARRAY_ADDRESS_NV = static_cast<GLenum>(0x8F29); const GLenum VERTEX_ATTRIB_ARRAY_LENGTH_NV = static_cast<GLenum>(0x8F2A); const GLenum VERTEX_ARRAY_LENGTH_NV = static_cast<GLenum>(0x8F2B); const GLenum NORMAL_ARRAY_LENGTH_NV = static_cast<GLenum>(0x8F2C); const GLenum COLOR_ARRAY_LENGTH_NV = static_cast<GLenum>(0x8F2D); const GLenum INDEX_ARRAY_LENGTH_NV = static_cast<GLenum>(0x8F2E); const GLenum TEXTURE_COORD_ARRAY_LENGTH_NV = static_cast<GLenum>(0x8F2F); const GLenum EDGE_FLAG_ARRAY_LENGTH_NV = static_cast<GLenum>(0x8F30); const GLenum SECONDARY_COLOR_ARRAY_LENGTH_NV = static_cast<GLenum>(0x8F31); const GLenum FOG_COORD_ARRAY_LENGTH_NV = static_cast<GLenum>(0x8F32); const GLenum ELEMENT_ARRAY_LENGTH_NV = static_cast<GLenum>(0x8F33); typedef void (APIENTRYP PFNGLBUFFERADDRESSRANGENVPROC) (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length); typedef void (APIENTRYP PFNGLVERTEXFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); typedef void (APIENTRYP PFNGLNORMALFORMATNVPROC) (GLenum type, GLsizei stride); typedef void (APIENTRYP PFNGLCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); typedef void (APIENTRYP PFNGLINDEXFORMATNVPROC) (GLenum type, GLsizei stride); typedef void (APIENTRYP PFNGLTEXCOORDFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); typedef void (APIENTRYP PFNGLEDGEFLAGFORMATNVPROC) (GLsizei stride); typedef void (APIENTRYP PFNGLSECONDARYCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); typedef void (APIENTRYP PFNGLFOGCOORDFORMATNVPROC) (GLenum type, GLsizei stride); typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride); typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride); typedef void (APIENTRYP PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT *result); extern VTK_RENDERING_EXPORT PFNGLBUFFERADDRESSRANGENVPROC BufferAddressRangeNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXFORMATNVPROC VertexFormatNV; extern VTK_RENDERING_EXPORT PFNGLNORMALFORMATNVPROC NormalFormatNV; extern VTK_RENDERING_EXPORT PFNGLCOLORFORMATNVPROC ColorFormatNV; extern VTK_RENDERING_EXPORT PFNGLINDEXFORMATNVPROC IndexFormatNV; extern VTK_RENDERING_EXPORT PFNGLTEXCOORDFORMATNVPROC TexCoordFormatNV; extern VTK_RENDERING_EXPORT PFNGLEDGEFLAGFORMATNVPROC EdgeFlagFormatNV; extern VTK_RENDERING_EXPORT PFNGLSECONDARYCOLORFORMATNVPROC SecondaryColorFormatNV; extern VTK_RENDERING_EXPORT PFNGLFOGCOORDFORMATNVPROC FogCoordFormatNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBFORMATNVPROC VertexAttribFormatNV; extern VTK_RENDERING_EXPORT PFNGLVERTEXATTRIBIFORMATNVPROC VertexAttribIFormatNV; extern VTK_RENDERING_EXPORT PFNGLGETINTEGERUI64I_VNVPROC GetIntegerui64i_vNV; //Definitions for GL_NV_texture_barrier typedef void (APIENTRYP PFNGLTEXTUREBARRIERNVPROC) (void); extern VTK_RENDERING_EXPORT PFNGLTEXTUREBARRIERNVPROC TextureBarrierNV; //Definitions for GL_AMD_shader_stencil_export //Definitions for GL_AMD_seamless_cubemap_per_texture //Definitions for GL_SGIX_texture_select //Definitions for GL_INGR_blend_func_separate typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINGRPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); extern VTK_RENDERING_EXPORT PFNGLBLENDFUNCSEPARATEINGRPROC BlendFuncSeparateINGR; //Definitions for GL_SGIX_depth_pass_instrument //Definitions for GL_SGIX_igloo_interface typedef void (APIENTRYP PFNGLIGLOOINTERFACESGIXPROC) (GLenum pname, const GLvoid *params); extern VTK_RENDERING_EXPORT PFNGLIGLOOINTERFACESGIXPROC IglooInterfaceSGIX; // Method to load functions for a particular extension. int LoadExtension(const char *name, vtkOpenGLExtensionManager *manager); // Strings containing special version extensions. const char *GLVersionExtensionsString(); const char *GLXVersionExtensionsString(); } #ifdef VTK_USE_X namespace vtkglX { //Miscellaneous definitions. typedef XID GLXContextID; typedef XID GLXPbuffer; typedef XID GLXWindow; typedef XID GLXFBConfigID; typedef struct __GLXFBConfigRec *GLXFBConfig; typedef vtkTypeInt32 int32_t; typedef vtkTypeInt64 int64_t; //Definitions for GLX_ARB_get_proc_address typedef void (*__GLXextFuncPtr)(void); typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName); extern VTK_RENDERING_EXPORT PFNGLXGETPROCADDRESSARBPROC GetProcAddressARB; //Definitions for GLX_VERSION_1_3 const GLenum WINDOW_BIT = static_cast<GLenum>(0x00000001); const GLenum PIXMAP_BIT = static_cast<GLenum>(0x00000002); const GLenum PBUFFER_BIT = static_cast<GLenum>(0x00000004); const GLenum RGBA_BIT = static_cast<GLenum>(0x00000001); const GLenum COLOR_INDEX_BIT = static_cast<GLenum>(0x00000002); const GLenum PBUFFER_CLOBBER_MASK = static_cast<GLenum>(0x08000000); const GLenum FRONT_LEFT_BUFFER_BIT = static_cast<GLenum>(0x00000001); const GLenum FRONT_RIGHT_BUFFER_BIT = static_cast<GLenum>(0x00000002); const GLenum BACK_LEFT_BUFFER_BIT = static_cast<GLenum>(0x00000004); const GLenum BACK_RIGHT_BUFFER_BIT = static_cast<GLenum>(0x00000008); const GLenum AUX_BUFFERS_BIT = static_cast<GLenum>(0x00000010); const GLenum DEPTH_BUFFER_BIT = static_cast<GLenum>(0x00000020); const GLenum STENCIL_BUFFER_BIT = static_cast<GLenum>(0x00000040); const GLenum ACCUM_BUFFER_BIT = static_cast<GLenum>(0x00000080); const GLenum CONFIG_CAVEAT = static_cast<GLenum>(0x20); const GLenum X_VISUAL_TYPE = static_cast<GLenum>(0x22); const GLenum TRANSPARENT_TYPE = static_cast<GLenum>(0x23); const GLenum TRANSPARENT_INDEX_VALUE = static_cast<GLenum>(0x24); const GLenum TRANSPARENT_RED_VALUE = static_cast<GLenum>(0x25); const GLenum TRANSPARENT_GREEN_VALUE = static_cast<GLenum>(0x26); const GLenum TRANSPARENT_BLUE_VALUE = static_cast<GLenum>(0x27); const GLenum TRANSPARENT_ALPHA_VALUE = static_cast<GLenum>(0x28); const GLenum DONT_CARE = static_cast<GLenum>(0xFFFFFFFF); const GLenum NONE = static_cast<GLenum>(0x8000); const GLenum SLOW_CONFIG = static_cast<GLenum>(0x8001); const GLenum TRUE_COLOR = static_cast<GLenum>(0x8002); const GLenum DIRECT_COLOR = static_cast<GLenum>(0x8003); const GLenum PSEUDO_COLOR = static_cast<GLenum>(0x8004); const GLenum STATIC_COLOR = static_cast<GLenum>(0x8005); const GLenum GRAY_SCALE = static_cast<GLenum>(0x8006); const GLenum STATIC_GRAY = static_cast<GLenum>(0x8007); const GLenum TRANSPARENT_RGB = static_cast<GLenum>(0x8008); const GLenum TRANSPARENT_INDEX = static_cast<GLenum>(0x8009); const GLenum VISUAL_ID = static_cast<GLenum>(0x800B); const GLenum SCREEN = static_cast<GLenum>(0x800C); const GLenum NON_CONFORMANT_CONFIG = static_cast<GLenum>(0x800D); const GLenum DRAWABLE_TYPE = static_cast<GLenum>(0x8010); const GLenum RENDER_TYPE = static_cast<GLenum>(0x8011); const GLenum X_RENDERABLE = static_cast<GLenum>(0x8012); const GLenum FBCONFIG_ID = static_cast<GLenum>(0x8013); const GLenum RGBA_TYPE = static_cast<GLenum>(0x8014); const GLenum COLOR_INDEX_TYPE = static_cast<GLenum>(0x8015); const GLenum MAX_PBUFFER_WIDTH = static_cast<GLenum>(0x8016); const GLenum MAX_PBUFFER_HEIGHT = static_cast<GLenum>(0x8017); const GLenum MAX_PBUFFER_PIXELS = static_cast<GLenum>(0x8018); const GLenum PRESERVED_CONTENTS = static_cast<GLenum>(0x801B); const GLenum LARGEST_PBUFFER = static_cast<GLenum>(0x801C); const GLenum WIDTH = static_cast<GLenum>(0x801D); const GLenum HEIGHT = static_cast<GLenum>(0x801E); const GLenum EVENT_MASK = static_cast<GLenum>(0x801F); const GLenum DAMAGED = static_cast<GLenum>(0x8020); const GLenum SAVED = static_cast<GLenum>(0x8021); const GLenum WINDOW = static_cast<GLenum>(0x8022); const GLenum PBUFFER = static_cast<GLenum>(0x8023); const GLenum PBUFFER_HEIGHT = static_cast<GLenum>(0x8040); const GLenum PBUFFER_WIDTH = static_cast<GLenum>(0x8041); typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements); typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value); typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config); typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list); typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win); typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list); typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap); typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list); typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf); typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void); typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void); typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value); typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask); typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask); extern VTK_RENDERING_EXPORT PFNGLXGETFBCONFIGSPROC GetFBConfigs; extern VTK_RENDERING_EXPORT PFNGLXCHOOSEFBCONFIGPROC ChooseFBConfig; extern VTK_RENDERING_EXPORT PFNGLXGETFBCONFIGATTRIBPROC GetFBConfigAttrib; extern VTK_RENDERING_EXPORT PFNGLXGETVISUALFROMFBCONFIGPROC GetVisualFromFBConfig; extern VTK_RENDERING_EXPORT PFNGLXCREATEWINDOWPROC CreateWindow; extern VTK_RENDERING_EXPORT PFNGLXDESTROYWINDOWPROC DestroyWindow; extern VTK_RENDERING_EXPORT PFNGLXCREATEPIXMAPPROC CreatePixmap; extern VTK_RENDERING_EXPORT PFNGLXDESTROYPIXMAPPROC DestroyPixmap; extern VTK_RENDERING_EXPORT PFNGLXCREATEPBUFFERPROC CreatePbuffer; extern VTK_RENDERING_EXPORT PFNGLXDESTROYPBUFFERPROC DestroyPbuffer; extern VTK_RENDERING_EXPORT PFNGLXQUERYDRAWABLEPROC QueryDrawable; extern VTK_RENDERING_EXPORT PFNGLXCREATENEWCONTEXTPROC CreateNewContext; extern VTK_RENDERING_EXPORT PFNGLXMAKECONTEXTCURRENTPROC MakeContextCurrent; extern VTK_RENDERING_EXPORT PFNGLXGETCURRENTREADDRAWABLEPROC GetCurrentReadDrawable; extern VTK_RENDERING_EXPORT PFNGLXGETCURRENTDISPLAYPROC GetCurrentDisplay; extern VTK_RENDERING_EXPORT PFNGLXQUERYCONTEXTPROC QueryContext; extern VTK_RENDERING_EXPORT PFNGLXSELECTEVENTPROC SelectEvent; extern VTK_RENDERING_EXPORT PFNGLXGETSELECTEDEVENTPROC GetSelectedEvent; //Definitions for GLX_VERSION_1_4 const GLenum SAMPLE_BUFFERS = static_cast<GLenum>(100000); const GLenum SAMPLES = static_cast<GLenum>(100001); typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName); extern VTK_RENDERING_EXPORT PFNGLXGETPROCADDRESSPROC GetProcAddress; //Definitions for GLX_ARB_multisample const GLenum SAMPLE_BUFFERS_ARB = static_cast<GLenum>(100000); const GLenum SAMPLES_ARB = static_cast<GLenum>(100001); //Definitions for GLX_ARB_fbconfig_float const GLenum RGBA_FLOAT_TYPE_ARB = static_cast<GLenum>(0x20B9); const GLenum RGBA_FLOAT_BIT_ARB = static_cast<GLenum>(0x00000004); //Definitions for GLX_ARB_create_context const GLenum CONTEXT_DEBUG_BIT_ARB = static_cast<GLenum>(0x00000001); const GLenum CONTEXT_FORWARD_COMPATIBLE_BIT_ARB = static_cast<GLenum>(0x00000002); const GLenum CONTEXT_MAJOR_VERSION_ARB = static_cast<GLenum>(0x2091); const GLenum CONTEXT_MINOR_VERSION_ARB = static_cast<GLenum>(0x2092); const GLenum CONTEXT_FLAGS_ARB = static_cast<GLenum>(0x2094); typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list); extern VTK_RENDERING_EXPORT PFNGLXCREATECONTEXTATTRIBSARBPROC CreateContextAttribsARB; //Definitions for GLX_ARB_create_context_profile const GLenum CONTEXT_CORE_PROFILE_BIT_ARB = static_cast<GLenum>(0x00000001); const GLenum CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB = static_cast<GLenum>(0x00000002); const GLenum CONTEXT_PROFILE_MASK_ARB = static_cast<GLenum>(0x9126); //Definitions for GLX_SGIS_multisample const GLenum SAMPLE_BUFFERS_SGIS = static_cast<GLenum>(100000); const GLenum SAMPLES_SGIS = static_cast<GLenum>(100001); //Definitions for GLX_EXT_visual_info const GLenum X_VISUAL_TYPE_EXT = static_cast<GLenum>(0x22); const GLenum TRANSPARENT_TYPE_EXT = static_cast<GLenum>(0x23); const GLenum TRANSPARENT_INDEX_VALUE_EXT = static_cast<GLenum>(0x24); const GLenum TRANSPARENT_RED_VALUE_EXT = static_cast<GLenum>(0x25); const GLenum TRANSPARENT_GREEN_VALUE_EXT = static_cast<GLenum>(0x26); const GLenum TRANSPARENT_BLUE_VALUE_EXT = static_cast<GLenum>(0x27); const GLenum TRANSPARENT_ALPHA_VALUE_EXT = static_cast<GLenum>(0x28); const GLenum NONE_EXT = static_cast<GLenum>(0x8000); const GLenum TRUE_COLOR_EXT = static_cast<GLenum>(0x8002); const GLenum DIRECT_COLOR_EXT = static_cast<GLenum>(0x8003); const GLenum PSEUDO_COLOR_EXT = static_cast<GLenum>(0x8004); const GLenum STATIC_COLOR_EXT = static_cast<GLenum>(0x8005); const GLenum GRAY_SCALE_EXT = static_cast<GLenum>(0x8006); const GLenum STATIC_GRAY_EXT = static_cast<GLenum>(0x8007); const GLenum TRANSPARENT_RGB_EXT = static_cast<GLenum>(0x8008); const GLenum TRANSPARENT_INDEX_EXT = static_cast<GLenum>(0x8009); //Definitions for GLX_SGI_swap_control typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval); extern VTK_RENDERING_EXPORT PFNGLXSWAPINTERVALSGIPROC SwapIntervalSGI; //Definitions for GLX_SGI_video_sync typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count); typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count); extern VTK_RENDERING_EXPORT PFNGLXGETVIDEOSYNCSGIPROC GetVideoSyncSGI; extern VTK_RENDERING_EXPORT PFNGLXWAITVIDEOSYNCSGIPROC WaitVideoSyncSGI; //Definitions for GLX_SGI_make_current_read typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void); extern VTK_RENDERING_EXPORT PFNGLXMAKECURRENTREADSGIPROC MakeCurrentReadSGI; extern VTK_RENDERING_EXPORT PFNGLXGETCURRENTREADDRAWABLESGIPROC GetCurrentReadDrawableSGI; //Definitions for GLX_EXT_visual_rating const GLenum VISUAL_CAVEAT_EXT = static_cast<GLenum>(0x20); const GLenum SLOW_VISUAL_EXT = static_cast<GLenum>(0x8001); const GLenum NON_CONFORMANT_VISUAL_EXT = static_cast<GLenum>(0x800D); //Definitions for GLX_EXT_import_context const GLenum SHARE_CONTEXT_EXT = static_cast<GLenum>(0x800A); const GLenum VISUAL_ID_EXT = static_cast<GLenum>(0x800B); const GLenum SCREEN_EXT = static_cast<GLenum>(0x800C); typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void); typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value); typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context); typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID); typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context); extern VTK_RENDERING_EXPORT PFNGLXGETCURRENTDISPLAYEXTPROC GetCurrentDisplayEXT; extern VTK_RENDERING_EXPORT PFNGLXQUERYCONTEXTINFOEXTPROC QueryContextInfoEXT; extern VTK_RENDERING_EXPORT PFNGLXGETCONTEXTIDEXTPROC GetContextIDEXT; extern VTK_RENDERING_EXPORT PFNGLXIMPORTCONTEXTEXTPROC ImportContextEXT; extern VTK_RENDERING_EXPORT PFNGLXFREECONTEXTEXTPROC FreeContextEXT; //Definitions for GLX_SGIX_fbconfig const GLenum WINDOW_BIT_SGIX = static_cast<GLenum>(0x00000001); const GLenum PIXMAP_BIT_SGIX = static_cast<GLenum>(0x00000002); const GLenum RGBA_BIT_SGIX = static_cast<GLenum>(0x00000001); const GLenum COLOR_INDEX_BIT_SGIX = static_cast<GLenum>(0x00000002); const GLenum DRAWABLE_TYPE_SGIX = static_cast<GLenum>(0x8010); const GLenum RENDER_TYPE_SGIX = static_cast<GLenum>(0x8011); const GLenum X_RENDERABLE_SGIX = static_cast<GLenum>(0x8012); const GLenum FBCONFIG_ID_SGIX = static_cast<GLenum>(0x8013); const GLenum RGBA_TYPE_SGIX = static_cast<GLenum>(0x8014); const GLenum COLOR_INDEX_TYPE_SGIX = static_cast<GLenum>(0x8015); typedef XID GLXFBConfigIDSGIX; typedef struct __GLXFBConfigRec *GLXFBConfigSGIX; typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value); typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements); typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap); typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct); typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config); typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis); extern VTK_RENDERING_EXPORT PFNGLXGETFBCONFIGATTRIBSGIXPROC GetFBConfigAttribSGIX; extern VTK_RENDERING_EXPORT PFNGLXCHOOSEFBCONFIGSGIXPROC ChooseFBConfigSGIX; extern VTK_RENDERING_EXPORT PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC CreateGLXPixmapWithConfigSGIX; extern VTK_RENDERING_EXPORT PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC CreateContextWithConfigSGIX; extern VTK_RENDERING_EXPORT PFNGLXGETVISUALFROMFBCONFIGSGIXPROC GetVisualFromFBConfigSGIX; extern VTK_RENDERING_EXPORT PFNGLXGETFBCONFIGFROMVISUALSGIXPROC GetFBConfigFromVisualSGIX; //Definitions for GLX_SGIX_pbuffer const GLenum PBUFFER_BIT_SGIX = static_cast<GLenum>(0x00000004); const GLenum BUFFER_CLOBBER_MASK_SGIX = static_cast<GLenum>(0x08000000); const GLenum FRONT_LEFT_BUFFER_BIT_SGIX = static_cast<GLenum>(0x00000001); const GLenum FRONT_RIGHT_BUFFER_BIT_SGIX = static_cast<GLenum>(0x00000002); const GLenum BACK_LEFT_BUFFER_BIT_SGIX = static_cast<GLenum>(0x00000004); const GLenum BACK_RIGHT_BUFFER_BIT_SGIX = static_cast<GLenum>(0x00000008); const GLenum AUX_BUFFERS_BIT_SGIX = static_cast<GLenum>(0x00000010); const GLenum DEPTH_BUFFER_BIT_SGIX = static_cast<GLenum>(0x00000020); const GLenum STENCIL_BUFFER_BIT_SGIX = static_cast<GLenum>(0x00000040); const GLenum ACCUM_BUFFER_BIT_SGIX = static_cast<GLenum>(0x00000080); const GLenum SAMPLE_BUFFERS_BIT_SGIX = static_cast<GLenum>(0x00000100); const GLenum MAX_PBUFFER_WIDTH_SGIX = static_cast<GLenum>(0x8016); const GLenum MAX_PBUFFER_HEIGHT_SGIX = static_cast<GLenum>(0x8017); const GLenum MAX_PBUFFER_PIXELS_SGIX = static_cast<GLenum>(0x8018); const GLenum OPTIMAL_PBUFFER_WIDTH_SGIX = static_cast<GLenum>(0x8019); const GLenum OPTIMAL_PBUFFER_HEIGHT_SGIX = static_cast<GLenum>(0x801A); const GLenum PRESERVED_CONTENTS_SGIX = static_cast<GLenum>(0x801B); const GLenum LARGEST_PBUFFER_SGIX = static_cast<GLenum>(0x801C); const GLenum WIDTH_SGIX = static_cast<GLenum>(0x801D); const GLenum HEIGHT_SGIX = static_cast<GLenum>(0x801E); const GLenum EVENT_MASK_SGIX = static_cast<GLenum>(0x801F); const GLenum DAMAGED_SGIX = static_cast<GLenum>(0x8020); const GLenum SAVED_SGIX = static_cast<GLenum>(0x8021); const GLenum WINDOW_SGIX = static_cast<GLenum>(0x8022); const GLenum PBUFFER_SGIX = static_cast<GLenum>(0x8023); typedef XID GLXPbufferSGIX; typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list); typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf); typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value); typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask); typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask); extern VTK_RENDERING_EXPORT PFNGLXCREATEGLXPBUFFERSGIXPROC CreateGLXPbufferSGIX; extern VTK_RENDERING_EXPORT PFNGLXDESTROYGLXPBUFFERSGIXPROC DestroyGLXPbufferSGIX; extern VTK_RENDERING_EXPORT PFNGLXQUERYGLXPBUFFERSGIXPROC QueryGLXPbufferSGIX; extern VTK_RENDERING_EXPORT PFNGLXSELECTEVENTSGIXPROC SelectEventSGIX; extern VTK_RENDERING_EXPORT PFNGLXGETSELECTEDEVENTSGIXPROC GetSelectedEventSGIX; //Definitions for GLX_SGI_cushion typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion); extern VTK_RENDERING_EXPORT PFNGLXCUSHIONSGIPROC CushionSGI; //Definitions for GLX_SGIX_video_resize const GLenum SYNC_FRAME_SGIX = static_cast<GLenum>(0x00000000); const GLenum SYNC_SWAP_SGIX = static_cast<GLenum>(0x00000001); typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window); typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h); typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh); typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h); typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype); extern VTK_RENDERING_EXPORT PFNGLXBINDCHANNELTOWINDOWSGIXPROC BindChannelToWindowSGIX; extern VTK_RENDERING_EXPORT PFNGLXCHANNELRECTSGIXPROC ChannelRectSGIX; extern VTK_RENDERING_EXPORT PFNGLXQUERYCHANNELRECTSGIXPROC QueryChannelRectSGIX; extern VTK_RENDERING_EXPORT PFNGLXQUERYCHANNELDELTASSGIXPROC QueryChannelDeltasSGIX; extern VTK_RENDERING_EXPORT PFNGLXCHANNELRECTSYNCSGIXPROC ChannelRectSyncSGIX; //Definitions for GLX_SGIX_swap_group typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member); extern VTK_RENDERING_EXPORT PFNGLXJOINSWAPGROUPSGIXPROC JoinSwapGroupSGIX; //Definitions for GLX_SGIX_swap_barrier typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier); typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max); extern VTK_RENDERING_EXPORT PFNGLXBINDSWAPBARRIERSGIXPROC BindSwapBarrierSGIX; extern VTK_RENDERING_EXPORT PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC QueryMaxSwapBarriersSGIX; //Definitions for GLX_SGIS_blended_overlay const GLenum BLENDED_RGBA_SGIS = static_cast<GLenum>(0x8025); //Definitions for GLX_SGIS_shared_multisample const GLenum MULTISAMPLE_SUB_RECT_WIDTH_SGIS = static_cast<GLenum>(0x8026); const GLenum MULTISAMPLE_SUB_RECT_HEIGHT_SGIS = static_cast<GLenum>(0x8027); //Definitions for GLX_SUN_get_transparent_index typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex); extern VTK_RENDERING_EXPORT PFNGLXGETTRANSPARENTINDEXSUNPROC GetTransparentIndexSUN; //Definitions for GLX_3DFX_multisample const GLenum SAMPLE_BUFFERS_3DFX = static_cast<GLenum>(0x8050); const GLenum SAMPLES_3DFX = static_cast<GLenum>(0x8051); //Definitions for GLX_MESA_copy_sub_buffer typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height); extern VTK_RENDERING_EXPORT PFNGLXCOPYSUBBUFFERMESAPROC CopySubBufferMESA; //Definitions for GLX_MESA_pixmap_colormap typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap); extern VTK_RENDERING_EXPORT PFNGLXCREATEGLXPIXMAPMESAPROC CreateGLXPixmapMESA; //Definitions for GLX_MESA_release_buffers typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable); extern VTK_RENDERING_EXPORT PFNGLXRELEASEBUFFERSMESAPROC ReleaseBuffersMESA; //Definitions for GLX_MESA_set_3dfx_mode const GLenum _3DFX_WINDOW_MODE_MESA = static_cast<GLenum>(0x1); const GLenum _3DFX_FULLSCREEN_MODE_MESA = static_cast<GLenum>(0x2); typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode); extern VTK_RENDERING_EXPORT PFNGLXSET3DFXMODEMESAPROC Set3DfxModeMESA; //Definitions for GLX_SGIX_visual_select_group const GLenum VISUAL_SELECT_GROUP_SGIX = static_cast<GLenum>(0x8028); //Definitions for GLX_OML_swap_method const GLenum SWAP_METHOD_OML = static_cast<GLenum>(0x8060); const GLenum SWAP_EXCHANGE_OML = static_cast<GLenum>(0x8061); const GLenum SWAP_COPY_OML = static_cast<GLenum>(0x8062); const GLenum SWAP_UNDEFINED_OML = static_cast<GLenum>(0x8063); //Definitions for GLX_OML_sync_control typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc); typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator); typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder); typedef Bool ( * PFNGLXWAITFORMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc); typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc); extern VTK_RENDERING_EXPORT PFNGLXGETSYNCVALUESOMLPROC GetSyncValuesOML; extern VTK_RENDERING_EXPORT PFNGLXGETMSCRATEOMLPROC GetMscRateOML; extern VTK_RENDERING_EXPORT PFNGLXSWAPBUFFERSMSCOMLPROC SwapBuffersMscOML; extern VTK_RENDERING_EXPORT PFNGLXWAITFORMSCOMLPROC WaitForMscOML; extern VTK_RENDERING_EXPORT PFNGLXWAITFORSBCOMLPROC WaitForSbcOML; //Definitions for GLX_NV_float_buffer const GLenum FLOAT_COMPONENTS_NV = static_cast<GLenum>(0x20B0); //Definitions for GLX_MESA_agp_offset typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer); extern VTK_RENDERING_EXPORT PFNGLXGETAGPOFFSETMESAPROC GetAGPOffsetMESA; //Definitions for GLX_EXT_fbconfig_packed_float const GLenum RGBA_UNSIGNED_FLOAT_TYPE_EXT = static_cast<GLenum>(0x20B1); const GLenum RGBA_UNSIGNED_FLOAT_BIT_EXT = static_cast<GLenum>(0x00000008); //Definitions for GLX_EXT_framebuffer_sRGB const GLenum FRAMEBUFFER_SRGB_CAPABLE_EXT = static_cast<GLenum>(0x20B2); //Definitions for GLX_EXT_texture_from_pixmap const GLenum TEXTURE_1D_BIT_EXT = static_cast<GLenum>(0x00000001); const GLenum TEXTURE_2D_BIT_EXT = static_cast<GLenum>(0x00000002); const GLenum TEXTURE_RECTANGLE_BIT_EXT = static_cast<GLenum>(0x00000004); const GLenum BIND_TO_TEXTURE_RGB_EXT = static_cast<GLenum>(0x20D0); const GLenum BIND_TO_TEXTURE_RGBA_EXT = static_cast<GLenum>(0x20D1); const GLenum BIND_TO_MIPMAP_TEXTURE_EXT = static_cast<GLenum>(0x20D2); const GLenum BIND_TO_TEXTURE_TARGETS_EXT = static_cast<GLenum>(0x20D3); const GLenum Y_INVERTED_EXT = static_cast<GLenum>(0x20D4); const GLenum TEXTURE_FORMAT_EXT = static_cast<GLenum>(0x20D5); const GLenum TEXTURE_TARGET_EXT = static_cast<GLenum>(0x20D6); const GLenum MIPMAP_TEXTURE_EXT = static_cast<GLenum>(0x20D7); const GLenum TEXTURE_FORMAT_NONE_EXT = static_cast<GLenum>(0x20D8); const GLenum TEXTURE_FORMAT_RGB_EXT = static_cast<GLenum>(0x20D9); const GLenum TEXTURE_FORMAT_RGBA_EXT = static_cast<GLenum>(0x20DA); const GLenum TEXTURE_1D_EXT = static_cast<GLenum>(0x20DB); const GLenum TEXTURE_2D_EXT = static_cast<GLenum>(0x20DC); const GLenum TEXTURE_RECTANGLE_EXT = static_cast<GLenum>(0x20DD); const GLenum FRONT_LEFT_EXT = static_cast<GLenum>(0x20DE); const GLenum FRONT_RIGHT_EXT = static_cast<GLenum>(0x20DF); const GLenum BACK_LEFT_EXT = static_cast<GLenum>(0x20E0); const GLenum BACK_RIGHT_EXT = static_cast<GLenum>(0x20E1); const GLenum FRONT_EXT = static_cast<GLenum>(0x20DE); const GLenum BACK_EXT = static_cast<GLenum>(0x20E0); const GLenum AUX0_EXT = static_cast<GLenum>(0x20E2); const GLenum AUX1_EXT = static_cast<GLenum>(0x20E3); const GLenum AUX2_EXT = static_cast<GLenum>(0x20E4); const GLenum AUX3_EXT = static_cast<GLenum>(0x20E5); const GLenum AUX4_EXT = static_cast<GLenum>(0x20E6); const GLenum AUX5_EXT = static_cast<GLenum>(0x20E7); const GLenum AUX6_EXT = static_cast<GLenum>(0x20E8); const GLenum AUX7_EXT = static_cast<GLenum>(0x20E9); const GLenum AUX8_EXT = static_cast<GLenum>(0x20EA); const GLenum AUX9_EXT = static_cast<GLenum>(0x20EB); typedef void ( * PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list); typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer); extern VTK_RENDERING_EXPORT PFNGLXBINDTEXIMAGEEXTPROC BindTexImageEXT; extern VTK_RENDERING_EXPORT PFNGLXRELEASETEXIMAGEEXTPROC ReleaseTexImageEXT; //Definitions for GLX_NV_present_video const GLenum NUM_VIDEO_SLOTS_NV = static_cast<GLenum>(0x20F0); typedef unsigned int * ( * PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements); typedef int ( * PFNGLXBINDVIDEODEVICENVPROC) (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list); extern VTK_RENDERING_EXPORT PFNGLXENUMERATEVIDEODEVICESNVPROC EnumerateVideoDevicesNV; extern VTK_RENDERING_EXPORT PFNGLXBINDVIDEODEVICENVPROC BindVideoDeviceNV; //Definitions for GLX_NV_video_out const GLenum VIDEO_OUT_COLOR_NV = static_cast<GLenum>(0x20C3); const GLenum VIDEO_OUT_ALPHA_NV = static_cast<GLenum>(0x20C4); const GLenum VIDEO_OUT_DEPTH_NV = static_cast<GLenum>(0x20C5); const GLenum VIDEO_OUT_COLOR_AND_ALPHA_NV = static_cast<GLenum>(0x20C6); const GLenum VIDEO_OUT_COLOR_AND_DEPTH_NV = static_cast<GLenum>(0x20C7); const GLenum VIDEO_OUT_FRAME_NV = static_cast<GLenum>(0x20C8); const GLenum VIDEO_OUT_FIELD_1_NV = static_cast<GLenum>(0x20C9); const GLenum VIDEO_OUT_FIELD_2_NV = static_cast<GLenum>(0x20CA); const GLenum VIDEO_OUT_STACKED_FIELDS_1_2_NV = static_cast<GLenum>(0x20CB); const GLenum VIDEO_OUT_STACKED_FIELDS_2_1_NV = static_cast<GLenum>(0x20CC); //Definitions for GLX_NV_swap_group typedef Bool ( * PFNGLXJOINSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint group); typedef Bool ( * PFNGLXBINDSWAPBARRIERNVPROC) (Display *dpy, GLuint group, GLuint barrier); typedef Bool ( * PFNGLXQUERYSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier); typedef Bool ( * PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers); typedef Bool ( * PFNGLXQUERYFRAMECOUNTNVPROC) (Display *dpy, int screen, GLuint *count); typedef Bool ( * PFNGLXRESETFRAMECOUNTNVPROC) (Display *dpy, int screen); extern VTK_RENDERING_EXPORT PFNGLXJOINSWAPGROUPNVPROC JoinSwapGroupNV; extern VTK_RENDERING_EXPORT PFNGLXBINDSWAPBARRIERNVPROC BindSwapBarrierNV; extern VTK_RENDERING_EXPORT PFNGLXQUERYSWAPGROUPNVPROC QuerySwapGroupNV; extern VTK_RENDERING_EXPORT PFNGLXQUERYMAXSWAPGROUPSNVPROC QueryMaxSwapGroupsNV; extern VTK_RENDERING_EXPORT PFNGLXQUERYFRAMECOUNTNVPROC QueryFrameCountNV; extern VTK_RENDERING_EXPORT PFNGLXRESETFRAMECOUNTNVPROC ResetFrameCountNV; //Definitions for GLX_NV_video_capture const GLenum DEVICE_ID_NV = static_cast<GLenum>(0x20CD); const GLenum UNIQUE_ID_NV = static_cast<GLenum>(0x20CE); const GLenum NUM_VIDEO_CAPTURE_SLOTS_NV = static_cast<GLenum>(0x20CF); typedef XID GLXVideoCaptureDeviceNV; typedef int ( * PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device); typedef GLXVideoCaptureDeviceNV * ( * PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display *dpy, int screen, int *nelements); typedef void ( * PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device); typedef int ( * PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value); typedef void ( * PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device); extern VTK_RENDERING_EXPORT PFNGLXBINDVIDEOCAPTUREDEVICENVPROC BindVideoCaptureDeviceNV; extern VTK_RENDERING_EXPORT PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC EnumerateVideoCaptureDevicesNV; extern VTK_RENDERING_EXPORT PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC LockVideoCaptureDeviceNV; extern VTK_RENDERING_EXPORT PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC QueryVideoCaptureDeviceNV; extern VTK_RENDERING_EXPORT PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC ReleaseVideoCaptureDeviceNV; //Definitions for GLX_EXT_swap_control const GLenum SWAP_INTERVAL_EXT = static_cast<GLenum>(0x20F1); const GLenum MAX_SWAP_INTERVAL_EXT = static_cast<GLenum>(0x20F2); typedef int ( * PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval); extern VTK_RENDERING_EXPORT PFNGLXSWAPINTERVALEXTPROC SwapIntervalEXT; //Definitions for GLX_NV_copy_image typedef void ( * PFNGLXCOPYIMAGESUBDATANVPROC) (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); extern VTK_RENDERING_EXPORT PFNGLXCOPYIMAGESUBDATANVPROC CopyImageSubDataNV; //Definitions for GLX_INTEL_swap_event const GLenum BUFFER_SWAP_COMPLETE_INTEL_MASK = static_cast<GLenum>(0x04000000); const GLenum EXCHANGE_COMPLETE_INTEL = static_cast<GLenum>(0x8180); const GLenum COPY_COMPLETE_INTEL = static_cast<GLenum>(0x8181); const GLenum FLIP_COMPLETE_INTEL = static_cast<GLenum>(0x8182); //Definitions for GLX_NV_video_output typedef unsigned int GLXVideoDeviceNV; typedef int ( * PFNGLXGETVIDEODEVICENVPROC) (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice); typedef int ( * PFNGLXRELEASEVIDEODEVICENVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice); typedef int ( * PFNGLXBINDVIDEOIMAGENVPROC) (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer); typedef int ( * PFNGLXRELEASEVIDEOIMAGENVPROC) (Display *dpy, GLXPbuffer pbuf); typedef int ( * PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock); typedef int ( * PFNGLXGETVIDEOINFONVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); extern VTK_RENDERING_EXPORT PFNGLXGETVIDEODEVICENVPROC GetVideoDeviceNV; extern VTK_RENDERING_EXPORT PFNGLXRELEASEVIDEODEVICENVPROC ReleaseVideoDeviceNV; extern VTK_RENDERING_EXPORT PFNGLXBINDVIDEOIMAGENVPROC BindVideoImageNV; extern VTK_RENDERING_EXPORT PFNGLXRELEASEVIDEOIMAGENVPROC ReleaseVideoImageNV; extern VTK_RENDERING_EXPORT PFNGLXSENDPBUFFERTOVIDEONVPROC SendPbufferToVideoNV; extern VTK_RENDERING_EXPORT PFNGLXGETVIDEOINFONVPROC GetVideoInfoNV; } #endif #ifdef WIN32 namespace vtkwgl { //Definitions for WGL_ARB_buffer_region const GLenum FRONT_COLOR_BUFFER_BIT_ARB = static_cast<GLenum>(0x00000001); const GLenum BACK_COLOR_BUFFER_BIT_ARB = static_cast<GLenum>(0x00000002); const GLenum DEPTH_BUFFER_BIT_ARB = static_cast<GLenum>(0x00000004); const GLenum STENCIL_BUFFER_BIT_ARB = static_cast<GLenum>(0x00000008); typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType); typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion); typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height); typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc); extern VTK_RENDERING_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC CreateBufferRegionARB; extern VTK_RENDERING_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC DeleteBufferRegionARB; extern VTK_RENDERING_EXPORT PFNWGLSAVEBUFFERREGIONARBPROC SaveBufferRegionARB; extern VTK_RENDERING_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC RestoreBufferRegionARB; //Definitions for WGL_ARB_multisample const GLenum SAMPLE_BUFFERS_ARB = static_cast<GLenum>(0x2041); const GLenum SAMPLES_ARB = static_cast<GLenum>(0x2042); //Definitions for WGL_ARB_extensions_string typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc); extern VTK_RENDERING_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC GetExtensionsStringARB; //Definitions for WGL_ARB_pixel_format const GLenum NUMBER_PIXEL_FORMATS_ARB = static_cast<GLenum>(0x2000); const GLenum DRAW_TO_WINDOW_ARB = static_cast<GLenum>(0x2001); const GLenum DRAW_TO_BITMAP_ARB = static_cast<GLenum>(0x2002); const GLenum ACCELERATION_ARB = static_cast<GLenum>(0x2003); const GLenum NEED_PALETTE_ARB = static_cast<GLenum>(0x2004); const GLenum NEED_SYSTEM_PALETTE_ARB = static_cast<GLenum>(0x2005); const GLenum SWAP_LAYER_BUFFERS_ARB = static_cast<GLenum>(0x2006); const GLenum SWAP_METHOD_ARB = static_cast<GLenum>(0x2007); const GLenum NUMBER_OVERLAYS_ARB = static_cast<GLenum>(0x2008); const GLenum NUMBER_UNDERLAYS_ARB = static_cast<GLenum>(0x2009); const GLenum TRANSPARENT_ARB = static_cast<GLenum>(0x200A); const GLenum TRANSPARENT_RED_VALUE_ARB = static_cast<GLenum>(0x2037); const GLenum TRANSPARENT_GREEN_VALUE_ARB = static_cast<GLenum>(0x2038); const GLenum TRANSPARENT_BLUE_VALUE_ARB = static_cast<GLenum>(0x2039); const GLenum TRANSPARENT_ALPHA_VALUE_ARB = static_cast<GLenum>(0x203A); const GLenum TRANSPARENT_INDEX_VALUE_ARB = static_cast<GLenum>(0x203B); const GLenum SHARE_DEPTH_ARB = static_cast<GLenum>(0x200C); const GLenum SHARE_STENCIL_ARB = static_cast<GLenum>(0x200D); const GLenum SHARE_ACCUM_ARB = static_cast<GLenum>(0x200E); const GLenum SUPPORT_GDI_ARB = static_cast<GLenum>(0x200F); const GLenum SUPPORT_OPENGL_ARB = static_cast<GLenum>(0x2010); const GLenum DOUBLE_BUFFER_ARB = static_cast<GLenum>(0x2011); const GLenum STEREO_ARB = static_cast<GLenum>(0x2012); const GLenum PIXEL_TYPE_ARB = static_cast<GLenum>(0x2013); const GLenum COLOR_BITS_ARB = static_cast<GLenum>(0x2014); const GLenum RED_BITS_ARB = static_cast<GLenum>(0x2015); const GLenum RED_SHIFT_ARB = static_cast<GLenum>(0x2016); const GLenum GREEN_BITS_ARB = static_cast<GLenum>(0x2017); const GLenum GREEN_SHIFT_ARB = static_cast<GLenum>(0x2018); const GLenum BLUE_BITS_ARB = static_cast<GLenum>(0x2019); const GLenum BLUE_SHIFT_ARB = static_cast<GLenum>(0x201A); const GLenum ALPHA_BITS_ARB = static_cast<GLenum>(0x201B); const GLenum ALPHA_SHIFT_ARB = static_cast<GLenum>(0x201C); const GLenum ACCUM_BITS_ARB = static_cast<GLenum>(0x201D); const GLenum ACCUM_RED_BITS_ARB = static_cast<GLenum>(0x201E); const GLenum ACCUM_GREEN_BITS_ARB = static_cast<GLenum>(0x201F); const GLenum ACCUM_BLUE_BITS_ARB = static_cast<GLenum>(0x2020); const GLenum ACCUM_ALPHA_BITS_ARB = static_cast<GLenum>(0x2021); const GLenum DEPTH_BITS_ARB = static_cast<GLenum>(0x2022); const GLenum STENCIL_BITS_ARB = static_cast<GLenum>(0x2023); const GLenum AUX_BUFFERS_ARB = static_cast<GLenum>(0x2024); const GLenum NO_ACCELERATION_ARB = static_cast<GLenum>(0x2025); const GLenum GENERIC_ACCELERATION_ARB = static_cast<GLenum>(0x2026); const GLenum FULL_ACCELERATION_ARB = static_cast<GLenum>(0x2027); const GLenum SWAP_EXCHANGE_ARB = static_cast<GLenum>(0x2028); const GLenum SWAP_COPY_ARB = static_cast<GLenum>(0x2029); const GLenum SWAP_UNDEFINED_ARB = static_cast<GLenum>(0x202A); const GLenum TYPE_RGBA_ARB = static_cast<GLenum>(0x202B); const GLenum TYPE_COLORINDEX_ARB = static_cast<GLenum>(0x202C); typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues); typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues); typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); extern VTK_RENDERING_EXPORT PFNWGLGETPIXELFORMATATTRIBIVARBPROC GetPixelFormatAttribivARB; extern VTK_RENDERING_EXPORT PFNWGLGETPIXELFORMATATTRIBFVARBPROC GetPixelFormatAttribfvARB; extern VTK_RENDERING_EXPORT PFNWGLCHOOSEPIXELFORMATARBPROC ChoosePixelFormatARB; //Definitions for WGL_ARB_make_current_read typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void); extern VTK_RENDERING_EXPORT PFNWGLMAKECONTEXTCURRENTARBPROC MakeContextCurrentARB; extern VTK_RENDERING_EXPORT PFNWGLGETCURRENTREADDCARBPROC GetCurrentReadDCARB; //Definitions for WGL_ARB_pbuffer const GLenum DRAW_TO_PBUFFER_ARB = static_cast<GLenum>(0x202D); const GLenum MAX_PBUFFER_PIXELS_ARB = static_cast<GLenum>(0x202E); const GLenum MAX_PBUFFER_WIDTH_ARB = static_cast<GLenum>(0x202F); const GLenum MAX_PBUFFER_HEIGHT_ARB = static_cast<GLenum>(0x2030); const GLenum PBUFFER_LARGEST_ARB = static_cast<GLenum>(0x2033); const GLenum PBUFFER_WIDTH_ARB = static_cast<GLenum>(0x2034); const GLenum PBUFFER_HEIGHT_ARB = static_cast<GLenum>(0x2035); const GLenum PBUFFER_LOST_ARB = static_cast<GLenum>(0x2036); DECLARE_HANDLE(HPBUFFERARB); typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer); typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC); typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer); typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue); extern VTK_RENDERING_EXPORT PFNWGLCREATEPBUFFERARBPROC CreatePbufferARB; extern VTK_RENDERING_EXPORT PFNWGLGETPBUFFERDCARBPROC GetPbufferDCARB; extern VTK_RENDERING_EXPORT PFNWGLRELEASEPBUFFERDCARBPROC ReleasePbufferDCARB; extern VTK_RENDERING_EXPORT PFNWGLDESTROYPBUFFERARBPROC DestroyPbufferARB; extern VTK_RENDERING_EXPORT PFNWGLQUERYPBUFFERARBPROC QueryPbufferARB; //Definitions for WGL_ARB_render_texture const GLenum BIND_TO_TEXTURE_RGB_ARB = static_cast<GLenum>(0x2070); const GLenum BIND_TO_TEXTURE_RGBA_ARB = static_cast<GLenum>(0x2071); const GLenum TEXTURE_FORMAT_ARB = static_cast<GLenum>(0x2072); const GLenum TEXTURE_TARGET_ARB = static_cast<GLenum>(0x2073); const GLenum MIPMAP_TEXTURE_ARB = static_cast<GLenum>(0x2074); const GLenum TEXTURE_RGB_ARB = static_cast<GLenum>(0x2075); const GLenum TEXTURE_RGBA_ARB = static_cast<GLenum>(0x2076); const GLenum NO_TEXTURE_ARB = static_cast<GLenum>(0x2077); const GLenum TEXTURE_CUBE_MAP_ARB = static_cast<GLenum>(0x2078); const GLenum TEXTURE_1D_ARB = static_cast<GLenum>(0x2079); const GLenum TEXTURE_2D_ARB = static_cast<GLenum>(0x207A); const GLenum MIPMAP_LEVEL_ARB = static_cast<GLenum>(0x207B); const GLenum CUBE_MAP_FACE_ARB = static_cast<GLenum>(0x207C); const GLenum TEXTURE_CUBE_MAP_POSITIVE_X_ARB = static_cast<GLenum>(0x207D); const GLenum TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = static_cast<GLenum>(0x207E); const GLenum TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = static_cast<GLenum>(0x207F); const GLenum TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = static_cast<GLenum>(0x2080); const GLenum TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = static_cast<GLenum>(0x2081); const GLenum TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = static_cast<GLenum>(0x2082); const GLenum FRONT_LEFT_ARB = static_cast<GLenum>(0x2083); const GLenum FRONT_RIGHT_ARB = static_cast<GLenum>(0x2084); const GLenum BACK_LEFT_ARB = static_cast<GLenum>(0x2085); const GLenum BACK_RIGHT_ARB = static_cast<GLenum>(0x2086); const GLenum AUX0_ARB = static_cast<GLenum>(0x2087); const GLenum AUX1_ARB = static_cast<GLenum>(0x2088); const GLenum AUX2_ARB = static_cast<GLenum>(0x2089); const GLenum AUX3_ARB = static_cast<GLenum>(0x208A); const GLenum AUX4_ARB = static_cast<GLenum>(0x208B); const GLenum AUX5_ARB = static_cast<GLenum>(0x208C); const GLenum AUX6_ARB = static_cast<GLenum>(0x208D); const GLenum AUX7_ARB = static_cast<GLenum>(0x208E); const GLenum AUX8_ARB = static_cast<GLenum>(0x208F); const GLenum AUX9_ARB = static_cast<GLenum>(0x2090); typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer); typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer); typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int *piAttribList); extern VTK_RENDERING_EXPORT PFNWGLBINDTEXIMAGEARBPROC BindTexImageARB; extern VTK_RENDERING_EXPORT PFNWGLRELEASETEXIMAGEARBPROC ReleaseTexImageARB; extern VTK_RENDERING_EXPORT PFNWGLSETPBUFFERATTRIBARBPROC SetPbufferAttribARB; //Definitions for WGL_ARB_pixel_format_float const GLenum TYPE_RGBA_FLOAT_ARB = static_cast<GLenum>(0x21A0); //Definitions for WGL_ARB_create_context const GLenum CONTEXT_DEBUG_BIT_ARB = static_cast<GLenum>(0x0001); const GLenum CONTEXT_FORWARD_COMPATIBLE_BIT_ARB = static_cast<GLenum>(0x0002); const GLenum CONTEXT_MAJOR_VERSION_ARB = static_cast<GLenum>(0x2091); const GLenum CONTEXT_MINOR_VERSION_ARB = static_cast<GLenum>(0x2092); const GLenum CONTEXT_LAYER_PLANE_ARB = static_cast<GLenum>(0x2093); const GLenum CONTEXT_FLAGS_ARB = static_cast<GLenum>(0x2094); typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int *attribList); extern VTK_RENDERING_EXPORT PFNWGLCREATECONTEXTATTRIBSARBPROC CreateContextAttribsARB; //Definitions for WGL_EXT_make_current_read typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void); extern VTK_RENDERING_EXPORT PFNWGLMAKECONTEXTCURRENTEXTPROC MakeContextCurrentEXT; extern VTK_RENDERING_EXPORT PFNWGLGETCURRENTREADDCEXTPROC GetCurrentReadDCEXT; //Definitions for WGL_EXT_pixel_format const GLenum NUMBER_PIXEL_FORMATS_EXT = static_cast<GLenum>(0x2000); const GLenum DRAW_TO_WINDOW_EXT = static_cast<GLenum>(0x2001); const GLenum DRAW_TO_BITMAP_EXT = static_cast<GLenum>(0x2002); const GLenum ACCELERATION_EXT = static_cast<GLenum>(0x2003); const GLenum NEED_PALETTE_EXT = static_cast<GLenum>(0x2004); const GLenum NEED_SYSTEM_PALETTE_EXT = static_cast<GLenum>(0x2005); const GLenum SWAP_LAYER_BUFFERS_EXT = static_cast<GLenum>(0x2006); const GLenum SWAP_METHOD_EXT = static_cast<GLenum>(0x2007); const GLenum NUMBER_OVERLAYS_EXT = static_cast<GLenum>(0x2008); const GLenum NUMBER_UNDERLAYS_EXT = static_cast<GLenum>(0x2009); const GLenum TRANSPARENT_EXT = static_cast<GLenum>(0x200A); const GLenum TRANSPARENT_VALUE_EXT = static_cast<GLenum>(0x200B); const GLenum SHARE_DEPTH_EXT = static_cast<GLenum>(0x200C); const GLenum SHARE_STENCIL_EXT = static_cast<GLenum>(0x200D); const GLenum SHARE_ACCUM_EXT = static_cast<GLenum>(0x200E); const GLenum SUPPORT_GDI_EXT = static_cast<GLenum>(0x200F); const GLenum SUPPORT_OPENGL_EXT = static_cast<GLenum>(0x2010); const GLenum DOUBLE_BUFFER_EXT = static_cast<GLenum>(0x2011); const GLenum STEREO_EXT = static_cast<GLenum>(0x2012); const GLenum PIXEL_TYPE_EXT = static_cast<GLenum>(0x2013); const GLenum COLOR_BITS_EXT = static_cast<GLenum>(0x2014); const GLenum RED_BITS_EXT = static_cast<GLenum>(0x2015); const GLenum RED_SHIFT_EXT = static_cast<GLenum>(0x2016); const GLenum GREEN_BITS_EXT = static_cast<GLenum>(0x2017); const GLenum GREEN_SHIFT_EXT = static_cast<GLenum>(0x2018); const GLenum BLUE_BITS_EXT = static_cast<GLenum>(0x2019); const GLenum BLUE_SHIFT_EXT = static_cast<GLenum>(0x201A); const GLenum ALPHA_BITS_EXT = static_cast<GLenum>(0x201B); const GLenum ALPHA_SHIFT_EXT = static_cast<GLenum>(0x201C); const GLenum ACCUM_BITS_EXT = static_cast<GLenum>(0x201D); const GLenum ACCUM_RED_BITS_EXT = static_cast<GLenum>(0x201E); const GLenum ACCUM_GREEN_BITS_EXT = static_cast<GLenum>(0x201F); const GLenum ACCUM_BLUE_BITS_EXT = static_cast<GLenum>(0x2020); const GLenum ACCUM_ALPHA_BITS_EXT = static_cast<GLenum>(0x2021); const GLenum DEPTH_BITS_EXT = static_cast<GLenum>(0x2022); const GLenum STENCIL_BITS_EXT = static_cast<GLenum>(0x2023); const GLenum AUX_BUFFERS_EXT = static_cast<GLenum>(0x2024); const GLenum NO_ACCELERATION_EXT = static_cast<GLenum>(0x2025); const GLenum GENERIC_ACCELERATION_EXT = static_cast<GLenum>(0x2026); const GLenum FULL_ACCELERATION_EXT = static_cast<GLenum>(0x2027); const GLenum SWAP_EXCHANGE_EXT = static_cast<GLenum>(0x2028); const GLenum SWAP_COPY_EXT = static_cast<GLenum>(0x2029); const GLenum SWAP_UNDEFINED_EXT = static_cast<GLenum>(0x202A); const GLenum TYPE_RGBA_EXT = static_cast<GLenum>(0x202B); const GLenum TYPE_COLORINDEX_EXT = static_cast<GLenum>(0x202C); typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues); typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues); typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); extern VTK_RENDERING_EXPORT PFNWGLGETPIXELFORMATATTRIBIVEXTPROC GetPixelFormatAttribivEXT; extern VTK_RENDERING_EXPORT PFNWGLGETPIXELFORMATATTRIBFVEXTPROC GetPixelFormatAttribfvEXT; extern VTK_RENDERING_EXPORT PFNWGLCHOOSEPIXELFORMATEXTPROC ChoosePixelFormatEXT; //Definitions for WGL_EXT_pbuffer const GLenum DRAW_TO_PBUFFER_EXT = static_cast<GLenum>(0x202D); const GLenum MAX_PBUFFER_PIXELS_EXT = static_cast<GLenum>(0x202E); const GLenum MAX_PBUFFER_WIDTH_EXT = static_cast<GLenum>(0x202F); const GLenum MAX_PBUFFER_HEIGHT_EXT = static_cast<GLenum>(0x2030); const GLenum OPTIMAL_PBUFFER_WIDTH_EXT = static_cast<GLenum>(0x2031); const GLenum OPTIMAL_PBUFFER_HEIGHT_EXT = static_cast<GLenum>(0x2032); const GLenum PBUFFER_LARGEST_EXT = static_cast<GLenum>(0x2033); const GLenum PBUFFER_WIDTH_EXT = static_cast<GLenum>(0x2034); const GLenum PBUFFER_HEIGHT_EXT = static_cast<GLenum>(0x2035); DECLARE_HANDLE(HPBUFFEREXT); typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer); typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC); typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer); typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue); extern VTK_RENDERING_EXPORT PFNWGLCREATEPBUFFEREXTPROC CreatePbufferEXT; extern VTK_RENDERING_EXPORT PFNWGLGETPBUFFERDCEXTPROC GetPbufferDCEXT; extern VTK_RENDERING_EXPORT PFNWGLRELEASEPBUFFERDCEXTPROC ReleasePbufferDCEXT; extern VTK_RENDERING_EXPORT PFNWGLDESTROYPBUFFEREXTPROC DestroyPbufferEXT; extern VTK_RENDERING_EXPORT PFNWGLQUERYPBUFFEREXTPROC QueryPbufferEXT; //Definitions for WGL_EXT_depth_float const GLenum DEPTH_FLOAT_EXT = static_cast<GLenum>(0x2040); //Definitions for WGL_3DFX_multisample const GLenum SAMPLE_BUFFERS_3DFX = static_cast<GLenum>(0x2060); const GLenum SAMPLES_3DFX = static_cast<GLenum>(0x2061); //Definitions for WGL_EXT_multisample const GLenum SAMPLE_BUFFERS_EXT = static_cast<GLenum>(0x2041); const GLenum SAMPLES_EXT = static_cast<GLenum>(0x2042); //Definitions for WGL_I3D_digital_video_control const GLenum DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D = static_cast<GLenum>(0x2050); const GLenum DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D = static_cast<GLenum>(0x2051); const GLenum DIGITAL_VIDEO_CURSOR_INCLUDED_I3D = static_cast<GLenum>(0x2052); const GLenum DIGITAL_VIDEO_GAMMA_CORRECTED_I3D = static_cast<GLenum>(0x2053); typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue); typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue); extern VTK_RENDERING_EXPORT PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC GetDigitalVideoParametersI3D; extern VTK_RENDERING_EXPORT PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC SetDigitalVideoParametersI3D; //Definitions for WGL_I3D_gamma const GLenum GAMMA_TABLE_SIZE_I3D = static_cast<GLenum>(0x204E); const GLenum GAMMA_EXCLUDE_DESKTOP_I3D = static_cast<GLenum>(0x204F); typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue); typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue); typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue); typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue); extern VTK_RENDERING_EXPORT PFNWGLGETGAMMATABLEPARAMETERSI3DPROC GetGammaTableParametersI3D; extern VTK_RENDERING_EXPORT PFNWGLSETGAMMATABLEPARAMETERSI3DPROC SetGammaTableParametersI3D; extern VTK_RENDERING_EXPORT PFNWGLGETGAMMATABLEI3DPROC GetGammaTableI3D; extern VTK_RENDERING_EXPORT PFNWGLSETGAMMATABLEI3DPROC SetGammaTableI3D; //Definitions for WGL_I3D_genlock const GLenum GENLOCK_SOURCE_MULTIVIEW_I3D = static_cast<GLenum>(0x2044); const GLenum GENLOCK_SOURCE_EXTENAL_SYNC_I3D = static_cast<GLenum>(0x2045); const GLenum GENLOCK_SOURCE_EXTENAL_FIELD_I3D = static_cast<GLenum>(0x2046); const GLenum GENLOCK_SOURCE_EXTENAL_TTL_I3D = static_cast<GLenum>(0x2047); const GLenum GENLOCK_SOURCE_DIGITAL_SYNC_I3D = static_cast<GLenum>(0x2048); const GLenum GENLOCK_SOURCE_DIGITAL_FIELD_I3D = static_cast<GLenum>(0x2049); const GLenum GENLOCK_SOURCE_EDGE_FALLING_I3D = static_cast<GLenum>(0x204A); const GLenum GENLOCK_SOURCE_EDGE_RISING_I3D = static_cast<GLenum>(0x204B); const GLenum GENLOCK_SOURCE_EDGE_BOTH_I3D = static_cast<GLenum>(0x204C); typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC); typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC); typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL *pFlag); typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource); typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT *uSource); typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge); typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT *uEdge); typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate); typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT *uRate); typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay); typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT *uDelay); typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay); extern VTK_RENDERING_EXPORT PFNWGLENABLEGENLOCKI3DPROC EnableGenlockI3D; extern VTK_RENDERING_EXPORT PFNWGLDISABLEGENLOCKI3DPROC DisableGenlockI3D; extern VTK_RENDERING_EXPORT PFNWGLISENABLEDGENLOCKI3DPROC IsEnabledGenlockI3D; extern VTK_RENDERING_EXPORT PFNWGLGENLOCKSOURCEI3DPROC GenlockSourceI3D; extern VTK_RENDERING_EXPORT PFNWGLGETGENLOCKSOURCEI3DPROC GetGenlockSourceI3D; extern VTK_RENDERING_EXPORT PFNWGLGENLOCKSOURCEEDGEI3DPROC GenlockSourceEdgeI3D; extern VTK_RENDERING_EXPORT PFNWGLGETGENLOCKSOURCEEDGEI3DPROC GetGenlockSourceEdgeI3D; extern VTK_RENDERING_EXPORT PFNWGLGENLOCKSAMPLERATEI3DPROC GenlockSampleRateI3D; extern VTK_RENDERING_EXPORT PFNWGLGETGENLOCKSAMPLERATEI3DPROC GetGenlockSampleRateI3D; extern VTK_RENDERING_EXPORT PFNWGLGENLOCKSOURCEDELAYI3DPROC GenlockSourceDelayI3D; extern VTK_RENDERING_EXPORT PFNWGLGETGENLOCKSOURCEDELAYI3DPROC GetGenlockSourceDelayI3D; extern VTK_RENDERING_EXPORT PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC QueryGenlockMaxSourceDelayI3D; //Definitions for WGL_I3D_image_buffer const GLenum IMAGE_BUFFER_MIN_ACCESS_I3D = static_cast<GLenum>(0x00000001); const GLenum IMAGE_BUFFER_LOCK_I3D = static_cast<GLenum>(0x00000002); typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags); typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress); typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count); typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const LPVOID *pAddress, UINT count); extern VTK_RENDERING_EXPORT PFNWGLCREATEIMAGEBUFFERI3DPROC CreateImageBufferI3D; extern VTK_RENDERING_EXPORT PFNWGLDESTROYIMAGEBUFFERI3DPROC DestroyImageBufferI3D; extern VTK_RENDERING_EXPORT PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC AssociateImageBufferEventsI3D; extern VTK_RENDERING_EXPORT PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC ReleaseImageBufferEventsI3D; //Definitions for WGL_I3D_swap_frame_lock typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (void); typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (void); typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL *pFlag); typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL *pFlag); extern VTK_RENDERING_EXPORT PFNWGLENABLEFRAMELOCKI3DPROC EnableFrameLockI3D; extern VTK_RENDERING_EXPORT PFNWGLDISABLEFRAMELOCKI3DPROC DisableFrameLockI3D; extern VTK_RENDERING_EXPORT PFNWGLISENABLEDFRAMELOCKI3DPROC IsEnabledFrameLockI3D; extern VTK_RENDERING_EXPORT PFNWGLQUERYFRAMELOCKMASTERI3DPROC QueryFrameLockMasterI3D; //Definitions for WGL_NV_render_depth_texture const GLenum BIND_TO_TEXTURE_DEPTH_NV = static_cast<GLenum>(0x20A3); const GLenum BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV = static_cast<GLenum>(0x20A4); const GLenum DEPTH_TEXTURE_FORMAT_NV = static_cast<GLenum>(0x20A5); const GLenum TEXTURE_DEPTH_COMPONENT_NV = static_cast<GLenum>(0x20A6); const GLenum DEPTH_COMPONENT_NV = static_cast<GLenum>(0x20A7); //Definitions for WGL_NV_render_texture_rectangle const GLenum BIND_TO_TEXTURE_RECTANGLE_RGB_NV = static_cast<GLenum>(0x20A0); const GLenum BIND_TO_TEXTURE_RECTANGLE_RGBA_NV = static_cast<GLenum>(0x20A1); const GLenum TEXTURE_RECTANGLE_NV = static_cast<GLenum>(0x20A2); //Definitions for WGL_ATI_pixel_format_float const GLenum TYPE_RGBA_FLOAT_ATI = static_cast<GLenum>(0x21A0); //Definitions for WGL_NV_float_buffer const GLenum FLOAT_COMPONENTS_NV = static_cast<GLenum>(0x20B0); const GLenum BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV = static_cast<GLenum>(0x20B1); const GLenum BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV = static_cast<GLenum>(0x20B2); const GLenum BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV = static_cast<GLenum>(0x20B3); const GLenum BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV = static_cast<GLenum>(0x20B4); const GLenum TEXTURE_FLOAT_R_NV = static_cast<GLenum>(0x20B5); const GLenum TEXTURE_FLOAT_RG_NV = static_cast<GLenum>(0x20B6); const GLenum TEXTURE_FLOAT_RGB_NV = static_cast<GLenum>(0x20B7); const GLenum TEXTURE_FLOAT_RGBA_NV = static_cast<GLenum>(0x20B8); //Definitions for WGL_3DL_stereo_control const GLenum STEREO_EMITTER_ENABLE_3DL = static_cast<GLenum>(0x2055); const GLenum STEREO_EMITTER_DISABLE_3DL = static_cast<GLenum>(0x2056); const GLenum STEREO_POLARITY_NORMAL_3DL = static_cast<GLenum>(0x2057); const GLenum STEREO_POLARITY_INVERT_3DL = static_cast<GLenum>(0x2058); //Definitions for WGL_EXT_pixel_format_packed_float const GLenum TYPE_RGBA_UNSIGNED_FLOAT_EXT = static_cast<GLenum>(0x20A8); //Definitions for WGL_EXT_framebuffer_sRGB const GLenum FRAMEBUFFER_SRGB_CAPABLE_EXT = static_cast<GLenum>(0x20A9); //Definitions for WGL_NV_present_video const GLenum NUM_VIDEO_SLOTS_NV = static_cast<GLenum>(0x20F0); DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV); //Definitions for WGL_NV_video_out const GLenum BIND_TO_VIDEO_RGB_NV = static_cast<GLenum>(0x20C0); const GLenum BIND_TO_VIDEO_RGBA_NV = static_cast<GLenum>(0x20C1); const GLenum BIND_TO_VIDEO_RGB_AND_DEPTH_NV = static_cast<GLenum>(0x20C2); const GLenum VIDEO_OUT_COLOR_NV = static_cast<GLenum>(0x20C3); const GLenum VIDEO_OUT_ALPHA_NV = static_cast<GLenum>(0x20C4); const GLenum VIDEO_OUT_DEPTH_NV = static_cast<GLenum>(0x20C5); const GLenum VIDEO_OUT_COLOR_AND_ALPHA_NV = static_cast<GLenum>(0x20C6); const GLenum VIDEO_OUT_COLOR_AND_DEPTH_NV = static_cast<GLenum>(0x20C7); const GLenum VIDEO_OUT_FRAME = static_cast<GLenum>(0x20C8); const GLenum VIDEO_OUT_FIELD_1 = static_cast<GLenum>(0x20C9); const GLenum VIDEO_OUT_FIELD_2 = static_cast<GLenum>(0x20CA); const GLenum VIDEO_OUT_STACKED_FIELDS_1_2 = static_cast<GLenum>(0x20CB); const GLenum VIDEO_OUT_STACKED_FIELDS_2_1 = static_cast<GLenum>(0x20CC); DECLARE_HANDLE(HPVIDEODEV); //Definitions for WGL_NV_swap_group //Definitions for WGL_EXT_display_color_table typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id); typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length); typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id); typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id); extern VTK_RENDERING_EXPORT PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC CreateDisplayColorTableEXT; extern VTK_RENDERING_EXPORT PFNWGLLOADDISPLAYCOLORTABLEEXTPROC LoadDisplayColorTableEXT; extern VTK_RENDERING_EXPORT PFNWGLBINDDISPLAYCOLORTABLEEXTPROC BindDisplayColorTableEXT; extern VTK_RENDERING_EXPORT PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC DestroyDisplayColorTableEXT; //Definitions for WGL_EXT_extensions_string typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void); extern VTK_RENDERING_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC GetExtensionsStringEXT; //Definitions for WGL_EXT_swap_control typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval); typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void); extern VTK_RENDERING_EXPORT PFNWGLSWAPINTERVALEXTPROC SwapIntervalEXT; extern VTK_RENDERING_EXPORT PFNWGLGETSWAPINTERVALEXTPROC GetSwapIntervalEXT; //Definitions for WGL_NV_vertex_array_range typedef void* (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority); typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer); extern VTK_RENDERING_EXPORT PFNWGLALLOCATEMEMORYNVPROC AllocateMemoryNV; extern VTK_RENDERING_EXPORT PFNWGLFREEMEMORYNVPROC FreeMemoryNV; //Definitions for WGL_OML_sync_control typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc); typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32 *numerator, INT32 *denominator); typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder); typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, int fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder); typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc); typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc); extern VTK_RENDERING_EXPORT PFNWGLGETSYNCVALUESOMLPROC GetSyncValuesOML; extern VTK_RENDERING_EXPORT PFNWGLGETMSCRATEOMLPROC GetMscRateOML; extern VTK_RENDERING_EXPORT PFNWGLSWAPBUFFERSMSCOMLPROC SwapBuffersMscOML; extern VTK_RENDERING_EXPORT PFNWGLSWAPLAYERBUFFERSMSCOMLPROC SwapLayerBuffersMscOML; extern VTK_RENDERING_EXPORT PFNWGLWAITFORMSCOMLPROC WaitForMscOML; extern VTK_RENDERING_EXPORT PFNWGLWAITFORSBCOMLPROC WaitForSbcOML; //Definitions for WGL_I3D_swap_frame_usage typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float *pUsage); typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void); typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void); typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage); extern VTK_RENDERING_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC GetFrameUsageI3D; extern VTK_RENDERING_EXPORT PFNWGLBEGINFRAMETRACKINGI3DPROC BeginFrameTrackingI3D; extern VTK_RENDERING_EXPORT PFNWGLENDFRAMETRACKINGI3DPROC EndFrameTrackingI3D; extern VTK_RENDERING_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC QueryFrameTrackingI3D; } #endif #ifdef VTKGL_APIENTRY_DEFINED #undef APIENTRY #endif #ifdef VTKGL_APIENTRYP_DEFINED #undef APIENTRYP #endif #endif //_vtkgl_h
[ "ganondorf@ganondorf-VirtualBox.(none)" ]
[ [ [ 1, 18834 ] ] ]
b5f0d908471f3f6ba7a74b7198f5e68eefc01a02
7acbb1c1941bd6edae0a4217eb5d3513929324c0
/GLibrary-CPP/sources/GFileInfos.cpp
a17d38f0604c79dee5acaf44fd2f02438b155de9
[]
no_license
hungconcon/geofreylibrary
a5bfc96e0602298b5a7b53d4afe7395a993498f1
3abf3e1c31a245a79fa26b4bcf2e6e86fa258e4d
refs/heads/master
2021-01-10T10:11:51.535513
2009-11-30T15:29:34
2009-11-30T15:29:34
46,771,895
1
1
null
null
null
null
UTF-8
C++
false
false
4,435
cpp
#include "GFileInfos.h" #include "GMessageBox.h" #include <iostream> GFileInfos::GFileInfos(void) { } GFileInfos::GFileInfos(const GString &f) { this->_file = f; #if defined (GWIN) if (!GetFileAttributesEx(this->_file.ToChar(), GetFileExInfoStandard, &this->_stat)) GWarning::Warning("GFileInfos", "GFileInfos(const GString &)", "Cannot get struct WIN32_FILE_ATTRIBUTE_DATA !"); #else if (lstat(this->_file.ToChar(), &this->_stat) == -1) GWarning::Warning("GFileInfos", "GFileInfos(const GString &)", "Cannot get struct stat !"); #endif } GFileInfos::GFileInfos(const GString &, const GString &) { } GString GFileInfos::FileName(void) const { #if defined (GWIN) return (this->_file); #else return (this->_file); #endif } bool GFileInfos::IsDir(const GString &s) { #if defined (GWIN) if ((GetFileAttributes(s.ToLPCSTR()) & FILE_ATTRIBUTE_DIRECTORY) == FILE_ATTRIBUTE_DIRECTORY) return (true); return (false); #else struct stat st; if (lstat(s.ToChar(), &st) == -1) GWarning::Warning("GFileInfos", "GFileInfos(const GString &)", "Cannot get struct stat !"); if ((st.st_mode & S_IFDIR) != 0) return (true); return (false); #endif } bool GFileInfos::IsDir(void) { #if defined (GWIN) if ((GetFileAttributes(this->_file.ToLPCSTR()) & FILE_ATTRIBUTE_DIRECTORY) == FILE_ATTRIBUTE_DIRECTORY) return (true); return (false); #else if ((this->_stat.st_mode & S_IFDIR) != 0) return (true); return (false); #endif } void GFileInfos::SetFile(const GString &f) { this->_file = f; #if defined (GWIN) if (!GetFileAttributesEx(this->_file.ToChar(), GetFileExInfoStandard, &this->_stat)) GWarning::Warning("GFileInfos", "GFileInfos(const GString &)", "Cannot get struct WIN32_FILE_ATTRIBUTE_DATA !"); #else if (lstat(this->_file.ToChar(), &this->_stat) == -1) GWarning::Warning("GFileInfos", "GFileInfos(const GString &)", "Cannot get struct stat !"); #endif } long long GFileInfos::Size(void) const { #if defined (GWIN) long long size((this->_stat.nFileSizeHigh * MAXDWORD)); if (this->_stat.nFileSizeHigh > 1) size *= 2; size += this->_stat.nFileSizeLow; return (size); #else return (this->_stat.st_size); #endif } GString GFileInfos::FormatedSize(unsigned int num) const { long long size(this->Size()); GStringList name; name.PushBack("k"); name.PushBack("M"); name.PushBack("G"); unsigned int j = 0; long long newsize(size / 1024); if (newsize == 0) return ("1.0"); while (newsize > 1024) { newsize /= 1024; j++; } return (GString(newsize, num) + name[j]); } GDateTime GFileInfos::BirthTime(void) const { #if defined (GWIN) SYSTEMTIME St; FILETIME t; FileTimeToLocalFileTime(&this->_stat.ftCreationTime, &t); FileTimeToSystemTime(&t, &St); return (GDateTime(St.wYear, St.wMonth - 1, St.wDay, St.wHour, St.wMinute, St.wSecond)); #elif defined(GBSD) struct tm *s = new (struct tm); s = gmtime(&(this->_stat.st_birthtime)); GDateTime d(s->tm_year, s->tm_mon, s->tm_mday, s->tm_hour, s->tm_min, s->tm_sec); delete s; return (d); #endif } GDateTime GFileInfos::LastModificationTime(void) const { #if defined (GWIN) SYSTEMTIME St; FILETIME t; FileTimeToLocalFileTime(&this->_stat.ftLastWriteTime, &t); FileTimeToSystemTime(&t, &St); return (GDateTime(St.wYear, St.wMonth - 1, St.wDay, St.wHour, St.wMinute, St.wSecond)); #else struct tm *s = new (struct tm); s = gmtime(&(this->_stat.st_mtime)); GDateTime *d = new GDateTime(s->tm_year, s->tm_mon, s->tm_mday, s->tm_hour, s->tm_min, s->tm_sec); return (*d); #endif } GDateTime GFileInfos::LastAccessTime(void) const { #if defined (GWIN) SYSTEMTIME St; FILETIME t; FileTimeToLocalFileTime(&this->_stat.ftLastAccessTime, &t); FileTimeToSystemTime(&t, &St); return (GDateTime(St.wYear, St.wMonth - 1, St.wDay, St.wHour, St.wMinute, St.wSecond)); #else struct tm *s = new (struct tm); s = gmtime(&(this->_stat.st_atime)); GDateTime *d = new GDateTime(s->tm_year, s->tm_mon, s->tm_mday, s->tm_hour, s->tm_min, s->tm_sec); return (*d); #endif } bool GFileInfos::Exist(void) { #if defined (GWIN) if (GetFileAttributes(this->_file.ToLPCSTR()) == INVALID_FILE_ATTRIBUTES) return (false); #else if (lstat(this->_file.ToChar(), &this->_stat) == -1) return (false); #endif return (true); }
[ "mvoirgard@34e8d5ee-a372-11de-889f-a79cef5dd62c", "[email protected]" ]
[ [ [ 1, 119 ], [ 121, 122 ], [ 126, 171 ] ], [ [ 120, 120 ], [ 123, 125 ] ] ]
63323375fd1c1a8ab57aba9edd68218a07da245e
bef7d0477a5cac485b4b3921a718394d5c2cf700
/dingus/dingus/gfx/geometry/DynamicIBManager.cpp
2ffad47e54b4a1d1b85814b2027a0a133e90ae93
[ "MIT" ]
permissive
TomLeeLive/aras-p-dingus
ed91127790a604e0813cd4704acba742d3485400
22ef90c2bf01afd53c0b5b045f4dd0b59fe83009
refs/heads/master
2023-04-19T20:45:14.410448
2011-10-04T10:51:13
2011-10-04T10:51:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,329
cpp
// -------------------------------------------------------------------------- // Dingus project - a collection of subsystems for game/graphics applications // -------------------------------------------------------------------------- #include "stdafx.h" #include "DynamicIBManager.h" #include "../../kernel/D3DDevice.h" #include "../../utils/Errors.h" using namespace dingus; const DWORD CDynamicIBManager::IB_USAGE = D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY; const D3DPOOL CDynamicIBManager::IB_POOL = D3DPOOL_DEFAULT; CDynamicIBManager::CDynamicIBManager( unsigned int capacityBytes ) : CManagedBuffer<TIBChunk,CD3DIndexBuffer>(capacityBytes) { mBuffer = new CD3DIndexBuffer( NULL ); } CDynamicIBManager::~CDynamicIBManager() { delete mBuffer; } CD3DIndexBuffer* CDynamicIBManager::allocateBuffer( unsigned int capacityBytes ) { return new CD3DIndexBuffer( createBuffer( capacityBytes ) ); } IDirect3DIndexBuffer9* CDynamicIBManager::createBuffer( unsigned int capacityBytes ) { IDirect3DIndexBuffer9* ib = NULL; HRESULT hres = CD3DDevice::getInstance().getDevice().CreateIndexBuffer( capacityBytes, IB_USAGE, D3DFMT_INDEX16, // TBD: 32 bit dynamic IB! IB_POOL, &ib, NULL ); if( FAILED( hres ) ) { THROW_DXERROR( hres, "failed to create index buffer" ); } return ib; } byte* CDynamicIBManager::lockBuffer( unsigned int byteStart, unsigned int byteCount ) { if( byteCount == 0 ) return NULL; // append data DWORD lockFlag = D3DLOCK_NOOVERWRITE; // ib must be discarded at first if( byteStart == 0 ) lockFlag = D3DLOCK_DISCARD; byte* data = NULL; HRESULT hres = mBuffer->getObject()->Lock( byteStart, byteCount, reinterpret_cast<void**>( &data ), lockFlag ); if( FAILED( hres ) ) { THROW_DXERROR( hres, "failed to lock index buffer" ); } return data; } void CDynamicIBManager::createResource() { } void CDynamicIBManager::activateResource() { if( !mBuffer->isNull() ) return; mBuffer->setObject( createBuffer( getCapacityBytes() ) ); assert( !mBuffer->isNull() ); } void CDynamicIBManager::passivateResource() { assert( !mBuffer->isNull() ); discard(); mBuffer->getObject()->Release(); mBuffer->setObject( NULL ); } void CDynamicIBManager::deleteResource() { }
[ [ [ 1, 97 ] ] ]
4af9fc97f2cb7fa91e7d1e9642d9e606148c7fab
8cf9b251e0f4a23a6ef979c33ee96ff4bdb829ab
/src-ginga-editing/gingancl-cpp/src/gingancl/adaptation/context/RuleAdapter.cpp
4d8c684636bab8292948b3344fffc98f4ea291c2
[]
no_license
BrunoSSts/ginga-wac
7436a9815427a74032c9d58028394ccaac45cbf9
ea4c5ab349b971bd7f4f2b0940f2f595e6475d6c
refs/heads/master
2020-05-20T22:21:33.645904
2011-10-17T12:34:32
2011-10-17T12:34:32
null
0
0
null
null
null
null
UTF-8
C++
false
false
13,701
cpp
/****************************************************************************** Este arquivo eh parte da implementacao do ambiente declarativo do middleware Ginga (Ginga-NCL). Direitos Autorais Reservados (c) 1989-2007 PUC-Rio/Laboratorio TeleMidia Este programa eh software livre; voce pode redistribui-lo e/ou modificah-lo sob os termos da Licen�a Publica Geral GNU versao 2 conforme publicada pela Free Software Foundation. Este programa eh distribu�do na expectativa de que seja util, porem, SEM NENHUMA GARANTIA; nem mesmo a garantia implicita de COMERCIABILIDADE OU ADEQUACAO A UMA FINALIDADE ESPECIFICA. Consulte a Licenca Publica Geral do GNU versao 2 para mais detalhes. Voce deve ter recebido uma copia da Licenca Publica Geral do GNU versao 2 junto com este programa; se nao, escreva para a Free Software Foundation, Inc., no endereco 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. Para maiores informacoes: ncl @ telemidia.puc-rio.br http://www.ncl.org.br http://www.ginga.org.br http://www.telemidia.puc-rio.br ****************************************************************************** This file is part of the declarative environment of middleware Ginga (Ginga-NCL) Copyright: 1989-2007 PUC-RIO/LABORATORIO TELEMIDIA, All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details. You should have received a copy of the GNU General Public License version 2 along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA For further information contact: ncl @ telemidia.puc-rio.br http://www.ncl.org.br http://www.ginga.org.br http://www.telemidia.puc-rio.br *******************************************************************************/ #include "../../../include/RuleAdapter.h" namespace br { namespace pucrio { namespace telemidia { namespace ginga { namespace ncl { namespace adaptation { namespace context { RuleAdapter::RuleAdapter() { PresentationContext::getInstance()->addObserver(this); ruleListenMap = new map<string, vector<Rule*>*>; entityListenMap = new map<Rule*, vector<ExecutionObjectSwitch*>*>; descListenMap = new map<Rule*, vector<DescriptorSwitch*>*>; } RuleAdapter::~RuleAdapter() { wclog << "RuleAdapter::~RuleAdapter" << endl; if (ruleListenMap != NULL) { vector<Rule*>* rules; map<string, vector<Rule*>*>::iterator i; i = ruleListenMap->begin(); while (i != ruleListenMap->end()) { rules = i->second; if (rules != NULL) { delete rules; rules = NULL; } ++i; } ruleListenMap->clear(); delete ruleListenMap; ruleListenMap = NULL; } if (entityListenMap != NULL) { map<Rule*, vector<ExecutionObjectSwitch*>*>::iterator j; vector<ExecutionObjectSwitch*>* objects; j = entityListenMap->begin(); while (j != entityListenMap->end()) { objects = j->second; if (objects != NULL) { delete objects; objects = NULL; } ++j; } entityListenMap->clear(); delete entityListenMap; entityListenMap = NULL; } if (descListenMap != NULL) { map<Rule*, vector<DescriptorSwitch*>*>::iterator k; vector<DescriptorSwitch*>* descs; k = descListenMap->begin(); while (k != descListenMap->end()) { descs = k->second; if (descs != NULL) { delete descs; descs = NULL; } ++k; } descListenMap->clear(); delete descListenMap; descListenMap = NULL; } } void RuleAdapter::reset() { ruleListenMap->clear(); entityListenMap->clear(); descListenMap->clear(); } void RuleAdapter::adapt( CompositeExecutionObject* compositeObject, bool force) { ExecutionObject* object; vector<ExecutionObject*>* objs; vector<ExecutionObject*>::iterator iterator; objs = compositeObject->getExecutionObjects(); if (objs != NULL) { iterator = objs->begin(); while (iterator != objs->end()) { object = *iterator; if (object->instanceOf("ExecutionObjectSwitch")) { initializeRuleObjectRelation( (ExecutionObjectSwitch*)object); adapt((ExecutionObjectSwitch*)object, force); object = ((ExecutionObjectSwitch*)object)-> getSelectedObject(); } adaptDescriptor(object); if (object->instanceOf("CompositeExecutionObject")) { adapt((CompositeExecutionObject*)object, force); } ++iterator; } delete objs; objs = NULL; } } void RuleAdapter::initializeAttributeRuleRelation( Rule* topRule, Rule* rule) { vector<Rule*>* ruleVector = NULL; vector<Rule*>::iterator rules; if (rule->instanceOf("SimpleRule")) { map<string, vector<Rule*>*>::iterator i; for (i=ruleListenMap->begin();i!=ruleListenMap->end();++i) { if (((SimpleRule*)rule)->getAttribute() == i->first) { ruleVector = i->second; break; } } if (ruleVector == NULL) { ruleVector = new vector<Rule*>; (*ruleListenMap)[(((SimpleRule*)rule)-> getAttribute())] = ruleVector; } ruleVector->push_back(topRule); } else { ruleVector = ((CompositeRule*)rule)->getRules(); if (ruleVector != NULL) { rules = ruleVector->begin(); while (rules != ruleVector->end()) { initializeAttributeRuleRelation(topRule, (Rule*)(*rules)); ++rules; } } } } void RuleAdapter::initializeRuleObjectRelation( ExecutionObjectSwitch* objectAlternatives) { /* vector<ExecutionObjectSwitch*>* objectVector; ExecutionObject* object; Rule* rule; int i, size; size = objectAlternatives->getNumRules(); map<Rule*, vector<ExecutionObjectSwitch*>*>::iterator j; for (i = 0; i < size; i++) { rule = objectAlternatives->getRule(i); initializeAttributeRuleRelation(rule, rule); // the switch will pertain to a set of objects that depend on this rule bool containsKey = false; for (j = entityListenMap->begin(); j != entityListenMap->end(); ++j) { if (j->first == rule) { containsKey = true; objectVector = j->second; break; } } if (!containsKey) { objectVector = new vector<ExecutionObjectSwitch*>; (*entityListenMap)[rule] = objectVector; } vector<ExecutionObjectSwitch*>::iterator j; bool containsObject = false; for (j = objectVector->begin(); j != objectVector->end(); ++j) { if ((*j) == objectAlternatives) { containsObject = true; } } if (!containsObject) { objectVector->push_back(objectAlternatives); } object = objectAlternatives->getExecutionObject(i); if (object->instanceOf("ExecutionObjectSwitch")) { initializeRuleObjectRelation((ExecutionObjectSwitch*)object); } } */ } void RuleAdapter::adapt( ExecutionObjectSwitch* objectAlternatives, bool force) { /* int i, size; Rule* rule; ExecutionObject* object; vector<FormatterEvent*>* events; bool selected, result; if (!force && objectAlternatives->getSelectedObject() != NULL) { return; } object = objectAlternatives->getSelectedObject(); if (object != NULL) { events = object->getEvents(); if (events != NULL) { vector<FormatterEvent*>::iterator i; i = events->begin(); while (i != events->end()) { if ((*i)->getCurrentState() == Event::ST_OCCURRING) { return; } ++i; } } } selected = false; size = objectAlternatives->getNumRules(); for (i = 0; i < size && !selected; i++) { rule = objectAlternatives->getRule(i); result = evaluateRule(rule); if (result && !selected) { selected = true; objectAlternatives->select(objectAlternatives->getExecutionObject(i)); } } if (!selected) objectAlternatives->selectDefault(); object = objectAlternatives->getSelectedObject(); if (object != NULL) { if (object->instanceOf("ExecutionObjectSwitch")) { adapt((ExecutionObjectSwitch*)object, force); } } */ } bool RuleAdapter::adaptDescriptor(ExecutionObject* executionObject) { CascadingDescriptor* cascadingDescriptor; GenericDescriptor* selectedDescriptor; GenericDescriptor* unsolvedDescriptor; DescriptorSwitch* descAlternatives; int i, size; Rule* rule; bool selected, result; vector<DescriptorSwitch*>* objectVector; bool adapted = false; cascadingDescriptor = executionObject->getDescriptor(); if (cascadingDescriptor == NULL) { return adapted; } unsolvedDescriptor = cascadingDescriptor->getFirstUnsolvedDescriptor(); map<Rule*, vector<DescriptorSwitch*>*>::iterator k; while (unsolvedDescriptor != NULL) { if (unsolvedDescriptor->instanceOf("DescriptorSwitch")) { descAlternatives = (DescriptorSwitch*)unsolvedDescriptor; selectedDescriptor = descAlternatives->getSelectedDescriptor(); selected = false; size = descAlternatives->getNumRules(); for (i = 0; i < size; i++) { rule = descAlternatives->getRule(i); result = evaluateRule(rule); if (result && !selected) { selected = true; descAlternatives->select( descAlternatives->getDescriptor(i)); } if (descListenMap->count(rule) == 0) { objectVector = new vector<DescriptorSwitch*>; (*descListenMap)[rule] = objectVector; } else { objectVector = ((*descListenMap)[rule]); } objectVector->push_back(descAlternatives); } if (!selected) { descAlternatives->selectDefault(); } if (selectedDescriptor != descAlternatives->getSelectedDescriptor()) { adapted = true; } } cascadingDescriptor->cascadeUnsolvedDescriptor(); unsolvedDescriptor = cascadingDescriptor-> getFirstUnsolvedDescriptor(); } return adapted; } Node* RuleAdapter::adaptSwitch(SwitchNode* switchNode) { int i, size; Rule* rule; Node* selectedNode; selectedNode = NULL; size = switchNode->getNumRules(); for (i = 0; i < size; i++) { rule = switchNode->getRule(i); if (evaluateRule(rule)) { selectedNode = switchNode->getNode(i); } } if (selectedNode == NULL) { selectedNode = switchNode->getDefaultNode(); } return selectedNode; } bool RuleAdapter::evaluateRule(Rule* rule) { if (rule->instanceOf("SimpleRule")) { return evaluateSimpleRule((SimpleRule*)rule); } else if (rule->instanceOf("CompositeRule")) { return evaluateCompositeRule((CompositeRule*)rule); } else { return false; } } bool RuleAdapter::evaluateCompositeRule(CompositeRule* rule) { Rule* childRule; vector<Rule*>* rules; vector<Rule*>::iterator iterator; rules = (rule->getRules()); //sf if (rules != NULL) { iterator = rules->begin(); switch (rule->getOperator()) { case CompositeRule::OP_OR: while (iterator != rules->end()) { childRule = (*iterator); if (evaluateRule(childRule)) return true; ++iterator; } return false; case CompositeRule::OP_AND: default: while (iterator != rules->end()) { childRule = (*iterator); if (!evaluateRule(childRule)) return false; ++iterator; } return true; } } return false; } bool RuleAdapter::evaluateSimpleRule(SimpleRule* rule) { string attribute; short op; string ruleValue; string attributeValue; attribute = rule->getAttribute(); attributeValue = PresentationContext::getInstance()-> getPropertyValue(attribute); ruleValue = rule->getValue(); if (attributeValue == "") { return false; } op = rule->getOperator(); switch (op) { case Comparator::CMP_EQ: if (attributeValue == "" && ruleValue == "") { return true; } else if (attributeValue == "") { return false; } else { return Comparator::evaluate(attributeValue, ruleValue, op); } case Comparator::CMP_NE: if (attributeValue == "" && ruleValue == "") { return false; } else if (attributeValue == "") { return true; } else { return Comparator::evaluate(attributeValue, ruleValue, op); } default: return Comparator::evaluate(attributeValue, ruleValue, op); } } void RuleAdapter::update(void* arg0, void* arg1) { string arg; arg = *((string*)(arg1)); vector<Rule*>* ruleVector = NULL; map<string, vector<Rule*>*>::iterator i; for (i = ruleListenMap->begin(); i != ruleListenMap->end(); ++i) { if (i->first == arg) { ruleVector = i->second; } } if (ruleVector == NULL) { return; } vector<Rule*>::iterator ruleIter; vector<ExecutionObjectSwitch*>::iterator objIter; Rule* rule; ExecutionObjectSwitch* object; for (ruleIter = ruleVector->begin(); ruleIter != ruleVector->end(); ++ruleIter) { rule = (Rule*)(*ruleIter); if (entityListenMap->count(rule) != 0) { vector<ExecutionObjectSwitch*>* objectVector; objectVector = ((*entityListenMap)[rule]); for (objIter = objectVector->begin(); objIter != objectVector->end(); ++objIter) { object = (*objIter); if (object->instanceOf("ExecutionObjectSwitch")) { adapt(object, true); } else { // TODO: precisa pensar melhor como adaptar // descritores dinamicamente. } } } } } } } } } } } }
[ [ [ 1, 521 ] ] ]
a1a4ddde7d920ed533c6607f7f0383c79a067795
deb8ef49795452ff607023c6bce8c3e8ed4c8360
/Projects/UAlbertaBot/Source/base/BuildOrderQueue.h
23e3210aa59237794a145858890fa0e42330a6de
[]
no_license
timburr1/ou-skynet
f36ed7996c21f788a69e3ae643b629da7d917144
299a95fae4419429be1d04286ea754459a9be2d6
refs/heads/master
2020-04-19T22:58:46.259980
2011-12-06T20:10:34
2011-12-06T20:10:34
34,360,542
0
0
null
null
null
null
UTF-8
C++
false
false
2,131
h
#pragma once #include "Common.h" #include <BWTA.h> #include "MetaType.h" #define PRIORITY_TYPE int template <class T> class BuildOrderItem { public: MetaType metaType; // the thing we want to 'build' T priority; // the priority at which to place it in the queue bool blocking; // whether or not we block further items BuildOrderItem(MetaType m, T p, bool b) : metaType(m), priority(p), blocking(b) {} bool operator<(const BuildOrderItem<T> &x) const { return priority < x.priority; } }; class BuildOrderQueue { std::deque< BuildOrderItem<PRIORITY_TYPE> > queue; PRIORITY_TYPE lowestPriority; PRIORITY_TYPE highestPriority; PRIORITY_TYPE defaultPrioritySpacing; int numSkippedItems; public: BuildOrderQueue(); void clearAll(); // clears the entire build order queue void skipItem(); // increments skippedItems void queueAsHighestPriority(MetaType m, bool blocking); // queues something at the highest priority void queueAsLowestPriority(MetaType m, bool blocking); // queues something at the lowest priority void queueItem(BuildOrderItem<PRIORITY_TYPE> b); // queues something with a given priority void removeHighestPriorityItem(); // removes the highest priority item void removeCurrentHighestPriorityItem(); int getHighestPriorityValue(); // returns the highest priority value int getLowestPriorityValue(); // returns the lowest priority value size_t size(); // returns the size of the queue bool isEmpty(); void removeAll(MetaType m); // removes all matching meta types from queue BuildOrderItem<PRIORITY_TYPE> & getHighestPriorityItem(); // returns the highest priority item BuildOrderItem<PRIORITY_TYPE> & getNextHighestPriorityItem(); // returns the highest priority item bool canSkipItem(); bool hasNextHighestPriorityItem(); // returns the highest priority item void drawQueueInformation(int x, int y, int index); // overload the bracket operator for ease of use BuildOrderItem<PRIORITY_TYPE> operator [] (int i); };
[ "[email protected]@ce23f72d-95c0-fd94-fabd-fc6dce850bd1" ]
[ [ [ 1, 66 ] ] ]
051ed13fa38cb6cbd6bd9dc71fd62cc97fb1c13b
d115cf7a1b374d857f6b094d4b4ccd8e9b1ac189
/tags/pyplusplus_dev_1.0.0/unittests/data/constructors_bug_to_be_exported.hpp
2825f761b51ad5ca55c1d21989134580e75a1f7e
[ "BSL-1.0" ]
permissive
gatoatigrado/pyplusplusclone
30af9065fb6ac3dcce527c79ed5151aade6a742f
a64dc9aeeb718b2f30bd6a5ff8dcd8bfb1cd2ede
refs/heads/master
2016-09-05T23:32:08.595261
2010-05-16T10:53:45
2010-05-16T10:53:45
700,369
4
2
null
null
null
null
UTF-8
C++
false
false
715
hpp
// Copyright 2004-2007 Roman Yakovenko. // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef __constructors_bug_to_be_exported_hpp__ #define __constructors_bug_to_be_exported_hpp__ struct Joint{}; struct Actor{}; class JointCallback { public: class JointBreakCallback { public: virtual void onBreak(Joint*, float, Actor*, Actor*) {} }; void onBreak(Joint* j, float impulse, Actor* a, Actor* b) { mCallback->onBreak(j,impulse, a,b); } JointBreakCallback* mCallback; }; #endif//__constructors_bug_to_be_exported_hpp__
[ "roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76" ]
[ [ [ 1, 28 ] ] ]
d82c997fb9b52209af8c6a6fa8c1014736567568
c2153dcfa8bcf5b6d7f187e5a337b904ad9f91ac
/src/Engine/Script/ExposeComponentManager.cpp
5f34a5b112faa98a6a5c2ffca6a833820b9676aa
[]
no_license
ptrefall/smn6200fluidmechanics
841541a26023f72aa53d214fe4787ed7f5db88e1
77e5f919982116a6cdee59f58ca929313dfbb3f7
refs/heads/master
2020-08-09T17:03:59.726027
2011-01-13T22:39:03
2011-01-13T22:39:03
32,448,422
1
0
null
null
null
null
UTF-8
C++
false
false
1,567
cpp
#include "precomp.h" #include "ExposeComponentManager.h" #include "ExposeComponent.h" #include "LuaComponent.h" #include "ScriptMgr.h" #include <Core/CoreMgr.h> #include <Entity/EntityManager.h> #include <Entity/IEntity.h> #include <Entity/Component.h> #include <Resource/ResMgr.h> using namespace Engine; using namespace LuaPlus; ExposeComponentManager::ExposeComponentManager(CoreMgr *coreMgr) { this->coreMgr = coreMgr; init(); } ExposeComponentManager::~ExposeComponentManager() { } void ExposeComponentManager::init() { LuaObject globals = (*coreMgr->getScriptMgr()->GetGlobalState())->GetGlobals(); globals.RegisterDirect("RegisterComponent", *this, &ExposeComponentManager::RegisterComponent); //Load all scripts in Scripts/Components std::vector<CL_String> scripts = coreMgr->getResMgr()->getFilesInDir("/Scripts/Components/"); for(unsigned int i = 0; i < scripts.size(); i++) { int fail = coreMgr->getScriptMgr()->doFile(cl_format("Components/%1", scripts[i])); if(fail) { CL_String err = cl_format("Failed to load component script %1", scripts[i]); throw CL_Exception(err); } } } void ExposeComponentManager::RegisterComponent(LuaObject lName) { if(!lName.IsString()) { CL_String err = cl_format("Failed to register component, because the type of name was %1 when expecting String!", lName.TypeName()); throw CL_Exception(err); } CL_String name = lName.ToString(); coreMgr->getEntityMgr()->getComponentFactory()->RegisterComponent(name, &LuaComponent::Create); }
[ "[email protected]@c628178a-a759-096a-d0f3-7c7507b30227" ]
[ [ [ 1, 54 ] ] ]
32bc32185cf330899e107b849e1ebaf327e2a8a7
580738f96494d426d6e5973c5b3493026caf8b6a
/Include/Vcl/ibinstallheader.hpp
188f1f71f8a7178b8ebc3884eb780ee5cc25e363
[]
no_license
bravesoftdz/cbuilder-vcl
6b460b4d535d17c309560352479b437d99383d4b
7b91ef1602681e094a6a7769ebb65ffd6f291c59
refs/heads/master
2021-01-10T14:21:03.726693
2010-01-11T11:23:45
2010-01-11T11:23:45
48,485,606
2
1
null
null
null
null
UTF-8
C++
false
false
9,040
hpp
// Borland C++ Builder // Copyright (c) 1995, 2002 by Borland Software Corporation // All rights reserved // (DO NOT EDIT: machine generated header) 'IBInstallHeader.pas' rev: 6.00 #ifndef IBInstallHeaderHPP #define IBInstallHeaderHPP #pragma delphiheader begin #pragma option push -w- #pragma option push -Vx #include <SysInit.hpp> // Pascal unit #include <System.hpp> // Pascal unit //-- user supplied ----------------------------------------------------------- namespace Ibinstallheader { //-- type declarations ------------------------------------------------------- typedef int OPTIONS_HANDLE; typedef int *POPTIONS_HANDLE; typedef int MSG_NO; typedef int OPT; typedef char *TEXT; typedef int __stdcall (*FP_ERROR)(int IscCode, void * UserContext, const char * ActionDescription); typedef int __stdcall (*FP_STATUS)(int Status, void * UserContext, const char * ActionDescription); typedef int __stdcall (*Tisc_install_clear_options)(POPTIONS_HANDLE hOption); typedef int __stdcall (*Tisc_install_execute)(int hOption, char * src_dir, char * dest_dir, FP_STATUS status_func, void * status_data, FP_ERROR error_func, void * error_data, char * uninstal_file_name); typedef int __stdcall (*Tisc_install_get_info)(int info_type, int option, void * info_buffer, unsigned buf_len); typedef int __stdcall (*Tisc_install_get_message)(int hOption, int message_no, void * message_txt, unsigned message_len); typedef int __stdcall (*Tisc_install_load_external_text)(char * msg_file_name); typedef int __stdcall (*Tisc_install_precheck)(int hOption, char * src_dir, char * dest_dir); typedef int __stdcall (*Tisc_install_set_option)(POPTIONS_HANDLE hOption, int option); typedef int __stdcall (*Tisc_uninstall_execute)(char * uninstall_file_name, FP_STATUS status_func, void * status_data, FP_ERROR error_func, void * error_data); typedef int __stdcall (*Tisc_uninstall_precheck)(char * uninstall_file_name); typedef int __stdcall (*Tisc_install_unset_option)(POPTIONS_HANDLE hOption, int option); //-- var, const, procedure --------------------------------------------------- #define IB_INSTALL_DLL "ibinstall.dll" static const Shortint isc_install_fp_retry = 0xffffffff; static const Shortint isc_install_fp_continue = 0x0; static const Shortint isc_install_fp_abort = 0x1; static const Shortint isc_install_info_destination = 0x1; static const Shortint isc_install_info_opspace = 0x2; static const Shortint isc_install_info_opname = 0x3; static const Shortint isc_install_info_opdescription = 0x4; static const Word ISC_INSTALL_MAX_MESSAGE_LEN = 0x12c; static const Byte ISC_INSTALL_MAX_MESSAGES = 0xc8; static const Word ISC_INSTALL_MAX_PATH = 0x100; static const Word INTERBASE = 0x3e8; static const Word IB_SERVER = 0x3e9; static const Word IB_CLIENT = 0x3ea; static const Word IB_CMD_TOOLS = 0x3eb; static const Word IB_CMD_TOOLS_DB_MGMT = 0x3ec; static const Word IB_CMD_TOOLS_USR_MGMT = 0x3ed; static const Word IB_CMD_TOOLS_DB_QUERY = 0x3ee; static const Word IB_GUI_TOOLS = 0x3ef; static const Word IB_DOC = 0x3f3; static const Word IB_EXAMPLES = 0x3f4; static const Word IB_EXAMPLE_API = 0x3f5; static const Word IB_EXAMPLE_DB = 0x3f6; static const Word IB_DEV = 0x3f7; static const Word IB_CONNECTIVITY_SERVER = 0x44c; static const Word IB_CONNECTIVITY = 0x44d; static const Word IB_ODBC_CLIENT = 0x44e; static const Word IB_JDBC_CLIENT = 0x44f; static const Word IB_OLEDB_CLIENT = 0x450; static const Shortint isc_install_optlist_empty = 0xffffffff; static const Shortint isc_install_actlist_empty = 0xfffffffe; static const Shortint isc_install_fp_copy_delayed = 0xfffffffd; static const Shortint isc_install_fp_delete_delayed = 0xfffffffc; static const Shortint isc_install_option_not_found = 0xfffffffb; static const Shortint isc_install_msg_version = 0xfffffffa; static const Shortint isc_install_cant_load_msg = 0xfffffff9; static const Shortint isc_install_invalid_msg = 0xfffffff8; static const Shortint isc_install_invalid_tbl = 0xfffffff7; static const Shortint isc_install_cant_create_msg = 0xfffffff6; static const Shortint isc_install_handle_not_allocated = 0xfffffff5; static const Shortint isc_install_odbc_comp_notfound = 0xfffffff4; static const Shortint isc_install_cant_delete = 0xfffffff3; static const Shortint isc_install_cant_rmdir = 0xfffffff2; static const Shortint isc_install_key_nonempty = 0xfffffff1; static const Shortint isc_install_success = 0x0; static const Shortint isc_install_file_error = 0x0; static const Shortint isc_install_path_not_valid = 0x1; static const Shortint isc_install_path_not_exists = 0x2; static const Shortint isc_install_cant_write = 0x3; static const Shortint isc_install_type_unknown = 0x4; static const Shortint isc_install_cant_move_file = 0x5; static const Shortint isc_install_device_not_valid = 0x6; static const Shortint isc_install_data_truncated = 0x7; static const Shortint isc_install_cant_get_temp = 0x8; static const Shortint isc_install_no_file = 0x9; static const Shortint isc_install_cant_load_lib = 0xa; static const Shortint isc_install_cant_lookup_lib = 0xb; static const Shortint isc_install_file_exists = 0xc; static const Shortint isc_install_cant_open_log = 0xd; static const Shortint isc_install_write_error = 0xe; static const Shortint isc_install_read_error = 0xf; static const Shortint isc_install_invalid_log = 0x10; static const Shortint isc_install_cant_read = 0x11; static const Shortint isc_install_no_diskspace = 0x12; static const Shortint isc_install_cant_create_dir = 0x13; static const Shortint isc_install_msg_syntax = 0x14; static const Shortint isc_install_fp_delete_error = 0x15; static const Shortint isc_install_fp_rename_error = 0x16; static const Shortint isc_install_fp_copy_error = 0x17; static const Shortint isc_install_precheck_error = 0x18; static const Shortint isc_install_system_not_supported = 0x18; static const Shortint isc_install_server_running = 0x19; static const Shortint isc_install_classic_found = 0x1a; static const Shortint isc_install_no_privileges = 0x1b; static const Shortint isc_install_cant_get_free_space = 0x1c; static const Shortint isc_install_guardian_running = 0x1d; static const Shortint isc_install_invalid_option = 0x1e; static const Shortint isc_install_invalid_handle = 0x1f; static const Shortint isc_install_message_not_found = 0x20; static const Shortint isc_install_ip_error = 0x21; static const Shortint isc_install_no_stack = 0x21; static const Shortint isc_install_cant_add_service = 0x22; static const Shortint isc_install_invalid_port = 0x23; static const Shortint isc_install_invalid_service = 0x24; static const Shortint isc_install_no_proto = 0x25; static const Shortint isc_install_no_services_entry = 0x26; static const Shortint isc_install_sock_error = 0x27; static const Shortint isc_install_conversion_error = 0x28; static const Shortint isc_install_op_error = 0x29; static const Shortint isc_install_cant_copy = 0x29; static const Shortint isc_install_no_mem = 0x2a; static const Shortint isc_install_queue_failed = 0x2b; static const Shortint isc_install_invalid_param = 0x2c; static const Shortint isc_install_fp_error_exception = 0x2d; static const Shortint isc_install_fp_status_exception = 0x2e; static const Shortint isc_install_user_aborted = 0x2f; static const Shortint isc_install_reg_error = 0x30; static const Shortint isc_install_key_exists = 0x30; static const Shortint isc_install_cant_create_key = 0x31; static const Shortint isc_install_cant_set_value = 0x32; static const Shortint isc_install_cant_open_key = 0x33; static const Shortint isc_install_cant_delete_key = 0x34; static const Shortint isc_install_cant_query_key = 0x35; static const Shortint isc_install_cant_delete_value = 0x36; static const Shortint isc_install_serv_error = 0x37; static const Shortint isc_install_service_existed = 0x37; static const Shortint isc_install_cant_create_service = 0x38; static const Shortint isc_install_cant_open_service = 0x39; static const Shortint isc_install_cant_query_service = 0x3a; static const Shortint isc_install_service_running = 0x3b; static const Shortint isc_install_cant_delete_service = 0x3c; static const Shortint isc_install_cant_open_manager = 0x3d; static const Shortint isc_install_system_error = 0x3e; static const Shortint isc_install_com_regfail = 0x3f; static const Shortint isc_install_dcom_required = 0x40; static const Shortint isc_install_odbc_error = 0x41; static const Shortint isc_install_odbc_general = 0x41; static const Shortint isc_install_core_version = 0x42; static const Shortint isc_install_drv_version = 0x43; static const Shortint isc_install_tran_version = 0x44; } /* namespace Ibinstallheader */ using namespace Ibinstallheader; #pragma option pop // -w- #pragma option pop // -Vx #pragma delphiheader end. //-- end unit ---------------------------------------------------------------- #endif // IBInstallHeader
[ "bitscode@7bd08ab0-fa70-11de-930f-d36749347e7b" ]
[ [ [ 1, 184 ] ] ]
b01be73188e9208fe45957a8b57a5001a9a4f7bf
45229380094a0c2b603616e7505cbdc4d89dfaee
/CLROpenCV/CLROpenCV.h
f3c0c3b0a2f95efc1b8f58388a7cfffaa2194f13
[]
no_license
xcud/msrds
a71000cc096723272e5ada7229426dee5100406c
04764859c88f5c36a757dbffc105309a27cd9c4d
refs/heads/master
2021-01-10T01:19:35.834296
2011-11-04T09:26:01
2011-11-04T09:26:01
45,697,313
1
2
null
null
null
null
UHC
C++
false
false
7,390
h
//CLROpenCV.h /* 작성자 : 구본수 e-mail : [email protected] 닷넷과 opencv 를 연동하는 방식을 테스트함.. 최적화는 전혀 안되여있고 단지 어떤식으로 연동할지만 테스트한것입니다. 원래는 들어오는 이미지를 그레이 처리 하려 했지만 opencv 를 전혀 몰라 그냥 이미지 만드는 함수만 사용해봤습니다. 테스트 방법 우선 opencv과깔려 있어야합니다. 버전은 1.0입니다. opencv 관련 dll을 모두 C:\Microsoft Robotics Studio (1.5)\bin 에 깔아주시고요. 소스의 WebCam 을 컴파일합니다. 그후 vpl 툴에서 WebCam 아이콘을 끌어다 놓고 실행합니다. 웹으로 웹켐을 보시면 이미지가 반으로 짤려 나올것입니다. 모듈 디버깅을 편하게 하시려면 vpl 로 작업된것을 build->compile as a service 로 프로젝트를 빌드하신후 뽑아져 나온 소스와 해당모듈을 같이 솔류선안에 묶어서 작업하시면 직접 해당위치 브레이크 걸면서 쉽게 디버깅하실수있습니다.. */ #pragma once using namespace System; using namespace System::Drawing; using namespace System::Drawing::Imaging; namespace CLROpenCVs { public ref class ImageInfo { public: int _facePosX; // -1,0,1 int _facePosY; // -1,0,1 int _faceCount; }; public ref class CLROpenCV { IplImage * _pColor; IplImage * _pGray; int _channels; CvHaarClassifierCascade* _cascade; int _width; int _height; CvMemStorage* _storage;// = cvCreateMemStorage(0); // 닷넷 비트맵을 opencv 이미지로 복사 bool BitmapToCVImage(Drawing::Bitmap ^ pBitMap,IplImage * pImage) { //ImageFormat ^ imageFormat = pImage->RawFormat->Bmp; BYTE * pDest = (BYTE*)pImage->imageData; int ws = pImage->widthStep; //int w = pImage->Width; System::Drawing::Rectangle ^ rectancle = System::Drawing::Rectangle( 0 , 0 , pBitMap->Width , pBitMap->Height ) ; BitmapData ^ data = pBitMap->LockBits( *rectancle, ImageLockMode::ReadWrite , PixelFormat::Format24bppRgb ); BYTE * pSrc = (BYTE*) data->Scan0.ToPointer(); for( int h = 0 ; h < pBitMap->Height ; h++ ) for( int w = 0 ; w < pBitMap->Width ; w++ ) { pDest[h*ws + w*3 ] = pSrc[h*data->Stride + w*3 ]; pDest[h*ws + w*3 + 1] = pSrc[h*data->Stride + w*3 + 1]; pDest[h*ws + w*3 + 2] = pSrc[h*data->Stride + w*3 + 2]; } pBitMap->UnlockBits(data); return true; } public: // opencv 이미지를 닷넷 비트맵으로 복사 static bool CVImageToBitmap_Gray(IplImage * pImage, Drawing::Bitmap ^ pBitMap) { //ImageFormat ^ imageFormat = pImage->RawFormat->Bmp; BYTE * pSrc = (BYTE*)pImage->imageData; int ws = pImage->widthStep; //int w = pImage->Width; System::Drawing::Rectangle ^ rectancle = System::Drawing::Rectangle( 0 , 0 , pBitMap->Width , pBitMap->Height ) ; BitmapData ^ data = pBitMap->LockBits( *rectancle, ImageLockMode::ReadWrite , PixelFormat::Format8bppIndexed ); BYTE * pDest = (BYTE*) data->Scan0.ToPointer(); for( int h = 0 ; h < pImage->height ; h++ ) { memcpy(pDest + (pImage->height - h -1) * pBitMap->Width, pSrc + h * ws ,pImage->width); } pBitMap->UnlockBits(data); return true; } // opencv 이미지를 닷넷 비트맵으로 복사 static bool CVImageToBitmap(IplImage * pImage, Drawing::Bitmap ^ pBitMap) { //ImageFormat ^ imageFormat = pImage->RawFormat->Bmp; BYTE * pDest = (BYTE*)pImage->imageData; int ws = pImage->widthStep; //int w = pImage->Width; System::Drawing::Rectangle ^ rectancle = System::Drawing::Rectangle( 0 , 0 , pBitMap->Width , pBitMap->Height ) ; BitmapData ^ data = pBitMap->LockBits( *rectancle, ImageLockMode::ReadWrite , PixelFormat::Format24bppRgb ); BYTE * pSrc = (BYTE*) data->Scan0.ToPointer(); for( int h = 0 ; h < pBitMap->Height ; h++ ) for( int w = 0 ; w < pBitMap->Width ; w++ ) { pSrc[h*data->Stride + w*3 ] = pDest[h*ws + w*3 ]; pSrc[h*data->Stride + w*3 + 1] = pDest[h*ws + w*3 + 1]; pSrc[h*data->Stride + w*3 + 2] = pDest[h*ws + w*3 + 2]; } pBitMap->UnlockBits(data); return true; } int detectObjects(IplImage* image) { CvSeq* faces; int i, scale = 1; /* use the fastest variant */ faces = cvHaarDetectObjects( image, _cascade, _storage, 1.2, 2, CV_HAAR_DO_CANNY_PRUNING ); /* draw all the rectangles */ for( i = 0; i < faces->total; i++ ) { /* extract the rectanlges only */ CvRect face_rect = *(CvRect*)cvGetSeqElem( faces, i);//, 0 ); cvRectangle( image, cvPoint(face_rect.x*scale,face_rect.y*scale), cvPoint((face_rect.x+face_rect.width)*scale, (face_rect.y+face_rect.height)*scale), CV_RGB(0,0,255), 3 ); int center_x = (face_rect.x+face_rect.width/2) ; if( center_x < _width/3) { _pImageInfo->_facePosX = -1; }else if( center_x < (_width*2/3)) { _pImageInfo->_facePosX = 0; }else { _pImageInfo->_facePosX = 1; } int center_y = (face_rect.y+face_rect.height/2) ; if( center_y < _height/3) { _pImageInfo->_facePosY = 1; }else if( center_y < (_height*2/3)) { _pImageInfo->_facePosY = 0; }else { _pImageInfo->_facePosY = -1; } } return 0; } public : ImageInfo ^ _pImageInfo; CLROpenCV() { _pColor = NULL; _pGray = NULL; _pImageInfo = gcnew ImageInfo(); _storage = cvCreateMemStorage(0); } ~CLROpenCV() { if(_pColor) { pin_ptr<IplImage*> p = &_pColor; cvReleaseImage(p); } if(_pGray ) { pin_ptr<IplImage*> p = &_pGray; cvReleaseImage(p); } { pin_ptr<CvMemStorage*> p = &_storage; cvReleaseMemStorage( p ); } { pin_ptr<CvHaarClassifierCascade* > p = &_cascade; cvReleaseHaarClassifierCascade( p ); } } bool Init(int w,int h,int bitCount) { _width = w; _height = h; if( bitCount == 8) { _channels = 1; }else { _channels = 3; } _pColor = cvCreateImage(cvSize(w, h), IPL_DEPTH_8U, _channels); _pGray = cvCreateImage(cvSize(w, h), IPL_DEPTH_8U, _channels); _cascade = (CvHaarClassifierCascade*)cvLoad("C:\\Microsoft Robotics Studio (1.5)\\bin\\haarcascade_frontalface_default.xml"); if( !_cascade ) { return false; } return true; } void Release() { } bool colorToGray(Drawing::Bitmap ^ pImage) { BitmapToCVImage(pImage, _pColor); // cvCvtColor(_pColor, _pGray, CV_RGB2GRAY,); // 컬러를 흑백으로 변환 CVImageToBitmap(_pColor, pImage ); return true; } // TODO: 여기에 이 클래스에 대한 메서드를 추가합니다. int detectFace(Drawing::Bitmap ^ pImage) { BitmapToCVImage(pImage, _pColor); int ret = detectObjects(_pColor); // cvCvtColor(_pColor, _pGray, CV_RGB2GRAY,); // 컬러를 흑백으로 변환 CVImageToBitmap(_pColor, pImage ); return ret; } }; }
[ "perpet99@cc61708c-8d4c-0410-8fce-b5b73d66a671" ]
[ [ [ 1, 322 ] ] ]
8a6a5ddcaee658a322275b2a445dfaed45e251f2
c95a83e1a741b8c0eb810dd018d91060e5872dd8
/Game/ClientShellDLL/TO2/HUDRadio.cpp
f8b275656cdab057a4e036f3848f9d93c5324fdb
[]
no_license
rickyharis39/nolf2
ba0b56e2abb076e60d97fc7a2a8ee7be4394266c
0da0603dc961e73ac734ff365bfbfb8abb9b9b04
refs/heads/master
2021-01-01T17:21:00.678517
2011-07-23T12:11:19
2011-07-23T12:11:19
38,495,312
1
0
null
null
null
null
UTF-8
C++
false
false
5,428
cpp
// ----------------------------------------------------------------------- // // // MODULE : HUDRadio.cpp // // PURPOSE : Implementation of CHUDRadio to display messages // // (c) 2001 Monolith Productions, Inc. All Rights Reserved // // ----------------------------------------------------------------------- // #include "stdafx.h" #include "HUDMgr.h" #include "HUDRadio.h" #include "InterfaceMgr.h" #include "ClientRes.h" #include "ClientMultiplayerMgr.h" #include "GameClientShell.h" static int g_CoopRadioArray[] = { IDS_DIALOGUE_33575, IDS_DIALOGUE_33579, IDS_DIALOGUE_33582, IDS_DIALOGUE_33584, IDS_DIALOGUE_33590, IDS_DIALOGUE_33596 }; static int g_TDMRadioArray[] = { IDS_DIALOGUE_33579, IDS_DIALOGUE_33582, IDS_DIALOGUE_33584, IDS_DIALOGUE_33588, IDS_DIALOGUE_33593, IDS_DIALOGUE_33596 }; static int g_DDRadioArray[] = { IDS_DIALOGUE_33575, IDS_DIALOGUE_33579, IDS_DIALOGUE_33582, IDS_DIALOGUE_33588, IDS_DIALOGUE_33590, IDS_DIALOGUE_33596 }; static GameType eGameType = eGameTypeSingle; CHUDRadio::CHUDRadio() { m_eLevel = kHUDRenderDead; m_UpdateFlags = kHUDNone; m_bVisible = false; for (int i = 0; i < MAX_RADIO_CHOICES; i++) { m_pText[i] = LTNULL; } m_nNumChoices = 0; } LTBOOL CHUDRadio::Init() { m_nNumChoices = ARRAY_LEN(g_CoopRadioArray); if (m_nNumChoices > MAX_RADIO_CHOICES) m_nNumChoices = MAX_RADIO_CHOICES; UpdateLayout(); return LTTRUE; } void CHUDRadio::Term() { m_Dlg.Destroy(); } void CHUDRadio::Render() { if (!m_bVisible) return; m_Dlg.Render(); } void CHUDRadio::Update() { // Sanity checks... if (!IsVisible()) return; if (m_fScale != g_pInterfaceResMgr->GetXRatio()) SetScale(g_pInterfaceResMgr->GetXRatio()); } void CHUDRadio::Show(bool bShow) { m_bVisible = bShow; if (eGameType != g_pGameClientShell->GetGameType()) { eGameType = g_pGameClientShell->GetGameType(); for (int i = 0; i < m_nNumChoices; i++) { if (m_pText[i]) { switch (g_pGameClientShell->GetGameType()) { case eGameTypeTeamDeathmatch: m_pText[i]->GetColumn(1)->SetString(LoadTempString(g_TDMRadioArray[i])); break; case eGameTypeDoomsDay: m_pText[i]->GetColumn(1)->SetString(LoadTempString(g_DDRadioArray[i])); break; default: m_pText[i]->GetColumn(1)->SetString(LoadTempString(g_CoopRadioArray[i])); break; } } } } } void CHUDRadio::Choose(uint8 nChoice) { if (nChoice > m_nNumChoices) return; m_bVisible = false; uint32 nLocalID; g_pLTClient->GetLocalClientID(&nLocalID); switch (g_pGameClientShell->GetGameType()) { case eGameTypeTeamDeathmatch: g_pClientMultiplayerMgr->DoTaunt(nLocalID,g_TDMRadioArray[nChoice]); break; case eGameTypeDoomsDay: g_pClientMultiplayerMgr->DoTaunt(nLocalID,g_DDRadioArray[nChoice]); break; default: g_pClientMultiplayerMgr->DoTaunt(nLocalID,g_CoopRadioArray[nChoice]); break; } } void CHUDRadio::SetScale(float fScale) { m_Dlg.SetScale(fScale); m_fScale = fScale; } void CHUDRadio::UpdateLayout() { char *pTag = "RadioWindow"; LTIntPt offset; uint16 nTextWidth, nHeaderWidth; uint32 color = argbWhite; char szFrame[128] = "interface\\menu\\sprtex\\frame.dtx"; if (g_pLayoutMgr->Exist(pTag)) { m_BasePos = g_pLayoutMgr->GetPoint(pTag,"Pos"); uint8 nFont = (uint8)g_pLayoutMgr->GetInt(pTag,"Font"); m_pFont = g_pInterfaceResMgr->GetFont(nFont); m_nFontSize = m_nBaseFontSize = (uint8)g_pLayoutMgr->GetInt(pTag,"FontSize"); nHeaderWidth = 2 * m_nFontSize; m_nWidth = (uint16)g_pLayoutMgr->GetInt(pTag,"Width"); m_Offset = g_pLayoutMgr->GetPoint(pTag,"TextOffset"); offset = m_Offset; nTextWidth = (m_nWidth - 2 * offset.x) - nHeaderWidth; LTVector vCol = g_pLayoutMgr->GetVector(pTag,"TextColor"); uint8 nR = (uint8)vCol.x; uint8 nG = (uint8)vCol.y; uint8 nB = (uint8)vCol.z; color = SET_ARGB(0xFF,nR,nG,nB); g_pLayoutMgr->GetString(pTag,"Frame",szFrame,sizeof(szFrame)); } else { m_BasePos = LTIntPt(220,100); uint8 nFont = 0; m_pFont = g_pInterfaceResMgr->GetFont(nFont); m_nFontSize = m_nBaseFontSize = 12; nHeaderWidth = 2 * m_nFontSize; m_nWidth = 200; m_Offset = LTIntPt(8,8); offset = m_Offset; nTextWidth = (m_nWidth - 2 * offset.x) - nHeaderWidth; } m_Dlg.Create(g_pInterfaceResMgr->GetTexture(szFrame),m_nWidth,m_nWidth); m_Dlg.Show(LTTRUE); m_Dlg.SetScale(1.0f); for (int i = 0; i < m_nNumChoices; i++) { if (m_pText[i]) { m_Dlg.SetControlOffset(m_pText[i],offset); m_pText[i]->SetFont(m_pFont,m_nFontSize); } else { char szTmp[4]; sprintf(szTmp,"%d.",i+1); m_pText[i] = debug_new(CLTGUIColumnCtrl); m_pText[i]->Create(LTNULL,LTNULL,m_pFont,m_nFontSize,LTNULL); m_pText[i]->AddColumn(szTmp,nHeaderWidth); m_pText[i]->AddColumn("x",nTextWidth); m_Dlg.AddControl(m_pText[i],offset); } m_pText[i]->Show(LTTRUE); m_Dlg.SetControlOffset(m_pText[i],offset); offset.y += m_pText[i]->GetBaseHeight() + 4; m_pText[i]->SetColors(color,color,color); // m_pText[i]->SetFixedWidth(nTextWidth); } m_Dlg.SetBasePos(m_BasePos); m_Dlg.SetSize(m_nWidth,(offset.y+m_Offset.y)); m_Dlg.SetScale(g_pInterfaceResMgr->GetXRatio()); }
[ [ [ 1, 253 ] ] ]
be35e836728527e21dd8d44b8edd8630f6933ca1
952d78c7f43f694f2d676579ec9fa6e31211edaf
/aichallenge/ants/bots/KethBot/AI/Bug.h
da7741221d9d1d0b091c38b6d3d87f22a9865809
[]
no_license
pombreda/aichallenge-1
e991db57cc30d4a8115fd2e5232727c085ad4c1d
5cd69435673e417f5abf7ee99077fbb9138666b5
refs/heads/master
2020-12-31T03:55:51.292414
2011-09-25T05:14:45
2011-09-25T05:14:45
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,333
h
#ifndef BUG_H_ #define BUG_H_ #include <fstream> #include "globals.h" /* struct for debugging - this is gross but can be used pretty much like an ofstream, except the debug messages are stripped while compiling if DEBUG is false. example: Bug bug; bug.open("./debug.txt"); bug << "testing" << 2.0 << '%' << endl; bug.close(); */ struct Bug { std::ofstream file; bool freshLine; Bug() { }; //opens the specified file inline void open(const std::string &filename) { file.open(filename.c_str()); }; inline void setText(const std::string &text) { file.seekp(0); file << text; }; //closes the ofstream inline void close() { file.close(); }; }; //output function for endl inline Bug& operator<<(Bug &bug, std::ostream& (*manipulator)(std::ostream&)) { bug.file << manipulator; bug.freshLine = true; return bug; }; //template output function template <class T> inline Bug& operator<<(Bug &bug, const T &t) { if (bug.freshLine) { bug.freshLine = false; for (int i=0;i<codeDepth;i++) bug.file << " "; } bug.file << t; return bug; }; #endif //BUG_H_
[ [ [ 1, 4 ], [ 7, 16 ], [ 18, 20 ], [ 22, 42 ], [ 44, 49 ], [ 52, 58 ], [ 64, 67 ] ], [ [ 5, 6 ], [ 17, 17 ], [ 21, 21 ], [ 43, 43 ], [ 50, 51 ], [ 59, 63 ] ] ]
5562790f2b6cc77b94d777ce8799d56466a11ccf
27d5670a7739a866c3ad97a71c0fc9334f6875f2
/CPP/Shared/symbian-r6/TlsGlobalData.cpp
7aa0db38c5550d3a022b3957615318a6a95b4ca3
[ "BSD-3-Clause" ]
permissive
ravustaja/Wayfinder-S60-Navigator
ef506c418b8c2e6498ece6dcae67e583fb8a4a95
14d1b729b2cea52f726874687e78f17492949585
refs/heads/master
2021-01-16T20:53:37.630909
2010-06-28T09:51:10
2010-06-28T09:51:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,220
cpp
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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 the Vodafone Group Services Ltd 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 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. */ #include "TlsGlobalData.h" #ifdef SYMBIAN_9 namespace { TUint64 getThreadHandle() { class RThread thisThread; class TThreadId id = thisThread.Id(); TUint64 uId = id.Id(); return uId; } } #endif namespace isab{ TlsGlobalData::TlsGlobalData(class TlsGlobalData &t, class InnerThread *new_thread) : m_innerThread(new_thread), m_global(t.m_global), m_archGlobal(t.m_archGlobal) { } TlsGlobalData::TlsGlobalData() :m_innerThread(NULL), m_global(NULL), m_archGlobal(NULL) { } #if defined SYMBIAN_9 isab::TTlsData globalDataWsd; TTlsData::TTlsData(){ iMutex.CreateLocal(); } TTlsData::~TTlsData() { iMutex.Close(); } void TTlsData::SetTls(isab::TlsGlobalData* aData) { TUint64 uId = getThreadHandle(); iMutex.Wait(); iTlsMap[uId] = aData; iMutex.Signal(); } isab::TlsGlobalData* TTlsData::GetTls(){ TUint64 uId = getThreadHandle(); iMutex.Wait(); isab::TlsGlobalData* ret = iTlsMap[uId]; iMutex.Signal(); return ret; } void TTlsData::DeleteTls(isab::TlsGlobalData* aData){ TUint64 uId = getThreadHandle(); iMutex.Wait(); std::map<TUint64, isab::TlsGlobalData*>::iterator it = iTlsMap.find(uId); if(it != iTlsMap.end()){ isab::TlsGlobalData* data = it->second; if(aData != NULL && data != aData){ User::Panic(_L("TlsData"), 0); } iTlsMap.erase(it); delete data; } else { User::Panic(_L("TlsData"), 1); } iMutex.Signal(); } #endif }
[ [ [ 1, 85 ] ] ]
06b2d271cfb13fe59a2ac5157d704ce914339367
4d39427e647851791cbd2be2f7b7e14428b983de
/spatii.cpp
ef2c318564f1b8fd9d3fdf8677301a3d166df166
[]
no_license
elfumelfu/sandbox
dff76aa5f42659d08ad532e9c2dd17dbb453306a
8688489e14711234111abf858054ca0b332d8d0d
refs/heads/master
2021-01-22T09:26:49.570550
2011-12-06T19:11:18
2011-12-06T19:11:18
null
0
0
null
null
null
null
UTF-8
C++
false
false
815
cpp
//--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "spatii.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma link "ButtonWithColor" #pragma link "JvCheckListBox" #pragma link "JvExCheckLst" #pragma resource "*.dfm" TfrmSpatii *frmSpatii; //--------------------------------------------------------------------------- __fastcall TfrmSpatii::TfrmSpatii(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TfrmSpatii::ckbVitrinaClick(TObject *Sender) { txtVitrina->Enabled = ckbVitrina->Checked; } //---------------------------------------------------------------------------
[ [ [ 1, 24 ] ] ]
41e1ae118926f34600b3769b4c1cbc097079135e
1493997bb11718d3c18c6632b6dd010535f742f5
/battleship/win32/stdafx.cpp
ab46bd0fd2bf9736cde069306ec25b8bdd059778
[]
no_license
kovrov/scrap
cd0cf2c98a62d5af6e4206a2cab7bb8e4560b168
b0f38d95dd4acd89c832188265dece4d91383bbb
refs/heads/master
2021-01-20T12:21:34.742007
2010-01-12T19:53:23
2010-01-12T19:53:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
297
cpp
// stdafx.cpp : source file that includes just the standard includes // battleship.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
[ [ [ 1, 8 ] ] ]
e818ba38a0f6095151803f3d75acf2241811025a
0c9171e35cd66a4bee56770d84dc7739788d4b7e
/SpamProtector/EditPatternDlg.cpp
69b66f3a313a1bba361e1e22394b91d0f18389fe
[]
no_license
stonewell/spamprotector
99303a010e0fe546b26db0d2fe19cc996919a4ff
22b0efe9fbf64cfe1695b23a02023ae5202e5676
refs/heads/master
2016-09-06T09:41:13.494694
2009-07-12T12:22:09
2009-07-12T12:22:09
32,113,905
0
0
null
null
null
null
UTF-8
C++
false
false
2,714
cpp
// EditPatternDlg.cpp : implementation file // #include "stdafx.h" #include "SpamProtector.h" #include "EditPatternDlg.h" // CEditPatternDlg dialog CEditPatternDlg::CEditPatternDlg(CPattern * pPattern, CWnd* pParent /*=NULL*/) : CDialog(CEditPatternDlg::IDD, pParent) , m_BackupPattern(*pPattern) , m_pPattern(pPattern) { } CEditPatternDlg::~CEditPatternDlg() { } void CEditPatternDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); int nMatch = -1; if (!pDX->m_bSaveAndValidate) { nMatch = m_BackupPattern.m_bMatchPattern ? 0 : 1; } DDX_Radio(pDX, IDC_RDO_MATCH, nMatch); DDX_Text(pDX, IDC_EDT_PATTERN, m_BackupPattern.m_strPattern); DDX_Control(pDX, IDC_LST_ACTIONS, m_ctrlActionList); if (pDX->m_bSaveAndValidate) { m_BackupPattern.m_bMatchPattern = nMatch == 0; } } BEGIN_MESSAGE_MAP(CEditPatternDlg, CDialog) #if defined(_DEVICE_RESOLUTION_AWARE) && !defined(WIN32_PLATFORM_WFSP) ON_WM_SIZE() #endif ON_COMMAND(ID_MENU_ADDACTION, &CEditPatternDlg::OnMenuAddaction) ON_COMMAND(ID_MENU_EDITACTION, &CEditPatternDlg::OnMenuEditaction) ON_COMMAND(ID_MENU_REMOVEACTION, &CEditPatternDlg::OnMenuRemoveaction) ON_COMMAND(ID_MENU_REMOVEALLACTIONS, &CEditPatternDlg::OnMenuRemoveallactions) END_MESSAGE_MAP() // CEditPatternDlg message handlers #if defined(_DEVICE_RESOLUTION_AWARE) && !defined(WIN32_PLATFORM_WFSP) void CEditPatternDlg::OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/) { if (AfxIsDRAEnabled()) { DRA::RelayoutDialog( AfxGetResourceHandle(), this->m_hWnd, DRA::GetDisplayMode() != DRA::Portrait ? MAKEINTRESOURCE(IDD_EDIT_PATTERN_DIALOG_WIDE) : MAKEINTRESOURCE(IDD_EDIT_PATTERN_DIALOG)); } } #endif BOOL CEditPatternDlg::OnInitDialog() { CDialog::OnInitDialog(); #ifdef WIN32_PLATFORM_WFSP if (!m_dlgCommandBar.Create(this) || !m_dlgCommandBar.InsertMenuBar(IDR_EDIT_PATTERN)) { TRACE0("Failed to create CommandBar\n"); return FALSE; // fail to create } #endif // WIN32_PLATFORM_WFSP return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void CEditPatternDlg::OnMenuAddaction() { // TODO: Add your command handler code here } void CEditPatternDlg::OnMenuEditaction() { // TODO: Add your command handler code here } void CEditPatternDlg::OnMenuRemoveaction() { // TODO: Add your command handler code here } void CEditPatternDlg::OnMenuRemoveallactions() { // TODO: Add your command handler code here } void CEditPatternDlg::OnOK() { UpdateData(TRUE); *m_pPattern = m_BackupPattern; CDialog::OnOK(); }
[ "jingnan.si@c2d73aa4-6edd-11de-9ad3-cbed566d3045" ]
[ [ [ 1, 116 ] ] ]
cb962e71ecb7da1d3e1b7ff3e74bdf5966063f5c
fa134e5f64c51ccc1c2cac9b9cb0186036e41563
/GT/VerticalVelocityIndicator.cpp
21e5c70d0c2daeb5404ff0a33f701a06a726b10f
[]
no_license
dlsyaim/gradthes
70b626f08c5d64a1d19edc46d67637d9766437a6
db6ba305cca09f273e99febda4a8347816429700
refs/heads/master
2016-08-11T10:44:45.165199
2010-07-19T05:44:40
2010-07-19T05:44:40
36,058,688
0
1
null
null
null
null
UTF-8
C++
false
false
358
cpp
#include "stdafx.h" #include <stdio.h> #include <olectl.h> #include <math.h> #include <GL\gl.h> #include <string> #include <vector> #include "VerticalVelocityIndicator.h" VerticalVelocityIndicator::VerticalVelocityIndicator(void) { } VerticalVelocityIndicator::~VerticalVelocityIndicator(void) { }
[ "[email protected]@3a95c3f6-2b41-11df-be6c-f52728ce0ce6" ]
[ [ [ 1, 16 ] ] ]
3a0e1ded7ca63908d570172d46bdf8e435f36045
9448b8930b6bb3187e5d0f82c46cb37f854091de
/src/ghost/game_base.cpp
2dc4902f9ae6115dabd86746a26aa17a2e671786
[ "Apache-2.0" ]
permissive
jonasschneider/luaghost
7c5bfd51b17409d75f49166aa622eb028d78ba70
5abf9884ba8df470b59a660dcee55e10f59cb018
refs/heads/master
2021-01-10T09:55:26.184673
2010-06-28T20:44:34
2010-06-28T20:44:34
730,499
1
2
null
null
null
null
UTF-8
C++
false
false
158,255
cpp
/* Copyright [2008] [Trevor Hogan] 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. CODE PORTED FROM THE ORIGINAL GHOST PROJECT: http://ghost.pwner.org/ */ #include "ghost.h" #include "util.h" #include "config.h" #include "language.h" #include "socket.h" #include "ghostdb.h" #include "bnet.h" #include "map.h" #include "packed.h" #include "savegame.h" #include "replay.h" #include "gameplayer.h" #include "gameprotocol.h" #include "game_base.h" #include <cmath> #include <string.h> #include <time.h> #include "next_combination.h" // // CBaseGame // CBaseGame :: CBaseGame( CGHost *nGHost, CMap *nMap, CSaveGame *nSaveGame, uint16_t nHostPort, unsigned char nGameState, string nGameName, string nOwnerName, string nCreatorName, string nCreatorServer ) { m_GHost = nGHost; m_Socket = new CTCPServer( ); m_Protocol = new CGameProtocol( m_GHost ); m_Map = new CMap( *nMap ); m_SaveGame = nSaveGame; if( m_GHost->m_SaveReplays && !m_SaveGame ) m_Replay = new CReplay( ); else m_Replay = NULL; m_Exiting = false; m_Saving = false; m_HostPort = nHostPort; m_GameState = nGameState; m_VirtualHostPID = 255; m_FakePlayerPID = 255; // wait time of 1 minute = 0 empty actions required // wait time of 2 minutes = 1 empty action required // etc... if( m_GHost->m_ReconnectWaitTime == 0 ) m_GProxyEmptyActions = 0; else { m_GProxyEmptyActions = m_GHost->m_ReconnectWaitTime - 1; // clamp to 9 empty actions (10 minutes) if( m_GProxyEmptyActions > 9 ) m_GProxyEmptyActions = 9; } m_GameName = nGameName; m_LastGameName = nGameName; m_VirtualHostName = m_GHost->m_VirtualHostName; m_OwnerName = nOwnerName; m_CreatorName = nCreatorName; m_CreatorServer = nCreatorServer; m_HCLCommandString = m_Map->GetMapDefaultHCL( ); m_RandomSeed = GetTicks( ); m_HostCounter = m_GHost->m_HostCounter++; m_Latency = m_GHost->m_Latency; m_SyncLimit = m_GHost->m_SyncLimit; m_SyncCounter = 0; m_GameTicks = 0; m_CreationTime = GetTime( ); m_LastPingTime = GetTime( ); m_LastRefreshTime = GetTime( ); m_LastDownloadTicks = GetTime( ); m_DownloadCounter = 0; m_LastDownloadCounterResetTicks = GetTicks( ); m_LastAnnounceTime = 0; m_AnnounceInterval = 0; m_LastAutoStartTime = GetTime( ); m_AutoStartPlayers = 0; m_LastCountDownTicks = 0; m_CountDownCounter = 0; m_StartedLoadingTicks = 0; m_StartPlayers = 0; m_LastLagScreenResetTime = 0; m_LastActionSentTicks = 0; m_LastActionLateBy = 0; m_StartedLaggingTime = 0; m_LastLagScreenTime = 0; m_LastReservedSeen = GetTime( ); m_StartedKickVoteTime = 0; m_GameOverTime = 0; m_LastPlayerLeaveTicks = 0; m_MinimumScore = 0.0; m_MaximumScore = 0.0; m_SlotInfoChanged = false; m_Locked = false; m_RefreshMessages = m_GHost->m_RefreshMessages; m_RefreshError = false; m_RefreshRehosted = false; m_MuteAll = false; m_MuteLobby = false; m_CountDownStarted = false; m_GameLoading = false; m_GameLoaded = false; m_LoadInGame = m_Map->GetMapLoadInGame( ); m_Lagging = false; m_AutoSave = m_GHost->m_AutoSave; m_MatchMaking = false; m_LocalAdminMessages = m_GHost->m_LocalAdminMessages; if( m_SaveGame ) { m_EnforceSlots = m_SaveGame->GetSlots( ); m_Slots = m_SaveGame->GetSlots( ); // the savegame slots contain player entries // we really just want the open/closed/computer entries // so open all the player slots for( vector<CGameSlot> :: iterator i = m_Slots.begin( ); i != m_Slots.end( ); i++ ) { if( (*i).GetSlotStatus( ) == SLOTSTATUS_OCCUPIED && (*i).GetComputer( ) == 0 ) { (*i).SetPID( 0 ); (*i).SetDownloadStatus( 255 ); (*i).SetSlotStatus( SLOTSTATUS_OPEN ); } } } else m_Slots = m_Map->GetSlots( ); if( !m_GHost->m_IPBlackListFile.empty( ) ) { ifstream in; in.open( m_GHost->m_IPBlackListFile.c_str( ) ); if( in.fail( ) ) CONSOLE_Print( "[GAME: " + m_GameName + "] error loading IP blacklist file [" + m_GHost->m_IPBlackListFile + "]" ); else { CONSOLE_Print( "[GAME: " + m_GameName + "] loading IP blacklist file [" + m_GHost->m_IPBlackListFile + "]" ); string Line; while( !in.eof( ) ) { getline( in, Line ); // ignore blank lines and comments if( Line.empty( ) || Line[0] == '#' ) continue; // remove newlines and partial newlines to help fix issues with Windows formatted files on Linux systems Line.erase( remove( Line.begin( ), Line.end( ), ' ' ), Line.end( ) ); Line.erase( remove( Line.begin( ), Line.end( ), '\r' ), Line.end( ) ); Line.erase( remove( Line.begin( ), Line.end( ), '\n' ), Line.end( ) ); // ignore lines that don't look like IP addresses if( Line.find_first_not_of( "1234567890." ) != string :: npos ) continue; m_IPBlackList.insert( Line ); } in.close( ); CONSOLE_Print( "[GAME: " + m_GameName + "] loaded " + UTIL_ToString( m_IPBlackList.size( ) ) + " lines from IP blacklist file" ); } } // start listening for connections if( !m_GHost->m_BindAddress.empty( ) ) CONSOLE_Print( "[GAME: " + m_GameName + "] attempting to bind to address [" + m_GHost->m_BindAddress + "]" ); else CONSOLE_Print( "[GAME: " + m_GameName + "] attempting to bind to all available addresses" ); if( m_Socket->Listen( m_GHost->m_BindAddress, m_HostPort ) ) CONSOLE_Print( "[GAME: " + m_GameName + "] listening on port " + UTIL_ToString( m_HostPort ) ); else { CONSOLE_Print( "[GAME: " + m_GameName + "] error listening on port " + UTIL_ToString( m_HostPort ) ); m_Exiting = true; } } CBaseGame :: ~CBaseGame( ) { // save replay // todotodo: put this in a thread if( m_Replay && ( m_GameLoading || m_GameLoaded ) ) { time_t Now = time( NULL ); char Time[17]; memset( Time, 0, sizeof( char ) * 17 ); strftime( Time, sizeof( char ) * 17, "%Y-%m-%d %H-%M", localtime( &Now ) ); string MinString = UTIL_ToString( ( m_GameTicks / 1000 ) / 60 ); string SecString = UTIL_ToString( ( m_GameTicks / 1000 ) % 60 ); if( MinString.size( ) == 1 ) MinString.insert( 0, "0" ); if( SecString.size( ) == 1 ) SecString.insert( 0, "0" ); m_Replay->BuildReplay( m_GameName, m_StatString, m_GHost->m_ReplayWar3Version, m_GHost->m_ReplayBuildNumber ); m_Replay->Save( m_GHost->m_TFT, m_GHost->m_ReplayPath + UTIL_FileSafeName( "GHost++ " + string( Time ) + " " + m_GameName + " (" + MinString + "m" + SecString + "s).w3g" ) ); } delete m_Socket; delete m_Protocol; delete m_Map; delete m_Replay; for( vector<CPotentialPlayer *> :: iterator i = m_Potentials.begin( ); i != m_Potentials.end( ); i++ ) delete *i; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) delete *i; for( vector<CCallableScoreCheck *> :: iterator i = m_ScoreChecks.begin( ); i != m_ScoreChecks.end( ); i++ ) m_GHost->m_Callables.push_back( *i ); while( !m_Actions.empty( ) ) { delete m_Actions.front( ); m_Actions.pop( ); } } uint32_t CBaseGame :: GetNextTimedActionTicks( ) { // return the number of ticks (ms) until the next "timed action", which for our purposes is the next game update // the main GHost++ loop will make sure the next loop update happens at or before this value // note: there's no reason this function couldn't take into account the game's other timers too but they're far less critical // warning: this function must take into account when actions are not being sent (e.g. during loading or lagging) if( !m_GameLoaded || m_Lagging ) return 50; uint32_t TicksSinceLastUpdate = GetTicks( ) - m_LastActionSentTicks; if( TicksSinceLastUpdate > m_Latency - m_LastActionLateBy ) return 0; else return m_Latency - m_LastActionLateBy - TicksSinceLastUpdate; } uint32_t CBaseGame :: GetSlotsOccupied( ) { uint32_t NumSlotsOccupied = 0; for( vector<CGameSlot> :: iterator i = m_Slots.begin( ); i != m_Slots.end( ); i++ ) { if( (*i).GetSlotStatus( ) == SLOTSTATUS_OCCUPIED ) NumSlotsOccupied++; } return NumSlotsOccupied; } uint32_t CBaseGame :: GetSlotsOpen( ) { uint32_t NumSlotsOpen = 0; for( vector<CGameSlot> :: iterator i = m_Slots.begin( ); i != m_Slots.end( ); i++ ) { if( (*i).GetSlotStatus( ) == SLOTSTATUS_OPEN ) NumSlotsOpen++; } return NumSlotsOpen; } uint32_t CBaseGame :: GetNumPlayers( ) { uint32_t NumPlayers = GetNumHumanPlayers( ); if( m_FakePlayerPID != 255 ) NumPlayers++; return NumPlayers; } uint32_t CBaseGame :: GetNumHumanPlayers( ) { uint32_t NumHumanPlayers = 0; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetLeftMessageSent( ) ) NumHumanPlayers++; } return NumHumanPlayers; } string CBaseGame :: GetDescription( ) { string Description = m_GameName + " : " + m_OwnerName + " : " + UTIL_ToString( GetNumHumanPlayers( ) ) + "/" + UTIL_ToString( m_GameLoading || m_GameLoaded ? m_StartPlayers : m_Slots.size( ) ); if( m_GameLoading || m_GameLoaded ) Description += " : " + UTIL_ToString( ( m_GameTicks / 1000 ) / 60 ) + "m"; else Description += " : " + UTIL_ToString( ( GetTime( ) - m_CreationTime ) / 60 ) + "m"; return Description; } void CBaseGame :: SetAnnounce( uint32_t interval, string message ) { m_AnnounceInterval = interval; m_AnnounceMessage = message; m_LastAnnounceTime = GetTime( ); } unsigned int CBaseGame :: SetFD( void *fd, void *send_fd, int *nfds ) { unsigned int NumFDs = 0; if( m_Socket ) { m_Socket->SetFD( (fd_set *)fd, (fd_set *)send_fd, nfds ); NumFDs++; } for( vector<CPotentialPlayer *> :: iterator i = m_Potentials.begin( ); i != m_Potentials.end( ); i++ ) { if( (*i)->GetSocket( ) ) { (*i)->GetSocket( )->SetFD( (fd_set *)fd, (fd_set *)send_fd, nfds ); NumFDs++; } } for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetSocket( ) ) { (*i)->GetSocket( )->SetFD( (fd_set *)fd, (fd_set *)send_fd, nfds ); NumFDs++; } } return NumFDs; } bool CBaseGame :: Update( void *fd, void *send_fd ) { // update callables for( vector<CCallableScoreCheck *> :: iterator i = m_ScoreChecks.begin( ); i != m_ScoreChecks.end( ); ) { if( (*i)->GetReady( ) ) { double Score = (*i)->GetResult( ); for( vector<CPotentialPlayer *> :: iterator j = m_Potentials.begin( ); j != m_Potentials.end( ); j++ ) { if( (*j)->GetJoinPlayer( ) && (*j)->GetJoinPlayer( )->GetName( ) == (*i)->GetName( ) ) EventPlayerJoinedWithScore( *j, (*j)->GetJoinPlayer( ), Score ); } m_GHost->m_DB->RecoverCallable( *i ); delete *i; i = m_ScoreChecks.erase( i ); } else i++; } // update players for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); ) { if( (*i)->Update( fd ) ) { EventPlayerDeleted( *i ); delete *i; i = m_Players.erase( i ); } else i++; } for( vector<CPotentialPlayer *> :: iterator i = m_Potentials.begin( ); i != m_Potentials.end( ); ) { if( (*i)->Update( fd ) ) { // flush the socket (e.g. in case a rejection message is queued) if( (*i)->GetSocket( ) ) (*i)->GetSocket( )->DoSend( (fd_set *)send_fd ); delete *i; i = m_Potentials.erase( i ); } else i++; } // create the virtual host player if( !m_GameLoading && !m_GameLoaded && GetNumPlayers( ) < 12 ) CreateVirtualHost( ); // unlock the game if( m_Locked && !GetPlayerFromName( m_OwnerName, false ) ) { SendAllChat( m_GHost->m_Language->GameUnlocked( ) ); m_Locked = false; } // ping every 5 seconds // changed this to ping during game loading as well to hopefully fix some problems with people disconnecting during loading // changed this to ping during the game as well if( GetTime( ) - m_LastPingTime >= 5 ) { // note: we must send pings to players who are downloading the map because Warcraft III disconnects from the lobby if it doesn't receive a ping every ~90 seconds // so if the player takes longer than 90 seconds to download the map they would be disconnected unless we keep sending pings // todotodo: ignore pings received from players who have recently finished downloading the map SendAll( m_Protocol->SEND_W3GS_PING_FROM_HOST( ) ); // we also broadcast the game to the local network every 5 seconds so we hijack this timer for our nefarious purposes // however we only want to broadcast if the countdown hasn't started // see the !sendlan code later in this file for some more information about how this works // todotodo: should we send a game cancel message somewhere? we'll need to implement a host counter for it to work if( !m_CountDownStarted ) { // construct a fixed host counter which will be used to identify players from this "realm" (i.e. LAN) // the fixed host counter's 4 most significant bits will contain a 4 bit ID (0-15) // the rest of the fixed host counter will contain the 28 least significant bits of the actual host counter // since we're destroying 4 bits of information here the actual host counter should not be greater than 2^28 which is a reasonable assumption // when a player joins a game we can obtain the ID from the received host counter // note: LAN broadcasts use an ID of 0, battle.net refreshes use an ID of 1-10, the rest are unused uint32_t FixedHostCounter = m_HostCounter & 0x0FFFFFFF; if( m_SaveGame ) { // note: the PrivateGame flag is not set when broadcasting to LAN (as you might expect) uint32_t MapGameType = MAPGAMETYPE_SAVEDGAME; BYTEARRAY MapWidth; MapWidth.push_back( 0 ); MapWidth.push_back( 0 ); BYTEARRAY MapHeight; MapHeight.push_back( 0 ); MapHeight.push_back( 0 ); m_GHost->m_UDPSocket->Broadcast( 6112, m_Protocol->SEND_W3GS_GAMEINFO( m_GHost->m_TFT, m_GHost->m_LANWar3Version, UTIL_CreateByteArray( MapGameType, false ), m_Map->GetMapGameFlags( ), MapWidth, MapHeight, m_GameName, "Varlock", GetTime( ) - m_CreationTime, "Save\\Multiplayer\\" + m_SaveGame->GetFileNameNoPath( ), m_SaveGame->GetMagicNumber( ), 12, 12, m_HostPort, FixedHostCounter ) ); } else { // note: the PrivateGame flag is not set when broadcasting to LAN (as you might expect) // note: we do not use m_Map->GetMapGameType because none of the filters are set when broadcasting to LAN (also as you might expect) uint32_t MapGameType = MAPGAMETYPE_UNKNOWN0; m_GHost->m_UDPSocket->Broadcast( 6112, m_Protocol->SEND_W3GS_GAMEINFO( m_GHost->m_TFT, m_GHost->m_LANWar3Version, UTIL_CreateByteArray( MapGameType, false ), m_Map->GetMapGameFlags( ), m_Map->GetMapWidth( ), m_Map->GetMapHeight( ), m_GameName, "Varlock", GetTime( ) - m_CreationTime, m_Map->GetMapPath( ), m_Map->GetMapCRC( ), 12, 12, m_HostPort, FixedHostCounter ) ); } } m_LastPingTime = GetTime( ); } // auto rehost if there was a refresh error in autohosted games if( m_RefreshError && !m_CountDownStarted && m_GameState == GAME_PUBLIC && !m_GHost->m_AutoHostGameName.empty( ) && m_GHost->m_AutoHostMaximumGames != 0 && m_GHost->m_AutoHostAutoStartPlayers != 0 && m_AutoStartPlayers != 0 ) { // there's a slim chance that this isn't actually an autohosted game since there is no explicit autohost flag // however, if autohosting is enabled and this game is public and this game is set to autostart, it's probably autohosted // so rehost it using the current autohost game name string GameName = m_GHost->m_AutoHostGameName + " #" + UTIL_ToString( m_GHost->m_HostCounter ); CONSOLE_Print( "[GAME: " + m_GameName + "] automatically trying to rehost as public game [" + GameName + "] due to refresh failure" ); m_LastGameName = m_GameName; m_GameName = GameName; m_HostCounter = m_GHost->m_HostCounter++; m_RefreshError = false; for( vector<CBNET *> :: iterator i = m_GHost->m_BNETs.begin( ); i != m_GHost->m_BNETs.end( ); i++ ) { (*i)->QueueGameUncreate( ); (*i)->QueueEnterChat( ); // the game creation message will be sent on the next refresh } m_CreationTime = GetTime( ); m_LastRefreshTime = GetTime( ); } // refresh every 3 seconds if( !m_RefreshError && !m_CountDownStarted && m_GameState == GAME_PUBLIC && GetSlotsOpen( ) > 0 && GetTime( ) - m_LastRefreshTime >= 3 ) { // send a game refresh packet to each battle.net connection bool Refreshed = false; for( vector<CBNET *> :: iterator i = m_GHost->m_BNETs.begin( ); i != m_GHost->m_BNETs.end( ); i++ ) { // don't queue a game refresh message if the queue contains more than 1 packet because they're very low priority if( (*i)->GetOutPacketsQueued( ) <= 1 ) { (*i)->QueueGameRefresh( m_GameState, m_GameName, string( ), m_Map, m_SaveGame, GetTime( ) - m_CreationTime, m_HostCounter ); Refreshed = true; } } // only print the "game refreshed" message if we actually refreshed on at least one battle.net server if( m_RefreshMessages && Refreshed ) SendAllChat( m_GHost->m_Language->GameRefreshed( ) ); m_LastRefreshTime = GetTime( ); } // send more map data if( !m_GameLoading && !m_GameLoaded && GetTicks( ) - m_LastDownloadCounterResetTicks >= 1000 ) { // hackhack: another timer hijack is in progress here // since the download counter is reset once per second it's a great place to update the slot info if necessary if( m_SlotInfoChanged ) SendAllSlotInfo( ); m_DownloadCounter = 0; m_LastDownloadCounterResetTicks = GetTicks( ); } if( !m_GameLoading && !m_GameLoaded && GetTicks( ) - m_LastDownloadTicks >= 100 ) { uint32_t Downloaders = 0; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetDownloadStarted( ) && !(*i)->GetDownloadFinished( ) ) { Downloaders++; if( m_GHost->m_MaxDownloaders > 0 && Downloaders > m_GHost->m_MaxDownloaders ) break; // send up to 100 pieces of the map at once so that the download goes faster // if we wait for each MAPPART packet to be acknowledged by the client it'll take a long time to download // this is because we would have to wait the round trip time (the ping time) between sending every 1442 bytes of map data // doing it this way allows us to send at least 140 KB in each round trip interval which is much more reasonable // the theoretical throughput is [140 KB * 1000 / ping] in KB/sec so someone with 100 ping (round trip ping, not LC ping) could download at 1400 KB/sec // note: this creates a queue of map data which clogs up the connection when the client is on a slower connection (e.g. dialup) // in this case any changes to the lobby are delayed by the amount of time it takes to send the queued data (i.e. 140 KB, which could be 30 seconds or more) // for example, players joining and leaving, slot changes, chat messages would all appear to happen much later for the low bandwidth player // note: the throughput is also limited by the number of times this code is executed each second // e.g. if we send the maximum amount (140 KB) 10 times per second the theoretical throughput is 1400 KB/sec // therefore the maximum throughput is 1400 KB/sec regardless of ping and this value slowly diminishes as the player's ping increases // in addition to this, the throughput is limited by the configuration value bot_maxdownloadspeed // in summary: the actual throughput is MIN( 140 * 1000 / ping, 1400, bot_maxdownloadspeed ) in KB/sec assuming only one player is downloading the map uint32_t MapSize = UTIL_ByteArrayToUInt32( m_Map->GetMapSize( ), false ); while( (*i)->GetLastMapPartSent( ) < (*i)->GetLastMapPartAcked( ) + 1442 * 100 && (*i)->GetLastMapPartSent( ) < MapSize ) { if( (*i)->GetLastMapPartSent( ) == 0 ) { // overwrite the "started download ticks" since this is the first time we've sent any map data to the player // prior to this we've only determined if the player needs to download the map but it's possible we could have delayed sending any data due to download limits (*i)->SetStartedDownloadingTicks( GetTicks( ) ); } // limit the download speed if we're sending too much data // the download counter is the # of map bytes downloaded in the last second (it's reset once per second) if( m_GHost->m_MaxDownloadSpeed > 0 && m_DownloadCounter > m_GHost->m_MaxDownloadSpeed * 1024 ) break; Send( *i, m_Protocol->SEND_W3GS_MAPPART( GetHostPID( ), (*i)->GetPID( ), (*i)->GetLastMapPartSent( ), m_Map->GetMapData( ) ) ); (*i)->SetLastMapPartSent( (*i)->GetLastMapPartSent( ) + 1442 ); m_DownloadCounter += 1442; } } } m_LastDownloadTicks = GetTicks( ); } // announce every m_AnnounceInterval seconds if( !m_AnnounceMessage.empty( ) && !m_CountDownStarted && GetTime( ) - m_LastAnnounceTime >= m_AnnounceInterval ) { SendAllChat( m_AnnounceMessage ); m_LastAnnounceTime = GetTime( ); } // kick players who don't spoof check within 20 seconds when spoof checks are required and the game is autohosted if( !m_CountDownStarted && m_GHost->m_RequireSpoofChecks && m_GameState == GAME_PUBLIC && !m_GHost->m_AutoHostGameName.empty( ) && m_GHost->m_AutoHostMaximumGames != 0 && m_GHost->m_AutoHostAutoStartPlayers != 0 && m_AutoStartPlayers != 0 ) { for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetSpoofed( ) && GetTime( ) - (*i)->GetJoinTime( ) >= 20 ) { (*i)->SetDeleteMe( true ); (*i)->SetLeftReason( m_GHost->m_Language->WasKickedForNotSpoofChecking( ) ); (*i)->SetLeftCode( PLAYERLEAVE_LOBBY ); OpenSlot( GetSIDFromPID( (*i)->GetPID( ) ), false ); } } } // try to auto start every 10 seconds if( !m_CountDownStarted && m_AutoStartPlayers != 0 && GetTime( ) - m_LastAutoStartTime >= 10 ) { StartCountDownAuto( m_GHost->m_RequireSpoofChecks ); m_LastAutoStartTime = GetTime( ); } // countdown every 500 ms if( m_CountDownStarted && GetTicks( ) - m_LastCountDownTicks >= 500 ) { if( m_CountDownCounter > 0 ) { // we use a countdown counter rather than a "finish countdown time" here because it might alternately round up or down the count // this sometimes resulted in a countdown of e.g. "6 5 3 2 1" during my testing which looks pretty dumb // doing it this way ensures it's always "5 4 3 2 1" but each interval might not be *exactly* the same length SendAllChat( UTIL_ToString( m_CountDownCounter ) + ". . ." ); m_CountDownCounter--; } else if( !m_GameLoading && !m_GameLoaded ) EventGameStarted( ); m_LastCountDownTicks = GetTicks( ); } // check if the lobby is "abandoned" and needs to be closed since it will never start if( !m_GameLoading && !m_GameLoaded && m_AutoStartPlayers == 0 && m_GHost->m_LobbyTimeLimit > 0 ) { // check if there's a player with reserved status in the game for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetReserved( ) ) m_LastReservedSeen = GetTime( ); } // check if we've hit the time limit if( GetTime( ) - m_LastReservedSeen >= m_GHost->m_LobbyTimeLimit * 60 ) { CONSOLE_Print( "[GAME: " + m_GameName + "] is over (lobby time limit hit)" ); return true; } } // check if the game is loaded if( m_GameLoading ) { bool FinishedLoading = true; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { FinishedLoading = (*i)->GetFinishedLoading( ); if( !FinishedLoading ) break; } if( FinishedLoading ) { m_LastActionSentTicks = GetTicks( ); m_GameLoading = false; m_GameLoaded = true; EventGameLoaded( ); } else { // reset the "lag" screen (the load-in-game screen) every 30 seconds if( m_LoadInGame && GetTime( ) - m_LastLagScreenResetTime >= 30 ) { bool UsingGProxy = false; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetGProxy( ) ) UsingGProxy = true; } for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetFinishedLoading( ) ) { // stop the lag screen for( vector<CGamePlayer *> :: iterator j = m_Players.begin( ); j != m_Players.end( ); j++ ) { if( !(*j)->GetFinishedLoading( ) ) Send( *i, m_Protocol->SEND_W3GS_STOP_LAG( *j, true ) ); } // send an empty update // this resets the lag screen timer but creates a rather annoying problem // in order to prevent a desync we must make sure every player receives the exact same "desyncable game data" (updates and player leaves) in the exact same order // unfortunately we cannot send updates to players who are still loading the map, so we buffer the updates to those players (see the else clause a few lines down for the code) // in addition to this we must ensure any player leave messages are sent in the exact same position relative to these updates so those must be buffered too if( UsingGProxy && !(*i)->GetGProxy( ) ) { // we must send empty actions to non-GProxy++ players // GProxy++ will insert these itself so we don't need to send them to GProxy++ players // empty actions are used to extend the time a player can use when reconnecting for( unsigned char j = 0; j < m_GProxyEmptyActions; j++ ) Send( *i, m_Protocol->SEND_W3GS_INCOMING_ACTION( queue<CIncomingAction *>( ), 0 ) ); } Send( *i, m_Protocol->SEND_W3GS_INCOMING_ACTION( queue<CIncomingAction *>( ), 0 ) ); // start the lag screen Send( *i, m_Protocol->SEND_W3GS_START_LAG( m_Players, true ) ); } else { // buffer the empty update since the player is still loading the map if( UsingGProxy && !(*i)->GetGProxy( ) ) { // we must send empty actions to non-GProxy++ players // GProxy++ will insert these itself so we don't need to send them to GProxy++ players // empty actions are used to extend the time a player can use when reconnecting for( unsigned char j = 0; j < m_GProxyEmptyActions; j++ ) (*i)->AddLoadInGameData( m_Protocol->SEND_W3GS_INCOMING_ACTION( queue<CIncomingAction *>( ), 0 ) ); } (*i)->AddLoadInGameData( m_Protocol->SEND_W3GS_INCOMING_ACTION( queue<CIncomingAction *>( ), 0 ) ); } } // add actions to replay if( m_Replay ) { if( UsingGProxy ) { for( unsigned char i = 0; i < m_GProxyEmptyActions; i++ ) m_Replay->AddTimeSlot( 0, queue<CIncomingAction *>( ) ); } m_Replay->AddTimeSlot( 0, queue<CIncomingAction *>( ) ); } // Warcraft III doesn't seem to respond to empty actions /* if( UsingGProxy ) m_SyncCounter += m_GProxyEmptyActions; m_SyncCounter++; */ m_LastLagScreenResetTime = GetTime( ); } } } // keep track of the largest sync counter (the number of keepalive packets received by each player) // if anyone falls behind by more than m_SyncLimit keepalives we start the lag screen if( m_GameLoaded ) { // check if anyone has started lagging // we consider a player to have started lagging if they're more than m_SyncLimit keepalives behind if( !m_Lagging ) { string LaggingString; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( m_SyncCounter - (*i)->GetSyncCounter( ) > m_SyncLimit ) { (*i)->SetLagging( true ); (*i)->SetStartedLaggingTicks( GetTicks( ) ); m_Lagging = true; m_StartedLaggingTime = GetTime( ); if( LaggingString.empty( ) ) LaggingString = (*i)->GetName( ); else LaggingString += ", " + (*i)->GetName( ); } } if( m_Lagging ) { // start the lag screen CONSOLE_Print( "[GAME: " + m_GameName + "] started lagging on [" + LaggingString + "]" ); SendAll( m_Protocol->SEND_W3GS_START_LAG( m_Players ) ); // reset everyone's drop vote for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) (*i)->SetDropVote( false ); m_LastLagScreenResetTime = GetTime( ); } } if( m_Lagging ) { bool UsingGProxy = false; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetGProxy( ) ) UsingGProxy = true; } uint32_t WaitTime = 60; if( UsingGProxy ) WaitTime = ( m_GProxyEmptyActions + 1 ) * 60; if( GetTime( ) - m_StartedLaggingTime >= WaitTime ) StopLaggers( m_GHost->m_Language->WasAutomaticallyDroppedAfterSeconds( UTIL_ToString( WaitTime ) ) ); // we cannot allow the lag screen to stay up for more than ~65 seconds because Warcraft III disconnects if it doesn't receive an action packet at least this often // one (easy) solution is to simply drop all the laggers if they lag for more than 60 seconds // another solution is to reset the lag screen the same way we reset it when using load-in-game // this is required in order to give GProxy++ clients more time to reconnect if( GetTime( ) - m_LastLagScreenResetTime >= 60 ) { for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { // stop the lag screen for( vector<CGamePlayer *> :: iterator j = m_Players.begin( ); j != m_Players.end( ); j++ ) { if( (*j)->GetLagging( ) ) Send( *i, m_Protocol->SEND_W3GS_STOP_LAG( *j ) ); } // send an empty update // this resets the lag screen timer if( UsingGProxy && !(*i)->GetGProxy( ) ) { // we must send additional empty actions to non-GProxy++ players // GProxy++ will insert these itself so we don't need to send them to GProxy++ players // empty actions are used to extend the time a player can use when reconnecting for( unsigned char j = 0; j < m_GProxyEmptyActions; j++ ) Send( *i, m_Protocol->SEND_W3GS_INCOMING_ACTION( queue<CIncomingAction *>( ), 0 ) ); } Send( *i, m_Protocol->SEND_W3GS_INCOMING_ACTION( queue<CIncomingAction *>( ), 0 ) ); // start the lag screen Send( *i, m_Protocol->SEND_W3GS_START_LAG( m_Players ) ); } // add actions to replay if( m_Replay ) { if( UsingGProxy ) { for( unsigned char i = 0; i < m_GProxyEmptyActions; i++ ) m_Replay->AddTimeSlot( 0, queue<CIncomingAction *>( ) ); } m_Replay->AddTimeSlot( 0, queue<CIncomingAction *>( ) ); } // Warcraft III doesn't seem to respond to empty actions /* if( UsingGProxy ) m_SyncCounter += m_GProxyEmptyActions; m_SyncCounter++; */ m_LastLagScreenResetTime = GetTime( ); } // check if anyone has stopped lagging normally // we consider a player to have stopped lagging if they're less than half m_SyncLimit keepalives behind for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetLagging( ) && m_SyncCounter - (*i)->GetSyncCounter( ) < m_SyncLimit / 2 ) { // stop the lag screen for this player CONSOLE_Print( "[GAME: " + m_GameName + "] stopped lagging on [" + (*i)->GetName( ) + "]" ); SendAll( m_Protocol->SEND_W3GS_STOP_LAG( *i ) ); (*i)->SetLagging( false ); (*i)->SetStartedLaggingTicks( 0 ); } } // check if everyone has stopped lagging bool Lagging = false; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetLagging( ) ) Lagging = true; } m_Lagging = Lagging; // reset m_LastActionSentTicks because we want the game to stop running while the lag screen is up m_LastActionSentTicks = GetTicks( ); // keep track of the last lag screen time so we can avoid timing out players m_LastLagScreenTime = GetTime( ); } } // send actions every m_Latency milliseconds // actions are at the heart of every Warcraft 3 game but luckily we don't need to know their contents to relay them // we queue player actions in EventPlayerAction then just resend them in batches to all players here if( m_GameLoaded && !m_Lagging && GetTicks( ) - m_LastActionSentTicks >= m_Latency - m_LastActionLateBy ) SendAllActions( ); // expire the votekick if( !m_KickVotePlayer.empty( ) && GetTime( ) - m_StartedKickVoteTime >= 60 ) { CONSOLE_Print( "[GAME: " + m_GameName + "] votekick against player [" + m_KickVotePlayer + "] expired" ); SendAllChat( m_GHost->m_Language->VoteKickExpired( m_KickVotePlayer ) ); m_KickVotePlayer.clear( ); m_StartedKickVoteTime = 0; } // start the gameover timer if there's only one player left if( m_Players.size( ) == 1 && m_FakePlayerPID == 255 && m_GameOverTime == 0 && ( m_GameLoading || m_GameLoaded ) ) { CONSOLE_Print( "[GAME: " + m_GameName + "] gameover timer started (one player left)" ); m_GameOverTime = GetTime( ); } // finish the gameover timer if( m_GameOverTime != 0 && GetTime( ) - m_GameOverTime >= 60 ) { bool AlreadyStopped = true; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetDeleteMe( ) ) { AlreadyStopped = false; break; } } if( !AlreadyStopped ) { CONSOLE_Print( "[GAME: " + m_GameName + "] is over (gameover timer finished)" ); StopPlayers( "was disconnected (gameover timer finished)" ); } } // end the game if there aren't any players left if( m_Players.empty( ) && ( m_GameLoading || m_GameLoaded ) ) { if( !m_Saving ) { CONSOLE_Print( "[GAME: " + m_GameName + "] is over (no players left)" ); SaveGameData( ); m_Saving = true; } else if( IsGameDataSaved( ) ) return true; } // accept new connections if( m_Socket ) { CTCPSocket *NewSocket = m_Socket->Accept( (fd_set *)fd ); if( NewSocket ) { // check the IP blacklist if( m_IPBlackList.find( NewSocket->GetIPString( ) ) == m_IPBlackList.end( ) ) { if( m_GHost->m_TCPNoDelay ) NewSocket->SetNoDelay( true ); m_Potentials.push_back( new CPotentialPlayer( m_Protocol, this, NewSocket ) ); } else { CONSOLE_Print( "[GAME: " + m_GameName + "] rejected connection from [" + NewSocket->GetIPString( ) + "] due to blacklist" ); delete NewSocket; } } if( m_Socket->HasError( ) ) return true; } return m_Exiting; } void CBaseGame :: UpdatePost( void *send_fd ) { // we need to manually call DoSend on each player now because CGamePlayer :: Update doesn't do it // this is in case player 2 generates a packet for player 1 during the update but it doesn't get sent because player 1 already finished updating // in reality since we're queueing actions it might not make a big difference but oh well for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetSocket( ) ) (*i)->GetSocket( )->DoSend( (fd_set *)send_fd ); } for( vector<CPotentialPlayer *> :: iterator i = m_Potentials.begin( ); i != m_Potentials.end( ); i++ ) { if( (*i)->GetSocket( ) ) (*i)->GetSocket( )->DoSend( (fd_set *)send_fd ); } } void CBaseGame :: Send( CGamePlayer *player, BYTEARRAY data ) { if( player ) player->Send( data ); } void CBaseGame :: Send( unsigned char PID, BYTEARRAY data ) { Send( GetPlayerFromPID( PID ), data ); } void CBaseGame :: Send( BYTEARRAY PIDs, BYTEARRAY data ) { for( unsigned int i = 0; i < PIDs.size( ); i++ ) Send( PIDs[i], data ); } void CBaseGame :: SendAll( BYTEARRAY data ) { for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) (*i)->Send( data ); } void CBaseGame :: SendChat( unsigned char fromPID, CGamePlayer *player, string message ) { // send a private message to one player - it'll be marked [Private] in Warcraft 3 if( player ) { if( !m_GameLoading && !m_GameLoaded ) { if( message.size( ) > 254 ) message = message.substr( 0, 254 ); Send( player, m_Protocol->SEND_W3GS_CHAT_FROM_HOST( fromPID, UTIL_CreateByteArray( player->GetPID( ) ), 16, BYTEARRAY( ), message ) ); } else { unsigned char ExtraFlags[] = { 3, 0, 0, 0 }; // based on my limited testing it seems that the extra flags' first byte contains 3 plus the recipient's colour to denote a private message unsigned char SID = GetSIDFromPID( player->GetPID( ) ); if( SID < m_Slots.size( ) ) ExtraFlags[0] = 3 + m_Slots[SID].GetColour( ); if( message.size( ) > 127 ) message = message.substr( 0, 127 ); Send( player, m_Protocol->SEND_W3GS_CHAT_FROM_HOST( fromPID, UTIL_CreateByteArray( player->GetPID( ) ), 32, UTIL_CreateByteArray( ExtraFlags, 4 ), message ) ); } } } void CBaseGame :: SendChat( unsigned char fromPID, unsigned char toPID, string message ) { SendChat( fromPID, GetPlayerFromPID( toPID ), message ); } void CBaseGame :: SendChat( CGamePlayer *player, string message ) { SendChat( GetHostPID( ), player, message ); } void CBaseGame :: SendChat( unsigned char toPID, string message ) { SendChat( GetHostPID( ), toPID, message ); } void CBaseGame :: SendAllChat( unsigned char fromPID, string message ) { // send a public message to all players - it'll be marked [All] in Warcraft 3 if( GetNumHumanPlayers( ) > 0 ) { CONSOLE_Print( "[GAME: " + m_GameName + "] [Local]: " + message ); if( !m_GameLoading && !m_GameLoaded ) { if( message.size( ) > 254 ) message = message.substr( 0, 254 ); SendAll( m_Protocol->SEND_W3GS_CHAT_FROM_HOST( fromPID, GetPIDs( ), 16, BYTEARRAY( ), message ) ); } else { if( message.size( ) > 127 ) message = message.substr( 0, 127 ); SendAll( m_Protocol->SEND_W3GS_CHAT_FROM_HOST( fromPID, GetPIDs( ), 32, UTIL_CreateByteArray( (uint32_t)0, false ), message ) ); if( m_Replay ) m_Replay->AddChatMessage( fromPID, 32, 0, message ); } } } void CBaseGame :: SendAllChat( string message ) { SendAllChat( GetHostPID( ), message ); } void CBaseGame :: SendLocalAdminChat( string message ) { if( !m_LocalAdminMessages ) return; // send a message to LAN/local players who are admins // at the time of this writing it is only possible for the game owner to meet this criteria because being an admin requires spoof checking // this is mainly used for relaying battle.net whispers, chat messages, and emotes to these players for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetSpoofed( ) && IsOwner( (*i)->GetName( ) ) && ( UTIL_IsLanIP( (*i)->GetExternalIP( ) ) || UTIL_IsLocalIP( (*i)->GetExternalIP( ), m_GHost->m_LocalAddresses ) ) ) { if( m_VirtualHostPID != 255 ) SendChat( m_VirtualHostPID, *i, message ); else { // make the chat message originate from the recipient since it's not going to be logged to the replay SendChat( (*i)->GetPID( ), *i, message ); } } } } void CBaseGame :: SendAllSlotInfo( ) { if( !m_GameLoading && !m_GameLoaded ) { SendAll( m_Protocol->SEND_W3GS_SLOTINFO( m_Slots, m_RandomSeed, m_Map->GetMapLayoutStyle( ), m_Map->GetMapNumPlayers( ) ) ); m_SlotInfoChanged = false; } } void CBaseGame :: SendVirtualHostPlayerInfo( CGamePlayer *player ) { if( m_VirtualHostPID == 255 ) return; BYTEARRAY IP; IP.push_back( 0 ); IP.push_back( 0 ); IP.push_back( 0 ); IP.push_back( 0 ); Send( player, m_Protocol->SEND_W3GS_PLAYERINFO( m_VirtualHostPID, m_VirtualHostName, IP, IP ) ); } void CBaseGame :: SendFakePlayerInfo( CGamePlayer *player ) { if( m_FakePlayerPID == 255 ) return; BYTEARRAY IP; IP.push_back( 0 ); IP.push_back( 0 ); IP.push_back( 0 ); IP.push_back( 0 ); Send( player, m_Protocol->SEND_W3GS_PLAYERINFO( m_FakePlayerPID, "FakePlayer", IP, IP ) ); } void CBaseGame :: SendAllActions( ) { bool UsingGProxy = false; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetGProxy( ) ) UsingGProxy = true; } m_GameTicks += m_Latency; if( UsingGProxy ) { // we must send empty actions to non-GProxy++ players // GProxy++ will insert these itself so we don't need to send them to GProxy++ players // empty actions are used to extend the time a player can use when reconnecting for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetGProxy( ) ) { for( unsigned char j = 0; j < m_GProxyEmptyActions; j++ ) Send( *i, m_Protocol->SEND_W3GS_INCOMING_ACTION( queue<CIncomingAction *>( ), 0 ) ); } } if( m_Replay ) { for( unsigned char i = 0; i < m_GProxyEmptyActions; i++ ) m_Replay->AddTimeSlot( 0, queue<CIncomingAction *>( ) ); } } // Warcraft III doesn't seem to respond to empty actions /* if( UsingGProxy ) m_SyncCounter += m_GProxyEmptyActions; */ m_SyncCounter++; // we aren't allowed to send more than 1460 bytes in a single packet but it's possible we might have more than that many bytes waiting in the queue if( !m_Actions.empty( ) ) { // we use a "sub actions queue" which we keep adding actions to until we reach the size limit // start by adding one action to the sub actions queue queue<CIncomingAction *> SubActions; CIncomingAction *Action = m_Actions.front( ); m_Actions.pop( ); SubActions.push( Action ); uint32_t SubActionsLength = Action->GetLength( ); while( !m_Actions.empty( ) ) { Action = m_Actions.front( ); m_Actions.pop( ); // check if adding the next action to the sub actions queue would put us over the limit (1452 because the INCOMING_ACTION and INCOMING_ACTION2 packets use an extra 8 bytes) if( SubActionsLength + Action->GetLength( ) > 1452 ) { // we'd be over the limit if we added the next action to the sub actions queue // so send everything already in the queue and then clear it out // the W3GS_INCOMING_ACTION2 packet handles the overflow but it must be sent *before* the corresponding W3GS_INCOMING_ACTION packet SendAll( m_Protocol->SEND_W3GS_INCOMING_ACTION2( SubActions ) ); if( m_Replay ) m_Replay->AddTimeSlot2( SubActions ); while( !SubActions.empty( ) ) { delete SubActions.front( ); SubActions.pop( ); } SubActionsLength = 0; } SubActions.push( Action ); SubActionsLength += Action->GetLength( ); } SendAll( m_Protocol->SEND_W3GS_INCOMING_ACTION( SubActions, m_Latency ) ); if( m_Replay ) m_Replay->AddTimeSlot( m_Latency, SubActions ); while( !SubActions.empty( ) ) { delete SubActions.front( ); SubActions.pop( ); } } else { SendAll( m_Protocol->SEND_W3GS_INCOMING_ACTION( m_Actions, m_Latency ) ); if( m_Replay ) m_Replay->AddTimeSlot( m_Latency, m_Actions ); } uint32_t ActualSendInterval = GetTicks( ) - m_LastActionSentTicks; uint32_t ExpectedSendInterval = m_Latency - m_LastActionLateBy; m_LastActionLateBy = ActualSendInterval - ExpectedSendInterval; if( m_LastActionLateBy > m_Latency ) { // something is going terribly wrong - GHost++ is probably starved of resources // print a message because even though this will take more resources it should provide some information to the administrator for future reference // other solutions - dynamically modify the latency, request higher priority, terminate other games, ??? CONSOLE_Print( "[GAME: " + m_GameName + "] warning - the latency is " + UTIL_ToString( m_Latency ) + "ms but the last update was late by " + UTIL_ToString( m_LastActionLateBy ) + "ms" ); m_LastActionLateBy = m_Latency; } m_LastActionSentTicks = GetTicks( ); } void CBaseGame :: SendWelcomeMessage( CGamePlayer *player ) { // read from motd.txt if available (thanks to zeeg for this addition) ifstream in; in.open( m_GHost->m_MOTDFile.c_str( ) ); if( in.fail( ) ) { // default welcome message if( m_HCLCommandString.empty( ) ) SendChat( player, " " ); SendChat( player, " " ); SendChat( player, " " ); SendChat( player, " " ); SendChat( player, "GHost++ http://www.codelain.com/" ); SendChat( player, "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" ); SendChat( player, " Game Name: " + m_GameName ); if( !m_HCLCommandString.empty( ) ) SendChat( player, " HCL Command String: " + m_HCLCommandString ); } else { // custom welcome message // don't print more than 8 lines uint32_t Count = 0; string Line; while( !in.eof( ) && Count < 8 ) { getline( in, Line ); if( Line.empty( ) ) { if( !in.eof( ) ) SendChat( player, " " ); } else SendChat( player, Line ); Count++; } in.close( ); } } void CBaseGame :: SendEndMessage( ) { // read from gameover.txt if available ifstream in; in.open( m_GHost->m_GameOverFile.c_str( ) ); if( !in.fail( ) ) { // don't print more than 8 lines uint32_t Count = 0; string Line; while( !in.eof( ) && Count < 8 ) { getline( in, Line ); if( Line.empty( ) ) { if( !in.eof( ) ) SendAllChat( " " ); } else SendAllChat( Line ); Count++; } in.close( ); } } void CBaseGame :: EventPlayerDeleted( CGamePlayer *player ) { CONSOLE_Print( "[GAME: " + m_GameName + "] deleting player [" + player->GetName( ) + "]: " + player->GetLeftReason( ) ); // remove any queued spoofcheck messages for this player if( player->GetWhoisSent( ) && !player->GetJoinedRealm( ).empty( ) && player->GetSpoofedRealm( ).empty( ) ) { for( vector<CBNET *> :: iterator i = m_GHost->m_BNETs.begin( ); i != m_GHost->m_BNETs.end( ); i++ ) { if( (*i)->GetServer( ) == player->GetJoinedRealm( ) ) { // hackhack: there must be a better way to do this if( (*i)->GetPasswordHashType( ) == "pvpgn" ) (*i)->UnqueueChatCommand( "/whereis " + player->GetName( ) ); else (*i)->UnqueueChatCommand( "/whois " + player->GetName( ) ); (*i)->UnqueueChatCommand( "/w " + player->GetName( ) + " " + m_GHost->m_Language->SpoofCheckByReplying( ) ); } } } m_LastPlayerLeaveTicks = GetTicks( ); // in some cases we're forced to send the left message early so don't send it again if( player->GetLeftMessageSent( ) ) return; if( m_GameLoaded ) SendAllChat( player->GetName( ) + " " + player->GetLeftReason( ) + "." ); if( player->GetLagging( ) ) SendAll( m_Protocol->SEND_W3GS_STOP_LAG( player ) ); // autosave if( m_GameLoaded && player->GetLeftCode( ) == PLAYERLEAVE_DISCONNECT && m_AutoSave ) { string SaveGameName = UTIL_FileSafeName( "GHost++ AutoSave " + m_GameName + " (" + player->GetName( ) + ").w3z" ); CONSOLE_Print( "[GAME: " + m_GameName + "] auto saving [" + SaveGameName + "] before player drop, shortened send interval = " + UTIL_ToString( GetTicks( ) - m_LastActionSentTicks ) ); BYTEARRAY CRC; BYTEARRAY Action; Action.push_back( 6 ); UTIL_AppendByteArray( Action, SaveGameName ); m_Actions.push( new CIncomingAction( player->GetPID( ), CRC, Action ) ); // todotodo: with the new latency system there needs to be a way to send a 0-time action SendAllActions( ); } if( m_GameLoading && m_LoadInGame ) { // we must buffer player leave messages when using "load in game" to prevent desyncs // this ensures the player leave messages are correctly interleaved with the empty updates sent to each player for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetFinishedLoading( ) ) { if( !player->GetFinishedLoading( ) ) Send( *i, m_Protocol->SEND_W3GS_STOP_LAG( player ) ); Send( *i, m_Protocol->SEND_W3GS_PLAYERLEAVE_OTHERS( player->GetPID( ), player->GetLeftCode( ) ) ); } else (*i)->AddLoadInGameData( m_Protocol->SEND_W3GS_PLAYERLEAVE_OTHERS( player->GetPID( ), player->GetLeftCode( ) ) ); } } else { // tell everyone about the player leaving SendAll( m_Protocol->SEND_W3GS_PLAYERLEAVE_OTHERS( player->GetPID( ), player->GetLeftCode( ) ) ); } // set the replay's host PID and name to the last player to leave the game // this will get overwritten as each player leaves the game so it will eventually be set to the last player if( m_Replay && ( m_GameLoading || m_GameLoaded ) ) { m_Replay->SetHostPID( player->GetPID( ) ); m_Replay->SetHostName( player->GetName( ) ); // add leave message to replay if( m_GameLoading && !m_LoadInGame ) m_Replay->AddLeaveGameDuringLoading( 1, player->GetPID( ), player->GetLeftCode( ) ); else m_Replay->AddLeaveGame( 1, player->GetPID( ), player->GetLeftCode( ) ); } // abort the countdown if there was one in progress if( m_CountDownStarted && !m_GameLoading && !m_GameLoaded ) { SendAllChat( m_GHost->m_Language->CountDownAborted( ) ); m_CountDownStarted = false; } // abort the votekick if( !m_KickVotePlayer.empty( ) ) SendAllChat( m_GHost->m_Language->VoteKickCancelled( m_KickVotePlayer ) ); m_KickVotePlayer.clear( ); m_StartedKickVoteTime = 0; } void CBaseGame :: EventPlayerDisconnectTimedOut( CGamePlayer *player ) { if( player->GetGProxy( ) && m_GameLoaded ) { if( !player->GetGProxyDisconnectNoticeSent( ) ) { SendAllChat( player->GetName( ) + " " + m_GHost->m_Language->HasLostConnectionTimedOutGProxy( ) + "." ); player->SetGProxyDisconnectNoticeSent( true ); } if( GetTime( ) - player->GetLastGProxyWaitNoticeSentTime( ) >= 20 ) { uint32_t TimeRemaining = ( m_GProxyEmptyActions + 1 ) * 60 - ( GetTime( ) - m_StartedLaggingTime ); if( TimeRemaining > ( (uint32_t)m_GProxyEmptyActions + 1 ) * 60 ) TimeRemaining = ( m_GProxyEmptyActions + 1 ) * 60; SendAllChat( player->GetPID( ), m_GHost->m_Language->WaitForReconnectSecondsRemain( UTIL_ToString( TimeRemaining ) ) ); player->SetLastGProxyWaitNoticeSentTime( GetTime( ) ); } return; } // not only do we not do any timeouts if the game is lagging, we allow for an additional grace period of 10 seconds // this is because Warcraft 3 stops sending packets during the lag screen // so when the lag screen finishes we would immediately disconnect everyone if we didn't give them some extra time if( GetTime( ) - m_LastLagScreenTime >= 10 ) { player->SetDeleteMe( true ); player->SetLeftReason( m_GHost->m_Language->HasLostConnectionTimedOut( ) ); player->SetLeftCode( PLAYERLEAVE_DISCONNECT ); if( !m_GameLoading && !m_GameLoaded ) OpenSlot( GetSIDFromPID( player->GetPID( ) ), false ); } } void CBaseGame :: EventPlayerDisconnectPlayerError( CGamePlayer *player ) { // at the time of this comment there's only one player error and that's when we receive a bad packet from the player // since TCP has checks and balances for data corruption the chances of this are pretty slim player->SetDeleteMe( true ); player->SetLeftReason( m_GHost->m_Language->HasLostConnectionPlayerError( player->GetErrorString( ) ) ); player->SetLeftCode( PLAYERLEAVE_DISCONNECT ); if( !m_GameLoading && !m_GameLoaded ) OpenSlot( GetSIDFromPID( player->GetPID( ) ), false ); } void CBaseGame :: EventPlayerDisconnectSocketError( CGamePlayer *player ) { if( player->GetGProxy( ) && m_GameLoaded ) { if( !player->GetGProxyDisconnectNoticeSent( ) ) { SendAllChat( player->GetName( ) + " " + m_GHost->m_Language->HasLostConnectionSocketErrorGProxy( player->GetSocket( )->GetErrorString( ) ) + "." ); player->SetGProxyDisconnectNoticeSent( true ); } if( GetTime( ) - player->GetLastGProxyWaitNoticeSentTime( ) >= 20 ) { uint32_t TimeRemaining = ( m_GProxyEmptyActions + 1 ) * 60 - ( GetTime( ) - m_StartedLaggingTime ); if( TimeRemaining > ( (uint32_t)m_GProxyEmptyActions + 1 ) * 60 ) TimeRemaining = ( m_GProxyEmptyActions + 1 ) * 60; SendAllChat( player->GetPID( ), m_GHost->m_Language->WaitForReconnectSecondsRemain( UTIL_ToString( TimeRemaining ) ) ); player->SetLastGProxyWaitNoticeSentTime( GetTime( ) ); } return; } player->SetDeleteMe( true ); player->SetLeftReason( m_GHost->m_Language->HasLostConnectionSocketError( player->GetSocket( )->GetErrorString( ) ) ); player->SetLeftCode( PLAYERLEAVE_DISCONNECT ); if( !m_GameLoading && !m_GameLoaded ) OpenSlot( GetSIDFromPID( player->GetPID( ) ), false ); } void CBaseGame :: EventPlayerDisconnectConnectionClosed( CGamePlayer *player ) { if( player->GetGProxy( ) && m_GameLoaded ) { if( !player->GetGProxyDisconnectNoticeSent( ) ) { SendAllChat( player->GetName( ) + " " + m_GHost->m_Language->HasLostConnectionClosedByRemoteHostGProxy( ) + "." ); player->SetGProxyDisconnectNoticeSent( true ); } if( GetTime( ) - player->GetLastGProxyWaitNoticeSentTime( ) >= 20 ) { uint32_t TimeRemaining = ( m_GProxyEmptyActions + 1 ) * 60 - ( GetTime( ) - m_StartedLaggingTime ); if( TimeRemaining > ( (uint32_t)m_GProxyEmptyActions + 1 ) * 60 ) TimeRemaining = ( m_GProxyEmptyActions + 1 ) * 60; SendAllChat( player->GetPID( ), m_GHost->m_Language->WaitForReconnectSecondsRemain( UTIL_ToString( TimeRemaining ) ) ); player->SetLastGProxyWaitNoticeSentTime( GetTime( ) ); } return; } player->SetDeleteMe( true ); player->SetLeftReason( m_GHost->m_Language->HasLostConnectionClosedByRemoteHost( ) ); player->SetLeftCode( PLAYERLEAVE_DISCONNECT ); if( !m_GameLoading && !m_GameLoaded ) OpenSlot( GetSIDFromPID( player->GetPID( ) ), false ); } void CBaseGame :: EventPlayerJoined( CPotentialPlayer *potential, CIncomingJoinPlayer *joinPlayer ) { // check if the new player's name is empty or too long if( joinPlayer->GetName( ).empty( ) || joinPlayer->GetName( ).size( ) > 15 ) { CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game with an invalid name of length " + UTIL_ToString( joinPlayer->GetName( ).size( ) ) ); potential->Send( m_Protocol->SEND_W3GS_REJECTJOIN( REJECTJOIN_FULL ) ); potential->SetDeleteMe( true ); return; } // check if the new player's name is the same as the virtual host name if( joinPlayer->GetName( ) == m_VirtualHostName ) { CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game with the virtual host name" ); potential->Send( m_Protocol->SEND_W3GS_REJECTJOIN( REJECTJOIN_FULL ) ); potential->SetDeleteMe( true ); return; } // check if the new player's name is already taken if( GetPlayerFromName( joinPlayer->GetName( ), false ) ) { CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game but that name is already taken" ); // SendAllChat( m_GHost->m_Language->TryingToJoinTheGameButTaken( joinPlayer->GetName( ) ) ); potential->Send( m_Protocol->SEND_W3GS_REJECTJOIN( REJECTJOIN_FULL ) ); potential->SetDeleteMe( true ); return; } // identify their joined realm // this is only possible because when we send a game refresh via LAN or battle.net we encode an ID value in the 4 most significant bits of the host counter // the client sends the host counter when it joins so we can extract the ID value here // note: this is not a replacement for spoof checking since it doesn't verify the player's name and it can be spoofed anyway uint32_t HostCounterID = joinPlayer->GetHostCounter( ) >> 28; string JoinedRealm; // we use an ID value of 0 to denote joining via LAN if( HostCounterID != 0 ) { for( vector<CBNET *> :: iterator i = m_GHost->m_BNETs.begin( ); i != m_GHost->m_BNETs.end( ); i++ ) { if( (*i)->GetHostCounterID( ) == HostCounterID ) JoinedRealm = (*i)->GetServer( ); } } // check if the new player's name is banned but only if bot_banmethod is not 0 // this is because if bot_banmethod is 0 and we announce the ban here it's possible for the player to be rejected later because the game is full // this would allow the player to spam the chat by attempting to join the game multiple times in a row if( m_GHost->m_BanMethod != 0 ) { for( vector<CBNET *> :: iterator i = m_GHost->m_BNETs.begin( ); i != m_GHost->m_BNETs.end( ); i++ ) { if( (*i)->GetServer( ) == JoinedRealm ) { CDBBan *Ban = (*i)->IsBannedName( joinPlayer->GetName( ) ); if( Ban ) { if( m_GHost->m_BanMethod == 1 || m_GHost->m_BanMethod == 3 ) { CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game but is banned by name" ); if( m_IgnoredNames.find( joinPlayer->GetName( ) ) == m_IgnoredNames.end( ) ) { SendAllChat( m_GHost->m_Language->TryingToJoinTheGameButBannedByName( joinPlayer->GetName( ) ) ); SendAllChat( m_GHost->m_Language->UserWasBannedOnByBecause( Ban->GetServer( ), Ban->GetName( ), Ban->GetDate( ), Ban->GetAdmin( ), Ban->GetReason( ) ) ); m_IgnoredNames.insert( joinPlayer->GetName( ) ); } // let banned players "join" the game with an arbitrary PID then immediately close the connection // this causes them to be kicked back to the chat channel on battle.net vector<CGameSlot> Slots = m_Map->GetSlots( ); potential->Send( m_Protocol->SEND_W3GS_SLOTINFOJOIN( 1, potential->GetSocket( )->GetPort( ), potential->GetExternalIP( ), Slots, 0, m_Map->GetMapLayoutStyle( ), m_Map->GetMapNumPlayers( ) ) ); potential->SetDeleteMe( true ); return; } break; } } CDBBan *Ban = (*i)->IsBannedIP( potential->GetExternalIPString( ) ); if( Ban ) { if( m_GHost->m_BanMethod == 2 || m_GHost->m_BanMethod == 3 ) { CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game but is banned by IP address" ); if( m_IgnoredNames.find( joinPlayer->GetName( ) ) == m_IgnoredNames.end( ) ) { SendAllChat( m_GHost->m_Language->TryingToJoinTheGameButBannedByIP( joinPlayer->GetName( ), potential->GetExternalIPString( ), Ban->GetName( ) ) ); SendAllChat( m_GHost->m_Language->UserWasBannedOnByBecause( Ban->GetServer( ), Ban->GetName( ), Ban->GetDate( ), Ban->GetAdmin( ), Ban->GetReason( ) ) ); m_IgnoredNames.insert( joinPlayer->GetName( ) ); } // let banned players "join" the game with an arbitrary PID then immediately close the connection // this causes them to be kicked back to the chat channel on battle.net vector<CGameSlot> Slots = m_Map->GetSlots( ); potential->Send( m_Protocol->SEND_W3GS_SLOTINFOJOIN( 1, potential->GetSocket( )->GetPort( ), potential->GetExternalIP( ), Slots, 0, m_Map->GetMapLayoutStyle( ), m_Map->GetMapNumPlayers( ) ) ); potential->SetDeleteMe( true ); return; } break; } } } if( m_MatchMaking && m_AutoStartPlayers != 0 && !m_Map->GetMapMatchMakingCategory( ).empty( ) && m_Map->GetMapOptions( ) & MAPOPT_FIXEDPLAYERSETTINGS ) { // matchmaking is enabled // start a database query to determine the player's score // when the query is complete we will call EventPlayerJoinedWithScore m_ScoreChecks.push_back( m_GHost->m_DB->ThreadedScoreCheck( m_Map->GetMapMatchMakingCategory( ), joinPlayer->GetName( ), JoinedRealm ) ); return; } // check if the player is an admin or root admin on any connected realm for determining reserved status // we can't just use the spoof checked realm like in EventPlayerBotCommand because the player hasn't spoof checked yet bool AnyAdminCheck = false; for( vector<CBNET *> :: iterator i = m_GHost->m_BNETs.begin( ); i != m_GHost->m_BNETs.end( ); i++ ) { if( (*i)->IsAdmin( joinPlayer->GetName( ) ) || (*i)->IsRootAdmin( joinPlayer->GetName( ) ) ) { AnyAdminCheck = true; break; } } bool Reserved = IsReserved( joinPlayer->GetName( ) ) || ( m_GHost->m_ReserveAdmins && AnyAdminCheck ) || IsOwner( joinPlayer->GetName( ) ); // try to find a slot unsigned char SID = 255; unsigned char EnforcePID = 255; unsigned char EnforceSID = 0; CGameSlot EnforceSlot( 255, 0, 0, 0, 0, 0, 0 ); if( m_SaveGame ) { // in a saved game we enforce the player layout and the slot layout // unfortunately we don't know how to extract the player layout from the saved game so we use the data from a replay instead // the !enforcesg command defines the player layout by parsing a replay for( vector<PIDPlayer> :: iterator i = m_EnforcePlayers.begin( ); i != m_EnforcePlayers.end( ); i++ ) { if( (*i).second == joinPlayer->GetName( ) ) EnforcePID = (*i).first; } for( vector<CGameSlot> :: iterator i = m_EnforceSlots.begin( ); i != m_EnforceSlots.end( ); i++ ) { if( (*i).GetPID( ) == EnforcePID ) { EnforceSlot = *i; break; } EnforceSID++; } if( EnforcePID == 255 || EnforceSlot.GetPID( ) == 255 || EnforceSID >= m_Slots.size( ) ) { CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game but isn't in the enforced list" ); potential->Send( m_Protocol->SEND_W3GS_REJECTJOIN( REJECTJOIN_FULL ) ); potential->SetDeleteMe( true ); return; } SID = EnforceSID; } else { // try to find an empty slot SID = GetEmptySlot( false ); if( SID == 255 && Reserved ) { // a reserved player is trying to join the game but it's full, try to find a reserved slot SID = GetEmptySlot( true ); if( SID != 255 ) { CGamePlayer *KickedPlayer = GetPlayerFromSID( SID ); if( KickedPlayer ) { KickedPlayer->SetDeleteMe( true ); KickedPlayer->SetLeftReason( m_GHost->m_Language->WasKickedForReservedPlayer( joinPlayer->GetName( ) ) ); KickedPlayer->SetLeftCode( PLAYERLEAVE_LOBBY ); // send a playerleave message immediately since it won't normally get sent until the player is deleted which is after we send a playerjoin message // we don't need to call OpenSlot here because we're about to overwrite the slot data anyway SendAll( m_Protocol->SEND_W3GS_PLAYERLEAVE_OTHERS( KickedPlayer->GetPID( ), KickedPlayer->GetLeftCode( ) ) ); KickedPlayer->SetLeftMessageSent( true ); } } } if( SID == 255 && IsOwner( joinPlayer->GetName( ) ) ) { // the owner player is trying to join the game but it's full and we couldn't even find a reserved slot, kick the player in the lowest numbered slot // updated this to try to find a player slot so that we don't end up kicking a computer SID = 0; for( unsigned char i = 0; i < m_Slots.size( ); i++ ) { if( m_Slots[i].GetSlotStatus( ) == SLOTSTATUS_OCCUPIED && m_Slots[i].GetComputer( ) == 0 ) { SID = i; break; } } CGamePlayer *KickedPlayer = GetPlayerFromSID( SID ); if( KickedPlayer ) { KickedPlayer->SetDeleteMe( true ); KickedPlayer->SetLeftReason( m_GHost->m_Language->WasKickedForOwnerPlayer( joinPlayer->GetName( ) ) ); KickedPlayer->SetLeftCode( PLAYERLEAVE_LOBBY ); // send a playerleave message immediately since it won't normally get sent until the player is deleted which is after we send a playerjoin message // we don't need to call OpenSlot here because we're about to overwrite the slot data anyway SendAll( m_Protocol->SEND_W3GS_PLAYERLEAVE_OTHERS( KickedPlayer->GetPID( ), KickedPlayer->GetLeftCode( ) ) ); KickedPlayer->SetLeftMessageSent( true ); } } } if( SID >= m_Slots.size( ) ) { potential->Send( m_Protocol->SEND_W3GS_REJECTJOIN( REJECTJOIN_FULL ) ); potential->SetDeleteMe( true ); return; } // check if the new player's name is banned but only if bot_banmethod is 0 // this is because if bot_banmethod is 0 we need to wait to announce the ban until now because they could have been rejected because the game was full // this would have allowed the player to spam the chat by attempting to join the game multiple times in a row if( m_GHost->m_BanMethod == 0 ) { for( vector<CBNET *> :: iterator i = m_GHost->m_BNETs.begin( ); i != m_GHost->m_BNETs.end( ); i++ ) { if( (*i)->GetServer( ) == JoinedRealm ) { CDBBan *Ban = (*i)->IsBannedName( joinPlayer->GetName( ) ); if( Ban ) { CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is using a banned name" ); SendAllChat( m_GHost->m_Language->HasBannedName( joinPlayer->GetName( ) ) ); SendAllChat( m_GHost->m_Language->UserWasBannedOnByBecause( Ban->GetServer( ), Ban->GetName( ), Ban->GetDate( ), Ban->GetAdmin( ), Ban->GetReason( ) ) ); break; } } CDBBan *Ban = (*i)->IsBannedIP( potential->GetExternalIPString( ) ); if( Ban ) { CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is using a banned IP address" ); SendAllChat( m_GHost->m_Language->HasBannedIP( joinPlayer->GetName( ), potential->GetExternalIPString( ), Ban->GetName( ) ) ); SendAllChat( m_GHost->m_Language->UserWasBannedOnByBecause( Ban->GetServer( ), Ban->GetName( ), Ban->GetDate( ), Ban->GetAdmin( ), Ban->GetReason( ) ) ); break; } } } // we have a slot for the new player // make room for them by deleting the virtual host player if we have to if( GetNumPlayers( ) >= 11 || EnforcePID == m_VirtualHostPID ) DeleteVirtualHost( ); // turning the CPotentialPlayer into a CGamePlayer is a bit of a pain because we have to be careful not to close the socket // this problem is solved by setting the socket to NULL before deletion and handling the NULL case in the destructor // we also have to be careful to not modify the m_Potentials vector since we're currently looping through it CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] joined the game" ); CGamePlayer *Player = new CGamePlayer( potential, m_SaveGame ? EnforcePID : GetNewPID( ), JoinedRealm, joinPlayer->GetName( ), joinPlayer->GetInternalIP( ), Reserved ); // consider LAN players to have already spoof checked since they can't // since so many people have trouble with this feature we now use the JoinedRealm to determine LAN status if( JoinedRealm.empty( ) ) Player->SetSpoofed( true ); Player->SetWhoisShouldBeSent( m_GHost->m_SpoofChecks == 1 || ( m_GHost->m_SpoofChecks == 2 && AnyAdminCheck ) ); m_Players.push_back( Player ); potential->SetSocket( NULL ); potential->SetDeleteMe( true ); if( m_SaveGame ) m_Slots[SID] = EnforceSlot; else { if( m_Map->GetMapOptions( ) & MAPOPT_FIXEDPLAYERSETTINGS ) m_Slots[SID] = CGameSlot( Player->GetPID( ), 255, SLOTSTATUS_OCCUPIED, 0, m_Slots[SID].GetTeam( ), m_Slots[SID].GetColour( ), m_Slots[SID].GetRace( ) ); else { if( m_Map->GetMapFlags( ) & MAPFLAG_RANDOMRACES ) m_Slots[SID] = CGameSlot( Player->GetPID( ), 255, SLOTSTATUS_OCCUPIED, 0, 12, 12, SLOTRACE_RANDOM ); else m_Slots[SID] = CGameSlot( Player->GetPID( ), 255, SLOTSTATUS_OCCUPIED, 0, 12, 12, SLOTRACE_RANDOM | SLOTRACE_SELECTABLE ); // try to pick a team and colour // make sure there aren't too many other players already unsigned char NumOtherPlayers = 0; for( unsigned char i = 0; i < m_Slots.size( ); i++ ) { if( m_Slots[i].GetSlotStatus( ) == SLOTSTATUS_OCCUPIED && m_Slots[i].GetTeam( ) != 12 ) NumOtherPlayers++; } if( NumOtherPlayers < m_Map->GetMapNumPlayers( ) ) { if( SID < m_Map->GetMapNumPlayers( ) ) m_Slots[SID].SetTeam( SID ); else m_Slots[SID].SetTeam( 0 ); m_Slots[SID].SetColour( GetNewColour( ) ); } } } // send slot info to the new player // the SLOTINFOJOIN packet also tells the client their assigned PID and that the join was successful Player->Send( m_Protocol->SEND_W3GS_SLOTINFOJOIN( Player->GetPID( ), Player->GetSocket( )->GetPort( ), Player->GetExternalIP( ), m_Slots, m_RandomSeed, m_Map->GetMapLayoutStyle( ), m_Map->GetMapNumPlayers( ) ) ); // send virtual host info and fake player info (if present) to the new player SendVirtualHostPlayerInfo( Player ); SendFakePlayerInfo( Player ); BYTEARRAY BlankIP; BlankIP.push_back( 0 ); BlankIP.push_back( 0 ); BlankIP.push_back( 0 ); BlankIP.push_back( 0 ); for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetLeftMessageSent( ) && *i != Player ) { // send info about the new player to every other player if( (*i)->GetSocket( ) ) { if( m_GHost->m_HideIPAddresses ) (*i)->Send( m_Protocol->SEND_W3GS_PLAYERINFO( Player->GetPID( ), Player->GetName( ), BlankIP, BlankIP ) ); else (*i)->Send( m_Protocol->SEND_W3GS_PLAYERINFO( Player->GetPID( ), Player->GetName( ), Player->GetExternalIP( ), Player->GetInternalIP( ) ) ); } // send info about every other player to the new player if( m_GHost->m_HideIPAddresses ) Player->Send( m_Protocol->SEND_W3GS_PLAYERINFO( (*i)->GetPID( ), (*i)->GetName( ), BlankIP, BlankIP ) ); else Player->Send( m_Protocol->SEND_W3GS_PLAYERINFO( (*i)->GetPID( ), (*i)->GetName( ), (*i)->GetExternalIP( ), (*i)->GetInternalIP( ) ) ); } } // send a map check packet to the new player Player->Send( m_Protocol->SEND_W3GS_MAPCHECK( m_Map->GetMapPath( ), m_Map->GetMapSize( ), m_Map->GetMapInfo( ), m_Map->GetMapCRC( ), m_Map->GetMapSHA1( ) ) ); // send slot info to everyone, so the new player gets this info twice but everyone else still needs to know the new slot layout SendAllSlotInfo( ); // trigger Lua m_GHost->FireScriptEvent(new CLuaPlayerJoinedEvent(this, Player)); // send a welcome message SendWelcomeMessage( Player ); // if spoof checks are required and we won't automatically spoof check this player then tell them how to spoof check // e.g. if automatic spoof checks are disabled, or if automatic spoof checks are done on admins only and this player isn't an admin if( m_GHost->m_RequireSpoofChecks && !Player->GetWhoisShouldBeSent( ) ) { for( vector<CBNET *> :: iterator i = m_GHost->m_BNETs.begin( ); i != m_GHost->m_BNETs.end( ); i++ ) { // note: the following (commented out) line of code will crash because calling GetUniqueName( ) twice will result in two different return values // and unfortunately iterators are not valid if compared against different containers // this comment shall serve as warning to not make this mistake again since it has now been made twice before in GHost++ // string( (*i)->GetUniqueName( ).begin( ), (*i)->GetUniqueName( ).end( ) ) BYTEARRAY UniqueName = (*i)->GetUniqueName( ); if( (*i)->GetServer( ) == JoinedRealm ) SendChat( Player, m_GHost->m_Language->SpoofCheckByWhispering( string( UniqueName.begin( ), UniqueName.end( ) ) ) ); } } // check for multiple IP usage if( m_GHost->m_CheckMultipleIPUsage ) { string Others; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( Player != *i && Player->GetExternalIPString( ) == (*i)->GetExternalIPString( ) ) { if( Others.empty( ) ) Others = (*i)->GetName( ); else Others += ", " + (*i)->GetName( ); } } if( !Others.empty( ) ) SendAllChat( m_GHost->m_Language->MultipleIPAddressUsageDetected( joinPlayer->GetName( ), Others ) ); } // abort the countdown if there was one in progress if( m_CountDownStarted && !m_GameLoading && !m_GameLoaded ) { SendAllChat( m_GHost->m_Language->CountDownAborted( ) ); m_CountDownStarted = false; } // auto lock the game if( m_GHost->m_AutoLock && !m_Locked && IsOwner( joinPlayer->GetName( ) ) ) { SendAllChat( m_GHost->m_Language->GameLocked( ) ); m_Locked = true; } } void CBaseGame :: EventPlayerJoinedWithScore( CPotentialPlayer *potential, CIncomingJoinPlayer *joinPlayer, double score ) { // this function is only called when matchmaking is enabled // EventPlayerJoined will be called first in all cases // if matchmaking is enabled EventPlayerJoined will start a database query to retrieve the player's score and keep the connection open while we wait // when the database query is complete EventPlayerJoinedWithScore will be called // check if the new player's name is the same as the virtual host name if( joinPlayer->GetName( ) == m_VirtualHostName ) { CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game with the virtual host name" ); potential->Send( m_Protocol->SEND_W3GS_REJECTJOIN( REJECTJOIN_FULL ) ); potential->SetDeleteMe( true ); return; } // check if the new player's name is already taken if( GetPlayerFromName( joinPlayer->GetName( ), false ) ) { CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game but that name is already taken" ); // SendAllChat( m_GHost->m_Language->TryingToJoinTheGameButTaken( joinPlayer->GetName( ) ) ); potential->Send( m_Protocol->SEND_W3GS_REJECTJOIN( REJECTJOIN_FULL ) ); potential->SetDeleteMe( true ); return; } // check if the new player's score is within the limits if( score > -99999.0 && ( score < m_MinimumScore || score > m_MaximumScore ) ) { CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game but has a rating [" + UTIL_ToString( score, 2 ) + "] outside the limits [" + UTIL_ToString( m_MinimumScore, 2 ) + "] to [" + UTIL_ToString( m_MaximumScore, 2 ) + "]" ); potential->Send( m_Protocol->SEND_W3GS_REJECTJOIN( REJECTJOIN_FULL ) ); potential->SetDeleteMe( true ); return; } // try to find an empty slot unsigned char SID = GetEmptySlot( false ); // check if the player is an admin or root admin on any connected realm for determining reserved status // we can't just use the spoof checked realm like in EventPlayerBotCommand because the player hasn't spoof checked yet bool AnyAdminCheck = false; for( vector<CBNET *> :: iterator i = m_GHost->m_BNETs.begin( ); i != m_GHost->m_BNETs.end( ); i++ ) { if( (*i)->IsAdmin( joinPlayer->GetName( ) ) || (*i)->IsRootAdmin( joinPlayer->GetName( ) ) ) { AnyAdminCheck = true; break; } } if( SID == 255 ) { // no empty slot found, time to do some matchmaking! // note: the database code uses a score of -100000 to denote "no score" if( m_GHost->m_MatchMakingMethod == 0 ) { // method 0: don't do any matchmaking // that was easy! } else if( m_GHost->m_MatchMakingMethod == 1 ) { // method 1: furthest score method // calculate the average score of all players in the game // then kick the player with the score furthest from that average (or a player without a score) // this ensures that the players' scores will tend to converge as players join the game double AverageScore = 0.0; uint32_t PlayersScored = 0; if( score > -99999.0 ) { AverageScore = score; PlayersScored = 1; } for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetScore( ) > -99999.0 ) { AverageScore += (*i)->GetScore( ); PlayersScored++; } } if( PlayersScored > 0 ) AverageScore /= PlayersScored; // calculate the furthest player from the average CGamePlayer *FurthestPlayer = NULL; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !FurthestPlayer || (*i)->GetScore( ) < -99999.0 || abs( (*i)->GetScore( ) - AverageScore ) > abs( FurthestPlayer->GetScore( ) - AverageScore ) ) FurthestPlayer = *i; } if( !FurthestPlayer ) { // this should be impossible CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game but no furthest player was found (this should be impossible)" ); potential->Send( m_Protocol->SEND_W3GS_REJECTJOIN( REJECTJOIN_FULL ) ); potential->SetDeleteMe( true ); return; } // kick the new player if they have the furthest score if( score < -99999.0 || abs( score - AverageScore ) > abs( FurthestPlayer->GetScore( ) - AverageScore ) ) { if( score < -99999.0 ) CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game but has the furthest rating [N/A] from the average [" + UTIL_ToString( AverageScore, 2 ) + "]" ); else CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game but has the furthest rating [" + UTIL_ToString( score, 2 ) + "] from the average [" + UTIL_ToString( AverageScore, 2 ) + "]" ); potential->Send( m_Protocol->SEND_W3GS_REJECTJOIN( REJECTJOIN_FULL ) ); potential->SetDeleteMe( true ); return; } // kick the furthest player SID = GetSIDFromPID( FurthestPlayer->GetPID( ) ); FurthestPlayer->SetDeleteMe( true ); if( FurthestPlayer->GetScore( ) < -99999.0 ) FurthestPlayer->SetLeftReason( m_GHost->m_Language->WasKickedForHavingFurthestScore( "N/A", UTIL_ToString( AverageScore, 2 ) ) ); else FurthestPlayer->SetLeftReason( m_GHost->m_Language->WasKickedForHavingFurthestScore( UTIL_ToString( FurthestPlayer->GetScore( ), 2 ), UTIL_ToString( AverageScore, 2 ) ) ); FurthestPlayer->SetLeftCode( PLAYERLEAVE_LOBBY ); // send a playerleave message immediately since it won't normally get sent until the player is deleted which is after we send a playerjoin message // we don't need to call OpenSlot here because we're about to overwrite the slot data anyway SendAll( m_Protocol->SEND_W3GS_PLAYERLEAVE_OTHERS( FurthestPlayer->GetPID( ), FurthestPlayer->GetLeftCode( ) ) ); FurthestPlayer->SetLeftMessageSent( true ); if( FurthestPlayer->GetScore( ) < -99999.0 ) SendAllChat( m_GHost->m_Language->PlayerWasKickedForFurthestScore( FurthestPlayer->GetName( ), "N/A", UTIL_ToString( AverageScore, 2 ) ) ); else SendAllChat( m_GHost->m_Language->PlayerWasKickedForFurthestScore( FurthestPlayer->GetName( ), UTIL_ToString( FurthestPlayer->GetScore( ), 2 ), UTIL_ToString( AverageScore, 2 ) ) ); } else if( m_GHost->m_MatchMakingMethod == 2 ) { // method 2: lowest score method // kick the player with the lowest score (or a player without a score) CGamePlayer *LowestPlayer = NULL; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !LowestPlayer || (*i)->GetScore( ) < -99999.0 || (*i)->GetScore( ) < LowestPlayer->GetScore( ) ) LowestPlayer = *i; } if( !LowestPlayer ) { // this should be impossible CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game but no lowest player was found (this should be impossible)" ); potential->Send( m_Protocol->SEND_W3GS_REJECTJOIN( REJECTJOIN_FULL ) ); potential->SetDeleteMe( true ); return; } // kick the new player if they have the lowest score if( score < -99999.0 || score < LowestPlayer->GetScore( ) ) { if( score < -99999.0 ) CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game but has the lowest rating [N/A]" ); else CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] is trying to join the game but has the lowest rating [" + UTIL_ToString( score, 2 ) + "]" ); potential->Send( m_Protocol->SEND_W3GS_REJECTJOIN( REJECTJOIN_FULL ) ); potential->SetDeleteMe( true ); return; } // kick the lowest player SID = GetSIDFromPID( LowestPlayer->GetPID( ) ); LowestPlayer->SetDeleteMe( true ); if( LowestPlayer->GetScore( ) < -99999.0 ) LowestPlayer->SetLeftReason( m_GHost->m_Language->WasKickedForHavingLowestScore( "N/A" ) ); else LowestPlayer->SetLeftReason( m_GHost->m_Language->WasKickedForHavingLowestScore( UTIL_ToString( LowestPlayer->GetScore( ), 2 ) ) ); LowestPlayer->SetLeftCode( PLAYERLEAVE_LOBBY ); // send a playerleave message immediately since it won't normally get sent until the player is deleted which is after we send a playerjoin message // we don't need to call OpenSlot here because we're about to overwrite the slot data anyway SendAll( m_Protocol->SEND_W3GS_PLAYERLEAVE_OTHERS( LowestPlayer->GetPID( ), LowestPlayer->GetLeftCode( ) ) ); LowestPlayer->SetLeftMessageSent( true ); if( LowestPlayer->GetScore( ) < -99999.0 ) SendAllChat( m_GHost->m_Language->PlayerWasKickedForLowestScore( LowestPlayer->GetName( ), "N/A" ) ); else SendAllChat( m_GHost->m_Language->PlayerWasKickedForLowestScore( LowestPlayer->GetName( ), UTIL_ToString( LowestPlayer->GetScore( ), 2 ) ) ); } } if( SID >= m_Slots.size( ) ) { potential->Send( m_Protocol->SEND_W3GS_REJECTJOIN( REJECTJOIN_FULL ) ); potential->SetDeleteMe( true ); return; } // we have a slot for the new player // make room for them by deleting the virtual host player if we have to if( GetNumPlayers( ) >= 11 ) DeleteVirtualHost( ); // identify their joined realm // this is only possible because when we send a game refresh via LAN or battle.net we encode an ID value in the 4 most significant bits of the host counter // the client sends the host counter when it joins so we can extract the ID value here // note: this is not a replacement for spoof checking since it doesn't verify the player's name and it can be spoofed anyway uint32_t HostCounterID = joinPlayer->GetHostCounter( ) >> 28; string JoinedRealm; // we use an ID value of 0 to denote joining via LAN if( HostCounterID != 0 ) { for( vector<CBNET *> :: iterator i = m_GHost->m_BNETs.begin( ); i != m_GHost->m_BNETs.end( ); i++ ) { if( (*i)->GetHostCounterID( ) == HostCounterID ) JoinedRealm = (*i)->GetServer( ); } } // turning the CPotentialPlayer into a CGamePlayer is a bit of a pain because we have to be careful not to close the socket // this problem is solved by setting the socket to NULL before deletion and handling the NULL case in the destructor // we also have to be careful to not modify the m_Potentials vector since we're currently looping through it CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + joinPlayer->GetName( ) + "|" + potential->GetExternalIPString( ) + "] joined the game" ); CGamePlayer *Player = new CGamePlayer( potential, GetNewPID( ), JoinedRealm, joinPlayer->GetName( ), joinPlayer->GetInternalIP( ), false ); // consider LAN players to have already spoof checked since they can't // since so many people have trouble with this feature we now use the JoinedRealm to determine LAN status if( JoinedRealm.empty( ) ) Player->SetSpoofed( true ); Player->SetWhoisShouldBeSent( m_GHost->m_SpoofChecks == 1 || ( m_GHost->m_SpoofChecks == 2 && AnyAdminCheck ) ); Player->SetScore( score ); m_Players.push_back( Player ); potential->SetSocket( NULL ); potential->SetDeleteMe( true ); m_Slots[SID] = CGameSlot( Player->GetPID( ), 255, SLOTSTATUS_OCCUPIED, 0, m_Slots[SID].GetTeam( ), m_Slots[SID].GetColour( ), m_Slots[SID].GetRace( ) ); // send slot info to the new player // the SLOTINFOJOIN packet also tells the client their assigned PID and that the join was successful Player->Send( m_Protocol->SEND_W3GS_SLOTINFOJOIN( Player->GetPID( ), Player->GetSocket( )->GetPort( ), Player->GetExternalIP( ), m_Slots, m_RandomSeed, m_Map->GetMapLayoutStyle( ), m_Map->GetMapNumPlayers( ) ) ); // send virtual host info and fake player info (if present) to the new player SendVirtualHostPlayerInfo( Player ); SendFakePlayerInfo( Player ); BYTEARRAY BlankIP; BlankIP.push_back( 0 ); BlankIP.push_back( 0 ); BlankIP.push_back( 0 ); BlankIP.push_back( 0 ); for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetLeftMessageSent( ) && *i != Player ) { // send info about the new player to every other player if( (*i)->GetSocket( ) ) { if( m_GHost->m_HideIPAddresses ) (*i)->Send( m_Protocol->SEND_W3GS_PLAYERINFO( Player->GetPID( ), Player->GetName( ), BlankIP, BlankIP ) ); else (*i)->Send( m_Protocol->SEND_W3GS_PLAYERINFO( Player->GetPID( ), Player->GetName( ), Player->GetExternalIP( ), Player->GetInternalIP( ) ) ); } // send info about every other player to the new player if( m_GHost->m_HideIPAddresses ) Player->Send( m_Protocol->SEND_W3GS_PLAYERINFO( (*i)->GetPID( ), (*i)->GetName( ), BlankIP, BlankIP ) ); else Player->Send( m_Protocol->SEND_W3GS_PLAYERINFO( (*i)->GetPID( ), (*i)->GetName( ), (*i)->GetExternalIP( ), (*i)->GetInternalIP( ) ) ); } } // send a map check packet to the new player Player->Send( m_Protocol->SEND_W3GS_MAPCHECK( m_Map->GetMapPath( ), m_Map->GetMapSize( ), m_Map->GetMapInfo( ), m_Map->GetMapCRC( ), m_Map->GetMapSHA1( ) ) ); // send slot info to everyone, so the new player gets this info twice but everyone else still needs to know the new slot layout SendAllSlotInfo( ); // send a welcome message SendWelcomeMessage( Player ); // if spoof checks are required and we won't automatically spoof check this player then tell them how to spoof check // e.g. if automatic spoof checks are disabled, or if automatic spoof checks are done on admins only and this player isn't an admin if( m_GHost->m_RequireSpoofChecks && !Player->GetWhoisShouldBeSent( ) ) { for( vector<CBNET *> :: iterator i = m_GHost->m_BNETs.begin( ); i != m_GHost->m_BNETs.end( ); i++ ) { // note: the following (commented out) line of code will crash because calling GetUniqueName( ) twice will result in two different return values // and unfortunately iterators are not valid if compared against different containers // this comment shall serve as warning to not make this mistake again since it has now been made twice before in GHost++ // string( (*i)->GetUniqueName( ).begin( ), (*i)->GetUniqueName( ).end( ) ) BYTEARRAY UniqueName = (*i)->GetUniqueName( ); if( (*i)->GetServer( ) == JoinedRealm ) SendChat( Player, m_GHost->m_Language->SpoofCheckByWhispering( string( UniqueName.begin( ), UniqueName.end( ) ) ) ); } } if( score < -99999.0 ) SendAllChat( m_GHost->m_Language->PlayerHasScore( joinPlayer->GetName( ), "N/A" ) ); else SendAllChat( m_GHost->m_Language->PlayerHasScore( joinPlayer->GetName( ), UTIL_ToString( score, 2 ) ) ); uint32_t PlayersScored = 0; uint32_t PlayersNotScored = 0; double AverageScore = 0.0; double MinScore = 0.0; double MaxScore = 0.0; bool Found = false; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetLeftMessageSent( ) ) { if( (*i)->GetScore( ) < -99999.0 ) PlayersNotScored++; else { PlayersScored++; AverageScore += (*i)->GetScore( ); if( !Found || (*i)->GetScore( ) < MinScore ) MinScore = (*i)->GetScore( ); if( !Found || (*i)->GetScore( ) > MaxScore ) MaxScore = (*i)->GetScore( ); Found = true; } } } double Spread = MaxScore - MinScore; SendAllChat( m_GHost->m_Language->RatedPlayersSpread( UTIL_ToString( PlayersScored ), UTIL_ToString( PlayersScored + PlayersNotScored ), UTIL_ToString( (uint32_t)Spread ) ) ); // check for multiple IP usage if( m_GHost->m_CheckMultipleIPUsage ) { string Others; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( Player != *i && Player->GetExternalIPString( ) == (*i)->GetExternalIPString( ) ) { if( Others.empty( ) ) Others = (*i)->GetName( ); else Others += ", " + (*i)->GetName( ); } } if( !Others.empty( ) ) SendAllChat( m_GHost->m_Language->MultipleIPAddressUsageDetected( joinPlayer->GetName( ), Others ) ); } // abort the countdown if there was one in progress if( m_CountDownStarted && !m_GameLoading && !m_GameLoaded ) { SendAllChat( m_GHost->m_Language->CountDownAborted( ) ); m_CountDownStarted = false; } // auto lock the game if( m_GHost->m_AutoLock && !m_Locked && IsOwner( joinPlayer->GetName( ) ) ) { SendAllChat( m_GHost->m_Language->GameLocked( ) ); m_Locked = true; } // balance the slots if( m_AutoStartPlayers != 0 && GetNumHumanPlayers( ) == m_AutoStartPlayers ) BalanceSlots( ); } void CBaseGame :: EventPlayerLeft( CGamePlayer *player, uint32_t reason ) { // this function is only called when a player leave packet is received, not when there's a socket error, kick, etc... player->SetDeleteMe( true ); if( reason == PLAYERLEAVE_GPROXY ) player->SetLeftReason( m_GHost->m_Language->WasUnrecoverablyDroppedFromGProxy( ) ); else player->SetLeftReason( m_GHost->m_Language->HasLeftVoluntarily( ) ); player->SetLeftCode( PLAYERLEAVE_LOST ); if( !m_GameLoading && !m_GameLoaded ) OpenSlot( GetSIDFromPID( player->GetPID( ) ), false ); } void CBaseGame :: EventPlayerLoaded( CGamePlayer *player ) { CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + player->GetName( ) + "] finished loading in " + UTIL_ToString( (float)( player->GetFinishedLoadingTicks( ) - m_StartedLoadingTicks ) / 1000, 2 ) + " seconds" ); if( m_LoadInGame ) { // send any buffered data to the player now // see the Update function for more information about why we do this // this includes player loaded messages, game updates, and player leave messages queue<BYTEARRAY> *LoadInGameData = player->GetLoadInGameData( ); while( !LoadInGameData->empty( ) ) { Send( player, LoadInGameData->front( ) ); LoadInGameData->pop( ); } // start the lag screen for the new player bool FinishedLoading = true; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { FinishedLoading = (*i)->GetFinishedLoading( ); if( !FinishedLoading ) break; } if( !FinishedLoading ) Send( player, m_Protocol->SEND_W3GS_START_LAG( m_Players, true ) ); // remove the new player from previously loaded players' lag screens for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( *i != player && (*i)->GetFinishedLoading( ) ) Send( *i, m_Protocol->SEND_W3GS_STOP_LAG( player ) ); } // send a chat message to previously loaded players for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( *i != player && (*i)->GetFinishedLoading( ) ) SendChat( *i, m_GHost->m_Language->PlayerFinishedLoading( player->GetName( ) ) ); } if( !FinishedLoading ) SendChat( player, m_GHost->m_Language->PleaseWaitPlayersStillLoading( ) ); } else SendAll( m_Protocol->SEND_W3GS_GAMELOADED_OTHERS( player->GetPID( ) ) ); } void CBaseGame :: EventPlayerAction( CGamePlayer *player, CIncomingAction *action ) { m_Actions.push( action ); // check for players saving the game and notify everyone if( !action->GetAction( )->empty( ) && (*action->GetAction( ))[0] == 6 ) { CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + player->GetName( ) + "] is saving the game" ); SendAllChat( m_GHost->m_Language->PlayerIsSavingTheGame( player->GetName( ) ) ); } } void CBaseGame :: EventPlayerKeepAlive( CGamePlayer *player, uint32_t checkSum ) { // check for desyncs // however, it's possible that not every player has sent a checksum for this frame yet // first we verify that we have enough checksums to work with otherwise we won't know exactly who desynced for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetDeleteMe( ) && (*i)->GetCheckSums( )->empty( ) ) return; } // now we check for desyncs since we know that every player has at least one checksum waiting bool FoundPlayer = false; uint32_t FirstCheckSum = 0; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetDeleteMe( ) ) { FoundPlayer = true; FirstCheckSum = (*i)->GetCheckSums( )->front( ); break; } } if( !FoundPlayer ) return; bool AddToReplay = true; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetDeleteMe( ) && (*i)->GetCheckSums( )->front( ) != FirstCheckSum ) { CONSOLE_Print( "[GAME: " + m_GameName + "] desync detected" ); SendAllChat( m_GHost->m_Language->DesyncDetected( ) ); // try to figure out who desynced // this is complicated by the fact that we don't know what the correct game state is so we let the players vote // put the players into bins based on their game state map<uint32_t, vector<unsigned char> > Bins; for( vector<CGamePlayer *> :: iterator j = m_Players.begin( ); j != m_Players.end( ); j++ ) { if( !(*j)->GetDeleteMe( ) ) Bins[(*j)->GetCheckSums( )->front( )].push_back( (*j)->GetPID( ) ); } uint32_t StateNumber = 1; map<uint32_t, vector<unsigned char> > :: iterator LargestBin = Bins.begin( ); bool Tied = false; for( map<uint32_t, vector<unsigned char> > :: iterator j = Bins.begin( ); j != Bins.end( ); j++ ) { if( (*j).second.size( ) > (*LargestBin).second.size( ) ) { LargestBin = j; Tied = false; } else if( j != LargestBin && (*j).second.size( ) == (*LargestBin).second.size( ) ) Tied = true; string Players; for( vector<unsigned char> :: iterator k = (*j).second.begin( ); k != (*j).second.end( ); k++ ) { CGamePlayer *Player = GetPlayerFromPID( *k ); if( Player ) { if( Players.empty( ) ) Players = Player->GetName( ); else Players += ", " + Player->GetName( ); } } SendAllChat( m_GHost->m_Language->PlayersInGameState( UTIL_ToString( StateNumber ), Players ) ); StateNumber++; } FirstCheckSum = (*LargestBin).first; if( Tied ) { // there is a tie, which is unfortunate // the most common way for this to happen is with a desync in a 1v1 situation // this is not really unsolvable since the game shouldn't continue anyway so we just kick both players // in a 2v2 or higher the chance of this happening is very slim // however, we still kick every player because it's not fair to pick one or another group // todotodo: it would be possible to split the game at this point and create a "new" game for each game state CONSOLE_Print( "[GAME: " + m_GameName + "] can't kick desynced players because there is a tie, kicking all players instead" ); StopPlayers( m_GHost->m_Language->WasDroppedDesync( ) ); AddToReplay = false; } else { CONSOLE_Print( "[GAME: " + m_GameName + "] kicking desynced players" ); for( map<uint32_t, vector<unsigned char> > :: iterator j = Bins.begin( ); j != Bins.end( ); j++ ) { // kick players who are NOT in the largest bin // examples: suppose there are 10 players // the most common case will be 9v1 (e.g. one player desynced and the others were unaffected) and this will kick the single outlier // another (very unlikely) possibility is 8v1v1 or 8v2 and this will kick both of the outliers, regardless of whether their game states match if( (*j).first != (*LargestBin).first ) { for( vector<unsigned char> :: iterator k = (*j).second.begin( ); k != (*j).second.end( ); k++ ) { CGamePlayer *Player = GetPlayerFromPID( *k ); if( Player ) { Player->SetDeleteMe( true ); Player->SetLeftReason( m_GHost->m_Language->WasDroppedDesync( ) ); Player->SetLeftCode( PLAYERLEAVE_LOST ); } } } } } // don't continue looking for desyncs, we already found one! break; } } for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetDeleteMe( ) ) (*i)->GetCheckSums( )->pop( ); } // add checksum to replay /* if( m_Replay && AddToReplay ) m_Replay->AddCheckSum( FirstCheckSum ); */ } void CBaseGame :: EventPlayerChatToHost( CGamePlayer *player, CIncomingChatPlayer *chatPlayer ) { if( chatPlayer->GetFromPID( ) == player->GetPID( ) ) { if( chatPlayer->GetType( ) == CIncomingChatPlayer :: CTH_MESSAGE || chatPlayer->GetType( ) == CIncomingChatPlayer :: CTH_MESSAGEEXTRA ) { // relay the chat message to other players bool Relay = !player->GetMuted( ); BYTEARRAY ExtraFlags = chatPlayer->GetExtraFlags( ); // calculate timestamp string MinString = UTIL_ToString( ( m_GameTicks / 1000 ) / 60 ); string SecString = UTIL_ToString( ( m_GameTicks / 1000 ) % 60 ); if( MinString.size( ) == 1 ) MinString.insert( 0, "0" ); if( SecString.size( ) == 1 ) SecString.insert( 0, "0" ); if( !ExtraFlags.empty( ) ) { m_GHost->FireScriptEvent(new CLuaGamePlayerChatEvent(this, player, chatPlayer->GetMessage(), true)); if( ExtraFlags[0] == 0 ) { // this is an ingame [All] message, print it to the console CONSOLE_Print( "[GAME: " + m_GameName + "] (" + MinString + ":" + SecString + ") [All] [" + player->GetName( ) + "]: " + chatPlayer->GetMessage( ) ); // don't relay ingame messages targeted for all players if we're currently muting all // note that commands will still be processed even when muting all because we only stop relaying the messages, the rest of the function is unaffected if( m_MuteAll ) Relay = false; } else if( ExtraFlags[0] == 2 ) { // this is an ingame [Obs/Ref] message, print it to the console CONSOLE_Print( "[GAME: " + m_GameName + "] (" + MinString + ":" + SecString + ") [Obs/Ref] [" + player->GetName( ) + "]: " + chatPlayer->GetMessage( ) ); } if( Relay ) { // add chat message to replay // this includes allied chat and private chat from both teams as long as it was relayed if( m_Replay ) m_Replay->AddChatMessage( chatPlayer->GetFromPID( ), chatPlayer->GetFlag( ), UTIL_ByteArrayToUInt32( chatPlayer->GetExtraFlags( ), false ), chatPlayer->GetMessage( ) ); } } else { m_GHost->FireScriptEvent(new CLuaGamePlayerChatEvent(this, player, chatPlayer->GetMessage(), false)); // this is a lobby message, print it to the console CONSOLE_Print( "[GAME: " + m_GameName + "] [Lobby] [" + player->GetName( ) + "]: " + chatPlayer->GetMessage( ) ); if( m_MuteLobby ) Relay = false; } // handle bot commands string Message = chatPlayer->GetMessage( ); if( Message == "?trigger" ) SendChat( player, m_GHost->m_Language->CommandTrigger( string( 1, m_GHost->m_CommandTrigger ) ) ); else if( !Message.empty( ) && Message[0] == m_GHost->m_CommandTrigger ) { // extract the command trigger, the command, and the payload // e.g. "!say hello world" -> command: "say", payload: "hello world" string Command; string Payload; string :: size_type PayloadStart = Message.find( " " ); if( PayloadStart != string :: npos ) { Command = Message.substr( 1, PayloadStart - 1 ); Payload = Message.substr( PayloadStart + 1 ); } else Command = Message.substr( 1 ); transform( Command.begin( ), Command.end( ), Command.begin( ), (int(*)(int))tolower ); // don't allow EventPlayerBotCommand to veto a previous instruction to set Relay to false // so if Relay is already false (e.g. because the player is muted) then it cannot be forced back to true here if( EventPlayerBotCommand( player, Command, Payload ) ) Relay = false; } if( Relay ) Send( chatPlayer->GetToPIDs( ), m_Protocol->SEND_W3GS_CHAT_FROM_HOST( chatPlayer->GetFromPID( ), chatPlayer->GetToPIDs( ), chatPlayer->GetFlag( ), chatPlayer->GetExtraFlags( ), chatPlayer->GetMessage( ) ) ); } else if( chatPlayer->GetType( ) == CIncomingChatPlayer :: CTH_TEAMCHANGE && !m_CountDownStarted ) EventPlayerChangeTeam( player, chatPlayer->GetByte( ) ); else if( chatPlayer->GetType( ) == CIncomingChatPlayer :: CTH_COLOURCHANGE && !m_CountDownStarted ) EventPlayerChangeColour( player, chatPlayer->GetByte( ) ); else if( chatPlayer->GetType( ) == CIncomingChatPlayer :: CTH_RACECHANGE && !m_CountDownStarted ) EventPlayerChangeRace( player, chatPlayer->GetByte( ) ); else if( chatPlayer->GetType( ) == CIncomingChatPlayer :: CTH_HANDICAPCHANGE && !m_CountDownStarted ) EventPlayerChangeHandicap( player, chatPlayer->GetByte( ) ); } } bool CBaseGame :: EventPlayerBotCommand( CGamePlayer *player, string command, string payload ) { // return true if the command itself should be hidden from other players return false; } void CBaseGame :: EventPlayerChangeTeam( CGamePlayer *player, unsigned char team ) { // player is requesting a team change if( m_SaveGame ) return; if( m_Map->GetMapOptions( ) & MAPOPT_FIXEDPLAYERSETTINGS ) { unsigned char oldSID = GetSIDFromPID( player->GetPID( ) ); unsigned char newSID = GetEmptySlot( team, player->GetPID( ) ); SwapSlots( oldSID, newSID ); } else { if( team > 12 ) return; if( team == 12 ) { if( m_Map->GetMapObservers( ) != MAPOBS_ALLOWED && m_Map->GetMapObservers( ) != MAPOBS_REFEREES ) return; } else { if( team >= m_Map->GetMapNumPlayers( ) ) return; // make sure there aren't too many other players already unsigned char NumOtherPlayers = 0; for( unsigned char i = 0; i < m_Slots.size( ); i++ ) { if( m_Slots[i].GetSlotStatus( ) == SLOTSTATUS_OCCUPIED && m_Slots[i].GetTeam( ) != 12 && m_Slots[i].GetPID( ) != player->GetPID( ) ) NumOtherPlayers++; } if( NumOtherPlayers >= m_Map->GetMapNumPlayers( ) ) return; } unsigned char SID = GetSIDFromPID( player->GetPID( ) ); if( SID < m_Slots.size( ) ) { m_Slots[SID].SetTeam( team ); if( team == 12 ) { // if they're joining the observer team give them the observer colour m_Slots[SID].SetColour( 12 ); } else if( m_Slots[SID].GetColour( ) == 12 ) { // if they're joining a regular team give them an unused colour m_Slots[SID].SetColour( GetNewColour( ) ); } SendAllSlotInfo( ); } } } void CBaseGame :: EventPlayerChangeColour( CGamePlayer *player, unsigned char colour ) { // player is requesting a colour change if( m_SaveGame ) return; if( m_Map->GetMapOptions( ) & MAPOPT_FIXEDPLAYERSETTINGS ) return; if( colour > 11 ) return; unsigned char SID = GetSIDFromPID( player->GetPID( ) ); if( SID < m_Slots.size( ) ) { // make sure the player isn't an observer if( m_Slots[SID].GetTeam( ) == 12 ) return; ColourSlot( SID, colour ); } } void CBaseGame :: EventPlayerChangeRace( CGamePlayer *player, unsigned char race ) { // player is requesting a race change if( m_SaveGame ) return; if( m_Map->GetMapOptions( ) & MAPOPT_FIXEDPLAYERSETTINGS ) return; if( m_Map->GetMapFlags( ) & MAPFLAG_RANDOMRACES ) return; if( race != SLOTRACE_HUMAN && race != SLOTRACE_ORC && race != SLOTRACE_NIGHTELF && race != SLOTRACE_UNDEAD && race != SLOTRACE_RANDOM ) return; unsigned char SID = GetSIDFromPID( player->GetPID( ) ); if( SID < m_Slots.size( ) ) { m_Slots[SID].SetRace( race | SLOTRACE_SELECTABLE ); SendAllSlotInfo( ); } } void CBaseGame :: EventPlayerChangeHandicap( CGamePlayer *player, unsigned char handicap ) { // player is requesting a handicap change if( m_SaveGame ) return; if( m_Map->GetMapOptions( ) & MAPOPT_FIXEDPLAYERSETTINGS ) return; if( handicap != 50 && handicap != 60 && handicap != 70 && handicap != 80 && handicap != 90 && handicap != 100 ) return; unsigned char SID = GetSIDFromPID( player->GetPID( ) ); if( SID < m_Slots.size( ) ) { m_Slots[SID].SetHandicap( handicap ); SendAllSlotInfo( ); } } void CBaseGame :: EventPlayerDropRequest( CGamePlayer *player ) { // todotodo: check that we've waited the full 45 seconds if( m_Lagging ) { CONSOLE_Print( "[GAME: " + m_GameName + "] player [" + player->GetName( ) + "] voted to drop laggers" ); SendAllChat( m_GHost->m_Language->PlayerVotedToDropLaggers( player->GetName( ) ) ); // check if at least half the players voted to drop uint32_t Votes = 0; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetDropVote( ) ) Votes++; } if( (float)Votes / m_Players.size( ) > 0.49 ) StopLaggers( m_GHost->m_Language->LaggedOutDroppedByVote( ) ); } } void CBaseGame :: EventPlayerMapSize( CGamePlayer *player, CIncomingMapSize *mapSize ) { if( m_GameLoading || m_GameLoaded ) return; // todotodo: the variable names here are confusing due to extremely poor design on my part uint32_t MapSize = UTIL_ByteArrayToUInt32( m_Map->GetMapSize( ), false ); if( mapSize->GetSizeFlag( ) != 1 || mapSize->GetMapSize( ) != MapSize ) { // the player doesn't have the map if( m_GHost->m_AllowDownloads != 0 ) { string *MapData = m_Map->GetMapData( ); if( !MapData->empty( ) ) { if( m_GHost->m_AllowDownloads == 1 || ( m_GHost->m_AllowDownloads == 2 && player->GetDownloadAllowed( ) ) ) { if( !player->GetDownloadStarted( ) && mapSize->GetSizeFlag( ) == 1 ) { // inform the client that we are willing to send the map CONSOLE_Print( "[GAME: " + m_GameName + "] map download started for player [" + player->GetName( ) + "]" ); Send( player, m_Protocol->SEND_W3GS_STARTDOWNLOAD( GetHostPID( ) ) ); player->SetDownloadStarted( true ); player->SetStartedDownloadingTicks( GetTicks( ) ); } else player->SetLastMapPartAcked( mapSize->GetMapSize( ) ); } } else { player->SetDeleteMe( true ); player->SetLeftReason( "doesn't have the map and there is no local copy of the map to send" ); player->SetLeftCode( PLAYERLEAVE_LOBBY ); OpenSlot( GetSIDFromPID( player->GetPID( ) ), false ); } } else { player->SetDeleteMe( true ); player->SetLeftReason( "doesn't have the map and map downloads are disabled" ); player->SetLeftCode( PLAYERLEAVE_LOBBY ); OpenSlot( GetSIDFromPID( player->GetPID( ) ), false ); } } else { if( player->GetDownloadStarted( ) ) { // calculate download rate float Seconds = (float)( GetTicks( ) - player->GetStartedDownloadingTicks( ) ) / 1000; float Rate = (float)MapSize / 1024 / Seconds; CONSOLE_Print( "[GAME: " + m_GameName + "] map download finished for player [" + player->GetName( ) + "] in " + UTIL_ToString( Seconds, 1 ) + " seconds" ); SendAllChat( m_GHost->m_Language->PlayerDownloadedTheMap( player->GetName( ), UTIL_ToString( Seconds, 1 ), UTIL_ToString( Rate, 1 ) ) ); player->SetDownloadFinished( true ); player->SetFinishedDownloadingTime( GetTime( ) ); // add to database m_GHost->m_Callables.push_back( m_GHost->m_DB->ThreadedDownloadAdd( m_Map->GetMapPath( ), MapSize, player->GetName( ), player->GetExternalIPString( ), player->GetSpoofed( ) ? 1 : 0, player->GetSpoofedRealm( ), GetTicks( ) - player->GetStartedDownloadingTicks( ) ) ); } } unsigned char NewDownloadStatus = (unsigned char)( (float)mapSize->GetMapSize( ) / MapSize * 100 ); unsigned char SID = GetSIDFromPID( player->GetPID( ) ); if( NewDownloadStatus > 100 ) NewDownloadStatus = 100; if( SID < m_Slots.size( ) ) { // only send the slot info if the download status changed if( m_Slots[SID].GetDownloadStatus( ) != NewDownloadStatus ) { m_Slots[SID].SetDownloadStatus( NewDownloadStatus ); // we don't actually send the new slot info here // this is an optimization because it's possible for a player to download a map very quickly // if we send a new slot update for every percentage change in their download status it adds up to a lot of data // instead, we mark the slot info as "out of date" and update it only once in awhile (once per second when this comment was made) m_SlotInfoChanged = true; } } } void CBaseGame :: EventPlayerPongToHost( CGamePlayer *player, uint32_t pong ) { // autokick players with excessive pings but only if they're not reserved and we've received at least 3 pings from them // also don't kick anyone if the game is loading or loaded - this could happen because we send pings during loading but we stop sending them after the game is loaded // see the Update function for where we send pings if( !m_GameLoading && !m_GameLoaded && !player->GetDeleteMe( ) && !player->GetReserved( ) && player->GetNumPings( ) >= 3 && player->GetPing( m_GHost->m_LCPings ) > m_GHost->m_AutoKickPing ) { // send a chat message because we don't normally do so when a player leaves the lobby SendAllChat( m_GHost->m_Language->AutokickingPlayerForExcessivePing( player->GetName( ), UTIL_ToString( player->GetPing( m_GHost->m_LCPings ) ) ) ); player->SetDeleteMe( true ); player->SetLeftReason( "was autokicked for excessive ping of " + UTIL_ToString( player->GetPing( m_GHost->m_LCPings ) ) ); player->SetLeftCode( PLAYERLEAVE_LOBBY ); OpenSlot( GetSIDFromPID( player->GetPID( ) ), false ); } } void CBaseGame :: EventGameRefreshed( string server ) { if( m_RefreshRehosted ) { // we're not actually guaranteed this refresh was for the rehosted game and not the previous one // but since we unqueue game refreshes when rehosting, the only way this can happen is due to network delay // it's a risk we're willing to take but can result in a false positive here SendAllChat( m_GHost->m_Language->RehostWasSuccessful( ) ); m_RefreshRehosted = false; } } void CBaseGame :: EventGameStarted( ) { CONSOLE_Print( "[GAME: " + m_GameName + "] started loading with " + UTIL_ToString( GetNumHumanPlayers( ) ) + " players" ); // encode the HCL command string in the slot handicaps // here's how it works: // the user inputs a command string to be sent to the map // it is almost impossible to send a message from the bot to the map so we encode the command string in the slot handicaps // this works because there are only 6 valid handicaps but Warcraft III allows the bot to set up to 256 handicaps // we encode the original (unmodified) handicaps in the new handicaps and use the remaining space to store a short message // only occupied slots deliver their handicaps to the map and we can send one character (from a list) per handicap // when the map finishes loading, assuming it's designed to use the HCL system, it checks if anyone has an invalid handicap // if so, it decodes the message from the handicaps and restores the original handicaps using the encoded values // the meaning of the message is specific to each map and the bot doesn't need to understand it // e.g. you could send game modes, # of rounds, level to start on, anything you want as long as it fits in the limited space available // note: if you attempt to use the HCL system on a map that does not support HCL the bot will drastically modify the handicaps // since the map won't automatically restore the original handicaps in this case your game will be ruined if( !m_HCLCommandString.empty( ) ) { if( m_HCLCommandString.size( ) <= GetSlotsOccupied( ) ) { string HCLChars = "abcdefghijklmnopqrstuvwxyz0123456789 -=,."; if( m_HCLCommandString.find_first_not_of( HCLChars ) == string :: npos ) { unsigned char EncodingMap[256]; unsigned char j = 0; for( uint32_t i = 0; i < 256; i++ ) { // the following 7 handicap values are forbidden if( j == 0 || j == 50 || j == 60 || j == 70 || j == 80 || j == 90 || j == 100 ) j++; EncodingMap[i] = j++; } unsigned char CurrentSlot = 0; for( string :: iterator si = m_HCLCommandString.begin( ); si != m_HCLCommandString.end( ); si++ ) { while( m_Slots[CurrentSlot].GetSlotStatus( ) != SLOTSTATUS_OCCUPIED ) CurrentSlot++; unsigned char HandicapIndex = ( m_Slots[CurrentSlot].GetHandicap( ) - 50 ) / 10; unsigned char CharIndex = HCLChars.find( *si ); m_Slots[CurrentSlot++].SetHandicap( EncodingMap[HandicapIndex + CharIndex * 6] ); } SendAllSlotInfo( ); CONSOLE_Print( "[GAME: " + m_GameName + "] successfully encoded HCL command string [" + m_HCLCommandString + "]" ); } else CONSOLE_Print( "[GAME: " + m_GameName + "] encoding HCL command string [" + m_HCLCommandString + "] failed because it contains invalid characters" ); } else CONSOLE_Print( "[GAME: " + m_GameName + "] encoding HCL command string [" + m_HCLCommandString + "] failed because there aren't enough occupied slots" ); } // send a final slot info update if necessary // this typically won't happen because we prevent the !start command from completing while someone is downloading the map // however, if someone uses !start force while a player is downloading the map this could trigger // this is because we only permit slot info updates to be flagged when it's just a change in download status, all others are sent immediately // it might not be necessary but let's clean up the mess anyway if( m_SlotInfoChanged ) SendAllSlotInfo( ); m_StartedLoadingTicks = GetTicks( ); m_LastLagScreenResetTime = GetTime( ); m_GameLoading = true; // since we use a fake countdown to deal with leavers during countdown the COUNTDOWN_START and COUNTDOWN_END packets are sent in quick succession // send a start countdown packet SendAll( m_Protocol->SEND_W3GS_COUNTDOWN_START( ) ); // remove the virtual host player DeleteVirtualHost( ); // send an end countdown packet SendAll( m_Protocol->SEND_W3GS_COUNTDOWN_END( ) ); // send a game loaded packet for the fake player (if present) if( m_FakePlayerPID != 255 ) SendAll( m_Protocol->SEND_W3GS_GAMELOADED_OTHERS( m_FakePlayerPID ) ); // record the starting number of players m_StartPlayers = GetNumHumanPlayers( ); // close the listening socket delete m_Socket; m_Socket = NULL; // delete any potential players that are still hanging around for( vector<CPotentialPlayer *> :: iterator i = m_Potentials.begin( ); i != m_Potentials.end( ); i++ ) delete *i; m_Potentials.clear( ); // set initial values for replay if( m_Replay ) { for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) m_Replay->AddPlayer( (*i)->GetPID( ), (*i)->GetName( ) ); if( m_FakePlayerPID != 255 ) m_Replay->AddPlayer( m_FakePlayerPID, "FakePlayer" ); m_Replay->SetSlots( m_Slots ); m_Replay->SetRandomSeed( m_RandomSeed ); m_Replay->SetSelectMode( m_Map->GetMapLayoutStyle( ) ); m_Replay->SetStartSpotCount( m_Map->GetMapNumPlayers( ) ); if( m_SaveGame ) { uint32_t MapGameType = MAPGAMETYPE_SAVEDGAME; if( m_GameState == GAME_PRIVATE ) MapGameType |= MAPGAMETYPE_PRIVATEGAME; m_Replay->SetMapGameType( MapGameType ); } else { uint32_t MapGameType = m_Map->GetMapGameType( ); MapGameType |= MAPGAMETYPE_UNKNOWN0; if( m_GameState == GAME_PRIVATE ) MapGameType |= MAPGAMETYPE_PRIVATEGAME; m_Replay->SetMapGameType( MapGameType ); } if( !m_Players.empty( ) ) { // this might not be necessary since we're going to overwrite the replay's host PID and name everytime a player leaves m_Replay->SetHostPID( m_Players[0]->GetPID( ) ); m_Replay->SetHostName( m_Players[0]->GetName( ) ); } } // build a stat string for use when saving the replay // we have to build this now because the map data is going to be deleted BYTEARRAY StatString; UTIL_AppendByteArray( StatString, m_Map->GetMapGameFlags( ) ); StatString.push_back( 0 ); UTIL_AppendByteArray( StatString, m_Map->GetMapWidth( ) ); UTIL_AppendByteArray( StatString, m_Map->GetMapHeight( ) ); UTIL_AppendByteArray( StatString, m_Map->GetMapCRC( ) ); UTIL_AppendByteArray( StatString, m_Map->GetMapPath( ) ); UTIL_AppendByteArray( StatString, "GHost++" ); StatString.push_back( 0 ); UTIL_AppendByteArray( StatString, m_Map->GetMapSHA1( ) ); // note: in replays generated by Warcraft III it stores 20 zeros for the SHA1 instead of the real thing StatString = UTIL_EncodeStatString( StatString ); m_StatString = string( StatString.begin( ), StatString.end( ) ); // delete the map data delete m_Map; m_Map = NULL; if( m_LoadInGame ) { // buffer all the player loaded messages // this ensures that every player receives the same set of player loaded messages in the same order, even if someone leaves during loading // if someone leaves during loading we buffer the leave message to ensure it gets sent in the correct position but the player loaded message wouldn't get sent if we didn't buffer it now for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { for( vector<CGamePlayer *> :: iterator j = m_Players.begin( ); j != m_Players.end( ); j++ ) (*j)->AddLoadInGameData( m_Protocol->SEND_W3GS_GAMELOADED_OTHERS( (*i)->GetPID( ) ) ); } } // move the game to the games in progress vector m_GHost->m_CurrentGame = NULL; m_GHost->m_Games.push_back( this ); // and finally reenter battle.net chat for( vector<CBNET *> :: iterator i = m_GHost->m_BNETs.begin( ); i != m_GHost->m_BNETs.end( ); i++ ) { (*i)->QueueGameUncreate( ); (*i)->QueueEnterChat( ); } } void CBaseGame :: EventGameLoaded( ) { CONSOLE_Print( "[GAME: " + m_GameName + "] finished loading with " + UTIL_ToString( GetNumHumanPlayers( ) ) + " players" ); // send shortest, longest, and personal load times to each player CGamePlayer *Shortest = NULL; CGamePlayer *Longest = NULL; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !Shortest || (*i)->GetFinishedLoadingTicks( ) < Shortest->GetFinishedLoadingTicks( ) ) Shortest = *i; if( !Longest || (*i)->GetFinishedLoadingTicks( ) > Longest->GetFinishedLoadingTicks( ) ) Longest = *i; } if( Shortest && Longest ) { SendAllChat( m_GHost->m_Language->ShortestLoadByPlayer( Shortest->GetName( ), UTIL_ToString( (float)( Shortest->GetFinishedLoadingTicks( ) - m_StartedLoadingTicks ) / 1000, 2 ) ) ); SendAllChat( m_GHost->m_Language->LongestLoadByPlayer( Longest->GetName( ), UTIL_ToString( (float)( Longest->GetFinishedLoadingTicks( ) - m_StartedLoadingTicks ) / 1000, 2 ) ) ); } for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) SendChat( *i, m_GHost->m_Language->YourLoadingTimeWas( UTIL_ToString( (float)( (*i)->GetFinishedLoadingTicks( ) - m_StartedLoadingTicks ) / 1000, 2 ) ) ); // read from gameloaded.txt if available ifstream in; in.open( m_GHost->m_GameLoadedFile.c_str( ) ); if( !in.fail( ) ) { // don't print more than 8 lines uint32_t Count = 0; string Line; while( !in.eof( ) && Count < 8 ) { getline( in, Line ); if( Line.empty( ) ) { if( !in.eof( ) ) SendAllChat( " " ); } else SendAllChat( Line ); Count++; } in.close( ); } } unsigned char CBaseGame :: GetSIDFromPID( unsigned char PID ) { if( m_Slots.size( ) > 255 ) return 255; for( unsigned char i = 0; i < m_Slots.size( ); i++ ) { if( m_Slots[i].GetPID( ) == PID ) return i; } return 255; } CGamePlayer *CBaseGame :: GetPlayerFromPID( unsigned char PID ) { for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetLeftMessageSent( ) && (*i)->GetPID( ) == PID ) return *i; } return NULL; } CGamePlayer *CBaseGame :: GetPlayerFromSID( unsigned char SID ) { if( SID < m_Slots.size( ) ) return GetPlayerFromPID( m_Slots[SID].GetPID( ) ); return NULL; } CGamePlayer *CBaseGame :: GetPlayerFromName( string name, bool sensitive ) { if( !sensitive ) transform( name.begin( ), name.end( ), name.begin( ), (int(*)(int))tolower ); for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetLeftMessageSent( ) ) { string TestName = (*i)->GetName( ); if( !sensitive ) transform( TestName.begin( ), TestName.end( ), TestName.begin( ), (int(*)(int))tolower ); if( TestName == name ) return *i; } } return NULL; } uint32_t CBaseGame :: GetPlayerFromNamePartial( string name, CGamePlayer **player ) { transform( name.begin( ), name.end( ), name.begin( ), (int(*)(int))tolower ); uint32_t Matches = 0; *player = NULL; // try to match each player with the passed string (e.g. "Varlock" would be matched with "lock") for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetLeftMessageSent( ) ) { string TestName = (*i)->GetName( ); transform( TestName.begin( ), TestName.end( ), TestName.begin( ), (int(*)(int))tolower ); if( TestName.find( name ) != string :: npos ) { Matches++; *player = *i; // if the name matches exactly stop any further matching if( TestName == name ) { Matches = 1; break; } } } } return Matches; } CGamePlayer *CBaseGame :: GetPlayerFromColour( unsigned char colour ) { for( unsigned char i = 0; i < m_Slots.size( ); i++ ) { if( m_Slots[i].GetColour( ) == colour ) return GetPlayerFromSID( i ); } return NULL; } unsigned char CBaseGame :: GetNewPID( ) { // find an unused PID for a new player to use for( unsigned char TestPID = 1; TestPID < 255; TestPID++ ) { if( TestPID == m_VirtualHostPID || TestPID == m_FakePlayerPID ) continue; bool InUse = false; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetLeftMessageSent( ) && (*i)->GetPID( ) == TestPID ) { InUse = true; break; } } if( !InUse ) return TestPID; } // this should never happen return 255; } unsigned char CBaseGame :: GetNewColour( ) { // find an unused colour for a player to use for( unsigned char TestColour = 0; TestColour < 12; TestColour++ ) { bool InUse = false; for( unsigned char i = 0; i < m_Slots.size( ); i++ ) { if( m_Slots[i].GetColour( ) == TestColour ) { InUse = true; break; } } if( !InUse ) return TestColour; } // this should never happen return 12; } BYTEARRAY CBaseGame :: GetPIDs( ) { BYTEARRAY result; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetLeftMessageSent( ) ) result.push_back( (*i)->GetPID( ) ); } return result; } BYTEARRAY CBaseGame :: GetPIDs( unsigned char excludePID ) { BYTEARRAY result; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetLeftMessageSent( ) && (*i)->GetPID( ) != excludePID ) result.push_back( (*i)->GetPID( ) ); } return result; } unsigned char CBaseGame :: GetHostPID( ) { // return the player to be considered the host (it can be any player) - mainly used for sending text messages from the bot // try to find the virtual host player first if( m_VirtualHostPID != 255 ) return m_VirtualHostPID; // try to find the fakeplayer next if( m_FakePlayerPID != 255 ) return m_FakePlayerPID; // try to find the owner player next for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetLeftMessageSent( ) && IsOwner( (*i)->GetName( ) ) ) return (*i)->GetPID( ); } // okay then, just use the first available player for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetLeftMessageSent( ) ) return (*i)->GetPID( ); } return 255; } unsigned char CBaseGame :: GetEmptySlot( bool reserved ) { if( m_Slots.size( ) > 255 ) return 255; if( m_SaveGame ) { // unfortunately we don't know which slot each player was assigned in the savegame // but we do know which slots were occupied and which weren't so let's at least force players to use previously occupied slots vector<CGameSlot> SaveGameSlots = m_SaveGame->GetSlots( ); for( unsigned char i = 0; i < m_Slots.size( ); i++ ) { if( m_Slots[i].GetSlotStatus( ) == SLOTSTATUS_OPEN && SaveGameSlots[i].GetSlotStatus( ) == SLOTSTATUS_OCCUPIED && SaveGameSlots[i].GetComputer( ) == 0 ) return i; } // don't bother with reserved slots in savegames } else { // look for an empty slot for a new player to occupy // if reserved is true then we're willing to use closed or occupied slots as long as it wouldn't displace a player with a reserved slot for( unsigned char i = 0; i < m_Slots.size( ); i++ ) { if( m_Slots[i].GetSlotStatus( ) == SLOTSTATUS_OPEN ) return i; } if( reserved ) { // no empty slots, but since player is reserved give them a closed slot for( unsigned char i = 0; i < m_Slots.size( ); i++ ) { if( m_Slots[i].GetSlotStatus( ) == SLOTSTATUS_CLOSED ) return i; } // no closed slots either, give them an occupied slot but not one occupied by another reserved player // first look for a player who is downloading the map and has the least amount downloaded so far unsigned char LeastDownloaded = 100; unsigned char LeastSID = 255; for( unsigned char i = 0; i < m_Slots.size( ); i++ ) { CGamePlayer *Player = GetPlayerFromSID( i ); if( Player && !Player->GetReserved( ) && m_Slots[i].GetDownloadStatus( ) < LeastDownloaded ) { LeastDownloaded = m_Slots[i].GetDownloadStatus( ); LeastSID = i; } } if( LeastSID != 255 ) return LeastSID; // nobody who isn't reserved is downloading the map, just choose the first player who isn't reserved for( unsigned char i = 0; i < m_Slots.size( ); i++ ) { CGamePlayer *Player = GetPlayerFromSID( i ); if( Player && !Player->GetReserved( ) ) return i; } } } return 255; } unsigned char CBaseGame :: GetEmptySlot( unsigned char team, unsigned char PID ) { if( m_Slots.size( ) > 255 ) return 255; // find an empty slot based on player's current slot unsigned char StartSlot = GetSIDFromPID( PID ); if( StartSlot < m_Slots.size( ) ) { if( m_Slots[StartSlot].GetTeam( ) != team ) { // player is trying to move to another team so start looking from the first slot on that team // we actually just start looking from the very first slot since the next few loops will check the team for us StartSlot = 0; } if( m_SaveGame ) { vector<CGameSlot> SaveGameSlots = m_SaveGame->GetSlots( ); for( unsigned char i = StartSlot; i < m_Slots.size( ); i++ ) { if( m_Slots[i].GetSlotStatus( ) == SLOTSTATUS_OPEN && m_Slots[i].GetTeam( ) == team && SaveGameSlots[i].GetSlotStatus( ) == SLOTSTATUS_OCCUPIED && SaveGameSlots[i].GetComputer( ) == 0 ) return i; } for( unsigned char i = 0; i < StartSlot; i++ ) { if( m_Slots[i].GetSlotStatus( ) == SLOTSTATUS_OPEN && m_Slots[i].GetTeam( ) == team && SaveGameSlots[i].GetSlotStatus( ) == SLOTSTATUS_OCCUPIED && SaveGameSlots[i].GetComputer( ) == 0 ) return i; } } else { // find an empty slot on the correct team starting from StartSlot for( unsigned char i = StartSlot; i < m_Slots.size( ); i++ ) { if( m_Slots[i].GetSlotStatus( ) == SLOTSTATUS_OPEN && m_Slots[i].GetTeam( ) == team ) return i; } // didn't find an empty slot, but we could have missed one with SID < StartSlot // e.g. in the DotA case where I am in slot 4 (yellow), slot 5 (orange) is occupied, and slot 1 (blue) is open and I am trying to move to another slot for( unsigned char i = 0; i < StartSlot; i++ ) { if( m_Slots[i].GetSlotStatus( ) == SLOTSTATUS_OPEN && m_Slots[i].GetTeam( ) == team ) return i; } } } return 255; } void CBaseGame :: SwapSlots( unsigned char SID1, unsigned char SID2 ) { if( SID1 < m_Slots.size( ) && SID2 < m_Slots.size( ) && SID1 != SID2 ) { CGameSlot Slot1 = m_Slots[SID1]; CGameSlot Slot2 = m_Slots[SID2]; if( m_Map->GetMapOptions( ) & MAPOPT_FIXEDPLAYERSETTINGS ) { // don't swap the team, colour, or race m_Slots[SID1] = CGameSlot( Slot2.GetPID( ), Slot2.GetDownloadStatus( ), Slot2.GetSlotStatus( ), Slot2.GetComputer( ), Slot1.GetTeam( ), Slot1.GetColour( ), Slot1.GetRace( ), Slot2.GetComputerType( ), Slot2.GetHandicap( ) ); m_Slots[SID2] = CGameSlot( Slot1.GetPID( ), Slot1.GetDownloadStatus( ), Slot1.GetSlotStatus( ), Slot1.GetComputer( ), Slot2.GetTeam( ), Slot2.GetColour( ), Slot2.GetRace( ), Slot1.GetComputerType( ), Slot1.GetHandicap( ) ); } else { // swap everything m_Slots[SID1] = Slot2; m_Slots[SID2] = Slot1; } SendAllSlotInfo( ); } } void CBaseGame :: OpenSlot( unsigned char SID, bool kick ) { if( SID < m_Slots.size( ) ) { if( kick ) { CGamePlayer *Player = GetPlayerFromSID( SID ); if( Player ) { Player->SetDeleteMe( true ); Player->SetLeftReason( "was kicked when opening a slot" ); Player->SetLeftCode( PLAYERLEAVE_LOBBY ); } } CGameSlot Slot = m_Slots[SID]; m_Slots[SID] = CGameSlot( 0, 255, SLOTSTATUS_OPEN, 0, Slot.GetTeam( ), Slot.GetColour( ), Slot.GetRace( ) ); SendAllSlotInfo( ); } } void CBaseGame :: CloseSlot( unsigned char SID, bool kick ) { if( SID < m_Slots.size( ) ) { if( kick ) { CGamePlayer *Player = GetPlayerFromSID( SID ); if( Player ) { Player->SetDeleteMe( true ); Player->SetLeftReason( "was kicked when closing a slot" ); Player->SetLeftCode( PLAYERLEAVE_LOBBY ); } } CGameSlot Slot = m_Slots[SID]; m_Slots[SID] = CGameSlot( 0, 255, SLOTSTATUS_CLOSED, 0, Slot.GetTeam( ), Slot.GetColour( ), Slot.GetRace( ) ); SendAllSlotInfo( ); } } void CBaseGame :: ComputerSlot( unsigned char SID, unsigned char skill, bool kick ) { if( SID < m_Slots.size( ) && skill < 3 ) { if( kick ) { CGamePlayer *Player = GetPlayerFromSID( SID ); if( Player ) { Player->SetDeleteMe( true ); Player->SetLeftReason( "was kicked when creating a computer in a slot" ); Player->SetLeftCode( PLAYERLEAVE_LOBBY ); } } CGameSlot Slot = m_Slots[SID]; m_Slots[SID] = CGameSlot( 0, 100, SLOTSTATUS_OCCUPIED, 1, Slot.GetTeam( ), Slot.GetColour( ), Slot.GetRace( ), skill ); SendAllSlotInfo( ); } } void CBaseGame :: ColourSlot( unsigned char SID, unsigned char colour ) { if( SID < m_Slots.size( ) && colour < 12 ) { // make sure the requested colour isn't already taken bool Taken = false; unsigned char TakenSID = 0; for( unsigned char i = 0; i < m_Slots.size( ); i++ ) { if( m_Slots[i].GetColour( ) == colour ) { TakenSID = i; Taken = true; } } if( Taken && m_Slots[TakenSID].GetSlotStatus( ) != SLOTSTATUS_OCCUPIED ) { // the requested colour is currently "taken" by an unused (open or closed) slot // but we allow the colour to persist within a slot so if we only update the existing player's colour the unused slot will have the same colour // this isn't really a problem except that if someone then joins the game they'll receive the unused slot's colour resulting in a duplicate // one way to solve this (which we do here) is to swap the player's current colour into the unused slot m_Slots[TakenSID].SetColour( m_Slots[SID].GetColour( ) ); m_Slots[SID].SetColour( colour ); SendAllSlotInfo( ); } else if( !Taken ) { // the requested colour isn't used by ANY slot m_Slots[SID].SetColour( colour ); SendAllSlotInfo( ); } } } void CBaseGame :: OpenAllSlots( ) { bool Changed = false; for( vector<CGameSlot> :: iterator i = m_Slots.begin( ); i != m_Slots.end( ); i++ ) { if( (*i).GetSlotStatus( ) == SLOTSTATUS_CLOSED ) { (*i).SetSlotStatus( SLOTSTATUS_OPEN ); Changed = true; } } if( Changed ) SendAllSlotInfo( ); } void CBaseGame :: CloseAllSlots( ) { bool Changed = false; for( vector<CGameSlot> :: iterator i = m_Slots.begin( ); i != m_Slots.end( ); i++ ) { if( (*i).GetSlotStatus( ) == SLOTSTATUS_OPEN ) { (*i).SetSlotStatus( SLOTSTATUS_CLOSED ); Changed = true; } } if( Changed ) SendAllSlotInfo( ); } void CBaseGame :: ShuffleSlots( ) { // we only want to shuffle the player slots // that means we need to prevent this function from shuffling the open/closed/computer slots too // so we start by copying the player slots to a temporary vector vector<CGameSlot> PlayerSlots; for( vector<CGameSlot> :: iterator i = m_Slots.begin( ); i != m_Slots.end( ); i++ ) { if( (*i).GetSlotStatus( ) == SLOTSTATUS_OCCUPIED && (*i).GetComputer( ) == 0 && (*i).GetTeam( ) != 12 ) PlayerSlots.push_back( *i ); } // now we shuffle PlayerSlots if( m_Map->GetMapOptions( ) & MAPOPT_FIXEDPLAYERSETTINGS ) { // rather than rolling our own probably broken shuffle algorithm we use random_shuffle because it's guaranteed to do it properly // so in order to let random_shuffle do all the work we need a vector to operate on // unfortunately we can't just use PlayerSlots because the team/colour/race shouldn't be modified // so make a vector we can use vector<unsigned char> SIDs; for( unsigned char i = 0; i < PlayerSlots.size( ); i++ ) SIDs.push_back( i ); random_shuffle( SIDs.begin( ), SIDs.end( ) ); // now put the PlayerSlots vector in the same order as the SIDs vector vector<CGameSlot> Slots; // as usual don't modify the team/colour/race for( unsigned char i = 0; i < SIDs.size( ); i++ ) Slots.push_back( CGameSlot( PlayerSlots[SIDs[i]].GetPID( ), PlayerSlots[SIDs[i]].GetDownloadStatus( ), PlayerSlots[SIDs[i]].GetSlotStatus( ), PlayerSlots[SIDs[i]].GetComputer( ), PlayerSlots[i].GetTeam( ), PlayerSlots[i].GetColour( ), PlayerSlots[i].GetRace( ) ) ); PlayerSlots = Slots; } else { // regular game // it's easy when we're allowed to swap the team/colour/race! random_shuffle( PlayerSlots.begin( ), PlayerSlots.end( ) ); } // now we put m_Slots back together again vector<CGameSlot> :: iterator CurrentPlayer = PlayerSlots.begin( ); vector<CGameSlot> Slots; for( vector<CGameSlot> :: iterator i = m_Slots.begin( ); i != m_Slots.end( ); i++ ) { if( (*i).GetSlotStatus( ) == SLOTSTATUS_OCCUPIED && (*i).GetComputer( ) == 0 && (*i).GetTeam( ) != 12 ) { Slots.push_back( *CurrentPlayer ); CurrentPlayer++; } else Slots.push_back( *i ); } m_Slots = Slots; // and finally tell everyone about the new slot configuration SendAllSlotInfo( ); } vector<unsigned char> CBaseGame :: BalanceSlotsRecursive( vector<unsigned char> PlayerIDs, unsigned char *TeamSizes, double *PlayerScores, unsigned char StartTeam ) { // take a brute force approach to finding the best balance by iterating through every possible combination of players // 1.) since the number of teams is arbitrary this algorithm must be recursive // 2.) on the first recursion step every possible combination of players into two "teams" is checked, where the first team is the correct size and the second team contains everyone else // 3.) on the next recursion step every possible combination of the remaining players into two more "teams" is checked, continuing until all the actual teams are accounted for // 4.) for every possible combination, check the largest difference in total scores between any two actual teams // 5.) minimize this value by choosing the combination of players with the smallest difference vector<unsigned char> BestOrdering = PlayerIDs; double BestDifference = -1.0; for( unsigned char i = StartTeam; i < 12; i++ ) { if( TeamSizes[i] > 0 ) { unsigned char Mid = TeamSizes[i]; // the base case where only one actual team worth of players was passed to this function is handled by the behaviour of next_combination // in this case PlayerIDs.begin( ) + Mid will actually be equal to PlayerIDs.end( ) and next_combination will return false while( next_combination( PlayerIDs.begin( ), PlayerIDs.begin( ) + Mid, PlayerIDs.end( ) ) ) { // we're splitting the players into every possible combination of two "teams" based on the midpoint Mid // the first (left) team contains the correct number of players but the second (right) "team" might or might not // for example, it could contain one, two, or more actual teams worth of players // so recurse using the second "team" as the full set of players to perform the balancing on vector<unsigned char> BestSubOrdering = BalanceSlotsRecursive( vector<unsigned char>( PlayerIDs.begin( ) + Mid, PlayerIDs.end( ) ), TeamSizes, PlayerScores, i + 1 ); // BestSubOrdering now contains the best ordering of all the remaining players (the "right team") given this particular combination of players into two "teams" // in order to calculate the largest difference in total scores we need to recombine the subordering with the first team vector<unsigned char> TestOrdering = vector<unsigned char>( PlayerIDs.begin( ), PlayerIDs.begin( ) + Mid ); TestOrdering.insert( TestOrdering.end( ), BestSubOrdering.begin( ), BestSubOrdering.end( ) ); // now calculate the team scores for all the teams that we know about (e.g. on subsequent recursion steps this will NOT be every possible team) vector<unsigned char> :: iterator CurrentPID = TestOrdering.begin( ); double TeamScores[12]; for( unsigned char j = StartTeam; j < 12; j++ ) { TeamScores[j] = 0.0; for( unsigned char k = 0; k < TeamSizes[j]; k++ ) { TeamScores[j] += PlayerScores[*CurrentPID]; CurrentPID++; } } // find the largest difference in total scores between any two teams double LargestDifference = 0.0; for( unsigned char j = StartTeam; j < 12; j++ ) { if( TeamSizes[j] > 0 ) { for( unsigned char k = j + 1; k < 12; k++ ) { if( TeamSizes[k] > 0 ) { double Difference = abs( TeamScores[j] - TeamScores[k] ); if( Difference > LargestDifference ) LargestDifference = Difference; } } } } // and minimize it if( BestDifference < 0.0 || LargestDifference < BestDifference ) { BestOrdering = TestOrdering; BestDifference = LargestDifference; } } } } return BestOrdering; } void CBaseGame :: BalanceSlots( ) { if( !( m_Map->GetMapOptions( ) & MAPOPT_FIXEDPLAYERSETTINGS ) ) { CONSOLE_Print( "[GAME: " + m_GameName + "] error balancing slots - can't balance slots without fixed player settings" ); return; } // setup the necessary variables for the balancing algorithm // use an array of 13 elements for 12 players because GHost++ allocates PID's from 1-12 (i.e. excluding 0) and we use the PID to index the array vector<unsigned char> PlayerIDs; unsigned char TeamSizes[12]; double PlayerScores[13]; memset( TeamSizes, 0, sizeof( unsigned char ) * 12 ); for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { unsigned char PID = (*i)->GetPID( ); if( PID < 13 ) { unsigned char SID = GetSIDFromPID( PID ); if( SID < m_Slots.size( ) ) { unsigned char Team = m_Slots[SID].GetTeam( ); if( Team < 12 ) { // we are forced to use a default score because there's no way to balance the teams otherwise double Score = (*i)->GetScore( ); if( Score < -99999.0 ) Score = m_Map->GetMapDefaultPlayerScore( ); PlayerIDs.push_back( PID ); TeamSizes[Team]++; PlayerScores[PID] = Score; } } } } sort( PlayerIDs.begin( ), PlayerIDs.end( ) ); // balancing the teams is a variation of the bin packing problem which is NP // we can have up to 12 players and/or teams so the scope of the problem is sometimes small enough to process quickly // let's try to figure out roughly how much work this is going to take // examples: // 2 teams of 4 = 70 ~ 5ms *** ok // 2 teams of 5 = 252 ~ 5ms *** ok // 2 teams of 6 = 924 ~ 20ms *** ok // 3 teams of 2 = 90 ~ 5ms *** ok // 3 teams of 3 = 1680 ~ 25ms *** ok // 3 teams of 4 = 34650 ~ 250ms *** will cause a lag spike // 4 teams of 2 = 2520 ~ 30ms *** ok // 4 teams of 3 = 369600 ~ 3500ms *** unacceptable uint32_t AlgorithmCost = 0; uint32_t PlayersLeft = PlayerIDs.size( ); for( unsigned char i = 0; i < 12; i++ ) { if( TeamSizes[i] > 0 ) { if( AlgorithmCost == 0 ) AlgorithmCost = nCr( PlayersLeft, TeamSizes[i] ); else AlgorithmCost *= nCr( PlayersLeft, TeamSizes[i] ); PlayersLeft -= TeamSizes[i]; } } if( AlgorithmCost > 40000 ) { // the cost is too high, don't run the algorithm // a possible alternative: stop after enough iterations and/or time has passed CONSOLE_Print( "[GAME: " + m_GameName + "] shuffling slots instead of balancing - the algorithm is too slow (with a cost of " + UTIL_ToString( AlgorithmCost ) + ") for this team configuration" ); SendAllChat( m_GHost->m_Language->ShufflingPlayers( ) ); ShuffleSlots( ); return; } uint32_t StartTicks = GetTicks( ); vector<unsigned char> BestOrdering = BalanceSlotsRecursive( PlayerIDs, TeamSizes, PlayerScores, 0 ); uint32_t EndTicks = GetTicks( ); // the BestOrdering assumes the teams are in slot order although this may not be the case // so put the players on the correct teams regardless of slot order vector<unsigned char> :: iterator CurrentPID = BestOrdering.begin( ); for( unsigned char i = 0; i < 12; i++ ) { unsigned char CurrentSlot = 0; for( unsigned char j = 0; j < TeamSizes[i]; j++ ) { while( CurrentSlot < m_Slots.size( ) && m_Slots[CurrentSlot].GetTeam( ) != i ) CurrentSlot++; // put the CurrentPID player on team i by swapping them into CurrentSlot unsigned char SID1 = CurrentSlot; unsigned char SID2 = GetSIDFromPID( *CurrentPID ); if( SID1 < m_Slots.size( ) && SID2 < m_Slots.size( ) ) { CGameSlot Slot1 = m_Slots[SID1]; CGameSlot Slot2 = m_Slots[SID2]; m_Slots[SID1] = CGameSlot( Slot2.GetPID( ), Slot2.GetDownloadStatus( ), Slot2.GetSlotStatus( ), Slot2.GetComputer( ), Slot1.GetTeam( ), Slot1.GetColour( ), Slot1.GetRace( ) ); m_Slots[SID2] = CGameSlot( Slot1.GetPID( ), Slot1.GetDownloadStatus( ), Slot1.GetSlotStatus( ), Slot1.GetComputer( ), Slot2.GetTeam( ), Slot2.GetColour( ), Slot2.GetRace( ) ); } else { CONSOLE_Print( "[GAME: " + m_GameName + "] shuffling slots instead of balancing - the balancing algorithm tried to do an invalid swap (this shouldn't happen)" ); SendAllChat( m_GHost->m_Language->ShufflingPlayers( ) ); ShuffleSlots( ); return; } CurrentPID++; CurrentSlot++; } } CONSOLE_Print( "[GAME: " + m_GameName + "] balancing slots completed in " + UTIL_ToString( EndTicks - StartTicks ) + "ms (with a cost of " + UTIL_ToString( AlgorithmCost ) + ")" ); SendAllChat( m_GHost->m_Language->BalancingSlotsCompleted( ) ); SendAllSlotInfo( ); for( unsigned char i = 0; i < 12; i++ ) { bool TeamHasPlayers = false; double TeamScore = 0.0; for( vector<CGamePlayer *> :: iterator j = m_Players.begin( ); j != m_Players.end( ); j++ ) { unsigned char SID = GetSIDFromPID( (*j)->GetPID( ) ); if( SID < m_Slots.size( ) && m_Slots[SID].GetTeam( ) == i ) { TeamHasPlayers = true; double Score = (*j)->GetScore( ); if( Score < -99999.0 ) Score = m_Map->GetMapDefaultPlayerScore( ); TeamScore += Score; } } if( TeamHasPlayers ) SendAllChat( m_GHost->m_Language->TeamCombinedScore( UTIL_ToString( i + 1 ), UTIL_ToString( TeamScore, 2 ) ) ); } } void CBaseGame :: AddToSpoofed( string server, string name, bool sendMessage ) { CGamePlayer *Player = GetPlayerFromName( name, true ); if( Player ) { Player->SetSpoofedRealm( server ); Player->SetSpoofed( true ); if( sendMessage ) SendAllChat( m_GHost->m_Language->SpoofCheckAcceptedFor( server, name ) ); } } void CBaseGame :: AddToReserved( string name ) { transform( name.begin( ), name.end( ), name.begin( ), (int(*)(int))tolower ); // check that the user is not already reserved for( vector<string> :: iterator i = m_Reserved.begin( ); i != m_Reserved.end( ); i++ ) { if( *i == name ) return; } m_Reserved.push_back( name ); // upgrade the user if they're already in the game for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { string NameLower = (*i)->GetName( ); transform( NameLower.begin( ), NameLower.end( ), NameLower.begin( ), (int(*)(int))tolower ); if( NameLower == name ) (*i)->SetReserved( true ); } } bool CBaseGame :: IsOwner( string name ) { string OwnerLower = m_OwnerName; transform( name.begin( ), name.end( ), name.begin( ), (int(*)(int))tolower ); transform( OwnerLower.begin( ), OwnerLower.end( ), OwnerLower.begin( ), (int(*)(int))tolower ); return name == OwnerLower; } bool CBaseGame :: IsReserved( string name ) { transform( name.begin( ), name.end( ), name.begin( ), (int(*)(int))tolower ); for( vector<string> :: iterator i = m_Reserved.begin( ); i != m_Reserved.end( ); i++ ) { if( *i == name ) return true; } return false; } bool CBaseGame :: IsDownloading( ) { // returns true if at least one player is downloading the map for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetDownloadStarted( ) && !(*i)->GetDownloadFinished( ) ) return true; } return false; } bool CBaseGame :: IsGameDataSaved( ) { return true; } void CBaseGame :: SaveGameData( ) { } void CBaseGame :: StartCountDown( bool force ) { if( !m_CountDownStarted ) { if( force ) { m_CountDownStarted = true; m_CountDownCounter = 5; } else { // check if the HCL command string is short enough if( m_HCLCommandString.size( ) > GetSlotsOccupied( ) ) { SendAllChat( m_GHost->m_Language->TheHCLIsTooLongUseForceToStart( ) ); return; } // check if everyone has the map string StillDownloading; for( vector<CGameSlot> :: iterator i = m_Slots.begin( ); i != m_Slots.end( ); i++ ) { if( (*i).GetSlotStatus( ) == SLOTSTATUS_OCCUPIED && (*i).GetComputer( ) == 0 && (*i).GetDownloadStatus( ) != 100 ) { CGamePlayer *Player = GetPlayerFromPID( (*i).GetPID( ) ); if( Player ) { if( StillDownloading.empty( ) ) StillDownloading = Player->GetName( ); else StillDownloading += ", " + Player->GetName( ); } } } if( !StillDownloading.empty( ) ) SendAllChat( m_GHost->m_Language->PlayersStillDownloading( StillDownloading ) ); // check if everyone is spoof checked string NotSpoofChecked; if( m_GHost->m_RequireSpoofChecks ) { for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetSpoofed( ) ) { if( NotSpoofChecked.empty( ) ) NotSpoofChecked = (*i)->GetName( ); else NotSpoofChecked += ", " + (*i)->GetName( ); } } if( !NotSpoofChecked.empty( ) ) SendAllChat( m_GHost->m_Language->PlayersNotYetSpoofChecked( NotSpoofChecked ) ); } // check if everyone has been pinged enough (3 times) that the autokicker would have kicked them by now // see function EventPlayerPongToHost for the autokicker code string NotPinged; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetReserved( ) && (*i)->GetNumPings( ) < 3 ) { if( NotPinged.empty( ) ) NotPinged = (*i)->GetName( ); else NotPinged += ", " + (*i)->GetName( ); } } if( !NotPinged.empty( ) ) SendAllChat( m_GHost->m_Language->PlayersNotYetPinged( NotPinged ) ); // if no problems found start the game if( StillDownloading.empty( ) && NotSpoofChecked.empty( ) && NotPinged.empty( ) ) { m_CountDownStarted = true; m_CountDownCounter = 5; } } } } void CBaseGame :: StartCountDownAuto( bool requireSpoofChecks ) { if( !m_CountDownStarted ) { // check if enough players are present if( GetNumHumanPlayers( ) < m_AutoStartPlayers ) { SendAllChat( m_GHost->m_Language->WaitingForPlayersBeforeAutoStart( UTIL_ToString( m_AutoStartPlayers ), UTIL_ToString( m_AutoStartPlayers - GetNumHumanPlayers( ) ) ) ); return; } // check if everyone has the map string StillDownloading; for( vector<CGameSlot> :: iterator i = m_Slots.begin( ); i != m_Slots.end( ); i++ ) { if( (*i).GetSlotStatus( ) == SLOTSTATUS_OCCUPIED && (*i).GetComputer( ) == 0 && (*i).GetDownloadStatus( ) != 100 ) { CGamePlayer *Player = GetPlayerFromPID( (*i).GetPID( ) ); if( Player ) { if( StillDownloading.empty( ) ) StillDownloading = Player->GetName( ); else StillDownloading += ", " + Player->GetName( ); } } } if( !StillDownloading.empty( ) ) { SendAllChat( m_GHost->m_Language->PlayersStillDownloading( StillDownloading ) ); return; } // check if everyone is spoof checked string NotSpoofChecked; if( requireSpoofChecks ) { for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetSpoofed( ) ) { if( NotSpoofChecked.empty( ) ) NotSpoofChecked = (*i)->GetName( ); else NotSpoofChecked += ", " + (*i)->GetName( ); } } if( !NotSpoofChecked.empty( ) ) SendAllChat( m_GHost->m_Language->PlayersNotYetSpoofChecked( NotSpoofChecked ) ); } // check if everyone has been pinged enough (3 times) that the autokicker would have kicked them by now // see function EventPlayerPongToHost for the autokicker code string NotPinged; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetReserved( ) && (*i)->GetNumPings( ) < 3 ) { if( NotPinged.empty( ) ) NotPinged = (*i)->GetName( ); else NotPinged += ", " + (*i)->GetName( ); } } if( !NotPinged.empty( ) ) { SendAllChat( m_GHost->m_Language->PlayersNotYetPingedAutoStart( NotPinged ) ); return; } // if no problems found start the game if( StillDownloading.empty( ) && NotSpoofChecked.empty( ) && NotPinged.empty( ) ) { m_CountDownStarted = true; m_CountDownCounter = 10; } } } void CBaseGame :: StopPlayers( string reason ) { // disconnect every player and set their left reason to the passed string // we use this function when we want the code in the Update function to run before the destructor (e.g. saving players to the database) // therefore calling this function when m_GameLoading || m_GameLoaded is roughly equivalent to setting m_Exiting = true // the only difference is whether the code in the Update function is executed or not for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { (*i)->SetDeleteMe( true ); (*i)->SetLeftReason( reason ); (*i)->SetLeftCode( PLAYERLEAVE_LOST ); } } void CBaseGame :: StopLaggers( string reason ) { for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( (*i)->GetLagging( ) ) { (*i)->SetDeleteMe( true ); (*i)->SetLeftReason( reason ); (*i)->SetLeftCode( PLAYERLEAVE_DISCONNECT ); } } } void CBaseGame :: CreateVirtualHost( ) { if( m_VirtualHostPID != 255 ) return; m_VirtualHostPID = GetNewPID( ); BYTEARRAY IP; IP.push_back( 0 ); IP.push_back( 0 ); IP.push_back( 0 ); IP.push_back( 0 ); SendAll( m_Protocol->SEND_W3GS_PLAYERINFO( m_VirtualHostPID, m_VirtualHostName, IP, IP ) ); } void CBaseGame :: DeleteVirtualHost( ) { if( m_VirtualHostPID == 255 ) return; SendAll( m_Protocol->SEND_W3GS_PLAYERLEAVE_OTHERS( m_VirtualHostPID, PLAYERLEAVE_LOBBY ) ); m_VirtualHostPID = 255; } void CBaseGame :: CreateFakePlayer( ) { if( m_FakePlayerPID != 255 ) return; unsigned char SID = GetEmptySlot( false ); if( SID < m_Slots.size( ) ) { if( GetNumPlayers( ) >= 11 ) DeleteVirtualHost( ); m_FakePlayerPID = GetNewPID( ); BYTEARRAY IP; IP.push_back( 0 ); IP.push_back( 0 ); IP.push_back( 0 ); IP.push_back( 0 ); SendAll( m_Protocol->SEND_W3GS_PLAYERINFO( m_FakePlayerPID, "FakePlayer", IP, IP ) ); m_Slots[SID] = CGameSlot( m_FakePlayerPID, 100, SLOTSTATUS_OCCUPIED, 0, m_Slots[SID].GetTeam( ), m_Slots[SID].GetColour( ), m_Slots[SID].GetRace( ) ); SendAllSlotInfo( ); } } void CBaseGame :: DeleteFakePlayer( ) { if( m_FakePlayerPID == 255 ) return; for( unsigned char i = 0; i < m_Slots.size( ); i++ ) { if( m_Slots[i].GetPID( ) == m_FakePlayerPID ) m_Slots[i] = CGameSlot( 0, 255, SLOTSTATUS_OPEN, 0, m_Slots[i].GetTeam( ), m_Slots[i].GetColour( ), m_Slots[i].GetRace( ) ); } SendAll( m_Protocol->SEND_W3GS_PLAYERLEAVE_OTHERS( m_FakePlayerPID, PLAYERLEAVE_LOBBY ) ); SendAllSlotInfo( ); m_FakePlayerPID = 255; } unsigned char CBaseGame :: GetTeamOfPlayer(CGamePlayer* player) { unsigned char SID = GetSIDFromPID(player->GetPID()); if(SID != 255) { return m_Slots[SID].GetTeam(); } } int CBaseGame :: GetNumPlayersInTeam(unsigned char team) { int num = 0; for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) if(GetTeamOfPlayer(*i) == team) num++; return num; } bool CBaseGame :: Unhost() { if( m_CountDownStarted || m_GameLoading || m_GameLoaded ) { return false; } else { m_Exiting = true; return true; } }
[ "jonas@titan.(none)" ]
[ [ [ 1, 4652 ] ] ]
4df2736440344135c210a67b91ef88acaee18fa3
21da454a8f032d6ad63ca9460656c1e04440310e
/src/wcpp/lang/ref/wscWeakReference.h
1d13a562f57205431d29d017926b3a020c7ad13e
[]
no_license
merezhang/wcpp
d9879ffb103513a6b58560102ec565b9dc5855dd
e22eb48ea2dd9eda5cd437960dd95074774b70b0
refs/heads/master
2021-01-10T06:29:42.908096
2009-08-31T09:20:31
2009-08-31T09:20:31
46,339,619
0
0
null
null
null
null
UTF-8
C++
false
false
906
h
#pragma once #include <wcpp/lang/wscObject.h> #include "wsiWeakReference.h" #include "wsiSupportsWeakReference.h" #include <wcpp/lang/wscString.h> class wsiWeakReferenceCtrl : public wsiWeakReference { public: static const ws_iid sIID; public: WS_METHOD( ws_result , Clear )(void) = 0; }; class wscWeakReference : public wscObject, public wsiWeakReferenceCtrl { public: typedef wscWeakReference t_this_class; static const ws_char * const s_class_name; private: wscWeakReference(const wscWeakReference & init); const wscWeakReference & operator=(const wscWeakReference & init); WS_METHOD( ws_result , Clear )(void); WS_METHOD( ws_result , GetTarget )(const ws_iid & aIID, void ** ret); public: wscWeakReference(wsiSupportsWeakReference * obj); ~wscWeakReference(void); private: wsiSupportsWeakReference * m_ptr; };
[ "xukun0217@98f29a9a-77f1-11de-91f8-ab615253d9e8" ]
[ [ [ 1, 42 ] ] ]
f9dcf2123d16d31245dacd5975e52ffcb17acef6
3856c39683bdecc34190b30c6ad7d93f50dce728
/LastProject/Source/ASEViewerBase.cpp
49716a1f74a3d793fff4a4058837c68fae2a879d
[]
no_license
yoonhada/nlinelast
7ddcc28f0b60897271e4d869f92368b22a80dd48
5df3b6cec296ce09e35ff0ccd166a6937ddb2157
refs/heads/master
2021-01-20T09:07:11.577111
2011-12-21T22:12:36
2011-12-21T22:12:36
34,231,967
0
0
null
null
null
null
UHC
C++
false
false
3,439
cpp
#include "stdafx.h" #include "ASEViewerBase.h" VOID ASEViewerBase::Initialize() { } VOID ASEViewerBase::Release() { } HRESULT ASEViewerBase::CreateVB( LPDIRECT3DVERTEXBUFFER9* _ppVB, INT _nVertex, INT _Size, DWORD _FVF ) { if( FAILED( m_pD3dDevice->CreateVertexBuffer( _nVertex * _Size, 0, _FVF, D3DPOOL_DEFAULT, &(*_ppVB), NULL ) ) ) { MessageBox( NULL, L"CreateVertexBuffer() failed.", NULL, MB_OK ); return E_FAIL; } return S_OK; } HRESULT ASEViewerBase::SetVB( LPDIRECT3DVERTEXBUFFER9 _pVB, LPVOID _pvertices, INT _nVertex, INT _Size ) { LPVOID pvertices; if( FAILED( _pVB->Lock( 0, _nVertex * _Size, (VOID**)&pvertices, 0 ) ) ) { MessageBox( NULL, L"m_pVB->Lock() failed.", NULL, MB_OK ); return E_FAIL; } memcpy( pvertices, _pvertices, _nVertex * _Size ); _pVB->Unlock(); return S_OK; } HRESULT ASEViewerBase::CreateIB( LPDIRECT3DINDEXBUFFER9* _ppIB, INT _nIndex, INT _Size ) { if( FAILED( m_pD3dDevice->CreateIndexBuffer( _nIndex * _Size, 0, D3DFMT_INDEX32, D3DPOOL_DEFAULT, &(*_ppIB), NULL ) ) ) { MessageBox( NULL, TEXT("CreateIndexBuffer() failed."), NULL, MB_OK ); return E_FAIL; } return S_OK; } HRESULT ASEViewerBase::SetIB( LPDIRECT3DINDEXBUFFER9 _pIB, LPVOID _indices, INT _nIndex, INT _Size ) { LPVOID pIndices; if( FAILED( _pIB->Lock( 0, _nIndex * _Size, (VOID**)&pIndices, 0 ) ) ) { MessageBox( NULL, L"m_pIB->Lock() failed.", NULL, MB_OK ); return E_FAIL; } memcpy( pIndices, _indices, _nIndex * _Size ); _pIB->Unlock(); return S_OK; } HRESULT ASEViewerBase::LoadTextureFromFile( LPDIRECT3DTEXTURE9* _ppTexture, LPCWSTR FileName ) { if( FAILED( D3DXCreateTextureFromFileEx( m_pD3dDevice, FileName, // 컴파일러 설정이 Unicode를 요구하고 있는 경우 데이터 타입 LPCSTR은 LPCWSTR이 된다 D3DX_DEFAULT_NONPOW2, // 원본 크기를 받아온다 2의 승수로도 받아올수 있다 D3DX_DEFAULT_NONPOW2, // 원본 크기를 받아온다 D3DX_DEFAULT, // 요구되는 밉레벨의 수, 이 값이 0또는 D3DX_DEFAULT의 경우 완전한 밉맵 체인 생성 NULL, // 동적 텍스쳐 D3DFMT_X8R8G8B8, // 텍스처 포멧 D3DFMT_UNKKNOWN의 경우 포멧은 파일로부터 취득 D3DPOOL_MANAGED, // 텍스처의 배치처가 되는 메모리 클래스를 기술한다 D3DX_DEFAULT, // 필터링 방법, D3DX_DEFAULT는 D3DX_FILTER_TRIANGLE | D3DX_FILTER_DITHER 와 같다 D3DX_DEFAULT, // 필터링 방법, D3DX_DEFAULT는 D3DX_FILTER_BOX 와 같다 NULL, // 투명이 되는 D3DCOLOR값, 컬러키를 무효로 하는 경우는 0을 지정 NULL, // 소스 이미지 파일내의 데이터의 기술을 저장하는 D3DXIMAGE INFO 구조체의 포인터 NULL, // 저장하는 256 색 팔레트를 나타내는 PALETTEENTRY 구조체의 포인터 &(*_ppTexture) ) ) ) // 생성된 큐브 텍스처 개체를 나타내는 IDirect3DTexture9 인터페이스의 포인터 주소 { //MessageBox( NULL, L"D3DCreateTextureFromFile() Failed.", NULL, MB_OK ); return E_FAIL; } TCHAR str[ 1024 ]; wsprintf( str, L"LoadTexture : %s\n", FileName ); ////CDebugConsole::GetInstance()->Message( str ); return S_OK; }
[ "[email protected]@d02aaf57-2019-c8cd-d06c-d029ef2af4e0", "[email protected]@d02aaf57-2019-c8cd-d06c-d029ef2af4e0" ]
[ [ [ 1, 13 ], [ 15, 43 ], [ 45, 75 ], [ 77, 96 ], [ 98, 101 ] ], [ [ 14, 14 ], [ 44, 44 ], [ 76, 76 ], [ 97, 97 ] ] ]
6e7a062b797d318f349f07f77a2f6c1ef8616f61
bef7d0477a5cac485b4b3921a718394d5c2cf700
/nanobots/src/demo/entity/StreamEntity.h
c4dd7455e53e4107446a057853a5733d223f9b84
[ "MIT" ]
permissive
TomLeeLive/aras-p-dingus
ed91127790a604e0813cd4704acba742d3485400
22ef90c2bf01afd53c0b5b045f4dd0b59fe83009
refs/heads/master
2023-04-19T20:45:14.410448
2011-10-04T10:51:13
2011-10-04T10:51:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
595
h
#ifndef __STREAM_ENTITY_H #define __STREAM_ENTITY_H #include "MeshEntity.h" #include "../game/GameMap.h" class CStreamImpostorsRenderer; class CStreamEntity : public CMeshEntity { public: CStreamEntity( const CGameMap::SStream& stream, float x, float y, int type ); virtual ~CStreamEntity(); // early outs if not visible void render( eRenderMode renderMode, CStreamImpostorsRenderer& impostorer, bool insideView ); void update(); private: SVector4 mColor; const CGameMap::SStream* mStream; float mVelocityX; float mVelocityY; int mType; }; #endif
[ [ [ 1, 28 ] ] ]
5cc7924d15c25b440d5bde85fd61e6ae2703a8d1
e744c4dacc3b9c4a44a725e2601c678f29826ace
/project/jni/materials.cpp
4000b2b05feb98a946a85e5a6073b62bac1495fd
[]
no_license
jcayzac/androido3d
298559ebbe657482afe6b3b616561a1127320388
3466ed0ec790d8cbfe24cb5a4e72f1b432726e81
refs/heads/master
2016-09-06T06:31:09.984535
2010-12-28T01:45:39
2010-12-28T01:45:39
1,816,466
6
0
null
null
null
null
UTF-8
C++
false
false
16,698
cpp
/* * Copyright (C) 2009 The Android Open Source Project * * 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. */ #include "materials.h" #include <string> #include <vector> #include "core/cross/effect.h" #include "core/cross/material.h" #include "core/cross/pack.h" #include "core/cross/sampler.h" #include "core/cross/types.h" #include "render_graph.h" #include "shader_builder.h" namespace o3d_utils { /** * Checks a material's params by name to see if it possibly has non 1.0 alpha. * Given a name, checks for a ParamTexture called 'nameTexture' and if that * fails, checks for a ParamFloat4 'name'. * @private * @param {!o3d.Material} material Materal to check. * @param {string} name name of color params to check. * @return {{found: boolean, nonOneAlpha: boolean}} found is true if one of * the params was found, nonOneAlpha is true if that param had non 1.0 * alpha. */ bool Materials::hasNonOneAlpha( o3d::Material* material, const std::string& name, bool* nonOneAlpha) { bool found = false; *nonOneAlpha = false; o3d::Texture* texture = NULL; o3d::ParamSampler* samplerParam = material->GetParam<o3d::ParamSampler>(name + "Sampler"); if (samplerParam) { found = true; o3d::Sampler* sampler = samplerParam->value(); if (sampler) { texture = sampler->texture(); } } else { o3d::ParamTexture* textureParam = material->GetParam<o3d::ParamTexture>(name + "Texture"); if (textureParam) { found = true; texture = textureParam->value(); } } if (texture && !texture->alpha_is_one()) { *nonOneAlpha = true; } if (!found) { o3d::ParamFloat4* colorParam = material->GetParam<o3d::ParamFloat4>(name); if (colorParam) { found = true; // TODO: this check does not work. We need to check for the // <transparency> and <transparent> elements or something. // if (colorParam.value[3] < 1) { // nonOneAlpha = true; // } } } return found; }; /** * Prepares a material by setting their drawList and possibly creating * an standard effect if one does not already exist. * * This function is very specific to our sample importer. It expects that if * no Effect exists on a material that certain extra Params have been created * on the Material to give us instructions on what to Effects to create. * * @param {!o3d.Pack} pack Pack to manage created objects. * @param {!o3djs.rendergraph.ViewInfo} viewInfo as returned from * o3djs.rendergraph.createView. * @param {!o3d.Material} material to prepare. * @param {string} opt_effectType type of effect to create ('phong', * 'lambert', 'constant'). * * @see o3djs.material.attachStandardEffect */ void Materials::PrepareMaterial( o3d::Pack* pack, o3d_utils::ViewInfo* view_info, o3d::Material* material, std::string opt_effect_type) { // Assume we want the performance list o3d::DrawList* draw_list = view_info->performance_draw_pass_info()->draw_list(); // First check if we have a tag telling us that it is or is not // transparent if (!material->draw_list()) { o3d::ParamBoolean* param = material->GetParam<o3d::ParamBoolean>( "collada.transparent"); if (param) { material->set_draw_list(param->value() ? view_info->z_ordered_draw_pass_info()->draw_list() : view_info->performance_draw_pass_info()->draw_list()); } } // If the material has no effect, try to build shaders for it. if (!material->effect()) { // If the user didn't pass an effect type in see if one was stored there // by our importer. if (opt_effect_type.empty()) { // Retrieve the lightingType parameter from the material, if any. std::string lightingType = ShaderBuilder::getColladaLightingType(material); if (!lightingType.empty()) { opt_effect_type = lightingType; } } if (!opt_effect_type.empty()) { AttachStandardEffect(pack, material, view_info, opt_effect_type); // For collada common profile stuff guess what drawList to use. Note: We // can only do this for collada common profile stuff because we supply // the shaders and therefore now the inputs and how they are used. // For other shaders you've got to do this stuff yourself. On top of // that this is a total guess. Just because a texture has no alpha // it does not follow that you don't want it in the zOrderedDrawList. // That is application specific. Here we are just making a guess and // hoping that it covers most cases. if (!material->draw_list()) { // Check the common profile params. bool nonOneAlpha = false; bool found = hasNonOneAlpha(material, "diffuse", &nonOneAlpha); if (!found) { found = hasNonOneAlpha(material, "emissive", &nonOneAlpha); } if (nonOneAlpha) { draw_list = view_info->z_ordered_draw_pass_info()->draw_list(); } } } } if (!material->draw_list()) { material->set_draw_list(draw_list); } } /** * Builds a standard effect for a given material. * If the material already has an effect, none is created. * @param {!o3d.Pack} pack Pack to manage created objects. * @param {!o3d.Material} material The material for which to create an * effect. * @param {string} effectType Type of effect to create ('phong', 'lambert', * 'constant'). * * @see o3djs.effect.attachStandardShader */ void Materials::AttachStandardEffectEx( o3d::Pack* pack, o3d::Material* material, const std::string& effectType) { if (!material->effect()) { scoped_ptr<ShaderBuilder> shader_builder(ShaderBuilder::Create()); if (!shader_builder->attachStandardShader( pack, material, o3d::Vector3(0.0f, 0.0f, 0.0f), effectType)) { NOTREACHED() << "'Could not attach a standard effect"; } } }; void Materials::AttachStandardEffect( o3d::Pack* pack, o3d::Material* material, o3d_utils::ViewInfo* viewInfo, const std::string& effectType) { if (!material->effect()) { scoped_ptr<ShaderBuilder> shader_builder(ShaderBuilder::Create()); o3d::Vector3 light_pos = Vectormath::Aos::inverse( viewInfo->draw_context()->view()).getTranslation(); if (!shader_builder->attachStandardShader( pack, material, light_pos, effectType)) { NOTREACHED() << "Could not attach a standard effect"; } } } /** * Prepares all the materials in the given pack by setting their drawList and * if they don't have an Effect, creating one for them. * * This function is very specific to our sample importer. It expects that if * no Effect exists on a material that certain extra Params have been created * on the Material to give us instructions on what to Effects to create. * * @param {!o3d.Pack} pack Pack to prepare. * @param {!o3djs.rendergraph.ViewInfo} viewInfo as returned from * o3djs.rendergraph.createView. * @param {!o3d.Pack} opt_effectPack Pack to create effects in. If this * is not specifed the pack to prepare above will be used. * * @see o3djs.material.prepareMaterial */ void Materials::PrepareMaterials( o3d::Pack* pack, o3d_utils::ViewInfo* view_info, o3d::Pack* effect_pack) { std::vector<o3d::Material*> materials = pack->GetByClass<o3d::Material>(); for (size_t ii = 0; ii < materials.size(); ++ii) { PrepareMaterial(effect_pack ? effect_pack : pack, view_info, materials[ii], ""); } } /** * This function creates a basic material for when you just want to get * something on the screen quickly without having to manually setup shaders. * You can call this function something like. * * <pre> * &lt;html&gt;&lt;body&gt; * &lt;script type="text/javascript" src="o3djs/all.js"&gt; * &lt;/script&gt; * &lt;script&gt; * window.onload = init; * * function init() { * o3djs.base.makeClients(initStep2); * } * * function initStep2(clientElements) { * var clientElement = clientElements[0]; * var client = clientElement.client; * var pack = client.createPack(); * var viewInfo = o3djs.rendergraph.createBasicView( * pack, * client.root, * client.renderGraphRoot); * var material = o3djs.material.createBasicMaterial( * pack, * viewInfo, * [1, 0, 0, 1]); // red * var shape = o3djs.primitives.createCube(pack, material, 10); * var transform = pack.createObject('Transform'); * transform.parent = client.root; * transform.addShape(shape); * o3djs.camera.fitContextToScene(client.root, * client.width, * client.height, * viewInfo.drawContext); * } * &lt;/script&gt; * &lt;div id="o3d" style="width: 600px; height: 600px"&gt;&lt;/div&gt; * &lt;/body&gt;&lt;/html&gt; * </pre> * * @param {!o3d.Pack} pack Pack to manage created objects. * @param {!o3djs.rendergraph.ViewInfo} viewInfo as returned from * o3djs.rendergraph.createBasicView. * @param {(!o3djs.math.Vector4|!o3d.Texture)} colorOrTexture Either a color in * the format [r, g, b, a] or an O3D texture. * @param {boolean} opt_transparent Whether or not the material is transparent. * Defaults to false. * @return {!o3d.Material} The created material. */ o3d::Material* Materials::CreateBasicMaterial( o3d::Pack* pack, o3d_utils::ViewInfo* viewInfo, o3d::Float4* opt_color, o3d::Texture* opt_texture, bool transparent) { DCHECK(pack); DCHECK(viewInfo); DCHECK(opt_color != NULL || opt_texture != NULL); o3d::Material* material = pack->Create<o3d::Material>(); material->set_draw_list(transparent ? viewInfo->z_ordered_draw_pass_info()->draw_list() : viewInfo->performance_draw_pass_info()->draw_list()); // If it has a length assume it's a color, otherwise assume it's a texture. if (opt_color) { material->CreateParam<o3d::ParamFloat4>("diffuse")->set_value(*opt_color); } else { o3d::ParamSampler* paramSampler = material->CreateParam<o3d::ParamSampler>("diffuseSampler"); o3d::Sampler* sampler = pack->Create<o3d::Sampler>(); paramSampler->set_value(sampler); sampler->set_texture(opt_texture); } // Create some suitable defaults for the material to save the user having // to know all this stuff right off the bat. material->CreateParam<o3d::ParamFloat4>("emissive")->set_value( o3d::Float4(0.0f, 0.0f, 0.0f, 1.0f)); material->CreateParam<o3d::ParamFloat4>("ambient")->set_value( o3d::Float4(0.0f, 0.0f, 0.0f, 1.0f)); material->CreateParam<o3d::ParamFloat4>("specular")->set_value( o3d::Float4(1.0f, 1.0f, 1.0f, 1.0f)); material->CreateParam<o3d::ParamFloat>("shininess")->set_value(50.0f); material->CreateParam<o3d::ParamFloat>("specularFactor")->set_value(1.0f); material->CreateParam<o3d::ParamFloat4>("lightColor")->set_value( o3d::Float4(1.0f, 1.0f, 1.0f, 1.0f)); o3d::ParamFloat3* lightPositionParam = material->CreateParam<o3d::ParamFloat3>("lightWorldPos"); AttachStandardEffect(pack, material, viewInfo, "phong"); // We have to set the light position after calling attachStandardEffect // because attachStandardEffect sets it based on the view. lightPositionParam->set_value(o3d::Float3(1000.0f, 2000.0f, 3000.0f)); return material; }; /** * This function creates a constant material. No lighting. It is especially * useful for debugging shapes and 2d UI elements. * * @param {!o3d.Pack} pack Pack to manage created objects. * @param {!o3d.DrawList} drawList The DrawList for the material. * @param {(!o3djs.math.Vector4|!o3d.Texture)} colorOrTexture Either a color in * the format [r, g, b, a] or an O3D texture. * @return {!o3d.Material} The created material. */ o3d::Material* Materials::CreateConstantMaterialEx( o3d::Pack* pack, o3d::DrawList* drawList, o3d::Float4* opt_color, o3d::Texture* opt_texture) { DCHECK(pack); DCHECK(drawList); DCHECK(opt_color != NULL || opt_texture != NULL); o3d::Material* material = pack->Create<o3d::Material>(); material->set_draw_list(drawList); // If it has a length assume it's a color, otherwise assume it's a texture. if (opt_color) { material->CreateParam<o3d::ParamFloat4>("emissive")->set_value(*opt_color); } else { o3d::ParamSampler* paramSampler = material->CreateParam<o3d::ParamSampler>("emissiveSampler"); o3d::Sampler* sampler = pack->Create<o3d::Sampler>(); paramSampler->set_value(sampler); sampler->set_texture(opt_texture); } AttachStandardEffectEx(pack, material, "constant"); return material; } /** * This function creates a constant material. No lighting. It is especially * useful for debugging shapes and 2d UI elements. * * @param {!o3d.Pack} pack Pack to manage created objects. * @param {!o3djs.rendergraph.ViewInfo} viewInfo as returned from * o3djs.rendergraph.createBasicView. * @param {(!o3djs.math.Vector4|!o3d.Texture)} colorOrTexture Either a color in * the format [r, g, b, a] or an O3D texture. * @param {boolean} opt_transparent Whether or not the material is transparent. * Defaults to false. * @return {!o3d.Material} The created material. */ o3d::Material* Materials::CreateConstantMaterial( o3d::Pack* pack, o3d_utils::ViewInfo* viewInfo, o3d::Float4* opt_color, o3d::Texture* opt_texture, bool transparent) { DCHECK(pack); DCHECK(viewInfo); DCHECK(opt_color != NULL || opt_texture != NULL); return CreateConstantMaterialEx( pack, transparent ? viewInfo->z_ordered_draw_pass_info()->draw_list() : viewInfo->performance_draw_pass_info()->draw_list(), opt_color, opt_texture); } /** * This function creates 2 color procedureal texture material. * * @see o3djs.material.createBasicMaterial * * @param {!o3d.Pack} pack Pack to manage created objects. * @param {!o3djs.rendergraph.ViewInfo} viewInfo as returned from * o3djs.rendergraph.createBasicView. * @param {!o3djs.math.Vector4} opt_color1 a color in the format [r, g, b, a]. * Defaults to a medium blue-green. * @param {!o3djs.math.Vector4} opt_color2 a color in the format [r, g, b, a]. * Defaults to a light blue-green. * @param {boolean} opt_transparent Whether or not the material is transparent. * Defaults to false. * @param {number} opt_checkSize Defaults to 10 units. * @return {!o3d.Material} The created material. */ o3d::Material* Materials::CreateCheckerMaterial( o3d::Pack* pack, o3d_utils::ViewInfo* viewInfo, o3d::Float4* opt_color1, o3d::Float4* opt_color2, bool transparent, float checkSize) { o3d::Float4 color1(0.4f, 0.5f, 0.5f, 1.0f); o3d::Float4 color2(0.6f, 0.8f, 0.8f, 1.0f); if (opt_color1) { color1 = *opt_color1; } if (opt_color2) { color2 = *opt_color2; } scoped_ptr<ShaderBuilder> builder_(ShaderBuilder::Create()); o3d::Effect* effect = builder_->createCheckerEffect(pack); o3d::Material* material = pack->Create<o3d::Material>();; material->set_effect(effect); material->set_draw_list(transparent ? viewInfo->z_ordered_draw_pass_info()->draw_list() : viewInfo->performance_draw_pass_info()->draw_list()); ShaderBuilder::createUniformParameters(pack, effect, material); material->GetParam<o3d::ParamFloat4>("color1")->set_value(color1); material->GetParam<o3d::ParamFloat4>("color2")->set_value(color2); material->GetParam<o3d::ParamFloat>("checkSize")->set_value(checkSize); return material; }; } // namespace o3d_utils
[ [ [ 1, 450 ] ] ]
333d762373b1a880c8383164dd44afd1d122d8d7
1c4a1cd805be8bc6f32b0a616de751ad75509e8d
/jacknero/src/pku_src/2623/3573433_AC_266MS_2180K.cpp
52904770baccf09ac657d6b08c79b96301be9dfc
[]
no_license
jacknero/mycode
30313261d7e059832613f26fa453abf7fcde88a0
44783a744bb5a78cee403d50eb6b4a384daccf57
refs/heads/master
2016-09-06T18:47:12.947474
2010-05-02T10:16:30
2010-05-02T10:16:30
180,950
1
0
null
null
null
null
UTF-8
C++
false
false
361
cpp
#include <cstdio> #include <algorithm> using namespace std; __int64 a[250003]; int main() { int N; scanf("%d", &N); for(int i=1;i<=N;i++) scanf("%I64d", a+i); sort(a+1, a+N+1); if(N&1) { printf("%.1f\n", (double)a[(N+1)/2]); } else { __int64 tmp = (a[N/2]+a[N/2+1])*10 / 2; printf("%.1f\n", tmp/10.); } return 0; }
[ [ [ 1, 23 ] ] ]
387cf444f428ece864d946b3bd3a56f2c4188b2c
3e69b159d352a57a48bc483cb8ca802b49679d65
/branches/bokeoa-scons/gerbview/undelete.cpp
389df39242374fc089edaa2eff724d4fc3513818
[]
no_license
BackupTheBerlios/kicad-svn
4b79bc0af39d6e5cb0f07556eb781a83e8a464b9
4c97bbde4b1b12ec5616a57c17298c77a9790398
refs/heads/master
2021-01-01T19:38:40.000652
2006-06-19T20:01:24
2006-06-19T20:01:24
40,799,911
0
0
null
null
null
null
UTF-8
C++
false
false
2,886
cpp
/********************************************************/ /* Effacements : Routines de sauvegarde et d'effacement */ /********************************************************/ #include "fctsys.h" #include "common.h" #include "gerbview.h" #include "protos.h" /* Routines externes : */ /* Routines Locales */ /***********************************************/ void WinEDA_GerberFrame::UnDeleteItem(wxDC * DC) /***********************************************/ /* Restitution d'un element (MODULE ou TRACK ) Efface */ { EDA_BaseStruct * PtStruct, *PtNext; TRACK * pt_track; int net_code; if( ! g_UnDeleteStackPtr ) return; g_UnDeleteStackPtr --; PtStruct = g_UnDeleteStack[g_UnDeleteStackPtr]; if ( PtStruct == NULL ) return; // Ne devrait pas se produire switch(PtStruct->m_StructType) { case TYPEVIA: case TYPETRACK: for( ; PtStruct != NULL; PtStruct = PtNext) { PtNext = PtStruct->Pnext; PtStruct->SetState(DELETED,OFF); /* Effacement du bit DELETED */ Trace_Segment(DrawPanel, DC, (TRACK*) PtStruct, GR_OR); } PtStruct = g_UnDeleteStack[g_UnDeleteStackPtr]; net_code = ((TRACK*)PtStruct)->m_NetCode; pt_track = ( (TRACK*) PtStruct)->GetBestInsertPoint(m_Pcb); ((TRACK*)PtStruct)->Insert(m_Pcb, pt_track); g_UnDeleteStack[g_UnDeleteStackPtr] = NULL; break; default: DisplayError(this, wxT("Undelete struct: type Struct inattendu")); break; } } /********************************************************************/ EDA_BaseStruct * SaveItemEfface(EDA_BaseStruct * PtItem, int nbitems) /********************************************************************/ /* Sauvegarde d'un element aux fins de restitution par Undelete Supporte actuellement : Module et segments de piste */ { EDA_BaseStruct * NextS, * PtStruct = PtItem; int ii; if( (PtItem == NULL) || (nbitems == 0) ) return NULL; if (g_UnDeleteStackPtr >= UNDELETE_STACK_SIZE ) { /* Delete last deleted item, and shift stack. */ DeleteStructure(g_UnDeleteStack[0]); for (ii = 0; ii < (g_UnDeleteStackPtr-1); ii++) { g_UnDeleteStack[ii] = g_UnDeleteStack[ii + 1]; } g_UnDeleteStackPtr--;; } g_UnDeleteStack[g_UnDeleteStackPtr++] = PtItem; switch ( PtStruct->m_StructType ) { case TYPEVIA: case TYPETRACK: { EDA_BaseStruct * Back = NULL; g_UnDeleteStack[g_UnDeleteStackPtr-1] = PtStruct; for ( ; nbitems > 0; nbitems--, PtStruct = NextS) { NextS = PtStruct->Pnext; ((TRACK*)PtStruct)->UnLink(); PtStruct->SetState(DELETED, ON); if( nbitems <= 1 ) NextS = NULL; /* fin de chaine */ PtStruct->Pnext = NextS; PtStruct->Pback = Back; Back = PtStruct; if(NextS == NULL) break; } } break; default: break; } return(g_UnDeleteStack[g_UnDeleteStackPtr-1]); }
[ "bokeoa@244deca0-f506-0410-ab94-f4f3571dea26" ]
[ [ [ 1, 108 ] ] ]
52079a12ef36175bdaffda691998d310a7634f24
6d94a4365af81730ef597dfb22e5c35e51400ade
/Code/Libs/Hash/Hash.cpp
b8bf7e05a248a559631fb9896e5c7710692a61c2
[]
no_license
shaun-leach/game-riff
be57a59659d0fcb413dd75f51dae1bda8a9cdc98
8f649d06ce763bc828817a417d01f44402c93f7e
refs/heads/master
2016-09-08T00:30:27.025751
2011-07-16T05:31:31
2011-07-16T05:31:31
32,223,990
0
0
null
null
null
null
UTF-8
C++
false
false
5,195
cpp
/* GameRiff - Framework for creating various video game services Functions for hashing strings and data Copyright (C) 2011, Shaun Leach. 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 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. */ #include "Pch.h" ////////////////////////////////////////////////////// // // Constants // #define INIT_A (0xabcdefab) #define INIT_B (0x12345678) ////////////////////////////////////////////////////// // // External functions // //==================================================== Hash64::Hash64(const charsys * str) { m_hash = NSLookup3::Lookup3HashString64(str, INIT_A, INIT_B); } //==================================================== Hash64::Hash64(const chargr * str) { m_hash = NSLookup3::Lookup3HashString64(str, INIT_A, INIT_B); } //==================================================== Hash64::Hash64(const charsys * str, uint64 hash) { if (hash != 0) { ASSERTMSGGR_DBG(str == NULL || Hash64(str).m_hash == hash, "Precompiled hash does not match"); m_hash = hash; } else { ASSERTGR(str != NULL); m_hash = NSLookup3::Lookup3HashString64(str, INIT_A, INIT_B); } } //==================================================== Hash64::Hash64(const chargr * str, uint64 hash) { if (hash != 0) { ASSERTMSGGR_DBG(str == NULL || Hash64(str).m_hash == hash, "Precompiled hash does not match"); m_hash = hash; } else { ASSERTGR(str != NULL); m_hash = NSLookup3::Lookup3HashString64(str, INIT_A, INIT_B); } } //==================================================== Hash64::Hash64(const void * data, unsigned length) { m_hash = NSLookup3::Lookup3Hash64(data, length, INIT_A, INIT_B); } //==================================================== Hash32::Hash32(const charsys * str) { m_hash = NSLookup3::Lookup3HashString32(str, INIT_A); } //==================================================== Hash32::Hash32(const chargr * str) { m_hash = NSLookup3::Lookup3HashString32(str, INIT_A); } //==================================================== Hash32::Hash32(const charsys * str, uint32 hash) { if (hash != 0) { ASSERTMSGGR_DBG(str == NULL || Hash32(str).m_hash == hash, "Precompiled hash does not match"); m_hash = hash; } else { ASSERTGR(str != NULL); m_hash = NSLookup3::Lookup3HashString32(str, INIT_A); } } //==================================================== Hash32::Hash32(const chargr * str, uint32 hash) { if (hash != 0) { ASSERTMSGGR_DBG(str == NULL || Hash32(str).m_hash == hash, "Precompiled hash does not match"); m_hash = hash; } else { ASSERTGR(str != NULL); m_hash = NSLookup3::Lookup3HashString32(str, INIT_A); } } //==================================================== Hash32::Hash32(const void * data, unsigned length) { m_hash = NSLookup3::Lookup3Hash32(data, length, INIT_A); } //==================================================== Hash64 HashString64( const charsys * str ) { return Hash64(str); } //==================================================== Hash64 HashString64( const chargr * str ) { return Hash64(str); } //==================================================== Hash32 HashString32( const charsys * str ) { return Hash32(str); } //==================================================== Hash32 HashString32( const chargr * str ) { return Hash32(str); } //==================================================== Hash64 HashData64( const void * data, unsigned length ) { return Hash64(data, length); } //==================================================== Hash32 HashData32( const void * data, unsigned length ) { return Hash32(data, length); }
[ "[email protected]@91311ff6-4d11-5f1f-8822-9f0e3032c885" ]
[ [ [ 1, 166 ] ] ]
e7b7b06748085faf7f5f5295a6b07234f4bf96f8
a0bc9908be9d42d58af7a1a8f8398c2f7dcfa561
/SlonEngine/slon/stdafx.h
3eb86ad7430cf9bb128ada3729bdae8c7666af6f
[]
no_license
BackupTheBerlios/slon
e0ca1137a84e8415798b5323bc7fd8f71fe1a9c6
dc10b00c8499b5b3966492e3d2260fa658fee2f3
refs/heads/master
2016-08-05T09:45:23.467442
2011-10-28T16:19:31
2011-10-28T16:19:31
39,895,039
0
0
null
null
null
null
UTF-8
C++
false
false
1,574
h
#ifndef __SLON_ENGINE_STDAFX_H__ #define __SLON_ENGINE_STDAFX_H__ // config #include "Config.h" #ifdef _MSC_VER // warns that classes not marked with SLON_EXPORT wouldn't be exported, // but there are lots of header only classes, e.g. matrices, vectors, signals, ... # pragma warning( disable : 4251 ) #endif // stdlib #include <cstdlib> // STL #include <algorithm> #include <deque> #include <functional> #include <fstream> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <memory> #include <numeric> #include <set> #include <sstream> #include <stack> #include <stdexcept> #include <queue> #include <vector> // BOOST #include <boost/bind.hpp> #include <boost/intrusive_ptr.hpp> #include <boost/iostreams/filtering_stream.hpp> #include <boost/iostreams/filtering_streambuf.hpp> #include <boost/iostreams/stream.hpp> #include <boost/iostreams/stream_buffer.hpp> #include <boost/iterator/iterator_facade.hpp> #include <boost/lexical_cast.hpp> #include <boost/serialization/serialization.hpp> #include <boost/scoped_array.hpp> #include <boost/scoped_ptr.hpp> #include <boost/shared_array.hpp> #include <boost/shared_ptr.hpp> #include <boost/signals.hpp> #include <boost/type_traits.hpp> #include <boost/variant.hpp> #include <boost/weak_ptr.hpp> #include <boost/xpressive/xpressive.hpp> // System #ifdef WIN32 # define NOMINMAX # define WIN32_LEAN_AND_MEAN # include <windows.h> #elif defined(__linux__) #endif #endif // __SLON_ENGINE_STDAFX_H__
[ "devnull@localhost", "DikobrAz@DikobrAz-PC" ]
[ [ [ 1, 42 ], [ 44, 62 ] ], [ [ 43, 43 ] ] ]
8d84d8991dd1e7dadc57d51af475d521dfe7050c
8a8873b129313b24341e8fa88a49052e09c3fa51
/inc/Dialog.h
4d24bfa86b829a49e2b9372149d0e7d2aba5a972
[]
no_license
flaithbheartaigh/wapbrowser
ba09f7aa981d65df810dba2156a3f153df071dcf
b0d93ce8517916d23104be608548e93740bace4e
refs/heads/master
2021-01-10T11:29:49.555342
2010-03-08T09:36:03
2010-03-08T09:36:03
50,261,329
1
0
null
null
null
null
UTF-8
C++
false
false
3,404
h
/* ============================================================================ Name : Dialog.h Author : 浮生若茶 Version : Copyright : Your copyright notice Description : CDialog declaration ============================================================================ */ #ifndef DIALOG_H #define DIALOG_H #include "Control.h" // #include "Basesprite.h" // #include "PreDefine.h" #include "NotifyTimer.h" class CMultiText; class CMainEngine; class CScreenLayout; class CBitmapFactory; class MDialogObserver; class MCommondBase; class CDialog : public CControl , public MTimerNotifier { public: enum TDialogType { EDialogTip, //提示 EDialogInquire, //询问 EDialogWaiting, //等待 EDialogWaitingWithoutCancel, //等待界面不可取消 }; public: // Constructors and destructor ~CDialog(); static CDialog* NewL(const TDesC& aText,MDialogObserver& aObserver, CMainEngine& aMainEngine,TInt aDialogType = EDialogTip); static CDialog* NewLC(const TDesC& aText,MDialogObserver& aObserver, CMainEngine& aMainEngine,TInt aDialogType = EDialogTip); private: CDialog(MDialogObserver& aObserver, CMainEngine& aMainEngine,TInt aDialogType); void ConstructL(const TDesC& aText); public://From CControl virtual void Draw(CGraphic& aGraphic)const; virtual TBool KeyEventL(TInt aKeyCode); virtual TBool HandleCommandL(TInt aCommand); virtual void SizeChanged(const TRect& aScreenRect); virtual const TDesC& LeftButton() const; virtual const TDesC& RightButton() const; public://From MTimerNotifier virtual TBool DoPeriodTask(); public: // void Draw(CBitmapContext& gc)const; // TBool KeyEventL(TInt aKeyCode); //void DoPeriodTask(); void SetLeftCommand(MCommondBase* aCommand); void SetRightCommand(MCommondBase* aCommand); void SetLeftCommandType(TInt aCommand); void SetRightCommandType(TInt aCommand); void SetLeftButtonL(const TDesC& aDes); void SetRightButtonL(const TDesC& aDes); void SetRect(const TRect& aRect); void SetDismissTime(TInt aTime); void SetIconType(TInt aIconType); //临时使用 private: void InitMultiTextL(const TDesC& aText); void DrawBackground(CGraphic& gc)const; void DrawIcon(CGraphic& gc)const; void DrawButton(CGraphic& gc)const; void DrawAnimation(CGraphic& gc)const; void InitBitmaps(); void ReleaseBmps(); void InitAnimBitmapL(); private: MDialogObserver& iObserver; CMainEngine& iMainEngine; //临时使用 const CScreenLayout& iScreenLayout; const CBitmapFactory& iBitmapFactory; CMultiText* iMultiText; CNotifyTimer* iNotifyTimer; TInt iDialogType; MCommondBase* iLeftCommand; MCommondBase* iRightCommand; TInt iLeftCommandType; TInt iRightCommandType; HBufC* iLeftButtonText; HBufC* iRightButtonText; TRect iRect; const CFont* iFont; TInt iIconType; TInt iDismissTime; //对话框多久后自动消失 TInt iTimer; //计时 TInt iWaitingIndex; CFbsBitmap* iWaitingBmp; CFbsBitmap* iDialogBmp; CFbsBitmap* iDialogIcon; CFbsBitmap* iDialogIconMask; //TRect iTextRect; TSize iWaitingSize; TSize iDialogSize; TSize iIconSize; TPoint iAnimPoint; TPoint iStartPoint; TPoint iIconPoint; TInt iTextLengthPerLine; TInt iMargin; }; #endif // DIALOG_H
[ "sungrass.xp@37a08ede-ebbd-11dd-bd7b-b12b6590754f" ]
[ [ [ 1, 143 ] ] ]
95ec126522fcb09e0e16fc2a49ec00f5a1aa3d2a
729fbfae883f0f1a7330f62255656b5ed3d51ee6
/DisplacementRender/src/ofxShader/ofxShader.cpp
111ff690f5a777940130088a8bf30cdaf8b33d69
[]
no_license
jjzhang166/CreatorsProjectDev
76d3481f9c6d290485718b96d8e06c1df2676ceb
bf0250731d22a42d7b9b6821aff98fcd663d68c1
refs/heads/master
2021-12-02T03:12:33.528110
2010-09-02T23:33:55
2010-09-02T23:33:55
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,726
cpp
#include "ofxShader.h" ofxShader::ofxShader() : bLoaded(false) { } ofxShader::~ofxShader() { unload(); } void ofxShader::setup(string shaderName) { unload(); string fragmentName = shaderName + ".frag"; string vertexName = shaderName + ".vert"; setup(fragmentName, vertexName); } void ofxShader::setup(string fragmentName, string vertexName) { bLoaded = false; if (GLEE_ARB_shader_objects) { vertexShader = (GLhandleARB) glCreateShader(GL_VERTEX_SHADER); fragmentShader = (GLhandleARB) glCreateShader(GL_FRAGMENT_SHADER); string vs = loadShaderText(vertexName); string fs = loadShaderText(fragmentName); const char* vsptr = vs.c_str(); const char* fsptr = fs.c_str(); int vssize = vs.size(); int fssize = fs.size(); glShaderSourceARB(vertexShader, 1, &vsptr, &vssize); glShaderSourceARB(fragmentShader, 1, &fsptr, &fssize); glCompileShaderARB(vertexShader); //please add compile status check in: //GLint compileStatus = 0; //glGetObjectParameterivARB( vertexShader, GL_COMPILE_STATUS, &compileStatus ); //printf("%i \n", compileStatus); char infobuffer[1000]; GLsizei infobufferlen = 0; glGetInfoLogARB(vertexShader, 999, &infobufferlen, infobuffer); if (infobufferlen != 0) { infobuffer[infobufferlen] = 0; printf("vertexShader reports: %s \n", infobuffer); return; } glCompileShaderARB(fragmentShader); //glGetObjectParameterivARB( fragmentShader, GL_COMPILE_STATUS, &compileStatus ); //printf("%i \n", compileStatus); glGetInfoLogARB(fragmentShader, 999, &infobufferlen, infobuffer); if (infobufferlen != 0) { infobuffer[infobufferlen] = 0; printf("fragmentShader reports: %s \n", infobuffer); return; } shader = glCreateProgramObjectARB(); glAttachObjectARB(shader, vertexShader); glAttachObjectARB(shader, fragmentShader); glLinkProgramARB(shader); bLoaded = true; } else { cout << "Sorry, it looks like you can't run 'ARB_shader_objects'." << endl; cout << "Please check the capabilites of your graphics card." << endl; cout << "http://www.ozone3d.net/gpu_caps_viewer/)" << endl; } } void ofxShader::unload() { if(bLoaded) { if (vertexShader) { glDetachObjectARB(shader, vertexShader); glDeleteObjectARB(vertexShader); vertexShader = 0; } if (fragmentShader) { glDetachObjectARB(shader, fragmentShader); glDeleteObjectARB(fragmentShader); fragmentShader = 0; } if (shader) { glDeleteObjectARB(shader); shader = 0; } } bLoaded = false; } void ofxShader::begin() { if (bLoaded == true) glUseProgramObjectARB(shader); } void ofxShader::end() { if (bLoaded == true) glUseProgramObjectARB(0); } void ofxShader::setSampler2d(string name, ofImage& img, int textureLocation) { if(bLoaded) { GLint uniformLocation = glGetUniformLocation((GLuint) shader, name.c_str()); glUniform1i(uniformLocation, textureLocation); glActiveTexture(GL_TEXTURE0 + textureLocation); img.getTextureReference().bind(); } } void ofxShader::setUniform1f (string name, float value) { if(bLoaded) glUniform1fARB(glGetUniformLocationARB(shader, name.c_str()), value); } void ofxShader::setUniform1i (string name, int value) { if(bLoaded) glUniform1iARB(glGetUniformLocationARB(shader, name.c_str()), value); } void ofxShader::setUniform1fv (string name, int count, float * value) { if(bLoaded) glUniform1fvARB(glGetUniformLocationARB(shader, name.c_str()), count, value); } void ofxShader::setUniform3fv (string name, int count, float * value) { if(bLoaded) glUniform3fvARB(glGetUniformLocationARB(shader, name.c_str()), count, value); } void ofxShader::setUniform4fv (string name, int count, float * value) { if(bLoaded) glUniform4fvARB(glGetUniformLocationARB(shader, name.c_str()), count, value); } void ofxShader::setUniform2f (string name, float value, float value2) { if(bLoaded) glUniform2fARB(glGetUniformLocationARB(shader, name.c_str()), value, value2); } void ofxShader::setUniform3f (string name, float value, float value2, float value3) { if(bLoaded) glUniform3fARB(glGetUniformLocationARB(shader, name.c_str()), value, value2, value3); } string ofxShader::loadShaderText(string filename) { ifstream file; file.open(ofToDataPath(filename).c_str()); string text; while(!file.eof()) { string line; getline(file, line); text += line + '\n'; } file.close(); text += '\0'; return text; } void ofxShader::logError() { GLenum err; if((err = glGetError()) != GL_NO_ERROR) { const GLubyte* errString = gluErrorString(err); ofLog(OF_LOG_ERROR, (const char*) errString); } }
[ [ [ 1, 164 ] ] ]
eab58faeac33d473f788a32a746618c73f172e53
67ef91a4b3f47c6a844632594ed6863ad4ce59ba
/BamWriter.cpp
f5eeb2013bdb0dd8f91e0fe5184207df849fb74c
[]
no_license
ekg/bamquality
54b3925bae3b0116c00374ca314751baa68a8d99
cdfbe15b5a1a60c942ed0819212d921a8dc76274
refs/heads/master
2021-01-25T08:48:29.099820
2010-12-22T21:09:14
2010-12-22T21:09:14
1,175,700
1
0
null
null
null
null
UTF-8
C++
false
false
15,639
cpp
// *************************************************************************** // BamWriter.cpp (c) 2009 Michael Str�mberg, Derek Barnett // Marth Lab, Department of Biology, Boston College // All rights reserved. // --------------------------------------------------------------------------- // Last modified: 16 September 2010 (DB) // --------------------------------------------------------------------------- // Uses BGZF routines were adapted from the bgzf.c code developed at the Broad // Institute. // --------------------------------------------------------------------------- // Provides the basic functionality for producing BAM files // *************************************************************************** #include <iostream> #include "BGZF.h" #include "BamWriter.h" using namespace BamTools; using namespace std; struct BamWriter::BamWriterPrivate { // data members BgzfData mBGZF; bool IsBigEndian; // constructor / destructor BamWriterPrivate(void) { IsBigEndian = SystemIsBigEndian(); } ~BamWriterPrivate(void) { mBGZF.Close(); } // "public" interface void Close(void); bool Open(const string& filename, const string& samHeader, const RefVector& referenceSequences, bool isWriteUncompressed); void SaveAlignment(const BamAlignment& al); // internal methods const unsigned int CalculateMinimumBin(const int begin, int end) const; void CreatePackedCigar(const vector<CigarOp>& cigarOperations, string& packedCigar); void EncodeQuerySequence(const string& query, string& encodedQuery); }; // ----------------------------------------------------- // BamWriter implementation // ----------------------------------------------------- // constructor BamWriter::BamWriter(void) { d = new BamWriterPrivate; } // destructor BamWriter::~BamWriter(void) { delete d; d = 0; } // closes the alignment archive void BamWriter::Close(void) { d->Close(); } // opens the alignment archive bool BamWriter::Open(const string& filename, const string& samHeader, const RefVector& referenceSequences, bool isWriteUncompressed) { return d->Open(filename, samHeader, referenceSequences, isWriteUncompressed); } // saves the alignment to the alignment archive void BamWriter::SaveAlignment(const BamAlignment& al) { d->SaveAlignment(al); } // ----------------------------------------------------- // BamWriterPrivate implementation // ----------------------------------------------------- // closes the alignment archive void BamWriter::BamWriterPrivate::Close(void) { mBGZF.Close(); } // calculates minimum bin for a BAM alignment interval const unsigned int BamWriter::BamWriterPrivate::CalculateMinimumBin(const int begin, int end) const { --end; if( (begin >> 14) == (end >> 14) ) return 4681 + (begin >> 14); if( (begin >> 17) == (end >> 17) ) return 585 + (begin >> 17); if( (begin >> 20) == (end >> 20) ) return 73 + (begin >> 20); if( (begin >> 23) == (end >> 23) ) return 9 + (begin >> 23); if( (begin >> 26) == (end >> 26) ) return 1 + (begin >> 26); return 0; } // creates a cigar string from the supplied alignment void BamWriter::BamWriterPrivate::CreatePackedCigar(const vector<CigarOp>& cigarOperations, string& packedCigar) { // initialize const unsigned int numCigarOperations = cigarOperations.size(); packedCigar.resize(numCigarOperations * BT_SIZEOF_INT); // pack the cigar data into the string unsigned int* pPackedCigar = (unsigned int*)packedCigar.data(); unsigned int cigarOp; vector<CigarOp>::const_iterator coIter; for(coIter = cigarOperations.begin(); coIter != cigarOperations.end(); ++coIter) { switch(coIter->Type) { case 'M': cigarOp = BAM_CMATCH; break; case 'I': cigarOp = BAM_CINS; break; case 'D': cigarOp = BAM_CDEL; break; case 'N': cigarOp = BAM_CREF_SKIP; break; case 'S': cigarOp = BAM_CSOFT_CLIP; break; case 'H': cigarOp = BAM_CHARD_CLIP; break; case 'P': cigarOp = BAM_CPAD; break; default: fprintf(stderr, "ERROR: Unknown cigar operation found: %c\n", coIter->Type); exit(1); } *pPackedCigar = coIter->Length << BAM_CIGAR_SHIFT | cigarOp; pPackedCigar++; } } // encodes the supplied query sequence into 4-bit notation void BamWriter::BamWriterPrivate::EncodeQuerySequence(const string& query, string& encodedQuery) { // prepare the encoded query string const unsigned int queryLen = query.size(); const unsigned int encodedQueryLen = (unsigned int)((queryLen / 2.0) + 0.5); encodedQuery.resize(encodedQueryLen); char* pEncodedQuery = (char*)encodedQuery.data(); const char* pQuery = (const char*)query.data(); unsigned char nucleotideCode; bool useHighWord = true; while(*pQuery) { switch(*pQuery) { case '=': nucleotideCode = 0; break; case 'A': nucleotideCode = 1; break; case 'C': nucleotideCode = 2; break; case 'G': nucleotideCode = 4; break; case 'T': nucleotideCode = 8; break; case 'N': nucleotideCode = 15; break; default: fprintf(stderr, "ERROR: Only the following bases are supported in the BAM format: {=, A, C, G, T, N}. Found [%c]\n", *pQuery); exit(1); } // pack the nucleotide code if(useHighWord) { *pEncodedQuery = nucleotideCode << 4; useHighWord = false; } else { *pEncodedQuery |= nucleotideCode; pEncodedQuery++; useHighWord = true; } // increment the query position pQuery++; } } // opens the alignment archive bool BamWriter::BamWriterPrivate::Open(const string& filename, const string& samHeader, const RefVector& referenceSequences, bool isWriteUncompressed) { // open the BGZF file for writing, return failure if error if ( !mBGZF.Open(filename, "wb", isWriteUncompressed) ) return false; // ================ // write the header // ================ // write the BAM signature const unsigned char SIGNATURE_LENGTH = 4; const char* BAM_SIGNATURE = "BAM\1"; mBGZF.Write(BAM_SIGNATURE, SIGNATURE_LENGTH); // write the SAM header text length uint32_t samHeaderLen = samHeader.size(); if (IsBigEndian) SwapEndian_32(samHeaderLen); mBGZF.Write((char*)&samHeaderLen, BT_SIZEOF_INT); // write the SAM header text if(samHeaderLen > 0) mBGZF.Write(samHeader.data(), samHeaderLen); // write the number of reference sequences uint32_t numReferenceSequences = referenceSequences.size(); if (IsBigEndian) SwapEndian_32(numReferenceSequences); mBGZF.Write((char*)&numReferenceSequences, BT_SIZEOF_INT); // ============================= // write the sequence dictionary // ============================= RefVector::const_iterator rsIter; for(rsIter = referenceSequences.begin(); rsIter != referenceSequences.end(); rsIter++) { // write the reference sequence name length uint32_t referenceSequenceNameLen = rsIter->RefName.size() + 1; if (IsBigEndian) SwapEndian_32(referenceSequenceNameLen); mBGZF.Write((char*)&referenceSequenceNameLen, BT_SIZEOF_INT); // write the reference sequence name mBGZF.Write(rsIter->RefName.c_str(), referenceSequenceNameLen); // write the reference sequence length int32_t referenceLength = rsIter->RefLength; if (IsBigEndian) SwapEndian_32(referenceLength); mBGZF.Write((char*)&referenceLength, BT_SIZEOF_INT); } // return success return true; } // saves the alignment to the alignment archive void BamWriter::BamWriterPrivate::SaveAlignment(const BamAlignment& al) { // if BamAlignment contains only the core data and a raw char data buffer // (as a result of BamReader::GetNextAlignmentCore()) if ( al.SupportData.HasCoreOnly ) { // write the block size unsigned int blockSize = al.SupportData.BlockLength; if (IsBigEndian) SwapEndian_32(blockSize); mBGZF.Write((char*)&blockSize, BT_SIZEOF_INT); // assign the BAM core data uint32_t buffer[8]; buffer[0] = al.RefID; buffer[1] = al.Position; buffer[2] = (al.Bin << 16) | (al.MapQuality << 8) | al.SupportData.QueryNameLength; buffer[3] = (al.AlignmentFlag << 16) | al.SupportData.NumCigarOperations; buffer[4] = al.SupportData.QuerySequenceLength; buffer[5] = al.MateRefID; buffer[6] = al.MatePosition; buffer[7] = al.InsertSize; // swap BAM core endian-ness, if necessary if ( IsBigEndian ) { for ( int i = 0; i < 8; ++i ) SwapEndian_32(buffer[i]); } // write the BAM core mBGZF.Write((char*)&buffer, BAM_CORE_SIZE); // write the raw char data mBGZF.Write((char*)al.SupportData.AllCharData.data(), al.SupportData.BlockLength-BAM_CORE_SIZE); } // otherwise, BamAlignment should contain character in the standard fields: Name, QueryBases, etc // ( resulting from BamReader::GetNextAlignment() *OR* being generated directly by client code ) else { // calculate char lengths const unsigned int nameLength = al.Name.size() + 1; const unsigned int numCigarOperations = al.CigarData.size(); const unsigned int queryLength = al.QueryBases.size(); const unsigned int tagDataLength = al.TagData.size(); // no way to tell if BamAlignment.Bin is already defined (no default, invalid value) // force calculation of Bin before storing const int endPosition = al.GetEndPosition(); const unsigned int alignmentBin = CalculateMinimumBin(al.Position, endPosition); // create our packed cigar string string packedCigar; CreatePackedCigar(al.CigarData, packedCigar); const unsigned int packedCigarLength = packedCigar.size(); // encode the query string encodedQuery; EncodeQuerySequence(al.QueryBases, encodedQuery); const unsigned int encodedQueryLength = encodedQuery.size(); // write the block size const unsigned int dataBlockSize = nameLength + packedCigarLength + encodedQueryLength + queryLength + tagDataLength; unsigned int blockSize = BAM_CORE_SIZE + dataBlockSize; if (IsBigEndian) SwapEndian_32(blockSize); mBGZF.Write((char*)&blockSize, BT_SIZEOF_INT); // assign the BAM core data uint32_t buffer[8]; buffer[0] = al.RefID; buffer[1] = al.Position; buffer[2] = (alignmentBin << 16) | (al.MapQuality << 8) | nameLength; buffer[3] = (al.AlignmentFlag << 16) | numCigarOperations; buffer[4] = queryLength; buffer[5] = al.MateRefID; buffer[6] = al.MatePosition; buffer[7] = al.InsertSize; // swap BAM core endian-ness, if necessary if ( IsBigEndian ) { for ( int i = 0; i < 8; ++i ) SwapEndian_32(buffer[i]); } // write the BAM core mBGZF.Write((char*)&buffer, BAM_CORE_SIZE); // write the query name mBGZF.Write(al.Name.c_str(), nameLength); // write the packed cigar if ( IsBigEndian ) { char* cigarData = (char*)calloc(sizeof(char), packedCigarLength); memcpy(cigarData, packedCigar.data(), packedCigarLength); for (unsigned int i = 0; i < packedCigarLength; ++i) { if ( IsBigEndian ) SwapEndian_32p(&cigarData[i]); } mBGZF.Write(cigarData, packedCigarLength); free(cigarData); } else mBGZF.Write(packedCigar.data(), packedCigarLength); // write the encoded query sequence mBGZF.Write(encodedQuery.data(), encodedQueryLength); // write the base qualities string baseQualities(al.Qualities); char* pBaseQualities = (char*)al.Qualities.data(); for(unsigned int i = 0; i < queryLength; i++) { pBaseQualities[i] -= 33; } mBGZF.Write(pBaseQualities, queryLength); // write the read group tag if ( IsBigEndian ) { char* tagData = (char*)calloc(sizeof(char), tagDataLength); memcpy(tagData, al.TagData.data(), tagDataLength); int i = 0; while ( (unsigned int)i < tagDataLength ) { i += 2; // skip tag type (e.g. "RG", "NM", etc) uint8_t type = toupper(tagData[i]); // lower & upper case letters have same meaning ++i; // skip value type switch (type) { case('A') : case('C') : ++i; break; case('S') : SwapEndian_16p(&tagData[i]); i+=2; // sizeof(uint16_t) break; case('F') : case('I') : SwapEndian_32p(&tagData[i]); i+=4; // sizeof(uint32_t) break; case('D') : SwapEndian_64p(&tagData[i]); i+=8; // sizeof(uint64_t) break; case('H') : case('Z') : while (tagData[i]) { ++i; } ++i; // increment one more for null terminator break; default : fprintf(stderr, "ERROR: Invalid tag value type\n"); // shouldn't get here free(tagData); exit(1); } } mBGZF.Write(tagData, tagDataLength); free(tagData); } else mBGZF.Write(al.TagData.data(), tagDataLength); } }
[ [ [ 1, 432 ] ] ]
3f5e50a9dbab40611f0949dd04a6792dd7e8833d
e1b7e9b25db81b2f25088fd741e28fbc4efaf5fe
/tmp/socketSample_1/MulticastReceiver.cpp
2216a57b01a1b9ddb46fea012b4e7720e81c6d46
[]
no_license
AaronMR/AaronMR_Robotic_Stack
c00260cf1b992806e58838688702ab240bf34233
34d5449f9ca0ffc08fac4f5d48a7c4db03bb018a
refs/heads/master
2020-03-29T21:42:23.501525
2011-02-23T17:07:29
2011-02-23T17:07:29
1,364,684
6
0
null
null
null
null
UTF-8
C++
false
false
2,101
cpp
/* * C++ sockets on Unix and Windows * Copyright (C) 2002 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "PracticalSocket.h" // For UDPSocket and SocketException #include <iostream> // For cout and cerr #include <cstdlib> // For atoi() const int MAXRCVSTRING = 255; // Longest string to receive int main(int argc, char *argv[]) { if (argc != 3) { // Test for correct number of parameters cerr << "Usage: " << argv[0] << " <Multicast Address> <Port>" << endl; exit(1); } string multicastAddress = argv[1]; // First arg: multicast address unsigned short port = atoi(argv[2]); // Second arg: port try { UDPSocket sock(port); sock.joinGroup(multicastAddress); char recvString[MAXRCVSTRING + 1];// Buffer for echo string + \0 string sourceAddress; // Address of datagram source unsigned short sourcePort; // Port of datagram source int bytesRcvd = sock.recvFrom(recvString, MAXRCVSTRING, sourceAddress, sourcePort); recvString[bytesRcvd] = '\0'; // Terminate string cout << "Received " << recvString << " from " << sourceAddress << ": " << sourcePort << endl; } catch (SocketException &e) { cerr << e.what() << endl; exit(1); } return 0; }
[ [ [ 1, 56 ] ] ]
8cd4658c0b79976f41f78a60ab3d7b9e0e42e800
de37068405e7fa8f7a4e43bfe8af9b23787f6926
/VectOps.h
e12813ef038d122fea392257df683620a6b5251e
[]
no_license
ssserenity/zbuffer-cpu
faf052c30ba77f88fc3140c478b59cb4e6bb24d8
e014c783a25bbd0ff19c7bfc6846d6997bee227e
refs/heads/master
2021-01-21T18:50:59.847444
2011-11-24T16:16:51
2011-11-24T16:16:51
null
0
0
null
null
null
null
UTF-8
C++
false
false
976
h
#ifndef __VECTOPS_H_ #define __VECTOPS_H_ #include "MathDefs.h" class VectOps { public: ////////////////////////////////////////////// /*4x4 matrix m[16] structure 0 4 8 12 1 5 9 13 2 6 10 14 3 7 11 15 */ void static twist_to_mat(double omega[3], double theta, double rm[16]); void static mmMult(double m1[16], double m2[16], double m3[16] ); void static mvMult(double m[16], double vs[4], double vd[4]); void static mvMult3x3(double m[9], double vs[3], double vd[3]); void static mmMult3x3(double m1[9], double m2[9], double m3[9]); void static mmAdd(double m1[9], double m2[9], double m3[9]); void static mmMinus(double m1[9], double m2[9], double m3[9]); void static mscale(double scale, double m1[9], double m2[9]); void static Transpose(double m1[9], double m2[9]); void static vec2mat(const Vec3d& v, double m[9]); //compute vT * v, v is 3dimension, m is a 3x3 matrix }; #endif //__VECTOPS_H_
[ [ [ 1, 34 ] ] ]
6a41d36911ab74f1d7d318a7933c1c3f1a0d126c
fa134e5f64c51ccc1c2cac9b9cb0186036e41563
/GT/AttitudeGyro.cpp
3e29b83eaadc00ce8187f5b227340cb538407175
[]
no_license
dlsyaim/gradthes
70b626f08c5d64a1d19edc46d67637d9766437a6
db6ba305cca09f273e99febda4a8347816429700
refs/heads/master
2016-08-11T10:44:45.165199
2010-07-19T05:44:40
2010-07-19T05:44:40
36,058,688
0
1
null
null
null
null
UTF-8
C++
false
false
4,005
cpp
#include "stdafx.h" #include <stdio.h> #include <olectl.h> #include <math.h> #include <GL\gl.h> #include <string> #include <vector> #include <algorithm> #include "Util.h" #include "AttitudeGyro.h" AttitudeGyro::AttitudeGyro(void) { } AttitudeGyro::~AttitudeGyro(void) { } void AttitudeGyro::updatePitch(double pitchAngle) { // We assume the 4th layer is the pitch layer acoording to the configuration file and the sorting order. Layer* pitchLayer = (*ll)[3]; // And we just update the y-shift value, which is the second Transformation. transformationList* tl = pitchLayer->getTl(); Transformation* tf = (*tl)[1]; /*double offsetPitch = tf->getOffset(); offsetPitch += (deltaPitch * tf->getScale()); if (offsetPitch <= tf->getMinR()) { offsetPitch = tf->getMinR(); } else if (offsetPitch >= tf->getMaxR()) { offsetPitch = tf->getMaxR(); }*/ // Limit the pitchAngle to the range -20 to 20 pitchAngle = pitchAngle / 90.0 * 20.0; tf->setOffset(-pitchAngle); } void AttitudeGyro::updateRoll(double rollAngle) { // We also know the 2nd layer is the roll layer acoording to the configuration file. Layer* rollLayer = (*ll)[1]; // And we know there is just ROTATION Transformation. transformationList *tl = rollLayer->getTl(); Transformation *tf = (*tl)[0]; /*double offsetRoll = tf->getOffset(); offsetRoll += (deltaRoll * tf->getScale()); if (offsetRoll <= tf->getMinR()) { offsetRoll = tf->getMinR(); } else if (offsetRoll >= tf->getMaxR()) { offsetRoll = tf->getMaxR(); }*/ tf->setOffset(rollAngle); } void AttitudeGyro::draw(void) { Layer* la; Texture* tex; transformationList *tl; // Sort the layers in descend order sort(ll->begin(), ll->end(), descend); /* * When choosing GL_SRC_ALPHA and GL_ONE_MINUS_SRC_ALPHA, * then we should render the bigger part of the Instrument, which is glare shield. */ glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glPushMatrix(); glTranslatef((GLfloat)x, (GLfloat)y, 0); // Render each Layer for (int i = 0; i < (int)ll->size(); i++) { if (i != 1) { glPushMatrix(); la = (*ll)[i]; tex = la->getTex(); tl = la->getTl(); if (tex) { glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); glBindTexture(GL_TEXTURE_2D, tex->getTexId()); // First move to the proper position and the proper orientation. for (int j = 0; j < (int)tl->size(); j++) { (*tl)[j]->doTransform(); } glBegin(GL_POLYGON); glTexCoord2f(tex->getX1(), tex->getY1()); glVertex3f(0 - la->getW() / 2.0f, 0 - la->getH() / 2.0f, 0.0f); glTexCoord2f(tex->getX2(), tex->getY1()); glVertex3f(0 + la->getW() / 2.0f, 0 - la->getH() / 2.0f, 0.0f); glTexCoord2f(tex->getX2(), tex->getY2()); glVertex3f(0 + la->getW() / 2.0f, 0 + la->getH() / 2.0f, 0.0f); glTexCoord2f(tex->getX1(), tex->getY2()); glVertex3f(0 - la->getW() / 2.0f, 0 + la->getH() / 2.0f, 0.0f); glEnd(); } glPopMatrix(); } } glPushMatrix(); la = (*ll)[1]; tex = la->getTex(); tl = la->getTl(); if (tex) { glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); glBindTexture(GL_TEXTURE_2D, tex->getTexId()); // First move to the proper position and the proper orientation. for (int j = 0; j < (int)tl->size(); j++) { (*tl)[j]->doTransform(); } glBegin(GL_POLYGON); glTexCoord2f(tex->getX1(), tex->getY1()); glVertex3f(0 - la->getW() / 2.0f, 0 - la->getH() / 2.0f, 0.0f); glTexCoord2f(tex->getX2(), tex->getY1()); glVertex3f(0 + la->getW() / 2.0f, 0 - la->getH() / 2.0f, 0.0f); glTexCoord2f(tex->getX2(), tex->getY2()); glVertex3f(0 + la->getW() / 2.0f, 0 + la->getH() / 2.0f, 0.0f); glTexCoord2f(tex->getX1(), tex->getY2()); glVertex3f(0 - la->getW() / 2.0f, 0 + la->getH() / 2.0f, 0.0f); glEnd(); } glPopMatrix(); glPopMatrix(); glDisable(GL_BLEND); }
[ "[email protected]@3a95c3f6-2b41-11df-be6c-f52728ce0ce6" ]
[ [ [ 1, 120 ] ] ]
7221a879564b5f50725f7d285aa765804b9cb65b
814b49df11675ac3664ac0198048961b5306e1c5
/Code/Tools/Test/Enemies/Camera.h
4bfd6762db72745a28d6278a53a86eaf7529016b
[]
no_license
Atridas/biogame
f6cb24d0c0b208316990e5bb0b52ef3fb8e83042
3b8e95b215da4d51ab856b4701c12e077cbd2587
refs/heads/master
2021-01-13T00:55:50.502395
2011-10-31T12:58:53
2011-10-31T12:58:53
43,897,729
0
0
null
null
null
null
UTF-8
C++
false
false
917
h
#pragma once #include "EnemyInstance.h" class CCamera: public CEnemyInstance { private: void Release(); bool m_bIsOk; public: CCamera(void); virtual ~CCamera(void) {Done();}; bool Init( const Vect3f& _vPos, const Vect3f& _vRot, const float _fMoveSpeed, const float _fRotateSpeed, const float _fHealth, const Vect3f& _vMaxAngle, const Vect3f& _vMinAngle); void Done() {if(IsOk()) Release(); m_bIsOk=false;}; bool IsOk() const {return m_bIsOk;}; private: Vect3f m_vMaxAngle; Vect3f m_vMinAngle; typedef CEnemyInstance Inherited; };
[ [ [ 1, 35 ] ] ]
17e31f3580f9db63bb3526d45e10220cf3da183a
ea12fed4c32e9c7992956419eb3e2bace91f063a
/zombie/code/nebula2/inc/mathlib/vector.h
e2e4fd79d0d0d9b530630237c4bb20ae733a6e24
[]
no_license
ugozapad/TheZombieEngine
832492930df28c28cd349673f79f3609b1fe7190
8e8c3e6225c2ed93e07287356def9fbdeacf3d6a
refs/heads/master
2020-04-30T11:35:36.258363
2011-02-24T14:18:43
2011-02-24T14:18:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,578
h
#ifndef N_VECTOR_H #define N_VECTOR_H //------------------------------------------------------------------------------ /** Implement 2, 3 and 4-dimensional vector classes. (C) 2002 RadonLabs GmbH */ #include "kernel/ntypes.h" #ifndef __USE_SSE__ // generic vector classes #include "mathlib/_vector2.h" #include "mathlib/_vector3.h" #include "mathlib/_vector4.h" typedef _vector2 vector2; typedef _vector3 vector3; typedef _vector4 vector4; #else // sse vector classes #include "mathlib/_vector2.h" #include "mathlib/_vector3_sse.h" #include "mathlib/_vector4_sse.h" typedef _vector2 vector2; typedef _vector3_sse vector3; typedef _vector4_sse vector4; #endif //------------------------------------------------------------------------------ /** */ template<> static inline void lerp<vector2>(vector2 & result, const vector2 & val0, const vector2 & val1, float lerpVal) { result.lerp(val0, val1, lerpVal); } //------------------------------------------------------------------------------ /** */ template<> static inline void lerp<vector3>(vector3 & result, const vector3 & val0, const vector3 & val1, float lerpVal) { result.lerp(val0, val1, lerpVal); } //------------------------------------------------------------------------------ /** */ template<> static inline void lerp<vector4>(vector4 & result, const vector4 & val0, const vector4 & val1, float lerpVal) { result.lerp(val0, val1, lerpVal); } //------------------------------------------------------------------------------ #endif
[ "magarcias@c1fa4281-9647-0410-8f2c-f027dd5e0a91" ]
[ [ [ 1, 63 ] ] ]
2a76ad306a8eac1ae3a3ee3649c25aff71d6dc12
ad80c85f09a98b1bfc47191c0e99f3d4559b10d4
/code/src/gfx/nchannelserver_main.cc
dace2e71e5ea0e69af4ad51ed45d041b1fd5180e
[]
no_license
DSPNerd/m-nebula
76a4578f5504f6902e054ddd365b42672024de6d
52a32902773c10cf1c6bc3dabefd2fd1587d83b3
refs/heads/master
2021-12-07T18:23:07.272880
2009-07-07T09:47:09
2009-07-07T09:47:09
null
0
0
null
null
null
null
UTF-8
C++
false
false
11,476
cc
#define N_IMPLEMENTS nChannelServer //------------------------------------------------------------------------------ // nchannelserver_main.cc // (C) 2001 Andre Weissflog //------------------------------------------------------------------------------ #include "gfx/nchannelserver.h" #include "gfx/nchannelcontext.h" #include "kernel/nenv.h" nNebulaScriptClass(nChannelServer, "nroot"); //------------------------------------------------------------------------------ /** */ nChannelServer::nChannelServer() : inBeginScene(false), refChannelMap(this), contextIndex(0), poolIndex(0), presetIndex(0) { this->refChannelMap = kernelServer->New("nroot", "/sys/share/channels"); this->contextPool = n_new nChannelContext[MAXCONTEXTS]; } //------------------------------------------------------------------------------ /** */ nChannelServer::~nChannelServer() { n_delete[] this->contextPool; this->contextPool = 0; if (this->refChannelMap.isvalid()) { this->refChannelMap->Release(); } } //------------------------------------------------------------------------------ /** Allocate a number of channels from the global channel pool. The channel pool will be reset at nChannelServer::BeginScene(). @param num number of channels to allocate @return channel pointer */ nChannel* nChannelServer::AllocChannels(int num) { n_assert((this->poolIndex + num) < MAXPOOLSIZE); nChannel* chnPtr = &(this->channelPool[poolIndex]); this->poolIndex += num; return chnPtr; } //------------------------------------------------------------------------------ /** Look up a global channel index for a channel name. Create channel if not exists yet. Throws an assertion if there's a width mismatch for an already created channel @param chnName name of channel to get index for @return the channel index (used in subsequent calls to nChannelServer) */ int nChannelServer::GenChannel(const char* chnName) { n_assert(chnName); // channel exists? nEnv* env = (nEnv*) this->refChannelMap->Find(chnName); if (env) { return env->GetI(); } // doesn't exist, create and initialize a new one kernelServer->PushCwd(this->refChannelMap.get()); env = (nEnv*) kernelServer->New("nenv", chnName); kernelServer->PopCwd(); n_assert(env); n_assert(this->presetIndex < MAXCHANNELS); env->SetI(this->presetIndex); this->channelPresets[this->presetIndex].Clear(); return this->presetIndex++; } //------------------------------------------------------------------------------ /** Get a reference to global nChannel object. @param chnIndex global index of channel @return a const ref to the corresponding nChannel object */ const nChannel& nChannelServer::GetChannel(int chnIndex) { n_assert((chnIndex >= 0) && (chnIndex < this->presetIndex)); return channelPresets[chnIndex]; } //------------------------------------------------------------------------------ /** Set a global channel to a float value. @param chnIndex global channel index @param f0 the float value */ void nChannelServer::SetChannel1f(int chnIndex, float f0) { n_assert((chnIndex >= 0) && (chnIndex < this->presetIndex)); this->channelPresets[chnIndex].Set1f(f0); } //------------------------------------------------------------------------------ /** Set a global channel to a 2D float vector. @param chnIndex global channel index @param f0 1st value @param f1 2nd value */ void nChannelServer::SetChannel2f(int chnIndex, float f0, float f1) { n_assert((chnIndex >= 0) && (chnIndex < this->presetIndex)); this->channelPresets[chnIndex].Set2f(f0, f1); } //------------------------------------------------------------------------------ /** Set a global channel to a 3D float vector. @param chnIndex global channel index @param f0 1st value @param f1 2nd value @param f2 3rd value */ void nChannelServer::SetChannel3f(int chnIndex, float f0, float f1, float f2) { n_assert((chnIndex >= 0) && (chnIndex < this->presetIndex)); this->channelPresets[chnIndex].Set3f(f0, f1, f2); } //------------------------------------------------------------------------------ /** Set a global channel to a 4D float vector. @param chnIndex global channel index @param f0 1st value @param f1 2nd value @param f2 3rd value @param f3 4th value */ void nChannelServer::SetChannel4f(int chnIndex, float f0, float f1, float f2, float f3) { n_assert((chnIndex >= 0) && (chnIndex < this->presetIndex)); this->channelPresets[chnIndex].Set4f(f0, f1, f2, f3); } //------------------------------------------------------------------------------ /** Set a global channel to a pointer value. @param chnIndex global channel index @param ptr void pointer */ void nChannelServer::SetChannelPtr(int chnIndex, void* ptr) { n_assert((chnIndex >= 0) && (chnIndex < this->presetIndex)); this->channelPresets[chnIndex].SetPtr(ptr); } //------------------------------------------------------------------------------ /** Set a global channel to a pointer value. @param chnIndex global channel index @param ptr void pointer */ void nChannelServer::SetChannelString(int chnIndex, const char* str) { n_assert((chnIndex >= 0) && (chnIndex < this->presetIndex)); this->channelPresets[chnIndex].SetString(str); } //------------------------------------------------------------------------------ /** Set a global channel to a string from the script interface. This will make an internal copy of the string. This method cannot be used to initialize the channel content for several render contexts, as strings for identical channel names will overwrite each other. Use the SetChannelString() method with this, and use static strings. @param chnIndex global channel index @param str pointer to a string (will be copied) */ void nChannelServer::SetChannelStringCopy(int chnIndex, const char* str) { n_assert((chnIndex >= 0) && (chnIndex < this->presetIndex)); const char* localString; if (str) { this->channelStrings[chnIndex] = str; localString = this->channelStrings[chnIndex].c_str(); } else { this->channelStrings[chnIndex].clear(); localString = 0; } this->channelPresets[chnIndex].SetString(localString); } //------------------------------------------------------------------------------ /** Get contents of a channel as float value. @param chnIndex global channel index @return float value */ float nChannelServer::GetChannel1f(int chnIndex) { n_assert((chnIndex >= 0) && (chnIndex < this->presetIndex)); return this->channelPresets[chnIndex].Get1f(); } //------------------------------------------------------------------------------ /** Get contents of channel as 2 float values. @param chnIndex [in] global channel index @param f0 [out] 1st value @param f1 [out] 2nd value */ void nChannelServer::GetChannel2f(int chnIndex, float& f0, float& f1) { n_assert((chnIndex >= 0) && (chnIndex < this->presetIndex)); this->channelPresets[chnIndex].Get2f(f0, f1); } //------------------------------------------------------------------------------ /** Get contents of channel as 3 float values. @param chnIndex [in] global channel index @param f0 [out] 1st value @param f1 [out] 2nd value @param f2 [out] 3rd value */ void nChannelServer::GetChannel3f(int chnIndex, float& f0, float& f1, float& f2) { n_assert((chnIndex >= 0) && (chnIndex < this->presetIndex)); this->channelPresets[chnIndex].Get3f(f0, f1, f2); } //------------------------------------------------------------------------------ /** Get contents of channel as 4 float values. @param chnIndex [in] global channel index @param f0 [out] 1st value @param f1 [out] 2nd value @param f2 [out] 3rd value @param f3 [out] 4th value */ void nChannelServer::GetChannel4f(int chnIndex, float& f0, float& f1, float& f2, float& f3) { n_assert((chnIndex >= 0) && (chnIndex < this->presetIndex)); this->channelPresets[chnIndex].Get4f(f0, f1, f2, f3); } //------------------------------------------------------------------------------ /** Get contents of channel as pointer @param chnIndex global channel index @param ptr void pointer */ void* nChannelServer::GetChannelPtr(int chnIndex) { n_assert((chnIndex >= 0) && (chnIndex < this->presetIndex)); return this->channelPresets[chnIndex].GetPtr(); } //------------------------------------------------------------------------------ /** Get contents of channel as string. @param chnIndex global channel index @param str const char pointer */ const char* nChannelServer::GetChannelString(int chnIndex) { n_assert((chnIndex >= 0) && (chnIndex < this->presetIndex)); return this->channelPresets[chnIndex].GetString(); } //------------------------------------------------------------------------------ /** Prepares the channel server for a new frame. All channel contexts from the previous frame are discarded. */ void nChannelServer::BeginScene() { n_assert(!this->inBeginScene); // reset the channel contexts this->poolIndex = 0; this->contextIndex = 0; this->inBeginScene = true; } //------------------------------------------------------------------------------ /** Initialize a new channel context and return handle to it. The channel context only contains those channels that are defined by the nChannelSet object. The current global values of those channels are copied into the channel context. This function may only be called inside BeginScene()/EndScene(). @param chnSet nChannelSet object initialized with the required channels @return ref to a new initialized channel context */ nChannelContext* nChannelServer::GetContext(nChannelSet* chnSet) { n_assert(chnSet); n_assert(this->inBeginScene); n_assert(this->contextIndex < MAXCONTEXTS); n_assert(this->contextPool); // get a new context and initialize it nChannelContext* ctx = &(this->contextPool[this->contextIndex++]); ctx->Lock(this, chnSet); return ctx; } //------------------------------------------------------------------------------ /** Finish a channel server frame. */ void nChannelServer::EndScene() { n_assert(this->inBeginScene); // unlock all contexts int i; for (i=0; i<this->contextIndex; i++) { this->contextPool[i].Unlock(); } this->inBeginScene = false; } //------------------------------------------------------------------------------
[ "plushe@411252de-2431-11de-b186-ef1da62b6547" ]
[ [ [ 1, 375 ] ] ]
e180540f4fb4969b24c4589f1b0afe553c6d5b5a
102b11022aa5e7b2be4736b9d1be1162e7bf418f
/project_1/Control_Wifi/Mirf/Mirf.h
8bb2d8e59fc2658d54c5df60f9109157fca86599
[]
no_license
daudet/seng466-2011-hovercraft
52df9639a62c4a67c9129001fe959b11f36ebd09
46da8d0669de9dae71aa890f9349787a8756c3ad
refs/heads/master
2021-03-12T20:42:45.030618
2011-04-19T05:14:55
2011-04-19T05:14:55
32,120,852
0
0
null
null
null
null
UTF-8
C++
false
false
2,792
h
/* Copyright (c) 2007 Stefan Engelke <[email protected]> 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. $Id$ */ #ifndef _MIRF_H_ #define _MIRF_H_ #include "../Core/WProgram.h" #include "../Spi/Spi.h" #include "nRF24L01.h" // Nrf24l settings #define mirf_ADDR_LEN 5 #define mirf_CONFIG ((1<<EN_CRC) | (0<<CRCO) ) class Nrf24l { public: Nrf24l(); void init(); void config(); void send(uint8_t *value); void setRADDR(uint8_t * adr); void setTADDR(uint8_t * adr); bool dataReady(); bool isSending(); bool rxFifoEmpty(); bool txFifoEmpty(); void getData(uint8_t * data); uint8_t getStatus(); void transmitSync(uint8_t *dataout,uint8_t len); void transmitSyncByte(uint8_t b,uint8_t len); void transferSync(uint8_t *dataout,uint8_t *datain,uint8_t len); void configRegister(uint8_t reg, uint8_t value); void readRegister(uint8_t reg, uint8_t * value, uint8_t len); void writeRegister(uint8_t reg, uint8_t * value, uint8_t len); void writeRegisterByte(uint8_t reg,uint8_t b,uint8_t len); void powerUpRx(); void powerUpTx(); void powerDown(); void csnHi(); void csnLow(); void ceHi(); void ceLow(); void flushRx(); /* * In sending mode. */ uint8_t PTX; /* * CE Pin controls RX / TX, default 8. */ uint8_t cePin; /* * CSN Pin Chip Select Not, default 7. */ uint8_t csnPin; /* * Channel 0 - 127 or 0 - 84 in the US. */ uint8_t channel; /* * Payload width in bytes default 16 max 32. */ uint8_t payload; /* * Spi interface (must extend spi). */ SPI *spi; }; extern Nrf24l Mirf; #endif /* _MIRF_H_ */
[ "david@b282a14c-f844-f624-09bc-e1946d22bf1e" ]
[ [ [ 1, 110 ] ] ]
44ba012612c5cf48cdf98498973505f70ec00387
011359e589f99ae5fe8271962d447165e9ff7768
/src/burn/sega/d_ybrd.cpp
c20682f0184f8e8968b5da08eebacf814c733f05
[]
no_license
PS3emulators/fba-next-slim
4c753375fd68863c53830bb367c61737393f9777
d082dea48c378bddd5e2a686fe8c19beb06db8e1
refs/heads/master
2021-01-17T23:05:29.479865
2011-12-01T18:16:02
2011-12-01T18:16:02
2,899,840
1
0
null
null
null
null
UTF-8
C++
false
false
80,713
cpp
#include "sys16.h" /*==================================================== Input Defs ====================================================*/ #define A(a, b, c, d) {a, b, (unsigned char*)(c), d} static struct BurnInputInfo Gforce2InputList[] = { {"Coin 1" , BIT_DIGITAL , System16InputPort0 + 6, "p1 coin" }, {"Start 1" , BIT_DIGITAL , System16InputPort0 + 3, "p1 start" }, {"Coin 2" , BIT_DIGITAL , System16InputPort0 + 7, "p2 coin" }, A("Left/Right" , BIT_ANALOG_REL, &System16AnalogPort0, "p1 x-axis" ), A("Up/Down" , BIT_ANALOG_REL, &System16AnalogPort1, "p1 y-axis" ), A("Throttle" , BIT_ANALOG_REL, &System16AnalogPort2, "p1 z-axis" ), {"Shoot" , BIT_DIGITAL , System16InputPort0 + 4, "p1 fire 1" }, {"Missile" , BIT_DIGITAL , System16InputPort0 + 5, "p1 fire 2" }, {"Service" , BIT_DIGITAL , System16InputPort0 + 2 , "service" }, {"Diagnostics" , BIT_DIGITAL , System16InputPort0 + 1 , "diag" }, {"Reset" , BIT_DIGITAL , &System16Reset , "reset" }, {"Dip 1" , BIT_DIPSWITCH , System16Dip + 0 , "dip" }, {"Dip 2" , BIT_DIPSWITCH , System16Dip + 1 , "dip" }, }; STDINPUTINFO(Gforce2) static struct BurnInputInfo GlocInputList[] = { {"Coin 1" , BIT_DIGITAL , System16InputPort0 + 6, "p1 coin" }, {"Start 1" , BIT_DIGITAL , System16InputPort0 + 3, "p1 start" }, {"Coin 2" , BIT_DIGITAL , System16InputPort0 + 7, "p2 coin" }, A("Left/Right" , BIT_ANALOG_REL, &System16AnalogPort0, "p1 x-axis" ), A("Up/Down" , BIT_ANALOG_REL, &System16AnalogPort1, "p1 y-axis" ), A("Throttle" , BIT_ANALOG_REL, &System16AnalogPort2, "p1 z-axis" ), {"Fire 1" , BIT_DIGITAL , System16InputPort0 + 4, "p1 fire 1" }, {"Fire 2" , BIT_DIGITAL , System16InputPort0 + 5, "p1 fire 2" }, {"Fire 3" , BIT_DIGITAL , System16InputPort0 + 0, "p1 fire 3" }, {"Service" , BIT_DIGITAL , System16InputPort0 + 2 , "service" }, {"Diagnostics" , BIT_DIGITAL , System16InputPort0 + 1 , "diag" }, {"Reset" , BIT_DIGITAL , &System16Reset , "reset" }, {"Dip 1" , BIT_DIPSWITCH , System16Dip + 0 , "dip" }, {"Dip 2" , BIT_DIPSWITCH , System16Dip + 1 , "dip" }, }; STDINPUTINFO(Gloc) static struct BurnInputInfo Glocr360InputList[] = { {"Coin 1" , BIT_DIGITAL , System16InputPort0 + 6, "p1 coin" }, {"Start 1" , BIT_DIGITAL , System16InputPort0 + 3, "p1 start" }, {"Coin 2" , BIT_DIGITAL , System16InputPort0 + 7, "p2 coin" }, A("Left/Right" , BIT_ANALOG_REL, &System16AnalogPort0, "p1 x-axis" ), A("Up/Down" , BIT_ANALOG_REL, &System16AnalogPort1, "p1 y-axis" ), A("Moving Roll" , BIT_ANALOG_REL, &System16AnalogPort2, "p2 x-axis" ), A("Moving Pitch" , BIT_ANALOG_REL, &System16AnalogPort3, "p3 x-axis" ), {"Fire 1" , BIT_DIGITAL , System16InputPort0 + 4, "p1 fire 1" }, {"Fire 2" , BIT_DIGITAL , System16InputPort0 + 5, "p1 fire 2" }, {"Service" , BIT_DIGITAL , System16InputPort0 + 2 , "service" }, {"Diagnostics" , BIT_DIGITAL , System16InputPort0 + 1 , "diag" }, {"Reset" , BIT_DIGITAL , &System16Reset , "reset" }, {"Dip 1" , BIT_DIPSWITCH , System16Dip + 0 , "dip" }, {"Dip 2" , BIT_DIPSWITCH , System16Dip + 1 , "dip" }, }; STDINPUTINFO(Glocr360) static struct BurnInputInfo PdriftInputList[] = { {"Coin 1" , BIT_DIGITAL , System16InputPort0 + 6, "p1 coin" }, {"Start 1" , BIT_DIGITAL , System16InputPort0 + 3, "p1 start" }, {"Coin 2" , BIT_DIGITAL , System16InputPort0 + 7, "p2 coin" }, A("Steering" , BIT_ANALOG_REL, &System16AnalogPort0, "p1 x-axis" ), A("Accelerate" , BIT_ANALOG_REL, &System16AnalogPort1, "p1 fire 1" ), A("Brake" , BIT_ANALOG_REL, &System16AnalogPort2, "p1 fire 2" ), {"Gear" , BIT_DIGITAL , &System16Gear , "p1 fire 3" }, {"Service" , BIT_DIGITAL , System16InputPort0 + 2 , "service" }, {"Diagnostics" , BIT_DIGITAL , System16InputPort0 + 1 , "diag" }, {"Reset" , BIT_DIGITAL , &System16Reset , "reset" }, {"Dip 1" , BIT_DIPSWITCH , System16Dip + 0 , "dip" }, {"Dip 2" , BIT_DIPSWITCH , System16Dip + 1 , "dip" }, }; STDINPUTINFO(Pdrift) static struct BurnInputInfo RchaseInputList[] = { {"Coin 1" , BIT_DIGITAL , System16InputPort0 + 4, "p1 coin" }, {"Start 1" , BIT_DIGITAL , System16InputPort0 + 7, "p1 start" }, {"Coin 2" , BIT_DIGITAL , System16InputPort0 + 5, "p2 coin" }, {"Start 2" , BIT_DIGITAL , System16InputPort0 + 6, "p2 start" }, A("P1 Left/Right" , BIT_ANALOG_REL, &System16AnalogPort0, "mouse x-axis" ), A("P1 Up/Down" , BIT_ANALOG_REL, &System16AnalogPort1, "mouse y-axis" ), {"P1 Fire 1" , BIT_DIGITAL , System16InputPort0 + 1, "mouse button 1" }, A("P2 Left/Right" , BIT_ANALOG_REL, &System16AnalogPort2, "p2 x-axis" ), A("P2 Up/Down" , BIT_ANALOG_REL, &System16AnalogPort3, "p2 y-axis" ), {"P2 Fire 1" , BIT_DIGITAL , System16InputPort0 + 0, "p2 fire 1" }, {"Service" , BIT_DIGITAL , System16InputPort0 + 3 , "service" }, {"Diagnostics" , BIT_DIGITAL , System16InputPort0 + 2 , "diag" }, {"Reset" , BIT_DIGITAL , &System16Reset , "reset" }, {"Dip 1" , BIT_DIPSWITCH , System16Dip + 0 , "dip" }, {"Dip 2" , BIT_DIPSWITCH , System16Dip + 1 , "dip" }, }; STDINPUTINFO(Rchase) #undef A /*==================================================== Dip Defs ====================================================*/ #define YBOARD_COINAGE(dipval) \ {0 , 0xfe, 0 , 16 , "Coin A" }, \ {dipval, 0x01, 0x0f, 0x07, "4 Coins 1 Credit" }, \ {dipval, 0x01, 0x0f, 0x08, "3 Coins 1 Credit" }, \ {dipval, 0x01, 0x0f, 0x09, "2 Coins 1 Credit" }, \ {dipval, 0x01, 0x0f, 0x05, "2 Coins 1 Credit 5/3 6/4" }, \ {dipval, 0x01, 0x0f, 0x04, "2 Coins 1 Credit 4/3" }, \ {dipval, 0x01, 0x0f, 0x0f, "1 Coin 1 Credit" }, \ {dipval, 0x01, 0x0f, 0x01, "1 Coin 1 Credit 2/3" }, \ {dipval, 0x01, 0x0f, 0x02, "1 Coin 1 Credit 4/5" }, \ {dipval, 0x01, 0x0f, 0x03, "1 Coin 1 Credit 5/6" }, \ {dipval, 0x01, 0x0f, 0x06, "2 Coins 3 Credits" }, \ {dipval, 0x01, 0x0f, 0x0e, "1 Coin 2 Credits" }, \ {dipval, 0x01, 0x0f, 0x0d, "1 Coin 3 Credits" }, \ {dipval, 0x01, 0x0f, 0x0c, "1 Coin 4 Credits" }, \ {dipval, 0x01, 0x0f, 0x0b, "1 Coin 5 Credits" }, \ {dipval, 0x01, 0x0f, 0x0a, "1 Coin 6 Credits" }, \ {dipval, 0x01, 0x0f, 0x00, "Free Play (if coin B too) or 1C/1C" }, \ \ {0 , 0xfe, 0 , 16 , "Coin B" }, \ {dipval, 0x01, 0xf0, 0x70, "4 Coins 1 Credit" }, \ {dipval, 0x01, 0xf0, 0x80, "3 Coins 1 Credit" }, \ {dipval, 0x01, 0xf0, 0x90, "2 Coins 1 Credit" }, \ {dipval, 0x01, 0xf0, 0x50, "2 Coins 1 Credit 5/3 6/4" }, \ {dipval, 0x01, 0xf0, 0x40, "2 Coins 1 Credit 4/3" }, \ {dipval, 0x01, 0xf0, 0xf0, "1 Coin 1 Credit" }, \ {dipval, 0x01, 0xf0, 0x10, "1 Coin 1 Credit 2/3" }, \ {dipval, 0x01, 0xf0, 0x20, "1 Coin 1 Credit 4/5" }, \ {dipval, 0x01, 0xf0, 0x30, "1 Coin 1 Credit 5/6" }, \ {dipval, 0x01, 0xf0, 0x60, "2 Coins 3 Credits" }, \ {dipval, 0x01, 0xf0, 0xe0, "1 Coin 2 Credits" }, \ {dipval, 0x01, 0xf0, 0xd0, "1 Coin 3 Credits" }, \ {dipval, 0x01, 0xf0, 0xc0, "1 Coin 4 Credits" }, \ {dipval, 0x01, 0xf0, 0xb0, "1 Coin 5 Credits" }, \ {dipval, 0x01, 0xf0, 0xa0, "1 Coin 6 Credits" }, \ {dipval, 0x01, 0xf0, 0x00, "Free Play (if coin A too) or 1C/1C" }, static struct BurnDIPInfo Gforce2DIPList[]= { // Default Values {0x0b, 0xff, 0xff, 0x7e, NULL }, {0x0c, 0xff, 0xff, 0xff, NULL }, // Dip 1 {0 , 0xfe, 0 , 2 , "Demo Sounds" }, {0x0b, 0x01, 0x01, 0x01, "Off" }, {0x0b, 0x01, 0x01, 0x00, "On" }, {0 , 0xfe, 0 , 4 , "Energy Timer" }, {0x0b, 0x01, 0x06, 0x04, "Easy" }, {0x0b, 0x01, 0x06, 0x06, "Normal" }, {0x0b, 0x01, 0x06, 0x02, "Hard" }, {0x0b, 0x01, 0x06, 0x00, "Hardest" }, {0 , 0xfe, 0 , 2 , "Shield Strength" }, {0x0b, 0x01, 0x08, 0x08, "Weak" }, {0x0b, 0x01, 0x08, 0x00, "Strong" }, {0 , 0xfe, 0 , 4 , "Difficulty" }, {0x0b, 0x01, 0x30, 0x20, "Easy" }, {0x0b, 0x01, 0x30, 0x30, "Normal" }, {0x0b, 0x01, 0x30, 0x10, "Hard" }, {0x0b, 0x01, 0x30, 0x00, "Hardest" }, {0 , 0xfe, 0 , 4 , "Cabinet" }, {0x0b, 0x01, 0xc0, 0xc0, "Super Deluxe" }, {0x0b, 0x01, 0xc0, 0x80, "Deluxe" }, {0x0b, 0x01, 0xc0, 0x40, "Upright" }, {0x0b, 0x01, 0xc0, 0x00, "City" }, // Dip 2 YBOARD_COINAGE(0x0c) }; STDDIPINFO(Gforce2) static struct BurnDIPInfo GlocDIPList[]= { // Default Values {0x0c, 0xff, 0xff, 0x6b, NULL }, {0x0d, 0xff, 0xff, 0xff, NULL }, // Dip 1 {0 , 0xfe, 0 , 4 , "Difficulty" }, {0x0c, 0x01, 0x03, 0x02, "Easy" }, {0x0c, 0x01, 0x03, 0x03, "Normal" }, {0x0c, 0x01, 0x03, 0x01, "Hard" }, {0x0c, 0x01, 0x03, 0x00, "Hardest" }, {0 , 0xfe, 0 , 2 , "Demo Sounds" }, {0x0c, 0x01, 0x04, 0x04, "Off" }, {0x0c, 0x01, 0x04, 0x00, "On" }, {0 , 0xfe, 0 , 3 , "Cabinet" }, {0x0c, 0x01, 0x18, 0x18, "Moving" }, {0x0c, 0x01, 0x18, 0x10, "Cockpit" }, {0x0c, 0x01, 0x18, 0x08, "Upright" }, {0 , 0xfe, 0 , 2 , "Allow Continue" }, {0x0c, 0x01, 0x20, 0x00, "No" }, {0x0c, 0x01, 0x20, 0x20, "Yes" }, {0 , 0xfe, 0 , 4 , "Credits" }, {0x0c, 0x01, 0xc0, 0x40, "1 to start, 1 to continue" }, {0x0c, 0x01, 0xc0, 0xc0, "2 to start, 1 to continue" }, {0x0c, 0x01, 0xc0, 0x80, "3 to start, 2 to continue" }, {0x0c, 0x01, 0xc0, 0x00, "4 to start, 3 to continue" }, // Dip 2 YBOARD_COINAGE(0x0d) }; STDDIPINFO(Gloc) static struct BurnDIPInfo Glocr360DIPList[]= { // Default Values {0x0c, 0xff, 0xff, 0xf3, NULL }, {0x0d, 0xff, 0xff, 0xff, NULL }, // Dip 1 {0 , 0xfe, 0 , 3 , "Game Type" }, {0x0c, 0x01, 0x03, 0x02, "Fighting Only" }, {0x0c, 0x01, 0x03, 0x03, "Fight/Experience" }, {0x0c, 0x01, 0x03, 0x01, "Experience Only" }, {0 , 0xfe, 0 , 2 , "Demo Sounds" }, {0x0c, 0x01, 0x04, 0x04, "Off" }, {0x0c, 0x01, 0x04, 0x00, "On" }, {0 , 0xfe, 0 , 9 , "Initial Credit" }, {0x0c, 0x01, 0xf0, 0xf0, "1" }, {0x0c, 0x01, 0xf0, 0xe0, "2" }, {0x0c, 0x01, 0xf0, 0xd0, "3" }, {0x0c, 0x01, 0xf0, 0xc0, "4" }, {0x0c, 0x01, 0xf0, 0xb0, "5" }, {0x0c, 0x01, 0xf0, 0xa0, "6" }, {0x0c, 0x01, 0xf0, 0x90, "8" }, {0x0c, 0x01, 0xf0, 0x80, "10" }, {0x0c, 0x01, 0xf0, 0x70, "12" }, // Dip 2 {0 , 0xfe, 0 , 16 , "Coin A" }, {0x0d, 0x01, 0x0f, 0x0f, "1 Coin 1 Credit" }, {0x0d, 0x01, 0x0f, 0x0e, "1 Coin 2 Credits" }, {0x0d, 0x01, 0x0f, 0x0d, "1 Coin 3 Credits" }, {0x0d, 0x01, 0x0f, 0x0c, "1 Coin 4 Credits" }, {0x0d, 0x01, 0x0f, 0x0b, "1 Coin 5 Credits" }, {0x0d, 0x01, 0x0f, 0x0a, "1 Coin 6 Credits" }, {0x0d, 0x01, 0x0f, 0x09, "1 Coin 7 Credits" }, {0x0d, 0x01, 0x0f, 0x08, "1 Coin 8 Credits" }, {0x0d, 0x01, 0x0f, 0x00, "Free Play (if coin B too) or 1C/1C" }, {0 , 0xfe, 0 , 16 , "Coin B" }, {0x0d, 0x01, 0xf0, 0xf0, "1 Coin 1 Credit" }, {0x0d, 0x01, 0xf0, 0xe0, "1 Coin 2 Credits" }, {0x0d, 0x01, 0xf0, 0xd0, "1 Coin 3 Credits" }, {0x0d, 0x01, 0xf0, 0xc0, "1 Coin 4 Credits" }, {0x0d, 0x01, 0xf0, 0xb0, "1 Coin 5 Credits" }, {0x0d, 0x01, 0xf0, 0xa0, "1 Coin 6 Credits" }, {0x0d, 0x01, 0xf0, 0x90, "1 Coin 7 Credits" }, {0x0d, 0x01, 0xf0, 0x80, "1 Coin 8 Credits" }, {0x0d, 0x01, 0xf0, 0x00, "Free Play (if coin A too) or 1C/1C" }, }; STDDIPINFO(Glocr360) static struct BurnDIPInfo PdriftDIPList[]= { // Default Values {0x0a, 0xff, 0xff, 0xea, NULL }, {0x0b, 0xff, 0xff, 0xff, NULL }, // Dip 1 {0 , 0xfe, 0 , 3 , "Cabinet" }, {0x0a, 0x01, 0x03, 0x03, "Moving" }, {0x0a, 0x01, 0x03, 0x02, "Upright/Sit Down" }, {0x0a, 0x01, 0x03, 0x01, "Mini Upright" }, {0 , 0xfe, 0 , 2 , "Demo Sounds" }, {0x0a, 0x01, 0x04, 0x04, "Off" }, {0x0a, 0x01, 0x04, 0x00, "On" }, {0 , 0xfe, 0 , 4 , "Credits" }, {0x0a, 0x01, 0x08, 0x08, "1 to start, 1 to continue" }, {0x0a, 0x01, 0x08, 0x18, "2 to start, 1 to continue" }, {0x0a, 0x01, 0x08, 0x00, "2 to start, 2 to continue" }, {0x0a, 0x01, 0x08, 0x10, "3 to start, 2 to continue" }, {0 , 0xfe, 0 , 2 , "Allow Continue" }, {0x0a, 0x01, 0x20, 0x00, "No" }, {0x0a, 0x01, 0x20, 0x20, "Yes" }, {0 , 0xfe, 0 , 4 , "Difficulty" }, {0x0a, 0x01, 0xc0, 0x80, "Easy" }, {0x0a, 0x01, 0xc0, 0xc0, "Normal" }, {0x0a, 0x01, 0xc0, 0x40, "Hard" }, {0x0a, 0x01, 0xc0, 0x00, "Hardest" }, // Dip 2 YBOARD_COINAGE(0x0b) }; STDDIPINFO(Pdrift) static struct BurnDIPInfo PdrifteDIPList[]= { // Default Values {0x0a, 0xff, 0xff, 0xea, NULL }, {0x0b, 0xff, 0xff, 0xff, NULL }, // Dip 1 {0 , 0xfe, 0 , 3 , "Cabinet" }, {0x0a, 0x01, 0x03, 0x03, "Moving" }, {0x0a, 0x01, 0x03, 0x02, "Upright" }, {0x0a, 0x01, 0x03, 0x01, "Mini Upright" }, {0 , 0xfe, 0 , 2 , "Demo Sounds" }, {0x0a, 0x01, 0x04, 0x04, "Off" }, {0x0a, 0x01, 0x04, 0x00, "On" }, {0 , 0xfe, 0 , 2 , "Initial Credit" }, {0x0a, 0x01, 0x10, 0x00, "1" }, {0x0a, 0x01, 0x10, 0x10, "2" }, {0 , 0xfe, 0 , 2 , "Allow Continue" }, {0x0a, 0x01, 0x20, 0x00, "No" }, {0x0a, 0x01, 0x20, 0x20, "Yes" }, {0 , 0xfe, 0 , 4 , "Difficulty" }, {0x0a, 0x01, 0xc0, 0x80, "Easy" }, {0x0a, 0x01, 0xc0, 0xc0, "Normal" }, {0x0a, 0x01, 0xc0, 0x40, "Hard" }, {0x0a, 0x01, 0xc0, 0x00, "Hardest" }, // Dip 2 YBOARD_COINAGE(0x0b) }; STDDIPINFO(Pdrifte) static struct BurnDIPInfo PdriftjDIPList[]= { // Default Values {0x0a, 0xff, 0xff, 0xea, NULL }, {0x0b, 0xff, 0xff, 0xff, NULL }, // Dip 1 {0 , 0xfe, 0 , 3 , "Cabinet" }, {0x0a, 0x01, 0x03, 0x03, "Moving" }, {0x0a, 0x01, 0x03, 0x02, "Upright/Sit Down" }, {0x0a, 0x01, 0x03, 0x01, "Mini Upright" }, {0 , 0xfe, 0 , 2 , "Demo Sounds" }, {0x0a, 0x01, 0x04, 0x04, "Off" }, {0x0a, 0x01, 0x04, 0x00, "On" }, {0 , 0xfe, 0 , 2 , "Initial Credit" }, {0x0a, 0x01, 0x10, 0x00, "1" }, {0x0a, 0x01, 0x10, 0x10, "2" }, {0 , 0xfe, 0 , 2 , "Allow Continue" }, {0x0a, 0x01, 0x20, 0x00, "No" }, {0x0a, 0x01, 0x20, 0x20, "Yes" }, {0 , 0xfe, 0 , 4 , "Difficulty" }, {0x0a, 0x01, 0xc0, 0x80, "Easy" }, {0x0a, 0x01, 0xc0, 0xc0, "Normal" }, {0x0a, 0x01, 0xc0, 0x40, "Hard" }, {0x0a, 0x01, 0xc0, 0x00, "Hardest" }, // Dip 2 YBOARD_COINAGE(0x0b) }; STDDIPINFO(Pdriftj) static struct BurnDIPInfo RchaseDIPList[]= { // Default Values {0x0d, 0xff, 0xff, 0x63, NULL }, {0x0e, 0xff, 0xff, 0xff, NULL }, // Dip 1 {0 , 0xfe, 0 , 4 , "Credits" }, {0x0d, 0x01, 0x03, 0x03, "1 to start, 1 to continue" }, {0x0d, 0x01, 0x03, 0x02, "2 to start, 1 to continue" }, {0x0d, 0x01, 0x03, 0x01, "3 to start, 2 to continue" }, {0x0d, 0x01, 0x03, 0x00, "4 to start, 3 to continue" }, {0 , 0xfe, 0 , 2 , "Coin Chute" }, {0x0d, 0x01, 0x04, 0x04, "Single" }, {0x0d, 0x01, 0x04, 0x00, "Twin" }, {0 , 0xfe, 0 , 2 , "Cabinet" }, {0x0d, 0x01, 0x08, 0x08, "Moving" }, {0x0d, 0x01, 0x08, 0x00, "Upright" }, {0 , 0xfe, 0 , 4 , "Difficulty" }, {0x0d, 0x01, 0x60, 0x40, "Easy" }, {0x0d, 0x01, 0x60, 0x60, "Normal" }, {0x0d, 0x01, 0x60, 0x20, "Hard" }, {0x0d, 0x01, 0x60, 0x00, "Hardest" }, {0 , 0xfe, 0 , 2 , "Demo Sounds" }, {0x0d, 0x01, 0x80, 0x80, "Off" }, {0x0d, 0x01, 0x80, 0x00, "On" }, // Dip 2 {0 , 0xfe, 0 , 4 , "Coin to Credit" }, {0x0e, 0x01, 0x03, 0x00, "4 Coins 1 Credit" }, {0x0e, 0x01, 0x03, 0x01, "3 Coins 1 Credit" }, {0x0e, 0x01, 0x03, 0x02, "2 Coins 1 Credit" }, {0x0e, 0x01, 0x03, 0x03, "1 Coins 1 Credit" }, {0 , 0xfe, 0 , 2 , "Coin #1 mulitplier" }, {0x0e, 0x01, 0x04, 0x04, "x1" }, {0x0e, 0x01, 0x04, 0x00, "x2" }, {0 , 0xfe, 0 , 4 , "Coin #2 mulitplier" }, {0x0e, 0x01, 0x18, 0x18, "x1" }, {0x0e, 0x01, 0x18, 0x10, "x4" }, {0x0e, 0x01, 0x18, 0x08, "x5" }, {0x0e, 0x01, 0x18, 0x00, "x6" }, {0 , 0xfe, 0 , 8 , "Bonus Adder" }, {0x0e, 0x01, 0xe0, 0xe0, "None" }, {0x0e, 0x01, 0xe0, 0xc0, "2 gives 1 more" }, {0x0e, 0x01, 0xe0, 0xa0, "3 gives 1 more" }, {0x0e, 0x01, 0xe0, 0x80, "4 gives 1 more" }, {0x0e, 0x01, 0xe0, 0x60, "5 gives 1 more" }, {0x0e, 0x01, 0xe0, 0x40, "6 gives 1 more" }, {0x0e, 0x01, 0xe0, 0x20, "7 gives 1 more" }, {0x0e, 0x01, 0xe0, 0x00, "Error" }, }; STDDIPINFO(Rchase) static struct BurnDIPInfo StrkfgtrDIPList[]= { // Default Values {0x0c, 0xff, 0xff, 0x5b, NULL }, {0x0d, 0xff, 0xff, 0xff, NULL }, // Dip 1 {0 , 0xfe, 0 , 4 , "Difficulty" }, {0x0c, 0x01, 0x03, 0x02, "Easy" }, {0x0c, 0x01, 0x03, 0x03, "Normal" }, {0x0c, 0x01, 0x03, 0x01, "Hard" }, {0x0c, 0x01, 0x03, 0x00, "Hardest" }, {0 , 0xfe, 0 , 2 , "Demo Sounds" }, {0x0c, 0x01, 0x04, 0x04, "Off" }, {0x0c, 0x01, 0x04, 0x00, "On" }, {0 , 0xfe, 0 , 2 , "Allow Continue" }, {0x0c, 0x01, 0x08, 0x00, "No" }, {0x0c, 0x01, 0x08, 0x08, "Yes" }, {0 , 0xfe, 0 , 4 , "Credits" }, {0x0c, 0x01, 0x30, 0x10, "1 to start, 1 to continue" }, {0x0c, 0x01, 0x30, 0x30, "2 to start, 1 to continue" }, {0x0c, 0x01, 0x30, 0x20, "3 to start, 2 to continue" }, {0x0c, 0x01, 0x30, 0x00, "4 to start, 3 to continue" }, {0 , 0xfe, 0 , 3 , "Cabinet" }, {0x0c, 0x01, 0xc0, 0xc0, "Moving" }, {0x0c, 0x01, 0xc0, 0x80, "Cockpit" }, {0x0c, 0x01, 0xc0, 0x40, "Upright" }, // Dip 2 YBOARD_COINAGE(0x0d) }; STDDIPINFO(Strkfgtr) #undef YBOARD_COINAGE /*==================================================== Rom Defs ====================================================*/ static struct BurnRomInfo Gforce2RomDesc[] = { { "epr-11688.bin", 0x20000, 0xc845f2df, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11687.bin", 0x20000, 0x1cbefbbf, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11875.bin", 0x20000, 0xc81701c6, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-11874.bin", 0x20000, 0x5301fd79, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-11816.bin", 0x20000, 0x317dd0c2, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-11815.bin", 0x20000, 0xf1fb22f1, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-11468.bin", 0x20000, 0x74ca9ca5, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11467.bin", 0x20000, 0x6e60e736, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11695.bin", 0x20000, 0x38a864be, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11694.bin", 0x20000, 0x7e297b84, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11469.bin", 0x20000, 0xed7a2299, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11470.bin", 0x20000, 0x34dea550, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11477.bin", 0x20000, 0xa2784653, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11478.bin", 0x20000, 0x8b778993, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11471.bin", 0x20000, 0xf1974069, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11472.bin", 0x20000, 0x0d24409a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11479.bin", 0x20000, 0xecd6138a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11480.bin", 0x20000, 0x64ad66c5, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11473.bin", 0x20000, 0x0538c6ec, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11474.bin", 0x20000, 0xeb923c50, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11481.bin", 0x20000, 0x78e652b6, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11482.bin", 0x20000, 0x2f879766, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11475.bin", 0x20000, 0x69cfec89, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11476.bin", 0x20000, 0xa60b9b79, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11483.bin", 0x20000, 0xd5d3a505, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11484.bin", 0x20000, 0xb8a56a50, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11696.bin", 0x20000, 0x99e8e49e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11697.bin", 0x20000, 0x7545c52e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11700.bin", 0x20000, 0xe13839c1, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11701.bin", 0x20000, 0x9fb3d365, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11698.bin", 0x20000, 0xcfeba3e2, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11699.bin", 0x20000, 0x4a00534a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11702.bin", 0x20000, 0x2a09c627, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11703.bin", 0x20000, 0x43bb7d9f, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11524.bin", 0x20000, 0x5d35849f, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11525.bin", 0x20000, 0x9ae47552, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11532.bin", 0x20000, 0xb3565ddb, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11533.bin", 0x20000, 0xf5d16e8a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11526.bin", 0x20000, 0x094cb3f0, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11527.bin", 0x20000, 0xe821a144, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11534.bin", 0x20000, 0xb7f0ad7c, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11535.bin", 0x20000, 0x95da7a46, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11693.bin", 0x10000, 0x0497785c, SYS16_ROM_Z80PROG | BRF_ESS | BRF_PRG }, { "epr-11465.bin", 0x80000, 0xe1436dab, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11516.bin", 0x20000, 0x19d0e17f, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11814.bin", 0x20000, 0x0b05d376, SYS16_ROM_PCMDATA | BRF_SND }, }; STD_ROM_PICK(Gforce2) STD_ROM_FN(Gforce2) static struct BurnRomInfo Gforce2jRomDesc[] = { { "epr-11511.bin", 0x20000, 0xd80a86d6, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11510.bin", 0x20000, 0xd2b1bef4, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11515.bin", 0x20000, 0xd85875cf, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-11514.bin", 0x20000, 0x3dcc6919, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-11513.bin", 0x20000, 0xe18bc177, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-11512.bin", 0x20000, 0x6010e63e, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-11468.bin", 0x20000, 0x74ca9ca5, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11467.bin", 0x20000, 0x6e60e736, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11695.bin", 0x20000, 0x38a864be, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11694.bin", 0x20000, 0x7e297b84, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11469.bin", 0x20000, 0xed7a2299, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11470.bin", 0x20000, 0x34dea550, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11477.bin", 0x20000, 0xa2784653, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11478.bin", 0x20000, 0x8b778993, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11471.bin", 0x20000, 0xf1974069, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11472.bin", 0x20000, 0x0d24409a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11479.bin", 0x20000, 0xecd6138a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11480.bin", 0x20000, 0x64ad66c5, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11473.bin", 0x20000, 0x0538c6ec, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11474.bin", 0x20000, 0xeb923c50, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11481.bin", 0x20000, 0x78e652b6, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11482.bin", 0x20000, 0x2f879766, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11475.bin", 0x20000, 0x69cfec89, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11476.bin", 0x20000, 0xa60b9b79, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11483.bin", 0x20000, 0xd5d3a505, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11484.bin", 0x20000, 0xb8a56a50, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11696.bin", 0x20000, 0x99e8e49e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11697.bin", 0x20000, 0x7545c52e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11700.bin", 0x20000, 0xe13839c1, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11701.bin", 0x20000, 0x9fb3d365, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11698.bin", 0x20000, 0xcfeba3e2, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11699.bin", 0x20000, 0x4a00534a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11702.bin", 0x20000, 0x2a09c627, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11703.bin", 0x20000, 0x43bb7d9f, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11524.bin", 0x20000, 0x5d35849f, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11525.bin", 0x20000, 0x9ae47552, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11532.bin", 0x20000, 0xb3565ddb, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11533.bin", 0x20000, 0xf5d16e8a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11526.bin", 0x20000, 0x094cb3f0, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11527.bin", 0x20000, 0xe821a144, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11534.bin", 0x20000, 0xb7f0ad7c, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11535.bin", 0x20000, 0x95da7a46, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11693.bin", 0x10000, 0x0497785c, SYS16_ROM_Z80PROG | BRF_ESS | BRF_PRG }, { "epr-11465.bin", 0x80000, 0xe1436dab, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11516.bin", 0x20000, 0x19d0e17f, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11814.bin", 0x20000, 0x0b05d376, SYS16_ROM_PCMDATA | BRF_SND }, }; STD_ROM_PICK(Gforce2j) STD_ROM_FN(Gforce2j) static struct BurnRomInfo GlocRomDesc[] = { { "epr-13170.25", 0x20000, 0x45189229, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-13169.24", 0x20000, 0x1b47cd6e, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-13028.27", 0x20000, 0xb6aa2edf, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-13027.26", 0x20000, 0x6463c87a, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-13032.81", 0x20000, 0x7da09c4e, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-13031.80", 0x20000, 0xf3c7e3f4, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-13030.54", 0x20000, 0x81abcabf, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-13029.53", 0x20000, 0xf3638efb, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-13037.14", 0x80000, 0xb801a250, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-13039.16", 0x80000, 0xd7e1266d, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-13038.15", 0x80000, 0x0b2edb6d, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-13040.17", 0x80000, 0x4aeb3a85, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-13048.67", 0x80000, 0xfe1eb0dd, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13056.75", 0x80000, 0x5904f8e6, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13044.63", 0x80000, 0x4d931f89, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13052.71", 0x80000, 0x0291f040, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13064.86", 0x80000, 0x5f8e651b, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13072.114", 0x80000, 0x6b85641a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13060.82", 0x80000, 0xee16ad97, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13068.110", 0x80000, 0x64d52bbb, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13047.66", 0x80000, 0x53340832, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13055.74", 0x80000, 0x39b6b665, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13043.62", 0x80000, 0x208f16fd, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13051.70", 0x80000, 0xad62cbd4, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13063.85", 0x80000, 0xc580bf6d, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13071.113", 0x80000, 0xdf99ef99, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13059.81", 0x80000, 0x4c982558, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13067.109", 0x80000, 0xf97f6119, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13046.65", 0x80000, 0xc75a86e9, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13054.73", 0x80000, 0x2934549a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13042.61", 0x80000, 0x53ed97af, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13050.69", 0x80000, 0x04429068, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13062.84", 0x80000, 0x4fdb4ee3, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13070.112", 0x80000, 0x52ea130e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13058.80", 0x80000, 0x19ff1626, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13066.108", 0x80000, 0xbc70a250, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13045.64", 0x80000, 0x54d5bc6d, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13053.72", 0x80000, 0x9502af13, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13041.60", 0x80000, 0xd0a7402c, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13049.68", 0x80000, 0x5b9c0b6c, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13061.83", 0x80000, 0x7b95ec3b, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13069.111", 0x80000, 0xe1f538f0, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13057.79", 0x80000, 0x73baefee, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13065.107", 0x80000, 0x8937a655, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13033.102", 0x10000, 0x6df5e827, SYS16_ROM_Z80PROG | BRF_ESS | BRF_PRG }, { "epr-13036.107", 0x80000, 0x7890c26c, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-13035.106", 0x80000, 0x009fa13e, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-13034.105", 0x80000, 0xcd22d95d, SYS16_ROM_PCMDATA | BRF_SND }, }; STD_ROM_PICK(Gloc) STD_ROM_FN(Gloc) static struct BurnRomInfo Glocr360RomDesc[] = { { "epr-13623.25", 0x20000, 0x58ad10e7, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-13622.24", 0x20000, 0xc4e68dbf, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-13323a.27", 0x20000, 0x02e24a33, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-13322a.26", 0x20000, 0x94f67740, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-13327.81", 0x20000, 0x627036f9, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-13326.80", 0x20000, 0x162ac233, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-13325a.54", 0x20000, 0xaba307e5, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-13324a.53", 0x20000, 0xeb1b19e5, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-13037.14", 0x80000, 0xb801a250, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-13039.16", 0x80000, 0xd7e1266d, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-13038.15", 0x80000, 0x0b2edb6d, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-13040.17", 0x80000, 0x4aeb3a85, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-13048.67", 0x80000, 0xfe1eb0dd, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13056.75", 0x80000, 0x5904f8e6, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13044.63", 0x80000, 0x4d931f89, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13052.71", 0x80000, 0x0291f040, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13064.86", 0x80000, 0x5f8e651b, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13072.114", 0x80000, 0x6b85641a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13060.82", 0x80000, 0xee16ad97, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13068.110", 0x80000, 0x64d52bbb, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13047.66", 0x80000, 0x53340832, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13055.74", 0x80000, 0x39b6b665, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13043.62", 0x80000, 0x208f16fd, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13051.70", 0x80000, 0xad62cbd4, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13063.85", 0x80000, 0xc580bf6d, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13071.113", 0x80000, 0xdf99ef99, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13059.81", 0x80000, 0x4c982558, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13067.109", 0x80000, 0xf97f6119, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13331.65", 0x80000, 0x8ea8febe, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13333.73", 0x80000, 0x5bcd37d4, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13330.61", 0x80000, 0x1e325d52, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13332.69", 0x80000, 0x8fd8067e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13335.84", 0x80000, 0x98ea420b, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13337.112", 0x80000, 0xf55f00a4, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13334.80", 0x80000, 0x72725060, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13336.108", 0x80000, 0xe2d4d477, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13045.64", 0x80000, 0x54d5bc6d, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13053.72", 0x80000, 0x9502af13, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13041.60", 0x80000, 0xd0a7402c, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13049.68", 0x80000, 0x5b9c0b6c, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13061.83", 0x80000, 0x7b95ec3b, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13069.111", 0x80000, 0xe1f538f0, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13057.79", 0x80000, 0x73baefee, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13065.107", 0x80000, 0x8937a655, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13624.102", 0x10000, 0xeff33f2d, SYS16_ROM_Z80PROG | BRF_ESS | BRF_PRG }, { "epr-13036.107", 0x80000, 0x7890c26c, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-13035.106", 0x80000, 0x009fa13e, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-13625.105", 0x80000, 0xfae71fd2, SYS16_ROM_PCMDATA | BRF_SND }, }; STD_ROM_PICK(Glocr360) STD_ROM_FN(Glocr360) static struct BurnRomInfo PdriftRomDesc[] = { { "epr-12017.25", 0x20000, 0x31190322, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-12016.24", 0x20000, 0x499f64a6, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11748.27", 0x20000, 0x82a76cab, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11747.26", 0x20000, 0x9796ece5, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11905.81", 0x20000, 0x1cf68109, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-11904.80", 0x20000, 0xbb993681, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-12019a.54", 0x20000, 0x11188a30, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-12018a.53", 0x20000, 0x1c582e1f, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-11791.14", 0x20000, 0x36b2910a, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11789.16", 0x20000, 0xb86f8d2b, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11792.15", 0x20000, 0xc85caf6e, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11790.17", 0x20000, 0x2a564e66, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11757.67", 0x20000, 0xe46dc478, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11758.75", 0x20000, 0x5b435c87, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11773.63", 0x20000, 0x1b5d5758, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11774.71", 0x20000, 0x2ca0c170, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11759.86", 0x20000, 0xac8111f6, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11760.114", 0x20000, 0x91282af9, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11775.82", 0x20000, 0x48225793, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11776.110", 0x20000, 0x78c46198, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11761.66", 0x20000, 0xbaa5d065, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11762.74", 0x20000, 0x1d1af7a5, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11777.62", 0x20000, 0x9662dd32, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11778.70", 0x20000, 0x2dfb7494, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11763.85", 0x20000, 0x1ee23407, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11764.113", 0x20000, 0xe859305e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11779.81", 0x20000, 0xa49cd793, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11780.109", 0x20000, 0xd514ed81, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11765.65", 0x20000, 0x649e2dff, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11766.73", 0x20000, 0xd92fb7fc, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11781.61", 0x20000, 0x9692d4cd, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11782.69", 0x20000, 0xc913bb43, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11767.84", 0x20000, 0x1f8ad054, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11768.112", 0x20000, 0xdb2c4053, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11783.80", 0x20000, 0x6d189007, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11784.108", 0x20000, 0x57f5fd64, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11769.64", 0x20000, 0x28f0ab51, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11770.72", 0x20000, 0xd7557ea9, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11785.60", 0x20000, 0xe6ef32c4, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11786.68", 0x20000, 0x2066b49d, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11771.83", 0x20000, 0x67635618, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11772.111", 0x20000, 0x0f798d3a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11787.79", 0x20000, 0xe631dc12, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11788.107", 0x20000, 0x8464c66e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11899.102", 0x10000, 0xed9fa889, SYS16_ROM_Z80PROG | BRF_ESS | BRF_PRG }, { "mpr-11754.107", 0x80000, 0xebeb8484, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11755.105", 0x20000, 0x12e43f8a, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11756.106", 0x20000, 0xc2db1244, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11895.ic1", 0x20000, 0xee99a6fd, SYS16_ROM_PROM | BRF_OPT }, { "epr-11896.ic2", 0x20000, 0x4bebc015, SYS16_ROM_PROM | BRF_OPT }, { "epr-11897.ic3", 0x20000, 0x4463cb95, SYS16_ROM_PROM | BRF_OPT }, { "epr-11898.ic4", 0x20000, 0x5d19d767, SYS16_ROM_PROM | BRF_OPT }, }; STD_ROM_PICK(Pdrift) STD_ROM_FN(Pdrift) static struct BurnRomInfo PdriftaRomDesc[] = { { "epr-12017.25", 0x20000, 0x31190322, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-12016.24", 0x20000, 0x499f64a6, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11748.27", 0x20000, 0x82a76cab, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11747.26", 0x20000, 0x9796ece5, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11905.81", 0x20000, 0x1cf68109, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-11904.80", 0x20000, 0xbb993681, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-12019.54", 0x20000, 0xe514d7b6, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-12018.53", 0x20000, 0x0a3f7faf, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-11791.14", 0x20000, 0x36b2910a, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11789.16", 0x20000, 0xb86f8d2b, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11792.15", 0x20000, 0xc85caf6e, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11790.17", 0x20000, 0x2a564e66, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11757.67", 0x20000, 0xe46dc478, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11758.75", 0x20000, 0x5b435c87, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11773.63", 0x20000, 0x1b5d5758, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11774.71", 0x20000, 0x2ca0c170, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11759.86", 0x20000, 0xac8111f6, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11760.114", 0x20000, 0x91282af9, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11775.82", 0x20000, 0x48225793, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11776.110", 0x20000, 0x78c46198, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11761.66", 0x20000, 0xbaa5d065, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11762.74", 0x20000, 0x1d1af7a5, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11777.62", 0x20000, 0x9662dd32, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11778.70", 0x20000, 0x2dfb7494, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11763.85", 0x20000, 0x1ee23407, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11764.113", 0x20000, 0xe859305e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11779.81", 0x20000, 0xa49cd793, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11780.109", 0x20000, 0xd514ed81, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11765.65", 0x20000, 0x649e2dff, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11766.73", 0x20000, 0xd92fb7fc, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11781.61", 0x20000, 0x9692d4cd, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11782.69", 0x20000, 0xc913bb43, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11767.84", 0x20000, 0x1f8ad054, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11768.112", 0x20000, 0xdb2c4053, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11783.80", 0x20000, 0x6d189007, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11784.108", 0x20000, 0x57f5fd64, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11769.64", 0x20000, 0x28f0ab51, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11770.72", 0x20000, 0xd7557ea9, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11785.60", 0x20000, 0xe6ef32c4, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11786.68", 0x20000, 0x2066b49d, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11771.83", 0x20000, 0x67635618, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11772.111", 0x20000, 0x0f798d3a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11787.79", 0x20000, 0xe631dc12, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11788.107", 0x20000, 0x8464c66e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11899.102", 0x10000, 0xed9fa889, SYS16_ROM_Z80PROG | BRF_ESS | BRF_PRG }, { "mpr-11754.107", 0x80000, 0xebeb8484, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11755.105", 0x20000, 0x12e43f8a, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11756.106", 0x20000, 0xc2db1244, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11895.ic1", 0x20000, 0xee99a6fd, SYS16_ROM_PROM | BRF_OPT }, { "epr-11896.ic2", 0x20000, 0x4bebc015, SYS16_ROM_PROM | BRF_OPT }, { "epr-11897.ic3", 0x20000, 0x4463cb95, SYS16_ROM_PROM | BRF_OPT }, { "epr-11898.ic4", 0x20000, 0x5d19d767, SYS16_ROM_PROM | BRF_OPT }, }; STD_ROM_PICK(Pdrifta) STD_ROM_FN(Pdrifta) static struct BurnRomInfo PdrifteRomDesc[] = { { "epr-11901.25", 0x20000, 0x16744be8, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11900.24", 0x20000, 0x0a170d06, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11748.27", 0x20000, 0x82a76cab, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11747.26", 0x20000, 0x9796ece5, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11905.81", 0x20000, 0x1cf68109, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-11904.80", 0x20000, 0xbb993681, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-11903.54", 0x20000, 0xd004f411, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-11902.53", 0x20000, 0xe8028e08, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-11791.14", 0x20000, 0x36b2910a, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11789.16", 0x20000, 0xb86f8d2b, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11792.15", 0x20000, 0xc85caf6e, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11790.17", 0x20000, 0x2a564e66, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11757.67", 0x20000, 0xe46dc478, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11758.75", 0x20000, 0x5b435c87, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11773.63", 0x20000, 0x1b5d5758, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11774.71", 0x20000, 0x2ca0c170, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11759.86", 0x20000, 0xac8111f6, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11760.114", 0x20000, 0x91282af9, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11775.82", 0x20000, 0x48225793, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11776.110", 0x20000, 0x78c46198, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11761.66", 0x20000, 0xbaa5d065, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11762.74", 0x20000, 0x1d1af7a5, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11777.62", 0x20000, 0x9662dd32, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11778.70", 0x20000, 0x2dfb7494, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11763.85", 0x20000, 0x1ee23407, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11764.113", 0x20000, 0xe859305e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11779.81", 0x20000, 0xa49cd793, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11780.109", 0x20000, 0xd514ed81, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11765.65", 0x20000, 0x649e2dff, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11766.73", 0x20000, 0xd92fb7fc, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11781.61", 0x20000, 0x9692d4cd, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11782.69", 0x20000, 0xc913bb43, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11767.84", 0x20000, 0x1f8ad054, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11768.112", 0x20000, 0xdb2c4053, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11783.80", 0x20000, 0x6d189007, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11784.108", 0x20000, 0x57f5fd64, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11769.64", 0x20000, 0x28f0ab51, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11770.72", 0x20000, 0xd7557ea9, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11785.60", 0x20000, 0xe6ef32c4, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11786.68", 0x20000, 0x2066b49d, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11771.83", 0x20000, 0x67635618, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11772.111", 0x20000, 0x0f798d3a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11787.79", 0x20000, 0xe631dc12, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11788.107", 0x20000, 0x8464c66e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11899.102", 0x10000, 0xed9fa889, SYS16_ROM_Z80PROG | BRF_ESS | BRF_PRG }, { "mpr-11754.107", 0x80000, 0xebeb8484, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11755.105", 0x20000, 0x12e43f8a, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11756.106", 0x20000, 0xc2db1244, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11895.ic1", 0x20000, 0xee99a6fd, SYS16_ROM_PROM | BRF_OPT }, { "epr-11896.ic2", 0x20000, 0x4bebc015, SYS16_ROM_PROM | BRF_OPT }, { "epr-11897.ic3", 0x20000, 0x4463cb95, SYS16_ROM_PROM | BRF_OPT }, { "epr-11898.ic4", 0x20000, 0x5d19d767, SYS16_ROM_PROM | BRF_OPT }, }; STD_ROM_PICK(Pdrifte) STD_ROM_FN(Pdrifte) static struct BurnRomInfo PdriftjRomDesc[] = { { "epr-11746a.25", 0x20000, 0xb0f1caf4, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11745a.24", 0x20000, 0xa89720cd, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11748.27", 0x20000, 0x82a76cab, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11747.26", 0x20000, 0x9796ece5, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-11752.81", 0x20000, 0xb6bb8111, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-11751.80", 0x20000, 0x7f0d0311, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-11750b.54", 0x20000, 0xbc14ce30, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-11749b.53", 0x20000, 0x9e385568, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-11791.14", 0x20000, 0x36b2910a, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11789.16", 0x20000, 0xb86f8d2b, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11792.15", 0x20000, 0xc85caf6e, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11790.17", 0x20000, 0x2a564e66, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-11757.67", 0x20000, 0xe46dc478, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11758.75", 0x20000, 0x5b435c87, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11773.63", 0x20000, 0x1b5d5758, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11774.71", 0x20000, 0x2ca0c170, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11759.86", 0x20000, 0xac8111f6, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11760.114", 0x20000, 0x91282af9, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11775.82", 0x20000, 0x48225793, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11776.110", 0x20000, 0x78c46198, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11761.66", 0x20000, 0xbaa5d065, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11762.74", 0x20000, 0x1d1af7a5, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11777.62", 0x20000, 0x9662dd32, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11778.70", 0x20000, 0x2dfb7494, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11763.85", 0x20000, 0x1ee23407, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11764.113", 0x20000, 0xe859305e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11779.81", 0x20000, 0xa49cd793, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11780.109", 0x20000, 0xd514ed81, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11765.65", 0x20000, 0x649e2dff, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11766.73", 0x20000, 0xd92fb7fc, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11781.61", 0x20000, 0x9692d4cd, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11782.69", 0x20000, 0xc913bb43, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11767.84", 0x20000, 0x1f8ad054, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11768.112", 0x20000, 0xdb2c4053, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11783.80", 0x20000, 0x6d189007, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11784.108", 0x20000, 0x57f5fd64, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11769.64", 0x20000, 0x28f0ab51, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11770.72", 0x20000, 0xd7557ea9, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11785.60", 0x20000, 0xe6ef32c4, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11786.68", 0x20000, 0x2066b49d, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11771.83", 0x20000, 0x67635618, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11772.111", 0x20000, 0x0f798d3a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11787.79", 0x20000, 0xe631dc12, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11788.107", 0x20000, 0x8464c66e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-11899.102", 0x10000, 0xed9fa889, SYS16_ROM_Z80PROG | BRF_ESS | BRF_PRG }, { "mpr-11754.107", 0x80000, 0xebeb8484, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11755.105", 0x20000, 0x12e43f8a, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11756.106", 0x20000, 0xc2db1244, SYS16_ROM_PCMDATA | BRF_SND }, { "epr-11895.ic1", 0x20000, 0xee99a6fd, SYS16_ROM_PROM | BRF_OPT }, { "epr-11896.ic2", 0x20000, 0x4bebc015, SYS16_ROM_PROM | BRF_OPT }, { "epr-11897.ic3", 0x20000, 0x4463cb95, SYS16_ROM_PROM | BRF_OPT }, { "epr-11898.ic4", 0x20000, 0x5d19d767, SYS16_ROM_PROM | BRF_OPT }, }; STD_ROM_PICK(Pdriftj) STD_ROM_FN(Pdriftj) static struct BurnRomInfo RchaseRomDesc[] = { { "ic25.bin", 0x20000, 0x388b2365, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "ic24.bin", 0x20000, 0x14dba5d4, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "ic27.bin", 0x20000, 0xdc1cd5a4, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "ic26.bin", 0x20000, 0x969fdb3a, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "ic81.bin", 0x20000, 0xc5d525b6, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "ic80.bin", 0x20000, 0x299e3c7c, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "ic54.bin", 0x20000, 0x18eb23c5, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "ic53.bin", 0x20000, 0x8f4f824e, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "vic14.bin", 0x40000, 0x1fdf1b87, SYS16_ROM_SPRITES | BRF_GRA }, { "vic16.bin", 0x40000, 0x9a1dd53c, SYS16_ROM_SPRITES | BRF_GRA }, { "vic67.bin", 0x80000, 0x9fa88781, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic75.bin", 0x80000, 0x49e824bb, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic63.bin", 0x80000, 0x35b5187e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic71.bin", 0x80000, 0x9a538b9b, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic86.bin", 0x80000, 0xe11c6c67, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic114.bin", 0x80000, 0x16344535, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic82.bin", 0x80000, 0x78e9983b, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic110.bin", 0x80000, 0xe9daa1a4, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic66.bin", 0x80000, 0xb83df159, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic74.bin", 0x80000, 0x76dbe9ce, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic62.bin", 0x80000, 0x9e998209, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic70.bin", 0x80000, 0x2caddf1a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic85.bin", 0x80000, 0xb15e19ff, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic113.bin", 0x80000, 0x84c7008f, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic81.bin", 0x80000, 0xc3cf5faa, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic109.bin", 0x80000, 0x7e91beb2, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic65.bin", 0x80000, 0x31dbb2c3, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic73.bin", 0x80000, 0x7e68257d, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic61.bin", 0x80000, 0x71031ad0, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic69.bin", 0x80000, 0x27e70a5e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic84.bin", 0x80000, 0x7540bf85, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic112.bin", 0x80000, 0x7d87b94d, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic80.bin", 0x80000, 0x87725d74, SYS16_ROM_SPRITES2 | BRF_GRA }, { "vic108.bin", 0x80000, 0x73477291, SYS16_ROM_SPRITES2 | BRF_GRA }, { "ic102.bin", 0x10000, 0x7cc3b543, SYS16_ROM_Z80PROG | BRF_ESS | BRF_PRG }, { "ic107.bin", 0x80000, 0x345f5a41, SYS16_ROM_PCMDATA | BRF_SND }, { "ic106.bin", 0x80000, 0xf604c270, SYS16_ROM_PCMDATA | BRF_SND }, { "ic105.bin", 0x80000, 0x76095538, SYS16_ROM_PCMDATA | BRF_SND }, }; STD_ROM_PICK(Rchase) STD_ROM_FN(Rchase) static struct BurnRomInfo StrkfgtrRomDesc[] = { { "epr-13824.25", 0x20000, 0x2cf2610c, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-13823.24", 0x20000, 0x2c98242f, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-13826.27", 0x20000, 0x3d34ea55, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-13825.26", 0x20000, 0xfe218d83, SYS16_ROM_PROG | BRF_ESS | BRF_PRG }, { "epr-13830.81", 0x20000, 0xf9adc9d1, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-13829.80", 0x20000, 0xc5cd85dd, SYS16_ROM_PROG2 | BRF_ESS | BRF_PRG }, { "epr-13828.54", 0x20000, 0x2470cf5f, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-13827.53", 0x20000, 0xa9d0cf7d, SYS16_ROM_PROG3 | BRF_ESS | BRF_PRG }, { "epr-13832.14", 0x80000, 0x41679754, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-13833.16", 0x80000, 0x6148e11a, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-13038.15", 0x80000, 0x0b2edb6d, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-13040.17", 0x80000, 0x4aeb3a85, SYS16_ROM_SPRITES | BRF_GRA }, { "epr-13048.67", 0x80000, 0xfe1eb0dd, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13056.75", 0x80000, 0x5904f8e6, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13044.63", 0x80000, 0x4d931f89, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13052.71", 0x80000, 0x0291f040, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13064.86", 0x80000, 0x5f8e651b, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13072.114", 0x80000, 0x6b85641a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13060.82", 0x80000, 0xee16ad97, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13068.110", 0x80000, 0x64d52bbb, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13047.66", 0x80000, 0x53340832, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13055.74", 0x80000, 0x39b6b665, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13043.62", 0x80000, 0x208f16fd, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13051.70", 0x80000, 0xad62cbd4, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13063.85", 0x80000, 0xc580bf6d, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13071.113", 0x80000, 0xdf99ef99, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13059.81", 0x80000, 0x4c982558, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13067.109", 0x80000, 0xf97f6119, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13046.65", 0x80000, 0xc75a86e9, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13054.73", 0x80000, 0x2934549a, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13042.61", 0x80000, 0x53ed97af, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13050.69", 0x80000, 0x04429068, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13062.84", 0x80000, 0x4fdb4ee3, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13070.112", 0x80000, 0x52ea130e, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13058.80", 0x80000, 0x19ff1626, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13066.108", 0x80000, 0xbc70a250, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13045.64", 0x80000, 0x54d5bc6d, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13053.72", 0x80000, 0x9502af13, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13041.60", 0x80000, 0xd0a7402c, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13049.68", 0x80000, 0x5b9c0b6c, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13061.83", 0x80000, 0x7b95ec3b, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13069.111", 0x80000, 0xe1f538f0, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13057.79", 0x80000, 0x73baefee, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13065.107", 0x80000, 0x8937a655, SYS16_ROM_SPRITES2 | BRF_GRA }, { "epr-13831.102", 0x10000, 0xdabbcea1, SYS16_ROM_Z80PROG | BRF_ESS | BRF_PRG }, { "mpr-13036.107", 0x80000, 0x7890c26c, SYS16_ROM_PCMDATA | BRF_SND }, { "mpr-13035.106", 0x80000, 0x009fa13e, SYS16_ROM_PCMDATA | BRF_SND }, { "mpr-13034.105", 0x80000, 0xcd22d95d, SYS16_ROM_PCMDATA | BRF_SND }, }; STD_ROM_PICK(Strkfgtr) STD_ROM_FN(Strkfgtr) /*==================================================== Memory Handlers ====================================================*/ static UINT8 misc_io_data[0x10]; static UINT8 analog_data[4]; static unsigned char io_chip_r(unsigned int offset) { switch (offset) { case 0x00: case 0x02: case 0x03: case 0x04: case 0x07: { if (misc_io_data[0x1e/2] & (1 << offset)) return misc_io_data[offset]; return 0xff; } case 0x01: { if (misc_io_data[0x1e/2] & (1 << offset)) return misc_io_data[offset]; return 0xff - System16Input[0]; } case 0x05: { if (misc_io_data[0x1e/2] & (1 << offset)) return misc_io_data[offset]; return System16Dip[0]; } case 0x06: { if (misc_io_data[0x1e/2] & (1 << offset)) return misc_io_data[offset]; return System16Dip[1]; } case 0x08: { return 'S'; } case 0x09: { return 'E'; } case 0x0a: { return 'G'; } case 0x0b: { return 'A'; } case 0x0c: case 0x0e: { return misc_io_data[0x0e]; } case 0x0d: case 0x0f: { return misc_io_data[0x0f]; } } return 0xff; } static void io_chip_w(unsigned int offset, unsigned short d) { misc_io_data[offset] = d; switch (offset) { case 0x04: { System16VideoEnable = d & 0x80; if (d & 0x04) { int nLastCPU = nSekActive; SekClose(); SekOpen(2); SekReset(); SekClose(); SekOpen(nLastCPU); } if (d & 0x08) { int nLastCPU = nSekActive; SekClose(); SekOpen(1); SekReset(); SekClose(); SekOpen(nLastCPU); } if (!(d & 0x10)) { ZetOpen(0); ZetReset(); ZetClose(); } return; } } } static unsigned char analog_r(unsigned int offset) { int result = analog_data[offset] & 0x80; analog_data[offset] <<= 1; return result; } static void analog_w(unsigned int offset, unsigned short) { if (offset == 3) { if (System16ProcessAnalogControlsDo) analog_data[offset] = System16ProcessAnalogControlsDo(3 + (misc_io_data[0x08/2] & 3)); } else { if (System16ProcessAnalogControlsDo) analog_data[offset] = System16ProcessAnalogControlsDo(offset & 3); } } unsigned short __fastcall YBoardReadWord(unsigned int a) { if (a >= 0x080000 && a <= 0x080007) { return System16MultiplyChipRead(0, (a - 0x080000) >> 1); } if (a >= 0x084000 && a <= 0x08401f) { return System16DivideChipRead(0, (a - 0x084000) >> 1); } #if 0 && defined FBA_DEBUG bprintf(PRINT_NORMAL, _T("68000 Read Word -> 0x%06X\n"), a); #endif return 0xffff; } unsigned char __fastcall YBoardReadByte(unsigned int a) { if (a >= 0x100000 && a <= 0x10001f) { return io_chip_r((a - 0x100000) >> 1); } if (a >= 0x100040 && a <= 0x100047) { return analog_r((a - 0x100040) >> 1); } #if 0 && defined FBA_DEBUG bprintf(PRINT_NORMAL, _T("68000 Read Byte -> 0x%06X\n"), a); #endif return 0xff; } void __fastcall YBoardWriteWord(unsigned int a, unsigned short d) { if (a >= 0x100000 && a <= 0x10001f) { io_chip_w((a - 0x100000) >> 1, d); return; } if (a >= 0x080000 && a <= 0x080007) { System16MultiplyChipWrite(0, (a - 0x080000) >> 1, d); return; } if (a >= 0x084000 && a <= 0x08401f) { System16DivideChipWrite(0, (a - 0x084000) >> 1, d); return; } #if 0 && defined FBA_DEBUG bprintf(PRINT_NORMAL, _T("68000 Write Word -> 0x%06X, 0x%04X\n"), a, d); #endif } void __fastcall YBoardWriteByte(unsigned int a, unsigned char d) { if (a >= 0x100000 && a <= 0x10001f) { io_chip_w((a - 0x100000) >> 1, d); return; } if (a >= 0x100040 && a <= 0x100047) { analog_w((a - 0x100040) >> 1, d); return; } switch (a) { case 0x082001: { System16SoundLatch = d & 0xff; ZetOpen(0); ZetNmi(); ZetClose(); return; } } #if 0 && defined FBA_DEBUG bprintf(PRINT_NORMAL, _T("68000 Write Byte -> 0x%06X, 0x%02X\n"), a, d); #endif } unsigned short __fastcall YBoard2ReadWord(unsigned int a) { if (a >= 0x080000 && a <= 0x080007) { return System16MultiplyChipRead(1, (a - 0x080000) >> 1); } if (a >= 0x084000 && a <= 0x08401f) { return System16DivideChipRead(1, (a - 0x084000) >> 1); } #if 0 && defined FBA_DEBUG bprintf(PRINT_NORMAL, _T("68000 #2 Read Word -> 0x%06X\n"), a); #endif return 0xffff; } void __fastcall YBoard2WriteWord(unsigned int a, unsigned short d) { if (a >= 0x080000 && a <= 0x080007) { System16MultiplyChipWrite(1, (a - 0x080000) >> 1, d); return; } if (a >= 0x084000 && a <= 0x08401f) { System16DivideChipWrite(1, (a - 0x084000) >> 1, d); return; } #if 0 && defined FBA_DEBUG bprintf(PRINT_NORMAL, _T("68000 #2 Write Word -> 0x%06X, 0x%04X\n"), a, d); #endif } unsigned short __fastcall YBoard3ReadWord(unsigned int a) { if (a >= 0x080000 && a <= 0x080007) { return System16MultiplyChipRead(2, (a - 0x080000) >> 1); } if (a >= 0x084000 && a <= 0x08401f) { return System16DivideChipRead(2, (a - 0x084000) >> 1); } switch (a) { case 0x198000: { /* swap the halves of the rotation RAM */ UINT32 *src = (UINT32 *)System16RotateRam; UINT32 *dst = (UINT32 *)System16RotateRamBuff; for (unsigned int i = 0; i < System16RotateRamSize/4; i++) { UINT32 temp = *src; *src++ = *dst; *dst++ = temp; } return 0xffff; } } #if 0 && defined FBA_DEBUG bprintf(PRINT_NORMAL, _T("68000 #3 Read Word -> 0x%06X\n"), a); #endif return 0xffff; } unsigned char __fastcall YBoard3ReadByte(unsigned int a) { if (a >= 0x084000 && a <= 0x08401f) { return System16DivideChipRead(2, (a - 0x084000) >> 1); } #if 0 && defined FBA_DEBUG bprintf(PRINT_NORMAL, _T("68000 #3 Read Byte -> 0x%06X\n"), a); #endif return 0xff; } void __fastcall YBoard3WriteWord(unsigned int a, unsigned short d) { if (a >= 0x080000 && a <= 0x080007) { System16MultiplyChipWrite(2, (a - 0x080000) >> 1, d); return; } if (a >= 0x084000 && a <= 0x08401f) { System16DivideChipWrite(2, (a - 0x084000) >> 1, d); return; } #if 0 && defined FBA_DEBUG bprintf(PRINT_NORMAL, _T("68000 #3 Write Word -> 0x%06X, 0x%04X\n"), a, d); #endif } /*==================================================== Driver Inits ====================================================*/ unsigned char Gforce2ProcessAnalogControls(UINT16 value) { unsigned char temp = 0; switch (value) { // Left/Right case 0: { // Prevent CHAR data overflow if((System16AnalogPort0 >> 4) > 0x7f && (System16AnalogPort0 >> 4) <= 0x80) { temp = 0x80 + 0x7f; } else { temp = 0x80 + (System16AnalogPort0 >> 4); } return temp; } // Up/Down case 1: { // Prevent CHAR data overflow if((System16AnalogPort1 >> 4) < 0xf82 && (System16AnalogPort1 >> 4) > 0x80) { temp = (unsigned char)(0x80 - 0xf82); } else { temp = 0x80 - (System16AnalogPort1 >> 4); } return temp; } // Throttle case 2: { // Prevent CHAR data overflow if((System16AnalogPort2 >> 4) > 0x7f && (System16AnalogPort2 >> 4) <= 0x80) { temp = 0x80 + 0x7f; } else { temp = 0x80 + (System16AnalogPort2 >> 4); } // full throttle if(temp == 0) { temp = 1; return temp; } // throttle range if(temp > 0 && temp < 128) { return temp; } // normal speed temp = 0; //bprintf(0, _T("(0x80 - (System16AnalogPort1 >> 4)) int-> %d port-> %d char-> %d\n"), 0x80 - (System16AnalogPort1 >> 4), (System16AnalogPort1 >> 4), temp); return temp; } } return 0; } unsigned char GlocProcessAnalogControls(UINT16 value) { unsigned char temp = 0; switch (value) { // Up/Down case 3: { // Prevent CHAR data overflow if((System16AnalogPort1 >> 4) < 0xf82 && (System16AnalogPort1 >> 4) > 0x80) { temp = (unsigned char)(0x80 - 0xf82); } else { temp = 0x80 - (System16AnalogPort1 >> 4); } if (temp < 0x40) temp = 0x40; if (temp > 0xc0) temp = 0xc0; return temp; } // Throttle [?] case 4: { temp = 0x80 + (System16AnalogPort2 >> 4); if (temp > 0xc0) return 0xff; if (temp < 0x40) return 0; return 0x80; } // Left/Right case 5: { // Prevent CHAR data overflow if((System16AnalogPort0 >> 4) > 0x7f && (System16AnalogPort0 >> 4) <= 0x80) { temp = 0x80 + 0x7f; } else { temp = 0x80 + (System16AnalogPort0 >> 4); } if (temp < 0x20) temp = 0x20; if (temp > 0xe0) temp = 0xe0; return temp; } } return 0; } unsigned char Glocr360ProcessAnalogControls(UINT16 value) { unsigned char temp = 0; switch (value) { // Moving Pitch case 1: { // Prevent CHAR data overflow if((System16AnalogPort3 >> 4) > 0x7f && (System16AnalogPort3 >> 4) <= 0x80) { temp = 0x7f + 0x7f; } else { temp = 0x7f + (System16AnalogPort3 >> 4); } if (temp == 0xfe) temp = 0xff; return temp; } // Moving Roll case 2: { // Prevent CHAR data overflow if((System16AnalogPort2 >> 4) > 0x7f && (System16AnalogPort2 >> 4) <= 0x80) { temp = 0x7f + 0x7f; } else { temp = 0x7f + (System16AnalogPort2 >> 4); } if (temp == 0xfe) temp = 0xff; return temp; } // Up/Down case 3: { // Prevent CHAR data overflow if((System16AnalogPort1 >> 4) < 0xf82 && (System16AnalogPort1 >> 4) > 0x80) { temp = (unsigned char)(0x7f - 0xf82); } else { temp = 0x7f - (System16AnalogPort1 >> 4); } if (temp == 0xfe) temp = 0xff; return temp; } // Left/Right case 5: { // Prevent CHAR data overflow if((System16AnalogPort0 >> 4) > 0x7f && (System16AnalogPort0 >> 4) <= 0x80) { temp = 0x7f + 0x7f; } else { temp = 0x7f + (System16AnalogPort0 >> 4); } if (temp == 0xfe) temp = 0xff; return temp; } } return 0; } unsigned char PdriftProcessAnalogControls(UINT16 value) { unsigned char temp = 0; switch (value) { // Brake case 3: { if (System16AnalogPort2 > 1) return 0xff; return 0; } // Accelerate case 4: { if (System16AnalogPort1 > 1) return 0xff; return 0; } // Steering case 5: { // Prevent CHAR data overflow if((System16AnalogPort0 >> 4) > 0x7f && (System16AnalogPort0 >> 4) <= 0x80) { temp = 0x80 + 0x7f; } else { temp = 0x80 + (System16AnalogPort0 >> 4); } if (temp < 0x20) temp = 0x20; if (temp > 0xe0) temp = 0xe0; return temp; } } return 0; } unsigned char RchaseProcessAnalogControls(UINT16 value) { switch (value) { case 0: { return BurnGunReturnX(0); } case 1: { return BurnGunReturnY(0); } case 2: { return BurnGunReturnX(1); } case 3: { return BurnGunReturnY(1); } } return 0; } static int Gforce2Init() { System16ProcessAnalogControlsDo = Gforce2ProcessAnalogControls; System16PCMDataSizePreAllocate = 0x180000; int nRet = System16Init(); unsigned char *pTemp = (unsigned char*)malloc(0x0c0000); memcpy(pTemp, System16PCMData, 0x0c0000); memset(System16PCMData, 0, 0x180000); memcpy(System16PCMData + 0x000000, pTemp + 0x000000, 0x80000); memcpy(System16PCMData + 0x080000, pTemp + 0x080000, 0x20000); memcpy(System16PCMData + 0x0a0000, pTemp + 0x080000, 0x20000); memcpy(System16PCMData + 0x0c0000, pTemp + 0x080000, 0x20000); memcpy(System16PCMData + 0x0e0000, pTemp + 0x080000, 0x20000); memcpy(System16PCMData + 0x100000, pTemp + 0x0a0000, 0x20000); memcpy(System16PCMData + 0x120000, pTemp + 0x0a0000, 0x20000); memcpy(System16PCMData + 0x140000, pTemp + 0x0a0000, 0x20000); memcpy(System16PCMData + 0x160000, pTemp + 0x0a0000, 0x20000); free(pTemp); return nRet; } static int GlocInit() { System16ProcessAnalogControlsDo = GlocProcessAnalogControls; int nRet = System16Init(); return nRet; } static int Glocr360Init() { System16ProcessAnalogControlsDo = Glocr360ProcessAnalogControls; int nRet = System16Init(); return nRet; } static int PdriftInit() { System16ProcessAnalogControlsDo = PdriftProcessAnalogControls; System16HasGears = true; System16PCMDataSizePreAllocate = 0x180000; int nRet = System16Init(); if (!nRet) YBoardIrq2Scanline = 0; unsigned char *pTemp = (unsigned char*)malloc(0x0c0000); memcpy(pTemp, System16PCMData, 0x0c0000); memset(System16PCMData, 0, 0x180000); memcpy(System16PCMData + 0x000000, pTemp + 0x000000, 0x80000); memcpy(System16PCMData + 0x080000, pTemp + 0x080000, 0x20000); memcpy(System16PCMData + 0x0a0000, pTemp + 0x080000, 0x20000); memcpy(System16PCMData + 0x0c0000, pTemp + 0x080000, 0x20000); memcpy(System16PCMData + 0x0e0000, pTemp + 0x080000, 0x20000); memcpy(System16PCMData + 0x100000, pTemp + 0x0a0000, 0x20000); memcpy(System16PCMData + 0x120000, pTemp + 0x0a0000, 0x20000); memcpy(System16PCMData + 0x140000, pTemp + 0x0a0000, 0x20000); memcpy(System16PCMData + 0x160000, pTemp + 0x0a0000, 0x20000); free(pTemp); return nRet; } static int RchaseInit() { BurnGunInit(2, false); System16ProcessAnalogControlsDo = RchaseProcessAnalogControls; int nRet = System16Init(); return nRet; } static int YBoardExit() { memset(misc_io_data, 0, sizeof(misc_io_data)); memset(analog_data, 0, sizeof(analog_data)); return System16Exit(); } static int YBoardScan(int nAction,int *pnMin) { if (pnMin != NULL) { // Return minimum compatible version *pnMin = 0x029660; } if (nAction & ACB_DRIVER_DATA) { SCAN_VAR(misc_io_data); SCAN_VAR(analog_data); } return System16Scan(nAction, pnMin);; } struct BurnDriver BurnDrvGforce2 = { "gforce2", NULL, NULL, "1988", "Galaxy Force 2\0", NULL, "Sega", "Y-Board", NULL, NULL, NULL, NULL, BDF_GAME_WORKING, 2, HARDWARE_SEGA_SYSTEMY, NULL, Gforce2RomInfo, Gforce2RomName, Gforce2InputInfo, Gforce2DIPInfo, Gforce2Init, YBoardExit, YBoardFrame, NULL, YBoardScan, NULL, 320, 224, 4, 3 }; struct BurnDriver BurnDrvGforce2j = { "gforce2j", "gforce2", NULL, "1988", "Galaxy Force 2 (Japan)\0", NULL, "Sega", "Y-Board", NULL, NULL, NULL, NULL, BDF_GAME_WORKING | BDF_CLONE, 2, HARDWARE_SEGA_SYSTEMY, NULL, Gforce2jRomInfo, Gforce2jRomName, Gforce2InputInfo, Gforce2DIPInfo, Gforce2Init, YBoardExit, YBoardFrame, NULL, YBoardScan, NULL, 320, 224, 4, 3 }; struct BurnDriver BurnDrvGloc = { "gloc", NULL, NULL, "1990", "G-LOC Air Battle (US)\0", NULL, "Sega", "Y-Board", NULL, NULL, NULL, NULL, BDF_GAME_WORKING, 2, HARDWARE_SEGA_SYSTEMY, NULL, GlocRomInfo, GlocRomName, GlocInputInfo, GlocDIPInfo, GlocInit, YBoardExit, YBoardFrame, NULL, YBoardScan, NULL, 320, 224, 4, 3 }; struct BurnDriver BurnDrvGlocr360 = { "glocr360", "gloc", NULL, "1990", "G-LOC R360\0", NULL, "Sega", "Y-Board", NULL, NULL, NULL, NULL, BDF_GAME_WORKING | BDF_CLONE, 2, HARDWARE_SEGA_SYSTEMY, NULL, Glocr360RomInfo, Glocr360RomName, Glocr360InputInfo, Glocr360DIPInfo, Glocr360Init, YBoardExit, YBoardFrame, NULL, YBoardScan, NULL, 320, 224, 4, 3 }; struct BurnDriver BurnDrvPdrift = { "pdrift", NULL, NULL, "1988", "Power Drift (World, Rev A)\0", NULL, "Sega", "Y-Board", NULL, NULL, NULL, NULL, BDF_GAME_WORKING, 2, HARDWARE_SEGA_SYSTEMY, NULL, PdriftRomInfo, PdriftRomName, PdriftInputInfo, PdriftDIPInfo, PdriftInit, YBoardExit, YBoardFrame, NULL, YBoardScan, NULL, 320, 224, 4, 3 }; struct BurnDriver BurnDrvPdrifta = { "pdrifta", "pdrift", NULL, "1988", "Power Drift (World)\0", NULL, "Sega", "Y-Board", NULL, NULL, NULL, NULL, BDF_GAME_WORKING | BDF_CLONE, 2, HARDWARE_SEGA_SYSTEMY, NULL, PdriftaRomInfo, PdriftaRomName, PdriftInputInfo, PdriftDIPInfo, PdriftInit, YBoardExit, YBoardFrame, NULL, YBoardScan, NULL, 320, 224, 4, 3 }; struct BurnDriver BurnDrvPdrifte = { "pdrifte", "pdrift", NULL, "1988", "Power Drift (World, Earlier)\0", NULL, "Sega", "Y-Board", NULL, NULL, NULL, NULL, BDF_GAME_WORKING | BDF_CLONE, 2, HARDWARE_SEGA_SYSTEMY, NULL, PdrifteRomInfo, PdrifteRomName, PdriftInputInfo, PdrifteDIPInfo, PdriftInit, YBoardExit, YBoardFrame, NULL, YBoardScan, NULL, 320, 224, 4, 3 }; struct BurnDriver BurnDrvPdriftj = { "pdriftj", "pdrift", NULL, "1988", "Power Drift (Japan)\0", NULL, "Sega", "Y-Board", NULL, NULL, NULL, NULL, BDF_GAME_WORKING | BDF_CLONE, 2, HARDWARE_SEGA_SYSTEMY, NULL, PdriftjRomInfo, PdriftjRomName, PdriftInputInfo, PdriftjDIPInfo, PdriftInit, YBoardExit, YBoardFrame, NULL, YBoardScan, NULL, 320, 224, 4, 3 }; struct BurnDriver BurnDrvRchase = { "rchase", NULL, NULL, "1991", "Rail Chase (Japan)\0", NULL, "Sega", "Y-Board", NULL, NULL, NULL, NULL, BDF_GAME_WORKING, 2, HARDWARE_SEGA_SYSTEMY, NULL, RchaseRomInfo, RchaseRomName, RchaseInputInfo, RchaseDIPInfo, RchaseInit, YBoardExit, YBoardFrame, NULL, YBoardScan, NULL, 320, 224, 4, 3 }; struct BurnDriver BurnDrvStrkfgtr = { "strkfgtr", NULL, NULL, "1991", "Strike Fighter (Japan)\0", NULL, "Sega", "Y-Board", NULL, NULL, NULL, NULL, BDF_GAME_WORKING, 2, HARDWARE_SEGA_SYSTEMY, NULL, StrkfgtrRomInfo, StrkfgtrRomName, GlocInputInfo, StrkfgtrDIPInfo, GlocInit, YBoardExit, YBoardFrame, NULL, YBoardScan, NULL, 320, 224, 4, 3 };
[ [ [ 1, 1888 ] ] ]
4fae7bfe246034e4ec096b25c9158f01b12e2912
3e69b159d352a57a48bc483cb8ca802b49679d65
/branches/bokeoa-scons/cvpcb/dialog_display_options.cpp
50c18faf37e371ae0a31cf8ac0ad189d8fdf7030
[]
no_license
BackupTheBerlios/kicad-svn
4b79bc0af39d6e5cb0f07556eb781a83e8a464b9
4c97bbde4b1b12ec5616a57c17298c77a9790398
refs/heads/master
2021-01-01T19:38:40.000652
2006-06-19T20:01:24
2006-06-19T20:01:24
40,799,911
0
0
null
null
null
null
UTF-8
C++
false
false
7,994
cpp
///////////////////////////////////////////////////////////////////////////// // Name: dialog_display_options.cpp // Purpose: // Author: jean-pierre Charras // Modified by: // Created: 17/02/2006 17:47:55 // RCS-ID: // Copyright: License GNU // Licence: ///////////////////////////////////////////////////////////////////////////// // Generated by DialogBlocks (unregistered), 17/02/2006 17:47:55 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dialog_display_options.h" #endif // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif ////@begin includes ////@end includes #include "fctsys.h" #include "wxstruct.h" #include "common.h" #include "cvpcb.h" #include "protos.h" #include "dialog_display_options.h" ////@begin XPM images ////@end XPM images /*********************************************************************/ void WinEDA_DisplayFrame::InstallOptionsDisplay(wxCommandEvent& event) /*********************************************************************/ /* Creation de la fenetre d'options de la fenetre de visu */ { KiDisplayOptionsFrame * OptionWindow = new KiDisplayOptionsFrame(this); OptionWindow->ShowModal(); OptionWindow->Destroy(); } /*! * KiDisplayOptionsFrame type definition */ IMPLEMENT_DYNAMIC_CLASS( KiDisplayOptionsFrame, wxDialog ) /*! * KiDisplayOptionsFrame event table definition */ BEGIN_EVENT_TABLE( KiDisplayOptionsFrame, wxDialog ) ////@begin KiDisplayOptionsFrame event table entries EVT_CHECKBOX( PADNUM_OPT, KiDisplayOptionsFrame::OnPadnumOptClick ) EVT_BUTTON( ID_SAVE_CONFIG, KiDisplayOptionsFrame::OnSaveConfigClick ) EVT_CHECKBOX( PADFILL_OPT, KiDisplayOptionsFrame::OnPadfillOptClick ) EVT_RADIOBOX( EDGE_SELECT, KiDisplayOptionsFrame::OnEdgeSelectSelected ) EVT_RADIOBOX( TEXT_SELECT, KiDisplayOptionsFrame::OnTextSelectSelected ) ////@end KiDisplayOptionsFrame event table entries END_EVENT_TABLE() /*! * KiDisplayOptionsFrame constructors */ KiDisplayOptionsFrame::KiDisplayOptionsFrame( ) { } KiDisplayOptionsFrame::KiDisplayOptionsFrame( WinEDA_BasePcbFrame* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style ) { m_Parent = parent; Create(parent, id, caption, pos, size, style); } /*! * KiDisplayOptionsFrame creator */ bool KiDisplayOptionsFrame::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style ) { ////@begin KiDisplayOptionsFrame member initialisation m_IsShowPadNum = NULL; m_IsShowPadFill = NULL; m_EdgesDisplayOption = NULL; m_TextDisplayOption = NULL; ////@end KiDisplayOptionsFrame member initialisation ////@begin KiDisplayOptionsFrame creation SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS); wxDialog::Create( parent, id, caption, pos, size, style ); CreateControls(); GetSizer()->Fit(this); GetSizer()->SetSizeHints(this); Centre(); ////@end KiDisplayOptionsFrame creation return true; } /*! * Control creation for KiDisplayOptionsFrame */ void KiDisplayOptionsFrame::CreateControls() { SetFont(*g_DialogFont); ////@begin KiDisplayOptionsFrame content construction // Generated by DialogBlocks, 17/02/2006 18:31:55 (unregistered) KiDisplayOptionsFrame* itemDialog1 = this; wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxHORIZONTAL); itemDialog1->SetSizer(itemBoxSizer2); wxFlexGridSizer* itemFlexGridSizer3 = new wxFlexGridSizer(3, 2, 0, 0); itemBoxSizer2->Add(itemFlexGridSizer3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); m_IsShowPadNum = new wxCheckBox( itemDialog1, PADNUM_OPT, _("Pad &Num"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE ); m_IsShowPadNum->SetValue(false); itemFlexGridSizer3->Add(m_IsShowPadNum, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5); wxButton* itemButton5 = new wxButton( itemDialog1, ID_SAVE_CONFIG, _("Save Cfg"), wxDefaultPosition, wxDefaultSize, 0 ); itemFlexGridSizer3->Add(itemButton5, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5); m_IsShowPadFill = new wxCheckBox( itemDialog1, PADFILL_OPT, _("&Pad Fill"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE ); m_IsShowPadFill->SetValue(false); itemFlexGridSizer3->Add(m_IsShowPadFill, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5); itemFlexGridSizer3->Add(5, 5, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxLEFT|wxTOP|wxBOTTOM, 5); wxString m_EdgesDisplayOptionStrings[] = { _("&Filaire"), _("&Filled"), _("&Sketch") }; m_EdgesDisplayOption = new wxRadioBox( itemDialog1, EDGE_SELECT, _("Edges:"), wxDefaultPosition, wxDefaultSize, 3, m_EdgesDisplayOptionStrings, 1, wxRA_SPECIFY_COLS ); itemFlexGridSizer3->Add(m_EdgesDisplayOption, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5); wxString m_TextDisplayOptionStrings[] = { _("&Filaire"), _("&Filled"), _("&Sketch") }; m_TextDisplayOption = new wxRadioBox( itemDialog1, TEXT_SELECT, _("Texts:"), wxDefaultPosition, wxDefaultSize, 3, m_TextDisplayOptionStrings, 1, wxRA_SPECIFY_COLS ); itemFlexGridSizer3->Add(m_TextDisplayOption, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5); // Set validators m_IsShowPadNum->SetValidator( wxGenericValidator(& DisplayOpt.DisplayPadNum) ); m_IsShowPadFill->SetValidator( wxGenericValidator(& DisplayOpt.DisplayPadFill) ); m_EdgesDisplayOption->SetValidator( wxGenericValidator(& DisplayOpt.DisplayModEdge) ); m_TextDisplayOption->SetValidator( wxGenericValidator(& DisplayOpt.DisplayModText) ); ////@end KiDisplayOptionsFrame content construction } /*! * Should we show tooltips? */ bool KiDisplayOptionsFrame::ShowToolTips() { return true; } /*! * Get bitmap resources */ wxBitmap KiDisplayOptionsFrame::GetBitmapResource( const wxString& name ) { // Bitmap retrieval ////@begin KiDisplayOptionsFrame bitmap retrieval wxUnusedVar(name); return wxNullBitmap; ////@end KiDisplayOptionsFrame bitmap retrieval } /*! * Get icon resources */ wxIcon KiDisplayOptionsFrame::GetIconResource( const wxString& name ) { // Icon retrieval ////@begin KiDisplayOptionsFrame icon retrieval wxUnusedVar(name); return wxNullIcon; ////@end KiDisplayOptionsFrame icon retrieval } /*! * wxEVT_COMMAND_CHECKBOX_CLICKED event handler for PADFILL_OPT */ void KiDisplayOptionsFrame::OnPadfillOptClick( wxCommandEvent& event ) { DisplayOpt.DisplayPadFill = m_Parent->m_DisplayPadFill = m_IsShowPadFill->GetValue(); m_Parent->ReDrawPanel(); } /*! * wxEVT_COMMAND_CHECKBOX_CLICKED event handler for PADNUM_OPT */ void KiDisplayOptionsFrame::OnPadnumOptClick( wxCommandEvent& event ) { DisplayOpt.DisplayPadNum = m_Parent->m_DisplayPadNum = m_IsShowPadNum->GetValue(); m_Parent->ReDrawPanel(); } /*! * wxEVT_COMMAND_RADIOBOX_SELECTED event handler for EDGE_SELECT */ void KiDisplayOptionsFrame::OnEdgeSelectSelected( wxCommandEvent& event ) { DisplayOpt.DisplayModEdge = m_Parent->m_DisplayModEdge = m_EdgesDisplayOption->GetSelection(); m_Parent->ReDrawPanel(); } /*! * wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SAVE_CONFIG */ void KiDisplayOptionsFrame::OnSaveConfigClick( wxCommandEvent& event ) { Save_Config(this); } /*! * wxEVT_COMMAND_RADIOBOX_SELECTED event handler for TEXT_SELECT */ void KiDisplayOptionsFrame::OnTextSelectSelected( wxCommandEvent& event ) { DisplayOpt.DisplayModText = m_Parent->m_DisplayModText = m_TextDisplayOption->GetSelection(); m_Parent->ReDrawPanel(); }
[ "bokeoa@244deca0-f506-0410-ab94-f4f3571dea26" ]
[ [ [ 1, 266 ] ] ]
a0e763beb15e335b686dc30beb745ba86a4cf815
a36d7a42310a8351aa0d427fe38b4c6eece305ea
/TestDX9/RenderBufferFactoryDX9Test_VertexBuffer.cpp
ce960f620fe5176a3a827222a2977a38f44d3b71
[]
no_license
newpolaris/mybilliard01
ca92888373c97606033c16c84a423de54146386a
dc3b21c63b5bfc762d6b1741b550021b347432e8
refs/heads/master
2020-04-21T06:08:04.412207
2009-09-21T15:18:27
2009-09-21T15:18:27
39,947,400
0
0
null
null
null
null
UTF-8
C++
false
false
7,408
cpp
#include "stdafx.h" #include "test_dx9.h" #include "RenderBufferFactoryDX9Imp_Backdoor.hpp" using namespace System; using namespace System::Text; using namespace System::Collections::Generic; using namespace Microsoft::VisualStudio::TestTools::UnitTesting; namespace TestDX9 { const static float positions[] = { 150.0f, 50.0f, 0.5f, 250.0f, 250.0f, 0.5f, 50.0f, 250.0f, 0.5f }; const static NxU32 diffuses[] = { 0xffff0000, 0xff00ff00, 0xff00ffff }; [TestClass] public ref class RenderBufferFactoryDX9Test_VertexBuffer { private: RenderWin32DX9Imp * dx9Imp; RenderBufferFactoryDX9 * factory; public: [TestInitialize()] void MyTestInitialize() { dx9Imp = new RenderWin32DX9Imp(); dx9Imp->setBackbufferLockable( true ); Assert::IsTrue( dx9Imp->createDevice( true, 30, 30 ) ); factory = PRIVATE_METHOD( RenderWin32DX9Imp, getBufferFactory )( dx9Imp ); }; [TestCleanup()] void MyTestCleanup() { dx9Imp->destroyDevice(); delete dx9Imp; }; static bool isSizeCorrect( VertexBuffer * vb, size_t nVertex, size_t sizeEachVertex, size_t nElements ) { VertexBufferDX9Imp * const vbImp = dynamic_cast< VertexBufferDX9Imp* >( vb ); if( NULL == vbImp ) return false; if( nVertex != vbImp->getNumberOfVertex() ) return false; if( sizeEachVertex != vbImp->getSizeInByteForEachVertex() ) return false; if( nVertex * sizeEachVertex != PRIVATE_METHOD( VertexBufferDX9Imp, getSizeInByteForTotal)( vbImp ) ) return false; if( D3DDECLTYPE_UNUSED != PRIVATE_METHOD( VertexBufferDX9Imp, getVertexElement )( vbImp )[ nElements ].Type ) return false; return true; } static bool isVertexUploaded( VertexBuffer * vb ) { VertexBufferDX9Imp * const vbImp = dynamic_cast< VertexBufferDX9Imp* >( vb ); if( NULL == vbImp ) return false; LPDIRECT3DVERTEXBUFFER9 vbDX9 = vbImp->getVertexBufferDX9(); if( NULL == vbDX9 ) return false; D3DVERTEXBUFFER_DESC desc; vbDX9->GetDesc( &desc ); if( 0 != desc.FVF ) return false; if( (int) D3DPOOL_DEFAULT != (int) desc.Pool ) return false; if( PRIVATE_METHOD( VertexBufferDX9Imp, getSizeInByteForTotal)( vbImp ) != desc.Size ) return false; return true; } public: [TestMethod] void FixtureTesting() { }; [TestMethod] void CreateVertexBuffer_static() { VertexBuffer * const vb = factory->createVertexBuffer_static( 3, positions ); assertTrue( isSizeCorrect( vb, 3, sizeof(float) * 3, 1 ) ); assertTrue( factory->destroyVertexBuffer( vb ) ); }; [TestMethod] void UploadVertexBufferOntoMemory() { VertexBuffer * const vb = factory->createVertexBuffer_static( 3, positions ); factory->update( NULL, 0.f ); assertTrue( isVertexUploaded( vb ) ); assertTrue( factory->destroyVertexBuffer( vb ) ); } [TestMethod] void CreateVertexBuffer_static_Normal0() { VertexBuffer * const vb = factory->createVertexBuffer_static( 3, positions ); assertTrue( vb->appendNormal_Array( positions, 0 ) ); assertTrue( isSizeCorrect( vb, 3, sizeof(float) * 3 * 2, 2 ) ); assertTrue( factory->destroyVertexBuffer( vb ) ); }; [TestMethod] void CreateVertexBuffer_static_Normal1() { VertexBuffer * const vb = factory->createVertexBuffer_static( 3, positions ); assertTrue( vb->appendNormal_Array( positions, 1 ) ); assertTrue( isSizeCorrect( vb, 3, sizeof(float) * 3 * 2, 2 ) ); assertTrue( factory->destroyVertexBuffer( vb ) ); }; [TestMethod] void CreateVertexBuffer_static_TwoNormals() { VertexBuffer * const vb = factory->createVertexBuffer_static( 3, positions ); assertTrue( vb->appendNormal_Array( positions, 0 ) ); assertTrue( vb->appendNormal_Array( positions, 1 ) ); assertTrue( isSizeCorrect( vb, 3, sizeof(float) * 3 * 3, 3 ) ); assertTrue( factory->destroyVertexBuffer( vb ) ); }; [TestMethod] void CreateVertexBuffer_static_TexCoord1D() { VertexBuffer * const vb = factory->createVertexBuffer_static( 3, positions ); assertTrue( vb->appendTexCoord1D_Array( positions, 0 ) ); assertTrue( isSizeCorrect( vb, 3, sizeof(float) * 3 + sizeof( float ), 2 ) ); assertTrue( factory->destroyVertexBuffer( vb ) ); }; [TestMethod] void CreateVertexBuffer_static_TexCoord2D() { VertexBuffer * const vb = factory->createVertexBuffer_static( 3, positions ); assertTrue( vb->appendTexCoord2D_Array( positions, 0 ) ); assertTrue( isSizeCorrect( vb, 3, sizeof(float) * 3 + sizeof( float ) * 2, 2 ) ); assertTrue( factory->destroyVertexBuffer( vb ) ); }; [TestMethod] void CreateVertexBuffer_static_TexCoord3D() { VertexBuffer * const vb = factory->createVertexBuffer_static( 3, positions ); assertTrue( vb->appendTexCoord3D_Array( positions, 0 ) ); assertTrue( isSizeCorrect( vb, 3, sizeof(float) * 3 + sizeof( float ) * 3, 2 ) ); assertTrue( factory->destroyVertexBuffer( vb ) ); }; [TestMethod] void CreateVertexBuffer_static_Color() { VertexBuffer * const vb = factory->createVertexBuffer_static( 3, positions ); assertTrue( vb->appendColor_Array( diffuses, 0 ) ); assertTrue( isSizeCorrect( vb, 3, sizeof(float) * 3 + sizeof( DWORD ), 2 ) ); assertTrue( factory->destroyVertexBuffer( vb ) ); } [TestMethod] void CreateVertexBuffer_static_Normal_TexCoord2_Color() { VertexBuffer * const vb = factory->createVertexBuffer_static( 3, positions ); assertTrue( vb->appendNormal_Array( positions, 0 ) ); assertTrue( vb->appendTexCoord2D_Array( positions, 0 ) ); assertTrue( vb->appendColor_Array( diffuses, 0 ) ); assertTrue( isSizeCorrect( vb, 3, sizeof(float) * 3 *2 + sizeof(float)*2 + sizeof( DWORD ), 4 ) ); assertTrue( factory->destroyVertexBuffer( vb ) ); } [TestMethod] void CreateVertexBuffer_static_TexCoord2D_DuplicatedUsageOffset() { VertexBuffer * const vb = factory->createVertexBuffer_static( 3, positions ); assertTrue( vb->appendTexCoord2D_Array( positions, 1 ) ); assertFalse( vb->appendTexCoord2D_Array( positions, 1 ) ); assertTrue( isSizeCorrect( vb, 3, sizeof(float) * 3 + sizeof( float ) * 2, 2 /*not 3*/ ) ); assertTrue( factory->destroyVertexBuffer( vb ) ); }; [TestMethod] void RenderVertexBuffer() { } }; }
[ "wrice127@af801a76-7f76-11de-8b9f-9be6f49bd635" ]
[ [ [ 1, 184 ] ] ]
c00d1f39fe9b93c3df1b5dc0b54437f19b48a111
01acea32aaabe631ce84ff37340c6f20da3065a6
/factories.cpp
cee3f8258ae299bb73532ec52b6af9025cabe481
[]
no_license
olooney/pattern-space
db2804d75249fe42427c15260ecb665bc489e012
dcf07e63a6cb7644452924212ed087d45c301e78
refs/heads/master
2021-01-20T09:38:41.065323
2011-04-20T01:25:58
2011-04-20T01:25:58
1,638,393
0
0
null
null
null
null
UTF-8
C++
false
false
4,442
cpp
/* Factory functions. To build a Solid, you need to instantiate at least one Mass and at least one Image. You have to make several choices about which implementation class to use, and you have to provide a whole slew of parameters, so it's best to encapsulate those decisions here. This is the weakest module in the program, but hey, at least it's encapsulated! This module needs the support of background loading (seperate thread), a resource control class, and a meta-data file format for defining new Solid classes. In fact, it needs a complete overhaul. */ #include <stdio.h> #include <stdlib.h> #include "factories.h" namespace PatternSpace { boost::shared_ptr<Solid> newRock(Vector2d initialPosition, Vector2d initialVelocity) { std::auto_ptr<Mass> pMass( new NewtonianMass(1000,2000,20,initialPosition,initialVelocity,0.,.1) ); std::auto_ptr<Image> pImage( new BitmapImage("images/rock.bmp") ); boost::shared_ptr<Solid> pRock ( new NormalSolid(pMass, pImage, 5000, 0, 0 ) ); return pRock; } boost::shared_ptr<Solid> newBigRock(Vector2d initialPosition, Vector2d initialVelocity) { std::auto_ptr<Mass> pMass( new NewtonianMass(5000,10000,35,initialPosition,initialVelocity,0.,.1) ); std::auto_ptr<Image> pImage( new BitmapImage("images/big-rock.bmp") ); boost::shared_ptr<Solid> pRock ( new NormalSolid(pMass, pImage, 15000, 0, 0 ) ); return pRock; } boost::shared_ptr<Solid> newAlien(Vector2d initialPosition, Vector2d initialVelocity) { boost::shared_ptr<Image> pa1( new BitmapImage("images/alien1-1.bmp") ); boost::shared_ptr<Image> pa2( new BitmapImage("images/alien1-2.bmp") ); boost::shared_ptr<Image> pa3( new BitmapImage("images/alien1-3.bmp") ); std::auto_ptr<AnimatedImage> paa( new AnimatedImage(pa1,5) ); paa->add(pa2); paa->add(pa3); std::auto_ptr<Image> paa2(paa); Vector2d p(500,300); Vector2d v(0,.1); std::auto_ptr<Mass> pAlienMass( new NewtonianMass(100,200,12,initialPosition,initialVelocity,0,0) ); boost::shared_ptr<Solid> pAlien(new NormalSolid( pAlienMass, paa2, 200, 0, 1) ); return pAlien; } boost::shared_ptr<Solid> newExplosion(Vector2d initialPosition, Vector2d initialVelocity) { boost::shared_ptr<Image> pi1( new BitmapImage("images/explode1.bmp") ); boost::shared_ptr<Image> pi2( new BitmapImage("images/explode2.bmp") ); boost::shared_ptr<Image> pi3( new BitmapImage("images/explode3.bmp") ); boost::shared_ptr<Image> pi4( new BitmapImage("images/explode4.bmp") ); boost::shared_ptr<Image> pi5( new BitmapImage("images/explode5.bmp") ); boost::shared_ptr<Image> pi6( new BitmapImage("images/explode6.bmp") ); boost::shared_ptr<Image> pi7( new BitmapImage("images/explode7.bmp") ); std::auto_ptr<AnimatedImage> pai( new AnimatedImage(pi1,2) ); pai->add(pi2) .add(pi3) .add(pi4) .add(pi5) .add(pi6) .add(pi7); std::auto_ptr<Image> pai2(pai); std::auto_ptr<Mass> pMass( new NewtonianMass(100,200,10,initialPosition,initialVelocity,0.,.1) ); boost::shared_ptr<Solid> pExplosion(new NormalSolid( pMass, pai2, 100, 50, 2) ); return pExplosion; } boost::shared_ptr<Ship> newShip(Vector2d initialPosition, Vector2d initialVelocity) { BitmapImage shipImage("images/ship.bmp"); std::auto_ptr<Mass> pShipMass( new FrictionMass(100,2000,12,initialPosition,initialVelocity,0,0,.0002,.002) ); std::auto_ptr<Image> pShipImage( new BitmapImage(shipImage) ); boost::shared_ptr<Ship> pShip( new Ship(pShipMass, pShipImage) ); return pShip; } boost::shared_ptr<Solid> newMissle(Vector2d initialPosition, Vector2d initialVelocity) { BitmapImage missleImage("images/missle1.bmp"); std::auto_ptr<Mass> pMass( new LinearMass(30,60,5,initialPosition,initialVelocity) ); std::auto_ptr<Image> pImage( new BitmapImage(missleImage) ); boost::shared_ptr<Solid> pMissle( new NormalSolid(pMass, pImage,2,500,4 ) ); return pMissle; } } // end namespace PatternSpace
[ [ [ 1, 95 ] ] ]
afb250b9ec8fbf1c052a57bef5ddc6d571aa876e
d249c8f9920b1267752342f77d6f12592cb32636
/moteurGraphique/src/Math/Couleur.cpp
4872ee6680e108bceafd49816e6fe4394525c5c5
[]
no_license
jgraulle/stage-animation-physique
4c9fb0f96b9f4626420046171ff60f23fe035d5d
f1b0c69c3ab48f256d5ac51b4ffdbd48b1c001ae
refs/heads/master
2021-12-23T13:46:07.677761
2011-03-08T22:47:53
2011-03-08T22:47:53
33,616,188
0
0
null
2021-10-05T10:41:29
2015-04-08T15:41:32
C++
UTF-8
C++
false
false
2,111
cpp
/* * Couleur.cpp * * Created on: 6 f�vr. 2009 * Author: jeremie GRAULLE */ #include "Couleur.h" #include <assert.h> const Couleur Couleur::BLANC = Couleur(1.0f, 1.0f, 1.0f, 1.0f); const Couleur Couleur::NOIR = Couleur(0.0f, 0.0f, 0.0f, 1.0f); const Couleur Couleur::ROUGE = Couleur(1.0f, 0.0f, 0.0f, 1.0f); const Couleur Couleur::VERT = Couleur(0.0f, 1.0f, 0.0f, 1.0f); const Couleur Couleur::BLEU = Couleur(0.0f, 0.0f, 1.0f, 1.0f); const Couleur Couleur::GRIS = Couleur(0.5f, 0.5f, 0.5f, 1.0f); const Couleur Couleur::GRIS_CLAIR = Couleur(0.8f, 0.8f, 0.8f, 1.0f); const Couleur Couleur::GRIS_FONCE = Couleur(0.2f, 0.2f, 0.2f, 1.0f); std::ostream & operator << (std::ostream & os, const Couleur & c) { os << '(' << c.c[0] << ',' << c.c[1] << ',' << c.c[2] << ',' << c.c[3] << ')'; return os; } Couleur::Couleur(f32 r, f32 v, f32 b, f32 a) { c[0] = r; c[1] = v; c[2] = b; c[3] = a; } Couleur::Couleur(const Couleur & cou) { for (int i=0; i<NBR_COULEUR; i++) c[i] = cou[i]; } Couleur::Couleur(const f32 * couleur) { assert(couleur!=NULL); for (int i=0; i<NBR_COULEUR; i++) c[i] = *(couleur+i); } Couleur::Couleur(const u8 * couleur) { assert(couleur!=NULL); for (int i=0; i<NBR_COULEUR; i++) c[i] = (*(couleur+i))/255.0f; } Couleur::~Couleur() {} // affectation const Couleur & Couleur::operator = (const Couleur & cou) { for (int i=0; i<NBR_COULEUR; i++) c[i] = cou[i]; return *this; } // accesseur f32 Couleur::getR() const { return c[0]; } f32 Couleur::getV() const { return c[1]; } f32 Couleur::getB() const { return c[2]; } f32 Couleur::getA() const { return c[3]; } f32 Couleur::operator [] (int i) const { return c[i]; } const f32 * Couleur::getData() const { return c; } // setteur void Couleur::setR(f32 r) { c[0] = r; } void Couleur::setV(f32 v) { c[1] = v; } void Couleur::setB(f32 b) { c[2] = b; } void Couleur::setA(f32 a) { c[3] = a; } void Couleur::set(f32 r, f32 v, f32 b, f32 a) { c[0] = r; c[1] = v; c[2] = b; c[3] = a; }
[ "jgraulle@74bb1adf-7843-2a67-e58d-b22fe9da3ebb" ]
[ [ [ 1, 105 ] ] ]
a1e22ba0aa85b53a20f803a69fea67dc263b56ae
138a353006eb1376668037fcdfbafc05450aa413
/source/ogre/OgreNewt/boost/mpl/vector/aux_/begin_end.hpp
a62012ed1a1bce5744261b694dd667c6294d8b52
[]
no_license
sonicma7/choreopower
107ed0a5f2eb5fa9e47378702469b77554e44746
1480a8f9512531665695b46dcfdde3f689888053
refs/heads/master
2020-05-16T20:53:11.590126
2009-11-18T03:10:12
2009-11-18T03:10:12
32,246,184
0
0
null
null
null
null
UTF-8
C++
false
false
1,264
hpp
#ifndef BOOST_MPL_VECTOR_AUX_BEGIN_END_HPP_INCLUDED #define BOOST_MPL_VECTOR_AUX_BEGIN_END_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // See http://www.boost.org/libs/mpl for documentation. // $Source: /cvsroot/ogre/ogreaddons/ogrenewt/OgreNewt_Main/inc/boost/mpl/vector/aux_/begin_end.hpp,v $ // $Date: 2006/04/17 23:49:48 $ // $Revision: 1.1 $ #include <boost/mpl/aux_/config/typeof.hpp> #if defined(BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES) # include <boost/mpl/begin_end_fwd.hpp> # include <boost/mpl/vector/aux_/iterator.hpp> # include <boost/mpl/vector/aux_/tag.hpp> namespace boost { namespace mpl { template<> struct begin_impl< aux::vector_tag > { template< typename Vector > struct apply { typedef v_iter<Vector,0> type; }; }; template<> struct end_impl< aux::vector_tag > { template< typename Vector > struct apply { typedef v_iter<Vector,Vector::size::value> type; }; }; }} #endif // BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES #endif // BOOST_MPL_VECTOR_AUX_BEGIN_END_HPP_INCLUDED
[ "Sonicma7@0822fb10-d3c0-11de-a505-35228575a32e" ]
[ [ [ 1, 49 ] ] ]